alrdy-animate
Version:
A library to handle animations on scroll with GSAP integration.
2 lines • 113 kB
JavaScript
/*! For license information please see gsap-core.7a0cddbd4b8868a6252c.js.LICENSE.txt */
"use strict";(this.webpackChunkAlrdyAnimate=this.webpackChunkAlrdyAnimate||[]).push([[678],{575(t,e,r){function n(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)}}r.d(e,{ScrollTrigger:()=>lr});var i,s,a,o,u,l,c,f,h,p,d,_,g,m=function(){return i||"undefined"!=typeof window&&(i=window.gsap)&&i.registerPlugin&&i},v=1,y=[],x=[],b=[],w=Date.now,T=function(t,e){return e},k=function(t,e){return~b.indexOf(t)&&b[b.indexOf(t)+1][e]},M=function(t){return!!~p.indexOf(t)},O=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},C=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},E="scrollLeft",S="scrollTop",A=function(){return d&&d.isPressed||x.cache++},P=function(t,e){var r=function r(n){if(n||0===n){v&&(a.history.scrollRestoration="manual");var i=d&&d.isPressed;n=r.v=Math.round(n)||(d&&d.iOS?1:0),t(n),r.cacheID=x.cache,i&&T("ss",n)}else(e||x.cache!==r.cacheID||T("ref"))&&(r.cacheID=x.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},D={s:E,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:P(function(t){return arguments.length?a.scrollTo(t,R.sc()):a.pageXOffset||o[E]||u[E]||l[E]||0})},R={s:S,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:D,sc:P(function(t){return arguments.length?a.scrollTo(D.sc(),t):a.pageYOffset||o[S]||u[S]||l[S]||0})},z=function(t,e){return(e&&e._ctx&&e._ctx.selector||i.utils.toArray)(t)[0]||("string"==typeof t&&!1!==i.config().nullTargetWarn?console.warn("Element not found:",t):null)},F=function(t,e){var r=e.s,n=e.sc;M(t)&&(t=o.scrollingElement||u);var s=x.indexOf(t),a=n===R.sc?1:2;!~s&&(s=x.push(t)-1),x[s+a]||O(t,"scroll",A);var l=x[s+a],c=l||(x[s+a]=P(k(t,r),!0)||(M(t)?n:P(function(e){return arguments.length?t[r]=e:t[r]})));return c.target=t,l||(c.smooth="smooth"===i.getProperty(t,"scrollBehavior")),c},I=function(t,e,r){var n=t,i=t,s=w(),a=s,o=e||50,u=Math.max(500,3*o),l=function(t,e){var u=w();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,c=w();return(t||0===t)&&t!==n&&l(t),s===a||c-a>u?0:(n+(r?o:-o))/((r?c:s)-e)*1e3}}},Y=function(t,e){return e&&!t._gsapAllow&&!1!==t.cancelable&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},B=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,r,n;(h=i.core.globals().ScrollTrigger)&&h.core&&(t=h.core,e=t.bridge||{},r=t._scrollers,n=t._proxies,r.push.apply(r,x),n.push.apply(n,b),x=r,b=n,T=function(t,r){return e[t](r)})},N=function(t){return i=t||m(),!s&&i&&"undefined"!=typeof document&&document.body&&(a=window,o=document,u=o.documentElement,l=o.body,p=[a,o,u,l],i.utils.clamp,g=i.core.context||function(){},f="onpointerenter"in l?"pointer":"mouse",c=X.isTouch=a.matchMedia&&a.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in a||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,_=X.eventTypes=("ontouchstart"in u?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in u?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return v=0},500),s=1),h||L(),s};D.op=R,x.cache=0;var X=function(){function t(t){this.init(t)}var e,r;return t.prototype.init=function(t){s||N(i)||console.warn("Please gsap.registerPlugin(Observer)"),h||L();var e=t.tolerance,r=t.dragMinimum,n=t.type,p=t.target,m=t.lineHeight,v=t.debounce,x=t.preventDefault,b=t.onStop,T=t.onStopDelay,k=t.ignore,E=t.wheelSpeed,S=t.event,P=t.onDragStart,X=t.onDragEnd,U=t.onDrag,q=t.onPress,H=t.onRelease,W=t.onRight,V=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,ct=t.onClick,ft=t.scrollSpeed,ht=t.capture,pt=t.allowClicks,dt=t.lockAxis,_t=t.onLockAxis;this.target=p=z(p)||u,this.vars=t,k&&(k=i.utils.toArray(k)),e=e||1e-9,r=r||0,E=E||1,ft=ft||1,n=n||"wheel,touch,pointer",v=!1!==v,m||(m=parseFloat(a.getComputedStyle(l).lineHeight)||22);var gt,mt,vt,yt,xt,bt,wt,Tt=this,kt=0,Mt=0,Ot=t.passive||!x&&!1!==t.passive,Ct=F(p,D),Et=F(p,R),St=Ct(),At=Et(),Pt=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===_[0],Dt=M(p),Rt=p.ownerDocument||o,zt=[0,0,0],Ft=[0,0,0],It=0,Yt=function(){return It=w()},Bt=function(t,e){return(Tt.event=t)&&k&&function(t,e){for(var r=e.length;r--;)if(e[r]===t||e[r].contains(t))return!0;return!1}(t.target,k)||e&&Pt&&"touch"!==t.pointerType||nt&&nt(t,e)},Lt=function(){var t=Tt.deltaX=B(zt),r=Tt.deltaY=B(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),V&&Tt.deltaX<0&&V(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&&(P&&1===vt&&P(Tt),U&&U(Tt),vt=0),yt=!1),bt&&!(bt=!1)&&_t&&_t(Tt),xt&&(ot(Tt),xt=!1),gt=0},Nt=function(t,e,r){zt[r]+=t,Ft[r]+=e,Tt._vx.update(t),Tt._vy.update(e),v?gt||(gt=requestAnimationFrame(Lt)):Lt()},Xt=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)),v?gt||(gt=requestAnimationFrame(Lt)):Lt()},Ut=function(t){if(!Bt(t,1)){var e=(t=Y(t,x)).clientX,n=t.clientY,i=e-Tt.x,s=n-Tt.y,a=Tt.isDragging;Tt.x=e,Tt.y=n,(a||(i||s)&&(Math.abs(Tt.startX-e)>=r||Math.abs(Tt.startY-n)>=r))&&(vt||(vt=a?2:1),a||(Tt.isDragging=!0),Xt(i,s))}},qt=Tt.onPress=function(t){Bt(t,1)||t&&t.button||(Tt.axis=wt=null,mt.pause(),Tt.isPressed=!0,t=Y(t),kt=Mt=0,Tt.startX=Tt.x=t.clientX,Tt.startY=Tt.y=t.clientY,Tt._vx.reset(),Tt._vy.reset(),O(it?p:Rt,_[1],Ut,Ot,!0),Tt.deltaX=Tt.deltaY=0,q&&q(Tt))},Ht=Tt.onRelease=function(t){if(!Bt(t,1)){C(it?p:Rt,_[1],Ut,!0);var e=!isNaN(Tt.y-Tt.startY),r=Tt.isDragging,n=r&&(Math.abs(Tt.x-Tt.startX)>3||Math.abs(Tt.y-Tt.startY)>3),s=Y(t);!n&&e&&(Tt._vx.reset(),Tt._vy.reset(),x&&pt&&i.delayedCall(.08,function(){if(w()-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,a,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),Tt.isDragging=Tt.isGesturing=Tt.isPressed=!1,b&&r&&!it&&mt.restart(!0),vt&&Lt(),X&&r&&X(Tt),H&&H(Tt,n)}},Wt=function(t){return t.touches&&t.touches.length>1&&(Tt.isGesturing=!0)&&st(t,Tt.isDragging)},Vt=function(){return(Tt.isGesturing=!1)||at(Tt)},jt=function(t){if(!Bt(t)){var e=Ct(),r=Et();Nt((e-St)*ft,(r-At)*ft,1),St=e,At=r,b&&mt.restart(!0)}},Gt=function(t){if(!Bt(t)){t=Y(t,x),ot&&(xt=!0);var e=(1===t.deltaMode?m:2===t.deltaMode?a.innerHeight:1)*E;Nt(t.deltaX*e,t.deltaY*e,0),b&&!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,b&&mt.restart(!0),(n||i)&&Xt(n,i)}},Zt=function(t){Tt.event=t,tt(Tt)},$t=function(t){Tt.event=t,et(Tt)},Kt=function(t){return Bt(t)||Y(t,x)&&ct(Tt)};mt=Tt._dc=i.delayedCall(T||.25,function(){Tt._vx.reset(),Tt._vy.reset(),mt.pause(),b&&b(Tt)}).pause(),Tt.deltaX=Tt.deltaY=0,Tt._vx=I(0,50,!0),Tt._vy=I(0,50,!0),Tt.scrollX=Ct,Tt.scrollY=Et,Tt.isDragging=Tt.isGesturing=Tt.isPressed=!1,g(this),Tt.enable=function(t){return Tt.isEnabled||(O(Dt?Rt:p,"scroll",A),n.indexOf("scroll")>=0&&O(Dt?Rt:p,"scroll",jt,Ot,ht),n.indexOf("wheel")>=0&&O(p,"wheel",Gt,Ot,ht),(n.indexOf("touch")>=0&&c||n.indexOf("pointer")>=0)&&(O(p,_[0],qt,Ot,ht),O(Rt,_[2],Ht),O(Rt,_[3],Ht),pt&&O(p,"click",Yt,!0,!0),ct&&O(p,"click",Kt),st&&O(Rt,"gesturestart",Wt),at&&O(Rt,"gestureend",Vt),tt&&O(p,f+"enter",Zt),et&&O(p,f+"leave",$t),rt&&O(p,f+"move",Qt)),Tt.isEnabled=!0,Tt.isDragging=Tt.isGesturing=Tt.isPressed=yt=vt=!1,Tt._vx.reset(),Tt._vy.reset(),St=Ct(),At=Et(),t&&t.type&&qt(t),ut&&ut(Tt)),Tt},Tt.disable=function(){Tt.isEnabled&&(y.filter(function(t){return t!==Tt&&M(t.target)}).length||C(Dt?Rt:p,"scroll",A),Tt.isPressed&&(Tt._vx.reset(),Tt._vy.reset(),C(it?p:Rt,_[1],Ut,!0)),C(Dt?Rt:p,"scroll",jt,ht),C(p,"wheel",Gt,ht),C(p,_[0],qt,ht),C(Rt,_[2],Ht),C(Rt,_[3],Ht),C(p,"click",Yt,!0),C(p,"click",Kt),C(Rt,"gesturestart",Wt),C(Rt,"gestureend",Vt),C(p,f+"enter",Zt),C(p,f+"leave",$t),C(p,f+"move",Qt),Tt.isEnabled=Tt.isPressed=Tt.isDragging=!1,lt&<(Tt))},Tt.kill=Tt.revert=function(){Tt.disable();var t=y.indexOf(Tt);t>=0&&y.splice(t,1),d===Tt&&(d=0)},y.push(Tt),it&&M(p)&&(d=Tt),Tt.enable(S)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&n(e.prototype,r),t}();X.version="3.15.0",X.create=function(t){return new X(t)},X.register=N,X.getAll=function(){return y.slice()},X.getById=function(t){return y.filter(function(e){return e.vars.id===t})[0]},m()&&i.registerPlugin(X);var U,q,H,W,V,j,G,Q,Z,$,K,J,tt,et,rt,nt,it,st,at,ot,ut,lt,ct,ft,ht,pt,dt,_t,gt,mt,vt,yt,xt,bt,wt,Tt,kt,Mt,Ot=1,Ct=Date.now,Et=Ct(),St=0,At=0,Pt=function(t,e,r){var n=Wt(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Dt=function(t,e){return!e||Wt(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Rt=function t(){return At&&requestAnimationFrame(t)},zt=function(){return et=1},Ft=function(){return et=0},It=function(t){return t},Yt=function(t){return Math.round(1e5*t)/1e5||0},Bt=function(){return"undefined"!=typeof window},Lt=function(){return U||Bt()&&(U=window.gsap)&&U.registerPlugin&&U},Nt=function(t){return!!~G.indexOf(t)},Xt=function(t){return("Height"===t?vt:H["inner"+t])||V["client"+t]||j["client"+t]},Ut=function(t){return k(t,"getBoundingClientRect")||(Nt(t)?function(){return rr.width=H.innerWidth,rr.height=vt,rr}:function(){return de(t)})},qt=function(t,e){var r=e.s,n=e.d2,i=e.d,s=e.a;return Math.max(0,(r="scroll"+n)&&(s=k(t,r))?s()-Ut(t)()[i]:Nt(t)?(V[r]||j[r])-Xt(n):t[r]-t["offset"+n])},Ht=function(t,e){for(var r=0;r<at.length;r+=3)(!e||~e.indexOf(at[r+1]))&&t(at[r],at[r+1],at[r+2])},Wt=function(t){return"string"==typeof t},Vt=function(t){return"function"==typeof t},jt=function(t){return"number"==typeof t},Gt=function(t){return"object"==typeof t},Qt=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},Zt=function(t,e,r){if(t.enabled){var n=t._ctx?t._ctx.add(function(){return e(t,r)}):e(t,r);n&&n.totalTime&&(t.callbackAnimation=n)}},$t=Math.abs,Kt="left",Jt="right",te="bottom",ee="width",re="height",ne="Right",ie="Left",se="Top",ae="Bottom",oe="padding",ue="margin",le="Width",ce="Height",fe="px",he=function(t){return H.getComputedStyle(t.nodeType===Node.DOCUMENT_NODE?t.scrollingElement:t)},pe=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},de=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==he(t)[rt]&&U.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?t.getBoundingClientRect():t.scrollingElement.getBoundingClientRect();return r&&r.progress(0).kill(),n},_e=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},ge=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},me=function(t){var e=U.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)}},ve=function(t,e,r,n){return r.split(",").forEach(function(r){return t(e,r,n)})},ye=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},xe=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},be=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},we={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Te={toggleActions:"play",anticipatePin:0},ke={top:0,left:0,center:.5,bottom:1,right:1},Me=function(t,e){if(Wt(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 ke?ke[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Oe=function(t,e,r,n,i,s,a,o){var u=i.startColor,l=i.endColor,c=i.fontSize,f=i.indent,h=i.fontWeight,p=W.createElement("div"),d=Nt(r)||"fixed"===k(r,"pinType"),_=-1!==t.indexOf("scroller"),g=d?j:"IFRAME"===r.tagName?r.contentDocument.body:r,m=-1!==t.indexOf("start"),v=m?u:l,y="border-color:"+v+";font-size:"+c+";color:"+v+";font-weight:"+h+";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===R?Jt:te)+":"+(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],Ce(p,0,n,m),p},Ce=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+le]=1,i["border"+a+le]=0,i[r.p]=e+"px",U.set(t,i)},Ee=[],Se={},Ae=function(){return Ct()-St>34&&(wt||(wt=requestAnimationFrame(Qe)))},Pe=function(){(!ct||!ct.isPressed||ct.startX>j.clientWidth)&&(x.cache++,ct?wt||(wt=requestAnimationFrame(Qe)):Qe(),St||Ye("scrollStart"),St=Ct())},De=function(){pt=H.innerWidth,ht=H.innerHeight},Re=function(t){x.cache++,(!0===t||!tt&&!lt&&!W.fullscreenElement&&!W.webkitFullscreenElement&&(!ft||pt!==H.innerWidth||Math.abs(H.innerHeight-ht)>.25*H.innerHeight))&&Q.restart(!0)},ze={},Fe=[],Ie=function t(){return xe(lr,"scrollEnd",t)||Ve(!0)},Ye=function(t){return ze[t]&&ze[t].map(function(t){return t()})||Fe},Be=[],Le=function(t){for(var e=0;e<Be.length;e+=5)(!t||Be[e+4]&&Be[e+4].query===t)&&(Be[e].style.cssText=Be[e+1],Be[e].getBBox&&Be[e].setAttribute("transform",Be[e+2]||""),Be[e+3].uncache=1)},Ne=function(){return x.forEach(function(t){return Vt(t)&&++t.cacheID&&(t.rec=t())})},Xe=function(t,e){var r;for(nt=0;nt<Ee.length;nt++)!(r=Ee[nt])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));yt=!0,e&&Le(e),e||Ye("revert")},Ue=function(t,e){x.cache++,(e||!Tt)&&x.forEach(function(t){return Vt(t)&&t.cacheID++&&(t.rec=0)}),Wt(t)&&(H.history.scrollRestoration=gt=t)},qe=0,He=function(){j.appendChild(mt),vt=!ct&&mt.offsetHeight||H.innerHeight,j.removeChild(mt)},We=function(t){return Z(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},Ve=function(t,e){if(V=W.documentElement,j=W.body,G=[H,W,V,j],!St||t||yt){He(),Tt=lr.isRefreshing=!0,yt||Ne();var r=Ye("refreshInit");ot&&lr.sort(),e||Xe(),x.forEach(function(t){Vt(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))}),Ee.slice(0).forEach(function(t){return t.refresh()}),yt=!1,Ee.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()}}),xt=1,We(!0),Ee.forEach(function(t){var e=qt(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)}),We(!1),xt=0,r.forEach(function(t){return t&&t.render&&t.render(-1)}),x.forEach(function(t){Vt(t)&&(t.smooth&&requestAnimationFrame(function(){return t.target.style.scrollBehavior="smooth"}),t.rec&&t(t.rec))}),Ue(gt,1),Q.pause(),qe++,Tt=2,Qe(2),Ee.forEach(function(t){return Vt(t.vars.onRefresh)&&t.vars.onRefresh(t)}),Tt=lr.isRefreshing=!1,Ye("refresh")}else ye(lr,"scrollEnd",Ie)},je=0,Ge=1,Qe=function(t){if(2===t||!Tt&&!yt){lr.isUpdating=!0,Mt&&Mt.update(0);var e=Ee.length,r=Ct(),n=r-Et>=50,i=e&&Ee[0].scroll();if(Ge=je>i?-1:1,Tt||(je=i),n&&(St&&!et&&r-St>200&&(St=0,Ye("scrollEnd")),K=Et,Et=r),Ge<0){for(nt=e;nt-- >0;)Ee[nt]&&Ee[nt].update(0,n);Ge=1}else for(nt=0;nt<e;nt++)Ee[nt]&&Ee[nt].update(0,n);lr.isUpdating=!1}wt=0},Ze=[Kt,"top",te,Jt,ue+ae,ue+ne,ue+se,ue+ie,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],$e=Ze.concat([ee,re,"boxSizing","max"+le,"max"+ce,"position",ue,oe,oe+se,oe+ne,oe+ae,oe+ie]),Ke=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,s=Ze.length,a=e.style,o=t.style;s--;)a[i=Ze[s]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),o[te]=o[Jt]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[ee]=_e(t,D)+fe,a[re]=_e(t,R)+fe,a[oe]=o[ue]=o.top=o[Kt]="0",tr(n),o[ee]=o["max"+le]=r[ee],o[re]=o["max"+ce]=r[re],o[oe]=r[oe],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},Je=/([A-Z])/g,tr=function(t){if(t){var e,r,n=t.t.style,i=t.length,s=0;for((t.t._gsap||U.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(Je,"-$1").toLowerCase())}},er=function(t){for(var e=$e.length,r=t.style,n=[],i=0;i<e;i++)n.push($e[i],r[$e[i]]);return n.t=t,n},rr={left:0,top:0},nr=function(t,e,r,n,i,s,a,o,u,l,c,f,h,p){Vt(t)&&(t=t(o)),Wt(t)&&"max"===t.substr(0,3)&&(t=f+("="===t.charAt(4)?Me("0"+t.substr(3),r):0));var d,_,g,m=h?h.time():0;if(h&&h.seek(0),isNaN(t)||(t=+t),jt(t))h&&(t=U.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,f,t)),a&&Ce(a,r,n,!0);else{Vt(e)&&(e=e(o));var v,y,x,b,w=(t||"0").split(" ");g=z(e,o)||j,(v=de(g)||{})&&(v.left||v.top)||"none"!==he(g).display||(b=g.style.display,g.style.display="block",v=de(g),b?g.style.display=b:g.style.removeProperty("display")),y=Me(w[0],v[n.d]),x=Me(w[1]||"0",r),t=v[n.p]-u[n.p]-l+y+i-x,a&&Ce(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,Ce(s,T,n,k&&T>20||!k&&(c?Math.max(j[d],V[d]):s.parentNode[d])<=T+1),c&&(u=de(a),c&&(s.style[n.op.p]=u[n.op.p]-n.op.m-s._offset+fe))}return h&&g&&(d=de(g),h.seek(f),_=de(g),h._caScrollDist=d[n.p]-_[n.p],t=t/h._caScrollDist*f),h&&h.seek(m),h?t:Math.round(t)},ir=/(webkit|moz|length|cssText|inset)/i,sr=function(t,e,r,n){if(t.parentNode!==e){var i,s,a=t.style;if(e===j){for(i in t._stOrig=a.cssText,s=he(t))+i||ir.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;U.core.getCache(t).uncache=1,e.appendChild(t)}},ar=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)}},or=function(t,e,r){var n={};n[e.p]="+="+r,U.set(t,n)},ur=function(t,e){var r=F(t,e),n="_scroll"+e.p2,i=function e(i,s,a,o,u){var l=e.tween,c=s.onComplete,f={};a=a||r();var h=ar(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 h(a+o*l.ratio+u*l.ratio*l.ratio)},s.onUpdate=function(){x.cache++,e.tween&&Qe()},s.onComplete=function(){e.tween=0,c&&c.call(l)},l=e.tween=U.to(t,s)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},ye(t,"wheel",r.wheelHandler),lr.isTouch&&ye(t,"touchmove",r.wheelHandler),i},lr=function(){function t(e,r){q||t.register(U)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),_t(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,c,f,h,p,d,_,g,m,v,y,w,T,M,O,C,E,S,A,P,I,Y,B,L,N,X,q,G,Q,J,rt,it,st,at,lt,ct,ft=e=pe(Wt(e)||jt(e)||e.nodeType?{trigger:e}:e,Te),ht=ft.onUpdate,pt=ft.toggleClass,dt=ft.id,_t=ft.onToggle,gt=ft.onRefresh,mt=ft.scrub,vt=ft.trigger,yt=ft.pin,wt=ft.pinSpacing,Et=ft.invalidateOnRefresh,Rt=ft.anticipatePin,zt=ft.onScrubComplete,Ft=ft.onSnapComplete,Bt=ft.once,Lt=ft.snap,Ht=ft.pinReparent,Kt=ft.pinSpacer,Jt=ft.containerAnimation,te=ft.fastScrollEnd,ve=ft.preventOverlaps,be=e.horizontal||e.containerAnimation&&!1!==e.horizontal?D:R,ke=!mt&&0!==mt,Ce=z(e.scroller||H),Ae=U.core.getCache(Ce),De=Nt(Ce),ze="fixed"===("pinType"in e?e.pinType:k(Ce,"pinType")||De&&"fixed"),Fe=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],Ye=ke&&e.toggleActions.split(" "),Be="markers"in e?e.markers:Te.markers,Le=De?0:parseFloat(he(Ce)["border"+be.p2+le])||0,Ne=this,Xe=e.onRefreshInit&&function(){return e.onRefreshInit(Ne)},Ue=function(t,e,r){var n=r.d,i=r.d2,s=r.a;return(s=k(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?Xt(i):t["client"+i])||0}}(Ce,De,be),He=function(t,e){return!e||~b.indexOf(t)?Ut(t):function(){return rr}}(Ce,De),We=0,je=0,Qe=0,Ze=F(Ce,be);if(Ne._startClamp=Ne._endClamp=!1,Ne._dir=be,Rt*=45,Ne.scroller=Ce,Ne.scroll=Jt?Jt.time.bind(Jt):Ze,a=Ze(),Ne.vars=e,r=r||e.animation,"refreshPriority"in e&&(ot=1,-9999===e.refreshPriority&&(Mt=Ne)),Ae.tweenScroll=Ae.tweenScroll||{top:ur(Ce,R),left:ur(Ce,D)},Ne.tweenTo=n=Ae.tweenScroll[be.p],Ne.scrubDuration=function(t){(q=jt(t)&&t)?X?X.duration(t):X=U.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:q,paused:!0,onComplete:function(){return zt&&zt(Ne)}}):(X&&X.progress(1).kill(),X=0)},r&&(r.vars.lazy=!1,r._initted&&!Ne.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),Ne.animation=r.pause(),r.scrollTrigger=Ne,Ne.scrubDuration(mt),L=0,dt||(dt=r.vars.id)),Lt&&(Gt(Lt)&&!Lt.push||(Lt={snapTo:Lt}),"scrollBehavior"in j.style&&U.set(De?[j,V]:Ce,{scrollBehavior:"auto"}),x.forEach(function(t){return Vt(t)&&t.target===(De?W.scrollingElement||V:Ce)&&(t.smooth=!1)}),s=Vt(Lt.snapTo)?Lt.snapTo:"labels"===Lt.snapTo?function(t){return function(e){return U.utils.snap(ge(t),e)}}(r):"labelsDirectional"===Lt.snapTo?(at=r,function(t,e){return me(ge(at))(t,e.direction)}):!1!==Lt.directional?function(t,e){return me(Lt.snapTo)(t,Ct()-je<500?0:e.direction)}:U.utils.snap(Lt.snapTo),G=Lt.duration||{min:.1,max:2},G=Gt(G)?$(G.min,G.max):$(G,G),Q=U.delayedCall(Lt.delay||q/2||.1,function(){var t=Ze(),e=Ct()-je<500,i=n.tween;if(!(e||Math.abs(Ne.getVelocity())<10)||i||et||We===t)Ne.isActive&&We!==t&&Q.restart(!0);else{var a,o,c=(t-u)/g,f=r&&!ke?r.totalProgress():c,h=e?0:(f-N)/(Ct()-K)*1e3||0,p=U.utils.clamp(-c,1-c,$t(h/2)*h/.185),d=c+(!1===Lt.inertia?0:p),_=Lt,m=_.onStart,v=_.onInterrupt,y=_.onComplete;if(a=s(d,Ne),jt(a)||(a=d),o=Math.max(0,Math.round(u+a*g)),t<=l&&t>=u&&o!==t){if(i&&!i._initted&&i.data<=$t(o-t))return;!1===Lt.inertia&&(p=a-c),n(o,{duration:G($t(.185*Math.max($t(d-f),$t(a-f))/h/.05||0)),ease:Lt.ease||"power3",data:$t(o-t),onInterrupt:function(){return Q.restart(!0)&&v&&Zt(Ne,v)},onComplete:function(){Ne.update(),We=Ze(),r&&!ke&&(X?X.resetTo("totalProgress",a,r._tTime/r._tDur):r.progress(a)),L=N=r&&!ke?r.totalProgress():Ne.progress,Ft&&Ft(Ne),y&&Zt(Ne,y)}},t,p*g,o-t-p*g),m&&Zt(Ne,m,n.tween)}}}).pause()),dt&&(Se[dt]=Ne),(st=(vt=Ne.trigger=z(vt||!0!==yt&&yt))&&vt._gsap&&vt._gsap.stRevert)&&(st=st(Ne)),yt=!0===yt?vt:z(yt),Wt(pt)&&(pt={targets:vt,className:pt}),yt&&(!1===wt||wt===ue||(wt=!(!wt&&yt.parentNode&&yt.parentNode.style&&"flex"===he(yt.parentNode).display)&&oe),Ne.pin=yt,(i=U.core.getCache(yt)).spacer?m=i.pinState:(Kt&&((Kt=z(Kt))&&!Kt.nodeType&&(Kt=Kt.current||Kt.nativeElement),i.spacerIsNative=!!Kt,Kt&&(i.spacerState=er(Kt))),i.spacer=w=Kt||W.createElement("div"),w.classList.add("pin-spacer"),dt&&w.classList.add("pin-spacer-"+dt),i.pinState=m=er(yt)),!1!==e.force3D&&U.set(yt,{force3D:!0}),Ne.spacer=w=i.spacer,B=he(yt),S=B[wt+be.os2],M=U.getProperty(yt),O=U.quickSetter(yt,be.a,fe),Ke(yt,w,B),y=er(yt)),Be){d=Gt(Be)?pe(Be,we):we,h=Oe("scroller-start",dt,Ce,be,d,0),p=Oe("scroller-end",dt,Ce,be,d,0,h),T=h["offset"+be.op.d2];var $e=z(k(Ce,"content")||Ce);c=this.markerStart=Oe("start",dt,$e,be,d,T,0,Jt),f=this.markerEnd=Oe("end",dt,$e,be,d,T,0,Jt),Jt&&(it=U.quickSetter([c,f],be.a,fe)),ze||b.length&&!0===k(Ce,"fixedMarkers")||(ct=he(lt=De?j:Ce).position,lt.style.position="absolute"===ct||"fixed"===ct?ct:"relative",U.set([h,p],{force3D:!0}),P=U.quickSetter(h,be.a,fe),Y=U.quickSetter(p,be.a,fe))}if(Jt){var Je=Jt.vars.onUpdate,ir=Jt.vars.onUpdateParams;Jt.eventCallback("onUpdate",function(){Ne.update(0,0,1),Je&&Je.apply(Jt,ir||[])})}if(Ne.previous=function(){return Ee[Ee.indexOf(Ne)-1]},Ne.next=function(){return Ee[Ee.indexOf(Ne)+1]},Ne.revert=function(t,e){if(!e)return Ne.kill(!0);var n=!1!==t||!Ne.enabled,i=tt;n!==Ne.isReverted&&(n&&(J=Math.max(Ze(),Ne.scroll.rec||0),Qe=Ne.progress,rt=r&&r.progress()),c&&[c,f,h,p].forEach(function(t){return t.style.display=n?"none":"block"}),n&&(tt=Ne,Ne.update(n)),!yt||Ht&&Ne.isActive||(n?function(t,e,r){tr(r);var n=t._gsap;if(n.spacerIsNative)tr(n.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1}(yt,w,m):Ke(yt,w,he(yt),A)),n||Ne.update(n),tt=i,Ne.isReverted=n)},Ne.refresh=function(i,s,d,x){if(!tt&&Ne.enabled||s)if(yt&&i&&St)ye(t,"scrollEnd",Ie);else{!Tt&&Xe&&Xe(Ne),tt=Ne,n.tween&&!d&&(n.tween.kill(),n.tween=0),X&&X.pause(),Et&&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)}):r.vars.immediateRender&&r.render(0,!0,!0)),Ne.isReverted||Ne.revert(!0,!0),Ne._subPinOffset=!1;var b,T,k,O,S,P,Y,B,L,N,q,H,G,Z=Ue(),$=He(),K=Jt?Jt.duration():qt(Ce,be),et=g<=.01||!g,nt=0,it=x||0,st=Gt(d)?d.end:e.end,at=e.endTrigger||vt,ot=Gt(d)?d.start:e.start||(0!==e.start&&vt?yt?"0 0":"0 100%":0),lt=Ne.pinnedContainer=e.pinnedContainer&&z(e.pinnedContainer,Ne),ct=vt&&Math.max(0,Ee.indexOf(Ne))||0,ft=ct;for(Be&&Gt(d)&&(H=U.getProperty(h,be.p),G=U.getProperty(p,be.p));ft-- >0;)(P=Ee[ft]).end||P.refresh(0,1)||(tt=Ne),!(Y=P.pin)||Y!==vt&&Y!==yt&&Y!==lt||P.isReverted||(N||(N=[]),N.unshift(P),P.revert(!0,!0)),P!==Ee[ft]&&(ct--,ft--);for(Vt(ot)&&(ot=ot(Ne)),ot=Pt(ot,"start",Ne),u=nr(ot,vt,Z,be,Ze(),c,h,Ne,$,Le,ze,K,Jt,Ne._startClamp&&"_startClamp")||(yt?-.001:0),Vt(st)&&(st=st(Ne)),Wt(st)&&!st.indexOf("+=")&&(~st.indexOf(" ")?st=(Wt(ot)?ot.split(" ")[0]:"")+st:(nt=Me(st.substr(2),Z),st=Wt(ot)?ot:(Jt?U.utils.mapRange(0,Jt.duration(),Jt.scrollTrigger.start,Jt.scrollTrigger.end,u):u)+nt,at=vt)),st=Pt(st,"end",Ne),l=Math.max(u,nr(st||(at?"100% 0":K),at,Z,be,Ze()+nt,f,p,Ne,$,Le,ze,K,Jt,Ne._endClamp&&"_endClamp"))||-.001,nt=0,ft=ct;ft--;)(Y=(P=Ee[ft]||{}).pin)&&P.start-P._pinPush<=u&&!Jt&&P.end>0&&(b=P.end-(Ne._startClamp?Math.max(0,P.start):P.start),(Y===vt&&P.start-P._pinPush<u||Y===lt)&&isNaN(ot)&&(nt+=b*(1-P.progress)),Y===yt&&(it+=b));if(u+=nt,l+=nt,Ne._startClamp&&(Ne._startClamp+=nt),Ne._endClamp&&!Tt&&(Ne._endClamp=l||-.001,l=Math.min(l,qt(Ce,be))),g=l-u||(u-=.01)&&.001,et&&(Qe=U.utils.clamp(0,1,U.utils.normalize(u,l,J))),Ne._pinPush=it,c&&nt&&((b={})[be.a]="+="+nt,lt&&(b[be.p]="-="+Ze()),U.set([c,f],b)),!yt||xt&&Ne.end>=qt(Ce,be)){if(vt&&Ze()&&!Jt)for(T=vt.parentNode;T&&T!==j;)T._pinOffset&&(u-=T._pinOffset,l-=T._pinOffset),T=T.parentNode}else b=he(yt),O=be===R,k=Ze(),C=parseFloat(M(be.a))+it,!K&&l>1&&(q={style:q=(De?W.scrollingElement||V:Ce).style,value:q["overflow"+be.a.toUpperCase()]},De&&"scroll"!==he(j)["overflow"+be.a.toUpperCase()]&&(q.style["overflow"+be.a.toUpperCase()]="scroll")),Ke(yt,w,b),y=er(yt),T=de(yt,!0),B=ze&&F(Ce,O?D:R)(),wt?((A=[wt+be.os2,g+it+fe]).t=w,(ft=wt===oe?_e(yt,be)+g+it:0)&&(A.push(be.d,ft+fe),"auto"!==w.style.flexBasis&&(w.style.flexBasis=ft+fe)),tr(A),lt&&Ee.forEach(function(t){t.pin===lt&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)}),ze&&Ze(J)):(ft=_e(yt,be))&&"auto"!==w.style.flexBasis&&(w.style.flexBasis=ft+fe),ze&&((S={top:T.top+(O?k-u:B)+fe,left:T.left+(O?B:k-u)+fe,boxSizing:"border-box",position:"fixed"})[ee]=S["max"+le]=Math.ceil(T.width)+fe,S[re]=S["max"+ce]=Math.ceil(T.height)+fe,S[ue]=S[ue+se]=S[ue+ne]=S[ue+ae]=S[ue+ie]="0",S[oe]=b[oe],S[oe+se]=b[oe+se],S[oe+ne]=b[oe+ne],S[oe+ae]=b[oe+ae],S[oe+ie]=b[oe+ie],v=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,S,Ht),Tt&&Ze(0)),r?(L=r._initted,ut(1),r.render(r.duration(),!0,!0),E=M(be.a)-C+g+it,I=Math.abs(g-E)>1,ze&&I&&v.splice(v.length-2,2),r.render(0,!0,!0),L||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ut(0)):E=g,q&&(q.value?q.style["overflow"+be.a.toUpperCase()]=q.value:q.style.removeProperty("overflow-"+be.a));N&&N.forEach(function(t){return t.revert(!1,!0)}),Ne.start=u,Ne.end=l,a=o=Tt?J:Ze(),Jt||Tt||(a<J&&Ze(J),Ne.scroll.rec=0),Ne.revert(!1,!0),je=Ct(),Q&&(We=-1,Q.restart(!0)),tt=0,r&&ke&&(r._initted||rt)&&r.progress()!==rt&&r.progress(rt||0,!0).render(r.time(),!0,!0),(et||Qe!==Ne.progress||Jt||Et||r&&!r._initted)&&(r&&!ke&&(r._initted||Qe||!1!==r.vars.immediateRender)&&r.totalProgress(Jt&&u<-.001&&!Qe?U.utils.normalize(u,l,0):Qe,!0),Ne.progress=et||(a-u)/g===Qe?0:Qe),yt&&wt&&(w._pinOffset=Math.round(Ne.progress*E)),X&&X.invalidate(),isNaN(H)||(H-=U.getProperty(h,be.p),G-=U.getProperty(p,be.p),or(h,be,H),or(c,be,H-(x||0)),or(p,be,G),or(f,be,G-(x||0))),et&&!Tt&&Ne.update(),!gt||Tt||_||(_=!0,gt(Ne),_=!1)}},Ne.getVelocity=function(){return(Ze()-o)/(Ct()-K)*1e3||0},Ne.endAnimation=function(){Qt(Ne.callbackAnimation),r&&(X?X.progress(1):r.paused()?ke||Qt(r,Ne.direction<0,1):Qt(r,r.reversed()))},Ne.labelToScroll=function(t){return r&&r.labels&&(u||Ne.refresh()||u)+r.labels[t]/r.duration()*g||0},Ne.getTrailing=function(t){var e=Ee.indexOf(Ne),r=Ne.direction>0?Ee.slice(0,e).reverse():Ee.slice(e+1);return(Wt(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(t){return Ne.direction>0?t.end<=u:t.start>=l})},Ne.update=function(t,e,i){if(!Jt||i||t){var s,c,f,p,d,_,m,x=!0===Tt?J:Ne.scroll(),b=t?0:(x-u)/g,T=b<0?0:b>1?1:b||0,k=Ne.progress;if(e&&(o=a,a=Jt?Ze():x,Lt&&(N=L,L=r&&!ke?r.totalProgress():T)),Rt&&yt&&!tt&&!Ot&&St&&(!T&&u<x+(x-o)/(Ct()-K)*Rt?T=1e-4:1===T&&l>x+(x-o)/(Ct()-K)*Rt&&(T=.9999)),T!==k&&Ne.enabled){if(p=(d=(s=Ne.isActive=!!T&&T<1)!=(!!k&&k<1))||!!T!=!!k,Ne.direction=T>k?1:-1,Ne.progress=T,p&&!tt&&(c=T&&!k?0:1===T?1:1===k?2:3,ke&&(f=!d&&"none"!==Ye[c+1]&&Ye[c+1]||Ye[c],m=r&&("complete"===f||"reset"===f||f in r))),ve&&(d||m)&&(m||mt||!r)&&(Vt(ve)?ve(Ne):Ne.getTrailing(ve).forEach(function(t){return t.endAnimation()})),ke||(!X||tt||Ot?r&&r.totalProgress(T,!(!tt||!je&&!t)):(X._dp._time-X._start!==X._time&&X.render(X._dp._time-X._start),X.resetTo?X.resetTo("totalProgress",T,r._tTime/r._tDur):(X.vars.totalProgress=T,X.invalidate().restart()))),yt)if(t&&wt&&(w.style[wt+be.os2]=S),ze){if(p){if(_=!t&&T>k&&l+1>x&&x+1>=qt(Ce,be),Ht)if(t||!s&&!_)sr(yt,w);else{var M=de(yt,!0),A=x-u;sr(yt,j,M.top+(be===R?A:0)+fe,M.left+(be===R?0:A)+fe)}tr(s||_?v:y),I&&T<1&&s||O(C+(1!==T||_?0:E))}}else O(Yt(C+E*T));Lt&&!n.tween&&!tt&&!Ot&&Q.restart(!0),pt&&(d||Bt&&T&&(T<1||!bt))&&Z(pt.targets).forEach(function(t){return t.classList[s||Bt?"add":"remove"](pt.className)}),ht&&!ke&&!t&&ht(Ne),p&&!tt?(ke&&(m&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),ht&&ht(Ne)),!d&&bt||(_t&&d&&Zt(Ne,_t),Fe[c]&&Zt(Ne,Fe[c]),Bt&&(1===T?Ne.kill(!1,1):Fe[c]=0),d||Fe[c=1===T?1:3]&&Zt(Ne,Fe[c])),te&&!s&&Math.abs(Ne.getVelocity())>(jt(te)?te:2500)&&(Qt(Ne.callbackAnimation),X?X.progress(1):Qt(r,"reverse"===f?1:!T,1))):ke&&ht&&!tt&&ht(Ne)}if(Y){var D=Jt?x/Jt.duration()*(Jt._caScrollDist||0):x;P(D+(h._isFlipped?1:0)),Y(D)}it&&it(-x/Jt.duration()*(Jt._caScrollDist||0))}},Ne.enable=function(e,r){Ne.enabled||(Ne.enabled=!0,ye(Ce,"resize",Re),De||ye(Ce,"scroll",Pe),Xe&&ye(t,"refreshInit",Xe),!1!==e&&(Ne.progress=Qe=0,a=o=We=Ze()),!1!==r&&Ne.refresh())},Ne.getTween=function(t){return t&&n?n.tween:X},Ne.setPositions=function(t,e,r,n){if(Jt){var i=Jt.scrollTrigger,s=Jt.duration(),a=i.end-i.start;t=i.start+a*t/s,e=i.start+a*e/s}Ne.refresh(!1,!1,{start:Dt(t,r&&!!Ne._startClamp),end:Dt(e,r&&!!Ne._endClamp)},n),Ne.update()},Ne.adjustPinSpacing=function(t){if(A&&t){var e=A.indexOf(be.d)+1;A[e]=parseFloat(A[e])+t+fe,A[1]=parseFloat(A[1])+t+fe,tr(A)}},Ne.disable=function(e,r){if(!1!==e&&Ne.revert(!0,!0),Ne.enabled&&(Ne.enabled=Ne.isActive=!1,r||X&&X.pause(),J=0,i&&(i.uncache=1),Xe&&xe(t,"refreshInit",Xe),Q&&(Q.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!De)){for(var s=Ee.length;s--;)if(Ee[s].scroller===Ce&&Ee[s]!==Ne)return;xe(Ce,"resize",Re),De||xe(Ce,"scroll",Pe)}},Ne.kill=function(t,n){Ne.disable(t,n),X&&!n&&X.kill(),dt&&delete Se[dt];var s=Ee.indexOf(Ne);s>=0&&Ee.splice(s,1),s===nt&&Ge>0&&nt--,s=0,Ee.forEach(function(t){return t.scroller===Ne.scroller&&(s=1)}),s||Tt||(Ne.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),c&&[c,f,h,p].forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)}),Mt===Ne&&(Mt=0),yt&&(i&&(i.uncache=1),s=0,Ee.forEach(function(t){return t.pin===yt&&s++}),s||(i.spacer=0)),e.onKill&&e.onKill(Ne)},Ee.push(Ne),Ne.enable(!1,!1),st&&st(Ne),r&&r.add&&!g){var ar=Ne.update;Ne.update=function(){Ne.update=ar,x.cache++,u||l||Ne.refresh()},U.delayedCall(.01,Ne.update),g=.01,u=l=0}else Ne.refresh();yt&&function(){if(kt!==qe){var t=kt=qe;requestAnimationFrame(function(){return t===qe&&Ve(!0)})}}()}else this.update=this.refresh=this.kill=It},t.register=function(e){return q||(U=e||Lt(),Bt()&&window.document&&t.enable(),q=At),q},t.defaults=function(t){if(t)for(var e in t)Te[e]=t[e];return Te},t.disable=function(t,e){At=0,Ee.forEach(function(r){return r[e?"kill":"disable"](t)}),xe(H,"wheel",Pe),xe(W,"scroll",Pe),clearInterval(J),xe(W,"touchcancel",It),xe(j,"touchstart",It),ve(xe,W,"pointerdown,touchstart,mousedown",zt),ve(xe,W,"pointerup,touchend,mouseup",Ft),Q.kill(),Ht(xe);for(var r=0;r<x.length;r+=3)be(xe,x[r],x[r+1]),be(xe,x[r],x[r+2])},t.enable=function(){if(H=window,W=document,V=W.documentElement,j=W.body,U)if(Z=U.utils.toArray,$=U.utils.clamp,_t=U.core.context||It,ut=U.core.suppressOverwrites||It,gt=H.history.scrollRestoration||"auto",je=H.pageYOffset||0,U.core.globals("ScrollTrigger",t),j){At=1,(mt=document.createElement("div")).style.height="100vh",mt.style.position="absolute",He(),Rt(),X.register(U),t.isTouch=X.isTouch,dt=X.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ft=1===X.isTouch,ye(H,"wheel",Pe),G=[H,W,V,j],U.matchMedia?(t.matchMedia=function(t){var e,r=U.matchMedia();for(e in t)r.add(e,t[e]);return r},U.addEventListener("matchMediaInit",function(){Ne(),Xe()}),U.addEventListener("matchMediaRevert",function(){return Le()}),U.addEventListener("matchMedia",function(){Ve(0,1),Ye("matchMedia")}),U.matchMedia().add("(orientation: portrait)",function(){return De(),De})):console.warn("Requires GSAP 3.11.0 or later"),De(),ye(W,"scroll",Pe);var e,r,n=j.hasAttribute("style"),i=j.style,s=i.borderTopStyle,a=U.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",e=de(j),R.m=Math.round(e.top+R.sc())||0,D.m=Math.round(e.left+D.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),n||(j.setAttribute("style",""),j.removeAttribute("style")),J=setInterval(Ae,250),U.delayedCall(.5,function(){return Ot=0}),ye(W,"touchcancel",It),ye(j,"touchstart",It),ve(ye,W,"pointerdown,touchstart,mousedown",zt),ve(ye,W,"pointerup,touchend,mouseup",Ft),rt=U.utils.checkPrefix("transform"),$e.push(rt),q=Ct(),Q=U.delayedCall(.2,Ve).pause(),at=[W,"visibilitychange",function(){var t=H.innerWidth,e=H.innerHeight;W.hidden?(it=t,st=e):it===t&&st===e||Re()},W,"DOMContentLoaded",Ve,H,"load",Ve,H,"resize",Re],Ht(ye),Ee.forEach(function(t){return t.enable(0,1)}),r=0;r<x.length;r+=3)be(xe,x[r],x[r+1]),be(xe,x[r],x[r+2])}else W&&W.addEventListener("DOMContentLoaded",function e(){t.enable(),W.removeEventListener("DOMContentLoaded",e)})},t.config=function(e){"limitCallbacks"in e&&(bt=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(J)||(J=r)&&setInterval(Ae,r),"ignoreMobileResize"in e&&(ft=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Ht(xe)||Ht(ye,e.autoRefreshEvents||"none"),lt=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=z(t),n=x.indexOf(r),i=Nt(r);~n&&x.splice(n,i?6:2),e&&(i?b.unshift(H,e,j,e,V,e):b.unshift(r,e))},t.clearMatchMedia=function(t){Ee.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},t.isInViewport=function(t,e,r){var n=(Wt(t)?z(t):t).getBoundingClientRect(),i=n[r?ee:re]*e||0;return r?n.right-i>0&&n.left+i<H.innerWidth:n.bottom-i>0&&n.top+i<H.innerHeight},t.positionInViewport=function(t,e,r){Wt(t)&&(t=z(t));var n=t.getBoundingClientRect(),i=n[r?ee:re],s=null==e?i/2:e in ke?ke[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+s)/H.innerWidth:(n.top+s)/H.innerHeight},t.killAll=function(t){if(Ee.slice(0).forEach(function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()}),!0!==t){var e=ze.killAll||[];ze={},e.forEach(function(t){return t()})}},t}();lr.version="3.15.0",lr.saveStyles=function(t){return t?Z(t).forEach(function(t){if(t&&t.style){var e=Be.indexOf(t);e>=0&&Be.splice(e,5),Be.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),U.core.getCache(t),_t())}}):Be},lr.revert=function(t,e){return Xe(!t,e)},lr.create=function(t,e){return new lr(t,e)},lr.refresh=function(t){return t?Re(!0):(q||lr.register())&&Ve(!0)},lr.update=function(t){return++x.cache&&Qe(!0===t?2:0)},lr.clearScrollMemory=Ue,lr.maxScroll=function(t,e){return qt(t,e?D:R)},lr.getScrollFunc=function(t,e){return F(z(t),e?D:R)},lr.getById=function(t){return Se[t]},lr.getAll=function(){return Ee.filter(function(t){return"ScrollSmoother"!==t.vars.id})},lr.isScrolling=function(){return!!St},lr.snapDirectional=me,lr.addEventListener=function(t,e){var r=ze[t]||(ze[t]=[]);~r.indexOf(e)||r.push(e)},lr.removeEventListener=function(t,e){var r=ze[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},lr.batch=function(t,e){var r,n=[],i={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var r=[],n=[],i=U.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(),ye(lr,"refresh",function(){return a=e.batchMax()})),Z(t).forEach(function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(lr.create(e))}),n};var cr,fr=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},hr=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(X.isTouch?" pinch-zoom":""):"none",e===V&&t(j,r)},pr={auto:1,scroll:1},dr=function(t){var e,r=t.event,n=t.target,i=t.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,a=s._gsap||U.core.getCache(s),o=Ct();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==j&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!pr[(e=he(s)).overflowY]&&!pr[e.overflowX]);)s=s.parentNode;a._isScroll=s&&s!==n&&!Nt(s)&&(pr[(e=he(s)).overflowY]||pr[e.overflowX]),a._isScrollT=o}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},_r=function(t,e,r,n){return X.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&dr,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&ye(W,X.eventTypes[0],mr,!1,!0)},onDisable:function(){return xe(W,X.eventTypes[0],mr,!0)}})},gr=/(input|label|select|textarea)/i,mr=function(t){var e=gr.test(t.target.tagName);(e||cr)&&(t._gsapAllow=!0,cr=e)};lr.sort=function(t){if(Vt(t))return Ee.sort(t);var e=H.pageYOffset||0;return lr.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+H.innerHeight}),Ee.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))})},lr.observe=function(t){return new X(t)},lr.normalizeScroll=function(t){if(void 0===t)return ct;if(!0===t&&ct)return ct.enable();if(!1===t)return ct&&ct.kill(),void(ct=t);var e=t instanceof X?t:function(t){Gt(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,c=l.normalizeScrollX,f=l.momentum,h=l.allowNestedScroll,p=l.onRelease,d=z(t.target)||V,_=U.core.globals().ScrollSmoother,g=_&&_.get(),m=dt&&(t.content&&z(t.content)||g&&!1!==t.content&&!g.smooth()&&g.content()),v=F(d,R),y=F(d,D),b=1,w=(X.isTouch&&H.visualViewport?H.visualViewport.scale*H.visualViewport.width:H.outerWidth)/H.innerWidth,T=0,k=Vt(f)?function(){return f(e)}:function(){return f||2.8},M=_r(d,t.type,!0,h),O=function(){return i=!1},C=It,E=It,S=function(){r=qt(d,R),E=$(dt?1:0,r),c&&(C=$(0,qt(d,D))),n=qe},A=function(){m._gsap.y=Yt(parseFloat(m._gsap.y)+v.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)",v.offset=v.cacheID=0},P=function(){S(),s.isActive()&&s.vars.scrollY>r&&(v()>r?s.progress(1)&&v(r):s.resetTo("scrollY",r))};return m&&U.set(m,{y:"+=0"}),t.ignoreCheck=function(t){return dt&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(O);var t=Yt(e.deltaY/2),r=E(v.v-t);if(m&&r!==v.v+v.offset){v.offset=r-v.v;var n=Yt((parseFloat(m&&m._gsap.y)||0)-v.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",v.cacheID=x.cache,Qe()}return!0}v.offset&&A(),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=Yt((H.visualViewport&&H.visualViewport.scale||1)/w),s.pause(),t!==b&&hr(d,b>1.01||!c&&"x"),a=y(),o=v(),S(),n=qe},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&A(),e){x.cache++;var n,i,a=k();c&&(i=(n=y())+.05*a*-t.velocityX/.227,a*=fr(y,n,i,qt(d,D)),s.vars.scrollX=C(i)),i=(n=v())+.05*a*-t.velocityY/.227,a*=fr(v,n,i,qt(d,R)),s.vars.scrollY=E(i),s.invalidate().duration(a).play(.01),(dt&&s.vars.scrollY>=r||n>=r-1)&&U.to({},{onUpdate:P,duration:a})}else u.restart(!0);p&&p(t)},t.onWheel=function(){s._ts&&s.pause(),Ct()-T>1e3&&(n=0,T=Ct())},t.onChange=function(t,e,r,i,s){if(qe!==n&&S(),e&&c&&y(C(i[2]===e?a+(t.startX-t.x):y()+e-i[1])),r){v.offset&&A();var u=s[2]===r,l=u?o+t.startY-t.y:v()+r-s[1],f=E(l);u&&l!==f&&(o+=f-l),v(f)}(r||e)&&Qe()},t.onEnable=function(){hr(d,!c&&"x"),lr.addEventListener("refresh",P),ye(H,"resize",P),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),M.enable()},t.onDisable=function(){hr(d,!0),xe(H,"resize",P),lr.removeEventListener("refresh",P),M.kill()},t.lockAxis=!1!==t.lockAxis,(e=new X(t)).iOS=dt,dt&&!v()&&v(1),dt&&U.ticker.add(It),u=e._dc,s=U.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:ar(v,v(),function(){return s.pause()})},onUpdate:Qe,onComplete:u.vars.onComplete}),e}(t);return ct&&ct.target===e.target&&ct.kill(),Nt(e.target)&&(ct=e),e},lr.core={_getVelocityProp:I,_inputObserver:_r,_scrollers:x,_proxies:b,bridge:{ss:function(){St||Ye("scrollStart"),St=Ct()},ref:function(){return tt}}},Lt()&&U.registerPlugin(lr)},880(t,e,r){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,{gsap:()=>Kn});var s,a,o,u,l,c,f,h,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,E=0,S=Math.sqrt,A=Math.cos,P=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},Y=function(t){return!1!==t},B=function(){return"undefined"!=typeof window},L=function(t){return R(t)||D(t)},N="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},X=Array.isArray,U=/random\([^)]+\)/g,q=/,\s*/g,H=/(?:-?\.?\d|\.)+/gi,W=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,V=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,j=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,G=/[+-]=-?[.\d]+/,Q=/[^,'"\[\]\s]+/gi,Z=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,$={},K={},J=function(t){return(K=St(t,$))&&Er},tt=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},et=function(t,e){return!e&&console.warn(t)},rt=function(t,e){return t&&($[t]=e)&&K&&(K[t]=e)||$},nt=function(){return 0},it={suppressEvents:!0,isStart:!0,kill:!1},st={suppressEvents:!0,kill:!1},at={suppressEvents:!0},ot={},ut=[],lt={},ct={},ft={},ht=30,pt=[],dt="",_t=function(t){var e,r,n=t[0];if(I(n)||R(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=pt.length;r--&&!pt[r].targetTest(n););e=pt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Ue(t[r],e)))||t.splice(r,1);return t},gt=function(t){return t._gsap||_t(ae(t))[0]._gsap},mt=function(t,e,r){return(r=t[e])&&R(r)?t[e]():F(r)&&t.getAttribute&&t.getAttribute(e)||r},vt=function(t,e){return(t=t.split(",")).forEach(e)||t},yt=function(t){return Math.round(1e5*t)/1e5||0},xt=function(t){return Math.round(1e7*t)/1e7||0},bt=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},wt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},Tt=function(){var t,e,r=ut.length,n=ut.slice(0);for(lt={},ut.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},kt=function(t){return!!(t._initted||t._startAt||t.add)},Mt=function(t,e,r,n){ut.length&&!a&&Tt(),t.render(e,r,n||!!(a&&e<0&&kt(t))),ut.length&&!a&&Tt()},Ot=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(Q).length<2?e:D(t)?t.trim():t},Ct=function(t){return t},Et=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},St=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},Dt=function(t){var e,r=t.parent||u,n=t.keyframes?(e=X(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):Et;if(Y(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Rt=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},zt=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},Ft=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},It=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},Yt=function(t,e,r,n){return t._startAt&&(a?t._startAt.revert(st):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},Bt=function t(e){return!e||e._ts&&t(e.parent)},Lt=function(t){return t._repeat?Nt(t._tTime,t=t.duration()+t._rDelay)*t:0},Nt=function(t,e){var r=Math.floor(t=xt(t/e));return t&&r===t?r-1:r},Xt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ut=function(t){return t._end=xt(t._start+(t._tDur/Math.abs(t._ts||t._rts||M)||0))},qt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=xt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ut(t),r._dirty||It(r,t)),t},Ht=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Xt(t.rawTime(),e),(!e._dur||re(0,e.totalDuration(),r)-e._tTime>M)&&e.render(r,!0)),It(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}},Wt=function(t,e,r,n){return e.parent&&Ft(e),e._start=xt((z(r)?r:r||t!==u?Jt(t,r,e):t._time)+e._delay),e._end=xt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Rt(t,e,"_first","_last",t._sort?"_start":0),Qt(e)||(t._recent=e),n||Ht(t,e),t._ts<0&&qt(t,t._tTime),t},Vt=function(t,e){return($.ScrollTrigger||tt("scrollTrigger",e))&&$.ScrollTrigger.create(e,t)},jt=function(t,e,r,n,i){return Ze(t,e,i),t._initted?!r&&t._pt&&!a&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&p!==Ae.frame?(ut.push(t),t._lazy=[i,n],1):void 0:1},Gt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Qt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Zt=function(t,e,r,n){var i=t._repeat,s=xt(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:xt(s*(i+1)+t._rDelay*i):s,a>0&&!n&&qt(t,t._tTime=t._tDur*a),t.parent&&Ut(t),r||It(t.parent,t),t},$t=function(t){return t instanceof He?It(t):Zt(t,t._dur)},Kt={_start:0,endTime:nt,totalDuration:nt},Jt=function t(e,r,n){var i,s,a,o=e.labels,u=e._recent||Kt,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*(X(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:l+s)):null==r?l:+r},te=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=Y(i.vars.inherit)&&i.parent;o.immediateRender=Y(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new er(e[0],o,e[a+1])},ee=function(t,e){return t||0===t?e(t):e},re=function(t,e,r){return r<t?t:r>e?e:r},ne=function(t,e){return D(t)&&(e=Z.exec(t))?e[1]:""},ie=[].slice,se=function(t,e){return t&&I(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&I(t[0]))&&!t.nodeType&&t!==l},ae=function(t,e,r){return o&&!e&&o.selector?o.selector(t):!D(t)||r||!c&&Pe()?X(t)?function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return D(t)&&!e||se(t,1)?(n=r).push.apply(n,ae(t)):r.push(t)})||r}(t,r):se(t)?ie.call(t,0):t?[t]:[]:ie.call((e||f).querySelectorAll(t),0)},oe=function(t){return t=ae(t)[0]||et("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return ae(e,r.querySelectorAll?r:r===t?et("Invalid scope")||f.createElement("div"):t)}},ue=function(t){return t.sort(function(){return.5-Math.random()})},le=function(t){if(R(t))return t;var e=I(t)?t:{each:t},r=Ye(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},a=n>0&&n<1,o=isNaN(n)||a,u=e.axis,l=n,c=n;return D(n)?l=c={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(l=n[0],c=n[1]),function(t,a,f){var h,p,d,_,g,m,v,y,x,b=(f||e).length,w=s[b];if(!w){if(!(x="auto"===e.grid?0:(e.grid||[1,k])[1])){for(v=-k;v<(v=f[x++].getBoundingClientRect().left)&&x<b;);x<b&&x--}for(w=s[b]=[],h=o?Math.min(x,b)*l-.5:n%x,p=x===k?0:o?b*c/x-.5:n/x|0,v=0,y=k,m=0;m<b;m++)d=m%x-h,_=p-(m/x|0),w[m]=g=u?Math.abs("y"===u?_:d):S(d*d+_*_),g>v&&(v=g),g<y&&(y=g);"random"===n&&ue(w),w.max=v-y,w.min=y,w.v=b=(parseFloat(e.amount)||parseFloat(e.each)*(x>b?b-1:u?"y"===u?b/x:x:Math.max(x,b/x))||0)*("edges"===n?-1:1),w.b=b<0?i-b:i,w.u=ne(e.amount||e.each)||0,r=r&&b<0?Ie(r):r}return b=(w[t]-w.min)/w.max||0,xt(w.b+(r?r(b):b)*w.v)+w.u}},ce=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=xt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(z(r)?0:ne(r))}},fe=function(t,e){var r,n,i=X(t);return!i&&I(t)&&(r=i=t.radius||k,t.values?(t=ae(t.values),(n=!z(t[0]))&&(r*=r)):t=ce(t.increment)),ee(e,i?R(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,s,a=parseFloat(n?e.x:e),o=parseFloat(n?e.y:0),u=k,l=0,c=t.length;c--;)(i=n?(i=t[c].x-a)*i+(s=t[c].y-o)*s:Math.abs(t[c]-a))<u&&(u=i,l=c);return l=!r||u<=r?t[l]:e,n||l===e||z(e)?l:l+ne(e)}:ce(t))},he=function(t,e,r,n){return ee(X(t)?!e:!0===r?!!(r=0):!n,function(){return X(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*n)/n})},pe=function(t,e,r){return ee(r,function(r){return t[~~e(r)]})},de=function(t){return t.replace(U,function(t){var e=t.indexOf("[")+1,r=t.substring(e||7,e?t.indexOf("]"):t.length-1).split(q);return he(e?r:+r[0],e?0:+r[1],+r[2]||1e-5)})},_e=function(t,e,r,n,i){var s=e-t,a=n-r;return ee(i,function(e){return r+((e-t)/s*a||0)})},ge=function(t,e,r){var n,i,s,a=t.labels,o=k;for(n in a)(i=a[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(s=n,o=i);return s},me=function(t,e,r){var n,i,s,a=t.vars,u=a[e],l=o,c=t._ctx;if(u)return n=a[e+"Params"],i=a.callbackScope||t,r&&ut.length&&Tt(),c&&(o=c),s=n?u.apply(i,n):u.call(i),o=l,s},ve=function(t){return Ft(t),t.scrollTrigger&&t.scrollTrigger.kill(!!a),t.progress()<1&&me(t,"onInterrupt"),t},ye=[],xe=function(t){if(t)if(t=!t.name&&t.default||t,B()||t.headless){var e=t.name,r=R(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:nt,render:cr,add:Ge,kill:hr,modifier:fr,rawVars:0},s={targetTest:0,get:0,getSetter:ar,aliases:{},register:0};if(Pe(),t!==n){if(ct[e])return;Et(n,Et(Pt(t,i),s)),St(n.prototype,St(i,Pt(t,s))),ct[n.prop=e]=n,t.targetTest&&(pt.push(n),ot[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}rt(e,n),t.register&&t.register(Er,n,_r)}else ye.push(t)},be=255,we={aqua:[0,be,be],lime:[0,be,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,be],navy:[0,0,128],white:[be,be,be],olive:[128,128,0],yellow:[be,be,0],orange:[be,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[be,0,0],pink:[be,192,203],cyan:[0,be,be],transparent:[be,be,be,0]},Te=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*be+.5|0},ke=function(t,e,r){var n,i,s,a,o,u,l,c,f,h,p=t?z(t)?[t>>16,t>>8&be,t&be]:0:we.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),we[t])p=we[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),i=t.charAt(2),s=t.charAt(3),t="#"+n+n+i+i+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&be,p&be,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&be,t&be]}else if("hsl"===t.substr(0,3))if(p=h=t.match(H),e){if(~t.indexOf("="))return p=t.match(W),r&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,o=+p[1]/100,n=2*(u=+p[2]/100)-(i=u<=.5?u*(o+1):u+o-u*o),p.length>3&&(p[3]*=1),p[0]=Te(a+1/3,n,i),p[1]=Te(a,n,i),p[2]=Te(a-1/3,n,i);else p=t.match(H)||we.transparent;p=p.map(Number)}return e&&!h&&(n=p[0]/be,i=p[1]/be,s=p[2]/be,u=((l=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,l===c?a=o=0:(f=l-c,o=u>.5?f/(2-l-c):f/(l+c),a=l===n?(i-s)/f+(i<s?6:0):l===i?(s-n)/f+2:(n-i)/f+4,a*=60),p[0]=~~(a+.5),p[1]=~~(100*o+.5),p[2]=~~(100*u+.5)),r&&p.length<4&&(p[3]=1),p},Me=function(t){var e=[],r=[],n=-1;return t.split(Ce).forEach(function(t){var i=t.match(V)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},Oe=function(t,e,r){var n,i,s,a,o="",u=(t+o).match(Ce),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map(function(t){return(t=ke(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=Me(t),(n=r.c).join(o)!==s.c.join(o)))for(a=(i=t.replace(Ce,"1").split(V)).length-1;c<a;c++)o+=i[c]+(~n.indexOf(c)?u.shift()||l+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!i)for(a=(i=t.split(Ce)).length-1;c<a;c++)o+=i[c]+u[c];return o+i[a]},Ce=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in we)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ee=/hsl[a]?\(/,Se=function(t){var e,r=t.join(" ");if(Ce.lastIndex=0,Ce.test(r))return e=Ee.test(r),t[1]=Oe(t[1],e),t[0]=Oe(t[0],e,Me(t[1])),!0},Ae=function(){var t,e,r,n,i,s,a=Date.now,o=500,u=33,p=a(),d=p,g=1e3/240,m=g,v=[],y=function r(l){var c,f,h,_,y=a()-d,x=!0===l;if((y>o||y<0)&&(p+=y-u),((c=(h=(d+=y)-p)-m)>0||x)&&(_=++n.frame,i=h-1e3*n.time,n.time=h/=1e3,m+=c+(c>=g?4:g-c),f=1),x||(t=e(r)),f)for(s=0;s<v.length;s++)v[s](h,i,_,l)};return n={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){h&&(!c&&B()&&(l=c=window,f=l.document||{},$.gsap=Er,(l.gsapVersions||(l.gsapVersions=[])).push(Er.version),J(K||l.GreenSockGlobals||!l.gsap&&l||{}),ye.forEach(xe)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,m-1e3*n.time+1|0)},_=1,y(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),_=0,e=nt},lagSmoothing:function(t,e){o=t||1/0,u=Math.min(e||33,o)},fps:function(t){g=1e3/(t||240),m=1e3*n.time+g},add:function(t,e,r){var i=e?function(e,r,s,a){t(e,r,s,a),n.remove(i)}:t;return n.remove(t),v[r?"unshift":"push"](i),Pe(),i},remove:function(t,e){~(e=v.indexOf(t))&&v.splice(e,1)&&s>=e&&s--},_listeners:v}}(),Pe=function(){return!_&&Ae.wake()},De={},Re=/^[\d.\-M][\d.\-,\s]/,ze=/["']/g,Fe=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o<u;o++)r=s[o],e=o!==u-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[a]=isNaN(n)?n.replace(ze,"").trim():+n,a=r.substr(e+1).trim();return i},Ie=function(t){return function(e){return 1-t(1-e)}},Ye=function(t,e){return t&&(R(t)?t:De[t]||function(t){var e,r,n,i,s=(t+"").split("("),a=De[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[Fe(s[1])]:(e=t,r=e.indexOf("(")+1,n=e.indexOf(")"),i=e.indexOf("(",r),e.substring(r,~i&&i<n?e.indexOf(")",n+1):n)).split(",").map(Ot)):De._CE&&Re.test(t)?De._CE("",t):a}(t))||e},Be=function(t,e,r,n){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,s={easeIn:e,easeOut:r,easeInOut:n};return vt(t,function(t){for(var e in De[t]=$[t]=s,De[i=t.toLowerCase()]=r,s)De[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=De[t+"."+e]=s[e]}),s},Le=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ne=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),a=s/O*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*P((t-a)*s)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Le(o);return s=O/s,u.config=function(r,n){return t(e,r,n)},u},Xe=function t(e,r){void 0===r&&(r=1.70158);var n=function(t){return t?--t*t*((r+1)*t+r)+1:0},i="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:Le(n);return i.config=function(r){return t(e,r)},i};vt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Be(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),De.Linear.easeNone=De.none=De.Linear.easeIn,Be("Elastic",Ne("in"),Ne("out"),Ne()),g=7.5625,y=2*(v=1/(m=2.75)),x=2.5*v,Be("Bounce",function(t){return 1-b(1-t)},b=function(t){return t<v?g*t*t:t<y?g*Math.pow(t-1.5/m,2)+.75:t<x?g*(t-=2.25/m)*t+.9375:g*Math.pow(t-2.625/m,2)+.984375}),Be("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Be("Circ",function(t){return-(S(1-t*t)-1)}),Be("Sine",function(t){return 1===t?1:1-A(t*C)}),Be("Back",Xe("in"),Xe("out"),Xe()),De.SteppedEase=De.steps=$.SteppedEase={config:function(t,e){void 0===t&&(t=1);var r=1/t,n=t+(e?0:1),i=e?1:0;return function(t){return((n*re(0,.99999999,t)|0)+i)*r}}},T.ease=De["quad.out"],vt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return dt+=t+","+t+"Params,"});var Ue=function(t,e){this.id=E++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:mt,this.set=e?e.getSetter:ar},qe=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Zt(this,+t.duration,1,1),this.data=t.data,o&&(this._ctx=o,o.data.push(this)),_||Ae.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Zt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Pe(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(qt(this,t),!r._dp||r.parent||Ht(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Wt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===M||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Mt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Lt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Lt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Nt(this._tTime,r)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var r=this.parent&&this._ts?Xt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(re(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),Ut(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Pe(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==M&&(this._tTime-=M)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=xt(t);var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Wt(e,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Y(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Xt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=at);var e=a;return a=t,kt(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),a=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,$t(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,$t(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Jt(this,t),Y(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Y(e)),this._dur||(this._zTime=-1e-8),this},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-M))},e.eventCallback=function(t,e,r){var n=this.vars;return arguments.length>1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this,r=e._prom;return new Promise(function(n){var i=R(t)?t:Ct,s=function(){var t=e.then;e.then=null,r&&r(),R(i)&&(i=i(e))&&(i.then||i===e)&&(e.then=t),n(i),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?s():e._prom=s})},e.kill=function(){ve(this)},t}();Et(qe.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var He=function(t){function e(e,r){var i;return void 0===e&&(e={}),(i=t.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=Y(e.sortChildren),u&&Wt(e.parent||u,n(i),r),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&Vt(n(i),e.scrollTrigger),i}i(e,t);var r=e.prototype;return r.to=function(t,e,r){return te(0,arguments,this),this},r.from=function(t,e,r){return te(1,arguments,this),this},r.fromTo=function(t,e,r,n){return te(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,Dt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new er(t,e,Jt(this,r),1),this},r.call=function(t,e,r){return Wt(this,er.delayedCall(0,t,e),r)},r.staggerTo=function(t,e,r,n,i,s,a){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new er(t,r,Jt(this,i)),this},r.staggerFrom=function(t,e,r,n,i,s,a){return r.runBackwards=1,Dt(r).immediateRender=Y(r.immediateRender),this.staggerTo(t,e,r,n,i,s,a)},r.staggerFromTo=function(t,e,r,n,i,s,a,o){return n.startAt=r,Dt(n).immediateRender=Y(n.immediateRender),this.staggerTo(t,e,n,i,s,a,o)},r.render=function(t,e,r){var n,i,s,o,l,c,f,h,p,d,_,g,m=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,x=t<=0?0:xt(t),b=this._zTime<0!=t<0&&(this._initted||!y);if(this!==u&&x>v&&t>=0&&(x=v),x!==this._tTime||r||b){if(m!==this._time&&y&&(x+=this._time-m,t+=this._time-m),n=x,p=this._start,c=!(h=this._ts),b&&(y||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(_=this._yoyo,l=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*l+t,e,r);if(n=xt(x%l),x===v?(o=this._repeat,n=y):((o=~~(d=xt(x/l)))&&o===d&&(n=y,o--),n>y&&(n=y)),d=Nt(this._tTime,l),!m&&this._tTime&&d!==o&&this._tTime-d*l-this._dur<=0&&(d=o),_&&1&o&&(n=y-n,g=1),o!==d&&!this._lock){var w=_&&1&d,T=w===(_&&1&o);if(o<d&&(w=!w),m=w?0:x%y?y:x,this._lock=1,this.render(m||(g?0:xt(o*l)),e,!y)._lock=0,this._tTime=x,!e&&this.parent&&me(this,"onRepeat"),this.vars.repeatRefresh&&!g&&(this.invalidate()._lock=1,d=o),m&&m!==this._time||c!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,T&&(this._lock=2,m=w?y:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!g&&this.invalidate()),this._lock=0,!this._ts&&!c)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(f=function(t,e,r){var n;if(r>e)for(n=t._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,xt(m),xt(n)),f&&(x-=n-(n=f._start))),this._tTime=x,this._time=n,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&x&&y&&!e&&!d&&(me(this,"onStart"),this._tTime!==x))return this;if(n>=m&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||n>=i._start)&&i._ts&&f!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!c){f=0,s&&(x+=this._zTime=-1e-8);break}}i=s}else{i=this._last;for(var k=t<0?t:n;i;){if(s=i._prev,(i._act||k<=i._end)&&i._ts&&f!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(k-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(k-i._start)*i._ts,e,r||a&&kt(i)),n!==this._time||!this._ts&&!c){f=0,s&&(x+=this._zTime=k?-1e-8:M);break}}i=s}}if(f&&!e&&(this.pause(),f.render(n>=m?0:-1e-8)._zTime=n>=m?1:-1,this._ts))return this._start=p,Ut(this),this.render(t,e,r);this._onUpdate&&!e&&me(this,"onUpdate",!0),(x===v&&this._tTime>=this.totalDuration()||!x&&m)&&(p!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((t||!y)&&(x===v&&this._ts>0||!x&&this._ts<0)&&Ft(this,1),e||t<0&&!m||!x&&!m&&v||(me(this,x===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(x<v&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(z(e)||(e=Jt(this,e,t)),!(t instanceof qe)){if(X(t))return t.forEach(function(t){return r.add(t,e)}),this;if(D(t))return this.addLabel(t,e);if(!R(t))return this;t=er.delayedCall(0,t)}return this!==t?Wt(this,t,e):this},r.getChildren=function(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-k);for(var i=[],s=this._first;s;)s._start>=n&&(s instanceof er?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},r.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},r.remove=function(t){return D(t)?this.removeLabel(t):R(t)?this.killTweensOf(t):(t.parent===this&&zt(this,t),t===this._recent&&(this._recent=this._last),It(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=xt(Ae.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(t,e){return this.labels[t]=Jt(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=er.delayedCall(0,e||nt,r);return n.data="isPause",this._hasPause=1,Wt(this,n,Jt(this,t))},r.removePause=function(t){var e=this._first;for(t=Jt(this,t);e;)e._start===t&&"isPause"===e.data&&Ft(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)We!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=ae(t),s=this._first,a=z(e);s;)s instanceof er?wt(s._targets,i)&&(a?(!We||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&n.push(s):(r=s.getTweensOf(i,e)).length&&n.push.apply(n,r),s=s._next;return n},r.tweenTo=function(t,e){e=e||{};var r,n=this,i=Jt(n,t),s=e,a=s.startAt,o=s.onStart,u=s.onStartParams,l=s.immediateRender,c=er.to(n,Et({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale())||M,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale());c._dur!==t&&Zt(c,t,0,1).render(c._time,!0,!0),r=1}o&&o.apply(c,u||[])}},e));return l?c.render(0):c},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,Et({startAt:{time:Jt(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),ge(this,Jt(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),ge(this,Jt(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+M)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);var n,i=this._first,s=this.labels;for(t=xt(t);i;)i._start>=r&&(i._start+=t,i._end+=t),i=i._next;if(e)for(n in s)s[n]>=r&&(s[n]+=t);return It(this)},r.invalidate=function(e){var r=this._first;for(this._lock=0;r;)r.invalidate(e),r=r._next;return t.prototype.invalidate.call(this,e)},r.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),It(this)},r.totalDuration=function(t){var e,r,n,i=0,s=this,a=s._last,o=k;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>o&&s._sort&&a._ts&&!s._lock?(s._lock=1,Wt(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=xt(r/s._ts),s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),o=0),a._end>i&&a._ts&&(i=a._end),a=e;Zt(s,s===u&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(u._ts&&(Mt(u,Xt(t,u)),p=Ae.frame),Ae.frame>=ht){ht+=w.autoSleep||120;var e=u._first;if((!e||!e._ts)&&w.autoSleep&&Ae._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ae.sleep()}}},e}(qe);Et(He.prototype,{_lock:0,_hasPause:0,_forcing:0});var We,Ve,je=function(t,e,r,n,i,s,a){var o,u,l,c,f,h,p,d,_=new _r(this._pt,t,e,0,1,lr,null,i),g=0,m=0;for(_.b=r,_.e=n,r+="",(p=~(n+="").indexOf("random("))&&(n=de(n)),s&&(s(d=[r,n],t,e),r=d[0],n=d[1]),u=r.match(j)||[];o=j.exec(n);)c=o[0],f=n.substring(g,o.index),l?l=(l+1)%5:"rgba("===f.substr(-5)&&(l=1),c!==u[m++]&&(h=parseFloat(u[m-1])||0,_._pt={_next:_._pt,p:f||1===m?f:",",s:h,c:"="===c.charAt(1)?bt(h,c)-h:parseFloat(c)-h,m:l&&l<4?Math.round:0},g=j.lastIndex);return _.c=g<n.length?n.substring(g,n.length):"",_.fp=a,(G.test(n)||p)&&(_.e=0),this._pt=_,_},Ge=function(t,e,r,n,i,s,a,o,u,l){R(n)&&(n=n(i||0,t,s));var c,f=t[e],h="get"!==r?r:R(f)?u?t[e.indexOf("set")||!R(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():f,p=R(f)?u?ir:nr:rr;if(D(n)&&(~n.indexOf("random(")&&(n=de(n)),"="===n.charAt(1)&&((c=bt(h,n)+(ne(h)||0))||0===c)&&(n=c)),!l||h!==n||Ve)return isNaN(h*n)||""===n?(!f&&!(e in t)&&tt(e,n),je.call(this,t,e,h,n,p,o||w.stringFilter,u)):(c=new _r(this._pt,t,e,+h||0,n-(h||0),"boolean"==typeof f?ur:or,0,p),u&&(c.fp=u),a&&c.modifier(a,this,t),this._pt=c)},Qe=function(t,e,r,n,i,s){var a,o,u,l;if(ct[t]&&!1!==(a=new ct[t]).init(i,a.rawVars?e[t]:function(t,e,r,n,i){if(R(t)&&(t=Ke(t,i,e,r,n)),!I(t)||t.style&&t.nodeType||X(t)||N(t))return D(t)?Ke(t,i,e,r,n):t;var s,a={};for(s in t)a[s]=Ke(t[s],i,e,r,n);return a}(e[t],n,i,s,r),r,n,s)&&(r._pt=o=new _r(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==d))for(u=r._ptLookup[r._targets.indexOf(i)],l=a._props.length;l--;)u[a._props[l]]=o;return a},Ze=function t(e,r,n){var i,o,l,c,f,h,p,d,_,g,m,v,y,x=e.vars,b=x.ease,w=x.startAt,O=x.immediateRender,C=x.lazy,E=x.onUpdate,S=x.runBackwards,A=x.yoyoEase,P=x.keyframes,D=x.autoRevert,R=e._dur,z=e._startAt,F=e._targets,I=e.parent,B=I&&"nested"===I.data?I.vars.targets:F,L="auto"===e._overwrite&&!s,N=e.timeline,X=x.easeReverse||A;if(N&&(!P||!b)&&(b="none"),e._ease=Ye(b,T.ease),e._rEase=X&&(Ye(X)||e._ease),e._from=!N&&!!x.runBackwards,e._from&&(e.ratio=1),!N||P&&!x.stagger){if(v=(d=F[0]?gt(F[0]).harness:0)&&x[d.prop],i=Pt(x,ot),z&&(z._zTime<0&&z.progress(1),r<0&&S&&O&&!D?z.render(-1,!0):z.revert(S&&R?st:it),z._lazy=0),w){if(Ft(e._startAt=er.set(F,Et({data:"isStart",overwrite:!1,parent:I,immediateRender:!0,lazy:!z&&Y(C),startAt:null,delay:0,onUpdate:E&&function(){return me(e,"onUpdate")},stagger:0},w))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(a||!O&&!D)&&e._startAt.revert(st),O&&R&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(S&&R&&!z)if(r&&(O=!1),l=Et({overwrite:!1,data:"isFromStart",lazy:O&&!z&&Y(C),immediateRender:O,stagger:0,parent:I},i),v&&(l[d.prop]=v),Ft(e._startAt=er.set(F,l)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(a?e._startAt.revert(st):e._startAt.render(-1,!0)),e._zTime=r,O){if(!r)return}else t(e._startAt,M,M);for(e._pt=e._ptCache=0,C=R&&Y(C)||C&&!R,o=0;o<F.length;o++){if(p=(f=F[o])._gsap||_t(F)[o]._gsap,e._ptLookup[o]=g={},lt[p.id]&&ut.length&&Tt(),m=B===F?o:B.indexOf(f),d&&!1!==(_=new d).init(f,v||i,e,m,B)&&(e._pt=c=new _r(e._pt,f,_.name,0,1,_.render,_,0,_.priority),_._props.forEach(function(t){g[t]=c}),_.priority&&(h=1)),!d||v)for(l in i)ct[l]&&(_=Qe(l,i,e,m,f,B))?_.priority&&(h=1):g[l]=c=Ge.call(e,f,l,"get",i[l],m,B,0,x.stringFilter);e._op&&e._op[o]&&e.kill(f,e._op[o]),L&&e._pt&&(We=e,u.killTweensOf(f,g,e.globalTime(r)),y=!e.parent,We=0),e._pt&&C&&(lt[p.id]=1)}h&&dr(e),e._onInit&&e._onInit(e)}e._onUpdate=E,e._initted=(!e._op||e._pt)&&!y,P&&r<=0&&N.render(k,!0,!0)},$e=function(t,e,r,n){var i,s,a=e.ease||n||"power1.inOut";if(X(e))s=r[t]||(r[t]=[]),e.forEach(function(t,r){return s.push({t:r/(e.length-1)*100,v:t,e:a})});else for(i in e)s=r[i]||(r[i]=[]),"ease"===i||s.push({t:parseFloat(t),v:e[i],e:a})},Ke=function(t,e,r,n,i){return R(t)?t.call(e,r,n,i):D(t)&&~t.indexOf("random(")?de(t):t},Je=dt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",tr={};vt(Je+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return tr[t]=1});var er=function(t){function e(e,r,i,a){var o;"number"==typeof r&&(i.duration=r,r=i,i=null);var l,c,f,h,p,d,_,g,m=(o=t.call(this,a?r:Dt(r))||this).vars,v=m.duration,y=m.delay,x=m.immediateRender,b=m.stagger,T=m.overwrite,k=m.keyframes,M=m.defaults,O=m.scrollTrigger,C=r.parent||u,E=(X(e)||N(e)?z(e[0]):"length"in r)?[e]:ae(e);if(o._targets=E.length?_t(E):et("GSAP target "+e+" not found. https://gsap.com",!w.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=T,k||b||L(v)||L(y)){var S=(r=o.vars).easeReverse||r.yoyoEase;if((l=o.timeline=new He({data:"nested",defaults:M||{},targets:C&&"nested"===C.data?C.vars.targets:E})).kill(),l.parent=l._dp=n(o),l._start=0,b||L(v)||L(y)){if(h=E.length,_=b&&le(b),I(b))for(p in b)~Je.indexOf(p)&&(g||(g={}),g[p]=b[p]);for(c=0;c<h;c++)(f=Pt(r,tr)).stagger=0,S&&(f.easeReverse=S),g&&St(f,g),d=E[c],f.duration=+Ke(v,n(o),c,d,E),f.delay=(+Ke(y,n(o),c,d,E)||0)-o._delay,!b&&1===h&&f.delay&&(o._delay=y=f.delay,o._start+=y,f.delay=0),l.to(d,f,_?_(c,d,E):0),l._ease=De.none;l.duration()?v=y=0:o.timeline=0}else if(k){Dt(Et(l.vars.defaults,{ease:"none"})),l._ease=Ye(k.ease||r.ease||"none");var A,P,D,R=0;if(X(k))k.forEach(function(t){return l.to(E,t,">")}),l.duration();else{for(p in f={},k)"ease"===p||"easeEach"===p||$e(p,k[p],f,k.easeEach);for(p in f)for(A=f[p].sort(function(t,e){return t.t-e.t}),R=0,c=0;c<A.length;c++)(D={ease:(P=A[c]).e,duration:(P.t-(c?A[c-1].t:0))/100*v})[p]=P.v,l.to(E,D,R),R+=D.duration;l.duration()<v&&l.to({},{duration:v-l.duration()})}}v||o.duration(v=l.duration())}else o.timeline=0;return!0!==T||s||(We=n(o),u.killTweensOf(E),We=0),Wt(C,n(o),i),r.reversed&&o.reverse(),r.paused&&o.paused(!0),(x||!v&&!k&&o._start===xt(C._time)&&Y(x)&&Bt(n(o))&&"nested"!==C.data)&&(o._tTime=-1e-8,o.render(Math.max(0,-y)||0)),O&&Vt(n(o),O),o}i(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,s,o,u,l,c,f,h=this._time,p=this._tDur,d=this._dur,_=t<0,g=t>p-M&&!_?p:t<M?0:t;if(d){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==_||this._lazy){if(n=g,f=this.timeline,this._repeat){if(o=d+this._rDelay,this._repeat<-1&&_)return this.totalTime(100*o+t,e,r);if(n=xt(g%o),g===p?(s=this._repeat,n=d):(s=~~(u=xt(g/o)))&&s===u?(n=d,s--):n>d&&(n=d),(l=this._yoyo&&1&s)&&(n=d-n),u=Nt(this._tTime,o),n===h&&!r&&this._initted&&s===u)return this._tTime=g,this;s!==u&&this.vars.repeatRefresh&&!l&&!this._lock&&n!==o&&this._initted&&(this._lock=r=1,this.render(xt(o*s),!0).invalidate()._lock=0)}if(!this._initted){if(jt(this,_?t:n,r,e,g))return this._tTime=0,this;if(!(h===this._time||r&&this.vars.repeatRefresh&&s!==u))return this;if(d!==this._dur)return this.render(t,e,r)}if(this._rEase){var m=n<h;if(m!==this._inv){var v=m?h:d-h;this._inv=m,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=h,this._invRecip=v?(m?-1:1)/v:0,this._invScale=m?-this.ratio:1-this.ratio,this._invEase=m?this._rEase:this._ease}this.ratio=c=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=c=this._ease(n/d);if(this._from&&(this.ratio=c=1-c),this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!h&&g&&!e&&!u&&(me(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(c,i.d),i=i._next;f&&f.render(t<0?t:f._dur*f._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(_&&Yt(this,t,0,r),me(this,"onUpdate")),this._repeat&&s!==u&&this.vars.onRepeat&&!e&&this.parent&&me(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(_&&!this._onUpdate&&Yt(this,t,0,!0),(t||!d)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Ft(this,1),e||_&&!h||!(g||h||l)||(me(this,g===p?"onComplete":"onReverseComplete",!0),this._prom&&!(g<p&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,s,o,u=t.ratio,l=e<0||!e&&(!t._start&&Gt(t)&&(t._initted||!Qt(t))||(t._ts<0||t._dp._ts<0)&&!Qt(t))?0:1,c=t._rDelay,f=0;if(c&&t._repeat&&(f=re(0,t._tDur,e),s=Nt(f,c),t._yoyo&&1&s&&(l=1-l),s!==Nt(t._tTime,c)&&(u=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==u||a||n||t._zTime===M||!e&&t._zTime){if(!t._initted&&jt(t,e,n,r,f))return;for(o=t._zTime,t._zTime=e||(r?M:0),r||(r=e&&!o),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=f,i=t._pt;i;)i.r(l,i.d),i=i._next;e<0&&Yt(t,e,0,!0),t._onUpdate&&!r&&me(t,"onUpdate"),f&&t._repeat&&!r&&t.parent&&me(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Ft(t,1),r||a||(me(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},r.resetTo=function(t,e,r,n,i){_||Ae.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Ze(this,s),function(t,e,r,n,i,s,a,o){var u,l,c,f,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],c=t._ptLookup,f=t._targets.length;f--;){if((u=c[f][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return Ve=1,t.vars[e]="+=0",Ze(t,a),Ve=0,o?et(e+" not eligible for reset. Try splitting into individual properties"):1;h.push(u)}for(f=h.length;f--;)(u=(l=h[f])._pt||l).s=!n&&0!==n||i?u.s+(n||0)+s*u.c:n,u.c=r-u.s,l.e&&(l.e=yt(r)+ne(l.e)),l.b&&(l.b=u.s+ne(l.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(qt(this,0),this.parent||Rt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?ve(this):this.scrollTrigger&&this.scrollTrigger.kill(!!a),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,We&&!0!==We.vars.overwrite)._first||ve(this),this.parent&&r!==this.timeline.totalDuration()&&Zt(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,o,u,l,c,f=this._targets,h=t?ae(t):f,p=this._ptLookup,d=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(f,h))return"all"===e&&(this._pt=0),ve(this);for(n=this._op=this._op||[],"all"!==e&&(D(e)&&(u={},vt(e,function(t){return u[t]=1}),e=u),e=function(t,e){var r,n,i,s,a=t[0]?gt(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in r=St({},e),o)if(n in r)for(i=(s=o[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(f,e)),c=f.length;c--;)if(~h.indexOf(f[c]))for(u in i=p[c],"all"===e?(n[c]=e,o=i,s={}):(s=n[c]=n[c]||{},o=e),o)(l=i&&i[u])&&("kill"in l.d&&!0!==l.d.kill(u)||zt(this,l,"_pt"),delete i[u]),"all"!==s&&(s[u]=1);return this._initted&&!this._pt&&d&&ve(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return te(1,arguments)},e.delayedCall=function(t,r,n,i){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},e.fromTo=function(t,e,r){return te(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return u.killTweensOf(t,e,r)},e}(qe);Et(er.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),vt("staggerTo,staggerFrom,staggerFromTo",function(t){er[t]=function(){var e=new He,r=ie.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var rr=function(t,e,r){return t[e]=r},nr=function(t,e,r){return t[e](r)},ir=function(t,e,r,n){return t[e](n.fp,r)},sr=function(t,e,r){return t.setAttribute(e,r)},ar=function(t,e){return R(t[e])?nr:F(t[e])&&t.setAttribute?sr:rr},or=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},ur=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},lr=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},cr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},fr=function(t,e,r,n){for(var i,s=this._pt;s;)i=s._next,s.p===n&&s.modifier(t,e,r),s=i},hr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?zt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},pr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},dr=function(t){for(var e,r,n,i,s=t._pt;s;){for(e=s._next,r=n;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:i)?s._prev._next=s:n=s,(s._next=r)?r._prev=s:i=s,s=e}t._pt=n},_r=function(){function t(t,e,r,n,i,s,a,o,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||or,this.d=a||this,this.set=o||rr,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=pr,this.m=t,this.mt=r,this.tween=e},t}();vt(dt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(t){return ot[t]=1}),$.TweenMax=$.TweenLite=er,$.TimelineLite=$.TimelineMax=He,u=new He({sortChildren:!1,defaults:T,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),w.stringFilter=Se;var gr=[],mr={},vr=[],yr=0,xr=0,br=function(t){return(mr[t]||vr).map(function(t){return t()})},wr=function(){var t=Date.now(),e=[];t-yr>2&&(br("matchMediaInit"),gr.forEach(function(t){var r,n,i,s,a=t.queries,o=t.conditions;for(n in a)(r=l.matchMedia(a[n]).matches)&&(i=1),r!==o[n]&&(o[n]=r,s=1);s&&(t.revert(),i&&e.push(t))}),br("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),yr=t,br("matchMedia"))},Tr=function(){function t(t,e){this.selector=e&&oe(e),this.data=[],this._r=[],this.isReverted=!1,this.id=xr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){R(t)&&(r=e,e=t,t=R);var n=this,i=function(){var t,i=o,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=oe(r)),o=n,t=e.apply(n,arguments),R(t)&&n._r.push(t),o=i,n.selector=s,n.isReverted=!1,t};return n.last=i,t===R?i(n,function(t){return n.add(null,t)}):t?n[t]=i:i},e.ignore=function(t){var e=o;o=null,t(this),o=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof er&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)}),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t?function(){for(var e,n=r.getTweens(),i=r.data.length;i--;)"isFlip"===(e=r.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach(function(t){return n.splice(n.indexOf(t),1)}));for(n.map(function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t}}).sort(function(t,e){return e.g-t.g||-1/0}).forEach(function(e){return e.t.revert(t)}),i=r.data.length;i--;)(e=r.data[i])instanceof He?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof er)&&e.revert&&e.revert(t);r._r.forEach(function(e){return e(t,r)}),r.isReverted=!0}():this.data.forEach(function(t){return t.kill&&t.kill()}),this.clear(),e)for(var n=gr.length;n--;)gr[n].id===this.id&&gr.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),kr=function(){function t(t){this.contexts=[],this.scope=t,o&&o.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){I(t)||(t={matches:t});var n,i,s,a=new Tr(0,r||this.scope),u=a.conditions={};for(i in o&&!a.selector&&(a.selector=o.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?s=1:(n=l.matchMedia(t[i]))&&(gr.indexOf(a)<0&&gr.push(a),(u[i]=n.matches)&&(s=1),n.addListener?n.addListener(wr):n.addEventListener("change",wr));return s&&e(a,function(t){return a.add(null,t)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(e){return e.kill(t,!0)})},t}(),Mr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return xe(t)})},timeline:function(t){return new He(t)},getTweensOf:function(t,e){return u.getTweensOf(t,e)},getProperty:function(t,e,r,n){D(t)&&(t=ae(t)[0]);var i=gt(t||{}).get,s=r?Ct:Ot;return"native"===r&&(r=""),t?e?s((ct[e]&&ct[e].get||i)(t,e,r,n)):function(e,r,n){return s((ct[e]&&ct[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=ae(t)).length>1){var n=t.map(function(t){return Er.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=ct[e],a=gt(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var n=new s;d._pt=0,n.init(t,r?e+r:e,d,0,[t]),n.render(1,n),d._pt&&cr(1,d)}:a.set(t,o);return s?u:function(e){return u(t,o,r?e+r:e,a,1)}},quickTo:function(t,e,r){var n,i=Er.to(t,Et(((n={})[e]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),s=function(t,r,n){return i.resetTo(e,t,r,n)};return s.tween=i,s},isTweening:function(t){return u.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ye(t.ease,T.ease)),At(T,t||{})},config:function(t){return At(w,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,i=t.defaults,s=t.extendTimeline;(n||"").split(",").forEach(function(t){return t&&!ct[t]&&!$[t]&&et(e+" effect requires "+t+" plugin.")}),ft[e]=function(t,e,n){return r(ae(t),Et(e||{},i),n)},s&&(He.prototype[e]=function(t,r,n){return this.add(ft[e](t,I(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){De[t]=Ye(e)},parseEase:function(t,e){return arguments.length?Ye(t,e):De},getById:function(t){return u.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new He(t);for(i.smoothChildTiming=Y(t.smoothChildTiming),u.remove(i),i._dp=0,i._time=i._tTime=u._time,r=u._first;r;)n=r._next,!e&&!r._dur&&r instanceof er&&r.vars.onComplete===r._targets[0]||Wt(i,r,r._start-r._delay),r=n;return Wt(u,i,0),i},context:function(t,e){return t?new Tr(t,e):o},matchMedia:function(t){return new kr(t)},matchMediaRefresh:function(){return gr.forEach(function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()})||wr()},addEventListener:function(t,e){var r=mr[t]||(mr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=mr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return X(e)?pe(e,t(0,e.length),r):ee(n,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return X(e)?pe(e,t(0,e.length-1),r):ee(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:le,random:he,snap:fe,normalize:function(t,e,r){return _e(t,e,0,1,r)},getUnit:ne,clamp:function(t,e,r){return ee(r,function(r){return re(t,e,r)})},splitColor:ke,toArray:ae,selector:oe,mapRange:_e,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function(t,e){return function(r){return t(parseFloat(r))+(e||ne(r))}},interpolate:function t(e,r,n,i){var s=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!s){var a,o,u,l,c,f=D(e),h={};if(!0===n&&(i=1)&&(n=null),f)e={p:e},r={p:r};else if(X(e)&&!X(r)){for(u=[],l=e.length,c=l-2,o=1;o<l;o++)u.push(t(e[o-1],e[o]));l--,s=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},n=r}else i||(e=St(X(e)?[]:{},e));if(!u){for(a in r)Ge.call(h,e,a,"get",r[a]);s=function(t){return cr(t,h)||(f?e.p:e)}}}return ee(n,s)},shuffle:ue},install:J,effects:ft,ticker:Ae,updateRoot:He.updateRoot,plugins:ct,globalTimeline:u,core:{PropTween:_r,globals:rt,Tween:er,Timeline:He,Animation:qe,getCache:gt,_removeLinkedListItem:zt,reverting:function(){return a},context:function(t){return t&&o&&(o.data.push(t),t._ctx=o),o},suppressOverwrites:function(t){return s=t}}};vt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Mr[t]=er[t]}),Ae.add(He.updateRoot),d=Mr.to({},{duration:0});var Or=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Cr=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(D(r)&&(n={},vt(r,function(t){return n[t]=1}),r=n),e){for(i in n={},r)n[i]=e(r[i]);r=n}!function(t,e){var r,n,i,s=t._targets;for(r in e)for(n=s.length;n--;)(i=t._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=Or(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Er=Mr.registerPlugin({name:"attr",init:function(t,e,r,n,i){var s,a,o;for(s in this.tween=r,e)o=t.getAttribute(s)||"",(a=this.add(t,"setAttribute",(o||0)+"",e[s],n,i,0,0,s)).op=s,a.b=o,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)a?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Cr("roundProps",ce),Cr("modifiers"),Cr("snap",fe))||Mr;er.version=He.version=Er.version="3.15.0",h=1,B()&&Pe(),De.Power0,De.Power1,De.Power2,De.Power3,De.Power4,De.Linear,De.Quad,De.Cubic,De.Quart,De.Quint,De.Strong,De.Elastic,De.Back,De.SteppedEase,De.Bounce,De.Sine,De.Expo,De.Circ;var Sr,Ar,Pr,Dr,Rr,zr,Fr,Ir,Yr={},Br=180/Math.PI,Lr=Math.PI/180,Nr=Math.atan2,Xr=/([A-Z])/g,Ur=/(left|right|width|margin|padding|x)/i,qr=/[\s,\(]\S/,Hr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Wr=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Vr=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},jr=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Gr=function(t,e){return e.set(e.t,e.p,1===t?e.e:t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Qr=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Zr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},$r=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Kr=function(t,e,r){return t.style[e]=r},Jr=function(t,e,r){return t.style.setProperty(e,r)},tn=function(t,e,r){return t._gsap[e]=r},en=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},rn=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},nn=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},sn="transform",an=sn+"Origin",on=function t(e,r){var n=this,i=this.target,s=i.style,a=i._gsap;if(e in Yr&&s){if(this.tfm=this.tfm||{},"transform"===e)return Hr.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=Hr[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=Mn(i,t)}):this.tfm[e]=a.x?a[e]:Mn(i,e),e===an&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(sn)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(an,r,"")),e=sn}(s||r)&&this.props.push(e,r,s[e])},un=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},ln=function(){var t,e,r=this.props,n=this.target,i=n.style,s=n._gsap;for(t=0;t<r.length;t+=3)r[t+1]?2===r[t+1]?n[r[t]](r[t+2]):n[r[t]]=r[t+2]:r[t+2]?i[r[t]]=r[t+2]:i.removeProperty("--"===r[t].substr(0,2)?r[t]:r[t].replace(Xr,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)s[e]=this.tfm[e];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(t=Fr())&&t.isStart||i[sn]||(un(i),s.zOrigin&&i[an]&&(i[an]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},cn=function(t,e){var r={target:t,props:[],revert:ln,save:on};return t._gsap||Er.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},fn=function(t,e){var r=Ar.createElementNS?Ar.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Ar.createElement(t);return r&&r.style?r:Ar.createElement(t)},hn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Xr,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,dn(r)||r,1)||""},pn="O,Moz,ms,Ms,Webkit".split(","),dn=function(t,e,r){var n=(e||Rr).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(pn[i]+t in n););return i<0?null:(3===i?"ms":i>=0?pn[i]:"")+t},_n=function(){"undefined"!=typeof window&&window.document&&(Sr=window,Ar=Sr.document,Pr=Ar.documentElement,Rr=fn("div")||{style:{}},fn("div"),sn=dn(sn),an=sn+"Origin",Rr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ir=!!dn("perspective"),Fr=Er.core.reverting,Dr=1)},gn=function(t){var e,r=t.ownerSVGElement,n=fn("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),Pr.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),Pr.removeChild(n),e},mn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},vn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=gn(t),r=1}return e&&(e.width||e.height)||r||(e=gn(t)),!e||e.width||e.x||e.y?e:{x:+mn(t,["x","cx","x1"])||0,y:+mn(t,["y","cy","y1"])||0,width:0,height:0}},yn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!vn(t))},xn=function(t,e){if(e){var r,n=t.style;e in Yr&&e!==an&&(e=sn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(Xr,"-$1").toLowerCase())):n.removeAttribute(e)}},bn=function(t,e,r,n,i,s){var a=new _r(t._pt,e,r,0,1,s?$r:Zr);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},wn={deg:1,rad:1,turn:1},Tn={grid:1,flex:1},kn=function t(e,r,n,i){var s,a,o,u,l=parseFloat(n)||0,c=(n+"").trim().substr((l+"").length)||"px",f=Rr.style,h=Ur.test(r),p="svg"===e.tagName.toLowerCase(),d=(p?"client":"offset")+(h?"Width":"Height"),_=100,g="px"===i,m="%"===i;if(i===c||!l||wn[i]||wn[c])return l;if("px"!==c&&!g&&(l=t(e,r,n,"px")),u=e.getCTM&&yn(e),(m||"%"===c)&&(Yr[r]||~r.indexOf("adius")))return s=u?e.getBBox()[h?"width":"height"]:e[d],yt(m?l/s*_:l/100*s);if(f[h?"width":"height"]=_+(g?c:i),a="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!p?e:e.parentNode,u&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Ar&&a.appendChild||(a=Ar.body),(o=a._gsap)&&m&&o.width&&h&&o.time===Ae.time&&!o.uncache)return yt(l/o.width*_);if(!m||"height"!==r&&"width"!==r)(m||"%"===c)&&!Tn[hn(a,"display")]&&(f.position=hn(e,"position")),a===e&&(f.position="static"),a.appendChild(Rr),s=Rr[d],a.removeChild(Rr),f.position="absolute";else{var v=e.style[r];e.style[r]=_+i,s=e[d],v?e.style[r]=v:xn(e,r)}return h&&m&&((o=gt(a)).time=Ae.time,o.width=a[d]),yt(g?s*l/_:s&&l?_/s*l:0)},Mn=function(t,e,r,n){var i;return Dr||_n(),e in Hr&&"transform"!==e&&~(e=Hr[e]).indexOf(",")&&(e=e.split(",")[0]),Yr[e]&&"transform"!==e?(i=Yn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Bn(hn(t,an))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=An[e]&&An[e](t,e,r)||hn(t,e)||mt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?kn(t,e,i,r)+r:i},On=function(t,e,r,n){if(!r||"none"===r){var i=dn(e,t,1),s=i&&hn(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=hn(t,"borderTopColor"))}var a,o,u,l,c,f,h,p,d,_,g,m=new _r(this._pt,t.style,e,0,1,lr),v=0,y=0;if(m.b=r,m.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=hn(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(f=t.style[e],t.style[e]=n,n=hn(t,e)||n,f?t.style[e]=f:xn(t,e)),Se(a=[r,n]),n=a[1],u=(r=a[0]).match(V)||[],(n.match(V)||[]).length){for(;o=V.exec(n);)h=o[0],d=n.substring(v,o.index),c?c=(c+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(c=1),h!==(f=u[y++]||"")&&(l=parseFloat(f)||0,g=f.substr((l+"").length),"="===h.charAt(1)&&(h=bt(l,h)+g),p=parseFloat(h),_=h.substr((p+"").length),v=V.lastIndex-_.length,_||(_=_||w.units[e]||g,v===n.length&&(n+=_,m.e+=_)),g!==_&&(l=kn(t,e,f,_)||0),m._pt={_next:m._pt,p:d||1===y?d:",",s:l,c:p-l,m:c&&c<4||"zIndex"===e?Math.round:0});m.c=v<n.length?n.substring(v,n.length):""}else m.r="display"===e&&"none"===n?$r:Zr;return G.test(n)&&(m.e=0),this._pt=m,m},Cn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},En=function(t){var e=t.split(" "),r=e[0],n=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==n&&"right"!==n||(t=r,r=n,n=t),e[0]=Cn[r]||r,e[1]=Cn[n]||n,e.join(" ")},Sn=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,s=e.t,a=s.style,o=e.u,u=s._gsap;if("all"===o||!0===o)a.cssText="",n=1;else for(i=(o=o.split(",")).length;--i>-1;)r=o[i],Yr[r]&&(n=1,r="transformOrigin"===r?an:sn),xn(s,r);n&&(xn(s,sn),u&&(u.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",Yn(s,1),u.uncache=1,un(a)))}},An={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new _r(t._pt,e,r,0,0,Sn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Pn=[1,0,0,1,0,0],Dn={},Rn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},zn=function(t){var e=hn(t,sn);return Rn(e)?Pn:e.substr(7).match(W).map(yt)},Fn=function(t,e){var r,n,i,s,a=t._gsap||gt(t),o=t.style,u=zn(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Pn:u:(u!==Pn||t.offsetParent||t===Pr||a.svg||(i=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,Pr.appendChild(t)),u=zn(t),i?o.display=i:xn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):Pr.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},In=function(t,e,r,n,i,s){var a,o,u,l=t._gsap,c=i||Fn(t,!0),f=l.xOrigin||0,h=l.yOrigin||0,p=l.xOffset||0,d=l.yOffset||0,_=c[0],g=c[1],m=c[2],v=c[3],y=c[4],x=c[5],b=e.split(" "),w=parseFloat(b[0])||0,T=parseFloat(b[1])||0;r?c!==Pn&&(o=_*v-g*m)&&(u=w*(-g/o)+T*(_/o)-(_*x-g*y)/o,w=w*(v/o)+T*(-m/o)+(m*x-v*y)/o,T=u):(w=(a=vn(t)).x+(~b[0].indexOf("%")?w/100*a.width:w),T=a.y+(~(b[1]||b[0]).indexOf("%")?T/100*a.height:T)),n||!1!==n&&l.smooth?(y=w-f,x=T-h,l.xOffset=p+(y*_+x*m)-y,l.yOffset=d+(y*g+x*v)-x):l.xOffset=l.yOffset=0,l.xOrigin=w,l.yOrigin=T,l.smooth=!!n,l.origin=e,l.originIsAbsolute=!!r,t.style[an]="0px 0px",s&&(bn(s,l,"xOrigin",f,w),bn(s,l,"yOrigin",h,T),bn(s,l,"xOffset",p,l.xOffset),bn(s,l,"yOffset",d,l.yOffset)),t.setAttribute("data-svg-origin",w+" "+T)},Yn=function(t,e){var r=t._gsap||new Ue(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,a,o,u,l,c,f,h,p,d,_,g,m,v,y,x,b,T,k,M,O,C,E,S,A,P,D,R,z,F,I=t.style,Y=r.scaleX<0,B="px",L="deg",N=getComputedStyle(t),X=hn(t,an)||"0";return n=i=s=u=l=c=f=h=p=0,a=o=1,r.svg=!(!t.getCTM||!yn(t)),N.translate&&("none"===N.translate&&"none"===N.scale&&"none"===N.rotate||(I[sn]=("none"!==N.translate?"translate3d("+(N.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==N.rotate?"rotate("+N.rotate+") ":"")+("none"!==N.scale?"scale("+N.scale.split(" ").join(",")+") ":"")+("none"!==N[sn]?N[sn]:"")),I.scale=I.rotate=I.translate="none"),g=Fn(t,r.svg),r.svg&&(r.uncache?(E=t.getBBox(),X=r.xOrigin-E.x+"px "+(r.yOrigin-E.y)+"px",C=""):C=!e&&t.getAttribute("data-svg-origin"),In(t,C||X,!!C||r.originIsAbsolute,!1!==r.smooth,g)),d=r.xOrigin||0,_=r.yOrigin||0,g!==Pn&&(x=g[0],b=g[1],T=g[2],k=g[3],n=M=g[4],i=O=g[5],6===g.length?(a=Math.sqrt(x*x+b*b),o=Math.sqrt(k*k+T*T),u=x||b?Nr(b,x)*Br:0,(f=T||k?Nr(T,k)*Br+u:0)&&(o*=Math.abs(Math.cos(f*Lr))),r.svg&&(n-=d-(d*x+_*T),i-=_-(d*b+_*k))):(F=g[6],R=g[7],A=g[8],P=g[9],D=g[10],z=g[11],n=g[12],i=g[13],s=g[14],l=(m=Nr(F,D))*Br,m&&(C=M*(v=Math.cos(-m))+A*(y=Math.sin(-m)),E=O*v+P*y,S=F*v+D*y,A=M*-y+A*v,P=O*-y+P*v,D=F*-y+D*v,z=R*-y+z*v,M=C,O=E,F=S),c=(m=Nr(-T,D))*Br,m&&(v=Math.cos(-m),z=k*(y=Math.sin(-m))+z*v,x=C=x*v-A*y,b=E=b*v-P*y,T=S=T*v-D*y),u=(m=Nr(b,x))*Br,m&&(C=x*(v=Math.cos(m))+b*(y=Math.sin(m)),E=M*v+O*y,b=b*v-x*y,O=O*v-M*y,x=C,M=E),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),a=yt(Math.sqrt(x*x+b*b+T*T)),o=yt(Math.sqrt(O*O+F*F)),m=Nr(M,O),f=Math.abs(m)>2e-4?m*Br:0,p=z?1/(z<0?-z:z):0),r.svg&&(C=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Rn(hn(t,sn)),C&&t.setAttribute("transform",C))),Math.abs(f)>90&&Math.abs(f)<270&&(Y?(a*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),e=e||r.uncache,r.x=n-((r.xPercent=n&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+B,r.y=i-((r.yPercent=i&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+B,r.z=s+B,r.scaleX=yt(a),r.scaleY=yt(o),r.rotation=yt(u)+L,r.rotationX=yt(l)+L,r.rotationY=yt(c)+L,r.skewX=f+L,r.skewY=h+L,r.transformPerspective=p+B,(r.zOrigin=parseFloat(X.split(" ")[2])||!e&&r.zOrigin||0)&&(I[an]=Bn(X)),r.xOffset=r.yOffset=0,r.force3D=w.force3D,r.renderTransform=r.svg?Wn:Ir?Hn:Nn,r.uncache=0,r},Bn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Ln=function(t,e,r){var n=ne(e);return yt(parseFloat(e)+parseFloat(kn(t,"x",r+"px",n)))+n},Nn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Hn(t,e)},Xn="0deg",Un="0px",qn=") ",Hn=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,s=r.x,a=r.y,o=r.z,u=r.rotation,l=r.rotationY,c=r.rotationX,f=r.skewX,h=r.skewY,p=r.scaleX,d=r.scaleY,_=r.transformPerspective,g=r.force3D,m=r.target,v=r.zOrigin,y="",x="auto"===g&&t&&1!==t||!0===g;if(v&&(c!==Xn||l!==Xn)){var b,w=parseFloat(l)*Lr,T=Math.sin(w),k=Math.cos(w);w=parseFloat(c)*Lr,b=Math.cos(w),s=Ln(m,s,T*b*-v),a=Ln(m,a,-Math.sin(w)*-v),o=Ln(m,o,k*b*-v+v)}_!==Un&&(y+="perspective("+_+qn),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(x||s!==Un||a!==Un||o!==Un)&&(y+=o!==Un||x?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+qn),u!==Xn&&(y+="rotate("+u+qn),l!==Xn&&(y+="rotateY("+l+qn),c!==Xn&&(y+="rotateX("+c+qn),f===Xn&&h===Xn||(y+="skew("+f+", "+h+qn),1===p&&1===d||(y+="scale("+p+", "+d+qn),m.style[sn]=y||"translate(0, 0)"},Wn=function(t,e){var r,n,i,s,a,o=e||this,u=o.xPercent,l=o.yPercent,c=o.x,f=o.y,h=o.rotation,p=o.skewX,d=o.skewY,_=o.scaleX,g=o.scaleY,m=o.target,v=o.xOrigin,y=o.yOrigin,x=o.xOffset,b=o.yOffset,w=o.forceCSS,T=parseFloat(c),k=parseFloat(f);h=parseFloat(h),p=parseFloat(p),(d=parseFloat(d))&&(p+=d=parseFloat(d),h+=d),h||p?(h*=Lr,p*=Lr,r=Math.cos(h)*_,n=Math.sin(h)*_,i=Math.sin(h-p)*-g,s=Math.cos(h-p)*g,p&&(d*=Lr,a=Math.tan(p-d),i*=a=Math.sqrt(1+a*a),s*=a,d&&(a=Math.tan(d),r*=a=Math.sqrt(1+a*a),n*=a)),r=yt(r),n=yt(n),i=yt(i),s=yt(s)):(r=_,s=g,n=i=0),(T&&!~(c+"").indexOf("px")||k&&!~(f+"").indexOf("px"))&&(T=kn(m,"x",c,"px"),k=kn(m,"y",f,"px")),(v||y||x||b)&&(T=yt(T+v-(v*r+y*i)+x),k=yt(k+y-(v*n+y*s)+b)),(u||l)&&(a=m.getBBox(),T=yt(T+u/100*a.width),k=yt(k+l/100*a.height)),a="matrix("+r+","+n+","+i+","+s+","+T+","+k+")",m.setAttribute("transform",a),w&&(m.style[sn]=a)},Vn=function(t,e,r,n,i){var s,a,o=360,u=D(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?Br:1)-n,c=n+l+"deg";return u&&("short"===(s=i.split("_")[1])&&(l%=o)!==l%180&&(l+=l<0?o:-360),"cw"===s&&l<0?l=(l+36e9)%o-~~(l/o)*o:"ccw"===s&&l>0&&(l=(l-36e9)%o-~~(l/o)*o)),t._pt=a=new _r(t._pt,e,r,n,l,Vr),a.e=c,a.u="deg",t._props.push(r),a},jn=function(t,e){for(var r in e)t[r]=e[r];return t},Gn=function(t,e,r){var n,i,s,a,o,u,l,c=jn({},r._gsap),f=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),f[sn]=e,n=Yn(r,1),xn(r,sn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[sn],f[sn]=e,n=Yn(r,1),f[sn]=s),Yr)(s=c[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=ne(s)!==(l=ne(a))?kn(r,i,s,l):parseFloat(s),u=parseFloat(a),t._pt=new _r(t._pt,n,i,o,u-o,Wr),t._pt.u=l||0,t._props.push(i));jn(n,c)};vt("padding,margin,Width,Radius",function(t,e){var r="Top",n="Right",i="Bottom",s="Left",a=(e<3?[r,n,i,s]:[r+s,r+n,i+n,i+s]).map(function(r){return e<2?t+r:"border"+r+t});An[e>1?"border"+t:t]=function(t,e,r,n,i){var s,o;if(arguments.length<4)return s=a.map(function(e){return Mn(t,e,r)}),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(n+"").split(" "),o={},a.forEach(function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]}),t.init(e,o,i)}});var Qn,Zn,$n={name:"css",register:_n,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,a,o,u,l,c,f,h,p,d,_,g,m,v,y,x,b,T=this._props,k=t.style,M=r.vars.startAt;for(f in Dr||_n(),this.styles=this.styles||cn(t),x=this.styles.props,this.tween=r,e)if("autoRound"!==f&&(a=e[f],!ct[f]||!Qe(f,e,r,n,t,i)))if(l=typeof a,c=An[f],"function"===l&&(l=typeof(a=a.call(r,n,t,i))),"string"===l&&~a.indexOf("random(")&&(a=de(a)),c)c(this,t,f,a,r)&&(y=1);else if("--"===f.substr(0,2))s=(getComputedStyle(t).getPropertyValue(f)+"").trim(),a+="",Ce.lastIndex=0,Ce.test(s)||(h=ne(s),(p=ne(a))?h!==p&&(s=kn(t,f,s,p)+p):h&&(a+=h)),this.add(k,"setProperty",s,a,n,i,0,0,f),T.push(f),x.push(f,0,k[f]);else if("undefined"!==l){if(M&&f in M?(s="function"==typeof M[f]?M[f].call(r,n,t,i):M[f],D(s)&&~s.indexOf("random(")&&(s=de(s)),ne(s+"")||"auto"===s||(s+=w.units[f]||ne(Mn(t,f))||""),"="===(s+"").charAt(1)&&(s=Mn(t,f))):s=Mn(t,f),u=parseFloat(s),(d="string"===l&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),f in Hr&&("autoAlpha"===f&&(1===u&&"hidden"===Mn(t,"visibility")&&o&&(u=0),x.push("visibility",0,k.visibility),bn(this,k,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&"transform"!==f&&~(f=Hr[f]).indexOf(",")&&(f=f.split(",")[0])),_=f in Yr){if(this.styles.save(f),b=a,"string"===l&&"var(--"===a.substring(0,6)){if("calc("===(a=hn(t,a.substring(4,a.indexOf(")")))).substring(0,5)){var O=t.style.perspective;t.style.perspective=a,a=hn(t,"perspective"),O?t.style.perspective=O:xn(t,"perspective")}o=parseFloat(a)}if(g||((m=t._gsap).renderTransform&&!e.parseTransform||Yn(t,e.parseTransform),v=!1!==e.smoothOrigin&&m.smooth,(g=this._pt=new _r(this._pt,k,sn,0,1,m.renderTransform,m,0,-1)).dep=1),"scale"===f)this._pt=new _r(this._pt,m,"scaleY",m.scaleY,(d?bt(m.scaleY,d+o):o)-m.scaleY||0,Wr),this._pt.u=0,T.push("scaleY",f),f+="X";else{if("transformOrigin"===f){x.push(an,0,k[an]),a=En(a),m.svg?In(t,a,0,v,0,this):((p=parseFloat(a.split(" ")[2])||0)!==m.zOrigin&&bn(this,m,"zOrigin",m.zOrigin,p),bn(this,k,f,Bn(s),Bn(a)));continue}if("svgOrigin"===f){In(t,a,1,v,0,this);continue}if(f in Dn){Vn(this,m,f,u,d?bt(u,d+a):a);continue}if("smoothOrigin"===f){bn(this,m,"smooth",m.smooth,a);continue}if("force3D"===f){m[f]=a;continue}if("transform"===f){Gn(this,a,t);continue}}}else f in k||(f=dn(f)||f);if(_||(o||0===o)&&(u||0===u)&&!qr.test(a)&&f in k)o||(o=0),(h=(s+"").substr((u+"").length))!==(p=ne(a)||(f in w.units?w.units[f]:h))&&(u=kn(t,f,s,p)),this._pt=new _r(this._pt,_?m:k,f,u,(d?bt(u,d+o):o)-u,_||"px"!==p&&"zIndex"!==f||!1===e.autoRound?Wr:Qr),this._pt.u=p||0,_&&b!==a?(this._pt.b=s,this._pt.e=b,this._pt.r=Gr):h!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=jr);else if(f in k)On.call(this,t,f,s,d?d+a:a);else if(f in t)this.add(t,f,s||t[f],d?d+a:a,n,i);else if("parseTransform"!==f){tt(f,a);continue}_||(f in k?x.push(f,0,k[f]):"function"==typeof t[f]?x.push(f,2,t[f]()):x.push(f,1,s||t[f])),T.push(f)}y&&dr(this)},render:function(t,e){if(e.tween._time||!Fr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Mn,aliases:Hr,getSetter:function(t,e,r){var n=Hr[e];return n&&n.indexOf(",")<0&&(e=n),e in Yr&&e!==an&&(t._gsap.x||Mn(t,"x"))?r&&zr===r?"scale"===e?en:tn:(zr=r||{})&&("scale"===e?rn:nn):t.style&&!F(t.style[e])?Kr:~e.indexOf("-")?Jr:ar(t,e)},core:{_removeProperty:xn,_getMatrix:Fn}};Er.utils.checkPrefix=dn,Er.core.getStyleSaver=cn,Zn=vt("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(Qn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Yr[t]=1}),vt(Qn,function(t){w.units[t]="deg",Dn[t]=1}),Hr[Zn[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Qn,vt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Hr[e[1]]=Zn[e[0]]}),vt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){w.units[t]="px"}),Er.registerPlugin($n);var Kn=Er.registerPlugin($n)||Er;Kn.core.Tween}}]);