!function(){var e={1383:function(e,t){"use strict";t.A={init(){this.toggleMobileSearch(),this.toggleDesktopSearch()},toggleButton(e=(()=>{})){document.querySelectorAll('[data-el="bic-search-header-toggle"]').forEach((t=>{t.addEventListener("click",(t=>{const i=t.currentTarget;e(i)}))}))},toggleDesktopSearch(){window.matchMedia("(max-width: 1023px)").matches||this.toggleButton((e=>{if(void 0!==e.dataset.form_selector){const t=document.querySelector(e.dataset.form_selector),i=t.querySelector('[name="s"]'),n=t.querySelector('[data-el="bic-search-header-form-close"]'),s=document.querySelector('[data-el="bic-mobile-nav"]');s.classList.add("lg:hidden"),n.addEventListener("click",(()=>{n.classList.add("hidden"),t.classList.add("lg:w-0","lg:h-0","lg:opacity-0"),t.classList.remove("lg:w-full","lg:h-full","lg:opacity-100"),s.classList.remove("lg:hidden"),setTimeout((()=>{e.classList.remove("hidden")}),170)})),t.classList.add("lg:w-full","lg:h-full","lg:opacity-100"),t.classList.remove("lg:w-0","lg:h-0","hidden","lg:opacity-0"),n.classList.remove("hidden"),i.focus(),e.classList.add("hidden")}}))},toggleMobileSearch(){if(window.matchMedia("(min-width: 1024px)").matches)return;document.querySelectorAll('[data-el="bic-search-header-toggle"]').forEach((e=>{e.addEventListener("click",(e=>{const t=e.currentTarget;if(void 0!==t.dataset.form_selector){const e=document.querySelector(t.dataset.form_selector),i=e.querySelector('[name="s"]'),n=e.querySelector('[data-el="bic-search-header-form-close"]');n.addEventListener("click",(e=>{e.currentTarget.closest("form").classList.add("hidden"),document.body.classList.remove("overflow-hidden"),n.classList.add("hidden")})),document.body.classList.add("overflow-hidden"),e.classList.remove("hidden"),e.classList.add("fixed","top-0","left-0","w-full","h-full","flex","items-center","justify-center","bg-grey-100/90","z-100"),n.classList.remove("hidden"),i.focus()}}))}))}}},9283:function(e){e.exports=function(){"use strict";function e(){return e=Object.assign||function(e){for(var t=1;t1,a={elements_selector:".lazy",container:i||t?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},o=function(t){return e({},a,t)},l=function(e,t){var i,n="LazyLoad::Initialized",s=new e(t);try{i=new CustomEvent(n,{detail:{instance:s}})}catch(e){(i=document.createEvent("CustomEvent")).initCustomEvent(n,!1,!1,{instance:s})}window.dispatchEvent(i)},c="src",d="srcset",u="sizes",p="poster",h="llOriginalAttrs",f="data",m="loading",g="loaded",v="applied",_="error",b="native",y="data-",w="ll-status",x=function(e,t){return e.getAttribute(y+t)},T=function(e){return x(e,w)},S=function(e,t){return function(e,t,i){var n="data-ll-status";null!==i?e.setAttribute(n,i):e.removeAttribute(n)}(e,0,t)},C=function(e){return S(e,null)},E=function(e){return null===T(e)},k=function(e){return T(e)===b},L=[m,g,v,_],A=function(e,t,i,n){e&&"function"==typeof e&&(void 0===n?void 0===i?e(t):e(t,i):e(t,i,n))},M=function(e,t){s?e.classList.add(t):e.className+=(e.className?" ":"")+t},O=function(e,t){s?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},P=function(e){return e.llTempImage},D=function(e,t){if(t){var i=t._observer;i&&i.unobserve(e)}},I=function(e,t){e&&(e.loadingCount+=t)},$=function(e,t){e&&(e.toLoadCount=t)},q=function(e){for(var t,i=[],n=0;t=e.children[n];n+=1)"SOURCE"===t.tagName&&i.push(t);return i},z=function(e,t){var i=e.parentNode;i&&"PICTURE"===i.tagName&&q(i).forEach(t)},B=function(e,t){q(e).forEach(t)},N=[c],F=[c,p],R=[c,d,u],G=[f],H=function(e){return!!e[h]},j=function(e){return e[h]},V=function(e){return delete e[h]},W=function(e,t){if(!H(e)){var i={};t.forEach((function(t){i[t]=e.getAttribute(t)})),e[h]=i}},Y=function(e,t){if(H(e)){var i=j(e);t.forEach((function(t){!function(e,t,i){i?e.setAttribute(t,i):e.removeAttribute(t)}(e,t,i[t])}))}},X=function(e,t,i){M(e,t.class_applied),S(e,v),i&&(t.unobserve_completed&&D(e,t),A(t.callback_applied,e,i))},U=function(e,t,i){M(e,t.class_loading),S(e,m),i&&(I(i,1),A(t.callback_loading,e,i))},J=function(e,t,i){i&&e.setAttribute(t,i)},K=function(e,t){J(e,u,x(e,t.data_sizes)),J(e,d,x(e,t.data_srcset)),J(e,c,x(e,t.data_src))},Z={IMG:function(e,t){z(e,(function(e){W(e,R),K(e,t)})),W(e,R),K(e,t)},IFRAME:function(e,t){W(e,N),J(e,c,x(e,t.data_src))},VIDEO:function(e,t){B(e,(function(e){W(e,N),J(e,c,x(e,t.data_src))})),W(e,F),J(e,p,x(e,t.data_poster)),J(e,c,x(e,t.data_src)),e.load()},OBJECT:function(e,t){W(e,G),J(e,f,x(e,t.data_src))}},Q=["IMG","IFRAME","VIDEO","OBJECT"],ee=function(e,t){!t||function(e){return e.loadingCount>0}(t)||function(e){return e.toLoadCount>0}(t)||A(e.callback_finish,t)},te=function(e,t,i){e.addEventListener(t,i),e.llEvLisnrs[t]=i},ie=function(e,t,i){e.removeEventListener(t,i)},ne=function(e){return!!e.llEvLisnrs},se=function(e){if(ne(e)){var t=e.llEvLisnrs;for(var i in t){var n=t[i];ie(e,i,n)}delete e.llEvLisnrs}},re=function(e,t,i){!function(e){delete e.llTempImage}(e),I(i,-1),function(e){e&&(e.toLoadCount-=1)}(i),O(e,t.class_loading),t.unobserve_completed&&D(e,i)},ae=function(e,t,i){var n=P(e)||e;ne(n)||function(e,t,i){ne(e)||(e.llEvLisnrs={});var n="VIDEO"===e.tagName?"loadeddata":"load";te(e,n,t),te(e,"error",i)}(n,(function(s){!function(e,t,i,n){var s=k(t);re(t,i,n),M(t,i.class_loaded),S(t,g),A(i.callback_loaded,t,n),s||ee(i,n)}(0,e,t,i),se(n)}),(function(s){!function(e,t,i,n){var s=k(t);re(t,i,n),M(t,i.class_error),S(t,_),A(i.callback_error,t,n),i.restore_on_error&&Y(t,R),s||ee(i,n)}(0,e,t,i),se(n)}))},oe=function(e,t,i){!function(e){return Q.indexOf(e.tagName)>-1}(e)?function(e,t,i){!function(e){e.llTempImage=document.createElement("IMG")}(e),ae(e,t,i),function(e){H(e)||(e[h]={backgroundImage:e.style.backgroundImage})}(e),function(e,t,i){var n=x(e,t.data_bg),s=x(e,t.data_bg_hidpi),a=r&&s?s:n;a&&(e.style.backgroundImage='url("'.concat(a,'")'),P(e).setAttribute(c,a),U(e,t,i))}(e,t,i),function(e,t,i){var n=x(e,t.data_bg_multi),s=x(e,t.data_bg_multi_hidpi),a=r&&s?s:n;a&&(e.style.backgroundImage=a,X(e,t,i))}(e,t,i),function(e,t,i){var n=x(e,t.data_bg_set);if(n){var s=n.split("|"),r=s.map((function(e){return"image-set(".concat(e,")")}));e.style.backgroundImage=r.join(),""===e.style.backgroundImage&&(r=s.map((function(e){return"-webkit-image-set(".concat(e,")")})),e.style.backgroundImage=r.join()),X(e,t,i)}}(e,t,i)}(e,t,i):function(e,t,i){ae(e,t,i),function(e,t,i){var n=Z[e.tagName];n&&(n(e,t),U(e,t,i))}(e,t,i)}(e,t,i)},le=function(e){e.removeAttribute(c),e.removeAttribute(d),e.removeAttribute(u)},ce=function(e){z(e,(function(e){Y(e,R)})),Y(e,R)},de={IMG:ce,IFRAME:function(e){Y(e,N)},VIDEO:function(e){B(e,(function(e){Y(e,N)})),Y(e,F),e.load()},OBJECT:function(e){Y(e,G)}},ue=function(e,t){(function(e){var t=de[e.tagName];t?t(e):function(e){if(H(e)){var t=j(e);e.style.backgroundImage=t.backgroundImage}}(e)})(e),function(e,t){E(e)||k(e)||(O(e,t.class_entered),O(e,t.class_exited),O(e,t.class_applied),O(e,t.class_loading),O(e,t.class_loaded),O(e,t.class_error))}(e,t),C(e),V(e)},pe=["IMG","IFRAME","VIDEO"],he=function(e){return e.use_native&&"loading"in HTMLImageElement.prototype},fe=function(e,t,i){e.forEach((function(e){return function(e){return e.isIntersecting||e.intersectionRatio>0}(e)?function(e,t,i,n){var s=function(e){return L.indexOf(T(e))>=0}(e);S(e,"entered"),M(e,i.class_entered),O(e,i.class_exited),function(e,t,i){t.unobserve_entered&&D(e,i)}(e,i,n),A(i.callback_enter,e,t,n),s||oe(e,i,n)}(e.target,e,t,i):function(e,t,i,n){E(e)||(M(e,i.class_exited),function(e,t,i,n){i.cancel_on_exit&&function(e){return T(e)===m}(e)&&"IMG"===e.tagName&&(se(e),function(e){z(e,(function(e){le(e)})),le(e)}(e),ce(e),O(e,i.class_loading),I(n,-1),C(e),A(i.callback_cancel,e,t,n))}(e,t,i,n),A(i.callback_exit,e,t,n))}(e.target,e,t,i)}))},me=function(e){return Array.prototype.slice.call(e)},ge=function(e){return e.container.querySelectorAll(e.elements_selector)},ve=function(e){return function(e){return T(e)===_}(e)},_e=function(e,t){return function(e){return me(e).filter(E)}(e||ge(t))},be=function(e,i){var s=o(e);this._settings=s,this.loadingCount=0,function(e,t){n&&!he(e)&&(t._observer=new IntersectionObserver((function(i){fe(i,e,t)}),function(e){return{root:e.container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}}(e)))}(s,this),function(e,i){t&&(i._onlineHandler=function(){!function(e,t){var i;(i=ge(e),me(i).filter(ve)).forEach((function(t){O(t,e.class_error),C(t)})),t.update()}(e,i)},window.addEventListener("online",i._onlineHandler))}(s,this),this.update(i)};return be.prototype={update:function(e){var t,s,r=this._settings,a=_e(e,r);$(this,a.length),!i&&n?he(r)?function(e,t,i){e.forEach((function(e){-1!==pe.indexOf(e.tagName)&&function(e,t,i){e.setAttribute("loading","lazy"),ae(e,t,i),function(e,t){var i=Z[e.tagName];i&&i(e,t)}(e,t),S(e,b)}(e,t,i)})),$(i,0)}(a,r,this):(s=a,function(e){e.disconnect()}(t=this._observer),function(e,t){t.forEach((function(t){e.observe(t)}))}(t,s)):this.loadAll(a)},destroy:function(){this._observer&&this._observer.disconnect(),t&&window.removeEventListener("online",this._onlineHandler),ge(this._settings).forEach((function(e){V(e)})),delete this._observer,delete this._settings,delete this._onlineHandler,delete this.loadingCount,delete this.toLoadCount},loadAll:function(e){var t=this,i=this._settings;_e(e,i).forEach((function(e){D(e,t),oe(e,i,t)}))},restoreAll:function(){var e=this._settings;ge(e).forEach((function(t){ue(t,e)}))}},be.load=function(e,t){var i=o(t);oe(e,i)},be.resetStatus=function(e){C(e)},t&&function(e,t){if(t)if(t.length)for(var i,n=0;i=t[n];n+=1)l(e,i);else l(e,t)}(be,window.lazyLoadOptions),be}()},1669:function(e){"use strict";e.exports=jQuery}},t={};function i(n){var s=t[n];if(void 0!==s)return s.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,i),r.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";i(1669);var e=(e,t="attach",i="File type:.pdf, .doc, .docs")=>{if(!e)return;const n=e.style,s=e.parentNode,r=document.createElement("button"),a=document.createElement("button"),o=document.createElement("div"),l=document.createElement("small");Object.assign(n,{opacity:0,position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:20}),r.setAttribute("type","button"),r.classList.add("btn","btn--rounded","btn--small","btn-white","relative","z-10","relative","cursor-pointer"),r.innerHTML=t,r.style.display="flex",o.classList.add("c-bic-upload-file","p3","font-body","rounded-md","grey-300","px-3.5","py-2","min-h-[42px]","inline-flex","text-left","items-center","gap-x-3","hidden"),a.setAttribute("type","button"),a.innerHTML='',o.innerHTML='',o.appendChild(a),s.classList.add("c-bic-upload-wrapper","relative"),s.appendChild(r),s.appendChild(o),e.remove(),r.appendChild(e),e.classList.add("cursor-pointer"),l.classList.add("font-body","text-3","text-grey-600","leading-5","block","mt-2"),l.innerHTML=i,s.appendChild(l),e.addEventListener("change",(function(){e.value?(o.querySelector("span").innerHTML=e.value.split(/(\\|\/)/g).pop(),o.classList.remove("hidden"),r.style.display="none",r.classList.remove("flex")):(o.querySelector("span").innerHTML="",o.classList.add("hidden"))})),a.addEventListener("click",(function(){e.value="",o.classList.add("hidden"),r.style.display="flex",r.classList.remove("hidden")}))},t={init(){try{this.customUploadStyle(),this.teamFilterMobile(),this.contactFormResponse()}catch(e){}},contactFormResponse(){const e=document.querySelector(".wpcf7");if(e){e.addEventListener("wpcf7mailsent",(()=>{e.remove(),document.querySelector(".career-form-response").classList.remove("hidden"),document.querySelector(".career-form-response .success").classList.remove("hidden")}));const t=document.querySelectorAll('label[for="career-cv"]');t&&t.forEach((e=>{e.addEventListener("click",(e=>{e.stopPropagation(),e.preventDefault()}))})),e.querySelector("form").setAttribute("novalidate","novalidate")}},teamFilterMobile(){const e=document.querySelector('[data-el="team-filter-label"]'),t=document.querySelector('[data-el="team-filter-list"]'),i=document.querySelectorAll('[data-el="team-filter-list-item"]'),n=document.querySelector('[data-el="team-filter-container"]'),s=()=>{if(t.classList.contains("hidden"))return t.classList.remove("hidden"),void n.classList.add("active");t.classList.add("hidden"),n.classList.remove("active")};e.addEventListener("click",(e=>{e.preventDefault(),s()})),i.forEach((t=>{t.classList.contains("current")&&(e.querySelector('[data-el="team-filter-content"]').innerHTML=t.innerHTML),t.addEventListener("click",(t=>{e.querySelector('[data-el="team-filter-content"]').innerHTML=t.currentTarget.innerHTML,s(),location.href=t.currentTarget.dataset.href}))}))},customUploadStyle(){const t=document.querySelectorAll("input[type=file]");t&&t.forEach((t=>{e(t)}))}};function n(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function s(e={},t={}){Object.keys(t).forEach((i=>{void 0===e[i]?e[i]=t[i]:n(t[i])&&n(e[i])&&Object.keys(t[i]).length>0&&s(e[i],t[i])}))}const r={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return s(e,r),e}const o={document:r,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function l(){const e="undefined"!=typeof window?window:{};return s(e,o),e}class c extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function d(e=[]){const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...d(e)):t.push(e)})),t}function u(e,t){return Array.prototype.filter.call(e,t)}function p(e,t){const i=l(),n=a();let s=[];if(!t&&e instanceof c)return e;if(!e)return new c(s);if("string"==typeof e){const i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let e="div";0===i.indexOf("e.split(" "))));return this.forEach((e=>{e.classList.add(...t)})),this},removeClass:function(...e){const t=d(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...t)})),this},hasClass:function(...e){const t=d(e.map((e=>e.split(" "))));return u(this,(e=>t.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(...e){const t=d(e.map((e=>e.split(" "))));this.forEach((e=>{t.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let i=0;i=0;e-=1){const i=a[e];n&&i.listener===n||n&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===n?(r.removeEventListener(t,i.proxyListener,s),a.splice(e,1)):n||(r.removeEventListener(t,i.proxyListener,s),a.splice(e,1))}}}return this},trigger:function(...e){const t=l(),i=e[0].split(" "),n=e[1];for(let s=0;st>0)),s.dispatchEvent(i),s.dom7EventData=[],delete s.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function i(n){n.target===this&&(e.call(this,n),t.off("transitionend",i))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=l();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=l(),t=a(),i=this[0],n=i.getBoundingClientRect(),s=t.body,r=i.clientTop||s.clientTop||0,o=i.clientLeft||s.clientLeft||0,c=i===e?e.scrollY:i.scrollTop,d=i===e?e.scrollX:i.scrollLeft;return{top:n.top+c-r,left:n.left+d-o}}return null},css:function(e,t){const i=l();let n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n{e.apply(t,[t,i])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;tt-1)return p([]);if(e<0){const i=t+e;return p(i<0?[]:[this[i]])}return p([this[e]])},append:function(...e){let t;const i=a();for(let n=0;n=0;n-=1)this[i].insertBefore(s.childNodes[n],this[i].childNodes[0])}else if(e instanceof c)for(n=0;n0?e?this[0].nextElementSibling&&p(this[0].nextElementSibling).is(e)?p([this[0].nextElementSibling]):p([]):this[0].nextElementSibling?p([this[0].nextElementSibling]):p([]):p([])},nextAll:function(e){const t=[];let i=this[0];if(!i)return p([]);for(;i.nextElementSibling;){const n=i.nextElementSibling;e?p(n).is(e)&&t.push(n):t.push(n),i=n}return p(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&p(t.previousElementSibling).is(e)?p([t.previousElementSibling]):p([]):t.previousElementSibling?p([t.previousElementSibling]):p([])}return p([])},prevAll:function(e){const t=[];let i=this[0];if(!i)return p([]);for(;i.previousElementSibling;){const n=i.previousElementSibling;e?p(n).is(e)&&t.push(n):t.push(n),i=n}return p(t)},parent:function(e){const t=[];for(let i=0;i{Object.defineProperty(p.fn,e,{value:m[e],writable:!0})}));var g=p;function v(e,t=0){return setTimeout(e,t)}function _(){return Date.now()}function b(e,t="x"){const i=l();let n,s,r;const a=function(e){const t=l();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map((e=>e.replace(",","."))).join(", ")),r=new i.WebKitCSSMatrix("none"===s?"":s)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=r.toString().split(",")),"x"===t&&(s=i.WebKitCSSMatrix?r.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(s=i.WebKitCSSMatrix?r.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),s||0}function y(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function w(...e){const t=Object(e[0]),i=["__proto__","constructor","prototype"];for(let s=1;si.indexOf(e)<0));for(let i=0,n=e.length;is?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{r=(new Date).getTime(),null===a&&(a=r);const l=Math.max(Math.min((r-a)/o,1),0),c=.5-Math.cos(l*Math.PI)/2;let p=s+c*(t-s);if(d(p,t)&&(p=t),e.wrapperEl.scrollTo({[i]:p}),d(p,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:p})})),void n.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=n.requestAnimationFrame(u)};u()}let S,C,E;function k(){return S||(S=function(){const e=l(),t=a();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const i=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),S}function L(e={}){return C||(C=function({userAgent:e}={}){const t=k(),i=l(),n=i.navigator.platform,s=e||i.navigator.userAgent,r={ios:!1,android:!1},a=i.screen.width,o=i.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const u=s.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===n;let f="MacIntel"===n;return!d&&f&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${o}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),f=!1),c&&!h&&(r.os="android",r.android=!0),(d||p||u)&&(r.os="ios",r.ios=!0),r}(e)),C}function A(){return E||(E=function(){const e=l();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),E}var M={on(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;const s=i?"unshift":"push";return e.split(" ").forEach((e=>{n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][s](t)})),n},once(e,t,i){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;function s(...i){n.off(e,s),s.__emitterProxy&&delete s.__emitterProxy,t.apply(n,i)}return s.__emitterProxy=t,n.on(e,s,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const n=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[n](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach(((n,s)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&i.eventsListeners[e].splice(s,1)}))})),i):i},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let i,n,s;"string"==typeof e[0]||Array.isArray(e[0])?(i=e[0],n=e.slice(1,e.length),s=t):(i=e[0].events,n=e[0].data,s=e[0].context||t),n.unshift(s);return(Array.isArray(i)?i:i.split(" ")).forEach((e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(s,[e,...n])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((e=>{e.apply(s,n)}))})),t}};var O={updateSize:function(){const e=this;let t,i;const n=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:n[0].clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:n[0].clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(n.css("padding-left")||0,10)-parseInt(n.css("padding-right")||0,10),i=i-parseInt(n.css("padding-top")||0,10)-parseInt(n.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function i(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}const n=e.params,{$wrapperEl:s,size:r,rtlTranslate:a,wrongRTL:o}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=s.children(`.${e.params.slideClass}`),u=l?e.virtual.slides.length:d.length;let p=[];const h=[],f=[];let m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(e));let g=n.slidesOffsetAfter;"function"==typeof g&&(g=n.slidesOffsetAfter.call(e));const v=e.snapGrid.length,_=e.slidesGrid.length;let b=n.spaceBetween,y=-m,w=0,T=0;if(void 0===r)return;"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*r),e.virtualSize=-b,a?d.css({marginLeft:"",marginBottom:"",marginTop:""}):d.css({marginRight:"",marginBottom:"",marginTop:""}),n.centeredSlides&&n.cssMode&&(x(e.wrapperEl,"--swiper-centered-offset-before",""),x(e.wrapperEl,"--swiper-centered-offset-after",""));const S=n.grid&&n.grid.rows>1&&e.grid;let C;S&&e.grid.initSlides(u);const E="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>void 0!==n.breakpoints[e].slidesPerView)).length>0;for(let s=0;s1&&p.push(e.virtualSize-r)}if(0===p.length&&(p=[0]),0!==n.spaceBetween){const i=e.isHorizontal()&&a?"marginLeft":t("marginRight");d.filter(((e,t)=>!n.cssMode||t!==d.length-1)).css({[i]:`${b}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(n.spaceBetween?n.spaceBetween:0)})),e-=n.spaceBetween;const t=e-r;p=p.map((e=>e<0?-m:e>t?t+g:e))}if(n.centerInsufficientSlides){let e=0;if(f.forEach((t=>{e+=t+(n.spaceBetween?n.spaceBetween:0)})),e-=n.spaceBetween,e{p[i]=e-t})),h.forEach(((e,i)=>{h[i]=e+t}))}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:h,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){x(e.wrapperEl,"--swiper-centered-offset-before",-p[0]+"px"),x(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(u!==c&&e.emit("slidesLengthChange"),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==_&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.$el.hasClass(t);u<=n.maxBackfaceHiddenSlides?i||e.$el.addClass(t):i&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,i=[],n=t.virtual&&t.params.virtual.enabled;let s,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>n?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||g([])).each((e=>{i.push(e)}));else for(s=0;st.slides.length&&!n)break;i.push(a(e))}else i.push(a(t.activeIndex));for(s=0;sr?e:r}(r||0===r)&&t.$wrapperEl.css("height",`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let i=0;i=0&&u1&&p<=t.size||u<=0&&p>=t.size)&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e),n.eq(e).addClass(i.slideVisibleClass)),o.progress=s?-c:c,o.originalProgress=s?-d:d}t.visibleSlides=g(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:r,isEnd:a}=t;const o=r,l=a;0===n?(s=0,r=!0,a=!0):(s=(e-t.minTranslate())/n,r=s<=0,a=s>=1),Object.assign(t,{progress:s,isBeginning:r,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),a&&!l&&t.emit("reachEnd toEdge"),(o&&!r||l&&!a)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,$wrapperEl:n,activeIndex:s,realIndex:r}=e,a=e.virtual&&i.virtual.enabled;let o;t.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),o=a?e.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${s}"]`):t.eq(s),o.addClass(i.slideActiveClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(i.slideDuplicateActiveClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(i.slideDuplicateActiveClass));let l=o.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=t.eq(0),l.addClass(i.slideNextClass));let c=o.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&0===c.length&&(c=t.eq(-1),c.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),c.hasClass(i.slideDuplicateClass)?n.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):n.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:n,snapGrid:s,params:r,activeIndex:a,realIndex:o,snapIndex:l}=t;let c,d=e;if(void 0===d){for(let e=0;e=n[e]&&i=n[e]&&i=n[e]&&(d=e);r.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}if(s.indexOf(i)>=0)c=s.indexOf(i);else{const e=Math.min(r.slidesPerGroupSkip,d);c=e+Math.floor((d-e)/r.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),d===a)return void(c!==l&&(t.snapIndex=c,t.emit("snapIndexChange")));const u=parseInt(t.slides.eq(d).attr("data-swiper-slide-index")||d,10);Object.assign(t,{snapIndex:c,realIndex:u,previousIndex:a,activeIndex:d}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==u&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,i=t.params,n=g(e).closest(`.${i.slideClass}`)[0];let s,r=!1;if(n)for(let e=0;el?l:n&&er?"next":s=l.length&&(g=l.length-1);const v=-l[g];if(o.normalizeSlideIndex)for(let e=0;e=i&&t=i&&t=i&&(a=e)}if(r.initialized&&a!==u){if(!r.allowSlideNext&&vr.translate&&v>r.maxTranslate()&&(u||0)!==a)return!1}let _;if(a!==(d||0)&&i&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),_=a>u?"next":a{r.wrapperEl.style.scrollSnapType="",r._swiperImmediateVirtual=!1}))}else{if(!r.support.smoothScroll)return T({swiper:r,targetPosition:i,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(v),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,_),0===t?r.transitionEnd(i,_):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,_))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,i=!0,n){if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const s=this;let r=e;return s.params.loop&&(r+=s.loopedSlides),s.slideTo(r,t,i,n)},slideNext:function(e=this.params.speed,t=!0,i){const n=this,{animating:s,enabled:r,params:a}=n;if(!r)return n;let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndexd(e)));let h=a[p.indexOf(u)-1];if(void 0===h&&s.cssMode){let e;a.forEach(((t,i)=>{u>=t&&(e=i)})),void 0!==e&&(h=a[e>0?e-1:e])}let f=0;if(void 0!==h&&(f=o.indexOf(h),f<0&&(f=n.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(f=f-n.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),s.rewind&&n.isBeginning){const s=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(s,e,t,i)}return n.slideTo(f,e,t,i)},slideReset:function(e=this.params.speed,t=!0,i){return this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e=this.params.speed,t=!0,i,n=.5){const s=this;let r=s.activeIndex;const a=Math.min(s.params.slidesPerGroupSkip,r),o=a+Math.floor((r-a)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[o]){const e=s.snapGrid[o];l-e>(s.snapGrid[o+1]-e)*n&&(r+=s.params.slidesPerGroup)}else{const e=s.snapGrid[o-1];l-e<=(s.snapGrid[o]-e)*n&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,e,t,i)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:i}=e,n="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let s,r=e.clickedIndex;if(t.loop){if(e.animating)return;s=parseInt(g(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?re.slides.length-e.loopedSlides+n/2?(e.loopFix(),r=i.children(`.${t.slideClass}[data-swiper-slide-index="${s}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),v((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-n?(e.loopFix(),r=i.children(`.${t.slideClass}[data-swiper-slide-index="${s}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),v((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var $={loopCreate:function(){const e=this,t=a(),{params:i,$wrapperEl:n}=e,s=n.children().length>0?g(n.children()[0].parentNode):n;s.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let r=s.children(`.${i.slideClass}`);if(i.loopFillGroupWithBlank){const e=i.slidesPerGroup-r.length%i.slidesPerGroup;if(e!==i.slidesPerGroup){for(let n=0;nr.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=r.length);const o=[],l=[];r.each(((e,t)=>{g(e).attr("data-swiper-slide-index",t)}));for(let t=0;t=0;e-=1)s.prepend(g(o[e].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:i,loopedSlides:n,allowSlidePrev:s,allowSlideNext:r,snapGrid:a,rtlTranslate:o}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const c=-a[t]-e.getTranslate();if(t=i.length-n){l=-i.length+t+n,l+=n;e.slideTo(l,0,!1,!0)&&0!==c&&e.setTranslate((o?-e.translate:e.translate)-c)}e.allowSlidePrev=s,e.allowSlideNext=r,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:i}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}};function q(e){const t=this,i=a(),n=l(),s=t.touchEventsData,{params:r,touches:o,enabled:c}=t;if(!c)return;if(t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let d=e;d.originalEvent&&(d=d.originalEvent);let u=g(d.target);if("wrapper"===r.touchEventsTarget&&!u.closest(t.wrapperEl).length)return;if(s.isTouchEvent="touchstart"===d.type,!s.isTouchEvent&&"which"in d&&3===d.which)return;if(!s.isTouchEvent&&"button"in d&&d.button>0)return;if(s.isTouched&&s.isMoved)return;const p=!!r.noSwipingClass&&""!==r.noSwipingClass,h=e.composedPath?e.composedPath():e.path;p&&d.target&&d.target.shadowRoot&&h&&(u=g(h[0]));const f=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,m=!(!d.target||!d.target.shadowRoot);if(r.noSwiping&&(m?function(e,t=this){return function t(i){if(!i||i===a()||i===l())return null;i.assignedSlot&&(i=i.assignedSlot);const n=i.closest(e);return n||i.getRootNode?n||t(i.getRootNode().host):null}(t)}(f,u[0]):u.closest(f)[0]))return void(t.allowClick=!0);if(r.swipeHandler&&!u.closest(r.swipeHandler)[0])return;o.currentX="touchstart"===d.type?d.targetTouches[0].pageX:d.pageX,o.currentY="touchstart"===d.type?d.targetTouches[0].pageY:d.pageY;const v=o.currentX,b=o.currentY,y=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,w=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(y&&(v<=w||v>=n.innerWidth-w)){if("prevent"!==y)return;e.preventDefault()}if(Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=v,o.startY=b,s.touchStartTime=_(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1),"touchstart"!==d.type){let e=!0;u.is(s.focusableElements)&&(e=!1,"SELECT"===u[0].nodeName&&(s.isTouched=!1)),i.activeElement&&g(i.activeElement).is(s.focusableElements)&&i.activeElement!==u[0]&&i.activeElement.blur();const n=e&&t.allowTouchMove&&r.touchStartPreventDefault;!r.touchStartForcePreventDefault&&!n||u[0].isContentEditable||d.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",d)}function z(e){const t=a(),i=this,n=i.touchEventsData,{params:s,touches:r,rtlTranslate:o,enabled:l}=i;if(!l)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",c));if(n.isTouchEvent&&"touchmove"!==c.type)return;const d="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),u="touchmove"===c.type?d.pageX:c.pageX,p="touchmove"===c.type?d.pageY:c.pageY;if(c.preventedByNestedSwiper)return r.startX=u,void(r.startY=p);if(!i.allowTouchMove)return g(c.target).is(n.focusableElements)||(i.allowClick=!1),void(n.isTouched&&(Object.assign(r,{startX:u,startY:p,currentX:u,currentY:p}),n.touchStartTime=_()));if(n.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(i.isVertical()){if(pr.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(ur.startX&&i.translate>=i.minTranslate())return;if(n.isTouchEvent&&t.activeElement&&c.target===t.activeElement&&g(c.target).is(n.focusableElements))return n.isMoved=!0,void(i.allowClick=!1);if(n.allowTouchCallbacks&&i.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;r.currentX=u,r.currentY=p;const h=r.currentX-r.startX,f=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(h**2+f**2)=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(h))/Math.PI,n.isScrolling=i.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",c),void 0===n.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(n.startMoving=!0)),n.isScrolling)return void(n.isTouched=!1);if(!n.startMoving)return;i.allowClick=!1,!s.cssMode&&c.cancelable&&c.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&c.stopPropagation(),n.isMoved||(s.loop&&!s.cssMode&&i.loopFix(),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!s.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",c)),i.emit("sliderMove",c),n.isMoved=!0;let m=i.isHorizontal()?h:f;r.diff=m,m*=s.touchRatio,o&&(m=-m),i.swipeDirection=m>0?"prev":"next",n.currentTranslate=m+n.startTranslate;let v=!0,b=s.resistanceRatio;if(s.touchReleaseOnEdges&&(b=0),m>0&&n.currentTranslate>i.minTranslate()?(v=!1,s.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+m)**b)):m<0&&n.currentTranslaten.startTranslate&&(n.currentTranslate=n.startTranslate),i.allowSlidePrev||i.allowSlideNext||(n.currentTranslate=n.startTranslate),s.threshold>0){if(!(Math.abs(m)>s.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,n.currentTranslate=n.startTranslate,void(r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&i.freeMode||s.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&s.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}function B(e){const t=this,i=t.touchEventsData,{params:n,touches:s,rtlTranslate:r,slidesGrid:a,enabled:o}=t;if(!o)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const c=_(),d=c-i.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit("tap click",l),d<300&&c-i.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(i.lastClickTime=_(),v((()=>{t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===s.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let u;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,u=n.followFinger?r?t.translate:-t.translate:-i.currentTranslate,n.cssMode)return;if(t.params.freeMode&&n.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:u});let p=0,h=t.slidesSizesGrid[0];for(let e=0;e=a[e]&&u=a[e]&&(p=e,h=a[a.length-1]-a[a.length-2])}let f=null,m=null;n.rewind&&(t.isBeginning?m=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const g=(u-a[p])/h,b=pn.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(g>=n.longSwipesRatio?t.slideTo(n.rewind&&t.isEnd?f:p+b):t.slideTo(p)),"prev"===t.swipeDirection&&(g>1-n.longSwipesRatio?t.slideTo(p+b):null!==m&&g<0&&Math.abs(g)>n.longSwipesRatio?t.slideTo(m):t.slideTo(p))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(p+b):t.slideTo(p):("next"===t.swipeDirection&&t.slideTo(null!==f?f:p+b),"prev"===t.swipeDirection&&t.slideTo(null!==m?m:p))}}function N(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:s,snapGrid:r}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=s,e.allowSlideNext=n,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function F(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function R(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:n}=e;if(!n)return;let s;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();s=0===r?0:(e.translate-e.minTranslate())/r,s!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let G=!1;function H(){}const j=(e,t)=>{const i=a(),{params:n,touchEvents:s,el:r,wrapperEl:o,device:l,support:c}=e,d=!!n.nested,u="on"===t?"addEventListener":"removeEventListener",p=t;if(c.touch){const t=!("touchstart"!==s.start||!c.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};r[u](s.start,e.onTouchStart,t),r[u](s.move,e.onTouchMove,c.passiveListener?{passive:!1,capture:d}:d),r[u](s.end,e.onTouchEnd,t),s.cancel&&r[u](s.cancel,e.onTouchEnd,t)}else r[u](s.start,e.onTouchStart,!1),i[u](s.move,e.onTouchMove,d),i[u](s.end,e.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&r[u]("click",e.onClick,!0),n.cssMode&&o[u]("scroll",e.onScroll),n.updateOnWindowResize?e[p](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",N,!0):e[p]("observerUpdate",N,!0)};var V={attachEvents:function(){const e=this,t=a(),{params:i,support:n}=e;e.onTouchStart=q.bind(e),e.onTouchMove=z.bind(e),e.onTouchEnd=B.bind(e),i.cssMode&&(e.onScroll=R.bind(e)),e.onClick=F.bind(e),n.touch&&!G&&(t.addEventListener("touchstart",H),G=!0),j(e,"on")},detachEvents:function(){j(this,"off")}};const W=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Y={setBreakpoint:function(){const e=this,{activeIndex:t,initialized:i,loopedSlides:n=0,params:s,$el:r}=e,a=s.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const o=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const l=(o in a?a[o]:void 0)||e.originalParams,c=W(e,s),d=W(e,l),u=s.enabled;c&&!d?(r.removeClass(`${s.containerModifierClass}grid ${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&d&&(r.addClass(`${s.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===s.grid.fill)&&r.addClass(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{const i=s[t]&&s[t].enabled,n=l[t]&&l[t].enabled;i&&!n&&e[t].disable(),!i&&n&&e[t].enable()}));const p=l.direction&&l.direction!==s.direction,h=s.loop&&(l.slidesPerView!==s.slidesPerView||p);p&&i&&e.changeDirection(),w(e.params,l);const f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),u&&!f?e.disable():!u&&f&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",l),h&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-n+e.loopedSlides,0,!1)),e.emit("breakpoint",l)},getBreakpoint:function(e,t="window",i){if(!e||"container"===t&&!i)return;let n=!1;const s=l(),r="window"===t?s.innerHeight:i.clientHeight,a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e{"object"==typeof e?Object.keys(e).forEach((n=>{e[n]&&i.push(t+n)})):"string"==typeof e&&i.push(t+e)})),i}(["initialized",i.direction,{"pointer-events":!a.touch},{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:n},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...o),s.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}};var U={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function J(e,t){return function(i={}){const n=Object.keys(i)[0],s=i[n];"object"==typeof s&&null!==s?(["navigation","pagination","scrollbar"].indexOf(n)>=0&&!0===e[n]&&(e[n]={auto:!0}),n in e&&"enabled"in s?(!0===e[n]&&(e[n]={enabled:!0}),"object"!=typeof e[n]||"enabled"in e[n]||(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),w(t,i)):w(t,i)):w(t,i)}}const K={eventsEmitter:M,update:O,translate:P,transition:{setTransition:function(e,t){const i=this;i.params.cssMode||i.$wrapperEl.transition(e),i.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const i=this,{params:n}=i;n.cssMode||(n.autoHeight&&i.updateAutoHeight(),D({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const i=this,{params:n}=i;i.animating=!1,n.cssMode||(i.setTransition(0),D({swiper:i,runCallbacks:e,direction:t,step:"End"}))}},slide:I,loop:$,grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;i.style.cursor="move",i.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:V,breakpoints:Y,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:n}=i;if(n){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*n;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:X,images:{loadImage:function(e,t,i,n,s,r){const a=l();let o;function c(){r&&r()}g(e).parent("picture")[0]||e.complete&&s?c():t?(o=new a.Image,o.onload=c,o.onerror=c,n&&(o.sizes=n),i&&(o.srcset=i),t&&(o.src=t)):c()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let i=0;i1){const e=[];return g(i.el).each((t=>{const n=w({},i,{el:t});e.push(new Q(n))})),e}const n=this;n.__swiper__=!0,n.support=k(),n.device=L({userAgent:i.userAgent}),n.browser=A(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],i.modules&&Array.isArray(i.modules)&&n.modules.push(...i.modules);const s={};n.modules.forEach((e=>{e({swiper:n,extendParams:J(i,s),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})}));const r=w({},U,s);return n.params=w({},r,Z,i),n.originalParams=w({},n.params),n.passedParams=w({},i),n.params&&n.params.on&&Object.keys(n.params.on).forEach((e=>{n.on(e,n.params.on[e])})),n.params&&n.params.onAny&&n.onAny(n.params.onAny),n.$=g,Object.assign(n,{enabled:n.params.enabled,el:t,classNames:[],slides:g(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===n.params.direction,isVertical:()=>"vertical"===n.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return n.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},n.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},n.support.touch||!n.params.simulateTouch?n.touchEventsTouch:n.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:_(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const n=i.minTranslate(),s=(i.maxTranslate()-n)*e+n;i.translateTo(s,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((i=>{const n=e.getSlideClasses(i);t.push({slideEl:i,classNames:n}),e.emit("_slideClass",i,n)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:i,slides:n,slidesGrid:s,slidesSizesGrid:r,size:a,activeIndex:o}=this;let l=1;if(i.centeredSlides){let e,t=n[o].swiperSlideSize;for(let i=o+1;ia&&(e=!0));for(let i=o-1;i>=0;i-=1)n[i]&&!e&&(t+=n[i].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=o+1;e=0;e-=1){s[o]-s[e]1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),s||n()),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const i=this,n=i.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(i.$el.removeClass(`${i.params.containerModifierClass}${n}`).addClass(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const i=g(e||t.params.el);if(!(e=i[0]))return!1;e.swiper=t;const n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=g(e.shadowRoot.querySelector(n()));return t.children=e=>i.children(e),t}return i.children?i.children(n()):g(i).children(n())})();if(0===s.length&&t.params.createElements){const e=a().createElement("div");s=g(e),e.className=t.params.wrapperClass,i.append(e),i.children(`.${t.params.slideClass}`).each((e=>{s.append(e)}))}return Object.assign(t,{$el:i,el:e,$wrapperEl:s,wrapperEl:s[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===s.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const i=this,{params:n,$el:s,$wrapperEl:r,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),s.removeAttr("style"),r.removeAttr("style"),a&&a.length&&a.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((e=>{i.off(e)})),!1!==e&&(i.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(i)),i.destroyed=!0),null}static extendDefaults(e){w(Z,e)}static get extendedDefaults(){return Z}static get defaults(){return U}static installModule(e){Q.prototype.__modules__||(Q.prototype.__modules__=[]);const t=Q.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>Q.installModule(e))),Q):(Q.installModule(e),Q)}}Object.keys(K).forEach((e=>{Object.keys(K[e]).forEach((t=>{Q.prototype[t]=K[e][t]}))})),Q.use([function({swiper:e,on:t,emit:i}){const n=l();let s=null,r=null;const a=()=>{e&&!e.destroyed&&e.initialized&&(i("beforeResize"),i("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&i("orientationchange")};t("init",(()=>{e.params.resizeObserver&&void 0!==n.ResizeObserver?e&&!e.destroyed&&e.initialized&&(s=new ResizeObserver((t=>{r=n.requestAnimationFrame((()=>{const{width:i,height:n}=e;let s=i,r=n;t.forEach((({contentBoxSize:t,contentRect:i,target:n})=>{n&&n!==e.el||(s=i?i.width:(t[0]||t).inlineSize,r=i?i.height:(t[0]||t).blockSize)})),s===i&&r===n||a()}))})),s.observe(e.el)):(n.addEventListener("resize",a),n.addEventListener("orientationchange",o))})),t("destroy",(()=>{r&&n.cancelAnimationFrame(r),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",o)}))},function({swiper:e,extendParams:t,on:i,emit:n}){const s=[],r=l(),a=(e,t={})=>{const i=new(r.MutationObserver||r.WebkitMutationObserver)((e=>{if(1===e.length)return void n("observerUpdate",e[0]);const t=function(){n("observerUpdate",e[0])};r.requestAnimationFrame?r.requestAnimationFrame(t):r.setTimeout(t,0)}));i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),s.push(i)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",(()=>{if(e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e{s.forEach((e=>{e.disconnect()})),s.splice(0,s.length)}))}]);var ee=Q;function te(e,t,i,n){const s=a();return e.params.createElements&&Object.keys(n).forEach((r=>{if(!i[r]&&!0===i.auto){let a=e.$el.children(`.${n[r]}`)[0];a||(a=s.createElement("div"),a.className=n[r],e.$el.append(a)),i[r]=a,t[r]=a}})),i}function ie({swiper:e,extendParams:t,on:i,emit:n}){function s(t){let i;return t&&(i=g(t),e.params.uniqueNavElements&&"string"==typeof t&&i.length>1&&1===e.$el.find(t).length&&(i=e.$el.find(t))),i}function r(t,i){const n=e.params.navigation;t&&t.length>0&&(t[i?"addClass":"removeClass"](n.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=i),e.params.watchOverflow&&e.enabled&&t[e.isLocked?"addClass":"removeClass"](n.lockClass))}function a(){if(e.params.loop)return;const{$nextEl:t,$prevEl:i}=e.navigation;r(i,e.isBeginning&&!e.params.rewind),r(t,e.isEnd&&!e.params.rewind)}function o(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),n("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),n("navigationNext"))}function c(){const t=e.params.navigation;if(e.params.navigation=te(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;const i=s(t.nextEl),n=s(t.prevEl);i&&i.length>0&&i.on("click",l),n&&n.length>0&&n.on("click",o),Object.assign(e.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:n,prevEl:n&&n[0]}),e.enabled||(i&&i.addClass(t.lockClass),n&&n.addClass(t.lockClass))}function d(){const{$nextEl:t,$prevEl:i}=e.navigation;t&&t.length&&(t.off("click",l),t.removeClass(e.params.navigation.disabledClass)),i&&i.length&&(i.off("click",o),i.removeClass(e.params.navigation.disabledClass))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},i("init",(()=>{!1===e.params.navigation.enabled?u():(c(),a())})),i("toEdge fromEdge lock unlock",(()=>{a()})),i("destroy",(()=>{d()})),i("enable disable",(()=>{const{$nextEl:t,$prevEl:i}=e.navigation;t&&t[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),i&&i[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)})),i("click",((t,i)=>{const{$nextEl:s,$prevEl:r}=e.navigation,a=i.target;if(e.params.navigation.hideOnClick&&!g(a).is(r)&&!g(a).is(s)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;let t;s?t=s.hasClass(e.params.navigation.hiddenClass):r&&(t=r.hasClass(e.params.navigation.hiddenClass)),n(!0===t?"navigationShow":"navigationHide"),s&&s.toggleClass(e.params.navigation.hiddenClass),r&&r.toggleClass(e.params.navigation.hiddenClass)}}));const u=()=>{e.$el.addClass(e.params.navigation.navigationDisabledClass),d()};Object.assign(e.navigation,{enable:()=>{e.$el.removeClass(e.params.navigation.navigationDisabledClass),c(),a()},disable:u,update:a,init:c,destroy:d})}function ne(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function se({swiper:e,extendParams:t,on:i,emit:n}){const s="swiper-pagination";let r;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,$el:null,bullets:[]};let a=0;function o(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function l(t,i){const{bulletActiveClass:n}=e.params.pagination;t[i]().addClass(`${n}-${i}`)[i]().addClass(`${n}-${i}-${i}`)}function c(){const t=e.rtl,i=e.params.pagination;if(o())return;const s=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,c=e.pagination.$el;let d;const u=e.params.loop?Math.ceil((s-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(d=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),d>s-1-2*e.loopedSlides&&(d-=s-2*e.loopedSlides),d>u-1&&(d-=u),d<0&&"bullets"!==e.params.paginationType&&(d=u+d)):d=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===i.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const n=e.pagination.bullets;let s,o,u;if(i.dynamicBullets&&(r=n.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),c.css(e.isHorizontal()?"width":"height",r*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==e.previousIndex&&(a+=d-(e.previousIndex-e.loopedSlides||0),a>i.dynamicMainBullets-1?a=i.dynamicMainBullets-1:a<0&&(a=0)),s=Math.max(d-a,0),o=s+(Math.min(n.length,i.dynamicMainBullets)-1),u=(o+s)/2),n.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${i.bulletActiveClass}${e}`)).join(" ")),c.length>1)n.each((e=>{const t=g(e),n=t.index();n===d&&t.addClass(i.bulletActiveClass),i.dynamicBullets&&(n>=s&&n<=o&&t.addClass(`${i.bulletActiveClass}-main`),n===s&&l(t,"prev"),n===o&&l(t,"next"))}));else{const t=n.eq(d),r=t.index();if(t.addClass(i.bulletActiveClass),i.dynamicBullets){const t=n.eq(s),a=n.eq(o);for(let e=s;e<=o;e+=1)n.eq(e).addClass(`${i.bulletActiveClass}-main`);if(e.params.loop)if(r>=n.length){for(let e=i.dynamicMainBullets;e>=0;e-=1)n.eq(n.length-e).addClass(`${i.bulletActiveClass}-main`);n.eq(n.length-i.dynamicMainBullets-1).addClass(`${i.bulletActiveClass}-prev`)}else l(t,"prev"),l(a,"next");else l(t,"prev"),l(a,"next")}}if(i.dynamicBullets){const s=Math.min(n.length,i.dynamicMainBullets+4),a=(r*s-r)/2-u*r,o=t?"right":"left";n.css(e.isHorizontal()?o:"top",`${a}px`)}}if("fraction"===i.type&&(c.find(ne(i.currentClass)).text(i.formatFractionCurrent(d+1)),c.find(ne(i.totalClass)).text(i.formatFractionTotal(u))),"progressbar"===i.type){let t;t=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const n=(d+1)/u;let s=1,r=1;"horizontal"===t?s=n:r=n,c.find(ne(i.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${s}) scaleY(${r})`).transition(e.params.speed)}"custom"===i.type&&i.renderCustom?(c.html(i.renderCustom(e,d+1,u)),n("paginationRender",c[0])):n("paginationUpdate",c[0]),e.params.watchOverflow&&e.enabled&&c[e.isLocked?"addClass":"removeClass"](i.lockClass)}function d(){const t=e.params.pagination;if(o())return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,s=e.pagination.$el;let r="";if("bullets"===t.type){let n=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&n>i&&(n=i);for(let i=0;i`;s.html(r),e.pagination.bullets=s.find(ne(t.bulletClass))}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):` / `,s.html(r)),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):``,s.html(r)),"custom"!==t.type&&n("paginationRender",e.pagination.$el[0])}function u(){e.params.pagination=te(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let i=g(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&i.length>1&&(i=e.$el.find(t.el),i.length>1&&(i=i.filter((t=>g(t).parents(".swiper")[0]===e.el)))),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),i.addClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(`${t.modifierClass}${t.type}-dynamic`),a=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click",ne(t.bulletClass),(function(t){t.preventDefault();let i=g(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)})),Object.assign(e.pagination,{$el:i,el:i[0]}),e.enabled||i.addClass(t.lockClass))}function p(){const t=e.params.pagination;if(o())return;const i=e.pagination.$el;i.removeClass(t.hiddenClass),i.removeClass(t.modifierClass+t.type),i.removeClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&i.off("click",ne(t.bulletClass))}i("init",(()=>{!1===e.params.pagination.enabled?h():(u(),d(),c())})),i("activeIndexChange",(()=>{(e.params.loop||void 0===e.snapIndex)&&c()})),i("snapIndexChange",(()=>{e.params.loop||c()})),i("slidesLengthChange",(()=>{e.params.loop&&(d(),c())})),i("snapGridLengthChange",(()=>{e.params.loop||(d(),c())})),i("destroy",(()=>{p()})),i("enable disable",(()=>{const{$el:t}=e.pagination;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)})),i("lock unlock",(()=>{c()})),i("click",((t,i)=>{const s=i.target,{$el:r}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&r&&r.length>0&&!g(s).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&s===e.navigation.nextEl||e.navigation.prevEl&&s===e.navigation.prevEl))return;const t=r.hasClass(e.params.pagination.hiddenClass);n(!0===t?"paginationShow":"paginationHide"),r.toggleClass(e.params.pagination.hiddenClass)}}));const h=()=>{e.$el.addClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.paginationDisabledClass),p()};Object.assign(e.pagination,{enable:()=>{e.$el.removeClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.removeClass(e.params.pagination.paginationDisabledClass),u(),d(),c()},disable:h,render:d,update:c,init:u,destroy:p})}var re=i(9283),ae=i.n(re),oe={init(){this.toggleMenu(),this.closeMenu()},toggleMenu(){const e=document.querySelectorAll('[data-el="bic-c-hamburger-toggle"]');e&&e.forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault();const i=null!==(t=e.currentTarget)&&void 0!==t?t:e.target,n=i.dataset.target_menu;if(void 0!==n){const e=document.querySelector(n);this.submenu(e).init(),i.classList.contains("active")&&this.submenu(e).closeAll(),e.classList.toggle("hidden")}}))}))},closeMenu(){const e=document.querySelectorAll('[data-el="bic-c-hamburger-close"]');e&&e.forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault();const i=null!==(t=e.currentTarget)&&void 0!==t?t:e.target,n=i.dataset.target_menu;if(void 0!==n){const e=document.querySelector(n);if(!e)return;i.classList.contains("active")&&this.submenu(e).closeAll(),e.classList.add("hidden")}}))}))},submenu:(e=null)=>e?{init(){e.querySelectorAll(".menu-item-has-children").forEach((e=>{const t=e.querySelector(".dropdown-menu");this.parentClick(e,t)}))},parentClick(e,t){e&&e.addEventListener("click",(()=>{t&&t.classList.toggle("hidden"),e.classList.toggle("active")}))},closeAll(){e.querySelectorAll(".menu-item-has-children").forEach((e=>{const t=e.querySelector(".dropdown-menu");t&&!t.classList.contains("hidden")&&(e.classList.remove("active"),t.classList.add("hidden"))}))}}:null},le=i(1383);var ce=function(){return{init(){this._log("analyticGA4: init"),this.group_ButtonDropdown(),this.group_LinkExists(),this.group_LinkExistsGroup()},group_ButtonDropdown(){const e=this,t=document.querySelectorAll('[data-analytic="button-dropdown"]');this._log("analyticGA4: button-dropdown="+t.length),t.forEach((t=>{["click","mouseenter"].forEach((function(i){t.addEventListener(i,(t=>{let i=[];const n=t.target.hasAttribute("data-analytic")?t.target:t.target.closest('[data-analytic="button-dropdown"]'),s=n.getAttribute("data-analytic_event");n.querySelectorAll("a").forEach((e=>{i.push(e.getAttribute("href"))})),0==n.hasAttribute("analytic-done")&&e.sendToDataLayer(s,i),n.setAttribute("analytic-done","")}),!1)}))}))},group_LinkExists(){const e=this,t=document.querySelectorAll('[data-analytic="link-exists"]');this._log("analyticGA4: link-exists="+t.length),t.forEach((t=>{let i=[];const n=t.getAttribute("data-analytic_event");i.push(t.getAttribute("href")),e.sendToDataLayer(n,i)}))},group_LinkExistsGroup(){const e=this;let t={};const i=document.querySelectorAll('[data-analytic="link-exists-group"]:not([href=""])');this._log("analyticGA4: link-exists-group="+i.length),i.forEach((e=>{const i=e.getAttribute("data-analytic_event"),n=e.getAttribute("href");t.hasOwnProperty(i)||(t[i]=[]),n.length>0&&t[i].push(n)}));for(let i in t){let n=t[i];n.length>0&&e.sendToDataLayer(i,n)}},sendToDataLayer(e,t){"undefined"!=typeof dataLayer&&window.dataLayer.push({event:e,data:t}),this._log(e,t)},_log(...e){localStorage.getItem("bic_debug_log")}}};var de=function(){return{init(){const e=this;e.lcStKey="bicSubscribeEmail";const t=document.querySelectorAll('[data-el="email-subscription-block"]');if(null==t)return;let i=localStorage.getItem(this.lcStKey)||"";const n="undefined"!=typeof bicSubscribeBlockShowAlways&&bicSubscribeBlockShowAlways;""!==i&&!1===n||(window.addEventListener("resize",(()=>{e.initBgrs()})),t.forEach((t=>{t.classList.remove("hidden");var i=t.querySelector('[data-el="email-subscription-block__main-form"]'),n=t.querySelector('[data-el="email-subscription-block__after-submited"]');i.querySelector("form").addEventListener("submit",(t=>{t.preventDefault();let s=t.target.getAttribute("action"),r=t.target.querySelector('input[type="email"]');var a=t.target.querySelector("button"),o=t.target.querySelector('[data-el="form-error"]'),l=i.querySelector('[data-el="form-spiner"]');o.innerText="",o.classList.remove("hidden"),o.classList.add("hidden"),r.classList.remove("invalid");if(""!=r.value&&/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(r.value)){a.setAttribute("disabled","disabled"),l.classList.remove("hidden");let c=new FormData(t.target),d=new URLSearchParams(c).toString(),u=new XMLHttpRequest;u.open("POST",s),u.setRequestHeader("Content-type","application/x-www-form-urlencoded"),u.send(d),u.onreadystatechange=function(){l.classList.add("hidden"),4==this.readyState&&200==this.status?(i.classList.add("hidden"),n.classList.remove("hidden"),localStorage.setItem(e.lcStKey,r.value)):(o.classList.remove("hidden"),o.innerText=this.responseText),a.removeAttribute("disabled")}}else o.classList.remove("hidden"),o.innerText="Invalid email";return!1}))})),this.initBgrs())},initBgrs(){let e=document.querySelectorAll('[data-el="email-subscription-block__img-left"]');e.forEach((e=>{const t=e.closest('[data-el="email-subscription-block"]');e.setAttribute("style","left:-"+t.getBoundingClientRect().left+"px")})),e=document.querySelectorAll('[data-el="email-subscription-block__img-right"]'),e.forEach((e=>{const t=e.closest('[data-el="email-subscription-block"]');let i=document.querySelector("body").getBoundingClientRect().width-t.getBoundingClientRect().right;e.setAttribute("style","right:-"+i+"px")}))}}};var ue=function(){return{init(){const e=document.querySelector('[data-el="bic-table-of-contents"]');if(null==e)return;this.initStickyBlock(e);const t=document.querySelector('[data-el="bic-toc-sticky"]');this.tocStickyLinks=t.querySelector('[data-el="bic-toc-sticky__itemswrap"]').querySelectorAll("a"),this.tocBaseLinks=e.querySelector(".bic_toc__itemswrap").querySelectorAll("a"),this.displayStickyBlock(t),this.switchActionInit(t),this.scrollToAnchorInit(this.tocStickyLinks),this.scrollToAnchorInit(this.tocBaseLinks),this.scrollPosition(this.tocStickyLinks),this.initHClasses(e);let i=document.createElement("style");i.setAttribute("id","bic-toc-styles"),i.textContent="h2, h3, h4 {scroll-margin-top: 75px;} .listicle-card h2 {scroll-margin-top: 100px;} @media (max-width: 1024px) {h2, h3, h4 {scroll-margin-top: 60px;} .listicle-card h2 {scroll-margin-top: 350px;}}",document.querySelector("body").appendChild(i)},initHClasses(e){const t=e.closest(".entry-content-inner").querySelectorAll("h1, h2, h3, h4, h5, h6"),i=document.querySelector('[data-el="bic-toc-sticky"]');t.forEach((t=>{const n="cl-"+t.tagName;let s=t.getAttribute("id"),r=e.querySelector('[href="#'+s+'"]');r&&r.classList.add(n),r=i.querySelector('[href="#'+s+'"]'),r&&r.classList.add(n)}))},initStickyBlock(e){let t=document.createElement("div");t.setAttribute("data-el","bic-toc-sticky"),t.className="hidden bic_toc_sticky";let i=document.createElement("div");i.setAttribute("data-el","bic-toc-sticky__current"),i.className="bic_toc__current",i.textContent=document.querySelector("header h1").textContent,t.appendChild(i);let n=document.createElement("div");n.className="bic_toc__switchwrap";let s=document.createElement("a");s.className="bic_toc__switch not-link",s.setAttribute("data-el","bic-toc-sticky__switch"),s.setAttribute("href","#"),s.setAttribute("title",e.querySelector(".ht_toc_title").textContent),s.innerHTML=""+e.querySelector(".ht_toc_title").textContent+"",n.appendChild(s);let r=document.createElement("div");r.className="bic_toc__itemswrap",r.setAttribute("data-el","bic-toc-sticky__itemswrap");let a=document.createElement("div");a.className="bic_toc__title",a.textContent=e.querySelector(".ht_toc_title").textContent,r.appendChild(a);let o=document.createElement("div");o.className="bic_toc__items bic-default-scroll",o.appendChild(e.querySelector(".bic_toc__itemswrap .ht_toc_list").cloneNode(!0)),r.appendChild(o),n.appendChild(r),t.appendChild(n),document.querySelector("body").appendChild(t)},displayStickyBlock(e){const t=document.querySelector('[data-el="bic-table-of-contents"]');var i=this;addEventListener("scroll",(()=>{t.offsetTop+t.offsetHeight{i.preventDefault();const n=e.querySelector('[data-el="bic-toc-sticky__switch"]');n.classList.toggle("opened"),e.querySelector('[data-el="bic-toc-sticky__itemswrap"]').classList.toggle("opened");let s=decodeURI(window.location.hash.substr(1));s&&t.changeLinkStatus(s),n.classList.contains("opened")&&t.sendEvent("toc__open")}))},scrollToAnchorInit(e){var t=this;e.forEach((e=>{e.addEventListener("click",(i=>{i.preventDefault(),t.scrollToAnchor(e),null!==e.closest('[data-el="bic-table-of-contents"]')&&t.sendEvent("toc__click_main_widget"),null!==e.closest('[data-el="bic-toc-sticky"]')&&t.sendEvent("toc__click_floating_widget")}))}))},scrollToAnchor(e){const t=this.getAnchor(e),i=document.getElementById(t);let n=location.hash?window.location.href.replace(location.hash,"#"+t):window.location.href+"#"+t;window.history.replaceState("",document.title,n),this.changeLinkStatus(t),i.scrollIntoView({behavior:"smooth",block:"start"})},changeLinkStatus(e){this.tocStickyLinks.forEach((t=>{const i=this.getAnchor(t);e!==i?t.classList.remove("current"):(t.classList.add("current"),t.scrollIntoView({behavior:"auto",block:"center"}))}))},getAnchor(e){let t=e.getAttribute("href").split("#");return 2==t.length?t[1]:""},sendEvent(e){"undefined"!=typeof dataLayer&&window.dataLayer.push({event:e})},scrollPosition(e){var t=this;window.addEventListener("scroll",(()=>{var i=!1;e.forEach((e=>{let n=this.getAnchor(e),s=window.scrollY-document.getElementById(n).offsetTop;0==i&&s<300&&s>200&&s>0&&(t.changeLinkStatus(n),i=!0)}))}),{passive:!0})}}};function pe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function he(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*! * GSAP 3.12.5 * https://gsap.com * * @license Copyright 2008-2024, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */ var fe,me,ge,ve,_e,be,ye,we,xe,Te,Se,Ce,Ee,ke,Le,Ae={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Me={duration:.5,overwrite:!1,delay:0},Oe=1e8,Pe=1e-8,De=2*Math.PI,Ie=De/4,$e=0,qe=Math.sqrt,ze=Math.cos,Be=Math.sin,Ne=function(e){return"string"==typeof e},Fe=function(e){return"function"==typeof e},Re=function(e){return"number"==typeof e},Ge=function(e){return void 0===e},He=function(e){return"object"==typeof e},je=function(e){return!1!==e},Ve=function(){return"undefined"!=typeof window},We=function(e){return Fe(e)||Ne(e)},Ye="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Xe=Array.isArray,Ue=/(?:-?\.?\d|\.)+/gi,Je=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ke=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ze=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Qe=/[+-]=-?[.\d]+/,et=/[^,'"\[\]\s]+/gi,tt=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,it={},nt={},st=function(e){return(nt=Dt(e,it))&&$n},rt=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},at=function(e,t){return!t&&console.warn(e)},ot=function(e,t){return e&&(it[e]=t)&&nt&&(nt[e]=t)||it},lt=function(){return 0},ct={suppressEvents:!0,isStart:!0,kill:!1},dt={suppressEvents:!0,kill:!1},ut={suppressEvents:!0},pt={},ht=[],ft={},mt={},gt={},vt=30,_t=[],bt="",yt=function(e){var t,i,n=e[0];if(He(n)||Fe(n)||(e=[e]),!(t=(n._gsap||{}).harness)){for(i=_t.length;i--&&!_t[i].targetTest(n););t=_t[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Xi(e[i],t)))||e.splice(i,1);return e},wt=function(e){return e._gsap||yt(ui(e))[0]._gsap},xt=function(e,t,i){return(i=e[t])&&Fe(i)?e[t]():Ge(i)&&e.getAttribute&&e.getAttribute(t)||i},Tt=function(e,t){return(e=e.split(",")).forEach(t)||e},St=function(e){return Math.round(1e5*e)/1e5||0},Ct=function(e){return Math.round(1e7*e)/1e7||0},Et=function(e,t){var i=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),"+"===i?e+n:"-"===i?e-n:"*"===i?e*n:e/n},kt=function(e,t){for(var i=t.length,n=0;e.indexOf(t[n])<0&&++nr;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[i],e[i]=t),t._next?t._next._prev=t:e[n]=t,t._prev=a,t.parent=t._dp=e,t},Bt=function(e,t,i,n){void 0===i&&(i="_first"),void 0===n&&(n="_last");var s=t._prev,r=t._next;s?s._next=r:e[i]===t&&(e[i]=r),r?r._prev=s:e[n]===t&&(e[n]=s),t._next=t._prev=t.parent=null},Nt=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ft=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var i=e;i;)i._dirty=1,i=i.parent;return e},Rt=function(e,t,i,n){return e._startAt&&(me?e._startAt.revert(dt):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},Gt=function e(t){return!t||t._ts&&e(t.parent)},Ht=function(e){return e._repeat?jt(e._tTime,e=e.duration()+e._rDelay)*e:0},jt=function(e,t){var i=Math.floor(e/=t);return e&&i===e?i-1:i},Vt=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Wt=function(e){return e._end=Ct(e._start+(e._tDur/Math.abs(e._ts||e._rts||Pe)||0))},Yt=function(e,t){var i=e._dp;return i&&i.smoothChildTiming&&e._ts&&(e._start=Ct(i._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Wt(e),i._dirty||Ft(i,e)),e},Xt=function(e,t){var i;if((t._time||!t._dur&&t._initted||t._startPe)&&t.render(i,!0)),Ft(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&i.totalTime(i._tTime),i=i._dp;e._zTime=-1e-8}},Ut=function(e,t,i,n){return t.parent&&Nt(t),t._start=Ct((Re(i)?i:i||e!==ve?ni(e,i,t):e._time)+t._delay),t._end=Ct(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),zt(e,t,"_first","_last",e._sort?"_start":0),Qt(t)||(e._recent=t),n||Xt(e,t),e._ts<0&&Yt(e,e._tTime),e},Jt=function(e,t){return(it.ScrollTrigger||rt("scrollTrigger",t))&&it.ScrollTrigger.create(t,e)},Kt=function(e,t,i,n,s){return nn(e,t,s),e._initted?!i&&e._pt&&!me&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&xe!==$i.frame?(ht.push(e),e._lazy=[s,n],1):void 0:1},Zt=function e(t){var i=t.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||e(i))},Qt=function(e){var t=e.data;return"isFromStart"===t||"isStart"===t},ei=function(e,t,i,n){var s=e._repeat,r=Ct(t)||0,a=e._tTime/e._tDur;return a&&!n&&(e._time*=r/e._dur),e._dur=r,e._tDur=s?s<0?1e10:Ct(r*(s+1)+e._rDelay*s):r,a>0&&!n&&Yt(e,e._tTime=e._tDur*a),e.parent&&Wt(e),i||Ft(e.parent,e),e},ti=function(e){return e instanceof Ji?Ft(e):ei(e,e._dur)},ii={_start:0,endTime:lt,totalDuration:lt},ni=function e(t,i,n){var s,r,a,o=t.labels,l=t._recent||ii,c=t.duration()>=Oe?l.endTime(!1):t._dur;return Ne(i)&&(isNaN(i)||i in o)?(r=i.charAt(0),a="%"===i.substr(-1),s=i.indexOf("="),"<"===r||">"===r?(s>=0&&(i=i.replace(/=/,"")),("<"===r?l._start:l.endTime(l._repeat>=0))+(parseFloat(i.substr(1))||0)*(a?(s<0?l:n).totalDuration()/100:1)):s<0?(i in o||(o[i]=c),o[i]):(r=parseFloat(i.charAt(s-1)+i.substr(s+1)),a&&n&&(r=r/100*(Xe(n)?n[0]:n).totalDuration()),s>1?e(t,i.substr(0,s-1),n)+r:c+r)):null==i?c:+i},si=function(e,t,i){var n,s,r=Re(t[1]),a=(r?2:1)+(e<2?0:1),o=t[a];if(r&&(o.duration=t[1]),o.parent=i,e){for(n=o,s=i;s&&!("immediateRender"in n);)n=s.vars.defaults||{},s=je(s.vars.inherit)&&s.parent;o.immediateRender=je(n.immediateRender),e<2?o.runBackwards=1:o.startAt=t[a-1]}return new ln(t[0],o,t[a+1])},ri=function(e,t){return e||0===e?t(e):t},ai=function(e,t,i){return it?t:i},oi=function(e,t){return Ne(e)&&(t=tt.exec(e))?t[1]:""},li=[].slice,ci=function(e,t){return e&&He(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&He(e[0]))&&!e.nodeType&&e!==_e},di=function(e,t,i){return void 0===i&&(i=[]),e.forEach((function(e){var n;return Ne(e)&&!t||ci(e,1)?(n=i).push.apply(n,ui(e)):i.push(e)}))||i},ui=function(e,t,i){return ge&&!t&&ge.selector?ge.selector(e):!Ne(e)||i||!be&&qi()?Xe(e)?di(e,i):ci(e)?li.call(e,0):e?[e]:[]:li.call((t||ye).querySelectorAll(e),0)},pi=function(e){return e=ui(e)[0]||at("Invalid scope")||{},function(t){var i=e.current||e.nativeElement||e;return ui(t,i.querySelectorAll?i:i===e?at("Invalid scope")||ye.createElement("div"):e)}},hi=function(e){return e.sort((function(){return.5-Math.random()}))},fi=function(e){if(Fe(e))return e;var t=He(e)?e:{each:e},i=Hi(t.ease),n=t.from||0,s=parseFloat(t.base)||0,r={},a=n>0&&n<1,o=isNaN(n)||a,l=t.axis,c=n,d=n;return Ne(n)?c=d={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(c=n[0],d=n[1]),function(e,a,u){var p,h,f,m,g,v,_,b,y,w=(u||t).length,x=r[w];if(!x){if(!(y="auto"===t.grid?0:(t.grid||[1,Oe])[1])){for(_=-Oe;_<(_=u[y++].getBoundingClientRect().left)&&y_&&(_=g),gw?w-1:l?"y"===l?w/y:y:Math.max(y,w/y))||0)*("edges"===n?-1:1),x.b=w<0?s-w:s,x.u=oi(t.amount||t.each)||0,i=i&&w<0?Ri(i):i}return w=(x[e]-x.min)/x.max||0,Ct(x.b+(i?i(w):w)*x.v)+x.u}},mi=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(i){var n=Ct(Math.round(parseFloat(i)/e)*e*t);return(n-n%1)/t+(Re(i)?0:oi(i))}},gi=function(e,t){var i,n,s=Xe(e);return!s&&He(e)&&(i=s=e.radius||Oe,e.values?(e=ui(e.values),(n=!Re(e[0]))&&(i*=i)):e=mi(e.increment)),ri(t,s?Fe(e)?function(t){return n=e(t),Math.abs(n-t)<=i?n:t}:function(t){for(var s,r,a=parseFloat(n?t.x:t),o=parseFloat(n?t.y:0),l=Oe,c=0,d=e.length;d--;)(s=n?(s=e[d].x-a)*s+(r=e[d].y-o)*r:Math.abs(e[d]-a))(s=Math.abs(s))&&(r=n,o=s);return r},xi=function(e,t,i){var n,s,r,a=e.vars,o=a[t],l=ge,c=e._ctx;if(o)return n=a[t+"Params"],s=a.callbackScope||e,i&&ht.length&&Lt(),c&&(ge=c),r=n?o.apply(s,n):o.call(s),ge=l,r},Ti=function(e){return Nt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!me),e.progress()<1&&xi(e,"onInterrupt"),e},Si=[],Ci=function(e){if(e)if(e=!e.name&&e.default||e,Ve()||e.headless){var t=e.name,i=Fe(e),n=t&&!i&&e.init?function(){this._props=[]}:e,s={init:lt,render:vn,add:en,kill:bn,modifier:_n,rawVars:0},r={targetTest:0,get:0,getSetter:hn,aliases:{},register:0};if(qi(),e!==n){if(mt[t])return;Pt(n,Pt($t(e,s),r)),Dt(n.prototype,Dt(s,$t(e,r))),mt[n.prop=t]=n,e.targetTest&&(_t.push(n),pt[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}ot(t,n),e.register&&e.register($n,n,xn)}else Si.push(e)},Ei=255,ki={aqua:[0,Ei,Ei],lime:[0,Ei,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ei],navy:[0,0,128],white:[Ei,Ei,Ei],olive:[128,128,0],yellow:[Ei,Ei,0],orange:[Ei,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ei,0,0],pink:[Ei,192,203],cyan:[0,Ei,Ei],transparent:[Ei,Ei,Ei,0]},Li=function(e,t,i){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(i-t)*e*6:e<.5?i:3*e<2?t+(i-t)*(2/3-e)*6:t)*Ei+.5|0},Ai=function(e,t,i){var n,s,r,a,o,l,c,d,u,p,h=e?Re(e)?[e>>16,e>>8&Ei,e&Ei]:0:ki.black;if(!h){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),ki[e])h=ki[e];else if("#"===e.charAt(0)){if(e.length<6&&(n=e.charAt(1),s=e.charAt(2),r=e.charAt(3),e="#"+n+n+s+s+r+r+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(h=parseInt(e.substr(1,6),16))>>16,h>>8&Ei,h&Ei,parseInt(e.substr(7),16)/255];h=[(e=parseInt(e.substr(1),16))>>16,e>>8&Ei,e&Ei]}else if("hsl"===e.substr(0,3))if(h=p=e.match(Ue),t){if(~e.indexOf("="))return h=e.match(Je),i&&h.length<4&&(h[3]=1),h}else a=+h[0]%360/360,o=+h[1]/100,n=2*(l=+h[2]/100)-(s=l<=.5?l*(o+1):l+o-l*o),h.length>3&&(h[3]*=1),h[0]=Li(a+1/3,n,s),h[1]=Li(a,n,s),h[2]=Li(a-1/3,n,s);else h=e.match(Ue)||ki.transparent;h=h.map(Number)}return t&&!p&&(n=h[0]/Ei,s=h[1]/Ei,r=h[2]/Ei,l=((c=Math.max(n,s,r))+(d=Math.min(n,s,r)))/2,c===d?a=o=0:(u=c-d,o=l>.5?u/(2-c-d):u/(c+d),a=c===n?(s-r)/u+(so||b<0)&&(c+=b-l),((m=(v=(d+=b)-c)-p)>0||y)&&(_=++n.frame,s=v-1e3*n.time,n.time=v/=1e3,p+=m+(m>=u?4:u-m),g=1),y||(e=t(i)),g)for(r=0;r=t&&r--},_listeners:h},n}(),qi=function(){return!Se&&$i.wake()},zi={},Bi=/^[\d.\-M][\d.\-,\s]/,Ni=/["']/g,Fi=function(e){for(var t,i,n,s={},r=e.substr(1,e.length-3).split(":"),a=r[0],o=1,l=r.length;o1&&i.config?i.config.apply(null,~e.indexOf("{")?[Fi(t[1])]:function(e){var t=e.indexOf("(")+1,i=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n=1?i:1,r=(n||(t?.3:.45))/(i<1?i:1),a=r/De*(Math.asin(1/s)||0),o=function(e){return 1===e?1:s*Math.pow(2,-10*e)*Be((e-a)*r)+1},l="out"===t?o:"in"===t?function(e){return 1-o(1-e)}:Vi(o);return r=De/r,l.config=function(i,n){return e(t,i,n)},l},Yi=function e(t,i){void 0===i&&(i=1.70158);var n=function(e){return e?--e*e*((i+1)*e+i)+1:0},s="out"===t?n:"in"===t?function(e){return 1-n(1-e)}:Vi(n);return s.config=function(i){return e(t,i)},s};Tt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(e,t){var i=t<5?t+1:t;ji(e+",Power"+(i-1),t?function(e){return Math.pow(e,i)}:function(e){return e},(function(e){return 1-Math.pow(1-e,i)}),(function(e){return e<.5?Math.pow(2*e,i)/2:1-Math.pow(2*(1-e),i)/2}))})),zi.Linear.easeNone=zi.none=zi.Linear.easeIn,ji("Elastic",Wi("in"),Wi("out"),Wi()),Ce=7.5625,ke=1/(Ee=2.75),ji("Bounce",(function(e){return 1-Le(1-e)}),Le=function(e){return e0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,ei(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(qi(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Yt(this,e),!i._dp||i.parent||Xt(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&Ut(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===Pe||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),At(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Ht(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+Ht(this),t):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(e,t){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*i,t):this._repeat?jt(this._tTime,i)+1:1},t.timeScale=function(e,t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var i=this.parent&&this._ts?Vt(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,this.totalTime(ai(-Math.abs(this._delay),this._tDur,i),!1!==t),Wt(this),function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e}(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(qi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Pe&&(this._tTime-=Pe)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Ut(t,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(je(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Vt(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){void 0===e&&(e=ut);var t=me;return me=e,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),"nested"!==this.data&&!1!==e.kill&&this.kill(),me=t,this},t.globalTime=function(e){for(var t=this,i=arguments.length?e:t.rawTime();t;)i=t._start+i/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):i},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,ti(this)):-2===this._repeat?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,ti(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(ni(this,e),je(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,je(t))},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,i=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=i&&e1?(t?(n[e]=t,i&&(n[e+"Params"]=i),"onUpdate"===e&&(this._onUpdate=t)):delete n[e],this):n[e]},t.then=function(e){var t=this;return new Promise((function(i){var n=Fe(e)?e:Ot,s=function(){var e=t.then;t.then=null,Fe(n)&&(n=n(t))&&(n.then||n===t)&&(t.then=e),i(n),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?s():t._prom=s}))},t.kill=function(){Ti(this)},e}();Pt(Ui.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ji=function(e){function t(t,i){var n;return void 0===t&&(t={}),(n=e.call(this,t)||this).labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=je(t.sortChildren),ve&&Ut(t.parent||ve,pe(n),i),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&Jt(pe(n),t.scrollTrigger),n}he(t,e);var i=t.prototype;return i.to=function(e,t,i){return si(0,arguments,this),this},i.from=function(e,t,i){return si(1,arguments,this),this},i.fromTo=function(e,t,i,n){return si(2,arguments,this),this},i.set=function(e,t,i){return t.duration=0,t.parent=this,qt(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new ln(e,t,ni(this,i),1),this},i.call=function(e,t,i){return Ut(this,ln.delayedCall(0,e,t),i)},i.staggerTo=function(e,t,i,n,s,r,a){return i.duration=t,i.stagger=i.stagger||n,i.onComplete=r,i.onCompleteParams=a,i.parent=this,new ln(e,i,ni(this,s)),this},i.staggerFrom=function(e,t,i,n,s,r,a){return i.runBackwards=1,qt(i).immediateRender=je(i.immediateRender),this.staggerTo(e,t,i,n,s,r,a)},i.staggerFromTo=function(e,t,i,n,s,r,a,o){return n.startAt=i,qt(n).immediateRender=je(n.immediateRender),this.staggerTo(e,t,n,s,r,a,o)},i.render=function(e,t,i){var n,s,r,a,o,l,c,d,u,p,h,f,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,_=e<=0?0:Ct(e),b=this._zTime<0!=e<0&&(this._initted||!v);if(this!==ve&&_>g&&e>=0&&(_=g),_!==this._tTime||i||b){if(m!==this._time&&v&&(_+=this._time-m,e+=this._time-m),n=_,u=this._start,l=!(d=this._ts),b&&(v||(m=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(h=this._yoyo,o=v+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*o+e,t,i);if(n=Ct(_%o),_===g?(a=this._repeat,n=v):((a=~~(_/o))&&a===_/o&&(n=v,a--),n>v&&(n=v)),p=jt(this._tTime,o),!m&&this._tTime&&p!==a&&this._tTime-p*o-this._dur<=0&&(p=a),h&&1&a&&(n=v-n,f=1),a!==p&&!this._lock){var y=h&&1&p,w=y===(h&&1&a);if(at)for(n=e._first;n&&n._start<=i;){if("isPause"===n.data&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=i;){if("isPause"===n.data&&n._start=m&&e>=0)for(s=this._first;s;){if(r=s._next,(s._act||n>=s._start)&&s._ts&&c!==s){if(s.parent!==this)return this.render(e,t,i);if(s.render(s._ts>0?(n-s._start)*s._ts:(s._dirty?s.totalDuration():s._tDur)+(n-s._start)*s._ts,t,i),n!==this._time||!this._ts&&!l){c=0,r&&(_+=this._zTime=-1e-8);break}}s=r}else{s=this._last;for(var x=e<0?e:n;s;){if(r=s._prev,(s._act||x<=s._end)&&s._ts&&c!==s){if(s.parent!==this)return this.render(e,t,i);if(s.render(s._ts>0?(x-s._start)*s._ts:(s._dirty?s.totalDuration():s._tDur)+(x-s._start)*s._ts,t,i||me&&(s._initted||s._startAt)),n!==this._time||!this._ts&&!l){c=0,r&&(_+=this._zTime=x?-1e-8:Pe);break}}s=r}}if(c&&!t&&(this.pause(),c.render(n>=m?0:-1e-8)._zTime=n>=m?1:-1,this._ts))return this._start=u,Wt(this),this.render(e,t,i);this._onUpdate&&!t&&xi(this,"onUpdate",!0),(_===g&&this._tTime>=this.totalDuration()||!_&&m)&&(u!==this._start&&Math.abs(d)===Math.abs(this._ts)||this._lock||((e||!v)&&(_===g&&this._ts>0||!_&&this._ts<0)&&Nt(this,1),t||e<0&&!m||!_&&!m&&g||(xi(this,_===g&&e>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(_0)&&this._prom())))}return this},i.add=function(e,t){var i=this;if(Re(t)||(t=ni(this,t,e)),!(e instanceof Ui)){if(Xe(e))return e.forEach((function(e){return i.add(e,t)})),this;if(Ne(e))return this.addLabel(e,t);if(!Fe(e))return this;e=ln.delayedCall(0,e)}return this!==e?Ut(this,e,t):this},i.getChildren=function(e,t,i,n){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===i&&(i=!0),void 0===n&&(n=-Oe);for(var s=[],r=this._first;r;)r._start>=n&&(r instanceof ln?t&&s.push(r):(i&&s.push(r),e&&s.push.apply(s,r.getChildren(!0,t,i)))),r=r._next;return s},i.getById=function(e){for(var t=this.getChildren(1,1,1),i=t.length;i--;)if(t[i].vars.id===e)return t[i]},i.remove=function(e){return Ne(e)?this.removeLabel(e):Fe(e)?this.killTweensOf(e):(Bt(this,e),e===this._recent&&(this._recent=this._last),Ft(this))},i.totalTime=function(t,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ct($i.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,i),this._forcing=0,this):this._tTime},i.addLabel=function(e,t){return this.labels[e]=ni(this,t),this},i.removeLabel=function(e){return delete this.labels[e],this},i.addPause=function(e,t,i){var n=ln.delayedCall(0,t||lt,i);return n.data="isPause",this._hasPause=1,Ut(this,n,ni(this,e))},i.removePause=function(e){var t=this._first;for(e=ni(this,e);t;)t._start===e&&"isPause"===t.data&&Nt(t),t=t._next},i.killTweensOf=function(e,t,i){for(var n=this.getTweensOf(e,i),s=n.length;s--;)Ki!==n[s]&&n[s].kill(e,t);return this},i.getTweensOf=function(e,t){for(var i,n=[],s=ui(e),r=this._first,a=Re(t);r;)r instanceof ln?kt(r._targets,s)&&(a?(!Ki||r._initted&&r._ts)&&r.globalTime(0)<=t&&r.globalTime(r.totalDuration())>t:!t||r.isActive())&&n.push(r):(i=r.getTweensOf(s,t)).length&&n.push.apply(n,i),r=r._next;return n},i.tweenTo=function(e,t){t=t||{};var i,n=this,s=ni(n,e),r=t,a=r.startAt,o=r.onStart,l=r.onStartParams,c=r.immediateRender,d=ln.to(n,Pt({ease:t.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:t.duration||Math.abs((s-(a&&"time"in a?a.time:n._time))/n.timeScale())||Pe,onStart:function(){if(n.pause(),!i){var e=t.duration||Math.abs((s-(a&&"time"in a?a.time:n._time))/n.timeScale());d._dur!==e&&ei(d,e,0,1).render(d._time,!0,!0),i=1}o&&o.apply(d,l||[])}},t));return c?d.render(0):d},i.tweenFromTo=function(e,t,i){return this.tweenTo(t,Pt({startAt:{time:ni(this,e)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(e){return void 0===e&&(e=this._time),wi(this,ni(this,e))},i.previousLabel=function(e){return void 0===e&&(e=this._time),wi(this,ni(this,e),1)},i.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+Pe)},i.shiftChildren=function(e,t,i){void 0===i&&(i=0);for(var n,s=this._first,r=this.labels;s;)s._start>=i&&(s._start+=e,s._end+=e),s=s._next;if(t)for(n in r)r[n]>=i&&(r[n]+=e);return Ft(this)},i.invalidate=function(t){var i=this._first;for(this._lock=0;i;)i.invalidate(t),i=i._next;return e.prototype.invalidate.call(this,t)},i.clear=function(e){void 0===e&&(e=!0);for(var t,i=this._first;i;)t=i._next,this.remove(i),i=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Ft(this)},i.totalDuration=function(e){var t,i,n,s=0,r=this,a=r._last,o=Oe;if(arguments.length)return r.timeScale((r._repeat<0?r.duration():r.totalDuration())/(r.reversed()?-e:e));if(r._dirty){for(n=r.parent;a;)t=a._prev,a._dirty&&a.totalDuration(),(i=a._start)>o&&r._sort&&a._ts&&!r._lock?(r._lock=1,Ut(r,a,i-a._delay,1)._lock=0):o=i,i<0&&a._ts&&(s-=i,(!n&&!r._dp||n&&n.smoothChildTiming)&&(r._start+=i/r._ts,r._time-=i,r._tTime-=i),r.shiftChildren(-i,!1,-Infinity),o=0),a._end>s&&a._ts&&(s=a._end),a=t;ei(r,r===ve&&r._time>s?r._time:s,1,1),r._dirty=0}return r._tDur},t.updateRoot=function(e){if(ve._ts&&(At(ve,Vt(e,ve)),xe=$i.frame),$i.frame>=vt){vt+=Ae.autoSleep||120;var t=ve._first;if((!t||!t._ts)&&Ae.autoSleep&&$i._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||$i.sleep()}}},t}(Ui);Pt(Ji.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ki,Zi,Qi=function(e,t,i,n,s,r,a){var o,l,c,d,u,p,h,f,m=new xn(this._pt,e,t,0,1,gn,null,s),g=0,v=0;for(m.b=i,m.e=n,i+="",(h=~(n+="").indexOf("random("))&&(n=bi(n)),r&&(r(f=[i,n],e,t),i=f[0],n=f[1]),l=i.match(Ze)||[];o=Ze.exec(n);)d=o[0],u=n.substring(g,o.index),c?c=(c+1)%5:"rgba("===u.substr(-5)&&(c=1),d!==l[v++]&&(p=parseFloat(l[v-1])||0,m._pt={_next:m._pt,p:u||1===v?u:",",s:p,c:"="===d.charAt(1)?Et(p,d)-p:parseFloat(d)-p,m:c&&c<4?Math.round:0},g=Ze.lastIndex);return m.c=g")})),a.duration();else{for(d in l={},y)"ease"===d||"easeEach"===d||sn(d,y[d],l,y.easeEach);for(d in l)for(E=l[d].sort((function(e,t){return e.t-t.t})),A=0,o=0;oh-Pe&&!m?h:ef&&(n=f)),(l=this._yoyo&&1&r)&&(u=this._yEase,n=f-n),o=jt(this._tTime,a),n===p&&!i&&this._initted&&r===o)return this._tTime=g,this;r!==o&&(d&&this._yEase&&Gi(d,l),this.vars.repeatRefresh&&!l&&!this._lock&&this._time!==a&&this._initted&&(this._lock=i=1,this.render(Ct(a*r),!0).invalidate()._lock=0))}if(!this._initted){if(Kt(this,m?e:n,i,t,g))return this._tTime=0,this;if(!(p===this._time||i&&this.vars.repeatRefresh&&r!==o))return this;if(f!==this._dur)return this.render(e,t,i)}if(this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(u||this._ease)(n/f),this._from&&(this.ratio=c=1-c),n&&!p&&!t&&!r&&(xi(this,"onStart"),this._tTime!==g))return this;for(s=this._pt;s;)s.r(c,s.d),s=s._next;d&&d.render(e<0?e:d._dur*d._ease(n/this._dur),t,i)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(m&&Rt(this,e,0,i),xi(this,"onUpdate")),this._repeat&&r!==o&&this.vars.onRepeat&&!t&&this.parent&&xi(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Rt(this,e,0,!0),(e||!f)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Nt(this,1),t||m&&!p||!(g||p||l)||(xi(this,g===h?"onComplete":"onReverseComplete",!0),this._prom&&!(g0)&&this._prom()))}}else!function(e,t,i,n){var s,r,a,o=e.ratio,l=t<0||!t&&(!e._start&&Zt(e)&&(e._initted||!Qt(e))||(e._ts<0||e._dp._ts<0)&&!Qt(e))?0:1,c=e._rDelay,d=0;if(c&&e._repeat&&(d=ai(0,e._tDur,t),r=jt(d,c),e._yoyo&&1&r&&(l=1-l),r!==jt(e._tTime,c)&&(o=1-l,e.vars.repeatRefresh&&e._initted&&e.invalidate())),l!==o||me||n||e._zTime===Pe||!t&&e._zTime){if(!e._initted&&Kt(e,t,n,i,d))return;for(a=e._zTime,e._zTime=t||(i?Pe:0),i||(i=t&&!a),e.ratio=l,e._from&&(l=1-l),e._time=0,e._tTime=d,s=e._pt;s;)s.r(l,s.d),s=s._next;t<0&&Rt(e,t,0,!0),e._onUpdate&&!i&&xi(e,"onUpdate"),d&&e._repeat&&!i&&e.parent&&xi(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===l&&(l&&Nt(e,1),i||me||(xi(e,l?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)}(this,e,t,i);return this},i.targets=function(){return this._targets},i.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},i.resetTo=function(e,t,i,n,s){Se||$i.wake(),this._ts||this.play();var r=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||nn(this,r),function(e,t,i,n,s,r,a,o){var l,c,d,u,p=(e._pt&&e._ptCache||(e._ptCache={}))[t];if(!p)for(p=e._ptCache[t]=[],d=e._ptLookup,u=e._targets.length;u--;){if((l=d[u][t])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return Zi=1,e.vars[t]="+=0",nn(e,a),Zi=0,o?at(t+" not eligible for reset"):1;p.push(l)}for(u=p.length;u--;)(l=(c=p[u])._pt||c).s=!n&&0!==n||s?l.s+(n||0)+r*l.c:n,l.c=i-l.s,c.e&&(c.e=St(i)+oi(c.e)),c.b&&(c.b=l.s+oi(c.b))}(this,e,t,i,n,this._ease(r/this._dur),r,s)?this.resetTo(e,t,i,n,1):(Yt(this,0),this.parent||zt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(e,t){if(void 0===t&&(t="all"),!(e||t&&"all"!==t))return this._lazy=this._pt=0,this.parent?Ti(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Ki&&!0!==Ki.vars.overwrite)._first||Ti(this),this.parent&&i!==this.timeline.totalDuration()&&ei(this,this._dur*this.timeline._tDur/i,0,1),this}var n,s,r,a,o,l,c,d=this._targets,u=e?ui(e):d,p=this._ptLookup,h=this._pt;if((!t||"all"===t)&&function(e,t){for(var i=e.length,n=i===t.length;n&&i--&&e[i]===t[i];);return i<0}(d,u))return"all"===t&&(this._pt=0),Ti(this);for(n=this._op=this._op||[],"all"!==t&&(Ne(t)&&(o={},Tt(t,(function(e){return o[e]=1})),t=o),t=function(e,t){var i,n,s,r,a=e[0]?wt(e[0]).harness:0,o=a&&a.aliases;if(!o)return t;for(n in i=Dt({},t),o)if(n in i)for(s=(r=o[n].split(",")).length;s--;)i[r[s]]=i[n];return i}(d,t)),c=d.length;c--;)if(~u.indexOf(d[c]))for(o in s=p[c],"all"===t?(n[c]=t,a=s,r={}):(r=n[c]=n[c]||{},a=t),a)(l=s&&s[o])&&("kill"in l.d&&!0!==l.d.kill(o)||Bt(this,l,"_pt"),delete s[o]),"all"!==r&&(r[o]=1);return this._initted&&!this._pt&&h&&Ti(this),this},t.to=function(e,i){return new t(e,i,arguments[2])},t.from=function(e,t){return si(1,arguments)},t.delayedCall=function(e,i,n,s){return new t(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:i,onReverseComplete:i,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:s})},t.fromTo=function(e,t,i){return si(2,arguments)},t.set=function(e,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new t(e,i)},t.killTweensOf=function(e,t,i){return ve.killTweensOf(e,t,i)},t}(Ui);Pt(ln.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Tt("staggerTo,staggerFrom,staggerFromTo",(function(e){ln[e]=function(){var t=new Ji,i=li.call(arguments,0);return i.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,i)}}));var cn=function(e,t,i){return e[t]=i},dn=function(e,t,i){return e[t](i)},un=function(e,t,i,n){return e[t](n.fp,i)},pn=function(e,t,i){return e.setAttribute(t,i)},hn=function(e,t){return Fe(e[t])?dn:Ge(e[t])&&e.setAttribute?pn:cn},fn=function(e,t){return t.set(t.t,t.p,Math.round(1e6*(t.s+t.c*e))/1e6,t)},mn=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},gn=function(e,t){var i=t._pt,n="";if(!e&&t.b)n=t.b;else if(1===e&&t.e)n=t.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*e):Math.round(1e4*(i.s+i.c*e))/1e4)+n,i=i._next;n+=t.c}t.set(t.t,t.p,n,t)},vn=function(e,t){for(var i=t._pt;i;)i.r(e,i.d),i=i._next},_n=function(e,t,i,n){for(var s,r=this._pt;r;)s=r._next,r.p===n&&r.modifier(e,t,i),r=s},bn=function(e){for(var t,i,n=this._pt;n;)i=n._next,n.p===e&&!n.op||n.op===e?Bt(this,n,"_pt"):n.dep||(t=1),n=i;return!t},yn=function(e,t,i,n){n.mSet(e,t,n.m.call(n.tween,i,n.mt),n)},wn=function(e){for(var t,i,n,s,r=e._pt;r;){for(t=r._next,i=n;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:s)?r._prev._next=r:n=r,(r._next=i)?i._prev=r:s=r,r=t}e._pt=n},xn=function(){function e(e,t,i,n,s,r,a,o,l){this.t=t,this.s=n,this.c=s,this.p=i,this.r=r||fn,this.d=a||this,this.set=o||cn,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,i){this.mSet=this.mSet||this.set,this.set=yn,this.m=e,this.mt=i,this.tween=t},e}();Tt(bt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(e){return pt[e]=1})),it.TweenMax=it.TweenLite=ln,it.TimelineLite=it.TimelineMax=Ji,ve=new Ji({sortChildren:!1,defaults:Me,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Ae.stringFilter=Ii;var Tn=[],Sn={},Cn=[],En=0,kn=0,Ln=function(e){return(Sn[e]||Cn).map((function(e){return e()}))},An=function(){var e=Date.now(),t=[];e-En>2&&(Ln("matchMediaInit"),Tn.forEach((function(e){var i,n,s,r,a=e.queries,o=e.conditions;for(n in a)(i=_e.matchMedia(a[n]).matches)&&(s=1),i!==o[n]&&(o[n]=i,r=1);r&&(e.revert(),s&&t.push(e))})),Ln("matchMediaRevert"),t.forEach((function(e){return e.onMatch(e,(function(t){return e.add(null,t)}))})),En=e,Ln("matchMedia"))},Mn=function(){function e(e,t){this.selector=t&&pi(t),this.data=[],this._r=[],this.isReverted=!1,this.id=kn++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,i){Fe(e)&&(i=t,t=e,e=Fe);var n=this,s=function(){var e,s=ge,r=n.selector;return s&&s!==n&&s.data.push(n),i&&(n.selector=pi(i)),ge=n,e=t.apply(n,arguments),Fe(e)&&n._r.push(e),ge=s,n.selector=r,n.isReverted=!1,e};return n.last=s,e===Fe?s(n,(function(e){return n.add(null,e)})):e?n[e]=s:s},t.ignore=function(e){var t=ge;ge=null,e(this),ge=t},t.getTweens=function(){var t=[];return this.data.forEach((function(i){return i instanceof e?t.push.apply(t,i.getTweens()):i instanceof ln&&!(i.parent&&"nested"===i.parent.data)&&t.push(i)})),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var i=this;if(e?function(){for(var t,n=i.getTweens(),s=i.data.length;s--;)"isFlip"===(t=i.data[s]).data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(e){return n.splice(n.indexOf(e),1)})));for(n.map((function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}})).sort((function(e,t){return t.g-e.g||-1/0})).forEach((function(t){return t.t.revert(e)})),s=i.data.length;s--;)(t=i.data[s])instanceof Ji?"nested"!==t.data&&(t.scrollTrigger&&t.scrollTrigger.revert(),t.kill()):!(t instanceof ln)&&t.revert&&t.revert(e);i._r.forEach((function(t){return t(e,i)})),i.isReverted=!0}():this.data.forEach((function(e){return e.kill&&e.kill()})),this.clear(),t)for(var n=Tn.length;n--;)Tn[n].id===this.id&&Tn.splice(n,1)},t.revert=function(e){this.kill(e||{})},e}(),On=function(){function e(e){this.contexts=[],this.scope=e,ge&&ge.data.push(this)}var t=e.prototype;return t.add=function(e,t,i){He(e)||(e={matches:e});var n,s,r,a=new Mn(0,i||this.scope),o=a.conditions={};for(s in ge&&!a.selector&&(a.selector=ge.selector),this.contexts.push(a),t=a.add("onMatch",t),a.queries=e,e)"all"===s?r=1:(n=_e.matchMedia(e[s]))&&(Tn.indexOf(a)<0&&Tn.push(a),(o[s]=n.matches)&&(r=1),n.addListener?n.addListener(An):n.addEventListener("change",An));return r&&t(a,(function(e){return a.add(null,e)})),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach((function(t){return t.kill(e,!0)}))},e}(),Pn={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),i=0;i1){var n=e.map((function(e){return $n.quickSetter(e,t,i)})),s=n.length;return function(e){for(var t=s;t--;)n[t](e)}}e=e[0]||{};var r=mt[t],a=wt(e),o=a.harness&&(a.harness.aliases||{})[t]||t,l=r?function(t){var n=new r;Te._pt=0,n.init(e,i?t+i:t,Te,0,[e]),n.render(1,n),Te._pt&&vn(1,Te)}:a.set(e,o);return r?l:function(t){return l(e,o,i?t+i:t,a,1)}},quickTo:function(e,t,i){var n,s=$n.to(e,Dt(((n={})[t]="+=0.1",n.paused=!0,n),i||{})),r=function(e,i,n){return s.resetTo(t,e,i,n)};return r.tween=s,r},isTweening:function(e){return ve.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Hi(e.ease,Me.ease)),It(Me,e||{})},config:function(e){return It(Ae,e||{})},registerEffect:function(e){var t=e.name,i=e.effect,n=e.plugins,s=e.defaults,r=e.extendTimeline;(n||"").split(",").forEach((function(e){return e&&!mt[e]&&!it[e]&&at(t+" effect requires "+e+" plugin.")})),gt[t]=function(e,t,n){return i(ui(e),Pt(t||{},s),n)},r&&(Ji.prototype[t]=function(e,i,n){return this.add(gt[t](e,He(i)?i:(n=i)&&{},this),n)})},registerEase:function(e,t){zi[e]=Hi(t)},parseEase:function(e,t){return arguments.length?Hi(e,t):zi},getById:function(e){return ve.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var i,n,s=new Ji(e);for(s.smoothChildTiming=je(e.smoothChildTiming),ve.remove(s),s._dp=0,s._time=s._tTime=ve._time,i=ve._first;i;)n=i._next,!t&&!i._dur&&i instanceof ln&&i.vars.onComplete===i._targets[0]||Ut(s,i,i._start-i._delay),i=n;return Ut(ve,s,0),s},context:function(e,t){return e?new Mn(e,t):ge},matchMedia:function(e){return new On(e)},matchMediaRefresh:function(){return Tn.forEach((function(e){var t,i,n=e.conditions;for(i in n)n[i]&&(n[i]=!1,t=1);t&&e.revert()}))||An()},addEventListener:function(e,t){var i=Sn[e]||(Sn[e]=[]);~i.indexOf(t)||i.push(t)},removeEventListener:function(e,t){var i=Sn[e],n=i&&i.indexOf(t);n>=0&&i.splice(n,1)},utils:{wrap:function e(t,i,n){var s=i-t;return Xe(t)?_i(t,e(0,t.length),i):ri(n,(function(e){return(s+(e-t)%s)%s+t}))},wrapYoyo:function e(t,i,n){var s=i-t,r=2*s;return Xe(t)?_i(t,e(0,t.length-1),i):ri(n,(function(e){return t+((e=(r+(e-t)%r)%r||0)>s?r-e:e)}))},distribute:fi,random:vi,snap:gi,normalize:function(e,t,i){return yi(e,t,0,1,i)},getUnit:oi,clamp:function(e,t,i){return ri(i,(function(i){return ai(e,t,i)}))},splitColor:Ai,toArray:ui,selector:pi,mapRange:yi,pipe:function(){for(var e=arguments.length,t=new Array(e),i=0;i=0)return;a.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(ps,i,"")),t=us}(r||i)&&this.props.push(t,i,r[t])},fs=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ms=function(){var e,t,i=this.props,n=this.target,s=n.style,r=n._gsap;for(e=0;e=0?bs[s]:"")+e},ws=function(){"undefined"!=typeof window&&window.document&&(qn=window,zn=qn.document,Bn=zn.documentElement,Fn=vs("div")||{style:{}},vs("div"),us=ys(us),ps=us+"Origin",Fn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Hn=!!ys("perspective"),Gn=$n.core.reverting,Nn=1)},xs=function e(t){var i,n=vs("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,r=this.nextSibling,a=this.style.cssText;if(Bn.appendChild(n),n.appendChild(this),this.style.display="block",t)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=e}catch(e){}else this._gsapBBox&&(i=this._gsapBBox());return s&&(r?s.insertBefore(this,r):s.appendChild(this)),Bn.removeChild(n),this.style.cssText=a,i},Ts=function(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])},Ss=function(e){var t;try{t=e.getBBox()}catch(i){t=xs.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===xs||(t=xs.call(e,!0)),!t||t.width||t.x||t.y?t:{x:+Ts(e,["x","cx","x1"])||0,y:+Ts(e,["y","cy","y1"])||0,width:0,height:0}},Cs=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!Ss(e))},Es=function(e,t){if(t){var i,n=e.style;t in Vn&&t!==ps&&(t=us),n.removeProperty?("ms"!==(i=t.substr(0,2))&&"webkit"!==t.substr(0,6)||(t="-"+t),n.removeProperty("--"===i?t:t.replace(Un,"-$1").toLowerCase())):n.removeAttribute(t)}},ks=function(e,t,i,n,s,r){var a=new xn(e._pt,t,i,0,1,r?ss:ns);return e._pt=a,a.b=n,a.e=s,e._props.push(i),a},Ls={deg:1,rad:1,turn:1},As={grid:1,flex:1},Ms=function e(t,i,n,s){var r,a,o,l,c=parseFloat(n)||0,d=(n+"").trim().substr((c+"").length)||"px",u=Fn.style,p=Jn.test(i),h="svg"===t.tagName.toLowerCase(),f=(h?"client":"offset")+(p?"Width":"Height"),m=100,g="px"===s,v="%"===s;if(s===d||!c||Ls[s]||Ls[d])return c;if("px"!==d&&!g&&(c=e(t,i,n,"px")),l=t.getCTM&&Cs(t),(v||"%"===d)&&(Vn[i]||~i.indexOf("adius")))return r=l?t.getBBox()[p?"width":"height"]:t[f],St(v?c/r*m:c/100*r);if(u[p?"width":"height"]=m+(g?d:s),a=~i.indexOf("adius")||"em"===s&&t.appendChild&&!h?t:t.parentNode,l&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==zn&&a.appendChild||(a=zn.body),(o=a._gsap)&&v&&o.width&&p&&o.time===$i.time&&!o.uncache)return St(c/o.width*m);if(!v||"height"!==i&&"width"!==i)(v||"%"===d)&&!As[_s(a,"display")]&&(u.position=_s(t,"position")),a===t&&(u.position="static"),a.appendChild(Fn),r=Fn[f],a.removeChild(Fn),u.position="absolute";else{var _=t.style[i];t.style[i]=m+s,r=t[f],_?t.style[i]=_:Es(t,i)}return p&&v&&((o=wt(a)).time=$i.time,o.width=a[f]),St(g?r*c/m:r&&c?m/r*c:0)},Os=function(e,t,i,n){var s;return Nn||ws(),t in Zn&&"transform"!==t&&~(t=Zn[t]).indexOf(",")&&(t=t.split(",")[0]),Vn[t]&&"transform"!==t?(s=Hs(e,n),s="transformOrigin"!==t?s[t]:s.svg?s.origin:js(_s(e,ps))+" "+s.zOrigin+"px"):(!(s=e.style[t])||"auto"===s||n||~(s+"").indexOf("calc("))&&(s=qs[t]&&qs[t](e,t,i)||_s(e,t)||xt(e,t)||("opacity"===t?1:0)),i&&!~(s+"").trim().indexOf(" ")?Ms(e,t,s,i)+i:s},Ps=function(e,t,i,n){if(!i||"none"===i){var s=ys(t,e,1),r=s&&_s(e,s,1);r&&r!==i?(t=s,i=r):"borderColor"===t&&(i=_s(e,"borderTopColor"))}var a,o,l,c,d,u,p,h,f,m,g,v=new xn(this._pt,e.style,t,0,1,gn),_=0,b=0;if(v.b=i,v.e=n,i+="","auto"===(n+="")&&(u=e.style[t],e.style[t]=n,n=_s(e,t)||n,u?e.style[t]=u:Es(e,t)),Ii(a=[i,n]),n=a[1],l=(i=a[0]).match(Ke)||[],(n.match(Ke)||[]).length){for(;o=Ke.exec(n);)p=o[0],f=n.substring(_,o.index),d?d=(d+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(d=1),p!==(u=l[b++]||"")&&(c=parseFloat(u)||0,g=u.substr((c+"").length),"="===p.charAt(1)&&(p=Et(c,p)+g),h=parseFloat(p),m=p.substr((h+"").length),_=Ke.lastIndex-m.length,m||(m=m||Ae.units[t]||g,_===n.length&&(n+=m,v.e+=m)),g!==m&&(c=Ms(e,t,u,m)||0),v._pt={_next:v._pt,p:f||1===b?f:",",s:c,c:h-c,m:d&&d<4||"zIndex"===t?Math.round:0});v.c=_-1;)i=o[s],Vn[i]&&(n=1,i="transformOrigin"===i?ps:us),Es(r,i);n&&(Es(r,us),l&&(l.svg&&r.removeAttribute("transform"),Hs(r,1),l.uncache=1,fs(a)))}},qs={clearProps:function(e,t,i,n,s){if("isFromStart"!==s.data){var r=e._pt=new xn(e._pt,t,i,0,0,$s);return r.u=n,r.pr=-10,r.tween=s,e._props.push(i),1}}},zs=[1,0,0,1,0,0],Bs={},Ns=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},Fs=function(e){var t=_s(e,us);return Ns(t)?zs:t.substr(7).match(Je).map(St)},Rs=function(e,t){var i,n,s,r,a=e._gsap||wt(e),o=e.style,l=Fs(e);return a.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(s=e.transform.baseVal.consolidate().matrix).a,s.b,s.c,s.d,s.e,s.f]).join(",")?zs:l:(l!==zs||e.offsetParent||e===Bn||a.svg||(s=o.display,o.display="block",(i=e.parentNode)&&e.offsetParent||(r=1,n=e.nextElementSibling,Bn.appendChild(e)),l=Fs(e),s?o.display=s:Es(e,"display"),r&&(n?i.insertBefore(e,n):i?i.appendChild(e):Bn.removeChild(e))),t&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Gs=function(e,t,i,n,s,r){var a,o,l,c=e._gsap,d=s||Rs(e,!0),u=c.xOrigin||0,p=c.yOrigin||0,h=c.xOffset||0,f=c.yOffset||0,m=d[0],g=d[1],v=d[2],_=d[3],b=d[4],y=d[5],w=t.split(" "),x=parseFloat(w[0])||0,T=parseFloat(w[1])||0;i?d!==zs&&(o=m*_-g*v)&&(l=x*(-g/o)+T*(m/o)-(m*y-g*b)/o,x=x*(_/o)+T*(-v/o)+(v*y-_*b)/o,T=l):(x=(a=Ss(e)).x+(~w[0].indexOf("%")?x/100*a.width:x),T=a.y+(~(w[1]||w[0]).indexOf("%")?T/100*a.height:T)),n||!1!==n&&c.smooth?(b=x-u,y=T-p,c.xOffset=h+(b*m+y*v)-b,c.yOffset=f+(b*g+y*_)-y):c.xOffset=c.yOffset=0,c.xOrigin=x,c.yOrigin=T,c.smooth=!!n,c.origin=t,c.originIsAbsolute=!!i,e.style[ps]="0px 0px",r&&(ks(r,c,"xOrigin",u,x),ks(r,c,"yOrigin",p,T),ks(r,c,"xOffset",h,c.xOffset),ks(r,c,"yOffset",f,c.yOffset)),e.setAttribute("data-svg-origin",x+" "+T)},Hs=function(e,t){var i=e._gsap||new Xi(e);if("x"in i&&!t&&!i.uncache)return i;var n,s,r,a,o,l,c,d,u,p,h,f,m,g,v,_,b,y,w,x,T,S,C,E,k,L,A,M,O,P,D,I,$=e.style,q=i.scaleX<0,z="px",B="deg",N=getComputedStyle(e),F=_s(e,ps)||"0";return n=s=r=l=c=d=u=p=h=0,a=o=1,i.svg=!(!e.getCTM||!Cs(e)),N.translate&&("none"===N.translate&&"none"===N.scale&&"none"===N.rotate||($[us]=("none"!==N.translate?"translate3d("+(N.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==N.rotate?"rotate("+N.rotate+") ":"")+("none"!==N.scale?"scale("+N.scale.split(" ").join(",")+") ":"")+("none"!==N[us]?N[us]:"")),$.scale=$.rotate=$.translate="none"),g=Rs(e,i.svg),i.svg&&(i.uncache?(k=e.getBBox(),F=i.xOrigin-k.x+"px "+(i.yOrigin-k.y)+"px",E=""):E=!t&&e.getAttribute("data-svg-origin"),Gs(e,E||F,!!E||i.originIsAbsolute,!1!==i.smooth,g)),f=i.xOrigin||0,m=i.yOrigin||0,g!==zs&&(y=g[0],w=g[1],x=g[2],T=g[3],n=S=g[4],s=C=g[5],6===g.length?(a=Math.sqrt(y*y+w*w),o=Math.sqrt(T*T+x*x),l=y||w?Xn(w,y)*Wn:0,(u=x||T?Xn(x,T)*Wn+l:0)&&(o*=Math.abs(Math.cos(u*Yn))),i.svg&&(n-=f-(f*y+m*x),s-=m-(f*w+m*T))):(I=g[6],P=g[7],A=g[8],M=g[9],O=g[10],D=g[11],n=g[12],s=g[13],r=g[14],c=(v=Xn(I,O))*Wn,v&&(E=S*(_=Math.cos(-v))+A*(b=Math.sin(-v)),k=C*_+M*b,L=I*_+O*b,A=S*-b+A*_,M=C*-b+M*_,O=I*-b+O*_,D=P*-b+D*_,S=E,C=k,I=L),d=(v=Xn(-x,O))*Wn,v&&(_=Math.cos(-v),D=T*(b=Math.sin(-v))+D*_,y=E=y*_-A*b,w=k=w*_-M*b,x=L=x*_-O*b),l=(v=Xn(w,y))*Wn,v&&(E=y*(_=Math.cos(v))+w*(b=Math.sin(v)),k=S*_+C*b,w=w*_-y*b,C=C*_-S*b,y=E,S=k),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,d=180-d),a=St(Math.sqrt(y*y+w*w+x*x)),o=St(Math.sqrt(C*C+I*I)),v=Xn(S,C),u=Math.abs(v)>2e-4?v*Wn:0,h=D?1/(D<0?-D:D):0),i.svg&&(E=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!Ns(_s(e,us)),E&&e.setAttribute("transform",E))),Math.abs(u)>90&&Math.abs(u)<270&&(q?(a*=-1,u+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,u+=u<=0?180:-180)),t=t||i.uncache,i.x=n-((i.xPercent=n&&(!t&&i.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-n)?-50:0)))?e.offsetWidth*i.xPercent/100:0)+z,i.y=s-((i.yPercent=s&&(!t&&i.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-s)?-50:0)))?e.offsetHeight*i.yPercent/100:0)+z,i.z=r+z,i.scaleX=St(a),i.scaleY=St(o),i.rotation=St(l)+B,i.rotationX=St(c)+B,i.rotationY=St(d)+B,i.skewX=u+B,i.skewY=p+B,i.transformPerspective=h+z,(i.zOrigin=parseFloat(F.split(" ")[2])||!t&&i.zOrigin||0)&&($[ps]=js(F)),i.xOffset=i.yOffset=0,i.force3D=Ae.force3D,i.renderTransform=i.svg?Ks:Hn?Js:Ws,i.uncache=0,i},js=function(e){return(e=e.split(" "))[0]+" "+e[1]},Vs=function(e,t,i){var n=oi(t);return St(parseFloat(t)+parseFloat(Ms(e,"x",i+"px",n)))+n},Ws=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,Js(e,t)},Ys="0deg",Xs="0px",Us=") ",Js=function(e,t){var i=t||this,n=i.xPercent,s=i.yPercent,r=i.x,a=i.y,o=i.z,l=i.rotation,c=i.rotationY,d=i.rotationX,u=i.skewX,p=i.skewY,h=i.scaleX,f=i.scaleY,m=i.transformPerspective,g=i.force3D,v=i.target,_=i.zOrigin,b="",y="auto"===g&&e&&1!==e||!0===g;if(_&&(d!==Ys||c!==Ys)){var w,x=parseFloat(c)*Yn,T=Math.sin(x),S=Math.cos(x);x=parseFloat(d)*Yn,w=Math.cos(x),r=Vs(v,r,T*w*-_),a=Vs(v,a,-Math.sin(x)*-_),o=Vs(v,o,S*w*-_+_)}m!==Xs&&(b+="perspective("+m+Us),(n||s)&&(b+="translate("+n+"%, "+s+"%) "),(y||r!==Xs||a!==Xs||o!==Xs)&&(b+=o!==Xs||y?"translate3d("+r+", "+a+", "+o+") ":"translate("+r+", "+a+Us),l!==Ys&&(b+="rotate("+l+Us),c!==Ys&&(b+="rotateY("+c+Us),d!==Ys&&(b+="rotateX("+d+Us),u===Ys&&p===Ys||(b+="skew("+u+", "+p+Us),1===h&&1===f||(b+="scale("+h+", "+f+Us),v.style[us]=b||"translate(0, 0)"},Ks=function(e,t){var i,n,s,r,a,o=t||this,l=o.xPercent,c=o.yPercent,d=o.x,u=o.y,p=o.rotation,h=o.skewX,f=o.skewY,m=o.scaleX,g=o.scaleY,v=o.target,_=o.xOrigin,b=o.yOrigin,y=o.xOffset,w=o.yOffset,x=o.forceCSS,T=parseFloat(d),S=parseFloat(u);p=parseFloat(p),h=parseFloat(h),(f=parseFloat(f))&&(h+=f=parseFloat(f),p+=f),p||h?(p*=Yn,h*=Yn,i=Math.cos(p)*m,n=Math.sin(p)*m,s=Math.sin(p-h)*-g,r=Math.cos(p-h)*g,h&&(f*=Yn,a=Math.tan(h-f),s*=a=Math.sqrt(1+a*a),r*=a,f&&(a=Math.tan(f),i*=a=Math.sqrt(1+a*a),n*=a)),i=St(i),n=St(n),s=St(s),r=St(r)):(i=m,r=g,n=s=0),(T&&!~(d+"").indexOf("px")||S&&!~(u+"").indexOf("px"))&&(T=Ms(v,"x",d,"px"),S=Ms(v,"y",u,"px")),(_||b||y||w)&&(T=St(T+_-(_*i+b*s)+y),S=St(S+b-(_*n+b*r)+w)),(l||c)&&(a=v.getBBox(),T=St(T+l/100*a.width),S=St(S+c/100*a.height)),a="matrix("+i+","+n+","+s+","+r+","+T+","+S+")",v.setAttribute("transform",a),x&&(v.style[us]=a)},Zs=function(e,t,i,n,s){var r,a,o=360,l=Ne(s),c=parseFloat(s)*(l&&~s.indexOf("rad")?Wn:1)-n,d=n+c+"deg";return l&&("short"===(r=s.split("_")[1])&&(c%=o)!==c%180&&(c+=c<0?o:-360),"cw"===r&&c<0?c=(c+36e9)%o-~~(c/o)*o:"ccw"===r&&c>0&&(c=(c-36e9)%o-~~(c/o)*o)),e._pt=a=new xn(e._pt,t,i,n,c,es),a.e=d,a.u="deg",e._props.push(i),a},Qs=function(e,t){for(var i in t)e[i]=t[i];return e},er=function(e,t,i){var n,s,r,a,o,l,c,d=Qs({},i._gsap),u=i.style;for(s in d.svg?(r=i.getAttribute("transform"),i.setAttribute("transform",""),u[us]=t,n=Hs(i,1),Es(i,us),i.setAttribute("transform",r)):(r=getComputedStyle(i)[us],u[us]=t,n=Hs(i,1),u[us]=r),Vn)(r=d[s])!==(a=n[s])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(s)<0&&(o=oi(r)!==(c=oi(a))?Ms(i,s,r,c):parseFloat(r),l=parseFloat(a),e._pt=new xn(e._pt,n,s,o,l-o,Qn),e._pt.u=c||0,e._props.push(s));Qs(n,d)};Tt("padding,margin,Width,Radius",(function(e,t){var i="Top",n="Right",s="Bottom",r="Left",a=(t<3?[i,n,s,r]:[i+r,i+n,s+n,s+r]).map((function(i){return t<2?e+i:"border"+i+e}));qs[t>1?"border"+e:e]=function(e,t,i,n,s){var r,o;if(arguments.length<4)return r=a.map((function(t){return Os(e,t,i)})),5===(o=r.join(" ")).split(r[0]).length?r[0]:o;r=(n+"").split(" "),o={},a.forEach((function(e,t){return o[e]=r[t]=r[t]||r[(t-1)/2|0]})),e.init(t,o,s)}}));var tr,ir,nr,sr={name:"css",register:ws,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,i,n,s){var r,a,o,l,c,d,u,p,h,f,m,g,v,_,b,y,w=this._props,x=e.style,T=i.vars.startAt;for(u in Nn||ws(),this.styles=this.styles||gs(e),y=this.styles.props,this.tween=i,t)if("autoRound"!==u&&(a=t[u],!mt[u]||!tn(u,t,i,n,e,s)))if(c=typeof a,d=qs[u],"function"===c&&(c=typeof(a=a.call(i,n,e,s))),"string"===c&&~a.indexOf("random(")&&(a=bi(a)),d)d(this,e,u,a,i)&&(b=1);else if("--"===u.substr(0,2))r=(getComputedStyle(e).getPropertyValue(u)+"").trim(),a+="",Pi.lastIndex=0,Pi.test(r)||(p=oi(r),h=oi(a)),h?p!==h&&(r=Ms(e,u,r,h)+h):p&&(a+=p),this.add(x,"setProperty",r,a,n,s,0,0,u),w.push(u),y.push(u,0,x[u]);else if("undefined"!==c){if(T&&u in T?(r="function"==typeof T[u]?T[u].call(i,n,e,s):T[u],Ne(r)&&~r.indexOf("random(")&&(r=bi(r)),oi(r+"")||"auto"===r||(r+=Ae.units[u]||oi(Os(e,u))||""),"="===(r+"").charAt(1)&&(r=Os(e,u))):r=Os(e,u),l=parseFloat(r),(f="string"===c&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),u in Zn&&("autoAlpha"===u&&(1===l&&"hidden"===Os(e,"visibility")&&o&&(l=0),y.push("visibility",0,x.visibility),ks(this,x,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==u&&"transform"!==u&&~(u=Zn[u]).indexOf(",")&&(u=u.split(",")[0])),m=u in Vn)if(this.styles.save(u),g||((v=e._gsap).renderTransform&&!t.parseTransform||Hs(e,t.parseTransform),_=!1!==t.smoothOrigin&&v.smooth,(g=this._pt=new xn(this._pt,x,us,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===u)this._pt=new xn(this._pt,v,"scaleY",v.scaleY,(f?Et(v.scaleY,f+o):o)-v.scaleY||0,Qn),this._pt.u=0,w.push("scaleY",u),u+="X";else{if("transformOrigin"===u){y.push(ps,0,x[ps]),a=Is(a),v.svg?Gs(e,a,0,_,0,this):((h=parseFloat(a.split(" ")[2])||0)!==v.zOrigin&&ks(this,v,"zOrigin",v.zOrigin,h),ks(this,x,u,js(r),js(a)));continue}if("svgOrigin"===u){Gs(e,a,1,_,0,this);continue}if(u in Bs){Zs(this,v,u,l,f?Et(l,f+a):a);continue}if("smoothOrigin"===u){ks(this,v,"smooth",v.smooth,a);continue}if("force3D"===u){v[u]=a;continue}if("transform"===u){er(this,a,e);continue}}else u in x||(u=ys(u)||u);if(m||(o||0===o)&&(l||0===l)&&!Kn.test(a)&&u in x)o||(o=0),(p=(r+"").substr((l+"").length))!==(h=oi(a)||(u in Ae.units?Ae.units[u]:p))&&(l=Ms(e,u,r,h)),this._pt=new xn(this._pt,m?v:x,u,l,(f?Et(l,f+o):o)-l,m||"px"!==h&&"zIndex"!==u||!1===t.autoRound?Qn:is),this._pt.u=h||0,p!==h&&"%"!==h&&(this._pt.b=r,this._pt.r=ts);else if(u in x)Ps.call(this,e,u,r,f?f+a:a);else if(u in e)this.add(e,u,r||e[u],f?f+a:a,n,s);else if("parseTransform"!==u){rt(u,a);continue}m||(u in x?y.push(u,0,x[u]):y.push(u,1,r||e[u])),w.push(u)}b&&wn(this)},render:function(e,t){if(t.tween._time||!Gn())for(var i=t._pt;i;)i.r(e,i.d),i=i._next;else t.styles.revert()},get:Os,aliases:Zn,getSetter:function(e,t,i){var n=Zn[t];return n&&n.indexOf(",")<0&&(t=n),t in Vn&&t!==ps&&(e._gsap.x||Os(e,"x"))?i&&Rn===i?"scale"===t?ls:os:(Rn=i||{})&&("scale"===t?cs:ds):e.style&&!Ge(e.style[t])?rs:~t.indexOf("-")?as:hn(e,t)},core:{_removeProperty:Es,_getMatrix:Rs}};$n.utils.checkPrefix=ys,$n.core.getStyleSaver=gs,nr=Tt((tr="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ir="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(e){Vn[e]=1})),Tt(ir,(function(e){Ae.units[e]="deg",Bs[e]=1})),Zn[nr[13]]=tr+","+ir,Tt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(e){var t=e.split(":");Zn[t[1]]=nr[t[0]]})),Tt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(e){Ae.units[e]="px"})),$n.registerPlugin(sr);var rr=($n.registerPlugin(sr)||$n).core.Tween;var ar=function(){return{init(){const e=this;e.isInit=!1,e.selectedCoins={},e.tl=null,e.slider=null,e.timer=!1,e.timer2=!1,e.timer3=!1,e.savedCoinsKey="bicWidgetCoinsList_coins",e.cacheCoinsKey="bicWidgetCoinsList_cache",e.savedCoins={},e.defaultCoins=JSON.parse("undefined"==typeof coinsListWidgetDefaultCoins?"[]":coinsListWidgetDefaultCoins),e.sponsoredCoins={};const t=document.querySelectorAll('[data-el="coins-list-widget"]');null!=t&&(this.loadSavedCoins(),document.querySelector("body").addEventListener("click",(e=>{null==e.target.closest('[data-el="coins-list-widget"]')&&t.forEach((e=>{e.querySelectorAll('[data-el="dropdown"]').forEach((e=>{e.classList.remove("hidden"),e.classList.add("hidden")})),e.querySelectorAll('[data-el="coins-dropdown"]').forEach((e=>{e.querySelector("i").classList.remove("rotate-180")}))}))})),t.forEach((t=>{this.rowTemplate=t.querySelector('[data-el="coin-template"]').cloneNode(!0).innerHTML,this.spinnerTemplate=t.querySelector('[data-el="coin-spiner"]').cloneNode(!0).innerHTML;const i=t.querySelector('[data-el="coins-dropdown"]'),n=t.querySelectorAll('[data-el="dropdown-elem"]'),s=t.querySelector('[data-el="bic-coins-widget-search"]'),r=t.querySelector('[data-el="search-clear"]');this.initLine(t),this.setDropdownDefaultValue(r),i.addEventListener("click",(e=>{e.preventDefault();let t=e.target.closest('[data-el="coins-dropdown"]');t.querySelector("i").classList.toggle("rotate-180"),t.closest("div").querySelector('[data-el="dropdown"]').classList.toggle("hidden")})),n.forEach((e=>{this.eventDropdownElements(e)})),s&&s.addEventListener("keyup",(t=>{if(t.target.value.length<3)return!0;e.timer&&clearTimeout(e.timer);const i=t.target;let n=i.closest('[data-el="dropdown"]').querySelector('[data-el="spinner"]');e.timer=setTimeout((async function(){n.classList.toggle("!flex");try{const t=await fetch(`/wp-json/ceranking/v2/filter-data?val=${encodeURIComponent(i.value)}&filter=coinid-with-fiat`,{method:"GET",headers:{"Content-type":"application/x-www-form-urlencoded"}});if(t.ok){const n=await t.json();e.setDropdownItems(i,n)}else console.error(`Error: ${t.status} - ${t.statusText}`)}catch(e){console.error("Coins Fetch error:",e)}finally{n.classList.toggle("!flex")}}),300)})),r&&r.addEventListener("click",(t=>{t.target.closest('[data-el="dropdown"]').querySelector('[data-el="bic-coins-widget-search"]').value="",e.setDropdownDefaultValue(t.target)}))})))},setDropdownDefaultValue(e){this.loadSavedCoins(),this.setDropdownItems(e,this.defaultCoins),this.validateDropdownElements(e.closest('[data-el="dropdown"]'))},setDropdownItems(e,t){const i=e.closest('[data-el="dropdown"]').querySelector('[data-el="dropdown-elem-template"]');e.closest('[data-el="dropdown"]').querySelectorAll('[data-el="dropdown-elem"]').forEach((e=>{e.remove()}));for(let n in t){let s=t[n],r=i.cloneNode(!0),a={};if(a.id=s.id,a.custom_id=s.custom_id,a.name=s.name,a.logo=s.logo,a.symbol=s.symbol,r.classList.remove("hidden"),r.setAttribute("data-el","dropdown-elem"),r.setAttribute("data-value",JSON.stringify(a)),r.setAttribute("title",s.name),r.setAttribute("data-isSponsored",0),s.id in this.selectedCoins&&r.querySelector('[data-place="coin_id"]').setAttribute("checked","checked"),s.id in this.sponsoredCoins&&(r.querySelector('[data-place="coin_id"]').setAttribute("checked","checked"),r.querySelector('[data-place="coin_id"]').setAttribute("disabled","disabled"),r.setAttribute("data-isSponsored",1)),r.querySelector('[data-place="coin_id"]').setAttribute("value",s.id),r.querySelector('[data-place="logo"]').setAttribute("src",s.logo.replace("/large/","/small/")),r.querySelector('[data-place="logo"]').setAttribute("alt",s.name),r.querySelector('[data-place="logo"]').setAttribute("title",s.name),r.querySelector('[data-place="name"]').innerText=s.name,r.querySelector('[data-place="symbol"]').innerText=s.symbol,void 0!==r.dataset?.analytics){const e=JSON.parse(r.dataset.analytics);e.ev=s.symbol,r.dataset.analytics=JSON.stringify(e)}this.eventDropdownElements(r),e.closest('[data-el="dropdown"]').querySelector('[data-el="dropdown-elem-wraper"]').append(r)}this.validateDropdownElements(e.closest('[data-el="dropdown"]'))},eventDropdownElements(e){const t=this;e.querySelector('input[name="coin_id"]').addEventListener("change",(()=>{e.closest('[data-el="dropdown-elem-wraper"]').querySelectorAll('input[name="coin_id"]').forEach((e=>{if(null!==e.closest('[data-el="dropdown-elem"]')&&"0"===e.closest('[data-el="dropdown-elem"]').getAttribute("data-issponsored"))if(!0===e.checked){const i=e.closest('[data-el="dropdown-elem"]');t.selectedCoins[e.value]=JSON.parse(i.getAttribute("data-value"))}else delete t.selectedCoins[e.value],e.removeAttribute("checked")})),t.saveSavedCoins(),this.validateDropdownElements(e.closest('[data-el="dropdown-elem-wraper"]')),t.timer2&&clearTimeout(t.timer2),t.timer2=setTimeout((function(){t.initLine(e.closest('[data-el="coins-list-widget"]'))}),2e3)}))},validateDropdownElements(e){const t=e.querySelectorAll('input[name="coin_id"]');Object.keys(this.selectedCoins).length+Object.keys(this.sponsoredCoins).length>=10?t.forEach((e=>{!1==(!0===e.checked||"checked"===e.getAttribute("checked"))&&""!=e.value&&e.setAttribute("disabled","disabled")})):t.forEach((e=>{null!==e.closest('[data-el="dropdown-elem"]')&&"0"===e.closest('[data-el="dropdown-elem"]').getAttribute("data-issponsored")&&e.removeAttribute("disabled")}))},loadSavedCoins(){let e=localStorage.getItem(this.savedCoinsKey)||"{}";this.selectedCoins=JSON.parse(e);for(let e in this.selectedCoins)this.defaultCoins[e]=this.selectedCoins[e];for(let e in this.sponsoredCoins)this.defaultCoins[e]=this.sponsoredCoins[e]},saveSavedCoins(){localStorage.setItem(this.savedCoinsKey,JSON.stringify(this.selectedCoins))},saveCacheCoins(e){let t={};t.exp=(new Date).getTime()+3e5,t.data=e,localStorage.setItem(this.cacheCoinsKey,JSON.stringify(t))},getCacheCoins(){let e=localStorage.getItem(this.cacheCoinsKey)||"{}",t=JSON.parse(e);return 2==Object.keys(t).length&&(0!=Object.keys(t.data).length&&(!(t.exp-(new Date).getTime()<0)&&(!(Object.keys(t.data).length<10)&&t.data)))},initLine(e){const t=this;if(0==this.isInit){let t=this.getCacheCoins();if(0!=t){e.querySelector('[data-el="coins-wrapper"]').innerHTML="";for(let i in t)this.buildLine(t[i],e);return this.setDropdownDefaultValue(e.querySelector('[data-el="search-clear"]')),this.saveSavedCoins(),this.initScrolling(e),void(this.isInit=!0)}}let i=[];for(let e in this.selectedCoins)i.push(e);null!==this.tl&&this.tl.kill(),null!==this.slider&&this.slider.destroy(!0,!0),e.querySelector('[data-el="coins-wrapper"]').innerHTML=t.spinnerTemplate,t.blockCheckboxes(e,!0);let n=new XMLHttpRequest;n.open("GET","/wp-json/ceranking/v2/get-preferred-coins?coinsIds="+encodeURIComponent(JSON.stringify(i))),n.send(null),n.onreadystatechange=function(){if(4==this.readyState&&200==this.status){e.querySelector('[data-el="coins-wrapper"]').innerHTML="";let i=JSON.parse(this.responseText),n=[],s=[],r=0;for(let e in i)n.push(i[e].id);for(let e in t.selectedCoins)-1===n.indexOf(e)&&s.push(e);for(let n in i)r<10-s.length&&t.buildLine(i[n],e),r+=1;s.forEach((i=>{let n={};n.id=i,n.current_price=null,t.buildLine(n,e),delete t.selectedCoins[i]})),t.initScrolling(e),0==t.isInit&&(t.setDropdownDefaultValue(e.querySelector('[data-el="search-clear"]')),t.isInit=!0),t.saveSavedCoins(),t.saveCacheCoins(i),t.blockCheckboxes(e,!1)}}},buildLine(e,t){let i=this.rowTemplate;if(null==e.current_price){if(void 0===this.selectedCoins[e.id])return;{let t=(e=this.selectedCoins[e.id]).logo.replace("/large/","/small/");t&&"missing_large.png"!==t||(t=coinsListWidgetPlaceholderImg),i=i.replace("{logoImage}",'{name}'),i=i.replace("{id}",e.custom_id),i=i.replace("{image}",t),i=i.replace("{symbol}",e.symbol),i=i.replaceAll("{name}",e.name),i=i.replace("{spanClass}","hidden"),i=i.replace("{spanClass2}","")}}else{let t=Math.round(100*Math.abs(e["change_%_24h"]))/100,n=" bg-lime-300 [.dark_&]:bg-green-700",s="";e["change_%_24h"]<0&&(n=" bg-red-300 [.dark_&]:bg-red-700",s=" rotate-180");let r=e.image.replace("/large/","/small/");r&&"missing_large.png"!==r||(r=coinsListWidgetPlaceholderImg),i=i.replace("{logoImage}",'{name}'),i=i.replace("{id}",e.custom_id),i=i.replace("{image}",r),i=i.replace("{symbol}",e.symbol),i=i.replaceAll("{name}",e.name),i=i.replace("{price}",e.current_price),i=i.replace("{percent}",t),i=i.replace("{svgClass}",s),i=i.replace("{spanClass}",n),i=i.replace("{spanClass2}","hidden")}i=i.replace("section","a"),i=i.replace("data-href","href"),void 0!==e&&void 0!==e.symbol&&(i=i.replace("%ga_symbol%",e.symbol));let n=document.createElement("div");n.innerHTML=i,n=n.firstChild,t.querySelector('[data-el="coins-wrapper"]').innerHTML+=i},blockCheckboxes(e,t){e.querySelectorAll('input[name="coin_id"]').forEach((e=>{t?(e.setAttribute("prev-status",e.getAttribute("disabled")),e.setAttribute("disabled","disabled")):("disabled"!=e.getAttribute("prev-status")&&e.removeAttribute("disabled"),e.removeAttribute("prev-status"))}))},initScrolling(e){if(null!==this.slider&&this.slider.destroy(!0,!0),window.matchMedia("(min-width: 1024px)").matches)return void(this.slider=new ee('[data-el="coins-wrapper-parent"]',{modules:[ie,se],loop:!1,slidesPerView:"auto",slideClass:"sw-sl",wrapperClass:"sw-wrp",spaceBetween:16,a11y:{enabled:!1},mousewheel:{releaseOnEdges:!0,thresholdTime:2}}));null!==this.tl&&this.tl.kill();const t=e.querySelector('[data-el="coins-wrapper"]');let i=t.closest("div").offsetWidth,n=t.offsetWidth,s=document.querySelector("html").getAttribute("dir");t.querySelectorAll("a").forEach((t=>{e.querySelector('[data-el="coins-wrapper"]').append(t.cloneNode(!0))})),rr.set('[data-el="coins-wrapper"]',{x:i});let r=n/20;this.tl=new Ji,"rtl"!=s?(this.tl.to('[data-el="coins-wrapper"]',0,{x:0,ease:jn.easeNone}),this.tl.to('[data-el="coins-wrapper"]',r,{x:-n,ease:jn.easeNone,repeat:-1})):(this.tl.to('[data-el="coins-wrapper"]',0,{x:0,ease:jn.easeNone}),this.tl.to('[data-el="coins-wrapper"]',r,{x:n,ease:jn.easeNone,repeat:-1}))}}},or=i(1669),lr=i(1669),cr={init(){oe.init(),le.A.init(),BIC_DATA.lazyLoad=new(ae())({restore_on_error:!1,callback_error(e){e.removeAttribute("srcset"),e.setAttribute("src",`${bicAssetPath}images/bic-default-image.jpg`),e.style.objectFit="cover",e.style.maxHeight="inherit",e.style.margin="0 auto"}}),this.addPaddingFixedBanner(),1!=localStorage.getItem("cookies_notif_close")&&or("#amp-user-notification1.non-amp").fadeIn(0,(function(){if(0==window.matchMedia("(min-width: 1024px)").matches){const e=or(".ad-before-header"),t=or("#amp-user-notification1:visible");if(t.length){const i=t.outerHeight();if(e.length){e.css({marginBottom:i+"px"});const n=e.outerHeight();t.css({top:n+1+"px"})}else lr("body").css({paddingTop:i+"px"})}}}));var e=!1;const t=document.querySelector("#learnArchiveFilter"),i=async i=>{if(e)return!1;e=!0,window.history.pushState({},null,i);const s=t.querySelector('[data-el="archive-content"]'),r=s.querySelector('[data-el="archive-loading"]');r.classList.remove("hidden");try{const e=await fetch(i,{method:"GET",headers:{"Content-type":"application/x-www-form-urlencoded"}});if(e.ok){const i=await e.text(),a=document.createElement("div");a.insertAdjacentHTML("beforeend",i);const o=a.querySelector('[data-el="archive-content"]');o.querySelectorAll("img").forEach((e=>{e.setAttribute("src",e.getAttribute("data-src"))})),s.replaceWith(o),r.classList.add("hidden"),n(),t.scrollIntoView({behavior:"smooth",block:"start"})}}catch(e){console.error(e)}e=!1,r.classList.add("hidden")};function n(){const e=t.querySelector('[data-el="archive-content"]').querySelector('[data-el="archive-pagination"]');if(e){e.querySelectorAll("a").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();let t=e.target.hasAttribute("href")?e.target.getAttribute("href"):e.target.closest("a").getAttribute("href");i(t)}))}))}}or("body").on("click",".js-open-menu, #sidebar.sidebar-noamp .nav-close",(function(){let e=or("body").hasClass("rtl")?"right":"left";return or("#sidebar.sidebar-noamp").is(":hidden")?(or("html").addClass("scroll-disabled"),or("body").append(''),or("body .sidebar-mask").fadeIn(100),or("#sidebar.sidebar-noamp").css(e,"-100%").show().animate({[e]:0})):(or("body .sidebar-mask").fadeOut(100,(function(){or("body .sidebar-mask").remove()})),or("#sidebar.sidebar-noamp").animate({[e]:"-100%"},400,"swing",(function(){or("#sidebar.sidebar-noamp").css(e,"-100%").hide(),or("html").removeClass("scroll-disabled")}))),!1})),or("body").on("click",".sidebar-mask",(function(){return or("#sidebar.sidebar-noamp").is(":visible")&&or("#sidebar.sidebar-noamp .nav-close").trigger("click"),!1})),or("body").on("click","#sidebar.sidebar-noamp .h-lang-current",(function(){return or("#sidebar.sidebar-noamp #h-lang-hrefs").toggleClass("opened"),!1})),or("body").on("click",".js-open-search, #search-icon.lightbox-noamp .closebutton",(function(){return or("#search-icon.lightbox-noamp").is(":hidden")?(or("html").addClass("scroll-disabled"),or("#search-icon.lightbox-noamp").fadeIn(100)):or("#search-icon.lightbox-noamp").fadeOut(100,(function(){or("html").removeClass("scroll-disabled")})),!1})),or("body").on("submit",".ajax-form",(function(e){e.preventDefault();const t=lr(this);let i=t.attr("action");void 0===i&&(i=t.attr("action-xhr"));const n=t.attr("method"),s=t.serializeArray(),r=t.find("button"),a=t.find("input"),o=[],l=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return t.find('[type="email"]').each((function(){if(!this.validity.valid||!l.test(this.value)){o.push("false"),lr(this).addClass("invalid"),t.find(".submit-response-msg").remove();const e=t.find(".submit-response .submit-error").html();t.find(".submit-response").append(`
${e}
`)}o.push("true")})),-1===o.indexOf("false")&&lr.ajax({url:i,type:n,data:s,dataType:"json",beforeSend(){a.removeClass("invalid"),r.attr("disabled","disabled").css("opacity","0.3"),t.find(".submit-response-msg").remove(),t.addClass("form-submitting")},complete(){r.removeAttr("disabled").css("opacity","1"),t.removeClass("form-submitting").addClass("form-submitted")},error(e){let i=t.find("div.submit-error template:not(.invalid-email)").html();a.addClass("invalid"),void 0!==e.error&&(i=e.error),t.find("div.submit-response").append('
'+i+"
")},success(e){if(void 0!==e.success&&1==e.success&&0!=t.find('input[name="redirect_to"]').length&&""!=t.find('input[name="redirect_to"]').val())return void(document.location.href=t.find('input[name="redirect_to"]').val());let i="";void 0!==e.success?(0==t.find(".submit-success").length?i=e.success:0!=t.find("template.submit-success").length&&(i=t.find("template.submit-success").html()),t.find(".submit-response").append(`
${i}
`)):(i=t.find("div.submit-error template:not(.invalid-email)").html(),a.addClass("invalid"),void 0!==e.error&&(i=e.error),t.find("div.submit-response").append('
'+i+"
"))}}),!1})),or("body").on("click","#amp-user-notification1.non-amp button",(function(){return or("#amp-user-notification1").fadeOut(100),or("body").animate({"padding-top":0}),or(".ad-before-header").animate({"margin-bottom":0}),localStorage.setItem("cookies_notif_close",1),!1})),or(".acc-text-slider h4").on("click",(function(){return or(this).closest(".acc-text-slider").toggleClass("opened"),or(this).closest(".acc-text-slider").find(".acc-text-slider__body").slideToggle(300),!1})),or(".bic-accordion .bic-accordion__content .header").on("click",(function(){return or(this).closest(".bic-accordion__content").toggleClass("opened"),or(this).closest(".bic-accordion__content").find(".content").slideToggle(300),!1})),or('.t-tabs [role="tab"]').on("click",(function(){return or(this).closest(".t-tabs").find('[role="tab"]').removeAttr("selected"),or(this).attr("selected","selected"),!1}));try{(new ue).init()}catch(e){}try{(new ce).init()}catch(e){}try{document.querySelectorAll('[data-el="tabs-links"]').forEach((e=>{let t={modules:[ie,se],loop:!1,slidesPerView:"auto",slideClass:"sw-sl",wrapperClass:"sw-wrp",centeredSlides:!1,centeredSlidesBounds:!1,a11y:{enabled:!1}};!1===window.matchMedia("(min-width: 640px)").matches&&(t.centeredSlides=!0,t.centeredSlidesBounds=!0);let i=new ee('[data-el="tabs-links"]',t);if(1==e.getAttribute("data-scroll-to-current")){e.querySelectorAll("li").forEach(((e,t)=>{e.classList.contains("current")&&i.slideTo(t)}))}}));const e=["border-b-2","border-blue-600","current"];if(t){const s=t.querySelector('[data-el="tabs-links"]');if(s){const t=s.querySelectorAll("a");t&&(t.forEach((n=>{n.addEventListener("click",(n=>{n.preventDefault(),n.stopPropagation();const s=n.target.getAttribute("data-slug");let r=archivePageSlug,a=archiveTopicUrl;t.forEach((t=>{t.closest("li").classList.remove(...e)})),n.target.closest("li").classList.add(...e),""!==s&&(r=a+s),i(r)}))})),n())}}}catch(e){}try{document.querySelectorAll('[data-el="collapsed-title"]').forEach((e=>{e.addEventListener("click",(e=>{const t="collapsed-title"==e.target.getAttribute("data-el")?e.target:e.target.closest('[data-el="collapsed-title"]');t.querySelector("i").classList.toggle("rotate-180"),t.closest('[data-el="collapsed-row"]').querySelector('[data-el="collapsed-content"]').classList.toggle("hidden")}))}))}catch(e){console.error(e)}try{(new ar).init()}catch(e){console.error(e)}try{(new de).init()}catch(e){console.error(e)}try{let e=!0;window.addEventListener("DOMContentLoaded",(function(){e=!1})),"loading"===document.readyState&&window.addEventListener("load",(function(){e&&window.dispatchEvent(new Event("DOMContentLoaded"))}))}catch(e){console.error(e)}new ee('[data-el="ad-carousel"]',{modules:[ie,se],centeredSlides:!0,slidesPerView:1,spaceBetween:0,loop:!0,pagination:{el:'[data-el="ad-carousel-pagination"]'}});try{document.querySelectorAll("[exclude-auto-blocks]").forEach((e=>{const t=e.querySelectorAll("[el-auto-block]");e.after(...t)}))}catch(e){console.error(e)}try{const e=document.querySelectorAll(".wpcf7-select");if(0===!e.length)return;e.forEach((t=>{""==t.value&&t.classList.add("!text-grey-500"),t.addEventListener("change",(t=>{const i=t.target;e.forEach((e=>{e.classList.remove("!text-grey-500")})),""==i.value&&i.classList.add("!text-grey-500")}))}))}catch(e){console.error(e)}},addPaddingFixedBanner(){if(window.matchMedia("(min-width: 1024px)").matches){const e=or(".banner-s-bottom-d:visible");if(e.length){const t=e.outerHeight();lr("body").css({paddingBottom:t+"px"})}}else{const e=or(".banner-s-bottom:visible");if(e.length){const t=e.outerHeight();lr("body").css({paddingBottom:t+"px"})}}let e=[".clickout-banner-regular_native_box-bottom"];"undefined"!=typeof customAnotherBannersInd&&(e=[...e,...customAnotherBannersInd]),e.forEach((e=>{const t=or(e+":visible");if(t.length){const e=t.outerHeight();lr("body").css({paddingBottom:e+"px"})}}))},finalize(){}},dr={init(){if(window.matchMedia("(max-width: 1023px)").matches){const e=document.querySelector(".bic-globe-container");if(e){const t=document.querySelector(".bic-globe");window.addEventListener("scroll",(function(){const i=e.getBoundingClientRect().top+window.scrollY,n=i+e.offsetHeight+t.offsetHeight/2,s=window.pageYOffset,r=s+window.innerHeight;s>=i&&r<=n&&(t.style.top=s-i+"px")}))}}}},ur=i(1669),pr={init(){(()=>{const e=document.querySelectorAll(".glossary-tooltip .glossary-link > a");if(!e)return;const t=()=>{document.querySelectorAll('[data-el="bic-c-glossary-tooltip"]').forEach((e=>{e.classList.contains("block")&&(e.classList.remove("block"),e.classList.add("hidden"))}))};document.addEventListener("keydown",(e=>{void 0!==e?.key&&"escape"===e.key.toLocaleLowerCase()&&t()})),e.forEach((e=>{const i=e.closest(".glossary-tooltip").querySelector('[data-el="bic-c-glossary-tooltip"]');if(i&&null==e.closest(".c-bic-highlighted-text")){e.classList.add("not-link"),e.addEventListener("click",(e=>{e.preventDefault();const i=e.target.closest(".glossary-tooltip").querySelector('[data-el="bic-c-glossary-tooltip"]');if(window.matchMedia("(min-width: 1024px)").matches){const t=e.target.getBoundingClientRect().left,n=window.outerWidth-e.target.getBoundingClientRect().right,s=160;let r=0;if(t{const t=e.target.closest(".glossary-tooltip").querySelector('[data-el="bic-c-glossary-tooltip"]');t.classList.remove("block"),t.classList.add("hidden")})),s&&s.addEventListener("click",(e=>{e.preventDefault();const t=e.target.closest(".glossary-tooltip").querySelector('[data-el="bic-c-glossary-tooltip"]');t.classList.remove("block"),t.classList.add("hidden")}))}}))})(),ur(".share-js, .share-close-js").on("click",(function(e){e.preventDefault(),ur("body").toggleClass("share-popup-active")}))}},hr=i(1669),fr={init(){try{this.scrollToForm(),this.moveJobForm().then((t=>{const i=document.querySelectorAll(".awsm-job-form input[type=file]");i&&i.forEach((t=>{e(t)})),hr(".c-bic-upload-wrapper").wrapAll('
'),this.formPlaceholders(),t.classList.add("form-ready"),hr.ajaxSetup({success:function(){setTimeout((()=>{hr(".awsm-success-message").length?(hr("#awsm-application-form, .required-label").hide(),hr("#application-form-response, #application-form-response .success").show()):hr("#application-form-response, #application-form-response .error").show()}),300)}})})).catch((e=>{})),(()=>{const e=document.querySelectorAll("[data-bic_share]"),t="600";let i=0,n=0;window.innerWidth>t&&(i=window.innerWidth/2-300,n=window.innerHeight/2-300),e.forEach((e=>{void 0!==e.dataset.bic_share&&e.addEventListener("click",(s=>{s.preventDefault();const r=JSON.parse(e.dataset.bic_share),a=document.createElement("div");if(a.classList.add("bic-copied-popup","fixed","right-0","bottom-0","rounded-md","bg-white","text-center","p4","p-5","hidden","items-center","justify-center"),a.style.width="300px",a.style.height="6ch",document.body.appendChild(a),"clipboard"===r.social)return void 0!==r.responseText&&(a.innerText=r.responseText),navigator.clipboard.writeText(r.copyText).then((()=>{a.classList.add("flex"),a.classList.remove("hidden")})),void setTimeout((()=>{a.remove()}),4e3);window.open(r.url,"_blank",`popup=true,width=${t},height=600,noopener,noreferrer,left=${i}, top=${n}`)}))}))})()}catch(e){}},scrollToForm(){const e=document.getElementById("application-form"),t=document.querySelectorAll('[href="#application-form"]');t&&e&&t.forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault(),e.scrollIntoView({behavior:"smooth",block:"start"})}))}))},moveJobForm(){const e=document.querySelector(".awsm-job-form"),t=document.getElementById("awsm-applicant-phone"),i=document.getElementById("awsm-cover-letter"),n=document.querySelector(".awsm-job-form-options-container");if(t.value="+5511592254454",t.parentNode.classList.add("hidden"),i.value="n/a",i.parentNode.classList.add("hidden"),n.parentNode.classList.add("w-full","awsm-job-form-options-container-wrap"),e){const e=hr(".awsm-job-form").detach();document.getElementById("application-form")&&hr("#application-form").append(e)}return new Promise(((t,i)=>{e?t(e):i("Form not found")}))},formPlaceholders(){const e={awsm_applicant_name:"Jane Smith",awsm_applicant_email:"jane@email.com",awsm_applicant_linkedin:"https://www.linkedin.com/in/jane/",awsm_applicant_website:"https://www.website.com",awsm_applicant_location:"Location"};for(let t in e){const i=document.querySelector(`[name=${t}]`);i&&i.setAttribute("placeholder",e[t])}}};class mr{constructor(e=".wpcf7-form"){this.formSelector=e}init(){const e=document.querySelectorAll(this.formSelector);for(let t=0,i=e.length;t${e.validationMessage}`)),t}validateFieldOnBlur(e){const t=e.querySelectorAll(".wpcf7-form-control:not(.wpcf7-submit)"),i=e.querySelector(".wpcf7-submit");let n=null;t.forEach((e=>{e.addEventListener("blur",(e=>{this.validateField(e.currentTarget),i.disabled=!0,this.areAllFieldsValid(t)&&(i.disabled=!1),clearTimeout(n)})),e.addEventListener("keyup",(e=>{n=setTimeout((()=>{this.validateField(e.target),i.disabled=!0,this.areAllFieldsValid(t)&&(i.disabled=!1)}),600)}))}))}areAllFieldsValid(e){const t=[],i=e.length;for(let n=0;n
",t.forEach((t=>{t.appendChild(e)}))}e.init()}catch(e){console.error(e)}}},vr={init(){const e=document.querySelectorAll('[data-el="anchor-menu-item"]');e.forEach((t=>{t.addEventListener("click",(t=>{var i,n;t.preventDefault(),i=e,n=t.currentTarget,i.forEach((e=>{e.classList.remove("active")})),n.classList.add("active");document.querySelector(t.currentTarget.getAttribute("href")).scrollIntoView({behavior:"smooth",block:"start"})}))}))}},_r=e=>`${e.charAt(0).toLowerCase()}${e.replace(/[\W_]/g,"|").split("|").map((e=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`)).join("").slice(1)}`;var br=class{constructor(e){this.routes=e}fire(e,t="init",i){document.dispatchEvent(new CustomEvent("routed",{bubbles:!0,detail:{route:e,fn:t}}));""!==e&&this.routes[e]&&"function"==typeof this.routes[e][t]&&this.routes[e][t](i)}loadEvents(){this.fire("common"),document.body.className.toLowerCase().replace(/-/g,"_").split(/\s+/).map(_r).forEach((e=>{this.fire(e),this.fire(e,"finalize")})),this.fire("common","finalize")}},yr=i(1669);const wr=new br({common:cr,templatePolicies:vr,singleAwsmJobOpenings:fr,single:pr,pageTemplatePageTeam:t,templateContact:gr,pageOurTeam:dr});yr((()=>wr.loadEvents()))}()}();