(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return c.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:c,path:o,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),o=r?n+"/"+r:n),"string"==typeof o&&(-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),c=t+o),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||o||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},c=[];function o(e,t={}){const{target:a,scope:r=e,...c}=t;if(void 0===e.wpcf7?.schema)return;const o={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where(input, textarea, select):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(o,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const c=t.dataset.name;if(n.has(c)){const{error:t,validInputs:a}=n.get(c);i(e,c),void 0!==t&&s(e,c,t,{scope:r}),l(e,c,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{c.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...c}=null!=n?n:{},o=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",o),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",o),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const c=new FormData(e);t.submitter&&t.submitter.name&&c.append(t.submitter.name,t.submitter.value);const o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(c,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:c};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((t=>{const r=n(e,t.status);return o.status=t.status,o.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,o):["sent","failed"].includes(r)&&a(e,`mail${r}`,o),a(e,"submit",o),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:c}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),c.apiResponse=t,a(e,"reset",c)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),c=t(e.getAttribute("data-minimum-value")),o=e.classList.contains("down")?n-a.value.trim().length:a.value.trim().length;e.setAttribute("data-current-value",o),e.innerText=o,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),c&&a.value.length<c?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),c=e.querySelector(`[name="${r}"]`);c&&(c.value=c.defaultValue,a(n,c),t.init&&c.addEventListener("keyup",(e=>{a(n,c)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:o,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})();
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.cvslide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".pt-cv-carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.4.2",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("pt-cv-slide")?(f.addClass(b),"object"==typeof f&&f.length&&f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};a.fn.cvcarousel=b,a.fn.cvcarousel.Constructor=c;var d=function(c){var d=a(this),e=d.attr("href");e&&(e=e.replace(/.*(?=#[^\s]+$)/,""));var f=d.attr("data-target"),g=a(document).find(f);if(!g.hasClass("pt-cv-carousel"))return void c.preventDefault();var h=a.extend({},g.data(),d.data()),i=d.attr("data-cvslide-to");i&&(h.interval=!1),b.call(g,h),i&&g.data("bs.carousel").to(i),c.preventDefault()};a(document).ready(function(){a(".pt-cv-wrapper").on("click.bs.carousel.data-api","[data-cvslide]",d).on("click.bs.carousel.data-api","[data-cvslide-to]",d)}),a(window).on("load",function(){a('[data-ride="cvcarousel"]',".pt-cv-wrapper").each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(document).find(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="cvcollapse"][href="#'+b.id+'"],[data-toggle="cvcollapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.4.2",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){!window.cv_collapse_ignore_others&&e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[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 e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(document).find(this.options.parent).find('[data-toggle="cvcollapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};a.fn.cvcollapse=c,a.fn.cvcollapse.Constructor=d,a(document).ready(function(){a(".pt-cv-wrapper").on("click.bs.collapse.data-api",'[data-toggle="cvcollapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})})}(jQuery),+function(a){function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d="#"!==c?a(document).find(c):null;return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(d).remove(),a(e).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}var d=".dropdown-backdrop",e='[data-toggle="dropdown"]',f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.VERSION="3.4.2",f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},f.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var f=b(d),g=f.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&f.find(e).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=f.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};a(document).ready(function(){a(".pt-cv-wrapper").on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",e,f.prototype.toggle).on("keydown.bs.dropdown.data-api",e,f.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",f.prototype.keydown)})}(jQuery),+function(a){function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.4.2",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(document).find(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).ready(function(){a(".pt-cv-wrapper").on("click.bs.tab.data-api",'[data-toggle="tab"]',d).on("click.bs.tab.data-api",'[data-toggle="pill"]',d)})}(jQuery),
function(a){var b=function(a,b){this.init(a,b)},c=null;b.prototype={init:function(b,c){this.$element=a(b);{var d=c&&c.bootstrapMajorVersion?c.bootstrapMajorVersion:a.fn.bootstrapPaginator.defaults.bootstrapMajorVersion;this.$element.attr("id")}if(2===d&&!this.$element.is("div"))throw"in Bootstrap version 2 the pagination must be a div element. Or if you are using Bootstrap pagination 3. Please specify it in bootstrapMajorVersion in the option";if(d>2&&!this.$element.is("ul"))throw"in Bootstrap version 3 the pagination root item must be an ul element.";this.currentPage=1,this.lastPage=1,this.setOptions(c),this.initialized=!0},setOptions:function(b){this.options=a.extend({},this.options||a.fn.bootstrapPaginator.defaults,b),this.totalPages=parseInt(this.options.totalPages,10),this.numberOfPages=parseInt(this.options.numberOfPages,10),b&&"undefined"!=typeof b.currentPage&&this.setCurrentPage(b.currentPage),this.listen(),this.render(),this.initialized||this.lastPage===this.currentPage||this.$element.trigger("page-changed",[this.lastPage,this.currentPage])},listen:function(){this.$element.off("page-clicked"),this.$element.off("page-changed"),"function"==typeof this.options.onPageClicked&&this.$element.on("page-clicked",this.options.onPageClicked),"function"==typeof this.options.onPageChanged&&this.$element.on("page-changed",this.options.onPageChanged),this.$element.on("page-clicked",this.onPageClicked)},destroy:function(){this.$element.off("page-clicked"),this.$element.off("page-changed"),this.$element.removeData("bootstrapPaginator"),this.$element.empty()},show:function(a){this.setCurrentPage(a),this.render(),this.lastPage!==this.currentPage&&this.$element.trigger("page-changed",[this.lastPage,this.currentPage])},showNext:function(){var a=this.getPages();a.next&&this.show(a.next)},showPrevious:function(){var a=this.getPages();a.prev&&this.show(a.prev)},showFirst:function(){var a=this.getPages();a.first&&this.show(a.first)},showLast:function(){var a=this.getPages();a.last&&this.show(a.last)},onPageItemClicked:function(a){var b=a.data.type,c=a.data.page;this.$element.trigger("page-clicked",[a,b,c])},onPageClicked:function(b,c,d,e){var f=a(b.currentTarget);switch(d){case"first":f.bootstrapPaginator("showFirst");break;case"prev":f.bootstrapPaginator("showPrevious");break;case"next":f.bootstrapPaginator("showNext");break;case"last":f.bootstrapPaginator("showLast");break;case"page":f.bootstrapPaginator("show",e)}},render:function(){var b=this.getValueFromOption(this.options.containerClass,this.$element),c=this.options.size||"normal",d=this.options.alignment||"left",e=this.getPages(),f=2===this.options.bootstrapMajorVersion?a("<ul></ul>"):this.$element,g=2===this.options.bootstrapMajorVersion?this.getValueFromOption(this.options.listContainerClass,f):null,h=null,i=null,j=null,k=null,l=null,m=0;switch(c.toLowerCase()){case"large":case"small":case"mini":this.$element.addClass(a.fn.bootstrapPaginator.sizeArray[this.options.bootstrapMajorVersion][c.toLowerCase()])}if(2===this.options.bootstrapMajorVersion)switch(d.toLowerCase()){case"center":this.$element.addClass("pagination-centered");break;case"right":this.$element.addClass("pagination-right")}for(this.$element.addClass(b),this.$element.empty(),2===this.options.bootstrapMajorVersion&&(this.$element.append(f),f.addClass(g)),this.pageRef=[],e.first&&(h=this.buildPageItem("first",e.first),h&&f.append(h)),e.prev&&(i=this.buildPageItem("prev",e.prev),i&&f.append(i)),m=0;m<e.length;m+=1)l=this.buildPageItem("page",e[m]),l&&f.append(l);e.next&&(j=this.buildPageItem("next",e.next),j&&f.append(j)),e.last&&(k=this.buildPageItem("last",e.last),k&&f.append(k))},buildPageItem:function(b,c){var d=a("<li></li>"),e=a("<a></a>"),f="",g="",h=this.options.itemContainerClass(b,c,this.currentPage),i=this.getValueFromOption(this.options.itemContentClass,b,c,this.currentPage),j=null;switch(b){case"first":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage);break;case"last":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage);break;case"prev":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage);break;case"next":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage);break;case"page":if(!this.getValueFromOption(this.options.shouldShowPage,b,c,this.currentPage))return;f=this.options.itemTexts(b,c,this.currentPage),g=this.options.tooltipTitles(b,c,this.currentPage)}return d.addClass(h).append(e),e.addClass(i).html(f).on("click",null,{type:b,page:c},a.proxy(this.onPageItemClicked,this)),this.options.pageUrl&&e.attr("href",this.getValueFromOption(this.options.pageUrl,b,c,this.currentPage)),this.options.useBootstrapTooltip?(j=a.extend({},this.options.bootstrapTooltipOptions,{title:g}),e.tooltip(j)):e.attr("title",g),d},setCurrentPage:function(a){(a>this.totalPages||1>a)&&(a=this.totalPages),this.lastPage=this.currentPage,this.currentPage=parseInt(a,10)},getPages:function(){var a=this.totalPages,b=this.currentPage-parseInt(this.numberOfPages/2),b=b+this.numberOfPages>a?a-this.numberOfPages+1:b,c=[],d=0,e=0;for(b=1>b?1:b,d=b,e=0;e<this.numberOfPages&&a>=d;d+=1,e+=1)c.push(d);return c.first=1,c.prev=this.currentPage>1?this.currentPage-1:1,c.next=this.currentPage<a?this.currentPage+1:a,c.last=a,c.current=this.currentPage,c.total=a,c.numberOfPages=this.options.numberOfPages,c},getValueFromOption:function(a){var b=null,c=Array.prototype.slice.call(arguments,1);return b="function"==typeof a?a.apply(this,c):a}},c=a.fn.bootstrapPaginator,a.fn.bootstrapPaginator=function(c){var d=arguments,e=null;return a(this).each(function(f,g){var h=a(g),i=h.data("bootstrapPaginator"),j="object"!=typeof c?null:c;if(!i)return i=new b(this,j),h=a(i.$element),void h.data("bootstrapPaginator",i);if("string"==typeof c){if(!i[c])throw"Method "+c+" does not exist";e=i[c].apply(i,Array.prototype.slice.call(d,1))}else e=i.setOptions(c)}),e},a.fn.bootstrapPaginator.sizeArray={2:{large:"pagination-large",small:"pagination-small",mini:"pagination-mini"},3:{large:"pagination-lg",small:"pagination-sm",mini:""}},a.fn.bootstrapPaginator.defaults={containerClass:"",size:"normal",alignment:"left",bootstrapMajorVersion:2,listContainerClass:"",itemContainerClass:function(a,b,c){return b===c?"active":""},itemContentClass:function(){return""},currentPage:1,numberOfPages:5,totalPages:1,pageUrl:function(){return null},onPageClicked:null,onPageChanged:null,useBootstrapTooltip:!1,shouldShowPage:function(a,b,c){var d=!0;switch(a){case"first":d=1!==c;break;case"prev":d=1!==c;break;case"next":d=c!==this.totalPages;break;case"last":d=c!==this.totalPages;break;case"page":d=!0}return d},itemTexts:function(a,b){switch(a){case"first":return PT_CV_PAGINATION.first;case"prev":return PT_CV_PAGINATION.prev;case"next":return PT_CV_PAGINATION.next;case"last":return PT_CV_PAGINATION.last;case"page":return b}},tooltipTitles:function(a,b,c){switch(a){case"first":return PT_CV_PAGINATION.goto_first;case"prev":return PT_CV_PAGINATION.goto_prev;case"next":return PT_CV_PAGINATION.goto_next;case"last":return PT_CV_PAGINATION.goto_last;case"page":return b===c?PT_CV_PAGINATION.current_page+" "+b:PT_CV_PAGINATION.goto_page+" "+b}},bootstrapTooltipOptions:{animation:!0,html:!0,placement:"top",selector:!1,title:"",container:!1}},a.fn.bootstrapPaginator.Constructor=b}(window.jQuery),
function(a){"use strict";a.PT_CV_Public=a.PT_CV_Public||{},PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix;a.PT_CV_Public=function(b){this.options=a.extend({},b),"undefined"==typeof this.options.skip&&(this.pagination(),this.some_fixes())},a.PT_CV_Public.prototype={pagination:function(){var c=this;a("."+b+"pagination."+b+"ajax").each(function(){var b=a(this),d=a(this).attr("data-totalpages"),e=a(this).attr("data-currentpage");a(this).bootstrapPaginator({bootstrapMajorVersion:3,currentPage:e?parseInt(e):1,totalPages:d?parseInt(d):1,numberOfPages:PT_CV_PUBLIC.page_to_show,shouldShowPage:function(a,b,c){var d=null;if("undefined"!=typeof this&&"function"==typeof this.getPages){var e=this.getPages(),f=Array.isArray(e)?e.slice(0,parseInt(this.numberOfPages)):[];f.includes(e.first)&&"first"===a&&(d=!1),f.includes(e.last)&&"last"===a&&(d=!1)}if(null!==d)return d;var g=!0;switch(a){case"first":g=1!==c;break;case"prev":g=1!==c;break;case"next":g=c!==this.totalPages;break;case"last":g=c!==this.totalPages;break;case"page":g=!0}return g},itemContainerClass:function(a,b,c){var d="cv-pageitem-"+("page"===a?"number":a);return d+" "+(b===c?"active":"")},onPageClicked:function(a,d,e,f){c._setup_pagination(b,f,function(){PT_CV_PUBLIC.paging=0})}})})},_setup_pagination:function(a,c,d){var e=this;if(PT_CV_PUBLIC.paging=PT_CV_PUBLIC.paging||0,!PT_CV_PUBLIC.paging&&!a.data("disabled")){PT_CV_PUBLIC.paging=1;var f=a.next("."+b+"spinner"),g=a;a.parent("."+b+"pagination-wrapper").length&&(g=a.parent("."+b+"pagination-wrapper"));var h=g.closest("."+b+"wrapper").children("."+b+"view");if(h.hasClass(b+"timeline")&&(h=h.children(".tl-items").first()),g.find("."+b+"more").length>0){var i=h.children("."+b+"page").first();i.length>0&&(h=i)}e._get_page(a,c,f,h,d)}},_get_page:function(c,d,e,f,g){var h=this;d=parseInt(d);var i=h._active_page(d,f,g);if(i)return g&&"function"==typeof g&&g(),void a("body").trigger(b+"pagination-finished-simple");a("body").trigger(b+"before-pagination");var j={action:"pagination_request",sid:c.attr("data-sid"),unid:c.attr("data-unid"),iselementor:c.attr("data-iselementor"),isblock:c.attr("data-isblock"),postid:c.attr("data-postid"),page:d,lang:PT_CV_PUBLIC.lang,ajax_nonce:PT_CV_PUBLIC._nonce,custom_data:window.cvdata};a.ajax({type:"POST",url:PT_CV_PUBLIC.ajaxurl,data:j,beforeSend:function(){e.addClass("active")}}).done(function(c){e.removeClass("active"),c.indexOf(b+"no-post")<0&&f.append(c),h._active_page(d,f,g),g&&"function"==typeof g&&g(),a("body").trigger(b+"pagination-finished",[f,a(c)])})},_active_page:function(c,d){var e=!1,f='[data-id="'+b+"page-"+c+'"]';return d.children(f).length&&(e=!0,d.children().hide(),d.children(f).show(),this._update_url(c),window.cvp_pagination_no_scroll||d.hasClass("paging-noscroll")||a("html, body").animate({scrollTop:d.children(f).offset().top-160},1e3)),e},_get_paginated_url:function(a){return PT_CV_PAGINATION.links&&PT_CV_PAGINATION.links.page_n&&PT_CV_PAGINATION.links.page_n.replace("_CVNUMBER_",parseInt(a))},_update_url:function(a){var b=this;if(!PT_CV_PUBLIC.is_admin&&!window.cv_pagination_no_update_url){var c=!1;c=a>1?b._get_paginated_url(a):PT_CV_PAGINATION.links&&PT_CV_PAGINATION.links.page_1,c&&history.replaceState(null,null,c)}},some_fixes:function(){"function"==typeof a.CVP_LazyLoad&&"function"==typeof cvp_imagesLoaded&&a(window).cvp_imagesLoaded(function(){a(window).trigger("load")})}},a(function(){new a.PT_CV_Public})}(jQuery);
!function(a,b,c){function d(c,d,e){var f=b.createElement(c);return d&&(f.id=_+d),e&&(f.style.cssText=e),a(f)}function e(){return c.innerHeight?c.innerHeight:a(c).height()}function f(b,c){c!==Object(c)&&(c={}),this.cache={},this.el=b,this.value=function(b){var d;return void 0===this.cache[b]&&(d=a(this.el).attr("data-cvpbox-"+b),void 0!==d?this.cache[b]=d:void 0!==c[b]?this.cache[b]=c[b]:void 0!==Z[b]&&(this.cache[b]=Z[b])),this.cache[b]},this.get=function(a){var b=this.value(a);return"function"==typeof b?b.call(this.el,this):b}}function g(a){var b=A.length,c=(R+a)%b;return 0>c?b+c:c}function h(a,b){return Math.round((/%/.test(a)?("x"===b?B.width():e())/100:1)*parseInt(a,10))}function i(a,b){return a.get("photo")||a.get("photoRegex").test(b)}function j(a,b){return a.get("retinaUrl")&&c.devicePixelRatio>1?b.replace(a.get("photoRegex"),a.get("retinaSuffix")):b}function k(a){"contains"in t[0]&&!t[0].contains(a.target)&&a.target!==s[0]&&(a.stopPropagation(),t.trigger("focus"))}function l(a){l.str!==a&&(t.add(s).removeClass(l.str).addClass(a),l.str=a)}function m(){R=0,rel&&"nofollow"!==rel?(A=a("."+ab).filter(function(){var b=a.data(this,$),c=new f(this,b);return c.get("rel")===rel}),R=A.index(M.el),-1===R&&(A=A.add(M.el),R=A.length-1)):A=a(M.el)}function n(c){a(b).trigger(c),hb.triggerHandler(c)}function o(c){var e;V||(e=a(c).data("cvpcolorbox"),M=new f(c,e),rel=M.get("rel"),m(),T||(T=U=!0,l(M.get("className")),t.css({visibility:"hidden",display:"block"}),C=d(ib,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),v.css({width:"",height:""}).append(C),N=w.height()+z.height()+v.outerHeight(!0)-v.height(),O=x.width()+y.width()+v.outerWidth(!0)-v.width(),P=C.outerHeight(!0),Q=C.outerWidth(!0),M.w=h(M.get("initialWidth"),"x"),M.h=h(M.get("initialHeight"),"y"),C.css({width:"",height:M.h}),X.position(),n(bb),M.get("onOpen"),L.add(F).hide(),t.trigger("focus"),M.get("trapFocus")&&b.addEventListener&&(b.addEventListener("focus",k,!0),hb.one(fb,function(){b.removeEventListener("focus",k,!0)})),M.get("returnFocus")&&hb.one(fb,function(){a(M.el).trigger("focus")})),s.css({opacity:parseFloat(M.get("opacity")),cursor:M.get("overlayClose")?"pointer":"auto",visibility:"visible"}).show(),M.get("closeButton")?K.html(M.get("close")).appendTo(v):K.appendTo("<div/>"),r())}function p(){!t&&b.body&&(Y=!1,B=a(c),t=d(ib).attr({id:$,"class":a.support.opacity===!1?_+"IE":"",role:"dialog",tabindex:"-1"}).hide(),s=d(ib,"Overlay").hide(),E=a([d(ib,"LoadingOverlay")[0],d(ib,"LoadingGraphic")[0]]),u=d(ib,"Wrapper"),v=d(ib,"Content").append(F=d(ib,"Title"),G=d(ib,"Current"),J=a('<button type="button">previous</button>').attr({id:_+"Previous"}),I=a('<button type="button">next</button>').attr({id:_+"Next"}),H=a('<button type="button">slideshow</button>').attr({id:_+"Slideshow"}),E),K=a('<button type="button">close</button>').attr({id:_+"Close"}),u.append(d(ib).append(d(ib,"TopLeft"),w=d(ib,"TopCenter"),d(ib,"TopRight")),d(ib,!1,"clear:left").append(x=d(ib,"MiddleLeft"),v,y=d(ib,"MiddleRight")),d(ib,!1,"clear:left").append(d(ib,"BottomLeft"),z=d(ib,"BottomCenter"),d(ib,"BottomRight"))).find("div div").css({"float":"left"}),D=d(ib,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),L=I.add(J).add(G).add(H),a(b.body).append(s,t.append(u,D)))}function q(){function c(a){a.which>1||a.shiftKey||a.altKey||a.metaKey||a.ctrlKey||(a.preventDefault(),o(this))}return t?(Y||(Y=!0,I.on("click",function(){X.next()}),J.on("click",function(){X.prev()}),K.on("click",function(){X.close()}),s.on("click",function(){M.get("overlayClose")&&X.close()}),a(b).on("keydown."+_,function(a){var b=a.keyCode;T&&M.get("escKey")&&27===b&&(a.preventDefault(),X.close()),T&&M.get("arrowKey")&&A[1]&&!a.altKey&&(37===b?(a.preventDefault(),J.trigger("click")):39===b&&(a.preventDefault(),I.trigger("click")))}),"function"==typeof a.fn.on?a(b).on("click."+_,"."+ab,c):a("."+ab).live("click."+_,c)),!0):!1}function r(){var e,f,g,k=X.prep,l=++jb;U=!0,S=!1,n(gb),n(cb),M.get("onLoad"),M.h=M.get("height")?h(M.get("height"),"y")-P-N:M.get("innerHeight")&&h(M.get("innerHeight"),"y"),M.w=M.get("width")?h(M.get("width"),"x")-Q-O:M.get("innerWidth")&&h(M.get("innerWidth"),"x"),M.mw=M.w,M.mh=M.h,M.get("maxWidth")&&(M.mw=h(M.get("maxWidth"),"x")-Q-O,M.mw=M.w&&M.w<M.mw?M.w:M.mw),M.get("maxHeight")&&(M.mh=h(M.get("maxHeight"),"y")-P-N,M.mh=M.h&&M.h<M.mh?M.h:M.mh),e=M.get("href"),W=setTimeout(function(){E.show()},100),M.get("inline")?(g=d(ib).hide().insertBefore(a(e)[0]),hb.one(gb,function(){g.replaceWith(C.children())}),k(a(e))):M.get("iframe")?k(" "):M.get("html")?k(M.get("html")):i(M,e)?(e=j(M,e),S=b.createElement("img"),a(S).addClass(_+"Photo").on("error",function(){k(d(ib,"Error").html(M.get("imgError")))}).one("load",function(){var b;l===jb&&(a.each(["alt","longdesc","aria-describedby"],function(b,c){var d=a(M.el).attr(c)||a(M.el).attr("data-"+c);d&&S.setAttribute(c,d)}),M.get("retinaImage")&&c.devicePixelRatio>1&&(S.height=S.height/c.devicePixelRatio,S.width=S.width/c.devicePixelRatio),M.get("scalePhotos")&&(f=function(){S.height-=S.height*b,S.width-=S.width*b},M.mw&&S.width>M.mw&&(b=(S.width-M.mw)/S.width,f()),M.mh&&S.height>M.mh&&(b=(S.height-M.mh)/S.height,f())),M.h&&(S.style.marginTop=Math.max(M.mh-S.height,0)/2+"px"),A[1]&&(M.get("loop")||A[R+1])&&(S.style.cursor="pointer",S.onclick=function(){X.next()}),S.style.width=S.width+"px",S.style.height=S.height+"px",setTimeout(function(){k(S)},1))}),setTimeout(function(){S.src=e},1)):e&&D.load(e,M.get("data"),function(b,c){l===jb&&k("error"===c?d(ib,"Error").html(M.get("xhrError")):a(this).contents())})}var s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"{current} / {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return a(this).attr("href")},title:function(){return this.title}},$="cvpcolorbox",_="cvpbox",ab=_+"Element",bb=_+"_open",cb=_+"_load",db=_+"_complete",eb=_+"_cleanup",fb=_+"_closed",gb=_+"_purge",hb=a("<a/>"),ib="div",jb=0,kb={},lb=function(){function a(){clearTimeout(g)}function b(){(M.get("loop")||A[R+1])&&(a(),g=setTimeout(X.next,M.get("slideshowSpeed")))}function c(){H.html(M.get("slideshowStop")).off(i).one(i,d),hb.on(db,b).on(cb,a),t.removeClass(h+"off").addClass(h+"on")}function d(){a(),hb.off(db,b).off(cb,a),H.html(M.get("slideshowStart")).off(i).one(i,function(){X.next(),c()}),t.removeClass(h+"on").addClass(h+"off")}function e(){f=!1,H.hide(),a(),hb.off(db,b).off(cb,a),t.removeClass(h+"off "+h+"on")}var f,g,h=_+"Slideshow_",i="click."+_;return function(){f?M.get("slideshow")||(hb.off(eb,e),e()):M.get("slideshow")&&A[1]&&(f=!0,hb.one(eb,e),M.get("slideshowAuto")?c():d(),H.show())}}();a.cvpcolorbox||(a(p),X=a.fn[$]=a[$]=function(b,c){var d,e=this;if(b=b||{},"function"==typeof e)e=a("<a/>"),b.open=!0;else if(!e[0])return e;return e[0]?(p(),q()&&(c&&(b.onComplete=c),e.each(function(){var c=a.data(this,$)||{};a.data(this,$,a.extend(c,b))}).addClass(ab),d=new f(e[0],b),d.get("open")&&o(e[0])),e):e},X.position=function(b,c){function d(){w[0].style.width=z[0].style.width=v[0].style.width=parseInt(t[0].style.width,10)-O+"px",v[0].style.height=x[0].style.height=y[0].style.height=parseInt(t[0].style.height,10)-N+"px"}var f,g,i,j=0,k=0,l=t.offset();if(B.off("resize."+_),t.css({top:-9e4,left:-9e4}),g=B.scrollTop(),i=B.scrollLeft(),M.get("fixed")?(l.top-=g,l.left-=i,t.css({position:"fixed"})):(j=g,k=i,t.css({position:"absolute"})),k+=M.get("right")!==!1?Math.max(B.width()-M.w-Q-O-h(M.get("right"),"x"),0):M.get("left")!==!1?h(M.get("left"),"x"):Math.round(Math.max(B.width()-M.w-Q-O,0)/2),j+=M.get("bottom")!==!1?Math.max(e()-M.h-P-N-h(M.get("bottom"),"y"),0):M.get("top")!==!1?h(M.get("top"),"y"):Math.round(Math.max(e()-M.h-P-N,0)/2),t.css({top:l.top,left:l.left,visibility:"visible"}),u[0].style.width=u[0].style.height="9999px",f={width:M.w+Q+O,height:M.h+P+N,top:j,left:k},b){var m=0;a.each(f,function(a){return f[a]!==kb[a]?void(m=b):void 0}),b=m}kb=f,b||t.css(f),t.dequeue().animate(f,{duration:b||0,complete:function(){d(),U=!1,u[0].style.width=M.w+Q+O+"px",u[0].style.height=M.h+P+N+"px",M.get("reposition")&&setTimeout(function(){B.on("resize."+_,X.position)},1),c&&c()},step:d})},X.resize=function(a){var b;T&&(a=a||{},a.width&&(M.w=h(a.width,"x")-Q-O),a.innerWidth&&(M.w=h(a.innerWidth,"x")),C.css({width:M.w}),a.height&&(M.h=h(a.height,"y")-P-N),a.innerHeight&&(M.h=h(a.innerHeight,"y")),a.innerHeight||a.height||(b=C.scrollTop(),C.css({height:"auto"}),M.h=C.height()),C.css({height:M.h}),b&&C.scrollTop(b),X.position("none"===M.get("transition")?0:M.get("speed")))},X.prep=function(c){function e(){return M.w=M.w||C.width(),M.w=M.mw&&M.mw<M.w?M.mw:M.w,M.w}function h(){return M.h=M.h||C.height(),M.h=M.mh&&M.mh<M.h?M.mh:M.h,M.h}if(T){var k,m="none"===M.get("transition")?0:M.get("speed");C.remove(),C=d(ib,"LoadedContent").append(c),C.hide().appendTo(D.show()).css({width:e(),overflow:M.get("scrolling")?"auto":"hidden"}).css({height:h()}).prependTo(v),D.hide(),a(S).css({"float":"none"}),l(M.get("className")),k=function(){function c(){a.support.opacity===!1&&t[0].style.removeAttribute("filter")}var d,e,h=A.length;T&&(e=function(){clearTimeout(W),E.hide(),n(db),M.get("onComplete")},F.html(M.get("title")).show(),C.show(),h>1?("string"==typeof M.get("current")&&G.html(M.get("current").replace("{current}",R+1).replace("{total}",h)).show(),I[M.get("loop")||h-1>R?"show":"hide"]().html(M.get("next")),J[M.get("loop")||R?"show":"hide"]().html(M.get("previous")),lb(),M.get("preloading")&&a.each([g(-1),g(1)],function(){var c,d=A[this],e=new f(d,a.data(d,$)),g=e.get("href");g&&i(e,g)&&(g=j(e,g),c=b.createElement("img"),c.src=g)})):L.hide(),M.get("iframe")?(d=b.createElement("iframe"),"frameBorder"in d&&(d.frameBorder=0),"allowTransparency"in d&&(d.allowTransparency="true"),M.get("scrolling")||(d.scrolling="no"),a(d).attr({src:M.get("href"),name:(new Date).getTime(),id:_+"Iframe","class":_+"Iframe",allowFullScreen:!0}).one("load",e).appendTo(C),hb.one(gb,function(){d.src="//about:blank"}),M.get("fastIframe")&&a(d).trigger("load")):e(),"fade"===M.get("transition")?t.fadeTo(m,1,c):c())},"fade"===M.get("transition")?t.fadeTo(m,0,function(){X.position(0,k)}):X.position(m,k)}},X.relaunch=function(){R=g(0),o(A[R])},X.next=function(){!U&&A[1]&&(M.get("loop")||A[R+1])&&(R=g(1),o(A[R]))},X.prev=function(){!U&&A[1]&&(M.get("loop")||R)&&(R=g(-1),o(A[R]))},X.close=function(){T&&!V&&(V=!0,T=!1,n(eb),M.get("onCleanup"),B.off("."+_),s.fadeTo(M.get("fadeOut")||0,0),t.stop().fadeTo(M.get("fadeOut")||0,0,function(){t.add(s).css({opacity:1,cursor:"auto"}).hide(),n(gb),C.remove(),setTimeout(function(){V=!1,n(fb),M.get("onClosed")},1)}))},X.remove=function(){t&&(t.stop(),a.cvpcolorbox.close(),t.stop().remove(),s.remove(),V=!1,t=null,a("."+ab).removeData($).removeClass(ab),a(b).off("click."+_))},X.element=function(){return a(M.el)},X.settings=Z)}(jQuery,document,window),
function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(a){for(var b,c;a.length&&a[0]!==document;){if(b=a.css("position"),("absolute"===b||"relative"===b||"fixed"===b)&&(c=parseInt(a.css("zIndex"),10),!isNaN(c)&&0!==c))return c;a=a.parent()}return 0}function c(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="jqui-datepicker-div",this._inlineClass="jqui-datepicker-inline",this._appendClass="jqui-datepicker-append",this._triggerClass="jqui-datepicker-trigger",this._dialogClass="jqui-datepicker-dialog",this._disableClass="jqui-datepicker-disabled",this._unselectableClass="jqui-datepicker-unselectable",this._currentClass="jqui-datepicker-current-day",this._dayOverClass="jqui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},a.extend(this._defaults,this.regional[""]),this.regional.en=a.extend(!0,{},this.regional[""]),this.regional["en-US"]=a.extend(!0,{},this.regional.en),this.dpDiv=d(a("<div id='"+this._mainDivId+"' class='jqui-datepicker jqui-widget jqui-widget-content jqui-helper-clearfix jqui-corner-all'></div>"))}function d(b){var c="button, .jqui-datepicker-prev, .jqui-datepicker-next, .jqui-datepicker-calendar td a";return b.on("mouseout",c,function(){a(this).removeClass("jqui-state-hover"),-1!==this.className.indexOf("jqui-datepicker-prev")&&a(this).removeClass("jqui-datepicker-prev-hover"),-1!==this.className.indexOf("jqui-datepicker-next")&&a(this).removeClass("jqui-datepicker-next-hover")}).on("mouseover",c,e)}function e(){a.cvp_datepicker._isDisabledDatepicker(g.inline?g.dpDiv.parent()[0]:g.input[0])||(a(this).parents(".jqui-datepicker-calendar").find("a").removeClass("jqui-state-hover"),a(this).addClass("jqui-state-hover"),-1!==this.className.indexOf("jqui-datepicker-prev")&&a(this).addClass("jqui-datepicker-prev-hover"),-1!==this.className.indexOf("jqui-datepicker-next")&&a(this).addClass("jqui-datepicker-next-hover"))}function f(b,c){a.extend(b,c);for(var d in c)null==c[d]&&(b[d]=c[d]);return b}a.ui=a.ui||{};a.ui.version="1.13.3",a.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};
a.extend(a.ui,{datepicker:{version:"1.13.3"}});var g;a.extend(c.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return f(this._defaults,a||{}),this},_attachDatepicker:function(b,c){var d,e,f;d=b.nodeName.toLowerCase(),e="div"===d||"span"===d,b.id||(this.uuid+=1,b.id="dp"+this.uuid),f=this._newInst(a(b),e),f.settings=a.extend({},c||{}),"input"===d?this._connectDatepicker(b,f):e&&this._inlineDatepicker(b,f)},_newInst:function(b,c){var e=b[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:e,input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:c?d(a("<div class='"+this._inlineClass+" jqui-datepicker jqui-widget jqui-widget-content jqui-helper-clearfix jqui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(b,c){var d=a(b);c.append=a([]),c.trigger=a([]),d.hasClass(this.markerClassName)||(this._attachments(d,c),d.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(c),a.data(b,"datepicker",c),c.settings.disabled&&this._disableDatepicker(b))},_attachments:function(b,c){var d,e,f,g=this._get(c,"appendText"),h=this._get(c,"isRTL");c.append&&c.append.remove(),g&&(c.append=a("<span>").addClass(this._appendClass).text(g),b[h?"before":"after"](c.append)),b.off("focus",this._showDatepicker),c.trigger&&c.trigger.remove(),d=this._get(c,"showOn"),("focus"===d||"both"===d)&&b.on("focus",this._showDatepicker),("button"===d||"both"===d)&&(e=this._get(c,"buttonText"),f=this._get(c,"buttonImage"),this._get(c,"buttonImageOnly")?c.trigger=a("<img>").addClass(this._triggerClass).attr({src:f,alt:e,title:e}):(c.trigger=a("<button type='button'>").addClass(this._triggerClass),f?c.trigger.html(a("<img>").attr({src:f,alt:e,title:e})):c.trigger.text(e)),b[h?"before":"after"](c.trigger),c.trigger.on("click",function(){return a.cvp_datepicker._datepickerShowing&&a.cvp_datepicker._lastInput===b[0]?a.cvp_datepicker._hideDatepicker():a.cvp_datepicker._datepickerShowing&&a.cvp_datepicker._lastInput!==b[0]?(a.cvp_datepicker._hideDatepicker(),a.cvp_datepicker._showDatepicker(b[0])):a.cvp_datepicker._showDatepicker(b[0]),!1}))},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,c,d,e,f=new Date(2009,11,20),g=this._get(a,"dateFormat");g.match(/[DM]/)&&(b=function(a){for(c=0,d=0,e=0;e<a.length;e++)a[e].length>c&&(c=a[e].length,d=e);return d},f.setMonth(b(this._get(a,g.match(/MM/)?"monthNames":"monthNamesShort"))),f.setDate(b(this._get(a,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())),a.input.attr("size",this._formatDate(a,f).length)}},_inlineDatepicker:function(b,c){var d=a(b);d.hasClass(this.markerClassName)||(d.addClass(this.markerClassName).append(c.dpDiv),a.data(b,"datepicker",c),this._setDate(c,this._getDefaultDate(c),!0),this._updateDatepicker(c),this._updateAlternate(c),c.settings.disabled&&this._disableDatepicker(b),c.dpDiv.css("display","block"))},_dialogDatepicker:function(b,c,d,e,g){var h,i,j,k,l,m=this._dialogInst;return m||(this.uuid+=1,h="dp"+this.uuid,this._dialogInput=a("<input type='text' id='"+h+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),a("body").append(this._dialogInput),m=this._dialogInst=this._newInst(this._dialogInput,!1),m.settings={},a.data(this._dialogInput[0],"datepicker",m)),f(m.settings,e||{}),c=c&&c.constructor===Date?this._formatDate(m,c):c,this._dialogInput.val(c),this._pos=g?g.length?g:[g.pageX,g.pageY]:null,this._pos||(i=document.documentElement.clientWidth,j=document.documentElement.clientHeight,k=document.documentElement.scrollLeft||document.body.scrollLeft,l=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[i/2-100+k,j/2-150+l]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),m.settings.onSelect=d,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),a.blockUI&&a.blockUI(this.dpDiv),a.data(this._dialogInput[0],"datepicker",m),this},_destroyDatepicker:function(b){var c,d=a(b),e=a.data(b,"datepicker");d.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),a.removeData(b,"datepicker"),"input"===c?(e.append.remove(),e.trigger.remove(),d.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===c||"span"===c)&&d.removeClass(this.markerClassName).empty(),g===e&&(g=null,this._curInst=null))},_enableDatepicker:function(b){var c,d,e=a(b),f=a.data(b,"datepicker");e.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),"input"===c?(b.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===c||"span"===c)&&(d=e.children("."+this._inlineClass),d.children().removeClass("jqui-state-disabled"),d.find("select.jqui-datepicker-month, select.jqui-datepicker-year").prop("disabled",!1)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}))},_disableDatepicker:function(b){var c,d,e=a(b),f=a.data(b,"datepicker");e.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),"input"===c?(b.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===c||"span"===c)&&(d=e.children("."+this._inlineClass),d.children().addClass("jqui-state-disabled"),d.find("select.jqui-datepicker-month, select.jqui-datepicker-year").prop("disabled",!0)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}),this._disabledInputs[this._disabledInputs.length]=b)},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]===a)return!0;return!1},_getInst:function(b){try{return a.data(b,"datepicker")}catch(c){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(b,c,d){var e,g,h,i,j=this._getInst(b);return 2===arguments.length&&"string"==typeof c?"defaults"===c?a.extend({},a.cvp_datepicker._defaults):j?"all"===c?a.extend({},j.settings):this._get(j,c):null:(e=c||{},"string"==typeof c&&(e={},e[c]=d),void(j&&(this._curInst===j&&this._hideDatepicker(),g=this._getDateDatepicker(b,!0),h=this._getMinMaxDate(j,"min"),i=this._getMinMaxDate(j,"max"),f(j.settings,e),null!==h&&void 0!==e.dateFormat&&void 0===e.minDate&&(j.settings.minDate=this._formatDate(j,h)),null!==i&&void 0!==e.dateFormat&&void 0===e.maxDate&&(j.settings.maxDate=this._formatDate(j,i)),"disabled"in e&&(e.disabled?this._disableDatepicker(b):this._enableDatepicker(b)),this._attachments(a(b),j),this._autoSize(j),this._setDate(j,g),this._updateAlternate(j),this._updateDatepicker(j))))},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){var b=this._getInst(a);b&&this._updateDatepicker(b)},_setDateDatepicker:function(a,b){var c=this._getInst(a);c&&(this._setDate(c,b),this._updateDatepicker(c),this._updateAlternate(c))},_getDateDatepicker:function(a,b){var c=this._getInst(a);return c&&!c.inline&&this._setDateFromField(c,b),c?this._getDate(c):null},_doKeyDown:function(b){var c,d,e,f=a.cvp_datepicker._getInst(b.target),g=!0,h=f.dpDiv.is(".jqui-datepicker-rtl");if(f._keyEvent=!0,a.cvp_datepicker._datepickerShowing)switch(b.keyCode){case 9:a.cvp_datepicker._hideDatepicker(),g=!1;break;case 13:return e=a("td."+a.cvp_datepicker._dayOverClass+":not(."+a.cvp_datepicker._currentClass+")",f.dpDiv),e[0]&&a.cvp_datepicker._selectDay(b.target,f.selectedMonth,f.selectedYear,e[0]),c=a.cvp_datepicker._get(f,"onSelect"),c?(d=a.cvp_datepicker._formatDate(f),c.apply(f.input?f.input[0]:null,[d,f])):a.cvp_datepicker._hideDatepicker(),!1;case 27:a.cvp_datepicker._hideDatepicker();break;case 33:a.cvp_datepicker._adjustDate(b.target,b.ctrlKey?-a.cvp_datepicker._get(f,"stepBigMonths"):-a.cvp_datepicker._get(f,"stepMonths"),"M");break;case 34:a.cvp_datepicker._adjustDate(b.target,b.ctrlKey?+a.cvp_datepicker._get(f,"stepBigMonths"):+a.cvp_datepicker._get(f,"stepMonths"),"M");break;case 35:(b.ctrlKey||b.metaKey)&&a.cvp_datepicker._clearDate(b.target),g=b.ctrlKey||b.metaKey;break;case 36:(b.ctrlKey||b.metaKey)&&a.cvp_datepicker._gotoToday(b.target),g=b.ctrlKey||b.metaKey;break;case 37:(b.ctrlKey||b.metaKey)&&a.cvp_datepicker._adjustDate(b.target,h?1:-1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.cvp_datepicker._adjustDate(b.target,b.ctrlKey?-a.cvp_datepicker._get(f,"stepBigMonths"):-a.cvp_datepicker._get(f,"stepMonths"),"M");break;case 38:(b.ctrlKey||b.metaKey)&&a.cvp_datepicker._adjustDate(b.target,-7,"D"),g=b.ctrlKey||b.metaKey;break;case 39:(b.ctrlKey||b.metaKey)&&a.cvp_datepicker._adjustDate(b.target,h?-1:1,"D"),g=b.ctrlKey||b.metaKey,b.originalEvent.altKey&&a.cvp_datepicker._adjustDate(b.target,b.ctrlKey?+a.cvp_datepicker._get(f,"stepBigMonths"):+a.cvp_datepicker._get(f,"stepMonths"),"M");break;case 40:(b.ctrlKey||b.metaKey)&&a.cvp_datepicker._adjustDate(b.target,7,"D"),g=b.ctrlKey||b.metaKey;break;default:g=!1}else 36===b.keyCode&&b.ctrlKey?a.cvp_datepicker._showDatepicker(this):g=!1;g&&(b.preventDefault(),b.stopPropagation())},_doKeyPress:function(b){var c,d,e=a.cvp_datepicker._getInst(b.target);return a.cvp_datepicker._get(e,"constrainInput")?(c=a.cvp_datepicker._possibleChars(a.cvp_datepicker._get(e,"dateFormat")),d=String.fromCharCode(null==b.charCode?b.keyCode:b.charCode),b.ctrlKey||b.metaKey||" ">d||!c||c.indexOf(d)>-1):void 0},_doKeyUp:function(b){var c,d=a.cvp_datepicker._getInst(b.target);if(d.input.val()!==d.lastVal)try{c=a.cvp_datepicker.parseDate(a.cvp_datepicker._get(d,"dateFormat"),d.input?d.input.val():null,a.cvp_datepicker._getFormatConfig(d)),c&&(a.cvp_datepicker._setDateFromField(d),a.cvp_datepicker._updateAlternate(d),a.cvp_datepicker._updateDatepicker(d))}catch(e){}return!0},_showDatepicker:function(c){if(c=c.target||c,"input"!==c.nodeName.toLowerCase()&&(c=a("input",c.parentNode)[0]),!a.cvp_datepicker._isDisabledDatepicker(c)&&a.cvp_datepicker._lastInput!==c){var d,e,g,h,i,j,k;d=a.cvp_datepicker._getInst(c),a.cvp_datepicker._curInst&&a.cvp_datepicker._curInst!==d&&(a.cvp_datepicker._curInst.dpDiv.stop(!0,!0),d&&a.cvp_datepicker._datepickerShowing&&a.cvp_datepicker._hideDatepicker(a.cvp_datepicker._curInst.input[0])),e=a.cvp_datepicker._get(d,"beforeShow"),g=e?e.apply(c,[c,d]):{},g!==!1&&(f(d.settings,g),d.lastVal=null,a.cvp_datepicker._lastInput=c,a.cvp_datepicker._setDateFromField(d),a.cvp_datepicker._inDialog&&(c.value=""),a.cvp_datepicker._pos||(a.cvp_datepicker._pos=a.cvp_datepicker._findPos(c),a.cvp_datepicker._pos[1]+=c.offsetHeight),h=!1,a(c).parents().each(function(){return h|="fixed"===a(this).css("position"),!h}),i={left:a.cvp_datepicker._pos[0],top:a.cvp_datepicker._pos[1]},a.cvp_datepicker._pos=null,d.dpDiv.empty(),d.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),a.cvp_datepicker._updateDatepicker(d),i=a.cvp_datepicker._checkOffset(d,i,h),d.dpDiv.css({position:a.cvp_datepicker._inDialog&&a.blockUI?"static":h?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"}),d.inline||(j=a.cvp_datepicker._get(d,"showAnim"),k=a.cvp_datepicker._get(d,"duration"),d.dpDiv.css("z-index",b(a(c))+1),a.cvp_datepicker._datepickerShowing=!0,a.effects&&a.effects.effect[j]?d.dpDiv.show(j,a.cvp_datepicker._get(d,"showOptions"),k):d.dpDiv[j||"show"](j?k:null),a.cvp_datepicker._shouldFocusInput(d)&&d.input.trigger("focus"),a.cvp_datepicker._curInst=d))}},_updateDatepicker:function(b){this.maxRows=4,g=b,b.dpDiv.empty().append(this._generateHTML(b)),this._attachHandlers(b);var c,d=this._getNumberOfMonths(b),f=d[1],h=17,i=b.dpDiv.find("."+this._dayOverClass+" a"),j=a.cvp_datepicker._get(b,"onUpdateDatepicker");i.length>0&&e.apply(i.get(0)),b.dpDiv.removeClass("jqui-datepicker-multi-2 jqui-datepicker-multi-3 jqui-datepicker-multi-4").width(""),f>1&&b.dpDiv.addClass("jqui-datepicker-multi-"+f).css("width",h*f+"em"),b.dpDiv[(1!==d[0]||1!==d[1]?"add":"remove")+"Class"]("jqui-datepicker-multi"),b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("jqui-datepicker-rtl"),b===a.cvp_datepicker._curInst&&a.cvp_datepicker._datepickerShowing&&a.cvp_datepicker._shouldFocusInput(b)&&b.input.trigger("focus"),b.yearshtml&&(c=b.yearshtml,setTimeout(function(){c===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.jqui-datepicker-year").first().replaceWith(b.yearshtml),c=b.yearshtml=null},0)),j&&j.apply(b.input?b.input[0]:null,[b])},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(b,c,d){var e=b.dpDiv.outerWidth(),f=b.dpDiv.outerHeight(),g=b.input?b.input.outerWidth():0,h=b.input?b.input.outerHeight():0,i=document.documentElement.clientWidth+(d?0:a(document).scrollLeft()),j=document.documentElement.clientHeight+(d?0:a(document).scrollTop());return c.left-=this._get(b,"isRTL")?e-g:0,c.left-=d&&c.left===b.input.offset().left?a(document).scrollLeft():0,c.top-=d&&c.top===b.input.offset().top+h?a(document).scrollTop():0,c.left-=Math.min(c.left,c.left+e>i&&i>e?Math.abs(c.left+e-i):0),c.top-=Math.min(c.top,c.top+f>j&&j>f?Math.abs(f+h):0),c},_findPos:function(b){for(var c,d=this._getInst(b),e=this._get(d,"isRTL");b&&("hidden"===b.type||1!==b.nodeType||a.expr.pseudos.hidden(b));)b=b[e?"previousSibling":"nextSibling"];return c=a(b).offset(),[c.left,c.top]},_hideDatepicker:function(b){var c,d,e,f,g=this._curInst;!g||b&&g!==a.data(b,"datepicker")||this._datepickerShowing&&(c=this._get(g,"showAnim"),d=this._get(g,"duration"),e=function(){a.cvp_datepicker._tidyDialog(g)},a.effects&&(a.effects.effect[c]||a.effects[c])?g.dpDiv.hide(c,a.cvp_datepicker._get(g,"showOptions"),d,e):g.dpDiv["slideDown"===c?"slideUp":"fadeIn"===c?"fadeOut":"hide"](c?d:null,e),c||e(),this._datepickerShowing=!1,f=this._get(g,"onClose"),f&&f.apply(g.input?g.input[0]:null,[g.input?g.input.val():"",g]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).off(".jqui-datepicker-calendar")},_checkExternalClick:function(b){if(a.cvp_datepicker._curInst){var c=a(b.target),d=a.cvp_datepicker._getInst(c[0]);(c[0].id!==a.cvp_datepicker._mainDivId&&0===c.parents("#"+a.cvp_datepicker._mainDivId).length&&!c.hasClass(a.cvp_datepicker.markerClassName)&&!c.closest("."+a.cvp_datepicker._triggerClass).length&&a.cvp_datepicker._datepickerShowing&&(!a.cvp_datepicker._inDialog||!a.blockUI)||c.hasClass(a.cvp_datepicker.markerClassName)&&a.cvp_datepicker._curInst!==d)&&a.cvp_datepicker._hideDatepicker()}},_adjustDate:function(b,c,d){var e=a(b),f=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(f,c,d),this._updateDatepicker(f))},_gotoToday:function(b){var c,d=a(b),e=this._getInst(d[0]);this._get(e,"gotoCurrent")&&e.currentDay?(e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear):(c=new Date,e.selectedDay=c.getDate(),e.drawMonth=e.selectedMonth=c.getMonth(),e.drawYear=e.selectedYear=c.getFullYear()),this._notifyChange(e),this._adjustDate(d)},_selectMonthYear:function(b,c,d){var e=a(b),f=this._getInst(e[0]);f["selected"+("M"===d?"Month":"Year")]=f["draw"+("M"===d?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(e)},_selectDay:function(b,c,d,e){var f,g=a(b);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(f=this._getInst(g[0]),f.selectedDay=f.currentDay=parseInt(a("a",e).attr("data-date")),f.selectedMonth=f.currentMonth=c,f.selectedYear=f.currentYear=d,this._selectDate(b,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(b){var c=a(b);this._selectDate(c,"")},_selectDate:function(b,c){var d,e=a(b),f=this._getInst(e[0]);c=null!=c?c:this._formatDate(f),f.input&&f.input.val(c),this._updateAlternate(f),d=this._get(f,"onSelect"),d?d.apply(f.input?f.input[0]:null,[c,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],"object"!=typeof f.input[0]&&f.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(b){var c,d,e,f=this._get(b,"altField");f&&(c=this._get(b,"altFormat")||this._get(b,"dateFormat"),d=this._getDate(b),e=this.formatDate(c,d,this._getFormatConfig(b)),a(document).find(f).val(e))},noWeekends:function(a){var b=a.getDay();return[b>0&&6>b,""]},iso8601Week:function(a){var b,c=new Date(a.getTime());return c.setDate(c.getDate()+4-(c.getDay()||7)),b=c.getTime(),c.setMonth(0),c.setDate(1),Math.floor(Math.round((b-c)/864e5)/7)+1},parseDate:function(b,c,d){if(null==b||null==c)throw"Invalid arguments";if(c="object"==typeof c?c.toString():c+"",""===c)return null;var e,f,g,h,i=0,j=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,k="string"!=typeof j?j:(new Date).getFullYear()%100+parseInt(j,10),l=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,m=(d?d.dayNames:null)||this._defaults.dayNames,n=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,o=(d?d.monthNames:null)||this._defaults.monthNames,p=-1,q=-1,r=-1,s=-1,t=!1,u=function(a){var c=e+1<b.length&&b.charAt(e+1)===a;return c&&e++,c},v=function(a){var b=u(a),d="@"===a?14:"!"===a?20:"y"===a&&b?4:"o"===a?3:2,e="y"===a?d:1,f=new RegExp("^\\d{"+e+","+d+"}"),g=c.substring(i).match(f);if(!g)throw"Missing number at position "+i;return i+=g[0].length,parseInt(g[0],10)},w=function(b,d,e){var f=-1,g=a.map(u(b)?e:d,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)});if(a.each(g,function(a,b){var d=b[1];return c.substr(i,d.length).toLowerCase()===d.toLowerCase()?(f=b[0],i+=d.length,!1):void 0}),-1!==f)return f+1;throw"Unknown name at position "+i},x=function(){if(c.charAt(i)!==b.charAt(e))throw"Unexpected literal at position "+i;i++};for(e=0;e<b.length;e++)if(t)"'"!==b.charAt(e)||u("'")?x():t=!1;else switch(b.charAt(e)){case"d":r=v("d");break;case"D":w("D",l,m);break;case"o":s=v("o");break;case"m":q=v("m");break;case"M":q=w("M",n,o);break;case"y":p=v("y");break;case"@":h=new Date(v("@")),p=h.getFullYear(),q=h.getMonth()+1,r=h.getDate();break;case"!":h=new Date((v("!")-this._ticksTo1970)/1e4),p=h.getFullYear(),q=h.getMonth()+1,r=h.getDate();break;case"'":u("'")?x():t=!0;break;default:x()}if(i<c.length&&(g=c.substr(i),!/^\s+/.test(g)))throw"Extra/unparsed characters found in date: "+g;if(-1===p?p=(new Date).getFullYear():100>p&&(p+=(new Date).getFullYear()-(new Date).getFullYear()%100+(k>=p?0:-100)),s>-1)for(q=1,r=s;;){if(f=this._getDaysInMonth(p,q-1),f>=r)break;q++,r-=f}if(h=this._daylightSavingAdjust(new Date(p,q-1,r)),h.getFullYear()!==p||h.getMonth()+1!==q||h.getDate()!==r)throw"Invalid date";return h},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d,e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=function(b){var c=d+1<a.length&&a.charAt(d+1)===b;return c&&d++,c},j=function(a,b,c){var d=""+b;if(i(a))for(;d.length<c;)d="0"+d;return d},k=function(a,b,c,d){return i(a)?d[b]:c[b]},l="",m=!1;if(b)for(d=0;d<a.length;d++)if(m)"'"!==a.charAt(d)||i("'")?l+=a.charAt(d):m=!1;else switch(a.charAt(d)){case"d":l+=j("d",b.getDate(),2);break;case"D":l+=k("D",b.getDay(),e,f);break;case"o":l+=j("o",Math.round((new Date(b.getFullYear(),b.getMonth(),b.getDate()).getTime()-new Date(b.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=j("m",b.getMonth()+1,2);break;case"M":l+=k("M",b.getMonth(),g,h);break;case"y":l+=i("y")?b.getFullYear():(b.getFullYear()%100<10?"0":"")+b.getFullYear()%100;break;case"@":l+=b.getTime();break;case"!":l+=1e4*b.getTime()+this._ticksTo1970;break;case"'":i("'")?l+="'":m=!0;break;default:l+=a.charAt(d)}return l},_possibleChars:function(a){var b,c="",d=!1,e=function(c){var d=b+1<a.length&&a.charAt(b+1)===c;return d&&b++,d};for(b=0;b<a.length;b++)if(d)"'"!==a.charAt(b)||e("'")?c+=a.charAt(b):d=!1;else switch(a.charAt(b)){case"d":case"m":case"y":case"@":c+="0123456789";break;case"D":case"M":return null;case"'":e("'")?c+="'":d=!0;break;default:c+=a.charAt(b)}return c},_get:function(a,b){return void 0!==a.settings[b]?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!==a.lastVal){var c=this._get(a,"dateFormat"),d=a.lastVal=a.input?a.input.val():null,e=this._getDefaultDate(a),f=e,g=this._getFormatConfig(a);try{f=this.parseDate(c,d,g)||e}catch(h){d=b?"":d}a.selectedDay=f.getDate(),a.drawMonth=a.selectedMonth=f.getMonth(),a.drawYear=a.selectedYear=f.getFullYear(),a.currentDay=d?f.getDate():0,a.currentMonth=d?f.getMonth():0,a.currentYear=d?f.getFullYear():0,this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(b,c,d){var e=function(a){var b=new Date;return b.setDate(b.getDate()+a),b},f=function(c){try{return a.cvp_datepicker.parseDate(a.cvp_datepicker._get(b,"dateFormat"),c,a.cvp_datepicker._getFormatConfig(b))}catch(d){}for(var e=(c.toLowerCase().match(/^c/)?a.cvp_datepicker._getDate(b):null)||new Date,f=e.getFullYear(),g=e.getMonth(),h=e.getDate(),i=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,j=i.exec(c);j;){switch(j[2]||"d"){case"d":case"D":h+=parseInt(j[1],10);break;case"w":case"W":h+=7*parseInt(j[1],10);break;case"m":case"M":g+=parseInt(j[1],10),h=Math.min(h,a.cvp_datepicker._getDaysInMonth(f,g));break;case"y":case"Y":f+=parseInt(j[1],10),h=Math.min(h,a.cvp_datepicker._getDaysInMonth(f,g))}j=i.exec(c)}return new Date(f,g,h)},g=null==c||""===c?d:"string"==typeof c?f(c):"number"==typeof c?isNaN(c)?d:e(c):new Date(c.getTime());return g=g&&"Invalid Date"===g.toString()?d:g,g&&(g.setHours(0),g.setMinutes(0),g.setSeconds(0),g.setMilliseconds(0)),this._daylightSavingAdjust(g)},_daylightSavingAdjust:function(a){return a?(a.setHours(a.getHours()>12?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),e===a.selectedMonth&&f===a.selectedYear||c||this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(b){var c=this._get(b,"stepMonths"),d="#"+b.id.replace(/\\\\/g,"\\");b.dpDiv.find("[data-handler]").map(function(){var b={prev:function(){a.cvp_datepicker._adjustDate(d,-c,"M")},next:function(){a.cvp_datepicker._adjustDate(d,+c,"M")},hide:function(){a.cvp_datepicker._hideDatepicker()},today:function(){a.cvp_datepicker._gotoToday(d)},selectDay:function(){return a.cvp_datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return a.cvp_datepicker._selectMonthYear(d,this,"M"),!1},selectYear:function(){return a.cvp_datepicker._selectMonthYear(d,this,"Y"),!1}};a(this).on(this.getAttribute("data-event"),b[this.getAttribute("data-handler")])})},_generateHTML:function(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P=new Date,Q=this._daylightSavingAdjust(new Date(P.getFullYear(),P.getMonth(),P.getDate())),R=this._get(b,"isRTL"),S=this._get(b,"showButtonPanel"),T=this._get(b,"hideIfNoPrevNext"),U=this._get(b,"navigationAsDateFormat"),V=this._getNumberOfMonths(b),W=this._get(b,"showCurrentAtPos"),X=this._get(b,"stepMonths"),Y=1!==V[0]||1!==V[1],Z=this._daylightSavingAdjust(b.currentDay?new Date(b.currentYear,b.currentMonth,b.currentDay):new Date(9999,9,9)),$=this._getMinMaxDate(b,"min"),_=this._getMinMaxDate(b,"max"),ab=b.drawMonth-W,bb=b.drawYear;if(0>ab&&(ab+=12,bb--),_)for(c=this._daylightSavingAdjust(new Date(_.getFullYear(),_.getMonth()-V[0]*V[1]+1,_.getDate())),c=$&&$>c?$:c;this._daylightSavingAdjust(new Date(bb,ab,1))>c;)ab--,0>ab&&(ab=11,bb--);for(b.drawMonth=ab,b.drawYear=bb,d=this._get(b,"prevText"),d=U?this.formatDate(d,this._daylightSavingAdjust(new Date(bb,ab-X,1)),this._getFormatConfig(b)):d,e=this._canAdjustMonth(b,-1,bb,ab)?a("<a>").attr({"class":"jqui-datepicker-prev jqui-corner-all","data-handler":"prev","data-event":"click",title:d}).append(a("<span>").addClass("jqui-icon jqui-icon-circle-triangle-"+(R?"e":"w")).text(d))[0].outerHTML:T?"":a("<a>").attr({"class":"jqui-datepicker-prev jqui-corner-all jqui-state-disabled",title:d}).append(a("<span>").addClass("jqui-icon jqui-icon-circle-triangle-"+(R?"e":"w")).text(d))[0].outerHTML,f=this._get(b,"nextText"),f=U?this.formatDate(f,this._daylightSavingAdjust(new Date(bb,ab+X,1)),this._getFormatConfig(b)):f,g=this._canAdjustMonth(b,1,bb,ab)?a("<a>").attr({"class":"jqui-datepicker-next jqui-corner-all","data-handler":"next","data-event":"click",title:f}).append(a("<span>").addClass("jqui-icon jqui-icon-circle-triangle-"+(R?"w":"e")).text(f))[0].outerHTML:T?"":a("<a>").attr({"class":"jqui-datepicker-next jqui-corner-all jqui-state-disabled",title:f}).append(a("<span>").attr("class","jqui-icon jqui-icon-circle-triangle-"+(R?"w":"e")).text(f))[0].outerHTML,h=this._get(b,"currentText"),i=this._get(b,"gotoCurrent")&&b.currentDay?Z:Q,h=U?this.formatDate(h,i,this._getFormatConfig(b)):h,j="",b.inline||(j=a("<button>").attr({type:"button","class":"jqui-datepicker-close jqui-state-default jqui-priority-primary jqui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(b,"closeText"))[0].outerHTML),k="",S&&(k=a("<div class='jqui-datepicker-buttonpane jqui-widget-content'>").append(R?j:"").append(this._isInRange(b,i)?a("<button>").attr({type:"button","class":"jqui-datepicker-current jqui-state-default jqui-priority-secondary jqui-corner-all","data-handler":"today","data-event":"click"}).text(h):"").append(R?"":j)[0].outerHTML),l=parseInt(this._get(b,"firstDay"),10),l=isNaN(l)?0:l,m=this._get(b,"showWeek"),n=this._get(b,"dayNames"),o=this._get(b,"dayNamesMin"),p=this._get(b,"monthNames"),q=this._get(b,"monthNamesShort"),r=this._get(b,"beforeShowDay"),s=this._get(b,"showOtherMonths"),t=this._get(b,"selectOtherMonths"),u=this._getDefaultDate(b),v="",x=0;x<V[0];x++){for(y="",this.maxRows=4,z=0;z<V[1];z++){if(A=this._daylightSavingAdjust(new Date(bb,ab,b.selectedDay)),B=" jqui-corner-all",C="",Y){if(C+="<div class='jqui-datepicker-group",V[1]>1)switch(z){case 0:C+=" jqui-datepicker-group-first",B=" jqui-corner-"+(R?"right":"left");break;case V[1]-1:C+=" jqui-datepicker-group-last",B=" jqui-corner-"+(R?"left":"right");break;default:C+=" jqui-datepicker-group-middle",B=""}C+="'>"}for(C+="<div class='jqui-datepicker-header jqui-widget-header jqui-helper-clearfix"+B+"'>"+(/all|left/.test(B)&&0===x?R?g:e:"")+(/all|right/.test(B)&&0===x?R?e:g:"")+this._generateMonthYearHeader(b,ab,bb,$,_,x>0||z>0,p,q)+"</div><table class='jqui-datepicker-calendar'><thead><tr>",D=m?"<th class='jqui-datepicker-week-col'>"+this._get(b,"weekHeader")+"</th>":"",w=0;7>w;w++)E=(w+l)%7,D+="<th scope='col'"+((w+l+6)%7>=5?" class='jqui-datepicker-week-end'":"")+"><span title='"+n[E]+"'>"+o[E]+"</span></th>";for(C+=D+"</tr></thead><tbody>",F=this._getDaysInMonth(bb,ab),bb===b.selectedYear&&ab===b.selectedMonth&&(b.selectedDay=Math.min(b.selectedDay,F)),G=(this._getFirstDayOfMonth(bb,ab)-l+7)%7,H=Math.ceil((G+F)/7),I=Y&&this.maxRows>H?this.maxRows:H,this.maxRows=I,J=this._daylightSavingAdjust(new Date(bb,ab,1-G)),K=0;I>K;K++){for(C+="<tr>",L=m?"<td class='jqui-datepicker-week-col'>"+this._get(b,"calculateWeek")(J)+"</td>":"",w=0;7>w;w++)M=r?r.apply(b.input?b.input[0]:null,[J]):[!0,""],N=J.getMonth()!==ab,O=N&&!t||!M[0]||$&&$>J||_&&J>_,L+="<td class='"+((w+l+6)%7>=5?" jqui-datepicker-week-end":"")+(N?" jqui-datepicker-other-month":"")+(J.getTime()===A.getTime()&&ab===b.selectedMonth&&b._keyEvent||u.getTime()===J.getTime()&&u.getTime()===A.getTime()?" "+this._dayOverClass:"")+(O?" "+this._unselectableClass+" jqui-state-disabled":"")+(N&&!s?"":" "+M[1]+(J.getTime()===Z.getTime()?" "+this._currentClass:"")+(J.getTime()===Q.getTime()?" jqui-datepicker-today":""))+"'"+(N&&!s||!M[2]?"":" title='"+M[2].replace(/'/g,"&#39;")+"'")+(O?"":" data-handler='selectDay' data-event='click' data-month='"+J.getMonth()+"' data-year='"+J.getFullYear()+"'")+">"+(N&&!s?"&#xa0;":O?"<span class='jqui-state-default'>"+J.getDate()+"</span>":"<a class='jqui-state-default"+(J.getTime()===Q.getTime()?" jqui-state-highlight":"")+(J.getTime()===Z.getTime()?" jqui-state-active":"")+(N?" jqui-priority-secondary":"")+"' href='#' aria-current='"+(J.getTime()===Z.getTime()?"true":"false")+"' data-date='"+J.getDate()+"'>"+J.getDate()+"</a>")+"</td>",J.setDate(J.getDate()+1),J=this._daylightSavingAdjust(J);C+=L+"</tr>"}ab++,ab>11&&(ab=0,bb++),C+="</tbody></table>"+(Y?"</div>"+(V[0]>0&&z===V[1]-1?"<div class='jqui-datepicker-row-break'></div>":""):""),y+=C}v+=y}return v+=k,b._keyEvent=!1,v},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q=this._get(a,"changeMonth"),r=this._get(a,"changeYear"),s=this._get(a,"showMonthAfterYear"),t=this._get(a,"selectMonthLabel"),u=this._get(a,"selectYearLabel"),v="<div class='jqui-datepicker-title'>",w="";if(f||!q)w+="<span class='jqui-datepicker-month'>"+g[b]+"</span>";else{for(i=d&&d.getFullYear()===c,j=e&&e.getFullYear()===c,w+="<select class='jqui-datepicker-month' aria-label='"+t+"' data-handler='selectMonth' data-event='change'>",k=0;12>k;k++)(!i||k>=d.getMonth())&&(!j||k<=e.getMonth())&&(w+="<option value='"+k+"'"+(k===b?" selected='selected'":"")+">"+h[k]+"</option>");w+="</select>"}if(s||(v+=w+(!f&&q&&r?"":"&#xa0;")),!a.yearshtml)if(a.yearshtml="",f||!r)v+="<span class='jqui-datepicker-year'>"+c+"</span>";else{for(l=this._get(a,"yearRange").split(":"),m=(new Date).getFullYear(),n=function(a){var b=a.match(/c[+\-].*/)?c+parseInt(a.substring(1),10):a.match(/[+\-].*/)?m+parseInt(a,10):parseInt(a,10);return isNaN(b)?m:b},o=n(l[0]),p=Math.max(o,n(l[1]||"")),o=d?Math.max(o,d.getFullYear()):o,p=e?Math.min(p,e.getFullYear()):p,a.yearshtml+="<select class='jqui-datepicker-year' aria-label='"+u+"' data-handler='selectYear' data-event='change'>";p>=o;o++)a.yearshtml+="<option value='"+o+"'"+(o===c?" selected='selected'":"")+">"+o+"</option>";a.yearshtml+="</select>",v+=a.yearshtml,a.yearshtml=null}return v+=this._get(a,"yearSuffix"),s&&(v+=(!f&&q&&r?"":"&#xa0;")+w),v+="</div>"},_adjustInstDate:function(a,b,c){var d=a.selectedYear+("Y"===c?b:0),e=a.selectedMonth+("M"===c?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+("D"===c?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),("M"===c||"Y"===c)&&this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&c>b?c:b;return d&&e>d?d:e},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return null==b?[1,1]:"number"==typeof b?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()
},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(0>b?b:e[0]*e[1]),1));return 0>b&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c,d,e=this._getMinMaxDate(a,"min"),f=this._getMinMaxDate(a,"max"),g=null,h=null,i=this._get(a,"yearRange");return i&&(c=i.split(":"),d=(new Date).getFullYear(),g=parseInt(c[0],10),h=parseInt(c[1],10),c[0].match(/[+\-].*/)&&(g+=d),c[1].match(/[+\-].*/)&&(h+=d)),(!e||b.getTime()>=e.getTime())&&(!f||b.getTime()<=f.getTime())&&(!g||b.getFullYear()>=g)&&(!h||b.getFullYear()<=h)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),a.fn.cvp_datepicker=function(b){if(!this.length)return this;a.cvp_datepicker.initialized||(a(document).on("mousedown",a.cvp_datepicker._checkExternalClick),a.cvp_datepicker.initialized=!0),0===a("#"+a.cvp_datepicker._mainDivId).length&&a("body").append(a.cvp_datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1);return"string"!=typeof b||"isDisabled"!==b&&"getDate"!==b&&"widget"!==b?"option"===b&&2===arguments.length&&"string"==typeof arguments[1]?a.cvp_datepicker["_"+b+"Datepicker"].apply(a.cvp_datepicker,[this[0]].concat(c)):this.each(function(){"string"==typeof b?a.cvp_datepicker["_"+b+"Datepicker"].apply(a.cvp_datepicker,[this].concat(c)):a.cvp_datepicker._attachDatepicker(this,b)}):a.cvp_datepicker["_"+b+"Datepicker"].apply(a.cvp_datepicker,[this[0]].concat(c))},a.cvp_datepicker=new c,a.cvp_datepicker.initialized=!1,a.cvp_datepicker.uuid=(new Date).getTime(),a.cvp_datepicker.version="1.13.3";a.cvp_datepicker}),
function(){function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;a.length>b;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;a.length>b;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.cvp_imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"===m.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0,d=a.length;d>c;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a){this.src=a,n[a]=this}var j=a.jQuery,k=a.console,l=void 0!==k,m=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0,b=this.elements.length;b>a;a++){var c=this.elements[a];"IMG"===c.nodeName&&this.addImage(c);var d=c.nodeType;if(d&&(1===d||9===d||11===d))for(var e=c.querySelectorAll("img"),f=0,g=e.length;g>f;f++){var h=e[f];this.addImage(h)}}},g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.check=function(){function a(a,e){return b.options.debug&&l&&k.log("confirm",a,e),b.progress(a),c++,c===d&&b.complete(),!0}var b=this,c=0,d=this.images.length;if(this.hasAnyBroken=!1,!d)return void this.complete();for(var e=0;d>e;e++){var f=this.images[e];f.on("confirm",a),f.check()}},g.prototype.progress=function(a){this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded;var b=this;setTimeout(function(){b.emit("progress",b,a),b.jqDeferred&&b.jqDeferred.notify&&b.jqDeferred.notify(b,a)})},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var b=this;setTimeout(function(){if(b.emit(a,b),b.emit("always",b),b.jqDeferred){var c=b.hasAnyBroken?"reject":"resolve";b.jqDeferred[c](b)}})},j&&(j.fn.cvp_imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))}),h.prototype=new b,h.prototype.check=function(){var a=n[this.img.src]||new i(this.img.src);if(a.isConfirmed)return void this.confirm(a.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var b=this;a.on("confirm",function(a,c){return b.confirm(a.isLoaded,c),!0}),a.check()},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("confirm",this,b)};var n={};return i.prototype=new b,i.prototype.check=function(){if(!this.isChecked){var a=new Image;c.bind(a,"load",this),c.bind(a,"error",this),a.src=this.src,this.isChecked=!0}},i.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},i.prototype.onload=function(a){this.confirm(!0,"onload"),this.unbindProxyEvents(a)},i.prototype.onerror=function(a){this.confirm(!1,"onerror"),this.unbindProxyEvents(a)},i.prototype.confirm=function(a,b){this.isConfirmed=!0,this.isLoaded=a,this.emit("confirm",this,b)},i.prototype.unbindProxyEvents=function(a){c.unbind(a.target,"load",this),c.unbind(a.target,"error",this)},g}),
function(a){"function"==typeof define&&define.amd?define(["jquery"],function(b){return a(b,document,window,navigator)}):"object"==typeof exports?a(require("jquery"),document,window,navigator):a(jQuery,document,window,navigator)}(function(a,b,c,d,e){var f=0,g=function(){var b=d.userAgent,c=/msie\s\d+/i;return 0<b.search(c)&&(b=c.exec(b).toString(),b=b.split(" ")[1],9>b)?(a("html").addClass("lt-ie9"),!0):!1}();Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=[].slice;if("function"!=typeof b)throw new TypeError;var d=c.call(arguments,1),e=function(){if(this instanceof e){var f=function(){};f.prototype=b.prototype;var f=new f,g=b.apply(f,d.concat(c.call(arguments)));return Object(g)===g?g:f}return b.apply(a,d.concat(c.call(arguments)))};return e}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c;if(null==this)throw new TypeError('"this" is null or not defined');var d=Object(this),e=d.length>>>0;if(0===e)return-1;if(c=+b||0,1/0===Math.abs(c)&&(c=0),c>=e)return-1;for(c=Math.max(c>=0?c:e-Math.abs(c),0);e>c;){if(c in d&&d[c]===a)return c;c++}return-1});var h=function(d,f,g){this.VERSION="2.1.7",this.input=d,this.plugin_count=g,this.old_to=this.old_from=this.update_tm=this.calc_count=this.current_plugin=0,this.raf_id=this.old_min_interval=null,this.is_update=this.is_key=this.no_diapason=this.force_redraw=this.dragging=!1,this.is_start=!0,this.is_click=this.is_resize=this.is_active=this.is_finish=!1,f=f||{},this.$cache={win:a(c),body:a(b.body),input:a(d),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var h=this.$cache.input;d=h.prop("value");var i;g={type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!1,keyboard_step:5,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" — ",input_values_separator:";",disable:!1,onStart:null,onChange:null,onFinish:null,onUpdate:null},"INPUT"!==h[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",h[0]),h={type:h.data("type"),min:h.data("min"),max:h.data("max"),from:h.data("from"),to:h.data("to"),step:h.data("step"),min_interval:h.data("minInterval"),max_interval:h.data("maxInterval"),drag_interval:h.data("dragInterval"),values:h.data("values"),from_fixed:h.data("fromFixed"),from_min:h.data("fromMin"),from_max:h.data("fromMax"),from_shadow:h.data("fromShadow"),to_fixed:h.data("toFixed"),to_min:h.data("toMin"),to_max:h.data("toMax"),to_shadow:h.data("toShadow"),prettify_enabled:h.data("prettifyEnabled"),prettify_separator:h.data("prettifySeparator"),force_edges:h.data("forceEdges"),keyboard:h.data("keyboard"),keyboard_step:h.data("keyboardStep"),grid:h.data("grid"),grid_margin:h.data("gridMargin"),grid_num:h.data("gridNum"),grid_snap:h.data("gridSnap"),hide_min_max:h.data("hideMinMax"),hide_from_to:h.data("hideFromTo"),prefix:h.data("prefix"),postfix:h.data("postfix"),max_postfix:h.data("maxPostfix"),decorate_both:h.data("decorateBoth"),values_separator:h.data("valuesSeparator"),input_values_separator:h.data("inputValuesSeparator"),disable:h.data("disable")},h.values=h.values&&h.values.split(",");for(i in h)h.hasOwnProperty(i)&&(h[i]!==e&&""!==h[i]||delete h[i]);d!==e&&""!==d&&(d=d.split(h.input_values_separator||f.input_values_separator||";"),d[0]&&d[0]==+d[0]&&(d[0]=+d[0]),d[1]&&d[1]==+d[1]&&(d[1]=+d[1]),f&&f.values&&f.values.length?(g.from=d[0]&&f.values.indexOf(d[0]),g.to=d[1]&&f.values.indexOf(d[1])):(g.from=d[0]&&+d[0],g.to=d[1]&&+d[1])),a.extend(g,f),a.extend(g,h),this.options=g,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()};h.prototype={init:function(a){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),a?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){this.$cache.input.before('<span class="irs js-irs-'+this.plugin_count+'"></span>'),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="-1"><span class="irs-line-left"></span><span class="irs-line-mid"></span><span class="irs-line-right"></span></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span><span class="irs-bar"></span>'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar-edge"></span><span class="irs-shadow shadow-single"></span><span class="irs-slider single"></span>'),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-slider from"></span><span class="irs-slider to"></span>'),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.max===this.options.min&&(this.$cache.line[0].style.display="none",this.$cache.grid[0].style.display="none",this.$cache.max[0].style.display="none"),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.cont.removeClass("irs-disabled"),this.$cache.input[0].disabled=!1,this.bindEvents()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var a=this.options.max,b=this.options.to;this.options.from>this.options.min&&b===a?this.$cache.s_from.addClass("type_last"):a>b&&this.$cache.s_to.addClass("type_last")},changeLevel:function(a){switch(a){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake);break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>'),this.$cache.cont.addClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),g&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),g&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerMove:function(a){this.dragging&&(this.coords.x_pointer=(a.pageX||a.originalEvent.touches&&a.originalEvent.touches[0].pageX)-this.coords.x_gap,this.calc())},pointerUp:function(b){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,g&&a("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(a.contains(this.$cache.cont[0],b.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(b,c){c.preventDefault();var d=c.pageX||c.originalEvent.touches&&c.originalEvent.touches[0].pageX;2!==c.button&&("both"===b&&this.setTempMinInterval(),b||(b=this.target||"from"),this.current_plugin=this.plugin_count,this.target=b,this.dragging=this.is_active=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=d-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(b),g&&a("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(a,b){b.preventDefault();var c=b.pageX||b.originalEvent.touches&&b.originalEvent.touches[0].pageX;2!==b.button&&(this.current_plugin=this.plugin_count,this.target=a,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(c-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(a,b){if(!(this.current_plugin!==this.plugin_count||b.altKey||b.ctrlKey||b.shiftKey||b.metaKey)){switch(b.which){case 83:case 65:case 40:case 37:b.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:b.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(a){var b=this.coords.p_pointer,b=a?b+this.options.keyboard_step:b-this.options.keyboard_step;this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*b),this.is_key=!0,this.calc()},setMinMax:function(){this.options&&(this.options.hide_min_max?(this.$cache.min[0].style.display="none",this.$cache.max[0].style.display="none"):(this.options.values.length?(this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]))):(this.$cache.min.html(this.decorate(this._prettify(this.options.min),this.options.min)),this.$cache.max.html(this.decorate(this._prettify(this.options.max),this.options.max))),this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)))},setTempMinInterval:function(){var a=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=a},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(a){if(this.options&&(this.calc_count++,(10===this.calc_count||a)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){switch(this.calcPointerPercent(),a=this.getHandleX(),"both"===this.target&&(this.coords.p_gap=0,a=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,a=this.getHandleX(),this.target=this.options.drag_interval?"both_one":this.chooseHandle(a)),this.target){case"base":var b=(this.options.max-this.options.min)/100;a=(this.result.from-this.options.min)/b,b=(this.result.to-this.options.min)/b,this.coords.p_single_real=this.toFixed(a),this.coords.p_from_real=this.toFixed(a),this.coords.p_to_real=this.toFixed(b),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(a),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(a),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(a),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;a=this.toFixed(a+.001*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(a)-this.coords.p_gap_left,this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.convertToRealPercent(a)+this.coords.p_gap_right,this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(!this.options.from_fixed&&!this.options.to_fixed){var c=this.convertToRealPercent(a);a=this.result.to_percent-this.result.from_percent;var d=a/2,b=c-d,c=c+d;0>b&&(b=0,c=b+a),c>100&&(c=100,b=c-a),this.coords.p_from_real=this.calcWithStep(b),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(c),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}},calcPointerPercent:function(){this.coords.w_rs?(0>this.coords.x_pointer||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(a){return a/(100-this.coords.p_handle)*100},convertToFakePercent:function(a){return a/100*(100-this.coords.p_handle)},getHandleX:function(){var a=100-this.coords.p_handle,b=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return 0>b?b=0:b>a&&(b=a),b},calcHandlePercent:function(){this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(a){return"single"===this.options.type?"single":a>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%":(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%")),this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start,this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_click=this.is_key=!1,this.callOnFinish()),this.is_finish=this.is_resize=this.is_update=!1),this.force_redraw=this.is_click=this.is_key=this.is_start=!1))},drawLabels:function(){if(this.options){var a,b=this.options.values.length,c=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)b=b?this.decorate(c[this.result.from]):this.decorate(this._prettify(this.result.from),this.result.from),this.$cache.single.html(b),this.calcLabels(),this.$cache.min[0].style.visibility=this.labels.p_single_left<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?"hidden":"visible";else{b?(this.options.decorate_both?(b=this.decorate(c[this.result.from]),b+=this.options.values_separator,b+=this.decorate(c[this.result.to])):b=this.decorate(c[this.result.from]+this.options.values_separator+c[this.result.to]),a=this.decorate(c[this.result.from]),c=this.decorate(c[this.result.to])):(this.options.decorate_both?(b=this.decorate(this._prettify(this.result.from),this.result.from),b+=this.options.values_separator,b+=this.decorate(this._prettify(this.result.to),this.result.to)):b=this.decorate(this._prettify(this.result.from)+this.options.values_separator+this._prettify(this.result.to),this.result.to),a=this.decorate(this._prettify(this.result.from),this.result.from),c=this.decorate(this._prettify(this.result.to),this.result.to)),this.$cache.single.html(b),this.$cache.from.html(a),this.$cache.to.html(c),this.calcLabels(),c=Math.min(this.labels.p_single_left,this.labels.p_from_left),b=this.labels.p_single_left+this.labels.p_single_fake,a=this.labels.p_to_left+this.labels.p_to_fake;var d=Math.max(b,a);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",d=a):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",d=Math.max(b,a))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),this.$cache.min[0].style.visibility=c<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=d>100-this.labels.p_max-1?"hidden":"visible"}}},drawShadow:function(){var a=this.options,b=this.$cache,c="number"==typeof a.from_min&&!isNaN(a.from_min),d="number"==typeof a.from_max&&!isNaN(a.from_max),e="number"==typeof a.to_min&&!isNaN(a.to_min),f="number"==typeof a.to_max&&!isNaN(a.to_max);"single"===a.type?a.from_shadow&&(c||d)?(c=this.convertToPercent(c?a.from_min:a.min),d=this.convertToPercent(d?a.from_max:a.max)-c,c=this.toFixed(c-this.coords.p_handle/100*c),d=this.toFixed(d-this.coords.p_handle/100*d),c+=this.coords.p_handle/2,b.shad_single[0].style.display="block",b.shad_single[0].style.left=c+"%",b.shad_single[0].style.width=d+"%"):b.shad_single[0].style.display="none":(a.from_shadow&&(c||d)?(c=this.convertToPercent(c?a.from_min:a.min),d=this.convertToPercent(d?a.from_max:a.max)-c,c=this.toFixed(c-this.coords.p_handle/100*c),d=this.toFixed(d-this.coords.p_handle/100*d),c+=this.coords.p_handle/2,b.shad_from[0].style.display="block",b.shad_from[0].style.left=c+"%",b.shad_from[0].style.width=d+"%"):b.shad_from[0].style.display="none",a.to_shadow&&(e||f)?(e=this.convertToPercent(e?a.to_min:a.min),a=this.convertToPercent(f?a.to_max:a.max)-e,e=this.toFixed(e-this.coords.p_handle/100*e),a=this.toFixed(a-this.coords.p_handle/100*a),e+=this.coords.p_handle/2,b.shad_to[0].style.display="block",b.shad_to[0].style.left=e+"%",b.shad_to[0].style.width=a+"%"):b.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&this.options.onStart(this.result)},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&this.options.onChange(this.result)},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&this.options.onFinish(this.result)},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&this.options.onUpdate(this.result)},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input")},convertToPercent:function(a,b){var c=this.options.max-this.options.min;return c?this.toFixed((b?a:a-this.options.min)/(c/100)):(this.no_diapason=!0,0)},convertToValue:function(a){var b,c,d=this.options.min,e=this.options.max,f=d.toString().split(".")[1],g=e.toString().split(".")[1],h=0,i=0;return 0===a?this.options.min:100===a?this.options.max:(f&&(h=b=f.length),g&&(h=c=g.length),b&&c&&(h=b>=c?b:c),0>d&&(i=Math.abs(d),d=+(d+i).toFixed(h),e=+(e+i).toFixed(h)),a=(e-d)/100*a+d,(d=this.options.step.toString().split(".")[1])?a=+a.toFixed(d.length):(a/=this.options.step,a*=this.options.step,a=+a.toFixed(0)),i&&(a-=i),i=d?+a.toFixed(d.length):this.toFixed(a),i<this.options.min?i=this.options.min:i>this.options.max&&(i=this.options.max),i)},calcWithStep:function(a){var b=Math.round(a/this.coords.p_step)*this.coords.p_step;return b>100&&(b=100),100===a&&(b=100),this.toFixed(b)},checkMinInterval:function(a,b,c){var d=this.options;return d.min_interval?(a=this.convertToValue(a),b=this.convertToValue(b),"from"===c?b-a<d.min_interval&&(a=b-d.min_interval):a-b<d.min_interval&&(a=b+d.min_interval),this.convertToPercent(a)):a},checkMaxInterval:function(a,b,c){var d=this.options;return d.max_interval?(a=this.convertToValue(a),b=this.convertToValue(b),"from"===c?b-a>d.max_interval&&(a=b-d.max_interval):a-b>d.max_interval&&(a=b+d.max_interval),this.convertToPercent(a)):a},checkDiapason:function(a,b,c){a=this.convertToValue(a);var d=this.options;return"number"!=typeof b&&(b=d.min),"number"!=typeof c&&(c=d.max),b>a&&(a=b),a>c&&(a=c),this.convertToPercent(a)
},toFixed:function(a){return a=a.toFixed(20),+a},_prettify:function(a){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(a):this.prettify(a):a},prettify:function(a){return a.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(a,b){return this.options.force_edges?(0>a?a=0:a>100-b&&(a=100-b),this.toFixed(a)):this.toFixed(a)},validate:function(){var a,b,c=this.options,d=this.result,e=c.values,f=e.length;if("string"==typeof c.min&&(c.min=+c.min),"string"==typeof c.max&&(c.max=+c.max),"string"==typeof c.from&&(c.from=+c.from),"string"==typeof c.to&&(c.to=+c.to),"string"==typeof c.step&&(c.step=+c.step),"string"==typeof c.from_min&&(c.from_min=+c.from_min),"string"==typeof c.from_max&&(c.from_max=+c.from_max),"string"==typeof c.to_min&&(c.to_min=+c.to_min),"string"==typeof c.to_max&&(c.to_max=+c.to_max),"string"==typeof c.keyboard_step&&(c.keyboard_step=+c.keyboard_step),"string"==typeof c.grid_num&&(c.grid_num=+c.grid_num),c.max<c.min&&(c.max=c.min),f)for(c.p_values=[],c.min=0,c.max=f-1,c.step=1,c.grid_num=c.max,c.grid_snap=!0,b=0;f>b;b++)a=+e[b],isNaN(a)?a=e[b]:(e[b]=a,a=this._prettify(a)),c.p_values.push(a);("number"!=typeof c.from||isNaN(c.from))&&(c.from=c.min),("number"!=typeof c.to||isNaN(c.to))&&(c.to=c.max),"single"===c.type?(c.from<c.min&&(c.from=c.min),c.from>c.max&&(c.from=c.max)):(c.from<c.min&&(c.from=c.min),c.from>c.max&&(c.from=c.max),c.to<c.min&&(c.to=c.min),c.to>c.max&&(c.to=c.max),this.update_check.from&&(this.update_check.from!==c.from&&c.from>c.to&&(c.from=c.to),this.update_check.to!==c.to&&c.to<c.from&&(c.to=c.from)),c.from>c.to&&(c.from=c.to),c.to<c.from&&(c.to=c.from)),("number"!=typeof c.step||isNaN(c.step)||!c.step||0>c.step)&&(c.step=1),("number"!=typeof c.keyboard_step||isNaN(c.keyboard_step)||!c.keyboard_step||0>c.keyboard_step)&&(c.keyboard_step=5),"number"==typeof c.from_min&&c.from<c.from_min&&(c.from=c.from_min),"number"==typeof c.from_max&&c.from>c.from_max&&(c.from=c.from_max),"number"==typeof c.to_min&&c.to<c.to_min&&(c.to=c.to_min),"number"==typeof c.to_max&&c.from>c.to_max&&(c.to=c.to_max),d&&(d.min!==c.min&&(d.min=c.min),d.max!==c.max&&(d.max=c.max),(d.from<d.min||d.from>d.max)&&(d.from=c.from),(d.to<d.min||d.to>d.max)&&(d.to=c.to)),("number"!=typeof c.min_interval||isNaN(c.min_interval)||!c.min_interval||0>c.min_interval)&&(c.min_interval=0),("number"!=typeof c.max_interval||isNaN(c.max_interval)||!c.max_interval||0>c.max_interval)&&(c.max_interval=0),c.min_interval&&c.min_interval>c.max-c.min&&(c.min_interval=c.max-c.min),c.max_interval&&c.max_interval>c.max-c.min&&(c.max_interval=c.max-c.min)},decorate:function(a,b){var c="",d=this.options;return d.prefix&&(c+=d.prefix),c+=a,d.max_postfix&&(d.values.length&&a===d.p_values[d.max]?(c+=d.max_postfix,d.postfix&&(c+=" ")):b===d.max&&(c+=d.max_postfix,d.postfix&&(c+=" "))),d.postfix&&(c+=d.postfix),c},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var a,b,c=this.options;a=c.max-c.min;var d,e,f,g,h,i=c.grid_num,j=4,k="";for(this.calcGridMargin(),c.grid_snap?a>50?(i=50/c.step,d=this.toFixed(c.step/.5)):(i=a/c.step,d=this.toFixed(c.step/(a/100))):d=this.toFixed(100/i),i>4&&(j=3),i>7&&(j=2),i>14&&(j=1),i>28&&(j=0),a=0;i+1>a;a++){for(f=j,e=this.toFixed(d*a),e>100&&(e=100,f-=2,0>f&&(f=0)),this.coords.big[a]=e,g=(e-d*(a-1))/(f+1),b=1;f>=b&&0!==e;b++)h=this.toFixed(e-g*b),k+='<span class="irs-grid-pol small" style="left: '+h+'%"></span>';k+='<span class="irs-grid-pol" style="left: '+e+'%"></span>',b=this.convertToValue(e),b=c.values.length?c.p_values[b]:this._prettify(b),k+='<span class="irs-grid-text js-grid-text-'+a+'" style="left: '+e+'%">'+b+"</span>"}this.coords.big_num=Math.ceil(i+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(k),this.cacheGridLabels()}},cacheGridLabels:function(){var a,b,c=this.coords.big_num;for(b=0;c>b;b++)a=this.$cache.grid.find(".js-grid-text-"+b),this.$cache.grid_labels.push(a);this.calcGridLabels()},calcGridLabels:function(){var a,b;b=[];var c=[],d=this.coords.big_num;for(a=0;d>a;a++)this.coords.big_w[a]=this.$cache.grid_labels[a].outerWidth(!1),this.coords.big_p[a]=this.toFixed(this.coords.big_w[a]/this.coords.w_rs*100),this.coords.big_x[a]=this.toFixed(this.coords.big_p[a]/2),b[a]=this.toFixed(this.coords.big[a]-this.coords.big_x[a]),c[a]=this.toFixed(b[a]+this.coords.big_p[a]);for(this.options.force_edges&&(b[0]<-this.coords.grid_gap&&(b[0]=-this.coords.grid_gap,c[0]=this.toFixed(b[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),c[d-1]>100+this.coords.grid_gap&&(c[d-1]=100+this.coords.grid_gap,b[d-1]=this.toFixed(c[d-1]-this.coords.big_p[d-1]),this.coords.big_x[d-1]=this.toFixed(this.coords.big_p[d-1]-this.coords.grid_gap))),this.calcGridCollision(2,b,c),this.calcGridCollision(4,b,c),a=0;d>a;a++)b=this.$cache.grid_labels[a][0],this.coords.big_x[a]!==Number.POSITIVE_INFINITY&&(b.style.marginLeft=-this.coords.big_x[a]+"%")},calcGridCollision:function(a,b,c){var d,e,f,g=this.coords.big_num;for(d=0;g>d&&(e=d+a/2,!(e>=g));d+=a)f=this.$cache.grid_labels[e][0],f.style.visibility=c[d]<=b[e]?"visible":"hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(b){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=a.extend(this.options,b),this.validate(),this.updateResult(b),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),a.data(this.input,"ionRangeSlider",null),this.remove(),this.options=this.input=null)}},a.fn.cvp_ionRangeSlider=function(b){return this.each(function(){a.data(this,"ionRangeSlider")||a.data(this,"ionRangeSlider",new h(this,b,f++))})},function(){for(var a=0,b=["ms","moz","webkit","o"],d=0;d<b.length&&!c.requestAnimationFrame;++d)c.requestAnimationFrame=c[b[d]+"RequestAnimationFrame"],c.cancelAnimationFrame=c[b[d]+"CancelAnimationFrame"]||c[b[d]+"CancelRequestAnimationFrame"];c.requestAnimationFrame||(c.requestAnimationFrame=function(b){var d=(new Date).getTime(),e=Math.max(0,16-(d-a)),f=c.setTimeout(function(){b(d+e)},e);return a=d+e,f}),c.cancelAnimationFrame||(c.cancelAnimationFrame=function(a){clearTimeout(a)})}()}),
window.cvp_Modernizr=function(a,b,c){function d(a){s.cssText=a}function e(a,b){return typeof a===b}function f(a,b){return!!~(""+a).indexOf(b)}function g(a,b){for(var d in a){var e=a[d];if(!f(e,"-")&&s[e]!==c)return"pfx"==b?e:!0}return!1}function h(a,b,d){for(var f in a){var g=b[a[f]];if(g!==c)return d===!1?a[f]:e(g,"function")?g.bind(d||b):g}return!1}function i(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),f=(a+" "+v.join(d+" ")+d).split(" ");return e(b,"string")||e(b,"undefined")?g(f,b):(f=(a+" "+w.join(d+" ")+d).split(" "),h(f,b,c))}var j,k,l,m="2.6.2",n={},o=!0,p=b.documentElement,q="modernizr",r=b.createElement(q),s=r.style,t=({}.toString," -webkit- -moz- -o- -ms- ".split(" ")),u="Webkit Moz O ms",v=u.split(" "),w=u.toLowerCase().split(" "),x={},y=[],z=y.slice,A=function(a,c,d,e){var f,g,h,i,j=b.createElement("div"),k=b.body,l=k||b.createElement("body");if(parseInt(d,10))for(;d--;)h=b.createElement("div"),h.id=e?e[d]:q+(d+1),j.appendChild(h);return f=["&#173;",'<style id="s',q,'">',a,"</style>"].join(""),j.id=q,(k?j:l).innerHTML+=f,l.appendChild(j),k||(l.style.background="",l.style.overflow="hidden",i=p.style.overflow,p.style.overflow="hidden",p.appendChild(l)),g=c(j,a),k?j.parentNode.removeChild(j):(l.parentNode.removeChild(l),p.style.overflow=i),!!g},B={}.hasOwnProperty;l=e(B,"undefined")||e(B.call,"undefined")?function(a,b){return b in a&&e(a.constructor.prototype[b],"undefined")}:function(a,b){return B.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=z.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(z.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(z.call(arguments)))};return d}),x.csstransforms=function(){return!!i("transform")},x.csstransforms3d=function(){var a=!!i("perspective");return a&&"webkitPerspective"in p.style&&A("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b){a=9===b.offsetLeft&&3===b.offsetHeight}),a},x.csstransitions=function(){return i("transition")};for(var C in x)l(x,C)&&(k=C.toLowerCase(),n[k]=x[C](),y.push((n[k]?"":"no-")+k));return n.addTest=function(a,b){if("object"==typeof a)for(var d in a)l(a,d)&&n.addTest(d,a[d]);else{if(a=a.toLowerCase(),n[a]!==c)return n;b="function"==typeof b?b():b,"undefined"!=typeof o&&o&&(p.className+=" "+(b?"":"no-")+a),n[a]=b}return n},d(""),r=j=null,n._version=m,n._prefixes=t,n._domPrefixes=w,n._cssomPrefixes=v,n.testProp=function(a){return g([a])},n.testAllProps=i,n.testStyles=A,n.prefixed=function(a,b,c){return b?i(a,b,c):i(a,"pfx")},p.className=p.className+(o?" "+y.join(" "):""),n}(this,this.document),
function(a){"function"==typeof define&&define.amd?define(["jquery","modernizr"],a):"object"==typeof exports?module.exports=a(require("jquery"),window.cvp_Modernizr):window.cvp_Shuffle=a(window.jQuery,window.cvp_Modernizr)}(function(a,b,c){"use strict";function d(a){return a?a.replace(/([A-Z])/g,function(a,b){return"-"+b.toLowerCase()}).replace(/^ms-/,"-ms-"):""}function e(b,c,d){var e,f,g,h=null,i=0;d=d||{};var j=function(){i=d.leading===!1?0:a.now(),h=null,g=b.apply(e,f),e=f=null};return function(){var k=a.now();i||d.leading!==!1||(i=k);var l=c-(k-i);return e=this,f=arguments,0>=l||l>c?(clearTimeout(h),h=null,i=k,g=b.apply(e,f),e=f=null):h||d.trailing===!1||(h=setTimeout(j,l)),g}}function f(a,b,c){for(var d=0,e=a.length;e>d;d++)if(b.call(c,a[d],d,a)==={})return}function g(b,c,d){return setTimeout(a.proxy(b,c),d)}function h(a){return Math.max.apply(Math,a)}function i(a){return Math.min.apply(Math,a)}function j(a){var b=function(a){var b=typeof a;return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))};return b(a)?a:0}function k(a){var b,c,d=a.length;if(!d)return a;for(;--d;)c=Math.floor(Math.random()*(d+1)),b=a[c],a[c]=a[d],a[d]=b;return a}if("object"!=typeof b)throw new Error("Shuffle.js requires Modernizr.\nhttp://vestride.github.io/Shuffle/#dependencies");var l=b.prefixed("transition"),m=b.prefixed("transitionDelay"),n=b.prefixed("transitionDuration"),o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[l],p=b.prefixed("transform"),q=d(p),r=(b.csstransforms&&b.csstransitions,b.csstransforms3d),s=!!window.getComputedStyle,t="shuffle",u="all",v="groups",w=1,x=.001,y=window.getComputedStyle||function(){},z=function(a,b){this.x=j(a),this.y=j(b)};z.equals=function(a,b){return"undefined"==typeof a||"undefined"==typeof b?!0:a.x===b.x&&a.y===b.y};var A=function(){if(!s)return!1;var a=document.body||document.documentElement,b=document.createElement("div");b.style.cssText="width:10px;padding:2px;-webkit-box-sizing:border-box;box-sizing:border-box;",a.appendChild(b);var c=y(b,null).width,d="10px"===c;return a.removeChild(b),d}(),B=0,C=a(window),D=function(b,c){c=c||{},a.extend(this,D.options,c,D.settings),this.$el=a(b),this.element=b,this.unique="shuffle_"+B++,this._fire(D.EventType.LOADING),this._init(),g(function(){this.initialized=!0,this._fire(D.EventType.DONE)},this,16)};return D.EventType={LOADING:"loading",DONE:"done",LAYOUT:"layout",REMOVED:"removed"},D.ClassName={BASE:t,SHUFFLE_ITEM:"shuffle-item",FILTERED:"filtered",CONCEALED:"concealed"},D.options={group:u,speed:250,easing:"ease-out",itemSelector:"",sizer:null,gutterWidth:0,columnWidth:0,delimeter:null,buffer:0,columnThreshold:s?.01:.1,initialSort:null,throttle:e,throttleTime:300,sequentialFadeDelay:150,supported:!1},D.settings={useSizer:!1,itemCss:{position:"absolute",top:0,left:0,visibility:"visible"},revealAppendedDelay:300,lastSort:{},lastFilter:u,enabled:!0,destroyed:!1,initialized:!1,_animations:[],_transitions:[],_isMovementCanceled:!1,styleQueue:[]},D.Point=z,D._getItemTransformString=function(a,b){return a&&null!==a.x&&null!==a.y?r?"translate3d("+a.x+"px, "+a.y+"px, 0) scale3d("+b+", "+b+", 1)":"translate("+a.x+"px, "+a.y+"px) scale("+b+")":void 0},D._getNumberStyle=function(b,c,d){if(s){d=d||y(b,null);var e=D._getFloat(d[c]);return A||"width"!==c?A||"height"!==c||(e+=D._getFloat(d.paddingTop)+D._getFloat(d.paddingBottom)+D._getFloat(d.borderTopWidth)+D._getFloat(d.borderBottomWidth)):e+=D._getFloat(d.paddingLeft)+D._getFloat(d.paddingRight)+D._getFloat(d.borderLeftWidth)+D._getFloat(d.borderRightWidth),e}return D._getFloat(a(b).css(c))},D._getFloat=function(a){return j(parseFloat(a))},D._getOuterWidth=function(a,b){var c=y(a,null),d=D._getNumberStyle(a,"width",c);if(b){var e=D._getNumberStyle(a,"marginLeft",c),f=D._getNumberStyle(a,"marginRight",c);d+=e+f}return d},D._getOuterHeight=function(a,b){var c=y(a,null),d=D._getNumberStyle(a,"height",c);if(b){var e=D._getNumberStyle(a,"marginTop",c),f=D._getNumberStyle(a,"marginBottom",c);d+=e+f}return d},D._skipTransition=function(a,b,c){var d=a.style[n];a.style[n]="0ms",b.call(c);var e=a.offsetWidth;e=null,a.style[n]=d},D.prototype._init=function(){this.$items=this._getItems(),this.sizer=this._getElementOption(this.sizer),this.sizer&&(this.useSizer=!0),this.$el.addClass(D.ClassName.BASE),this._initItems(),C.on("resize."+t+"."+this.unique,this._getResizeFunction());var a=this.$el.css(["position","overflow"]),b=D._getOuterWidth(this.element);this._validateStyles(a),this._setColumns(b),this.shuffle(this.group,this.initialSort),this.supported&&g(function(){this._setTransitions(),this.element.style[l]="height "+this.speed+"ms "+this.easing},this)},D.prototype._getResizeFunction=function(){var b=a.proxy(this._onResize,this);return this.throttle?this.throttle(b,this.throttleTime):b},D.prototype._getElementOption=function(a){return"string"==typeof a?this.$el.find(a)[0]||null:a&&a.nodeType&&1===a.nodeType?a:a&&a.jquery?a[0]:null},D.prototype._validateStyles=function(a){"static"===a.position&&(this.element.style.position="relative"),"hidden"!==a.overflow&&(this.element.style.overflow="hidden")},D.prototype._filter=function(a,b){a=a||this.lastFilter,b=b||this.$items;var c=this._getFilteredSets(a,b);return this._toggleFilterClasses(c.filtered,c.concealed),this.lastFilter=a,"string"==typeof a&&(this.group=a),c.filtered},D.prototype._getFilteredSets=function(b,c){var d=a(),e=a();return b===u?d=c:f(c,function(c){var f=a(c);this._doesPassFilter(b,f)?d=d.add(f):e=e.add(f)},this),{filtered:d,concealed:e}},D.prototype._doesPassFilter=function(b,c){if("function"==typeof b)return b.call(c[0],c,this);var d=c.data(v),e=null===this.delimeter||Array.isArray(d)?d:d.toString().split(this.delimeter);return a.inArray(b,e)>-1},D.prototype._toggleFilterClasses=function(a,b){a.removeClass(D.ClassName.CONCEALED).addClass(D.ClassName.FILTERED),b.removeClass(D.ClassName.FILTERED).addClass(D.ClassName.CONCEALED)},D.prototype._initItems=function(a){a=a||this.$items,a.addClass([D.ClassName.SHUFFLE_ITEM,D.ClassName.FILTERED].join(" ")),a.css(this.itemCss).data("point",new z).data("scale",w)},D.prototype._updateItemCount=function(){this.visibleItems=this._getFilteredItems().length},D.prototype._setTransition=function(a){a.style[l]=q+" "+this.speed+"ms "+this.easing+", opacity "+this.speed+"ms "+this.easing},D.prototype._setTransitions=function(a){a=a||this.$items,f(a,function(a){this._setTransition(a)},this)},D.prototype._setSequentialDelay=function(a){this.supported&&f(a,function(a,b){a.style[m]="0ms,"+(b+1)*this.sequentialFadeDelay+"ms"},this)},D.prototype._getItems=function(){return this.$el.children(this.itemSelector)},D.prototype._getFilteredItems=function(){return this.$items.filter("."+D.ClassName.FILTERED)},D.prototype._getConcealedItems=function(){return this.$items.filter("."+D.ClassName.CONCEALED)},D.prototype._getColumnSize=function(a,b){var c;return c="function"==typeof this.columnWidth?this.columnWidth(a):this.useSizer?D._getOuterWidth(this.sizer):this.columnWidth?this.columnWidth:this.$items.length>0?D._getOuterWidth(this.$items[0],!0):a,0===c&&(c=a),c+b},D.prototype._getGutterSize=function(a){var b;return b="function"==typeof this.gutterWidth?this.gutterWidth(a):this.useSizer?D._getNumberStyle(this.sizer,"marginLeft"):this.gutterWidth},D.prototype._setColumns=function(b){var c=b||D._getOuterWidth(this.element);window.cvp_sf_fixdropcol&&(c=a(this.element).width());var d=this._getGutterSize(c),e=this._getColumnSize(c,d),f=(c+d)/e;Math.abs(Math.round(f)-f)<this.columnThreshold&&(f=Math.round(f)),this.cols=Math.max(Math.floor(f),1),this.containerWidth=c,this.colWidth=e,window.cvp_sf_debug_width&&console.log(c,this.cols,this.colWidth)},D.prototype._setContainerSize=function(){this.$el.css("height",this._getContainerSize())},D.prototype._getContainerSize=function(){return h(this.positions)},D.prototype._fire=function(a,b){this.$el.trigger(a+"."+t,b&&b.length?b:[this])},D.prototype._resetCols=function(){var a=this.cols;for(this.positions=[];a--;)this.positions.push(0)},D.prototype._layout=function(a,b){f(a,function(a){this._layoutItem(a,!!b)},this),this._processStyleQueue(),this._setContainerSize()},D.prototype._layoutItem=function(b,c){var d=a(b),e=d.data(),f=e.point,g=e.scale,h={width:D._getOuterWidth(b,!0),height:D._getOuterHeight(b,!0)},i=this._getItemPosition(h);z.equals(f,i)&&g===w||(e.point=i,e.scale=w,this.styleQueue.push({$item:d,point:i,scale:w,opacity:c?0:1,skipTransition:c||0===this.speed,callfront:function(){c||d.css("visibility","visible")},callback:function(){c&&d.css("visibility","hidden")}}))},D.prototype._getItemPosition=function(a){for(var b=this._getColumnSpan(a.width,this.colWidth,this.cols),c=this._getColumnSet(b,this.cols),d=this._getShortColumn(c,this.buffer),e=new z(this.colWidth*d,c[d]),f=c[d]+a.height,g=this.cols+1-c.length,h=0;g>h;h++)this.positions[d+h]=f;return e},D.prototype._getColumnSpan=function(a,b,c){var d=a/b;return Math.abs(Math.round(d)-d)<this.columnThreshold&&(d=Math.round(d)),Math.min(Math.ceil(d),c)},D.prototype._getColumnSet=function(a,b){if(1===a)return this.positions;for(var c=b+1-a,d=[],e=0;c>e;e++)d[e]=h(this.positions.slice(e,e+a));return d},D.prototype._getShortColumn=function(a,b){for(var c=i(a),d=0,e=a.length;e>d;d++)if(a[d]>=c-b&&a[d]<=c+b)return d;return 0},D.prototype._shrink=function(b){var c=b||this._getConcealedItems();f(c,function(b){var c=a(b),d=c.data();d.scale!==x&&(d.scale=x,this.styleQueue.push({$item:c,point:d.point,scale:x,opacity:0,callback:function(){c.css("visibility","hidden")}}))},this)},D.prototype._onResize=function(){if(this.enabled&&!this.destroyed){var b=D._getOuterWidth(this.element);a(this.element).is(":hidden")||b===this.containerWidth||setTimeout(a.proxy(function(){this.update()},this),window.cvp_sf_timeout||500)}},D.prototype._getStylesForTransition=function(a){var b={opacity:a.opacity};return this.supported?b[p]=D._getItemTransformString(a.point,a.scale):a.point&&(b.left=a.point.x,b.top=a.point.y),b},D.prototype._transition=function(b){var c=this._getStylesForTransition(b);this._startItemAnimation(b.$item,c,b.callfront||a.noop,b.callback||a.noop)},D.prototype._startItemAnimation=function(b,c,d,e){function f(b){b.target===b.currentTarget&&(a(b.target).off(o,f),g._removeTransitionReference(h),e())}var g=this,h={$element:b,handler:f};if(d(),!this.initialized)return b.css(c),void e();if(b.hasClass(D.ClassName.CONCEALED)&&(c={opacity:0}),this.supported||this.cvp_appending||window.cvp_sf_disable_animation)b.css(c),b.on(o,f),this._transitions.push(h);else{var i=b.stop(!0).animate(c,this.speed,"swing",e);this._animations.push(i.promise())}},D.prototype._processStyleQueue=function(b){this.isTransitioning&&this._cancelMovement();var c=a();f(this.styleQueue,function(a){a.skipTransition?this._styleImmediately(a):(c=c.add(a.$item),this._transition(a))},this),c.length>0&&this.initialized&&this.speed>0?(this.isTransitioning=!0,this.supported?this._whenCollectionDone(c,o,this._movementFinished):this._whenAnimationsDone(this._movementFinished)):b||g(this._layoutEnd,this),this.styleQueue.length=0},D.prototype._cancelMovement=function(){this.supported?f(this._transitions,function(a){a.$element.off(o,a.handler)}):(this._isMovementCanceled=!0,this.$items.stop(!0),this._isMovementCanceled=!1),this._transitions.length=0,this.isTransitioning=!1},D.prototype._removeTransitionReference=function(b){var c=a.inArray(b,this._transitions);c>-1&&this._transitions.splice(c,1)},D.prototype._styleImmediately=function(a){D._skipTransition(a.$item[0],function(){a.$item.css(this._getStylesForTransition(a))},this)},D.prototype._movementFinished=function(){this.isTransitioning=!1,this._layoutEnd()},D.prototype._layoutEnd=function(){this._fire(D.EventType.LAYOUT)},D.prototype._addItems=function(a,b,c){this._initItems(a),this.$items=this._getItems(),this._shrink(a),f(this.styleQueue,function(a){a.skipTransition=!0}),this._processStyleQueue(!0),b?this._addItemsToEnd(a,c):this.shuffle(this.lastFilter)},D.prototype._addItemsToEnd=function(a,b){var c=this._filter(null,a),d=c.get();this._updateItemCount(),this._layout(d,!0),b&&this.supported&&this._setSequentialDelay(d),this._revealAppended(d)},D.prototype._revealAppended=function(b){g(function(){f(b,function(b){var c=a(b);this._transition({$item:c,opacity:1,point:c.data("point"),scale:w})},this),this._whenCollectionDone(a(b),o,function(){a(b).css(m,"0ms"),this._movementFinished()})},this,this.revealAppendedDelay)},D.prototype._whenCollectionDone=function(b,c,d){function e(b){b.target===b.currentTarget&&(a(b.target).off(c,e),f++,f===g&&(h._removeTransitionReference(i),d.call(h)))}var f=0,g=b.length,h=this,i={$element:b,handler:e};b.on(c,e),this._transitions.push(i)},D.prototype._whenAnimationsDone=function(b){a.when.apply(null,this._animations).always(a.proxy(function(){this._animations.length=0,this._isMovementCanceled||b.call(this)},this))},D.prototype.shuffle=function(a,b){this.enabled&&(a||(a=u),this._filter(a),this._updateItemCount(),this._shrink(),this.sort(b))},D.prototype.sort=function(a){if(this.enabled){this._resetCols();var b=a||this.lastSort,c=this._getFilteredItems().cvp_sorted(b);this._layout(c),this.lastSort=b}},D.prototype.update=function(a){this.enabled&&(a||this._setColumns(),this.sort())},D.prototype.layout=function(){this.update(!0)},D.prototype.appended=function(a,b,c){this.cvp_appending=!0,this._addItems(a,b===!0,c!==!1),this.cvp_appending=!1},D.prototype.disable=function(){this.enabled=!1},D.prototype.enable=function(a){this.enabled=!0,a!==!1&&this.update()},D.prototype.remove=function(b){function c(){b.remove(),this.$items=this._getItems(),this._updateItemCount(),this._fire(D.EventType.REMOVED,[b,this]),b=null}b.length&&b.jquery&&(this._toggleFilterClasses(a(),b),this._shrink(b),this.sort(),this.$el.one(D.EventType.LAYOUT+"."+t,a.proxy(c,this)))},D.prototype.destroy=function(){C.off("."+this.unique),this.$el.removeClass(t).removeAttr("style").removeData(t),this.$items.removeAttr("style").removeData("point").removeData("scale").removeClass([D.ClassName.CONCEALED,D.ClassName.FILTERED,D.ClassName.SHUFFLE_ITEM].join(" ")),this.$items=null,this.$el=null,this.sizer=null,this.element=null,this._transitions=null,this.destroyed=!0},a.fn.cvp_shuffle=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),e=d.data(t);e?"string"==typeof b&&e[b]&&e[b].apply(e,c):(e=new D(this,b),d.data(t,e))})},a.fn.cvp_sorted=function(b){var d=a.extend({},a.fn.cvp_sorted.defaults,b),e=this.get(),f=!1;return e.length?d.randomize?k(e):("function"==typeof d.by&&e.sort(function(b,e){if(f)return 0;var g=d.by(a(b)),h=d.by(a(e));return g===c&&h===c?(f=!0,0):h>g||"sortFirst"===g||"sortLast"===h?-1:g>h||"sortLast"===g||"sortFirst"===h?1:0}),f?this.get():(d.reverse&&e.reverse(),e)):[]},a.fn.cvp_sorted.defaults={reverse:!1,by:null,randomize:!1},D}),
!function(a){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],a):a("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(a){"use strict";function b(b){return!b||void 0!==b.allowPageScroll||void 0===b.swipe&&void 0===b.swipeStatus||(b.allowPageScroll=k),void 0!==b.click&&void 0===b.tap&&(b.tap=b.click),b||(b={}),b=a.extend({},a.fn.cvp_swipe.defaults,b),this.each(function(){var d=a(this),e=d.data(C);e||(e=new c(this,b),d.data(C,e))})}function c(b,c){function d(b){if(!(jb()||a(b.target).closest(c.excludedElements,Tb).length>0)){var d=b.originalEvent?b.originalEvent:b;if(!d.pointerType||"mouse"!=d.pointerType||0!=c.fallbackToMouseEvents){var e,f=d.touches,g=f?f[0]:d;return Ub=v,f?Vb=f.length:c.preventDefaultEvents!==!1&&b.preventDefault(),Jb=0,Kb=null,Lb=null,Rb=null,Mb=0,Nb=0,Ob=0,Pb=1,Qb=0,Sb=qb(),hb(),lb(0,g),!f||Vb===c.fingers||c.fingers===t||R()?(Xb=zb(),2==Vb&&(lb(1,f[1]),Nb=Ob=tb(Wb[0].start,Wb[1].start)),(c.swipeStatus||c.pinchStatus)&&(e=J(d,Ub))):e=!1,e===!1?(Ub=y,J(d,Ub),e):(c.hold&&(bc=setTimeout(a.proxy(function(){Tb.trigger("hold",[d.target]),c.hold&&(e=c.hold.call(Tb,d,d.target))},this),c.longTapThreshold)),kb(!0),null)}}}function D(a){var b=a.originalEvent?a.originalEvent:a;if(Ub!==x&&Ub!==y&&!ib()){var d,e=b.touches,f=e?e[0]:b,g=mb(f);if(Yb=zb(),e&&(Vb=e.length),c.hold&&clearTimeout(bc),Ub=w,2==Vb&&(0==Nb?(lb(1,e[1]),Nb=Ob=tb(Wb[0].start,Wb[1].start)):(mb(e[1]),Ob=tb(Wb[0].end,Wb[1].end),Rb=vb(Wb[0].end,Wb[1].end)),Pb=ub(Nb,Ob),Qb=Math.abs(Nb-Ob)),Vb===c.fingers||c.fingers===t||!e||R()){if(Kb=yb(g.start,g.end),Lb=yb(g.last,g.end),P(a,Lb),Jb=wb(g.start,g.end),Mb=sb(),ob(Kb,Jb),d=J(b,Ub),!c.triggerOnTouchEnd||c.triggerOnTouchLeave){var h=!0;if(c.triggerOnTouchLeave){var i=Ab(this);h=Bb(g.end,i)}!c.triggerOnTouchEnd&&h?Ub=I(w):c.triggerOnTouchLeave&&!h&&(Ub=I(x)),Ub!=y&&Ub!=x||J(b,Ub)}}else Ub=y,J(b,Ub);d===!1&&(Ub=y,J(b,Ub))}}function E(a){var b=a.originalEvent?a.originalEvent:a,d=b.touches;if(d){if(d.length&&!ib())return gb(b),!0;if(d.length&&ib())return!0}return ib()&&(Vb=$b),Yb=zb(),Mb=sb(),M()||!L()?(Ub=y,J(b,Ub)):c.triggerOnTouchEnd||c.triggerOnTouchEnd===!1&&Ub===w?(c.preventDefaultEvents!==!1&&a.preventDefault(),Ub=x,J(b,Ub)):!c.triggerOnTouchEnd&&Y()?(Ub=x,K(b,Ub,o)):Ub===w&&(Ub=y,J(b,Ub)),kb(!1),null}function F(){Vb=0,Yb=0,Xb=0,Nb=0,Ob=0,Pb=1,hb(),kb(!1)}function G(a){var b=a.originalEvent?a.originalEvent:a;c.triggerOnTouchLeave&&(Ub=I(x),J(b,Ub))}function H(){Tb.off(Eb,d),Tb.off(Ib,F),Tb.off(Fb,D),Tb.off(Gb,E),Hb&&Tb.off(Hb,G),kb(!1)}function I(a){var b=a,d=O(),e=L(),f=M();return!d||f?b=y:!e||a!=w||c.triggerOnTouchEnd&&!c.triggerOnTouchLeave?!e&&a==x&&c.triggerOnTouchLeave&&(b=y):b=x,b}function J(a,b){var c,d=a.touches;return(V()||U())&&(c=K(a,b,m)),(S()||R())&&c!==!1&&(c=K(a,b,n)),eb()&&c!==!1?c=K(a,b,p):fb()&&c!==!1?c=K(a,b,q):db()&&c!==!1&&(c=K(a,b,o)),b===y&&F(a),b===x&&(d?d.length||F(a):F(a)),c}function K(b,d,k){var l;if(k==m){if(Tb.trigger("swipeStatus",[d,Kb||null,Jb||0,Mb||0,Vb,Wb,Lb]),c.swipeStatus&&(l=c.swipeStatus.call(Tb,b,d,Kb||null,Jb||0,Mb||0,Vb,Wb,Lb),l===!1))return!1;if(d==x&&T()){if(clearTimeout(ac),clearTimeout(bc),Tb.trigger("swipe",[Kb,Jb,Mb,Vb,Wb,Lb]),c.swipe&&(l=c.swipe.call(Tb,b,Kb,Jb,Mb,Vb,Wb,Lb),l===!1))return!1;switch(Kb){case e:Tb.trigger("swipeLeft",[Kb,Jb,Mb,Vb,Wb,Lb]),c.swipeLeft&&(l=c.swipeLeft.call(Tb,b,Kb,Jb,Mb,Vb,Wb,Lb));break;case f:Tb.trigger("swipeRight",[Kb,Jb,Mb,Vb,Wb,Lb]),c.swipeRight&&(l=c.swipeRight.call(Tb,b,Kb,Jb,Mb,Vb,Wb,Lb));break;case g:Tb.trigger("swipeUp",[Kb,Jb,Mb,Vb,Wb,Lb]),c.swipeUp&&(l=c.swipeUp.call(Tb,b,Kb,Jb,Mb,Vb,Wb,Lb));break;case h:Tb.trigger("swipeDown",[Kb,Jb,Mb,Vb,Wb,Lb]),c.swipeDown&&(l=c.swipeDown.call(Tb,b,Kb,Jb,Mb,Vb,Wb,Lb))}}}if(k==n){if(Tb.trigger("pinchStatus",[d,Rb||null,Qb||0,Mb||0,Vb,Pb,Wb]),c.pinchStatus&&(l=c.pinchStatus.call(Tb,b,d,Rb||null,Qb||0,Mb||0,Vb,Pb,Wb),l===!1))return!1;if(d==x&&Q())switch(Rb){case i:Tb.trigger("pinchIn",[Rb||null,Qb||0,Mb||0,Vb,Pb,Wb]),c.pinchIn&&(l=c.pinchIn.call(Tb,b,Rb||null,Qb||0,Mb||0,Vb,Pb,Wb));break;case j:Tb.trigger("pinchOut",[Rb||null,Qb||0,Mb||0,Vb,Pb,Wb]),c.pinchOut&&(l=c.pinchOut.call(Tb,b,Rb||null,Qb||0,Mb||0,Vb,Pb,Wb))}}return k==o?d!==y&&d!==x||(clearTimeout(ac),clearTimeout(bc),Z()&&!ab()?(_b=zb(),ac=setTimeout(a.proxy(function(){_b=null,Tb.trigger("tap",[b.target]),c.tap&&(l=c.tap.call(Tb,b,b.target))},this),c.doubleTapThreshold)):(_b=null,Tb.trigger("tap",[b.target]),c.tap&&(l=c.tap.call(Tb,b,b.target)))):k==p?d!==y&&d!==x||(clearTimeout(ac),clearTimeout(bc),_b=null,Tb.trigger("doubletap",[b.target]),c.doubleTap&&(l=c.doubleTap.call(Tb,b,b.target))):k==q&&(d!==y&&d!==x||(clearTimeout(ac),_b=null,Tb.trigger("longtap",[b.target]),c.longTap&&(l=c.longTap.call(Tb,b,b.target)))),l}function L(){var a=!0;return null!==c.threshold&&(a=Jb>=c.threshold),a}function M(){var a=!1;return null!==c.cancelThreshold&&null!==Kb&&(a=pb(Kb)-Jb>=c.cancelThreshold),a}function N(){return null!==c.pinchThreshold?Qb>=c.pinchThreshold:!0}function O(){var a;return a=c.maxTimeThreshold?!(Mb>=c.maxTimeThreshold):!0}function P(a,b){if(c.preventDefaultEvents!==!1)if(c.allowPageScroll===k)a.preventDefault();else{var d=c.allowPageScroll===l;switch(b){case e:(c.swipeLeft&&d||!d&&c.allowPageScroll!=r)&&a.preventDefault();break;case f:(c.swipeRight&&d||!d&&c.allowPageScroll!=r)&&a.preventDefault();break;case g:(c.swipeUp&&d||!d&&c.allowPageScroll!=s)&&a.preventDefault();break;case h:(c.swipeDown&&d||!d&&c.allowPageScroll!=s)&&a.preventDefault();break;case k:}}}function Q(){var a=W(),b=X(),c=N();return a&&b&&c}function R(){return!!(c.pinchStatus||c.pinchIn||c.pinchOut)}function S(){return!(!Q()||!R())}function T(){var a=O(),b=L(),c=W(),d=X(),e=M(),f=!e&&d&&c&&b&&a;return f}function U(){return!!(c.swipe||c.swipeStatus||c.swipeLeft||c.swipeRight||c.swipeUp||c.swipeDown)}function V(){return!(!T()||!U())}function W(){return Vb===c.fingers||c.fingers===t||!z}function X(){return 0!==Wb[0].end.x}function Y(){return!!c.tap}function Z(){return!!c.doubleTap}function $(){return!!c.longTap}function _(){if(null==_b)return!1;var a=zb();return Z()&&a-_b<=c.doubleTapThreshold}function ab(){return _()}function bb(){return(1===Vb||!z)&&(isNaN(Jb)||Jb<c.threshold)}function cb(){return Mb>c.longTapThreshold&&u>Jb}function db(){return!(!bb()||!Y())}function eb(){return!(!_()||!Z())}function fb(){return!(!cb()||!$())}function gb(a){Zb=zb(),$b=a.touches.length+1}function hb(){Zb=0,$b=0}function ib(){var a=!1;if(Zb){var b=zb()-Zb;b<=c.fingerReleaseThreshold&&(a=!0)}return a}function jb(){return!(Tb.data(C+"_intouch")!==!0)}function kb(a){Tb&&(a===!0?(Tb.on(Fb,D),Tb.on(Gb,E),Hb&&Tb.on(Hb,G)):(Tb.off(Fb,D,!1),Tb.off(Gb,E,!1),Hb&&Tb.off(Hb,G,!1)),Tb.data(C+"_intouch",a===!0))}function lb(a,b){var c={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return c.start.x=c.last.x=c.end.x=b.pageX||b.clientX,c.start.y=c.last.y=c.end.y=b.pageY||b.clientY,Wb[a]=c,c}function mb(a){var b=void 0!==a.identifier?a.identifier:0,c=nb(b);return null===c&&(c=lb(b,a)),c.last.x=c.end.x,c.last.y=c.end.y,c.end.x=a.pageX||a.clientX,c.end.y=a.pageY||a.clientY,c}function nb(a){return Wb[a]||null}function ob(a,b){a!=k&&(b=Math.max(b,pb(a)),Sb[a].distance=b)}function pb(a){return Sb[a]?Sb[a].distance:void 0}function qb(){var a={};return a[e]=rb(e),a[f]=rb(f),a[g]=rb(g),a[h]=rb(h),a}function rb(a){return{direction:a,distance:0}}function sb(){return Yb-Xb}function tb(a,b){var c=Math.abs(a.x-b.x),d=Math.abs(a.y-b.y);return Math.round(Math.sqrt(c*c+d*d))}function ub(a,b){var c=b/a*1;return c.toFixed(2)}function vb(){return 1>Pb?j:i}function wb(a,b){return Math.round(Math.sqrt(Math.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2)))}function xb(a,b){var c=a.x-b.x,d=b.y-a.y,e=Math.atan2(d,c),f=Math.round(180*e/Math.PI);return 0>f&&(f=360-Math.abs(f)),f}function yb(a,b){if(Cb(a,b))return k;var c=xb(a,b);return 45>=c&&c>=0?e:360>=c&&c>=315?e:c>=135&&225>=c?f:c>45&&135>c?h:g}function zb(){var a=new Date;return a.getTime()}function Ab(b){b=a(b);var c=b.offset(),d={left:c.left,right:c.left+b.outerWidth(),top:c.top,bottom:c.top+b.outerHeight()};return d}function Bb(a,b){return a.x>b.left&&a.x<b.right&&a.y>b.top&&a.y<b.bottom}function Cb(a,b){return a.x==b.x&&a.y==b.y}var c=a.extend({},c),Db=z||B||!c.fallbackToMouseEvents,Eb=Db?B?A?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Fb=Db?B?A?"MSPointerMove":"pointermove":"touchmove":"mousemove",Gb=Db?B?A?"MSPointerUp":"pointerup":"touchend":"mouseup",Hb=Db?B?"mouseleave":null:"mouseleave",Ib=B?A?"MSPointerCancel":"pointercancel":"touchcancel",Jb=0,Kb=null,Lb=null,Mb=0,Nb=0,Ob=0,Pb=1,Qb=0,Rb=0,Sb=null,Tb=a(b),Ub="start",Vb=0,Wb={},Xb=0,Yb=0,Zb=0,$b=0,_b=0,ac=null,bc=null;try{Tb.on(Eb,d),Tb.on(Ib,F)}catch(cc){a.error("events not supported "+Eb+","+Ib+" on jQuery.swipe")}this.enable=function(){return this.disable(),Tb.on(Eb,d),Tb.on(Ib,F),Tb},this.disable=function(){return H(),Tb},this.destroy=function(){H(),Tb.data(C,null),Tb=null},this.option=function(b,d){if("object"==typeof b)c=a.extend(c,b);else if(void 0!==c[b]){if(void 0===d)return c[b];c[b]=d}else{if(!b)return c;a.error("Option "+b+" does not exist on jQuery.swipe.options")}return null}}var d="1.6.18",e="left",f="right",g="up",h="down",i="in",j="out",k="none",l="auto",m="swipe",n="pinch",o="tap",p="doubletap",q="longtap",r="horizontal",s="vertical",t="all",u=10,v="start",w="move",x="end",y="cancel",z="ontouchstart"in window,A=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!z,B=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!z,C="TouchSwipe",D={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0};a.fn.cvp_swipe=function(c){var d=a(this),e=d.data(C);if(e&&"string"==typeof c){if(e[c])return e[c].apply(e,Array.prototype.slice.call(arguments,1));a.error("Method "+c+" does not exist on jQuery.swipe")}else if(e&&"object"==typeof c)e.option.apply(e,arguments);else if(!(e||"object"!=typeof c&&c))return b.apply(this,arguments);return d},a.fn.cvp_swipe.version=d,a.fn.cvp_swipe.defaults=D,a.fn.cvp_swipe.phases={PHASE_START:v,PHASE_MOVE:w,PHASE_END:x,PHASE_CANCEL:y},a.fn.cvp_swipe.directions={LEFT:e,RIGHT:f,UP:g,DOWN:h,IN:i,OUT:j},a.fn.cvp_swipe.pageScroll={NONE:k,HORIZONTAL:r,VERTICAL:s,AUTO:l},a.fn.cvp_swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:t}}),
function(a){"use strict";"undefined"==typeof window.PT_CV_PUBLIC&&(window.PT_CV_PUBLIC={}),PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b,c=PT_CV_PUBLIC._prefix,d=function(){};d.cdata={debug:!1,delay_seconds:800,selectors:{wrapper:"."+c+"wrapper",view:"."+c+"view",item:"."+c+"content-item",pagination:"."+c+"pagination-wrapper",sfilter:"."+c+"filter-bar",foption:"."+c+"filter-option"},"class":{sf_active:"active",sf_group_active:"selected",sfilter_taxogroup:c+"groupsf"},_debug:function(a,b){d.cdata.debug&&console.log("<DEBUG> "+a+":"+("object"==typeof b?JSON.stringify(b):b))}},d._pagination_handle=function(c){var e=function(){PT_CV_PUBLIC.paging=0};if(!c.attr("data-disabled")){var f=parseInt(c.attr("data-nextpages"));if(!f)return void e();b||(b=new a.PT_CV_Public({skip:!0})),b._setup_pagination(c,f,function(){if(e(),!c.closest(d.cdata.selectors.wrapper).find(d.cdata.selectors.sfilter).length){var a=f+1;if(a<=parseInt(c.attr("data-totalpages"))?c.attr("data-nextpages",a):c.remove(),"function"==typeof b._get_paginated_url){var g=b._get_paginated_url(a);c.attr("href",g)}}})}},d.overlay_box=function(b){var d=c+"overlay-box";return"add"===b?'<div class="'+d+'"><img alt="loading" src="'+PT_CV_PUBLIC.loading_image_src+'"></div>':void a("."+d).remove()},d.add_param_tourl=function(a,b){return a+(a.indexOf("?")>=0?"&":"?")+b},d.change_url_wo_reload=function(a){a&&history.pushState(null,null,a)},d.pathname_from_url=function(a){var b=document.createElement("a");b.href=a;var c=b.pathname;return c.startsWith("/")||(c="/"+c),c},d.image_in_viewport=function(a){var b=a[0];return b.getBoundingClientRect().top<=window.innerHeight&&b.getBoundingClientRect().bottom>=0&&"none"!==getComputedStyle(b).display},d.do_lazyload=function(b){var c;c&&clearTimeout(c),c=setTimeout(function(){a(".cvplazy[data-cvpsrc]",b).each(function(){var b=a(this);d.image_in_viewport(b)&&(b.attr("src",b.data("cvpsrc")),b.removeAttr("data-cvpsrc"),b.addClass("cvploaded"),b.data("cvpset")&&(b.attr("srcset",b.data("cvpset")),b.removeAttr("data-cvpset")),b.parent().cvp_imagesLoaded(function(){b.parent().removeClass("cvp-lazy-container"),d.shuffle_update_each(b)}))})},300),a(".cvp-play").on("click",function(b){b.preventDefault();var c=a(this).parent().children("iframe");if(c.length){var e=c.data("cvpsrc");c.attr("src",d.add_param_tourl(e,e.indexOf("soundcloud")>=0?"auto_play=true":"autoplay=true")),c.removeAttr("data-cvpsrc"),a(this).next("img").remove(),a(this).remove()}})},d.shuffle_update_each=function(a){var b=a.closest("."+c+"page");b.data("shuffle")&&(b.data("cv_viewid")||b.data("cv_viewid",d.get_view_id(b)),window["cvpShuffleThrottle"+b.data("cv_viewid")]&&clearTimeout(window["cvpShuffleThrottle"+b.data("cv_viewid")]),window["cvpShuffleThrottle"+b.data("cv_viewid")]=setTimeout(function(){b.cvp_shuffle("appended",a.closest(d.cdata.selectors.item),!1,!1)},300))},d.shuffle_before=function(){},d.get_view_id=function(a){var b=a.is(d.cdata.selectors.view)?a:a.parent(),e=b.attr("id"),f=new RegExp(c+"view-");return e?e.replace(f,""):""},d.shuffle_after=function(b){b.addClass("cvpshuffled"),setTimeout(function(){a(window).trigger("cvpload")},300),a("body").on("cvp-resize",function(){d.hidden_or_not_hidden(b,function(){b.cvp_shuffle("update")})})},d.shuffle_append=function(a,b){a&&a.length&&(a.css({opacity:0}),a.cvp_imagesLoaded(function(){b.cvp_shuffle("appended",a),a.css({opacity:1})}))},d.hidden_or_not_hidden=function(a,b,c,e){var f=d.cdata.delay_seconds;setTimeout(function(){if(!a.is(":visible")||a.is(":hidden")){if(!a.hasClass("cvp-hidden")){a.addClass("cvp-hidden");var d=setInterval(function(){a.width()>0&&(clearInterval(d),a.removeClass("cvp-hidden"),"function"==typeof b&&b())},f)}}else"function"==typeof c&&c()},e?e:f)},d.get_device_by_width=function(){var a=null;return a=window.matchMedia("(min-width: 992px)").matches?"pc":window.matchMedia("(min-width: 768px)").matches?"tablet":"mobile"},d.dynamic_init=function(){new a.PT_CV_Pinterest,new a.PT_CV_Glossary;var b="."+c+"scrollable";a(".carousel-control.left",b).off("click").on("click",function(){"function"==typeof jQuery.fn.cvcarousel?a(this).parent().cvcarousel("prev"):a(this).parent().carousel("prev")}),a(".carousel-control.right",b).off("click").on("click",function(){"function"==typeof jQuery.fn.cvcarousel?a(this).parent().cvcarousel("next"):a(this).parent().carousel("next")})},d.lineup_fields=function(b,d){var e=new Array("title","content","meta-fields","ctf-list"),f="."+c+"readmore:not(."+c+"textlink)",g=function(b){b.cvp_imagesLoaded(function(){var g;a.each(e,function(e,h){var i=b.find("."+c+h);if(!("resized"!==d&&i.attr("style")&&i.attr("style").indexOf("height")>=0)){var j="content"===h;if(j&&(g=b.find(f)),i.length){"resized"===d&&(i.height("auto"),j&&g.css("position","relative"));var k=i.map(function(){return a(this).height()}).get(),l=Math.max.apply(null,k);parseInt(l)&&(i.height(l),j&&g.css({position:"absolute",bottom:"0px"}))}}})})};g(b)},window.cvp_common=d}(jQuery),function(a){"use strict";PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c=window.cvp_common,d=!1,e={sf_term:{},sf_solved_term:[],sf_triggered_term:[],sf_term_taxo:{},sf_taxo_operator:{},separator:" "},f={reset_view:function(a){e.sf_term[a]={},e.sf_solved_term[a]=[],e.sf_triggered_term[a]=[],e.sf_term_taxo[a]={}},set_term:function(a,b){e.sf_term[a]=b,c.cdata._debug("set term",f.get_val("sf_term",a))},set_solved_term:function(a){e.sf_solved_term[a]=e.sf_solved_term[a]||[];var b=f.get_val("sf_term",a);e.sf_solved_term[a].indexOf(b)<0&&e.sf_solved_term[a].push(b)},set_sf_triggered_term:function(a){e.sf_triggered_term[a]=e.sf_triggered_term[a]||[];var b=f.get_val("sf_term",a);e.sf_triggered_term[a].indexOf(b)<0&&e.sf_triggered_term[a].push(b)},do_sf_triggered_term:function(b,c){var d=f.get_val("sf_triggered_term",b),e=f.get_val("sf_term",b);d.length>0&&a.inArray(e,d)>=0||(f.set_sf_triggered_term(b),c())},set_stt:function(a,b,c){e.sf_term_taxo[a]=e.sf_term_taxo[a]||{},e.sf_term_taxo[a][b]=e.sf_term_taxo[a][b]||[],e.sf_term_taxo[a][b].indexOf(c)<0&&e.sf_term_taxo[a][b].push(c)},set_operator:function(a,b,c){e.sf_taxo_operator[a]=e.sf_taxo_operator[a]||{},e.sf_taxo_operator[a][b]=c},is_empty:function(a){var b=f.get_val("sf_term",a);return null===b||""===b||"all"===b},get_val:function(a,b){return e[a][b]},reset_val:function(a){e.sf_term_taxo[a]={},e.sf_taxo_operator[a]={}},setWindowData:function(a,b){window.cvdata=window.cvdata||{},window.cvdata.sf_taxo=JSON.stringify(e.sf_term_taxo),window.cvdata.sf_opera=JSON.stringify(e.sf_taxo_operator),window.cvdata.sf_pids=window.cvdata.sf_pids||{},a&&(window.cvdata.sf_pids[a]=JSON.stringify(b))}};a.CVP_Shuffle_Filter=function(){this.init()},a.CVP_Shuffle_Filter.prototype={init:function(){var d=this;a(c.cdata.selectors.wrapper).each(function(){var e=a(this).find(c.cdata.selectors.sfilter);if(e.length){var g=d._shuffle_get_items(e.first()),h=c.get_view_id(g);c.shuffle_before(g),f.reset_view(h),g.cvp_imagesLoaded(function(){f.set_term(h,"all");var a=e.hasClass(b+"filter-group");g.addClass(a?c.cdata["class"].sfilter_taxogroup:""),d._shuffle_main(e,g,h,a),d._shuffle_actions(g,h)}),c.hidden_or_not_hidden(g,function(){g.cvp_shuffle("update")})}}),a("body").on(b+"before-pagination",function(){f.setWindowData(0,0)}),a("body").on(b+"pagination-finished "+b+"pagination-finished-simple",function(a,b,e){if(b){var f=b.closest(c.cdata.selectors.wrapper).find(c.cdata.selectors.sfilter);if(f.length){var g=d._shuffle_get_items(f.first());g.trigger("cvpsf-paginated",[e])}}})},_shuffle_init:function(a){a.cvp_shuffle({itemSelector:c.cdata.selectors.item,delimeter:e.separator,supported:a.parent().hasClass(b+"collapsible")?!0:!1})},_shuffle_get_items:function(d){null===d&&(d=a(c.cdata.selectors.sfilter));var e=d.parent().find(c.cdata.selectors.view);return e.find("."+b+"page").length?e.find("."+b+"page"):e},_filter_this_item:function(b,c,d){var e=a.map(c,function(c){return a.inArray(c.toString(),b)<0?null:c});return"or"===d?e.length:e.length===c.length},_get_item_groups:function(a){var b=a.data("groups");return b.toString().split(e.separator)},_get_taxonomy:function(a){var c=a.attr("id"),d=new RegExp(b+"filter-bar-[^-]+-");return c?c.replace(d,""):""},_get_term_to_filter:function(a,b,c,d,e){var g=b.data("value");g&&"all"!==g&&(c.push(g),d&&f.set_stt(a,e,g))},_pagination_toggle:function(a,b){var d=a.closest(c.cdata.selectors.wrapper).find(c.cdata.selectors.pagination);b?d.show():(d.hide(),c.cdata._debug("pagination HIDE",1))},_is_sf_type:function(a,b,d){if(!Object.keys(f.get_val("sf_term_taxo",d)).length)return!1;var e=b.hasClass(c.cdata["class"].sfilter_taxogroup);return"group"===a?e:!e},_no_item_found:function(b){if(window.cvp_sf_nopost){var d={},e=b.closest(c.cdata.selectors.wrapper),f="cvpsfnpf";return d.init=function(){if(!e.find("."+f).length){var b=a("<div/>",{"class":f,text:PT_CV_PUBLIC.sf_no_post_found,style:"display:none"});e.append(b)}},d.handle=function(){b.find(".filtered").length?e.find("."+f).hide():e.find("."+f).show()},d.init(),d.handle(),d}},_do_shuffle:function(d,e){var g=this,h=d.length;if(h>0)if(1===h)e.cvp_shuffle("shuffle",""+d[0]);else{var i=c.get_view_id(e),j=g._is_sf_type("group",e,i);e.cvp_shuffle("shuffle",function(c){var h=g._get_item_groups(c),k=e.data("sfop");if(j){var l="or"===k,m=l?!1:!0;return a.each(f.get_val("sf_term_taxo",i),function(c,d){if(d.length){var e=a('[data-taxonomy="'+c+'"]').parent().find("."+b+"filter-operator input:checked").val(),j=g._filter_this_item(h,d,e)?!0:!1;m=l?m||j:m&&j,f.set_operator(i,c,e)}}),m}return g._filter_this_item(h,d,k)})}else e.cvp_shuffle("shuffle","all")},_shuffle_steps:function(a,b,c){var d=a();this._do_shuffle(d,b),c!==!1&&b.trigger("cvpsf-toggle-pagination",[d.join()])},_shuffle_main:function(d,e,g,h){var i=this;i._shuffle_init(e);var j=function(){var e=[];return f.reset_val(g),h?d.find("."+b+"filter-title").each(function(){var b=a(this).data("taxonomy");a(this).parent().find("."+c.cdata["class"].sf_group_active).each(function(){var c=a(this);i._get_term_to_filter(g,c,e,!0,b)})}):d.each(function(){var b=a(this),f=i._get_taxonomy(b),h=b.find("."+c.cdata["class"].sf_active);h.is(c.cdata.selectors.foption)||(h=h.children()),i._get_term_to_filter(g,h,e,d.length,f)}),e};window.sf_enable_trigger||a(c.cdata.selectors.foption,d).off("click");var k=c.cdata["class"].sf_active;a(c.cdata.selectors.foption,d).on("click",function(b){b.preventDefault(),a(this).hasClass(k)||a(this).parent().hasClass(k)||i._shuffle_styles(a(this),function(){i._shuffle_steps(j,e)})}),h&&a("."+b+"filter-operator input",d).on("change",function(){i._shuffle_steps(j,e,!1)}),a("body").trigger("cvp-shuffle-main")},_shuffle_actions:function(e,g){var h=this;e.on("cvpsf-toggle-pagination",function(b,c){var d=f.get_val("sf_solved_term",g);d.length>0&&a.inArray(c,d)>=0?(f.set_term(g,null),h._pagination_toggle(e)):(f.set_term(g,c),h._pagination_toggle(e,"show"))}),e.on("layout.shuffle",function(i,j){c.shuffle_after(e);var k=[];if(j.$items.each(function(){a(this).hasClass("filtered")&&k.push(a(this).data("pid"))}),f.setWindowData(g,k),!f.is_empty(g)&&void 0!==e.data("sftp")){var l=e.closest(c.cdata.selectors.wrapper).find("."+b+"more:visible");l.length&&f.do_sf_triggered_term(g,function(){c.cdata._debug("Trigger pagination",l.length),c._pagination_handle(l),d=!0})}h._no_item_found(e)}),e.on("cvpsf-paginated",function(b,i){var j,k=h._is_sf_type("others-multi",e,g),l=a.map(f.get_val("sf_term_taxo",g),function(a){return a}),m=e.data("sfop"),n=0;i.each(function(){var b=a(this).data("pid");if(b){n++;var c=e.find('[data-pid="'+b+'"]');if(1===c.length){var d=1;if(k){var f=h._get_item_groups(c);d=h._filter_this_item(f,l,m)}d&&(j="undefined"==typeof j?c:j.add(c))}else c.length>1&&c.not(":first").remove()}});var o=j&&j.length;o&&c.shuffle_append(j,e),e.trigger("cvpsf-solve-term",[o||n]),d=!1}),e.on("cvpsf-solve-term",function(a,b){var c=parseInt(e.data("sfpp")),d=e.data("sfshowall");(void 0!==d&&!b||void 0===d&&(c>b||!b))&&(f.set_solved_term(g),h._pagination_toggle(e))})},_shuffle_styles:function(b,e){if(!d){var f=function(a,b){var d=c.cdata["class"].sf_active;a.children("."+d).removeClass(d),b.addClass(d)},g=b.data("sftype");switch(g){case"button":f(b.parent(),b);break;case"dropdown":f(b.closest(".dropdown-menu"),b.parent()),b.parents(".btn-group").find(".dropdown-toggle").html(b.text()+' <span class="caret"></span>');break;case"breadcrumb":f(b.closest(".breadcrumb"),b.parent());break;case"group":b.toggleClass(c.cdata["class"].sf_group_active)}a("body").trigger("cvp-shuffle-clicked",[b]),"function"==typeof e&&e()}}}}(jQuery),function(a){"use strict";var b=function(){a(".cvp-replayout").parent('[style*="height: 0px"]').css("height","auto"),a(".cvp-replayout").removeClass("elementor-post elementor-grid-item"),"function"==typeof window.Isotope&&a(".cvp-replayout").parent().data("isotope")&&setTimeout(function(){a(".cvp-replayout").parent().removeClass("masonry_full_width"),a(".cvp-replayout").parent().removeClass("row-isotope"),a(".cvp-replayout").parent().isotope("destroy")},1e3),navigator.userAgent.match("CriOS")&&a(window).on("orientationchange",function(){setTimeout(function(){a(".cvpshuffled").cvp_shuffle("update")},500)}),a("body").on("added_to_cart",function(){a(".woocommerce .ajax_add_to_cart").closest(".cvpshuffled").cvp_shuffle("update")}),a(".cvp-full-width").parent().hasClass("products")&&a(".cvp-full-width").hasClass("ast-full-width")&&a(".cvp-full-width").parent().css("display","block"),a(".wp-theme-kadence .cvp-full-width").parent().hasClass("grid-cols")&&a(".cvp-full-width").parent().css("display","block")};a(window).on("load",function(){setTimeout(function(){new b},100)}),a(function(){var b=a.fn.simpleselect;a.fn.simpleselect=function(){return a(this).parent().hasClass("cvp-dropdown")?void a("head").append('<style type="text/css">.pt-cv-wrapper select {-webkit-appearance: menulist; -moz-appearance: menulist; appearance: menulist;}</style>'):b.apply(this,arguments)}})}(jQuery),function(a){"use strict";PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c=window.cvp_common,d=function(b){b||(b=a(c.cdata.selectors.view)),b.each(function(){c.do_lazyload(a(this))})};a(window).on("load scroll resize orientationchange cvpload",function(){new d}),a("body").on(b+"pagination-finished",function(a,b){new d(b)})}(jQuery),function(a){"use strict";PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c=window.cvp_common,d=".cvp-live-filter",e=1,f=0,g=null,h=null,i=PT_CV_PUBLIC.lf__separator||",";a.CVP_LIVE_FILTER=function(){this.init()},a(window).on("load",function(){setTimeout(function(){a(window).on("popstate",function(b){if(a(d).length){var e=b.originalEvent.state&&b.originalEvent.state.query?b.originalEvent.state.query:"";if(e){var f=new a.CVP_LIVE_FILTER;f.get_result(e,a(d).closest(c.cdata.selectors.wrapper))}else window.cvp_lf_disable_state||window.location.hash||window.location.reload()}})},0)}),a.CVP_LIVE_FILTER.prototype={init:function(){var b=this;b.init_lib(),a("input, select",d).on("change",function(){a(this).off("change"),a(this).data("nosubmit")||b.process_filter(a(this),1)}),setTimeout(function(){b.on_click_pagination()},100)},init_lib:function(){var b=this;a(".cvp-range input").each(function(){a(this).cvp_ionRangeSlider({prettify_separator:a(this).data("thousand-separator"),input_values_separator:i,onFinish:function(b){a(b.input).trigger("change")}});var c=a(this).attr("name"),d=b.param_in_url(c),e="cvplf_track_"+c;window[e]=0,d&&(a(this).val(decodeURIComponent(d)),window[e]="changed"),a(this).on("change",function(){var b=a(this),c=b.data("from"),d=b.data("to");b.val(c+i+d),window[e]="changed"})}),this.search_field(),this.date_field(),window.cvp_lf_is_ajax?b.submit_reset():setTimeout(function(){b.submit_reset()},100)},search_field:function(){var b=this,c=a("[name]",".cvp-search-box");c.on("keypress",function(c){var d=c.which||c.keyCode;13===d&&b.process_filter(a(this),1)});var d=function(){var b=function(a){a.next("span").toggle(Boolean(a.val()))};c.on("keyup",function(){b(a(this))}),b(c)};d()},date_field:function(){var b=a("[class^='cvp-date']",".cvp-live-filter");b.each(function(){a(this).cvp_datepicker({dateFormat:"yy-mm-dd",changeMonth:!0,changeYear:!0});var b=[];a(this).on("change",function(){var c=a(this).closest(".cvp-daterange");c.find("label:not(.hidden) input").each(function(){b.push(a(this).val())});var d=c.find('input[type="hidden"]'),e=b.join(i);d.val(e.trim()!==i?e:""),d.trigger("change")})})},submit_reset:function(){var b=this,f=function(f){var g=f||a(d+":last"),h=g.closest(c.cdata.selectors.wrapper),i="cvp-live-button";if(!h.find("."+i).length&&(h.find(".cvp-range").length||h.find(".cvp-search-box").length||window.cvp_lf_submit_reset)){var j="cvp-live-submit",k="cvp-live-reset",l=window.cvp_lf_submit_text||"Submit",m=window.cvp_lf_reset_text||"Reset";g.after('<div class="'+i+'"><button class="btn-sm btn-success '+j+'">'+l+'</button><button class="btn-sm btn-danger '+k+'">'+m+'</button></div><div class="clear"></div><br>'),a("."+j,h).on("click",function(){b.process_filter(a(this),1)}),a("."+k,h).on("click",function(){e=1,b.get_result("",h)}),a("."+j+", ."+k).prop("tabindex",0),a("."+j+", ."+k).on("keypress",function(b){var c=b.which||b.keyCode;13===c&&a(this).trigger("click")}),window.cvp_lf_is_ajax&&(window.cvp_lf_is_ajax=0)}};f();var g=[];a(d).each(function(){var b=a(this).data("sid");if(-1===g.indexOf(b)){g.push(b);var c=a(d+'[data-sid="'+b+'"]:last');f(c)}})},get_configuration:function(a,b){var c=a.find(".cvp-live-config");return c.length?c.data(b):null},is_in_sidebar:function(a,b){return b||(b=a.children(c.cdata.selectors.view)),!b.length},is_replacing_layout:function(a){return a.parent().hasClass("cvp-replayout")},before_process:function(a){if(f)return void(h&&h.addClass("active"));a.prepend(c.overlay_box("add"));var b=a.children(c.cdata.selectors.view);b.length&&a.children().first().css("height",parseInt(b.position().top)+10+"px"),(this.is_in_sidebar(a,b)||this.is_replacing_layout(a))&&(window.cvp_lf_reload_url=!0)},process_filter:function(b,d){e=d;var f=b.closest(c.cdata.selectors.wrapper),g=this;window.cvp_lf_changed_filter=b.attr("name")||f.find("[data-nosubmit]").last().attr("name");var h=f.find("input, select").serialize(),j=[],k=[];a.each(h.split("&"),function(a,b){var c=b.split("="),d=c[0],e=c[1];!e||"undefined"!=typeof window["cvplf_track_"+d]&&"changed"!==window["cvplf_track_"+d]||(j[d]="undefined"==typeof j[d]?e:j[d]+i+e)}),"function"==typeof window.cvp_lf_fn_modify_query&&(j=window.cvp_lf_fn_modify_query(j)),j=g.get_current_page(j),Object.keys(j).forEach(function(a){k.push(a+"="+j[a])}),k=k.join("&"),g.get_result(k,f)},param_in_url:function(b){var c,d=window.location.search.replace("?","").split("&");return a.each(d,function(a,d){var e=d.split("=");e[0]===b&&(c=e[1])}),c},update_url:function(a,b){if(window.cvp_lf_no_change_url!==!0){var c,d=window.location.href,e=window.location.search,f=a?"?"+a:"",g=this.get_configuration(b,"submit-to");if(window.location.hash&&(d=d.replace(window.location.hash,"")),c=g?g.indexOf("?")>=0?g+f.replace("?","&"):g+f:e?d.replace(e,f):d+f,c=c.replace(/\/page(d)?\/\d+/,""),window.cvp_lf_reload_url)history.replaceState({query:a},null,c),window.location.href=c;else{var h=history&&history.state&&history.state.query?history.state.query:null;a!==h&&history.pushState({query:a},null,c)}}},get_result:function(b,c){var d=this;if(!window.cvp_lf_processing){window.cvp_lf_processing=!0;var e=a('[data-lfpage="search"]',c).length?"s=":"";e&&!b.match("[&]?s=")&&(b+=b?"&"+e:e);var f=["lang","m","p","posts","w","cat","withcomments","withoutcomments","search","exact","sentence","calendar","page","paged","more","tb","pb","author","order","orderby","year","monthnum","day","hour","minute","second","name","category_name","tag","feed","author_name","static","pagename","page_id","error","attachment","attachment_id","subpost","subpost_id","preview","robots","taxonomy","term","cpage","post_type","embed"],g=window.cvp_lf_special_url_params||[];f=f.concat(g),!a("body").hasClass("search")||e||b.match("[?&]s=")||f.push("s"),Array.isArray(f)&&!this.get_configuration(c,"submit-to")&&f.forEach(function(a){var c=new RegExp("[?&]"+a+"=");if(window.location.search.match(c)&&!b.match(c)){var e=encodeURI(d.param_in_url(a));e&&(e=a+"="+e,b+=b?"&"+e:e)}}),d.before_process(c),(PT_CV_PUBLIC.is_admin||!window.cvp_lf_reload_url)&&d.ajax_request(b,c),PT_CV_PUBLIC.is_admin||d.update_url(b,c),window.cvp_lf_processing=!1}},ajax_request:function(c,d){var e=this;a.ajax({type:"POST",url:PT_CV_PUBLIC.ajaxurl,data:{action:"live_filter_reload",query:c,view_data:PT_CV_PUBLIC.is_admin?window.cvp_admin_form:0,sid:d.find("[data-sid]").first().data("sid"),iselementor:d.find("[data-iselementor]").first().data("iselementor"),isblock:d.find("[data-isblock]").first().data("isblock"),postid:d.find("[data-postid]").first().data("postid"),lang:PT_CV_PUBLIC.lang,ajax_nonce:PT_CV_PUBLIC._nonce},beforeSend:function(){}}).done(function(c){PT_CV_PUBLIC.is_admin&&d.after(d.find('style[id*="inline-style"]')),window.cvp_lf_is_ajax=!0,f?e.loadmore_append(d,c):(d.html(c),e.init_pagination(d),e.init());var g=d.find("."+b+"page");a("body").trigger(b+"pagination-finished",[g,a(c)]),d.find("."+b+"pinterest").length>0&&new a.PT_CV_Pinterest({container:g})})},init_pagination:function(c){a("."+b+"pagination."+b+"ajax",c).each(function(){var b=a(this).attr("data-totalpages");a(this).bootstrapPaginator({bootstrapMajorVersion:3,currentPage:e,totalPages:b?parseInt(b):1,numberOfPages:PT_CV_PUBLIC.page_to_show,shouldShowPage:function(a,b,c){var d=null;if("undefined"!=typeof this&&"function"==typeof this.getPages){var e=this.getPages(),f=Array.isArray(e)?e.slice(0,parseInt(this.numberOfPages)):[];f.includes(e.first)&&"first"===a&&(d=!1),f.includes(e.last)&&"last"===a&&(d=!1)}if(null!==d)return d;var g=!0;switch(a){case"first":g=1!==c;break;case"prev":g=1!==c;break;case"next":g=c!==this.totalPages;break;case"last":g=c!==this.totalPages;break;case"page":g=!0}return g},itemContainerClass:function(a,b,c){var d="cv-pageitem-"+("page"===a?"number":a);return d+" "+(b===c?"active":"")}})})},on_click_pagination:function(){var f=this;a(".cvp-lfres").each(function(){var g=a(this),h=c.get_view_id(a(this));a('[data-sid="'+h+'"]').parent(c.cdata.selectors.pagination).each(function(){var i=a(this),j=i.find("."+b+"pagination");j.attr("data-disabled",1),j.find(".active a").off("click"),j.on("page-changed",function(a,b,c){e=c}),j.on("page-clicked",function(b,e,i,k){if(g.parent().find(d).length>0){var l=g.parent().find(d).first();f.process_filter(l,k),window.cvp_lf_reload_url||window.cvp_pagination_no_scroll||("function"==typeof window.cvp_theme_scrollto?window.cvp_theme_scrollto(l.offset().top-50):a("html, body").animate({scrollTop:window.cvp_lf_scroll_top||l.offset().top-50},1e3))}else{j.closest(c.cdata.selectors.pagination).prev(c.cdata.selectors.view).length>0&&sessionStorage.setItem("cvp_offsettop"+h,j.closest(c.cdata.selectors.pagination).prev(c.cdata.selectors.view).offset().top-50);var m=new a.PT_CV_Public({skip:!0}),n=m._get_paginated_url(k);window.location.href=n}}),f.loadmore_click(i,g,f,h)});var i=sessionStorage.getItem("cvp_offsettop"+h);parseInt(i)>0&&(a("html, body").animate({scrollTop:i},1e3),sessionStorage.removeItem("cvp_offsettop"+h))})},get_current_page:function(a){return e>1&&(a._page=e),a},loadmore_click:function(c,e,i,j){var k=c.find("."+b+"more");k.length&&(k.attr("data-disabled",1),k.on("click.lfloadmore",function(){var c=a(this),l=parseInt(c.attr("data-nextpages"));if(l&&!(1>=l)&&1!=f)if(f=1,g=function(){var a=l+1;a<=parseInt(c.attr("data-totalpages"))?c.attr("data-nextpages",a):c.remove()},h=c.next("."+b+"spinner"),e.parent().find(d).length>0){var m=e.parent().find(d).first();i.process_filter(m,l)}else{sessionStorage.setItem("cvp_offsettop"+j,k.offset().top-50);var n=new a.PT_CV_Public({skip:!0}),o=n._get_paginated_url(l);window.location.href=o}}))},loadmore_append:function(c,d){h&&h.removeClass("active");var e=c.find("."+b+"page");e.append(a(d).find("."+b+"page").html()),"function"==typeof g&&g(),f=0,g=null,h=null}}}(jQuery),
function(a){"use strict";PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c=a(window).width(),d=window.cvp_common,e=function(c){if(this.options=a.extend({_prefix:b,_autoload:1},c),0!==this.options._autoload){this.animation(),this.pagination(),this.openin_window(),this.openin_lightbox(),this.open_in(),this.grid_same_height(),this.iframe_dimension(),this.quicksand_filter(),this.parties_compatible();var d=this;a(window).on("orientationchange resize",function(){d.grid_same_height("resized"),a("body").trigger("cvp-resize")}),a("."+b+"same-height").length&&a('[role="tab"] a, [role="tab"], [data-toggle] a, [data-toggle]').on("click",function(){setTimeout(function(){d.grid_same_height("tab")},1e3)}),a("body").on(b+"pagination-finished-simple",function(){d.grid_same_height("resized")})}};e.prototype={reset_after:function(b){this.view_init(b),this.animation(),this.grid_same_height(b?"paging":"preview"),this.open_in(),this.openin_lightbox(),void 0===b&&this.quicksand_filter(),new a.PT_CV_Share_Count},view_init:function(c){new a.PT_CV_Collapsible,new a.PT_CV_Scrollable,new a.PT_CV_Glossary,void 0===c&&new a.PT_CV_Pinterest({container:a("."+b+"pinterest")})},iframe_dimension:function(){PT_CV_PUBLIC.is_mobile_tablet&&a("."+b+"view iframe").each(function(){var b=function(a){var b=a.width(),c=parseInt(a.attr("width")),d=parseInt(a.attr("height"));a.attr("width",b),a.attr("height",b*d/c)};a(this).on("load",function(){b(a(this))})})},open_in:function(){a("."+b+"none").each(function(){a(this).removeAttr("href")}),a("."+b+"none").on("click",function(a){a.preventDefault()})},grid_same_height:function(c){a("."+b+"same-height").children("."+b+"page").each(function(){if(!a(this).is(":hidden")){var b,e=d.get_device_by_width();switch(e){case"pc":b="cvc";break;case"tablet":b="cvct";break;case"mobile":b="cvcm"}var f=d.cdata.selectors.item,g=a(this).data(b),h=g,i=-1;if(g>1)for(;i<a(f,this).length;){var j=":lt("+h+")",k=i>0?":gt("+i+")":"";i+=g,h+=g;var l=a(f+j+k,this);d.lineup_fields(l,c)}}})},animation:function(){var c="."+b+"content-hover";PT_CV_PUBLIC.is_mobile&&a("."+b+"thumbnail",c).on("click",function(c){var e=a(this).closest(d.cdata.selectors.view);e.hasClass(b+"force-mask")||c.preventDefault()});var e=function(a){var c=a.find("."+b+"href-thumbnail"),d=c.attr("target")||c.attr("class");d.match(/\b(_self|_blank|_parent)\b/gi)?c[0].click():c.trigger("click")};a("."+b+"hover-wrapper","."+b+"clickable").off("click").on("click",function(b){b.target==this&&e(a(this).parent())}),a("."+b+"hover-wrapper *:not(."+b+"href-thumbnail)","."+b+"clickable").off("click").on("click",function(c){c.stopPropagation(),e(a(this).closest("."+b+"hover-wrapper")),(a(c.target).is("."+b+"title a")||a(c.target).is("."+b+"readmore")||a(c.target).is("."+b+"tao"))&&c.preventDefault()}),a("."+b+"overlay-wrapper","."+b+"clickable").off("click").on("click",function(b){b.target==this&&e(a(this).parent())}),a("."+b+"overlay-wrapper *","."+b+"clickable").off("click").on("click",function(c){c.stopPropagation(),e(a(this).closest("."+b+"content-item")),(a(c.target).is("."+b+"title a")||a(c.target).is("."+b+"readmore")||a(c.target).is("."+b+"tao"))&&c.preventDefault()}),a("."+b+"overlay-wrapper","."+b+"clickable").css("cursor","pointer")},pagination:function(){this._pagination_loadmore(),this._pagination_infinite()},_pagination_loadmore:function(){a("body").on("click","."+b+"more",function(){var b=a(this);d._pagination_handle(b)})},_pagination_infinite:function(){var c,e=this,f=function(c){a(d.cdata.selectors.pagination).each(function(){if(c=c?c:e._scrollTo(a(this),window.cvp_trigger_infinite?window.cvp_trigger_infinite:300),a(this).prev().hasClass(b+"pginfinite")&&c){var f=a(this).find("."+b+"more");a(this).prev().hasClass("cvp-lfres")?f.trigger("click.lfloadmore"):d._pagination_handle(f)}})},g=function(a,b){a.on("scroll",function(){c&&clearTimeout(c),c=setTimeout(b,200)})};g(a(window),function(){f()}),g(a("#"+b+"preview-box"),function(){f(a(this).scrollTop()+a(this).innerHeight()>=a(this)[0].scrollHeight)})},_scrollTo:function(b,c){if(0===a(b).length||a(b).is(":hidden"))return!1;var d=a(window).scrollTop(),e=d+a(window).height(),f=a(b).offset().top,g=f+a(b).height();return e>=g-(c?c:0)&&f>=d},openin_window:function(){var c=this;a("body").on("click","."+b+"window",function(b){b.preventDefault(),c.fn_openin_window(a(this))})},fn_openin_window:function(a){var b=a.attr("href"),c=parseInt(a.attr("data-width")),d=parseInt(a.attr("data-height")),e=window.screen.width/2-c/2,f=window.screen.height/2-d/2,g="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=1, resizable=no, copyhistory=no, ";window.open(b,"_blank",g+" top="+f+", left="+e+", width="+c+", height="+d)},openin_lightbox:function(){var e=this;a(document).on("cvpbox_complete",function(){if(a("#cvpcolorbox").hasClass(b+"lightbox-dialog")){var c=a.cvpcolorbox.element().attr("href");if(c){var e=d.pathname_from_url(c);"undefined"!=typeof _gaq&&_gaq.push(["_trackPageview",e]),"undefined"!=typeof ga&&ga("send",{hitType:"pageview",page:e})}}});var f=function(){var b="cvp-overflow-hidden";a(document).on("cvpbox_open",function(){a("html").addClass(b)}),a(document).on("cvpbox_closed",function(){a("html").removeClass(b)})};f();var g=function(){var b,c=window.location.href;a(document).on("cvpbox_clicked",function(a,c){b=c.attr("href")}),a(document).on("cvpbox_complete",function(){d.change_url_wo_reload(b)}),a(document).on("cvpbox_closed",function(){b=null,d.change_url_wo_reload(c)})};g(),a(document).on("cvpbox_closed",function(){a('[id="cvpcolorbox"]:not(#cvpcolorbox:first)').remove(),a('[id="cvpboxOverlay"]:not(#cvpboxOverlay:first)').remove()}),e.fn_lightbox_image(a("."+b+"lightbox-image")),a("body").off("click.cvplb","."+b+"lightbox").on("click.cvplb","."+b+"lightbox",function(b){b.preventDefault(),e.fn_lightbox_content(a(this))}),a("body").on("cvp-resize",function(){var b=a(window).width(),d=c;if(c=b,!(Math.abs(d-b)<30)){var e;"undefined"!=typeof e&&clearTimeout(e),e=setTimeout(function(){a("#cvpboxOverlay").is(":visible")&&a.cvpcolorbox.relaunch()},500)}})},fn_lightbox_image:function(c){var e=/\.(jpeg|jpg|gif|png|webp|bmp|tif|tiff|ico|svg)/i;c.cvpcolorbox({maxWidth:"95%",maxHeight:"90%",href:function(){var b=a(this).attr("href");return b.match(/youtube\.com|youtu\.be/)&&(b=b.replace("/watch?v=","/embed/").replace("/playlist","/embed/videoseries")),b},rel:function(){var b=a(this).attr("class"),c=b.split(" ");return b.indexOf("cvplbd")<0?c[1]:!1},title:function(){var c=a('a[href="'+a(this).attr("href")+'"]',d.cdata.selectors.item),e=c.closest(d.cdata.selectors.item).find("."+b+"title"),f=c.find("img"),g=e.length?e.text():f.length?f.attr("alt"):!1;return"function"==typeof window.cvp_set_lbtitle&&(g=window.cvp_set_lbtitle(c)),g},iframe:function(){return a(this).attr("href").match(e)?!1:!0},innerWidth:function(){return a(this).attr("href").match(e)?!1:window.cvp_lbwidth||"600px"},innerHeight:function(){return a(this).attr("href").match(e)?!1:window.cvp_lbheight||"400px"}})},fn_lightbox_content:function(c){var e,f,g=c.attr("data-content-selector");if(window.cvp_lb_change_url&&a(document).trigger("cvpbox_clicked",[c]),PT_CV_PUBLIC.is_mobile?(e=window.cvp_lbwidth_mobile||90,f=window.cvp_lbheight_mobile||75):(e=parseInt(c.attr("data-width"))||75,f=parseInt(c.attr("data-height"))||75),g){var h=b+"overlay",i=a("#"+h).length?a("#"+h):a("<div/>",{id:b+"overlay"}).css({background:"#000",opacity:.9,position:"fixed",width:"100%",height:"100%",left:0,top:0,zIndex:1e6}).appendTo("body");i.show(),a("body").css("cursor","progress");var j=b+"lightbox-content",k=a("#"+j).length?a("#"+j):a("<div/>",{id:j}).hide().appendTo("body");k.load(c.attr("href")+" "+g,function(g,h){i.hide(),a("body").css("cursor","default"),"error"!==h&&c.cvpcolorbox({open:!0,fixed:!0,className:b+"lightbox-dialog",width:e+"%",height:f+"%",html:k.html()?k.html():g,onComplete:function(){a("body").trigger(b+"lightbox-loaded"),a("#"+j).remove(),d.dynamic_init()}})})}else c.cvpcolorbox({iframe:!0,width:e+"%",height:f+"%"})},quicksand_filter:function(){new a.CVP_Shuffle_Filter,new a.CVP_LIVE_FILTER},unFitVids:function(){a(function(){setTimeout(function(){a("iframe",d.cdata.selectors.view).each(function(){var b=a(this).parent("div");b.length&&b.attr("class")&&b.attr("class").indexOf("fluid")>=0&&(a(this).insertBefore(b),b.remove())})},1500)})},parties_compatible:function(){var c=function(c){var e=0,f=setInterval(function(){var g=c.find("."+b+"page");g.length>0&&(clearInterval(f),window.cvp_reload_layout=!0,a("body").trigger(b+"pagination-finished",[g,g.find(d.cdata.selectors.item)])),e++>10&&clearInterval(f)},1e3)};a(document).on("facetwp-loaded",function(){c(a(".facetwp-template"))}),a("body").on("cvp-reload",function(a,b){c(b)})}},a(function(){var c=new e;a("body").on(b+"pagination-finished "+b+"pagination-finished-simple",function(a,b){b&&c.reset_after(1)}),window.cvp_enable_fitvid||c.unFitVids()}),window.cvp_js=e}(jQuery),function(a){"use strict";PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c=window.cvp_common,d=function(b){b=b?a('.cvp-responsive-image:not([style*="background-image"])',b):a('.cvp-responsive-image:not([style*="background-image"])'),b.each(function(){var b=a(this).find("img"),d=b.data("cvpsrc")||b.data("src")||b.attr("src");if("function"==typeof window.cvp_bgimg_set&&(d=window.cvp_bgimg_set(b)),!b.hasClass("cvplazy")||c.image_in_viewport(b)){"undefined"!=typeof d&&d&&a(this).css("background-image","url("+d+")");var f=a(this);f.cvp_imagesLoaded(function(){e(f),c.shuffle_update_each(b)})}})},e=function(a){if(void 0===a.css("aspect-ratio")&&a.is(":visible")&&!a.is(":hidden")){var b=a.width(),c=a.data("iw"),d=a.data("ih");if(b&&c&&d){var e=b*d/c;e>d&&(e=d),e+="px",a.css("height",e)}}},f=function(b){b=b?b:c.cdata.selectors.view,a(".pt-cv-carousel",b).off("slid.bs.carousel").on("slid.bs.carousel",function(){d(a(this).find(".carousel-inner .active"))}),a(".panel-collapse",b).off("show.bs.collapse").on("show.bs.collapse",function(){d(a(this))})};a(window).on("load scroll resize orientationchange cvpload",function(){d(),f()}),a("body").on(b+"pagination-finished",function(a,b){d(b),f(b)}),a("body").on("cvp-resize",function(){a(".cvp-responsive-image").each(function(){e(a(this))})})}(jQuery),function(a){"use strict";PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c={scclass:b+"socialsc",view:"."+b+"view",item:"."+b+"content-item",buttons:"."+b+"social-buttons",sprefix:b+"social-"};a.PT_CV_Share_Count=function(){this.do_count()},a.PT_CV_Share_Count.prototype={do_count:function(){a(c.view).each(function(){if(a(this).hasClass(c.scclass)){var b=a(this),d=[],e=a.map(b.find(c.item),function(b,e){return 0===e&&(d=a.map(a(b).find(c.buttons).find("a"),function(b){var d=a(b).attr("class");return d.replace(c.sprefix,"")})),a(b).data("pid")});a.ajax({type:"POST",url:PT_CV_PUBLIC.ajaxurl,data:{action:"share_count",posts:e,services:d,ajax_nonce:PT_CV_PUBLIC._nonce}}).done(function(d){var e=JSON.parse(d);a.each(e,function(d,e){var f=b.find(c.item+'[data-pid="'+d+'"]');a.each(e,function(a,b){f.find("."+c.sprefix+a).html(b)})})})}})}},a(function(){new a.PT_CV_Share_Count})}(jQuery),function(a){"use strict";a.PT_CV_Collapsible=a.PT_CV_Collapsible||{},PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix;a.PT_CV_Collapsible=function(c){this.options=a.extend({collapse_box:"."+b+"collapsible",icon_plus:"glyphicon-plus",icon_minus:"glyphicon-minus"},c),this._toggle_panel(this.options.collapse_box)},a.PT_CV_Collapsible.prototype={_toggle_panel:function(b){var c=this,d=a(".panel-collapse",b);d.each(function(){a(this).hasClass("in")&&c._toggle_class(a(this),"show")}),d.on("shown.bs.collapse",function(){c._toggle_class(a(this),"show")}),d.on("hidden.bs.collapse",function(){c._toggle_class(a(this))}),a(b).on("click","span.panel-collapsed",function(){"function"==typeof jQuery.fn.cvcollapse?a(this).parent().next().cvcollapse("toggle"):a(this).parent().next().collapse("toggle")}),d.on("show.bs.collapse",function(){c.for_sf(a(this),"hide-items")})},_toggle_class:function(a,b){var c,d,e=this,f=this.options;"show"===b?(c=f.icon_plus,d=f.icon_minus):(c=f.icon_minus,d=f.icon_plus),a.prev().find(".glyphicon").removeClass(c).addClass(d),setTimeout(function(){e.for_sf(a,"show-items-then-update")},250)},for_sf:function(a,b){var c=a.closest(".pt-cv-page");c.hasClass("cvpshuffled")&&("hide-items"===b?a.closest(".pt-cv-content-item").nextAll().css("opacity",0):(a.closest(".pt-cv-content-item").nextAll().css("opacity",1),c.cvp_shuffle("update")))}},a(function(){new a.PT_CV_Collapsible})}(jQuery),function(a){"use strict";a.PT_CV_Glossary=a.PT_CV_Glossary||{},PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix;a.PT_CV_Glossary=function(a){this.options=a;var b=this;setTimeout(function(){b._click()},500)},a.PT_CV_Glossary.prototype={_click:function(){a("."+b+"gls-menu a").off("click").on("click",function(c){if(c.preventDefault(),!a(this).hasClass("pt-active")){var d=this.hash;a(this).closest("."+b+"gls-menu").find(".pt-active").removeClass("pt-active"),a(this).addClass("pt-active");var e=a(this).closest("."+b+"gls-menu").parent().children("."+b+"glossary");e.length>0&&(a(this).parent().index()>0?(e.find("."+b+"gls-group").hide(),e.find(d).fadeIn()):e.find("."+b+"gls-group").show())}})}},a(function(){new a.PT_CV_Glossary})}(jQuery),function(a){a.PT_CV_Pinterest=a.PT_CV_Pinterest||{},PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix,c=window.cvp_common;a.PT_CV_Pinterest=function(c){this.options=a.extend({wrapper:"."+b+"wrapper",sfilter:"."+b+"filter-bar",container:"."+b+"pinterest",item:"."+b+"content-item",page:"."+b+"page"},c),this.init()},a.PT_CV_Pinterest.prototype={init:function(){var d=this;a(d.options.container).each(function(){var e=a(this),f=e.hasClass(b+"masonry"),g=e.closest(d.options.wrapper).find(d.options.sfilter);g.length||c.hidden_or_not_hidden(e,function(){d.render_layout(e,f)},function(){d.render_layout(e,f)},100)})},render_layout:function(b,d){var e=this,f=b.find(e.options.page).length?b.find(e.options.page+":visible"):b;c.shuffle_before(f),f.cvp_imagesLoaded(function(){f.cvp_shuffle({itemSelector:e.options.item,sizer:d?".col-md-3":null})}),f.on("layout.shuffle",function(){c.shuffle_after(f)}),f.on("cvp-pinterest-paginated",function(b,d){var e;d.each(function(){var b=a(this).data("pid");if(b){var c=f.find('[data-pid="'+b+'"]');c.length&&(e="undefined"==typeof e?c:e.add(c))}}),"undefined"!=typeof e&&c.shuffle_append(e,f)})}},a(function(){new a.PT_CV_Pinterest,a("body").on(b+"pagination-finished",function(c,d,e){if(d){var f=d.is("."+b+"view")?d:d.parent();f.hasClass(b+"pinterest")&&(f.hasClass(b+"pgregular")||window.cvp_reload_layout?new a.PT_CV_Pinterest({container:d}):d.trigger("cvp-pinterest-paginated",[e]))}})})}(jQuery),function(a){"use strict";a.PT_CV_Scrollable=a.PT_CV_Scrollable||{},PT_CV_PUBLIC=PT_CV_PUBLIC||{};var b=PT_CV_PUBLIC._prefix;a.PT_CV_Scrollable=function(a){this.options=a,this.swipe(),this.keyboard()},a.PT_CV_Scrollable.prototype={swipe:function(){a('[data-ride="cvcarousel"]',"."+b+"scrollable").cvp_swipe({swipe:function(b,c){"left"===c&&("function"==typeof jQuery.fn.cvcarousel?a(this).cvcarousel("next"):a(this).carousel("next")),"right"===c&&("function"==typeof jQuery.fn.cvcarousel?a(this).cvcarousel("prev"):a(this).carousel("prev"))},allowPageScroll:"vertical"})},keyboard:function(){a(".pt-cv-carousel").length&&a(document).on("keydown",function(b){if(!/input|textarea/i.test(b.target.tagName)){var c=a(".pt-cv-carousel"),d="function"==typeof jQuery.fn.cvcarousel;switch(b.which){case 37:b.preventDefault(),d?c.cvcarousel("prev"):c.carousel("prev");break;case 39:b.preventDefault(),d?c.cvcarousel("next"):c.carousel("next")}}})}},a(function(){new a.PT_CV_Scrollable})}(jQuery);
var VALID_CLASSNAME=/^[_a-zA-Z\- ]*$/
var constructCssPath=el=> {
if(!(el instanceof Element)) return
let path=[]
while (el.nodeType===Node.ELEMENT_NODE){
let selector=el.nodeName.toLowerCase()
if(el.id){
selector +=`#${el.id}`
path.unshift(selector)
break
}else if(el.className&&VALID_CLASSNAME.test(el.className)){
selector +=`.${(el.className.trim()).replace(/\s+/g, '.')}`
}else{
let sib=el,
nth=1
while ((sib=sib.previousElementSibling)){
if(sib.nodeName.toLowerCase()==selector) nth++
}
if(nth!=1) selector +=':nth-of-type(' + nth + ')'
}
path.unshift(selector)
el=el.parentNode
}
return path.join(' > ')
}
var defaultProps={
root: 'body',
outlineStyle: '5px solid rgba(204, 146, 62, 0.3)',
onClick: el=> console.log('Element was clicked:', constructCssPath(el))
}
var Inspector=((props={})=> {
const {root, excluded, outlineStyle}={
...defaultProps,
...props
}
let onClick=props.onClick||defaultProps.onClick
let selected, excludedElements
const removeHighlight=el=> {
if(el) el.style.outline='none'
}
const highlight=el=> {
el.style.outline=outlineStyle
el.style.outlineOffset=`-${el.style.outlineWidth}`
}
const shouldBeExcluded=ev=> {
if(excludedElements&&excludedElements.length&&excludedElements.some(parent=> (parent===ev.target||parent.contains(ev.target)))){
return true
}}
const handleMouseOver=ev=> {
if(shouldBeExcluded(ev)){
return
}
selected=ev.target
highlight(selected)
}
const handleMouseOut=ev=> {
if(shouldBeExcluded(ev)){
return
}
removeHighlight(ev.target)
}
const handleClick=ev=> {
if(shouldBeExcluded(ev)){
return
}
ev.preventDefault()
ev.stopPropagation()
onClick(ev.target)
return false
}
const prepareExcluded=(rootEl)=> {
if(!excluded.length){
return []
}
const excludedNested=excluded.flatMap(element=> {
if(typeof element==='string'||element instanceof String){
return Array.from(rootEl.querySelectorAll(element))
}else if(element instanceof Element){
return [element]
}else if(element.length>0&&element[0] instanceof Element){
return Array.from(element)
}})
return Array.from(excludedNested).flat()
}
const enable=onClickCallback=> {
const rootEl=document.querySelector(root)
if(!rootEl)
return
if(excluded){
excludedElements=prepareExcluded(rootEl)
}
rootEl.addEventListener('mouseover', handleMouseOver, true)
rootEl.addEventListener('mouseout', handleMouseOut, true)
rootEl.addEventListener('click', handleClick, true)
if(onClickCallback){
onClick=onClickCallback
}}
const cancel=()=> {
const rootEl=document.querySelector(root)
if(!rootEl)
return
rootEl.removeEventListener('mouseover', handleMouseOver, true)
rootEl.removeEventListener('mouseout', handleMouseOut, true)
rootEl.removeEventListener('click', handleClick, true)
removeHighlight(selected)
}
return {
enable,
cancel
}})
window.classStack=[]
window.classNameMap={}
function processStack(){
classStack.forEach(element=> {
document.head.removeChild(element);
});
classStack.forEach(element=> {
document.head.appendChild(element)
});
}
function pushToClassMap(classNames){
if(window.classNameMap[wpdata['object_id']]!=undefined){
window.classNameMap[wpdata['object_id']].push(classNames)
}
else window.classNameMap[wpdata['object_id']]=[classNames]
console.log(window.classNameMap)
}
var inspector=Inspector({
onClick:(el)=>{
console.log(el)
const styleElement=document.createElement('style');
var css="."+Array.from(el.classList).join(".")+"{display:none!important}"
var classNames=Array.from(el.classList).join(".")
styleElement.textContent=css;
pushToClassMap(classNames)
window.classStack.push(styleElement)
document.head.appendChild(styleElement)
window.parent.postMessage("removed")
}})
window.inspector=inspector
window.inpectorData=wpdata;
var pJS=function(tag_id, params){
var canvas_el=document.querySelector('#'+tag_id+' > .particles-js-canvas-el');
this.pJS={
canvas: {
el: canvas_el,
w: canvas_el.offsetWidth,
h: canvas_el.offsetHeight
},
particles: {
number: {
value: 400,
density: {
enable: true,
value_area: 800
}},
color: {
value: '#fff'
},
shape: {
type: 'circle',
stroke: {
width: 0,
color: '#ff0000'
},
polygon: {
nb_sides: 5
},
image: {
src: '',
width: 100,
height: 100
}},
opacity: {
value: 1,
random: false,
anim: {
enable: false,
speed: 2,
opacity_min: 0,
sync: false
}},
size: {
value: 20,
random: false,
anim: {
enable: false,
speed: 20,
size_min: 0,
sync: false
}},
line_linked: {
enable: true,
distance: 100,
color: '#fff',
opacity: 1,
width: 1
},
move: {
enable: true,
speed: 2,
direction: 'none',
random: false,
straight: false,
out_mode: 'out',
bounce: false,
attract: {
enable: false,
rotateX: 3000,
rotateY: 3000
}},
array: []
},
interactivity: {
detect_on: 'canvas',
events: {
onhover: {
enable: true,
mode: 'grab'
},
onclick: {
enable: true,
mode: 'push'
},
resize: true
},
modes: {
grab:{
distance: 100,
line_linked:{
opacity: 1
}},
bubble:{
distance: 200,
size: 80,
duration: 0.4
},
repulse:{
distance: 200,
duration: 0.4
},
push:{
particles_nb: 4
},
remove:{
particles_nb: 2
}},
mouse:{}},
retina_detect: false,
fn: {
interact: {},
modes: {},
vendors:{}},
tmp: {}};
var pJS=this.pJS;
if(params){
Object.deepExtend(pJS, params);
}
pJS.tmp.obj={
size_value: pJS.particles.size.value,
size_anim_speed: pJS.particles.size.anim.speed,
move_speed: pJS.particles.move.speed,
line_linked_distance: pJS.particles.line_linked.distance,
line_linked_width: pJS.particles.line_linked.width,
mode_grab_distance: pJS.interactivity.modes.grab.distance,
mode_bubble_distance: pJS.interactivity.modes.bubble.distance,
mode_bubble_size: pJS.interactivity.modes.bubble.size,
mode_repulse_distance: pJS.interactivity.modes.repulse.distance
};
pJS.fn.retinaInit=function(){
if(pJS.retina_detect&&window.devicePixelRatio > 1){
pJS.canvas.pxratio=window.devicePixelRatio;
pJS.tmp.retina=true;
}else{
pJS.canvas.pxratio=1;
pJS.tmp.retina=false;
}
pJS.canvas.w=pJS.canvas.el.offsetWidth * pJS.canvas.pxratio;
pJS.canvas.h=pJS.canvas.el.offsetHeight * pJS.canvas.pxratio;
pJS.particles.size.value=pJS.tmp.obj.size_value * pJS.canvas.pxratio;
pJS.particles.size.anim.speed=pJS.tmp.obj.size_anim_speed * pJS.canvas.pxratio;
pJS.particles.move.speed=pJS.tmp.obj.move_speed * pJS.canvas.pxratio;
pJS.particles.line_linked.distance=pJS.tmp.obj.line_linked_distance * pJS.canvas.pxratio;
pJS.interactivity.modes.grab.distance=pJS.tmp.obj.mode_grab_distance * pJS.canvas.pxratio;
pJS.interactivity.modes.bubble.distance=pJS.tmp.obj.mode_bubble_distance * pJS.canvas.pxratio;
pJS.particles.line_linked.width=pJS.tmp.obj.line_linked_width * pJS.canvas.pxratio;
pJS.interactivity.modes.bubble.size=pJS.tmp.obj.mode_bubble_size * pJS.canvas.pxratio;
pJS.interactivity.modes.repulse.distance=pJS.tmp.obj.mode_repulse_distance * pJS.canvas.pxratio;
};
pJS.fn.canvasInit=function(){
pJS.canvas.ctx=pJS.canvas.el.getContext('2d');
};
pJS.fn.canvasSize=function(){
pJS.canvas.el.width=pJS.canvas.w;
pJS.canvas.el.height=pJS.canvas.h;
if(pJS&&pJS.interactivity.events.resize){
window.addEventListener('resize', function(){
pJS.canvas.w=pJS.canvas.el.offsetWidth;
pJS.canvas.h=pJS.canvas.el.offsetHeight;
if(pJS.tmp.retina){
pJS.canvas.w *=pJS.canvas.pxratio;
pJS.canvas.h *=pJS.canvas.pxratio;
}
pJS.canvas.el.width=pJS.canvas.w;
pJS.canvas.el.height=pJS.canvas.h;
if(!pJS.particles.move.enable){
pJS.fn.particlesEmpty();
pJS.fn.particlesCreate();
pJS.fn.particlesDraw();
pJS.fn.vendors.densityAutoParticles();
}
pJS.fn.vendors.densityAutoParticles();
});
}};
pJS.fn.canvasPaint=function(){
pJS.canvas.ctx.fillRect(0, 0, pJS.canvas.w, pJS.canvas.h);
};
pJS.fn.canvasClear=function(){
pJS.canvas.ctx.clearRect(0, 0, pJS.canvas.w, pJS.canvas.h);
};
pJS.fn.particle=function(color, opacity, position){
this.radius=(pJS.particles.size.random ? Math.random():1) * pJS.particles.size.value;
if(pJS.particles.size.anim.enable){
this.size_status=false;
this.vs=pJS.particles.size.anim.speed / 100;
if(!pJS.particles.size.anim.sync){
this.vs=this.vs * Math.random();
}}
this.x=position ? position.x:Math.random() * pJS.canvas.w;
this.y=position ? position.y:Math.random() * pJS.canvas.h;
if(this.x > pJS.canvas.w - this.radius*2) this.x=this.x - this.radius;
else if(this.x < this.radius*2) this.x=this.x + this.radius;
if(this.y > pJS.canvas.h - this.radius*2) this.y=this.y - this.radius;
else if(this.y < this.radius*2) this.y=this.y + this.radius;
if(pJS.particles.move.bounce){
pJS.fn.vendors.checkOverlap(this, position);
}
this.color={};
if(typeof(color.value)=='object'){
if(color.value instanceof Array){
var color_selected=color.value[Math.floor(Math.random() * pJS.particles.color.value.length)];
this.color.rgb=hexToRgb(color_selected);
}else{
if(color.value.r!=undefined&&color.value.g!=undefined&&color.value.b!=undefined){
this.color.rgb={
r: color.value.r,
g: color.value.g,
b: color.value.b
}}
if(color.value.h!=undefined&&color.value.s!=undefined&&color.value.l!=undefined){
this.color.hsl={
h: color.value.h,
s: color.value.s,
l: color.value.l
}}
}}
else if(color.value=='random'){
this.color.rgb={
r: (Math.floor(Math.random() * (255 - 0 + 1)) + 0),
g: (Math.floor(Math.random() * (255 - 0 + 1)) + 0),
b: (Math.floor(Math.random() * (255 - 0 + 1)) + 0)
}}
else if(typeof(color.value)=='string'){
this.color=color;
this.color.rgb=hexToRgb(this.color.value);
}
this.opacity=(pJS.particles.opacity.random ? Math.random():1) * pJS.particles.opacity.value;
if(pJS.particles.opacity.anim.enable){
this.opacity_status=false;
this.vo=pJS.particles.opacity.anim.speed / 100;
if(!pJS.particles.opacity.anim.sync){
this.vo=this.vo * Math.random();
}}
var velbase={}
switch(pJS.particles.move.direction){
case 'top':
velbase={ x:0, y:-1 };
break;
case 'top-right':
velbase={ x:0.5, y:-0.5 };
break;
case 'right':
velbase={ x:1, y:-0 };
break;
case 'bottom-right':
velbase={ x:0.5, y:0.5 };
break;
case 'bottom':
velbase={ x:0, y:1 };
break;
case 'bottom-left':
velbase={ x:-0.5, y:1 };
break;
case 'left':
velbase={ x:-1, y:0 };
break;
case 'top-left':
velbase={ x:-0.5, y:-0.5 };
break;
default:
velbase={ x:0, y:0 };
break;
}
if(pJS.particles.move.straight){
this.vx=velbase.x;
this.vy=velbase.y;
if(pJS.particles.move.random){
this.vx=this.vx * (Math.random());
this.vy=this.vy * (Math.random());
}}else{
this.vx=velbase.x + Math.random()-0.5;
this.vy=velbase.y + Math.random()-0.5;
}
this.vx_i=this.vx;
this.vy_i=this.vy;
var shape_type=pJS.particles.shape.type;
if(typeof(shape_type)=='object'){
if(shape_type instanceof Array){
var shape_selected=shape_type[Math.floor(Math.random() * shape_type.length)];
this.shape=shape_selected;
}}else{
this.shape=shape_type;
}
if(this.shape=='image'){
var sh=pJS.particles.shape;
this.img={
src: sh.image.src,
ratio: sh.image.width / sh.image.height
}
if(!this.img.ratio) this.img.ratio=1;
if(pJS.tmp.img_type=='svg'&&pJS.tmp.source_svg!=undefined){
pJS.fn.vendors.createSvgImg(this);
if(pJS.tmp.pushing){
this.img.loaded=false;
}}
}};
pJS.fn.particle.prototype.draw=function(){
var p=this;
if(p.radius_bubble!=undefined){
var radius=p.radius_bubble;
}else{
var radius=p.radius;
}
if(p.opacity_bubble!=undefined){
var opacity=p.opacity_bubble;
}else{
var opacity=p.opacity;
}
if(p.color.rgb){
var color_value='rgba('+p.color.rgb.r+','+p.color.rgb.g+','+p.color.rgb.b+','+opacity+')';
}else{
var color_value='hsla('+p.color.hsl.h+','+p.color.hsl.s+'%,'+p.color.hsl.l+'%,'+opacity+')';
}
pJS.canvas.ctx.fillStyle=color_value;
pJS.canvas.ctx.beginPath();
switch(p.shape){
case 'circle':
pJS.canvas.ctx.arc(p.x, p.y, radius, 0, Math.PI * 2, false);
break;
case 'edge':
pJS.canvas.ctx.rect(p.x-radius, p.y-radius, radius*2, radius*2);
break;
case 'triangle':
pJS.fn.vendors.drawShape(pJS.canvas.ctx, p.x-radius, p.y+radius / 1.66, radius*2, 3, 2);
break;
case 'polygon':
pJS.fn.vendors.drawShape(pJS.canvas.ctx,
p.x - radius / (pJS.particles.shape.polygon.nb_sides/3.5),
p.y - radius / (2.66/3.5),
radius*2.66 / (pJS.particles.shape.polygon.nb_sides/3),
pJS.particles.shape.polygon.nb_sides,
1 
);
break;
case 'star':
pJS.fn.vendors.drawShape(pJS.canvas.ctx,
p.x - radius*2 / (pJS.particles.shape.polygon.nb_sides/4),
p.y - radius / (2*2.66/3.5),
radius*2*2.66 / (pJS.particles.shape.polygon.nb_sides/3),
pJS.particles.shape.polygon.nb_sides,
2 
);
break;
case 'image':
function draw(){
pJS.canvas.ctx.drawImage(img_obj,
p.x-radius,
p.y-radius,
radius*2,
radius*2 / p.img.ratio
);
}
if(pJS.tmp.img_type=='svg'){
var img_obj=p.img.obj;
}else{
var img_obj=pJS.tmp.img_obj;
}
if(img_obj){
draw();
}
break;
}
pJS.canvas.ctx.closePath();
if(pJS.particles.shape.stroke.width > 0){
pJS.canvas.ctx.strokeStyle=pJS.particles.shape.stroke.color;
pJS.canvas.ctx.lineWidth=pJS.particles.shape.stroke.width;
pJS.canvas.ctx.stroke();
}
pJS.canvas.ctx.fill();
};
pJS.fn.particlesCreate=function(){
for(var i=0; i < pJS.particles.number.value; i++){
pJS.particles.array.push(new pJS.fn.particle(pJS.particles.color, pJS.particles.opacity.value));
}};
pJS.fn.particlesUpdate=function(){
for(var i=0; i < pJS.particles.array.length; i++){
var p=pJS.particles.array[i];
if(pJS.particles.move.enable){
var ms=pJS.particles.move.speed/2;
p.x +=p.vx * ms;
p.y +=p.vy * ms;
}
if(pJS.particles.opacity.anim.enable){
if(p.opacity_status==true){
if(p.opacity >=pJS.particles.opacity.value) p.opacity_status=false;
p.opacity +=p.vo;
}else{
if(p.opacity <=pJS.particles.opacity.anim.opacity_min) p.opacity_status=true;
p.opacity -=p.vo;
}
if(p.opacity < 0) p.opacity=0;
}
if(pJS.particles.size.anim.enable){
if(p.size_status==true){
if(p.radius >=pJS.particles.size.value) p.size_status=false;
p.radius +=p.vs;
}else{
if(p.radius <=pJS.particles.size.anim.size_min) p.size_status=true;
p.radius -=p.vs;
}
if(p.radius < 0) p.radius=0;
}
if(pJS.particles.move.out_mode=='bounce'){
var new_pos={
x_left: p.radius,
x_right:  pJS.canvas.w,
y_top: p.radius,
y_bottom: pJS.canvas.h
}}else{
var new_pos={
x_left: -p.radius,
x_right: pJS.canvas.w + p.radius,
y_top: -p.radius,
y_bottom: pJS.canvas.h + p.radius
}}
if(p.x - p.radius > pJS.canvas.w){
p.x=new_pos.x_left;
p.y=Math.random() * pJS.canvas.h;
}
else if(p.x + p.radius < 0){
p.x=new_pos.x_right;
p.y=Math.random() * pJS.canvas.h;
}
if(p.y - p.radius > pJS.canvas.h){
p.y=new_pos.y_top;
p.x=Math.random() * pJS.canvas.w;
}
else if(p.y + p.radius < 0){
p.y=new_pos.y_bottom;
p.x=Math.random() * pJS.canvas.w;
}
switch(pJS.particles.move.out_mode){
case 'bounce':
if(p.x + p.radius > pJS.canvas.w) p.vx=-p.vx;
else if(p.x - p.radius < 0) p.vx=-p.vx;
if(p.y + p.radius > pJS.canvas.h) p.vy=-p.vy;
else if(p.y - p.radius < 0) p.vy=-p.vy;
break;
}
if(isInArray('grab', pJS.interactivity.events.onhover.mode)){
pJS.fn.modes.grabParticle(p);
}
if(isInArray('bubble', pJS.interactivity.events.onhover.mode)||isInArray('bubble', pJS.interactivity.events.onclick.mode)){
pJS.fn.modes.bubbleParticle(p);
}
if(isInArray('repulse', pJS.interactivity.events.onhover.mode)||isInArray('repulse', pJS.interactivity.events.onclick.mode)){
pJS.fn.modes.repulseParticle(p);
}
if(pJS.particles.line_linked.enable||pJS.particles.move.attract.enable){
for(var j=i + 1; j < pJS.particles.array.length; j++){
var p2=pJS.particles.array[j];
if(pJS.particles.line_linked.enable){
pJS.fn.interact.linkParticles(p,p2);
}
if(pJS.particles.move.attract.enable){
pJS.fn.interact.attractParticles(p,p2);
}
if(pJS.particles.move.bounce){
pJS.fn.interact.bounceParticles(p,p2);
}}
}}
};
pJS.fn.particlesDraw=function(){
pJS.canvas.ctx.clearRect(0, 0, pJS.canvas.w, pJS.canvas.h);
pJS.fn.particlesUpdate();
for(var i=0; i < pJS.particles.array.length; i++){
var p=pJS.particles.array[i];
p.draw();
}};
pJS.fn.particlesEmpty=function(){
pJS.particles.array=[];
};
pJS.fn.particlesRefresh=function(){
cancelRequestAnimFrame(pJS.fn.checkAnimFrame);
cancelRequestAnimFrame(pJS.fn.drawAnimFrame);
pJS.tmp.source_svg=undefined;
pJS.tmp.img_obj=undefined;
pJS.tmp.count_svg=0;
pJS.fn.particlesEmpty();
pJS.fn.canvasClear();
pJS.fn.vendors.start();
};
pJS.fn.interact.linkParticles=function(p1, p2){
var dx=p1.x - p2.x,
dy=p1.y - p2.y,
dist=Math.sqrt(dx*dx + dy*dy);
if(dist <=pJS.particles.line_linked.distance){
var opacity_line=pJS.particles.line_linked.opacity - (dist / (1/pJS.particles.line_linked.opacity)) / pJS.particles.line_linked.distance;
if(opacity_line > 0){
var color_line=pJS.particles.line_linked.color_rgb_line;
pJS.canvas.ctx.strokeStyle='rgba('+color_line.r+','+color_line.g+','+color_line.b+','+opacity_line+')';
pJS.canvas.ctx.lineWidth=pJS.particles.line_linked.width;
pJS.canvas.ctx.beginPath();
pJS.canvas.ctx.moveTo(p1.x, p1.y);
pJS.canvas.ctx.lineTo(p2.x, p2.y);
pJS.canvas.ctx.stroke();
pJS.canvas.ctx.closePath();
}}
};
pJS.fn.interact.attractParticles=function(p1, p2){
var dx=p1.x - p2.x,
dy=p1.y - p2.y,
dist=Math.sqrt(dx*dx + dy*dy);
if(dist <=pJS.particles.line_linked.distance){
var ax=dx/(pJS.particles.move.attract.rotateX*1000),
ay=dy/(pJS.particles.move.attract.rotateY*1000);
p1.vx -=ax;
p1.vy -=ay;
p2.vx +=ax;
p2.vy +=ay;
}}
pJS.fn.interact.bounceParticles=function(p1, p2){
var dx=p1.x - p2.x,
dy=p1.y - p2.y,
dist=Math.sqrt(dx*dx + dy*dy),
dist_p=p1.radius+p2.radius;
if(dist <=dist_p){
p1.vx=-p1.vx;
p1.vy=-p1.vy;
p2.vx=-p2.vx;
p2.vy=-p2.vy;
}}
pJS.fn.modes.pushParticles=function(nb, pos){
pJS.tmp.pushing=true;
for(var i=0; i < nb; i++){
pJS.particles.array.push(new pJS.fn.particle(pJS.particles.color,
pJS.particles.opacity.value,
{
'x': pos ? pos.pos_x:Math.random() * pJS.canvas.w,
'y': pos ? pos.pos_y:Math.random() * pJS.canvas.h
}
)
)
if(i==nb-1){
if(!pJS.particles.move.enable){
pJS.fn.particlesDraw();
}
pJS.tmp.pushing=false;
}}
};
pJS.fn.modes.removeParticles=function(nb){
pJS.particles.array.splice(0, nb);
if(!pJS.particles.move.enable){
pJS.fn.particlesDraw();
}};
pJS.fn.modes.bubbleParticle=function(p){
if(pJS.interactivity.events.onhover.enable&&isInArray('bubble', pJS.interactivity.events.onhover.mode)){
var dx_mouse=p.x - pJS.interactivity.mouse.pos_x,
dy_mouse=p.y - pJS.interactivity.mouse.pos_y,
dist_mouse=Math.sqrt(dx_mouse*dx_mouse + dy_mouse*dy_mouse),
ratio=1 - dist_mouse / pJS.interactivity.modes.bubble.distance;
function init(){
p.opacity_bubble=p.opacity;
p.radius_bubble=p.radius;
}
if(dist_mouse <=pJS.interactivity.modes.bubble.distance){
if(ratio >=0&&pJS.interactivity.status=='mousemove'){
if(pJS.interactivity.modes.bubble.size!=pJS.particles.size.value){
if(pJS.interactivity.modes.bubble.size > pJS.particles.size.value){
var size=p.radius + (pJS.interactivity.modes.bubble.size*ratio);
if(size >=0){
p.radius_bubble=size;
}}else{
var dif=p.radius - pJS.interactivity.modes.bubble.size,
size=p.radius - (dif*ratio);
if(size > 0){
p.radius_bubble=size;
}else{
p.radius_bubble=0;
}}
}
if(pJS.interactivity.modes.bubble.opacity!=pJS.particles.opacity.value){
if(pJS.interactivity.modes.bubble.opacity > pJS.particles.opacity.value){
var opacity=pJS.interactivity.modes.bubble.opacity*ratio;
if(opacity > p.opacity&&opacity <=pJS.interactivity.modes.bubble.opacity){
p.opacity_bubble=opacity;
}}else{
var opacity=p.opacity - (pJS.particles.opacity.value-pJS.interactivity.modes.bubble.opacity)*ratio;
if(opacity < p.opacity&&opacity >=pJS.interactivity.modes.bubble.opacity){
p.opacity_bubble=opacity;
}}
}}
}else{
init();
}
if(pJS.interactivity.status=='mouseleave'){
init();
}}
else if(pJS.interactivity.events.onclick.enable&&isInArray('bubble', pJS.interactivity.events.onclick.mode)){
if(pJS.tmp.bubble_clicking){
var dx_mouse=p.x - pJS.interactivity.mouse.click_pos_x,
dy_mouse=p.y - pJS.interactivity.mouse.click_pos_y,
dist_mouse=Math.sqrt(dx_mouse*dx_mouse + dy_mouse*dy_mouse),
time_spent=(new Date().getTime() - pJS.interactivity.mouse.click_time)/1000;
if(time_spent > pJS.interactivity.modes.bubble.duration){
pJS.tmp.bubble_duration_end=true;
}
if(time_spent > pJS.interactivity.modes.bubble.duration*2){
pJS.tmp.bubble_clicking=false;
pJS.tmp.bubble_duration_end=false;
}}
function process(bubble_param, particles_param, p_obj_bubble, p_obj, id){
if(bubble_param!=particles_param){
if(!pJS.tmp.bubble_duration_end){
if(dist_mouse <=pJS.interactivity.modes.bubble.distance){
if(p_obj_bubble!=undefined) var obj=p_obj_bubble;
else var obj=p_obj;
if(obj!=bubble_param){
var value=p_obj - (time_spent * (p_obj - bubble_param) / pJS.interactivity.modes.bubble.duration);
if(id=='size') p.radius_bubble=value;
if(id=='opacity') p.opacity_bubble=value;
}}else{
if(id=='size') p.radius_bubble=undefined;
if(id=='opacity') p.opacity_bubble=undefined;
}}else{
if(p_obj_bubble!=undefined){
var value_tmp=p_obj - (time_spent * (p_obj - bubble_param) / pJS.interactivity.modes.bubble.duration),
dif=bubble_param - value_tmp;
value=bubble_param + dif;
if(id=='size') p.radius_bubble=value;
if(id=='opacity') p.opacity_bubble=value;
}}
}}
if(pJS.tmp.bubble_clicking){
process(pJS.interactivity.modes.bubble.size, pJS.particles.size.value, p.radius_bubble, p.radius, 'size');
process(pJS.interactivity.modes.bubble.opacity, pJS.particles.opacity.value, p.opacity_bubble, p.opacity, 'opacity');
}}
};
pJS.fn.modes.repulseParticle=function(p){
if(pJS.interactivity.events.onhover.enable&&isInArray('repulse', pJS.interactivity.events.onhover.mode)&&pJS.interactivity.status=='mousemove'){
var dx_mouse=p.x - pJS.interactivity.mouse.pos_x,
dy_mouse=p.y - pJS.interactivity.mouse.pos_y,
dist_mouse=Math.sqrt(dx_mouse*dx_mouse + dy_mouse*dy_mouse);
var normVec={x: dx_mouse/dist_mouse, y: dy_mouse/dist_mouse},
repulseRadius=pJS.interactivity.modes.repulse.distance,
velocity=100,
repulseFactor=clamp((1/repulseRadius)*(-1*Math.pow(dist_mouse/repulseRadius,2)+1)*repulseRadius*velocity, 0, 50);
var pos={
x: p.x + normVec.x * repulseFactor,
y: p.y + normVec.y * repulseFactor
}
if(pJS.particles.move.out_mode=='bounce'){
if(pos.x - p.radius > 0&&pos.x + p.radius < pJS.canvas.w) p.x=pos.x;
if(pos.y - p.radius > 0&&pos.y + p.radius < pJS.canvas.h) p.y=pos.y;
}else{
p.x=pos.x;
p.y=pos.y;
}}
else if(pJS.interactivity.events.onclick.enable&&isInArray('repulse', pJS.interactivity.events.onclick.mode)){
if(!pJS.tmp.repulse_finish){
pJS.tmp.repulse_count++;
if(pJS.tmp.repulse_count==pJS.particles.array.length){
pJS.tmp.repulse_finish=true;
}}
if(pJS.tmp.repulse_clicking){
var repulseRadius=Math.pow(pJS.interactivity.modes.repulse.distance/6, 3);
var dx=pJS.interactivity.mouse.click_pos_x - p.x,
dy=pJS.interactivity.mouse.click_pos_y - p.y,
d=dx*dx + dy*dy;
var force=-repulseRadius / d * 1;
function process(){
var f=Math.atan2(dy,dx);
p.vx=force * Math.cos(f);
p.vy=force * Math.sin(f);
if(pJS.particles.move.out_mode=='bounce'){
var pos={
x: p.x + p.vx,
y: p.y + p.vy
}
if(pos.x + p.radius > pJS.canvas.w) p.vx=-p.vx;
else if(pos.x - p.radius < 0) p.vx=-p.vx;
if(pos.y + p.radius > pJS.canvas.h) p.vy=-p.vy;
else if(pos.y - p.radius < 0) p.vy=-p.vy;
}}
if(d <=repulseRadius){
process();
}}else{
if(pJS.tmp.repulse_clicking==false){
p.vx=p.vx_i;
p.vy=p.vy_i;
}}
}}
pJS.fn.modes.grabParticle=function(p){
if(pJS.interactivity.events.onhover.enable&&pJS.interactivity.status=='mousemove'){
var dx_mouse=p.x - pJS.interactivity.mouse.pos_x,
dy_mouse=p.y - pJS.interactivity.mouse.pos_y,
dist_mouse=Math.sqrt(dx_mouse*dx_mouse + dy_mouse*dy_mouse);
if(dist_mouse <=pJS.interactivity.modes.grab.distance){
var opacity_line=pJS.interactivity.modes.grab.line_linked.opacity - (dist_mouse / (1/pJS.interactivity.modes.grab.line_linked.opacity)) / pJS.interactivity.modes.grab.distance;
if(opacity_line > 0){
var color_line=pJS.particles.line_linked.color_rgb_line;
pJS.canvas.ctx.strokeStyle='rgba('+color_line.r+','+color_line.g+','+color_line.b+','+opacity_line+')';
pJS.canvas.ctx.lineWidth=pJS.particles.line_linked.width;
pJS.canvas.ctx.beginPath();
pJS.canvas.ctx.moveTo(p.x, p.y);
pJS.canvas.ctx.lineTo(pJS.interactivity.mouse.pos_x, pJS.interactivity.mouse.pos_y);
pJS.canvas.ctx.stroke();
pJS.canvas.ctx.closePath();
}}
}};
pJS.fn.vendors.eventsListeners=function(){
if(pJS.interactivity.detect_on=='window'){
pJS.interactivity.el=window;
}else{
pJS.interactivity.el=pJS.canvas.el;
}
if(pJS.interactivity.events.onhover.enable||pJS.interactivity.events.onclick.enable){
pJS.interactivity.el.addEventListener('mousemove', function(e){
if(pJS.interactivity.el==window){
var pos_x=e.clientX,
pos_y=e.clientY;
}else{
var pos_x=e.offsetX||e.clientX,
pos_y=e.offsetY||e.clientY;
}
pJS.interactivity.mouse.pos_x=pos_x;
pJS.interactivity.mouse.pos_y=pos_y;
if(pJS.tmp.retina){
pJS.interactivity.mouse.pos_x *=pJS.canvas.pxratio;
pJS.interactivity.mouse.pos_y *=pJS.canvas.pxratio;
}
pJS.interactivity.status='mousemove';
});
pJS.interactivity.el.addEventListener('mouseleave', function(e){
pJS.interactivity.mouse.pos_x=null;
pJS.interactivity.mouse.pos_y=null;
pJS.interactivity.status='mouseleave';
});
}
if(pJS.interactivity.events.onclick.enable){
pJS.interactivity.el.addEventListener('click', function(){
pJS.interactivity.mouse.click_pos_x=pJS.interactivity.mouse.pos_x;
pJS.interactivity.mouse.click_pos_y=pJS.interactivity.mouse.pos_y;
pJS.interactivity.mouse.click_time=new Date().getTime();
if(pJS.interactivity.events.onclick.enable){
switch(pJS.interactivity.events.onclick.mode){
case 'push':
if(pJS.particles.move.enable){
pJS.fn.modes.pushParticles(pJS.interactivity.modes.push.particles_nb, pJS.interactivity.mouse);
}else{
if(pJS.interactivity.modes.push.particles_nb==1){
pJS.fn.modes.pushParticles(pJS.interactivity.modes.push.particles_nb, pJS.interactivity.mouse);
}
else if(pJS.interactivity.modes.push.particles_nb > 1){
pJS.fn.modes.pushParticles(pJS.interactivity.modes.push.particles_nb);
}}
break;
case 'remove':
pJS.fn.modes.removeParticles(pJS.interactivity.modes.remove.particles_nb);
break;
case 'bubble':
pJS.tmp.bubble_clicking=true;
break;
case 'repulse':
pJS.tmp.repulse_clicking=true;
pJS.tmp.repulse_count=0;
pJS.tmp.repulse_finish=false;
setTimeout(function(){
pJS.tmp.repulse_clicking=false;
}, pJS.interactivity.modes.repulse.duration*1000)
break;
}}
});
}};
pJS.fn.vendors.densityAutoParticles=function(){
if(pJS.particles.number.density.enable){
var area=pJS.canvas.el.width * pJS.canvas.el.height / 1000;
if(pJS.tmp.retina){
area=area/(pJS.canvas.pxratio*2);
}
var nb_particles=area * pJS.particles.number.value / pJS.particles.number.density.value_area;
var missing_particles=pJS.particles.array.length - nb_particles;
if(missing_particles < 0) pJS.fn.modes.pushParticles(Math.abs(missing_particles));
else pJS.fn.modes.removeParticles(missing_particles);
}};
pJS.fn.vendors.checkOverlap=function(p1, position){
for(var i=0; i < pJS.particles.array.length; i++){
var p2=pJS.particles.array[i];
var dx=p1.x - p2.x,
dy=p1.y - p2.y,
dist=Math.sqrt(dx*dx + dy*dy);
if(dist <=p1.radius + p2.radius){
p1.x=position ? position.x:Math.random() * pJS.canvas.w;
p1.y=position ? position.y:Math.random() * pJS.canvas.h;
pJS.fn.vendors.checkOverlap(p1);
}}
};
pJS.fn.vendors.createSvgImg=function(p){
var svgXml=pJS.tmp.source_svg,
rgbHex=/#([0-9A-F]{3,6})/gi,
coloredSvgXml=svgXml.replace(rgbHex, function (m, r, g, b){
if(p.color.rgb){
var color_value='rgba('+p.color.rgb.r+','+p.color.rgb.g+','+p.color.rgb.b+','+p.opacity+')';
}else{
var color_value='hsla('+p.color.hsl.h+','+p.color.hsl.s+'%,'+p.color.hsl.l+'%,'+p.opacity+')';
}
return color_value;
});
var svg=new Blob([coloredSvgXml], {type: 'image/svg+xml;charset=utf-8'}),
DOMURL=window.URL||window.webkitURL||window,
url=DOMURL.createObjectURL(svg);
var img=new Image();
img.addEventListener('load', function(){
p.img.obj=img;
p.img.loaded=true;
DOMURL.revokeObjectURL(url);
pJS.tmp.count_svg++;
});
img.src=url;
};
pJS.fn.vendors.destroypJS=function(){
cancelAnimationFrame(pJS.fn.drawAnimFrame);
canvas_el.remove();
pJSDom=null;
};
pJS.fn.vendors.drawShape=function(c, startX, startY, sideLength, sideCountNumerator, sideCountDenominator){
var sideCount=sideCountNumerator * sideCountDenominator;
var decimalSides=sideCountNumerator / sideCountDenominator;
var interiorAngleDegrees=(180 * (decimalSides - 2)) / decimalSides;
var interiorAngle=Math.PI - Math.PI * interiorAngleDegrees / 180;
c.save();
c.beginPath();
c.translate(startX, startY);
c.moveTo(0,0);
for (var i=0; i < sideCount; i++){
c.lineTo(sideLength,0);
c.translate(sideLength,0);
c.rotate(interiorAngle);
}
c.fill();
c.restore();
};
pJS.fn.vendors.exportImg=function(){
window.open(pJS.canvas.el.toDataURL('image/png'), '_blank');
};
pJS.fn.vendors.loadImg=function(type){
pJS.tmp.img_error=undefined;
if(pJS.particles.shape.image.src!=''){
if(type=='svg'){
var xhr=new XMLHttpRequest();
xhr.open('GET', pJS.particles.shape.image.src);
xhr.onreadystatechange=function (data){
if(xhr.readyState==4){
if(xhr.status==200){
pJS.tmp.source_svg=data.currentTarget.response;
pJS.fn.vendors.checkBeforeDraw();
}else{
console.log('Error pJS - Image not found');
pJS.tmp.img_error=true;
}}
}
xhr.send();
}else{
var img=new Image();
img.addEventListener('load', function(){
pJS.tmp.img_obj=img;
pJS.fn.vendors.checkBeforeDraw();
});
img.src=pJS.particles.shape.image.src;
}}else{
console.log('Error pJS - No image.src');
pJS.tmp.img_error=true;
}};
pJS.fn.vendors.draw=function(){
if(pJS.particles.shape.type=='image'){
if(pJS.tmp.img_type=='svg'){
if(pJS.tmp.count_svg >=pJS.particles.number.value){
pJS.fn.particlesDraw();
if(!pJS.particles.move.enable) cancelRequestAnimFrame(pJS.fn.drawAnimFrame);
else pJS.fn.drawAnimFrame=requestAnimFrame(pJS.fn.vendors.draw);
}else{
if(!pJS.tmp.img_error) pJS.fn.drawAnimFrame=requestAnimFrame(pJS.fn.vendors.draw);
}}else{
if(pJS.tmp.img_obj!=undefined){
pJS.fn.particlesDraw();
if(!pJS.particles.move.enable) cancelRequestAnimFrame(pJS.fn.drawAnimFrame);
else pJS.fn.drawAnimFrame=requestAnimFrame(pJS.fn.vendors.draw);
}else{
if(!pJS.tmp.img_error) pJS.fn.drawAnimFrame=requestAnimFrame(pJS.fn.vendors.draw);
}}
}else{
pJS.fn.particlesDraw();
if(!pJS.particles.move.enable) cancelRequestAnimFrame(pJS.fn.drawAnimFrame);
else pJS.fn.drawAnimFrame=requestAnimFrame(pJS.fn.vendors.draw);
}};
pJS.fn.vendors.checkBeforeDraw=function(){
if(pJS.particles.shape.type=='image'){
if(pJS.tmp.img_type=='svg'&&pJS.tmp.source_svg==undefined){
pJS.tmp.checkAnimFrame=requestAnimFrame(check);
}else{
cancelRequestAnimFrame(pJS.tmp.checkAnimFrame);
if(!pJS.tmp.img_error){
pJS.fn.vendors.init();
pJS.fn.vendors.draw();
}}
}else{
pJS.fn.vendors.init();
pJS.fn.vendors.draw();
}};
pJS.fn.vendors.init=function(){
pJS.fn.retinaInit();
pJS.fn.canvasInit();
pJS.fn.canvasSize();
pJS.fn.canvasPaint();
pJS.fn.particlesCreate();
pJS.fn.vendors.densityAutoParticles();
pJS.particles.line_linked.color_rgb_line=hexToRgb(pJS.particles.line_linked.color);
};
pJS.fn.vendors.start=function(){
if(isInArray('image', pJS.particles.shape.type)){
pJS.tmp.img_type=pJS.particles.shape.image.src.substr(pJS.particles.shape.image.src.length - 3);
pJS.fn.vendors.loadImg(pJS.tmp.img_type);
}else{
pJS.fn.vendors.checkBeforeDraw();
}};
pJS.fn.vendors.eventsListeners();
pJS.fn.vendors.start();
};
Object.deepExtend=function(destination, source){
for (var property in source){
if(source[property]&&source[property].constructor &&
source[property].constructor===Object){
destination[property]=destination[property]||{};
arguments.callee(destination[property], source[property]);
}else{
destination[property]=source[property];
}}
return destination;
};
window.requestAnimFrame=(function(){
return  window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame    ||
window.oRequestAnimationFrame      ||
window.msRequestAnimationFrame     ||
function(callback){
window.setTimeout(callback, 1000 / 60);
};})();
window.cancelRequestAnimFrame=(function(){
return window.cancelAnimationFrame         ||
window.webkitCancelRequestAnimationFrame ||
window.mozCancelRequestAnimationFrame    ||
window.oCancelRequestAnimationFrame      ||
window.msCancelRequestAnimationFrame     ||
clearTimeout
})();
function hexToRgb(hex){
var shorthandRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;
hex=hex.replace(shorthandRegex, function(m, r, g, b){
return r + r + g + g + b + b;
});
var result=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
return result ? {
r: parseInt(result[1], 16),
g: parseInt(result[2], 16),
b: parseInt(result[3], 16)
}:null;
};
function clamp(number, min, max){
return Math.min(Math.max(number, min), max);
};
function isInArray(value, array){
return array.indexOf(value) > -1;
}
window.pJSDom=[];
window.particlesJS=function(tag_id, params){
if(typeof(tag_id)!='string'){
params=tag_id;
tag_id='particles-js';
}
if(!tag_id){
tag_id='particles-js';
}
var pJS_tag=document.getElementById(tag_id),
pJS_canvas_class='particles-js-canvas-el',
exist_canvas=pJS_tag.getElementsByClassName(pJS_canvas_class);
if(exist_canvas.length){
while(exist_canvas.length > 0){
pJS_tag.removeChild(exist_canvas[0]);
}}
var canvas_el=document.createElement('canvas');
canvas_el.className=pJS_canvas_class;
canvas_el.style.width="100%";
canvas_el.style.height="100%";
var canvas=document.getElementById(tag_id).appendChild(canvas_el);
if(canvas!=null){
pJSDom.push(new pJS(tag_id, params));
}};
window.particlesJS.load=function(tag_id, path_config_json, callback){
var xhr=new XMLHttpRequest();
xhr.open('GET', path_config_json);
xhr.onreadystatechange=function (data){
if(xhr.readyState==4){
if(xhr.status==200){
var params=JSON.parse(data.currentTarget.response);
window.particlesJS(tag_id, params);
if(callback) callback();
}else{
console.log('Error pJS - XMLHttpRequest status: '+xhr.status);
console.log('Error pJS - File config not found');
}}
};
xhr.send();
};
!function(n){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.m=n,i.c=o,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=10)}([,,function(e,t){e.exports=function(e){"complete"===document.readyState||"interactive"===document.readyState?e.call():document.attachEvent?document.attachEvent("onreadystatechange",function(){"interactive"===document.readyState&&e.call()}):document.addEventListener&&document.addEventListener("DOMContentLoaded",e)}},function(t,e,n){!function(e){e="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};t.exports=e}.call(this,n(4))},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=function(){return this}();try{o=o||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}e.exports=o},,,,,,function(e,t,n){e.exports=n(11)},function(e,t,n){"use strict";n.r(t);var t=n(2),t=n.n(t),i=n(3),a=n(12);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,l=i.window.jarallax;i.window.jarallax=a.default,i.window.jarallax.noConflict=function(){return i.window.jarallax=l,this},void 0!==i.jQuery&&((n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.prototype.unshift.call(t,this);var o=a.default.apply(i.window,t);return"object"!==r(o)?o:this}).constructor=a.default.constructor,o=i.jQuery.fn.jarallax,i.jQuery.fn.jarallax=n,i.jQuery.fn.jarallax.noConflict=function(){return i.jQuery.fn.jarallax=o,this}),t()(function(){Object(a.default)(document.querySelectorAll("[data-jarallax]"))})},function(e,t,n){"use strict";n.r(t);var o=n(2),o=n.n(o),f=n(3);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var o,i,a=[],r=!0,l=!1;try{for(n=n.call(e);!(r=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);r=!0);}catch(e){l=!0,i=e}finally{try{r||null==n.return||n.return()}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(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)}}var r,g,u=f.window.navigator,p=-1<u.userAgent.indexOf("MSIE ")||-1<u.userAgent.indexOf("Trident/")||-1<u.userAgent.indexOf("Edge/"),l=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(u.userAgent),d=function(){for(var e="transform WebkitTransform MozTransform".split(" "),t=document.createElement("div"),n=0;n<e.length;n+=1)if(t&&void 0!==t.style[e[n]])return e[n];return!1}();function m(){g=l?(!r&&document.body&&((r=document.createElement("div")).style.cssText="position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;",document.body.appendChild(r)),(r?r.clientHeight:0)||f.window.innerHeight||document.documentElement.clientHeight):f.window.innerHeight||document.documentElement.clientHeight}m(),f.window.addEventListener("resize",m),f.window.addEventListener("orientationchange",m),f.window.addEventListener("load",m),o()(function(){m()});var y=[];function b(){y.length&&(y.forEach(function(e,t){var n=e.instance,o=e.oldData,i=n.$item.getBoundingClientRect(),e={width:i.width,height:i.height,top:i.top,bottom:i.bottom,wndW:f.window.innerWidth,wndH:g},i=!o||o.wndW!==e.wndW||o.wndH!==e.wndH||o.width!==e.width||o.height!==e.height,o=i||!o||o.top!==e.top||o.bottom!==e.bottom;y[t].oldData=e,i&&n.onResize(),o&&n.onScroll()}),f.window.requestAnimationFrame(b))}var h=0,v=function(){function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var n=this;n.instanceID=h,h+=1,n.$item=e,n.defaults={type:"scroll",speed:.5,imgSrc:null,imgElement:".jarallax-img",imgSize:"cover",imgPosition:"50% 50%",imgRepeat:"no-repeat",keepImg:!1,elementInViewport:null,zIndex:-100,disableParallax:!1,disableVideo:!1,videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoLoop:!0,videoPlayOnlyVisible:!0,videoLazyLoading:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null};var o,i,a=n.$item.dataset||{},r={};Object.keys(a).forEach(function(e){var t=e.substr(0,1).toLowerCase()+e.substr(1);t&&void 0!==n.defaults[t]&&(r[t]=a[e])}),n.options=n.extend({},n.defaults,r,t),n.pureOptions=n.extend({},n.options),Object.keys(n.options).forEach(function(e){"true"===n.options[e]?n.options[e]=!0:"false"===n.options[e]&&(n.options[e]=!1)}),n.options.speed=Math.min(2,Math.max(-1,parseFloat(n.options.speed))),"string"==typeof n.options.disableParallax&&(n.options.disableParallax=new RegExp(n.options.disableParallax)),n.options.disableParallax instanceof RegExp&&(o=n.options.disableParallax,n.options.disableParallax=function(){return o.test(u.userAgent)}),"function"!=typeof n.options.disableParallax&&(n.options.disableParallax=function(){return!1}),"string"==typeof n.options.disableVideo&&(n.options.disableVideo=new RegExp(n.options.disableVideo)),n.options.disableVideo instanceof RegExp&&(i=n.options.disableVideo,n.options.disableVideo=function(){return i.test(u.userAgent)}),"function"!=typeof n.options.disableVideo&&(n.options.disableVideo=function(){return!1});t=n.options.elementInViewport;(t=t&&"object"===c(t)&&void 0!==t.length?s(t,1)[0]:t)instanceof Element||(t=null),n.options.elementInViewport=t,n.image={src:n.options.imgSrc||null,$container:null,useImgTag:!1,position:/iPad|iPhone|iPod|Android/.test(u.userAgent)?"absolute":"fixed"},n.initImg()&&n.canInitParallax()&&n.init()}var e,t,n;return e=l,(t=[{key:"css",value:function(t,n){return"string"==typeof n?f.window.getComputedStyle(t).getPropertyValue(n):(n.transform&&d&&(n[d]=n.transform),Object.keys(n).forEach(function(e){t.style[e]=n[e]}),t)}},{key:"extend",value:function(n){for(var e=arguments.length,o=new Array(1<e?e-1:0),t=1;t<e;t++)o[t-1]=arguments[t];return n=n||{},Object.keys(o).forEach(function(t){o[t]&&Object.keys(o[t]).forEach(function(e){n[e]=o[t][e]})}),n}},{key:"getWindowData",value:function(){return{width:f.window.innerWidth||document.documentElement.clientWidth,height:g,y:document.documentElement.scrollTop}}},{key:"initImg",value:function(){var e=this,t=e.options.imgElement;return(t=t&&"string"==typeof t?e.$item.querySelector(t):t)instanceof Element||(e.options.imgSrc?(t=new Image).src=e.options.imgSrc:t=null),t&&(e.options.keepImg?e.image.$item=t.cloneNode(!0):(e.image.$item=t,e.image.$itemParent=t.parentNode),e.image.useImgTag=!0),!!e.image.$item||(null===e.image.src&&(e.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e.image.bgImage=e.css(e.$item,"background-image")),!(!e.image.bgImage||"none"===e.image.bgImage))}},{key:"canInitParallax",value:function(){return d&&!this.options.disableParallax()}},{key:"init",value:function(){var e,t=this,n={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"},o={pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden",willChange:"transform,opacity"};t.options.keepImg||((e=t.$item.getAttribute("style"))&&t.$item.setAttribute("data-jarallax-original-styles",e),!t.image.useImgTag||(e=t.image.$item.getAttribute("style"))&&t.image.$item.setAttribute("data-jarallax-original-styles",e)),"static"===t.css(t.$item,"position")&&t.css(t.$item,{position:"relative"}),"auto"===t.css(t.$item,"z-index")&&t.css(t.$item,{zIndex:0}),t.image.$container=document.createElement("div"),t.css(t.image.$container,n),t.css(t.image.$container,{"z-index":t.options.zIndex}),p&&t.css(t.image.$container,{opacity:.9999}),t.image.$container.setAttribute("id","jarallax-container-".concat(t.instanceID)),t.$item.appendChild(t.image.$container),t.image.useImgTag?o=t.extend({"object-fit":t.options.imgSize,"object-position":t.options.imgPosition,"font-family":"object-fit: ".concat(t.options.imgSize,"; object-position: ").concat(t.options.imgPosition,";"),"max-width":"none"},n,o):(t.image.$item=document.createElement("div"),t.image.src&&(o=t.extend({"background-position":t.options.imgPosition,"background-size":t.options.imgSize,"background-repeat":t.options.imgRepeat,"background-image":t.image.bgImage||'url("'.concat(t.image.src,'")')},n,o))),"opacity"!==t.options.type&&"scale"!==t.options.type&&"scale-opacity"!==t.options.type&&1!==t.options.speed||(t.image.position="absolute"),"fixed"===t.image.position&&(n=function(e){for(var t=[];null!==e.parentElement;)1===(e=e.parentElement).nodeType&&t.push(e);return t}(t.$item).filter(function(e){var t=f.window.getComputedStyle(e),e=t["-webkit-transform"]||t["-moz-transform"]||t.transform;return e&&"none"!==e||/(auto|scroll)/.test(t.overflow+t["overflow-y"]+t["overflow-x"])}),t.image.position=n.length?"absolute":"fixed"),o.position=t.image.position,t.css(t.image.$item,o),t.image.$container.appendChild(t.image.$item),t.onResize(),t.onScroll(!0),t.options.onInit&&t.options.onInit.call(t),"none"!==t.css(t.$item,"background-image")&&t.css(t.$item,{"background-image":"none"}),t.addToParallaxList()}},{key:"addToParallaxList",value:function(){y.push({instance:this}),1===y.length&&f.window.requestAnimationFrame(b)}},{key:"removeFromParallaxList",value:function(){var n=this;y.forEach(function(e,t){e.instance.instanceID===n.instanceID&&y.splice(t,1)})}},{key:"destroy",value:function(){var e=this;e.removeFromParallaxList();var t,n=e.$item.getAttribute("data-jarallax-original-styles");e.$item.removeAttribute("data-jarallax-original-styles"),n?e.$item.setAttribute("style",n):e.$item.removeAttribute("style"),e.image.useImgTag&&(t=e.image.$item.getAttribute("data-jarallax-original-styles"),e.image.$item.removeAttribute("data-jarallax-original-styles"),t?e.image.$item.setAttribute("style",n):e.image.$item.removeAttribute("style"),e.image.$itemParent&&e.image.$itemParent.appendChild(e.image.$item)),e.$clipStyles&&e.$clipStyles.parentNode.removeChild(e.$clipStyles),e.image.$container&&e.image.$container.parentNode.removeChild(e.image.$container),e.options.onDestroy&&e.options.onDestroy.call(e),delete e.$item.jarallax}},{key:"clipContainer",value:function(){var e,t,n;"fixed"===this.image.position&&(t=(n=(e=this).image.$container.getBoundingClientRect()).width,n=n.height,e.$clipStyles||(e.$clipStyles=document.createElement("style"),e.$clipStyles.setAttribute("type","text/css"),e.$clipStyles.setAttribute("id","jarallax-clip-".concat(e.instanceID)),(document.head||document.getElementsByTagName("head")[0]).appendChild(e.$clipStyles)),n="#jarallax-container-".concat(e.instanceID," {\n            clip: rect(0 ").concat(t,"px ").concat(n,"px 0);\n            clip: rect(0, ").concat(t,"px, ").concat(n,"px, 0);\n            -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n        }"),e.$clipStyles.styleSheet?e.$clipStyles.styleSheet.cssText=n:e.$clipStyles.innerHTML=n)}},{key:"coverImage",value:function(){var e=this,t=e.image.$container.getBoundingClientRect(),n=t.height,o=e.options.speed,i="scroll"===e.options.type||"scroll-opacity"===e.options.type,a=0,r=n,l=0;return i&&(o<0?(a=o*Math.max(n,g),g<n&&(a-=o*(n-g))):a=o*(n+g),1<o?r=Math.abs(a-g):o<0?r=a/o+Math.abs(a):r+=(g-n)*(1-o),a/=2),e.parallaxScrollDistance=a,l=i?(g-r)/2:(n-r)/2,e.css(e.image.$item,{height:"".concat(r,"px"),marginTop:"".concat(l,"px"),left:"fixed"===e.image.position?"".concat(t.left,"px"):"0",width:"".concat(t.width,"px")}),e.options.onCoverImage&&e.options.onCoverImage.call(e),{image:{height:r,marginTop:l},container:t}}},{key:"isVisible",value:function(){return this.isElementInViewport||!1}},{key:"onScroll",value:function(e){var t,n,o,i,a,r,l,s=this,c=s.$item.getBoundingClientRect(),u=c.top,p=c.height,d={},m=c;s.options.elementInViewport&&(m=s.options.elementInViewport.getBoundingClientRect()),s.isElementInViewport=0<=m.bottom&&0<=m.right&&m.top<=g&&m.left<=f.window.innerWidth,(e||s.isElementInViewport)&&(t=Math.max(0,u),n=Math.max(0,p+u),o=Math.max(0,-u),i=Math.max(0,u+p-g),a=Math.max(0,p-(u+p-g)),r=Math.max(0,-u+g-p),m=1-(g-u)/(g+p)*2,e=1,p<g?e=1-(o||i)/p:n<=g?e=n/g:a<=g&&(e=a/g),"opacity"!==s.options.type&&"scale-opacity"!==s.options.type&&"scroll-opacity"!==s.options.type||(d.transform="translate3d(0,0,0)",d.opacity=e),"scale"!==s.options.type&&"scale-opacity"!==s.options.type||(l=1,s.options.speed<0?l-=s.options.speed*e:l+=s.options.speed*(1-e),d.transform="scale(".concat(l,") translate3d(0,0,0)")),"scroll"!==s.options.type&&"scroll-opacity"!==s.options.type||(l=s.parallaxScrollDistance*m,"absolute"===s.image.position&&(l-=u),d.transform="translate3d(0,".concat(l,"px,0)")),s.css(s.image.$item,d),s.options.onScroll&&s.options.onScroll.call(s,{section:c,beforeTop:t,beforeTopEnd:n,afterTop:o,beforeBottom:i,beforeBottomEnd:a,afterBottom:r,visiblePercent:e,fromViewportCenter:m}))}},{key:"onResize",value:function(){this.coverImage(),this.clipContainer()}}])&&a(e.prototype,t),n&&a(e,n),l}(),o=function(e,t){for(var n,o=(e=("object"===("undefined"==typeof HTMLElement?"undefined":c(HTMLElement))?e instanceof HTMLElement:e&&"object"===c(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)?[e]:e).length,i=0,a=arguments.length,r=new Array(2<a?a-2:0),l=2;l<a;l++)r[l-2]=arguments[l];for(;i<o;i+=1)if("object"===c(t)||void 0===t?e[i].jarallax||(e[i].jarallax=new v(e[i],t)):e[i].jarallax&&(n=e[i].jarallax[t].apply(e[i].jarallax,r)),void 0!==n)return n;return e};o.constructor=v,t.default=o}]);
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Parallax=t()}}(function(){return function t(e,i,n){function o(r,a){if(!i[r]){if(!e[r]){var l="function"==typeof require&&require;if(!a&&l)return l(r,!0);if(s)return s(r,!0);var h=new Error("Cannot find module '"+r+"'");throw h.code="MODULE_NOT_FOUND",h}var u=i[r]={exports:{}};e[r][0].call(u.exports,function(t){var i=e[r][1][t];return o(i||t)},u,u.exports,t,e,i,n)}return i[r].exports}for(var s="function"==typeof require&&require,r=0;r<n.length;r++)o(n[r]);return o}({1:[function(t,e,i){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,a,l=n(t),h=1;h<arguments.length;h++){i=Object(arguments[h]);for(var u in i)s.call(i,u)&&(l[u]=i[u]);if(o){a=o(i);for(var c=0;c<a.length;c++)r.call(i,a[c])&&(l[a[c]]=i[a[c]])}}return l}},{}],2:[function(t,e,i){(function(t){(function(){var i,n,o,s,r,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:void 0!==t&&null!==t&&t.hrtime?(e.exports=function(){return(i()-r)/1e6},n=t.hrtime,s=(i=function(){var t;return 1e9*(t=n())[0]+t[1]})(),a=1e9*t.uptime(),r=s-a):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,t("_process"))},{_process:3}],3:[function(t,e,i){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function r(t){if(d===clearTimeout)return clearTimeout(t);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(t);try{return d(t)}catch(e){try{return d.call(null,t)}catch(e){return d.call(this,t)}}}function a(){v&&p&&(v=!1,p.length?f=p.concat(f):y=-1,f.length&&l())}function l(){if(!v){var t=s(a);v=!0;for(var e=f.length;e;){for(p=f,f=[];++y<e;)p&&p[y].run();y=-1,e=f.length}p=null,v=!1,r(t)}}function h(t,e){this.fun=t,this.array=e}function u(){}var c,d,m=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{d="function"==typeof clearTimeout?clearTimeout:o}catch(t){d=o}}();var p,f=[],v=!1,y=-1;m.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];f.push(new h(t,e)),1!==f.length||v||s(l)},h.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=u,m.addListener=u,m.once=u,m.off=u,m.removeListener=u,m.removeAllListeners=u,m.emit=u,m.prependListener=u,m.prependOnceListener=u,m.listeners=function(t){return[]},m.binding=function(t){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(t){throw new Error("process.chdir is not supported")},m.umask=function(){return 0}},{}],4:[function(t,e,i){(function(i){for(var n=t("performance-now"),o="undefined"==typeof window?i:window,s=["moz","webkit"],r="AnimationFrame",a=o["request"+r],l=o["cancel"+r]||o["cancelRequest"+r],h=0;!a&&h<s.length;h++)a=o[s[h]+"Request"+r],l=o[s[h]+"Cancel"+r]||o[s[h]+"CancelRequest"+r];if(!a||!l){var u=0,c=0,d=[];a=function(t){if(0===d.length){var e=n(),i=Math.max(0,1e3/60-(e-u));u=i+e,setTimeout(function(){var t=d.slice(0);d.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout(function(){throw t},0)}},Math.round(i))}return d.push({handle:++c,callback:t,cancelled:!1}),c},l=function(t){for(var e=0;e<d.length;e++)d[e].handle===t&&(d[e].cancelled=!0)}}e.exports=function(t){return a.call(o,t)},e.exports.cancel=function(){l.apply(o,arguments)},e.exports.polyfill=function(){o.requestAnimationFrame=a,o.cancelAnimationFrame=l}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":2}],5:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=t("raf"),r=t("object-assign"),a={propertyCache:{},vendors:[null,["-webkit-","webkit"],["-moz-","Moz"],["-o-","O"],["-ms-","ms"]],clamp:function(t,e,i){return e<i?t<e?e:t>i?i:t:t<i?i:t>e?e:t},data:function(t,e){return a.deserialize(t.getAttribute("data-"+e))},deserialize:function(t){return"true"===t||"false"!==t&&("null"===t?null:!isNaN(parseFloat(t))&&isFinite(t)?parseFloat(t):t)},camelCase:function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},accelerate:function(t){a.css(t,"transform","translate3d(0,0,0) rotate(0.0001deg)"),a.css(t,"transform-style","preserve-3d"),a.css(t,"backface-visibility","hidden")},transformSupport:function(t){for(var e=document.createElement("div"),i=!1,n=null,o=!1,s=null,r=null,l=0,h=a.vendors.length;l<h;l++)if(null!==a.vendors[l]?(s=a.vendors[l][0]+"transform",r=a.vendors[l][1]+"Transform"):(s="transform",r="transform"),void 0!==e.style[r]){i=!0;break}switch(t){case"2D":o=i;break;case"3D":if(i){var u=document.body||document.createElement("body"),c=document.documentElement,d=c.style.overflow,m=!1;document.body||(m=!0,c.style.overflow="hidden",c.appendChild(u),u.style.overflow="hidden",u.style.background=""),u.appendChild(e),e.style[r]="translate3d(1px,1px,1px)",o=void 0!==(n=window.getComputedStyle(e).getPropertyValue(s))&&n.length>0&&"none"!==n,c.style.overflow=d,u.removeChild(e),m&&(u.removeAttribute("style"),u.parentNode.removeChild(u))}}return o},css:function(t,e,i){var n=a.propertyCache[e];if(!n)for(var o=0,s=a.vendors.length;o<s;o++)if(n=null!==a.vendors[o]?a.camelCase(a.vendors[o][1]+"-"+e):e,void 0!==t.style[n]){a.propertyCache[e]=n;break}t.style[n]=i}},l={relativeInput:!1,clipRelativeInput:!1,inputElement:null,hoverOnly:!1,calibrationThreshold:100,calibrationDelay:500,supportDelay:500,calibrateX:!1,calibrateY:!0,invertX:!0,invertY:!0,limitX:!1,limitY:!1,scalarX:10,scalarY:10,frictionX:.1,frictionY:.1,originX:.5,originY:.5,pointerEvents:!1,precision:1,onReady:null,selector:null},h=function(){function t(e,i){n(this,t),this.element=e;var o={calibrateX:a.data(this.element,"calibrate-x"),calibrateY:a.data(this.element,"calibrate-y"),invertX:a.data(this.element,"invert-x"),invertY:a.data(this.element,"invert-y"),limitX:a.data(this.element,"limit-x"),limitY:a.data(this.element,"limit-y"),scalarX:a.data(this.element,"scalar-x"),scalarY:a.data(this.element,"scalar-y"),frictionX:a.data(this.element,"friction-x"),frictionY:a.data(this.element,"friction-y"),originX:a.data(this.element,"origin-x"),originY:a.data(this.element,"origin-y"),pointerEvents:a.data(this.element,"pointer-events"),precision:a.data(this.element,"precision"),relativeInput:a.data(this.element,"relative-input"),clipRelativeInput:a.data(this.element,"clip-relative-input"),hoverOnly:a.data(this.element,"hover-only"),inputElement:document.querySelector(a.data(this.element,"input-element")),selector:a.data(this.element,"selector")};for(var s in o)null===o[s]&&delete o[s];r(this,l,o,i),this.inputElement||(this.inputElement=this.element),this.calibrationTimer=null,this.calibrationFlag=!0,this.enabled=!1,this.depthsX=[],this.depthsY=[],this.raf=null,this.bounds=null,this.elementPositionX=0,this.elementPositionY=0,this.elementWidth=0,this.elementHeight=0,this.elementCenterX=0,this.elementCenterY=0,this.elementRangeX=0,this.elementRangeY=0,this.calibrationX=0,this.calibrationY=0,this.inputX=0,this.inputY=0,this.motionX=0,this.motionY=0,this.velocityX=0,this.velocityY=0,this.onMouseMove=this.onMouseMove.bind(this),this.onDeviceOrientation=this.onDeviceOrientation.bind(this),this.onDeviceMotion=this.onDeviceMotion.bind(this),this.onOrientationTimer=this.onOrientationTimer.bind(this),this.onMotionTimer=this.onMotionTimer.bind(this),this.onCalibrationTimer=this.onCalibrationTimer.bind(this),this.onAnimationFrame=this.onAnimationFrame.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.windowWidth=null,this.windowHeight=null,this.windowCenterX=null,this.windowCenterY=null,this.windowRadiusX=null,this.windowRadiusY=null,this.portrait=!1,this.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),this.motionSupport=!!window.DeviceMotionEvent&&!this.desktop,this.orientationSupport=!!window.DeviceOrientationEvent&&!this.desktop,this.orientationStatus=0,this.motionStatus=0,this.initialise()}return o(t,[{key:"initialise",value:function(){void 0===this.transform2DSupport&&(this.transform2DSupport=a.transformSupport("2D"),this.transform3DSupport=a.transformSupport("3D")),this.transform3DSupport&&a.accelerate(this.element),"static"===window.getComputedStyle(this.element).getPropertyValue("position")&&(this.element.style.position="relative"),this.pointerEvents||(this.element.style.pointerEvents="none"),this.updateLayers(),this.updateDimensions(),this.enable(),this.queueCalibration(this.calibrationDelay)}},{key:"doReadyCallback",value:function(){this.onReady&&this.onReady()}},{key:"updateLayers",value:function(){this.selector?this.layers=this.element.querySelectorAll(this.selector):this.layers=this.element.children,this.layers.length||console.warn("ParallaxJS: Your scene does not have any layers."),this.depthsX=[],this.depthsY=[];for(var t=0;t<this.layers.length;t++){var e=this.layers[t];this.transform3DSupport&&a.accelerate(e),e.style.position=t?"absolute":"relative",e.style.display="block",e.style.left=0,e.style.top=0;var i=a.data(e,"depth")||0;this.depthsX.push(a.data(e,"depth-x")||i),this.depthsY.push(a.data(e,"depth-y")||i)}}},{key:"updateDimensions",value:function(){this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight,this.windowCenterX=this.windowWidth*this.originX,this.windowCenterY=this.windowHeight*this.originY,this.windowRadiusX=Math.max(this.windowCenterX,this.windowWidth-this.windowCenterX),this.windowRadiusY=Math.max(this.windowCenterY,this.windowHeight-this.windowCenterY)}},{key:"updateBounds",value:function(){this.bounds=this.inputElement.getBoundingClientRect(),this.elementPositionX=this.bounds.left,this.elementPositionY=this.bounds.top,this.elementWidth=this.bounds.width,this.elementHeight=this.bounds.height,this.elementCenterX=this.elementWidth*this.originX,this.elementCenterY=this.elementHeight*this.originY,this.elementRangeX=Math.max(this.elementCenterX,this.elementWidth-this.elementCenterX),this.elementRangeY=Math.max(this.elementCenterY,this.elementHeight-this.elementCenterY)}},{key:"queueCalibration",value:function(t){clearTimeout(this.calibrationTimer),this.calibrationTimer=setTimeout(this.onCalibrationTimer,t)}},{key:"enable",value:function(){this.enabled||(this.enabled=!0,this.orientationSupport?(this.portrait=!1,window.addEventListener("deviceorientation",this.onDeviceOrientation),this.detectionTimer=setTimeout(this.onOrientationTimer,this.supportDelay)):this.motionSupport?(this.portrait=!1,window.addEventListener("devicemotion",this.onDeviceMotion),this.detectionTimer=setTimeout(this.onMotionTimer,this.supportDelay)):(this.calibrationX=0,this.calibrationY=0,this.portrait=!1,window.addEventListener("mousemove",this.onMouseMove),this.doReadyCallback()),window.addEventListener("resize",this.onWindowResize),this.raf=s(this.onAnimationFrame))}},{key:"disable",value:function(){this.enabled&&(this.enabled=!1,this.orientationSupport?window.removeEventListener("deviceorientation",this.onDeviceOrientation):this.motionSupport?window.removeEventListener("devicemotion",this.onDeviceMotion):window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("resize",this.onWindowResize),s.cancel(this.raf))}},{key:"calibrate",value:function(t,e){this.calibrateX=void 0===t?this.calibrateX:t,this.calibrateY=void 0===e?this.calibrateY:e}},{key:"invert",value:function(t,e){this.invertX=void 0===t?this.invertX:t,this.invertY=void 0===e?this.invertY:e}},{key:"friction",value:function(t,e){this.frictionX=void 0===t?this.frictionX:t,this.frictionY=void 0===e?this.frictionY:e}},{key:"scalar",value:function(t,e){this.scalarX=void 0===t?this.scalarX:t,this.scalarY=void 0===e?this.scalarY:e}},{key:"limit",value:function(t,e){this.limitX=void 0===t?this.limitX:t,this.limitY=void 0===e?this.limitY:e}},{key:"origin",value:function(t,e){this.originX=void 0===t?this.originX:t,this.originY=void 0===e?this.originY:e}},{key:"setInputElement",value:function(t){this.inputElement=t,this.updateDimensions()}},{key:"setPosition",value:function(t,e,i){e=e.toFixed(this.precision)+"px",i=i.toFixed(this.precision)+"px",this.transform3DSupport?a.css(t,"transform","translate3d("+e+","+i+",0)"):this.transform2DSupport?a.css(t,"transform","translate("+e+","+i+")"):(t.style.left=e,t.style.top=i)}},{key:"onOrientationTimer",value:function(){this.orientationSupport&&0===this.orientationStatus?(this.disable(),this.orientationSupport=!1,this.enable()):this.doReadyCallback()}},{key:"onMotionTimer",value:function(){this.motionSupport&&0===this.motionStatus?(this.disable(),this.motionSupport=!1,this.enable()):this.doReadyCallback()}},{key:"onCalibrationTimer",value:function(){this.calibrationFlag=!0}},{key:"onWindowResize",value:function(){this.updateDimensions()}},{key:"onAnimationFrame",value:function(){this.updateBounds();var t=this.inputX-this.calibrationX,e=this.inputY-this.calibrationY;(Math.abs(t)>this.calibrationThreshold||Math.abs(e)>this.calibrationThreshold)&&this.queueCalibration(0),this.portrait?(this.motionX=this.calibrateX?e:this.inputY,this.motionY=this.calibrateY?t:this.inputX):(this.motionX=this.calibrateX?t:this.inputX,this.motionY=this.calibrateY?e:this.inputY),this.motionX*=this.elementWidth*(this.scalarX/100),this.motionY*=this.elementHeight*(this.scalarY/100),isNaN(parseFloat(this.limitX))||(this.motionX=a.clamp(this.motionX,-this.limitX,this.limitX)),isNaN(parseFloat(this.limitY))||(this.motionY=a.clamp(this.motionY,-this.limitY,this.limitY)),this.velocityX+=(this.motionX-this.velocityX)*this.frictionX,this.velocityY+=(this.motionY-this.velocityY)*this.frictionY;for(var i=0;i<this.layers.length;i++){var n=this.layers[i],o=this.depthsX[i],r=this.depthsY[i],l=this.velocityX*(o*(this.invertX?-1:1)),h=this.velocityY*(r*(this.invertY?-1:1));this.setPosition(n,l,h)}this.raf=s(this.onAnimationFrame)}},{key:"rotate",value:function(t,e){var i=(t||0)/30,n=(e||0)/30,o=this.windowHeight>this.windowWidth;this.portrait!==o&&(this.portrait=o,this.calibrationFlag=!0),this.calibrationFlag&&(this.calibrationFlag=!1,this.calibrationX=i,this.calibrationY=n),this.inputX=i,this.inputY=n}},{key:"onDeviceOrientation",value:function(t){var e=t.beta,i=t.gamma;null!==e&&null!==i&&(this.orientationStatus=1,this.rotate(e,i))}},{key:"onDeviceMotion",value:function(t){var e=t.rotationRate.beta,i=t.rotationRate.gamma;null!==e&&null!==i&&(this.motionStatus=1,this.rotate(e,i))}},{key:"onMouseMove",value:function(t){var e=t.clientX,i=t.clientY;if(this.hoverOnly&&(e<this.elementPositionX||e>this.elementPositionX+this.elementWidth||i<this.elementPositionY||i>this.elementPositionY+this.elementHeight))return this.inputX=0,void(this.inputY=0);this.relativeInput?(this.clipRelativeInput&&(e=Math.max(e,this.elementPositionX),e=Math.min(e,this.elementPositionX+this.elementWidth),i=Math.max(i,this.elementPositionY),i=Math.min(i,this.elementPositionY+this.elementHeight)),this.elementRangeX&&this.elementRangeY&&(this.inputX=(e-this.elementPositionX-this.elementCenterX)/this.elementRangeX,this.inputY=(i-this.elementPositionY-this.elementCenterY)/this.elementRangeY)):this.windowRadiusX&&this.windowRadiusY&&(this.inputX=(e-this.windowCenterX)/this.windowRadiusX,this.inputY=(i-this.windowCenterY)/this.windowRadiusY)}},{key:"destroy",value:function(){this.disable(),clearTimeout(this.calibrationTimer),clearTimeout(this.detectionTimer),this.element.removeAttribute("style");for(var t=0;t<this.layers.length;t++)this.layers[t].removeAttribute("style");delete this.element,delete this.layers}},{key:"version",value:function(){return"3.1.0"}}]),t}();e.exports=h},{"object-assign":1,raf:4}]},{},[5])(5)});
const cuteAlert=({url:e,type:t,title:n,message:s,img:o,buttonText:a="OK",confirmText:c="OK",vibrate:r=[],playSound:l=null,cancelText:i="Cancel",closeStyle:d})=>new Promise(e=>{const u=document.querySelector(".alert-wrapper");u&&u.remove();const m=document.querySelector("body"),v=document.getElementsByTagName("script");let b="";for(let e of v)e.src.includes("cute-alert.js")&&(b=e.src.substring(0,e.src.lastIndexOf("/")));let g=`\n    <button class="alert-button ${t}-bg ${t}-btn">${a}</button>\n    `;if("question"===t&&(g=`\n      <div class="question-buttons">\n        <button class="confirm-button ${t}-bg ${t}-btn">${c}</button>\n        <button class="cancel-button error-bg error-btn">${i}</button>\n      </div>\n      `),r.length>0&&navigator.vibrate(r),null!==l){new Audio(l).play()}const y=`\n    <div class="alert-wrapper">\n      <div class="alert-frame">\n        ${o===undefined?'<div class="alert-header '+t+'-bg">':'<div class="alert-header-base">'}\n          <span class="alert-close ${"circle"===d?"alert-close-circle":"alert-close-default"}">X</span>\n          ${o===undefined?'<img class="alert-img" src="'+b+"/img/"+t+'.svg" />':'<div class="custom-img-wrapper">'+o+"</div>"}\n        </div>\n        <div class="alert-body">\n          <span class="alert-title">${n}</span>\n          <span class="alert-message">${s}</span>\n          ${g}\n        </div>\n      </div>\n    </div>\n    `;m.insertAdjacentHTML("afterend",y);const p=document.querySelector(".alert-wrapper"),$=document.querySelector(".alert-frame"),f=document.querySelector(".alert-close");if("question"===t){const t=document.querySelector(".confirm-button"),n=document.querySelector(".cancel-button");t.addEventListener("click",()=>{p.remove(),e("confirm")}),n.addEventListener("click",()=>{p.remove(),e()})}else{document.querySelector(".alert-button").addEventListener("click",()=>{p.remove(),e("ok")})}f.addEventListener("click",()=>{p.remove(),e("close")}),$.addEventListener("click",e=>{e.stopPropagation()})}),cuteToast=({type:e,title:t,message:n,timer:s=5e3,vibrate:o=[],playSound:a=null})=>new Promise(c=>{const r=document.querySelector("body"),l=document.getElementsByTagName("script");let i="";for(let e of l)e.src.includes("cute-alert.js")&&(i=e.src.substring(0,e.src.lastIndexOf("/")));let d=document.querySelector(".toast-container");d||(r.insertAdjacentHTML("afterend",'<div class="toast-container"></div>'),d=document.querySelector(".toast-container"));const u=id(),m=`\n    <div class="toast-content ${e}-bg" id="${u}-toast-content">\n      <div>\n        <div class="toast-frame">\n          <div class="toast-body">\n            <img class="toast-body-img" src="${i}/img/${e}.svg" />'\n            <div class="toast-body-content">\n              <span class="toast-title">${t}</span>\n              <span class="toast-message">${n}</span>\n            </div>\n            <div class="toast-close" id="${u}-toast-close">X</div>\n          </div>\n        </div>\n        <div class="toast-timer ${e}-timer"  style="animation: timer${s}ms linear;>\n      </div>\n    </div>\n    `,v=document.querySelectorAll(".toast-content");v.length?v[0].insertAdjacentHTML("beforebegin",m):d.innerHTML=m;const b=document.getElementById(`${u}-toast-content`);if(o.length>0&&navigator.vibrate(o),null!==a){new Audio(a).play()}setTimeout(()=>{b.remove(),c()},s);document.getElementById(`${u}-toast-close`).addEventListener("click",()=>{b.remove(),c()})}),id=()=>"_"+Math.random().toString(36).substr(2,9);
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(e,t,r){"use strict";var n=e("./init"),a={init:function(e){this.get=n(e),e&&e.callback&&"function"==typeof e.callback&&e.callback(this.get)}};t.exports=a},{"./init":6}],2:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/utils"),i={containers:{current:"sbjs_current",current_extra:"sbjs_current_add",first:"sbjs_first",first_extra:"sbjs_first_add",session:"sbjs_session",udata:"sbjs_udata",promocode:"sbjs_promo"},service:{migrations:"sbjs_migrations"},delimiter:"|||",aliases:{main:{type:"typ",source:"src",medium:"mdm",campaign:"cmp",content:"cnt",term:"trm",id:"id",platform:"plt",format:"fmt",tactic:"tct"},extra:{fire_date:"fd",entrance_point:"ep",referer:"rf"},session:{pages_seen:"pgs",current_page:"cpg"},udata:{visits:"vst",ip:"uip",agent:"uag"},promo:"code"},pack:{main:function(e){return i.aliases.main.type+"="+e.type+i.delimiter+i.aliases.main.source+"="+e.source+i.delimiter+i.aliases.main.medium+"="+e.medium+i.delimiter+i.aliases.main.campaign+"="+e.campaign+i.delimiter+i.aliases.main.content+"="+e.content+i.delimiter+i.aliases.main.term+"="+e.term+i.delimiter+i.aliases.main.id+"="+e.id+i.delimiter+i.aliases.main.platform+"="+e.platform+i.delimiter+i.aliases.main.format+"="+e.format+i.delimiter+i.aliases.main.tactic+"="+e.tactic},extra:function(e){return i.aliases.extra.fire_date+"="+a.setDate(new Date,e)+i.delimiter+i.aliases.extra.entrance_point+"="+document.location.href+i.delimiter+i.aliases.extra.referer+"="+(document.referrer||n.none)},user:function(e,t){return i.aliases.udata.visits+"="+e+i.delimiter+i.aliases.udata.ip+"="+t+i.delimiter+i.aliases.udata.agent+"="+navigator.userAgent},session:function(e){return i.aliases.session.pages_seen+"="+e+i.delimiter+i.aliases.session.current_page+"="+document.location.href},promo:function(e){return i.aliases.promo+"="+a.setLeadingZeroToInt(a.randomInt(e.min,e.max),e.max.toString().length)}}};t.exports=i},{"./helpers/utils":5,"./terms":9}],3:[function(e,t,r){"use strict";var n=e("../data").delimiter;t.exports={useBase64:!1,setBase64Flag:function(e){this.useBase64=e},encodeData:function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\~/g,"%7E").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},decodeData:function(e){try{return decodeURIComponent(e).replace(/\%21/g,"!").replace(/\%7E/g,"~").replace(/\%2A/g,"*").replace(/\%27/g,"'").replace(/\%28/g,"(").replace(/\%29/g,")")}catch(t){try{return unescape(e)}catch(r){return""}}},set:function(e,t,r,n,a){var i,s;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),i="; expires="+o.toGMTString()}else i="";s=n&&!a?";domain=."+n:"";var c=this.encodeData(t);this.useBase64&&(c=btoa(c).replace(/=+$/,"")),document.cookie=this.encodeData(e)+"="+c+i+s+"; path=/"},get:function(e){for(var t=this.encodeData(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t)){var i=a.substring(t.length,a.length);if(/^[A-Za-z0-9+/]+$/.test(i))try{i=atob(i.padEnd(4*Math.ceil(i.length/4),"="))}catch(s){}return this.decodeData(i)}}return null},destroy:function(e,t,r){this.set(e,"",-1,t,r)},parse:function(e){var t=[],r={};if("string"==typeof e)t.push(e);else for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);for(var i=0;i<t.length;i++){var s;r[this.unsbjs(t[i])]={},s=this.get(t[i])?this.get(t[i]).split(n):[];for(var o=0;o<s.length;o++){var c=s[o].split("="),u=c.splice(0,1);u.push(c.join("=")),r[this.unsbjs(t[i])][u[0]]=this.decodeData(u[1])}}return r},unsbjs:function(e){return e.replace("sbjs_","")}}},{"../data":2}],4:[function(e,t,r){"use strict";t.exports={parse:function(e){for(var t=this.parseOptions,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},a=14;a--;)n[t.key[a]]=r[a]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,a){r&&(n[t.q.name][r]=a)}),n},parseOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(e){for(var t={},r=(e||window.location.search.substring(1)).split("&"),n=0;n<r.length;n++){var a=r[n].split("=");if("undefined"==typeof t[a[0]])t[a[0]]=a[1];else if("string"==typeof t[a[0]]){var i=[t[a[0]],a[1]];t[a[0]]=i}else t[a[0]].push(a[1])}return t},getHost:function(e){return this.parse(e).host.replace("www.","")}}},{}],5:[function(e,t,r){"use strict";t.exports={escapeRegexp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},setDate:function(e,t){var r=e.getTimezoneOffset()/60,n=e.getHours(),a=t||0===t?t:-r;return e.setHours(n+r+a),e.getFullYear()+"-"+this.setLeadingZeroToInt(e.getMonth()+1,2)+"-"+this.setLeadingZeroToInt(e.getDate(),2)+" "+this.setLeadingZeroToInt(e.getHours(),2)+":"+this.setLeadingZeroToInt(e.getMinutes(),2)+":"+this.setLeadingZeroToInt(e.getSeconds(),2)},setLeadingZeroToInt:function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},randomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}}},{}],6:[function(e,t,r){"use strict";var n=e("./data"),a=e("./terms"),i=e("./helpers/cookies"),s=e("./helpers/uri"),o=e("./helpers/utils"),c=e("./params"),u=e("./migrations");t.exports=function(e){var t,r,p,f,m,d,l,g,h,y,_,v,b,x=c.fetch(e),k=s.getParam(),w=x.domain.host,q=x.domain.isolate,I=x.lifetime;function j(e){switch(e){case a.traffic.utm:t=a.traffic.utm,r="undefined"!=typeof k.utm_source?k.utm_source:"undefined"!=typeof k.gclid?"google":"undefined"!=typeof k.yclid?"yandex":a.none,p="undefined"!=typeof k.utm_medium?k.utm_medium:"undefined"!=typeof k.gclid?"cpc":"undefined"!=typeof k.yclid?"cpc":a.none,f="undefined"!=typeof k.utm_campaign?k.utm_campaign:"undefined"!=typeof k[x.campaign_param]?k[x.campaign_param]:"undefined"!=typeof k.gclid?"google_cpc":"undefined"!=typeof k.yclid?"yandex_cpc":a.none,m="undefined"!=typeof k.utm_content?k.utm_content:"undefined"!=typeof k[x.content_param]?k[x.content_param]:a.none,l=k.utm_id||a.none,g=k.utm_source_platform||a.none,h=k.utm_creative_format||a.none,y=k.utm_marketing_tactic||a.none,d="undefined"!=typeof k.utm_term?k.utm_term:"undefined"!=typeof k[x.term_param]?k[x.term_param]:function(){var e=document.referrer;if(k.utm_term)return k.utm_term;if(!(e&&s.parse(e).host&&s.parse(e).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)))return!1;try{return s.getParam(s.parse(document.referrer).query).text}catch(t){return!1}}()||a.none;break;case a.traffic.organic:t=a.traffic.organic,r=r||s.getHost(document.referrer),p=a.referer.organic,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.referral:t=a.traffic.referral,r=r||s.getHost(document.referrer),p=p||a.referer.referral,f=a.none,m=s.parse(document.referrer).path,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.typein:t=a.traffic.typein,r=x.typein_attributes.source,p=x.typein_attributes.medium,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;default:t=a.oops,r=a.oops,p=a.oops,f=a.oops,m=a.oops,d=a.oops,l=a.oops,g=a.oops,h=a.oops,y=a.oops}var i={type:t,source:r,medium:p,campaign:f,content:m,term:d,id:l,platform:g,format:h,tactic:y};return n.pack.main(i)}function R(e){var t=document.referrer;switch(e){case a.traffic.organic:return!!t&&H(t)&&function(e){var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp("yandex")+"\\..{2,9}$"),n=new RegExp(".*"+o.escapeRegexp("text")+"=.*"),a=new RegExp("^(?:www\\.)?"+o.escapeRegexp("google")+"\\..{2,9}$");if(s.parse(e).query&&s.parse(e).host.match(t)&&s.parse(e).query.match(n))return r="yandex",!0;if(s.parse(e).host.match(a))return r="google",!0;if(!s.parse(e).query)return!1;for(var i=0;i<x.organics.length;i++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.organics[i].host)+"$","i"))&&s.parse(e).query.match(new RegExp(".*"+o.escapeRegexp(x.organics[i].param)+"=.*","i")))return r=x.organics[i].display||x.organics[i].host,!0;if(i+1===x.organics.length)return!1}}(t);case a.traffic.referral:return!!t&&H(t)&&function(e){if(!(x.referrals.length>0))return r=s.getHost(e),!0;for(var t=0;t<x.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.referrals[t].host)+"$","i")))return r=x.referrals[t].display||x.referrals[t].host,p=x.referrals[t].medium||a.referer.referral,!0;if(t+1===x.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function H(e){if(x.domain){if(q)return s.getHost(e)!==s.getHost(w);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(w)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function D(){i.set(n.containers.current_extra,n.pack.extra(x.timezone_offset),I,w,q),i.get(n.containers.first_extra)||i.set(n.containers.first_extra,n.pack.extra(x.timezone_offset),I,w,q)}return i.setBase64Flag(x.base64),u.go(I,w,q),i.set(n.containers.current,function(){var e;if("undefined"!=typeof k.utm_source||"undefined"!=typeof k.utm_medium||"undefined"!=typeof k.utm_campaign||"undefined"!=typeof k.utm_content||"undefined"!=typeof k.utm_term||"undefined"!=typeof k.utm_id||"undefined"!=typeof k.utm_source_platform||"undefined"!=typeof k.utm_creative_format||"undefined"!=typeof k.utm_marketing_tactic||"undefined"!=typeof k.gclid||"undefined"!=typeof k.yclid||"undefined"!=typeof k[x.campaign_param]||"undefined"!=typeof k[x.term_param]||"undefined"!=typeof k[x.content_param])D(),e=j(a.traffic.utm);else if(R(a.traffic.organic))D(),e=j(a.traffic.organic);else if(!i.get(n.containers.session)&&R(a.traffic.referral))D(),e=j(a.traffic.referral);else{if(i.get(n.containers.first)||i.get(n.containers.current))return i.get(n.containers.current);D(),e=j(a.traffic.typein)}return e}(),I,w,q),i.get(n.containers.first)||i.set(n.containers.first,i.get(n.containers.current),I,w,q),i.get(n.containers.udata)?(_=parseInt(i.parse(n.containers.udata)[i.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,_=i.get(n.containers.session)?_:_+1,v=n.pack.user(_,x.user_ip)):(_=1,v=n.pack.user(_,x.user_ip)),i.set(n.containers.udata,v,I,w,q),i.get(n.containers.session)?(b=parseInt(i.parse(n.containers.session)[i.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,b+=1):b=1,i.set(n.containers.session,n.pack.session(b),x.session_length,w,q),x.promocode&&!i.get(n.containers.promocode)&&i.set(n.containers.promocode,n.pack.promo(x.promocode),I,w,q),i.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),a=e("./helpers/cookies");t.exports={go:function(e,t,r){var i,s=this.migrations,o={l:e,d:t,i:r};if(a.get(n.containers.first)||a.get(n.service.migrations)){if(!a.get(n.service.migrations))for(i=0;i<s.length;i++)s[i].go(s[i].id,o)}else{var c=[];for(i=0;i<s.length;i++)c.push(s[i].id);var u="";for(i=0;i<c.length;i++)u+=c[i]+"=1",i<c.length-1&&(u+=n.delimiter);a.set(n.service.migrations,u,o.l,o.d,o.i)}},migrations:[{id:"1418474375998",version:"1.0.0-beta",go:function(e,t){var r=e+"=1",i=e+"=0",s=function(e,t,r){return t||r?e:n.delimiter};try{var o=[];for(var c in n.containers)n.containers.hasOwnProperty(c)&&o.push(n.containers[c]);for(var u=0;u<o.length;u++)if(a.get(o[u])){var p=a.get(o[u]).replace(/(\|)?\|(\|)?/g,s);a.destroy(o[u],t.d,t.i),a.destroy(o[u],t.d,!t.i),a.set(o[u],p,t.l,t.d,t.i)}a.get(n.containers.session)&&a.set(n.containers.session,n.pack.session(0),t.l,t.d,t.i),a.set(n.service.migrations,r,t.l,t.d,t.i)}catch(f){a.set(n.service.migrations,i,t.l,t.d,t.i)}}}]}},{"./data":2,"./helpers/cookies":3}],8:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/uri");t.exports={fetch:function(e){var t=e||{},r={};if(r.lifetime=this.validate.checkFloat(t.lifetime)||6,r.lifetime=parseInt(30*r.lifetime*24*60),r.session_length=this.validate.checkInt(t.session_length)||30,r.timezone_offset=this.validate.checkInt(t.timezone_offset),r.base64=t.base64||!1,r.campaign_param=t.campaign_param||!1,r.term_param=t.term_param||!1,r.content_param=t.content_param||!1,r.user_ip=t.user_ip||n.none,t.promocode?(r.promocode={},r.promocode.min=parseInt(t.promocode.min)||1e5,r.promocode.max=parseInt(t.promocode.max)||999999):r.promocode=!1,t.typein_attributes&&t.typein_attributes.source&&t.typein_attributes.medium?(r.typein_attributes={},r.typein_attributes.source=t.typein_attributes.source,r.typein_attributes.medium=t.typein_attributes.medium):r.typein_attributes={source:"(direct)",medium:"(none)"},t.domain&&this.validate.isString(t.domain)?r.domain={host:t.domain,isolate:!1}:t.domain&&t.domain.host?r.domain=t.domain:r.domain={host:a.getHost(document.location.hostname),isolate:!1},r.referrals=[],t.referrals&&t.referrals.length>0)for(var i=0;i<t.referrals.length;i++)t.referrals[i].host&&r.referrals.push(t.referrals[i]);if(r.organics=[],t.organics&&t.organics.length>0)for(var s=0;s<t.organics.length;s++)t.organics[s].host&&t.organics[s].param&&r.organics.push(t.organics[s]);return r.organics.push({host:"bing.com",param:"q",display:"bing"}),r.organics.push({host:"yahoo.com",param:"p",display:"yahoo"}),r.organics.push({host:"about.com",param:"q",display:"about"}),r.organics.push({host:"aol.com",param:"q",display:"aol"}),r.organics.push({host:"ask.com",param:"q",display:"ask"}),r.organics.push({host:"globososo.com",param:"q",display:"globo"}),r.organics.push({host:"go.mail.ru",param:"q",display:"go.mail.ru"}),r.organics.push({host:"rambler.ru",param:"query",display:"rambler"}),r.organics.push({host:"tut.by",param:"query",display:"tut.by"}),r.referrals.push({host:"t.co",display:"twitter.com"}),r.referrals.push({host:"plus.url.google.com",display:"plus.google.com"}),r},validate:{checkFloat:function(e){return!(!e||!this.isNumeric(parseFloat(e)))&&parseFloat(e)},checkInt:function(e){return!(!e||!this.isNumeric(parseInt(e)))&&parseInt(e)},isNumeric:function(e){return!isNaN(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)}}}},{"./helpers/uri":4,"./terms":9}],9:[function(e,t,r){"use strict";t.exports={traffic:{utm:"utm",organic:"organic",referral:"referral",typein:"typein"},referer:{referral:"referral",organic:"organic",social:"social"},none:"(none)",oops:"(Houston, we have a problem)"}},{}]},{},[1])(1)});
!function(t){"use strict";const e=t.params,n=(document.querySelector.bind(document),(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){document.querySelectorAll("wc-order-attribution-inputs").forEach((t,e)=>{e>0&&t.remove()});for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}function r(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).setExtensionData("woocommerce/order-attribution",t,!0)}function c(){return"undefined"!=typeof sbjs}function d(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),r(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&c()?n:i,o=c()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!c())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const i=t.getAttributionData();a(i),r(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '<wc-order-attribution-inputs>' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);
!function(t){t.fn.tipTip=function(e){var o=t.extend({activation:"hover",keepAlive:!1,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:!1,enter:function(){},exit:function(){}},e);if(t("#tiptip_holder").length<=0){var n=t('<div id="tiptip_holder" style="max-width:'+o.maxWidth+';"></div>'),i=t('<div id="tiptip_content"></div>'),r=t('<div id="tiptip_arrow"></div>');t("body").append(n.html(i).prepend(r.html('<div id="tiptip_arrow_inner"></div>')))}else n=t("#tiptip_holder"),i=t("#tiptip_content"),r=t("#tiptip_arrow");return this.each(function(){var e=t(this);if(o.content)var a=o.content;else a=DOMPurify.sanitize(e.attr(o.attribute),{ALLOWED_TAGS:["a","b","em","i","strong","p","br","pre","span","img"],ALLOWED_ATTR:["target","href","rel","name","download","title","src","alt","class","style"]});if(""!=a){o.content||e.removeAttr(o.attribute);var f=!1;function d(){var d="function"==typeof o.content?o.content():a;if(d){o.enter.call(this),i.html(d),n.hide().css("margin","0"),n.removeAttr("class"),r.removeAttr("style");var u=parseInt(e.offset().top),s=parseInt(e.offset().left),l=parseInt(e.outerWidth()),p=parseInt(e.outerHeight()),c=n.outerWidth(),h=n.outerHeight(),_=Math.round((l-c)/2),m=Math.round((p-h)/2),v=Math.round(s+_),g=Math.round(u+p+o.edgeOffset),b="",M="",O=Math.round(c-12)/2;"bottom"==o.defaultPosition?b="_bottom":"top"==o.defaultPosition?b="_top":"left"==o.defaultPosition?b="_left":"right"==o.defaultPosition&&(b="_right");var w=_+s<parseInt(t(window).scrollLeft()),A=c+s>parseInt(t(window).width());w&&_<0||"_right"==b&&!A||"_left"==b&&s<c+o.edgeOffset+5?(b="_right",M=Math.round(h-13)/2,O=-12,v=Math.round(s+l+o.edgeOffset),g=Math.round(u+m)):(A&&_<0||"_left"==b&&!w)&&(b="_left",M=Math.round(h-13)/2,O=Math.round(c),v=Math.round(s-(c+o.edgeOffset+5)),g=Math.round(u+m));var x=u+p+o.edgeOffset+h+8>parseInt(t(window).height()+t(window).scrollTop()),I=u+p-(o.edgeOffset+h+8)<0;x||"_bottom"==b&&x||"_top"==b&&!I?("_top"==b||"_bottom"==b?b="_top":b+="_top",M=h,g=Math.round(u-(h+5+o.edgeOffset))):(I|("_top"==b&&I)||"_bottom"==b&&!x)&&("_top"==b||"_bottom"==b?b="_bottom":b+="_bottom",M=-12,g=Math.round(u+p+o.edgeOffset)),"_right_top"==b||"_left_top"==b?g+=5:"_right_bottom"!=b&&"_left_bottom"!=b||(g-=5),"_left_top"!=b&&"_left_bottom"!=b||(v+=5),r.css({"margin-left":O+"px","margin-top":M+"px"}),n.css({"margin-left":v+"px","margin-top":g+"px"}).attr("class","tip"+b),f&&clearTimeout(f),f=setTimeout(function(){n.stop(!0,!0).fadeIn(o.fadeIn)},o.delay)}}function u(){o.exit.call(this),f&&clearTimeout(f),n.fadeOut(o.fadeOut)}"hover"==o.activation?(e.on("mouseenter",function(){d()}).on("mouseleave",function(){o.keepAlive&&n.is(":hover")||u()}),o.keepAlive&&n.on("mouseenter",function(){}).on("mouseleave",function(){u()})):"focus"==o.activation?e.on("focus",function(){d()}).on("blur",function(){u()}):"click"==o.activation&&(e.on("click",function(){return d(),!1}).on("mouseenter",function(){}).on("mouseleave",function(){o.keepAlive||u()}),o.keepAlive&&n.on("mouseenter",function(){}).on("mouseleave",function(){u()}))}})}}(jQuery);
jQuery(function(j){"use strict";var e={containerSelector:".yith-wcbk-select-alt__container",openedClass:"yith-wcbk-select-alt__container--opened",unselectedClass:"yith-wcbk-select-alt__container--unselected",open:function(){j(this).closest(e.containerSelector).addClass(e.openedClass)},close:function(){j(this).closest(e.containerSelector).removeClass(e.openedClass)},blur:function(){j(this).trigger("blur")}};j(document).on("focusin",e.containerSelector+" select",e.open).on("focusout change",e.containerSelector+" select",e.close).on("change",e.containerSelector+" select",e.blur),j(document).on("yith-wcbk-init-fields:help-tip",function(){j(".yith-wcbk-help-tip:not(.yith-wcbk-help-tip--initialized)").each(function(){j(this).tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200}),j(this).addClass("yith-wcbk-help-tip--initialized")})}).trigger("yith-wcbk-init-fields:help-tip"),j(document).on("yith-wcbk-init-fields:selector",function(){j(".yith-wcbk-selector:not(.yith-wcbk-selector--initialized)").each(function(){var t=j(this),i=t.data("placeholder"),e=t.data("options"),l=t.data("selected"),n=!!t.data("multiple"),c=!!t.data("allow-clear"),a={},o={},s={field:t.find(".yith-wcbk-selector__field"),head:t.find(".yith-wcbk-selector__head"),label:t.find(".yith-wcbk-selector__label"),labelImage:t.find(".yith-wcbk-selector__label__image"),dropdown:t.find(".yith-wcbk-selector__dropdown, .yith-wcbk-selector__list"),close:t.find(".yith-wcbk-selector__close"),clear:t.find(".yith-wcbk-selector__clear"),items:t.find(".yith-wcbk-selector__item")},d=function(e){return e in a&&a[e]},r=function(){return t.hasClass("yith-wcbk-selector--opened")},h=function(e){return e in o&&"label"in o[e]?o[e].label:""},b=function(e){return e in o&&"image"in o[e]?o[e].image:""},f=function(){return n?!!l.length:!!l},u=function(){var e;f()?(n?(e=(e=l.map(h)).filter(function(e){return!!e}),s.label.html(e.join(", "))):(e=b(l),s.label.html(h(l)),s.labelImage.html(e),e?s.head.removeClass("yith-wcbk-selector__head--no-image"):s.head.addClass("yith-wcbk-selector__head--no-image")),s.label.addClass("yith-wcbk-selector__label--selected"),s.label.removeClass("yith-wcbk-selector__label--placeholder")):(s.label.html(i),s.label.removeClass("yith-wcbk-selector__label--selected"),s.label.addClass("yith-wcbk-selector__label--placeholder"),s.head.addClass("yith-wcbk-selector__head--no-image"))},p=function(){var e;s.items.removeClass("yith-wcbk-selector__item--selected"),f()&&(n?j.each(l,function(e,t){t=d(t);t&&t.addClass("yith-wcbk-selector__item--selected")}):(e=d(l))&&e.addClass("yith-wcbk-selector__item--selected"))},w=function(){f()?t.addClass("yith-wcbk-selector--selected"):t.removeClass("yith-wcbk-selector--selected")},y=function(e){l=e,t.data("selected",l),k()},k=function(){p(),u(),w(),s.field.val(l).trigger("change")},_=function(e){var t,i;return n?(-1<(i=(t=l.slice()).indexOf(e))?t.splice(i,1):t.push(e),t):e},g=function(e){y(_(e))},m=function(){c&&(y(n?[]:""),z())},v=function(){n||z()},C=function(){(r()?z:S)()},S=function(){t.addClass("yith-wcbk-selector--opened");var e=s.dropdown.get(0).getBoundingClientRect();!(s.head.get(0).getBoundingClientRect().y>e.height)||window.innerHeight>=e.y+e.height?(t.addClass("yith-wcbk-selector--opened--below"),t.removeClass("yith-wcbk-selector--opened--above")):(t.addClass("yith-wcbk-selector--opened--above"),t.removeClass("yith-wcbk-selector--opened--below"))},z=function(){t.removeClass("yith-wcbk-selector--opened"),t.removeClass("yith-wcbk-selector--opened--below"),t.removeClass("yith-wcbk-selector--opened--above")};j.each(e,function(e,t){o[t.key]=t}),s.items.each(function(){var e=j(this),t=e.data("key");a[t]=e}),document.addEventListener("click",function(e){s.close.length&&s.close.get(0).contains(e.target)?(e.preventDefault(),z()):s.clear.length&&s.clear.get(0).contains(e.target)?(e.preventDefault(),m()):s.dropdown.length&&s.dropdown.get(0).contains(e.target)||(s.head.length&&s.head.get(0).contains(e.target)?(e.preventDefault(),C):z)()},!0),s.items.on("click",function(e){e=j(e.target).closest(".yith-wcbk-selector__item").data("key");g(e),v()}),t.addClass("yith-wcbk-selector--initialized")})}).trigger("yith-wcbk-init-fields:selector"),j(document).on("yith-wcbk-init-fields:select-list",function(){j(".yith-wcbk-select-list:not(.yith-wcbk-select-list--initialized)").each(function(){var t=j(this),i=t.data("empty-message"),l={option:"yith-wcbk-select-list__option",optionSkeleton:"yith-wcbk-select-list__option-skeleton",selected:"yith-wcbk-select-list__option--selected",emptyMessage:"yith-wcbk-select-list__empty-message"},n={field:t.find("select.yith-wcbk-select-list__field"),container:t.find(".yith-wcbk-select-list__options")},c=function(e){t.data("is-loading",e)},a=function(){return t.data("is-loading")},e=function(){n.container.html("");var e=n.field.find('option[value!=""]');e.length?e.each(function(){var e=[l.option,j(this).is(":selected")?l.selected:""].filter(Boolean).join(" "),t=j("<div />");t.addClass(e),t.attr("data-value",j(this).val()),t.html(j(this).html()),n.container.append(t)}):a()?(e=j("<div />").addClass(l.optionSkeleton),n.container.append(e.clone()),n.container.append(e.clone()),n.container.append(e.clone())):i&&n.container.append(j("<div />").addClass(l.emptyMessage).html(i)),c(!1)},o=function(){var e=n.field.val();n.container.find("."+l.selected).removeClass(l.selected),n.container.find("."+l.option+'[data-value="'+e+'"]').addClass(l.selected)},s=function(e){e=j(e.target).data("value");n.field.val(e),n.field.trigger("change")};e(),n.field.on("yith-wcbk-select-list:update",e),n.field.on("change",o),n.container.on("click","."+l.option,s),t.addClass("yith-wcbk-select-list--initialized")})}).trigger("yith-wcbk-init-fields:select-list")});
!function(e){"use strict";var a={},t=function(e){var t=""+e;return t=e<10?"0"+t:t};a.DAY_IN_SECONDS=86400,a.DAY_IN_MILLISECONDS=1e3*a.DAY_IN_SECONDS,a.formatDate=function(e){return[e.getFullYear(),t(e.getMonth()+1),t(e.getDate())].join("-")},a.add_days_to_date=function(e,t){return"object"==typeof e&&(e=a.formatDate(e)),e+="T00:00:00",(e=new Date(e)).setDate(e.getDate()+t),e},a.date_diff=function(e,t,a){"string"==typeof e&&(e=e.replace(/-/g,"/")),"string"==typeof t&&(t=t.replace(/-/g,"/")),e=new Date(e),t=new Date(t);var n,r,i=0;switch(a=void 0!==a?a:"seconds"){case"days":r=e.getTime()-60*e.getTimezoneOffset()*1e3,n=t.getTime()-60*t.getTimezoneOffset()*1e3,i=parseInt((r-n)/864e5);break;case"months":var o=e.getFullYear(),s=t.getFullYear(),i=e.getMonth()+12*o-(t.getMonth()+12*s);break;default:r=e.getTime()-60*e.getTimezoneOffset()*1e3,n=t.getTime()-60*t.getTimezoneOffset()*1e3,i=parseInt(r-n,10)}return isNaN(i)?0:i},e.yith_wcbk_dates=a}(this);
jQuery(function(y){"use strict";y.fn.yith_wcbk_datepicker=function(){var t=new Date,g=new Date(t.getFullYear(),t.getMonth(),t.getDate()),p=function(t){var e=t.data("type"),a=y(t.data("related-from"));return t="to"===e&&0<a.length?a:t},m=function(t){return{all_day:(t=p(t)).data("all-day"),allow_same_date:t.data("allow-same-date")||"yes",ajax_load_months:t.data("ajax-load-months"),month_to_load:t.data("month-to-load"),year_to_load:t.data("year-to-load"),min_duration:t.data("min-duration"),notAvailableDates:t.data("not-available-dates")||[],product_id:t.data("product-id"),is_static:t.data("static")||"no",loadedMonths:t.data("loaded-months")||[],monthsToLoad:t.data("months-to-load")||1}};return y(this).each(function(){var l=y(this),a=l.parent(".yith-wcbk-date-range-picker"),s=l.data("type"),t=l.data("min-date"),e=l.data("max-date"),i=l.data("number-of-months")||1,c=y(l.data("related-to")),n=y(l.data("on-select-open")),_=y(l.data("related-from")),o=l.next(".yith-wcbk-date-picker--formatted"),d=y(l.data("update-on-change")),h=!1,k="yes"===l.data("disable-after-non-available-date")&&"to"===s,r=function(t,e){e=e||0;var a,i,n=m(l);0<c.length&&(i="yes"===bk.settings.check_min_max_duration_in_calendar?n.min_duration:1,"yes"===n.allow_same_date&&--i,a=0<i?yith_wcbk_dates.add_days_to_date(t,i):t,c.val()&&yith_wcbk_dates.date_diff(c.val(),a)<0&&c.datepicker("setDate",null),e?setTimeout(function(){c.datepicker("option","minDate",a)},e):c.datepicker("option","minDate",a))},t=(l.datepicker({dateFormat:"yy-mm-dd",minDate:t,maxDate:e,showAnim:!1,showButtonPanel:!0,closeText:yith_wcbk_datepicker_params.i18n_clear,altField:o,altFormat:bk.settings.datepickerFormat,numberOfMonths:i,popup:{position:"bottom left",origin:"top left"},beforeShow:function(t,e){h=!1,l.addClass("yith-wcbk-datepicker--opened"),a.length&&(a.addClass("yith-wcbk-date-range-picker--opened"),s)&&a.addClass("yith-wcbk-date-range-picker--opened-"+s),y("#ui-datepicker-div").addClass("yith-wcbk-datepicker").addClass("notranslate"),"yes"===m(l).is_static&&y("#ui-datepicker-div").addClass("yith-wcbk-datepicker--static").appendTo(l.parent().parent()),e.yith_booking_date_selected=!1,setTimeout(function(){y(".ui-datepicker-close").on("click",function(){l.datepicker("setDate",null).trigger("change")})},10)},beforeShowDay:function(t){var e,a,i=!0,n=l.data("allowed-days")||[],o=m(l),d=[],r=!("to"!==s||!_.length)&&_.datepicker("getDate");return 1900<t.getFullYear()&&15===t.getDate()&&(a=p(l),function(t,e,a){a=m(l=a),t=t+"-"+(9<e?e:"0"+parseInt(e,10));return!a.loadedMonths.includes(t)}(t.getFullYear(),t.getMonth()+1,l))&&(!function(t,e,a){a=m(l=a);if("yes"===a.ajax_load_months){a=a.year_to_load+"-"+a.month_to_load+"-01";if(0===yith_wcbk_dates.date_diff(t+"-"+e+"-01",a,"months"))return!0}return!1}(t.getFullYear(),t.getMonth()+1,l)?l.trigger("yith_wcbk_datepicker_load_non_available_dates_in_month",[a,o,t.getFullYear(),t.getMonth()+1]):l.trigger("yith_wcbk_datepicker_update_non_available_dates",[a,o])),(i=i&&k&&h&&t.getTime()>=h.getTime()?!1:i)&&0<n.length&&(a=t.getDay(),i=-1!==n.indexOf(a=0===a?7:a)),i&&0<o.notAvailableDates.length&&(e="yes"===bk.settings.check_min_max_duration_in_calendar?o.min_duration:1,"yes"===o.all_day&&--e,a="to"===s?yith_wcbk_dates.add_days_to_date(t,-e):t,n=yith_wcbk_dates.formatDate(a),i=-1===o.notAvailableDates.indexOf(n)),!i&&t.getTime()>g.getTime()&&(d.push("bk-non-available-date"),"to"!==s||r&&t.getTime()>r.getTime()+yith_wcbk_dates.DAY_IN_MILLISECONDS*e)&&(h=h||new Date(t)),"from"===s&&c.length&&yith_wcbk_dates.formatDate(t)===c.val()&&d.push("bk-to-date"),"to"===s&&_.length&&yith_wcbk_dates.formatDate(t)===_.val()&&d.push("bk-from-date"),[i,d.join(" ")]},onClose:function(t,e){y("#ui-datepicker-div").removeClass("yith-wcbk-datepicker").removeClass("notranslate"),"yes"===m(l).is_static&&y("#ui-datepicker-div").removeClass("yith-wcbk-datepicker--static").appendTo(y("body")),e.yith_booking_date_selected&&0<n.length&&!n.val()&&(n.trigger("focus"),setTimeout(function(){n.trigger("focus")},50)),l.removeClass("yith-wcbk-datepicker--opened"),a.length&&(a.removeClass("yith-wcbk-date-range-picker--opened"),s)&&a.removeClass("yith-wcbk-date-range-picker--opened-"+s)},onSelect:function(t,e){t&&(r(t),e.yith_booking_date_selected=!0),y(this).trigger("change")}}),o.on("focus",function(){l.trigger("focus")}),l.parent().find(".yith-wcbk-booking-date-icon")),u=!1;t.on("mousedown",function(){u=!!l.datepicker("widget").is(":visible")}).on("click",function(){u||l.trigger("focus")}),l.is(".yith-wcbk-date-picker--inline")&&l.val(l.data("value")),l.val()&&(l.datepicker("setDate",l.val()+" 00:00:00"),r(l.val(),100)),d.length&&(l.on("change",function(){d.val(y(this).val())}),d.val(l.val()))})}});
jQuery(function(i){"use strict";i.fn.yith_wcbk_monthpicker=function(){return i(this).each(function(){i(this).on("click",".month.enabled",function(e){var t=i(this).closest(".yith-wcbk-month-picker-wrapper"),n=t.find(".selected"),e=i(e.target),c=e.data("value"),t=t.find(".yith-wcbk-month-picker-value");e.is(".selected")||(n.removeClass("selected"),e.addClass("selected"),t.val(c),t.trigger("change"))}).on("click",".prev, .next",function(e){console.log("click");var t=i(this).closest(".yith-wcbk-month-picker-wrapper"),e=i(e.target),n=parseInt(t.data("current-year")),n=e.is(".prev")?n-1:n+1,c=t.find(".year-"+n);e.is(".enabled")&&0<c.length&&(t.find(".year").hide(),c.show(),t.data("current-year",n))})})}});
!function(v,m){v.fn.yith_wcbk_people_selector=function(t){var o=this,l=v(this),n=!1,a="",e=!1,s={main:!1,open:!1,close:!1,toggle:!1,widget:v(".yith_wcbk_booking_product_form_widget")},i=function(){m.addEventListener("click",g,!0);var e=l.attr("id"),e=!!e&&v('label[for="'+e+'"]');l.on("open",u),l.on("close",f),n.on("change",d),e&&e.length&&e.on("click",function(){s.toggle.trigger("click")})},c=function(){var e=l.data("min"),n=l.data("max");o.min=void 0!==e&&parseInt(e,10),o.max=void 0!==n&&parseInt(n,10)},r=function(){a=l.find(t.totals_selector)||"",e=l.find(t.fieldsContainer_selector)||"",n=l.find(t.field_selector)||!1,s.main=l.find("."+t["class"]),s.open=l.find(t.openHandler_selector),s.close=l.find(t.closeHandler_selector),s.toggle=l.find(t.toggleHandler_selector),_(),n&&n.each(function(){v(this).yith_wcbk_people_selector_field({canIncreaseGlobal:function(){return!1===o.max||o.value<o.max},onUpdate:function(){n.trigger("enableDisableButtons")}})})},p=function(){return!!l.hasClass(t.opened_class)},_=function(){var e=0;n&&n.each(function(){e+=parseInt(v(this).yith_wcbk_people_selector_field("getValue"))}),o.value=e},d=function(e){var n,e=e||!0;_(),n=1<o.value?t.plural_label.replace("%s",o.value.toString()):1===o.value?t.singular_label:t.zero_label,a.text(n),e&&l.trigger("change")},u=function(){l.removeClass(t.closed_class).addClass(t.opened_class),e&&e.show(),t.onOpen()},f=function(){l.removeClass(t.opened_class).addClass(t.closed_class),e&&e.hide(),t.onClose()},b=function(e){"object"==typeof e&&"undefined"!=typeof e.stopPropagation&&e.stopPropagation(),(p()?f:u)()},g=function(e){s.close.length&&s.close.get(0).contains(e.target)?f():s.open.length&&s.open.get(0).contains(e.target)?u():s.toggle.length&&s.toggle.get(0).contains(e.target)?b():l.get(0).contains(e.target)||f()},h={zero_label:yith_people_selector_params.i18n_zero_person,singular_label:yith_people_selector_params.i18n_one_person,plural_label:yith_people_selector_params.i18n_more_persons,"class":"yith-wcbk-people-selector",totals_selector:".yith-wcbk-people-selector__totals",closeHandler_selector:".yith-wcbk-people-selector__close-handler",openHandler_selector:".yith-wcbk-people-selector__open-handler",toggleHandler_selector:".yith-wcbk-people-selector__toggle-handler",fieldsContainer_selector:".yith-wcbk-people-selector__fields-container",field_selector:".yith-wcbk-people-selector__field",opened_class:"yith-wcbk-people-selector--opened",closed_class:"yith-wcbk-people-selector--closed",onOpen:function(){},onClose:function(){}};return t=v.extend({},h,t),o.val=function(){return o.value},o.value=0,c(),r(),i(),d(!1),f(),l},v.fn.yith_wcbk_people_selector_field=function(e){var t=this,o=v(this),l=!1,a=!1,n=!1,s=!1,i=function(){l=o.find(t.options.value_selector)||!1,a=o.find(t.options.total_selector)||!1,n=o.find(t.options.plus_selector)||!1,s=o.find(t.options.minus_selector)||!1},c=function(){o.on("click",t.options.plus_selector,function(){t.canIncrease()&&f()}),o.on("click",t.options.minus_selector,function(){t.canDecrease()&&u()}),o.on("enableDisableButtons",t.enableDisableButtons)},r=function(){var e=o.data("min"),n=o.data("max");t.min=void 0!==e&&parseInt(e),t.max=void 0!==n&&parseInt(n)},p=function(e){var e=void 0===e||e,n=d();a&&a.text(n),l&&l.val(n),e&&l.trigger("change"),t.enableDisableButtons(),t.options.onUpdate()},_=function(e,n){l&&void 0!==e&&(e=e,!1!==t.min&&(e=Math.max(t.min,parseInt(e))),!1!==t.max&&(e=Math.min(t.max,parseInt(e))),e=parseInt(e),l.val(e),o.data("value",e),p(n))},d=function(){var e=0;return l&&(e=l.val()||0),parseInt(e)},u=function(e){var e=void 0===e||isNaN(e)?1:parseInt(e),n=d(),e=parseInt(e);_(n-e)},f=function(e){var e=void 0===e||isNaN(e)?1:parseInt(e),n=d(),e=parseInt(e);_(n+e)},b={value_selector:".yith-wcbk-people-selector__field__value",total_selector:".yith-wcbk-people-selector__field__total",plus_selector:".yith-wcbk-people-selector__field__plus",minus_selector:".yith-wcbk-people-selector__field__minus",buttonDisabledClass:"yith-wcbk-people-selector__field__button--disabled",canIncreaseGlobal:function(){return!0},canDecreaseGlobal:function(){return!0},onUpdate:function(){}};return t.canIncrease=function(){var e=!0;return(e=!1!==t.max?d()<t.max:e)&&t.options.canIncreaseGlobal()},t.canDecrease=function(){var e=!0;return(e=!1!==t.min?d()>t.min:e)&&t.options.canDecreaseGlobal()},t.enableDisableButtons=function(){t.canIncrease()?n.removeClass(t.options.buttonDisabledClass):n.addClass(t.options.buttonDisabledClass),t.canDecrease()?s.removeClass(t.options.buttonDisabledClass):s.addClass(t.options.buttonDisabledClass)},"getValue"===(e=void 0!==e?e:{})?o.data("value")||0:(t.options=v.extend({},b,e),r(),i(),c(),_(d(),!1),o)}}(jQuery,(window,document));
window.yith_booking=window.yith_booking||{},function(i){window.yith_booking.ajax=function(o,n){return n=void 0!==n?n:{},(o=void 0!==o?o:{}).action=bk.frontendAjaxAction,o.context="frontend","block"in n&&n.block.block(bk.blockParams),i.ajax({type:"POST",data:o,url:bk.ajaxurl,complete:function(){"block"in n&&n.block.unblock()}})}}(jQuery);
jQuery(function(_){"use strict";var f=function(t){return Math.abs(parseInt(t,10))||0},h=function(){var t,o=arguments[0],a=Array.prototype.slice.call(arguments).slice(1);for(t in a)var e=a[t],o=o.replace("%s",e);return o},p=function(){return Array.prototype.slice.call(arguments).filter(function(t){return t.length}).shift()},g=bk.blockParams,a=bk.blockParamsEmpty,b="on-form-update"===yith_booking_form_params.form_error_handling,k="on-button-click"===yith_booking_form_params.form_error_handling,y=function(t,o){var a,e,i="";return i=o in bk.i18n_durations?h((a=bk.i18n_durations[o].singular,o=bk.i18n_durations[o].plural,e=t,(e=isNaN(e)?0:e)<2?a:o),t):i},v=function(t,o){return"string"==typeof o&&(o=[o]),void 0!==t.find(function(t){return-1<o.indexOf(t.key)})};_.fn.yith_booking_form=function(){var u={form:_(this).closest(".yith-wcbk-booking-form"),dom:{},ajaxCall:null},i=(u.productID=u.form.data("product-id"),u.bookingData=u.form.data("booking_data"),u.dom={duration:u.form.find(".yith-wcbk-booking-duration"),realDuration:u.form.find(".yith-wcbk-booking-real-duration"),persons:u.form.find(".yith-wcbk-booking-persons"),personTypes:u.form.find(".yith-wcbk-booking-person-types"),optionalServices:u.form.find("input[type=checkbox].yith-wcbk-booking-service"),serviceQuantities:u.form.find("input.yith-wcbk-booking-service-quantity"),startDate:u.form.find(".yith-wcbk-booking-start-date"),from:u.form.find(".yith-wcbk-booking-hidden-from"),endDate:u.form.find(".yith-wcbk-booking-end-date"),message:u.form.find(".yith-wcbk-booking-form-message"),totals:u.form.find(".yith-wcbk-booking-form-totals"),totalsSection:u.form.find(".yith-wcbk-form-section-totals"),additionalData:u.form.find(".yith-wcbk-booking-form-additional-data"),time:u.form.find(".yith-wcbk-booking-start-date-time"),addToCart:u.form.closest("form").find("button[type=submit]"),addToQuote:_(".add-request-quote-button").first(),prices:u.form.closest(yith_booking_form_params.dom.product_container).find(yith_booking_form_params.dom.price)},u.dom.price="yes"!==yith_booking_form_params.price_first_only?u.dom.prices:u.dom.prices.first(),u.dom.timeWrap=u.dom.time.closest(".yith-wcbk-form-section"),u.getDuration=function(){return u.bookingData.duration},u.getDurationUnit=function(){return u.bookingData.duration_unit},u.getMinimumDuration=function(){return u.bookingData.minimum_duration},u.getMaximumDuration=function(){return u.bookingData.maximum_duration},u.getMinimumPeople=function(){return u.bookingData.minimum_number_of_people},u.getMaximumPeople=function(){return u.bookingData.maximum_number_of_people},u.getFormattedDuration=function(t){return y(t,u.getDurationUnit())},u.hasDuration=function(){return!!u.dom.duration.length},u.isDurationUnit=function(t){return"string"==typeof t?t===u.getDurationUnit():t.includes(u.getDurationUnit())},u.isFullDay=function(){return"yes"===u.bookingData.full_day},u.hasTime=function(){return u.isDurationUnit(["hour","minute"])},u.hasPeople=function(){return!!u.dom.persons.length||u.hasPersonTypes()},u.hasPersonTypes=function(){return!!u.dom.personTypes.length},u.hasOptionalServices=function(){return!!u.dom.optionalServices.length},u.updateTotalsHtml=function(t){t?u.dom.totalsSection.show():u.dom.totalsSection.hide(),u.dom.totals.html(t)},u.updateMessageHtml=function(t){t?u.dom.message.show():u.dom.message.hide(),u.dom.message.html(t)},function(){return u.form.find(".yith-wcbk-booking-form-error").length}),n=function(){u.form.find(".yith-wcbk-booking-form-error").remove(),u.form.find(".yith-wcbk-form-section__content--with-error").removeClass("yith-wcbk-form-section__content--with-error")},r=function(t){for(var o in n(),t){var a,o=t[o];o.message&&o.field&&(a=_('<div class="yith-wcbk-booking-form-error">'+o.message+"</div>"),o.field.closest(".yith-wcbk-form-section__content").addClass("yith-wcbk-form-section__content--with-error").append(a))}},d=function(){var t=f(u.dom.duration.val()),o=f(u.dom.persons.val()),a=u.dom.startDate.val(),e=a,i=u.dom.endDate.val(),n=o,r=u.dom.time.val(),d=!0,m={},s=[],l=(u.dom.from.length&&(r?u.dom.from.val(a+" "+r):u.dom.from.val(a),e=u.dom.from.val()),u.hasPersonTypes()&&(n=0,u.dom.personTypes.each(function(){n+=_(this).val()<1?0:parseInt(_(this).val(),10)})),u.hasDuration()&&!t&&(s.push({key:"empty-duration",field:u.dom.duration,message:yith_booking_form_params.i18n_empty_duration}),d=!1),e&&i&&u.isDurationUnit("day")&&(t=yith_wcbk_dates.date_diff(i,e,"days"),u.isFullDay())&&(t+=1),(!a||0<u.dom.endDate.length&&!i)&&(u.hasTime()?s.push({key:"empty-date-for-time",field:u.dom.startDate,message:yith_booking_form_params.i18n_empty_date_for_time}):s.push({key:"empty-date",field:p(u.dom.endDate,u.dom.startDate),message:yith_booking_form_params.i18n_empty_date}),d=!1),u.hasTime()&&a&&!r&&(s.push({key:"empty-time",field:u.dom.time,message:yith_booking_form_params.i18n_empty_time}),d=!1),u.hasPeople()&&(n<u.getMinimumPeople()&&(s.push({key:"minimum-people",field:u.hasPersonTypes()?u.dom.personTypes.last():u.dom.persons,message:h(yith_booking_form_params.i18n_min_persons,u.getMinimumPeople())}),d=!1),0<u.getMaximumPeople())&&n>u.getMaximumPeople()&&(s.push({key:"maximum-people",field:u.hasPersonTypes()?u.dom.personTypes.last():u.dom.persons,message:h(yith_booking_form_params.i18n_max_persons,u.getMaximumPeople())}),d=!1),0<u.getMinimumDuration()&&t<u.getMinimumDuration()&&(v(s,["empty-duration","empty-date"])||s.push({key:"minimum-duration",field:p(u.dom.duration,u.dom.endDate,u.dom.startDate),message:h(yith_booking_form_params.i18n_min_duration,u.getFormattedDuration(u.getMinimumDuration()))}),d=!1),u.getMaximumDuration()&&t>u.getMaximumDuration()&&(v(s,["empty-duration","empty-date"])||s.push({key:"maximum-duration",field:p(u.dom.duration,u.dom.endDate,u.dom.startDate),message:h(yith_booking_form_params.i18n_max_duration,u.getFormattedDuration(u.getMaximumDuration()))}),d=!1),[]),c=[];return u.hasPersonTypes()&&u.dom.personTypes.each(function(){l.push({id:_(this).data("person-type-id"),number:_(this).val()})}),u.hasOptionalServices()&&u.dom.optionalServices.each(function(){_(this).is(":checked")&&c.push(_(this).data("service-id"))}),m={product_id:u.productID,duration:t,from:e,from_date:a,time:r,to:i,persons:o,person_types:l,booking_services:c},u.dom.serviceQuantities.length&&u.dom.serviceQuantities.each(function(){var t=_(this).attr("name"),o=_(this).val();t.length&&(m[t]=o)}),u.dom.additionalData.length&&u.dom.additionalData.each(function(){var t=_(this),o=t.attr("name"),a=t.val(),t=!t.is("input[type=checkbox]")||t.is(":checked"),e="[]"===o.substring(o.length-2,o.length);t&&o.length&&(e?o in m?m[o].push(a):m[o]=Array.isArray(a)?a:[a]:m[o]=a)}),{errors:s,validation:d,formData:m}},m=function(t){t?(u.dom.addToCart.removeClass("yith-wcbk-not-allowed"),u.dom.addToQuote.removeClass("yith-wcbk-not-allowed")):(u.dom.addToCart.addClass("yith-wcbk-not-allowed"),u.dom.addToQuote.addClass("yith-wcbk-not-allowed")),!b||t?(u.dom.addToCart.attr("disabled",!1),u.dom.addToQuote.removeClass("disabled")):(u.dom.addToCart.attr("disabled",!0),u.dom.addToQuote.addClass("disabled")),u.form.trigger("yith_wcbk_booking_form_add_to_cart_enabled_status_updated",[t])},s=function(t){t?(u.dom.totals.html()&&u.dom.totals.block(g),u.dom.message.html()&&u.dom.message.block(g),u.dom.price.block(g),u.dom.addToCart.block(a),u.dom.addToQuote.block(a)):(u.dom.message.unblock(),u.dom.price.unblock(),u.dom.addToCart.unblock(),u.dom.addToQuote.unblock())},t=function(t){_(this).is(".yith-wcbk-not-allowed")&&t.preventDefault(),k&&(n(),(t=d()).validation||r(t.errors))},e=function(o){o=void 0!==o?o:{},o=_.extend({},{updateFormOnCompleteOnlyIfValid:!1},o);var t=!1,a=d(),e=a.formData.duration||0,i=a.formData.from_date||!1,n=a.formData.time||!1,a=a.formData;return u.hasTime()&&i&&e&&(a.request="get_booking_available_times",u.ajaxCall&&u.ajaxCall.abort(),t=!0,u.ajaxCall=yith_booking.ajax(a,{block:u.dom.time.parent()}),u.ajaxCall.done(function(t){var o,t=t.data;try{t.error?u.dom.message.html('<p class="error">'+t.error+"</p>"):(t.time_data_html&&u.dom.time.html(t.time_data_html),n&&(o=u.dom.time.find('option[value="'+n+'"]'))&&o.attr("selected","selected"),t.message&&u.dom.message.html("<p>"+t.message+"</p>"),u.dom.time.trigger("yith-wcbk-select-list:update"),u.form.trigger("yith_wcbk_form_update_time",t))}catch(a){console.log(a)}}).always(function(){var t=d();o.updateFormOnCompleteOnlyIfValid&&!t.validation||u.form.trigger("yith_wcbk_booking_form_update")})),t},l=function(t){return!(!b||(t="undefined"!=typeof t.target&&t.target)&&t.is(".yith-wcbk-booking-start-date")&&u.dom.endDate.length&&!u.dom.endDate.val())},c=function(){u.hasTime()&&(u.dom.startDate.val()?u.dom.timeWrap.show():u.dom.timeWrap.hide())},o=function(a,e){var t=d().formData,i={notAvailableDates:a.data("not-available-dates")||[]};t.request="get_product_non_available_dates",yith_booking.ajax(t).done(function(t){t=t.data;try{t.error?console.log(t.error):(a.data("month-to-load",t.month_to_load),a.data("year-to-load",t.year_to_load),a.data("not-available-dates",i.notAvailableDates.concat(t.not_available_dates)),a.data("loaded-months",i.loadedMonths.concat(t.loaded_months)),a.datepicker("refresh"))}catch(o){console.log(o.message)}e()})};u.updateTotalsHtml(""),m(!1),u.dom.addToCart.on("click",t),u.dom.addToQuote.on("click",t),u.dom.realDuration.on("change",function(){var t=Math.floor(u.dom.realDuration.val()/u.getDuration());u.dom.duration.val(t).trigger("change")}),u.form.on("yith_wcbk_booking_form_update",function(t,o){var a=i(),e=d();o=void 0!==o?o:{},n(),e.validation?(s(!0),e.formData.request="get_booking_data",u.ajaxCall&&u.ajaxCall.abort(),u.ajaxCall=yith_booking.ajax(e.formData),u.ajaxCall.done(function(t){var o=t.data;try{o.error?u.updateMessageHtml('<p class="error">'+t.error+"</p>"):(o.message?u.updateMessageHtml(o.message):u.updateMessageHtml(""),o.totals_html?u.updateTotalsHtml(o.totals_html):u.updateTotalsHtml(""),o.price&&0<o.price.length&&u.dom.price.html(o.price),m(!!o.is_available),u.form.trigger("yith_wcbk_form_update_response",o))}catch(a){console.log(a.message)}}).always(function(t,o){"abort"!==o&&s(!1)})):(u.updateMessageHtml(""),u.updateTotalsHtml(""),(a||l(o))&&r(e.errors),m(!1))}),u.form.on("yith_wcbk_booking_form_loaded",function(){var t=!e({updateFormOnCompleteOnlyIfValid:!0});c(),t&&d().validation&&u.form.trigger("yith_wcbk_booking_form_update")}),u.form.on("yith_wcbk_booking_form_update_time_slots",e),u.form.on("yith_wcbk_datepicker_update_non_available_dates",".yith-wcbk-date-picker",function(t,a,e){var i=_(this),o=d().formData;_("#ui-datepicker-div").block(g),o.month=e.month_to_load,o.year=e.year_to_load,o.request="get_product_non_available_dates",yith_booking.ajax(o).done(function(t){t=t.data;try{t.error?console.log(t.error):(a.data("month-to-load",t.month_to_load),a.data("year-to-load",t.year_to_load),a.data("not-available-dates",e.notAvailableDates.concat(t.not_available_dates)),a.data("loaded-months",e.loadedMonths.concat(t.loaded_months)),_("#ui-datepicker-div").unblock(),i.datepicker("refresh"))}catch(o){console.log(o.message)}})}),u.form.on("yith_wcbk_datepicker_load_non_available_dates_in_month",".yith-wcbk-date-picker",function(t,a,e,o,i){var n=_(this),r=d().formData;r.year=o,r.month=i,r.months_to_load=1,r.request="get_product_non_available_dates",_("#ui-datepicker-div").block(g),yith_booking.ajax(r).done(function(t){t=t.data;try{t.error?console.log(t.error):(a.data("not-available-dates",e.notAvailableDates.concat(t.not_available_dates)),a.data("loaded-months",e.loadedMonths.concat(t.loaded_months)),_("#ui-datepicker-div").unblock(),n.datepicker("refresh"))}catch(o){console.log(o.message)}})}),u.form.on("change","input, select, .yith-wcbk-date-picker--inline",function(t){var o=_(t.target),a=!0;!o.is(".yith-wcbk-booking-real-duration")&&(c(),a=o.is(".yith-wcbk-booking-start-date")||o.is(".yith-wcbk-booking-duration")?!e():a)&&u.form.trigger("yith_wcbk_booking_form_update",[{target:o,event:t}])}),!yith_booking_form_params.is_admin&&"yes"===yith_booking_form_params.ajax_update_non_available_dates_on_load&&u.dom.startDate.is(".yith-wcbk-date-picker")?(u.dom.startDate.parent().block(g),o(u.dom.startDate,function(){u.dom.startDate.parent().unblock(),u.form.trigger("yith_wcbk_booking_form_loaded")})):u.form.trigger("yith_wcbk_booking_form_loaded")},_(document).on("yith-wcbk-init-booking-form",function(){var t=_(".yith-wcbk-date-picker"),o=_(".yith-wcbk-booking-form"),a=_(".yith-wcbk-people-selector"),e=_(".yith-wcbk-month-picker-wrapper");t.yith_wcbk_datepicker(),e.yith_wcbk_monthpicker(),a.each(function(){_(this).yith_wcbk_people_selector()}),o.each(function(){_(this).yith_booking_form()}),_(document).trigger("yith-wcbk-booking-form-initialized")}).trigger("yith-wcbk-init-booking-form"),_(document).on("qv_loader_stop",function(){_(document).trigger("yith-wcbk-init-booking-form"),_(document).trigger("yith-wcbk-init-fields:selector"),_(document).trigger("yith-wcbk-init-fields:help-tip"),_(document).trigger("yith-wcbk-init-fields:select-list")})});
(function(){function t(t,e){for(var r in e)Y.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t}var u,c,e,r,o,n,s,i,a,v,l,p,w,h,d,f,g,b,S,m,y,k,q,x,L,P,T,R,E,j,O,A,M,N,_,F,C,U,W,X,D,H,I,z,G,B,J,K,Q,V=[].slice,Y={}.hasOwnProperty,Z=[].indexOf||function(t){for(var e=0,r=this.length;e<r;e++)if(e in this&&this[e]===t)return e;return-1};function $(){}for(y={catchupTime:100,initialRate:.03,minTime:250,ghostTime:100,maxProgressPerFrame:20,easeFactor:1.25,startOnPageLoad:!0,restartOnPushState:!0,restartOnRequestAfter:500,target:"body",elements:{checkInterval:100,selectors:["body"]},eventLag:{minSamples:10,sampleCount:3,lagThreshold:3},ajax:{trackMethods:["GET"],trackWebSockets:!0,ignoreURLs:[]}},E=function(){var t;return null!=(t="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance.now():void 0)?t:+new Date},O=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,m=window.cancelAnimationFrame||window.mozCancelAnimationFrame,null==O&&(O=function(t){return setTimeout(t,50)},m=function(t){return clearTimeout(t)}),M=function(e){var r,n;return r=E(),(n=function(){var t;return 33<=(t=E()-r)?(r=E(),e(t,function(){return O(n)})):setTimeout(n,33-t)})()},A=function(){var t,e,r;return r=arguments[0],e=arguments[1],t=3<=arguments.length?V.call(arguments,2):[],"function"==typeof r[e]?r[e].apply(r,t):r[e]},k=function(){var t,e,r,n,s,o,i;for(e=arguments[0],o=0,i=(n=2<=arguments.length?V.call(arguments,1):[]).length;o<i;o++)if(r=n[o])for(t in r)Y.call(r,t)&&(s=r[t],null!=e[t]&&"object"==typeof e[t]&&null!=s&&"object"==typeof s?k(e[t],s):e[t]=s);return e},g=function(t){var e,r,n,s,o;for(r=e=0,s=0,o=t.length;s<o;s++)n=t[s],r+=Math.abs(n),e++;return r/e},x=function(t,e){var r,n;if(null==t&&(t="options"),null==e&&(e=!0),n=document.querySelector("[data-pace-"+t+"]")){if(r=n.getAttribute("data-pace-"+t),!e)return r;try{return JSON.parse(r)}catch(t){return"undefined"!=typeof console&&null!==console?console.error("Error parsing inline pace options",t):void 0}}},$.prototype.on=function(t,e,r,n){var s;return null==n&&(n=!1),null==this.bindings&&(this.bindings={}),null==(s=this.bindings)[t]&&(s[t]=[]),this.bindings[t].push({handler:e,ctx:r,once:n})},$.prototype.once=function(t,e,r){return this.on(t,e,r,!0)},$.prototype.off=function(t,e){var r,n,s;if(null!=(null!=(n=this.bindings)?n[t]:void 0)){if(null==e)return delete this.bindings[t];for(r=0,s=[];r<this.bindings[t].length;)this.bindings[t][r].handler===e?s.push(this.bindings[t].splice(r,1)):s.push(r++);return s}},$.prototype.trigger=function(){var t,e,r,n,s,o,i,a,u;if(r=arguments[0],t=2<=arguments.length?V.call(arguments,1):[],null!=(i=this.bindings)?i[r]:void 0){for(s=0,u=[];s<this.bindings[r].length;)n=(a=this.bindings[r][s]).handler,e=a.ctx,o=a.once,n.apply(null!=e?e:this,t),o?u.push(this.bindings[r].splice(s,1)):u.push(s++);return u}},s=$,v=window.Pace||{},window.Pace=v,k(v,s.prototype),j=v.options=k({},y,window.paceOptions,x()),I=0,G=(J=["ajax","document","eventLag","elements"]).length;I<G;I++)!0===j[C=J[I]]&&(j[C]=y[C]);function tt(){return tt.__super__.constructor.apply(this,arguments)}function et(){this.progress=0}function rt(){this.bindings={}}function nt(){var r,o=this;nt.__super__.constructor.apply(this,arguments),r=function(n){var s;return s=n.open,n.open=function(t,e,r){return F(t)&&o.trigger("request",{type:t,url:e,request:n}),s.apply(n,arguments)}},window.XMLHttpRequest=function(t){var e;return e=new H(t),r(e),e};try{q(window.XMLHttpRequest,H)}catch(t){}if(null!=D){window.XDomainRequest=function(){var t;return t=new D,r(t),t};try{q(window.XDomainRequest,D)}catch(t){}}if(null!=X&&j.ajax.trackWebSockets){window.WebSocket=function(t,e){var r;return r=null!=e?new X(t,e):new X(t),F("socket")&&o.trigger("request",{type:"socket",url:t,protocols:e,request:r}),r};try{q(window.WebSocket,X)}catch(t){}}}function st(){var t=this;this.elements=[],L().on("request",function(){return t.watch.apply(t,arguments)})}function ot(t){this.selector=t,this.progress=0,this.check()}function it(){var t,e,r=this;this.progress=null!=(e=this.states[document.readyState])?e:100,t=document.onreadystatechange,document.onreadystatechange=function(){return null!=r.states[document.readyState]&&(r.progress=r.states[document.readyState]),"function"==typeof t?t.apply(null,arguments):void 0}}function at(t){this.source=t,this.last=this.sinceLastUpdate=0,this.rate=j.initialRate,this.catchup=0,this.progress=this.lastProgress=0,null!=this.source&&(this.progress=A(this.source,"progress"))}Q=Error,t(tt,Q),a=tt,et.prototype.getElement=function(){var t;if(null==this.el){if(!(t=document.querySelector(j.target)))throw new a;this.el=document.createElement("div"),this.el.className="pace pace-active",document.body.className=document.body.className.replace(/pace-done/g,""),document.body.className+=" pace-running",this.el.innerHTML='<div class="pace-progress">\n  <div class="pace-progress-inner"></div>\n</div>\n<div class="pace-activity"></div>',null!=t.firstChild?t.insertBefore(this.el,t.firstChild):t.appendChild(this.el)}return this.el},et.prototype.finish=function(){var t;return(t=this.getElement()).className=t.className.replace("pace-active",""),t.className+=" pace-inactive",document.body.className=document.body.className.replace("pace-running",""),document.body.className+=" pace-done"},et.prototype.update=function(t){return this.progress=t,this.render()},et.prototype.destroy=function(){try{this.getElement().parentNode.removeChild(this.getElement())}catch(t){a=t}return this.el=void 0},et.prototype.render=function(){var t,e,r,n,s,o,i;if(null==document.querySelector(j.target))return!1;for(t=this.getElement(),n="translate3d("+this.progress+"%, 0, 0)",s=0,o=(i=["webkitTransform","msTransform","transform"]).length;s<o;s++)e=i[s],t.children[0].style[e]=n;if(!this.lastRenderedProgress||this.lastRenderedProgress|0!==this.progress|0){document.documentElement.style.setProperty("--theme-loading-progress",(0|this.progress)+"%");var a=document.querySelector("la-loader-ss");a&&"body"==j.target&&a.setAttribute("data-progress-text",(0|this.progress)+"%"),t.children[0].setAttribute("data-progress-text",(0|this.progress)+"%"),100<=this.progress?r="99":(r=this.progress<10?"0":"",r+=0|this.progress),t.children[0].setAttribute("data-progress",""+r)}return this.lastRenderedProgress=this.progress},et.prototype.done=function(){return 100<=this.progress},c=et,rt.prototype.trigger=function(t,e){var r,n,s,o,i;if(null!=this.bindings[t]){for(i=[],n=0,s=(o=this.bindings[t]).length;n<s;n++)r=o[n],i.push(r.call(this,e));return i}},rt.prototype.on=function(t,e){var r;return null==(r=this.bindings)[t]&&(r[t]=[]),this.bindings[t].push(e)},i=rt,H=window.XMLHttpRequest,D=window.XDomainRequest,X=window.WebSocket,q=function(t,e){var r,n;for(r in n=[],e.prototype)try{null==t[r]&&"function"!=typeof e[r]?"function"==typeof Object.defineProperty?n.push(Object.defineProperty(t,r,{get:function(){return e.prototype[r]},configurable:!0,enumerable:!0})):n.push(t[r]=e.prototype[r]):n.push(void 0)}catch(t){t}return n},T=[],v.ignore=function(){var t,e,r;return e=arguments[0],t=2<=arguments.length?V.call(arguments,1):[],T.unshift("ignore"),r=e.apply(null,t),T.shift(),r},v.track=function(){var t,e,r;return e=arguments[0],t=2<=arguments.length?V.call(arguments,1):[],T.unshift("track"),r=e.apply(null,t),T.shift(),r},F=function(t){var e;if(null==t&&(t="GET"),"track"===T[0])return"force";if(!T.length&&j.ajax){if("socket"===t&&j.ajax.trackWebSockets)return!0;if(e=t.toUpperCase(),0<=Z.call(j.ajax.trackMethods,e))return!0}return!1},t(nt,i),l=nt,z=null,_=function(t){var e,r,n,s;for(r=0,n=(s=j.ajax.ignoreURLs).length;r<n;r++)if("string"==typeof(e=s[r])){if(-1!==t.indexOf(e))return!0}else if(e.test(t))return!0;return!1},(L=function(){return null==z&&(z=new l),z})().on("request",function(t){var e,o,i,a,r;if(a=t.type,i=t.request,r=t.url,!_(r))return v.running||!1===j.restartOnRequestAfter&&"force"!==F(a)?void 0:(o=arguments,"boolean"==typeof(e=j.restartOnRequestAfter||0)&&(e=0),setTimeout(function(){var t,e,r,n,s;if("socket"===a?i.readyState<2:0<(r=i.readyState)&&r<4){for(v.restart(),s=[],t=0,e=(n=v.sources).length;t<e;t++){if((C=n[t])instanceof u){C.watch.apply(C,o);break}s.push(void 0)}return s}},e))}),st.prototype.watch=function(t){var e,r,n,s;if(n=t.type,e=t.request,s=t.url,!_(s))return r="socket"===n?new h(e):new d(e),this.elements.push(r)},u=st,d=function(e){var t,r,n,s,o,i=this;if(this.progress=0,null!=window.ProgressEvent)for(e.addEventListener("progress",function(t){return t.lengthComputable?i.progress=100*t.loaded/t.total:i.progress=i.progress+(100-i.progress)/2},!1),r=0,n=(o=["load","abort","timeout","error"]).length;r<n;r++)t=o[r],e.addEventListener(t,function(){return i.progress=100},!1);else s=e.onreadystatechange,e.onreadystatechange=function(){var t;return 0===(t=e.readyState)||4===t?i.progress=100:3===e.readyState&&(i.progress=50),"function"==typeof s?s.apply(null,arguments):void 0}},h=function(t){var e,r,n,s,o=this;for(r=this.progress=0,n=(s=["error","open"]).length;r<n;r++)e=s[r],t.addEventListener(e,function(){return o.progress=100},!1)},r=function(t){var e,r,n,s;for(null==t&&(t={}),this.elements=[],null==t.selectors&&(t.selectors=[]),r=0,n=(s=t.selectors).length;r<n;r++)e=s[r],this.elements.push(new o(e))},ot.prototype.check=function(){var t=this;return document.querySelector(this.selector)?this.done():setTimeout(function(){return t.check()},j.elements.checkInterval)},ot.prototype.done=function(){return this.progress=100},o=ot,it.prototype.states={loading:0,interactive:50,complete:100},e=it,n=function(){var e,r,n,s,o,i=this;this.progress=0,o=[],s=e=0,n=E(),r=setInterval(function(){var t;return t=E()-n-50,n=E(),o.push(t),o.length>j.eventLag.sampleCount&&o.shift(),e=g(o),++s>=j.eventLag.minSamples&&e<j.eventLag.lagThreshold?(i.progress=100,clearInterval(r)):i.progress=3/(e+3)*100},50)},at.prototype.tick=function(t,e){var r;return null==e&&(e=A(this.source,"progress")),100<=e&&(this.done=!0),e===this.last?this.sinceLastUpdate+=t:(this.sinceLastUpdate&&(this.rate=(e-this.last)/this.sinceLastUpdate),this.catchup=(e-this.progress)/j.catchupTime,this.sinceLastUpdate=0,this.last=e),e>this.progress&&(this.progress+=this.catchup*t),r=1-Math.pow(this.progress/100,j.easeFactor),this.progress+=r*this.rate*t,this.progress=Math.min(this.lastProgress+j.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},w=at,S=f=W=b=N=U=null,v.running=!1,P=function(){if(j.restartOnPushState)return v.restart()},null!=window.history.pushState&&(B=window.history.pushState,window.history.pushState=function(){return P(),B.apply(window.history,arguments)}),null!=window.history.replaceState&&(K=window.history.replaceState,window.history.replaceState=function(){return P(),K.apply(window.history,arguments)}),p={ajax:u,elements:r,document:e,eventLag:n},(R=function(){var t,e,r,n,s,o,i,a;for(v.sources=U=[],e=0,n=(o=["ajax","elements","document","eventLag"]).length;e<n;e++)!1!==j[t=o[e]]&&U.push(new p[t](j[t]));for(r=0,s=(a=null!=(i=j.extraSources)?i:[]).length;r<s;r++)C=a[r],U.push(new C(j));return v.bar=b=new c,N=[],W=new w})(),v.stop=function(){return v.trigger("stop"),v.running=!1,b.destroy(),S=!0,null!=f&&("function"==typeof m&&m(f),f=null),R()},v.restart=function(){return v.trigger("restart"),v.stop(),v.start()},v.go=function(){var y;return v.running=!0,b.render(),y=E(),S=!1,f=M(function(t,e){var r,n,s,o,i,a,u,c,l,p,h,d,f,g,m;for(100-b.progress,n=p=0,s=!0,a=h=0,f=U.length;h<f;a=++h)for(C=U[a],l=null!=N[a]?N[a]:N[a]=[],u=d=0,g=(i=null!=(m=C.elements)?m:[C]).length;d<g;u=++d)o=i[u],s&=(c=null!=l[u]?l[u]:l[u]=new w(o)).done,c.done||(n++,p+=c.tick(t));return r=p/n,b.update(W.tick(t,r)),b.done()||s||S?(b.update(100),v.trigger("done"),setTimeout(function(){return b.finish(),v.running=!1,v.trigger("hide")},Math.max(j.ghostTime,Math.max(j.minTime-(E()-y),0)))):e()})},v.start=function(t){k(j,t),v.running=!0;try{b.render()}catch(t){a=t}return document.querySelector(".pace")?(v.trigger("start"),v.go()):setTimeout(v.start,50)},"function"==typeof define&&define.amd?define(["pace"],function(){return v}):"object"==typeof exports?module.exports=v:j.startOnPageLoad&&v.start()}).call(this);
!function(e,t,n){function r(e,t){return typeof e===t}function o(){var e,t,n,o,i,a,s;for(var l in S)if(S.hasOwnProperty(l)){if(e=[],t=S[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(o=r(t.fn,"function")?t.fn():t.fn,i=0;i<e.length;i++)a=e[i],s=a.split("."),1===s.length?Modernizr[s[0]]=o:(!Modernizr[s[0]]||Modernizr[s[0]]instanceof Boolean||(Modernizr[s[0]]=new Boolean(Modernizr[s[0]])),Modernizr[s[0]][s[1]]=o),C.push((o?"":"no-")+s.join("-"))}}function i(e){var t=x.className,n=Modernizr._config.classPrefix||"";if(_&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(t+=" "+n+e.join(" "+n),_?x.className.baseVal=t:x.className=t)}function a(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function s(e,t){return!!~(""+e).indexOf(t)}function l(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):_?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function u(){var e=t.body;return e||(e=l(_?"svg":"body"),e.fake=!0),e}function c(e,n,r,o){var i,a,s,c,f="modernizr",d=l("div"),p=u();if(parseInt(r,10))for(;r--;)s=l("div"),s.id=o?o[r]:f+(r+1),d.appendChild(s);return i=l("style"),i.type="text/css",i.id="s"+f,(p.fake?p:d).appendChild(i),p.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),d.id=f,p.fake&&(p.style.background="",p.style.overflow="hidden",c=x.style.overflow,x.style.overflow="hidden",x.appendChild(p)),a=n(d,e),p.fake?(p.parentNode.removeChild(p),x.style.overflow=c,x.offsetHeight):d.parentNode.removeChild(d),!!a}function f(e,t){return function(){return e.apply(t,arguments)}}function d(e,t,n){var o;for(var i in e)if(e[i]in t)return n===!1?e[i]:(o=t[e[i]],r(o,"function")?f(o,n||t):o);return!1}function p(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function m(t,n,r){var o;if("getComputedStyle"in e){o=getComputedStyle.call(e,t,n);var i=e.console;if(null!==o)r&&(o=o.getPropertyValue(r));else if(i){var a=i.error?"error":"log";i[a].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!n&&t.currentStyle&&t.currentStyle[r];return o}function h(t,r){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(p(t[o]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];o--;)i.push("("+p(t[o])+":"+r+")");return i=i.join(" or "),c("@supports ("+i+"){ #modernizr { position: absolute; }}",function(e){return"absolute"==m(e,null,"position")})}return n}function g(e,t,o,i){function u(){f&&(delete P.style,delete P.modElem)}if(i=r(i,"undefined")?!1:i,!r(o,"undefined")){var c=h(e,o);if(!r(c,"undefined"))return c}for(var f,d,p,m,g,v=["modernizr","tspan","samp"];!P.style&&v.length;)f=!0,P.modElem=l(v.shift()),P.style=P.modElem.style;for(p=e.length,d=0;p>d;d++)if(m=e[d],g=P.style[m],s(m,"-")&&(m=a(m)),P.style[m]!==n){if(i||r(o,"undefined"))return u(),"pfx"==t?m:!0;try{P.style[m]=o}catch(y){}if(P.style[m]!=g)return u(),"pfx"==t?m:!0}return u(),!1}function v(e,t,n,o,i){var a=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+T.join(a+" ")+a).split(" ");return r(t,"string")||r(t,"undefined")?g(s,t,o,i):(s=(e+" "+N.join(a+" ")+a).split(" "),d(s,t,n))}function y(e,t,r){return v(e,n,n,t,r)}var C=[],S=[],E={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){S.push({name:e,fn:t,options:n})},addAsyncTest:function(e){S.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=E,Modernizr=new Modernizr;var b=E._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];E._prefixes=b;var x=t.documentElement,_="svg"===x.nodeName.toLowerCase();_||!function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=C.elements;return"string"==typeof e?e.split(" "):e}function o(e,t){var n=C.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),C.elements=n+" "+e,u(t)}function i(e){var t=y[e[g]];return t||(t={},v++,e[g]=v,y[v]=t),t}function a(e,n,r){if(n||(n=t),f)return n.createElement(e);r||(r=i(n));var o;return o=r.cache[e]?r.cache[e].cloneNode():h.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!o.canHaveChildren||m.test(e)||o.tagUrn?o:r.frag.appendChild(o)}function s(e,n){if(e||(e=t),f)return e.createDocumentFragment();n=n||i(e);for(var o=n.frag.cloneNode(),a=0,s=r(),l=s.length;l>a;a++)o.createElement(s[a]);return o}function l(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return C.shivMethods?a(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(C,t.frag)}function u(e){e||(e=t);var r=i(e);return!C.shivCSS||c||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),f||l(e,r),e}var c,f,d="3.7.3",p=e.html5||{},m=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,h=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g="_html5shiv",v=0,y={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",c="hidden"in e,f=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){c=!0,f=!0}}();var C={elements:p.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:d,shivCSS:p.shivCSS!==!1,supportsUnknownElements:f,shivMethods:p.shivMethods!==!1,type:"default",shivDocument:u,createElement:a,createDocumentFragment:s,addElements:o};e.html5=C,u(t),"object"==typeof module&&module.exports&&(module.exports=C)}("undefined"!=typeof e?e:this,t);var w="Moz O ms Webkit",N=E._config.usePrefixes?w.toLowerCase().split(" "):[];E._domPrefixes=N;var T=E._config.usePrefixes?w.split(" "):[];E._cssomPrefixes=T;var z=function(t){var r,o=b.length,i=e.CSSRule;if("undefined"==typeof i)return n;if(!t)return!1;if(t=t.replace(/^@/,""),r=t.replace(/-/g,"_").toUpperCase()+"_RULE",r in i)return"@"+t;for(var a=0;o>a;a++){var s=b[a],l=s.toUpperCase()+"_"+r;if(l in i)return"@-"+s.toLowerCase()+"-"+t}return!1};E.atRule=z;var j=E.testStyles=c;Modernizr.addTest("touchevents",function(){var n;if("ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch)n=!0;else{var r=["@media (",b.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");j(r,function(e){n=9===e.offsetTop})}return n});var k={elem:l("modernizr")};Modernizr._q.push(function(){delete k.elem});var P={style:k.elem.style};Modernizr._q.unshift(function(){delete P.style});E.testProp=function(e,t,r){return g([e],n,t,r)};E.testAllProps=v;E.prefixed=function(e,t,n){return 0===e.indexOf("@")?z(e):(-1!=e.indexOf("-")&&(e=a(e)),t?v(e,t,n):v(e,"pfx"))};E.testAllProps=y,Modernizr.addTest("cssanimations",y("animationName","a",!0)),Modernizr.addTest("backgroundcliptext",function(){return y("backgroundClip","text")}),Modernizr.addTest("csstransitions",y("transition","all",!0)),o(),i(C),delete E.addTest,delete E.addAsyncTest;for(var F=0;F<Modernizr._q.length;F++)Modernizr._q[F]();e.Modernizr=Modernizr}(window,document);
!function(w){"use strict";function i(t,o){function n(t,o,s){var e={},i=t[0].style;s.forEach(function(t){e[t]="left"===t?"":void 0!==i[t]?i[t]:""}),t.data("css-backup-"+o,e)}function a(t,o){return t.data("css-backup-"+o)}function s(){n(p,"unsticky",["position","width","margin-top","margin-bottom","top","bottom"]);var t={position:"fixed",width:k(p,"width"),marginTop:0,marginBottom:0};t[l.to]=l.offset,t["top"===l.to?"bottom":"top"]="";var o=p.offset().left;t.left=o,p.css(t).addClass(l.classes.stickyActive)}function e(){p.css(a(p,"unsticky")).css("left","").removeClass(l.classes.stickyActive)}function c(t){var o=y.$window.scrollTop(),s=k(t,"height"),e=innerHeight,i=t.offset().top-o,r=i-e;return{top:{fromTop:i,fromBottom:r},bottom:{fromTop:i+s,fromBottom:r+s}}}function i(){y.$spacer=p.clone().addClass(l.classes.spacer).css({visibility:"hidden",transition:"none",animation:"none"}),p.after(y.$spacer),s(),m=!0,p.trigger("sticky:stick")}function r(){e(),y.$spacer.remove(),m=!1,p.trigger("sticky:unstick")}function f(){var t=c(p),o="top"===l.to;if(d){(o?t.top.fromTop>l.offset:t.bottom.fromBottom<-l.offset)&&(y.$parent.css(a(y.$parent,"childNotFollowing")),p.css(a(p,"notFollowing")).css("left",""),d=!1)}else{var s=c(y.$parent),e=getComputedStyle(y.$parent[0]),i=parseFloat(e[o?"borderBottomWidth":"borderTopWidth"]),r=o?s.bottom.fromTop-i:s.top.fromBottom+i;(o?r<=t.bottom.fromTop:r>=t.top.fromBottom)&&function(){n(y.$parent,"childNotFollowing",["position"]),y.$parent.css("position","relative"),n(p,"notFollowing",["position","top","bottom"]);var t={position:"absolute"};t[l.to]="",t["top"===l.to?"bottom":"top"]=0,p.css(t).css("left",""),d=!0}()}}var p,l,m=!1,d=!1,u=!1,y={},h=(w("body").hasClass("rtl"),{to:"top",offset:0,effectsOffset:0,parent:!1,classes:{sticky:"sticky",stickyActive:"sticky-active",stickyEffects:"sticky-effects",spacer:"sticky-spacer"}}),k=function(t,o,s){var e=getComputedStyle(t[0]),i=parseFloat(e[o]),r="height"===o?["top","bottom"]:["left","right"],n=[];return"border-box"!==e.boxSizing&&n.push("border","padding"),s&&n.push("margin"),n.forEach(function(o){r.forEach(function(t){i+=parseFloat(e[o+"-"+t])})}),i},v=function(){var t,o=l.offset;if(m){var s=c(y.$spacer);t="top"===l.to?s.top.fromTop-o:-s.bottom.fromBottom-o,l.parent&&f(),0<t&&r()}else{var e=c(p);(t="top"===l.to?e.top.fromTop-o:-e.bottom.fromBottom-o)<=0&&(i(),l.parent&&f())}!function(t){u&&-t<l.effectsOffset?(p.removeClass(l.classes.stickyEffects),u=!1):!u&&-t>=l.effectsOffset&&(p.addClass(l.classes.stickyEffects),u=!0)}(t)},g=function(){v()},b=function(){m&&(e(),s())};this.destroy=function(){m&&r(),y.$window.off("scroll",g).off("resize",b),p.removeClass(l.classes.sticky)},l=jQuery.extend(!0,h,o),p=w(t).addClass(l.classes.sticky),y.$window=w(window),l.parent&&("parent"===l.parent?y.$parent=p.parent():p.closest(l.parent).length?y.$parent=p.closest(l.parent):y.$parent=w(l.parent)),y.$window.on({scroll:g,resize:b}),v()}w.fn.lasfsticky=function(s){var e="string"==typeof s;return this.each(function(){var t=w(this);if(e){var o=t.data("sticky");if(!o)throw Error("Trying to perform the `"+s+"` method prior to initialization");if(!o[s])throw ReferenceError("Method `"+s+"` not found in sticky instance");o[s].apply(o,Array.prototype.slice.call(arguments,1)),"destroy"===s&&t.removeData("sticky")}else t.data("sticky",new i(this,s))}),this},window.LASFSticky=i}(jQuery);
!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(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(e,t){return i('<button type="button" />').text(t+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:0,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},n.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},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>0){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>0&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);if(i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s){var n="slick-slide-control"+e.instanceUid+s;i("#"+n).length&&i(this).attr({"aria-describedby":n})}}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.options.focusOnChange?e.$slides.eq(s).attr({tabindex:"0"}):e.$slides.eq(s).removeAttr("tabindex");e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&e.slideCount>e.options.slidesToShow&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).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()},e.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=(n.options.slidesToShow,0);e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned clone");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t&&a.slideCount>a.options.slidesToShow?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t&&a.slideCount>a.options.slidesToShow?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active dots-prev dots-next").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).prev().length?i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).prev().addClass("dots-prev"):i.slideCount>2&&i.$dots.find("li").eq(i.slideCount-1).addClass("dots-prev"),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).next().length?i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).next().addClass("dots-next"):i.slideCount>2&&i.$dots.find("li").eq(0).addClass("dots-next"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){"use strict";if(void 0!==u)if(u.fn.jquery.match(/-ajax/))"console"in window&&window.console.info("Featherlight needs regular jQuery, not the slim version.");else{var r=[],i=function(t){return r=u.grep(r,function(e){return e!==t&&0<e.$instance.closest("body").length})},o={allow:1,allowfullscreen:1,frameborder:1,height:1,longdesc:1,marginheight:1,marginwidth:1,mozallowfullscreen:1,name:1,referrerpolicy:1,sandbox:1,scrolling:1,src:1,srcdoc:1,style:1,webkitallowfullscreen:1,width:1},n={keyup:"onKeyUp",resize:"onResize"},a=function(e){u.each(c.opened().reverse(),function(){if(!e.isDefaultPrevented()&&!1===this[n[e.type]](e))return e.preventDefault(),e.stopPropagation(),!1})},s=function(e){if(e!==c._globalHandlerInstalled){c._globalHandlerInstalled=e;var t=u.map(n,function(e,t){return t+"."+c.prototype.namespace}).join(" ");u(window)[e?"on":"off"](t,a)}};c.prototype={constructor:c,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"&#10005;",loading:"",persist:!1,otherClose:null,beforeOpen:u.noop,beforeContent:u.noop,beforeClose:u.noop,afterOpen:u.noop,afterContent:u.noop,afterClose:u.noop,onKeyUp:u.noop,onResize:u.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(e,t){"object"!=typeof e||e instanceof u!=!1||t||(t=e,e=void 0);var n=u.extend(this,t,{target:e}),r=n.resetCss?n.namespace+"-reset":n.namespace,i=u(n.background||['<div class="'+r+"-loading "+r+'">','<div class="'+r+'-content">','<button class="'+r+"-close-icon "+n.namespace+'-close" aria-label="Close">',n.closeIcon,"</button>",'<div class="'+n.namespace+'-inner">'+n.loading+"</div>","</div>","</div>"].join("")),o="."+n.namespace+"-close"+(n.otherClose?","+n.otherClose:"");return n.$instance=i.clone().addClass(n.variant),n.$instance.on(n.closeTrigger+"."+n.namespace,function(e){if(!e.isDefaultPrevented()){var t=u(e.target);("background"===n.closeOnClick&&t.is("."+n.namespace)||"anywhere"===n.closeOnClick||t.closest(o).length)&&(n.close(e),e.preventDefault())}}),this},getContent:function(){if(!1!==this.persist&&this.$content)return this.$content;function e(e){return t.$currentTarget&&t.$currentTarget.attr(e)}var t=this,n=this.constructor.contentFilters,r=e(t.targetAttr),i=t.target||r||"",o=n[t.type];if(!o&&i in n&&(o=n[i],i=t.target&&r),i=i||e("href")||"",!o)for(var a in n)t[a]&&(o=n[a],i=t[a]);if(!o){var s=i;if(i=null,u.each(t.contentFilters,function(){return(o=n[this]).test&&(i=o.test(s)),!i&&o.regex&&s.match&&s.match(o.regex)&&(i=s),!i}),!i)return"console"in window&&window.console.error("Featherlight: no content filter found "+(s?' for "'+s+'"':" (no target specified)")),!1}return o.process.call(t,i)},setContent:function(e){return this.$instance.removeClass(this.namespace+"-loading"),this.$instance.toggleClass(this.namespace+"-iframe",e.is("iframe")),this.$instance.find("."+this.namespace+"-inner").not(e).slice(1).remove().end().replaceWith(u.contains(this.$instance[0],e[0])?"":e),this.$content=e.addClass(this.namespace+"-inner"),this},open:function(t){var n=this;if(n.$instance.hide().appendTo(n.root),!(t&&t.isDefaultPrevented()||!1===n.beforeOpen(t))){t&&t.preventDefault();var e=n.getContent();if(e)return r.push(n),s(!0),n.$instance.fadeIn(n.openSpeed),n.beforeContent(t),u.when(e).always(function(e){e&&(n.setContent(e),n.afterContent(t))}).then(n.$instance.promise()).done(function(){n.afterOpen(t)})}return n.$instance.detach(),u.Deferred().reject().promise()},close:function(e){var t=this,n=u.Deferred();return!1===t.beforeClose(e)?n.reject():(0===i(t).length&&s(!1),t.$instance.fadeOut(t.closeSpeed,function(){t.$instance.detach(),t.afterClose(e),n.resolve()})),n.promise()},resize:function(e,t){if(e&&t){this.$content.css("width","").css("height","");var n=Math.max(e/(this.$content.parent().width()-1),t/(this.$content.parent().height()-1));1<n&&(n=t/Math.floor(t/n),this.$content.css("width",e/n+"px").css("height",t/n+"px"))}},chainCallbacks:function(e){for(var t in e)this[t]=u.proxy(e[t],this,u.proxy(this[t],this))}},u.extend(c,{id:0,autoBind:"[data-featherlight]",defaults:c.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(e){return e instanceof u&&e},process:function(e){return!1!==this.persist?u(e):u(e).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff?|bmp|svg)(\?\S*)?$/i,process:function(e){var t=u.Deferred(),n=new Image,r=u('<img src="'+e+'" alt="" class="'+this.namespace+'-image" />');return n.onload=function(){r.naturalWidth=n.width,r.naturalHeight=n.height,t.resolve(r)},n.onerror=function(){t.reject(r)},n.src=e,t.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(e){return u(e)}},ajax:{regex:/./,process:function(e){var n=u.Deferred(),r=u("<div></div>").load(e,function(e,t){"error"!==t&&n.resolve(r.contents()),n.reject()});return n.promise()}},iframe:{process:function(e){var t=new u.Deferred,n=u("<iframe/>"),r=function(e,t){var n={},r=new RegExp("^"+t+"([A-Z])(.*)");for(var i in e){var o=i.match(r);if(o)n[(o[1]+o[2].replace(/([A-Z])/g,"-$1")).toLowerCase()]=e[i]}return n}(this,"iframe"),i=function(e,t){var n={};for(var r in e)r in t&&(n[r]=e[r],delete e[r]);return n}(r,o);return n.hide().attr("src",e).attr(i).css(r).on("load",function(){t.resolve(n.show())}).appendTo(this.$instance.find("."+this.namespace+"-content")),t.promise()}},text:{process:function(e){return u("<div>",{text:e})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(e,t){var r=this,i=new RegExp("^data-"+t+"-(.*)"),o={};return e&&e.attributes&&u.each(e.attributes,function(){var e=this.name.match(i);if(e){var t=this.value,n=u.camelCase(e[1]);if(0<=u.inArray(n,r.functionAttributes))t=new Function(t);else try{t=JSON.parse(t)}catch(e){}o[n]=t}}),o},extend:function(e,t){function n(){this.constructor=e}return n.prototype=this.prototype,e.prototype=new n,e.__super__=this.prototype,u.extend(e,this,t),e.defaults=e.prototype,e},attach:function(i,o,a){var s=this;"object"!=typeof o||o instanceof u!=!1||a||(a=o,o=void 0);function e(e){var t=u(e.currentTarget),n=u.extend({$source:i,$currentTarget:t},s.readElementConfig(i[0],l.namespace),s.readElementConfig(e.currentTarget,l.namespace),a),r=c||t.data("featherlight-persisted")||new s(o,n);"shared"===r.persist?c=r:!1!==r.persist&&t.data("featherlight-persisted",r),n.$currentTarget.blur&&n.$currentTarget.blur(),r.open(e)}var c,t=(a=u.extend({},a)).namespace||s.defaults.namespace,l=u.extend({},s.defaults,s.readElementConfig(i[0],t),a);return i.on(l.openTrigger+"."+l.namespace,l.filter,e),{filter:l.filter,handler:e}},current:function(){var e=this.opened();return e[e.length-1]||null},opened:function(){var t=this;return i(),u.grep(r,function(e){return e instanceof t})},close:function(e){var t=this.current();if(t)return t.close(e)},_onReady:function(){var r=this;if(r.autoBind){var i=u(r.autoBind);i.each(function(){r.attach(u(this))}),u(document).on("click",r.autoBind,function(e){if(!e.isDefaultPrevented()){var t=u(e.currentTarget);if(i.length!==(i=i.add(t)).length){var n=r.attach(t);(!n.filter||0<u(e.target).parentsUntil(t,n.filter).length)&&n.handler(e)}}})}},_callbackChain:{onKeyUp:function(e,t){return 27===t.keyCode?(this.closeOnEsc&&u.featherlight.close(t),!1):e(t)},beforeOpen:function(e,t){return u(document.documentElement).addClass("with-featherlight"),this._previouslyActive=document.activeElement,this._$previouslyTabbable=u("a, input, select, textarea, iframe, button, iframe, [contentEditable=true]").not("[tabindex]").not(this.$instance.find("button")),this._$previouslyWithTabIndex=u("[tabindex]").not('[tabindex="-1"]'),this._previousWithTabIndices=this._$previouslyWithTabIndex.map(function(e,t){return u(t).attr("tabindex")}),this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr("tabindex",-1),document.activeElement.blur&&document.activeElement.blur(),e(t)},afterClose:function(e,t){var n=e(t),r=this;return this._$previouslyTabbable.removeAttr("tabindex"),this._$previouslyWithTabIndex.each(function(e,t){u(t).attr("tabindex",r._previousWithTabIndices[e])}),this._previouslyActive.focus(),0===c.opened().length&&u(document.documentElement).removeClass("with-featherlight"),n},onResize:function(e,t){return this.resize(this.$content.naturalWidth,this.$content.naturalHeight),e(t)},afterContent:function(e,t){var n=e(t);return this.$instance.find("[autofocus]:not([disabled])").focus(),this.onResize(t),n}}}),u.featherlight=c,u.fn.featherlight=function(e,t){return c.attach(this,e,t),this},u(document).ready(function(){c._onReady()})}else"console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery.");function c(e,t){if(!(this instanceof c)){var n=new c(e,t);return n.open(),n}this.id=c.id++,this.setup(e,t),this.chainCallbacks(c._callbackChain)}});
var doPolyfills=function(){jQuery.getScript(la_theme_config.js_path+la_theme_config.polyfills.css_vars,function(){cssVars()})};"always"===la_theme_config.polyfills.method?doPolyfills():"request"===la_theme_config.polyfills.method&&(window.CSS&&window.CSS.supports&&window.CSS.supports("(--foo: red)")||doPolyfills()),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(o,e){"use strict";if(null==o)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(o),l=1;l<arguments.length;l++){var n=arguments[l];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},writable:!0,configurable:!0});
(function(a){'use strict';var b=function(b,c){if(this.$target=b,this.$images=a(".woocommerce-product-gallery__image",b),!b.parent(".product--large-image").data("old_gallery")){var d=b.find(".woocommerce-product-gallery__wrapper").html();b.parent(".product--large-image").data("old_gallery",d).data("prev_gallery",d)}if(!b.parent(".product--large-image").data("gallery_action")){var e=b.find(".woocommerce-product-gallery__actions").clone();e.find(".woocommerce-product-gallery__trigger").remove();var d="<div class=\"woocommerce-product-gallery__actions\">";d+=e.html(),d+="</div>",b.parent(".product--large-image").data("gallery_action",d)}if(this.$target.parent().attr("data-totalG",this.$images.length),0===this.$images.length)return this.$target.css("opacity",1),void this.$target.parent().addClass("no-gallery");1===this.$images.length?this.$target.parent().addClass("no-gallery"):this.$target.parent().removeClass("no-gallery"),b.data("product_gallery",this),this.flexslider_enabled=!0,(b.hasClass("no-slider-script")||b.hasClass("force-disable-slider-script"))&&(this.flexslider_enabled=!1),this.zoom_enabled=a.isFunction(a.fn.zoom)&&wc_single_product_params.zoom_enabled,this.photoswipe_enabled="undefined"!=typeof PhotoSwipe&&wc_single_product_params.photoswipe_enabled,c&&(this.flexslider_enabled=!1!==c.flexslider_enabled&&this.flexslider_enabled,this.zoom_enabled=!1!==c.zoom_enabled&&this.zoom_enabled,this.photoswipe_enabled=!1!==c.photoswipe_enabled&&this.photoswipe_enabled),b.hasClass("force-disable-slider-script")&&(this.flexslider_enabled=!1),this.thumb_verital=!1,2>this.$images.length&&(this.flexslider_enabled=!1);try{2==la_theme_config.product_single_design&&(this.thumb_verital=!0)}catch(a){this.thumb_verital=!1}if(this.parent_is_quickview=!1,b.closest(".featherlight").length&&(this.thumb_verital=!0,this.parent_is_quickview=!0),this.initSlickslider=this.initSlickslider.bind(this),this.initZoom=this.initZoom.bind(this),this.initPhotoswipe=this.initPhotoswipe.bind(this),this.onResetSlidePosition=this.onResetSlidePosition.bind(this),this.getGalleryItems=this.getGalleryItems.bind(this),this.openPhotoswipe=this.openPhotoswipe.bind(this),!this.flexslider_enabled)this.parent_is_quickview?a("body").removeClass("lightcase--pending").addClass("lightcase--completed"):setTimeout(function(){a("body").trigger("la_sticky:recalc")},200),this.$target.css("opacity",1),b.removeClass("la-rebuild-product-gallery").parent().removeClass("swatch-loading");else if(a.isFunction(a.fn.slick))this.initSlickslider(),b.on("woocommerce_gallery_reset_slide_position",this.onResetSlidePosition);else{var f=this;LaStudio.core.loadDependencies([LaStudio.global.loadJsFile("jquery.slick")],function(){f.initSlickslider(),b.on("woocommerce_gallery_reset_slide_position",f.onResetSlidePosition)})}this.zoom_enabled&&(this.initZoom(),b.on("woocommerce_gallery_init_zoom",this.initZoom)),this.photoswipe_enabled&&this.initPhotoswipe()};b.prototype.initSlickslider=function(){var b=this.$images,c=this.$target,d=c.find(".woocommerce-product-gallery__wrapper"),e=c.parent().find(".la-thumb-inner"),f=Math.floor(100*Math.random()+1),g="la_woo_thumb_"+f,h="la_woo_target_"+f,i=this.parent_is_quickview;d.attr("id",h),e.attr("id",g),b.each(function(){var b=a(this),c=b.find("a[data-videolink]").data("videolink"),f=d.css("height"),g="<div class=\"la-thumb\"><img src=\""+b.attr("data-thumb")+"\"/></div>";"undefined"!=typeof c&&c&&(b.unbind("click"),b.find(".zoomImg").css({display:"none!important"}),0==c.indexOf("http://selfhosted/")?(c=c.replace("http://selfhosted/",""),g="<div class=\"la-thumb has-thumb-video\"><div><img src=\""+b.attr("data-thumb")+"\"/><span class=\"play-overlay\"><i class=\"fa fa-play-circle-o\" aria-hidden=\"true\"></i></span></div></div>",b.append("<video class=\"selfhostedvid  noLightbox\" width=\"460\" height=\"315\" controls preload=\"auto\"><source src=\""+c+"\" /></video>"),b.attr("data-video","<div class=\"la-media-wrapper\"><video class=\"selfhostedvid  noLightbox\" width=\"460\" height=\"315\" controls preload=\"auto\"><source src=\""+c+"\" /></video></div>")):(g="<div class=\"la-thumb has-thumb-video\"><div><img src=\""+b.attr("data-thumb")+"\"/><span class=\"play-overlay\"><i class=\"fa-play-circle-o\"></i></span></div></div>",b.append("<iframe src=\""+c+"\" width=\"460\" \" style=\"height:"+f+"; z-index:999999;\" frameborder=\"no\"></iframe>"),b.attr("data-video","<div class=\"la-media-wrapper\"><iframe src=\""+c+"\" width=\"980\" height=\"551\" frameborder=\"no\" allowfullscreen></iframe></div>")),b.find("img").css({opacity:"0","z-index":"-1"}),b.find("iframe").next().remove()),e.append(g)});var j=a.extend({mobile:3,mobile_landscape:3,tablet:3,laptop:3,desktop:3},JSON.parse(la_theme_config.product_gallery_column)||{}),k={infinite:!1,slidesToShow:parseInt(j.desktop),slidesToScroll:1,asNavFor:"#"+h,dots:!1,arrows:!0,focusOnSelect:!0,prevArrow:"<span class=\"slick-prev\"><i class=\"lastudioicon-left-arrow\"></i></span>",nextArrow:"<span class=\"slick-next\"><i class=\"lastudioicon-right-arrow\"></i></span>",vertical:this.thumb_verital,responsive:[{breakpoint:1500,settings:{vertical:this.thumb_verital,slidesToShow:parseInt(j.laptop)}},{breakpoint:1300,settings:{vertical:this.thumb_verital,slidesToShow:parseInt(j.tablet)}},{breakpoint:800,settings:{vertical:!1,slidesToShow:parseInt(j.mobile_landscape)}},{breakpoint:577,settings:{vertical:!1,slidesToShow:parseInt(j.mobile)}}]};this.thumb_verital||(k.infinite=!1,k.centerMode=!1,k.centerPadding="0px");var l={infinite:!1,swipe:!0,slidesToShow:1,slidesToScroll:1,arrows:!0,asNavFor:"#"+g,prevArrow:"<span class=\"slick-prev\"><i class=\"lastudioicon-left-arrow\"></i></span>",nextArrow:"<span class=\"slick-next\"><i class=\"lastudioicon-right-arrow\"></i></span>",adaptiveHeight:!(1!=la_theme_config.product_single_design)};this.thumb_verital||(l.infinite=!1),5==la_theme_config.product_single_design?(i&&(j={mobile:1,mobile_landscape:1,tablet:1,laptop:1,desktop:1}),l.slidesToShow=parseInt(j.desktop),l.slidesToScroll=1,l.infinite=!0,l.asNavFor="",l.responsive=[{breakpoint:1500,settings:{vertical:this.thumb_verital,slidesToShow:parseInt(j.laptop)}},{breakpoint:1300,settings:{vertical:!1,slidesToShow:parseInt(j.tablet)}},{breakpoint:800,settings:{vertical:!1,slidesToShow:parseInt(j.mobile_landscape)}},{breakpoint:577,settings:{vertical:!1,slidesToShow:parseInt(j.mobile)}}]):e.slick(k),d.slick(l),LaStudio.global.LazyLoad(c.parent(),{rootMargin:"100px",load:function(){},complete:function(){LaStudio.global.eventManager.publish("LaStudio:Component:LazyLoadImage",[c.parent()]),c.css("opacity",1),5!=la_theme_config.product_single_design&&e.slick("setPosition"),c.parent().removeClass("swatch-loading"),i?setTimeout(function(){d.resize(),setTimeout(function(){a("body").removeClass("lightcase--pending").addClass("lightcase--completed")},50)},150):setTimeout(function(){a("body").trigger("la_sticky:recalc")},200)}}).observe()},b.prototype.initZoom=function(){this.initZoomForTarget(this.$images)},b.prototype.initZoomForTarget=function(b){if(!this.zoom_enabled)return!1;var c,d=this.$target.width(),e=!1;if(a(b).each(function(b,c){var f=a(c).find("img");if(f.data("large_image_width")>d)return e=!0,!1}),e){try{c=a.extend({touch:!1},wc_single_product_params.zoom_options)}catch(a){c={touch:!1}}"ontouchstart"in document.documentElement&&(c.on="click"),b.trigger("zoom.destroy"),b.zoom(c)}},b.prototype.initPhotoswipe=function(){this.zoom_enabled&&0<this.$images.length&&(this.$target.find(".woocommerce-product-gallery__actions").prepend("<a href=\"#\" class=\"woocommerce-product-gallery__trigger\"><span><i class=\"lastudioicon-full-screen\"></i></span></a>"),this.$target.on("click",".woocommerce-product-gallery__trigger",this.openPhotoswipe)),this.$target.on("click",".woocommerce-product-gallery__image a",this.openPhotoswipe)},b.prototype.onResetSlidePosition=function(){this.$target.parent().removeClass("swatch-loading"),this.$target.find(".woocommerce-product-gallery__wrapper").slick("slickGoTo",0)},b.prototype.getGalleryItems=function(){var b=this.$images,c=[];return console.log(b),0<b.length&&b.each(function(b,d){var e=a(d).find("img"),f=e.attr("data-large_image"),g=e.attr("data-large_image_width"),h=e.attr("data-large_image_height"),i={src:f,w:g,h:h,title:e.attr("title")};a(d).attr("data-video")&&(i={html:a(d).attr("data-video")}),c.push(i)}),c},b.prototype.openPhotoswipe=function(b){b.preventDefault();var c,d=a(".pswp")[0],e=this.getGalleryItems(),f=a(b.target);c=f.is(".woocommerce-product-gallery__trigger")?this.$target.find(".slick-current")||this.$target.find(".woocommerce-product-gallery__image").first():f.closest(".woocommerce-product-gallery__image");var g={index:a(c).index(),shareEl:!1,closeOnScroll:!1,history:!1,hideAnimationDuration:0,showAnimationDuration:0},h=new PhotoSwipe(d,PhotoSwipeUI_Default,e,g);h.init()},a.fn.lastudio_product_gallery=function(a){return new b(this,a),this}})(jQuery);
!function(h){"use strict";function o(e,a){this.recalc_needed=!0,this.variation_attributes=e,this.variations_available=a,this.variations_current={},this.variations_selected={},this.reset_current=function(){for(var e in this.variation_attributes){this.variations_current[e]={};for(var a=0;a<this.variation_attributes[e].length;a++)this.variations_current[e.toString()][this.variation_attributes[e][a].toString()]=0}},this.update_current=function(){this.reset_current();for(var e=0;e<this.variations_available.length;e++)if(this.variations_available[e].variation_is_active){var a=this.variations_available[e].attributes;for(var t in a){var i=a[t],s=this.variations_selected[t];if(s&&s==i)this.variations_current[t][i]=1;else{var r=!0;for(var l in this.variations_selected)if(l!=t){var n=this.variations_selected[l],o=a[l];n&&o&&n!=o&&(r=!1)}if(r)if(""===i)for(var c in this.variations_current[t])this.variations_current[t][c]=1;else this.variations_current[t][i]=1}}}this.recalc_needed=!1},this.get_current=function(){return this.recalc_needed&&this.update_current(),this.variations_current},this.reset_selected=function(){this.recalc_needed=!0,this.variations_selected={}},this.set_selected=function(e,a){this.recalc_needed=!0,this.variations_selected[e]=a},this.get_selected=function(){return this.variations_selected}}function n(e,a){var t=e.closest(".la-p-single-wrap").find(".product--large-image"),i="";if(null!==a)i=function(e){var t="";return void 0!==e&&h.isArray(e.la_additional_images)&&h.each(e.la_additional_images,function(e,a){t+='<div data-thumb="'+a.thumb[0]+'" class="woocommerce-product-gallery__image">',t+='<a href="'+a.large[0]+'" data-videolink="'+a.videolink+'">',t+='<span class="g-overlay" style="background-image: url('+a.large[0]+')"></span>',t+="<img ",t+='width="'+a.single[1]+'" ',t+='height="'+a.single[2]+'" ',t+='src="'+a.single[0]+'" ',t+='class="attachment-shop_single size-shop_single" ',t+='alt="'+a.alt+'" ',t+='title="'+a.title+'" ',t+='data-caption="'+a.caption+'" ',t+='data-src="'+a.large[0]+'" ',t+='data-large_image="'+a.large[0]+'" ',t+='data-large_image_width="'+a.large[1]+'" ',t+='data-large_image_height="'+a.large[2]+'" ',t+='srcset="'+a.srcset+'" ',t+='sizes="'+a.sizes+'" ',t+="</a>",t+="</div>"}),t}(a);else{var s=t.data("old_gallery")||!1;s&&(i=s)}if(""!=i){if(t.data("prev_gallery")){var r=h(t.data("prev_gallery")),l=h(i),n=!0;if(r.length==l.length)for(var o=0;o<r.length;o++)h(r[o]).attr("data-thumb")!=h(l[o]).attr("data-thumb")&&(n=!1);else n=!1;if(n)return}t.data("prev_gallery",i);var c='<div class="woocommerce-product-gallery--with-images la-woo-product-gallery'+(t.hasClass("force-disable-slider-script")?" force-disable-slider-script":"")+'">';t.data("gallery_action")&&(c+=t.data("gallery_action")),c+='<figure class="woocommerce-product-gallery__wrapper">'+i+'</figure><div class="la_woo_loading"><div class="la-loader spinner3"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div></div></div>',c+='<div id="la_woo_thumbs" class="la-woo-thumbs"><div class="la-thumb-inner"></div></div>',t.removeAttr("data-element-loaded").css({"max-height":t.height(),"min-height":t.height()}).addClass("swatch-loading"),t.html(c);var d=t.find(".la-woo-product-gallery");null!==a&&d.addClass("la-rebuild-product-gallery"),d.lastudio_product_gallery().addClass("swatch-loaded"),t.css({"max-height":"none","min-height":"200px"})}}h.fn.lastudio_variation_form=function(){var s=this,t=parseInt(s.data("product_id"),10),i=null,l=!1,r=null;s.addClass("la-init-swatches"),s.find("td.label").each(function(){h(this).find("label").append('<span class="swatch-label"></span>')}),s.on("bind_calculator",function(){var e=s.data("product_variations");(l=!1===e)&&s.block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var n={};if(s.find(".select-option.selected").each(function(e,a){var t=h(this),i=t.closest("div.select").eq(0),s=i.closest("tr").find(".swatch-label").eq(0),r=i.find("select").first(),l=h("<div/>").html(t.data("value")).text();l=(l=l.replace(/'/g,"\\'")).replace(/"/g,'\\"'),s&&s.html(r.children("[value='"+l+"']").eq(0).text()),r.trigger("change")}),s.find(".variations select").each(function(e,a){var t=h(a),i=t.data("attribute_name")||t.attr("name");n[i]=[];var s;if((s=t.find("option:gt(0)").get()).length)for(var r=0;r<s.length;r++){var l=s[r];n[i].push(h(l).val())}}),l){r&&r.abort();var a={product_id:t,action:"la_swatch_get_product_variations"};r=h.ajax({url:la_theme_config.ajax_url,type:"POST",data:a,success:function(e){i=new o(n,e.data,null,null),s.unblock()}})}else i=new o(n,e,null,null);s.trigger("woocommerce_variation_has_changed")}),s.on("change",".wc-default-select",function(e){var a=h(this),t=a.closest("tr").find(".swatch-label").eq(0);""!=a.val()?t.html(a.find("option:selected").html()):t.html("")}),s.find(".wc-default-select").trigger("change"),s.on("click",".reset_variations",function(){return s.find(".swatch-label").html(""),s.find(".select-option").removeClass("selected"),s.find(".radio-option").prop("checked",!1),h("span.price",s.siblings(".single-price-wrapper")).remove(),!1}).on("click",".select-option",function(e){e.preventDefault();var a=h(this),t=a.closest("div.select").eq(0),i=t.closest("tr").find(".swatch-label").eq(0),s=t.find("select").first();if(a.hasClass("disabled"))return!1;if(a.hasClass("selected"))a.removeClass("selected"),s.children("option:eq(0)").prop("selected","selected").change(),i&&i.html("");else{t.find(".select-option").removeClass("selected"),a.addClass("selected");var r=h("<div/>").html(a.data("value")).text();r=(r=r.replace(/'/g,"\\'")).replace(/"/g,'\\"'),s.trigger("focusin").children("[value='"+r+"']").prop("selected","selected").change(),i&&i.html(s.children("[value='"+r+"']").eq(0).text())}}).on("change",".radio-option",function(e){var a=h(this),t=a.closest("div.select").eq(0).find("select").first(),i=h("<div/>").html(a.val()).text();i=(i=i.replace(/'/g,"\\'")).replace(/"/g,'\\"'),t.trigger("focusin").children("[value='"+i+"']").prop("selected","selected").change()}).on("woocommerce_variation_has_changed",function(){if(null!==i){s.find(".variations select").each(function(){var e=h(this).data("attribute_name")||h(this).attr("name");i.set_selected(e,h(this).val())});var r=i.get_current();s.find("div.select").each(function(e,a){var t=h(a).find("select").first(),i=t.data("attribute_name")||t.attr("name"),s=r[i];h(a).find("div.select-option").each(function(e,a){s[h(a).data("value")]?h(a).removeClass("disabled"):h(a).addClass("disabled","disabled")}),h(a).find("input.radio-option").each(function(e,a){s[h(a).val()]?(h(a).removeAttr("disabled"),h(a).parent().removeClass("disabled")):(h(a).attr("disabled","disabled"),h(a).parent().addClass("disabled","disabled"))})}),l&&s.find(".wc-default-select").each(function(e,a){var t=h(a),i=t.data("attribute_name")||t.attr("name"),s=r[i];t.find("option:gt(0)").removeClass("attached"),t.find("option:gt(0)").removeClass("enabled"),t.find("option:gt(0)").removeAttr("disabled"),t.find("option:gt(0)").each(function(e,a){s[h(a).val()]?(h(a).addClass("attached"),h(a).addClass("enabled")):h(a).addClass("disabled","disabled")}),t.find("option:gt(0):not(.enabled)").attr("disabled","disabled")})}}).on("found_variation",function(e,a){n(s,a)}).on("reset_image",function(e){n(s,null)}),s.find(".single_variation").on("show_variation",function(e,a,t){var i=s.siblings(".single-price-wrapper");h("span.price",i).remove(),i.append(a.price_html)})},h(function(){var t=[];la_theme_config.la_extension_available.swatches?h(document).on("wc_variation_form","form.variations_form",function(e){var a=h(e.target);t.push(a),a.data("has_swatches_form")||(a.data("has_swatches_form",!0),a.lastudio_variation_form(),a.trigger("bind_calculator"),a.on("reload_product_variations",function(){for(var e=0;e<t.length;e++)t[e].trigger("woocommerce_variation_has_changed"),t[e].trigger("bind_calculator"),t[e].trigger("woocommerce_variation_has_changed")}))}):console.log("la_theme_config.la_extension_available.swatches is not activate")})}(jQuery);
!function(D){"use strict";var i={global:{},utils:{},component:{},core:{}};window.LaStudio=i,D.exists=function(e){return 0<e.length},D.getCachedScript=function(e){var t={dataType:"script",cache:!0,url:e};return D.ajax(t)},i.utils.ajax_xhr=null,i.utils.localCache={timeout:6e5,data:{},remove:function(e){delete i.utils.localCache.data[e]},exist:function(e){return!!i.utils.localCache.data[e]&&(new Date).getTime()-i.utils.localCache.data[e]._<i.utils.localCache.timeout},get:function(e){return console.log("Getting in cache for url "+e),i.utils.localCache.data[e].data},set:function(e,t,a){i.utils.localCache.remove(e),i.utils.localCache.data[e]={_:(new Date).getTime(),data:t},D.isFunction(a)&&a(t)}},D.ajaxPrefilter(function(e,t,a){var o;e.cache&&(o=t.url+(void 0!==t.ajax_request_id?JSON.stringify(t.ajax_request_id):JSON.stringify(t.data)),e.cache=!1,e.beforeSend=function(){return i.utils.localCache.exist(o)||a.promise().done(function(e,t){i.utils.localCache.set(o,e)}),!0})}),D.ajaxTransport("+*",function(e,t,a){var o=t.url+(void 0!==t.ajax_request_id?JSON.stringify(t.ajax_request_id):JSON.stringify(t.data));if(e.cache=!1,i.utils.localCache.exist(o))return{send:function(e,t){setTimeout(function(){t(200,"OK",[i.utils.localCache.get(o)])},300)},abort:function(){}}}),D.featherlight.contentFilters.wc_quickview={regex:/./,process:function(e){var t=D.extend({},this.ajaxSetup,{url:e,type:"get",dataType:"html",data:{}}),a=D.Deferred();return D.ajax(t).done(function(e){a.resolve(D(e)),a.reject()}),a.promise()}},D.featherlight.defaults.contentFilters.unshift("wc_quickview"),D.fn.la_sticky=function(e){var C,t,S,L,k,x,j,a,I,M,A,o,i,n,T;for(null==e&&(e={}),M=e.sticky_class,L=e.inner_scrolling,I=e.recalc_every,a=e.parent,x=e.offset_top,k=e.spacer,S=e.bottoming,T=e.fake_parent,e.fake_parent_height,A=D(window).height(),C=D(document).height(),null==x&&(x=0),null==a&&(a=void 0),null==L&&(L=!0),null==M&&(M="is_stuck"),null==S&&(S=!0),j=function(e){var t,a;return window.getComputedStyle?(e[0],t=window.getComputedStyle(e[0]),a=parseFloat(t.getPropertyValue("width"))+parseFloat(t.getPropertyValue("margin-left"))+parseFloat(t.getPropertyValue("margin-right")),"border-box"!==t.getPropertyValue("box-sizing")&&(a+=parseFloat(t.getPropertyValue("border-left-width"))+parseFloat(t.getPropertyValue("border-right-width"))+parseFloat(t.getPropertyValue("padding-left"))+parseFloat(t.getPropertyValue("padding-right"))),a):e.outerWidth(!0)},o=function(n,s,l,r,d,c,u,p){var g,e,h,f,m,v,_,b,t,w,y,o,i;if(!n.data("la_sticky")){if(n.data("la_sticky",!0),m=C,_=n.parent(),T&&(i=T),null!=a&&(_=_.closest(a)),!_.length)throw"failed to find stick parent";if(g=h=!1,(y=null!=k?k&&n.closest(k):D("<div />"))&&y.css("position",n.css("position")),(b=function(){var e,t,a;if(!p)return A=D(window).height(),C=D(document).height(),m=C,e=parseInt(_.css("border-top-width"),10),t=parseInt(_.css("padding-top"),10),s=parseInt(_.css("padding-bottom"),10),l=_.offset().top+e+t,r=T?i.height():_.height(),h&&(g=h=!1,null==k&&(n.insertAfter(y),y.detach()),n.css({position:"",top:"",width:"",bottom:""}).removeClass(M),a=!0),d=n.offset().top-(parseInt(n.css("margin-top"),10)||0)-x,c=n.outerHeight(!0),u=n.css("float"),y&&y.css({width:j(n),height:c,display:n.css("display"),"vertical-align":n.css("vertical-align"),"pointer-events":"none",float:u}),a?o():void 0})(),c!==r)return f=void 0,v=x,w=I,o=function(){var e,t,a,o,i;if(!p)return a=!1,null!=w&&--w<=0&&(w=I,b(),a=!0),a||C===m||(b(),a=!0),o=D(window).scrollTop(),null!=f&&(t=o-f),f=o,h?(S&&(i=r+l<o+c+v,g&&!i&&(g=!1,n.css({position:"fixed",bottom:"",top:v}).trigger("la_sticky:unbottom"))),o<=d&&(h=!1,v=x,null==k&&("left"!==u&&"right"!==u||n.insertAfter(y),y.detach()),e={position:"",width:"",top:""},n.css(e).removeClass(M).trigger("la_sticky:unstick")),L&&A<c+x&&(g||(v-=t,v=Math.max(A-c,v),v=Math.min(x,v),h&&n.css({top:v+"px"})))):d<o&&(h=!0,(e={position:"fixed",top:v}).width="border-box"===n.css("box-sizing")?n.outerWidth()+"px":n.width()+"px",n.css(e).addClass(M),null==k&&(n.after(y),"left"!==u&&"right"!==u||y.append(n)),n.trigger("la_sticky:stick")),h&&S&&(null==i&&(i=r+l<o+c+v),!g&&i)?(g=!0,"static"===_.css("position")&&_.css({position:"relative"}),n.css({position:"absolute",bottom:s,top:"auto"}).trigger("la_sticky:bottom")):void 0},t=function(){return b(),o()},e=function(){if(p=!0,D(window).off("touchmove",o),D(window).off("scroll",o),D(window).off("resize",t),D(document.body).off("la_sticky:recalc",t),n.off("la_sticky:detach",e),n.removeData("la_sticky"),n.css({position:"",bottom:"",top:"",width:""}),_.position("position",""),h)return null==k&&("left"!==u&&"right"!==u||n.insertAfter(y),y.remove()),n.removeClass(M)},D(window).on("touchmove",o),D(window).on("scroll",o),D(window).on("resize",t),D(document.body).on("la_sticky:recalc",t),n.on("la_sticky:detach",e),setTimeout(o,0)}},i=0,n=this.length;i<n;i++)t=this[i],o(D(t));return this}}(jQuery),function(){"use strict";LaStudio.global.isPageSpeed=function(){return"undefined"!=typeof navigator&&/lighthouse/i.test(navigator.userAgent)},LaStudio.global.hasClass=function(e,t){return-1<(" "+e.className+" ").indexOf(" "+t+" ")},LaStudio.global.isRTL=function(){return document.body.classList?document.body.classList.contains("rtl"):/\brtl\b/g.test(document.body.className)},LaStudio.global.sanitizeSlug=function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},LaStudio.global.isCookieEnable=function(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";var e=-1!=document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e},LaStudio.global.parseVideo=function(e){var t=LaStudio.global.getUrlParameter("playlist",e);return e.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),-1<RegExp.$3.indexOf("youtu")?t?"https://www.youtube.com/embed/"+RegExp.$6+"?autoplay=1&playlist="+t+"&loop=1&rel=0&iv_load_policy3":"https://www.youtube.com/embed/"+RegExp.$6+"?autoplay=1&loop=1&rel=0&iv_load_policy3":-1<RegExp.$3.indexOf("vimeo")?"https://player.vimeo.com/video/"+RegExp.$6+"?autoplay=1&loop=1&title=0&byline=0&portrait=0":e},LaStudio.global.getBrowseInformation=function(){var e,t,a,o,i=navigator.userAgent.toLowerCase(),n=navigator.platform.toLowerCase(),s=i.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown","0"];return o=-1,"Microsoft Internet Explorer"==navigator.appName?(a=navigator.userAgent,null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(a)&&(o=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(a=navigator.userAgent,null!=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(a)&&(o=parseFloat(RegExp.$1))),t=-1!=o?(e="ie",o):(e="version"==s[1]?s[3]:s[1],s[2].substring(0,2)),{name:e,version:t,platform:i.match(/ip(?:ad|od|hone)/)?"ios":(i.match(/(?:webos|android)/)||n.match(/mac|win|linux/)||["other"])[0]}},LaStudio.global.setBrowserInformation=function(){var e=LaStudio.global.getBrowseInformation();document.querySelector("html").className+=" "+e.name+" "+e.name+e.version+" platform-"+e.platform},LaStudio.global.isIELower16=function(){var e=LaStudio.global.getBrowseInformation();return"ie"==e.name&&parseInt(e.version)<16},LaStudio.global.getRandomID=function(){for(var e="",t="abcdefghijklmnopqrstuvwxyz",a="0123456789",o=0;o<5;o++)e+=t.charAt(Math.floor(Math.random()*t.length));for(o=0;o<5;o++)e+=a.charAt(Math.floor(Math.random()*a.length));return e},LaStudio.global.getAdminBarHeight=function(){return document.getElementById("wpadminbar")&&600<window.innerWidth?32:0},LaStudio.global.addQueryArg=function(e,t,a){var o=new RegExp("([?&])"+t+"=.*?(&|$)","i"),i=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+a+"$2"):e+i+t+"="+a},LaStudio.global.getUrlParameter=function(e,t){t=t||window.location.href,e=e.replace(/[\[\]]/g,"\\$&");var a=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return a?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null},LaStudio.global.removeURLParameter=function(e,t){var a=e.split("?");if(2<=a.length){for(var o=encodeURIComponent(t)+"=",i=a[1].split(/[&;]/g),n=i.length;0<n--;)-1!==i[n].lastIndexOf(o,0)&&i.splice(n,1);return e=a[0]+(0<i.length?"?"+i.join("&"):"")}return e},LaStudio.global.parseQueryString=function(e){var t=e.split("?"),a={};if(2<=t.length)for(var o=t[1].split("&"),i=0;i<o.length;i++){var n,s=o[i].split("="),l=decodeURIComponent(s[0]),r=decodeURIComponent(s[1]);void 0===a[l]?a[l]=decodeURIComponent(r):"string"==typeof a[l]?(n=[a[l],decodeURIComponent(r)],a[l]=n):a[l].push(decodeURIComponent(r))}return a}}(jQuery),function(a){"use strict";function c(e){return/^(?:body|html)$/i.test(e.tagName)}function u(e,t){return a(e).css(t)}function t(e,t){return parseInt(u(e,t))||0}function p(e){return t(e,"border-top-width")}function g(e){return t(e,"border-left-width")}function h(e){return"border-box"==u(e,"-moz-box-sizing")}function o(e){var t=LaStudio.global.getBrowseInformation();if(e.getBoundingClientRect&&"ios"!=t.platform){var a=e.getBoundingClientRect(),o=e.ownerDocument.documentElement,i={x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop},n=function(e){for(var t=e.parentNode,a={x:0,y:0};t&&!c(t);)a.x+=t.scrollLeft,a.y+=t.scrollTop,t=t.parentNode;return a}(e),s="fixed"==u(e,"position");return{x:parseInt(a.left)+n.x+(s?0:i.x)-o.clientLeft,y:parseInt(a.top)+n.y+(s?0:i.y)-o.clientTop}}var l,r=e,d={x:0,y:0};if(c(e))return d;for(;r&&!c(r);){d.x+=r.offsetLeft,d.y+=r.offsetTop,"firefox"==t.name?(h(r)||(d.x+=g(r),d.y+=p(r)),(l=r.parentNode)&&"visible"!=u(l,"overflow")&&(d.x+=g(l),d.y+=p(l))):r!=e&&"safari"==t.name&&(d.x+=g(r),d.y+=p(r)),r=r.offsetParent}return"firefox"!=t.name||h(e)||(d.x-=g(e),d.y-=p(e)),d}LaStudio.global.getOffset=function(e){return a.exists(e)?o(e.get(0)):{x:0,y:0}}}(jQuery),function(n){var s=[],l={};n("body").on("lastudo-prepare-object-fit",function(e,t){console.log("run fix object-fit"),n(".figure__object_fit:not(.custom-object-fit) img",t).each(function(){var e=n(this).closest(".figure__object_fit"),t=n(this).prop("src");t&&e.css("backgroundImage","url("+t+")").addClass("custom-object-fit")})}),LaStudio.global.isIELower16()&&n("body").on("lastudio-object-fit",function(e){console.log("run fix object-fit"),n(".figure__object_fit:not(.custom-object-fit) img").each(function(){var e=n(this).closest(".figure__object_fit"),t=n(this).prop("src");t&&e.css("backgroundImage","url("+t+")").addClass("custom-object-fit")})}),LaStudio.core.initAll=function(e){var a,t=e.find(".js-el").filter("[data-la_component]");t.length<=0||(a=function(e,t){var a=n(t);a.data("init-"+e)||("function"!=typeof LaStudio.component[e]?console.log("[LaStudio Component "+e+"] ---- init error"):(new LaStudio.component[e](t).init(),a.data("init-"+e,!0),LaStudio.global.eventManager.publish("LaStudio:component_inited",[e,t])))},t.each(function(){var t=this,e=n(this).data("la_component");"string"==typeof e?a(e,t):e.forEach(function(e){a(e,t)})}),n("body").trigger("lastudio-fix-ios-limit-image-resource").trigger("lastudio-lazy-images-load").trigger("jetpack-lazy-images-load").trigger("lastudio-object-fit"))},LaStudio.global.loadCSS=function(e){var t=document.getElementsByTagName("head")[0],a=document.createElement("link");a.href=e,a.type="text/css",a.rel="stylesheet",t.append(a)},LaStudio.global.loadDependencies=function(e,t){var o,a,i=t||function(){};e?!0!==(o=e.map(function(e){return-1===s.indexOf(e)&&(void 0===l[e]?e:(l[e].push(i),!0))}))[0]&&(!1!==o[0]?(a=o.map(function(e){return l[e]=[i],n.getCachedScript(e)}),n.when.apply(null,a).done(function(){var a=0;o.map(function(t){a++,l[t].forEach(function(e){a==o.length&&(console.log(t),e())}),delete l[t],s.push(t)})})):i()):i()},LaStudio.global.loadJsFile=function(e){return la_theme_config.js_path+e+(la_theme_config.js_min?".min.js":".js")},LaStudio.global.AnimateLoadElement=function(e,t,a){var o=a||function(){},i=0;t.css({opacity:0}),i="fade"==e?(t.each(function(){n(this).stop().animate({opacity:1},1e3)}),1e3):"sequencefade"==e?(t.each(function(e){var t=n(this);setTimeout(function(){t.stop().animate({opacity:1},1e3)},100+50*e)}),500+50*t.length):"upfade"==e?(t.each(function(){var e=n(this),t=parseInt(e.css("top"),10)+e.height()/2;e.css({top:t+"px",opacity:0})}),t.each(function(){var e=n(this);e.stop().animate({top:parseInt(e.css("top"),10)-e.height()/2,opacity:1},1500)}),2e3):"sequenceupfade"==e?(t.each(function(){var e=n(this),t=parseInt(e.css("top"),10)+e.height()/2;e.css({top:t+"px",opacity:0})}),t.each(function(e){var t=n(this);setTimeout(function(){t.stop().animate({top:parseInt(t.css("top"),10)-t.height()/2,opacity:1},1e3)},100+50*e)}),1100+50*t.length):(t.css({opacity:1}),1e3),setTimeout(function(){o.call()},i)},LaStudio.global.InsightInitLazyEffects=function(t,a,e){function o(){var e=!1==!!a.attr("data-la-effect")?"sequenceupfade":a.attr("data-la-effect");a.addClass("InsightInitLazyEffects-inited"),LaStudio.global.AnimateLoadElement(e,n(t,a),function(){n(t,a).addClass("showmenow"),a.data("isotope")&&a.isotope("layout")})}a.hasClass("InsightInitLazyEffects-inited")||(e?o():LaStudio.global.LazyLoad(a,{load:function(){o()}}).observe())},LaStudio.global.ShowMessageBox=function(e,t){void 0===LaStudio.utils.timeOutMessageBox&&(LaStudio.utils.timeOutMessageBox=null);var a=n('<div class="la-global-message"></div>').html(e);void 0!==n.featherlight.close()&&n.featherlight.close(),n.featherlight(a,{persist:"shared",type:"jquery",background:'<div class="featherlight featherlight-loading"><div class="featherlight-outer"><button class="featherlight-close-icon featherlight-close" aria-label="Close"><i class="lastudioicon-e-remove"></i></button><div class="featherlight-content"><div class="featherlight-inner"><div class="la-loader spinner3"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div><div class="cube1"></div><div class="cube2"></div><div class="cube3"></div><div class="cube4"></div></div></div></div></div><div class="custom-featherlight-overlay"></div></div>',beforeOpen:function(e){n("body").addClass(t),clearTimeout(LaStudio.utils.timeOutMessageBox)},afterOpen:function(e){LaStudio.utils.timeOutMessageBox=setTimeout(function(){n.featherlight.close()},2e4)},afterClose:function(e){n("body").removeClass(t),clearTimeout(LaStudio.utils.timeOutMessageBox)}})}}(jQuery),function(a){"use strict";LaStudio.global.eventManager={},LaStudio.global.eventManager.subscribe=function(e,t){a(this).on(e,t)},LaStudio.global.eventManager.unsubscribe=function(e,t){a(this).off(e,t)},LaStudio.global.eventManager.publish=function(e,t){a(this).trigger(e,t)}}(jQuery),function(d){"use strict";var c={rootMargin:"100px",threshold:0,load:function(e){var t=e.getAttribute("data-src")||e.getAttribute("data-lazy")||e.getAttribute("data-lazy-src")||e.getAttribute("data-lazy-original"),a=e.getAttribute("data-src")||e.getAttribute("data-lazy-srcset"),o=e.getAttribute("data-sizes")||e.getAttribute("data-lazy-sizes");t&&(e.src=t),a&&(e.srcset=a),o&&(e.sizes=o),e.getAttribute("data-background-image")&&(e.style.backgroundImage='url("'+e.getAttribute("data-background-image")+'")'),e.setAttribute("data-element-loaded",!0),d(e).hasClass("jetpack-lazy-image")&&d(e).addClass("jetpack-lazy-image--handled")},complete:function(e){}};function u(e){e.setAttribute("data-element-loaded",!0)}function p(e){return"true"===e.getAttribute("data-element-loaded")}LaStudio.global.LazyLoad=function(){var a,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=d.extend({},c,e),i=o.rootMargin,n=o.threshold,s=o.load,l=o.complete,r=void 0;return"IntersectionObserver"in window&&(r=new IntersectionObserver((a=s,function(e,t){e.forEach(function(e){0<e.intersectionRatio&&(t.unobserve(e.target),p(e.target)||(a(e.target),u(e.target)))})}),{rootMargin:i,threshold:n})),{observe:function(){if(d.exists(t)){for(var e=0;e<t.length;e++)p(t[e])||(r?r.observe(t[e]):(s(t[e]),u(t[e])));l(t)}}}},LaStudio.global.makeImageAsLoaded=function(e){p(e)||(c.load(e),u(e),d(e).removeClass("lazyload"))},d("body").on("lastudio-lazy-images-load",function(){var t,e=d('.la-lazyload-image:not([data-element-loaded="true"])');LaStudio.global.LazyLoad(e,{rootMargin:"200px"}).observe();try{t=new Event("jetpack-lazy-images-load",{bubbles:!0,cancelable:!0})}catch(e){(t=document.createEvent("Event")).initEvent("jetpack-lazy-images-load",!0,!0)}d("body").get(0).dispatchEvent(t)})}(jQuery),function(A){"use strict";var T=A(window),d=A(document),a=A("html,body"),D=A("body"),o=A("#lastudio-header-builder");LaStudio.component.SVGAnimation=function(e){function t(){var e=new Vivus(n[0],i);o.hover&&(o.hoveron?A(o.hoveron).on("mouseenter",function(){e.stop().reset().play(2)}).on("mouseleave",function(){e.finish()}):a.on("mouseenter",function(){e.stop().reset().play(2)}).on("mouseleave",function(){e.finish()}))}var a=A(e),o=a.data(),i={type:o.type?o.type:"delayed",duration:o.duration?o.duration:100},n=a.find("svg");return{init:function(){"undefined"==typeof Vivus?LaStudio.global.loadDependencies([LaStudio.global.loadJsFile("vivus")],t):t()}}},LaStudio.component.MasonryFilter=function(e){function t(){A(".isotope__filter-item",a).on("click",function(e){e.preventDefault();var t=A(this).attr("data-filter");a.find(".active").removeClass("active"),"*"!=t&&(t="."+t),i&&(i.attr("lafilter",t),i.isotope(A.extend(o,{filter:t}))),A(this).addClass("active")})}var a=A(e),o=a.data("isotope_option")||{},i=A(a.data("isotope_container"));return{init:function(){A.isFunction(A.fn.isotope)?t():LaStudio.global.loadDependencies([LaStudio.global.loadJsFile("isotope.pkgd")],t)}}},LaStudio.component.DefaultMasonry=function(e){function t(){a.isotope(i),LaStudio.global.LazyLoad(a.parent(),{rootMargin:"100px",load:function(){LaStudio.global.eventManager.publish("LaStudio:Component:LazyLoadImage",[a]),A(".la-isotope-loading",a).hide(),a.addClass("loaded"),LaStudio.global.InsightInitLazyEffects(o,a,!1)}}).observe();try{Waypoint.refreshAll()}catch(e){}}var a=A(e),o=a.data("item_selector"),i=a.data("config_isotope")||{},i=A.extend({percentPosition:!0,itemSelector:o},i);return{init:function(){A(".la-isotope-loading",a).show(),A.isFunction(A.fn.isotope)?t():LaStudio.global.loadDependencies([LaStudio.global.loadJsFile("isotope.pkgd")],t)}}},LaStudio.component.AdvancedMasonry=function(e){var t=A(e),a=t.data("item_selector"),o=t.data("config_isotope")||{},o=A.extend({percentPosition:!0,itemSelector:a,masonry:{gutter:0}},o);LaStudio.global.eventManager.subscribe("LaStudio:AdvancedMasonry:calculatorItemWidth",function(e,t,a){var i,o,n,s,l,r,d,c,u,p,g,h,f,m;t.hasClass("grid-items")||(i=T.width(),o=t.data("item-width"),n=t.data("item-height"),s=!1!=!!t.data("container-width")?t.data("container-width"):t.width(),l=t.width(),d=s,c=o,r=Math.round(d/c),1300<i&&(u=t.parent().attr("class").match(/masonry-max-item-per-row-(\d+)/),p=t.parent().attr("class").match(/masonry-min-item-per-row-(\d+)/),u&&u[1]&&r>parseInt(u[1])&&(r=parseInt(u[1])),p&&p[1]&&r<parseInt(p[1])&&(r=parseInt(p[1]))),i<1024?(r=t.data("md-col"),t.removeClass("cover-img-bg")):t.addClass("cover-img-bg"),i<800&&(r=t.data("sm-col")),i<576&&(r=t.data("xs-col")),i<480&&(r=t.data("mb-col")),g=Math.floor(l/r),h=t.data("item_selector"),f=parseInt(t.data("item_margin")||0),m=parseFloat(o/n),A(h,t).each(function(e){var t=parseFloat(A(this).data("width")||1),a=parseFloat(A(this).data("height")||1),o={};isNaN(t)&&(t=1),isNaN(a)&&(a=1),i<1024&&(t=a=1),o.width=Math.floor(g*t-f/2),o.height=Math.floor(g/m*a),i<1024&&(o.height="auto"),A(this).css(o)}),a&&t.data("isotope")&&t.isotope("layout"))});function i(){LaStudio.global.eventManager.publish("LaStudio:AdvancedMasonry:calculatorItemWidth",[t,!1]),T.on("resize",function(e){LaStudio.global.eventManager.publish("LaStudio:AdvancedMasonry:calculatorItemWidth",[t,!0])}),t.hasClass("masonry__column-type-default")||(o.masonry.columnWidth=1),t.isotope(o),t.hasClass("showposts-loop")||t.hasClass("loaded")||t.on("layoutComplete",function(e){LaStudio.global.InsightInitLazyEffects(a,t,!0)}),LaStudio.global.LazyLoad(t.parent(),{rootMargin:"100px",load:function(){LaStudio.global.eventManager.publish("LaStudio:Component:LazyLoadImage",[t]),A(".la-isotope-loading",t).hide(),t.addClass("loaded"),LaStudio.global.InsightInitLazyEffects(a,t,!1)}}).observe();try{Waypoint.refreshAll()}catch(e){}}return{init:function(){A(".la-isotope-loading",t).show(),A.isFunction(A.fn.isotope)?i():LaStudio.global.loadDependencies([LaStudio.global.loadJsFile("isotope.pkgd")],i)}}},LaStudio.component.AutoCarousel=function(e){function t(){var e,t=parseInt(v.slidesToShow.desktop)||1,a=parseInt(v.slidesToShow.laptop)||t,o=parseInt(v.slidesToShow.tablet)||a,i=parseInt(v.slidesToShow.mobile_extra)||o,n=parseInt(v.slidesToShow.mobile)||i,s=parseInt(v.slidesToShow.mobileportrait)||n;v.slidesToShow=t;var l=1;void 0!==v.extras&&void 0!==v.extras.rows&&(l=parseInt(v.extras.rows)),(l<1||isNaN(l))&&(l=1);var r={slidesToShow:a,slidesToScroll:a},d={slidesToShow:o,slidesToScroll:o},c={slidesToShow:i,slidesToScroll:i},u={slidesToShow:n,slidesToScroll:n},p={slidesToShow:s,slidesToScroll:s};1<l&&(r.rows=l,d.rows=l,c.rows=1,u.rows=1,p.rows=1),e={customPaging:function(e,t){return A("<span />").text(t+1)},dotsClass:"lastudio-slick-dots",responsive:[{breakpoint:1600,settings:r},{breakpoint:1300,settings:d},{breakpoint:800,settings:c},{breakpoint:768,settings:u},{breakpoint:576,settings:p}]},1<l&&(e.rows=l);var g,h='<svg viewBox="0 0 33 85" aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="33" height="85"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="square" stroke-width="2" d="M31 2L2 42.5 31 83"/></svg>',f='<svg viewBox="0 0 33 85" aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="33" height="85"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="square" stroke-width="2" d="M2 2l29 40.5L2 83"/></svg>';void 0!==(g=A.extend({},e,v)).prevArrow&&(g.prevArrow=g.prevArrow.replace('<button class="lastudio-arrow prev-arrow slick-prev"><i class="lastudioicon-svgleft"></i></button>','<button class="lastudio-arrow prev-arrow slick-prev">'+h+"</button>")),void 0!==g.nextArrow&&(g.nextArrow=g.nextArrow.replace('<button class="lastudio-arrow next-arrow slick-next"><i class="lastudioicon-svgright"></i></button>','<button class="lastudio-arrow next-arrow slick-next">'+f+"</button>")),m.on("init",function(e,t){t.slideCount<=t.options.slidesToShow?t.$slider.addClass("hidden-dots"):t.$slider.removeClass("hidden-dots"),t.options.centerMode&&t.$slider.addClass("la-slick-centerMode")}),m.on("afterChange",function(e){m.addClass("laslickinit")}),m.slick(g),A('<div class="slick-controls-auto"><a class="slick-control-start" href="#"><i class="fa fa-play" aria-hidden="true"></i></a><a class="slick-control-stop active" href="#"><i class="fa fa-pause" aria-hidden="true"></i></a></div>').insertAfter(m),m.on("click",".slick-control-start",function(e){e.preventDefault(),A(this).removeClass("active").siblings("a").addClass("active"),m.slick("slickPlay")}).on("click",".slick-control-stop",function(e){e.preventDefault(),A(this).removeClass("active").siblings("a").addClass("active"),m.slick("slickPause")}),LaStudio.global.LazyLoad(m.parent(),{rootMargin:"100px",load:function(){LaStudio.global.eventManager.publish("LaStudio:Component:LazyLoadImage",[m])}}).observe()}var m=A(e),v=m.data("slider_config")||{};return{init:function(){A.isFunction(A.fn.slick)?t():LaStudio.core.loadDependencies([LaStudio.global.loadJsFile("slick")],t)}}},LaStudio.component.CountDownTimer=function(e){var t,a=A(e).find("[data-due-date]"),o=new Date(1e3*a.data("due-date")),i={days:a.find('[data-value="days"]'),hours:a.find('[data-value="hours"]'),minutes:a.find('[data-value="minutes"]'),seconds:a.find('[data-value="seconds"]')};return LaStudio.component.CountDownTimer.updateClock=function(){var e=LaStudio.component.CountDownTimer.getTimeRemaining(o);A.each(e.parts,function(e){var t=i[e];t.length&&t.html(this)}),e.total<=0&&clearInterval(t)},LaStudio.component.CountDownTimer.initClock=function(){LaStudio.component.CountDownTimer.updateClock(),t=setInterval(LaStudio.component.CountDownTimer.updateClock,1e3)},LaStudio.component.CountDownTimer.splitNum=function(e){var t,e=e.toString(),a="";return 1===e.length&&(e=0+e),t=e.match(/\d{1}/g),A.each(t,function(e,t){a+='<span class="lastudio-countdown-timer__digit">'+t+"</span>"}),a},LaStudio.component.CountDownTimer.getTimeRemaining=function(e){var t=e-new Date,a=Math.floor(t/1e3%60),o=Math.floor(t/1e3/60%60),i=Math.floor(t/36e5%24),n=Math.floor(t/864e5);return(n<0||i<0||o<0)&&(a=o=i=n=0),{total:t,parts:{days:LaStudio.component.CountDownTimer.splitNum(n),hours:LaStudio.component.CountDownTimer.splitNum(i),minutes:LaStudio.component.CountDownTimer.splitNum(o),seconds:LaStudio.component.CountDownTimer.splitNum(a)}}},LaStudio.component.CountDownTimer.initClock(),{init:function(){LaStudio.component.CountDownTimer.initClock()}}},LaStudio.component.InfiniteScroll=function(e){var t=A(A(e).data("pagination"));return{init:function(){LaStudio.core.InfiniteScroll(t)}}},LaStudio.core.InfiniteScroll=function(e){LaStudio.global.LazyLoad(e,{rootMargin:"40px",threshold:.1,load:function(){A(".pagination_ajax_loadmore a",e).trigger("click")}}).observe()},LaStudio.core.HeaderSticky=function(){var a=A("#lastudio-header-builder"),o="none",t=T.scrollTop();T.on("scroll",function(){var e=T.scrollTop();o=t<e?"down":e===t?"none":"up",t=e});function e(){var e=0;A.exists(a)&&(e=A(".lahbhinner").outerHeight(),document.documentElement.style.setProperty("--header-height",e+"px"))}var i;e(),T.on("resize",e),A.exists(A(".footer-handheld-footer-bar"))&&(i=A(".footer-handheld-footer-bar"),T.on("scroll",function(e){var t=LaStudio.global.getAdminBarHeight()+A(".lahbhinner",a).outerHeight();t<20&&(t=100),T.scrollTop()>t?"down"==la_theme_config.mobile_bar?"down"==o?i.removeClass("sticky--unpinned").addClass("sticky--pinned"):i.removeClass("sticky--pinned").addClass("sticky--unpinned"):"up"==la_theme_config.mobile_bar&&("up"==o?i.removeClass("sticky--unpinned").addClass("sticky--pinned"):i.removeClass("sticky--pinned").addClass("sticky--unpinned")):i.removeClass("sticky--pinned sticky--unpinned")}));var n,s,l,r,d,c,u,p,g=!!D.hasClass("header-sticky-type-auto");D.hasClass("enable-header-sticky")&&A.exists(a)&&(s=A(".lahbhouter",n=a),l=A(".lahbhinner",a),c=!1,void(d=r=0)!==la_theme_config.header_sticky_target&&""!=la_theme_config.header_sticky_target&&A.exists(A(la_theme_config.header_sticky_target))&&(c=A(la_theme_config.header_sticky_target)),void 0!==la_theme_config.header_sticky_offset&&(d=parseInt(la_theme_config.header_sticky_offset)),u=0,p=LaStudio.global.getOffset(s).y,T.on("resize",function(e){p=LaStudio.global.getOffset(s).y}).on("scroll",function(e){!1!==c&&(r=LaStudio.global.getOffset(c).y);var t=T.scrollTop(),a=p-LaStudio.global.getAdminBarHeight()+r+d;g&&(a=p-LaStudio.global.getAdminBarHeight()+l.outerHeight()+r+d),a<t?(l.css("top",LaStudio.global.getAdminBarHeight()),n.hasClass("is-sticky")||n.addClass("is-sticky"),g?t<D.height()&&t<u?(l.hasClass("sticky--unpinned")&&l.removeClass("sticky--unpinned"),l.hasClass("sticky--pinned")||l.addClass("sticky--pinned")):(l.hasClass("sticky--pinned")&&l.removeClass("sticky--pinned"),l.hasClass("sticky--unpinned")||l.addClass("sticky--unpinned")):l.addClass("sticky--pinned")):g?n.hasClass("is-sticky")&&(a-t<l.outerHeight()||(n.removeClass("is-sticky"),l.css("top","0").removeClass("sticky--pinned sticky--unpinned"))):n.hasClass("is-sticky")&&(n.removeClass("is-sticky"),l.css("top","0").removeClass("sticky--pinned sticky--unpinned")),u=t}))},LaStudio.core.InstanceSearch=function(s){var l,o,r,d,c,u,p,g,a,i;function n(e){var i,t=c.val(),a=d.find(".product-cats input:checked"),n=t+"["+(a.length?a.val():d.find("select").length?d.find("select").val():"")+"]";o===t&&e||((o=t).length<2?s.removeClass("searching found-products found-no-product").addClass("invalid-length"):(i=d.attr("action")+"?"+d.serialize(),p.removeClass("fadeInUp"),A(".view-more-results",u).slideUp(10),s.removeClass("found-products found-no-product").addClass("searching"),n in r?h(r[n]):l=A.get(i,function(e){var t,a,o=A("#content.site-content",e);"product"===g?(t=A("#la_shop_products .row ul.products",o)).length?(t.children("li:eq(20)").nextAll().remove(),r[n]={found:!0,items:t,url:i}):r[n]={found:!1,text:A(".woocommerce-info",o).text()}:(a=A("#blog-entries .lastudio-posts__item",o)).length?(a.addClass("col-md-4"),r[n]={found:!0,items:A('<div class="posts" />').append(a),url:i}):r[n]={found:!1,text:A("#blog-entries article .entry",o).text()},h(r[n]),s.addClass("searched"),l=null},"html")))}function h(e){var t="product"===g?"woocommerce":"la-post-grid";if(s.removeClass("searching"),e.found){var a=e.items.clone(),o=a.children();s.addClass("found-products"),u.find(".results-container").addClass(t).html(a),A("body").trigger("lastudio-fix-ios-limit-image-resource").trigger("lastudio-lazy-images-load").trigger("jetpack-lazy-images-load").trigger("lastudio-object-fit"),LaStudio.core.initAll(u);for(var i=0;i<o.length;i++)A(o[i]).css("animation-delay",100*i+"ms");o.addClass("fadeInUp animated"),p.attr("href",e.url).css("animation-delay",100*i+"ms").addClass("fadeInUp animated"),u.find(".results-container, .view-more-results").slideDown(300,function(){s.removeClass("invalid-length")})}else s.addClass("found-no-product"),u.find(".results-container").removeClass(t).html(A('<div class="not-found text-center" />').text(e.text)),p.attr("href","#"),u.find(".view-more-results").slideUp(300),u.find(".results-container").slideDown(300,function(){s.removeClass("invalid-length")});s.addClass("searched")}s.hasClass("has-init")||(s.addClass("has-init"),l=null,o="",r={},d=s.find("form.search-form"),c=d.find("input.search-field"),u=s.find(".search-results"),p=u.find(".search-results-button"),g=s.find("input[name=post_type]").val(),i=0,a=function(e,t){clearTimeout(i),i=setTimeout(e,t)},s.on("keyup",".search-field",function(e){var t=!1;void 0===e.which?t=!0:"number"==typeof e.which&&0<e.which&&(t=!e.ctrlKey&&!e.metaKey&&!e.altKey),t&&(l&&l.abort(),a(function(){n(!0)},400))}).on("change",".product-cats input",function(){l&&l.abort(),n(!1)}).on("change","select",function(){l&&l.abort(),n(!1)}).on("click",".search-reset",function(){l&&l.abort(),s.addClass("reset"),u.find(".results-container, .view-more-results").slideUp(function(){s.removeClass("searching searched found-products found-no-product invalid-length reset")})}).on("focusout",".search-field",function(){A(this).val().length<2&&u.find(".results-container, .view-more-results").slideUp(function(){s.removeClass("searching searched found-products found-no-product invalid-length")})}).on("focus",".search-field",function(){s.hasClass("found-products")&&u.find(".results-container").slideDown(200)}))},LaStudio.core.MegaMenu=function(){LaStudio.global.eventManager.subscribe("LaStudio:MegaMenuBuilder:MenuPosition",function(e,t){A.exists(t)&&(t.closest(".lahb-content-wrap").addClass("position-relative"),t.each(function(){var x=A(this),j=0,I=x.closest(".lahb-content-wrap"),M=!1,j=I.width();x.closest(".lahb-vertital-menu_nav").length&&(M=!0),D.hasClass("header-type-vertical")?(j=1200,T.width()<1500&&(j=D.hasClass("header-type-vertical--toggle")?T.width()-A(".lahb-vertical-toggle-wrap").outerWidth()-A(".lahb-vertical.lahb-vcom").outerWidth():T.width()-o.outerWidth())):x.hasClass("lahb-vertital-menu_nav")&&(j-=x.outerWidth()),A("li.mega .megamenu-inited",x).removeClass("megamenu-inited"),A("li.mega > .sub-menu",x).removeAttr("style"),A("li.mega",x).each(function(){var e,t,a,o,i,n,s,l,r,d,c,u,p,g,h,f,m,v,_,b,w=A(this),y=A("> .sub-menu",w),C=A("> .sub-menu > .mm-mega-li",w),S=parseInt(C.data("maxWidth")?C.data("maxWidth"):C.css("maxWidth")),L=I,k=1200;j<k&&(k=j),isNaN(S)&&(S=k),S<k&&(k=parseInt(S)),w.hasClass("mm-popup-force-fullwidth")&&0==w.closest(".lahb-vertical").length&&(C.data("maxWidth",S).css("maxWidth","none"),A("> ul",C).css("width",S),M?0==x.closest(".vertital-menu_nav-hastoggle").length&&(k=A("#outer-wrap > #wrap").width()):(k=T.width(),L=D)),y.width(k),t=L,a=j,o=M,A(".megamenu-inited",e=w).length||0!=(i=A("> .sub-menu",e)).length&&(a<(n=i.outerWidth())&&(n=a),o||(s=parseInt(t.css("padding-left")),l=parseInt(t.css("padding-right")),r=i.parent().outerWidth(),h=0,d=LaStudio.global.getOffset(t),c=LaStudio.global.getOffset(i).x,u=d.x,h=r<n?-(n-r)/2:0,LaStudio.global.isRTL()?((p=T.width()-(n+c))-(g=T.width()-(t.outerWidth()+u))-l+h<0&&(h=-(p-g-l)),p+n+h>u+t.outerWidth()-s&&(h-=p+n+h-(u+t.outerWidth()-s)),i.css("right",h).css("right")):(c-u-s+h<0&&(h=-1*(c-u-s)),c+n+h>u+t.outerWidth()-l&&(h=-1*(c+n+(h=0)-(u+t.outerWidth()-l))),t.is("body")&&(h=-1*c),i.css("left",h).css("left"))),o&&(f=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,m=i.offset(),v=i.outerHeight(),_=T.scrollTop(),m.top-_+v>f&&(b=f-(m.top+_+v+50),f<=v?i.offset({top:LaStudio.global.getAdminBarHeight()}):i.css({top:b}))),i.addClass("megamenu-inited"))})}))}),LaStudio.global.eventManager.publish("LaStudio:MegaMenuBuilder:MenuPosition",[A("body .lahb-nav-wrap.has-megamenu")]),T.on("resize",function(){LaStudio.global.eventManager.publish("LaStudio:MegaMenuBuilder:MenuPosition",[A("body .lahb-nav-wrap.has-megamenu")])}),A(".lahb-vertital-menu_nav .lahb-vertital-menu_button button").on("click",function(e){e.preventDefault();var t=A(this).closest(".lahb-vertital-menu_nav");t.hasClass("open")?t.removeClass("open"):t.addClass("open")})},LaStudio.core.ElementClickEvent=function(){d.on("LaStudio:Component:Popup:Close",function(e){e.preventDefault();try{A.featherlight.close()}catch(e){}}).on("touchend click",".la-overlay-global",function(e){e.preventDefault(),D.removeClass("open-lahb-vertical open-cart-aside")}).on("click",".footer-handheld-footer-bar .la_com_action--dropdownmenu .component-target",function(e){e.preventDefault();var t=A(this).parent();D.removeClass("open-mobile-menu open-search-form"),t.hasClass("active")?(t.removeClass("active"),D.removeClass("open-overlay")):(t.addClass("active"),t.siblings().removeClass("active"),D.addClass("open-overlay"))}).on("click",".footer-handheld-footer-bar .la_com_action--searchbox",function(e){e.preventDefault();A(this);A(this).hasClass("active")?(D.removeClass("open-search-form "),A(this).removeClass("active")):(D.addClass("open-search-form"),A(this).addClass("active"),A(this).siblings().removeClass("active"),D.removeClass("open-overlay"))}).on("click",".la-popup:not(.elementor-widget):not([data-gallery-id]), .la-popup.elementor-widget a",function(e){e.preventDefault();var t=A(this),a=LaStudio.global.parseVideo(t.attr("href")),o=/\.(png|jp?g|gif|tiff?|bmp|svg|webp)(\?\S*)?$/i,i=/^[#.]\w/,n=/^\s*<[\w!][^<]*>/,s=/\.(png|jpe?g|gif|svg|webp)(\?\S*)?$/i,l="iframe",l=a.match(o)?"image":a.match(i)?"jquery":a.match(n)?"html":"iframe";a.match(s)&&"undefined"!=typeof elementorFrontend||A.featherlight(a,{type:l,persist:"shared",background:'<div class="featherlight featherlight-loading"><div class="featherlight-outer"><button class="featherlight-close-icon featherlight-close" aria-label="Close"><i class="lastudioicon-e-remove"></i></button><div class="featherlight-content"><div class="featherlight-inner"><div class="la-loader spinner3"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div><div class="cube1"></div><div class="cube2"></div><div class="cube3"></div><div class="cube4"></div></div></div></div></div><div class="custom-featherlight-overlay"></div></div>',beforeClose:function(e){var t;"jquery"==l&&0<A(a).length&&(t=a.replace("#","#__tmp__"),A(a).insertBefore(A(t)),A(t).remove())},beforeOpen:function(){var e;"jquery"==l&&0<A(a).length&&(e=a.replace("#","__tmp__"),A('<div id="'+e+'" class="featherlight__placeholder"></div>').insertBefore(A(a)))},iframeAllow:"autoplay",iframeAllowfullscreen:"1"})}).on("click",".la-inline-popup",function(e){e.preventDefault();var t=A(this),a=A(t.data("href")||t.attr("href")),o=t.data("component_name")||"";o+=" featherlight--inline",A.featherlight(a,{background:'<div class="featherlight featherlight-loading"><div class="featherlight-outer"><button class="featherlight-close-icon featherlight-close" aria-label="Close"><i class="lastudioicon-e-remove"></i></button><div class="featherlight-content"><div class="featherlight-inner"><div class="la-loader spinner3"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div><div class="cube1"></div><div class="cube2"></div><div class="cube3"></div><div class="cube4"></div></div></div></div></div><div class="custom-featherlight-overlay"></div></div>',beforeOpen:function(e){D.addClass(o)},afterClose:function(e){D.removeClass(o)}})}).on("click",".custom-lighcase-btn-close, .popup-button-continue, .custom-lightcase-overlay, .custom-featherlight-close, .btn-close-newsletter-popup",function(e){e.preventDefault(),d.trigger("LaStudio:Component:Popup:Close")}).on("click",".btn-close-search",function(e){e.preventDefault(),D.removeClass("open-search-form")}).on("click",".btn-close-cart",function(e){e.preventDefault(),D.removeClass("open-cart-aside")}).on("click",".la-ajax-pagination .pagination_ajax_loadmore a",function(e){if(e.preventDefault(),A("body").hasClass("elementor-editor-active"))return!1;var o=A(this).closest(".la-ajax-pagination"),i=o.data("parent-container"),n=o.data("container"),s=o.data("item-selector"),l=!1;if(o.data("infinite-flag")&&(l=o.data("infinite-flag")),A("a.next",o).length){if(o.hasClass("doing-ajax"))return!1;o.addClass("doing-ajax"),A(i).addClass("doing-ajax");var t={url:A("a.next",o).attr("href"),type:"get",dataType:"html",success:function(e){var t,a=A(e).find(n+" "+s);A(n).hasClass("la-slick-slider")?(A(n).slick("slickAdd",a),A(n).slick("setPosition")):A(n).data("isotope")?(A(n).isotope("insert",a.addClass("showmenow")),"AdvancedMasonry"==A(n).data("la_component")?(LaStudio.global.eventManager.publish("LaStudio:AdvancedMasonry:calculatorItemWidth",[A(n),!1]),A(n).isotope("layout")):setTimeout(function(){A(n).isotope("layout")},500),A(n).trigger("LaStudio:Masonry:ajax_loadmore",[A(n)])):a.addClass("fadeIn animated").appendTo(A(n)),A("body").trigger("lastudio-fix-ios-limit-image-resource").trigger("lastudio-lazy-images-load").trigger("jetpack-lazy-images-load").trigger("lastudio-object-fit"),LaStudio.core.initAll(A(i)),A(i).removeClass("doing-ajax"),o.removeClass("doing-ajax la-ajax-load-first"),A(e).find(i+" .la-ajax-pagination").length?(t=A(e).find(i+" .la-ajax-pagination"),o.replaceWith(t),o=t):o.addClass("nothingtoshow"),!1!==l&&setTimeout(function(){LaStudio.core.InfiniteScroll(o)},2e3)}};A.ajax(t)}}).on("click",".la-ajax-pagination .page-numbers a",function(e){if(e.preventDefault(),A("body").hasClass("elementor-editor-active"))return!1;var t,a=A(this).closest(".la-ajax-pagination"),o=a.data("parent-container"),i=a.data("container"),n=a.data("item-selector");A(o).hasClass("doing-ajax")||(A(o).addClass("doing-ajax"),a.addClass("doing-ajax"),t=LaStudio.global.removeURLParameter(A(this).attr("href"),"_"),A.ajax({url:t,type:"get",dataType:"html",cache:!0,ajax_request_id:LaStudio.global.getUrlParameter(a.data("ajax_request_id"),t),success:function(e){var t=A(e).find(i+" "+n);A(i).hasClass("la-slick-slider")?(A(i).slick("unslick").removeData("initAutoCarousel"),t.appendTo(A(i).empty())):A(i).data("isotope")?(A(i).isotope("remove",A(i).isotope("getItemElements")),A(i).isotope("insert",t.addClass("showmenow")),"AdvancedMasonry"==A(i).data("la_component")?(LaStudio.global.eventManager.publish("LaStudio:AdvancedMasonry:calculatorItemWidth",[A(i),!1]),A(i).isotope("layout")):setTimeout(function(){A(i).isotope("layout")},500),A(i).trigger("LaStudio:Masonry:ajax_pagination",[A(i)])):(t.addClass("fadeIn animated"),t.appendTo(A(i).empty())),A("body").trigger("lastudio-fix-ios-limit-image-resource").trigger("lastudio-lazy-images-load").trigger("jetpack-lazy-images-load").trigger("lastudio-object-fit"),LaStudio.core.initAll(A(o)),A(o).removeClass("doing-ajax"),a.removeClass("doing-ajax"),A(e).find(o+" .la-ajax-pagination").length&&a.replaceWith(A(e).find(o+" .la-ajax-pagination"))}}))})},LaStudio.core.Blog=function(e){e=e||A(".sidebar-inner"),A(".menu li a:empty",e).each(function(){A(this).closest("li").remove()}),A(".widget_pages > ul, .widget_archive > ul, .widget_categories > ul, .widget_product_categories > ul, .widget_meta > ul",e).addClass("menu").closest(".widget").addClass("accordion-menu"),A(".widget_nav_menu",e).closest(".widget").addClass("accordion-menu"),A(".widget_categories > ul li.cat-parent,.widget_product_categories li.cat-parent",e).addClass("mm-item-has-sub"),A(".menu li > ul",e).each(function(){A(this).before('<span class="narrow"><i></i></span>')}),e.on("click",".accordion-menu li.menu-item-has-children > a,.menu li.mm-item-has-sub > a,.menu li > .narrow",function(e){e.preventDefault();var t=A(this).parent();t.hasClass("open")?(t.removeClass("open"),t.find(">ul").stop().slideUp()):(t.addClass("open"),t.find(">ul").stop().slideDown(),t.siblings().removeClass("open").find(">ul").stop().slideUp())})},LaStudio.core.SitePreload=function(){var e=document.getElementById("wpadminbar");e&&e.classList.add("wpbar"),T.on("load scroll",function(){T.scrollTop()>T.height()+100?A(".backtotop-container").addClass("show"):A(".backtotop-container").removeClass("show")}),d.on("click",".btn-backtotop",function(e){e.preventDefault(),a.animate({scrollTop:0},800)}),D.on("lastudio-fix-ios-limit-image-resource",function(){"matchMedia"in window&&window.matchMedia("(max-width: 1024px)").matches&&A("li.product_item.thumb-has-effect").each(function(){A(this).removeClass("thumb-has-effect"),A(this).find(".p_img-second").remove()})}).trigger("lastudio-fix-ios-limit-image-resource"),D.removeClass("site-loading"),T.on("beforeunload",function(e){"safari"!=LaStudio.global.getBrowseInformation().name&&window.self===window.top&&(void 0===window.hack_beforeunload_time||void 0!==window.hack_beforeunload_time&&1e3<e.timeStamp-window.hack_beforeunload_time)&&D.addClass("site-loading")}),d.on("click",'a[href^="tel:"], a[href^="mailto:"], a[href^="callto"], a[href^="skype"], a[href^="whatsapp"], a.mail-link',function(e){window.hack_beforeunload_time=parseInt(e.timeStamp)}),T.on("pageshow",function(e){e.originalEvent.persisted&&D.removeClass("site-loading")}),LaStudio.global.eventManager.subscribe("LaStudio:Component:LazyLoadImage",function(e,t){t.find('.la-lazyload-image:not([data-element-loaded="true"]), img[data-lazy-src]:not([data-element-loaded="true"]), img[data-lazy-original]:not([data-element-loaded="true"])').each(function(e,t){LaStudio.global.makeImageAsLoaded(t)})}),A("body").trigger("lastudio-fix-ios-limit-image-resource").trigger("lastudio-lazy-images-load").trigger("jetpack-lazy-images-load").trigger("lastudio-object-fit")},LaStudio.core.WooCommerceQuickView=function(){d.on("click",".la-quickview-button",function(e){var t;900<T.width()&&(e.preventDefault(),t=A(this),void 0!==A.featherlight.close()&&A.featherlight.close(),A.featherlight(t.data("href"),{openSpeed:0,closeSpeed:0,type:{wc_quickview:!0},background:'<div class="featherlight featherlight-loading is--qvpp"><div class="featherlight-outer"><button class="featherlight-close-icon featherlight-close" aria-label="Close"><i class="lastudioicon-e-remove"></i></button><div class="featherlight-content"><div class="featherlight-inner"><div class="la-loader spinner3"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div><div class="cube1"></div><div class="cube2"></div><div class="cube3"></div><div class="cube4"></div></div></div></div></div><div class="custom-featherlight-overlay"></div></div>',contentFilters:["wc_quickview"],ajaxSetup:{cache:!0,ajax_request_id:LaStudio.global.getUrlParameter("product_quickview",t.data("href"))},beforeOpen:function(e){D.addClass("open-quickview-product")},afterOpen:function(e){var t=A(".la-woo-product-gallery",this.$content);t.length&&A.fn.lastudio_product_gallery&&(D.addClass("lightcase--pending"),t.lastudio_product_gallery())},afterClose:function(e){D.removeClass("open-quickview-product lightcase--completed lightcase--pending")}}))})},LaStudio.core.WooCommerce=function(){A(".la-woo-product-gallery").each(function(){A(this).lastudio_product_gallery()}),A(".variations_form").trigger("wc_variation_form"),d.on("click",".product_item .la-swatch-control .swatch-wrapper",function(e){e.preventDefault();var t,a=A(this),o=a.closest(".product_item").find(".p_img-first img").first(),i=a.closest(".product_item").find(".la-addcart");a.hasClass("selected")||(a.addClass("selected").siblings().removeClass("selected"),o.hasClass("--has-changed")||o.attr("data-o-src",o.attr("src")).attr("data-o-sizes",o.attr("sizes")).attr("data-o-srcset",o.attr("srcset")).addClass("--has-changed"),o.attr("src",a.attr("data-thumb")?a.attr("data-thumb"):o.attr("data-o-src")).removeAttr("sizes srcset"),0<i.length&&(t=i.attr("href"),t=LaStudio.global.addQueryArg(t,"attribute_"+a.attr("data-attribute"),a.attr("data-value")),i.attr("href",t)))});var t=null;A(document.body).on("wc_fragments_refreshed updated_wc_div wc_fragments_loaded",function(e){clearTimeout(t),t=setTimeout(function(){LaStudio.global.eventManager.publish("LaStudio:Component:LazyLoadImage",[A(".widget_shopping_cart_content")])},100)}),d.on("click",".la_com_action--cart",function(e){(A(this).hasClass("force-display-on-mobile")||767<T.width())&&(e.preventDefault(),D.toggleClass("open-cart-aside"))}),d.on("click",".quantity .qty-minus",function(e){e.preventDefault();var t=A(this).siblings(".qty"),a=parseInt(t.val());t.val(1<a?a-1:1).trigger("change")}),d.on("click",".quantity .qty-plus",function(e){e.preventDefault();var t=A(this).siblings(".qty"),a=parseInt(t.val());t.val(0<a?a+1:1).trigger("change")}),d.on("click",".wc-view-item a",function(){var e,t=A(this),a=t.data("col"),o=t.closest(".woocommerce");t.hasClass("active")||(A(".wc-view-item a").removeClass("active"),t.addClass("active"),t.closest(".wc-view-item").find(">button>span").html(t.text()),o.find("ul.products[data-grid_layout]").each(function(){A(this).removeClass("products-list").addClass("products-grid");var e=A(this).attr("class").replace(/(\sblock-grid-\d)/g," block-grid-"+a).replace(/(\slaptop-block-grid-\d)/g," laptop-block-grid-"+a);A(this).attr("class",e)}),o.closest(".elementor-widget-wc-archive-products").length&&(e=o.attr("class").replace(/(\scolumns-\d)/g," columns-"+a),o.attr("class",e)),Cookies.set("lauriel_wc_product_per_row",a,{expires:2}))}).on("click",".wc-view-toggle button",function(){var e,t,a=A(this),o=a.data("view_mode"),i=a.closest(".woocommerce");a.hasClass("active")||(A(".wc-view-toggle button").removeClass("active"),a.addClass("active"),t=(e=i.find("ul.products[data-grid_layout]")).attr("data-grid_layout"),"grid"==o?e.removeClass("products-list").addClass("products-grid").addClass(t):e.removeClass("products-grid").addClass("products-list").removeClass(t),Cookies.set("lauriel_wc_catalog_view_mode",o,{expires:2}))}).on("mouseover",".lasf-custom-dropdown",function(e){A(this).addClass("is-hover")}).on("mouseleave",".lasf-custom-dropdown",function(e){A(this).removeClass("is-hover")}),d.on("adding_to_cart",function(e,t,a){t&&t.closest(".la_wishlist_table").length&&(a.la_remove_from_wishlist_after_add_to_cart=a.product_id),D.removeClass("open-search-form").addClass("open-cart-aside"),A(".cart-flyout").addClass("cart-flyout--loading"),A("i.cart-i_icon").each(function(){var e=A(this).data("icon");A(this).removeClass(e).addClass("la-loading-spin")})}),d.on("added_to_cart",function(e,t,a,o){A(".cart-flyout").removeClass("cart-flyout--loading"),A("i.cart-i_icon").each(function(){A(this).removeClass("la-loading-spin").addClass(A(this).data("icon"))})}),la_theme_config.single_ajax_add_cart&&d.on("submit",".la-p-single-wrap:not(.product-type-external) .entry-summary form.cart",function(e){e.preventDefault(),d.trigger("adding_to_cart");var t=A(this),a=t.attr("action")||window.location.href,o=LaStudio.global.addQueryArg(a,"product_quickview","1");A.post(o,t.serialize()+"&_wp_http_referer="+a,function(e){(A(e).eq(0).hasClass("woocommerce-message")||A(e).eq(0).hasClass("woocommerce-error"))&&(A(".woocommerce-message, .woocommerce-error").remove(),A(".la-p-single-wrap.type-product").eq(0).before(A(e).eq(0))),d.trigger("LaStudio:Component:Popup:Close"),A.ajax({url:woocommerce_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",success:function(e){e&&e.fragments&&(A.each(e.fragments,function(e,t){A(e).replaceWith(t)}),A(document.body).trigger("wc_fragments_refreshed"),A(".cart-flyout").removeClass("cart-flyout--loading"),A("i.cart-i_icon").each(function(){A(this).removeClass("la-loading-spin").addClass(A(this).data("icon"))}))}})})}),A(".la-p-single-wrap .s_product_content_top > .product--summary .product-nextprev").length&&A(".la-p-single-wrap .s_product_content_top > .product--summary .product-nextprev").clone().prependTo(A(".la-p-single-wrap .s_product_content_top >.product-main-image")),A(".la-p-single-wrap.la-p-single-3 .la-custom-pright,.la-p-single-wrap.la-p-single-4 .la-custom-pright").la_sticky({parent:A(".la-single-product-page"),offset_top:o.length?parseInt(o.height())+30:30}),A(".la-p-single-wrap.la-p-single-3 .woocommerce-product-gallery__actions, .la-p-single-wrap.la-p-single-4 .woocommerce-product-gallery__actions").la_sticky({parent:A(".la-woo-product-gallery"),offset_top:T.height()-150}),"#register"==location.hash&&A("#customer_login .u-column2.col-2").length?A("#customer_login .u-column2.col-2").addClass("active"):A("#customer_login .u-column1.col-1").addClass("active"),d.on("click","#customer_login h2",function(e){e.preventDefault(),A(this).parent().toggleClass("active").siblings("div").removeClass("active")}),A(".woocommerce-tabs .wc-tab-title a").on("click",function(e){e.preventDefault();var t=A(this),a=t.closest(".woocommerce-tabs").find(".wc-tabs"),o=t.closest(".wc-tab");a.find('a[href="'+t.attr("href")+'"]').parent().toggleClass("active").siblings().removeClass("active"),o.toggleClass("active").siblings().removeClass("active")}),A(".woocommerce-Tabs-panel--description").addClass("active")},LaStudio.core.WooCommerceWishlist=function(){function i(){var a=A("table.wishlist_table");a.addClass("shop_table_responsive"),a.find("thead th").each(function(){var e=A(this),t=e.text().trim();""!=t&&A("td."+e.attr("class"),a).attr("data-title",t)})}i(),D.on("removed_from_wishlist",function(e){i()}),d.on("added_to_cart",function(e,t,a,o){setTimeout(i,800)}),d.on("click",".product a.add_wishlist.la-yith-wishlist",function(e){if(!A(this).hasClass("added")){e.preventDefault();var t,a,o,i,n=A(this),s=n.data("product_id"),l=n.closest(".product").find(".product_item--thumbnail img:eq(0)"),r="Product",d={add_to_wishlist:s,product_type:n.data("product-type"),action:yith_wcwl_l10n.actions.add_to_wishlist_action};n.data("product_title")&&(r=n.data("product_title")),n.closest(".product--summary").length&&(l=n.closest(".product").find(".woocommerce-product-gallery__image img:eq(0)"));try{if(yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in&&(a=(t=n.parents(".yith-wcwl-popup-footer").prev(".yith-wcwl-popup-content")).find(".wishlist-select"),o=t.find(".wishlist-name"),i=t.find(".wishlist-visibility"),d.wishlist_id=a.val(),d.wishlist_name=o.val(),d.wishlist_visibility=i.val()),!LaStudio.global.isCookieEnable())return void alert(yith_wcwl_l10n.labels.cookie_disabled);A.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:d,dataType:"json",beforeSend:function(){n.addClass("loading")},complete:function(){n.removeClass("loading").addClass("added")},success:function(i){A("#yith-wcwl-popup-message");var e,t=i.result,a=i.message;yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.is_user_logged_in&&(e=A("select.wishlist-select"),void 0!==A.prettyPhoto&&A.prettyPhoto.close(),e.each(function(e){var t=A(this),a=t.find("option");if((a=a.slice(1,a.length-1)).remove(),void 0!==i.user_wishlists){var o=0;for(o in i.user_wishlists)"1"!=i.user_wishlists[o].is_default&&A("<option>").val(i.user_wishlists[o].ID).html(i.user_wishlists[o].wishlist_name).insertBefore(t.find("option:last-child"))}}));var o='<div class="popup-added-msg">';"true"==t?(l.length&&(o+=A("<div>").append(l.clone()).html()),o+='<div class="popup-message"><strong class="text-color-heading">'+r+" </strong>"+la_theme_config.i18n.wishlist.success+"</div>"):o+='<div class="popup-message">'+a+"</div>",o+='<a class="button view-popup-wishlish" rel="nofollow" href="'+i.wishlist_url.replace("/view","")+'">'+la_theme_config.i18n.wishlist.view+"</a>",o+='<a class="button popup-button-continue" rel="nofollow" href="#">'+la_theme_config.i18n.global.continue_shopping+"</a>",o+="</div>",LaStudio.global.ShowMessageBox(o,"open-wishlist-msg open-custom-msg"),n.attr("href",i.wishlist_url),A('.add_wishlist[data-product_id="'+n.data("product_id")+'"]').addClass("added"),D.trigger("added_to_wishlist")}})}catch(e){console.log(e)}}}),d.on("click",".product a.add_wishlist.la-ti-wishlist",function(e){e.preventDefault(),(A(this).closest(".entry-summary").length?A(this).closest(".entry-summary").find("form.cart .tinvwl_add_to_wishlist_button"):A(this).closest(".product").find(".tinvwl_add_to_wishlist_button")).trigger("click")}),d.on("click",".product a.add_wishlist.la-core-wishlist",function(e){var a,t,o,i,n;A(this).hasClass("added")||(e.preventDefault(),t=(a=A(this)).data("product_id"),o=a.closest(".product").find(".product_item--thumbnail img:eq(0)"),i="Product",n={action:"la_helpers_wishlist",security:la_theme_config.security.wishlist_nonce,post_id:t,type:"add"},a.data("product_title")&&(i=a.data("product_title")),a.closest(".product--summary").length&&(o=a.closest(".product").find(".woocommerce-product-gallery__image img:eq(0)")),A.ajax({type:"POST",url:la_theme_config.ajax_url,data:n,dataType:"json",beforeSend:function(){a.addClass("loading")},complete:function(){a.removeClass("loading").addClass("added")},success:function(e){var t='<div class="popup-added-msg">';e.success?(o.length&&(t+=A("<div>").append(o.clone()).html()),t+='<div class="popup-message"><strong class="text-color-heading">'+i+" </strong>"+la_theme_config.i18n.wishlist.success+"</div>"):t+='<div class="popup-message">'+e.data.message+"</div>",t+='<a class="button view-popup-wishlish" rel="nofollow" href="'+e.data.wishlist_url+'">'+la_theme_config.i18n.wishlist.view+"</a>",t+='<a class="button popup-button-continue" rel="nofollow" href="#">'+la_theme_config.i18n.global.continue_shopping+"</a>",t+="</div>",LaStudio.global.ShowMessageBox(t,"open-wishlist-msg open-custom-msg"),A(".la-wishlist-count").html(e.data.count),A('.add_wishlist[data-product_id="'+a.data("product_id")+'"]').addClass("added").attr("href",e.data.wishlist_url)}}))}).on("click",".la_wishlist_table a.la_remove_from_wishlist",function(e){e.preventDefault();var t=A("#la_wishlist_table_wrapper");void 0!==A.fn.block&&t.block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),t.load(e.target.href+" #la_wishlist_table_wrapper2",function(){void 0!==A.fn.unblock&&t.stop(!0).css("opacity","1").unblock()})}),d.on("adding_to_cart",function(e,t,a){t&&t.closest(".la_wishlist_table").length&&(a.la_remove_from_wishlist_after_add_to_cart=a.product_id)}).on("added_to_cart",function(e,t,a,o){var i;o&&o.closest(".la_wishlist_table").length&&(i=A("#la_wishlist_table_wrapper"),o.closest("tr").remove(),i.load(window.location.href+" #la_wishlist_table_wrapper2"))})},LaStudio.core.WooCommerceCompare=function(){d.on("click","table.compare-list .remove a",function(e){e.preventDefault(),A('.add_compare[data-product_id="'+A(this).data("product_id")+'"]',window.parent.document).removeClass("added")}).on("click",".la_com_action--compare",function(e){"undefined"!=typeof yith_woocompare&&(e.preventDefault(),d.trigger("LaStudio:Component:Popup:Close"),D.trigger("yith_woocompare_open_popup",{response:LaStudio.global.addQueryArg(LaStudio.global.addQueryArg("","action",yith_woocompare.actionview),"iframe","true")}))}).on("click",".product a.add_compare:not(.la-core-compare)",function(e){var a,o,i,t,n;e.preventDefault(),A(this).hasClass("added")?D.trigger("yith_woocompare_open_popup",{response:LaStudio.global.addQueryArg(LaStudio.global.addQueryArg("","action",yith_woocompare.actionview),"iframe","true")}):(a=A(this),o=A(".yith-woocompare-widget ul.products-list"),i=a.closest(".product").find(".product_item--thumbnail img:eq(0)"),t={action:yith_woocompare.actionadd,id:a.data("product_id"),context:"frontend"},n="Product",a.data("product_title")&&(n=a.data("product_title")),a.closest(".product--summary").length&&(i=a.closest(".product").find(".woocommerce-product-gallery__image img:eq(0)")),A.ajax({type:"post",url:yith_woocompare.ajaxurl.toString().replace("%%endpoint%%",yith_woocompare.actionadd),data:t,dataType:"json",beforeSend:function(){a.addClass("loading")},complete:function(){a.removeClass("loading").addClass("added")},success:function(e){A.isFunction(A.fn.block)&&o.unblock();var t='<div class="popup-added-msg">';i.length&&(t+=A("<div>").append(i.clone()).html()),t+='<div class="popup-message"><strong class="text-color-heading">'+n+" </strong>"+la_theme_config.i18n.compare.success+"</div>",t+='<a class="button la_com_action--compare" rel="nofollow" href="'+e.table_url+'">'+la_theme_config.i18n.compare.view+"</a>",t+='<a class="button popup-button-continue" href="#" rel="nofollow">'+la_theme_config.i18n.global.continue_shopping+"</a>",t+="</div>",LaStudio.global.ShowMessageBox(t,"open-compare-msg open-custom-msg"),A('.add_compare[data-product_id="'+a.data("product_id")+'"]').addClass("added"),o.unblock().html(e.widget_table)}}))}),d.on("LaStudio.WooCommerceCompare.FixHeight",".la-compare-table-items",function(e){A("th",A(this)).each(function(e){A(".la-compare-table-heading th").eq(e).css("height",A(this).outerHeight())})}),A(".la-compare-table-items").trigger("LaStudio.WooCommerceCompare.FixHeight"),d.on("click",".product a.add_compare.la-core-compare",function(e){var a,t,o,i,n;A(this).hasClass("added")||(e.preventDefault(),t=(a=A(this)).data("product_id"),o=a.closest(".product").find(".product_item--thumbnail img:eq(0)"),i="Product",n={action:"la_helpers_compare",security:la_theme_config.security.compare_nonce,post_id:t,type:"add"},a.data("product_title")&&(i=a.data("product_title")),a.closest(".product--summary").length&&(o=a.closest(".product").find(".woocommerce-product-gallery__image img:eq(0)")),A.ajax({type:"POST",url:la_theme_config.ajax_url,data:n,dataType:"json",beforeSend:function(){a.addClass("loading")},complete:function(){a.removeClass("loading").addClass("added")},success:function(e){var t='<div class="popup-added-msg">';e.success?(o.length&&(t+=A("<div>").append(o.clone()).html()),t+='<div class="popup-message"><strong class="text-color-heading">'+i+" </strong>"+la_theme_config.i18n.compare.success+"</div>"):t+='<div class="popup-message">'+e.data.message+"</div>",t+='<a class="button view-popup-compare" rel="nofollow" href="'+e.data.compare_url+'">'+la_theme_config.i18n.compare.view+"</a>",t+='<a class="button popup-button-continue" rel="nofollow" href="#">'+la_theme_config.i18n.global.continue_shopping+"</a>",t+="</div>",LaStudio.global.ShowMessageBox(t,"open-compare-msg open-custom-msg"),A(".la-compare-count").html(e.data.count),A('.add_compare[data-product_id="'+a.data("product_id")+'"]').addClass("added").attr("href",e.data.compare_url)}}))}).on("click",".la_remove_from_compare",function(e){e.preventDefault();var t=A("#la_compare_table_wrapper");void 0!==A.fn.block&&t.block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),console.log(e.target.href),t.load(e.target.href+" #la_compare_table_wrapper2",function(){void 0!==A.fn.unblock&&(t.stop(!0).css("opacity","1").unblock(),setTimeout(function(){A(".la-compare-table-items").trigger("LaStudio.WooCommerceCompare.FixHeight")},300))})})},LaStudio.core.AjaxShopFilter=function(){var s;0==A("#la_shop_products").length||A("#la_shop_products.deactive-filters").length||(A("li.current-cat, li.current-cat-parent",A("#sidebar_primary")).each(function(){A(this).addClass("open"),A(">ul",A(this)).css("display","block")}),s=[".wc-toolbar-top",".la-advanced-product-filters .sidebar-inner",".wc_page_description"],A("#la_shop_products").hasClass("elementor-widget")?(s.push("ul.ul_products"),s.push(".la-pagination")):s.push("#la_shop_products"),LaStudio.global.eventManager.subscribe("LaStudio:AjaxShopFilter",function(e,i,n){var t;0<A(".wc-toolbar-container").length&&(t=A(".wc-toolbar-container").offset().top-200,a.stop().animate({scrollTop:t},800)),"?"==i.slice(-1)&&(i=i.slice(0,-1)),i=i.replace(/%2C/g,","),i=LaStudio.global.removeURLParameter(i,"la_doing_ajax");try{history.pushState(null,null,i)}catch(e){}LaStudio.global.eventManager.publish("LaStudio:AjaxShopFilter:before_send",[i,n]),LaStudio.utils.ajax_xhr&&LaStudio.utils.ajax_xhr.abort(),i=LaStudio.global.addQueryArg(i,"la_doing_ajax","true"),LaStudio.utils.ajax_xhr=A.get(i,function(e){for(var t=0;t<s.length;t++)A(s[t]).length&&(".la-advanced-product-filters .sidebar-inner"==s[t]?A(e).find(s[t]).length&&(A(s[t]).replaceWith(A(e).find(s[t])),LaStudio.core.Blog(A(s[t])),A("li.current-cat, li.current-cat-parent",A(s[t])).each(function(){A(this).addClass("open"),A(">ul",A(this)).css("display","block")})):A(s[t]).replaceWith(A(e).find(s[t])));A("#sidebar_primary").length&&A(e).find("#sidebar_primary").length&&(A("#sidebar_primary").replaceWith(A(e).find("#sidebar_primary")),LaStudio.core.Blog(A("#sidebar_primary")),A("li.current-cat, li.current-cat-parent",A("#sidebar_primary")).each(function(){A(this).addClass("open"),A(">ul",A(this)).css("display","block")})),A("#section_page_header").length&&A(e).find("#section_page_header").length&&A("#section_page_header").replaceWith(A(e).find("#section_page_header"));try{var a=Cookies.get("lauriel_wc_catalog_view_mode");A('.wc-toolbar .wc-view-toggle button[data-view_mode="'+a+'"]').trigger("click");var o=Cookies.get("lauriel_wc_product_per_row");A('.wc-toolbar .wc-view-item a[data-col="'+o+'"]').trigger("click")}catch(e){}A("body").trigger("lastudio-fix-ios-limit-image-resource"),A(".la-ajax-shop-loading").removeClass("loading"),LaStudio.global.eventManager.publish("LaStudio:AjaxShopFilter:success",[e,i,n])},"html")}),LaStudio.global.eventManager.subscribe("LaStudio:AjaxShopFilter:success",function(e,t,a,o){var i,n,s,l;A(".widget.woocommerce.widget_price_filter").length&&"undefined"!=typeof woocommerce_price_slider_params&&(A("input#min_price, input#max_price").hide(),A(".price_slider, .price_label").show(),i=A(".price_slider_amount #min_price").data("min"),n=A(".price_slider_amount #max_price").data("max"),s=A(".price_slider_amount #min_price").val(),l=A(".price_slider_amount #max_price").val(),A(".price_slider:not(.ui-slider)").slider({range:!0,animate:!0,min:i,max:n,values:[s,l],create:function(){A(".price_slider_amount #min_price").val(s),A(".price_slider_amount #max_price").val(l),A(document.body).trigger("price_slider_create",[s,l])},slide:function(e,t){A("input#min_price").val(t.values[0]),A("input#max_price").val(t.values[1]),A(document.body).trigger("price_slider_slide",[t.values[0],t.values[1]])},change:function(e,t){A(document.body).trigger("price_slider_change",[t.values[0],t.values[1]])}})),D.hasClass("open-advanced-shop-filter")&&(D.removeClass("open-advanced-shop-filter"),A(".la-advanced-product-filters").stop().slideUp("fast"));var r=LaStudio.global.getUrlParameter("pwb-brand-filter",location.href);null!==r&&""!==r&&(A('.pwb-filter-products input[type="checkbox"]').prop("checked",!1),r.split(",").filter(function(e){A('.pwb-filter-products input[type="checkbox"][value="'+e+'"]').prop("checked",!0)})),A("body").trigger("lastudio-fix-ios-limit-image-resource").trigger("lastudio-lazy-images-load").trigger("jetpack-lazy-images-load").trigger("lastudio-object-fit"),LaStudio.core.initAll(d)}),d.on("click",".btn-advanced-shop-filter",function(e){e.preventDefault(),D.toggleClass("open-advanced-shop-filter"),A(".la-advanced-product-filters").stop().animate({height:"toggle"})}).on("click",".la-advanced-product-filters .close-advanced-product-filters",function(e){e.preventDefault(),A(".btn-advanced-shop-filter").trigger("click")}).on("click","#la_shop_products .la-pagination:not(.la-ajax-pagination) a, .la-advanced-product-filters-result a",function(e){e.preventDefault(),A(".la-ajax-shop-loading").addClass("loading"),LaStudio.global.eventManager.publish("LaStudio:AjaxShopFilter",[A(this).attr("href"),A(this)])}).on("click",".woo-widget-filter a, .wc-ordering a, .wc-view-count a, .woocommerce.product-sort-by a, .woocommerce.la-price-filter-list a, .woocommerce.widget_layered_nav a, .woocommerce.widget_product_tag_cloud li a, .woocommerce.widget_product_categories a",function(e){e.preventDefault(),A(".la-ajax-shop-loading").addClass("loading"),A(this).closest(".widget_layered_nav").length?A(this).parent().addClass("active"):A(this).parent().addClass("active").siblings().removeClass("active"),A(".lasf-custom-dropdown").removeClass("is-hover");var t=A(this).attr("href"),a=LaStudio.global.getUrlParameter("la_preset");!LaStudio.global.getUrlParameter("la_preset",t)&&a&&(t=LaStudio.global.addQueryArg(t,"la_preset",a)),LaStudio.global.eventManager.publish("LaStudio:AjaxShopFilter",[t,A(this)])}).on("click",".woocommerce.widget_product_tag_cloud:not(.la_product_tag_cloud) a",function(e){e.preventDefault(),A(".la-ajax-shop-loading").addClass("loading"),A(this).addClass("active").siblings().removeClass("active");var t=A(this).attr("href"),a=LaStudio.global.getUrlParameter("la_preset");!LaStudio.global.getUrlParameter("la_preset",t)&&a&&(t=LaStudio.global.addQueryArg(t,"la_preset",a)),LaStudio.global.eventManager.publish("LaStudio:AjaxShopFilter",[t,A(this)])}).on("click",".woocommerce.widget_layered_nav_filters a",function(e){e.preventDefault(),A(".la-ajax-shop-loading").addClass("loading"),LaStudio.global.eventManager.publish("LaStudio:AjaxShopFilter",[A(this).attr("href"),A(this)])}).on("submit",".widget_price_filter form, .woocommerce-widget-layered-nav form",function(e){e.preventDefault();var t=A(this),a=t.attr("action")+"?"+t.serialize();A(".la-ajax-shop-loading").addClass("loading"),LaStudio.global.eventManager.publish("LaStudio:AjaxShopFilter",[a,t])}).on("change",".woocommerce-widget-layered-nav form select",function(e){e.preventDefault();var t=A(this).val(),a=A(this).attr("class").split("dropdown_layered_nav_")[1];A(':input[name="filter_'+a+'"]').val(t),A(this).attr("multiple")||A(this).closest("form").submit()}).on("change",".widget_pwb_dropdown_widget .pwb-dropdown-widget",function(e){e.preventDefault();var t=A(this),a=A(this).val();A(".la-ajax-shop-loading").addClass("loading"),LaStudio.global.eventManager.publish("LaStudio:AjaxShopFilter",[a,t])}).on("click",".widget_pwb_filter_by_brand_widget .pwb-filter-products button",function(e){e.preventDefault();var t=A(this).closest(".pwb-filter-products"),a=t.data("cat-url"),o=[];t.find('input[type="checkbox"]:checked').each(function(){o.push(A(this).val())}),0<o.length&&(a=LaStudio.global.addQueryArg(a,"pwb-brand-filter",o.join(","))),A(".la-ajax-shop-loading").addClass("loading"),LaStudio.global.eventManager.publish("LaStudio:AjaxShopFilter",[a,t])}).on("change",".widget_pwb_filter_by_brand_widget .pwb-filter-products.pwb-hide-submit-btn input",function(e){e.preventDefault();var t=A(this).closest(".pwb-filter-products"),a=t.data("cat-url"),o=[];t.find('input[type="checkbox"]:checked').each(function(){o.push(A(this).val())}),0<o.length&&(a=LaStudio.global.addQueryArg(a,"pwb-brand-filter",o.join(","))),A(".la-ajax-shop-loading").addClass("loading"),LaStudio.global.eventManager.publish("LaStudio:AjaxShopFilter",[a,t])}),A(".widget_pwb_dropdown_widget .pwb-dropdown-widget").off("change"),A(".widget_pwb_filter_by_brand_widget .pwb-filter-products button").off("click"),A(".widget_pwb_filter_by_brand_widget .pwb-filter-products.pwb-hide-submit-btn input").off("change"))},LaStudio.core.OnLoadEvent=function(){D.removeClass("site-loading").addClass("body-loaded"),LaStudio.core.HeaderSticky(),A(".slick-slider").on("beforeChange afterChange",function(e,t,a,o){LaStudio.global.eventManager.publish("LaStudio:Component:LazyLoadImage",[A(this)])}),A(".force-active-object-fit").each(function(){D.trigger("lastudo-prepare-object-fit",[A(this)])}),A("#footer").length&&document.documentElement.style.setProperty("--footer-height",A("#footer").innerHeight()+"px")},LaStudio.core.CustomCursor=function(){D.append('<div class="cursor"><div class="cursor__wr"><div class="cursor__inner-wr cursor-default"></div></div></div>');var t=A(".cursor");T.on("mousemove",function(e){t.css({top:e.clientY-t.height()/2,left:e.clientX-t.width()/2})}).on("mouseleave",function(){t.css({opacity:"0"})}).on("mouseenter",function(){t.css({opacity:"1"})}).on("mousedown",function(){t.addClass("-enter")}).on("mouseup",function(){t.removeClass("-enter")}),A('a, button, input[type="button"], input[type="reset"], input[type="submit"]').on("mouseenter",function(){t.addClass("-active")}).on("mouseleave",function(){t.removeClass("-active")})},LaStudio.core.CustomFunction=function(){A('.entry div.gallery[class*="galleryid-"], .wp-block-gallery').each(function(){var e=LaStudio.global.getRandomID();A(this).find("a").addClass("la-popup").attr("data-elementor-lightbox-slideshow",e)})},LaStudio.core.OpenNewsletterPopup=function(a,t){var o="open-newsletter-popup";A.featherlight(a,{persist:"shared",type:"jquery",background:'<div class="featherlight featherlight-loading"><div class="featherlight-outer"><button class="featherlight-close-icon featherlight-close" aria-label="Close"><i class="lastudioicon-e-remove"></i></button><div class="featherlight-content"><div class="featherlight-inner"><div class="la-loader spinner3"><div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div><div class="cube1"></div><div class="cube2"></div><div class="cube3"></div><div class="cube4"></div></div></div></div></div><div class="custom-featherlight-overlay"></div></div>',beforeClose:function(e){var t="#__tmp__"+a.attr("id");a.insertBefore(A(t)),A(t).remove()},beforeOpen:function(){var e="__tmp__"+a.attr("id");A('<div id="'+e+'" class="featherlight__placeholder"></div>').insertBefore(a),D.addClass(o)},afterOpen:function(e){LaStudio.core.initAll(A(".featherlight-content"))},afterClose:function(e){"function"==typeof t&&t(),D.removeClass(o)}})},LaStudio.component.NewsletterPopup=function(e){var t=A(e),a=parseInt(t.attr("data-show-mobile")||0),o=parseInt(t.attr("data-delay")||2e3),i=parseInt(t.attr("data-back-time")||1),n=parseInt(t.attr("data-waitfortrigger")||0);return 1==n&&A(document).on("click touchend",".elm-trigger-open-newsletter",function(e){e.preventDefault(),LaStudio.core.OpenNewsletterPopup(t)}),{init:function(){if(1!=n){if(A(window).width()<767&&a)return;try{if("yes"==Cookies.get("lauriel_dont_display_popup"))return}catch(e){console.log(e)}A(window).load(function(){setTimeout(function(){LaStudio.core.OpenNewsletterPopup(t,function(){if(A(".cbo-dont-show-popup",t).length&&A(".cbo-dont-show-popup",t).is(":checked"))try{Cookies.set("lauriel_dont_display_popup","yes",{expires:i,path:"/"})}catch(e){}})},o)})}}}}}(jQuery),function(e){"use strict";e(function(){LaStudio.global.setBrowserInformation(),e(document).trigger("LaStudio:Document:BeforeRunScript"),LaStudio.core.SitePreload(),LaStudio.core.MegaMenu(),LaStudio.core.CustomCursor(),e(".la-ajax-searchform").each(function(){LaStudio.core.InstanceSearch(e(this))}),LaStudio.core.initAll(e(document)),LaStudio.core.ElementClickEvent(),LaStudio.core.Blog(),LaStudio.core.WooCommerce(),LaStudio.core.WooCommerceQuickView(),LaStudio.core.WooCommerceWishlist(),LaStudio.core.WooCommerceCompare(),LaStudio.core.AjaxShopFilter(),LaStudio.core.CustomFunction()}),window.addEventListener("load",LaStudio.core.OnLoadEvent)}(jQuery);
!function(i){"use strict";var r=window.LaStudio||{};r.component=window.LaStudio.component||{};var t=i(document),c=i(window),d=i("body");function a(){var l=i("#lastudio-header-builder"),e=i(".lahb-element--placeholder",l),a=i(".lahb-element--placeholder2",l);i(".lahb-vcom",l).length&&(i("<div/>",{class:"lahb-screen-view lahb-desktop-view lahb-varea"}).appendTo(l),i(".lahb-vcom",l).appendTo(i(".lahb-varea"))),i(".lahb-varea .lahb-vertical .lahb-content-wrap").append('<div class="lahb-voverlay"></div>'),e.each(function(){var e=i(this).data("element-id"),a=i('.lahb-element[data-element-id="'+e+'"]:not(.lahb-element--placeholder)',l).first().clone();a.removeAttr("itemscope").removeAttr("itemtype"),a.find(".la-ajax-searchform").removeClass("has-init"),a.find(".lahb-element--dontcopy").remove(),i(this).closest(".lahb-mobiles-view").length&&a.hasClass("lahb-nav-wrap")&&i('.lahb-element.lahb-element--placeholder2[data-element2-id="'+e+'"]',l).length?i(this).remove():i(this).replaceWith(a)}),a.each(function(){var e=i(this).data("element2-id"),a=i('.lahb-element[data-element2-id="'+e+'"]:not(.lahb-element--placeholder2)',l).first().clone();i(this).replaceWith(a)})}i(document).on("LaStudio:Document:BeforeRunScript",function(e){a()});var e={init:function(){var a=i("#lastudio-header-builder");i(".menu li.current-menu-item, .menu li.current_page_item, #side-nav li.current_page_item, .menu li.current-menu-ancestor, .menu li ul li ul li.current-menu-item , .hamburger-nav li.current-menu-item, .hamburger-nav li.current_page_item, .hamburger-nav li.current-menu-ancestor, .hamburger-nav li ul li ul li.current-menu-item, .full-menu li.current-menu-item, .full-menu li.current_page_item, .full-menu li.current-menu-ancestor, .full-menu li ul li ul li.current-menu-item ").addClass("current"),i(".menu li ul li:has(ul)").addClass("submenu");var e=i(".header-social-modal-wrap").html();i(".header-social-modal-wrap").remove(),i(".main-slide-toggle").append(e);var l=i(".header-search-modal-wrap").html();i(".header-search-modal-wrap").remove(),i(".main-slide-toggle").append(l);var n=i(".header-search-full-wrap").first();n.length&&(i(".searchform-fly > p").replaceWith(n.find(".searchform-fly-text")),i(".searchform-fly > .search-form").replaceWith(n.find(".search-form")),i(".header-search-full-wrap").remove(),i(".searchform-fly-overlay").removeClass("has-init")),i(".la-hamburger-wrap").each(function(){i(this).appendTo(d)}),i(".lahb-social .js-social_trigger_dropdown").on("click",function(e){e.preventDefault(),i(this).siblings(".header-social-dropdown-wrap").fadeToggle("fast")}),i(".header-social-dropdown-wrap a").on("click",function(e){i(".header-social-dropdown-wrap").css({display:"none"})}),i(".lahb-social .js-social_trigger_slide").on("click",function(e){e.preventDefault(),a.find(".la-header-social").hasClass("opened")?(a.find(".main-slide-toggle").slideUp("opened"),a.find(".la-header-social").removeClass("opened")):(a.find(".main-slide-toggle").slideDown(240),a.find("#header-search-modal").slideUp(240),a.find("#header-social-modal").slideDown(240),a.find(".la-header-social").addClass("opened"),a.find(".la-header-search").removeClass("opened"))}),t.on("click",function(e){i(e.target).hasClass("js-social_trigger_slide")||a.find(".la-header-social").hasClass("opened")&&(a.find(".main-slide-toggle").slideUp("opened"),a.find(".la-header-social").removeClass("opened"))}),i(".lahb-cart > a").on("click",function(e){(i(this).closest(".lahb-cart").hasClass("force-display-on-mobile")||767<c.width())&&(e.preventDefault(),i("body").toggleClass("open-cart-aside"))}),i(".lahb-search.lahb-header-full > a").on("click",function(e){e.preventDefault(),i("body").addClass("open-search-form"),setTimeout(function(){i(".searchform-fly .search-field").focus()},600)}),i(".lahb-search .js-search_trigger_slide").on("click",function(e){a.find(".la-header-search").hasClass("opened")?(a.find(".main-slide-toggle").slideUp("opened"),a.find(".la-header-search").removeClass("opened")):(a.find(".main-slide-toggle").slideDown(240),a.find("#header-social-modal").slideUp(240),a.find("#header-search-modal").slideDown(240),a.find(".la-header-search").addClass("opened"),a.find(".la-header-social").removeClass("opened"),a.find("#header-search-modal .search-field").focus())}),t.on("click",function(e){i(e.target).hasClass("js-search_trigger_slide")||i(e.target).closest(".js-search_trigger_slide").length||i(".lahb-search .js-search_trigger_slide").length&&a.find(".la-header-search").hasClass("opened")&&(a.find(".main-slide-toggle").slideUp("opened"),a.find(".la-header-search").removeClass("opened"))}),i.fn.niceSelect&&i(".la-polylang-switcher-dropdown select").niceSelect(),i.fn.superfish&&i(".lahb-area:not(.lahb-vertical) .lahb-nav-wrap:not(.has-megamenu) ul.menu").superfish({delay:300,hoverClass:"la-menu-hover",animation:{opacity:"show",height:"show"},animationOut:{opacity:"hide",height:"hide"},easing:"easeOutQuint",speed:100,speedOut:0,pathLevels:2}),i(".lahb-nav-wrap .menu li a").addClass("hcolorf");var o=i(".hamburger-type-toggle").find(".hamburger-menu-wrap");0<o.length&&(o.appendTo("body"),i(".hamburger-type-toggle .la-hamuburger-bg").remove()),i(".hamburger-menu-wrap").hasClass("toggle-right")?i("body").addClass("lahb-body lahmb-right"):i(".hamburger-menu-wrap").hasClass("toggle-left")&&i("body").addClass("lahb-body lahmb-left"),i.fn.niceScroll&&i(".hamburger-menu-main").niceScroll({scrollbarid:"lahb-hamburger-scroll",cursorwidth:"5px",autohidemode:!0}),i(".btn-close-hamburger-menu").on("click",function(e){e.preventDefault(),d.removeClass("is-open"),i(".lahb-hamburger-menu").removeClass("is-open"),i(".hamburger-menu-wrap").removeClass("hm-open"),i.fn.getNiceScroll&&i(".hamburger-menu-main").getNiceScroll().resize()}),i(".hamburger-type-toggle a.lahb-icon-element").on("click",function(e){e.preventDefault();var a=i(this),l=a.closest(".lahb-hamburger-menu"),n=a.attr("data-id");l.hasClass("is-open")?i(".btn-close-hamburger-menu").trigger("click"):(l.addClass("is-open"),d.addClass("is-open"),d.find(".hamburger-menu-wrap.hamburger-menu-wrap-"+n).addClass("hm-open"),i.fn.getNiceScroll&&i(".hamburger-menu-main").getNiceScroll().resize())}),i(".hamburger-nav.toggle-menu").find("li").each(function(){var l=i(this);l.children("ul").length&&l.children("a").append('<i class="hamburger-nav-icon lastudioicon-down-arrow"></i>'),i("> a > .hamburger-nav-icon",l).on("click",function(e){e.preventDefault();var a=i(this);a.hasClass("active")?(a.removeClass("active lastudioicon-up-arrow").addClass("lastudioicon-down-arrow"),i(">ul",l).stop().slideUp()):(a.removeClass("lastudioicon-down-arrow").addClass("lastudioicon-up-arrow active"),i(">ul",l).stop().slideDown(350,function(){i.fn.getNiceScroll&&i(".hamburger-menu-main").getNiceScroll().resize()}))})}),i(".hamburger-type-full .js-hamburger_trigger").on("click",function(e){e.preventDefault();var a=i(this);a.hasClass("open-button")?(i(".la-hamburger-wrap-"+a.data("id")).removeClass("open-menu"),a.removeClass("open-button").addClass("close-button"),i("body").removeClass("opem-lahb-iconmenu")):(i(".la-hamburger-wrap-"+a.data("id")).addClass("open-menu"),a.removeClass("close-button").addClass("open-button"),i("body").addClass("opem-lahb-iconmenu"))}),i(".btn-close-hamburger-menu-full").on("click",function(e){e.preventDefault(),i(".js-hamburger_trigger").removeClass("open-button").addClass("close-button"),i(".la-hamburger-wrap").removeClass("open-menu"),i("body").removeClass("opem-lahb-iconmenu")}),i(".full-menu li > ul").each(function(){i(this).prev("a").append('<i class="hamburger-nav-icon lastudioicon-down-arrow"></i>')}),i(".full-menu").on("click","li .hamburger-nav-icon",function(e){e.preventDefault();var a=i(this),l=a.closest("li");l.hasClass("open")?(a.removeClass("active lastudioicon-up-arrow").addClass("lastudioicon-down-arrow"),l.removeClass("open"),l.find("li").removeClass("open"),l.find("ul").stop().slideUp(),l.find(".hamburger-nav-icon").removeClass("active lastudioicon-up-arrow").addClass("lastudioicon-down-arrow")):(l.addClass("open"),a.removeClass("lastudioicon-down-arrow").addClass("active lastudioicon-up-arrow"),l.find(">ul").stop().slideDown(),l.siblings().removeClass("open").find("ul").stop().slideUp(),l.siblings().find("li").removeClass("open"),l.siblings().find(".hamburger-nav-icon").removeClass("active lastudioicon-up-arrow").addClass("lastudioicon-down-arrow"))}),i(".touchevents .full-menu").on("touchend","li .hamburger-nav-icon",function(e){e.preventDefault();var a=i(this),l=a.closest("li");l.hasClass("open")?(a.removeClass("active lastudioicon-up-arrow").addClass("lastudioicon-down-arrow"),l.removeClass("open"),l.find("li").removeClass("open"),l.find("ul").stop().slideUp(),l.find(".hamburger-nav-icon").removeClass("active lastudioicon-up-arrow").addClass("lastudioicon-down-arrow")):(l.addClass("open"),a.removeClass("lastudioicon-down-arrow").addClass("active lastudioicon-up-arrow"),l.find(">ul").stop().slideDown(),l.siblings().removeClass("open").find("ul").stop().slideUp(),l.siblings().find("li").removeClass("open"),l.siblings().find(".hamburger-nav-icon").removeClass("active lastudioicon-up-arrow").addClass("lastudioicon-down-arrow"))}),i(".lahb-search .js-search_trigger_toggle").on("click",function(e){e.preventDefault(),i(this).siblings(".lahb-search-form-box").toggleClass("show-sbox")}),t.on("click",function(e){i(e.target).hasClass("js-search_trigger_toggle")||i(e.target).closest(".js-search_trigger_toggle").length||i(".lahb-search-form-box").length&&0==i(e.target).closest(".lahb-search-form-box").length&&i(".lahb-search-form-box").removeClass("show-sbox")}),i(".lahb-responsive-menu-icon-wrap").on("click",function(e){e.preventDefault();var a=i(this),l=a.data("uniqid"),n=i('.lahb-responsive-menu-wrap[data-uniqid="'+l+'"]'),o=n.find(".close-responsive-nav"),s=n.hasClass("hm-res_m-pos--right")?"right":"left";!1===n.hasClass("open")?(a.addClass("open-icon-wrap").children().addClass("open"),o.addClass("open-icon-wrap").children().addClass("open"),"right"==s?n.animate({right:0},350):n.animate({left:0},350),n.addClass("open")):(a.removeClass("open-icon-wrap").children().removeClass("open"),o.removeClass("open-icon-wrap").children().removeClass("open"),"right"==s?n.animate({right:-1*n.outerWidth()},350):n.animate({left:-1*n.outerWidth()},350),n.removeClass("open"))}),i(".lahb-responsive-menu-wrap").each(function(){var e=i(this),a=e.data("uniqid"),l=e.clone(),n=l.find(".close-responsive-nav"),o=i('.lahb-responsive-menu-icon-wrap[data-uniqid="'+a+'"]'),s=l.hasClass("hm-res_m-pos--right")?"right":"left";e.remove(),i("#lastudio-header-builder").append(l),l.find("li").each(function(){var l=i(this);l.children("ul").length&&l.children("a").append('<i class="lastudioicon-down-arrow respo-nav-icon"></i>'),i("> a > .respo-nav-icon",l).on("click",function(e){e.preventDefault();var a=i(this);a.hasClass("active")?(a.removeClass("active lastudioicon-up-arrow").addClass("lastudioicon-down-arrow"),i(">ul",l).stop().slideUp(350)):(a.removeClass("lastudioicon-down-arrow").addClass("lastudioicon-up-arrow active"),i(">ul",l).stop().slideDown(350))})}),n.on("click",function(){o.hasClass("open-icon-wrap")?(o.removeClass("open-icon-wrap").children().removeClass("open"),n.removeClass("open-icon-wrap").children().removeClass("open")):(o.addClass("open-icon-wrap").children().addClass("open"),n.addClass("open-icon-wrap").children().addClass("open")),!0===l.hasClass("open")&&("right"==s?l.animate({right:-1*l.outerWidth()},350):l.animate({left:-1*l.outerWidth()},350),l.removeClass("open"))}),l.on("click","li.menu-item:not(.menu-item-has-children) > a",function(e){o.removeClass("open-icon-wrap").children().removeClass("open"),n.removeClass("open-icon-wrap").children().removeClass("open"),"right"==s?l.animate({right:-1*l.outerWidth()},350):l.animate({left:-1*l.outerWidth()},350),l.removeClass("open")})}),i(".lahb-login-form .input-text").each(function(){i(this).siblings("label").length&&i(this).attr("placeholder",i(this).siblings("label").text())}),i(".lahb-login .js-login_trigger_dropdown").each(function(){var e=i(this);0==e.siblings(".lahb-modal-login").length&&i(".lahb-modal-login.la-element-dropdown").first().clone().appendTo(e.parent())}),i(".lahb-login .js-login_trigger_dropdown").on("click",function(e){e.preventDefault(),i(this).siblings(".lahb-modal-login").fadeToggle("fast")}),i(".lahb-contact .js-contact_trigger_dropdown").on("click",function(e){e.preventDefault(),i(this).siblings(".la-contact-form").fadeToggle("fast")}),t.on("click",function(e){i(e.target).hasClass("js-contact_trigger_dropdown")||i(".la-contact-form.la-element-dropdown").length&&0==i(e.target).closest(".la-contact-form.la-element-dropdown").length&&i(".la-contact-form.la-element-dropdown").css({display:"none"})}),i(".lahb-icon-menu .js-icon_menu_trigger").on("click",function(e){e.preventDefault(),i(this).siblings(".lahb-icon-menu-content").fadeToggle("fast")}),t.on("click",function(e){i(e.target).hasClass("js-icon_menu_trigger")||i(".la-element-dropdown.lahb-icon-menu-content").length&&0==i(e.target).closest(".la-element-dropdown.lahb-icon-menu-content").length&&i(".la-element-dropdown.lahb-icon-menu-content").css({display:"none"})}),i(".lahb-wishlist").each(function(e,a){i(this).find("#la-wishlist-icon").on("click",function(e){i(this).siblings(".la-header-wishlist-wrap").fadeToggle("fast",function(){i(".la-header-wishlist-wrap").is(":visible")&&i(document).on("click",function(e){i(e.target).parents(".lahb-wishlist").length||i(".la-header-wishlist-wrap").css({display:"none"})})})})}),i(".la-header-wishlist-content-wrap").find(".la-wishlist-total").addClass("colorf"),i(".lahb-profile-socials-text").on("mouseenter",function(){i(this).closest(".lahb-profile-socials-wrap").find(".lahb-profile-socials-icons").removeClass("profile-socials-hide").addClass("profile-socials-show")}).on("mouseleave",function(){i(this).closest(".lahb-profile-socials-wrap").find(".lahb-profile-socials-icons").removeClass("profile-socials-show").addClass("profile-socials-hide")}),i(".lahb-vertical-toggle-wrap .vertical-toggle-icon").on("click",function(e){e.preventDefault(),d.hasClass("open-lahb-vertical")?d.removeClass("open-lahb-vertical"):d.addClass("open-lahb-vertical")}),i(".lahb-vertical .lahb-nav-wrap:not(.lahb-vertital-menu_nav)").removeClass("has-megamenu has-parent-arrow"),i(".lahb-vertical .lahb-nav-wrap:not(.lahb-vertital-menu_nav) li.mega").removeClass("mega"),i(".lahb-vertical .lahb-nav-wrap:not(.lahb-vertital-menu_nav) li.mm-popup-wide").removeClass("mm-popup-wide"),i(".lahb-vertical .lahb-nav-wrap:not(.lahb-vertital-menu_nav) .menu li").each(function(){var l=i(this);l.children("ul").length&&l.children("a").removeClass("sf-with-ul").append('<i class="lastudioicon-down-arrow lahb-vertical-nav-icon"></i>'),i("> a > .lahb-vertical-nav-icon",l).on("click",function(e){e.preventDefault();var a=i(this);a.hasClass("active")?(a.removeClass("active lastudioicon-up-arrow").addClass("lastudioicon-down-arrow"),i(">ul",l).stop().slideUp()):(a.removeClass("lastudioicon-down-arrow").addClass("lastudioicon-up-arrow active"),i(">ul",l).stop().slideDown())})}),t.on("keyup",function(e){27==e.keyCode&&(d.removeClass("is-open open-search-form open-cart-aside open-lahb-vertical"),i(".hamburger-menu-wrap").removeClass("hm-open"),i(".lahb-hamburger-menu.hamburger-type-toggle").removeClass("is-open"),i(".lahb-hamburger-menu.hamburger-type-full .hamburger-op-icon").removeClass("open-button").addClass("close-button"),i(".la-hamburger-wrap").removeClass("open-menu"))}),i(".lahb-mobiles-view .lahb-vertital-menu_nav").removeClass("has-parent-arrow");var s=i(".lahb-mobiles-view .lahb-vertital-menu_nav > .menu");s.length&&s.each(function(){var e=i(this).clone(),a=i(this).parent();i(this).remove(),e.find(".mm-popup-wide").removeClass("mm-popup-wide mega"),e.find(".mm-popup-narrow").removeClass("mm-popup-narrow"),e.find(".mm-mega-ul").each(function(){i(this).unwrap().unwrap().removeClass("mm-mega-ul").addClass("sub-menu"),i(">li",i(this)).removeAttr("style").removeClass("submenu")}),e.find("> li > ul").each(function(){i(this).before('<span class="narrow"><i></i></span>')}),e.on("click","li > .narrow",function(e){e.preventDefault();var a=i(this).parent();a.hasClass("open")?(a.removeClass("open"),a.find(">ul").stop().slideUp()):(a.addClass("open"),a.find(">ul").stop().slideDown(),a.siblings().removeClass("open").find(">ul").stop().slideUp())}),e.appendTo(a)}),i(".la-ajax-searchform").each(function(){r.core.InstanceSearch(i(this))}),t.on("click",function(e){i(e.target).closest(".la-ajax-searchform").length||i(".la-ajax-searchform .results-container").hide()})},stickyVerticalHeader:function(){function e(){i(".header-type-vertical--default .lahb-wrap .lahb-vertical .lahb-content-wrap").lasfsticky({to:"top",offset:a,effectsOffset:0,parent:"#main",classes:{sticky:"elementor-sticky",stickyActive:"elementor-sticky--active elementor-section--handles-inside",stickyEffects:"elementor-sticky--effects",spacer:"elementor-sticky__spacer"}})}var a=r.global.getAdminBarHeight();a+=parseInt(i(".header-type-vertical .lahb-row1-area").css("paddingTop"));i.isFunction(i.fn.lasfsticky)?e():r.core.loadDependencies([r.global.loadJsFile("lastudio-sticky")],e)},reloadAllEvents:function(){a(),i("body > .hamburger-menu-wrap").remove(),r.component.HeaderBuilder.init(),r.core.HeaderSticky(),r.core.MegaMenu(),c.trigger("scroll"),console.log("ok -- reloadAllEvents!")}};r.component.HeaderBuilder=e,i(function(){r.component.HeaderBuilder.init();var e=i(".entry .woocommerce .woocommerce-notices-wrapper"),a=i(".lahb-login-form .woocommerce-notices-wrapper");e.length?a.length&&(e.html(a.html()),a.remove()):a.find(">div").length&&a.closest(".lahb-login").find(".lahb-modal-target-link").first().trigger("click"),i(document).on("click",".lahb-btn-register",function(e){i(".lahb-login-form #customer_login .col-2").length&&(e.preventDefault(),i(".lahb-login > a").first().trigger("click"),i("#customer_login .col-1").removeClass("active"),i("#customer_login .col-2").addClass("active"))}).on("click",".lahb-login .lahb-modal-target-link",function(e){i("#customer_login .col-1").addClass("active"),i("#customer_login .col-2").removeClass("active")})})}(jQuery);