function fadeInVideoBackground(){$("#breakpoints .hidden-xs").is(":hidden")&&$(".video-background").remove(),$(".video-background").delay(1500).fadeIn(500)}function onPlayerReady(e){e.target.playVideo()}function getBlockBtnColor(e){var t="";switch(e){case"primary":t="btn-primary ";break;case"secondary":t="btn-secondary ";break;case"tertiary":t="btn-tertiary ";break;case"light":t="btn-light ";break;case"dark":t="btn-dark ";break;case"ghost":t="btn-ghost ";break;default:t="btn-default "}return t}function getBlockBtnSize(e){var t="";switch(e){case"big":t="btn-lg ";break;case"medium":t="btn-md ";break;case"small":t="btn-sm "}return t}function getBlockBtnClasses(e,t){var n=e.val(),o=t.val();return getBlockBtnColor(n)+getBlockBtnSize(o)}function changeHeight(e,t){t.css("min-height",e+"vh")}function getBlockColorArray(){return["primary","primary_counter","secondary","secondary_counter","tertiary","tertiary_counter"]}function setBlockImageSize(e,t,n){n?setImageSizeLandscape(e,t):setImageSizePortrait(e,t)}function setImageSizePortrait(e,t){switch(e){case"large":t.width(355),t.height(355);break;case"medium":t.width(300),t.height(300);break;case"small":t.width(175),t.height(175);break;case"extra_small":t.width(90),t.height(90)}}function setBlockVerticalPadding(e,t){t.removeClass((e,t)=>(t.match(/\py-\S+/g)||[]).join(" "));const n={none:"py-0",small:"py-1 py-md-3",medium:"py-2 py-md-7",large:"py-3 py-md-10"};return t.addClass(n[e])}function setImageSizeLandscape(e,t){switch(e){case"large":t.width(350),t.height(240);break;case"medium":t.width(320),t.height(176);break;case"small":t.width(200),t.height(125);break;case"extra_small":t.width(150),t.height(90)}}function getRandomBlockOverlayColor(){var e=getBlockColorArray();return e[getRandomInt(e.length)]}function getBlockPhotoPreview(e,t,n,o){if(e.files&&e.files[0]){var i=new FileReader;i.onload=function(e){t.css("background-image","url("+e.target.result+")"),$(o+".js-block-img-preview").attr("src",e.target.result),$(o+".js-attachment-preview").removeClass("d-none")},i.readAsDataURL(e.files[0]),setTimeout(function(){t.css("background-image")},2e3)}}function checkBlockBackgroundContentOpacity(e){opacityInput=$(e+".js-block-opacity-input"),opacityInput.val()>99&&(opacityInput.val(75),$(e+".js-block-opacity-input").trigger("change"),opacity=opacityInput.val()/100,blockOpacityEle=$(e+".js-block-opacity"),changeBlockDomOpacity(opacity,blockOpacityEle))}function setBlockOpacityNoBackground(e){var t=!0,n=$(e+".js-background-video-url-input"),o=$(e+".js-block-opacity-input");$(e+".js-block-background-photo-preview").hasClass("d-none")&&""==n.val()||(t=!1),t&&(o.val(100),$(e+".js-block-opacity-input").trigger("change"),opacity=o.val()/100,blockOpacityEle=$(e+".js-block-opacity"),changeBlockDomOpacity(opacity,blockOpacityEle))}function getBlockDomId(e){return"#"+$(e).data("block-dom-id")+" "}function changeBlockDomOpacity(e,t){t.css("opacity",e)}function setBlockGravityStyle(e,t){var n;switch(t){case"ne":n="right 20%";break;case"n":n="center 20%";break;case"nw":n="left 20%";break;case"e":n="center right";break;case"c":n="center";break;case"w":n="center left";break;case"se":n="right 80%";break;case"s":n="center 80%";break;case"sw":n="left 80%";break;default:n="center"}e.css("backgroundPosition",n)}function getBlockIconCircleClass(e){var t="";switch(e){case"icon-sm":t="block-icon-bg-sm ";break;case"icon-md":t="block-icon-bg-md ";break;case"icon-lg":t="block-icon-bg-lg "}return t}function getCenterIconMargin(e){var t="thomas";switch(e){case"block-icon-bg-sm ":t="mb-3 ";break;case"block-icon-bg-md ":t="mb-5 ";break;case"block-icon-bg-lg ":t="mb-6 "}return t}function removeBlockIconClasses(e){$(e+".js-block-icon").removeClass("block-icon-sm block-icon-md block-icon-lg"),$(e+".js-block-icon").removeClass("bg-primary bg-secondary bg-tertiary bg-light bg-dark bg-ghost"),$(e+".js-block-icon").removeClass("icon-primary icon-secondary icon-tertiary icon-light icon-dark icon-ghost"),$(e+".js-block-icon").removeClass("block-icon-bg-sm block-icon-bg-md block-icon-bg-lg")}function getIconColorClasses(e,t,n,o){var i="block-"+e.val()+" ",r="",s="";return"false"==n.val()?(r=getBlockIconCircleClass(e.val()),"white"==t&&(t="light"),s="bg-"+t.val()+" "):s="icon-"+t.val()+" ",$(o+".js-block-icon-wrapper").removeClass("mb-3 mb-5 mb-6"),$(o+".js-block-icon-wrapper").addClass(getCenterIconMargin(r)),i+s+r}function flipBooleanInput(e){stringBoolVal=e.val(),"false"==stringBoolVal?e.val("true"):"true"==stringBoolVal?e.val("false"):console.log("Error flipping booleans")}function initializeBreadcrumbsToggle(){const e=document.querySelector(".btn-group"),t=document.querySelectorAll(".svg-container");e&&e.addEventListener("click",function(e){const n=e.target.closest(".show-breadcrumbs-btn").querySelector(".show-breadcrumbs-radio");n&&setTimeout(()=>{const e="true"===n.value;t.forEach(function(t){const n=t.querySelector(".svg-with-breadcrumbs"),o=t.querySelector(".svg-no-breadcrumbs");e?(n.classList.remove("d-none"),o.classList.add("d-none")):(n.classList.add("d-none"),o.classList.remove("d-none"))})},0)})}function change_background_class(e,t){const n=listOverlayColors().map(e=>`bg-${e}`);e.removeClass(function(){return $(this).attr("class").split(" ").filter(function(e){return n.includes(e)}).join(" ")}),e.addClass(t)}function change_background_tone_class(e){backgroundColorTone.removeClass(function(){return $(this).attr("class").split(" ").filter(function(e){return e.startsWith("bg-")}).join(" ")}),classNameTone=e+"-tone",backgroundColorTone.addClass(classNameTone)}function change_gradient_background_class(e){gradientColor.removeClass("bg-gradient-default bg-gradient-primary bg-gradient-primary-counter bg-gradient-white bg-gradient-dark"),gradientColor.addClass(e)}function initializeColorPalette(){function e(e,t,n){const o=document.querySelector(`#${e}`);o&&!o.disabled&&(o.value=t,o.style.backgroundColor="#"+t,o.style.color="#"+n)}function t(){n("organization_color_set_attributes_c1","primary-color","primary-color-palette"),n("organization_color_set_attributes_cc1","primary-counter-color"),n("organization_color_set_attributes_c2","secondary-color","secondary-color-palette"),n("organization_color_set_attributes_cc2","secondary-counter-color"),n("organization_color_set_attributes_c3","tertiary-color","tertiary-color-palette"),n("organization_color_set_attributes_cc3","tertiary-counter-color"),n("organization_color_set_attributes_bg_color","picker-background-color"),n("organization_color_set_attributes_tc1","primary-text-color")}function n(e,t,n=null){const o=document.querySelector(`#${e}`);if(!o)return;const i=o.value,r=document.querySelector(`#current-palette .${t}`);if(r&&(r.value=i),n){const e=document.querySelector(`#current-palette #${n}`);e&&(e.style.backgroundColor="#"+i)}}if(!document.querySelector("#color-palette-widget"))return;const o=document.querySelectorAll(".hidden-colors");o.forEach(function(e){e.style.display="none"}),t();const i=document.querySelector("#toggle-colors");i&&(i.addEventListener("click",function(){o.forEach(function(e){e.style.display="none"===e.style.display?"block":"none"})}),document.querySelectorAll(".deactivated-palette").forEach(function(t){t.addEventListener("click",function(){document.querySelectorAll(".activated-palette").forEach(function(e){e.classList.remove("activated-palette"),e.classList.add("deactivated-palette")}),t.classList.remove("deactivated-palette"),t.classList.add("activated-palette");const n=document.querySelector(".activated-palette .primary-color")?document.querySelector(".activated-palette .primary-color").value:"",o=document.querySelector(".activated-palette .primary-counter-color")?document.querySelector(".activated-palette .primary-counter-color").value:"",i=document.querySelector(".activated-palette .secondary-color")?document.querySelector(".activated-palette .secondary-color").value:"",r=document.querySelector(".activated-palette .secondary-counter-color")?document.querySelector(".activated-palette .secondary-counter-color").value:"",s=document.querySelector(".activated-palette .tertiary-color")?document.querySelector(".activated-palette .tertiary-color").value:"",a=document.querySelector(".activated-palette .tertiary-counter-color")?document.querySelector(".activated-palette .tertiary-counter-color").value:"",l=document.querySelector(".activated-palette .picker-background-color")?document.querySelector(".activated-palette .picker-background-color").value:"",c=document.querySelector(".activated-palette .primary-text-color")?document.querySelector(".activated-palette .primary-text-color").value:"";e("organization_color_set_attributes_c1",n,o),e("organization_color_set_attributes_c2",i,r),e("organization_color_set_attributes_c3",s,a),e("organization_color_set_attributes_bg_color",l,c),e("organization_color_set_attributes_tc1",c,l),e("organization_color_set_attributes_cc1",o,n),e("organization_color_set_attributes_cc2",r,i),e("organization_color_set_attributes_cc3",a,s)})}))}function debounce(e,t,n){var o;return function(){var i=this,r=arguments,s=function(){o=null,n||e.apply(i,r)},a=n&&!o;clearTimeout(o),o=setTimeout(s,t),a&&e.apply(i,r)}}function initializeJaneSyncWells(){const e=document.querySelectorAll(".jane-sync-well");e&&e.forEach(function(e){initializeJaneSyncWell(e.id)})}function initializeJaneSyncWell(e){const t=document.getElementById(e);if(!t)return;const n=t.querySelector(".jane-sync-icon-container"),o=t.querySelector(".jane-sync-notice-content"),i=t.querySelector(".jane-sync-arrow");n.addEventListener("click",function(){"none"===o.style.display?(o.style.display="block",i.innerHTML="\u2191"):(o.style.display="none",i.innerHTML="\u2193")})}function initializeLandingPageShowMore(){const e=document.getElementById("additional-pages-heading"),t=document.getElementById("initial-landing-pages"),n=document.getElementById("more-landing-pages"),o=document.getElementById("show-more-landing-pages");e&&(e.addEventListener("click",function(){t.classList.contains("hidden")?(t.classList.remove("hidden"),n.classList.contains("hidden")?o.classList.remove("hidden"):o.classList.add("hidden")):(t.classList.add("hidden"),n.classList.add("hidden"),o.classList.add("hidden"))}),o&&o.addEventListener("click",function(){n.classList.remove("hidden"),o.classList.add("hidden")}))}function setupTinyMCEHeaders(e){e.xhr.setRequestHeader("X-CSRF-Token",$('meta[name="csrf-token"]').attr("content"))}function log_warning(e){console.log(e)}function loadAce(e,t,n,o){var i=ace.edit(e),r=i.getSession();r.setMode("ace/mode/"+n);var s=$(t);"true"==o&&i.focus(),r.on("change",function(){s.val(r.getValue())})}function getRandomInt(e){return Math.floor(Math.random()*Math.floor(e))}function notification_notice(e){notification(e,"notice")}function notification_success(e){notification(e,"success")}function notification_alert(e){notification(e,"alert")}function notification(e,t){"warning"!=(t=t||"success")&&"success"!=t&&log_warning(t+" is not a valid warning level"),$("body").append($('<div class="container relative"><div class="flash-message-popdown flash-message-popdown-'+t+'">'+e+"</div></div>"))}function off_on_button_group(){var e="btn-success",t="btn-danger",n="btn-default";$(".js-status-hidden").on("click",function(){$(this).siblings().removeClass(e),$(this).siblings().addClass(n),$(this).addClass(t)}),$(".js-status-visible").on("click",function(){$(this).hasClass(e)||($(this).siblings().removeClass(t),$(this).siblings().addClass(n),$(this).addClass(e),$(this).removeClass(n))})}function convert_opacity(){var e=opacityInput.val();opacity=e/100}function change_opacity(){convert_opacity(),backgroundOpacity.css("opacity",opacity)}function hidePageToolbar(){var e=$(".page-toolbar");e.hasClass("open")&&(e.removeClass("open"),$(".page-toolbar-button").blur())}function toggleBlockPagePosition(e,t,n){var o=$("#page_content"),i=o.offset(),r=o.height()/2,s=$(window).height()/2;i.top+r-($(document).scrollTop()+s)>0?e.attr("href",t):e.attr("href",n)}function isInViewport(e){var t=e.getBoundingClientRect();return(t.height>0||t.width>0)&&t.bottom>=0&&t.right>=0&&t.top<=(window.innerHeight||document.documentElement.clientHeight)&&t.left<=(window.innerWidth||document.documentElement.clientWidth)}function shade_blend(e,t,n){var o=e<0?-1*e:e,i=Math.round,r=parseInt;if(t.length>7){var s=t.split(","),a=(n||(e<0?"rgb(0,0,0)":"rgb(255,255,255)")).split(","),l=r(s[0].slice(4)),c=r(s[1]),d=r(s[2]);return"rgb("+(i((r(a[0].slice(4))-l)*o)+l)+","+(i((r(a[1])-c)*o)+c)+","+(i((r(a[2])-d)*o)+d)+")"}var u=(s=r(t.slice(1),16))>>16,p=s>>8&255,f=255&s;return"#"+(16777216+65536*(i((((a=r((n||(e<0?"#000000":"#FFFFFF")).slice(1),16))>>16)-u)*o)+u)+256*(i(((a>>8&255)-p)*o)+p)+(i(((255&a)-f)*o)+f)).toString(16).slice(1)}function sortable_decrease_overlap_to_sort(e,t){var n=$(this),o=t.helper.outerWidth();n.children().each(function(){if($(this).hasClass("ui-sortable-helper")||$(this).hasClass("ui-sortable-placeholder"))return!0;var e=Math.abs(t.position.left-$(this).position().left),i=t.position.left>$(this).position().left;return o-e>o/1.1&&e<o?(i?$(".ui-sortable-placeholder",n).insertBefore($(this)):$(".ui-sortable-placeholder",n).insertAfter($(this)),!1):void 0})}function sticky_navbar(){function e(e,t=!1){window.setTimeout(()=>{t?e.classList.add("is-stuck"):e.classList.remove("is-stuck")},50)}const t=document.querySelector(".js-menus");let n=.5*(document.querySelector("#main_menu").offsetHeight+document.querySelector("#main_menu").offsetTop);new IntersectionObserver(([n])=>{n.intersectionRatio<.7?e(n.target,!0):1==n.intersectionRatio&&(t.classList.add("sticky-navbar-active"),e(n.target,!1))},{root:document.querySelector("body"),threshold:[.6,1],rootMargin:`-${n}px 0px 0px 0px`}).observe(t),jQuery(function(e){const t=document.documentElement;if(!document.querySelector(".admin-toolbar"))return!1;t.style.setProperty("--toolbar-height",e(".admin-toolbar").outerHeight().toString()+"px")})}function listOverlayColors(){return["primary","primary-counter","secondary","secondary-counter","tertiary","tertiary-counter","dark","tone","white","default","transparent"]}function offSetToolbarTop(e,t){var n=t.outerHeight()+"px",o=n.replace(/[^-\d\.]/g,"");$(e).offset().top>$(window).scrollTop()+$(window).height()-o?t.css("top","-"+n):t.css("top","")}function isSelectorPresent(e){return null!=document.querySelector(e)}function isPageTypePresent(e){return $(".js-page-type").data("page-type")==e}(function(){(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]"}}).call(this)}).call(this);var e=this.Rails;(function(){(function(){var t,n;n=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,e.matches=function(e,t){return null!=t.exclude?n.call(e,t.selector)&&!n.call(e,t.exclude):n.call(e,t)},t="_ujsData",e.getData=function(e,n){var o;return null!=(o=e[t])?o[n]:void 0},e.setData=function(e,n,o){return null==e[t]&&(e[t]={}),e[t][n]=o},e.isContentEditable=function(e){var t;for(t=!1;;){if(e.isContentEditable){t=!0;break}if(!(e=e.parentElement))break}return t},e.$=function(e){return Array.prototype.slice.call(document.querySelectorAll(e))}}).call(this),function(){var t,n,o;t=e.$,o=e.csrfToken=function(){var e;return(e=document.querySelector("meta[name=csrf-token]"))&&e.content},n=e.csrfParam=function(){var e;return(e=document.querySelector("meta[name=csrf-param]"))&&e.content},e.CSRFProtection=function(e){var t;if(null!=(t=o()))return e.setRequestHeader("X-CSRF-Token",t)},e.refreshCSRFTokens=function(){var e,i;if(i=o(),e=n(),null!=i&&null!=e)return t('form input[name="'+e+'"]').forEach(function(e){return e.value=i})}}.call(this),function(){var t,n,o;o=e.matches,"function"!=typeof(t=window.CustomEvent)&&((t=function(e,t){var n;return(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}).prototype=window.Event.prototype),n=e.fire=function(e,n,o){var i;return i=new t(n,{bubbles:!0,cancelable:!0,detail:o}),e.dispatchEvent(i),!i.defaultPrevented},e.stopEverything=function(e){return n(e.target,"ujs:everythingStopped"),e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},e.delegate=function(e,t,n,i){return e.addEventListener(n,function(e){var n;for(n=e.target;n instanceof Element&&!o(n,t);)n=n.parentNode;if(n instanceof Element&&!1===i.call(n,e))return e.preventDefault(),e.stopPropagation()})}}.call(this),function(){var t,n,o,i,r,s;n=e.CSRFProtection,i=e.fire,t={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},e.ajax=function(e){var t;return e=r(e),t=o(e,function(){var n;return n=s(t.response,t.getResponseHeader("Content-Type")),2===Math.floor(t.status/100)?"function"==typeof e.success&&e.success(n,t.statusText,t):"function"==typeof e.error&&e.error(n,t.statusText,t),"function"==typeof e.complete?e.complete(t,t.statusText):void 0}),"function"==typeof e.beforeSend&&e.beforeSend(t,e),t.readyState===XMLHttpRequest.OPENED?t.send(e.data):i(document,"ajaxStop")},r=function(e){return e.type=e.type.toUpperCase(),"GET"===e.type&&e.data&&(e.url.indexOf("?")<0?e.url+="?"+e.data:e.url+="&"+e.data),null==t[e.dataType]&&(e.dataType="*"),e.accept=t[e.dataType],"*"!==e.dataType&&(e.accept+=", */*; q=0.01"),e},o=function(e,t){var o;return(o=new XMLHttpRequest).open(e.type,e.url,!0),o.setRequestHeader("Accept",e.accept),"string"==typeof e.data&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),n(o),o.withCredentials=!!e.withCredentials,o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE)return t(o)},o},s=function(e,t){var n,o;if("string"==typeof e&&"string"==typeof t)if(t.match(/\bjson\b/))try{e=JSON.parse(e)}catch(undefined){}else if(t.match(/\bjavascript\b/))(o=document.createElement("script")).innerHTML=e,document.body.appendChild(o);else if(t.match(/\b(xml|html|svg)\b/)){n=new DOMParser,t=t.replace(/;.+/,"");try{e=n.parseFromString(e,t)}catch(undefined){}}return e},e.href=function(e){return e.href},e.isCrossDomain=function(e){var t,n,o;(n=document.createElement("a")).href=location.href,o=document.createElement("a");try{return o.href=e,!((!o.protocol||":"===o.protocol)&&!o.host||n.protocol+"//"+n.host==o.protocol+"//"+o.host)}catch(t){return t,!0}}}.call(this),function(){var t,n;t=e.matches,n=function(e){return Array.prototype.slice.call(e)},e.serializeElement=function(e,o){var i,r;return i=[e],t(e,"form")&&(i=n(e.elements)),r=[],i.forEach(function(e){if(e.name)return t(e,"select")?n(e.options).forEach(function(t){if(t.selected)return r.push({name:e.name,value:t.value})}):e.checked||-1===["radio","checkbox","submit"].indexOf(e.type)?r.push({name:e.name,value:e.value}):void 0}),o&&r.push(o),r.map(function(e){return null!=e.name?encodeURIComponent(e.name)+"="+encodeURIComponent(e.value):e}).join("&")},e.formElements=function(e,o){return t(e,"form")?n(e.elements).filter(function(e){return t(e,o)}):n(e.querySelectorAll(o))}}.call(this),function(){var t,n,o;n=e.fire,o=e.stopEverything,e.handleConfirm=function(e){if(!t(this))return o(e)},t=function(e){var t,o,i;if(!(i=e.getAttribute("data-confirm")))return!0;if(t=!1,n(e,"confirm")){try{t=confirm(i)}catch(undefined){}o=n(e,"confirm:complete",[t])}return t&&o}}.call(this),function(){var t,n,o,i,r,s,a,l,c,d,u,p;d=e.matches,l=e.getData,u=e.setData,p=e.stopEverything,a=e.formElements,c=e.isContentEditable,e.enableElement=function(t){var n;if(n=t instanceof Event?t.target:t,!c(n))return d(n,e.linkDisableSelector)?s(n):d(n,e.buttonDisableSelector)||d(n,e.formEnableSelector)?i(n):d(n,e.formSubmitSelector)?r(n):void 0},e.disableElement=function(i){var r;if(r=i instanceof Event?i.target:i,!c(r))return d(r,e.linkDisableSelector)?o(r):d(r,e.buttonDisableSelector)||d(r,e.formDisableSelector)?t(r):d(r,e.formSubmitSelector)?n(r):void 0},o=function(e){var t;return null!=(t=e.getAttribute("data-disable-with"))&&(u(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t),e.addEventListener("click",p),u(e,"ujs:disabled",!0)},s=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(e.innerHTML=t,u(e,"ujs:enable-with",null)),e.removeEventListener("click",p),u(e,"ujs:disabled",null)},n=function(n){return a(n,e.formDisableSelector).forEach(t)},t=function(e){var t;return null!=(t=e.getAttribute("data-disable-with"))&&(d(e,"button")?(u(e,"ujs:enable-with",e.innerHTML),e.innerHTML=t):(u(e,"ujs:enable-with",e.value),e.value=t)),e.disabled=!0,u(e,"ujs:disabled",!0)},r=function(t){return a(t,e.formEnableSelector).forEach(i)},i=function(e){var t;return null!=(t=l(e,"ujs:enable-with"))&&(d(e,"button")?e.innerHTML=t:e.value=t,u(e,"ujs:enable-with",null)),e.disabled=!1,u(e,"ujs:disabled",null)}}.call(this),function(){var t,n;n=e.stopEverything,t=e.isContentEditable,e.handleMethod=function(o){var i,r,s,a,l,c,d;if((d=(c=this).getAttribute("data-method"))&&!t(this))return l=e.href(c),r=e.csrfToken(),i=e.csrfParam(),s=document.createElement("form"),a="<input name='_method' value='"+d+"' type='hidden' />",null==i||null==r||e.isCrossDomain(l)||(a+="<input name='"+i+"' value='"+r+"' type='hidden' />"),a+='<input type="submit" />',s.method="post",s.action=l,s.target=c.target,s.innerHTML=a,s.style.display="none",document.body.appendChild(s),s.querySelector('[type="submit"]').click(),n(o)}}.call(this),function(){var t,n,o,i,r,s,a,l,c,d,u=[].slice;a=e.matches,o=e.getData,c=e.setData,n=e.fire,d=e.stopEverything,t=e.ajax,r=e.isCrossDomain,l=e.serializeElement,i=e.isContentEditable,s=function(e){var t;return null!=(t=e.getAttribute("data-remote"))&&"false"!==t},e.handleRemote=function(p){var f,h,g,m,v,y,b;return!s(m=this)||(n(m,"ajax:before")?i(m)?(n(m,"ajax:stopped"),!1):(b=m.getAttribute("data-with-credentials"),g=m.getAttribute("data-type")||"script",a(m,e.formSubmitSelector)?(f=o(m,"ujs:submit-button"),v=o(m,"ujs:submit-button-formmethod")||m.method,y=o(m,"ujs:submit-button-formaction")||m.getAttribute("action")||location.href,"GET"===v.toUpperCase()&&(y=y.replace(/\?.*$/,"")),"multipart/form-data"===m.enctype?(h=new FormData(m),null!=f&&h.append(f.name,f.value)):h=l(m,f),c(m,"ujs:submit-button",null),c(m,"ujs:submit-button-formmethod",null),c(m,"ujs:submit-button-formaction",null)):a(m,e.buttonClickSelector)||a(m,e.inputChangeSelector)?(v=m.getAttribute("data-method"),y=m.getAttribute("data-url"),h=l(m,m.getAttribute("data-params"))):(v=m.getAttribute("data-method"),y=e.href(m),h=m.getAttribute("data-params")),t({type:v||"GET",url:y,data:h,dataType:g,beforeSend:function(e,t){return n(m,"ajax:beforeSend",[e,t])?n(m,"ajax:send",[e]):(n(m,"ajax:stopped"),e.abort())},success:function(){var e;return e=1<=arguments.length?u.call(arguments,0):[],n(m,"ajax:success",e)},error:function(){var e;return e=1<=arguments.length?u.call(arguments,0):[],n(m,"ajax:error",e)},complete:function(){var e;return e=1<=arguments.length?u.call(arguments,0):[],n(m,"ajax:complete",e)},crossDomain:r(y),withCredentials:null!=b&&"false"!==b}),d(p)):(n(m,"ajax:stopped"),!1))},e.formSubmitButtonClick=function(){var e,t;if(t=(e=this).form)return e.name&&c(t,"ujs:submit-button",{name:e.name,value:e.value}),c(t,"ujs:formnovalidate-button",e.formNoValidate),c(t,"ujs:submit-button-formaction",e.getAttribute("formaction")),c(t,"ujs:submit-button-formmethod",e.getAttribute("formmethod"))},e.handleMetaClick=function(e){var t,n,o;if(o=((n=this).getAttribute("data-method")||"GET").toUpperCase(),t=n.getAttribute("data-params"),(e.metaKey||e.ctrlKey)&&"GET"===o&&!t)return e.stopImmediatePropagation()}}.call(this),function(){var t,n,o,i,r,s,a,l,c,d,u,p,f;s=e.fire,o=e.delegate,l=e.getData,t=e.$,f=e.refreshCSRFTokens,n=e.CSRFProtection,r=e.enableElement,i=e.disableElement,c=e.handleConfirm,p=e.handleRemote,a=e.formSubmitButtonClick,d=e.handleMetaClick,u=e.handleMethod,"undefined"==typeof jQuery||null===jQuery||jQuery.rails||(jQuery.rails=e,jQuery.ajaxPrefilter(function(e,t,o){if(!e.crossDomain)return n(o)})),e.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){return t(e.formEnableSelector).forEach(function(e){if(l(e,"ujs:disabled"))return r(e)}),t(e.linkDisableSelector).forEach(function(e){if(l(e,"ujs:disabled"))return r(e)})}),o(document,e.linkDisableSelector,"ajax:complete",r),o(document,e.linkDisableSelector,"ajax:stopped",r),o(document,e.buttonDisableSelector,"ajax:complete",r),o(document,e.buttonDisableSelector,"ajax:stopped",r),o(document,e.linkClickSelector,"click",c),o(document,e.linkClickSelector,"click",d),o(document,e.linkClickSelector,"click",i),o(document,e.linkClickSelector,"click",p),o(document,e.linkClickSelector,"click",u),o(document,e.buttonClickSelector,"click",c),o(document,e.buttonClickSelector,"click",i),o(document,e.buttonClickSelector,"click",p),o(document,e.inputChangeSelector,"change",c),o(document,e.inputChangeSelector,"change",p),o(document,e.formSubmitSelector,"submit",c),o(document,e.formSubmitSelector,"submit",p),o(document,e.formSubmitSelector,"submit",function(e){return setTimeout(function(){return i(e)},13)}),o(document,e.formSubmitSelector,"ajax:send",i),o(document,e.formSubmitSelector,"ajax:complete",r),o(document,e.formInputClickSelector,"click",c),o(document,e.formInputClickSelector,"click",a),document.addEventListener("DOMContentLoaded",f),window._rails_loaded=!0},window.Rails===e&&s(document,"rails:attachBindings")&&e.start()}.call(this)}).call(this),"object"==typeof module&&module.exports?module.exports=e:"function"==typeof define&&define.amd&&define(e)}).call(this),
/*!
 * jQuery JavaScript Library v2.2.4
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-05-20T17:23Z
 */
function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=re.type(e);return"function"!==n&&!re.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function o(e,t,n){if(re.isFunction(t))return re.grep(e,function(e,o){return!!t.call(e,o,e)!==n});if(t.nodeType)return re.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ge.test(t))return re.filter(t,e,n);t=re.filter(t,e)}return re.grep(e,function(e){return K.call(t,e)>-1!==n})}function i(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function r(e){var t={};return re.each(e.match(ke)||[],function(e,n){t[n]=!0}),t}function s(){Y.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s),re.ready()}function a(){this.expando=re.expando+a.uid++}function l(e,t,n){var o;if(n===undefined&&1===e.nodeType)if(o="data-"+t.replace(je,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(o))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:$e.test(n)?re.parseJSON(n):n)}catch(i){}Te.set(e,t,n)}else n=undefined;return n}function c(e,t,n,o){var i,r=1,s=20,a=o?function(){return o.cur()}:function(){return re.css(e,t,"")},l=a(),c=n&&n[3]||(re.cssNumber[t]?"":"px"),d=(re.cssNumber[t]||"px"!==c&&+l)&&_e.exec(re.css(e,t));if(d&&d[3]!==c){c=c||d[3],n=n||[],d=+l||1;do{d/=r=r||".5",re.style(e,t,d+c)}while(r!==(r=a()/l)&&1!==r&&--s)}return n&&(d=+d||+l||0,i=n[1]?d+(n[1]+1)*n[2]:+n[2],o&&(o.unit=c,o.start=d,o.end=i)),i}function d(e,t){var n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return t===undefined||t&&re.nodeName(e,t)?re.merge([e],n):n}function u(e,t){for(var n=0,o=e.length;n<o;n++)Se.set(e[n],"globalEval",!t||Se.get(t[n],"globalEval"))}function p(e,t,n,o,i){for(var r,s,a,l,c,p,f=t.createDocumentFragment(),h=[],g=0,m=e.length;g<m;g++)if((r=e[g])||0===r)if("object"===re.type(r))re.merge(h,r.nodeType?[r]:r);else if(Me.test(r)){for(s=s||f.appendChild(t.createElement("div")),a=(De.exec(r)||["",""])[1].toLowerCase(),l=He[a]||He._default,s.innerHTML=l[1]+re.htmlPrefilter(r)+l[2],p=l[0];p--;)s=s.lastChild;re.merge(h,s.childNodes),(s=f.firstChild).textContent=""}else h.push(t.createTextNode(r));for(f.textContent="",g=0;r=h[g++];)if(o&&re.inArray(r,o)>-1)i&&i.push(r);else if(c=re.contains(r.ownerDocument,r),s=d(f.appendChild(r),"script"),c&&u(s),n)for(p=0;r=s[p++];)Le.test(r.type||"")&&n.push(r);return f}function f(){return!0}function h(){return!1}function g(){try{return Y.activeElement}catch(e){}}function m(e,t,n,o,i,r){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(o=o||n,n=undefined),t)m(e,a,n,o,t[a],r);return e}if(null==o&&null==i?(i=n,o=n=undefined):null==i&&("string"==typeof n?(i=o,o=undefined):(i=o,o=n,n=undefined)),!1===i)i=h;else if(!i)return e;return 1===r&&(s=i,(i=function(e){return re().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=re.guid++)),e.each(function(){re.event.add(this,t,i,o,n)})}function v(e,t){return re.nodeName(e,"table")&&re.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function y(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function b(e){var t=Ue.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function w(e,t){var n,o,i,r,s,a,l,c;if(1===t.nodeType){if(Se.hasData(e)&&(r=Se.access(e),s=Se.set(t,r),c=r.events))for(i in delete s.handle,s.events={},c)for(n=0,o=c[i].length;n<o;n++)re.event.add(t,i,c[i][n]);Te.hasData(e)&&(a=Te.access(e),l=re.extend({},a),Te.set(t,l))}}function k(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ie.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function x(e,t,n,o){t=J.apply([],t);var i,r,s,a,l,c,u=0,f=e.length,h=f-1,g=t[0],m=re.isFunction(g);if(m||f>1&&"string"==typeof g&&!oe.checkClone&&We.test(g))return e.each(function(i){var r=e.eq(i);m&&(t[0]=g.call(this,i,r.html())),x(r,t,n,o)});if(f&&(r=(i=p(t,e[0].ownerDocument,!1,e,o)).firstChild,1===i.childNodes.length&&(i=r),r||o)){for(a=(s=re.map(d(i,"script"),y)).length;u<f;u++)l=i,u!==h&&(l=re.clone(l,!0,!0),a&&re.merge(s,d(l,"script"))),n.call(e[u],l,u);if(a)for(c=s[s.length-1].ownerDocument,re.map(s,b),u=0;u<a;u++)l=s[u],Le.test(l.type||"")&&!Se.access(l,"globalEval")&&re.contains(c,l)&&(l.src?re._evalUrl&&re._evalUrl(l.src):re.globalEval(l.textContent.replace(Xe,"")))}return e}function C(e,t,n){for(var o,i=t?re.filter(t,e):e,r=0;null!=(o=i[r]);r++)n||1!==o.nodeType||re.cleanData(d(o)),o.parentNode&&(n&&re.contains(o.ownerDocument,o)&&u(d(o,"script")),o.parentNode.removeChild(o));return e}function S(e,t){var n=re(t.createElement(e)).appendTo(t.body),o=re.css(n[0],"display");return n.detach(),o}function T(e){var t=Y,n=Qe[e];return n||("none"!==(n=S(e,t))&&n||((t=(Ve=(Ve||re("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=S(e,t),Ve.detach()),Qe[e]=n),n}function $(e,t,n){var o,i,r,s,a=e.style;return""!==(s=(n=n||Je(e))?n.getPropertyValue(t)||n[t]:undefined)&&s!==undefined||re.contains(e.ownerDocument,e)||(s=re.style(e,t)),n&&!oe.pixelMarginRight()&&Ge.test(s)&&Ye.test(t)&&(o=a.width,i=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=o,a.minWidth=i,a.maxWidth=r),s!==undefined?s+"":s}function j(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function E(e){if(e in it)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ot.length;n--;)if((e=ot[n]+t)in it)return e}function _(e,t,n){var o=_e.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function A(e,t,n,o,i){for(var r=n===(o?"border":"content")?4:"width"===t?1:0,s=0;r<4;r+=2)"margin"===n&&(s+=re.css(e,n+Ae[r],!0,i)),o?("content"===n&&(s-=re.css(e,"padding"+Ae[r],!0,i)),"margin"!==n&&(s-=re.css(e,"border"+Ae[r]+"Width",!0,i))):(s+=re.css(e,"padding"+Ae[r],!0,i),"padding"!==n&&(s+=re.css(e,"border"+Ae[r]+"Width",!0,i)));return s}function O(e,t,n){var o=!0,i="width"===t?e.offsetWidth:e.offsetHeight,r=Je(e),s="border-box"===re.css(e,"boxSizing",!1,r);if(i<=0||null==i){if(((i=$(e,t,r))<0||null==i)&&(i=e.style[t]),Ge.test(i))return i;o=s&&(oe.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+A(e,t,n||(s?"border":"content"),o,r)+"px"}function I(e,t){for(var n,o,i,r=[],s=0,a=e.length;s<a;s++)(o=e[s]).style&&(r[s]=Se.get(o,"olddisplay"),n=o.style.display,t?(r[s]||"none"!==n||(o.style.display=""),""===o.style.display&&Oe(o)&&(r[s]=Se.access(o,"olddisplay",T(o.nodeName)))):(i=Oe(o),"none"===n&&i||Se.set(o,"olddisplay",i?n:re.css(o,"display"))));for(s=0;s<a;s++)(o=e[s]).style&&(t&&"none"!==o.style.display&&""!==o.style.display||(o.style.display=t?r[s]||"":"none"));return e}function D(e,t,n,o,i){return new D.prototype.init(e,t,n,o,i)}function L(){return e.setTimeout(function(){rt=undefined}),rt=re.now()}function H(e,t){var n,o=0,i={height:e};for(t=t?1:0;o<4;o+=2-t)i["margin"+(n=Ae[o])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function P(e,t,n){for(var o,i=(q.tweeners[t]||[]).concat(q.tweeners["*"]),r=0,s=i.length;r<s;r++)if(o=i[r].call(n,t,e))return o}function N(e,t,n){var o,i,r,s,a,l,c,d=this,u={},p=e.style,f=e.nodeType&&Oe(e),h=Se.get(e,"fxshow");for(o in n.queue||(null==(a=re._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,re.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(c=re.css(e,"display"))?Se.get(e,"olddisplay")||T(e.nodeName):c)&&"none"===re.css(e,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),t)if(i=t[o],at.exec(i)){if(delete t[o],r=r||"toggle"===i,i===(f?"hide":"show")){if("show"!==i||!h||h[o]===undefined)continue;f=!0}u[o]=h&&h[o]||re.style(e,o)}else c=undefined;if(re.isEmptyObject(u))"inline"===("none"===c?T(e.nodeName):c)&&(p.display=c);else for(o in h?"hidden"in h&&(f=h.hidden):h=Se.access(e,"fxshow",{}),r&&(h.hidden=!f),f?re(e).show():d.done(function(){re(e).hide()}),d.done(function(){var t;for(t in Se.remove(e,"fxshow"),u)re.style(e,t,u[t])}),u)s=P(f?h[o]:0,o,d),o in h||(h[o]=s.start,f&&(s.end=s.start,s.start="width"===o||"height"===o?1:0))}function M(e,t){var n,o,i,r,s;for(n in e)if(i=t[o=re.camelCase(n)],r=e[n],re.isArray(r)&&(i=r[1],r=e[n]=r[0]),n!==o&&(e[o]=r,delete e[n]),(s=re.cssHooks[o])&&"expand"in s)for(n in r=s.expand(r),delete e[o],r)n in e||(e[n]=r[n],t[n]=i);else t[o]=i}function q(e,t,n){var o,i,r=0,s=q.prefilters.length,a=re.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=rt||L(),n=Math.max(0,c.startTime+c.duration-t),o=1-(n/c.duration||0),r=0,s=c.tweens.length;r<s;r++)c.tweens[r].run(o);return a.notifyWith(e,[c,o,n]),o<1&&s?n:(a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:re.extend({},t),opts:re.extend(!0,{specialEasing:{},easing:re.easing._default},n),originalProperties:t,originalOptions:n,startTime:rt||L(),duration:n.duration,tweens:[],createTween:function(t,n){var o=re.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(o),o},stop:function(t){var n=0,o=t?c.tweens.length:0;if(i)return this;for(i=!0;n<o;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),d=c.props;for(M(d,c.opts.specialEasing);r<s;r++)if(o=q.prefilters[r].call(c,e,d,c.opts))return re.isFunction(o.stop)&&(re._queueHooks(c.elem,c.opts.queue).stop=re.proxy(o.stop,o)),o;return re.map(d,P,c),re.isFunction(c.opts.start)&&c.opts.start.call(e,c),re.fx.timer(re.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function R(e){return e.getAttribute&&e.getAttribute("class")||""}function B(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var o,i=0,r=t.toLowerCase().match(ke)||[];if(re.isFunction(n))for(;o=r[i++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function F(e,t,n,o){function i(a){var l;return r[a]=!0,re.each(e[a]||[],function(e,a){var c=a(t,n,o);return"string"!=typeof c||s||r[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),l}var r={},s=e===jt;return i(t.dataTypes[0])||!r["*"]&&i("*")}function z(e,t){var n,o,i=re.ajaxSettings.flatOptions||{};for(n in t)t[n]!==undefined&&((i[n]?e:o||(o={}))[n]=t[n]);return o&&re.extend(!0,e,o),e}function W(e,t,n){for(var o,i,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),o===undefined&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(i in a)if(a[i]&&a[i].test(o)){l.unshift(i);break}if(l[0]in n)r=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){r=i;break}s||(s=i)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}function U(e,t,n,o){var i,r,s,a,l,c={},d=e.dataTypes.slice();if(d[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(r=d.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=d.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(i in c)if((a=i.split(" "))[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(r=a[0],d.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(u){return{state:"parsererror",error:s?u:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}function X(e,t,n,o){var i;if(re.isArray(t))re.each(t,function(t,i){n||Ot.test(e)?o(e,i):X(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,o)});else if(n||"object"!==re.type(t))o(e,t);else for(i in t)X(e+"["+i+"]",t[i],n,o)}function V(e){return re.isWindow(e)?e:9===e.nodeType&&e.defaultView}var Q=[],Y=e.document,G=Q.slice,J=Q.concat,Z=Q.push,K=Q.indexOf,ee={},te=ee.toString,ne=ee.hasOwnProperty,oe={},ie="2.2.4",re=function(e,t){return new re.fn.init(e,t)},se=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ae=/^-ms-/,le=/-([\da-z])/gi,ce=function(e,t){return t.toUpperCase()};re.fn=re.prototype={jquery:ie,constructor:re,selector:"",length:0,toArray:function(){return G.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:G.call(this)},pushStack:function(e){var t=re.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return re.each(this,e)},map:function(e){return this.pushStack(re.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(G.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:Z,sort:Q.sort,splice:Q.splice},re.extend=re.fn.extend=function(){var e,t,n,o,i,r,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||re.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(o=e[t])&&(c&&o&&(re.isPlainObject(o)||(i=re.isArray(o)))?(i?(i=!1,r=n&&re.isArray(n)?n:[]):r=n&&re.isPlainObject(n)?n:{},s[t]=re.extend(c,r,o)):o!==undefined&&(s[t]=o));return s},re.extend({expando:"jQuery"+(ie+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===re.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!re.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==re.type(e)||e.nodeType||re.isWindow(e))return!1;if(e.constructor&&!ne.call(e,"constructor")&&!ne.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return t===undefined||ne.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ee[te.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=re.trim(e))&&(1===e.indexOf("use strict")?((t=Y.createElement("script")).text=e,Y.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(ae,"ms-").replace(le,ce)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var o,i=0;if(n(e))for(o=e.length;i<o&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(se,"")},makeArray:function(e,t){var o=t||[];return null!=e&&(n(Object(e))?re.merge(o,"string"==typeof e?[e]:e):Z.call(o,e)),o},inArray:function(e,t,n){return null==t?-1:K.call(t,e,n)},merge:function(e,t){for(var n=+t.length,o=0,i=e.length;o<n;o++)e[i++]=t[o];return e.length=i,e},grep:function(e,t,n){for(var o=[],i=0,r=e.length,s=!n;i<r;i++)!t(e[i],i)!==s&&o.push(e[i]);return o},map:function(e,t,o){var i,r,s=0,a=[];if(n(e))for(i=e.length;s<i;s++)null!=(r=t(e[s],s,o))&&a.push(r);else for(s in e)null!=(r=t(e[s],s,o))&&a.push(r);return J.apply([],a)},guid:1,proxy:function(e,t){var n,o,i;return"string"==typeof t&&(n=e[t],t=e,e=n),re.isFunction(e)?(o=G.call(arguments,2),(i=function(){return e.apply(t||this,o.concat(G.call(arguments)))}).guid=e.guid=e.guid||re.guid++,i):undefined},now:Date.now,support:oe}),"function"==typeof Symbol&&(re.fn[Symbol.iterator]=Q[Symbol.iterator]),re.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ee["[object "+t+"]"]=t.toLowerCase()});var de=
/*!
 * Sizzle CSS Selector Engine v2.2.1
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2015-10-17
 */
function(e){function t(e,t,n,o){var i,r,s,a,l,c,u,f,h=t&&t.ownerDocument,g=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==g&&9!==g&&11!==g)return n;if(!o&&((t?t.ownerDocument||t:R)!==I&&O(t),t=t||I,L)){if(11!==g&&(c=ve.exec(e)))if(i=c[1]){if(9===g){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(h&&(s=h.getElementById(i))&&M(t,s)&&s.id===i)return n.push(s),n}else{if(c[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&k.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(i)),n}if(k.qsa&&!U[e+" "]&&(!H||!H.test(e))){if(1!==g)h=t,f=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(be,"\\$&"):t.setAttribute("id",a=q),r=(u=T(e)).length,l=pe.test(a)?"#"+a:"[id='"+a+"']";r--;)u[r]=l+" "+p(u[r]);f=u.join(","),h=ye.test(e)&&d(t.parentNode)||t}if(f)try{return Z.apply(n,h.querySelectorAll(f)),n}catch(m){}finally{a===q&&t.removeAttribute("id")}}}return j(e.replace(ae,"$1"),t,n,o)}function n(){function e(n,o){return t.push(n+" ")>x.cacheLength&&delete e[t.shift()],e[n+" "]=o}var t=[];return e}function o(e){return e[q]=!0,e}function i(e){var t=I.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function r(e,t){for(var n=e.split("|"),o=n.length;o--;)x.attrHandle[n[o]]=t}function s(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return o(function(t){return t=+t,o(function(n,o){for(var i,r=e([],n.length,t),s=r.length;s--;)n[i=r[s]]&&(n[i]=!(o[i]=n[i]))})})}function d(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function u(){}function p(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function f(e,t,n){var o=t.dir,i=n&&"parentNode"===o,r=F++;return t.first?function(t,n,r){for(;t=t[o];)if(1===t.nodeType||i)return e(t,n,r)}:function(t,n,s){var a,l,c,d=[B,r];if(s){for(;t=t[o];)if((1===t.nodeType||i)&&e(t,n,s))return!0}else for(;t=t[o];)if(1===t.nodeType||i){if((a=(l=(c=t[q]||(t[q]={}))[t.uniqueID]||(c[t.uniqueID]={}))[o])&&a[0]===B&&a[1]===r)return d[2]=a[2];if(l[o]=d,d[2]=e(t,n,s))return!0}}}function h(e){return e.length>1?function(t,n,o){for(var i=e.length;i--;)if(!e[i](t,n,o))return!1;return!0}:e[0]}function g(e,n,o){for(var i=0,r=n.length;i<r;i++)t(e,n[i],o);return o}function m(e,t,n,o,i){for(var r,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,o,i)||(s.push(r),c&&t.push(a)));return s}function v(e,t,n,i,r,s){return i&&!i[q]&&(i=v(i)),r&&!r[q]&&(r=v(r,s)),o(function(o,s,a,l){var c,d,u,p=[],f=[],h=s.length,v=o||g(t||"*",a.nodeType?[a]:a,[]),y=!e||!o&&t?v:m(v,p,e,a,l),b=n?r||(o?e:h||i)?[]:s:y;if(n&&n(y,b,a,l),i)for(c=m(b,f),i(c,[],a,l),d=c.length;d--;)(u=c[d])&&(b[f[d]]=!(y[f[d]]=u));if(o){if(r||e){if(r){for(c=[],d=b.length;d--;)(u=b[d])&&c.push(y[d]=u);r(null,b=[],c,l)}for(d=b.length;d--;)(u=b[d])&&(c=r?ee(o,u):p[d])>-1&&(o[c]=!(s[c]=u))}}else b=m(b===s?b.splice(h,b.length):b),r?r(null,s,b,l):Z.apply(s,b)})}function y(e){for(var t,n,o,i=e.length,r=x.relative[e[0].type],s=r||x.relative[" "],a=r?1:0,l=f(function(e){return e===t},s,!0),c=f(function(e){return ee(t,e)>-1},s,!0),d=[function(e,n,o){var i=!r&&(o||n!==E)||((t=n).nodeType?l(e,n,o):c(e,n,o));return t=null,i}];a<i;a++)if(n=x.relative[e[a].type])d=[f(h(d),n)];else{if((n=x.filter[e[a].type].apply(null,e[a].matches))[q]){for(o=++a;o<i&&!x.relative[e[o].type];o++);return v(a>1&&h(d),a>1&&p(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),n,a<o&&y(e.slice(a,o)),o<i&&y(e=e.slice(o)),o<i&&p(e))}d.push(n)}return h(d)}function b(e,n){var i=n.length>0,r=e.length>0,s=function(o,s,a,l,c){var d,u,p,f=0,h="0",g=o&&[],v=[],y=E,b=o||r&&x.find.TAG("*",c),w=B+=null==y?1:Math.random()||.1,k=b.length;for(c&&(E=s===I||s||c);h!==k&&null!=(d=b[h]);h++){if(r&&d){for(u=0,s||d.ownerDocument===I||(O(d),a=!L);p=e[u++];)if(p(d,s||I,a)){l.push(d);break}c&&(B=w)}i&&((d=!p&&d)&&f--,o&&g.push(d))}if(f+=h,i&&h!==f){for(u=0;p=n[u++];)p(g,v,s,a);if(o){if(f>0)for(;h--;)g[h]||v[h]||(v[h]=G.call(l));v=m(v)}Z.apply(l,v),c&&!o&&v.length>0&&f+n.length>1&&t.uniqueSort(l)}return c&&(B=w,E=y),g};return i?o(s):s}var w,k,x,C,S,T,$,j,E,_,A,O,I,D,L,H,P,N,M,q="sizzle"+1*new Date,R=e.document,B=0,F=0,z=n(),W=n(),U=n(),X=function(e,t){return e===t&&(A=!0),0},V=1<<31,Q={}.hasOwnProperty,Y=[],G=Y.pop,J=Y.push,Z=Y.push,K=Y.slice,ee=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",oe="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie="\\["+ne+"*("+oe+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+oe+"))|)"+ne+"*\\]",re=":("+oe+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",se=new RegExp(ne+"+","g"),ae=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),de=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),ue=new RegExp(re),pe=new RegExp("^"+oe+"$"),fe={ID:new RegExp("^#("+oe+")"),CLASS:new RegExp("^\\.("+oe+")"),TAG:new RegExp("^("+oe+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=/'|\\/g,we=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),ke=function(e,t,n){var o="0x"+t-65536;return o!=o||n?t:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)},xe=function(){O()};try{Z.apply(Y=K.call(R.childNodes),R.childNodes),Y[R.childNodes.length].nodeType}catch(Ce){Z={apply:Y.length?function(e,t){J.apply(e,K.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}for(w in k=t.support={},S=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},O=t.setDocument=function(e){var t,n,o=e?e.ownerDocument||e:R;return o!==I&&9===o.nodeType&&o.documentElement?(D=(I=o).documentElement,L=!S(I),(n=I.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",xe,!1):n.attachEvent&&n.attachEvent("onunload",xe)),k.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),k.getElementsByTagName=i(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),k.getElementsByClassName=me.test(I.getElementsByClassName),k.getById=i(function(e){return D.appendChild(e).id=q,!I.getElementsByName||!I.getElementsByName(q).length}),k.getById?(x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&L){var n=t.getElementById(e);return n?[n]:[]}},x.filter.ID=function(e){var t=e.replace(we,ke);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(we,ke);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),x.find.TAG=k.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):k.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],i=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[i++];)1===n.nodeType&&o.push(n);return o}return r},x.find.CLASS=k.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&L)return t.getElementsByClassName(e)},P=[],H=[],(k.qsa=me.test(I.querySelectorAll))&&(i(function(e){D.appendChild(e).innerHTML="<a id='"+q+"'></a><select id='"+q+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&H.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||H.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+q+"-]").length||H.push("~="),e.querySelectorAll(":checked").length||H.push(":checked"),e.querySelectorAll("a#"+q+"+*").length||H.push(".#.+[+~]")}),i(function(e){var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&H.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),H.push(",.*:")})),(k.matchesSelector=me.test(N=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&i(function(e){k.disconnectedMatch=N.call(e,"div"),N.call(e,"[s!='']:x"),P.push("!=",re)}),H=H.length&&new RegExp(H.join("|")),P=P.length&&new RegExp(P.join("|")),t=me.test(D.compareDocumentPosition),M=t||me.test(D.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},X=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!k.sortDetached&&t.compareDocumentPosition(e)===n?e===I||e.ownerDocument===R&&M(R,e)?-1:t===I||t.ownerDocument===R&&M(R,t)?1:_?ee(_,e)-ee(_,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,o=0,i=e.parentNode,r=t.parentNode,a=[e],l=[t];if(!i||!r)return e===I?-1:t===I?1:i?-1:r?1:_?ee(_,e)-ee(_,t):0;if(i===r)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;a[o]===l[o];)o++;return o?s(a[o],l[o]):a[o]===R?-1:l[o]===R?1:0},I):I},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==I&&O(e),n=n.replace(de,"='$1']"),k.matchesSelector&&L&&!U[n+" "]&&(!P||!P.test(n))&&(!H||!H.test(n)))try{var o=N.call(e,n);if(o||k.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(Ce){}return t(n,I,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==I&&O(e),M(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==I&&O(e);var n=x.attrHandle[t.toLowerCase()],o=n&&Q.call(x.attrHandle,t.toLowerCase())?n(e,t,!L):undefined;return o!==undefined?o:k.attributes||!L?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],o=0,i=0;if(A=!k.detectDuplicates,_=!k.sortStable&&e.slice(0),e.sort(X),A){for(;t=e[i++];)t===e[i]&&(o=n.push(i));for(;o--;)e.splice(n[o],1)}return _=null,e},C=t.getText=function(e){var t,n="",o=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[o++];)n+=C(t);return n},(x=t.selectors={cacheLength:50,createPseudo:o,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(we,ke),e[3]=(e[3]||e[4]||e[5]||"").replace(we,ke),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ue.test(n)&&(t=T(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(we,ke).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,o){return function(i){var r=t.attr(i,e);return null==r?"!="===n:!n||(r+="","="===n?r===o:"!="===n?r!==o:"^="===n?o&&0===r.indexOf(o):"*="===n?o&&r.indexOf(o)>-1:"$="===n?o&&r.slice(-o.length)===o:"~="===n?(" "+r.replace(se," ")+" ").indexOf(o)>-1:"|="===n&&(r===o||r.slice(0,o.length+1)===o+"-"))}},CHILD:function(e,t,n,o,i){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===o&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,d,u,p,f,h,g=r!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(r){for(;g;){for(p=t;p=p[g];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?m.firstChild:m.lastChild],s&&y){for(b=(f=(c=(d=(u=(p=m)[q]||(p[q]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]||[])[0]===B&&c[1])&&c[2],p=f&&m.childNodes[f];p=++f&&p&&p[g]||(b=f=0)||h.pop();)if(1===p.nodeType&&++b&&p===t){d[e]=[B,f,b];break}}else if(y&&(b=f=(c=(d=(u=(p=t)[q]||(p[q]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]||[])[0]===B&&c[1]),!1===b)for(;(p=++f&&p&&p[g]||(b=f=0)||h.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((d=(u=p[q]||(p[q]={}))[p.uniqueID]||(u[p.uniqueID]={}))[e]=[B,b]),p!==t)););return(b-=i)===o||b%o==0&&b/o>=0}}},PSEUDO:function(e,n){var i,r=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return r[q]?r(n):r.length>1?(i=[e,e,"",n],x.setFilters.hasOwnProperty(e.toLowerCase())?o(function(e,t){for(var o,i=r(e,n),s=i.length;s--;)e[o=ee(e,i[s])]=!(t[o]=i[s])}):function(e){return r(e,0,i)}):r}},pseudos:{not:o(function(e){var t=[],n=[],i=$(e.replace(ae,"$1"));return i[q]?o(function(e,t,n,o){for(var r,s=i(e,null,o,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))}):function(e,o,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}}),has:o(function(e){return function(n){return t(e,n).length>0}}),contains:o(function(e){return e=e.replace(we,ke),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:o(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,ke).toLowerCase(),function(t){var n;do{if(n=L?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===D},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[n<0?n+t:n]}),even:c(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var o=n<0?n+t:n;--o>=0;)e.push(o);return e}),gt:c(function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})x.pseudos[w]=l(w);return u.prototype=x.filters=x.pseudos,x.setFilters=new u,T=t.tokenize=function(e,n){var o,i,r,s,a,l,c,d=W[e+" "];if(d)return n?0:d.slice(0);for(a=e,l=[],c=x.preFilter;a;){for(s in o&&!(i=le.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(r=[])),o=!1,(i=ce.exec(a))&&(o=i.shift(),r.push({value:o,type:i[0].replace(ae," ")}),a=a.slice(o.length)),x.filter)!(i=fe[s].exec(a))||c[s]&&!(i=c[s](i))||(o=i.shift(),r.push({value:o,type:s,matches:i}),a=a.slice(o.length));if(!o)break}return n?a.length:a?t.error(e):W(e,l).slice(0)},$=t.compile=function(e,t){var n,o=[],i=[],r=U[e+" "];if(!r){for(t||(t=T(e)),n=t.length;n--;)(r=y(t[n]))[q]?o.push(r):i.push(r);(r=U(e,b(i,o))).selector=e}return r},j=t.select=function(e,t,n,o){var i,r,s,a,l,c="function"==typeof e&&e,u=!o&&T(e=c.selector||e);if(n=n||[],1===u.length){if((r=u[0]=u[0].slice(0)).length>2&&"ID"===(s=r[0]).type&&k.getById&&9===t.nodeType&&L&&x.relative[r[1].type]){if(!(t=(x.find.ID(s.matches[0].replace(we,ke),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(i=fe.needsContext.test(e)?0:r.length;i--&&(s=r[i],!x.relative[a=s.type]);)if((l=x.find[a])&&(o=l(s.matches[0].replace(we,ke),ye.test(r[0].type)&&d(t.parentNode)||t))){if(r.splice(i,1),!(e=o.length&&p(r)))return Z.apply(n,o),n;break}}return(c||$(e,u))(o,t,!L,n,!t||ye.test(e)&&d(t.parentNode)||t),n},k.sortStable=q.split("").sort(X).join("")===q,k.detectDuplicates=!!A,O(),k.sortDetached=i(function(e){return 1&e.compareDocumentPosition(I.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||r("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),k.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||r("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||r(te,function(e,t,n){var o;if(!n)return!0===e[t]?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null}),t}(e);re.find=de,re.expr=de.selectors,re.expr[":"]=re.expr.pseudos,re.uniqueSort=re.unique=de.uniqueSort,re.text=de.getText,re.isXMLDoc=de.isXML,re.contains=de.contains;var ue=function(e,t,n){for(var o=[],i=n!==undefined;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&re(e).is(n))break;o.push(e)}return o},pe=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},fe=re.expr.match.needsContext,he=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ge=/^.[^:#\[\.,]*$/;re.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?re.find.matchesSelector(o,e)?[o]:[]:re.find.matches(e,re.grep(t,function(e){return 1===e.nodeType}))},re.fn.extend({find:function(e){var t,n=this.length,o=[],i=this;if("string"!=typeof e)return this.pushStack(re(e).filter(function(){for(t=0;t<n;t++)if(re.contains(i[t],this))return!0}));for(t=0;t<n;t++)re.find(e,i[t],o);return(o=this.pushStack(n>1?re.unique(o):o)).selector=this.selector?this.selector+" "+e:e,o},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&fe.test(e)?re(e):e||[],!1).length}});var me,ve=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(re.fn.init=function(e,t,n){var o,i;if(!e)return this;if(n=n||me,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ve.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof re?t[0]:t,re.merge(this,re.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:Y,!0)),he.test(o[1])&&re.isPlainObject(t))for(o in t)re.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(i=Y.getElementById(o[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=Y,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):re.isFunction(e)?n.ready!==undefined?n.ready(e):e(re):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),re.makeArray(e,this))}).prototype=re.fn,me=re(Y);var ye=/^(?:parents|prev(?:Until|All))/,be={children:!0,contents:!0,next:!0,prev:!0};re.fn.extend({has:function(e){var t=re(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(re.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,o=0,i=this.length,r=[],s=fe.test(e)||"string"!=typeof e?re(e,t||this.context):0;o<i;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&re.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?re.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?K.call(re(e),this[0]):K.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(re.uniqueSort(re.merge(this.get(),re(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),re.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ue(e,"parentNode")},parentsUntil:function(e,t,n){return ue(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return ue(e,"nextSibling")},prevAll:function(e){return ue(e,"previousSibling")},nextUntil:function(e,t,n){return ue(e,"nextSibling",n)},prevUntil:function(e,t,n){return ue(e,"previousSibling",n)},siblings:function(e){return pe((e.parentNode||{}).firstChild,e)},children:function(e){return pe(e.firstChild)},contents:function(e){return e.contentDocument||re.merge([],e.childNodes)}},function(e,t){re.fn[e]=function(n,o){var i=re.map(this,t,n);return"Until"!==e.slice(-5)&&(o=n),o&&"string"==typeof o&&(i=re.filter(o,i)),this.length>1&&(be[e]||re.uniqueSort(i),ye.test(e)&&i.reverse()),this.pushStack(i)}});var we,ke=/\S+/g;re.Callbacks=function(e){e="string"==typeof e?r(e):re.extend({},e);var t,n,o,i,s=[],a=[],l=-1,c=function(){for(i=e.once,o=t=!0;a.length;l=-1)for(n=a.shift();++l<s.length;)!1===s[l].apply(n[0],n[1])&&e.stopOnFalse&&(l=s.length,n=!1);e.memory||(n=!1),t=!1,i&&(s=n?[]:"")},d={add:function(){return s&&(n&&!t&&(l=s.length-1,a.push(n)),function o(t){re.each(t,function(t,n){re.isFunction(n)?e.unique&&d.has(n)||s.push(n):n&&n.length&&"string"!==re.type(n)&&o(n)})}(arguments),n&&!t&&c()),this},remove:function(){return re.each(arguments,function(e,t){for(var n;(n=re.inArray(t,s,n))>-1;)s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?re.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=a=[],n||(s=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},re.extend({Deferred:function(e){var t=[["resolve","done",re.Callbacks("once memory"),"resolved"],["reject","fail",re.Callbacks("once memory"),"rejected"],["notify","progress",re.Callbacks("memory")]],n="pending",o={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return re.Deferred(function(n){re.each(t,function(t,r){var s=re.isFunction(e[t])&&e[t];i[r[1]](function(){var e=s&&s.apply(this,arguments);e&&re.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this===o?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?re.extend(e,o):o}},i={};return o.pipe=o.then,re.each(t,function(e,r){var s=r[2],a=r[3];o[r[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),i[r[0]]=function(){return i[r[0]+"With"](this===i?o:this,arguments),this},i[r[0]+"With"]=s.fireWith}),o.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,o,i=0,r=G.call(arguments),s=r.length,a=1!==s||e&&re.isFunction(e.promise)?s:0,l=1===a?e:re.Deferred(),c=function(e,n,o){return function(i){n[e]=this,o[e]=arguments.length>1?G.call(arguments):i,o===t?l.notifyWith(n,o):--a||l.resolveWith(n,o)}};if(s>1)for(t=new Array(s),n=new Array(s),o=new Array(s);i<s;i++)r[i]&&re.isFunction(r[i].promise)?r[i].promise().progress(c(i,n,t)).done(c(i,o,r)).fail(l.reject):--a;return a||l.resolveWith(o,r),l.promise()}}),re.fn.ready=function(e){return re.ready.promise().done(e),this},re.extend({isReady:!1,readyWait:1,holdReady:function(e){e?re.readyWait++:re.ready(!0)},ready:function(e){(!0===e?--re.readyWait:re.isReady)||(re.isReady=!0,!0!==e&&--re.readyWait>0||(we.resolveWith(Y,[re]),re.fn.triggerHandler&&(re(Y).triggerHandler("ready"),re(Y).off("ready"))))}}),re.ready.promise=function(t){return we||(we=re.Deferred(),"complete"===Y.readyState||"loading"!==Y.readyState&&!Y.documentElement.doScroll?e.setTimeout(re.ready):(Y.addEventListener("DOMContentLoaded",s),e.addEventListener("load",s))),we.promise(t)},re.ready.promise();var xe=function(e,t,n,o,i,r,s){var a=0,l=e.length,c=null==n;if("object"===re.type(n))for(a in i=!0,n)xe(e,t,a,n[a],!0,r,s);else if(o!==undefined&&(i=!0,re.isFunction(o)||(s=!0),c&&(s?(t.call(e,o),t=null):(c=t,t=function(e,t,n){return c.call(re(e),n)})),t))for(;a<l;a++)t(e[a],n,s?o:o.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):l?t(e[0],n):r},Ce=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};a.uid=1,a.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!Ce(e))return{};var t=e[this.expando];return t||(t={},Ce(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var o,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(o in t)i[o]=t[o];return i},get:function(e,t){return t===undefined?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var o;return t===undefined||t&&"string"==typeof t&&n===undefined?(o=this.get(e,t))!==undefined?o:this.get(e,re.camelCase(t)):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,o,i,r=e[this.expando];if(r!==undefined){if(t===undefined)this.register(e);else{re.isArray(t)?o=t.concat(t.map(re.camelCase)):(i=re.camelCase(t),o=t in r?[t,i]:(o=i)in r?[o]:o.match(ke)||[]),n=o.length;for(;n--;)delete r[o[n]]}(t===undefined||re.isEmptyObject(r))&&(e.nodeType?e[this.expando]=undefined:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==undefined&&!re.isEmptyObject(t)}};var Se=new a,Te=new a,$e=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,je=/[A-Z]/g;re.extend({hasData:function(e){return Te.hasData(e)||Se.hasData(e)},data:function(e,t,n){return Te.access(e,t,n)},removeData:function(e,t){Te.remove(e,t)},_data:function(e,t,n){return Se.access(e,t,n)},_removeData:function(e,t){Se.remove(e,t)}}),re.fn.extend({data:function(e,t){var n,o,i,r=this[0],s=r&&r.attributes;if(e===undefined){if(this.length&&(i=Te.get(r),1===r.nodeType&&!Se.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(o=s[n].name).indexOf("data-")&&(o=re.camelCase(o.slice(5)),l(r,o,i[o]));Se.set(r,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Te.set(this,e)}):xe(this,function(t){var n,o;if(r&&t===undefined)return(n=Te.get(r,e)||Te.get(r,e.replace(je,"-$&").toLowerCase()))!==undefined?n:(o=re.camelCase(e),(n=Te.get(r,o))!==undefined?n:(n=l(r,o,undefined))!==undefined?n:void 0);o=re.camelCase(e),this.each(function(){var n=Te.get(this,o);Te.set(this,o,t),e.indexOf("-")>-1&&n!==undefined&&Te.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Te.remove(this,e)})}}),re.extend({queue:function(e,t,n){var o;if(e)return t=(t||"fx")+"queue",o=Se.get(e,t),n&&(!o||re.isArray(n)?o=Se.access(e,t,re.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=re.queue(e,t),o=n.length,i=n.shift(),r=re._queueHooks(e,t),s=function(){re.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),o--),i&&("fx"===t&&n.unshift("inprogress"),delete r.stop,i.call(e,s,r)),!o&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Se.get(e,n)||Se.access(e,n,{empty:re.Callbacks("once memory").add(function(){Se.remove(e,[t+"queue",n])})})}}),re.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?re.queue(this[0],e):t===undefined?this:this.each(function(){var n=re.queue(this,e,t);re._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&re.dequeue(this,e)})},dequeue:function(e){return this.each(function(){re.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,o=1,i=re.Deferred(),r=this,s=this.length,a=function(){--o||i.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=undefined),e=e||"fx";s--;)(n=Se.get(r[s],e+"queueHooks"))&&n.empty&&(o++,n.empty.add(a));return a(),i.promise(t)}});var Ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_e=new RegExp("^(?:([+-])=|)("+Ee+")([a-z%]*)$","i"),Ae=["Top","Right","Bottom","Left"],Oe=function(e,t){return e=t||e,"none"===re.css(e,"display")||!re.contains(e.ownerDocument,e)},Ie=/^(?:checkbox|radio)$/i,De=/<([\w:-]+)/,Le=/^$|\/(?:java|ecma)script/i,He={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};He.optgroup=He.option,He.tbody=He.tfoot=He.colgroup=He.caption=He.thead,He.th=He.td;var Pe,Ne,Me=/<|&#?\w+;/;Pe=Y.createDocumentFragment().appendChild(Y.createElement("div")),(Ne=Y.createElement("input")).setAttribute("type","radio"),Ne.setAttribute("checked","checked"),Ne.setAttribute("name","t"),Pe.appendChild(Ne),oe.checkClone=Pe.cloneNode(!0).cloneNode(!0).lastChild.checked,Pe.innerHTML="<textarea>x</textarea>",oe.noCloneChecked=!!Pe.cloneNode(!0).lastChild.defaultValue;var qe=/^key/,Re=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Be=/^([^.]*)(?:\.(.+)|)/;re.event={global:{},add:function(e,t,n,o,i){var r,s,a,l,c,d,u,p,f,h,g,m=Se.get(e);if(m)for(n.handler&&(n=(r=n).handler,i=r.selector),n.guid||(n.guid=re.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(t){return void 0!==re&&re.event.triggered!==t.type?re.event.dispatch.apply(e,arguments):undefined}),c=(t=(t||"").match(ke)||[""]).length;c--;)f=g=(a=Be.exec(t[c])||[])[1],h=(a[2]||"").split(".").sort(),f&&(u=re.event.special[f]||{},f=(i?u.delegateType:u.bindType)||f,u=re.event.special[f]||{},d=re.extend({type:f,origType:g,data:o,handler:n,guid:n.guid,selector:i,needsContext:i&&re.expr.match.needsContext.test(i),namespace:h.join(".")},r),(p=l[f])||((p=l[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,o,h,s)||e.addEventListener&&e.addEventListener(f,s)),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,d):p.push(d),re.event.global[f]=!0)},remove:function(e,t,n,o,i){var r,s,a,l,c,d,u,p,f,h,g,m=Se.hasData(e)&&Se.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(ke)||[""]).length;c--;)if(f=g=(a=Be.exec(t[c])||[])[1],h=(a[2]||"").split(".").sort(),f){for(u=re.event.special[f]||{},p=l[f=(o?u.delegateType:u.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=p.length;r--;)d=p[r],!i&&g!==d.origType||n&&n.guid!==d.guid||a&&!a.test(d.namespace)||o&&o!==d.selector&&("**"!==o||!d.selector)||(p.splice(r,1),d.selector&&p.delegateCount--,u.remove&&u.remove.call(e,d));s&&!p.length&&(u.teardown&&!1!==u.teardown.call(e,h,m.handle)||re.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)re.event.remove(e,f+t[c],n,o,!0);re.isEmptyObject(l)&&Se.remove(e,"handle events")}},dispatch:function(e){e=re.event.fix(e);var t,n,o,i,r,s=[],a=G.call(arguments),l=(Se.get(this,"events")||{})[e.type]||[],c=re.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(s=re.event.handlers.call(this,e,l),t=0;(i=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(r=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(r.namespace)||(e.handleObj=r,e.data=r.data,
(o=((re.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,a))!==undefined&&!1===(e.result=o)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,o,i,r,s=[],a=t.delegateCount,l=e.target;if(a&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(o=[],n=0;n<a;n++)o[i=(r=t[n]).selector+" "]===undefined&&(o[i]=r.needsContext?re(i,this).index(l)>-1:re.find(i,this,null,[l]).length),o[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return a<t.length&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,o,i,r=t.button;return null==e.pageX&&null!=t.clientX&&(o=(n=e.target.ownerDocument||Y).documentElement,i=n.body,e.pageX=t.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)),e.which||r===undefined||(e.which=1&r?1:2&r?3:4&r?2:0),e}},fix:function(e){if(e[re.expando])return e;var t,n,o,i=e.type,r=e,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Re.test(i)?this.mouseHooks:qe.test(i)?this.keyHooks:{}),o=s.props?this.props.concat(s.props):this.props,e=new re.Event(r),t=o.length;t--;)e[n=o[t]]=r[n];return e.target||(e.target=Y),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,r):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==g()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===g()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&re.nodeName(this,"input"))return this.click(),!1},_default:function(e){return re.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},re.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},re.Event=function(e,t){if(!(this instanceof re.Event))return new re.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&!1===e.returnValue?f:h):this.type=e,t&&re.extend(this,t),this.timeStamp=e&&e.timeStamp||re.now(),this[re.expando]=!0},re.Event.prototype={constructor:re.Event,isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=f,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=f,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=f,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},re.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){re.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,o=this,i=e.relatedTarget,r=e.handleObj;return i&&(i===o||re.contains(o,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),re.fn.extend({on:function(e,t,n,o){return m(this,e,t,n,o)},one:function(e,t,n,o){return m(this,e,t,n,o,1)},off:function(e,t,n){var o,i;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,re(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=undefined),!1===n&&(n=h),this.each(function(){re.event.remove(this,e,n,t)})}});var Fe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ze=/<script|<style|<link/i,We=/checked\s*(?:[^=]|=\s*.checked.)/i,Ue=/^true\/(.*)/,Xe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;re.extend({htmlPrefilter:function(e){return e.replace(Fe,"<$1></$2>")},clone:function(e,t,n){var o,i,r,s,a=e.cloneNode(!0),l=re.contains(e.ownerDocument,e);if(!(oe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||re.isXMLDoc(e)))for(s=d(a),o=0,i=(r=d(e)).length;o<i;o++)k(r[o],s[o]);if(t)if(n)for(r=r||d(e),s=s||d(a),o=0,i=r.length;o<i;o++)w(r[o],s[o]);else w(e,a);return(s=d(a,"script")).length>0&&u(s,!l&&d(e,"script")),a},cleanData:function(e){for(var t,n,o,i=re.event.special,r=0;(n=e[r])!==undefined;r++)if(Ce(n)){if(t=n[Se.expando]){if(t.events)for(o in t.events)i[o]?re.event.remove(n,o):re.removeEvent(n,o,t.handle);n[Se.expando]=undefined}n[Te.expando]&&(n[Te.expando]=undefined)}}}),re.fn.extend({domManip:x,detach:function(e){return C(this,e,!0)},remove:function(e){return C(this,e)},text:function(e){return xe(this,function(e){return e===undefined?re.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return x(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||v(this,e).appendChild(e)})},prepend:function(){return x(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=v(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return x(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return x(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(re.cleanData(d(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return re.clone(this,e,t)})},html:function(e){return xe(this,function(e){var t=this[0]||{},n=0,o=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ze.test(e)&&!He[(De.exec(e)||["",""])[1].toLowerCase()]){e=re.htmlPrefilter(e);try{for(;n<o;n++)1===(t=this[n]||{}).nodeType&&(re.cleanData(d(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return x(this,arguments,function(t){var n=this.parentNode;re.inArray(this,e)<0&&(re.cleanData(d(this)),n&&n.replaceChild(t,this))},e)}}),re.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){re.fn[e]=function(e){for(var n,o=[],i=re(e),r=i.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),re(i[s])[t](n),Z.apply(o,n.get());return this.pushStack(o)}});var Ve,Qe={HTML:"block",BODY:"block"},Ye=/^margin/,Ge=new RegExp("^("+Ee+")(?!px)[a-z%]+$","i"),Je=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ze=function(e,t,n,o){var i,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in i=n.apply(e,o||[]),t)e.style[r]=s[r];return i},Ke=Y.documentElement;!function(){function t(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Ke.appendChild(s);var t=e.getComputedStyle(a);n="1%"!==t.top,r="2px"===t.marginLeft,o="4px"===t.width,a.style.marginRight="50%",i="4px"===t.marginRight,Ke.removeChild(s)}var n,o,i,r,s=Y.createElement("div"),a=Y.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",oe.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),re.extend(oe,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==o&&t(),o},pixelMarginRight:function(){return null==o&&t(),i},reliableMarginLeft:function(){return null==o&&t(),r},reliableMarginRight:function(){var t,n=a.appendChild(Y.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",Ke.appendChild(s),t=!parseFloat(e.getComputedStyle(n).marginRight),Ke.removeChild(s),a.removeChild(n),t}}))}();var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"},ot=["Webkit","O","Moz","ms"],it=Y.createElement("div").style;re.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,r,s,a=re.camelCase(t),l=e.style;if(t=re.cssProps[a]||(re.cssProps[a]=E(a)||a),s=re.cssHooks[t]||re.cssHooks[a],n===undefined)return s&&"get"in s&&(i=s.get(e,!1,o))!==undefined?i:l[t];"string"===(r=typeof n)&&(i=_e.exec(n))&&i[1]&&(n=c(e,t,i),r="number"),null!=n&&n==n&&("number"===r&&(n+=i&&i[3]||(re.cssNumber[a]?"":"px")),oe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&(n=s.set(e,n,o))===undefined||(l[t]=n))}},css:function(e,t,n,o){var i,r,s,a=re.camelCase(t);return t=re.cssProps[a]||(re.cssProps[a]=E(a)||a),(s=re.cssHooks[t]||re.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),i===undefined&&(i=$(e,t,o)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(r=parseFloat(i),!0===n||isFinite(r)?r||0:i):i}}),re.each(["height","width"],function(e,t){re.cssHooks[t]={get:function(e,n,o){if(n)return et.test(re.css(e,"display"))&&0===e.offsetWidth?Ze(e,tt,function(){return O(e,t,o)}):O(e,t,o)},set:function(e,n,o){var i,r=o&&Je(e),s=o&&A(e,t,o,"border-box"===re.css(e,"boxSizing",!1,r),r);return s&&(i=_e.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=re.css(e,t)),_(e,n,s)}}}),re.cssHooks.marginLeft=j(oe.reliableMarginLeft,function(e,t){if(t)return(parseFloat($(e,"marginLeft"))||e.getBoundingClientRect().left-Ze(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),re.cssHooks.marginRight=j(oe.reliableMarginRight,function(e,t){if(t)return Ze(e,{display:"inline-block"},$,[e,"marginRight"])}),re.each({margin:"",padding:"",border:"Width"},function(e,t){re.cssHooks[e+t]={expand:function(n){for(var o=0,i={},r="string"==typeof n?n.split(" "):[n];o<4;o++)i[e+Ae[o]+t]=r[o]||r[o-2]||r[0];return i}},Ye.test(e)||(re.cssHooks[e+t].set=_)}),re.fn.extend({css:function(e,t){return xe(this,function(e,t,n){var o,i,r={},s=0;if(re.isArray(t)){for(o=Je(e),i=t.length;s<i;s++)r[t[s]]=re.css(e,t[s],!1,o);return r}return n!==undefined?re.style(e,t,n):re.css(e,t)},e,t,arguments.length>1)},show:function(){return I(this,!0)},hide:function(){return I(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Oe(this)?re(this).show():re(this).hide()})}}),re.Tween=D,D.prototype={constructor:D,init:function(e,t,n,o,i,r){this.elem=e,this.prop=n,this.easing=i||re.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=r||(re.cssNumber[n]?"":"px")},cur:function(){var e=D.propHooks[this.prop];return e&&e.get?e.get(this):D.propHooks._default.get(this)},run:function(e){var t,n=D.propHooks[this.prop];return this.options.duration?this.pos=t=re.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=re.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){re.fx.step[e.prop]?re.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[re.cssProps[e.prop]]&&!re.cssHooks[e.prop]?e.elem[e.prop]=e.now:re.style(e.elem,e.prop,e.now+e.unit)}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},re.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},re.fx=D.prototype.init,re.fx.step={};var rt,st,at=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;re.Animation=re.extend(q,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return c(n.elem,e,_e.exec(t),n),n}]},tweener:function(e,t){re.isFunction(e)?(t=e,e=["*"]):e=e.match(ke);for(var n,o=0,i=e.length;o<i;o++)n=e[o],q.tweeners[n]=q.tweeners[n]||[],q.tweeners[n].unshift(t)},prefilters:[N],prefilter:function(e,t){t?q.prefilters.unshift(e):q.prefilters.push(e)}}),re.speed=function(e,t,n){var o=e&&"object"==typeof e?re.extend({},e):{complete:n||!n&&t||re.isFunction(e)&&e,duration:e,easing:n&&t||t&&!re.isFunction(t)&&t};return o.duration=re.fx.off?0:"number"==typeof o.duration?o.duration:o.duration in re.fx.speeds?re.fx.speeds[o.duration]:re.fx.speeds._default,null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){re.isFunction(o.old)&&o.old.call(this),o.queue&&re.dequeue(this,o.queue)},o},re.fn.extend({fadeTo:function(e,t,n,o){return this.filter(Oe).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(e,t,n,o){var i=re.isEmptyObject(e),r=re.speed(t,n,o),s=function(){var t=q(this,re.extend({},e),r);(i||Se.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=undefined),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",r=re.timers,s=Se.get(this);if(i)s[i]&&s[i].stop&&o(s[i]);else for(i in s)s[i]&&s[i].stop&&lt.test(i)&&o(s[i]);for(i=r.length;i--;)r[i].elem!==this||null!=e&&r[i].queue!==e||(r[i].anim.stop(n),t=!1,r.splice(i,1));!t&&n||re.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Se.get(this),o=n[e+"queue"],i=n[e+"queueHooks"],r=re.timers,s=o?o.length:0;for(n.finish=!0,re.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)o[t]&&o[t].finish&&o[t].finish.call(this);delete n.finish})}}),re.each(["toggle","show","hide"],function(e,t){var n=re.fn[t];re.fn[t]=function(e,o,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(H(t,!0),e,o,i)}}),re.each({slideDown:H("show"),slideUp:H("hide"),slideToggle:H("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){re.fn[e]=function(e,n,o){return this.animate(t,e,n,o)}}),re.timers=[],re.fx.tick=function(){var e,t=0,n=re.timers;for(rt=re.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||re.fx.stop(),rt=undefined},re.fx.timer=function(e){re.timers.push(e),e()?re.fx.start():re.timers.pop()},re.fx.interval=13,re.fx.start=function(){st||(st=e.setInterval(re.fx.tick,re.fx.interval))},re.fx.stop=function(){e.clearInterval(st),st=null},re.fx.speeds={slow:600,fast:200,_default:400},re.fn.delay=function(t,n){return t=re.fx&&re.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,o){var i=e.setTimeout(n,t);o.stop=function(){e.clearTimeout(i)}})},function(){var e=Y.createElement("input"),t=Y.createElement("select"),n=t.appendChild(Y.createElement("option"));e.type="checkbox",oe.checkOn=""!==e.value,oe.optSelected=n.selected,t.disabled=!0,oe.optDisabled=!n.disabled,(e=Y.createElement("input")).value="t",e.type="radio",oe.radioValue="t"===e.value}();var ct,dt=re.expr.attrHandle;re.fn.extend({attr:function(e,t){return xe(this,re.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){re.removeAttr(this,e)})}}),re.extend({attr:function(e,t,n){var o,i,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return"undefined"==typeof e.getAttribute?re.prop(e,t,n):(1===r&&re.isXMLDoc(e)||(t=t.toLowerCase(),i=re.attrHooks[t]||(re.expr.match.bool.test(t)?ct:undefined)),n!==undefined?null===n?void re.removeAttr(e,t):i&&"set"in i&&(o=i.set(e,n,t))!==undefined?o:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(o=i.get(e,t))?o:null==(o=re.find.attr(e,t))?undefined:o)},attrHooks:{type:{set:function(e,t){if(!oe.radioValue&&"radio"===t&&re.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o,i=0,r=t&&t.match(ke);if(r&&1===e.nodeType)for(;n=r[i++];)o=re.propFix[n]||n,re.expr.match.bool.test(n)&&(e[o]=!1),e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?re.removeAttr(e,n):e.setAttribute(n,n),n}},re.each(re.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||re.find.attr;dt[t]=function(e,t,o){var i,r;return o||(r=dt[t],dt[t]=i,i=null!=n(e,t,o)?t.toLowerCase():null,dt[t]=r),i}});var ut=/^(?:input|select|textarea|button)$/i,pt=/^(?:a|area)$/i;re.fn.extend({prop:function(e,t){return xe(this,re.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[re.propFix[e]||e]})}}),re.extend({prop:function(e,t,n){var o,i,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&re.isXMLDoc(e)||(t=re.propFix[t]||t,i=re.propHooks[t]),n!==undefined?i&&"set"in i&&(o=i.set(e,n,t))!==undefined?o:e[t]=n:i&&"get"in i&&null!==(o=i.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=re.find.attr(e,"tabindex");return t?parseInt(t,10):ut.test(e.nodeName)||pt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),oe.optSelected||(re.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),re.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){re.propFix[this.toLowerCase()]=this});var ft=/[\t\r\n\f]/g;re.fn.extend({addClass:function(e){var t,n,o,i,r,s,a,l=0;if(re.isFunction(e))return this.each(function(t){re(this).addClass(e.call(this,t,R(this)))});if("string"==typeof e&&e)for(t=e.match(ke)||[];n=this[l++];)if(i=R(n),o=1===n.nodeType&&(" "+i+" ").replace(ft," ")){for(s=0;r=t[s++];)o.indexOf(" "+r+" ")<0&&(o+=r+" ");i!==(a=re.trim(o))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,o,i,r,s,a,l=0;if(re.isFunction(e))return this.each(function(t){re(this).removeClass(e.call(this,t,R(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(ke)||[];n=this[l++];)if(i=R(n),o=1===n.nodeType&&(" "+i+" ").replace(ft," ")){for(s=0;r=t[s++];)for(;o.indexOf(" "+r+" ")>-1;)o=o.replace(" "+r+" "," ");i!==(a=re.trim(o))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):re.isFunction(e)?this.each(function(n){re(this).toggleClass(e.call(this,n,R(this),t),t)}):this.each(function(){var t,o,i,r;if("string"===n)for(o=0,i=re(this),r=e.match(ke)||[];t=r[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else e!==undefined&&"boolean"!==n||((t=R(this))&&Se.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Se.get(this,"__className__")||""))})},hasClass:function(e){var t,n,o=0;for(t=" "+e+" ";n=this[o++];)if(1===n.nodeType&&(" "+R(n)+" ").replace(ft," ").indexOf(t)>-1)return!0;return!1}});var ht=/\r/g,gt=/[\x20\t\r\n\f]+/g;re.fn.extend({val:function(e){var t,n,o,i=this[0];return arguments.length?(o=re.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=o?e.call(this,n,re(this).val()):e)?i="":"number"==typeof i?i+="":re.isArray(i)&&(i=re.map(i,function(e){return null==e?"":e+""})),(t=re.valHooks[this.type]||re.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&t.set(this,i,"value")!==undefined||(this.value=i))})):i?(t=re.valHooks[i.type]||re.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:"string"==typeof(n=i.value)?n.replace(ht,""):null==n?"":n:void 0}}),re.extend({valHooks:{option:{get:function(e){var t=re.find.attr(e,"value");return null!=t?t:re.trim(re.text(e)).replace(gt," ")}},select:{get:function(e){for(var t,n,o=e.options,i=e.selectedIndex,r="select-one"===e.type||i<0,s=r?null:[],a=r?i+1:o.length,l=i<0?a:r?i:0;l<a;l++)if(((n=o[l]).selected||l===i)&&(oe.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!re.nodeName(n.parentNode,"optgroup"))){if(t=re(n).val(),r)return t;s.push(t)}return s},set:function(e,t){for(var n,o,i=e.options,r=re.makeArray(t),s=i.length;s--;)((o=i[s]).selected=re.inArray(re.valHooks.option.get(o),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),re.each(["radio","checkbox"],function(){re.valHooks[this]={set:function(e,t){if(re.isArray(t))return e.checked=re.inArray(re(e).val(),t)>-1}},oe.checkOn||(re.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var mt=/^(?:focusinfocus|focusoutblur)$/;re.extend(re.event,{trigger:function(t,n,o,i){var r,s,a,l,c,d,u,p=[o||Y],f=ne.call(t,"type")?t.type:t,h=ne.call(t,"namespace")?t.namespace.split("."):[];if(s=a=o=o||Y,3!==o.nodeType&&8!==o.nodeType&&!mt.test(f+re.event.triggered)&&(f.indexOf(".")>-1&&(f=(h=f.split(".")).shift(),h.sort()),c=f.indexOf(":")<0&&"on"+f,(t=t[re.expando]?t:new re.Event(f,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=o),n=null==n?[t]:re.makeArray(n,[t]),u=re.event.special[f]||{},i||!u.trigger||!1!==u.trigger.apply(o,n))){if(!i&&!u.noBubble&&!re.isWindow(o)){for(l=u.delegateType||f,mt.test(l+f)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(o.ownerDocument||Y)&&p.push(a.defaultView||a.parentWindow||e)}for(r=0;(s=p[r++])&&!t.isPropagationStopped();)t.type=r>1?l:u.bindType||f,(d=(Se.get(s,"events")||{})[t.type]&&Se.get(s,"handle"))&&d.apply(s,n),(d=c&&s[c])&&d.apply&&Ce(s)&&(t.result=d.apply(s,n),!1===t.result&&t.preventDefault());return t.type=f,i||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(p.pop(),n)||!Ce(o)||c&&re.isFunction(o[f])&&!re.isWindow(o)&&((a=o[c])&&(o[c]=null),re.event.triggered=f,o[f](),re.event.triggered=undefined,a&&(o[c]=a)),t.result}},simulate:function(e,t,n){var o=re.extend(new re.Event,n,{type:e,isSimulated:!0});re.event.trigger(o,null,t)}}),re.fn.extend({trigger:function(e,t){return this.each(function(){re.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return re.event.trigger(e,t,n,!0)}}),re.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){re.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),re.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),oe.focusin="onfocusin"in e,oe.focusin||re.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){re.event.simulate(t,e.target,re.event.fix(e))};re.event.special[t]={setup:function(){var o=this.ownerDocument||this,i=Se.access(o,t);i||o.addEventListener(e,n,!0),Se.access(o,t,(i||0)+1)},teardown:function(){var o=this.ownerDocument||this,i=Se.access(o,t)-1;i?Se.access(o,t,i):(o.removeEventListener(e,n,!0),Se.remove(o,t))}}});var vt=e.location,yt=re.now(),bt=/\?/;re.parseJSON=function(e){return JSON.parse(e+"")},re.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(o){n=undefined}return n&&!n.getElementsByTagName("parsererror").length||re.error("Invalid XML: "+t),n};var wt=/#.*$/,kt=/([?&])_=[^&]*/,xt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ct=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,St=/^(?:GET|HEAD)$/,Tt=/^\/\//,$t={},jt={},Et="*/".concat("*"),_t=Y.createElement("a");_t.href=vt.href,re.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:vt.href,type:"GET",isLocal:Ct.test(vt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Et,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":re.parseJSON,"text xml":re.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?z(z(e,re.ajaxSettings),t):z(re.ajaxSettings,e)},ajaxPrefilter:B($t),ajaxTransport:B(jt),ajax:function(t,n){function o(t,n,o,a){var c,u,y,b,k,C=n;2!==w&&(w=2,l&&e.clearTimeout(l),i=undefined,s=a||"",x.readyState=t>0?4:0,c=t>=200&&t<300||304===t,o&&(b=W(p,x,o)),b=U(p,b,x,c),c?(p.ifModified&&((k=x.getResponseHeader("Last-Modified"))&&(re.lastModified[r]=k),(k=x.getResponseHeader("etag"))&&(re.etag[r]=k)),204===t||"HEAD"===p.type?C="nocontent":304===t?C="notmodified":(C=b.state,u=b.data,c=!(y=b.error))):(y=C,!t&&C||(C="error",t<0&&(t=0))),x.status=t,x.statusText=(n||C)+"",c?g.resolveWith(f,[u,C,x]):g.rejectWith(f,[x,C,y]),x.statusCode(v),v=undefined,d&&h.trigger(c?"ajaxSuccess":"ajaxError",[x,p,c?u:y]),m.fireWith(f,[x,C]),d&&(h.trigger("ajaxComplete",[x,p]),--re.active||re.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=undefined),n=n||{};var i,r,s,a,l,c,d,u,p=re.ajaxSetup({},n),f=p.context||p,h=p.context&&(f.nodeType||f.jquery)?re(f):re.event,g=re.Deferred(),m=re.Callbacks("once memory"),v=p.statusCode||{},y={},b={},w=0,k="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!a)for(a={};t=xt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return w||(e=b[n]=b[n]||e,y[e]=t),this},overrideMimeType:function(e){return w||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(w<2)for(t in e)v[t]=[v[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||k;return i&&i.abort(t),o(0,t),this}};if(g.promise(x).complete=m.add,x.success=x.done,x.error=x.fail,p.url=((t||p.url||vt.href)+"").replace(wt,"").replace(Tt,vt.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=re.trim(p.dataType||"*").toLowerCase().match(ke)||[""],null==p.crossDomain){c=Y.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=_t.protocol+"//"+_t.host!=c.protocol+"//"+c.host}catch(C){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=re.param(p.data,p.traditional)),F($t,p,n,x),2===w)return x;for(u in(d=re.event&&p.global)&&0==re.active++&&re.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!St.test(p.type),r=p.url,p.hasContent||(p.data&&(r=p.url+=(bt.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=kt.test(r)?r.replace(kt,"$1_="+yt++):r+(bt.test(r)?"&":"?")+"_="+yt++)),p.ifModified&&(re.lastModified[r]&&x.setRequestHeader("If-Modified-Since",re.lastModified[r]),re.etag[r]&&x.setRequestHeader("If-None-Match",re.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&x.setRequestHeader("Content-Type",p.contentType),x.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Et+"; q=0.01":""):p.accepts["*"]),p.headers)x.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(f,x,p)||2===w))return x.abort();for(u in k="abort",{success:1,error:1,complete:1})x[u](p[u]);if(i=F(jt,p,n,x)){if(x.readyState=1,d&&h.trigger("ajaxSend",[x,p]),2===w)return x;p.async&&p.timeout>0&&(l=e.setTimeout(function(){x.abort("timeout")},p.timeout));try{w=1,i.send(y,o)}catch(C){if(!(w<2))throw C;o(-1,C)}}else o(-1,"No Transport");return x},getJSON:function(e,t,n){return re.get(e,t,n,"json")},getScript:function(e,t){return re.get(e,undefined,t,"script")}}),re.each(["get","post"],function(e,t){re[t]=function(e,n,o,i){return re.isFunction(n)&&(i=i||o,o=n,n=undefined),re.ajax(re.extend({url:e,type:t,dataType:i,data:n,success:o},re.isPlainObject(e)&&e))}}),re._evalUrl=function(e){return re.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},re.fn.extend({wrapAll:function(e){var t;return re.isFunction(e)?this.each(function(t){re(this).wrapAll(e.call(this,t))}):(this[0]&&(t=re(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return re.isFunction(e)?this.each(function(t){re(this).wrapInner(e.call(this,t))}):this.each(function(){var t=re(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=re.isFunction(e);return this.each(function(n){re(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){re.nodeName(this,"body")||re(this).replaceWith(this.childNodes)}).end()}}),re.expr.filters.hidden=function(e){return!re.expr.filters.visible(e)},re.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var At=/%20/g,Ot=/\[\]$/,It=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,Lt=/^(?:input|select|textarea|keygen)/i;re.param=function(e,t){var n,o=[],i=function(e,t){t=re.isFunction(t)?t():null==t?"":t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===undefined&&(t=re.ajaxSettings&&re.ajaxSettings.traditional),re.isArray(e)||e.jquery&&!re.isPlainObject(e))re.each(e,function(){i(this.name,this.value)});else for(n in e)X(n,e[n],t,i);return o.join("&").replace(At,"+")},re.fn.extend({serialize:function(){return re.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=re.prop(this,"elements");return e?re.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!re(this).is(":disabled")&&Lt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!Ie.test(e))}).map(function(e,t){var n=re(this).val();return null==n?null:re.isArray(n)?re.map(n,function(e){return{name:t.name,value:e.replace(It,"\r\n")}}):{name:t.name,value:n.replace(It,"\r\n")}}).get()}}),re.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Ht={0:200,1223:204},Pt=re.ajaxSettings.xhr();oe.cors=!!Pt&&"withCredentials"in Pt,oe.ajax=Pt=!!Pt,re.ajaxTransport(function(t){var n,o;if(oe.cors||Pt&&!t.crossDomain)return{send:function(i,r){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=o=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Ht[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),o=a.onerror=n("error"),a.onabort!==undefined?a.onabort=o:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&o()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(l){if(n)throw l}},abort:function(){n&&n()}}}),re.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return re.globalEval(e),e}}}),re.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),re.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(o,i){t=re("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),Y.head.appendChild(t[0])},abort:function(){n&&n()}}});var Nt=[],Mt=/(=)\?(?=&|$)|\?\?/;re.ajaxSetup({jsonp:"callback",jsonpCallback:function(){
var e=Nt.pop()||re.expando+"_"+yt++;return this[e]=!0,e}}),re.ajaxPrefilter("json jsonp",function(t,n,o){var i,r,s,a=!1!==t.jsonp&&(Mt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Mt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=re.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Mt,"$1"+i):!1!==t.jsonp&&(t.url+=(bt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||re.error(i+" was not called"),s[0]},t.dataTypes[0]="json",r=e[i],e[i]=function(){s=arguments},o.always(function(){r===undefined?re(e).removeProp(i):e[i]=r,t[i]&&(t.jsonpCallback=n.jsonpCallback,Nt.push(i)),s&&re.isFunction(r)&&r(s[0]),s=r=undefined}),"script"}),re.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||Y;var o=he.exec(e),i=!n&&[];return o?[t.createElement(o[1])]:(o=p([e],t,i),i&&i.length&&re(i).remove(),re.merge([],o.childNodes))};var qt=re.fn.load;re.fn.load=function(e,t,n){if("string"!=typeof e&&qt)return qt.apply(this,arguments);var o,i,r,s=this,a=e.indexOf(" ");return a>-1&&(o=re.trim(e.slice(a)),e=e.slice(0,a)),re.isFunction(t)?(n=t,t=undefined):t&&"object"==typeof t&&(i="POST"),s.length>0&&re.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(o?re("<div>").append(re.parseHTML(e)).find(o):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},re.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){re.fn[t]=function(e){return this.on(t,e)}}),re.expr.filters.animated=function(e){return re.grep(re.timers,function(t){return e===t.elem}).length},re.offset={setOffset:function(e,t,n){var o,i,r,s,a,l,c=re.css(e,"position"),d=re(e),u={};"static"===c&&(e.style.position="relative"),a=d.offset(),r=re.css(e,"top"),l=re.css(e,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(s=(o=d.position()).top,i=o.left):(s=parseFloat(r)||0,i=parseFloat(l)||0),re.isFunction(t)&&(t=t.call(e,n,re.extend({},a))),null!=t.top&&(u.top=t.top-a.top+s),null!=t.left&&(u.left=t.left-a.left+i),"using"in t?t.using.call(e,u):d.css(u)}},re.fn.extend({offset:function(e){if(arguments.length)return e===undefined?this:this.each(function(t){re.offset.setOffset(this,e,t)});var t,n,o=this[0],i={top:0,left:0},r=o&&o.ownerDocument;return r?(t=r.documentElement,re.contains(t,o)?(i=o.getBoundingClientRect(),n=V(r),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},position:function(){if(this[0]){var e,t,n=this[0],o={top:0,left:0};return"fixed"===re.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),re.nodeName(e[0],"html")||(o=e.offset()),o.top+=re.css(e[0],"borderTopWidth",!0),o.left+=re.css(e[0],"borderLeftWidth",!0)),{top:t.top-o.top-re.css(n,"marginTop",!0),left:t.left-o.left-re.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===re.css(e,"position");)e=e.offsetParent;return e||Ke})}}),re.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;re.fn[e]=function(o){return xe(this,function(e,o,i){var r=V(e);if(i===undefined)return r?r[t]:e[o];r?r.scrollTo(n?r.pageXOffset:i,n?i:r.pageYOffset):e[o]=i},e,o,arguments.length)}}),re.each(["top","left"],function(e,t){re.cssHooks[t]=j(oe.pixelPosition,function(e,n){if(n)return n=$(e,t),Ge.test(n)?re(e).position()[t]+"px":n})}),re.each({Height:"height",Width:"width"},function(e,t){re.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,o){re.fn[o]=function(o,i){var r=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return xe(this,function(t,n,o){var i;return re.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):o===undefined?re.css(t,n,s):re.style(t,n,o,s)},t,r?o:undefined,r,null)}})}),re.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),re.fn.andSelf=re.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return re});var Rt=e.jQuery,Bt=e.$;return re.noConflict=function(t){return e.$===re&&(e.$=Bt),t&&e.jQuery===re&&(e.jQuery=Rt),re},t||(e.jQuery=e.$=re),re}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,function(e){function t(e){return{width:(e=e.getBoundingClientRect()).width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function n(e){return null==e?window:"[object Window]"!==e.toString()?(e=e.ownerDocument)&&e.defaultView||window:e}function o(e){return{scrollLeft:(e=n(e)).pageXOffset,scrollTop:e.pageYOffset}}function i(e){return e instanceof n(e).Element||e instanceof Element}function r(e){return e instanceof n(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof n(e).ShadowRoot||e instanceof ShadowRoot)}function a(e){return e?(e.nodeName||"").toLowerCase():null}function l(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function c(e){return t(l(e)).left+o(e).scrollLeft}function d(e){return n(e).getComputedStyle(e)}function u(e){return e=d(e),/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function p(e,i,s){void 0===s&&(s=!1);var d=l(i);e=t(e);var p=r(i),f={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(p||!p&&!s)&&(("body"!==a(i)||u(d))&&(f=i!==n(i)&&r(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:o(i)),r(i)?((h=t(i)).x+=i.clientLeft,h.y+=i.clientTop):d&&(h.x=c(d))),{x:e.left+f.scrollLeft-h.x,y:e.top+f.scrollTop-h.y,width:e.width,height:e.height}}function f(e){var n=t(e),o=e.offsetWidth,i=e.offsetHeight;return.5>=Math.abs(n.width-o)&&(o=n.width),.5>=Math.abs(n.height-i)&&(i=n.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:i}}function h(e){return"html"===a(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||l(e)}function g(e){return 0<=["html","body","#document"].indexOf(a(e))?e.ownerDocument.body:r(e)&&u(e)?e:g(h(e))}function m(e,t){var o;void 0===t&&(t=[]);var i=g(e);return e=i===(null==(o=e.ownerDocument)?void 0:o.body),o=n(i),i=e?[o].concat(o.visualViewport||[],u(i)?i:[]):i,t=t.concat(i),e?t:t.concat(m(h(i)))}function v(e){return r(e)&&"fixed"!==d(e).position?e.offsetParent:null}function y(e){for(var t=n(e),o=v(e);o&&0<=["table","td","th"].indexOf(a(o))&&"static"===d(o).position;)o=v(o);if(o&&("html"===a(o)||"body"===a(o)&&"static"===d(o).position))return t;if(!o)e:{for(o=navigator.userAgent.toLowerCase().includes("firefox"),e=h(e);r(e)&&0>["html","body"].indexOf(a(e));){var i=d(e);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||["transform","perspective"].includes(i.willChange)||o&&"filter"===i.willChange||o&&i.filter&&"none"!==i.filter){o=e;break e}e=e.parentNode}o=null}return o||t}function b(e){function t(e){o.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){o.has(e)||(e=n.get(e))&&t(e)}),i.push(e)}var n=new Map,o=new Set,i=[];return e.forEach(function(e){n.set(e.name,e)}),e.forEach(function(e){o.has(e.name)||t(e)}),i}function w(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function k(e){return e.split("-")[0]}function x(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n))do{if(t&&e.isSameNode(t))return!0;t=t.parentNode||t.host}while(t);return!1}function C(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function S(e,i){if("viewport"===i){i=n(e);var s=l(e);i=i.visualViewport;var a=s.clientWidth;s=s.clientHeight;var u=0,p=0;i&&(a=i.width,s=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(u=i.offsetLeft,p=i.offsetTop)),e=C(e={width:a,height:s,x:u+c(e),y:p})}else r(i)?((e=t(i)).top+=i.clientTop,e.left+=i.clientLeft,e.bottom=e.top+i.clientHeight,e.right=e.left+i.clientWidth,e.width=i.clientWidth,e.height=i.clientHeight,e.x=e.left,e.y=e.top):(e=l(p=l(e)),a=o(p),i=null==(s=p.ownerDocument)?void 0:s.body,s=F(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),u=F(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),p=-a.scrollLeft+c(p),a=-a.scrollTop,"rtl"===d(i||e).direction&&(p+=F(e.clientWidth,i?i.clientWidth:0)-s),e=C({width:s,height:u,x:p,y:a}));return e}function T(e,t,n){return t="clippingParents"===t?function(e){var t=m(h(e)),n=0<=["absolute","fixed"].indexOf(d(e).position)&&r(e)?y(e):e;return i(n)?t.filter(function(e){return i(e)&&x(e,n)&&"body"!==a(e)}):[]}(e):[].concat(t),(n=(n=[].concat(t,[n])).reduce(function(t,n){return n=S(e,n),t.top=F(n.top,t.top),t.right=z(n.right,t.right),t.bottom=z(n.bottom,t.bottom),t.left=F(n.left,t.left),t},S(e,n[0]))).width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}function $(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function j(e){var t=e.reference,n=e.element,o=(e=e.placement)?k(e):null;e=e?e.split("-")[1]:null;var i=t.x+t.width/2-n.width/2,r=t.y+t.height/2-n.height/2;switch(o){case"top":i={x:i,y:t.y-n.height};break;case"bottom":i={x:i,y:t.y+t.height};break;case"right":i={x:t.x+t.width,y:r};break;case"left":i={x:t.x-n.width,y:r};break;default:i={x:t.x,y:t.y}}if(null!=(o=o?$(o):null))switch(r="y"===o?"height":"width",e){case"start":i[o]-=t[r]/2-n[r]/2;break;case"end":i[o]+=t[r]/2-n[r]/2}return i}function E(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function _(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function A(e,n){void 0===n&&(n={});var o=n;n=void 0===(n=o.placement)?e.placement:n;var r=o.boundary,s=void 0===r?"clippingParents":r,a=void 0===(r=o.rootBoundary)?"viewport":r;r=void 0===(r=o.elementContext)?"popper":r;var c=o.altBoundary,d=void 0!==c&&c;o=E("number"!=typeof(o=void 0===(o=o.padding)?0:o)?o:_(o,M));var u=e.elements.reference;c=e.rects.popper,s=T(i(d=e.elements[d?"popper"===r?"reference":"popper":r])?d:d.contextElement||l(e.elements.popper),s,a),d=j({reference:a=t(u),element:c,strategy:"absolute",placement:n}),c=C(Object.assign({},c,d)),a="popper"===r?c:a;var p={top:s.top-a.top+o.top,bottom:a.bottom-s.bottom+o.bottom,left:s.left-a.left+o.left,right:a.right-s.right+o.right};if(e=e.modifiersData.offset,"popper"===r&&e){var f=e[n];Object.keys(p).forEach(function(e){var t=0<=["right","bottom"].indexOf(e)?1:-1,n=0<=["top","bottom"].indexOf(e)?"y":"x";p[e]+=f[n]*t})}return p}function O(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function I(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,o=void 0===(e=e.defaultOptions)?U:e;return function(e,t,r){function s(){l.forEach(function(e){return e()}),l=[]}void 0===r&&(r=o);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},U,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(r){return s(),a.options=Object.assign({},o,a.options,r),a.scrollParents={reference:i(e)?m(e):e.contextElement?m(e.contextElement):[],popper:m(t)},r=function(e){var t=b(e);return B.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}(function(){var e=[].concat(n,a.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(e).map(function(t){return e[t]})}()),a.orderedModifiers=r.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options;n=void 0===n?{}:n,"function"==typeof(e=e.effect)&&(t=e({state:a,name:t,instance:d,options:n}),l.push(t||function(){}))}),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference;if(O(t,e=e.popper))for(a.rects={reference:p(t,y(e),"fixed"===a.options.strategy),popper:f(e)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}),t=0;t<a.orderedModifiers.length;t++)if(!0===a.reset)a.reset=!1,t=-1;else{var n=a.orderedModifiers[t];e=n.fn;var o=n.options;o=void 0===o?{}:o,n=n.name,"function"==typeof e&&(a=e({state:a,options:o,name:n,instance:d})||a)}}},update:w(function(){return new Promise(function(e){d.forceUpdate(),e(a)})}),destroy:function(){s(),c=!0}};return O(e,t)?(d.setOptions(r).then(function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)}),d):d}}function D(e){var t,o=e.popper,i=e.popperRect,r=e.placement,s=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive;if(!0===(e=e.roundOffsets)){e=s.y;var p=window.devicePixelRatio||1;e={x:W(W(s.x*p)/p)||0,y:W(W(e*p)/p)||0}}else e="function"==typeof e?e(s):s;e=void 0===(e=(p=e).x)?0:e,p=void 0===(p=p.y)?0:p;var f=s.hasOwnProperty("x");s=s.hasOwnProperty("y");var h,g="left",m="top",v=window;if(u){var b=y(o),w="clientHeight",k="clientWidth";b===n(o)&&"static"!==d(b=l(o)).position&&(w="scrollHeight",k="scrollWidth"),"top"===r&&(m="bottom",p-=b[w]-i.height,p*=c?1:-1),"left"===r&&(g="right",e-=b[k]-i.width,e*=c?1:-1)}return o=Object.assign({position:a},u&&Y),c?Object.assign({},o,((h={})[m]=s?"0":"",h[g]=f?"0":"",h.transform=2>(v.devicePixelRatio||1)?"translate("+e+"px, "+p+"px)":"translate3d("+e+"px, "+p+"px, 0)",h)):Object.assign({},o,((t={})[m]=s?p+"px":"",t[g]=f?e+"px":"",t.transform="",t))}function L(e){return e.replace(/left|right|bottom|top/g,function(e){return K[e]})}function H(e){return e.replace(/start|end/g,function(e){return ee[e]})}function P(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function N(e){return["top","right","bottom","left"].some(function(t){return 0<=e[t]})}var M=["top","bottom","right","left"],q=M.reduce(function(e,t){return e.concat([t+"-start",t+"-end"])},[]),R=[].concat(M,["auto"]).reduce(function(e,t){return e.concat([t,t+"-start",t+"-end"])},[]),B="beforeRead read afterRead beforeMain main afterMain beforeWrite write afterWrite".split(" "),F=Math.max,z=Math.min,W=Math.round,U={placement:"bottom",modifiers:[],strategy:"absolute"},X={passive:!0},V={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,i=(e=e.options).scroll,r=void 0===i||i,s=void 0===(e=e.resize)||e,a=n(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&l.forEach(function(e){e.addEventListener("scroll",o.update,X)}),s&&a.addEventListener("resize",o.update,X),function(){r&&l.forEach(function(e){e.removeEventListener("scroll",o.update,X)}),s&&a.removeEventListener("resize",o.update,X)}},data:{}},Q={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=j({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Y={top:"auto",right:"auto",bottom:"auto",left:"auto"},G={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options;e=void 0===(e=n.gpuAcceleration)||e;var o=n.adaptive;o=void 0===o||o,n=void 0===(n=n.roundOffsets)||n,e={placement:k(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:e},null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,D(Object.assign({},e,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:n})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,D(Object.assign({},e,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:n})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},J={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];r(i)&&a(i)&&(Object.assign(i.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],i=t.attributes[e]||{};e=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{}),r(o)&&a(o)&&(Object.assign(o.style,e),Object.keys(i).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]},Z={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,o=void 0===(e=e.options.offset)?[0,0]:e,i=(e=R.reduce(function(e,n){var i=t.rects,r=k(n),s=0<=["left","top"].indexOf(r)?-1:1,a="function"==typeof o?o(Object.assign({},i,{placement:n})):o;return i=(i=a[0])||0,a=((a=a[1])||0)*s,r=0<=["left","right"].indexOf(r)?{x:a,y:i}:{x:i,y:a},e[n]=r,e},{}))[t.placement],r=i.x;i=i.y,null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=r,t.modifiersData.popperOffsets.y+=i),t.modifiersData[n]=e}},K={left:"right",right:"left",bottom:"top",top:"bottom"},ee={start:"end",end:"start"},te={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options;if(e=e.name,!t.modifiersData[e]._skip){var o=n.mainAxis;o=void 0===o||o;var i=n.altAxis;i=void 0===i||i;var r=n.fallbackPlacements,s=n.padding,a=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.flipVariations,u=void 0===d||d,p=n.allowedAutoPlacements;d=k(n=t.options.placement),r=r||(d!==n&&u?function(e){if("auto"===k(e))return[];var t=L(e);return[H(e),t,H(t)]}(n):[L(n)]);var f=[n].concat(r).reduce(function(e,n){return e.concat("auto"===k(n)?function(e,t){void 0===t&&(t={});var n=t.boundary,o=t.rootBoundary,i=t.padding,r=t.flipVariations,s=t.allowedAutoPlacements,a=void 0===s?R:s,l=t.placement.split("-")[1];0===(r=(t=l?r?q:q.filter(function(e){return e.split("-")[1]===l}):M).filter(function(e){return 0<=a.indexOf(e)})).length&&(r=t);var c=r.reduce(function(t,r){return t[r]=A(e,{placement:r,boundary:n,rootBoundary:o,padding:i})[k(r)],t},{});return Object.keys(c).sort(function(e,t){return c[e]-c[t]})}(t,{placement:n,boundary:a,rootBoundary:l,padding:s,flipVariations:u,allowedAutoPlacements:p}):n)},[]);n=t.rects.reference,r=t.rects.popper;var h=new Map;d=!0;for(var g=f[0],m=0;m<f.length;m++){var v=f[m],y=k(v),b="start"===v.split("-")[1],w=0<=["top","bottom"].indexOf(y),x=w?"width":"height",C=A(t,{placement:v,boundary:a,rootBoundary:l,altBoundary:c,padding:s});if(b=w?b?"right":"left":b?"bottom":"top",n[x]>r[x]&&(b=L(b)),x=L(b),w=[],o&&w.push(0>=C[y]),i&&w.push(0>=C[b],0>=C[x]),w.every(function(e){return e})){g=v,d=!1;break}h.set(v,w)}if(d)for(o=function(e){var t=f.find(function(t){if(t=h.get(t))return t.slice(0,e).every(function(e){return e})});if(t)return g=t,"break"},i=u?3:1;0<i&&"break"!==o(i);i--);t.placement!==g&&(t.modifiersData[e]._skip=!0,t.placement=g,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ne={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options;e=e.name;var o=n.mainAxis,i=void 0===o||o,r=void 0!==(o=n.altAxis)&&o;o=void 0===(o=n.tether)||o;var s=n.tetherOffset,a=void 0===s?0:s,l=A(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary});n=k(t.placement);var c=t.placement.split("-")[1],d=!c,u=$(n);n="x"===u?"y":"x",s=t.modifiersData.popperOffsets;var p=t.rects.reference,h=t.rects.popper,g="function"==typeof a?a(Object.assign({},t.rects,{placement:t.placement})):a;if(a={x:0,y:0},s){if(i||r){var m="y"===u?"top":"left",v="y"===u?"bottom":"right",b="y"===u?"height":"width",w=s[u],x=s[u]+l[m],C=s[u]-l[v],S=o?-h[b]/2:0,T="start"===c?p[b]:h[b];c="start"===c?-h[b]:-p[b],h=t.elements.arrow,h=o&&h?f(h):{width:0,height:0};var j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0};m=j[m],v=j[v],h=F(0,z(p[b],h[b])),T=d?p[b]/2-S-h-m-g:T-h-m-g,p=d?-p[b]/2+S+h+v+g:c+h+v+g,d=t.elements.arrow&&y(t.elements.arrow),g=t.modifiersData.offset?t.modifiersData.offset[t.placement][u]:0,d=s[u]+T-g-(d?"y"===u?d.clientTop||0:d.clientLeft||0:0),p=s[u]+p-g,i&&(i=o?z(x,d):x,C=o?F(C,p):C,i=F(i,z(w,C)),s[u]=i,a[u]=i-w),r&&(i=(r=s[n])+l["x"===u?"top":"left"],l=r-l["x"===u?"bottom":"right"],i=o?z(i,d):i,o=o?F(l,p):l,o=F(i,z(r,o)),s[n]=o,a[n]=o-r)}t.modifiersData[e]=a}},requiresIfExists:["offset"]},oe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=k(n.placement);if(e=$(a),a=0<=["left","right"].indexOf(a)?"height":"width",r&&s){i=E("number"!=typeof(i="function"==typeof(i=i.padding)?i(Object.assign({},n.rects,{placement:n.placement})):i)?i:_(i,M));var l=f(r),c="y"===e?"top":"left",d="y"===e?"bottom":"right",u=n.rects.reference[a]+n.rects.reference[e]-s[e]-n.rects.popper[a];s=s[e]-n.rects.reference[e],s=(r=(r=y(r))?"y"===e?r.clientHeight||0:r.clientWidth||0:0)/2-l[a]/2+(u/2-s/2),a=F(i[c],z(s,r-l[a]-i[d])),n.modifiersData[o]=((t={})[e]=a,t.centerOffset=a-s,t)}},effect:function(e){var t=e.state;if(null!=(e=void 0===(e=e.options.element)?"[data-popper-arrow]":e)){if("string"==typeof e&&!(e=t.elements.popper.querySelector(e)))return;x(t.elements.popper,e)&&(t.elements.arrow=e)}},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},ie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state;e=e.name;var n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,r=A(t,{elementContext:"reference"}),s=A(t,{altBoundary:!0});n=P(r,n),o=P(s,o,i),i=N(n),s=N(o),t.modifiersData[e]={referenceClippingOffsets:n,popperEscapeOffsets:o,isReferenceHidden:i,hasPopperEscaped:s},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":i,"data-popper-escaped":s})}},re=I({defaultModifiers:[V,Q,G,J]}),se=[V,Q,G,J,Z,te,ne,oe,ie],ae=I({defaultModifiers:se});e.applyStyles=J,e.arrow=oe,e.computeStyles=G,e.createPopper=ae,e.createPopperLite=re,e.defaultModifiers=se,e.detectOverflow=A,e.eventListeners=V,e.flip=te,e.hide=ie,e.offset=Z,e.popperGenerator=I,e.popperOffsets=Q,e.preventOverflow=ne,Object.defineProperty(e,"__esModule",{value:!0})}),function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(e.style[n]!==undefined)return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,o=this;return e(this).one("bsTransitionEnd",function(){n=!0}),setTimeout(function(){n||e(o).trigger(e.support.transition.end)},t),this},e(function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var n=e(this),i=n.data("bs.alert");i||n.data("bs.alert",i=new o(this)),"string"==typeof t&&i[t].call(n)})}var n='[data-dismiss="alert"]',o=function(t){e(t).on("click",n,this.close)};o.VERSION="3.3.6",o.TRANSITION_DURATION=150,o.prototype.close=function(t){function n(){s.detach().trigger("closed.bs.alert").remove()}var i=e(this),r=i.attr("data-target");r||(r=(r=i.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,""));var s=e(r);t&&t.preventDefault(),s.length||(s=i.closest(".alert")),s.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(s.removeClass("in"),e.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",n).emulateTransitionEnd(o.TRANSITION_DURATION):n())};var i=e.fn.alert;e.fn.alert=t,e.fn.alert.Constructor=o,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",n,o.prototype.close)}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var o=e(this),i=o.data("bs.button"),r="object"==typeof t&&t;i||o.data("bs.button",i=new n(this,r)),"toggle"==t?i.toggle():t&&i.setState(t)})}var n=function(t,o){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,o),this.isLoading=!1};n.VERSION="3.3.6",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var n="disabled",o=this.$element,i=o.is("input")?"val":"html",r=o.data();t+="Text",null==r.resetText&&o.data("resetText",o[i]()),setTimeout(e.proxy(function(){o[i](null==r[t]?this.options[t]:r[t]),"loadingText"==t?(this.isLoading=!0,o.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,o.removeClass(n).removeAttr(n))},this),0)},n.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var o=e.fn.button;e.fn.button=t,e.fn.button.Constructor=n,e.fn.button.noConflict=function(){return e.fn.button=o,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var o=e(n.target);o.hasClass("btn")||(o=o.closest(".btn")),t.call(o,"toggle"),e(n.target).is('input[type="radio"]')||e(n.target).is('input[type="checkbox"]')||n.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(e){"use strict";function t(t){var n,o=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(o)}function n(t){return this.each(function(){var n=e(this),i=n.data("bs.collapse"),r=e.extend({},o.DEFAULTS,n.data(),"object"==typeof t&&t);!i&&r.toggle&&/show|hide/.test(t)&&(r.toggle=!1),i||n.data("bs.collapse",i=new o(this,r)),"string"==typeof t&&i[t]()})}var o=function(t,n){this.$element=e(t),this.options=e.extend({},o.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};o.VERSION="3.3.6",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(t=i.data("bs.collapse"))&&t.transitioning)){var r=e.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){i&&i.length&&(n.call(i,"hide"),t||i.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var l=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[s](this.$element[0][l])}}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return i.call(this);this.$element[n](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(o.TRANSITION_DURATION)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,o){var i=e(o);this.addAriaAndCollapsedClass(t(i),i)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=o,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(o){var i=e(this);i.attr("data-target")||o.preventDefault();var r=t(i),s=r.data("bs.collapse")?"toggle":i.data();n.call(r,s)})}(jQuery),function(e){"use strict";function t(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var o=n&&e(n);return o&&o.length?o:t.parent()}function n(n){n&&3===n.which||(e(i).remove(),e(r).each(function(){var o=e(this),i=t(o),r={relatedTarget:this};i.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(i[0],n.target)||(i.trigger(n=e.Event("hide.bs.dropdown",r)),n.isDefaultPrevented()||(o.attr("aria-expanded","false"),i.removeClass("open").trigger(e.Event("hidden.bs.dropdown",r)))))}))}function o(t){return this.each(function(){var n=e(this),o=n.data("bs.dropdown");o||n.data("bs.dropdown",o=new s(this)),"string"==typeof t&&o[t].call(n)})}var i=".dropdown-backdrop",r='[data-toggle="dropdown"]',s=function(t){e(t).on("click.bs.dropdown",this.toggle)};s.VERSION="3.3.6",s.prototype.toggle=function(o){var i=e(this);if(!i.is(".disabled, :disabled")){var r=t(i),s=r.hasClass("open");if(n(),!s){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",n);var a={relatedTarget:this};if(r.trigger(o=e.Event("show.bs.dropdown",a)),o.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},s.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var o=e(this);if(n.preventDefault(),n.stopPropagation(),!o.is(".disabled, :disabled")){var i=t(o),s=i.hasClass("open");if(!s&&27!=n.which||s&&27==n.which)return 27==n.which&&i.find(r).trigger("focus"),o.trigger("click");var a=" li:not(.disabled):visible a",l=i.find(".dropdown-menu"+a);if(l.length){var c=l.index(n.target);38==n.which&&c>0&&c--,40==n.which&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}}};var a=e.fn.dropdown;e.fn.dropdown=o,e.fn.dropdown.Constructor=s,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=a,this},e(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",r,s.prototype.toggle).on("keydown.bs.dropdown.data-api",r,s.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",s.prototype.keydown)}(jQuery),function(e){"use strict";function t(t,o){return this.each(function(){var i=e(this),r=i.data("bs.modal"),s=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t);r||i.data("bs.modal",r=new n(this,s)),"string"==typeof t?r[t](o):s.show&&r.show(o)})}var n=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,
this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.6",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},n.prototype.show=function(t){var o=this,i=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var i=e.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),i&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus();var r=e.Event("shown.bs.modal",{relatedTarget:t});i?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(n.TRANSITION_DURATION):o.$element.trigger("focus").trigger(r)}))},n.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(t){var o=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=e.support.transition&&i;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;r?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){o.removeBackdrop(),t&&t()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):s()}else t&&t()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var o=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=n,e.fn.modal.noConflict=function(){return e.fn.modal=o,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var o=e(this),i=o.attr("href"),r=e(o.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),s=r.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(i)&&i},r.data(),o.data());o.is("a")&&n.preventDefault(),r.one("show.bs.modal",function(e){e.isDefaultPrevented()||r.one("hidden.bs.modal",function(){o.is(":visible")&&o.trigger("focus")})}),t.call(r,s,this)})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var o=e(this),i=o.data("bs.tab");i||o.data("bs.tab",i=new n(this)),"string"==typeof t&&i[t]()})}var n=function(t){this.element=e(t)};n.VERSION="3.3.6",n.TRANSITION_DURATION=150,n.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),o=t.data("target");if(o||(o=(o=t.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var i=n.find(".active:last a"),r=e.Event("hide.bs.tab",{relatedTarget:t[0]}),s=e.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(r),t.trigger(s),!s.isDefaultPrevented()&&!r.isDefaultPrevented()){var a=e(o);this.activate(t.closest("li"),n),this.activate(a,a.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},n.prototype.activate=function(t,o,i){function r(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}var s=o.find("> .active"),a=i&&e.support.transition&&(s.length&&s.hasClass("fade")||!!o.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r(),s.removeClass("in")};var o=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=n,e.fn.tab.noConflict=function(){return e.fn.tab=o,this};var i=function(n){n.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var o=e(this),i=o.data("bs.tooltip"),r="object"==typeof t&&t;!i&&/destroy|hide/.test(t)||(i||o.data("bs.tooltip",i=new n(this,r)),"string"==typeof t&&i[t]())})}var n=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};n.VERSION="3.3.6",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(t,n,o){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),r=i.length;r--;){var s=i[r];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},n.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,o){n[e]!=o&&(t[e]=o)}),t},n.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},n.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},n.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},n.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var o=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!o)return;var i=this,r=this.tip(),s=this.getUID(this.type);this.setContent(),r.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(a);c&&(a=a.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var d=this.getPosition(),u=r[0].offsetWidth,p=r[0].offsetHeight;if(c){var f=a,h=this.getPosition(this.$viewport);a="bottom"==a&&d.bottom+p>h.bottom?"top":"top"==a&&d.top-p<h.top?"bottom":"right"==a&&d.right+u>h.width?"left":"left"==a&&d.left-u<h.left?"right":a,r.removeClass(f).addClass(a)}var g=this.getCalculatedOffset(a,d,u,p);this.applyPlacement(g,a);var m=function(){var e=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==e&&i.leave(i)};e.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",m).emulateTransitionEnd(n.TRANSITION_DURATION):m()}},n.prototype.applyPlacement=function(t,n){var o=this.tip(),i=o[0].offsetWidth,r=o[0].offsetHeight,s=parseInt(o.css("margin-top"),10),a=parseInt(o.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top+=s,t.left+=a,e.offset.setOffset(o[0],e.extend({using:function(e){o.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),o.addClass("in");var l=o[0].offsetWidth,c=o[0].offsetHeight;"top"==n&&c!=r&&(t.top=t.top+r-c);var d=this.getViewportAdjustedDelta(n,t,l,c);d.left?t.left+=d.left:t.top+=d.top;var u=/top|bottom/.test(n),p=u?2*d.left-i+l:2*d.top-r+c,f=u?"offsetWidth":"offsetHeight";o.offset(t),this.replaceArrow(p,o[0][f],u)},n.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},n.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},n.prototype.hide=function(t){function o(){"in"!=i.hoverState&&r.detach(),i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),t&&t()}var i=this,r=e(this.$tip),s=e.Event("hide.bs."+this.type);if(this.$element.trigger(s),!s.isDefaultPrevented())return r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),this.hoverState=null,this},n.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(t){var n=(t=t||this.$element)[0],o="BODY"==n.tagName,i=n.getBoundingClientRect();null==i.width&&(i=e.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var r=o?{top:0,left:0}:t.offset(),s={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},a=o?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},i,s,a,r)},n.prototype.getCalculatedOffset=function(e,t,n,o){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-o,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-o/2,left:t.left-n}:{top:t.top+t.height/2-o/2,left:t.left+t.width}},n.prototype.getViewportAdjustedDelta=function(e,t,n,o){var i={top:0,left:0};if(!this.$viewport)return i;var r=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(e)){var a=t.top-r-s.scroll,l=t.top+r-s.scroll+o;a<s.top?i.top=s.top-a:l>s.top+s.height&&(i.top=s.top+s.height-l)}else{var c=t.left-r,d=t.left+r+n;c<s.left?i.left=s.left-c:d>s.right&&(i.left=s.left+s.width-d)}return i},n.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},n.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null})};var o=e.fn.tooltip;e.fn.tooltip=t,e.fn.tooltip.Constructor=n,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=o,this}}(jQuery),function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():e.htmx=e.htmx||t()}("undefined"!=typeof self?self:this,function(){return function(){"use strict";function e(e,t=!1){return new RegExp(`<${e}(\\s[^>]*>|>)([\\s\\S]*?)<\\/${e}>`,t?"gim":"im")}function d(e){if(e==undefined)return undefined;let t=NaN;return t="ms"==e.slice(-2)?parseFloat(e.slice(0,-2)):"s"==e.slice(-1)?1e3*parseFloat(e.slice(0,-1)):"m"==e.slice(-1)?1e3*parseFloat(e.slice(0,-1))*60:parseFloat(e),isNaN(t)?undefined:t}function ee(e,t){return e.getAttribute&&e.getAttribute(t)}function o(e,t){return e.hasAttribute&&(e.hasAttribute(t)||e.hasAttribute("data-"+t))}function te(e,t){return ee(e,t)||ee(e,"data-"+t)}function u(e){return e.parentElement}function re(){return document}function c(e,t){for(;e&&!t(e);)e=u(e);return e||null}function L(e,t,n){var o=te(t,n),i=te(t,"hx-disinherit");return e!==t&&i&&("*"===i||i.split(" ").indexOf(n)>=0)?"unset":o}function ne(e,t){var n=null;if(c(e,function(o){return n=L(e,o,t)}),"unset"!==n)return n}function h(e,t){var n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;return n&&n.call(e,t)}function A(e){var t=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(e);return t?t[1].toLowerCase():""}function a(e,t){for(var n=(new DOMParser).parseFromString(e,"text/html").body;t>0;)t--,n=n.firstChild;return null==n&&(n=re().createDocumentFragment()),n}function N(e){return/<body/.test(e)}function l(e){var t=!N(e),n=A(e),o=e;if("head"===n&&(o=o.replace(S,"")),Q.config.useTemplateFragments&&t)return a("<body><template>"+o+"</template></body>",0).querySelector("template").content;switch(n){case"thead":case"tbody":case"tfoot":case"colgroup":case"caption":return a("<table>"+o+"</table>",1);case"col":return a("<table><colgroup>"+o+"</colgroup></table>",2);case"tr":return a("<table><tbody>"+o+"</tbody></table>",2);case"td":case"th":return a("<table><tbody><tr>"+o+"</tr></tbody></table>",3);case"script":case"style":return a("<div>"+o+"</div>",1);default:return a(o,0)}}function ie(e){e&&e()}function I(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function k(e){return I(e,"Function")}function P(e){return I(e,"Object")}function ae(e){var t="htmx-internal-data",n=e[t];return n||(n=e[t]={}),n}function M(e){var t=[];if(e)for(var n=0;n<e.length;n++)t.push(e[n]);return t}function oe(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n])}function X(e){var t=e.getBoundingClientRect(),n=t.top,o=t.bottom;return n<window.innerHeight&&o>=0}function se(e){return e.getRootNode&&e.getRootNode()instanceof window.ShadowRoot?re().body.contains(e.getRootNode().host):re().body.contains(e)}function D(e){return e.trim().split(/\s+/)}function le(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function E(e){try{return JSON.parse(e)}catch(e){return b(e),null}}function U(){var e="htmx:localStorageTest";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function B(e){try{var t=new URL(e);return t&&(e=t.pathname+t.search),/^\/$/.test(e)||(e=e.replace(/\/+$/,"")),e}catch(t){return e}}function t(e){return Tr(re().body,function(){return eval(e)})}function F(e){return Q.on("htmx:load",function(t){e(t.detail.elt)})}function V(){Q.logger=function(e,t,n){console&&console.log(t,e,n)}}function j(){Q.logger=null}function C(e,t){return t?e.querySelector(t):C(re(),e)}function f(e,t){return t?e.querySelectorAll(t):f(re(),e)}function _(e,t){e=g(e),t?setTimeout(function(){_(e),e=null},t):e.parentElement.removeChild(e)}function z(e,t,n){e=g(e),n?setTimeout(function(){z(e,t),e=null},n):e.classList&&e.classList.add(t)}function n(e,t,o){e=g(e),o?setTimeout(function(){n(e,t),e=null},o):e.classList&&(e.classList.remove(t),0===e.classList.length&&e.removeAttribute("class"))}function $(e,t){(e=g(e)).classList.toggle(t)}function W(e,t){oe((e=g(e)).parentElement.children,function(e){n(e,t)}),z(e,t)}function v(e,t){if((e=g(e)).closest)return e.closest(t);do{if(null==e||h(e,t))return e}while(e=e&&u(e));return null}function s(e,t){return e.substring(0,t.length)===t}function G(e,t){return e.substring(e.length-t.length)===t}function J(e){var t=e.trim();return s(t,"<")&&G(t,"/>")?t.substring(1,t.length-2):t}function Z(e,t){return 0===t.indexOf("closest ")?[v(e,J(t.substr(8)))]:0===t.indexOf("find ")?[C(e,J(t.substr(5)))]:"next"===t?[e.nextElementSibling]:0===t.indexOf("next ")?[K(e,J(t.substr(5)))]:"previous"===t?[e.previousElementSibling]:0===t.indexOf("previous ")?[Y(e,J(t.substr(9)))]:"document"===t?[document]:"window"===t?[window]:"body"===t?[document.body]:re().querySelectorAll(J(t))}function ue(e,t){return t?Z(e,t)[0]:Z(re().body,e)[0]}function g(e){return I(e,"String")?C(e):e}function ve(e,t,n){return k(t)?{target:re().body,event:e,listener:t}:{target:g(e),event:t,listener:n}}function de(e,t,n){return jr(function(){var o=ve(e,t,n);o.target.addEventListener(o.event,o.listener)}),k(t)?t:n}function ge(e,t,n){return jr(function(){var o=ve(e,t,n);o.target.removeEventListener(o.event,o.listener)}),k(t)?t:n}function pe(e,t){var n=ne(e,t);if(n){if("this"===n)return[xe(e,t)];var o=Z(e,n);return 0===o.length?(b('The selector "'+n+'" on '+t+" returned no matches!"),[me]):o}}function xe(e,t){return c(e,function(e){return null!=te(e,t)})}function ye(e){var t=ne(e,"hx-target");return t?"this"===t?xe(e,"hx-target"):ue(e,t):ae(e).boosted?re().body:e}function be(e){for(var t=Q.config.attributesToSettle,n=0;n<t.length;n++)if(e===t[n])return!0;return!1}function we(e,t){oe(e.attributes,function(n){!t.hasAttribute(n.name)&&be(n.name)&&e.removeAttribute(n.name)}),oe(t.attributes,function(t){be(t.name)&&e.setAttribute(t.name,t.value)})}function Se(e,t){for(var n=Fr(t),o=0;o<n.length;o++){var i=n[o];try{if(i.isInlineSwap(e))return!0}catch(e){b(e)}}return"outerHTML"===e}function Ee(e,t,n){var o="#"+ee(t,"id"),i="outerHTML";"true"===e||(e.indexOf(":")>0?(i=e.substr(0,e.indexOf(":")),o=e.substr(e.indexOf(":")+1,e.length)):i=e);var r=re().querySelectorAll(o);return r?(oe(r,function(e){var o,r=t.cloneNode(!0);(o=re().createDocumentFragment()).appendChild(r),Se(i,e)||(o=r);var s={shouldSwap:!0,target:e,fragment:o};ce(e,"htmx:oobBeforeSwap",s)&&(e=s.target,s.shouldSwap&&Fe(i,e,e,o,n),oe(n.elts,function(e){ce(e,"htmx:oobAfterSwap",s)}))}),t.parentNode.removeChild(t)):(t.parentNode.removeChild(t),fe(re().body,"htmx:oobErrorNoTarget",{content:t})),e}function Ce(e,t,n){var o=ne(e,"hx-select-oob");if(o)for(var i=o.split(","),r=0;r<i.length;r++){var s=i[r].split(":",2),a=s[0].trim();0===a.indexOf("#")&&(a=a.substring(1));var l=s[1]||"true",c=t.querySelector("#"+a);c&&Ee(l,c,n)}oe(f(t,"[hx-swap-oob], [data-hx-swap-oob]"),function(e){var t=te(e,"hx-swap-oob");null!=t&&Ee(t,e,n)})}function Re(e){oe(f(e,"[hx-preserve], [data-hx-preserve]"),function(e){var t=te(e,"id"),n=re().getElementById(t);null!=n&&e.parentNode.replaceChild(n,e)})}function Te(e,t,n){oe(t.querySelectorAll("[id]"),function(t){var o=ee(t,"id");if(o&&o.length>0){var i=o.replace("'","\\'"),r=t.tagName.replace(":","\\:"),s=e.querySelector(r+"[id='"+i+"']");if(s&&s!==e){var a=t.cloneNode();we(t,s),n.tasks.push(function(){we(t,a)})}}})}function Oe(e){return function(){n(e,Q.config.addedClass),zt(e),Nt(e),qe(e),ce(e,"htmx:load")}}function qe(e){var t="[autofocus]",n=h(e,t)?e:e.querySelector(t);null!=n&&n.focus()}function m(e,t,n,o){for(Te(e,n,o);n.childNodes.length>0;){var i=n.firstChild;z(i,Q.config.addedClass),e.insertBefore(i,t),i.nodeType!==Node.TEXT_NODE&&i.nodeType!==Node.COMMENT_NODE&&o.tasks.push(Oe(i))}}function He(e,t){for(var n=0;n<e.length;)t=(t<<5)-t+e.charCodeAt(n++)|0;return t}function Le(e){var t=0;if(e.attributes)for(var n=0;n<e.attributes.length;n++){var o=e.attributes[n];o.value&&(t=He(o.name,t),t=He(o.value,t))}return t}function Ae(e){var t=ae(e);if(t.onHandlers){for(var n=0;n<t.onHandlers.length;n++){const o=t.onHandlers[n];e.removeEventListener(o.event,o.listener)}delete t.onHandlers}}function Ne(e){var t=ae(e);t.timeout&&clearTimeout(t.timeout),t.webSocket&&t.webSocket.close(),t.sseEventSource&&t.sseEventSource.close(),t.listenerInfos&&oe(t.listenerInfos,function(e){e.on&&e.on.removeEventListener(e.trigger,e.listener)}),Ae(e),oe(Object.keys(t),function(e){delete t[e]})}function p(e){ce(e,"htmx:beforeCleanupElement"),Ne(e),e.children&&oe(e.children,function(e){p(e)})}function Ie(e,t,n){if("BODY"===e.tagName)return Ue(e,t,n);var o,i=e.previousSibling;for(m(u(e),e,t,n),o=null==i?u(e).firstChild:i.nextSibling,n.elts=n.elts.filter(function(t){return t!=e});o&&o!==e;)o.nodeType===Node.ELEMENT_NODE&&n.elts.push(o),o=o.nextElementSibling;p(e),u(e).removeChild(e)}function ke(e,t,n){return m(e,e.firstChild,t,n)}function Pe(e,t,n){return m(u(e),e,t,n)}function Me(e,t,n){return m(e,null,t,n)}function Xe(e,t,n){return m(u(e),e.nextSibling,t,n)}function De(e){return p(e),u(e).removeChild(e)}function Ue(e,t,n){var o=e.firstChild;if(m(e,o,t,n),o){for(;o.nextSibling;)p(o.nextSibling),e.removeChild(o.nextSibling);p(o),e.removeChild(o)}}function Be(e,t,n){var o=n||ne(e,"hx-select");if(o){var i=re().createDocumentFragment();oe(t.querySelectorAll(o),function(e){i.appendChild(e)}),t=i}return t}function Fe(e,t,n,o,i){switch(e){case"none":return;case"outerHTML":return void Ie(n,o,i);case"afterbegin":return void ke(n,o,i);case"beforebegin":return void Pe(n,o,i);case"beforeend":return void Me(n,o,i);case"afterend":return void Xe(n,o,i);case"delete":return void De(n,o,i);default:for(var r=Fr(t),s=0;s<r.length;s++){var a=r[s];try{var l=a.handleSwap(e,n,o,i);if(l){if("undefined"!=typeof l.length)for(var c=0;c<l.length;c++){var d=l[c];d.nodeType!==Node.TEXT_NODE&&d.nodeType!==Node.COMMENT_NODE&&i.tasks.push(Oe(d))}return}}catch(e){b(e)}}"innerHTML"===e?Ue(n,o,i):Fe(Q.config.defaultSwapStyle,t,n,o,i)}}function Ve(e){if(e.indexOf("<title")>-1){var t=e.replace(H,"").match(q);if(t)return t[2]}}function je(e,t,n,o,i,r){i.title=Ve(o);var s=l(o);if(s)return Ce(n,s,i),Re(s=Be(n,s,r)),Fe(e,n,t,s,i)}function _e(e,t,n){var o=e.getResponseHeader(t);if(0===o.indexOf("{")){var i=E(o);for(var r in i)if(i.hasOwnProperty(r)){var s=i[r];P(s)||(s={value:s}),ce(n,r,s)}}else for(var a=o.split(","),l=0;l<a.length;l++)ce(n,a[l].trim(),[])}function Ye(e){for(var t=[],n=0;n<e.length;){if($e.exec(e.charAt(n))){for(var o=n;We.exec(e.charAt(n+1));)n++;t.push(e.substr(o,n-o+1))}else if(-1!==Ge.indexOf(e.charAt(n))){var i=e.charAt(n);o=n;for(n++;n<e.length&&e.charAt(n)!==i;)"\\"===e.charAt(n)&&n++,n++;t.push(e.substr(o,n-o+1))}else{var r=e.charAt(n);t.push(r)}n++}return t}function Qe(e,t,n){return $e.exec(e.charAt(0))&&"true"!==e&&"false"!==e&&"this"!==e&&e!==n&&"."!==t}function et(e,t,n){if("["===t[0]){t.shift();for(var o=1,i=" return (function("+n+"){ return (",r=null;t.length>0;){var s=t[0];if("]"===s){if(0===--o){null===r&&(i+="true"),t.shift(),i+=")})";try{var a=Tr(e,function(){return Function(i)()},function(){return!0});return a.source=i,a}catch(e){return fe(re().body,"htmx:syntax:error",{error:e,source:i}),null}}}else"["===s&&o++;Qe(s,r,n)?i+="(("+n+"."+s+") ? ("+n+"."+s+") : (window."+s+"))":i+=s,r=t.shift()}}}function y(e,t){for(var n="";e.length>0&&!t.test(e[0]);)n+=e.shift();return n}function tt(e){var t;return e.length>0&&Ze.test(e[0])?(e.shift(),t=y(e,Ke).trim(),e.shift()):t=y(e,x),t}function nt(e,t,n){var o=[],i=Ye(t);do{y(i,Je);var r=i.length,s=y(i,/[,\[\s]/);if(""!==s)if("every"===s){var a={trigger:"every"};y(i,Je),a.pollInterval=d(y(i,/[,\[\s]/)),y(i,Je),(l=et(e,i,"event"))&&(a.eventFilter=l),o.push(a)}else if(0===s.indexOf("sse:"))o.push({trigger:"sse",sseEvent:s.substr(4)});else{var l,c={trigger:s};for((l=et(e,i,"event"))&&(c.eventFilter=l);i.length>0&&","!==i[0];){y(i,Je);var u=i.shift();if("changed"===u)c.changed=!0;else if("once"===u)c.once=!0;else if("consume"===u)c.consume=!0;else if("delay"===u&&":"===i[0])i.shift(),c.delay=d(y(i,x));else if("from"===u&&":"===i[0]){if(i.shift(),Ze.test(i[0]))var p=tt(i);else if("closest"===(p=y(i,x))||"find"===p||"next"===p||"previous"===p){i.shift();var f=tt(i);f.length>0&&(p+=" "+f)}c.from=p}else"target"===u&&":"===i[0]?(i.shift(),c.target=tt(i)):"throttle"===u&&":"===i[0]?(i.shift(),c.throttle=d(y(i,x))):"queue"===u&&":"===i[0]?(i.shift(),c.queue=y(i,x)):"root"===u&&":"===i[0]?(i.shift(),c[u]=tt(i)):"threshold"===u&&":"===i[0]?(i.shift(),c[u]=y(i,x)):fe(e,"htmx:syntax:error",{token:i.shift()})}o.push(c)}i.length===r&&fe(e,"htmx:syntax:error",{token:i.shift()}),y(i,Je)}while(","===i[0]&&i.shift());return n&&(n[t]=o),o}function it(e){var t=te(e,"hx-trigger"),n=[];if(t){var o=Q.config.triggerSpecsCache;n=o&&o[t]||nt(e,t,o)}return n.length>0?n:h(e,"form")?[{trigger:"submit"}]:h(e,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:h(e,rt)?[{trigger:"change"}]:[{trigger:"click"}]}function at(e){ae(e).cancelled=!0}function ot(e,t,n){var o=ae(e);o.timeout=setTimeout(function(){se(e)&&!0!==o.cancelled&&(ct(n,e,Wt("hx:poll:trigger",{triggerSpec:n,target:e}))||t(e),ot(e,t,n))},n.pollInterval)}function st(e){return location.hostname===e.hostname&&ee(e,"href")&&0!==ee(e,"href").indexOf("#")}function lt(e,t,n){if("A"===e.tagName&&st(e)&&(""===e.target||"_self"===e.target)||"FORM"===e.tagName){var o,i;if(t.boosted=!0,"A"===e.tagName)o="get",i=ee(e,"href");else{var r=ee(e,"method");o=r?r.toLowerCase():"get",i=ee(e,"action")}n.forEach(function(n){ht(e,function(e,t){v(e,Q.config.disableSelector)?p(e):he(o,i,e,t)},t,n,!0)})}}function ut(e,t){if("submit"===e.type||"click"===e.type){if("FORM"===t.tagName)return!0;if(h(t,'input[type="submit"], button')&&null!==v(t,"form"))return!0;if("A"===t.tagName&&t.href&&("#"===t.getAttribute("href")||0!==t.getAttribute("href").indexOf("#")))return!0}return!1}function ft(e,t){return ae(e).boosted&&"A"===e.tagName&&"click"===t.type&&(t.ctrlKey||t.metaKey)}function ct(e,t,n){var o=e.eventFilter;if(o)try{return!0!==o.call(t,n)}catch(e){return fe(re().body,"htmx:eventFilter:error",{error:e,source:o.source}),!0}return!1}function ht(e,t,n,o,i){var r,s=ae(e);r=o.from?Z(e,o.from):[e],o.changed&&r.forEach(function(e){ae(e).lastValue=e.value}),oe(r,function(r){var a=function(n){if(se(e)){if(!ft(e,n)&&((i||ut(n,e))&&n.preventDefault(),!ct(o,e,n))){var l=ae(n);if(l.triggerSpec=o,null==l.handledFor&&(l.handledFor=[]),l.handledFor.indexOf(e)<0){if(l.handledFor.push(e),o.consume&&n.stopPropagation(),o.target&&n.target&&!h(n.target,o.target))return;if(o.once){if(s.triggeredOnce)return;s.triggeredOnce=!0}if(o.changed){var c=ae(r);if(c.lastValue===r.value)return;c.lastValue=r.value}if(s.delayed&&clearTimeout(s.delayed),s.throttle)return;o.throttle>0?s.throttle||(t(e,n),s.throttle=setTimeout(function(){s.throttle=null},o.throttle)):o.delay>0?s.delayed=setTimeout(function(){t(e,n)},o.delay):(ce(e,"htmx:trigger"),t(e,n))}}}else r.removeEventListener(o.trigger,a)};null==n.listenerInfos&&(n.listenerInfos=[]),n.listenerInfos.push({trigger:o.trigger,listener:a,on:r}),r.addEventListener(o.trigger,a)})}function gt(){dt||(dt=function(){vt=!0},window.addEventListener("scroll",dt),setInterval(function(){vt&&(vt=!1,oe(re().querySelectorAll("[hx-trigger='revealed'],[data-hx-trigger='revealed']"),function(e){mt(e)}))},200))}function mt(e){!o(e,"data-hx-revealed")&&X(e)&&(e.setAttribute("data-hx-revealed","true"),ae(e).initHash?ce(e,"revealed"):e.addEventListener("htmx:afterProcessNode",function(){ce(e,"revealed")},{once:!0}))}function pt(e,t,n){for(var o=D(n),i=0;i<o.length;i++){var r=o[i].split(/:(.+)/);"connect"===r[0]&&xt(e,r[1],0),"send"===r[0]&&bt(e)}}function xt(e,t,n){if(se(e)){if(0==t.indexOf("/")){var o=location.hostname+(location.port?":"+location.port:"");"https:"==location.protocol?t="wss://"+o+t:"http:"==location.protocol&&(t="ws://"+o+t)}var i=Q.createWebSocket(t);i.onerror=function(t){fe(e,"htmx:wsError",{error:t,socket:i}),yt(e)},i.onclose=function(o){if([1006,1012,1013].indexOf(o.code)>=0){var i=wt(n);setTimeout(function(){xt(e,t,n+1)},i)}},i.onopen=function(){n=0},ae(e).webSocket=i,i.addEventListener("message",function(t){if(!yt(e)){var n=t.data;R(e,function(t){n=t.transformResponse(n,null,e)});for(var o=T(e),i=M(l(n).children),r=0;r<i.length;r++){var s=i[r];Ee(te(s,"hx-swap-oob")||"true",s,o)}nr(o.tasks)}})}}function yt(e){if(!se(e))return ae(e).webSocket.close(),!0}function bt(e){var t=c(e,function(e){return null!=ae(e).webSocket});t?e.addEventListener(it(e)[0].trigger,function(n){var o=ae(t).webSocket,i=xr(e,t),r=dr(e,"post"),s=r.errors,a=yr(le(r.values,Hr(e)),e);a.HEADERS=i,s&&s.length>0?ce(e,"htmx:validation:halted",s):(o.send(JSON.stringify(a)),ut(n,e)&&n.preventDefault())}):fe(e,"htmx:noWebSocketSourceError")}function wt(e){
var t=Q.config.wsReconnectDelay;if("function"==typeof t)return t(e);if("full-jitter"===t){var n=Math.min(e,6);return 1e3*Math.pow(2,n)*Math.random()}b('htmx.config.wsReconnectDelay must either be a function or the string "full-jitter"')}function St(e,t,n){for(var o=D(n),i=0;i<o.length;i++){var r=o[i].split(/:(.+)/);"connect"===r[0]&&Et(e,r[1]),"swap"===r[0]&&Ct(e,r[1])}}function Et(e,t){var n=Q.createEventSource(t);n.onerror=function(t){fe(e,"htmx:sseError",{error:t,source:n}),Tt(e)},ae(e).sseEventSource=n}function Ct(e,t){var n=c(e,Ot);if(n){var o=ae(n).sseEventSource,i=function(r){if(!Tt(n))if(se(e)){var s=r.data;R(e,function(t){s=t.transformResponse(s,null,e)});var a=wr(e),l=ye(e),c=T(e);je(a.swapStyle,l,e,s,c),nr(c.tasks),ce(e,"htmx:sseMessage",r)}else o.removeEventListener(t,i)};ae(e).sseListener=i,o.addEventListener(t,i)}else fe(e,"htmx:noSSESourceError")}function Rt(e,t,n){var o=c(e,Ot);if(o){var i=ae(o).sseEventSource,r=function(){Tt(o)||(se(e)?t(e):i.removeEventListener(n,r))};ae(e).sseListener=r,i.addEventListener(n,r)}else fe(e,"htmx:noSSESourceError")}function Tt(e){if(!se(e))return ae(e).sseEventSource.close(),!0}function Ot(e){return null!=ae(e).sseEventSource}function qt(e,t,n,o){var i=function(){n.loaded||(n.loaded=!0,t(e))};o>0?setTimeout(i,o):i()}function Ht(e,t,n){var i=!1;return oe(w,function(r){if(o(e,"hx-"+r)){var s=te(e,"hx-"+r);i=!0,t.path=s,t.verb=r,n.forEach(function(n){Lt(e,n,t,function(e,t){v(e,Q.config.disableSelector)?p(e):he(r,s,e,t)})})}}),i}function Lt(e,t,n,o){if(t.sseEvent)Rt(e,o,t.sseEvent);else if("revealed"===t.trigger)gt(),ht(e,o,n,t),mt(e);else if("intersect"===t.trigger){var i={};t.root&&(i.root=ue(e,t.root)),t.threshold&&(i.threshold=parseFloat(t.threshold)),new IntersectionObserver(function(t){for(var n=0;n<t.length;n++){if(t[n].isIntersecting){ce(e,"intersect");break}}},i).observe(e),ht(e,o,n,t)}else"load"===t.trigger?ct(t,e,Wt("load",{elt:e}))||qt(e,o,n,t.delay):t.pollInterval>0?(n.polling=!0,ot(e,o,t)):ht(e,o,n,t)}function At(e){if(Q.config.allowScriptTags&&("text/javascript"===e.type||"module"===e.type||""===e.type)){var t=re().createElement("script");oe(e.attributes,function(e){t.setAttribute(e.name,e.value)}),t.textContent=e.textContent,t.async=!1,Q.config.inlineScriptNonce&&(t.nonce=Q.config.inlineScriptNonce);var n=e.parentElement;try{n.insertBefore(t,e)}catch(e){b(e)}finally{e.parentElement&&e.parentElement.removeChild(e)}}}function Nt(e){h(e,"script")&&At(e),oe(f(e,"script"),function(e){At(e)})}function It(e){for(var t=e.attributes,n=0;n<t.length;n++){var o=t[n].name;if(s(o,"hx-on:")||s(o,"data-hx-on:")||s(o,"hx-on-")||s(o,"data-hx-on-"))return!0}return!1}function kt(e){var t=null,n=[];if(It(e)&&n.push(e),document.evaluate)for(var o=document.evaluate('.//*[@*[ starts-with(name(), "hx-on:") or starts-with(name(), "data-hx-on:") or starts-with(name(), "hx-on-") or starts-with(name(), "data-hx-on-") ]]',e);t=o.iterateNext();)n.push(t);else for(var i=e.getElementsByTagName("*"),r=0;r<i.length;r++)It(i[r])&&n.push(i[r]);return n}function Pt(e){if(e.querySelectorAll){var t=", [hx-boost] a, [data-hx-boost] a, a[hx-boost], a[data-hx-boost]";return e.querySelectorAll(i+t+", form, [type='submit'], [hx-sse], [data-hx-sse], [hx-ws], [data-hx-ws], [hx-ext], [data-hx-ext], [hx-trigger], [data-hx-trigger], [hx-on], [data-hx-on]")}return[]}function Mt(e){var t=v(e.target,"button, input[type='submit']"),n=Dt(e);n&&(n.lastButtonClicked=t)}function Xt(e){var t=Dt(e);t&&(t.lastButtonClicked=null)}function Dt(e){var t=v(e.target,"button, input[type='submit']");if(t){var n=g("#"+ee(t,"form"))||v(t,"form");if(n)return ae(n)}}function Ut(e){e.addEventListener("click",Mt),e.addEventListener("focusin",Mt),e.addEventListener("focusout",Xt)}function Bt(e){for(var t=Ye(e),n=0,o=0;o<t.length;o++){const e=t[o];"{"===e?n++:"}"===e&&n--}return n}function Ft(e,t,n){var o,i=ae(e);Array.isArray(i.onHandlers)||(i.onHandlers=[]);var r=function(t){return Tr(e,function(){o||(o=new Function("event",n)),o.call(e,t)})};e.addEventListener(t,r),i.onHandlers.push({event:t,listener:r})}function Vt(e){var t=te(e,"hx-on");if(t){for(var n={},o=t.split("\n"),i=null,r=0;o.length>0;){var s=o.shift(),a=s.match(/^\s*([a-zA-Z:\-\.]+:)(.*)/);0===r&&a?(s.split(":"),n[i=a[1].slice(0,-1)]=a[2]):n[i]+=s,r+=Bt(s)}for(var l in n)Ft(e,l,n[l])}}function jt(e){Ae(e);for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t].name,o=e.attributes[t].value;if(s(n,"hx-on")||s(n,"data-hx-on")){var i=n.indexOf("-on")+3,r=n.slice(i,i+1);if("-"===r||":"===r){var a=n.slice(i+1);s(a,":")?a="htmx"+a:s(a,"-")?a="htmx:"+a.slice(1):s(a,"htmx-")&&(a="htmx:"+a.slice(5)),Ft(e,a,o)}}}}function _t(e){if(v(e,Q.config.disableSelector))p(e);else{var t=ae(e);if(t.initHash!==Le(e)){Ne(e),t.initHash=Le(e),Vt(e),ce(e,"htmx:beforeProcessNode"),e.value&&(t.lastValue=e.value);var n=it(e);Ht(e,t,n)||("true"===ne(e,"hx-boost")?lt(e,t,n):o(e,"hx-trigger")&&n.forEach(function(n){Lt(e,n,t,function(){})})),("FORM"===e.tagName||"submit"===ee(e,"type")&&o(e,"form"))&&Ut(e);var i=te(e,"hx-sse");i&&St(e,t,i);var r=te(e,"hx-ws");r&&pt(e,t,r),ce(e,"htmx:afterProcessNode")}}}function zt(e){v(e=g(e),Q.config.disableSelector)?p(e):(_t(e),oe(Pt(e),function(e){_t(e)}),oe(kt(e),jt))}function $t(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Wt(e,t){var n;return window.CustomEvent&&"function"==typeof window.CustomEvent?n=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:t}):(n=re().createEvent("CustomEvent")).initCustomEvent(e,!0,!0,t),n}function fe(e,t,n){ce(e,t,le({error:t},n))}function Gt(e){return"htmx:afterProcessNode"===e}function R(e,t){oe(Fr(e),function(e){try{t(e)}catch(e){b(e)}})}function b(e){console.error?console.error(e):console.log&&console.log("ERROR: ",e)}function ce(e,t,n){e=g(e),null==n&&(n={}),n.elt=e;var o=Wt(t,n);Q.logger&&!Gt(t)&&Q.logger(e,t,n),n.error&&(b(n.error),ce(e,"htmx:error",{errorInfo:n}));var i=e.dispatchEvent(o),r=$t(t);if(i&&r!==t){var s=Wt(r,o.detail);i=i&&e.dispatchEvent(s)}return R(e,function(e){i=i&&!1!==e.onEvent(t,o)&&!o.defaultPrevented}),i}function Zt(){return re().querySelector("[hx-history-elt],[data-hx-history-elt]")||re().body}function Kt(e,t,n,o){if(U())if(Q.config.historyCacheSize<=0)localStorage.removeItem("htmx-history-cache");else{e=B(e);for(var i=E(localStorage.getItem("htmx-history-cache"))||[],r=0;r<i.length;r++)if(i[r].url===e){i.splice(r,1);break}var s={url:e,content:t,title:n,scroll:o};for(ce(re().body,"htmx:historyItemCreated",{item:s,cache:i}),i.push(s);i.length>Q.config.historyCacheSize;)i.shift();for(;i.length>0;)try{localStorage.setItem("htmx-history-cache",JSON.stringify(i));break}catch(e){fe(re().body,"htmx:historyCacheError",{cause:e,cache:i}),i.shift()}}}function Yt(e){if(!U())return null;e=B(e);for(var t=E(localStorage.getItem("htmx-history-cache"))||[],n=0;n<t.length;n++)if(t[n].url===e)return t[n];return null}function Qt(e){var t=Q.config.requestClass,o=e.cloneNode(!0);return oe(f(o,"."+t),function(e){n(e,t)}),o.innerHTML}function er(){var e,t=Zt(),n=Jt||location.pathname+location.search;try{e=re().querySelector('[hx-history="false" i],[data-hx-history="false" i]')}catch(t){e=re().querySelector('[hx-history="false"],[data-hx-history="false"]')}e||(ce(re().body,"htmx:beforeHistorySave",{path:n,historyElt:t}),Kt(n,Qt(t),re().title,window.scrollY)),Q.config.historyEnabled&&history.replaceState({htmx:!0},re().title,window.location.href)}function tr(e){Q.config.getCacheBusterParam&&(G(e=e.replace(/org\.htmx\.cache-buster=[^&]*&?/,""),"&")||G(e,"?"))&&(e=e.slice(0,-1)),Q.config.historyEnabled&&history.pushState({htmx:!0},"",e),Jt=e}function rr(e){Q.config.historyEnabled&&history.replaceState({htmx:!0},"",e),Jt=e}function nr(e){oe(e,function(e){e.call()})}function ir(e){var t=new XMLHttpRequest,n={path:e,xhr:t};ce(re().body,"htmx:historyCacheMiss",n),t.open("GET",e,!0),t.setRequestHeader("HX-Request","true"),t.setRequestHeader("HX-History-Restore-Request","true"),t.setRequestHeader("HX-Current-URL",re().location.href),t.onload=function(){if(this.status>=200&&this.status<400){ce(re().body,"htmx:historyCacheMissLoad",n);var t=l(this.response);t=t.querySelector("[hx-history-elt],[data-hx-history-elt]")||t;var o=Zt(),i=T(o),r=Ve(this.response);if(r){var s=C("title");s?s.innerHTML=r:window.document.title=r}Ue(o,t,i),nr(i.tasks),Jt=e,ce(re().body,"htmx:historyRestore",{path:e,cacheMiss:!0,serverResponse:this.response})}else fe(re().body,"htmx:historyCacheMissLoadError",n)},t.send()}function ar(e){er();var t=Yt(e=e||location.pathname+location.search);if(t){var n=l(t.content),o=Zt(),i=T(o);Ue(o,n,i),nr(i.tasks),document.title=t.title,setTimeout(function(){window.scrollTo(0,t.scroll)},0),Jt=e,ce(re().body,"htmx:historyRestore",{path:e,item:t})}else Q.config.refreshOnHistoryMiss?window.location.reload(!0):ir(e)}function or(e){var t=pe(e,"hx-indicator");return null==t&&(t=[e]),oe(t,function(e){var t=ae(e);t.requestCount=(t.requestCount||0)+1,e.classList.add.call(e.classList,Q.config.requestClass)}),t}function sr(e){var t=pe(e,"hx-disabled-elt");return null==t&&(t=[]),oe(t,function(e){var t=ae(e);t.requestCount=(t.requestCount||0)+1,e.setAttribute("disabled","")}),t}function lr(e,t){oe(e,function(e){var t=ae(e);t.requestCount=(t.requestCount||0)-1,0===t.requestCount&&e.classList.remove.call(e.classList,Q.config.requestClass)}),oe(t,function(e){var t=ae(e);t.requestCount=(t.requestCount||0)-1,0===t.requestCount&&e.removeAttribute("disabled")})}function ur(e,t){for(var n=0;n<e.length;n++){if(e[n].isSameNode(t))return!0}return!1}function fr(e){return""!==e.name&&null!=e.name&&!e.disabled&&!v(e,"fieldset[disabled]")&&("button"!==e.type&&"submit"!==e.type&&"image"!==e.tagName&&"reset"!==e.tagName&&"file"!==e.tagName&&("checkbox"!==e.type&&"radio"!==e.type||e.checked))}function cr(e,t,n){if(null!=e&&null!=t){var o=n[e];o===undefined?n[e]=t:Array.isArray(o)?Array.isArray(t)?n[e]=o.concat(t):o.push(t):Array.isArray(t)?n[e]=[o].concat(t):n[e]=[o,t]}}function hr(e,t,n,o,i){if(null!=o&&!ur(e,o)){if(e.push(o),fr(o)){var r=ee(o,"name"),s=o.value;o.multiple&&"SELECT"===o.tagName&&(s=M(o.querySelectorAll("option:checked")).map(function(e){return e.value})),o.files&&(s=M(o.files)),cr(r,s,t),i&&vr(o,n)}if(h(o,"form"))oe(o.elements,function(o){hr(e,t,n,o,i)})}}function vr(e,t){e.willValidate&&(ce(e,"htmx:validation:validate"),e.checkValidity()||(t.push({elt:e,message:e.validationMessage,validity:e.validity}),ce(e,"htmx:validation:failed",{message:e.validationMessage,validity:e.validity})))}function dr(e,t){var n=[],o={},i={},r=[],s=ae(e);s.lastButtonClicked&&!se(s.lastButtonClicked)&&(s.lastButtonClicked=null);var a=h(e,"form")&&!0!==e.noValidate||"true"===te(e,"hx-validate");if(s.lastButtonClicked&&(a=a&&!0!==s.lastButtonClicked.formNoValidate),"get"!==t&&hr(n,i,r,v(e,"form"),a),hr(n,o,r,e,a),s.lastButtonClicked||"BUTTON"===e.tagName||"INPUT"===e.tagName&&"submit"===ee(e,"type")){var l=s.lastButtonClicked||e;cr(ee(l,"name"),l.value,i)}return oe(pe(e,"hx-include"),function(e){hr(n,o,r,e,a),h(e,"form")||oe(e.querySelectorAll(rt),function(e){hr(n,o,r,e,a)})}),o=le(o,i),{errors:r,values:o}}function gr(e,t,n){""!==e&&(e+="&"),"[object Object]"===String(n)&&(n=JSON.stringify(n));var o=encodeURIComponent(n);return e+=encodeURIComponent(t)+"="+o}function mr(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];Array.isArray(o)?oe(o,function(e){t=gr(t,n,e)}):t=gr(t,n,o)}return t}function pr(e){var t=new FormData;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];Array.isArray(o)?oe(o,function(e){t.append(n,e)}):t.append(n,o)}return t}function xr(e,t,n){var o={"HX-Request":"true","HX-Trigger":ee(e,"id"),"HX-Trigger-Name":ee(e,"name"),"HX-Target":te(t,"id"),"HX-Current-URL":re().location.href};return Rr(e,"hx-headers",!1,o),n!==undefined&&(o["HX-Prompt"]=n),ae(e).boosted&&(o["HX-Boosted"]="true"),o}function yr(e,t){var n=ne(t,"hx-params");if(n){if("none"===n)return{};if("*"===n)return e;if(0===n.indexOf("not "))return oe(n.substr(4).split(","),function(t){t=t.trim(),delete e[t]}),e;var o={};return oe(n.split(","),function(t){t=t.trim(),o[t]=e[t]}),o}return e}function br(e){return ee(e,"href")&&ee(e,"href").indexOf("#")>=0}function wr(e,t){var n=t||ne(e,"hx-swap"),o={swapStyle:ae(e).boosted?"innerHTML":Q.config.defaultSwapStyle,swapDelay:Q.config.defaultSwapDelay,settleDelay:Q.config.defaultSettleDelay};if(Q.config.scrollIntoViewOnBoost&&ae(e).boosted&&!br(e)&&(o.show="top"),n){var i=D(n);if(i.length>0)for(var r=0;r<i.length;r++){var s=i[r];if(0===s.indexOf("swap:"))o.swapDelay=d(s.substr(5));else if(0===s.indexOf("settle:"))o.settleDelay=d(s.substr(7));else if(0===s.indexOf("transition:"))o.transition="true"===s.substr(11);else if(0===s.indexOf("ignoreTitle:"))o.ignoreTitle="true"===s.substr(12);else if(0===s.indexOf("scroll:")){var a=(c=s.substr(7).split(":")).pop(),l=c.length>0?c.join(":"):null;o.scroll=a,o.scrollTarget=l}else if(0===s.indexOf("show:")){var c,u=(c=s.substr(5).split(":")).pop();l=c.length>0?c.join(":"):null;o.show=u,o.showTarget=l}else if(0===s.indexOf("focus-scroll:")){var p=s.substr("focus-scroll:".length);o.focusScroll="true"==p}else 0==r?o.swapStyle=s:b("Unknown modifier in hx-swap: "+s)}}return o}function Sr(e){return"multipart/form-data"===ne(e,"hx-encoding")||h(e,"form")&&"multipart/form-data"===ee(e,"enctype")}function Er(e,t,n){var o=null;return R(t,function(i){null==o&&(o=i.encodeParameters(e,n,t))}),null!=o?o:Sr(t)?pr(n):mr(n)}function T(e){return{tasks:[],elts:[e]}}function Cr(e,t){var n=e[0],o=e[e.length-1];if(t.scroll){var i=null;t.scrollTarget&&(i=ue(n,t.scrollTarget)),"top"===t.scroll&&(n||i)&&((i=i||n).scrollTop=0),"bottom"===t.scroll&&(o||i)&&((i=i||o).scrollTop=i.scrollHeight)}if(t.show){i=null;if(t.showTarget){var r=t.showTarget;"window"===t.showTarget&&(r="body"),i=ue(n,r)}"top"===t.show&&(n||i)&&(i=i||n).scrollIntoView({block:"start",behavior:Q.config.scrollBehavior}),"bottom"===t.show&&(o||i)&&(i=i||o).scrollIntoView({block:"end",behavior:Q.config.scrollBehavior})}}function Rr(e,t,n,o){if(null==o&&(o={}),null==e)return o;var i=te(e,t);if(i){var r,s=i.trim(),a=n;if("unset"===s)return null;for(var l in 0===s.indexOf("javascript:")?(s=s.substr(11),a=!0):0===s.indexOf("js:")&&(s=s.substr(3),a=!0),0!==s.indexOf("{")&&(s="{"+s+"}"),r=a?Tr(e,function(){return Function("return ("+s+")")()},{}):E(s))r.hasOwnProperty(l)&&null==o[l]&&(o[l]=r[l])}return Rr(u(e),t,n,o)}function Tr(e,t,n){return Q.config.allowEval?t():(fe(e,"htmx:evalDisallowedError"),n)}function Or(e,t){return Rr(e,"hx-vars",!0,t)}function qr(e,t){return Rr(e,"hx-vals",!1,t)}function Hr(e){return le(Or(e),qr(e))}function Lr(t,n,o){if(null!==o)try{t.setRequestHeader(n,o)}catch(e){t.setRequestHeader(n,encodeURIComponent(o)),t.setRequestHeader(n+"-URI-AutoEncoded","true")}}function Ar(e){if(e.responseURL&&"undefined"!=typeof URL)try{var t=new URL(e.responseURL);return t.pathname+t.search}catch(t){fe(re().body,"htmx:badResponseUrl",{url:e.responseURL})}}function O(e,t){return t.test(e.getAllResponseHeaders())}function Nr(e,t,n){return e=e.toLowerCase(),n?n instanceof Element||I(n,"String")?he(e,t,null,null,{targetOverride:g(n),returnPromise:!0}):he(e,t,g(n.source),n.event,{handler:n.handler,headers:n.headers,values:n.values,targetOverride:g(n.target),swapOverride:n.swap,select:n.select,returnPromise:!0}):he(e,t,null,null,{returnPromise:!0})}function Ir(e){for(var t=[];e;)t.push(e),e=e.parentElement;return t}function kr(e,t,n){var o,i;"function"==typeof URL?(i=new URL(t,document.location.href),o=document.location.origin===i.origin):(i=t,o=s(t,document.location.origin));return!(Q.config.selfRequestsOnly&&!o)&&ce(e,"htmx:validateUrl",le({url:i,sameHost:o},n))}function he(e,t,n,o,i,r){var s=null,a=null;if((i=null!=i?i:{}).returnPromise&&"undefined"!=typeof Promise)var l=new Promise(function(e,t){s=e,a=t});null==n&&(n=re().body);var c=i.handler||Mr,d=i.select||null;if(!se(n))return ie(s),l;var u=i.targetOverride||ye(n);if(null==u||u==me)return fe(n,"htmx:targetError",{target:te(n,"hx-target")}),ie(a),l;var p=ae(n),f=p.lastButtonClicked;if(f){var h=ee(f,"formaction");null!=h&&(t=h);var g=ee(f,"formmethod");null!=g&&"dialog"!==g.toLowerCase()&&(e=g)}var m=ne(n,"hx-confirm");if(r===undefined&&!1===ce(n,"htmx:confirm",{target:u,elt:n,path:t,verb:e,triggeringEvent:o,etc:i,issueRequest:function(r){return he(e,t,n,o,i,!!r)},question:m}))return ie(s),l;var v=n,y=ne(n,"hx-sync"),b=null,w=!1;if(y){var k=y.split(":"),x=k[0].trim();if(v="this"===x?xe(n,"hx-sync"):ue(n,x),y=(k[1]||"drop").trim(),p=ae(v),"drop"===y&&p.xhr&&!0!==p.abortable)return ie(s),l;if("abort"===y){if(p.xhr)return ie(s),l;w=!0}else if("replace"===y)ce(v,"htmx:abort");else if(0===y.indexOf("queue")){b=(y.split(" ")[1]||"last").trim()}}if(p.xhr){if(!p.abortable){if(null==b){if(o){var C=ae(o);C&&C.triggerSpec&&C.triggerSpec.queue&&(b=C.triggerSpec.queue)}null==b&&(b="last")}return null==p.queuedRequests&&(p.queuedRequests=[]),"first"===b&&0===p.queuedRequests.length?p.queuedRequests.push(function(){he(e,t,n,o,i)}):"all"===b?p.queuedRequests.push(function(){he(e,t,n,o,i)}):"last"===b&&(p.queuedRequests=[],p.queuedRequests.push(function(){he(e,t,n,o,i)})),ie(s),l}ce(v,"htmx:abort")}var S=new XMLHttpRequest;p.xhr=S,p.abortable=w;var T=function(){(p.xhr=null,p.abortable=!1,null!=p.queuedRequests&&p.queuedRequests.length>0)&&p.queuedRequests.shift()()},$=ne(n,"hx-prompt");if($){var j=prompt($);if(null===j||!ce(n,"htmx:prompt",{prompt:j,target:u}))return ie(s),T(),l}if(m&&!r&&!confirm(m))return ie(s),T(),l;var E=xr(n,u,j);"get"===e||Sr(n)||(E["Content-Type"]="application/x-www-form-urlencoded"),i.headers&&(E=le(E,i.headers));var _=dr(n,e),A=_.errors,O=_.values;i.values&&(O=le(O,i.values));var I=le(O,Hr(n)),D=yr(I,n);Q.config.getCacheBusterParam&&"get"===e&&(D["org.htmx.cache-buster"]=ee(u,"id")||"true"),null!=t&&""!==t||(t=re().location.href);var L=Rr(n,"hx-request"),H=ae(n).boosted,P=Q.config.methodsThatUseUrlParams.indexOf(e)>=0,N={boosted:H,useUrlParams:P,parameters:D,unfilteredParameters:I,headers:E,target:u,verb:e,errors:A,withCredentials:i.credentials||L.credentials||Q.config.withCredentials,timeout:i.timeout||L.timeout||Q.config.timeout,path:t,triggeringEvent:o};if(!ce(n,"htmx:configRequest",N))return ie(s),T(),l;if(t=N.path,e=N.verb,E=N.headers,D=N.parameters,A=N.errors,P=N.useUrlParams,A&&A.length>0)return ce(n,"htmx:validation:halted",N),ie(s),T(),l;var M=t.split("#"),q=M[0],R=M[1],B=t;P&&(B=q,0!==Object.keys(D).length&&(B.indexOf("?")<0?B+="?":B+="&",B+=mr(D),R&&(B+="#"+R)));if(!kr(n,B,N))return fe(n,"htmx:invalidPath",N),ie(a),l;if(S.open(e.toUpperCase(),B,!0),S.overrideMimeType("text/html"),S.withCredentials=N.withCredentials,S.timeout=N.timeout,L.noHeaders);else for(var F in E)if(E.hasOwnProperty(F)){var z=E[F];Lr(S,F,z)}var W={xhr:S,target:u,requestConfig:N,etc:i,boosted:H,select:d,pathInfo:{requestPath:t,finalRequestPath:B,anchor:R}};if(S.onload=function(){try{var e=Ir(n);if(W.pathInfo.responsePath=Ar(S),c(n,W),lr(U,X),ce(n,"htmx:afterRequest",W),ce(n,"htmx:afterOnLoad",W),!se(n)){for(var t=null;e.length>0&&null==t;){var o=e.shift();se(o)&&(t=o)}t&&(ce(t,"htmx:afterRequest",W),ce(t,"htmx:afterOnLoad",W))}ie(s),T()}catch(e){throw fe(n,"htmx:onLoadError",le({error:e},W)),e}},S.onerror=function(){lr(U,X),fe(n,"htmx:afterRequest",W),fe(n,"htmx:sendError",W),ie(a),T()},S.onabort=function(){lr(U,X),fe(n,"htmx:afterRequest",W),fe(n,"htmx:sendAbort",W),ie(a),T()},S.ontimeout=function(){lr(U,X),fe(n,"htmx:afterRequest",W),fe(n,"htmx:timeout",W),ie(a),T()},!ce(n,"htmx:beforeRequest",W))return ie(s),T(),l;var U=or(n),X=sr(n);oe(["loadstart","loadend","progress","abort"],function(e){oe([S,S.upload],function(t){t.addEventListener(e,function(t){ce(n,"htmx:xhr:"+e,{lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total})})})}),ce(n,"htmx:beforeSend",W);var V=P?null:Er(S,n,D);return S.send(V),l}function Pr(e,t){var n=t.xhr,o=null,i=null;if(O(n,/HX-Push:/i)?(o=n.getResponseHeader("HX-Push"),i="push"):O(n,/HX-Push-Url:/i)?(o=n.getResponseHeader("HX-Push-Url"),i="push"):O(n,/HX-Replace-Url:/i)&&(o=n.getResponseHeader("HX-Replace-Url"),i="replace"),o)return"false"===o?{}:{type:i,path:o};var r=t.pathInfo.finalRequestPath,s=t.pathInfo.responsePath,a=ne(e,"hx-push-url"),l=ne(e,"hx-replace-url"),c=ae(e).boosted,d=null,u=null;return a?(d="push",u=a):l?(d="replace",u=l):c&&(d="push",u=s||r),u?"false"===u?{}:("true"===u&&(u=s||r),t.pathInfo.anchor&&-1===u.indexOf("#")&&(u=u+"#"+t.pathInfo.anchor),{type:d,path:u}):{}}function Mr(e,t){var n=t.xhr,o=t.target,i=t.etc,r=(t.requestConfig,t.select);if(ce(e,"htmx:beforeOnLoad",t)){if(O(n,/HX-Trigger:/i)&&_e(n,"HX-Trigger",e),O(n,/HX-Location:/i)){er();var s=n.getResponseHeader("HX-Location");return 0===s.indexOf("{")&&(h=E(s),s=h.path,delete h.path),void Nr("GET",s,h).then(function(){tr(s)})}var a=O(n,/HX-Refresh:/i)&&"true"===n.getResponseHeader("HX-Refresh");if(O(n,/HX-Redirect:/i))return location.href=n.getResponseHeader("HX-Redirect"),void(a&&location.reload());if(a)location.reload();else{O(n,/HX-Retarget:/i)&&("this"===n.getResponseHeader("HX-Retarget")?t.target=e:t.target=ue(e,n.getResponseHeader("HX-Retarget")));var l=Pr(e,t),c=n.status>=200&&n.status<400&&204!==n.status,d=n.response,u=n.status>=400,p=Q.config.ignoreTitle,f=le({shouldSwap:c,serverResponse:d,isError:u,ignoreTitle:p},t);if(ce(o,"htmx:beforeSwap",f)){if(o=f.target,d=f.serverResponse,u=f.isError,p=f.ignoreTitle,t.target=o,t.failed=u,t.successful=!u,f.shouldSwap){286===n.status&&at(e),R(e,function(t){d=t.transformResponse(d,n,e)}),l.type&&er();var h,g=i.swapOverride;O(n,/HX-Reswap:/i)&&(g=n.getResponseHeader("HX-Reswap")),(h=wr(e,g)).hasOwnProperty("ignoreTitle")&&(p=h.ignoreTitle),o.classList.add(Q.config.swappingClass);var m=null,v=null,y=function(){try{var i,s=document.activeElement,a={};try{a={elt:s,start:s?s.selectionStart:null,end:s?s.selectionEnd:null}}catch(s){}r&&(i=r),O(n,/HX-Reselect:/i)&&(i=n.getResponseHeader("HX-Reselect")),l.type&&(ce(re().body,"htmx:beforeHistoryUpdate",le({history:l},t)),"push"===l.type?(tr(l.path),ce(re().body,"htmx:pushedIntoHistory",{path:l.path})):(rr(l.path),ce(re().body,"htmx:replacedInHistory",{path:l.path})));var c=T(o);if(je(h.swapStyle,o,e,d,c,i),a.elt&&!se(a.elt)&&ee(a.elt,"id")){var u=document.getElementById(ee(a.elt,"id")),f={preventScroll:h.focusScroll!==undefined?!h.focusScroll:!Q.config.defaultFocusScroll};if(u){if(a.start&&u.setSelectionRange)try{u.setSelectionRange(a.start,a.end)}catch(s){}u.focus(f)}}if(o.classList.remove(Q.config.swappingClass),oe(c.elts,function(e){e.classList&&e.classList.add(Q.config.settlingClass),ce(e,"htmx:afterSwap",t)}),O(n,/HX-Trigger-After-Swap:/i)){var g=e;se(e)||(g=re().body),_e(n,"HX-Trigger-After-Swap",g)}var y=function(){if(oe(c.tasks,function(e){e.call()}),oe(c.elts,function(e){e.classList&&e.classList.remove(Q.config.settlingClass),ce(e,"htmx:afterSettle",t)}),t.pathInfo.anchor){var o=re().getElementById(t.pathInfo.anchor);o&&o.scrollIntoView({block:"start",behavior:"auto"})}if(c.title&&!p){var i=C("title");i?i.innerHTML=c.title:window.document.title=c.title}if(Cr(c.elts,h),O(n,/HX-Trigger-After-Settle:/i)){var r=e;se(e)||(r=re().body),_e(n,"HX-Trigger-After-Settle",r)}ie(m)};h.settleDelay>0?setTimeout(y,h.settleDelay):y()}catch(s){throw fe(e,"htmx:swapError",t),ie(v),s}},b=Q.config.globalViewTransitions;if(h.hasOwnProperty("transition")&&(b=h.transition),b&&ce(e,"htmx:beforeTransition",t)&&"undefined"!=typeof Promise&&document.startViewTransition){var w=new Promise(function(e,t){m=e,v=t}),k=y;y=function(){document.startViewTransition(function(){return k(),w})}}h.swapDelay>0?setTimeout(y,h.swapDelay):y()}u&&fe(e,"htmx:responseError",le({error:"Response Status Error Code "+n.status+" from "+t.pathInfo.requestPath},t))}}}}function Dr(){return{init:function(){return null},onEvent:function(){return!0},transformResponse:function(e){return e},isInlineSwap:function(){return!1},handleSwap:function(){return!1},encodeParameters:function(){return null}}}function Ur(e,t){t.init&&t.init(r),Xr[e]=le(Dr(),t)}function Br(e){delete Xr[e]}function Fr(e,t,n){if(e==undefined)return t;t==undefined&&(t=[]),n==undefined&&(n=[]);var o=te(e,"hx-ext");return o&&oe(o.split(","),function(e){if("ignore:"!=(e=e.replace(/ /g,"")).slice(0,7)){if(n.indexOf(e)<0){var o=Xr[e];o&&t.indexOf(o)<0&&t.push(o)}}else n.push(e.slice(7))}),Fr(u(e),t,n)}function jr(e){Vr||"complete"===re().readyState?e():re().addEventListener("DOMContentLoaded",e)}function _r(){!1!==Q.config.includeIndicatorStyles&&re().head.insertAdjacentHTML("beforeend","<style>                      ."+Q.config.indicatorClass+"{opacity:0}                      ."+Q.config.requestClass+" ."+Q.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;}                      ."+Q.config.requestClass+"."+Q.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;}                    </style>")}function zr(){var e=re().querySelector('meta[name="htmx-config"]');return e?E(e.content):null}function $r(){var e=zr();e&&(Q.config=le(Q.config,e))}var Q={onLoad:F,process:zt,on:de,off:ge,trigger:ce,ajax:Nr,find:C,findAll:f,closest:v,values:function(e,t){return dr(e,t||"post").values},remove:_,addClass:z,removeClass:n,toggleClass:$,takeClass:W,defineExtension:Ur,removeExtension:Br,logAll:V,logNone:j,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",useTemplateFragments:!1,scrollBehavior:"smooth",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get"],selfRequestsOnly:!1,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null},parseInterval:d,_:t,createEventSource:function(e){return new EventSource(e,{withCredentials:!0})},createWebSocket:function(e){var t=new WebSocket(e,[]);return t.binaryType=Q.config.wsBinaryType,t},version:"1.9.10"},r={addTriggerHandler:Lt,bodyContains:se,canAccessLocalStorage:U,findThisElement:xe,filterValues:yr,hasAttribute:o,getAttributeValue:te,getClosestAttributeValue:ne,getClosestMatch:c,getExpressionVars:Hr,getHeaders:xr,getInputValues:dr,getInternalData:ae,getSwapSpecification:wr,getTriggerSpecs:it,getTarget:ye,makeFragment:l,mergeObjects:le,makeSettleInfo:T,oobSwap:Ee,querySelectorExt:ue,selectAndSwap:je,settleImmediately:nr,shouldCancel:ut,triggerEvent:ce,triggerErrorEvent:fe,withExtensions:R},w=["get","post","put","delete","patch"],i=w.map(function(e){return"[hx-"+e+"], [data-hx-"+e+"]"}).join(", "),S=e("head"),q=e("title"),H=e("svg",!0),K=function(e,t){for(var n=re().querySelectorAll(t),o=0;o<n.length;o++){var i=n[o];if(i.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_PRECEDING)return i}},Y=function(e,t){for(var n=re().querySelectorAll(t),o=n.length-1;o>=0;o--){var i=n[o];if(i.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_FOLLOWING)return i}},me=re().createElement("output"),ze=/\s/,x=/[\s,]/,$e=/[_$a-zA-Z]/,We=/[_$a-zA-Z0-9]/,Ge=['"',"'","/"],Je=/[^\s]/,Ze=/[{(]/,Ke=/[})]/,rt="input, textarea, select",vt=!1,dt=null,Jt=location.pathname+location.search,Xr={},Vr=!1;return re().addEventListener("DOMContentLoaded",function(){Vr=!0}),jr(function(){$r(),_r();var e=re().body;zt(e);var t=re().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");e.addEventListener("htmx:abort",function(e){var t=ae(e.target);t&&t.xhr&&t.xhr.abort()});const n=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(e){e.state&&e.state.htmx?(ar(),oe(t,function(e){ce(e,"htmx:restored",{document:re(),triggerEvent:ce})})):n&&n(e)},setTimeout(function(){ce(e,"htmx:load",{}),e=null},0)}),Q}()});var ClinicSites=ClinicSites||{};ClinicSites.onLoad=function(e){"complete"===document.readyState||"interactive"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)},function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();!function(n){var o="ekkoLightbox",i=n.fn[o],r={title:"",footer:"",maxWidth:9999,maxHeight:9999,showArrows:!0,wrapping:!0,type:null,alwaysShowClose:!1,loadingMessage:'<div class="ekko-lightbox-loader"><div><div></div><div></div></div></div>',leftArrow:"<span>&#10094;</span>",rightArrow:"<span>&#10095;</span>",strings:{close:"Close",fail:"Failed to load image:",type:"Could not detect remote target type. Force the type using data-type"},dialogClass:"ekko-modal-lg",doc:document,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNavigate:function(){},onContentLoaded:function(){}},s=function(){function o(t,i){var s=this;e(this,o),this._config=n.extend({},r,i),this._$modalArrows=null,this._galleryIndex=0,this._galleryName=null,this._padding=null,this._border=null,this._titleIsShown=!1,this._footerIsShown=!1,this._wantedWidth=0,this._wantedHeight=0,this._touchstartX=0,this._touchendX=0,this._modalId="ekkoLightbox-"+Math.floor(1e3*Math.random()+1),this._$element=t instanceof jQuery?t:n(t),this._isBootstrap3=3==n.fn.modal.Constructor.VERSION[0];var a='<h4 class="modal-title">'+(this._config.title||"&nbsp;")+"</h4>",l='<button type="button" class="close" data-dismiss="modal" aria-label="'+this._config.strings.close+'"><span aria-hidden="true">&times;</span></button>',c='<div class="modal-header'+(this._config.title||this._config.alwaysShowClose?"":" hide")+'">'+(this._isBootstrap3?l+a:a+l)+"</div>",d='<div class="modal-footer'+(this._config.footer?"":" hide")+'">'+(this._config.footer||"&nbsp;")+"</div>",u='<div class="modal-body"><div class="ekko-lightbox-container"><div class="ekko-lightbox-item fade in show"></div><div class="ekko-lightbox-item fade"></div></div></div>',p='<div class="modal-dialog '+this._config.dialogClass+'" role="document"><div class="modal-content">'+c+u+d+"</div></div>";n(this._config.doc.body).append('<div id="'+this._modalId+'" class="ekko-lightbox modal fade" tabindex="-1" tabindex="-1" role="dialog" aria-hidden="true">'+p+"</div>"),this._$modal=n("#"+this._modalId,this._config.doc),this._$modalDialog=this._$modal.find(".modal-dialog").first(),this._$modalContent=this._$modal.find(".modal-content").first(),this._$modalBody=this._$modal.find(".modal-body").first(),this._$modalHeader=this._$modal.find(".modal-header").first(),this._$modalFooter=this._$modal.find(".modal-footer").first(),this._$lightboxContainer=this._$modalBody.find(".ekko-lightbox-container").first(),this._$lightboxBodyOne=this._$lightboxContainer.find("> div:first-child").first(),this._$lightboxBodyTwo=this._$lightboxContainer.find("> div:last-child").first(),this._border=this._calculateBorders(),this._padding=this._calculatePadding(),this._galleryName=this._$element.data("gallery"),this._galleryName&&(this._$galleryItems=n(document.body).find('*[data-gallery="'+this._galleryName+'"]'),this._galleryIndex=this._$galleryItems.index(this._$element),n(document).on("keydown.ekkoLightbox",this._navigationalBinder.bind(this)),this._config.showArrows&&this._$galleryItems.length>1&&(this._$lightboxContainer.append('<div class="ekko-lightbox-nav-overlay"><a href="#">'+this._config.leftArrow+'</a><a href="#">'+this._config.rightArrow+"</a></div>"),this._$modalArrows=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay").first(),this._$lightboxContainer.on("click","a:first-child",function(e){return e.preventDefault(),s.navigateLeft()}),this._$lightboxContainer.on("click","a:last-child",function(e){return e.preventDefault(),s.navigateRight()}),this.updateNavigation())),this._$modal.on("show.bs.modal",this._config.onShow.bind(this)).on("shown.bs.modal",function(){return s._toggleLoading(!0),s._handle(),s._config.onShown.call(s)}).on("hide.bs.modal",this._config.onHide.bind(this)).on("hidden.bs.modal",function(){return s._galleryName&&(n(document).off("keydown.ekkoLightbox"),n(window).off("resize.ekkoLightbox")),s._$modal.remove(),s._config.onHidden.call(s)}).modal(this._config),n(window).on("resize.ekkoLightbox",function(){s._resize(s._wantedWidth,s._wantedHeight)}),this._$lightboxContainer.on("touchstart",function(){s._touchstartX=event.changedTouches[0].screenX}).on("touchend",function(){
s._touchendX=event.changedTouches[0].screenX,s._swipeGesure()})}return t(o,null,[{key:"Default",get:function(){return r}}]),t(o,[{key:"element",value:function(){return this._$element}},{key:"modal",value:function(){return this._$modal}},{key:"navigateTo",value:function(e){if(e<0||e>this._$galleryItems.length-1)return this;this._galleryIndex=e,this.updateNavigation(),this._$element=n(this._$galleryItems.get(this._galleryIndex)),this._handle()}},{key:"navigateLeft",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(0===this._galleryIndex){if(!this._config.wrapping)return;this._galleryIndex=this._$galleryItems.length-1}else this._galleryIndex--;return this._config.onNavigate.call(this,"left",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"navigateRight",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(this._galleryIndex===this._$galleryItems.length-1){if(!this._config.wrapping)return;this._galleryIndex=0}else this._galleryIndex++;return this._config.onNavigate.call(this,"right",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"updateNavigation",value:function(){if(!this._config.wrapping){var e=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay");0===this._galleryIndex?e.find("a:first-child").addClass("disabled"):e.find("a:first-child").removeClass("disabled"),this._galleryIndex===this._$galleryItems.length-1?e.find("a:last-child").addClass("disabled"):e.find("a:last-child").removeClass("disabled")}}},{key:"close",value:function(){return this._$modal.modal("hide")}},{key:"_navigationalBinder",value:function(e){return 39===(e=e||window.event).keyCode?this.navigateRight():37===e.keyCode?this.navigateLeft():void 0}},{key:"_detectRemoteType",value:function(e,t){return!(t=t||!1)&&this._isImage(e)&&(t="image"),!t&&this._getYoutubeId(e)&&(t="youtube"),!t&&this._getVimeoId(e)&&(t="vimeo"),!t&&this._getInstagramId(e)&&(t="instagram"),(!t||["image","youtube","vimeo","instagram","video","url"].indexOf(t)<0)&&(t="url"),t}},{key:"_isImage",value:function(e){return e&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)}},{key:"_containerToUse",value:function(){var e=this,t=this._$lightboxBodyTwo,n=this._$lightboxBodyOne;return this._$lightboxBodyTwo.hasClass("in")&&(t=this._$lightboxBodyOne,n=this._$lightboxBodyTwo),n.removeClass("in show"),setTimeout(function(){e._$lightboxBodyTwo.hasClass("in")||e._$lightboxBodyTwo.empty(),e._$lightboxBodyOne.hasClass("in")||e._$lightboxBodyOne.empty()},500),t.addClass("in show"),t}},{key:"_handle",value:function(){var e=this._containerToUse();this._updateTitleAndFooter();var t=this._$element.attr("data-ekko-remote")||this._$element.attr("href"),n=this._detectRemoteType(t,this._$element.attr("data-type")||!1);if(["image","youtube","vimeo","instagram","video","url"].indexOf(n)<0)return this._error(this._config.strings.type);switch(n){case"image":this._preloadImage(t,e),this._preloadImageByIndex(this._galleryIndex,3);break;case"youtube":this._showYoutubeVideo(t,e);break;case"vimeo":this._showVimeoVideo(this._getVimeoId(t),e);break;case"instagram":this._showInstagramVideo(this._getInstagramId(t),e);break;case"video":this._showHtml5Video(t,e);break;default:this._loadRemoteContent(t,e)}return this}},{key:"_getYoutubeId",value:function(e){if(!e)return!1;var t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return!(!t||11!==t[2].length)&&t[2]}},{key:"_getVimeoId",value:function(e){return!!(e&&e.indexOf("vimeo")>0)&&e}},{key:"_getInstagramId",value:function(e){return!!(e&&e.indexOf("instagram")>0)&&e}},{key:"_toggleLoading",value:function(e){return(e=e||!1)?(this._$modalDialog.css("display","none"),this._$modal.removeClass("in show"),n(".modal-backdrop").append(this._config.loadingMessage)):(this._$modalDialog.css("display","block"),this._$modal.addClass("in show"),n(".modal-backdrop").find(".ekko-lightbox-loader").remove()),this}},{key:"_calculateBorders",value:function(){return{top:this._totalCssByAttribute("border-top-width"),right:this._totalCssByAttribute("border-right-width"),bottom:this._totalCssByAttribute("border-bottom-width"),left:this._totalCssByAttribute("border-left-width")}}},{key:"_calculatePadding",value:function(){return{top:this._totalCssByAttribute("padding-top"),right:this._totalCssByAttribute("padding-right"),bottom:this._totalCssByAttribute("padding-bottom"),left:this._totalCssByAttribute("padding-left")}}},{key:"_totalCssByAttribute",value:function(e){return parseInt(this._$modalDialog.css(e),10)+parseInt(this._$modalContent.css(e),10)+parseInt(this._$modalBody.css(e),10)}},{key:"_updateTitleAndFooter",value:function(){var e=this._$element.data("title")||"",t=this._$element.data("footer")||"";return this._titleIsShown=!1,e||this._config.alwaysShowClose?(this._titleIsShown=!0,this._$modalHeader.css("display","").find(".modal-title").html(e||"&nbsp;")):this._$modalHeader.css("display","none"),this._footerIsShown=!1,t?(this._footerIsShown=!0,this._$modalFooter.css("display","").html(t)):this._$modalFooter.css("display","none"),this}},{key:"_showYoutubeVideo",value:function(e,t){var n=this._getYoutubeId(e),o=e.indexOf("&")>0?e.substr(e.indexOf("&")):"",i=this._$element.data("width")||560,r=this._$element.data("height")||i/(560/315);return this._showVideoIframe("//www.youtube.com/embed/"+n+"?badge=0&autoplay=1&html5=1"+o,i,r,t)}},{key:"_showVimeoVideo",value:function(e,t){var n=this._$element.data("width")||500,o=this._$element.data("height")||n/(560/315);return this._showVideoIframe(e+"?autoplay=1",n,o,t)}},{key:"_showInstagramVideo",value:function(e,t){var n=this._$element.data("width")||612,o=n+80;return e="/"!==e.substr(-1)?e+"/":e,t.html('<iframe width="'+n+'" height="'+o+'" src="'+e+'embed/" frameborder="0" allowfullscreen></iframe>'),this._resize(n,o),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showVideoIframe",value:function(e,t,n,o){return n=n||t,o.html('<div class="embed-responsive embed-responsive-16by9"><iframe width="'+t+'" height="'+n+'" src="'+e+'" frameborder="0" allowfullscreen class="embed-responsive-item"></iframe></div>'),this._resize(t,n),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showHtml5Video",value:function(e,t){var n=this._$element.data("width")||560,o=this._$element.data("height")||n/(560/315);return t.html('<div class="embed-responsive embed-responsive-16by9"><video width="'+n+'" height="'+o+'" src="'+e+'" preload="auto" autoplay controls class="embed-responsive-item"></video></div>'),this._resize(n,o),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_loadRemoteContent",value:function(e,t){var o=this,i=this._$element.data("width")||560,r=this._$element.data("height")||560,s=this._$element.data("disableExternalCheck")||!1;return this._toggleLoading(!1),s||this._isExternal(e)?(t.html('<iframe src="'+e+'" frameborder="0" allowfullscreen></iframe>'),this._config.onContentLoaded.call(this)):t.load(e,n.proxy(function(){return o._$element.trigger("loaded.bs.modal")})),this._$modalArrows&&this._$modalArrows.css("display","none"),this._resize(i,r),this}},{key:"_isExternal",value:function(e){var t=e.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof t[1]&&t[1].length>0&&t[1].toLowerCase()!==location.protocol||"string"==typeof t[2]&&t[2].length>0&&t[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host}},{key:"_error",value:function(e){return console.error(e),this._containerToUse().html(e),this._resize(300,300),this}},{key:"_preloadImageByIndex",value:function(e,t){if(this._$galleryItems){var o=n(this._$galleryItems.get(e),!1);if(void 0!==o){var i=o.attr("data-ekko-remote")||o.attr("href");return("image"===o.attr("data-type")||this._isImage(i))&&this._preloadImage(i,!1),t>0?this._preloadImageByIndex(e+1,t-1):void 0}}}},{key:"_preloadImage",value:function(e,t){var o=this;t=t||!1;var i,r=new Image;return t&&(i=setTimeout(function(){t.append(o._config.loadingMessage)},200),r.onload=function(){i&&clearTimeout(i),i=null;var e=n("<img />");return e.attr("src",r.src),e.addClass("img-fluid"),e.css("width","100%"),t.html(e),o._$modalArrows&&o._$modalArrows.css("display",""),o._resize(r.width,r.height),o._toggleLoading(!1),o._config.onContentLoaded.call(o)},r.onerror=function(){return o._toggleLoading(!1),o._error(o._config.strings.fail+"  "+e)}),r.src=e,r}},{key:"_swipeGesure",value:function(){return this._touchendX<this._touchstartX?this.navigateRight():this._touchendX>this._touchstartX?this.navigateLeft():void 0}},{key:"_resize",value:function(e,t){t=t||e,this._wantedWidth=e,this._wantedHeight=t;var o=e/t,i=this._padding.left+this._padding.right+this._border.left+this._border.right,r=this._config.doc.body.clientWidth>575?20:0,s=this._config.doc.body.clientWidth>575?0:20,a=Math.min(e+i,this._config.doc.body.clientWidth-r,this._config.maxWidth);e+i>a?(t=(a-i-s)/o,e=a):e+=i;var l=0,c=0;this._footerIsShown&&(c=this._$modalFooter.outerHeight(!0)||55),this._titleIsShown&&(l=this._$modalHeader.outerHeight(!0)||67);var d=this._padding.top+this._padding.bottom+this._border.bottom+this._border.top,u=parseFloat(this._$modalDialog.css("margin-top"))+parseFloat(this._$modalDialog.css("margin-bottom")),p=Math.min(t,n(window).height()-d-u-l-c,this._config.maxHeight-d-l-c);t>p&&(e=Math.ceil(p*o)+i),this._$lightboxContainer.css("height",p),this._$modalDialog.css("flex",1).css("maxWidth",e);var f=this._$modal.data("bs.modal");if(f)try{f._handleUpdate()}catch(h){f.handleUpdate()}return this}}],[{key:"_jQueryInterface",value:function(e){var t=this;return e=e||{},this.each(function(){var i=n(t),r=n.extend({},o.Default,i.data(),"object"==typeof e&&e);new o(t,r)})}}]),o}();n.fn[o]=s._jQueryInterface,n.fn[o].Constructor=s,n.fn[o].noConflict=function(){return n.fn[o]=i,s._jQueryInterface}}(jQuery)}(jQuery),
/*
 * jQuery.liveFilter
 *
 * Copyright (c) 2009 Mike Merritt
 *
 * Forked by Lim Chee Aun (cheeaun.com)
 * 
 */
function(e){e.fn.liveFilter=function(t,n,o){var i={filterChildSelector:null,filter:function(t,n){return e(t).text().toUpperCase().indexOf(n.toUpperCase())>=0},before:function(){},after:function(){}},r=(o=e.extend(i,o),e(this).find(n));o.filterChildSelector&&(r=r.find(o.filterChildSelector));var s=o.filter;e(t).keyup(function(){var t=e(this).val(),i=r.filter(function(){return s(this,t)}),a=r.not(i);o.filterChildSelector&&(i=i.parents(n),a=a.parents(n).hide()),o.before.call(this,i,a),i.show(),a.hide(),""===t&&(i.show(),a.show()),o.after.call(this,i,a)})}}(jQuery),
/**
 * @name jQuery placehold (https://github.com/jgarber623/jquery-placehold)
 * @author Jason Garber
 * @copyright (cc) Jason Garber (http://sixtwothree.org and http://www.viget.com)
 * 
 * Licensed under the CC-GNU GPL (http://creativecommons.org/licenses/GPL/2.0/)
 */
function(e){e.fn.placehold=function(t){function n(){for(i=0;i<arguments.length;i++)arguments[i].toggle()}t=t||"placeholder";return e.fn.placehold.is_supported()?this:this.each(function(){var o=e(this),i=o.attr("placeholder");if(i){if(""!==o.val()&&o.val()!=i||o.addClass(t).val(i),o.is(":password")){var r=e("<input />",{"class":o.attr("class")+" "+t,value:i});r.bind("focus.placehold",function(){n(o,r),o.focus()}),o.bind("blur.placehold",function(){""===o.val()&&n(o,r)}),o.hide().after(r)}o.bind({"focus.placehold":function(){o.val()==i&&o.removeClass(t).val("")},"blur.placehold":function(){""===o.val()&&o.addClass(t).val(i)}}),o.closest("form").bind("submit.placehold",function(){return o.val()==i&&o.val(""),!0})}})},e.fn.placehold.is_supported=function(){return"placeholder"in document.createElement("input")}}(jQuery);var jscolor={dir:"/images/",bindClass:"color",binding:!0,preloading:!0,install:function(){jscolor.addEvent(window,"load",jscolor.init)},init:function(){jscolor.binding&&jscolor.bind(),jscolor.preloading&&jscolor.preload()},getDir:function(){if(!jscolor.dir){var e=jscolor.detectDir();jscolor.dir=!1!==e?e:"jscolor/"}return jscolor.dir},detectDir:function(){for(var e=location.href,t=document.getElementsByTagName("base"),n=0;n<t.length;n+=1)t[n].href&&(e=t[n].href);for(t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)if(t[n].src&&/(^|\/)jscolor\.js([?#].*)?$/i.test(t[n].src)){var o=new jscolor.URI(t[n].src).toAbsolute(e);return o.path=o.path.replace(/[^\/]+$/,""),o.query=null,o.fragment=null,o.toString()}return!1},bind:function(){for(var e=new RegExp("(^|\\s)("+jscolor.bindClass+")(\\s*(\\{[^}]*\\})|\\s|$)","i"),t=document.getElementsByTagName("input"),n=0;n<t.length;n+=1){var o;if(!jscolor.isColorAttrSupported||"color"!=t[n].type.toLowerCase())if(!t[n].color&&t[n].className&&(o=t[n].className.match(e))){var i={};if(o[4])try{i=new Function("return ("+o[4]+")")()}catch(r){}t[n].color=new jscolor.color(t[n],i)}}},preload:function(){for(var e in jscolor.imgRequire)jscolor.imgRequire.hasOwnProperty(e)&&jscolor.loadImage(e)},images:{pad:[181,101],sld:[16,101],cross:[15,15],arrow:[7,11]},imgRequire:{},imgLoaded:{},requireImage:function(e){jscolor.imgRequire[e]=!0},loadImage:function(e){jscolor.imgLoaded[e]||(jscolor.imgLoaded[e]=new Image,jscolor.imgLoaded[e].src=jscolor.getDir()+e)},fetchElement:function(e){return"string"==typeof e?document.getElementById(e):e},addEvent:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},fireEvent:function(e,t){if(e)if(document.createEvent)(n=document.createEvent("HTMLEvents")).initEvent(t,!0,!0),e.dispatchEvent(n);else if(document.createEventObject){var n=document.createEventObject();e.fireEvent("on"+t,n)}else e["on"+t]&&e["on"+t]()},getElementPos:function(e){var t=e,n=e,o=0,i=0;if(t.offsetParent)do{o+=t.offsetLeft,i+=t.offsetTop}while(t=t.offsetParent);for(;(n=n.parentNode)&&"BODY"!==n.nodeName.toUpperCase();)o-=n.scrollLeft,i-=n.scrollTop;return[o,i]},getElementSize:function(e){return[e.offsetWidth,e.offsetHeight]},getRelMousePos:function(e){var t=0,n=0;return e||(e=window.event),"number"==typeof e.offsetX?(t=e.offsetX,n=e.offsetY):"number"==typeof e.layerX&&(t=e.layerX,n=e.layerY),{x:t,y:n}},getViewPos:function(){return"number"==typeof window.pageYOffset?[window.pageXOffset,window.pageYOffset]:document.body&&(document.body.scrollLeft||document.body.scrollTop)?[document.body.scrollLeft,document.body.scrollTop]:document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)?[document.documentElement.scrollLeft,document.documentElement.scrollTop]:[0,0]},getViewSize:function(){return"number"==typeof window.innerWidth?[window.innerWidth,window.innerHeight]:document.body&&(document.body.clientWidth||document.body.clientHeight)?[document.body.clientWidth,document.body.clientHeight]:document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?[document.documentElement.clientWidth,document.documentElement.clientHeight]:[0,0]},URI:function(e){function t(e){for(var t="";e;)if("../"===e.substr(0,3)||"./"===e.substr(0,2))e=e.replace(/^\.+/,"").substr(1);else if("/./"===e.substr(0,3)||"/."===e)e="/"+e.substr(3);else if("/../"===e.substr(0,4)||"/.."===e)e="/"+e.substr(4),t=t.replace(/\/?[^\/]*$/,"");else if("."===e||".."===e)e="";else{var n=e.match(/^\/?[^\/]*/)[0];e=e.substr(n.length),t+=n}return t}this.scheme=null,this.authority=null,this.path="",this.query=null,this.fragment=null,this.parse=function(e){var t=e.match(/^(([A-Za-z][0-9A-Za-z+.-]*)(:))?((\/\/)([^\/?#]*))?([^?#]*)((\?)([^#]*))?((#)(.*))?/);return this.scheme=t[3]?t[2]:null,this.authority=t[5]?t[6]:null,this.path=t[7],this.query=t[9]?t[10]:null,this.fragment=t[12]?t[13]:null,this},this.toString=function(){var e="";return null!==this.scheme&&(e=e+this.scheme+":"),null!==this.authority&&(e=e+"//"+this.authority),null!==this.path&&(e+=this.path),null!==this.query&&(e=e+"?"+this.query),null!==this.fragment&&(e=e+"#"+this.fragment),e},this.toAbsolute=function(e){e=new jscolor.URI(e);var n=this,o=new jscolor.URI;return null!==e.scheme&&(null!==n.scheme&&n.scheme.toLowerCase()===e.scheme.toLowerCase()&&(n.scheme=null),null!==n.scheme?(o.scheme=n.scheme,o.authority=n.authority,o.path=t(n.path),o.query=n.query):(null!==n.authority?(o.authority=n.authority,o.path=t(n.path),o.query=n.query):(""===n.path?(o.path=e.path,null!==n.query?o.query=n.query:o.query=e.query):("/"===n.path.substr(0,1)?o.path=t(n.path):(null!==e.authority&&""===e.path?o.path="/"+n.path:o.path=e.path.replace(/[^\/]+$/,"")+n.path,o.path=t(o.path)),o.query=n.query),o.authority=e.authority),o.scheme=e.scheme),o.fragment=n.fragment,o)},e&&this.parse(e)},color:function(e,t){function n(e,t,n){var o=Math.min(Math.min(e,t),n),i=Math.max(Math.max(e,t),n),r=i-o;if(0===r)return[null,0,i];var s=e===o?3+(n-t)/r:t===o?5+(e-n)/r:1+(t-e)/r;return[6===s?0:s,r/i,i]}function o(e,t,n){if(null===e)return[n,n,n];var o=Math.floor(e),i=n*(1-t),r=n*(1-t*(o%2?e-o:1-(e-o)));switch(o){case 6:case 0:return[n,r,i];case 1:return[r,n,i];case 2:return[i,n,r];case 3:return[i,r,n];case 4:return[r,i,n];case 5:return[n,i,r]}}function i(){delete jscolor.picker.owner,document.getElementsByTagName("body")[0].removeChild(jscolor.picker.boxB)}function r(t,n){function o(){var e=m.pickerInsetColor.split(/\s+/),t=e.length<2?e[0]:e[1]+" "+e[0]+" "+e[0]+" "+e[1];d.btn.style.borderColor=t}if(!jscolor.picker){jscolor.picker={box:document.createElement("div"),boxB:document.createElement("div"),pad:document.createElement("div"),padB:document.createElement("div"),padM:document.createElement("div"),sld:document.createElement("div"),sldB:document.createElement("div"),sldM:document.createElement("div"),btn:document.createElement("div"),btnS:document.createElement("span"),btnT:document.createTextNode(m.pickerCloseText)};for(var i=0,r=4;i<jscolor.images.sld[1];i+=r){var c=document.createElement("div");c.style.height=r+"px",c.style.fontSize="1px",c.style.lineHeight="0",jscolor.picker.sld.appendChild(c)}jscolor.picker.sldB.appendChild(jscolor.picker.sld),jscolor.picker.box.appendChild(jscolor.picker.sldB),jscolor.picker.box.appendChild(jscolor.picker.sldM),jscolor.picker.padB.appendChild(jscolor.picker.pad),jscolor.picker.box.appendChild(jscolor.picker.padB),jscolor.picker.box.appendChild(jscolor.picker.padM),jscolor.picker.btnS.appendChild(jscolor.picker.btnT),jscolor.picker.btn.appendChild(jscolor.picker.btnS),jscolor.picker.box.appendChild(jscolor.picker.btn),jscolor.picker.boxB.appendChild(jscolor.picker.box)}var d=jscolor.picker;if(d.box.onmouseup=d.box.onmouseout=function(){e.focus()},d.box.onmousedown=function(){y=!0},d.box.onmousemove=function(e){(k||x)&&(k&&p(e),x&&f(e),document.selection?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges(),h())},"ontouchstart"in window){var u=function(e){var t={offsetX:e.touches[0].pageX-C.X,offsetY:e.touches[0].pageY-C.Y};(k||x)&&(k&&p(t),x&&f(t),h()),e.stopPropagation(),e.preventDefault()};d.box.removeEventListener("touchmove",u,!1),d.box.addEventListener("touchmove",u,!1)}d.padM.onmouseup=d.padM.onmouseout=function(){k&&(k=!1,jscolor.fireEvent(b,"change"))},d.padM.onmousedown=function(e){switch(v){case 0:0===m.hsv[2]&&m.fromHSV(null,null,1);break;case 1:0===m.hsv[1]&&m.fromHSV(null,1,null)}x=!1,k=!0,p(e),h()},"ontouchstart"in window&&d.padM.addEventListener("touchstart",function(e){C={X:e.target.offsetParent.offsetLeft,Y:e.target.offsetParent.offsetTop},this.onmousedown({offsetX:e.touches[0].pageX-C.X,offsetY:e.touches[0].pageY-C.Y})}),d.sldM.onmouseup=d.sldM.onmouseout=function(){x&&(x=!1,jscolor.fireEvent(b,"change"))},d.sldM.onmousedown=function(e){k=!1,x=!0,f(e),h()},"ontouchstart"in window&&d.sldM.addEventListener("touchstart",function(e){C={X:e.target.offsetParent.offsetLeft,Y:e.target.offsetParent.offsetTop},this.onmousedown({offsetX:e.touches[0].pageX-C.X,offsetY:e.touches[0].pageY-C.Y})});var g=s(m);d.box.style.width=g[0]+"px",d.box.style.height=g[1]+"px",d.boxB.style.position="absolute",d.boxB.style.clear="both",d.boxB.style.left=t+"px",d.boxB.style.top=n+"px",d.boxB.style.zIndex=m.pickerZIndex,d.boxB.style.border=m.pickerBorder+"px solid",d.boxB.style.borderColor=m.pickerBorderColor,d.boxB.style.background=m.pickerFaceColor,d.pad.style.width=jscolor.images.pad[0]+"px",d.pad.style.height=jscolor.images.pad[1]+"px",d.padB.style.position="absolute",d.padB.style.left=m.pickerFace+"px",d.padB.style.top=m.pickerFace+"px",d.padB.style.border=m.pickerInset+"px solid",d.padB.style.borderColor=m.pickerInsetColor,d.padM.style.position="absolute",d.padM.style.left="0",d.padM.style.top="0",d.padM.style.width=m.pickerFace+2*m.pickerInset+jscolor.images.pad[0]+jscolor.images.arrow[0]+"px",d.padM.style.height=d.box.style.height,d.padM.style.cursor="crosshair",d.sld.style.overflow="hidden",d.sld.style.width=jscolor.images.sld[0]+"px",d.sld.style.height=jscolor.images.sld[1]+"px",d.sldB.style.display=m.slider?"block":"none",d.sldB.style.position="absolute",d.sldB.style.right=m.pickerFace+"px",d.sldB.style.top=m.pickerFace+"px",d.sldB.style.border=m.pickerInset+"px solid",d.sldB.style.borderColor=m.pickerInsetColor,d.sldM.style.display=m.slider?"block":"none",d.sldM.style.position="absolute",d.sldM.style.right="0",d.sldM.style.top="0",d.sldM.style.width=jscolor.images.sld[0]+jscolor.images.arrow[0]+m.pickerFace+2*m.pickerInset+"px",d.sldM.style.height=d.box.style.height;try{d.sldM.style.cursor="pointer"}catch(S){d.sldM.style.cursor="hand"}d.btn.style.display=m.pickerClosable?"block":"none",d.btn.style.position="absolute",d.btn.style.left=m.pickerFace+"px",d.btn.style.bottom=m.pickerFace+"px",d.btn.style.padding="0 15px",d.btn.style.height="18px",d.btn.style.border=m.pickerInset+"px solid",o(),d.btn.style.color=m.pickerButtonColor,d.btn.style.font="12px sans-serif",d.btn.style.textAlign="center";try{d.btn.style.cursor="pointer"}catch(S){d.btn.style.cursor="hand"}switch(d.btn.onmousedown=function(){m.hidePicker()},d.btnS.style.lineHeight=d.btn.style.height,v){case 0:var w="hs.png";break;case 1:w="hv.png"}d.padM.style.backgroundImage="url('"+jscolor.getDir()+"cross.gif')",d.padM.style.backgroundRepeat="no-repeat",d.sldM.style.backgroundImage="url('"+jscolor.getDir()+"arrow.gif')",d.sldM.style.backgroundRepeat="no-repeat",d.pad.style.backgroundImage="url('"+jscolor.getDir()+w+"')",d.pad.style.backgroundRepeat="no-repeat",d.pad.style.backgroundPosition="0 0",a(),l(),jscolor.picker.owner=m,document.getElementsByTagName("body")[0].appendChild(d.boxB)}function s(e){return[2*e.pickerInset+2*e.pickerFace+jscolor.images.pad[0]+(e.slider?2*e.pickerInset+2*jscolor.images.arrow[0]+jscolor.images.sld[0]:0),e.pickerClosable?4*e.pickerInset+3*e.pickerFace+jscolor.images.pad[1]+e.pickerButtonHeight:2*e.pickerInset+2*e.pickerFace+jscolor.images.pad[1]]}function a(){switch(v){case 0:var e=1;break;case 1:e=2}var t=Math.round(m.hsv[0]/6*(jscolor.images.pad[0]-1)),n=Math.round((1-m.hsv[e])*(jscolor.images.pad[1]-1));jscolor.picker.padM.style.backgroundPosition=m.pickerFace+m.pickerInset+t-Math.floor(jscolor.images.cross[0]/2)+"px "+(m.pickerFace+m.pickerInset+n-Math.floor(jscolor.images.cross[1]/2))+"px";var i=jscolor.picker.sld.childNodes;switch(v){case 0:for(var r=o(m.hsv[0],m.hsv[1],1),s=0;s<i.length;s+=1)i[s].style.backgroundColor="rgb("+r[0]*(1-s/i.length)*100+"%,"+r[1]*(1-s/i.length)*100+"%,"+r[2]*(1-s/i.length)*100+"%)";break;case 1:var a,l=[m.hsv[2],0,0],c=(s=Math.floor(m.hsv[0]))%2?m.hsv[0]-s:1-(m.hsv[0]-s);switch(s){case 6:case 0:r=[0,1,2];break;case 1:r=[1,0,2];break;case 2:r=[2,0,1];break;case 3:r=[2,1,0];break;case 4:r=[1,2,0];break;case 5:r=[0,2,1]}for(s=0;s<i.length;s+=1)a=1-1/(i.length-1)*s,l[1]=l[0]*(1-a*c),l[2]=l[0]*(1-a),i[s].style.backgroundColor="rgb("+100*l[r[0]]+"%,"+100*l[r[1]]+"%,"+100*l[r[2]]+"%)"}}function l(){switch(v){case 0:var e=2;break;case 1:e=1}var t=Math.round((1-m.hsv[e])*(jscolor.images.sld[1]-1));jscolor.picker.sldM.style.backgroundPosition="0 "+(m.pickerFace+m.pickerInset+t-Math.floor(jscolor.images.arrow[1]/2))+"px"}function c(){return jscolor.picker&&jscolor.picker.owner===m}function d(){b===e&&m.importColor(),m.pickerOnfocus&&m.hidePicker()}function u(){b!==e&&m.importColor()}function p(e){var t=jscolor.getRelMousePos(e),n=t.x-m.pickerFace-m.pickerInset,o=t.y-m.pickerFace-m.pickerInset;switch(v){case 0:m.fromHSV(n*(6/(jscolor.images.pad[0]-1)),1-o/(jscolor.images.pad[1]-1),null,j);break;case 1:m.fromHSV(n*(6/(jscolor.images.pad[0]-1)),null,1-o/(jscolor.images.pad[1]-1),j)}}function f(e){var t=jscolor.getRelMousePos(e).y-m.pickerFace-m.pickerInset;switch(v){case 0:m.fromHSV(null,null,1-t/(jscolor.images.sld[1]-1),$);break;case 1:m.fromHSV(null,1-t/(jscolor.images.sld[1]-1),null,$)}}function h(){m.onImmediateChange&&("string"==typeof m.onImmediateChange?new Function(m.onImmediateChange):m.onImmediateChange).call(m)}for(var g in this.required=!0,this.adjust=!0,this.hash=!1,this.caps=!0,this.slider=!0,this.valueElement=e,this.styleElement=e,this.onImmediateChange=null,this.hsv=[0,0,1],this.rgb=[1,1,1],this.minH=0,this.maxH=6,this.minS=0,this.maxS=1,this.minV=0,this.maxV=1,this.pickerOnfocus=!0,this.pickerMode="HSV",this.pickerPosition="bottom",this.pickerSmartPosition=!0,this.pickerButtonHeight=20,this.pickerClosable=!1,this.pickerCloseText="Close",this.pickerButtonColor="ButtonText",this.pickerFace=10,this.pickerFaceColor="ThreeDFace",this.pickerBorder=1,this.pickerBorderColor="ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight",this.pickerInset=1,this.pickerInsetColor="ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow",this.pickerZIndex=1e4,t)t.hasOwnProperty(g)&&(this[g]=t[g]);this.hidePicker=function(){c()&&i()},this.showPicker=function(){if(!c()){var t,n,o,i=jscolor.getElementPos(e),a=jscolor.getElementSize(e),l=jscolor.getViewPos(),d=jscolor.getViewSize(),u=s(this);switch(this.pickerPosition.toLowerCase()){case"left":t=1,n=0,o=-1;break;case"right":t=1,n=0,o=1;break;case"top":t=0,n=1,o=-1;break;default:t=0,n=1,o=1}var p=(a[n]+u[n])/2;if(this.pickerSmartPosition)f=[-l[t]+i[t]+u[t]>d[t]&&-l[t]+i[t]+a[t]/2>d[t]/2&&i[t]+a[t]-u[t]>=0?i[t]+a[t]-u[t]:i[t],-l[n]+i[n]+a[n]+u[n]-p+p*o>d[n]?-l[n]+i[n]+a[n]/2>d[n]/2&&i[n]+a[n]-p-p*o>=0?i[n]+a[n]-p-p*o:i[n]+a[n]-p+p*o:i[n]+a[n]-p+p*o>=0?i[n]+a[n]-p+p*o:i[n]+a[n]-p-p*o];else var f=[i[t],i[n]+a[n]-p+p*o];r(f[t],f[n])}},this.importColor=function(){b?this.adjust?!this.required&&/^\s*$/.test(b.value)?(b.value="",w.style.backgroundImage=w.jscStyle.backgroundImage,w.style.backgroundColor=w.jscStyle.backgroundColor,w.style.color=w.jscStyle.color,this.exportColor(S|T)):this.fromString(b.value)||this.exportColor():this.fromString(b.value,S)||(w.style.backgroundImage=w.jscStyle.backgroundImage,w.style.backgroundColor=w.jscStyle.backgroundColor,w.style.color=w.jscStyle.color,this.exportColor(S|T)):this.exportColor()},this.exportColor=function(e){if(!(e&S)&&b){var t=this.toString();this.caps&&(t=t.toUpperCase()),this.hash&&(t="#"+t),b.value=t}e&T||!w||(w.style.backgroundImage="none",w.style.backgroundColor="#"+this.toString(),w.style.color=.213*this.rgb[0]+.715*this.rgb[1]+.072*this.rgb[2]<.5?"#FFF":"#000"),e&$||!c()||a(),e&j||!c()||l()},this.fromHSV=function(e,t,n,i){null!==e&&(e=Math.max(0,this.minH,Math.min(6,this.maxH,e))),null!==t&&(t=Math.max(0,this.minS,Math.min(1,this.maxS,t))),null!==n&&(n=Math.max(0,this.minV,Math.min(1,this.maxV,n))),this.rgb=o(null===e?this.hsv[0]:this.hsv[0]=e,null===t?this.hsv[1]:this.hsv[1]=t,null===n?this.hsv[2]:this.hsv[2]=n),this.exportColor(i)},this.fromRGB=function(e,t,i,r){null!==e&&(e=Math.max(0,Math.min(1,e))),null!==t&&(t=Math.max(0,Math.min(1,t))),null!==i&&(i=Math.max(0,Math.min(1,i)));var s=n(null===e?this.rgb[0]:e,null===t?this.rgb[1]:t,null===i?this.rgb[2]:i);null!==s[0]&&(this.hsv[0]=Math.max(0,this.minH,Math.min(6,this.maxH,s[0]))),0!==s[2]&&(this.hsv[1]=null===s[1]?null:Math.max(0,this.minS,Math.min(1,this.maxS,s[1]))),this.hsv[2]=null===s[2]?null:Math.max(0,this.minV,Math.min(1,this.maxV,s[2]));var a=o(this.hsv[0],this.hsv[1],this.hsv[2]);this.rgb[0]=a[0],this.rgb[1]=a[1],this.rgb[2]=a[2],this.exportColor(r)},this.fromString=function(e,t){var n=e.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i);return!!n&&(6===n[1].length?this.fromRGB(parseInt(n[1].substr(0,2),16)/255,parseInt(n[1].substr(2,2),16)/255,parseInt(n[1].substr(4,2),16)/255,t):this.fromRGB(parseInt(n[1].charAt(0)+n[1].charAt(0),16)/255,parseInt(n[1].charAt(1)+n[1].charAt(1),16)/255,parseInt(n[1].charAt(2)+n[1].charAt(2),16)/255,t),!0)},this.toString=function(){return(256|Math.round(255*this.rgb[0])).toString(16).substr(1)+(256|Math.round(255*this.rgb[1])).toString(16).substr(1)+(256|Math.round(255*this.rgb[2])).toString(16).substr(1)};var m=this,v="hvs"===this.pickerMode.toLowerCase()?1:0,y=!1,b=jscolor.fetchElement(this.valueElement),w=jscolor.fetchElement(this.styleElement),k=!1,x=!1,C={},S=1,T=2,$=4,j=8;jscolor.isColorAttrSupported=!1;var E=document.createElement("input");if(E.setAttribute&&(E.setAttribute("type","color"),"color"==E.type.toLowerCase()&&(jscolor.isColorAttrSupported=!0)),jscolor.addEvent(e,"focus",function(){m.pickerOnfocus&&m.showPicker()}),jscolor.addEvent(e,"blur",function(){y?y=!1:window.setTimeout(function(){y||d(),y=!1},0)}),b){var _=function(){m.fromString(b.value,S),h()};jscolor.addEvent(b,"keyup",_),jscolor.addEvent(b,"input",_),jscolor.addEvent(b,"blur",u),b.setAttribute("autocomplete","off")}switch(w&&(w.jscStyle={backgroundImage:w.style.backgroundImage,backgroundColor:w.style.backgroundColor,color:w.style.color}),v){case 0:jscolor.requireImage("hs.png");break;case 1:jscolor.requireImage("hv.png")}jscolor.requireImage("cross.gif"),jscolor.requireImage("arrow.gif"),this.importColor()}};jscolor.install(),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var t=window.Slick||{};(t=function(){function t(t,o){var i,r=this;r.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(t),appendDots:e(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,n){return e('<button type="button" />').text(n+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},r.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(r,r.initials),r.activeBreakpoint=null,r.animType=null,r.animProp=null,r.breakpoints=[],r.breakpointSettings=[],r.cssTransitions=!1,r.focussed=!1,r.interrupted=!1,r.hidden="hidden",r.paused=!0,r.positionProp=null,r.respondTo=null,r.rowCount=1,r.shouldClick=!0,r.$slider=e(t),r.$slidesCache=null,r.transformType=null,r.transitionType=null,r.visibilityChange="visibilitychange",r.windowWidth=0,r.windowTimer=null,i=e(t).data("slick")||{},r.options=e.extend({},r.defaults,o,i),r.currentSlide=r.options.initialSlide,r.originalSettings=r.options,"undefined"!=typeof document.mozHidden?(r.hidden="mozHidden",r.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(r.hidden="webkitHidden",r.visibilityChange="webkitvisibilitychange"),r.autoPlay=e.proxy(r.autoPlay,r),r.autoPlayClear=e.proxy(r.autoPlayClear,r),r.autoPlayIterator=e.proxy(r.autoPlayIterator,r),r.changeSlide=e.proxy(r.changeSlide,r),r.clickHandler=e.proxy(r.clickHandler,r),r.selectHandler=e.proxy(r.selectHandler,r),r.setPosition=e.proxy(r.setPosition,r),r.swipeHandler=e.proxy(r.swipeHandler,r),r.dragHandler=e.proxy(r.dragHandler,r),r.keyHandler=e.proxy(r.keyHandler,r),r.instanceUid=n++,r.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,r.registerBreakpoints(),r.init(!0)}var n=0;return t}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(t,n,o){var i=this;if("boolean"==typeof n)o=n,n=null;else if(n<0||n>=i.slideCount)return!1;i.unload(),"number"==typeof n?0===n&&0===i.$slides.length?e(t).appendTo(i.$slideTrack):o?e(t).insertBefore(i.$slides.eq(n)):e(t).insertAfter(i.$slides.eq(n)):!0===o?e(t).prependTo(i.$slideTrack):e(t).appendTo(i.$slideTrack),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slides.each(function(t,n){e(n).attr("data-slick-index",t)}),i.$slidesCache=i.$slides,i.reinit()},t.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},t.prototype.animateSlide=function(t,n){var o={},i=this;i.animateHeight(),!0===i.options.rtl&&!1===i.options.vertical&&(t=-t),!1===i.transformsEnabled?!1===i.options.vertical?i.$slideTrack.animate({left:t},i.options.speed,i.options.easing,n):i.$slideTrack.animate({top:t},i.options.speed,i.options.easing,n):!1===i.cssTransitions?(!0===i.options.rtl&&(i.currentLeft=-i.currentLeft),e({animStart:i.currentLeft}).animate({animStart:t},{duration:i.options.speed,easing:i.options.easing,step:function(e){e=Math.ceil(e),!1===i.options.vertical?(o[i.animType]="translate("+e+"px, 0px)",i.$slideTrack.css(o)):(o[i.animType]="translate(0px,"+e+"px)",i.$slideTrack.css(o))},complete:function(){n&&n.call()}})):(i.applyTransition(),t=Math.ceil(t),!1===i.options.vertical?o[i.animType]="translate3d("+t+"px, 0px, 0px)":o[i.animType]="translate3d(0px,"+t+"px, 0px)",i.$slideTrack.css(o),n&&setTimeout(function(){i.disableTransition(),n.call()},i.options.speed))},t.prototype.getNavTarget=function(){var t=this,n=t.options.asNavFor;return n&&null!==n&&(n=e(n).not(t.$slider)),n},t.prototype.asNavFor=function(t){var n=this.getNavTarget();null!==n&&"object"==typeof n&&n.each(function(){var n=e(this).slick("getSlick");n.unslicked||n.slideHandler(t,!0)})},t.prototype.applyTransition=function(e){var t=this,n={};!1===t.options.fade?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},t.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var t,n,o=this;if(!0===o.options.dots&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),n=e("<ul />").addClass(o.options.dotsClass),t=0;t<=o.getDotCount();t+=1)n.append(e("<li />").append(o.options.customPaging.call(this,o,t)));o.$dots=n.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,n){e(n).attr("data-slick-index",t).data("originalStyling",e(n).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,n,o,i,r,s,a=this;if(o=document.createDocumentFragment(),r=a.$slider.children(),a.options.rows>0){for(s=a.options.slidesPerRow*a.options.rows,i=Math.ceil(r.length/s),e=0;e<i;e++){var l=document.createElement("div");for(t=0;t<a.options.rows;t++){var c=document.createElement("div");for(n=0;n<a.options.slidesPerRow;n++){var d=e*s+(t*a.options.slidesPerRow+n);r.get(d)&&c.appendChild(r.get(d))}l.appendChild(c)}o.appendChild(l)}a.$slider.empty().append(o),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(t,n){var o,i,r,s=this,a=!1,l=s.$slider.width(),c=window.innerWidth||e(window).width();if("window"===s.respondTo?r=c:"slider"===s.respondTo?r=l:"min"===s.respondTo&&(r=Math.min(c,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(o in i=null,s.breakpoints)s.breakpoints.hasOwnProperty(o)&&(!1===s.originalSettings.mobileFirst?r<s.breakpoints[o]&&(i=s.breakpoints[o]):r>s.breakpoints[o]&&(i=s.breakpoints[o]));null!==i?null!==s.activeBreakpoint?(i!==s.activeBreakpoint||n)&&(s.activeBreakpoint=i,"unslick"===s.breakpointSettings[i]?s.unslick(i):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[i]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=i):(s.activeBreakpoint=i,"unslick"===s.breakpointSettings[i]?s.unslick(i):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[i]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=i):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t),a=i),t||!1===a||s.$slider.trigger("breakpoint",[s,a])}},t.prototype.changeSlide=function(t,n){var o,i,r=this,s=e(t.currentTarget);switch(s.is("a")&&t.preventDefault(),s.is("li")||(s=s.closest("li")),o=r.slideCount%r.options.slidesToScroll!=0?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":i=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-i,!1,n);break;case"next":i=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+i,!1,n);break;case"index":var a=0===t.data.index?0:t.data.index||s.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(a),!1,n),s.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,n;if(n=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var o in t){if(e<t[o]){e=n;break}n=t[o]}return e},t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>0&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},t.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),e(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){e(this).attr("style",e(this).data("originalStyling"))}),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,t||n.$slider.trigger("destroy",[n])},t.prototype.disableTransition=function(e){var t=this,n={};n[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.fadeSlide=function(e,t){var n=this
;!1===n.cssTransitions?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout(function(){n.disableTransition(e),t.call()},n.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick","*",function(){var n=e(this);setTimeout(function(){t.options.pauseOnFocus&&n.is(":focus")&&(t.focussed=!0,t.autoPlay())},0)}).on("blur.slick","*",function(){e(this);t.options.pauseOnFocus&&(t.focussed=!1,t.autoPlay())})},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,n=0,o=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++o;else for(;t<e.slideCount;)++o,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)o=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++o,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else o=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return o-1},t.prototype.getLeft=function(e){var t,n,o,i,r=this,s=0;return r.slideOffset=0,n=r.$slides.first().outerHeight(!0),!0===r.options.infinite?(r.slideCount>r.options.slidesToShow&&(r.slideOffset=r.slideWidth*r.options.slidesToShow*-1,i=-1,!0===r.options.vertical&&!0===r.options.centerMode&&(2===r.options.slidesToShow?i=-1.5:1===r.options.slidesToShow&&(i=-2)),s=n*r.options.slidesToShow*i),r.slideCount%r.options.slidesToScroll!=0&&e+r.options.slidesToScroll>r.slideCount&&r.slideCount>r.options.slidesToShow&&(e>r.slideCount?(r.slideOffset=(r.options.slidesToShow-(e-r.slideCount))*r.slideWidth*-1,s=(r.options.slidesToShow-(e-r.slideCount))*n*-1):(r.slideOffset=r.slideCount%r.options.slidesToScroll*r.slideWidth*-1,s=r.slideCount%r.options.slidesToScroll*n*-1))):e+r.options.slidesToShow>r.slideCount&&(r.slideOffset=(e+r.options.slidesToShow-r.slideCount)*r.slideWidth,s=(e+r.options.slidesToShow-r.slideCount)*n),r.slideCount<=r.options.slidesToShow&&(r.slideOffset=0,s=0),!0===r.options.centerMode&&r.slideCount<=r.options.slidesToShow?r.slideOffset=r.slideWidth*Math.floor(r.options.slidesToShow)/2-r.slideWidth*r.slideCount/2:!0===r.options.centerMode&&!0===r.options.infinite?r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)-r.slideWidth:!0===r.options.centerMode&&(r.slideOffset=0,r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)),t=!1===r.options.vertical?e*r.slideWidth*-1+r.slideOffset:e*n*-1+s,!0===r.options.variableWidth&&(o=r.slideCount<=r.options.slidesToShow||!1===r.options.infinite?r.$slideTrack.children(".slick-slide").eq(e):r.$slideTrack.children(".slick-slide").eq(e+r.options.slidesToShow),t=!0===r.options.rtl?o[0]?-1*(r.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===r.options.centerMode&&(o=r.slideCount<=r.options.slidesToShow||!1===r.options.infinite?r.$slideTrack.children(".slick-slide").eq(e):r.$slideTrack.children(".slick-slide").eq(e+r.options.slidesToShow+1),t=!0===r.options.rtl?o[0]?-1*(r.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,t+=(r.$list.width()-o.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){return this.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,n=0,o=0,i=[];for(!1===t.options.infinite?e=t.slideCount:(n=-1*t.options.slidesToScroll,o=-1*t.options.slidesToScroll,e=2*t.slideCount);n<e;)i.push(n),n=o+t.options.slidesToScroll,o+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return i},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,n,o,i=this;return o=!0===i.options.centerMode?Math.floor(i.$list.width()/2):0,n=-1*i.swipeLeft+o,!0===i.options.swipeToSlide?(i.$slideTrack.find(".slick-slide").each(function(o,r){var s,a;if(s=e(r).outerWidth(),a=r.offsetLeft,!0!==i.options.centerMode&&(a+=s/2),n<a+s)return t=r,!1}),Math.abs(e(t).attr("data-slick-index")-i.currentSlide)||1):i.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},t.prototype.init=function(t){var n=this;e(n.$slider).hasClass("slick-initialized")||(e(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),t&&n.$slider.trigger("init",[n]),!0===n.options.accessibility&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},t.prototype.initADA=function(){var t=this,n=Math.ceil(t.slideCount/t.options.slidesToShow),o=t.getNavigableIndexes().filter(function(e){return e>=0&&e<t.slideCount});t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(n){var i=o.indexOf(n);if(e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+n,tabindex:-1}),-1!==i){var r="slick-slide-control"+t.instanceUid+i;e("#"+r).length&&e(this).attr({"aria-describedby":r})}}),t.$dots.attr("role","tablist").find("li").each(function(i){var r=o[i];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+i,"aria-controls":"slick-slide"+t.instanceUid+r,"aria-label":i+1+" of "+n,"aria-selected":null,tabindex:"-1"})}).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var i=t.currentSlide,r=i+t.options.slidesToShow;i<r;i++)t.options.focusOnChange?t.$slides.eq(i).attr({tabindex:"0"}):t.$slides.eq(i).removeAttr("tabindex");t.activateADA()},t.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(t.setPosition)},t.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show(),e.slideCount<=e.options.slidesToShow?e.$slider.addClass("slick-no-slide"):e.$slider.removeClass("slick-no-slide")},t.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},t.prototype.lazyLoad=function(){function t(t){e("img[data-lazy]",t).each(function(){var t=e(this),n=e(this).attr("data-lazy"),o=e(this).attr("data-srcset"),i=e(this).attr("data-sizes")||r.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){t.animate({opacity:0},100,function(){o&&(t.attr("srcset",o),i&&t.attr("sizes",i)),t.attr("src",n).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,t,n])})},s.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,t,n])},s.src=n})}var n,o,i,r=this;if(!0===r.options.centerMode?!0===r.options.infinite?i=(o=r.currentSlide+(r.options.slidesToShow/2+1))+r.options.slidesToShow+2:(o=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),i=r.options.slidesToShow/2+1+2+r.currentSlide):(o=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,i=Math.ceil(o+r.options.slidesToShow),!0===r.options.fade&&(o>0&&o--,i<=r.slideCount&&i++)),n=r.$slider.find(".slick-slide").slice(o,i),"anticipated"===r.options.lazyLoad)for(var s=o-1,a=i,l=r.$slider.find(".slick-slide"),c=0;c<r.options.slidesToScroll;c++)s<0&&(s=r.slideCount-1),n=(n=n.add(l.eq(s))).add(l.eq(a)),s--,a++;t(n),r.slideCount<=r.options.slidesToShow?t(r.$slider.find(".slick-slide")):r.currentSlide>=r.slideCount-r.options.slidesToShow?t(r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow)):0===r.currentSlide&&t(r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow))},t.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},t.prototype.postSlide=function(t){var n=this;n.unslicked||(n.$slider.trigger("afterChange",[n,t]),n.animating=!1,n.slideCount>n.options.slidesToShow&&n.setPosition(),n.swipeLeft=null,n.options.autoplay&&n.autoPlay(),!0===n.options.accessibility&&(n.initADA(),n.options.focusOnChange&&e(n.$slides.get(n.currentSlide)).attr("tabindex",0).focus()))},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(t){t=t||1;var n,o,i,r,s,a=this,l=e("img[data-lazy]",a.$slider);l.length?(n=l.first(),o=n.attr("data-lazy"),i=n.attr("data-srcset"),r=n.attr("data-sizes")||a.$slider.attr("data-sizes"),(s=document.createElement("img")).onload=function(){i&&(n.attr("srcset",i),r&&n.attr("sizes",r)),n.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,n,o]),a.progressiveLazyLoad()},s.onerror=function(){t<3?setTimeout(function(){a.progressiveLazyLoad(t+1)},500):(n.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,n,o]),a.progressiveLazyLoad())},s.src=o):a.$slider.trigger("allImagesLoaded",[a])},t.prototype.refresh=function(t){var n,o,i=this;o=i.slideCount-i.options.slidesToShow,!i.options.infinite&&i.currentSlide>o&&(i.currentSlide=o),i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0),n=i.currentSlide,i.destroy(!0),e.extend(i,i.initials,{currentSlide:n}),i.init(),t||i.changeSlide({data:{message:"index",index:n}},!1)},t.prototype.registerBreakpoints=function(){var t,n,o,i=this,r=i.options.responsive||null;if("array"===e.type(r)&&r.length){for(t in i.respondTo=i.options.respondTo||"window",r)if(o=i.breakpoints.length-1,r.hasOwnProperty(t)){for(n=r[t].breakpoint;o>=0;)i.breakpoints[o]&&i.breakpoints[o]===n&&i.breakpoints.splice(o,1),o--;i.breakpoints.push(n),i.breakpointSettings[n]=r[t].settings}i.breakpoints.sort(function(e,t){return i.options.mobileFirst?e-t:t-e})}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,n){var o=this;if(e="boolean"==typeof e?!0===(t=e)?0:o.slideCount-1:!0===t?--e:e,o.slideCount<1||e<0||e>o.slideCount-1)return!1;o.unload(),!0===n?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(e).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},t.prototype.setCSS=function(e){var t,n,o=this,i={};!0===o.options.rtl&&(e=-e),t="left"==o.positionProp?Math.ceil(e)+"px":"0px",n="top"==o.positionProp?Math.ceil(e)+"px":"0px",i[o.positionProp]=e,!1===o.transformsEnabled?o.$slideTrack.css(i):(i={},!1===o.cssTransitions?(i[o.animType]="translate("+t+", "+n+")",o.$slideTrack.css(i)):(i[o.animType]="translate3d("+t+", "+n+", 0px)",o.$slideTrack.css(i)))},t.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var t,n=this;n.$slides.each(function(o,i){t=n.slideWidth*o*-1,!0===n.options.rtl?e(i).css({position:"relative",right:t,top:0,zIndex:n.options.zIndex-2,opacity:0}):e(i).css({position:"relative",left:t,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},t.prototype.setOption=t.prototype.slickSetOption=function(){var t,n,o,i,r,s=this,a=!1;if("object"===e.type(arguments[0])?(o=arguments[0],a=arguments[1],r="multiple"):"string"===e.type(arguments[0])&&(o=arguments[0],i=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?r="responsive":"undefined"!=typeof arguments[1]&&(r="single")),"single"===r)s.options[o]=i;else if("multiple"===r)e.each(o,function(e,t){s.options[e]=t});else if("responsive"===r)for(n in i)if("array"!==e.type(s.options.responsive))s.options.responsive=[i[n]];else{for(t=s.options.responsive.length-1;t>=0;)s.options.responsive[t].breakpoint===i[n].breakpoint&&s.options.responsive.splice(t,1),t--;s.options.responsive.push(i[n])}a&&(s.unload(),s.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),t.WebkitTransition===undefined&&t.MozTransition===undefined&&t.msTransition===undefined||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),t.OTransform!==undefined&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",t.perspectiveProperty===undefined&&t.webkitPerspective===undefined&&(e.animType=!1)),t.MozTransform!==undefined&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",t.perspectiveProperty===undefined&&t.MozPerspective===undefined&&(e.animType=!1)),t.webkitTransform!==undefined&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",t.perspectiveProperty===undefined&&t.webkitPerspective===undefined&&(e.animType=!1)),t.msTransform!==undefined&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",t.msTransform===undefined&&(e.animType=!1)),t.transform!==undefined&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},t.prototype.setSlideClasses=function(e){var t,n,o,i,r=this;if(n=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),r.$slides.eq(e).addClass("slick-current"),!0===r.options.centerMode){var s=r.options.slidesToShow%2==0?1:0;t=Math.floor(r.options.slidesToShow/2),!0===r.options.infinite&&(e>=t&&e<=r.slideCount-1-t?r.$slides.slice(e-t+s,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(o=r.options.slidesToShow+e,n.slice(o-t+1+s,o+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?n.eq(n.length-1-r.options.slidesToShow).addClass("slick-center"):e===r.slideCount-1&&n.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=r.slideCount-r.options.slidesToShow?r.$slides.slice(e,e+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=r.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(i=r.slideCount%r.options.slidesToShow,o=!0===r.options.infinite?r.options.slidesToShow+e:e,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-e<r.options.slidesToShow?n.slice(o-(r.options.slidesToShow-i),o+i).addClass("slick-active").attr("aria-hidden","false"):n.slice(o,o+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==r.options.lazyLoad&&"anticipated"!==r.options.lazyLoad||r.lazyLoad()},t.prototype.setupInfinite=function(){var t,n,o,i=this;if(!0===i.options.fade&&(i.options.centerMode=!1),!0===i.options.infinite&&!1===i.options.fade&&(n=null,i.slideCount>i.options.slidesToShow)){for(o=!0===i.options.centerMode?i.options.slidesToShow+1:i.options.slidesToShow,t=i.slideCount;t>i.slideCount-o;t-=1)n=t-1,e(i.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-i.slideCount).prependTo(i.$slideTrack).addClass("slick-cloned");for(t=0;t<o+i.slideCount;t+=1)n=t,e(i.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+i.slideCount).appendTo(i.$slideTrack).addClass("slick-cloned");i.$slideTrack.find(".slick-cloned").find("[id]").each(function(){e(this).attr("id","")})}},t.prototype.interrupt=function(e){var t=this;e||t.autoPlay(),t.interrupted=e},t.prototype.selectHandler=function(t){var n=this,o=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),i=parseInt(o.attr("data-slick-index"));i||(i=0),n.slideCount<=n.options.slidesToShow?n.slideHandler(i,!1,!0):n.slideHandler(i)},t.prototype.slideHandler=function(e,t,n){var o,i,r,s,a,l=null,c=this;if(t=t||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===e))if(!1===t&&c.asNavFor(e),o=e,l=c.getLeft(o),s=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?s:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(e<0||e>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(o=c.currentSlide,!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(s,function(){c.postSlide(o)}):c.postSlide(o));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(e<0||e>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(o=c.currentSlide,!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(s,function(){c.postSlide(o)}):c.postSlide(o));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),i=o<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+o:o>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:o-c.slideCount:o,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,i]),r=c.currentSlide,c.currentSlide=i,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=(a=c.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==n?(c.fadeSlideOut(r),c.fadeSlide(i,function(){c.postSlide(i)})):c.postSlide(i),void c.animateHeight();!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(l,function(){c.postSlide(i)}):c.postSlide(i)}},t.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,t,n,o,i=this;return e=i.touchObject.startX-i.touchObject.curX,t=i.touchObject.startY-i.touchObject.curY,n=Math.atan2(t,e),(o=Math.round(180*n/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===i.options.rtl?"left":"right":o<=360&&o>=315?!1===i.options.rtl?"left":"right":o>=135&&o<=225?!1===i.options.rtl?"right":"left":!0===i.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},t.prototype.swipeEnd=function(){var e,t,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),n.touchObject.curX===undefined)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(t=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=t&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,t]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&e.originalEvent.touches!==undefined?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},t.prototype.swipeMove=function(e){var t,n,o,i,r,s,a=this;return r=e.originalEvent!==undefined?e.originalEvent.touches:null,!(!a.dragging||a.scrolling||r&&1!==r.length)&&(t=a.getLeft(a.currentSlide),a.touchObject.curX=r!==undefined?r[0].pageX:e.clientX,a.touchObject.curY=r!==undefined?r[0].pageY:e.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),s=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&s>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=s),n=a.swipeDirection(),e.originalEvent!==undefined&&a.touchObject.swipeLength>4&&(a.swiping=!0,e.preventDefault()),i=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(i=a.touchObject.curY>a.touchObject.startY?1:-1),o=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===n||a.currentSlide>=a.getDotCount()&&"left"===n)&&(o=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=t+o*i:a.swipeLeft=t+o*(a.$list.height()/a.listWidth)*i,!0===a.options.verticalSwiping&&(a.swipeLeft=t+o*i),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},t.prototype.swipeStart=function(e){var t,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return n.touchObject={},!1;e.originalEvent!==undefined&&e.originalEvent.touches!==undefined&&(t=e.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=t!==undefined?t.pageX:e.clientX,n.touchObject.startY=n.touchObject.curY=t!==undefined?t.pageY:e.clientY,n.dragging=!0},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},t.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,n,o=this,i=arguments[0],r=Array.prototype.slice.call(arguments,1),s=o.length;for(e=0;e<s;e++)if("object"==typeof i||void 0===i?o[e].slick=new t(o[e],i):n=o[e].slick[i].apply(o[e].slick,r),void 0!==n)return n;return o}}),$(function(){$(".js-add-file-input").on("click",function(){var e=(new Date).getTime(),t=$(this).data("association"),n=new RegExp("new_"+t,"g"),o=$(this).data("content").replace(n,e);$(this).after(o)})}),$(function(){function e(e,t){e.index=t,i.append(Mustache.render(a,e)),o(i,".js-start-datetime:last",r,s),o(i,".js-end-datetime:last",r,s)}function t(t){var o=$(".event-instance:last"),i=o.find(".js-start-datetime").val(),a=o.find(".js-end-datetime").val(),l=(i=n(i,s,r),a=n(a,s,r),t);e({start_at:moment.unix(i).add(l,"seconds").format(r),end_at:moment.unix(a).add(l,"seconds").format(r)},Math.floor(Date.now()/100)),bind_event_instance_datepicker()}function n(e,t,n){var o=moment(e,t).format(n);return seconds=new Date(o).getTime()/1e3}function o(e,t,n,o){var i=(t=$(e).find(t)).val(),r=moment(i,n).format(o);return t.val(r)}if("undefined"!=typeof $.fn.datetimepicker){var i=$("#instances"),r="MMMM DD, YYYY HH:mm",s="ddd - MMM DD, YYYY - h:mm A",a=$("#event-instance-template").html();i.length>0&&$(i.data().instances).each(function(t,n){e(n,t)}),(bind_event_instance_datepicker=function(){var e="<div class='js-event-instance-error-message block-help text-light pt-1'>Start and end dates are reversed</div>";$(".event-instance-datepicker").datetimepicker({sideBySide:!0,stepping:5,allowInputToggle:!0,format:s,icons:{time:"icon-time",date:"icon-calendar-empty",up:"icon-chevron-up",down:"icon-chevron-down",previous:"icon-chevron-left",next:"icon-chevron-right"}}).on("dp.change",function(){var t=$(this).closest(".event-instance"),o=t.find(".js-start-datetime").val(),i=t.find(".js-end-datetime").val(),a=n(o,s,r),l=n(i,s,r);if($(this).hasClass("js-start-datetime")&&a>l){var c=3600,d=moment.unix(a).add(c,"seconds").format(s);t.find(".js-end-datetime").val(d)}$(this).hasClass("js-end-datetime")&&(a>l?t.hasClass("bg-danger")||(t.addClass("bg-danger").removeClass("bg-tone").append(e),t.find(".js-delete-attachment").hide()):(t.removeClass("bg-danger").addClass("bg-tone"),t.find(".js-event-instance-error-message").remove(),t.find(".js-delete-attachment").show()))})})(),$(".js-add-day").on("click",function(e){e.preventDefault(),t(86400)}),$(".js-add-week").on("click",function(e){e.preventDefault(),t(604800)}),$(".js-add-month").on("click",function(e){e.preventDefault(),t(2592e3)})}}),jQuery(function(e){isSelectorPresent(".js-block-page")&&(e(".js-block-type-form").each(function(){const t="block-type-"+Math.random().toString(36).substring(2),n=e(this);n.find(".js-create-block-types-list a").each(function(){let o=e(this).closest(".js-select-block-type-btn, .js-create-first-block-btn").data("block-type");e(this).attr("href","#"+t+"-"+o),n.find("div.tab-pane[data-block-type='"+o+"']").attr("id",t+"-"+o)})}),e(".js-create-block-btn").click(function(){offSetToolbarTop(this,e(".js-create-block-toolbar"))}),e(".js-block-edit-toolbar .nav-tabs a").click(function(t){t.stopPropagation(),e(this).tab("show")}),e(".js-create-block-types-list.nav-tabs div").hover(function(){e(this).find("a").tab("show"),e(".js-create-block-types-list.nav-tabs li").removeClass("active")}),e(".js-create-first-block-btn").click(function(t){t.preventDefault(),e(".js-select-first-block-btn").prop("disabled",!0)
;var n=e(this).find(".js-block-type-value").val(),o=e(this).find(".js-block-layout-value").val(),i=e(this).find(".js-block-page-position-value").val(),r=e(this).data("create-url");e.ajax({type:"POST",dataType:"json",url:r,data:{block:{block_type:n,layout:o,page_position:i,position:1,overlay_color:getRandomBlockOverlayColor()}},success:function(){notification("Creating block"),e(".js-select-first-block-btn").prop("disabled",!1),window.location.reload()}})}),e(".js-select-block-type-btn").click(function(t){t.preventDefault(),e(".js-select-block-type-btn").prop("disabled",!0);e(this).closest(".block-wrapper");const n=e(this).closest(".js-block-page").find(".js-block-type-form"),o={block_type:e(this).data("block-type"),layout:e(this).data("block-layout"),overlay_color:getRandomBlockOverlayColor()};e.ajax({type:"POST",dataType:"json",url:n.prop("action"),data:{block:o,relative_position:n.data("block-create-position")},success:function(){notification("Creating block"),window.location.reload()}})}),e(".clone-block-btn").click(function(t){if(t.preventDefault(),confirm("Are you sure you want to clone this block?")){const t=e(this).data("block-id");e(".delete-block-btn").prop("disabled",!0),cloneBlockUrl=e(this).attr("href"),e.ajax({type:"POST",dataType:"json",url:cloneBlockUrl,data:{block:{id:t}},success:function(){notification("Cloning Block..."),window.location.reload()}})}}),e(".delete-block-btn").click(function(t){if(t.preventDefault(),confirm("Are you sure you want to delete this block?")){var n=e(this).data("block-id");e(".delete-block-btn").prop("disabled",!0),deleteBlockUrl=e(this).attr("href"),e.ajax({type:"PATCH",data:{block:{id:n}},url:deleteBlockUrl,success:function(){notification("Deleting Block..."),e(".delete-block-btn").prop("disabled",!1),window.location.reload()}})}}),e(".js-add-block-element-btn").click(function(t){t.preventDefault(),e(".js-add-block-element-btn").prop("disabled",!0),addElementUrl=e(this).data("block-add-element-url"),e.ajax({type:"POST",url:addElementUrl,success:function(){notification("Creating Element..."),window.location.reload()}})}),e(".block-layout-radio-btns").on("change",function(){var t=getBlockDomId(this);e(t+".js-set-block-layout-btn").removeClass("d-none")}),e(".js-set-block-layout-btn").click(function(){var t=getBlockDomId(this),n=e(t+".block-layout-radio-btns:checked").val(),o=e(t+".js-block-layout-form").prop("action");e.ajax({type:"PATCH",url:o,data:{block:{layout:n}},success:function(){window.location.reload(),notification("Updating Layout...")}})}),e(".js-block-hide-desktop-btn").click(function(t){t.preventDefault();var n=getBlockDomId(this),o=".js-block-hide-desktop-btn",i=e(n+".js-block-responsive-form").prop("action");e.ajax({type:"PATCH",url:i,data:{block:{hide_on_desktop:e(n+o).val()}},success:function(){"false"==e(n+o).val()?(e(n+o).addClass("active"),e(n+".overlay-desktop").addClass("d-none"),e(n+o).val(!0)):(e(n+o).removeClass("active"),e(n+".overlay-desktop").removeClass("d-none"),e(n+o).val(!1))}})}),e(".js-block-hide-tablet-btn").click(function(t){t.preventDefault();var n=getBlockDomId(this),o=".js-block-hide-tablet-btn",i=e(n+".js-block-responsive-form").prop("action");e.ajax({type:"PATCH",url:i,data:{block:{hide_on_tablet:e(n+o).val()}},success:function(){"false"==e(n+o).val()?(e(n+o).addClass("active"),e(n+".overlay-tablet").addClass("d-none"),e(n+o).val(!0)):(e(n+o).removeClass("active"),e(n+".overlay-tablet").removeClass("d-none"),e(n+o).val(!1))}})}),e(".js-block-hide-mobile-btn").click(function(t){t.preventDefault();var n=getBlockDomId(this),o=".js-block-hide-mobile-btn",i=e(n+".js-block-responsive-form").prop("action");e.ajax({type:"PATCH",url:i,data:{block:{hide_on_mobile:e(n+o).val()}},success:function(){"false"==e(n+o).val()?(e(n+o).addClass("active"),e(n+".overlay-mobile").addClass("d-none"),e(n+o).val(!0)):(e(n+o).removeClass("active"),e(n+".overlay-mobile").removeClass("d-none"),e(n+o).val(!1))}})}),e(".js-block-contain-width-btn").change(function(t){t.preventDefault();var n=getBlockDomId(this),o=(e(n+".js-create-block-btn"),e(n+".js-block-width-form").prop("action"));e.ajax({type:"PATCH",url:o,data:{block:{is_full_width:!1}},success:function(){e(n+".js-block-container").addClass("container my-4"),e(n+".js-block-contain-width-btn").removeClass("btn-default").addClass("active btn-success"),e(n+".js-block-full-width-btn").removeClass("active btn-success").addClass("btn-default"),e(n).addClass("block-contained")}})}),e(".js-block-full-width-btn").change(function(t){t.preventDefault();var n=getBlockDomId(this),o=(e(n+".js-create-block-btn"),e(n+".js-block-width-form").prop("action"));e.ajax({type:"PATCH",url:o,data:{block:{is_full_width:!0}},success:function(){e(n+".js-block-container").removeClass("container my-4"),e(n+".js-block-full-width-btn").removeClass("btn-default").addClass("active btn-success"),e(n+".js-block-contain-width-btn").removeClass("active btn-success").addClass("btn-default"),e(n).removeClass("block-contained")}})}),e(".js-vertical-padding-option").on("change",function(){var t=getBlockDomId(this),n=e(t+".js-vertical-padding-option").val(),o=e(t+".js-block-adjust-padding"),i=e(t+".js-block-height-form").prop("action");e.ajax({type:"PATCH",url:i,data:{block:{vertical_padding:n}},success:function(){setBlockVerticalPadding(n,o)}})}),e(".js-block-height-input").on("input",e(".js-block-height-input"),function(){var t=getBlockDomId(this),n=e(t+".js-block-height-input").val(),o=e(t+".js-height-text-display");changeHeight(n,e(t+".js-block-height")),o.text(n)}),e(".js-block-height-input").change(function(){var t=getBlockDomId(this),n=e(t+".js-block-height-input").val(),o=e(t+".js-block-height-form").prop("action");e.ajax({type:"PATCH",url:o,dataType:"json",data:{block:{height:n}}})}),e(".js-block-opacity-input").on("input",e(".js-block-opacity-input"),function(){var t=getBlockDomId(this),n=e(t+".js-block-opacity-input"),o=n.val()/100,i=e(t+".js-opacity-text-display");changeBlockDomOpacity(o,e(t+".js-block-opacity")),i.text(n.val())}),e(".js-block-opacity-input").change(function(){var t=getBlockDomId(this),n=e(t+".js-block-opacity-form").prop("action");opacityInput=e(t+".js-block-opacity-input"),opacityInput.val()>99?e(t+".js-opacity-help-block").removeClass("d-none"):e(t+".js-opacity-help-block").addClass("d-none"),e.ajax({type:"PATCH",url:n,dataType:"json",data:{block:{overlay_opacity:e(opacityInput).val()}}})}),e(".js-block-radio-color-btn").click(function(){var t=getBlockDomId(this),n=e(t+".js-block-background"),o=e(t+".js-block-color-form").prop("action");e.ajax({type:"PATCH",url:o,data:{block:{overlay_color:e(this).val()}}}),change_background_class(n,e(this).data("color"))}),e(".js-background-photo-input").on("change",function(){notification("Uploading Photo....");var t=getBlockDomId(this),n=e(t+".js-block-background-photo"),o=e(t+".js-block-upload-background-wrapper"),i=e(t+".js-block-background-form").prop("action");if(backgroundPhotoUrl=n.css("background-image"),this.files&&this.files[0]){n.css("background-image","none");var r=this.files[0],s=new FormData,a=this;s.append("block[background_photo]",r),e.ajax({type:"PATCH",url:i,contentType:!1,processData:!1,data:s,error:function(e){notification_alert(JSON.parse(e.responseText).error)},success:function(){e(t+".js-block-parallax-wrapper").removeClass("d-none"),o.addClass("d-none"),getBlockPhotoPreview(a,n,backgroundPhotoUrl,t),e(".flash-message-popdown").slideUp(),checkBlockBackgroundContentOpacity(t)}})}}),e(".js-delete-block-photo-btn").click(function(t){t.preventDefault();var n=getBlockDomId(this),o=e(n+".js-block-background-photo"),i=e(n+".js-background-photo-input"),r=e(n+".js-attachment-preview"),s=e(n+".js-block-upload-background-wrapper"),a=e(n+".js-block-background-form").prop("action");r.addClass("d-none"),o.css("backgroundImage",""),e(i).val("");var l=new FormData;l.append("block[background_photo]",""),e.ajax({type:"PATCH",url:a,contentType:!1,processData:!1,data:l,success:function(){e(n+".js-block-parallax-wrapper").addClass("d-none"),setBlockOpacityNoBackground(n),s.removeClass("d-none"),i.removeAttr("value")}})}),e(".js-block-background-gravity-btn").click(function(){var t=getBlockDomId(this),n=e(t+".js-block-background-photo"),o=e(this).data("gravity"),i=e(t+".js-block-background-form").prop("action");setBlockGravityStyle(n,o),e.ajax({type:"PATCH",url:i,dataType:"json",data:{block:{gravity:o}}})}),e(".js-block-parallax-select").on("change",function(){var t=getBlockDomId(this),n=t+".js-block-background-gravity-btn",o=e(t+".js-block-background"),i=e(this).val(),r=e(t+".js-parallax-help-block"),s=e(t+".js-block-background-form").prop("action");"parallax"==i?r.removeClass("d-none"):r.addClass("d-none"),e.ajax({type:"PATCH",url:s,data:{block:{background_motion:i}},success:function(){var t=e(n+".active").data("gravity");o.removeClass("bg-parallax bg-fixed"),"off"==i?setBlockGravityStyle(o,t):o.addClass("bg-"+i)}})}),e(".js-background-video-url-input").keydown(function(t){var n=getBlockDomId(this);13==t.keyCode&&(t.preventDefault(),e(n+".js-background-video-url-input").trigger("blur"))}),e(".js-background-video-url-input").blur(function(){var t=getBlockDomId(this),n=e(t+".js-background-video-url-input"),o=e(t+".js-block-background-form").prop("action");e.ajax({type:"PATCH",url:o,data:{block:{background_video_url:n.val()}},error:function(e){notification_alert(JSON.parse(e.responseText).error)},success:function(){notification("Updating Video..."),setBlockOpacityNoBackground(t),""!=n.val()&&checkBlockBackgroundContentOpacity(t),window.location.reload()}})}),e(".js-delete-block-video-btn").click(function(){var t=getBlockDomId(this),n=e(t+".js-background-video-url-input"),o=e(t+".js-block-background-form").prop("action");e.ajax({type:"PATCH",url:o,data:{block:{background_video_url:""}},error:function(e){notification_alert(JSON.parse(e.responseText).error)},success:function(){n.val(""),setBlockOpacityNoBackground(t),window.location.reload(),notification("Deleting Video...")}})}),e(".js-block-btn1-size-option").change(function(){var t=getBlockDomId(this),n=e(t+".js-block-btn1-color-radio:checked"),o=e(t+".js-block-btn1-size-option"),i=e(t+".js-block-btn-one"),r=e(t+".js-block-btn2-color-radio:checked"),s=e(t+".js-block-btn-two"),a=e(t+".js-block-button-form").prop("action");e.ajax({type:"PATCH",url:a,data:{block:{button_one_size:o.val(),button_two_size:o.val()}},success:function(){i.removeClass("btn-lg btn-md btn-sm").addClass("js-block-btn-one"),s.removeClass("btn-lg btn-md btn-sm").addClass("js-block-btn-two"),i.addClass(getBlockBtnClasses(n,o)),s.addClass(getBlockBtnClasses(r,o))}})}),e(".js-block-btn1-color-radio").click(function(){var t=getBlockDomId(this),n=e(this),o=e(t+".js-block-btn1-size-option"),i=e(t+".js-block-btn-one"),r=e(t+".js-block-button-form").prop("action");e.ajax({type:"PATCH",url:r,data:{block:{button_one_color:n.val()}},success:function(){i.removeClass("btn-primary btn-secondary btn-tertiary btn-light btn-dark btn-ghost btn-default").addClass("js-block-btn-one"),i.addClass(getBlockBtnClasses(n,o))}})}),e(".js-block-btn2-color-radio").click(function(){var t=getBlockDomId(this),n=e(this),o=e(t+".js-block-btn1-size-option"),i=e(t+".js-block-btn-two"),r=e(t+".js-block-button-form").prop("action");e.ajax({type:"PATCH",url:r,data:{block:{button_two_color:n.val()}},success:function(){i.removeClass("btn-primary btn-secondary btn-tertiary btn-light btn-dark btn-ghost btn-default").addClass("js-block-btn-two"),i.addClass(getBlockBtnClasses(n,o))}})}),e(".js-icon-size-option").change(function(){var t=getBlockDomId(this),n=e(t+".js-block-round-icon-checkbox"),o=e(t+".js-block-icon-color-radio:checked"),i=e(t+".js-icon-size-option"),r=e(t+".js-block-edit-icon-form").prop("action");removeBlockIconClasses(t),e(t+".js-block-icon").addClass(getIconColorClasses(i,o,n,t)),e.ajax({type:"PATCH",url:r,data:{block:{icon_size:i.val()}},success:function(){}})}),e(".js-block-icon-color-radio").change(function(){var t=getBlockDomId(this),n=e(this),o=e(t+".js-block-round-icon-checkbox"),i=e(t+".js-icon-size-option"),r=e(t+".js-block-edit-icon-form").prop("action");removeBlockIconClasses(t),e(t+".js-block-icon").addClass(getIconColorClasses(i,n,o,t)),e.ajax({type:"PATCH",url:r,data:{block:{icon_color:n.val()}},success:function(){}})}),e(".js-block-round-icon-checkbox").change(function(){var t=getBlockDomId(this),n=e(t+".js-block-round-icon-checkbox"),o=e(t+".js-block-icon-color-radio:checked"),i=e(t+".js-icon-size-option"),r=e(t+".js-block-edit-icon-form").prop("action");e.ajax({type:"PATCH",url:r,data:{block:{is_icon_round:n.val()}},success:function(){flipBooleanInput(n),removeBlockIconClasses(t),e(t+".js-block-icon").addClass(getIconColorClasses(i,o,n,t))}})}),e(".js-block-image-circle-checkbox").change(function(){var t=getBlockDomId(this),n=e(t+".js-block-content-image"),o=e(t+".js-block-image-circle-checkbox"),i=e(t+".js-block-edit-image-form").prop("action");e.ajax({type:"PATCH",url:i,data:{block:{is_image_circle:o.val()}},success:function(){"true"==o.val()?n.addClass("rounded-circle"):n.removeClass("rounded-circle"),flipBooleanInput(o)}})}),e(".js-orientation-btn").click(function(){var t=getBlockDomId(e(this).find("input")),n=e(t+".js-block-content-image"),o=e(t+".js-image-size-option"),i=e(this).find("input"),r=e(t+".js-block-edit-image-form").prop("action");e.ajax({type:"PATCH",url:r,data:{block:{image_orientation:i.val()}},success:function(){e(".js-orientation-btn").removeClass("btn-success"),e(".js-orientation-btn.active").addClass("btn-success"),"landscape"==i.val()?setBlockImageSize(o.val(),n,!0):setBlockImageSize(o.val(),n,!1)}})}),e(".js-image-size-option").change(function(){var t=getBlockDomId(this),n=e(t+".js-image-size-option"),o=e(t+".js-block-content-image"),i=e(t+".js-orientation-btn input[type=radio]:checked"),r=e(t+".js-block-edit-image-form").prop("action");e.ajax({type:"PATCH",url:r,data:{block:{image_size:n.val()}},success:function(){"landscape"==i.val()?setBlockImageSize(n.val(),o,!0):setBlockImageSize(n.val(),o,!1)}})}))}),$(function(){$("body").on("click",".js-hide-image-btn",function(e){e.preventDefault();var t="#"+$(this).data("image-dom-id");$(t+" .js-hide-image-btn").addClass("d-none"),$(t+" .js-show-image-btn").removeClass("d-none")}),$("body").on("click",".js-show-image-btn",function(e){e.preventDefault();var t="#"+$(this).data("image-dom-id");$(t+" .js-show-image-btn").addClass("d-none"),$(t+" .js-hide-image-btn").removeClass("d-none")})}),$(function(){$(".clone-page-btn").click(function(){event.preventDefault(),$(this).prop("disabled",!0);var e=$(this).data("page-id");clonePageUrl=$(this).attr("href"),$.ajax({type:"POST",url:clonePageUrl,data:{page:{id:e}},success:function(){notification("Cloning Page..."),window.location.reload()}})}),$(".clone-program-btn").click(function(){event.preventDefault(),$(this).prop("disabled",!0);var e=$(this).data("program-id");cloneProgramUrl=$(this).attr("href"),notification("Cloning in process..."),$.ajax({type:"POST",url:cloneProgramUrl,data:{program:{id:e}},success:function(){notification("Finishing clone..."),window.location.reload()}})})}),$(function(){isSelectorPresent("#js-custom-footer-dropdown")&&$("#js-custom-footer-dropdown").on("change",function(){var e=$("#js-site-design-footer-form"),t=$("#js-custom-footer-edit-alert");"none"==$(this).val()?(e.removeClass("form-disabled"),t.addClass("d-none")):(e.addClass("form-disabled"),t.removeClass("d-none"))})}),$(function(){"undefined"!=typeof $.datetimepicker&&($(".simpledatepicker").datetimepicker({viewMode:"days",format:"YYYY-MM-DD",icons:{time:"icon-time",date:"icon-calendar-empty",up:"icon-chevron-up",down:"icon-chevron-down",previous:"icon-chevron-left",next:"icon-chevron-right"}}).on("dp.hide",function(e){e.target.blur()}),$(".simpledatetimepicker").datetimepicker({sideBySide:!0,format:"YYYY-MM-DD hh:mm A",icons:{time:"icon-time",date:"icon-calendar-empty",up:"icon-chevron-up",down:"icon-chevron-down",previous:"icon-chevron-left",next:"icon-chevron-right"}}).on("dp.hide",function(e){e.target.blur()}))}),$(function(){$("body").on("click",".js-delete-attachment",function(e){e.preventDefault(),$(this).hide(),$(this).siblings("input[type=hidden]").val("1"),$(this).closest(".js-attachment-preview").find(".js-attachment-opacity").css("opacity","0.25").css("pointer-events","none"),$(this).siblings(".js-undo-delete-attachment").show()}),$("body").on("click",".js-undo-delete-attachment",function(e){e.preventDefault(),$(this).hide(),$(this).siblings("input[type=hidden]").val("false"),$(this).closest(".js-attachment-preview").find(".js-attachment-opacity").css("opacity","1").css("pointer-events","all"),$(this).siblings(".js-delete-attachment").show()}),$("body").on("click",".js-remove-input",function(e){e.preventDefault(),$(".removeable-file-attachment").length>0&&$(this).parents(".removeable-file-attachment").remove(),$(this).parent().remove()})}),$(function(){$("#domain-table").on("show.bs.collapse",".collapse",function(){$("#domain-table").find(".collapse.in").collapse("hide")})}),$(function(){var e=function(){return $("#resync-external-data .spinner").addClass("spin"),window.setTimeout(function(){$("#resync-external-data .spinner").removeClass("spin")},15e3),notification_success("Your data is now being refreshed.  This may take a minute or two"),!0};$("button#resync-external-data").closest("form").on("ajax:send",e),$("a#resync-external-data").on("ajax:send",e)}),jQuery(function(e){e(document).on("keyup","#search-icons",function(t){var n=e(t.target),o=e(n.data("target")),i=n.val(),r=new RegExp(i,"i");o.children("label").each(function(){e(this).data("icon").match(r)?e(this).show():e(this).hide()})})}),$.ajaxSetup({beforeSend:function(e,t){return new URL(t.url,window.location.origin).origin==window.location.origin&&e.setRequestHeader("X-CSRF-Token",$('meta[name="csrf-token"]').attr("content")),!0}}),$(document).ready(function(){function e(){var e=$(".multiday_fields");$("#multiday_activate").fadeIn(300),e.delay(320).fadeOut(300).hide(),e.find("input").attr("value",null)}function t(e){var t=$("#event_start_date_as_date").attr("value");$("#event_end_date").attr("value",t),$("#multiday_activate").hide(300),$(e).fadeOut(300),$(".multiday_fields").delay(320).fadeIn(300)}"undefined"!=typeof $.fn.tokenInput&&($("#tag_list").tokenInput("/tags",{prePopulate:$(this).data("pre"),tokenValue:"name",jsonContainer:"tags",resultsFormatter:function(e){return 1==e.new_tag?"<li>Add "+e[this.propertyToSearch]+"</li>":"<li>"+e[this.propertyToSearch]+"</li>"}}),$(".addable.token-input-token").click(function(){return $("#tag_list").tokenInput("add",$(this).data("pre")),$(this).hide(),!1}),$("#new_token_submit").click(function(){var e=$(this).siblings("#new_token_text");return""!=e.val()&&($("#tag_list").tokenInput("add",{name:e.val()}),e.val("")),!1})),$("input, textarea").placehold("something-temporary"),$("#close_signup_button").click(function(){$("#close_signup_form").submit()}),$("#user_list").length&&$("#user_list").liveFilter("#livefilter-input",'[data-behaviour="liveFilterUser"]'),$("#style_card").click(function(){return $("#directory_type").attr("class","card"),$(".view_toggle a").removeClass("active"),$(this).addClass("active"),!1}),$("#style_list").click(function(){return $("#directory_type").attr("class","list"),$(".view_toggle a").removeClass("active"),$(this).addClass("active"),!1});var n=$("#min_holder");$("#min_trigger").click(function(){var e="open";n.hasClass(e)?(n.collapse("hide"),n.removeClass(e)):(n.insertBefore(".js-menus"),n.addClass(e),n.collapse("show"))}),n.on("hidden.bs.collapse",function(){n.insertAfter("#footer")}),$(".mobile_info a.trigger").click(function(){return $(".mobile_info .reveal_info").slideToggle(),!1}),$("#multiday_activate").click(function(){return t(this),!1}),$("#multiday_clear").click(function(){return e(),!1}),$(".fadein-out").css("opacity","0"),$(".fadein-out").animate({opacity:1},900).delay(2e3).animate({opacity:0},750),$("#acct_box a.button").click(function(){return $("#acct_box .dropdown").slideToggle(300),!1}),$("#alert").delay(200).animate({opacity:1},300).delay(3e3).animate({opacity:0},300).fadeOut(),$(".slidenav").css({display:"none"}),$("#show").hover(function(){$(this).find(".slidenav").fadeIn(200)},function(){$(this).find(".slidenav").fadeOut(200)}),$("#front_slide").hover(function(){$(this).find(".slidenav").fadeIn(200)},function(){$(this).find(".slidenav").fadeOut(200)}),$("#site_wide_alert").bind("ajax:success",function(){$(this).fadeOut(100)}),$(".slidenav .pause").toggle(function(){$(this).addClass("play"),$(this).attr("onClick","resumeButton(); return false;")},function(){$(this).removeClass("play"),$(this).attr("onClick","pauseButton(); return false;")}),$("form .write").addClass("idleField"),$("form .write").focus(function(){$(this).removeClass("idleField").addClass("focusField")}),$("form .write").blur(function(){$(this).removeClass("focusField").addClass("idleField")}),$(".social-post").click(function(){notification_notice("Connecting to Facebook..."),$(".social-post").bind("ajax:success",function(){notification_success("Successully posted on "+$(this).data("provider"))}).bind("ajax:error",function(){$(this).data("provider");notification_alert("Facebook needs to be reconnected. We are redirecting you now\u2026"),setTimeout(function(){location.replace("/facebook")},3200)})}),$(".list-group").on("shown.bs.collapse",function(){$(this).find(".js-show-less").show(),$(this).find(".js-show-more").hide()}).on("hidden.bs.collapse",function(){$(this).find(".js-show-less").hide(),$(this).find(".js-show-more").show()}),$(".footer-dropdown-menu-title").click(function(){return $(this).siblings(".footer-dropdown-menu").slideToggle(300),!1})}),$(".report, #flag-profile").on("click",function(e){e.preventDefault(),f=$(this),$.ajax({url:f.attr("href"),type:"post",data:{flag:{resource_id:f.attr("data-id"),resource_type:f.attr("data-type")}},error:function(){console.log("Ajax Error !")}})}),$("#change_attendance").on("click",function(e){e.preventDefault(),f=$(this),$.ajax({url:f.attr("href"),type:"get",dataType:"script",error:function(){console.log("Ajax Error !")}})}),$("#attendance_form [type=radio]").on("click",function(e){e.preventDefault(),f=$(this).closest("form"),$.ajax({url:f.attr("action"),type:f.attr("method"),dataType:"script",data:f.serialize(),error:function(){console.log("Ajax Error!")}})}),$(window).scroll(function(){$el=$(".directory_top"),$(this).scrollTop()>141&&"fixed"!=$el.css("position")&&$(".directory_top").css({position:"fixed",top:"0px"}),$(this).scrollTop()<141&&"absolute"!=$el.css("position")&&$(".directory_top").css({position:"absolute",top:"0px"})}),$(document).on("click",'[data-toggle="lightbox"]',function(e){e.preventDefault(),$(this).ekkoLightbox()}),$(function(){if(isSelectorPresent(".js-main-menu-opaque")){var e=$(".js-main-menu-background-opacity"),t=e.css("opacity");mainMenuOpacityWillChange=!1,t<.95&&(mainMenuOpacityWillChange=!0),mainMenuOpacityWillChange&&($("#main_menu_collapse").on("show.bs.collapse",function(){e.css("opacity","0.95")}),$("#main_menu_collapse").on("hide.bs.collapse",function(){isSelectorPresent(".sticky-navbar")||e.css("opacity",t)}))}}),$(function(){$(".js-menu-link-select-options").each(function(e,t){$(t).on("change",function(){var e=$(this).siblings(".js-menu-item-custom-field").first(),t=$(this).siblings(".js-menu-item-links-collection").first();"custom"!=$(this).val()?(e.addClass("d-none").prop("disabled",!0),t.removeClass("d-none").prop("disabled",!1)):(t.addClass("d-none").prop("disabled",!0),e.removeClass("d-none").prop("disabled",!1)),ajaxUrl=$(this).data("filter-link"),$.ajax({url:ajaxUrl,type:"GET",data:{selected_resource_type:$(this).val()},success:function(e){t.html(e)}})})})}),$(function(){off_on_button_group()}),$(function(){$(".page-toolbar-button").click(function(){var e=$(this).parent(".page-toolbar");e.hasClass("open")?hidePageToolbar():e.addClass("open")}),$(".page-toolbar").mouseleave(function(){hidePageToolbar()})}),$(window).width()>812&&$(window).scroll(function(){var e=$(window).scrollTop();$(".bg-parallax").each(function(){var t=$(this).offset().top,n=$(this).height();$(this).height();if(isInViewport(this)){var o=e-t,i=Math.round(o/n*100);$(this).css("background-position","center "+parseInt(-1.5*i)+"px")}})}),$(function(){var e=$(".js-require-published"),t=$(".js-published-checkbox");t.change(function(){1==(t=$(this).is(":checked"))?e.removeClass("form-disabled"):e.addClass("form-disabled")}),0==t.is(":checked")&&e.addClass("form-disabled")}),$(function(){"undefined"!=typeof $.datetimepicker&&($(".simpledatepicker").datetimepicker({icons:{time:"icon-time",date:"icon-calendar-empty",up:"icon-chevron-up",down:"icon-chevron-down",previous:"icon-chevron-left",next:"icon-chevron-right"},viewMode:"days",format:"YYYY-MM-DD"}),$(".simpledatetimepicker").datetimepicker({icons:{time:"icon-time",date:"icon-calendar-empty",up:"icon-chevron-up",down:"icon-chevron-down",previous:"icon-chevron-left",next:"icon-chevron-right"},sideBySide:!0,format:"YYYY-MM-DD hh:mm A"}))}),$(function(){function e(e,t){return-1!=e.text().toLowerCase().indexOf(t)}$("#subscriber_filter").bind("keyup",function(){var t=$(this).val().toLowerCase(),n=$(".js-filter-subscribers-list");n.hide(),n.filter(function(){return e($(this).find("td.name"),t)||e($(this).find("td.email"),t)}).show()}),$(document).on("change",".subscriber-group-list-name input",function(e){var t=$(e.target);if(t.attr("name").match(/all_subscriber_ids|check_all/)){var n=$("#check_all_subscribers"),o=$(".subscriber-group-list input[type=checkbox]");if(t.attr("id")==n.attr("id")){var i=n.prop("checked");o.each(function(){$(this).prop("checked",i)})}else{i=o.filter(":checked").length==o.length;n.prop("checked",i)}}}),$(".all-subscribers input[type=checkbox]").first().trigger("change"),$("#subscribers_list").on("ajax:success","a[data-remote]",function(){$.get("/admin/subscribers.js")})}),$(function(){$('[data-toggle="tooltip"]').tooltip({container:"body"}),$(".dropdown-button-tooltip").tooltip({container:"body",trigger:"hover"}),$("[data-toggle=dropdown]").click(function(){$(".dropdown-button-tooltip").tooltip("hide")}),$("[data-toggle=tooltip]").click(function(){$("[data-toggle=tooltip]").tooltip("hide")})}),ClinicSites.onLoad(initializeLandingPageShowMore);