z-flux-react 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{jsx as t}from"react/jsx-runtime";import e,{useRef as r,useState as n,useEffect as i,useLayoutEffect as s,Fragment as o}from"react";function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
1
+ import{jsx as t}from"react/jsx-runtime";import e,{useRef as r,useState as n,useEffect as i,useLayoutEffect as s,Fragment as a}from"react";import{findScrollingElement as o,getProgressionData as l,animation_list as u,build_extend_animation as c}from"z-flux-utils";function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
2
2
  /*!
3
3
  * GSAP 3.15.0
4
4
  * https://gsap.com
@@ -6,7 +6,7 @@ import{jsx as t}from"react/jsx-runtime";import e,{useRef as r,useState as n,useE
6
6
  * @license Copyright 2008-2026, GreenSock. All rights reserved.
7
7
  * Subject to the terms at https://gsap.com/standard-license
8
8
  * @author: Jack Doyle, jack@greensock.com
9
- */var u,c,f,h,d,p,g,m,_,v,y,x={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},b={duration:.5,overwrite:!1,delay:0},w=1e8,T=1e-8,k=2*Math.PI,C=k/4,O=0,E=Math.sqrt,S=Math.cos,M=Math.sin,A=function(t){return"string"==typeof t},P=function(t){return"function"==typeof t},R=function(t){return"number"==typeof t},D=function(t){return void 0===t},z=function(t){return"object"==typeof t},F=function(t){return!1!==t},I=function(){return"undefined"!=typeof window},N=function(t){return P(t)||A(t)},B="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},L=Array.isArray,Y=/random\([^)]+\)/g,X=/,\s*/g,j=/(?:-?\.?\d|\.)+/gi,q=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,H=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,W=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,U=/[+-]=-?[.\d]+/,V=/[^,'"\[\]\s]+/gi,G=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,$={},Q={},Z=function(t){return(Q=Et(t,$))&&Er},K=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},J=function(t,e){return!e&&console.warn(t)},tt=function(t,e){return t&&($[t]=e)&&Q&&(Q[t]=e)||$},et=function(){return 0},rt={suppressEvents:!0,isStart:!0,kill:!1},nt={suppressEvents:!0,kill:!1},it={suppressEvents:!0},st={},ot=[],at={},lt={},ut={},ct=30,ft=[],ht="",dt=function(t){var e,r,n=t[0];if(z(n)||P(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=ft.length;r--&&!ft[r].targetTest(n););e=ft[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Xe(t[r],e)))||t.splice(r,1);return t},pt=function(t){return t._gsap||dt(se(t))[0]._gsap},gt=function(t,e,r){return(r=t[e])&&P(r)?t[e]():D(r)&&t.getAttribute&&t.getAttribute(e)||r},mt=function(t,e){return(t=t.split(",")).forEach(e)||t},_t=function(t){return Math.round(1e5*t)/1e5||0},vt=function(t){return Math.round(1e7*t)/1e7||0},yt=function(t,e){var r=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+n:"-"===r?t-n:"*"===r?t*n:t/n},xt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},bt=function(){var t,e,r=ot.length,n=ot.slice(0);for(at={},ot.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},wt=function(t){return!!(t._initted||t._startAt||t.add)},Tt=function(t,e,r,n){ot.length&&!c&&bt(),t.render(e,r,n||!!(c&&e<0&&wt(t))),ot.length&&!c&&bt()},kt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(V).length<2?e:A(t)?t.trim():t},Ct=function(t){return t},Ot=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Et=function(t,e){for(var r in e)t[r]=e[r];return t},St=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=z(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Mt=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},At=function(t){var e,r=t.parent||h,n=t.keyframes?(e=L(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):Ot;if(F(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Pt=function(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var s,o=t[n];if(i)for(s=e[i];o&&o[i]>s;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Rt=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},Dt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},zt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Ft=function(t,e,r,n){return t._startAt&&(c?t._startAt.revert(nt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},It=function t(e){return!e||e._ts&&t(e.parent)},Nt=function(t){return t._repeat?Bt(t._tTime,t=t.duration()+t._rDelay)*t:0},Bt=function(t,e){var r=Math.floor(t=vt(t/e));return t&&r===t?r-1:r},Lt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Yt=function(t){return t._end=vt(t._start+(t._tDur/Math.abs(t._ts||t._rts||T)||0))},Xt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=vt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Yt(t),r._dirty||zt(r,t)),t},jt=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Lt(t.rawTime(),e),(!e._dur||te(0,e.totalDuration(),r)-e._tTime>T)&&e.render(r,!0)),zt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},qt=function(t,e,r,n){return e.parent&&Dt(e),e._start=vt((R(r)?r:r||t!==h?Zt(t,r,e):t._time)+e._delay),e._end=vt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Pt(t,e,"_first","_last",t._sort?"_start":0),Vt(e)||(t._recent=e),n||jt(t,e),t._ts<0&&Xt(t,t._tTime),t},Ht=function(t,e){return($.ScrollTrigger||K("scrollTrigger",e))&&$.ScrollTrigger.create(e,t)},Wt=function(t,e,r,n,i){return $e(t,e,i),t._initted?!r&&t._pt&&!c&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&_!==Me.frame?(ot.push(t),t._lazy=[i,n],1):void 0:1},Ut=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},Vt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Gt=function(t,e,r,n){var i=t._repeat,s=vt(e)||0,o=t._tTime/t._tDur;return o&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:vt(s*(i+1)+t._rDelay*i):s,o>0&&!n&&Xt(t,t._tTime=t._tDur*o),t.parent&&Yt(t),r||zt(t.parent,t),t},$t=function(t){return t instanceof qe?zt(t):Gt(t,t._dur)},Qt={_start:0,endTime:et,totalDuration:et},Zt=function t(e,r,n){var i,s,o,a=e.labels,l=e._recent||Qt,u=e.duration()>=w?l.endTime(!1):e._dur;return A(r)&&(isNaN(r)||r in a)?(s=r.charAt(0),o="%"===r.substr(-1),i=r.indexOf("="),"<"===s||">"===s?(i>=0&&(r=r.replace(/=/,"")),("<"===s?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(o?(i<0?l:n).totalDuration()/100:1)):i<0?(r in a||(a[r]=u),a[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),o&&n&&(s=s/100*(L(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:u+s)):null==r?u:+r},Kt=function(t,e,r){var n,i,s=R(e[1]),o=(s?2:1)+(t<2?0:1),a=e[o];if(s&&(a.duration=e[1]),a.parent=r,t){for(n=a,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=F(i.vars.inherit)&&i.parent;a.immediateRender=F(n.immediateRender),t<2?a.runBackwards=1:a.startAt=e[o-1]}return new tr(e[0],a,e[o+1])},Jt=function(t,e){return t||0===t?e(t):e},te=function(t,e,r){return r<t?t:r>e?e:r},ee=function(t,e){return A(t)&&(e=G.exec(t))?e[1]:""},re=[].slice,ne=function(t,e){return t&&z(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&z(t[0]))&&!t.nodeType&&t!==d},ie=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return A(t)&&!e||ne(t,1)?(n=r).push.apply(n,se(t)):r.push(t)})||r},se=function(t,e,r){return f&&!e&&f.selector?f.selector(t):!A(t)||r||!p&&Ae()?L(t)?ie(t,r):ne(t)?re.call(t,0):t?[t]:[]:re.call((e||g).querySelectorAll(t),0)},oe=function(t){return t=se(t)[0]||J("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return se(e,r.querySelectorAll?r:r===t?J("Invalid scope")||g.createElement("div"):t)}},ae=function(t){return t.sort(function(){return.5-Math.random()})},le=function(t){if(P(t))return t;var e=z(t)?t:{each:t},r=Ie(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},o=n>0&&n<1,a=isNaN(n)||o,l=e.axis,u=n,c=n;return A(n)?u=c={center:.5,edges:.5,end:1}[n]||0:!o&&a&&(u=n[0],c=n[1]),function(t,o,f){var h,d,p,g,m,_,v,y,x,b=(f||e).length,T=s[b];if(!T){if(!(x="auto"===e.grid?0:(e.grid||[1,w])[1])){for(v=-1e8;v<(v=f[x++].getBoundingClientRect().left)&&x<b;);x<b&&x--}for(T=s[b]=[],h=a?Math.min(x,b)*u-.5:n%x,d=x===w?0:a?b*c/x-.5:n/x|0,v=0,y=w,_=0;_<b;_++)p=_%x-h,g=d-(_/x|0),T[_]=m=l?Math.abs("y"===l?g:p):E(p*p+g*g),m>v&&(v=m),m<y&&(y=m);"random"===n&&ae(T),T.max=v-y,T.min=y,T.v=b=(parseFloat(e.amount)||parseFloat(e.each)*(x>b?b-1:l?"y"===l?b/x:x:Math.max(x,b/x))||0)*("edges"===n?-1:1),T.b=b<0?i-b:i,T.u=ee(e.amount||e.each)||0,r=r&&b<0?Fe(r):r}return b=(T[t]-T.min)/T.max||0,vt(T.b+(r?r(b):b)*T.v)+T.u}},ue=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=vt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(R(r)?0:ee(r))}},ce=function(t,e){var r,n,i=L(t);return!i&&z(t)&&(r=i=t.radius||w,t.values?(t=se(t.values),(n=!R(t[0]))&&(r*=r)):t=ue(t.increment)),Jt(e,i?P(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,s,o=parseFloat(n?e.x:e),a=parseFloat(n?e.y:0),l=w,u=0,c=t.length;c--;)(i=n?(i=t[c].x-o)*i+(s=t[c].y-a)*s:Math.abs(t[c]-o))<l&&(l=i,u=c);return u=!r||l<=r?t[u]:e,n||u===e||R(e)?u:u+ee(e)}:ue(t))},fe=function(t,e,r,n){return Jt(L(t)?!e:!0===r?!!(r=0):!n,function(){return L(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})},he=function(t,e,r){return Jt(r,function(r){return t[~~e(r)]})},de=function(t){return t.replace(Y,function(t){var e=t.indexOf("[")+1,r=t.substring(e||7,e?t.indexOf("]"):t.length-1).split(X);return fe(e?r:+r[0],e?0:+r[1],+r[2]||1e-5)})},pe=function(t,e,r,n,i){var s=e-t,o=n-r;return Jt(i,function(e){return r+((e-t)/s*o||0)})},ge=function(t,e,r){var n,i,s,o=t.labels,a=w;for(n in o)(i=o[n]-e)<0==!!r&&i&&a>(i=Math.abs(i))&&(s=n,a=i);return s},me=function(t,e,r){var n,i,s,o=t.vars,a=o[e],l=f,u=t._ctx;if(a)return n=o[e+"Params"],i=o.callbackScope||t,r&&ot.length&&bt(),u&&(f=u),s=n?a.apply(i,n):a.call(i),f=l,s},_e=function(t){return Dt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!c),t.progress()<1&&me(t,"onInterrupt"),t},ve=[],ye=function(t){if(t)if(t=!t.name&&t.default||t,I()||t.headless){var e=t.name,r=P(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:et,render:ur,add:Ve,kill:fr,modifier:cr,rawVars:0},s={targetTest:0,get:0,getSetter:sr,aliases:{},register:0};if(Ae(),t!==n){if(lt[e])return;Ot(n,Ot(Mt(t,i),s)),Et(n.prototype,Et(i,Mt(t,s))),lt[n.prop=e]=n,t.targetTest&&(ft.push(n),st[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}tt(e,n),t.register&&t.register(Er,n,pr)}else ve.push(t)},xe=255,be={aqua:[0,xe,xe],lime:[0,xe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,xe],navy:[0,0,128],white:[xe,xe,xe],olive:[128,128,0],yellow:[xe,xe,0],orange:[xe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[xe,0,0],pink:[xe,192,203],cyan:[0,xe,xe],transparent:[xe,xe,xe,0]},we=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)*xe+.5|0},Te=function(t,e,r){var n,i,s,o,a,l,u,c,f,h,d=t?R(t)?[t>>16,t>>8&xe,t&xe]:0:be.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),be[t])d=be[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[(d=parseInt(t.substr(1,6),16))>>16,d>>8&xe,d&xe,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&xe,t&xe]}else if("hsl"===t.substr(0,3))if(d=h=t.match(j),e){if(~t.indexOf("="))return d=t.match(q),r&&d.length<4&&(d[3]=1),d}else o=+d[0]%360/360,a=+d[1]/100,n=2*(l=+d[2]/100)-(i=l<=.5?l*(a+1):l+a-l*a),d.length>3&&(d[3]*=1),d[0]=we(o+1/3,n,i),d[1]=we(o,n,i),d[2]=we(o-1/3,n,i);else d=t.match(j)||be.transparent;d=d.map(Number)}return e&&!h&&(n=d[0]/xe,i=d[1]/xe,s=d[2]/xe,l=((u=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,u===c?o=a=0:(f=u-c,a=l>.5?f/(2-u-c):f/(u+c),o=u===n?(i-s)/f+(i<s?6:0):u===i?(s-n)/f+2:(n-i)/f+4,o*=60),d[0]=~~(o+.5),d[1]=~~(100*a+.5),d[2]=~~(100*l+.5)),r&&d.length<4&&(d[3]=1),d},ke=function(t){var e=[],r=[],n=-1;return t.split(Oe).forEach(function(t){var i=t.match(H)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},Ce=function(t,e,r){var n,i,s,o,a="",l=(t+a).match(Oe),u=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map(function(t){return(t=Te(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=ke(t),(n=r.c).join(a)!==s.c.join(a)))for(o=(i=t.replace(Oe,"1").split(H)).length-1;c<o;c++)a+=i[c]+(~n.indexOf(c)?l.shift()||u+"0,0,0,0)":(s.length?s:l.length?l:r).shift());if(!i)for(o=(i=t.split(Oe)).length-1;c<o;c++)a+=i[c]+l[c];return a+i[o]},Oe=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in be)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ee=/hsl[a]?\(/,Se=function(t){var e,r=t.join(" ");if(Oe.lastIndex=0,Oe.test(r))return e=Ee.test(r),t[1]=Ce(t[1],e),t[0]=Ce(t[0],e,ke(t[1])),!0},Me=function(){var t,e,r,n,i,s,o=Date.now,a=500,l=33,u=o(),c=u,f=1e3/240,h=f,_=[],v=function r(d){var p,g,m,v,y=o()-c,x=!0===d;if((y>a||y<0)&&(u+=y-l),((p=(m=(c+=y)-u)-h)>0||x)&&(v=++n.frame,i=m-1e3*n.time,n.time=m/=1e3,h+=p+(p>=f?4:f-p),g=1),x||(t=e(r)),g)for(s=0;s<_.length;s++)_[s](m,i,v,d)};return n={time:0,frame:0,tick:function(){v(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){m&&(!p&&I()&&(d=p=window,g=d.document||{},$.gsap=Er,(d.gsapVersions||(d.gsapVersions=[])).push(Er.version),Z(Q||d.GreenSockGlobals||!d.gsap&&d||{}),ve.forEach(ye)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,h-1e3*n.time+1|0)},y=1,v(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),y=0,e=et},lagSmoothing:function(t,e){a=t||1/0,l=Math.min(e||33,a)},fps:function(t){f=1e3/(t||240),h=1e3*n.time+f},add:function(t,e,r){var i=e?function(e,r,s,o){t(e,r,s,o),n.remove(i)}:t;return n.remove(t),_[r?"unshift":"push"](i),Ae(),i},remove:function(t,e){~(e=_.indexOf(t))&&_.splice(e,1)&&s>=e&&s--},_listeners:_}}(),Ae=function(){return!y&&Me.wake()},Pe={},Re=/^[\d.\-M][\d.\-,\s]/,De=/["']/g,ze=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),o=s[0],a=1,l=s.length;a<l;a++)r=s[a],e=a!==l-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[o]=isNaN(n)?n.replace(De,"").trim():+n,o=r.substr(e+1).trim();return i},Fe=function(t){return function(e){return 1-t(1-e)}},Ie=function(t,e){return t&&(P(t)?t:Pe[t]||function(t){var e,r,n,i,s=(t+"").split("("),o=Pe[s[0]];return o&&s.length>1&&o.config?o.config.apply(null,~t.indexOf("{")?[ze(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(kt)):Pe._CE&&Re.test(t)?Pe._CE("",t):o}(t))||e},Ne=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 mt(t,function(t){for(var e in Pe[t]=$[t]=s,Pe[i=t.toLowerCase()]=r,s)Pe[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Pe[t+"."+e]=s[e]}),s},Be=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Le=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),o=s/k*(Math.asin(1/i)||0),a=function(t){return 1===t?1:i*Math.pow(2,-10*t)*M((t-o)*s)+1},l="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:Be(a);return s=k/s,l.config=function(r,n){return t(e,r,n)},l},Ye=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)}:Be(n);return i.config=function(r){return t(e,r)},i};mt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Ne(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})}),Pe.Linear.easeNone=Pe.none=Pe.Linear.easeIn,Ne("Elastic",Le("in"),Le("out"),Le()),function(t,e){var r=1/e,n=2*r,i=2.5*r,s=function(s){return s<r?t*s*s:s<n?t*Math.pow(s-1.5/e,2)+.75:s<i?t*(s-=2.25/e)*s+.9375:t*Math.pow(s-2.625/e,2)+.984375};Ne("Bounce",function(t){return 1-s(1-t)},s)}(7.5625,2.75),Ne("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Ne("Circ",function(t){return-(E(1-t*t)-1)}),Ne("Sine",function(t){return 1===t?1:1-S(t*C)}),Ne("Back",Ye("in"),Ye("out"),Ye()),Pe.SteppedEase=Pe.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*te(0,.99999999,t)|0)+i)*r}}},b.ease=Pe["quad.out"],mt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return ht+=t+","+t+"Params,"});var Xe=function(t,e){this.id=O++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:gt,this.set=e?e.getSetter:sr},je=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,Gt(this,+t.duration,1,1),this.data=t.data,f&&(this._ctx=f,f.data.push(this)),y||Me.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,Gt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ae(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Xt(this,t),!r._dp||r.parent||jt(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)&&qt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===T||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Tt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Nt(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)+Nt(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?Bt(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?Lt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(te(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),Yt(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):(Ae(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==T&&(this._tTime-=T)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=vt(t);var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&qt(e,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(F(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?Lt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=it);var e=c;return c=t,wt(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),c=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(Zt(this,t),F(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,F(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)-T))},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=P(t)?t:Ct,s=function(){var t=e.then;e.then=null,r&&r(),P(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(){_e(this)},t}();Ot(je.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 qe=function(t){function e(e,r){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=F(e.sortChildren),h&&qt(e.parent||h,a(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&Ht(a(n),e.scrollTrigger),n}l(e,t);var r=e.prototype;return r.to=function(t,e,r){return Kt(0,arguments,this),this},r.from=function(t,e,r){return Kt(1,arguments,this),this},r.fromTo=function(t,e,r,n){return Kt(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,At(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new tr(t,e,Zt(this,r),1),this},r.call=function(t,e,r){return qt(this,tr.delayedCall(0,t,e),r)},r.staggerTo=function(t,e,r,n,i,s,o){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=s,r.onCompleteParams=o,r.parent=this,new tr(t,r,Zt(this,i)),this},r.staggerFrom=function(t,e,r,n,i,s,o){return r.runBackwards=1,At(r).immediateRender=F(r.immediateRender),this.staggerTo(t,e,r,n,i,s,o)},r.staggerFromTo=function(t,e,r,n,i,s,o,a){return n.startAt=r,At(n).immediateRender=F(n.immediateRender),this.staggerTo(t,e,n,i,s,o,a)},r.render=function(t,e,r){var n,i,s,o,a,l,u,f,d,p,g,m,_=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,x=t<=0?0:vt(t),b=this._zTime<0!=t<0&&(this._initted||!y);if(this!==h&&x>v&&t>=0&&(x=v),x!==this._tTime||r||b){if(_!==this._time&&y&&(x+=this._time-_,t+=this._time-_),n=x,d=this._start,l=!(f=this._ts),b&&(y||(_=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(g=this._yoyo,a=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,r);if(n=vt(x%a),x===v?(o=this._repeat,n=y):((o=~~(p=vt(x/a)))&&o===p&&(n=y,o--),n>y&&(n=y)),p=Bt(this._tTime,a),!_&&this._tTime&&p!==o&&this._tTime-p*a-this._dur<=0&&(p=o),g&&1&o&&(n=y-n,m=1),o!==p&&!this._lock){var w=g&&1&p,k=w===(g&&1&o);if(o<p&&(w=!w),_=w?0:x%y?y:x,this._lock=1,this.render(_||(m?0:vt(o*a)),e,!y)._lock=0,this._tTime=x,!e&&this.parent&&me(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1,p=o),_&&_!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,k&&(this._lock=2,_=w?y:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!l)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=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,vt(_),vt(n)),u&&(x-=n-(n=u._start))),this._tTime=x,this._time=n,this._act=!!f,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,_=0),!_&&x&&y&&!e&&!p&&(me(this,"onStart"),this._tTime!==x))return this;if(n>=_&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||n>=i._start)&&i._ts&&u!==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&&!l){u=0,s&&(x+=this._zTime=-1e-8);break}}i=s}else{i=this._last;for(var C=t<0?t:n;i;){if(s=i._prev,(i._act||C<=i._end)&&i._ts&&u!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(C-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(C-i._start)*i._ts,e,r||c&&wt(i)),n!==this._time||!this._ts&&!l){u=0,s&&(x+=this._zTime=C?-1e-8:T);break}}i=s}}if(u&&!e&&(this.pause(),u.render(n>=_?0:-1e-8)._zTime=n>=_?1:-1,this._ts))return this._start=d,Yt(this),this.render(t,e,r);this._onUpdate&&!e&&me(this,"onUpdate",!0),(x===v&&this._tTime>=this.totalDuration()||!x&&_)&&(d!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||((t||!y)&&(x===v&&this._ts>0||!x&&this._ts<0)&&Dt(this,1),e||t<0&&!_||!x&&!_&&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(R(e)||(e=Zt(this,e,t)),!(t instanceof je)){if(L(t))return t.forEach(function(t){return r.add(t,e)}),this;if(A(t))return this.addLabel(t,e);if(!P(t))return this;t=tr.delayedCall(0,t)}return this!==t?qt(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=-1e8);for(var i=[],s=this._first;s;)s._start>=n&&(s instanceof tr?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 A(t)?this.removeLabel(t):P(t)?this.killTweensOf(t):(t.parent===this&&Rt(this,t),t===this._recent&&(this._recent=this._last),zt(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=vt(Me.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]=Zt(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=tr.delayedCall(0,e||et,r);return n.data="isPause",this._hasPause=1,qt(this,n,Zt(this,t))},r.removePause=function(t){var e=this._first;for(t=Zt(this,t);e;)e._start===t&&"isPause"===e.data&&Dt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)He!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=se(t),s=this._first,o=R(e);s;)s instanceof tr?xt(s._targets,i)&&(o?(!He||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=Zt(n,t),s=e,o=s.startAt,a=s.onStart,l=s.onStartParams,u=s.immediateRender,c=tr.to(n,Ot({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale())||T,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale());c._dur!==t&&Gt(c,t,0,1).render(c._time,!0,!0),r=1}a&&a.apply(c,l||[])}},e));return u?c.render(0):c},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,Ot({startAt:{time:Zt(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),ge(this,Zt(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),ge(this,Zt(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+T)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);var n,i=this._first,s=this.labels;for(t=vt(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 zt(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={}),zt(this)},r.totalDuration=function(t){var e,r,n,i=0,s=this,o=s._last,a=w;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(r=o._start)>a&&s._sort&&o._ts&&!s._lock?(s._lock=1,qt(s,o,r-o._delay,1)._lock=0):a=r,r<0&&o._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=vt(r/s._ts),s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),a=0),o._end>i&&o._ts&&(i=o._end),o=e;Gt(s,s===h&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(h._ts&&(Tt(h,Lt(t,h)),_=Me.frame),Me.frame>=ct){ct+=x.autoSleep||120;var e=h._first;if((!e||!e._ts)&&x.autoSleep&&Me._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Me.sleep()}}},e}(je);Ot(qe.prototype,{_lock:0,_hasPause:0,_forcing:0});var He,We,Ue=function(t,e,r,n,i,s,o){var a,l,u,c,f,h,d,p,g=new pr(this._pt,t,e,0,1,lr,null,i),m=0,_=0;for(g.b=r,g.e=n,r+="",(d=~(n+="").indexOf("random("))&&(n=de(n)),s&&(s(p=[r,n],t,e),r=p[0],n=p[1]),l=r.match(W)||[];a=W.exec(n);)c=a[0],f=n.substring(m,a.index),u?u=(u+1)%5:"rgba("===f.substr(-5)&&(u=1),c!==l[_++]&&(h=parseFloat(l[_-1])||0,g._pt={_next:g._pt,p:f||1===_?f:",",s:h,c:"="===c.charAt(1)?yt(h,c)-h:parseFloat(c)-h,m:u&&u<4?Math.round:0},m=W.lastIndex);return g.c=m<n.length?n.substring(m,n.length):"",g.fp=o,(U.test(n)||d)&&(g.e=0),this._pt=g,g},Ve=function(t,e,r,n,i,s,o,a,l,u){P(n)&&(n=n(i||0,t,s));var c,f=t[e],h="get"!==r?r:P(f)?l?t[e.indexOf("set")||!P(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():f,d=P(f)?l?nr:rr:er;if(A(n)&&(~n.indexOf("random(")&&(n=de(n)),"="===n.charAt(1)&&((c=yt(h,n)+(ee(h)||0))||0===c)&&(n=c)),!u||h!==n||We)return isNaN(h*n)||""===n?(!f&&!(e in t)&&K(e,n),Ue.call(this,t,e,h,n,d,a||x.stringFilter,l)):(c=new pr(this._pt,t,e,+h||0,n-(h||0),"boolean"==typeof f?ar:or,0,d),l&&(c.fp=l),o&&c.modifier(o,this,t),this._pt=c)},Ge=function(t,e,r,n,i,s){var o,a,l,u;if(lt[t]&&!1!==(o=new lt[t]).init(i,o.rawVars?e[t]:function(t,e,r,n,i){if(P(t)&&(t=Ze(t,i,e,r,n)),!z(t)||t.style&&t.nodeType||L(t)||B(t))return A(t)?Ze(t,i,e,r,n):t;var s,o={};for(s in t)o[s]=Ze(t[s],i,e,r,n);return o}(e[t],n,i,s,r),r,n,s)&&(r._pt=a=new pr(r._pt,i,t,0,1,o.render,o,0,o.priority),r!==v))for(l=r._ptLookup[r._targets.indexOf(i)],u=o._props.length;u--;)l[o._props[u]]=a;return o},$e=function t(e,r,n){var i,s,o,a,l,f,d,p,g,m,_,v,y,x=e.vars,k=x.ease,C=x.startAt,O=x.immediateRender,E=x.lazy,S=x.onUpdate,M=x.runBackwards,A=x.yoyoEase,P=x.keyframes,R=x.autoRevert,D=e._dur,z=e._startAt,I=e._targets,N=e.parent,B=N&&"nested"===N.data?N.vars.targets:I,L="auto"===e._overwrite&&!u,Y=e.timeline,X=x.easeReverse||A;if(Y&&(!P||!k)&&(k="none"),e._ease=Ie(k,b.ease),e._rEase=X&&(Ie(X)||e._ease),e._from=!Y&&!!x.runBackwards,e._from&&(e.ratio=1),!Y||P&&!x.stagger){if(v=(p=I[0]?pt(I[0]).harness:0)&&x[p.prop],i=Mt(x,st),z&&(z._zTime<0&&z.progress(1),r<0&&M&&O&&!R?z.render(-1,!0):z.revert(M&&D?nt:rt),z._lazy=0),C){if(Dt(e._startAt=tr.set(I,Ot({data:"isStart",overwrite:!1,parent:N,immediateRender:!0,lazy:!z&&F(E),startAt:null,delay:0,onUpdate:S&&function(){return me(e,"onUpdate")},stagger:0},C))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(c||!O&&!R)&&e._startAt.revert(nt),O&&D&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(M&&D&&!z)if(r&&(O=!1),o=Ot({overwrite:!1,data:"isFromStart",lazy:O&&!z&&F(E),immediateRender:O,stagger:0,parent:N},i),v&&(o[p.prop]=v),Dt(e._startAt=tr.set(I,o)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(c?e._startAt.revert(nt):e._startAt.render(-1,!0)),e._zTime=r,O){if(!r)return}else t(e._startAt,T,T);for(e._pt=e._ptCache=0,E=D&&F(E)||E&&!D,s=0;s<I.length;s++){if(d=(l=I[s])._gsap||dt(I)[s]._gsap,e._ptLookup[s]=m={},at[d.id]&&ot.length&&bt(),_=B===I?s:B.indexOf(l),p&&!1!==(g=new p).init(l,v||i,e,_,B)&&(e._pt=a=new pr(e._pt,l,g.name,0,1,g.render,g,0,g.priority),g._props.forEach(function(t){m[t]=a}),g.priority&&(f=1)),!p||v)for(o in i)lt[o]&&(g=Ge(o,i,e,_,l,B))?g.priority&&(f=1):m[o]=a=Ve.call(e,l,o,"get",i[o],_,B,0,x.stringFilter);e._op&&e._op[s]&&e.kill(l,e._op[s]),L&&e._pt&&(He=e,h.killTweensOf(l,m,e.globalTime(r)),y=!e.parent,He=0),e._pt&&E&&(at[d.id]=1)}f&&dr(e),e._onInit&&e._onInit(e)}e._onUpdate=S,e._initted=(!e._op||e._pt)&&!y,P&&r<=0&&Y.render(w,!0,!0)},Qe=function(t,e,r,n){var i,s,o=e.ease||n||"power1.inOut";if(L(e))s=r[t]||(r[t]=[]),e.forEach(function(t,r){return s.push({t:r/(e.length-1)*100,v:t,e:o})});else for(i in e)s=r[i]||(r[i]=[]),"ease"===i||s.push({t:parseFloat(t),v:e[i],e:o})},Ze=function(t,e,r,n,i){return P(t)?t.call(e,r,n,i):A(t)&&~t.indexOf("random(")?de(t):t},Ke=ht+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",Je={};mt(Ke+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Je[t]=1});var tr=function(t){function e(e,r,n,i){var s;"number"==typeof r&&(n.duration=r,r=n,n=null);var o,l,c,f,d,p,g,m,_=(s=t.call(this,i?r:At(r))||this).vars,v=_.duration,y=_.delay,b=_.immediateRender,w=_.stagger,T=_.overwrite,k=_.keyframes,C=_.defaults,O=_.scrollTrigger,E=r.parent||h,S=(L(e)||B(e)?R(e[0]):"length"in r)?[e]:se(e);if(s._targets=S.length?dt(S):J("GSAP target "+e+" not found. https://gsap.com",!x.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=T,k||w||N(v)||N(y)){var M=(r=s.vars).easeReverse||r.yoyoEase;if((o=s.timeline=new qe({data:"nested",defaults:C||{},targets:E&&"nested"===E.data?E.vars.targets:S})).kill(),o.parent=o._dp=a(s),o._start=0,w||N(v)||N(y)){if(f=S.length,g=w&&le(w),z(w))for(d in w)~Ke.indexOf(d)&&(m||(m={}),m[d]=w[d]);for(l=0;l<f;l++)(c=Mt(r,Je)).stagger=0,M&&(c.easeReverse=M),m&&Et(c,m),p=S[l],c.duration=+Ze(v,a(s),l,p,S),c.delay=(+Ze(y,a(s),l,p,S)||0)-s._delay,!w&&1===f&&c.delay&&(s._delay=y=c.delay,s._start+=y,c.delay=0),o.to(p,c,g?g(l,p,S):0),o._ease=Pe.none;o.duration()?v=y=0:s.timeline=0}else if(k){At(Ot(o.vars.defaults,{ease:"none"})),o._ease=Ie(k.ease||r.ease||"none");var A,P,D,I=0;if(L(k))k.forEach(function(t){return o.to(S,t,">")}),o.duration();else{for(d in c={},k)"ease"===d||"easeEach"===d||Qe(d,k[d],c,k.easeEach);for(d in c)for(A=c[d].sort(function(t,e){return t.t-e.t}),I=0,l=0;l<A.length;l++)(D={ease:(P=A[l]).e,duration:(P.t-(l?A[l-1].t:0))/100*v})[d]=P.v,o.to(S,D,I),I+=D.duration;o.duration()<v&&o.to({},{duration:v-o.duration()})}}v||s.duration(v=o.duration())}else s.timeline=0;return!0!==T||u||(He=a(s),h.killTweensOf(S),He=0),qt(E,a(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),(b||!v&&!k&&s._start===vt(E._time)&&F(b)&&It(a(s))&&"nested"!==E.data)&&(s._tTime=-1e-8,s.render(Math.max(0,-y)||0)),O&&Ht(a(s),O),s}l(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,s,o,a,l,u,f,h=this._time,d=this._tDur,p=this._dur,g=t<0,m=t>d-T&&!g?d:t<T?0:t;if(p){if(m!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g||this._lazy){if(n=m,f=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*o+t,e,r);if(n=vt(m%o),m===d?(s=this._repeat,n=p):(s=~~(a=vt(m/o)))&&s===a?(n=p,s--):n>p&&(n=p),(l=this._yoyo&&1&s)&&(n=p-n),a=Bt(this._tTime,o),n===h&&!r&&this._initted&&s===a)return this._tTime=m,this;s!==a&&this.vars.repeatRefresh&&!l&&!this._lock&&n!==o&&this._initted&&(this._lock=r=1,this.render(vt(o*s),!0).invalidate()._lock=0)}if(!this._initted){if(Wt(this,g?t:n,r,e,m))return this._tTime=0,this;if(!(h===this._time||r&&this.vars.repeatRefresh&&s!==a))return this;if(p!==this._dur)return this.render(t,e,r)}if(this._rEase){var _=n<h;if(_!==this._inv){var v=_?h:p-h;this._inv=_,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=h,this._invRecip=v?(_?-1:1)/v:0,this._invScale=_?-this.ratio:1-this.ratio,this._invEase=_?this._rEase:this._ease}this.ratio=u=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=u=this._ease(n/p);if(this._from&&(this.ratio=u=1-u),this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!h&&m&&!e&&!a&&(me(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(u,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&&(g&&Ft(this,t,0,r),me(this,"onUpdate")),this._repeat&&s!==a&&this.vars.onRepeat&&!e&&this.parent&&me(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(g&&!this._onUpdate&&Ft(this,t,0,!0),(t||!p)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&Dt(this,1),e||g&&!h||!(m||h||l)||(me(this,m===d?"onComplete":"onReverseComplete",!0),this._prom&&!(m<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,s,o,a=t.ratio,l=e<0||!e&&(!t._start&&Ut(t)&&(t._initted||!Vt(t))||(t._ts<0||t._dp._ts<0)&&!Vt(t))?0:1,u=t._rDelay,f=0;if(u&&t._repeat&&(f=te(0,t._tDur,e),s=Bt(f,u),t._yoyo&&1&s&&(l=1-l),s!==Bt(t._tTime,u)&&(a=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==a||c||n||t._zTime===T||!e&&t._zTime){if(!t._initted&&Wt(t,e,n,r,f))return;for(o=t._zTime,t._zTime=e||(r?T: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&&Ft(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&&Dt(t,1),r||c||(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){y||Me.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||$e(this,s),function(t,e,r,n,i,s,o,a){var l,u,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((l=c[f][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return We=1,t.vars[e]="+=0",$e(t,o),We=0,a?J(e+" not eligible for reset. Try splitting into individual properties"):1;h.push(l)}for(f=h.length;f--;)(l=(u=h[f])._pt||u).s=!n&&0!==n||i?l.s+(n||0)+s*l.c:n,l.c=r-l.s,u.e&&(u.e=_t(r)+ee(u.e)),u.b&&(u.b=l.s+ee(u.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(Xt(this,0),this.parent||Pt(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?_e(this):this.scrollTrigger&&this.scrollTrigger.kill(!!c),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,He&&!0!==He.vars.overwrite)._first||_e(this),this.parent&&r!==this.timeline.totalDuration()&&Gt(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,o,a,l,u,f=this._targets,h=t?se(t):f,d=this._ptLookup,p=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),_e(this);for(n=this._op=this._op||[],"all"!==e&&(A(e)&&(a={},mt(e,function(t){return a[t]=1}),e=a),e=function(t,e){var r,n,i,s,o=t[0]?pt(t[0]).harness:0,a=o&&o.aliases;if(!a)return e;for(n in r=Et({},e),a)if(n in r)for(i=(s=a[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(f,e)),u=f.length;u--;)if(~h.indexOf(f[u]))for(a in i=d[u],"all"===e?(n[u]=e,o=i,s={}):(s=n[u]=n[u]||{},o=e),o)(l=i&&i[a])&&("kill"in l.d&&!0!==l.d.kill(a)||Rt(this,l,"_pt"),delete i[a]),"all"!==s&&(s[a]=1);return this._initted&&!this._pt&&p&&_e(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return Kt(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 Kt(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 h.killTweensOf(t,e,r)},e}(je);Ot(tr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),mt("staggerTo,staggerFrom,staggerFromTo",function(t){tr[t]=function(){var e=new qe,r=re.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var er=function(t,e,r){return t[e]=r},rr=function(t,e,r){return t[e](r)},nr=function(t,e,r,n){return t[e](n.fp,r)},ir=function(t,e,r){return t.setAttribute(e,r)},sr=function(t,e){return P(t[e])?rr:D(t[e])&&t.setAttribute?ir:er},or=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},ar=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)},ur=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},cr=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},fr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Rt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},hr=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},pr=function(){function t(t,e,r,n,i,s,o,a,l){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||or,this.d=o||this,this.set=a||er,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=hr,this.m=t,this.mt=r,this.tween=e},t}();mt(ht+"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 st[t]=1}),$.TweenMax=$.TweenLite=tr,$.TimelineLite=$.TimelineMax=qe,h=new qe({sortChildren:!1,defaults:b,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),x.stringFilter=Se;var gr=[],mr={},_r=[],vr=0,yr=0,xr=function(t){return(mr[t]||_r).map(function(t){return t()})},br=function(){var t=Date.now(),e=[];t-vr>2&&(xr("matchMediaInit"),gr.forEach(function(t){var r,n,i,s,o=t.queries,a=t.conditions;for(n in o)(r=d.matchMedia(o[n]).matches)&&(i=1),r!==a[n]&&(a[n]=r,s=1);s&&(t.revert(),i&&e.push(t))}),xr("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),vr=t,xr("matchMedia"))},wr=function(){function t(t,e){this.selector=e&&oe(e),this.data=[],this._r=[],this.isReverted=!1,this.id=yr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){P(t)&&(r=e,e=t,t=P);var n=this,i=function(){var t,i=f,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=oe(r)),f=n,t=e.apply(n,arguments),P(t)&&n._r.push(t),f=i,n.selector=s,n.isReverted=!1,t};return n.last=i,t===P?i(n,function(t){return n.add(null,t)}):t?n[t]=i:i},e.ignore=function(t){var e=f;f=null,t(this),f=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof tr&&!(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: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 qe?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof tr)&&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}(),Tr=function(){function t(t){this.contexts=[],this.scope=t,f&&f.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){z(t)||(t={matches:t});var n,i,s,o=new wr(0,r||this.scope),a=o.conditions={};for(i in f&&!o.selector&&(o.selector=f.selector),this.contexts.push(o),e=o.add("onMatch",e),o.queries=t,t)"all"===i?s=1:(n=d.matchMedia(t[i]))&&(gr.indexOf(o)<0&&gr.push(o),(a[i]=n.matches)&&(s=1),n.addListener?n.addListener(br):n.addEventListener("change",br));return s&&e(o,function(t){return o.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}(),kr={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 ye(t)})},timeline:function(t){return new qe(t)},getTweensOf:function(t,e){return h.getTweensOf(t,e)},getProperty:function(t,e,r,n){A(t)&&(t=se(t)[0]);var i=pt(t||{}).get,s=r?Ct:kt;return"native"===r&&(r=""),t?e?s((lt[e]&&lt[e].get||i)(t,e,r,n)):function(e,r,n){return s((lt[e]&&lt[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=se(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=lt[e],o=pt(t),a=o.harness&&(o.harness.aliases||{})[e]||e,l=s?function(e){var n=new s;v._pt=0,n.init(t,r?e+r:e,v,0,[t]),n.render(1,n),v._pt&&ur(1,v)}:o.set(t,a);return s?l:function(e){return l(t,a,r?e+r:e,o,1)}},quickTo:function(t,e,r){var n,i=Er.to(t,Ot(((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 h.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ie(t.ease,b.ease)),St(b,t||{})},config:function(t){return St(x,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&&!lt[t]&&!$[t]&&J(e+" effect requires "+t+" plugin.")}),ut[e]=function(t,e,n){return r(se(t),Ot(e||{},i),n)},s&&(qe.prototype[e]=function(t,r,n){return this.add(ut[e](t,z(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Pe[t]=Ie(e)},parseEase:function(t,e){return arguments.length?Ie(t,e):Pe},getById:function(t){return h.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new qe(t);for(i.smoothChildTiming=F(t.smoothChildTiming),h.remove(i),i._dp=0,i._time=i._tTime=h._time,r=h._first;r;)n=r._next,!e&&!r._dur&&r instanceof tr&&r.vars.onComplete===r._targets[0]||qt(i,r,r._start-r._delay),r=n;return qt(h,i,0),i},context:function(t,e){return t?new wr(t,e):f},matchMedia:function(t){return new Tr(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()})||br()},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 L(e)?he(e,t(0,e.length),r):Jt(n,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return L(e)?he(e,t(0,e.length-1),r):Jt(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:le,random:fe,snap:ce,normalize:function(t,e,r){return pe(t,e,0,1,r)},getUnit:ee,clamp:function(t,e,r){return Jt(r,function(r){return te(t,e,r)})},splitColor:Te,toArray:se,selector:oe,mapRange:pe,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||ee(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 o,a,l,u,c,f=A(e),h={};if(!0===n&&(i=1)&&(n=null),f)e={p:e},r={p:r};else if(L(e)&&!L(r)){for(l=[],u=e.length,c=u-2,a=1;a<u;a++)l.push(t(e[a-1],e[a]));u--,s=function(t){t*=u;var e=Math.min(c,~~t);return l[e](t-e)},n=r}else i||(e=Et(L(e)?[]:{},e));if(!l){for(o in r)Ve.call(h,e,o,"get",r[o]);s=function(t){return ur(t,h)||(f?e.p:e)}}}return Jt(n,s)},shuffle:ae},install:Z,effects:ut,ticker:Me,updateRoot:qe.updateRoot,plugins:lt,globalTimeline:h,core:{PropTween:pr,globals:tt,Tween:tr,Timeline:qe,Animation:je,getCache:pt,_removeLinkedListItem:Rt,reverting:function(){return c},context:function(t){return t&&f&&(f.data.push(t),t._ctx=f),f},suppressOverwrites:function(t){return u=t}}};mt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return kr[t]=tr[t]}),Me.add(qe.updateRoot),v=kr.to({},{duration:0});var Cr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Or=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(A(r)&&(n={},mt(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=Cr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Er=kr.registerPlugin({name:"attr",init:function(t,e,r,n,i){var s,o,a;for(s in this.tween=r,e)a=t.getAttribute(s)||"",(o=this.add(t,"setAttribute",(a||0)+"",e[s],n,i,0,0,s)).op=s,o.b=a,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)c?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)}},Or("roundProps",ue),Or("modifiers"),Or("snap",ce))||kr;tr.version=qe.version=Er.version="3.15.0",m=1,I()&&Ae(),Pe.Power0,Pe.Power1,Pe.Power2,Pe.Power3,Pe.Power4,Pe.Linear,Pe.Quad,Pe.Cubic,Pe.Quart,Pe.Quint,Pe.Strong,Pe.Elastic,Pe.Back,Pe.SteppedEase,Pe.Bounce,Pe.Sine,Pe.Expo,Pe.Circ;
9
+ */var d,p,g,m,_,v,y,x,b,w,T,O,k,C,E,S,M,A={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},P={duration:.5,overwrite:!1,delay:0},R=1e8,D=1e-8,z=2*Math.PI,F=z/4,I=0,N=Math.sqrt,B=Math.cos,L=Math.sin,Y=function(t){return"string"==typeof t},j=function(t){return"function"==typeof t},X=function(t){return"number"==typeof t},q=function(t){return void 0===t},W=function(t){return"object"==typeof t},H=function(t){return!1!==t},U=function(){return"undefined"!=typeof window},V=function(t){return j(t)||Y(t)},G="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},$=Array.isArray,Z=/random\([^)]+\)/g,Q=/,\s*/g,K=/(?:-?\.?\d|\.)+/gi,J=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,tt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,et=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,rt=/[+-]=-?[.\d]+/,nt=/[^,'"\[\]\s]+/gi,it=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,st={},at={},ot=function(t){return(at=Nt(t,st))&&Nr},lt=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},ut=function(t,e){return!e&&console.warn(t)},ct=function(t,e){return t&&(st[t]=e)&&at&&(at[t]=e)||st},ft=function(){return 0},ht={suppressEvents:!0,isStart:!0,kill:!1},dt={suppressEvents:!0,kill:!1},pt={suppressEvents:!0},gt={},mt=[],_t={},vt={},yt={},xt=30,bt=[],wt="",Tt=function(t){var e,r,n=t[0];if(W(n)||j(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=bt.length;r--&&!bt[r].targetTest(n););e=bt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Qe(t[r],e)))||t.splice(r,1);return t},Ot=function(t){return t._gsap||Tt(ge(t))[0]._gsap},kt=function(t,e,r){return(r=t[e])&&j(r)?t[e]():q(r)&&t.getAttribute&&t.getAttribute(e)||r},Ct=function(t,e){return(t=t.split(",")).forEach(e)||t},Et=function(t){return Math.round(1e5*t)/1e5||0},St=function(t){return Math.round(1e7*t)/1e7||0},Mt=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},At=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},Pt=function(){var t,e,r=mt.length,n=mt.slice(0);for(_t={},mt.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Rt=function(t){return!!(t._initted||t._startAt||t.add)},Dt=function(t,e,r,n){mt.length&&!p&&Pt(),t.render(e,r,n||!!(p&&e<0&&Rt(t))),mt.length&&!p&&Pt()},zt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(nt).length<2?e:Y(t)?t.trim():t},Ft=function(t){return t},It=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Nt=function(t,e){for(var r in e)t[r]=e[r];return t},Bt=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=W(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Lt=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},Yt=function(t){var e,r=t.parent||m,n=t.keyframes?(e=$(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):It;if(H(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},jt=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},Xt=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},qt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Wt=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},Ht=function(t,e,r,n){return t._startAt&&(p?t._startAt.revert(dt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},Ut=function t(e){return!e||e._ts&&t(e.parent)},Vt=function(t){return t._repeat?Gt(t._tTime,t=t.duration()+t._rDelay)*t:0},Gt=function(t,e){var r=Math.floor(t=St(t/e));return t&&r===t?r-1:r},$t=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Zt=function(t){return t._end=St(t._start+(t._tDur/Math.abs(t._ts||t._rts||D)||0))},Qt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=St(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Zt(t),r._dirty||Wt(r,t)),t},Kt=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=$t(t.rawTime(),e),(!e._dur||ce(0,e.totalDuration(),r)-e._tTime>D)&&e.render(r,!0)),Wt(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}},Jt=function(t,e,r,n){return e.parent&&qt(e),e._start=St((X(r)?r:r||t!==m?oe(t,r,e):t._time)+e._delay),e._end=St(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),jt(t,e,"_first","_last",t._sort?"_start":0),ne(e)||(t._recent=e),n||Kt(t,e),t._ts<0&&Qt(t,t._tTime),t},te=function(t,e){return(st.ScrollTrigger||lt("scrollTrigger",e))&&st.ScrollTrigger.create(e,t)},ee=function(t,e,r,n,i){return sr(t,e,i),t._initted?!r&&t._pt&&!p&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&b!==Le.frame?(mt.push(t),t._lazy=[i,n],1):void 0:1},re=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},ne=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ie=function(t,e,r,n){var i=t._repeat,s=St(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:St(s*(i+1)+t._rDelay*i):s,a>0&&!n&&Qt(t,t._tTime=t._tDur*a),t.parent&&Zt(t),r||Wt(t.parent,t),t},se=function(t){return t instanceof Je?Wt(t):ie(t,t._dur)},ae={_start:0,endTime:ft,totalDuration:ft},oe=function t(e,r,n){var i,s,a,o=e.labels,l=e._recent||ae,u=e.duration()>=R?l.endTime(!1):e._dur;return Y(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?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(i<0?l:n).totalDuration()/100:1)):i<0?(r in o||(o[r]=u),o[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),a&&n&&(s=s/100*($(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:u+s)):null==r?u:+r},le=function(t,e,r){var n,i,s=X(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=H(i.vars.inherit)&&i.parent;o.immediateRender=H(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new cr(e[0],o,e[a+1])},ue=function(t,e){return t||0===t?e(t):e},ce=function(t,e,r){return r<t?t:r>e?e:r},fe=function(t,e){return Y(t)&&(e=it.exec(t))?e[1]:""},he=[].slice,de=function(t,e){return t&&W(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&W(t[0]))&&!t.nodeType&&t!==_},pe=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return Y(t)&&!e||de(t,1)?(n=r).push.apply(n,ge(t)):r.push(t)})||r},ge=function(t,e,r){return g&&!e&&g.selector?g.selector(t):!Y(t)||r||!v&&Ye()?$(t)?pe(t,r):de(t)?he.call(t,0):t?[t]:[]:he.call((e||y).querySelectorAll(t),0)},me=function(t){return t=ge(t)[0]||ut("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return ge(e,r.querySelectorAll?r:r===t?ut("Invalid scope")||y.createElement("div"):t)}},_e=function(t){return t.sort(function(){return.5-Math.random()})},ve=function(t){if(j(t))return t;var e=W(t)?t:{each:t},r=Ue(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},a=n>0&&n<1,o=isNaN(n)||a,l=e.axis,u=n,c=n;return Y(n)?u=c={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(u=n[0],c=n[1]),function(t,a,f){var h,d,p,g,m,_,v,y,x,b=(f||e).length,w=s[b];if(!w){if(!(x="auto"===e.grid?0:(e.grid||[1,R])[1])){for(v=-1e8;v<(v=f[x++].getBoundingClientRect().left)&&x<b;);x<b&&x--}for(w=s[b]=[],h=o?Math.min(x,b)*u-.5:n%x,d=x===R?0:o?b*c/x-.5:n/x|0,v=0,y=R,_=0;_<b;_++)p=_%x-h,g=d-(_/x|0),w[_]=m=l?Math.abs("y"===l?g:p):N(p*p+g*g),m>v&&(v=m),m<y&&(y=m);"random"===n&&_e(w),w.max=v-y,w.min=y,w.v=b=(parseFloat(e.amount)||parseFloat(e.each)*(x>b?b-1:l?"y"===l?b/x:x:Math.max(x,b/x))||0)*("edges"===n?-1:1),w.b=b<0?i-b:i,w.u=fe(e.amount||e.each)||0,r=r&&b<0?He(r):r}return b=(w[t]-w.min)/w.max||0,St(w.b+(r?r(b):b)*w.v)+w.u}},ye=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=St(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(X(r)?0:fe(r))}},xe=function(t,e){var r,n,i=$(t);return!i&&W(t)&&(r=i=t.radius||R,t.values?(t=ge(t.values),(n=!X(t[0]))&&(r*=r)):t=ye(t.increment)),ue(e,i?j(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),l=R,u=0,c=t.length;c--;)(i=n?(i=t[c].x-a)*i+(s=t[c].y-o)*s:Math.abs(t[c]-a))<l&&(l=i,u=c);return u=!r||l<=r?t[u]:e,n||u===e||X(e)?u:u+fe(e)}:ye(t))},be=function(t,e,r,n){return ue($(t)?!e:!0===r?!!(r=0):!n,function(){return $(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})},we=function(t,e,r){return ue(r,function(r){return t[~~e(r)]})},Te=function(t){return t.replace(Z,function(t){var e=t.indexOf("[")+1,r=t.substring(e||7,e?t.indexOf("]"):t.length-1).split(Q);return be(e?r:+r[0],e?0:+r[1],+r[2]||1e-5)})},Oe=function(t,e,r,n,i){var s=e-t,a=n-r;return ue(i,function(e){return r+((e-t)/s*a||0)})},ke=function(t,e,r){var n,i,s,a=t.labels,o=R;for(n in a)(i=a[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(s=n,o=i);return s},Ce=function(t,e,r){var n,i,s,a=t.vars,o=a[e],l=g,u=t._ctx;if(o)return n=a[e+"Params"],i=a.callbackScope||t,r&&mt.length&&Pt(),u&&(g=u),s=n?o.apply(i,n):o.call(i),g=l,s},Ee=function(t){return qt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!p),t.progress()<1&&Ce(t,"onInterrupt"),t},Se=[],Me=function(t){if(t)if(t=!t.name&&t.default||t,U()||t.headless){var e=t.name,r=j(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:ft,render:yr,add:nr,kill:br,modifier:xr,rawVars:0},s={targetTest:0,get:0,getSetter:gr,aliases:{},register:0};if(Ye(),t!==n){if(vt[e])return;It(n,It(Lt(t,i),s)),Nt(n.prototype,Nt(i,Lt(t,s))),vt[n.prop=e]=n,t.targetTest&&(bt.push(n),gt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}ct(e,n),t.register&&t.register(Nr,n,Or)}else Se.push(t)},Ae=255,Pe={aqua:[0,Ae,Ae],lime:[0,Ae,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ae],navy:[0,0,128],white:[Ae,Ae,Ae],olive:[128,128,0],yellow:[Ae,Ae,0],orange:[Ae,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ae,0,0],pink:[Ae,192,203],cyan:[0,Ae,Ae],transparent:[Ae,Ae,Ae,0]},Re=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)*Ae+.5|0},De=function(t,e,r){var n,i,s,a,o,l,u,c,f,h,d=t?X(t)?[t>>16,t>>8&Ae,t&Ae]:0:Pe.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Pe[t])d=Pe[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[(d=parseInt(t.substr(1,6),16))>>16,d>>8&Ae,d&Ae,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&Ae,t&Ae]}else if("hsl"===t.substr(0,3))if(d=h=t.match(K),e){if(~t.indexOf("="))return d=t.match(J),r&&d.length<4&&(d[3]=1),d}else a=+d[0]%360/360,o=+d[1]/100,n=2*(l=+d[2]/100)-(i=l<=.5?l*(o+1):l+o-l*o),d.length>3&&(d[3]*=1),d[0]=Re(a+1/3,n,i),d[1]=Re(a,n,i),d[2]=Re(a-1/3,n,i);else d=t.match(K)||Pe.transparent;d=d.map(Number)}return e&&!h&&(n=d[0]/Ae,i=d[1]/Ae,s=d[2]/Ae,l=((u=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,u===c?a=o=0:(f=u-c,o=l>.5?f/(2-u-c):f/(u+c),a=u===n?(i-s)/f+(i<s?6:0):u===i?(s-n)/f+2:(n-i)/f+4,a*=60),d[0]=~~(a+.5),d[1]=~~(100*o+.5),d[2]=~~(100*l+.5)),r&&d.length<4&&(d[3]=1),d},ze=function(t){var e=[],r=[],n=-1;return t.split(Ie).forEach(function(t){var i=t.match(tt)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},Fe=function(t,e,r){var n,i,s,a,o="",l=(t+o).match(Ie),u=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map(function(t){return(t=De(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=ze(t),(n=r.c).join(o)!==s.c.join(o)))for(a=(i=t.replace(Ie,"1").split(tt)).length-1;c<a;c++)o+=i[c]+(~n.indexOf(c)?l.shift()||u+"0,0,0,0)":(s.length?s:l.length?l:r).shift());if(!i)for(a=(i=t.split(Ie)).length-1;c<a;c++)o+=i[c]+l[c];return o+i[a]},Ie=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Pe)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ne=/hsl[a]?\(/,Be=function(t){var e,r=t.join(" ");if(Ie.lastIndex=0,Ie.test(r))return e=Ne.test(r),t[1]=Fe(t[1],e),t[0]=Fe(t[0],e,ze(t[1])),!0},Le=function(){var t,e,r,n,i,s,a=Date.now,o=500,l=33,u=a(),c=u,f=1e3/240,h=f,d=[],p=function r(p){var g,m,_,v,y=a()-c,x=!0===p;if((y>o||y<0)&&(u+=y-l),((g=(_=(c+=y)-u)-h)>0||x)&&(v=++n.frame,i=_-1e3*n.time,n.time=_/=1e3,h+=g+(g>=f?4:f-g),m=1),x||(t=e(r)),m)for(s=0;s<d.length;s++)d[s](_,i,v,p)};return n={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){x&&(!v&&U()&&(_=v=window,y=_.document||{},st.gsap=Nr,(_.gsapVersions||(_.gsapVersions=[])).push(Nr.version),ot(at||_.GreenSockGlobals||!_.gsap&&_||{}),Se.forEach(Me)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,h-1e3*n.time+1|0)},T=1,p(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),T=0,e=ft},lagSmoothing:function(t,e){o=t||1/0,l=Math.min(e||33,o)},fps:function(t){f=1e3/(t||240),h=1e3*n.time+f},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),d[r?"unshift":"push"](i),Ye(),i},remove:function(t,e){~(e=d.indexOf(t))&&d.splice(e,1)&&s>=e&&s--},_listeners:d}}(),Ye=function(){return!T&&Le.wake()},je={},Xe=/^[\d.\-M][\d.\-,\s]/,qe=/["']/g,We=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,l=s.length;o<l;o++)r=s[o],e=o!==l-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[a]=isNaN(n)?n.replace(qe,"").trim():+n,a=r.substr(e+1).trim();return i},He=function(t){return function(e){return 1-t(1-e)}},Ue=function(t,e){return t&&(j(t)?t:je[t]||function(t){var e,r,n,i,s=(t+"").split("("),a=je[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[We(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(zt)):je._CE&&Xe.test(t)?je._CE("",t):a}(t))||e},Ve=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 Ct(t,function(t){for(var e in je[t]=st[t]=s,je[i=t.toLowerCase()]=r,s)je[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=je[t+"."+e]=s[e]}),s},Ge=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},$e=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),a=s/z*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*L((t-a)*s)+1},l="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Ge(o);return s=z/s,l.config=function(r,n){return t(e,r,n)},l},Ze=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)}:Ge(n);return i.config=function(r){return t(e,r)},i};Ct("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Ve(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})}),je.Linear.easeNone=je.none=je.Linear.easeIn,Ve("Elastic",$e("in"),$e("out"),$e()),O=7.5625,E=2*(C=1/(k=2.75)),S=2.5*C,Ve("Bounce",function(t){return 1-M(1-t)},M=function(t){return t<C?O*t*t:t<E?O*Math.pow(t-1.5/k,2)+.75:t<S?O*(t-=2.25/k)*t+.9375:O*Math.pow(t-2.625/k,2)+.984375}),Ve("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Ve("Circ",function(t){return-(N(1-t*t)-1)}),Ve("Sine",function(t){return 1===t?1:1-B(t*F)}),Ve("Back",Ze("in"),Ze("out"),Ze()),je.SteppedEase=je.steps=st.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*ce(0,.99999999,t)|0)+i)*r}}},P.ease=je["quad.out"],Ct("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return wt+=t+","+t+"Params,"});var Qe=function(t,e){this.id=I++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:kt,this.set=e?e.getSetter:gr},Ke=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,ie(this,+t.duration,1,1),this.data=t.data,g&&(this._ctx=g,g.data.push(this)),T||Le.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,ie(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ye(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Qt(this,t),!r._dp||r.parent||Kt(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)&&Jt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===D||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Dt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Vt(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)+Vt(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?Gt(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?$t(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ce(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),Zt(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):(Ye(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==D&&(this._tTime-=D)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=St(t);var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Jt(e,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(H(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?$t(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=pt);var e=p;return p=t,Rt(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),p=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,se(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,se(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(oe(this,t),H(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,H(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)-D))},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=j(t)?t:Ft,s=function(){var t=e.then;e.then=null,r&&r(),j(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(){Ee(this)},t}();It(Ke.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 Je=function(t){function e(e,r){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=H(e.sortChildren),m&&Jt(e.parent||m,f(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&te(f(n),e.scrollTrigger),n}h(e,t);var r=e.prototype;return r.to=function(t,e,r){return le(0,arguments,this),this},r.from=function(t,e,r){return le(1,arguments,this),this},r.fromTo=function(t,e,r,n){return le(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,Yt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new cr(t,e,oe(this,r),1),this},r.call=function(t,e,r){return Jt(this,cr.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 cr(t,r,oe(this,i)),this},r.staggerFrom=function(t,e,r,n,i,s,a){return r.runBackwards=1,Yt(r).immediateRender=H(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,Yt(n).immediateRender=H(n.immediateRender),this.staggerTo(t,e,n,i,s,a,o)},r.render=function(t,e,r){var n,i,s,a,o,l,u,c,f,h,d,g,_=this._time,v=this._dirty?this.totalDuration():this._tDur,y=this._dur,x=t<=0?0:St(t),b=this._zTime<0!=t<0&&(this._initted||!y);if(this!==m&&x>v&&t>=0&&(x=v),x!==this._tTime||r||b){if(_!==this._time&&y&&(x+=this._time-_,t+=this._time-_),n=x,f=this._start,l=!(c=this._ts),b&&(y||(_=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,o=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(n=St(x%o),x===v?(a=this._repeat,n=y):((a=~~(h=St(x/o)))&&a===h&&(n=y,a--),n>y&&(n=y)),h=Gt(this._tTime,o),!_&&this._tTime&&h!==a&&this._tTime-h*o-this._dur<=0&&(h=a),d&&1&a&&(n=y-n,g=1),a!==h&&!this._lock){var w=d&&1&h,T=w===(d&&1&a);if(a<h&&(w=!w),_=w?0:x%y?y:x,this._lock=1,this.render(_||(g?0:St(a*o)),e,!y)._lock=0,this._tTime=x,!e&&this.parent&&Ce(this,"onRepeat"),this.vars.repeatRefresh&&!g&&(this.invalidate()._lock=1,h=a),_&&_!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,v=this._tDur,T&&(this._lock=2,_=w?y:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!g&&this.invalidate()),this._lock=0,!this._ts&&!l)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=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,St(_),St(n)),u&&(x-=n-(n=u._start))),this._tTime=x,this._time=n,this._act=!!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,_=0),!_&&x&&y&&!e&&!h&&(Ce(this,"onStart"),this._tTime!==x))return this;if(n>=_&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||n>=i._start)&&i._ts&&u!==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&&!l){u=0,s&&(x+=this._zTime=-1e-8);break}}i=s}else{i=this._last;for(var O=t<0?t:n;i;){if(s=i._prev,(i._act||O<=i._end)&&i._ts&&u!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(O-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(O-i._start)*i._ts,e,r||p&&Rt(i)),n!==this._time||!this._ts&&!l){u=0,s&&(x+=this._zTime=O?-1e-8:D);break}}i=s}}if(u&&!e&&(this.pause(),u.render(n>=_?0:-1e-8)._zTime=n>=_?1:-1,this._ts))return this._start=f,Zt(this),this.render(t,e,r);this._onUpdate&&!e&&Ce(this,"onUpdate",!0),(x===v&&this._tTime>=this.totalDuration()||!x&&_)&&(f!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!y)&&(x===v&&this._ts>0||!x&&this._ts<0)&&qt(this,1),e||t<0&&!_||!x&&!_&&v||(Ce(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(X(e)||(e=oe(this,e,t)),!(t instanceof Ke)){if($(t))return t.forEach(function(t){return r.add(t,e)}),this;if(Y(t))return this.addLabel(t,e);if(!j(t))return this;t=cr.delayedCall(0,t)}return this!==t?Jt(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=-1e8);for(var i=[],s=this._first;s;)s._start>=n&&(s instanceof cr?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 Y(t)?this.removeLabel(t):j(t)?this.killTweensOf(t):(t.parent===this&&Xt(this,t),t===this._recent&&(this._recent=this._last),Wt(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=St(Le.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]=oe(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=cr.delayedCall(0,e||ft,r);return n.data="isPause",this._hasPause=1,Jt(this,n,oe(this,t))},r.removePause=function(t){var e=this._first;for(t=oe(this,t);e;)e._start===t&&"isPause"===e.data&&qt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)tr!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=ge(t),s=this._first,a=X(e);s;)s instanceof cr?At(s._targets,i)&&(a?(!tr||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=oe(n,t),s=e,a=s.startAt,o=s.onStart,l=s.onStartParams,u=s.immediateRender,c=cr.to(n,It({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())||D,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&&ie(c,t,0,1).render(c._time,!0,!0),r=1}o&&o.apply(c,l||[])}},e));return u?c.render(0):c},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,It({startAt:{time:oe(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),ke(this,oe(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),ke(this,oe(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+D)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);var n,i=this._first,s=this.labels;for(t=St(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 Wt(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={}),Wt(this)},r.totalDuration=function(t){var e,r,n,i=0,s=this,a=s._last,o=R;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,Jt(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=St(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;ie(s,s===m&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(m._ts&&(Dt(m,$t(t,m)),b=Le.frame),Le.frame>=xt){xt+=A.autoSleep||120;var e=m._first;if((!e||!e._ts)&&A.autoSleep&&Le._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Le.sleep()}}},e}(Ke);It(Je.prototype,{_lock:0,_hasPause:0,_forcing:0});var tr,er,rr=function(t,e,r,n,i,s,a){var o,l,u,c,f,h,d,p,g=new Or(this._pt,t,e,0,1,vr,null,i),m=0,_=0;for(g.b=r,g.e=n,r+="",(d=~(n+="").indexOf("random("))&&(n=Te(n)),s&&(s(p=[r,n],t,e),r=p[0],n=p[1]),l=r.match(et)||[];o=et.exec(n);)c=o[0],f=n.substring(m,o.index),u?u=(u+1)%5:"rgba("===f.substr(-5)&&(u=1),c!==l[_++]&&(h=parseFloat(l[_-1])||0,g._pt={_next:g._pt,p:f||1===_?f:",",s:h,c:"="===c.charAt(1)?Mt(h,c)-h:parseFloat(c)-h,m:u&&u<4?Math.round:0},m=et.lastIndex);return g.c=m<n.length?n.substring(m,n.length):"",g.fp=a,(rt.test(n)||d)&&(g.e=0),this._pt=g,g},nr=function(t,e,r,n,i,s,a,o,l,u){j(n)&&(n=n(i||0,t,s));var c,f=t[e],h="get"!==r?r:j(f)?l?t[e.indexOf("set")||!j(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():f,d=j(f)?l?dr:hr:fr;if(Y(n)&&(~n.indexOf("random(")&&(n=Te(n)),"="===n.charAt(1)&&((c=Mt(h,n)+(fe(h)||0))||0===c)&&(n=c)),!u||h!==n||er)return isNaN(h*n)||""===n?(!f&&!(e in t)&&lt(e,n),rr.call(this,t,e,h,n,d,o||A.stringFilter,l)):(c=new Or(this._pt,t,e,+h||0,n-(h||0),"boolean"==typeof f?_r:mr,0,d),l&&(c.fp=l),a&&c.modifier(a,this,t),this._pt=c)},ir=function(t,e,r,n,i,s){var a,o,l,u;if(vt[t]&&!1!==(a=new vt[t]).init(i,a.rawVars?e[t]:function(t,e,r,n,i){if(j(t)&&(t=or(t,i,e,r,n)),!W(t)||t.style&&t.nodeType||$(t)||G(t))return Y(t)?or(t,i,e,r,n):t;var s,a={};for(s in t)a[s]=or(t[s],i,e,r,n);return a}(e[t],n,i,s,r),r,n,s)&&(r._pt=o=new Or(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==w))for(l=r._ptLookup[r._targets.indexOf(i)],u=a._props.length;u--;)l[a._props[u]]=o;return a},sr=function t(e,r,n){var i,s,a,o,l,u,c,f,h,g,_,v,y,x=e.vars,b=x.ease,w=x.startAt,T=x.immediateRender,O=x.lazy,k=x.onUpdate,C=x.runBackwards,E=x.yoyoEase,S=x.keyframes,M=x.autoRevert,A=e._dur,z=e._startAt,F=e._targets,I=e.parent,N=I&&"nested"===I.data?I.vars.targets:F,B="auto"===e._overwrite&&!d,L=e.timeline,Y=x.easeReverse||E;if(L&&(!S||!b)&&(b="none"),e._ease=Ue(b,P.ease),e._rEase=Y&&(Ue(Y)||e._ease),e._from=!L&&!!x.runBackwards,e._from&&(e.ratio=1),!L||S&&!x.stagger){if(v=(f=F[0]?Ot(F[0]).harness:0)&&x[f.prop],i=Lt(x,gt),z&&(z._zTime<0&&z.progress(1),r<0&&C&&T&&!M?z.render(-1,!0):z.revert(C&&A?dt:ht),z._lazy=0),w){if(qt(e._startAt=cr.set(F,It({data:"isStart",overwrite:!1,parent:I,immediateRender:!0,lazy:!z&&H(O),startAt:null,delay:0,onUpdate:k&&function(){return Ce(e,"onUpdate")},stagger:0},w))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(p||!T&&!M)&&e._startAt.revert(dt),T&&A&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(C&&A&&!z)if(r&&(T=!1),a=It({overwrite:!1,data:"isFromStart",lazy:T&&!z&&H(O),immediateRender:T,stagger:0,parent:I},i),v&&(a[f.prop]=v),qt(e._startAt=cr.set(F,a)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(p?e._startAt.revert(dt):e._startAt.render(-1,!0)),e._zTime=r,T){if(!r)return}else t(e._startAt,D,D);for(e._pt=e._ptCache=0,O=A&&H(O)||O&&!A,s=0;s<F.length;s++){if(c=(l=F[s])._gsap||Tt(F)[s]._gsap,e._ptLookup[s]=g={},_t[c.id]&&mt.length&&Pt(),_=N===F?s:N.indexOf(l),f&&!1!==(h=new f).init(l,v||i,e,_,N)&&(e._pt=o=new Or(e._pt,l,h.name,0,1,h.render,h,0,h.priority),h._props.forEach(function(t){g[t]=o}),h.priority&&(u=1)),!f||v)for(a in i)vt[a]&&(h=ir(a,i,e,_,l,N))?h.priority&&(u=1):g[a]=o=nr.call(e,l,a,"get",i[a],_,N,0,x.stringFilter);e._op&&e._op[s]&&e.kill(l,e._op[s]),B&&e._pt&&(tr=e,m.killTweensOf(l,g,e.globalTime(r)),y=!e.parent,tr=0),e._pt&&O&&(_t[c.id]=1)}u&&Tr(e),e._onInit&&e._onInit(e)}e._onUpdate=k,e._initted=(!e._op||e._pt)&&!y,S&&r<=0&&L.render(R,!0,!0)},ar=function(t,e,r,n){var i,s,a=e.ease||n||"power1.inOut";if($(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})},or=function(t,e,r,n,i){return j(t)?t.call(e,r,n,i):Y(t)&&~t.indexOf("random(")?Te(t):t},lr=wt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",ur={};Ct(lr+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return ur[t]=1});var cr=function(t){function e(e,r,n,i){var s;"number"==typeof r&&(n.duration=r,r=n,n=null);var a,o,l,u,c,h,p,g,_=(s=t.call(this,i?r:Yt(r))||this).vars,v=_.duration,y=_.delay,x=_.immediateRender,b=_.stagger,w=_.overwrite,T=_.keyframes,O=_.defaults,k=_.scrollTrigger,C=r.parent||m,E=($(e)||G(e)?X(e[0]):"length"in r)?[e]:ge(e);if(s._targets=E.length?Tt(E):ut("GSAP target "+e+" not found. https://gsap.com",!A.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=w,T||b||V(v)||V(y)){var S=(r=s.vars).easeReverse||r.yoyoEase;if((a=s.timeline=new Je({data:"nested",defaults:O||{},targets:C&&"nested"===C.data?C.vars.targets:E})).kill(),a.parent=a._dp=f(s),a._start=0,b||V(v)||V(y)){if(u=E.length,p=b&&ve(b),W(b))for(c in b)~lr.indexOf(c)&&(g||(g={}),g[c]=b[c]);for(o=0;o<u;o++)(l=Lt(r,ur)).stagger=0,S&&(l.easeReverse=S),g&&Nt(l,g),h=E[o],l.duration=+or(v,f(s),o,h,E),l.delay=(+or(y,f(s),o,h,E)||0)-s._delay,!b&&1===u&&l.delay&&(s._delay=y=l.delay,s._start+=y,l.delay=0),a.to(h,l,p?p(o,h,E):0),a._ease=je.none;a.duration()?v=y=0:s.timeline=0}else if(T){Yt(It(a.vars.defaults,{ease:"none"})),a._ease=Ue(T.ease||r.ease||"none");var M,P,R,D=0;if($(T))T.forEach(function(t){return a.to(E,t,">")}),a.duration();else{for(c in l={},T)"ease"===c||"easeEach"===c||ar(c,T[c],l,T.easeEach);for(c in l)for(M=l[c].sort(function(t,e){return t.t-e.t}),D=0,o=0;o<M.length;o++)(R={ease:(P=M[o]).e,duration:(P.t-(o?M[o-1].t:0))/100*v})[c]=P.v,a.to(E,R,D),D+=R.duration;a.duration()<v&&a.to({},{duration:v-a.duration()})}}v||s.duration(v=a.duration())}else s.timeline=0;return!0!==w||d||(tr=f(s),m.killTweensOf(E),tr=0),Jt(C,f(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),(x||!v&&!T&&s._start===St(C._time)&&H(x)&&Ut(f(s))&&"nested"!==C.data)&&(s._tTime=-1e-8,s.render(Math.max(0,-y)||0)),k&&te(f(s),k),s}h(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,s,a,o,l,u,c,f=this._time,h=this._tDur,d=this._dur,g=t<0,m=t>h-D&&!g?h:t<D?0:t;if(d){if(m!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g||this._lazy){if(n=m,c=this.timeline,this._repeat){if(a=d+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*a+t,e,r);if(n=St(m%a),m===h?(s=this._repeat,n=d):(s=~~(o=St(m/a)))&&s===o?(n=d,s--):n>d&&(n=d),(l=this._yoyo&&1&s)&&(n=d-n),o=Gt(this._tTime,a),n===f&&!r&&this._initted&&s===o)return this._tTime=m,this;s!==o&&this.vars.repeatRefresh&&!l&&!this._lock&&n!==a&&this._initted&&(this._lock=r=1,this.render(St(a*s),!0).invalidate()._lock=0)}if(!this._initted){if(ee(this,g?t:n,r,e,m))return this._tTime=0,this;if(!(f===this._time||r&&this.vars.repeatRefresh&&s!==o))return this;if(d!==this._dur)return this.render(t,e,r)}if(this._rEase){var _=n<f;if(_!==this._inv){var v=_?f:d-f;this._inv=_,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=f,this._invRecip=v?(_?-1:1)/v:0,this._invScale=_?-this.ratio:1-this.ratio,this._invEase=_?this._rEase:this._ease}this.ratio=u=this._invRatio+this._invScale*this._invEase((n-this._invTime)*this._invRecip)}else this.ratio=u=this._ease(n/d);if(this._from&&(this.ratio=u=1-u),this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!f&&m&&!e&&!o&&(Ce(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(u,i.d),i=i._next;c&&c.render(t<0?t:c._dur*c._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(g&&Ht(this,t,0,r),Ce(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&Ce(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(g&&!this._onUpdate&&Ht(this,t,0,!0),(t||!d)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&qt(this,1),e||g&&!f||!(m||f||l)||(Ce(this,m===h?"onComplete":"onReverseComplete",!0),this._prom&&!(m<h&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,s,a,o=t.ratio,l=e<0||!e&&(!t._start&&re(t)&&(t._initted||!ne(t))||(t._ts<0||t._dp._ts<0)&&!ne(t))?0:1,u=t._rDelay,c=0;if(u&&t._repeat&&(c=ce(0,t._tDur,e),s=Gt(c,u),t._yoyo&&1&s&&(l=1-l),s!==Gt(t._tTime,u)&&(o=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==o||p||n||t._zTime===D||!e&&t._zTime){if(!t._initted&&ee(t,e,n,r,c))return;for(a=t._zTime,t._zTime=e||(r?D:0),r||(r=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=c,i=t._pt;i;)i.r(l,i.d),i=i._next;e<0&&Ht(t,e,0,!0),t._onUpdate&&!r&&Ce(t,"onUpdate"),c&&t._repeat&&!r&&t.parent&&Ce(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&qt(t,1),r||p||(Ce(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){T||Le.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||sr(this,s),function(t,e,r,n,i,s,a,o){var l,u,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((l=c[f][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return er=1,t.vars[e]="+=0",sr(t,a),er=0,o?ut(e+" not eligible for reset. Try splitting into individual properties"):1;h.push(l)}for(f=h.length;f--;)(l=(u=h[f])._pt||u).s=!n&&0!==n||i?l.s+(n||0)+s*l.c:n,l.c=r-l.s,u.e&&(u.e=Et(r)+fe(u.e)),u.b&&(u.b=l.s+fe(u.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||jt(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?Ee(this):this.scrollTrigger&&this.scrollTrigger.kill(!!p),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,tr&&!0!==tr.vars.overwrite)._first||Ee(this),this.parent&&r!==this.timeline.totalDuration()&&ie(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,a,o,l,u,c=this._targets,f=t?ge(t):c,h=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}(c,f))return"all"===e&&(this._pt=0),Ee(this);for(n=this._op=this._op||[],"all"!==e&&(Y(e)&&(o={},Ct(e,function(t){return o[t]=1}),e=o),e=function(t,e){var r,n,i,s,a=t[0]?Ot(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in r=Nt({},e),o)if(n in r)for(i=(s=o[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(c,e)),u=c.length;u--;)if(~f.indexOf(c[u]))for(o in i=h[u],"all"===e?(n[u]=e,a=i,s={}):(s=n[u]=n[u]||{},a=e),a)(l=i&&i[o])&&("kill"in l.d&&!0!==l.d.kill(o)||Xt(this,l,"_pt"),delete i[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&d&&Ee(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return le(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 le(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 m.killTweensOf(t,e,r)},e}(Ke);It(cr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ct("staggerTo,staggerFrom,staggerFromTo",function(t){cr[t]=function(){var e=new Je,r=he.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var fr=function(t,e,r){return t[e]=r},hr=function(t,e,r){return t[e](r)},dr=function(t,e,r,n){return t[e](n.fp,r)},pr=function(t,e,r){return t.setAttribute(e,r)},gr=function(t,e){return j(t[e])?hr:q(t[e])&&t.setAttribute?pr:fr},mr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},_r=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},vr=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)},yr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},xr=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},br=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Xt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},wr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},Tr=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},Or=function(){function t(t,e,r,n,i,s,a,o,l){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||mr,this.d=a||this,this.set=o||fr,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=wr,this.m=t,this.mt=r,this.tween=e},t}();Ct(wt+"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 gt[t]=1}),st.TweenMax=st.TweenLite=cr,st.TimelineLite=st.TimelineMax=Je,m=new Je({sortChildren:!1,defaults:P,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),A.stringFilter=Be;var kr=[],Cr={},Er=[],Sr=0,Mr=0,Ar=function(t){return(Cr[t]||Er).map(function(t){return t()})},Pr=function(){var t=Date.now(),e=[];t-Sr>2&&(Ar("matchMediaInit"),kr.forEach(function(t){var r,n,i,s,a=t.queries,o=t.conditions;for(n in a)(r=_.matchMedia(a[n]).matches)&&(i=1),r!==o[n]&&(o[n]=r,s=1);s&&(t.revert(),i&&e.push(t))}),Ar("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),Sr=t,Ar("matchMedia"))},Rr=function(){function t(t,e){this.selector=e&&me(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Mr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){j(t)&&(r=e,e=t,t=j);var n=this,i=function(){var t,i=g,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=me(r)),g=n,t=e.apply(n,arguments),j(t)&&n._r.push(t),g=i,n.selector=s,n.isReverted=!1,t};return n.last=i,t===j?i(n,function(t){return n.add(null,t)}):t?n[t]=i:i},e.ignore=function(t){var e=g;g=null,t(this),g=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof cr&&!(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: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 Je?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof cr)&&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=kr.length;n--;)kr[n].id===this.id&&kr.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),Dr=function(){function t(t){this.contexts=[],this.scope=t,g&&g.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){W(t)||(t={matches:t});var n,i,s,a=new Rr(0,r||this.scope),o=a.conditions={};for(i in g&&!a.selector&&(a.selector=g.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?s=1:(n=_.matchMedia(t[i]))&&(kr.indexOf(a)<0&&kr.push(a),(o[i]=n.matches)&&(s=1),n.addListener?n.addListener(Pr):n.addEventListener("change",Pr));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}(),zr={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 Me(t)})},timeline:function(t){return new Je(t)},getTweensOf:function(t,e){return m.getTweensOf(t,e)},getProperty:function(t,e,r,n){Y(t)&&(t=ge(t)[0]);var i=Ot(t||{}).get,s=r?Ft:zt;return"native"===r&&(r=""),t?e?s((vt[e]&&vt[e].get||i)(t,e,r,n)):function(e,r,n){return s((vt[e]&&vt[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=ge(t)).length>1){var n=t.map(function(t){return Nr.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=vt[e],a=Ot(t),o=a.harness&&(a.harness.aliases||{})[e]||e,l=s?function(e){var n=new s;w._pt=0,n.init(t,r?e+r:e,w,0,[t]),n.render(1,n),w._pt&&yr(1,w)}:a.set(t,o);return s?l:function(e){return l(t,o,r?e+r:e,a,1)}},quickTo:function(t,e,r){var n,i=Nr.to(t,It(((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 m.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ue(t.ease,P.ease)),Bt(P,t||{})},config:function(t){return Bt(A,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&&!vt[t]&&!st[t]&&ut(e+" effect requires "+t+" plugin.")}),yt[e]=function(t,e,n){return r(ge(t),It(e||{},i),n)},s&&(Je.prototype[e]=function(t,r,n){return this.add(yt[e](t,W(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){je[t]=Ue(e)},parseEase:function(t,e){return arguments.length?Ue(t,e):je},getById:function(t){return m.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new Je(t);for(i.smoothChildTiming=H(t.smoothChildTiming),m.remove(i),i._dp=0,i._time=i._tTime=m._time,r=m._first;r;)n=r._next,!e&&!r._dur&&r instanceof cr&&r.vars.onComplete===r._targets[0]||Jt(i,r,r._start-r._delay),r=n;return Jt(m,i,0),i},context:function(t,e){return t?new Rr(t,e):g},matchMedia:function(t){return new Dr(t)},matchMediaRefresh:function(){return kr.forEach(function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()})||Pr()},addEventListener:function(t,e){var r=Cr[t]||(Cr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=Cr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return $(e)?we(e,t(0,e.length),r):ue(n,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return $(e)?we(e,t(0,e.length-1),r):ue(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:ve,random:be,snap:xe,normalize:function(t,e,r){return Oe(t,e,0,1,r)},getUnit:fe,clamp:function(t,e,r){return ue(r,function(r){return ce(t,e,r)})},splitColor:De,toArray:ge,selector:me,mapRange:Oe,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||fe(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,l,u,c,f=Y(e),h={};if(!0===n&&(i=1)&&(n=null),f)e={p:e},r={p:r};else if($(e)&&!$(r)){for(l=[],u=e.length,c=u-2,o=1;o<u;o++)l.push(t(e[o-1],e[o]));u--,s=function(t){t*=u;var e=Math.min(c,~~t);return l[e](t-e)},n=r}else i||(e=Nt($(e)?[]:{},e));if(!l){for(a in r)nr.call(h,e,a,"get",r[a]);s=function(t){return yr(t,h)||(f?e.p:e)}}}return ue(n,s)},shuffle:_e},install:ot,effects:yt,ticker:Le,updateRoot:Je.updateRoot,plugins:vt,globalTimeline:m,core:{PropTween:Or,globals:ct,Tween:cr,Timeline:Je,Animation:Ke,getCache:Ot,_removeLinkedListItem:Xt,reverting:function(){return p},context:function(t){return t&&g&&(g.data.push(t),t._ctx=g),g},suppressOverwrites:function(t){return d=t}}};Ct("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return zr[t]=cr[t]}),Le.add(Je.updateRoot),w=zr.to({},{duration:0});var Fr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Ir=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(Y(r)&&(n={},Ct(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=Fr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Nr=zr.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;)p?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)}},Ir("roundProps",ye),Ir("modifiers"),Ir("snap",xe))||zr;cr.version=Je.version=Nr.version="3.15.0",x=1,U()&&Ye(),je.Power0,je.Power1,je.Power2,je.Power3,je.Power4,je.Linear,je.Quad,je.Cubic,je.Quart,je.Quint,je.Strong,je.Elastic,je.Back,je.SteppedEase,je.Bounce,je.Sine,je.Expo,je.Circ;
10
10
  /*!
11
11
  * CSSPlugin 3.15.0
12
12
  * https://gsap.com
@@ -15,7 +15,7 @@ import{jsx as t}from"react/jsx-runtime";import e,{useRef as r,useState as n,useE
15
15
  * Subject to the terms at https://gsap.com/standard-license
16
16
  * @author: Jack Doyle, jack@greensock.com
17
17
  */
18
- var Sr,Mr,Ar,Pr,Rr,Dr,zr,Fr,Ir={},Nr=180/Math.PI,Br=Math.PI/180,Lr=Math.atan2,Yr=/([A-Z])/g,Xr=/(left|right|width|margin|padding|x)/i,jr=/[\s,\(]\S/,qr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Hr=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Wr=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)},Ur=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)},Vr=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)},Gr=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},$r=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Qr=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Zr=function(t,e,r){return t.style[e]=r},Kr=function(t,e,r){return t.style.setProperty(e,r)},Jr=function(t,e,r){return t._gsap[e]=r},tn=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},en=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},rn=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},nn="transform",sn=nn+"Origin",on=function t(e,r){var n=this,i=this.target,s=i.style,o=i._gsap;if(e in Ir&&s){if(this.tfm=this.tfm||{},"transform"===e)return qr.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=qr[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=kn(i,t)}):this.tfm[e]=o.x?o[e]:kn(i,e),e===sn&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(nn)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(sn,r,"")),e=nn}(s||r)&&this.props.push(e,r,s[e])},an=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(Yr,"-$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=zr())&&t.isStart||i[nn]||(an(i),s.zOrigin&&i[sn]&&(i[sn]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},un=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},cn=function(t,e){var r=Mr.createElementNS?Mr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Mr.createElement(t);return r&&r.style?r:Mr.createElement(t)},fn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Yr,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,dn(r)||r,1)||""},hn="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--&&!(hn[i]+t in n););return i<0?null:(3===i?"ms":i>=0?hn[i]:"")+t},pn=function(){"undefined"!=typeof window&&window.document&&(Sr=window,Mr=Sr.document,Ar=Mr.documentElement,Rr=cn("div")||{style:{}},cn("div"),nn=dn(nn),sn=nn+"Origin",Rr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Fr=!!dn("perspective"),zr=Er.core.reverting,Pr=1)},gn=function(t){var e,r=t.ownerSVGElement,n=cn("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),Ar.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),Ar.removeChild(n),e},mn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},_n=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}},vn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!_n(t))},yn=function(t,e){if(e){var r,n=t.style;e in Ir&&e!==sn&&(e=nn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(Yr,"-$1").toLowerCase())):n.removeAttribute(e)}},xn=function(t,e,r,n,i,s){var o=new pr(t._pt,e,r,0,1,s?Qr:$r);return t._pt=o,o.b=n,o.e=i,t._props.push(r),o},bn={deg:1,rad:1,turn:1},wn={grid:1,flex:1},Tn=function t(e,r,n,i){var s,o,a,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",f=Rr.style,h=Xr.test(r),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(h?"Width":"Height"),g=100,m="px"===i,_="%"===i;if(i===c||!u||bn[i]||bn[c])return u;if("px"!==c&&!m&&(u=t(e,r,n,"px")),l=e.getCTM&&vn(e),(_||"%"===c)&&(Ir[r]||~r.indexOf("adius")))return s=l?e.getBBox()[h?"width":"height"]:e[p],_t(_?u/s*g:u/100*s);if(f[h?"width":"height"]=g+(m?c:i),o="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,l&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Mr&&o.appendChild||(o=Mr.body),(a=o._gsap)&&_&&a.width&&h&&a.time===Me.time&&!a.uncache)return _t(u/a.width*g);if(!_||"height"!==r&&"width"!==r)(_||"%"===c)&&!wn[fn(o,"display")]&&(f.position=fn(e,"position")),o===e&&(f.position="static"),o.appendChild(Rr),s=Rr[p],o.removeChild(Rr),f.position="absolute";else{var v=e.style[r];e.style[r]=g+i,s=e[p],v?e.style[r]=v:yn(e,r)}return h&&_&&((a=pt(o)).time=Me.time,a.width=o[p]),_t(m?s*u/g:s&&u?g/s*u:0)},kn=function(t,e,r,n){var i;return Pr||pn(),e in qr&&"transform"!==e&&~(e=qr[e]).indexOf(",")&&(e=e.split(",")[0]),Ir[e]&&"transform"!==e?(i=In(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Nn(fn(t,sn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=Mn[e]&&Mn[e](t,e,r)||fn(t,e)||gt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?Tn(t,e,i,r)+r:i},Cn=function(t,e,r,n){if(!r||"none"===r){var i=dn(e,t,1),s=i&&fn(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=fn(t,"borderTopColor"))}var o,a,l,u,c,f,h,d,p,g,m,_=new pr(this._pt,t.style,e,0,1,lr),v=0,y=0;if(_.b=r,_.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=fn(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(f=t.style[e],t.style[e]=n,n=fn(t,e)||n,f?t.style[e]=f:yn(t,e)),Se(o=[r,n]),n=o[1],l=(r=o[0]).match(H)||[],(n.match(H)||[]).length){for(;a=H.exec(n);)h=a[0],p=n.substring(v,a.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),h!==(f=l[y++]||"")&&(u=parseFloat(f)||0,m=f.substr((u+"").length),"="===h.charAt(1)&&(h=yt(u,h)+m),d=parseFloat(h),g=h.substr((d+"").length),v=H.lastIndex-g.length,g||(g=g||x.units[e]||m,v===n.length&&(n+=g,_.e+=g)),m!==g&&(u=Tn(t,e,f,g)||0),_._pt={_next:_._pt,p:p||1===y?p:",",s:u,c:d-u,m:c&&c<4||"zIndex"===e?Math.round:0});_.c=v<n.length?n.substring(v,n.length):""}else _.r="display"===e&&"none"===n?Qr:$r;return U.test(n)&&(_.e=0),this._pt=_,_},On={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]=On[r]||r,e[1]=On[n]||n,e.join(" ")},Sn=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,s=e.t,o=s.style,a=e.u,l=s._gsap;if("all"===a||!0===a)o.cssText="",n=1;else for(i=(a=a.split(",")).length;--i>-1;)r=a[i],Ir[r]&&(n=1,r="transformOrigin"===r?sn:nn),yn(s,r);n&&(yn(s,nn),l&&(l.svg&&s.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",In(s,1),l.uncache=1,an(o)))}},Mn={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new pr(t._pt,e,r,0,0,Sn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},An=[1,0,0,1,0,0],Pn={},Rn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Dn=function(t){var e=fn(t,nn);return Rn(e)?An:e.substr(7).match(q).map(_t)},zn=function(t,e){var r,n,i,s,o=t._gsap||pt(t),a=t.style,l=Dn(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?An:l:(l!==An||t.offsetParent||t===Ar||o.svg||(i=a.display,a.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,Ar.appendChild(t)),l=Dn(t),i?a.display=i:yn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):Ar.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Fn=function(t,e,r,n,i,s){var o,a,l,u=t._gsap,c=i||zn(t,!0),f=u.xOrigin||0,h=u.yOrigin||0,d=u.xOffset||0,p=u.yOffset||0,g=c[0],m=c[1],_=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!==An&&(a=g*v-m*_)&&(l=w*(-m/a)+T*(g/a)-(g*x-m*y)/a,w=w*(v/a)+T*(-_/a)+(_*x-v*y)/a,T=l):(w=(o=_n(t)).x+(~b[0].indexOf("%")?w/100*o.width:w),T=o.y+(~(b[1]||b[0]).indexOf("%")?T/100*o.height:T)),n||!1!==n&&u.smooth?(y=w-f,x=T-h,u.xOffset=d+(y*g+x*_)-y,u.yOffset=p+(y*m+x*v)-x):u.xOffset=u.yOffset=0,u.xOrigin=w,u.yOrigin=T,u.smooth=!!n,u.origin=e,u.originIsAbsolute=!!r,t.style[sn]="0px 0px",s&&(xn(s,u,"xOrigin",f,w),xn(s,u,"yOrigin",h,T),xn(s,u,"xOffset",d,u.xOffset),xn(s,u,"yOffset",p,u.yOffset)),t.setAttribute("data-svg-origin",w+" "+T)},In=function(t,e){var r=t._gsap||new Xe(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,o,a,l,u,c,f,h,d,p,g,m,_,v,y,b,w,T,k,C,O,E,S,M,A,P,R,D,z,F,I=t.style,N=r.scaleX<0,B="px",L="deg",Y=getComputedStyle(t),X=fn(t,sn)||"0";return n=i=s=l=u=c=f=h=d=0,o=a=1,r.svg=!(!t.getCTM||!vn(t)),Y.translate&&("none"===Y.translate&&"none"===Y.scale&&"none"===Y.rotate||(I[nn]=("none"!==Y.translate?"translate3d("+(Y.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==Y.rotate?"rotate("+Y.rotate+") ":"")+("none"!==Y.scale?"scale("+Y.scale.split(" ").join(",")+") ":"")+("none"!==Y[nn]?Y[nn]:"")),I.scale=I.rotate=I.translate="none"),m=zn(t,r.svg),r.svg&&(r.uncache?(S=t.getBBox(),X=r.xOrigin-S.x+"px "+(r.yOrigin-S.y)+"px",E=""):E=!e&&t.getAttribute("data-svg-origin"),Fn(t,E||X,!!E||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,g=r.yOrigin||0,m!==An&&(b=m[0],w=m[1],T=m[2],k=m[3],n=C=m[4],i=O=m[5],6===m.length?(o=Math.sqrt(b*b+w*w),a=Math.sqrt(k*k+T*T),l=b||w?Lr(w,b)*Nr:0,(f=T||k?Lr(T,k)*Nr+l:0)&&(a*=Math.abs(Math.cos(f*Br))),r.svg&&(n-=p-(p*b+g*T),i-=g-(p*w+g*k))):(F=m[6],D=m[7],A=m[8],P=m[9],R=m[10],z=m[11],n=m[12],i=m[13],s=m[14],u=(_=Lr(F,R))*Nr,_&&(E=C*(v=Math.cos(-_))+A*(y=Math.sin(-_)),S=O*v+P*y,M=F*v+R*y,A=C*-y+A*v,P=O*-y+P*v,R=F*-y+R*v,z=D*-y+z*v,C=E,O=S,F=M),c=(_=Lr(-T,R))*Nr,_&&(v=Math.cos(-_),z=k*(y=Math.sin(-_))+z*v,b=E=b*v-A*y,w=S=w*v-P*y,T=M=T*v-R*y),l=(_=Lr(w,b))*Nr,_&&(E=b*(v=Math.cos(_))+w*(y=Math.sin(_)),S=C*v+O*y,w=w*v-b*y,O=O*v-C*y,b=E,C=S),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=_t(Math.sqrt(b*b+w*w+T*T)),a=_t(Math.sqrt(O*O+F*F)),_=Lr(C,O),f=Math.abs(_)>2e-4?_*Nr:0,d=z?1/(z<0?-z:z):0),r.svg&&(E=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Rn(fn(t,nn)),E&&t.setAttribute("transform",E))),Math.abs(f)>90&&Math.abs(f)<270&&(N?(o*=-1,f+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-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=_t(o),r.scaleY=_t(a),r.rotation=_t(l)+L,r.rotationX=_t(u)+L,r.rotationY=_t(c)+L,r.skewX=f+L,r.skewY=h+L,r.transformPerspective=d+B,(r.zOrigin=parseFloat(X.split(" ")[2])||!e&&r.zOrigin||0)&&(I[sn]=Nn(X)),r.xOffset=r.yOffset=0,r.force3D=x.force3D,r.renderTransform=r.svg?Hn:Fr?qn:Ln,r.uncache=0,r},Nn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Bn=function(t,e,r){var n=ee(e);return _t(parseFloat(e)+parseFloat(Tn(t,"x",r+"px",n)))+n},Ln=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,qn(t,e)},Yn="0deg",Xn="0px",jn=") ",qn=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,s=r.x,o=r.y,a=r.z,l=r.rotation,u=r.rotationY,c=r.rotationX,f=r.skewX,h=r.skewY,d=r.scaleX,p=r.scaleY,g=r.transformPerspective,m=r.force3D,_=r.target,v=r.zOrigin,y="",x="auto"===m&&t&&1!==t||!0===m;if(v&&(c!==Yn||u!==Yn)){var b,w=parseFloat(u)*Br,T=Math.sin(w),k=Math.cos(w);w=parseFloat(c)*Br,b=Math.cos(w),s=Bn(_,s,T*b*-v),o=Bn(_,o,-Math.sin(w)*-v),a=Bn(_,a,k*b*-v+v)}g!==Xn&&(y+="perspective("+g+jn),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(x||s!==Xn||o!==Xn||a!==Xn)&&(y+=a!==Xn||x?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+jn),l!==Yn&&(y+="rotate("+l+jn),u!==Yn&&(y+="rotateY("+u+jn),c!==Yn&&(y+="rotateX("+c+jn),f===Yn&&h===Yn||(y+="skew("+f+", "+h+jn),1===d&&1===p||(y+="scale("+d+", "+p+jn),_.style[nn]=y||"translate(0, 0)"},Hn=function(t,e){var r,n,i,s,o,a=e||this,l=a.xPercent,u=a.yPercent,c=a.x,f=a.y,h=a.rotation,d=a.skewX,p=a.skewY,g=a.scaleX,m=a.scaleY,_=a.target,v=a.xOrigin,y=a.yOrigin,x=a.xOffset,b=a.yOffset,w=a.forceCSS,T=parseFloat(c),k=parseFloat(f);h=parseFloat(h),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),h+=p),h||d?(h*=Br,d*=Br,r=Math.cos(h)*g,n=Math.sin(h)*g,i=Math.sin(h-d)*-m,s=Math.cos(h-d)*m,d&&(p*=Br,o=Math.tan(d-p),i*=o=Math.sqrt(1+o*o),s*=o,p&&(o=Math.tan(p),r*=o=Math.sqrt(1+o*o),n*=o)),r=_t(r),n=_t(n),i=_t(i),s=_t(s)):(r=g,s=m,n=i=0),(T&&!~(c+"").indexOf("px")||k&&!~(f+"").indexOf("px"))&&(T=Tn(_,"x",c,"px"),k=Tn(_,"y",f,"px")),(v||y||x||b)&&(T=_t(T+v-(v*r+y*i)+x),k=_t(k+y-(v*n+y*s)+b)),(l||u)&&(o=_.getBBox(),T=_t(T+l/100*o.width),k=_t(k+u/100*o.height)),o="matrix("+r+","+n+","+i+","+s+","+T+","+k+")",_.setAttribute("transform",o),w&&(_.style[nn]=o)},Wn=function(t,e,r,n,i){var s,o,a=360,l=A(i),u=parseFloat(i)*(l&&~i.indexOf("rad")?Nr:1)-n,c=n+u+"deg";return l&&("short"===(s=i.split("_")[1])&&(u%=a)!==u%180&&(u+=u<0?a:-360),"cw"===s&&u<0?u=(u+36e9)%a-~~(u/a)*a:"ccw"===s&&u>0&&(u=(u-36e9)%a-~~(u/a)*a)),t._pt=o=new pr(t._pt,e,r,n,u,Wr),o.e=c,o.u="deg",t._props.push(r),o},Un=function(t,e){for(var r in e)t[r]=e[r];return t},Vn=function(t,e,r){var n,i,s,o,a,l,u,c=Un({},r._gsap),f=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),f[nn]=e,n=In(r,1),yn(r,nn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[nn],f[nn]=e,n=In(r,1),f[nn]=s),Ir)(s=c[i])!==(o=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=ee(s)!==(u=ee(o))?Tn(r,i,s,u):parseFloat(s),l=parseFloat(o),t._pt=new pr(t._pt,n,i,a,l-a,Hr),t._pt.u=u||0,t._props.push(i));Un(n,c)};mt("padding,margin,Width,Radius",function(t,e){var r="Top",n="Right",i="Bottom",s="Left",o=(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});Mn[e>1?"border"+t:t]=function(t,e,r,n,i){var s,a;if(arguments.length<4)return s=o.map(function(e){return kn(t,e,r)}),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(n+"").split(" "),a={},o.forEach(function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]}),t.init(e,a,i)}});var Gn,$n,Qn,Zn={name:"css",register:pn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,o,a,l,u,c,f,h,d,p,g,m,_,v,y,b,w,T=this._props,k=t.style,C=r.vars.startAt;for(f in Pr||pn(),this.styles=this.styles||un(t),b=this.styles.props,this.tween=r,e)if("autoRound"!==f&&(o=e[f],!lt[f]||!Ge(f,e,r,n,t,i)))if(u=typeof o,c=Mn[f],"function"===u&&(u=typeof(o=o.call(r,n,t,i))),"string"===u&&~o.indexOf("random(")&&(o=de(o)),c)c(this,t,f,o,r)&&(y=1);else if("--"===f.substr(0,2))s=(getComputedStyle(t).getPropertyValue(f)+"").trim(),o+="",Oe.lastIndex=0,Oe.test(s)||(h=ee(s),(d=ee(o))?h!==d&&(s=Tn(t,f,s,d)+d):h&&(o+=h)),this.add(k,"setProperty",s,o,n,i,0,0,f),T.push(f),b.push(f,0,k[f]);else if("undefined"!==u){if(C&&f in C?(s="function"==typeof C[f]?C[f].call(r,n,t,i):C[f],A(s)&&~s.indexOf("random(")&&(s=de(s)),ee(s+"")||"auto"===s||(s+=x.units[f]||ee(kn(t,f))||""),"="===(s+"").charAt(1)&&(s=kn(t,f))):s=kn(t,f),l=parseFloat(s),(p="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),f in qr&&("autoAlpha"===f&&(1===l&&"hidden"===kn(t,"visibility")&&a&&(l=0),b.push("visibility",0,k.visibility),xn(this,k,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==f&&"transform"!==f&&~(f=qr[f]).indexOf(",")&&(f=f.split(",")[0])),g=f in Ir){if(this.styles.save(f),w=o,"string"===u&&"var(--"===o.substring(0,6)){if("calc("===(o=fn(t,o.substring(4,o.indexOf(")")))).substring(0,5)){var O=t.style.perspective;t.style.perspective=o,o=fn(t,"perspective"),O?t.style.perspective=O:yn(t,"perspective")}a=parseFloat(o)}if(m||((_=t._gsap).renderTransform&&!e.parseTransform||In(t,e.parseTransform),v=!1!==e.smoothOrigin&&_.smooth,(m=this._pt=new pr(this._pt,k,nn,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===f)this._pt=new pr(this._pt,_,"scaleY",_.scaleY,(p?yt(_.scaleY,p+a):a)-_.scaleY||0,Hr),this._pt.u=0,T.push("scaleY",f),f+="X";else{if("transformOrigin"===f){b.push(sn,0,k[sn]),o=En(o),_.svg?Fn(t,o,0,v,0,this):((d=parseFloat(o.split(" ")[2])||0)!==_.zOrigin&&xn(this,_,"zOrigin",_.zOrigin,d),xn(this,k,f,Nn(s),Nn(o)));continue}if("svgOrigin"===f){Fn(t,o,1,v,0,this);continue}if(f in Pn){Wn(this,_,f,l,p?yt(l,p+o):o);continue}if("smoothOrigin"===f){xn(this,_,"smooth",_.smooth,o);continue}if("force3D"===f){_[f]=o;continue}if("transform"===f){Vn(this,o,t);continue}}}else f in k||(f=dn(f)||f);if(g||(a||0===a)&&(l||0===l)&&!jr.test(o)&&f in k)a||(a=0),(h=(s+"").substr((l+"").length))!==(d=ee(o)||(f in x.units?x.units[f]:h))&&(l=Tn(t,f,s,d)),this._pt=new pr(this._pt,g?_:k,f,l,(p?yt(l,p+a):a)-l,g||"px"!==d&&"zIndex"!==f||!1===e.autoRound?Hr:Gr),this._pt.u=d||0,g&&w!==o?(this._pt.b=s,this._pt.e=w,this._pt.r=Vr):h!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=Ur);else if(f in k)Cn.call(this,t,f,s,p?p+o:o);else if(f in t)this.add(t,f,s||t[f],p?p+o:o,n,i);else if("parseTransform"!==f){K(f,o);continue}g||(f in k?b.push(f,0,k[f]):"function"==typeof t[f]?b.push(f,2,t[f]()):b.push(f,1,s||t[f])),T.push(f)}y&&dr(this)},render:function(t,e){if(e.tween._time||!zr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:kn,aliases:qr,getSetter:function(t,e,r){var n=qr[e];return n&&n.indexOf(",")<0&&(e=n),e in Ir&&e!==sn&&(t._gsap.x||kn(t,"x"))?r&&Dr===r?"scale"===e?tn:Jr:(Dr=r||{})&&("scale"===e?en:rn):t.style&&!D(t.style[e])?Zr:~e.indexOf("-")?Kr:sr(t,e)},core:{_removeProperty:yn,_getMatrix:zn}};Er.utils.checkPrefix=dn,Er.core.getStyleSaver=un,Qn=mt((Gn="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+($n="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Ir[t]=1}),mt($n,function(t){x.units[t]="deg",Pn[t]=1}),qr[Qn[13]]=Gn+","+$n,mt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");qr[e[1]]=Qn[e[0]]}),mt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){x.units[t]="px"}),Er.registerPlugin(Zn);var Kn=Er.registerPlugin(Zn)||Er;function Jn(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)}}Kn.core.Tween;
18
+ var Br,Lr,Yr,jr,Xr,qr,Wr,Hr,Ur={},Vr=180/Math.PI,Gr=Math.PI/180,$r=Math.atan2,Zr=/([A-Z])/g,Qr=/(left|right|width|margin|padding|x)/i,Kr=/[\s,\(]\S/,Jr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},tn=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},en=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)},rn=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)},nn=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)},sn=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},an=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},on=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},ln=function(t,e,r){return t.style[e]=r},un=function(t,e,r){return t.style.setProperty(e,r)},cn=function(t,e,r){return t._gsap[e]=r},fn=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},hn=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},dn=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},pn="transform",gn=pn+"Origin",mn=function t(e,r){var n=this,i=this.target,s=i.style,a=i._gsap;if(e in Ur&&s){if(this.tfm=this.tfm||{},"transform"===e)return Jr.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=Jr[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=zn(i,t)}):this.tfm[e]=a.x?a[e]:zn(i,e),e===gn&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(pn)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(gn,r,"")),e=pn}(s||r)&&this.props.push(e,r,s[e])},_n=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},vn=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(Zr,"-$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=Wr())&&t.isStart||i[pn]||(_n(i),s.zOrigin&&i[gn]&&(i[gn]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},yn=function(t,e){var r={target:t,props:[],revert:vn,save:mn};return t._gsap||Nr.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},xn=function(t,e){var r=Lr.createElementNS?Lr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Lr.createElement(t);return r&&r.style?r:Lr.createElement(t)},bn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Zr,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,Tn(r)||r,1)||""},wn="O,Moz,ms,Ms,Webkit".split(","),Tn=function(t,e,r){var n=(e||Xr).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(wn[i]+t in n););return i<0?null:(3===i?"ms":i>=0?wn[i]:"")+t},On=function(){"undefined"!=typeof window&&window.document&&(Br=window,Lr=Br.document,Yr=Lr.documentElement,Xr=xn("div")||{style:{}},xn("div"),pn=Tn(pn),gn=pn+"Origin",Xr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Hr=!!Tn("perspective"),Wr=Nr.core.reverting,jr=1)},kn=function(t){var e,r=t.ownerSVGElement,n=xn("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),Yr.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),Yr.removeChild(n),e},Cn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},En=function(t){var e,r;try{e=t.getBBox()}catch(n){e=kn(t),r=1}return e&&(e.width||e.height)||r||(e=kn(t)),!e||e.width||e.x||e.y?e:{x:+Cn(t,["x","cx","x1"])||0,y:+Cn(t,["y","cy","y1"])||0,width:0,height:0}},Sn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!En(t))},Mn=function(t,e){if(e){var r,n=t.style;e in Ur&&e!==gn&&(e=pn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(Zr,"-$1").toLowerCase())):n.removeAttribute(e)}},An=function(t,e,r,n,i,s){var a=new Or(t._pt,e,r,0,1,s?on:an);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},Pn={deg:1,rad:1,turn:1},Rn={grid:1,flex:1},Dn=function t(e,r,n,i){var s,a,o,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",f=Xr.style,h=Qr.test(r),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(h?"Width":"Height"),g=100,m="px"===i,_="%"===i;if(i===c||!u||Pn[i]||Pn[c])return u;if("px"!==c&&!m&&(u=t(e,r,n,"px")),l=e.getCTM&&Sn(e),(_||"%"===c)&&(Ur[r]||~r.indexOf("adius")))return s=l?e.getBBox()[h?"width":"height"]:e[p],Et(_?u/s*g:u/100*s);if(f[h?"width":"height"]=g+(m?c:i),a="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Lr&&a.appendChild||(a=Lr.body),(o=a._gsap)&&_&&o.width&&h&&o.time===Le.time&&!o.uncache)return Et(u/o.width*g);if(!_||"height"!==r&&"width"!==r)(_||"%"===c)&&!Rn[bn(a,"display")]&&(f.position=bn(e,"position")),a===e&&(f.position="static"),a.appendChild(Xr),s=Xr[p],a.removeChild(Xr),f.position="absolute";else{var v=e.style[r];e.style[r]=g+i,s=e[p],v?e.style[r]=v:Mn(e,r)}return h&&_&&((o=Ot(a)).time=Le.time,o.width=a[p]),Et(m?s*u/g:s&&u?g/s*u:0)},zn=function(t,e,r,n){var i;return jr||On(),e in Jr&&"transform"!==e&&~(e=Jr[e]).indexOf(",")&&(e=e.split(",")[0]),Ur[e]&&"transform"!==e?(i=Un(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Vn(bn(t,gn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=Ln[e]&&Ln[e](t,e,r)||bn(t,e)||kt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?Dn(t,e,i,r)+r:i},Fn=function(t,e,r,n){if(!r||"none"===r){var i=Tn(e,t,1),s=i&&bn(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=bn(t,"borderTopColor"))}var a,o,l,u,c,f,h,d,p,g,m,_=new Or(this._pt,t.style,e,0,1,vr),v=0,y=0;if(_.b=r,_.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=bn(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(f=t.style[e],t.style[e]=n,n=bn(t,e)||n,f?t.style[e]=f:Mn(t,e)),Be(a=[r,n]),n=a[1],l=(r=a[0]).match(tt)||[],(n.match(tt)||[]).length){for(;o=tt.exec(n);)h=o[0],p=n.substring(v,o.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),h!==(f=l[y++]||"")&&(u=parseFloat(f)||0,m=f.substr((u+"").length),"="===h.charAt(1)&&(h=Mt(u,h)+m),d=parseFloat(h),g=h.substr((d+"").length),v=tt.lastIndex-g.length,g||(g=g||A.units[e]||m,v===n.length&&(n+=g,_.e+=g)),m!==g&&(u=Dn(t,e,f,g)||0),_._pt={_next:_._pt,p:p||1===y?p:",",s:u,c:d-u,m:c&&c<4||"zIndex"===e?Math.round:0});_.c=v<n.length?n.substring(v,n.length):""}else _.r="display"===e&&"none"===n?on:an;return rt.test(n)&&(_.e=0),this._pt=_,_},In={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Nn=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]=In[r]||r,e[1]=In[n]||n,e.join(" ")},Bn=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,l=s._gsap;if("all"===o||!0===o)a.cssText="",n=1;else for(i=(o=o.split(",")).length;--i>-1;)r=o[i],Ur[r]&&(n=1,r="transformOrigin"===r?gn:pn),Mn(s,r);n&&(Mn(s,pn),l&&(l.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",Un(s,1),l.uncache=1,_n(a)))}},Ln={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new Or(t._pt,e,r,0,0,Bn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Yn=[1,0,0,1,0,0],jn={},Xn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},qn=function(t){var e=bn(t,pn);return Xn(e)?Yn:e.substr(7).match(J).map(Et)},Wn=function(t,e){var r,n,i,s,a=t._gsap||Ot(t),o=t.style,l=qn(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Yn:l:(l!==Yn||t.offsetParent||t===Yr||a.svg||(i=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,Yr.appendChild(t)),l=qn(t),i?o.display=i:Mn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):Yr.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Hn=function(t,e,r,n,i,s){var a,o,l,u=t._gsap,c=i||Wn(t,!0),f=u.xOrigin||0,h=u.yOrigin||0,d=u.xOffset||0,p=u.yOffset||0,g=c[0],m=c[1],_=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!==Yn&&(o=g*v-m*_)&&(l=w*(-m/o)+T*(g/o)-(g*x-m*y)/o,w=w*(v/o)+T*(-_/o)+(_*x-v*y)/o,T=l):(w=(a=En(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&&u.smooth?(y=w-f,x=T-h,u.xOffset=d+(y*g+x*_)-y,u.yOffset=p+(y*m+x*v)-x):u.xOffset=u.yOffset=0,u.xOrigin=w,u.yOrigin=T,u.smooth=!!n,u.origin=e,u.originIsAbsolute=!!r,t.style[gn]="0px 0px",s&&(An(s,u,"xOrigin",f,w),An(s,u,"yOrigin",h,T),An(s,u,"xOffset",d,u.xOffset),An(s,u,"yOffset",p,u.yOffset)),t.setAttribute("data-svg-origin",w+" "+T)},Un=function(t,e){var r=t._gsap||new Qe(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,a,o,l,u,c,f,h,d,p,g,m,_,v,y,x,b,w,T,O,k,C,E,S,M,P,R,D,z,F,I=t.style,N=r.scaleX<0,B="px",L="deg",Y=getComputedStyle(t),j=bn(t,gn)||"0";return n=i=s=l=u=c=f=h=d=0,a=o=1,r.svg=!(!t.getCTM||!Sn(t)),Y.translate&&("none"===Y.translate&&"none"===Y.scale&&"none"===Y.rotate||(I[pn]=("none"!==Y.translate?"translate3d("+(Y.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==Y.rotate?"rotate("+Y.rotate+") ":"")+("none"!==Y.scale?"scale("+Y.scale.split(" ").join(",")+") ":"")+("none"!==Y[pn]?Y[pn]:"")),I.scale=I.rotate=I.translate="none"),m=Wn(t,r.svg),r.svg&&(r.uncache?(E=t.getBBox(),j=r.xOrigin-E.x+"px "+(r.yOrigin-E.y)+"px",C=""):C=!e&&t.getAttribute("data-svg-origin"),Hn(t,C||j,!!C||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,g=r.yOrigin||0,m!==Yn&&(x=m[0],b=m[1],w=m[2],T=m[3],n=O=m[4],i=k=m[5],6===m.length?(a=Math.sqrt(x*x+b*b),o=Math.sqrt(T*T+w*w),l=x||b?$r(b,x)*Vr:0,(f=w||T?$r(w,T)*Vr+l:0)&&(o*=Math.abs(Math.cos(f*Gr))),r.svg&&(n-=p-(p*x+g*w),i-=g-(p*b+g*T))):(F=m[6],D=m[7],M=m[8],P=m[9],R=m[10],z=m[11],n=m[12],i=m[13],s=m[14],u=(_=$r(F,R))*Vr,_&&(C=O*(v=Math.cos(-_))+M*(y=Math.sin(-_)),E=k*v+P*y,S=F*v+R*y,M=O*-y+M*v,P=k*-y+P*v,R=F*-y+R*v,z=D*-y+z*v,O=C,k=E,F=S),c=(_=$r(-w,R))*Vr,_&&(v=Math.cos(-_),z=T*(y=Math.sin(-_))+z*v,x=C=x*v-M*y,b=E=b*v-P*y,w=S=w*v-R*y),l=(_=$r(b,x))*Vr,_&&(C=x*(v=Math.cos(_))+b*(y=Math.sin(_)),E=O*v+k*y,b=b*v-x*y,k=k*v-O*y,x=C,O=E),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),a=Et(Math.sqrt(x*x+b*b+w*w)),o=Et(Math.sqrt(k*k+F*F)),_=$r(O,k),f=Math.abs(_)>2e-4?_*Vr:0,d=z?1/(z<0?-z:z):0),r.svg&&(C=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Xn(bn(t,pn)),C&&t.setAttribute("transform",C))),Math.abs(f)>90&&Math.abs(f)<270&&(N?(a*=-1,f+=l<=0?180:-180,l+=l<=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=Et(a),r.scaleY=Et(o),r.rotation=Et(l)+L,r.rotationX=Et(u)+L,r.rotationY=Et(c)+L,r.skewX=f+L,r.skewY=h+L,r.transformPerspective=d+B,(r.zOrigin=parseFloat(j.split(" ")[2])||!e&&r.zOrigin||0)&&(I[gn]=Vn(j)),r.xOffset=r.yOffset=0,r.force3D=A.force3D,r.renderTransform=r.svg?ti:Hr?Jn:$n,r.uncache=0,r},Vn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Gn=function(t,e,r){var n=fe(e);return Et(parseFloat(e)+parseFloat(Dn(t,"x",r+"px",n)))+n},$n=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Jn(t,e)},Zn="0deg",Qn="0px",Kn=") ",Jn=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,s=r.x,a=r.y,o=r.z,l=r.rotation,u=r.rotationY,c=r.rotationX,f=r.skewX,h=r.skewY,d=r.scaleX,p=r.scaleY,g=r.transformPerspective,m=r.force3D,_=r.target,v=r.zOrigin,y="",x="auto"===m&&t&&1!==t||!0===m;if(v&&(c!==Zn||u!==Zn)){var b,w=parseFloat(u)*Gr,T=Math.sin(w),O=Math.cos(w);w=parseFloat(c)*Gr,b=Math.cos(w),s=Gn(_,s,T*b*-v),a=Gn(_,a,-Math.sin(w)*-v),o=Gn(_,o,O*b*-v+v)}g!==Qn&&(y+="perspective("+g+Kn),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(x||s!==Qn||a!==Qn||o!==Qn)&&(y+=o!==Qn||x?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+Kn),l!==Zn&&(y+="rotate("+l+Kn),u!==Zn&&(y+="rotateY("+u+Kn),c!==Zn&&(y+="rotateX("+c+Kn),f===Zn&&h===Zn||(y+="skew("+f+", "+h+Kn),1===d&&1===p||(y+="scale("+d+", "+p+Kn),_.style[pn]=y||"translate(0, 0)"},ti=function(t,e){var r,n,i,s,a,o=e||this,l=o.xPercent,u=o.yPercent,c=o.x,f=o.y,h=o.rotation,d=o.skewX,p=o.skewY,g=o.scaleX,m=o.scaleY,_=o.target,v=o.xOrigin,y=o.yOrigin,x=o.xOffset,b=o.yOffset,w=o.forceCSS,T=parseFloat(c),O=parseFloat(f);h=parseFloat(h),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),h+=p),h||d?(h*=Gr,d*=Gr,r=Math.cos(h)*g,n=Math.sin(h)*g,i=Math.sin(h-d)*-m,s=Math.cos(h-d)*m,d&&(p*=Gr,a=Math.tan(d-p),i*=a=Math.sqrt(1+a*a),s*=a,p&&(a=Math.tan(p),r*=a=Math.sqrt(1+a*a),n*=a)),r=Et(r),n=Et(n),i=Et(i),s=Et(s)):(r=g,s=m,n=i=0),(T&&!~(c+"").indexOf("px")||O&&!~(f+"").indexOf("px"))&&(T=Dn(_,"x",c,"px"),O=Dn(_,"y",f,"px")),(v||y||x||b)&&(T=Et(T+v-(v*r+y*i)+x),O=Et(O+y-(v*n+y*s)+b)),(l||u)&&(a=_.getBBox(),T=Et(T+l/100*a.width),O=Et(O+u/100*a.height)),a="matrix("+r+","+n+","+i+","+s+","+T+","+O+")",_.setAttribute("transform",a),w&&(_.style[pn]=a)},ei=function(t,e,r,n,i){var s,a,o=360,l=Y(i),u=parseFloat(i)*(l&&~i.indexOf("rad")?Vr:1)-n,c=n+u+"deg";return l&&("short"===(s=i.split("_")[1])&&(u%=o)!==u%180&&(u+=u<0?o:-360),"cw"===s&&u<0?u=(u+36e9)%o-~~(u/o)*o:"ccw"===s&&u>0&&(u=(u-36e9)%o-~~(u/o)*o)),t._pt=a=new Or(t._pt,e,r,n,u,en),a.e=c,a.u="deg",t._props.push(r),a},ri=function(t,e){for(var r in e)t[r]=e[r];return t},ni=function(t,e,r){var n,i,s,a,o,l,u,c=ri({},r._gsap),f=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),f[pn]=e,n=Un(r,1),Mn(r,pn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[pn],f[pn]=e,n=Un(r,1),f[pn]=s),Ur)(s=c[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=fe(s)!==(u=fe(a))?Dn(r,i,s,u):parseFloat(s),l=parseFloat(a),t._pt=new Or(t._pt,n,i,o,l-o,tn),t._pt.u=u||0,t._props.push(i));ri(n,c)};Ct("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});Ln[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 zn(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 ii,si,ai,oi={name:"css",register:On,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,a,o,l,u,c,f,h,d,p,g,m,_,v,y,x,b,w=this._props,T=t.style,O=r.vars.startAt;for(f in jr||On(),this.styles=this.styles||yn(t),x=this.styles.props,this.tween=r,e)if("autoRound"!==f&&(a=e[f],!vt[f]||!ir(f,e,r,n,t,i)))if(u=typeof a,c=Ln[f],"function"===u&&(u=typeof(a=a.call(r,n,t,i))),"string"===u&&~a.indexOf("random(")&&(a=Te(a)),c)c(this,t,f,a,r)&&(y=1);else if("--"===f.substr(0,2))s=(getComputedStyle(t).getPropertyValue(f)+"").trim(),a+="",Ie.lastIndex=0,Ie.test(s)||(h=fe(s),(d=fe(a))?h!==d&&(s=Dn(t,f,s,d)+d):h&&(a+=h)),this.add(T,"setProperty",s,a,n,i,0,0,f),w.push(f),x.push(f,0,T[f]);else if("undefined"!==u){if(O&&f in O?(s="function"==typeof O[f]?O[f].call(r,n,t,i):O[f],Y(s)&&~s.indexOf("random(")&&(s=Te(s)),fe(s+"")||"auto"===s||(s+=A.units[f]||fe(zn(t,f))||""),"="===(s+"").charAt(1)&&(s=zn(t,f))):s=zn(t,f),l=parseFloat(s),(p="string"===u&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),f in Jr&&("autoAlpha"===f&&(1===l&&"hidden"===zn(t,"visibility")&&o&&(l=0),x.push("visibility",0,T.visibility),An(this,T,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&"transform"!==f&&~(f=Jr[f]).indexOf(",")&&(f=f.split(",")[0])),g=f in Ur){if(this.styles.save(f),b=a,"string"===u&&"var(--"===a.substring(0,6)){if("calc("===(a=bn(t,a.substring(4,a.indexOf(")")))).substring(0,5)){var k=t.style.perspective;t.style.perspective=a,a=bn(t,"perspective"),k?t.style.perspective=k:Mn(t,"perspective")}o=parseFloat(a)}if(m||((_=t._gsap).renderTransform&&!e.parseTransform||Un(t,e.parseTransform),v=!1!==e.smoothOrigin&&_.smooth,(m=this._pt=new Or(this._pt,T,pn,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===f)this._pt=new Or(this._pt,_,"scaleY",_.scaleY,(p?Mt(_.scaleY,p+o):o)-_.scaleY||0,tn),this._pt.u=0,w.push("scaleY",f),f+="X";else{if("transformOrigin"===f){x.push(gn,0,T[gn]),a=Nn(a),_.svg?Hn(t,a,0,v,0,this):((d=parseFloat(a.split(" ")[2])||0)!==_.zOrigin&&An(this,_,"zOrigin",_.zOrigin,d),An(this,T,f,Vn(s),Vn(a)));continue}if("svgOrigin"===f){Hn(t,a,1,v,0,this);continue}if(f in jn){ei(this,_,f,l,p?Mt(l,p+a):a);continue}if("smoothOrigin"===f){An(this,_,"smooth",_.smooth,a);continue}if("force3D"===f){_[f]=a;continue}if("transform"===f){ni(this,a,t);continue}}}else f in T||(f=Tn(f)||f);if(g||(o||0===o)&&(l||0===l)&&!Kr.test(a)&&f in T)o||(o=0),(h=(s+"").substr((l+"").length))!==(d=fe(a)||(f in A.units?A.units[f]:h))&&(l=Dn(t,f,s,d)),this._pt=new Or(this._pt,g?_:T,f,l,(p?Mt(l,p+o):o)-l,g||"px"!==d&&"zIndex"!==f||!1===e.autoRound?tn:sn),this._pt.u=d||0,g&&b!==a?(this._pt.b=s,this._pt.e=b,this._pt.r=nn):h!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=rn);else if(f in T)Fn.call(this,t,f,s,p?p+a:a);else if(f in t)this.add(t,f,s||t[f],p?p+a:a,n,i);else if("parseTransform"!==f){lt(f,a);continue}g||(f in T?x.push(f,0,T[f]):"function"==typeof t[f]?x.push(f,2,t[f]()):x.push(f,1,s||t[f])),w.push(f)}y&&Tr(this)},render:function(t,e){if(e.tween._time||!Wr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:zn,aliases:Jr,getSetter:function(t,e,r){var n=Jr[e];return n&&n.indexOf(",")<0&&(e=n),e in Ur&&e!==gn&&(t._gsap.x||zn(t,"x"))?r&&qr===r?"scale"===e?fn:cn:(qr=r||{})&&("scale"===e?hn:dn):t.style&&!q(t.style[e])?ln:~e.indexOf("-")?un:gr(t,e)},core:{_removeProperty:Mn,_getMatrix:Wn}};Nr.utils.checkPrefix=Tn,Nr.core.getStyleSaver=yn,ai=Ct((ii="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(si="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Ur[t]=1}),Ct(si,function(t){A.units[t]="deg",jn[t]=1}),Jr[ai[13]]=ii+","+si,Ct("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Jr[e[1]]=ai[e[0]]}),Ct("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){A.units[t]="px"}),Nr.registerPlugin(oi);var li=Nr.registerPlugin(oi)||Nr;function ui(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)}}li.core.Tween;
19
19
  /*!
20
20
  * Observer 3.15.0
21
21
  * https://gsap.com
@@ -24,7 +24,7 @@ var Sr,Mr,Ar,Pr,Rr,Dr,zr,Fr,Ir={},Nr=180/Math.PI,Br=Math.PI/180,Lr=Math.atan2,Yr
24
24
  * Subject to the terms at https://gsap.com/standard-license
25
25
  * @author: Jack Doyle, jack@greensock.com
26
26
  */
27
- var ti,ei,ri,ni,ii,si,oi,ai,li,ui,ci,fi,hi,di=function(){return ti||"undefined"!=typeof window&&(ti=window.gsap)&&ti.registerPlugin&&ti},pi=1,gi=[],mi=[],_i=[],vi=Date.now,yi=function(t,e){return e},xi=function(t,e){return~_i.indexOf(t)&&_i[_i.indexOf(t)+1][e]},bi=function(t){return!!~ui.indexOf(t)},wi=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},Ti=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},ki="scrollLeft",Ci="scrollTop",Oi=function(){return ci&&ci.isPressed||mi.cache++},Ei=function(t,e){var r=function r(n){if(n||0===n){pi&&(ri.history.scrollRestoration="manual");var i=ci&&ci.isPressed;n=r.v=Math.round(n)||(ci&&ci.iOS?1:0),t(n),r.cacheID=mi.cache,i&&yi("ss",n)}else(e||mi.cache!==r.cacheID||yi("ref"))&&(r.cacheID=mi.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},Si={s:ki,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Ei(function(t){return arguments.length?ri.scrollTo(t,Mi.sc()):ri.pageXOffset||ni[ki]||ii[ki]||si[ki]||0})},Mi={s:Ci,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Si,sc:Ei(function(t){return arguments.length?ri.scrollTo(Si.sc(),t):ri.pageYOffset||ni[Ci]||ii[Ci]||si[Ci]||0})},Ai=function(t,e){return(e&&e._ctx&&e._ctx.selector||ti.utils.toArray)(t)[0]||("string"==typeof t&&!1!==ti.config().nullTargetWarn?console.warn("Element not found:",t):null)},Pi=function(t,e){var r=e.s,n=e.sc;bi(t)&&(t=ni.scrollingElement||ii);var i=mi.indexOf(t),s=n===Mi.sc?1:2;!~i&&(i=mi.push(t)-1),mi[i+s]||wi(t,"scroll",Oi);var o=mi[i+s],a=o||(mi[i+s]=Ei(xi(t,r),!0)||(bi(t)?n:Ei(function(e){return arguments.length?t[r]=e:t[r]})));return a.target=t,o||(a.smooth="smooth"===ti.getProperty(t,"scrollBehavior")),a},Ri=function(t,e,r){var n=t,i=t,s=vi(),o=s,a=e||50,l=Math.max(500,3*a),u=function(t,e){var l=vi();e||l-s>a?(i=n,n=t,o=s,s=l):r?n+=t:n=i+(t-i)/(l-o)*(s-o)};return{update:u,reset:function(){i=n=r?0:n,o=s=0},getVelocity:function(t){var e=o,a=i,c=vi();return(t||0===t)&&t!==n&&u(t),s===o||c-o>l?0:(n+(r?a:-a))/((r?c:s)-e)*1e3}}},Di=function(t,e){return e&&!t._gsapAllow&&!1!==t.cancelable&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},zi=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},Fi=function(){var t,e,r,n;(li=ti.core.globals().ScrollTrigger)&&li.core&&(t=li.core,e=t.bridge||{},r=t._scrollers,n=t._proxies,r.push.apply(r,mi),n.push.apply(n,_i),mi=r,_i=n,yi=function(t,r){return e[t](r)})},Ii=function(t){return ti=t||di(),!ei&&ti&&"undefined"!=typeof document&&document.body&&(ri=window,ni=document,ii=ni.documentElement,si=ni.body,ui=[ri,ni,ii,si],ti.utils.clamp,hi=ti.core.context||function(){},ai="onpointerenter"in si?"pointer":"mouse",oi=Ni.isTouch=ri.matchMedia&&ri.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ri||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,fi=Ni.eventTypes=("ontouchstart"in ii?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in ii?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return pi=0},500),ei=1),li||Fi(),ei};Si.op=Mi,mi.cache=0;var Ni=function(){function t(t){this.init(t)}var e,r,n;return t.prototype.init=function(t){ei||Ii(ti)||console.warn("Please gsap.registerPlugin(Observer)"),li||Fi();var e=t.tolerance,r=t.dragMinimum,n=t.type,i=t.target,s=t.lineHeight,o=t.debounce,a=t.preventDefault,l=t.onStop,u=t.onStopDelay,c=t.ignore,f=t.wheelSpeed,h=t.event,d=t.onDragStart,p=t.onDragEnd,g=t.onDrag,m=t.onPress,_=t.onRelease,v=t.onRight,y=t.onLeft,x=t.onUp,b=t.onDown,w=t.onChangeX,T=t.onChangeY,k=t.onChange,C=t.onToggleX,O=t.onToggleY,E=t.onHover,S=t.onHoverEnd,M=t.onMove,A=t.ignoreCheck,P=t.isNormalizer,R=t.onGestureStart,D=t.onGestureEnd,z=t.onWheel,F=t.onEnable,I=t.onDisable,N=t.onClick,B=t.scrollSpeed,L=t.capture,Y=t.allowClicks,X=t.lockAxis,j=t.onLockAxis;this.target=i=Ai(i)||ii,this.vars=t,c&&(c=ti.utils.toArray(c)),e=e||1e-9,r=r||0,f=f||1,B=B||1,n=n||"wheel,touch,pointer",o=!1!==o,s||(s=parseFloat(ri.getComputedStyle(si).lineHeight)||22);var q,H,W,U,V,G,$,Q=this,Z=0,K=0,J=t.passive||!a&&!1!==t.passive,tt=Pi(i,Si),et=Pi(i,Mi),rt=tt(),nt=et(),it=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===fi[0],st=bi(i),ot=i.ownerDocument||ni,at=[0,0,0],lt=[0,0,0],ut=0,ct=function(){return ut=vi()},ft=function(t,e){return(Q.event=t)&&c&&function(t,e){for(var r=e.length;r--;)if(e[r]===t||e[r].contains(t))return!0;return!1}(t.target,c)||e&&it&&"touch"!==t.pointerType||A&&A(t,e)},ht=function(){var t=Q.deltaX=zi(at),r=Q.deltaY=zi(lt),n=Math.abs(t)>=e,i=Math.abs(r)>=e;k&&(n||i)&&k(Q,t,r,at,lt),n&&(v&&Q.deltaX>0&&v(Q),y&&Q.deltaX<0&&y(Q),w&&w(Q),C&&Q.deltaX<0!=Z<0&&C(Q),Z=Q.deltaX,at[0]=at[1]=at[2]=0),i&&(b&&Q.deltaY>0&&b(Q),x&&Q.deltaY<0&&x(Q),T&&T(Q),O&&Q.deltaY<0!=K<0&&O(Q),K=Q.deltaY,lt[0]=lt[1]=lt[2]=0),(U||W)&&(M&&M(Q),W&&(d&&1===W&&d(Q),g&&g(Q),W=0),U=!1),G&&!(G=!1)&&j&&j(Q),V&&(z(Q),V=!1),q=0},dt=function(t,e,r){at[r]+=t,lt[r]+=e,Q._vx.update(t),Q._vy.update(e),o?q||(q=requestAnimationFrame(ht)):ht()},pt=function(t,e){X&&!$&&(Q.axis=$=Math.abs(t)>Math.abs(e)?"x":"y",G=!0),"y"!==$&&(at[2]+=t,Q._vx.update(t,!0)),"x"!==$&&(lt[2]+=e,Q._vy.update(e,!0)),o?q||(q=requestAnimationFrame(ht)):ht()},gt=function(t){if(!ft(t,1)){var e=(t=Di(t,a)).clientX,n=t.clientY,i=e-Q.x,s=n-Q.y,o=Q.isDragging;Q.x=e,Q.y=n,(o||(i||s)&&(Math.abs(Q.startX-e)>=r||Math.abs(Q.startY-n)>=r))&&(W||(W=o?2:1),o||(Q.isDragging=!0),pt(i,s))}},mt=Q.onPress=function(t){ft(t,1)||t&&t.button||(Q.axis=$=null,H.pause(),Q.isPressed=!0,t=Di(t),Z=K=0,Q.startX=Q.x=t.clientX,Q.startY=Q.y=t.clientY,Q._vx.reset(),Q._vy.reset(),wi(P?i:ot,fi[1],gt,J,!0),Q.deltaX=Q.deltaY=0,m&&m(Q))},_t=Q.onRelease=function(t){if(!ft(t,1)){Ti(P?i:ot,fi[1],gt,!0);var e=!isNaN(Q.y-Q.startY),r=Q.isDragging,n=r&&(Math.abs(Q.x-Q.startX)>3||Math.abs(Q.y-Q.startY)>3),s=Di(t);!n&&e&&(Q._vx.reset(),Q._vy.reset(),a&&Y&&ti.delayedCall(.08,function(){if(vi()-ut>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(ot.createEvent){var e=ot.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,ri,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),Q.isDragging=Q.isGesturing=Q.isPressed=!1,l&&r&&!P&&H.restart(!0),W&&ht(),p&&r&&p(Q),_&&_(Q,n)}},vt=function(t){return t.touches&&t.touches.length>1&&(Q.isGesturing=!0)&&R(t,Q.isDragging)},yt=function(){return(Q.isGesturing=!1)||D(Q)},xt=function(t){if(!ft(t)){var e=tt(),r=et();dt((e-rt)*B,(r-nt)*B,1),rt=e,nt=r,l&&H.restart(!0)}},bt=function(t){if(!ft(t)){t=Di(t,a),z&&(V=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?ri.innerHeight:1)*f;dt(t.deltaX*e,t.deltaY*e,0),l&&!P&&H.restart(!0)}},wt=function(t){if(!ft(t)){var e=t.clientX,r=t.clientY,n=e-Q.x,i=r-Q.y;Q.x=e,Q.y=r,U=!0,l&&H.restart(!0),(n||i)&&pt(n,i)}},Tt=function(t){Q.event=t,E(Q)},kt=function(t){Q.event=t,S(Q)},Ct=function(t){return ft(t)||Di(t,a)&&N(Q)};H=Q._dc=ti.delayedCall(u||.25,function(){Q._vx.reset(),Q._vy.reset(),H.pause(),l&&l(Q)}).pause(),Q.deltaX=Q.deltaY=0,Q._vx=Ri(0,50,!0),Q._vy=Ri(0,50,!0),Q.scrollX=tt,Q.scrollY=et,Q.isDragging=Q.isGesturing=Q.isPressed=!1,hi(this),Q.enable=function(t){return Q.isEnabled||(wi(st?ot:i,"scroll",Oi),n.indexOf("scroll")>=0&&wi(st?ot:i,"scroll",xt,J,L),n.indexOf("wheel")>=0&&wi(i,"wheel",bt,J,L),(n.indexOf("touch")>=0&&oi||n.indexOf("pointer")>=0)&&(wi(i,fi[0],mt,J,L),wi(ot,fi[2],_t),wi(ot,fi[3],_t),Y&&wi(i,"click",ct,!0,!0),N&&wi(i,"click",Ct),R&&wi(ot,"gesturestart",vt),D&&wi(ot,"gestureend",yt),E&&wi(i,ai+"enter",Tt),S&&wi(i,ai+"leave",kt),M&&wi(i,ai+"move",wt)),Q.isEnabled=!0,Q.isDragging=Q.isGesturing=Q.isPressed=U=W=!1,Q._vx.reset(),Q._vy.reset(),rt=tt(),nt=et(),t&&t.type&&mt(t),F&&F(Q)),Q},Q.disable=function(){Q.isEnabled&&(gi.filter(function(t){return t!==Q&&bi(t.target)}).length||Ti(st?ot:i,"scroll",Oi),Q.isPressed&&(Q._vx.reset(),Q._vy.reset(),Ti(P?i:ot,fi[1],gt,!0)),Ti(st?ot:i,"scroll",xt,L),Ti(i,"wheel",bt,L),Ti(i,fi[0],mt,L),Ti(ot,fi[2],_t),Ti(ot,fi[3],_t),Ti(i,"click",ct,!0),Ti(i,"click",Ct),Ti(ot,"gesturestart",vt),Ti(ot,"gestureend",yt),Ti(i,ai+"enter",Tt),Ti(i,ai+"leave",kt),Ti(i,ai+"move",wt),Q.isEnabled=Q.isPressed=Q.isDragging=!1,I&&I(Q))},Q.kill=Q.revert=function(){Q.disable();var t=gi.indexOf(Q);t>=0&&gi.splice(t,1),ci===Q&&(ci=0)},gi.push(Q),P&&bi(i)&&(ci=Q),Q.enable(h)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&Jn(e.prototype,r),n&&Jn(e,n),t}();Ni.version="3.15.0",Ni.create=function(t){return new Ni(t)},Ni.register=Ii,Ni.getAll=function(){return gi.slice()},Ni.getById=function(t){return gi.filter(function(e){return e.vars.id===t})[0]},di()&&ti.registerPlugin(Ni);
27
+ var ci,fi,hi,di,pi,gi,mi,_i,vi,yi,xi,bi,wi,Ti=function(){return ci||"undefined"!=typeof window&&(ci=window.gsap)&&ci.registerPlugin&&ci},Oi=1,ki=[],Ci=[],Ei=[],Si=Date.now,Mi=function(t,e){return e},Ai=function(t,e){return~Ei.indexOf(t)&&Ei[Ei.indexOf(t)+1][e]},Pi=function(t){return!!~yi.indexOf(t)},Ri=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},Di=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},zi="scrollLeft",Fi="scrollTop",Ii=function(){return xi&&xi.isPressed||Ci.cache++},Ni=function(t,e){var r=function r(n){if(n||0===n){Oi&&(hi.history.scrollRestoration="manual");var i=xi&&xi.isPressed;n=r.v=Math.round(n)||(xi&&xi.iOS?1:0),t(n),r.cacheID=Ci.cache,i&&Mi("ss",n)}else(e||Ci.cache!==r.cacheID||Mi("ref"))&&(r.cacheID=Ci.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},Bi={s:zi,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Ni(function(t){return arguments.length?hi.scrollTo(t,Li.sc()):hi.pageXOffset||di[zi]||pi[zi]||gi[zi]||0})},Li={s:Fi,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Bi,sc:Ni(function(t){return arguments.length?hi.scrollTo(Bi.sc(),t):hi.pageYOffset||di[Fi]||pi[Fi]||gi[Fi]||0})},Yi=function(t,e){return(e&&e._ctx&&e._ctx.selector||ci.utils.toArray)(t)[0]||("string"==typeof t&&!1!==ci.config().nullTargetWarn?console.warn("Element not found:",t):null)},ji=function(t,e){var r=e.s,n=e.sc;Pi(t)&&(t=di.scrollingElement||pi);var i=Ci.indexOf(t),s=n===Li.sc?1:2;!~i&&(i=Ci.push(t)-1),Ci[i+s]||Ri(t,"scroll",Ii);var a=Ci[i+s],o=a||(Ci[i+s]=Ni(Ai(t,r),!0)||(Pi(t)?n:Ni(function(e){return arguments.length?t[r]=e:t[r]})));return o.target=t,a||(o.smooth="smooth"===ci.getProperty(t,"scrollBehavior")),o},Xi=function(t,e,r){var n=t,i=t,s=Si(),a=s,o=e||50,l=Math.max(500,3*o),u=function(t,e){var l=Si();e||l-s>o?(i=n,n=t,a=s,s=l):r?n+=t:n=i+(t-i)/(l-a)*(s-a)};return{update:u,reset:function(){i=n=r?0:n,a=s=0},getVelocity:function(t){var e=a,o=i,c=Si();return(t||0===t)&&t!==n&&u(t),s===a||c-a>l?0:(n+(r?o:-o))/((r?c:s)-e)*1e3}}},qi=function(t,e){return e&&!t._gsapAllow&&!1!==t.cancelable&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Wi=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},Hi=function(){var t,e,r,n;(vi=ci.core.globals().ScrollTrigger)&&vi.core&&(t=vi.core,e=t.bridge||{},r=t._scrollers,n=t._proxies,r.push.apply(r,Ci),n.push.apply(n,Ei),Ci=r,Ei=n,Mi=function(t,r){return e[t](r)})},Ui=function(t){return ci=t||Ti(),!fi&&ci&&"undefined"!=typeof document&&document.body&&(hi=window,di=document,pi=di.documentElement,gi=di.body,yi=[hi,di,pi,gi],ci.utils.clamp,wi=ci.core.context||function(){},_i="onpointerenter"in gi?"pointer":"mouse",mi=Vi.isTouch=hi.matchMedia&&hi.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in hi||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,bi=Vi.eventTypes=("ontouchstart"in pi?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in pi?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Oi=0},500),fi=1),vi||Hi(),fi};Bi.op=Li,Ci.cache=0;var Vi=function(){function t(t){this.init(t)}var e,r,n;return t.prototype.init=function(t){fi||Ui(ci)||console.warn("Please gsap.registerPlugin(Observer)"),vi||Hi();var e=t.tolerance,r=t.dragMinimum,n=t.type,i=t.target,s=t.lineHeight,a=t.debounce,o=t.preventDefault,l=t.onStop,u=t.onStopDelay,c=t.ignore,f=t.wheelSpeed,h=t.event,d=t.onDragStart,p=t.onDragEnd,g=t.onDrag,m=t.onPress,_=t.onRelease,v=t.onRight,y=t.onLeft,x=t.onUp,b=t.onDown,w=t.onChangeX,T=t.onChangeY,O=t.onChange,k=t.onToggleX,C=t.onToggleY,E=t.onHover,S=t.onHoverEnd,M=t.onMove,A=t.ignoreCheck,P=t.isNormalizer,R=t.onGestureStart,D=t.onGestureEnd,z=t.onWheel,F=t.onEnable,I=t.onDisable,N=t.onClick,B=t.scrollSpeed,L=t.capture,Y=t.allowClicks,j=t.lockAxis,X=t.onLockAxis;this.target=i=Yi(i)||pi,this.vars=t,c&&(c=ci.utils.toArray(c)),e=e||1e-9,r=r||0,f=f||1,B=B||1,n=n||"wheel,touch,pointer",a=!1!==a,s||(s=parseFloat(hi.getComputedStyle(gi).lineHeight)||22);var q,W,H,U,V,G,$,Z=this,Q=0,K=0,J=t.passive||!o&&!1!==t.passive,tt=ji(i,Bi),et=ji(i,Li),rt=tt(),nt=et(),it=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===bi[0],st=Pi(i),at=i.ownerDocument||di,ot=[0,0,0],lt=[0,0,0],ut=0,ct=function(){return ut=Si()},ft=function(t,e){return(Z.event=t)&&c&&function(t,e){for(var r=e.length;r--;)if(e[r]===t||e[r].contains(t))return!0;return!1}(t.target,c)||e&&it&&"touch"!==t.pointerType||A&&A(t,e)},ht=function(){var t=Z.deltaX=Wi(ot),r=Z.deltaY=Wi(lt),n=Math.abs(t)>=e,i=Math.abs(r)>=e;O&&(n||i)&&O(Z,t,r,ot,lt),n&&(v&&Z.deltaX>0&&v(Z),y&&Z.deltaX<0&&y(Z),w&&w(Z),k&&Z.deltaX<0!=Q<0&&k(Z),Q=Z.deltaX,ot[0]=ot[1]=ot[2]=0),i&&(b&&Z.deltaY>0&&b(Z),x&&Z.deltaY<0&&x(Z),T&&T(Z),C&&Z.deltaY<0!=K<0&&C(Z),K=Z.deltaY,lt[0]=lt[1]=lt[2]=0),(U||H)&&(M&&M(Z),H&&(d&&1===H&&d(Z),g&&g(Z),H=0),U=!1),G&&!(G=!1)&&X&&X(Z),V&&(z(Z),V=!1),q=0},dt=function(t,e,r){ot[r]+=t,lt[r]+=e,Z._vx.update(t),Z._vy.update(e),a?q||(q=requestAnimationFrame(ht)):ht()},pt=function(t,e){j&&!$&&(Z.axis=$=Math.abs(t)>Math.abs(e)?"x":"y",G=!0),"y"!==$&&(ot[2]+=t,Z._vx.update(t,!0)),"x"!==$&&(lt[2]+=e,Z._vy.update(e,!0)),a?q||(q=requestAnimationFrame(ht)):ht()},gt=function(t){if(!ft(t,1)){var e=(t=qi(t,o)).clientX,n=t.clientY,i=e-Z.x,s=n-Z.y,a=Z.isDragging;Z.x=e,Z.y=n,(a||(i||s)&&(Math.abs(Z.startX-e)>=r||Math.abs(Z.startY-n)>=r))&&(H||(H=a?2:1),a||(Z.isDragging=!0),pt(i,s))}},mt=Z.onPress=function(t){ft(t,1)||t&&t.button||(Z.axis=$=null,W.pause(),Z.isPressed=!0,t=qi(t),Q=K=0,Z.startX=Z.x=t.clientX,Z.startY=Z.y=t.clientY,Z._vx.reset(),Z._vy.reset(),Ri(P?i:at,bi[1],gt,J,!0),Z.deltaX=Z.deltaY=0,m&&m(Z))},_t=Z.onRelease=function(t){if(!ft(t,1)){Di(P?i:at,bi[1],gt,!0);var e=!isNaN(Z.y-Z.startY),r=Z.isDragging,n=r&&(Math.abs(Z.x-Z.startX)>3||Math.abs(Z.y-Z.startY)>3),s=qi(t);!n&&e&&(Z._vx.reset(),Z._vy.reset(),o&&Y&&ci.delayedCall(.08,function(){if(Si()-ut>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(at.createEvent){var e=at.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,hi,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),Z.isDragging=Z.isGesturing=Z.isPressed=!1,l&&r&&!P&&W.restart(!0),H&&ht(),p&&r&&p(Z),_&&_(Z,n)}},vt=function(t){return t.touches&&t.touches.length>1&&(Z.isGesturing=!0)&&R(t,Z.isDragging)},yt=function(){return(Z.isGesturing=!1)||D(Z)},xt=function(t){if(!ft(t)){var e=tt(),r=et();dt((e-rt)*B,(r-nt)*B,1),rt=e,nt=r,l&&W.restart(!0)}},bt=function(t){if(!ft(t)){t=qi(t,o),z&&(V=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?hi.innerHeight:1)*f;dt(t.deltaX*e,t.deltaY*e,0),l&&!P&&W.restart(!0)}},wt=function(t){if(!ft(t)){var e=t.clientX,r=t.clientY,n=e-Z.x,i=r-Z.y;Z.x=e,Z.y=r,U=!0,l&&W.restart(!0),(n||i)&&pt(n,i)}},Tt=function(t){Z.event=t,E(Z)},Ot=function(t){Z.event=t,S(Z)},kt=function(t){return ft(t)||qi(t,o)&&N(Z)};W=Z._dc=ci.delayedCall(u||.25,function(){Z._vx.reset(),Z._vy.reset(),W.pause(),l&&l(Z)}).pause(),Z.deltaX=Z.deltaY=0,Z._vx=Xi(0,50,!0),Z._vy=Xi(0,50,!0),Z.scrollX=tt,Z.scrollY=et,Z.isDragging=Z.isGesturing=Z.isPressed=!1,wi(this),Z.enable=function(t){return Z.isEnabled||(Ri(st?at:i,"scroll",Ii),n.indexOf("scroll")>=0&&Ri(st?at:i,"scroll",xt,J,L),n.indexOf("wheel")>=0&&Ri(i,"wheel",bt,J,L),(n.indexOf("touch")>=0&&mi||n.indexOf("pointer")>=0)&&(Ri(i,bi[0],mt,J,L),Ri(at,bi[2],_t),Ri(at,bi[3],_t),Y&&Ri(i,"click",ct,!0,!0),N&&Ri(i,"click",kt),R&&Ri(at,"gesturestart",vt),D&&Ri(at,"gestureend",yt),E&&Ri(i,_i+"enter",Tt),S&&Ri(i,_i+"leave",Ot),M&&Ri(i,_i+"move",wt)),Z.isEnabled=!0,Z.isDragging=Z.isGesturing=Z.isPressed=U=H=!1,Z._vx.reset(),Z._vy.reset(),rt=tt(),nt=et(),t&&t.type&&mt(t),F&&F(Z)),Z},Z.disable=function(){Z.isEnabled&&(ki.filter(function(t){return t!==Z&&Pi(t.target)}).length||Di(st?at:i,"scroll",Ii),Z.isPressed&&(Z._vx.reset(),Z._vy.reset(),Di(P?i:at,bi[1],gt,!0)),Di(st?at:i,"scroll",xt,L),Di(i,"wheel",bt,L),Di(i,bi[0],mt,L),Di(at,bi[2],_t),Di(at,bi[3],_t),Di(i,"click",ct,!0),Di(i,"click",kt),Di(at,"gesturestart",vt),Di(at,"gestureend",yt),Di(i,_i+"enter",Tt),Di(i,_i+"leave",Ot),Di(i,_i+"move",wt),Z.isEnabled=Z.isPressed=Z.isDragging=!1,I&&I(Z))},Z.kill=Z.revert=function(){Z.disable();var t=ki.indexOf(Z);t>=0&&ki.splice(t,1),xi===Z&&(xi=0)},ki.push(Z),P&&Pi(i)&&(xi=Z),Z.enable(h)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&ui(e.prototype,r),n&&ui(e,n),t}();Vi.version="3.15.0",Vi.create=function(t){return new Vi(t)},Vi.register=Ui,Vi.getAll=function(){return ki.slice()},Vi.getById=function(t){return ki.filter(function(e){return e.vars.id===t})[0]},Ti()&&ci.registerPlugin(Vi);
28
28
  /*!
29
29
  * ScrollTrigger 3.15.0
30
30
  * https://gsap.com
@@ -33,7 +33,7 @@ var ti,ei,ri,ni,ii,si,oi,ai,li,ui,ci,fi,hi,di=function(){return ti||"undefined"!
33
33
  * Subject to the terms at https://gsap.com/standard-license
34
34
  * @author: Jack Doyle, jack@greensock.com
35
35
  */
36
- var Bi,Li,Yi,Xi,ji,qi,Hi,Wi,Ui,Vi,Gi,$i,Qi,Zi,Ki,Ji,ts,es,rs,ns,is,ss,os,as,ls,us,cs,fs,hs,ds,ps,gs,ms,_s,vs,ys,xs,bs,ws=1,Ts=Date.now,ks=Ts(),Cs=0,Os=0,Es=function(t,e,r){var n=Xs(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Ss=function(t,e){return!e||Xs(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Ms=function t(){return Os&&requestAnimationFrame(t)},As=function(){return Zi=1},Ps=function(){return Zi=0},Rs=function(t){return t},Ds=function(t){return Math.round(1e5*t)/1e5||0},zs=function(){return"undefined"!=typeof window},Fs=function(){return Bi||zs()&&(Bi=window.gsap)&&Bi.registerPlugin&&Bi},Is=function(t){return!!~Hi.indexOf(t)},Ns=function(t){return("Height"===t?ps:Yi["inner"+t])||ji["client"+t]||qi["client"+t]},Bs=function(t){return xi(t,"getBoundingClientRect")||(Is(t)?function(){return Jo.width=Yi.innerWidth,Jo.height=ps,Jo}:function(){return co(t)})},Ls=function(t,e){var r=e.s,n=e.d2,i=e.d,s=e.a;return Math.max(0,(r="scroll"+n)&&(s=xi(t,r))?s()-Bs(t)()[i]:Is(t)?(ji[r]||qi[r])-Ns(n):t[r]-t["offset"+n])},Ys=function(t,e){for(var r=0;r<rs.length;r+=3)(!e||~e.indexOf(rs[r+1]))&&t(rs[r],rs[r+1],rs[r+2])},Xs=function(t){return"string"==typeof t},js=function(t){return"function"==typeof t},qs=function(t){return"number"==typeof t},Hs=function(t){return"object"==typeof t},Ws=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},Us=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)}},Vs=Math.abs,Gs="left",$s="right",Qs="bottom",Zs="width",Ks="height",Js="Right",to="Left",eo="Top",ro="Bottom",no="padding",io="margin",so="Width",oo="Height",ao="px",lo=function(t){return Yi.getComputedStyle(t.nodeType===Node.DOCUMENT_NODE?t.scrollingElement:t)},uo=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},co=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==lo(t)[Ki]&&Bi.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},fo=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},ho=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},po=function(t){var e=Bi.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)}},go=function(t,e,r,n){return r.split(",").forEach(function(r){return t(e,r,n)})},mo=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},_o=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},vo=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},yo={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},xo={toggleActions:"play",anticipatePin:0},bo={top:0,left:0,center:.5,bottom:1,right:1},wo=function(t,e){if(Xs(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 bo?bo[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},To=function(t,e,r,n,i,s,o,a){var l=i.startColor,u=i.endColor,c=i.fontSize,f=i.indent,h=i.fontWeight,d=Xi.createElement("div"),p=Is(r)||"fixed"===xi(r,"pinType"),g=-1!==t.indexOf("scroller"),m=p?qi:"IFRAME"===r.tagName?r.contentDocument.body:r,_=-1!==t.indexOf("start"),v=_?l:u,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:"+((g||a)&&p?"fixed;":"absolute;"),(g||a||!p)&&(y+=(n===Mi?$s:Qs)+":"+(s+parseFloat(f))+"px;"),o&&(y+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),d._isStart=_,d.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),d.style.cssText=y,d.innerText=e||0===e?t+"-"+e:t,m.children[0]?m.insertBefore(d,m.children[0]):m.appendChild(d),d._offset=d["offset"+n.op.d2],ko(d,0,n,_),d},ko=function(t,e,r,n){var i={display:"block"},s=r[n?"os2":"p2"],o=r[n?"p2":"os2"];t._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+s+so]=1,i["border"+o+so]=0,i[r.p]=e+"px",Bi.set(t,i)},Co=[],Oo={},Eo=function(){return Ts()-Cs>34&&(vs||(vs=requestAnimationFrame(Uo)))},So=function(){(!os||!os.isPressed||os.startX>qi.clientWidth)&&(mi.cache++,os?vs||(vs=requestAnimationFrame(Uo)):Uo(),Cs||zo("scrollStart"),Cs=Ts())},Mo=function(){us=Yi.innerWidth,ls=Yi.innerHeight},Ao=function(t){mi.cache++,(!0===t||!Qi&&!ss&&!Xi.fullscreenElement&&!Xi.webkitFullscreenElement&&(!as||us!==Yi.innerWidth||Math.abs(Yi.innerHeight-ls)>.25*Yi.innerHeight))&&Wi.restart(!0)},Po={},Ro=[],Do=function t(){return _o(oa,"scrollEnd",t)||qo(!0)},zo=function(t){return Po[t]&&Po[t].map(function(t){return t()})||Ro},Fo=[],Io=function(t){for(var e=0;e<Fo.length;e+=5)(!t||Fo[e+4]&&Fo[e+4].query===t)&&(Fo[e].style.cssText=Fo[e+1],Fo[e].getBBox&&Fo[e].setAttribute("transform",Fo[e+2]||""),Fo[e+3].uncache=1)},No=function(){return mi.forEach(function(t){return js(t)&&++t.cacheID&&(t.rec=t())})},Bo=function(t,e){var r;for(Ji=0;Ji<Co.length;Ji++)!(r=Co[Ji])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));gs=!0,e&&Io(e),e||zo("revert")},Lo=function(t,e){mi.cache++,(e||!ys)&&mi.forEach(function(t){return js(t)&&t.cacheID++&&(t.rec=0)}),Xs(t)&&(Yi.history.scrollRestoration=hs=t)},Yo=0,Xo=function(){qi.appendChild(ds),ps=!os&&ds.offsetHeight||Yi.innerHeight,qi.removeChild(ds)},jo=function(t){return Ui(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},qo=function(t,e){if(ji=Xi.documentElement,qi=Xi.body,Hi=[Yi,Xi,ji,qi],!Cs||t||gs){Xo(),ys=oa.isRefreshing=!0,gs||No();var r=zo("refreshInit");ns&&oa.sort(),e||Bo(),mi.forEach(function(t){js(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))}),Co.slice(0).forEach(function(t){return t.refresh()}),gs=!1,Co.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()}}),ms=1,jo(!0),Co.forEach(function(t){var e=Ls(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)}),jo(!1),ms=0,r.forEach(function(t){return t&&t.render&&t.render(-1)}),mi.forEach(function(t){js(t)&&(t.smooth&&requestAnimationFrame(function(){return t.target.style.scrollBehavior="smooth"}),t.rec&&t(t.rec))}),Lo(hs,1),Wi.pause(),Yo++,ys=2,Uo(2),Co.forEach(function(t){return js(t.vars.onRefresh)&&t.vars.onRefresh(t)}),ys=oa.isRefreshing=!1,zo("refresh")}else mo(oa,"scrollEnd",Do)},Ho=0,Wo=1,Uo=function(t){if(2===t||!ys&&!gs){oa.isUpdating=!0,bs&&bs.update(0);var e=Co.length,r=Ts(),n=r-ks>=50,i=e&&Co[0].scroll();if(Wo=Ho>i?-1:1,ys||(Ho=i),n&&(Cs&&!Zi&&r-Cs>200&&(Cs=0,zo("scrollEnd")),Gi=ks,ks=r),Wo<0){for(Ji=e;Ji-- >0;)Co[Ji]&&Co[Ji].update(0,n);Wo=1}else for(Ji=0;Ji<e;Ji++)Co[Ji]&&Co[Ji].update(0,n);oa.isUpdating=!1}vs=0},Vo=[Gs,"top",Qs,$s,io+ro,io+Js,io+eo,io+to,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Go=Vo.concat([Zs,Ks,"boxSizing","max"+so,"max"+oo,"position",io,no,no+eo,no+Js,no+ro,no+to]),$o=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,s=Vo.length,o=e.style,a=t.style;s--;)o[i=Vo[s]]=r[i];o.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(o.display="inline-block"),a[Qs]=a[$s]="auto",o.flexBasis=r.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[Zs]=fo(t,Si)+ao,o[Ks]=fo(t,Mi)+ao,o[no]=a[io]=a.top=a[Gs]="0",Zo(n),a[Zs]=a["max"+so]=r[Zs],a[Ks]=a["max"+oo]=r[Ks],a[no]=r[no],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},Qo=/([A-Z])/g,Zo=function(t){if(t){var e,r,n=t.t.style,i=t.length,s=0;for((t.t._gsap||Bi.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(Qo,"-$1").toLowerCase())}},Ko=function(t){for(var e=Go.length,r=t.style,n=[],i=0;i<e;i++)n.push(Go[i],r[Go[i]]);return n.t=t,n},Jo={left:0,top:0},ta=function(t,e,r,n,i,s,o,a,l,u,c,f,h,d){js(t)&&(t=t(a)),Xs(t)&&"max"===t.substr(0,3)&&(t=f+("="===t.charAt(4)?wo("0"+t.substr(3),r):0));var p,g,m,_=h?h.time():0;if(h&&h.seek(0),isNaN(t)||(t=+t),qs(t))h&&(t=Bi.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,f,t)),o&&ko(o,r,n,!0);else{js(e)&&(e=e(a));var v,y,x,b,w=(t||"0").split(" ");m=Ai(e,a)||qi,(v=co(m)||{})&&(v.left||v.top)||"none"!==lo(m).display||(b=m.style.display,m.style.display="block",v=co(m),b?m.style.display=b:m.style.removeProperty("display")),y=wo(w[0],v[n.d]),x=wo(w[1]||"0",r),t=v[n.p]-l[n.p]-u+y+i-x,o&&ko(o,x,n,r-x<20||o._isStart&&x>20),r-=r-x}if(d&&(a[d]=t||-.001,t<0&&(t=0)),s){var T=t+r,k=s._isStart;p="scroll"+n.d2,ko(s,T,n,k&&T>20||!k&&(c?Math.max(qi[p],ji[p]):s.parentNode[p])<=T+1),c&&(l=co(o),c&&(s.style[n.op.p]=l[n.op.p]-n.op.m-s._offset+ao))}return h&&m&&(p=co(m),h.seek(f),g=co(m),h._caScrollDist=p[n.p]-g[n.p],t=t/h._caScrollDist*f),h&&h.seek(_),h?t:Math.round(t)},ea=/(webkit|moz|length|cssText|inset)/i,ra=function(t,e,r,n){if(t.parentNode!==e){var i,s,o=t.style;if(e===qi){for(i in t._stOrig=o.cssText,s=lo(t))+i||ea.test(i)||!s[i]||"string"!=typeof o[i]||"0"===i||(o[i]=s[i]);o.top=r,o.left=n}else o.cssText=t._stOrig;Bi.core.getCache(t).uncache=1,e.appendChild(t)}},na=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)}},ia=function(t,e,r){var n={};n[e.p]="+="+r,Bi.set(t,n)},sa=function(t,e){var r=Pi(t,e),n="_scroll"+e.p2,i=function e(i,s,o,a,l){var u=e.tween,c=s.onComplete,f={};o=o||r();var h=na(r,o,function(){u.kill(),e.tween=0});return l=a&&l||0,a=a||i-o,u&&u.kill(),s[n]=i,s.inherit=!1,s.modifiers=f,f[n]=function(){return h(o+a*u.ratio+l*u.ratio*u.ratio)},s.onUpdate=function(){mi.cache++,e.tween&&Uo()},s.onComplete=function(){e.tween=0,c&&c.call(u)},u=e.tween=Bi.to(t,s)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},mo(t,"wheel",r.wheelHandler),oa.isTouch&&mo(t,"touchmove",r.wheelHandler),i},oa=function(){function t(e,r){Li||t.register(Bi)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),fs(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Os){var n,i,s,o,a,l,u,c,f,h,d,p,g,m,_,v,y,x,b,w,T,k,C,O,E,S,M,A,P,R,D,z,F,I,N,B,L,Y,X,j,q,H,W=e=uo(Xs(e)||qs(e)||e.nodeType?{trigger:e}:e,xo),U=W.onUpdate,V=W.toggleClass,G=W.id,$=W.onToggle,Q=W.onRefresh,Z=W.scrub,K=W.trigger,J=W.pin,tt=W.pinSpacing,et=W.invalidateOnRefresh,rt=W.anticipatePin,nt=W.onScrubComplete,it=W.onSnapComplete,st=W.once,ot=W.snap,at=W.pinReparent,lt=W.pinSpacer,ut=W.containerAnimation,ct=W.fastScrollEnd,ft=W.preventOverlaps,ht=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Si:Mi,dt=!Z&&0!==Z,pt=Ai(e.scroller||Yi),gt=Bi.core.getCache(pt),mt=Is(pt),_t="fixed"===("pinType"in e?e.pinType:xi(pt,"pinType")||mt&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=dt&&e.toggleActions.split(" "),xt="markers"in e?e.markers:xo.markers,bt=mt?0:parseFloat(lo(pt)["border"+ht.p2+so])||0,wt=this,Tt=e.onRefreshInit&&function(){return e.onRefreshInit(wt)},kt=function(t,e,r){var n=r.d,i=r.d2,s=r.a;return(s=xi(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?Ns(i):t["client"+i])||0}}(pt,mt,ht),Ct=function(t,e){return!e||~_i.indexOf(t)?Bs(t):function(){return Jo}}(pt,mt),Ot=0,Et=0,St=0,Mt=Pi(pt,ht);if(wt._startClamp=wt._endClamp=!1,wt._dir=ht,rt*=45,wt.scroller=pt,wt.scroll=ut?ut.time.bind(ut):Mt,o=Mt(),wt.vars=e,r=r||e.animation,"refreshPriority"in e&&(ns=1,-9999===e.refreshPriority&&(bs=wt)),gt.tweenScroll=gt.tweenScroll||{top:sa(pt,Mi),left:sa(pt,Si)},wt.tweenTo=n=gt.tweenScroll[ht.p],wt.scrubDuration=function(t){(F=qs(t)&&t)?z?z.duration(t):z=Bi.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:F,paused:!0,onComplete:function(){return nt&&nt(wt)}}):(z&&z.progress(1).kill(),z=0)},r&&(r.vars.lazy=!1,r._initted&&!wt.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),wt.animation=r.pause(),r.scrollTrigger=wt,wt.scrubDuration(Z),R=0,G||(G=r.vars.id)),ot&&(Hs(ot)&&!ot.push||(ot={snapTo:ot}),"scrollBehavior"in qi.style&&Bi.set(mt?[qi,ji]:pt,{scrollBehavior:"auto"}),mi.forEach(function(t){return js(t)&&t.target===(mt?Xi.scrollingElement||ji:pt)&&(t.smooth=!1)}),s=js(ot.snapTo)?ot.snapTo:"labels"===ot.snapTo?function(t){return function(e){return Bi.utils.snap(ho(t),e)}}(r):"labelsDirectional"===ot.snapTo?(j=r,function(t,e){return po(ho(j))(t,e.direction)}):!1!==ot.directional?function(t,e){return po(ot.snapTo)(t,Ts()-Et<500?0:e.direction)}:Bi.utils.snap(ot.snapTo),I=ot.duration||{min:.1,max:2},I=Hs(I)?Vi(I.min,I.max):Vi(I,I),N=Bi.delayedCall(ot.delay||F/2||.1,function(){var t=Mt(),e=Ts()-Et<500,i=n.tween;if(!(e||Math.abs(wt.getVelocity())<10)||i||Zi||Ot===t)wt.isActive&&Ot!==t&&N.restart(!0);else{var o,a,c=(t-l)/m,f=r&&!dt?r.totalProgress():c,h=e?0:(f-D)/(Ts()-Gi)*1e3||0,d=Bi.utils.clamp(-c,1-c,Vs(h/2)*h/.185),p=c+(!1===ot.inertia?0:d),g=ot,_=g.onStart,v=g.onInterrupt,y=g.onComplete;if(o=s(p,wt),qs(o)||(o=p),a=Math.max(0,Math.round(l+o*m)),t<=u&&t>=l&&a!==t){if(i&&!i._initted&&i.data<=Vs(a-t))return;!1===ot.inertia&&(d=o-c),n(a,{duration:I(Vs(.185*Math.max(Vs(p-f),Vs(o-f))/h/.05||0)),ease:ot.ease||"power3",data:Vs(a-t),onInterrupt:function(){return N.restart(!0)&&v&&Us(wt,v)},onComplete:function(){wt.update(),Ot=Mt(),r&&!dt&&(z?z.resetTo("totalProgress",o,r._tTime/r._tDur):r.progress(o)),R=D=r&&!dt?r.totalProgress():wt.progress,it&&it(wt),y&&Us(wt,y)}},t,d*m,a-t-d*m),_&&Us(wt,_,n.tween)}}}).pause()),G&&(Oo[G]=wt),(X=(K=wt.trigger=Ai(K||!0!==J&&J))&&K._gsap&&K._gsap.stRevert)&&(X=X(wt)),J=!0===J?K:Ai(J),Xs(V)&&(V={targets:K,className:V}),J&&(!1===tt||tt===io||(tt=!(!tt&&J.parentNode&&J.parentNode.style&&"flex"===lo(J.parentNode).display)&&no),wt.pin=J,(i=Bi.core.getCache(J)).spacer?_=i.pinState:(lt&&((lt=Ai(lt))&&!lt.nodeType&&(lt=lt.current||lt.nativeElement),i.spacerIsNative=!!lt,lt&&(i.spacerState=Ko(lt))),i.spacer=x=lt||Xi.createElement("div"),x.classList.add("pin-spacer"),G&&x.classList.add("pin-spacer-"+G),i.pinState=_=Ko(J)),!1!==e.force3D&&Bi.set(J,{force3D:!0}),wt.spacer=x=i.spacer,P=lo(J),O=P[tt+ht.os2],w=Bi.getProperty(J),T=Bi.quickSetter(J,ht.a,ao),$o(J,x,P),y=Ko(J)),xt){p=Hs(xt)?uo(xt,yo):yo,h=To("scroller-start",G,pt,ht,p,0),d=To("scroller-end",G,pt,ht,p,0,h),b=h["offset"+ht.op.d2];var At=Ai(xi(pt,"content")||pt);c=this.markerStart=To("start",G,At,ht,p,b,0,ut),f=this.markerEnd=To("end",G,At,ht,p,b,0,ut),ut&&(Y=Bi.quickSetter([c,f],ht.a,ao)),_t||_i.length&&!0===xi(pt,"fixedMarkers")||(H=lo(q=mt?qi:pt).position,q.style.position="absolute"===H||"fixed"===H?H:"relative",Bi.set([h,d],{force3D:!0}),S=Bi.quickSetter(h,ht.a,ao),A=Bi.quickSetter(d,ht.a,ao))}if(ut){var Pt=ut.vars.onUpdate,Rt=ut.vars.onUpdateParams;ut.eventCallback("onUpdate",function(){wt.update(0,0,1),Pt&&Pt.apply(ut,Rt||[])})}if(wt.previous=function(){return Co[Co.indexOf(wt)-1]},wt.next=function(){return Co[Co.indexOf(wt)+1]},wt.revert=function(t,e){if(!e)return wt.kill(!0);var n=!1!==t||!wt.enabled,i=Qi;n!==wt.isReverted&&(n&&(B=Math.max(Mt(),wt.scroll.rec||0),St=wt.progress,L=r&&r.progress()),c&&[c,f,h,d].forEach(function(t){return t.style.display=n?"none":"block"}),n&&(Qi=wt,wt.update(n)),!J||at&&wt.isActive||(n?function(t,e,r){Zo(r);var n=t._gsap;if(n.spacerIsNative)Zo(n.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1}(J,x,_):$o(J,x,lo(J),E)),n||wt.update(n),Qi=i,wt.isReverted=n)},wt.refresh=function(i,s,p,b){if(!Qi&&wt.enabled||s)if(J&&i&&Cs)mo(t,"scrollEnd",Do);else{!ys&&Tt&&Tt(wt),Qi=wt,n.tween&&!p&&(n.tween.kill(),n.tween=0),z&&z.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)),wt.isReverted||wt.revert(!0,!0),wt._subPinOffset=!1;var T,O,S,A,P,R,D,F,I,Y,X,j,q,H=kt(),W=Ct(),U=ut?ut.duration():Ls(pt,ht),V=m<=.01||!m,G=0,$=b||0,Z=Hs(p)?p.end:e.end,rt=e.endTrigger||K,nt=Hs(p)?p.start:e.start||(0!==e.start&&K?J?"0 0":"0 100%":0),it=wt.pinnedContainer=e.pinnedContainer&&Ai(e.pinnedContainer,wt),st=K&&Math.max(0,Co.indexOf(wt))||0,ot=st;for(xt&&Hs(p)&&(j=Bi.getProperty(h,ht.p),q=Bi.getProperty(d,ht.p));ot-- >0;)(R=Co[ot]).end||R.refresh(0,1)||(Qi=wt),!(D=R.pin)||D!==K&&D!==J&&D!==it||R.isReverted||(Y||(Y=[]),Y.unshift(R),R.revert(!0,!0)),R!==Co[ot]&&(st--,ot--);for(js(nt)&&(nt=nt(wt)),nt=Es(nt,"start",wt),l=ta(nt,K,H,ht,Mt(),c,h,wt,W,bt,_t,U,ut,wt._startClamp&&"_startClamp")||(J?-.001:0),js(Z)&&(Z=Z(wt)),Xs(Z)&&!Z.indexOf("+=")&&(~Z.indexOf(" ")?Z=(Xs(nt)?nt.split(" ")[0]:"")+Z:(G=wo(Z.substr(2),H),Z=Xs(nt)?nt:(ut?Bi.utils.mapRange(0,ut.duration(),ut.scrollTrigger.start,ut.scrollTrigger.end,l):l)+G,rt=K)),Z=Es(Z,"end",wt),u=Math.max(l,ta(Z||(rt?"100% 0":U),rt,H,ht,Mt()+G,f,d,wt,W,bt,_t,U,ut,wt._endClamp&&"_endClamp"))||-.001,G=0,ot=st;ot--;)(D=(R=Co[ot]||{}).pin)&&R.start-R._pinPush<=l&&!ut&&R.end>0&&(T=R.end-(wt._startClamp?Math.max(0,R.start):R.start),(D===K&&R.start-R._pinPush<l||D===it)&&isNaN(nt)&&(G+=T*(1-R.progress)),D===J&&($+=T));if(l+=G,u+=G,wt._startClamp&&(wt._startClamp+=G),wt._endClamp&&!ys&&(wt._endClamp=u||-.001,u=Math.min(u,Ls(pt,ht))),m=u-l||(l-=.01)&&.001,V&&(St=Bi.utils.clamp(0,1,Bi.utils.normalize(l,u,B))),wt._pinPush=$,c&&G&&((T={})[ht.a]="+="+G,it&&(T[ht.p]="-="+Mt()),Bi.set([c,f],T)),!J||ms&&wt.end>=Ls(pt,ht)){if(K&&Mt()&&!ut)for(O=K.parentNode;O&&O!==qi;)O._pinOffset&&(l-=O._pinOffset,u-=O._pinOffset),O=O.parentNode}else T=lo(J),A=ht===Mi,S=Mt(),k=parseFloat(w(ht.a))+$,!U&&u>1&&(X={style:X=(mt?Xi.scrollingElement||ji:pt).style,value:X["overflow"+ht.a.toUpperCase()]},mt&&"scroll"!==lo(qi)["overflow"+ht.a.toUpperCase()]&&(X.style["overflow"+ht.a.toUpperCase()]="scroll")),$o(J,x,T),y=Ko(J),O=co(J,!0),F=_t&&Pi(pt,A?Si:Mi)(),tt?((E=[tt+ht.os2,m+$+ao]).t=x,(ot=tt===no?fo(J,ht)+m+$:0)&&(E.push(ht.d,ot+ao),"auto"!==x.style.flexBasis&&(x.style.flexBasis=ot+ao)),Zo(E),it&&Co.forEach(function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)}),_t&&Mt(B)):(ot=fo(J,ht))&&"auto"!==x.style.flexBasis&&(x.style.flexBasis=ot+ao),_t&&((P={top:O.top+(A?S-l:F)+ao,left:O.left+(A?F:S-l)+ao,boxSizing:"border-box",position:"fixed"})[Zs]=P["max"+so]=Math.ceil(O.width)+ao,P[Ks]=P["max"+oo]=Math.ceil(O.height)+ao,P[io]=P[io+eo]=P[io+Js]=P[io+ro]=P[io+to]="0",P[no]=T[no],P[no+eo]=T[no+eo],P[no+Js]=T[no+Js],P[no+ro]=T[no+ro],P[no+to]=T[no+to],v=function(t,e,r){for(var n,i=[],s=t.length,o=r?8:0;o<s;o+=2)n=t[o],i.push(n,n in e?e[n]:t[o+1]);return i.t=t.t,i}(_,P,at),ys&&Mt(0)),r?(I=r._initted,is(1),r.render(r.duration(),!0,!0),C=w(ht.a)-k+m+$,M=Math.abs(m-C)>1,_t&&M&&v.splice(v.length-2,2),r.render(0,!0,!0),I||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),is(0)):C=m,X&&(X.value?X.style["overflow"+ht.a.toUpperCase()]=X.value:X.style.removeProperty("overflow-"+ht.a));Y&&Y.forEach(function(t){return t.revert(!1,!0)}),wt.start=l,wt.end=u,o=a=ys?B:Mt(),ut||ys||(o<B&&Mt(B),wt.scroll.rec=0),wt.revert(!1,!0),Et=Ts(),N&&(Ot=-1,N.restart(!0)),Qi=0,r&&dt&&(r._initted||L)&&r.progress()!==L&&r.progress(L||0,!0).render(r.time(),!0,!0),(V||St!==wt.progress||ut||et||r&&!r._initted)&&(r&&!dt&&(r._initted||St||!1!==r.vars.immediateRender)&&r.totalProgress(ut&&l<-.001&&!St?Bi.utils.normalize(l,u,0):St,!0),wt.progress=V||(o-l)/m===St?0:St),J&&tt&&(x._pinOffset=Math.round(wt.progress*C)),z&&z.invalidate(),isNaN(j)||(j-=Bi.getProperty(h,ht.p),q-=Bi.getProperty(d,ht.p),ia(h,ht,j),ia(c,ht,j-(b||0)),ia(d,ht,q),ia(f,ht,q-(b||0))),V&&!ys&&wt.update(),!Q||ys||g||(g=!0,Q(wt),g=!1)}},wt.getVelocity=function(){return(Mt()-a)/(Ts()-Gi)*1e3||0},wt.endAnimation=function(){Ws(wt.callbackAnimation),r&&(z?z.progress(1):r.paused()?dt||Ws(r,wt.direction<0,1):Ws(r,r.reversed()))},wt.labelToScroll=function(t){return r&&r.labels&&(l||wt.refresh()||l)+r.labels[t]/r.duration()*m||0},wt.getTrailing=function(t){var e=Co.indexOf(wt),r=wt.direction>0?Co.slice(0,e).reverse():Co.slice(e+1);return(Xs(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(t){return wt.direction>0?t.end<=l:t.start>=u})},wt.update=function(t,e,i){if(!ut||i||t){var s,c,f,d,p,g,_,b=!0===ys?B:wt.scroll(),w=t?0:(b-l)/m,E=w<0?0:w>1?1:w||0,P=wt.progress;if(e&&(a=o,o=ut?Mt():b,ot&&(D=R,R=r&&!dt?r.totalProgress():E)),rt&&J&&!Qi&&!ws&&Cs&&(!E&&l<b+(b-a)/(Ts()-Gi)*rt?E=1e-4:1===E&&u>b+(b-a)/(Ts()-Gi)*rt&&(E=.9999)),E!==P&&wt.enabled){if(d=(p=(s=wt.isActive=!!E&&E<1)!==(!!P&&P<1))||!!E!=!!P,wt.direction=E>P?1:-1,wt.progress=E,d&&!Qi&&(c=E&&!P?0:1===E?1:1===P?2:3,dt&&(f=!p&&"none"!==yt[c+1]&&yt[c+1]||yt[c],_=r&&("complete"===f||"reset"===f||f in r))),ft&&(p||_)&&(_||Z||!r)&&(js(ft)?ft(wt):wt.getTrailing(ft).forEach(function(t){return t.endAnimation()})),dt||(!z||Qi||ws?r&&r.totalProgress(E,!(!Qi||!Et&&!t)):(z._dp._time-z._start!==z._time&&z.render(z._dp._time-z._start),z.resetTo?z.resetTo("totalProgress",E,r._tTime/r._tDur):(z.vars.totalProgress=E,z.invalidate().restart()))),J)if(t&&tt&&(x.style[tt+ht.os2]=O),_t){if(d){if(g=!t&&E>P&&u+1>b&&b+1>=Ls(pt,ht),at)if(t||!s&&!g)ra(J,x);else{var F=co(J,!0),I=b-l;ra(J,qi,F.top+(ht===Mi?I:0)+ao,F.left+(ht===Mi?0:I)+ao)}Zo(s||g?v:y),M&&E<1&&s||T(k+(1!==E||g?0:C))}}else T(Ds(k+C*E));ot&&!n.tween&&!Qi&&!ws&&N.restart(!0),V&&(p||st&&E&&(E<1||!_s))&&Ui(V.targets).forEach(function(t){return t.classList[s||st?"add":"remove"](V.className)}),U&&!dt&&!t&&U(wt),d&&!Qi?(dt&&(_&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),U&&U(wt)),!p&&_s||($&&p&&Us(wt,$),vt[c]&&Us(wt,vt[c]),st&&(1===E?wt.kill(!1,1):vt[c]=0),p||vt[c=1===E?1:3]&&Us(wt,vt[c])),ct&&!s&&Math.abs(wt.getVelocity())>(qs(ct)?ct:2500)&&(Ws(wt.callbackAnimation),z?z.progress(1):Ws(r,"reverse"===f?1:!E,1))):dt&&U&&!Qi&&U(wt)}if(A){var L=ut?b/ut.duration()*(ut._caScrollDist||0):b;S(L+(h._isFlipped?1:0)),A(L)}Y&&Y(-b/ut.duration()*(ut._caScrollDist||0))}},wt.enable=function(e,r){wt.enabled||(wt.enabled=!0,mo(pt,"resize",Ao),mt||mo(pt,"scroll",So),Tt&&mo(t,"refreshInit",Tt),!1!==e&&(wt.progress=St=0,o=a=Ot=Mt()),!1!==r&&wt.refresh())},wt.getTween=function(t){return t&&n?n.tween:z},wt.setPositions=function(t,e,r,n){if(ut){var i=ut.scrollTrigger,s=ut.duration(),o=i.end-i.start;t=i.start+o*t/s,e=i.start+o*e/s}wt.refresh(!1,!1,{start:Ss(t,r&&!!wt._startClamp),end:Ss(e,r&&!!wt._endClamp)},n),wt.update()},wt.adjustPinSpacing=function(t){if(E&&t){var e=E.indexOf(ht.d)+1;E[e]=parseFloat(E[e])+t+ao,E[1]=parseFloat(E[1])+t+ao,Zo(E)}},wt.disable=function(e,r){if(!1!==e&&wt.revert(!0,!0),wt.enabled&&(wt.enabled=wt.isActive=!1,r||z&&z.pause(),B=0,i&&(i.uncache=1),Tt&&_o(t,"refreshInit",Tt),N&&(N.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!mt)){for(var s=Co.length;s--;)if(Co[s].scroller===pt&&Co[s]!==wt)return;_o(pt,"resize",Ao),mt||_o(pt,"scroll",So)}},wt.kill=function(t,n){wt.disable(t,n),z&&!n&&z.kill(),G&&delete Oo[G];var s=Co.indexOf(wt);s>=0&&Co.splice(s,1),s===Ji&&Wo>0&&Ji--,s=0,Co.forEach(function(t){return t.scroller===wt.scroller&&(s=1)}),s||ys||(wt.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),c&&[c,f,h,d].forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)}),bs===wt&&(bs=0),J&&(i&&(i.uncache=1),s=0,Co.forEach(function(t){return t.pin===J&&s++}),s||(i.spacer=0)),e.onKill&&e.onKill(wt)},Co.push(wt),wt.enable(!1,!1),X&&X(wt),r&&r.add&&!m){var Dt=wt.update;wt.update=function(){wt.update=Dt,mi.cache++,l||u||wt.refresh()},Bi.delayedCall(.01,wt.update),m=.01,l=u=0}else wt.refresh();J&&function(){if(xs!==Yo){var t=xs=Yo;requestAnimationFrame(function(){return t===Yo&&qo(!0)})}}()}else this.update=this.refresh=this.kill=Rs},t.register=function(e){return Li||(Bi=e||Fs(),zs()&&window.document&&t.enable(),Li=Os),Li},t.defaults=function(t){if(t)for(var e in t)xo[e]=t[e];return xo},t.disable=function(t,e){Os=0,Co.forEach(function(r){return r[e?"kill":"disable"](t)}),_o(Yi,"wheel",So),_o(Xi,"scroll",So),clearInterval($i),_o(Xi,"touchcancel",Rs),_o(qi,"touchstart",Rs),go(_o,Xi,"pointerdown,touchstart,mousedown",As),go(_o,Xi,"pointerup,touchend,mouseup",Ps),Wi.kill(),Ys(_o);for(var r=0;r<mi.length;r+=3)vo(_o,mi[r],mi[r+1]),vo(_o,mi[r],mi[r+2])},t.enable=function(){if(Yi=window,Xi=document,ji=Xi.documentElement,qi=Xi.body,Bi)if(Ui=Bi.utils.toArray,Vi=Bi.utils.clamp,fs=Bi.core.context||Rs,is=Bi.core.suppressOverwrites||Rs,hs=Yi.history.scrollRestoration||"auto",Ho=Yi.pageYOffset||0,Bi.core.globals("ScrollTrigger",t),qi){Os=1,(ds=document.createElement("div")).style.height="100vh",ds.style.position="absolute",Xo(),Ms(),Ni.register(Bi),t.isTouch=Ni.isTouch,cs=Ni.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),as=1===Ni.isTouch,mo(Yi,"wheel",So),Hi=[Yi,Xi,ji,qi],Bi.matchMedia?(t.matchMedia=function(t){var e,r=Bi.matchMedia();for(e in t)r.add(e,t[e]);return r},Bi.addEventListener("matchMediaInit",function(){No(),Bo()}),Bi.addEventListener("matchMediaRevert",function(){return Io()}),Bi.addEventListener("matchMedia",function(){qo(0,1),zo("matchMedia")}),Bi.matchMedia().add("(orientation: portrait)",function(){return Mo(),Mo})):console.warn("Requires GSAP 3.11.0 or later"),Mo(),mo(Xi,"scroll",So);var e,r,n=qi.hasAttribute("style"),i=qi.style,s=i.borderTopStyle,o=Bi.core.Animation.prototype;for(o.revert||Object.defineProperty(o,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",e=co(qi),Mi.m=Math.round(e.top+Mi.sc())||0,Si.m=Math.round(e.left+Si.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),n||(qi.setAttribute("style",""),qi.removeAttribute("style")),$i=setInterval(Eo,250),Bi.delayedCall(.5,function(){return ws=0}),mo(Xi,"touchcancel",Rs),mo(qi,"touchstart",Rs),go(mo,Xi,"pointerdown,touchstart,mousedown",As),go(mo,Xi,"pointerup,touchend,mouseup",Ps),Ki=Bi.utils.checkPrefix("transform"),Go.push(Ki),Li=Ts(),Wi=Bi.delayedCall(.2,qo).pause(),rs=[Xi,"visibilitychange",function(){var t=Yi.innerWidth,e=Yi.innerHeight;Xi.hidden?(ts=t,es=e):ts===t&&es===e||Ao()},Xi,"DOMContentLoaded",qo,Yi,"load",qo,Yi,"resize",Ao],Ys(mo),Co.forEach(function(t){return t.enable(0,1)}),r=0;r<mi.length;r+=3)vo(_o,mi[r],mi[r+1]),vo(_o,mi[r],mi[r+2])}else if(Xi){Xi.addEventListener("DOMContentLoaded",function e(){t.enable(),Xi.removeEventListener("DOMContentLoaded",e)})}},t.config=function(e){"limitCallbacks"in e&&(_s=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval($i)||($i=r)&&setInterval(Eo,r),"ignoreMobileResize"in e&&(as=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Ys(_o)||Ys(mo,e.autoRefreshEvents||"none"),ss=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=Ai(t),n=mi.indexOf(r),i=Is(r);~n&&mi.splice(n,i?6:2),e&&(i?_i.unshift(Yi,e,qi,e,ji,e):_i.unshift(r,e))},t.clearMatchMedia=function(t){Co.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},t.isInViewport=function(t,e,r){var n=(Xs(t)?Ai(t):t).getBoundingClientRect(),i=n[r?Zs:Ks]*e||0;return r?n.right-i>0&&n.left+i<Yi.innerWidth:n.bottom-i>0&&n.top+i<Yi.innerHeight},t.positionInViewport=function(t,e,r){Xs(t)&&(t=Ai(t));var n=t.getBoundingClientRect(),i=n[r?Zs:Ks],s=null==e?i/2:e in bo?bo[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+s)/Yi.innerWidth:(n.top+s)/Yi.innerHeight},t.killAll=function(t){if(Co.slice(0).forEach(function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()}),!0!==t){var e=Po.killAll||[];Po={},e.forEach(function(t){return t()})}},t}();oa.version="3.15.0",oa.saveStyles=function(t){return t?Ui(t).forEach(function(t){if(t&&t.style){var e=Fo.indexOf(t);e>=0&&Fo.splice(e,5),Fo.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Bi.core.getCache(t),fs())}}):Fo},oa.revert=function(t,e){return Bo(!t,e)},oa.create=function(t,e){return new oa(t,e)},oa.refresh=function(t){return t?Ao(!0):(Li||oa.register())&&qo(!0)},oa.update=function(t){return++mi.cache&&Uo(!0===t?2:0)},oa.clearScrollMemory=Lo,oa.maxScroll=function(t,e){return Ls(t,e?Si:Mi)},oa.getScrollFunc=function(t,e){return Pi(Ai(t),e?Si:Mi)},oa.getById=function(t){return Oo[t]},oa.getAll=function(){return Co.filter(function(t){return"ScrollSmoother"!==t.vars.id})},oa.isScrolling=function(){return!!Cs},oa.snapDirectional=po,oa.addEventListener=function(t,e){var r=Po[t]||(Po[t]=[]);~r.indexOf(e)||r.push(e)},oa.removeEventListener=function(t,e){var r=Po[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},oa.batch=function(t,e){var r,n=[],i={},s=e.interval||.016,o=e.batchMax||1e9,a=function(t,e){var r=[],n=[],i=Bi.delayedCall(s,function(){e(r,n),r=[],n=[]}).pause();return function(t){r.length||i.restart(!0),r.push(t.trigger),n.push(t),o<=r.length&&i.progress(1)}};for(r in e)i[r]="on"===r.substr(0,2)&&js(e[r])&&"onRefreshInit"!==r?a(0,e[r]):e[r];return js(o)&&(o=o(),mo(oa,"refresh",function(){return o=e.batchMax()})),Ui(t).forEach(function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(oa.create(e))}),n};var aa,la=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},ua=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(Ni.isTouch?" pinch-zoom":""):"none",e===ji&&t(qi,r)},ca={auto:1,scroll:1},fa=function(t){var e,r=t.event,n=t.target,i=t.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,o=s._gsap||Bi.core.getCache(s),a=Ts();if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==qi&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!ca[(e=lo(s)).overflowY]&&!ca[e.overflowX]);)s=s.parentNode;o._isScroll=s&&s!==n&&!Is(s)&&(ca[(e=lo(s)).overflowY]||ca[e.overflowX]),o._isScrollT=a}(o._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},ha=function(t,e,r,n){return Ni.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&fa,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&mo(Xi,Ni.eventTypes[0],pa,!1,!0)},onDisable:function(){return _o(Xi,Ni.eventTypes[0],pa,!0)}})},da=/(input|label|select|textarea)/i,pa=function(t){var e=da.test(t.target.tagName);(e||aa)&&(t._gsapAllow=!0,aa=e)},ga=function(t){Hs(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,o,a,l,u=t,c=u.normalizeScrollX,f=u.momentum,h=u.allowNestedScroll,d=u.onRelease,p=Ai(t.target)||ji,g=Bi.core.globals().ScrollSmoother,m=g&&g.get(),_=cs&&(t.content&&Ai(t.content)||m&&!1!==t.content&&!m.smooth()&&m.content()),v=Pi(p,Mi),y=Pi(p,Si),x=1,b=(Ni.isTouch&&Yi.visualViewport?Yi.visualViewport.scale*Yi.visualViewport.width:Yi.outerWidth)/Yi.innerWidth,w=0,T=js(f)?function(){return f(e)}:function(){return f||2.8},k=ha(p,t.type,!0,h),C=function(){return i=!1},O=Rs,E=Rs,S=function(){r=Ls(p,Mi),E=Vi(cs?1:0,r),c&&(O=Vi(0,Ls(p,Si))),n=Yo},M=function(){_._gsap.y=Ds(parseFloat(_._gsap.y)+v.offset)+"px",_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(_._gsap.y)+", 0, 1)",v.offset=v.cacheID=0},A=function(){S(),s.isActive()&&s.vars.scrollY>r&&(v()>r?s.progress(1)&&v(r):s.resetTo("scrollY",r))};return _&&Bi.set(_,{y:"+=0"}),t.ignoreCheck=function(t){return cs&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(C);var t=Ds(e.deltaY/2),r=E(v.v-t);if(_&&r!==v.v+v.offset){v.offset=r-v.v;var n=Ds((parseFloat(_&&_._gsap.y)||0)-v.offset);_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",_._gsap.y=n+"px",v.cacheID=mi.cache,Uo()}return!0}v.offset&&M(),i=!0}()||x>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=x;x=Ds((Yi.visualViewport&&Yi.visualViewport.scale||1)/b),s.pause(),t!==x&&ua(p,x>1.01||!c&&"x"),o=y(),a=v(),S(),n=Yo},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&M(),e){mi.cache++;var n,i,o=T();c&&(i=(n=y())+.05*o*-t.velocityX/.227,o*=la(y,n,i,Ls(p,Si)),s.vars.scrollX=O(i)),i=(n=v())+.05*o*-t.velocityY/.227,o*=la(v,n,i,Ls(p,Mi)),s.vars.scrollY=E(i),s.invalidate().duration(o).play(.01),(cs&&s.vars.scrollY>=r||n>=r-1)&&Bi.to({},{onUpdate:A,duration:o})}else l.restart(!0);d&&d(t)},t.onWheel=function(){s._ts&&s.pause(),Ts()-w>1e3&&(n=0,w=Ts())},t.onChange=function(t,e,r,i,s){if(Yo!==n&&S(),e&&c&&y(O(i[2]===e?o+(t.startX-t.x):y()+e-i[1])),r){v.offset&&M();var l=s[2]===r,u=l?a+t.startY-t.y:v()+r-s[1],f=E(u);l&&u!==f&&(a+=f-u),v(f)}(r||e)&&Uo()},t.onEnable=function(){ua(p,!c&&"x"),oa.addEventListener("refresh",A),mo(Yi,"resize",A),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),k.enable()},t.onDisable=function(){ua(p,!0),_o(Yi,"resize",A),oa.removeEventListener("refresh",A),k.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Ni(t)).iOS=cs,cs&&!v()&&v(1),cs&&Bi.ticker.add(Rs),l=e._dc,s=Bi.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:na(v,v(),function(){return s.pause()})},onUpdate:Uo,onComplete:l.vars.onComplete}),e};oa.sort=function(t){if(js(t))return Co.sort(t);var e=Yi.pageYOffset||0;return oa.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+Yi.innerHeight}),Co.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))})},oa.observe=function(t){return new Ni(t)},oa.normalizeScroll=function(t){if(void 0===t)return os;if(!0===t&&os)return os.enable();if(!1===t)return os&&os.kill(),void(os=t);var e=t instanceof Ni?t:ga(t);return os&&os.target===e.target&&os.kill(),Is(e.target)&&(os=e),e},oa.core={_getVelocityProp:Ri,_inputObserver:ha,_scrollers:mi,_proxies:_i,bridge:{ss:function(){Cs||zo("scrollStart"),Cs=Ts()},ref:function(){return Qi}}},Fs()&&Bi.registerPlugin(oa);const ma={findScrollingElement:function(t,e){let r=e?t:document.querySelector(t);for(;r;){const{overflowY:t}=getComputedStyle(r);if(("auto"===t||"scroll"===t)&&r.scrollHeight>r.clientHeight)return r;r=r.parentElement}return document.scrollingElement}},{findScrollingElement:_a}=ma;function va({scrollingElement:a,direction:l="normal",children:u=t("div",{children:"Nothing to Display, Please add some properly styled content"}),style:c,className:f,startAnimation:h="bottom",gsapScrollTrigger:d,scrollSpeed:p=1}){const g=r(),[m,_]=n(!1),[v,y]=n(0);return i(()=>{!function(){if(m)return;const t=function(){const t=g.current;if(!t)return;const e=t.children,r=e[0].getBoundingClientRect().width;let n=0;for(let t=0;t<e.length;t++)n+=e[t].getBoundingClientRect().width;return n-r}();t&&y(t),_(!0)}()},[]),s(()=>{const t=g.current;if(!t||!v)return;let e=Kn.context(()=>{var e,r;const n=a?document.querySelector(`${a}`):_a(t,!0),i=null!==(e={normal:-v,reverse:v,backward:v}[l])&&void 0!==e?e:-v,s=null!==(r={top:"top top",within:`top ${(window.innerHeight-t.getBoundingClientRect().height)/2}px`,bottom:"bottom bottom"}[h])&&void 0!==r?r:h,o=Kn.quickTo(t,"x",{ease:"power3.out",duration:.2});oa.create(Object.assign({trigger:t,scroller:n,start:s,end:`+=${v/p}px`,pin:!0,scrub:!0,invalidateOnRefresh:!0,onUpdate:t=>{o(i*t.progress)}},d))},g);return()=>e.revert()},[v,l,h,p,a,d]),t("div",{ref:g,style:Object.assign({width:"100%",height:"auto",position:"relative",display:"flex",alignItems:"flex-start",justifyContent:""+("backward"==l?"flex-end":"flex-start"),flexDirection:""+("reverse"==l?"row-reverse":"row")},c),className:`${f} scroll_container`,children:e.Children.map(u,(e,r)=>t(o,{children:e},r))})}Kn.registerPlugin(oa);var ya=Object.freeze({__proto__:null,default:va});function xa(t,e,r,n){return new(r||(r=Promise))(function(i,s){function o(t){try{l(n.next(t))}catch(t){s(t)}}function a(t){try{l(n.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(o,a)}l((n=n.apply(t,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;
36
+ var Gi,$i,Zi,Qi,Ki,Ji,ts,es,rs,ns,is,ss,as,os,ls,us,cs,fs,hs,ds,ps,gs,ms,_s,vs,ys,xs,bs,ws,Ts,Os,ks,Cs,Es,Ss,Ms,As,Ps,Rs=1,Ds=Date.now,zs=Ds(),Fs=0,Is=0,Ns=function(t,e,r){var n=Qs(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Bs=function(t,e){return!e||Qs(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Ls=function t(){return Is&&requestAnimationFrame(t)},Ys=function(){return os=1},js=function(){return os=0},Xs=function(t){return t},qs=function(t){return Math.round(1e5*t)/1e5||0},Ws=function(){return"undefined"!=typeof window},Hs=function(){return Gi||Ws()&&(Gi=window.gsap)&&Gi.registerPlugin&&Gi},Us=function(t){return!!~ts.indexOf(t)},Vs=function(t){return("Height"===t?Os:Zi["inner"+t])||Ki["client"+t]||Ji["client"+t]},Gs=function(t){return Ai(t,"getBoundingClientRect")||(Us(t)?function(){return lo.width=Zi.innerWidth,lo.height=Os,lo}:function(){return xa(t)})},$s=function(t,e){var r=e.s,n=e.d2,i=e.d,s=e.a;return Math.max(0,(r="scroll"+n)&&(s=Ai(t,r))?s()-Gs(t)()[i]:Us(t)?(Ki[r]||Ji[r])-Vs(n):t[r]-t["offset"+n])},Zs=function(t,e){for(var r=0;r<hs.length;r+=3)(!e||~e.indexOf(hs[r+1]))&&t(hs[r],hs[r+1],hs[r+2])},Qs=function(t){return"string"==typeof t},Ks=function(t){return"function"==typeof t},Js=function(t){return"number"==typeof t},ta=function(t){return"object"==typeof t},ea=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},ra=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)}},na=Math.abs,ia="left",sa="right",aa="bottom",oa="width",la="height",ua="Right",ca="Left",fa="Top",ha="Bottom",da="padding",pa="margin",ga="Width",ma="Height",_a="px",va=function(t){return Zi.getComputedStyle(t.nodeType===Node.DOCUMENT_NODE?t.scrollingElement:t)},ya=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},xa=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==va(t)[ls]&&Gi.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},ba=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},wa=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},Ta=function(t){var e=Gi.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)}},Oa=function(t,e,r,n){return r.split(",").forEach(function(r){return t(e,r,n)})},ka=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},Ca=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},Ea=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},Sa={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Ma={toggleActions:"play",anticipatePin:0},Aa={top:0,left:0,center:.5,bottom:1,right:1},Pa=function(t,e){if(Qs(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 Aa?Aa[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Ra=function(t,e,r,n,i,s,a,o){var l=i.startColor,u=i.endColor,c=i.fontSize,f=i.indent,h=i.fontWeight,d=Qi.createElement("div"),p=Us(r)||"fixed"===Ai(r,"pinType"),g=-1!==t.indexOf("scroller"),m=p?Ji:"IFRAME"===r.tagName?r.contentDocument.body:r,_=-1!==t.indexOf("start"),v=_?l:u,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:"+((g||o)&&p?"fixed;":"absolute;"),(g||o||!p)&&(y+=(n===Li?sa:aa)+":"+(s+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),d._isStart=_,d.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),d.style.cssText=y,d.innerText=e||0===e?t+"-"+e:t,m.children[0]?m.insertBefore(d,m.children[0]):m.appendChild(d),d._offset=d["offset"+n.op.d2],Da(d,0,n,_),d},Da=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+ga]=1,i["border"+a+ga]=0,i[r.p]=e+"px",Gi.set(t,i)},za=[],Fa={},Ia=function(){return Ds()-Fs>34&&(Ss||(Ss=requestAnimationFrame(eo)))},Na=function(){(!ms||!ms.isPressed||ms.startX>Ji.clientWidth)&&(Ci.cache++,ms?Ss||(Ss=requestAnimationFrame(eo)):eo(),Fs||qa("scrollStart"),Fs=Ds())},Ba=function(){ys=Zi.innerWidth,vs=Zi.innerHeight},La=function(t){Ci.cache++,(!0===t||!as&&!gs&&!Qi.fullscreenElement&&!Qi.webkitFullscreenElement&&(!_s||ys!==Zi.innerWidth||Math.abs(Zi.innerHeight-vs)>.25*Zi.innerHeight))&&es.restart(!0)},Ya={},ja=[],Xa=function t(){return Ca(mo,"scrollEnd",t)||Ka(!0)},qa=function(t){return Ya[t]&&Ya[t].map(function(t){return t()})||ja},Wa=[],Ha=function(t){for(var e=0;e<Wa.length;e+=5)(!t||Wa[e+4]&&Wa[e+4].query===t)&&(Wa[e].style.cssText=Wa[e+1],Wa[e].getBBox&&Wa[e].setAttribute("transform",Wa[e+2]||""),Wa[e+3].uncache=1)},Ua=function(){return Ci.forEach(function(t){return Ks(t)&&++t.cacheID&&(t.rec=t())})},Va=function(t,e){var r;for(us=0;us<za.length;us++)!(r=za[us])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));ks=!0,e&&Ha(e),e||qa("revert")},Ga=function(t,e){Ci.cache++,(e||!Ms)&&Ci.forEach(function(t){return Ks(t)&&t.cacheID++&&(t.rec=0)}),Qs(t)&&(Zi.history.scrollRestoration=ws=t)},$a=0,Za=function(){Ji.appendChild(Ts),Os=!ms&&Ts.offsetHeight||Zi.innerHeight,Ji.removeChild(Ts)},Qa=function(t){return rs(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},Ka=function(t,e){if(Ki=Qi.documentElement,Ji=Qi.body,ts=[Zi,Qi,Ki,Ji],!Fs||t||ks){Za(),Ms=mo.isRefreshing=!0,ks||Ua();var r=qa("refreshInit");ds&&mo.sort(),e||Va(),Ci.forEach(function(t){Ks(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))}),za.slice(0).forEach(function(t){return t.refresh()}),ks=!1,za.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()}}),Cs=1,Qa(!0),za.forEach(function(t){var e=$s(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)}),Qa(!1),Cs=0,r.forEach(function(t){return t&&t.render&&t.render(-1)}),Ci.forEach(function(t){Ks(t)&&(t.smooth&&requestAnimationFrame(function(){return t.target.style.scrollBehavior="smooth"}),t.rec&&t(t.rec))}),Ga(ws,1),es.pause(),$a++,Ms=2,eo(2),za.forEach(function(t){return Ks(t.vars.onRefresh)&&t.vars.onRefresh(t)}),Ms=mo.isRefreshing=!1,qa("refresh")}else ka(mo,"scrollEnd",Xa)},Ja=0,to=1,eo=function(t){if(2===t||!Ms&&!ks){mo.isUpdating=!0,Ps&&Ps.update(0);var e=za.length,r=Ds(),n=r-zs>=50,i=e&&za[0].scroll();if(to=Ja>i?-1:1,Ms||(Ja=i),n&&(Fs&&!os&&r-Fs>200&&(Fs=0,qa("scrollEnd")),is=zs,zs=r),to<0){for(us=e;us-- >0;)za[us]&&za[us].update(0,n);to=1}else for(us=0;us<e;us++)za[us]&&za[us].update(0,n);mo.isUpdating=!1}Ss=0},ro=[ia,"top",aa,sa,pa+ha,pa+ua,pa+fa,pa+ca,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],no=ro.concat([oa,la,"boxSizing","max"+ga,"max"+ma,"position",pa,da,da+fa,da+ua,da+ha,da+ca]),io=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,s=ro.length,a=e.style,o=t.style;s--;)a[i=ro[s]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),o[aa]=o[sa]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[oa]=ba(t,Bi)+_a,a[la]=ba(t,Li)+_a,a[da]=o[pa]=o.top=o[ia]="0",ao(n),o[oa]=o["max"+ga]=r[oa],o[la]=o["max"+ma]=r[la],o[da]=r[da],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},so=/([A-Z])/g,ao=function(t){if(t){var e,r,n=t.t.style,i=t.length,s=0;for((t.t._gsap||Gi.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(so,"-$1").toLowerCase())}},oo=function(t){for(var e=no.length,r=t.style,n=[],i=0;i<e;i++)n.push(no[i],r[no[i]]);return n.t=t,n},lo={left:0,top:0},uo=function(t,e,r,n,i,s,a,o,l,u,c,f,h,d){Ks(t)&&(t=t(o)),Qs(t)&&"max"===t.substr(0,3)&&(t=f+("="===t.charAt(4)?Pa("0"+t.substr(3),r):0));var p,g,m,_=h?h.time():0;if(h&&h.seek(0),isNaN(t)||(t=+t),Js(t))h&&(t=Gi.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,f,t)),a&&Da(a,r,n,!0);else{Ks(e)&&(e=e(o));var v,y,x,b,w=(t||"0").split(" ");m=Yi(e,o)||Ji,(v=xa(m)||{})&&(v.left||v.top)||"none"!==va(m).display||(b=m.style.display,m.style.display="block",v=xa(m),b?m.style.display=b:m.style.removeProperty("display")),y=Pa(w[0],v[n.d]),x=Pa(w[1]||"0",r),t=v[n.p]-l[n.p]-u+y+i-x,a&&Da(a,x,n,r-x<20||a._isStart&&x>20),r-=r-x}if(d&&(o[d]=t||-.001,t<0&&(t=0)),s){var T=t+r,O=s._isStart;p="scroll"+n.d2,Da(s,T,n,O&&T>20||!O&&(c?Math.max(Ji[p],Ki[p]):s.parentNode[p])<=T+1),c&&(l=xa(a),c&&(s.style[n.op.p]=l[n.op.p]-n.op.m-s._offset+_a))}return h&&m&&(p=xa(m),h.seek(f),g=xa(m),h._caScrollDist=p[n.p]-g[n.p],t=t/h._caScrollDist*f),h&&h.seek(_),h?t:Math.round(t)},co=/(webkit|moz|length|cssText|inset)/i,fo=function(t,e,r,n){if(t.parentNode!==e){var i,s,a=t.style;if(e===Ji){for(i in t._stOrig=a.cssText,s=va(t))+i||co.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;Gi.core.getCache(t).uncache=1,e.appendChild(t)}},ho=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)}},po=function(t,e,r){var n={};n[e.p]="+="+r,Gi.set(t,n)},go=function(t,e){var r=ji(t,e),n="_scroll"+e.p2,i=function e(i,s,a,o,l){var u=e.tween,c=s.onComplete,f={};a=a||r();var h=ho(r,a,function(){u.kill(),e.tween=0});return l=o&&l||0,o=o||i-a,u&&u.kill(),s[n]=i,s.inherit=!1,s.modifiers=f,f[n]=function(){return h(a+o*u.ratio+l*u.ratio*u.ratio)},s.onUpdate=function(){Ci.cache++,e.tween&&eo()},s.onComplete=function(){e.tween=0,c&&c.call(u)},u=e.tween=Gi.to(t,s)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},ka(t,"wheel",r.wheelHandler),mo.isTouch&&ka(t,"touchmove",r.wheelHandler),i},mo=function(){function t(e,r){$i||t.register(Gi)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),bs(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Is){var n,i,s,a,o,l,u,c,f,h,d,p,g,m,_,v,y,x,b,w,T,O,k,C,E,S,M,A,P,R,D,z,F,I,N,B,L,Y,j,X,q,W,H=e=ya(Qs(e)||Js(e)||e.nodeType?{trigger:e}:e,Ma),U=H.onUpdate,V=H.toggleClass,G=H.id,$=H.onToggle,Z=H.onRefresh,Q=H.scrub,K=H.trigger,J=H.pin,tt=H.pinSpacing,et=H.invalidateOnRefresh,rt=H.anticipatePin,nt=H.onScrubComplete,it=H.onSnapComplete,st=H.once,at=H.snap,ot=H.pinReparent,lt=H.pinSpacer,ut=H.containerAnimation,ct=H.fastScrollEnd,ft=H.preventOverlaps,ht=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Bi:Li,dt=!Q&&0!==Q,pt=Yi(e.scroller||Zi),gt=Gi.core.getCache(pt),mt=Us(pt),_t="fixed"===("pinType"in e?e.pinType:Ai(pt,"pinType")||mt&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=dt&&e.toggleActions.split(" "),xt="markers"in e?e.markers:Ma.markers,bt=mt?0:parseFloat(va(pt)["border"+ht.p2+ga])||0,wt=this,Tt=e.onRefreshInit&&function(){return e.onRefreshInit(wt)},Ot=function(t,e,r){var n=r.d,i=r.d2,s=r.a;return(s=Ai(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?Vs(i):t["client"+i])||0}}(pt,mt,ht),kt=function(t,e){return!e||~Ei.indexOf(t)?Gs(t):function(){return lo}}(pt,mt),Ct=0,Et=0,St=0,Mt=ji(pt,ht);if(wt._startClamp=wt._endClamp=!1,wt._dir=ht,rt*=45,wt.scroller=pt,wt.scroll=ut?ut.time.bind(ut):Mt,a=Mt(),wt.vars=e,r=r||e.animation,"refreshPriority"in e&&(ds=1,-9999===e.refreshPriority&&(Ps=wt)),gt.tweenScroll=gt.tweenScroll||{top:go(pt,Li),left:go(pt,Bi)},wt.tweenTo=n=gt.tweenScroll[ht.p],wt.scrubDuration=function(t){(F=Js(t)&&t)?z?z.duration(t):z=Gi.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:F,paused:!0,onComplete:function(){return nt&&nt(wt)}}):(z&&z.progress(1).kill(),z=0)},r&&(r.vars.lazy=!1,r._initted&&!wt.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),wt.animation=r.pause(),r.scrollTrigger=wt,wt.scrubDuration(Q),R=0,G||(G=r.vars.id)),at&&(ta(at)&&!at.push||(at={snapTo:at}),"scrollBehavior"in Ji.style&&Gi.set(mt?[Ji,Ki]:pt,{scrollBehavior:"auto"}),Ci.forEach(function(t){return Ks(t)&&t.target===(mt?Qi.scrollingElement||Ki:pt)&&(t.smooth=!1)}),s=Ks(at.snapTo)?at.snapTo:"labels"===at.snapTo?function(t){return function(e){return Gi.utils.snap(wa(t),e)}}(r):"labelsDirectional"===at.snapTo?(X=r,function(t,e){return Ta(wa(X))(t,e.direction)}):!1!==at.directional?function(t,e){return Ta(at.snapTo)(t,Ds()-Et<500?0:e.direction)}:Gi.utils.snap(at.snapTo),I=at.duration||{min:.1,max:2},I=ta(I)?ns(I.min,I.max):ns(I,I),N=Gi.delayedCall(at.delay||F/2||.1,function(){var t=Mt(),e=Ds()-Et<500,i=n.tween;if(!(e||Math.abs(wt.getVelocity())<10)||i||os||Ct===t)wt.isActive&&Ct!==t&&N.restart(!0);else{var a,o,c=(t-l)/m,f=r&&!dt?r.totalProgress():c,h=e?0:(f-D)/(Ds()-is)*1e3||0,d=Gi.utils.clamp(-c,1-c,na(h/2)*h/.185),p=c+(!1===at.inertia?0:d),g=at,_=g.onStart,v=g.onInterrupt,y=g.onComplete;if(a=s(p,wt),Js(a)||(a=p),o=Math.max(0,Math.round(l+a*m)),t<=u&&t>=l&&o!==t){if(i&&!i._initted&&i.data<=na(o-t))return;!1===at.inertia&&(d=a-c),n(o,{duration:I(na(.185*Math.max(na(p-f),na(a-f))/h/.05||0)),ease:at.ease||"power3",data:na(o-t),onInterrupt:function(){return N.restart(!0)&&v&&ra(wt,v)},onComplete:function(){wt.update(),Ct=Mt(),r&&!dt&&(z?z.resetTo("totalProgress",a,r._tTime/r._tDur):r.progress(a)),R=D=r&&!dt?r.totalProgress():wt.progress,it&&it(wt),y&&ra(wt,y)}},t,d*m,o-t-d*m),_&&ra(wt,_,n.tween)}}}).pause()),G&&(Fa[G]=wt),(j=(K=wt.trigger=Yi(K||!0!==J&&J))&&K._gsap&&K._gsap.stRevert)&&(j=j(wt)),J=!0===J?K:Yi(J),Qs(V)&&(V={targets:K,className:V}),J&&(!1===tt||tt===pa||(tt=!(!tt&&J.parentNode&&J.parentNode.style&&"flex"===va(J.parentNode).display)&&da),wt.pin=J,(i=Gi.core.getCache(J)).spacer?_=i.pinState:(lt&&((lt=Yi(lt))&&!lt.nodeType&&(lt=lt.current||lt.nativeElement),i.spacerIsNative=!!lt,lt&&(i.spacerState=oo(lt))),i.spacer=x=lt||Qi.createElement("div"),x.classList.add("pin-spacer"),G&&x.classList.add("pin-spacer-"+G),i.pinState=_=oo(J)),!1!==e.force3D&&Gi.set(J,{force3D:!0}),wt.spacer=x=i.spacer,P=va(J),C=P[tt+ht.os2],w=Gi.getProperty(J),T=Gi.quickSetter(J,ht.a,_a),io(J,x,P),y=oo(J)),xt){p=ta(xt)?ya(xt,Sa):Sa,h=Ra("scroller-start",G,pt,ht,p,0),d=Ra("scroller-end",G,pt,ht,p,0,h),b=h["offset"+ht.op.d2];var At=Yi(Ai(pt,"content")||pt);c=this.markerStart=Ra("start",G,At,ht,p,b,0,ut),f=this.markerEnd=Ra("end",G,At,ht,p,b,0,ut),ut&&(Y=Gi.quickSetter([c,f],ht.a,_a)),_t||Ei.length&&!0===Ai(pt,"fixedMarkers")||(W=va(q=mt?Ji:pt).position,q.style.position="absolute"===W||"fixed"===W?W:"relative",Gi.set([h,d],{force3D:!0}),S=Gi.quickSetter(h,ht.a,_a),A=Gi.quickSetter(d,ht.a,_a))}if(ut){var Pt=ut.vars.onUpdate,Rt=ut.vars.onUpdateParams;ut.eventCallback("onUpdate",function(){wt.update(0,0,1),Pt&&Pt.apply(ut,Rt||[])})}if(wt.previous=function(){return za[za.indexOf(wt)-1]},wt.next=function(){return za[za.indexOf(wt)+1]},wt.revert=function(t,e){if(!e)return wt.kill(!0);var n=!1!==t||!wt.enabled,i=as;n!==wt.isReverted&&(n&&(B=Math.max(Mt(),wt.scroll.rec||0),St=wt.progress,L=r&&r.progress()),c&&[c,f,h,d].forEach(function(t){return t.style.display=n?"none":"block"}),n&&(as=wt,wt.update(n)),!J||ot&&wt.isActive||(n?function(t,e,r){ao(r);var n=t._gsap;if(n.spacerIsNative)ao(n.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1}(J,x,_):io(J,x,va(J),E)),n||wt.update(n),as=i,wt.isReverted=n)},wt.refresh=function(i,s,p,b){if(!as&&wt.enabled||s)if(J&&i&&Fs)ka(t,"scrollEnd",Xa);else{!Ms&&Tt&&Tt(wt),as=wt,n.tween&&!p&&(n.tween.kill(),n.tween=0),z&&z.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)),wt.isReverted||wt.revert(!0,!0),wt._subPinOffset=!1;var T,C,S,A,P,R,D,F,I,Y,j,X,q,W=Ot(),H=kt(),U=ut?ut.duration():$s(pt,ht),V=m<=.01||!m,G=0,$=b||0,Q=ta(p)?p.end:e.end,rt=e.endTrigger||K,nt=ta(p)?p.start:e.start||(0!==e.start&&K?J?"0 0":"0 100%":0),it=wt.pinnedContainer=e.pinnedContainer&&Yi(e.pinnedContainer,wt),st=K&&Math.max(0,za.indexOf(wt))||0,at=st;for(xt&&ta(p)&&(X=Gi.getProperty(h,ht.p),q=Gi.getProperty(d,ht.p));at-- >0;)(R=za[at]).end||R.refresh(0,1)||(as=wt),!(D=R.pin)||D!==K&&D!==J&&D!==it||R.isReverted||(Y||(Y=[]),Y.unshift(R),R.revert(!0,!0)),R!==za[at]&&(st--,at--);for(Ks(nt)&&(nt=nt(wt)),nt=Ns(nt,"start",wt),l=uo(nt,K,W,ht,Mt(),c,h,wt,H,bt,_t,U,ut,wt._startClamp&&"_startClamp")||(J?-.001:0),Ks(Q)&&(Q=Q(wt)),Qs(Q)&&!Q.indexOf("+=")&&(~Q.indexOf(" ")?Q=(Qs(nt)?nt.split(" ")[0]:"")+Q:(G=Pa(Q.substr(2),W),Q=Qs(nt)?nt:(ut?Gi.utils.mapRange(0,ut.duration(),ut.scrollTrigger.start,ut.scrollTrigger.end,l):l)+G,rt=K)),Q=Ns(Q,"end",wt),u=Math.max(l,uo(Q||(rt?"100% 0":U),rt,W,ht,Mt()+G,f,d,wt,H,bt,_t,U,ut,wt._endClamp&&"_endClamp"))||-.001,G=0,at=st;at--;)(D=(R=za[at]||{}).pin)&&R.start-R._pinPush<=l&&!ut&&R.end>0&&(T=R.end-(wt._startClamp?Math.max(0,R.start):R.start),(D===K&&R.start-R._pinPush<l||D===it)&&isNaN(nt)&&(G+=T*(1-R.progress)),D===J&&($+=T));if(l+=G,u+=G,wt._startClamp&&(wt._startClamp+=G),wt._endClamp&&!Ms&&(wt._endClamp=u||-.001,u=Math.min(u,$s(pt,ht))),m=u-l||(l-=.01)&&.001,V&&(St=Gi.utils.clamp(0,1,Gi.utils.normalize(l,u,B))),wt._pinPush=$,c&&G&&((T={})[ht.a]="+="+G,it&&(T[ht.p]="-="+Mt()),Gi.set([c,f],T)),!J||Cs&&wt.end>=$s(pt,ht)){if(K&&Mt()&&!ut)for(C=K.parentNode;C&&C!==Ji;)C._pinOffset&&(l-=C._pinOffset,u-=C._pinOffset),C=C.parentNode}else T=va(J),A=ht===Li,S=Mt(),O=parseFloat(w(ht.a))+$,!U&&u>1&&(j={style:j=(mt?Qi.scrollingElement||Ki:pt).style,value:j["overflow"+ht.a.toUpperCase()]},mt&&"scroll"!==va(Ji)["overflow"+ht.a.toUpperCase()]&&(j.style["overflow"+ht.a.toUpperCase()]="scroll")),io(J,x,T),y=oo(J),C=xa(J,!0),F=_t&&ji(pt,A?Bi:Li)(),tt?((E=[tt+ht.os2,m+$+_a]).t=x,(at=tt===da?ba(J,ht)+m+$:0)&&(E.push(ht.d,at+_a),"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+_a)),ao(E),it&&za.forEach(function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)}),_t&&Mt(B)):(at=ba(J,ht))&&"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+_a),_t&&((P={top:C.top+(A?S-l:F)+_a,left:C.left+(A?F:S-l)+_a,boxSizing:"border-box",position:"fixed"})[oa]=P["max"+ga]=Math.ceil(C.width)+_a,P[la]=P["max"+ma]=Math.ceil(C.height)+_a,P[pa]=P[pa+fa]=P[pa+ua]=P[pa+ha]=P[pa+ca]="0",P[da]=T[da],P[da+fa]=T[da+fa],P[da+ua]=T[da+ua],P[da+ha]=T[da+ha],P[da+ca]=T[da+ca],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}(_,P,ot),Ms&&Mt(0)),r?(I=r._initted,ps(1),r.render(r.duration(),!0,!0),k=w(ht.a)-O+m+$,M=Math.abs(m-k)>1,_t&&M&&v.splice(v.length-2,2),r.render(0,!0,!0),I||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ps(0)):k=m,j&&(j.value?j.style["overflow"+ht.a.toUpperCase()]=j.value:j.style.removeProperty("overflow-"+ht.a));Y&&Y.forEach(function(t){return t.revert(!1,!0)}),wt.start=l,wt.end=u,a=o=Ms?B:Mt(),ut||Ms||(a<B&&Mt(B),wt.scroll.rec=0),wt.revert(!1,!0),Et=Ds(),N&&(Ct=-1,N.restart(!0)),as=0,r&&dt&&(r._initted||L)&&r.progress()!==L&&r.progress(L||0,!0).render(r.time(),!0,!0),(V||St!==wt.progress||ut||et||r&&!r._initted)&&(r&&!dt&&(r._initted||St||!1!==r.vars.immediateRender)&&r.totalProgress(ut&&l<-.001&&!St?Gi.utils.normalize(l,u,0):St,!0),wt.progress=V||(a-l)/m===St?0:St),J&&tt&&(x._pinOffset=Math.round(wt.progress*k)),z&&z.invalidate(),isNaN(X)||(X-=Gi.getProperty(h,ht.p),q-=Gi.getProperty(d,ht.p),po(h,ht,X),po(c,ht,X-(b||0)),po(d,ht,q),po(f,ht,q-(b||0))),V&&!Ms&&wt.update(),!Z||Ms||g||(g=!0,Z(wt),g=!1)}},wt.getVelocity=function(){return(Mt()-o)/(Ds()-is)*1e3||0},wt.endAnimation=function(){ea(wt.callbackAnimation),r&&(z?z.progress(1):r.paused()?dt||ea(r,wt.direction<0,1):ea(r,r.reversed()))},wt.labelToScroll=function(t){return r&&r.labels&&(l||wt.refresh()||l)+r.labels[t]/r.duration()*m||0},wt.getTrailing=function(t){var e=za.indexOf(wt),r=wt.direction>0?za.slice(0,e).reverse():za.slice(e+1);return(Qs(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(t){return wt.direction>0?t.end<=l:t.start>=u})},wt.update=function(t,e,i){if(!ut||i||t){var s,c,f,d,p,g,_,b=!0===Ms?B:wt.scroll(),w=t?0:(b-l)/m,E=w<0?0:w>1?1:w||0,P=wt.progress;if(e&&(o=a,a=ut?Mt():b,at&&(D=R,R=r&&!dt?r.totalProgress():E)),rt&&J&&!as&&!Rs&&Fs&&(!E&&l<b+(b-o)/(Ds()-is)*rt?E=1e-4:1===E&&u>b+(b-o)/(Ds()-is)*rt&&(E=.9999)),E!==P&&wt.enabled){if(d=(p=(s=wt.isActive=!!E&&E<1)!==(!!P&&P<1))||!!E!=!!P,wt.direction=E>P?1:-1,wt.progress=E,d&&!as&&(c=E&&!P?0:1===E?1:1===P?2:3,dt&&(f=!p&&"none"!==yt[c+1]&&yt[c+1]||yt[c],_=r&&("complete"===f||"reset"===f||f in r))),ft&&(p||_)&&(_||Q||!r)&&(Ks(ft)?ft(wt):wt.getTrailing(ft).forEach(function(t){return t.endAnimation()})),dt||(!z||as||Rs?r&&r.totalProgress(E,!(!as||!Et&&!t)):(z._dp._time-z._start!==z._time&&z.render(z._dp._time-z._start),z.resetTo?z.resetTo("totalProgress",E,r._tTime/r._tDur):(z.vars.totalProgress=E,z.invalidate().restart()))),J)if(t&&tt&&(x.style[tt+ht.os2]=C),_t){if(d){if(g=!t&&E>P&&u+1>b&&b+1>=$s(pt,ht),ot)if(t||!s&&!g)fo(J,x);else{var F=xa(J,!0),I=b-l;fo(J,Ji,F.top+(ht===Li?I:0)+_a,F.left+(ht===Li?0:I)+_a)}ao(s||g?v:y),M&&E<1&&s||T(O+(1!==E||g?0:k))}}else T(qs(O+k*E));at&&!n.tween&&!as&&!Rs&&N.restart(!0),V&&(p||st&&E&&(E<1||!Es))&&rs(V.targets).forEach(function(t){return t.classList[s||st?"add":"remove"](V.className)}),U&&!dt&&!t&&U(wt),d&&!as?(dt&&(_&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),U&&U(wt)),!p&&Es||($&&p&&ra(wt,$),vt[c]&&ra(wt,vt[c]),st&&(1===E?wt.kill(!1,1):vt[c]=0),p||vt[c=1===E?1:3]&&ra(wt,vt[c])),ct&&!s&&Math.abs(wt.getVelocity())>(Js(ct)?ct:2500)&&(ea(wt.callbackAnimation),z?z.progress(1):ea(r,"reverse"===f?1:!E,1))):dt&&U&&!as&&U(wt)}if(A){var L=ut?b/ut.duration()*(ut._caScrollDist||0):b;S(L+(h._isFlipped?1:0)),A(L)}Y&&Y(-b/ut.duration()*(ut._caScrollDist||0))}},wt.enable=function(e,r){wt.enabled||(wt.enabled=!0,ka(pt,"resize",La),mt||ka(pt,"scroll",Na),Tt&&ka(t,"refreshInit",Tt),!1!==e&&(wt.progress=St=0,a=o=Ct=Mt()),!1!==r&&wt.refresh())},wt.getTween=function(t){return t&&n?n.tween:z},wt.setPositions=function(t,e,r,n){if(ut){var i=ut.scrollTrigger,s=ut.duration(),a=i.end-i.start;t=i.start+a*t/s,e=i.start+a*e/s}wt.refresh(!1,!1,{start:Bs(t,r&&!!wt._startClamp),end:Bs(e,r&&!!wt._endClamp)},n),wt.update()},wt.adjustPinSpacing=function(t){if(E&&t){var e=E.indexOf(ht.d)+1;E[e]=parseFloat(E[e])+t+_a,E[1]=parseFloat(E[1])+t+_a,ao(E)}},wt.disable=function(e,r){if(!1!==e&&wt.revert(!0,!0),wt.enabled&&(wt.enabled=wt.isActive=!1,r||z&&z.pause(),B=0,i&&(i.uncache=1),Tt&&Ca(t,"refreshInit",Tt),N&&(N.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!mt)){for(var s=za.length;s--;)if(za[s].scroller===pt&&za[s]!==wt)return;Ca(pt,"resize",La),mt||Ca(pt,"scroll",Na)}},wt.kill=function(t,n){wt.disable(t,n),z&&!n&&z.kill(),G&&delete Fa[G];var s=za.indexOf(wt);s>=0&&za.splice(s,1),s===us&&to>0&&us--,s=0,za.forEach(function(t){return t.scroller===wt.scroller&&(s=1)}),s||Ms||(wt.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),c&&[c,f,h,d].forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)}),Ps===wt&&(Ps=0),J&&(i&&(i.uncache=1),s=0,za.forEach(function(t){return t.pin===J&&s++}),s||(i.spacer=0)),e.onKill&&e.onKill(wt)},za.push(wt),wt.enable(!1,!1),j&&j(wt),r&&r.add&&!m){var Dt=wt.update;wt.update=function(){wt.update=Dt,Ci.cache++,l||u||wt.refresh()},Gi.delayedCall(.01,wt.update),m=.01,l=u=0}else wt.refresh();J&&function(){if(As!==$a){var t=As=$a;requestAnimationFrame(function(){return t===$a&&Ka(!0)})}}()}else this.update=this.refresh=this.kill=Xs},t.register=function(e){return $i||(Gi=e||Hs(),Ws()&&window.document&&t.enable(),$i=Is),$i},t.defaults=function(t){if(t)for(var e in t)Ma[e]=t[e];return Ma},t.disable=function(t,e){Is=0,za.forEach(function(r){return r[e?"kill":"disable"](t)}),Ca(Zi,"wheel",Na),Ca(Qi,"scroll",Na),clearInterval(ss),Ca(Qi,"touchcancel",Xs),Ca(Ji,"touchstart",Xs),Oa(Ca,Qi,"pointerdown,touchstart,mousedown",Ys),Oa(Ca,Qi,"pointerup,touchend,mouseup",js),es.kill(),Zs(Ca);for(var r=0;r<Ci.length;r+=3)Ea(Ca,Ci[r],Ci[r+1]),Ea(Ca,Ci[r],Ci[r+2])},t.enable=function(){if(Zi=window,Qi=document,Ki=Qi.documentElement,Ji=Qi.body,Gi)if(rs=Gi.utils.toArray,ns=Gi.utils.clamp,bs=Gi.core.context||Xs,ps=Gi.core.suppressOverwrites||Xs,ws=Zi.history.scrollRestoration||"auto",Ja=Zi.pageYOffset||0,Gi.core.globals("ScrollTrigger",t),Ji){Is=1,(Ts=document.createElement("div")).style.height="100vh",Ts.style.position="absolute",Za(),Ls(),Vi.register(Gi),t.isTouch=Vi.isTouch,xs=Vi.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),_s=1===Vi.isTouch,ka(Zi,"wheel",Na),ts=[Zi,Qi,Ki,Ji],Gi.matchMedia?(t.matchMedia=function(t){var e,r=Gi.matchMedia();for(e in t)r.add(e,t[e]);return r},Gi.addEventListener("matchMediaInit",function(){Ua(),Va()}),Gi.addEventListener("matchMediaRevert",function(){return Ha()}),Gi.addEventListener("matchMedia",function(){Ka(0,1),qa("matchMedia")}),Gi.matchMedia().add("(orientation: portrait)",function(){return Ba(),Ba})):console.warn("Requires GSAP 3.11.0 or later"),Ba(),ka(Qi,"scroll",Na);var e,r,n=Ji.hasAttribute("style"),i=Ji.style,s=i.borderTopStyle,a=Gi.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",e=xa(Ji),Li.m=Math.round(e.top+Li.sc())||0,Bi.m=Math.round(e.left+Bi.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),n||(Ji.setAttribute("style",""),Ji.removeAttribute("style")),ss=setInterval(Ia,250),Gi.delayedCall(.5,function(){return Rs=0}),ka(Qi,"touchcancel",Xs),ka(Ji,"touchstart",Xs),Oa(ka,Qi,"pointerdown,touchstart,mousedown",Ys),Oa(ka,Qi,"pointerup,touchend,mouseup",js),ls=Gi.utils.checkPrefix("transform"),no.push(ls),$i=Ds(),es=Gi.delayedCall(.2,Ka).pause(),hs=[Qi,"visibilitychange",function(){var t=Zi.innerWidth,e=Zi.innerHeight;Qi.hidden?(cs=t,fs=e):cs===t&&fs===e||La()},Qi,"DOMContentLoaded",Ka,Zi,"load",Ka,Zi,"resize",La],Zs(ka),za.forEach(function(t){return t.enable(0,1)}),r=0;r<Ci.length;r+=3)Ea(Ca,Ci[r],Ci[r+1]),Ea(Ca,Ci[r],Ci[r+2])}else if(Qi){Qi.addEventListener("DOMContentLoaded",function e(){t.enable(),Qi.removeEventListener("DOMContentLoaded",e)})}},t.config=function(e){"limitCallbacks"in e&&(Es=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(ss)||(ss=r)&&setInterval(Ia,r),"ignoreMobileResize"in e&&(_s=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Zs(Ca)||Zs(ka,e.autoRefreshEvents||"none"),gs=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=Yi(t),n=Ci.indexOf(r),i=Us(r);~n&&Ci.splice(n,i?6:2),e&&(i?Ei.unshift(Zi,e,Ji,e,Ki,e):Ei.unshift(r,e))},t.clearMatchMedia=function(t){za.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},t.isInViewport=function(t,e,r){var n=(Qs(t)?Yi(t):t).getBoundingClientRect(),i=n[r?oa:la]*e||0;return r?n.right-i>0&&n.left+i<Zi.innerWidth:n.bottom-i>0&&n.top+i<Zi.innerHeight},t.positionInViewport=function(t,e,r){Qs(t)&&(t=Yi(t));var n=t.getBoundingClientRect(),i=n[r?oa:la],s=null==e?i/2:e in Aa?Aa[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+s)/Zi.innerWidth:(n.top+s)/Zi.innerHeight},t.killAll=function(t){if(za.slice(0).forEach(function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()}),!0!==t){var e=Ya.killAll||[];Ya={},e.forEach(function(t){return t()})}},t}();mo.version="3.15.0",mo.saveStyles=function(t){return t?rs(t).forEach(function(t){if(t&&t.style){var e=Wa.indexOf(t);e>=0&&Wa.splice(e,5),Wa.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Gi.core.getCache(t),bs())}}):Wa},mo.revert=function(t,e){return Va(!t,e)},mo.create=function(t,e){return new mo(t,e)},mo.refresh=function(t){return t?La(!0):($i||mo.register())&&Ka(!0)},mo.update=function(t){return++Ci.cache&&eo(!0===t?2:0)},mo.clearScrollMemory=Ga,mo.maxScroll=function(t,e){return $s(t,e?Bi:Li)},mo.getScrollFunc=function(t,e){return ji(Yi(t),e?Bi:Li)},mo.getById=function(t){return Fa[t]},mo.getAll=function(){return za.filter(function(t){return"ScrollSmoother"!==t.vars.id})},mo.isScrolling=function(){return!!Fs},mo.snapDirectional=Ta,mo.addEventListener=function(t,e){var r=Ya[t]||(Ya[t]=[]);~r.indexOf(e)||r.push(e)},mo.removeEventListener=function(t,e){var r=Ya[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},mo.batch=function(t,e){var r,n=[],i={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var r=[],n=[],i=Gi.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)&&Ks(e[r])&&"onRefreshInit"!==r?o(0,e[r]):e[r];return Ks(a)&&(a=a(),ka(mo,"refresh",function(){return a=e.batchMax()})),rs(t).forEach(function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(mo.create(e))}),n};var _o,vo=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},yo=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(Vi.isTouch?" pinch-zoom":""):"none",e===Ki&&t(Ji,r)},xo={auto:1,scroll:1},bo=function(t){var e,r=t.event,n=t.target,i=t.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,a=s._gsap||Gi.core.getCache(s),o=Ds();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==Ji&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!xo[(e=va(s)).overflowY]&&!xo[e.overflowX]);)s=s.parentNode;a._isScroll=s&&s!==n&&!Us(s)&&(xo[(e=va(s)).overflowY]||xo[e.overflowX]),a._isScrollT=o}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},wo=function(t,e,r,n){return Vi.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&bo,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&ka(Qi,Vi.eventTypes[0],Oo,!1,!0)},onDisable:function(){return Ca(Qi,Vi.eventTypes[0],Oo,!0)}})},To=/(input|label|select|textarea)/i,Oo=function(t){var e=To.test(t.target.tagName);(e||_o)&&(t._gsapAllow=!0,_o=e)},ko=function(t){ta(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,l,u=t,c=u.normalizeScrollX,f=u.momentum,h=u.allowNestedScroll,d=u.onRelease,p=Yi(t.target)||Ki,g=Gi.core.globals().ScrollSmoother,m=g&&g.get(),_=xs&&(t.content&&Yi(t.content)||m&&!1!==t.content&&!m.smooth()&&m.content()),v=ji(p,Li),y=ji(p,Bi),x=1,b=(Vi.isTouch&&Zi.visualViewport?Zi.visualViewport.scale*Zi.visualViewport.width:Zi.outerWidth)/Zi.innerWidth,w=0,T=Ks(f)?function(){return f(e)}:function(){return f||2.8},O=wo(p,t.type,!0,h),k=function(){return i=!1},C=Xs,E=Xs,S=function(){r=$s(p,Li),E=ns(xs?1:0,r),c&&(C=ns(0,$s(p,Bi))),n=$a},M=function(){_._gsap.y=qs(parseFloat(_._gsap.y)+v.offset)+"px",_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(_._gsap.y)+", 0, 1)",v.offset=v.cacheID=0},A=function(){S(),s.isActive()&&s.vars.scrollY>r&&(v()>r?s.progress(1)&&v(r):s.resetTo("scrollY",r))};return _&&Gi.set(_,{y:"+=0"}),t.ignoreCheck=function(t){return xs&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(k);var t=qs(e.deltaY/2),r=E(v.v-t);if(_&&r!==v.v+v.offset){v.offset=r-v.v;var n=qs((parseFloat(_&&_._gsap.y)||0)-v.offset);_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",_._gsap.y=n+"px",v.cacheID=Ci.cache,eo()}return!0}v.offset&&M(),i=!0}()||x>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=x;x=qs((Zi.visualViewport&&Zi.visualViewport.scale||1)/b),s.pause(),t!==x&&yo(p,x>1.01||!c&&"x"),a=y(),o=v(),S(),n=$a},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&M(),e){Ci.cache++;var n,i,a=T();c&&(i=(n=y())+.05*a*-t.velocityX/.227,a*=vo(y,n,i,$s(p,Bi)),s.vars.scrollX=C(i)),i=(n=v())+.05*a*-t.velocityY/.227,a*=vo(v,n,i,$s(p,Li)),s.vars.scrollY=E(i),s.invalidate().duration(a).play(.01),(xs&&s.vars.scrollY>=r||n>=r-1)&&Gi.to({},{onUpdate:A,duration:a})}else l.restart(!0);d&&d(t)},t.onWheel=function(){s._ts&&s.pause(),Ds()-w>1e3&&(n=0,w=Ds())},t.onChange=function(t,e,r,i,s){if($a!==n&&S(),e&&c&&y(C(i[2]===e?a+(t.startX-t.x):y()+e-i[1])),r){v.offset&&M();var l=s[2]===r,u=l?o+t.startY-t.y:v()+r-s[1],f=E(u);l&&u!==f&&(o+=f-u),v(f)}(r||e)&&eo()},t.onEnable=function(){yo(p,!c&&"x"),mo.addEventListener("refresh",A),ka(Zi,"resize",A),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),O.enable()},t.onDisable=function(){yo(p,!0),Ca(Zi,"resize",A),mo.removeEventListener("refresh",A),O.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Vi(t)).iOS=xs,xs&&!v()&&v(1),xs&&Gi.ticker.add(Xs),l=e._dc,s=Gi.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:ho(v,v(),function(){return s.pause()})},onUpdate:eo,onComplete:l.vars.onComplete}),e};function Co({scrollingElement:l,direction:u="normal",children:c=t("div",{children:"Nothing to Display, Please add some properly styled content"}),style:f,className:h,startAnimation:d="bottom",gsapScrollTrigger:p,scrollSpeed:g=1}){const m=r(),[_,v]=n(!1),[y,x]=n(0);return i(()=>{!function(){if(_)return;const t=function(){const t=m.current;if(!t)return;const e=t.children,r=e[0].getBoundingClientRect().width;let n=0;for(let t=0;t<e.length;t++)n+=e[t].getBoundingClientRect().width;return n-r}();t&&x(t),v(!0)}()},[]),s(()=>{const t=m.current;if(!t||!y)return;let e=li.context(()=>{var e,r;const n=l?document.querySelector(`${l}`):o(t,!0),i=null!==(e={normal:-y,reverse:y,backward:y}[u])&&void 0!==e?e:-y,s=null!==(r={top:"top top",within:`top ${(window.innerHeight-t.getBoundingClientRect().height)/2}px`,bottom:"bottom bottom"}[d])&&void 0!==r?r:d,a=li.quickTo(t,"x",{ease:"power3.out",duration:.2});mo.create(Object.assign({trigger:t,scroller:n,start:s,end:`+=${y/g}px`,pin:!0,scrub:!0,invalidateOnRefresh:!0,onUpdate:t=>{a(i*t.progress)}},p))},m);return()=>e.revert()},[y,u,d,g,l,p]),t("div",{ref:m,style:Object.assign({width:"100%",height:"auto",position:"relative",display:"flex",alignItems:"flex-start",justifyContent:""+("backward"==u?"flex-end":"flex-start"),flexDirection:""+("reverse"==u?"row-reverse":"row")},f),className:`${h} scroll_container`,children:e.Children.map(c,(e,r)=>t(a,{children:e},r))})}function Eo(t,e,r,n){return new(r||(r=Promise))(function(i,s){function a(t){try{l(n.next(t))}catch(t){s(t)}}function o(t){try{l(n.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(a,o)}l((n=n.apply(t,e||[])).next())})}mo.sort=function(t){if(Ks(t))return za.sort(t);var e=Zi.pageYOffset||0;return mo.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+Zi.innerHeight}),za.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))})},mo.observe=function(t){return new Vi(t)},mo.normalizeScroll=function(t){if(void 0===t)return ms;if(!0===t&&ms)return ms.enable();if(!1===t)return ms&&ms.kill(),void(ms=t);var e=t instanceof Vi?t:ko(t);return ms&&ms.target===e.target&&ms.kill(),Us(e.target)&&(ms=e),e},mo.core={_getVelocityProp:Xi,_inputObserver:wo,_scrollers:Ci,_proxies:Ei,bridge:{ss:function(){Fs||qa("scrollStart"),Fs=Ds()},ref:function(){return as}}},Hs()&&Gi.registerPlugin(mo),li.registerPlugin(mo),"function"==typeof SuppressedError&&SuppressedError;
37
37
  /*!
38
38
  * @gsap/react 2.1.2
39
39
  * https://gsap.com
@@ -43,7 +43,7 @@ var Bi,Li,Yi,Xi,ji,qi,Hi,Wi,Ui,Vi,Gi,$i,Qi,Zi,Ki,Ji,ts,es,rs,ns,is,ss,os,as,ls,u
43
43
  * Club GSAP members, the agreement issued with that membership.
44
44
  * @author: Jack Doyle, jack@greensock.com
45
45
  */
46
- let ba="undefined"!=typeof document?s:i,wa=t=>t&&!Array.isArray(t)&&"object"==typeof t,Ta=[],ka={},Ca=Kn;const Oa=(t,e=Ta)=>{let n=ka;wa(t)?(n=t,t=null,e="dependencies"in n?n.dependencies:Ta):wa(e)&&(n=e,e="dependencies"in n?n.dependencies:Ta),t&&"function"!=typeof t&&console.warn("First parameter must be a function or config object");const{scope:i,revertOnUpdate:s}=n,o=r(!1),a=r(Ca.context(()=>{},i)),l=r(t=>a.current.add(null,t)),u=e&&e.length&&!s;return u&&ba(()=>(o.current=!0,()=>a.current.revert()),Ta),ba(()=>{if(t&&a.current.add(t,i),!u||!o.current)return()=>a.current.revert()},e),{context:a.current,contextSafe:l.current}};Oa.register=t=>{Ca=t},Oa.headless=!0;
46
+ let So="undefined"!=typeof document?s:i,Mo=t=>t&&!Array.isArray(t)&&"object"==typeof t,Ao=[],Po={},Ro=li;const Do=(t,e=Ao)=>{let n=Po;Mo(t)?(n=t,t=null,e="dependencies"in n?n.dependencies:Ao):Mo(e)&&(n=e,e="dependencies"in n?n.dependencies:Ao),t&&"function"!=typeof t&&console.warn("First parameter must be a function or config object");const{scope:i,revertOnUpdate:s}=n,a=r(!1),o=r(Ro.context(()=>{},i)),l=r(t=>o.current.add(null,t)),u=e&&e.length&&!s;return u&&So(()=>(a.current=!0,()=>o.current.revert()),Ao),So(()=>{if(t&&o.current.add(t,i),!u||!a.current)return()=>o.current.revert()},e),{context:o.current,contextSafe:l.current}};Do.register=t=>{Ro=t},Do.headless=!0;
47
47
  /*!
48
48
  * SplitText 3.15.0
49
49
  * https://gsap.com
@@ -51,5 +51,5 @@ let ba="undefined"!=typeof document?s:i,wa=t=>t&&!Array.isArray(t)&&"object"==ty
51
51
  * @license Copyright 2026, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license.
52
52
  * @author: Jack Doyle
53
53
  */
54
- let Ea,Sa,Ma,Aa="function"==typeof Symbol?Symbol():"_split",Pa="undefined"!=typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:0,Ra=t=>t?"string"==typeof t?Ra(document.querySelectorAll(t)):"length"in t?Array.from(t).reduce((t,e)=>("string"==typeof e?t.push(...Ra(e)):t.push(e),t),[]):[t]:[],Da=t=>Ra(t).filter(t=>t&&1===t.nodeType),za=[],Fa=function(){},Ia={add:t=>t()},Na=/\s+/g,Ba=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),La={left:0,top:0,width:0,height:0},Ya=(t,e)=>{for(;++e<t.length&&t[e]===La;);return t[e]||La},Xa=({element:t,html:e,ariaL:r,ariaH:n})=>{t.innerHTML=e,r?t.setAttribute("aria-label",r):t.removeAttribute("aria-label"),n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")},ja=(t,e)=>{if(e){let r,n,i,s,o=new Set(t.join("").match(e)||za),a=t.length;if(o.size)for(;--a>-1;)for(i of(n=t[a],o))if(i.startsWith(n)&&i.length>n.length){for(r=0,s=n;i.startsWith(s+=t[a+ ++r])&&s.length<i.length;);if(r&&s.length===i.length){t[a]=i,t.splice(a+1,r);break}}}return t},qa=t=>"inline"===window.getComputedStyle(t).display&&(t.style.display="inline-block"),Ha=(t,e,r)=>e.insertBefore("string"==typeof t?document.createTextNode(t):t,r),Wa=(t,e,r)=>{let n=e[t+"sClass"]||"",{tag:i="div",aria:s="auto",propIndex:o=!1}=e,a="line"===t?"block":"inline-block",l=n.indexOf("++")>-1,u=e=>{let u=document.createElement(i),c=r.length+1;return n&&(u.className=n+(l?" "+n+c:"")),o&&u.style.setProperty("--"+t,c+""),"none"!==s&&u.setAttribute("aria-hidden","true"),"span"!==i&&(u.style.position="relative",u.style.display=a),u.textContent=e,r.push(u),u};return l&&(n=n.replace("++","")),u.collection=r,u},Ua=(t,e,r,n,i,s,o,a,l,u)=>{var c;let f,h,d,p,g,m,_,v,y,x,b,w,T,k,C,O,E,S,M=Array.from(t.childNodes),A=0,{wordDelimiter:P,reduceWhiteSpace:R=!0,prepareText:D}=e,z=t.getBoundingClientRect(),F=z,I=!R&&"pre"===window.getComputedStyle(t).whiteSpace.substring(0,3),N=0,B=r.collection;for("object"==typeof P?(d=P.delimiter||P,h=P.replaceWith||""):h=""===P?"":P||" ",f=" "!==h;A<M.length;A++)if(p=M[A],3===p.nodeType){for(C=p.textContent||"",R?C=C.replace(Na," "):I&&(C=C.replace(/\n/g,h+"\n")),D&&(C=D(C,t)),p.textContent=C,g=h||d?C.split(d||h):C.match(a)||za,E=g[g.length-1],v=f?" "===E.slice(-1):!E,E||g.pop(),F=z,_=f?" "===g[0].charAt(0):!g[0],_&&Ha(" ",t,p),g[0]||g.shift(),ja(g,l),s&&u||(p.textContent=""),y=1;y<=g.length;y++)if(O=g[y-1],!R&&I&&"\n"===O.charAt(0)&&(null==(c=p.previousSibling)||c.remove(),Ha(document.createElement("br"),t,p),O=O.slice(1)),R||""!==O)if(" "===O)t.insertBefore(document.createTextNode(" "),p);else{if(f&&" "===O.charAt(0)&&Ha(" ",t,p),N&&1===y&&!_&&B.indexOf(N.parentNode)>-1?(m=B[B.length-1],m.appendChild(document.createTextNode(n?"":O))):(m=r(n?"":O),Ha(m,t,p),N&&1===y&&!_&&m.insertBefore(N,m.firstChild)),n)for(b=Pa?ja([...Pa.segment(O)].map(t=>t.segment),l):O.match(a)||za,S=0;S<b.length;S++)m.appendChild(" "===b[S]?document.createTextNode(" "):n(b[S]));if(s&&u){if(C=p.textContent=C.substring(O.length+1,C.length),x=m.getBoundingClientRect(),x.top>F.top&&x.left<=F.left){for(w=t.cloneNode(),T=t.childNodes[0];T&&T!==m;)k=T,T=T.nextSibling,w.appendChild(k);t.parentNode.insertBefore(w,t),i&&qa(w)}F=x}(y<g.length||v)&&Ha(y>=g.length?" ":f&&" "===O.slice(-1)?" "+h:h,t,p)}else Ha(h,t,p);t.removeChild(p),N=0}else 1===p.nodeType&&(o&&o.indexOf(p)>-1?(B.indexOf(p.previousSibling)>-1&&B[B.length-1].appendChild(p),N=p):(Ua(p,e,r,n,i,s,o,a,l,!0),N=0),i&&qa(p))};const Va=class t{constructor(t,e){this.isSplit=!1,Ma||Ga.register(window.gsap),this.elements=Da(t),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=e,this.elements.forEach(t=>{var r;!1!==e.overwrite&&(null==(r=t[Aa])||r._data.orig.filter(({element:e})=>e===t).forEach(Xa)),t[Aa]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let r,n=[],i=()=>{let t,e=n.length;for(;e--;){t=n[e];let r=t.element.offsetWidth;if(r!==t.width)return t.width=r,void this._split()}};this._data={orig:n,obs:"undefined"!=typeof ResizeObserver&&new ResizeObserver(()=>{clearTimeout(r),r=setTimeout(i,200)})},Fa(this),this.split(e)}split(t){return(this._ctx||Ia).add(()=>{this.isSplit&&this.revert(),this.vars=t=t||this.vars||{};let e,{type:r="chars,words,lines",aria:n="auto",deepSlice:i=!0,smartWrap:s,onSplit:o,autoSplit:a=!1,specialChars:l,mask:u}=this.vars,c=r.indexOf("lines")>-1,f=r.indexOf("chars")>-1,h=r.indexOf("words")>-1,d=f&&!h&&!c,p=l&&("push"in l?new RegExp("(?:"+l.join("|")+")","gu"):l),g=p?new RegExp(p.source+"|"+Ba.source,"gu"):Ba,m=!!t.ignore&&Da(t.ignore),{orig:_,animTime:v,obs:y}=this._data;(f||h||c)&&(this.elements.forEach((e,r)=>{_[r]={element:e,html:e.innerHTML,ariaL:e.getAttribute("aria-label"),ariaH:e.getAttribute("aria-hidden")},"auto"===n?e.setAttribute("aria-label",(e.textContent||"").trim()):"hidden"===n&&e.setAttribute("aria-hidden","true");let o,a,l,u,v=[],y=[],x=[],b=f?Wa("char",t,v):null,w=Wa("word",t,y);if(Ua(e,t,w,b,d,i&&(c||d),m,g,p,!1),c){let r,n,i=Ra(e.childNodes),s=((t,e,r,n)=>{let i=Wa("line",r,n),s=window.getComputedStyle(t).textAlign||"left";return(r,n)=>{let o=i("");for(o.style.textAlign=s,t.insertBefore(o,e[r]);r<n;r++)o.appendChild(e[r]);o.normalize()}})(e,i,t,x),a=[],l=0,u=i.map(t=>1===t.nodeType?t.getBoundingClientRect():La),c=La;for(o=0;o<i.length;o++)r=i[o],1===r.nodeType&&("BR"===r.nodeName?(o&&"BR"===i[o-1].nodeName||(a.push(r),s(l,o+1)),l=o+1,c=Ya(u,o)):(n=u[o],o&&n.top>c.top&&n.left<c.left+c.width-1&&(s(l,o),l=o),c=n));l<o&&s(l,o),a.forEach(t=>{var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)})}if(!h){for(o=0;o<y.length;o++)if(a=y[o],f||!a.nextSibling||3!==a.nextSibling.nodeType)if(s&&!c){for(l=document.createElement("span"),l.style.whiteSpace="nowrap";a.firstChild;)l.appendChild(a.firstChild);a.replaceWith(l)}else a.replaceWith(...a.childNodes);else u=a.nextSibling,u&&3===u.nodeType&&(u.textContent=(a.textContent||"")+(u.textContent||""),a.remove());y.length=0,e.normalize()}this.lines.push(...x),this.words.push(...y),this.chars.push(...v)}),u&&this[u]&&this.masks.push(...this[u].map(t=>{let e=t.cloneNode();return t.replaceWith(e),e.appendChild(t),t.className&&(e.className=t.className.trim().split(" ").map(t=>t+"-mask").join(" ")),e.style.overflow="clip",e}))),this.isSplit=!0,Sa&&c&&a&&Sa.addEventListener("loadingdone",this._split),(e=o&&o(this))&&e.totalTime&&(this._data.anim=v?e.totalTime(v):e),c&&a&&this.elements.forEach((t,e)=>{_[e].width=t.offsetWidth,y&&y.observe(t)})}),this}kill(){let{obs:t}=this._data;t&&t.disconnect(),null==Sa||Sa.removeEventListener("loadingdone",this._split)}revert(){var t,e;if(this.isSplit){let{orig:r,anim:n}=this._data;this.kill(),r.forEach(Xa),this.chars.length=this.words.length=this.lines.length=r.length=this.masks.length=0,this.isSplit=!1,n&&(this._data.animTime=n.totalTime(),n.revert()),null==(e=(t=this.vars).onRevert)||e.call(t,this)}return this}static create(e,r){return new t(e,r)}static register(t){Ea=Ea||t||window.gsap,Ea&&(Ra=Ea.utils.toArray,Fa=Ea.core.context||Fa),!Ma&&window.innerWidth>0&&(Sa=document.fonts,Ma=!0)}};Va.version="3.15.0";let Ga=Va;function $a(s){const{text:o,scrollingElement:a,progression:l="char",style:u,className:c,children:f,playOnScroll:h=!1,playInView:d=!1,delay:p=0,timeline:g,speed:m,gsapScrollTrigger:_,defaultAnimation:v,extendAnimation:y,watch:x=!1}=s,b=r(null),[w,T]=n(0),[k,C]=n(!1);return i(()=>{!function(){if(!x)return;("string"==typeof x?document.querySelector(x):window).addEventListener("resize",()=>{T(t=>t+1)})}()},[]),i(()=>{if("loaded"===document.fonts.status)C(!0);else{function t(){return xa(this,void 0,void 0,function*(){yield document.fonts.ready.then(()=>{C(!0)}).catch(()=>{C(!0)})})}t()}},[]),Oa(function(){const t=b.current;if(!t||!k)return;const e=a?document.querySelector(`${a}`):function(t){let e=document.querySelector(t);for(;e;){const{overflowY:t}=getComputedStyle(e);if(("auto"===t||"scroll"===t)&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.scrollingElement}(".fade_textation_x"),r=Ga.create(t,{type:"lines,words,chars",linesClass:"line",wordsClass:"word",charsClass:"char",autoSplit:!0}),{chars:n,lines:i,words:s}=r,o=function(){let t=n;if("char_line"===l){t=i.flatMap(t=>n.filter(e=>t.contains(e)).map((t,e)=>({char:t,charIndexInLine:e})))}else if("word_line"===l){t=i.flatMap((t,e)=>s.filter(e=>t.contains(e)).map((t,e)=>({char:t,charIndexInLine:e})))}else t="char"==l?n:"word"==l?s:"line"==l?i:n;return{set:"char"==l?n:"word"==l?s:"line"==l?i:"char_line"==l?n:"word_line"==l?s:n,animate:t,speed_0:m||("char"==l?h?.005:.1:"word"==l?.35:"line"==l?.9:"char_line"==l?.08:"word_line"==l?.5:.08)}}();function u(t,e){const r="object"==typeof t?t:{},n=Object.entries(r).map(t=>{const[e,r]=t;return{key:e,val:r}}),i={};for(let t=0;t<n.length;t++){const r=n[t].key,s=n[t].val,o="from"==e?s[0]:"to"==e?s[1]:"";null!==o&&(i[r]=o)}return i}const c=!(!h&&!d),f=g||Kn.timeline({paused:c,delay:p});f.set(o.set,Object.assign(Object.assign({opacity:0},u(v,"from")),u(y,"from")));const x=function(){if("object"==typeof _)return _;if("function"==typeof _)return _(f)||{};return{}}();return(t=>{t&&o.animate.forEach((e,r)=>{let n="char_line"===l||"word_line"===l,i=n?e.char:e;const s=n?e.charIndexInLine:r;t.to(i,Object.assign(Object.assign({opacity:1,ease:"power3.out"},u(v,"to")),u(y,"to")),s*o.speed_0)})})(f),h?oa.create(Object.assign({trigger:t,scroller:e,start:"top 85%",end:"top 35%",scrub:h,animation:f},x)):d&&oa.create(Object.assign({trigger:t,scroller:e,start:"top bottom",onEnter:()=>f.restart(),onLeaveBack:()=>f.pause()},x)),()=>{r.revert(),f.kill(),oa.getAll().forEach(e=>{e.trigger===t&&e.kill()})}},{dependencies:[k,w],scope:b}),e.isValidElement(f)?e.cloneElement(f,{ref:b,style:Object.assign(Object.assign({visibility:k?"visible":"hidden"},u),f.props.style),className:["fade_textation_x",f.props.className,c].filter(Boolean).join(" ")}):t("p",{className:`fade_textation_x ${c}`,style:Object.assign({visibility:k?"visible":"hidden"},u),ref:b,children:o})}Kn.registerPlugin(Ga,oa);const Qa={TextEngine:$a,TextFade:function(e){return t($a,Object.assign({defaultAnimation:{opacity:[0,1]}},e))},TextFadeSkew:function(e){return t($a,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],skewX:[100,0]}},e))},TextFadeSkew_2:function(e){return t($a,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],y:[100,0],skewX:[-100,0]}},e))},TextFadeDown:function(e){return t($a,Object.assign({defaultAnimation:{opacity:[0,1],y:["100%","0%"],duration:[null,1],stagger:[null,.1]}},e))},TextFadeOverlay:function(e){return t($a,Object.assign({defaultAnimation:{opacity:[.2,1]}},e))},VerticalScroll:va};function Za({name:t}){console.log("Hey!!! Hello ",t,". Package is updated!!!")}const{TextEngine:Ka,TextFade:Ja,TextFadeDown:tl,TextFadeSkew:el,TextFadeSkew_2:rl,TextFadeOverlay:nl}=Qa;export{Ka as TextEngine,Ja as TextFade,tl as TextFadeDown,nl as TextFadeOverlay,el as TextFadeSkew,rl as TextFadeSkew_2,ya as VerticalScroll,Za as justSayHello};
54
+ let zo,Fo,Io,No="function"==typeof Symbol?Symbol():"_split",Bo="undefined"!=typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:0,Lo=t=>t?"string"==typeof t?Lo(document.querySelectorAll(t)):"length"in t?Array.from(t).reduce((t,e)=>("string"==typeof e?t.push(...Lo(e)):t.push(e),t),[]):[t]:[],Yo=t=>Lo(t).filter(t=>t&&1===t.nodeType),jo=[],Xo=function(){},qo={add:t=>t()},Wo=/\s+/g,Ho=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),Uo={left:0,top:0,width:0,height:0},Vo=(t,e)=>{for(;++e<t.length&&t[e]===Uo;);return t[e]||Uo},Go=({element:t,html:e,ariaL:r,ariaH:n})=>{t.innerHTML=e,r?t.setAttribute("aria-label",r):t.removeAttribute("aria-label"),n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")},$o=(t,e)=>{if(e){let r,n,i,s,a=new Set(t.join("").match(e)||jo),o=t.length;if(a.size)for(;--o>-1;)for(i of(n=t[o],a))if(i.startsWith(n)&&i.length>n.length){for(r=0,s=n;i.startsWith(s+=t[o+ ++r])&&s.length<i.length;);if(r&&s.length===i.length){t[o]=i,t.splice(o+1,r);break}}}return t},Zo=t=>"inline"===window.getComputedStyle(t).display&&(t.style.display="inline-block"),Qo=(t,e,r)=>e.insertBefore("string"==typeof t?document.createTextNode(t):t,r),Ko=(t,e,r)=>{let n=e[t+"sClass"]||"",{tag:i="div",aria:s="auto",propIndex:a=!1}=e,o="line"===t?"block":"inline-block",l=n.indexOf("++")>-1,u=e=>{let u=document.createElement(i),c=r.length+1;return n&&(u.className=n+(l?" "+n+c:"")),a&&u.style.setProperty("--"+t,c+""),"none"!==s&&u.setAttribute("aria-hidden","true"),"span"!==i&&(u.style.position="relative",u.style.display=o),u.textContent=e,r.push(u),u};return l&&(n=n.replace("++","")),u.collection=r,u},Jo=(t,e,r,n,i,s,a,o,l,u)=>{var c;let f,h,d,p,g,m,_,v,y,x,b,w,T,O,k,C,E,S,M=Array.from(t.childNodes),A=0,{wordDelimiter:P,reduceWhiteSpace:R=!0,prepareText:D}=e,z=t.getBoundingClientRect(),F=z,I=!R&&"pre"===window.getComputedStyle(t).whiteSpace.substring(0,3),N=0,B=r.collection;for("object"==typeof P?(d=P.delimiter||P,h=P.replaceWith||""):h=""===P?"":P||" ",f=" "!==h;A<M.length;A++)if(p=M[A],3===p.nodeType){for(k=p.textContent||"",R?k=k.replace(Wo," "):I&&(k=k.replace(/\n/g,h+"\n")),D&&(k=D(k,t)),p.textContent=k,g=h||d?k.split(d||h):k.match(o)||jo,E=g[g.length-1],v=f?" "===E.slice(-1):!E,E||g.pop(),F=z,_=f?" "===g[0].charAt(0):!g[0],_&&Qo(" ",t,p),g[0]||g.shift(),$o(g,l),s&&u||(p.textContent=""),y=1;y<=g.length;y++)if(C=g[y-1],!R&&I&&"\n"===C.charAt(0)&&(null==(c=p.previousSibling)||c.remove(),Qo(document.createElement("br"),t,p),C=C.slice(1)),R||""!==C)if(" "===C)t.insertBefore(document.createTextNode(" "),p);else{if(f&&" "===C.charAt(0)&&Qo(" ",t,p),N&&1===y&&!_&&B.indexOf(N.parentNode)>-1?(m=B[B.length-1],m.appendChild(document.createTextNode(n?"":C))):(m=r(n?"":C),Qo(m,t,p),N&&1===y&&!_&&m.insertBefore(N,m.firstChild)),n)for(b=Bo?$o([...Bo.segment(C)].map(t=>t.segment),l):C.match(o)||jo,S=0;S<b.length;S++)m.appendChild(" "===b[S]?document.createTextNode(" "):n(b[S]));if(s&&u){if(k=p.textContent=k.substring(C.length+1,k.length),x=m.getBoundingClientRect(),x.top>F.top&&x.left<=F.left){for(w=t.cloneNode(),T=t.childNodes[0];T&&T!==m;)O=T,T=T.nextSibling,w.appendChild(O);t.parentNode.insertBefore(w,t),i&&Zo(w)}F=x}(y<g.length||v)&&Qo(y>=g.length?" ":f&&" "===C.slice(-1)?" "+h:h,t,p)}else Qo(h,t,p);t.removeChild(p),N=0}else 1===p.nodeType&&(a&&a.indexOf(p)>-1?(B.indexOf(p.previousSibling)>-1&&B[B.length-1].appendChild(p),N=p):(Jo(p,e,r,n,i,s,a,o,l,!0),N=0),i&&Zo(p))};const tl=class t{constructor(t,e){this.isSplit=!1,Io||el.register(window.gsap),this.elements=Yo(t),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=e,this.elements.forEach(t=>{var r;!1!==e.overwrite&&(null==(r=t[No])||r._data.orig.filter(({element:e})=>e===t).forEach(Go)),t[No]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let r,n=[],i=()=>{let t,e=n.length;for(;e--;){t=n[e];let r=t.element.offsetWidth;if(r!==t.width)return t.width=r,void this._split()}};this._data={orig:n,obs:"undefined"!=typeof ResizeObserver&&new ResizeObserver(()=>{clearTimeout(r),r=setTimeout(i,200)})},Xo(this),this.split(e)}split(t){return(this._ctx||qo).add(()=>{this.isSplit&&this.revert(),this.vars=t=t||this.vars||{};let e,{type:r="chars,words,lines",aria:n="auto",deepSlice:i=!0,smartWrap:s,onSplit:a,autoSplit:o=!1,specialChars:l,mask:u}=this.vars,c=r.indexOf("lines")>-1,f=r.indexOf("chars")>-1,h=r.indexOf("words")>-1,d=f&&!h&&!c,p=l&&("push"in l?new RegExp("(?:"+l.join("|")+")","gu"):l),g=p?new RegExp(p.source+"|"+Ho.source,"gu"):Ho,m=!!t.ignore&&Yo(t.ignore),{orig:_,animTime:v,obs:y}=this._data;(f||h||c)&&(this.elements.forEach((e,r)=>{_[r]={element:e,html:e.innerHTML,ariaL:e.getAttribute("aria-label"),ariaH:e.getAttribute("aria-hidden")},"auto"===n?e.setAttribute("aria-label",(e.textContent||"").trim()):"hidden"===n&&e.setAttribute("aria-hidden","true");let a,o,l,u,v=[],y=[],x=[],b=f?Ko("char",t,v):null,w=Ko("word",t,y);if(Jo(e,t,w,b,d,i&&(c||d),m,g,p,!1),c){let r,n,i=Lo(e.childNodes),s=((t,e,r,n)=>{let i=Ko("line",r,n),s=window.getComputedStyle(t).textAlign||"left";return(r,n)=>{let a=i("");for(a.style.textAlign=s,t.insertBefore(a,e[r]);r<n;r++)a.appendChild(e[r]);a.normalize()}})(e,i,t,x),o=[],l=0,u=i.map(t=>1===t.nodeType?t.getBoundingClientRect():Uo),c=Uo;for(a=0;a<i.length;a++)r=i[a],1===r.nodeType&&("BR"===r.nodeName?(a&&"BR"===i[a-1].nodeName||(o.push(r),s(l,a+1)),l=a+1,c=Vo(u,a)):(n=u[a],a&&n.top>c.top&&n.left<c.left+c.width-1&&(s(l,a),l=a),c=n));l<a&&s(l,a),o.forEach(t=>{var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)})}if(!h){for(a=0;a<y.length;a++)if(o=y[a],f||!o.nextSibling||3!==o.nextSibling.nodeType)if(s&&!c){for(l=document.createElement("span"),l.style.whiteSpace="nowrap";o.firstChild;)l.appendChild(o.firstChild);o.replaceWith(l)}else o.replaceWith(...o.childNodes);else u=o.nextSibling,u&&3===u.nodeType&&(u.textContent=(o.textContent||"")+(u.textContent||""),o.remove());y.length=0,e.normalize()}this.lines.push(...x),this.words.push(...y),this.chars.push(...v)}),u&&this[u]&&this.masks.push(...this[u].map(t=>{let e=t.cloneNode();return t.replaceWith(e),e.appendChild(t),t.className&&(e.className=t.className.trim().split(" ").map(t=>t+"-mask").join(" ")),e.style.overflow="clip",e}))),this.isSplit=!0,Fo&&c&&o&&Fo.addEventListener("loadingdone",this._split),(e=a&&a(this))&&e.totalTime&&(this._data.anim=v?e.totalTime(v):e),c&&o&&this.elements.forEach((t,e)=>{_[e].width=t.offsetWidth,y&&y.observe(t)})}),this}kill(){let{obs:t}=this._data;t&&t.disconnect(),null==Fo||Fo.removeEventListener("loadingdone",this._split)}revert(){var t,e;if(this.isSplit){let{orig:r,anim:n}=this._data;this.kill(),r.forEach(Go),this.chars.length=this.words.length=this.lines.length=r.length=this.masks.length=0,this.isSplit=!1,n&&(this._data.animTime=n.totalTime(),n.revert()),null==(e=(t=this.vars).onRevert)||e.call(t,this)}return this}static create(e,r){return new t(e,r)}static register(t){zo=zo||t||window.gsap,zo&&(Lo=zo.utils.toArray,Xo=zo.core.context||Xo),!Io&&window.innerWidth>0&&(Fo=document.fonts,Io=!0)}};tl.version="3.15.0";let el=tl;li.registerPlugin(el,mo);const rl={Z_Text:function({text:s,scrollingElement:a,progression:f="char",animation:h="Fade",playOnScroll:d=!1,playInView:p=!1,controllerRef:g=null,style:m,className:_,children:v,delay:y=0,timeline:x,speed:b,gsapScrollTrigger:w,extendAnimation:T,watch:O=!1}){const k=r(null),[C,E]=n(!1),[S,M]=n(0),A=d||p,P=null!=x?x:li.timeline({paused:A,delay:y});return g&&(g.current=P),i(()=>function(){if(!O)return;const t="string"==typeof O?document.querySelector(O):window;if(!t)return;const e=()=>M(t=>t+1);return t.addEventListener("resize",e),()=>{t.removeEventListener("resize",e)}}(),[O]),i(()=>{let t=!0;return function(){Eo(this,void 0,void 0,function*(){yield document.fonts.ready,t&&E(!0)})}(),()=>t=!1},[]),Do(function(){const t=k.current;if(!t||!C)return;const e=li.context(()=>{var e;const r=a?document.querySelector(`${a}`):o(".fade_textation_x"),n=el.create(t,{type:"lines,words,chars",autoSplit:!0,linesClass:"line",wordsClass:"word",charsClass:"char"}),{chars:i,words:s,lines:g}=n,m=l(f,i,s,g,b,d),_=null!==(e=u[h])&&void 0!==e?e:u.Fade,v=Object.assign(Object.assign({},c(_,"from")),c(T,"from")),y=Object.assign(Object.assign({},c(_,"to")),c(T,"to"));P.set(m.set,v);"char_line"===f||"word_line"===f?m.animate.forEach(t=>{P.to(t.char,y,t.charIndexInLine*m.speed)}):P.to(m.animate,Object.assign(Object.assign({},y),{stagger:m.speed}),0);const x="function"==typeof w?w(P)||{}:w||{};d?mo.create(Object.assign({trigger:t,scroller:r,start:"top 85%",end:"top 35%",scrub:!0,animation:P},x)):p&&mo.create(Object.assign({trigger:t,scroller:r,start:"top bottom",onEnter:()=>P.restart(),onLeaveBack:()=>P.pause()},x))},k);return()=>e.revert()},{scope:k,dependencies:[C,S]}),e.isValidElement(v)?e.cloneElement(v,{ref:k,style:Object.assign(Object.assign({visibility:C?"visible":"hidden"},m),v.props.style),className:["fade_textation_x",v.props.className,_].filter(Boolean).join(" ")}):t("p",{className:`fade_textation_x ${_}`,style:Object.assign({visibility:C?"visible":"hidden"},m),ref:k,children:s})},VerticalScroll:Co};function nl(s){const{text:a,scrollingElement:o,progression:l="char",style:u,className:c,children:f,playOnScroll:h=!1,playInView:d=!1,delay:p=0,timeline:g,speed:m,gsapScrollTrigger:_,defaultAnimation:v,extendAnimation:y,watch:x=!1}=s,b=r(null),[w,T]=n(0),[O,k]=n(!1);return i(()=>{!function(){if(!x)return;("string"==typeof x?document.querySelector(x):window).addEventListener("resize",()=>{T(t=>t+1)})}()},[]),i(()=>{if("loaded"===document.fonts.status)k(!0);else{function t(){return Eo(this,void 0,void 0,function*(){yield document.fonts.ready.then(()=>{k(!0)}).catch(()=>{k(!0)})})}t()}},[]),Do(function(){const t=b.current;if(!t||!O)return;const e=o?document.querySelector(`${o}`):function(t){let e=document.querySelector(t);for(;e;){const{overflowY:t}=getComputedStyle(e);if(("auto"===t||"scroll"===t)&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.scrollingElement}(".fade_textation_x"),r=el.create(t,{type:"lines,words,chars",linesClass:"line",wordsClass:"word",charsClass:"char",autoSplit:!0}),{chars:n,lines:i,words:s}=r,a=function(){let t=n;if("char_line"===l){const e=i.flatMap(t=>{const e=n.filter(e=>t.contains(e));return e.map((t,e)=>({char:t,charIndexInLine:e}))});t=e}else if("word_line"===l){const e=i.flatMap((t,e)=>{const r=s.filter(e=>t.contains(e));return r.map((t,e)=>({char:t,charIndexInLine:e}))});t=e}else t="char"==l?n:"word"==l?s:"line"==l?i:n;return{set:"char"==l?n:"word"==l?s:"line"==l?i:"char_line"==l?n:"word_line"==l?s:n,animate:t,speed_0:m||("char"==l?h?.005:.1:"word"==l?.35:"line"==l?.9:"char_line"==l?.08:"word_line"==l?.5:.08)}}();function u(t,e){const r="object"==typeof t?t:{},n=Object.entries(r).map(t=>{const[e,r]=t;return{key:e,val:r}}),i={};for(let t=0;t<n.length;t++){const r=n[t].key,s=n[t].val,a="from"==e?s[0]:"to"==e?s[1]:"";null!==a&&(i[r]=a)}return i}const c=!(!h&&!d),f=g||li.timeline({paused:c,delay:p});f.set(a.set,Object.assign(Object.assign({opacity:0},u(v,"from")),u(y,"from")));const x=function(){if("object"==typeof _)return _;if("function"==typeof _)return _(f)||{};return{}}();return(t=>{t&&a.animate.forEach((e,r)=>{let n="char_line"===l||"word_line"===l,i=n?e.char:e;const s=n?e.charIndexInLine:r;t.to(i,Object.assign(Object.assign({opacity:1,ease:"power3.out"},u(v,"to")),u(y,"to")),s*a.speed_0)})})(f),h?mo.create(Object.assign({trigger:t,scroller:e,start:"top 85%",end:"top 35%",scrub:h,animation:f},x)):d&&mo.create(Object.assign({trigger:t,scroller:e,start:"top bottom",onEnter:()=>f.restart(),onLeaveBack:()=>f.pause()},x)),()=>{r.revert(),f.kill(),mo.getAll().forEach(e=>{e.trigger===t&&e.kill()})}},{dependencies:[O,w],scope:b}),e.isValidElement(f)?e.cloneElement(f,{ref:b,style:Object.assign(Object.assign({visibility:O?"visible":"hidden"},u),f.props.style),className:["fade_textation_x",f.props.className,c].filter(Boolean).join(" ")}):t("p",{className:`fade_textation_x ${c}`,style:Object.assign({visibility:O?"visible":"hidden"},u),ref:b,children:a})}li.registerPlugin(el,mo);const il={TextEngine:nl,TextFade:function(e){return t(nl,Object.assign({defaultAnimation:{opacity:[0,1]}},e))},TextFadeSkew:function(e){return t(nl,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],skewX:[100,0]}},e))},TextFadeSkew_2:function(e){return t(nl,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],y:[100,0],skewX:[-100,0]}},e))},TextFadeDown:function(e){return t(nl,Object.assign({defaultAnimation:{opacity:[0,1],y:["100%","0%"],duration:[null,1],stagger:[null,.1]}},e))},TextFadeOverlay:function(e){return t(nl,Object.assign({defaultAnimation:{opacity:[.2,1]}},e))},VerticalScroll:Co};function sl({name:t}){console.log("Hey!!! Hello ",t,". Package is updated!!!")}const{TextEngine:al,TextFade:ol,TextFadeDown:ll,TextFadeSkew:ul,TextFadeSkew_2:cl,TextFadeOverlay:fl}=il,{Z_Text:hl,VerticalScroll:dl}=rl;export{al as TextEngine,ol as TextFade,ll as TextFadeDown,fl as TextFadeOverlay,ul as TextFadeSkew,cl as TextFadeSkew_2,dl as VerticalScroll,hl as Z_Text,sl as justSayHello};
55
55
  //# sourceMappingURL=index.mjs.map