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