z-flux-react 1.0.2 → 1.0.4
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.d.ts +5 -19
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";import r,{useRef as n,useState as i,useEffect as s,useLayoutEffect as a,Fragment as o}from"react";import{countNumbers as l,overlay_text_animations as u,getLayerWidth as c,randomizeArray as h,findScrollingElement as f,build_extend_animation as d,getProgressionData as p,animation_list as g}from"z-flux-utils";function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(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 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)&<(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;
|
|
9
|
+
*/var v,y,x,b,w,T,O,C,k,E,S,M,A,P,R,D,z,F={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},N={duration:.5,overwrite:!1,delay:0},I=1e8,B=1e-8,L=2*Math.PI,j=L/4,Y=0,W=Math.sqrt,X=Math.cos,q=Math.sin,H=function(t){return"string"==typeof t},U=function(t){return"function"==typeof t},V=function(t){return"number"==typeof t},G=function(t){return void 0===t},$=function(t){return"object"==typeof t},Z=function(t){return!1!==t},Q=function(){return"undefined"!=typeof window},K=function(t){return U(t)||H(t)},J="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},tt=Array.isArray,et=/random\([^)]+\)/g,rt=/,\s*/g,nt=/(?:-?\.?\d|\.)+/gi,it=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,st=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,at=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ot=/[+-]=-?[.\d]+/,lt=/[^,'"\[\]\s]+/gi,ut=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ct={},ht={},ft=function(t){return(ht=Wt(t,ct))&&Wr},dt=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},pt=function(t,e){return!e&&console.warn(t)},gt=function(t,e){return t&&(ct[t]=e)&&ht&&(ht[t]=e)||ct},mt=function(){return 0},_t={suppressEvents:!0,isStart:!0,kill:!1},vt={suppressEvents:!0,kill:!1},yt={suppressEvents:!0},xt={},bt=[],wt={},Tt={},Ot={},Ct=30,kt=[],Et="",St=function(t){var e,r,n=t[0];if($(n)||U(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=kt.length;r--&&!kt[r].targetTest(n););e=kt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new rr(t[r],e)))||t.splice(r,1);return t},Mt=function(t){return t._gsap||St(xe(t))[0]._gsap},At=function(t,e,r){return(r=t[e])&&U(r)?t[e]():G(r)&&t.getAttribute&&t.getAttribute(e)||r},Pt=function(t,e){return(t=t.split(",")).forEach(e)||t},Rt=function(t){return Math.round(1e5*t)/1e5||0},Dt=function(t){return Math.round(1e7*t)/1e7||0},zt=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},Ft=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},Nt=function(){var t,e,r=bt.length,n=bt.slice(0);for(wt={},bt.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},It=function(t){return!!(t._initted||t._startAt||t.add)},Bt=function(t,e,r,n){bt.length&&!y&&Nt(),t.render(e,r,n||!!(y&&e<0&&It(t))),bt.length&&!y&&Nt()},Lt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(lt).length<2?e:H(t)?t.trim():t},jt=function(t){return t},Yt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Wt=function(t,e){for(var r in e)t[r]=e[r];return t},Xt=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=$(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},qt=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},Ht=function(t){var e,r=t.parent||b,n=t.keyframes?(e=tt(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):Yt;if(Z(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Ut=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},Vt=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},Gt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},$t=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},Zt=function(t,e,r,n){return t._startAt&&(y?t._startAt.revert(vt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},Qt=function t(e){return!e||e._ts&&t(e.parent)},Kt=function(t){return t._repeat?Jt(t._tTime,t=t.duration()+t._rDelay)*t:0},Jt=function(t,e){var r=Math.floor(t=Dt(t/e));return t&&r===t?r-1:r},te=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},ee=function(t){return t._end=Dt(t._start+(t._tDur/Math.abs(t._ts||t._rts||B)||0))},re=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=Dt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ee(t),r._dirty||$t(r,t)),t},ne=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=te(t.rawTime(),e),(!e._dur||ge(0,e.totalDuration(),r)-e._tTime>B)&&e.render(r,!0)),$t(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}},ie=function(t,e,r,n){return e.parent&&Gt(e),e._start=Dt((V(r)?r:r||t!==b?fe(t,r,e):t._time)+e._delay),e._end=Dt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ut(t,e,"_first","_last",t._sort?"_start":0),le(e)||(t._recent=e),n||ne(t,e),t._ts<0&&re(t,t._tTime),t},se=function(t,e){return(ct.ScrollTrigger||dt("scrollTrigger",e))&&ct.ScrollTrigger.create(e,t)},ae=function(t,e,r,n,i){return cr(t,e,i),t._initted?!r&&t._pt&&!y&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&k!==qe.frame?(bt.push(t),t._lazy=[i,n],1):void 0:1},oe=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},le=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ue=function(t,e,r,n){var i=t._repeat,s=Dt(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:Dt(s*(i+1)+t._rDelay*i):s,a>0&&!n&&re(t,t._tTime=t._tDur*a),t.parent&&ee(t),r||$t(t.parent,t),t},ce=function(t){return t instanceof ir?$t(t):ue(t,t._dur)},he={_start:0,endTime:mt,totalDuration:mt},fe=function t(e,r,n){var i,s,a,o=e.labels,l=e._recent||he,u=e.duration()>=I?l.endTime(!1):e._dur;return H(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*(tt(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:u+s)):null==r?u:+r},de=function(t,e,r){var n,i,s=V(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=Z(i.vars.inherit)&&i.parent;o.immediateRender=Z(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new gr(e[0],o,e[a+1])},pe=function(t,e){return t||0===t?e(t):e},ge=function(t,e,r){return r<t?t:r>e?e:r},me=function(t,e){return H(t)&&(e=ut.exec(t))?e[1]:""},_e=[].slice,ve=function(t,e){return t&&$(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&$(t[0]))&&!t.nodeType&&t!==w},ye=function(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){var n;return H(t)&&!e||ve(t,1)?(n=r).push.apply(n,xe(t)):r.push(t)})||r},xe=function(t,e,r){return x&&!e&&x.selector?x.selector(t):!H(t)||r||!T&&He()?tt(t)?ye(t,r):ve(t)?_e.call(t,0):t?[t]:[]:_e.call((e||O).querySelectorAll(t),0)},be=function(t){return t=xe(t)[0]||pt("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return xe(e,r.querySelectorAll?r:r===t?pt("Invalid scope")||O.createElement("div"):t)}},we=function(t){return t.sort(function(){return.5-Math.random()})},Te=function(t){if(U(t))return t;var e=$(t)?t:{each:t},r=Qe(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 H(n)?u=c={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(u=n[0],c=n[1]),function(t,a,h){var f,d,p,g,m,_,v,y,x,b=(h||e).length,w=s[b];if(!w){if(!(x="auto"===e.grid?0:(e.grid||[1,I])[1])){for(v=-1e8;v<(v=h[x++].getBoundingClientRect().left)&&x<b;);x<b&&x--}for(w=s[b]=[],f=o?Math.min(x,b)*u-.5:n%x,d=x===I?0:o?b*c/x-.5:n/x|0,v=0,y=I,_=0;_<b;_++)p=_%x-f,g=d-(_/x|0),w[_]=m=l?Math.abs("y"===l?g:p):W(p*p+g*g),m>v&&(v=m),m<y&&(y=m);"random"===n&&we(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=me(e.amount||e.each)||0,r=r&&b<0?Ze(r):r}return b=(w[t]-w.min)/w.max||0,Dt(w.b+(r?r(b):b)*w.v)+w.u}},Oe=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=Dt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(V(r)?0:me(r))}},Ce=function(t,e){var r,n,i=tt(t);return!i&&$(t)&&(r=i=t.radius||I,t.values?(t=xe(t.values),(n=!V(t[0]))&&(r*=r)):t=Oe(t.increment)),pe(e,i?U(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=I,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||V(e)?u:u+me(e)}:Oe(t))},ke=function(t,e,r,n){return pe(tt(t)?!e:!0===r?!!(r=0):!n,function(){return tt(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})},Ee=function(t,e,r){return pe(r,function(r){return t[~~e(r)]})},Se=function(t){return t.replace(et,function(t){var e=t.indexOf("[")+1,r=t.substring(e||7,e?t.indexOf("]"):t.length-1).split(rt);return ke(e?r:+r[0],e?0:+r[1],+r[2]||1e-5)})},Me=function(t,e,r,n,i){var s=e-t,a=n-r;return pe(i,function(e){return r+((e-t)/s*a||0)})},Ae=function(t,e,r){var n,i,s,a=t.labels,o=I;for(n in a)(i=a[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(s=n,o=i);return s},Pe=function(t,e,r){var n,i,s,a=t.vars,o=a[e],l=x,u=t._ctx;if(o)return n=a[e+"Params"],i=a.callbackScope||t,r&&bt.length&&Nt(),u&&(x=u),s=n?o.apply(i,n):o.call(i),x=l,s},Re=function(t){return Gt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!y),t.progress()<1&&Pe(t,"onInterrupt"),t},De=[],ze=function(t){if(t)if(t=!t.name&&t.default||t,Q()||t.headless){var e=t.name,r=U(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:mt,render:Or,add:lr,kill:kr,modifier:Cr,rawVars:0},s={targetTest:0,get:0,getSetter:xr,aliases:{},register:0};if(He(),t!==n){if(Tt[e])return;Yt(n,Yt(qt(t,i),s)),Wt(n.prototype,Wt(i,qt(t,s))),Tt[n.prop=e]=n,t.targetTest&&(kt.push(n),xt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}gt(e,n),t.register&&t.register(Wr,n,Mr)}else De.push(t)},Fe=255,Ne={aqua:[0,Fe,Fe],lime:[0,Fe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Fe],navy:[0,0,128],white:[Fe,Fe,Fe],olive:[128,128,0],yellow:[Fe,Fe,0],orange:[Fe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Fe,0,0],pink:[Fe,192,203],cyan:[0,Fe,Fe],transparent:[Fe,Fe,Fe,0]},Ie=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)*Fe+.5|0},Be=function(t,e,r){var n,i,s,a,o,l,u,c,h,f,d=t?V(t)?[t>>16,t>>8&Fe,t&Fe]:0:Ne.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ne[t])d=Ne[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&Fe,d&Fe,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&Fe,t&Fe]}else if("hsl"===t.substr(0,3))if(d=f=t.match(nt),e){if(~t.indexOf("="))return d=t.match(it),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]=Ie(a+1/3,n,i),d[1]=Ie(a,n,i),d[2]=Ie(a-1/3,n,i);else d=t.match(nt)||Ne.transparent;d=d.map(Number)}return e&&!f&&(n=d[0]/Fe,i=d[1]/Fe,s=d[2]/Fe,l=((u=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,u===c?a=o=0:(h=u-c,o=l>.5?h/(2-u-c):h/(u+c),a=u===n?(i-s)/h+(i<s?6:0):u===i?(s-n)/h+2:(n-i)/h+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},Le=function(t){var e=[],r=[],n=-1;return t.split(Ye).forEach(function(t){var i=t.match(st)||[];e.push.apply(e,i),r.push(n+=i.length+1)}),e.c=r,e},je=function(t,e,r){var n,i,s,a,o="",l=(t+o).match(Ye),u=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map(function(t){return(t=Be(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=Le(t),(n=r.c).join(o)!==s.c.join(o)))for(a=(i=t.replace(Ye,"1").split(st)).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(Ye)).length-1;c<a;c++)o+=i[c]+l[c];return o+i[a]},Ye=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ne)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),We=/hsl[a]?\(/,Xe=function(t){var e,r=t.join(" ");if(Ye.lastIndex=0,Ye.test(r))return e=We.test(r),t[1]=je(t[1],e),t[0]=je(t[0],e,Le(t[1])),!0},qe=function(){var t,e,r,n,i,s,a=Date.now,o=500,l=33,u=a(),c=u,h=1e3/240,f=h,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)-f)>0||x)&&(v=++n.frame,i=_-1e3*n.time,n.time=_/=1e3,f+=g+(g>=h?4:h-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(){C&&(!T&&Q()&&(w=T=window,O=w.document||{},ct.gsap=Wr,(w.gsapVersions||(w.gsapVersions=[])).push(Wr.version),ft(ht||w.GreenSockGlobals||!w.gsap&&w||{}),De.forEach(ze)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,f-1e3*n.time+1|0)},S=1,p(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),S=0,e=mt},lagSmoothing:function(t,e){o=t||1/0,l=Math.min(e||33,o)},fps:function(t){h=1e3/(t||240),f=1e3*n.time+h},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),He(),i},remove:function(t,e){~(e=d.indexOf(t))&&d.splice(e,1)&&s>=e&&s--},_listeners:d}}(),He=function(){return!S&&qe.wake()},Ue={},Ve=/^[\d.\-M][\d.\-,\s]/,Ge=/["']/g,$e=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(Ge,"").trim():+n,a=r.substr(e+1).trim();return i},Ze=function(t){return function(e){return 1-t(1-e)}},Qe=function(t,e){return t&&(U(t)?t:Ue[t]||function(t){var e,r,n,i,s=(t+"").split("("),a=Ue[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[$e(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(Lt)):Ue._CE&&Ve.test(t)?Ue._CE("",t):a}(t))||e},Ke=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 Pt(t,function(t){for(var e in Ue[t]=ct[t]=s,Ue[i=t.toLowerCase()]=r,s)Ue[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ue[t+"."+e]=s[e]}),s},Je=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},tr=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),a=s/L*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*q((t-a)*s)+1},l="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Je(o);return s=L/s,l.config=function(r,n){return t(e,r,n)},l},er=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)}:Je(n);return i.config=function(r){return t(e,r)},i};Pt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Ke(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})}),Ue.Linear.easeNone=Ue.none=Ue.Linear.easeIn,Ke("Elastic",tr("in"),tr("out"),tr()),M=7.5625,R=2*(P=1/(A=2.75)),D=2.5*P,Ke("Bounce",function(t){return 1-z(1-t)},z=function(t){return t<P?M*t*t:t<R?M*Math.pow(t-1.5/A,2)+.75:t<D?M*(t-=2.25/A)*t+.9375:M*Math.pow(t-2.625/A,2)+.984375}),Ke("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),Ke("Circ",function(t){return-(W(1-t*t)-1)}),Ke("Sine",function(t){return 1===t?1:1-X(t*j)}),Ke("Back",er("in"),er("out"),er()),Ue.SteppedEase=Ue.steps=ct.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*ge(0,.99999999,t)|0)+i)*r}}},N.ease=Ue["quad.out"],Pt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Et+=t+","+t+"Params,"});var rr=function(t,e){this.id=Y++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:At,this.set=e?e.getSetter:xr},nr=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,ue(this,+t.duration,1,1),this.data=t.data,x&&(this._ctx=x,x.data.push(this)),S||qe.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,ue(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(He(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(re(this,t),!r._dp||r.parent||ne(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)&&ie(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===B||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Bt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Kt(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)+Kt(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?Jt(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?te(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(ge(-Math.abs(this._delay),this.totalDuration(),r),!1!==e),ee(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):(He(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==B&&(this._tTime-=B)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=Dt(t);var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&ie(e,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Z(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?te(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=yt);var e=y;return y=t,It(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),y=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,ce(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,ce(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(fe(this,t),Z(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Z(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)-B))},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=U(t)?t:jt,s=function(){var t=e.then;e.then=null,r&&r(),U(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(){Re(this)},t}();Yt(nr.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 ir=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=Z(e.sortChildren),b&&ie(e.parent||b,m(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&se(m(n),e.scrollTrigger),n}_(e,t);var r=e.prototype;return r.to=function(t,e,r){return de(0,arguments,this),this},r.from=function(t,e,r){return de(1,arguments,this),this},r.fromTo=function(t,e,r,n){return de(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,Ht(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new gr(t,e,fe(this,r),1),this},r.call=function(t,e,r){return ie(this,gr.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 gr(t,r,fe(this,i)),this},r.staggerFrom=function(t,e,r,n,i,s,a){return r.runBackwards=1,Ht(r).immediateRender=Z(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,Ht(n).immediateRender=Z(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,h,f,d,p,g=this._time,m=this._dirty?this.totalDuration():this._tDur,_=this._dur,v=t<=0?0:Dt(t),x=this._zTime<0!=t<0&&(this._initted||!_);if(this!==b&&v>m&&t>=0&&(v=m),v!==this._tTime||r||x){if(g!==this._time&&_&&(v+=this._time-g,t+=this._time-g),n=v,h=this._start,l=!(c=this._ts),x&&(_||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,o=_+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(n=Dt(v%o),v===m?(a=this._repeat,n=_):((a=~~(f=Dt(v/o)))&&a===f&&(n=_,a--),n>_&&(n=_)),f=Jt(this._tTime,o),!g&&this._tTime&&f!==a&&this._tTime-f*o-this._dur<=0&&(f=a),d&&1&a&&(n=_-n,p=1),a!==f&&!this._lock){var w=d&&1&f,T=w===(d&&1&a);if(a<f&&(w=!w),g=w?0:v%_?_:v,this._lock=1,this.render(g||(p?0:Dt(a*o)),e,!_)._lock=0,this._tTime=v,!e&&this.parent&&Pe(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1,f=a),g&&g!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(_=this._dur,m=this._tDur,T&&(this._lock=2,g=w?_:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!p&&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,Dt(g),Dt(n)),u&&(v-=n-(n=u._start))),this._tTime=v,this._time=n,this._act=!!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&v&&_&&!e&&!f&&(Pe(this,"onStart"),this._tTime!==v))return this;if(n>=g&&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&&(v+=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||y&&It(i)),n!==this._time||!this._ts&&!l){u=0,s&&(v+=this._zTime=O?-1e-8:B);break}}i=s}}if(u&&!e&&(this.pause(),u.render(n>=g?0:-1e-8)._zTime=n>=g?1:-1,this._ts))return this._start=h,ee(this),this.render(t,e,r);this._onUpdate&&!e&&Pe(this,"onUpdate",!0),(v===m&&this._tTime>=this.totalDuration()||!v&&g)&&(h!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!_)&&(v===m&&this._ts>0||!v&&this._ts<0)&&Gt(this,1),e||t<0&&!g||!v&&!g&&m||(Pe(this,v===m&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<m&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(V(e)||(e=fe(this,e,t)),!(t instanceof nr)){if(tt(t))return t.forEach(function(t){return r.add(t,e)}),this;if(H(t))return this.addLabel(t,e);if(!U(t))return this;t=gr.delayedCall(0,t)}return this!==t?ie(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 gr?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 H(t)?this.removeLabel(t):U(t)?this.killTweensOf(t):(t.parent===this&&Vt(this,t),t===this._recent&&(this._recent=this._last),$t(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Dt(qe.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]=fe(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=gr.delayedCall(0,e||mt,r);return n.data="isPause",this._hasPause=1,ie(this,n,fe(this,t))},r.removePause=function(t){var e=this._first;for(t=fe(this,t);e;)e._start===t&&"isPause"===e.data&&Gt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)sr!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=xe(t),s=this._first,a=V(e);s;)s instanceof gr?Ft(s._targets,i)&&(a?(!sr||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=fe(n,t),s=e,a=s.startAt,o=s.onStart,l=s.onStartParams,u=s.immediateRender,c=gr.to(n,Yt({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())||B,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&&ue(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,Yt({startAt:{time:fe(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),Ae(this,fe(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),Ae(this,fe(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+B)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);var n,i=this._first,s=this.labels;for(t=Dt(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 $t(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={}),$t(this)},r.totalDuration=function(t){var e,r,n,i=0,s=this,a=s._last,o=I;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,ie(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=Dt(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;ue(s,s===b&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(b._ts&&(Bt(b,te(t,b)),k=qe.frame),qe.frame>=Ct){Ct+=F.autoSleep||120;var e=b._first;if((!e||!e._ts)&&F.autoSleep&&qe._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||qe.sleep()}}},e}(nr);Yt(ir.prototype,{_lock:0,_hasPause:0,_forcing:0});var sr,ar,or=function(t,e,r,n,i,s,a){var o,l,u,c,h,f,d,p,g=new Mr(this._pt,t,e,0,1,Tr,null,i),m=0,_=0;for(g.b=r,g.e=n,r+="",(d=~(n+="").indexOf("random("))&&(n=Se(n)),s&&(s(p=[r,n],t,e),r=p[0],n=p[1]),l=r.match(at)||[];o=at.exec(n);)c=o[0],h=n.substring(m,o.index),u?u=(u+1)%5:"rgba("===h.substr(-5)&&(u=1),c!==l[_++]&&(f=parseFloat(l[_-1])||0,g._pt={_next:g._pt,p:h||1===_?h:",",s:f,c:"="===c.charAt(1)?zt(f,c)-f:parseFloat(c)-f,m:u&&u<4?Math.round:0},m=at.lastIndex);return g.c=m<n.length?n.substring(m,n.length):"",g.fp=a,(ot.test(n)||d)&&(g.e=0),this._pt=g,g},lr=function(t,e,r,n,i,s,a,o,l,u){U(n)&&(n=n(i||0,t,s));var c,h=t[e],f="get"!==r?r:U(h)?l?t[e.indexOf("set")||!U(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,d=U(h)?l?vr:_r:mr;if(H(n)&&(~n.indexOf("random(")&&(n=Se(n)),"="===n.charAt(1)&&((c=zt(f,n)+(me(f)||0))||0===c)&&(n=c)),!u||f!==n||ar)return isNaN(f*n)||""===n?(!h&&!(e in t)&&dt(e,n),or.call(this,t,e,f,n,d,o||F.stringFilter,l)):(c=new Mr(this._pt,t,e,+f||0,n-(f||0),"boolean"==typeof h?wr:br,0,d),l&&(c.fp=l),a&&c.modifier(a,this,t),this._pt=c)},ur=function(t,e,r,n,i,s){var a,o,l,u;if(Tt[t]&&!1!==(a=new Tt[t]).init(i,a.rawVars?e[t]:function(t,e,r,n,i){if(U(t)&&(t=fr(t,i,e,r,n)),!$(t)||t.style&&t.nodeType||tt(t)||J(t))return H(t)?fr(t,i,e,r,n):t;var s,a={};for(s in t)a[s]=fr(t[s],i,e,r,n);return a}(e[t],n,i,s,r),r,n,s)&&(r._pt=o=new Mr(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==E))for(l=r._ptLookup[r._targets.indexOf(i)],u=a._props.length;u--;)l[a._props[u]]=o;return a},cr=function t(e,r,n){var i,s,a,o,l,u,c,h,f,d,p,g,m,_=e.vars,x=_.ease,w=_.startAt,T=_.immediateRender,O=_.lazy,C=_.onUpdate,k=_.runBackwards,E=_.yoyoEase,S=_.keyframes,M=_.autoRevert,A=e._dur,P=e._startAt,R=e._targets,D=e.parent,z=D&&"nested"===D.data?D.vars.targets:R,F="auto"===e._overwrite&&!v,L=e.timeline,j=_.easeReverse||E;if(L&&(!S||!x)&&(x="none"),e._ease=Qe(x,N.ease),e._rEase=j&&(Qe(j)||e._ease),e._from=!L&&!!_.runBackwards,e._from&&(e.ratio=1),!L||S&&!_.stagger){if(g=(h=R[0]?Mt(R[0]).harness:0)&&_[h.prop],i=qt(_,xt),P&&(P._zTime<0&&P.progress(1),r<0&&k&&T&&!M?P.render(-1,!0):P.revert(k&&A?vt:_t),P._lazy=0),w){if(Gt(e._startAt=gr.set(R,Yt({data:"isStart",overwrite:!1,parent:D,immediateRender:!0,lazy:!P&&Z(O),startAt:null,delay:0,onUpdate:C&&function(){return Pe(e,"onUpdate")},stagger:0},w))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(y||!T&&!M)&&e._startAt.revert(vt),T&&A&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(k&&A&&!P)if(r&&(T=!1),a=Yt({overwrite:!1,data:"isFromStart",lazy:T&&!P&&Z(O),immediateRender:T,stagger:0,parent:D},i),g&&(a[h.prop]=g),Gt(e._startAt=gr.set(R,a)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(y?e._startAt.revert(vt):e._startAt.render(-1,!0)),e._zTime=r,T){if(!r)return}else t(e._startAt,B,B);for(e._pt=e._ptCache=0,O=A&&Z(O)||O&&!A,s=0;s<R.length;s++){if(c=(l=R[s])._gsap||St(R)[s]._gsap,e._ptLookup[s]=d={},wt[c.id]&&bt.length&&Nt(),p=z===R?s:z.indexOf(l),h&&!1!==(f=new h).init(l,g||i,e,p,z)&&(e._pt=o=new Mr(e._pt,l,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){d[t]=o}),f.priority&&(u=1)),!h||g)for(a in i)Tt[a]&&(f=ur(a,i,e,p,l,z))?f.priority&&(u=1):d[a]=o=lr.call(e,l,a,"get",i[a],p,z,0,_.stringFilter);e._op&&e._op[s]&&e.kill(l,e._op[s]),F&&e._pt&&(sr=e,b.killTweensOf(l,d,e.globalTime(r)),m=!e.parent,sr=0),e._pt&&O&&(wt[c.id]=1)}u&&Sr(e),e._onInit&&e._onInit(e)}e._onUpdate=C,e._initted=(!e._op||e._pt)&&!m,S&&r<=0&&L.render(I,!0,!0)},hr=function(t,e,r,n){var i,s,a=e.ease||n||"power1.inOut";if(tt(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})},fr=function(t,e,r,n,i){return U(t)?t.call(e,r,n,i):H(t)&&~t.indexOf("random(")?Se(t):t},dr=Et+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",pr={};Pt(dr+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return pr[t]=1});var gr=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,f,d,p=(s=t.call(this,i?r:Ht(r))||this).vars,g=p.duration,_=p.delay,y=p.immediateRender,x=p.stagger,w=p.overwrite,T=p.keyframes,O=p.defaults,C=p.scrollTrigger,k=r.parent||b,E=(tt(e)||J(e)?V(e[0]):"length"in r)?[e]:xe(e);if(s._targets=E.length?St(E):pt("GSAP target "+e+" not found. https://gsap.com",!F.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=w,T||x||K(g)||K(_)){var S=(r=s.vars).easeReverse||r.yoyoEase;if((a=s.timeline=new ir({data:"nested",defaults:O||{},targets:k&&"nested"===k.data?k.vars.targets:E})).kill(),a.parent=a._dp=m(s),a._start=0,x||K(g)||K(_)){if(u=E.length,f=x&&Te(x),$(x))for(c in x)~dr.indexOf(c)&&(d||(d={}),d[c]=x[c]);for(o=0;o<u;o++)(l=qt(r,pr)).stagger=0,S&&(l.easeReverse=S),d&&Wt(l,d),h=E[o],l.duration=+fr(g,m(s),o,h,E),l.delay=(+fr(_,m(s),o,h,E)||0)-s._delay,!x&&1===u&&l.delay&&(s._delay=_=l.delay,s._start+=_,l.delay=0),a.to(h,l,f?f(o,h,E):0),a._ease=Ue.none;a.duration()?g=_=0:s.timeline=0}else if(T){Ht(Yt(a.vars.defaults,{ease:"none"})),a._ease=Qe(T.ease||r.ease||"none");var M,A,P,R=0;if(tt(T))T.forEach(function(t){return a.to(E,t,">")}),a.duration();else{for(c in l={},T)"ease"===c||"easeEach"===c||hr(c,T[c],l,T.easeEach);for(c in l)for(M=l[c].sort(function(t,e){return t.t-e.t}),R=0,o=0;o<M.length;o++)(P={ease:(A=M[o]).e,duration:(A.t-(o?M[o-1].t:0))/100*g})[c]=A.v,a.to(E,P,R),R+=P.duration;a.duration()<g&&a.to({},{duration:g-a.duration()})}}g||s.duration(g=a.duration())}else s.timeline=0;return!0!==w||v||(sr=m(s),b.killTweensOf(E),sr=0),ie(k,m(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),(y||!g&&!T&&s._start===Dt(k._time)&&Z(y)&&Qt(m(s))&&"nested"!==k.data)&&(s._tTime=-1e-8,s.render(Math.max(0,-_)||0)),C&&se(m(s),C),s}_(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,s,a,o,l,u,c,h=this._time,f=this._tDur,d=this._dur,p=t<0,g=t>f-B&&!p?f:t<B?0:t;if(d){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==p||this._lazy){if(n=g,c=this.timeline,this._repeat){if(a=d+this._rDelay,this._repeat<-1&&p)return this.totalTime(100*a+t,e,r);if(n=Dt(g%a),g===f?(s=this._repeat,n=d):(s=~~(o=Dt(g/a)))&&s===o?(n=d,s--):n>d&&(n=d),(l=this._yoyo&&1&s)&&(n=d-n),o=Jt(this._tTime,a),n===h&&!r&&this._initted&&s===o)return this._tTime=g,this;s!==o&&this.vars.repeatRefresh&&!l&&!this._lock&&n!==a&&this._initted&&(this._lock=r=1,this.render(Dt(a*s),!0).invalidate()._lock=0)}if(!this._initted){if(ae(this,p?t:n,r,e,g))return this._tTime=0,this;if(!(h===this._time||r&&this.vars.repeatRefresh&&s!==o))return this;if(d!==this._dur)return this.render(t,e,r)}if(this._rEase){var m=n<h;if(m!==this._inv){var _=m?h:d-h;this._inv=m,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=h,this._invRecip=_?(m?-1:1)/_:0,this._invScale=m?-this.ratio:1-this.ratio,this._invEase=m?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=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),!h&&g&&!e&&!o&&(Pe(this,"onStart"),this._tTime!==g))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&&(p&&Zt(this,t,0,r),Pe(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&Pe(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(p&&!this._onUpdate&&Zt(this,t,0,!0),(t||!d)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Gt(this,1),e||p&&!h||!(g||h||l)||(Pe(this,g===f?"onComplete":"onReverseComplete",!0),this._prom&&!(g<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,s,a,o=t.ratio,l=e<0||!e&&(!t._start&&oe(t)&&(t._initted||!le(t))||(t._ts<0||t._dp._ts<0)&&!le(t))?0:1,u=t._rDelay,c=0;if(u&&t._repeat&&(c=ge(0,t._tDur,e),s=Jt(c,u),t._yoyo&&1&s&&(l=1-l),s!==Jt(t._tTime,u)&&(o=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==o||y||n||t._zTime===B||!e&&t._zTime){if(!t._initted&&ae(t,e,n,r,c))return;for(a=t._zTime,t._zTime=e||(r?B: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&&Zt(t,e,0,!0),t._onUpdate&&!r&&Pe(t,"onUpdate"),c&&t._repeat&&!r&&t.parent&&Pe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Gt(t,1),r||y||(Pe(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){S||qe.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||cr(this,s),function(t,e,r,n,i,s,a,o){var l,u,c,h,f=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!f)for(f=t._ptCache[e]=[],c=t._ptLookup,h=t._targets.length;h--;){if((l=c[h][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return ar=1,t.vars[e]="+=0",cr(t,a),ar=0,o?pt(e+" not eligible for reset. Try splitting into individual properties"):1;f.push(l)}for(h=f.length;h--;)(l=(u=f[h])._pt||u).s=!n&&0!==n||i?l.s+(n||0)+s*l.c:n,l.c=r-l.s,u.e&&(u.e=Rt(r)+me(u.e)),u.b&&(u.b=l.s+me(u.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(re(this,0),this.parent||Ut(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?Re(this):this.scrollTrigger&&this.scrollTrigger.kill(!!y),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,sr&&!0!==sr.vars.overwrite)._first||Re(this),this.parent&&r!==this.timeline.totalDuration()&&ue(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,a,o,l,u,c=this._targets,h=t?xe(t):c,f=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,h))return"all"===e&&(this._pt=0),Re(this);for(n=this._op=this._op||[],"all"!==e&&(H(e)&&(o={},Pt(e,function(t){return o[t]=1}),e=o),e=function(t,e){var r,n,i,s,a=t[0]?Mt(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in r=Wt({},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(~h.indexOf(c[u]))for(o in i=f[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)||Vt(this,l,"_pt"),delete i[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&d&&Re(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return de(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 de(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 b.killTweensOf(t,e,r)},e}(nr);Yt(gr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Pt("staggerTo,staggerFrom,staggerFromTo",function(t){gr[t]=function(){var e=new ir,r=_e.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var mr=function(t,e,r){return t[e]=r},_r=function(t,e,r){return t[e](r)},vr=function(t,e,r,n){return t[e](n.fp,r)},yr=function(t,e,r){return t.setAttribute(e,r)},xr=function(t,e){return U(t[e])?_r:G(t[e])&&t.setAttribute?yr:mr},br=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},wr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Tr=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)},Or=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},kr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Vt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},Er=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},Sr=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},Mr=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||br,this.d=a||this,this.set=o||mr,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=Er,this.m=t,this.mt=r,this.tween=e},t}();Pt(Et+"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 xt[t]=1}),ct.TweenMax=ct.TweenLite=gr,ct.TimelineLite=ct.TimelineMax=ir,b=new ir({sortChildren:!1,defaults:N,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),F.stringFilter=Xe;var Ar=[],Pr={},Rr=[],Dr=0,zr=0,Fr=function(t){return(Pr[t]||Rr).map(function(t){return t()})},Nr=function(){var t=Date.now(),e=[];t-Dr>2&&(Fr("matchMediaInit"),Ar.forEach(function(t){var r,n,i,s,a=t.queries,o=t.conditions;for(n in a)(r=w.matchMedia(a[n]).matches)&&(i=1),r!==o[n]&&(o[n]=r,s=1);s&&(t.revert(),i&&e.push(t))}),Fr("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),Dr=t,Fr("matchMedia"))},Ir=function(){function t(t,e){this.selector=e&&be(e),this.data=[],this._r=[],this.isReverted=!1,this.id=zr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){U(t)&&(r=e,e=t,t=U);var n=this,i=function(){var t,i=x,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=be(r)),x=n,t=e.apply(n,arguments),U(t)&&n._r.push(t),x=i,n.selector=s,n.isReverted=!1,t};return n.last=i,t===U?i(n,function(t){return n.add(null,t)}):t?n[t]=i:i},e.ignore=function(t){var e=x;x=null,t(this),x=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof gr&&!(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 ir?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof gr)&&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=Ar.length;n--;)Ar[n].id===this.id&&Ar.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),Br=function(){function t(t){this.contexts=[],this.scope=t,x&&x.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){$(t)||(t={matches:t});var n,i,s,a=new Ir(0,r||this.scope),o=a.conditions={};for(i in x&&!a.selector&&(a.selector=x.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?s=1:(n=w.matchMedia(t[i]))&&(Ar.indexOf(a)<0&&Ar.push(a),(o[i]=n.matches)&&(s=1),n.addListener?n.addListener(Nr):n.addEventListener("change",Nr));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}(),Lr={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 ze(t)})},timeline:function(t){return new ir(t)},getTweensOf:function(t,e){return b.getTweensOf(t,e)},getProperty:function(t,e,r,n){H(t)&&(t=xe(t)[0]);var i=Mt(t||{}).get,s=r?jt:Lt;return"native"===r&&(r=""),t?e?s((Tt[e]&&Tt[e].get||i)(t,e,r,n)):function(e,r,n){return s((Tt[e]&&Tt[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=xe(t)).length>1){var n=t.map(function(t){return Wr.quickSetter(t,e,r)}),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=Tt[e],a=Mt(t),o=a.harness&&(a.harness.aliases||{})[e]||e,l=s?function(e){var n=new s;E._pt=0,n.init(t,r?e+r:e,E,0,[t]),n.render(1,n),E._pt&&Or(1,E)}: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=Wr.to(t,Yt(((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 b.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Qe(t.ease,N.ease)),Xt(N,t||{})},config:function(t){return Xt(F,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&&!Tt[t]&&!ct[t]&&pt(e+" effect requires "+t+" plugin.")}),Ot[e]=function(t,e,n){return r(xe(t),Yt(e||{},i),n)},s&&(ir.prototype[e]=function(t,r,n){return this.add(Ot[e](t,$(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Ue[t]=Qe(e)},parseEase:function(t,e){return arguments.length?Qe(t,e):Ue},getById:function(t){return b.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new ir(t);for(i.smoothChildTiming=Z(t.smoothChildTiming),b.remove(i),i._dp=0,i._time=i._tTime=b._time,r=b._first;r;)n=r._next,!e&&!r._dur&&r instanceof gr&&r.vars.onComplete===r._targets[0]||ie(i,r,r._start-r._delay),r=n;return ie(b,i,0),i},context:function(t,e){return t?new Ir(t,e):x},matchMedia:function(t){return new Br(t)},matchMediaRefresh:function(){return Ar.forEach(function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()})||Nr()},addEventListener:function(t,e){var r=Pr[t]||(Pr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=Pr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return tt(e)?Ee(e,t(0,e.length),r):pe(n,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return tt(e)?Ee(e,t(0,e.length-1),r):pe(n,function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)})},distribute:Te,random:ke,snap:Ce,normalize:function(t,e,r){return Me(t,e,0,1,r)},getUnit:me,clamp:function(t,e,r){return pe(r,function(r){return ge(t,e,r)})},splitColor:Be,toArray:xe,selector:be,mapRange:Me,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||me(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,h=H(e),f={};if(!0===n&&(i=1)&&(n=null),h)e={p:e},r={p:r};else if(tt(e)&&!tt(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=Wt(tt(e)?[]:{},e));if(!l){for(a in r)lr.call(f,e,a,"get",r[a]);s=function(t){return Or(t,f)||(h?e.p:e)}}}return pe(n,s)},shuffle:we},install:ft,effects:Ot,ticker:qe,updateRoot:ir.updateRoot,plugins:Tt,globalTimeline:b,core:{PropTween:Mr,globals:gt,Tween:gr,Timeline:ir,Animation:nr,getCache:Mt,_removeLinkedListItem:Vt,reverting:function(){return y},context:function(t){return t&&x&&(x.data.push(t),t._ctx=x),x},suppressOverwrites:function(t){return v=t}}};Pt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Lr[t]=gr[t]}),qe.add(ir.updateRoot),E=Lr.to({},{duration:0});var jr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Yr=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(H(r)&&(n={},Pt(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=jr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Wr=Lr.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;)y?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)}},Yr("roundProps",Oe),Yr("modifiers"),Yr("snap",Ce))||Lr;gr.version=ir.version=Wr.version="3.15.0",C=1,Q()&&He(),Ue.Power0,Ue.Power1,Ue.Power2,Ue.Power3,Ue.Power4,Ue.Linear,Ue.Quad,Ue.Cubic,Ue.Quart,Ue.Quint,Ue.Strong,Ue.Elastic,Ue.Back,Ue.SteppedEase,Ue.Bounce,Ue.Sine,Ue.Expo,Ue.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 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;
|
|
18
|
+
var Xr,qr,Hr,Ur,Vr,Gr,$r,Zr,Qr={},Kr=180/Math.PI,Jr=Math.PI/180,tn=Math.atan2,en=/([A-Z])/g,rn=/(left|right|width|margin|padding|x)/i,nn=/[\s,\(]\S/,sn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},an=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},on=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)},ln=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)},un=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)},cn=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},hn=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},fn=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},dn=function(t,e,r){return t.style[e]=r},pn=function(t,e,r){return t.style.setProperty(e,r)},gn=function(t,e,r){return t._gsap[e]=r},mn=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},_n=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},vn=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},yn="transform",xn=yn+"Origin",bn=function t(e,r){var n=this,i=this.target,s=i.style,a=i._gsap;if(e in Qr&&s){if(this.tfm=this.tfm||{},"transform"===e)return sn.transform.split(",").forEach(function(e){return t.call(n,e,r)});if(~(e=sn[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=Ln(i,t)}):this.tfm[e]=a.x?a[e]:Ln(i,e),e===xn&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(yn)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(xn,r,"")),e=yn}(s||r)&&this.props.push(e,r,s[e])},wn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Tn=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(en,"-$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=$r())&&t.isStart||i[yn]||(wn(i),s.zOrigin&&i[xn]&&(i[xn]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},On=function(t,e){var r={target:t,props:[],revert:Tn,save:bn};return t._gsap||Wr.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return r.save(t)}),r},Cn=function(t,e){var r=qr.createElementNS?qr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):qr.createElement(t);return r&&r.style?r:qr.createElement(t)},kn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(en,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,Sn(r)||r,1)||""},En="O,Moz,ms,Ms,Webkit".split(","),Sn=function(t,e,r){var n=(e||Vr).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(En[i]+t in n););return i<0?null:(3===i?"ms":i>=0?En[i]:"")+t},Mn=function(){"undefined"!=typeof window&&window.document&&(Xr=window,qr=Xr.document,Hr=qr.documentElement,Vr=Cn("div")||{style:{}},Cn("div"),yn=Sn(yn),xn=yn+"Origin",Vr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Zr=!!Sn("perspective"),$r=Wr.core.reverting,Ur=1)},An=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),Hr.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),Hr.removeChild(n),e},Pn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Rn=function(t){var e,r;try{e=t.getBBox()}catch(n){e=An(t),r=1}return e&&(e.width||e.height)||r||(e=An(t)),!e||e.width||e.x||e.y?e:{x:+Pn(t,["x","cx","x1"])||0,y:+Pn(t,["y","cy","y1"])||0,width:0,height:0}},Dn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Rn(t))},zn=function(t,e){if(e){var r,n=t.style;e in Qr&&e!==xn&&(e=yn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(en,"-$1").toLowerCase())):n.removeAttribute(e)}},Fn=function(t,e,r,n,i,s){var a=new Mr(t._pt,e,r,0,1,s?fn:hn);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},Nn={deg:1,rad:1,turn:1},In={grid:1,flex:1},Bn=function t(e,r,n,i){var s,a,o,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",h=Vr.style,f=rn.test(r),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),g=100,m="px"===i,_="%"===i;if(i===c||!u||Nn[i]||Nn[c])return u;if("px"!==c&&!m&&(u=t(e,r,n,"px")),l=e.getCTM&&Dn(e),(_||"%"===c)&&(Qr[r]||~r.indexOf("adius")))return s=l?e.getBBox()[f?"width":"height"]:e[p],Rt(_?u/s*g:u/100*s);if(h[f?"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!==qr&&a.appendChild||(a=qr.body),(o=a._gsap)&&_&&o.width&&f&&o.time===qe.time&&!o.uncache)return Rt(u/o.width*g);if(!_||"height"!==r&&"width"!==r)(_||"%"===c)&&!In[kn(a,"display")]&&(h.position=kn(e,"position")),a===e&&(h.position="static"),a.appendChild(Vr),s=Vr[p],a.removeChild(Vr),h.position="absolute";else{var v=e.style[r];e.style[r]=g+i,s=e[p],v?e.style[r]=v:zn(e,r)}return f&&_&&((o=Mt(a)).time=qe.time,o.width=a[p]),Rt(m?s*u/g:s&&u?g/s*u:0)},Ln=function(t,e,r,n){var i;return Ur||Mn(),e in sn&&"transform"!==e&&~(e=sn[e]).indexOf(",")&&(e=e.split(",")[0]),Qr[e]&&"transform"!==e?(i=Qn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Kn(kn(t,xn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=qn[e]&&qn[e](t,e,r)||kn(t,e)||At(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?Bn(t,e,i,r)+r:i},jn=function(t,e,r,n){if(!r||"none"===r){var i=Sn(e,t,1),s=i&&kn(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=kn(t,"borderTopColor"))}var a,o,l,u,c,h,f,d,p,g,m,_=new Mr(this._pt,t.style,e,0,1,Tr),v=0,y=0;if(_.b=r,_.e=n,r+="","var(--"===(n+="").substring(0,6)&&(n=kn(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(h=t.style[e],t.style[e]=n,n=kn(t,e)||n,h?t.style[e]=h:zn(t,e)),Xe(a=[r,n]),n=a[1],l=(r=a[0]).match(st)||[],(n.match(st)||[]).length){for(;o=st.exec(n);)f=o[0],p=n.substring(v,o.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=l[y++]||"")&&(u=parseFloat(h)||0,m=h.substr((u+"").length),"="===f.charAt(1)&&(f=zt(u,f)+m),d=parseFloat(f),g=f.substr((d+"").length),v=st.lastIndex-g.length,g||(g=g||F.units[e]||m,v===n.length&&(n+=g,_.e+=g)),m!==g&&(u=Bn(t,e,h,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?fn:hn;return ot.test(n)&&(_.e=0),this._pt=_,_},Yn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Wn=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]=Yn[r]||r,e[1]=Yn[n]||n,e.join(" ")},Xn=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],Qr[r]&&(n=1,r="transformOrigin"===r?xn:yn),zn(s,r);n&&(zn(s,yn),l&&(l.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",Qn(s,1),l.uncache=1,wn(a)))}},qn={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new Mr(t._pt,e,r,0,0,Xn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Hn=[1,0,0,1,0,0],Un={},Vn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Gn=function(t){var e=kn(t,yn);return Vn(e)?Hn:e.substr(7).match(it).map(Rt)},$n=function(t,e){var r,n,i,s,a=t._gsap||Mt(t),o=t.style,l=Gn(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(",")?Hn:l:(l!==Hn||t.offsetParent||t===Hr||a.svg||(i=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,Hr.appendChild(t)),l=Gn(t),i?o.display=i:zn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):Hr.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Zn=function(t,e,r,n,i,s){var a,o,l,u=t._gsap,c=i||$n(t,!0),h=u.xOrigin||0,f=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!==Hn&&(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=Rn(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-h,x=T-f,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[xn]="0px 0px",s&&(Fn(s,u,"xOrigin",h,w),Fn(s,u,"yOrigin",f,T),Fn(s,u,"xOffset",d,u.xOffset),Fn(s,u,"yOffset",p,u.yOffset)),t.setAttribute("data-svg-origin",w+" "+T)},Qn=function(t,e){var r=t._gsap||new rr(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,a,o,l,u,c,h,f,d,p,g,m,_,v,y,x,b,w,T,O,C,k,E,S,M,A,P,R,D,z,N=t.style,I=r.scaleX<0,B="px",L="deg",j=getComputedStyle(t),Y=kn(t,xn)||"0";return n=i=s=l=u=c=h=f=d=0,a=o=1,r.svg=!(!t.getCTM||!Dn(t)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||(N[yn]=("none"!==j.translate?"translate3d("+(j.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==j.rotate?"rotate("+j.rotate+") ":"")+("none"!==j.scale?"scale("+j.scale.split(" ").join(",")+") ":"")+("none"!==j[yn]?j[yn]:"")),N.scale=N.rotate=N.translate="none"),m=$n(t,r.svg),r.svg&&(r.uncache?(E=t.getBBox(),Y=r.xOrigin-E.x+"px "+(r.yOrigin-E.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),Zn(t,k||Y,!!k||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,g=r.yOrigin||0,m!==Hn&&(x=m[0],b=m[1],w=m[2],T=m[3],n=O=m[4],i=C=m[5],6===m.length?(a=Math.sqrt(x*x+b*b),o=Math.sqrt(T*T+w*w),l=x||b?tn(b,x)*Kr:0,(h=w||T?tn(w,T)*Kr+l:0)&&(o*=Math.abs(Math.cos(h*Jr))),r.svg&&(n-=p-(p*x+g*w),i-=g-(p*b+g*T))):(z=m[6],R=m[7],M=m[8],A=m[9],P=m[10],D=m[11],n=m[12],i=m[13],s=m[14],u=(_=tn(z,P))*Kr,_&&(k=O*(v=Math.cos(-_))+M*(y=Math.sin(-_)),E=C*v+A*y,S=z*v+P*y,M=O*-y+M*v,A=C*-y+A*v,P=z*-y+P*v,D=R*-y+D*v,O=k,C=E,z=S),c=(_=tn(-w,P))*Kr,_&&(v=Math.cos(-_),D=T*(y=Math.sin(-_))+D*v,x=k=x*v-M*y,b=E=b*v-A*y,w=S=w*v-P*y),l=(_=tn(b,x))*Kr,_&&(k=x*(v=Math.cos(_))+b*(y=Math.sin(_)),E=O*v+C*y,b=b*v-x*y,C=C*v-O*y,x=k,O=E),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),a=Rt(Math.sqrt(x*x+b*b+w*w)),o=Rt(Math.sqrt(C*C+z*z)),_=tn(O,C),h=Math.abs(_)>2e-4?_*Kr:0,d=D?1/(D<0?-D:D):0),r.svg&&(k=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Vn(kn(t,yn)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&Math.abs(h)<270&&(I?(a*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,h+=h<=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=Rt(a),r.scaleY=Rt(o),r.rotation=Rt(l)+L,r.rotationX=Rt(u)+L,r.rotationY=Rt(c)+L,r.skewX=h+L,r.skewY=f+L,r.transformPerspective=d+B,(r.zOrigin=parseFloat(Y.split(" ")[2])||!e&&r.zOrigin||0)&&(N[xn]=Kn(Y)),r.xOffset=r.yOffset=0,r.force3D=F.force3D,r.renderTransform=r.svg?si:Zr?ii:ti,r.uncache=0,r},Kn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Jn=function(t,e,r){var n=me(e);return Rt(parseFloat(e)+parseFloat(Bn(t,"x",r+"px",n)))+n},ti=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ii(t,e)},ei="0deg",ri="0px",ni=") ",ii=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,h=r.skewX,f=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!==ei||u!==ei)){var b,w=parseFloat(u)*Jr,T=Math.sin(w),O=Math.cos(w);w=parseFloat(c)*Jr,b=Math.cos(w),s=Jn(_,s,T*b*-v),a=Jn(_,a,-Math.sin(w)*-v),o=Jn(_,o,O*b*-v+v)}g!==ri&&(y+="perspective("+g+ni),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(x||s!==ri||a!==ri||o!==ri)&&(y+=o!==ri||x?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+ni),l!==ei&&(y+="rotate("+l+ni),u!==ei&&(y+="rotateY("+u+ni),c!==ei&&(y+="rotateX("+c+ni),h===ei&&f===ei||(y+="skew("+h+", "+f+ni),1===d&&1===p||(y+="scale("+d+", "+p+ni),_.style[yn]=y||"translate(0, 0)"},si=function(t,e){var r,n,i,s,a,o=e||this,l=o.xPercent,u=o.yPercent,c=o.x,h=o.y,f=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(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=Jr,d*=Jr,r=Math.cos(f)*g,n=Math.sin(f)*g,i=Math.sin(f-d)*-m,s=Math.cos(f-d)*m,d&&(p*=Jr,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=Rt(r),n=Rt(n),i=Rt(i),s=Rt(s)):(r=g,s=m,n=i=0),(T&&!~(c+"").indexOf("px")||O&&!~(h+"").indexOf("px"))&&(T=Bn(_,"x",c,"px"),O=Bn(_,"y",h,"px")),(v||y||x||b)&&(T=Rt(T+v-(v*r+y*i)+x),O=Rt(O+y-(v*n+y*s)+b)),(l||u)&&(a=_.getBBox(),T=Rt(T+l/100*a.width),O=Rt(O+u/100*a.height)),a="matrix("+r+","+n+","+i+","+s+","+T+","+O+")",_.setAttribute("transform",a),w&&(_.style[yn]=a)},ai=function(t,e,r,n,i){var s,a,o=360,l=H(i),u=parseFloat(i)*(l&&~i.indexOf("rad")?Kr: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 Mr(t._pt,e,r,n,u,on),a.e=c,a.u="deg",t._props.push(r),a},oi=function(t,e){for(var r in e)t[r]=e[r];return t},li=function(t,e,r){var n,i,s,a,o,l,u,c=oi({},r._gsap),h=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),h[yn]=e,n=Qn(r,1),zn(r,yn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[yn],h[yn]=e,n=Qn(r,1),h[yn]=s),Qr)(s=c[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=me(s)!==(u=me(a))?Bn(r,i,s,u):parseFloat(s),l=parseFloat(a),t._pt=new Mr(t._pt,n,i,o,l-o,an),t._pt.u=u||0,t._props.push(i));oi(n,c)};Pt("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});qn[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 Ln(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 ui,ci,hi,fi={name:"css",register:Mn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,a,o,l,u,c,h,f,d,p,g,m,_,v,y,x,b,w=this._props,T=t.style,O=r.vars.startAt;for(h in Ur||Mn(),this.styles=this.styles||On(t),x=this.styles.props,this.tween=r,e)if("autoRound"!==h&&(a=e[h],!Tt[h]||!ur(h,e,r,n,t,i)))if(u=typeof a,c=qn[h],"function"===u&&(u=typeof(a=a.call(r,n,t,i))),"string"===u&&~a.indexOf("random(")&&(a=Se(a)),c)c(this,t,h,a,r)&&(y=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),a+="",Ye.lastIndex=0,Ye.test(s)||(f=me(s),(d=me(a))?f!==d&&(s=Bn(t,h,s,d)+d):f&&(a+=f)),this.add(T,"setProperty",s,a,n,i,0,0,h),w.push(h),x.push(h,0,T[h]);else if("undefined"!==u){if(O&&h in O?(s="function"==typeof O[h]?O[h].call(r,n,t,i):O[h],H(s)&&~s.indexOf("random(")&&(s=Se(s)),me(s+"")||"auto"===s||(s+=F.units[h]||me(Ln(t,h))||""),"="===(s+"").charAt(1)&&(s=Ln(t,h))):s=Ln(t,h),l=parseFloat(s),(p="string"===u&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),h in sn&&("autoAlpha"===h&&(1===l&&"hidden"===Ln(t,"visibility")&&o&&(l=0),x.push("visibility",0,T.visibility),Fn(this,T,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==h&&"transform"!==h&&~(h=sn[h]).indexOf(",")&&(h=h.split(",")[0])),g=h in Qr){if(this.styles.save(h),b=a,"string"===u&&"var(--"===a.substring(0,6)){if("calc("===(a=kn(t,a.substring(4,a.indexOf(")")))).substring(0,5)){var C=t.style.perspective;t.style.perspective=a,a=kn(t,"perspective"),C?t.style.perspective=C:zn(t,"perspective")}o=parseFloat(a)}if(m||((_=t._gsap).renderTransform&&!e.parseTransform||Qn(t,e.parseTransform),v=!1!==e.smoothOrigin&&_.smooth,(m=this._pt=new Mr(this._pt,T,yn,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===h)this._pt=new Mr(this._pt,_,"scaleY",_.scaleY,(p?zt(_.scaleY,p+o):o)-_.scaleY||0,an),this._pt.u=0,w.push("scaleY",h),h+="X";else{if("transformOrigin"===h){x.push(xn,0,T[xn]),a=Wn(a),_.svg?Zn(t,a,0,v,0,this):((d=parseFloat(a.split(" ")[2])||0)!==_.zOrigin&&Fn(this,_,"zOrigin",_.zOrigin,d),Fn(this,T,h,Kn(s),Kn(a)));continue}if("svgOrigin"===h){Zn(t,a,1,v,0,this);continue}if(h in Un){ai(this,_,h,l,p?zt(l,p+a):a);continue}if("smoothOrigin"===h){Fn(this,_,"smooth",_.smooth,a);continue}if("force3D"===h){_[h]=a;continue}if("transform"===h){li(this,a,t);continue}}}else h in T||(h=Sn(h)||h);if(g||(o||0===o)&&(l||0===l)&&!nn.test(a)&&h in T)o||(o=0),(f=(s+"").substr((l+"").length))!==(d=me(a)||(h in F.units?F.units[h]:f))&&(l=Bn(t,h,s,d)),this._pt=new Mr(this._pt,g?_:T,h,l,(p?zt(l,p+o):o)-l,g||"px"!==d&&"zIndex"!==h||!1===e.autoRound?an:cn),this._pt.u=d||0,g&&b!==a?(this._pt.b=s,this._pt.e=b,this._pt.r=un):f!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=ln);else if(h in T)jn.call(this,t,h,s,p?p+a:a);else if(h in t)this.add(t,h,s||t[h],p?p+a:a,n,i);else if("parseTransform"!==h){dt(h,a);continue}g||(h in T?x.push(h,0,T[h]):"function"==typeof t[h]?x.push(h,2,t[h]()):x.push(h,1,s||t[h])),w.push(h)}y&&Sr(this)},render:function(t,e){if(e.tween._time||!$r())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Ln,aliases:sn,getSetter:function(t,e,r){var n=sn[e];return n&&n.indexOf(",")<0&&(e=n),e in Qr&&e!==xn&&(t._gsap.x||Ln(t,"x"))?r&&Gr===r?"scale"===e?mn:gn:(Gr=r||{})&&("scale"===e?_n:vn):t.style&&!G(t.style[e])?dn:~e.indexOf("-")?pn:xr(t,e)},core:{_removeProperty:zn,_getMatrix:$n}};Wr.utils.checkPrefix=Sn,Wr.core.getStyleSaver=On,hi=Pt((ui="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ci="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Qr[t]=1}),Pt(ci,function(t){F.units[t]="deg",Un[t]=1}),sn[hi[13]]=ui+","+ci,Pt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");sn[e[1]]=hi[e[0]]}),Pt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){F.units[t]="px"}),Wr.registerPlugin(fi);var di=Wr.registerPlugin(fi)||Wr;function pi(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)}}di.core.Tween;
|
|
19
19
|
/*!
|
|
20
20
|
* Observer 3.15.0
|
|
21
21
|
* https://gsap.com
|
|
@@ -24,7 +24,7 @@ var Br,Lr,Yr,jr,Xr,qr,Wr,Hr,Ur={},Vr=180/Math.PI,Gr=Math.PI/180,$r=Math.atan2,Zr
|
|
|
24
24
|
* Subject to the terms at https://gsap.com/standard-license
|
|
25
25
|
* @author: Jack Doyle, jack@greensock.com
|
|
26
26
|
*/
|
|
27
|
-
var
|
|
27
|
+
var gi,mi,_i,vi,yi,xi,bi,wi,Ti,Oi,Ci,ki,Ei,Si=function(){return gi||"undefined"!=typeof window&&(gi=window.gsap)&&gi.registerPlugin&&gi},Mi=1,Ai=[],Pi=[],Ri=[],Di=Date.now,zi=function(t,e){return e},Fi=function(t,e){return~Ri.indexOf(t)&&Ri[Ri.indexOf(t)+1][e]},Ni=function(t){return!!~Oi.indexOf(t)},Ii=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},Bi=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},Li="scrollLeft",ji="scrollTop",Yi=function(){return Ci&&Ci.isPressed||Pi.cache++},Wi=function(t,e){var r=function r(n){if(n||0===n){Mi&&(_i.history.scrollRestoration="manual");var i=Ci&&Ci.isPressed;n=r.v=Math.round(n)||(Ci&&Ci.iOS?1:0),t(n),r.cacheID=Pi.cache,i&&zi("ss",n)}else(e||Pi.cache!==r.cacheID||zi("ref"))&&(r.cacheID=Pi.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},Xi={s:Li,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Wi(function(t){return arguments.length?_i.scrollTo(t,qi.sc()):_i.pageXOffset||vi[Li]||yi[Li]||xi[Li]||0})},qi={s:ji,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Xi,sc:Wi(function(t){return arguments.length?_i.scrollTo(Xi.sc(),t):_i.pageYOffset||vi[ji]||yi[ji]||xi[ji]||0})},Hi=function(t,e){return(e&&e._ctx&&e._ctx.selector||gi.utils.toArray)(t)[0]||("string"==typeof t&&!1!==gi.config().nullTargetWarn?console.warn("Element not found:",t):null)},Ui=function(t,e){var r=e.s,n=e.sc;Ni(t)&&(t=vi.scrollingElement||yi);var i=Pi.indexOf(t),s=n===qi.sc?1:2;!~i&&(i=Pi.push(t)-1),Pi[i+s]||Ii(t,"scroll",Yi);var a=Pi[i+s],o=a||(Pi[i+s]=Wi(Fi(t,r),!0)||(Ni(t)?n:Wi(function(e){return arguments.length?t[r]=e:t[r]})));return o.target=t,a||(o.smooth="smooth"===gi.getProperty(t,"scrollBehavior")),o},Vi=function(t,e,r){var n=t,i=t,s=Di(),a=s,o=e||50,l=Math.max(500,3*o),u=function(t,e){var l=Di();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=Di();return(t||0===t)&&t!==n&&u(t),s===a||c-a>l?0:(n+(r?o:-o))/((r?c:s)-e)*1e3}}},Gi=function(t,e){return e&&!t._gsapAllow&&!1!==t.cancelable&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},$i=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},Zi=function(){var t,e,r,n;(Ti=gi.core.globals().ScrollTrigger)&&Ti.core&&(t=Ti.core,e=t.bridge||{},r=t._scrollers,n=t._proxies,r.push.apply(r,Pi),n.push.apply(n,Ri),Pi=r,Ri=n,zi=function(t,r){return e[t](r)})},Qi=function(t){return gi=t||Si(),!mi&&gi&&"undefined"!=typeof document&&document.body&&(_i=window,vi=document,yi=vi.documentElement,xi=vi.body,Oi=[_i,vi,yi,xi],gi.utils.clamp,Ei=gi.core.context||function(){},wi="onpointerenter"in xi?"pointer":"mouse",bi=Ki.isTouch=_i.matchMedia&&_i.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in _i||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ki=Ki.eventTypes=("ontouchstart"in yi?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in yi?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Mi=0},500),mi=1),Ti||Zi(),mi};Xi.op=qi,Pi.cache=0;var Ki=function(){function t(t){this.init(t)}var e,r,n;return t.prototype.init=function(t){mi||Qi(gi)||console.warn("Please gsap.registerPlugin(Observer)"),Ti||Zi();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,h=t.wheelSpeed,f=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,C=t.onToggleX,k=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,N=t.onDisable,I=t.onClick,B=t.scrollSpeed,L=t.capture,j=t.allowClicks,Y=t.lockAxis,W=t.onLockAxis;this.target=i=Hi(i)||yi,this.vars=t,c&&(c=gi.utils.toArray(c)),e=e||1e-9,r=r||0,h=h||1,B=B||1,n=n||"wheel,touch,pointer",a=!1!==a,s||(s=parseFloat(_i.getComputedStyle(xi).lineHeight)||22);var X,q,H,U,V,G,$,Z=this,Q=0,K=0,J=t.passive||!o&&!1!==t.passive,tt=Ui(i,Xi),et=Ui(i,qi),rt=tt(),nt=et(),it=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===ki[0],st=Ni(i),at=i.ownerDocument||vi,ot=[0,0,0],lt=[0,0,0],ut=0,ct=function(){return ut=Di()},ht=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)},ft=function(){var t=Z.deltaX=$i(ot),r=Z.deltaY=$i(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),C&&Z.deltaX<0!=Q<0&&C(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),k&&Z.deltaY<0!=K<0&&k(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)&&W&&W(Z),V&&(z(Z),V=!1),X=0},dt=function(t,e,r){ot[r]+=t,lt[r]+=e,Z._vx.update(t),Z._vy.update(e),a?X||(X=requestAnimationFrame(ft)):ft()},pt=function(t,e){Y&&!$&&(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?X||(X=requestAnimationFrame(ft)):ft()},gt=function(t){if(!ht(t,1)){var e=(t=Gi(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){ht(t,1)||t&&t.button||(Z.axis=$=null,q.pause(),Z.isPressed=!0,t=Gi(t),Q=K=0,Z.startX=Z.x=t.clientX,Z.startY=Z.y=t.clientY,Z._vx.reset(),Z._vy.reset(),Ii(P?i:at,ki[1],gt,J,!0),Z.deltaX=Z.deltaY=0,m&&m(Z))},_t=Z.onRelease=function(t){if(!ht(t,1)){Bi(P?i:at,ki[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=Gi(t);!n&&e&&(Z._vx.reset(),Z._vy.reset(),o&&j&&gi.delayedCall(.08,function(){if(Di()-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,_i,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&&q.restart(!0),H&&ft(),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(!ht(t)){var e=tt(),r=et();dt((e-rt)*B,(r-nt)*B,1),rt=e,nt=r,l&&q.restart(!0)}},bt=function(t){if(!ht(t)){t=Gi(t,o),z&&(V=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?_i.innerHeight:1)*h;dt(t.deltaX*e,t.deltaY*e,0),l&&!P&&q.restart(!0)}},wt=function(t){if(!ht(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&&q.restart(!0),(n||i)&&pt(n,i)}},Tt=function(t){Z.event=t,E(Z)},Ot=function(t){Z.event=t,S(Z)},Ct=function(t){return ht(t)||Gi(t,o)&&I(Z)};q=Z._dc=gi.delayedCall(u||.25,function(){Z._vx.reset(),Z._vy.reset(),q.pause(),l&&l(Z)}).pause(),Z.deltaX=Z.deltaY=0,Z._vx=Vi(0,50,!0),Z._vy=Vi(0,50,!0),Z.scrollX=tt,Z.scrollY=et,Z.isDragging=Z.isGesturing=Z.isPressed=!1,Ei(this),Z.enable=function(t){return Z.isEnabled||(Ii(st?at:i,"scroll",Yi),n.indexOf("scroll")>=0&&Ii(st?at:i,"scroll",xt,J,L),n.indexOf("wheel")>=0&&Ii(i,"wheel",bt,J,L),(n.indexOf("touch")>=0&&bi||n.indexOf("pointer")>=0)&&(Ii(i,ki[0],mt,J,L),Ii(at,ki[2],_t),Ii(at,ki[3],_t),j&&Ii(i,"click",ct,!0,!0),I&&Ii(i,"click",Ct),R&&Ii(at,"gesturestart",vt),D&&Ii(at,"gestureend",yt),E&&Ii(i,wi+"enter",Tt),S&&Ii(i,wi+"leave",Ot),M&&Ii(i,wi+"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&&(Ai.filter(function(t){return t!==Z&&Ni(t.target)}).length||Bi(st?at:i,"scroll",Yi),Z.isPressed&&(Z._vx.reset(),Z._vy.reset(),Bi(P?i:at,ki[1],gt,!0)),Bi(st?at:i,"scroll",xt,L),Bi(i,"wheel",bt,L),Bi(i,ki[0],mt,L),Bi(at,ki[2],_t),Bi(at,ki[3],_t),Bi(i,"click",ct,!0),Bi(i,"click",Ct),Bi(at,"gesturestart",vt),Bi(at,"gestureend",yt),Bi(i,wi+"enter",Tt),Bi(i,wi+"leave",Ot),Bi(i,wi+"move",wt),Z.isEnabled=Z.isPressed=Z.isDragging=!1,N&&N(Z))},Z.kill=Z.revert=function(){Z.disable();var t=Ai.indexOf(Z);t>=0&&Ai.splice(t,1),Ci===Z&&(Ci=0)},Ai.push(Z),P&&Ni(i)&&(Ci=Z),Z.enable(f)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&pi(e.prototype,r),n&&pi(e,n),t}();Ki.version="3.15.0",Ki.create=function(t){return new Ki(t)},Ki.register=Qi,Ki.getAll=function(){return Ai.slice()},Ki.getById=function(t){return Ai.filter(function(e){return e.vars.id===t})[0]},Si()&&gi.registerPlugin(Ki);
|
|
28
28
|
/*!
|
|
29
29
|
* ScrollTrigger 3.15.0
|
|
30
30
|
* https://gsap.com
|
|
@@ -33,7 +33,7 @@ var ci,fi,hi,di,pi,gi,mi,_i,vi,yi,xi,bi,wi,Ti=function(){return ci||"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 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;
|
|
36
|
+
var Ji,ts,es,rs,ns,is,ss,as,os,ls,us,cs,hs,fs,ds,ps,gs,ms,_s,vs,ys,xs,bs,ws,Ts,Os,Cs,ks,Es,Ss,Ms,As,Ps,Rs,Ds,zs,Fs,Ns,Is=1,Bs=Date.now,Ls=Bs(),js=0,Ys=0,Ws=function(t,e,r){var n=ra(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Xs=function(t,e){return!e||ra(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},qs=function t(){return Ys&&requestAnimationFrame(t)},Hs=function(){return fs=1},Us=function(){return fs=0},Vs=function(t){return t},Gs=function(t){return Math.round(1e5*t)/1e5||0},$s=function(){return"undefined"!=typeof window},Zs=function(){return Ji||$s()&&(Ji=window.gsap)&&Ji.registerPlugin&&Ji},Qs=function(t){return!!~ss.indexOf(t)},Ks=function(t){return("Height"===t?Ms:es["inner"+t])||ns["client"+t]||is["client"+t]},Js=function(t){return Fi(t,"getBoundingClientRect")||(Qs(t)?function(){return po.width=es.innerWidth,po.height=Ms,po}:function(){return Ca(t)})},ta=function(t,e){var r=e.s,n=e.d2,i=e.d,s=e.a;return Math.max(0,(r="scroll"+n)&&(s=Fi(t,r))?s()-Js(t)()[i]:Qs(t)?(ns[r]||is[r])-Ks(n):t[r]-t["offset"+n])},ea=function(t,e){for(var r=0;r<_s.length;r+=3)(!e||~e.indexOf(_s[r+1]))&&t(_s[r],_s[r+1],_s[r+2])},ra=function(t){return"string"==typeof t},na=function(t){return"function"==typeof t},ia=function(t){return"number"==typeof t},sa=function(t){return"object"==typeof t},aa=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},oa=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)}},la=Math.abs,ua="left",ca="right",ha="bottom",fa="width",da="height",pa="Right",ga="Left",ma="Top",_a="Bottom",va="padding",ya="margin",xa="Width",ba="Height",wa="px",Ta=function(t){return es.getComputedStyle(t.nodeType===Node.DOCUMENT_NODE?t.scrollingElement:t)},Oa=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Ca=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==Ta(t)[ds]&&Ji.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},ka=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},Ea=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},Sa=function(t){var e=Ji.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)}},Ma=function(t,e,r,n){return r.split(",").forEach(function(r){return t(e,r,n)})},Aa=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},Pa=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},Ra=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},Da={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},za={toggleActions:"play",anticipatePin:0},Fa={top:0,left:0,center:.5,bottom:1,right:1},Na=function(t,e){if(ra(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 Fa?Fa[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Ia=function(t,e,r,n,i,s,a,o){var l=i.startColor,u=i.endColor,c=i.fontSize,h=i.indent,f=i.fontWeight,d=rs.createElement("div"),p=Qs(r)||"fixed"===Fi(r,"pinType"),g=-1!==t.indexOf("scroller"),m=p?is:"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:"+f+";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===qi?ca:ha)+":"+(s+parseFloat(h))+"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],Ba(d,0,n,_),d},Ba=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+xa]=1,i["border"+a+xa]=0,i[r.p]=e+"px",Ji.set(t,i)},La=[],ja={},Ya=function(){return Bs()-js>34&&(Ds||(Ds=requestAnimationFrame(ao)))},Wa=function(){(!bs||!bs.isPressed||bs.startX>is.clientWidth)&&(Pi.cache++,bs?Ds||(Ds=requestAnimationFrame(ao)):ao(),js||Ga("scrollStart"),js=Bs())},Xa=function(){Os=es.innerWidth,Ts=es.innerHeight},qa=function(t){Pi.cache++,(!0===t||!hs&&!xs&&!rs.fullscreenElement&&!rs.webkitFullscreenElement&&(!ws||Os!==es.innerWidth||Math.abs(es.innerHeight-Ts)>.25*es.innerHeight))&&as.restart(!0)},Ha={},Ua=[],Va=function t(){return Pa(bo,"scrollEnd",t)||no(!0)},Ga=function(t){return Ha[t]&&Ha[t].map(function(t){return t()})||Ua},$a=[],Za=function(t){for(var e=0;e<$a.length;e+=5)(!t||$a[e+4]&&$a[e+4].query===t)&&($a[e].style.cssText=$a[e+1],$a[e].getBBox&&$a[e].setAttribute("transform",$a[e+2]||""),$a[e+3].uncache=1)},Qa=function(){return Pi.forEach(function(t){return na(t)&&++t.cacheID&&(t.rec=t())})},Ka=function(t,e){var r;for(ps=0;ps<La.length;ps++)!(r=La[ps])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));As=!0,e&&Za(e),e||Ga("revert")},Ja=function(t,e){Pi.cache++,(e||!zs)&&Pi.forEach(function(t){return na(t)&&t.cacheID++&&(t.rec=0)}),ra(t)&&(es.history.scrollRestoration=Es=t)},to=0,eo=function(){is.appendChild(Ss),Ms=!bs&&Ss.offsetHeight||es.innerHeight,is.removeChild(Ss)},ro=function(t){return os(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(e){return e.style.display=t?"none":"block"})},no=function(t,e){if(ns=rs.documentElement,is=rs.body,ss=[es,rs,ns,is],!js||t||As){eo(),zs=bo.isRefreshing=!0,As||Qa();var r=Ga("refreshInit");vs&&bo.sort(),e||Ka(),Pi.forEach(function(t){na(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))}),La.slice(0).forEach(function(t){return t.refresh()}),As=!1,La.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()}}),Ps=1,ro(!0),La.forEach(function(t){var e=ta(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)}),ro(!1),Ps=0,r.forEach(function(t){return t&&t.render&&t.render(-1)}),Pi.forEach(function(t){na(t)&&(t.smooth&&requestAnimationFrame(function(){return t.target.style.scrollBehavior="smooth"}),t.rec&&t(t.rec))}),Ja(Es,1),as.pause(),to++,zs=2,ao(2),La.forEach(function(t){return na(t.vars.onRefresh)&&t.vars.onRefresh(t)}),zs=bo.isRefreshing=!1,Ga("refresh")}else Aa(bo,"scrollEnd",Va)},io=0,so=1,ao=function(t){if(2===t||!zs&&!As){bo.isUpdating=!0,Ns&&Ns.update(0);var e=La.length,r=Bs(),n=r-Ls>=50,i=e&&La[0].scroll();if(so=io>i?-1:1,zs||(io=i),n&&(js&&!fs&&r-js>200&&(js=0,Ga("scrollEnd")),us=Ls,Ls=r),so<0){for(ps=e;ps-- >0;)La[ps]&&La[ps].update(0,n);so=1}else for(ps=0;ps<e;ps++)La[ps]&&La[ps].update(0,n);bo.isUpdating=!1}Ds=0},oo=[ua,"top",ha,ca,ya+_a,ya+pa,ya+ma,ya+ga,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],lo=oo.concat([fa,da,"boxSizing","max"+xa,"max"+ba,"position",ya,va,va+ma,va+pa,va+_a,va+ga]),uo=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,s=oo.length,a=e.style,o=t.style;s--;)a[i=oo[s]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),o[ha]=o[ca]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[fa]=ka(t,Xi)+wa,a[da]=ka(t,qi)+wa,a[va]=o[ya]=o.top=o[ua]="0",ho(n),o[fa]=o["max"+xa]=r[fa],o[da]=o["max"+ba]=r[da],o[va]=r[va],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},co=/([A-Z])/g,ho=function(t){if(t){var e,r,n=t.t.style,i=t.length,s=0;for((t.t._gsap||Ji.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(co,"-$1").toLowerCase())}},fo=function(t){for(var e=lo.length,r=t.style,n=[],i=0;i<e;i++)n.push(lo[i],r[lo[i]]);return n.t=t,n},po={left:0,top:0},go=function(t,e,r,n,i,s,a,o,l,u,c,h,f,d){na(t)&&(t=t(o)),ra(t)&&"max"===t.substr(0,3)&&(t=h+("="===t.charAt(4)?Na("0"+t.substr(3),r):0));var p,g,m,_=f?f.time():0;if(f&&f.seek(0),isNaN(t)||(t=+t),ia(t))f&&(t=Ji.utils.mapRange(f.scrollTrigger.start,f.scrollTrigger.end,0,h,t)),a&&Ba(a,r,n,!0);else{na(e)&&(e=e(o));var v,y,x,b,w=(t||"0").split(" ");m=Hi(e,o)||is,(v=Ca(m)||{})&&(v.left||v.top)||"none"!==Ta(m).display||(b=m.style.display,m.style.display="block",v=Ca(m),b?m.style.display=b:m.style.removeProperty("display")),y=Na(w[0],v[n.d]),x=Na(w[1]||"0",r),t=v[n.p]-l[n.p]-u+y+i-x,a&&Ba(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,Ba(s,T,n,O&&T>20||!O&&(c?Math.max(is[p],ns[p]):s.parentNode[p])<=T+1),c&&(l=Ca(a),c&&(s.style[n.op.p]=l[n.op.p]-n.op.m-s._offset+wa))}return f&&m&&(p=Ca(m),f.seek(h),g=Ca(m),f._caScrollDist=p[n.p]-g[n.p],t=t/f._caScrollDist*h),f&&f.seek(_),f?t:Math.round(t)},mo=/(webkit|moz|length|cssText|inset)/i,_o=function(t,e,r,n){if(t.parentNode!==e){var i,s,a=t.style;if(e===is){for(i in t._stOrig=a.cssText,s=Ta(t))+i||mo.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;Ji.core.getCache(t).uncache=1,e.appendChild(t)}},vo=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)}},yo=function(t,e,r){var n={};n[e.p]="+="+r,Ji.set(t,n)},xo=function(t,e){var r=Ui(t,e),n="_scroll"+e.p2,i=function e(i,s,a,o,l){var u=e.tween,c=s.onComplete,h={};a=a||r();var f=vo(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=h,h[n]=function(){return f(a+o*u.ratio+l*u.ratio*u.ratio)},s.onUpdate=function(){Pi.cache++,e.tween&&ao()},s.onComplete=function(){e.tween=0,c&&c.call(u)},u=e.tween=Ji.to(t,s)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Aa(t,"wheel",r.wheelHandler),bo.isTouch&&Aa(t,"touchmove",r.wheelHandler),i},bo=function(){function t(e,r){ts||t.register(Ji)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),ks(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Ys){var n,i,s,a,o,l,u,c,h,f,d,p,g,m,_,v,y,x,b,w,T,O,C,k,E,S,M,A,P,R,D,z,F,N,I,B,L,j,Y,W,X,q,H=e=Oa(ra(e)||ia(e)||e.nodeType?{trigger:e}:e,za),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,ht=H.preventOverlaps,ft=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Xi:qi,dt=!Q&&0!==Q,pt=Hi(e.scroller||es),gt=Ji.core.getCache(pt),mt=Qs(pt),_t="fixed"===("pinType"in e?e.pinType:Fi(pt,"pinType")||mt&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=dt&&e.toggleActions.split(" "),xt="markers"in e?e.markers:za.markers,bt=mt?0:parseFloat(Ta(pt)["border"+ft.p2+xa])||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=Fi(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?Ks(i):t["client"+i])||0}}(pt,mt,ft),Ct=function(t,e){return!e||~Ri.indexOf(t)?Js(t):function(){return po}}(pt,mt),kt=0,Et=0,St=0,Mt=Ui(pt,ft);if(wt._startClamp=wt._endClamp=!1,wt._dir=ft,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&&(vs=1,-9999===e.refreshPriority&&(Ns=wt)),gt.tweenScroll=gt.tweenScroll||{top:xo(pt,qi),left:xo(pt,Xi)},wt.tweenTo=n=gt.tweenScroll[ft.p],wt.scrubDuration=function(t){(F=ia(t)&&t)?z?z.duration(t):z=Ji.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&&(sa(at)&&!at.push||(at={snapTo:at}),"scrollBehavior"in is.style&&Ji.set(mt?[is,ns]:pt,{scrollBehavior:"auto"}),Pi.forEach(function(t){return na(t)&&t.target===(mt?rs.scrollingElement||ns:pt)&&(t.smooth=!1)}),s=na(at.snapTo)?at.snapTo:"labels"===at.snapTo?function(t){return function(e){return Ji.utils.snap(Ea(t),e)}}(r):"labelsDirectional"===at.snapTo?(W=r,function(t,e){return Sa(Ea(W))(t,e.direction)}):!1!==at.directional?function(t,e){return Sa(at.snapTo)(t,Bs()-Et<500?0:e.direction)}:Ji.utils.snap(at.snapTo),N=at.duration||{min:.1,max:2},N=sa(N)?ls(N.min,N.max):ls(N,N),I=Ji.delayedCall(at.delay||F/2||.1,function(){var t=Mt(),e=Bs()-Et<500,i=n.tween;if(!(e||Math.abs(wt.getVelocity())<10)||i||fs||kt===t)wt.isActive&&kt!==t&&I.restart(!0);else{var a,o,c=(t-l)/m,h=r&&!dt?r.totalProgress():c,f=e?0:(h-D)/(Bs()-us)*1e3||0,d=Ji.utils.clamp(-c,1-c,la(f/2)*f/.185),p=c+(!1===at.inertia?0:d),g=at,_=g.onStart,v=g.onInterrupt,y=g.onComplete;if(a=s(p,wt),ia(a)||(a=p),o=Math.max(0,Math.round(l+a*m)),t<=u&&t>=l&&o!==t){if(i&&!i._initted&&i.data<=la(o-t))return;!1===at.inertia&&(d=a-c),n(o,{duration:N(la(.185*Math.max(la(p-h),la(a-h))/f/.05||0)),ease:at.ease||"power3",data:la(o-t),onInterrupt:function(){return I.restart(!0)&&v&&oa(wt,v)},onComplete:function(){wt.update(),kt=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&&oa(wt,y)}},t,d*m,o-t-d*m),_&&oa(wt,_,n.tween)}}}).pause()),G&&(ja[G]=wt),(Y=(K=wt.trigger=Hi(K||!0!==J&&J))&&K._gsap&&K._gsap.stRevert)&&(Y=Y(wt)),J=!0===J?K:Hi(J),ra(V)&&(V={targets:K,className:V}),J&&(!1===tt||tt===ya||(tt=!(!tt&&J.parentNode&&J.parentNode.style&&"flex"===Ta(J.parentNode).display)&&va),wt.pin=J,(i=Ji.core.getCache(J)).spacer?_=i.pinState:(lt&&((lt=Hi(lt))&&!lt.nodeType&&(lt=lt.current||lt.nativeElement),i.spacerIsNative=!!lt,lt&&(i.spacerState=fo(lt))),i.spacer=x=lt||rs.createElement("div"),x.classList.add("pin-spacer"),G&&x.classList.add("pin-spacer-"+G),i.pinState=_=fo(J)),!1!==e.force3D&&Ji.set(J,{force3D:!0}),wt.spacer=x=i.spacer,P=Ta(J),k=P[tt+ft.os2],w=Ji.getProperty(J),T=Ji.quickSetter(J,ft.a,wa),uo(J,x,P),y=fo(J)),xt){p=sa(xt)?Oa(xt,Da):Da,f=Ia("scroller-start",G,pt,ft,p,0),d=Ia("scroller-end",G,pt,ft,p,0,f),b=f["offset"+ft.op.d2];var At=Hi(Fi(pt,"content")||pt);c=this.markerStart=Ia("start",G,At,ft,p,b,0,ut),h=this.markerEnd=Ia("end",G,At,ft,p,b,0,ut),ut&&(j=Ji.quickSetter([c,h],ft.a,wa)),_t||Ri.length&&!0===Fi(pt,"fixedMarkers")||(q=Ta(X=mt?is:pt).position,X.style.position="absolute"===q||"fixed"===q?q:"relative",Ji.set([f,d],{force3D:!0}),S=Ji.quickSetter(f,ft.a,wa),A=Ji.quickSetter(d,ft.a,wa))}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 La[La.indexOf(wt)-1]},wt.next=function(){return La[La.indexOf(wt)+1]},wt.revert=function(t,e){if(!e)return wt.kill(!0);var n=!1!==t||!wt.enabled,i=hs;n!==wt.isReverted&&(n&&(B=Math.max(Mt(),wt.scroll.rec||0),St=wt.progress,L=r&&r.progress()),c&&[c,h,f,d].forEach(function(t){return t.style.display=n?"none":"block"}),n&&(hs=wt,wt.update(n)),!J||ot&&wt.isActive||(n?function(t,e,r){ho(r);var n=t._gsap;if(n.spacerIsNative)ho(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,_):uo(J,x,Ta(J),E)),n||wt.update(n),hs=i,wt.isReverted=n)},wt.refresh=function(i,s,p,b){if(!hs&&wt.enabled||s)if(J&&i&&js)Aa(t,"scrollEnd",Va);else{!zs&&Tt&&Tt(wt),hs=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,k,S,A,P,R,D,F,N,j,Y,W,X,q=Ot(),H=Ct(),U=ut?ut.duration():ta(pt,ft),V=m<=.01||!m,G=0,$=b||0,Q=sa(p)?p.end:e.end,rt=e.endTrigger||K,nt=sa(p)?p.start:e.start||(0!==e.start&&K?J?"0 0":"0 100%":0),it=wt.pinnedContainer=e.pinnedContainer&&Hi(e.pinnedContainer,wt),st=K&&Math.max(0,La.indexOf(wt))||0,at=st;for(xt&&sa(p)&&(W=Ji.getProperty(f,ft.p),X=Ji.getProperty(d,ft.p));at-- >0;)(R=La[at]).end||R.refresh(0,1)||(hs=wt),!(D=R.pin)||D!==K&&D!==J&&D!==it||R.isReverted||(j||(j=[]),j.unshift(R),R.revert(!0,!0)),R!==La[at]&&(st--,at--);for(na(nt)&&(nt=nt(wt)),nt=Ws(nt,"start",wt),l=go(nt,K,q,ft,Mt(),c,f,wt,H,bt,_t,U,ut,wt._startClamp&&"_startClamp")||(J?-.001:0),na(Q)&&(Q=Q(wt)),ra(Q)&&!Q.indexOf("+=")&&(~Q.indexOf(" ")?Q=(ra(nt)?nt.split(" ")[0]:"")+Q:(G=Na(Q.substr(2),q),Q=ra(nt)?nt:(ut?Ji.utils.mapRange(0,ut.duration(),ut.scrollTrigger.start,ut.scrollTrigger.end,l):l)+G,rt=K)),Q=Ws(Q,"end",wt),u=Math.max(l,go(Q||(rt?"100% 0":U),rt,q,ft,Mt()+G,h,d,wt,H,bt,_t,U,ut,wt._endClamp&&"_endClamp"))||-.001,G=0,at=st;at--;)(D=(R=La[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&&!zs&&(wt._endClamp=u||-.001,u=Math.min(u,ta(pt,ft))),m=u-l||(l-=.01)&&.001,V&&(St=Ji.utils.clamp(0,1,Ji.utils.normalize(l,u,B))),wt._pinPush=$,c&&G&&((T={})[ft.a]="+="+G,it&&(T[ft.p]="-="+Mt()),Ji.set([c,h],T)),!J||Ps&&wt.end>=ta(pt,ft)){if(K&&Mt()&&!ut)for(k=K.parentNode;k&&k!==is;)k._pinOffset&&(l-=k._pinOffset,u-=k._pinOffset),k=k.parentNode}else T=Ta(J),A=ft===qi,S=Mt(),O=parseFloat(w(ft.a))+$,!U&&u>1&&(Y={style:Y=(mt?rs.scrollingElement||ns:pt).style,value:Y["overflow"+ft.a.toUpperCase()]},mt&&"scroll"!==Ta(is)["overflow"+ft.a.toUpperCase()]&&(Y.style["overflow"+ft.a.toUpperCase()]="scroll")),uo(J,x,T),y=fo(J),k=Ca(J,!0),F=_t&&Ui(pt,A?Xi:qi)(),tt?((E=[tt+ft.os2,m+$+wa]).t=x,(at=tt===va?ka(J,ft)+m+$:0)&&(E.push(ft.d,at+wa),"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+wa)),ho(E),it&&La.forEach(function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)}),_t&&Mt(B)):(at=ka(J,ft))&&"auto"!==x.style.flexBasis&&(x.style.flexBasis=at+wa),_t&&((P={top:k.top+(A?S-l:F)+wa,left:k.left+(A?F:S-l)+wa,boxSizing:"border-box",position:"fixed"})[fa]=P["max"+xa]=Math.ceil(k.width)+wa,P[da]=P["max"+ba]=Math.ceil(k.height)+wa,P[ya]=P[ya+ma]=P[ya+pa]=P[ya+_a]=P[ya+ga]="0",P[va]=T[va],P[va+ma]=T[va+ma],P[va+pa]=T[va+pa],P[va+_a]=T[va+_a],P[va+ga]=T[va+ga],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),zs&&Mt(0)),r?(N=r._initted,ys(1),r.render(r.duration(),!0,!0),C=w(ft.a)-O+m+$,M=Math.abs(m-C)>1,_t&&M&&v.splice(v.length-2,2),r.render(0,!0,!0),N||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),ys(0)):C=m,Y&&(Y.value?Y.style["overflow"+ft.a.toUpperCase()]=Y.value:Y.style.removeProperty("overflow-"+ft.a));j&&j.forEach(function(t){return t.revert(!1,!0)}),wt.start=l,wt.end=u,a=o=zs?B:Mt(),ut||zs||(a<B&&Mt(B),wt.scroll.rec=0),wt.revert(!1,!0),Et=Bs(),I&&(kt=-1,I.restart(!0)),hs=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?Ji.utils.normalize(l,u,0):St,!0),wt.progress=V||(a-l)/m===St?0:St),J&&tt&&(x._pinOffset=Math.round(wt.progress*C)),z&&z.invalidate(),isNaN(W)||(W-=Ji.getProperty(f,ft.p),X-=Ji.getProperty(d,ft.p),yo(f,ft,W),yo(c,ft,W-(b||0)),yo(d,ft,X),yo(h,ft,X-(b||0))),V&&!zs&&wt.update(),!Z||zs||g||(g=!0,Z(wt),g=!1)}},wt.getVelocity=function(){return(Mt()-o)/(Bs()-us)*1e3||0},wt.endAnimation=function(){aa(wt.callbackAnimation),r&&(z?z.progress(1):r.paused()?dt||aa(r,wt.direction<0,1):aa(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=La.indexOf(wt),r=wt.direction>0?La.slice(0,e).reverse():La.slice(e+1);return(ra(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,h,d,p,g,_,b=!0===zs?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&&!hs&&!Is&&js&&(!E&&l<b+(b-o)/(Bs()-us)*rt?E=1e-4:1===E&&u>b+(b-o)/(Bs()-us)*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&&!hs&&(c=E&&!P?0:1===E?1:1===P?2:3,dt&&(h=!p&&"none"!==yt[c+1]&&yt[c+1]||yt[c],_=r&&("complete"===h||"reset"===h||h in r))),ht&&(p||_)&&(_||Q||!r)&&(na(ht)?ht(wt):wt.getTrailing(ht).forEach(function(t){return t.endAnimation()})),dt||(!z||hs||Is?r&&r.totalProgress(E,!(!hs||!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+ft.os2]=k),_t){if(d){if(g=!t&&E>P&&u+1>b&&b+1>=ta(pt,ft),ot)if(t||!s&&!g)_o(J,x);else{var F=Ca(J,!0),N=b-l;_o(J,is,F.top+(ft===qi?N:0)+wa,F.left+(ft===qi?0:N)+wa)}ho(s||g?v:y),M&&E<1&&s||T(O+(1!==E||g?0:C))}}else T(Gs(O+C*E));at&&!n.tween&&!hs&&!Is&&I.restart(!0),V&&(p||st&&E&&(E<1||!Rs))&&os(V.targets).forEach(function(t){return t.classList[s||st?"add":"remove"](V.className)}),U&&!dt&&!t&&U(wt),d&&!hs?(dt&&(_&&("complete"===h?r.pause().totalProgress(1):"reset"===h?r.restart(!0).pause():"restart"===h?r.restart(!0):r[h]()),U&&U(wt)),!p&&Rs||($&&p&&oa(wt,$),vt[c]&&oa(wt,vt[c]),st&&(1===E?wt.kill(!1,1):vt[c]=0),p||vt[c=1===E?1:3]&&oa(wt,vt[c])),ct&&!s&&Math.abs(wt.getVelocity())>(ia(ct)?ct:2500)&&(aa(wt.callbackAnimation),z?z.progress(1):aa(r,"reverse"===h?1:!E,1))):dt&&U&&!hs&&U(wt)}if(A){var L=ut?b/ut.duration()*(ut._caScrollDist||0):b;S(L+(f._isFlipped?1:0)),A(L)}j&&j(-b/ut.duration()*(ut._caScrollDist||0))}},wt.enable=function(e,r){wt.enabled||(wt.enabled=!0,Aa(pt,"resize",qa),mt||Aa(pt,"scroll",Wa),Tt&&Aa(t,"refreshInit",Tt),!1!==e&&(wt.progress=St=0,a=o=kt=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:Xs(t,r&&!!wt._startClamp),end:Xs(e,r&&!!wt._endClamp)},n),wt.update()},wt.adjustPinSpacing=function(t){if(E&&t){var e=E.indexOf(ft.d)+1;E[e]=parseFloat(E[e])+t+wa,E[1]=parseFloat(E[1])+t+wa,ho(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&&Pa(t,"refreshInit",Tt),I&&(I.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!mt)){for(var s=La.length;s--;)if(La[s].scroller===pt&&La[s]!==wt)return;Pa(pt,"resize",qa),mt||Pa(pt,"scroll",Wa)}},wt.kill=function(t,n){wt.disable(t,n),z&&!n&&z.kill(),G&&delete ja[G];var s=La.indexOf(wt);s>=0&&La.splice(s,1),s===ps&&so>0&&ps--,s=0,La.forEach(function(t){return t.scroller===wt.scroller&&(s=1)}),s||zs||(wt.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),c&&[c,h,f,d].forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)}),Ns===wt&&(Ns=0),J&&(i&&(i.uncache=1),s=0,La.forEach(function(t){return t.pin===J&&s++}),s||(i.spacer=0)),e.onKill&&e.onKill(wt)},La.push(wt),wt.enable(!1,!1),Y&&Y(wt),r&&r.add&&!m){var Dt=wt.update;wt.update=function(){wt.update=Dt,Pi.cache++,l||u||wt.refresh()},Ji.delayedCall(.01,wt.update),m=.01,l=u=0}else wt.refresh();J&&function(){if(Fs!==to){var t=Fs=to;requestAnimationFrame(function(){return t===to&&no(!0)})}}()}else this.update=this.refresh=this.kill=Vs},t.register=function(e){return ts||(Ji=e||Zs(),$s()&&window.document&&t.enable(),ts=Ys),ts},t.defaults=function(t){if(t)for(var e in t)za[e]=t[e];return za},t.disable=function(t,e){Ys=0,La.forEach(function(r){return r[e?"kill":"disable"](t)}),Pa(es,"wheel",Wa),Pa(rs,"scroll",Wa),clearInterval(cs),Pa(rs,"touchcancel",Vs),Pa(is,"touchstart",Vs),Ma(Pa,rs,"pointerdown,touchstart,mousedown",Hs),Ma(Pa,rs,"pointerup,touchend,mouseup",Us),as.kill(),ea(Pa);for(var r=0;r<Pi.length;r+=3)Ra(Pa,Pi[r],Pi[r+1]),Ra(Pa,Pi[r],Pi[r+2])},t.enable=function(){if(es=window,rs=document,ns=rs.documentElement,is=rs.body,Ji)if(os=Ji.utils.toArray,ls=Ji.utils.clamp,ks=Ji.core.context||Vs,ys=Ji.core.suppressOverwrites||Vs,Es=es.history.scrollRestoration||"auto",io=es.pageYOffset||0,Ji.core.globals("ScrollTrigger",t),is){Ys=1,(Ss=document.createElement("div")).style.height="100vh",Ss.style.position="absolute",eo(),qs(),Ki.register(Ji),t.isTouch=Ki.isTouch,Cs=Ki.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),ws=1===Ki.isTouch,Aa(es,"wheel",Wa),ss=[es,rs,ns,is],Ji.matchMedia?(t.matchMedia=function(t){var e,r=Ji.matchMedia();for(e in t)r.add(e,t[e]);return r},Ji.addEventListener("matchMediaInit",function(){Qa(),Ka()}),Ji.addEventListener("matchMediaRevert",function(){return Za()}),Ji.addEventListener("matchMedia",function(){no(0,1),Ga("matchMedia")}),Ji.matchMedia().add("(orientation: portrait)",function(){return Xa(),Xa})):console.warn("Requires GSAP 3.11.0 or later"),Xa(),Aa(rs,"scroll",Wa);var e,r,n=is.hasAttribute("style"),i=is.style,s=i.borderTopStyle,a=Ji.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",e=Ca(is),qi.m=Math.round(e.top+qi.sc())||0,Xi.m=Math.round(e.left+Xi.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),n||(is.setAttribute("style",""),is.removeAttribute("style")),cs=setInterval(Ya,250),Ji.delayedCall(.5,function(){return Is=0}),Aa(rs,"touchcancel",Vs),Aa(is,"touchstart",Vs),Ma(Aa,rs,"pointerdown,touchstart,mousedown",Hs),Ma(Aa,rs,"pointerup,touchend,mouseup",Us),ds=Ji.utils.checkPrefix("transform"),lo.push(ds),ts=Bs(),as=Ji.delayedCall(.2,no).pause(),_s=[rs,"visibilitychange",function(){var t=es.innerWidth,e=es.innerHeight;rs.hidden?(gs=t,ms=e):gs===t&&ms===e||qa()},rs,"DOMContentLoaded",no,es,"load",no,es,"resize",qa],ea(Aa),La.forEach(function(t){return t.enable(0,1)}),r=0;r<Pi.length;r+=3)Ra(Pa,Pi[r],Pi[r+1]),Ra(Pa,Pi[r],Pi[r+2])}else if(rs){rs.addEventListener("DOMContentLoaded",function e(){t.enable(),rs.removeEventListener("DOMContentLoaded",e)})}},t.config=function(e){"limitCallbacks"in e&&(Rs=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(cs)||(cs=r)&&setInterval(Ya,r),"ignoreMobileResize"in e&&(ws=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(ea(Pa)||ea(Aa,e.autoRefreshEvents||"none"),xs=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=Hi(t),n=Pi.indexOf(r),i=Qs(r);~n&&Pi.splice(n,i?6:2),e&&(i?Ri.unshift(es,e,is,e,ns,e):Ri.unshift(r,e))},t.clearMatchMedia=function(t){La.forEach(function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)})},t.isInViewport=function(t,e,r){var n=(ra(t)?Hi(t):t).getBoundingClientRect(),i=n[r?fa:da]*e||0;return r?n.right-i>0&&n.left+i<es.innerWidth:n.bottom-i>0&&n.top+i<es.innerHeight},t.positionInViewport=function(t,e,r){ra(t)&&(t=Hi(t));var n=t.getBoundingClientRect(),i=n[r?fa:da],s=null==e?i/2:e in Fa?Fa[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+s)/es.innerWidth:(n.top+s)/es.innerHeight},t.killAll=function(t){if(La.slice(0).forEach(function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()}),!0!==t){var e=Ha.killAll||[];Ha={},e.forEach(function(t){return t()})}},t}();bo.version="3.15.0",bo.saveStyles=function(t){return t?os(t).forEach(function(t){if(t&&t.style){var e=$a.indexOf(t);e>=0&&$a.splice(e,5),$a.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Ji.core.getCache(t),ks())}}):$a},bo.revert=function(t,e){return Ka(!t,e)},bo.create=function(t,e){return new bo(t,e)},bo.refresh=function(t){return t?qa(!0):(ts||bo.register())&&no(!0)},bo.update=function(t){return++Pi.cache&&ao(!0===t?2:0)},bo.clearScrollMemory=Ja,bo.maxScroll=function(t,e){return ta(t,e?Xi:qi)},bo.getScrollFunc=function(t,e){return Ui(Hi(t),e?Xi:qi)},bo.getById=function(t){return ja[t]},bo.getAll=function(){return La.filter(function(t){return"ScrollSmoother"!==t.vars.id})},bo.isScrolling=function(){return!!js},bo.snapDirectional=Sa,bo.addEventListener=function(t,e){var r=Ha[t]||(Ha[t]=[]);~r.indexOf(e)||r.push(e)},bo.removeEventListener=function(t,e){var r=Ha[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},bo.batch=function(t,e){var r,n=[],i={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var r=[],n=[],i=Ji.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)&&na(e[r])&&"onRefreshInit"!==r?o(0,e[r]):e[r];return na(a)&&(a=a(),Aa(bo,"refresh",function(){return a=e.batchMax()})),os(t).forEach(function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(bo.create(e))}),n};var wo,To=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},Oo=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(Ki.isTouch?" pinch-zoom":""):"none",e===ns&&t(is,r)},Co={auto:1,scroll:1},ko=function(t){var e,r=t.event,n=t.target,i=t.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,a=s._gsap||Ji.core.getCache(s),o=Bs();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==is&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!Co[(e=Ta(s)).overflowY]&&!Co[e.overflowX]);)s=s.parentNode;a._isScroll=s&&s!==n&&!Qs(s)&&(Co[(e=Ta(s)).overflowY]||Co[e.overflowX]),a._isScrollT=o}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},Eo=function(t,e,r,n){return Ki.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&ko,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&Aa(rs,Ki.eventTypes[0],Mo,!1,!0)},onDisable:function(){return Pa(rs,Ki.eventTypes[0],Mo,!0)}})},So=/(input|label|select|textarea)/i,Mo=function(t){var e=So.test(t.target.tagName);(e||wo)&&(t._gsapAllow=!0,wo=e)},Ao=function(t){sa(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,h=u.momentum,f=u.allowNestedScroll,d=u.onRelease,p=Hi(t.target)||ns,g=Ji.core.globals().ScrollSmoother,m=g&&g.get(),_=Cs&&(t.content&&Hi(t.content)||m&&!1!==t.content&&!m.smooth()&&m.content()),v=Ui(p,qi),y=Ui(p,Xi),x=1,b=(Ki.isTouch&&es.visualViewport?es.visualViewport.scale*es.visualViewport.width:es.outerWidth)/es.innerWidth,w=0,T=na(h)?function(){return h(e)}:function(){return h||2.8},O=Eo(p,t.type,!0,f),C=function(){return i=!1},k=Vs,E=Vs,S=function(){r=ta(p,qi),E=ls(Cs?1:0,r),c&&(k=ls(0,ta(p,Xi))),n=to},M=function(){_._gsap.y=Gs(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 _&&Ji.set(_,{y:"+=0"}),t.ignoreCheck=function(t){return Cs&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(C);var t=Gs(e.deltaY/2),r=E(v.v-t);if(_&&r!==v.v+v.offset){v.offset=r-v.v;var n=Gs((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=Pi.cache,ao()}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=Gs((es.visualViewport&&es.visualViewport.scale||1)/b),s.pause(),t!==x&&Oo(p,x>1.01||!c&&"x"),a=y(),o=v(),S(),n=to},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&M(),e){Pi.cache++;var n,i,a=T();c&&(i=(n=y())+.05*a*-t.velocityX/.227,a*=To(y,n,i,ta(p,Xi)),s.vars.scrollX=k(i)),i=(n=v())+.05*a*-t.velocityY/.227,a*=To(v,n,i,ta(p,qi)),s.vars.scrollY=E(i),s.invalidate().duration(a).play(.01),(Cs&&s.vars.scrollY>=r||n>=r-1)&&Ji.to({},{onUpdate:A,duration:a})}else l.restart(!0);d&&d(t)},t.onWheel=function(){s._ts&&s.pause(),Bs()-w>1e3&&(n=0,w=Bs())},t.onChange=function(t,e,r,i,s){if(to!==n&&S(),e&&c&&y(k(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],h=E(u);l&&u!==h&&(o+=h-u),v(h)}(r||e)&&ao()},t.onEnable=function(){Oo(p,!c&&"x"),bo.addEventListener("refresh",A),Aa(es,"resize",A),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),O.enable()},t.onDisable=function(){Oo(p,!0),Pa(es,"resize",A),bo.removeEventListener("refresh",A),O.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Ki(t)).iOS=Cs,Cs&&!v()&&v(1),Cs&&Ji.ticker.add(Vs),l=e._dc,s=Ji.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:vo(v,v(),function(){return s.pause()})},onUpdate:ao,onComplete:l.vars.onComplete}),e};function Po({data:t,index:r}){return e("div",{className:""})}function Ro({scrollingElement:t,direction:l="normal",children:u=e("div",{children:"Nothing to Display, Please add some properly styled content"}),style:c,className:h,startAnimation:d="bottom",gsapScrollTrigger:p,scrollSpeed:g=1}){const m=n(),[_,v]=i(!1),[y,x]=i(0);return s(()=>{!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)}()},[]),a(()=>{const e=m.current;if(!e||!y)return;let r=di.context(()=>{var r,n;const i=t?document.querySelector(`${t}`):f(e,!0),s=null!==(r={normal:-y,reverse:y,backward:y}[l])&&void 0!==r?r:-y,a=null!==(n={top:"top top",within:`top ${(window.innerHeight-e.getBoundingClientRect().height)/2}px`,bottom:"bottom bottom"}[d])&&void 0!==n?n:d,o=di.quickTo(e,"x",{ease:"power3.out",duration:.2});bo.create(Object.assign({trigger:e,scroller:i,start:a,end:`+=${y/g}px`,pin:!0,scrub:!0,invalidateOnRefresh:!0,onUpdate:t=>{o(s*t.progress)}},p))},m);return()=>r.revert()},[y,l,d,g,t,p]),e("div",{ref:m,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:`${h} scroll_container`,children:r.Children.map(u,(t,r)=>e(o,{children:t},r))})}function Do(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())})}bo.sort=function(t){if(na(t))return La.sort(t);var e=es.pageYOffset||0;return bo.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+es.innerHeight}),La.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))})},bo.observe=function(t){return new Ki(t)},bo.normalizeScroll=function(t){if(void 0===t)return bs;if(!0===t&&bs)return bs.enable();if(!1===t)return bs&&bs.kill(),void(bs=t);var e=t instanceof Ki?t:Ao(t);return bs&&bs.target===e.target&&bs.kill(),Qs(e.target)&&(bs=e),e},bo.core={_getVelocityProp:Vi,_inputObserver:Eo,_scrollers:Pi,_proxies:Ri,bridge:{ss:function(){js||Ga("scrollStart"),js=Bs()},ref:function(){return hs}}},Zs()&&Ji.registerPlugin(bo),di.registerPlugin(bo),di.registerPlugin(bo),"function"==typeof SuppressedError&&SuppressedError;
|
|
37
37
|
/*!
|
|
38
38
|
* @gsap/react 2.1.2
|
|
39
39
|
* https://gsap.com
|
|
@@ -43,7 +43,7 @@ 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,y
|
|
|
43
43
|
* Club GSAP members, the agreement issued with that membership.
|
|
44
44
|
* @author: Jack Doyle, jack@greensock.com
|
|
45
45
|
*/
|
|
46
|
-
let
|
|
46
|
+
let zo="undefined"!=typeof document?a:s,Fo=t=>t&&!Array.isArray(t)&&"object"==typeof t,No=[],Io={},Bo=di;const Lo=(t,e=No)=>{let r=Io;Fo(t)?(r=t,t=null,e="dependencies"in r?r.dependencies:No):Fo(e)&&(r=e,e="dependencies"in r?r.dependencies:No),t&&"function"!=typeof t&&console.warn("First parameter must be a function or config object");const{scope:i,revertOnUpdate:s}=r,a=n(!1),o=n(Bo.context(()=>{},i)),l=n(t=>o.current.add(null,t)),u=e&&e.length&&!s;return u&&zo(()=>(a.current=!0,()=>o.current.revert()),No),zo(()=>{if(t&&o.current.add(t,i),!u||!a.current)return()=>o.current.revert()},e),{context:o.current,contextSafe:l.current}};Lo.register=t=>{Bo=t},Lo.headless=!0;
|
|
47
47
|
/*!
|
|
48
48
|
* SplitText 3.15.0
|
|
49
49
|
* https://gsap.com
|
|
@@ -51,5 +51,5 @@ let So="undefined"!=typeof document?s:i,Mo=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 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};
|
|
54
|
+
let jo,Yo,Wo,Xo="function"==typeof Symbol?Symbol():"_split",qo="undefined"!=typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter:0,Ho=t=>t?"string"==typeof t?Ho(document.querySelectorAll(t)):"length"in t?Array.from(t).reduce((t,e)=>("string"==typeof e?t.push(...Ho(e)):t.push(e),t),[]):[t]:[],Uo=t=>Ho(t).filter(t=>t&&1===t.nodeType),Vo=[],Go=function(){},$o={add:t=>t()},Zo=/\s+/g,Qo=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"),Ko={left:0,top:0,width:0,height:0},Jo=(t,e)=>{for(;++e<t.length&&t[e]===Ko;);return t[e]||Ko},tl=({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")},el=(t,e)=>{if(e){let r,n,i,s,a=new Set(t.join("").match(e)||Vo),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},rl=t=>"inline"===window.getComputedStyle(t).display&&(t.style.display="inline-block"),nl=(t,e,r)=>e.insertBefore("string"==typeof t?document.createTextNode(t):t,r),il=(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},sl=(t,e,r,n,i,s,a,o,l,u)=>{var c;let h,f,d,p,g,m,_,v,y,x,b,w,T,O,C,k,E,S,M=Array.from(t.childNodes),A=0,{wordDelimiter:P,reduceWhiteSpace:R=!0,prepareText:D}=e,z=t.getBoundingClientRect(),F=z,N=!R&&"pre"===window.getComputedStyle(t).whiteSpace.substring(0,3),I=0,B=r.collection;for("object"==typeof P?(d=P.delimiter||P,f=P.replaceWith||""):f=""===P?"":P||" ",h=" "!==f;A<M.length;A++)if(p=M[A],3===p.nodeType){for(C=p.textContent||"",R?C=C.replace(Zo," "):N&&(C=C.replace(/\n/g,f+"\n")),D&&(C=D(C,t)),p.textContent=C,g=f||d?C.split(d||f):C.match(o)||Vo,E=g[g.length-1],v=h?" "===E.slice(-1):!E,E||g.pop(),F=z,_=h?" "===g[0].charAt(0):!g[0],_&&nl(" ",t,p),g[0]||g.shift(),el(g,l),s&&u||(p.textContent=""),y=1;y<=g.length;y++)if(k=g[y-1],!R&&N&&"\n"===k.charAt(0)&&(null==(c=p.previousSibling)||c.remove(),nl(document.createElement("br"),t,p),k=k.slice(1)),R||""!==k)if(" "===k)t.insertBefore(document.createTextNode(" "),p);else{if(h&&" "===k.charAt(0)&&nl(" ",t,p),I&&1===y&&!_&&B.indexOf(I.parentNode)>-1?(m=B[B.length-1],m.appendChild(document.createTextNode(n?"":k))):(m=r(n?"":k),nl(m,t,p),I&&1===y&&!_&&m.insertBefore(I,m.firstChild)),n)for(b=qo?el([...qo.segment(k)].map(t=>t.segment),l):k.match(o)||Vo,S=0;S<b.length;S++)m.appendChild(" "===b[S]?document.createTextNode(" "):n(b[S]));if(s&&u){if(C=p.textContent=C.substring(k.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;)O=T,T=T.nextSibling,w.appendChild(O);t.parentNode.insertBefore(w,t),i&&rl(w)}F=x}(y<g.length||v)&&nl(y>=g.length?" ":h&&" "===k.slice(-1)?" "+f:f,t,p)}else nl(f,t,p);t.removeChild(p),I=0}else 1===p.nodeType&&(a&&a.indexOf(p)>-1?(B.indexOf(p.previousSibling)>-1&&B[B.length-1].appendChild(p),I=p):(sl(p,e,r,n,i,s,a,o,l,!0),I=0),i&&rl(p))};const al=class t{constructor(t,e){this.isSplit=!1,Wo||ol.register(window.gsap),this.elements=Uo(t),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=e,this.elements.forEach(t=>{var r;!1!==e.overwrite&&(null==(r=t[Xo])||r._data.orig.filter(({element:e})=>e===t).forEach(tl)),t[Xo]=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)})},Go(this),this.split(e)}split(t){return(this._ctx||$o).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,h=r.indexOf("chars")>-1,f=r.indexOf("words")>-1,d=h&&!f&&!c,p=l&&("push"in l?new RegExp("(?:"+l.join("|")+")","gu"):l),g=p?new RegExp(p.source+"|"+Qo.source,"gu"):Qo,m=!!t.ignore&&Uo(t.ignore),{orig:_,animTime:v,obs:y}=this._data;(h||f||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=h?il("char",t,v):null,w=il("word",t,y);if(sl(e,t,w,b,d,i&&(c||d),m,g,p,!1),c){let r,n,i=Ho(e.childNodes),s=((t,e,r,n)=>{let i=il("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():Ko),c=Ko;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=Jo(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(!f){for(a=0;a<y.length;a++)if(o=y[a],h||!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,Yo&&c&&o&&Yo.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==Yo||Yo.removeEventListener("loadingdone",this._split)}revert(){var t,e;if(this.isSplit){let{orig:r,anim:n}=this._data;this.kill(),r.forEach(tl),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){jo=jo||t||window.gsap,jo&&(Ho=jo.utils.toArray,Go=jo.core.context||Go),!Wo&&window.innerWidth>0&&(Yo=document.fonts,Wo=!0)}};al.version="3.15.0";let ol=al;di.registerPlugin(ol,bo);const ll={Z_Text:function(t){const{text:a,scrollingElement:o,progression:l="char",animation:u="Fade",trigger:c,controllerRef:h=null,style:m,className:_,children:v,delay:y=0,timeline:x,speed:b,gsapScrollTrigger:w,extendAnimation:T,watch:O=!1}=t,C=n(null),[k,E]=i(!1),[S,M]=i(0),A="onscroll"===c,P="inview"===c,R=A||P,D=null!=x?x:di.timeline({paused:R,delay:y});return h&&(h.current=D),s(()=>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]),s(()=>{let t=!0;return function(){Do(this,void 0,void 0,function*(){yield document.fonts.ready,t&&E(!0)})}(),()=>t=!1},[]),Lo(function(){if("none"===c)return;const t=C.current;if(!t||!k)return;const e=di.context(()=>{var e;const r=o?document.querySelector(`${o}`):f(t,!0),n=ol.create(t,{type:"lines,words,chars",autoSplit:!0,linesClass:"line",wordsClass:"word",charsClass:"char"}),{chars:i,words:s,lines:a}=n,c=p(l,i,s,a,b,A),h=null!==(e=g[u])&&void 0!==e?e:g.Fade,m=Object.assign(Object.assign({},d(h,"from")),d(T,"from")),_=Object.assign(Object.assign({},d(h,"to")),d(T,"to"));D.set(c.set,m);"char_line"===l||"word_line"===l?c.animate.forEach(t=>{D.to(t.char,_,t.charIndexInLine*c.speed)}):D.to(c.animate,Object.assign(Object.assign({},_),{stagger:c.speed}),0);const v="function"==typeof w?w(D)||{}:w||{};A?bo.create(Object.assign({trigger:t,scroller:r,start:"top 85%",end:"top 35%",scrub:!0,animation:D},v)):P&&bo.create(Object.assign({trigger:t,scroller:r,start:"top bottom",animation:D,onEnter:()=>D.restart(),onLeaveBack:()=>D.pause()},v))},C);return()=>e.revert()},{scope:C,dependencies:[k,S,c]}),r.isValidElement(v)?r.cloneElement(v,{ref:C,style:Object.assign(Object.assign({visibility:k?"visible":"hidden"},m),v.props.style),className:["fade_textation_x",v.props.className,_].filter(Boolean).join(" ")}):e("p",{className:`fade_textation_x ${_}`,style:Object.assign({visibility:k?"visible":"hidden"},m),ref:C,children:a})},VerticalScroll:Ro,Overlay_Text:function(o){const{text:p,children:g,textClass:m,textStyle:_,layerStyle:v,layerClass:y,containerStyle:x,containerClass:b,scrollingElement:w,trigger:T,timeline:O,stagger:C=.2,duration:k=1.5,layers:E=1,layerColor:S="white",RenderLayer:M=Po,animationOrder:A="normal",animation:P="VerticalReveal",animationDimension:R="y",extendAnimation:D,gsapScrollTrigger:z,controllerRef:F=null,useOpacity:N,animationDirection:I=0}=o,B=n(null),L=n(null),j=l(E),[Y,W]=i({eachWidth:"100%",lastWidth:"100%"}),[X,q]=i({eachWidth:"100%",lastWidth:"100%"}),H=O||di.timeline({});F&&(F.current=H);const U=u[P],{defaultGsap:V,animation_origins:G,animationStyles:$}=U;return s(()=>{if("y"==R){const{eachWidth:t,lastWidth:e}=c(L,j.length,"width");W({eachWidth:t,lastWidth:e})}else{const{eachWidth:t,lastWidth:e}=c(L,j.length,"height");q({eachWidth:t,lastWidth:e})}},[]),a(()=>function(){if("none"==T)return;const t=L.current;if(!t)return;const e=[...t.children],r="reverse"===A?[...e].reverse():"random"===A?h(e):e,n=di.context(()=>{const e=w?document.querySelector(`${w}`):f(t,!0);H.set(r,Object.assign(Object.assign({opacity:1},d(V,"from")),d(D,"from"))),H.to(r,Object.assign(Object.assign(Object.assign({opacity:N?0:1,stagger:C},d(V,"to")),{duration:k}),d(D,"to")));const n="function"==typeof z?z(H)||{}:z||{};"onscroll"===T&&bo.create(Object.assign({trigger:r,start:"top 65%",end:"top 30%",animation:H,scrub:!0,scroller:e},n)),"inview"===T&&bo.create(Object.assign({trigger:r,start:"top bottom",onEnter:()=>H.restart(),onLeaveBack:()=>H.pause(),animation:H,scroller:e},n))},e);return()=>{n.revert()}}(),[P,A,w,D,z,C,I,u,H,T]),t("div",{style:Object.assign({width:"auto",height:"auto",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",position:"relative"},x),className:`overlay_text_container ${b}`,children:[p?e("p",{ref:B,className:`text-parentz ${m}`,style:Object.assign({},_),children:p}):r.cloneElement(g,{ref:B,style:Object.assign(Object.assign({},g.props.style),_),className:[g.props.className,"text-parentz",m].filter(Boolean).join(" ")}),e("div",{ref:L,className:"text_overlay_container",style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,display:"flex",flexDirection:"y"==R?"row":"column",justifyContent:"flex-start",alignItems:"flex-start"},children:j.map((t,r)=>{const n=j.length-1===r,{eachWidth:i,lastWidth:s}=Y,a=X.eachWidth,o=X.lastWidth;return e("div",{className:`each-overlay-block ${y}`,style:Object.assign(Object.assign({height:"y"==R?"100%":n?o:a,width:"x"==R?"100%":n?s:i,willChange:"transform",background:S,transformOrigin:"number"==typeof I?G[I]||"center":I,display:"flex",justifyContent:"center",alignItems:"center"},$),v),children:e(M,{data:t,index:r})},r)})})]})}};function ul(t){const{text:a,scrollingElement:o,progression:l="char",style:u,className:c,children:h,playOnScroll:f=!1,playInView:d=!1,delay:p=0,timeline:g,speed:m,gsapScrollTrigger:_,defaultAnimation:v,extendAnimation:y,watch:x=!1}=t,b=n(null),[w,T]=i(0),[O,C]=i(!1);return s(()=>{!function(){if(!x)return;("string"==typeof x?document.querySelector(x):window).addEventListener("resize",()=>{T(t=>t+1)})}()},[]),s(()=>{if("loaded"===document.fonts.status)C(!0);else{function t(){return Do(this,void 0,void 0,function*(){yield document.fonts.ready.then(()=>{C(!0)}).catch(()=>{C(!0)})})}t()}},[]),Lo(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=ol.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?f?.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=!(!f&&!d),h=g||di.timeline({paused:c,delay:p});h.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 _(h)||{};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)})})(h),f?bo.create(Object.assign({trigger:t,scroller:e,start:"top 85%",end:"top 35%",scrub:f,animation:h},x)):d&&bo.create(Object.assign({trigger:t,scroller:e,start:"top bottom",onEnter:()=>h.restart(),onLeaveBack:()=>h.pause()},x)),()=>{r.revert(),h.kill(),bo.getAll().forEach(e=>{e.trigger===t&&e.kill()})}},{dependencies:[O,w],scope:b}),r.isValidElement(h)?r.cloneElement(h,{ref:b,style:Object.assign(Object.assign({visibility:O?"visible":"hidden"},u),h.props.style),className:["fade_textation_x",h.props.className,c].filter(Boolean).join(" ")}):e("p",{className:`fade_textation_x ${c}`,style:Object.assign({visibility:O?"visible":"hidden"},u),ref:b,children:a})}di.registerPlugin(ol,bo);const cl={TextEngine:ul,TextFade:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[0,1]}},t))},TextFadeSkew:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],skewX:[100,0]}},t))},TextFadeSkew_2:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[0,1],x:[100,0],y:[100,0],skewX:[-100,0]}},t))},TextFadeDown:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[0,1],y:["100%","0%"],duration:[null,1],stagger:[null,.1]}},t))},TextFadeOverlay:function(t){return e(ul,Object.assign({defaultAnimation:{opacity:[.2,1]}},t))},VerticalScroll:Ro};function hl({name:t}){console.log("Hey!!! Hello ",t,". Package is updated!!!")}const{TextEngine:fl,TextFade:dl,TextFadeDown:pl,TextFadeSkew:gl,TextFadeSkew_2:ml,TextFadeOverlay:_l}=cl,{Z_Text:vl,VerticalScroll:yl,Overlay_Text:xl}=ll;export{xl as Overlay_Text,fl as TextEngine,dl as TextFade,pl as TextFadeDown,_l as TextFadeOverlay,gl as TextFadeSkew,ml as TextFadeSkew_2,yl as VerticalScroll,vl as Z_Text,hl as justSayHello};
|
|
55
55
|
//# sourceMappingURL=index.mjs.map
|