Files
drupal-mathallo/web_main/themes/custom/mathallo/assets/dist/main.js
2026-07-07 12:02:08 +02:00

37 lines
129 KiB
JavaScript

function xr(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function sa(a,e){a.prototype=Object.create(e.prototype),a.prototype.constructor=a,a.__proto__=e}/*!
* GSAP 3.14.1
* https://gsap.com
*
* @license Copyright 2008-2025, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license
* @author: Jack Doyle, jack@greensock.com
*/var Ut={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Pi={duration:.5,overwrite:!1,delay:0},Us,ot,Se,Zt=1e8,ve=1/Zt,xs=Math.PI*2,El=xs/4,Rl=0,oa=Math.sqrt,Dl=Math.cos,Al=Math.sin,tt=function(e){return typeof e=="string"},Ae=function(e){return typeof e=="function"},Cr=function(e){return typeof e=="number"},Hs=function(e){return typeof e>"u"},mr=function(e){return typeof e=="object"},Mt=function(e){return e!==!1},Ws=function(){return typeof window<"u"},vn=function(e){return Ae(e)||tt(e)},aa=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},gt=Array.isArray,Fl=/random\([^)]+\)/g,zl=/,\s*/g,yo=/(?:-?\.?\d|\.)+/gi,la=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,mi=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ss=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ua=/[+-]=-?[.\d]+/,Ll=/[^,'"\[\]\s]+/gi,Il=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Oe,fr,bs,qs,Ht={},Vn={},fa,ca=function(e){return(Vn=Mi(e,Ht))&&Dt},Gs=function(e,r){return console.warn("Invalid property",e,"set to",r,"Missing plugin? gsap.registerPlugin()")},an=function(e,r){return!r&&console.warn(e)},ha=function(e,r){return e&&(Ht[e]=r)&&Vn&&(Vn[e]=r)||Ht},ln=function(){return 0},Nl={suppressEvents:!0,isStart:!0,kill:!1},Fn={suppressEvents:!0,kill:!1},Bl={suppressEvents:!0},Ks={},Ir=[],ws={},da,Nt={},os={},vo=30,zn=[],Qs="",Zs=function(e){var r=e[0],t,i;if(mr(r)||Ae(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(i=zn.length;i--&&!zn[i].targetTest(r););t=zn[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Ia(e[i],t)))||e.splice(i,1);return e},ei=function(e){return e._gsap||Zs(jt(e))[0]._gsap},_a=function(e,r,t){return(t=e[r])&&Ae(t)?e[r]():Hs(t)&&e.getAttribute&&e.getAttribute(r)||t},Ot=function(e,r){return(e=e.split(",")).forEach(r)||e},Le=function(e){return Math.round(e*1e5)/1e5||0},Me=function(e){return Math.round(e*1e7)/1e7||0},bi=function(e,r){var t=r.charAt(0),i=parseFloat(r.substr(2));return e=parseFloat(e),t==="+"?e+i:t==="-"?e-i:t==="*"?e*i:e/i},Yl=function(e,r){for(var t=r.length,i=0;e.indexOf(r[i])<0&&++i<t;);return i<t},Un=function(){var e=Ir.length,r=Ir.slice(0),t,i;for(ws={},Ir.length=0,t=0;t<e;t++)i=r[t],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},js=function(e){return!!(e._initted||e._startAt||e.add)},pa=function(e,r,t,i){Ir.length&&!ot&&Un(),e.render(r,t,!!(ot&&r<0&&js(e))),Ir.length&&!ot&&Un()},ga=function(e){var r=parseFloat(e);return(r||r===0)&&(e+"").match(Ll).length<2?r:tt(e)?e.trim():e},ma=function(e){return e},Wt=function(e,r){for(var t in r)t in e||(e[t]=r[t]);return e},$l=function(e){return function(r,t){for(var i in t)i in r||i==="duration"&&e||i==="ease"||(r[i]=t[i])}},Mi=function(e,r){for(var t in r)e[t]=r[t];return e},xo=function a(e,r){for(var t in r)t!=="__proto__"&&t!=="constructor"&&t!=="prototype"&&(e[t]=mr(r[t])?a(e[t]||(e[t]={}),r[t]):r[t]);return e},Hn=function(e,r){var t={},i;for(i in e)i in r||(t[i]=e[i]);return t},qi=function(e){var r=e.parent||Oe,t=e.keyframes?$l(gt(e.keyframes)):Wt;if(Mt(e.inherit))for(;r;)t(e,r.vars.defaults),r=r.parent||r._dp;return e},Xl=function(e,r){for(var t=e.length,i=t===r.length;i&&t--&&e[t]===r[t];);return t<0},ya=function(e,r,t,i,n){var s=e[i],o;if(n)for(o=r[n];s&&s[n]>o;)s=s._prev;return s?(r._next=s._next,s._next=r):(r._next=e[t],e[t]=r),r._next?r._next._prev=r:e[i]=r,r._prev=s,r.parent=r._dp=e,r},es=function(e,r,t,i){t===void 0&&(t="_first"),i===void 0&&(i="_last");var n=r._prev,s=r._next;n?n._next=s:e[t]===r&&(e[t]=s),s?s._prev=n:e[i]===r&&(e[i]=n),r._next=r._prev=r.parent=null},Yr=function(e,r){e.parent&&(!r||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},ti=function(e,r){if(e&&(!r||r._end>e._dur||r._start<0))for(var t=e;t;)t._dirty=1,t=t.parent;return e},Vl=function(e){for(var r=e.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return e},Ts=function(e,r,t,i){return e._startAt&&(ot?e._startAt.revert(Fn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(r,!0,i))},Ul=function a(e){return!e||e._ts&&a(e.parent)},bo=function(e){return e._repeat?Oi(e._tTime,e=e.duration()+e._rDelay)*e:0},Oi=function(e,r){var t=Math.floor(e=Me(e/r));return e&&t===e?t-1:t},Wn=function(e,r){return(e-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},ts=function(e){return e._end=Me(e._start+(e._tDur/Math.abs(e._ts||e._rts||ve)||0))},rs=function(e,r){var t=e._dp;return t&&t.smoothChildTiming&&e._ts&&(e._start=Me(t._time-(e._ts>0?r/e._ts:((e._dirty?e.totalDuration():e._tDur)-r)/-e._ts)),ts(e),t._dirty||ti(t,e)),e},va=function(e,r){var t;if((r._time||!r._dur&&r._initted||r._start<e._time&&(r._dur||!r.add))&&(t=Wn(e.rawTime(),r),(!r._dur||gn(0,r.totalDuration(),t)-r._tTime>ve)&&r.render(t,!0)),ti(e,r)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(t=e;t._dp;)t.rawTime()>=0&&t.totalTime(t._tTime),t=t._dp;e._zTime=-ve}},dr=function(e,r,t,i){return r.parent&&Yr(r),r._start=Me((Cr(t)?t:t||e!==Oe?Gt(e,t,r):e._time)+r._delay),r._end=Me(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),ya(e,r,"_first","_last",e._sort?"_start":0),Ss(r)||(e._recent=r),i||va(e,r),e._ts<0&&rs(e,e._tTime),e},xa=function(e,r){return(Ht.ScrollTrigger||Gs("scrollTrigger",r))&&Ht.ScrollTrigger.create(r,e)},ba=function(e,r,t,i,n){if(eo(e,r,n),!e._initted)return 1;if(!t&&e._pt&&!ot&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&da!==Yt.frame)return Ir.push(e),e._lazy=[n,i],1},Hl=function a(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||a(r))},Ss=function(e){var r=e.data;return r==="isFromStart"||r==="isStart"},Wl=function(e,r,t,i){var n=e.ratio,s=r<0||!r&&(!e._start&&Hl(e)&&!(!e._initted&&Ss(e))||(e._ts<0||e._dp._ts<0)&&!Ss(e))?0:1,o=e._rDelay,l=0,u,f,d;if(o&&e._repeat&&(l=gn(0,e._tDur,r),f=Oi(l,o),e._yoyo&&f&1&&(s=1-s),f!==Oi(e._tTime,o)&&(n=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==n||ot||i||e._zTime===ve||!r&&e._zTime){if(!e._initted&&ba(e,r,i,t,l))return;for(d=e._zTime,e._zTime=r||(t?ve:0),t||(t=r&&!d),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=l,u=e._pt;u;)u.r(s,u.d),u=u._next;r<0&&Ts(e,r,t,!0),e._onUpdate&&!t&&Xt(e,"onUpdate"),l&&e._repeat&&!t&&e.parent&&Xt(e,"onRepeat"),(r>=e._tDur||r<0)&&e.ratio===s&&(s&&Yr(e,1),!t&&!ot&&(Xt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=r)},ql=function(e,r,t){var i;if(t>r)for(i=e._first;i&&i._start<=t;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=e._last;i&&i._start>=t;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},Ei=function(e,r,t,i){var n=e._repeat,s=Me(r)||0,o=e._tTime/e._tDur;return o&&!i&&(e._time*=s/e._dur),e._dur=s,e._tDur=n?n<0?1e10:Me(s*(n+1)+e._rDelay*n):s,o>0&&!i&&rs(e,e._tTime=e._tDur*o),e.parent&&ts(e),t||ti(e.parent,e),e},wo=function(e){return e instanceof St?ti(e):Ei(e,e._dur)},Gl={_start:0,endTime:ln,totalDuration:ln},Gt=function a(e,r,t){var i=e.labels,n=e._recent||Gl,s=e.duration()>=Zt?n.endTime(!1):e._dur,o,l,u;return tt(r)&&(isNaN(r)||r in i)?(l=r.charAt(0),u=r.substr(-1)==="%",o=r.indexOf("="),l==="<"||l===">"?(o>=0&&(r=r.replace(/=/,"")),(l==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(r.substr(1))||0)*(u?(o<0?n:t).totalDuration()/100:1)):o<0?(r in i||(i[r]=s),i[r]):(l=parseFloat(r.charAt(o-1)+r.substr(o+1)),u&&t&&(l=l/100*(gt(t)?t[0]:t).totalDuration()),o>1?a(e,r.substr(0,o-1),t)+l:s+l)):r==null?s:+r},Gi=function(e,r,t){var i=Cr(r[1]),n=(i?2:1)+(e<2?0:1),s=r[n],o,l;if(i&&(s.duration=r[1]),s.parent=t,e){for(o=s,l=t;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=Mt(l.vars.inherit)&&l.parent;s.immediateRender=Mt(o.immediateRender),e<2?s.runBackwards=1:s.startAt=r[n-1]}return new $e(r[0],s,r[n+1])},Ur=function(e,r){return e||e===0?r(e):r},gn=function(e,r,t){return t<e?e:t>r?r:t},_t=function(e,r){return!tt(e)||!(r=Il.exec(e))?"":r[1]},Kl=function(e,r,t){return Ur(t,function(i){return gn(e,r,i)})},Cs=[].slice,wa=function(e,r){return e&&mr(e)&&"length"in e&&(!r&&!e.length||e.length-1 in e&&mr(e[0]))&&!e.nodeType&&e!==fr},Ql=function(e,r,t){return t===void 0&&(t=[]),e.forEach(function(i){var n;return tt(i)&&!r||wa(i,1)?(n=t).push.apply(n,jt(i)):t.push(i)})||t},jt=function(e,r,t){return Se&&!r&&Se.selector?Se.selector(e):tt(e)&&!t&&(bs||!Ri())?Cs.call((r||qs).querySelectorAll(e),0):gt(e)?Ql(e,t):wa(e)?Cs.call(e,0):e?[e]:[]},ks=function(e){return e=jt(e)[0]||an("Invalid scope")||{},function(r){var t=e.current||e.nativeElement||e;return jt(r,t.querySelectorAll?t:t===e?an("Invalid scope")||qs.createElement("div"):e)}},Ta=function(e){return e.sort(function(){return .5-Math.random()})},Sa=function(e){if(Ae(e))return e;var r=mr(e)?e:{each:e},t=ri(r.ease),i=r.from||0,n=parseFloat(r.base)||0,s={},o=i>0&&i<1,l=isNaN(i)||o,u=r.axis,f=i,d=i;return tt(i)?f=d={center:.5,edges:.5,end:1}[i]||0:!o&&l&&(f=i[0],d=i[1]),function(_,c,p){var h=(p||r).length,y=s[h],C,T,P,x,S,O,g,k,w;if(!y){if(w=r.grid==="auto"?0:(r.grid||[1,Zt])[1],!w){for(g=-Zt;g<(g=p[w++].getBoundingClientRect().left)&&w<h;);w<h&&w--}for(y=s[h]=[],C=l?Math.min(w,h)*f-.5:i%w,T=w===Zt?0:l?h*d/w-.5:i/w|0,g=0,k=Zt,O=0;O<h;O++)P=O%w-C,x=T-(O/w|0),y[O]=S=u?Math.abs(u==="y"?x:P):oa(P*P+x*x),S>g&&(g=S),S<k&&(k=S);i==="random"&&Ta(y),y.max=g-k,y.min=k,y.v=h=(parseFloat(r.amount)||parseFloat(r.each)*(w>h?h-1:u?u==="y"?h/w:w:Math.max(w,h/w))||0)*(i==="edges"?-1:1),y.b=h<0?n-h:n,y.u=_t(r.amount||r.each)||0,t=t&&h<0?Fa(t):t}return h=(y[_]-y.min)/y.max||0,Me(y.b+(t?t(h):h)*y.v)+y.u}},Ps=function(e){var r=Math.pow(10,((e+"").split(".")[1]||"").length);return function(t){var i=Me(Math.round(parseFloat(t)/e)*e*r);return(i-i%1)/r+(Cr(t)?0:_t(t))}},Ca=function(e,r){var t=gt(e),i,n;return!t&&mr(e)&&(i=t=e.radius||Zt,e.values?(e=jt(e.values),(n=!Cr(e[0]))&&(i*=i)):e=Ps(e.increment)),Ur(r,t?Ae(e)?function(s){return n=e(s),Math.abs(n-s)<=i?n:s}:function(s){for(var o=parseFloat(n?s.x:s),l=parseFloat(n?s.y:0),u=Zt,f=0,d=e.length,_,c;d--;)n?(_=e[d].x-o,c=e[d].y-l,_=_*_+c*c):_=Math.abs(e[d]-o),_<u&&(u=_,f=d);return f=!i||u<=i?e[f]:s,n||f===s||Cr(s)?f:f+_t(s)}:Ps(e))},ka=function(e,r,t,i){return Ur(gt(e)?!r:t===!0?!!(t=0):!i,function(){return gt(e)?e[~~(Math.random()*e.length)]:(t=t||1e-5)&&(i=t<1?Math.pow(10,(t+"").length-2):1)&&Math.floor(Math.round((e-t/2+Math.random()*(r-e+t*.99))/t)*t*i)/i})},Zl=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(i){return r.reduce(function(n,s){return s(n)},i)}},jl=function(e,r){return function(t){return e(parseFloat(t))+(r||_t(t))}},Jl=function(e,r,t){return Ma(e,r,0,1,t)},Pa=function(e,r,t){return Ur(t,function(i){return e[~~r(i)]})},eu=function a(e,r,t){var i=r-e;return gt(e)?Pa(e,a(0,e.length),r):Ur(t,function(n){return(i+(n-e)%i)%i+e})},tu=function a(e,r,t){var i=r-e,n=i*2;return gt(e)?Pa(e,a(0,e.length-1),r):Ur(t,function(s){return s=(n+(s-e)%n)%n||0,e+(s>i?n-s:s)})},un=function(e){return e.replace(Fl,function(r){var t=r.indexOf("[")+1,i=r.substring(t||7,t?r.indexOf("]"):r.length-1).split(zl);return ka(t?i:+i[0],t?0:+i[1],+i[2]||1e-5)})},Ma=function(e,r,t,i,n){var s=r-e,o=i-t;return Ur(n,function(l){return t+((l-e)/s*o||0)})},ru=function a(e,r,t,i){var n=isNaN(e+r)?0:function(c){return(1-c)*e+c*r};if(!n){var s=tt(e),o={},l,u,f,d,_;if(t===!0&&(i=1)&&(t=null),s)e={p:e},r={p:r};else if(gt(e)&&!gt(r)){for(f=[],d=e.length,_=d-2,u=1;u<d;u++)f.push(a(e[u-1],e[u]));d--,n=function(p){p*=d;var h=Math.min(_,~~p);return f[h](p-h)},t=r}else i||(e=Mi(gt(e)?[]:{},e));if(!f){for(l in r)Js.call(o,e,l,"get",r[l]);n=function(p){return io(p,o)||(s?e.p:e)}}}return Ur(t,n)},To=function(e,r,t){var i=e.labels,n=Zt,s,o,l;for(s in i)o=i[s]-r,o<0==!!t&&o&&n>(o=Math.abs(o))&&(l=s,n=o);return l},Xt=function(e,r,t){var i=e.vars,n=i[r],s=Se,o=e._ctx,l,u,f;if(n)return l=i[r+"Params"],u=i.callbackScope||e,t&&Ir.length&&Un(),o&&(Se=o),f=l?n.apply(u,l):n.call(u),Se=s,f},Bi=function(e){return Yr(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ot),e.progress()<1&&Xt(e,"onInterrupt"),e},yi,Oa=[],Ea=function(e){if(e)if(e=!e.name&&e.default||e,Ws()||e.headless){var r=e.name,t=Ae(e),i=r&&!t&&e.init?function(){this._props=[]}:e,n={init:ln,render:io,add:Js,kill:yu,modifier:mu,rawVars:0},s={targetTest:0,get:0,getSetter:ro,aliases:{},register:0};if(Ri(),e!==i){if(Nt[r])return;Wt(i,Wt(Hn(e,n),s)),Mi(i.prototype,Mi(n,Hn(e,s))),Nt[i.prop=r]=i,e.targetTest&&(zn.push(i),Ks[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}ha(r,i),e.register&&e.register(Dt,i,Et)}else Oa.push(e)},ye=255,Yi={aqua:[0,ye,ye],lime:[0,ye,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ye],navy:[0,0,128],white:[ye,ye,ye],olive:[128,128,0],yellow:[ye,ye,0],orange:[ye,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ye,0,0],pink:[ye,192,203],cyan:[0,ye,ye],transparent:[ye,ye,ye,0]},as=function(e,r,t){return e+=e<0?1:e>1?-1:0,(e*6<1?r+(t-r)*e*6:e<.5?t:e*3<2?r+(t-r)*(2/3-e)*6:r)*ye+.5|0},Ra=function(e,r,t){var i=e?Cr(e)?[e>>16,e>>8&ye,e&ye]:0:Yi.black,n,s,o,l,u,f,d,_,c,p;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Yi[e])i=Yi[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),s=e.charAt(2),o=e.charAt(3),e="#"+n+n+s+s+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&ye,i&ye,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&ye,e&ye]}else if(e.substr(0,3)==="hsl"){if(i=p=e.match(yo),!r)l=+i[0]%360/360,u=+i[1]/100,f=+i[2]/100,s=f<=.5?f*(u+1):f+u-f*u,n=f*2-s,i.length>3&&(i[3]*=1),i[0]=as(l+1/3,n,s),i[1]=as(l,n,s),i[2]=as(l-1/3,n,s);else if(~e.indexOf("="))return i=e.match(la),t&&i.length<4&&(i[3]=1),i}else i=e.match(yo)||Yi.transparent;i=i.map(Number)}return r&&!p&&(n=i[0]/ye,s=i[1]/ye,o=i[2]/ye,d=Math.max(n,s,o),_=Math.min(n,s,o),f=(d+_)/2,d===_?l=u=0:(c=d-_,u=f>.5?c/(2-d-_):c/(d+_),l=d===n?(s-o)/c+(s<o?6:0):d===s?(o-n)/c+2:(n-s)/c+4,l*=60),i[0]=~~(l+.5),i[1]=~~(u*100+.5),i[2]=~~(f*100+.5)),t&&i.length<4&&(i[3]=1),i},Da=function(e){var r=[],t=[],i=-1;return e.split(Nr).forEach(function(n){var s=n.match(mi)||[];r.push.apply(r,s),t.push(i+=s.length+1)}),r.c=t,r},So=function(e,r,t){var i="",n=(e+i).match(Nr),s=r?"hsla(":"rgba(",o=0,l,u,f,d;if(!n)return e;if(n=n.map(function(_){return(_=Ra(_,r,1))&&s+(r?_[0]+","+_[1]+"%,"+_[2]+"%,"+_[3]:_.join(","))+")"}),t&&(f=Da(e),l=t.c,l.join(i)!==f.c.join(i)))for(u=e.replace(Nr,"1").split(mi),d=u.length-1;o<d;o++)i+=u[o]+(~l.indexOf(o)?n.shift()||s+"0,0,0,0)":(f.length?f:n.length?n:t).shift());if(!u)for(u=e.split(Nr),d=u.length-1;o<d;o++)i+=u[o]+n[o];return i+u[d]},Nr=function(){var a="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Yi)a+="|"+e+"\\b";return new RegExp(a+")","gi")}(),iu=/hsl[a]?\(/,Aa=function(e){var r=e.join(" "),t;if(Nr.lastIndex=0,Nr.test(r))return t=iu.test(r),e[1]=So(e[1],t),e[0]=So(e[0],t,Da(e[1])),!0},fn,Yt=function(){var a=Date.now,e=500,r=33,t=a(),i=t,n=1e3/240,s=n,o=[],l,u,f,d,_,c,p=function h(y){var C=a()-i,T=y===!0,P,x,S,O;if((C>e||C<0)&&(t+=C-r),i+=C,S=i-t,P=S-s,(P>0||T)&&(O=++d.frame,_=S-d.time*1e3,d.time=S=S/1e3,s+=P+(P>=n?4:n-P),x=1),T||(l=u(h)),x)for(c=0;c<o.length;c++)o[c](S,_,O,y)};return d={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(y){return _/(1e3/(y||60))},wake:function(){fa&&(!bs&&Ws()&&(fr=bs=window,qs=fr.document||{},Ht.gsap=Dt,(fr.gsapVersions||(fr.gsapVersions=[])).push(Dt.version),ca(Vn||fr.GreenSockGlobals||!fr.gsap&&fr||{}),Oa.forEach(Ea)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&d.sleep(),u=f||function(y){return setTimeout(y,s-d.time*1e3+1|0)},fn=1,p(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(l),fn=0,u=ln},lagSmoothing:function(y,C){e=y||1/0,r=Math.min(C||33,e)},fps:function(y){n=1e3/(y||240),s=d.time*1e3+n},add:function(y,C,T){var P=C?function(x,S,O,g){y(x,S,O,g),d.remove(P)}:y;return d.remove(y),o[T?"unshift":"push"](P),Ri(),P},remove:function(y,C){~(C=o.indexOf(y))&&o.splice(C,1)&&c>=C&&c--},_listeners:o},d}(),Ri=function(){return!fn&&Yt.wake()},le={},nu=/^[\d.\-M][\d.\-,\s]/,su=/["']/g,ou=function(e){for(var r={},t=e.substr(1,e.length-3).split(":"),i=t[0],n=1,s=t.length,o,l,u;n<s;n++)l=t[n],o=n!==s-1?l.lastIndexOf(","):l.length,u=l.substr(0,o),r[i]=isNaN(u)?u.replace(su,"").trim():+u,i=l.substr(o+1).trim();return r},au=function(e){var r=e.indexOf("(")+1,t=e.indexOf(")"),i=e.indexOf("(",r);return e.substring(r,~i&&i<t?e.indexOf(")",t+1):t)},lu=function(e){var r=(e+"").split("("),t=le[r[0]];return t&&r.length>1&&t.config?t.config.apply(null,~e.indexOf("{")?[ou(r[1])]:au(e).split(",").map(ga)):le._CE&&nu.test(e)?le._CE("",e):t},Fa=function(e){return function(r){return 1-e(1-r)}},za=function a(e,r){for(var t=e._first,i;t;)t instanceof St?a(t,r):t.vars.yoyoEase&&(!t._yoyo||!t._repeat)&&t._yoyo!==r&&(t.timeline?a(t.timeline,r):(i=t._ease,t._ease=t._yEase,t._yEase=i,t._yoyo=r)),t=t._next},ri=function(e,r){return e&&(Ae(e)?e:le[e]||lu(e))||r},ci=function(e,r,t,i){t===void 0&&(t=function(l){return 1-r(1-l)}),i===void 0&&(i=function(l){return l<.5?r(l*2)/2:1-r((1-l)*2)/2});var n={easeIn:r,easeOut:t,easeInOut:i},s;return Ot(e,function(o){le[o]=Ht[o]=n,le[s=o.toLowerCase()]=t;for(var l in n)le[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=le[o+"."+l]=n[l]}),n},La=function(e){return function(r){return r<.5?(1-e(1-r*2))/2:.5+e((r-.5)*2)/2}},ls=function a(e,r,t){var i=r>=1?r:1,n=(t||(e?.3:.45))/(r<1?r:1),s=n/xs*(Math.asin(1/i)||0),o=function(f){return f===1?1:i*Math.pow(2,-10*f)*Al((f-s)*n)+1},l=e==="out"?o:e==="in"?function(u){return 1-o(1-u)}:La(o);return n=xs/n,l.config=function(u,f){return a(e,u,f)},l},us=function a(e,r){r===void 0&&(r=1.70158);var t=function(s){return s?--s*s*((r+1)*s+r)+1:0},i=e==="out"?t:e==="in"?function(n){return 1-t(1-n)}:La(t);return i.config=function(n){return a(e,n)},i};Ot("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,e){var r=e<5?e+1:e;ci(a+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(t*2,r)/2:1-Math.pow((1-t)*2,r)/2})});le.Linear.easeNone=le.none=le.Linear.easeIn;ci("Elastic",ls("in"),ls("out"),ls());(function(a,e){var r=1/e,t=2*r,i=2.5*r,n=function(o){return o<r?a*o*o:o<t?a*Math.pow(o-1.5/e,2)+.75:o<i?a*(o-=2.25/e)*o+.9375:a*Math.pow(o-2.625/e,2)+.984375};ci("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75);ci("Expo",function(a){return Math.pow(2,10*(a-1))*a+a*a*a*a*a*a*(1-a)});ci("Circ",function(a){return-(oa(1-a*a)-1)});ci("Sine",function(a){return a===1?1:-Dl(a*El)+1});ci("Back",us("in"),us("out"),us());le.SteppedEase=le.steps=Ht.SteppedEase={config:function(e,r){e===void 0&&(e=1);var t=1/e,i=e+(r?0:1),n=r?1:0,s=1-ve;return function(o){return((i*gn(0,s,o)|0)+n)*t}}};Pi.ease=le["quad.out"];Ot("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(a){return Qs+=a+","+a+"Params,"});var Ia=function(e,r){this.id=Rl++,e._gsap=this,this.target=e,this.harness=r,this.get=r?r.get:_a,this.set=r?r.getSetter:ro},cn=function(){function a(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,Ei(this,+r.duration,1,1),this.data=r.data,Se&&(this._ctx=Se,Se.data.push(this)),fn||Yt.wake()}var e=a.prototype;return e.delay=function(t){return t||t===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Ei(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,i){if(Ri(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(rs(this,t),!n._dp||n.parent||va(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&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&dr(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===ve||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),pa(this,t,i)),this},e.time=function(t,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+bo(this))%(this._dur+this._rDelay)||(t?this._dur:0),i):this._time},e.totalProgress=function(t,i){return arguments.length?this.totalTime(this.totalDuration()*t,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-t:t)+bo(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,i):this._repeat?Oi(this._tTime,n)+1:1},e.timeScale=function(t,i){if(!arguments.length)return this._rts===-ve?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?Wn(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-ve?0:this._rts,this.totalTime(gn(-Math.abs(this._delay),this.totalDuration(),n),i!==!1),ts(this),Vl(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ri(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==ve&&(this._tTime-=ve)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=Me(t);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&dr(i,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Mt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var i=this.parent||this._dp;return i?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Wn(i.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){t===void 0&&(t=Bl);var i=ot;return ot=t,js(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),this.data!=="nested"&&t.kill!==!1&&this.kill(),ot=i,this},e.globalTime=function(t){for(var i=this,n=arguments.length?t:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,wo(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var i=this._time;return this._rDelay=t,wo(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,i){return this.totalTime(Gt(this,t),Mt(i))},e.restart=function(t,i){return this.play().totalTime(t?-this._delay:0,Mt(i)),this._dur||(this._zTime=-ve),this},e.play=function(t,i){return t!=null&&this.seek(t,i),this.reversed(!1).paused(!1)},e.reverse=function(t,i){return t!=null&&this.seek(t||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(t,i){return t!=null&&this.seek(t,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-ve:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-ve,this},e.isActive=function(){var t=this.parent||this._dp,i=this._start,n;return!!(!t||this._ts&&this._initted&&t.isActive()&&(n=t.rawTime(!0))>=i&&n<this.endTime(!0)-ve)},e.eventCallback=function(t,i,n){var s=this.vars;return arguments.length>1?(i?(s[t]=i,n&&(s[t+"Params"]=n),t==="onUpdate"&&(this._onUpdate=i)):delete s[t],this):s[t]},e.then=function(t){var i=this,n=i._prom;return new Promise(function(s){var o=Ae(t)?t:ma,l=function(){var f=i.then;i.then=null,n&&n(),Ae(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=f),s(o),i.then=f};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?l():i._prom=l})},e.kill=function(){Bi(this)},a}();Wt(cn.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:-ve,_prom:0,_ps:!1,_rts:1});var St=function(a){sa(e,a);function e(t,i){var n;return t===void 0&&(t={}),n=a.call(this,t)||this,n.labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=Mt(t.sortChildren),Oe&&dr(t.parent||Oe,xr(n),i),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&xa(xr(n),t.scrollTrigger),n}var r=e.prototype;return r.to=function(i,n,s){return Gi(0,arguments,this),this},r.from=function(i,n,s){return Gi(1,arguments,this),this},r.fromTo=function(i,n,s,o){return Gi(2,arguments,this),this},r.set=function(i,n,s){return n.duration=0,n.parent=this,qi(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new $e(i,n,Gt(this,s),1),this},r.call=function(i,n,s){return dr(this,$e.delayedCall(0,i,n),s)},r.staggerTo=function(i,n,s,o,l,u,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=u,s.onCompleteParams=f,s.parent=this,new $e(i,s,Gt(this,l)),this},r.staggerFrom=function(i,n,s,o,l,u,f){return s.runBackwards=1,qi(s).immediateRender=Mt(s.immediateRender),this.staggerTo(i,n,s,o,l,u,f)},r.staggerFromTo=function(i,n,s,o,l,u,f,d){return o.startAt=s,qi(o).immediateRender=Mt(o.immediateRender),this.staggerTo(i,n,o,l,u,f,d)},r.render=function(i,n,s){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,f=i<=0?0:Me(i),d=this._zTime<0!=i<0&&(this._initted||!u),_,c,p,h,y,C,T,P,x,S,O,g;if(this!==Oe&&f>l&&i>=0&&(f=l),f!==this._tTime||s||d){if(o!==this._time&&u&&(f+=this._time-o,i+=this._time-o),_=f,x=this._start,P=this._ts,C=!P,d&&(u||(o=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(O=this._yoyo,y=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(y*100+i,n,s);if(_=Me(f%y),f===l?(h=this._repeat,_=u):(S=Me(f/y),h=~~S,h&&h===S&&(_=u,h--),_>u&&(_=u)),S=Oi(this._tTime,y),!o&&this._tTime&&S!==h&&this._tTime-S*y-this._dur<=0&&(S=h),O&&h&1&&(_=u-_,g=1),h!==S&&!this._lock){var k=O&&S&1,w=k===(O&&h&1);if(h<S&&(k=!k),o=k?0:f%u?u:f,this._lock=1,this.render(o||(g?0:Me(h*y)),n,!u)._lock=0,this._tTime=f,!n&&this.parent&&Xt(this,"onRepeat"),this.vars.repeatRefresh&&!g&&(this.invalidate()._lock=1,S=h),o&&o!==this._time||C!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,w&&(this._lock=2,o=k?u:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!g&&this.invalidate()),this._lock=0,!this._ts&&!C)return this;za(this,g)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(T=ql(this,Me(o),Me(_)),T&&(f-=_-(_=T._start))),this._tTime=f,this._time=_,this._act=!P,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&f&&u&&!n&&!S&&(Xt(this,"onStart"),this._tTime!==f))return this;if(_>=o&&i>=0)for(c=this._first;c;){if(p=c._next,(c._act||_>=c._start)&&c._ts&&T!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(_-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(_-c._start)*c._ts,n,s),_!==this._time||!this._ts&&!C){T=0,p&&(f+=this._zTime=-ve);break}}c=p}else{c=this._last;for(var M=i<0?i:_;c;){if(p=c._prev,(c._act||M<=c._end)&&c._ts&&T!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(M-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(M-c._start)*c._ts,n,s||ot&&js(c)),_!==this._time||!this._ts&&!C){T=0,p&&(f+=this._zTime=M?-ve:ve);break}}c=p}}if(T&&!n&&(this.pause(),T.render(_>=o?0:-ve)._zTime=_>=o?1:-1,this._ts))return this._start=x,ts(this),this.render(i,n,s);this._onUpdate&&!n&&Xt(this,"onUpdate",!0),(f===l&&this._tTime>=this.totalDuration()||!f&&o)&&(x===this._start||Math.abs(P)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(f===l&&this._ts>0||!f&&this._ts<0)&&Yr(this,1),!n&&!(i<0&&!o)&&(f||o||!l)&&(Xt(this,f===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,n){var s=this;if(Cr(n)||(n=Gt(this,n,i)),!(i instanceof cn)){if(gt(i))return i.forEach(function(o){return s.add(o,n)}),this;if(tt(i))return this.addLabel(i,n);if(Ae(i))i=$e.delayedCall(0,i);else return this}return this!==i?dr(this,i,n):this},r.getChildren=function(i,n,s,o){i===void 0&&(i=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-Zt);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof $e?n&&l.push(u):(s&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,n,s)))),u=u._next;return l},r.getById=function(i){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===i)return n[s]},r.remove=function(i){return tt(i)?this.removeLabel(i):Ae(i)?this.killTweensOf(i):(i.parent===this&&es(this,i),i===this._recent&&(this._recent=this._last),ti(this))},r.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Me(Yt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),a.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},r.addLabel=function(i,n){return this.labels[i]=Gt(this,n),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,n,s){var o=$e.delayedCall(0,n||ln,s);return o.data="isPause",this._hasPause=1,dr(this,o,Gt(this,i))},r.removePause=function(i){var n=this._first;for(i=Gt(this,i);n;)n._start===i&&n.data==="isPause"&&Yr(n),n=n._next},r.killTweensOf=function(i,n,s){for(var o=this.getTweensOf(i,s),l=o.length;l--;)Dr!==o[l]&&o[l].kill(i,n);return this},r.getTweensOf=function(i,n){for(var s=[],o=jt(i),l=this._first,u=Cr(n),f;l;)l instanceof $e?Yl(l._targets,o)&&(u?(!Dr||l._initted&&l._ts)&&l.globalTime(0)<=n&&l.globalTime(l.totalDuration())>n:!n||l.isActive())&&s.push(l):(f=l.getTweensOf(o,n)).length&&s.push.apply(s,f),l=l._next;return s},r.tweenTo=function(i,n){n=n||{};var s=this,o=Gt(s,i),l=n,u=l.startAt,f=l.onStart,d=l.onStartParams,_=l.immediateRender,c,p=$e.to(s,Wt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale())||ve,onStart:function(){if(s.pause(),!c){var y=n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale());p._dur!==y&&Ei(p,y,0,1).render(p._time,!0,!0),c=1}f&&f.apply(p,d||[])}},n));return _?p.render(0):p},r.tweenFromTo=function(i,n,s){return this.tweenTo(n,Wt({startAt:{time:Gt(this,i)}},s))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),To(this,Gt(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),To(this,Gt(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+ve)},r.shiftChildren=function(i,n,s){s===void 0&&(s=0);var o=this._first,l=this.labels,u;for(i=Me(i);o;)o._start>=s&&(o._start+=i,o._end+=i),o=o._next;if(n)for(u in l)l[u]>=s&&(l[u]+=i);return ti(this)},r.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return a.prototype.invalidate.call(this,i)},r.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={}),ti(this)},r.totalDuration=function(i){var n=0,s=this,o=s._last,l=Zt,u,f,d;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(d=s.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>l&&s._sort&&o._ts&&!s._lock?(s._lock=1,dr(s,o,f-o._delay,1)._lock=0):l=f,f<0&&o._ts&&(n-=f,(!d&&!s._dp||d&&d.smoothChildTiming)&&(s._start+=Me(f/s._ts),s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),l=0),o._end>n&&o._ts&&(n=o._end),o=u;Ei(s,s===Oe&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(Oe._ts&&(pa(Oe,Wn(i,Oe)),da=Yt.frame),Yt.frame>=vo){vo+=Ut.autoSleep||120;var n=Oe._first;if((!n||!n._ts)&&Ut.autoSleep&&Yt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||Yt.sleep()}}},e}(cn);Wt(St.prototype,{_lock:0,_hasPause:0,_forcing:0});var uu=function(e,r,t,i,n,s,o){var l=new Et(this._pt,e,r,0,1,Va,null,n),u=0,f=0,d,_,c,p,h,y,C,T;for(l.b=t,l.e=i,t+="",i+="",(C=~i.indexOf("random("))&&(i=un(i)),s&&(T=[t,i],s(T,e,r),t=T[0],i=T[1]),_=t.match(ss)||[];d=ss.exec(i);)p=d[0],h=i.substring(u,d.index),c?c=(c+1)%5:h.substr(-5)==="rgba("&&(c=1),p!==_[f++]&&(y=parseFloat(_[f-1])||0,l._pt={_next:l._pt,p:h||f===1?h:",",s:y,c:p.charAt(1)==="="?bi(y,p)-y:parseFloat(p)-y,m:c&&c<4?Math.round:0},u=ss.lastIndex);return l.c=u<i.length?i.substring(u,i.length):"",l.fp=o,(ua.test(i)||C)&&(l.e=0),this._pt=l,l},Js=function(e,r,t,i,n,s,o,l,u,f){Ae(i)&&(i=i(n||0,e,s));var d=e[r],_=t!=="get"?t:Ae(d)?u?e[r.indexOf("set")||!Ae(e["get"+r.substr(3)])?r:"get"+r.substr(3)](u):e[r]():d,c=Ae(d)?u?_u:$a:to,p;if(tt(i)&&(~i.indexOf("random(")&&(i=un(i)),i.charAt(1)==="="&&(p=bi(_,i)+(_t(_)||0),(p||p===0)&&(i=p))),!f||_!==i||Ms)return!isNaN(_*i)&&i!==""?(p=new Et(this._pt,e,r,+_||0,i-(_||0),typeof d=="boolean"?gu:Xa,0,c),u&&(p.fp=u),o&&p.modifier(o,this,e),this._pt=p):(!d&&!(r in e)&&Gs(r,i),uu.call(this,e,r,_,i,c,l||Ut.stringFilter,u))},fu=function(e,r,t,i,n){if(Ae(e)&&(e=Ki(e,n,r,t,i)),!mr(e)||e.style&&e.nodeType||gt(e)||aa(e))return tt(e)?Ki(e,n,r,t,i):e;var s={},o;for(o in e)s[o]=Ki(e[o],n,r,t,i);return s},Na=function(e,r,t,i,n,s){var o,l,u,f;if(Nt[e]&&(o=new Nt[e]).init(n,o.rawVars?r[e]:fu(r[e],i,n,s,t),t,i,s)!==!1&&(t._pt=l=new Et(t._pt,n,e,0,1,o.render,o,0,o.priority),t!==yi))for(u=t._ptLookup[t._targets.indexOf(n)],f=o._props.length;f--;)u[o._props[f]]=l;return o},Dr,Ms,eo=function a(e,r,t){var i=e.vars,n=i.ease,s=i.startAt,o=i.immediateRender,l=i.lazy,u=i.onUpdate,f=i.runBackwards,d=i.yoyoEase,_=i.keyframes,c=i.autoRevert,p=e._dur,h=e._startAt,y=e._targets,C=e.parent,T=C&&C.data==="nested"?C.vars.targets:y,P=e._overwrite==="auto"&&!Us,x=e.timeline,S,O,g,k,w,M,N,E,L,I,W,Q,Y;if(x&&(!_||!n)&&(n="none"),e._ease=ri(n,Pi.ease),e._yEase=d?Fa(ri(d===!0?n:d,Pi.ease)):0,d&&e._yoyo&&!e._repeat&&(d=e._yEase,e._yEase=e._ease,e._ease=d),e._from=!x&&!!i.runBackwards,!x||_&&!i.stagger){if(E=y[0]?ei(y[0]).harness:0,Q=E&&i[E.prop],S=Hn(i,Ks),h&&(h._zTime<0&&h.progress(1),r<0&&f&&o&&!c?h.render(-1,!0):h.revert(f&&p?Fn:Nl),h._lazy=0),s){if(Yr(e._startAt=$e.set(y,Wt({data:"isStart",overwrite:!1,parent:C,immediateRender:!0,lazy:!h&&Mt(l),startAt:null,delay:0,onUpdate:u&&function(){return Xt(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(ot||!o&&!c)&&e._startAt.revert(Fn),o&&p&&r<=0&&t<=0){r&&(e._zTime=r);return}}else if(f&&p&&!h){if(r&&(o=!1),g=Wt({overwrite:!1,data:"isFromStart",lazy:o&&!h&&Mt(l),immediateRender:o,stagger:0,parent:C},S),Q&&(g[E.prop]=Q),Yr(e._startAt=$e.set(y,g)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(ot?e._startAt.revert(Fn):e._startAt.render(-1,!0)),e._zTime=r,!o)a(e._startAt,ve,ve);else if(!r)return}for(e._pt=e._ptCache=0,l=p&&Mt(l)||l&&!p,O=0;O<y.length;O++){if(w=y[O],N=w._gsap||Zs(y)[O]._gsap,e._ptLookup[O]=I={},ws[N.id]&&Ir.length&&Un(),W=T===y?O:T.indexOf(w),E&&(L=new E).init(w,Q||S,e,W,T)!==!1&&(e._pt=k=new Et(e._pt,w,L.name,0,1,L.render,L,0,L.priority),L._props.forEach(function(se){I[se]=k}),L.priority&&(M=1)),!E||Q)for(g in S)Nt[g]&&(L=Na(g,S,e,W,w,T))?L.priority&&(M=1):I[g]=k=Js.call(e,w,g,"get",S[g],W,T,0,i.stringFilter);e._op&&e._op[O]&&e.kill(w,e._op[O]),P&&e._pt&&(Dr=e,Oe.killTweensOf(w,I,e.globalTime(r)),Y=!e.parent,Dr=0),e._pt&&l&&(ws[N.id]=1)}M&&Ua(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!Y,_&&r<=0&&x.render(Zt,!0,!0)},cu=function(e,r,t,i,n,s,o,l){var u=(e._pt&&e._ptCache||(e._ptCache={}))[r],f,d,_,c;if(!u)for(u=e._ptCache[r]=[],_=e._ptLookup,c=e._targets.length;c--;){if(f=_[c][r],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==r&&f.fp!==r;)f=f._next;if(!f)return Ms=1,e.vars[r]="+=0",eo(e,o),Ms=0,l?an(r+" not eligible for reset"):1;u.push(f)}for(c=u.length;c--;)d=u[c],f=d._pt||d,f.s=(i||i===0)&&!n?i:f.s+(i||0)+s*f.c,f.c=t-f.s,d.e&&(d.e=Le(t)+_t(d.e)),d.b&&(d.b=f.s+_t(d.b))},hu=function(e,r){var t=e[0]?ei(e[0]).harness:0,i=t&&t.aliases,n,s,o,l;if(!i)return r;n=Mi({},r);for(s in i)if(s in n)for(l=i[s].split(","),o=l.length;o--;)n[l[o]]=n[s];return n},du=function(e,r,t,i){var n=r.ease||i||"power1.inOut",s,o;if(gt(r))o=t[e]||(t[e]=[]),r.forEach(function(l,u){return o.push({t:u/(r.length-1)*100,v:l,e:n})});else for(s in r)o=t[s]||(t[s]=[]),s==="ease"||o.push({t:parseFloat(e),v:r[s],e:n})},Ki=function(e,r,t,i,n){return Ae(e)?e.call(r,t,i,n):tt(e)&&~e.indexOf("random(")?un(e):e},Ba=Qs+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Ya={};Ot(Ba+",id,stagger,delay,duration,paused,scrollTrigger",function(a){return Ya[a]=1});var $e=function(a){sa(e,a);function e(t,i,n,s){var o;typeof i=="number"&&(n.duration=i,i=n,n=null),o=a.call(this,s?i:qi(i))||this;var l=o.vars,u=l.duration,f=l.delay,d=l.immediateRender,_=l.stagger,c=l.overwrite,p=l.keyframes,h=l.defaults,y=l.scrollTrigger,C=l.yoyoEase,T=i.parent||Oe,P=(gt(t)||aa(t)?Cr(t[0]):"length"in i)?[t]:jt(t),x,S,O,g,k,w,M,N;if(o._targets=P.length?Zs(P):an("GSAP target "+t+" not found. https://gsap.com",!Ut.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=c,p||_||vn(u)||vn(f)){if(i=o.vars,x=o.timeline=new St({data:"nested",defaults:h||{},targets:T&&T.data==="nested"?T.vars.targets:P}),x.kill(),x.parent=x._dp=xr(o),x._start=0,_||vn(u)||vn(f)){if(g=P.length,M=_&&Sa(_),mr(_))for(k in _)~Ba.indexOf(k)&&(N||(N={}),N[k]=_[k]);for(S=0;S<g;S++)O=Hn(i,Ya),O.stagger=0,C&&(O.yoyoEase=C),N&&Mi(O,N),w=P[S],O.duration=+Ki(u,xr(o),S,w,P),O.delay=(+Ki(f,xr(o),S,w,P)||0)-o._delay,!_&&g===1&&O.delay&&(o._delay=f=O.delay,o._start+=f,O.delay=0),x.to(w,O,M?M(S,w,P):0),x._ease=le.none;x.duration()?u=f=0:o.timeline=0}else if(p){qi(Wt(x.vars.defaults,{ease:"none"})),x._ease=ri(p.ease||i.ease||"none");var E=0,L,I,W;if(gt(p))p.forEach(function(Q){return x.to(P,Q,">")}),x.duration();else{O={};for(k in p)k==="ease"||k==="easeEach"||du(k,p[k],O,p.easeEach);for(k in O)for(L=O[k].sort(function(Q,Y){return Q.t-Y.t}),E=0,S=0;S<L.length;S++)I=L[S],W={ease:I.e,duration:(I.t-(S?L[S-1].t:0))/100*u},W[k]=I.v,x.to(P,W,E),E+=W.duration;x.duration()<u&&x.to({},{duration:u-x.duration()})}}u||o.duration(u=x.duration())}else o.timeline=0;return c===!0&&!Us&&(Dr=xr(o),Oe.killTweensOf(P),Dr=0),dr(T,xr(o),n),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(d||!u&&!p&&o._start===Me(T._time)&&Mt(d)&&Ul(xr(o))&&T.data!=="nested")&&(o._tTime=-ve,o.render(Math.max(0,-f)||0)),y&&xa(xr(o),y),o}var r=e.prototype;return r.render=function(i,n,s){var o=this._time,l=this._tDur,u=this._dur,f=i<0,d=i>l-ve&&!f?l:i<ve?0:i,_,c,p,h,y,C,T,P,x;if(!u)Wl(this,i,n,s);else if(d!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(_=d,P=this.timeline,this._repeat){if(h=u+this._rDelay,this._repeat<-1&&f)return this.totalTime(h*100+i,n,s);if(_=Me(d%h),d===l?(p=this._repeat,_=u):(y=Me(d/h),p=~~y,p&&p===y?(_=u,p--):_>u&&(_=u)),C=this._yoyo&&p&1,C&&(x=this._yEase,_=u-_),y=Oi(this._tTime,h),_===o&&!s&&this._initted&&p===y)return this._tTime=d,this;p!==y&&(P&&this._yEase&&za(P,C),this.vars.repeatRefresh&&!C&&!this._lock&&_!==h&&this._initted&&(this._lock=s=1,this.render(Me(h*p),!0).invalidate()._lock=0))}if(!this._initted){if(ba(this,f?i:_,s,n,d))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&p!==y))return this;if(u!==this._dur)return this.render(i,n,s)}if(this._tTime=d,this._time=_,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=T=(x||this._ease)(_/u),this._from&&(this.ratio=T=1-T),!o&&d&&!n&&!y&&(Xt(this,"onStart"),this._tTime!==d))return this;for(c=this._pt;c;)c.r(T,c.d),c=c._next;P&&P.render(i<0?i:P._dur*P._ease(_/this._dur),n,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(f&&Ts(this,i,n,s),Xt(this,"onUpdate")),this._repeat&&p!==y&&this.vars.onRepeat&&!n&&this.parent&&Xt(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(f&&!this._onUpdate&&Ts(this,i,!0,!0),(i||!u)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&Yr(this,1),!n&&!(f&&!o)&&(d||o||C)&&(Xt(this,d===l?"onComplete":"onReverseComplete",!0),this._prom&&!(d<l&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.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),a.prototype.invalidate.call(this,i)},r.resetTo=function(i,n,s,o,l){fn||Yt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||eo(this,u),f=this._ease(u/this._dur),cu(this,i,n,s,o,f,u,l)?this.resetTo(i,n,s,o,1):(rs(this,0),this.parent||ya(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?Bi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!ot),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,Dr&&Dr.vars.overwrite!==!0)._first||Bi(this),this.parent&&s!==this.timeline.totalDuration()&&Ei(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,l=i?jt(i):o,u=this._ptLookup,f=this._pt,d,_,c,p,h,y,C;if((!n||n==="all")&&Xl(o,l))return n==="all"&&(this._pt=0),Bi(this);for(d=this._op=this._op||[],n!=="all"&&(tt(n)&&(h={},Ot(n,function(T){return h[T]=1}),n=h),n=hu(o,n)),C=o.length;C--;)if(~l.indexOf(o[C])){_=u[C],n==="all"?(d[C]=n,p=_,c={}):(c=d[C]=d[C]||{},p=n);for(h in p)y=_&&_[h],y&&((!("kill"in y.d)||y.d.kill(h)===!0)&&es(this,y,"_pt"),delete _[h]),c!=="all"&&(c[h]=1)}return this._initted&&!this._pt&&f&&Bi(this),this},e.to=function(i,n){return new e(i,n,arguments[2])},e.from=function(i,n){return Gi(1,arguments)},e.delayedCall=function(i,n,s,o){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},e.fromTo=function(i,n,s){return Gi(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}(cn);Wt($e.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Ot("staggerTo,staggerFrom,staggerFromTo",function(a){$e[a]=function(){var e=new St,r=Cs.call(arguments,0);return r.splice(a==="staggerFromTo"?5:4,0,0),e[a].apply(e,r)}});var to=function(e,r,t){return e[r]=t},$a=function(e,r,t){return e[r](t)},_u=function(e,r,t,i){return e[r](i.fp,t)},pu=function(e,r,t){return e.setAttribute(r,t)},ro=function(e,r){return Ae(e[r])?$a:Hs(e[r])&&e.setAttribute?pu:to},Xa=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e6)/1e6,r)},gu=function(e,r){return r.set(r.t,r.p,!!(r.s+r.c*e),r)},Va=function(e,r){var t=r._pt,i="";if(!e&&r.b)i=r.b;else if(e===1&&r.e)i=r.e;else{for(;t;)i=t.p+(t.m?t.m(t.s+t.c*e):Math.round((t.s+t.c*e)*1e4)/1e4)+i,t=t._next;i+=r.c}r.set(r.t,r.p,i,r)},io=function(e,r){for(var t=r._pt;t;)t.r(e,t.d),t=t._next},mu=function(e,r,t,i){for(var n=this._pt,s;n;)s=n._next,n.p===i&&n.modifier(e,r,t),n=s},yu=function(e){for(var r=this._pt,t,i;r;)i=r._next,r.p===e&&!r.op||r.op===e?es(this,r,"_pt"):r.dep||(t=1),r=i;return!t},vu=function(e,r,t,i){i.mSet(e,r,i.m.call(i.tween,t,i.mt),i)},Ua=function(e){for(var r=e._pt,t,i,n,s;r;){for(t=r._next,i=n;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:s)?r._prev._next=r:n=r,(r._next=i)?i._prev=r:s=r,r=t}e._pt=n},Et=function(){function a(r,t,i,n,s,o,l,u,f){this.t=t,this.s=n,this.c=s,this.p=i,this.r=o||Xa,this.d=l||this,this.set=u||to,this.pr=f||0,this._next=r,r&&(r._prev=this)}var e=a.prototype;return e.modifier=function(t,i,n){this.mSet=this.mSet||this.set,this.set=vu,this.m=t,this.mt=n,this.tween=i},a}();Ot(Qs+"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(a){return Ks[a]=1});Ht.TweenMax=Ht.TweenLite=$e;Ht.TimelineLite=Ht.TimelineMax=St;Oe=new St({sortChildren:!1,defaults:Pi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ut.stringFilter=Aa;var ii=[],Ln={},xu=[],Co=0,bu=0,fs=function(e){return(Ln[e]||xu).map(function(r){return r()})},Os=function(){var e=Date.now(),r=[];e-Co>2&&(fs("matchMediaInit"),ii.forEach(function(t){var i=t.queries,n=t.conditions,s,o,l,u;for(o in i)s=fr.matchMedia(i[o]).matches,s&&(l=1),s!==n[o]&&(n[o]=s,u=1);u&&(t.revert(),l&&r.push(t))}),fs("matchMediaRevert"),r.forEach(function(t){return t.onMatch(t,function(i){return t.add(null,i)})}),Co=e,fs("matchMedia"))},Ha=function(){function a(r,t){this.selector=t&&ks(t),this.data=[],this._r=[],this.isReverted=!1,this.id=bu++,r&&this.add(r)}var e=a.prototype;return e.add=function(t,i,n){Ae(t)&&(n=i,i=t,t=Ae);var s=this,o=function(){var u=Se,f=s.selector,d;return u&&u!==s&&u.data.push(s),n&&(s.selector=ks(n)),Se=s,d=i.apply(s,arguments),Ae(d)&&s._r.push(d),Se=u,s.selector=f,s.isReverted=!1,d};return s.last=o,t===Ae?o(s,function(l){return s.add(null,l)}):t?s[t]=o:o},e.ignore=function(t){var i=Se;Se=null,t(this),Se=i},e.getTweens=function(){var t=[];return this.data.forEach(function(i){return i instanceof a?t.push.apply(t,i.getTweens()):i instanceof $e&&!(i.parent&&i.parent.data==="nested")&&t.push(i)}),t},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,i){var n=this;if(t?function(){for(var o=n.getTweens(),l=n.data.length,u;l--;)u=n.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,d){return d.g-f.g||-1/0}).forEach(function(f){return f.t.revert(t)}),l=n.data.length;l--;)u=n.data[l],u instanceof St?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof $e)&&u.revert&&u.revert(t);n._r.forEach(function(f){return f(t,n)}),n.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var s=ii.length;s--;)ii[s].id===this.id&&ii.splice(s,1)},e.revert=function(t){this.kill(t||{})},a}(),wu=function(){function a(r){this.contexts=[],this.scope=r,Se&&Se.data.push(this)}var e=a.prototype;return e.add=function(t,i,n){mr(t)||(t={matches:t});var s=new Ha(0,n||this.scope),o=s.conditions={},l,u,f;Se&&!s.selector&&(s.selector=Se.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=t;for(u in t)u==="all"?f=1:(l=fr.matchMedia(t[u]),l&&(ii.indexOf(s)<0&&ii.push(s),(o[u]=l.matches)&&(f=1),l.addListener?l.addListener(Os):l.addEventListener("change",Os)));return f&&i(s,function(d){return s.add(null,d)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(i){return i.kill(t,!0)})},a}(),qn={registerPlugin:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];r.forEach(function(i){return Ea(i)})},timeline:function(e){return new St(e)},getTweensOf:function(e,r){return Oe.getTweensOf(e,r)},getProperty:function(e,r,t,i){tt(e)&&(e=jt(e)[0]);var n=ei(e||{}).get,s=t?ma:ga;return t==="native"&&(t=""),e&&(r?s((Nt[r]&&Nt[r].get||n)(e,r,t,i)):function(o,l,u){return s((Nt[o]&&Nt[o].get||n)(e,o,l,u))})},quickSetter:function(e,r,t){if(e=jt(e),e.length>1){var i=e.map(function(f){return Dt.quickSetter(f,r,t)}),n=i.length;return function(f){for(var d=n;d--;)i[d](f)}}e=e[0]||{};var s=Nt[r],o=ei(e),l=o.harness&&(o.harness.aliases||{})[r]||r,u=s?function(f){var d=new s;yi._pt=0,d.init(e,t?f+t:f,yi,0,[e]),d.render(1,d),yi._pt&&io(1,yi)}:o.set(e,l);return s?u:function(f){return u(e,l,t?f+t:f,o,1)}},quickTo:function(e,r,t){var i,n=Dt.to(e,Wt((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),t||{})),s=function(l,u,f){return n.resetTo(r,l,u,f)};return s.tween=n,s},isTweening:function(e){return Oe.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=ri(e.ease,Pi.ease)),xo(Pi,e||{})},config:function(e){return xo(Ut,e||{})},registerEffect:function(e){var r=e.name,t=e.effect,i=e.plugins,n=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!Nt[o]&&!Ht[o]&&an(r+" effect requires "+o+" plugin.")}),os[r]=function(o,l,u){return t(jt(o),Wt(l||{},n),u)},s&&(St.prototype[r]=function(o,l,u){return this.add(os[r](o,mr(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,r){le[e]=ri(r)},parseEase:function(e,r){return arguments.length?ri(e,r):le},getById:function(e){return Oe.getById(e)},exportRoot:function(e,r){e===void 0&&(e={});var t=new St(e),i,n;for(t.smoothChildTiming=Mt(e.smoothChildTiming),Oe.remove(t),t._dp=0,t._time=t._tTime=Oe._time,i=Oe._first;i;)n=i._next,(r||!(!i._dur&&i instanceof $e&&i.vars.onComplete===i._targets[0]))&&dr(t,i,i._start-i._delay),i=n;return dr(Oe,t,0),t},context:function(e,r){return e?new Ha(e,r):Se},matchMedia:function(e){return new wu(e)},matchMediaRefresh:function(){return ii.forEach(function(e){var r=e.conditions,t,i;for(i in r)r[i]&&(r[i]=!1,t=1);t&&e.revert()})||Os()},addEventListener:function(e,r){var t=Ln[e]||(Ln[e]=[]);~t.indexOf(r)||t.push(r)},removeEventListener:function(e,r){var t=Ln[e],i=t&&t.indexOf(r);i>=0&&t.splice(i,1)},utils:{wrap:eu,wrapYoyo:tu,distribute:Sa,random:ka,snap:Ca,normalize:Jl,getUnit:_t,clamp:Kl,splitColor:Ra,toArray:jt,selector:ks,mapRange:Ma,pipe:Zl,unitize:jl,interpolate:ru,shuffle:Ta},install:ca,effects:os,ticker:Yt,updateRoot:St.updateRoot,plugins:Nt,globalTimeline:Oe,core:{PropTween:Et,globals:ha,Tween:$e,Timeline:St,Animation:cn,getCache:ei,_removeLinkedListItem:es,reverting:function(){return ot},context:function(e){return e&&Se&&(Se.data.push(e),e._ctx=Se),Se},suppressOverwrites:function(e){return Us=e}}};Ot("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return qn[a]=$e[a]});Yt.add(St.updateRoot);yi=qn.to({},{duration:0});var Tu=function(e,r){for(var t=e._pt;t&&t.p!==r&&t.op!==r&&t.fp!==r;)t=t._next;return t},Su=function(e,r){var t=e._targets,i,n,s;for(i in r)for(n=t.length;n--;)s=e._ptLookup[n][i],s&&(s=s.d)&&(s._pt&&(s=Tu(s,i)),s&&s.modifier&&s.modifier(r[i],e,t[n],i))},cs=function(e,r){return{name:e,headless:1,rawVars:1,init:function(i,n,s){s._onInit=function(o){var l,u;if(tt(n)&&(l={},Ot(n,function(f){return l[f]=1}),n=l),r){l={};for(u in n)l[u]=r(n[u]);n=l}Su(o,n)}}}},Dt=qn.registerPlugin({name:"attr",init:function(e,r,t,i,n){var s,o,l;this.tween=t;for(s in r)l=e.getAttribute(s)||"",o=this.add(e,"setAttribute",(l||0)+"",r[s],i,n,0,0,s),o.op=s,o.b=l,this._props.push(s)},render:function(e,r){for(var t=r._pt;t;)ot?t.set(t.t,t.p,t.b,t):t.r(e,t.d),t=t._next}},{name:"endArray",headless:1,init:function(e,r){for(var t=r.length;t--;)this.add(e,t,e[t]||0,r[t],0,0,0,0,0,1)}},cs("roundProps",Ps),cs("modifiers"),cs("snap",Ca))||qn;$e.version=St.version=Dt.version="3.14.1";fa=1;Ws()&&Ri();le.Power0;le.Power1;le.Power2;le.Power3;le.Power4;le.Linear;le.Quad;le.Cubic;le.Quart;le.Quint;le.Strong;le.Elastic;le.Back;le.SteppedEase;le.Bounce;le.Sine;le.Expo;le.Circ;/*!
* CSSPlugin 3.14.1
* https://gsap.com
*
* Copyright 2008-2025, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license
* @author: Jack Doyle, jack@greensock.com
*/var ko,Ar,wi,no,jr,Po,so,Cu=function(){return typeof window<"u"},kr={},Gr=180/Math.PI,Ti=Math.PI/180,hi=Math.atan2,Mo=1e8,oo=/([A-Z])/g,ku=/(left|right|width|margin|padding|x)/i,Pu=/[\s,\(]\S/,_r={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Es=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},Mu=function(e,r){return r.set(r.t,r.p,e===1?r.e:Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},Ou=function(e,r){return r.set(r.t,r.p,e?Math.round((r.s+r.c*e)*1e4)/1e4+r.u:r.b,r)},Eu=function(e,r){return r.set(r.t,r.p,e===1?r.e:e?Math.round((r.s+r.c*e)*1e4)/1e4+r.u:r.b,r)},Ru=function(e,r){var t=r.s+r.c*e;r.set(r.t,r.p,~~(t+(t<0?-.5:.5))+r.u,r)},Wa=function(e,r){return r.set(r.t,r.p,e?r.e:r.b,r)},qa=function(e,r){return r.set(r.t,r.p,e!==1?r.b:r.e,r)},Du=function(e,r,t){return e.style[r]=t},Au=function(e,r,t){return e.style.setProperty(r,t)},Fu=function(e,r,t){return e._gsap[r]=t},zu=function(e,r,t){return e._gsap.scaleX=e._gsap.scaleY=t},Lu=function(e,r,t,i,n){var s=e._gsap;s.scaleX=s.scaleY=t,s.renderTransform(n,s)},Iu=function(e,r,t,i,n){var s=e._gsap;s[r]=t,s.renderTransform(n,s)},Ee="transform",Rt=Ee+"Origin",Nu=function a(e,r){var t=this,i=this.target,n=i.style,s=i._gsap;if(e in kr&&n){if(this.tfm=this.tfm||{},e!=="transform")e=_r[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return t.tfm[o]=br(i,o)}):this.tfm[e]=s.x?s[e]:br(i,e),e===Rt&&(this.tfm.zOrigin=s.zOrigin);else return _r.transform.split(",").forEach(function(o){return a.call(t,o,r)});if(this.props.indexOf(Ee)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Rt,r,"")),e=Ee}(n||r)&&this.props.push(e,r,n[e])},Ga=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Bu=function(){var e=this.props,r=this.target,t=r.style,i=r._gsap,n,s;for(n=0;n<e.length;n+=3)e[n+1]?e[n+1]===2?r[e[n]](e[n+2]):r[e[n]]=e[n+2]:e[n+2]?t[e[n]]=e[n+2]:t.removeProperty(e[n].substr(0,2)==="--"?e[n]:e[n].replace(oo,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),n=so(),(!n||!n.isStart)&&!t[Ee]&&(Ga(t),i.zOrigin&&t[Rt]&&(t[Rt]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Ka=function(e,r){var t={target:e,props:[],revert:Bu,save:Nu};return e._gsap||Dt.core.getCache(e),r&&e.style&&e.nodeType&&r.split(",").forEach(function(i){return t.save(i)}),t},Qa,Rs=function(e,r){var t=Ar.createElementNS?Ar.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ar.createElement(e);return t&&t.style?t:Ar.createElement(e)},Vt=function a(e,r,t){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(oo,"-$1").toLowerCase())||i.getPropertyValue(r)||!t&&a(e,Di(r)||r,1)||""},Oo="O,Moz,ms,Ms,Webkit".split(","),Di=function(e,r,t){var i=r||jr,n=i.style,s=5;if(e in n&&!t)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(Oo[s]+e in n););return s<0?null:(s===3?"ms":s>=0?Oo[s]:"")+e},Ds=function(){Cu()&&window.document&&(ko=window,Ar=ko.document,wi=Ar.documentElement,jr=Rs("div")||{style:{}},Rs("div"),Ee=Di(Ee),Rt=Ee+"Origin",jr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Qa=!!Di("perspective"),so=Dt.core.reverting,no=1)},Eo=function(e){var r=e.ownerSVGElement,t=Rs("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),n;i.style.display="block",t.appendChild(i),wi.appendChild(t);try{n=i.getBBox()}catch{}return t.removeChild(i),wi.removeChild(t),n},Ro=function(e,r){for(var t=r.length;t--;)if(e.hasAttribute(r[t]))return e.getAttribute(r[t])},Za=function(e){var r,t;try{r=e.getBBox()}catch{r=Eo(e),t=1}return r&&(r.width||r.height)||t||(r=Eo(e)),r&&!r.width&&!r.x&&!r.y?{x:+Ro(e,["x","cx","x1"])||0,y:+Ro(e,["y","cy","y1"])||0,width:0,height:0}:r},ja=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Za(e))},$r=function(e,r){if(r){var t=e.style,i;r in kr&&r!==Rt&&(r=Ee),t.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),t.removeProperty(i==="--"?r:r.replace(oo,"-$1").toLowerCase())):t.removeAttribute(r)}},Fr=function(e,r,t,i,n,s){var o=new Et(e._pt,r,t,0,1,s?qa:Wa);return e._pt=o,o.b=i,o.e=n,e._props.push(t),o},Do={deg:1,rad:1,turn:1},Yu={grid:1,flex:1},Xr=function a(e,r,t,i){var n=parseFloat(t)||0,s=(t+"").trim().substr((n+"").length)||"px",o=jr.style,l=ku.test(r),u=e.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(l?"Width":"Height"),d=100,_=i==="px",c=i==="%",p,h,y,C;if(i===s||!n||Do[i]||Do[s])return n;if(s!=="px"&&!_&&(n=a(e,r,t,"px")),C=e.getCTM&&ja(e),(c||s==="%")&&(kr[r]||~r.indexOf("adius")))return p=C?e.getBBox()[l?"width":"height"]:e[f],Le(c?n/p*d:n/100*p);if(o[l?"width":"height"]=d+(_?s:i),h=i!=="rem"&&~r.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,C&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===Ar||!h.appendChild)&&(h=Ar.body),y=h._gsap,y&&c&&y.width&&l&&y.time===Yt.time&&!y.uncache)return Le(n/y.width*d);if(c&&(r==="height"||r==="width")){var T=e.style[r];e.style[r]=d+i,p=e[f],T?e.style[r]=T:$r(e,r)}else(c||s==="%")&&!Yu[Vt(h,"display")]&&(o.position=Vt(e,"position")),h===e&&(o.position="static"),h.appendChild(jr),p=jr[f],h.removeChild(jr),o.position="absolute";return l&&c&&(y=ei(h),y.time=Yt.time,y.width=h[f]),Le(_?p*n/d:p&&n?d/p*n:0)},br=function(e,r,t,i){var n;return no||Ds(),r in _r&&r!=="transform"&&(r=_r[r],~r.indexOf(",")&&(r=r.split(",")[0])),kr[r]&&r!=="transform"?(n=dn(e,i),n=r!=="transformOrigin"?n[r]:n.svg?n.origin:Kn(Vt(e,Rt))+" "+n.zOrigin+"px"):(n=e.style[r],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=Gn[r]&&Gn[r](e,r,t)||Vt(e,r)||_a(e,r)||(r==="opacity"?1:0))),t&&!~(n+"").trim().indexOf(" ")?Xr(e,r,n,t)+t:n},$u=function(e,r,t,i){if(!t||t==="none"){var n=Di(r,e,1),s=n&&Vt(e,n,1);s&&s!==t?(r=n,t=s):r==="borderColor"&&(t=Vt(e,"borderTopColor"))}var o=new Et(this._pt,e.style,r,0,1,Va),l=0,u=0,f,d,_,c,p,h,y,C,T,P,x,S;if(o.b=t,o.e=i,t+="",i+="",i.substring(0,6)==="var(--"&&(i=Vt(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(h=e.style[r],e.style[r]=i,i=Vt(e,r)||i,h?e.style[r]=h:$r(e,r)),f=[t,i],Aa(f),t=f[0],i=f[1],_=t.match(mi)||[],S=i.match(mi)||[],S.length){for(;d=mi.exec(i);)y=d[0],T=i.substring(l,d.index),p?p=(p+1)%5:(T.substr(-5)==="rgba("||T.substr(-5)==="hsla(")&&(p=1),y!==(h=_[u++]||"")&&(c=parseFloat(h)||0,x=h.substr((c+"").length),y.charAt(1)==="="&&(y=bi(c,y)+x),C=parseFloat(y),P=y.substr((C+"").length),l=mi.lastIndex-P.length,P||(P=P||Ut.units[r]||x,l===i.length&&(i+=P,o.e+=P)),x!==P&&(c=Xr(e,r,h,P)||0),o._pt={_next:o._pt,p:T||u===1?T:",",s:c,c:C-c,m:p&&p<4||r==="zIndex"?Math.round:0});o.c=l<i.length?i.substring(l,i.length):""}else o.r=r==="display"&&i==="none"?qa:Wa;return ua.test(i)&&(o.e=0),this._pt=o,o},Ao={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Xu=function(e){var r=e.split(" "),t=r[0],i=r[1]||"50%";return(t==="top"||t==="bottom"||i==="left"||i==="right")&&(e=t,t=i,i=e),r[0]=Ao[t]||t,r[1]=Ao[i]||i,r.join(" ")},Vu=function(e,r){if(r.tween&&r.tween._time===r.tween._dur){var t=r.t,i=t.style,n=r.u,s=t._gsap,o,l,u;if(n==="all"||n===!0)i.cssText="",l=1;else for(n=n.split(","),u=n.length;--u>-1;)o=n[u],kr[o]&&(l=1,o=o==="transformOrigin"?Rt:Ee),$r(t,o);l&&($r(t,Ee),s&&(s.svg&&t.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",dn(t,1),s.uncache=1,Ga(i)))}},Gn={clearProps:function(e,r,t,i,n){if(n.data!=="isFromStart"){var s=e._pt=new Et(e._pt,r,t,0,0,Vu);return s.u=i,s.pr=-10,s.tween=n,e._props.push(t),1}}},hn=[1,0,0,1,0,0],Ja={},el=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Fo=function(e){var r=Vt(e,Ee);return el(r)?hn:r.substr(7).match(la).map(Le)},ao=function(e,r){var t=e._gsap||ei(e),i=e.style,n=Fo(e),s,o,l,u;return t.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"?hn:n):(n===hn&&!e.offsetParent&&e!==wi&&!t.svg&&(l=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,o=e.nextElementSibling,wi.appendChild(e)),n=Fo(e),l?i.display=l:$r(e,"display"),u&&(o?s.insertBefore(e,o):s?s.appendChild(e):wi.removeChild(e))),r&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},As=function(e,r,t,i,n,s){var o=e._gsap,l=n||ao(e,!0),u=o.xOrigin||0,f=o.yOrigin||0,d=o.xOffset||0,_=o.yOffset||0,c=l[0],p=l[1],h=l[2],y=l[3],C=l[4],T=l[5],P=r.split(" "),x=parseFloat(P[0])||0,S=parseFloat(P[1])||0,O,g,k,w;t?l!==hn&&(g=c*y-p*h)&&(k=x*(y/g)+S*(-h/g)+(h*T-y*C)/g,w=x*(-p/g)+S*(c/g)-(c*T-p*C)/g,x=k,S=w):(O=Za(e),x=O.x+(~P[0].indexOf("%")?x/100*O.width:x),S=O.y+(~(P[1]||P[0]).indexOf("%")?S/100*O.height:S)),i||i!==!1&&o.smooth?(C=x-u,T=S-f,o.xOffset=d+(C*c+T*h)-C,o.yOffset=_+(C*p+T*y)-T):o.xOffset=o.yOffset=0,o.xOrigin=x,o.yOrigin=S,o.smooth=!!i,o.origin=r,o.originIsAbsolute=!!t,e.style[Rt]="0px 0px",s&&(Fr(s,o,"xOrigin",u,x),Fr(s,o,"yOrigin",f,S),Fr(s,o,"xOffset",d,o.xOffset),Fr(s,o,"yOffset",_,o.yOffset)),e.setAttribute("data-svg-origin",x+" "+S)},dn=function(e,r){var t=e._gsap||new Ia(e);if("x"in t&&!r&&!t.uncache)return t;var i=e.style,n=t.scaleX<0,s="px",o="deg",l=getComputedStyle(e),u=Vt(e,Rt)||"0",f,d,_,c,p,h,y,C,T,P,x,S,O,g,k,w,M,N,E,L,I,W,Q,Y,se,ue,m,he,Ne,at,ge,Re;return f=d=_=h=y=C=T=P=x=0,c=p=1,t.svg=!!(e.getCTM&&ja(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[Ee]=(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[Ee]!=="none"?l[Ee]:"")),i.scale=i.rotate=i.translate="none"),g=ao(e,t.svg),t.svg&&(t.uncache?(se=e.getBBox(),u=t.xOrigin-se.x+"px "+(t.yOrigin-se.y)+"px",Y=""):Y=!r&&e.getAttribute("data-svg-origin"),As(e,Y||u,!!Y||t.originIsAbsolute,t.smooth!==!1,g)),S=t.xOrigin||0,O=t.yOrigin||0,g!==hn&&(N=g[0],E=g[1],L=g[2],I=g[3],f=W=g[4],d=Q=g[5],g.length===6?(c=Math.sqrt(N*N+E*E),p=Math.sqrt(I*I+L*L),h=N||E?hi(E,N)*Gr:0,T=L||I?hi(L,I)*Gr+h:0,T&&(p*=Math.abs(Math.cos(T*Ti))),t.svg&&(f-=S-(S*N+O*L),d-=O-(S*E+O*I))):(Re=g[6],at=g[7],m=g[8],he=g[9],Ne=g[10],ge=g[11],f=g[12],d=g[13],_=g[14],k=hi(Re,Ne),y=k*Gr,k&&(w=Math.cos(-k),M=Math.sin(-k),Y=W*w+m*M,se=Q*w+he*M,ue=Re*w+Ne*M,m=W*-M+m*w,he=Q*-M+he*w,Ne=Re*-M+Ne*w,ge=at*-M+ge*w,W=Y,Q=se,Re=ue),k=hi(-L,Ne),C=k*Gr,k&&(w=Math.cos(-k),M=Math.sin(-k),Y=N*w-m*M,se=E*w-he*M,ue=L*w-Ne*M,ge=I*M+ge*w,N=Y,E=se,L=ue),k=hi(E,N),h=k*Gr,k&&(w=Math.cos(k),M=Math.sin(k),Y=N*w+E*M,se=W*w+Q*M,E=E*w-N*M,Q=Q*w-W*M,N=Y,W=se),y&&Math.abs(y)+Math.abs(h)>359.9&&(y=h=0,C=180-C),c=Le(Math.sqrt(N*N+E*E+L*L)),p=Le(Math.sqrt(Q*Q+Re*Re)),k=hi(W,Q),T=Math.abs(k)>2e-4?k*Gr:0,x=ge?1/(ge<0?-ge:ge):0),t.svg&&(Y=e.getAttribute("transform"),t.forceCSS=e.setAttribute("transform","")||!el(Vt(e,Ee)),Y&&e.setAttribute("transform",Y))),Math.abs(T)>90&&Math.abs(T)<270&&(n?(c*=-1,T+=h<=0?180:-180,h+=h<=0?180:-180):(p*=-1,T+=T<=0?180:-180)),r=r||t.uncache,t.x=f-((t.xPercent=f&&(!r&&t.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-f)?-50:0)))?e.offsetWidth*t.xPercent/100:0)+s,t.y=d-((t.yPercent=d&&(!r&&t.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*t.yPercent/100:0)+s,t.z=_+s,t.scaleX=Le(c),t.scaleY=Le(p),t.rotation=Le(h)+o,t.rotationX=Le(y)+o,t.rotationY=Le(C)+o,t.skewX=T+o,t.skewY=P+o,t.transformPerspective=x+s,(t.zOrigin=parseFloat(u.split(" ")[2])||!r&&t.zOrigin||0)&&(i[Rt]=Kn(u)),t.xOffset=t.yOffset=0,t.force3D=Ut.force3D,t.renderTransform=t.svg?Hu:Qa?tl:Uu,t.uncache=0,t},Kn=function(e){return(e=e.split(" "))[0]+" "+e[1]},hs=function(e,r,t){var i=_t(r);return Le(parseFloat(r)+parseFloat(Xr(e,"x",t+"px",i)))+i},Uu=function(e,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,tl(e,r)},Wr="0deg",Li="0px",qr=") ",tl=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,l=t.z,u=t.rotation,f=t.rotationY,d=t.rotationX,_=t.skewX,c=t.skewY,p=t.scaleX,h=t.scaleY,y=t.transformPerspective,C=t.force3D,T=t.target,P=t.zOrigin,x="",S=C==="auto"&&e&&e!==1||C===!0;if(P&&(d!==Wr||f!==Wr)){var O=parseFloat(f)*Ti,g=Math.sin(O),k=Math.cos(O),w;O=parseFloat(d)*Ti,w=Math.cos(O),s=hs(T,s,g*w*-P),o=hs(T,o,-Math.sin(O)*-P),l=hs(T,l,k*w*-P+P)}y!==Li&&(x+="perspective("+y+qr),(i||n)&&(x+="translate("+i+"%, "+n+"%) "),(S||s!==Li||o!==Li||l!==Li)&&(x+=l!==Li||S?"translate3d("+s+", "+o+", "+l+") ":"translate("+s+", "+o+qr),u!==Wr&&(x+="rotate("+u+qr),f!==Wr&&(x+="rotateY("+f+qr),d!==Wr&&(x+="rotateX("+d+qr),(_!==Wr||c!==Wr)&&(x+="skew("+_+", "+c+qr),(p!==1||h!==1)&&(x+="scale("+p+", "+h+qr),T.style[Ee]=x||"translate(0, 0)"},Hu=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,l=t.rotation,u=t.skewX,f=t.skewY,d=t.scaleX,_=t.scaleY,c=t.target,p=t.xOrigin,h=t.yOrigin,y=t.xOffset,C=t.yOffset,T=t.forceCSS,P=parseFloat(s),x=parseFloat(o),S,O,g,k,w;l=parseFloat(l),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,l+=f),l||u?(l*=Ti,u*=Ti,S=Math.cos(l)*d,O=Math.sin(l)*d,g=Math.sin(l-u)*-_,k=Math.cos(l-u)*_,u&&(f*=Ti,w=Math.tan(u-f),w=Math.sqrt(1+w*w),g*=w,k*=w,f&&(w=Math.tan(f),w=Math.sqrt(1+w*w),S*=w,O*=w)),S=Le(S),O=Le(O),g=Le(g),k=Le(k)):(S=d,k=_,O=g=0),(P&&!~(s+"").indexOf("px")||x&&!~(o+"").indexOf("px"))&&(P=Xr(c,"x",s,"px"),x=Xr(c,"y",o,"px")),(p||h||y||C)&&(P=Le(P+p-(p*S+h*g)+y),x=Le(x+h-(p*O+h*k)+C)),(i||n)&&(w=c.getBBox(),P=Le(P+i/100*w.width),x=Le(x+n/100*w.height)),w="matrix("+S+","+O+","+g+","+k+","+P+","+x+")",c.setAttribute("transform",w),T&&(c.style[Ee]=w)},Wu=function(e,r,t,i,n){var s=360,o=tt(n),l=parseFloat(n)*(o&&~n.indexOf("rad")?Gr:1),u=l-i,f=i+u+"deg",d,_;return o&&(d=n.split("_")[1],d==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),d==="cw"&&u<0?u=(u+s*Mo)%s-~~(u/s)*s:d==="ccw"&&u>0&&(u=(u-s*Mo)%s-~~(u/s)*s)),e._pt=_=new Et(e._pt,r,t,i,u,Mu),_.e=f,_.u="deg",e._props.push(t),_},zo=function(e,r){for(var t in r)e[t]=r[t];return e},qu=function(e,r,t){var i=zo({},t._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=t.style,o,l,u,f,d,_,c,p;i.svg?(u=t.getAttribute("transform"),t.setAttribute("transform",""),s[Ee]=r,o=dn(t,1),$r(t,Ee),t.setAttribute("transform",u)):(u=getComputedStyle(t)[Ee],s[Ee]=r,o=dn(t,1),s[Ee]=u);for(l in kr)u=i[l],f=o[l],u!==f&&n.indexOf(l)<0&&(c=_t(u),p=_t(f),d=c!==p?Xr(t,l,u,p):parseFloat(u),_=parseFloat(f),e._pt=new Et(e._pt,o,l,d,_-d,Es),e._pt.u=p||0,e._props.push(l));zo(o,i)};Ot("padding,margin,Width,Radius",function(a,e){var r="Top",t="Right",i="Bottom",n="Left",s=(e<3?[r,t,i,n]:[r+n,r+t,i+t,i+n]).map(function(o){return e<2?a+o:"border"+o+a});Gn[e>1?"border"+a:a]=function(o,l,u,f,d){var _,c;if(arguments.length<4)return _=s.map(function(p){return br(o,p,u)}),c=_.join(" "),c.split(_[0]).length===5?_[0]:c;_=(f+"").split(" "),c={},s.forEach(function(p,h){return c[p]=_[h]=_[h]||_[(h-1)/2|0]}),o.init(l,c,d)}});var rl={name:"css",register:Ds,targetTest:function(e){return e.style&&e.nodeType},init:function(e,r,t,i,n){var s=this._props,o=e.style,l=t.vars.startAt,u,f,d,_,c,p,h,y,C,T,P,x,S,O,g,k,w;no||Ds(),this.styles=this.styles||Ka(e),k=this.styles.props,this.tween=t;for(h in r)if(h!=="autoRound"&&(f=r[h],!(Nt[h]&&Na(h,r,t,i,e,n)))){if(c=typeof f,p=Gn[h],c==="function"&&(f=f.call(t,i,e,n),c=typeof f),c==="string"&&~f.indexOf("random(")&&(f=un(f)),p)p(this,e,h,f,t)&&(g=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(h)+"").trim(),f+="",Nr.lastIndex=0,Nr.test(u)||(y=_t(u),C=_t(f),C?y!==C&&(u=Xr(e,h,u,C)+C):y&&(f+=y)),this.add(o,"setProperty",u,f,i,n,0,0,h),s.push(h),k.push(h,0,o[h]);else if(c!=="undefined"){if(l&&h in l?(u=typeof l[h]=="function"?l[h].call(t,i,e,n):l[h],tt(u)&&~u.indexOf("random(")&&(u=un(u)),_t(u+"")||u==="auto"||(u+=Ut.units[h]||_t(br(e,h))||""),(u+"").charAt(1)==="="&&(u=br(e,h))):u=br(e,h),_=parseFloat(u),T=c==="string"&&f.charAt(1)==="="&&f.substr(0,2),T&&(f=f.substr(2)),d=parseFloat(f),h in _r&&(h==="autoAlpha"&&(_===1&&br(e,"visibility")==="hidden"&&d&&(_=0),k.push("visibility",0,o.visibility),Fr(this,o,"visibility",_?"inherit":"hidden",d?"inherit":"hidden",!d)),h!=="scale"&&h!=="transform"&&(h=_r[h],~h.indexOf(",")&&(h=h.split(",")[0]))),P=h in kr,P){if(this.styles.save(h),w=f,c==="string"&&f.substring(0,6)==="var(--"){if(f=Vt(e,f.substring(4,f.indexOf(")"))),f.substring(0,5)==="calc("){var M=e.style.perspective;e.style.perspective=f,f=Vt(e,"perspective"),M?e.style.perspective=M:$r(e,"perspective")}d=parseFloat(f)}if(x||(S=e._gsap,S.renderTransform&&!r.parseTransform||dn(e,r.parseTransform),O=r.smoothOrigin!==!1&&S.smooth,x=this._pt=new Et(this._pt,o,Ee,0,1,S.renderTransform,S,0,-1),x.dep=1),h==="scale")this._pt=new Et(this._pt,S,"scaleY",S.scaleY,(T?bi(S.scaleY,T+d):d)-S.scaleY||0,Es),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){k.push(Rt,0,o[Rt]),f=Xu(f),S.svg?As(e,f,0,O,0,this):(C=parseFloat(f.split(" ")[2])||0,C!==S.zOrigin&&Fr(this,S,"zOrigin",S.zOrigin,C),Fr(this,o,h,Kn(u),Kn(f)));continue}else if(h==="svgOrigin"){As(e,f,1,O,0,this);continue}else if(h in Ja){Wu(this,S,h,_,T?bi(_,T+f):f);continue}else if(h==="smoothOrigin"){Fr(this,S,"smooth",S.smooth,f);continue}else if(h==="force3D"){S[h]=f;continue}else if(h==="transform"){qu(this,f,e);continue}}else h in o||(h=Di(h)||h);if(P||(d||d===0)&&(_||_===0)&&!Pu.test(f)&&h in o)y=(u+"").substr((_+"").length),d||(d=0),C=_t(f)||(h in Ut.units?Ut.units[h]:y),y!==C&&(_=Xr(e,h,u,C)),this._pt=new Et(this._pt,P?S:o,h,_,(T?bi(_,T+d):d)-_,!P&&(C==="px"||h==="zIndex")&&r.autoRound!==!1?Ru:Es),this._pt.u=C||0,P&&w!==f?(this._pt.b=u,this._pt.e=w,this._pt.r=Eu):y!==C&&C!=="%"&&(this._pt.b=u,this._pt.r=Ou);else if(h in o)$u.call(this,e,h,u,T?T+f:f);else if(h in e)this.add(e,h,u||e[h],T?T+f:f,i,n);else if(h!=="parseTransform"){Gs(h,f);continue}P||(h in o?k.push(h,0,o[h]):typeof e[h]=="function"?k.push(h,2,e[h]()):k.push(h,1,u||e[h])),s.push(h)}}g&&Ua(this)},render:function(e,r){if(r.tween._time||!so())for(var t=r._pt;t;)t.r(e,t.d),t=t._next;else r.styles.revert()},get:br,aliases:_r,getSetter:function(e,r,t){var i=_r[r];return i&&i.indexOf(",")<0&&(r=i),r in kr&&r!==Rt&&(e._gsap.x||br(e,"x"))?t&&Po===t?r==="scale"?zu:Fu:(Po=t||{})&&(r==="scale"?Lu:Iu):e.style&&!Hs(e.style[r])?Du:~r.indexOf("-")?Au:ro(e,r)},core:{_removeProperty:$r,_getMatrix:ao}};Dt.utils.checkPrefix=Di;Dt.core.getStyleSaver=Ka;(function(a,e,r,t){var i=Ot(a+","+e+","+r,function(n){kr[n]=1});Ot(e,function(n){Ut.units[n]="deg",Ja[n]=1}),_r[i[13]]=a+","+e,Ot(t,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");Ot("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){Ut.units[a]="px"});Dt.registerPlugin(rl);var vi=Dt.registerPlugin(rl)||Dt;vi.core.Tween;function Gu(a,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function Ku(a,e,r){return e&&Gu(a.prototype,e),a}/*!
* Observer 3.14.1
* https://gsap.com
*
* @license Copyright 2008-2025, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license
* @author: Jack Doyle, jack@greensock.com
*/var st,In,$t,zr,Lr,Si,il,Kr,Qi,nl,Tr,sr,sl,ol=function(){return st||typeof window<"u"&&(st=window.gsap)&&st.registerPlugin&&st},al=1,xi=[],re=[],gr=[],Zi=Date.now,Fs=function(e,r){return r},Qu=function(){var e=Qi.core,r=e.bridge||{},t=e._scrollers,i=e._proxies;t.push.apply(t,re),i.push.apply(i,gr),re=t,gr=i,Fs=function(s,o){return r[s](o)}},Br=function(e,r){return~gr.indexOf(e)&&gr[gr.indexOf(e)+1][r]},ji=function(e){return!!~nl.indexOf(e)},vt=function(e,r,t,i,n){return e.addEventListener(r,t,{passive:i!==!1,capture:!!n})},yt=function(e,r,t,i){return e.removeEventListener(r,t,!!i)},xn="scrollLeft",bn="scrollTop",zs=function(){return Tr&&Tr.isPressed||re.cache++},Qn=function(e,r){var t=function i(n){if(n||n===0){al&&($t.history.scrollRestoration="manual");var s=Tr&&Tr.isPressed;n=i.v=Math.round(n)||(Tr&&Tr.iOS?1:0),e(n),i.cacheID=re.cache,s&&Fs("ss",n)}else(r||re.cache!==i.cacheID||Fs("ref"))&&(i.cacheID=re.cache,i.v=e());return i.v+i.offset};return t.offset=0,e&&t},Ct={s:xn,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Qn(function(a){return arguments.length?$t.scrollTo(a,qe.sc()):$t.pageXOffset||zr[xn]||Lr[xn]||Si[xn]||0})},qe={s:bn,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ct,sc:Qn(function(a){return arguments.length?$t.scrollTo(Ct.sc(),a):$t.pageYOffset||zr[bn]||Lr[bn]||Si[bn]||0})},Pt=function(e,r){return(r&&r._ctx&&r._ctx.selector||st.utils.toArray)(e)[0]||(typeof e=="string"&&st.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},Zu=function(e,r){for(var t=r.length;t--;)if(r[t]===e||r[t].contains(e))return!0;return!1},Vr=function(e,r){var t=r.s,i=r.sc;ji(e)&&(e=zr.scrollingElement||Lr);var n=re.indexOf(e),s=i===qe.sc?1:2;!~n&&(n=re.push(e)-1),re[n+s]||vt(e,"scroll",zs);var o=re[n+s],l=o||(re[n+s]=Qn(Br(e,t),!0)||(ji(e)?i:Qn(function(u){return arguments.length?e[t]=u:e[t]})));return l.target=e,o||(l.smooth=st.getProperty(e,"scrollBehavior")==="smooth"),l},Ls=function(e,r,t){var i=e,n=e,s=Zi(),o=s,l=r||50,u=Math.max(500,l*3),f=function(p,h){var y=Zi();h||y-s>l?(n=i,i=p,o=s,s=y):t?i+=p:i=n+(p-n)/(y-o)*(s-o)},d=function(){n=i=t?0:i,o=s=0},_=function(p){var h=o,y=n,C=Zi();return(p||p===0)&&p!==i&&f(p),s===o||C-o>u?0:(i+(t?y:-y))/((t?C:s)-h)*1e3};return{update:f,reset:d,getVelocity:_}},Ii=function(e,r){return r&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Lo=function(e){var r=Math.max.apply(Math,e),t=Math.min.apply(Math,e);return Math.abs(r)>=Math.abs(t)?r:t},ll=function(){Qi=st.core.globals().ScrollTrigger,Qi&&Qi.core&&Qu()},ul=function(e){return st=e||ol(),!In&&st&&typeof document<"u"&&document.body&&($t=window,zr=document,Lr=zr.documentElement,Si=zr.body,nl=[$t,zr,Lr,Si],st.utils.clamp,sl=st.core.context||function(){},Kr="onpointerenter"in Si?"pointer":"mouse",il=Ie.isTouch=$t.matchMedia&&$t.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in $t||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,sr=Ie.eventTypes=("ontouchstart"in Lr?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Lr?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return al=0},500),ll(),In=1),In};Ct.op=qe;re.cache=0;var Ie=function(){function a(r){this.init(r)}var e=a.prototype;return e.init=function(t){In||ul(st)||console.warn("Please gsap.registerPlugin(Observer)"),Qi||ll();var i=t.tolerance,n=t.dragMinimum,s=t.type,o=t.target,l=t.lineHeight,u=t.debounce,f=t.preventDefault,d=t.onStop,_=t.onStopDelay,c=t.ignore,p=t.wheelSpeed,h=t.event,y=t.onDragStart,C=t.onDragEnd,T=t.onDrag,P=t.onPress,x=t.onRelease,S=t.onRight,O=t.onLeft,g=t.onUp,k=t.onDown,w=t.onChangeX,M=t.onChangeY,N=t.onChange,E=t.onToggleX,L=t.onToggleY,I=t.onHover,W=t.onHoverEnd,Q=t.onMove,Y=t.ignoreCheck,se=t.isNormalizer,ue=t.onGestureStart,m=t.onGestureEnd,he=t.onWheel,Ne=t.onEnable,at=t.onDisable,ge=t.onClick,Re=t.scrollSpeed,Xe=t.capture,Ce=t.allowClicks,Ge=t.lockAxis,Ke=t.onLockAxis;this.target=o=Pt(o)||Lr,this.vars=t,c&&(c=st.utils.toArray(c)),i=i||1e-9,n=n||0,p=p||1,Re=Re||1,s=s||"wheel,touch,pointer",u=u!==!1,l||(l=parseFloat($t.getComputedStyle(Si).lineHeight)||22);var er,Qe,Ve,oe,ke,rt,mt,b=this,lt=0,D=0,v=t.passive||!f&&t.passive!==!1,R=Vr(o,Ct),B=Vr(o,qe),V=R(),q=B(),ee=~s.indexOf("touch")&&!~s.indexOf("pointer")&&sr[0]==="pointerdown",Fe=ji(o),Z=o.ownerDocument||zr,xe=[0,0,0],fe=[0,0,0],ne=0,Ue=function(){return ne=Zi()},z=function(X,ce){return(b.event=X)&&c&&Zu(X.target,c)||ce&&ee&&X.pointerType!=="touch"||Y&&Y(X,ce)},Pr=function(){b._vx.reset(),b._vy.reset(),Qe.pause(),d&&d(b)},kt=function(){var X=b.deltaX=Lo(xe),ce=b.deltaY=Lo(fe),A=Math.abs(X)>=i,G=Math.abs(ce)>=i;N&&(A||G)&&N(b,X,ce,xe,fe),A&&(S&&b.deltaX>0&&S(b),O&&b.deltaX<0&&O(b),w&&w(b),E&&b.deltaX<0!=lt<0&&E(b),lt=b.deltaX,xe[0]=xe[1]=xe[2]=0),G&&(k&&b.deltaY>0&&k(b),g&&b.deltaY<0&&g(b),M&&M(b),L&&b.deltaY<0!=D<0&&L(b),D=b.deltaY,fe[0]=fe[1]=fe[2]=0),(oe||Ve)&&(Q&&Q(b),Ve&&(y&&Ve===1&&y(b),T&&T(b),Ve=0),oe=!1),rt&&!(rt=!1)&&Ke&&Ke(b),ke&&(he(b),ke=!1),er=0},At=function(X,ce,A){xe[A]+=X,fe[A]+=ce,b._vx.update(X),b._vy.update(ce),u?er||(er=requestAnimationFrame(kt)):kt()},yr=function(X,ce){Ge&&!mt&&(b.axis=mt=Math.abs(X)>Math.abs(ce)?"x":"y",rt=!0),mt!=="y"&&(xe[2]+=X,b._vx.update(X,!0)),mt!=="x"&&(fe[2]+=ce,b._vy.update(ce,!0)),u?er||(er=requestAnimationFrame(kt)):kt()},qt=function(X){if(!z(X,1)){X=Ii(X,f);var ce=X.clientX,A=X.clientY,G=ce-b.x,$=A-b.y,K=b.isDragging;b.x=ce,b.y=A,(K||(G||$)&&(Math.abs(b.startX-ce)>=n||Math.abs(b.startY-A)>=n))&&(Ve||(Ve=K?2:1),K||(b.isDragging=!0),yr(G,$))}},tr=b.onPress=function(U){z(U,1)||U&&U.button||(b.axis=mt=null,Qe.pause(),b.isPressed=!0,U=Ii(U),lt=D=0,b.startX=b.x=U.clientX,b.startY=b.y=U.clientY,b._vx.reset(),b._vy.reset(),vt(se?o:Z,sr[1],qt,v,!0),b.deltaX=b.deltaY=0,P&&P(b))},H=b.onRelease=function(U){if(!z(U,1)){yt(se?o:Z,sr[1],qt,!0);var X=!isNaN(b.y-b.startY),ce=b.isDragging,A=ce&&(Math.abs(b.x-b.startX)>3||Math.abs(b.y-b.startY)>3),G=Ii(U);!A&&X&&(b._vx.reset(),b._vy.reset(),f&&Ce&&st.delayedCall(.08,function(){if(Zi()-ne>300&&!U.defaultPrevented){if(U.target.click)U.target.click();else if(Z.createEvent){var $=Z.createEvent("MouseEvents");$.initMouseEvent("click",!0,!0,$t,1,G.screenX,G.screenY,G.clientX,G.clientY,!1,!1,!1,!1,0,null),U.target.dispatchEvent($)}}})),b.isDragging=b.isGesturing=b.isPressed=!1,d&&ce&&!se&&Qe.restart(!0),Ve&&kt(),C&&ce&&C(b),x&&x(b,A)}},or=function(X){return X.touches&&X.touches.length>1&&(b.isGesturing=!0)&&ue(X,b.isDragging)},Ze=function(){return(b.isGesturing=!1)||m(b)},de=function(X){if(!z(X)){var ce=R(),A=B();At((ce-V)*Re,(A-q)*Re,1),V=ce,q=A,d&&Qe.restart(!0)}},we=function(X){if(!z(X)){X=Ii(X,f),he&&(ke=!0);var ce=(X.deltaMode===1?l:X.deltaMode===2?$t.innerHeight:1)*p;At(X.deltaX*ce,X.deltaY*ce,0),d&&!se&&Qe.restart(!0)}},Ft=function(X){if(!z(X)){var ce=X.clientX,A=X.clientY,G=ce-b.x,$=A-b.y;b.x=ce,b.y=A,oe=!0,d&&Qe.restart(!0),(G||$)&&yr(G,$)}},rr=function(X){b.event=X,I(b)},Be=function(X){b.event=X,W(b)},ir=function(X){return z(X)||Ii(X,f)&&ge(b)};Qe=b._dc=st.delayedCall(_||.25,Pr).pause(),b.deltaX=b.deltaY=0,b._vx=Ls(0,50,!0),b._vy=Ls(0,50,!0),b.scrollX=R,b.scrollY=B,b.isDragging=b.isGesturing=b.isPressed=!1,sl(this),b.enable=function(U){return b.isEnabled||(vt(Fe?Z:o,"scroll",zs),s.indexOf("scroll")>=0&&vt(Fe?Z:o,"scroll",de,v,Xe),s.indexOf("wheel")>=0&&vt(o,"wheel",we,v,Xe),(s.indexOf("touch")>=0&&il||s.indexOf("pointer")>=0)&&(vt(o,sr[0],tr,v,Xe),vt(Z,sr[2],H),vt(Z,sr[3],H),Ce&&vt(o,"click",Ue,!0,!0),ge&&vt(o,"click",ir),ue&&vt(Z,"gesturestart",or),m&&vt(Z,"gestureend",Ze),I&&vt(o,Kr+"enter",rr),W&&vt(o,Kr+"leave",Be),Q&&vt(o,Kr+"move",Ft)),b.isEnabled=!0,b.isDragging=b.isGesturing=b.isPressed=oe=Ve=!1,b._vx.reset(),b._vy.reset(),V=R(),q=B(),U&&U.type&&tr(U),Ne&&Ne(b)),b},b.disable=function(){b.isEnabled&&(xi.filter(function(U){return U!==b&&ji(U.target)}).length||yt(Fe?Z:o,"scroll",zs),b.isPressed&&(b._vx.reset(),b._vy.reset(),yt(se?o:Z,sr[1],qt,!0)),yt(Fe?Z:o,"scroll",de,Xe),yt(o,"wheel",we,Xe),yt(o,sr[0],tr,Xe),yt(Z,sr[2],H),yt(Z,sr[3],H),yt(o,"click",Ue,!0),yt(o,"click",ir),yt(Z,"gesturestart",or),yt(Z,"gestureend",Ze),yt(o,Kr+"enter",rr),yt(o,Kr+"leave",Be),yt(o,Kr+"move",Ft),b.isEnabled=b.isPressed=b.isDragging=!1,at&&at(b))},b.kill=b.revert=function(){b.disable();var U=xi.indexOf(b);U>=0&&xi.splice(U,1),Tr===b&&(Tr=0)},xi.push(b),se&&ji(o)&&(Tr=b),b.enable(h)},Ku(a,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),a}();Ie.version="3.14.1";Ie.create=function(a){return new Ie(a)};Ie.register=ul;Ie.getAll=function(){return xi.slice()};Ie.getById=function(a){return xi.filter(function(e){return e.vars.id===a})[0]};ol()&&st.registerPlugin(Ie);/*!
* ScrollTrigger 3.14.1
* https://gsap.com
*
* @license Copyright 2008-2025, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license
* @author: Jack Doyle, jack@greensock.com
*/var F,pi,te,be,Bt,pe,lo,Zn,_n,Ji,$i,wn,ht,is,Is,wt,Io,No,gi,fl,ds,cl,bt,Ns,hl,dl,Er,Bs,uo,Ci,fo,en,Ys,_s,Tn=1,dt=Date.now,ps=dt(),Jt=0,Xi=0,Bo=function(e,r,t){var i=It(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return t["_"+r+"Clamp"]=i,i?e.substr(6,e.length-7):e},Yo=function(e,r){return r&&(!It(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},ju=function a(){return Xi&&requestAnimationFrame(a)},$o=function(){return is=1},Xo=function(){return is=0},cr=function(e){return e},Vi=function(e){return Math.round(e*1e5)/1e5||0},_l=function(){return typeof window<"u"},pl=function(){return F||_l()&&(F=window.gsap)&&F.registerPlugin&&F},ai=function(e){return!!~lo.indexOf(e)},gl=function(e){return(e==="Height"?fo:te["inner"+e])||Bt["client"+e]||pe["client"+e]},ml=function(e){return Br(e,"getBoundingClientRect")||(ai(e)?function(){return Xn.width=te.innerWidth,Xn.height=fo,Xn}:function(){return wr(e)})},Ju=function(e,r,t){var i=t.d,n=t.d2,s=t.a;return(s=Br(e,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(r?gl(n):e["client"+n])||0}},ef=function(e,r){return!r||~gr.indexOf(e)?ml(e):function(){return Xn}},pr=function(e,r){var t=r.s,i=r.d2,n=r.d,s=r.a;return Math.max(0,(t="scroll"+i)&&(s=Br(e,t))?s()-ml(e)()[n]:ai(e)?(Bt[t]||pe[t])-gl(i):e[t]-e["offset"+i])},Sn=function(e,r){for(var t=0;t<gi.length;t+=3)(!r||~r.indexOf(gi[t+1]))&&e(gi[t],gi[t+1],gi[t+2])},It=function(e){return typeof e=="string"},pt=function(e){return typeof e=="function"},Ui=function(e){return typeof e=="number"},Qr=function(e){return typeof e=="object"},Ni=function(e,r,t){return e&&e.progress(r?0:1)&&t&&e.pause()},gs=function(e,r){if(e.enabled){var t=e._ctx?e._ctx.add(function(){return r(e)}):r(e);t&&t.totalTime&&(e.callbackAnimation=t)}},di=Math.abs,yl="left",vl="top",co="right",ho="bottom",ni="width",si="height",tn="Right",rn="Left",nn="Top",sn="Bottom",Ye="padding",Kt="margin",Ai="Width",_o="Height",We="px",Qt=function(e){return te.getComputedStyle(e)},tf=function(e){var r=Qt(e).position;e.style.position=r==="absolute"||r==="fixed"?r:"relative"},Vo=function(e,r){for(var t in r)t in e||(e[t]=r[t]);return e},wr=function(e,r){var t=r&&Qt(e)[Is]!=="matrix(1, 0, 0, 1, 0, 0)"&&F.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return t&&t.progress(0).kill(),i},jn=function(e,r){var t=r.d2;return e["offset"+t]||e["client"+t]||0},xl=function(e){var r=[],t=e.labels,i=e.duration(),n;for(n in t)r.push(t[n]/i);return r},rf=function(e){return function(r){return F.utils.snap(xl(e),r)}},po=function(e){var r=F.utils.snap(e),t=Array.isArray(e)&&e.slice(0).sort(function(i,n){return i-n});return t?function(i,n,s){s===void 0&&(s=.001);var o;if(!n)return r(i);if(n>0){for(i-=s,o=0;o<t.length;o++)if(t[o]>=i)return t[o];return t[o-1]}else for(o=t.length,i+=s;o--;)if(t[o]<=i)return t[o];return t[0]}:function(i,n,s){s===void 0&&(s=.001);var o=r(i);return!n||Math.abs(o-i)<s||o-i<0==n<0?o:r(n<0?i-e:i+e)}},nf=function(e){return function(r,t){return po(xl(e))(r,t.direction)}},Cn=function(e,r,t,i){return t.split(",").forEach(function(n){return e(r,n,i)})},et=function(e,r,t,i,n){return e.addEventListener(r,t,{passive:!i,capture:!!n})},Je=function(e,r,t,i){return e.removeEventListener(r,t,!!i)},kn=function(e,r,t){t=t&&t.wheelHandler,t&&(e(r,"wheel",t),e(r,"touchmove",t))},Uo={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Pn={toggleActions:"play",anticipatePin:0},Jn={top:0,left:0,center:.5,bottom:1,right:1},Nn=function(e,r){if(It(e)){var t=e.indexOf("="),i=~t?+(e.charAt(t-1)+1)*parseFloat(e.substr(t+1)):0;~t&&(e.indexOf("%")>t&&(i*=r/100),e=e.substr(0,t-1)),e=i+(e in Jn?Jn[e]*r:~e.indexOf("%")?parseFloat(e)*r/100:parseFloat(e)||0)}return e},Mn=function(e,r,t,i,n,s,o,l){var u=n.startColor,f=n.endColor,d=n.fontSize,_=n.indent,c=n.fontWeight,p=be.createElement("div"),h=ai(t)||Br(t,"pinType")==="fixed",y=e.indexOf("scroller")!==-1,C=h?pe:t,T=e.indexOf("start")!==-1,P=T?u:f,x="border-color:"+P+";font-size:"+d+";color:"+P+";font-weight:"+c+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((y||l)&&h?"fixed;":"absolute;"),(y||l||!h)&&(x+=(i===qe?co:ho)+":"+(s+parseFloat(_))+"px;"),o&&(x+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),p._isStart=T,p.setAttribute("class","gsap-marker-"+e+(r?" marker-"+r:"")),p.style.cssText=x,p.innerText=r||r===0?e+"-"+r:e,C.children[0]?C.insertBefore(p,C.children[0]):C.appendChild(p),p._offset=p["offset"+i.op.d2],Bn(p,0,i,T),p},Bn=function(e,r,t,i){var n={display:"block"},s=t[i?"os2":"p2"],o=t[i?"p2":"os2"];e._isFlipped=i,n[t.a+"Percent"]=i?-100:0,n[t.a]=i?"1px":0,n["border"+s+Ai]=1,n["border"+o+Ai]=0,n[t.p]=r+"px",F.set(e,n)},J=[],$s={},pn,Ho=function(){return dt()-Jt>34&&(pn||(pn=requestAnimationFrame(Sr)))},_i=function(){(!bt||!bt.isPressed||bt.startX>pe.clientWidth)&&(re.cache++,bt?pn||(pn=requestAnimationFrame(Sr)):Sr(),Jt||ui("scrollStart"),Jt=dt())},ms=function(){dl=te.innerWidth,hl=te.innerHeight},Hi=function(e){re.cache++,(e===!0||!ht&&!cl&&!be.fullscreenElement&&!be.webkitFullscreenElement&&(!Ns||dl!==te.innerWidth||Math.abs(te.innerHeight-hl)>te.innerHeight*.25))&&Zn.restart(!0)},li={},sf=[],bl=function a(){return Je(ie,"scrollEnd",a)||Jr(!0)},ui=function(e){return li[e]&&li[e].map(function(r){return r()})||sf},Lt=[],wl=function(e){for(var r=0;r<Lt.length;r+=5)(!e||Lt[r+4]&&Lt[r+4].query===e)&&(Lt[r].style.cssText=Lt[r+1],Lt[r].getBBox&&Lt[r].setAttribute("transform",Lt[r+2]||""),Lt[r+3].uncache=1)},Tl=function(){return re.forEach(function(e){return pt(e)&&++e.cacheID&&(e.rec=e())})},go=function(e,r){var t;for(wt=0;wt<J.length;wt++)t=J[wt],t&&(!r||t._ctx===r)&&(e?t.kill(1):t.revert(!0,!0));en=!0,r&&wl(r),r||ui("revert")},Sl=function(e,r){re.cache++,(r||!Tt)&&re.forEach(function(t){return pt(t)&&t.cacheID++&&(t.rec=0)}),It(e)&&(te.history.scrollRestoration=uo=e)},Tt,oi=0,Wo,of=function(){if(Wo!==oi){var e=Wo=oi;requestAnimationFrame(function(){return e===oi&&Jr(!0)})}},Cl=function(){pe.appendChild(Ci),fo=!bt&&Ci.offsetHeight||te.innerHeight,pe.removeChild(Ci)},qo=function(e){return _n(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(r){return r.style.display=e?"none":"block"})},Jr=function(e,r){if(Bt=be.documentElement,pe=be.body,lo=[te,be,Bt,pe],Jt&&!e&&!en){et(ie,"scrollEnd",bl);return}Cl(),Tt=ie.isRefreshing=!0,en||Tl();var t=ui("refreshInit");fl&&ie.sort(),r||go(),re.forEach(function(i){pt(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),J.slice(0).forEach(function(i){return i.refresh()}),en=!1,J.forEach(function(i){if(i._subPinOffset&&i.pin){var n=i.vars.horizontal?"offsetWidth":"offsetHeight",s=i.pin[n];i.revert(!0,1),i.adjustPinSpacing(i.pin[n]-s),i.refresh()}}),Ys=1,qo(!0),J.forEach(function(i){var n=pr(i.scroller,i._dir),s=i.vars.end==="max"||i._endClamp&&i.end>n,o=i._startClamp&&i.start>=n;(s||o)&&i.setPositions(o?n-1:i.start,s?Math.max(o?n:i.start+1,n):i.end,!0)}),qo(!1),Ys=0,t.forEach(function(i){return i&&i.render&&i.render(-1)}),re.forEach(function(i){pt(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),Sl(uo,1),Zn.pause(),oi++,Tt=2,Sr(2),J.forEach(function(i){return pt(i.vars.onRefresh)&&i.vars.onRefresh(i)}),Tt=ie.isRefreshing=!1,ui("refresh")},Xs=0,Yn=1,on,Sr=function(e){if(e===2||!Tt&&!en){ie.isUpdating=!0,on&&on.update(0);var r=J.length,t=dt(),i=t-ps>=50,n=r&&J[0].scroll();if(Yn=Xs>n?-1:1,Tt||(Xs=n),i&&(Jt&&!is&&t-Jt>200&&(Jt=0,ui("scrollEnd")),$i=ps,ps=t),Yn<0){for(wt=r;wt-- >0;)J[wt]&&J[wt].update(0,i);Yn=1}else for(wt=0;wt<r;wt++)J[wt]&&J[wt].update(0,i);ie.isUpdating=!1}pn=0},Vs=[yl,vl,ho,co,Kt+sn,Kt+tn,Kt+nn,Kt+rn,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],$n=Vs.concat([ni,si,"boxSizing","max"+Ai,"max"+_o,"position",Kt,Ye,Ye+nn,Ye+tn,Ye+sn,Ye+rn]),af=function(e,r,t){ki(t);var i=e._gsap;if(i.spacerIsNative)ki(i.spacerState);else if(e._gsap.swappedIn){var n=r.parentNode;n&&(n.insertBefore(e,r),n.removeChild(r))}e._gsap.swappedIn=!1},ys=function(e,r,t,i){if(!e._gsap.swappedIn){for(var n=Vs.length,s=r.style,o=e.style,l;n--;)l=Vs[n],s[l]=t[l];s.position=t.position==="absolute"?"absolute":"relative",t.display==="inline"&&(s.display="inline-block"),o[ho]=o[co]="auto",s.flexBasis=t.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[ni]=jn(e,Ct)+We,s[si]=jn(e,qe)+We,s[Ye]=o[Kt]=o[vl]=o[yl]="0",ki(i),o[ni]=o["max"+Ai]=t[ni],o[si]=o["max"+_o]=t[si],o[Ye]=t[Ye],e.parentNode!==r&&(e.parentNode.insertBefore(r,e),r.appendChild(e)),e._gsap.swappedIn=!0}},lf=/([A-Z])/g,ki=function(e){if(e){var r=e.t.style,t=e.length,i=0,n,s;for((e.t._gsap||F.core.getCache(e.t)).uncache=1;i<t;i+=2)s=e[i+1],n=e[i],s?r[n]=s:r[n]&&r.removeProperty(n.replace(lf,"-$1").toLowerCase())}},On=function(e){for(var r=$n.length,t=e.style,i=[],n=0;n<r;n++)i.push($n[n],t[$n[n]]);return i.t=e,i},uf=function(e,r,t){for(var i=[],n=e.length,s=t?8:0,o;s<n;s+=2)o=e[s],i.push(o,o in r?r[o]:e[s+1]);return i.t=e.t,i},Xn={left:0,top:0},Go=function(e,r,t,i,n,s,o,l,u,f,d,_,c,p){pt(e)&&(e=e(l)),It(e)&&e.substr(0,3)==="max"&&(e=_+(e.charAt(4)==="="?Nn("0"+e.substr(3),t):0));var h=c?c.time():0,y,C,T;if(c&&c.seek(0),isNaN(e)||(e=+e),Ui(e))c&&(e=F.utils.mapRange(c.scrollTrigger.start,c.scrollTrigger.end,0,_,e)),o&&Bn(o,t,i,!0);else{pt(r)&&(r=r(l));var P=(e||"0").split(" "),x,S,O,g;T=Pt(r,l)||pe,x=wr(T)||{},(!x||!x.left&&!x.top)&&Qt(T).display==="none"&&(g=T.style.display,T.style.display="block",x=wr(T),g?T.style.display=g:T.style.removeProperty("display")),S=Nn(P[0],x[i.d]),O=Nn(P[1]||"0",t),e=x[i.p]-u[i.p]-f+S+n-O,o&&Bn(o,O,i,t-O<20||o._isStart&&O>20),t-=t-O}if(p&&(l[p]=e||-.001,e<0&&(e=0)),s){var k=e+t,w=s._isStart;y="scroll"+i.d2,Bn(s,k,i,w&&k>20||!w&&(d?Math.max(pe[y],Bt[y]):s.parentNode[y])<=k+1),d&&(u=wr(o),d&&(s.style[i.op.p]=u[i.op.p]-i.op.m-s._offset+We))}return c&&T&&(y=wr(T),c.seek(_),C=wr(T),c._caScrollDist=y[i.p]-C[i.p],e=e/c._caScrollDist*_),c&&c.seek(h),c?e:Math.round(e)},ff=/(webkit|moz|length|cssText|inset)/i,Ko=function(e,r,t,i){if(e.parentNode!==r){var n=e.style,s,o;if(r===pe){e._stOrig=n.cssText,o=Qt(e);for(s in o)!+s&&!ff.test(s)&&o[s]&&typeof n[s]=="string"&&s!=="0"&&(n[s]=o[s]);n.top=t,n.left=i}else n.cssText=e._stOrig;F.core.getCache(e).uncache=1,r.appendChild(e)}},kl=function(e,r,t){var i=r,n=i;return function(s){var o=Math.round(e());return o!==i&&o!==n&&Math.abs(o-i)>3&&Math.abs(o-n)>3&&(s=o,t&&t()),n=i,i=Math.round(s),i}},En=function(e,r,t){var i={};i[r.p]="+="+t,F.set(e,i)},Qo=function(e,r){var t=Vr(e,r),i="_scroll"+r.p2,n=function s(o,l,u,f,d){var _=s.tween,c=l.onComplete,p={};u=u||t();var h=kl(t,u,function(){_.kill(),s.tween=0});return d=f&&d||0,f=f||o-u,_&&_.kill(),l[i]=o,l.inherit=!1,l.modifiers=p,p[i]=function(){return h(u+f*_.ratio+d*_.ratio*_.ratio)},l.onUpdate=function(){re.cache++,s.tween&&Sr()},l.onComplete=function(){s.tween=0,c&&c.call(_)},_=s.tween=F.to(e,l),_};return e[i]=t,t.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},et(e,"wheel",t.wheelHandler),ie.isTouch&&et(e,"touchmove",t.wheelHandler),n},ie=function(){function a(r,t){pi||a.register(F)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Bs(this),this.init(r,t)}var e=a.prototype;return e.init=function(t,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Xi){this.update=this.refresh=this.kill=cr;return}t=Vo(It(t)||Ui(t)||t.nodeType?{trigger:t}:t,Pn);var n=t,s=n.onUpdate,o=n.toggleClass,l=n.id,u=n.onToggle,f=n.onRefresh,d=n.scrub,_=n.trigger,c=n.pin,p=n.pinSpacing,h=n.invalidateOnRefresh,y=n.anticipatePin,C=n.onScrubComplete,T=n.onSnapComplete,P=n.once,x=n.snap,S=n.pinReparent,O=n.pinSpacer,g=n.containerAnimation,k=n.fastScrollEnd,w=n.preventOverlaps,M=t.horizontal||t.containerAnimation&&t.horizontal!==!1?Ct:qe,N=!d&&d!==0,E=Pt(t.scroller||te),L=F.core.getCache(E),I=ai(E),W=("pinType"in t?t.pinType:Br(E,"pinType")||I&&"fixed")==="fixed",Q=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],Y=N&&t.toggleActions.split(" "),se="markers"in t?t.markers:Pn.markers,ue=I?0:parseFloat(Qt(E)["border"+M.p2+Ai])||0,m=this,he=t.onRefreshInit&&function(){return t.onRefreshInit(m)},Ne=Ju(E,I,M),at=ef(E,I),ge=0,Re=0,Xe=0,Ce=Vr(E,M),Ge,Ke,er,Qe,Ve,oe,ke,rt,mt,b,lt,D,v,R,B,V,q,ee,Fe,Z,xe,fe,ne,Ue,z,Pr,kt,At,yr,qt,tr,H,or,Ze,de,we,Ft,rr,Be;if(m._startClamp=m._endClamp=!1,m._dir=M,y*=45,m.scroller=E,m.scroll=g?g.time.bind(g):Ce,Qe=Ce(),m.vars=t,i=i||t.animation,"refreshPriority"in t&&(fl=1,t.refreshPriority===-9999&&(on=m)),L.tweenScroll=L.tweenScroll||{top:Qo(E,qe),left:Qo(E,Ct)},m.tweenTo=Ge=L.tweenScroll[M.p],m.scrubDuration=function(A){or=Ui(A)&&A,or?H?H.duration(A):H=F.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:or,paused:!0,onComplete:function(){return C&&C(m)}}):(H&&H.progress(1).kill(),H=0)},i&&(i.vars.lazy=!1,i._initted&&!m.isReverted||i.vars.immediateRender!==!1&&t.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),m.animation=i.pause(),i.scrollTrigger=m,m.scrubDuration(d),qt=0,l||(l=i.vars.id)),x&&((!Qr(x)||x.push)&&(x={snapTo:x}),"scrollBehavior"in pe.style&&F.set(I?[pe,Bt]:E,{scrollBehavior:"auto"}),re.forEach(function(A){return pt(A)&&A.target===(I?be.scrollingElement||Bt:E)&&(A.smooth=!1)}),er=pt(x.snapTo)?x.snapTo:x.snapTo==="labels"?rf(i):x.snapTo==="labelsDirectional"?nf(i):x.directional!==!1?function(A,G){return po(x.snapTo)(A,dt()-Re<500?0:G.direction)}:F.utils.snap(x.snapTo),Ze=x.duration||{min:.1,max:2},Ze=Qr(Ze)?Ji(Ze.min,Ze.max):Ji(Ze,Ze),de=F.delayedCall(x.delay||or/2||.1,function(){var A=Ce(),G=dt()-Re<500,$=Ge.tween;if((G||Math.abs(m.getVelocity())<10)&&!$&&!is&&ge!==A){var K=(A-oe)/R,je=i&&!N?i.totalProgress():K,ae=G?0:(je-tr)/(dt()-$i)*1e3||0,ze=F.utils.clamp(-K,1-K,di(ae/2)*ae/.185),ut=K+(x.inertia===!1?0:ze),De,Te,me=x,nr=me.onStart,Pe=me.onInterrupt,zt=me.onComplete;if(De=er(ut,m),Ui(De)||(De=ut),Te=Math.max(0,Math.round(oe+De*R)),A<=ke&&A>=oe&&Te!==A){if($&&!$._initted&&$.data<=di(Te-A))return;x.inertia===!1&&(ze=De-K),Ge(Te,{duration:Ze(di(Math.max(di(ut-je),di(De-je))*.185/ae/.05||0)),ease:x.ease||"power3",data:di(Te-A),onInterrupt:function(){return de.restart(!0)&&Pe&&Pe(m)},onComplete:function(){m.update(),ge=Ce(),i&&!N&&(H?H.resetTo("totalProgress",De,i._tTime/i._tDur):i.progress(De)),qt=tr=i&&!N?i.totalProgress():m.progress,T&&T(m),zt&&zt(m)}},A,ze*R,Te-A-ze*R),nr&&nr(m,Ge.tween)}}else m.isActive&&ge!==A&&de.restart(!0)}).pause()),l&&($s[l]=m),_=m.trigger=Pt(_||c!==!0&&c),Be=_&&_._gsap&&_._gsap.stRevert,Be&&(Be=Be(m)),c=c===!0?_:Pt(c),It(o)&&(o={targets:_,className:o}),c&&(p===!1||p===Kt||(p=!p&&c.parentNode&&c.parentNode.style&&Qt(c.parentNode).display==="flex"?!1:Ye),m.pin=c,Ke=F.core.getCache(c),Ke.spacer?B=Ke.pinState:(O&&(O=Pt(O),O&&!O.nodeType&&(O=O.current||O.nativeElement),Ke.spacerIsNative=!!O,O&&(Ke.spacerState=On(O))),Ke.spacer=ee=O||be.createElement("div"),ee.classList.add("pin-spacer"),l&&ee.classList.add("pin-spacer-"+l),Ke.pinState=B=On(c)),t.force3D!==!1&&F.set(c,{force3D:!0}),m.spacer=ee=Ke.spacer,yr=Qt(c),Ue=yr[p+M.os2],Z=F.getProperty(c),xe=F.quickSetter(c,M.a,We),ys(c,ee,yr),q=On(c)),se){D=Qr(se)?Vo(se,Uo):Uo,b=Mn("scroller-start",l,E,M,D,0),lt=Mn("scroller-end",l,E,M,D,0,b),Fe=b["offset"+M.op.d2];var ir=Pt(Br(E,"content")||E);rt=this.markerStart=Mn("start",l,ir,M,D,Fe,0,g),mt=this.markerEnd=Mn("end",l,ir,M,D,Fe,0,g),g&&(rr=F.quickSetter([rt,mt],M.a,We)),!W&&!(gr.length&&Br(E,"fixedMarkers")===!0)&&(tf(I?pe:E),F.set([b,lt],{force3D:!0}),Pr=F.quickSetter(b,M.a,We),At=F.quickSetter(lt,M.a,We))}if(g){var U=g.vars.onUpdate,X=g.vars.onUpdateParams;g.eventCallback("onUpdate",function(){m.update(0,0,1),U&&U.apply(g,X||[])})}if(m.previous=function(){return J[J.indexOf(m)-1]},m.next=function(){return J[J.indexOf(m)+1]},m.revert=function(A,G){if(!G)return m.kill(!0);var $=A!==!1||!m.enabled,K=ht;$!==m.isReverted&&($&&(we=Math.max(Ce(),m.scroll.rec||0),Xe=m.progress,Ft=i&&i.progress()),rt&&[rt,mt,b,lt].forEach(function(je){return je.style.display=$?"none":"block"}),$&&(ht=m,m.update($)),c&&(!S||!m.isActive)&&($?af(c,ee,B):ys(c,ee,Qt(c),z)),$||m.update($),ht=K,m.isReverted=$)},m.refresh=function(A,G,$,K){if(!((ht||!m.enabled)&&!G)){if(c&&A&&Jt){et(a,"scrollEnd",bl);return}!Tt&&he&&he(m),ht=m,Ge.tween&&!$&&(Ge.tween.kill(),Ge.tween=0),H&&H.pause(),h&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren?i.getChildren(!0,!0,!1).forEach(function(Mr){return Mr.vars.immediateRender&&Mr.render(0,!0,!0)}):i.vars.immediateRender&&i.render(0,!0,!0)),m.isReverted||m.revert(!0,!0),m._subPinOffset=!1;var je=Ne(),ae=at(),ze=g?g.duration():pr(E,M),ut=R<=.01||!R,De=0,Te=K||0,me=Qr($)?$.end:t.end,nr=t.endTrigger||_,Pe=Qr($)?$.start:t.start||(t.start===0||!_?0:c?"0 0":"0 100%"),zt=m.pinnedContainer=t.pinnedContainer&&Pt(t.pinnedContainer,m),ar=_&&Math.max(0,J.indexOf(m))||0,it=ar,nt,ft,Hr,mn,ct,He,lr,ns,mo,Fi,ur,zi,yn;for(se&&Qr($)&&(zi=F.getProperty(b,M.p),yn=F.getProperty(lt,M.p));it-- >0;)He=J[it],He.end||He.refresh(0,1)||(ht=m),lr=He.pin,lr&&(lr===_||lr===c||lr===zt)&&!He.isReverted&&(Fi||(Fi=[]),Fi.unshift(He),He.revert(!0,!0)),He!==J[it]&&(ar--,it--);for(pt(Pe)&&(Pe=Pe(m)),Pe=Bo(Pe,"start",m),oe=Go(Pe,_,je,M,Ce(),rt,b,m,ae,ue,W,ze,g,m._startClamp&&"_startClamp")||(c?-.001:0),pt(me)&&(me=me(m)),It(me)&&!me.indexOf("+=")&&(~me.indexOf(" ")?me=(It(Pe)?Pe.split(" ")[0]:"")+me:(De=Nn(me.substr(2),je),me=It(Pe)?Pe:(g?F.utils.mapRange(0,g.duration(),g.scrollTrigger.start,g.scrollTrigger.end,oe):oe)+De,nr=_)),me=Bo(me,"end",m),ke=Math.max(oe,Go(me||(nr?"100% 0":ze),nr,je,M,Ce()+De,mt,lt,m,ae,ue,W,ze,g,m._endClamp&&"_endClamp"))||-.001,De=0,it=ar;it--;)He=J[it]||{},lr=He.pin,lr&&He.start-He._pinPush<=oe&&!g&&He.end>0&&(nt=He.end-(m._startClamp?Math.max(0,He.start):He.start),(lr===_&&He.start-He._pinPush<oe||lr===zt)&&isNaN(Pe)&&(De+=nt*(1-He.progress)),lr===c&&(Te+=nt));if(oe+=De,ke+=De,m._startClamp&&(m._startClamp+=De),m._endClamp&&!Tt&&(m._endClamp=ke||-.001,ke=Math.min(ke,pr(E,M))),R=ke-oe||(oe-=.01)&&.001,ut&&(Xe=F.utils.clamp(0,1,F.utils.normalize(oe,ke,we))),m._pinPush=Te,rt&&De&&(nt={},nt[M.a]="+="+De,zt&&(nt[M.p]="-="+Ce()),F.set([rt,mt],nt)),c&&!(Ys&&m.end>=pr(E,M)))nt=Qt(c),mn=M===qe,Hr=Ce(),fe=parseFloat(Z(M.a))+Te,!ze&&ke>1&&(ur=(I?be.scrollingElement||Bt:E).style,ur={style:ur,value:ur["overflow"+M.a.toUpperCase()]},I&&Qt(pe)["overflow"+M.a.toUpperCase()]!=="scroll"&&(ur.style["overflow"+M.a.toUpperCase()]="scroll")),ys(c,ee,nt),q=On(c),ft=wr(c,!0),ns=W&&Vr(E,mn?Ct:qe)(),p?(z=[p+M.os2,R+Te+We],z.t=ee,it=p===Ye?jn(c,M)+R+Te:0,it&&(z.push(M.d,it+We),ee.style.flexBasis!=="auto"&&(ee.style.flexBasis=it+We)),ki(z),zt&&J.forEach(function(Mr){Mr.pin===zt&&Mr.vars.pinSpacing!==!1&&(Mr._subPinOffset=!0)}),W&&Ce(we)):(it=jn(c,M),it&&ee.style.flexBasis!=="auto"&&(ee.style.flexBasis=it+We)),W&&(ct={top:ft.top+(mn?Hr-oe:ns)+We,left:ft.left+(mn?ns:Hr-oe)+We,boxSizing:"border-box",position:"fixed"},ct[ni]=ct["max"+Ai]=Math.ceil(ft.width)+We,ct[si]=ct["max"+_o]=Math.ceil(ft.height)+We,ct[Kt]=ct[Kt+nn]=ct[Kt+tn]=ct[Kt+sn]=ct[Kt+rn]="0",ct[Ye]=nt[Ye],ct[Ye+nn]=nt[Ye+nn],ct[Ye+tn]=nt[Ye+tn],ct[Ye+sn]=nt[Ye+sn],ct[Ye+rn]=nt[Ye+rn],V=uf(B,ct,S),Tt&&Ce(0)),i?(mo=i._initted,ds(1),i.render(i.duration(),!0,!0),ne=Z(M.a)-fe+R+Te,kt=Math.abs(R-ne)>1,W&&kt&&V.splice(V.length-2,2),i.render(0,!0,!0),mo||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),ds(0)):ne=R,ur&&(ur.value?ur.style["overflow"+M.a.toUpperCase()]=ur.value:ur.style.removeProperty("overflow-"+M.a));else if(_&&Ce()&&!g)for(ft=_.parentNode;ft&&ft!==pe;)ft._pinOffset&&(oe-=ft._pinOffset,ke-=ft._pinOffset),ft=ft.parentNode;Fi&&Fi.forEach(function(Mr){return Mr.revert(!1,!0)}),m.start=oe,m.end=ke,Qe=Ve=Tt?we:Ce(),!g&&!Tt&&(Qe<we&&Ce(we),m.scroll.rec=0),m.revert(!1,!0),Re=dt(),de&&(ge=-1,de.restart(!0)),ht=0,i&&N&&(i._initted||Ft)&&i.progress()!==Ft&&i.progress(Ft||0,!0).render(i.time(),!0,!0),(ut||Xe!==m.progress||g||h||i&&!i._initted)&&(i&&!N&&(i._initted||Xe||i.vars.immediateRender!==!1)&&i.totalProgress(g&&oe<-.001&&!Xe?F.utils.normalize(oe,ke,0):Xe,!0),m.progress=ut||(Qe-oe)/R===Xe?0:Xe),c&&p&&(ee._pinOffset=Math.round(m.progress*ne)),H&&H.invalidate(),isNaN(zi)||(zi-=F.getProperty(b,M.p),yn-=F.getProperty(lt,M.p),En(b,M,zi),En(rt,M,zi-(K||0)),En(lt,M,yn),En(mt,M,yn-(K||0))),ut&&!Tt&&m.update(),f&&!Tt&&!v&&(v=!0,f(m),v=!1)}},m.getVelocity=function(){return(Ce()-Ve)/(dt()-$i)*1e3||0},m.endAnimation=function(){Ni(m.callbackAnimation),i&&(H?H.progress(1):i.paused()?N||Ni(i,m.direction<0,1):Ni(i,i.reversed()))},m.labelToScroll=function(A){return i&&i.labels&&(oe||m.refresh()||oe)+i.labels[A]/i.duration()*R||0},m.getTrailing=function(A){var G=J.indexOf(m),$=m.direction>0?J.slice(0,G).reverse():J.slice(G+1);return(It(A)?$.filter(function(K){return K.vars.preventOverlaps===A}):$).filter(function(K){return m.direction>0?K.end<=oe:K.start>=ke})},m.update=function(A,G,$){if(!(g&&!$&&!A)){var K=Tt===!0?we:m.scroll(),je=A?0:(K-oe)/R,ae=je<0?0:je>1?1:je||0,ze=m.progress,ut,De,Te,me,nr,Pe,zt,ar;if(G&&(Ve=Qe,Qe=g?Ce():K,x&&(tr=qt,qt=i&&!N?i.totalProgress():ae)),y&&c&&!ht&&!Tn&&Jt&&(!ae&&oe<K+(K-Ve)/(dt()-$i)*y?ae=1e-4:ae===1&&ke>K+(K-Ve)/(dt()-$i)*y&&(ae=.9999)),ae!==ze&&m.enabled){if(ut=m.isActive=!!ae&&ae<1,De=!!ze&&ze<1,Pe=ut!==De,nr=Pe||!!ae!=!!ze,m.direction=ae>ze?1:-1,m.progress=ae,nr&&!ht&&(Te=ae&&!ze?0:ae===1?1:ze===1?2:3,N&&(me=!Pe&&Y[Te+1]!=="none"&&Y[Te+1]||Y[Te],ar=i&&(me==="complete"||me==="reset"||me in i))),w&&(Pe||ar)&&(ar||d||!i)&&(pt(w)?w(m):m.getTrailing(w).forEach(function(Hr){return Hr.endAnimation()})),N||(H&&!ht&&!Tn?(H._dp._time-H._start!==H._time&&H.render(H._dp._time-H._start),H.resetTo?H.resetTo("totalProgress",ae,i._tTime/i._tDur):(H.vars.totalProgress=ae,H.invalidate().restart())):i&&i.totalProgress(ae,!!(ht&&(Re||A)))),c){if(A&&p&&(ee.style[p+M.os2]=Ue),!W)xe(Vi(fe+ne*ae));else if(nr){if(zt=!A&&ae>ze&&ke+1>K&&K+1>=pr(E,M),S)if(!A&&(ut||zt)){var it=wr(c,!0),nt=K-oe;Ko(c,pe,it.top+(M===qe?nt:0)+We,it.left+(M===qe?0:nt)+We)}else Ko(c,ee);ki(ut||zt?V:q),kt&&ae<1&&ut||xe(fe+(ae===1&&!zt?ne:0))}}x&&!Ge.tween&&!ht&&!Tn&&de.restart(!0),o&&(Pe||P&&ae&&(ae<1||!_s))&&_n(o.targets).forEach(function(Hr){return Hr.classList[ut||P?"add":"remove"](o.className)}),s&&!N&&!A&&s(m),nr&&!ht?(N&&(ar&&(me==="complete"?i.pause().totalProgress(1):me==="reset"?i.restart(!0).pause():me==="restart"?i.restart(!0):i[me]()),s&&s(m)),(Pe||!_s)&&(u&&Pe&&gs(m,u),Q[Te]&&gs(m,Q[Te]),P&&(ae===1?m.kill(!1,1):Q[Te]=0),Pe||(Te=ae===1?1:3,Q[Te]&&gs(m,Q[Te]))),k&&!ut&&Math.abs(m.getVelocity())>(Ui(k)?k:2500)&&(Ni(m.callbackAnimation),H?H.progress(1):Ni(i,me==="reverse"?1:!ae,1))):N&&s&&!ht&&s(m)}if(At){var ft=g?K/g.duration()*(g._caScrollDist||0):K;Pr(ft+(b._isFlipped?1:0)),At(ft)}rr&&rr(-K/g.duration()*(g._caScrollDist||0))}},m.enable=function(A,G){m.enabled||(m.enabled=!0,et(E,"resize",Hi),I||et(E,"scroll",_i),he&&et(a,"refreshInit",he),A!==!1&&(m.progress=Xe=0,Qe=Ve=ge=Ce()),G!==!1&&m.refresh())},m.getTween=function(A){return A&&Ge?Ge.tween:H},m.setPositions=function(A,G,$,K){if(g){var je=g.scrollTrigger,ae=g.duration(),ze=je.end-je.start;A=je.start+ze*A/ae,G=je.start+ze*G/ae}m.refresh(!1,!1,{start:Yo(A,$&&!!m._startClamp),end:Yo(G,$&&!!m._endClamp)},K),m.update()},m.adjustPinSpacing=function(A){if(z&&A){var G=z.indexOf(M.d)+1;z[G]=parseFloat(z[G])+A+We,z[1]=parseFloat(z[1])+A+We,ki(z)}},m.disable=function(A,G){if(A!==!1&&m.revert(!0,!0),m.enabled&&(m.enabled=m.isActive=!1,G||H&&H.pause(),we=0,Ke&&(Ke.uncache=1),he&&Je(a,"refreshInit",he),de&&(de.pause(),Ge.tween&&Ge.tween.kill()&&(Ge.tween=0)),!I)){for(var $=J.length;$--;)if(J[$].scroller===E&&J[$]!==m)return;Je(E,"resize",Hi),I||Je(E,"scroll",_i)}},m.kill=function(A,G){m.disable(A,G),H&&!G&&H.kill(),l&&delete $s[l];var $=J.indexOf(m);$>=0&&J.splice($,1),$===wt&&Yn>0&&wt--,$=0,J.forEach(function(K){return K.scroller===m.scroller&&($=1)}),$||Tt||(m.scroll.rec=0),i&&(i.scrollTrigger=null,A&&i.revert({kill:!1}),G||i.kill()),rt&&[rt,mt,b,lt].forEach(function(K){return K.parentNode&&K.parentNode.removeChild(K)}),on===m&&(on=0),c&&(Ke&&(Ke.uncache=1),$=0,J.forEach(function(K){return K.pin===c&&$++}),$||(Ke.spacer=0)),t.onKill&&t.onKill(m)},J.push(m),m.enable(!1,!1),Be&&Be(m),i&&i.add&&!R){var ce=m.update;m.update=function(){m.update=ce,re.cache++,oe||ke||m.refresh()},F.delayedCall(.01,m.update),R=.01,oe=ke=0}else m.refresh();c&&of()},a.register=function(t){return pi||(F=t||pl(),_l()&&window.document&&a.enable(),pi=Xi),pi},a.defaults=function(t){if(t)for(var i in t)Pn[i]=t[i];return Pn},a.disable=function(t,i){Xi=0,J.forEach(function(s){return s[i?"kill":"disable"](t)}),Je(te,"wheel",_i),Je(be,"scroll",_i),clearInterval(wn),Je(be,"touchcancel",cr),Je(pe,"touchstart",cr),Cn(Je,be,"pointerdown,touchstart,mousedown",$o),Cn(Je,be,"pointerup,touchend,mouseup",Xo),Zn.kill(),Sn(Je);for(var n=0;n<re.length;n+=3)kn(Je,re[n],re[n+1]),kn(Je,re[n],re[n+2])},a.enable=function(){if(te=window,be=document,Bt=be.documentElement,pe=be.body,F&&(_n=F.utils.toArray,Ji=F.utils.clamp,Bs=F.core.context||cr,ds=F.core.suppressOverwrites||cr,uo=te.history.scrollRestoration||"auto",Xs=te.pageYOffset||0,F.core.globals("ScrollTrigger",a),pe)){Xi=1,Ci=document.createElement("div"),Ci.style.height="100vh",Ci.style.position="absolute",Cl(),ju(),Ie.register(F),a.isTouch=Ie.isTouch,Er=Ie.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Ns=Ie.isTouch===1,et(te,"wheel",_i),lo=[te,be,Bt,pe],F.matchMedia?(a.matchMedia=function(u){var f=F.matchMedia(),d;for(d in u)f.add(d,u[d]);return f},F.addEventListener("matchMediaInit",function(){Tl(),go()}),F.addEventListener("matchMediaRevert",function(){return wl()}),F.addEventListener("matchMedia",function(){Jr(0,1),ui("matchMedia")}),F.matchMedia().add("(orientation: portrait)",function(){return ms(),ms})):console.warn("Requires GSAP 3.11.0 or later"),ms(),et(be,"scroll",_i);var t=pe.hasAttribute("style"),i=pe.style,n=i.borderTopStyle,s=F.core.Animation.prototype,o,l;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",o=wr(pe),qe.m=Math.round(o.top+qe.sc())||0,Ct.m=Math.round(o.left+Ct.sc())||0,n?i.borderTopStyle=n:i.removeProperty("border-top-style"),t||(pe.setAttribute("style",""),pe.removeAttribute("style")),wn=setInterval(Ho,250),F.delayedCall(.5,function(){return Tn=0}),et(be,"touchcancel",cr),et(pe,"touchstart",cr),Cn(et,be,"pointerdown,touchstart,mousedown",$o),Cn(et,be,"pointerup,touchend,mouseup",Xo),Is=F.utils.checkPrefix("transform"),$n.push(Is),pi=dt(),Zn=F.delayedCall(.2,Jr).pause(),gi=[be,"visibilitychange",function(){var u=te.innerWidth,f=te.innerHeight;be.hidden?(Io=u,No=f):(Io!==u||No!==f)&&Hi()},be,"DOMContentLoaded",Jr,te,"load",Jr,te,"resize",Hi],Sn(et),J.forEach(function(u){return u.enable(0,1)}),l=0;l<re.length;l+=3)kn(Je,re[l],re[l+1]),kn(Je,re[l],re[l+2])}},a.config=function(t){"limitCallbacks"in t&&(_s=!!t.limitCallbacks);var i=t.syncInterval;i&&clearInterval(wn)||(wn=i)&&setInterval(Ho,i),"ignoreMobileResize"in t&&(Ns=a.isTouch===1&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(Sn(Je)||Sn(et,t.autoRefreshEvents||"none"),cl=(t.autoRefreshEvents+"").indexOf("resize")===-1)},a.scrollerProxy=function(t,i){var n=Pt(t),s=re.indexOf(n),o=ai(n);~s&&re.splice(s,o?6:2),i&&(o?gr.unshift(te,i,pe,i,Bt,i):gr.unshift(n,i))},a.clearMatchMedia=function(t){J.forEach(function(i){return i._ctx&&i._ctx.query===t&&i._ctx.kill(!0,!0)})},a.isInViewport=function(t,i,n){var s=(It(t)?Pt(t):t).getBoundingClientRect(),o=s[n?ni:si]*i||0;return n?s.right-o>0&&s.left+o<te.innerWidth:s.bottom-o>0&&s.top+o<te.innerHeight},a.positionInViewport=function(t,i,n){It(t)&&(t=Pt(t));var s=t.getBoundingClientRect(),o=s[n?ni:si],l=i==null?o/2:i in Jn?Jn[i]*o:~i.indexOf("%")?parseFloat(i)*o/100:parseFloat(i)||0;return n?(s.left+l)/te.innerWidth:(s.top+l)/te.innerHeight},a.killAll=function(t){if(J.slice(0).forEach(function(n){return n.vars.id!=="ScrollSmoother"&&n.kill()}),t!==!0){var i=li.killAll||[];li={},i.forEach(function(n){return n()})}},a}();ie.version="3.14.1";ie.saveStyles=function(a){return a?_n(a).forEach(function(e){if(e&&e.style){var r=Lt.indexOf(e);r>=0&&Lt.splice(r,5),Lt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),F.core.getCache(e),Bs())}}):Lt};ie.revert=function(a,e){return go(!a,e)};ie.create=function(a,e){return new ie(a,e)};ie.refresh=function(a){return a?Hi(!0):(pi||ie.register())&&Jr(!0)};ie.update=function(a){return++re.cache&&Sr(a===!0?2:0)};ie.clearScrollMemory=Sl;ie.maxScroll=function(a,e){return pr(a,e?Ct:qe)};ie.getScrollFunc=function(a,e){return Vr(Pt(a),e?Ct:qe)};ie.getById=function(a){return $s[a]};ie.getAll=function(){return J.filter(function(a){return a.vars.id!=="ScrollSmoother"})};ie.isScrolling=function(){return!!Jt};ie.snapDirectional=po;ie.addEventListener=function(a,e){var r=li[a]||(li[a]=[]);~r.indexOf(e)||r.push(e)};ie.removeEventListener=function(a,e){var r=li[a],t=r&&r.indexOf(e);t>=0&&r.splice(t,1)};ie.batch=function(a,e){var r=[],t={},i=e.interval||.016,n=e.batchMax||1e9,s=function(u,f){var d=[],_=[],c=F.delayedCall(i,function(){f(d,_),d=[],_=[]}).pause();return function(p){d.length||c.restart(!0),d.push(p.trigger),_.push(p),n<=d.length&&c.progress(1)}},o;for(o in e)t[o]=o.substr(0,2)==="on"&&pt(e[o])&&o!=="onRefreshInit"?s(o,e[o]):e[o];return pt(n)&&(n=n(),et(ie,"refresh",function(){return n=e.batchMax()})),_n(a).forEach(function(l){var u={};for(o in t)u[o]=t[o];u.trigger=l,r.push(ie.create(u))}),r};var Zo=function(e,r,t,i){return r>i?e(i):r<0&&e(0),t>i?(i-r)/(t-r):t<0?r/(r-t):1},vs=function a(e,r){r===!0?e.style.removeProperty("touch-action"):e.style.touchAction=r===!0?"auto":r?"pan-"+r+(Ie.isTouch?" pinch-zoom":""):"none",e===Bt&&a(pe,r)},Rn={auto:1,scroll:1},cf=function(e){var r=e.event,t=e.target,i=e.axis,n=(r.changedTouches?r.changedTouches[0]:r).target,s=n._gsap||F.core.getCache(n),o=dt(),l;if(!s._isScrollT||o-s._isScrollT>2e3){for(;n&&n!==pe&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(Rn[(l=Qt(n)).overflowY]||Rn[l.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==t&&!ai(n)&&(Rn[(l=Qt(n)).overflowY]||Rn[l.overflowX]),s._isScrollT=o}(s._isScroll||i==="x")&&(r.stopPropagation(),r._gsapAllow=!0)},Pl=function(e,r,t,i){return Ie.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:r,onWheel:i=i&&cf,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return t&&et(be,Ie.eventTypes[0],Jo,!1,!0)},onDisable:function(){return Je(be,Ie.eventTypes[0],Jo,!0)}})},hf=/(input|label|select|textarea)/i,jo,Jo=function(e){var r=hf.test(e.target.tagName);(r||jo)&&(e._gsapAllow=!0,jo=r)},df=function(e){Qr(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 r=e,t=r.normalizeScrollX,i=r.momentum,n=r.allowNestedScroll,s=r.onRelease,o,l,u=Pt(e.target)||Bt,f=F.core.globals().ScrollSmoother,d=f&&f.get(),_=Er&&(e.content&&Pt(e.content)||d&&e.content!==!1&&!d.smooth()&&d.content()),c=Vr(u,qe),p=Vr(u,Ct),h=1,y=(Ie.isTouch&&te.visualViewport?te.visualViewport.scale*te.visualViewport.width:te.outerWidth)/te.innerWidth,C=0,T=pt(i)?function(){return i(o)}:function(){return i||2.8},P,x,S=Pl(u,e.type,!0,n),O=function(){return x=!1},g=cr,k=cr,w=function(){l=pr(u,qe),k=Ji(Er?1:0,l),t&&(g=Ji(0,pr(u,Ct))),P=oi},M=function(){_._gsap.y=Vi(parseFloat(_._gsap.y)+c.offset)+"px",_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(_._gsap.y)+", 0, 1)",c.offset=c.cacheID=0},N=function(){if(x){requestAnimationFrame(O);var se=Vi(o.deltaY/2),ue=k(c.v-se);if(_&&ue!==c.v+c.offset){c.offset=ue-c.v;var m=Vi((parseFloat(_&&_._gsap.y)||0)-c.offset);_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+m+", 0, 1)",_._gsap.y=m+"px",c.cacheID=re.cache,Sr()}return!0}c.offset&&M(),x=!0},E,L,I,W,Q=function(){w(),E.isActive()&&E.vars.scrollY>l&&(c()>l?E.progress(1)&&c(l):E.resetTo("scrollY",l))};return _&&F.set(_,{y:"+=0"}),e.ignoreCheck=function(Y){return Er&&Y.type==="touchmove"&&N()||h>1.05&&Y.type!=="touchstart"||o.isGesturing||Y.touches&&Y.touches.length>1},e.onPress=function(){x=!1;var Y=h;h=Vi((te.visualViewport&&te.visualViewport.scale||1)/y),E.pause(),Y!==h&&vs(u,h>1.01?!0:t?!1:"x"),L=p(),I=c(),w(),P=oi},e.onRelease=e.onGestureStart=function(Y,se){if(c.offset&&M(),!se)W.restart(!0);else{re.cache++;var ue=T(),m,he;t&&(m=p(),he=m+ue*.05*-Y.velocityX/.227,ue*=Zo(p,m,he,pr(u,Ct)),E.vars.scrollX=g(he)),m=c(),he=m+ue*.05*-Y.velocityY/.227,ue*=Zo(c,m,he,pr(u,qe)),E.vars.scrollY=k(he),E.invalidate().duration(ue).play(.01),(Er&&E.vars.scrollY>=l||m>=l-1)&&F.to({},{onUpdate:Q,duration:ue})}s&&s(Y)},e.onWheel=function(){E._ts&&E.pause(),dt()-C>1e3&&(P=0,C=dt())},e.onChange=function(Y,se,ue,m,he){if(oi!==P&&w(),se&&t&&p(g(m[2]===se?L+(Y.startX-Y.x):p()+se-m[1])),ue){c.offset&&M();var Ne=he[2]===ue,at=Ne?I+Y.startY-Y.y:c()+ue-he[1],ge=k(at);Ne&&at!==ge&&(I+=ge-at),c(ge)}(ue||se)&&Sr()},e.onEnable=function(){vs(u,t?!1:"x"),ie.addEventListener("refresh",Q),et(te,"resize",Q),c.smooth&&(c.target.style.scrollBehavior="auto",c.smooth=p.smooth=!1),S.enable()},e.onDisable=function(){vs(u,!0),Je(te,"resize",Q),ie.removeEventListener("refresh",Q),S.kill()},e.lockAxis=e.lockAxis!==!1,o=new Ie(e),o.iOS=Er,Er&&!c()&&c(1),Er&&F.ticker.add(cr),W=o._dc,E=F.to(o,{ease:"power4",paused:!0,inherit:!1,scrollX:t?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:kl(c,c(),function(){return E.pause()})},onUpdate:Sr,onComplete:W.vars.onComplete}),o};ie.sort=function(a){if(pt(a))return J.sort(a);var e=te.pageYOffset||0;return ie.getAll().forEach(function(r){return r._sortY=r.trigger?e+r.trigger.getBoundingClientRect().top:r.start+te.innerHeight}),J.sort(a||function(r,t){return(r.vars.refreshPriority||0)*-1e6+(r.vars.containerAnimation?1e6:r._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})};ie.observe=function(a){return new Ie(a)};ie.normalizeScroll=function(a){if(typeof a>"u")return bt;if(a===!0&&bt)return bt.enable();if(a===!1){bt&&bt.kill(),bt=a;return}var e=a instanceof Ie?a:df(a);return bt&&bt.target===e.target&&bt.kill(),ai(e.target)&&(bt=e),e};ie.core={_getVelocityProp:Ls,_inputObserver:Pl,_scrollers:re,_proxies:gr,bridge:{ss:function(){Jt||ui("scrollStart"),Jt=dt()},ref:function(){return ht}}};pl()&&F.registerPlugin(ie);function _f(a,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function pf(a,e,r){return e&&_f(a.prototype,e),a}/*!
* ScrollSmoother 3.14.1
* https://gsap.com
*
* @license Copyright 2008-2025, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license
* @author: Jack Doyle, jack@greensock.com
*/var _e,Dn,xt,Rr,Wi,vr,Zr,ea,j,hr,An,ta,ra,ia,na,Ml=function(){return typeof window<"u"},Ol=function(){return _e||Ml()&&(_e=window.gsap)&&_e.registerPlugin&&_e},gf=function(e){return Math.round(e*1e5)/1e5||0},Or=function(e){return j.maxScroll(e||xt)},mf=function(e,r){var t=e.parentNode||Wi,i=e.getBoundingClientRect(),n=t.getBoundingClientRect(),s=n.top-i.top,o=n.bottom-i.bottom,l=(Math.abs(s)>Math.abs(o)?s:o)/(1-r),u=-l*r,f,d;return l>0&&(f=n.height/(xt.innerHeight+n.height),d=f===.5?n.height*2:Math.min(n.height,Math.abs(-l*f/(2*f-1)))*2*(r||1),u+=r?-d*r:-d/2,l+=d),{change:l,offset:u}},yf=function(e){var r=Rr.querySelector(".ScrollSmoother-wrapper");return r||(r=Rr.createElement("div"),r.classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(r,e),r.appendChild(e)),r},fi=function(){function a(e){var r=this;Dn||a.register(_e)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),e=this.vars=e||{},hr&&hr.kill(),hr=this,ia(this);var t=e,i=t.smoothTouch,n=t.onUpdate,s=t.onStop,o=t.smooth,l=t.onFocusIn,u=t.normalizeScroll,f=t.wholePixels,d,_,c,p,h,y,C,T,P,x,S,O,g,k,w=this,M=e.effectsPrefix||"",N=j.getScrollFunc(xt),E=j.isTouch===1?i===!0?.8:parseFloat(i)||0:o===0||o===!1?0:parseFloat(o)||.8,L=E&&+e.speed||1,I=0,W=0,Q=1,Y=ta(0),se=function(){return Y.update(-I)},ue={y:0},m=function(){return d.style.overflow="visible"},he,Ne=function(v){v.update();var R=v.getTween();R&&(R.pause(),R._time=R._dur,R._tTime=R._tDur),he=!1,v.animation.progress(v.progress,!0)},at=function(v,R){(v!==I&&!x||R)&&(f&&(v=Math.round(v)),E&&(d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+v+", 0, 1)",d._gsap.y=v+"px"),W=v-I,I=v,j.isUpdating||a.isRefreshing||j.update())},ge=function(v){return arguments.length?(v<0&&(v=0),ue.y=-v,he=!0,x?I=-v:at(-v),j.isRefreshing?p.update():N(v/L),this):-I},Re=typeof ResizeObserver<"u"&&e.autoResize!==!1&&new ResizeObserver(function(){if(!j.isRefreshing){var D=Or(_)*L;D<-I&&ge(D),na.restart(!0)}}),Xe,Ce=function(v){_.scrollTop=0,!(v.target.contains&&v.target.contains(_)||l&&l(r,v)===!1)&&(j.isInViewport(v.target)||v.target===Xe||r.scrollTo(v.target,!1,"center center"),Xe=v.target)},Ge=function(v,R){if(v<R.start)return v;var B=isNaN(R.ratio)?1:R.ratio,V=R.end-R.start,q=v-R.start,ee=R.offset||0,Fe=R.pins||[],Z=Fe.offset||0,xe=R._startClamp&&R.start<=0||R.pins&&R.pins.offset?0:R._endClamp&&R.end===Or()?1:.5;return Fe.forEach(function(fe){V-=fe.distance,fe.nativeStart<=v&&(q-=fe.distance)}),Z&&(q*=(V-Z/B)/V),v+(q-ee*xe)/B-q},Ke=function D(v,R,B){B||(v.pins.length=v.pins.offset=0);var V=v.pins,q=v.markers,ee,Fe,Z,xe,fe,ne,Ue,z;for(Ue=0;Ue<R.length;Ue++)if(z=R[Ue],v.trigger&&z.trigger&&v!==z&&(z.trigger===v.trigger||z.pinnedContainer===v.trigger||v.trigger.contains(z.trigger))&&(fe=z._startNative||z._startClamp||z.start,ne=z._endNative||z._endClamp||z.end,Z=Ge(fe,v),xe=z.pin&&ne>0?Z+(ne-fe):Ge(ne,v),z.setPositions(Z,xe,!0,(z._startClamp?Math.max(0,Z):Z)-fe),z.markerStart&&q.push(_e.quickSetter([z.markerStart,z.markerEnd],"y","px")),z.pin&&z.end>0&&!B)){if(ee=z.end-z.start,Fe=v._startClamp&&z.start<0,Fe){if(v.start>0){v.setPositions(0,v.end+(v._startNative-v.start),!0),D(v,R);return}ee+=z.start,V.offset=-z.start}V.push({start:z.start,nativeStart:fe,end:z.end,distance:ee,trig:z}),v.setPositions(v.start,v.end+(Fe?-z.start:ee),!0)}},er=function(v,R){h.forEach(function(B){return Ke(B,v,R)})},Qe=function(){Wi=Rr.documentElement,vr=Rr.body,m(),requestAnimationFrame(m),h&&(j.getAll().forEach(function(v){v._startNative=v.start,v._endNative=v.end}),h.forEach(function(v){var R=v._startClamp||v.start,B=v.autoSpeed?Math.min(Or(),v.end):R+Math.abs((v.end-R)/v.ratio),V=B-v.end;if(R-=V/2,B-=V/2,R>B){var q=R;R=B,B=q}v._startClamp&&R<0?(B=v.ratio<0?Or():v.end/v.ratio,V=B-v.end,R=0):(v.ratio<0||v._endClamp&&B>=Or())&&(B=Or(),R=v.ratio<0||v.ratio>1?0:B-(B-v.start)/v.ratio,V=(B-R)*v.ratio-(v.end-v.start)),v.offset=V||1e-4,v.pins.length=v.pins.offset=0,v.setPositions(R,B,!0)}),er(j.sort())),Y.reset()},Ve=function(){return j.addEventListener("refresh",Qe)},oe=function(){return h&&h.forEach(function(v){return v.vars.onRefresh(v)})},ke=function(){return h&&h.forEach(function(v){return v.vars.onRefreshInit(v)}),oe},rt=function(v,R,B,V){return function(){var q=typeof R=="function"?R(B,V):R;q||q===0||(q=V.getAttribute("data-"+M+v)||(v==="speed"?1:0)),V.setAttribute("data-"+M+v,q);var ee=(q+"").substr(0,6)==="clamp(";return{clamp:ee,value:ee?q.substr(6,q.length-7):q}}},mt=function(v,R,B,V,q){q=(typeof q=="function"?q(V,v):q)||0;var ee=rt("speed",R,V,v),Fe=rt("lag",B,V,v),Z=_e.getProperty(v,"y"),xe=v._gsap,fe,ne,Ue,z,Pr,kt,At=[],yr=function(){R=ee(),B=parseFloat(Fe().value),fe=parseFloat(R.value)||1,Ue=R.value==="auto",Pr=Ue||ne&&ne._startClamp&&ne.start<=0||At.offset?0:ne&&ne._endClamp&&ne.end===Or()?1:.5,z&&z.kill(),z=B&&_e.to(v,{ease:An,overwrite:!1,y:"+=0",duration:B}),ne&&(ne.ratio=fe,ne.autoSpeed=Ue)},qt=function(){xe.y=Z+"px",xe.renderTransform(1),yr()},tr=[],H=0,or=function(de){if(Ue){qt();var we=mf(v,ea(0,1,-de.start/(de.end-de.start)));H=we.change,kt=we.offset}else kt=At.offset||0,H=(de.end-de.start-kt)*(1-fe);At.forEach(function(Ft){return H-=Ft.distance*(1-fe)}),de.offset=H||.001,de.vars.onUpdate(de),z&&z.progress(1)};return yr(),(fe!==1||Ue||z)&&(ne=j.create({trigger:Ue?v.parentNode:v,start:function(){return R.clamp?"clamp(top bottom+="+q+")":"top bottom+="+q},end:function(){return R.value<0?"max":R.clamp?"clamp(bottom top-="+q+")":"bottom top-="+q},scroller:_,scrub:!0,refreshPriority:-999,onRefreshInit:qt,onRefresh:or,onKill:function(de){var we=h.indexOf(de);we>=0&&h.splice(we,1),qt()},onUpdate:function(de){var we=Z+H*(de.progress-Pr),Ft=At.length,rr=0,Be,ir,U;if(de.offset){if(Ft){for(ir=-I,U=de.end;Ft--;){if(Be=At[Ft],Be.trig.isActive||ir>=Be.start&&ir<=Be.end){z&&(Be.trig.progress+=Be.trig.direction<0?.001:-.001,Be.trig.update(0,0,1),z.resetTo("y",parseFloat(xe.y),-W,!0),Q&&z.progress(1));return}ir>Be.end&&(rr+=Be.distance),U-=Be.distance}we=Z+rr+H*((_e.utils.clamp(de.start,de.end,ir)-de.start-rr)/(U-de.start)-Pr)}tr.length&&!Ue&&tr.forEach(function(X){return X(we-rr)}),we=gf(we+kt),z?(z.resetTo("y",we,-W,!0),Q&&z.progress(1)):(xe.y=we+"px",xe.renderTransform(1))}}}),or(ne),_e.core.getCache(ne.trigger).stRevert=ke,ne.startY=Z,ne.pins=At,ne.markers=tr,ne.ratio=fe,ne.autoSpeed=Ue,v.style.willChange="transform"),ne};Ve(),j.addEventListener("killAll",Ve),_e.delayedCall(.5,function(){return Q=0}),this.scrollTop=ge,this.scrollTo=function(D,v,R){var B=_e.utils.clamp(0,Or(),isNaN(D)?r.offset(D,R,!!v&&!x):+D);v?x?_e.to(r,{duration:E,scrollTop:B,overwrite:"auto",ease:An}):N(B):ge(B)},this.offset=function(D,v,R){D=Zr(D)[0];var B=D.style.cssText,V=j.create({trigger:D,start:v||"top top"}),q;return h&&(Q?j.refresh():er([V],!0)),q=V.start/(R?L:1),V.kill(!1),D.style.cssText=B,_e.core.getCache(D).uncache=1,q};function b(){return c=d.clientHeight,d.style.overflow="visible",vr.style.height=xt.innerHeight+(c-xt.innerHeight)/L+"px",c-xt.innerHeight}this.content=function(D){if(arguments.length){var v=Zr(D||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||vr.children[0];return v!==d&&(d=v,P=d.getAttribute("style")||"",Re&&Re.observe(d),_e.set(d,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),E||_e.set(d,{clearProps:"transform"})),this}return d},this.wrapper=function(D){return arguments.length?(_=Zr(D||"#smooth-wrapper")[0]||yf(d),T=_.getAttribute("style")||"",b(),_e.set(_,E?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):_},this.effects=function(D,v){var R;if(h||(h=[]),!D)return h.slice(0);D=Zr(D),D.forEach(function(fe){for(var ne=h.length;ne--;)h[ne].trigger===fe&&h[ne].kill()}),v=v||{};var B=v,V=B.speed,q=B.lag,ee=B.effectsPadding,Fe=[],Z,xe;for(Z=0;Z<D.length;Z++)xe=mt(D[Z],V,q,Z,ee),xe&&Fe.push(xe);return(R=h).push.apply(R,Fe),v.refresh!==!1&&j.refresh(),Fe},this.sections=function(D,v){var R;if(y||(y=[]),!D)return y.slice(0);var B=Zr(D).map(function(V){return j.create({trigger:V,start:"top 120%",end:"bottom -20%",onToggle:function(ee){V.style.opacity=ee.isActive?"1":"0",V.style.pointerEvents=ee.isActive?"all":"none"}})});return v&&v.add?(R=y).push.apply(R,B):y=B.slice(0),B},this.content(e.content),this.wrapper(e.wrapper),this.render=function(D){return at(D||D===0?D:I)},this.getVelocity=function(){return Y.getVelocity(-I)},j.scrollerProxy(_,{scrollTop:ge,scrollHeight:function(){return b()&&vr.scrollHeight},fixedMarkers:e.fixedMarkers!==!1&&!!E,content:d,getBoundingClientRect:function(){return{top:0,left:0,width:xt.innerWidth,height:xt.innerHeight}}}),j.defaults({scroller:_});var lt=j.getAll().filter(function(D){return D.scroller===xt||D.scroller===_});lt.forEach(function(D){return D.revert(!0,!0)}),p=j.create({animation:_e.fromTo(ue,{y:function(){return k=0,0}},{y:function(){return k=1,-b()},immediateRender:!1,ease:"none",data:"ScrollSmoother",duration:100,onUpdate:function(){if(k){var v=he;v&&(Ne(p),ue.y=I),at(ue.y,v),se(),n&&!x&&n(w)}}}),onRefreshInit:function(v){if(!a.isRefreshing){if(a.isRefreshing=!0,h){var R=j.getAll().filter(function(V){return!!V.pin});h.forEach(function(V){V.vars.pinnedContainer||R.forEach(function(q){if(q.pin.contains(V.trigger)){var ee=V.vars;ee.pinnedContainer=q.pin,V.vars=null,V.init(ee,V.animation)}})})}var B=v.getTween();g=B&&B._end>B._dp._time,O=I,ue.y=0,E&&(j.isTouch===1&&(_.style.position="absolute"),_.scrollTop=0,j.isTouch===1&&(_.style.position="fixed"))}},onRefresh:function(v){v.animation.invalidate(),ue.y=0,v.setPositions(v.start,b()/L),g||Ne(v),ue.y=-N()*L,at(ue.y),Q||(g&&(he=!1),v.animation.progress(_e.utils.clamp(0,1,O/L/-v.end))),g&&(v.progress-=.001,v.update()),a.isRefreshing=!1},id:"ScrollSmoother",scroller:xt,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function(){return b()/L},onScrubComplete:function(){Y.reset(),s&&s(r)},scrub:E||!0}),this.smooth=function(D){return arguments.length&&(E=D||0,L=E&&+e.speed||1,p.scrubDuration(D)),p.getTween()?p.getTween().duration():0},p.getTween()&&(p.getTween().vars.ease=e.ease||An),this.scrollTrigger=p,e.effects&&this.effects(e.effects===!0?"[data-"+M+"speed], [data-"+M+"lag]":e.effects,{effectsPadding:e.effectsPadding,refresh:!1}),e.sections&&this.sections(e.sections===!0?"[data-section]":e.sections),lt.forEach(function(D){D.vars.scroller=_,D.revert(!1,!0),D.init(D.vars,D.animation)}),this.paused=function(D,v){return arguments.length?(!!x!==D&&(D?(p.getTween()&&p.getTween().pause(),N(-I/L),Y.reset(),S=j.normalizeScroll(),S&&S.disable(),x=j.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return ge(-I)}}),x.nested=ra(Wi,"wheel,touch,scroll",!0,v!==!1)):(x.nested.kill(),x.kill(),x=0,S&&S.enable(),p.progress=(-I/L-p.start)/(p.end-p.start),Ne(p))),this):!!x},this.kill=this.revert=function(){r.paused(!1),Ne(p),p.kill();for(var D=(h||[]).concat(y||[]),v=D.length;v--;)D[v].kill();j.scrollerProxy(_),j.removeEventListener("killAll",Ve),j.removeEventListener("refresh",Qe),_.style.cssText=T,d.style.cssText=P;var R=j.defaults({});R&&R.scroller===_&&j.defaults({scroller:xt}),r.normalizer&&j.normalizeScroll(!1),clearInterval(C),hr=null,Re&&Re.disconnect(),vr.style.removeProperty("height"),xt.removeEventListener("focusin",Ce)},this.refresh=function(D,v){return p.refresh(D,v)},u&&(this.normalizer=j.normalizeScroll(u===!0?{debounce:!0,content:!E&&d}:u)),j.config(e),"scrollBehavior"in xt.getComputedStyle(vr)&&_e.set([vr,Wi],{scrollBehavior:"auto"}),xt.addEventListener("focusin",Ce),C=setInterval(se,250),Rr.readyState==="loading"||requestAnimationFrame(function(){return j.refresh()})}return a.register=function(r){return Dn||(_e=r||Ol(),Ml()&&window.document&&(xt=window,Rr=document,Wi=Rr.documentElement,vr=Rr.body),_e&&(Zr=_e.utils.toArray,ea=_e.utils.clamp,An=_e.parseEase("expo"),ia=_e.core.context||function(){},j=_e.core.globals().ScrollTrigger,_e.core.globals("ScrollSmoother",a),vr&&j&&(na=_e.delayedCall(.2,function(){return j.isRefreshing||hr&&hr.refresh()}).pause(),ta=j.core._getVelocityProp,ra=j.core._inputObserver,a.refresh=j.refresh,Dn=1))),Dn},pf(a,[{key:"progress",get:function(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}]),a}();fi.version="3.14.1";fi.create=function(a){return hr&&a&&hr.content()===Zr(a.content)[0]?hr:new fi(a)};fi.get=function(){return hr};Ol()&&_e.registerPlugin(fi);vi.registerPlugin(ie,fi);(function(a,e){(function(){e.path.isFront,console.log("drupalSettings",e);const t=["pyramide","prct","infinite","pi","supeg","cone","croissant","cube","diamant","cylindre"];let i=[],n=null,s,o={x:0,y:0};function l(){console.log("MathalloTheme init()"),u(),f(),_(),c(),y(),T()}function u(){document.getElementById("burger-btn").parentElement.addEventListener("click",function(k){this.firstElementChild.toggleAttribute("opened"),this.firstElementChild.nextElementSibling.toggleAttribute("opened")})}function f(){let g=document.getElementById("partie-principes-pratique");if(g){let k=g.getElementsByClassName("field-card");for(const w of k)w.addEventListener("mousemove",function(M){for(const N of this.parentElement.children)N.classList.add("back-card"),N.classList.remove("front-card");this.classList.add("front-card"),this.classList.remove("back-card")})}}function d(){i.forEach(({card:g,forme:k,formepos:w})=>{k.style.top=`${g.offsetTop+w.top}px`,k.style.left=`${g.offsetLeft+w.left}px`})}function _(){let g=document.querySelectorAll('article[role="home-presentation"] p'),k=[];for(const w of g){let M=Math.round(Math.random()*(t.length-1));for(;k.includes(M);)M=Math.round(Math.random()*(t.length-1));k.push(M),w.classList.add(`forme-${t[M]}`)}}async function c(){const g=document.querySelector('main[role="main"] > .layout-content > .wrapper');let k=document.querySelectorAll('article[role="home-presentation"], .field-card, .node-type-chapitre, .node-type-partie'),w=[],M=1;for(const N of k){let E={card:N},L=Math.round(Math.random()*(t.length-1));for(;w.includes(L);)L=Math.round(Math.random()*(t.length-1));w.push(L);let I=await h(N,L);g.prepend(I),E.forme=I,E.formepos={left:I.offsetLeft-N.offsetLeft,top:I.offsetTop-N.offsetTop},i.push(E),p(N,I,M),M*=-1}window.addEventListener("resize",d)}function p(g,k,w){vi.timeline({scrollTrigger:{trigger:g,start:"top bottom",end:"bottom top",scrub:!0,ease:"power4.out",snap:!1}}).from(g.children,{opacity:.4},0).to(g.children,{opacity:1},.5).to(g.children,{opacity:.4},.7).from(g,{translateX:`${200*w}px`,translateY:`${100*w}px`},0).to(g,{translateX:"0",translateY:"0"},.5),vi.to(k.querySelector("svg"),{scrollTrigger:{trigger:k,start:"top bottom",end:"bottom top",scrub:!0,ease:"power4.out"},rotation:Math.random()>.5?45:-45,skewX:Math.random()>.5?10:-10}),vi.timeline({scrollTrigger:{trigger:g,start:"top center",end:"bottom center",scrub:!0,markers:!1}}).to(k.querySelector("svg"),{stroke:"#f661e2",duration:.1},.3).to(k.querySelector("svg"),{stroke:"#1642bc",duration:.1},.7)}async function h(g,k){let w=document.createElement("div");w.classList.add("bg-forme");const N=await(await fetch(`/themes/custom/mathallo/assets/img/formes/bordure/${t[k]}.svg`)).text();w.innerHTML=N;const E=w.querySelector("svg");let L=200+Math.random()*300;E.getAttribute("width"),w.style.width=w.style.height=`${L}px`,E.setAttribute("width",L),E.setAttribute("height",L);let I=g.offsetTop+g.clientHeight/2-L/2;g.clientHeight<300&&(I=Math.random()>.5?g.offsetTop-L/2:g.offsetTop+g.clientHeight-L/2),w.style.top=`${I}px`;let W=20+Math.random()*20;return g.classList.contains("field-principes-reflexion")||g.classList.contains("field-ressources")?w.style.left=`${g.offsetLeft-L+W}px`:g.classList.contains("field-en-pratique")||g.classList.contains("field-plus-loin")?w.style.left=`${g.offsetLeft+g.clientWidth-W}px`:w.style.left=Math.random()>.5?`${g.offsetLeft-L+W}px`:`${g.offsetLeft+g.clientWidth-W}px`,w}function y(){n=fi.create({smooth:3,effects:!0,smoothTouch:.1,wrapper:'main[role="main"]',content:'main[role="main"]>.layout-content',onUpdate:C}),console.log("smoother",n),vi.to("#parallax-bg",{y:(g,k)=>-(ie.maxScroll(window)*1.2),ease:"none",scrollTrigger:{trigger:'main[role="main"] > .layout-content > .wrapper',start:"top bottom",end:"bottom top",scrub:!0,invalidateOnRefresh:!0}})}function C(g){O()}function T(){let g=document.body;s=document.createElement("div"),s.classList.add("fn-modale"),g.append(s);let k=document.querySelectorAll(".footnote__citation");for(const w of k)console.log("fn",w),w.addEventListener("mouseenter",P),w.addEventListener("mouseleave",x);window.addEventListener("mousemove",S)}function P(g){console.log("onMouseEnterFN, event:",g),s.innerHTML=g.target.dataset.content,s.classList.add("visible")}function x(g){console.log("onMouseLeaveFN, event:",g),s.classList.remove("visible")}function S(g){o={x:g.clientX,y:g.clientY},O()}function O(){if(n){let k=n.content().getBoundingClientRect();s.style.left=`${o.x-k.left}px`;let w=o.y-k.top;s.style.top=`${w-s.clientHeight+60}px`,console.log("window",window)}else console.warn("no smoother")}l()})()})(Drupal,drupalSettings);