"use strict";(()=>{var Nc=Object.create;var Eo=Object.defineProperty;var Wc=Object.getOwnPropertyDescriptor;var Hc=Object.getOwnPropertyNames;var Yc=Object.getPrototypeOf,Xc=Object.prototype.hasOwnProperty;var jc=(o,e,t)=>e in o?Eo(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var na=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var Uc=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Hc(e))!Xc.call(o,i)&&i!==t&&Eo(o,i,{get:()=>e[i],enumerable:!(r=Wc(e,i))||r.enumerable});return o};var oa=(o,e,t)=>(t=o!=null?Nc(Yc(o)):{},Uc(e||!o||!o.__esModule?Eo(t,"default",{value:o,enumerable:!0}):t,o));var xr=(o,e,t)=>(jc(o,typeof e!="symbol"?e+"":e,t),t);var sa=na((ko,Po)=>{(function(o,e){typeof ko=="object"&&typeof Po<"u"?Po.exports=e():typeof define=="function"&&define.amd?define(e):(o=o||self).barba=e()})(ko,function(){function o(b,y){for(var f=0;f"u"||!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{return!1}}()?Reflect.construct:function(h,w,T){var M=[null];M.push.apply(M,w);var N=new(Function.bind.apply(h,M));return T&&n(N,T.prototype),N}).apply(null,arguments)}function a(b){var y=typeof Map=="function"?new Map:void 0;return(a=function(f){if(f===null||Function.toString.call(f).indexOf("[native code]")===-1)return f;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(y!==void 0){if(y.has(f))return y.get(f);y.set(f,h)}function h(){return s(f,arguments,i(this).constructor)}return h.prototype=Object.create(f.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),n(h,f)})(b)}function l(b,y){try{var f=b()}catch(h){return y(h)}return f&&f.then?f.then(void 0,y):f}typeof Symbol<"u"&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),typeof Symbol<"u"&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var c,u="2.9.7",g=function(){};(function(b){b[b.off=0]="off",b[b.error=1]="error",b[b.warning=2]="warning",b[b.info=3]="info",b[b.debug=4]="debug"})(c||(c={}));var m=c.off,p=function(){function b(f){this.t=f}b.getLevel=function(){return m},b.setLevel=function(f){return m=c[f]};var y=b.prototype;return y.error=function(){for(var f=arguments.length,h=new Array(f),w=0;w-1)&&(re=Ue,M=M.slice(0,ut))}M&&(h.push(M),M="",F=!1);var it=_e||De,V=re||N;h.push({name:ae||w++,prefix:re,delimiter:V,optional:Ce==="?"||Ce==="*",repeat:Ce==="+"||Ce==="*",pattern:it?R(it):"[^"+z(V===N?V:V+N)+"]+?"})}}return(M||T1?f>0?"forward":"back":f===0?"popstate":f>0?"back":"forward"},e(b,[{key:"current",get:function(){return this.h[this.v]}},{key:"state",get:function(){return this.h[this.h.length-1]}},{key:"previous",get:function(){return this.v<1?null:this.h[this.v-1]}},{key:"size",get:function(){return this.h.length}}]),b}()),te=function(b,y){try{var f=function(){if(!y.next.html)return Promise.resolve(b).then(function(h){var w=y.next;if(h){var T=U.toElement(h);w.namespace=U.getNamespace(T),w.container=U.getContainer(T),w.html=h,oe.update({ns:w.namespace});var M=U.toDocument(h);document.title=M.title}})}();return Promise.resolve(f&&f.then?f.then(function(){}):void 0)}catch(h){return Promise.reject(h)}},Q=v,se={__proto__:null,update:te,nextTick:function(){return new Promise(function(b){window.requestAnimationFrame(b)})},pathToRegexp:Q},ge=function(){return window.location.origin},E=function(b){return b===void 0&&(b=window.location.href),me(b).port},me=function(b){var y,f=b.match(/:\d+/);if(f===null)/^http/.test(b)&&(y=80),/^https/.test(b)&&(y=443);else{var h=f[0].substring(1);y=parseInt(h,10)}var w,T=b.replace(ge(),""),M={},N=T.indexOf("#");N>=0&&(w=T.slice(N+1),T=T.slice(0,N));var X=T.indexOf("?");return X>=0&&(M=Ke(T.slice(X+1)),T=T.slice(0,X)),{hash:w,path:T,port:y,query:M}},Ke=function(b){return b.split("&").reduce(function(y,f){var h=f.split("=");return y[h[0]]=h[1],y},{})},wt=function(b){return b===void 0&&(b=window.location.href),b.replace(/(\/#.*|\/|#.*)$/,"")},Se={__proto__:null,getHref:function(){return window.location.href},getOrigin:ge,getPort:E,getPath:function(b){return b===void 0&&(b=window.location.href),me(b).path},parse:me,parseQuery:Ke,clean:wt};function Xe(b,y,f){return y===void 0&&(y=2e3),new Promise(function(h,w){var T=new XMLHttpRequest;T.onreadystatechange=function(){if(T.readyState===XMLHttpRequest.DONE){if(T.status===200)h(T.responseText);else if(T.status){var M={status:T.status,statusText:T.statusText};f(b,M),w(M)}}},T.ontimeout=function(){var M=new Error("Timeout error ["+y+"]");f(b,M),w(M)},T.onerror=function(){var M=new Error("Fetch error");f(b,M),w(M)},T.open("GET",b),T.timeout=y,T.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml"),T.setRequestHeader("x-barba","yes"),T.send()})}var tt=function(b){return!!b&&(typeof b=="object"||typeof b=="function")&&typeof b.then=="function"};function ye(b,y){return y===void 0&&(y={}),function(){for(var f=arguments.length,h=new Array(f),w=0;w1?T-1:0),N=1;N1||y.metaKey||y.ctrlKey||y.shiftKey||y.altKey},Pe=function(b){var y=b.el;return y.hasAttribute("target")&&y.target==="_blank"},ct=function(b){var y=b.el;return y.protocol!==void 0&&window.location.protocol!==y.protocol||y.hostname!==void 0&&window.location.hostname!==y.hostname},bt=function(b){var y=b.el;return y.port!==void 0&&E()!==E(y.href)},L=function(b){var y=b.el;return y.getAttribute&&typeof y.getAttribute("download")=="string"},xt=function(b){return b.el.hasAttribute(K.prefix+"-"+K.prevent)},er=function(b){return!!b.el.closest("["+K.prefix+"-"+K.prevent+'="all"]')},ar=function(b){var y=b.href;return wt(y)===wt()&&E(y)===E()},Re=function(b){function y(h){var w;return(w=b.call(this,h)||this).suite=[],w.tests=new Map,w.init(),w}r(y,b);var f=y.prototype;return f.init=function(){this.add("pushState",rt),this.add("exists",It),this.add("newTab",pe),this.add("blank",Pe),this.add("corsDomain",ct),this.add("corsPort",bt),this.add("download",L),this.add("preventSelf",xt),this.add("preventAll",er),this.add("sameUrl",ar,!1)},f.add=function(h,w,T){T===void 0&&(T=!0),this.tests.set(h,w),T&&this.suite.push(h)},f.run=function(h,w,T,M){return this.tests.get(h)({el:w,event:T,href:M})},f.checkLink=function(h,w,T){var M=this;return this.suite.some(function(N){return M.run(N,h,w,T)})},y}(je),Ut=function(b){function y(f,h){var w;h===void 0&&(h="Barba error");for(var T=arguments.length,M=new Array(T>2?T-2:0),N=2;N0&&ie.push(X),(B=this.logger).info.apply(B,["Transition found ["+F.join(",")+"]"].concat(ie))}else this.logger.info("No transition found ["+F.join(",")+"]");return N},y.update=function(){var f=this;this.all=this.all.map(function(h){return f.T(h)}).sort(function(h,w){return h.priority-w.priority}).reverse().map(function(h){return delete h.priority,h}),this.page=this.all.filter(function(h){return h.leave!==void 0||h.enter!==void 0}),this.once=this.all.filter(function(h){return h.once!==void 0})},y.R=function(f,h,w,T,M){var N=!0,X=!1,F=f,B=h.name,ie=B,I=B,re=B,ae=M?F[M]:F,_e=M==="to"?w.next:w.current;if(M?ae&&ae[B]:ae[B]){switch(h.type){case"strings":default:var De=Array.isArray(ae[ie])?ae[ie]:[ae[ie]];_e[ie]&&De.indexOf(_e[ie])!==-1&&(X=!0),De.indexOf(_e[ie])===-1&&(N=!1);break;case"object":var Ce=Array.isArray(ae[I])?ae[I]:[ae[I]];_e[I]?(_e[I].name&&Ce.indexOf(_e[I].name)!==-1&&(X=!0),Ce.indexOf(_e[I].name)===-1&&(N=!1)):N=!1;break;case"function":ae[re](w)?X=!0:N=!1}X&&(M?(T[M]=T[M]||{},T[M][B]=F[M][B]):T[B]=F[B])}return N},y.O=function(f,h,w){var T=0;return(f[h]||f.from&&f.from[h]||f.to&&f.to[h])&&(T+=Math.pow(10,w),f.from&&f.from[h]&&(T+=1),f.to&&f.to[h]&&(T+=2)),T},y.T=function(f){var h=this;f.priority=0;var w=0;return this.A.forEach(function(T,M){w+=h.O(f,T.name,M+1)}),f.priority=w,f},b}(),Dr=function(){function b(f){f===void 0&&(f=[]),this.logger=new p("@barba/core"),this.S=!1,this.store=new br(f)}var y=b.prototype;return y.get=function(f,h){return this.store.resolve(f,h)},y.doOnce=function(f){var h=f.data,w=f.transition;try{var T=function(){M.S=!1},M=this,N=w||{};M.S=!0;var X=l(function(){return Promise.resolve(M.j("beforeOnce",h,N)).then(function(){return Promise.resolve(M.once(h,N)).then(function(){return Promise.resolve(M.j("afterOnce",h,N)).then(function(){})})})},function(F){M.S=!1,M.logger.debug("Transition error [before/after/once]"),M.logger.error(F)});return Promise.resolve(X&&X.then?X.then(T):T())}catch(F){return Promise.reject(F)}},y.doPage=function(f){var h=f.data,w=f.transition,T=f.page,M=f.wrapper;try{var N=function(re){if(X)return re;F.S=!1},X=!1,F=this,B=w||{},ie=B.sync===!0||!1;F.S=!0;var I=l(function(){function re(){return Promise.resolve(F.j("before",h,B)).then(function(){var _e=!1;function De(ut){return _e?ut:Promise.resolve(F.remove(h)).then(function(){return Promise.resolve(F.j("after",h,B)).then(function(){})})}var Ce=function(){if(ie)return l(function(){return Promise.resolve(F.add(h,M)).then(function(){return Promise.resolve(F.j("beforeLeave",h,B)).then(function(){return Promise.resolve(F.j("beforeEnter",h,B)).then(function(){return Promise.resolve(Promise.all([F.leave(h,B),F.enter(h,B)])).then(function(){return Promise.resolve(F.j("afterLeave",h,B)).then(function(){return Promise.resolve(F.j("afterEnter",h,B)).then(function(){})})})})})})},function(V){if(F.M(V))throw new Ut(V,"Transition error [sync]")});var ut=function(V){return _e?V:l(function(){var G=function(){if(Ue!==!1)return Promise.resolve(F.add(h,M)).then(function(){return Promise.resolve(F.j("beforeEnter",h,B)).then(function(){return Promise.resolve(F.enter(h,B,Ue)).then(function(){return Promise.resolve(F.j("afterEnter",h,B)).then(function(){})})})})}();if(G&&G.then)return G.then(function(){})},function(G){if(F.M(G))throw new Ut(G,"Transition error [before/after/enter]")})},Ue=!1,it=l(function(){return Promise.resolve(F.j("beforeLeave",h,B)).then(function(){return Promise.resolve(Promise.all([F.leave(h,B),te(T,h)]).then(function(V){return V[0]})).then(function(V){return Ue=V,Promise.resolve(F.j("afterLeave",h,B)).then(function(){})})})},function(V){if(F.M(V))throw new Ut(V,"Transition error [before/after/leave]")});return it&&it.then?it.then(ut):ut(it)}();return Ce&&Ce.then?Ce.then(De):De(Ce)})}var ae=function(){if(ie)return Promise.resolve(te(T,h)).then(function(){})}();return ae&&ae.then?ae.then(re):re()},function(re){throw F.S=!1,re.name&&re.name==="BarbaError"?(F.logger.debug(re.label),F.logger.error(re.error),re):(F.logger.debug("Transition error [page]"),F.logger.error(re),re)});return Promise.resolve(I&&I.then?I.then(N):N(I))}catch(re){return Promise.reject(re)}},y.once=function(f,h){try{return Promise.resolve(Te.do("once",f,h)).then(function(){return h.once?ye(h.once,h)(f):Promise.resolve()})}catch(w){return Promise.reject(w)}},y.leave=function(f,h){try{return Promise.resolve(Te.do("leave",f,h)).then(function(){return h.leave?ye(h.leave,h)(f):Promise.resolve()})}catch(w){return Promise.reject(w)}},y.enter=function(f,h,w){try{return Promise.resolve(Te.do("enter",f,h)).then(function(){return h.enter?ye(h.enter,h)(f,w):Promise.resolve()})}catch(T){return Promise.reject(T)}},y.add=function(f,h){try{return U.addContainer(f.next.container,h),Te.do("nextAdded",f),Promise.resolve()}catch(w){return Promise.reject(w)}},y.remove=function(f){try{return U.removeContainer(f.current.container),Te.do("currentRemoved",f),Promise.resolve()}catch(h){return Promise.reject(h)}},y.M=function(f){return f.message?!/Timeout error|Fetch error/.test(f.message):!f.status},y.j=function(f,h,w){try{return Promise.resolve(Te.do(f,h,w)).then(function(){return w[f]?ye(w[f],w)(h):Promise.resolve()})}catch(T){return Promise.reject(T)}},e(b,[{key:"isRunning",get:function(){return this.S},set:function(f){this.S=f}},{key:"hasOnce",get:function(){return this.store.once.length>0}},{key:"hasSelf",get:function(){return this.store.all.some(function(f){return f.name==="self"})}},{key:"shouldWait",get:function(){return this.store.all.some(function(f){return f.to&&!f.to.route||f.sync})}}]),b}(),We=function(){function b(y){var f=this;this.names=["beforeLeave","afterLeave","beforeEnter","afterEnter"],this.byNamespace=new Map,y.length!==0&&(y.forEach(function(h){f.byNamespace.set(h.namespace,h)}),this.names.forEach(function(h){Te[h](f.L(h))}))}return b.prototype.L=function(y){var f=this;return function(h){var w=y.match(/enter/i)?h.next:h.current,T=f.byNamespace.get(w.namespace);return T&&T[y]?ye(T[y],T)(h):Promise.resolve()}},b}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(b){var y=this;do{if(y.matches(b))return y;y=y.parentElement||y.parentNode}while(y!==null&&y.nodeType===1);return null});var lr={container:null,html:"",namespace:"",url:{hash:"",href:"",path:"",port:null,query:{}}};return new(function(){function b(){this.version=u,this.schemaPage=lr,this.Logger=p,this.logger=new p("@barba/core"),this.plugins=[],this.hooks=Te,this.dom=U,this.helpers=se,this.history=oe,this.request=Xe,this.url=Se}var y=b.prototype;return y.use=function(f,h){var w=this.plugins;w.indexOf(f)>-1?this.logger.warn("Plugin ["+f.name+"] already installed."):typeof f.install=="function"?(f.install(this,h),w.push(f)):this.logger.warn("Plugin ["+f.name+'] has no "install" method.')},y.init=function(f){var h=f===void 0?{}:f,w=h.transitions,T=w===void 0?[]:w,M=h.views,N=M===void 0?[]:M,X=h.schema,F=X===void 0?K:X,B=h.requestError,ie=h.timeout,I=ie===void 0?2e3:ie,re=h.cacheIgnore,ae=re!==void 0&&re,_e=h.prefetchIgnore,De=_e!==void 0&&_e,Ce=h.preventRunning,ut=Ce!==void 0&&Ce,Ue=h.prevent,it=Ue===void 0?null:Ue,V=h.debug,G=h.logLevel;if(p.setLevel((V!==void 0&&V)===!0?"debug":G===void 0?"off":G),this.logger.info(this.version),Object.keys(F).forEach(function(J){K[J]&&(K[J]=F[J])}),this.$=B,this.timeout=I,this.cacheIgnore=ae,this.prefetchIgnore=De,this.preventRunning=ut,this._=this.dom.getWrapper(),!this._)throw new Error("[@barba/core] No Barba wrapper found");this._.setAttribute("aria-live","polite"),this.q();var ue=this.data.current;if(!ue.container)throw new Error("[@barba/core] No Barba container found");if(this.cache=new sr(ae),this.prevent=new Re(De),this.transitions=new Dr(T),this.views=new We(N),it!==null){if(typeof it!="function")throw new Error("[@barba/core] Prevent should be a function");this.prevent.add("preventCustom",it)}this.history.init(ue.url.href,ue.namespace),this.B=this.B.bind(this),this.U=this.U.bind(this),this.D=this.D.bind(this),this.F(),this.plugins.forEach(function(J){return J.init()});var W=this.data;W.trigger="barba",W.next=W.current,W.current=t({},this.schemaPage),this.hooks.do("ready",W),this.once(W),this.q()},y.destroy=function(){this.q(),this.H(),this.history.clear(),this.hooks.clear(),this.plugins=[]},y.force=function(f){window.location.assign(f)},y.go=function(f,h,w){var T;if(h===void 0&&(h="barba"),this.transitions.isRunning)this.force(f);else if(!(T=h==="popstate"?this.history.current&&this.url.getPath(this.history.current.url)===this.url.getPath(f):this.prevent.run("sameUrl",null,null,f))||this.transitions.hasSelf)return h=this.history.change(f,h,w),w&&(w.stopPropagation(),w.preventDefault()),this.page(f,h,T)},y.once=function(f){try{var h=this;return Promise.resolve(h.hooks.do("beforeEnter",f)).then(function(){function w(){return Promise.resolve(h.hooks.do("afterEnter",f)).then(function(){})}var T=function(){if(h.transitions.hasOnce){var M=h.transitions.get(f,{once:!0});return Promise.resolve(h.transitions.doOnce({transition:M,data:f})).then(function(){})}}();return T&&T.then?T.then(w):w()})}catch(w){return Promise.reject(w)}},y.page=function(f,h,w){try{var T=function(){var F=M.data;return Promise.resolve(M.hooks.do("page",F)).then(function(){var B=l(function(){var ie=M.transitions.get(F,{once:!1,self:w});return Promise.resolve(M.transitions.doPage({data:F,page:N,transition:ie,wrapper:M._})).then(function(){M.q()})},function(){p.getLevel()===0&&M.force(F.current.url.href)});if(B&&B.then)return B.then(function(){})})},M=this;M.data.next.url=t({href:f},M.url.parse(f)),M.data.trigger=h;var N=M.cache.has(f)?M.cache.update(f,{action:"click"}).request:M.cache.set(f,M.request(f,M.timeout,M.onRequestError.bind(M,h)),"click").request,X=function(){if(M.transitions.shouldWait)return Promise.resolve(te(N,M.data)).then(function(){})}();return Promise.resolve(X&&X.then?X.then(T):T())}catch(F){return Promise.reject(F)}},y.onRequestError=function(f){this.transitions.isRunning=!1;for(var h=arguments.length,w=new Array(h>1?h-1:0),T=1;T{(function(o,e){typeof Co=="object"&&typeof Ao<"u"?Ao.exports=e():typeof define=="function"&&define.amd?define(e):(o=o||self).barbaPrefetch=e()})(Co,function(){var o="2.1.10",e=window.requestIdleCallback||function(t){var r=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-r))}})},1)};return new(function(){function t(){this.name="@barba/prefetch",this.version=o,this.toPrefetch=new Set}var r=t.prototype;return r.install=function(i,n){var s=n===void 0?{}:n,a=s.root,l=a===void 0?document.body:a,c=s.timeout,u=c===void 0?2e3:c;this.logger=new i.Logger(this.name),this.logger.info(this.version),this.barba=i,this.root=l,this.timeout=u},r.init=function(){var i=this;this.barba.prefetchIgnore?this.logger.warn("barba.prefetchIgnore is enabled"):this.barba.cacheIgnore?this.logger.warn("barba.cacheIgnore is enabled"):(this.observer=new IntersectionObserver(function(n){n.forEach(function(s){if(s.isIntersecting){var a=s.target,l=i.barba.dom.getHref(a);i.toPrefetch.has(l)&&(i.observer.unobserve(a),i.barba.cache.has(l)?i.barba.cache.update(l,{action:"prefetch"}):i.barba.cache.set(l,i.barba.request(l,i.barba.timeout,i.barba.onRequestError.bind(i.barba,"barba")).catch(function(c){i.logger.error(c)}),"prefetch"))}})}),this.observe(),this.barba.hooks.after(this.observe,this))},r.observe=function(){var i=this;e(function(){i.root.querySelectorAll("a").forEach(function(n){var s=n,a=i.barba.dom.getHref(s);i.barba.cache.has(a)||i.barba.prevent.checkHref(a)||i.barba.prevent.checkLink(s,{},a)||(i.observer.observe(n),i.toPrefetch.add(a))})},{timeout:this.timeout})},t}())})});var vi=oa(sa(),1),Fc=oa(aa(),1);function ca(o,e,t){return Math.max(o,Math.min(e,t))}var Oo=class{advance(e){if(!this.isRunning)return;let t=!1;if(this.lerp)this.value=(r=this.value,i=this.to,n=60*this.lerp,s=e,function(a,l,c){return(1-c)*a+c*l}(r,i,1-Math.exp(-n*s))),Math.round(this.value)===this.to&&(this.value=this.to,t=!0);else{this.currentTime+=e;let a=ca(0,this.currentTime/this.duration,1);t=a>=1;let l=t?1:this.easing(a);this.value=this.from+(this.to-this.from)*l}var r,i,n,s;this.onUpdate?.(this.value,t),t&&this.stop()}stop(){this.isRunning=!1}fromTo(e,t,{lerp:r=.1,duration:i=1,easing:n=l=>l,onStart:s,onUpdate:a}){this.from=this.value=e,this.to=t,this.lerp=r,this.duration=i,this.easing=n,this.currentTime=0,this.isRunning=!0,s?.(),this.onUpdate=a}},Mo=class{constructor({wrapper:e,content:t,autoResize:r=!0,debounce:i=250}={}){xr(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});xr(this,"onWrapperResize",()=>{this.wrapper===window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});xr(this,"onContentResize",()=>{this.wrapper===window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=e,this.content=t,r&&(this.debouncedResize=function(n,s){let a;return function(){let l=arguments,c=this;clearTimeout(a),a=setTimeout(function(){n.apply(c,l)},s)}}(this.resize,i),this.wrapper===window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},Pn=class{constructor(){this.events={}}emit(e,...t){let r=this.events[e]||[];for(let i=0,n=r.length;i{this.events[e]=this.events[e]?.filter(r=>t!==r)}}off(e,t){this.events[e]=this.events[e]?.filter(r=>t!==r)}destroy(){this.events={}}},la=100/6,Lo=class{constructor(e,{wheelMultiplier:t=1,touchMultiplier:r=1}){xr(this,"onTouchStart",e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})});xr(this,"onTouchMove",e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e,i=-(t-this.touchStart.x)*this.touchMultiplier,n=-(r-this.touchStart.y)*this.touchMultiplier;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:i,y:n},this.emitter.emit("scroll",{deltaX:i,deltaY:n,event:e})});xr(this,"onTouchEnd",e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})});xr(this,"onWheel",e=>{let{deltaX:t,deltaY:r,deltaMode:i}=e;t*=i===1?la:i===2?this.windowWidth:1,r*=i===1?la:i===2?this.windowHeight:1,t*=this.wheelMultiplier,r*=this.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:r,event:e})});xr(this,"onWindowResize",()=>{this.windowWidth=window.innerWidth,this.windowHeight=window.innerHeight});this.element=e,this.wheelMultiplier=t,this.touchMultiplier=r,this.touchStart={x:null,y:null},this.emitter=new Pn,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,{passive:!1}),this.element.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.addEventListener("touchend",this.onTouchEnd,{passive:!1})}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,{passive:!1}),this.element.removeEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.removeEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.removeEventListener("touchend",this.onTouchEnd,{passive:!1})}},Cn=class{constructor({wrapper:e=window,content:t=document.documentElement,wheelEventsTarget:r=e,eventsTarget:i=r,smoothWheel:n=!0,syncTouch:s=!1,syncTouchLerp:a=.075,touchInertiaMultiplier:l=35,duration:c,easing:u=A=>Math.min(1,1.001-Math.pow(2,-10*A)),lerp:g=!c&&.1,infinite:m=!1,orientation:p="vertical",gestureOrientation:v="vertical",touchMultiplier:d=1,wheelMultiplier:_=1,autoResize:x=!0,__experimental__naiveDimensions:S=!1}={}){this.__isSmooth=!1,this.__isScrolling=!1,this.__isStopped=!1,this.__isLocked=!1,this.onVirtualScroll=({deltaX:A,deltaY:P,event:O})=>{if(O.ctrlKey)return;let k=O.type.includes("touch"),C=O.type.includes("wheel");if(this.options.syncTouch&&k&&O.type==="touchstart"&&!this.isStopped&&!this.isLocked)return void this.reset();let z=A===0&&P===0,R=this.options.gestureOrientation==="vertical"&&P===0||this.options.gestureOrientation==="horizontal"&&A===0;if(z||R)return;let D=O.composedPath();if(D=D.slice(0,D.indexOf(this.rootElement)),D.find(U=>{var oe,te,Q,se,ge;return((oe=U.hasAttribute)===null||oe===void 0?void 0:oe.call(U,"data-lenis-prevent"))||k&&((te=U.hasAttribute)===null||te===void 0?void 0:te.call(U,"data-lenis-prevent-touch"))||C&&((Q=U.hasAttribute)===null||Q===void 0?void 0:Q.call(U,"data-lenis-prevent-wheel"))||((se=U.classList)===null||se===void 0?void 0:se.contains("lenis"))&&!(!((ge=U.classList)===null||ge===void 0)&&ge.contains("lenis-stopped"))}))return;if(this.isStopped||this.isLocked)return void O.preventDefault();if(this.isSmooth=this.options.syncTouch&&k||this.options.smoothWheel&&C,!this.isSmooth)return this.isScrolling=!1,void this.animate.stop();O.preventDefault();let Y=P;this.options.gestureOrientation==="both"?Y=Math.abs(P)>Math.abs(A)?P:A:this.options.gestureOrientation==="horizontal"&&(Y=A);let q=k&&this.options.syncTouch,K=k&&O.type==="touchend"&&Math.abs(Y)>5;K&&(Y=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+Y,Object.assign({programmatic:!1},q?{lerp:K?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}))},this.onNativeScroll=()=>{if(!this.__preventNextScrollEvent&&!this.isScrolling){let A=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.direction=Math.sign(this.animatedScroll-A),this.emit()}},window.lenisVersion="1.0.42",e!==document.documentElement&&e!==document.body||(e=window),this.options={wrapper:e,content:t,wheelEventsTarget:r,eventsTarget:i,smoothWheel:n,syncTouch:s,syncTouchLerp:a,touchInertiaMultiplier:l,duration:c,easing:u,lerp:g,infinite:m,gestureOrientation:v,orientation:p,touchMultiplier:d,wheelMultiplier:_,autoResize:x,__experimental__naiveDimensions:S},this.animate=new Oo,this.emitter=new Pn,this.dimensions=new Mo({wrapper:e,content:t,autoResize:x}),this.toggleClassName("lenis",!0),this.velocity=0,this.isLocked=!1,this.isStopped=!1,this.isSmooth=s||n,this.isScrolling=!1,this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll=new Lo(i,{touchMultiplier:d,wheelMultiplier:_}),this.virtualScroll.on("scroll",this.onVirtualScroll)}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.toggleClassName("lenis",!1),this.toggleClassName("lenis-smooth",!1),this.toggleClassName("lenis-scrolling",!1),this.toggleClassName("lenis-stopped",!1),this.toggleClassName("lenis-locked",!1)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}setScroll(e){this.isHorizontal?this.rootElement.scrollLeft=e:this.rootElement.scrollTop=e}resize(){this.dimensions.resize()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.isStopped=!1,this.reset())}stop(){this.isStopped||(this.isStopped=!0,this.animate.stop(),this.reset())}raf(e){let t=e-(this.time||e);this.time=e,this.animate.advance(.001*t)}scrollTo(e,{offset:t=0,immediate:r=!1,lock:i=!1,duration:n=this.options.duration,easing:s=this.options.easing,lerp:a=!n&&this.options.lerp,onComplete:l,force:c=!1,programmatic:u=!0}={}){if(!this.isStopped&&!this.isLocked||c){if(["top","left","start"].includes(e))e=0;else if(["bottom","right","end"].includes(e))e=this.limit;else{let g;if(typeof e=="string"?g=document.querySelector(e):e?.nodeType&&(g=e),g){if(this.options.wrapper!==window){let p=this.options.wrapper.getBoundingClientRect();t-=this.isHorizontal?p.left:p.top}let m=g.getBoundingClientRect();e=(this.isHorizontal?m.left:m.top)+this.animatedScroll}}if(typeof e=="number"){if(e+=t,e=Math.round(e),this.options.infinite?u&&(this.targetScroll=this.animatedScroll=this.scroll):e=ca(0,e,this.limit),r)return this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),void(l==null||l(this));if(!u){if(e===this.targetScroll)return;this.targetScroll=e}this.animate.fromTo(this.animatedScroll,e,{duration:n,easing:s,lerp:a,onStart:()=>{i&&(this.isLocked=!0),this.isScrolling=!0},onUpdate:(g,m)=>{this.isScrolling=!0,this.velocity=g-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=g,this.setScroll(this.scroll),u&&(this.targetScroll=g),m||this.emit(),m&&(this.reset(),this.emit(),l?.(this),this.__preventNextScrollEvent=!0,requestAnimationFrame(()=>{delete this.__preventNextScrollEvent}))}})}}}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.scrollTop}get scroll(){return this.options.infinite?(e=this.animatedScroll,t=this.limit,(e%t+t)%t):this.animatedScroll;var e,t}get progress(){return this.limit===0?1:this.scroll/this.limit}get isSmooth(){return this.__isSmooth}set isSmooth(e){this.__isSmooth!==e&&(this.__isSmooth=e,this.toggleClassName("lenis-smooth",e))}get isScrolling(){return this.__isScrolling}set isScrolling(e){this.__isScrolling!==e&&(this.__isScrolling=e,this.toggleClassName("lenis-scrolling",e))}get isStopped(){return this.__isStopped}set isStopped(e){this.__isStopped!==e&&(this.__isStopped=e,this.toggleClassName("lenis-stopped",e))}get isLocked(){return this.__isLocked}set isLocked(e){this.__isLocked!==e&&(this.__isLocked=e,this.toggleClassName("lenis-locked",e))}get className(){let e="lenis";return this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isSmooth&&(e+=" lenis-smooth"),e}toggleClassName(e,t){this.rootElement.classList.toggle(e,t),this.emitter.emit("className change",this)}};function Sr(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function ma(o,e){o.prototype=Object.create(e.prototype),o.prototype.constructor=o,o.__proto__=e}var Ft={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},bi={duration:.5,overwrite:!1,delay:0},Qo,pt,ke,Gt=1e8,be=1/Gt,No=Math.PI*2,Vc=No/4,Gc=0,ya=Math.sqrt,$c=Math.cos,Kc=Math.sin,Ge=function(e){return typeof e=="string"},qe=function(e){return typeof e=="function"},Er=function(e){return typeof e=="number"},Bn=function(e){return typeof e>"u"},pr=function(e){return typeof e=="object"},qt=function(e){return e!==!1},Zo=function(){return typeof window<"u"},An=function(e){return qe(e)||Ge(e)},va=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},_t=Array.isArray,Wo=/(?:-?\.?\d|\.)+/gi,Jo=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Jr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Ro=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,es=/[+-]=-?[.\d]+/,wa=/[^,'"\[\]\s]+/gi,Qc=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Oe,hr,Ho,ts,Ht={},Rn={},ba,xa=function(e){return(Rn=Zr(e,Ht))&>},In=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},$i=function(e,t){return!t&&console.warn(e)},Sa=function(e,t){return e&&(Ht[e]=t)&&Rn&&(Rn[e]=t)||Ht},Ki=function(){return 0},Zc={suppressEvents:!0,isStart:!0,kill:!1},On={suppressEvents:!0,kill:!1},Jc={suppressEvents:!0},rs={},qr=[],Yo={},Ta,Dt={},Do={},ua=30,Mn=[],is="",ns=function(e){var t=e[0],r,i;if(pr(t)||qe(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(i=Mn.length;i--&&!Mn[i].targetTest(t););r=Mn[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new as(e[i],r)))||e.splice(i,1);return e},Fr=function(e){return e._gsap||ns($t(e))[0]._gsap},os=function(e,t,r){return(r=e[t])&&qe(r)?e[t]():Bn(r)&&e.getAttribute&&e.getAttribute(t)||r},St=function(e,t){return(e=e.split(",")).forEach(t)||e},Fe=function(e){return Math.round(e*1e5)/1e5||0},Ze=function(e){return Math.round(e*1e7)/1e7||0},ei=function(e,t){var r=t.charAt(0),i=parseFloat(t.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},eu=function(e,t){for(var r=t.length,i=0;e.indexOf(t[i])<0&&++ia;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[i]=t,t._prev=s,t.parent=t._dp=e,t},Nn=function(e,t,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var n=t._prev,s=t._next;n?n._next=s:e[r]===t&&(e[r]=s),s?s._prev=n:e[i]===t&&(e[i]=n),t._next=t._prev=t.parent=null},Br=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},$r=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},iu=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Xo=function(e,t,r,i){return e._startAt&&(pt?e._startAt.revert(On):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,i))},nu=function o(e){return!e||e._ts&&o(e.parent)},ha=function(e){return e._repeat?xi(e._tTime,e=e.duration()+e._rDelay)*e:0},xi=function(e,t){var r=Math.floor(e/=t);return e&&r===e?r-1:r},qn=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Wn=function(e){return e._end=Ze(e._start+(e._tDur/Math.abs(e._ts||e._rts||be)||0))},Hn=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=Ze(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Wn(e),r._dirty||$r(r,e)),e},Aa=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._startbe)&&t.render(r,!0)),$r(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-be}},dr=function(e,t,r,i){return t.parent&&Br(t),t._start=Ze((Er(r)?r:r||e!==Oe?Vt(e,r,t):e._time)+t._delay),t._end=Ze(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ca(e,t,"_first","_last",e._sort?"_start":0),jo(t)||(e._recent=t),i||Aa(e,t),e._ts<0&&Hn(e,e._tTime),e},Oa=function(e,t){return(Ht.ScrollTrigger||In("scrollTrigger",t))&&Ht.ScrollTrigger.create(t,e)},Ma=function(e,t,r,i,n){if(us(e,t,n),!e._initted)return 1;if(!r&&e._pt&&!pt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Ta!==zt.frame)return qr.push(e),e._lazy=[n,i],1},ou=function o(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||o(t))},jo=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},su=function(e,t,r,i){var n=e.ratio,s=t<0||!t&&(!e._start&&ou(e)&&!(!e._initted&&jo(e))||(e._ts<0||e._dp._ts<0)&&!jo(e))?0:1,a=e._rDelay,l=0,c,u,g;if(a&&e._repeat&&(l=Ji(0,e._tDur,t),u=xi(l,a),e._yoyo&&u&1&&(s=1-s),u!==xi(e._tTime,a)&&(n=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==n||pt||i||e._zTime===be||!t&&e._zTime){if(!e._initted&&Ma(e,t,i,r,l))return;for(g=e._zTime,e._zTime=t||(r?be:0),r||(r=t&&!g),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=l,c=e._pt;c;)c.r(s,c.d),c=c._next;t<0&&Xo(e,t,r,!0),e._onUpdate&&!r&&Wt(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&Wt(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===s&&(s&&Br(e,1),!r&&!pt&&(Wt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},au=function(e,t,r){var i;if(r>t)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>t)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start0&&!i&&Hn(e,e._tTime=e._tDur*a),e.parent&&Wn(e),r||$r(e.parent,e),e},da=function(e){return e instanceof st?$r(e):Si(e,e._dur)},lu={_start:0,endTime:Ki,totalDuration:Ki},Vt=function o(e,t,r){var i=e.labels,n=e._recent||lu,s=e.duration()>=Gt?n.endTime(!1):e._dur,a,l,c;return Ge(t)&&(isNaN(t)||t in i)?(l=t.charAt(0),c=t.substr(-1)==="%",a=t.indexOf("="),l==="<"||l===">"?(a>=0&&(t=t.replace(/=/,"")),(l==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(t.substr(1))||0)*(c?(a<0?n:r).totalDuration()/100:1)):a<0?(t in i||(i[t]=s),i[t]):(l=parseFloat(t.charAt(a-1)+t.substr(a+1)),c&&r&&(l=l/100*(_t(r)?r[0]:r).totalDuration()),a>1?o(e,t.substr(0,a-1),r)+l:s+l)):t==null?s:+t},Vi=function(e,t,r){var i=Er(t[1]),n=(i?2:1)+(e<2?0:1),s=t[n],a,l;if(i&&(s.duration=t[1]),s.parent=r,e){for(a=s,l=r;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=qt(l.vars.inherit)&&l.parent;s.immediateRender=qt(a.immediateRender),e<2?s.runBackwards=1:s.startAt=t[n-1]}return new Ne(t[0],s,t[n+1])},Ir=function(e,t){return e||e===0?t(e):t},Ji=function(e,t,r){return rt?t:r},at=function(e,t){return!Ge(e)||!(t=Qc.exec(e))?"":t[1]},cu=function(e,t,r){return Ir(r,function(i){return Ji(e,t,i)})},Uo=[].slice,La=function(e,t){return e&&pr(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&pr(e[0]))&&!e.nodeType&&e!==hr},uu=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(i){var n;return Ge(i)&&!t||La(i,1)?(n=r).push.apply(n,$t(i)):r.push(i)})||r},$t=function(e,t,r){return ke&&!t&&ke.selector?ke.selector(e):Ge(e)&&!r&&(Ho||!Ti())?Uo.call((t||ts).querySelectorAll(e),0):_t(e)?uu(e,r):La(e)?Uo.call(e,0):e?[e]:[]},Vo=function(e){return e=$t(e)[0]||$i("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return $t(t,r.querySelectorAll?r:r===e?$i("Invalid scope")||ts.createElement("div"):e)}},Ra=function(e){return e.sort(function(){return .5-Math.random()})},Da=function(e){if(qe(e))return e;var t=pr(e)?e:{each:e},r=Kr(t.ease),i=t.from||0,n=parseFloat(t.base)||0,s={},a=i>0&&i<1,l=isNaN(i)||a,c=t.axis,u=i,g=i;return Ge(i)?u=g={center:.5,edges:.5,end:1}[i]||0:!a&&l&&(u=i[0],g=i[1]),function(m,p,v){var d=(v||t).length,_=s[d],x,S,A,P,O,k,C,z,R;if(!_){if(R=t.grid==="auto"?0:(t.grid||[1,Gt])[1],!R){for(C=-Gt;C<(C=v[R++].getBoundingClientRect().left)&&RC&&(C=O),Od?d-1:c?c==="y"?d/R:R:Math.max(R,d/R))||0)*(i==="edges"?-1:1),_.b=d<0?n-d:n,_.u=at(t.amount||t.each)||0,r=r&&d<0?Ya(r):r}return d=(_[m]-_.min)/_.max||0,Ze(_.b+(r?r(d):d)*_.v)+_.u}},Go=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=Ze(Math.round(parseFloat(r)/e)*e*t);return(i-i%1)/t+(Er(r)?0:at(r))}},za=function(e,t){var r=_t(e),i,n;return!r&&pr(e)&&(i=r=e.radius||Gt,e.values?(e=$t(e.values),(n=!Er(e[0]))&&(i*=i)):e=Go(e.increment)),Ir(t,r?qe(e)?function(s){return n=e(s),Math.abs(n-s)<=i?n:s}:function(s){for(var a=parseFloat(n?s.x:s),l=parseFloat(n?s.y:0),c=Gt,u=0,g=e.length,m,p;g--;)n?(m=e[g].x-a,p=e[g].y-l,m=m*m+p*p):m=Math.abs(e[g]-a),mi?n-s:s)})},Ei=function(e){for(var t=0,r="",i,n,s,a;~(i=e.indexOf("random(",t));)s=e.indexOf(")",i),a=e.charAt(i+7)==="[",n=e.substr(i+7,s-i-7).match(a?wa:Wo),r+=e.substr(t,i-t)+qa(a?n:+n[0],a?0:+n[1],+n[2]||1e-5),t=s+1;return r+e.substr(t,e.length-t)},Ba=function(e,t,r,i,n){var s=t-e,a=i-r;return Ir(n,function(l){return r+((l-e)/s*a||0)})},gu=function o(e,t,r,i){var n=isNaN(e+t)?0:function(p){return(1-p)*e+p*t};if(!n){var s=Ge(e),a={},l,c,u,g,m;if(r===!0&&(i=1)&&(r=null),s)e={p:e},t={p:t};else if(_t(e)&&!_t(t)){for(u=[],g=e.length,m=g-2,c=1;c(a=Math.abs(a))&&(l=s,n=a);return l},Wt=function(e,t,r){var i=e.vars,n=i[t],s=ke,a=e._ctx,l,c,u;if(n)return l=i[t+"Params"],c=i.callbackScope||e,r&&qr.length&&Dn(),a&&(ke=a),u=l?n.apply(c,l):n.call(c),ke=s,u},Xi=function(e){return Br(e),e.scrollTrigger&&e.scrollTrigger.kill(!!pt),e.progress()<1&&Wt(e,"onInterrupt"),e},wi,Ia=[],Na=function(e){if(e)if(e=!e.name&&e.default||e,Zo()||e.headless){var t=e.name,r=qe(e),i=t&&!r&&e.init?function(){this._props=[]}:e,n={init:Ki,render:ds,add:ls,kill:Lu,modifier:Mu,rawVars:0},s={targetTest:0,get:0,getSetter:Yn,aliases:{},register:0};if(Ti(),e!==i){if(Dt[t])return;Kt(i,Kt(zn(e,n),s)),Zr(i.prototype,Zr(n,zn(e,s))),Dt[i.prop=t]=i,e.targetTest&&(Mn.push(i),rs[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Sa(t,i),e.register&&e.register(gt,i,Tt)}else Ia.push(e)},we=255,ji={aqua:[0,we,we],lime:[0,we,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,we],navy:[0,0,128],white:[we,we,we],olive:[128,128,0],yellow:[we,we,0],orange:[we,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[we,0,0],pink:[we,192,203],cyan:[0,we,we],transparent:[we,we,we,0]},zo=function(e,t,r){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(r-t)*e*6:e<.5?r:e*3<2?t+(r-t)*(2/3-e)*6:t)*we+.5|0},Wa=function(e,t,r){var i=e?Er(e)?[e>>16,e>>8&we,e&we]:0:ji.black,n,s,a,l,c,u,g,m,p,v;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),ji[e])i=ji[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),s=e.charAt(2),a=e.charAt(3),e="#"+n+n+s+s+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&we,i&we,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&we,e&we]}else if(e.substr(0,3)==="hsl"){if(i=v=e.match(Wo),!t)l=+i[0]%360/360,c=+i[1]/100,u=+i[2]/100,s=u<=.5?u*(c+1):u+c-u*c,n=u*2-s,i.length>3&&(i[3]*=1),i[0]=zo(l+1/3,n,s),i[1]=zo(l,n,s),i[2]=zo(l-1/3,n,s);else if(~e.indexOf("="))return i=e.match(Jo),r&&i.length<4&&(i[3]=1),i}else i=e.match(Wo)||ji.transparent;i=i.map(Number)}return t&&!v&&(n=i[0]/we,s=i[1]/we,a=i[2]/we,g=Math.max(n,s,a),m=Math.min(n,s,a),u=(g+m)/2,g===m?l=c=0:(p=g-m,c=u>.5?p/(2-g-m):p/(g+m),l=g===n?(s-a)/p+(se||x<0)&&(r+=x-t),i+=x,O=i-r,A=O-s,(A>0||S)&&(k=++g.frame,m=O-g.time*1e3,g.time=O=O/1e3,s+=A+(A>=n?4:n-A),P=1),S||(l=c(d)),P)for(p=0;p=x&&p--},_listeners:a},g}(),Ti=function(){return!Qi&&zt.wake()},he={},yu=/^[\d.\-M][\d.\-,\s]/,vu=/["']/g,wu=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),i=r[0],n=1,s=r.length,a,l,c;n1&&r.config?r.config.apply(null,~e.indexOf("{")?[wu(t[1])]:bu(e).split(",").map(ka)):he._CE&&yu.test(e)?he._CE("",e):r},Ya=function(e){return function(t){return 1-e(1-t)}},Xa=function o(e,t){for(var r=e._first,i;r;)r instanceof st?o(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?o(r.timeline,t):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=t)),r=r._next},Kr=function(e,t){return e&&(qe(e)?e:he[e]||xu(e))||t},ti=function(e,t,r,i){r===void 0&&(r=function(l){return 1-t(1-l)}),i===void 0&&(i=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var n={easeIn:t,easeOut:r,easeInOut:i},s;return St(e,function(a){he[a]=Ht[a]=n,he[s=a.toLowerCase()]=r;for(var l in n)he[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=he[a+"."+l]=n[l]}),n},ja=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},qo=function o(e,t,r){var i=t>=1?t:1,n=(r||(e?.3:.45))/(t<1?t:1),s=n/No*(Math.asin(1/i)||0),a=function(u){return u===1?1:i*Math.pow(2,-10*u)*Kc((u-s)*n)+1},l=e==="out"?a:e==="in"?function(c){return 1-a(1-c)}:ja(a);return n=No/n,l.config=function(c,u){return o(e,c,u)},l},Fo=function o(e,t){t===void 0&&(t=1.70158);var r=function(s){return s?--s*s*((t+1)*s+t)+1:0},i=e==="out"?r:e==="in"?function(n){return 1-r(1-n)}:ja(r);return i.config=function(n){return o(e,n)},i};St("Linear,Quad,Cubic,Quart,Quint,Strong",function(o,e){var t=e<5?e+1:e;ti(o+",Power"+(t-1),e?function(r){return Math.pow(r,t)}:function(r){return r},function(r){return 1-Math.pow(1-r,t)},function(r){return r<.5?Math.pow(r*2,t)/2:1-Math.pow((1-r)*2,t)/2})});he.Linear.easeNone=he.none=he.Linear.easeIn;ti("Elastic",qo("in"),qo("out"),qo());(function(o,e){var t=1/e,r=2*t,i=2.5*t,n=function(a){return a0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,Si(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(Ti(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Hn(this,r),!n._dp||n.parent||Aa(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r0||!this._tDur&&!r)&&dr(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===be||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),Ea(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+ha(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+ha(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*n,i):this._repeat?xi(this._tTime,n)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-be?0:this._rts;if(this._rts===r)return this;var n=this.parent&&this._ts?qn(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-be?0:this._rts,this.totalTime(Ji(-Math.abs(this._delay),this._tDur,n),i!==!1),Wn(this),iu(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ti(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==be&&(this._tTime-=be)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&dr(i,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(qt(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?qn(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=Jc);var i=pt;return pt=r,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),pt=i,this},e.globalTime=function(r){for(var i=this,n=arguments.length?r:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):n},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,da(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,da(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(Vt(this,r),qt(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,qt(i))},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-be:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-be,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,n;return!!(!r||this._ts&&this._initted&&r.isActive()&&(n=r.rawTime(!0))>=i&&n1?(i?(s[r]=i,n&&(s[r+"Params"]=n),r==="onUpdate"&&(this._onUpdate=i)):delete s[r],this):s[r]},e.then=function(r){var i=this;return new Promise(function(n){var s=qe(r)?r:Pa,a=function(){var c=i.then;i.then=null,qe(s)&&(s=s(i))&&(s.then||s===i)&&(i.then=c),n(s),i.then=c};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?a():i._prom=a})},e.kill=function(){Xi(this)},o}();Kt(Zi.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:-be,_prom:0,_ps:!1,_rts:1});var st=function(o){ma(e,o);function e(r,i){var n;return r===void 0&&(r={}),n=o.call(this,r)||this,n.labels={},n.smoothChildTiming=!!r.smoothChildTiming,n.autoRemoveChildren=!!r.autoRemoveChildren,n._sort=qt(r.sortChildren),Oe&&dr(r.parent||Oe,Sr(n),i),r.reversed&&n.reverse(),r.paused&&n.paused(!0),r.scrollTrigger&&Oa(Sr(n),r.scrollTrigger),n}var t=e.prototype;return t.to=function(i,n,s){return Vi(0,arguments,this),this},t.from=function(i,n,s){return Vi(1,arguments,this),this},t.fromTo=function(i,n,s,a){return Vi(2,arguments,this),this},t.set=function(i,n,s){return n.duration=0,n.parent=this,Ui(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Ne(i,n,Vt(this,s),1),this},t.call=function(i,n,s){return dr(this,Ne.delayedCall(0,i,n),s)},t.staggerTo=function(i,n,s,a,l,c,u){return s.duration=n,s.stagger=s.stagger||a,s.onComplete=c,s.onCompleteParams=u,s.parent=this,new Ne(i,s,Vt(this,l)),this},t.staggerFrom=function(i,n,s,a,l,c,u){return s.runBackwards=1,Ui(s).immediateRender=qt(s.immediateRender),this.staggerTo(i,n,s,a,l,c,u)},t.staggerFromTo=function(i,n,s,a,l,c,u,g){return a.startAt=s,Ui(a).immediateRender=qt(a.immediateRender),this.staggerTo(i,n,a,l,c,u,g)},t.render=function(i,n,s){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=i<=0?0:Ze(i),g=this._zTime<0!=i<0&&(this._initted||!c),m,p,v,d,_,x,S,A,P,O,k,C;if(this!==Oe&&u>l&&i>=0&&(u=l),u!==this._tTime||s||g){if(a!==this._time&&c&&(u+=this._time-a,i+=this._time-a),m=u,P=this._start,A=this._ts,x=!A,g&&(c||(a=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(k=this._yoyo,_=c+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(_*100+i,n,s);if(m=Ze(u%_),u===l?(d=this._repeat,m=c):(d=~~(u/_),d&&d===u/_&&(m=c,d--),m>c&&(m=c)),O=xi(this._tTime,_),!a&&this._tTime&&O!==d&&this._tTime-O*_-this._dur<=0&&(O=d),k&&d&1&&(m=c-m,C=1),d!==O&&!this._lock){var z=k&&O&1,R=z===(k&&d&1);if(d=a&&i>=0)for(p=this._first;p;){if(v=p._next,(p._act||m>=p._start)&&p._ts&&S!==p){if(p.parent!==this)return this.render(i,n,s);if(p.render(p._ts>0?(m-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(m-p._start)*p._ts,n,s),m!==this._time||!this._ts&&!x){S=0,v&&(u+=this._zTime=-be);break}}p=v}else{p=this._last;for(var D=i<0?i:m;p;){if(v=p._prev,(p._act||D<=p._end)&&p._ts&&S!==p){if(p.parent!==this)return this.render(i,n,s);if(p.render(p._ts>0?(D-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(D-p._start)*p._ts,n,s||pt&&(p._initted||p._startAt)),m!==this._time||!this._ts&&!x){S=0,v&&(u+=this._zTime=D?-be:be);break}}p=v}}if(S&&!n&&(this.pause(),S.render(m>=a?0:-be)._zTime=m>=a?1:-1,this._ts))return this._start=P,Wn(this),this.render(i,n,s);this._onUpdate&&!n&&Wt(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&a)&&(P===this._start||Math.abs(A)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(u===l&&this._ts>0||!u&&this._ts<0)&&Br(this,1),!n&&!(i<0&&!a)&&(u||a||!l)&&(Wt(this,u===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},t.add=function(i,n){var s=this;if(Er(n)||(n=Vt(this,n,i)),!(i instanceof Zi)){if(_t(i))return i.forEach(function(a){return s.add(a,n)}),this;if(Ge(i))return this.addLabel(i,n);if(qe(i))i=Ne.delayedCall(0,i);else return this}return this!==i?dr(this,i,n):this},t.getChildren=function(i,n,s,a){i===void 0&&(i=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),a===void 0&&(a=-Gt);for(var l=[],c=this._first;c;)c._start>=a&&(c instanceof Ne?n&&l.push(c):(s&&l.push(c),i&&l.push.apply(l,c.getChildren(!0,n,s)))),c=c._next;return l},t.getById=function(i){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===i)return n[s]},t.remove=function(i){return Ge(i)?this.removeLabel(i):qe(i)?this.killTweensOf(i):(Nn(this,i),i===this._recent&&(this._recent=this._last),$r(this))},t.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ze(zt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),o.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},t.addLabel=function(i,n){return this.labels[i]=Vt(this,n),this},t.removeLabel=function(i){return delete this.labels[i],this},t.addPause=function(i,n,s){var a=Ne.delayedCall(0,n||Ki,s);return a.data="isPause",this._hasPause=1,dr(this,a,Vt(this,i))},t.removePause=function(i){var n=this._first;for(i=Vt(this,i);n;)n._start===i&&n.data==="isPause"&&Br(n),n=n._next},t.killTweensOf=function(i,n,s){for(var a=this.getTweensOf(i,s),l=a.length;l--;)zr!==a[l]&&a[l].kill(i,n);return this},t.getTweensOf=function(i,n){for(var s=[],a=$t(i),l=this._first,c=Er(n),u;l;)l instanceof Ne?eu(l._targets,a)&&(c?(!zr||l._initted&&l._ts)&&l.globalTime(0)<=n&&l.globalTime(l.totalDuration())>n:!n||l.isActive())&&s.push(l):(u=l.getTweensOf(a,n)).length&&s.push.apply(s,u),l=l._next;return s},t.tweenTo=function(i,n){n=n||{};var s=this,a=Vt(s,i),l=n,c=l.startAt,u=l.onStart,g=l.onStartParams,m=l.immediateRender,p,v=Ne.to(s,Kt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:n.duration||Math.abs((a-(c&&"time"in c?c.time:s._time))/s.timeScale())||be,onStart:function(){if(s.pause(),!p){var _=n.duration||Math.abs((a-(c&&"time"in c?c.time:s._time))/s.timeScale());v._dur!==_&&Si(v,_,0,1).render(v._time,!0,!0),p=1}u&&u.apply(v,g||[])}},n));return m?v.render(0):v},t.tweenFromTo=function(i,n,s){return this.tweenTo(n,Kt({startAt:{time:Vt(this,i)}},s))},t.recent=function(){return this._recent},t.nextLabel=function(i){return i===void 0&&(i=this._time),pa(this,Vt(this,i))},t.previousLabel=function(i){return i===void 0&&(i=this._time),pa(this,Vt(this,i),1)},t.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+be)},t.shiftChildren=function(i,n,s){s===void 0&&(s=0);for(var a=this._first,l=this.labels,c;a;)a._start>=s&&(a._start+=i,a._end+=i),a=a._next;if(n)for(c in l)l[c]>=s&&(l[c]+=i);return $r(this)},t.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return o.prototype.invalidate.call(this,i)},t.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),$r(this)},t.totalDuration=function(i){var n=0,s=this,a=s._last,l=Gt,c,u,g;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(g=s.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>l&&s._sort&&a._ts&&!s._lock?(s._lock=1,dr(s,a,u-a._delay,1)._lock=0):l=u,u<0&&a._ts&&(n-=u,(!g&&!s._dp||g&&g.smoothChildTiming)&&(s._start+=u/s._ts,s._time-=u,s._tTime-=u),s.shiftChildren(-u,!1,-1/0),l=0),a._end>n&&a._ts&&(n=a._end),a=c;Si(s,s===Oe&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(Oe._ts&&(Ea(Oe,qn(i,Oe)),Ta=zt.frame),zt.frame>=ua){ua+=Ft.autoSleep||120;var n=Oe._first;if((!n||!n._ts)&&Ft.autoSleep&&zt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||zt.sleep()}}},e}(Zi);Kt(st.prototype,{_lock:0,_hasPause:0,_forcing:0});var Su=function(e,t,r,i,n,s,a){var l=new Tt(this._pt,e,t,0,1,hs,null,n),c=0,u=0,g,m,p,v,d,_,x,S;for(l.b=r,l.e=i,r+="",i+="",(x=~i.indexOf("random("))&&(i=Ei(i)),s&&(S=[r,i],s(S,e,t),r=S[0],i=S[1]),m=r.match(Ro)||[];g=Ro.exec(i);)v=g[0],d=i.substring(c,g.index),p?p=(p+1)%5:d.substr(-5)==="rgba("&&(p=1),v!==m[u++]&&(_=parseFloat(m[u-1])||0,l._pt={_next:l._pt,p:d||u===1?d:",",s:_,c:v.charAt(1)==="="?ei(_,v)-_:parseFloat(v)-_,m:p&&p<4?Math.round:0},c=Ro.lastIndex);return l.c=c")}),P.duration();else{k={};for(z in v)z==="ease"||z==="easeEach"||Pu(z,v[z],k,v.easeEach);for(z in k)for(K=k[z].sort(function(te,Q){return te.t-Q.t}),q=0,O=0;Ol-be&&!u?l:ic&&(m=c)),x=this._yoyo&&v&1,x&&(P=this._yEase,m=c-m),_=xi(this._tTime,d),m===a&&!s&&this._initted&&v===_)return this._tTime=g,this;v!==_&&(A&&this._yEase&&Xa(A,x),this.vars.repeatRefresh&&!x&&!this._lock&&this._time!==d&&this._initted&&(this._lock=s=1,this.render(Ze(d*v),!0).invalidate()._lock=0))}if(!this._initted){if(Ma(this,u?i:m,s,n,g))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&v!==_))return this;if(c!==this._dur)return this.render(i,n,s)}if(this._tTime=g,this._time=m,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=S=(P||this._ease)(m/c),this._from&&(this.ratio=S=1-S),m&&!a&&!n&&!v&&(Wt(this,"onStart"),this._tTime!==g))return this;for(p=this._pt;p;)p.r(S,p.d),p=p._next;A&&A.render(i<0?i:A._dur*A._ease(m/this._dur),n,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(u&&Xo(this,i,n,s),Wt(this,"onUpdate")),this._repeat&&v!==_&&this.vars.onRepeat&&!n&&this.parent&&Wt(this,"onRepeat"),(g===this._tDur||!g)&&this._tTime===g&&(u&&!this._onUpdate&&Xo(this,i,!0,!0),(i||!c)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Br(this,1),!n&&!(u&&!a)&&(g||a||x)&&(Wt(this,g===l?"onComplete":"onReverseComplete",!0),this._prom&&!(g0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),o.prototype.invalidate.call(this,i)},t.resetTo=function(i,n,s,a,l){Qi||zt.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||us(this,c),u=this._ease(c/this._dur),Eu(this,i,n,s,a,u,c,l)?this.resetTo(i,n,s,a,1):(Hn(this,0),this.parent||Ca(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?Xi(this):this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,zr&&zr.vars.overwrite!==!0)._first||Xi(this),this.parent&&s!==this.timeline.totalDuration()&&Si(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,l=i?$t(i):a,c=this._ptLookup,u=this._pt,g,m,p,v,d,_,x;if((!n||n==="all")&&ru(a,l))return n==="all"&&(this._pt=0),Xi(this);for(g=this._op=this._op||[],n!=="all"&&(Ge(n)&&(d={},St(n,function(S){return d[S]=1}),n=d),n=ku(a,n)),x=a.length;x--;)if(~l.indexOf(a[x])){m=c[x],n==="all"?(g[x]=n,v=m,p={}):(p=g[x]=g[x]||{},v=n);for(d in v)_=m&&m[d],_&&((!("kill"in _.d)||_.d.kill(d)===!0)&&Nn(this,_,"_pt"),delete m[d]),p!=="all"&&(p[d]=1)}return this._initted&&!this._pt&&u&&Xi(this),this},e.to=function(i,n){return new e(i,n,arguments[2])},e.from=function(i,n){return Vi(1,arguments)},e.delayedCall=function(i,n,s,a){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},e.fromTo=function(i,n,s){return Vi(2,arguments)},e.set=function(i,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(i,n)},e.killTweensOf=function(i,n,s){return Oe.killTweensOf(i,n,s)},e}(Zi);Kt(Ne.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});St("staggerTo,staggerFrom,staggerFromTo",function(o){Ne[o]=function(){var e=new st,t=Uo.call(arguments,0);return t.splice(o==="staggerFromTo"?5:4,0,0),e[o].apply(e,t)}});var fs=function(e,t,r){return e[t]=r},Ga=function(e,t,r){return e[t](r)},Cu=function(e,t,r,i){return e[t](i.fp,r)},Au=function(e,t,r){return e.setAttribute(t,r)},Yn=function(e,t){return qe(e[t])?Ga:Bn(e[t])&&e.setAttribute?Au:fs},$a=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Ou=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},hs=function(e,t){var r=t._pt,i="";if(!e&&t.b)i=t.b;else if(e===1&&t.e)i=t.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=t.c}t.set(t.t,t.p,i,t)},ds=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},Mu=function(e,t,r,i){for(var n=this._pt,s;n;)s=n._next,n.p===i&&n.modifier(e,t,r),n=s},Lu=function(e){for(var t=this._pt,r,i;t;)i=t._next,t.p===e&&!t.op||t.op===e?Nn(this,t,"_pt"):t.dep||(r=1),t=i;return!r},Ru=function(e,t,r,i){i.mSet(e,t,i.m.call(i.tween,r,i.mt),i)},ps=function(e){for(var t=e._pt,r,i,n,s;t;){for(r=t._next,i=n;i&&i.pr>t.pr;)i=i._next;(t._prev=i?i._prev:s)?t._prev._next=t:n=t,(t._next=i)?i._prev=t:s=t,t=r}e._pt=n},Tt=function(){function o(t,r,i,n,s,a,l,c,u){this.t=r,this.s=n,this.c=s,this.p=i,this.r=a||$a,this.d=l||this,this.set=c||fs,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=o.prototype;return e.modifier=function(r,i,n){this.mSet=this.mSet||this.set,this.set=Ru,this.m=r,this.mt=n,this.tween=i},o}();St(is+"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(o){return rs[o]=1});Ht.TweenMax=Ht.TweenLite=Ne;Ht.TimelineLite=Ht.TimelineMax=st;Oe=new st({sortChildren:!1,defaults:bi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ft.stringFilter=ss;var Qr=[],Ln={},Du=[],ga=0,zu=0,Bo=function(e){return(Ln[e]||Du).map(function(t){return t()})},Ko=function(){var e=Date.now(),t=[];e-ga>2&&(Bo("matchMediaInit"),Qr.forEach(function(r){var i=r.queries,n=r.conditions,s,a,l,c;for(a in i)s=hr.matchMedia(i[a]).matches,s&&(l=1),s!==n[a]&&(n[a]=s,c=1);c&&(r.revert(),l&&t.push(r))}),Bo("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),ga=e,Bo("matchMedia"))},Ka=function(){function o(t,r){this.selector=r&&Vo(r),this.data=[],this._r=[],this.isReverted=!1,this.id=zu++,t&&this.add(t)}var e=o.prototype;return e.add=function(r,i,n){qe(r)&&(n=i,i=r,r=qe);var s=this,a=function(){var c=ke,u=s.selector,g;return c&&c!==s&&c.data.push(s),n&&(s.selector=Vo(n)),ke=s,g=i.apply(s,arguments),qe(g)&&s._r.push(g),ke=c,s.selector=u,s.isReverted=!1,g};return s.last=a,r===qe?a(s,function(l){return s.add(null,l)}):r?s[r]=a:a},e.ignore=function(r){var i=ke;ke=null,r(this),ke=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof o?r.push.apply(r,i.getTweens()):i instanceof Ne&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var n=this;if(r?function(){for(var a=n.getTweens(),l=n.data.length,c;l--;)c=n.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,g){return g.g-u.g||-1/0}).forEach(function(u){return u.t.revert(r)}),l=n.data.length;l--;)c=n.data[l],c instanceof st?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof Ne)&&c.revert&&c.revert(r);n._r.forEach(function(u){return u(r,n)}),n.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var s=Qr.length;s--;)Qr[s].id===this.id&&Qr.splice(s,1)},e.revert=function(r){this.kill(r||{})},o}(),qu=function(){function o(t){this.contexts=[],this.scope=t,ke&&ke.data.push(this)}var e=o.prototype;return e.add=function(r,i,n){pr(r)||(r={matches:r});var s=new Ka(0,n||this.scope),a=s.conditions={},l,c,u;ke&&!s.selector&&(s.selector=ke.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=r;for(c in r)c==="all"?u=1:(l=hr.matchMedia(r[c]),l&&(Qr.indexOf(s)<0&&Qr.push(s),(a[c]=l.matches)&&(u=1),l.addListener?l.addListener(Ko):l.addEventListener("change",Ko)));return u&&i(s,function(g){return s.add(null,g)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},o}(),Fn={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r1){var i=e.map(function(u){return gt.quickSetter(u,t,r)}),n=i.length;return function(u){for(var g=n;g--;)i[g](u)}}e=e[0]||{};var s=Dt[t],a=Fr(e),l=a.harness&&(a.harness.aliases||{})[t]||t,c=s?function(u){var g=new s;wi._pt=0,g.init(e,r?u+r:u,wi,0,[e]),g.render(1,g),wi._pt&&ds(1,wi)}:a.set(e,l);return s?c:function(u){return c(e,l,r?u+r:u,a,1)}},quickTo:function(e,t,r){var i,n=gt.to(e,Zr((i={},i[t]="+=0.1",i.paused=!0,i),r||{})),s=function(l,c,u){return n.resetTo(t,l,c,u)};return s.tween=n,s},isTweening:function(e){return Oe.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Kr(e.ease,bi.ease)),fa(bi,e||{})},config:function(e){return fa(Ft,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,i=e.plugins,n=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!Dt[a]&&!Ht[a]&&$i(t+" effect requires "+a+" plugin.")}),Do[t]=function(a,l,c){return r($t(a),Kt(l||{},n),c)},s&&(st.prototype[t]=function(a,l,c){return this.add(Do[t](a,pr(l)?l:(c=l)&&{},this),c)})},registerEase:function(e,t){he[e]=Kr(t)},parseEase:function(e,t){return arguments.length?Kr(e,t):he},getById:function(e){return Oe.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new st(e),i,n;for(r.smoothChildTiming=qt(e.smoothChildTiming),Oe.remove(r),r._dp=0,r._time=r._tTime=Oe._time,i=Oe._first;i;)n=i._next,(t||!(!i._dur&&i instanceof Ne&&i.vars.onComplete===i._targets[0]))&&dr(r,i,i._start-i._delay),i=n;return dr(Oe,r,0),r},context:function(e,t){return e?new Ka(e,t):ke},matchMedia:function(e){return new qu(e)},matchMediaRefresh:function(){return Qr.forEach(function(e){var t=e.conditions,r,i;for(i in t)t[i]&&(t[i]=!1,r=1);r&&e.revert()})||Ko()},addEventListener:function(e,t){var r=Ln[e]||(Ln[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=Ln[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},utils:{wrap:pu,wrapYoyo:_u,distribute:Da,random:qa,snap:za,normalize:du,getUnit:at,clamp:cu,splitColor:Wa,toArray:$t,selector:Vo,mapRange:Ba,pipe:fu,unitize:hu,interpolate:gu,shuffle:Ra},install:xa,effects:Do,ticker:zt,updateRoot:st.updateRoot,plugins:Dt,globalTimeline:Oe,core:{PropTween:Tt,globals:Sa,Tween:Ne,Timeline:st,Animation:Zi,getCache:Fr,_removeLinkedListItem:Nn,reverting:function(){return pt},context:function(e){return e&&ke&&(ke.data.push(e),e._ctx=ke),ke},suppressOverwrites:function(e){return Qo=e}}};St("to,from,fromTo,delayedCall,set,killTweensOf",function(o){return Fn[o]=Ne[o]});zt.add(st.updateRoot);wi=Fn.to({},{duration:0});var Fu=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},Bu=function(e,t){var r=e._targets,i,n,s;for(i in t)for(n=r.length;n--;)s=e._ptLookup[n][i],s&&(s=s.d)&&(s._pt&&(s=Fu(s,i)),s&&s.modifier&&s.modifier(t[i],e,r[n],i))},Io=function(e,t){return{name:e,rawVars:1,init:function(i,n,s){s._onInit=function(a){var l,c;if(Ge(n)&&(l={},St(n,function(u){return l[u]=1}),n=l),t){l={};for(c in n)l[c]=t(n[c]);n=l}Bu(a,n)}}}},gt=Fn.registerPlugin({name:"attr",init:function(e,t,r,i,n){var s,a,l;this.tween=r;for(s in t)l=e.getAttribute(s)||"",a=this.add(e,"setAttribute",(l||0)+"",t[s],i,n,0,0,s),a.op=s,a.b=l,this._props.push(s)},render:function(e,t){for(var r=t._pt;r;)pt?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},Io("roundProps",Go),Io("modifiers"),Io("snap",za))||Fn;Ne.version=st.version=gt.version="3.12.5";ba=1;Zo()&&Ti();var Iu=he.Power0,Nu=he.Power1,Wu=he.Power2,Hu=he.Power3,Yu=he.Power4,Xu=he.Linear,ju=he.Quad,Uu=he.Cubic,Vu=he.Quart,Gu=he.Quint,$u=he.Strong,Ku=he.Elastic,Qu=he.Back,Zu=he.SteppedEase,Ju=he.Bounce,ef=he.Sine,tf=he.Expo,rf=he.Circ;var Qa,Nr,Pi,bs,oi,nf,Za,xs,of=function(){return typeof window<"u"},Pr={},ni=180/Math.PI,Ci=Math.PI/180,ki=Math.atan2,Ja=1e8,Ss=/([A-Z])/g,sf=/(left|right|width|margin|padding|x)/i,af=/[\s,\(]\S/,_r={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ms=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},lf=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)},cf=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)},uf=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},sl=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},al=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},ff=function(e,t,r){return e.style[t]=r},hf=function(e,t,r){return e.style.setProperty(t,r)},df=function(e,t,r){return e._gsap[t]=r},pf=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},_f=function(e,t,r,i,n){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(n,s)},gf=function(e,t,r,i,n){var s=e._gsap;s[t]=r,s.renderTransform(n,s)},Me="transform",Bt=Me+"Origin",mf=function o(e,t){var r=this,i=this.target,n=i.style,s=i._gsap;if(e in Pr&&n){if(this.tfm=this.tfm||{},e!=="transform")e=_r[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=kr(i,a)}):this.tfm[e]=s.x?s[e]:kr(i,e),e===Bt&&(this.tfm.zOrigin=s.zOrigin);else return _r.transform.split(",").forEach(function(a){return o.call(r,a,t)});if(this.props.indexOf(Me)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Bt,t,"")),e=Me}(n||t)&&this.props.push(e,t,n[e])},ll=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},yf=function(){var e=this.props,t=this.target,r=t.style,i=t._gsap,n,s;for(n=0;n=0?el[s]:"")+e},vs=function(){of()&&window.document&&(Qa=window,Nr=Qa.document,Pi=Nr.documentElement,oi=ys("div")||{style:{}},nf=ys("div"),Me=Ai(Me),Bt=Me+"Origin",oi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ul=!!Ai("perspective"),xs=gt.core.reverting,bs=1)},_s=function o(e){var t=ys("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,i=this.nextSibling,n=this.style.cssText,s;if(Pi.appendChild(t),t.appendChild(this),this.style.display="block",e)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=o}catch{}else this._gsapBBox&&(s=this._gsapBBox());return r&&(i?r.insertBefore(this,i):r.appendChild(this)),Pi.removeChild(t),this.style.cssText=n,s},tl=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},fl=function(e){var t;try{t=e.getBBox()}catch{t=_s.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===_s||(t=_s.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+tl(e,["x","cx","x1"])||0,y:+tl(e,["y","cy","y1"])||0,width:0,height:0}:t},hl=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&fl(e))},si=function(e,t){if(t){var r=e.style,i;t in Pr&&t!==Bt&&(t=Me),r.removeProperty?(i=t.substr(0,2),(i==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(i==="--"?t:t.replace(Ss,"-$1").toLowerCase())):r.removeAttribute(t)}},Wr=function(e,t,r,i,n,s){var a=new Tt(e._pt,t,r,0,1,s?al:sl);return e._pt=a,a.b=i,a.e=n,e._props.push(r),a},rl={deg:1,rad:1,turn:1},vf={grid:1,flex:1},Hr=function o(e,t,r,i){var n=parseFloat(r)||0,s=(r+"").trim().substr((n+"").length)||"px",a=oi.style,l=sf.test(t),c=e.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(l?"Width":"Height"),g=100,m=i==="px",p=i==="%",v,d,_,x;if(i===s||!n||rl[i]||rl[s])return n;if(s!=="px"&&!m&&(n=o(e,t,r,"px")),x=e.getCTM&&hl(e),(p||s==="%")&&(Pr[t]||~t.indexOf("adius")))return v=x?e.getBBox()[l?"width":"height"]:e[u],Fe(p?n/v*g:n/100*v);if(a[l?"width":"height"]=g+(m?s:i),d=~t.indexOf("adius")||i==="em"&&e.appendChild&&!c?e:e.parentNode,x&&(d=(e.ownerSVGElement||{}).parentNode),(!d||d===Nr||!d.appendChild)&&(d=Nr.body),_=d._gsap,_&&p&&_.width&&l&&_.time===zt.time&&!_.uncache)return Fe(n/_.width*g);if(p&&(t==="height"||t==="width")){var S=e.style[t];e.style[t]=g+i,v=e[u],S?e.style[t]=S:si(e,t)}else(p||s==="%")&&!vf[gr(d,"display")]&&(a.position=gr(e,"position")),d===e&&(a.position="static"),d.appendChild(oi),v=oi[u],d.removeChild(oi),a.position="absolute";return l&&p&&(_=Fr(d),_.time=zt.time,_.width=d[u]),Fe(m?v*n/g:v&&n?g/v*n:0)},kr=function(e,t,r,i){var n;return bs||vs(),t in _r&&t!=="transform"&&(t=_r[t],~t.indexOf(",")&&(t=t.split(",")[0])),Pr[t]&&t!=="transform"?(n=rn(e,i),n=t!=="transformOrigin"?n[t]:n.svg?n.origin:jn(gr(e,Bt))+" "+n.zOrigin+"px"):(n=e.style[t],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=Xn[t]&&Xn[t](e,t,r)||gr(e,t)||os(e,t)||(t==="opacity"?1:0))),r&&!~(n+"").trim().indexOf(" ")?Hr(e,t,n,r)+r:n},wf=function(e,t,r,i){if(!r||r==="none"){var n=Ai(t,e,1),s=n&&gr(e,n,1);s&&s!==r?(t=n,r=s):t==="borderColor"&&(r=gr(e,"borderTopColor"))}var a=new Tt(this._pt,e.style,t,0,1,hs),l=0,c=0,u,g,m,p,v,d,_,x,S,A,P,O;if(a.b=r,a.e=i,r+="",i+="",i==="auto"&&(d=e.style[t],e.style[t]=i,i=gr(e,t)||i,d?e.style[t]=d:si(e,t)),u=[r,i],ss(u),r=u[0],i=u[1],m=r.match(Jr)||[],O=i.match(Jr)||[],O.length){for(;g=Jr.exec(i);)_=g[0],S=i.substring(l,g.index),v?v=(v+1)%5:(S.substr(-5)==="rgba("||S.substr(-5)==="hsla(")&&(v=1),_!==(d=m[c++]||"")&&(p=parseFloat(d)||0,P=d.substr((p+"").length),_.charAt(1)==="="&&(_=ei(p,_)+P),x=parseFloat(_),A=_.substr((x+"").length),l=Jr.lastIndex-A.length,A||(A=A||Ft.units[t]||P,l===i.length&&(i+=A,a.e+=A)),P!==A&&(p=Hr(e,t,d,A)||0),a._pt={_next:a._pt,p:S||c===1?S:",",s:p,c:x-p,m:v&&v<4||t==="zIndex"?Math.round:0});a.c=l-1;)a=n[c],Pr[a]&&(l=1,a=a==="transformOrigin"?Bt:Me),si(r,a);l&&(si(r,Me),s&&(s.svg&&r.removeAttribute("transform"),rn(r,1),s.uncache=1,ll(i)))}},Xn={clearProps:function(e,t,r,i,n){if(n.data!=="isFromStart"){var s=e._pt=new Tt(e._pt,t,r,0,0,xf);return s.u=i,s.pr=-10,s.tween=n,e._props.push(r),1}}},tn=[1,0,0,1,0,0],dl={},pl=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},nl=function(e){var t=gr(e,Me);return pl(t)?tn:t.substr(7).match(Jo).map(Fe)},Ts=function(e,t){var r=e._gsap||Fr(e),i=e.style,n=nl(e),s,a,l,c;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,n=[l.a,l.b,l.c,l.d,l.e,l.f],n.join(",")==="1,0,0,1,0,0"?tn:n):(n===tn&&!e.offsetParent&&e!==Pi&&!r.svg&&(l=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent)&&(c=1,a=e.nextElementSibling,Pi.appendChild(e)),n=nl(e),l?i.display=l:si(e,"display"),c&&(a?s.insertBefore(e,a):s?s.appendChild(e):Pi.removeChild(e))),t&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},ws=function(e,t,r,i,n,s){var a=e._gsap,l=n||Ts(e,!0),c=a.xOrigin||0,u=a.yOrigin||0,g=a.xOffset||0,m=a.yOffset||0,p=l[0],v=l[1],d=l[2],_=l[3],x=l[4],S=l[5],A=t.split(" "),P=parseFloat(A[0])||0,O=parseFloat(A[1])||0,k,C,z,R;r?l!==tn&&(C=p*_-v*d)&&(z=P*(_/C)+O*(-d/C)+(d*S-_*x)/C,R=P*(-v/C)+O*(p/C)-(p*S-v*x)/C,P=z,O=R):(k=fl(e),P=k.x+(~A[0].indexOf("%")?P/100*k.width:P),O=k.y+(~(A[1]||A[0]).indexOf("%")?O/100*k.height:O)),i||i!==!1&&a.smooth?(x=P-c,S=O-u,a.xOffset=g+(x*p+S*d)-x,a.yOffset=m+(x*v+S*_)-S):a.xOffset=a.yOffset=0,a.xOrigin=P,a.yOrigin=O,a.smooth=!!i,a.origin=t,a.originIsAbsolute=!!r,e.style[Bt]="0px 0px",s&&(Wr(s,a,"xOrigin",c,P),Wr(s,a,"yOrigin",u,O),Wr(s,a,"xOffset",g,a.xOffset),Wr(s,a,"yOffset",m,a.yOffset)),e.setAttribute("data-svg-origin",P+" "+O)},rn=function(e,t){var r=e._gsap||new as(e);if("x"in r&&!t&&!r.uncache)return r;var i=e.style,n=r.scaleX<0,s="px",a="deg",l=getComputedStyle(e),c=gr(e,Bt)||"0",u,g,m,p,v,d,_,x,S,A,P,O,k,C,z,R,D,Y,q,K,U,oe,te,Q,se,ge,E,me,Ke,wt,Se,Xe;return u=g=m=d=_=x=S=A=P=0,p=v=1,r.svg=!!(e.getCTM&&hl(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[Me]=(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[Me]!=="none"?l[Me]:"")),i.scale=i.rotate=i.translate="none"),C=Ts(e,r.svg),r.svg&&(r.uncache?(se=e.getBBox(),c=r.xOrigin-se.x+"px "+(r.yOrigin-se.y)+"px",Q=""):Q=!t&&e.getAttribute("data-svg-origin"),ws(e,Q||c,!!Q||r.originIsAbsolute,r.smooth!==!1,C)),O=r.xOrigin||0,k=r.yOrigin||0,C!==tn&&(Y=C[0],q=C[1],K=C[2],U=C[3],u=oe=C[4],g=te=C[5],C.length===6?(p=Math.sqrt(Y*Y+q*q),v=Math.sqrt(U*U+K*K),d=Y||q?ki(q,Y)*ni:0,S=K||U?ki(K,U)*ni+d:0,S&&(v*=Math.abs(Math.cos(S*Ci))),r.svg&&(u-=O-(O*Y+k*K),g-=k-(O*q+k*U))):(Xe=C[6],wt=C[7],E=C[8],me=C[9],Ke=C[10],Se=C[11],u=C[12],g=C[13],m=C[14],z=ki(Xe,Ke),_=z*ni,z&&(R=Math.cos(-z),D=Math.sin(-z),Q=oe*R+E*D,se=te*R+me*D,ge=Xe*R+Ke*D,E=oe*-D+E*R,me=te*-D+me*R,Ke=Xe*-D+Ke*R,Se=wt*-D+Se*R,oe=Q,te=se,Xe=ge),z=ki(-K,Ke),x=z*ni,z&&(R=Math.cos(-z),D=Math.sin(-z),Q=Y*R-E*D,se=q*R-me*D,ge=K*R-Ke*D,Se=U*D+Se*R,Y=Q,q=se,K=ge),z=ki(q,Y),d=z*ni,z&&(R=Math.cos(z),D=Math.sin(z),Q=Y*R+q*D,se=oe*R+te*D,q=q*R-Y*D,te=te*R-oe*D,Y=Q,oe=se),_&&Math.abs(_)+Math.abs(d)>359.9&&(_=d=0,x=180-x),p=Fe(Math.sqrt(Y*Y+q*q+K*K)),v=Fe(Math.sqrt(te*te+Xe*Xe)),z=ki(oe,te),S=Math.abs(z)>2e-4?z*ni:0,P=Se?1/(Se<0?-Se:Se):0),r.svg&&(Q=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!pl(gr(e,Me)),Q&&e.setAttribute("transform",Q))),Math.abs(S)>90&&Math.abs(S)<270&&(n?(p*=-1,S+=d<=0?180:-180,d+=d<=0?180:-180):(v*=-1,S+=S<=0?180:-180)),t=t||r.uncache,r.x=u-((r.xPercent=u&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=g-((r.yPercent=g&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-g)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=m+s,r.scaleX=Fe(p),r.scaleY=Fe(v),r.rotation=Fe(d)+a,r.rotationX=Fe(_)+a,r.rotationY=Fe(x)+a,r.skewX=S+a,r.skewY=A+a,r.transformPerspective=P+s,(r.zOrigin=parseFloat(c.split(" ")[2])||!t&&r.zOrigin||0)&&(i[Bt]=jn(c)),r.xOffset=r.yOffset=0,r.force3D=Ft.force3D,r.renderTransform=r.svg?Tf:ul?_l:Sf,r.uncache=0,r},jn=function(e){return(e=e.split(" "))[0]+" "+e[1]},gs=function(e,t,r){var i=at(t);return Fe(parseFloat(t)+parseFloat(Hr(e,"x",r+"px",i)))+i},Sf=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,_l(e,t)},ri="0deg",en="0px",ii=") ",_l=function(e,t){var r=t||this,i=r.xPercent,n=r.yPercent,s=r.x,a=r.y,l=r.z,c=r.rotation,u=r.rotationY,g=r.rotationX,m=r.skewX,p=r.skewY,v=r.scaleX,d=r.scaleY,_=r.transformPerspective,x=r.force3D,S=r.target,A=r.zOrigin,P="",O=x==="auto"&&e&&e!==1||x===!0;if(A&&(g!==ri||u!==ri)){var k=parseFloat(u)*Ci,C=Math.sin(k),z=Math.cos(k),R;k=parseFloat(g)*Ci,R=Math.cos(k),s=gs(S,s,C*R*-A),a=gs(S,a,-Math.sin(k)*-A),l=gs(S,l,z*R*-A+A)}_!==en&&(P+="perspective("+_+ii),(i||n)&&(P+="translate("+i+"%, "+n+"%) "),(O||s!==en||a!==en||l!==en)&&(P+=l!==en||O?"translate3d("+s+", "+a+", "+l+") ":"translate("+s+", "+a+ii),c!==ri&&(P+="rotate("+c+ii),u!==ri&&(P+="rotateY("+u+ii),g!==ri&&(P+="rotateX("+g+ii),(m!==ri||p!==ri)&&(P+="skew("+m+", "+p+ii),(v!==1||d!==1)&&(P+="scale("+v+", "+d+ii),S.style[Me]=P||"translate(0, 0)"},Tf=function(e,t){var r=t||this,i=r.xPercent,n=r.yPercent,s=r.x,a=r.y,l=r.rotation,c=r.skewX,u=r.skewY,g=r.scaleX,m=r.scaleY,p=r.target,v=r.xOrigin,d=r.yOrigin,_=r.xOffset,x=r.yOffset,S=r.forceCSS,A=parseFloat(s),P=parseFloat(a),O,k,C,z,R;l=parseFloat(l),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,l+=u),l||c?(l*=Ci,c*=Ci,O=Math.cos(l)*g,k=Math.sin(l)*g,C=Math.sin(l-c)*-m,z=Math.cos(l-c)*m,c&&(u*=Ci,R=Math.tan(c-u),R=Math.sqrt(1+R*R),C*=R,z*=R,u&&(R=Math.tan(u),R=Math.sqrt(1+R*R),O*=R,k*=R)),O=Fe(O),k=Fe(k),C=Fe(C),z=Fe(z)):(O=g,z=m,k=C=0),(A&&!~(s+"").indexOf("px")||P&&!~(a+"").indexOf("px"))&&(A=Hr(p,"x",s,"px"),P=Hr(p,"y",a,"px")),(v||d||_||x)&&(A=Fe(A+v-(v*O+d*C)+_),P=Fe(P+d-(v*k+d*z)+x)),(i||n)&&(R=p.getBBox(),A=Fe(A+i/100*R.width),P=Fe(P+n/100*R.height)),R="matrix("+O+","+k+","+C+","+z+","+A+","+P+")",p.setAttribute("transform",R),S&&(p.style[Me]=R)},Ef=function(e,t,r,i,n){var s=360,a=Ge(n),l=parseFloat(n)*(a&&~n.indexOf("rad")?ni:1),c=l-i,u=i+c+"deg",g,m;return a&&(g=n.split("_")[1],g==="short"&&(c%=s,c!==c%(s/2)&&(c+=c<0?s:-s)),g==="cw"&&c<0?c=(c+s*Ja)%s-~~(c/s)*s:g==="ccw"&&c>0&&(c=(c-s*Ja)%s-~~(c/s)*s)),e._pt=m=new Tt(e._pt,t,r,i,c,lf),m.e=u,m.u="deg",e._props.push(r),m},ol=function(e,t){for(var r in t)e[r]=t[r];return e},kf=function(e,t,r){var i=ol({},r._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,l,c,u,g,m,p,v;i.svg?(c=r.getAttribute("transform"),r.setAttribute("transform",""),s[Me]=t,a=rn(r,1),si(r,Me),r.setAttribute("transform",c)):(c=getComputedStyle(r)[Me],s[Me]=t,a=rn(r,1),s[Me]=c);for(l in Pr)c=i[l],u=a[l],c!==u&&n.indexOf(l)<0&&(p=at(c),v=at(u),g=p!==v?Hr(r,l,c,v):parseFloat(c),m=parseFloat(u),e._pt=new Tt(e._pt,a,l,g,m-g,ms),e._pt.u=v||0,e._props.push(l));ol(a,i)};St("padding,margin,Width,Radius",function(o,e){var t="Top",r="Right",i="Bottom",n="Left",s=(e<3?[t,r,i,n]:[t+n,t+r,i+r,i+n]).map(function(a){return e<2?o+a:"border"+a+o});Xn[e>1?"border"+o:o]=function(a,l,c,u,g){var m,p;if(arguments.length<4)return m=s.map(function(v){return kr(a,v,c)}),p=m.join(" "),p.split(m[0]).length===5?m[0]:p;m=(u+"").split(" "),p={},s.forEach(function(v,d){return p[v]=m[d]=m[d]||m[(d-1)/2|0]}),a.init(l,p,g)}});var Es={name:"css",register:vs,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,i,n){var s=this._props,a=e.style,l=r.vars.startAt,c,u,g,m,p,v,d,_,x,S,A,P,O,k,C,z;bs||vs(),this.styles=this.styles||cl(e),z=this.styles.props,this.tween=r;for(d in t)if(d!=="autoRound"&&(u=t[d],!(Dt[d]&&cs(d,t,r,i,e,n)))){if(p=typeof u,v=Xn[d],p==="function"&&(u=u.call(r,i,e,n),p=typeof u),p==="string"&&~u.indexOf("random(")&&(u=Ei(u)),v)v(this,e,d,u,r)&&(C=1);else if(d.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(d)+"").trim(),u+="",Tr.lastIndex=0,Tr.test(c)||(_=at(c),x=at(u)),x?_!==x&&(c=Hr(e,d,c,x)+x):_&&(u+=_),this.add(a,"setProperty",c,u,i,n,0,0,d),s.push(d),z.push(d,0,a[d]);else if(p!=="undefined"){if(l&&d in l?(c=typeof l[d]=="function"?l[d].call(r,i,e,n):l[d],Ge(c)&&~c.indexOf("random(")&&(c=Ei(c)),at(c+"")||c==="auto"||(c+=Ft.units[d]||at(kr(e,d))||""),(c+"").charAt(1)==="="&&(c=kr(e,d))):c=kr(e,d),m=parseFloat(c),S=p==="string"&&u.charAt(1)==="="&&u.substr(0,2),S&&(u=u.substr(2)),g=parseFloat(u),d in _r&&(d==="autoAlpha"&&(m===1&&kr(e,"visibility")==="hidden"&&g&&(m=0),z.push("visibility",0,a.visibility),Wr(this,a,"visibility",m?"inherit":"hidden",g?"inherit":"hidden",!g)),d!=="scale"&&d!=="transform"&&(d=_r[d],~d.indexOf(",")&&(d=d.split(",")[0]))),A=d in Pr,A){if(this.styles.save(d),P||(O=e._gsap,O.renderTransform&&!t.parseTransform||rn(e,t.parseTransform),k=t.smoothOrigin!==!1&&O.smooth,P=this._pt=new Tt(this._pt,a,Me,0,1,O.renderTransform,O,0,-1),P.dep=1),d==="scale")this._pt=new Tt(this._pt,O,"scaleY",O.scaleY,(S?ei(O.scaleY,S+g):g)-O.scaleY||0,ms),this._pt.u=0,s.push("scaleY",d),d+="X";else if(d==="transformOrigin"){z.push(Bt,0,a[Bt]),u=bf(u),O.svg?ws(e,u,0,k,0,this):(x=parseFloat(u.split(" ")[2])||0,x!==O.zOrigin&&Wr(this,O,"zOrigin",O.zOrigin,x),Wr(this,a,d,jn(c),jn(u)));continue}else if(d==="svgOrigin"){ws(e,u,1,k,0,this);continue}else if(d in dl){Ef(this,O,d,m,S?ei(m,S+u):u);continue}else if(d==="smoothOrigin"){Wr(this,O,"smooth",O.smooth,u);continue}else if(d==="force3D"){O[d]=u;continue}else if(d==="transform"){kf(this,u,e);continue}}else d in a||(d=Ai(d)||d);if(A||(g||g===0)&&(m||m===0)&&!af.test(u)&&d in a)_=(c+"").substr((m+"").length),g||(g=0),x=at(u)||(d in Ft.units?Ft.units[d]:_),_!==x&&(m=Hr(e,d,c,x)),this._pt=new Tt(this._pt,A?O:a,d,m,(S?ei(m,S+g):g)-m,!A&&(x==="px"||d==="zIndex")&&t.autoRound!==!1?uf:ms),this._pt.u=x||0,_!==x&&x!=="%"&&(this._pt.b=c,this._pt.r=cf);else if(d in a)wf.call(this,e,d,c,S?S+u:u);else if(d in e)this.add(e,d,c||e[d],S?S+u:u,i,n);else if(d!=="parseTransform"){In(d,u);continue}A||(d in a?z.push(d,0,a[d]):z.push(d,1,c||e[d])),s.push(d)}}C&&ps(this)},render:function(e,t){if(t.tween._time||!xs())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:kr,aliases:_r,getSetter:function(e,t,r){var i=_r[t];return i&&i.indexOf(",")<0&&(t=i),t in Pr&&t!==Bt&&(e._gsap.x||kr(e,"x"))?r&&Za===r?t==="scale"?pf:df:(Za=r||{})&&(t==="scale"?_f:gf):e.style&&!Bn(e.style[t])?ff:~t.indexOf("-")?hf:Yn(e,t)},core:{_removeProperty:si,_getMatrix:Ts}};gt.utils.checkPrefix=Ai;gt.core.getStyleSaver=cl;(function(o,e,t,r){var i=St(o+","+e+","+t,function(n){Pr[n]=1});St(e,function(n){Ft.units[n]="deg",dl[n]=1}),_r[i[13]]=o+","+e,St(r,function(n){var s=n.split(":");_r[s[1]]=i[s[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");St("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(o){Ft.units[o]="px"});gt.registerPlugin(Es);var H=gt.registerPlugin(Es)||gt,Yh=H.core.Tween;var Et,vl,Cr,mr,Yr,wl,bl,Un,xl=function(){return typeof window<"u"},Sl=function(){return Et||xl()&&(Et=window.gsap)&&Et.registerPlugin&&Et},Tl=function(e){return typeof e=="string"},gl=function(e){return typeof e=="function"},nn=function(e,t){var r=t==="x"?"Width":"Height",i="scroll"+r,n="client"+r;return e===Cr||e===mr||e===Yr?Math.max(mr[i],Yr[i])-(Cr["inner"+r]||mr[n]||Yr[n]):e[i]-e["offset"+r]},on=function(e,t){var r="scroll"+(t==="x"?"Left":"Top");return e===Cr&&(e.pageXOffset!=null?r="page"+t.toUpperCase()+"Offset":e=mr[r]!=null?mr:Yr),function(){return e[r]}},Pf=function(e,t,r,i){if(gl(e)&&(e=e(t,r,i)),typeof e!="object")return Tl(e)&&e!=="max"&&e.charAt(1)!=="="?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var n={},s;for(s in e)n[s]=s!=="onAutoKill"&&gl(e[s])?e[s](t,r,i):e[s];return n},El=function(e,t){if(e=wl(e)[0],!e||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var r=e.getBoundingClientRect(),i=!t||t===Cr||t===Yr,n=i?{top:mr.clientTop-(Cr.pageYOffset||mr.scrollTop||Yr.scrollTop||0),left:mr.clientLeft-(Cr.pageXOffset||mr.scrollLeft||Yr.scrollLeft||0)}:t.getBoundingClientRect(),s={x:r.left-n.left,y:r.top-n.top};return!i&&t&&(s.x+=on(t,"x")(),s.y+=on(t,"y")()),s},ml=function(e,t,r,i,n){return!isNaN(e)&&typeof e!="object"?parseFloat(e)-n:Tl(e)&&e.charAt(1)==="="?parseFloat(e.substr(2))*(e.charAt(0)==="-"?-1:1)+i-n:e==="max"?nn(t,r)-n:Math.min(nn(t,r),El(e,t)[r]-n)},yl=function(){Et=Sl(),xl()&&Et&&typeof document<"u"&&document.body&&(Cr=window,Yr=document.body,mr=document.documentElement,wl=Et.utils.toArray,Et.config({autoKillThreshold:7}),bl=Et.config(),vl=1)},Oi={version:"3.12.5",name:"scrollTo",rawVars:1,register:function(e){Et=e,yl()},init:function(e,t,r,i,n){vl||yl();var s=this,a=Et.getProperty(e,"scrollSnapType");s.isWin=e===Cr,s.target=e,s.tween=r,t=Pf(t,i,e,n),s.vars=t,s.autoKill=!!t.autoKill,s.getX=on(e,"x"),s.getY=on(e,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),Un||(Un=Et.core.globals().ScrollTrigger),Et.getProperty(e,"scrollBehavior")==="smooth"&&Et.set(e,{scrollBehavior:"auto"}),a&&a!=="none"&&(s.snap=1,s.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),t.x!=null?(s.add(s,"x",s.x,ml(t.x,e,"x",s.x,t.offsetX||0),i,n),s._props.push("scrollTo_x")):s.skipX=1,t.y!=null?(s.add(s,"y",s.y,ml(t.y,e,"y",s.y,t.offsetY||0),i,n),s._props.push("scrollTo_y")):s.skipY=1},render:function(e,t){for(var r=t._pt,i=t.target,n=t.tween,s=t.autoKill,a=t.xPrev,l=t.yPrev,c=t.isWin,u=t.snap,g=t.snapInline,m,p,v,d,_;r;)r.r(e,r.d),r=r._next;m=c||!t.skipX?t.getX():a,p=c||!t.skipY?t.getY():l,v=p-l,d=m-a,_=bl.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),s&&(!t.skipX&&(d>_||d<-_)&&m_||v<-_)&&p-1&&this._props.splice(r,1),!this._props.length}};Oi.max=nn;Oi.getOffset=El;Oi.buildGetter=on;Sl()&&Et.registerPlugin(Oi);function kl(o,e){for(var t=0;tl?(n=i,i=v,a=s,s=_):r?i+=v:i=n+(v-n)/(_-a)*(s-a)},g=function(){n=i=r?0:i,a=s=0},m=function(v){var d=a,_=n,x=ln();return(v||v===0)&&v!==i&&u(v),s===a||x-a>c?0:(i+(r?_:-_))/((r?x:s)-d)*1e3};return{update:u,reset:g,getVelocity:m}},sn=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Pl=function(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r},Rl=function(){an=lt.core.globals().ScrollTrigger,an&&an.core&&Of()},Dl=function(e){return lt=e||Ml(),!$n&<&&typeof document<"u"&&document.body&&(Yt=window,Xr=document,jr=Xr.documentElement,Li=Xr.body,Al=[Yt,Xr,jr,Li],Af=lt.utils.clamp,Ol=lt.core.context||function(){},ai="onpointerenter"in Li?"pointer":"mouse",Cl=Be.isTouch=Yt.matchMedia&&Yt.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Yt||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,rr=Be.eventTypes=("ontouchstart"in jr?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in jr?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Ll=0},500),Rl(),$n=1),$n};mt.op=He;le.cache=0;var Be=function(){function o(t){this.init(t)}var e=o.prototype;return e.init=function(r){$n||Dl(lt)||console.warn("Please gsap.registerPlugin(Observer)"),an||Rl();var i=r.tolerance,n=r.dragMinimum,s=r.type,a=r.target,l=r.lineHeight,c=r.debounce,u=r.preventDefault,g=r.onStop,m=r.onStopDelay,p=r.ignore,v=r.wheelSpeed,d=r.event,_=r.onDragStart,x=r.onDragEnd,S=r.onDrag,A=r.onPress,P=r.onRelease,O=r.onRight,k=r.onLeft,C=r.onUp,z=r.onDown,R=r.onChangeX,D=r.onChangeY,Y=r.onChange,q=r.onToggleX,K=r.onToggleY,U=r.onHover,oe=r.onHoverEnd,te=r.onMove,Q=r.ignoreCheck,se=r.isNormalizer,ge=r.onGestureStart,E=r.onGestureEnd,me=r.onWheel,Ke=r.onEnable,wt=r.onDisable,Se=r.onClick,Xe=r.scrollSpeed,tt=r.capture,ye=r.allowClicks,Te=r.lockAxis,je=r.onLockAxis;this.target=a=Ct(a)||jr,this.vars=r,p&&(p=lt.utils.toArray(p)),i=i||1e-9,n=n||0,v=v||1,Xe=Xe||1,s=s||"wheel,touch,pointer",c=c!==!1,l||(l=parseFloat(Yt.getComputedStyle(Li).lineHeight)||22);var sr,rt,It,pe,Pe,ct,bt,L=this,xt=0,er=0,ar=r.passive||!u,Re=Or(a,mt),Ut=Or(a,He),br=Re(),Dr=Ut(),We=~s.indexOf("touch")&&!~s.indexOf("pointer")&&rr[0]==="pointerdown",lr=cn(a),b=a.ownerDocument||Xr,y=[0,0,0],f=[0,0,0],h=0,w=function(){return h=ln()},T=function(G,ue){return(L.event=G)&&p&&~p.indexOf(G.target)||ue&&We&&G.pointerType!=="touch"||Q&&Q(G,ue)},M=function(){L._vx.reset(),L._vy.reset(),rt.pause(),g&&g(L)},N=function(){var G=L.deltaX=Pl(y),ue=L.deltaY=Pl(f),W=Math.abs(G)>=i,J=Math.abs(ue)>=i;Y&&(W||J)&&Y(L,G,ue,y,f),W&&(O&&L.deltaX>0&&O(L),k&&L.deltaX<0&&k(L),R&&R(L),q&&L.deltaX<0!=xt<0&&q(L),xt=L.deltaX,y[0]=y[1]=y[2]=0),J&&(z&&L.deltaY>0&&z(L),C&&L.deltaY<0&&C(L),D&&D(L),K&&L.deltaY<0!=er<0&&K(L),er=L.deltaY,f[0]=f[1]=f[2]=0),(pe||It)&&(te&&te(L),It&&(S(L),It=!1),pe=!1),ct&&!(ct=!1)&&je&&je(L),Pe&&(me(L),Pe=!1),sr=0},X=function(G,ue,W){y[W]+=G,f[W]+=ue,L._vx.update(G),L._vy.update(ue),c?sr||(sr=requestAnimationFrame(N)):N()},F=function(G,ue){Te&&!bt&&(L.axis=bt=Math.abs(G)>Math.abs(ue)?"x":"y",ct=!0),bt!=="y"&&(y[2]+=G,L._vx.update(G,!0)),bt!=="x"&&(f[2]+=ue,L._vy.update(ue,!0)),c?sr||(sr=requestAnimationFrame(N)):N()},B=function(G){if(!T(G,1)){G=sn(G,u);var ue=G.clientX,W=G.clientY,J=ue-L.x,Z=W-L.y,ne=L.isDragging;L.x=ue,L.y=W,(ne||Math.abs(L.startX-ue)>=n||Math.abs(L.startY-W)>=n)&&(S&&(It=!0),ne||(L.isDragging=!0),F(J,Z),ne||_&&_(L))}},ie=L.onPress=function(V){T(V,1)||V&&V.button||(L.axis=bt=null,rt.pause(),L.isPressed=!0,V=sn(V),xt=er=0,L.startX=L.x=V.clientX,L.startY=L.y=V.clientY,L._vx.reset(),L._vy.reset(),Pt(se?a:b,rr[1],B,ar,!0),L.deltaX=L.deltaY=0,A&&A(L))},I=L.onRelease=function(V){if(!T(V,1)){kt(se?a:b,rr[1],B,!0);var G=!isNaN(L.y-L.startY),ue=L.isDragging,W=ue&&(Math.abs(L.x-L.startX)>3||Math.abs(L.y-L.startY)>3),J=sn(V);!W&&G&&(L._vx.reset(),L._vy.reset(),u&&ye&<.delayedCall(.08,function(){if(ln()-h>300&&!V.defaultPrevented){if(V.target.click)V.target.click();else if(b.createEvent){var Z=b.createEvent("MouseEvents");Z.initMouseEvent("click",!0,!0,Yt,1,J.screenX,J.screenY,J.clientX,J.clientY,!1,!1,!1,!1,0,null),V.target.dispatchEvent(Z)}}})),L.isDragging=L.isGesturing=L.isPressed=!1,g&&ue&&!se&&rt.restart(!0),x&&ue&&x(L),P&&P(L,W)}},re=function(G){return G.touches&&G.touches.length>1&&(L.isGesturing=!0)&&ge(G,L.isDragging)},ae=function(){return(L.isGesturing=!1)||E(L)},_e=function(G){if(!T(G)){var ue=Re(),W=Ut();X((ue-br)*Xe,(W-Dr)*Xe,1),br=ue,Dr=W,g&&rt.restart(!0)}},De=function(G){if(!T(G)){G=sn(G,u),me&&(Pe=!0);var ue=(G.deltaMode===1?l:G.deltaMode===2?Yt.innerHeight:1)*v;X(G.deltaX*ue,G.deltaY*ue,0),g&&!se&&rt.restart(!0)}},Ce=function(G){if(!T(G)){var ue=G.clientX,W=G.clientY,J=ue-L.x,Z=W-L.y;L.x=ue,L.y=W,pe=!0,g&&rt.restart(!0),(J||Z)&&F(J,Z)}},ut=function(G){L.event=G,U(L)},Ue=function(G){L.event=G,oe(L)},it=function(G){return T(G)||sn(G,u)&&Se(L)};rt=L._dc=lt.delayedCall(m||.25,M).pause(),L.deltaX=L.deltaY=0,L._vx=Qn(0,50,!0),L._vy=Qn(0,50,!0),L.scrollX=Re,L.scrollY=Ut,L.isDragging=L.isGesturing=L.isPressed=!1,Ol(this),L.enable=function(V){return L.isEnabled||(Pt(lr?b:a,"scroll",Ps),s.indexOf("scroll")>=0&&Pt(lr?b:a,"scroll",_e,ar,tt),s.indexOf("wheel")>=0&&Pt(a,"wheel",De,ar,tt),(s.indexOf("touch")>=0&&Cl||s.indexOf("pointer")>=0)&&(Pt(a,rr[0],ie,ar,tt),Pt(b,rr[2],I),Pt(b,rr[3],I),ye&&Pt(a,"click",w,!0,!0),Se&&Pt(a,"click",it),ge&&Pt(b,"gesturestart",re),E&&Pt(b,"gestureend",ae),U&&Pt(a,ai+"enter",ut),oe&&Pt(a,ai+"leave",Ue),te&&Pt(a,ai+"move",Ce)),L.isEnabled=!0,V&&V.type&&ie(V),Ke&&Ke(L)),L},L.disable=function(){L.isEnabled&&(Mi.filter(function(V){return V!==L&&cn(V.target)}).length||kt(lr?b:a,"scroll",Ps),L.isPressed&&(L._vx.reset(),L._vy.reset(),kt(se?a:b,rr[1],B,!0)),kt(lr?b:a,"scroll",_e,tt),kt(a,"wheel",De,tt),kt(a,rr[0],ie,tt),kt(b,rr[2],I),kt(b,rr[3],I),kt(a,"click",w,!0),kt(a,"click",it),kt(b,"gesturestart",re),kt(b,"gestureend",ae),kt(a,ai+"enter",ut),kt(a,ai+"leave",Ue),kt(a,ai+"move",Ce),L.isEnabled=L.isPressed=L.isDragging=!1,wt&&wt(L))},L.kill=L.revert=function(){L.disable();var V=Mi.indexOf(L);V>=0&&Mi.splice(V,1),Ar===L&&(Ar=0)},Mi.push(L),se&&cn(a)&&(Ar=L),L.enable(d)},Cf(o,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),o}();Be.version="3.12.5";Be.create=function(o){return new Be(o)};Be.register=Dl;Be.getAll=function(){return Mi.slice()};Be.getById=function(o){return Mi.filter(function(e){return e.vars.id===o})[0]};Ml()&<.registerPlugin(Be);var j,zi,de,Le,nr,xe,Zl,po,xn,gn,fn,Zn,yt,yo,zs,Ot,zl,ql,qi,Jl,Cs,ec,At,qs,tc,rc,Ur,Fs,Hs,Fi,Ys,_o,Bs,As,Jn=1,vt=Date.now,Os=vt(),Jt=0,hn=0,Fl=function(e,t,r){var i=jt(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return r["_"+t+"Clamp"]=i,i?e.substr(6,e.length-7):e},Bl=function(e,t){return t&&(!jt(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},Mf=function o(){return hn&&requestAnimationFrame(o)},Il=function(){return yo=1},Nl=function(){return yo=0},yr=function(e){return e},dn=function(e){return Math.round(e*1e5)/1e5||0},ic=function(){return typeof window<"u"},nc=function(){return j||ic()&&(j=window.gsap)&&j.registerPlugin&&j},di=function(e){return!!~Zl.indexOf(e)},oc=function(e){return(e==="Height"?Ys:de["inner"+e])||nr["client"+e]||xe["client"+e]},sc=function(e){return Mr(e,"getBoundingClientRect")||(di(e)?function(){return ho.width=de.innerWidth,ho.height=Ys,ho}:function(){return Lr(e)})},Lf=function(e,t,r){var i=r.d,n=r.d2,s=r.a;return(s=Mr(e,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(t?oc(n):e["client"+n])||0}},Rf=function(e,t){return!t||~ir.indexOf(e)?sc(e):function(){return ho}},vr=function(e,t){var r=t.s,i=t.d2,n=t.d,s=t.a;return Math.max(0,(r="scroll"+i)&&(s=Mr(e,r))?s()-sc(e)()[n]:di(e)?(nr[r]||xe[r])-oc(i):e[r]-e["offset"+i])},eo=function(e,t){for(var r=0;r0){for(i-=s,a=0;a=i)return r[a];return r[a-1]}else for(a=r.length,i+=s;a--;)if(r[a]<=i)return r[a];return r[0]}:function(i,n,s){s===void 0&&(s=.001);var a=t(i);return!n||Math.abs(a-i)r&&(i*=t/100),e=e.substr(0,r-1)),e=i+(e in mo?mo[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},no=function(e,t,r,i,n,s,a,l){var c=n.startColor,u=n.endColor,g=n.fontSize,m=n.indent,p=n.fontWeight,v=Le.createElement("div"),d=di(r)||Mr(r,"pinType")==="fixed",_=e.indexOf("scroller")!==-1,x=d?xe:r,S=e.indexOf("start")!==-1,A=S?c:u,P="border-color:"+A+";font-size:"+g+";color:"+A+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return P+="position:"+((_||l)&&d?"fixed;":"absolute;"),(_||l||!d)&&(P+=(i===He?Xs:js)+":"+(s+parseFloat(m))+"px;"),a&&(P+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),v._isStart=S,v.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),v.style.cssText=P,v.innerText=t||t===0?e+"-"+t:e,x.children[0]?x.insertBefore(v,x.children[0]):x.appendChild(v),v._offset=v["offset"+i.op.d2],co(v,0,i,S),v},co=function(e,t,r,i){var n={display:"block"},s=r[i?"os2":"p2"],a=r[i?"p2":"os2"];e._isFlipped=i,n[r.a+"Percent"]=i?-100:0,n[r.a]=i?"1px":0,n["border"+s+Ii]=1,n["border"+a+Ii]=0,n[r.p]=t+"px",j.set(e,n)},ce=[],Is={},Sn,Yl=function(){return vt()-Jt>34&&(Sn||(Sn=requestAnimationFrame(Rr)))},Di=function(){(!At||!At.isPressed||At.startX>xe.clientWidth)&&(le.cache++,At?Sn||(Sn=requestAnimationFrame(Rr)):Rr(),Jt||_i("scrollStart"),Jt=vt())},Ls=function(){rc=de.innerWidth,tc=de.innerHeight},_n=function(){le.cache++,!yt&&!ec&&!Le.fullscreenElement&&!Le.webkitFullscreenElement&&(!qs||rc!==de.innerWidth||Math.abs(de.innerHeight-tc)>de.innerHeight*.25)&&po.restart(!0)},pi={},Ff=[],uc=function o(){return Je(ee,"scrollEnd",o)||ci(!0)},_i=function(e){return pi[e]&&pi[e].map(function(t){return t()})||Ff},Xt=[],fc=function(e){for(var t=0;tn,a=i._startClamp&&i.start>=n;(s||a)&&i.setPositions(a?n-1:i.start,s?Math.max(a?n:i.start+1,n):i.end,!0)}),jl(!1),Bs=0,r.forEach(function(i){return i&&i.render&&i.render(-1)}),le.forEach(function(i){Lt(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),hc(Hs,1),po.pause(),hi++,Mt=2,Rr(2),ce.forEach(function(i){return Lt(i.vars.onRefresh)&&i.vars.onRefresh(i)}),Mt=ee.isRefreshing=!1,_i("refresh")},Ns=0,uo=1,bn,Rr=function(e){if(e===2||!Mt&&!_o){ee.isUpdating=!0,bn&&bn.update(0);var t=ce.length,r=vt(),i=r-Os>=50,n=t&&ce[0].scroll();if(uo=Ns>n?-1:1,Mt||(Ns=n),i&&(Jt&&!yo&&r-Jt>200&&(Jt=0,_i("scrollEnd")),fn=Os,Os=r),uo<0){for(Ot=t;Ot-- >0;)ce[Ot]&&ce[Ot].update(0,i);uo=1}else for(Ot=0;Ot20),r-=r-k}if(v&&(l[v]=e||-.001,e<0&&(e=0)),s){var z=e+r,R=s._isStart;_="scroll"+i.d2,co(s,z,i,R&&z>20||!R&&(g?Math.max(xe[_],nr[_]):s.parentNode[_])<=z+1),g&&(c=Lr(a),g&&(s.style[i.op.p]=c[i.op.p]-i.op.m-s._offset+$e))}return p&&S&&(_=Lr(S),p.seek(m),x=Lr(S),p._caScrollDist=_[i.p]-x[i.p],e=e/p._caScrollDist*m),p&&p.seek(d),p?e:Math.round(e)},Hf=/(webkit|moz|length|cssText|inset)/i,Vl=function(e,t,r,i){if(e.parentNode!==t){var n=e.style,s,a;if(t===xe){e._stOrig=n.cssText,a=Zt(e);for(s in a)!+s&&!Hf.test(s)&&a[s]&&typeof n[s]=="string"&&s!=="0"&&(n[s]=a[s]);n.top=r,n.left=i}else n.cssText=e._stOrig;j.core.getCache(e).uncache=1,t.appendChild(e)}},pc=function(e,t,r){var i=t,n=i;return function(s){var a=Math.round(e());return a!==i&&a!==n&&Math.abs(a-i)>3&&Math.abs(a-n)>3&&(s=a,r&&r()),n=i,i=s,s}},so=function(e,t,r){var i={};i[t.p]="+="+r,j.set(e,i)},Gl=function(e,t){var r=Or(e,t),i="_scroll"+t.p2,n=function s(a,l,c,u,g){var m=s.tween,p=l.onComplete,v={};c=c||r();var d=pc(r,c,function(){m.kill(),s.tween=0});return g=u&&g||0,u=u||a-c,m&&m.kill(),l[i]=a,l.inherit=!1,l.modifiers=v,v[i]=function(){return d(c+u*m.ratio+g*m.ratio*m.ratio)},l.onUpdate=function(){le.cache++,s.tween&&Rr()},l.onComplete=function(){s.tween=0,p&&p.call(m)},m=s.tween=j.to(e,l),m};return e[i]=r,r.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},et(e,"wheel",r.wheelHandler),ee.isTouch&&et(e,"touchmove",r.wheelHandler),n},ee=function(){function o(t,r){zi||o.register(j)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Fs(this),this.init(t,r)}var e=o.prototype;return e.init=function(r,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!hn){this.update=this.refresh=this.kill=yr;return}r=Wl(jt(r)||pn(r)||r.nodeType?{trigger:r}:r,io);var n=r,s=n.onUpdate,a=n.toggleClass,l=n.id,c=n.onToggle,u=n.onRefresh,g=n.scrub,m=n.trigger,p=n.pin,v=n.pinSpacing,d=n.invalidateOnRefresh,_=n.anticipatePin,x=n.onScrubComplete,S=n.onSnapComplete,A=n.once,P=n.snap,O=n.pinReparent,k=n.pinSpacer,C=n.containerAnimation,z=n.fastScrollEnd,R=n.preventOverlaps,D=r.horizontal||r.containerAnimation&&r.horizontal!==!1?mt:He,Y=!g&&g!==0,q=Ct(r.scroller||de),K=j.core.getCache(q),U=di(q),oe=("pinType"in r?r.pinType:Mr(q,"pinType")||U&&"fixed")==="fixed",te=[r.onEnter,r.onLeave,r.onEnterBack,r.onLeaveBack],Q=Y&&r.toggleActions.split(" "),se="markers"in r?r.markers:io.markers,ge=U?0:parseFloat(Zt(q)["border"+D.p2+Ii])||0,E=this,me=r.onRefreshInit&&function(){return r.onRefreshInit(E)},Ke=Lf(q,U,D),wt=Rf(q,U),Se=0,Xe=0,tt=0,ye=Or(q,D),Te,je,sr,rt,It,pe,Pe,ct,bt,L,xt,er,ar,Re,Ut,br,Dr,We,lr,b,y,f,h,w,T,M,N,X,F,B,ie,I,re,ae,_e,De,Ce,ut,Ue;if(E._startClamp=E._endClamp=!1,E._dir=D,_*=45,E.scroller=q,E.scroll=C?C.time.bind(C):ye,rt=ye(),E.vars=r,i=i||r.animation,"refreshPriority"in r&&(Jl=1,r.refreshPriority===-9999&&(bn=E)),K.tweenScroll=K.tweenScroll||{top:Gl(q,He),left:Gl(q,mt)},E.tweenTo=Te=K.tweenScroll[D.p],E.scrubDuration=function(W){re=pn(W)&&W,re?I?I.duration(W):I=j.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:re,paused:!0,onComplete:function(){return x&&x(E)}}):(I&&I.progress(1).kill(),I=0)},i&&(i.vars.lazy=!1,i._initted&&!E.isReverted||i.vars.immediateRender!==!1&&r.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),E.animation=i.pause(),i.scrollTrigger=E,E.scrubDuration(g),B=0,l||(l=i.vars.id)),P&&((!li(P)||P.push)&&(P={snapTo:P}),"scrollBehavior"in xe.style&&j.set(U?[xe,nr]:q,{scrollBehavior:"auto"}),le.forEach(function(W){return Lt(W)&&W.target===(U?Le.scrollingElement||nr:q)&&(W.smooth=!1)}),sr=Lt(P.snapTo)?P.snapTo:P.snapTo==="labels"?zf(i):P.snapTo==="labelsDirectional"?qf(i):P.directional!==!1?function(W,J){return Vs(P.snapTo)(W,vt()-Xe<500?0:J.direction)}:j.utils.snap(P.snapTo),ae=P.duration||{min:.1,max:2},ae=li(ae)?gn(ae.min,ae.max):gn(ae,ae),_e=j.delayedCall(P.delay||re/2||.1,function(){var W=ye(),J=vt()-Xe<500,Z=Te.tween;if((J||Math.abs(E.getVelocity())<10)&&!Z&&!yo&&Se!==W){var ne=(W-pe)/Re,Qe=i&&!Y?i.totalProgress():ne,fe=J?0:(Qe-ie)/(vt()-fn)*1e3||0,Ie=j.utils.clamp(-ne,1-ne,Ri(fe/2)*fe/.185),ft=ne+(P.inertia===!1?0:Ie),ze,Ee,ve=P,tr=ve.onStart,Ae=ve.onInterrupt,Nt=ve.onComplete;if(ze=sr(ft,E),pn(ze)||(ze=ft),Ee=Math.round(pe+ze*Re),W<=Pe&&W>=pe&&Ee!==W){if(Z&&!Z._initted&&Z.data<=Ri(Ee-W))return;P.inertia===!1&&(Ie=ze-ne),Te(Ee,{duration:ae(Ri(Math.max(Ri(ft-Qe),Ri(ze-Qe))*.185/fe/.05||0)),ease:P.ease||"power3",data:Ri(Ee-W),onInterrupt:function(){return _e.restart(!0)&&Ae&&Ae(E)},onComplete:function(){E.update(),Se=ye(),i&&(I?I.resetTo("totalProgress",ze,i._tTime/i._tDur):i.progress(ze)),B=ie=i&&!Y?i.totalProgress():E.progress,S&&S(E),Nt&&Nt(E)}},W,Ie*Re,Ee-W-Ie*Re),tr&&tr(E,Te.tween)}}else E.isActive&&Se!==W&&_e.restart(!0)}).pause()),l&&(Is[l]=E),m=E.trigger=Ct(m||p!==!0&&p),Ue=m&&m._gsap&&m._gsap.stRevert,Ue&&(Ue=Ue(E)),p=p===!0?m:Ct(p),jt(a)&&(a={targets:m,className:a}),p&&(v===!1||v===Qt||(v=!v&&p.parentNode&&p.parentNode.style&&Zt(p.parentNode).display==="flex"?!1:Ye),E.pin=p,je=j.core.getCache(p),je.spacer?Ut=je.pinState:(k&&(k=Ct(k),k&&!k.nodeType&&(k=k.current||k.nativeElement),je.spacerIsNative=!!k,k&&(je.spacerState=oo(k))),je.spacer=We=k||Le.createElement("div"),We.classList.add("pin-spacer"),l&&We.classList.add("pin-spacer-"+l),je.pinState=Ut=oo(p)),r.force3D!==!1&&j.set(p,{force3D:!0}),E.spacer=We=je.spacer,F=Zt(p),w=F[v+D.os2],b=j.getProperty(p),y=j.quickSetter(p,D.a,$e),Rs(p,We,F),Dr=oo(p)),se){er=li(se)?Wl(se,Hl):Hl,L=no("scroller-start",l,q,D,er,0),xt=no("scroller-end",l,q,D,er,0,L),lr=L["offset"+D.op.d2];var it=Ct(Mr(q,"content")||q);ct=this.markerStart=no("start",l,it,D,er,lr,0,C),bt=this.markerEnd=no("end",l,it,D,er,lr,0,C),C&&(ut=j.quickSetter([ct,bt],D.a,$e)),!oe&&!(ir.length&&Mr(q,"fixedMarkers")===!0)&&(Df(U?xe:q),j.set([L,xt],{force3D:!0}),M=j.quickSetter(L,D.a,$e),X=j.quickSetter(xt,D.a,$e))}if(C){var V=C.vars.onUpdate,G=C.vars.onUpdateParams;C.eventCallback("onUpdate",function(){E.update(0,0,1),V&&V.apply(C,G||[])})}if(E.previous=function(){return ce[ce.indexOf(E)-1]},E.next=function(){return ce[ce.indexOf(E)+1]},E.revert=function(W,J){if(!J)return E.kill(!0);var Z=W!==!1||!E.enabled,ne=yt;Z!==E.isReverted&&(Z&&(De=Math.max(ye(),E.scroll.rec||0),tt=E.progress,Ce=i&&i.progress()),ct&&[ct,bt,L,xt].forEach(function(Qe){return Qe.style.display=Z?"none":"block"}),Z&&(yt=E,E.update(Z)),p&&(!O||!E.isActive)&&(Z?If(p,We,Ut):Rs(p,We,Zt(p),T)),Z||E.update(Z),yt=ne,E.isReverted=Z)},E.refresh=function(W,J,Z,ne){if(!((yt||!E.enabled)&&!J)){if(p&&W&&Jt){et(o,"scrollEnd",uc);return}!Mt&&me&&me(E),yt=E,Te.tween&&!Z&&(Te.tween.kill(),Te.tween=0),I&&I.pause(),d&&i&&i.revert({kill:!1}).invalidate(),E.isReverted||E.revert(!0,!0),E._subPinOffset=!1;var Qe=Ke(),fe=wt(),Ie=C?C.duration():vr(q,D),ft=Re<=.01,ze=0,Ee=ne||0,ve=li(Z)?Z.end:r.end,tr=r.endTrigger||m,Ae=li(Z)?Z.start:r.start||(r.start===0||!m?0:p?"0 0":"0 100%"),Nt=E.pinnedContainer=r.pinnedContainer&&Ct(r.pinnedContainer,E),cr=m&&Math.max(0,ce.indexOf(E))||0,nt=cr,ot,ht,Gr,En,dt,Ve,ur,To,ia,Wi,fr,Hi,kn;for(se&&li(Z)&&(Hi=j.getProperty(L,D.p),kn=j.getProperty(xt,D.p));nt--;)Ve=ce[nt],Ve.end||Ve.refresh(0,1)||(yt=E),ur=Ve.pin,ur&&(ur===m||ur===p||ur===Nt)&&!Ve.isReverted&&(Wi||(Wi=[]),Wi.unshift(Ve),Ve.revert(!0,!0)),Ve!==ce[nt]&&(cr--,nt--);for(Lt(Ae)&&(Ae=Ae(E)),Ae=Fl(Ae,"start",E),pe=Ul(Ae,m,Qe,D,ye(),ct,L,E,fe,ge,oe,Ie,C,E._startClamp&&"_startClamp")||(p?-.001:0),Lt(ve)&&(ve=ve(E)),jt(ve)&&!ve.indexOf("+=")&&(~ve.indexOf(" ")?ve=(jt(Ae)?Ae.split(" ")[0]:"")+ve:(ze=lo(ve.substr(2),Qe),ve=jt(Ae)?Ae:(C?j.utils.mapRange(0,C.duration(),C.scrollTrigger.start,C.scrollTrigger.end,pe):pe)+ze,tr=m)),ve=Fl(ve,"end",E),Pe=Math.max(pe,Ul(ve||(tr?"100% 0":Ie),tr,Qe,D,ye()+ze,bt,xt,E,fe,ge,oe,Ie,C,E._endClamp&&"_endClamp"))||-.001,ze=0,nt=cr;nt--;)Ve=ce[nt],ur=Ve.pin,ur&&Ve.start-Ve._pinPush<=pe&&!C&&Ve.end>0&&(ot=Ve.end-(E._startClamp?Math.max(0,Ve.start):Ve.start),(ur===m&&Ve.start-Ve._pinPush=vr(q,D)))ot=Zt(p),En=D===He,Gr=ye(),f=parseFloat(b(D.a))+Ee,!Ie&&Pe>1&&(fr=(U?Le.scrollingElement||nr:q).style,fr={style:fr,value:fr["overflow"+D.a.toUpperCase()]},U&&Zt(xe)["overflow"+D.a.toUpperCase()]!=="scroll"&&(fr.style["overflow"+D.a.toUpperCase()]="scroll")),Rs(p,We,ot),Dr=oo(p),ht=Lr(p,!0),To=oe&&Or(q,En?mt:He)(),v?(T=[v+D.os2,Re+Ee+$e],T.t=We,nt=v===Ye?go(p,D)+Re+Ee:0,nt&&(T.push(D.d,nt+$e),We.style.flexBasis!=="auto"&&(We.style.flexBasis=nt+$e)),Bi(T),Nt&&ce.forEach(function(Yi){Yi.pin===Nt&&Yi.vars.pinSpacing!==!1&&(Yi._subPinOffset=!0)}),oe&&ye(De)):(nt=go(p,D),nt&&We.style.flexBasis!=="auto"&&(We.style.flexBasis=nt+$e)),oe&&(dt={top:ht.top+(En?Gr-pe:To)+$e,left:ht.left+(En?To:Gr-pe)+$e,boxSizing:"border-box",position:"fixed"},dt[ui]=dt["max"+Ii]=Math.ceil(ht.width)+$e,dt[fi]=dt["max"+Us]=Math.ceil(ht.height)+$e,dt[Qt]=dt[Qt+vn]=dt[Qt+mn]=dt[Qt+wn]=dt[Qt+yn]="0",dt[Ye]=ot[Ye],dt[Ye+vn]=ot[Ye+vn],dt[Ye+mn]=ot[Ye+mn],dt[Ye+wn]=ot[Ye+wn],dt[Ye+yn]=ot[Ye+yn],br=Wf(Ut,dt,O),Mt&&ye(0)),i?(ia=i._initted,Cs(1),i.render(i.duration(),!0,!0),h=b(D.a)-f+Re+Ee,N=Math.abs(Re-h)>1,oe&&N&&br.splice(br.length-2,2),i.render(0,!0,!0),ia||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),Cs(0)):h=Re,fr&&(fr.value?fr.style["overflow"+D.a.toUpperCase()]=fr.value:fr.style.removeProperty("overflow-"+D.a));else if(m&&ye()&&!C)for(ht=m.parentNode;ht&&ht!==xe;)ht._pinOffset&&(pe-=ht._pinOffset,Pe-=ht._pinOffset),ht=ht.parentNode;Wi&&Wi.forEach(function(Yi){return Yi.revert(!1,!0)}),E.start=pe,E.end=Pe,rt=It=Mt?De:ye(),!C&&!Mt&&(rt0?ce.slice(0,J).reverse():ce.slice(J+1);return(jt(W)?Z.filter(function(ne){return ne.vars.preventOverlaps===W}):Z).filter(function(ne){return E.direction>0?ne.end<=pe:ne.start>=Pe})},E.update=function(W,J,Z){if(!(C&&!Z&&!W)){var ne=Mt===!0?De:E.scroll(),Qe=W?0:(ne-pe)/Re,fe=Qe<0?0:Qe>1?1:Qe||0,Ie=E.progress,ft,ze,Ee,ve,tr,Ae,Nt,cr;if(J&&(It=rt,rt=C?ye():ne,P&&(ie=B,B=i&&!Y?i.totalProgress():fe)),_&&p&&!yt&&!Jn&&Jt&&(!fe&&pene+(ne-It)/(vt()-fn)*_&&(fe=.9999)),fe!==Ie&&E.enabled){if(ft=E.isActive=!!fe&&fe<1,ze=!!Ie&&Ie<1,Ae=ft!==ze,tr=Ae||!!fe!=!!Ie,E.direction=fe>Ie?1:-1,E.progress=fe,tr&&!yt&&(Ee=fe&&!Ie?0:fe===1?1:Ie===1?2:3,Y&&(ve=!Ae&&Q[Ee+1]!=="none"&&Q[Ee+1]||Q[Ee],cr=i&&(ve==="complete"||ve==="reset"||ve in i))),R&&(Ae||cr)&&(cr||g||!i)&&(Lt(R)?R(E):E.getTrailing(R).forEach(function(Gr){return Gr.endAnimation()})),Y||(I&&!yt&&!Jn?(I._dp._time-I._start!==I._time&&I.render(I._dp._time-I._start),I.resetTo?I.resetTo("totalProgress",fe,i._tTime/i._tDur):(I.vars.totalProgress=fe,I.invalidate().restart())):i&&i.totalProgress(fe,!!(yt&&(Xe||W)))),p){if(W&&v&&(We.style[v+D.os2]=w),!oe)y(dn(f+h*fe));else if(tr){if(Nt=!W&&fe>Ie&&Pe+1>ne&&ne+1>=vr(q,D),O)if(!W&&(ft||Nt)){var nt=Lr(p,!0),ot=ne-pe;Vl(p,xe,nt.top+(D===He?ot:0)+$e,nt.left+(D===He?0:ot)+$e)}else Vl(p,We);Bi(ft||Nt?br:Dr),N&&fe<1&&ft||y(f+(fe===1&&!Nt?h:0))}}P&&!Te.tween&&!yt&&!Jn&&_e.restart(!0),a&&(Ae||A&&fe&&(fe<1||!As))&&xn(a.targets).forEach(function(Gr){return Gr.classList[ft||A?"add":"remove"](a.className)}),s&&!Y&&!W&&s(E),tr&&!yt?(Y&&(cr&&(ve==="complete"?i.pause().totalProgress(1):ve==="reset"?i.restart(!0).pause():ve==="restart"?i.restart(!0):i[ve]()),s&&s(E)),(Ae||!As)&&(c&&Ae&&Ms(E,c),te[Ee]&&Ms(E,te[Ee]),A&&(fe===1?E.kill(!1,1):te[Ee]=0),Ae||(Ee=fe===1?1:3,te[Ee]&&Ms(E,te[Ee]))),z&&!ft&&Math.abs(E.getVelocity())>(pn(z)?z:2500)&&(un(E.callbackAnimation),I?I.progress(1):un(i,ve==="reverse"?1:!fe,1))):Y&&s&&!yt&&s(E)}if(X){var ht=C?ne/C.duration()*(C._caScrollDist||0):ne;M(ht+(L._isFlipped?1:0)),X(ht)}ut&&ut(-ne/C.duration()*(C._caScrollDist||0))}},E.enable=function(W,J){E.enabled||(E.enabled=!0,et(q,"resize",_n),U||et(q,"scroll",Di),me&&et(o,"refreshInit",me),W!==!1&&(E.progress=tt=0,rt=It=Se=ye()),J!==!1&&E.refresh())},E.getTween=function(W){return W&&Te?Te.tween:I},E.setPositions=function(W,J,Z,ne){if(C){var Qe=C.scrollTrigger,fe=C.duration(),Ie=Qe.end-Qe.start;W=Qe.start+Ie*W/fe,J=Qe.start+Ie*J/fe}E.refresh(!1,!1,{start:Bl(W,Z&&!!E._startClamp),end:Bl(J,Z&&!!E._endClamp)},ne),E.update()},E.adjustPinSpacing=function(W){if(T&&W){var J=T.indexOf(D.d)+1;T[J]=parseFloat(T[J])+W+$e,T[1]=parseFloat(T[1])+W+$e,Bi(T)}},E.disable=function(W,J){if(E.enabled&&(W!==!1&&E.revert(!0,!0),E.enabled=E.isActive=!1,J||I&&I.pause(),De=0,je&&(je.uncache=1),me&&Je(o,"refreshInit",me),_e&&(_e.pause(),Te.tween&&Te.tween.kill()&&(Te.tween=0)),!U)){for(var Z=ce.length;Z--;)if(ce[Z].scroller===q&&ce[Z]!==E)return;Je(q,"resize",_n),U||Je(q,"scroll",Di)}},E.kill=function(W,J){E.disable(W,J),I&&!J&&I.kill(),l&&delete Is[l];var Z=ce.indexOf(E);Z>=0&&ce.splice(Z,1),Z===Ot&&uo>0&&Ot--,Z=0,ce.forEach(function(ne){return ne.scroller===E.scroller&&(Z=1)}),Z||Mt||(E.scroll.rec=0),i&&(i.scrollTrigger=null,W&&i.revert({kill:!1}),J||i.kill()),ct&&[ct,bt,L,xt].forEach(function(ne){return ne.parentNode&&ne.parentNode.removeChild(ne)}),bn===E&&(bn=0),p&&(je&&(je.uncache=1),Z=0,ce.forEach(function(ne){return ne.pin===p&&Z++}),Z||(je.spacer=0)),r.onKill&&r.onKill(E)},ce.push(E),E.enable(!1,!1),Ue&&Ue(E),i&&i.add&&!Re){var ue=E.update;E.update=function(){E.update=ue,pe||Pe||E.refresh()},j.delayedCall(.01,E.update),Re=.01,pe=Pe=0}else E.refresh();p&&Bf()},o.register=function(r){return zi||(j=r||nc(),ic()&&window.document&&o.enable(),zi=hn),zi},o.defaults=function(r){if(r)for(var i in r)io[i]=r[i];return io},o.disable=function(r,i){hn=0,ce.forEach(function(s){return s[i?"kill":"disable"](r)}),Je(de,"wheel",Di),Je(Le,"scroll",Di),clearInterval(Zn),Je(Le,"touchcancel",yr),Je(xe,"touchstart",yr),to(Je,Le,"pointerdown,touchstart,mousedown",Il),to(Je,Le,"pointerup,touchend,mouseup",Nl),po.kill(),eo(Je);for(var n=0;n0&&s.left+a0&&s.top+a=0&&Xt.splice(t,5),Xt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),j.core.getCache(e),Fs())}}):Xt};ee.revert=function(o,e){return Gs(!o,e)};ee.create=function(o,e){return new ee(o,e)};ee.refresh=function(o){return o?_n():(zi||ee.register())&&ci(!0)};ee.update=function(o){return++le.cache&&Rr(o===!0?2:0)};ee.clearScrollMemory=hc;ee.maxScroll=function(o,e){return vr(o,e?mt:He)};ee.getScrollFunc=function(o,e){return Or(Ct(o),e?mt:He)};ee.getById=function(o){return Is[o]};ee.getAll=function(){return ce.filter(function(o){return o.vars.id!=="ScrollSmoother"})};ee.isScrolling=function(){return!!Jt};ee.snapDirectional=Vs;ee.addEventListener=function(o,e){var t=pi[o]||(pi[o]=[]);~t.indexOf(e)||t.push(e)};ee.removeEventListener=function(o,e){var t=pi[o],r=t&&t.indexOf(e);r>=0&&t.splice(r,1)};ee.batch=function(o,e){var t=[],r={},i=e.interval||.016,n=e.batchMax||1e9,s=function(c,u){var g=[],m=[],p=j.delayedCall(i,function(){u(g,m),g=[],m=[]}).pause();return function(v){g.length||p.restart(!0),g.push(v.trigger),m.push(v),n<=g.length&&p.progress(1)}},a;for(a in e)r[a]=a.substr(0,2)==="on"&&Lt(e[a])&&a!=="onRefreshInit"?s(a,e[a]):e[a];return Lt(n)&&(n=n(),et(ee,"refresh",function(){return n=e.batchMax()})),xn(o).forEach(function(l){var c={};for(a in r)c[a]=r[a];c.trigger=l,t.push(ee.create(c))}),t};var $l=function(e,t,r,i){return t>i?e(i):t<0&&e(0),r>i?(i-t)/(r-t):r<0?t/(t-r):1},Ds=function o(e,t){t===!0?e.style.removeProperty("touch-action"):e.style.touchAction=t===!0?"auto":t?"pan-"+t+(Be.isTouch?" pinch-zoom":""):"none",e===nr&&o(xe,t)},ao={auto:1,scroll:1},Yf=function(e){var t=e.event,r=e.target,i=e.axis,n=(t.changedTouches?t.changedTouches[0]:t).target,s=n._gsap||j.core.getCache(n),a=vt(),l;if(!s._isScrollT||a-s._isScrollT>2e3){for(;n&&n!==xe&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(ao[(l=Zt(n)).overflowY]||ao[l.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==r&&!di(n)&&(ao[(l=Zt(n)).overflowY]||ao[l.overflowX]),s._isScrollT=a}(s._isScroll||i==="x")&&(t.stopPropagation(),t._gsapAllow=!0)},_c=function(e,t,r,i){return Be.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:i=i&&Yf,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&et(Le,Be.eventTypes[0],Ql,!1,!0)},onDisable:function(){return Je(Le,Be.eventTypes[0],Ql,!0)}})},Xf=/(input|label|select|textarea)/i,Kl,Ql=function(e){var t=Xf.test(e.target.tagName);(t||Kl)&&(e._gsapAllow=!0,Kl=t)},jf=function(e){li(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t=e,r=t.normalizeScrollX,i=t.momentum,n=t.allowNestedScroll,s=t.onRelease,a,l,c=Ct(e.target)||nr,u=j.core.globals().ScrollSmoother,g=u&&u.get(),m=Ur&&(e.content&&Ct(e.content)||g&&e.content!==!1&&!g.smooth()&&g.content()),p=Or(c,He),v=Or(c,mt),d=1,_=(Be.isTouch&&de.visualViewport?de.visualViewport.scale*de.visualViewport.width:de.outerWidth)/de.innerWidth,x=0,S=Lt(i)?function(){return i(a)}:function(){return i||2.8},A,P,O=_c(c,e.type,!0,n),k=function(){return P=!1},C=yr,z=yr,R=function(){l=vr(c,He),z=gn(Ur?1:0,l),r&&(C=gn(0,vr(c,mt))),A=hi},D=function(){m._gsap.y=dn(parseFloat(m._gsap.y)+p.offset)+"px",m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(m._gsap.y)+", 0, 1)",p.offset=p.cacheID=0},Y=function(){if(P){requestAnimationFrame(k);var se=dn(a.deltaY/2),ge=z(p.v-se);if(m&&ge!==p.v+p.offset){p.offset=ge-p.v;var E=dn((parseFloat(m&&m._gsap.y)||0)-p.offset);m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+E+", 0, 1)",m._gsap.y=E+"px",p.cacheID=le.cache,Rr()}return!0}p.offset&&D(),P=!0},q,K,U,oe,te=function(){R(),q.isActive()&&q.vars.scrollY>l&&(p()>l?q.progress(1)&&p(l):q.resetTo("scrollY",l))};return m&&j.set(m,{y:"+=0"}),e.ignoreCheck=function(Q){return Ur&&Q.type==="touchmove"&&Y(Q)||d>1.05&&Q.type!=="touchstart"||a.isGesturing||Q.touches&&Q.touches.length>1},e.onPress=function(){P=!1;var Q=d;d=dn((de.visualViewport&&de.visualViewport.scale||1)/_),q.pause(),Q!==d&&Ds(c,d>1.01?!0:r?!1:"x"),K=v(),U=p(),R(),A=hi},e.onRelease=e.onGestureStart=function(Q,se){if(p.offset&&D(),!se)oe.restart(!0);else{le.cache++;var ge=S(),E,me;r&&(E=v(),me=E+ge*.05*-Q.velocityX/.227,ge*=$l(v,E,me,vr(c,mt)),q.vars.scrollX=C(me)),E=p(),me=E+ge*.05*-Q.velocityY/.227,ge*=$l(p,E,me,vr(c,He)),q.vars.scrollY=z(me),q.invalidate().duration(ge).play(.01),(Ur&&q.vars.scrollY>=l||E>=l-1)&&j.to({},{onUpdate:te,duration:ge})}s&&s(Q)},e.onWheel=function(){q._ts&&q.pause(),vt()-x>1e3&&(A=0,x=vt())},e.onChange=function(Q,se,ge,E,me){if(hi!==A&&R(),se&&r&&v(C(E[2]===se?K+(Q.startX-Q.x):v()+se-E[1])),ge){p.offset&&D();var Ke=me[2]===ge,wt=Ke?U+Q.startY-Q.y:p()+ge-me[1],Se=z(wt);Ke&&wt!==Se&&(U+=Se-wt),p(Se)}(ge||se)&&Rr()},e.onEnable=function(){Ds(c,r?!1:"x"),ee.addEventListener("refresh",te),et(de,"resize",te),p.smooth&&(p.target.style.scrollBehavior="auto",p.smooth=v.smooth=!1),O.enable()},e.onDisable=function(){Ds(c,!0),Je(de,"resize",te),ee.removeEventListener("refresh",te),O.kill()},e.lockAxis=e.lockAxis!==!1,a=new Be(e),a.iOS=Ur,Ur&&!p()&&p(1),Ur&&j.ticker.add(yr),oe=a._dc,q=j.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:r?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:pc(p,p(),function(){return q.pause()})},onUpdate:Rr,onComplete:oe.vars.onComplete}),a};ee.sort=function(o){return ce.sort(o||function(e,t){return(e.vars.refreshPriority||0)*-1e6+e.start-(t.start+(t.vars.refreshPriority||0)*-1e6)})};ee.observe=function(o){return new Be(o)};ee.normalizeScroll=function(o){if(typeof o>"u")return At;if(o===!0&&At)return At.enable();if(o===!1){At&&At.kill(),At=o;return}var e=o instanceof Be?o:jf(o);return At&&At.target===e.target&&At.kill(),di(e.target)&&(At=e),e};ee.core={_getVelocityProp:Qn,_inputObserver:_c,_scrollers:le,_proxies:ir,bridge:{ss:function(){Jt||_i("scrollStart"),Jt=vt()},ref:function(){return yt}}};nc()&&j.registerPlugin(ee);(function(){function o(){for(var r=arguments.length,i=0;i"u"||!(Symbol.iterator in Object(o)))){var t=[],r=!0,i=!1,n=void 0;try{for(var s=o[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(t.push(a.value),!(e&&t.length===e));r=!0);}catch(l){i=!0,n=l}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw n}}return t}}function xc(o,e){if(o){if(typeof o=="string")return $s(o,e);var t=Object.prototype.toString.call(o).slice(8,-1);if(t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set")return Array.from(o);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return $s(o,e)}}function $s(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,r=new Array(e);t0&&arguments[0]!==void 0?arguments[0]:{},e=gi(o),t;return e.types!==void 0?t=e.types:e.split!==void 0&&(t=e.split),t!==void 0&&(e.types=(Tn(t)||Js(t)?String(t):"").split(",").map(function(r){return String(r).trim()}).filter(function(r){return/((line)|(word)|(char))/i.test(r)})),(e.absolute||e.position)&&(e.absolute=e.absolute||/absolute/.test(o.position)),e}function ea(o){var e=Tn(o)||Js(o)?String(o):"";return{none:!e,lines:/line/i.test(e),words:/word/i.test(e),chars:/char/i.test(e)}}function bo(o){return o!==null&&typeof o=="object"}function eh(o){return bo(o)&&/^(1|3|11)$/.test(o.nodeType)}function th(o){return typeof o=="number"&&o>-1&&o%1===0}function rh(o){return bo(o)&&th(o.length)}function yi(o){return Js(o)?o:o==null?[]:rh(o)?Array.prototype.slice.call(o):[o]}function wc(o){var e=o;return Tn(o)&&(/^(#[a-z]\w+)$/.test(o.trim())?e=document.getElementById(o.trim().slice(1)):e=document.querySelectorAll(o)),yi(e).reduce(function(t,r){return[].concat(Rt(t),Rt(yi(r).filter(eh)))},[])}var ih=Object.entries,wo="_splittype",or={},nh=0;function wr(o,e,t){if(!bo(o))return console.warn("[data.set] owner is not an object"),null;var r=o[wo]||(o[wo]=++nh),i=or[r]||(or[r]={});return t===void 0?e&&Object.getPrototypeOf(e)===Object.prototype&&(or[r]=vc(vc({},i),e)):e!==void 0&&(i[e]=t),t}function mi(o,e){var t=bo(o)?o[wo]:null,r=t&&or[t]||{};return e===void 0?r:r[e]}function Sc(o){var e=o&&o[wo];e&&(delete o[e],delete or[e])}function oh(){Object.keys(or).forEach(function(o){delete or[o]})}function sh(){ih(or).forEach(function(o){var e=bc(o,2),t=e[0],r=e[1],i=r.isRoot,n=r.isSplit;(!i||!n)&&(or[t]=null,delete or[t])})}function ah(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",t=o?String(o):"";return t.trim().replace(/\s+/g," ").split(e)}var ta="\\ud800-\\udfff",Tc="\\u0300-\\u036f\\ufe20-\\ufe23",Ec="\\u20d0-\\u20f0",kc="\\ufe0e\\ufe0f",lh="[".concat(ta,"]"),Ks="[".concat(Tc).concat(Ec,"]"),Qs="\\ud83c[\\udffb-\\udfff]",ch="(?:".concat(Ks,"|").concat(Qs,")"),Pc="[^".concat(ta,"]"),Cc="(?:\\ud83c[\\udde6-\\uddff]){2}",Ac="[\\ud800-\\udbff][\\udc00-\\udfff]",Oc="\\u200d",Mc="".concat(ch,"?"),Lc="[".concat(kc,"]?"),uh="(?:"+Oc+"(?:"+[Pc,Cc,Ac].join("|")+")"+Lc+Mc+")*",fh=Lc+Mc+uh,hh="(?:".concat(["".concat(Pc).concat(Ks,"?"),Ks,Cc,Ac,lh].join("|"),` )`),dh=RegExp("".concat(Qs,"(?=").concat(Qs,")|").concat(hh).concat(fh),"g"),ph=[Oc,ta,Tc,Ec,kc],_h=RegExp("[".concat(ph.join(""),"]"));function gh(o){return o.split("")}function Rc(o){return _h.test(o)}function mh(o){return o.match(dh)||[]}function yh(o){return Rc(o)?mh(o):gh(o)}function vh(o){return o==null?"":String(o)}function wh(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return o=vh(o),o&&Tn(o)&&!e&&Rc(o)?yh(o):o.split(e)}function Zs(o,e){var t=document.createElement(o);return e&&Object.keys(e).forEach(function(r){var i=e[r],n=Tn(i)?i.trim():i;n===null||n===""||(r==="children"?t.append.apply(t,Rt(yi(n))):t.setAttribute(r,n))}),t}var ra={splitClass:"",lineClass:"line",wordClass:"word",charClass:"char",types:["lines","words","chars"],absolute:!1,tagName:"div"};function bh(o,e){e=gi(ra,e);var t=ea(e.types),r=e.tagName,i=o.nodeValue,n=document.createDocumentFragment(),s=[],a=[];return/^\s/.test(i)&&n.append(" "),s=ah(i).reduce(function(l,c,u,g){var m,p;return t.chars&&(p=wh(c).map(function(v){var d=Zs(r,{class:"".concat(e.splitClass," ").concat(e.charClass),style:"display: inline-block;",children:v});return wr(d,"isChar",!0),a=[].concat(Rt(a),[d]),d})),t.words||t.lines?(m=Zs(r,{class:"".concat(e.wordClass," ").concat(e.splitClass),style:"display: inline-block; ".concat(t.words&&e.absolute?"position: relative;":""),children:t.chars?p:c}),wr(m,{isWord:!0,isWordStart:!0,isWordEnd:!0}),n.appendChild(m)):p.forEach(function(v){n.appendChild(v)}),u=A)&&(l=R,s.push(a=[])),a.push(P)),e.absolute&&wr(P,{top:R,left:D,width:C,height:z}))}),p&&p.removeChild(o),r.lines&&(m=s.map(function(P){var O=Zs(i,{class:"".concat(e.splitClass," ").concat(e.lineClass),style:"display: block; text-align: ".concat(x,"; width: 100%;")});wr(O,"isLine",!0);var k={height:0,top:1e4};return d.appendChild(O),P.forEach(function(C,z,R){var D=mi(C),Y=D.isWordEnd,q=D.top,K=D.height,U=R[z+1];k.height=Math.max(k.height,K),k.top=Math.min(k.top,q),O.appendChild(C),Y&&mi(U).isWordStart&&O.append(" ")}),e.absolute&&wr(O,{height:k.height,top:k.top}),O}),r.words||zc(d),o.replaceChildren(d)),e.absolute&&(o.style.width="".concat(o.style.width||u,"px"),o.style.height="".concat(c,"px"),yi(n).forEach(function(P){var O=mi(P),k=O.isLine,C=O.top,z=O.left,R=O.width,D=O.height,Y=mi(P.parentElement),q=!k&&Y.isLine;P.style.top="".concat(q?C-Y.top:C,"px"),P.style.left=k?"".concat(g.left,"px"):"".concat(z-(q?g.left:0),"px"),P.style.height="".concat(D,"px"),P.style.width=k?"".concat(g.width,"px"):"".concat(R,"px"),P.style.position="absolute"})),p&&(v?p.insertBefore(o,v):p.appendChild(o)),m}var Ni=gi(ra,{}),qc=function(){mc(o,null,[{key:"clearData",value:function(){oh()}},{key:"setDefaults",value:function(t){return Ni=gi(Ni,vo(t)),ra}},{key:"revert",value:function(t){wc(t).forEach(function(r){var i=mi(r),n=i.isSplit,s=i.html,a=i.cssWidth,l=i.cssHeight;n&&(r.innerHTML=s,r.style.width=a||"",r.style.height=l||"",Sc(r))})}},{key:"create",value:function(t,r){return new o(t,r)}},{key:"data",get:function(){return or}},{key:"defaults",get:function(){return Ni},set:function(t){Ni=gi(Ni,vo(t))}}]);function o(e,t){Uf(this,o),this.isSplit=!1,this.settings=gi(Ni,vo(t)),this.elements=wc(e),this.split()}return mc(o,[{key:"split",value:function(t){var r=this;this.revert(),this.elements.forEach(function(s){wr(s,"html",s.innerHTML)}),this.lines=[],this.words=[],this.chars=[];var i=[window.pageXOffset,window.pageYOffset];t!==void 0&&(this.settings=gi(this.settings,vo(t)));var n=ea(this.settings.types);n.none||(this.elements.forEach(function(s){wr(s,"isRoot",!0);var a=Dc(s,r.settings),l=a.words,c=a.chars;r.words=[].concat(Rt(r.words),Rt(l)),r.chars=[].concat(Rt(r.chars),Rt(c))}),this.elements.forEach(function(s){if(n.lines||r.settings.absolute){var a=Th(s,r.settings,i);r.lines=[].concat(Rt(r.lines),Rt(a))}}),this.isSplit=!0,window.scrollTo(i[0],i[1]),sh())}},{key:"revert",value:function(){this.isSplit&&(this.lines=null,this.words=null,this.chars=null,this.isSplit=!1),o.revert(this.elements)}}]),o}();vi.default.use(Fc.default);H.registerPlugin(ee);H.registerPlugin(Oi);H.config({nullTargetWarn:!1});H.defaults({ease:"cubic-bezier(.22,.6,.36,1)"});var Vr,So=document.documentElement;function xo(o,e){return new Promise((t,r)=>{let i=document.createElement("script");i.src=o,i.onload=t,i.onerror=r,(e===void 0||document.querySelector(e))&&document.querySelector('[data-barba="container"]').appendChild(i)})}function Eh(){xo("https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsfilter@1/cmsfilter.js","[fs-cmsfilter-element]");function o(){var e=document.createElement("script");e.src="https://cdn.jsdelivr.net/npm/@finsweet/cookie-consent@1/fs-cc.js",e.async=!0,e.setAttribute("fs-cc-mode","opt-in"),document.head.appendChild(e)}o()}function kh(){document.querySelector("[community-slider]")&&xo("https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/js/splide.min.js").then(()=>{xo("https://cdn.jsdelivr.net/npm/@splidejs/splide-extension-auto-scroll@0.5.3/dist/js/splide-extension-auto-scroll.min.js").then(()=>{new Splide("[community-slider].splide",{type:"loop",drag:"free",focus:"center",pagination:!1,arrows:!1,autoScroll:{speed:1,pauseOnHover:!1}}).mount(window.splide.Extensions)})}).catch(o=>{console.error("Error loading Swiper:",o)}),document.querySelector(".swiper")&&xo("https://cdnjs.cloudflare.com/ajax/libs/Swiper/11.0.5/swiper-bundle.min.js").then(()=>{document.querySelector("[imgs-slider]")&&new Swiper("[imgs-slider] .swiper",{slidesPerView:"auto",effect:"coverflow",spaceBetween:1e3,grabCursor:!0,centeredSlides:!0,speed:1e3,coverflowEffect:{rotate:0,stretch:80,depth:400,modifier:1,slideShadows:!1},loop:!0,navigation:{nextEl:"[imgs-slider] [swiper-next-btn]",prevEl:"[imgs-slider] [swiper-prev-btn]"},breakpoints:{320:{spaceBetween:100,coverflowEffect:{rotate:0,stretch:40,depth:100,modifier:1,slideShadows:!1}},992:{spaceBetween:750}}}),document.querySelector("[suisse-swiper_content]")&&new Swiper("[suisse-swiper_content] .swiper",{slidesPerView:"auto",spaceBetween:10,grabCursor:!0,speed:1e3,loop:!0,navigation:{nextEl:"[suisse-swiper_content] [swiper-next-btn]",prevEl:"[suisse-swiper_content] [swiper-prev-btn]"},breakpoints:{320:{spaceBetween:10,centeredSlides:!0},767:{spaceBetween:10,centeredSlides:!0},992:{spaceBetween:10}}})}).catch(o=>{console.error("Error loading Swiper:",o)})}function Ph(){if(!document.querySelector("[data-split]"))return;let o;function e(){o=new qc("[data-split]",{types:"lines, words, chars"})}e();let t=$(window).innerWidth();window.addEventListener("resize",function(){t!==$(window).innerWidth()&&(t=$(window).innerWidth(),o.revert(),e())})}function Ch(){(()=>{let d=document.querySelectorAll("[tab-comp]");d.length&&d.forEach(function(_){let x=_.querySelectorAll("[tab-btn]"),S=_.querySelectorAll("[tab-content]");x.forEach(function(A){A.addEventListener("click",function(P){P.preventDefault();let O=this.getAttribute("tab-btn");x.forEach(function(C){C.classList.remove("active")}),this.classList.add("active"),S.forEach(function(C){C.classList.remove("active")});let k=_.querySelector('[tab-content="'+O+'"]');k&&k.classList.add("active")})})})})(),document.querySelector("video")&&document.querySelectorAll("video").forEach(d=>{d.play()}),(()=>{let d=document.querySelectorAll("[popup-wrapper]");d.length<1||d.forEach(_=>{let x=_.querySelector("[popup-btn]"),S=_.querySelector("[popup]"),A=_.querySelector("[close-popup]");x.addEventListener("click",()=>{S.classList.add("open")}),A.addEventListener("click",()=>{S.classList.remove("open")})})})(),(()=>{if(window.innerWidth<991){let d=document.querySelectorAll("[set-class-on-tablet]");if(d.length<1)return;d.forEach(_=>{_.classList.add(_.getAttribute("set-class-on-tablet"))})}})(),o();function o(){let d=document.querySelectorAll("[mirror-trigger-btn]");d.length<1||d.forEach(_=>{_.addEventListener("click",()=>{document.querySelector(_.getAttribute("mirror-trigger-btn")).click()})})}e();function e(){H.set("#cursor",{xPercent:-50,yPercent:-50});let d=document.querySelector("#cursor");window.addEventListener("mousemove",_=>{H.to(d,{x:_.clientX,y:_.clientY,cursor:"none",duration:0})})}if(setTimeout(()=>{let d=window.location.href;if(d.includes("#")){let x=d.split("#")[1];Vr.scrollTo(`#${x}`)}if((d.match(/#/g)||[]).length>1){let S=d.split("#")[2];document.querySelector(`#${S}`).click()}},600),window.innerWidth<767&&document.querySelectorAll("[dropdown-mobile]").forEach(d=>d.setAttribute("accordion3","")),document.querySelector(".navbar")){let d=window.pageYOffset;var t=document.querySelector(".navbar");if(window.addEventListener("scroll",function(){let _=window.pageYOffset;_>window.innerHeight*.05?t.classList.add("scrolled"):t.classList.remove("scrolled"),d>_?t.classList.remove("scroll-down"):t.classList.add("scroll-down"),d=_}),window.innerWidth<767){let _=document.querySelector(".menu-button");document.querySelector("body").style.overflow="visible",_.addEventListener("click",function(){t.classList.contains("open")?(document.querySelector("body").style.overflow="visible",t.classList.remove("open")):(t.classList.add("open"),document.querySelector("body").style.overflow="hidden")})}}r();function r(){let d=document.querySelector("[section-customize-experience_scroll-anim]");if(!d)return;let _=H.timeline();_.from("[section-customize-experience_scroll-anim] .char",{duration:1,opacity:0,stagger:.025},"+=2").to(".scroll-custom-text",{delay:2,duration:9,color:"#000000"}),ee.create({trigger:d,start:"top top",end:"bottom bottom",pin:"[section-customize-experience_scroll-anim] .padding-global",animation:_,scrub:1.2,ease:"linear"})}i();function i(){let d=document.querySelector("[section-choice-services]");if(!d)return;let _=H.timeline();_.from("[section-choice-services] .char",{duration:2,opacity:0,stagger:.025},"+=2").from("[section-choice-services] .custom-text",{delay:2,duration:9,opacity:0}),ee.create({trigger:d,start:"top top",end:"bottom bottom",pin:"[section-choice-services] .padding-global",animation:_,scrub:1.2,ease:"linear"})}n();function n(){let d=document.querySelector("[section-future-trainer]");if(!d)return;let _=H.timeline();_.from("[section-future-trainer] .char",{duration:2,opacity:0,stagger:.025},"+=2").from(".mesure-btn-wrap > a",{duration:1,opacity:0,stagger:.5}).to("[section-future-trainer] .dummy",{delay:2,duration:1,opacity:0}),ee.create({trigger:d,start:"top top",end:"bottom bottom",pin:"[section-future-trainer] .padding-global",animation:_,scrub:1.2,ease:"linear"})}s();function s() {const section = document.querySelector("[section-nous_scroll-anim]");if (!section) return;const textWraps = section.querySelectorAll(".nous-text_wrap");H.set(textWraps, { opacity: 0 });const tl = H.timeline({ ease: "linear" });tl.from(".nous-block_left", { duration: 1, opacity: 0 }).from(".nous-block_right", { duration: 1, opacity: 0 });textWraps.forEach((el, i) => {tl.to(el, { duration: 1, opacity: 1 });if (i < textWraps.length - 1) {tl.to(textWraps, { duration: 1, y: `-${(i + 1) * 100}%` }, "+=1");}});tl.from("[nous-section_bottom-text] div", { duration: 1, opacity: 0, stagger: 0.8 }).to("[section-nous_scroll-anim] .dummy", { delay: 2, duration: 1, opacity: 0 });ee.create({trigger: section,start: "top top",end: "bottom bottom",pin: "[section-nous_scroll-anim] .padding-global",animation: tl,scrub: 1.3,ease: "linear"});}a();function waitForGSAP(cb) { let tries = 0; const check = setInterval(() => { tries++; if (window.H && window.ee) { clearInterval(check); cb(); } if (tries > 60) { clearInterval(check); console.warn("GSAP (H / ee) not detected"); } }, 100); } function initEnvironnementsScroll() { const section = document.querySelector("[section-environnements_scroll-anim]"); if (!section) { console.warn("Environnements section not found"); return; } const texts = section.querySelectorAll(".environnement-text_wrap"); const images = section.querySelectorAll(".environnement-block_left .env-img"); const pinEl = section.querySelector(".padding-global"); const dummy = section.querySelector(".dummy"); if (!texts.length) { console.warn("No environnement texts found"); return; } if (texts.length !== images.length) { console.warn("Texts / images count mismatch", texts.length, images.length); } H.set(texts, { opacity: 0, y: 0 }); H.set(images, { opacity: 0, display: "none" }); // First visible if (texts[0]) H.set(texts[0], { opacity: 1 }); if (images[0]) { H.set(images[0], { opacity: 1, display: "block" }); images[0].classList.add("is-active"); } const tl = H.timeline({ ease: "linear" }); texts.forEach((text, i) => { // Show current text tl.to(text, { opacity: 1, duration: 0.6 }); // Switch image tl.call(() => { images.forEach(img => { img.classList.remove("is-active"); H.set(img, { opacity: 0, display: "none" }); }); if (images[i]) { images[i].classList.add("is-active"); H.set(images[i], { display: "block" }); H.to(images[i], { opacity: 1, duration: 0.5 }); } }); // Scroll move to next text if (i < texts.length - 1) { tl.to(texts, { y: `-${(i + 1) * 100}%`, duration: 1 }, "+=1"); } }); // Optional end fade if (dummy) { tl.to(dummy, { opacity: 0, duration: 1 }, "+=1"); } ee.create({ trigger: section, start: "top top", end: "bottom bottom", pin: pinEl || section, animation: tl, scrub: 1.3, invalidateOnRefresh: true }); ee.refresh(); } window.Webflow = window.Webflow || []; Webflow.push(() => { waitForGSAP(() => { initEnvironnementsScroll(); }); }); function a(){let d=document.querySelector("[section-services]");if(!d)return;let _=document.querySelectorAll("[services-headings-wrapper] [services-content]"),x=document.querySelectorAll("[services-content-wrapper] [services-content]"),S=document.querySelectorAll("[services-imgs-wrapper] [tab-img]"),A=document.querySelectorAll("[services-btn_block] a");H.set(_,{display:"none"}),H.set(x,{display:"none"}),H.set(S,{opacity:0}),H.set(S[0],{opacity:1}),H.set([_[0],x[0]],{display:"flex"}),A[0].classList.add("active");let P=H.timeline();if(P.to([_[0],x[0]],{display:"flex",delay:1,duration:1,onStart:()=>{H.to(S,{duration:1,opacity:0}),H.to(S[0],{duration:1,opacity:1}),A.forEach(k=>k.classList.remove("active")),A[0].classList.add("active")},onReverseComplete:()=>{H.to(S,{duration:1,opacity:0}),H.to(S[0],{duration:1,opacity:1})}}).to([_[0],x[0]],{display:"none"}).to([_[1],x[1]],{display:"flex",duration:1,onStart:()=>{H.to(S,{duration:1,opacity:0}),H.to(S[1],{duration:1,opacity:1}),A.forEach(k=>k.classList.remove("active")),A[1].classList.add("active")},onReverseComplete:()=>{H.to(S,{duration:1,opacity:0}),H.to(S[0],{duration:1,opacity:1}),A.forEach(k=>k.classList.remove("active")),A[0].classList.add("active")}}).to([_[1],x[1]],{display:"none",delay:2}).to([_[2],x[2]],{display:"flex",duration:1,onStart:()=>{H.to(S,{duration:1,opacity:0}),H.to(S[2],{duration:1,opacity:1}),A.forEach(k=>k.classList.remove("active")),A[2].classList.add("active")},onReverseComplete:()=>{H.to(S,{duration:1,opacity:0}),H.to(S[1],{duration:1,opacity:1}),A.forEach(k=>k.classList.remove("active")),A[1].classList.add("active")}}).to([_[2],x[2]],{display:"none",delay:2}).to([_[3],x[3]],{display:"flex",duration:1,onStart:()=>{H.to(S,{duration:1,opacity:0}),H.to(S[3],{duration:1,opacity:1}),A.forEach(k=>k.classList.remove("active")),A[3].classList.add("active")},onReverseComplete:()=>{H.to(S,{duration:1,opacity:0}),H.to(S[2],{duration:1,opacity:1}),A.forEach(k=>k.classList.remove("active")),A[2].classList.add("active")}}).to([_[3],x[3]],{display:"none",delay:2}).to([_[4],x[4]],{display:"flex",duration:1,onStart:()=>{H.to(S,{duration:1,opacity:0}),H.to(S[4],{duration:1,opacity:1}),A.forEach(k=>k.classList.remove("active")),A[4].classList.add("active")},onReverseComplete:()=>{H.to(S,{duration:1,opacity:0}),H.to(S[3],{duration:1,opacity:1}),A.forEach(k=>k.classList.remove("active")),A[3].classList.add("active")}}).to([_[4], x[4]], { display: "none", delay: 2 }).to([_[5],x[5]],{display: "flex",duration: 1,onStart: () => {H.to(S, { duration: 1, opacity: 0 });H.to(S[5], { duration: 1, opacity: 1 });A.forEach(k => k.classList.remove("active"));A[5].classList.add("active");},onReverseComplete: () => {H.to(S, { duration: 1, opacity: 0 });H.to(S[4], { duration: 1, opacity: 1 });A.forEach(k => k.classList.remove("active"));A[4].classList.add("active");}}) .to("[section-services] .dummy",{delay:2,duration:1,opacity:0}),ee.create({trigger:d,start:"top top",end:"bottom bottom",animation:P,scrub:1.3,ease:"linear"}),window.innerWidth<767){let R=function(D){let Y=D.getBoundingClientRect(),q=k.getBoundingClientRect(),K=Y.left-q.left;H.to(k,{scrollTo:{x:k.scrollLeft+K-q.width/2+Y.width/2},duration:.75,ease:"ease"})};var O=R;let k=document.querySelector("[services-btn_block]"),C=k.querySelectorAll(".button"),z=new MutationObserver(D=>{D.forEach(Y=>{if(Y.type==="attributes"&&Y.attributeName==="class"){let q=Y.target;q.classList.contains("active")&&R(q)}})});C.forEach(D=>{z.observe(D,{attributes:!0})})}}l();function l(){let d=document.querySelector("[tab-section]");if(!d)return;let _=d.querySelectorAll("[tab-btn]"),x=d.querySelectorAll("[tab-img]"),S=d.querySelectorAll("[tab-content-wrapper]");H.set(x,{opacity:0,scale:1.05}),H.set("[tab-img].active",{opacity:1,scale:1}),_.forEach((A,P)=>{A.addEventListener("click",()=>{_.forEach(C=>C.classList.remove("active")),A.classList.add("active");let O=Array.from(x).filter(C=>C.classList.contains("active")),k=x[P];H.timeline().to(O,{duration:.75,opacity:0,scale:1.05},"<").fromTo(k,{opacity:0,scale:1.05},{duration:.75,opacity:1,scale:1},"<"),x.forEach(C=>C.classList.remove("active")),k.classList.add("active"),S.forEach(C=>{C.querySelectorAll("[tab-content]").forEach(z=>z.classList.remove("active"))}),S.forEach(C=>{C.querySelectorAll("[tab-content]")[P].classList.add("active")})})})}c();function c(){let d=document.querySelector("[tab-section_home]");if(!d)return;let _=d.querySelectorAll("[tab-btn]"),x=d.querySelectorAll("[tab-img]"),S=d.querySelectorAll("[tab-content]");H.set(x,{opacity:0,scale:1.05}),H.set(x[0],{opacity:1,scale:1}),H.set(_[0],{opacity:1,fontSize:window.innerWidth<767?"2rem":"2.625rem"}),H.set(S,{display:"none"}),H.set(S[0],{display:"flex"});let A=H.timeline();A.to([_[0],_[2],_[3]],{delay:2,duration:.5,opacity:.25,fontSize:"1.375rem"},"<").to(_[1],{duration:.5,opacity:1,fontSize:window.innerWidth<767?"2rem":"2.625rem"},"<").to([x[0],x[2],x[3]],{opacity:0,scale:1.05,duration:.75},"<").to(x[1],{opacity:1,scale:1,duration:.75},"<").set(S,{display:"none"},"<").set(S[1],{display:"flex"},"<").to([_[0],_[1],_[3]],{delay:2,duration:.5,opacity:.25,fontSize:"1.375rem"},"<").to(_[2],{duration:.5,opacity:1,fontSize:window.innerWidth<767?"2rem":"2.625rem"},"<").to([x[0],x[1],x[3]],{opacity:0,scale:1.05,duration:.75},"<").to(x[2],{opacity:1,scale:1,duration:.75},"<").set(S,{display:"none"},"<").set(S[2],{display:"flex"},"<").to([_[0],_[1],_[2]],{delay:2,duration:.5,opacity:.25,fontSize:"1.375rem"},"<").to(_[3],{duration:.5,opacity:1,fontSize:window.innerWidth<767?"2rem":"2.625rem"},"<").to([x[0],x[1],x[2]],{opacity:0,scale:1.05,duration:.75},"<").to(x[3],{opacity:1,scale:1,duration:.75},"<").set(S,{display:"none"},"<").set(S[3],{display:"flex"},"<").to("[tab-section_home] .dummy",{duration:1,opacity:0}),ee.create({trigger:"[tab-section_home]",start:"top top",end:"bottom bottom",animation:A,scrub:2.2,ease:"ease"})}u();function u(){let d=document.querySelector("[tab-section_topnet-swiss]");if(!d)return;let _=d.querySelectorAll("[tab-btn]"),x=d.querySelectorAll("[tab-img]"),S=d.querySelectorAll("[tab-content]");H.set(x,{opacity:0,scale:1.05}),H.set(x[0],{opacity:1,scale:1}),H.set(_[0],{opacity:1,fontSize:window.innerWidth<767?"2rem":"2.625rem"}),H.set(S,{display:"none"}),H.set(S[0],{display:"flex"});let A=H.timeline();A.to([_[0],_[2],_[3]],{delay:2,duration:.5,opacity:.25,fontSize:"1.375rem"},"<").to(_[1],{duration:.5,opacity:1,fontSize:window.innerWidth<767?"2rem":"2.625rem"},"<").to([x[0],x[2],x[3]],{opacity:0,scale:1.05,duration:.75},"<").to(x[1],{opacity:1,scale:1,duration:.75},"<").set(S,{display:"none"},"<").set(S[1],{display:"flex"},"<").to([_[0],_[1],_[3]],{delay:2,duration:.5,opacity:.25,fontSize:"1.375rem"},"<").to(_[2],{duration:.5,opacity:1,fontSize:window.innerWidth<767?"2rem":"2.625rem"},"<").to([x[0],x[1],x[3]],{opacity:0,scale:1.05,duration:.75},"<").to(x[2],{opacity:1,scale:1,duration:.75},"<").set(S,{display:"none"},"<").set(S[2],{display:"flex"},"<").to("[tab-section_topnet-swiss] .dummy",{duration:1,opacity:0}),ee.create({trigger:"[tab-section_topnet-swiss]",start:"top top",end:"bottom bottom",animation:A,scrub:2.2,ease:"ease"})}g();function g(){let d=document.querySelectorAll("[accordion]");d.length<1||(window.innerWidth>991?d.forEach(_=>{_.addEventListener("mouseenter",()=>{_.classList.add("active")}),_.addEventListener("mouseleave",()=>{_.classList.remove("active")}),_.querySelector("[close-accordion]").addEventListener("click",()=>{_.classList.remove("active")});let x=_.querySelector("[accordion-body]"),S=x.clientHeight;_.style.setProperty("--body-height",S+"px"),x.style.height="0px"}):d.forEach(_=>{_.querySelector("[accordion-head]").addEventListener("click",()=>{_.classList.contains("active")?_.classList.remove("active"):_.classList.add("active")});let x=_.querySelector("[accordion-body]"),S=x.clientHeight;_.style.setProperty("--body-height",S+"px"),x.style.height="0px"}))}m();function m(){let d=Array.from(document.querySelectorAll("[accordion2]"));if(d.length<1)return;let _=document.querySelectorAll("[coordinate-texts-wrapper] .coordinate-text"),x=Array.from(document.querySelectorAll("[section-branches] [branches-img]"));H.set("[section-branches] [branches-img]:not(:first-child)",{opacity:0,scale:1.1});let S=!1;d.forEach((C,z)=>{C.querySelector("[accordion-head]").addEventListener("click",()=>{if(S||C.classList.contains("active"))return;_.forEach(U=>U.classList.remove("active")),_[z].classList.add("active"),d.forEach(U=>U.classList.remove("active")),C.classList.contains("active")?C.classList.remove("active"):C.classList.add("active");let q=Array.from(x).filter(U=>U.classList.contains("active")),K=x[z];H.timeline().to(q,{duration:.75,opacity:0,scale:1.05},"<").fromTo(K,{opacity:0,scale:1.05},{duration:.75,opacity:1,scale:1,onComplete:()=>{S=!1}},"<"),x.forEach(U=>U.classList.remove("active")),K.classList.add("active")});let D=C.querySelector("[accordion-body]"),Y=D.clientHeight;C.style.setProperty("--body-height",Y+"px"),D.style.height="0px"}),d[0].querySelector("[accordion-head]").click();let A=document.querySelector("[coordinates-btns] [prev-btn]"),P=document.querySelector("[coordinates-btns] [next-btn]"),O,k;P.addEventListener("click",()=>{O=document.querySelector("[accordion2].active"),k=d.indexOf(O),O.classList.remove("active"),k===d.length-1&&(k=-1),d[k+1].querySelector("[accordion-head]").click()}),A.addEventListener("click",()=>{O=document.querySelector("[accordion2].active"),k=d.indexOf(O),O.classList.remove("active"),k===0&&(k=d.length),d[k-1].querySelector("[accordion-head]").click()})}p();function p(){let d=document.querySelectorAll("[accordion3]");d.length<1||d.forEach(_=>{_.querySelector("[accordion-head]").addEventListener("click",()=>{_.classList.contains("active")?_.classList.remove("active"):(d.forEach(P=>P.classList.remove("active")),_.classList.add("active"))});let S=_.querySelector("[accordion-body]"),A=S.clientHeight;_.style.setProperty("--body-height",A+"px"),S.style.height="0px"})}v();function v(){document.querySelector("[anim-clipPath]")&&H.to("[anim-clipPath]",{duration:1,scrollTrigger:{trigger:"[anim-clipPath]",start:"bottom center",end:"+=250",scrub:1.5},clipPath:window.innerWidth>767?"inset(4rem round 0.8rem)":"inset(1.25rem round 0.8rem)"})}}function Ah(){let o=[...document.querySelectorAll("[data-split][data-effect8]")],e=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","!","@","#","$","%","^","&","*","-","_","+","=",";",":","<",">",","];o.forEach(a=>{a.querySelectorAll(".char").forEach((c,u)=>{let g=c.innerHTML;H.fromTo(c,{opacity:0},{duration:.03,innerHTML:()=>e[Math.floor(Math.random()*e.length)],repeat:1,repeatRefresh:!0,opacity:1,repeatDelay:.03,delay:(u+1)*.18,onComplete:()=>H.set(c,{innerHTML:g,delay:.03}),scrollTrigger:{trigger:a,start:"top bottom",end:"bottom center"}})})});let t=document.querySelectorAll("[anim-stagger]");t.length>0&&t.forEach(a=>{r(a)});function r(a,l,c){l==null&&(l=a.getAttribute("anim-stagger"));let u=a.querySelectorAll(l);H.set(u,{y:a.getAttribute("from-y")||"1rem",opacity:c||0}),ee.batch(u,{onEnter:g=>{H.to(g,{duration:a.getAttribute("data-duration")||1.3,y:"0rem",opacity:1,stagger:{from:a.getAttribute("stagger-from")||"start",each:a.getAttribute("stagger-amount")||.25},ease:a.getAttribute("data-easing")||"power3.out",scrollTrigger:{trigger:a,start:a.getAttribute("scrollTrigger-start")||"top 95%",markers:a.getAttribute("anim-markers")||!1},autoAlpha:1,delay:a.getAttribute("anim-delay")||.15})}})}function i(a){let l=a.getAttribute("anim-delay"),c=a.getAttribute("data-duration"),u=a.getAttribute("from-y"),g=a.getAttribute("data-easing");g=g||"power3.out",l=l||.25,c=c||1.25,u=u||"2rem",H.fromTo(a,{y:u,opacity:0},{duration:c,y:"0%",opacity:1,ease:g,scrollTrigger:a,delay:l,clearProps:!0})}document.querySelectorAll("[anim-element]").forEach(a=>{i(a)}),document.querySelectorAll("[count-up]").forEach(a=>{H.from(a,{textContent:0,duration:3,scrollTrigger:a,snap:{textContent:1}})}),window.innerWidth>768&&document.querySelectorAll("[parallax-element]").forEach(l=>{H.fromTo(l,{y:"-10%",scale:1.1},{y:"10%",scale:1.1,scrollTrigger:{trigger:l,start:"top bottom",end:"bottom -50%",scrub:.2,markers:!1}})}),n();function n(){document.querySelector("[section-home-hero]")&&(H.set(".hero-image:not(:first-child)",{opacity:0,scale:1.1}),H.set(".home-hero-content:not(:first-child)",{opacity:0}),H.timeline({scrollTrigger:{trigger:".trigger._1",start:"top top",end:"bottom 90%",scrub:2.2}}).to(".hero-image._1",{delay:3,duration:4,opacity:0,scale:1.1}).to(".home-hero-content._1",{duration:1,opacity:0},"<").to(".hero-image._2",{duration:4,opacity:1,scale:1},"<").to(".home-hero-content._2",{duration:1,opacity:1},"<"),H.timeline({scrollTrigger:{trigger:".trigger._2",start:"top top",end:"bottom 90%",scrub:2.2}}).to(".hero-image._2",{delay:4,duration:4,opacity:0,scale:1.1}).to(".home-hero-content._2",{duration:1,opacity:0},"<").to(".hero-image._3",{duration:4,opacity:1,scale:1},"<").to(".home-hero-content._3",{duration:1,opacity:1},"<"))}s();function s(){document.querySelector("[home-career-section]")&&H.timeline({scrollTrigger:{trigger:"[home-career-section] .career-content_image-grid",start:"top 70%"}}).from(".career-content_image-block._1",{duration:1.5,y:"-50%",x:"-60%",opacity:0,ease:"ease"}).from(".career-content_image-block._2",{delay:.25,duration:1.2,y:"0%",x:"-60%",opacity:0,ease:"ease"},"<").from(".career-content_image-block._3",{duration:1.3,y:"40%",x:"0%",opacity:0,ease:"ease"},"<").from(".career-content_image-block._4",{delay:.25,duration:1.1,y:"0%",x:"60%",opacity:0,ease:"ease"},"<")}}function Oh(o){let e=$(new DOMParser().parseFromString(o.next.html,"text/html")).find("html");$("html").attr("data-wf-page",e.attr("data-wf-page")),window.Webflow&&window.Webflow.destroy(),window.Webflow&&window.Webflow.ready(),window.Webflow&&window.Webflow.require("ix2").init(),$("a").each(function(){$(this).attr("href")===window.location.pathname&&$(this).addClass("w--current")})}function Bc(){Vr=new Cn({duration:1.2,easing:e=>e===1?1:1-Math.pow(2,-10*e),direction:"vertical",gestureDirection:"vertical",smooth:!0,smoothTouch:!1,touchMultiplier:2,wheelMultiplier:1});function o(e){Vr.raf(e),requestAnimationFrame(o)}requestAnimationFrame(o)}function Mh(){window.addEventListener("load",()=>{setTimeout(()=>{Vr.resize(),ee.refresh()},500)}),document.addEventListener("click",()=>{setTimeout(()=>{Vr.resize(),ee.refresh()},500)})}function Lh(){"scrollRestoration"in history&&(history.scrollRestoration="manual");let o=t=>H.from(t,{duration:.6,opacity:0,ease:"none",clearProps:"all",onStart:()=>{Vr.destroy(),Bc(),ee.refresh()}}),e=t=>H.to(t,{opacity:0,duration:.6,ease:"none",clearProps:"all"});vi.default.init({transitions:[{name:"default-transition",async leave(t){await e(t.current.container)},enter(t){o(t.next.container)}}]}),vi.default.hooks.before(()=>{Vr.destroy()}),vi.default.hooks.enter(t=>{Oh(t)}),vi.default.hooks.afterLeave(()=>{So.classList.remove("ready")}),vi.default.hooks.after(()=>{window.scrollTo(0,0),So.classList.add("ready"),Vr.start(),Ic()})}function Ic(){Ph(),Eh(),Ah(),Mh(),Ch(),kh()}document.addEventListener("DOMContentLoaded",()=>{Webflow.env("editor")===void 0&&(Bc(),Lh()),Ic()});window.addEventListener("load",()=>{window.scrollTo(0,0);function o(t,r,i){var n=new Date;n.setTime(n.getTime()+i*24*60*60*1e3);var s="expires="+n.toUTCString();document.cookie=t+"="+r+";"+s+";path=/"}function e(t){for(var r=document.cookie.split(";"),i=0;ii.removeAttribute("data-anim")),r.removeAttribute("data-anim-hero-image"),t.forEach(i=>i.removeAttribute("data-delay")),H.set(t,{y:"1rem",opacity:0}),H.set(r,{scale:1.3,opacity:1}),H.set(".loader",{display:"block"}),So.classList.add("ready"),H.to("body",{duration:.6,opacity:1,ease:"none"}),H.timeline().to(".loader",{delay:1,duration:1,scale:970,x:"-55%",ease:"power3.in",onComplete:()=>{document.querySelector(".loader").style.display="none",H.to(t,{duration:1,y:"0",opacity:1,stagger:.25})}}).to(r,{delay:.25,duration:1.25,scale:1,opacity:1},"<")}});})(); /*! Bundled license information: gsap/gsap-core.js: (*! * GSAP 3.12.5 * https://gsap.com * * @license Copyright 2008-2024, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com *) gsap/CSSPlugin.js: (*! * CSSPlugin 3.12.5 * https://gsap.com * * Copyright 2008-2024, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com *) gsap/ScrollToPlugin.js: (*! * ScrollToPlugin 3.12.5 * https://gsap.com * * @license Copyright 2008-2024, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com *) gsap/Observer.js: (*! * Observer 3.12.5 * https://gsap.com * * @license Copyright 2008-2024, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com *) gsap/ScrollTrigger.js: (*! * ScrollTrigger 3.12.5 * https://gsap.com * * @license Copyright 2008-2024, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com *) */