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