vendor: 32,547 bytes, lines 1-7
1/** 2 * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1. 3 * Original file: /npm/[email protected]/dist/ScrollTrigger.min.js 4 * 5 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files 6 */ 7var En={exports:{}};var Li=En.exports,Ci;function Pi(){return Ci||(Ci=1,(function(Ii,Si){(function(Jr,ae){ae(Si)})(Li,function(Jr){function ae(r,t){for(var n=0;n<t.length;n++){var e=t[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}function He(){return ct||typeof window<"u"&&(ct=window.gsap)&&ct.registerPlugin&&ct}function br(r,t){return~rr.indexOf(r)&&rr[rr.indexOf(r)+1][t]}function on(r){return!!~Fe.indexOf(r)}function xt(r,t,n,e,i){return r.addEventListener(t,n,{passive:e!==!1,capture:!!i})}function _t(r,t,n,e){return r.removeEventListener(t,n,!!e)}function se(){return ur&&ur.isPressed||R.cache++}function Dn(r,t){function n(e){if(e||e===0){Ge&&(Lt.history.scrollRestoration="manual");var i=ur&&ur.isPressed;e=n.v=Math.round(e)||(ur&&ur.iOS?1:0),r(e),n.cacheID=R.cache,i&&ue("ss",e)}else(t||R.cache!==n.cacheID||ue("ref"))&&(n.cacheID=R.cache,n.v=r());return n.v+n.offset}return n.offset=0,r&&n}function At(r,t){return(t&&t._ctx&&t._ctx.selector||ct.utils.toArray)(r)[0]||(typeof r=="string"&&ct.config().nullTargetWarn!==!1?console.warn("Element not found:",r):null)}function xr(r,t){var n=t.s,e=t.sc;on(r)&&(r=Dr.scrollingElement||_r);var i=R.indexOf(r),a=e===rt.sc?1:2;~i||(i=R.push(r)-1),R[i+a]||xt(r,"scroll",se);var l=R[i+a],u=l||(R[i+a]=Dn(br(r,n),!0)||(on(r)?e:Dn(function(g){return arguments.length?r[n]=g:r[n]})));return u.target=r,l||(u.smooth=ct.getProperty(r,"scrollBehavior")==="smooth"),u}function le(r,t,n){function e(_,Y){var y=sn();Y||g<y-l?(a=i,i=_,u=l,l=y):n?i+=_:i=a+(_-a)/(y-u)*(l-u)}var i=r,a=r,l=sn(),u=l,g=t||50,v=Math.max(500,3*g);return{update:e,reset:function(){a=i=n?0:i,u=l=0},getVelocity:function(Y){var y=u,S=a,U=sn();return!Y&&Y!==0||Y===i||e(Y),l===u||v<U-u?0:(i+(n?S:-S))/((n?U:l)-y)*1e3}}}function an(r,t){return t&&!r._gsapAllow&&r.preventDefault(),r.changedTouches?r.changedTouches[0]:r}function We(r){var t=Math.max.apply(Math,r),n=Math.min.apply(Math,r);return Math.abs(t)>=Math.abs(n)?t:n}function Ie(){(An=ct.core.globals().ScrollTrigger)&&An.core&&(function(){var t=An.core,n=t.bridge||{},e=t._scrollers,i=t._proxies;e.push.apply(e,R),i.push.apply(i,rr),R=e,rr=i,ue=function(l,u){return n[l](u)}})()}function Ne(r){return ct=r||He(),!Rn&&ct&&typeof document<"u"&&document.body&&(Lt=window,_r=(Dr=document).documentElement,Kr=Dr.body,Fe=[Lt,Dr,_r,Kr],ct.utils.clamp,Ue=ct.core.context||function(){},Rr="onpointerenter"in Kr?"pointer":"mouse",qe=Q.isTouch=Lt.matchMedia&&Lt.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Lt||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,Qt=Q.eventTypes=("ontouchstart"in _r?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in _r?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Ge=0},500),Ie(),Rn=1),Rn}var ct,Rn,Lt,Dr,_r,Kr,qe,Rr,An,Fe,ur,Qt,Ue,Ge=1,Vr=[],R=[],rr=[],sn=Date.now,ue=function(t,n){return n},zn="scrollLeft",Yn="scrollTop",wt={s:zn,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Dn(function(r){return arguments.length?Lt.scrollTo(r,rt.sc()):Lt.pageXOffset||Dr[zn]||_r[zn]||Kr[zn]||0})},rt={s:Yn,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:wt,sc:Dn(function(r){return arguments.length?Lt.scrollTo(wt.sc(),r):Lt.pageYOffset||Dr[Yn]||_r[Yn]||Kr[Yn]||0})};wt.op=rt,R.cache=0;var Q=(ce.prototype.init=function(t){Rn||Ne(ct)||console.warn("Please gsap.registerPlugin(Observer)"),An||Ie();var n=t.tolerance,e=t.dragMinimum,i=t.type,a=t.target,l=t.lineHeight,u=t.debounce,g=t.preventDefault,v=t.onStop,_=t.onStopDelay,Y=t.ignore,y=t.wheelSpeed,S=t.event,U=t.onDragStart,zt=t.onDragEnd,M=t.onDrag,B=t.onPress,tt=t.onRelease,st=t.onRight,X=t.onLeft,L=t.onUp,mt=t.onDown,yt=t.onChangeX,Gt=t.onChangeY,Bt=t.onChange,Nr=t.onToggleX,ft=t.onToggleY,pr=t.onHover,Zt=t.onHoverEnd,V=t.onMove,Yt=t.ignoreCheck,J=t.isNormalizer,et=t.onGestureStart,b=t.onGestureEnd,dr=t.onWheel,Tt=t.onEnable,Et=t.onDisable,Ot=t.onClick,gr=t.scrollSpeed,ir=t.capture,wr=t.allowClicks,Cr=t.lockAxis,hr=t.onLockAxis;function Dt(){return Vt=sn()}function or(f,N){return(s.event=f)&&Y&&(function(c,h){for(var p=h.length;p--;)if(h[p]===c||h[p].contains(c))return!0;return!1})(f.target,Y)||N&&Tr&&f.pointerType!=="touch"||Yt&&Yt(f,N)}function Sr(){var f=s.deltaX=We(It),N=s.deltaY=We(Kt),j=Math.abs(f)>=n,c=Math.abs(N)>=n;Bt&&(j||c)&&Bt(s,f,N,It,Kt),j&&(st&&0<s.deltaX&&st(s),X&&s.deltaX<0&&X(s),yt&&yt(s),Nr&&s.deltaX<0!=bt<0&&Nr(s),bt=s.deltaX,It[0]=It[1]=It[2]=0),c&&(mt&&0<s.deltaY&&mt(s),L&&s.deltaY<0&&L(s),Gt&&Gt(s),ft&&s.deltaY<0!=Jt<0&&ft(s),Jt=s.deltaY,Kt[0]=Kt[1]=Kt[2]=0),(vr||kt)&&(V&&V(s),kt&&(U&&kt===1&&U(s),M&&M(s),kt=0),vr=!1),dt&&!(dt=!1)&&hr&&hr(s),m&&(dr(s),m=!1),pt=0}function qr(f,N,j){It[j]+=f,Kt[j]+=N,s._vx.update(f),s._vy.update(N),u?pt=pt||requestAnimationFrame(Sr):Sr()}function lt(f,N){Cr&&!P&&(s.axis=P=Math.abs(f)>Math.abs(N)?"x":"y",dt=!0),P!=="y"&&(It[2]+=f,s._vx.update(f,!0)),P!=="x"&&(Kt[2]+=N,s._vy.update(N,!0)),u?pt=pt||requestAnimationFrame(Sr):Sr()}function x(f){if(!or(f,1)){var N=(f=an(f,g)).clientX,j=f.clientY,c=N-s.x,h=j-s.y,p=s.isDragging;s.x=N,s.y=j,(p||(c||h)&&(Math.abs(s.startX-N)>=e||Math.abs(s.startY-j)>=e))&&(kt=p?2:1,p||(s.isDragging=!0),lt(c,h))}}function Xt(f){return f.touches&&1<f.touches.length&&(s.isGesturing=!0)&&et(f,s.isDragging)}function Cn(){return(s.isGesturing=!1)||b(s)}function Fr(f){if(!or(f)){var N=Mr(),j=mr();qr((N-rn)*gr,(j-o)*gr,1),rn=N,o=j,v&&w.restart(!0)}}function Sn(f){if(!or(f)){f=an(f,g),dr&&(m=!0);var N=(f.deltaMode===1?l:f.deltaMode===2?Lt.innerHeight:1)*y;qr(f.deltaX*N,f.deltaY*N,0),v&&!J&&w.restart(!0)}}function Mn(f){if(!or(f)){var N=f.clientX,j=f.clientY,c=N-s.x,h=j-s.y;s.x=N,s.y=j,vr=!0,v&&w.restart(!0),(c||h)&<(c,h)}}function kr(f){s.event=f,pr(s)}function G(f){s.event=f,Zt(s)}function tn(f){return or(f)||an(f,g)&&Ot(s)}this.target=a=At(a)||_r,this.vars=t,Y=Y&&ct.utils.toArray(Y),n=n||1e-9,e=e||0,y=y||1,gr=gr||1,i=i||"wheel,touch,pointer",u=u!==!1,l=l||parseFloat(Lt.getComputedStyle(Kr).lineHeight)||22;var pt,w,kt,vr,m,dt,P,s=this,bt=0,Jt=0,ar=t.passive||!g&&t.passive!==!1,Mr=xr(a,wt),mr=xr(a,rt),rn=Mr(),o=mr(),Tr=~i.indexOf("touch")&&!~i.indexOf("pointer")&&Qt[0]==="pointerdown",nn=on(a),it=a.ownerDocument||Dr,It=[0,0,0],Kt=[0,0,0],Vt=0,O=s.onPress=function(f){or(f,1)||f&&f.button||(s.axis=P=null,w.pause(),s.isPressed=!0,f=an(f),bt=Jt=0,s.startX=s.x=f.clientX,s.startY=s.y=f.clientY,s._vx.reset(),s._vy.reset(),xt(J?a:it,Qt[1],x,ar,!0),s.deltaX=s.deltaY=0,B&&B(s))},Ur=s.onRelease=function(f){if(!or(f,1)){_t(J?a:it,Qt[1],x,!0);var N=!isNaN(s.y-s.startY),j=s.isDragging,c=j&&(3<Math.abs(s.x-s.startX)||3<Math.abs(s.y-s.startY)),h=an(f);!c&&N&&(s._vx.reset(),s._vy.reset(),g&&wr&&ct.delayedCall(.08,function(){if(300<sn()-Vt&&!f.defaultPrevented){if(f.target.click)f.target.click();else if(it.createEvent){var p=it.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,Lt,1,h.screenX,h.screenY,h.clientX,h.clientY,!1,!1,!1,!1,0,null),f.target.dispatchEvent(p)}}})),s.isDragging=s.isGesturing=s.isPressed=!1,v&&j&&!J&&w.restart(!0),kt&&Sr(),zt&&j&&zt(s),tt&&tt(s,c)}};w=s._dc=ct.delayedCall(_||.25,function(){s._vx.reset(),s._vy.reset(),w.pause(),v&&v(s)}).pause(),s.deltaX=s.deltaY=0,s._vx=le(0,50,!0),s._vy=le(0,50,!0),s.scrollX=Mr,s.scrollY=mr,s.isDragging=s.isGesturing=s.isPressed=!1,Ue(this),s.enable=function(f){return s.isEnabled||(xt(nn?it:a,"scroll",se),0<=i.indexOf("scroll")&&xt(nn?it:a,"scroll",Fr,ar,ir),0<=i.indexOf("wheel")&&xt(a,"wheel",Sn,ar,ir),(0<=i.indexOf("touch")&&qe||0<=i.indexOf("pointer"))&&(xt(a,Qt[0],O,ar,ir),xt(it,Qt[2],Ur),xt(it,Qt[3],Ur),wr&&xt(a,"click",Dt,!0,!0),Ot&&xt(a,"click",tn),et&&xt(it,"gesturestart",Xt),b&&xt(it,"gestureend",Cn),pr&&xt(a,Rr+"enter",kr),Zt&&xt(a,Rr+"leave",G),V&&xt(a,Rr+"move",Mn)),s.isEnabled=!0,s.isDragging=s.isGesturing=s.isPressed=vr=kt=!1,s._vx.reset(),s._vy.reset(),rn=Mr(),o=mr(),f&&f.type&&O(f),Tt&&Tt(s)),s},s.disable=function(){s.isEnabled&&(Vr.filter(function(f){return f!==s&&on(f.target)}).length||_t(nn?it:a,"scroll",se),s.isPressed&&(s._vx.reset(),s._vy.reset(),_t(J?a:it,Qt[1],x,!0)),_t(nn?it:a,"scroll",Fr,ir),_t(a,"wheel",Sn,ir),_t(a,Qt[0],O,ir),_t(it,Qt[2],Ur),_t(it,Qt[3],Ur),_t(a,"click",Dt,!0),_t(a,"click",tn),_t(it,"gesturestart",Xt),_t(it,"gestureend",Cn),_t(a,Rr+"enter",kr),_t(a,Rr+"leave",G),_t(a,Rr+"move",Mn),s.isEnabled=s.isPressed=s.isDragging=!1,Et&&Et(s))},s.kill=s.revert=function(){s.disable();var f=Vr.indexOf(s);0<=f&&Vr.splice(f,1),ur===s&&(ur=0)},Vr.push(s),J&&on(a)&&(ur=s),s.enable(S)},(function(t,n,e){return n&&ae(t.prototype,n),t})(ce,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),ce);function ce(r){this.init(r)}Q.version="3.13.0",Q.create=function(r){return new Q(r)},Q.register=Ne,Q.getAll=function(){return Vr.slice()},Q.getById=function(r){return Vr.filter(function(t){return t.vars.id===r})[0]},He()&&ct.registerPlugin(Q);function Be(r,t,n){var e=Ht(r)&&(r.substr(0,6)==="clamp("||-1<r.indexOf("max"));return(n["_"+t+"Clamp"]=e)?r.substr(6,r.length-7):r}function Je(r,t){return!t||Ht(r)&&r.substr(0,6)==="clamp("?r:"clamp("+r+")"}function Ke(){return Gn=1}function Ve(){return Gn=0}function nr(r){return r}function ln(r){return Math.round(1e5*r)/1e5||0}function je(){return typeof window<"u"}function $e(){return d||je()&&(d=window.gsap)&&d.registerPlugin&&d}function Ar(r){return!!~me.indexOf(r)}function Qe(r){return(r==="Height"?Ce:A["inner"+r])||Pt["client"+r]||W["client"+r]}function Ze(r){return br(r,"getBoundingClientRect")||(Ar(r)?function(){return On.width=A.innerWidth,On.height=Ce,On}:function(){return cr(r)})}function er(r,t){var n=t.s,e=t.d2,i=t.d,a=t.a;return Math.max(0,(n="scroll"+e)&&(a=br(r,n))?a()-Ze(r)()[i]:Ar(r)?(Pt[n]||W[n])-Qe(e):r[n]-r["offset"+e])}function Xn(r,t){for(var n=0;n<Qr.length;n+=3)t&&!~t.indexOf(Qr[n+1])||r(Qr[n],Qr[n+1],Qr[n+2])}function gt(r){return typeof r=="function"}function un(r){return typeof r=="number"}function zr(r){return typeof r=="object"}function cn(r,t,n){return r&&r.progress(t?0:1)&&n&&r.pause()}function fe(r,t){if(r.enabled){var n=r._ctx?r._ctx.add(function(){return t(r)}):t(r);n&&n.totalTime&&(r.callbackAnimation=n)}}function qt(r){return A.getComputedStyle(r)}function Oe(r,t){for(var n in t)n in r||(r[n]=t[n]);return r}function Ln(r,t){var n=t.d2;return r["offset"+n]||r["client"+n]||0}function ke(r){var t,n=[],e=r.labels,i=r.duration();for(t in e)n.push(e[t]/i);return n}function pe(r){var t=d.utils.snap(r),n=Array.isArray(r)&&r.slice(0).sort(function(e,i){return e-i});return n?function(e,i,a){var l;if(a===void 0&&(a=.001),!i)return t(e);if(0<i){for(e-=a,l=0;l<n.length;l++)if(n[l]>=e)return n[l];return n[l-1]}for(l=n.length,e+=a;l--;)if(n[l]<=e)return n[l];return n[0]}:function(e,i,a){a===void 0&&(a=.001);var l=t(e);return!i||Math.abs(l-e)<a||l-e<0==i<0?l:t(i<0?e-r:e+r)}}function Pn(r,t,n,e){return n.split(",").forEach(function(i){return r(t,i,e)})}function ot(r,t,n,e,i){return r.addEventListener(t,n,{passive:!e,capture:!!i})}function at(r,t,n,e){return r.removeEventListener(t,n,!!e)}function Hn(r,t,n){(n=n&&n.wheelHandler)&&(r(t,"wheel",n),r(t,"touchmove",n))}function Wn(r,t){if(Ht(r)){var n=r.indexOf("="),e=~n?(r.charAt(n-1)+1)*parseFloat(r.substr(n+1)):0;~n&&(r.indexOf("%")>n&&(e*=t/100),r=r.substr(0,n-1)),r=e+(r in jn?jn[r]*t:~r.indexOf("%")?parseFloat(r)*t/100:parseFloat(r)||0)}return r}function In(r,t,n,e,i,a,l,u){var g=i.startColor,v=i.endColor,_=i.fontSize,Y=i.indent,y=i.fontWeight,S=F.createElement("div"),U=Ar(n)||br(n,"pinType")==="fixed",zt=r.indexOf("scroller")!==-1,M=U?W:n,B=r.indexOf("start")!==-1,tt=B?g:v,st="border-color:"+tt+";font-size:"+_+";color:"+tt+";font-weight:"+y+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return st+="position:"+((zt||u)&&U?"fixed;":"absolute;"),!zt&&!u&&U||(st+=(e===rt?Ee:De)+":"+(a+parseFloat(Y))+"px;"),l&&(st+="box-sizing:border-box;text-align:left;width:"+l.offsetWidth+"px;"),S._isStart=B,S.setAttribute("class","gsap-marker-"+r+(t?" marker-"+t:"")),S.style.cssText=st,S.innerText=t||t===0?r+"-"+t:r,M.children[0]?M.insertBefore(S,M.children[0]):M.appendChild(S),S._offset=S["offset"+e.op.d2],$n(S,0,e,B),S}function ti(){return 34<vt()-Ft&&(vn=vn||requestAnimationFrame(fr))}function jr(){St&&St.isPressed&&!(St.startX>W.clientWidth)||(R.cache++,St?vn=vn||requestAnimationFrame(fr):fr(),Ft||Hr("scrollStart"),Ft=vt())}function de(){gi=A.innerWidth,di=A.innerHeight}function fn(r){R.cache++,r!==!0&&(ht||pi||F.fullscreenElement||F.webkitFullscreenElement||xe&&gi===A.innerWidth&&!(Math.abs(A.innerHeight-di)>.25*A.innerHeight))||Fn.restart(!0)}function ge(){return at(z,"scrollEnd",ge)||Ir(!0)}function ri(r){for(var t=0;t<Wt.length;t+=5)(!r||Wt[t+4]&&Wt[t+4].query===r)&&(Wt[t].style.cssText=Wt[t+1],Wt[t].getBBox&&Wt[t].setAttribute("transform",Wt[t+2]||""),Wt[t+3].uncache=1)}function he(r,t){var n;for(Ct=0;Ct<D.length;Ct++)!(n=D[Ct])||t&&n._ctx!==t||(r?n.kill(1):n.revert(!0,!0));Bn=!0,t&&ri(t),t||Hr("revert")}function ni(r,t){R.cache++,!t&&Mt||R.forEach(function(n){return gt(n)&&n.cacheID++&&(n.rec=0)}),Ht(r)&&(A.history.scrollRestoration=we=r)}function ei(){W.appendChild(hn),Ce=!St&&hn.offsetHeight||A.innerHeight,W.removeChild(hn)}function ii(r){return pn(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(t){return t.style.display=r?"none":"block"})}function ve(r,t,n,e){if(!r._gsap.swappedIn){for(var i,a=ze.length,l=t.style,u=r.style;a--;)l[i=ze[a]]=n[i];l.position=n.position==="absolute"?"absolute":"relative",n.display==="inline"&&(l.display="inline-block"),u[De]=u[Ee]="auto",l.flexBasis=n.flexBasis||"auto",l.overflow="visible",l.boxSizing="border-box",l[Xr]=Ln(r,wt)+nt,l[Lr]=Ln(r,rt)+nt,l[k]=u[Ut]=u.top=u.left="0",Or(e),u[Xr]=u.maxWidth=n[Xr],u[Lr]=u.maxHeight=n[Lr],u[k]=n[k],r.parentNode!==t&&(r.parentNode.insertBefore(t,r),t.appendChild(r)),r._gsap.swappedIn=!0}}function Nn(r){for(var t=Zn.length,n=r.style,e=[],i=0;i<t;i++)e.push(Zn[i],n[Zn[i]]);return e.t=r,e}function oi(r,t,n,e,i,a,l,u,g,v,_,Y,y,S){gt(r)&&(r=r(u)),Ht(r)&&r.substr(0,3)==="max"&&(r=Y+(r.charAt(4)==="="?Wn("0"+r.substr(3),n):0));var U,zt,M,B=y?y.time():0;if(y&&y.seek(0),isNaN(r)||(r=+r),un(r))y&&(r=d.utils.mapRange(y.scrollTrigger.start,y.scrollTrigger.end,0,Y,r)),l&&$n(l,n,e,!0);else{gt(t)&&(t=t(u));var tt,st,X,L,mt=(r||"0").split(" ");M=At(t,u)||W,(tt=cr(M)||{})&&(tt.left||tt.top)||qt(M).display!=="none"||(L=M.style.display,M.style.display="block",tt=cr(M),L?M.style.display=L:M.style.removeProperty("display")),st=Wn(mt[0],tt[e.d]),X=Wn(mt[1]||"0",n),r=tt[e.p]-g[e.p]-v+st+i-X,l&&$n(l,X,e,n-X<20||l._isStart&&20<X),n-=n-X}if(S&&(u[S]=r||-.001,r<0&&(r=0)),a){var yt=r+n,Gt=a._isStart;U="scroll"+e.d2,$n(a,yt,e,Gt&&20<yt||!Gt&&(_?Math.max(W[U],Pt[U]):a.parentNode[U])<=yt+1),_&&(g=cr(l),_&&(a.style[e.op.p]=g[e.op.p]-e.op.m-a._offset+nt))}return y&&M&&(U=cr(M),y.seek(Y),zt=cr(M),y._caScrollDist=U[e.p]-zt[e.p],r=r/y._caScrollDist*Y),y&&y.seek(B),y?r:Math.round(r)}function ai(r,t,n,e){if(r.parentNode!==t){var i,a,l=r.style;if(t===W){for(i in r._stOrig=l.cssText,a=qt(r))+i||Di.test(i)||!a[i]||typeof l[i]!="string"||i==="0"||(l[i]=a[i]);l.top=n,l.left=e}else l.cssText=r._stOrig;d.core.getCache(r).uncache=1,t.appendChild(r)}}function si(r,t,n){var e=t,i=e;return function(a){var l=Math.round(r());return l!==e&&l!==i&&3<Math.abs(l-e)&&3<Math.abs(l-i)&&(a=l,n&&n()),i=e,e=Math.round(a)}}function qn(r,t,n){var e={};e[t.p]="+="+n,d.set(r,e)}function li(r,t){function n(a,l,u,g,v){var _=n.tween,Y=l.onComplete,y={};u=u||e();var S=si(e,u,function(){_.kill(),n.tween=0});return v=g&&v||0,g=g||a-u,_&&_.kill(),l[i]=a,l.inherit=!1,(l.modifiers=y)[i]=function(){return S(u+g*_.ratio+v*_.ratio*_.ratio)},l.onUpdate=function(){R.cache++,n.tween&&fr()},l.onComplete=function(){n.tween=0,Y&&Y.call(_)},_=n.tween=d.to(r,l)}var e=xr(r,t),i="_scroll"+t.p2;return(r[i]=e).wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},ot(r,"wheel",e.wheelHandler),z.isTouch&&ot(r,"touchmove",e.wheelHandler),n}var d,$r,A,F,Pt,W,me,Fn,pn,dn,gn,Un,ht,Gn,ye,Ct,ui,ci,Qr,fi,be,pi,St,xe,di,gi,Yr,_e,we,hn,Ce,Bn,Se,Me,vn,Mt,hi,mn,Jn=1,vt=Date.now,Te=vt(),Ft=0,yn=0,Ht=function(t){return typeof t=="string"},Zr=Math.abs,Ee="right",De="bottom",Xr="width",Lr="height",bn="Right",xn="Left",_n="Top",wn="Bottom",k="padding",Ut="margin",Kn="Width",Mi="Height",nt="px",cr=function(t,n){var e=n&&qt(t)[ye]!=="matrix(1, 0, 0, 1, 0, 0)"&&d.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=t.getBoundingClientRect();return e&&e.progress(0).kill(),i},vi={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Vn={toggleActions:"play",anticipatePin:0},jn={top:0,left:0,center:.5,bottom:1,right:1},$n=function(t,n,e,i){var a={display:"block"},l=e[i?"os2":"p2"],u=e[i?"p2":"os2"];t._isFlipped=i,a[e.a+"Percent"]=i?-100:0,a[e.a]=i?"1px":0,a["border"+l+Kn]=1,a["border"+u+Kn]=0,a[e.p]=n+"px",d.set(t,a)},D=[],Re={},Pr={},Ti=[],Hr=function(t){return Pr[t]&&Pr[t].map(function(n){return n()})||Ti},Wt=[],Wr=0,Ir=function(t,n){if(Pt=F.documentElement,W=F.body,me=[A,F,Pt,W],!Ft||t||Bn){ei(),Mt=z.isRefreshing=!0,R.forEach(function(i){return gt(i)&&++i.cacheID&&(i.rec=i())});var e=Hr("refreshInit");fi&&z.sort(),n||he(),R.forEach(function(i){gt(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),D.slice(0).forEach(function(i){return i.refresh()}),Bn=!1,D.forEach(function(i){if(i._subPinOffset&&i.pin){var a=i.vars.horizontal?"offsetWidth":"offsetHeight",l=i.pin[a];i.revert(!0,1),i.adjustPinSpacing(i.pin[a]-l),i.refresh()}}),Se=1,ii(!0),D.forEach(function(i){var a=er(i.scroller,i._dir),l=i.vars.end==="max"||i._endClamp&&i.end>a,u=i._startClamp&&i.start>=a;(l||u)&&i.setPositions(u?a-1:i.start,l?Math.max(u?a:i.start+1,a):i.end,!0)}),ii(!1),Se=0,e.forEach(function(i){return i&&i.render&&i.render(-1)}),R.forEach(function(i){gt(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),ni(we,1),Fn.pause(),Wr++,fr(Mt=2),D.forEach(function(i){return gt(i.vars.onRefresh)&&i.vars.onRefresh(i)}),Mt=z.isRefreshing=!1,Hr("refresh")}else ot(z,"scrollEnd",ge)},Ae=0,Qn=1,fr=function(t){if(t===2||!Mt&&!Bn){z.isUpdating=!0,mn&&mn.update(0);var n=D.length,e=vt(),i=50<=e-Te,a=n&&D[0].scroll();if(Qn=a<Ae?-1:1,Mt||(Ae=a),i&&(Ft&&!Gn&&200<e-Ft&&(Ft=0,Hr("scrollEnd")),gn=Te,Te=e),Qn<0){for(Ct=n;0<Ct--;)D[Ct]&&D[Ct].update(0,i);Qn=1}else for(Ct=0;Ct<n;Ct++)D[Ct]&&D[Ct].update(0,i);z.isUpdating=!1}vn=0},ze=["left","top",De,Ee,Ut+wn,Ut+bn,Ut+_n,Ut+xn,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Zn=ze.concat([Xr,Lr,"boxSizing","max"+Kn,"max"+Mi,"position",Ut,k,k+_n,k+bn,k+wn,k+xn]),Ei=/([A-Z])/g,Or=function(t){if(t){var n,e,i=t.t.style,a=t.length,l=0;for((t.t._gsap||d.core.getCache(t.t)).uncache=1;l<a;l+=2)e=t[l+1],n=t[l],e?i[n]=e:i[n]&&i.removeProperty(n.replace(Ei,"-$1").toLowerCase())}},On={left:0,top:0},Di=/(webkit|moz|length|cssText|inset)/i,z=(Z.prototype.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),yn){var e,i,a,l,u,g,v,_,Y,y,S,U,zt,M,B,tt,st,X,L,mt,yt,Gt,Bt,Nr,ft,pr,Zt,V,Yt,J,et,b,dr,Tt,Et,Ot,gr,ir,wr,Cr=(t=Oe(Ht(t)||un(t)||t.nodeType?{trigger:t}:t,Vn)).onUpdate,hr=t.toggleClass,Dt=t.id,or=t.onToggle,Sr=t.onRefresh,qr=t.scrub,lt=t.trigger,x=t.pin,Xt=t.pinSpacing,Cn=t.invalidateOnRefresh,Fr=t.anticipatePin,Sn=t.onScrubComplete,Mn=t.onSnapComplete,kr=t.once,G=t.snap,tn=t.pinReparent,pt=t.pinSpacer,w=t.containerAnimation,kt=t.fastScrollEnd,vr=t.preventOverlaps,m=t.horizontal||t.containerAnimation&&t.horizontal!==!1?wt:rt,dt=!qr&&qr!==0,P=At(t.scroller||A),s=d.core.getCache(P),bt=Ar(P),Jt=("pinType"in t?t.pinType:br(P,"pinType")||bt&&"fixed")==="fixed",ar=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],Mr=dt&&t.toggleActions.split(" "),mr="markers"in t?t.markers:Vn.markers,rn=bt?0:parseFloat(qt(P)["border"+m.p2+Kn])||0,o=this,Tr=t.onRefreshInit&&function(){return t.onRefreshInit(o)},nn=(function(h,p,C){var T=C.d,E=C.d2,$=C.a;return($=br(h,"getBoundingClientRect"))?function(){return $()[T]}:function(){return(p?Qe(E):h["client"+E])||0}})(P,bt,m),it=(function(h,p){return!p||~rr.indexOf(h)?Ze(h):function(){return On}})(P,bt),It=0,Kt=0,Vt=0,O=xr(P,m);if(o._startClamp=o._endClamp=!1,o._dir=m,Fr*=45,o.scroller=P,o.scroll=w?w.time.bind(w):O,l=O(),o.vars=t,n=n||t.animation,"refreshPriority"in t&&(fi=1,t.refreshPriority===-9999&&(mn=o)),s.tweenScroll=s.tweenScroll||{top:li(P,rt),left:li(P,wt)},o.tweenTo=e=s.tweenScroll[m.p],o.scrubDuration=function(c){(dr=un(c)&&c)?b?b.duration(c):b=d.to(n,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:dr,paused:!0,onComplete:function(){return Sn&&Sn(o)}}):(b&&b.progress(1).kill(),b=0)},n&&(n.vars.lazy=!1,n._initted&&!o.isReverted||n.vars.immediateRender!==!1&&t.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),o.animation=n.pause(),(n.scrollTrigger=o).scrubDuration(qr),J=0,Dt=Dt||n.vars.id),G&&(zr(G)&&!G.push||(G={snapTo:G}),"scrollBehavior"in W.style&&d.set(bt?[W,Pt]:P,{scrollBehavior:"auto"}),R.forEach(function(c){return gt(c)&&c.target===(bt?F.scrollingElement||Pt:P)&&(c.smooth=!1)}),a=gt(G.snapTo)?G.snapTo:G.snapTo==="labels"?(function(h){return function(p){return d.utils.snap(ke(h),p)}})(n):G.snapTo==="labelsDirectional"?(function(h){return function(p,C){return pe(ke(h))(p,C.direction)}})(n):G.directional!==!1?function(c,h){return pe(G.snapTo)(c,vt()-Kt<500?0:h.direction)}:d.utils.snap(G.snapTo),Tt=G.duration||{min:.1,max:2},Tt=zr(Tt)?dn(Tt.min,Tt.max):dn(Tt,Tt),Et=d.delayedCall(G.delay||dr/2||.1,function(){var c=O(),h=vt()-Kt<500,p=e.tween;if(!(h||Math.abs(o.getVelocity())<10)||p||Gn||It===c)o.isActive&&It!==c&&Et.restart(!0);else{var C,T,E=(c-g)/M,$=n&&!dt?n.totalProgress():E,ut=h?0:($-et)/(vt()-gn)*1e3||0,q=d.utils.clamp(-E,1-E,Zr(ut/2)*ut/.185),I=E+(G.inertia===!1?0:q),K=G.onStart,sr=G.onInterrupt,H=G.onComplete;if(C=a(I,o),un(C)||(C=I),T=Math.max(0,Math.round(g+C*M)),c<=v&&g<=c&&T!==c){if(p&&!p._initted&&p.data<=Zr(T-c))return;G.inertia===!1&&(q=C-E),e(T,{duration:Tt(Zr(.185*Math.max(Zr(I-$),Zr(C-$))/ut/.05||0)),ease:G.ease||"power3",data:Zr(T-c),onInterrupt:function(){return Et.restart(!0)&&sr&&sr(o)},onComplete:function(){o.update(),It=O(),n&&!dt&&(b?b.resetTo("totalProgress",C,n._tTime/n._tDur):n.progress(C)),J=et=n&&!dt?n.totalProgress():o.progress,Mn&&Mn(o),H&&H(o)}},c,q*M,T-c-q*M),K&&K(o,e.tween)}}}).pause()),Dt&&(Re[Dt]=o),wr=(wr=(lt=o.trigger=At(lt||x!==!0&&x))&<._gsap&<._gsap.stRevert)&&wr(o),x=x===!0?lt:At(x),Ht(hr)&&(hr={targets:lt,className:hr}),x&&(Xt===!1||Xt===Ut||(Xt=!(!Xt&&x.parentNode&&x.parentNode.style&&qt(x.parentNode).display==="flex")&&k),o.pin=x,(i=d.core.getCache(x)).spacer?B=i.pinState:(pt&&((pt=At(pt))&&!pt.nodeType&&(pt=pt.current||pt.nativeElement),i.spacerIsNative=!!pt,pt&&(i.spacerState=Nn(pt))),i.spacer=X=pt||F.createElement("div"),X.classList.add("pin-spacer"),Dt&&X.classList.add("pin-spacer-"+Dt),i.pinState=B=Nn(x)),t.force3D!==!1&&d.set(x,{force3D:!0}),o.spacer=X=i.spacer,Yt=qt(x),Nr=Yt[Xt+m.os2],mt=d.getProperty(x),yt=d.quickSetter(x,m.a,nt),ve(x,X,Yt),st=Nn(x)),mr){U=zr(mr)?Oe(mr,vi):vi,y=In("scroller-start",Dt,P,m,U,0),S=In("scroller-end",Dt,P,m,U,0,y),L=y["offset"+m.op.d2];var Ur=At(br(P,"content")||P);_=this.markerStart=In("start",Dt,Ur,m,U,L,0,w),Y=this.markerEnd=In("end",Dt,Ur,m,U,L,0,w),w&&(ir=d.quickSetter([_,Y],m.a,nt)),Jt||rr.length&&br(P,"fixedMarkers")===!0||((function(h){var p=qt(h).position;h.style.position=p==="absolute"||p==="fixed"?p:"relative"})(bt?W:P),d.set([y,S],{force3D:!0}),pr=d.quickSetter(y,m.a,nt),V=d.quickSetter(S,m.a,nt))}if(w){var f=w.vars.onUpdate,N=w.vars.onUpdateParams;w.eventCallback("onUpdate",function(){o.update(0,0,1),f&&f.apply(w,N||[])})}if(o.previous=function(){return D[D.indexOf(o)-1]},o.next=function(){return D[D.indexOf(o)+1]},o.revert=function(c,h){if(!h)return o.kill(!0);var p=c!==!1||!o.enabled,C=ht;p!==o.isReverted&&(p&&(Ot=Math.max(O(),o.scroll.rec||0),Vt=o.progress,gr=n&&n.progress()),_&&[_,Y,y,S].forEach(function(T){return T.style.display=p?"none":"block"}),p&&(ht=o).update(p),!x||tn&&o.isActive||(p?(function(E,$,ut){Or(ut);var q=E._gsap;if(q.spacerIsNative)Or(q.spacerState);else if(E._gsap.swappedIn){var I=$.parentNode;I&&(I.insertBefore(E,$),I.removeChild($))}E._gsap.swappedIn=!1})(x,X,B):ve(x,X,qt(x),ft)),p||o.update(p),ht=C,o.isReverted=p)},o.refresh=function(c,h,p,C){if(!ht&&o.enabled||h)if(x&&c&&Ft)ot(Z,"scrollEnd",ge);else{!Mt&&Tr&&Tr(o),ht=o,e.tween&&!p&&(e.tween.kill(),e.tween=0),b&&b.pause(),Cn&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren&&n.getChildren(!0,!0,!1).forEach(function(yr){return yr.vars.immediateRender&&yr.render(0,!0,!0)})),o.isReverted||o.revert(!0,!0),o._subPinOffset=!1;var T,E,$,ut,q,I,K,sr,H,Rt,jt,Er,Gr,Br=nn(),_i=it(),re=w?w.duration():er(P,m),ne=M<=.01||!M,lr=0,en=C||0,Nt=zr(p)?p.end:t.end,Ye=t.endTrigger||lt,tr=zr(p)?p.start:t.start||(t.start!==0&<?x?"0 0":"0 100%":0),Tn=o.pinnedContainer=t.pinnedContainer&&At(t.pinnedContainer,o),Xe=lt&&Math.max(0,D.indexOf(o))||0,$t=Xe;for(mr&&zr(p)&&(Er=d.getProperty(y,m.p),Gr=d.getProperty(S,m.p));0<$t--;)(I=D[$t]).end||I.refresh(0,1)||(ht=o),!(K=I.pin)||K!==lt&&K!==x&&K!==Tn||I.isReverted||((Rt=Rt||[]).unshift(I),I.revert(!0,!0)),I!==D[$t]&&(Xe--,$t--);for(gt(tr)&&(tr=tr(o)),tr=Be(tr,"start",o),g=oi(tr,lt,Br,m,O(),_,y,o,_i,rn,Jt,re,w,o._startClamp&&"_startClamp")||(x?-.001:0),gt(Nt)&&(Nt=Nt(o)),Ht(Nt)&&!Nt.indexOf("+=")&&(~Nt.indexOf(" ")?Nt=(Ht(tr)?tr.split(" ")[0]:"")+Nt:(lr=Wn(Nt.substr(2),Br),Nt=Ht(tr)?tr:(w?d.utils.mapRange(0,w.duration(),w.scrollTrigger.start,w.scrollTrigger.end,g):g)+lr,Ye=lt)),Nt=Be(Nt,"end",o),v=Math.max(g,oi(Nt||(Ye?"100% 0":re),Ye,Br,m,O()+lr,Y,S,o,_i,rn,Jt,re,w,o._endClamp&&"_endClamp"))||-.001,lr=0,$t=Xe;$t--;)(K=(I=D[$t]).pin)&&I.start-I._pinPush<=g&&!w&&0<I.end&&(T=I.end-(o._startClamp?Math.max(0,I.start):I.start),(K===lt&&I.start-I._pinPush<g||K===Tn)&&isNaN(tr)&&(lr+=T*(1-I.progress)),K===x&&(en+=T));if(g+=lr,v+=lr,o._startClamp&&(o._startClamp+=lr),o._endClamp&&!Mt&&(o._endClamp=v||-.001,v=Math.min(v,er(P,m))),M=v-g||(g-=.01)&&.001,ne&&(Vt=d.utils.clamp(0,1,d.utils.normalize(g,v,Ot))),o._pinPush=en,_&&lr&&((T={})[m.a]="+="+lr,Tn&&(T[m.p]="-="+O()),d.set([_,Y],T)),!x||Se&&o.end>=er(P,m)){if(lt&&O()&&!w)for(E=lt.parentNode;E&&E!==W;)E._pinOffset&&(g-=E._pinOffset,v-=E._pinOffset),E=E.parentNode}else T=qt(x),ut=m===rt,$=O(),Gt=parseFloat(mt(m.a))+en,!re&&1<v&&(jt={style:jt=(bt?F.scrollingElement||Pt:P).style,value:jt["overflow"+m.a.toUpperCase()]},bt&&qt(W)["overflow"+m.a.toUpperCase()]!=="scroll"&&(jt.style["overflow"+m.a.toUpperCase()]="scroll")),ve(x,X,T),st=Nn(x),E=cr(x,!0),sr=Jt&&xr(P,ut?wt:rt)(),Xt?((ft=[Xt+m.os2,M+en+nt]).t=X,($t=Xt===k?Ln(x,m)+M+en:0)&&(ft.push(m.d,$t+nt),X.style.flexBasis!=="auto"&&(X.style.flexBasis=$t+nt)),Or(ft),Tn&&D.forEach(function(yr){yr.pin===Tn&&yr.vars.pinSpacing!==!1&&(yr._subPinOffset=!0)}),Jt&&O(Ot)):($t=Ln(x,m))&&X.style.flexBasis!=="auto"&&(X.style.flexBasis=$t+nt),Jt&&((q={top:E.top+(ut?$-g:sr)+nt,left:E.left+(ut?sr:$-g)+nt,boxSizing:"border-box",position:"fixed"})[Xr]=q.maxWidth=Math.ceil(E.width)+nt,q[Lr]=q.maxHeight=Math.ceil(E.height)+nt,q[Ut]=q[Ut+_n]=q[Ut+bn]=q[Ut+wn]=q[Ut+xn]="0",q[k]=T[k],q[k+_n]=T[k+_n],q[k+bn]=T[k+bn],q[k+wn]=T[k+wn],q[k+xn]=T[k+xn],tt=(function(ee,wi,Yi){for(var ie,Le=[],Xi=ee.length,oe=Yi?8:0;oe<Xi;oe+=2)ie=ee[oe],Le.push(ie,ie in wi?wi[ie]:ee[oe+1]);return Le.t=ee.t,Le})(B,q,tn),Mt&&O(0)),n?(H=n._initted,be(1),n.render(n.duration(),!0,!0),Bt=mt(m.a)-Gt+M+en,Zt=1<Math.abs(M-Bt),Jt&&Zt&&tt.splice(tt.length-2,2),n.render(0,!0,!0),H||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),be(0)):Bt=M,jt&&(jt.value?jt.style["overflow"+m.a.toUpperCase()]=jt.value:jt.style.removeProperty("overflow-"+m.a));Rt&&Rt.forEach(function(yr){return yr.revert(!1,!0)}),o.start=g,o.end=v,l=u=Mt?Ot:O(),w||Mt||(l<Ot&&O(Ot),o.scroll.rec=0),o.revert(!1,!0),Kt=vt(),Et&&(It=-1,Et.restart(!0)),ht=0,n&&dt&&(n._initted||gr)&&n.progress()!==gr&&n.progress(gr||0,!0).render(n.time(),!0,!0),(ne||Vt!==o.progress||w||Cn||n&&!n._initted)&&(n&&!dt&&(n._initted||Vt||n.vars.immediateRender!==!1)&&n.totalProgress(w&&g<-.001&&!Vt?d.utils.normalize(g,v,0):Vt,!0),o.progress=ne||(l-g)/M===Vt?0:Vt),x&&Xt&&(X._pinOffset=Math.round(o.progress*Bt)),b&&b.invalidate(),isNaN(Er)||(Er-=d.getProperty(y,m.p),Gr-=d.getProperty(S,m.p),qn(y,m,Er),qn(_,m,Er-(C||0)),qn(S,m,Gr),qn(Y,m,Gr-(C||0))),ne&&!Mt&&o.update(),!Sr||Mt||zt||(zt=!0,Sr(o),zt=!1)}},o.getVelocity=function(){return(O()-u)/(vt()-gn)*1e3||0},o.endAnimation=function(){cn(o.callbackAnimation),n&&(b?b.progress(1):n.paused()?dt||cn(n,o.direction<0,1):cn(n,n.reversed()))},o.labelToScroll=function(c){return n&&n.labels&&(g||o.refresh()||g)+n.labels[c]/n.duration()*M||0},o.getTrailing=function(c){var h=D.indexOf(o),p=0<o.direction?D.slice(0,h).reverse():D.slice(h+1);return(Ht(c)?p.filter(function(C){return C.vars.preventOverlaps===c}):p).filter(function(C){return 0<o.direction?C.end<=g:C.start>=v})},o.update=function(c,h,p){if(!w||p||c){var C,T,E,$,ut,q,I,K=Mt===!0?Ot:o.scroll(),sr=c?0:(K-g)/M,H=sr<0?0:1<sr?1:sr||0,Rt=o.progress;if(h&&(u=l,l=w?O():K,G&&(et=J,J=n&&!dt?n.totalProgress():H)),Fr&&x&&!ht&&!Jn&&Ft&&(!H&&g<K+(K-u)/(vt()-gn)*Fr?H=1e-4:H===1&&v>K+(K-u)/(vt()-gn)*Fr&&(H=.9999)),H!==Rt&&o.enabled){if($=(ut=(C=o.isActive=!!H&&H<1)!=(!!Rt&&Rt<1))||!!H!=!!Rt,o.direction=Rt<H?1:-1,o.progress=H,$&&!ht&&(T=H&&!Rt?0:H===1?1:Rt===1?2:3,dt&&(E=!ut&&Mr[T+1]!=="none"&&Mr[T+1]||Mr[T],I=n&&(E==="complete"||E==="reset"||E in n))),vr&&(ut||I)&&(I||qr||!n)&&(gt(vr)?vr(o):o.getTrailing(vr).forEach(function(Br){return Br.endAnimation()})),dt||(!b||ht||Jn?n&&n.totalProgress(H,!(!ht||!Kt&&!c)):(b._dp._time-b._start!==b._time&&b.render(b._dp._time-b._start),b.resetTo?b.resetTo("totalProgress",H,n._tTime/n._tDur):(b.vars.totalProgress=H,b.invalidate().restart()))),x)if(c&&Xt&&(X.style[Xt+m.os2]=Nr),Jt){if($){if(q=!c&&Rt<H&&K<v+1&&K+1>=er(P,m),tn)if(c||!C&&!q)ai(x,X);else{var jt=cr(x,!0),Er=K-g;ai(x,W,jt.top+(m===rt?Er:0)+nt,jt.left+(m===rt?0:Er)+nt)}Or(C||q?tt:st),Zt&&H<1&&C||yt(Gt+(H!==1||q?0:Bt))}}else yt(ln(Gt+Bt*H));!G||e.tween||ht||Jn||Et.restart(!0),hr&&(ut||kr&&H&&(H<1||!Me))&&pn(hr.targets).forEach(function(Br){return Br.classList[C||kr?"add":"remove"](hr.className)}),!Cr||dt||c||Cr(o),$&&!ht?(dt&&(I&&(E==="complete"?n.pause().totalProgress(1):E==="reset"?n.restart(!0).pause():E==="restart"?n.restart(!0):n[E]()),Cr&&Cr(o)),!ut&&Me||(or&&ut&&fe(o,or),ar[T]&&fe(o,ar[T]),kr&&(H===1?o.kill(!1,1):ar[T]=0),ut||ar[T=H===1?1:3]&&fe(o,ar[T])),kt&&!C&&Math.abs(o.getVelocity())>(un(kt)?kt:2500)&&(cn(o.callbackAnimation),b?b.progress(1):cn(n,E==="reverse"?1:!H,1))):dt&&Cr&&!ht&&Cr(o)}if(V){var Gr=w?K/w.duration()*(w._caScrollDist||0):K;pr(Gr+(y._isFlipped?1:0)),V(Gr)}ir&&ir(-K/w.duration()*(w._caScrollDist||0))}},o.enable=function(c,h){o.enabled||(o.enabled=!0,ot(P,"resize",fn),bt||ot(P,"scroll",jr),Tr&&ot(Z,"refreshInit",Tr),c!==!1&&(o.progress=Vt=0,l=u=It=O()),h!==!1&&o.refresh())},o.getTween=function(c){return c&&e?e.tween:b},o.setPositions=function(c,h,p,C){if(w){var T=w.scrollTrigger,E=w.duration(),$=T.end-T.start;c=T.start+$*c/E,h=T.start+$*h/E}o.refresh(!1,!1,{start:Je(c,p&&!!o._startClamp),end:Je(h,p&&!!o._endClamp)},C),o.update()},o.adjustPinSpacing=function(c){if(ft&&c){var h=ft.indexOf(m.d)+1;ft[h]=parseFloat(ft[h])+c+nt,ft[1]=parseFloat(ft[1])+c+nt,Or(ft)}},o.disable=function(c,h){if(o.enabled&&(c!==!1&&o.revert(!0,!0),o.enabled=o.isActive=!1,h||b&&b.pause(),Ot=0,i&&(i.uncache=1),Tr&&at(Z,"refreshInit",Tr),Et&&(Et.pause(),e.tween&&e.tween.kill()&&(e.tween=0)),!bt)){for(var p=D.length;p--;)if(D[p].scroller===P&&D[p]!==o)return;at(P,"resize",fn),bt||at(P,"scroll",jr)}},o.kill=function(c,h){o.disable(c,h),b&&!h&&b.kill(),Dt&&delete Re[Dt];var p=D.indexOf(o);0<=p&&D.splice(p,1),p===Ct&&0<Qn&&Ct--,p=0,D.forEach(function(C){return C.scroller===o.scroller&&(p=1)}),p||Mt||(o.scroll.rec=0),n&&(n.scrollTrigger=null,c&&n.revert({kill:!1}
vendor: 4,148 bytes, line 7
7),h||n.kill()),_&&[_,Y,y,S].forEach(function(C){return C.parentNode&&C.parentNode.removeChild(C)}),mn===o&&(mn=0),x&&(i&&(i.uncache=1),p=0,D.forEach(function(C){return C.pin===x&&p++}),p||(i.spacer=0)),t.onKill&&t.onKill(o)},D.push(o),o.enable(!1,!1),wr&&wr(o),n&&n.add&&!M){var j=o.update;o.update=function(){o.update=j,R.cache++,g||v||o.refresh()},d.delayedCall(.01,o.update),M=.01,g=v=0}else o.refresh();x&&(function(){if(hi!==Wr){var h=hi=Wr;requestAnimationFrame(function(){return h===Wr&&Ir(!0)})}})()}else this.update=this.refresh=this.kill=nr},Z.register=function(t){return $r||(d=t||$e(),je()&&window.document&&Z.enable(),$r=yn),$r},Z.defaults=function(t){if(t)for(var n in t)Vn[n]=t[n];return Vn},Z.disable=function(t,n){yn=0,D.forEach(function(i){return i[n?"kill":"disable"](t)}),at(A,"wheel",jr),at(F,"scroll",jr),clearInterval(Un),at(F,"touchcancel",nr),at(W,"touchstart",nr),Pn(at,F,"pointerdown,touchstart,mousedown",Ke),Pn(at,F,"pointerup,touchend,mouseup",Ve),Fn.kill(),Xn(at);for(var e=0;e<R.length;e+=3)Hn(at,R[e],R[e+1]),Hn(at,R[e],R[e+2])},Z.enable=function(){if(A=window,F=document,Pt=F.documentElement,W=F.body,d&&(pn=d.utils.toArray,dn=d.utils.clamp,_e=d.core.context||nr,be=d.core.suppressOverwrites||nr,we=A.history.scrollRestoration||"auto",Ae=A.pageYOffset||0,d.core.globals("ScrollTrigger",Z),W)){yn=1,(hn=document.createElement("div")).style.height="100vh",hn.style.position="absolute",ei(),(function u(){return yn&&requestAnimationFrame(u)})(),Q.register(d),Z.isTouch=Q.isTouch,Yr=Q.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),xe=Q.isTouch===1,ot(A,"wheel",jr),me=[A,F,Pt,W],d.matchMedia?(Z.matchMedia=function(u){var g,v=d.matchMedia();for(g in u)v.add(g,u[g]);return v},d.addEventListener("matchMediaInit",function(){return he()}),d.addEventListener("matchMediaRevert",function(){return ri()}),d.addEventListener("matchMedia",function(){Ir(0,1),Hr("matchMedia")}),d.matchMedia().add("(orientation: portrait)",function(){return de(),de})):console.warn("Requires GSAP 3.11.0 or later"),de(),ot(F,"scroll",jr);var t,n,e=W.hasAttribute("style"),i=W.style,a=i.borderTopStyle,l=d.core.Animation.prototype;for(l.revert||Object.defineProperty(l,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",t=cr(W),rt.m=Math.round(t.top+rt.sc())||0,wt.m=Math.round(t.left+wt.sc())||0,a?i.borderTopStyle=a:i.removeProperty("border-top-style"),e||(W.setAttribute("style",""),W.removeAttribute("style")),Un=setInterval(ti,250),d.delayedCall(.5,function(){return Jn=0}),ot(F,"touchcancel",nr),ot(W,"touchstart",nr),Pn(ot,F,"pointerdown,touchstart,mousedown",Ke),Pn(ot,F,"pointerup,touchend,mouseup",Ve),ye=d.utils.checkPrefix("transform"),Zn.push(ye),$r=vt(),Fn=d.delayedCall(.2,Ir).pause(),Qr=[F,"visibilitychange",function(){var u=A.innerWidth,g=A.innerHeight;F.hidden?(ui=u,ci=g):ui===u&&ci===g||fn()},F,"DOMContentLoaded",Ir,A,"load",Ir,A,"resize",fn],Xn(ot),D.forEach(function(u){return u.enable(0,1)}),n=0;n<R.length;n+=3)Hn(at,R[n],R[n+1]),Hn(at,R[n],R[n+2])}},Z.config=function(t){"limitCallbacks"in t&&(Me=!!t.limitCallbacks);var n=t.syncInterval;n&&clearInterval(Un)||(Un=n)&&setInterval(ti,n),"ignoreMobileResize"in t&&(xe=Z.isTouch===1&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(Xn(at)||Xn(ot,t.autoRefreshEvents||"none"),pi=(t.autoRefreshEvents+"").indexOf("resize")===-1)},Z.scrollerProxy=function(t,n){var e=At(t),i=R.indexOf(e),a=Ar(e);~i&&R.splice(i,a?6:2),n&&(a?rr.unshift(A,n,W,n,Pt,n):rr.unshift(e,n))},Z.clearMatchMedia=function(t){D.forEach(function(n){return n._ctx&&n._ctx.query===t&&n._ctx.kill(!0,!0)})},Z.isInViewport=function(t,n,e){var i=(Ht(t)?At(t):t).getBoundingClientRect(),a=i[e?Xr:Lr]*n||0;return e?0<i.right-a&&i.left+a<A.innerWidth:0<i.bottom-a&&i.top+a<A.innerHeight},Z.positionInViewport=function(t,n,e){Ht(t)&&(t=At(t));var i=t.getBoundingClientRect(),a=i[e?Xr:Lr],l=n==null?a/2:n in jn?jn[n]*a:~n.indexOf("%")?parseFloat(n)*a/100:parseFloat(n)||0;return e?(i.left+l)/A.innerWidth:(i.top+l)/A.innerHeight},Z.killAll=function(t){if(D.slice(0).forEach(function(e){return e.vars.id!=="ScrollSmoother"&&e.kill()}),t!==!0){var n=Pr.killAll||[];Pr={}
vendor: 6,505 bytes, line 7
7,n.forEach(function(e){return e()})}},Z);function Z(r,t){$r||Z.register(d)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),_e(this),this.init(r,t)}z.version="3.13.0",z.saveStyles=function(r){return r?pn(r).forEach(function(t){if(t&&t.style){var n=Wt.indexOf(t);0<=n&&Wt.splice(n,5),Wt.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),d.core.getCache(t),_e())}}):Wt},z.revert=function(r,t){return he(!r,t)},z.create=function(r,t){return new z(r,t)},z.refresh=function(r){return r?fn(!0):($r||z.register())&&Ir(!0)},z.update=function(r){return++R.cache&&fr(r===!0?2:0)},z.clearScrollMemory=ni,z.maxScroll=function(r,t){return er(r,t?wt:rt)},z.getScrollFunc=function(r,t){return xr(At(r),t?wt:rt)},z.getById=function(r){return Re[r]},z.getAll=function(){return D.filter(function(r){return r.vars.id!=="ScrollSmoother"})},z.isScrolling=function(){return!!Ft},z.snapDirectional=pe,z.addEventListener=function(r,t){var n=Pr[r]||(Pr[r]=[]);~n.indexOf(t)||n.push(t)},z.removeEventListener=function(r,t){var n=Pr[r],e=n&&n.indexOf(t);0<=e&&n.splice(e,1)},z.batch=function(r,t){function n(g,v){var _=[],Y=[],y=d.delayedCall(l,function(){v(_,Y),_=[],Y=[]}).pause();return function(S){_.length||y.restart(!0),_.push(S.trigger),Y.push(S),u<=_.length&&y.progress(1)}}var e,i=[],a={},l=t.interval||.016,u=t.batchMax||1e9;for(e in t)a[e]=e.substr(0,2)==="on"&>(t[e])&&e!=="onRefreshInit"?n(0,t[e]):t[e];return gt(u)&&(u=u(),ot(z,"refresh",function(){return u=t.batchMax()})),pn(r).forEach(function(g){var v={};for(e in a)v[e]=a[e];v.trigger=g,i.push(z.create(v))}),i};function mi(r,t,n,e){return e<t?r(e):t<0&&r(0),e<n?(e-t)/(n-t):n<0?t/(t-n):1}function kn(r,t){t===!0?r.style.removeProperty("touch-action"):r.style.touchAction=t===!0?"auto":t?"pan-"+t+(Q.isTouch?" pinch-zoom":""):"none",r===Pt&&kn(W,t)}function Ri(r){var t,n=r.event,e=r.target,i=r.axis,a=(n.changedTouches?n.changedTouches[0]:n).target,l=a._gsap||d.core.getCache(a),u=vt();if(!l._isScrollT||2e3<u-l._isScrollT){for(;a&&a!==W&&(a.scrollHeight<=a.clientHeight&&a.scrollWidth<=a.clientWidth||!te[(t=qt(a)).overflowY]&&!te[t.overflowX]);)a=a.parentNode;l._isScroll=a&&a!==e&&!Ar(a)&&(te[(t=qt(a)).overflowY]||te[t.overflowX]),l._isScrollT=u}!l._isScroll&&i!=="x"||(n.stopPropagation(),n._gsapAllow=!0)}function yi(r,t,n,e){return Q.create({target:r,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:e=e&&Ri,onPress:e,onDrag:e,onScroll:e,onEnable:function(){return n&&ot(F,Q.eventTypes[0],xi,!1,!0)},onDisable:function(){return at(F,Q.eventTypes[0],xi,!0)}})}function Ai(r){function t(){return g=!1}function n(){l=er(B,rt),Zt=dn(Yr?1:0,l),S&&(pr=dn(0,er(B,wt))),u=Wr}function e(){X._gsap.y=ln(parseFloat(X._gsap.y)+L.offset)+"px",X.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(X._gsap.y)+", 0, 1)",L.offset=L.cacheID=0}function i(){n(),v.isActive()&&v.vars.scrollY>l&&(L()>l?v.progress(1)&&L(l):v.resetTo("scrollY",l))}zr(r)||(r={}),r.preventDefault=r.isNormalizer=r.allowClicks=!0,r.type||(r.type="wheel,touch"),r.debounce=!!r.debounce,r.id=r.id||"normalizer";var a,l,u,g,v,_,Y,y,S=r.normalizeScrollX,U=r.momentum,zt=r.allowNestedScroll,M=r.onRelease,B=At(r.target)||Pt,tt=d.core.globals().ScrollSmoother,st=tt&&tt.get(),X=Yr&&(r.content&&At(r.content)||st&&r.content!==!1&&!st.smooth()&&st.content()),L=xr(B,rt),mt=xr(B,wt),yt=1,Gt=(Q.isTouch&&A.visualViewport?A.visualViewport.scale*A.visualViewport.width:A.outerWidth)/A.innerWidth,Bt=0,Nr=gt(U)?function(){return U(a)}:function(){return U||2.8},ft=yi(B,r.type,!0,zt),pr=nr,Zt=nr;return X&&d.set(X,{y:"+=0"}),r.ignoreCheck=function(V){return Yr&&V.type==="touchmove"&&(function(){if(g){requestAnimationFrame(t);var J=ln(a.deltaY/2),et=Zt(L.v-J);if(X&&et!==L.v+L.offset){L.offset=et-L.v;var b=ln((parseFloat(X&&X._gsap.y)||0)-L.offset);X.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+b+", 0, 1)",X._gsap.y=b+"px",L.cacheID=R.cache,fr()}return!0}L.offset&&e(),g=!0})()||1.05<yt&&V.type!=="touchstart"||a.isGesturing||V.touches&&1<V.touches.length},r.onPress=function(){g=!1;var V=yt;yt=ln((A.visualViewport&&A.visualViewport.scale||1)/Gt),v.pause(),V!==yt&&kn(B,1.01<yt||!S&&"x"),_=mt(),Y=L(),n(),u=Wr},r.onRelease=r.onGestureStart=function(V,Yt){if(L.offset&&e(),Yt){R.cache++;var J,et,b=Nr();S&&(et=(J=mt())+.05*b*-V.velocityX/.227,b*=mi(mt,J,et,er(B,wt)),v.vars.scrollX=pr(et)),et=(J=L())+.05*b*-V.velocityY/.227,b*=mi(L,J,et,er(B,rt)),v.vars.scrollY=Zt(et),v.invalidate().duration(b).play(.01),(Yr&&v.vars.scrollY>=l||l-1<=J)&&d.to({},{onUpdate:i,duration:b})}else y.restart(!0);M&&M(V)},r.onWheel=function(){v._ts&&v.pause(),1e3<vt()-Bt&&(u=0,Bt=vt())},r.onChange=function(V,Yt,J,et,b){if(Wr!==u&&n(),Yt&&S&&mt(pr(et[2]===Yt?_+(V.startX-V.x):mt()+Yt-et[1])),J){L.offset&&e();var dr=b[2]===J,Tt=dr?Y+V.startY-V.y:L()+J-b[1],Et=Zt(Tt);dr&&Tt!==Et&&(Y+=Et-Tt),L(Et)}(J||Yt)&&fr()},r.onEnable=function(){kn(B,!S&&"x"),z.addEventListener("refresh",i),ot(A,"resize",i),L.smooth&&(L.target.style.scrollBehavior="auto",L.smooth=mt.smooth=!1),ft.enable()},r.onDisable=function(){kn(B,!0),at(A,"resize",i),z.removeEventListener("refresh",i),ft.kill()},r.lockAxis=r.lockAxis!==!1,((a=new Q(r)).iOS=Yr)&&!L()&&L(1),Yr&&d.ticker.add(nr),y=a._dc,v=d.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:S?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:si(L,L(),function(){return v.pause()})},onUpdate:fr,onComplete:y.vars.onComplete}),a}var bi,te={auto:1,scroll:1},zi=/(input|label|select|textarea)/i,xi=function(t){var n=zi.test(t.target.tagName);(n||bi)&&(t._gsapAllow=!0,bi=n)};z.sort=function(r){if(gt(r))return D.sort(r);var t=A.pageYOffset||0;return z.getAll().forEach(function(n){return n._sortY=n.trigger?t+n.trigger.getBoundingClientRect().top:n.start+A.innerHeight}),D.sort(r||function(n,e){return-1e6*(n.vars.refreshPriority||0)+(n.vars.containerAnimation?1e6:n._sortY)-((e.vars.containerAnimation?1e6:e._sortY)+-1e6*(e.vars.refreshPriority||0))})},z.observe=function(r){return new Q(r)},z.normalizeScroll=function(r){if(r===void 0)return St;if(r===!0&&St)return St.enable();if(r===!1)return St&&St.kill(),void(St=r);var t=r instanceof Q?r:Ai(r);return St&&St.target===t.target&&St.kill(),Ar(t.target)&&(St=t),t},z.core={_getVelocityProp:le,_inputObserver:yi,_scrollers:R,_proxies:rr,bridge:{ss:function(){Ft||Hr("scrollStart"),Ft=vt()},ref:function(){return ht}}},$e()&&d.registerPlugin(z),Jr.ScrollTrigger=z,Jr.default=z,typeof window>"u"||window!==Jr?Object.defineProperty(Jr,"__esModule",{value:!0}):delete Jr.default})}
7)(En,En.exports)),En.exports}var Pe=Pi(),Hi=Pe.ScrollTrigger,Wi=Pe.__esModule;export{Hi as ScrollTrigger,Wi as __esModule,Pe as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.