@story-telling-reporter/react-embed-code-generator
Version:
## Installation `yarn install`
2 lines • 183 kB
JavaScript
/*! For license information please see gsap.js.LICENSE.txt */
(self.webpackChunk_story_telling_reporter_react_embed_code_generator=self.webpackChunk_story_telling_reporter_react_embed_code_generator||[]).push([[634],{4957:function(t,e){!function(t){"use strict";function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var r,n,i,s,a,o,u,l,h,f,c,p,d,_=function(){return r||"undefined"!=typeof window&&(r=window.gsap)&&r.registerPlugin&&r},g=1,m=[],v=[],y=[],x=Date.now,b=function(t,e){return e},w=function(t,e){return~y.indexOf(t)&&y[y.indexOf(t)+1][e]},T=function(t){return!!~f.indexOf(t)},k=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},M=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},O="scrollLeft",C="scrollTop",A=function(){return c&&c.isPressed||v.cache++},P=function(t,e){var r=function r(n){if(n||0===n){g&&(i.history.scrollRestoration="manual");var s=c&&c.isPressed;n=r.v=Math.round(n)||(c&&c.iOS?1:0),t(n),r.cacheID=v.cache,s&&b("ss",n)}else(e||v.cache!==r.cacheID||b("ref"))&&(r.cacheID=v.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},E={s:O,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:P((function(t){return arguments.length?i.scrollTo(t,S.sc()):i.pageXOffset||s[O]||a[O]||o[O]||0}))},S={s:C,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:E,sc:P((function(t){return arguments.length?i.scrollTo(E.sc(),t):i.pageYOffset||s[C]||a[C]||o[C]||0}))},D=function(t,e){return(e&&e._ctx&&e._ctx.selector||r.utils.toArray)(t)[0]||("string"==typeof t&&!1!==r.config().nullTargetWarn?console.warn("Element not found:",t):null)},R=function(t,e){var n=e.s,i=e.sc;T(t)&&(t=s.scrollingElement||a);var o=v.indexOf(t),u=i===S.sc?1:2;!~o&&(o=v.push(t)-1),v[o+u]||k(t,"scroll",A);var l=v[o+u],h=l||(v[o+u]=P(w(t,n),!0)||(T(t)?i:P((function(e){return arguments.length?t[n]=e:t[n]}))));return h.target=t,l||(h.smooth="smooth"===r.getProperty(t,"scrollBehavior")),h},z=function(t,e,r){var n=t,i=t,s=x(),a=s,o=e||50,u=Math.max(500,3*o),l=function(t,e){var u=x();e||u-s>o?(i=n,n=t,a=s,s=u):r?n+=t:n=i+(t-i)/(u-a)*(s-a)};return{update:l,reset:function(){i=n=r?0:n,a=s=0},getVelocity:function(t){var e=a,o=i,h=x();return(t||0===t)&&t!==n&&l(t),s===a||h-a>u?0:(n+(r?o:-o))/((r?h:s)-e)*1e3}}},F=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},I=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},L=function(){var t,e,n,i;(h=r.core.globals().ScrollTrigger)&&h.core&&(t=h.core,e=t.bridge||{},n=t._scrollers,i=t._proxies,n.push.apply(n,v),i.push.apply(i,y),v=n,y=i,b=function(t,r){return e[t](r)})},B=function(t){return r=t||_(),!n&&r&&"undefined"!=typeof document&&document.body&&(i=window,s=document,a=s.documentElement,o=s.body,f=[i,s,a,o],r.utils.clamp,d=r.core.context||function(){},l="onpointerenter"in o?"pointer":"mouse",u=Y.isTouch=i.matchMedia&&i.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in i||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,p=Y.eventTypes=("ontouchstart"in a?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in a?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return g=0}),500),L(),n=1),n};E.op=S,v.cache=0;var Y=function(){function t(t){this.init(t)}return t.prototype.init=function(t){n||B(r)||console.warn("Please gsap.registerPlugin(Observer)"),h||L();var e=t.tolerance,f=t.dragMinimum,_=t.type,g=t.target,v=t.lineHeight,y=t.debounce,b=t.preventDefault,w=t.onStop,O=t.onStopDelay,C=t.ignore,P=t.wheelSpeed,Y=t.event,X=t.onDragStart,N=t.onDragEnd,U=t.onDrag,q=t.onPress,V=t.onRelease,W=t.onRight,H=t.onLeft,j=t.onUp,G=t.onDown,Q=t.onChangeX,Z=t.onChangeY,$=t.onChange,K=t.onToggleX,J=t.onToggleY,tt=t.onHover,et=t.onHoverEnd,rt=t.onMove,nt=t.ignoreCheck,it=t.isNormalizer,st=t.onGestureStart,at=t.onGestureEnd,ot=t.onWheel,ut=t.onEnable,lt=t.onDisable,ht=t.onClick,ft=t.scrollSpeed,ct=t.capture,pt=t.allowClicks,dt=t.lockAxis,_t=t.onLockAxis;this.target=g=D(g)||a,this.vars=t,C&&(C=r.utils.toArray(C)),e=e||1e-9,f=f||0,P=P||1,ft=ft||1,_=_||"wheel,touch,pointer",y=!1!==y,v||(v=parseFloat(i.getComputedStyle(o).lineHeight)||22);var gt,mt,vt,yt,xt,bt,wt,Tt=this,kt=0,Mt=0,Ot=t.passive||!b&&!1!==t.passive,Ct=R(g,E),At=R(g,S),Pt=Ct(),Et=At(),St=~_.indexOf("touch")&&!~_.indexOf("pointer")&&"pointerdown"===p[0],Dt=T(g),Rt=g.ownerDocument||s,zt=[0,0,0],Ft=[0,0,0],It=0,Lt=function(){return It=x()},Bt=function(t,e){return(Tt.event=t)&&C&&function(t,e){for(var r=e.length;r--;)if(e[r]===t||e[r].contains(t))return!0;return!1}(t.target,C)||e&&St&&"touch"!==t.pointerType||nt&&nt(t,e)},Yt=function(){var t=Tt.deltaX=I(zt),r=Tt.deltaY=I(Ft),n=Math.abs(t)>=e,i=Math.abs(r)>=e;$&&(n||i)&&$(Tt,t,r,zt,Ft),n&&(W&&Tt.deltaX>0&&W(Tt),H&&Tt.deltaX<0&&H(Tt),Q&&Q(Tt),K&&Tt.deltaX<0!=kt<0&&K(Tt),kt=Tt.deltaX,zt[0]=zt[1]=zt[2]=0),i&&(G&&Tt.deltaY>0&&G(Tt),j&&Tt.deltaY<0&&j(Tt),Z&&Z(Tt),J&&Tt.deltaY<0!=Mt<0&&J(Tt),Mt=Tt.deltaY,Ft[0]=Ft[1]=Ft[2]=0),(yt||vt)&&(rt&&rt(Tt),vt&&(X&&1===vt&&X(Tt),U&&U(Tt),vt=0),yt=!1),bt&&!(bt=!1)&&_t&&_t(Tt),xt&&(ot(Tt),xt=!1),gt=0},Xt=function(t,e,r){zt[r]+=t,Ft[r]+=e,Tt._vx.update(t),Tt._vy.update(e),y?gt||(gt=requestAnimationFrame(Yt)):Yt()},Nt=function(t,e){dt&&!wt&&(Tt.axis=wt=Math.abs(t)>Math.abs(e)?"x":"y",bt=!0),"y"!==wt&&(zt[2]+=t,Tt._vx.update(t,!0)),"x"!==wt&&(Ft[2]+=e,Tt._vy.update(e,!0)),y?gt||(gt=requestAnimationFrame(Yt)):Yt()},Ut=function(t){if(!Bt(t,1)){var e=(t=F(t,b)).clientX,r=t.clientY,n=e-Tt.x,i=r-Tt.y,s=Tt.isDragging;Tt.x=e,Tt.y=r,(s||(n||i)&&(Math.abs(Tt.startX-e)>=f||Math.abs(Tt.startY-r)>=f))&&(vt=s?2:1,s||(Tt.isDragging=!0),Nt(n,i))}},qt=Tt.onPress=function(t){Bt(t,1)||t&&t.button||(Tt.axis=wt=null,mt.pause(),Tt.isPressed=!0,t=F(t),kt=Mt=0,Tt.startX=Tt.x=t.clientX,Tt.startY=Tt.y=t.clientY,Tt._vx.reset(),Tt._vy.reset(),k(it?g:Rt,p[1],Ut,Ot,!0),Tt.deltaX=Tt.deltaY=0,q&&q(Tt))},Vt=Tt.onRelease=function(t){if(!Bt(t,1)){M(it?g:Rt,p[1],Ut,!0);var e=!isNaN(Tt.y-Tt.startY),n=Tt.isDragging,s=n&&(Math.abs(Tt.x-Tt.startX)>3||Math.abs(Tt.y-Tt.startY)>3),a=F(t);!s&&e&&(Tt._vx.reset(),Tt._vy.reset(),b&&pt&&r.delayedCall(.08,(function(){if(x()-It>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(Rt.createEvent){var e=Rt.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,i,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),Tt.isDragging=Tt.isGesturing=Tt.isPressed=!1,w&&n&&!it&&mt.restart(!0),vt&&Yt(),N&&n&&N(Tt),V&&V(Tt,s)}},Wt=function(t){return t.touches&&t.touches.length>1&&(Tt.isGesturing=!0)&&st(t,Tt.isDragging)},Ht=function(){return(Tt.isGesturing=!1)||at(Tt)},jt=function(t){if(!Bt(t)){var e=Ct(),r=At();Xt((e-Pt)*ft,(r-Et)*ft,1),Pt=e,Et=r,w&&mt.restart(!0)}},Gt=function(t){if(!Bt(t)){t=F(t,b),ot&&(xt=!0);var e=(1===t.deltaMode?v:2===t.deltaMode?i.innerHeight:1)*P;Xt(t.deltaX*e,t.deltaY*e,0),w&&!it&&mt.restart(!0)}},Qt=function(t){if(!Bt(t)){var e=t.clientX,r=t.clientY,n=e-Tt.x,i=r-Tt.y;Tt.x=e,Tt.y=r,yt=!0,w&&mt.restart(!0),(n||i)&&Nt(n,i)}},Zt=function(t){Tt.event=t,tt(Tt)},$t=function(t){Tt.event=t,et(Tt)},Kt=function(t){return Bt(t)||F(t,b)&&ht(Tt)};mt=Tt._dc=r.delayedCall(O||.25,(function(){Tt._vx.reset(),Tt._vy.reset(),mt.pause(),w&&w(Tt)})).pause(),Tt.deltaX=Tt.deltaY=0,Tt._vx=z(0,50,!0),Tt._vy=z(0,50,!0),Tt.scrollX=Ct,Tt.scrollY=At,Tt.isDragging=Tt.isGesturing=Tt.isPressed=!1,d(this),Tt.enable=function(t){return Tt.isEnabled||(k(Dt?Rt:g,"scroll",A),_.indexOf("scroll")>=0&&k(Dt?Rt:g,"scroll",jt,Ot,ct),_.indexOf("wheel")>=0&&k(g,"wheel",Gt,Ot,ct),(_.indexOf("touch")>=0&&u||_.indexOf("pointer")>=0)&&(k(g,p[0],qt,Ot,ct),k(Rt,p[2],Vt),k(Rt,p[3],Vt),pt&&k(g,"click",Lt,!0,!0),ht&&k(g,"click",Kt),st&&k(Rt,"gesturestart",Wt),at&&k(Rt,"gestureend",Ht),tt&&k(g,l+"enter",Zt),et&&k(g,l+"leave",$t),rt&&k(g,l+"move",Qt)),Tt.isEnabled=!0,Tt.isDragging=Tt.isGesturing=Tt.isPressed=yt=vt=!1,Tt._vx.reset(),Tt._vy.reset(),Pt=Ct(),Et=At(),t&&t.type&&qt(t),ut&&ut(Tt)),Tt},Tt.disable=function(){Tt.isEnabled&&(m.filter((function(t){return t!==Tt&&T(t.target)})).length||M(Dt?Rt:g,"scroll",A),Tt.isPressed&&(Tt._vx.reset(),Tt._vy.reset(),M(it?g:Rt,p[1],Ut,!0)),M(Dt?Rt:g,"scroll",jt,ct),M(g,"wheel",Gt,ct),M(g,p[0],qt,ct),M(Rt,p[2],Vt),M(Rt,p[3],Vt),M(g,"click",Lt,!0),M(g,"click",Kt),M(Rt,"gesturestart",Wt),M(Rt,"gestureend",Ht),M(g,l+"enter",Zt),M(g,l+"leave",$t),M(g,l+"move",Qt),Tt.isEnabled=Tt.isPressed=Tt.isDragging=!1,lt&<(Tt))},Tt.kill=Tt.revert=function(){Tt.disable();var t=m.indexOf(Tt);t>=0&&m.splice(t,1),c===Tt&&(c=0)},m.push(Tt),it&&T(g)&&(c=Tt),Tt.enable(Y)},f=t,(_=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&e(f.prototype,_),g&&e(f,g),t;var f,_,g}();Y.version="3.13.0",Y.create=function(t){return new Y(t)},Y.register=B,Y.getAll=function(){return m.slice()},Y.getById=function(t){return m.filter((function(e){return e.vars.id===t}))[0]},_()&&r.registerPlugin(Y);var X,N,U,q,V,W,H,j,G,Q,Z,$,K,J,tt,et,rt,nt,it,st,at,ot,ut,lt,ht,ft,ct,pt,dt,_t,gt,mt,vt,yt,xt,bt,wt,Tt,kt=1,Mt=Date.now,Ot=Mt(),Ct=0,At=0,Pt=function(t,e,r){var n=qt(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Et=function(t,e){return!e||qt(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},St=function t(){return At&&requestAnimationFrame(t)},Dt=function(){return J=1},Rt=function(){return J=0},zt=function(t){return t},Ft=function(t){return Math.round(1e5*t)/1e5||0},It=function(){return"undefined"!=typeof window},Lt=function(){return X||It()&&(X=window.gsap)&&X.registerPlugin&&X},Bt=function(t){return!!~H.indexOf(t)},Yt=function(t){return("Height"===t?gt:U["inner"+t])||V["client"+t]||W["client"+t]},Xt=function(t){return w(t,"getBoundingClientRect")||(Bt(t)?function(){return Je.width=U.innerWidth,Je.height=gt,Je}:function(){return ce(t)})},Nt=function(t,e){var r=e.s,n=e.d2,i=e.d,s=e.a;return Math.max(0,(r="scroll"+n)&&(s=w(t,r))?s()-Xt(t)()[i]:Bt(t)?(V[r]||W[r])-Yt(n):t[r]-t["offset"+n])},Ut=function(t,e){for(var r=0;r<it.length;r+=3)(!e||~e.indexOf(it[r+1]))&&t(it[r],it[r+1],it[r+2])},qt=function(t){return"string"==typeof t},Vt=function(t){return"function"==typeof t},Wt=function(t){return"number"==typeof t},Ht=function(t){return"object"==typeof t},jt=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},Gt=function(t,e){if(t.enabled){var r=t._ctx?t._ctx.add((function(){return e(t)})):e(t);r&&r.totalTime&&(t.callbackAnimation=r)}},Qt=Math.abs,Zt="left",$t="right",Kt="bottom",Jt="width",te="height",ee="Right",re="Left",ne="Top",ie="Bottom",se="padding",ae="margin",oe="Width",ue="Height",le="px",he=function(t){return U.getComputedStyle(t)},fe=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},ce=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==he(t)[tt]&&X.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=t.getBoundingClientRect();return r&&r.progress(0).kill(),n},pe=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},de=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},_e=function(t){var e=X.utils.snap(t),r=Array.isArray(t)&&t.slice(0).sort((function(t,e){return t-e}));return r?function(t,n,i){var s;if(void 0===i&&(i=.001),!n)return e(t);if(n>0){for(t-=i,s=0;s<r.length;s++)if(r[s]>=t)return r[s];return r[s-1]}for(s=r.length,t+=i;s--;)if(r[s]<=t)return r[s];return r[0]}:function(r,n,i){void 0===i&&(i=.001);var s=e(r);return!n||Math.abs(s-r)<i||s-r<0==n<0?s:e(n<0?r-t:r+t)}},ge=function(t,e,r,n){return r.split(",").forEach((function(r){return t(e,r,n)}))},me=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},ve=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},ye=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},xe={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},be={toggleActions:"play",anticipatePin:0},we={top:0,left:0,center:.5,bottom:1,right:1},Te=function(t,e){if(qt(t)){var r=t.indexOf("="),n=~r?+(t.charAt(r-1)+1)*parseFloat(t.substr(r+1)):0;~r&&(t.indexOf("%")>r&&(n*=e/100),t=t.substr(0,r-1)),t=n+(t in we?we[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},ke=function(t,e,r,n,i,s,a,o){var u=i.startColor,l=i.endColor,h=i.fontSize,f=i.indent,c=i.fontWeight,p=q.createElement("div"),d=Bt(r)||"fixed"===w(r,"pinType"),_=-1!==t.indexOf("scroller"),g=d?W:r,m=-1!==t.indexOf("start"),v=m?u:l,y="border-color:"+v+";font-size:"+h+";color:"+v+";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 y+="position:"+((_||o)&&d?"fixed;":"absolute;"),(_||o||!d)&&(y+=(n===S?$t:Kt)+":"+(s+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=m,p.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),p.style.cssText=y,p.innerText=e||0===e?t+"-"+e:t,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p["offset"+n.op.d2],Me(p,0,n,m),p},Me=function(t,e,r,n){var i={display:"block"},s=r[n?"os2":"p2"],a=r[n?"p2":"os2"];t._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+s+oe]=1,i["border"+a+oe]=0,i[r.p]=e+"px",X.set(t,i)},Oe=[],Ce={},Ae=function(){return Mt()-Ct>34&&(xt||(xt=requestAnimationFrame(He)))},Pe=function(){(!ut||!ut.isPressed||ut.startX>W.clientWidth)&&(v.cache++,ut?xt||(xt=requestAnimationFrame(He)):He(),Ct||Fe("scrollStart"),Ct=Mt())},Ee=function(){ft=U.innerWidth,ht=U.innerHeight},Se=function(t){v.cache++,(!0===t||!K&&!ot&&!q.fullscreenElement&&!q.webkitFullscreenElement&&(!lt||ft!==U.innerWidth||Math.abs(U.innerHeight-ht)>.25*U.innerHeight))&&j.restart(!0)},De={},Re=[],ze=function t(){return ve(ar,"scrollEnd",t)||qe(!0)},Fe=function(t){return De[t]&&De[t].map((function(t){return t()}))||Re},Ie=[],Le=function(t){for(var e=0;e<Ie.length;e+=5)(!t||Ie[e+4]&&Ie[e+4].query===t)&&(Ie[e].style.cssText=Ie[e+1],Ie[e].getBBox&&Ie[e].setAttribute("transform",Ie[e+2]||""),Ie[e+3].uncache=1)},Be=function(t,e){var r;for(et=0;et<Oe.length;et++)!(r=Oe[et])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));mt=!0,e&&Le(e),e||Fe("revert")},Ye=function(t,e){v.cache++,(e||!bt)&&v.forEach((function(t){return Vt(t)&&t.cacheID++&&(t.rec=0)})),qt(t)&&(U.history.scrollRestoration=dt=t)},Xe=0,Ne=function(){W.appendChild(_t),gt=!ut&&_t.offsetHeight||U.innerHeight,W.removeChild(_t)},Ue=function(t){return G(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach((function(e){return e.style.display=t?"none":"block"}))},qe=function(t,e){if(V=q.documentElement,W=q.body,H=[U,q,V,W],!Ct||t||mt){Ne(),bt=ar.isRefreshing=!0,v.forEach((function(t){return Vt(t)&&++t.cacheID&&(t.rec=t())}));var r=Fe("refreshInit");st&&ar.sort(),e||Be(),v.forEach((function(t){Vt(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))})),Oe.slice(0).forEach((function(t){return t.refresh()})),mt=!1,Oe.forEach((function(t){if(t._subPinOffset&&t.pin){var e=t.vars.horizontal?"offsetWidth":"offsetHeight",r=t.pin[e];t.revert(!0,1),t.adjustPinSpacing(t.pin[e]-r),t.refresh()}})),vt=1,Ue(!0),Oe.forEach((function(t){var e=Nt(t.scroller,t._dir),r="max"===t.vars.end||t._endClamp&&t.end>e,n=t._startClamp&&t.start>=e;(r||n)&&t.setPositions(n?e-1:t.start,r?Math.max(n?e:t.start+1,e):t.end,!0)})),Ue(!1),vt=0,r.forEach((function(t){return t&&t.render&&t.render(-1)})),v.forEach((function(t){Vt(t)&&(t.smooth&&requestAnimationFrame((function(){return t.target.style.scrollBehavior="smooth"})),t.rec&&t(t.rec))})),Ye(dt,1),j.pause(),Xe++,bt=2,He(2),Oe.forEach((function(t){return Vt(t.vars.onRefresh)&&t.vars.onRefresh(t)})),bt=ar.isRefreshing=!1,Fe("refresh")}else me(ar,"scrollEnd",ze)},Ve=0,We=1,He=function(t){if(2===t||!bt&&!mt){ar.isUpdating=!0,Tt&&Tt.update(0);var e=Oe.length,r=Mt(),n=r-Ot>=50,i=e&&Oe[0].scroll();if(We=Ve>i?-1:1,bt||(Ve=i),n&&(Ct&&!J&&r-Ct>200&&(Ct=0,Fe("scrollEnd")),Z=Ot,Ot=r),We<0){for(et=e;et-- >0;)Oe[et]&&Oe[et].update(0,n);We=1}else for(et=0;et<e;et++)Oe[et]&&Oe[et].update(0,n);ar.isUpdating=!1}xt=0},je=[Zt,"top",Kt,$t,ae+ie,ae+ee,ae+ne,ae+re,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Ge=je.concat([Jt,te,"boxSizing","max"+oe,"max"+ue,"position",ae,se,se+ne,se+ee,se+ie,se+re]),Qe=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,s=je.length,a=e.style,o=t.style;s--;)a[i=je[s]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),o[Kt]=o[$t]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[Jt]=pe(t,E)+le,a[te]=pe(t,S)+le,a[se]=o[ae]=o.top=o[Zt]="0",$e(n),o[Jt]=o["max"+oe]=r[Jt],o[te]=o["max"+ue]=r[te],o[se]=r[se],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},Ze=/([A-Z])/g,$e=function(t){if(t){var e,r,n=t.t.style,i=t.length,s=0;for((t.t._gsap||X.core.getCache(t.t)).uncache=1;s<i;s+=2)r=t[s+1],e=t[s],r?n[e]=r:n[e]&&n.removeProperty(e.replace(Ze,"-$1").toLowerCase())}},Ke=function(t){for(var e=Ge.length,r=t.style,n=[],i=0;i<e;i++)n.push(Ge[i],r[Ge[i]]);return n.t=t,n},Je={left:0,top:0},tr=function(t,e,r,n,i,s,a,o,u,l,h,f,c,p){Vt(t)&&(t=t(o)),qt(t)&&"max"===t.substr(0,3)&&(t=f+("="===t.charAt(4)?Te("0"+t.substr(3),r):0));var d,_,g,m=c?c.time():0;if(c&&c.seek(0),isNaN(t)||(t=+t),Wt(t))c&&(t=X.utils.mapRange(c.scrollTrigger.start,c.scrollTrigger.end,0,f,t)),a&&Me(a,r,n,!0);else{Vt(e)&&(e=e(o));var v,y,x,b,w=(t||"0").split(" ");g=D(e,o)||W,(v=ce(g)||{})&&(v.left||v.top)||"none"!==he(g).display||(b=g.style.display,g.style.display="block",v=ce(g),b?g.style.display=b:g.style.removeProperty("display")),y=Te(w[0],v[n.d]),x=Te(w[1]||"0",r),t=v[n.p]-u[n.p]-l+y+i-x,a&&Me(a,x,n,r-x<20||a._isStart&&x>20),r-=r-x}if(p&&(o[p]=t||-.001,t<0&&(t=0)),s){var T=t+r,k=s._isStart;d="scroll"+n.d2,Me(s,T,n,k&&T>20||!k&&(h?Math.max(W[d],V[d]):s.parentNode[d])<=T+1),h&&(u=ce(a),h&&(s.style[n.op.p]=u[n.op.p]-n.op.m-s._offset+le))}return c&&g&&(d=ce(g),c.seek(f),_=ce(g),c._caScrollDist=d[n.p]-_[n.p],t=t/c._caScrollDist*f),c&&c.seek(m),c?t:Math.round(t)},er=/(webkit|moz|length|cssText|inset)/i,rr=function(t,e,r,n){if(t.parentNode!==e){var i,s,a=t.style;if(e===W){for(i in t._stOrig=a.cssText,s=he(t))+i||er.test(i)||!s[i]||"string"!=typeof a[i]||"0"===i||(a[i]=s[i]);a.top=r,a.left=n}else a.cssText=t._stOrig;X.core.getCache(t).uncache=1,e.appendChild(t)}},nr=function(t,e,r){var n=e,i=n;return function(e){var s=Math.round(t());return s!==n&&s!==i&&Math.abs(s-n)>3&&Math.abs(s-i)>3&&(e=s,r&&r()),i=n,n=Math.round(e)}},ir=function(t,e,r){var n={};n[e.p]="+="+r,X.set(t,n)},sr=function(t,e){var r=R(t,e),n="_scroll"+e.p2,i=function e(i,s,a,o,u){var l=e.tween,h=s.onComplete,f={};a=a||r();var c=nr(r,a,(function(){l.kill(),e.tween=0}));return u=o&&u||0,o=o||i-a,l&&l.kill(),s[n]=i,s.inherit=!1,s.modifiers=f,f[n]=function(){return c(a+o*l.ratio+u*l.ratio*l.ratio)},s.onUpdate=function(){v.cache++,e.tween&&He()},s.onComplete=function(){e.tween=0,h&&h.call(l)},l=e.tween=X.to(t,s)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},me(t,"wheel",r.wheelHandler),ar.isTouch&&me(t,"touchmove",r.wheelHandler),i},ar=function(){function t(e,r){N||t.register(X)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),pt(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),At){var n,i,s,a,o,u,l,h,f,c,p,d,_,g,m,x,b,T,k,M,O,C,A,P,z,F,I,L,B,Y,N,H,j,$,tt,rt,nt,it,ot,ut=e=fe(qt(e)||Wt(e)||e.nodeType?{trigger:e}:e,be),lt=ut.onUpdate,ht=ut.toggleClass,ft=ut.id,ct=ut.onToggle,pt=ut.onRefresh,dt=ut.scrub,_t=ut.trigger,gt=ut.pin,mt=ut.pinSpacing,xt=ut.invalidateOnRefresh,Ot=ut.anticipatePin,St=ut.onScrubComplete,Dt=ut.onSnapComplete,Rt=ut.once,It=ut.snap,Lt=ut.pinReparent,Ut=ut.pinSpacer,Zt=ut.containerAnimation,$t=ut.fastScrollEnd,Kt=ut.preventOverlaps,ge=e.horizontal||e.containerAnimation&&!1!==e.horizontal?E:S,ye=!dt&&0!==dt,we=D(e.scroller||U),Me=X.core.getCache(we),Ae=Bt(we),Ee="fixed"===("pinType"in e?e.pinType:w(we,"pinType")||Ae&&"fixed"),De=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],Re=ye&&e.toggleActions.split(" "),Fe="markers"in e?e.markers:be.markers,Ie=Ae?0:parseFloat(he(we)["border"+ge.p2+oe])||0,Le=this,Be=e.onRefreshInit&&function(){return e.onRefreshInit(Le)},Ye=function(t,e,r){var n=r.d,i=r.d2,s=r.a;return(s=w(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?Yt(i):t["client"+i])||0}}(we,Ae,ge),Ne=function(t,e){return!e||~y.indexOf(t)?Xt(t):function(){return Je}}(we,Ae),Ue=0,Ve=0,He=0,je=R(we,ge);if(Le._startClamp=Le._endClamp=!1,Le._dir=ge,Ot*=45,Le.scroller=we,Le.scroll=Zt?Zt.time.bind(Zt):je,a=je(),Le.vars=e,r=r||e.animation,"refreshPriority"in e&&(st=1,-9999===e.refreshPriority&&(Tt=Le)),Me.tweenScroll=Me.tweenScroll||{top:sr(we,S),left:sr(we,E)},Le.tweenTo=n=Me.tweenScroll[ge.p],Le.scrubDuration=function(t){(j=Wt(t)&&t)?H?H.duration(t):H=X.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:j,paused:!0,onComplete:function(){return St&&St(Le)}}):(H&&H.progress(1).kill(),H=0)},r&&(r.vars.lazy=!1,r._initted&&!Le.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),Le.animation=r.pause(),r.scrollTrigger=Le,Le.scrubDuration(dt),Y=0,ft||(ft=r.vars.id)),It&&(Ht(It)&&!It.push||(It={snapTo:It}),"scrollBehavior"in W.style&&X.set(Ae?[W,V]:we,{scrollBehavior:"auto"}),v.forEach((function(t){return Vt(t)&&t.target===(Ae?q.scrollingElement||V:we)&&(t.smooth=!1)})),s=Vt(It.snapTo)?It.snapTo:"labels"===It.snapTo?function(t){return function(e){return X.utils.snap(de(t),e)}}(r):"labelsDirectional"===It.snapTo?(ur=r,function(t,e){return _e(de(ur))(t,e.direction)}):!1!==It.directional?function(t,e){return _e(It.snapTo)(t,Mt()-Ve<500?0:e.direction)}:X.utils.snap(It.snapTo),$=It.duration||{min:.1,max:2},$=Ht($)?Q($.min,$.max):Q($,$),tt=X.delayedCall(It.delay||j/2||.1,(function(){var t=je(),e=Mt()-Ve<500,i=n.tween;if(!(e||Math.abs(Le.getVelocity())<10)||i||J||Ue===t)Le.isActive&&Ue!==t&&tt.restart(!0);else{var a,o,h=(t-u)/g,f=r&&!ye?r.totalProgress():h,c=e?0:(f-N)/(Mt()-Z)*1e3||0,p=X.utils.clamp(-h,1-h,Qt(c/2)*c/.185),d=h+(!1===It.inertia?0:p),_=It,m=_.onStart,v=_.onInterrupt,y=_.onComplete;if(a=s(d,Le),Wt(a)||(a=d),o=Math.max(0,Math.round(u+a*g)),t<=l&&t>=u&&o!==t){if(i&&!i._initted&&i.data<=Qt(o-t))return;!1===It.inertia&&(p=a-h),n(o,{duration:$(Qt(.185*Math.max(Qt(d-f),Qt(a-f))/c/.05||0)),ease:It.ease||"power3",data:Qt(o-t),onInterrupt:function(){return tt.restart(!0)&&v&&v(Le)},onComplete:function(){Le.update(),Ue=je(),r&&!ye&&(H?H.resetTo("totalProgress",a,r._tTime/r._tDur):r.progress(a)),Y=N=r&&!ye?r.totalProgress():Le.progress,Dt&&Dt(Le),y&&y(Le)}},t,p*g,o-t-p*g),m&&m(Le,n.tween)}}})).pause()),ft&&(Ce[ft]=Le),(ot=(_t=Le.trigger=D(_t||!0!==gt&>))&&_t._gsap&&_t._gsap.stRevert)&&(ot=ot(Le)),gt=!0===gt?_t:D(gt),qt(ht)&&(ht={targets:_t,className:ht}),gt&&(!1===mt||mt===ae||(mt=!(!mt&>.parentNode&>.parentNode.style&&"flex"===he(gt.parentNode).display)&&se),Le.pin=gt,(i=X.core.getCache(gt)).spacer?m=i.pinState:(Ut&&((Ut=D(Ut))&&!Ut.nodeType&&(Ut=Ut.current||Ut.nativeElement),i.spacerIsNative=!!Ut,Ut&&(i.spacerState=Ke(Ut))),i.spacer=T=Ut||q.createElement("div"),T.classList.add("pin-spacer"),ft&&T.classList.add("pin-spacer-"+ft),i.pinState=m=Ke(gt)),!1!==e.force3D&&X.set(gt,{force3D:!0}),Le.spacer=T=i.spacer,B=he(gt),P=B[mt+ge.os2],M=X.getProperty(gt),O=X.quickSetter(gt,ge.a,le),Qe(gt,T,B),b=Ke(gt)),Fe){d=Ht(Fe)?fe(Fe,xe):xe,c=ke("scroller-start",ft,we,ge,d,0),p=ke("scroller-end",ft,we,ge,d,0,c),k=c["offset"+ge.op.d2];var Ge=D(w(we,"content")||we);h=this.markerStart=ke("start",ft,Ge,ge,d,k,0,Zt),f=this.markerEnd=ke("end",ft,Ge,ge,d,k,0,Zt),Zt&&(it=X.quickSetter([h,f],ge.a,le)),Ee||y.length&&!0===w(we,"fixedMarkers")||(or=he(ar=Ae?W:we).position,ar.style.position="absolute"===or||"fixed"===or?or:"relative",X.set([c,p],{force3D:!0}),F=X.quickSetter(c,ge.a,le),L=X.quickSetter(p,ge.a,le))}if(Zt){var Ze=Zt.vars.onUpdate,er=Zt.vars.onUpdateParams;Zt.eventCallback("onUpdate",(function(){Le.update(0,0,1),Ze&&Ze.apply(Zt,er||[])}))}if(Le.previous=function(){return Oe[Oe.indexOf(Le)-1]},Le.next=function(){return Oe[Oe.indexOf(Le)+1]},Le.revert=function(t,e){if(!e)return Le.kill(!0);var n=!1!==t||!Le.enabled,i=K;n!==Le.isReverted&&(n&&(rt=Math.max(je(),Le.scroll.rec||0),He=Le.progress,nt=r&&r.progress()),h&&[h,f,c,p].forEach((function(t){return t.style.display=n?"none":"block"})),n&&(K=Le,Le.update(n)),!gt||Lt&&Le.isActive||(n?function(t,e,r){$e(r);var n=t._gsap;if(n.spacerIsNative)$e(n.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1}(gt,T,m):Qe(gt,T,he(gt),z)),n||Le.update(n),K=i,Le.isReverted=n)},Le.refresh=function(i,s,d,v){if(!K&&Le.enabled||s)if(gt&&i&&Ct)me(t,"scrollEnd",ze);else{!bt&&Be&&Be(Le),K=Le,n.tween&&!d&&(n.tween.kill(),n.tween=0),H&&H.pause(),xt&&r&&(r.revert({kill:!1}).invalidate(),r.getChildren&&r.getChildren(!0,!0,!1).forEach((function(t){return t.vars.immediateRender&&t.render(0,!0,!0)}))),Le.isReverted||Le.revert(!0,!0),Le._subPinOffset=!1;var y,w,k,O,P,F,L,B,Y,N,U,j,G,Q=Ye(),Z=Ne(),$=Zt?Zt.duration():Nt(we,ge),J=g<=.01||!g,et=0,it=v||0,st=Ht(d)?d.end:e.end,ot=e.endTrigger||_t,ut=Ht(d)?d.start:e.start||(0!==e.start&&_t?gt?"0 0":"0 100%":0),lt=Le.pinnedContainer=e.pinnedContainer&&D(e.pinnedContainer,Le),ht=_t&&Math.max(0,Oe.indexOf(Le))||0,ft=ht;for(Fe&&Ht(d)&&(j=X.getProperty(c,ge.p),G=X.getProperty(p,ge.p));ft-- >0;)(F=Oe[ft]).end||F.refresh(0,1)||(K=Le),!(L=F.pin)||L!==_t&&L!==gt&&L!==lt||F.isReverted||(N||(N=[]),N.unshift(F),F.revert(!0,!0)),F!==Oe[ft]&&(ht--,ft--);for(Vt(ut)&&(ut=ut(Le)),ut=Pt(ut,"start",Le),u=tr(ut,_t,Q,ge,je(),h,c,Le,Z,Ie,Ee,$,Zt,Le._startClamp&&"_startClamp")||(gt?-.001:0),Vt(st)&&(st=st(Le)),qt(st)&&!st.indexOf("+=")&&(~st.indexOf(" ")?st=(qt(ut)?ut.split(" ")[0]:"")+st:(et=Te(st.substr(2),Q),st=qt(ut)?ut:(Zt?X.utils.mapRange(0,Zt.duration(),Zt.scrollTrigger.start,Zt.scrollTrigger.end,u):u)+et,ot=_t)),st=Pt(st,"end",Le),l=Math.max(u,tr(st||(ot?"100% 0":$),ot,Q,ge,je()+et,f,p,Le,Z,Ie,Ee,$,Zt,Le._endClamp&&"_endClamp"))||-.001,et=0,ft=ht;ft--;)(L=(F=Oe[ft]).pin)&&F.start-F._pinPush<=u&&!Zt&&F.end>0&&(y=F.end-(Le._startClamp?Math.max(0,F.start):F.start),(L===_t&&F.start-F._pinPush<u||L===lt)&&isNaN(ut)&&(et+=y*(1-F.progress)),L===gt&&(it+=y));if(u+=et,l+=et,Le._startClamp&&(Le._startClamp+=et),Le._endClamp&&!bt&&(Le._endClamp=l||-.001,l=Math.min(l,Nt(we,ge))),g=l-u||(u-=.01)&&.001,J&&(He=X.utils.clamp(0,1,X.utils.normalize(u,l,rt))),Le._pinPush=it,h&&et&&((y={})[ge.a]="+="+et,lt&&(y[ge.p]="-="+je()),X.set([h,f],y)),!gt||vt&&Le.end>=Nt(we,ge)){if(_t&&je()&&!Zt)for(w=_t.parentNode;w&&w!==W;)w._pinOffset&&(u-=w._pinOffset,l-=w._pinOffset),w=w.parentNode}else y=he(gt),O=ge===S,k=je(),C=parseFloat(M(ge.a))+it,!$&&l>1&&(U={style:U=(Ae?q.scrollingElement||V:we).style,value:U["overflow"+ge.a.toUpperCase()]},Ae&&"scroll"!==he(W)["overflow"+ge.a.toUpperCase()]&&(U.style["overflow"+ge.a.toUpperCase()]="scroll")),Qe(gt,T,y),b=Ke(gt),w=ce(gt,!0),B=Ee&&R(we,O?E:S)(),mt?((z=[mt+ge.os2,g+it+le]).t=T,(ft=mt===se?pe(gt,ge)+g+it:0)&&(z.push(ge.d,ft+le),"auto"!==T.style.flexBasis&&(T.style.flexBasis=ft+le)),$e(z),lt&&Oe.forEach((function(t){t.pin===lt&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)})),Ee&&je(rt)):(ft=pe(gt,ge))&&"auto"!==T.style.flexBasis&&(T.style.flexBasis=ft+le),Ee&&((P={top:w.top+(O?k-u:B)+le,left:w.left+(O?B:k-u)+le,boxSizing:"border-box",position:"fixed"})[Jt]=P["max"+oe]=Math.ceil(w.width)+le,P[te]=P["max"+ue]=Math.ceil(w.height)+le,P[ae]=P[ae+ne]=P[ae+ee]=P[ae+ie]=P[ae+re]="0",P[se]=y[se],P[se+ne]=y[se+ne],P[se+ee]=y[se+ee],P[se+ie]=y[se+ie],P[se+re]=y[se+re],x=function(t,e,r){for(var n,i=[],s=t.length,a=r?8:0;a<s;a+=2)n=t[a],i.push(n,n in e?e[n]:t[a+1]);return i.t=t.t,i}(m,P,Lt),bt&&je(0)),r?(Y=r._initted,at(1),r.render(r.duration(),!0,!0),A=M(ge.a)-C+g+it,I=Math.abs(g-A)>1,Ee&&I&&x.splice(x.length-2,2),r.render(0,!0,!0),Y||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),at(0)):A=g,U&&(U.value?U.style["overflow"+ge.a.toUpperCase()]=U.value:U.style.removeProperty("overflow-"+ge.a));N&&N.forEach((function(t){return t.revert(!1,!0)})),Le.start=u,Le.end=l,a=o=bt?rt:je(),Zt||bt||(a<rt&&je(rt),Le.scroll.rec=0),Le.revert(!1,!0),Ve=Mt(),tt&&(Ue=-1,tt.restart(!0)),K=0,r&&ye&&(r._initted||nt)&&r.progress()!==nt&&r.progress(nt||0,!0).render(r.time(),!0,!0),(J||He!==Le.progress||Zt||xt||r&&!r._initted)&&(r&&!ye&&(r._initted||He||!1!==r.vars.immediateRender)&&r.totalProgress(Zt&&u<-.001&&!He?X.utils.normalize(u,l,0):He,!0),Le.progress=J||(a-u)/g===He?0:He),gt&&mt&&(T._pinOffset=Math.round(Le.progress*A)),H&&H.invalidate(),isNaN(j)||(j-=X.getProperty(c,ge.p),G-=X.getProperty(p,ge.p),ir(c,ge,j),ir(h,ge,j-(v||0)),ir(p,ge,G),ir(f,ge,G-(v||0))),J&&!bt&&Le.update(),!pt||bt||_||(_=!0,pt(Le),_=!1)}},Le.getVelocity=function(){return(je()-o)/(Mt()-Z)*1e3||0},Le.endAnimation=function(){jt(Le.callbackAnimation),r&&(H?H.progress(1):r.paused()?ye||jt(r,Le.direction<0,1):jt(r,r.reversed()))},Le.labelToScroll=function(t){return r&&r.labels&&(u||Le.refresh()||u)+r.labels[t]/r.duration()*g||0},Le.getTrailing=function(t){var e=Oe.indexOf(Le),r=Le.direction>0?Oe.slice(0,e).reverse():Oe.slice(e+1);return(qt(t)?r.filter((function(e){return e.vars.preventOverlaps===t})):r).filter((function(t){return Le.direction>0?t.end<=u:t.start>=l}))},Le.update=function(t,e,i){if(!Zt||i||t){var s,h,f,p,d,_,m,v=!0===bt?rt:Le.scroll(),y=t?0:(v-u)/g,w=y<0?0:y>1?1:y||0,k=Le.progress;if(e&&(o=a,a=Zt?je():v,It&&(N=Y,Y=r&&!ye?r.totalProgress():w)),Ot&>&&!K&&!kt&&Ct&&(!w&&u<v+(v-o)/(Mt()-Z)*Ot?w=1e-4:1===w&&l>v+(v-o)/(Mt()-Z)*Ot&&(w=.9999)),w!==k&&Le.enabled){if(p=(d=(s=Le.isActive=!!w&&w<1)!=(!!k&&k<1))||!!w!=!!k,Le.direction=w>k?1:-1,Le.progress=w,p&&!K&&(h=w&&!k?0:1===w?1:1===k?2:3,ye&&(f=!d&&"none"!==Re[h+1]&&Re[h+1]||Re[h],m=r&&("complete"===f||"reset"===f||f in r))),Kt&&(d||m)&&(m||dt||!r)&&(Vt(Kt)?Kt(Le):Le.getTrailing(Kt).forEach((function(t){return t.endAnimation()}))),ye||(!H||K||kt?r&&r.totalProgress(w,!(!K||!Ve&&!t)):(H._dp._time-H._start!==H._time&&H.render(H._dp._time-H._start),H.resetTo?H.resetTo("totalProgress",w,r._tTime/r._tDur):(H.vars.totalProgress=w,H.invalidate().restart()))),gt)if(t&&mt&&(T.style[mt+ge.os2]=P),Ee){if(p){if(_=!t&&w>k&&l+1>v&&v+1>=Nt(we,ge),Lt)if(t||!s&&!_)rr(gt,T);else{var M=ce(gt,!0),E=v-u;rr(gt,W,M.top+(ge===S?E:0)+le,M.left+(ge===S?0:E)+le)}$e(s||_?x:b),I&&w<1&&s||O(C+(1!==w||_?0:A))}}else O(Ft(C+A*w));It&&!n.tween&&!K&&!kt&&tt.restart(!0),ht&&(d||Rt&&w&&(w<1||!yt))&&G(ht.targets).forEach((function(t){return t.classList[s||Rt?"add":"remove"](ht.className)})),lt&&!ye&&!t&<(Le),p&&!K?(ye&&(m&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),lt&<(Le)),!d&&yt||(ct&&d&&Gt(Le,ct),De[h]&&Gt(Le,De[h]),Rt&&(1===w?Le.kill(!1,1):De[h]=0),d||De[h=1===w?1:3]&&Gt(Le,De[h])),$t&&!s&&Math.abs(Le.getVelocity())>(Wt($t)?$t:2500)&&(jt(Le.callbackAnimation),H?H.progress(1):jt(r,"reverse"===f?1:!w,1))):ye&<&&!K&<(Le)}if(L){var D=Zt?v/Zt.duration()*(Zt._caScrollDist||0):v;F(D+(c._isFlipped?1:0)),L(D)}it&&it(-v/Zt.duration()*(Zt._caScrollDist||0))}},Le.enable=function(e,r){Le.enabled||(Le.enabled=!0,me(we,"resize",Se),Ae||me(we,"scroll",Pe),Be&&me(t,"refreshInit",Be),!1!==e&&(Le.progress=He=0,a=o=Ue=je()),!1!==r&&Le.refresh())},Le.getTween=function(t){return t&&n?n.tween:H},Le.setPositions=function(t,e,r,n){if(Zt){var i=Zt.scrollTrigger,s=Zt.duration(),a=i.end-i.start;t=i.start+a*t/s,e=i.start+a*e/s}Le.refresh(!1,!1,{start:Et(t,r&&!!Le._startClamp),end:Et(e,r&&!!Le._endClamp)},n),Le.update()},Le.adjustPinSpacing=function(t){if(z&&t){var e=z.indexOf(ge.d)+1;z[e]=parseFloat(z[e])+t+le,z[1]=parseFloat(z[1])+t+le,$e(z)}},Le.disable=function(e,r){if(Le.enabled&&(!1!==e&&Le.revert(!0,!0),Le.enabled=Le.isActive=!1,r||H&&H.pause(),rt=0,i&&(i.uncache=1),Be&&ve(t,"refreshInit",Be),tt&&(tt.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!Ae)){for(var s=Oe.length;s--;)if(Oe[s].scroller===we&&Oe[s]!==Le)return;ve(we,"resize",Se),Ae||ve(we,"scroll",Pe)}},Le.kill=function(t,n){Le.disable(t,n),H&&!n&&H.kill(),ft&&delete Ce[ft];var s=Oe.indexOf(Le);s>=0&&Oe.splice(s,1),s===et&&We>0&&et--,s=0,Oe.forEach((function(t){return t.scroller===Le.scroller&&(s=1)})),s||bt||(Le.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),h&&[h,f,c,p].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),Tt===Le&&(Tt=0),gt&&(i&&(i.uncache=1),s=0,Oe.forEach((function(t){return t.pin===gt&&s++})),s||(i.spacer=0)),e.onKill&&e.onKill(Le)},Oe.push(Le),Le.enable(!1,!1),ot&&ot(Le),r&&r.add&&!g){var nr=Le.update;Le.update=function(){Le.update=nr,v.cache++,u||l||Le.refresh()},X.delayedCall(.01,Le.update),g=.01,u=l=0}else Le.refresh();gt&&function(){if(wt!==Xe){var t=wt=Xe;requestAnimationFrame((function(){return t===Xe&&qe(!0)}))}}()}else this.update=this.refresh=this.kill=zt;var ar,or,ur},t.register=function(e){return N||(X=e||Lt(),It()&&window.document&&t.enable(),N=At),N},t.defaults=function(t){if(t)for(var e in t)be[e]=t[e];return be},t.disable=function(t,e){At=0,Oe.forEach((function(r){return r[e?"kill":"disable"](t)})),ve(U,"wheel",Pe),ve(q,"scroll",Pe),clearInterval($),ve(q,"touchcancel",zt),ve(W,"touchstart",zt),ge(ve,q,"pointerdown,touchstart,mousedown",Dt),ge(ve,q,"pointerup,touchend,mouseup",Rt),j.kill(),Ut(ve);for(var r=0;r<v.length;r+=3)ye(ve,v[r],v[r+1]),ye(ve,v[r],v[r+2])},t.enable=function(){if(U=window,q=document,V=q.documentElement,W=q.body,X&&(G=X.utils.toArray,Q=X.utils.clamp,pt=X.core.context||zt,at=X.core.suppressOverwrites||zt,dt=U.history.scrollRestoration||"auto",Ve=U.pageYOffset||0,X.core.globals("ScrollTrigger",t),W)){At=1,(_t=document.createElement("div")).style.height="100vh",_t.style.position="absolute",Ne(),St(),Y.register(X),t.isTouch=Y.isTouch,ct=Y.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),lt=1===Y.isTouch,me(U,"wheel",Pe),H=[U,q,V,W],X.matchMedia?(t.matchMedia=function(t){var e,r=X.matchMedia();for(e in t)r.add(e,t[e]);return r},X.addEventListener("matchMediaInit",(function(){return Be()})),X.addEventListener("matchMediaRevert",(function(){return Le()})),X.addEventListener("matchMedia",(function(){qe(0,1),Fe("matchMedia")})),X.matchMedia().add("(orientation: portrait)",(function(){return Ee(),Ee}))):console.warn("Requires GSAP 3.11.0 or later"),Ee(),me(q,"scroll",Pe);var e,r,n=W.hasAttribute("style"),i=W.style,s=i.borderTopStyle,a=X.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",e=ce(W),S.m=Math.round(e.top+S.sc())||0,E.m=Math.round(e.left+E.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),n||(W.setAttribute("style",""),W.removeAttribute("style")),$=setInterval(Ae,250),X.delayedCall(.5,(function(){return kt=0})),me(q,"touchcancel",zt),me(W,"touchstart",zt),ge(me,q,"pointerdown,touchstart,mousedown",Dt),ge(me,q,"pointerup,touchend,mouseup",Rt),tt=X.utils.checkPrefix("transform"),Ge.push(tt),N=Mt(),j=X.delayedCall(.2,qe).pause(),it=[q,"visibilitychange",function(){var t=U.innerWidth,e=U.innerHeight;q.hidden?(rt=t,nt=e):rt===t&&nt===e||Se()},q,"DOMContentLoaded",qe,U,"load",qe,U,"resize",Se],Ut(me),Oe.forEach((function(t){return t.enable(0,1)})),r=0;r<v.length;r+=3)ye(ve,v[r],v[r+1]),ye(ve,v[r],v[r+2])}},t.config=function(e){"limitCallbacks"in e&&(yt=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval($)||($=r)&&setInterval(Ae,r),"ignoreMobileResize"in e&&(lt=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Ut(ve)||Ut(me,e.autoRefreshEvents||"none"),ot=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=D(t),n=v.indexOf(r),i=Bt(r);~n&&v.splice(n,i?6:2),e&&(i?y.unshift(U,e,W,e,V,e):y.unshift(r,e))},t.clearMatchMedia=function(t){Oe.forEach((function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)}))},t.isInViewport=function(t,e,r){var n=(qt(t)?D(t):t).getBoundingClientRect(),i=n[r?Jt:te]*e||0;return r?n.right-i>0&&n.left+i<U.innerWidth:n.bottom-i>0&&n.top+i<U.innerHeight},t.positionInViewport=function(t,e,r){qt(t)&&(t=D(t));var n=t.getBoundingClientRect(),i=n[r?Jt:te],s=null==e?i/2:e in we?we[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+s)/U.innerWidth:(n.top+s)/U.innerHeight},t.killAll=function(t){if(Oe.slice(0).forEach((function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()})),!0!==t){var e=De.killAll||[];De={},e.forEach((function(t){return t()}))}},t}();ar.version="3.13.0",ar.saveStyles=function(t){return t?G(t).forEach((function(t){if(t&&t.style){var e=Ie.indexOf(t);e>=0&&Ie.splice(e,5),Ie.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),X.core.getCache(t),pt())}})):Ie},ar.revert=function(t,e){return Be(!t,e)},ar.create=function(t,e){return new ar(t,e)},ar.refresh=function(t){return t?Se(!0):(N||ar.register())&&qe(!0)},ar.update=function(t){return++v.cache&&He(!0===t?2:0)},ar.clearScrollMemory=Ye,ar.maxScroll=function(t,e){return Nt(t,e?E:S)},ar.getScrollFunc=function(t,e){return R(D(t),e?E:S)},ar.getById=function(t){return Ce[t]},ar.getAll=function(){return Oe.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},ar.isScrolling=function(){return!!Ct},ar.snapDirectional=_e,ar.addEventListener=function(t,e){var r=De[t]||(De[t]=[]);~r.indexOf(e)||r.push(e)},ar.removeEventListener=function(t,e){var r=De[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},ar.batch=function(t,e){var r,n=[],i={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var r=[],n=[],i=X.delayedCall(s,(function(){e(r,n),r=[],n=[]})).pause();return function(t){r.length||i.restart(!0),r.push(t.trigger),n.push(t),a<=r.length&&i.progress(1)}};for(r in e)i[r]="on"===r.substr(0,2)&&Vt(e[r])&&"onRefreshInit"!==r?o(0,e[r]):e[r];return Vt(a)&&(a=a(),me(ar,"refresh",(function(){return a=e.batchMax()}))),G(t).forEach((function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(ar.create(e))})),n};var or,ur=function(t,e,r,n){return e>n?t(n):e<0&&t(0),r>n?(n-e)/(r-e):r<0?e/(e-r):1},lr=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(Y.isTouch?" pinch-zoom":""):"none",e===V&&t(W,r)},hr={auto:1,scroll:1},fr=function(t){var e,r=t.event,n=t.target,i=t.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,a=s._gsap||X.core.getCache(s),o=Mt();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==W&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!hr[(e=he(s)).overflowY]&&!hr[e.overflowX]);)s=s.parentNode;a._isScroll=s&&s!==n&&!Bt(s)&&(hr[(e=he(s)).overflowY]||hr[e.overflowX]),a._isScrollT=o}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},cr=function(t,e,r,n){return Y.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&fr,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&me(q,Y.eventTypes[0],dr,!1,!0)},onDisable:function(){return ve(q,Y.eventTypes[0],dr,!0)}})},pr=/(input|label|select|textarea)/i,dr=function(t){var e=pr.test(t.target.tagName);(e||or)&&(t._gsapAllow=!0,or=e)},_r=function(t){Ht(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,r,n,i,s,a,o,u,l=t,h=l.normalizeScrollX,f=l.momentum,c=l.allowNestedScroll,p=l.onRelease,d=D(t.target)||V,_=X.core.globals().ScrollSmoother,g=_&&_.get(),m=ct&&(t.content&&D(t.content)||g&&!1!==t.content&&!g.smooth()&&g.content()),y=R(d,S),x=R(d,E),b=1,w=(Y.isTouch&&U.visualViewport?U.visualViewport.scale*U.visualViewport.width:U.outerWidth)/U.innerWidth,T=0,k=Vt(f)?function(){return f(e)}:function(){return f||2.8},M=cr(d,t.type,!0,c),O=function(){return i=!1},C=zt,A=zt,P=function(){r=Nt(d,S),A=Q(ct?1:0,r),h&&(C=Q(0,Nt(d,E))),n=Xe},z=function(){m._gsap.y=Ft(parseFloat(m._gsap.y)+y.offset)+"px",m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(m._gsap.y)+", 0, 1)",y.offset=y.cacheID=0},F=function(){P(),s.isActive()&&s.vars.scrollY>r&&(y()>r?s.progress(1)&&y(r):s.resetTo("scrollY",r))};return m&&X.set(m,{y:"+=0"}),t.ignoreCheck=function(t){return ct&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(O);var t=Ft(e.deltaY/2),r=A(y.v-t);if(m&&r!==y.v+y.offset){y.offset=r-y.v;var n=Ft((parseFloat(m&&m._gsap.y)||0)-y.offset);m.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",m._gsap.y=n+"px",y.cacheID=v.cache,He()}return!0}y.offset&&z(),i=!0}()||b>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=b;b=Ft((U.visualViewport&&U.visualViewport.scale||1)/w),s.pause(),t!==b&&lr(d,b>1.01||!h&&"x"),a=x(),o=y(),P(),n=Xe},t.onRelease=t.onGestureStart=function(t,e){if(y.offset&&z(),e){v.cache++;var n,i,a=k();h&&(i=(n=x())+.05*a*-t.velocityX/.227,a*=ur(x,n,i,Nt(d,E)),s.vars.scrollX=C(i)),i=(n=y())+.05*a*-t.velocityY/.227,a*=ur(y,n,i,Nt(d,S)),s.vars.scrollY=A(i),s.invalidate().duration(a).play(.01),(ct&&s.vars.scrollY>=r||n>=r-1)&&X.to({},{onUpdate:F,duration:a})}else u.restart(!0);p&&p(t)},t.onWheel=function(){s._ts&&s.pause(),Mt()-T>1e3&&(n=0,T=Mt())},t.onChange=function(t,e,r,i,s){if(Xe!==n&&P(),e&&h&&x(C(i[2]===e?a+(t.startX-t.x):x()+e-i[1])),r){y.offset&&z();var u=s[2]===r,l=u?o+t.startY-t.y:y()+r-s[1],f=A(l);u&&l!==f&&(o+=f-l),y(f)}(r||e)&&He()},t.onEnable=function(){lr(d,!h&&"x"),ar.addEventListener("refresh",F),me(U,"resize",F),y.smooth&&(y.target.style.scrollBehavior="auto",y.smooth=x.smooth=!1),M.enable()},t.onDisable=function(){lr(d,!0),ve(U,"resize",F),ar.removeEventListener("refresh",F),M.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Y(t)).iOS=ct,ct&&!y()&&y(1),ct&&X.ticker.add(zt),u=e._dc,s=X.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:h?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:nr(y,y(),(function(){return s.pause()}))},onUpdate:He,onComplete:u.vars.onComplete}),e};ar.sort=function(t){if(Vt(t))return Oe.sort(t);var e=U.pageYOffset||0;return ar.getAll().forEach((function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+U.innerHeight})),Oe.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+(t.vars.containerAnimation?1e6:t._sortY)-((e.vars.containerAnimation?1e6:e._sortY)+-1e6*(e.vars.refreshPriority||0))})},ar.observe=function(t){return new Y(t)},ar.normalizeScroll=function(t){if(void 0===t)return ut;if(!0===t&&ut)return ut.enable();if(!1===t)return ut&&ut.kill(),void(ut=t);var e=t instanceof Y?t:_r(t);return ut&&ut.target===e.target&&ut.kill(),Bt(e.target)&&(ut=e),e},ar.core={_getVelocityProp:z,_inputObserver:cr,_scrollers:v,_proxies:y,bridge:{ss:function(){Ct||Fe("scrollStart"),Ct=Mt()},ref:function(){return K}}},Lt()&&X.registerPlugin(ar),t.ScrollTrigger=ar,t.default=ar,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete window.default}(e)},7629:(t,e,r)=>{"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}r.d(e,{Ay:()=>Qn});var s,a,o,u,l,h,f,c,p,d,_,g,m,v,y,x,b,w={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},T={duration:.5,overwrite:!1,delay:0},k=1e8,M=1e-8,O=2*Math.PI,C=O/4,A=0,P=Math.sqrt,E=Math.cos,S=Math.sin,D=function(t){return"string"==typeof t},R=function(t){return"function"==typeof t},z=function(t){return"number"==typeof t},F=function(t){return void 0===t},I=function(t){return"object"==typeof t},L=function(t){return!1!==t},B=function(){return"undefined"!=typeof window},Y=function(t){return R(t)||D(t)},X="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},N=Array.isArray,U=/(?:-?\.?\d|\.)+/gi,q=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,V=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,W=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,H=/[+-]=-?[.\d]+/,j=/[^,'"\[\]\s]+/gi,G=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Q={},Z={},$=function(t){return(Z=Ct(t,Q))&&Cr},K=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},J=function(t,e){return!e&&console.warn(t)},tt=function(t,e){return t&&(Q[t]=e)&&Z&&(Z[t]=e)||Q},et=function(){return 0},rt={suppressEvents:!0,isStart:!0,kill:!1},nt={suppressEvents:!0,kill:!1},it={suppressEvents:!0},st={},at=[],ot={},ut={},lt={},ht=30,ft=[],ct="",pt=function(t){var e,r,n=t[0];if(I(n)||R(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=ft.length;r--&&!ft[r].targetTest(n););e=ft[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Ne(t[r],e)))||t.splice(r,1);return t},dt=function(t){return t._gsap||pt(ie(t))[0]._gsap},_t=function(t,e,r){return(r=t[e])&&R(r)?t[e]():F(r)&&t.getAttribute&&t.getAttribute(e)||r},gt=function(t,e){return(t=t.split(",")).forEach(e)||t},mt=function(t){return Math.round(1e5*t)/1e5||0},vt=function(t){return Math.round(1e7*t)/1e7||0},yt=function(t,e){var r=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+n:"-"===r?t-n:"*"===r?t*n:t/n},xt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},bt=function(){var t,e,r=at.length,n=at.slice(0);for(ot={},at.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},wt=function(t){return!!(t._initted||t._startAt||t.add)},Tt=function(t,e,r,n){at.length&&!a&&bt(),t.render(e,r,n||!!(a&&e<0&&wt(t))),at.length&&!a&&bt()},kt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(j).length<2?e:D(t)?t.trim():t},Mt=function(t){return t},Ot=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Ct=function(t,e){for(var r in e)t[r]=e[r];return t},At=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=I(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Pt=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},Et=function(t){var e,r=t.parent||u,n=t.keyframes?(e=N(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):Ot;if(L(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},St=function(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var s,a=t[n];if(i)for(s=e[i];a&&a[i]>s;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=a,e.parent=e._dp=t,e},Dt=function(t,e,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=e._prev,s=e._next;i?i._next=s:t[r]===e&&(t[r]=s),s?s._prev=i:t[n]===e&&(t[n]=i),e._next=e._prev=e.parent=null},Rt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},zt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Ft=function(t,e,r,n){return t._startAt&&(a?t._startAt.revert(nt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},It=function t(e){return!e||e._ts&&t(e.parent)},Lt=function(t){return t._repeat?Bt(t._tTime,t=t.duration()+t._rDelay)*t:0},Bt=function(t,e){var r=Math.floor(t=vt(t/e));return t&&r===t?r-1:r},Yt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Xt=function(t){return t._end=vt(t._start+(t._tDur/Math.abs(t._ts||t._rts||M)||0))},Nt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=vt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Xt(t),r._dirty||zt(r,t)),t},Ut=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Yt(t.rawTime(),e),(!e._dur||te(0,e.totalDuration(),r)-e._tTime>M)&&e.render(r,!0)),zt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},qt=function(t,e,r,n){return e.parent&&Rt(e),e._start=vt((z(r)?r:r||t!==u?$t(t,r,e):t._time)+e._delay),e._end=vt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),St(t,e,"_first","_last",t._sort?"_start":0),jt(e)||(t._recent=e),n||Ut(t,e),t._ts<0&&Nt(t,t._tTime),t},Vt=function(t,e){return(Q.ScrollTrigger||K("scrollTrigger",e))&&Q.ScrollTrigger.create(e,t)},Wt=function(t,e,r,n,i){return Qe(t,e,i),t._initted?!r&&t._pt&&!a&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&p!==Ae.frame?(at.push(t),t._lazy=[i,n],1):void 0:1},Ht=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},jt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Gt=function(t,e,r,n){var i=t._repeat,s=vt(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:vt(s*(i+1)+t._rDelay*i):s,a>0&&!n&&Nt(t,t._tTime=t._tDur*a),t.parent&&Xt(t),r||zt(t.parent,t),t},Qt=function(t){return t instanceof qe?zt(t):Gt(t,t._dur)},Zt={_start:0,endTime:et,totalDuration:et},$t=function t(e,r,n){var i,s,a,o=e.labels,u=e._recent||Zt,l=e.duration()>=k?u.endTime(!1):e._dur;return D(r)&&(isNaN(r)||r in o)?(s=r.charAt(0),a="%"===r.substr(-1),i=r.indexOf("="),"<"===s||">"===s?(i>=0&&(r=r.replace(/=/,"")),("<"===s?u._start:u.endTime(u._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(i<0?u:n).totalDuration()/100:1)):i<0?(r in o||(o[r]=l),o[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),a&&n&&(s=s/100*(N(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:l+s)):null==r?l:+r},Kt=function(t,e,r){var n,i,s=z(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=r,t){for(n=o,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=L(i.vars.inherit)&&i.parent;o.immediateRender=L(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new tr(e[0],o,e[a+1])},Jt=function(t,e){return t||0==