Untitled

 avatar
unknown
plain_text
2 years ago
326 kB
2
Indexable
(()=>{var Dh=Object.create;var Pi=Object.defineProperty;var Ih=Object.getOwnPropertyDescriptor;var zh=Object.getOwnPropertyNames,za=Object.getOwnPropertySymbols,Fh=Object.getPrototypeOf,Fa=Object.prototype.hasOwnProperty,Rh=Object.prototype.propertyIsEnumerable;var mt=Math.pow,qs=(i,e,t)=>e in i?Pi(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,st=(i,e)=>{for(var t in e||(e={}))Fa.call(e,t)&&qs(i,t,e[t]);if(za)for(var t of za(e))Rh.call(e,t)&&qs(i,t,e[t]);return i};var nt=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports),Bh=(i,e)=>{for(var t in e)Pi(i,t,{get:e[t],enumerable:!0})},Nh=(i,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of zh(e))!Fa.call(i,n)&&n!==t&&Pi(i,n,{get:()=>e[n],enumerable:!(s=Ih(e,n))||s.enumerable});return i};var Ai=(i,e,t)=>(t=i!=null?Dh(Fh(i)):{},Nh(e||!i||!i.__esModule?Pi(t,"default",{value:i,enumerable:!0}):t,i));var ki=(i,e,t)=>(qs(i,typeof e!="symbol"?e+"":e,t),t);var xe=(i,e,t)=>new Promise((s,n)=>{var r=l=>{try{o(t.next(l))}catch(c){n(c)}},a=l=>{try{o(t.throw(l))}catch(c){n(c)}},o=l=>l.done?s(l.value):Promise.resolve(l.value).then(r,a);o((t=t.apply(i,e)).next())});var Wa=nt((Ha,Oi)=>{(function(i,e){typeof define=="function"&&define.amd?define([],function(){return i.svg4everybody=e()}):typeof Oi=="object"&&Oi.exports?Oi.exports=e():i.svg4everybody=e()})(Ha,function(){function i(n,r,a){if(a){var o=document.createDocumentFragment(),l=!r.hasAttribute("viewBox")&&a.getAttribute("viewBox");l&&r.setAttribute("viewBox",l);for(var c=a.cloneNode(!0);c.childNodes.length;)o.appendChild(c.firstChild);n.appendChild(o)}}function e(n){n.onreadystatechange=function(){if(n.readyState===4){var r=n._cachedDocument;r||(r=n._cachedDocument=document.implementation.createHTMLDocument(""),r.body.innerHTML=n.responseText,n._cachedTarget={}),n._embeds.splice(0).map(function(a){var o=n._cachedTarget[a.id];o||(o=n._cachedTarget[a.id]=r.getElementById(a.id)),i(a.parent,a.svg,o)})}},n.onreadystatechange()}function t(n){function r(){for(var v=0;v<p.length;){var E=p[v],_=E.parentNode,y=s(_),b=E.getAttribute("xlink:href")||E.getAttribute("href");if(!b&&o.attributeName&&(b=E.getAttribute(o.attributeName)),y&&b){if(a)if(!o.validate||o.validate(b,y,E)){_.removeChild(E);var x=b.split("#"),S=x.shift(),T=x.join("#");if(S.length){var w=f[S];w||(w=f[S]=new XMLHttpRequest,w.open("GET",S),w.send(),w._embeds=[]),w._embeds.push({parent:_,svg:y,id:T}),e(w)}else i(_,y,document.getElementById(T))}else++v,++g}else++v}(!p.length||p.length-g>0)&&m(r,67)}var a,o=Object(n),l=/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/,c=/\bAppleWebKit\/(\d+)\b/,d=/\bEdge\/12\.(\d+)\b/,u=/\bEdge\/.(\d+)\b/,h=window.top!==window.self;a="polyfill"in o?o.polyfill:l.test(navigator.userAgent)||(navigator.userAgent.match(d)||[])[1]<10547||(navigator.userAgent.match(c)||[])[1]<537||u.test(navigator.userAgent)&&h;var f={},m=window.requestAnimationFrame||setTimeout,p=document.getElementsByTagName("use"),g=0;a&&r()}function s(n){for(var r=n;r.nodeName.toLowerCase()!=="svg"&&(r=r.parentNode););return r}return t})});var kc=nt((f_,Ac)=>{var Tc=!1,Mt,Wr,Gr,cs,ds,wc,us,jr,qr,Ur,Cc,Kr,Qr,Mc,Pc;function Me(){if(!Tc){Tc=!0;var i=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(i),t=/(Mac OS X)|(Windows)|(Linux)/.exec(i);if(Kr=/\b(iPhone|iP[ao]d)/.exec(i),Qr=/\b(iP[ao]d)/.exec(i),Ur=/Android/i.exec(i),Mc=/FBAN\/\w+;/i.exec(i),Pc=/Mobile/i.exec(i),Cc=!!/Win64/.exec(i),e){Mt=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,Mt&&document&&document.documentMode&&(Mt=document.documentMode);var s=/(?:Trident\/(\d+.\d+))/.exec(i);wc=s?parseFloat(s[1])+4:Mt,Wr=e[2]?parseFloat(e[2]):NaN,Gr=e[3]?parseFloat(e[3]):NaN,cs=e[4]?parseFloat(e[4]):NaN,cs?(e=/(?:Chrome\/(\d+\.\d+))/.exec(i),ds=e&&e[1]?parseFloat(e[1]):NaN):ds=NaN}else Mt=Wr=Gr=ds=cs=NaN;if(t){if(t[1]){var n=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(i);us=n?parseFloat(n[1].replace("_",".")):!0}else us=!1;jr=!!t[2],qr=!!t[3]}else us=jr=qr=!1}}var Zr={ie:function(){return Me()||Mt},ieCompatibilityMode:function(){return Me()||wc>Mt},ie64:function(){return Zr.ie()&&Cc},firefox:function(){return Me()||Wr},opera:function(){return Me()||Gr},webkit:function(){return Me()||cs},safari:function(){return Zr.webkit()},chrome:function(){return Me()||ds},windows:function(){return Me()||jr},osx:function(){return Me()||us},linux:function(){return Me()||qr},iphone:function(){return Me()||Kr},mobile:function(){return Me()||Kr||Qr||Ur||Pc},nativeApp:function(){return Me()||Mc},android:function(){return Me()||Ur},ipad:function(){return Me()||Qr}};Ac.exports=Zr});var $c=nt((p_,Lc)=>{"use strict";var hs=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Ep={canUseDOM:hs,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:hs&&!!(window.addEventListener||window.attachEvent),canUseViewport:hs&&!!window.screen,isInWorker:!hs};Lc.exports=Ep});var zc=nt((m_,Ic)=>{"use strict";var Oc=$c(),Dc;Oc.canUseDOM&&(Dc=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Sp(i,e){if(!Oc.canUseDOM||e&&!("addEventListener"in document))return!1;var t="on"+i,s=t in document;if(!s){var n=document.createElement("div");n.setAttribute(t,"return;"),s=typeof n[t]=="function"}return!s&&Dc&&i==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}Ic.exports=Sp});var Yc=nt((g_,Vc)=>{"use strict";var Tp=kc(),wp=zc(),Fc=10,Rc=40,Bc=800;function Nc(i){var e=0,t=0,s=0,n=0;return"detail"in i&&(t=i.detail),"wheelDelta"in i&&(t=-i.wheelDelta/120),"wheelDeltaY"in i&&(t=-i.wheelDeltaY/120),"wheelDeltaX"in i&&(e=-i.wheelDeltaX/120),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(e=t,t=0),s=e*Fc,n=t*Fc,"deltaY"in i&&(n=i.deltaY),"deltaX"in i&&(s=i.deltaX),(s||n)&&i.deltaMode&&(i.deltaMode==1?(s*=Rc,n*=Rc):(s*=Bc,n*=Bc)),s&&!e&&(e=s<1?-1:1),n&&!t&&(t=n<1?-1:1),{spinX:e,spinY:t,pixelX:s,pixelY:n}}Nc.getEventType=function(){return Tp.firefox()?"DOMMouseScroll":wp("wheel")?"wheel":"mousewheel"};Vc.exports=Nc});var Hc=nt((v_,Xc)=>{Xc.exports=Yc()});var Ou=nt((vE,$u)=>{var Zp=4,Jp=.001,em=1e-7,tm=10,xi=11,Es=1/(xi-1),im=typeof Float32Array=="function";function Pu(i,e){return 1-3*e+3*i}function Au(i,e){return 3*e-6*i}function ku(i){return 3*i}function Ss(i,e,t){return((Pu(e,t)*i+Au(e,t))*i+ku(e))*i}function Lu(i,e,t){return 3*Pu(e,t)*i*i+2*Au(e,t)*i+ku(e)}function sm(i,e,t,s,n){var r,a,o=0;do a=e+(t-e)/2,r=Ss(a,s,n)-i,r>0?t=a:e=a;while(Math.abs(r)>em&&++o<tm);return a}function nm(i,e,t,s){for(var n=0;n<Zp;++n){var r=Lu(e,t,s);if(r===0)return e;var a=Ss(e,t,s)-i;e-=a/r}return e}function rm(i){return i}$u.exports=function(e,t,s,n){if(!(0<=e&&e<=1&&0<=s&&s<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&s===n)return rm;for(var r=im?new Float32Array(xi):new Array(xi),a=0;a<xi;++a)r[a]=Ss(a*Es,e,s);function o(l){for(var c=0,d=1,u=xi-1;d!==u&&r[d]<=l;++d)c+=Es;--d;var h=(l-r[d])/(r[d+1]-r[d]),f=c+h*Es,m=Lu(f,e,s);return m>=Jp?nm(l,f,e,s):m===0?f:sm(l,c,c+Es,e,s)}return function(c){return c===0?0:c===1?1:Ss(o(c),t,n)}}});var wh=nt((Pa,Aa)=>{(function(i,e){typeof Pa=="object"&&typeof Aa!="undefined"?Aa.exports=e():typeof define=="function"&&define.amd?define(e):i.Splitting=e()})(Pa,function(){"use strict";var i=document,e=i.createTextNode.bind(i);function t(P,L,D){P.style.setProperty(L,D)}function s(P,L){return P.appendChild(L)}function n(P,L,D,R){var N=i.createElement("span");return L&&(N.className=L),D&&(!R&&N.setAttribute("data-"+L,D),N.textContent=D),P&&s(P,N)||N}function r(P,L){return P.getAttribute("data-"+L)}function a(P,L){return!P||P.length==0?[]:P.nodeName?[P]:[].slice.call(P[0].nodeName?P:(L||i).querySelectorAll(P))}function o(P){for(var L=[];P--;)L[P]=[];return L}function l(P,L){P&&P.some(L)}function c(P){return function(L){return P[L]}}function d(P,L,D){var R="--"+L,N=R+"-index";l(D,function(Q,ee){Array.isArray(Q)?l(Q,function(he){t(he,N,ee)}):t(Q,N,ee)}),t(P,R+"-total",D.length)}var u={};function h(P,L,D){var R=D.indexOf(P);if(R==-1)D.unshift(P),l(u[P].depends,function(Q){h(Q,P,D)});else{var N=D.indexOf(L);D.splice(R,1),D.splice(N,0,P)}return D}function f(P,L,D,R){return{by:P,depends:L,key:D,split:R}}function m(P){return h(P,0,[]).map(c(u))}function p(P){u[P.by]=P}function g(P,L,D,R,N){P.normalize();var Q=[],ee=document.createDocumentFragment();R&&Q.push(P.previousSibling);var he=[];return a(P.childNodes).some(function(pe){if(pe.tagName&&!pe.hasChildNodes()){he.push(pe);return}if(pe.childNodes&&pe.childNodes.length){he.push(pe),Q.push.apply(Q,g(pe,L,D,R,N));return}var pt=pe.wholeText||"",Da=pt.trim();Da.length&&(pt[0]===" "&&he.push(e(" ")),l(Da.split(D),function($h,Oh){Oh&&N&&he.push(n(ee,"whitespace"," ",N));var Ia=n(ee,L,$h);Q.push(Ia),he.push(Ia)}),pt[pt.length-1]===" "&&he.push(e(" ")))}),l(he,function(pe){s(ee,pe)}),P.innerHTML="",s(P,ee),Q}var v=0;function E(P,L){for(var D in L)P[D]=L[D];return P}var _="words",y=f(_,v,"word",function(P){return g(P,"word",/\s+/,0,1)}),b="chars",x=f(b,[_],"char",function(P,L,D){var R=[];return l(D[_],function(N,Q){R.push.apply(R,g(N,"char","",L.whitespace&&Q))}),R});function S(P){P=P||{};var L=P.key;return a(P.target||"[data-splitting]").map(function(D){var R=D["\u{1F34C}"];if(!P.force&&R)return R;R=D["\u{1F34C}"]={el:D};var N=m(P.by||r(D,"splitting")||b),Q=E({},P);return l(N,function(ee){if(ee.split){var he=ee.by,pe=(L?"-"+L:"")+ee.key,pt=ee.split(D,Q,R);pe&&d(D,pe,pt),R[he]=pt,D.classList.add(he)}}),D.classList.add("splitting"),R})}function T(P){P=P||{};var L=P.target=n();return L.innerHTML=P.content,S(P),L.outerHTML}S.html=T,S.add=p;function w(P,L,D){var R=a(L.matching||P.children,P),N={};return l(R,function(Q){var ee=Math.round(Q[D]);(N[ee]||(N[ee]=[])).push(Q)}),Object.keys(N).map(Number).sort(C).map(c(N))}function C(P,L){return P-L}var M=f("lines",[_],"line",function(P,L,D){return w(P,{matching:D[_]},"offsetTop")}),A=f("items",v,"item",function(P,L){return a(L.matching||P.children,P)}),$=f("rows",v,"row",function(P,L){return w(P,L,"offsetTop")}),k=f("cols",v,"col",function(P,L){return w(P,L,"offsetLeft")}),B=f("grid",["rows","cols"]),F="layout",O=f(F,v,v,function(P,L){var D=L.rows=+(L.rows||r(P,"rows")||1),R=L.columns=+(L.columns||r(P,"columns")||1);if(L.image=L.image||r(P,"image")||P.currentSrc||P.src,L.image){var N=a("img",P)[0];L.image=N&&(N.currentSrc||N.src)}L.image&&t(P,"background-image","url("+L.image+")");for(var Q=D*R,ee=[],he=n(v,"cell-grid");Q--;){var pe=n(he,"cell");n(pe,"cell-inner"),ee.push(pe)}return s(P,he),ee}),X=f("cellRows",[F],"row",function(P,L,D){var R=L.rows,N=o(R);return l(D[F],function(Q,ee,he){N[Math.floor(ee/(he.length/R))].push(Q)}),N}),ae=f("cellColumns",[F],"col",function(P,L,D){var R=L.columns,N=o(R);return l(D[F],function(Q,ee){N[ee%R].push(Q)}),N}),le=f("cells",["cellRows","cellColumns"],"cell",function(P,L,D){return D[F]});return p(y),p(x),p(M),p(A),p($),p(k),p(B),p(O),p(X),p(ae),p(le),S})});function $i(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$i=function(e){return typeof e}:$i=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$i(i)}function Na(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function Ra(i,e){for(var t=0;t<e.length;t++){var s=e[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}function Va(i,e,t){return e&&Ra(i.prototype,e),t&&Ra(i,t),i}function Ba(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function Li(i,e){return Xh(i)||Wh(i,e)||Ya(i,e)||jh()}function Vh(i){return Yh(i)||Hh(i)||Ya(i)||Gh()}function Yh(i){if(Array.isArray(i))return Us(i)}function Xh(i){if(Array.isArray(i))return i}function Hh(i){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(i))return Array.from(i)}function Wh(i,e){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(i)))){var t=[],s=!0,n=!1,r=void 0;try{for(var a=i[Symbol.iterator](),o;!(s=(o=a.next()).done)&&(t.push(o.value),!(e&&t.length===e));s=!0);}catch(l){n=!0,r=l}finally{try{!s&&a.return!=null&&a.return()}finally{if(n)throw r}}return t}}function Ya(i,e){if(!!i){if(typeof i=="string")return Us(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Us(i,e)}}function Us(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,s=new Array(e);t<e;t++)s[t]=i[t];return s}function Gh(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=function(){function i(e){Na(this,i),this.mAttr="data-"+e.dataName,this.mCaptureEvents=["mouseenter","mouseleave"],this.el=e.el}return Va(i,[{key:"mInit",value:function(t){var s=this;this.modules=t,this.mCheckEventTarget=this.mCheckEventTarget.bind(this),this.events&&Object.keys(this.events).forEach(function(n){return s.mAddEvent(n)})}},{key:"mUpdate",value:function(t){this.modules=t}},{key:"mDestroy",value:function(){var t=this;this.events&&Object.keys(this.events).forEach(function(s){return t.mRemoveEvent(s)})}},{key:"mAddEvent",value:function(t){var s=!!this.mCaptureEvents.includes(t);this.el.addEventListener(t,this.mCheckEventTarget,s)}},{key:"mRemoveEvent",value:function(t){var s=!!this.mCaptureEvents.includes(t);this.el.removeEventListener(t,this.mCheckEventTarget,s)}},{key:"mCheckEventTarget",value:function(t){var s=this.events[t.type];if(typeof s=="string")this[s](t);else{var n="["+this.mAttr+"]",r=t.target;if(this.mCaptureEvents.includes(t.type))r.matches(n)&&this.mCallEventMethod(t,s,r);else for(;r&&r!==document&&!(r.matches(n)&&this.mCallEventMethod(t,s,r)!="undefined");)r=r.parentNode}}},{key:"mCallEventMethod",value:function(t,s,n){var r=n.getAttribute(this.mAttr);if(s.hasOwnProperty(r)){var a=s[r];t.hasOwnProperty("currentTarget")||Object.defineProperty(t,"currentTarget",{value:n}),t.hasOwnProperty("curTarget")||Object.defineProperty(t,"curTarget",{value:n}),this[a](t)}}},{key:"$",value:function(t,s){var n=t.indexOf("."),r=t.indexOf("#"),a=t.indexOf("["),o=[n,r,a].filter(function(h){return h!=-1}),l=!1,c=t,d="",u=this.el;return o.length&&(l=Math.min.apply(Math,Vh(o)),c=t.slice(0,l),d=t.slice(l)),$i(s)=="object"&&(u=s),u.querySelectorAll("["+this.mAttr+"="+c+"]"+d)}},{key:"parent",value:function(t,s){for(var n="["+this.mAttr+"="+t+"]",r=s.parentNode;r&&r!==document;){if(r.matches(n))return r;r=r.parentNode}}},{key:"getData",value:function(t,s){var n=s||this.el;return n.getAttribute(this.mAttr+"-"+t)}},{key:"setData",value:function(t,s,n){var r=n||this.el;return r.setAttribute(this.mAttr+"-"+t,s)}},{key:"call",value:function(t,s,n,r){var a=this;s&&!n&&(n=s,s=!1),this.modules[n]&&(r?this.modules[n][r]&&this.modules[n][r][t](s):Object.keys(this.modules[n]).forEach(function(o){a.modules[n][o][t](s)}))}},{key:"on",value:function(t,s,n,r){var a=this;this.modules[s]&&(r?this.modules[s][r].el.addEventListener(t,function(o){return n(o)}):Object.keys(this.modules[s]).forEach(function(o){a.modules[s][o].el.addEventListener(t,function(l){return n(l)})}))}},{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),i}(),qh=function(){function i(e){Na(this,i),this.app,this.modules=e.modules,this.currentModules={},this.activeModules={},this.newModules={},this.moduleId=0}return Va(i,[{key:"init",value:function(t,s){var n=this,r=s||document,a=r.querySelectorAll("*");t&&!this.app&&(this.app=t),this.activeModules.app={app:this.app},a.forEach(function(o){Array.from(o.attributes).forEach(function(l){if(l.name.startsWith("data-module")){var c=!1,d=l.name.split("-").splice(2),u=n.toCamel(d);if(n.modules[u]?c=!0:n.modules[n.toUpper(u)]&&(u=n.toUpper(u),c=!0),c){var h={el:o,name:u,dataName:d.join("-")},f=new n.modules[u](h),m=l.value;m||(n.moduleId++,m="m"+n.moduleId,o.setAttribute(l.name,m)),n.addActiveModule(u,m,f);var p=u+"-"+m;s?n.newModules[p]=f:n.currentModules[p]=f}}})}),Object.entries(this.currentModules).forEach(function(o){var l=Li(o,2),c=l[0],d=l[1];if(s){var u=c.split("-"),h=u.shift(),f=u.pop();n.addActiveModule(h,f,d)}else n.initModule(d)})}},{key:"initModule",value:function(t){t.mInit(this.activeModules),t.init()}},{key:"addActiveModule",value:function(t,s,n){this.activeModules[t]?Object.assign(this.activeModules[t],Ba({},s,n)):this.activeModules[t]=Ba({},s,n)}},{key:"update",value:function(t){var s=this;this.init(this.app,t),Object.entries(this.currentModules).forEach(function(n){var r=Li(n,2),a=r[0],o=r[1];o.mUpdate(s.activeModules)}),Object.entries(this.newModules).forEach(function(n){var r=Li(n,2),a=r[0],o=r[1];s.initModule(o)}),Object.assign(this.currentModules,this.newModules)}},{key:"destroy",value:function(t){t?this.destroyScope(t):this.destroyModules()}},{key:"destroyScope",value:function(t){var s=this,n=t.querySelectorAll("*");n.forEach(function(r){Array.from(r.attributes).forEach(function(a){if(a.name.startsWith("data-module")){var o=a.value,l=a.name.split("-").splice(2),c=s.toCamel(l)+"-"+o,d=!1;s.currentModules[c]?d=!0:s.currentModules[s.toUpper(c)]&&(c=s.toUpper(c),d=!0),d&&(s.destroyModule(s.currentModules[c]),delete s.currentModules[c])}})}),this.activeModules={},this.newModules={}}},{key:"destroyModules",value:function(){var t=this;Object.entries(this.currentModules).forEach(function(s){var n=Li(s,2),r=n[0],a=n[1];t.destroyModule(a)}),this.currentModules=[]}},{key:"destroyModule",value:function(t){t.mDestroy(),t.destroy()}},{key:"toCamel",value:function(t){var s=this;return t.reduce(function(n,r){return n+s.toUpper(r)})}},{key:"toUpper",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),i}(),Xa=qh;var Ga=Ai(Wa(),1);function ja(){(0,Ga.default)()}var ka={};Bh(ka,{BulletsImage:()=>Bi,Carousel:()=>Ni,Counter:()=>os,Form:()=>ls,Gallery:()=>ws,GridHelper:()=>At,Header:()=>Cs,HeroReveal:()=>Ms,Hovered:()=>Ps,Introduction:()=>As,Load:()=>Ns,MobileCarousel:()=>ks,ModalChapters:()=>zs,ModalChaptersToggler:()=>Fs,ModalGallery:()=>Rs,ModalGalleryToggler:()=>Bs,Scroll:()=>Ws,ScrollTo:()=>Gs,Splitting:()=>js});function qa(i){return i!==null&&typeof i=="object"&&"constructor"in i&&i.constructor===Object}function Ks(i={},e={}){Object.keys(e).forEach(t=>{typeof i[t]=="undefined"?i[t]=e[t]:qa(e[t])&&qa(i[t])&&Object.keys(e[t]).length>0&&Ks(i[t],e[t])})}var Ua={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function q(){let i=typeof document!="undefined"?document:{};return Ks(i,Ua),i}var Uh={document:Ua,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(i){return typeof setTimeout=="undefined"?(i(),null):setTimeout(i,0)},cancelAnimationFrame(i){typeof setTimeout!="undefined"&&clearTimeout(i)}};function G(){let i=typeof window!="undefined"?window:{};return Ks(i,Uh),i}function Kh(i){let e=i.__proto__;Object.defineProperty(i,"__proto__",{get(){return e},set(t){e.__proto__=t}})}var Xe=class extends Array{constructor(e){typeof e=="number"?super(e):(super(...e||[]),Kh(this))}};function Qt(i=[]){let e=[];return i.forEach(t=>{Array.isArray(t)?e.push(...Qt(t)):e.push(t)}),e}function Ka(i,e){return Array.prototype.filter.call(i,e)}function Qh(i){let e=[];for(let t=0;t<i.length;t+=1)e.indexOf(i[t])===-1&&e.push(i[t]);return e}function Zh(i,e){if(typeof i!="string")return[i];let t=[],s=e.querySelectorAll(i);for(let n=0;n<s.length;n+=1)t.push(s[n]);return t}function V(i,e){let t=G(),s=q(),n=[];if(!e&&i instanceof Xe)return i;if(!i)return new Xe(n);if(typeof i=="string"){let r=i.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let a="div";r.indexOf("<li")===0&&(a="ul"),r.indexOf("<tr")===0&&(a="tbody"),(r.indexOf("<td")===0||r.indexOf("<th")===0)&&(a="tr"),r.indexOf("<tbody")===0&&(a="table"),r.indexOf("<option")===0&&(a="select");let o=s.createElement(a);o.innerHTML=r;for(let l=0;l<o.childNodes.length;l+=1)n.push(o.childNodes[l])}else n=Zh(i.trim(),e||s)}else if(i.nodeType||i===t||i===s)n.push(i);else if(Array.isArray(i)){if(i instanceof Xe)return i;n=i}return new Xe(Qh(n))}V.fn=Xe.prototype;function Qa(...i){let e=Qt(i.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.add(...e)}),this}function Za(...i){let e=Qt(i.map(t=>t.split(" ")));return this.forEach(t=>{t.classList.remove(...e)}),this}function Ja(...i){let e=Qt(i.map(t=>t.split(" ")));this.forEach(t=>{e.forEach(s=>{t.classList.toggle(s)})})}function eo(...i){let e=Qt(i.map(t=>t.split(" ")));return Ka(this,t=>e.filter(s=>t.classList.contains(s)).length>0).length>0}function to(i,e){if(arguments.length===1&&typeof i=="string")return this[0]?this[0].getAttribute(i):void 0;for(let t=0;t<this.length;t+=1)if(arguments.length===2)this[t].setAttribute(i,e);else for(let s in i)this[t][s]=i[s],this[t].setAttribute(s,i[s]);return this}function io(i){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(i);return this}function so(i){for(let e=0;e<this.length;e+=1)this[e].style.transform=i;return this}function no(i){for(let e=0;e<this.length;e+=1)this[e].style.transitionDuration=typeof i!="string"?`${i}ms`:i;return this}function ro(...i){let[e,t,s,n]=i;typeof i[1]=="function"&&([e,s,n]=i,t=void 0),n||(n=!1);function r(c){let d=c.target;if(!d)return;let u=c.target.dom7EventData||[];if(u.indexOf(c)<0&&u.unshift(c),V(d).is(t))s.apply(d,u);else{let h=V(d).parents();for(let f=0;f<h.length;f+=1)V(h[f]).is(t)&&s.apply(h[f],u)}}function a(c){let d=c&&c.target?c.target.dom7EventData||[]:[];d.indexOf(c)<0&&d.unshift(c),s.apply(this,d)}let o=e.split(" "),l;for(let c=0;c<this.length;c+=1){let d=this[c];if(t)for(l=0;l<o.length;l+=1){let u=o[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[u]||(d.dom7LiveListeners[u]=[]),d.dom7LiveListeners[u].push({listener:s,proxyListener:r}),d.addEventListener(u,r,n)}else for(l=0;l<o.length;l+=1){let u=o[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[u]||(d.dom7Listeners[u]=[]),d.dom7Listeners[u].push({listener:s,proxyListener:a}),d.addEventListener(u,a,n)}}return this}function ao(...i){let[e,t,s,n]=i;typeof i[1]=="function"&&([e,s,n]=i,t=void 0),n||(n=!1);let r=e.split(" ");for(let a=0;a<r.length;a+=1){let o=r[a];for(let l=0;l<this.length;l+=1){let c=this[l],d;if(!t&&c.dom7Listeners?d=c.dom7Listeners[o]:t&&c.dom7LiveListeners&&(d=c.dom7LiveListeners[o]),d&&d.length)for(let u=d.length-1;u>=0;u-=1){let h=d[u];s&&h.listener===s||s&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===s?(c.removeEventListener(o,h.proxyListener,n),d.splice(u,1)):s||(c.removeEventListener(o,h.proxyListener,n),d.splice(u,1))}}}return this}function oo(...i){let e=G(),t=i[0].split(" "),s=i[1];for(let n=0;n<t.length;n+=1){let r=t[n];for(let a=0;a<this.length;a+=1){let o=this[a];if(e.CustomEvent){let l=new e.CustomEvent(r,{detail:s,bubbles:!0,cancelable:!0});o.dom7EventData=i.filter((c,d)=>d>0),o.dispatchEvent(l),o.dom7EventData=[],delete o.dom7EventData}}}return this}function lo(i){let e=this;function t(s){s.target===this&&(i.call(this,s),e.off("transitionend",t))}return i&&e.on("transitionend",t),this}function co(i){if(this.length>0){if(i){let e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function uo(i){if(this.length>0){if(i){let e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function ho(){if(this.length>0){let i=G(),e=q(),t=this[0],s=t.getBoundingClientRect(),n=e.body,r=t.clientTop||n.clientTop||0,a=t.clientLeft||n.clientLeft||0,o=t===i?i.scrollY:t.scrollTop,l=t===i?i.scrollX:t.scrollLeft;return{top:s.top+o-r,left:s.left+l-a}}return null}function fo(){let i=G();return this[0]?i.getComputedStyle(this[0],null):{}}function po(i,e){let t=G(),s;if(arguments.length===1)if(typeof i=="string"){if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(i)}else{for(s=0;s<this.length;s+=1)for(let n in i)this[s].style[n]=i[n];return this}if(arguments.length===2&&typeof i=="string"){for(s=0;s<this.length;s+=1)this[s].style[i]=e;return this}return this}function mo(i){return i?(this.forEach((e,t)=>{i.apply(e,[e,t])}),this):this}function go(i){let e=Ka(this,i);return V(e)}function vo(i){if(typeof i=="undefined")return this[0]?this[0].innerHTML:null;for(let e=0;e<this.length;e+=1)this[e].innerHTML=i;return this}function yo(i){if(typeof i=="undefined")return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=i;return this}function bo(i){let e=G(),t=q(),s=this[0],n,r;if(!s||typeof i=="undefined")return!1;if(typeof i=="string"){if(s.matches)return s.matches(i);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(i);if(s.msMatchesSelector)return s.msMatchesSelector(i);for(n=V(i),r=0;r<n.length;r+=1)if(n[r]===s)return!0;return!1}if(i===t)return s===t;if(i===e)return s===e;if(i.nodeType||i instanceof Xe){for(n=i.nodeType?[i]:i,r=0;r<n.length;r+=1)if(n[r]===s)return!0;return!1}return!1}function xo(){let i=this[0],e;if(i){for(e=0;(i=i.previousSibling)!==null;)i.nodeType===1&&(e+=1);return e}}function _o(i){if(typeof i=="undefined")return this;let e=this.length;if(i>e-1)return V([]);if(i<0){let t=e+i;return t<0?V([]):V([this[t]])}return V([this[i]])}function Eo(...i){let e,t=q();for(let s=0;s<i.length;s+=1){e=i[s];for(let n=0;n<this.length;n+=1)if(typeof e=="string"){let r=t.createElement("div");for(r.innerHTML=e;r.firstChild;)this[n].appendChild(r.firstChild)}else if(e instanceof Xe)for(let r=0;r<e.length;r+=1)this[n].appendChild(e[r]);else this[n].appendChild(e)}return this}function So(i){let e=q(),t,s;for(t=0;t<this.length;t+=1)if(typeof i=="string"){let n=e.createElement("div");for(n.innerHTML=i,s=n.childNodes.length-1;s>=0;s-=1)this[t].insertBefore(n.childNodes[s],this[t].childNodes[0])}else if(i instanceof Xe)for(s=0;s<i.length;s+=1)this[t].insertBefore(i[s],this[t].childNodes[0]);else this[t].insertBefore(i,this[t].childNodes[0]);return this}function To(i){return this.length>0?i?this[0].nextElementSibling&&V(this[0].nextElementSibling).is(i)?V([this[0].nextElementSibling]):V([]):this[0].nextElementSibling?V([this[0].nextElementSibling]):V([]):V([])}function wo(i){let e=[],t=this[0];if(!t)return V([]);for(;t.nextElementSibling;){let s=t.nextElementSibling;i?V(s).is(i)&&e.push(s):e.push(s),t=s}return V(e)}function Co(i){if(this.length>0){let e=this[0];return i?e.previousElementSibling&&V(e.previousElementSibling).is(i)?V([e.previousElementSibling]):V([]):e.previousElementSibling?V([e.previousElementSibling]):V([])}return V([])}function Mo(i){let e=[],t=this[0];if(!t)return V([]);for(;t.previousElementSibling;){let s=t.previousElementSibling;i?V(s).is(i)&&e.push(s):e.push(s),t=s}return V(e)}function Po(i){let e=[];for(let t=0;t<this.length;t+=1)this[t].parentNode!==null&&(i?V(this[t].parentNode).is(i)&&e.push(this[t].parentNode):e.push(this[t].parentNode));return V(e)}function Ao(i){let e=[];for(let t=0;t<this.length;t+=1){let s=this[t].parentNode;for(;s;)i?V(s).is(i)&&e.push(s):e.push(s),s=s.parentNode}return V(e)}function ko(i){let e=this;return typeof i=="undefined"?V([]):(e.is(i)||(e=e.parents(i).eq(0)),e)}function Lo(i){let e=[];for(let t=0;t<this.length;t+=1){let s=this[t].querySelectorAll(i);for(let n=0;n<s.length;n+=1)e.push(s[n])}return V(e)}function $o(i){let e=[];for(let t=0;t<this.length;t+=1){let s=this[t].children;for(let n=0;n<s.length;n+=1)(!i||V(s[n]).is(i))&&e.push(s[n])}return V(e)}function Oo(){for(let i=0;i<this.length;i+=1)this[i].parentNode&&this[i].parentNode.removeChild(this[i]);return this}var Jh="resize scroll".split(" ");function te(i){function e(...t){if(typeof t[0]=="undefined"){for(let s=0;s<this.length;s+=1)Jh.indexOf(i)<0&&(i in this[s]?this[s][i]():V(this[s]).trigger(i));return this}return this.on(i,...t)}return e}var $g=te("click"),Og=te("blur"),Dg=te("focus"),Ig=te("focusin"),zg=te("focusout"),Fg=te("keyup"),Rg=te("keydown"),Bg=te("keypress"),Ng=te("submit"),Vg=te("change"),Yg=te("mousedown"),Xg=te("mousemove"),Hg=te("mouseup"),Wg=te("mouseenter"),Gg=te("mouseleave"),jg=te("mouseout"),qg=te("mouseover"),Ug=te("touchstart"),Kg=te("touchend"),Qg=te("touchmove"),Zg=te("resize"),Jg=te("scroll");var Do={addClass:Qa,removeClass:Za,hasClass:eo,toggleClass:Ja,attr:to,removeAttr:io,transform:so,transition:no,on:ro,off:ao,trigger:oo,transitionEnd:lo,outerWidth:co,outerHeight:uo,styles:fo,offset:ho,css:po,each:mo,html:vo,text:yo,is:bo,index:xo,eq:_o,append:Eo,prepend:So,next:To,nextAll:wo,prev:Co,prevAll:Mo,parent:Po,parents:Ao,closest:ko,find:Lo,children:$o,filter:go,remove:Oo};Object.keys(Do).forEach(i=>{Object.defineProperty(V.fn,i,{value:Do[i],writable:!0})});var I=V;function Io(i){let e=i;Object.keys(e).forEach(t=>{try{e[t]=null}catch(s){}try{delete e[t]}catch(s){}})}function He(i,e=0){return setTimeout(i,e)}function Ne(){return Date.now()}function ef(i){let e=G(),t;return e.getComputedStyle&&(t=e.getComputedStyle(i,null)),!t&&i.currentStyle&&(t=i.currentStyle),t||(t=i.style),t}function Qs(i,e="x"){let t=G(),s,n,r,a=ef(i,null);return t.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(o=>o.replace(",",".")).join(", ")),r=new t.WebKitCSSMatrix(n==="none"?"":n)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=r.toString().split(",")),e==="x"&&(t.WebKitCSSMatrix?n=r.m41:s.length===16?n=parseFloat(s[12]):n=parseFloat(s[4])),e==="y"&&(t.WebKitCSSMatrix?n=r.m42:s.length===16?n=parseFloat(s[13]):n=parseFloat(s[5])),n||0}function Zt(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function tf(i){return typeof window!="undefined"&&typeof window.HTMLElement!="undefined"?i instanceof HTMLElement:i&&(i.nodeType===1||i.nodeType===11)}function me(...i){let e=Object(i[0]),t=["__proto__","constructor","prototype"];for(let s=1;s<i.length;s+=1){let n=i[s];if(n!=null&&!tf(n)){let r=Object.keys(Object(n)).filter(a=>t.indexOf(a)<0);for(let a=0,o=r.length;a<o;a+=1){let l=r[a],c=Object.getOwnPropertyDescriptor(n,l);c!==void 0&&c.enumerable&&(Zt(e[l])&&Zt(n[l])?n[l].__swiper__?e[l]=n[l]:me(e[l],n[l]):!Zt(e[l])&&Zt(n[l])?(e[l]={},n[l].__swiper__?e[l]=n[l]:me(e[l],n[l])):e[l]=n[l])}}}return e}function $t(i,e,t){i.style.setProperty(e,t)}function Di({swiper:i,targetPosition:e,side:t}){let s=G(),n=-i.translate,r=null,a,o=i.params.speed;i.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(i.cssModeFrameID);let l=e>n?"next":"prev",c=(u,h)=>l==="next"&&u>=h||l==="prev"&&u<=h,d=()=>{a=new Date().getTime(),r===null&&(r=a);let u=Math.max(Math.min((a-r)/o,1),0),h=.5-Math.cos(u*Math.PI)/2,f=n+h*(e-n);if(c(f,e)&&(f=e),i.wrapperEl.scrollTo({[t]:f}),c(f,e)){i.wrapperEl.style.overflow="hidden",i.wrapperEl.style.scrollSnapType="",setTimeout(()=>{i.wrapperEl.style.overflow="",i.wrapperEl.scrollTo({[t]:f})}),s.cancelAnimationFrame(i.cssModeFrameID);return}i.cssModeFrameID=s.requestAnimationFrame(d)};d()}var Zs;function sf(){let i=G(),e=q();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in i||i.DocumentTouch&&e instanceof i.DocumentTouch),passiveListener:function(){let s=!1;try{let n=Object.defineProperty({},"passive",{get(){s=!0}});i.addEventListener("testPassiveListener",null,n)}catch(n){}return s}(),gestures:function(){return"ongesturestart"in i}()}}function Ii(){return Zs||(Zs=sf()),Zs}var Js;function nf({userAgent:i}={}){let e=Ii(),t=G(),s=t.navigator.platform,n=i||t.navigator.userAgent,r={ios:!1,android:!1},a=t.screen.width,o=t.screen.height,l=n.match(/(Android);?[\s\/]+([\d.]+)?/),c=n.match(/(iPad).*OS\s([\d_]+)/),d=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=s==="Win32",f=s==="MacIntel",m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&f&&e.touch&&m.indexOf(`${a}x${o}`)>=0&&(c=n.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),f=!1),l&&!h&&(r.os="android",r.android=!0),(c||u||d)&&(r.os="ios",r.ios=!0),r}function zo(i={}){return Js||(Js=nf(i)),Js}var en;function rf(){let i=G();function e(){let t=i.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}return{isSafari:e(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent)}}function Fo(){return en||(en=rf()),en}function tn({swiper:i,on:e,emit:t}){let s=G(),n=null,r=null,a=()=>{!i||i.destroyed||!i.initialized||(t("beforeResize"),t("resize"))},o=()=>{!i||i.destroyed||!i.initialized||(n=new ResizeObserver(d=>{r=s.requestAnimationFrame(()=>{let{width:u,height:h}=i,f=u,m=h;d.forEach(({contentBoxSize:p,contentRect:g,target:v})=>{v&&v!==i.el||(f=g?g.width:(p[0]||p).inlineSize,m=g?g.height:(p[0]||p).blockSize)}),(f!==u||m!==h)&&a()})}),n.observe(i.el))},l=()=>{r&&s.cancelAnimationFrame(r),n&&n.unobserve&&i.el&&(n.unobserve(i.el),n=null)},c=()=>{!i||i.destroyed||!i.initialized||t("orientationchange")};e("init",()=>{if(i.params.resizeObserver&&typeof s.ResizeObserver!="undefined"){o();return}s.addEventListener("resize",a),s.addEventListener("orientationchange",c)}),e("destroy",()=>{l(),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",c)})}function sn({swiper:i,extendParams:e,on:t,emit:s}){let n=[],r=G(),a=(c,d={})=>{let u=r.MutationObserver||r.WebkitMutationObserver,h=new u(f=>{if(f.length===1){s("observerUpdate",f[0]);return}let m=function(){s("observerUpdate",f[0])};r.requestAnimationFrame?r.requestAnimationFrame(m):r.setTimeout(m,0)});h.observe(c,{attributes:typeof d.attributes=="undefined"?!0:d.attributes,childList:typeof d.childList=="undefined"?!0:d.childList,characterData:typeof d.characterData=="undefined"?!0:d.characterData}),n.push(h)},o=()=>{if(!!i.params.observer){if(i.params.observeParents){let c=i.$el.parents();for(let d=0;d<c.length;d+=1)a(c[d])}a(i.$el[0],{childList:i.params.observeSlideChildren}),a(i.$wrapperEl[0],{attributes:!1})}},l=()=>{n.forEach(c=>{c.disconnect()}),n.splice(0,n.length)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),t("init",o),t("destroy",l)}var Ro={on(i,e,t){let s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;let n=t?"unshift":"push";return i.split(" ").forEach(r=>{s.eventsListeners[r]||(s.eventsListeners[r]=[]),s.eventsListeners[r][n](e)}),s},once(i,e,t){let s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function n(...r){s.off(i,n),n.__emitterProxy&&delete n.__emitterProxy,e.apply(s,r)}return n.__emitterProxy=e,s.on(i,n,t)},onAny(i,e){let t=this;if(!t.eventsListeners||t.destroyed||typeof i!="function")return t;let s=e?"unshift":"push";return t.eventsAnyListeners.indexOf(i)<0&&t.eventsAnyListeners[s](i),t},offAny(i){let e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;let t=e.eventsAnyListeners.indexOf(i);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off(i,e){let t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||i.split(" ").forEach(s=>{typeof e=="undefined"?t.eventsListeners[s]=[]:t.eventsListeners[s]&&t.eventsListeners[s].forEach((n,r)=>{(n===e||n.__emitterProxy&&n.__emitterProxy===e)&&t.eventsListeners[s].splice(r,1)})}),t},emit(...i){let e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,s,n;return typeof i[0]=="string"||Array.isArray(i[0])?(t=i[0],s=i.slice(1,i.length),n=e):(t=i[0].events,s=i[0].data,n=i[0].context||e),s.unshift(n),(Array.isArray(t)?t:t.split(" ")).forEach(a=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(o=>{o.apply(n,[a,...s])}),e.eventsListeners&&e.eventsListeners[a]&&e.eventsListeners[a].forEach(o=>{o.apply(n,s)})}),e}};function nn(){let i=this,e,t,s=i.$el;typeof i.params.width!="undefined"&&i.params.width!==null?e=i.params.width:e=s[0].clientWidth,typeof i.params.height!="undefined"&&i.params.height!==null?t=i.params.height:t=s[0].clientHeight,!(e===0&&i.isHorizontal()||t===0&&i.isVertical())&&(e=e-parseInt(s.css("padding-left")||0,10)-parseInt(s.css("padding-right")||0,10),t=t-parseInt(s.css("padding-top")||0,10)-parseInt(s.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(i,{width:e,height:t,size:i.isHorizontal()?e:t}))}function rn(){let i=this;function e(C){return i.isHorizontal()?C:{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"}[C]}function t(C,M){return parseFloat(C.getPropertyValue(e(M))||0)}let s=i.params,{$wrapperEl:n,size:r,rtlTranslate:a,wrongRTL:o}=i,l=i.virtual&&s.virtual.enabled,c=l?i.virtual.slides.length:i.slides.length,d=n.children(`.${i.params.slideClass}`),u=l?i.virtual.slides.length:d.length,h=[],f=[],m=[],p=s.slidesOffsetBefore;typeof p=="function"&&(p=s.slidesOffsetBefore.call(i));let g=s.slidesOffsetAfter;typeof g=="function"&&(g=s.slidesOffsetAfter.call(i));let v=i.snapGrid.length,E=i.slidesGrid.length,_=s.spaceBetween,y=-p,b=0,x=0;if(typeof r=="undefined")return;typeof _=="string"&&_.indexOf("%")>=0&&(_=parseFloat(_.replace("%",""))/100*r),i.virtualSize=-_,a?d.css({marginLeft:"",marginBottom:"",marginTop:""}):d.css({marginRight:"",marginBottom:"",marginTop:""}),s.centeredSlides&&s.cssMode&&($t(i.wrapperEl,"--swiper-centered-offset-before",""),$t(i.wrapperEl,"--swiper-centered-offset-after",""));let S=s.grid&&s.grid.rows>1&&i.grid;S&&i.grid.initSlides(u);let T,w=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(C=>typeof s.breakpoints[C].slidesPerView!="undefined").length>0;for(let C=0;C<u;C+=1){T=0;let M=d.eq(C);if(S&&i.grid.updateSlide(C,M,u,e),M.css("display")!=="none"){if(s.slidesPerView==="auto"){w&&(d[C].style[e("width")]="");let A=getComputedStyle(M[0]),$=M[0].style.transform,k=M[0].style.webkitTransform;if($&&(M[0].style.transform="none"),k&&(M[0].style.webkitTransform="none"),s.roundLengths)T=i.isHorizontal()?M.outerWidth(!0):M.outerHeight(!0);else{let B=t(A,"width"),F=t(A,"padding-left"),O=t(A,"padding-right"),X=t(A,"margin-left"),ae=t(A,"margin-right"),le=A.getPropertyValue("box-sizing");if(le&&le==="border-box")T=B+X+ae;else{let{clientWidth:P,offsetWidth:L}=M[0];T=B+F+O+X+ae+(L-P)}}$&&(M[0].style.transform=$),k&&(M[0].style.webkitTransform=k),s.roundLengths&&(T=Math.floor(T))}else T=(r-(s.slidesPerView-1)*_)/s.slidesPerView,s.roundLengths&&(T=Math.floor(T)),d[C]&&(d[C].style[e("width")]=`${T}px`);d[C]&&(d[C].swiperSlideSize=T),m.push(T),s.centeredSlides?(y=y+T/2+b/2+_,b===0&&C!==0&&(y=y-r/2-_),C===0&&(y=y-r/2-_),Math.abs(y)<1/1e3&&(y=0),s.roundLengths&&(y=Math.floor(y)),x%s.slidesPerGroup===0&&h.push(y),f.push(y)):(s.roundLengths&&(y=Math.floor(y)),(x-Math.min(i.params.slidesPerGroupSkip,x))%i.params.slidesPerGroup===0&&h.push(y),f.push(y),y=y+T+_),i.virtualSize+=T+_,b=T,x+=1}}if(i.virtualSize=Math.max(i.virtualSize,r)+g,a&&o&&(s.effect==="slide"||s.effect==="coverflow")&&n.css({width:`${i.virtualSize+s.spaceBetween}px`}),s.setWrapperSize&&n.css({[e("width")]:`${i.virtualSize+s.spaceBetween}px`}),S&&i.grid.updateWrapperSize(T,h,e),!s.centeredSlides){let C=[];for(let M=0;M<h.length;M+=1){let A=h[M];s.roundLengths&&(A=Math.floor(A)),h[M]<=i.virtualSize-r&&C.push(A)}h=C,Math.floor(i.virtualSize-r)-Math.floor(h[h.length-1])>1&&h.push(i.virtualSize-r)}if(h.length===0&&(h=[0]),s.spaceBetween!==0){let C=i.isHorizontal()&&a?"marginLeft":e("marginRight");d.filter((M,A)=>s.cssMode?A!==d.length-1:!0).css({[C]:`${_}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let C=0;m.forEach(A=>{C+=A+(s.spaceBetween?s.spaceBetween:0)}),C-=s.spaceBetween;let M=C-r;h=h.map(A=>A<0?-p:A>M?M+g:A)}if(s.centerInsufficientSlides){let C=0;if(m.forEach(M=>{C+=M+(s.spaceBetween?s.spaceBetween:0)}),C-=s.spaceBetween,C<r){let M=(r-C)/2;h.forEach((A,$)=>{h[$]=A-M}),f.forEach((A,$)=>{f[$]=A+M})}}if(Object.assign(i,{slides:d,snapGrid:h,slidesGrid:f,slidesSizesGrid:m}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){$t(i.wrapperEl,"--swiper-centered-offset-before",`${-h[0]}px`),$t(i.wrapperEl,"--swiper-centered-offset-after",`${i.size/2-m[m.length-1]/2}px`);let C=-i.snapGrid[0],M=-i.slidesGrid[0];i.snapGrid=i.snapGrid.map(A=>A+C),i.slidesGrid=i.slidesGrid.map(A=>A+M)}if(u!==c&&i.emit("slidesLengthChange"),h.length!==v&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),f.length!==E&&i.emit("slidesGridLengthChange"),s.watchSlidesProgress&&i.updateSlidesOffset(),!l&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){let C=`${s.containerModifierClass}backface-hidden`,M=i.$el.hasClass(C);u<=s.maxBackfaceHiddenSlides?M||i.$el.addClass(C):M&&i.$el.removeClass(C)}}function an(i){let e=this,t=[],s=e.virtual&&e.params.virtual.enabled,n=0,r;typeof i=="number"?e.setTransition(i):i===!0&&e.setTransition(e.params.speed);let a=o=>s?e.slides.filter(l=>parseInt(l.getAttribute("data-swiper-slide-index"),10)===o)[0]:e.slides.eq(o)[0];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||I([])).each(o=>{t.push(o)});else for(r=0;r<Math.ceil(e.params.slidesPerView);r+=1){let o=e.activeIndex+r;if(o>e.slides.length&&!s)break;t.push(a(o))}else t.push(a(e.activeIndex));for(r=0;r<t.length;r+=1)if(typeof t[r]!="undefined"){let o=t[r].offsetHeight;n=o>n?o:n}(n||n===0)&&e.$wrapperEl.css("height",`${n}px`)}function on(){let i=this,e=i.slides;for(let t=0;t<e.length;t+=1)e[t].swiperSlideOffset=i.isHorizontal()?e[t].offsetLeft:e[t].offsetTop}function ln(i=this&&this.translate||0){let e=this,t=e.params,{slides:s,rtlTranslate:n,snapGrid:r}=e;if(s.length===0)return;typeof s[0].swiperSlideOffset=="undefined"&&e.updateSlidesOffset();let a=-i;n&&(a=i),s.removeClass(t.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let o=0;o<s.length;o+=1){let l=s[o],c=l.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(c-=s[0].swiperSlideOffset);let d=(a+(t.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+t.spaceBetween),u=(a-r[0]+(t.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+t.spaceBetween),h=-(a-c),f=h+e.slidesSizesGrid[o];(h>=0&&h<e.size-1||f>1&&f<=e.size||h<=0&&f>=e.size)&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(o),s.eq(o).addClass(t.slideVisibleClass)),l.progress=n?-d:d,l.originalProgress=n?-u:u}e.visibleSlides=I(e.visibleSlides)}function cn(i){let e=this;if(typeof i=="undefined"){let c=e.rtlTranslate?-1:1;i=e&&e.translate&&e.translate*c||0}let t=e.params,s=e.maxTranslate()-e.minTranslate(),{progress:n,isBeginning:r,isEnd:a}=e,o=r,l=a;s===0?(n=0,r=!0,a=!0):(n=(i-e.minTranslate())/s,r=n<=0,a=n>=1),Object.assign(e,{progress:n,isBeginning:r,isEnd:a}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(i),r&&!o&&e.emit("reachBeginning toEdge"),a&&!l&&e.emit("reachEnd toEdge"),(o&&!r||l&&!a)&&e.emit("fromEdge"),e.emit("progress",n)}function dn(){let i=this,{slides:e,params:t,$wrapperEl:s,activeIndex:n,realIndex:r}=i,a=i.virtual&&t.virtual.enabled;e.removeClass(`${t.slideActiveClass} ${t.slideNextClass} ${t.slidePrevClass} ${t.slideDuplicateActiveClass} ${t.slideDuplicateNextClass} ${t.slideDuplicatePrevClass}`);let o;a?o=i.$wrapperEl.find(`.${t.slideClass}[data-swiper-slide-index="${n}"]`):o=e.eq(n),o.addClass(t.slideActiveClass),t.loop&&(o.hasClass(t.slideDuplicateClass)?s.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(t.slideDuplicateActiveClass):s.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(t.slideDuplicateActiveClass));let l=o.nextAll(`.${t.slideClass}`).eq(0).addClass(t.slideNextClass);t.loop&&l.length===0&&(l=e.eq(0),l.addClass(t.slideNextClass));let c=o.prevAll(`.${t.slideClass}`).eq(0).addClass(t.slidePrevClass);t.loop&&c.length===0&&(c=e.eq(-1),c.addClass(t.slidePrevClass)),t.loop&&(l.hasClass(t.slideDuplicateClass)?s.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass):s.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicateNextClass),c.hasClass(t.slideDuplicateClass)?s.children(`.${t.slideClass}:not(.${t.slideDuplicateClass})[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass):s.children(`.${t.slideClass}.${t.slideDuplicateClass}[data-swiper-slide-index="${c.attr("data-swiper-slide-index")}"]`).addClass(t.slideDuplicatePrevClass)),i.emitSlidesClasses()}function un(i){let e=this,t=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:s,snapGrid:n,params:r,activeIndex:a,realIndex:o,snapIndex:l}=e,c=i,d;if(typeof c=="undefined"){for(let h=0;h<s.length;h+=1)typeof s[h+1]!="undefined"?t>=s[h]&&t<s[h+1]-(s[h+1]-s[h])/2?c=h:t>=s[h]&&t<s[h+1]&&(c=h+1):t>=s[h]&&(c=h);r.normalizeSlideIndex&&(c<0||typeof c=="undefined")&&(c=0)}if(n.indexOf(t)>=0)d=n.indexOf(t);else{let h=Math.min(r.slidesPerGroupSkip,c);d=h+Math.floor((c-h)/r.slidesPerGroup)}if(d>=n.length&&(d=n.length-1),c===a){d!==l&&(e.snapIndex=d,e.emit("snapIndexChange"));return}let u=parseInt(e.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(e,{snapIndex:d,realIndex:u,previousIndex:a,activeIndex:c}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),o!==u&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function hn(i){let e=this,t=e.params,s=I(i).closest(`.${t.slideClass}`)[0],n=!1,r;if(s){for(let a=0;a<e.slides.length;a+=1)if(e.slides[a]===s){n=!0,r=a;break}}if(s&&n)e.clickedSlide=s,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(I(s).attr("data-swiper-slide-index"),10):e.clickedIndex=r;else{e.clickedSlide=void 0,e.clickedIndex=void 0;return}t.slideToClickedSlide&&e.clickedIndex!==void 0&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}var Bo={updateSize:nn,updateSlides:rn,updateAutoHeight:an,updateSlidesOffset:on,updateSlidesProgress:ln,updateProgress:cn,updateSlidesClasses:dn,updateActiveIndex:un,updateClickedSlide:hn};function fn(i=this.isHorizontal()?"x":"y"){let e=this,{params:t,rtlTranslate:s,translate:n,$wrapperEl:r}=e;if(t.virtualTranslate)return s?-n:n;if(t.cssMode)return n;let a=Qs(r[0],i);return s&&(a=-a),a||0}function pn(i,e){let t=this,{rtlTranslate:s,params:n,$wrapperEl:r,wrapperEl:a,progress:o}=t,l=0,c=0,d=0;t.isHorizontal()?l=s?-i:i:c=i,n.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.cssMode?a[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-l:-c:n.virtualTranslate||r.transform(`translate3d(${l}px, ${c}px, ${d}px)`),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?l:c;let u,h=t.maxTranslate()-t.minTranslate();h===0?u=0:u=(i-t.minTranslate())/h,u!==o&&t.updateProgress(i),t.emit("setTranslate",t.translate,e)}function mn(){return-this.snapGrid[0]}function gn(){return-this.snapGrid[this.snapGrid.length-1]}function vn(i=0,e=this.params.speed,t=!0,s=!0,n){let r=this,{params:a,wrapperEl:o}=r;if(r.animating&&a.preventInteractionOnTransition)return!1;let l=r.minTranslate(),c=r.maxTranslate(),d;if(s&&i>l?d=l:s&&i<c?d=c:d=i,r.updateProgress(d),a.cssMode){let u=r.isHorizontal();if(e===0)o[u?"scrollLeft":"scrollTop"]=-d;else{if(!r.support.smoothScroll)return Di({swiper:r,targetPosition:-d,side:u?"left":"top"}),!0;o.scrollTo({[u?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(r.setTransition(0),r.setTranslate(d),t&&(r.emit("beforeTransitionStart",e,n),r.emit("transitionEnd"))):(r.setTransition(e),r.setTranslate(d),t&&(r.emit("beforeTransitionStart",e,n),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(h){!r||r.destroyed||h.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,t&&r.emit("transitionEnd"))}),r.$wrapperEl[0].addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onTranslateToWrapperTransitionEnd))),!0}var No={getTranslate:fn,setTranslate:pn,minTranslate:mn,maxTranslate:gn,translateTo:vn};function yn(i,e){let t=this;t.params.cssMode||t.$wrapperEl.transition(i),t.emit("setTransition",i,e)}function Jt({swiper:i,runCallbacks:e,direction:t,step:s}){let{activeIndex:n,previousIndex:r}=i,a=t;if(a||(n>r?a="next":n<r?a="prev":a="reset"),i.emit(`transition${s}`),e&&n!==r){if(a==="reset"){i.emit(`slideResetTransition${s}`);return}i.emit(`slideChangeTransition${s}`),a==="next"?i.emit(`slideNextTransition${s}`):i.emit(`slidePrevTransition${s}`)}}function bn(i=!0,e){let t=this,{params:s}=t;s.cssMode||(s.autoHeight&&t.updateAutoHeight(),Jt({swiper:t,runCallbacks:i,direction:e,step:"Start"}))}function xn(i=!0,e){let t=this,{params:s}=t;t.animating=!1,!s.cssMode&&(t.setTransition(0),Jt({swiper:t,runCallbacks:i,direction:e,step:"End"}))}var Vo={setTransition:yn,transitionStart:bn,transitionEnd:xn};function _n(i=0,e=this.params.speed,t=!0,s,n){if(typeof i!="number"&&typeof i!="string")throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof i}] given.`);if(typeof i=="string"){let _=parseInt(i,10);if(!isFinite(_))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${i}] given.`);i=_}let r=this,a=i;a<0&&(a=0);let{params:o,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:f,enabled:m}=r;if(r.animating&&o.preventInteractionOnTransition||!m&&!s&&!n)return!1;let p=Math.min(r.params.slidesPerGroupSkip,a),g=p+Math.floor((a-p)/r.params.slidesPerGroup);g>=l.length&&(g=l.length-1);let v=-l[g];if(o.normalizeSlideIndex)for(let _=0;_<c.length;_+=1){let y=-Math.floor(v*100),b=Math.floor(c[_]*100),x=Math.floor(c[_+1]*100);typeof c[_+1]!="undefined"?y>=b&&y<x-(x-b)/2?a=_:y>=b&&y<x&&(a=_+1):y>=b&&(a=_)}if(r.initialized&&a!==u&&(!r.allowSlideNext&&v<r.translate&&v<r.minTranslate()||!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(u||0)!==a))return!1;a!==(d||0)&&t&&r.emit("beforeSlideChangeStart"),r.updateProgress(v);let E;if(a>u?E="next":a<u?E="prev":E="reset",h&&-v===r.translate||!h&&v===r.translate)return r.updateActiveIndex(a),o.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),o.effect!=="slide"&&r.setTranslate(v),E!=="reset"&&(r.transitionStart(t,E),r.transitionEnd(t,E)),!1;if(o.cssMode){let _=r.isHorizontal(),y=h?v:-v;if(e===0){let b=r.virtual&&r.params.virtual.enabled;b&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),f[_?"scrollLeft":"scrollTop"]=y,b&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._swiperImmediateVirtual=!1})}else{if(!r.support.smoothScroll)return Di({swiper:r,targetPosition:y,side:_?"left":"top"}),!0;f.scrollTo({[_?"left":"top"]:y,behavior:"smooth"})}return!0}return r.setTransition(e),r.setTranslate(v),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,s),r.transitionStart(t,E),e===0?r.transitionEnd(t,E):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(y){!r||r.destroyed||y.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(t,E))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd)),!0}function En(i=0,e=this.params.speed,t=!0,s){if(typeof i=="string"){let a=parseInt(i,10);if(!isFinite(a))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${i}] given.`);i=a}let n=this,r=i;return n.params.loop&&(r+=n.loopedSlides),n.slideTo(r,e,t,s)}function Sn(i=this.params.speed,e=!0,t){let s=this,{animating:n,enabled:r,params:a}=s;if(!r)return s;let o=a.slidesPerGroup;a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));let l=s.activeIndex<a.slidesPerGroupSkip?1:o;if(a.loop){if(n&&a.loopPreventsSlide)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}return a.rewind&&s.isEnd?s.slideTo(0,i,e,t):s.slideTo(s.activeIndex+l,i,e,t)}function Tn(i=this.params.speed,e=!0,t){let s=this,{params:n,animating:r,snapGrid:a,slidesGrid:o,rtlTranslate:l,enabled:c}=s;if(!c)return s;if(n.loop){if(r&&n.loopPreventsSlide)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}let d=l?s.translate:-s.translate;function u(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}let h=u(d),f=a.map(g=>u(g)),m=a[f.indexOf(h)-1];if(typeof m=="undefined"&&n.cssMode){let g;a.forEach((v,E)=>{h>=v&&(g=E)}),typeof g!="undefined"&&(m=a[g>0?g-1:g])}let p=0;if(typeof m!="undefined"&&(p=o.indexOf(m),p<0&&(p=s.activeIndex-1),n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(p=p-s.slidesPerViewDynamic("previous",!0)+1,p=Math.max(p,0))),n.rewind&&s.isBeginning){let g=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(g,i,e,t)}return s.slideTo(p,i,e,t)}function wn(i=this.params.speed,e=!0,t){let s=this;return s.slideTo(s.activeIndex,i,e,t)}function Cn(i=this.params.speed,e=!0,t,s=.5){let n=this,r=n.activeIndex,a=Math.min(n.params.slidesPerGroupSkip,r),o=a+Math.floor((r-a)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[o]){let c=n.snapGrid[o],d=n.snapGrid[o+1];l-c>(d-c)*s&&(r+=n.params.slidesPerGroup)}else{let c=n.snapGrid[o-1],d=n.snapGrid[o];l-c<=(d-c)*s&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,i,e,t)}function Mn(){let i=this,{params:e,$wrapperEl:t}=i,s=e.slidesPerView==="auto"?i.slidesPerViewDynamic():e.slidesPerView,n=i.clickedIndex,r;if(e.loop){if(i.animating)return;r=parseInt(I(i.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?n<i.loopedSlides-s/2||n>i.slides.length-i.loopedSlides+s/2?(i.loopFix(),n=t.children(`.${e.slideClass}[data-swiper-slide-index="${r}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),He(()=>{i.slideTo(n)})):i.slideTo(n):n>i.slides.length-s?(i.loopFix(),n=t.children(`.${e.slideClass}[data-swiper-slide-index="${r}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),He(()=>{i.slideTo(n)})):i.slideTo(n)}else i.slideTo(n)}var Yo={slideTo:_n,slideToLoop:En,slideNext:Sn,slidePrev:Tn,slideReset:wn,slideToClosest:Cn,slideToClickedSlide:Mn};function Pn(){let i=this,e=q(),{params:t,$wrapperEl:s}=i,n=s.children().length>0?I(s.children()[0].parentNode):s;n.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let r=n.children(`.${t.slideClass}`);if(t.loopFillGroupWithBlank){let l=t.slidesPerGroup-r.length%t.slidesPerGroup;if(l!==t.slidesPerGroup){for(let c=0;c<l;c+=1){let d=I(e.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);n.append(d)}r=n.children(`.${t.slideClass}`)}}t.slidesPerView==="auto"&&!t.loopedSlides&&(t.loopedSlides=r.length),i.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),i.loopedSlides+=t.loopAdditionalSlides,i.loopedSlides>r.length&&i.params.loopedSlidesLimit&&(i.loopedSlides=r.length);let a=[],o=[];r.each((l,c)=>{I(l).attr("data-swiper-slide-index",c)});for(let l=0;l<i.loopedSlides;l+=1){let c=l-Math.floor(l/r.length)*r.length;o.push(r.eq(c)[0]),a.unshift(r.eq(r.length-c-1)[0])}for(let l=0;l<o.length;l+=1)n.append(I(o[l].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let l=a.length-1;l>=0;l-=1)n.prepend(I(a[l].cloneNode(!0)).addClass(t.slideDuplicateClass))}function An(){let i=this;i.emit("beforeLoopFix");let{activeIndex:e,slides:t,loopedSlides:s,allowSlidePrev:n,allowSlideNext:r,snapGrid:a,rtlTranslate:o}=i,l;i.allowSlidePrev=!0,i.allowSlideNext=!0;let d=-a[e]-i.getTranslate();e<s?(l=t.length-s*3+e,l+=s,i.slideTo(l,0,!1,!0)&&d!==0&&i.setTranslate((o?-i.translate:i.translate)-d)):e>=t.length-s&&(l=-t.length+e+s,l+=s,i.slideTo(l,0,!1,!0)&&d!==0&&i.setTranslate((o?-i.translate:i.translate)-d)),i.allowSlidePrev=n,i.allowSlideNext=r,i.emit("loopFix")}function kn(){let i=this,{$wrapperEl:e,params:t,slides:s}=i;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),s.removeAttr("data-swiper-slide-index")}var Xo={loopCreate:Pn,loopFix:An,loopDestroy:kn};function Ln(i){let e=this;if(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;let t=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;t.style.cursor="move",t.style.cursor=i?"grabbing":"grab"}function $n(){let i=this;i.support.touch||i.params.watchOverflow&&i.isLocked||i.params.cssMode||(i[i.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}var Ho={setGrabCursor:Ln,unsetGrabCursor:$n};function af(i,e=this){function t(s){if(!s||s===q()||s===G())return null;s.assignedSlot&&(s=s.assignedSlot);let n=s.closest(i);return!n&&!s.getRootNode?null:n||t(s.getRootNode().host)}return t(e)}function On(i){let e=this,t=q(),s=G(),n=e.touchEventsData,{params:r,touches:a,enabled:o}=e;if(!o||e.animating&&r.preventInteractionOnTransition)return;!e.animating&&r.cssMode&&r.loop&&e.loopFix();let l=i;l.originalEvent&&(l=l.originalEvent);let c=I(l.target);if(r.touchEventsTarget==="wrapper"&&!c.closest(e.wrapperEl).length||(n.isTouchEvent=l.type==="touchstart",!n.isTouchEvent&&"which"in l&&l.which===3)||!n.isTouchEvent&&"button"in l&&l.button>0||n.isTouched&&n.isMoved)return;let d=!!r.noSwipingClass&&r.noSwipingClass!=="",u=i.composedPath?i.composedPath():i.path;d&&l.target&&l.target.shadowRoot&&u&&(c=I(u[0]));let h=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,f=!!(l.target&&l.target.shadowRoot);if(r.noSwiping&&(f?af(h,c[0]):c.closest(h)[0])){e.allowClick=!0;return}if(r.swipeHandler&&!c.closest(r.swipeHandler)[0])return;a.currentX=l.type==="touchstart"?l.targetTouches[0].pageX:l.pageX,a.currentY=l.type==="touchstart"?l.targetTouches[0].pageY:l.pageY;let m=a.currentX,p=a.currentY,g=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,v=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(g&&(m<=v||m>=s.innerWidth-v))if(g==="prevent")i.preventDefault();else return;if(Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=p,n.touchStartTime=Ne(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1),l.type!=="touchstart"){let E=!0;c.is(n.focusableElements)&&(E=!1,c[0].nodeName==="SELECT"&&(n.isTouched=!1)),t.activeElement&&I(t.activeElement).is(n.focusableElements)&&t.activeElement!==c[0]&&t.activeElement.blur();let _=E&&e.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||_)&&!c[0].isContentEditable&&l.preventDefault()}e.params.freeMode&&e.params.freeMode.enabled&&e.freeMode&&e.animating&&!r.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function Dn(i){let e=q(),t=this,s=t.touchEventsData,{params:n,touches:r,rtlTranslate:a,enabled:o}=t;if(!o)return;let l=i;if(l.originalEvent&&(l=l.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&t.emit("touchMoveOpposite",l);return}if(s.isTouchEvent&&l.type!=="touchmove")return;let c=l.type==="touchmove"&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),d=l.type==="touchmove"?c.pageX:l.pageX,u=l.type==="touchmove"?c.pageY:l.pageY;if(l.preventedByNestedSwiper){r.startX=d,r.startY=u;return}if(!t.allowTouchMove){I(l.target).is(s.focusableElements)||(t.allowClick=!1),s.isTouched&&(Object.assign(r,{startX:d,startY:u,currentX:d,currentY:u}),s.touchStartTime=Ne());return}if(s.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop){if(t.isVertical()){if(u<r.startY&&t.translate<=t.maxTranslate()||u>r.startY&&t.translate>=t.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(d<r.startX&&t.translate<=t.maxTranslate()||d>r.startX&&t.translate>=t.minTranslate())return}if(s.isTouchEvent&&e.activeElement&&l.target===e.activeElement&&I(l.target).is(s.focusableElements)){s.isMoved=!0,t.allowClick=!1;return}if(s.allowTouchCallbacks&&t.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;r.currentX=d,r.currentY=u;let h=r.currentX-r.startX,f=r.currentY-r.startY;if(t.params.threshold&&Math.sqrt(mt(h,2)+mt(f,2))<t.params.threshold)return;if(typeof s.isScrolling=="undefined"){let v;t.isHorizontal()&&r.currentY===r.startY||t.isVertical()&&r.currentX===r.startX?s.isScrolling=!1:h*h+f*f>=25&&(v=Math.atan2(Math.abs(f),Math.abs(h))*180/Math.PI,s.isScrolling=t.isHorizontal()?v>n.touchAngle:90-v>n.touchAngle)}if(s.isScrolling&&t.emit("touchMoveOpposite",l),typeof s.startMoving=="undefined"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(s.startMoving=!0),s.isScrolling){s.isTouched=!1;return}if(!s.startMoving)return;t.allowClick=!1,!n.cssMode&&l.cancelable&&l.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&l.stopPropagation(),s.isMoved||(n.loop&&!n.cssMode&&t.loopFix(),s.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce=!1,n.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",l)),t.emit("sliderMove",l),s.isMoved=!0;let m=t.isHorizontal()?h:f;r.diff=m,m*=n.touchRatio,a&&(m=-m),t.swipeDirection=m>0?"prev":"next",s.currentTranslate=m+s.startTranslate;let p=!0,g=n.resistanceRatio;if(n.touchReleaseOnEdges&&(g=0),m>0&&s.currentTranslate>t.minTranslate()?(p=!1,n.resistance&&(s.currentTranslate=t.minTranslate()-1+mt(-t.minTranslate()+s.startTranslate+m,g))):m<0&&s.currentTranslate<t.maxTranslate()&&(p=!1,n.resistance&&(s.currentTranslate=t.maxTranslate()+1-mt(t.maxTranslate()-s.startTranslate-m,g))),p&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(s.currentTranslate=s.startTranslate),n.threshold>0)if(Math.abs(m)>n.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,s.currentTranslate=s.startTranslate,r.diff=t.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{s.currentTranslate=s.startTranslate;return}!n.followFinger||n.cssMode||((n.freeMode&&n.freeMode.enabled&&t.freeMode||n.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),t.params.freeMode&&n.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(s.currentTranslate),t.setTranslate(s.currentTranslate))}function In(i){let e=this,t=e.touchEventsData,{params:s,touches:n,rtlTranslate:r,slidesGrid:a,enabled:o}=e;if(!o)return;let l=i;if(l.originalEvent&&(l=l.originalEvent),t.allowTouchCallbacks&&e.emit("touchEnd",l),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&s.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}s.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);let c=Ne(),d=c-t.touchStartTime;if(e.allowClick){let E=l.path||l.composedPath&&l.composedPath();e.updateClickedSlide(E&&E[0]||l.target),e.emit("tap click",l),d<300&&c-t.lastClickTime<300&&e.emit("doubleTap doubleClick",l)}if(t.lastClickTime=Ne(),He(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||n.diff===0||t.currentTranslate===t.startTranslate){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;return}t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;let u;if(s.followFinger?u=r?e.translate:-e.translate:u=-t.currentTranslate,s.cssMode)return;if(e.params.freeMode&&s.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:u});return}let h=0,f=e.slidesSizesGrid[0];for(let E=0;E<a.length;E+=E<s.slidesPerGroupSkip?1:s.slidesPerGroup){let _=E<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof a[E+_]!="undefined"?u>=a[E]&&u<a[E+_]&&(h=E,f=a[E+_]-a[E]):u>=a[E]&&(h=E,f=a[a.length-1]-a[a.length-2])}let m=null,p=null;s.rewind&&(e.isBeginning?p=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(m=0));let g=(u-a[h])/f,v=h<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(d>s.longSwipesMs){if(!s.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(g>=s.longSwipesRatio?e.slideTo(s.rewind&&e.isEnd?m:h+v):e.slideTo(h)),e.swipeDirection==="prev"&&(g>1-s.longSwipesRatio?e.slideTo(h+v):p!==null&&g<0&&Math.abs(g)>s.longSwipesRatio?e.slideTo(p):e.slideTo(h))}else{if(!s.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(l.target===e.navigation.nextEl||l.target===e.navigation.prevEl)?l.target===e.navigation.nextEl?e.slideTo(h+v):e.slideTo(h):(e.swipeDirection==="next"&&e.slideTo(m!==null?m:h+v),e.swipeDirection==="prev"&&e.slideTo(p!==null?p:h))}}function zi(){let i=this,{params:e,el:t}=i;if(t&&t.offsetWidth===0)return;e.breakpoints&&i.setBreakpoint();let{allowSlideNext:s,allowSlidePrev:n,snapGrid:r}=i;i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses(),(e.slidesPerView==="auto"||e.slidesPerView>1)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides?i.slideTo(i.slides.length-1,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0),i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.run(),i.allowSlidePrev=n,i.allowSlideNext=s,i.params.watchOverflow&&r!==i.snapGrid&&i.checkOverflow()}function zn(i){let e=this;!e.enabled||e.allowClick||(e.params.preventClicks&&i.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(i.stopPropagation(),i.stopImmediatePropagation()))}function Fn(){let i=this,{wrapperEl:e,rtlTranslate:t,enabled:s}=i;if(!s)return;i.previousTranslate=i.translate,i.isHorizontal()?i.translate=-e.scrollLeft:i.translate=-e.scrollTop,i.translate===0&&(i.translate=0),i.updateActiveIndex(),i.updateSlidesClasses();let n,r=i.maxTranslate()-i.minTranslate();r===0?n=0:n=(i.translate-i.minTranslate())/r,n!==i.progress&&i.updateProgress(t?-i.translate:i.translate),i.emit("setTranslate",i.translate,!1)}var Wo=!1;function of(){}var Go=(i,e)=>{let t=q(),{params:s,touchEvents:n,el:r,wrapperEl:a,device:o,support:l}=i,c=!!s.nested,d=e==="on"?"addEventListener":"removeEventListener",u=e;if(!l.touch)r[d](n.start,i.onTouchStart,!1),t[d](n.move,i.onTouchMove,c),t[d](n.end,i.onTouchEnd,!1);else{let h=n.start==="touchstart"&&l.passiveListener&&s.passiveListeners?{passive:!0,capture:!1}:!1;r[d](n.start,i.onTouchStart,h),r[d](n.move,i.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),r[d](n.end,i.onTouchEnd,h),n.cancel&&r[d](n.cancel,i.onTouchEnd,h)}(s.preventClicks||s.preventClicksPropagation)&&r[d]("click",i.onClick,!0),s.cssMode&&a[d]("scroll",i.onScroll),s.updateOnWindowResize?i[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",zi,!0):i[u]("observerUpdate",zi,!0)};function lf(){let i=this,e=q(),{params:t,support:s}=i;i.onTouchStart=On.bind(i),i.onTouchMove=Dn.bind(i),i.onTouchEnd=In.bind(i),t.cssMode&&(i.onScroll=Fn.bind(i)),i.onClick=zn.bind(i),s.touch&&!Wo&&(e.addEventListener("touchstart",of),Wo=!0),Go(i,"on")}function cf(){Go(this,"off")}var jo={attachEvents:lf,detachEvents:cf};var qo=(i,e)=>i.grid&&e.grid&&e.grid.rows>1;function Rn(){let i=this,{activeIndex:e,initialized:t,loopedSlides:s=0,params:n,$el:r}=i,a=n.breakpoints;if(!a||a&&Object.keys(a).length===0)return;let o=i.getBreakpoint(a,i.params.breakpointsBase,i.el);if(!o||i.currentBreakpoint===o)return;let c=(o in a?a[o]:void 0)||i.originalParams,d=qo(i,n),u=qo(i,c),h=n.enabled;d&&!u?(r.removeClass(`${n.containerModifierClass}grid ${n.containerModifierClass}grid-column`),i.emitContainerClasses()):!d&&u&&(r.addClass(`${n.containerModifierClass}grid`),(c.grid.fill&&c.grid.fill==="column"||!c.grid.fill&&n.grid.fill==="column")&&r.addClass(`${n.containerModifierClass}grid-column`),i.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(g=>{let v=n[g]&&n[g].enabled,E=c[g]&&c[g].enabled;v&&!E&&i[g].disable(),!v&&E&&i[g].enable()});let f=c.direction&&c.direction!==n.direction,m=n.loop&&(c.slidesPerView!==n.slidesPerView||f);f&&t&&i.changeDirection(),me(i.params,c);let p=i.params.enabled;Object.assign(i,{allowTouchMove:i.params.allowTouchMove,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev}),h&&!p?i.disable():!h&&p&&i.enable(),i.currentBreakpoint=o,i.emit("_beforeBreakpoint",c),m&&t&&(i.loopDestroy(),i.loopCreate(),i.updateSlides(),i.slideTo(e-s+i.loopedSlides,0,!1)),i.emit("breakpoint",c)}function Bn(i,e="window",t){if(!i||e==="container"&&!t)return;let s=!1,n=G(),r=e==="window"?n.innerHeight:t.clientHeight,a=Object.keys(i).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){let l=parseFloat(o.substr(1));return{value:r*l,point:o}}return{value:o,point:o}});a.sort((o,l)=>parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o<a.length;o+=1){let{point:l,value:c}=a[o];e==="window"?n.matchMedia(`(min-width: ${c}px)`).matches&&(s=l):c<=t.clientWidth&&(s=l)}return s||"max"}var Uo={setBreakpoint:Rn,getBreakpoint:Bn};function df(i,e){let t=[];return i.forEach(s=>{typeof s=="object"?Object.keys(s).forEach(n=>{s[n]&&t.push(e+n)}):typeof s=="string"&&t.push(e+s)}),t}function Nn(){let i=this,{classNames:e,params:t,rtl:s,$el:n,device:r,support:a}=i,o=df(["initialized",t.direction,{"pointer-events":!a.touch},{"free-mode":i.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:s},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&t.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...o),n.addClass([...e].join(" ")),i.emitContainerClasses()}function Vn(){let i=this,{$el:e,classNames:t}=i;e.removeClass(t.join(" ")),i.emitContainerClasses()}var Ko={addClasses:Nn,removeClasses:Vn};function Yn(i,e,t,s,n,r){let a=G(),o;function l(){r&&r()}!I(i).parent("picture")[0]&&(!i.complete||!n)&&e?(o=new a.Image,o.onload=l,o.onerror=l,s&&(o.sizes=s),t&&(o.srcset=t),e&&(o.src=e)):l()}function Xn(){let i=this;i.imagesToLoad=i.$el.find("img");function e(){typeof i=="undefined"||i===null||!i||i.destroyed||(i.imagesLoaded!==void 0&&(i.imagesLoaded+=1),i.imagesLoaded===i.imagesToLoad.length&&(i.params.updateOnImagesReady&&i.update(),i.emit("imagesReady")))}for(let t=0;t<i.imagesToLoad.length;t+=1){let s=i.imagesToLoad[t];i.loadImage(s,s.currentSrc||s.getAttribute("src"),s.srcset||s.getAttribute("srcset"),s.sizes||s.getAttribute("sizes"),!0,e)}}var Qo={loadImage:Yn,preloadImages:Xn};function uf(){let i=this,{isLocked:e,params:t}=i,{slidesOffsetBefore:s}=t;if(s){let n=i.slides.length-1,r=i.slidesGrid[n]+i.slidesSizesGrid[n]+s*2;i.isLocked=i.size>r}else i.isLocked=i.snapGrid.length===1;t.allowSlideNext===!0&&(i.allowSlideNext=!i.isLocked),t.allowSlidePrev===!0&&(i.allowSlidePrev=!i.isLocked),e&&e!==i.isLocked&&(i.isEnd=!1),e!==i.isLocked&&i.emit(i.isLocked?"lock":"unlock")}var Zo={checkOverflow:uf};var Hn={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 Wn(i,e){return function(s={}){let n=Object.keys(s)[0],r=s[n];if(typeof r!="object"||r===null){me(e,s);return}if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&i[n]===!0&&(i[n]={auto:!0}),!(n in i&&"enabled"in r)){me(e,s);return}i[n]===!0&&(i[n]={enabled:!0}),typeof i[n]=="object"&&!("enabled"in i[n])&&(i[n].enabled=!0),i[n]||(i[n]={enabled:!1}),me(e,s)}}var Gn={eventsEmitter:Ro,update:Bo,translate:No,transition:Vo,slide:Yo,loop:Xo,grabCursor:Ho,events:jo,breakpoints:Uo,checkOverflow:Zo,classes:Ko,images:Qo},jn={},_e=class{constructor(...e){let t,s;if(e.length===1&&e[0].constructor&&Object.prototype.toString.call(e[0]).slice(8,-1)==="Object"?s=e[0]:[t,s]=e,s||(s={}),s=me({},s),t&&!s.el&&(s.el=t),s.el&&I(s.el).length>1){let o=[];return I(s.el).each(l=>{let c=me({},s,{el:l});o.push(new _e(c))}),o}let n=this;n.__swiper__=!0,n.support=Ii(),n.device=zo({userAgent:s.userAgent}),n.browser=Fo(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],s.modules&&Array.isArray(s.modules)&&n.modules.push(...s.modules);let r={};n.modules.forEach(o=>{o({swiper:n,extendParams:Wn(s,r),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});let a=me({},Hn,r);return n.params=me({},a,jn,s),n.originalParams=me({},n.params),n.passedParams=me({},s),n.params&&n.params.on&&Object.keys(n.params.on).forEach(o=>{n.on(o,n.params.on[o])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),n.$=I,Object.assign(n,{enabled:n.params.enabled,el:t,classNames:[],slides:I(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},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(){let l=["touchstart","touchmove","touchend","touchcancel"],c=["pointerdown","pointermove","pointerup"];return n.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},n.touchEventsDesktop={start:c[0],move:c[1],end:c[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:Ne(),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(){let e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){let e=this;!e.enabled||(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){let s=this;e=Math.min(Math.max(e,0),1);let n=s.minTranslate(),a=(s.maxTranslate()-n)*e+n;s.translateTo(a,typeof t=="undefined"?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(t.params.slideClass)===0).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.each(s=>{let n=e.getSlideClasses(s);t.push({slideEl:s,classNames:n}),e.emit("_slideClass",s,n)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){let s=this,{params:n,slides:r,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:c}=s,d=1;if(n.centeredSlides){let u=r[c].swiperSlideSize,h;for(let f=c+1;f<r.length;f+=1)r[f]&&!h&&(u+=r[f].swiperSlideSize,d+=1,u>l&&(h=!0));for(let f=c-1;f>=0;f-=1)r[f]&&!h&&(u+=r[f].swiperSlideSize,d+=1,u>l&&(h=!0))}else if(e==="current")for(let u=c+1;u<r.length;u+=1)(t?a[u]+o[u]-a[c]<l:a[u]-a[c]<l)&&(d+=1);else for(let u=c-1;u>=0;u-=1)a[c]-a[u]<l&&(d+=1);return d}update(){let e=this;if(!e||e.destroyed)return;let{snapGrid:t,params:s}=e;s.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function n(){let a=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let r;e.params.freeMode&&e.params.freeMode.enabled?(n(),e.params.autoHeight&&e.updateAutoHeight()):((e.params.slidesPerView==="auto"||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?r=e.slideTo(e.slides.length-1,0,!1,!0):r=e.slideTo(e.activeIndex,0,!1,!0),r||n()),s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){let s=this,n=s.params.direction;return e||(e=n==="horizontal"?"vertical":"horizontal"),e===n||e!=="horizontal"&&e!=="vertical"||(s.$el.removeClass(`${s.params.containerModifierClass}${n}`).addClass(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.each(r=>{e==="vertical"?r.style.width="":r.style.height=""}),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){let t=this;t.rtl&&e==="rtl"||!t.rtl&&e==="ltr"||(t.rtl=e==="rtl",t.rtlTranslate=t.params.direction==="horizontal"&&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){let t=this;if(t.mounted)return!0;let s=I(e||t.params.el);if(e=s[0],!e)return!1;e.swiper=t;let n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,a=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){let o=I(e.shadowRoot.querySelector(n()));return o.children=l=>s.children(l),o}return s.children?s.children(n()):I(s).children(n())})();if(a.length===0&&t.params.createElements){let l=q().createElement("div");a=I(l),l.className=t.params.wrapperClass,s.append(l),s.children(`.${t.params.slideClass}`).each(c=>{a.append(c)})}return Object.assign(t,{$el:s,el:e,$wrapperEl:a,wrapperEl:a[0],mounted:!0,rtl:e.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(e.dir.toLowerCase()==="rtl"||s.css("direction")==="rtl"),wrongRTL:a.css("display")==="-webkit-box"}),!0}init(e){let t=this;return t.initialized||t.mount(e)===!1||(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){let s=this,{params:n,$el:r,$wrapperEl:a,slides:o}=s;return typeof s.params=="undefined"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),n.loop&&s.loopDestroy(),t&&(s.removeClasses(),r.removeAttr("style"),a.removeAttr("style"),o&&o.length&&o.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l)}),e!==!1&&(s.$el[0].swiper=null,Io(s)),s.destroyed=!0),null}static extendDefaults(e){me(jn,e)}static get extendedDefaults(){return jn}static get defaults(){return Hn}static installModule(e){_e.prototype.__modules__||(_e.prototype.__modules__=[]);let t=_e.prototype.__modules__;typeof e=="function"&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>_e.installModule(t)),_e):(_e.installModule(e),_e)}};Object.keys(Gn).forEach(i=>{Object.keys(Gn[i]).forEach(e=>{_e.prototype[e]=Gn[i][e]})});_e.use([tn,sn]);var We=_e;function Fi({swiper:i,extendParams:e,on:t,emit:s}){let n;i.autoplay={running:!1,paused:!1},e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});function r(){if(!i.size){i.autoplay.running=!1,i.autoplay.paused=!1;return}let p=i.slides.eq(i.activeIndex),g=i.params.autoplay.delay;p.attr("data-swiper-autoplay")&&(g=p.attr("data-swiper-autoplay")||i.params.autoplay.delay),clearTimeout(n),n=He(()=>{let v;i.params.autoplay.reverseDirection?i.params.loop?(i.loopFix(),v=i.slidePrev(i.params.speed,!0,!0),s("autoplay")):i.isBeginning?i.params.autoplay.stopOnLastSlide?o():(v=i.slideTo(i.slides.length-1,i.params.speed,!0,!0),s("autoplay")):(v=i.slidePrev(i.params.speed,!0,!0),s("autoplay")):i.params.loop?(i.loopFix(),v=i.slideNext(i.params.speed,!0,!0),s("autoplay")):i.isEnd?i.params.autoplay.stopOnLastSlide?o():(v=i.slideTo(0,i.params.speed,!0,!0),s("autoplay")):(v=i.slideNext(i.params.speed,!0,!0),s("autoplay")),(i.params.cssMode&&i.autoplay.running||v===!1)&&r()},g)}function a(){return typeof n!="undefined"||i.autoplay.running?!1:(i.autoplay.running=!0,s("autoplayStart"),r(),!0)}function o(){return!i.autoplay.running||typeof n=="undefined"?!1:(n&&(clearTimeout(n),n=void 0),i.autoplay.running=!1,s("autoplayStop"),!0)}function l(p){!i.autoplay.running||i.autoplay.paused||(n&&clearTimeout(n),i.autoplay.paused=!0,p===0||!i.params.autoplay.waitForTransition?(i.autoplay.paused=!1,r()):["transitionend","webkitTransitionEnd"].forEach(g=>{i.$wrapperEl[0].addEventListener(g,d)}))}function c(){let p=q();p.visibilityState==="hidden"&&i.autoplay.running&&l(),p.visibilityState==="visible"&&i.autoplay.paused&&(r(),i.autoplay.paused=!1)}function d(p){!i||i.destroyed||!i.$wrapperEl||p.target===i.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(g=>{i.$wrapperEl[0].removeEventListener(g,d)}),i.autoplay.paused=!1,i.autoplay.running?r():o())}function u(){i.params.autoplay.disableOnInteraction?o():(s("autoplayPause"),l()),["transitionend","webkitTransitionEnd"].forEach(p=>{i.$wrapperEl[0].removeEventListener(p,d)})}function h(){i.params.autoplay.disableOnInteraction||(i.autoplay.paused=!1,s("autoplayResume"),r())}function f(){i.params.autoplay.pauseOnMouseEnter&&(i.$el.on("mouseenter",u),i.$el.on("mouseleave",h))}function m(){i.$el.off("mouseenter",u),i.$el.off("mouseleave",h)}t("init",()=>{i.params.autoplay.enabled&&(a(),q().addEventListener("visibilitychange",c),f())}),t("beforeTransitionStart",(p,g,v)=>{i.autoplay.running&&(v||!i.params.autoplay.disableOnInteraction?i.autoplay.pause(g):o())}),t("sliderFirstMove",()=>{i.autoplay.running&&(i.params.autoplay.disableOnInteraction?o():l())}),t("touchEnd",()=>{i.params.cssMode&&i.autoplay.paused&&!i.params.autoplay.disableOnInteraction&&r()}),t("destroy",()=>{m(),i.autoplay.running&&o(),q().removeEventListener("visibilitychange",c)}),Object.assign(i.autoplay,{pause:l,run:r,start:a,stop:o})}function rt(i){let{effect:e,swiper:t,on:s,setTranslate:n,setTransition:r,overwriteParams:a,perspective:o,recreateShadows:l,getEffectParams:c}=i;s("beforeInit",()=>{if(t.params.effect!==e)return;t.classNames.push(`${t.params.containerModifierClass}${e}`),o&&o()&&t.classNames.push(`${t.params.containerModifierClass}3d`);let u=a?a():{};Object.assign(t.params,u),Object.assign(t.originalParams,u)}),s("setTranslate",()=>{t.params.effect===e&&n()}),s("setTransition",(u,h)=>{t.params.effect===e&&r(h)}),s("transitionEnd",()=>{if(t.params.effect===e&&l){if(!c||!c().slideShadows)return;t.slides.each(u=>{t.$(u).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()}),l()}});let d;s("virtualUpdate",()=>{t.params.effect===e&&(t.slides.length||(d=!0),requestAnimationFrame(()=>{d&&t.slides&&t.slides.length&&(n(),d=!1)}))})}function gt(i,e){return i.transformEl?e.find(i.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):e}function Ot({swiper:i,duration:e,transformEl:t,allSlides:s}){let{slides:n,activeIndex:r,$wrapperEl:a}=i;if(i.params.virtualTranslate&&e!==0){let o=!1,l;s?l=t?n.find(t):n:l=t?n.eq(r).find(t):n.eq(r),l.transitionEnd(()=>{if(o||!i||i.destroyed)return;o=!0,i.animating=!1;let c=["webkitTransitionEnd","transitionend"];for(let d=0;d<c.length;d+=1)a.trigger(c[d])})}}function Ri({swiper:i,extendParams:e,on:t}){e({fadeEffect:{crossFade:!1,transformEl:null}}),rt({effect:"fade",swiper:i,on:t,setTranslate:()=>{let{slides:r}=i,a=i.params.fadeEffect;for(let o=0;o<r.length;o+=1){let l=i.slides.eq(o),d=-l[0].swiperSlideOffset;i.params.virtualTranslate||(d-=i.translate);let u=0;i.isHorizontal()||(u=d,d=0);let h=i.params.fadeEffect.crossFade?Math.max(1-Math.abs(l[0].progress),0):1+Math.min(Math.max(l[0].progress,-1),0);gt(a,l).css({opacity:h}).transform(`translate3d(${d}px, ${u}px, 0px)`)}},setTransition:r=>{let{transformEl:a}=i.params.fadeEffect;(a?i.slides.find(a):i.slides).transition(r),Ot({swiper:i,duration:r,transformEl:a,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!i.params.cssMode})})}var ff=700,Bi=class extends H{constructor(i){super(i),this.onBreakpointChangeBind=this.onBreakpointChange.bind(this),this.$el=this.el,this.$slider=this.$("slider")[0],this.$slides=this.$("item"),this.$bullets=this.$("bullet"),this.length=this.$slides.length,this.currentIndex=0,this.events={click:{bullet:"onButtonClick"}}}init(){We.use([Ri,Fi]),this.breakpoint=window.matchMedia(`(min-width: ${ff}px)`),this.length>1&&(this.$bullets[this.currentIndex].classList.add("is-active"),this.bindEvents(),this.onBreakpointChange())}destroy(){super.destroy(),this.unbindEvents(),this.carousel&&this.carousel.destroy&&this.carousel.destroy(!0,!0)}bindEvents(){this.breakpoint.addEventListener("change",this.onBreakpointChangeBind)}unbindEvents(){this.breakpoint.removeEventListener("change",this.onBreakpointChangeBind)}onBreakpointChange(){this.carousel&&this.carousel.destroy&&this.carousel.destroy(!0,!0),this.breakpoint.matches===!0?window.requestAnimationFrame(()=>this.activeFadeSwiper()):this.breakpoint.matches===!1&&window.requestAnimationFrame(()=>this.activeSlideSwiper())}onButtonClick(i){let e=i.currentTarget||i.curTarget,t=e?[...this.$bullets].indexOf(e):0;this.updateActiveIndex(t),this.carousel&&this.carousel.slideTo(t)}activeFadeSwiper(){let i={effect:"fade",allowTouchMove:!1,initialSlide:this.currentIndex,autoplay:{delay:6e3},on:{slideChange:e=>{this.updateActiveIndex(e.activeIndex)}}};this.carousel=new We(this.$slider,i)}activeSlideSwiper(){let i={spaceBetween:30,initialSlide:this.currentIndex,autoplay:{delay:6e3},on:{slideChange:e=>{this.updateActiveIndex(e.activeIndex)}}};this.carousel=new We(this.$slider,i)}updateActiveIndex(i){this.$bullets[this.currentIndex].classList.remove("is-active"),this.currentIndex=i,this.$bullets[this.currentIndex].classList.add("is-active")}};var Ni=class extends H{constructor(i){super(i),this.$el=this.el,this.$slides=this.$("item"),this.length=this.$slides.length,this.currentIndex=0}init(){this.length>1&&this.initCarousel()}destroy(){super.destroy(),this.carousel&&this.carousel.destroy&&this.carousel.destroy(!0,!0)}initCarousel(){let i={spaceBetween:20,initialSlide:this.currentIndex,slidesPerView:"auto",centerInsufficientSlides:!0,on:{init:()=>{this.call("update",null,"Scroll")},slideChange:e=>{this.updateActiveIndex(e.activeIndex)}}};this.carousel=new We(this.$el,i)}updateActiveIndex(i){this.currentIndex=i}};function Ue(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function ol(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.__proto__=e}var Ce={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},It={duration:.5,overwrite:!1,delay:0},hr,Te,re,Ie=1e8,U=1/Ie,ir=Math.PI*2,pf=ir/4,mf=0,ll=Math.sqrt,gf=Math.cos,vf=Math.sin,oe=function(e){return typeof e=="string"},ie=function(e){return typeof e=="function"},Qe=function(e){return typeof e=="number"},Zi=function(e){return typeof e=="undefined"},je=function(e){return typeof e=="object"},we=function(e){return e!==!1},cl=function(){return typeof window!="undefined"},Vi=function(e){return ie(e)||oe(e)},dl=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ge=Array.isArray,sr=/(?:-?\.?\d|\.)+/gi,fr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,xt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Un=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,pr=/[+-]=-?[.\d]+/,ul=/[^,'"\[\]\s]+/gi,yf=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Z,De,nr,mr,Ae={},Wi={},hl,fl=function(e){return(Wi=bt(e,Ae))&&ue},Ji=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},Gi=function(e,t){return!t&&console.warn(e)},pl=function(e,t){return e&&(Ae[e]=t)&&Wi&&(Wi[e]=t)||Ae},ri=function(){return 0},bf={suppressEvents:!0,isStart:!0,kill:!1},Yi={suppressEvents:!0,kill:!1},xf={suppressEvents:!0},gr={},ot=[],rr={},ml,Ee={},Kn={},el=30,Xi=[],vr="",yr=function(e){var t=e[0],s,n;if(je(t)||ie(t)||(e=[e]),!(s=(t._gsap||{}).harness)){for(n=Xi.length;n--&&!Xi[n].targetTest(t););s=Xi[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new Mr(e[n],s)))||e.splice(n,1);return e},lt=function(e){return e._gsap||yr(Pe(e))[0]._gsap},br=function(e,t,s){return(s=e[t])&&ie(s)?e[t]():Zi(s)&&e.getAttribute&&e.getAttribute(t)||s},ye=function(e,t){return(e=e.split(",")).forEach(t)||e},se=function(e){return Math.round(e*1e5)/1e5||0},fe=function(e){return Math.round(e*1e7)/1e7||0},_t=function(e,t){var s=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),s==="+"?e+n:s==="-"?e-n:s==="*"?e*n:e/n},_f=function(e,t){for(var s=t.length,n=0;e.indexOf(t[n])<0&&++n<s;);return n<s},ji=function(){var e=ot.length,t=ot.slice(0),s,n;for(rr={},ot.length=0,s=0;s<e;s++)n=t[s],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},gl=function(e,t,s,n){ot.length&&ji(),e.render(t,s,n||Te&&t<0&&(e._initted||e._startAt)),ot.length&&ji()},vl=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(ul).length<2?t:oe(e)?e.trim():e},yl=function(e){return e},Fe=function(e,t){for(var s in t)s in e||(e[s]=t[s]);return e},Ef=function(e){return function(t,s){for(var n in s)n in t||n==="duration"&&e||n==="ease"||(t[n]=s[n])}},bt=function(e,t){for(var s in t)e[s]=t[s];return e},tl=function i(e,t){for(var s in t)s!=="__proto__"&&s!=="constructor"&&s!=="prototype"&&(e[s]=je(t[s])?i(e[s]||(e[s]={}),t[s]):t[s]);return e},qi=function(e,t){var s={},n;for(n in e)n in t||(s[n]=e[n]);return s},ii=function(e){var t=e.parent||Z,s=e.keyframes?Ef(ge(e.keyframes)):Fe;if(we(e.inherit))for(;t;)s(e,t.vars.defaults),t=t.parent||t._dp;return e},Sf=function(e,t){for(var s=e.length,n=s===t.length;n&&s--&&e[s]===t[s];);return s<0},bl=function(e,t,s,n,r){s===void 0&&(s="_first"),n===void 0&&(n="_last");var a=e[n],o;if(r)for(o=t[r];a&&a[r]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[s],e[s]=t),t._next?t._next._prev=t:e[n]=t,t._prev=a,t.parent=t._dp=e,t},es=function(e,t,s,n){s===void 0&&(s="_first"),n===void 0&&(n="_last");var r=t._prev,a=t._next;r?r._next=a:e[s]===t&&(e[s]=a),a?a._prev=r:e[n]===t&&(e[n]=r),t._next=t._prev=t.parent=null},ct=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove(e),e._act=0},vt=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var s=e;s;)s._dirty=1,s=s.parent;return e},Tf=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},ar=function(e,t,s,n){return e._startAt&&(Te?e._startAt.revert(Yi):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},wf=function i(e){return!e||e._ts&&i(e.parent)},il=function(e){return e._repeat?zt(e._tTime,e=e.duration()+e._rDelay)*e:0},zt=function(e,t){var s=Math.floor(e/=t);return e&&s===e?s-1:s},Ui=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},ts=function(e){return e._end=fe(e._start+(e._tDur/Math.abs(e._ts||e._rts||U)||0))},is=function(e,t){var s=e._dp;return s&&s.smoothChildTiming&&e._ts&&(e._start=fe(s._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),ts(e),s._dirty||vt(s,e)),e},xl=function(e,t){var s;if((t._time||t._initted&&!t._dur)&&(s=Ui(e.rawTime(),t),(!t._dur||oi(0,t.totalDuration(),s)-t._tTime>U)&&t.render(s,!0)),vt(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(s=e;s._dp;)s.rawTime()>=0&&s.totalTime(s._tTime),s=s._dp;e._zTime=-U}},Ge=function(e,t,s,n){return t.parent&&ct(t),t._start=fe((Qe(s)?s:s||e!==Z?Oe(e,s,t):e._time)+t._delay),t._end=fe(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),bl(e,t,"_first","_last",e._sort?"_start":0),or(t)||(e._recent=t),n||xl(e,t),e._ts<0&&is(e,e._tTime),e},_l=function(e,t){return(Ae.ScrollTrigger||Ji("scrollTrigger",t))&&Ae.ScrollTrigger.create(t,e)},El=function(e,t,s,n,r){if(kr(e,t,r),!e._initted)return 1;if(!s&&e._pt&&!Te&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&ml!==Se.frame)return ot.push(e),e._lazy=[r,n],1},Cf=function i(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||i(t))},or=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},Mf=function(e,t,s,n){var r=e.ratio,a=t<0||!t&&(!e._start&&Cf(e)&&!(!e._initted&&or(e))||(e._ts<0||e._dp._ts<0)&&!or(e))?0:1,o=e._rDelay,l=0,c,d,u;if(o&&e._repeat&&(l=oi(0,e._tDur,t),d=zt(l,o),e._yoyo&&d&1&&(a=1-a),d!==zt(e._tTime,o)&&(r=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==r||Te||n||e._zTime===U||!t&&e._zTime){if(!e._initted&&El(e,t,n,s,l))return;for(u=e._zTime,e._zTime=t||(s?U:0),s||(s=t&&!u),e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=l,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&ar(e,t,s,!0),e._onUpdate&&!s&&ze(e,"onUpdate"),l&&e._repeat&&!s&&e.parent&&ze(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&ct(e,1),!s&&!Te&&(ze(e,a?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},Pf=function(e,t,s){var n;if(s>t)for(n=e._first;n&&n._start<=s;){if(n.data==="isPause"&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=s;){if(n.data==="isPause"&&n._start<t)return n;n=n._prev}},Ft=function(e,t,s,n){var r=e._repeat,a=fe(t)||0,o=e._tTime/e._tDur;return o&&!n&&(e._time*=a/e._dur),e._dur=a,e._tDur=r?r<0?1e10:fe(a*(r+1)+e._rDelay*r):a,o>0&&!n&&is(e,e._tTime=e._tDur*o),e.parent&&ts(e),s||vt(e.parent,e),e},sl=function(e){return e instanceof ce?vt(e):Ft(e,e._dur)},Af={_start:0,endTime:ri,totalDuration:ri},Oe=function i(e,t,s){var n=e.labels,r=e._recent||Af,a=e.duration()>=Ie?r.endTime(!1):e._dur,o,l,c;return oe(t)&&(isNaN(t)||t in n)?(l=t.charAt(0),c=t.substr(-1)==="%",o=t.indexOf("="),l==="<"||l===">"?(o>=0&&(t=t.replace(/=/,"")),(l==="<"?r._start:r.endTime(r._repeat>=0))+(parseFloat(t.substr(1))||0)*(c?(o<0?r:s).totalDuration()/100:1)):o<0?(t in n||(n[t]=a),n[t]):(l=parseFloat(t.charAt(o-1)+t.substr(o+1)),c&&s&&(l=l/100*(ge(s)?s[0]:s).totalDuration()),o>1?i(e,t.substr(0,o-1),s)+l:a+l)):t==null?a:+t},si=function(e,t,s){var n=Qe(t[1]),r=(n?2:1)+(e<2?0:1),a=t[r],o,l;if(n&&(a.duration=t[1]),a.parent=s,e){for(o=a,l=s;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=we(l.vars.inherit)&&l.parent;a.immediateRender=we(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[r-1]}return new ne(t[0],a,t[r+1])},dt=function(e,t){return e||e===0?t(e):t},oi=function(e,t,s){return s<e?e:s>t?t:s},de=function(e,t){return!oe(e)||!(t=yf.exec(e))?"":t[1]},ss=function(e,t,s){return dt(s,function(n){return oi(e,t,n)})},lr=[].slice,Sl=function(e,t){return e&&je(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&je(e[0]))&&!e.nodeType&&e!==De},kf=function(e,t,s){return s===void 0&&(s=[]),e.forEach(function(n){var r;return oe(n)&&!t||Sl(n,1)?(r=s).push.apply(r,Pe(n)):s.push(n)})||s},Pe=function(e,t,s){return re&&!t&&re.selector?re.selector(e):oe(e)&&!s&&(nr||!Rt())?lr.call((t||mr).querySelectorAll(e),0):ge(e)?kf(e,s):Sl(e)?lr.call(e,0):e?[e]:[]},Ki=function(e){return e=Pe(e)[0]||Gi("Invalid scope")||{},function(t){var s=e.current||e.nativeElement||e;return Pe(t,s.querySelectorAll?s:s===e?Gi("Invalid scope")||mr.createElement("div"):e)}},xr=function(e){return e.sort(function(){return .5-Math.random()})},_r=function(e){if(ie(e))return e;var t=je(e)?e:{each:e},s=yt(t.ease),n=t.from||0,r=parseFloat(t.base)||0,a={},o=n>0&&n<1,l=isNaN(n)||o,c=t.axis,d=n,u=n;return oe(n)?d=u={center:.5,edges:.5,end:1}[n]||0:!o&&l&&(d=n[0],u=n[1]),function(h,f,m){var p=(m||t).length,g=a[p],v,E,_,y,b,x,S,T,w;if(!g){if(w=t.grid==="auto"?0:(t.grid||[1,Ie])[1],!w){for(S=-Ie;S<(S=m[w++].getBoundingClientRect().left)&&w<p;);w--}for(g=a[p]=[],v=l?Math.min(w,p)*d-.5:n%w,E=w===Ie?0:l?p*u/w-.5:n/w|0,S=0,T=Ie,x=0;x<p;x++)_=x%w-v,y=E-(x/w|0),g[x]=b=c?Math.abs(c==="y"?y:_):ll(_*_+y*y),b>S&&(S=b),b<T&&(T=b);n==="random"&&xr(g),g.max=S-T,g.min=T,g.v=p=(parseFloat(t.amount)||parseFloat(t.each)*(w>p?p-1:c?c==="y"?p/w:w:Math.max(w,p/w))||0)*(n==="edges"?-1:1),g.b=p<0?r-p:r,g.u=de(t.amount||t.each)||0,s=s&&p<0?$l(s):s}return p=(g[h]-g.min)/g.max||0,fe(g.b+(s?s(p):p)*g.v)+g.u}},cr=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(s){var n=fe(Math.round(parseFloat(s)/e)*e*t);return(n-n%1)/t+(Qe(s)?0:de(s))}},Er=function(e,t){var s=ge(e),n,r;return!s&&je(e)&&(n=s=e.radius||Ie,e.values?(e=Pe(e.values),(r=!Qe(e[0]))&&(n*=n)):e=cr(e.increment)),dt(t,s?ie(e)?function(a){return r=e(a),Math.abs(r-a)<=n?r:a}:function(a){for(var o=parseFloat(r?a.x:a),l=parseFloat(r?a.y:0),c=Ie,d=0,u=e.length,h,f;u--;)r?(h=e[u].x-o,f=e[u].y-l,h=h*h+f*f):h=Math.abs(e[u]-o),h<c&&(c=h,d=u);return d=!n||c<=n?e[d]:a,r||d===a||Qe(a)?d:d+de(a)}:cr(e))},Sr=function(e,t,s,n){return dt(ge(e)?!t:s===!0?!!(s=0):!n,function(){return ge(e)?e[~~(Math.random()*e.length)]:(s=s||1e-5)&&(n=s<1?Math.pow(10,(s+"").length-2):1)&&Math.floor(Math.round((e-s/2+Math.random()*(t-e+s*.99))/s)*s*n)/n})},Tl=function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return function(n){return t.reduce(function(r,a){return a(r)},n)}},wl=function(e,t){return function(s){return e(parseFloat(s))+(t||de(s))}},Cl=function(e,t,s){return Tr(e,t,0,1,s)},Ml=function(e,t,s){return dt(s,function(n){return e[~~t(n)]})},Pl=function i(e,t,s){var n=t-e;return ge(e)?Ml(e,i(0,e.length),t):dt(s,function(r){return(n+(r-e)%n)%n+e})},Al=function i(e,t,s){var n=t-e,r=n*2;return ge(e)?Ml(e,i(0,e.length-1),t):dt(s,function(a){return a=(r+(a-e)%r)%r||0,e+(a>n?r-a:a)})},Vt=function(e){for(var t=0,s="",n,r,a,o;~(n=e.indexOf("random(",t));)a=e.indexOf(")",n),o=e.charAt(n+7)==="[",r=e.substr(n+7,a-n-7).match(o?ul:sr),s+=e.substr(t,n-t)+Sr(o?r:+r[0],o?0:+r[1],+r[2]||1e-5),t=a+1;return s+e.substr(t,e.length-t)},Tr=function(e,t,s,n,r){var a=t-e,o=n-s;return dt(r,function(l){return s+((l-e)/a*o||0)})},kl=function i(e,t,s,n){var r=isNaN(e+t)?0:function(f){return(1-f)*e+f*t};if(!r){var a=oe(e),o={},l,c,d,u,h;if(s===!0&&(n=1)&&(s=null),a)e={p:e},t={p:t};else if(ge(e)&&!ge(t)){for(d=[],u=e.length,h=u-2,c=1;c<u;c++)d.push(i(e[c-1],e[c]));u--,r=function(m){m*=u;var p=Math.min(h,~~m);return d[p](m-p)},s=t}else n||(e=bt(ge(e)?[]:{},e));if(!d){for(l in t)Pr.call(o,e,l,"get",t[l]);r=function(m){return Or(m,o)||(a?e.p:e)}}}return dt(s,r)},nl=function(e,t,s){var n=e.labels,r=Ie,a,o,l;for(a in n)o=n[a]-t,o<0==!!s&&o&&r>(o=Math.abs(o))&&(l=a,r=o);return l},ze=function(e,t,s){var n=e.vars,r=n[t],a=re,o=e._ctx,l,c,d;if(!!r)return l=n[t+"Params"],c=n.callbackScope||e,s&&ot.length&&ji(),o&&(re=o),d=l?r.apply(c,l):r.call(c),re=a,d},ei=function(e){return ct(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Te),e.progress()<1&&ze(e,"onInterrupt"),e},Dt,Lf=function(e){e=!e.name&&e.default||e;var t=e.name,s=ie(e),n=t&&!s&&e.init?function(){this._props=[]}:e,r={init:ri,render:Or,add:Pr,kill:jf,modifier:Gf,rawVars:0},a={targetTest:0,get:0,getSetter:ns,aliases:{},register:0};if(Rt(),e!==n){if(Ee[t])return;Fe(n,Fe(qi(e,r),a)),bt(n.prototype,bt(r,qi(e,a))),Ee[n.prop=t]=n,e.targetTest&&(Xi.push(n),gr[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}pl(t,n),e.register&&e.register(ue,n,be)},K=255,ti={aqua:[0,K,K],lime:[0,K,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,K],navy:[0,0,128],white:[K,K,K],olive:[128,128,0],yellow:[K,K,0],orange:[K,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[K,0,0],pink:[K,192,203],cyan:[0,K,K],transparent:[K,K,K,0]},Qn=function(e,t,s){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(s-t)*e*6:e<.5?s:e*3<2?t+(s-t)*(2/3-e)*6:t)*K+.5|0},wr=function(e,t,s){var n=e?Qe(e)?[e>>16,e>>8&K,e&K]:0:ti.black,r,a,o,l,c,d,u,h,f,m;if(!n){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),ti[e])n=ti[e];else if(e.charAt(0)==="#"){if(e.length<6&&(r=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e="#"+r+r+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return n=parseInt(e.substr(1,6),16),[n>>16,n>>8&K,n&K,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),n=[e>>16,e>>8&K,e&K]}else if(e.substr(0,3)==="hsl"){if(n=m=e.match(sr),!t)l=+n[0]%360/360,c=+n[1]/100,d=+n[2]/100,a=d<=.5?d*(c+1):d+c-d*c,r=d*2-a,n.length>3&&(n[3]*=1),n[0]=Qn(l+1/3,r,a),n[1]=Qn(l,r,a),n[2]=Qn(l-1/3,r,a);else if(~e.indexOf("="))return n=e.match(fr),s&&n.length<4&&(n[3]=1),n}else n=e.match(sr)||ti.transparent;n=n.map(Number)}return t&&!m&&(r=n[0]/K,a=n[1]/K,o=n[2]/K,u=Math.max(r,a,o),h=Math.min(r,a,o),d=(u+h)/2,u===h?l=c=0:(f=u-h,c=d>.5?f/(2-u-h):f/(u+h),l=u===r?(a-o)/f+(a<o?6:0):u===a?(o-r)/f+2:(r-a)/f+4,l*=60),n[0]=~~(l+.5),n[1]=~~(c*100+.5),n[2]=~~(d*100+.5)),s&&n.length<4&&(n[3]=1),n},Ll=function(e){var t=[],s=[],n=-1;return e.split(Ke).forEach(function(r){var a=r.match(xt)||[];t.push.apply(t,a),s.push(n+=a.length+1)}),t.c=s,t},rl=function(e,t,s){var n="",r=(e+n).match(Ke),a=t?"hsla(":"rgba(",o=0,l,c,d,u;if(!r)return e;if(r=r.map(function(h){return(h=wr(h,t,1))&&a+(t?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),s&&(d=Ll(e),l=s.c,l.join(n)!==d.c.join(n)))for(c=e.replace(Ke,"1").split(xt),u=c.length-1;o<u;o++)n+=c[o]+(~l.indexOf(o)?r.shift()||a+"0,0,0,0)":(d.length?d:r.length?r:s).shift());if(!c)for(c=e.split(Ke),u=c.length-1;o<u;o++)n+=c[o]+r[o];return n+c[u]},Ke=function(){var i="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in ti)i+="|"+e+"\\b";return new RegExp(i+")","gi")}(),$f=/hsl[a]?\(/,Cr=function(e){var t=e.join(" "),s;if(Ke.lastIndex=0,Ke.test(t))return s=$f.test(t),e[1]=rl(e[1],s),e[0]=rl(e[0],s,Ll(e[1])),!0},ai,Se=function(){var i=Date.now,e=500,t=33,s=i(),n=s,r=1e3/240,a=r,o=[],l,c,d,u,h,f,m=function p(g){var v=i()-n,E=g===!0,_,y,b,x;if(v>e&&(s+=v-t),n+=v,b=n-s,_=b-a,(_>0||E)&&(x=++u.frame,h=b-u.time*1e3,u.time=b=b/1e3,a+=_+(_>=r?4:r-_),y=1),E||(l=c(p)),y)for(f=0;f<o.length;f++)o[f](b,h,x,g)};return u={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(g){return h/(1e3/(g||60))},wake:function(){hl&&(!nr&&cl()&&(De=nr=window,mr=De.document||{},Ae.gsap=ue,(De.gsapVersions||(De.gsapVersions=[])).push(ue.version),fl(Wi||De.GreenSockGlobals||!De.gsap&&De||{}),d=De.requestAnimationFrame),l&&u.sleep(),c=d||function(g){return setTimeout(g,a-u.time*1e3+1|0)},ai=1,m(2))},sleep:function(){(d?De.cancelAnimationFrame:clearTimeout)(l),ai=0,c=ri},lagSmoothing:function(g,v){e=g||1/U,t=Math.min(v,e,0)},fps:function(g){r=1e3/(g||240),a=u.time*1e3+r},add:function(g,v,E){var _=v?function(y,b,x,S){g(y,b,x,S),u.remove(_)}:g;return u.remove(g),o[E?"unshift":"push"](_),Rt(),_},remove:function(g,v){~(v=o.indexOf(g))&&o.splice(v,1)&&f>=v&&f--},_listeners:o},u}(),Rt=function(){return!ai&&Se.wake()},W={},Of=/^[\d.\-M][\d.\-,\s]/,Df=/["']/g,If=function(e){for(var t={},s=e.substr(1,e.length-3).split(":"),n=s[0],r=1,a=s.length,o,l,c;r<a;r++)l=s[r],o=r!==a-1?l.lastIndexOf(","):l.length,c=l.substr(0,o),t[n]=isNaN(c)?c.replace(Df,"").trim():+c,n=l.substr(o+1).trim();return t},zf=function(e){var t=e.indexOf("(")+1,s=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<s?e.indexOf(")",s+1):s)},Ff=function(e){var t=(e+"").split("("),s=W[t[0]];return s&&t.length>1&&s.config?s.config.apply(null,~e.indexOf("{")?[If(t[1])]:zf(e).split(",").map(vl)):W._CE&&Of.test(e)?W._CE("",e):s},$l=function(e){return function(t){return 1-e(1-t)}},Ol=function i(e,t){for(var s=e._first,n;s;)s instanceof ce?i(s,t):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==t&&(s.timeline?i(s.timeline,t):(n=s._ease,s._ease=s._yEase,s._yEase=n,s._yoyo=t)),s=s._next},yt=function(e,t){return e&&(ie(e)?e:W[e]||Ff(e))||t},Et=function(e,t,s,n){s===void 0&&(s=function(l){return 1-t(1-l)}),n===void 0&&(n=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var r={easeIn:t,easeOut:s,easeInOut:n},a;return ye(e,function(o){W[o]=Ae[o]=r,W[a=o.toLowerCase()]=s;for(var l in r)W[a+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=W[o+"."+l]=r[l]}),r},Dl=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Zn=function i(e,t,s){var n=t>=1?t:1,r=(s||(e?.3:.45))/(t<1?t:1),a=r/ir*(Math.asin(1/n)||0),o=function(d){return d===1?1:n*Math.pow(2,-10*d)*vf((d-a)*r)+1},l=e==="out"?o:e==="in"?function(c){return 1-o(1-c)}:Dl(o);return r=ir/r,l.config=function(c,d){return i(e,c,d)},l},Jn=function i(e,t){t===void 0&&(t=1.70158);var s=function(a){return a?--a*a*((t+1)*a+t)+1:0},n=e==="out"?s:e==="in"?function(r){return 1-s(1-r)}:Dl(s);return n.config=function(r){return i(e,r)},n};ye("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,e){var t=e<5?e+1:e;Et(i+",Power"+(t-1),e?function(s){return Math.pow(s,t)}:function(s){return s},function(s){return 1-Math.pow(1-s,t)},function(s){return s<.5?Math.pow(s*2,t)/2:1-Math.pow((1-s)*2,t)/2})});W.Linear.easeNone=W.none=W.Linear.easeIn;Et("Elastic",Zn("in"),Zn("out"),Zn());(function(i,e){var t=1/e,s=2*t,n=2.5*t,r=function(o){return o<t?i*o*o:o<s?i*Math.pow(o-1.5/e,2)+.75:o<n?i*(o-=2.25/e)*o+.9375:i*Math.pow(o-2.625/e,2)+.984375};Et("Bounce",function(a){return 1-r(1-a)},r)})(7.5625,2.75);Et("Expo",function(i){return i?Math.pow(2,10*(i-1)):0});Et("Circ",function(i){return-(ll(1-i*i)-1)});Et("Sine",function(i){return i===1?1:-gf(i*pf)+1});Et("Back",Jn("in"),Jn("out"),Jn());W.SteppedEase=W.steps=Ae.SteppedEase={config:function(e,t){e===void 0&&(e=1);var s=1/e,n=e+(t?0:1),r=t?1:0,a=1-U;return function(o){return((n*oi(0,a,o)|0)+r)*s}}};It.ease=W["quad.out"];ye("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(i){return vr+=i+","+i+"Params,"});var Mr=function(e,t){this.id=mf++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:br,this.set=t?t.getSetter:ns},Bt=function(){function i(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Ft(this,+t.duration,1,1),this.data=t.data,re&&(this._ctx=re,re.data.push(this)),ai||Se.wake()}var e=i.prototype;return e.delay=function(s){return s||s===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+s-this._delay),this._delay=s,this):this._delay},e.duration=function(s){return arguments.length?this.totalDuration(this._repeat>0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},e.totalDuration=function(s){return arguments.length?(this._dirty=0,Ft(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(s,n){if(Rt(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(is(this,s),!r._dp||r.parent||xl(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&s<this._tDur||this._ts<0&&s>0||!this._tDur&&!s)&&Ge(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===U||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),gl(this,s,n)),this},e.time=function(s,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+il(this))%(this._dur+this._rDelay)||(s?this._dur:0),n):this._time},e.totalProgress=function(s,n){return arguments.length?this.totalTime(this.totalDuration()*s,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(s,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+il(this),n):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(s,n){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*r,n):this._repeat?zt(this._tTime,r)+1:1},e.timeScale=function(s){if(!arguments.length)return this._rts===-U?0:this._rts;if(this._rts===s)return this;var n=this.parent&&this._ts?Ui(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-U?0:this._rts,this.totalTime(oi(-this._delay,this._tDur,n),!0),ts(this),Tf(this)},e.paused=function(s){return arguments.length?(this._ps!==s&&(this._ps=s,s?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Rt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==U&&(this._tTime-=U)))),this):this._ps},e.startTime=function(s){if(arguments.length){this._start=s;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&Ge(n,this,s-this._delay),this}return this._start},e.endTime=function(s){return this._start+(we(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(s){var n=this.parent||this._dp;return n?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ui(n.rawTime(s),this):this._tTime:this._tTime},e.revert=function(s){s===void 0&&(s=xf);var n=Te;return Te=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),Te=n,this},e.globalTime=function(s){for(var n=this,r=arguments.length?s:n.rawTime();n;)r=n._start+r/(n._ts||1),n=n._dp;return!this.parent&&this.vars.immediateRender?-1:r},e.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,sl(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(s){if(arguments.length){var n=this._time;return this._rDelay=s,sl(this),n?this.time(n):this}return this._rDelay},e.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},e.seek=function(s,n){return this.totalTime(Oe(this,s),we(n))},e.restart=function(s,n){return this.play().totalTime(s?-this._delay:0,we(n))},e.play=function(s,n){return s!=null&&this.seek(s,n),this.reversed(!1).paused(!1)},e.reverse=function(s,n){return s!=null&&this.seek(s||this.totalDuration(),n),this.reversed(!0).paused(!1)},e.pause=function(s,n){return s!=null&&this.seek(s,n),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-U:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-U,this},e.isActive=function(){var s=this.parent||this._dp,n=this._start,r;return!!(!s||this._ts&&this._initted&&s.isActive()&&(r=s.rawTime(!0))>=n&&r<this.endTime(!0)-U)},e.eventCallback=function(s,n,r){var a=this.vars;return arguments.length>1?(n?(a[s]=n,r&&(a[s+"Params"]=r),s==="onUpdate"&&(this._onUpdate=n)):delete a[s],this):a[s]},e.then=function(s){var n=this;return new Promise(function(r){var a=ie(s)?s:yl,o=function(){var c=n.then;n.then=null,ie(a)&&(a=a(n))&&(a.then||a===n)&&(n.then=c),r(a),n.then=c};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?o():n._prom=o})},e.kill=function(){ei(this)},i}();Fe(Bt.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:-U,_prom:0,_ps:!1,_rts:1});var ce=function(i){ol(e,i);function e(s,n){var r;return s===void 0&&(s={}),r=i.call(this,s)||this,r.labels={},r.smoothChildTiming=!!s.smoothChildTiming,r.autoRemoveChildren=!!s.autoRemoveChildren,r._sort=we(s.sortChildren),Z&&Ge(s.parent||Z,Ue(r),n),s.reversed&&r.reverse(),s.paused&&r.paused(!0),s.scrollTrigger&&_l(Ue(r),s.scrollTrigger),r}var t=e.prototype;return t.to=function(n,r,a){return si(0,arguments,this),this},t.from=function(n,r,a){return si(1,arguments,this),this},t.fromTo=function(n,r,a,o){return si(2,arguments,this),this},t.set=function(n,r,a){return r.duration=0,r.parent=this,ii(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new ne(n,r,Oe(this,a),1),this},t.call=function(n,r,a){return Ge(this,ne.delayedCall(0,n,r),a)},t.staggerTo=function(n,r,a,o,l,c,d){return a.duration=r,a.stagger=a.stagger||o,a.onComplete=c,a.onCompleteParams=d,a.parent=this,new ne(n,a,Oe(this,l)),this},t.staggerFrom=function(n,r,a,o,l,c,d){return a.runBackwards=1,ii(a).immediateRender=we(a.immediateRender),this.staggerTo(n,r,a,o,l,c,d)},t.staggerFromTo=function(n,r,a,o,l,c,d,u){return o.startAt=a,ii(o).immediateRender=we(o.immediateRender),this.staggerTo(n,r,o,l,c,d,u)},t.render=function(n,r,a){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,d=n<=0?0:fe(n),u=this._zTime<0!=n<0&&(this._initted||!c),h,f,m,p,g,v,E,_,y,b,x,S;if(this!==Z&&d>l&&n>=0&&(d=l),d!==this._tTime||a||u){if(o!==this._time&&c&&(d+=this._time-o,n+=this._time-o),h=d,y=this._start,_=this._ts,v=!_,u&&(c||(o=this._zTime),(n||!r)&&(this._zTime=n)),this._repeat){if(x=this._yoyo,g=c+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(g*100+n,r,a);if(h=fe(d%g),d===l?(p=this._repeat,h=c):(p=~~(d/g),p&&p===d/g&&(h=c,p--),h>c&&(h=c)),b=zt(this._tTime,g),!o&&this._tTime&&b!==p&&(b=p),x&&p&1&&(h=c-h,S=1),p!==b&&!this._lock){var T=x&&b&1,w=T===(x&&p&1);if(p<b&&(T=!T),o=T?0:c,this._lock=1,this.render(o||(S?0:fe(p*g)),r,!c)._lock=0,this._tTime=d,!r&&this.parent&&ze(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1),o&&o!==this._time||v!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,w&&(this._lock=2,o=T?c:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!v)return this;Ol(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(E=Pf(this,fe(o),fe(h)),E&&(d-=h-(h=E._start))),this._tTime=d,this._time=h,this._act=!_,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,o=0),!o&&h&&!r&&(ze(this,"onStart"),this._tTime!==d))return this;if(h>=o&&n>=0)for(f=this._first;f;){if(m=f._next,(f._act||h>=f._start)&&f._ts&&E!==f){if(f.parent!==this)return this.render(n,r,a);if(f.render(f._ts>0?(h-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(h-f._start)*f._ts,r,a),h!==this._time||!this._ts&&!v){E=0,m&&(d+=this._zTime=-U);break}}f=m}else{f=this._last;for(var C=n<0?n:h;f;){if(m=f._prev,(f._act||C<=f._end)&&f._ts&&E!==f){if(f.parent!==this)return this.render(n,r,a);if(f.render(f._ts>0?(C-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(C-f._start)*f._ts,r,a||Te&&(f._initted||f._startAt)),h!==this._time||!this._ts&&!v){E=0,m&&(d+=this._zTime=C?-U:U);break}}f=m}}if(E&&!r&&(this.pause(),E.render(h>=o?0:-U)._zTime=h>=o?1:-1,this._ts))return this._start=y,ts(this),this.render(n,r,a);this._onUpdate&&!r&&ze(this,"onUpdate",!0),(d===l&&this._tTime>=this.totalDuration()||!d&&o)&&(y===this._start||Math.abs(_)!==Math.abs(this._ts))&&(this._lock||((n||!c)&&(d===l&&this._ts>0||!d&&this._ts<0)&&ct(this,1),!r&&!(n<0&&!o)&&(d||o||!l)&&(ze(this,d===l&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(d<l&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(n,r){var a=this;if(Qe(r)||(r=Oe(this,r,n)),!(n instanceof Bt)){if(ge(n))return n.forEach(function(o){return a.add(o,r)}),this;if(oe(n))return this.addLabel(n,r);if(ie(n))n=ne.delayedCall(0,n);else return this}return this!==n?Ge(this,n,r):this},t.getChildren=function(n,r,a,o){n===void 0&&(n=!0),r===void 0&&(r=!0),a===void 0&&(a=!0),o===void 0&&(o=-Ie);for(var l=[],c=this._first;c;)c._start>=o&&(c instanceof ne?r&&l.push(c):(a&&l.push(c),n&&l.push.apply(l,c.getChildren(!0,r,a)))),c=c._next;return l},t.getById=function(n){for(var r=this.getChildren(1,1,1),a=r.length;a--;)if(r[a].vars.id===n)return r[a]},t.remove=function(n){return oe(n)?this.removeLabel(n):ie(n)?this.killTweensOf(n):(es(this,n),n===this._recent&&(this._recent=this._last),vt(this))},t.totalTime=function(n,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=fe(Se.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,r),this._forcing=0,this):this._tTime},t.addLabel=function(n,r){return this.labels[n]=Oe(this,r),this},t.removeLabel=function(n){return delete this.labels[n],this},t.addPause=function(n,r,a){var o=ne.delayedCall(0,r||ri,a);return o.data="isPause",this._hasPause=1,Ge(this,o,Oe(this,n))},t.removePause=function(n){var r=this._first;for(n=Oe(this,n);r;)r._start===n&&r.data==="isPause"&&ct(r),r=r._next},t.killTweensOf=function(n,r,a){for(var o=this.getTweensOf(n,a),l=o.length;l--;)at!==o[l]&&o[l].kill(n,r);return this},t.getTweensOf=function(n,r){for(var a=[],o=Pe(n),l=this._first,c=Qe(r),d;l;)l instanceof ne?_f(l._targets,o)&&(c?(!at||l._initted&&l._ts)&&l.globalTime(0)<=r&&l.globalTime(l.totalDuration())>r:!r||l.isActive())&&a.push(l):(d=l.getTweensOf(o,r)).length&&a.push.apply(a,d),l=l._next;return a},t.tweenTo=function(n,r){r=r||{};var a=this,o=Oe(a,n),l=r,c=l.startAt,d=l.onStart,u=l.onStartParams,h=l.immediateRender,f,m=ne.to(a,Fe({ease:r.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:r.duration||Math.abs((o-(c&&"time"in c?c.time:a._time))/a.timeScale())||U,onStart:function(){if(a.pause(),!f){var g=r.duration||Math.abs((o-(c&&"time"in c?c.time:a._time))/a.timeScale());m._dur!==g&&Ft(m,g,0,1).render(m._time,!0,!0),f=1}d&&d.apply(m,u||[])}},r));return h?m.render(0):m},t.tweenFromTo=function(n,r,a){return this.tweenTo(r,Fe({startAt:{time:Oe(this,n)}},a))},t.recent=function(){return this._recent},t.nextLabel=function(n){return n===void 0&&(n=this._time),nl(this,Oe(this,n))},t.previousLabel=function(n){return n===void 0&&(n=this._time),nl(this,Oe(this,n),1)},t.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+U)},t.shiftChildren=function(n,r,a){a===void 0&&(a=0);for(var o=this._first,l=this.labels,c;o;)o._start>=a&&(o._start+=n,o._end+=n),o=o._next;if(r)for(c in l)l[c]>=a&&(l[c]+=n);return vt(this)},t.invalidate=function(n){var r=this._first;for(this._lock=0;r;)r.invalidate(n),r=r._next;return i.prototype.invalidate.call(this,n)},t.clear=function(n){n===void 0&&(n=!0);for(var r=this._first,a;r;)a=r._next,this.remove(r),r=a;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),vt(this)},t.totalDuration=function(n){var r=0,a=this,o=a._last,l=Ie,c,d,u;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-n:n));if(a._dirty){for(u=a.parent;o;)c=o._prev,o._dirty&&o.totalDuration(),d=o._start,d>l&&a._sort&&o._ts&&!a._lock?(a._lock=1,Ge(a,o,d-o._delay,1)._lock=0):l=d,d<0&&o._ts&&(r-=d,(!u&&!a._dp||u&&u.smoothChildTiming)&&(a._start+=d/a._ts,a._time-=d,a._tTime-=d),a.shiftChildren(-d,!1,-1/0),l=0),o._end>r&&o._ts&&(r=o._end),o=c;Ft(a,a===Z&&a._time>r?a._time:r,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(n){if(Z._ts&&(gl(Z,Ui(n,Z)),ml=Se.frame),Se.frame>=el){el+=Ce.autoSleep||120;var r=Z._first;if((!r||!r._ts)&&Ce.autoSleep&&Se._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||Se.sleep()}}},e}(Bt);Fe(ce.prototype,{_lock:0,_hasPause:0,_forcing:0});var Rf=function(e,t,s,n,r,a,o){var l=new be(this._pt,e,t,0,1,$r,null,r),c=0,d=0,u,h,f,m,p,g,v,E;for(l.b=s,l.e=n,s+="",n+="",(v=~n.indexOf("random("))&&(n=Vt(n)),a&&(E=[s,n],a(E,e,t),s=E[0],n=E[1]),h=s.match(Un)||[];u=Un.exec(n);)m=u[0],p=n.substring(c,u.index),f?f=(f+1)%5:p.substr(-5)==="rgba("&&(f=1),m!==h[d++]&&(g=parseFloat(h[d-1])||0,l._pt={_next:l._pt,p:p||d===1?p:",",s:g,c:m.charAt(1)==="="?_t(g,m)-g:parseFloat(m)-g,m:f&&f<4?Math.round:0},c=Un.lastIndex);return l.c=c<n.length?n.substring(c,n.length):"",l.fp=o,(pr.test(n)||v)&&(l.e=0),this._pt=l,l},Pr=function(e,t,s,n,r,a,o,l,c,d){ie(n)&&(n=n(r||0,e,a));var u=e[t],h=s!=="get"?s:ie(u)?c?e[t.indexOf("set")||!ie(e["get"+t.substr(3)])?t:"get"+t.substr(3)](c):e[t]():u,f=ie(u)?c?Xf:Fl:Lr,m;if(oe(n)&&(~n.indexOf("random(")&&(n=Vt(n)),n.charAt(1)==="="&&(m=_t(h,n)+(de(h)||0),(m||m===0)&&(n=m))),!d||h!==n||dr)return!isNaN(h*n)&&n!==""?(m=new be(this._pt,e,t,+h||0,n-(h||0),typeof u=="boolean"?Wf:Rl,0,f),c&&(m.fp=c),o&&m.modifier(o,this,e),this._pt=m):(!u&&!(t in e)&&Ji(t,n),Rf.call(this,e,t,h,n,f,l||Ce.stringFilter,c))},Bf=function(e,t,s,n,r){if(ie(e)&&(e=ni(e,r,t,s,n)),!je(e)||e.style&&e.nodeType||ge(e)||dl(e))return oe(e)?ni(e,r,t,s,n):e;var a={},o;for(o in e)a[o]=ni(e[o],r,t,s,n);return a},Ar=function(e,t,s,n,r,a){var o,l,c,d;if(Ee[e]&&(o=new Ee[e]).init(r,o.rawVars?t[e]:Bf(t[e],n,r,a,s),s,n,a)!==!1&&(s._pt=l=new be(s._pt,r,e,0,1,o.render,o,0,o.priority),s!==Dt))for(c=s._ptLookup[s._targets.indexOf(r)],d=o._props.length;d--;)c[o._props[d]]=l;return o},at,dr,kr=function i(e,t,s){var n=e.vars,r=n.ease,a=n.startAt,o=n.immediateRender,l=n.lazy,c=n.onUpdate,d=n.onUpdateParams,u=n.callbackScope,h=n.runBackwards,f=n.yoyoEase,m=n.keyframes,p=n.autoRevert,g=e._dur,v=e._startAt,E=e._targets,_=e.parent,y=_&&_.data==="nested"?_.vars.targets:E,b=e._overwrite==="auto"&&!hr,x=e.timeline,S,T,w,C,M,A,$,k,B,F,O,X,ae;if(x&&(!m||!r)&&(r="none"),e._ease=yt(r,It.ease),e._yEase=f?$l(yt(f===!0?r:f,It.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!x&&!!n.runBackwards,!x||m&&!n.stagger){if(k=E[0]?lt(E[0]).harness:0,X=k&&n[k.prop],S=qi(n,gr),v&&(v._zTime<0&&v.progress(1),t<0&&h&&o&&!p?v.render(-1,!0):v.revert(h&&g?Yi:bf),v._lazy=0),a){if(ct(e._startAt=ne.set(E,Fe({data:"isStart",overwrite:!1,parent:_,immediateRender:!0,lazy:we(l),startAt:null,delay:0,onUpdate:c,onUpdateParams:d,callbackScope:u,stagger:0},a))),e._startAt._dp=0,t<0&&(Te||!o&&!p)&&e._startAt.revert(Yi),o&&g&&t<=0&&s<=0){t&&(e._zTime=t);return}}else if(h&&g&&!v){if(t&&(o=!1),w=Fe({overwrite:!1,data:"isFromStart",lazy:o&&we(l),immediateRender:o,stagger:0,parent:_},S),X&&(w[k.prop]=X),ct(e._startAt=ne.set(E,w)),e._startAt._dp=0,t<0&&(Te?e._startAt.revert(Yi):e._startAt.render(-1,!0)),e._zTime=t,!o)i(e._startAt,U,U);else if(!t)return}for(e._pt=e._ptCache=0,l=g&&we(l)||l&&!g,T=0;T<E.length;T++){if(M=E[T],$=M._gsap||yr(E)[T]._gsap,e._ptLookup[T]=F={},rr[$.id]&&ot.length&&ji(),O=y===E?T:y.indexOf(M),k&&(B=new k).init(M,X||S,e,O,y)!==!1&&(e._pt=C=new be(e._pt,M,B.name,0,1,B.render,B,0,B.priority),B._props.forEach(function(le){F[le]=C}),B.priority&&(A=1)),!k||X)for(w in S)Ee[w]&&(B=Ar(w,S,e,O,M,y))?B.priority&&(A=1):F[w]=C=Pr.call(e,M,w,"get",S[w],O,y,0,n.stringFilter);e._op&&e._op[T]&&e.kill(M,e._op[T]),b&&e._pt&&(at=e,Z.killTweensOf(M,F,e.globalTime(t)),ae=!e.parent,at=0),e._pt&&l&&(rr[$.id]=1)}A&&Dr(e),e._onInit&&e._onInit(e)}e._onUpdate=c,e._initted=(!e._op||e._pt)&&!ae,m&&t<=0&&x.render(Ie,!0,!0)},Nf=function(e,t,s,n,r,a,o){var l=(e._pt&&e._ptCache||(e._ptCache={}))[t],c,d,u,h;if(!l)for(l=e._ptCache[t]=[],u=e._ptLookup,h=e._targets.length;h--;){if(c=u[h][t],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==t&&c.fp!==t;)c=c._next;if(!c)return dr=1,e.vars[t]="+=0",kr(e,o),dr=0,1;l.push(c)}for(h=l.length;h--;)d=l[h],c=d._pt||d,c.s=(n||n===0)&&!r?n:c.s+(n||0)+a*c.c,c.c=s-c.s,d.e&&(d.e=se(s)+de(d.e)),d.b&&(d.b=c.s+de(d.b))},Vf=function(e,t){var s=e[0]?lt(e[0]).harness:0,n=s&&s.aliases,r,a,o,l;if(!n)return t;r=bt({},t);for(a in n)if(a in r)for(l=n[a].split(","),o=l.length;o--;)r[l[o]]=r[a];return r},Yf=function(e,t,s,n){var r=t.ease||n||"power1.inOut",a,o;if(ge(t))o=s[e]||(s[e]=[]),t.forEach(function(l,c){return o.push({t:c/(t.length-1)*100,v:l,e:r})});else for(a in t)o=s[a]||(s[a]=[]),a==="ease"||o.push({t:parseFloat(e),v:t[a],e:r})},ni=function(e,t,s,n,r){return ie(e)?e.call(t,s,n,r):oe(e)&&~e.indexOf("random(")?Vt(e):e},Il=vr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",zl={};ye(Il+",id,stagger,delay,duration,paused,scrollTrigger",function(i){return zl[i]=1});var ne=function(i){ol(e,i);function e(s,n,r,a){var o;typeof n=="number"&&(r.duration=n,n=r,r=null),o=i.call(this,a?n:ii(n))||this;var l=o.vars,c=l.duration,d=l.delay,u=l.immediateRender,h=l.stagger,f=l.overwrite,m=l.keyframes,p=l.defaults,g=l.scrollTrigger,v=l.yoyoEase,E=n.parent||Z,_=(ge(s)||dl(s)?Qe(s[0]):"length"in n)?[s]:Pe(s),y,b,x,S,T,w,C,M;if(o._targets=_.length?yr(_):Gi("GSAP target "+s+" not found. https://greensock.com",!Ce.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=f,m||h||Vi(c)||Vi(d)){if(n=o.vars,y=o.timeline=new ce({data:"nested",defaults:p||{},targets:E&&E.data==="nested"?E.vars.targets:_}),y.kill(),y.parent=y._dp=Ue(o),y._start=0,h||Vi(c)||Vi(d)){if(S=_.length,C=h&&_r(h),je(h))for(T in h)~Il.indexOf(T)&&(M||(M={}),M[T]=h[T]);for(b=0;b<S;b++)x=qi(n,zl),x.stagger=0,v&&(x.yoyoEase=v),M&&bt(x,M),w=_[b],x.duration=+ni(c,Ue(o),b,w,_),x.delay=(+ni(d,Ue(o),b,w,_)||0)-o._delay,!h&&S===1&&x.delay&&(o._delay=d=x.delay,o._start+=d,x.delay=0),y.to(w,x,C?C(b,w,_):0),y._ease=W.none;y.duration()?c=d=0:o.timeline=0}else if(m){ii(Fe(y.vars.defaults,{ease:"none"})),y._ease=yt(m.ease||n.ease||"none");var A=0,$,k,B;if(ge(m))m.forEach(function(F){return y.to(_,F,">")}),y.duration();else{x={};for(T in m)T==="ease"||T==="easeEach"||Yf(T,m[T],x,m.easeEach);for(T in x)for($=x[T].sort(function(F,O){return F.t-O.t}),A=0,b=0;b<$.length;b++)k=$[b],B={ease:k.e,duration:(k.t-(b?$[b-1].t:0))/100*c},B[T]=k.v,y.to(_,B,A),A+=B.duration;y.duration()<c&&y.to({},{duration:c-y.duration()})}}c||o.duration(c=y.duration())}else o.timeline=0;return f===!0&&!hr&&(at=Ue(o),Z.killTweensOf(_),at=0),Ge(E,Ue(o),r),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(u||!c&&!m&&o._start===fe(E._time)&&we(u)&&wf(Ue(o))&&E.data!=="nested")&&(o._tTime=-U,o.render(Math.max(0,-d)||0)),g&&_l(Ue(o),g),o}var t=e.prototype;return t.render=function(n,r,a){var o=this._time,l=this._tDur,c=this._dur,d=n<0,u=n>l-U&&!d?l:n<U?0:n,h,f,m,p,g,v,E,_,y;if(!c)Mf(this,n,r,a);else if(u!==this._tTime||!n||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==d){if(h=u,_=this.timeline,this._repeat){if(p=c+this._rDelay,this._repeat<-1&&d)return this.totalTime(p*100+n,r,a);if(h=fe(u%p),u===l?(m=this._repeat,h=c):(m=~~(u/p),m&&m===u/p&&(h=c,m--),h>c&&(h=c)),v=this._yoyo&&m&1,v&&(y=this._yEase,h=c-h),g=zt(this._tTime,p),h===o&&!a&&this._initted)return this._tTime=u,this;m!==g&&(_&&this._yEase&&Ol(_,v),this.vars.repeatRefresh&&!v&&!this._lock&&(this._lock=a=1,this.render(fe(p*m),!0).invalidate()._lock=0))}if(!this._initted){if(El(this,d?n:h,a,r,u))return this._tTime=0,this;if(o!==this._time)return this;if(c!==this._dur)return this.render(n,r,a)}if(this._tTime=u,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=E=(y||this._ease)(h/c),this._from&&(this.ratio=E=1-E),h&&!o&&!r&&(ze(this,"onStart"),this._tTime!==u))return this;for(f=this._pt;f;)f.r(E,f.d),f=f._next;_&&_.render(n<0?n:!h&&v?-U:_._dur*_._ease(h/this._dur),r,a)||this._startAt&&(this._zTime=n),this._onUpdate&&!r&&(d&&ar(this,n,r,a),ze(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!r&&this.parent&&ze(this,"onRepeat"),(u===this._tDur||!u)&&this._tTime===u&&(d&&!this._onUpdate&&ar(this,n,!0,!0),(n||!c)&&(u===this._tDur&&this._ts>0||!u&&this._ts<0)&&ct(this,1),!r&&!(d&&!o)&&(u||o||v)&&(ze(this,u===l?"onComplete":"onReverseComplete",!0),this._prom&&!(u<l&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},t.resetTo=function(n,r,a,o){ai||Se.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||kr(this,l),c=this._ease(l/this._dur),Nf(this,n,r,a,o,c,l)?this.resetTo(n,r,a,o):(is(this,0),this.parent||bl(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(n,r){if(r===void 0&&(r="all"),!n&&(!r||r==="all"))return this._lazy=this._pt=0,this.parent?ei(this):this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(n,r,at&&at.vars.overwrite!==!0)._first||ei(this),this.parent&&a!==this.timeline.totalDuration()&&Ft(this,this._dur*this.timeline._tDur/a,0,1),this}var o=this._targets,l=n?Pe(n):o,c=this._ptLookup,d=this._pt,u,h,f,m,p,g,v;if((!r||r==="all")&&Sf(o,l))return r==="all"&&(this._pt=0),ei(this);for(u=this._op=this._op||[],r!=="all"&&(oe(r)&&(p={},ye(r,function(E){return p[E]=1}),r=p),r=Vf(o,r)),v=o.length;v--;)if(~l.indexOf(o[v])){h=c[v],r==="all"?(u[v]=r,m=h,f={}):(f=u[v]=u[v]||{},m=r);for(p in m)g=h&&h[p],g&&((!("kill"in g.d)||g.d.kill(p)===!0)&&es(this,g,"_pt"),delete h[p]),f!=="all"&&(f[p]=1)}return this._initted&&!this._pt&&d&&ei(this),this},e.to=function(n,r){return new e(n,r,arguments[2])},e.from=function(n,r){return si(1,arguments)},e.delayedCall=function(n,r,a,o){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:r,onReverseComplete:r,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:o})},e.fromTo=function(n,r,a){return si(2,arguments)},e.set=function(n,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(n,r)},e.killTweensOf=function(n,r,a){return Z.killTweensOf(n,r,a)},e}(Bt);Fe(ne.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});ye("staggerTo,staggerFrom,staggerFromTo",function(i){ne[i]=function(){var e=new ce,t=lr.call(arguments,0);return t.splice(i==="staggerFromTo"?5:4,0,0),e[i].apply(e,t)}});var Lr=function(e,t,s){return e[t]=s},Fl=function(e,t,s){return e[t](s)},Xf=function(e,t,s,n){return e[t](n.fp,s)},Hf=function(e,t,s){return e.setAttribute(t,s)},ns=function(e,t){return ie(e[t])?Fl:Zi(e[t])&&e.setAttribute?Hf:Lr},Rl=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Wf=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},$r=function(e,t){var s=t._pt,n="";if(!e&&t.b)n=t.b;else if(e===1&&t.e)n=t.e;else{for(;s;)n=s.p+(s.m?s.m(s.s+s.c*e):Math.round((s.s+s.c*e)*1e4)/1e4)+n,s=s._next;n+=t.c}t.set(t.t,t.p,n,t)},Or=function(e,t){for(var s=t._pt;s;)s.r(e,s.d),s=s._next},Gf=function(e,t,s,n){for(var r=this._pt,a;r;)a=r._next,r.p===n&&r.modifier(e,t,s),r=a},jf=function(e){for(var t=this._pt,s,n;t;)n=t._next,t.p===e&&!t.op||t.op===e?es(this,t,"_pt"):t.dep||(s=1),t=n;return!s},qf=function(e,t,s,n){n.mSet(e,t,n.m.call(n.tween,s,n.mt),n)},Dr=function(e){for(var t=e._pt,s,n,r,a;t;){for(s=t._next,n=r;n&&n.pr>t.pr;)n=n._next;(t._prev=n?n._prev:a)?t._prev._next=t:r=t,(t._next=n)?n._prev=t:a=t,t=s}e._pt=r},be=function(){function i(t,s,n,r,a,o,l,c,d){this.t=s,this.s=r,this.c=a,this.p=n,this.r=o||Rl,this.d=l||this,this.set=c||Lr,this.pr=d||0,this._next=t,t&&(t._prev=this)}var e=i.prototype;return e.modifier=function(s,n,r){this.mSet=this.mSet||this.set,this.set=qf,this.m=s,this.mt=r,this.tween=n},i}();ye(vr+"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(i){return gr[i]=1});Ae.TweenMax=Ae.TweenLite=ne;Ae.TimelineLite=Ae.TimelineMax=ce;Z=new ce({sortChildren:!1,defaults:It,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ce.stringFilter=Cr;var Nt=[],Hi={},Uf=[],al=0,er=function(e){return(Hi[e]||Uf).map(function(t){return t()})},ur=function(){var e=Date.now(),t=[];e-al>2&&(er("matchMediaInit"),Nt.forEach(function(s){var n=s.queries,r=s.conditions,a,o,l,c;for(o in n)a=De.matchMedia(n[o]).matches,a&&(l=1),a!==r[o]&&(r[o]=a,c=1);c&&(s.revert(),l&&t.push(s))}),er("matchMediaRevert"),t.forEach(function(s){return s.onMatch(s)}),al=e,er("matchMedia"))},Bl=function(){function i(t,s){this.selector=s&&Ki(s),this.data=[],this._r=[],this.isReverted=!1,t&&this.add(t)}var e=i.prototype;return e.add=function(s,n,r){ie(s)&&(r=n,n=s,s=ie);var a=this,o=function(){var c=re,d=a.selector,u;return c&&c!==a&&c.data.push(a),r&&(a.selector=Ki(r)),re=a,u=n.apply(a,arguments),ie(u)&&a._r.push(u),re=c,a.selector=d,a.isReverted=!1,u};return a.last=o,s===ie?o(a):s?a[s]=o:o},e.ignore=function(s){var n=re;re=null,s(this),re=n},e.getTweens=function(){var s=[];return this.data.forEach(function(n){return n instanceof i?s.push.apply(s,n.getTweens()):n instanceof ne&&!(n.parent&&n.parent.data==="nested")&&s.push(n)}),s},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(s,n){var r=this;if(s){var a=this.getTweens();this.data.forEach(function(l){l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(c){return a.splice(a.indexOf(c),1)}))}),a.map(function(l){return{g:l.globalTime(0),t:l}}).sort(function(l,c){return c.g-l.g||-1}).forEach(function(l){return l.t.revert(s)}),this.data.forEach(function(l){return!(l instanceof Bt)&&l.revert&&l.revert(s)}),this._r.forEach(function(l){return l(s,r)}),this.isReverted=!0}else this.data.forEach(function(l){return l.kill&&l.kill()});if(this.clear(),n){var o=Nt.indexOf(this);~o&&Nt.splice(o,1)}},e.revert=function(s){this.kill(s||{})},i}(),Kf=function(){function i(t){this.contexts=[],this.scope=t}var e=i.prototype;return e.add=function(s,n,r){je(s)||(s={matches:s});var a=new Bl(0,r||this.scope),o=a.conditions={},l,c,d;this.contexts.push(a),n=a.add("onMatch",n),a.queries=s;for(c in s)c==="all"?d=1:(l=De.matchMedia(s[c]),l&&(Nt.indexOf(a)<0&&Nt.push(a),(o[c]=l.matches)&&(d=1),l.addListener?l.addListener(ur):l.addEventListener("change",ur)));return d&&n(a),this},e.revert=function(s){this.kill(s||{})},e.kill=function(s){this.contexts.forEach(function(n){return n.kill(s,!0)})},i}(),Qi={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];t.forEach(function(n){return Lf(n)})},timeline:function(e){return new ce(e)},getTweensOf:function(e,t){return Z.getTweensOf(e,t)},getProperty:function(e,t,s,n){oe(e)&&(e=Pe(e)[0]);var r=lt(e||{}).get,a=s?yl:vl;return s==="native"&&(s=""),e&&(t?a((Ee[t]&&Ee[t].get||r)(e,t,s,n)):function(o,l,c){return a((Ee[o]&&Ee[o].get||r)(e,o,l,c))})},quickSetter:function(e,t,s){if(e=Pe(e),e.length>1){var n=e.map(function(d){return ue.quickSetter(d,t,s)}),r=n.length;return function(d){for(var u=r;u--;)n[u](d)}}e=e[0]||{};var a=Ee[t],o=lt(e),l=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(d){var u=new a;Dt._pt=0,u.init(e,s?d+s:d,Dt,0,[e]),u.render(1,u),Dt._pt&&Or(1,Dt)}:o.set(e,l);return a?c:function(d){return c(e,l,s?d+s:d,o,1)}},quickTo:function(e,t,s){var n,r=ue.to(e,bt((n={},n[t]="+=0.1",n.paused=!0,n),s||{})),a=function(l,c,d){return r.resetTo(t,l,c,d)};return a.tween=r,a},isTweening:function(e){return Z.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=yt(e.ease,It.ease)),tl(It,e||{})},config:function(e){return tl(Ce,e||{})},registerEffect:function(e){var t=e.name,s=e.effect,n=e.plugins,r=e.defaults,a=e.extendTimeline;(n||"").split(",").forEach(function(o){return o&&!Ee[o]&&!Ae[o]&&Gi(t+" effect requires "+o+" plugin.")}),Kn[t]=function(o,l,c){return s(Pe(o),Fe(l||{},r),c)},a&&(ce.prototype[t]=function(o,l,c){return this.add(Kn[t](o,je(l)?l:(c=l)&&{},this),c)})},registerEase:function(e,t){W[e]=yt(t)},parseEase:function(e,t){return arguments.length?yt(e,t):W},getById:function(e){return Z.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var s=new ce(e),n,r;for(s.smoothChildTiming=we(e.smoothChildTiming),Z.remove(s),s._dp=0,s._time=s._tTime=Z._time,n=Z._first;n;)r=n._next,(t||!(!n._dur&&n instanceof ne&&n.vars.onComplete===n._targets[0]))&&Ge(s,n,n._start-n._delay),n=r;return Ge(Z,s,0),s},context:function(e,t){return e?new Bl(e,t):re},matchMedia:function(e){return new Kf(e)},matchMediaRefresh:function(){return Nt.forEach(function(e){var t=e.conditions,s,n;for(n in t)t[n]&&(t[n]=!1,s=1);s&&e.revert()})||ur()},addEventListener:function(e,t){var s=Hi[e]||(Hi[e]=[]);~s.indexOf(t)||s.push(t)},removeEventListener:function(e,t){var s=Hi[e],n=s&&s.indexOf(t);n>=0&&s.splice(n,1)},utils:{wrap:Pl,wrapYoyo:Al,distribute:_r,random:Sr,snap:Er,normalize:Cl,getUnit:de,clamp:ss,splitColor:wr,toArray:Pe,selector:Ki,mapRange:Tr,pipe:Tl,unitize:wl,interpolate:kl,shuffle:xr},install:fl,effects:Kn,ticker:Se,updateRoot:ce.updateRoot,plugins:Ee,globalTimeline:Z,core:{PropTween:be,globals:pl,Tween:ne,Timeline:ce,Animation:Bt,getCache:lt,_removeLinkedListItem:es,reverting:function(){return Te},context:function(e){return e&&re&&(re.data.push(e),e._ctx=re),re},suppressOverwrites:function(e){return hr=e}}};ye("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return Qi[i]=ne[i]});Se.add(ce.updateRoot);Dt=Qi.to({},{duration:0});var Qf=function(e,t){for(var s=e._pt;s&&s.p!==t&&s.op!==t&&s.fp!==t;)s=s._next;return s},Zf=function(e,t){var s=e._targets,n,r,a;for(n in t)for(r=s.length;r--;)a=e._ptLookup[r][n],a&&(a=a.d)&&(a._pt&&(a=Qf(a,n)),a&&a.modifier&&a.modifier(t[n],e,s[r],n))},tr=function(e,t){return{name:e,rawVars:1,init:function(n,r,a){a._onInit=function(o){var l,c;if(oe(r)&&(l={},ye(r,function(d){return l[d]=1}),r=l),t){l={};for(c in r)l[c]=t(r[c]);r=l}Zf(o,r)}}}},ue=Qi.registerPlugin({name:"attr",init:function(e,t,s,n,r){var a,o,l;this.tween=s;for(a in t)l=e.getAttribute(a)||"",o=this.add(e,"setAttribute",(l||0)+"",t[a],n,r,0,0,a),o.op=a,o.b=l,this._props.push(a)},render:function(e,t){for(var s=t._pt;s;)Te?s.set(s.t,s.p,s.b,s):s.r(e,s.d),s=s._next}},{name:"endArray",init:function(e,t){for(var s=t.length;s--;)this.add(e,s,e[s]||0,t[s],0,0,0,0,0,1)}},tr("roundProps",cr),tr("modifiers"),tr("snap",Er))||Qi;ne.version=ce.version=ue.version="3.11.3";hl=1;cl()&&Rt();var Nl=W.Power0,Vl=W.Power1,Yl=W.Power2,Xl=W.Power3,Hl=W.Power4,Wl=W.Linear,Gl=W.Quad,jl=W.Cubic,ql=W.Quart,Ul=W.Quint,Kl=W.Strong,Ql=W.Elastic,Zl=W.Back,Jl=W.SteppedEase,ec=W.Bounce,tc=W.Sine,ic=W.Expo,sc=W.Circ;var nc,ut,Xt,Vr,Ct,Jf,rc,Yr,ep=function(){return typeof window!="undefined"},et={},wt=180/Math.PI,Ht=Math.PI/180,Yt=Math.atan2,ac=1e8,Xr=/([A-Z])/g,tp=/(left|right|width|margin|padding|x)/i,ip=/[\s,\(]\S/,Je={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Fr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},sp=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},np=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},rp=function(e,t){var s=t.s+t.c*e;t.set(t.t,t.p,~~(s+(s<0?-.5:.5))+t.u,t)},fc=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},pc=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},ap=function(e,t,s){return e.style[t]=s},op=function(e,t,s){return e.style.setProperty(t,s)},lp=function(e,t,s){return e._gsap[t]=s},cp=function(e,t,s){return e._gsap.scaleX=e._gsap.scaleY=s},dp=function(e,t,s,n,r){var a=e._gsap;a.scaleX=a.scaleY=s,a.renderTransform(r,a)},up=function(e,t,s,n,r){var a=e._gsap;a[t]=s,a.renderTransform(r,a)},J="transform",Ve=J+"Origin",hp=function(e,t){var s=this,n=this.target,r=n.style;if(e in et){if(this.tfm=this.tfm||{},e!=="transform"&&(e=Je[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return s.tfm[a]=Ze(n,a)}):this.tfm[e]=n._gsap.x?n._gsap[e]:Ze(n,e)),this.props.indexOf(J)>=0)return;n._gsap.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(Ve,t,"")),e=J}(r||t)&&this.props.push(e,t,r[e])},mc=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},fp=function(){var e=this.props,t=this.target,s=t.style,n=t._gsap,r,a;for(r=0;r<e.length;r+=3)e[r+1]?t[e[r]]=e[r+2]:e[r+2]?s[e[r]]=e[r+2]:s.removeProperty(e[r].replace(Xr,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)n[a]=this.tfm[a];n.svg&&(n.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),r=Yr(),r&&!r.isStart&&!s[J]&&(mc(s),n.uncache=1)}},gc=function(e,t){var s={target:e,props:[],revert:fp,save:hp};return t&&t.split(",").forEach(function(n){return s.save(n)}),s},vc,Rr=function(e,t){var s=ut.createElementNS?ut.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):ut.createElement(e);return s.style?s:ut.createElement(e)},qe=function i(e,t,s){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(Xr,"-$1").toLowerCase())||n.getPropertyValue(t)||!s&&i(e,Wt(t)||t,1)||""},oc="O,Moz,ms,Ms,Webkit".split(","),Wt=function(e,t,s){var n=t||Ct,r=n.style,a=5;if(e in r&&!s)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(oc[a]+e in r););return a<0?null:(a===3?"ms":a>=0?oc[a]:"")+e},Br=function(){ep()&&window.document&&(nc=window,ut=nc.document,Xt=ut.documentElement,Ct=Rr("div")||{style:{}},Jf=Rr("div"),J=Wt(J),Ve=J+"Origin",Ct.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",vc=!!Wt("perspective"),Yr=ue.core.reverting,Vr=1)},Ir=function i(e){var t=Rr("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,n=this.nextSibling,r=this.style.cssText,a;if(Xt.appendChild(t),t.appendChild(this),this.style.display="block",e)try{a=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=i}catch(o){}else this._gsapBBox&&(a=this._gsapBBox());return s&&(n?s.insertBefore(this,n):s.appendChild(this)),Xt.removeChild(t),this.style.cssText=r,a},lc=function(e,t){for(var s=t.length;s--;)if(e.hasAttribute(t[s]))return e.getAttribute(t[s])},yc=function(e){var t;try{t=e.getBBox()}catch(s){t=Ir.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===Ir||(t=Ir.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+lc(e,["x","cx","x1"])||0,y:+lc(e,["y","cy","y1"])||0,width:0,height:0}:t},bc=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&yc(e))},ci=function(e,t){if(t){var s=e.style;t in et&&t!==Ve&&(t=J),s.removeProperty?((t.substr(0,2)==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),s.removeProperty(t.replace(Xr,"-$1").toLowerCase())):s.removeAttribute(t)}},ht=function(e,t,s,n,r,a){var o=new be(e._pt,t,s,0,1,a?pc:fc);return e._pt=o,o.b=n,o.e=r,e._props.push(s),o},cc={deg:1,rad:1,turn:1},pp={grid:1,flex:1},ft=function i(e,t,s,n){var r=parseFloat(s)||0,a=(s+"").trim().substr((r+"").length)||"px",o=Ct.style,l=tp.test(t),c=e.tagName.toLowerCase()==="svg",d=(c?"client":"offset")+(l?"Width":"Height"),u=100,h=n==="px",f=n==="%",m,p,g,v;return n===a||!r||cc[n]||cc[a]?r:(a!=="px"&&!h&&(r=i(e,t,s,"px")),v=e.getCTM&&bc(e),(f||a==="%")&&(et[t]||~t.indexOf("adius"))?(m=v?e.getBBox()[l?"width":"height"]:e[d],se(f?r/m*u:r/100*m)):(o[l?"width":"height"]=u+(h?a:n),p=~t.indexOf("adius")||n==="em"&&e.appendChild&&!c?e:e.parentNode,v&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===ut||!p.appendChild)&&(p=ut.body),g=p._gsap,g&&f&&g.width&&l&&g.time===Se.time&&!g.uncache?se(r/g.width*u):((f||a==="%")&&!pp[qe(p,"display")]&&(o.position=qe(e,"position")),p===e&&(o.position="static"),p.appendChild(Ct),m=Ct[d],p.removeChild(Ct),o.position="absolute",l&&f&&(g=lt(p),g.time=Se.time,g.width=p[d]),se(h?m*r/u:m&&r?u/m*r:0))))},Ze=function(e,t,s,n){var r;return Vr||Br(),t in Je&&t!=="transform"&&(t=Je[t],~t.indexOf(",")&&(t=t.split(",")[0])),et[t]&&t!=="transform"?(r=ui(e,n),r=t!=="transformOrigin"?r[t]:r.svg?r.origin:as(qe(e,Ve))+" "+r.zOrigin+"px"):(r=e.style[t],(!r||r==="auto"||n||~(r+"").indexOf("calc("))&&(r=rs[t]&&rs[t](e,t,s)||qe(e,t)||br(e,t)||(t==="opacity"?1:0))),s&&!~(r+"").trim().indexOf(" ")?ft(e,t,r,s)+s:r},mp=function(e,t,s,n){if(!s||s==="none"){var r=Wt(t,e,1),a=r&&qe(e,r,1);a&&a!==s?(t=r,s=a):t==="borderColor"&&(s=qe(e,"borderTopColor"))}var o=new be(this._pt,e.style,t,0,1,$r),l=0,c=0,d,u,h,f,m,p,g,v,E,_,y,b;if(o.b=s,o.e=n,s+="",n+="",n==="auto"&&(e.style[t]=n,n=qe(e,t)||n,e.style[t]=s),d=[s,n],Cr(d),s=d[0],n=d[1],h=s.match(xt)||[],b=n.match(xt)||[],b.length){for(;u=xt.exec(n);)g=u[0],E=n.substring(l,u.index),m?m=(m+1)%5:(E.substr(-5)==="rgba("||E.substr(-5)==="hsla(")&&(m=1),g!==(p=h[c++]||"")&&(f=parseFloat(p)||0,y=p.substr((f+"").length),g.charAt(1)==="="&&(g=_t(f,g)+y),v=parseFloat(g),_=g.substr((v+"").length),l=xt.lastIndex-_.length,_||(_=_||Ce.units[t]||y,l===n.length&&(n+=_,o.e+=_)),y!==_&&(f=ft(e,t,p,_)||0),o._pt={_next:o._pt,p:E||c===1?E:",",s:f,c:v-f,m:m&&m<4||t==="zIndex"?Math.round:0});o.c=l<n.length?n.substring(l,n.length):""}else o.r=t==="display"&&n==="none"?pc:fc;return pr.test(n)&&(o.e=0),this._pt=o,o},dc={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},gp=function(e){var t=e.split(" "),s=t[0],n=t[1]||"50%";return(s==="top"||s==="bottom"||n==="left"||n==="right")&&(e=s,s=n,n=e),t[0]=dc[s]||s,t[1]=dc[n]||n,t.join(" ")},vp=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var s=t.t,n=s.style,r=t.u,a=s._gsap,o,l,c;if(r==="all"||r===!0)n.cssText="",l=1;else for(r=r.split(","),c=r.length;--c>-1;)o=r[c],et[o]&&(l=1,o=o==="transformOrigin"?Ve:J),ci(s,o);l&&(ci(s,J),a&&(a.svg&&s.removeAttribute("transform"),ui(s,1),a.uncache=1,mc(n)))}},rs={clearProps:function(e,t,s,n,r){if(r.data!=="isFromStart"){var a=e._pt=new be(e._pt,t,s,0,0,vp);return a.u=n,a.pr=-10,a.tween=r,e._props.push(s),1}}},di=[1,0,0,1,0,0],xc={},_c=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},uc=function(e){var t=qe(e,J);return _c(t)?di:t.substr(7).match(fr).map(se)},Hr=function(e,t){var s=e._gsap||lt(e),n=e.style,r=uc(e),a,o,l,c;return s.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,r=[l.a,l.b,l.c,l.d,l.e,l.f],r.join(",")==="1,0,0,1,0,0"?di:r):(r===di&&!e.offsetParent&&e!==Xt&&!s.svg&&(l=n.display,n.display="block",a=e.parentNode,(!a||!e.offsetParent)&&(c=1,o=e.nextElementSibling,Xt.appendChild(e)),r=uc(e),l?n.display=l:ci(e,"display"),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):Xt.removeChild(e))),t&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},Nr=function(e,t,s,n,r,a){var o=e._gsap,l=r||Hr(e,!0),c=o.xOrigin||0,d=o.yOrigin||0,u=o.xOffset||0,h=o.yOffset||0,f=l[0],m=l[1],p=l[2],g=l[3],v=l[4],E=l[5],_=t.split(" "),y=parseFloat(_[0])||0,b=parseFloat(_[1])||0,x,S,T,w;s?l!==di&&(S=f*g-m*p)&&(T=y*(g/S)+b*(-p/S)+(p*E-g*v)/S,w=y*(-m/S)+b*(f/S)-(f*E-m*v)/S,y=T,b=w):(x=yc(e),y=x.x+(~_[0].indexOf("%")?y/100*x.width:y),b=x.y+(~(_[1]||_[0]).indexOf("%")?b/100*x.height:b)),n||n!==!1&&o.smooth?(v=y-c,E=b-d,o.xOffset=u+(v*f+E*p)-v,o.yOffset=h+(v*m+E*g)-E):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!n,o.origin=t,o.originIsAbsolute=!!s,e.style[Ve]="0px 0px",a&&(ht(a,o,"xOrigin",c,y),ht(a,o,"yOrigin",d,b),ht(a,o,"xOffset",u,o.xOffset),ht(a,o,"yOffset",h,o.yOffset)),e.setAttribute("data-svg-origin",y+" "+b)},ui=function(e,t){var s=e._gsap||new Mr(e);if("x"in s&&!t&&!s.uncache)return s;var n=e.style,r=s.scaleX<0,a="px",o="deg",l=getComputedStyle(e),c=qe(e,Ve)||"0",d,u,h,f,m,p,g,v,E,_,y,b,x,S,T,w,C,M,A,$,k,B,F,O,X,ae,le,P,L,D,R,N;return d=u=h=p=g=v=E=_=y=0,f=m=1,s.svg=!!(e.getCTM&&bc(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(n[J]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[J]!=="none"?l[J]:"")),n.scale=n.rotate=n.translate="none"),S=Hr(e,s.svg),s.svg&&(s.uncache?(X=e.getBBox(),c=s.xOrigin-X.x+"px "+(s.yOrigin-X.y)+"px",O=""):O=!t&&e.getAttribute("data-svg-origin"),Nr(e,O||c,!!O||s.originIsAbsolute,s.smooth!==!1,S)),b=s.xOrigin||0,x=s.yOrigin||0,S!==di&&(M=S[0],A=S[1],$=S[2],k=S[3],d=B=S[4],u=F=S[5],S.length===6?(f=Math.sqrt(M*M+A*A),m=Math.sqrt(k*k+$*$),p=M||A?Yt(A,M)*wt:0,E=$||k?Yt($,k)*wt+p:0,E&&(m*=Math.abs(Math.cos(E*Ht))),s.svg&&(d-=b-(b*M+x*$),u-=x-(b*A+x*k))):(N=S[6],D=S[7],le=S[8],P=S[9],L=S[10],R=S[11],d=S[12],u=S[13],h=S[14],T=Yt(N,L),g=T*wt,T&&(w=Math.cos(-T),C=Math.sin(-T),O=B*w+le*C,X=F*w+P*C,ae=N*w+L*C,le=B*-C+le*w,P=F*-C+P*w,L=N*-C+L*w,R=D*-C+R*w,B=O,F=X,N=ae),T=Yt(-$,L),v=T*wt,T&&(w=Math.cos(-T),C=Math.sin(-T),O=M*w-le*C,X=A*w-P*C,ae=$*w-L*C,R=k*C+R*w,M=O,A=X,$=ae),T=Yt(A,M),p=T*wt,T&&(w=Math.cos(T),C=Math.sin(T),O=M*w+A*C,X=B*w+F*C,A=A*w-M*C,F=F*w-B*C,M=O,B=X),g&&Math.abs(g)+Math.abs(p)>359.9&&(g=p=0,v=180-v),f=se(Math.sqrt(M*M+A*A+$*$)),m=se(Math.sqrt(F*F+N*N)),T=Yt(B,F),E=Math.abs(T)>2e-4?T*wt:0,y=R?1/(R<0?-R:R):0),s.svg&&(O=e.getAttribute("transform"),s.forceCSS=e.setAttribute("transform","")||!_c(qe(e,J)),O&&e.setAttribute("transform",O))),Math.abs(E)>90&&Math.abs(E)<270&&(r?(f*=-1,E+=p<=0?180:-180,p+=p<=0?180:-180):(m*=-1,E+=E<=0?180:-180)),t=t||s.uncache,s.x=d-((s.xPercent=d&&(!t&&s.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-d)?-50:0)))?e.offsetWidth*s.xPercent/100:0)+a,s.y=u-((s.yPercent=u&&(!t&&s.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*s.yPercent/100:0)+a,s.z=h+a,s.scaleX=se(f),s.scaleY=se(m),s.rotation=se(p)+o,s.rotationX=se(g)+o,s.rotationY=se(v)+o,s.skewX=E+o,s.skewY=_+o,s.transformPerspective=y+a,(s.zOrigin=parseFloat(c.split(" ")[2])||0)&&(n[Ve]=as(c)),s.xOffset=s.yOffset=0,s.force3D=Ce.force3D,s.renderTransform=s.svg?bp:vc?Ec:yp,s.uncache=0,s},as=function(e){return(e=e.split(" "))[0]+" "+e[1]},zr=function(e,t,s){var n=de(t);return se(parseFloat(t)+parseFloat(ft(e,"x",s+"px",n)))+n},yp=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,Ec(e,t)},St="0deg",li="0px",Tt=") ",Ec=function(e,t){var s=t||this,n=s.xPercent,r=s.yPercent,a=s.x,o=s.y,l=s.z,c=s.rotation,d=s.rotationY,u=s.rotationX,h=s.skewX,f=s.skewY,m=s.scaleX,p=s.scaleY,g=s.transformPerspective,v=s.force3D,E=s.target,_=s.zOrigin,y="",b=v==="auto"&&e&&e!==1||v===!0;if(_&&(u!==St||d!==St)){var x=parseFloat(d)*Ht,S=Math.sin(x),T=Math.cos(x),w;x=parseFloat(u)*Ht,w=Math.cos(x),a=zr(E,a,S*w*-_),o=zr(E,o,-Math.sin(x)*-_),l=zr(E,l,T*w*-_+_)}g!==li&&(y+="perspective("+g+Tt),(n||r)&&(y+="translate("+n+"%, "+r+"%) "),(b||a!==li||o!==li||l!==li)&&(y+=l!==li||b?"translate3d("+a+", "+o+", "+l+") ":"translate("+a+", "+o+Tt),c!==St&&(y+="rotate("+c+Tt),d!==St&&(y+="rotateY("+d+Tt),u!==St&&(y+="rotateX("+u+Tt),(h!==St||f!==St)&&(y+="skew("+h+", "+f+Tt),(m!==1||p!==1)&&(y+="scale("+m+", "+p+Tt),E.style[J]=y||"translate(0, 0)"},bp=function(e,t){var s=t||this,n=s.xPercent,r=s.yPercent,a=s.x,o=s.y,l=s.rotation,c=s.skewX,d=s.skewY,u=s.scaleX,h=s.scaleY,f=s.target,m=s.xOrigin,p=s.yOrigin,g=s.xOffset,v=s.yOffset,E=s.forceCSS,_=parseFloat(a),y=parseFloat(o),b,x,S,T,w;l=parseFloat(l),c=parseFloat(c),d=parseFloat(d),d&&(d=parseFloat(d),c+=d,l+=d),l||c?(l*=Ht,c*=Ht,b=Math.cos(l)*u,x=Math.sin(l)*u,S=Math.sin(l-c)*-h,T=Math.cos(l-c)*h,c&&(d*=Ht,w=Math.tan(c-d),w=Math.sqrt(1+w*w),S*=w,T*=w,d&&(w=Math.tan(d),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=se(b),x=se(x),S=se(S),T=se(T)):(b=u,T=h,x=S=0),(_&&!~(a+"").indexOf("px")||y&&!~(o+"").indexOf("px"))&&(_=ft(f,"x",a,"px"),y=ft(f,"y",o,"px")),(m||p||g||v)&&(_=se(_+m-(m*b+p*S)+g),y=se(y+p-(m*x+p*T)+v)),(n||r)&&(w=f.getBBox(),_=se(_+n/100*w.width),y=se(y+r/100*w.height)),w="matrix("+b+","+x+","+S+","+T+","+_+","+y+")",f.setAttribute("transform",w),E&&(f.style[J]=w)},xp=function(e,t,s,n,r){var a=360,o=oe(r),l=parseFloat(r)*(o&&~r.indexOf("rad")?wt:1),c=l-n,d=n+c+"deg",u,h;return o&&(u=r.split("_")[1],u==="short"&&(c%=a,c!==c%(a/2)&&(c+=c<0?a:-a)),u==="cw"&&c<0?c=(c+a*ac)%a-~~(c/a)*a:u==="ccw"&&c>0&&(c=(c-a*ac)%a-~~(c/a)*a)),e._pt=h=new be(e._pt,t,s,n,c,sp),h.e=d,h.u="deg",e._props.push(s),h},hc=function(e,t){for(var s in t)e[s]=t[s];return e},_p=function(e,t,s){var n=hc({},s._gsap),r="perspective,force3D,transformOrigin,svgOrigin",a=s.style,o,l,c,d,u,h,f,m;n.svg?(c=s.getAttribute("transform"),s.setAttribute("transform",""),a[J]=t,o=ui(s,1),ci(s,J),s.setAttribute("transform",c)):(c=getComputedStyle(s)[J],a[J]=t,o=ui(s,1),a[J]=c);for(l in et)c=n[l],d=o[l],c!==d&&r.indexOf(l)<0&&(f=de(c),m=de(d),u=f!==m?ft(s,l,c,m):parseFloat(c),h=parseFloat(d),e._pt=new be(e._pt,o,l,u,h-u,Fr),e._pt.u=m||0,e._props.push(l));hc(o,n)};ye("padding,margin,Width,Radius",function(i,e){var t="Top",s="Right",n="Bottom",r="Left",a=(e<3?[t,s,n,r]:[t+r,t+s,n+s,n+r]).map(function(o){return e<2?i+o:"border"+o+i});rs[e>1?"border"+i:i]=function(o,l,c,d,u){var h,f;if(arguments.length<4)return h=a.map(function(m){return Ze(o,m,c)}),f=h.join(" "),f.split(h[0]).length===5?h[0]:f;h=(d+"").split(" "),f={},a.forEach(function(m,p){return f[m]=h[p]=h[p]||h[(p-1)/2|0]}),o.init(l,f,u)}});var hi={name:"css",register:Br,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,s,n,r){var a=this._props,o=e.style,l=s.vars.startAt,c,d,u,h,f,m,p,g,v,E,_,y,b,x,S,T;Vr||Br(),this.styles=this.styles||gc(e),T=this.styles.props,this.tween=s;for(p in t)if(p!=="autoRound"&&(d=t[p],!(Ee[p]&&Ar(p,t,s,n,e,r)))){if(f=typeof d,m=rs[p],f==="function"&&(d=d.call(s,n,e,r),f=typeof d),f==="string"&&~d.indexOf("random(")&&(d=Vt(d)),m)m(this,e,p,d,s)&&(S=1);else if(p.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(p)+"").trim(),d+="",Ke.lastIndex=0,Ke.test(c)||(g=de(c),v=de(d)),v?g!==v&&(c=ft(e,p,c,v)+v):g&&(d+=g),this.add(o,"setProperty",c,d,n,r,0,0,p),a.push(p),T.push(p,0,o[p]);else if(f!=="undefined"){if(l&&p in l?(c=typeof l[p]=="function"?l[p].call(s,n,e,r):l[p],oe(c)&&~c.indexOf("random(")&&(c=Vt(c)),de(c+"")||(c+=Ce.units[p]||de(Ze(e,p))||""),(c+"").charAt(1)==="="&&(c=Ze(e,p))):c=Ze(e,p),h=parseFloat(c),E=f==="string"&&d.charAt(1)==="="&&d.substr(0,2),E&&(d=d.substr(2)),u=parseFloat(d),p in Je&&(p==="autoAlpha"&&(h===1&&Ze(e,"visibility")==="hidden"&&u&&(h=0),T.push("visibility",0,o.visibility),ht(this,o,"visibility",h?"inherit":"hidden",u?"inherit":"hidden",!u)),p!=="scale"&&p!=="transform"&&(p=Je[p],~p.indexOf(",")&&(p=p.split(",")[0]))),_=p in et,_){if(this.styles.save(p),y||(b=e._gsap,b.renderTransform&&!t.parseTransform||ui(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new be(this._pt,o,J,0,1,b.renderTransform,b,0,-1),y.dep=1),p==="scale")this._pt=new be(this._pt,b,"scaleY",h,(E?_t(h,E+u):u)-h||0,Fr),this._pt.u=0,a.push("scaleY",p),p+="X";else if(p==="transformOrigin"){T.push(Ve,0,o[Ve]),d=gp(d),b.svg?Nr(e,d,0,x,0,this):(v=parseFloat(d.split(" ")[2])||0,v!==b.zOrigin&&ht(this,b,"zOrigin",b.zOrigin,v),ht(this,o,p,as(c),as(d)));continue}else if(p==="svgOrigin"){Nr(e,d,1,x,0,this);continue}else if(p in xc){xp(this,b,p,h,E?_t(h,E+d):d);continue}else if(p==="smoothOrigin"){ht(this,b,"smooth",b.smooth,d);continue}else if(p==="force3D"){b[p]=d;continue}else if(p==="transform"){_p(this,d,e);continue}}else p in o||(p=Wt(p)||p);if(_||(u||u===0)&&(h||h===0)&&!ip.test(d)&&p in o)g=(c+"").substr((h+"").length),u||(u=0),v=de(d)||(p in Ce.units?Ce.units[p]:g),g!==v&&(h=ft(e,p,c,v)),this._pt=new be(this._pt,_?b:o,p,h,(E?_t(h,E+u):u)-h,!_&&(v==="px"||p==="zIndex")&&t.autoRound!==!1?rp:Fr),this._pt.u=v||0,g!==v&&v!=="%"&&(this._pt.b=c,this._pt.r=np);else if(p in o)mp.call(this,e,p,c,E?E+d:d);else if(p in e)this.add(e,p,c||e[p],E?E+d:d,n,r);else{Ji(p,d);continue}_||(p in o?T.push(p,0,o[p]):T.push(p,1,c||e[p])),a.push(p)}}S&&Dr(this)},render:function(e,t){if(t.tween._time||!Yr())for(var s=t._pt;s;)s.r(e,s.d),s=s._next;else t.styles.revert()},get:Ze,aliases:Je,getSetter:function(e,t,s){var n=Je[t];return n&&n.indexOf(",")<0&&(t=n),t in et&&t!==Ve&&(e._gsap.x||Ze(e,"x"))?s&&rc===s?t==="scale"?cp:lp:(rc=s||{})&&(t==="scale"?dp:up):e.style&&!Zi(e.style[t])?ap:~t.indexOf("-")?op:ns(e,t)},core:{_removeProperty:ci,_getMatrix:Hr}};ue.utils.checkPrefix=Wt;ue.core.getStyleSaver=gc;(function(i,e,t,s){var n=ye(i+","+e+","+t,function(r){et[r]=1});ye(e,function(r){Ce.units[r]="deg",xc[r]=1}),Je[n[13]]=i+","+e,ye(s,function(r){var a=r.split(":");Je[a[1]]=n[a[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");ye("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){Ce.units[i]="px"});ue.registerPlugin(hi);var Y=ue.registerPlugin(hi)||ue,i_=Y.core.Tween;var os=class extends H{constructor(i){super(i),this.$el=this.el,this.$counter=this.$("counter"),this.fromValue=parseInt(this.getData("from-value"))||0,this.toValue=parseInt(this.getData("to-value"))||0,this.dataObj={value:0}}init(){this.dataObj={value:this.fromValue},this.initTimeline()}onProgress(i){var e;(e=this.timeline)==null||e.progress(i)}initTimeline(){this.timeline=Y.timeline(),this.timeline.fromTo(this.dataObj,{value:this.fromValue},{value:this.toValue,roundProps:"val",onUpdate:()=>{[...this.$counter].forEach(i=>{i.innerHTML=Math.round(this.dataObj.value)})}}),this.timeline.pause(),this.timeline.progress(0)}killTimeline(){var i;(i=this.timeline)==null||i.kill()}destroy(){super.destroy(),this.killTimeline()}};function Sc(i){return i.match(/^(([^<>()[\]\\.,;:\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,}))$/)}var ls=class extends H{constructor(i){super(i),this.onKeyupBind=this.onKeyup.bind(this),this.onHandleSubmitBind=this.onHandleSubmit.bind(this),this.$el=this.el,this.$input=this.$("input")[0],this.$submit=this.$("submit")[0],this.$feedback=this.$("feedback")[0]}init(){this.bindEvents(),this.disableSubmit()}destroy(){super.destroy(),this.unbindEvents()}bindEvents(){this.$input.addEventListener("keyup",this.onKeyupBind),this.$el.addEventListener("submit",this.onHandleSubmitBind)}unbindEvents(){this.$input.removeEventListener("keyup",this.onKeyupBind),this.$el.removeEventListener("submit",this.onHandleSubmitBind)}onKeyup(i){let e=i.target.value;if(e.length==0){this.disableSubmit();return}Sc(e)?this.enableSubmit():this.disableSubmit()}onHandleSubmit(i){i.preventDefault(),this.$el.classList.add("is-submitted"),this.$feedback.ariaHidden=!1}disableSubmit(){this.$submit.classList.contains("is-disabled")||this.$submit.classList.add("is-disabled")}enableSubmit(){!this.$submit.classList.contains("is-disabled")||this.$submit.classList.remove("is-disabled")}};var Ru=Ai(Hc(),1);var ea=class{constructor(){this._listeners={}}addEventListener(e,t){let s=this._listeners;s[e]===void 0&&(s[e]=[]),s[e].indexOf(t)===-1&&s[e].push(t)}removeEventListener(e,t){let n=this._listeners[e];if(n!==void 0){let r=n.indexOf(t);r!==-1&&n.splice(r,1)}}dispatchEvent(e){let s=this._listeners[e.type];if(s!==void 0){e.target=this;let n=s.slice(0);for(let r=0,a=n.length;r<a;r++)n[r].call(this,e)}}};function Wc(i){return"TouchEvent"in window&&i instanceof TouchEvent}var Jr={passive:!1},ta=class{constructor(e){this._isDragging=!1,this._eventDispatcher=new ea,this._friction=.15,this._dragStartX=0,this._dragStartY=0,this._dragLastX=0,this._dragLastY=0,this._accumulatedX=0,this._accumulatedY=0,this._dragDeltaX=0,this._dragDeltaY=0,this._dragLastDeltaX=0,this._dragLastDeltaY=0,this._velocityX=0,this._velocityY=0,this._requestAnimationFrameId=-1,this._$el=e,this._updateVelocity=(()=>{if(!(!this._isDragging&&fs(this._velocityX)&&fs(this._velocityY)))if(this._requestAnimationFrameId=requestAnimationFrame(this._updateVelocity),this._isDragging)this._dragLastDeltaX=this._dragDeltaX,this._dragLastDeltaY=this._dragDeltaY,this._dragDeltaX=this._dragLastX,this._dragDeltaY=this._dragLastY,this._velocityX=this._dragDeltaX-this._dragLastDeltaX,this._velocityY=this._dragDeltaY-this._dragLastDeltaY;else{let t=this._velocityX,s=this._velocityY;this._velocityX*=1-this._friction,this._velocityY*=1-this._friction,this._dragLastX+=t,this._dragLastY+=s,this._accumulatedX+=t,this._accumulatedY+=s,this._eventDispatcher.dispatchEvent({type:"inertiamove",dragStartX:this._dragStartX,dragStartY:this._dragStartY,deltaY:s,deltaX:t,accumulatedX:this._accumulatedX,accumulatedY:this._accumulatedY})}}).bind(this),this._onDragStart=this._handleDragStart.bind(this),this._onDragMove=this._handleDragMove.bind(this),this._onDragEnd=this._handleDragEnd.bind(this),this._$el.addEventListener("mousedown",this._onDragStart),this._$el.addEventListener("touchstart",this._onDragStart)}set friction(e){this._friction=e}get isDragging(){return this._isDragging}get isInertiaMoving(){return!(this._isDragging||fs(this._velocityX)&&fs(this._velocityY))}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}stop(){this._velocityX=0,this._velocityY=0,cancelAnimationFrame(this._requestAnimationFrameId)}forceDragEnd(){document.removeEventListener("mousemove",this._onDragMove),document.removeEventListener("touchmove",this._onDragMove,Jr),document.removeEventListener("mouseup",this._onDragEnd),document.removeEventListener("touchend",this._onDragEnd),this._isDragging=!1,this._eventDispatcher.dispatchEvent({type:"dragcancel",dragStartX:this._dragStartX,dragStartY:this._dragStartY,accumulatedX:this._accumulatedX,accumulatedY:this._accumulatedY})}destroy(){this.stop(),this.forceDragEnd(),this._$el.removeEventListener("mousedown",this._onDragStart),this._$el.removeEventListener("touchstart",this._onDragStart)}_handleDragStart(e){if(e.target instanceof Element&&e.target.getAttribute("data-ignore-dragging")!==null)return;document.removeEventListener("mousemove",this._onDragMove),document.removeEventListener("touchmove",this._onDragMove,Jr),document.removeEventListener("mouseup",this._onDragEnd),document.removeEventListener("touchend",this._onDragEnd);let t=Wc(e)?e.touches[0]:e;this._isDragging=!0,this._accumulatedX=0,this._accumulatedY=0,this._dragStartX=t.clientX,this._dragStartY=t.clientY,this._dragLastX=t.clientX,this._dragLastY=t.clientY,this._eventDispatcher.dispatchEvent({type:"dragstart",dragStartX:this._dragStartX,dragStartY:this._dragStartY,deltaY:0,deltaX:0,accumulatedX:this._accumulatedX,accumulatedY:this._accumulatedY}),this.stop(),this._updateVelocity(),document.addEventListener("mousemove",this._onDragMove),document.addEventListener("touchmove",this._onDragMove,Jr),document.addEventListener("mouseup",this._onDragEnd),document.addEventListener("touchend",this._onDragEnd)}_handleDragMove(e){e.preventDefault();let t=Wc(e)?e.touches[0]:e,s=t.clientX-this._dragLastX,n=t.clientY-this._dragLastY;this._accumulatedX+=s,this._accumulatedY+=n,this._dragLastX=t.clientX,this._dragLastY=t.clientY,this._eventDispatcher.dispatchEvent({type:"dragmove",dragStartX:this._dragStartX,dragStartY:this._dragStartY,deltaY:n,deltaX:s,accumulatedX:this._accumulatedX,accumulatedY:this._accumulatedY})}_handleDragEnd(){this.forceDragEnd(),this._eventDispatcher.dispatchEvent({type:"dragend",dragStartX:this._dragStartX,dragStartY:this._dragStartY,deltaY:0,deltaX:0,accumulatedX:this._accumulatedX,accumulatedY:this._accumulatedY})}};function fs(i){return Math.abs(i)<.001}var Gc=ta;function ia(i){let e=i[0],t=i[1],s=i[2];return Math.sqrt(e*e+t*t+s*s)}function ps(i,e){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i}function jc(i,e,t,s){return i[0]=e,i[1]=t,i[2]=s,i}function sa(i,e,t){return i[0]=e[0]+t[0],i[1]=e[1]+t[1],i[2]=e[2]+t[2],i}function na(i,e,t){return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],i}function qc(i,e,t){return i[0]=e[0]*t[0],i[1]=e[1]*t[1],i[2]=e[2]*t[2],i}function Uc(i,e,t){return i[0]=e[0]/t[0],i[1]=e[1]/t[1],i[2]=e[2]/t[2],i}function gs(i,e,t){return i[0]=e[0]*t,i[1]=e[1]*t,i[2]=e[2]*t,i}function Kc(i,e){let t=e[0]-i[0],s=e[1]-i[1],n=e[2]-i[2];return Math.sqrt(t*t+s*s+n*n)}function Qc(i,e){let t=e[0]-i[0],s=e[1]-i[1],n=e[2]-i[2];return t*t+s*s+n*n}function ra(i){let e=i[0],t=i[1],s=i[2];return e*e+t*t+s*s}function Zc(i,e){return i[0]=-e[0],i[1]=-e[1],i[2]=-e[2],i}function Jc(i,e){return i[0]=1/e[0],i[1]=1/e[1],i[2]=1/e[2],i}function ms(i,e){let t=e[0],s=e[1],n=e[2],r=t*t+s*s+n*n;return r>0&&(r=1/Math.sqrt(r)),i[0]=e[0]*r,i[1]=e[1]*r,i[2]=e[2]*r,i}function aa(i,e){return i[0]*e[0]+i[1]*e[1]+i[2]*e[2]}function oa(i,e,t){let s=e[0],n=e[1],r=e[2],a=t[0],o=t[1],l=t[2];return i[0]=n*l-r*o,i[1]=r*a-s*l,i[2]=s*o-n*a,i}function ed(i,e,t,s){let n=e[0],r=e[1],a=e[2];return i[0]=n+s*(t[0]-n),i[1]=r+s*(t[1]-r),i[2]=a+s*(t[2]-a),i}function td(i,e,t){let s=e[0],n=e[1],r=e[2],a=t[3]*s+t[7]*n+t[11]*r+t[15];return a=a||1,i[0]=(t[0]*s+t[4]*n+t[8]*r+t[12])/a,i[1]=(t[1]*s+t[5]*n+t[9]*r+t[13])/a,i[2]=(t[2]*s+t[6]*n+t[10]*r+t[14])/a,i}function id(i,e,t){let s=e[0],n=e[1],r=e[2],a=t[3]*s+t[7]*n+t[11]*r+t[15];return a=a||1,i[0]=(t[0]*s+t[4]*n+t[8]*r)/a,i[1]=(t[1]*s+t[5]*n+t[9]*r)/a,i[2]=(t[2]*s+t[6]*n+t[10]*r)/a,i}function sd(i,e,t){let s=e[0],n=e[1],r=e[2];return i[0]=s*t[0]+n*t[3]+r*t[6],i[1]=s*t[1]+n*t[4]+r*t[7],i[2]=s*t[2]+n*t[5]+r*t[8],i}function nd(i,e,t){let s=e[0],n=e[1],r=e[2],a=t[0],o=t[1],l=t[2],c=t[3],d=o*r-l*n,u=l*s-a*r,h=a*n-o*s,f=o*h-l*u,m=l*d-a*h,p=a*u-o*d,g=c*2;return d*=g,u*=g,h*=g,f*=2,m*=2,p*=2,i[0]=s+d+f,i[1]=n+u+m,i[2]=r+h+p,i}var rd=function(){let i=[0,0,0],e=[0,0,0];return function(t,s){ps(i,t),ps(e,s),ms(i,i),ms(e,e);let n=aa(i,e);return n>1?0:n<-1?Math.PI:Math.acos(n)}}();function ad(i,e){return i[0]===e[0]&&i[1]===e[1]&&i[2]===e[2]}var z=class extends Array{constructor(e=0,t=e,s=e){return super(e,t,s),this}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}set x(e){this[0]=e}set y(e){this[1]=e}set z(e){this[2]=e}set(e,t=e,s=e){return e.length?this.copy(e):(jc(this,e,t,s),this)}copy(e){return ps(this,e),this}add(e,t){return t?sa(this,e,t):sa(this,this,e),this}sub(e,t){return t?na(this,e,t):na(this,this,e),this}multiply(e){return e.length?qc(this,this,e):gs(this,this,e),this}divide(e){return e.length?Uc(this,this,e):gs(this,this,1/e),this}inverse(e=this){return Jc(this,e),this}len(){return ia(this)}distance(e){return e?Kc(this,e):ia(this)}squaredLen(){return ra(this)}squaredDistance(e){return e?Qc(this,e):ra(this)}negate(e=this){return Zc(this,e),this}cross(e,t){return t?oa(this,e,t):oa(this,this,e),this}scale(e){return gs(this,this,e),this}normalize(){return ms(this,this),this}dot(e){return aa(this,e)}equals(e){return ad(this,e)}applyMatrix3(e){return sd(this,this,e),this}applyMatrix4(e){return td(this,this,e),this}scaleRotateMatrix4(e){return id(this,this,e),this}applyQuaternion(e){return nd(this,this,e),this}angle(e){return rd(this,e)}lerp(e,t){return ed(this,this,e,t),this}clone(){return new z(this[0],this[1],this[2])}fromArray(e,t=0){return this[0]=e[t],this[1]=e[t+1],this[2]=e[t+2],this}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e}transformDirection(e){let t=this[0],s=this[1],n=this[2];return this[0]=e[0]*t+e[4]*s+e[8]*n,this[1]=e[1]*t+e[5]*s+e[9]*n,this[2]=e[2]*t+e[6]*s+e[10]*n,this.normalize()}};var od=new z,Mp=1,Pp=1,ld=!1,vs=class{constructor(e,t={}){e.canvas||console.error("gl not passed as first argument to Geometry"),this.gl=e,this.attributes=t,this.id=Mp++,this.VAOs={},this.drawRange={start:0,count:0},this.instancedCount=0,this.gl.renderer.bindVertexArray(null),this.gl.renderer.currentGeometry=null,this.glState=this.gl.renderer.state;for(let s in t)this.addAttribute(s,t[s])}addAttribute(e,t){if(this.attributes[e]=t,t.id=Pp++,t.size=t.size||1,t.type=t.type||(t.data.constructor===Float32Array?this.gl.FLOAT:t.data.constructor===Uint16Array?this.gl.UNSIGNED_SHORT:this.gl.UNSIGNED_INT),t.target=e==="index"?this.gl.ELEMENT_ARRAY_BUFFER:this.gl.ARRAY_BUFFER,t.normalized=t.normalized||!1,t.stride=t.stride||0,t.offset=t.offset||0,t.count=t.count||(t.stride?t.data.byteLength/t.stride:t.data.length/t.size),t.divisor=t.instanced||0,t.needsUpdate=!1,t.usage=t.usage||this.gl.STATIC_DRAW,t.buffer||this.updateAttribute(t),t.divisor){if(this.isInstanced=!0,this.instancedCount&&this.instancedCount!==t.count*t.divisor)return console.warn("geometry has multiple instanced buffers of different length"),this.instancedCount=Math.min(this.instancedCount,t.count*t.divisor);this.instancedCount=t.count*t.divisor}else e==="index"?this.drawRange.count=t.count:this.attributes.index||(this.drawRange.count=Math.max(this.drawRange.count,t.count))}updateAttribute(e){let t=!e.buffer;t&&(e.buffer=this.gl.createBuffer()),this.glState.boundBuffer!==e.buffer&&(this.gl.bindBuffer(e.target,e.buffer),this.glState.boundBuffer=e.buffer),t?this.gl.bufferData(e.target,e.data,e.usage):this.gl.bufferSubData(e.target,0,e.data),e.needsUpdate=!1}setIndex(e){this.addAttribute("index",e)}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}setInstancedCount(e){this.instancedCount=e}createVAO(e){this.VAOs[e.attributeOrder]=this.gl.renderer.createVertexArray(),this.gl.renderer.bindVertexArray(this.VAOs[e.attributeOrder]),this.bindAttributes(e)}bindAttributes(e){e.attributeLocations.forEach((t,{name:s,type:n})=>{if(!this.attributes[s]){console.warn(`active attribute ${s} not being supplied`);return}let r=this.attributes[s];this.gl.bindBuffer(r.target,r.buffer),this.glState.boundBuffer=r.buffer;let a=1;n===35674&&(a=2),n===35675&&(a=3),n===35676&&(a=4);let o=r.size/a,l=a===1?0:a*a*a,c=a===1?0:a*a;for(let d=0;d<a;d++)this.gl.vertexAttribPointer(t+d,o,r.type,r.normalized,r.stride+l,r.offset+d*c),this.gl.enableVertexAttribArray(t+d),this.gl.renderer.vertexAttribDivisor(t+d,r.divisor)}),this.attributes.index&&this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER,this.attributes.index.buffer)}draw({program:e,mode:t=this.gl.TRIANGLES}){this.gl.renderer.currentGeometry!==`${this.id}_${e.attributeOrder}`&&(this.VAOs[e.attributeOrder]||this.createVAO(e),this.gl.renderer.bindVertexArray(this.VAOs[e.attributeOrder]),this.gl.renderer.currentGeometry=`${this.id}_${e.attributeOrder}`),e.attributeLocations.forEach((s,{name:n})=>{let r=this.attributes[n];r.needsUpdate&&this.updateAttribute(r)}),this.isInstanced?this.attributes.index?this.gl.renderer.drawElementsInstanced(t,this.drawRange.count,this.attributes.index.type,this.attributes.index.offset+this.drawRange.start*2,this.instancedCount):this.gl.renderer.drawArraysInstanced(t,this.drawRange.start,this.drawRange.count,this.instancedCount):this.attributes.index?this.gl.drawElements(t,this.drawRange.count,this.attributes.index.type,this.attributes.index.offset+this.drawRange.start*2):this.gl.drawArrays(t,this.drawRange.start,this.drawRange.count)}getPosition(){let e=this.attributes.position;if(e.data)return e;if(!ld)return console.warn("No position buffer data found to compute bounds"),ld=!0}computeBoundingBox(e){e||(e=this.getPosition());let t=e.data,s=e.stride?e.stride/t.BYTES_PER_ELEMENT:e.size;this.bounds||(this.bounds={min:new z,max:new z,center:new z,scale:new z,radius:1/0});let n=this.bounds.min,r=this.bounds.max,a=this.bounds.center,o=this.bounds.scale;n.set(1/0),r.set(-1/0);for(let l=0,c=t.length;l<c;l+=s){let d=t[l],u=t[l+1],h=t[l+2];n.x=Math.min(d,n.x),n.y=Math.min(u,n.y),n.z=Math.min(h,n.z),r.x=Math.max(d,r.x),r.y=Math.max(u,r.y),r.z=Math.max(h,r.z)}o.sub(r,n),a.add(n,r).divide(2)}computeBoundingSphere(e){e||(e=this.getPosition());let t=e.data,s=e.stride?e.stride/t.BYTES_PER_ELEMENT:e.size;this.bounds||this.computeBoundingBox(e);let n=0;for(let r=0,a=t.length;r<a;r+=s)od.fromArray(t,r),n=Math.max(n,this.bounds.center.squaredDistance(od));this.bounds.radius=Math.sqrt(n)}remove(){for(let e in this.VAOs)this.gl.renderer.deleteVertexArray(this.VAOs[e]),delete this.VAOs[e];for(let e in this.attributes)this.gl.deleteBuffer(this.attributes[e].buffer),delete this.attributes[e]}};var Ap=1,cd={},fi=class{constructor(e,{vertex:t,fragment:s,uniforms:n={},transparent:r=!1,cullFace:a=e.BACK,frontFace:o=e.CCW,depthTest:l=!0,depthWrite:c=!0,depthFunc:d=e.LESS}={}){e.canvas||console.error("gl not passed as fist argument to Program"),this.gl=e,this.uniforms=n,this.id=Ap++,t||console.warn("vertex shader not supplied"),s||console.warn("fragment shader not supplied"),this.transparent=r,this.cullFace=a,this.frontFace=o,this.depthTest=l,this.depthWrite=c,this.depthFunc=d,this.blendFunc={},this.blendEquation={},this.transparent&&!this.blendFunc.src&&(this.gl.renderer.premultipliedAlpha?this.setBlendFunc(this.gl.ONE,this.gl.ONE_MINUS_SRC_ALPHA):this.setBlendFunc(this.gl.SRC_ALPHA,this.gl.ONE_MINUS_SRC_ALPHA));let u=e.createShader(e.VERTEX_SHADER);e.shaderSource(u,t),e.compileShader(u),e.getShaderInfoLog(u)!==""&&console.warn(`${e.getShaderInfoLog(u)}
Vertex Shader
${dd(t)}`);let h=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(h,s),e.compileShader(h),e.getShaderInfoLog(h)!==""&&console.warn(`${e.getShaderInfoLog(h)}
Fragment Shader
${dd(s)}`),this.program=e.createProgram(),e.attachShader(this.program,u),e.attachShader(this.program,h),e.linkProgram(this.program),!e.getProgramParameter(this.program,e.LINK_STATUS))return console.warn(e.getProgramInfoLog(this.program));e.deleteShader(u),e.deleteShader(h),this.uniformLocations=new Map;let f=e.getProgramParameter(this.program,e.ACTIVE_UNIFORMS);for(let g=0;g<f;g++){let v=e.getActiveUniform(this.program,g);this.uniformLocations.set(v,e.getUniformLocation(this.program,v.name));let E=v.name.match(/(\w+)/g);v.uniformName=E[0],E.length===3?(v.isStructArray=!0,v.structIndex=Number(E[1]),v.structProperty=E[2]):E.length===2&&isNaN(Number(E[1]))&&(v.isStruct=!0,v.structProperty=E[1])}this.attributeLocations=new Map;let m=[],p=e.getProgramParameter(this.program,e.ACTIVE_ATTRIBUTES);for(let g=0;g<p;g++){let v=e.getActiveAttrib(this.program,g),E=e.getAttribLocation(this.program,v.name);m[E]=v.name,this.attributeLocations.set(v,E)}this.attributeOrder=m.join("")}setBlendFunc(e,t,s,n){this.blendFunc.src=e,this.blendFunc.dst=t,this.blendFunc.srcAlpha=s,this.blendFunc.dstAlpha=n,e&&(this.transparent=!0)}setBlendEquation(e,t){this.blendEquation.modeRGB=e,this.blendEquation.modeAlpha=t}applyState(){this.depthTest?this.gl.renderer.enable(this.gl.DEPTH_TEST):this.gl.renderer.disable(this.gl.DEPTH_TEST),this.cullFace?this.gl.renderer.enable(this.gl.CULL_FACE):this.gl.renderer.disable(this.gl.CULL_FACE),this.blendFunc.src?this.gl.renderer.enable(this.gl.BLEND):this.gl.renderer.disable(this.gl.BLEND),this.cullFace&&this.gl.renderer.setCullFace(this.cullFace),this.gl.renderer.setFrontFace(this.frontFace),this.gl.renderer.setDepthMask(this.depthWrite),this.gl.renderer.setDepthFunc(this.depthFunc),this.blendFunc.src&&this.gl.renderer.setBlendFunc(this.blendFunc.src,this.blendFunc.dst,this.blendFunc.srcAlpha,this.blendFunc.dstAlpha),this.gl.renderer.setBlendEquation(this.blendEquation.modeRGB,this.blendEquation.modeAlpha)}use({flipFaces:e=!1}={}){let t=-1;this.gl.renderer.state.currentProgram===this.id||(this.gl.useProgram(this.program),this.gl.renderer.state.currentProgram=this.id),this.uniformLocations.forEach((n,r)=>{let a=r.uniformName,o=this.uniforms[a];if(r.isStruct&&(o=o[r.structProperty],a+=`.${r.structProperty}`),r.isStructArray&&(o=o[r.structIndex][r.structProperty],a+=`[${r.structIndex}].${r.structProperty}`),!o)return ud(`Active uniform ${a} has not been supplied`);if(o&&o.value===void 0)return ud(`${a} uniform is missing a value parameter`);if(o.value.texture)return t=t+1,o.value.update(t),la(this.gl,r.type,n,t);if(o.value.length&&o.value[0].texture){let l=[];return o.value.forEach(c=>{t=t+1,c.update(t),l.push(t)}),la(this.gl,r.type,n,l)}la(this.gl,r.type,n,o.value)}),this.applyState(),e&&this.gl.renderer.setFrontFace(this.frontFace===this.gl.CCW?this.gl.CW:this.gl.CCW)}remove(){this.gl.deleteProgram(this.program)}};function la(i,e,t,s){s=s.length?kp(s):s;let n=i.renderer.state.uniformLocations.get(t);if(s.length)if(n===void 0||n.length!==s.length)i.renderer.state.uniformLocations.set(t,s.slice(0));else{if(Lp(n,s))return;n.set?n.set(s):$p(n,s),i.renderer.state.uniformLocations.set(t,n)}else{if(n===s)return;i.renderer.state.uniformLocations.set(t,s)}switch(e){case 5126:return s.length?i.uniform1fv(t,s):i.uniform1f(t,s);case 35664:return i.uniform2fv(t,s);case 35665:return i.uniform3fv(t,s);case 35666:return i.uniform4fv(t,s);case 35670:case 5124:case 35678:case 35680:return s.length?i.uniform1iv(t,s):i.uniform1i(t,s);case 35671:case 35667:return i.uniform2iv(t,s);case 35672:case 35668:return i.uniform3iv(t,s);case 35673:case 35669:return i.uniform4iv(t,s);case 35674:return i.uniformMatrix2fv(t,!1,s);case 35675:return i.uniformMatrix3fv(t,!1,s);case 35676:return i.uniformMatrix4fv(t,!1,s)}}function dd(i){let e=i.split(`
`);for(let t=0;t<e.length;t++)e[t]=t+1+": "+e[t];return e.join(`
`)}function kp(i){let e=i.length,t=i[0].length;if(t===void 0)return i;let s=e*t,n=cd[s];n||(cd[s]=n=new Float32Array(s));for(let r=0;r<e;r++)n.set(i[r],r*t);return n}function Lp(i,e){if(i.length!==e.length)return!1;for(let t=0,s=i.length;t<s;t++)if(i[t]!==e[t])return!1;return!0}function $p(i,e){for(let t=0,s=i.length;t<s;t++)i[t]=e[t]}var ca=0;function ud(i){ca>100||(console.warn(i),ca++,ca>100&&console.warn("More than 100 program warnings - stopping logs."))}var da=new z,Op=1,pi=class{constructor({canvas:e=document.createElement("canvas"),width:t=300,height:s=150,dpr:n=1,alpha:r=!1,depth:a=!0,stencil:o=!1,antialias:l=!1,premultipliedAlpha:c=!1,preserveDrawingBuffer:d=!1,powerPreference:u="default",autoClear:h=!0,webgl:f=2}={}){let m={alpha:r,depth:a,stencil:o,antialias:l,premultipliedAlpha:c,preserveDrawingBuffer:d,powerPreference:u};this.dpr=n,this.alpha=r,this.color=!0,this.depth=a,this.stencil=o,this.premultipliedAlpha=c,this.autoClear=h,this.id=Op++,f===2&&(this.gl=e.getContext("webgl2",m)),this.isWebgl2=!!this.gl,this.gl||(this.gl=e.getContext("webgl",m)),this.gl||console.error("unable to create webgl context"),this.gl.renderer=this,this.setSize(t,s),this.state={},this.state.blendFunc={src:this.gl.ONE,dst:this.gl.ZERO},this.state.blendEquation={modeRGB:this.gl.FUNC_ADD},this.state.cullFace=null,this.state.frontFace=this.gl.CCW,this.state.depthMask=!0,this.state.depthFunc=this.gl.LESS,this.state.premultiplyAlpha=!1,this.state.flipY=!1,this.state.unpackAlignment=4,this.state.framebuffer=null,this.state.viewport={x:0,y:0,width:null,height:null},this.state.textureUnits=[],this.state.activeTextureUnit=0,this.state.boundBuffer=null,this.state.uniformLocations=new Map,this.state.currentProgram=null,this.extensions={},this.isWebgl2?(this.getExtension("EXT_color_buffer_float"),this.getExtension("OES_texture_float_linear")):(this.getExtension("OES_texture_float"),this.getExtension("OES_texture_float_linear"),this.getExtension("OES_texture_half_float"),this.getExtension("OES_texture_half_float_linear"),this.getExtension("OES_element_index_uint"),this.getExtension("OES_standard_derivatives"),this.getExtension("EXT_sRGB"),this.getExtension("WEBGL_depth_texture"),this.getExtension("WEBGL_draw_buffers")),this.getExtension("WEBGL_compressed_texture_astc"),this.getExtension("EXT_texture_compression_bptc"),this.getExtension("WEBGL_compressed_texture_s3tc"),this.getExtension("WEBGL_compressed_texture_etc1"),this.getExtension("WEBGL_compressed_texture_pvrtc"),this.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),this.vertexAttribDivisor=this.getExtension("ANGLE_instanced_arrays","vertexAttribDivisor","vertexAttribDivisorANGLE"),this.drawArraysInstanced=this.getExtension("ANGLE_instanced_arrays","drawArraysInstanced","drawArraysInstancedANGLE"),this.drawElementsInstanced=this.getExtension("ANGLE_instanced_arrays","drawElementsInstanced","drawElementsInstancedANGLE"),this.createVertexArray=this.getExtension("OES_vertex_array_object","createVertexArray","createVertexArrayOES"),this.bindVertexArray=this.getExtension("OES_vertex_array_object","bindVertexArray","bindVertexArrayOES"),this.deleteVertexArray=this.getExtension("OES_vertex_array_object","deleteVertexArray","deleteVertexArrayOES"),this.drawBuffers=this.getExtension("WEBGL_draw_buffers","drawBuffers","drawBuffersWEBGL"),this.parameters={},this.parameters.maxTextureUnits=this.gl.getParameter(this.gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS),this.parameters.maxAnisotropy=this.getExtension("EXT_texture_filter_anisotropic")?this.gl.getParameter(this.getExtension("EXT_texture_filter_anisotropic").MAX_TEXTURE_MAX_ANISOTROPY_EXT):0}setSize(e,t){this.width=e,this.height=t,this.gl.canvas.width=e*this.dpr,this.gl.canvas.height=t*this.dpr,Object.assign(this.gl.canvas.style,{width:e+"px",height:t+"px"})}setViewport(e,t,s=0,n=0){this.state.viewport.width===e&&this.state.viewport.height===t||(this.state.viewport.width=e,this.state.viewport.height=t,this.state.viewport.x=s,this.state.viewport.y=n,this.gl.viewport(s,n,e,t))}setScissor(e,t,s=0,n=0){this.gl.scissor(s,n,e,t)}enable(e){this.state[e]!==!0&&(this.gl.enable(e),this.state[e]=!0)}disable(e){this.state[e]!==!1&&(this.gl.disable(e),this.state[e]=!1)}setBlendFunc(e,t,s,n){this.state.blendFunc.src===e&&this.state.blendFunc.dst===t&&this.state.blendFunc.srcAlpha===s&&this.state.blendFunc.dstAlpha===n||(this.state.blendFunc.src=e,this.state.blendFunc.dst=t,this.state.blendFunc.srcAlpha=s,this.state.blendFunc.dstAlpha=n,s!==void 0?this.gl.blendFuncSeparate(e,t,s,n):this.gl.blendFunc(e,t))}setBlendEquation(e,t){e=e||this.gl.FUNC_ADD,!(this.state.blendEquation.modeRGB===e&&this.state.blendEquation.modeAlpha===t)&&(this.state.blendEquation.modeRGB=e,this.state.blendEquation.modeAlpha=t,t!==void 0?this.gl.blendEquationSeparate(e,t):this.gl.blendEquation(e))}setCullFace(e){this.state.cullFace!==e&&(this.state.cullFace=e,this.gl.cullFace(e))}setFrontFace(e){this.state.frontFace!==e&&(this.state.frontFace=e,this.gl.frontFace(e))}setDepthMask(e){this.state.depthMask!==e&&(this.state.depthMask=e,this.gl.depthMask(e))}setDepthFunc(e){this.state.depthFunc!==e&&(this.state.depthFunc=e,this.gl.depthFunc(e))}activeTexture(e){this.state.activeTextureUnit!==e&&(this.state.activeTextureUnit=e,this.gl.activeTexture(this.gl.TEXTURE0+e))}bindFramebuffer({target:e=this.gl.FRAMEBUFFER,buffer:t=null}={}){this.state.framebuffer!==t&&(this.state.framebuffer=t,this.gl.bindFramebuffer(e,t))}getExtension(e,t,s){return t&&this.gl[t]?this.gl[t].bind(this.gl):(this.extensions[e]||(this.extensions[e]=this.gl.getExtension(e)),t?this.extensions[e]?this.extensions[e][s].bind(this.extensions[e]):null:this.extensions[e])}sortOpaque(e,t){return e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.program.id!==t.program.id?e.program.id-t.program.id:e.zDepth!==t.zDepth?e.zDepth-t.zDepth:t.id-e.id}sortTransparent(e,t){return e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.zDepth!==t.zDepth?t.zDepth-e.zDepth:t.id-e.id}sortUI(e,t){return e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.program.id!==t.program.id?e.program.id-t.program.id:t.id-e.id}getRenderList({scene:e,camera:t,frustumCull:s,sort:n}){let r=[];if(t&&s&&t.updateFrustum(),e.traverse(a=>{if(!a.visible)return!0;!a.draw||s&&a.frustumCulled&&t&&!t.frustumIntersectsMesh(a)||r.push(a)}),n){let a=[],o=[],l=[];r.forEach(c=>{c.program.transparent?c.program.depthTest?o.push(c):l.push(c):a.push(c),c.zDepth=0,!(c.renderOrder!==0||!c.program.depthTest||!t)&&(c.worldMatrix.getTranslation(da),da.applyMatrix4(t.projectionViewMatrix),c.zDepth=da.z)}),a.sort(this.sortOpaque),o.sort(this.sortTransparent),l.sort(this.sortUI),r=a.concat(o,l)}return r}render({scene:e,camera:t,target:s=null,update:n=!0,sort:r=!0,frustumCull:a=!0,clear:o}){s===null?(this.bindFramebuffer(),this.setViewport(this.width*this.dpr,this.height*this.dpr)):(this.bindFramebuffer(s),this.setViewport(s.width,s.height)),(o||this.autoClear&&o!==!1)&&(this.depth&&(!s||s.depth)&&(this.enable(this.gl.DEPTH_TEST),this.setDepthMask(!0)),this.gl.clear((this.color?this.gl.COLOR_BUFFER_BIT:0)|(this.depth?this.gl.DEPTH_BUFFER_BIT:0)|(this.stencil?this.gl.STENCIL_BUFFER_BIT:0))),n&&e.updateMatrixWorld(),t&&t.updateMatrixWorld(),this.getRenderList({scene:e,camera:t,frustumCull:a,sort:r}).forEach(c=>{c.draw({camera:t})})}};function hd(i,e){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i}function fd(i,e,t,s,n){return i[0]=e,i[1]=t,i[2]=s,i[3]=n,i}function pd(i,e){let t=e[0],s=e[1],n=e[2],r=e[3],a=t*t+s*s+n*n+r*r;return a>0&&(a=1/Math.sqrt(a)),i[0]=t*a,i[1]=s*a,i[2]=n*a,i[3]=r*a,i}function md(i,e){return i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]*e[3]}function gd(i){return i[0]=0,i[1]=0,i[2]=0,i[3]=1,i}function vd(i,e,t){t=t*.5;let s=Math.sin(t);return i[0]=s*e[0],i[1]=s*e[1],i[2]=s*e[2],i[3]=Math.cos(t),i}function ua(i,e,t){let s=e[0],n=e[1],r=e[2],a=e[3],o=t[0],l=t[1],c=t[2],d=t[3];return i[0]=s*d+a*o+n*c-r*l,i[1]=n*d+a*l+r*o-s*c,i[2]=r*d+a*c+s*l-n*o,i[3]=a*d-s*o-n*l-r*c,i}function yd(i,e,t){t*=.5;let s=e[0],n=e[1],r=e[2],a=e[3],o=Math.sin(t),l=Math.cos(t);return i[0]=s*l+a*o,i[1]=n*l+r*o,i[2]=r*l-n*o,i[3]=a*l-s*o,i}function bd(i,e,t){t*=.5;let s=e[0],n=e[1],r=e[2],a=e[3],o=Math.sin(t),l=Math.cos(t);return i[0]=s*l-r*o,i[1]=n*l+a*o,i[2]=r*l+s*o,i[3]=a*l-n*o,i}function xd(i,e,t){t*=.5;let s=e[0],n=e[1],r=e[2],a=e[3],o=Math.sin(t),l=Math.cos(t);return i[0]=s*l+n*o,i[1]=n*l-s*o,i[2]=r*l+a*o,i[3]=a*l-r*o,i}function _d(i,e,t,s){let n=e[0],r=e[1],a=e[2],o=e[3],l=t[0],c=t[1],d=t[2],u=t[3],h,f,m,p,g;return f=n*l+r*c+a*d+o*u,f<0&&(f=-f,l=-l,c=-c,d=-d,u=-u),1-f>1e-6?(h=Math.acos(f),m=Math.sin(h),p=Math.sin((1-s)*h)/m,g=Math.sin(s*h)/m):(p=1-s,g=s),i[0]=p*n+g*l,i[1]=p*r+g*c,i[2]=p*a+g*d,i[3]=p*o+g*u,i}function Ed(i,e){let t=e[0],s=e[1],n=e[2],r=e[3],a=t*t+s*s+n*n+r*r,o=a?1/a:0;return i[0]=-t*o,i[1]=-s*o,i[2]=-n*o,i[3]=r*o,i}function Sd(i,e){return i[0]=-e[0],i[1]=-e[1],i[2]=-e[2],i[3]=e[3],i}function Td(i,e){let t=e[0]+e[4]+e[8],s;if(t>0)s=Math.sqrt(t+1),i[3]=.5*s,s=.5/s,i[0]=(e[5]-e[7])*s,i[1]=(e[6]-e[2])*s,i[2]=(e[1]-e[3])*s;else{let n=0;e[4]>e[0]&&(n=1),e[8]>e[n*3+n]&&(n=2);let r=(n+1)%3,a=(n+2)%3;s=Math.sqrt(e[n*3+n]-e[r*3+r]-e[a*3+a]+1),i[n]=.5*s,s=.5/s,i[3]=(e[r*3+a]-e[a*3+r])*s,i[r]=(e[r*3+n]+e[n*3+r])*s,i[a]=(e[a*3+n]+e[n*3+a])*s}return i}function wd(i,e,t="YXZ"){let s=Math.sin(e[0]*.5),n=Math.cos(e[0]*.5),r=Math.sin(e[1]*.5),a=Math.cos(e[1]*.5),o=Math.sin(e[2]*.5),l=Math.cos(e[2]*.5);return t==="XYZ"?(i[0]=s*a*l+n*r*o,i[1]=n*r*l-s*a*o,i[2]=n*a*o+s*r*l,i[3]=n*a*l-s*r*o):t==="YXZ"?(i[0]=s*a*l+n*r*o,i[1]=n*r*l-s*a*o,i[2]=n*a*o-s*r*l,i[3]=n*a*l+s*r*o):t==="ZXY"?(i[0]=s*a*l-n*r*o,i[1]=n*r*l+s*a*o,i[2]=n*a*o+s*r*l,i[3]=n*a*l-s*r*o):t==="ZYX"?(i[0]=s*a*l-n*r*o,i[1]=n*r*l+s*a*o,i[2]=n*a*o-s*r*l,i[3]=n*a*l+s*r*o):t==="YZX"?(i[0]=s*a*l+n*r*o,i[1]=n*r*l+s*a*o,i[2]=n*a*o-s*r*l,i[3]=n*a*l-s*r*o):t==="XZY"&&(i[0]=s*a*l-n*r*o,i[1]=n*r*l-s*a*o,i[2]=n*a*o+s*r*l,i[3]=n*a*l+s*r*o),i}var Cd=hd,Md=fd;var Pd=md;var Ad=pd;var ys=class extends Array{constructor(e=0,t=0,s=0,n=1){return super(e,t,s,n),this.onChange=()=>{},this}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}get w(){return this[3]}set x(e){this[0]=e,this.onChange()}set y(e){this[1]=e,this.onChange()}set z(e){this[2]=e,this.onChange()}set w(e){this[3]=e,this.onChange()}identity(){return gd(this),this.onChange(),this}set(e,t,s,n){return e.length?this.copy(e):(Md(this,e,t,s,n),this.onChange(),this)}rotateX(e){return yd(this,this,e),this.onChange(),this}rotateY(e){return bd(this,this,e),this.onChange(),this}rotateZ(e){return xd(this,this,e),this.onChange(),this}inverse(e=this){return Ed(this,e),this.onChange(),this}conjugate(e=this){return Sd(this,e),this.onChange(),this}copy(e){return Cd(this,e),this.onChange(),this}normalize(e=this){return Ad(this,e),this.onChange(),this}multiply(e,t){return t?ua(this,e,t):ua(this,this,e),this.onChange(),this}dot(e){return Pd(this,e)}fromMatrix3(e){return Td(this,e),this.onChange(),this}fromEuler(e){return wd(this,e,e.order),this}fromAxisAngle(e,t){return vd(this,e,t),this}slerp(e,t){return _d(this,this,e,t),this}fromArray(e,t=0){return this[0]=e[t],this[1]=e[t+1],this[2]=e[t+2],this[3]=e[t+3],this}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e[t+3]=this[3],e}};function kd(i,e){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i[9]=e[9],i[10]=e[10],i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i}function Ld(i,e,t,s,n,r,a,o,l,c,d,u,h,f,m,p,g){return i[0]=e,i[1]=t,i[2]=s,i[3]=n,i[4]=r,i[5]=a,i[6]=o,i[7]=l,i[8]=c,i[9]=d,i[10]=u,i[11]=h,i[12]=f,i[13]=m,i[14]=p,i[15]=g,i}function $d(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}function Od(i,e){let t=e[0],s=e[1],n=e[2],r=e[3],a=e[4],o=e[5],l=e[6],c=e[7],d=e[8],u=e[9],h=e[10],f=e[11],m=e[12],p=e[13],g=e[14],v=e[15],E=t*o-s*a,_=t*l-n*a,y=t*c-r*a,b=s*l-n*o,x=s*c-r*o,S=n*c-r*l,T=d*p-u*m,w=d*g-h*m,C=d*v-f*m,M=u*g-h*p,A=u*v-f*p,$=h*v-f*g,k=E*$-_*A+y*M+b*C-x*w+S*T;return k?(k=1/k,i[0]=(o*$-l*A+c*M)*k,i[1]=(n*A-s*$-r*M)*k,i[2]=(p*S-g*x+v*b)*k,i[3]=(h*x-u*S-f*b)*k,i[4]=(l*C-a*$-c*w)*k,i[5]=(t*$-n*C+r*w)*k,i[6]=(g*y-m*S-v*_)*k,i[7]=(d*S-h*y+f*_)*k,i[8]=(a*A-o*C+c*T)*k,i[9]=(s*C-t*A-r*T)*k,i[10]=(m*x-p*y+v*E)*k,i[11]=(u*y-d*x-f*E)*k,i[12]=(o*w-a*M-l*T)*k,i[13]=(t*M-s*w+n*T)*k,i[14]=(p*_-m*b-g*E)*k,i[15]=(d*b-u*_+h*E)*k,i):null}function Dd(i){let e=i[0],t=i[1],s=i[2],n=i[3],r=i[4],a=i[5],o=i[6],l=i[7],c=i[8],d=i[9],u=i[10],h=i[11],f=i[12],m=i[13],p=i[14],g=i[15],v=e*a-t*r,E=e*o-s*r,_=e*l-n*r,y=t*o-s*a,b=t*l-n*a,x=s*l-n*o,S=c*m-d*f,T=c*p-u*f,w=c*g-h*f,C=d*p-u*m,M=d*g-h*m,A=u*g-h*p;return v*A-E*M+_*C+y*w-b*T+x*S}function ha(i,e,t){let s=e[0],n=e[1],r=e[2],a=e[3],o=e[4],l=e[5],c=e[6],d=e[7],u=e[8],h=e[9],f=e[10],m=e[11],p=e[12],g=e[13],v=e[14],E=e[15],_=t[0],y=t[1],b=t[2],x=t[3];return i[0]=_*s+y*o+b*u+x*p,i[1]=_*n+y*l+b*h+x*g,i[2]=_*r+y*c+b*f+x*v,i[3]=_*a+y*d+b*m+x*E,_=t[4],y=t[5],b=t[6],x=t[7],i[4]=_*s+y*o+b*u+x*p,i[5]=_*n+y*l+b*h+x*g,i[6]=_*r+y*c+b*f+x*v,i[7]=_*a+y*d+b*m+x*E,_=t[8],y=t[9],b=t[10],x=t[11],i[8]=_*s+y*o+b*u+x*p,i[9]=_*n+y*l+b*h+x*g,i[10]=_*r+y*c+b*f+x*v,i[11]=_*a+y*d+b*m+x*E,_=t[12],y=t[13],b=t[14],x=t[15],i[12]=_*s+y*o+b*u+x*p,i[13]=_*n+y*l+b*h+x*g,i[14]=_*r+y*c+b*f+x*v,i[15]=_*a+y*d+b*m+x*E,i}function Id(i,e,t){let s=t[0],n=t[1],r=t[2],a,o,l,c,d,u,h,f,m,p,g,v;return e===i?(i[12]=e[0]*s+e[4]*n+e[8]*r+e[12],i[13]=e[1]*s+e[5]*n+e[9]*r+e[13],i[14]=e[2]*s+e[6]*n+e[10]*r+e[14],i[15]=e[3]*s+e[7]*n+e[11]*r+e[15]):(a=e[0],o=e[1],l=e[2],c=e[3],d=e[4],u=e[5],h=e[6],f=e[7],m=e[8],p=e[9],g=e[10],v=e[11],i[0]=a,i[1]=o,i[2]=l,i[3]=c,i[4]=d,i[5]=u,i[6]=h,i[7]=f,i[8]=m,i[9]=p,i[10]=g,i[11]=v,i[12]=a*s+d*n+m*r+e[12],i[13]=o*s+u*n+p*r+e[13],i[14]=l*s+h*n+g*r+e[14],i[15]=c*s+f*n+v*r+e[15]),i}function zd(i,e,t){let s=t[0],n=t[1],r=t[2];return i[0]=e[0]*s,i[1]=e[1]*s,i[2]=e[2]*s,i[3]=e[3]*s,i[4]=e[4]*n,i[5]=e[5]*n,i[6]=e[6]*n,i[7]=e[7]*n,i[8]=e[8]*r,i[9]=e[9]*r,i[10]=e[10]*r,i[11]=e[11]*r,i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i}function Fd(i,e,t,s){let n=s[0],r=s[1],a=s[2],o=Math.hypot(n,r,a),l,c,d,u,h,f,m,p,g,v,E,_,y,b,x,S,T,w,C,M,A,$,k,B;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,r*=o,a*=o,l=Math.sin(t),c=Math.cos(t),d=1-c,u=e[0],h=e[1],f=e[2],m=e[3],p=e[4],g=e[5],v=e[6],E=e[7],_=e[8],y=e[9],b=e[10],x=e[11],S=n*n*d+c,T=r*n*d+a*l,w=a*n*d-r*l,C=n*r*d-a*l,M=r*r*d+c,A=a*r*d+n*l,$=n*a*d+r*l,k=r*a*d-n*l,B=a*a*d+c,i[0]=u*S+p*T+_*w,i[1]=h*S+g*T+y*w,i[2]=f*S+v*T+b*w,i[3]=m*S+E*T+x*w,i[4]=u*C+p*M+_*A,i[5]=h*C+g*M+y*A,i[6]=f*C+v*M+b*A,i[7]=m*C+E*M+x*A,i[8]=u*$+p*k+_*B,i[9]=h*$+g*k+y*B,i[10]=f*$+v*k+b*B,i[11]=m*$+E*k+x*B,e!==i&&(i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15]),i)}function Rd(i,e){return i[0]=e[12],i[1]=e[13],i[2]=e[14],i}function fa(i,e){let t=e[0],s=e[1],n=e[2],r=e[4],a=e[5],o=e[6],l=e[8],c=e[9],d=e[10];return i[0]=Math.hypot(t,s,n),i[1]=Math.hypot(r,a,o),i[2]=Math.hypot(l,c,d),i}function Bd(i){let e=i[0],t=i[1],s=i[2],n=i[4],r=i[5],a=i[6],o=i[8],l=i[9],c=i[10],d=e*e+t*t+s*s,u=n*n+r*r+a*a,h=o*o+l*l+c*c;return Math.sqrt(Math.max(d,u,h))}var Nd=function(){let i=[0,0,0];return function(e,t){let s=i;fa(s,t);let n=1/s[0],r=1/s[1],a=1/s[2],o=t[0]*n,l=t[1]*r,c=t[2]*a,d=t[4]*n,u=t[5]*r,h=t[6]*a,f=t[8]*n,m=t[9]*r,p=t[10]*a,g=o+u+p,v=0;return g>0?(v=Math.sqrt(g+1)*2,e[3]=.25*v,e[0]=(h-m)/v,e[1]=(f-c)/v,e[2]=(l-d)/v):o>u&&o>p?(v=Math.sqrt(1+o-u-p)*2,e[3]=(h-m)/v,e[0]=.25*v,e[1]=(l+d)/v,e[2]=(f+c)/v):u>p?(v=Math.sqrt(1+u-o-p)*2,e[3]=(f-c)/v,e[0]=(l+d)/v,e[1]=.25*v,e[2]=(h+m)/v):(v=Math.sqrt(1+p-o-u)*2,e[3]=(l-d)/v,e[0]=(f+c)/v,e[1]=(h+m)/v,e[2]=.25*v),e}}();function Vd(i,e,t,s){let n=e[0],r=e[1],a=e[2],o=e[3],l=n+n,c=r+r,d=a+a,u=n*l,h=n*c,f=n*d,m=r*c,p=r*d,g=a*d,v=o*l,E=o*c,_=o*d,y=s[0],b=s[1],x=s[2];return i[0]=(1-(m+g))*y,i[1]=(h+_)*y,i[2]=(f-E)*y,i[3]=0,i[4]=(h-_)*b,i[5]=(1-(u+g))*b,i[6]=(p+v)*b,i[7]=0,i[8]=(f+E)*x,i[9]=(p-v)*x,i[10]=(1-(u+m))*x,i[11]=0,i[12]=t[0],i[13]=t[1],i[14]=t[2],i[15]=1,i}function Yd(i,e){let t=e[0],s=e[1],n=e[2],r=e[3],a=t+t,o=s+s,l=n+n,c=t*a,d=s*a,u=s*o,h=n*a,f=n*o,m=n*l,p=r*a,g=r*o,v=r*l;return i[0]=1-u-m,i[1]=d+v,i[2]=h-g,i[3]=0,i[4]=d-v,i[5]=1-c-m,i[6]=f+p,i[7]=0,i[8]=h+g,i[9]=f-p,i[10]=1-c-u,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}function Xd(i,e,t,s,n){let r=1/Math.tan(e/2),a=1/(s-n);return i[0]=r/t,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=r,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=(n+s)*a,i[11]=-1,i[12]=0,i[13]=0,i[14]=2*n*s*a,i[15]=0,i}function Hd(i,e,t,s,n,r,a){let o=1/(e-t),l=1/(s-n),c=1/(r-a);return i[0]=-2*o,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=-2*l,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=2*c,i[11]=0,i[12]=(e+t)*o,i[13]=(n+s)*l,i[14]=(a+r)*c,i[15]=1,i}function Wd(i,e,t,s){let n=e[0],r=e[1],a=e[2],o=s[0],l=s[1],c=s[2],d=n-t[0],u=r-t[1],h=a-t[2],f=d*d+u*u+h*h;f===0?h=1:(f=1/Math.sqrt(f),d*=f,u*=f,h*=f);let m=l*h-c*u,p=c*d-o*h,g=o*u-l*d;return f=m*m+p*p+g*g,f===0&&(c?o+=1e-6:l?c+=1e-6:l+=1e-6,m=l*h-c*u,p=c*d-o*h,g=o*u-l*d,f=m*m+p*p+g*g),f=1/Math.sqrt(f),m*=f,p*=f,g*=f,i[0]=m,i[1]=p,i[2]=g,i[3]=0,i[4]=u*g-h*p,i[5]=h*m-d*g,i[6]=d*p-u*m,i[7]=0,i[8]=d,i[9]=u,i[10]=h,i[11]=0,i[12]=n,i[13]=r,i[14]=a,i[15]=1,i}var ve=class extends Array{constructor(e=1,t=0,s=0,n=0,r=0,a=1,o=0,l=0,c=0,d=0,u=1,h=0,f=0,m=0,p=0,g=1){return super(e,t,s,n,r,a,o,l,c,d,u,h,f,m,p,g),this}get x(){return this[12]}get y(){return this[13]}get z(){return this[14]}get w(){return this[15]}set x(e){this[12]=e}set y(e){this[13]=e}set z(e){this[14]=e}set w(e){this[15]=e}set(e,t,s,n,r,a,o,l,c,d,u,h,f,m,p,g){return e.length?this.copy(e):(Ld(this,e,t,s,n,r,a,o,l,c,d,u,h,f,m,p,g),this)}translate(e,t=this){return Id(this,t,e),this}rotate(e,t,s=this){return Fd(this,s,e,t),this}scale(e,t=this){return zd(this,t,typeof e=="number"?[e,e,e]:e),this}multiply(e,t){return t?ha(this,e,t):ha(this,this,e),this}identity(){return $d(this),this}copy(e){return kd(this,e),this}fromPerspective({fov:e,aspect:t,near:s,far:n}={}){return Xd(this,e,t,s,n),this}fromOrthogonal({left:e,right:t,bottom:s,top:n,near:r,far:a}){return Hd(this,e,t,s,n,r,a),this}fromQuaternion(e){return Yd(this,e),this}setPosition(e){return this.x=e[0],this.y=e[1],this.z=e[2],this}inverse(e=this){return Od(this,e),this}compose(e,t,s){return Vd(this,e,t,s),this}getRotation(e){return Nd(e,this),this}getTranslation(e){return Rd(e,this),this}getScaling(e){return fa(e,this),this}getMaxScaleOnAxis(){return Bd(this)}lookAt(e,t,s){return Wd(this,e,t,s),this}determinant(){return Dd(this)}fromArray(e,t=0){return this[0]=e[t],this[1]=e[t+1],this[2]=e[t+2],this[3]=e[t+3],this[4]=e[t+4],this[5]=e[t+5],this[6]=e[t+6],this[7]=e[t+7],this[8]=e[t+8],this[9]=e[t+9],this[10]=e[t+10],this[11]=e[t+11],this[12]=e[t+12],this[13]=e[t+13],this[14]=e[t+14],this[15]=e[t+15],this}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e[t+3]=this[3],e[t+4]=this[4],e[t+5]=this[5],e[t+6]=this[6],e[t+7]=this[7],e[t+8]=this[8],e[t+9]=this[9],e[t+10]=this[10],e[t+11]=this[11],e[t+12]=this[12],e[t+13]=this[13],e[t+14]=this[14],e[t+15]=this[15],e}};function Gd(i,e,t="YXZ"){return t==="XYZ"?(i[1]=Math.asin(Math.min(Math.max(e[8],-1),1)),Math.abs(e[8])<.99999?(i[0]=Math.atan2(-e[9],e[10]),i[2]=Math.atan2(-e[4],e[0])):(i[0]=Math.atan2(e[6],e[5]),i[2]=0)):t==="YXZ"?(i[0]=Math.asin(-Math.min(Math.max(e[9],-1),1)),Math.abs(e[9])<.99999?(i[1]=Math.atan2(e[8],e[10]),i[2]=Math.atan2(e[1],e[5])):(i[1]=Math.atan2(-e[2],e[0]),i[2]=0)):t==="ZXY"?(i[0]=Math.asin(Math.min(Math.max(e[6],-1),1)),Math.abs(e[6])<.99999?(i[1]=Math.atan2(-e[2],e[10]),i[2]=Math.atan2(-e[4],e[5])):(i[1]=0,i[2]=Math.atan2(e[1],e[0]))):t==="ZYX"?(i[1]=Math.asin(-Math.min(Math.max(e[2],-1),1)),Math.abs(e[2])<.99999?(i[0]=Math.atan2(e[6],e[10]),i[2]=Math.atan2(e[1],e[0])):(i[0]=0,i[2]=Math.atan2(-e[4],e[5]))):t==="YZX"?(i[2]=Math.asin(Math.min(Math.max(e[1],-1),1)),Math.abs(e[1])<.99999?(i[0]=Math.atan2(-e[9],e[5]),i[1]=Math.atan2(-e[2],e[0])):(i[0]=0,i[1]=Math.atan2(e[8],e[10]))):t==="XZY"&&(i[2]=Math.asin(-Math.min(Math.max(e[4],-1),1)),Math.abs(e[4])<.99999?(i[0]=Math.atan2(e[6],e[5]),i[1]=Math.atan2(e[8],e[0])):(i[0]=Math.atan2(-e[9],e[10]),i[1]=0)),i}var jd=new ve,bs=class extends Array{constructor(e=0,t=e,s=e,n="YXZ"){return super(e,t,s),this.order=n,this.onChange=()=>{},this}get x(){return this[0]}get y(){return this[1]}get z(){return this[2]}set x(e){this[0]=e,this.onChange()}set y(e){this[1]=e,this.onChange()}set z(e){this[2]=e,this.onChange()}set(e,t=e,s=e){return e.length?this.copy(e):(this[0]=e,this[1]=t,this[2]=s,this.onChange(),this)}copy(e){return this[0]=e[0],this[1]=e[1],this[2]=e[2],this.onChange(),this}reorder(e){return this.order=e,this.onChange(),this}fromRotationMatrix(e,t=this.order){return Gd(this,e,t),this}fromQuaternion(e,t=this.order){return jd.fromQuaternion(e),this.fromRotationMatrix(jd,t)}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e[t+2]=this[2],e}};var ke=class{constructor(){this.parent=null,this.children=[],this.visible=!0,this.matrix=new ve,this.worldMatrix=new ve,this.matrixAutoUpdate=!0,this.position=new z,this.quaternion=new ys,this.scale=new z(1),this.rotation=new bs,this.up=new z(0,1,0),this.rotation.onChange=()=>this.quaternion.fromEuler(this.rotation),this.quaternion.onChange=()=>this.rotation.fromQuaternion(this.quaternion)}setParent(e,t=!0){this.parent&&e!==this.parent&&this.parent.removeChild(this,!1),this.parent=e,t&&e&&e.addChild(this,!1)}addChild(e,t=!0){~this.children.indexOf(e)||this.children.push(e),t&&e.setParent(this,!1)}removeChild(e,t=!0){~this.children.indexOf(e)&&this.children.splice(this.children.indexOf(e),1),t&&e.setParent(null,!1)}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.worldMatrixNeedsUpdate||e)&&(this.parent===null?this.worldMatrix.copy(this.matrix):this.worldMatrix.multiply(this.parent.worldMatrix,this.matrix),this.worldMatrixNeedsUpdate=!1,e=!0);for(let t=0,s=this.children.length;t<s;t++)this.children[t].updateMatrixWorld(e)}updateMatrix(){this.matrix.compose(this.quaternion,this.position,this.scale),this.worldMatrixNeedsUpdate=!0}traverse(e){if(!e(this))for(let t=0,s=this.children.length;t<s;t++)this.children[t].traverse(e)}decompose(){this.matrix.getTranslation(this.position),this.matrix.getRotation(this.quaternion),this.matrix.getScaling(this.scale),this.rotation.fromQuaternion(this.quaternion)}lookAt(e,t=!1){t?this.matrix.lookAt(this.position,e,this.up):this.matrix.lookAt(e,this.position,this.up),this.matrix.getRotation(this.quaternion),this.rotation.fromQuaternion(this.quaternion)}};var Rp=new ve,Bp=new z,Np=new z,mi=class extends ke{constructor(e,{near:t=.1,far:s=100,fov:n=45,aspect:r=1,left:a,right:o,bottom:l,top:c,zoom:d=1}={}){super(),Object.assign(this,{near:t,far:s,fov:n,aspect:r,left:a,right:o,bottom:l,top:c,zoom:d}),this.projectionMatrix=new ve,this.viewMatrix=new ve,this.projectionViewMatrix=new ve,this.worldPosition=new z,this.type=a||o?"orthographic":"perspective",this.type==="orthographic"?this.orthographic():this.perspective()}perspective({near:e=this.near,far:t=this.far,fov:s=this.fov,aspect:n=this.aspect}={}){return Object.assign(this,{near:e,far:t,fov:s,aspect:n}),this.projectionMatrix.fromPerspective({fov:s*(Math.PI/180),aspect:n,near:e,far:t}),this.type="perspective",this}orthographic({near:e=this.near,far:t=this.far,left:s=this.left,right:n=this.right,bottom:r=this.bottom,top:a=this.top,zoom:o=this.zoom}={}){return Object.assign(this,{near:e,far:t,left:s,right:n,bottom:r,top:a,zoom:o}),s/=o,n/=o,r/=o,a/=o,this.projectionMatrix.fromOrthogonal({left:s,right:n,bottom:r,top:a,near:e,far:t}),this.type="orthographic",this}updateMatrixWorld(){return super.updateMatrixWorld(),this.viewMatrix.inverse(this.worldMatrix),this.worldMatrix.getTranslation(this.worldPosition),this.projectionViewMatrix.multiply(this.projectionMatrix,this.viewMatrix),this}lookAt(e){return super.lookAt(e,!0),this}project(e){return e.applyMatrix4(this.viewMatrix),e.applyMatrix4(this.projectionMatrix),this}unproject(e){return e.applyMatrix4(Rp.inverse(this.projectionMatrix)),e.applyMatrix4(this.worldMatrix),this}updateFrustum(){this.frustum||(this.frustum=[new z,new z,new z,new z,new z,new z]);let e=this.projectionViewMatrix;this.frustum[0].set(e[3]-e[0],e[7]-e[4],e[11]-e[8]).constant=e[15]-e[12],this.frustum[1].set(e[3]+e[0],e[7]+e[4],e[11]+e[8]).constant=e[15]+e[12],this.frustum[2].set(e[3]+e[1],e[7]+e[5],e[11]+e[9]).constant=e[15]+e[13],this.frustum[3].set(e[3]-e[1],e[7]-e[5],e[11]-e[9]).constant=e[15]-e[13],this.frustum[4].set(e[3]-e[2],e[7]-e[6],e[11]-e[10]).constant=e[15]-e[14],this.frustum[5].set(e[3]+e[2],e[7]+e[6],e[11]+e[10]).constant=e[15]+e[14];for(let t=0;t<6;t++){let s=1/this.frustum[t].distance();this.frustum[t].multiply(s),this.frustum[t].constant*=s}}frustumIntersectsMesh(e){if(!e.geometry.attributes.position||((!e.geometry.bounds||e.geometry.bounds.radius===1/0)&&e.geometry.computeBoundingSphere(),!e.geometry.bounds))return!0;let t=Bp;t.copy(e.geometry.bounds.center),t.applyMatrix4(e.worldMatrix);let s=e.geometry.bounds.radius*e.worldMatrix.getMaxScaleOnAxis();return this.frustumIntersectsSphere(t,s)}frustumIntersectsSphere(e,t){let s=Np;for(let n=0;n<6;n++){let r=this.frustum[n];if(s.copy(r).dot(e)+r.constant<-t)return!1}return!0}};function qd(i,e){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[4],i[4]=e[5],i[5]=e[6],i[6]=e[8],i[7]=e[9],i[8]=e[10],i}function Ud(i,e){let t=e[0],s=e[1],n=e[2],r=e[3],a=t+t,o=s+s,l=n+n,c=t*a,d=s*a,u=s*o,h=n*a,f=n*o,m=n*l,p=r*a,g=r*o,v=r*l;return i[0]=1-u-m,i[3]=d-v,i[6]=h+g,i[1]=d+v,i[4]=1-c-m,i[7]=f-p,i[2]=h-g,i[5]=f+p,i[8]=1-c-u,i}function Kd(i,e){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i}function Qd(i,e,t,s,n,r,a,o,l,c){return i[0]=e,i[1]=t,i[2]=s,i[3]=n,i[4]=r,i[5]=a,i[6]=o,i[7]=l,i[8]=c,i}function Zd(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=1,i[5]=0,i[6]=0,i[7]=0,i[8]=1,i}function Jd(i,e){let t=e[0],s=e[1],n=e[2],r=e[3],a=e[4],o=e[5],l=e[6],c=e[7],d=e[8],u=d*a-o*c,h=-d*r+o*l,f=c*r-a*l,m=t*u+s*h+n*f;return m?(m=1/m,i[0]=u*m,i[1]=(-d*s+n*c)*m,i[2]=(o*s-n*a)*m,i[3]=h*m,i[4]=(d*t-n*l)*m,i[5]=(-o*t+n*r)*m,i[6]=f*m,i[7]=(-c*t+s*l)*m,i[8]=(a*t-s*r)*m,i):null}function pa(i,e,t){let s=e[0],n=e[1],r=e[2],a=e[3],o=e[4],l=e[5],c=e[6],d=e[7],u=e[8],h=t[0],f=t[1],m=t[2],p=t[3],g=t[4],v=t[5],E=t[6],_=t[7],y=t[8];return i[0]=h*s+f*a+m*c,i[1]=h*n+f*o+m*d,i[2]=h*r+f*l+m*u,i[3]=p*s+g*a+v*c,i[4]=p*n+g*o+v*d,i[5]=p*r+g*l+v*u,i[6]=E*s+_*a+y*c,i[7]=E*n+_*o+y*d,i[8]=E*r+_*l+y*u,i}function eu(i,e,t){let s=e[0],n=e[1],r=e[2],a=e[3],o=e[4],l=e[5],c=e[6],d=e[7],u=e[8],h=t[0],f=t[1];return i[0]=s,i[1]=n,i[2]=r,i[3]=a,i[4]=o,i[5]=l,i[6]=h*s+f*a+c,i[7]=h*n+f*o+d,i[8]=h*r+f*l+u,i}function tu(i,e,t){let s=e[0],n=e[1],r=e[2],a=e[3],o=e[4],l=e[5],c=e[6],d=e[7],u=e[8],h=Math.sin(t),f=Math.cos(t);return i[0]=f*s+h*a,i[1]=f*n+h*o,i[2]=f*r+h*l,i[3]=f*a-h*s,i[4]=f*o-h*n,i[5]=f*l-h*r,i[6]=c,i[7]=d,i[8]=u,i}function iu(i,e,t){let s=t[0],n=t[1];return i[0]=s*e[0],i[1]=s*e[1],i[2]=s*e[2],i[3]=n*e[3],i[4]=n*e[4],i[5]=n*e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i}function su(i,e){let t=e[0],s=e[1],n=e[2],r=e[3],a=e[4],o=e[5],l=e[6],c=e[7],d=e[8],u=e[9],h=e[10],f=e[11],m=e[12],p=e[13],g=e[14],v=e[15],E=t*o-s*a,_=t*l-n*a,y=t*c-r*a,b=s*l-n*o,x=s*c-r*o,S=n*c-r*l,T=d*p-u*m,w=d*g-h*m,C=d*v-f*m,M=u*g-h*p,A=u*v-f*p,$=h*v-f*g,k=E*$-_*A+y*M+b*C-x*w+S*T;return k?(k=1/k,i[0]=(o*$-l*A+c*M)*k,i[1]=(l*C-a*$-c*w)*k,i[2]=(a*A-o*C+c*T)*k,i[3]=(n*A-s*$-r*M)*k,i[4]=(t*$-n*C+r*w)*k,i[5]=(s*C-t*A-r*T)*k,i[6]=(p*S-g*x+v*b)*k,i[7]=(g*y-m*S-v*_)*k,i[8]=(m*x-p*y+v*E)*k,i):null}var xs=class extends Array{constructor(e=1,t=0,s=0,n=0,r=1,a=0,o=0,l=0,c=1){return super(e,t,s,n,r,a,o,l,c),this}set(e,t,s,n,r,a,o,l,c){return e.length?this.copy(e):(Qd(this,e,t,s,n,r,a,o,l,c),this)}translate(e,t=this){return eu(this,t,e),this}rotate(e,t=this){return tu(this,t,e),this}scale(e,t=this){return iu(this,t,e),this}multiply(e,t){return t?pa(this,e,t):pa(this,this,e),this}identity(){return Zd(this),this}copy(e){return Kd(this,e),this}fromMatrix4(e){return qd(this,e),this}fromQuaternion(e){return Ud(this,e),this}fromBasis(e,t,s){return this.set(e[0],e[1],e[2],t[0],t[1],t[2],s[0],s[1],s[2]),this}inverse(e=this){return Jd(this,e),this}getNormalMatrix(e){return su(this,e),this}};var Yp=0,gi=class extends ke{constructor(e,{geometry:t,program:s,mode:n=e.TRIANGLES,frustumCulled:r=!0,renderOrder:a=0}={}){super(),e.canvas||console.error("gl not passed as first argument to Mesh"),this.gl=e,this.id=Yp++,this.geometry=t,this.program=s,this.mode=n,this.frustumCulled=r,this.renderOrder=a,this.modelViewMatrix=new ve,this.normalMatrix=new xs,this.beforeRenderCallbacks=[],this.afterRenderCallbacks=[]}onBeforeRender(e){return this.beforeRenderCallbacks.push(e),this}onAfterRender(e){return this.afterRenderCallbacks.push(e),this}draw({camera:e}={}){this.beforeRenderCallbacks.forEach(s=>s&&s({mesh:this,camera:e})),e&&(this.program.uniforms.modelMatrix||Object.assign(this.program.uniforms,{modelMatrix:{value:null},viewMatrix:{value:null},modelViewMatrix:{value:null},normalMatrix:{value:null},projectionMatrix:{value:null},cameraPosition:{value:null}}),this.program.uniforms.projectionMatrix.value=e.projectionMatrix,this.program.uniforms.cameraPosition.value=e.worldPosition,this.program.uniforms.viewMatrix.value=e.viewMatrix,this.modelViewMatrix.multiply(e.viewMatrix,this.worldMatrix),this.normalMatrix.getNormalMatrix(this.modelViewMatrix),this.program.uniforms.modelMatrix.value=this.worldMatrix,this.program.uniforms.modelViewMatrix.value=this.modelViewMatrix,this.program.uniforms.normalMatrix.value=this.normalMatrix);let t=this.program.cullFace&&this.worldMatrix.determinant()<0;this.program.use({flipFaces:t}),this.geometry.draw({mode:this.mode,program:this.program}),this.afterRenderCallbacks.forEach(s=>s&&s({mesh:this,camera:e}))}};var nu=new Uint8Array(4);function ru(i){return(i&i-1)===0}var Xp=1,vi=class{constructor(e,{image:t,target:s=e.TEXTURE_2D,type:n=e.UNSIGNED_BYTE,format:r=e.RGBA,internalFormat:a=r,wrapS:o=e.CLAMP_TO_EDGE,wrapT:l=e.CLAMP_TO_EDGE,generateMipmaps:c=!0,minFilter:d=c?e.NEAREST_MIPMAP_LINEAR:e.LINEAR,magFilter:u=e.LINEAR,premultiplyAlpha:h=!1,unpackAlignment:f=4,flipY:m=s==e.TEXTURE_2D,anisotropy:p=0,level:g=0,width:v,height:E=v}={}){this.gl=e,this.id=Xp++,this.image=t,this.target=s,this.type=n,this.format=r,this.internalFormat=a,this.minFilter=d,this.magFilter=u,this.wrapS=o,this.wrapT=l,this.generateMipmaps=c,this.premultiplyAlpha=h,this.unpackAlignment=f,this.flipY=m,this.anisotropy=Math.min(p,this.gl.renderer.parameters.maxAnisotropy),this.level=g,this.width=v,this.height=E,this.texture=this.gl.createTexture(),this.store={image:null},this.glState=this.gl.renderer.state,this.state={},this.state.minFilter=this.gl.NEAREST_MIPMAP_LINEAR,this.state.magFilter=this.gl.LINEAR,this.state.wrapS=this.gl.REPEAT,this.state.wrapT=this.gl.REPEAT,this.state.anisotropy=0}bind(){this.glState.textureUnits[this.glState.activeTextureUnit]!==this.id&&(this.gl.bindTexture(this.target,this.texture),this.glState.textureUnits[this.glState.activeTextureUnit]=this.id)}update(e=0){let t=!(this.image===this.store.image&&!this.needsUpdate);if((t||this.glState.textureUnits[e]!==this.id)&&(this.gl.renderer.activeTexture(e),this.bind()),!!t){if(this.needsUpdate=!1,this.flipY!==this.glState.flipY&&(this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,this.flipY),this.glState.flipY=this.flipY),this.premultiplyAlpha!==this.glState.premultiplyAlpha&&(this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),this.glState.premultiplyAlpha=this.premultiplyAlpha),this.unpackAlignment!==this.glState.unpackAlignment&&(this.gl.pixelStorei(this.gl.UNPACK_ALIGNMENT,this.unpackAlignment),this.glState.unpackAlignment=this.unpackAlignment),this.minFilter!==this.state.minFilter&&(this.gl.texParameteri(this.target,this.gl.TEXTURE_MIN_FILTER,this.minFilter),this.state.minFilter=this.minFilter),this.magFilter!==this.state.magFilter&&(this.gl.texParameteri(this.target,this.gl.TEXTURE_MAG_FILTER,this.magFilter),this.state.magFilter=this.magFilter),this.wrapS!==this.state.wrapS&&(this.gl.texParameteri(this.target,this.gl.TEXTURE_WRAP_S,this.wrapS),this.state.wrapS=this.wrapS),this.wrapT!==this.state.wrapT&&(this.gl.texParameteri(this.target,this.gl.TEXTURE_WRAP_T,this.wrapT),this.state.wrapT=this.wrapT),this.anisotropy&&this.anisotropy!==this.state.anisotropy&&(this.gl.texParameterf(this.target,this.gl.renderer.getExtension("EXT_texture_filter_anisotropic").TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropy),this.state.anisotropy=this.anisotropy),this.image){if(this.image.width&&(this.width=this.image.width,this.height=this.image.height),this.target===this.gl.TEXTURE_CUBE_MAP)for(let s=0;s<6;s++)this.gl.texImage2D(this.gl.TEXTURE_CUBE_MAP_POSITIVE_X+s,this.level,this.internalFormat,this.format,this.type,this.image[s]);else if(ArrayBuffer.isView(this.image))this.gl.texImage2D(this.target,this.level,this.internalFormat,this.width,this.height,0,this.format,this.type,this.image);else if(this.image.isCompressedTexture)for(let s=0;s<this.image.length;s++)this.gl.compressedTexImage2D(this.target,s,this.internalFormat,this.image[s].width,this.image[s].height,0,this.image[s].data);else this.gl.texImage2D(this.target,this.level,this.internalFormat,this.format,this.type,this.image);this.generateMipmaps&&(!this.gl.renderer.isWebgl2&&(!ru(this.image.width)||!ru(this.image.height))?(this.generateMipmaps=!1,this.wrapS=this.wrapT=this.gl.CLAMP_TO_EDGE,this.minFilter=this.gl.LINEAR):this.gl.generateMipmap(this.target)),this.onUpdate&&this.onUpdate()}else if(this.target===this.gl.TEXTURE_CUBE_MAP)for(let s=0;s<6;s++)this.gl.texImage2D(this.gl.TEXTURE_CUBE_MAP_POSITIVE_X+s,0,this.gl.RGBA,1,1,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,nu);else this.width?this.gl.texImage2D(this.target,this.level,this.internalFormat,this.width,this.height,0,this.format,this.type,null):this.gl.texImage2D(this.target,0,this.gl.RGBA,1,1,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,nu);this.store.image=this.image}}};function au(i,e){return i[0]=e[0],i[1]=e[1],i}function ou(i,e,t){return i[0]=e,i[1]=t,i}function ma(i,e,t){return i[0]=e[0]+t[0],i[1]=e[1]+t[1],i}function ga(i,e,t){return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i}function lu(i,e,t){return i[0]=e[0]*t[0],i[1]=e[1]*t[1],i}function cu(i,e,t){return i[0]=e[0]/t[0],i[1]=e[1]/t[1],i}function _s(i,e,t){return i[0]=e[0]*t,i[1]=e[1]*t,i}function du(i,e){var t=e[0]-i[0],s=e[1]-i[1];return Math.sqrt(t*t+s*s)}function uu(i,e){var t=e[0]-i[0],s=e[1]-i[1];return t*t+s*s}function va(i){var e=i[0],t=i[1];return Math.sqrt(e*e+t*t)}function hu(i){var e=i[0],t=i[1];return e*e+t*t}function fu(i,e){return i[0]=-e[0],i[1]=-e[1],i}function pu(i,e){return i[0]=1/e[0],i[1]=1/e[1],i}function mu(i,e){var t=e[0],s=e[1],n=t*t+s*s;return n>0&&(n=1/Math.sqrt(n)),i[0]=e[0]*n,i[1]=e[1]*n,i}function gu(i,e){return i[0]*e[0]+i[1]*e[1]}function ya(i,e){return i[0]*e[1]-i[1]*e[0]}function vu(i,e,t,s){var n=e[0],r=e[1];return i[0]=n+s*(t[0]-n),i[1]=r+s*(t[1]-r),i}function yu(i,e,t){var s=e[0],n=e[1];return i[0]=t[0]*s+t[3]*n+t[6],i[1]=t[1]*s+t[4]*n+t[7],i}function bu(i,e,t){let s=e[0],n=e[1];return i[0]=t[0]*s+t[4]*n+t[12],i[1]=t[1]*s+t[5]*n+t[13],i}function xu(i,e){return i[0]===e[0]&&i[1]===e[1]}var Re=class extends Array{constructor(e=0,t=e){return super(e,t),this}get x(){return this[0]}get y(){return this[1]}set x(e){this[0]=e}set y(e){this[1]=e}set(e,t=e){return e.length?this.copy(e):(ou(this,e,t),this)}copy(e){return au(this,e),this}add(e,t){return t?ma(this,e,t):ma(this,this,e),this}sub(e,t){return t?ga(this,e,t):ga(this,this,e),this}multiply(e){return e.length?lu(this,this,e):_s(this,this,e),this}divide(e){return e.length?cu(this,this,e):_s(this,this,1/e),this}inverse(e=this){return pu(this,e),this}len(){return va(this)}distance(e){return e?du(this,e):va(this)}squaredLen(){return this.squaredDistance()}squaredDistance(e){return e?uu(this,e):hu(this)}negate(e=this){return fu(this,e),this}cross(e,t){return t?ya(e,t):ya(this,e)}scale(e){return _s(this,this,e),this}normalize(){return mu(this,this),this}dot(e){return gu(this,e)}equals(e){return xu(this,e)}applyMatrix3(e){return yu(this,this,e),this}applyMatrix4(e){return bu(this,this,e),this}lerp(e,t){return vu(this,this,e,t),this}clone(){return new Re(this[0],this[1])}fromArray(e,t=0){return this[0]=e[t],this[1]=e[t+1],this}toArray(e=[],t=0){return e[t]=this[0],e[t+1]=this[1],e}};var Pt=class extends vs{constructor(e,{width:t=1,height:s=1,widthSegments:n=1,heightSegments:r=1,attributes:a={}}={}){let o=n,l=r,c=(o+1)*(l+1),d=o*l*6,u=new Float32Array(c*3),h=new Float32Array(c*3),f=new Float32Array(c*2),m=d>65536?new Uint32Array(d):new Uint16Array(d);Pt.buildPlane(u,h,f,m,t,s,0,o,l),Object.assign(a,{position:{size:3,data:u},normal:{size:3,data:h},uv:{size:2,data:f},index:{data:m}}),super(e,a)}static buildPlane(e,t,s,n,r,a,o,l,c,d=0,u=1,h=2,f=1,m=-1,p=0,g=0){let v=p,E=r/l,_=a/c;for(let y=0;y<=c;y++){let b=y*_-a/2;for(let x=0;x<=l;x++,p++){let S=x*E-r/2;if(e[p*3+d]=S*f,e[p*3+u]=b*m,e[p*3+h]=o/2,t[p*3+d]=0,t[p*3+u]=0,t[p*3+h]=o>=0?1:-1,s[p*2]=x/l,s[p*2+1]=1-y/c,y===c||x===l)continue;let T=v+x+y*(l+1),w=v+x+(y+1)*(l+1),C=v+x+(y+1)*(l+1)+1,M=v+x+y*(l+1)+1;n[g*6]=T,n[g*6+1]=w,n[g*6+2]=M,n[g*6+3]=w,n[g*6+4]=C,n[g*6+5]=M,g++}}}};var Wp=new Re,Gp=new Re,jp=new Re,_u=new z,Eu=new z,Su=new z,qp=new z,Up=new z,Kp=new z,Tu=new z,ba=new z,wu=new z,Cu=new z,Qp=new z,Mu=new ve,yi=class{constructor(){this.origin=new z,this.direction=new z}castMouse(e,t=[0,0]){if(e.type==="orthographic"){let{left:s,right:n,bottom:r,top:a,zoom:o}=e,l=s/o+(n-s)/o*(t[0]*.5+.5),c=r/o+(a-r)/o*(t[1]*.5+.5);this.origin.set(l,c,0),this.origin.applyMatrix4(e.worldMatrix),this.direction.x=-e.worldMatrix[8],this.direction.y=-e.worldMatrix[9],this.direction.z=-e.worldMatrix[10]}else e.worldMatrix.getTranslation(this.origin),this.direction.set(t[0],t[1],.5),e.unproject(this.direction),this.direction.sub(this.origin).normalize()}intersectBounds(e,{maxDistance:t,output:s=[]}={}){Array.isArray(e)||(e=[e]);let n=Mu,r=_u,a=Eu,o=s;return o.length=0,e.forEach(l=>{(!l.geometry.bounds||l.geometry.bounds.radius===1/0)&&l.geometry.computeBoundingSphere();let c=l.geometry.bounds;n.inverse(l.worldMatrix);let d;if(t&&(a.copy(this.direction).scaleRotateMatrix4(n),d=t*a.len()),r.copy(this.origin).applyMatrix4(n),a.copy(this.direction).transformDirection(n),t&&r.distance(c.center)-c.radius>d)return;let u=0;if(l.geometry.raycast==="sphere"){if(r.distance(c.center)>c.radius&&(u=this.intersectSphere(c,r,a),!u))return}else if((r.x<c.min.x||r.x>c.max.x||r.y<c.min.y||r.y>c.max.y||r.z<c.min.z||r.z>c.max.z)&&(u=this.intersectBox(c,r,a),!u))return;t&&u>d||(l.hit||(l.hit={localPoint:new z,point:new z}),l.hit.localPoint.copy(a).multiply(u).add(r),l.hit.point.copy(l.hit.localPoint).applyMatrix4(l.worldMatrix),l.hit.distance=l.hit.point.distance(this.origin),o.push(l))}),o.sort((l,c)=>l.hit.distance-c.hit.distance),o}intersectMeshes(e,{cullFace:t=!0,maxDistance:s,includeUV:n=!0,includeNormal:r=!0,output:a=[]}={}){let o=this.intersectBounds(e,{maxDistance:s,output:a});if(!o.length)return o;let l=Mu,c=_u,d=Eu,u=Su,h=qp,f=Up,m=Kp,p=Tu,g=ba,v=Wp,E=Gp,_=jp;for(let y=o.length-1;y>=0;y--){let b=o[y];l.inverse(b.worldMatrix);let x;s&&(d.copy(this.direction).scaleRotateMatrix4(l),x=s*d.len()),c.copy(this.origin).applyMatrix4(l),d.copy(this.direction).transformDirection(l);let S=0,T,w,C,M=b.geometry,A=M.attributes,$=A.index,k=A.position,B=Math.max(0,M.drawRange.start),F=Math.min($?$.count:k.count,M.drawRange.start+M.drawRange.count),O=k.stride?k.stride/k.data.BYTES_PER_ELEMENT:k.size;for(let X=B;X<F;X+=3){let ae=$?$.data[X]:X,le=$?$.data[X+1]:X+1,P=$?$.data[X+2]:X+2;u.fromArray(k.data,ae*O),h.fromArray(k.data,le*O),f.fromArray(k.data,P*O);let L=this.intersectTriangle(u,h,f,t,c,d,p);!L||s&&L>x||(!S||L<S)&&(S=L,T=ae,w=le,C=P,m.copy(p))}S||o.splice(y,1),b.hit.localPoint.copy(d).multiply(S).add(c),b.hit.point.copy(b.hit.localPoint).applyMatrix4(b.worldMatrix),b.hit.distance=b.hit.point.distance(this.origin),b.hit.faceNormal||(b.hit.localFaceNormal=new z,b.hit.faceNormal=new z,b.hit.uv=new Re,b.hit.localNormal=new z,b.hit.normal=new z),b.hit.localFaceNormal.copy(m),b.hit.faceNormal.copy(b.hit.localFaceNormal).transformDirection(b.worldMatrix),(n||r)&&(u.fromArray(k.data,T*3),h.fromArray(k.data,w*3),f.fromArray(k.data,C*3),this.getBarycoord(b.hit.localPoint,u,h,f,g)),n&&A.uv&&(v.fromArray(A.uv.data,T*2),E.fromArray(A.uv.data,w*2),_.fromArray(A.uv.data,C*2),b.hit.uv.set(v.x*g.x+E.x*g.y+_.x*g.z,v.y*g.x+E.y*g.y+_.y*g.z)),r&&A.normal&&(u.fromArray(A.normal.data,T*3),h.fromArray(A.normal.data,w*3),f.fromArray(A.normal.data,C*3),b.hit.localNormal.set(u.x*g.x+h.x*g.y+f.x*g.z,u.y*g.x+h.y*g.y+f.y*g.z,u.z*g.x+h.z*g.y+f.z*g.z),b.hit.normal.copy(b.hit.localNormal).transformDirection(b.worldMatrix))}return o.sort((y,b)=>y.hit.distance-b.hit.distance),o}intersectSphere(e,t=this.origin,s=this.direction){let n=Su;n.sub(e.center,t);let r=n.dot(s),a=n.dot(n)-r*r,o=e.radius*e.radius;if(a>o)return 0;let l=Math.sqrt(o-a),c=r-l,d=r+l;return c<0&&d<0?0:c<0?d:c}intersectBox(e,t=this.origin,s=this.direction){let n,r,a,o,l,c,d=1/s.x,u=1/s.y,h=1/s.z,f=e.min,m=e.max;return n=((d>=0?f.x:m.x)-t.x)*d,r=((d>=0?m.x:f.x)-t.x)*d,a=((u>=0?f.y:m.y)-t.y)*u,o=((u>=0?m.y:f.y)-t.y)*u,n>o||a>r||(a>n&&(n=a),o<r&&(r=o),l=((h>=0?f.z:m.z)-t.z)*h,c=((h>=0?m.z:f.z)-t.z)*h,n>c||l>r)||(l>n&&(n=l),c<r&&(r=c),r<0)?0:n>=0?n:r}intersectTriangle(e,t,s,n=!0,r=this.origin,a=this.direction,o=Tu){let l=ba,c=wu,d=Cu;l.sub(t,e),c.sub(s,e),o.cross(l,c);let u=a.dot(o);if(!u)return 0;let h;if(u>0){if(n)return 0;h=1}else h=-1,u=-u;d.sub(r,e);let f=h*a.dot(c.cross(d,c));if(f<0)return 0;let m=h*a.dot(l.cross(d));if(m<0||f+m>u)return 0;let p=-h*d.dot(o);return p<0?0:p/u}getBarycoord(e,t,s,n,r=ba){let a=wu,o=Cu,l=Qp;a.sub(n,t),o.sub(s,t),l.sub(e,t);let c=a.dot(a),d=a.dot(o),u=a.dot(l),h=o.dot(o),f=o.dot(l),m=c*h-d*d;if(m===0)return r.set(-2,-1,-1);let p=1/m,g=(h*u-d*f)*p,v=(c*f-d*u)*p;return r.set(1-g-v,v,g)}};var j=document.documentElement,uE=document.body,hE=j.hasAttribute("data-debug");var bi=class{constructor({$root:e}){this.$root=e,this.isInteractive=!1,this.createRenderer(),this.createCamera(),this.createScene(),this.onResize(),this.clickThreshold=2,this.clickValuesSaved=0}createRenderer(){this.renderer=new pi({alpha:!0,antialias:!0}),this.gl=this.renderer.gl,this.gl.canvas.classList.add("c-gallery_canvas"),this.$root.appendChild(this.gl.canvas)}createCamera(){this.camera=new mi(this.gl),this.camera.position.z=5}createScene(){this.scene=new ke}onPreloaded(){this._onPreloaded()}onClose(){this._onClose()}onResize(){this.renderer.setSize(window.innerWidth,window.innerHeight),this.camera.perspective({aspect:window.innerWidth/window.innerHeight});let e=this.camera.fov*(Math.PI/180),t=2*Math.tan(e/2)*this.camera.position.z,s=t*this.camera.aspect;this.sizes={height:t,width:s};let n={sizes:this.sizes};this.isReady&&this._onResize(n)}onMouseMove(e){if(!this.isInteractive)return;let t=e.touches?e.touches[0].clientX:e.clientX,s=e.touches?e.touches[0].clientY:e.clientY,n=Y.utils.mapRange(0,window.innerWidth,1,-1,t),r=Y.utils.mapRange(0,window.innerHeight,1,-1,s),a={x:t,y:s,normalizedX:n,normalizedY:r};this._onTouchMove(a,e)}onPointerDown(e){if(!this.isReady)return;let t={x:e.changedTouches?e.changedTouches[0].clientX:e.clientX,y:e.changedTouches?e.changedTouches[0].clientY:e.clientY};this.clickValuesSaved=t}onPointerUp(e){if(!this.isReady)return;let t={x:e.changedTouches?e.changedTouches[0].clientX:e.clientX,y:e.changedTouches?e.changedTouches[0].clientY:e.clientY},s=Math.abs(t.x-this.clickValuesSaved.x)<=this.clickThreshold,n=Math.abs(t.y-this.clickValuesSaved.y)<=this.clickThreshold;s&&n&&this._onClick(t,e)}onWheel(e){!this.isInteractive||this._onWheel(e)}onScroll(e){!this.isInteractive||this._onScroll(e)}onUpdate(){!this.isReady||(this._onUpdate(),this.renderer.render({camera:this.camera,scene:this.scene}))}};var xa=Ai(Ou(),1);var Du="precision highp float;uniform bool uIsClicked;uniform bool uIsSafari;uniform float uOpacity;uniform sampler2D uTexture;varying vec2 vUv;void main(){vec4 texture=texture2D(uTexture,vUv);gl_FragColor=texture;if(uIsClicked){if(uIsSafari){gl_FragColor.r=gl_FragColor.r*.25;gl_FragColor.g=gl_FragColor.g*.25;gl_FragColor.b=gl_FragColor.b*.25;gl_FragColor.a=.25;}else{gl_FragColor.a=.25;}}else{if(uIsSafari){gl_FragColor.r=gl_FragColor.r*uOpacity;gl_FragColor.g=gl_FragColor.g*uOpacity;gl_FragColor.b=gl_FragColor.b*uOpacity;gl_FragColor.a=uOpacity;}else{gl_FragColor.a=uOpacity;}}}";var Iu="attribute vec3 position;attribute vec2 uv;uniform mat4 modelViewMatrix;uniform mat4 projectionMatrix;varying vec4 vPosition;varying vec2 vUv;void main(){vUv=uv;vec4 newPosition=modelViewMatrix*vec4(position,1.0);vPosition=newPosition;gl_Position=projectionMatrix*newPosition;}";var Gt=(0,xa.default)(.4,0,0,1),_i=(0,xa.default)(.645,.045,.355,1),zu=-60,Fu=60,lm=0,cm=0,dm=0,Ei=class{constructor({index:e,$element:t,$detail:s,geometry:n,gl:r,scene:a,sizes:o}){this.index=e,this.$element=t,this.$detail=s,this.geometry=n,this.gl=r,this.scene=a,this.sizes=o,this.imageSrc=this.$element.dataset.src,this.imageSrcHd=this.$element.dataset.srcHd,this.animationsProgress={detail:0,introduction:0,idle:0,hide:0};let l=navigator.userAgent.toLowerCase();l.indexOf("safari")!=-1&&(l.indexOf("chrome")>-1?this.isSafari=!1:this.isSafari=!0),this.group=new ke,this.createPlane(),this.createBounds({sizes:this.sizes}),this.group.setParent(this.scene),this.introOffsets={x:Y.utils.random(zu,Fu),y:Y.utils.random(zu,Fu),rotation:Y.utils.random(lm,cm)*.001*Math.PI}}createPlane(){let e=new fi(this.gl,{fragment:Du,vertex:Iu,uniforms:{uResolution:{value:[this.sizes.width,this.sizes.height]},uIsClicked:{value:!1},uOpacity:{value:1},uTexture:{value:window.TEXTURES[this.$element.getAttribute("data-src")]},uIsSafari:{value:this.isSafari}}});this.plane=new gi(this.gl,{geometry:this.geometry,program:e}),this.plane.index=this.index,this.plane.setParent(this.group)}createBounds({sizes:e}){this.sizes=e,this.BCR=this.$element.getBoundingClientRect(),this.BCRDetail=this.$detail.getBoundingClientRect(),this.updateTransform()}onResize(e,t,s){this.createBounds(e),this.updateTransform(t,s)}updateScale(){let e=Y.utils.interpolate(this.BCR.height,this.BCRDetail.height,_i(this.animationsProgress.detail)),s=Y.utils.interpolate(this.BCR.width,this.BCRDetail.width,_i(this.animationsProgress.detail))/window.innerWidth,n=e/window.innerHeight;this.plane.scale.x=this.sizes.width*s,this.plane.scale.y=this.sizes.height*n}updateTransform(e=0,t=window.scrollY){this.updateScale();let s=this.BCR.left+e,n=this.BCR.top-t,r=this.BCRDetail.left,a=this.BCRDetail.top-t,o=n+dm,l,c;this.animationsProgress.hide>0?(l=s,c=Y.utils.interpolate(n,o,_i(this.animationsProgress.hide))):(l=Y.utils.interpolate(s,r,_i(this.animationsProgress.detail)),c=Y.utils.interpolate(n,a,_i(this.animationsProgress.detail))),this.x=l/window.innerWidth,this.y=c/window.innerHeight,this.group.position.x=-this.sizes.width/2+this.plane.scale.x/2+this.x*this.sizes.width,this.group.position.y=(-this.sizes.height/2+this.plane.scale.y/2+this.y*this.sizes.height)*-1}updateIntroduction(){let e=window.innerWidth/2-this.BCR.width/2,t=window.innerHeight/2-this.BCR.height/2,s=window.innerWidth/2-this.BCR.width/2+this.introOffsets.x,n=window.innerHeight/2-this.BCR.height/2+this.introOffsets.y,r=this.BCR.left,a=this.BCR.top,o,l,c;this.animationsProgress.introduction<1?(o=Y.utils.interpolate(e,s,Gt(this.animationsProgress.introduction)),l=Y.utils.interpolate(t,n,Gt(this.animationsProgress.introduction)),c=Y.utils.interpolate(0,this.introOffsets.rotation,Gt(this.animationsProgress.introduction))):(o=Y.utils.interpolate(s,r,Gt(this.animationsProgress.idle)),l=Y.utils.interpolate(n,a,Gt(this.animationsProgress.idle)),c=Y.utils.interpolate(this.introOffsets.rotation,0,Gt(this.animationsProgress.idle))),this.x=o/window.innerWidth,this.y=l/window.innerHeight,this.group.position.x=-this.sizes.width/2+this.plane.scale.x/2+this.x*this.sizes.width,this.group.position.y=(-this.sizes.height/2+this.plane.scale.y/2+this.y*this.sizes.height)*-1,this.group.rotation.z=c,this.plane.program.uniforms.uOpacity.value=this.animationsProgress.introduction}updateOpacity(){this.plane.program.uniforms.uOpacity.value=1-this.animationsProgress.hide}update({translateX:e,translateY:t,isHovered:s,isActive:n,isInteractive:r}){n?this.group.position.z=.001:this.group.position.z=0,r?(this.updateTransform(e,t),this.updateOpacity()):this.updateIntroduction()}};var um=.1,Ts=class extends bi{constructor({$root:i,$images:e,$wrapper:t,$details:s,$detailImages:n,moduleInstance:r}){super({$root:i}),this.$images=e,this.$wrapper=t,this.$details=s,this.$detailsImages=n,this.moduleInstance=r,this.isReady=!1,this.isInteractive=!1,this.isDetailOpen=!1,this.isClosing=!1,this.isHdOpen=!1,this.isHdShowed=!1,this.currentMedia={},this.currentMediaIndex=null,this.hoveredMediaIndex=null,this.$closeIgnoreElements=document.querySelectorAll("[data-gallery-ignore]")}init(){this.scene=new ke,this.mouse=new Re,this.translateX={current:0,start:0,target:0,lerp:um},this.translateY={current:0},this.createRaycast(),this.createGeometry(),this.createGallery(),this.onResize({sizes:this.sizes}),this.isReady=!0}createRaycast(){this.raycast=new yi(this.gl)}createGeometry(){this.geometry=new Pt(this.gl)}createGallery(){this.medias=[],this.mediasMeshes=[],this.mediaAnimations=[];let i=0;for(;i<this.$images.length;){let e=this.$images[i],t=this.$detailsImages[i],s=new Ei({index:i,$element:e,$detail:t,geometry:this.geometry,gl:this.gl,scene:this.scene,sizes:this.sizes});this.medias.push(s),this.mediasMeshes.push(s.plane),this.mediaAnimations.push(s.animationsProgress),i++}}_onPreloaded(){console.log("%c Canvas/Gallery.js || PRELOADED ","color: #ffff00"),this.init(),this.playIntroduction()}_onResize(i){console.log("%c Canvas/Gallery.js || RESIZE ","color: #ffff00"),window.scrollTo(0,0),requestAnimationFrame(()=>{this.sizes=i,this.BCR=this.$wrapper.getBoundingClientRect(),this.translateY.current=window.scrollY,this.translateX.limit=this.BCR.width-window.innerWidth,this.translateX.limit>0?this.translateX.last=this.translateX.target=Y.utils.clamp(-this.translateX.limit,0,this.translateX.current):this.translateX.last=this.translateX.target=0;let e=0;for(;e<this.medias.length;)this.medias[e].onResize(this.sizes,this.translateX.target,this.translateY.current),e++;this.HdMedia&&this.HdMedia.onResize(this.sizes)})}_onTouchMove({x:i,y:e,normalizedX:t,normalizedY:s},n){if(this.hitMedia({x:i,y:e}),this.isDetailOpen?this.hoveredMediaIndex=null:this.hoveredMediaIndex=this.hit,this.hit!==null&&!this.isDetailOpen&&!this.isPointerOpen)this.isPointerOpen=!0,document.body.style.cursor="pointer",this.moduleInstance.call("setCursorState","galleryOpen","Cursor");else if(this.isDetailOpen){this.isPointerOpen=!1;let r=!1,a=0,o=n.target;for(;a<this.$closeIgnoreElements.length&&!r;){let l=this.$closeIgnoreElements[a];(l===o||l.contains(o))&&(r=!0),a++}!r&&!this.isPointerClose?(this.isPointerClose=!0,document.body.style.cursor="pointer",this.moduleInstance.call("setCursorState","galleryClose","Cursor")):r&&this.isPointerClose&&(this.isPointerClose=!1,document.body.style.cursor="",this.moduleInstance.call("setCursorState","default","Cursor"))}else this.hit===null&&!this.isDetailOpen&&this.isPointerOpen&&(this.isPointerOpen=!1,this.isPointerClose=!1,document.body.style.cursor="",this.hoveredMediaIndex=null,this.moduleInstance.call("setCursorState","default","Cursor"))}_onClick({x:i,y:e},t){this.hitMedia({x:i,y:e});let s=this.hit!=null?this.hit:null;if(!this.isDetailOpen&&s!=null&&this.isInteractive)this.currentMediaIndex=s,this.currentMedia=this.medias[s],this.playOpenDetail();else if(this.isDetailOpen&&this.isInteractive){let n=!1,r=0,a=t.target;for(;r<this.$closeIgnoreElements.length&&!n;){let o=this.$closeIgnoreElements[r];(o===a||o.contains(a))&&(n=!0),r++}n||this._onClose()}}_onWheel({pixelX:i,pixelY:e}){if(this.isInteractive&&!this.isDetailOpen){let t=0;Math.abs(i)>Math.abs(e)?t=i:t=e,this.translateX.target+=t}}_onScroll(i){this.translateY.current=window.scrollY}_onUpdate(){this.translateX.limit>0?this.translateX.target=Y.utils.clamp(-this.translateX.limit,0,this.translateX.target):this.translateX.target=0,this.translateX.current=Y.utils.interpolate(this.translateX.current,this.translateX.target,this.translateX.lerp);let i=0;for(;i<this.medias.length;)this.medias[i].update({translateX:this.translateX.current,translateY:this.translateY.current,isHovered:i!=this.hoveredMediaIndex&&this.hoveredMediaIndex!=null,isActive:i===this.currentMediaIndex,isInteractive:this.isInteractive}),i++;this.HdMedia&&this.HdMedia.update({translateX:0,translateY:0})}_onClose(){if(!this.isClosing&&this.isDetailOpen){this.playCloseDetail();return}}hitMedia({x:i,y:e}){this.mouse.set(2*(i/this.renderer.width)-1,2*(1-e/this.renderer.height)-1),this.raycast.castMouse(this.camera,this.mouse);let[t]=this.raycast.intersectBounds(this.mediasMeshes);this.hit=t?t.index:null}playIntroduction(){let i=Y.timeline({onComplete:()=>{this.isInteractive=!0}});i.to(this.mediaAnimations,{introduction:1,duration:.6,ease:"linear",stagger:.05}),i.to(this.mediaAnimations,{idle:1,duration:1.2,ease:"linear"},"+=.05")}playOpenDetail(){this.isDetailOpen=!0,this.$details[this.currentMedia.index].classList.add("is-show"),this.$details[this.currentMedia.index].classList.add("is-active"),j.classList.add("has-gallery-detail-open"),requestAnimationFrame(()=>xe(this,null,function*(){yield new Promise(e=>e(this.onResize()))}));let i=this.medias.filter(e=>e.index!=this.currentMedia.index).map(e=>e.animationsProgress);i.splice(this.currentMedia.index,0,st({},this.currentMedia.animationsProgress)),requestAnimationFrame(()=>{let e=Y.timeline({onStart:()=>{this.moduleInstance.call("setCursorState","default","Cursor")},onComplete:()=>{j.classList.remove("is-gallery-slider")}});e.to(i,{hide:1,duration:.6,ease:"linear"}),e.to(this.currentMedia.animationsProgress,{detail:1,ease:"linear",duration:.8},"<")})}playCloseDetail(){this.isClosing=!0;let i={value:window.scrollY};j.classList.add("is-gallery-slider"),this.$details[this.currentMediaIndex].classList.remove("is-active");let e=this.medias.filter(t=>t.index!=this.currentMedia.index).map(t=>t.animationsProgress);e.splice(this.currentMedia.index,0,st({},this.currentMedia.animationsProgress)),requestAnimationFrame(()=>{let t=Y.timeline({onStart:()=>{this.moduleInstance.call("setCursorState","default","Cursor")},onComplete:()=>{this.$details[this.currentMediaIndex].classList.remove("is-show"),j.classList.remove("has-gallery-detail-open"),this.isDetailOpen=!1,this.isClosing=!1,this.currentMedia={},this.currentMediaIndex=null}});i.value>0&&t.to(i,{value:0,duration:.6,ease:"power1.out",onUpdate:()=>{window.scrollTo(0,i.value)}}),t.to(e,{hide:0,duration:.6,ease:"linear",stagger:{from:this.currentMedia.index,amount:.1}}),t.to(this.currentMedia.animationsProgress,{detail:0,duration:.8,ease:"power1.out"},"<")})}};var Si=class{constructor({canvas:e,assets:t,preloadedCallback:s,$loaderElement:n}){this.canvas=e,this.assets=t,this.preloadedCallback=s,this.$loaderElement=n,window.TEXTURES={},this.length=0,this.loadAssets()}loadAssets(){return xe(this,null,function*(){var e;console.log("%c Preloader.js || LOAD ASSETS ","color: #ff0000"),this.assets||(e=this.preloadedCallback)==null||e.call(this);for(let t=0;t<this.assets.length;t++){let s=this.assets[t];if(window.TEXTURES[s])this.onAssetLoaded();else{let n=new vi(this.canvas.gl,{generateMipmaps:!1}),r=new Image;r.crossOrigin="anonymous",r.src=s,r.onload=()=>{n.image=r,this.onAssetLoaded()},window.TEXTURES[s]=n}yield Y.delayedCall(.1,()=>{})}})}onAssetLoaded(){this.length+=1;let e=this.length/this.assets.length,t=`${Math.round(e*100)}%`;this.$loaderElement.innerHTML=t,e===1&&Y.delayedCall(.6,()=>{var s;(s=this.preloadedCallback)==null||s.call(this)})}};var ws=class extends H{constructor(i){super(i),this.onResizeBind=this.onResize.bind(this),this.onFontsLoadedBind=this.onFontsLoaded.bind(this),this.onPageReadyBind=this.onPageReady.bind(this),this.onUpdateBind=this.onUpdate.bind(this),this.onWheelBind=this.onWheel.bind(this),this.onScrollBind=this.onScroll.bind(this),this.onMouseMoveBind=this.onMouseMove.bind(this),this.onCloseBind=this.onClose.bind(this),this.onDragBind=this.onDrag.bind(this),this.onPointerDownBind=this.onPointerDown.bind(this),this.onPointerUpBind=this.onPointerUp.bind(this),this.onKeyboardBind=e=>{e.key==="Escape"&&this.onClose()},this.$el=this.el,this.$images=this.$("image"),this.$wrapper=this.$("wrapper")[0],this.$details=this.$("detail"),this.$detailImages=this.$("detailImage"),this.$loader=this.$("loader")[0]}init(){window.hasTouch||(this.bindEvents(),window.isFontsLoaded&&this.onFontsLoaded(),window.isPageReady&&this.onPageReady(),j.classList.add("is-gallery-slider"))}destroy(){var i;super.destroy(),!window.hasTouch&&(this.pause(),this.unbindEvents(),(i=this.inertiaDrag)==null||i.destroy(),document.body.style.cursor="")}bindEvents(){window.addEventListener("resizeEnd",this.onResizeBind),window.addEventListener("fontsLoaded",this.onFontsLoadedBind),window.addEventListener("pageReady",this.onPageReadyBind),window.addEventListener("scroll",this.onScrollBind),window.addEventListener("wheel",this.onWheelBind),window.addEventListener("mousemove",this.onMouseMoveBind),window.addEventListener("pointerdown",this.onPointerDownBind),window.addEventListener("pointerup",this.onPointerUpBind),document.addEventListener("keyup",this.onKeyboardBind)}unbindEvents(){var i,e;window.removeEventListener("resizeEnd",this.onResizeBind),window.removeEventListener("fontsLoaded",this.onFontsLoadedBind),window.removeEventListener("pageReady",this.onPageReadyBind),window.removeEventListener("scroll",this.onScrollBind),window.removeEventListener("wheel",this.onWheelBind),window.removeEventListener("mousemove",this.onMouseMoveBind),window.removeEventListener("pointerdown",this.onPointerDownBind),window.removeEventListener("pointerup",this.onPointerUpBind),document.removeEventListener("keyup",this.onKeyboardBind),(i=this.inertiaDrag)==null||i.removeEventListener("dragmove",this.onDragBind),(e=this.inertiaDrag)==null||e.removeEventListener("inertiamove",this.onDragBind)}onResize(){this.resize()}onFontsLoaded(){this.resize()}onPageReady(){this.createGallery(),this.createPreloader(),this.play()}onUpdate(){var i,e;(e=(i=this.gallery)==null?void 0:i.onUpdate)==null||e.call(i)}onWheel(i){var t;if(!this.isPlaying)return;let e=(0,Ru.default)(i);e.pixelX*=-1,e.pixelY*=-1,(t=this.gallery)==null||t.onWheel(e)}onScroll(i){var e;!this.isPlaying||(e=this.gallery)==null||e.onScroll(i)}onMouseMove(i){var e;!this.isPlaying||(e=this.gallery)==null||e.onMouseMove(i)}onClose(){var i;!this.isPlaying||(i=this.gallery)==null||i.onClose()}onDrag(i){var e;(e=this.gallery)==null||e.onWheel({pixelX:i.deltaX,pixelY:i.deltaY})}onPointerDown(i){var e;!this.isPlaying||(e=this.gallery)==null||e.onPointerDown(i)}onPointerUp(i){var e;!this.isPlaying||(e=this.gallery)==null||e.onPointerUp(i)}createGallery(){console.log("%c modules/Gallery.js || CREATE GALLERY ","color: #ff00ff"),this.gallery=new Ts({$root:this.$el,$images:this.$images,$wrapper:this.$wrapper,$details:this.$details,$detailImages:this.$detailImages,moduleInstance:this});let i=this.el.querySelector("canvas");this.inertiaDrag=new Gc(i),this.inertiaDrag.addEventListener("dragmove",this.onDragBind),this.inertiaDrag.addEventListener("inertiamove",this.onDragBind)}createPreloader(){console.log("%c modules/Gallery.js || CREATE PRELOADER ","color: #ff00ff");let i=[...this.$images].map(e=>e.getAttribute("data-src"));this.preloader=new Si({canvas:this.gallery,assets:i,$loaderElement:this.$loader,preloadedCallback:()=>{this.gallery.onPreloaded(),this.$el.classList.add("is-loaded"),this.resize()}})}play(){this.isPlaying||(this.isPlaying=!0,Y.ticker.add(this.onUpdateBind))}pause(){!this.isPlaying||(this.isPlaying=!1,Y.ticker.remove(this.onUpdateBind))}resize(){window.requestAnimationFrame(()=>{var i,e;(e=(i=this.gallery)==null?void 0:i.onResize)==null||e.call(i)})}};var At=class extends H{static get settings(){return{GUTTER:"var(--grid-gutter)",MARGIN:"var(--grid-gutter)",COLOR:"rgba(255, 0, 0, .1)"}}constructor(e){super(e),this.$inner=this.$("inner")[0]}init(){this.setColumns(),this.setStyles(),this.bindEvents()}setColumns(){let e=getComputedStyle(this.el).getPropertyValue("--grid-cols"),t;for(var s=0;s<e;s++)t=document.createElement("div"),this.$inner.appendChild(t)}setStyles(){this.el.style.zIndex="10000",this.el.style.position="fixed",this.el.style.top="0",this.el.style.left="0",this.el.style.width="100%",this.el.style.height="100%",this.el.style.pointerEvents="none",this.el.style.visibility="hidden",this.$inner.style.height="100%";let e=this.$inner.children;for(let t of e)t.style.backgroundColor=At.settings.COLOR}bindEvents(){let e=!1,t=!1;document.addEventListener("keydown",s=>{s.key=="Control"?e=!0:e&&s.key=="g"&&(t?this.el.style.visibility="visible":this.el.style.visibility="hidden",t=!t)}),document.addEventListener("keyup",s=>{s.key=="Control"&&(e=!1)})}};var Cs=class extends H{constructor(i){super(i)}init(){this.updateBackUrl(j.dataset.backUrl)}destroy(){super.destroy()}updateBackUrl(i){this.$("backlink")[0].href=i}};var _a=ue.registerPlugin(hi)||ue,QE=_a.core.Tween;var Ms=class extends H{constructor(i){super(i),this.onResizeBind=this.onResize.bind(this),this.onFontsLoadedBind=this.onFontsLoaded.bind(this),this.$el=this.el,this.$header=this.$("header")[0],this.$items=this.$("item")}init(){this.bindEvents(),window.isFontsLoaded&&this.onFontsLoaded()}destroy(){super.destroy(),this.unbindEvents()}bindEvents(){window.addEventListener("resizeEnd",this.onResizeBind),window.addEventListener("fontsLoaded",this.onFontsLoadedBind)}unbindEvents(){window.removeEventListener("resizeEnd",this.onResizeBind),window.removeEventListener("fontsLoaded",this.onFontsLoadedBind)}onResize(){this.resize()}onFontsLoaded(){this.resize()}onProgress(i){this.progress=ss(0,1,i),this.timeline&&this.timeline.progress(this.progress)}onLeave(){this.progress=this.progress>.5?1:0,this.timeline.progress(this.progress)}setTimeline(){this.timeline&&(this.timeline.kill(),this.timeline=null),this.timeline=_a.timeline({paused:!0}),this.timeline.fromTo(this.$items[0],{y:"0%"},{y:"-30%",duration:1,ease:"power3.inOut"},0),this.timeline.fromTo(this.$items[1],{y:"0%"},{y:"30%",duration:1,ease:"power3.inOut"},0),this.timeline.fromTo(this.$header,{clipPath:"polygon(0 0, 100% 0, 100% 50%, 0 50%, 0 50%, 100% 50%, 100% 100%, 0 100%)"},{clipPath:"polygon(0 0, 100% 0, 100% 0%, 0 0%, 0 100%, 100% 100%, 100% 100%, 0 100%)",duration:1,ease:"power3.inOut"},0)}resize(){this.setTimeline(),this.timeline&&this.timeline.progress(this.progress)}};function Bu(i,e){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var s=(this.document||this.ownerDocument).querySelectorAll(t),n=s.length;--n>=0&&s.item(n)!==this;);return n>-1});i&&i!==document;i=i.parentNode)if(i.matches(e))return i;return null}var Ps=class extends H{constructor(i){super(i),this.onEnterBind=this.onEnter.bind(this),this.onLeaveBind=this.onLeave.bind(this),this.$el=this.el,this.$parent=Bu(this.$el,"[data-hovered]")}init(){this.bindEvents()}destroy(){super.destroy(),this.unbindEvents()}bindEvents(){this.$el.addEventListener("mouseenter",this.onEnterBind),this.$el.addEventListener("mouseleave",this.onLeaveBind)}unbindEvents(){this.$el.removeEventListener("mouseenter",this.onEnterBind),this.$el.removeEventListener("mouseleave",this.onLeaveBind)}onEnter(){this.$parent.classList.add("is-hovered")}onLeave(){this.$parent.classList.remove("is-hovered")}};var As=class extends H{constructor(i){super(i),this.onPageReadyBind=this.onPageReady.bind(this),this.onWheelBind=this.onWheel.bind(this),this.$el=this.el,this.$steps=this.$("step"),this.$skipButton=this.$("skip")[0],this.events={click:{next:"goToNextStep",close:"close",skip:"close"}},this.currentStep=0,this.artistSlug=this.getData("artist"),this.isAbleToGoNext=!1,this.isDebug=!1}init(){this.bindEvents()}destroy(){this.unbindEvents(),super.destroy()}bindEvents(){window.addEventListener("pageReady",this.onPageReadyBind),window.hasTouch||window.addEventListener("wheel",this.onWheelBind)}unbindEvents(){window.removeEventListener("pageReady",this.onPageReadyBind),window.hasTouch||window.removeEventListener("wheel",this.onWheelBind)}onPageReady(){!this.isDebug&&localStorage.getItem("designstripeIntroduction")==this.artistSlug||(j.classList.add("is-introduction-visible"),this.activeStep(this.currentStep))}onWheel(i){!this.isAbleToGoNext||Math.abs(i.wheelDelta)>1&&(this.isAbleToGoNext=!1,this.goToNextStep())}activeStep(i){this.$steps[i].classList.add("is-active"),this.$el.dataset.currentStep=i,this.$el.classList.remove("is-leaving-step"),this.computeProgress(),i==this.$steps.length-1?(this.hideSkipButton(),this.$el.classList.add("is-last-step")):setTimeout(()=>{this.isAbleToGoNext=!0},1200)}hideStep(i){return new Promise(e=>{this.$el.classList.add("is-leaving-step"),this.$steps[this.currentStep].classList.remove("is-active"),setTimeout(()=>e(),1e3)})}goToNextStep(){return xe(this,null,function*(){yield this.hideStep(this.currentStep),this.currentStep++,this.activeStep(this.currentStep)})}hideSkipButton(){this.$skipButton.classList.add("is-hidden")}close(){j.classList.remove("is-introduction-visible"),localStorage.setItem("designstripeIntroduction",this.artistSlug),this.unbindEvents()}computeProgress(){let i=(this.currentStep+1)/this.$steps.length;this.$el.style.setProperty("--progress",i)}};var ks=class extends H{constructor(i){super(i),this.$el=this.el,this.$slides=this.$("item"),this.length=this.$slides.length}init(){this.length>1&&this.initCarousel()}destroy(){super.destroy(),this.carousel&&this.carousel.destroy&&this.carousel.destroy(!0,!0)}initCarousel(){let i={spaceBetween:20,slidesPerView:"auto",on:{init:()=>{this.call("update",null,"Scroll")}}};this.carousel=new We(this.$el,i)}};var Vu=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Ls=Vu.join(","),Yu=typeof Element=="undefined",kt=Yu?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,$s=!Yu&&Element.prototype.getRootNode?function(i){return i.getRootNode()}:function(i){return i.ownerDocument},Xu=function(e,t,s){var n=Array.prototype.slice.apply(e.querySelectorAll(Ls));return t&&kt.call(e,Ls)&&n.unshift(e),n=n.filter(s),n},Hu=function i(e,t,s){for(var n=[],r=Array.from(e);r.length;){var a=r.shift();if(a.tagName==="SLOT"){var o=a.assignedElements(),l=o.length?o:a.children,c=i(l,!0,s);s.flatten?n.push.apply(n,c):n.push({scope:a,candidates:c})}else{var d=kt.call(a,Ls);d&&s.filter(a)&&(t||!e.includes(a))&&n.push(a);var u=a.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(a),h=!s.shadowRootFilter||s.shadowRootFilter(a);if(u&&h){var f=i(u===!0?a.children:u.children,!0,s);s.flatten?n.push.apply(n,f):n.push({scope:a,candidates:f})}else r.unshift.apply(r,a.children)}}return n},Wu=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},hm=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Gu=function(e){return e.tagName==="INPUT"},fm=function(e){return Gu(e)&&e.type==="hidden"},pm=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(s){return s.tagName==="SUMMARY"});return t},mm=function(e,t){for(var s=0;s<e.length;s++)if(e[s].checked&&e[s].form===t)return e[s]},gm=function(e){if(!e.name)return!0;var t=e.form||$s(e),s=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},n;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")n=s(window.CSS.escape(e.name));else try{n=s(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var r=mm(n,e.form);return!r||r===e},vm=function(e){return Gu(e)&&e.type==="radio"},ym=function(e){return vm(e)&&!gm(e)},bm=function(e){for(var t,s=$s(e).host,n=!!((t=s)!==null&&t!==void 0&&t.ownerDocument.contains(s)||e.ownerDocument.contains(e));!n&&s;){var r;s=$s(s).host,n=!!((r=s)!==null&&r!==void 0&&r.ownerDocument.contains(s))}return n},Nu=function(e){var t=e.getBoundingClientRect(),s=t.width,n=t.height;return s===0&&n===0},xm=function(e,t){var s=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var r=kt.call(e,"details>summary:first-of-type"),a=r?e.parentElement:e;if(kt.call(a,"details:not([open]) *"))return!0;if(!s||s==="full"||s==="legacy-full"){if(typeof n=="function"){for(var o=e;e;){var l=e.parentElement,c=$s(e);if(l&&!l.shadowRoot&&n(l)===!0)return Nu(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=o}if(bm(e))return!e.getClientRects().length;if(s!=="legacy-full")return!0}else if(s==="non-zero-area")return Nu(e);return!1},_m=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var s=0;s<t.children.length;s++){var n=t.children.item(s);if(n.tagName==="LEGEND")return kt.call(t,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}t=t.parentElement}return!1},Os=function(e,t){return!(t.disabled||fm(t)||xm(t,e)||pm(t)||_m(t))},Ea=function(e,t){return!(ym(t)||Wu(t)<0||!Os(e,t))},Em=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Sm=function i(e){var t=[],s=[];return e.forEach(function(n,r){var a=!!n.scope,o=a?n.scope:n,l=Wu(o,a),c=a?i(n.candidates):o;l===0?a?t.push.apply(t,c):t.push(o):s.push({documentOrder:r,tabIndex:l,item:n,isScope:a,content:c})}),s.sort(hm).reduce(function(n,r){return r.isScope?n.push.apply(n,r.content):n.push(r.content),n},[]).concat(t)},ju=function(e,t){t=t||{};var s;return t.getShadowRoot?s=Hu([e],t.includeContainer,{filter:Ea.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Em}):s=Xu(e,t.includeContainer,Ea.bind(null,t)),Sm(s)},qu=function(e,t){t=t||{};var s;return t.getShadowRoot?s=Hu([e],t.includeContainer,{filter:Os.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):s=Xu(e,t.includeContainer,Os.bind(null,t)),s},Ti=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return kt.call(e,Ls)===!1?!1:Ea(t,e)},Tm=Vu.concat("iframe").join(","),Ds=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return kt.call(e,Tm)===!1?!1:Os(t,e)};function Uu(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,s)}return t}function Ku(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Uu(Object(t),!0).forEach(function(s){wm(i,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):Uu(Object(t)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(t,s))})}return i}function wm(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var Qu=function(){var i=[];return{activateTrap:function(t){if(i.length>0){var s=i[i.length-1];s!==t&&s.pause()}var n=i.indexOf(t);n===-1||i.splice(n,1),i.push(t)},deactivateTrap:function(t){var s=i.indexOf(t);s!==-1&&i.splice(s,1),i.length>0&&i[i.length-1].unpause()}}}(),Cm=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Mm=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},Pm=function(e){return e.key==="Tab"||e.keyCode===9},Zu=function(e){return setTimeout(e,0)},Ju=function(e,t){var s=-1;return e.every(function(n,r){return t(n)?(s=r,!1):!0}),s},wi=function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return typeof e=="function"?e.apply(void 0,s):e},Is=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},eh=function(e,t){var s=(t==null?void 0:t.document)||document,n=Ku({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a,o=function(x,S,T){return x&&x[S]!==void 0?x[S]:n[T||S]},l=function(x){return r.containerGroups.findIndex(function(S){var T=S.container,w=S.tabbableNodes;return T.contains(x)||w.find(function(C){return C===x})})},c=function(x){var S=n[x];if(typeof S=="function"){for(var T=arguments.length,w=new Array(T>1?T-1:0),C=1;C<T;C++)w[C-1]=arguments[C];S=S.apply(void 0,w)}if(S===!0&&(S=void 0),!S){if(S===void 0||S===!1)return S;throw new Error("`".concat(x,"` was specified but was not a node, or did not return a node"))}var M=S;if(typeof S=="string"&&(M=s.querySelector(S),!M))throw new Error("`".concat(x,"` as selector refers to no known node"));return M},d=function(){var x=c("initialFocus");if(x===!1)return!1;if(x===void 0)if(l(s.activeElement)>=0)x=s.activeElement;else{var S=r.tabbableGroups[0],T=S&&S.firstTabbableNode;x=T||c("fallbackFocus")}if(!x)throw new Error("Your focus-trap needs to have at least one focusable element");return x},u=function(){if(r.containerGroups=r.containers.map(function(x){var S=ju(x,n.tabbableOptions),T=qu(x,n.tabbableOptions);return{container:x,tabbableNodes:S,focusableNodes:T,firstTabbableNode:S.length>0?S[0]:null,lastTabbableNode:S.length>0?S[S.length-1]:null,nextTabbableNode:function(C){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,A=T.findIndex(function($){return $===C});if(!(A<0))return M?T.slice(A+1).find(function($){return Ti($,n.tabbableOptions)}):T.slice(0,A).reverse().find(function($){return Ti($,n.tabbableOptions)})}}}),r.tabbableGroups=r.containerGroups.filter(function(x){return x.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},h=function b(x){if(x!==!1&&x!==s.activeElement){if(!x||!x.focus){b(d());return}x.focus({preventScroll:!!n.preventScroll}),r.mostRecentlyFocusedNode=x,Cm(x)&&x.select()}},f=function(x){var S=c("setReturnFocus",x);return S||(S===!1?!1:x)},m=function(x){var S=Is(x);if(!(l(S)>=0)){if(wi(n.clickOutsideDeactivates,x)){a.deactivate({returnFocus:n.returnFocusOnDeactivate&&!Ds(S,n.tabbableOptions)});return}wi(n.allowOutsideClick,x)||x.preventDefault()}},p=function(x){var S=Is(x),T=l(S)>=0;T||S instanceof Document?T&&(r.mostRecentlyFocusedNode=S):(x.stopImmediatePropagation(),h(r.mostRecentlyFocusedNode||d()))},g=function(x){var S=Is(x);u();var T=null;if(r.tabbableGroups.length>0){var w=l(S),C=w>=0?r.containerGroups[w]:void 0;if(w<0)x.shiftKey?T=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:T=r.tabbableGroups[0].firstTabbableNode;else if(x.shiftKey){var M=Ju(r.tabbableGroups,function(O){var X=O.firstTabbableNode;return S===X});if(M<0&&(C.container===S||Ds(S,n.tabbableOptions)&&!Ti(S,n.tabbableOptions)&&!C.nextTabbableNode(S,!1))&&(M=w),M>=0){var A=M===0?r.tabbableGroups.length-1:M-1,$=r.tabbableGroups[A];T=$.lastTabbableNode}}else{var k=Ju(r.tabbableGroups,function(O){var X=O.lastTabbableNode;return S===X});if(k<0&&(C.container===S||Ds(S,n.tabbableOptions)&&!Ti(S,n.tabbableOptions)&&!C.nextTabbableNode(S))&&(k=w),k>=0){var B=k===r.tabbableGroups.length-1?0:k+1,F=r.tabbableGroups[B];T=F.firstTabbableNode}}}else T=c("fallbackFocus");T&&(x.preventDefault(),h(T))},v=function(x){if(Mm(x)&&wi(n.escapeDeactivates,x)!==!1){x.preventDefault(),a.deactivate();return}if(Pm(x)){g(x);return}},E=function(x){var S=Is(x);l(S)>=0||wi(n.clickOutsideDeactivates,x)||wi(n.allowOutsideClick,x)||(x.preventDefault(),x.stopImmediatePropagation())},_=function(){if(!!r.active)return Qu.activateTrap(a),r.delayInitialFocusTimer=n.delayInitialFocus?Zu(function(){h(d())}):h(d()),s.addEventListener("focusin",p,!0),s.addEventListener("mousedown",m,{capture:!0,passive:!1}),s.addEventListener("touchstart",m,{capture:!0,passive:!1}),s.addEventListener("click",E,{capture:!0,passive:!1}),s.addEventListener("keydown",v,{capture:!0,passive:!1}),a},y=function(){if(!!r.active)return s.removeEventListener("focusin",p,!0),s.removeEventListener("mousedown",m,!0),s.removeEventListener("touchstart",m,!0),s.removeEventListener("click",E,!0),s.removeEventListener("keydown",v,!0),a};return a={get active(){return r.active},get paused(){return r.paused},activate:function(x){if(r.active)return this;var S=o(x,"onActivate"),T=o(x,"onPostActivate"),w=o(x,"checkCanFocusTrap");w||u(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=s.activeElement,S&&S();var C=function(){w&&u(),_(),T&&T()};return w?(w(r.containers.concat()).then(C,C),this):(C(),this)},deactivate:function(x){if(!r.active)return this;var S=Ku({onDeactivate:n.onDeactivate,onPostDeactivate:n.onPostDeactivate,checkCanReturnFocus:n.checkCanReturnFocus},x);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,y(),r.active=!1,r.paused=!1,Qu.deactivateTrap(a);var T=o(S,"onDeactivate"),w=o(S,"onPostDeactivate"),C=o(S,"checkCanReturnFocus"),M=o(S,"returnFocus","returnFocusOnDeactivate");T&&T();var A=function(){Zu(function(){M&&h(f(r.nodeFocusedBeforeActivation)),w&&w()})};return M&&C?(C(f(r.nodeFocusedBeforeActivation)).then(A,A),this):(A(),this)},pause:function(){return r.paused||!r.active?this:(r.paused=!0,y(),this)},unpause:function(){return!r.paused||!r.active?this:(r.paused=!1,u(),_(),this)},updateContainerElements:function(x){var S=[].concat(x).filter(Boolean);return r.containers=S.map(function(T){return typeof T=="string"?s.querySelector(T):T}),r.active&&u(),this}},a.updateContainerElements(e),a};var jt=class extends H{constructor(i){super(i),this.moduleName=i.name,this.events={click:{close:"close"}},this.closeBind=e=>{e.key==="Escape"&&this.close()},this.$togglerWrapper=null,this.focusTrapOptions={checkCanFocusTrap:e=>{let t=e.map(s=>new Promise(n=>{let r=setInterval(()=>{getComputedStyle(s).visibility!=="hidden"&&(n(),clearInterval(r))},5)}));return Promise.all(t)},onActivate:()=>{j.classList.add(this.activeClass),this.el.setAttribute("aria-hidden",!1)},onDeactivate:()=>{j.classList.remove(this.activeClass),this.el.setAttribute("aria-hidden",!0)}},this.isOpen=!1}init(){var i,e;if((i=this.onBeforeInit)==null||i.call(this),typeof this.activeClass!="string"||!this.activeClass)throw new TypeError(`${this.moduleName} expects a CSS class name for the 'activeClass' property`);this.focusTrap=eh([this.$togglerWrapper,this.el],this.focusTrapOptions),document.addEventListener("keyup",this.closeBind),(e=this.onInit)==null||e.call(this)}toggle(i){i&&(this.toggler=i),j.classList.contains(this.activeClass)?this.close():this.open()}open(i){var e,t,s;this.isOpen||(this.isOpen=!0,(t=(e=this.focusTrap)==null?void 0:e.activate)==null||t.call(e),(s=this.onOpen)==null||s.call(this,i))}close(i){var e,t,s;!this.isOpen||(this.isOpen=!1,(t=(e=this.focusTrap)==null?void 0:e.deactivate)==null||t.call(e),(s=this.onClose)==null||s.call(this,i))}destroy(){var i,e,t;(e=(i=this.focusTrap)==null?void 0:i.deactivate)==null||e.call(i,{returnFocus:!1}),document.removeEventListener("keyup",this.closeBind),(t=this.onDestroy)==null||t.call(this),super.destroy()}};var zs=class extends jt{constructor(e){super(e);ki(this,"activeClass","has-chapters-open");this.onClickBind=this.onClick.bind(this),this.$links=this.$("link")}bindEvents(){let e=0;for(;e<this.$links.length;)this.$links[e].addEventListener("click",this.onClickBind),e++}unbindEvents(){let e=0;for(;e<this.$links.length;)this.$links[e].addEventListener("click",this.onClickBind),e++}onInit(){this.bindEvents()}onDestroy(){this.unbindEvents()}onClose(){this.call("start",null,"Scroll")}onOpen(e){this.call("stop",null,"Scroll")}onClick(e){this.close()}};var Fs=class extends H{constructor(i){super(i),this.events={click:"openChapters"}}openChapters(){this.call("toggle",null,"ModalChapters")}};var th=[],ih=[];function Am(i,e={}){return new Promise((t,s)=>{let n=ih.find(r=>r.url===i);if(n)t(st(st({},n),e));else{let r=new Image;e.crossOrigin&&(r.crossOrigin=e.crossOrigin);let a=()=>{let o=st(st({element:r},km(r)),e);ih.push(o),t(o)};r.decode?(r.src=i,r.decode().then(a).catch(o=>{s(o)})):(r.onload=a,r.onerror=o=>{s(o)},r.src=i)}})}function km(i){return{url:i.src,width:i.naturalWidth,height:i.naturalHeight,ratio:i.naturalWidth/i.naturalHeight}}function qt(i,e,t){return xe(this,null,function*(){let s=e||i.dataset.src,n=th.find(r=>r.url===s);if(!n){if(n=yield Am(s),!n.url)return;th.push(n)}i.src!==s&&(i.tagName==="IMG"?i.src=n.url:i.style.backgroundImage=`url(${n.url})`,requestAnimationFrame(()=>{let r=i.closest(".c-lazy");r&&(r.classList.add("-lazy-loaded"),r.style.backgroundImage=""),i.classList.add("-lazy-loaded"),t==null||t()}))})}function sh(i){let e=document.querySelectorAll("img[data-preload]");if(!e.length){i==null||i();return}let t=[];e.forEach(s=>{let n=s.dataset.src,r=qt(s,n);t.push(r)}),Promise.all(t).then(()=>{i==null||i()})}var Rs=class extends jt{constructor(e){super(e);ki(this,"activeClass","has-gallery-open");this.onUpdateLoadingBind=this.onUpdateLoading.bind(this),this.$details=this.$("detail"),this.loadingData={elapsedTime:0,loadingDuration:600,isLoading:!1,isReady:!1},this.currentIndex=null}bindEvents(){}unbindEvents(){}onBeforeInit(){}onInit(){this.bindEvents()}onDestroy(){this.abortController&&this.abortController.abort(),this.unbindEvents()}onOpen(e){this.currentIndex=e.index,this.loadData()}onClose(){this.killLoading(),this.hide(),this.abortController&&this.abortController.abort()}onClick(){this.close()}onUpdateLoading(e,t,s){this.loadingData.elapsedTime+=t,this.loadingData.elapsedTime>this.loadingData.loadingDuration&&this.loadingData.isReady&&(this.stopLoading(),this.onLoaded())}show(){requestAnimationFrame(()=>{this.$details[parseInt(this.currentIndex)].classList.add("is-show"),this.$details[parseInt(this.currentIndex)].classList.add("is-active"),this.el.classList.add("is-show")})}hide(){this.el.classList.remove("is-show");for(let e=0;e<this.$details.length;e++){let t=this.$details[e];t.classList.remove("is-show"),t.classList.remove("is-active")}}loadData(){return xe(this,null,function*(){this.playLoading(),this.abortController=new AbortController;try{let e=this.$details[parseInt(this.currentIndex)].querySelector("img");console.log(e,this.currentIndex),yield new Promise(t=>{qt(e,null,()=>{requestAnimationFrame(()=>{this.loadingData.isReady=!0}),t()})})}catch(e){e.name=="AbortError"?(console.log("Aborted!"),this.killLoading(),this.close()):(this.killLoading(),this.close())}})}onLoaded(){this.show()}playLoading(){this.loadingData.isLoading||(this.loadingData.elapsedTime=0,this.loadingData.isLoading=!0,Y.ticker.add(this.onUpdateLoadingBind),this.el.classList.add("is-loading"))}stopLoading(){!this.loadingData.isLoading||(this.loadingData.isLoading=!1,Y.ticker.remove(this.onUpdateLoadingBind),this.el.classList.remove("is-loading"))}killLoading(){this.stopLoading(),this.loadingData.isReady=!1}};var Bs=class extends H{constructor(i){super(i),this.events={click:"openGallery"},this.index=this.getData("index")}openGallery(){this.call("open",{index:this.index},"ModalGallery")}};function Lm(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function nh(i,e){for(var t=0;t<e.length;t++){var s=e[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}function $m(i,e,t){return e&&nh(i.prototype,e),t&&nh(i,t),i}function Om(i,e){return Dm(i)||Im(i,e)||zm(i,e)||Fm()}function Dm(i){if(Array.isArray(i))return i}function Im(i,e){var t=i==null?null:typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(t!=null){var s=[],n=!0,r=!1,a,o;try{for(t=t.call(i);!(n=(a=t.next()).done)&&(s.push(a.value),!(e&&s.length===e));n=!0);}catch(l){r=!0,o=l}finally{try{!n&&t.return!=null&&t.return()}finally{if(r)throw o}}return s}}function zm(i,e){if(!!i){if(typeof i=="string")return rh(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return rh(i,e)}}function rh(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,s=new Array(e);t<e;t++)s[t]=i[t];return s}function Fm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Rm=function(){function i(e){Lm(this,i),this.defaults={name:"load",loadingClass:"is-loading",loadedClass:"is-loaded",readyClass:"is-ready",transitionsPrefix:"is-",transitionsHistory:!0,enterDelay:0,exitDelay:0,loadedDelay:0,isLoaded:!1,isEntered:!1,isUrl:!1,transitionContainer:null,popstateIgnore:!1},Object.assign(this,this.defaults,e),this.options=e,this.namespace="modular",this.html=document.documentElement,this.href=window.location.href,this.container="data-"+this.name+"-container",this.subContainer=!1,this.prevTransition=null,this.loadAttributes=["src","srcset","style","href"],this.isInserted=!1,this.isLoading=!1,this.enterTimeout=!1,this.controller=new AbortController,this.classContainer=this.html,this.isChrome=navigator.userAgent.indexOf("Chrome")!=-1,this.init()}return $m(i,[{key:"init",value:function(){var t=this;window.addEventListener("popstate",function(s){return t.checkState(s)},!1),this.html.addEventListener("click",function(s){return t.checkClick(s)},!1),this.loadEls(document)}},{key:"checkClick",value:function(t){if(!t.ctrlKey&&!t.metaKey)for(var s=t.target;s&&s!==document;){if(s.matches("a")&&s.getAttribute("download")==null){var n=s.getAttribute("href");!n.startsWith("#")&&!n.startsWith("mailto:")&&!n.startsWith("tel:")&&(t.preventDefault(),this.reset(),this.getClickOptions(s));break}s=s.parentNode}}},{key:"checkState",value:function(){typeof this.popstateIgnore=="string"&&window.location.href.indexOf(this.popstateIgnore)>-1||(this.reset(),this.getStateOptions())}},{key:"reset",value:function(){this.isLoading&&(this.controller.abort(),this.isLoading=!1,this.controller=new AbortController),window.clearTimeout(this.enterTimeout),this.isInserted&&this.removeContainer(),this.classContainer=this.html,Object.assign(this,this.defaults,this.options)}},{key:"getClickOptions",value:function(t){this.transition=t.getAttribute("data-"+this.name),this.isUrl=t.getAttribute("data-"+this.name+"-url");var s=t.getAttribute("href"),n=t.getAttribute("target");if(n=="_blank"){window.open(s,"_blank");return}if(this.transition=="false"){window.location=s;return}this.setOptions(s,!0)}},{key:"getStateOptions",value:function(){this.transitionsHistory?this.transition=history.state:this.transition=!1;var t=window.location.href;this.setOptions(t)}},{key:"goTo",value:function(t,s,n){this.reset(),this.transition=s,this.isUrl=n,this.setOptions(t,!0)}},{key:"setOptions",value:function(t,s){var n="["+this.container+"]",r;this.transition&&this.transition!="true"&&(this.transitionContainer="["+this.container+'="'+this.transition+'"]',this.loadingClass=this.transitions[this.transition].loadingClass||this.loadingClass,this.loadedClass=this.transitions[this.transition].loadedClass||this.loadedClass,this.readyClass=this.transitions[this.transition].readyClass||this.readyClass,this.transitionsPrefix=this.transitions[this.transition].transitionsPrefix||this.transitionsPrefix,this.enterDelay=this.transitions[this.transition].enterDelay||this.enterDelay,this.exitDelay=this.transitions[this.transition].exitDelay||this.exitDelay,this.loadedDelay=this.transitions[this.transition].loadedDelay||this.loadedDelay,r=document.querySelector(this.transitionContainer)),r?(n=this.transitionContainer,this.oldContainer=r,this.classContainer=this.oldContainer.parentNode,this.subContainer||history.replaceState(this.transition,null,this.href),this.subContainer=!0):(this.oldContainer=document.querySelector(n),this.subContainer&&history.replaceState(this.prevTransition,null,this.href),this.subContainer=!1),this.href=t,this.parentContainer=this.oldContainer.parentNode,this.isUrl===""||this.isUrl!=null&&this.isUrl!="false"&&this.isUrl!=!1?history.pushState(this.transition,null,t):(this.oldContainer.classList.add("is-old"),this.setLoading(),this.startEnterDelay(),this.loadHref(t,n,s))}},{key:"setLoading",value:function(){this.classContainer.classList.remove(this.loadedClass,this.readyClass),this.classContainer.classList.add(this.loadingClass),this.classContainer.classList.remove(this.transitionsPrefix+this.prevTransition),this.transition&&this.classContainer.classList.add(this.transitionsPrefix+this.transition),this.subContainer||(this.prevTransition=this.transition);var t=new Event(this.namespace+"loading");window.dispatchEvent(t)}},{key:"startEnterDelay",value:function(){var t=this;this.enterTimeout=window.setTimeout(function(){t.isEntered=!0,t.isLoaded&&t.transitionContainers()},this.enterDelay)}},{key:"loadHref",value:function(t,s,n){var r=this;this.isLoading=!0;var a=this.controller.signal;fetch(t,{signal:a}).then(function(o){return o.text()}).then(function(o){n&&history.pushState(r.transition,null,t);var l=new DOMParser;r.data=l.parseFromString(o,"text/html"),r.newContainer=r.data.querySelector(s),r.newContainer.classList.add("is-new"),r.parentNewContainer=r.newContainer.parentNode,r.hideContainer(),r.parentContainer.insertBefore(r.newContainer,r.oldContainer),r.isInserted=!0,r.setSvgs(),r.isLoaded=!0,r.isEntered&&r.transitionContainers(),r.loadEls(r.newContainer),r.isLoading=!1}).catch(function(o){window.location=t})}},{key:"transitionContainers",value:function(){var t=this;this.setAttributes(),this.showContainer(),this.setLoaded(),setTimeout(function(){t.removeContainer(),t.setReady()},this.exitDelay)}},{key:"setSvgs",value:function(){if(this.isChrome){var t=this.newContainer.querySelectorAll("use");t.length&&t.forEach(function(s){var n=s.getAttribute("xlink:href");if(n)s.parentNode.innerHTML='<use xlink:href="'+n+'"></use>';else{var r=s.getAttribute("href");r&&(s.parentNode.innerHTML='<use href="'+r+'"></use>')}})}}},{key:"setAttributes",value:function(){var t=this,s=this.data.getElementsByTagName("title")[0],n=this.data.head.querySelector('meta[name="description"]'),r=document.head.querySelector('meta[name="description"]'),a,o;this.subContainer?(o=this.parentNewContainer,a=document.querySelector(this.transitionContainer).parentNode):(o=this.data.querySelector("html"),a=document.querySelector("html"));var l=Object.assign({},o.dataset);s&&(document.title=s.innerText),r&&n&&r.setAttribute("content",n.getAttribute("content")),l&&Object.entries(l).forEach(function(c){var d=Om(c,2),u=d[0],h=d[1];a.setAttribute("data-"+t.toDash(u),h)})}},{key:"toDash",value:function(t){return t.split(/(?=[A-Z])/).join("-").toLowerCase()}},{key:"hideContainer",value:function(){this.newContainer.style.visibility="hidden",this.newContainer.style.height=0,this.newContainer.style.overflow="hidden"}},{key:"showContainer",value:function(){this.newContainer.style.visibility="",this.newContainer.style.height="",this.newContainer.style.overflow=""}},{key:"loadEls",value:function(t){var s=this,n=[];this.loadAttributes.forEach(function(r){var a="data-"+s.name+"-"+r,o=t.querySelectorAll("["+a+"]");o.length&&o.forEach(function(l){var c=l.getAttribute(a);if(l.setAttribute(r,c),r=="src"||r=="srcset"){var d=new Promise(function(u){l.onload=function(){return u(l)}});n.push(d)}})}),Promise.all(n).then(function(r){var a=new Event(s.namespace+"images");window.dispatchEvent(a)})}},{key:"setLoaded",value:function(){var t=this;this.classContainer.classList.remove(this.loadingClass),setTimeout(function(){t.classContainer.classList.add(t.loadedClass)},this.loadedDelay);var s=new Event(this.namespace+"loaded");window.dispatchEvent(s)}},{key:"removeContainer",value:function(){this.parentContainer.removeChild(this.oldContainer),this.newContainer.classList.remove("is-new"),this.isInserted=!1}},{key:"setReady",value:function(){this.classContainer.classList.add(this.readyClass);var t=new Event(this.namespace+"ready");window.dispatchEvent(t)}},{key:"on",value:function(t,s){var n=this;window.addEventListener(this.namespace+t,function(){switch(t){case"loading":return s(n.transition,n.oldContainer);case"loaded":return s(n.transition,n.oldContainer,n.newContainer);case"ready":return s(n.transition,n.newContainer);default:return s()}},!1)}}]),i}(),ah=Rm;var Ns=class extends H{constructor(i){super(i)}init(){this.load=new ah({enterDelay:200,transitions:{}}),this.load.on("loading",(i,e)=>{}),this.load.on("loaded",(i,e,t)=>{this.call("destroy",e,"app"),this.call("update",t,"app")}),this.load.on("ready",i=>{this.call("updateBackUrl",j.dataset.backUrl,"Header")})}goTo(i){this.load.goTo(i.url,i.transition)}};function Xs(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function oh(i,e){for(var t=0;t<e.length;t++){var s=e[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}function Hs(i,e,t){return e&&oh(i.prototype,e),t&&oh(i,t),i}function Bm(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function lh(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,s)}return t}function Sa(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?lh(Object(t),!0).forEach(function(s){Bm(i,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):lh(Object(t)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(t,s))})}return i}function dh(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),e&&Ca(i,e)}function Ye(i){return Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ye(i)}function Ca(i,e){return Ca=Object.setPrototypeOf||function(s,n){return s.__proto__=n,s},Ca(i,e)}function Nm(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(i){return!1}}function uh(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Vm(i,e){return e&&(typeof e=="object"||typeof e=="function")?e:uh(i)}function hh(i){var e=Nm();return function(){var s=Ye(i),n;if(e){var r=Ye(this).constructor;n=Reflect.construct(s,arguments,r)}else n=s.apply(this,arguments);return Vm(this,n)}}function Ym(i,e){for(;!Object.prototype.hasOwnProperty.call(i,e)&&(i=Ye(i),i!==null););return i}function it(i,e,t){return typeof Reflect!="undefined"&&Reflect.get?it=Reflect.get:it=function(n,r,a){var o=Ym(n,r);if(!!o){var l=Object.getOwnPropertyDescriptor(o,r);return l.get?l.get.call(a):l.value}},it(i,e,t||i)}function Ut(i,e){return Wm(i)||jm(i,e)||fh(i,e)||Um()}function Xm(i){return Hm(i)||Gm(i)||fh(i)||qm()}function Hm(i){if(Array.isArray(i))return Ma(i)}function Wm(i){if(Array.isArray(i))return i}function Gm(i){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(i))return Array.from(i)}function jm(i,e){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(i)))){var t=[],s=!0,n=!1,r=void 0;try{for(var a=i[Symbol.iterator](),o;!(s=(o=a.next()).done)&&(t.push(o.value),!(e&&t.length===e));s=!0);}catch(l){n=!0,r=l}finally{try{!s&&a.return!=null&&a.return()}finally{if(n)throw r}}return t}}function fh(i,e){if(!!i){if(typeof i=="string")return Ma(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ma(i,e)}}function Ma(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,s=new Array(e);t<e;t++)s[t]=i[t];return s}function qm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Um(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Kt={el:document,name:"scroll",offset:[0,0],repeat:!1,smooth:!1,initPosition:{x:0,y:0},direction:"vertical",gestureDirection:"vertical",reloadOnContextChange:!1,lerp:.1,class:"is-inview",scrollbarContainer:!1,scrollbarClass:"c-scrollbar",scrollingClass:"has-scroll-scrolling",draggingClass:"has-scroll-dragging",smoothClass:"has-scroll-smooth",initClass:"has-scroll-init",getSpeed:!1,getDirection:!1,scrollFromAnywhere:!1,multiplier:1,firefoxMultiplier:50,touchMultiplier:2,resetNativeScroll:!0,tablet:{smooth:!1,direction:"vertical",gestureDirection:"vertical",breakpoint:1024},smartphone:{smooth:!1,direction:"vertical",gestureDirection:"vertical"}},ph=function(){function i(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xs(this,i),Object.assign(this,Kt,e),this.smartphone=Kt.smartphone,e.smartphone&&Object.assign(this.smartphone,e.smartphone),this.tablet=Kt.tablet,e.tablet&&Object.assign(this.tablet,e.tablet),this.namespace="locomotive",this.html=document.documentElement,this.windowHeight=window.innerHeight,this.windowWidth=window.innerWidth,this.windowMiddle={x:this.windowWidth/2,y:this.windowHeight/2},this.els={},this.currentElements={},this.listeners={},this.hasScrollTicking=!1,this.hasCallEventSet=!1,this.checkScroll=this.checkScroll.bind(this),this.checkResize=this.checkResize.bind(this),this.checkEvent=this.checkEvent.bind(this),this.instance={scroll:{x:0,y:0},limit:{x:this.html.offsetWidth,y:this.html.offsetHeight},currentElements:this.currentElements},this.isMobile?this.isTablet?this.context="tablet":this.context="smartphone":this.context="desktop",this.isMobile&&(this.direction=this[this.context].direction),this.direction==="horizontal"?this.directionAxis="x":this.directionAxis="y",this.getDirection&&(this.instance.direction=null),this.getDirection&&(this.instance.speed=0),this.html.classList.add(this.initClass),window.addEventListener("resize",this.checkResize,!1)}return Hs(i,[{key:"init",value:function(){this.initEvents()}},{key:"checkScroll",value:function(){this.dispatchScroll()}},{key:"checkResize",value:function(){var t=this;this.resizeTick||(this.resizeTick=!0,requestAnimationFrame(function(){t.resize(),t.resizeTick=!1}))}},{key:"resize",value:function(){}},{key:"checkContext",value:function(){if(!!this.reloadOnContextChange){this.isMobile=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1||this.windowWidth<this.tablet.breakpoint,this.isTablet=this.isMobile&&this.windowWidth>=this.tablet.breakpoint;var t=this.context;if(this.isMobile?this.isTablet?this.context="tablet":this.context="smartphone":this.context="desktop",t!=this.context){var s=t=="desktop"?this.smooth:this[t].smooth,n=this.context=="desktop"?this.smooth:this[this.context].smooth;s!=n&&window.location.reload()}}}},{key:"initEvents",value:function(){var t=this;this.scrollToEls=this.el.querySelectorAll("[data-".concat(this.name,"-to]")),this.setScrollTo=this.setScrollTo.bind(this),this.scrollToEls.forEach(function(s){s.addEventListener("click",t.setScrollTo,!1)})}},{key:"setScrollTo",value:function(t){t.preventDefault(),this.scrollTo(t.currentTarget.getAttribute("data-".concat(this.name,"-href"))||t.currentTarget.getAttribute("href"),{offset:t.currentTarget.getAttribute("data-".concat(this.name,"-offset"))})}},{key:"addElements",value:function(){}},{key:"detectElements",value:function(t){var s=this,n=this.instance.scroll.y,r=n+this.windowHeight,a=this.instance.scroll.x,o=a+this.windowWidth;Object.entries(this.els).forEach(function(l){var c=Ut(l,2),d=c[0],u=c[1];if(u&&(!u.inView||t)&&(s.direction==="horizontal"?o>=u.left&&a<u.right&&s.setInView(u,d):r>=u.top&&n<u.bottom&&s.setInView(u,d)),u&&u.inView)if(s.direction==="horizontal"){var h=u.right-u.left;u.progress=(s.instance.scroll.x-(u.left-s.windowWidth))/(h+s.windowWidth),(o<u.left||a>u.right)&&s.setOutOfView(u,d)}else{var f=u.bottom-u.top;u.progress=(s.instance.scroll.y-(u.top-s.windowHeight))/(f+s.windowHeight),(r<u.top||n>u.bottom)&&s.setOutOfView(u,d)}}),this.hasScrollTicking=!1}},{key:"setInView",value:function(t,s){this.els[s].inView=!0,t.el.classList.add(t.class),this.currentElements[s]=t,t.call&&this.hasCallEventSet&&(this.dispatchCall(t,"enter"),t.repeat||(this.els[s].call=!1))}},{key:"setOutOfView",value:function(t,s){var n=this;this.els[s].inView=!1,Object.keys(this.currentElements).forEach(function(r){r===s&&delete n.currentElements[r]}),t.call&&this.hasCallEventSet&&this.dispatchCall(t,"exit"),t.repeat&&t.el.classList.remove(t.class)}},{key:"dispatchCall",value:function(t,s){this.callWay=s,this.callValue=t.call.split(",").map(function(r){return r.trim()}),this.callObj=t,this.callValue.length==1&&(this.callValue=this.callValue[0]);var n=new Event(this.namespace+"call");this.el.dispatchEvent(n)}},{key:"dispatchScroll",value:function(){var t=new Event(this.namespace+"scroll");this.el.dispatchEvent(t)}},{key:"setEvents",value:function(t,s){this.listeners[t]||(this.listeners[t]=[]);var n=this.listeners[t];n.push(s),n.length===1&&this.el.addEventListener(this.namespace+t,this.checkEvent,!1),t==="call"&&(this.hasCallEventSet=!0,this.detectElements(!0))}},{key:"unsetEvents",value:function(t,s){if(!!this.listeners[t]){var n=this.listeners[t],r=n.indexOf(s);r<0||(n.splice(r,1),n.index===0&&this.el.removeEventListener(this.namespace+t,this.checkEvent,!1))}}},{key:"checkEvent",value:function(t){var s=this,n=t.type.replace(this.namespace,""),r=this.listeners[n];!r||r.length===0||r.forEach(function(a){switch(n){case"scroll":return a(s.instance);case"call":return a(s.callValue,s.callWay,s.callObj);default:return a()}})}},{key:"startScroll",value:function(){}},{key:"stopScroll",value:function(){}},{key:"setScroll",value:function(t,s){this.instance.scroll={x:0,y:0}}},{key:"destroy",value:function(){var t=this;window.removeEventListener("resize",this.checkResize,!1),Object.keys(this.listeners).forEach(function(s){t.el.removeEventListener(t.namespace+s,t.checkEvent,!1)}),this.listeners={},this.scrollToEls.forEach(function(s){s.removeEventListener("click",t.setScrollTo,!1)}),this.html.classList.remove(this.initClass)}}]),i}(),Km=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function mh(i,e){return e={exports:{}},i(e,e.exports),e.exports}var gh=mh(function(i,e){(function(){function t(){var s=window,n=document;if("scrollBehavior"in n.documentElement.style&&s.__forceSmoothScrollPolyfill__!==!0)return;var r=s.HTMLElement||s.Element,a=468,o={scroll:s.scroll||s.scrollTo,scrollBy:s.scrollBy,elementScroll:r.prototype.scroll||u,scrollIntoView:r.prototype.scrollIntoView},l=s.performance&&s.performance.now?s.performance.now.bind(s.performance):Date.now;function c(y){var b=["MSIE ","Trident/","Edge/"];return new RegExp(b.join("|")).test(y)}var d=c(s.navigator.userAgent)?1:0;function u(y,b){this.scrollLeft=y,this.scrollTop=b}function h(y){return .5*(1-Math.cos(Math.PI*y))}function f(y){if(y===null||typeof y!="object"||y.behavior===void 0||y.behavior==="auto"||y.behavior==="instant")return!0;if(typeof y=="object"&&y.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+y.behavior+" is not a valid value for enumeration ScrollBehavior.")}function m(y,b){if(b==="Y")return y.clientHeight+d<y.scrollHeight;if(b==="X")return y.clientWidth+d<y.scrollWidth}function p(y,b){var x=s.getComputedStyle(y,null)["overflow"+b];return x==="auto"||x==="scroll"}function g(y){var b=m(y,"Y")&&p(y,"Y"),x=m(y,"X")&&p(y,"X");return b||x}function v(y){for(;y!==n.body&&g(y)===!1;)y=y.parentNode||y.host;return y}function E(y){var b=l(),x,S,T,w=(b-y.startTime)/a;w=w>1?1:w,x=h(w),S=y.startX+(y.x-y.startX)*x,T=y.startY+(y.y-y.startY)*x,y.method.call(y.scrollable,S,T),(S!==y.x||T!==y.y)&&s.requestAnimationFrame(E.bind(s,y))}function _(y,b,x){var S,T,w,C,M=l();y===n.body?(S=s,T=s.scrollX||s.pageXOffset,w=s.scrollY||s.pageYOffset,C=o.scroll):(S=y,T=y.scrollLeft,w=y.scrollTop,C=u),E({scrollable:S,method:C,startTime:M,startX:T,startY:w,x:b,y:x})}s.scroll=s.scrollTo=function(){if(arguments[0]!==void 0){if(f(arguments[0])===!0){o.scroll.call(s,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:s.scrollX||s.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:s.scrollY||s.pageYOffset);return}_.call(s,n.body,arguments[0].left!==void 0?~~arguments[0].left:s.scrollX||s.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:s.scrollY||s.pageYOffset)}},s.scrollBy=function(){if(arguments[0]!==void 0){if(f(arguments[0])){o.scrollBy.call(s,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}_.call(s,n.body,~~arguments[0].left+(s.scrollX||s.pageXOffset),~~arguments[0].top+(s.scrollY||s.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(f(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var y=arguments[0].left,b=arguments[0].top;_.call(this,this,typeof y=="undefined"?this.scrollLeft:~~y,typeof b=="undefined"?this.scrollTop:~~b)}},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(f(arguments[0])===!0){o.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(f(arguments[0])===!0){o.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var y=v(this),b=y.getBoundingClientRect(),x=this.getBoundingClientRect();y!==n.body?(_.call(this,y,y.scrollLeft+x.left-b.left,y.scrollTop+x.top-b.top),s.getComputedStyle(y).position!=="fixed"&&s.scrollBy({left:b.left,top:b.top,behavior:"smooth"})):s.scrollBy({left:x.left,top:x.top,behavior:"smooth"})}}i.exports={polyfill:t}})()}),gT=gh.polyfill,Qm=function(i){dh(t,i);var e=hh(t);function t(){var s,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Xs(this,t),s=e.call(this,n),s.resetNativeScroll&&(history.scrollRestoration&&(history.scrollRestoration="manual"),window.scrollTo(0,0)),window.addEventListener("scroll",s.checkScroll,!1),window.smoothscrollPolyfill===void 0&&(window.smoothscrollPolyfill=gh,window.smoothscrollPolyfill.polyfill()),s}return Hs(t,[{key:"init",value:function(){this.instance.scroll.y=window.pageYOffset,this.addElements(),this.detectElements(),it(Ye(t.prototype),"init",this).call(this)}},{key:"checkScroll",value:function(){var n=this;it(Ye(t.prototype),"checkScroll",this).call(this),this.getDirection&&this.addDirection(),this.getSpeed&&(this.addSpeed(),this.speedTs=Date.now()),this.instance.scroll.y=window.pageYOffset,Object.entries(this.els).length&&(this.hasScrollTicking||(requestAnimationFrame(function(){n.detectElements()}),this.hasScrollTicking=!0))}},{key:"addDirection",value:function(){window.pageYOffset>this.instance.scroll.y?this.instance.direction!=="down"&&(this.instance.direction="down"):window.pageYOffset<this.instance.scroll.y&&this.instance.direction!=="up"&&(this.instance.direction="up")}},{key:"addSpeed",value:function(){window.pageYOffset!=this.instance.scroll.y?this.instance.speed=(window.pageYOffset-this.instance.scroll.y)/Math.max(1,Date.now()-this.speedTs):this.instance.speed=0}},{key:"resize",value:function(){Object.entries(this.els).length&&(this.windowHeight=window.innerHeight,this.updateElements())}},{key:"addElements",value:function(){var n=this;this.els={};var r=this.el.querySelectorAll("[data-"+this.name+"]");r.forEach(function(a,o){var l=a.getBoundingClientRect(),c=a.dataset[n.name+"Class"]||n.class,d=typeof a.dataset[n.name+"Id"]=="string"?a.dataset[n.name+"Id"]:o,u,h,f=typeof a.dataset[n.name+"Offset"]=="string"?a.dataset[n.name+"Offset"].split(","):n.offset,m=a.dataset[n.name+"Repeat"],p=a.dataset[n.name+"Call"],g=a.dataset[n.name+"Target"],v;g!==void 0?v=document.querySelector("".concat(g)):v=a;var E=v.getBoundingClientRect();u=E.top+n.instance.scroll.y,h=E.left+n.instance.scroll.x;var _=u+v.offsetHeight,y=h+v.offsetWidth;m=="false"?m=!1:m!=null?m=!0:m=n.repeat;var b=n.getRelativeOffset(f);u=u+b[0],_=_-b[1];var x={el:a,targetEl:v,id:d,class:c,top:u,bottom:_,left:h,right:y,offset:f,progress:0,repeat:m,inView:!1,call:p};n.els[d]=x,a.classList.contains(c)&&n.setInView(n.els[d],d)})}},{key:"updateElements",value:function(){var n=this;Object.entries(this.els).forEach(function(r){var a=Ut(r,2),o=a[0],l=a[1],c=l.targetEl.getBoundingClientRect().top+n.instance.scroll.y,d=c+l.targetEl.offsetHeight,u=n.getRelativeOffset(l.offset);n.els[o].top=c+u[0],n.els[o].bottom=d-u[1]}),this.hasScrollTicking=!1}},{key:"getRelativeOffset",value:function(n){var r=[0,0];if(n)for(var a=0;a<n.length;a++)typeof n[a]=="string"?n[a].includes("%")?r[a]=parseInt(n[a].replace("%","")*this.windowHeight/100):r[a]=parseInt(n[a]):r[a]=n[a];return r}},{key:"scrollTo",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=parseInt(r.offset)||0,o=r.callback?r.callback:!1;if(typeof n=="string"){if(n==="top")n=this.html;else if(n==="bottom")n=this.html.offsetHeight-window.innerHeight;else if(n=document.querySelector(n),!n)return}else if(typeof n=="number")n=parseInt(n);else if(!(n&&n.tagName)){console.warn("`target` parameter is not valid");return}typeof n!="number"?a=n.getBoundingClientRect().top+a+this.instance.scroll.y:a=n+a;var l=function(){return parseInt(window.pageYOffset)===parseInt(a)};if(o)if(l()){o();return}else{var c=function d(){l()&&(window.removeEventListener("scroll",d),o())};window.addEventListener("scroll",c)}window.scrollTo({top:a,behavior:r.duration===0?"auto":"smooth"})}},{key:"update",value:function(){this.addElements(),this.detectElements()}},{key:"destroy",value:function(){it(Ye(t.prototype),"destroy",this).call(this),window.removeEventListener("scroll",this.checkScroll,!1)}}]),t}(ph);var ch=Object.getOwnPropertySymbols,Zm=Object.prototype.hasOwnProperty,Jm=Object.prototype.propertyIsEnumerable;function eg(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function tg(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;var s=Object.getOwnPropertyNames(e).map(function(r){return e[r]});if(s.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(r){n[r]=r}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(r){return!1}}var ig=tg()?Object.assign:function(i,e){for(var t,s=eg(i),n,r=1;r<arguments.length;r++){t=Object(arguments[r]);for(var a in t)Zm.call(t,a)&&(s[a]=t[a]);if(ch){n=ch(t);for(var o=0;o<n.length;o++)Jm.call(t,n[o])&&(s[n[o]]=t[n[o]])}}return s};function vh(){}vh.prototype={on:function(i,e,t){var s=this.e||(this.e={});return(s[i]||(s[i]=[])).push({fn:e,ctx:t}),this},once:function(i,e,t){var s=this;function n(){s.off(i,n),e.apply(t,arguments)}return n._=e,this.on(i,n,t)},emit:function(i){var e=[].slice.call(arguments,1),t=((this.e||(this.e={}))[i]||[]).slice(),s=0,n=t.length;for(s;s<n;s++)t[s].fn.apply(t[s].ctx,e);return this},off:function(i,e){var t=this.e||(this.e={}),s=t[i],n=[];if(s&&e)for(var r=0,a=s.length;r<a;r++)s[r].fn!==e&&s[r].fn._!==e&&n.push(s[r]);return n.length?t[i]=n:delete t[i],this}};var sg=vh,ng=mh(function(i,e){(function(){var t;t=e!==null?e:this,t.Lethargy=function(){function s(n,r,a,o){this.stability=n!=null?Math.abs(n):8,this.sensitivity=r!=null?1+Math.abs(r):100,this.tolerance=a!=null?1+Math.abs(a):1.1,this.delay=o!=null?o:150,this.lastUpDeltas=function(){var l,c,d;for(d=[],l=1,c=this.stability*2;1<=c?l<=c:l>=c;1<=c?l++:l--)d.push(null);return d}.call(this),this.lastDownDeltas=function(){var l,c,d;for(d=[],l=1,c=this.stability*2;1<=c?l<=c:l>=c;1<=c?l++:l--)d.push(null);return d}.call(this),this.deltasTimestamp=function(){var l,c,d;for(d=[],l=1,c=this.stability*2;1<=c?l<=c:l>=c;1<=c?l++:l--)d.push(null);return d}.call(this)}return s.prototype.check=function(n){var r;return n=n.originalEvent||n,n.wheelDelta!=null?r=n.wheelDelta:n.deltaY!=null?r=n.deltaY*-40:(n.detail!=null||n.detail===0)&&(r=n.detail*-40),this.deltasTimestamp.push(Date.now()),this.deltasTimestamp.shift(),r>0?(this.lastUpDeltas.push(r),this.lastUpDeltas.shift(),this.isInertia(1)):(this.lastDownDeltas.push(r),this.lastDownDeltas.shift(),this.isInertia(-1))},s.prototype.isInertia=function(n){var r,a,o,l,c,d,u;return r=n===-1?this.lastDownDeltas:this.lastUpDeltas,r[0]===null?n:this.deltasTimestamp[this.stability*2-2]+this.delay>Date.now()&&r[0]===r[this.stability*2-1]?!1:(o=r.slice(0,this.stability),a=r.slice(this.stability,this.stability*2),u=o.reduce(function(h,f){return h+f}),c=a.reduce(function(h,f){return h+f}),d=u/o.length,l=c/a.length,Math.abs(d)<Math.abs(l*this.tolerance)&&this.sensitivity<Math.abs(l)?n:!1)},s.prototype.showLastUpDeltas=function(){return this.lastUpDeltas},s.prototype.showLastDownDeltas=function(){return this.lastDownDeltas},s}()}).call(Km)}),Le=function(){return{hasWheelEvent:"onwheel"in document,hasMouseWheelEvent:"onmousewheel"in document,hasTouch:"ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,hasTouchWin:navigator.msMaxTouchPoints&&navigator.msMaxTouchPoints>1,hasPointer:!!window.navigator.msPointerEnabled,hasKeyDown:"onkeydown"in document,isFirefox:navigator.userAgent.indexOf("Firefox")>-1}}(),rg=Object.prototype.toString,ag=Object.prototype.hasOwnProperty,og=function(i){if(!i)return console.warn("bindAll requires at least one argument.");var e=Array.prototype.slice.call(arguments,1);if(e.length===0)for(var t in i)ag.call(i,t)&&typeof i[t]=="function"&&rg.call(i[t])=="[object Function]"&&e.push(t);for(var s=0;s<e.length;s++){var n=e[s];i[n]=lg(i[n],i)}};function lg(i,e){return function(){return i.apply(e,arguments)}}var cg=ng.Lethargy,Lt="virtualscroll",dg=$e,Ci={LEFT:37,UP:38,RIGHT:39,DOWN:40,SPACE:32};function $e(i){og(this,"_onWheel","_onMouseWheel","_onTouchStart","_onTouchMove","_onKeyDown"),this.el=window,i&&i.el&&(this.el=i.el,delete i.el),this.options=ig({mouseMultiplier:1,touchMultiplier:2,firefoxMultiplier:15,keyStep:120,preventTouch:!1,unpreventTouchClass:"vs-touchmove-allowed",limitInertia:!1,useKeyboard:!0,useTouch:!0},i),this.options.limitInertia&&(this._lethargy=new cg),this._emitter=new sg,this._event={y:0,x:0,deltaX:0,deltaY:0},this.touchStartX=null,this.touchStartY=null,this.bodyTouchAction=null,this.options.passive!==void 0&&(this.listenerOptions={passive:this.options.passive})}$e.prototype._notify=function(i){var e=this._event;e.x+=e.deltaX,e.y+=e.deltaY,this._emitter.emit(Lt,{x:e.x,y:e.y,deltaX:e.deltaX,deltaY:e.deltaY,originalEvent:i})};$e.prototype._onWheel=function(i){var e=this.options;if(!(this._lethargy&&this._lethargy.check(i)===!1)){var t=this._event;t.deltaX=i.wheelDeltaX||i.deltaX*-1,t.deltaY=i.wheelDeltaY||i.deltaY*-1,Le.isFirefox&&i.deltaMode==1&&(t.deltaX*=e.firefoxMultiplier,t.deltaY*=e.firefoxMultiplier),t.deltaX*=e.mouseMultiplier,t.deltaY*=e.mouseMultiplier,this._notify(i)}};$e.prototype._onMouseWheel=function(i){if(!(this.options.limitInertia&&this._lethargy.check(i)===!1)){var e=this._event;e.deltaX=i.wheelDeltaX?i.wheelDeltaX:0,e.deltaY=i.wheelDeltaY?i.wheelDeltaY:i.wheelDelta,this._notify(i)}};$e.prototype._onTouchStart=function(i){var e=i.targetTouches?i.targetTouches[0]:i;this.touchStartX=e.pageX,this.touchStartY=e.pageY};$e.prototype._onTouchMove=function(i){var e=this.options;e.preventTouch&&!i.target.classList.contains(e.unpreventTouchClass)&&i.preventDefault();var t=this._event,s=i.targetTouches?i.targetTouches[0]:i;t.deltaX=(s.pageX-this.touchStartX)*e.touchMultiplier,t.deltaY=(s.pageY-this.touchStartY)*e.touchMultiplier,this.touchStartX=s.pageX,this.touchStartY=s.pageY,this._notify(i)};$e.prototype._onKeyDown=function(i){var e=this._event;e.deltaX=e.deltaY=0;var t=window.innerHeight-40;switch(i.keyCode){case Ci.LEFT:case Ci.UP:e.deltaY=this.options.keyStep;break;case Ci.RIGHT:case Ci.DOWN:e.deltaY=-this.options.keyStep;break;case i.shiftKey:e.deltaY=t;break;case Ci.SPACE:e.deltaY=-t;break;default:return}this._notify(i)};$e.prototype._bind=function(){Le.hasWheelEvent&&this.el.addEventListener("wheel",this._onWheel,this.listenerOptions),Le.hasMouseWheelEvent&&this.el.addEventListener("mousewheel",this._onMouseWheel,this.listenerOptions),Le.hasTouch&&this.options.useTouch&&(this.el.addEventListener("touchstart",this._onTouchStart,this.listenerOptions),this.el.addEventListener("touchmove",this._onTouchMove,this.listenerOptions)),Le.hasPointer&&Le.hasTouchWin&&(this.bodyTouchAction=document.body.style.msTouchAction,document.body.style.msTouchAction="none",this.el.addEventListener("MSPointerDown",this._onTouchStart,!0),this.el.addEventListener("MSPointerMove",this._onTouchMove,!0)),Le.hasKeyDown&&this.options.useKeyboard&&document.addEventListener("keydown",this._onKeyDown)};$e.prototype._unbind=function(){Le.hasWheelEvent&&this.el.removeEventListener("wheel",this._onWheel),Le.hasMouseWheelEvent&&this.el.removeEventListener("mousewheel",this._onMouseWheel),Le.hasTouch&&(this.el.removeEventListener("touchstart",this._onTouchStart),this.el.removeEventListener("touchmove",this._onTouchMove)),Le.hasPointer&&Le.hasTouchWin&&(document.body.style.msTouchAction=this.bodyTouchAction,this.el.removeEventListener("MSPointerDown",this._onTouchStart,!0),this.el.removeEventListener("MSPointerMove",this._onTouchMove,!0)),Le.hasKeyDown&&this.options.useKeyboard&&document.removeEventListener("keydown",this._onKeyDown)};$e.prototype.on=function(i,e){this._emitter.on(Lt,i,e);var t=this._emitter.e;t&&t[Lt]&&t[Lt].length===1&&this._bind()};$e.prototype.off=function(i,e){this._emitter.off(Lt,i,e);var t=this._emitter.e;(!t[Lt]||t[Lt].length<=0)&&this._unbind()};$e.prototype.reset=function(){var i=this._event;i.x=0,i.y=0};$e.prototype.destroy=function(){this._emitter.off(),this._unbind()};function Ta(i,e,t){return(1-t)*i+t*e}function Be(i){var e={};if(!!window.getComputedStyle){var t=getComputedStyle(i),s=t.transform||t.webkitTransform||t.mozTransform,n=s.match(/^matrix3d\((.+)\)$/);return n?(e.x=n?parseFloat(n[1].split(", ")[12]):0,e.y=n?parseFloat(n[1].split(", ")[13]):0):(n=s.match(/^matrix\((.+)\)$/),e.x=n?parseFloat(n[1].split(", ")[4]):0,e.y=n?parseFloat(n[1].split(", ")[5]):0),e}}function wa(i){for(var e=[];i&&i!==document;i=i.parentNode)e.push(i);return e}var ug=4,hg=.001,fg=1e-7,pg=10,Mi=11,Vs=1/(Mi-1),mg=typeof Float32Array=="function";function yh(i,e){return 1-3*e+3*i}function bh(i,e){return 3*e-6*i}function xh(i){return 3*i}function Ys(i,e,t){return((yh(e,t)*i+bh(e,t))*i+xh(e))*i}function _h(i,e,t){return 3*yh(e,t)*i*i+2*bh(e,t)*i+xh(e)}function gg(i,e,t,s,n){var r,a,o=0;do a=e+(t-e)/2,r=Ys(a,s,n)-i,r>0?t=a:e=a;while(Math.abs(r)>fg&&++o<pg);return a}function vg(i,e,t,s){for(var n=0;n<ug;++n){var r=_h(e,t,s);if(r===0)return e;var a=Ys(e,t,s)-i;e-=a/r}return e}function yg(i){return i}var bg=function(e,t,s,n){if(!(0<=e&&e<=1&&0<=s&&s<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&s===n)return yg;for(var r=mg?new Float32Array(Mi):new Array(Mi),a=0;a<Mi;++a)r[a]=Ys(a*Vs,e,s);function o(l){for(var c=0,d=1,u=Mi-1;d!==u&&r[d]<=l;++d)c+=Vs;--d;var h=(l-r[d])/(r[d+1]-r[d]),f=c+h*Vs,m=_h(f,e,s);return m>=hg?vg(l,f,e,s):m===0?f:gg(l,c,c+Vs,e,s)}return function(c){return c===0?0:c===1?1:Ys(o(c),t,n)}},tt={LEFT:37,UP:38,RIGHT:39,DOWN:40,SPACE:32,TAB:9,PAGEUP:33,PAGEDOWN:34,HOME:36,END:35},xg=function(i){dh(t,i);var e=hh(t);function t(){var s,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Xs(this,t),history.scrollRestoration&&(history.scrollRestoration="manual"),window.scrollTo(0,0),s=e.call(this,n),s.inertia&&(s.lerp=s.inertia*.1),s.isScrolling=!1,s.isDraggingScrollbar=!1,s.isTicking=!1,s.hasScrollTicking=!1,s.parallaxElements={},s.stop=!1,s.scrollbarContainer=n.scrollbarContainer,s.checkKey=s.checkKey.bind(uh(s)),window.addEventListener("keydown",s.checkKey,!1),s}return Hs(t,[{key:"init",value:function(){var n=this;this.html.classList.add(this.smoothClass),this.html.setAttribute("data-".concat(this.name,"-direction"),this.direction),this.instance=Sa({delta:{x:this.initPosition.x,y:this.initPosition.y},scroll:{x:this.initPosition.x,y:this.initPosition.y}},this.instance),this.vs=new dg({el:this.scrollFromAnywhere?document:this.el,mouseMultiplier:navigator.platform.indexOf("Win")>-1?1:.4,firefoxMultiplier:this.firefoxMultiplier,touchMultiplier:this.touchMultiplier,useKeyboard:!1,passive:!0}),this.vs.on(function(r){n.stop||n.isDraggingScrollbar||requestAnimationFrame(function(){n.updateDelta(r),n.isScrolling||n.startScrolling()})}),this.setScrollLimit(),this.initScrollBar(),this.addSections(),this.addElements(),this.checkScroll(!0),this.transformElements(!0,!0),it(Ye(t.prototype),"init",this).call(this)}},{key:"setScrollLimit",value:function(){if(this.instance.limit.y=this.el.offsetHeight-this.windowHeight,this.direction==="horizontal"){for(var n=0,r=this.el.children,a=0;a<r.length;a++)n+=r[a].offsetWidth;this.instance.limit.x=n-this.windowWidth}}},{key:"startScrolling",value:function(){this.startScrollTs=Date.now(),this.isScrolling=!0,this.checkScroll(),this.html.classList.add(this.scrollingClass)}},{key:"stopScrolling",value:function(){cancelAnimationFrame(this.checkScrollRaf),this.startScrollTs=void 0,this.scrollToRaf&&(cancelAnimationFrame(this.scrollToRaf),this.scrollToRaf=null),this.isScrolling=!1,this.instance.scroll.y=Math.round(this.instance.scroll.y),this.html.classList.remove(this.scrollingClass)}},{key:"checkKey",value:function(n){var r=this;if(this.stop){n.keyCode==tt.TAB&&requestAnimationFrame(function(){r.html.scrollTop=0,document.body.scrollTop=0,r.html.scrollLeft=0,document.body.scrollLeft=0});return}switch(n.keyCode){case tt.TAB:requestAnimationFrame(function(){r.html.scrollTop=0,document.body.scrollTop=0,r.html.scrollLeft=0,document.body.scrollLeft=0,r.scrollTo(document.activeElement,{offset:-window.innerHeight/2})});break;case tt.UP:this.isActiveElementScrollSensitive()&&(this.instance.delta[this.directionAxis]-=240);break;case tt.DOWN:this.isActiveElementScrollSensitive()&&(this.instance.delta[this.directionAxis]+=240);break;case tt.PAGEUP:this.instance.delta[this.directionAxis]-=window.innerHeight;break;case tt.PAGEDOWN:this.instance.delta[this.directionAxis]+=window.innerHeight;break;case tt.HOME:this.instance.delta[this.directionAxis]-=this.instance.limit[this.directionAxis];break;case tt.END:this.instance.delta[this.directionAxis]+=this.instance.limit[this.directionAxis];break;case tt.SPACE:this.isActiveElementScrollSensitive()&&(n.shiftKey?this.instance.delta[this.directionAxis]-=window.innerHeight:this.instance.delta[this.directionAxis]+=window.innerHeight);break;default:return}this.instance.delta[this.directionAxis]<0&&(this.instance.delta[this.directionAxis]=0),this.instance.delta[this.directionAxis]>this.instance.limit[this.directionAxis]&&(this.instance.delta[this.directionAxis]=this.instance.limit[this.directionAxis]),this.stopScrolling(),this.isScrolling=!0,this.checkScroll(),this.html.classList.add(this.scrollingClass)}},{key:"isActiveElementScrollSensitive",value:function(){return!(document.activeElement instanceof HTMLInputElement)&&!(document.activeElement instanceof HTMLTextAreaElement)&&!(document.activeElement instanceof HTMLButtonElement)&&!(document.activeElement instanceof HTMLSelectElement)}},{key:"checkScroll",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(r||this.isScrolling||this.isDraggingScrollbar){this.hasScrollTicking||(this.checkScrollRaf=requestAnimationFrame(function(){return n.checkScroll()}),this.hasScrollTicking=!0),this.updateScroll();var a=Math.abs(this.instance.delta[this.directionAxis]-this.instance.scroll[this.directionAxis]),o=Date.now()-this.startScrollTs;if(!this.animatingScroll&&o>100&&(a<.5&&this.instance.delta[this.directionAxis]!=0||a<.5&&this.instance.delta[this.directionAxis]==0)&&this.stopScrolling(),Object.entries(this.sections).forEach(function(c){var d=Ut(c,2),u=d[0],h=d[1];h.persistent||n.instance.scroll[n.directionAxis]>h.offset[n.directionAxis]&&n.instance.scroll[n.directionAxis]<h.limit[n.directionAxis]?(n.direction==="horizontal"?n.transform(h.el,-n.instance.scroll[n.directionAxis],0):n.transform(h.el,0,-n.instance.scroll[n.directionAxis]),h.inView||(h.inView=!0,h.el.style.opacity=1,h.el.style.pointerEvents="all",h.el.setAttribute("data-".concat(n.name,"-section-inview"),""))):((h.inView||r)&&(h.inView=!1,h.el.style.opacity=0,h.el.style.pointerEvents="none",h.el.removeAttribute("data-".concat(n.name,"-section-inview"))),n.transform(h.el,0,0))}),this.getDirection&&this.addDirection(),this.getSpeed&&(this.addSpeed(),this.speedTs=Date.now()),this.detectElements(),this.transformElements(),this.hasScrollbar){var l=this.instance.scroll[this.directionAxis]/this.instance.limit[this.directionAxis]*this.scrollBarLimit[this.directionAxis];this.direction==="horizontal"?this.transform(this.scrollbarThumb,l,0):this.transform(this.scrollbarThumb,0,l)}it(Ye(t.prototype),"checkScroll",this).call(this),this.hasScrollTicking=!1}}},{key:"resize",value:function(){this.windowHeight=window.innerHeight,this.windowWidth=window.innerWidth,this.checkContext(),this.windowMiddle={x:this.windowWidth/2,y:this.windowHeight/2},this.update()}},{key:"updateDelta",value:function(n){var r,a=this[this.context]&&this[this.context].gestureDirection?this[this.context].gestureDirection:this.gestureDirection;a==="both"?r=n.deltaX+n.deltaY:a==="vertical"?r=n.deltaY:a==="horizontal"?r=n.deltaX:r=n.deltaY,this.instance.delta[this.directionAxis]-=r*this.multiplier,this.instance.delta[this.directionAxis]<0&&(this.instance.delta[this.directionAxis]=0),this.instance.delta[this.directionAxis]>this.instance.limit[this.directionAxis]&&(this.instance.delta[this.directionAxis]=this.instance.limit[this.directionAxis])}},{key:"updateScroll",value:function(n){this.isScrolling||this.isDraggingScrollbar?this.instance.scroll[this.directionAxis]=Ta(this.instance.scroll[this.directionAxis],this.instance.delta[this.directionAxis],this.lerp):this.instance.scroll[this.directionAxis]>this.instance.limit[this.directionAxis]?this.setScroll(this.instance.scroll[this.directionAxis],this.instance.limit[this.directionAxis]):this.instance.scroll.y<0?this.setScroll(this.instance.scroll[this.directionAxis],0):this.setScroll(this.instance.scroll[this.directionAxis],this.instance.delta[this.directionAxis])}},{key:"addDirection",value:function(){this.instance.delta.y>this.instance.scroll.y?this.instance.direction!=="down"&&(this.instance.direction="down"):this.instance.delta.y<this.instance.scroll.y&&this.instance.direction!=="up"&&(this.instance.direction="up"),this.instance.delta.x>this.instance.scroll.x?this.instance.direction!=="right"&&(this.instance.direction="right"):this.instance.delta.x<this.instance.scroll.x&&this.instance.direction!=="left"&&(this.instance.direction="left")}},{key:"addSpeed",value:function(){this.instance.delta[this.directionAxis]!=this.instance.scroll[this.directionAxis]?this.instance.speed=(this.instance.delta[this.directionAxis]-this.instance.scroll[this.directionAxis])/Math.max(1,Date.now()-this.speedTs):this.instance.speed=0}},{key:"initScrollBar",value:function(){if(this.scrollbar=document.createElement("span"),this.scrollbarThumb=document.createElement("span"),this.scrollbar.classList.add("".concat(this.scrollbarClass)),this.scrollbarThumb.classList.add("".concat(this.scrollbarClass,"_thumb")),this.scrollbar.append(this.scrollbarThumb),this.scrollbarContainer?this.scrollbarContainer.append(this.scrollbar):document.body.append(this.scrollbar),this.getScrollBar=this.getScrollBar.bind(this),this.releaseScrollBar=this.releaseScrollBar.bind(this),this.moveScrollBar=this.moveScrollBar.bind(this),this.scrollbarThumb.addEventListener("mousedown",this.getScrollBar),window.addEventListener("mouseup",this.releaseScrollBar),window.addEventListener("mousemove",this.moveScrollBar),this.hasScrollbar=!1,this.direction=="horizontal"){if(this.instance.limit.x+this.windowWidth<=this.windowWidth)return}else if(this.instance.limit.y+this.windowHeight<=this.windowHeight)return;this.hasScrollbar=!0,this.scrollbarBCR=this.scrollbar.getBoundingClientRect(),this.scrollbarHeight=this.scrollbarBCR.height,this.scrollbarWidth=this.scrollbarBCR.width,this.direction==="horizontal"?this.scrollbarThumb.style.width="".concat(this.scrollbarWidth*this.scrollbarWidth/(this.instance.limit.x+this.scrollbarWidth),"px"):this.scrollbarThumb.style.height="".concat(this.scrollbarHeight*this.scrollbarHeight/(this.instance.limit.y+this.scrollbarHeight),"px"),this.scrollbarThumbBCR=this.scrollbarThumb.getBoundingClientRect(),this.scrollBarLimit={x:this.scrollbarWidth-this.scrollbarThumbBCR.width,y:this.scrollbarHeight-this.scrollbarThumbBCR.height}}},{key:"reinitScrollBar",value:function(){if(this.hasScrollbar=!1,this.direction=="horizontal"){if(this.instance.limit.x+this.windowWidth<=this.windowWidth)return}else if(this.instance.limit.y+this.windowHeight<=this.windowHeight)return;this.hasScrollbar=!0,this.scrollbarBCR=this.scrollbar.getBoundingClientRect(),this.scrollbarHeight=this.scrollbarBCR.height,this.scrollbarWidth=this.scrollbarBCR.width,this.direction==="horizontal"?this.scrollbarThumb.style.width="".concat(this.scrollbarWidth*this.scrollbarWidth/(this.instance.limit.x+this.scrollbarWidth),"px"):this.scrollbarThumb.style.height="".concat(this.scrollbarHeight*this.scrollbarHeight/(this.instance.limit.y+this.scrollbarHeight),"px"),this.scrollbarThumbBCR=this.scrollbarThumb.getBoundingClientRect(),this.scrollBarLimit={x:this.scrollbarWidth-this.scrollbarThumbBCR.width,y:this.scrollbarHeight-this.scrollbarThumbBCR.height}}},{key:"destroyScrollBar",value:function(){this.scrollbarThumb.removeEventListener("mousedown",this.getScrollBar),window.removeEventListener("mouseup",this.releaseScrollBar),window.removeEventListener("mousemove",this.moveScrollBar),this.scrollbar.remove()}},{key:"getScrollBar",value:function(n){this.isDraggingScrollbar=!0,this.checkScroll(),this.html.classList.remove(this.scrollingClass),this.html.classList.add(this.draggingClass)}},{key:"releaseScrollBar",value:function(n){this.isDraggingScrollbar=!1,this.isScrolling&&this.html.classList.add(this.scrollingClass),this.html.classList.remove(this.draggingClass)}},{key:"moveScrollBar",value:function(n){var r=this;this.isDraggingScrollbar&&requestAnimationFrame(function(){var a=(n.clientX-r.scrollbarBCR.left)*100/r.scrollbarWidth*r.instance.limit.x/100,o=(n.clientY-r.scrollbarBCR.top)*100/r.scrollbarHeight*r.instance.limit.y/100;o>0&&o<r.instance.limit.y&&(r.instance.delta.y=o),a>0&&a<r.instance.limit.x&&(r.instance.delta.x=a)})}},{key:"addElements",value:function(){var n=this;this.els={},this.parallaxElements={};var r=this.el.querySelectorAll("[data-".concat(this.name,"]"));r.forEach(function(a,o){var l=wa(a),c=Object.entries(n.sections).map(function(ae){var le=Ut(ae,2),P=le[0],L=le[1];return L}).find(function(ae){return l.includes(ae.el)}),d=a.dataset[n.name+"Class"]||n.class,u=typeof a.dataset[n.name+"Id"]=="string"?a.dataset[n.name+"Id"]:"el"+o,h,f,m=a.dataset[n.name+"Repeat"],p=a.dataset[n.name+"Call"],g=a.dataset[n.name+"Position"],v=a.dataset[n.name+"Delay"],E=a.dataset[n.name+"Direction"],_=typeof a.dataset[n.name+"Sticky"]=="string",y=a.dataset[n.name+"Speed"]?parseFloat(a.dataset[n.name+"Speed"])/10:!1,b=typeof a.dataset[n.name+"Offset"]=="string"?a.dataset[n.name+"Offset"].split(","):n.offset,x=a.dataset[n.name+"Target"],S;x!==void 0?S=document.querySelector("".concat(x)):S=a;var T=S.getBoundingClientRect();c===null||c.inView?(h=T.top+n.instance.scroll.y-Be(S).y,f=T.left+n.instance.scroll.x-Be(S).x):(h=T.top-Be(c.el).y-Be(S).y,f=T.left-Be(c.el).x-Be(S).x);var w=h+S.offsetHeight,C=f+S.offsetWidth,M={x:(C-f)/2+f,y:(w-h)/2+h};if(_){var A=a.getBoundingClientRect(),$=A.top,k=A.left,B={x:k-f,y:$-h};h+=window.innerHeight,f+=window.innerWidth,w=$+S.offsetHeight-a.offsetHeight-B[n.directionAxis],C=k+S.offsetWidth-a.offsetWidth-B[n.directionAxis],M={x:(C-f)/2+f,y:(w-h)/2+h}}m=="false"?m=!1:m!=null?m=!0:m=n.repeat;var F=[0,0];if(b)if(n.direction==="horizontal"){for(var O=0;O<b.length;O++)typeof b[O]=="string"?b[O].includes("%")?F[O]=parseInt(b[O].replace("%","")*n.windowWidth/100):F[O]=parseInt(b[O]):F[O]=b[O];f=f+F[0],C=C-F[1]}else{for(var O=0;O<b.length;O++)typeof b[O]=="string"?b[O].includes("%")?F[O]=parseInt(b[O].replace("%","")*n.windowHeight/100):F[O]=parseInt(b[O]):F[O]=b[O];h=h+F[0],w=w-F[1]}var X={el:a,id:u,class:d,section:c,top:h,middle:M,bottom:w,left:f,right:C,offset:b,progress:0,repeat:m,inView:!1,call:p,speed:y,delay:v,position:g,target:S,direction:E,sticky:_};n.els[u]=X,a.classList.contains(d)&&n.setInView(n.els[u],u),(y!==!1||_)&&(n.parallaxElements[u]=X)})}},{key:"addSections",value:function(){var n=this;this.sections={};var r=this.el.querySelectorAll("[data-".concat(this.name,"-section]"));r.length===0&&(r=[this.el]),r.forEach(function(a,o){var l=typeof a.dataset[n.name+"Id"]=="string"?a.dataset[n.name+"Id"]:"section"+o,c=a.getBoundingClientRect(),d={x:c.left-window.innerWidth*1.5-Be(a).x,y:c.top-window.innerHeight*1.5-Be(a).y},u={x:d.x+c.width+window.innerWidth*2,y:d.y+c.height+window.innerHeight*2},h=typeof a.dataset[n.name+"Persistent"]=="string";a.setAttribute("data-scroll-section-id",l);var f={el:a,offset:d,limit:u,inView:!1,persistent:h,id:l};n.sections[l]=f})}},{key:"transform",value:function(n,r,a,o){var l;if(!o)l="matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,".concat(r,",").concat(a,",0,1)");else{var c=Be(n),d=Ta(c.x,r,o),u=Ta(c.y,a,o);l="matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,".concat(d,",").concat(u,",0,1)")}n.style.webkitTransform=l,n.style.msTransform=l,n.style.transform=l}},{key:"transformElements",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.instance.scroll.x+this.windowWidth,l=this.instance.scroll.y+this.windowHeight,c={x:this.instance.scroll.x+this.windowMiddle.x,y:this.instance.scroll.y+this.windowMiddle.y};Object.entries(this.parallaxElements).forEach(function(d){var u=Ut(d,2),h=u[0],f=u[1],m=!1;if(n&&(m=0),f.inView||a)switch(f.position){case"top":m=r.instance.scroll[r.directionAxis]*-f.speed;break;case"elementTop":m=(l-f.top)*-f.speed;break;case"bottom":m=(r.instance.limit[r.directionAxis]-l+r.windowHeight)*f.speed;break;case"left":m=r.instance.scroll[r.directionAxis]*-f.speed;break;case"elementLeft":m=(o-f.left)*-f.speed;break;case"right":m=(r.instance.limit[r.directionAxis]-o+r.windowHeight)*f.speed;break;default:m=(c[r.directionAxis]-f.middle[r.directionAxis])*-f.speed;break}f.sticky&&(f.inView?r.direction==="horizontal"?m=r.instance.scroll.x-f.left+window.innerWidth:m=r.instance.scroll.y-f.top+window.innerHeight:r.direction==="horizontal"?r.instance.scroll.x<f.left-window.innerWidth&&r.instance.scroll.x<f.left-window.innerWidth/2?m=0:r.instance.scroll.x>f.right&&r.instance.scroll.x>f.right+100?m=f.right-f.left+window.innerWidth:m=!1:r.instance.scroll.y<f.top-window.innerHeight&&r.instance.scroll.y<f.top-window.innerHeight/2?m=0:r.instance.scroll.y>f.bottom&&r.instance.scroll.y>f.bottom+100?m=f.bottom-f.top+window.innerHeight:m=!1),m!==!1&&(f.direction==="horizontal"||r.direction==="horizontal"&&f.direction!=="vertical"?r.transform(f.el,m,0,n?!1:f.delay):r.transform(f.el,0,m,n?!1:f.delay))})}},{key:"scrollTo",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=parseInt(a.offset)||0,l=isNaN(parseInt(a.duration))?1e3:parseInt(a.duration),c=a.easing||[.25,0,.35,1],d=!!a.disableLerp,u=a.callback?a.callback:!1;if(c=bg.apply(void 0,Xm(c)),typeof n=="string"){if(n==="top")n=0;else if(n==="bottom")n=this.instance.limit.y;else if(n==="left")n=0;else if(n==="right")n=this.instance.limit.x;else if(n=document.querySelector(n),!n)return}else if(typeof n=="number")n=parseInt(n);else if(!(n&&n.tagName)){console.warn("`target` parameter is not valid");return}if(typeof n!="number"){var h=wa(n).includes(this.el);if(!h)return;var f=n.getBoundingClientRect(),m=f.top,p=f.left,g=wa(n),v=g.find(function(w){return Object.entries(r.sections).map(function(C){var M=Ut(C,2),A=M[0],$=M[1];return $}).find(function(C){return C.el==w})}),E=0;v?E=Be(v)[this.directionAxis]:E=-this.instance.scroll[this.directionAxis],this.direction==="horizontal"?o=p+o-E:o=m+o-E}else o=n+o;var _=parseFloat(this.instance.delta[this.directionAxis]),y=Math.max(0,Math.min(o,this.instance.limit[this.directionAxis])),b=y-_,x=function(C){d?r.direction==="horizontal"?r.setScroll(_+b*C,r.instance.delta.y):r.setScroll(r.instance.delta.x,_+b*C):r.instance.delta[r.directionAxis]=_+b*C};this.animatingScroll=!0,this.stopScrolling(),this.startScrolling();var S=Date.now(),T=function w(){var C=(Date.now()-S)/l;C>1?(x(1),r.animatingScroll=!1,l==0&&r.update(),u&&u()):(r.scrollToRaf=requestAnimationFrame(w),x(c(C)))};T()}},{key:"update",value:function(){this.setScrollLimit(),this.addSections(),this.addElements(),this.detectElements(),this.updateScroll(),this.transformElements(!0),this.reinitScrollBar(),this.checkScroll(!0)}},{key:"startScroll",value:function(){this.stop=!1}},{key:"stopScroll",value:function(){this.stop=!0}},{key:"setScroll",value:function(n,r){this.instance=Sa(Sa({},this.instance),{},{scroll:{x:n,y:r},delta:{x:n,y:r},speed:0})}},{key:"destroy",value:function(){it(Ye(t.prototype),"destroy",this).call(this),this.stopScrolling(),this.html.classList.remove(this.smoothClass),this.vs.destroy(),this.destroyScrollBar(),window.removeEventListener("keydown",this.checkKey,!1)}}]),t}(ph),_g=function(){function i(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xs(this,i),this.options=e,Object.assign(this,Kt,e),this.smartphone=Kt.smartphone,e.smartphone&&Object.assign(this.smartphone,e.smartphone),this.tablet=Kt.tablet,e.tablet&&Object.assign(this.tablet,e.tablet),!this.smooth&&this.direction=="horizontal"&&console.warn("\u{1F6A8} `smooth:false` & `horizontal` direction are not yet compatible"),!this.tablet.smooth&&this.tablet.direction=="horizontal"&&console.warn("\u{1F6A8} `smooth:false` & `horizontal` direction are not yet compatible (tablet)"),!this.smartphone.smooth&&this.smartphone.direction=="horizontal"&&console.warn("\u{1F6A8} `smooth:false` & `horizontal` direction are not yet compatible (smartphone)"),this.init()}return Hs(i,[{key:"init",value:function(){if(this.options.isMobile=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1||window.innerWidth<this.tablet.breakpoint,this.options.isTablet=this.options.isMobile&&window.innerWidth>=this.tablet.breakpoint,this.smooth&&!this.options.isMobile||this.tablet.smooth&&this.options.isTablet||this.smartphone.smooth&&this.options.isMobile&&!this.options.isTablet?this.scroll=new xg(this.options):this.scroll=new Qm(this.options),this.scroll.init(),window.location.hash){var t=window.location.hash.slice(1,window.location.hash.length),s=document.getElementById(t);s&&this.scroll.scrollTo(s)}}},{key:"update",value:function(){this.scroll.update()}},{key:"start",value:function(){this.scroll.startScroll()}},{key:"stop",value:function(){this.scroll.stopScroll()}},{key:"scrollTo",value:function(t,s){this.scroll.scrollTo(t,s)}},{key:"setScroll",value:function(t,s){this.scroll.setScroll(t,s)}},{key:"on",value:function(t,s){this.scroll.setEvents(t,s)}},{key:"off",value:function(t,s){this.scroll.unsetEvents(t,s)}},{key:"destroy",value:function(){this.scroll.destroy()}}]),i}();var Eh=_g;function Sh(i,e,t,s,n){return s+(i-e)/(t-e)*(n-s)}function Th(i,e,t){return Math.min(Math.max(i,e),t)}var Ws=class extends H{constructor(i){super(i),this.hasSmooth=this.getData("smooth")!=="false",this.onResizeBind=this.onResize.bind(this),this.onFontsLoadedBind=this.onFontsLoaded.bind(this),this.$container=document.querySelector("[data-scroll-container]"),this.direction=this.getData("direction")=="horizontal"?"horizontal":"vertical"}init(){this.onResize(),this.bindEvents(),window.isFontsLoaded&&this.onFontsLoaded()}destroy(){this.scroll.destroy(),this.unbindEvents()}bindEvents(){window.addEventListener("resizeEnd",this.onResizeBind),window.addEventListener("fontsLoaded",this.onFontsLoadedBind)}unbindEvents(){window.removeEventListener("resizeEnd",this.onResizeBind),window.removeEventListener("fontsLoaded",this.onFontsLoadedBind)}onResize(){this.windowWidth=window.innerWidth,this.update()}onFontsLoaded(){setTimeout(()=>{this.initScroll()},100)}initScroll(){this.scroll=new Eh({el:this.$container,smooth:this.hasSmooth,getDirection:!0,direction:this.direction}),this.scroll.on("call",(i,e,t,s)=>{this.call(i[0],{way:e,obj:t},i[1],i[2])}),this.scroll.on("scroll",i=>{if(typeof i.currentElements.pushGallery=="object"){let s=i.currentElements.pushGallery.progress;this.call("onProgress",s,"PushGallery")}let e=0,t=Object.values(i.currentElements);for(;e<t.length;){let s=t[e];if(typeof s.id=="string"&&s.id.includes("heroReveal")){let n=s.el.parentNode.dataset.moduleHeroReveal,r=s.progress;this.call("onProgress",r,"HeroReveal",n)}e++}if(j.dataset.template==="chronology"){let s=i.limit.x-this.windowWidth,n=i.scroll.x/i.limit.x;n=Th(Sh(n,0,1,0,i.limit.x/s),0,1),j.style.setProperty("--scroll-progress",n)}if(typeof i.currentElements.counterStickyArea=="object"){let s=i.currentElements.counterStickyArea.progress;this.call("onProgress",s,"Counter")}}),this.isSmooth()}toggleHeroReveal(i){let e=i.obj.target||i.obj.targetEl;if(i.way==="exit"){let t=e.parentNode.dataset.moduleHeroReveal;this.call("onLeave",i,"HeroReveal",t)}}lazyLoad(i){qt(i.obj.el,null,()=>{})}lazyLoadTouch(i){!window.hasTouch||qt(i.obj.el,null,()=>{})}update(){var i;(i=this.scroll)==null||i.update()}scrollToTop(){var i;(i=this.scroll)==null||i.scrollTo(0)}stop(){this.scroll.stop()}start(){this.scroll.start()}isSmooth(){this.scroll.options.isMobile||this.scroll.options.isTablet?window.isSmooth=!1:window.isSmooth=!0}};var Gs=class extends H{constructor(i){super(i),this.onClickBind=this.onClick.bind(this)}init(){this.bindEvents()}destroy(){super.destroy(),this.unbindEvents()}bindEvents(){this.el.addEventListener("click",this.onClickBind)}unbindEvents(){this.el.removeEventListener("click",this.onClickBind)}onClick(){this.call("scrollToTop",null,"Scroll")}};var Ch=Ai(wh(),1),js=class extends H{constructor(i){super(i),this.onFontsLoadedBind=this.onFontsLoaded.bind(this),this.$el=this.el}init(){this.bindEvents(),window.isFontsLoaded&&this.onFontsLoaded()}destroy(){super.destroy(),this.unbindEvents()}bindEvents(){window.addEventListener("fontsLoaded",this.onFontsLoadedBind)}unbindEvents(){window.removeEventListener("fontsLoaded",this.onFontsLoadedBind)}onFontsLoaded(){this.split()}split(){let i=(0,Ch.default)({target:this.$el,by:"lines"})}};function Mh(i,e){return xe(this,null,function*(){let t=[];if(!i.length)return console.log("Uh oh ! You need to select a <link> element");i.forEach(s=>{let n=Eg(s);t.push(n)});try{yield Promise.all(t),e==null||e()}catch(s){console.warn("Some critical font are not available:",s)}})}function Eg(i){return new Promise(e=>{let t=null,s=()=>{t&&(clearInterval(t),t=null)};t=setInterval(()=>{let r=!1;try{r=i.getAttribute("data-is-loaded")=="true"}catch(a){console.info("Error with a styleSheet",a),console.info("This one ->",i),s(),e()}r&&(s(),e())},100)})}function Ph(i,e){return xe(this,null,function*(){let t=[];if(!!i.length){i.forEach(s=>{let n=Sg(s.name,s.style,s.weight);t.push(n)});try{yield Promise.all(t),e==null||e()}catch(s){console.warn("Some critical font are not available:",s)}}})}function Sg(i,e,t){return new Promise(s=>{let n=null,r=()=>{n&&(clearInterval(n),n=null)};n=setInterval(()=>{let o=!1;try{o=document.fonts.check(`${e} ${t} 16px ${i}`)}catch(l){console.info(`CSS font loading API error with ${i} ${e} ${t}`,l),r(),s()}o&&(r(),s())},500)})}function Ah(i,e,t){let s;return function(){let n=this,r=arguments,a=function(){s=null,t||i.apply(n,r)},o=t&&!s;clearTimeout(s),s=setTimeout(a,e),o&&i.apply(n,r)}}var Tg=[{name:"Cardinal Fruit Web",style:"italic",weight:"400"},{name:"Cardinal Fruit Web",style:"normal",weight:"400"},{name:"Founders Grotesk",style:"normal",weight:"normal"},{name:"Founders Grotesk Semibold",style:"normal",weight:"500"},{name:"Founders Grotesk Condensed",style:"normal",weight:"600"}],kh=new Xa({modules:ka});window.hasTouch=window.matchMedia("(pointer: coarse)").matches;var La=()=>{j.classList.add("is-fonts-loaded")},$a=()=>{j.classList.add("is-images-preloaded")},Oa=()=>{window.isPageReady=!1,setTimeout(()=>{j.classList.add("is-loaded"),j.classList.add("is-first-loaded"),j.classList.remove("is-loading"),setTimeout(()=>{j.classList.add("is-ready"),j.classList.add("is-init");let i=new CustomEvent("pageReady");window.dispatchEvent(i),window.isPageReady=!0},400)},400)};function wg(){var t;window.currentTemplate=(t=j.dataset)==null?void 0:t.template,window.isFontsLoaded=!1;let i=new Promise(s=>{Ph(Tg,()=>{La==null||La(),requestAnimationFrame(()=>{let n=new CustomEvent("fontsLoaded");window.dispatchEvent(n),window.isFontsLoaded=!0}),s()})}),e=new Promise(s=>{sh(()=>{$a==null||$a(),s()})});Promise.all([i,e]).then(()=>{Oa==null||Oa()}),Cg(),window.hasTouch&&j.classList.add("is-touchable"),Lh(),document.documentElement.style.setProperty("--vh-initial",`${window.innerHeight*.01}px`),ja(),kh.init(kh)}function Cg(){let i=new CustomEvent("resizeEnd");window.addEventListener("resize",Ah(()=>{Lh(),window.dispatchEvent(i)},200,!1))}function Lh(){let i=j.offsetWidth*.01,e=window.innerHeight*.01;document.documentElement.style.setProperty("--vw",`${i}px`),document.documentElement.style.setProperty("--vh",`${e}px`)}window.onload=i=>{j.classList.remove("no-js");let e=document.getElementById("main-css");e?Mh([e],()=>{wg()}):console.warn('The "main-css" stylesheet not found')};})();
/*
Editor is loading...