marquee-content 4.4.0 → 4.5.1-dev.0

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.
@@ -0,0 +1 @@
1
+ (function(Pe,rt){typeof exports=="object"&&typeof module<"u"?module.exports=rt():typeof define=="function"&&define.amd?define(rt):(Pe=typeof globalThis<"u"?globalThis:Pe||self).MarqueeContent=rt()})(this,function(){"use strict";var Al=Object.defineProperty;var Cl=(Pe,rt,an)=>rt in Pe?Al(Pe,rt,{enumerable:!0,configurable:!0,writable:!0,value:an}):Pe[rt]=an;var sn=(Pe,rt,an)=>Cl(Pe,typeof rt!="symbol"?rt+"":rt,an);function Pe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var an,ze,fe,he,zt,Ki,Ji,da,_a,$n,Tr,kr,si,es,ma,ga,va,ht={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Gn={duration:.5,overwrite:!1,delay:0},$t=1e8,Qe=1e-8,ts=2*Math.PI,ku=ts/4,Mu=0,ya=Math.sqrt,Ou=Math.cos,wu=Math.sin,De=function(e){return typeof e=="string"},de=function(e){return typeof e=="function"},Gt=function(e){return typeof e=="number"},ns=function(e){return e===void 0},It=function(e){return typeof e=="object"},it=function(e){return e!==!1},rs=function(){return typeof window<"u"},ai=function(e){return de(e)||De(e)},xa=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Le=Array.isArray,is=/(?:-?\.?\d|\.)+/gi,ba=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Zn=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ss=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Ta=/[+-]=-?[.\d]+/,ka=/[^,'"\[\]\s]+/gi,Eu=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,pt={},oi={},Ma=function(e){return(oi=Jn(e,pt))&&ot},Mr=function(e,t){return!t&&void 0},Oa=function(e,t){return e&&(pt[e]=t)&&oi&&(oi[e]=t)||pt},Or=function(){return 0},Au={suppressEvents:!0,isStart:!0,kill:!1},ui={suppressEvents:!0,kill:!1},Cu={suppressEvents:!0},as={},on=[],os={},dt={},us={},wa=30,li=[],ls="",cs=function(e){var t,n,r=e[0];if(It(r)||de(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(n=li.length;n--&&!li[n].targetTest(r););t=li[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new to(e[n],t)))||e.splice(n,1);return e},On=function(e){return e._gsap||cs(Ot(e))[0]._gsap},Ea=function(e,t,n){return(n=e[t])&&de(n)?e[t]():ns(n)&&e.getAttribute&&e.getAttribute(t)||n},st=function(e,t){return(e=e.split(",")).forEach(t)||e},ge=function(e){return Math.round(1e5*e)/1e5||0},be=function(e){return Math.round(1e7*e)/1e7||0},Kn=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n==="+"?e+r:n==="-"?e-r:n==="*"?e*r:e/r},Su=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},ci=function(){var e,t,n=on.length,r=on.slice(0);for(os={},on.length=0,e=0;e<n;e++)(t=r[e])&&t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0)._lazy=0)},Aa=function(e,t,n,r){on.length&&!ze&&ci(),e.render(t,n,ze&&t<0&&(e._initted||e._startAt)),on.length&&!ze&&ci()},Ca=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(ka).length<2?t:De(e)?e.trim():e},Sa=function(e){return e},_t=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Jn=function(e,t){for(var n in t)e[n]=t[n];return e},Pa=function e(t,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(t[r]=It(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},fi=function(e,t){var n,r={};for(n in e)n in t||(r[n]=e[n]);return r},wr=function(e){var t,n=e.parent||he,r=e.keyframes?(t=Le(e.keyframes),function(i,s){for(var a in s)a in i||a==="duration"&&t||a==="ease"||(i[a]=s[a])}):_t;if(it(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},Da=function(e,t,n,r,i){var s,a=e[r];if(i)for(s=t[i];a&&a[i]>s;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},hi=function(e,t,n,r){n===void 0&&(n="_first"),r===void 0&&(r="_last");var i=t._prev,s=t._next;i?i._next=s:e[n]===t&&(e[n]=s),s?s._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},un=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},wn=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},fs=function(e,t,n,r){return e._startAt&&(ze?e._startAt.revert(ui):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Pu=function e(t){return!t||t._ts&&e(t.parent)},Ra=function(e){return e._repeat?er(e._tTime,e=e.duration()+e._rDelay)*e:0},er=function(e,t){var n=Math.floor(e=be(e/t));return e&&n===e?n-1:n},pi=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},di=function(e){return e._end=be(e._start+(e._tDur/Math.abs(e._ts||e._rts||Qe)||0))},_i=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=be(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),di(e),n._dirty||wn(n,e)),e},Fa=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=pi(e.rawTime(),t),(!t._dur||Ar(0,t.totalDuration(),n)-t._tTime>Qe)&&t.render(n,!0)),wn(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-1e-8}},Bt=function(e,t,n,r){return t.parent&&un(t),t._start=be((Gt(n)?n:n||e!==he?Mt(e,n,t):e._time)+t._delay),t._end=be(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Da(e,t,"_first","_last",e._sort?"_start":0),hs(t)||(e._recent=t),r||Fa(e,t),e._ts<0&&_i(e,e._tTime),e},za=function(e,t){return pt.ScrollTrigger?pt.ScrollTrigger.create(t,e):void 0},Ia=function(e,t,n,r,i){return bs(e,t,i),e._initted?!n&&e._pt&&!ze&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&_a!==gt.frame?(on.push(e),e._lazy=[i,r],1):void 0:1},Du=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},hs=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},tr=function(e,t,n,r){var i=e._repeat,s=be(t)||0,a=e._tTime/e._tDur;return a&&!r&&(e._time*=s/e._dur),e._dur=s,e._tDur=i?i<0?1e10:be(s*(i+1)+e._rDelay*i):s,a>0&&!r&&_i(e,e._tTime=e._tDur*a),e.parent&&di(e),n||wn(e.parent,e),e},Ba=function(e){return e instanceof $e?wn(e):tr(e,e._dur)},Ru={_start:0,endTime:Or,totalDuration:Or},Mt=function e(t,n,r){var i,s,a,o=t.labels,u=t._recent||Ru,l=t.duration()>=$t?u.endTime(!1):t._dur;return De(n)&&(isNaN(n)||n in o)?(s=n.charAt(0),a=n.substr(-1)==="%",i=n.indexOf("="),s==="<"||s===">"?(i>=0&&(n=n.replace(/=/,"")),(s==="<"?u._start:u.endTime(u._repeat>=0))+(parseFloat(n.substr(1))||0)*(a?(i<0?u:r).totalDuration()/100:1)):i<0?(n in o||(o[n]=l),o[n]):(s=parseFloat(n.charAt(i-1)+n.substr(i+1)),a&&r&&(s=s/100*(Le(r)?r[0]:r).totalDuration()),i>1?e(t,n.substr(0,i-1),r)+s:l+s)):n==null?l:+n},Er=function(e,t,n){var r,i,s=Gt(t[1]),a=(s?2:1)+(e<2?0:1),o=t[a];if(s&&(o.duration=t[1]),o.parent=n,e){for(r=o,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=it(i.vars.inherit)&&i.parent;o.immediateRender=it(r.immediateRender),e<2?o.runBackwards=1:o.startAt=t[a-1]}return new Te(t[0],o,t[a+1])},ln=function(e,t){return e||e===0?t(e):t},Ar=function(e,t,n){return n<e?e:n>t?t:n},Xe=function(e,t){return De(e)&&(t=Eu.exec(e))?t[1]:""},ps=[].slice,Ya=function(e,t){return e&&It(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&It(e[0]))&&!e.nodeType&&e!==zt},Fu=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(r){var i;return De(r)&&!t||Ya(r,1)?(i=n).push.apply(i,Ot(r)):n.push(r)})||n},Ot=function(e,t,n){return fe&&!t&&fe.selector?fe.selector(e):!De(e)||n||!Ki&&nr()?Le(e)?Fu(e,n):Ya(e)?ps.call(e,0):e?[e]:[]:ps.call((t||Ji).querySelectorAll(e),0)},ds=function(e){return e=Ot(e)[0]||Mr()||{},function(t){var n=e.current||e.nativeElement||e;return Ot(t,n.querySelectorAll?n:n===e?Mr()||Ji.createElement("div"):e)}},La=function(e){return e.sort(function(){return .5-Math.random()})},Xa=function(e){if(de(e))return e;var t=It(e)?e:{each:e},n=En(t.ease),r=t.from||0,i=parseFloat(t.base)||0,s={},a=r>0&&r<1,o=isNaN(r)||a,u=t.axis,l=r,f=r;return De(r)?l=f={center:.5,edges:.5,end:1}[r]||0:!a&&o&&(l=r[0],f=r[1]),function(c,h,p){var T,x,v,d,m,y,_,k,M,O=(p||t).length,w=s[O];if(!w){if(!(M=t.grid==="auto"?0:(t.grid||[1,$t])[1])){for(_=-1e8;_<(_=p[M++].getBoundingClientRect().left)&&M<O;);M<O&&M--}for(w=s[O]=[],T=o?Math.min(M,O)*l-.5:r%M,x=M===$t?0:o?O*f/M-.5:r/M|0,_=0,k=$t,y=0;y<O;y++)v=y%M-T,d=x-(y/M|0),w[y]=m=u?Math.abs(u==="y"?d:v):ya(v*v+d*d),m>_&&(_=m),m<k&&(k=m);r==="random"&&La(w),w.max=_-k,w.min=k,w.v=O=(parseFloat(t.amount)||parseFloat(t.each)*(M>O?O-1:u?u==="y"?O/M:M:Math.max(M,O/M))||0)*(r==="edges"?-1:1),w.b=O<0?i-O:i,w.u=Xe(t.amount||t.each)||0,n=n&&O<0?Ka(n):n}return O=(w[c]-w.min)/w.max||0,be(w.b+(n?n(O):O)*w.v)+w.u}},_s=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var r=be(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(Gt(n)?0:Xe(n))}},Na=function(e,t){var n,r,i=Le(e);return!i&&It(e)&&(n=i=e.radius||$t,e.values?(e=Ot(e.values),(r=!Gt(e[0]))&&(n*=n)):e=_s(e.increment)),ln(t,i?de(e)?function(s){return r=e(s),Math.abs(r-s)<=n?r:s}:function(s){for(var a,o,u=parseFloat(r?s.x:s),l=parseFloat(r?s.y:0),f=$t,c=0,h=e.length;h--;)(a=r?(a=e[h].x-u)*a+(o=e[h].y-l)*o:Math.abs(e[h]-u))<f&&(f=a,c=h);return c=!n||f<=n?e[c]:s,r||c===s||Gt(s)?c:c+Xe(s)}:_s(e))},qa=function(e,t,n,r){return ln(Le(e)?!t:n===!0?!!(n=0):!r,function(){return Le(e)?e[~~(Math.random()*e.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+.99*n))/n)*n*r)/r})},Ua=function(e,t,n){return ln(n,function(r){return e[~~t(r)]})},Cr=function(e){for(var t,n,r,i,s=0,a="";~(t=e.indexOf("random(",s));)r=e.indexOf(")",t),i=e.charAt(t+7)==="[",n=e.substr(t+7,r-t-7).match(i?ka:is),a+=e.substr(s,t-s)+qa(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),s=r+1;return a+e.substr(s,e.length-s)},Wa=function(e,t,n,r,i){var s=t-e,a=r-n;return ln(i,function(o){return n+((o-e)/s*a||0)})},Va=function(e,t,n){var r,i,s,a=e.labels,o=$t;for(r in a)(i=a[r]-t)<0==!!n&&i&&o>(i=Math.abs(i))&&(s=r,o=i);return s},mt=function(e,t,n){var r,i,s,a=e.vars,o=a[t],u=fe,l=e._ctx;if(o)return r=a[t+"Params"],i=a.callbackScope||e,n&&on.length&&ci(),l&&(fe=l),s=r?o.apply(i,r):o.call(i),fe=u,s},Sr=function(e){return un(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ze),e.progress()<1&&mt(e,"onInterrupt"),e},ja=[],Ha=function(e){if(e)if(e=!e.name&&e.default||e,rs()||e.headless){var t=e.name,n=de(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Or,render:Ms,add:xs,kill:Vu,modifier:Wu,rawVars:0},s={targetTest:0,get:0,getSetter:ks,aliases:{},register:0};if(nr(),e!==r){if(dt[t])return;_t(r,_t(fi(e,i),s)),Jn(r.prototype,Jn(i,fi(e,s))),dt[r.prop=t]=r,e.targetTest&&(li.push(r),as[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Oa(t,r),e.register&&e.register(ot,r,at)}else ja.push(e)},ae=255,Pr={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]},ms=function(e,t,n){return(6*(e+=e<0?1:e>1?-1:0)<1?t+(n-t)*e*6:e<.5?n:3*e<2?t+(n-t)*(2/3-e)*6:t)*ae+.5|0},Qa=function(e,t,n){var r,i,s,a,o,u,l,f,c,h,p=e?Gt(e)?[e>>16,e>>8&ae,e&ae]:0:Pr.black;if(!p){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Pr[e])p=Pr[e];else if(e.charAt(0)==="#"){if(e.length<6&&(r=e.charAt(1),i=e.charAt(2),s=e.charAt(3),e="#"+r+r+i+i+s+s+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&ae,p&ae,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&ae,e&ae]}else if(e.substr(0,3)==="hsl")if(p=h=e.match(is),t){if(~e.indexOf("="))return p=e.match(ba),n&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,o=+p[1]/100,r=2*(u=+p[2]/100)-(i=u<=.5?u*(o+1):u+o-u*o),p.length>3&&(p[3]*=1),p[0]=ms(a+1/3,r,i),p[1]=ms(a,r,i),p[2]=ms(a-1/3,r,i);else p=e.match(is)||Pr.transparent;p=p.map(Number)}return t&&!h&&(r=p[0]/ae,i=p[1]/ae,s=p[2]/ae,u=((l=Math.max(r,i,s))+(f=Math.min(r,i,s)))/2,l===f?a=o=0:(c=l-f,o=u>.5?c/(2-l-f):c/(l+f),a=l===r?(i-s)/c+(i<s?6:0):l===i?(s-r)/c+2:(r-i)/c+4,a*=60),p[0]=~~(a+.5),p[1]=~~(100*o+.5),p[2]=~~(100*u+.5)),n&&p.length<4&&(p[3]=1),p},$a=function(e){var t=[],n=[],r=-1;return e.split(cn).forEach(function(i){var s=i.match(Zn)||[];t.push.apply(t,s),n.push(r+=s.length+1)}),t.c=n,t},Ga=function(e,t,n){var r,i,s,a,o="",u=(e+o).match(cn),l=t?"hsla(":"rgba(",f=0;if(!u)return e;if(u=u.map(function(c){return(c=Qa(c,t,1))&&l+(t?c[0]+","+c[1]+"%,"+c[2]+"%,"+c[3]:c.join(","))+")"}),n&&(s=$a(e),(r=n.c).join(o)!==s.c.join(o)))for(a=(i=e.replace(cn,"1").split(Zn)).length-1;f<a;f++)o+=i[f]+(~r.indexOf(f)?u.shift()||l+"0,0,0,0)":(s.length?s:u.length?u:n).shift());if(!i)for(a=(i=e.split(cn)).length-1;f<a;f++)o+=i[f]+u[f];return o+i[a]},cn=function(){var e,t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(e in Pr)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),zu=/hsl[a]?\(/,Za=function(e){var t,n=e.join(" ");if(cn.lastIndex=0,cn.test(n))return t=zu.test(n),e[1]=Ga(e[1],t),e[0]=Ga(e[0],t,$a(e[1])),!0},gt=function(){var e,t,n,r,i,s,a=Date.now,o=500,u=33,l=a(),f=l,c=1e3/240,h=c,p=[],T=function x(v){var d,m,y,_,k=a()-f,M=v===!0;if((k>o||k<0)&&(l+=k-u),((d=(y=(f+=k)-l)-h)>0||M)&&(_=++r.frame,i=y-1e3*r.time,r.time=y/=1e3,h+=d+(d>=c?4:c-d),m=1),M||(e=t(x)),m)for(s=0;s<p.length;s++)p[s](y,i,_,v)};return r={time:0,frame:0,tick:function(){T(!0)},deltaRatio:function(x){return i/(1e3/(x||60))},wake:function(){da&&(!Ki&&rs()&&(zt=Ki=window,Ji=zt.document||{},pt.gsap=ot,(zt.gsapVersions||(zt.gsapVersions=[])).push(ot.version),Ma(oi||zt.GreenSockGlobals||!zt.gsap&&zt||{}),ja.forEach(Ha)),n=typeof requestAnimationFrame<"u"&&requestAnimationFrame,e&&r.sleep(),t=n||function(x){return setTimeout(x,h-1e3*r.time+1|0)},Tr=1,T(2))},sleep:function(){(n?cancelAnimationFrame:clearTimeout)(e),Tr=0,t=Or},lagSmoothing:function(x,v){o=x||1/0,u=Math.min(v||33,o)},fps:function(x){c=1e3/(x||240),h=1e3*r.time+c},add:function(x,v,d){var m=v?function(y,_,k,M){x(y,_,k,M),r.remove(m)}:x;return r.remove(x),p[d?"unshift":"push"](m),nr(),m},remove:function(x,v){~(v=p.indexOf(x))&&p.splice(v,1)&&s>=v&&s--},_listeners:p}}(),nr=function(){return!Tr&&gt.wake()},K={},Iu=/^[\d.\-M][\d.\-,\s]/,Bu=/["']/g,Yu=function(e){for(var t,n,r,i={},s=e.substr(1,e.length-3).split(":"),a=s[0],o=1,u=s.length;o<u;o++)n=s[o],t=o!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,t),i[a]=isNaN(r)?r.replace(Bu,"").trim():+r,a=n.substr(t+1).trim();return i},Ka=function(e){return function(t){return 1-e(1-t)}},Ja=function e(t,n){for(var r,i=t._first;i;)i instanceof $e?e(i,n):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===n||(i.timeline?e(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},En=function(e,t){return e&&(de(e)?e:K[e]||function(n){var r,i,s,a,o=(n+"").split("("),u=K[o[0]];return u&&o.length>1&&u.config?u.config.apply(null,~n.indexOf("{")?[Yu(o[1])]:(r=n,i=r.indexOf("(")+1,s=r.indexOf(")"),a=r.indexOf("(",i),r.substring(i,~a&&a<s?r.indexOf(")",s+1):s)).split(",").map(Ca)):K._CE&&Iu.test(n)?K._CE("",n):u}(e))||t},An=function(e,t,n,r){n===void 0&&(n=function(a){return 1-t(1-a)}),r===void 0&&(r=function(a){return a<.5?t(2*a)/2:1-t(2*(1-a))/2});var i,s={easeIn:t,easeOut:n,easeInOut:r};return st(e,function(a){for(var o in K[a]=pt[a]=s,K[i=a.toLowerCase()]=n,s)K[i+(o==="easeIn"?".in":o==="easeOut"?".out":".inOut")]=K[a+"."+o]=s[o]}),s},eo=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}},gs=function e(t,n,r){var i=n>=1?n:1,s=(r||(t?.3:.45))/(n<1?n:1),a=s/ts*(Math.asin(1/i)||0),o=function(l){return l===1?1:i*Math.pow(2,-10*l)*wu((l-a)*s)+1},u=t==="out"?o:t==="in"?function(l){return 1-o(1-l)}:eo(o);return s=ts/s,u.config=function(l,f){return e(t,l,f)},u},vs=function e(t,n){n===void 0&&(n=1.70158);var r=function(s){return s?--s*s*((n+1)*s+n)+1:0},i=t==="out"?r:t==="in"?function(s){return 1-r(1-s)}:eo(r);return i.config=function(s){return e(t,s)},i};st("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var n=t<5?t+1:t;An(e+",Power"+(n-1),t?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(2*r,n)/2:1-Math.pow(2*(1-r),n)/2})}),K.Linear.easeNone=K.none=K.Linear.easeIn,An("Elastic",gs("in"),gs("out"),gs()),kr=7.5625,ma=2*(es=1/(si=2.75)),ga=2.5*es,An("Bounce",function(e){return 1-va(1-e)},va=function(e){return e<es?kr*e*e:e<ma?kr*Math.pow(e-1.5/si,2)+.75:e<ga?kr*(e-=2.25/si)*e+.9375:kr*Math.pow(e-2.625/si,2)+.984375}),An("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)}),An("Circ",function(e){return-(ya(1-e*e)-1)}),An("Sine",function(e){return e===1?1:1-Ou(e*ku)}),An("Back",vs("in"),vs("out"),vs()),K.SteppedEase=K.steps=pt.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+(t?0:1),i=t?1:0;return function(s){return((r*Ar(0,.99999999,s)|0)+i)*n}}},Gn.ease=K["quad.out"],st("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return ls+=e+","+e+"Params,"});var to=function(e,t){this.id=Mu++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Ea,this.set=t?t.getSetter:ks},Dr=function(){function e(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,tr(this,+n.duration,1,1),this.data=n.data,fe&&(this._ctx=fe,fe.data.push(this)),Tr||gt.wake()}var t=e.prototype;return t.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},t.totalDuration=function(n){return arguments.length?(this._dirty=0,tr(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,r){if(nr(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(_i(this,n),!i._dp||i.parent||Fa(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&Bt(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Qe||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),Aa(this,n,r)),this},t.time=function(n,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+Ra(this))%(this._dur+this._rDelay)||(n?this._dur:0),r):this._time},t.totalProgress=function(n,r){return arguments.length?this.totalTime(this.totalDuration()*n,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(n,r){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?n:1-n)+Ra(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,r){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*i,r):this._repeat?er(this._tTime,i)+1:1},t.timeScale=function(n,r){if(!arguments.length)return this._rts===-1e-8?0:this._rts;if(this._rts===n)return this;var i=this.parent&&this._ts?pi(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-1e-8?0:this._rts,this.totalTime(Ar(-Math.abs(this._delay),this._tDur,i),r!==!1),di(this),function(s){for(var a=s.parent;a&&a.parent;)a._dirty=1,a.totalDuration(),a=a.parent;return s}(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(nr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Qe&&(this._tTime-=Qe)))),this):this._ps},t.startTime=function(n){if(arguments.length){this._start=n;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&Bt(r,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(it(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(n){var r=this.parent||this._dp;return r?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?pi(r.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=Cu);var r=ze;return ze=n,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),ze=r,this},t.globalTime=function(n){for(var r=this,i=arguments.length?n:r.rawTime();r;)i=r._start+i/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(n):i},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,Ba(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var r=this._time;return this._rDelay=n,Ba(this),r?this.time(r):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,r){return this.totalTime(Mt(this,n),it(r))},t.restart=function(n,r){return this.play().totalTime(n?-this._delay:0,it(r)),this._dur||(this._zTime=-1e-8),this},t.play=function(n,r){return n!=null&&this.seek(n,r),this.reversed(!1).paused(!1)},t.reverse=function(n,r){return n!=null&&this.seek(n||this.totalDuration(),r),this.reversed(!0).paused(!1)},t.pause=function(n,r){return n!=null&&this.seek(n,r),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},t.isActive=function(){var n,r=this.parent||this._dp,i=this._start;return!(r&&!(this._ts&&this._initted&&r.isActive()&&(n=r.rawTime(!0))>=i&&n<this.endTime(!0)-Qe))},t.eventCallback=function(n,r,i){var s=this.vars;return arguments.length>1?(r?(s[n]=r,i&&(s[n+"Params"]=i),n==="onUpdate"&&(this._onUpdate=r)):delete s[n],this):s[n]},t.then=function(n){var r=this;return new Promise(function(i){var s=de(n)?n:Sa,a=function(){var o=r.then;r.then=null,de(s)&&(s=s(r))&&(s.then||s===r)&&(r.then=o),i(s),r.then=o};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?a():r._prom=a})},t.kill=function(){Sr(this)},e}();_t(Dr.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 $e=function(e){function t(r,i){var s;return r===void 0&&(r={}),(s=e.call(this,r)||this).labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=it(r.sortChildren),he&&Bt(r.parent||he,Pe(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&za(Pe(s),r.scrollTrigger),s}rt(t,e);var n=t.prototype;return n.to=function(r,i,s){return Er(0,arguments,this),this},n.from=function(r,i,s){return Er(1,arguments,this),this},n.fromTo=function(r,i,s,a){return Er(2,arguments,this),this},n.set=function(r,i,s){return i.duration=0,i.parent=this,wr(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new Te(r,i,Mt(this,s),1),this},n.call=function(r,i,s){return Bt(this,Te.delayedCall(0,r,i),s)},n.staggerTo=function(r,i,s,a,o,u,l){return s.duration=i,s.stagger=s.stagger||a,s.onComplete=u,s.onCompleteParams=l,s.parent=this,new Te(r,s,Mt(this,o)),this},n.staggerFrom=function(r,i,s,a,o,u,l){return s.runBackwards=1,wr(s).immediateRender=it(s.immediateRender),this.staggerTo(r,i,s,a,o,u,l)},n.staggerFromTo=function(r,i,s,a,o,u,l,f){return a.startAt=s,wr(a).immediateRender=it(a.immediateRender),this.staggerTo(r,i,a,o,u,l,f)},n.render=function(r,i,s){var a,o,u,l,f,c,h,p,T,x,v,d,m=this._time,y=this._dirty?this.totalDuration():this._tDur,_=this._dur,k=r<=0?0:be(r),M=this._zTime<0!=r<0&&(this._initted||!_);if(this!==he&&k>y&&r>=0&&(k=y),k!==this._tTime||s||M){if(m!==this._time&&_&&(k+=this._time-m,r+=this._time-m),a=k,T=this._start,c=!(p=this._ts),M&&(_||(m=this._zTime),(r||!i)&&(this._zTime=r)),this._repeat){if(v=this._yoyo,f=_+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(100*f+r,i,s);if(a=be(k%f),k===y?(l=this._repeat,a=_):((l=~~(x=be(k/f)))&&l===x&&(a=_,l--),a>_&&(a=_)),x=er(this._tTime,f),!m&&this._tTime&&x!==l&&this._tTime-x*f-this._dur<=0&&(x=l),v&&1&l&&(a=_-a,d=1),l!==x&&!this._lock){var O=v&&1&x,w=O===(v&&1&l);if(l<x&&(O=!O),m=O?0:k%_?_:k,this._lock=1,this.render(m||(d?0:be(l*f)),i,!_)._lock=0,this._tTime=k,!i&&this.parent&&mt(this,"onRepeat"),this.vars.repeatRefresh&&!d&&(this.invalidate()._lock=1),m&&m!==this._time||c!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(_=this._dur,y=this._tDur,w&&(this._lock=2,m=O?_:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!d&&this.invalidate()),this._lock=0,!this._ts&&!c)return this;Ja(this,d)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function(R,S,Y){var F;if(Y>S)for(F=R._first;F&&F._start<=Y;){if(F.data==="isPause"&&F._start>S)return F;F=F._next}else for(F=R._last;F&&F._start>=Y;){if(F.data==="isPause"&&F._start<S)return F;F=F._prev}}(this,be(m),be(a)),h&&(k-=a-(a=h._start))),this._tTime=k,this._time=a,this._act=!p,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,m=0),!m&&a&&!i&&!l&&(mt(this,"onStart"),this._tTime!==k))return this;if(a>=m&&r>=0)for(o=this._first;o;){if(u=o._next,(o._act||a>=o._start)&&o._ts&&h!==o){if(o.parent!==this)return this.render(r,i,s);if(o.render(o._ts>0?(a-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(a-o._start)*o._ts,i,s),a!==this._time||!this._ts&&!c){h=0,u&&(k+=this._zTime=-1e-8);break}}o=u}else{o=this._last;for(var L=r<0?r:a;o;){if(u=o._prev,(o._act||L<=o._end)&&o._ts&&h!==o){if(o.parent!==this)return this.render(r,i,s);if(o.render(o._ts>0?(L-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(L-o._start)*o._ts,i,s||ze&&(o._initted||o._startAt)),a!==this._time||!this._ts&&!c){h=0,u&&(k+=this._zTime=L?-1e-8:Qe);break}}o=u}}if(h&&!i&&(this.pause(),h.render(a>=m?0:-1e-8)._zTime=a>=m?1:-1,this._ts))return this._start=T,di(this),this.render(r,i,s);this._onUpdate&&!i&&mt(this,"onUpdate",!0),(k===y&&this._tTime>=this.totalDuration()||!k&&m)&&(T!==this._start&&Math.abs(p)===Math.abs(this._ts)||this._lock||((r||!_)&&(k===y&&this._ts>0||!k&&this._ts<0)&&un(this,1),i||r<0&&!m||!k&&!m&&y||(mt(this,k===y&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(k<y&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(r,i){var s=this;if(Gt(i)||(i=Mt(this,i,r)),!(r instanceof Dr)){if(Le(r))return r.forEach(function(a){return s.add(a,i)}),this;if(De(r))return this.addLabel(r,i);if(!de(r))return this;r=Te.delayedCall(0,r)}return this!==r?Bt(this,r,i):this},n.getChildren=function(r,i,s,a){r===void 0&&(r=!0),i===void 0&&(i=!0),s===void 0&&(s=!0),a===void 0&&(a=-1e8);for(var o=[],u=this._first;u;)u._start>=a&&(u instanceof Te?i&&o.push(u):(s&&o.push(u),r&&o.push.apply(o,u.getChildren(!0,i,s)))),u=u._next;return o},n.getById=function(r){for(var i=this.getChildren(1,1,1),s=i.length;s--;)if(i[s].vars.id===r)return i[s]},n.remove=function(r){return De(r)?this.removeLabel(r):de(r)?this.killTweensOf(r):(r.parent===this&&hi(this,r),r===this._recent&&(this._recent=this._last),wn(this))},n.totalTime=function(r,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=be(gt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),e.prototype.totalTime.call(this,r,i),this._forcing=0,this):this._tTime},n.addLabel=function(r,i){return this.labels[r]=Mt(this,i),this},n.removeLabel=function(r){return delete this.labels[r],this},n.addPause=function(r,i,s){var a=Te.delayedCall(0,i||Or,s);return a.data="isPause",this._hasPause=1,Bt(this,a,Mt(this,r))},n.removePause=function(r){var i=this._first;for(r=Mt(this,r);i;)i._start===r&&i.data==="isPause"&&un(i),i=i._next},n.killTweensOf=function(r,i,s){for(var a=this.getTweensOf(r,s),o=a.length;o--;)fn!==a[o]&&a[o].kill(r,i);return this},n.getTweensOf=function(r,i){for(var s,a=[],o=Ot(r),u=this._first,l=Gt(i);u;)u instanceof Te?Su(u._targets,o)&&(l?(!fn||u._initted&&u._ts)&&u.globalTime(0)<=i&&u.globalTime(u.totalDuration())>i:!i||u.isActive())&&a.push(u):(s=u.getTweensOf(o,i)).length&&a.push.apply(a,s),u=u._next;return a},n.tweenTo=function(r,i){i=i||{};var s,a=this,o=Mt(a,r),u=i,l=u.startAt,f=u.onStart,c=u.onStartParams,h=u.immediateRender,p=Te.to(a,_t({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:i.duration||Math.abs((o-(l&&"time"in l?l.time:a._time))/a.timeScale())||Qe,onStart:function(){if(a.pause(),!s){var T=i.duration||Math.abs((o-(l&&"time"in l?l.time:a._time))/a.timeScale());p._dur!==T&&tr(p,T,0,1).render(p._time,!0,!0),s=1}f&&f.apply(p,c||[])}},i));return h?p.render(0):p},n.tweenFromTo=function(r,i,s){return this.tweenTo(i,_t({startAt:{time:Mt(this,r)}},s))},n.recent=function(){return this._recent},n.nextLabel=function(r){return r===void 0&&(r=this._time),Va(this,Mt(this,r))},n.previousLabel=function(r){return r===void 0&&(r=this._time),Va(this,Mt(this,r),1)},n.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Qe)},n.shiftChildren=function(r,i,s){s===void 0&&(s=0);for(var a,o=this._first,u=this.labels;o;)o._start>=s&&(o._start+=r,o._end+=r),o=o._next;if(i)for(a in u)u[a]>=s&&(u[a]+=r);return wn(this)},n.invalidate=function(r){var i=this._first;for(this._lock=0;i;)i.invalidate(r),i=i._next;return e.prototype.invalidate.call(this,r)},n.clear=function(r){r===void 0&&(r=!0);for(var i,s=this._first;s;)i=s._next,this.remove(s),s=i;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),wn(this)},n.totalDuration=function(r){var i,s,a,o=0,u=this,l=u._last,f=$t;if(arguments.length)return u.timeScale((u._repeat<0?u.duration():u.totalDuration())/(u.reversed()?-r:r));if(u._dirty){for(a=u.parent;l;)i=l._prev,l._dirty&&l.totalDuration(),(s=l._start)>f&&u._sort&&l._ts&&!u._lock?(u._lock=1,Bt(u,l,s-l._delay,1)._lock=0):f=s,s<0&&l._ts&&(o-=s,(!a&&!u._dp||a&&a.smoothChildTiming)&&(u._start+=s/u._ts,u._time-=s,u._tTime-=s),u.shiftChildren(-s,!1,-1/0),f=0),l._end>o&&l._ts&&(o=l._end),l=i;tr(u,u===he&&u._time>o?u._time:o,1,1),u._dirty=0}return u._tDur},t.updateRoot=function(r){if(he._ts&&(Aa(he,pi(r,he)),_a=gt.frame),gt.frame>=wa){wa+=ht.autoSleep||120;var i=he._first;if((!i||!i._ts)&&ht.autoSleep&&gt._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||gt.sleep()}}},t}(Dr);_t($e.prototype,{_lock:0,_hasPause:0,_forcing:0});var fn,ys,Lu=function(e,t,n,r,i,s,a){var o,u,l,f,c,h,p,T,x=new at(this._pt,e,t,0,1,oo,null,i),v=0,d=0;for(x.b=n,x.e=r,n+="",(p=~(r+="").indexOf("random("))&&(r=Cr(r)),s&&(s(T=[n,r],e,t),n=T[0],r=T[1]),u=n.match(ss)||[];o=ss.exec(r);)f=o[0],c=r.substring(v,o.index),l?l=(l+1)%5:c.substr(-5)==="rgba("&&(l=1),f!==u[d++]&&(h=parseFloat(u[d-1])||0,x._pt={_next:x._pt,p:c||d===1?c:",",s:h,c:f.charAt(1)==="="?Kn(h,f)-h:parseFloat(f)-h,m:l&&l<4?Math.round:0},v=ss.lastIndex);return x.c=v<r.length?r.substring(v,r.length):"",x.fp=a,(Ta.test(r)||p)&&(x.e=0),this._pt=x,x},xs=function(e,t,n,r,i,s,a,o,u,l){de(r)&&(r=r(i||0,e,s));var f,c=e[t],h=n!=="get"?n:de(c)?u?e[t.indexOf("set")||!de(e["get"+t.substr(3)])?t:"get"+t.substr(3)](u):e[t]():c,p=de(c)?u?Nu:so:Ts;if(De(r)&&(~r.indexOf("random(")&&(r=Cr(r)),r.charAt(1)==="="&&((f=Kn(h,r)+(Xe(h)||0))||f===0)&&(r=f)),!l||h!==r||ys)return isNaN(h*r)||r===""?Lu.call(this,e,t,h,r,p,o||ht.stringFilter,u):(f=new at(this._pt,e,t,+h||0,r-(h||0),typeof c=="boolean"?Uu:ao,0,p),u&&(f.fp=u),a&&f.modifier(a,this,e),this._pt=f)},no=function(e,t,n,r,i,s){var a,o,u,l;if(dt[e]&&(a=new dt[e]).init(i,a.rawVars?t[e]:function(f,c,h,p,T){if(de(f)&&(f=Rr(f,T,c,h,p)),!It(f)||f.style&&f.nodeType||Le(f)||xa(f))return De(f)?Rr(f,T,c,h,p):f;var x,v={};for(x in f)v[x]=Rr(f[x],T,c,h,p);return v}(t[e],r,i,s,n),n,r,s)!==!1&&(n._pt=o=new at(n._pt,i,e,0,1,a.render,a,0,a.priority),n!==$n))for(u=n._ptLookup[n._targets.indexOf(i)],l=a._props.length;l--;)u[a._props[l]]=o;return a},bs=function e(t,n,r){var i,s,a,o,u,l,f,c,h,p,T,x,v,d=t.vars,m=d.ease,y=d.startAt,_=d.immediateRender,k=d.lazy,M=d.onUpdate,O=d.runBackwards,w=d.yoyoEase,L=d.keyframes,R=d.autoRevert,S=t._dur,Y=t._startAt,F=t._targets,J=t.parent,N=J&&J.data==="nested"?J.vars.targets:F,re=t._overwrite==="auto"&&!an,Q=t.timeline;if(Q&&(!L||!m)&&(m="none"),t._ease=En(m,Gn.ease),t._yEase=w?Ka(En(w===!0?m:w,Gn.ease)):0,w&&t._yoyo&&!t._repeat&&(w=t._yEase,t._yEase=t._ease,t._ease=w),t._from=!Q&&!!d.runBackwards,!Q||L&&!d.stagger){if(x=(c=F[0]?On(F[0]).harness:0)&&d[c.prop],i=fi(d,as),Y&&(Y._zTime<0&&Y.progress(1),n<0&&O&&_&&!R?Y.render(-1,!0):Y.revert(O&&S?ui:Au),Y._lazy=0),y){if(un(t._startAt=Te.set(F,_t({data:"isStart",overwrite:!1,parent:J,immediateRender:!0,lazy:!Y&&it(k),startAt:null,delay:0,onUpdate:M&&function(){return mt(t,"onUpdate")},stagger:0},y))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(ze||!_&&!R)&&t._startAt.revert(ui),_&&S&&n<=0&&r<=0)return void(n&&(t._zTime=n))}else if(O&&S&&!Y)if(n&&(_=!1),a=_t({overwrite:!1,data:"isFromStart",lazy:_&&!Y&&it(k),immediateRender:_,stagger:0,parent:J},i),x&&(a[c.prop]=x),un(t._startAt=Te.set(F,a)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(ze?t._startAt.revert(ui):t._startAt.render(-1,!0)),t._zTime=n,_){if(!n)return}else e(t._startAt,Qe,Qe);for(t._pt=t._ptCache=0,k=S&&it(k)||k&&!S,s=0;s<F.length;s++){if(f=(u=F[s])._gsap||cs(F)[s]._gsap,t._ptLookup[s]=p={},os[f.id]&&on.length&&ci(),T=N===F?s:N.indexOf(u),c&&(h=new c).init(u,x||i,t,T,N)!==!1&&(t._pt=o=new at(t._pt,u,h.name,0,1,h.render,h,0,h.priority),h._props.forEach(function(P){p[P]=o}),h.priority&&(l=1)),!c||x)for(a in i)dt[a]&&(h=no(a,i,t,T,u,N))?h.priority&&(l=1):p[a]=o=xs.call(t,u,a,"get",i[a],T,N,0,d.stringFilter);t._op&&t._op[s]&&t.kill(u,t._op[s]),re&&t._pt&&(fn=t,he.killTweensOf(u,p,t.globalTime(n)),v=!t.parent,fn=0),t._pt&&k&&(os[f.id]=1)}l&&uo(t),t._onInit&&t._onInit(t)}t._onUpdate=M,t._initted=(!t._op||t._pt)&&!v,L&&n<=0&&Q.render($t,!0,!0)},Xu=function(e,t,n,r){var i,s,a=t.ease||r||"power1.inOut";if(Le(t))s=n[e]||(n[e]=[]),t.forEach(function(o,u){return s.push({t:u/(t.length-1)*100,v:o,e:a})});else for(i in t)s=n[i]||(n[i]=[]),i==="ease"||s.push({t:parseFloat(e),v:t[i],e:a})},Rr=function(e,t,n,r,i){return de(e)?e.call(t,n,r,i):De(e)&&~e.indexOf("random(")?Cr(e):e},ro=ls+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",io={};st(ro+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return io[e]=1});var Te=function(e){function t(r,i,s,a){var o;typeof i=="number"&&(s.duration=i,i=s,s=null);var u,l,f,c,h,p,T,x,v=(o=e.call(this,a?i:wr(i))||this).vars,d=v.duration,m=v.delay,y=v.immediateRender,_=v.stagger,k=v.overwrite,M=v.keyframes,O=v.defaults,w=v.scrollTrigger,L=v.yoyoEase,R=i.parent||he,S=(Le(r)||xa(r)?Gt(r[0]):"length"in i)?[r]:Ot(r);if(o._targets=S.length?cs(S):Mr(0,!ht.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=k,M||_||ai(d)||ai(m)){if(i=o.vars,(u=o.timeline=new $e({data:"nested",defaults:O||{},targets:R&&R.data==="nested"?R.vars.targets:S})).kill(),u.parent=u._dp=Pe(o),u._start=0,_||ai(d)||ai(m)){if(c=S.length,T=_&&Xa(_),It(_))for(h in _)~ro.indexOf(h)&&(x||(x={}),x[h]=_[h]);for(l=0;l<c;l++)(f=fi(i,io)).stagger=0,L&&(f.yoyoEase=L),x&&Jn(f,x),p=S[l],f.duration=+Rr(d,Pe(o),l,p,S),f.delay=(+Rr(m,Pe(o),l,p,S)||0)-o._delay,!_&&c===1&&f.delay&&(o._delay=m=f.delay,o._start+=m,f.delay=0),u.to(p,f,T?T(l,p,S):0),u._ease=K.none;u.duration()?d=m=0:o.timeline=0}else if(M){wr(_t(u.vars.defaults,{ease:"none"})),u._ease=En(M.ease||i.ease||"none");var Y,F,J,N=0;if(Le(M))M.forEach(function(re){return u.to(S,re,">")}),u.duration();else{for(h in f={},M)h==="ease"||h==="easeEach"||Xu(h,M[h],f,M.easeEach);for(h in f)for(Y=f[h].sort(function(re,Q){return re.t-Q.t}),N=0,l=0;l<Y.length;l++)(J={ease:(F=Y[l]).e,duration:(F.t-(l?Y[l-1].t:0))/100*d})[h]=F.v,u.to(S,J,N),N+=J.duration;u.duration()<d&&u.to({},{duration:d-u.duration()})}}d||o.duration(d=u.duration())}else o.timeline=0;return k!==!0||an||(fn=Pe(o),he.killTweensOf(S),fn=0),Bt(R,Pe(o),s),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(y||!d&&!M&&o._start===be(R._time)&&it(y)&&Pu(Pe(o))&&R.data!=="nested")&&(o._tTime=-1e-8,o.render(Math.max(0,-m)||0)),w&&za(Pe(o),w),o}rt(t,e);var n=t.prototype;return n.render=function(r,i,s){var a,o,u,l,f,c,h,p,T,x=this._time,v=this._tDur,d=this._dur,m=r<0,y=r>v-Qe&&!m?v:r<Qe?0:r;if(d){if(y!==this._tTime||!r||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(a=y,p=this.timeline,this._repeat){if(l=d+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*l+r,i,s);if(a=be(y%l),y===v?(u=this._repeat,a=d):(u=~~(f=be(y/l)))&&u===f?(a=d,u--):a>d&&(a=d),(c=this._yoyo&&1&u)&&(T=this._yEase,a=d-a),f=er(this._tTime,l),a===x&&!s&&this._initted&&u===f)return this._tTime=y,this;u!==f&&(p&&this._yEase&&Ja(p,c),this.vars.repeatRefresh&&!c&&!this._lock&&a!==l&&this._initted&&(this._lock=s=1,this.render(be(l*u),!0).invalidate()._lock=0))}if(!this._initted){if(Ia(this,m?r:a,s,i,y))return this._tTime=0,this;if(!(x===this._time||s&&this.vars.repeatRefresh&&u!==f))return this;if(d!==this._dur)return this.render(r,i,s)}if(this._tTime=y,this._time=a,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(T||this._ease)(a/d),this._from&&(this.ratio=h=1-h),a&&!x&&!i&&!u&&(mt(this,"onStart"),this._tTime!==y))return this;for(o=this._pt;o;)o.r(h,o.d),o=o._next;p&&p.render(r<0?r:p._dur*p._ease(a/this._dur),i,s)||this._startAt&&(this._zTime=r),this._onUpdate&&!i&&(m&&fs(this,r,0,s),mt(this,"onUpdate")),this._repeat&&u!==f&&this.vars.onRepeat&&!i&&this.parent&&mt(this,"onRepeat"),y!==this._tDur&&y||this._tTime!==y||(m&&!this._onUpdate&&fs(this,r,0,!0),(r||!d)&&(y===this._tDur&&this._ts>0||!y&&this._ts<0)&&un(this,1),i||m&&!x||!(y||x||c)||(mt(this,y===v?"onComplete":"onReverseComplete",!0),this._prom&&!(y<v&&this.timeScale()>0)&&this._prom()))}}else(function(_,k,M,O){var w,L,R,S=_.ratio,Y=k<0||!k&&(!_._start&&Du(_)&&(_._initted||!hs(_))||(_._ts<0||_._dp._ts<0)&&!hs(_))?0:1,F=_._rDelay,J=0;if(F&&_._repeat&&(J=Ar(0,_._tDur,k),L=er(J,F),_._yoyo&&1&L&&(Y=1-Y),L!==er(_._tTime,F)&&(S=1-Y,_.vars.repeatRefresh&&_._initted&&_.invalidate())),Y!==S||ze||O||_._zTime===Qe||!k&&_._zTime){if(!_._initted&&Ia(_,k,O,M,J))return;for(R=_._zTime,_._zTime=k||(M?Qe:0),M||(M=k&&!R),_.ratio=Y,_._from&&(Y=1-Y),_._time=0,_._tTime=J,w=_._pt;w;)w.r(Y,w.d),w=w._next;k<0&&fs(_,k,0,!0),_._onUpdate&&!M&&mt(_,"onUpdate"),J&&_._repeat&&!M&&_.parent&&mt(_,"onRepeat"),(k>=_._tDur||k<0)&&_.ratio===Y&&(Y&&un(_,1),M||ze||(mt(_,Y?"onComplete":"onReverseComplete",!0),_._prom&&_._prom()))}else _._zTime||(_._zTime=k)})(this,r,i,s);return this},n.targets=function(){return this._targets},n.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),e.prototype.invalidate.call(this,r)},n.resetTo=function(r,i,s,a,o){Tr||gt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||bs(this,u),function(l,f,c,h,p,T,x,v){var d,m,y,_,k=(l._pt&&l._ptCache||(l._ptCache={}))[f];if(!k)for(k=l._ptCache[f]=[],y=l._ptLookup,_=l._targets.length;_--;){if((d=y[_][f])&&d.d&&d.d._pt)for(d=d.d._pt;d&&d.p!==f&&d.fp!==f;)d=d._next;if(!d)return ys=1,l.vars[f]="+=0",bs(l,x),ys=0,v?Mr():1;k.push(d)}for(_=k.length;_--;)(d=(m=k[_])._pt||m).s=!h&&h!==0||p?d.s+(h||0)+T*d.c:h,d.c=c-d.s,m.e&&(m.e=ge(c)+Xe(m.e)),m.b&&(m.b=d.s+Xe(m.b))}(this,r,i,s,a,this._ease(u/this._dur),u,o)?this.resetTo(r,i,s,a,1):(_i(this,0),this.parent||Da(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(r,i){if(i===void 0&&(i="all"),!(r||i&&i!=="all"))return this._lazy=this._pt=0,this.parent?Sr(this):this.scrollTrigger&&this.scrollTrigger.kill(!!ze),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(r,i,fn&&fn.vars.overwrite!==!0)._first||Sr(this),this.parent&&s!==this.timeline.totalDuration()&&tr(this,this._dur*this.timeline._tDur/s,0,1),this}var a,o,u,l,f,c,h,p=this._targets,T=r?Ot(r):p,x=this._ptLookup,v=this._pt;if((!i||i==="all")&&function(d,m){for(var y=d.length,_=y===m.length;_&&y--&&d[y]===m[y];);return y<0}(p,T))return i==="all"&&(this._pt=0),Sr(this);for(a=this._op=this._op||[],i!=="all"&&(De(i)&&(f={},st(i,function(d){return f[d]=1}),i=f),i=function(d,m){var y,_,k,M,O=d[0]?On(d[0]).harness:0,w=O&&O.aliases;if(!w)return m;for(_ in y=Jn({},m),w)if(_ in y)for(k=(M=w[_].split(",")).length;k--;)y[M[k]]=y[_];return y}(p,i)),h=p.length;h--;)if(~T.indexOf(p[h]))for(f in o=x[h],i==="all"?(a[h]=i,l=o,u={}):(u=a[h]=a[h]||{},l=i),l)(c=o&&o[f])&&("kill"in c.d&&c.d.kill(f)!==!0||hi(this,c,"_pt"),delete o[f]),u!=="all"&&(u[f]=1);return this._initted&&!this._pt&&v&&Sr(this),this},t.to=function(r,i){return new t(r,i,arguments[2])},t.from=function(r,i){return Er(1,arguments)},t.delayedCall=function(r,i,s,a){return new t(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:i,onReverseComplete:i,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},t.fromTo=function(r,i,s){return Er(2,arguments)},t.set=function(r,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new t(r,i)},t.killTweensOf=function(r,i,s){return he.killTweensOf(r,i,s)},t}(Dr);_t(Te.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),st("staggerTo,staggerFrom,staggerFromTo",function(e){Te[e]=function(){var t=new $e,n=ps.call(arguments,0);return n.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,n)}});var Ts=function(e,t,n){return e[t]=n},so=function(e,t,n){return e[t](n)},Nu=function(e,t,n,r){return e[t](r.fp,n)},qu=function(e,t,n){return e.setAttribute(t,n)},ks=function(e,t){return de(e[t])?so:ns(e[t])&&e.setAttribute?qu:Ts},ao=function(e,t){return t.set(t.t,t.p,Math.round(1e6*(t.s+t.c*e))/1e6,t)},Uu=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},oo=function(e,t){var n=t._pt,r="";if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round(1e4*(n.s+n.c*e))/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Ms=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Wu=function(e,t,n,r){for(var i,s=this._pt;s;)i=s._next,s.p===r&&s.modifier(e,t,n),s=i},Vu=function(e){for(var t,n,r=this._pt;r;)n=r._next,r.p===e&&!r.op||r.op===e?hi(this,r,"_pt"):r.dep||(t=1),r=n;return!t},ju=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},uo=function(e){for(var t,n,r,i,s=e._pt;s;){for(t=s._next,n=r;n&&n.pr>s.pr;)n=n._next;(s._prev=n?n._prev:i)?s._prev._next=s:r=s,(s._next=n)?n._prev=s:i=s,s=t}e._pt=r},at=function(){function e(t,n,r,i,s,a,o,u,l){this.t=n,this.s=i,this.c=s,this.p=r,this.r=a||ao,this.d=o||this,this.set=u||Ts,this.pr=l||0,this._next=t,t&&(t._prev=this)}return e.prototype.modifier=function(t,n,r){this.mSet=this.mSet||this.set,this.set=ju,this.m=t,this.mt=r,this.tween=n},e}();st(ls+"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",function(e){return as[e]=1}),pt.TweenMax=pt.TweenLite=Te,pt.TimelineLite=pt.TimelineMax=$e,he=new $e({sortChildren:!1,defaults:Gn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),ht.stringFilter=Za;var Cn=[],mi={},Hu=[],lo=0,Qu=0,Os=function(e){return(mi[e]||Hu).map(function(t){return t()})},ws=function(){var e=Date.now(),t=[];e-lo>2&&(Os("matchMediaInit"),Cn.forEach(function(n){var r,i,s,a,o=n.queries,u=n.conditions;for(i in o)(r=zt.matchMedia(o[i]).matches)&&(s=1),r!==u[i]&&(u[i]=r,a=1);a&&(n.revert(),s&&t.push(n))}),Os("matchMediaRevert"),t.forEach(function(n){return n.onMatch(n,function(r){return n.add(null,r)})}),lo=e,Os("matchMedia"))},co=function(){function e(n,r){this.selector=r&&ds(r),this.data=[],this._r=[],this.isReverted=!1,this.id=Qu++,n&&this.add(n)}var t=e.prototype;return t.add=function(n,r,i){de(n)&&(i=r,r=n,n=de);var s=this,a=function(){var o,u=fe,l=s.selector;return u&&u!==s&&u.data.push(s),i&&(s.selector=ds(i)),fe=s,o=r.apply(s,arguments),de(o)&&s._r.push(o),fe=u,s.selector=l,s.isReverted=!1,o};return s.last=a,n===de?a(s,function(o){return s.add(null,o)}):n?s[n]=a:a},t.ignore=function(n){var r=fe;fe=null,n(this),fe=r},t.getTweens=function(){var n=[];return this.data.forEach(function(r){return r instanceof e?n.push.apply(n,r.getTweens()):r instanceof Te&&!(r.parent&&r.parent.data==="nested")&&n.push(r)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,r){var i=this;if(n?function(){for(var a,o=i.getTweens(),u=i.data.length;u--;)(a=i.data[u]).data==="isFlip"&&(a.revert(),a.getChildren(!0,!0,!1).forEach(function(l){return o.splice(o.indexOf(l),1)}));for(o.map(function(l){return{g:l._dur||l._delay||l._sat&&!l._sat.vars.immediateRender?l.globalTime(0):-1/0,t:l}}).sort(function(l,f){return f.g-l.g||-1/0}).forEach(function(l){return l.t.revert(n)}),u=i.data.length;u--;)(a=i.data[u])instanceof $e?a.data!=="nested"&&(a.scrollTrigger&&a.scrollTrigger.revert(),a.kill()):!(a instanceof Te)&&a.revert&&a.revert(n);i._r.forEach(function(l){return l(n,i)}),i.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var s=Cn.length;s--;)Cn[s].id===this.id&&Cn.splice(s,1)},t.revert=function(n){this.kill(n||{})},e}(),$u=function(){function e(n){this.contexts=[],this.scope=n,fe&&fe.data.push(this)}var t=e.prototype;return t.add=function(n,r,i){It(n)||(n={matches:n});var s,a,o,u=new co(0,i||this.scope),l=u.conditions={};for(a in fe&&!u.selector&&(u.selector=fe.selector),this.contexts.push(u),r=u.add("onMatch",r),u.queries=n,n)a==="all"?o=1:(s=zt.matchMedia(n[a]))&&(Cn.indexOf(u)<0&&Cn.push(u),(l[a]=s.matches)&&(o=1),s.addListener?s.addListener(ws):s.addEventListener("change",ws));return o&&r(u,function(f){return u.add(null,f)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(r){return r.kill(n,!0)})},e}(),gi={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(r){return Ha(r)})},timeline:function(e){return new $e(e)},getTweensOf:function(e,t){return he.getTweensOf(e,t)},getProperty:function(e,t,n,r){De(e)&&(e=Ot(e)[0]);var i=On(e||{}).get,s=n?Sa:Ca;return n==="native"&&(n=""),e&&(t?s((dt[t]&&dt[t].get||i)(e,t,n,r)):function(a,o,u){return s((dt[a]&&dt[a].get||i)(e,a,o,u))})},quickSetter:function(e,t,n){if((e=Ot(e)).length>1){var r=e.map(function(l){return ot.quickSetter(l,t,n)}),i=r.length;return function(l){for(var f=i;f--;)r[f](l)}}e=e[0]||{};var s=dt[t],a=On(e),o=a.harness&&(a.harness.aliases||{})[t]||t,u=s?function(l){var f=new s;$n._pt=0,f.init(e,n?l+n:l,$n,0,[e]),f.render(1,f),$n._pt&&Ms(1,$n)}:a.set(e,o);return s?u:function(l){return u(e,o,n?l+n:l,a,1)}},quickTo:function(e,t,n){var r,i=ot.to(e,_t(((r={})[t]="+=0.1",r.paused=!0,r.stagger=0,r),n||{})),s=function(a,o,u){return i.resetTo(t,a,o,u)};return s.tween=i,s},isTweening:function(e){return he.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=En(e.ease,Gn.ease)),Pa(Gn,e||{})},config:function(e){return Pa(ht,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,s=e.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!dt[a]&&!pt[a]&&Mr()}),us[t]=function(a,o,u){return n(Ot(a),_t(o||{},i),u)},s&&($e.prototype[t]=function(a,o,u){return this.add(us[t](a,It(o)?o:(u=o)&&{},this),u)})},registerEase:function(e,t){K[e]=En(t)},parseEase:function(e,t){return arguments.length?En(e,t):K},getById:function(e){return he.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n,r,i=new $e(e);for(i.smoothChildTiming=it(e.smoothChildTiming),he.remove(i),i._dp=0,i._time=i._tTime=he._time,n=he._first;n;)r=n._next,!t&&!n._dur&&n instanceof Te&&n.vars.onComplete===n._targets[0]||Bt(i,n,n._start-n._delay),n=r;return Bt(he,i,0),i},context:function(e,t){return e?new co(e,t):fe},matchMedia:function(e){return new $u(e)},matchMediaRefresh:function(){return Cn.forEach(function(e){var t,n,r=e.conditions;for(n in r)r[n]&&(r[n]=!1,t=1);t&&e.revert()})||ws()},addEventListener:function(e,t){var n=mi[e]||(mi[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=mi[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:function e(t,n,r){var i=n-t;return Le(t)?Ua(t,e(0,t.length),n):ln(r,function(s){return(i+(s-t)%i)%i+t})},wrapYoyo:function e(t,n,r){var i=n-t,s=2*i;return Le(t)?Ua(t,e(0,t.length-1),n):ln(r,function(a){return t+((a=(s+(a-t)%s)%s||0)>i?s-a:a)})},distribute:Xa,random:qa,snap:Na,normalize:function(e,t,n){return Wa(e,t,0,1,n)},getUnit:Xe,clamp:function(e,t,n){return ln(n,function(r){return Ar(e,t,r)})},splitColor:Qa,toArray:Ot,selector:ds,mapRange:Wa,pipe:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduce(function(i,s){return s(i)},r)}},unitize:function(e,t){return function(n){return e(parseFloat(n))+(t||Xe(n))}},interpolate:function e(t,n,r,i){var s=isNaN(t+n)?0:function(p){return(1-p)*t+p*n};if(!s){var a,o,u,l,f,c=De(t),h={};if(r===!0&&(i=1)&&(r=null),c)t={p:t},n={p:n};else if(Le(t)&&!Le(n)){for(u=[],l=t.length,f=l-2,o=1;o<l;o++)u.push(e(t[o-1],t[o]));l--,s=function(p){p*=l;var T=Math.min(f,~~p);return u[T](p-T)},r=n}else i||(t=Jn(Le(t)?[]:{},t));if(!u){for(a in n)xs.call(h,t,a,"get",n[a]);s=function(p){return Ms(p,h)||(c?t.p:t)}}}return ln(r,s)},shuffle:La},install:Ma,effects:us,ticker:gt,updateRoot:$e.updateRoot,plugins:dt,globalTimeline:he,core:{PropTween:at,globals:Oa,Tween:Te,Timeline:$e,Animation:Dr,getCache:On,_removeLinkedListItem:hi,reverting:function(){return ze},context:function(e){return e&&fe&&(fe.data.push(e),e._ctx=fe),fe},suppressOverwrites:function(e){return an=e}}};st("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return gi[e]=Te[e]}),gt.add($e.updateRoot),$n=gi.to({},{duration:0});var Gu=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},Es=function(e,t){return{name:e,rawVars:1,init:function(n,r,i){i._onInit=function(s){var a,o;if(De(r)&&(a={},st(r,function(u){return a[u]=1}),r=a),t){for(o in a={},r)a[o]=t(r[o]);r=a}(function(u,l){var f,c,h,p=u._targets;for(f in l)for(c=p.length;c--;)(h=u._ptLookup[c][f])&&(h=h.d)&&(h._pt&&(h=Gu(h,f)),h&&h.modifier&&h.modifier(l[f],u,p[c],f))})(s,r)}}}},ot=gi.registerPlugin({name:"attr",init:function(e,t,n,r,i){var s,a,o;for(s in this.tween=n,t)o=e.getAttribute(s)||"",(a=this.add(e,"setAttribute",(o||0)+"",t[s],r,i,0,0,s)).op=s,a.b=o,this._props.push(s)},render:function(e,t){for(var n=t._pt;n;)ze?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},Es("roundProps",_s),Es("modifiers"),Es("snap",Na))||gi;Te.version=$e.version=ot.version="3.12.7",da=1,rs()&&nr(),K.Power0,K.Power1,K.Power2,K.Power3,K.Power4,K.Linear,K.Quad,K.Cubic,K.Quart,K.Quint,K.Strong,K.Elastic,K.Back,K.SteppedEase,K.Bounce,K.Sine,K.Expo,K.Circ;var fo,hn,rr,As,Sn,ho,Cs,po,Zt={},Pn=180/Math.PI,ir=Math.PI/180,sr=Math.atan2,Ss=/([A-Z])/g,Zu=/(left|right|width|margin|padding|x)/i,Ku=/[\s,\(]\S/,Yt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ps=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},Ju=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},el=function(e,t){return t.set(t.t,t.p,e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)},tl=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},_o=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},mo=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},nl=function(e,t,n){return e.style[t]=n},rl=function(e,t,n){return e.style.setProperty(t,n)},il=function(e,t,n){return e._gsap[t]=n},sl=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},al=function(e,t,n,r,i){var s=e._gsap;s.scaleX=s.scaleY=n,s.renderTransform(i,s)},ol=function(e,t,n,r,i){var s=e._gsap;s[t]=n,s.renderTransform(i,s)},pe="transform",ut=pe+"Origin",ul=function e(t,n){var r=this,i=this.target,s=i.style,a=i._gsap;if(t in Zt&&s){if(this.tfm=this.tfm||{},t==="transform")return Yt.transform.split(",").forEach(function(o){return e.call(r,o,n)});if(~(t=Yt[t]||t).indexOf(",")?t.split(",").forEach(function(o){return r.tfm[o]=Kt(i,o)}):this.tfm[t]=a.x?a[t]:Kt(i,t),t===ut&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(pe)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ut,n,"")),t=pe}(s||n)&&this.props.push(t,n,s[t])},go=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ll=function(){var e,t,n=this.props,r=this.target,i=r.style,s=r._gsap;for(e=0;e<n.length;e+=3)n[e+1]?n[e+1]===2?r[n[e]](n[e+2]):r[n[e]]=n[e+2]:n[e+2]?i[n[e]]=n[e+2]:i.removeProperty(n[e].substr(0,2)==="--"?n[e]:n[e].replace(Ss,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)s[t]=this.tfm[t];s.svg&&(s.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(e=Cs())&&e.isStart||i[pe]||(go(i),s.zOrigin&&i[ut]&&(i[ut]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},vo=function(e,t){var n={target:e,props:[],revert:ll,save:ul};return e._gsap||ot.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(r){return n.save(r)}),n},Ds=function(e,t){var n=hn.createElementNS?hn.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):hn.createElement(e);return n&&n.style?n:hn.createElement(e)},Lt=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(Ss,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&e(t,ar(n)||n,1)||""},yo="O,Moz,ms,Ms,Webkit".split(","),ar=function(e,t,n){var r=(t||Sn).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(yo[i]+e in r););return i<0?null:(i===3?"ms":i>=0?yo[i]:"")+e},Rs=function(){typeof window<"u"&&window.document&&(fo=window,hn=fo.document,rr=hn.documentElement,Sn=Ds("div")||{style:{}},Ds("div"),pe=ar(pe),ut=pe+"Origin",Sn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",po=!!ar("perspective"),Cs=ot.core.reverting,As=1)},xo=function(e){var t,n=e.ownerSVGElement,r=Ds("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0);i.style.display="block",r.appendChild(i),rr.appendChild(r);try{t=i.getBBox()}catch{}return r.removeChild(i),rr.removeChild(r),t},bo=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},To=function(e){var t,n;try{t=e.getBBox()}catch{t=xo(e),n=1}return t&&(t.width||t.height)||n||(t=xo(e)),!t||t.width||t.x||t.y?t:{x:+bo(e,["x","cx","x1"])||0,y:+bo(e,["y","cy","y1"])||0,width:0,height:0}},ko=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!To(e))},Dn=function(e,t){if(t){var n,r=e.style;t in Zt&&t!==ut&&(t=pe),r.removeProperty?((n=t.substr(0,2))!=="ms"&&t.substr(0,6)!=="webkit"||(t="-"+t),r.removeProperty(n==="--"?t:t.replace(Ss,"-$1").toLowerCase())):r.removeAttribute(t)}},pn=function(e,t,n,r,i,s){var a=new at(e._pt,t,n,0,1,s?mo:_o);return e._pt=a,a.b=r,a.e=i,e._props.push(n),a},Mo={deg:1,rad:1,turn:1},cl={grid:1,flex:1},dn=function e(t,n,r,i){var s,a,o,u,l=parseFloat(r)||0,f=(r+"").trim().substr((l+"").length)||"px",c=Sn.style,h=Zu.test(n),p=t.tagName.toLowerCase()==="svg",T=(p?"client":"offset")+(h?"Width":"Height"),x=100,v=i==="px",d=i==="%";if(i===f||!l||Mo[i]||Mo[f])return l;if(f!=="px"&&!v&&(l=e(t,n,r,"px")),u=t.getCTM&&ko(t),(d||f==="%")&&(Zt[n]||~n.indexOf("adius")))return s=u?t.getBBox()[h?"width":"height"]:t[T],ge(d?l/s*x:l/100*s);if(c[h?"width":"height"]=x+(v?f:i),a=i!=="rem"&&~n.indexOf("adius")||i==="em"&&t.appendChild&&!p?t:t.parentNode,u&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==hn&&a.appendChild||(a=hn.body),(o=a._gsap)&&d&&o.width&&h&&o.time===gt.time&&!o.uncache)return ge(l/o.width*x);if(!d||n!=="height"&&n!=="width")(d||f==="%")&&!cl[Lt(a,"display")]&&(c.position=Lt(t,"position")),a===t&&(c.position="static"),a.appendChild(Sn),s=Sn[T],a.removeChild(Sn),c.position="absolute";else{var m=t.style[n];t.style[n]=x+i,s=t[T],m?t.style[n]=m:Dn(t,n)}return h&&d&&((o=On(a)).time=gt.time,o.width=a[T]),ge(v?s*l/x:s&&l?x/s*l:0)},Kt=function(e,t,n,r){var i;return As||Rs(),t in Yt&&t!=="transform"&&~(t=Yt[t]).indexOf(",")&&(t=t.split(",")[0]),Zt[t]&&t!=="transform"?(i=zr(e,r),i=t!=="transformOrigin"?i[t]:i.svg?i.origin:yi(Lt(e,ut))+" "+i.zOrigin+"px"):(!(i=e.style[t])||i==="auto"||r||~(i+"").indexOf("calc("))&&(i=vi[t]&&vi[t](e,t,n)||Lt(e,t)||Ea(e,t)||(t==="opacity"?1:0)),n&&!~(i+"").trim().indexOf(" ")?dn(e,t,i,n)+n:i},fl=function(e,t,n,r){if(!n||n==="none"){var i=ar(t,e,1),s=i&&Lt(e,i,1);s&&s!==n?(t=i,n=s):t==="borderColor"&&(n=Lt(e,"borderTopColor"))}var a,o,u,l,f,c,h,p,T,x,v,d=new at(this._pt,e.style,t,0,1,oo),m=0,y=0;if(d.b=n,d.e=r,n+="",(r+="")=="auto"&&(c=e.style[t],e.style[t]=r,r=Lt(e,t)||r,c?e.style[t]=c:Dn(e,t)),Za(a=[n,r]),r=a[1],u=(n=a[0]).match(Zn)||[],(r.match(Zn)||[]).length){for(;o=Zn.exec(r);)h=o[0],T=r.substring(m,o.index),f?f=(f+1)%5:T.substr(-5)!=="rgba("&&T.substr(-5)!=="hsla("||(f=1),h!==(c=u[y++]||"")&&(l=parseFloat(c)||0,v=c.substr((l+"").length),h.charAt(1)==="="&&(h=Kn(l,h)+v),p=parseFloat(h),x=h.substr((p+"").length),m=Zn.lastIndex-x.length,x||(x=x||ht.units[t]||v,m===r.length&&(r+=x,d.e+=x)),v!==x&&(l=dn(e,t,c,x)||0),d._pt={_next:d._pt,p:T||y===1?T:",",s:l,c:p-l,m:f&&f<4||t==="zIndex"?Math.round:0});d.c=m<r.length?r.substring(m,r.length):""}else d.r=t==="display"&&r==="none"?mo:_o;return Ta.test(r)&&(d.e=0),this._pt=d,d},Oo={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},hl=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n,r,i,s=t.t,a=s.style,o=t.u,u=s._gsap;if(o==="all"||o===!0)a.cssText="",r=1;else for(i=(o=o.split(",")).length;--i>-1;)n=o[i],Zt[n]&&(r=1,n=n==="transformOrigin"?ut:pe),Dn(s,n);r&&(Dn(s,pe),u&&(u.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",zr(s,1),u.uncache=1,go(a)))}},vi={clearProps:function(e,t,n,r,i){if(i.data!=="isFromStart"){var s=e._pt=new at(e._pt,t,n,0,0,hl);return s.u=r,s.pr=-10,s.tween=i,e._props.push(n),1}}},Fr=[1,0,0,1,0,0],wo={},Eo=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Ao=function(e){var t=Lt(e,pe);return Eo(t)?Fr:t.substr(7).match(ba).map(ge)},Fs=function(e,t){var n,r,i,s,a=e._gsap||On(e),o=e.style,u=Ao(e);return a.svg&&e.getAttribute("transform")?(u=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")==="1,0,0,1,0,0"?Fr:u:(u!==Fr||e.offsetParent||e===rr||a.svg||(i=o.display,o.display="block",(n=e.parentNode)&&(e.offsetParent||e.getBoundingClientRect().width)||(s=1,r=e.nextElementSibling,rr.appendChild(e)),u=Ao(e),i?o.display=i:Dn(e,"display"),s&&(r?n.insertBefore(e,r):n?n.appendChild(e):rr.removeChild(e))),t&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},zs=function(e,t,n,r,i,s){var a,o,u,l=e._gsap,f=i||Fs(e,!0),c=l.xOrigin||0,h=l.yOrigin||0,p=l.xOffset||0,T=l.yOffset||0,x=f[0],v=f[1],d=f[2],m=f[3],y=f[4],_=f[5],k=t.split(" "),M=parseFloat(k[0])||0,O=parseFloat(k[1])||0;n?f!==Fr&&(o=x*m-v*d)&&(u=M*(-v/o)+O*(x/o)-(x*_-v*y)/o,M=M*(m/o)+O*(-d/o)+(d*_-m*y)/o,O=u):(M=(a=To(e)).x+(~k[0].indexOf("%")?M/100*a.width:M),O=a.y+(~(k[1]||k[0]).indexOf("%")?O/100*a.height:O)),r||r!==!1&&l.smooth?(y=M-c,_=O-h,l.xOffset=p+(y*x+_*d)-y,l.yOffset=T+(y*v+_*m)-_):l.xOffset=l.yOffset=0,l.xOrigin=M,l.yOrigin=O,l.smooth=!!r,l.origin=t,l.originIsAbsolute=!!n,e.style[ut]="0px 0px",s&&(pn(s,l,"xOrigin",c,M),pn(s,l,"yOrigin",h,O),pn(s,l,"xOffset",p,l.xOffset),pn(s,l,"yOffset",T,l.yOffset)),e.setAttribute("data-svg-origin",M+" "+O)},zr=function(e,t){var n=e._gsap||new to(e);if("x"in n&&!t&&!n.uncache)return n;var r,i,s,a,o,u,l,f,c,h,p,T,x,v,d,m,y,_,k,M,O,w,L,R,S,Y,F,J,N,re,Q,P,_e=e.style,We=n.scaleX<0,Me="px",ye="deg",me=getComputedStyle(e),nt=Lt(e,ut)||"0";return r=i=s=u=l=f=c=h=p=0,a=o=1,n.svg=!(!e.getCTM||!ko(e)),me.translate&&(me.translate==="none"&&me.scale==="none"&&me.rotate==="none"||(_e[pe]=(me.translate!=="none"?"translate3d("+(me.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(me.rotate!=="none"?"rotate("+me.rotate+") ":"")+(me.scale!=="none"?"scale("+me.scale.split(" ").join(",")+") ":"")+(me[pe]!=="none"?me[pe]:"")),_e.scale=_e.rotate=_e.translate="none"),v=Fs(e,n.svg),n.svg&&(n.uncache?(S=e.getBBox(),nt=n.xOrigin-S.x+"px "+(n.yOrigin-S.y)+"px",R=""):R=!t&&e.getAttribute("data-svg-origin"),zs(e,R||nt,!!R||n.originIsAbsolute,n.smooth!==!1,v)),T=n.xOrigin||0,x=n.yOrigin||0,v!==Fr&&(_=v[0],k=v[1],M=v[2],O=v[3],r=w=v[4],i=L=v[5],v.length===6?(a=Math.sqrt(_*_+k*k),o=Math.sqrt(O*O+M*M),u=_||k?sr(k,_)*Pn:0,(c=M||O?sr(M,O)*Pn+u:0)&&(o*=Math.abs(Math.cos(c*ir))),n.svg&&(r-=T-(T*_+x*M),i-=x-(T*k+x*O))):(P=v[6],re=v[7],F=v[8],J=v[9],N=v[10],Q=v[11],r=v[12],i=v[13],s=v[14],l=(d=sr(P,N))*Pn,d&&(R=w*(m=Math.cos(-d))+F*(y=Math.sin(-d)),S=L*m+J*y,Y=P*m+N*y,F=w*-y+F*m,J=L*-y+J*m,N=P*-y+N*m,Q=re*-y+Q*m,w=R,L=S,P=Y),f=(d=sr(-M,N))*Pn,d&&(m=Math.cos(-d),Q=O*(y=Math.sin(-d))+Q*m,_=R=_*m-F*y,k=S=k*m-J*y,M=Y=M*m-N*y),u=(d=sr(k,_))*Pn,d&&(R=_*(m=Math.cos(d))+k*(y=Math.sin(d)),S=w*m+L*y,k=k*m-_*y,L=L*m-w*y,_=R,w=S),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,f=180-f),a=ge(Math.sqrt(_*_+k*k+M*M)),o=ge(Math.sqrt(L*L+P*P)),d=sr(w,L),c=Math.abs(d)>2e-4?d*Pn:0,p=Q?1/(Q<0?-Q:Q):0),n.svg&&(R=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!Eo(Lt(e,pe)),R&&e.setAttribute("transform",R))),Math.abs(c)>90&&Math.abs(c)<270&&(We?(a*=-1,c+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,c+=c<=0?180:-180)),t=t||n.uncache,n.x=r-((n.xPercent=r&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-r)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+Me,n.y=i-((n.yPercent=i&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+Me,n.z=s+Me,n.scaleX=ge(a),n.scaleY=ge(o),n.rotation=ge(u)+ye,n.rotationX=ge(l)+ye,n.rotationY=ge(f)+ye,n.skewX=c+ye,n.skewY=h+ye,n.transformPerspective=p+Me,(n.zOrigin=parseFloat(nt.split(" ")[2])||!t&&n.zOrigin||0)&&(_e[ut]=yi(nt)),n.xOffset=n.yOffset=0,n.force3D=ht.force3D,n.renderTransform=n.svg?dl:po?Co:pl,n.uncache=0,n},yi=function(e){return(e=e.split(" "))[0]+" "+e[1]},Is=function(e,t,n){var r=Xe(t);return ge(parseFloat(t)+parseFloat(dn(e,"x",n+"px",r)))+r},pl=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,Co(e,t)},Rn="0deg",Ir="0px",Fn=") ",Co=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,s=n.x,a=n.y,o=n.z,u=n.rotation,l=n.rotationY,f=n.rotationX,c=n.skewX,h=n.skewY,p=n.scaleX,T=n.scaleY,x=n.transformPerspective,v=n.force3D,d=n.target,m=n.zOrigin,y="",_=v==="auto"&&e&&e!==1||v===!0;if(m&&(f!==Rn||l!==Rn)){var k,M=parseFloat(l)*ir,O=Math.sin(M),w=Math.cos(M);M=parseFloat(f)*ir,k=Math.cos(M),s=Is(d,s,O*k*-m),a=Is(d,a,-Math.sin(M)*-m),o=Is(d,o,w*k*-m+m)}x!==Ir&&(y+="perspective("+x+Fn),(r||i)&&(y+="translate("+r+"%, "+i+"%) "),(_||s!==Ir||a!==Ir||o!==Ir)&&(y+=o!==Ir||_?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+Fn),u!==Rn&&(y+="rotate("+u+Fn),l!==Rn&&(y+="rotateY("+l+Fn),f!==Rn&&(y+="rotateX("+f+Fn),c===Rn&&h===Rn||(y+="skew("+c+", "+h+Fn),p===1&&T===1||(y+="scale("+p+", "+T+Fn),d.style[pe]=y||"translate(0, 0)"},dl=function(e,t){var n,r,i,s,a,o=t||this,u=o.xPercent,l=o.yPercent,f=o.x,c=o.y,h=o.rotation,p=o.skewX,T=o.skewY,x=o.scaleX,v=o.scaleY,d=o.target,m=o.xOrigin,y=o.yOrigin,_=o.xOffset,k=o.yOffset,M=o.forceCSS,O=parseFloat(f),w=parseFloat(c);h=parseFloat(h),p=parseFloat(p),(T=parseFloat(T))&&(p+=T=parseFloat(T),h+=T),h||p?(h*=ir,p*=ir,n=Math.cos(h)*x,r=Math.sin(h)*x,i=Math.sin(h-p)*-v,s=Math.cos(h-p)*v,p&&(T*=ir,a=Math.tan(p-T),i*=a=Math.sqrt(1+a*a),s*=a,T&&(a=Math.tan(T),n*=a=Math.sqrt(1+a*a),r*=a)),n=ge(n),r=ge(r),i=ge(i),s=ge(s)):(n=x,s=v,r=i=0),(O&&!~(f+"").indexOf("px")||w&&!~(c+"").indexOf("px"))&&(O=dn(d,"x",f,"px"),w=dn(d,"y",c,"px")),(m||y||_||k)&&(O=ge(O+m-(m*n+y*i)+_),w=ge(w+y-(m*r+y*s)+k)),(u||l)&&(a=d.getBBox(),O=ge(O+u/100*a.width),w=ge(w+l/100*a.height)),a="matrix("+n+","+r+","+i+","+s+","+O+","+w+")",d.setAttribute("transform",a),M&&(d.style[pe]=a)},_l=function(e,t,n,r,i){var s,a,o=360,u=De(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?Pn:1)-r,f=r+l+"deg";return u&&((s=i.split("_")[1])==="short"&&(l%=o)!==l%180&&(l+=l<0?o:-360),s==="cw"&&l<0?l=(l+36e9)%o-~~(l/o)*o:s==="ccw"&&l>0&&(l=(l-36e9)%o-~~(l/o)*o)),e._pt=a=new at(e._pt,t,n,r,l,Ju),a.e=f,a.u="deg",e._props.push(n),a},So=function(e,t){for(var n in t)e[n]=t[n];return e},ml=function(e,t,n){var r,i,s,a,o,u,l,f=So({},n._gsap),c=n.style;for(i in f.svg?(s=n.getAttribute("transform"),n.setAttribute("transform",""),c[pe]=t,r=zr(n,1),Dn(n,pe),n.setAttribute("transform",s)):(s=getComputedStyle(n)[pe],c[pe]=t,r=zr(n,1),c[pe]=s),Zt)(s=f[i])!==(a=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=Xe(s)!==(l=Xe(a))?dn(n,i,s,l):parseFloat(s),u=parseFloat(a),e._pt=new at(e._pt,r,i,o,u-o,Ps),e._pt.u=l||0,e._props.push(i));So(r,f)};st("padding,margin,Width,Radius",function(e,t){var n="Top",r="Right",i="Bottom",s="Left",a=(t<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map(function(o){return t<2?e+o:"border"+o+e});vi[t>1?"border"+e:e]=function(o,u,l,f,c){var h,p;if(arguments.length<4)return h=a.map(function(T){return Kt(o,T,l)}),(p=h.join(" ")).split(h[0]).length===5?h[0]:p;h=(f+"").split(" "),p={},a.forEach(function(T,x){return p[T]=h[x]=h[x]||h[(x-1)/2|0]}),o.init(u,p,c)}});var Po,Bs,Ys,Do={name:"css",register:Rs,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var s,a,o,u,l,f,c,h,p,T,x,v,d,m,y,_,k,M,O,w,L=this._props,R=e.style,S=n.vars.startAt;for(c in As||Rs(),this.styles=this.styles||vo(e),_=this.styles.props,this.tween=n,t)if(c!=="autoRound"&&(a=t[c],!dt[c]||!no(c,t,n,r,e,i))){if(l=typeof a,f=vi[c],l==="function"&&(l=typeof(a=a.call(n,r,e,i))),l==="string"&&~a.indexOf("random(")&&(a=Cr(a)),f)f(this,e,c,a,n)&&(y=1);else if(c.substr(0,2)==="--")s=(getComputedStyle(e).getPropertyValue(c)+"").trim(),a+="",cn.lastIndex=0,cn.test(s)||(h=Xe(s),p=Xe(a)),p?h!==p&&(s=dn(e,c,s,p)+p):h&&(a+=h),this.add(R,"setProperty",s,a,r,i,0,0,c),L.push(c),_.push(c,0,R[c]);else if(l!=="undefined"){if(S&&c in S?(s=typeof S[c]=="function"?S[c].call(n,r,e,i):S[c],De(s)&&~s.indexOf("random(")&&(s=Cr(s)),Xe(s+"")||s==="auto"||(s+=ht.units[c]||Xe(Kt(e,c))||""),(s+"").charAt(1)==="="&&(s=Kt(e,c))):s=Kt(e,c),u=parseFloat(s),(T=l==="string"&&a.charAt(1)==="="&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),c in Yt&&(c==="autoAlpha"&&(u===1&&Kt(e,"visibility")==="hidden"&&o&&(u=0),_.push("visibility",0,R.visibility),pn(this,R,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),c!=="scale"&&c!=="transform"&&~(c=Yt[c]).indexOf(",")&&(c=c.split(",")[0])),x=c in Zt)if(this.styles.save(c),v||((d=e._gsap).renderTransform&&!t.parseTransform||zr(e,t.parseTransform),m=t.smoothOrigin!==!1&&d.smooth,(v=this._pt=new at(this._pt,R,pe,0,1,d.renderTransform,d,0,-1)).dep=1),c==="scale")this._pt=new at(this._pt,d,"scaleY",d.scaleY,(T?Kn(d.scaleY,T+o):o)-d.scaleY||0,Ps),this._pt.u=0,L.push("scaleY",c),c+="X";else{if(c==="transformOrigin"){_.push(ut,0,R[ut]),M=void 0,O=void 0,w=void 0,M=(k=a).split(" "),O=M[0],w=M[1]||"50%",O!=="top"&&O!=="bottom"&&w!=="left"&&w!=="right"||(k=O,O=w,w=k),M[0]=Oo[O]||O,M[1]=Oo[w]||w,a=M.join(" "),d.svg?zs(e,a,0,m,0,this):((p=parseFloat(a.split(" ")[2])||0)!==d.zOrigin&&pn(this,d,"zOrigin",d.zOrigin,p),pn(this,R,c,yi(s),yi(a)));continue}if(c==="svgOrigin"){zs(e,a,1,m,0,this);continue}if(c in wo){_l(this,d,c,u,T?Kn(u,T+a):a);continue}if(c==="smoothOrigin"){pn(this,d,"smooth",d.smooth,a);continue}if(c==="force3D"){d[c]=a;continue}if(c==="transform"){ml(this,a,e);continue}}else c in R||(c=ar(c)||c);if(x||(o||o===0)&&(u||u===0)&&!Ku.test(a)&&c in R)o||(o=0),(h=(s+"").substr((u+"").length))!==(p=Xe(a)||(c in ht.units?ht.units[c]:h))&&(u=dn(e,c,s,p)),this._pt=new at(this._pt,x?d:R,c,u,(T?Kn(u,T+o):o)-u,x||p!=="px"&&c!=="zIndex"||t.autoRound===!1?Ps:tl),this._pt.u=p||0,h!==p&&p!=="%"&&(this._pt.b=s,this._pt.r=el);else if(c in R)fl.call(this,e,c,s,T?T+a:a);else if(c in e)this.add(e,c,s||e[c],T?T+a:a,r,i);else if(c!=="parseTransform")continue;x||(c in R?_.push(c,0,R[c]):typeof e[c]=="function"?_.push(c,2,e[c]()):_.push(c,1,s||e[c])),L.push(c)}}y&&uo(this)},render:function(e,t){if(t.tween._time||!Cs())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Kt,aliases:Yt,getSetter:function(e,t,n){var r=Yt[t];return r&&r.indexOf(",")<0&&(t=r),t in Zt&&t!==ut&&(e._gsap.x||Kt(e,"x"))?n&&ho===n?t==="scale"?sl:il:(ho=n||{})&&(t==="scale"?al:ol):e.style&&!ns(e.style[t])?nl:~t.indexOf("-")?rl:ks(e,t)},core:{_removeProperty:Dn,_getMatrix:Fs}};ot.utils.checkPrefix=ar,ot.core.getStyleSaver=vo,Ys=st((Po="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Bs="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(e){Zt[e]=1}),st(Bs,function(e){ht.units[e]="deg",wo[e]=1}),Yt[Ys[13]]=Po+","+Bs,st("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(e){var t=e.split(":");Yt[t[1]]=Ys[t[0]]}),st("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){ht.units[e]="px"}),ot.registerPlugin(Do);var Ro=ot.registerPlugin(Do)||ot;function gl(e,t,n){return t&&function(r,i){for(var s=0;s<i.length;s++){var a=i[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}(e.prototype,t),e}Ro.core.Tween;var Ie,xi,vt,_n,mn,or,Fo,zn,bi,zo,Jt,Dt,Io,Bo=function(){return Ie||typeof window<"u"&&(Ie=window.gsap)&&Ie.registerPlugin&&Ie},Yo=1,ur=[],W=[],Xt=[],Br=Date.now,Ls=function(e,t){return t},gn=function(e,t){return~Xt.indexOf(e)&&Xt[Xt.indexOf(e)+1][t]},Yr=function(e){return!!~zo.indexOf(e)},Ge=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:r!==!1,capture:!!i})},Ze=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},Ti="scrollLeft",ki="scrollTop",Xs=function(){return Jt&&Jt.isPressed||W.cache++},Mi=function(e,t){var n=function r(i){if(i||i===0){Yo&&(vt.history.scrollRestoration="manual");var s=Jt&&Jt.isPressed;i=r.v=Math.round(i)||(Jt&&Jt.iOS?1:0),e(i),r.cacheID=W.cache,s&&Ls("ss",i)}else(t||W.cache!==r.cacheID||Ls("ref"))&&(r.cacheID=W.cache,r.v=e());return r.v+r.offset};return n.offset=0,e&&n},Ke={s:Ti,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Mi(function(e){return arguments.length?vt.scrollTo(e,Oe.sc()):vt.pageXOffset||_n[Ti]||mn[Ti]||or[Ti]||0})},Oe={s:ki,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ke,sc:Mi(function(e){return arguments.length?vt.scrollTo(Ke.sc(),e):vt.pageYOffset||_n[ki]||mn[ki]||or[ki]||0})},lt=function(e,t){return(t&&t._ctx&&t._ctx.selector||Ie.utils.toArray)(e)[0]||(typeof e=="string"&&Ie.config().nullTargetWarn!==!1?void 0:null)},vn=function(e,t){var n=t.s,r=t.sc;Yr(e)&&(e=_n.scrollingElement||mn);var i=W.indexOf(e),s=r===Oe.sc?1:2;!~i&&(i=W.push(e)-1),W[i+s]||Ge(e,"scroll",Xs);var a=W[i+s],o=a||(W[i+s]=Mi(gn(e,n),!0)||(Yr(e)?r:Mi(function(u){return arguments.length?e[n]=u:e[n]})));return o.target=e,a||(o.smooth=Ie.getProperty(e,"scrollBehavior")==="smooth"),o},Ns=function(e,t,n){var r=e,i=e,s=Br(),a=s,o=t||50,u=Math.max(500,3*o),l=function(f,c){var h=Br();c||h-s>o?(i=r,r=f,a=s,s=h):n?r+=f:r=i+(f-i)/(h-a)*(s-a)};return{update:l,reset:function(){i=r=n?0:r,a=s=0},getVelocity:function(f){var c=a,h=i,p=Br();return(f||f===0)&&f!==r&&l(f),s===a||p-a>u?0:(r+(n?h:-h))/((n?p:s)-c)*1e3}}},Lr=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Lo=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},Xo=function(){var e,t,n,r;(bi=Ie.core.globals().ScrollTrigger)&&bi.core&&(e=bi.core,t=e.bridge||{},n=e._scrollers,r=e._proxies,n.push.apply(n,W),r.push.apply(r,Xt),W=n,Xt=r,Ls=function(i,s){return t[i](s)})},No=function(e){return Ie=e||Bo(),!xi&&Ie&&typeof document<"u"&&document.body&&(vt=window,_n=document,mn=_n.documentElement,or=_n.body,zo=[vt,_n,mn,or],Ie.utils.clamp,Io=Ie.core.context||function(){},zn="onpointerenter"in or?"pointer":"mouse",Fo=ve.isTouch=vt.matchMedia&&vt.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in vt||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Dt=ve.eventTypes=("ontouchstart"in mn?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in mn?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Yo=0},500),Xo(),xi=1),xi};Ke.op=Oe,W.cache=0;var ve=function(){function e(t){this.init(t)}return e.prototype.init=function(t){xi||No(Ie),bi||Xo();var n=t.tolerance,r=t.dragMinimum,i=t.type,s=t.target,a=t.lineHeight,o=t.debounce,u=t.preventDefault,l=t.onStop,f=t.onStopDelay,c=t.ignore,h=t.wheelSpeed,p=t.event,T=t.onDragStart,x=t.onDragEnd,v=t.onDrag,d=t.onPress,m=t.onRelease,y=t.onRight,_=t.onLeft,k=t.onUp,M=t.onDown,O=t.onChangeX,w=t.onChangeY,L=t.onChange,R=t.onToggleX,S=t.onToggleY,Y=t.onHover,F=t.onHoverEnd,J=t.onMove,N=t.ignoreCheck,re=t.isNormalizer,Q=t.onGestureStart,P=t.onGestureEnd,_e=t.onWheel,We=t.onEnable,Me=t.onDisable,ye=t.onClick,me=t.scrollSpeed,nt=t.capture,xn=t.allowClicks,Vi=t.lockAxis,ti=t.onLockAxis;this.target=s=lt(s)||mn,this.vars=t,c&&(c=Ie.utils.toArray(c)),n=n||1e-9,r=r||0,h=h||1,me=me||1,i=i||"wheel,touch,pointer",o=o!==!1,a||(a=parseFloat(vt.getComputedStyle(or).lineHeight)||22);var Wt,se,ct,Rt,Ve,_r,bn,b=this,Ee=0,z=0,je=t.passive||!u&&t.passive!==!1,Wn=vn(s,Ke),nn=vn(s,Oe),mr=Wn(),gr=nn(),ni=~i.indexOf("touch")&&!~i.indexOf("pointer")&&Dt[0]==="pointerdown",le=Yr(s),xe=s.ownerDocument||_n,Ae=[0,0,0],X=[0,0,0],vr=0,Vn=function(){return vr=Br()},D=function(E,G){return(b.event=E)&&c&&~c.indexOf(E.target)||G&&ni&&E.pointerType!=="touch"||N&&N(E,G)},Ce=function(){var E=b.deltaX=Lo(Ae),G=b.deltaY=Lo(X),$=Math.abs(E)>=n,ft=Math.abs(G)>=n;L&&($||ft)&&L(b,E,G,Ae,X),$&&(y&&b.deltaX>0&&y(b),_&&b.deltaX<0&&_(b),O&&O(b),R&&b.deltaX<0!=Ee<0&&R(b),Ee=b.deltaX,Ae[0]=Ae[1]=Ae[2]=0),ft&&(M&&b.deltaY>0&&M(b),k&&b.deltaY<0&&k(b),w&&w(b),S&&b.deltaY<0!=z<0&&S(b),z=b.deltaY,X[0]=X[1]=X[2]=0),(Rt||ct)&&(J&&J(b),ct&&(T&&ct===1&&T(b),v&&v(b),ct=0),Rt=!1),_r&&!(_r=!1)&&ti&&ti(b),Ve&&(_e(b),Ve=!1),Wt=0},ee=function(E,G,$){Ae[$]+=E,X[$]+=G,b._vx.update(E),b._vy.update(G),o?Wt||(Wt=requestAnimationFrame(Ce)):Ce()},yr=function(E,G){Vi&&!bn&&(b.axis=bn=Math.abs(E)>Math.abs(G)?"x":"y",_r=!0),bn!=="y"&&(Ae[2]+=E,b._vx.update(E,!0)),bn!=="x"&&(X[2]+=G,b._vy.update(G,!0)),o?Wt||(Wt=requestAnimationFrame(Ce)):Ce()},He=function(E){if(!D(E,1)){var G=(E=Lr(E,u)).clientX,$=E.clientY,ft=G-b.x,Tt=$-b.y,kn=b.isDragging;b.x=G,b.y=$,(kn||(ft||Tt)&&(Math.abs(b.startX-G)>=r||Math.abs(b.startY-$)>=r))&&(ct=kn?2:1,kn||(b.isDragging=!0),yr(ft,Tt))}},Ct=b.onPress=function(E){D(E,1)||E&&E.button||(b.axis=bn=null,se.pause(),b.isPressed=!0,E=Lr(E),Ee=z=0,b.startX=b.x=E.clientX,b.startY=b.y=E.clientY,b._vx.reset(),b._vy.reset(),Ge(re?s:xe,Dt[1],He,je,!0),b.deltaX=b.deltaY=0,d&&d(b))},Vt=b.onRelease=function(E){if(!D(E,1)){Ze(re?s:xe,Dt[1],He,!0);var G=!isNaN(b.y-b.startY),$=b.isDragging,ft=$&&(Math.abs(b.x-b.startX)>3||Math.abs(b.y-b.startY)>3),Tt=Lr(E);!ft&&G&&(b._vx.reset(),b._vy.reset(),u&&xn&&Ie.delayedCall(.08,function(){if(Br()-vr>300&&!E.defaultPrevented){if(E.target.click)E.target.click();else if(xe.createEvent){var kn=xe.createEvent("MouseEvents");kn.initMouseEvent("click",!0,!0,vt,1,Tt.screenX,Tt.screenY,Tt.clientX,Tt.clientY,!1,!1,!1,!1,0,null),E.target.dispatchEvent(kn)}}})),b.isDragging=b.isGesturing=b.isPressed=!1,l&&$&&!re&&se.restart(!0),ct&&Ce(),x&&$&&x(b),m&&m(b,ft)}},xr=function(E){return E.touches&&E.touches.length>1&&(b.isGesturing=!0)&&Q(E,b.isDragging)},jn=function(){return(b.isGesturing=!1)||P(b)},ri=function(E){if(!D(E)){var G=Wn(),$=nn();ee((G-mr)*me,($-gr)*me,1),mr=G,gr=$,l&&se.restart(!0)}},g=function(E){if(!D(E)){E=Lr(E,u),_e&&(Ve=!0);var G=(E.deltaMode===1?a:E.deltaMode===2?vt.innerHeight:1)*h;ee(E.deltaX*G,E.deltaY*G,0),l&&!re&&se.restart(!0)}},rn=function(E){if(!D(E)){var G=E.clientX,$=E.clientY,ft=G-b.x,Tt=$-b.y;b.x=G,b.y=$,Rt=!0,l&&se.restart(!0),(ft||Tt)&&yr(ft,Tt)}},ji=function(E){b.event=E,Y(b)},Hi=function(E){b.event=E,F(b)},Tn=function(E){return D(E)||Lr(E,u)&&ye(b)};se=b._dc=Ie.delayedCall(f||.25,function(){b._vx.reset(),b._vy.reset(),se.pause(),l&&l(b)}).pause(),b.deltaX=b.deltaY=0,b._vx=Ns(0,50,!0),b._vy=Ns(0,50,!0),b.scrollX=Wn,b.scrollY=nn,b.isDragging=b.isGesturing=b.isPressed=!1,Io(this),b.enable=function(E){return b.isEnabled||(Ge(le?xe:s,"scroll",Xs),i.indexOf("scroll")>=0&&Ge(le?xe:s,"scroll",ri,je,nt),i.indexOf("wheel")>=0&&Ge(s,"wheel",g,je,nt),(i.indexOf("touch")>=0&&Fo||i.indexOf("pointer")>=0)&&(Ge(s,Dt[0],Ct,je,nt),Ge(xe,Dt[2],Vt),Ge(xe,Dt[3],Vt),xn&&Ge(s,"click",Vn,!0,!0),ye&&Ge(s,"click",Tn),Q&&Ge(xe,"gesturestart",xr),P&&Ge(xe,"gestureend",jn),Y&&Ge(s,zn+"enter",ji),F&&Ge(s,zn+"leave",Hi),J&&Ge(s,zn+"move",rn)),b.isEnabled=!0,b.isDragging=b.isGesturing=b.isPressed=Rt=ct=!1,b._vx.reset(),b._vy.reset(),mr=Wn(),gr=nn(),E&&E.type&&Ct(E),We&&We(b)),b},b.disable=function(){b.isEnabled&&(ur.filter(function(E){return E!==b&&Yr(E.target)}).length||Ze(le?xe:s,"scroll",Xs),b.isPressed&&(b._vx.reset(),b._vy.reset(),Ze(re?s:xe,Dt[1],He,!0)),Ze(le?xe:s,"scroll",ri,nt),Ze(s,"wheel",g,nt),Ze(s,Dt[0],Ct,nt),Ze(xe,Dt[2],Vt),Ze(xe,Dt[3],Vt),Ze(s,"click",Vn,!0),Ze(s,"click",Tn),Ze(xe,"gesturestart",xr),Ze(xe,"gestureend",jn),Ze(s,zn+"enter",ji),Ze(s,zn+"leave",Hi),Ze(s,zn+"move",rn),b.isEnabled=b.isPressed=b.isDragging=!1,Me&&Me(b))},b.kill=b.revert=function(){b.disable();var E=ur.indexOf(b);E>=0&&ur.splice(E,1),Jt===b&&(Jt=0)},ur.push(b),re&&Yr(s)&&(Jt=b),b.enable(p)},gl(e,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),e}();ve.version="3.12.7",ve.create=function(e){return new ve(e)},ve.register=No,ve.getAll=function(){return ur.slice()},ve.getById=function(e){return ur.filter(function(t){return t.vars.id===e})[0]},Bo()&&Ie.registerPlugin(ve);var C,lr,V,oe,yt,ne,qs,Oi,Xr,Nr,qr,wi,Ne,Ei,Us,Je,qo,Uo,cr,Wo,Ws,Vo,et,Vs,jo,Ho,yn,js,Hs,Ur,Qs,Ai,$s,Gs,Wr,tt,Qo,Vr,Ci=1,qe=Date.now,Zs=qe(),wt=0,jr=0,$o=function(e,t,n){var r=xt(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return n["_"+t+"Clamp"]=r,r?e.substr(6,e.length-7):e},Go=function(e,t){return!t||xt(e)&&e.substr(0,6)==="clamp("?e:"clamp("+e+")"},vl=function e(){return jr&&requestAnimationFrame(e)},Zo=function(){return Ei=1},Ko=function(){return Ei=0},Nt=function(e){return e},Hr=function(e){return Math.round(1e5*e)/1e5||0},Jo=function(){return typeof window<"u"},eu=function(){return C||Jo()&&(C=window.gsap)&&C.registerPlugin&&C},In=function(e){return!!~qs.indexOf(e)},tu=function(e){return(e==="Height"?Qs:V["inner"+e])||yt["client"+e]||ne["client"+e]},nu=function(e){return gn(e,"getBoundingClientRect")||(In(e)?function(){return qi.width=V.innerWidth,qi.height=Qs,qi}:function(){return en(e)})},qt=function(e,t){var n=t.s,r=t.d2,i=t.d,s=t.a;return Math.max(0,(n="scroll"+r)&&(s=gn(e,n))?s()-nu(e)()[i]:In(e)?(yt[n]||ne[n])-tu(r):e[n]-e["offset"+r])},Si=function(e,t){for(var n=0;n<cr.length;n+=3)(!t||~t.indexOf(cr[n+1]))&&e(cr[n],cr[n+1],cr[n+2])},xt=function(e){return typeof e=="string"},Ue=function(e){return typeof e=="function"},Qr=function(e){return typeof e=="number"},Bn=function(e){return typeof e=="object"},$r=function(e,t,n){return e&&e.progress(t?0:1)&&n&&e.pause()},Ks=function(e,t){if(e.enabled){var n=e._ctx?e._ctx.add(function(){return t(e)}):t(e);n&&n.totalTime&&(e.callbackAnimation=n)}},fr=Math.abs,ru="left",Js="right",ea="bottom",Yn="width",Ln="height",Gr="Right",Zr="Left",Kr="Top",Jr="Bottom",ke="padding",Et="margin",hr="Width",ta="Height",we="px",At=function(e){return V.getComputedStyle(e)},iu=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},en=function(e,t){var n=t&&At(e)[Us]!=="matrix(1, 0, 0, 1, 0, 0)"&&C.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=e.getBoundingClientRect();return n&&n.progress(0).kill(),r},Pi=function(e,t){var n=t.d2;return e["offset"+n]||e["client"+n]||0},su=function(e){var t,n=[],r=e.labels,i=e.duration();for(t in r)n.push(r[t]/i);return n},na=function(e){var t=C.utils.snap(e),n=Array.isArray(e)&&e.slice(0).sort(function(r,i){return r-i});return n?function(r,i,s){var a;if(s===void 0&&(s=.001),!i)return t(r);if(i>0){for(r-=s,a=0;a<n.length;a++)if(n[a]>=r)return n[a];return n[a-1]}for(a=n.length,r+=s;a--;)if(n[a]<=r)return n[a];return n[0]}:function(r,i,s){s===void 0&&(s=.001);var a=t(r);return!i||Math.abs(a-r)<s||a-r<0==i<0?a:t(i<0?r-e:r+e)}},Di=function(e,t,n,r){return n.split(",").forEach(function(i){return e(t,i,r)})},Re=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:!r,capture:!!i})},Fe=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},Ri=function(e,t,n){(n=n&&n.wheelHandler)&&(e(t,"wheel",n),e(t,"touchmove",n))},au={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Fi={toggleActions:"play",anticipatePin:0},zi={top:0,left:0,center:.5,bottom:1,right:1},Ii=function(e,t){if(xt(e)){var n=e.indexOf("="),r=~n?+(e.charAt(n-1)+1)*parseFloat(e.substr(n+1)):0;~n&&(e.indexOf("%")>n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in zi?zi[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},Bi=function(e,t,n,r,i,s,a,o){var u=i.startColor,l=i.endColor,f=i.fontSize,c=i.indent,h=i.fontWeight,p=oe.createElement("div"),T=In(n)||gn(n,"pinType")==="fixed",x=e.indexOf("scroller")!==-1,v=T?ne:n,d=e.indexOf("start")!==-1,m=d?u:l,y="border-color:"+m+";font-size:"+f+";color:"+m+";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:"+((x||o)&&T?"fixed;":"absolute;"),(x||o||!T)&&(y+=(r===Oe?Js:ea)+":"+(s+parseFloat(c))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=d,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=y,p.innerText=t||t===0?e+"-"+t:e,v.children[0]?v.insertBefore(p,v.children[0]):v.appendChild(p),p._offset=p["offset"+r.op.d2],Yi(p,0,r,d),p},Yi=function(e,t,n,r){var i={display:"block"},s=n[r?"os2":"p2"],a=n[r?"p2":"os2"];e._isFlipped=r,i[n.a+"Percent"]=r?-100:0,i[n.a]=r?"1px":0,i["border"+s+hr]=1,i["border"+a+hr]=0,i[n.p]=t+"px",C.set(e,i)},q=[],ra={},ou=function(){return qe()-wt>34&&(Wr||(Wr=requestAnimationFrame(tn)))},pr=function(){(!et||!et.isPressed||et.startX>ne.clientWidth)&&(W.cache++,et?Wr||(Wr=requestAnimationFrame(tn)):tn(),wt||Nn("scrollStart"),wt=qe())},ia=function(){Ho=V.innerWidth,jo=V.innerHeight},ei=function(e){W.cache++,(e===!0||!Ne&&!Vo&&!oe.fullscreenElement&&!oe.webkitFullscreenElement&&(!Vs||Ho!==V.innerWidth||Math.abs(V.innerHeight-jo)>.25*V.innerHeight))&&Oi.restart(!0)},Xn={},yl=[],uu=function e(){return Fe(H,"scrollEnd",e)||Un(!0)},Nn=function(e){return Xn[e]&&Xn[e].map(function(t){return t()})||yl},bt=[],lu=function(e){for(var t=0;t<bt.length;t+=5)(!e||bt[t+4]&&bt[t+4].query===e)&&(bt[t].style.cssText=bt[t+1],bt[t].getBBox&&bt[t].setAttribute("transform",bt[t+2]||""),bt[t+3].uncache=1)},sa=function(e,t){var n;for(Je=0;Je<q.length;Je++)!(n=q[Je])||t&&n._ctx!==t||(e?n.kill(1):n.revert(!0,!0));Ai=!0,t&&lu(t),t||Nn("revert")},cu=function(e,t){W.cache++,(t||!tt)&&W.forEach(function(n){return Ue(n)&&n.cacheID++&&(n.rec=0)}),xt(e)&&(V.history.scrollRestoration=Hs=e)},qn=0,fu=function(){ne.appendChild(Ur),Qs=!et&&Ur.offsetHeight||V.innerHeight,ne.removeChild(Ur)},hu=function(e){return Xr(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(t){return t.style.display=e?"none":"block"})},Un=function(e,t){if(yt=oe.documentElement,ne=oe.body,qs=[V,oe,yt,ne],!wt||e||Ai){fu(),tt=H.isRefreshing=!0,W.forEach(function(r){return Ue(r)&&++r.cacheID&&(r.rec=r())});var n=Nn("refreshInit");Wo&&H.sort(),t||sa(),W.forEach(function(r){Ue(r)&&(r.smooth&&(r.target.style.scrollBehavior="auto"),r(0))}),q.slice(0).forEach(function(r){return r.refresh()}),Ai=!1,q.forEach(function(r){if(r._subPinOffset&&r.pin){var i=r.vars.horizontal?"offsetWidth":"offsetHeight",s=r.pin[i];r.revert(!0,1),r.adjustPinSpacing(r.pin[i]-s),r.refresh()}}),$s=1,hu(!0),q.forEach(function(r){var i=qt(r.scroller,r._dir),s=r.vars.end==="max"||r._endClamp&&r.end>i,a=r._startClamp&&r.start>=i;(s||a)&&r.setPositions(a?i-1:r.start,s?Math.max(a?i:r.start+1,i):r.end,!0)}),hu(!1),$s=0,n.forEach(function(r){return r&&r.render&&r.render(-1)}),W.forEach(function(r){Ue(r)&&(r.smooth&&requestAnimationFrame(function(){return r.target.style.scrollBehavior="smooth"}),r.rec&&r(r.rec))}),cu(Hs,1),Oi.pause(),qn++,tt=2,tn(2),q.forEach(function(r){return Ue(r.vars.onRefresh)&&r.vars.onRefresh(r)}),tt=H.isRefreshing=!1,Nn("refresh")}else Re(H,"scrollEnd",uu)},aa=0,Li=1,tn=function(e){if(e===2||!tt&&!Ai){H.isUpdating=!0,Vr&&Vr.update(0);var t=q.length,n=qe(),r=n-Zs>=50,i=t&&q[0].scroll();if(Li=aa>i?-1:1,tt||(aa=i),r&&(wt&&!Ei&&n-wt>200&&(wt=0,Nn("scrollEnd")),qr=Zs,Zs=n),Li<0){for(Je=t;Je-- >0;)q[Je]&&q[Je].update(0,r);Li=1}else for(Je=0;Je<t;Je++)q[Je]&&q[Je].update(0,r);H.isUpdating=!1}Wr=0},oa=[ru,"top",ea,Js,Et+Jr,Et+Gr,Et+Kr,Et+Zr,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Xi=oa.concat([Yn,Ln,"boxSizing","max"+hr,"max"+ta,"position",Et,ke,ke+Kr,ke+Gr,ke+Jr,ke+Zr]),ua=function(e,t,n,r){if(!e._gsap.swappedIn){for(var i,s=oa.length,a=t.style,o=e.style;s--;)a[i=oa[s]]=n[i];a.position=n.position==="absolute"?"absolute":"relative",n.display==="inline"&&(a.display="inline-block"),o[ea]=o[Js]="auto",a.flexBasis=n.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[Yn]=Pi(e,Ke)+we,a[Ln]=Pi(e,Oe)+we,a[ke]=o[Et]=o.top=o[ru]="0",dr(r),o[Yn]=o["max"+hr]=n[Yn],o[Ln]=o["max"+ta]=n[Ln],o[ke]=n[ke],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},xl=/([A-Z])/g,dr=function(e){if(e){var t,n,r=e.t.style,i=e.length,s=0;for((e.t._gsap||C.core.getCache(e.t)).uncache=1;s<i;s+=2)n=e[s+1],t=e[s],n?r[t]=n:r[t]&&r.removeProperty(t.replace(xl,"-$1").toLowerCase())}},Ni=function(e){for(var t=Xi.length,n=e.style,r=[],i=0;i<t;i++)r.push(Xi[i],n[Xi[i]]);return r.t=e,r},qi={left:0,top:0},pu=function(e,t,n,r,i,s,a,o,u,l,f,c,h,p){Ue(e)&&(e=e(o)),xt(e)&&e.substr(0,3)==="max"&&(e=c+(e.charAt(4)==="="?Ii("0"+e.substr(3),n):0));var T,x,v,d=h?h.time():0;if(h&&h.seek(0),isNaN(e)||(e=+e),Qr(e))h&&(e=C.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,c,e)),a&&Yi(a,n,r,!0);else{Ue(t)&&(t=t(o));var m,y,_,k,M=(e||"0").split(" ");v=lt(t,o)||ne,(m=en(v)||{})&&(m.left||m.top)||At(v).display!=="none"||(k=v.style.display,v.style.display="block",m=en(v),k?v.style.display=k:v.style.removeProperty("display")),y=Ii(M[0],m[r.d]),_=Ii(M[1]||"0",n),e=m[r.p]-u[r.p]-l+y+i-_,a&&Yi(a,_,r,n-_<20||a._isStart&&_>20),n-=n-_}if(p&&(o[p]=e||-.001,e<0&&(e=0)),s){var O=e+n,w=s._isStart;T="scroll"+r.d2,Yi(s,O,r,w&&O>20||!w&&(f?Math.max(ne[T],yt[T]):s.parentNode[T])<=O+1),f&&(u=en(a),f&&(s.style[r.op.p]=u[r.op.p]-r.op.m-s._offset+we))}return h&&v&&(T=en(v),h.seek(c),x=en(v),h._caScrollDist=T[r.p]-x[r.p],e=e/h._caScrollDist*c),h&&h.seek(d),h?e:Math.round(e)},bl=/(webkit|moz|length|cssText|inset)/i,du=function(e,t,n,r){if(e.parentNode!==t){var i,s,a=e.style;if(t===ne){for(i in e._stOrig=a.cssText,s=At(e))+i||bl.test(i)||!s[i]||typeof a[i]!="string"||i==="0"||(a[i]=s[i]);a.top=n,a.left=r}else a.cssText=e._stOrig;C.core.getCache(e).uncache=1,t.appendChild(e)}},_u=function(e,t,n){var r=t,i=r;return function(s){var a=Math.round(e());return a!==r&&a!==i&&Math.abs(a-r)>3&&Math.abs(a-i)>3&&(s=a,n&&n()),i=r,r=Math.round(s)}},Ui=function(e,t,n){var r={};r[t.p]="+="+n,C.set(e,r)},mu=function(e,t){var n=vn(e,t),r="_scroll"+t.p2,i=function s(a,o,u,l,f){var c=s.tween,h=o.onComplete,p={};u=u||n();var T=_u(n,u,function(){c.kill(),s.tween=0});return f=l&&f||0,l=l||a-u,c&&c.kill(),o[r]=a,o.inherit=!1,o.modifiers=p,p[r]=function(){return T(u+l*c.ratio+f*c.ratio*c.ratio)},o.onUpdate=function(){W.cache++,s.tween&&tn()},o.onComplete=function(){s.tween=0,h&&h.call(c)},c=s.tween=C.to(e,o)};return e[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Re(e,"wheel",n.wheelHandler),H.isTouch&&Re(e,"touchmove",n.wheelHandler),i},H=function(){function e(t,n){lr||e.register(C),js(this),this.init(t,n)}return e.prototype.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),jr){var r,i,s,a,o,u,l,f,c,h,p,T,x,v,d,m,y,_,k,M,O,w,L,R,S,Y,F,J,N,re,Q,P,_e,We,Me,ye,me,nt,xn,Vi,ti,Wt,se=t=iu(xt(t)||Qr(t)||t.nodeType?{trigger:t}:t,Fi),ct=se.onUpdate,Rt=se.toggleClass,Ve=se.id,_r=se.onToggle,bn=se.onRefresh,b=se.scrub,Ee=se.trigger,z=se.pin,je=se.pinSpacing,Wn=se.invalidateOnRefresh,nn=se.anticipatePin,mr=se.onScrubComplete,gr=se.onSnapComplete,ni=se.once,le=se.snap,xe=se.pinReparent,Ae=se.pinSpacer,X=se.containerAnimation,vr=se.fastScrollEnd,Vn=se.preventOverlaps,D=t.horizontal||t.containerAnimation&&t.horizontal!==!1?Ke:Oe,Ce=!b&&b!==0,ee=lt(t.scroller||V),yr=C.core.getCache(ee),He=In(ee),Ct=("pinType"in t?t.pinType:gn(ee,"pinType")||He&&"fixed")==="fixed",Vt=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],xr=Ce&&t.toggleActions.split(" "),jn="markers"in t?t.markers:Fi.markers,ri=He?0:parseFloat(At(ee)["border"+D.p2+hr])||0,g=this,rn=t.onRefreshInit&&function(){return t.onRefreshInit(g)},ji=function(A,Z,I){var j=I.d,B=I.d2,U=I.a;return(U=gn(A,"getBoundingClientRect"))?function(){return U()[j]}:function(){return(Z?tu(B):A["client"+B])||0}}(ee,He,D),Hi=function(A,Z){return!Z||~Xt.indexOf(A)?nu(A):function(){return qi}}(ee,He),Tn=0,E=0,G=0,$=vn(ee,D);if(g._startClamp=g._endClamp=!1,g._dir=D,nn*=45,g.scroller=ee,g.scroll=X?X.time.bind(X):$,a=$(),g.vars=t,n=n||t.animation,"refreshPriority"in t&&(Wo=1,t.refreshPriority===-9999&&(Vr=g)),yr.tweenScroll=yr.tweenScroll||{top:mu(ee,Oe),left:mu(ee,Ke)},g.tweenTo=r=yr.tweenScroll[D.p],g.scrubDuration=function(A){(_e=Qr(A)&&A)?P?P.duration(A):P=C.to(n,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:_e,paused:!0,onComplete:function(){return mr&&mr(g)}}):(P&&P.progress(1).kill(),P=0)},n&&(n.vars.lazy=!1,n._initted&&!g.isReverted||n.vars.immediateRender!==!1&&t.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),g.animation=n.pause(),n.scrollTrigger=g,g.scrubDuration(b),re=0,Ve||(Ve=n.vars.id)),le&&(Bn(le)&&!le.push||(le={snapTo:le}),"scrollBehavior"in ne.style&&C.set(He?[ne,yt]:ee,{scrollBehavior:"auto"}),W.forEach(function(A){return Ue(A)&&A.target===(He?oe.scrollingElement||yt:ee)&&(A.smooth=!1)}),s=Ue(le.snapTo)?le.snapTo:le.snapTo==="labels"?function(A){return function(Z){return C.utils.snap(su(A),Z)}}(n):le.snapTo==="labelsDirectional"?(Vi=n,function(A,Z){return na(su(Vi))(A,Z.direction)}):le.directional!==!1?function(A,Z){return na(le.snapTo)(A,qe()-E<500?0:Z.direction)}:C.utils.snap(le.snapTo),We=le.duration||{min:.1,max:2},We=Bn(We)?Nr(We.min,We.max):Nr(We,We),Me=C.delayedCall(le.delay||_e/2||.1,function(){var A=$(),Z=qe()-E<500,I=r.tween;if(!(Z||Math.abs(g.getVelocity())<10)||I||Ei||Tn===A)g.isActive&&Tn!==A&&Me.restart(!0);else{var j,B,U=(A-u)/v,Be=n&&!Ce?n.totalProgress():U,Se=Z?0:(Be-Q)/(qe()-qr)*1e3||0,ie=C.utils.clamp(-U,1-U,fr(Se/2)*Se/.185),ue=U+(le.inertia===!1?0:ie),ce=le,jt=ce.onStart,te=ce.onInterrupt,Ye=ce.onComplete;if(j=s(ue,g),Qr(j)||(j=ue),B=Math.max(0,Math.round(u+j*v)),A<=l&&A>=u&&B!==A){if(I&&!I._initted&&I.data<=fr(B-A))return;le.inertia===!1&&(ie=j-U),r(B,{duration:We(fr(.185*Math.max(fr(ue-Be),fr(j-Be))/Se/.05||0)),ease:le.ease||"power3",data:fr(B-A),onInterrupt:function(){return Me.restart(!0)&&te&&te(g)},onComplete:function(){g.update(),Tn=$(),n&&!Ce&&(P?P.resetTo("totalProgress",j,n._tTime/n._tDur):n.progress(j)),re=Q=n&&!Ce?n.totalProgress():g.progress,gr&&gr(g),Ye&&Ye(g)}},A,ie*v,B-A-ie*v),jt&&jt(g,r.tween)}}}).pause()),Ve&&(ra[Ve]=g),(xn=(Ee=g.trigger=lt(Ee||z!==!0&&z))&&Ee._gsap&&Ee._gsap.stRevert)&&(xn=xn(g)),z=z===!0?Ee:lt(z),xt(Rt)&&(Rt={targets:Ee,className:Rt}),z&&(je===!1||je===Et||(je=!(!je&&z.parentNode&&z.parentNode.style&&At(z.parentNode).display==="flex")&&ke),g.pin=z,(i=C.core.getCache(z)).spacer?d=i.pinState:(Ae&&((Ae=lt(Ae))&&!Ae.nodeType&&(Ae=Ae.current||Ae.nativeElement),i.spacerIsNative=!!Ae,Ae&&(i.spacerState=Ni(Ae))),i.spacer=_=Ae||oe.createElement("div"),_.classList.add("pin-spacer"),Ve&&_.classList.add("pin-spacer-"+Ve),i.pinState=d=Ni(z)),t.force3D!==!1&&C.set(z,{force3D:!0}),g.spacer=_=i.spacer,N=At(z),R=N[je+D.os2],M=C.getProperty(z),O=C.quickSetter(z,D.a,we),ua(z,_,N),y=Ni(z)),jn){T=Bn(jn)?iu(jn,au):au,h=Bi("scroller-start",Ve,ee,D,T,0),p=Bi("scroller-end",Ve,ee,D,T,0,h),k=h["offset"+D.op.d2];var ft=lt(gn(ee,"content")||ee);f=this.markerStart=Bi("start",Ve,ft,D,T,k,0,X),c=this.markerEnd=Bi("end",Ve,ft,D,T,k,0,X),X&&(nt=C.quickSetter([f,c],D.a,we)),Ct||Xt.length&&gn(ee,"fixedMarkers")===!0||(Wt=At(ti=He?ne:ee).position,ti.style.position=Wt==="absolute"||Wt==="fixed"?Wt:"relative",C.set([h,p],{force3D:!0}),Y=C.quickSetter(h,D.a,we),J=C.quickSetter(p,D.a,we))}if(X){var Tt=X.vars.onUpdate,kn=X.vars.onUpdateParams;X.eventCallback("onUpdate",function(){g.update(0,0,1),Tt&&Tt.apply(X,kn||[])})}if(g.previous=function(){return q[q.indexOf(g)-1]},g.next=function(){return q[q.indexOf(g)+1]},g.revert=function(A,Z){if(!Z)return g.kill(!0);var I=A!==!1||!g.enabled,j=Ne;I!==g.isReverted&&(I&&(ye=Math.max($(),g.scroll.rec||0),G=g.progress,me=n&&n.progress()),f&&[f,c,h,p].forEach(function(B){return B.style.display=I?"none":"block"}),I&&(Ne=g,g.update(I)),!z||xe&&g.isActive||(I?function(B,U,Be){dr(Be);var Se=B._gsap;if(Se.spacerIsNative)dr(Se.spacerState);else if(B._gsap.swappedIn){var ie=U.parentNode;ie&&(ie.insertBefore(B,U),ie.removeChild(U))}B._gsap.swappedIn=!1}(z,_,d):ua(z,_,At(z),S)),I||g.update(I),Ne=j,g.isReverted=I)},g.refresh=function(A,Z,I,j){if(!Ne&&g.enabled||Z)if(z&&A&&wt)Re(e,"scrollEnd",uu);else{!tt&&rn&&rn(g),Ne=g,r.tween&&!I&&(r.tween.kill(),r.tween=0),P&&P.pause(),Wn&&n&&n.revert({kill:!1}).invalidate(),g.isReverted||g.revert(!0,!0),g._subPinOffset=!1;var B,U,Be,Se,ie,ue,ce,jt,te,Ye,St,Mn,Hn,Qn=ji(),bu=Hi(),Qi=X?X.duration():qt(ee,D),$i=v<=.01,Ht=0,br=j||0,kt=Bn(I)?I.end:t.end,fa=t.endTrigger||Ee,Ft=Bn(I)?I.start:t.start||(t.start!==0&&Ee?z?"0 0":"0 100%":0),ii=g.pinnedContainer=t.pinnedContainer&&lt(t.pinnedContainer,g),ha=Ee&&Math.max(0,q.indexOf(g))||0,Pt=ha;for(jn&&Bn(I)&&(Mn=C.getProperty(h,D.p),Hn=C.getProperty(p,D.p));Pt-- >0;)(ue=q[Pt]).end||ue.refresh(0,1)||(Ne=g),!(ce=ue.pin)||ce!==Ee&&ce!==z&&ce!==ii||ue.isReverted||(Ye||(Ye=[]),Ye.unshift(ue),ue.revert(!0,!0)),ue!==q[Pt]&&(ha--,Pt--);for(Ue(Ft)&&(Ft=Ft(g)),Ft=$o(Ft,"start",g),u=pu(Ft,Ee,Qn,D,$(),f,h,g,bu,ri,Ct,Qi,X,g._startClamp&&"_startClamp")||(z?-.001:0),Ue(kt)&&(kt=kt(g)),xt(kt)&&!kt.indexOf("+=")&&(~kt.indexOf(" ")?kt=(xt(Ft)?Ft.split(" ")[0]:"")+kt:(Ht=Ii(kt.substr(2),Qn),kt=xt(Ft)?Ft:(X?C.utils.mapRange(0,X.duration(),X.scrollTrigger.start,X.scrollTrigger.end,u):u)+Ht,fa=Ee)),kt=$o(kt,"end",g),l=Math.max(u,pu(kt||(fa?"100% 0":Qi),fa,Qn,D,$()+Ht,c,p,g,bu,ri,Ct,Qi,X,g._endClamp&&"_endClamp"))||-.001,Ht=0,Pt=ha;Pt--;)(ce=(ue=q[Pt]).pin)&&ue.start-ue._pinPush<=u&&!X&&ue.end>0&&(B=ue.end-(g._startClamp?Math.max(0,ue.start):ue.start),(ce===Ee&&ue.start-ue._pinPush<u||ce===ii)&&isNaN(Ft)&&(Ht+=B*(1-ue.progress)),ce===z&&(br+=B));if(u+=Ht,l+=Ht,g._startClamp&&(g._startClamp+=Ht),g._endClamp&&!tt&&(g._endClamp=l||-.001,l=Math.min(l,qt(ee,D))),v=l-u||(u-=.01)&&.001,$i&&(G=C.utils.clamp(0,1,C.utils.normalize(u,l,ye))),g._pinPush=br,f&&Ht&&((B={})[D.a]="+="+Ht,ii&&(B[D.p]="-="+$()),C.set([f,c],B)),!z||$s&&g.end>=qt(ee,D)){if(Ee&&$()&&!X)for(U=Ee.parentNode;U&&U!==ne;)U._pinOffset&&(u-=U._pinOffset,l-=U._pinOffset),U=U.parentNode}else B=At(z),Se=D===Oe,Be=$(),w=parseFloat(M(D.a))+br,!Qi&&l>1&&(St={style:St=(He?oe.scrollingElement||yt:ee).style,value:St["overflow"+D.a.toUpperCase()]},He&&At(ne)["overflow"+D.a.toUpperCase()]!=="scroll"&&(St.style["overflow"+D.a.toUpperCase()]="scroll")),ua(z,_,B),y=Ni(z),U=en(z,!0),jt=Ct&&vn(ee,Se?Ke:Oe)(),je?((S=[je+D.os2,v+br+we]).t=_,(Pt=je===ke?Pi(z,D)+v+br:0)&&(S.push(D.d,Pt+we),_.style.flexBasis!=="auto"&&(_.style.flexBasis=Pt+we)),dr(S),ii&&q.forEach(function(Qt){Qt.pin===ii&&Qt.vars.pinSpacing!==!1&&(Qt._subPinOffset=!0)}),Ct&&$(ye)):(Pt=Pi(z,D))&&_.style.flexBasis!=="auto"&&(_.style.flexBasis=Pt+we),Ct&&((ie={top:U.top+(Se?Be-u:jt)+we,left:U.left+(Se?jt:Be-u)+we,boxSizing:"border-box",position:"fixed"})[Yn]=ie["max"+hr]=Math.ceil(U.width)+we,ie[Ln]=ie["max"+ta]=Math.ceil(U.height)+we,ie[Et]=ie[Et+Kr]=ie[Et+Gr]=ie[Et+Jr]=ie[Et+Zr]="0",ie[ke]=B[ke],ie[ke+Kr]=B[ke+Kr],ie[ke+Gr]=B[ke+Gr],ie[ke+Jr]=B[ke+Jr],ie[ke+Zr]=B[ke+Zr],m=function(Qt,Tu,wl){for(var Gi,pa=[],El=Qt.length,Zi=wl?8:0;Zi<El;Zi+=2)Gi=Qt[Zi],pa.push(Gi,Gi in Tu?Tu[Gi]:Qt[Zi+1]);return pa.t=Qt.t,pa}(d,ie,xe),tt&&$(0)),n?(te=n._initted,Ws(1),n.render(n.duration(),!0,!0),L=M(D.a)-w+v+br,F=Math.abs(v-L)>1,Ct&&F&&m.splice(m.length-2,2),n.render(0,!0,!0),te||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),Ws(0)):L=v,St&&(St.value?St.style["overflow"+D.a.toUpperCase()]=St.value:St.style.removeProperty("overflow-"+D.a));Ye&&Ye.forEach(function(Qt){return Qt.revert(!1,!0)}),g.start=u,g.end=l,a=o=tt?ye:$(),X||tt||(a<ye&&$(ye),g.scroll.rec=0),g.revert(!1,!0),E=qe(),Me&&(Tn=-1,Me.restart(!0)),Ne=0,n&&Ce&&(n._initted||me)&&n.progress()!==me&&n.progress(me||0,!0).render(n.time(),!0,!0),($i||G!==g.progress||X||Wn||n&&!n._initted)&&(n&&!Ce&&n.totalProgress(X&&u<-.001&&!G?C.utils.normalize(u,l,0):G,!0),g.progress=$i||(a-u)/v===G?0:G),z&&je&&(_._pinOffset=Math.round(g.progress*L)),P&&P.invalidate(),isNaN(Mn)||(Mn-=C.getProperty(h,D.p),Hn-=C.getProperty(p,D.p),Ui(h,D,Mn),Ui(f,D,Mn-(j||0)),Ui(p,D,Hn),Ui(c,D,Hn-(j||0))),$i&&!tt&&g.update(),!bn||tt||x||(x=!0,bn(g),x=!1)}},g.getVelocity=function(){return($()-o)/(qe()-qr)*1e3||0},g.endAnimation=function(){$r(g.callbackAnimation),n&&(P?P.progress(1):n.paused()?Ce||$r(n,g.direction<0,1):$r(n,n.reversed()))},g.labelToScroll=function(A){return n&&n.labels&&(u||g.refresh()||u)+n.labels[A]/n.duration()*v||0},g.getTrailing=function(A){var Z=q.indexOf(g),I=g.direction>0?q.slice(0,Z).reverse():q.slice(Z+1);return(xt(A)?I.filter(function(j){return j.vars.preventOverlaps===A}):I).filter(function(j){return g.direction>0?j.end<=u:j.start>=l})},g.update=function(A,Z,I){if(!X||I||A){var j,B,U,Be,Se,ie,ue,ce=tt===!0?ye:g.scroll(),jt=A?0:(ce-u)/v,te=jt<0?0:jt>1?1:jt||0,Ye=g.progress;if(Z&&(o=a,a=X?$():ce,le&&(Q=re,re=n&&!Ce?n.totalProgress():te)),nn&&z&&!Ne&&!Ci&&wt&&(!te&&u<ce+(ce-o)/(qe()-qr)*nn?te=1e-4:te===1&&l>ce+(ce-o)/(qe()-qr)*nn&&(te=.9999)),te!==Ye&&g.enabled){if(Be=(Se=(j=g.isActive=!!te&&te<1)!=(!!Ye&&Ye<1))||!!te!=!!Ye,g.direction=te>Ye?1:-1,g.progress=te,Be&&!Ne&&(B=te&&!Ye?0:te===1?1:Ye===1?2:3,Ce&&(U=!Se&&xr[B+1]!=="none"&&xr[B+1]||xr[B],ue=n&&(U==="complete"||U==="reset"||U in n))),Vn&&(Se||ue)&&(ue||b||!n)&&(Ue(Vn)?Vn(g):g.getTrailing(Vn).forEach(function(Qn){return Qn.endAnimation()})),Ce||(!P||Ne||Ci?n&&n.totalProgress(te,!(!Ne||!E&&!A)):(P._dp._time-P._start!==P._time&&P.render(P._dp._time-P._start),P.resetTo?P.resetTo("totalProgress",te,n._tTime/n._tDur):(P.vars.totalProgress=te,P.invalidate().restart()))),z)if(A&&je&&(_.style[je+D.os2]=R),Ct){if(Be){if(ie=!A&&te>Ye&&l+1>ce&&ce+1>=qt(ee,D),xe)if(A||!j&&!ie)du(z,_);else{var St=en(z,!0),Mn=ce-u;du(z,ne,St.top+(D===Oe?Mn:0)+we,St.left+(D===Oe?0:Mn)+we)}dr(j||ie?m:y),F&&te<1&&j||O(w+(te!==1||ie?0:L))}}else O(Hr(w+L*te));le&&!r.tween&&!Ne&&!Ci&&Me.restart(!0),Rt&&(Se||ni&&te&&(te<1||!Gs))&&Xr(Rt.targets).forEach(function(Qn){return Qn.classList[j||ni?"add":"remove"](Rt.className)}),ct&&!Ce&&!A&&ct(g),Be&&!Ne?(Ce&&(ue&&(U==="complete"?n.pause().totalProgress(1):U==="reset"?n.restart(!0).pause():U==="restart"?n.restart(!0):n[U]()),ct&&ct(g)),!Se&&Gs||(_r&&Se&&Ks(g,_r),Vt[B]&&Ks(g,Vt[B]),ni&&(te===1?g.kill(!1,1):Vt[B]=0),Se||Vt[B=te===1?1:3]&&Ks(g,Vt[B])),vr&&!j&&Math.abs(g.getVelocity())>(Qr(vr)?vr:2500)&&($r(g.callbackAnimation),P?P.progress(1):$r(n,U==="reverse"?1:!te,1))):Ce&&ct&&!Ne&&ct(g)}if(J){var Hn=X?ce/X.duration()*(X._caScrollDist||0):ce;Y(Hn+(h._isFlipped?1:0)),J(Hn)}nt&&nt(-ce/X.duration()*(X._caScrollDist||0))}},g.enable=function(A,Z){g.enabled||(g.enabled=!0,Re(ee,"resize",ei),He||Re(ee,"scroll",pr),rn&&Re(e,"refreshInit",rn),A!==!1&&(g.progress=G=0,a=o=Tn=$()),Z!==!1&&g.refresh())},g.getTween=function(A){return A&&r?r.tween:P},g.setPositions=function(A,Z,I,j){if(X){var B=X.scrollTrigger,U=X.duration(),Be=B.end-B.start;A=B.start+Be*A/U,Z=B.start+Be*Z/U}g.refresh(!1,!1,{start:Go(A,I&&!!g._startClamp),end:Go(Z,I&&!!g._endClamp)},j),g.update()},g.adjustPinSpacing=function(A){if(S&&A){var Z=S.indexOf(D.d)+1;S[Z]=parseFloat(S[Z])+A+we,S[1]=parseFloat(S[1])+A+we,dr(S)}},g.disable=function(A,Z){if(g.enabled&&(A!==!1&&g.revert(!0,!0),g.enabled=g.isActive=!1,Z||P&&P.pause(),ye=0,i&&(i.uncache=1),rn&&Fe(e,"refreshInit",rn),Me&&(Me.pause(),r.tween&&r.tween.kill()&&(r.tween=0)),!He)){for(var I=q.length;I--;)if(q[I].scroller===ee&&q[I]!==g)return;Fe(ee,"resize",ei),He||Fe(ee,"scroll",pr)}},g.kill=function(A,Z){g.disable(A,Z),P&&!Z&&P.kill(),Ve&&delete ra[Ve];var I=q.indexOf(g);I>=0&&q.splice(I,1),I===Je&&Li>0&&Je--,I=0,q.forEach(function(j){return j.scroller===g.scroller&&(I=1)}),I||tt||(g.scroll.rec=0),n&&(n.scrollTrigger=null,A&&n.revert({kill:!1}),Z||n.kill()),f&&[f,c,h,p].forEach(function(j){return j.parentNode&&j.parentNode.removeChild(j)}),Vr===g&&(Vr=0),z&&(i&&(i.uncache=1),I=0,q.forEach(function(j){return j.pin===z&&I++}),I||(i.spacer=0)),t.onKill&&t.onKill(g)},q.push(g),g.enable(!1,!1),xn&&xn(g),n&&n.add&&!v){var Ol=g.update;g.update=function(){g.update=Ol,W.cache++,u||l||g.refresh()},C.delayedCall(.01,g.update),v=.01,u=l=0}else g.refresh();z&&function(){if(Qo!==qn){var A=Qo=qn;requestAnimationFrame(function(){return A===qn&&Un(!0)})}}()}else this.update=this.refresh=this.kill=Nt},e.register=function(t){return lr||(C=t||eu(),Jo()&&window.document&&e.enable(),lr=jr),lr},e.defaults=function(t){if(t)for(var n in t)Fi[n]=t[n];return Fi},e.disable=function(t,n){jr=0,q.forEach(function(i){return i[n?"kill":"disable"](t)}),Fe(V,"wheel",pr),Fe(oe,"scroll",pr),clearInterval(wi),Fe(oe,"touchcancel",Nt),Fe(ne,"touchstart",Nt),Di(Fe,oe,"pointerdown,touchstart,mousedown",Zo),Di(Fe,oe,"pointerup,touchend,mouseup",Ko),Oi.kill(),Si(Fe);for(var r=0;r<W.length;r+=3)Ri(Fe,W[r],W[r+1]),Ri(Fe,W[r],W[r+2])},e.enable=function(){if(V=window,oe=document,yt=oe.documentElement,ne=oe.body,C&&(Xr=C.utils.toArray,Nr=C.utils.clamp,js=C.core.context||Nt,Ws=C.core.suppressOverwrites||Nt,Hs=V.history.scrollRestoration||"auto",aa=V.pageYOffset||0,C.core.globals("ScrollTrigger",e),ne)){jr=1,(Ur=document.createElement("div")).style.height="100vh",Ur.style.position="absolute",fu(),vl(),ve.register(C),e.isTouch=ve.isTouch,yn=ve.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Vs=ve.isTouch===1,Re(V,"wheel",pr),qs=[V,oe,yt,ne],C.matchMedia&&(e.matchMedia=function(o){var u,l=C.matchMedia();for(u in o)l.add(u,o[u]);return l},C.addEventListener("matchMediaInit",function(){return sa()}),C.addEventListener("matchMediaRevert",function(){return lu()}),C.addEventListener("matchMedia",function(){Un(0,1),Nn("matchMedia")}),C.matchMedia().add("(orientation: portrait)",function(){return ia(),ia})),ia(),Re(oe,"scroll",pr);var t,n,r=ne.hasAttribute("style"),i=ne.style,s=i.borderTopStyle,a=C.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",t=en(ne),Oe.m=Math.round(t.top+Oe.sc())||0,Ke.m=Math.round(t.left+Ke.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),r||(ne.setAttribute("style",""),ne.removeAttribute("style")),wi=setInterval(ou,250),C.delayedCall(.5,function(){return Ci=0}),Re(oe,"touchcancel",Nt),Re(ne,"touchstart",Nt),Di(Re,oe,"pointerdown,touchstart,mousedown",Zo),Di(Re,oe,"pointerup,touchend,mouseup",Ko),Us=C.utils.checkPrefix("transform"),Xi.push(Us),lr=qe(),Oi=C.delayedCall(.2,Un).pause(),cr=[oe,"visibilitychange",function(){var o=V.innerWidth,u=V.innerHeight;oe.hidden?(qo=o,Uo=u):qo===o&&Uo===u||ei()},oe,"DOMContentLoaded",Un,V,"load",Un,V,"resize",ei],Si(Re),q.forEach(function(o){return o.enable(0,1)}),n=0;n<W.length;n+=3)Ri(Fe,W[n],W[n+1]),Ri(Fe,W[n],W[n+2])}},e.config=function(t){"limitCallbacks"in t&&(Gs=!!t.limitCallbacks);var n=t.syncInterval;n&&clearInterval(wi)||(wi=n)&&setInterval(ou,n),"ignoreMobileResize"in t&&(Vs=e.isTouch===1&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(Si(Fe)||Si(Re,t.autoRefreshEvents||"none"),Vo=(t.autoRefreshEvents+"").indexOf("resize")===-1)},e.scrollerProxy=function(t,n){var r=lt(t),i=W.indexOf(r),s=In(r);~i&&W.splice(i,s?6:2),n&&(s?Xt.unshift(V,n,ne,n,yt,n):Xt.unshift(r,n))},e.clearMatchMedia=function(t){q.forEach(function(n){return n._ctx&&n._ctx.query===t&&n._ctx.kill(!0,!0)})},e.isInViewport=function(t,n,r){var i=(xt(t)?lt(t):t).getBoundingClientRect(),s=i[r?Yn:Ln]*n||0;return r?i.right-s>0&&i.left+s<V.innerWidth:i.bottom-s>0&&i.top+s<V.innerHeight},e.positionInViewport=function(t,n,r){xt(t)&&(t=lt(t));var i=t.getBoundingClientRect(),s=i[r?Yn:Ln],a=n==null?s/2:n in zi?zi[n]*s:~n.indexOf("%")?parseFloat(n)*s/100:parseFloat(n)||0;return r?(i.left+a)/V.innerWidth:(i.top+a)/V.innerHeight},e.killAll=function(t){if(q.slice(0).forEach(function(r){return r.vars.id!=="ScrollSmoother"&&r.kill()}),t!==!0){var n=Xn.killAll||[];Xn={},n.forEach(function(r){return r()})}},e}();H.version="3.12.7",H.saveStyles=function(e){return e?Xr(e).forEach(function(t){if(t&&t.style){var n=bt.indexOf(t);n>=0&&bt.splice(n,5),bt.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),C.core.getCache(t),js())}}):bt},H.revert=function(e,t){return sa(!e,t)},H.create=function(e,t){return new H(e,t)},H.refresh=function(e){return e?ei(!0):(lr||H.register())&&Un(!0)},H.update=function(e){return++W.cache&&tn(e===!0?2:0)},H.clearScrollMemory=cu,H.maxScroll=function(e,t){return qt(e,t?Ke:Oe)},H.getScrollFunc=function(e,t){return vn(lt(e),t?Ke:Oe)},H.getById=function(e){return ra[e]},H.getAll=function(){return q.filter(function(e){return e.vars.id!=="ScrollSmoother"})},H.isScrolling=function(){return!!wt},H.snapDirectional=na,H.addEventListener=function(e,t){var n=Xn[e]||(Xn[e]=[]);~n.indexOf(t)||n.push(t)},H.removeEventListener=function(e,t){var n=Xn[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},H.batch=function(e,t){var n,r=[],i={},s=t.interval||.016,a=t.batchMax||1e9,o=function(u,l){var f=[],c=[],h=C.delayedCall(s,function(){l(f,c),f=[],c=[]}).pause();return function(p){f.length||h.restart(!0),f.push(p.trigger),c.push(p),a<=f.length&&h.progress(1)}};for(n in t)i[n]=n.substr(0,2)==="on"&&Ue(t[n])&&n!=="onRefreshInit"?o(0,t[n]):t[n];return Ue(a)&&(a=a(),Re(H,"refresh",function(){return a=t.batchMax()})),Xr(e).forEach(function(u){var l={};for(n in i)l[n]=i[n];l.trigger=u,r.push(H.create(l))}),r};var gu,vu=function(e,t,n,r){return t>r?e(r):t<0&&e(0),n>r?(r-t)/(n-t):n<0?t/(t-n):1},la=function e(t,n){n===!0?t.style.removeProperty("touch-action"):t.style.touchAction=n===!0?"auto":n?"pan-"+n+(ve.isTouch?" pinch-zoom":""):"none",t===yt&&e(ne,n)},Wi={auto:1,scroll:1},Tl=function(e){var t,n=e.event,r=e.target,i=e.axis,s=(n.changedTouches?n.changedTouches[0]:n).target,a=s._gsap||C.core.getCache(s),o=qe();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==ne&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!Wi[(t=At(s)).overflowY]&&!Wi[t.overflowX]);)s=s.parentNode;a._isScroll=s&&s!==r&&!In(s)&&(Wi[(t=At(s)).overflowY]||Wi[t.overflowX]),a._isScrollT=o}(a._isScroll||i==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},yu=function(e,t,n,r){return ve.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r=r&&Tl,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&Re(oe,ve.eventTypes[0],xu,!1,!0)},onDisable:function(){return Fe(oe,ve.eventTypes[0],xu,!0)}})},kl=/(input|label|select|textarea)/i,xu=function(e){var t=kl.test(e.target.tagName);(t||gu)&&(e._gsapAllow=!0,gu=t)},Ml=function(e){Bn(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,n,r,i,s,a,o,u,l=e,f=l.normalizeScrollX,c=l.momentum,h=l.allowNestedScroll,p=l.onRelease,T=lt(e.target)||yt,x=C.core.globals().ScrollSmoother,v=x&&x.get(),d=yn&&(e.content&&lt(e.content)||v&&e.content!==!1&&!v.smooth()&&v.content()),m=vn(T,Oe),y=vn(T,Ke),_=1,k=(ve.isTouch&&V.visualViewport?V.visualViewport.scale*V.visualViewport.width:V.outerWidth)/V.innerWidth,M=0,O=Ue(c)?function(){return c(t)}:function(){return c||2.8},w=yu(T,e.type,!0,h),L=function(){return i=!1},R=Nt,S=Nt,Y=function(){n=qt(T,Oe),S=Nr(yn?1:0,n),f&&(R=Nr(0,qt(T,Ke))),r=qn},F=function(){d._gsap.y=Hr(parseFloat(d._gsap.y)+m.offset)+"px",d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(d._gsap.y)+", 0, 1)",m.offset=m.cacheID=0},J=function(){Y(),s.isActive()&&s.vars.scrollY>n&&(m()>n?s.progress(1)&&m(n):s.resetTo("scrollY",n))};return d&&C.set(d,{y:"+=0"}),e.ignoreCheck=function(N){return yn&&N.type==="touchmove"&&function(){if(i){requestAnimationFrame(L);var re=Hr(t.deltaY/2),Q=S(m.v-re);if(d&&Q!==m.v+m.offset){m.offset=Q-m.v;var P=Hr((parseFloat(d&&d._gsap.y)||0)-m.offset);d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+P+", 0, 1)",d._gsap.y=P+"px",m.cacheID=W.cache,tn()}return!0}m.offset&&F(),i=!0}()||_>1.05&&N.type!=="touchstart"||t.isGesturing||N.touches&&N.touches.length>1},e.onPress=function(){i=!1;var N=_;_=Hr((V.visualViewport&&V.visualViewport.scale||1)/k),s.pause(),N!==_&&la(T,_>1.01||!f&&"x"),a=y(),o=m(),Y(),r=qn},e.onRelease=e.onGestureStart=function(N,re){if(m.offset&&F(),re){W.cache++;var Q,P,_e=O();f&&(P=(Q=y())+.05*_e*-N.velocityX/.227,_e*=vu(y,Q,P,qt(T,Ke)),s.vars.scrollX=R(P)),P=(Q=m())+.05*_e*-N.velocityY/.227,_e*=vu(m,Q,P,qt(T,Oe)),s.vars.scrollY=S(P),s.invalidate().duration(_e).play(.01),(yn&&s.vars.scrollY>=n||Q>=n-1)&&C.to({},{onUpdate:J,duration:_e})}else u.restart(!0);p&&p(N)},e.onWheel=function(){s._ts&&s.pause(),qe()-M>1e3&&(r=0,M=qe())},e.onChange=function(N,re,Q,P,_e){if(qn!==r&&Y(),re&&f&&y(R(P[2]===re?a+(N.startX-N.x):y()+re-P[1])),Q){m.offset&&F();var We=_e[2]===Q,Me=We?o+N.startY-N.y:m()+Q-_e[1],ye=S(Me);We&&Me!==ye&&(o+=ye-Me),m(ye)}(Q||re)&&tn()},e.onEnable=function(){la(T,!f&&"x"),H.addEventListener("refresh",J),Re(V,"resize",J),m.smooth&&(m.target.style.scrollBehavior="auto",m.smooth=y.smooth=!1),w.enable()},e.onDisable=function(){la(T,!0),Fe(V,"resize",J),H.removeEventListener("refresh",J),w.kill()},e.lockAxis=e.lockAxis!==!1,(t=new ve(e)).iOS=yn,yn&&!m()&&m(1),yn&&C.ticker.add(Nt),u=t._dc,s=C.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:f?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:_u(m,m(),function(){return s.pause()})},onUpdate:tn,onComplete:u.vars.onComplete}),t};H.sort=function(e){if(Ue(e))return q.sort(e);var t=V.pageYOffset||0;return H.getAll().forEach(function(n){return n._sortY=n.trigger?t+n.trigger.getBoundingClientRect().top:n.start+V.innerHeight}),q.sort(e||function(n,r){return-1e6*(n.vars.refreshPriority||0)+(n.vars.containerAnimation?1e6:n._sortY)-((r.vars.containerAnimation?1e6:r._sortY)+-1e6*(r.vars.refreshPriority||0))})},H.observe=function(e){return new ve(e)},H.normalizeScroll=function(e){if(e===void 0)return et;if(e===!0&&et)return et.enable();if(e===!1)return et&&et.kill(),void(et=e);var t=e instanceof ve?e:Ml(e);return et&&et.target===t.target&&et.kill(),In(t.target)&&(et=t),t},H.core={_getVelocityProp:Ns,_inputObserver:yu,_scrollers:W,_proxies:Xt,bridge:{ss:function(){wt||Nn("scrollStart"),wt=qe()},ref:function(){return Ne}}},eu()&&C.registerPlugin(H);const Ut=class Ut{constructor({element:t=".marquee"}={}){sn(this,"_gsap",Ut.gsap);sn(this,"_timeline");sn(this,"_matchMedia");sn(this,"_element");sn(this,"_resizeObserver");sn(this,"_animationFrame");const n=t instanceof HTMLElement?t:document.querySelector(t);if(!n)throw new Error("Target element not found");this._element=n,this._gsap=Ut.gsap,this._matchMedia=this._gsap.matchMedia(),this._resizeObserver=new ResizeObserver(Ut._debounce(()=>{this._update()})),this._resizeObserver.observe(this._element)}static registerGSAP(t,n){Ut.gsap=t,Ut.ScrollTrigger=n}static _debounce(t){let n=null;return(...r)=>{n!==null&&cancelAnimationFrame(n),n=requestAnimationFrame(()=>t(...r))}}init(){this._commonInit()}destroy(){this._animationFrame!==void 0&&(cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0),this._resizeObserver.disconnect(),this._clearTimeline()}_commonInit(){this._clearTimeline(),this._cloneElements(),this._setBreakpoints(),this._applySkew(),this._timeline=this._createAnimation()}_update(){this._animationFrame!==void 0&&cancelAnimationFrame(this._animationFrame),this._animationFrame=requestAnimationFrame(()=>{this._commonInit(),Ut.ScrollTrigger.refresh()})}_createAnimation(){var r;(r=this._timeline)==null||r.kill();const t=this._gsap.timeline({scrollTrigger:{trigger:this._element,start:"top bottom",end:"bottom top",toggleActions:"resume pause resume pause",onUpdate:i=>{const s=this._element.dataset.mcDirection;s==="ltr"?t.timeScale(-1):s==="auto"&&t.timeScale(i.direction)}}}),n=this._element.dataset.mcBreakpoint||"";return this._matchMedia.add(n,()=>{const i=parseFloat(this._element.dataset.mcSpeed??"20");return t.to(this._element.children,{duration:i,x:"-100%",repeat:-1,ease:"none"}),t.totalProgress(.5),()=>{t.kill()}}),t}_clearTimeline(){var t;(t=this._timeline)==null||t.kill(),this._timeline=void 0,this._gsap.set(this._element.children,{clearProps:"all"})}_setBreakpoints(){const{mcMax:t,mcMin:n}=this._element.dataset;this._element.dataset.mcBreakpoint=t?`(max-width: ${parseFloat(t)-.02}px)`:n?`(min-width: ${n}px)`:""}_cloneElements(){const t=()=>{for(;this._element.childElementCount>1;)this._element.removeChild(this._element.lastChild)};t();const n=this._element.dataset.mcBreakpoint||"";this._matchMedia.add(n,()=>{if(!this._element.firstElementChild)return()=>{};const r=this._element.firstElementChild,i=Math.ceil(this._element.scrollWidth/r.clientWidth+2);if(this._element.childElementCount<i){const s=document.createDocumentFragment();for(let a=0;a<i-1;a++){const o=r.cloneNode(!0);s.appendChild(o)}this._element.appendChild(s)}return()=>{t()}})}_applySkew(){const{mcSkew:t}=this._element.dataset;t&&(this._element.style.transformOrigin="center center",this._element.style.transform=`skew(0deg, ${t}deg)`)}};sn(Ut,"gsap",Ro),sn(Ut,"ScrollTrigger",H);let ca=Ut;return ca});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marquee-content",
3
- "version": "4.4.0",
3
+ "version": "4.5.1-dev.0",
4
4
  "description": "MarqueeContent provides a set of tools for creating dynamic and adaptive ticker animations on web pages using GSAP and ScrollTrigger.",
5
5
  "author": "ux-ui.pro",
6
6
  "license": "MIT",
@@ -14,26 +14,46 @@
14
14
  "homepage": "https://github.com/ux-ui-pro/marquee-content",
15
15
  "sideEffects": false,
16
16
  "scripts": {
17
- "clean": "rm -rf dist .parcel-cache",
18
- "build": "yarn clean && parcel build",
19
- "lint:js": "eslint **/*.{ts,js}",
20
- "lintfix": "yarn lint:js --fix"
17
+ "clean": "rimraf dist",
18
+ "build": "vite build",
19
+ "lint:js": "eslint src/**/*.{ts,js}",
20
+ "lint:fix:js": "eslint src/**/*.{ts,js} --fix",
21
+ "format:js": "prettier --write src/**/*.{ts,js}",
22
+ "lint:fix": "yarn lint:fix:js && yarn format:js"
21
23
  },
22
- "browserslist": "> 0.5%, last 2 versions, not dead",
23
24
  "source": "src/index.ts",
24
- "main": "dist/index.js",
25
- "module": "dist/index.module.js",
25
+ "main": "dist/index.cjs.js",
26
+ "module": "dist/index.es.js",
27
+ "browser": "./dist/index.umd.js",
26
28
  "types": "dist/index.d.ts",
29
+ "exports": {
30
+ ".": {
31
+ "require": "./dist/index.cjs.js",
32
+ "import": "./dist/index.es.js",
33
+ "default": "./dist/index.umd.js"
34
+ },
35
+ "./dist/*": "./dist/*"
36
+ },
37
+ "files": [
38
+ "dist/"
39
+ ],
27
40
  "devDependencies": {
28
- "@parcel/packager-ts": "2.12.0",
29
- "@parcel/transformer-typescript-types": "2.12.0",
30
- "@typescript-eslint/eslint-plugin": "^7.11.0",
31
- "@typescript-eslint/parser": "^7.11.0",
32
- "eslint": "^7.32.0 || ^8.57.0",
33
- "eslint-config-airbnb-base": "^15.0.0",
34
- "eslint-plugin-import": "^2.29.1",
35
- "parcel": "^2.12.0",
36
- "typescript": "^5.4.5"
41
+ "@eslint/js": "9.22.0",
42
+ "@rollup/plugin-terser": "0.4.4",
43
+ "@types/node": "22.13.10",
44
+ "@typescript-eslint/eslint-plugin": "8.26.0",
45
+ "@typescript-eslint/parser": "8.26.0",
46
+ "eslint": "9.22.0",
47
+ "eslint-config-prettier": "10.1.1",
48
+ "eslint-import-resolver-typescript": "3.8.3",
49
+ "eslint-plugin-import": "2.31.0",
50
+ "globals": "16.0.0",
51
+ "prettier": "3.5.3",
52
+ "rimraf": "6.0.1",
53
+ "typescript": "5.8.2",
54
+ "vite": "6.2.1",
55
+ "vite-plugin-dts": "4.5.3",
56
+ "gsap": "3.12.7"
37
57
  },
38
58
  "keywords": [
39
59
  "marquee",
@@ -55,7 +75,6 @@
55
75
  "scrollTrigger",
56
76
  "breakpoints",
57
77
  "debounce",
58
- "typescript",
59
78
  "clone",
60
79
  "skew",
61
80
  "responsive",
@@ -1,37 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, ethnicity, level of experience, nationality, personal appearance, race, or religion.
6
-
7
- ## Our Standards
8
-
9
- Examples of behavior that contributes to creating a positive environment include:
10
-
11
- * Using welcoming language
12
- * Being respectful of differing viewpoints and experiences
13
- * Gracefully accepting constructive criticism
14
- * Focusing on what is best for the community
15
-
16
- Examples of unacceptable behavior by participants include:
17
-
18
- * Trolling, insulting/derogatory comments, and personal or political attacks
19
- * Public or private harassment
20
- * Publishing others' private information, such as a physical or electronic address, without explicit permission
21
- * Other conduct which could reasonably be considered inappropriate in a professional setting
22
-
23
- ## Our Responsibilities
24
-
25
- Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
26
-
27
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
28
-
29
- ## Scope
30
-
31
- This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
32
-
33
- ## Enforcement
34
-
35
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident.
36
-
37
- Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
@@ -1 +0,0 @@
1
- {"mappings":"AAAA;IACE,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CAChC;AAED,qBAAM,cAAc;IAalB,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC;IAEnB,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC;gBAEhB,EAAE,OAAoB,EAAE,GAAE,qBAA0B;IAYhE,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK;IA4B9C,IAAI,aAET;IAEK,OAAO,aAUZ;CAqGH;AAED,eAAe,cAAc,CAAC","sources":["src/src/index.ts","src/index.ts"],"sourcesContent":[null,"interface MarqueeContentOptions {\n element?: string | HTMLElement;\n}\n\nclass MarqueeContent {\n private readonly gsap: never;\n\n private readonly MM: never;\n\n private timeline: never;\n\n private readonly element: HTMLElement | null;\n\n private resizeObserver: ResizeObserver;\n\n private animationFrame: number | null = null;\n\n static gsap: never;\n\n static ScrollTrigger: never;\n\n constructor({ element = '.marquee' }: MarqueeContentOptions = {}) {\n this.gsap = MarqueeContent.gsap ?? (window as never).gsap;\n this.MM = this.gsap.matchMedia();\n this.timeline = null;\n this.element = typeof element === 'string' ? document.querySelector(element) : element;\n\n if (!this.element) return;\n\n this.resizeObserver = new ResizeObserver(MarqueeContent.debounce(this.update));\n this.resizeObserver.observe(this.element);\n }\n\n static registerGSAP(gsap: never, ScrollTrigger: never) {\n MarqueeContent.gsap = gsap;\n MarqueeContent.ScrollTrigger = ScrollTrigger;\n }\n\n private commonInit = () => {\n if (this.element) {\n this.clearTimeline();\n this.cloneElements();\n this.setBreakpoints();\n this.applySkew();\n\n this.timeline = this.createAnimation();\n }\n };\n\n private update = () => {\n if (this.animationFrame !== null) {\n cancelAnimationFrame(this.animationFrame);\n }\n\n this.animationFrame = requestAnimationFrame(() => {\n this.commonInit();\n\n MarqueeContent.ScrollTrigger.refresh();\n });\n };\n\n public init = () => {\n this.commonInit();\n };\n\n public destroy = () => {\n if (this.animationFrame !== null) {\n cancelAnimationFrame(this.animationFrame);\n }\n\n if (this.element) {\n this.clearTimeline();\n }\n\n this.resizeObserver?.disconnect();\n };\n\n private static debounce(func: (...args: never[]) => void) {\n let timer: number | null = null;\n\n return (...args: never[]) => {\n if (timer !== null) {\n cancelAnimationFrame(timer);\n }\n\n timer = requestAnimationFrame(() => func(...args));\n };\n }\n\n private createAnimation() {\n this.timeline?.kill();\n\n const timeline = this.gsap.timeline({\n scrollTrigger: {\n trigger: this.element,\n start: 'top bottom',\n end: 'bottom top',\n toggleActions: 'resume pause resume pause',\n onUpdate: (self: never) => {\n if (this.element?.dataset.mcDirection === 'ltr') {\n timeline.timeScale(-1);\n } else if (this.element?.dataset.mcDirection === 'auto') {\n timeline.timeScale(self.direction);\n }\n },\n },\n });\n\n this.MM.add(this.element?.dataset.mcBreakpoint, () => {\n const mcSpeed = parseFloat(this.element?.dataset.mcSpeed || '20');\n const speed = mcSpeed;\n\n timeline.to(this.element!.children, {\n duration: speed,\n x: '-100%',\n repeat: -1,\n ease: 'none',\n });\n\n timeline.totalProgress(0.5);\n\n return () => timeline?.kill();\n });\n\n return timeline;\n }\n\n private setBreakpoints() {\n if (this.element!.dataset.mcMax) {\n this.element!.dataset.mcBreakpoint = `(max-width: ${parseFloat(this.element!.dataset.mcMax) - 0.02}px)`;\n } else if (this.element!.dataset.mcMin) {\n this.element!.dataset.mcBreakpoint = `(min-width: ${this.element!.dataset.mcMin}px)`;\n } else {\n this.element!.dataset.mcBreakpoint = '';\n }\n }\n\n private clearTimeline() {\n this.timeline?.kill();\n this.timeline = null;\n this.gsap.set(this.element!.children, { clearProps: 'all' });\n }\n\n private cloneElements() {\n const removingClones = () => {\n while (this.element!.childElementCount > 1) {\n this.element!.removeChild(this.element!.lastChild as ChildNode);\n }\n };\n\n removingClones();\n\n this.MM.add(this.element!.dataset.mcBreakpoint, () => {\n const requiredQuantity = Math.ceil(this.element!.scrollWidth / this.element!.firstElementChild!.clientWidth + 2);\n\n if (this.element!.childElementCount < requiredQuantity) {\n const fragment = document.createDocumentFragment();\n const clones = Array.from({ length: requiredQuantity - 1 }, () => this.element!.firstElementChild!.cloneNode(true) as HTMLElement);\n\n clones.forEach((clone) => fragment.appendChild(clone));\n\n this.element!.appendChild(fragment);\n }\n\n return removingClones;\n });\n }\n\n private applySkew() {\n if (!this.element?.dataset.mcSkew) return;\n\n const { style } = this.element;\n\n style.transformOrigin = 'center center';\n style.transform = `skew(0deg, ${this.element.dataset.mcSkew}deg)`;\n }\n}\n\nexport default MarqueeContent;\n"],"names":[],"version":3,"file":"index.d.ts.map"}
package/dist/index.js DELETED
@@ -1,134 +0,0 @@
1
-
2
- function $parcel$defineInteropFlag(a) {
3
- Object.defineProperty(a, '__esModule', {value: true, configurable: true});
4
- }
5
-
6
- function $parcel$export(e, n, v, s) {
7
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
8
- }
9
-
10
- $parcel$defineInteropFlag(module.exports);
11
-
12
- $parcel$export(module.exports, "default", function () { return $a196c1ed25598f0e$export$2e2bcd8739ae039; });
13
- class $a196c1ed25598f0e$var$MarqueeContent {
14
- gsap;
15
- MM;
16
- timeline;
17
- element;
18
- resizeObserver;
19
- animationFrame = null;
20
- static gsap;
21
- static ScrollTrigger;
22
- constructor({ element: element = ".marquee" } = {}){
23
- this.gsap = $a196c1ed25598f0e$var$MarqueeContent.gsap ?? window.gsap;
24
- this.MM = this.gsap.matchMedia();
25
- this.timeline = null;
26
- this.element = typeof element === "string" ? document.querySelector(element) : element;
27
- if (!this.element) return;
28
- this.resizeObserver = new ResizeObserver($a196c1ed25598f0e$var$MarqueeContent.debounce(this.update));
29
- this.resizeObserver.observe(this.element);
30
- }
31
- static registerGSAP(gsap, ScrollTrigger) {
32
- $a196c1ed25598f0e$var$MarqueeContent.gsap = gsap;
33
- $a196c1ed25598f0e$var$MarqueeContent.ScrollTrigger = ScrollTrigger;
34
- }
35
- commonInit = ()=>{
36
- if (this.element) {
37
- this.clearTimeline();
38
- this.cloneElements();
39
- this.setBreakpoints();
40
- this.applySkew();
41
- this.timeline = this.createAnimation();
42
- }
43
- };
44
- update = ()=>{
45
- if (this.animationFrame !== null) cancelAnimationFrame(this.animationFrame);
46
- this.animationFrame = requestAnimationFrame(()=>{
47
- this.commonInit();
48
- $a196c1ed25598f0e$var$MarqueeContent.ScrollTrigger.refresh();
49
- });
50
- };
51
- init = ()=>{
52
- this.commonInit();
53
- };
54
- destroy = ()=>{
55
- if (this.animationFrame !== null) cancelAnimationFrame(this.animationFrame);
56
- if (this.element) this.clearTimeline();
57
- this.resizeObserver?.disconnect();
58
- };
59
- static debounce(func) {
60
- let timer = null;
61
- return (...args)=>{
62
- if (timer !== null) cancelAnimationFrame(timer);
63
- timer = requestAnimationFrame(()=>func(...args));
64
- };
65
- }
66
- createAnimation() {
67
- this.timeline?.kill();
68
- const timeline = this.gsap.timeline({
69
- scrollTrigger: {
70
- trigger: this.element,
71
- start: "top bottom",
72
- end: "bottom top",
73
- toggleActions: "resume pause resume pause",
74
- onUpdate: (self)=>{
75
- if (this.element?.dataset.mcDirection === "ltr") timeline.timeScale(-1);
76
- else if (this.element?.dataset.mcDirection === "auto") timeline.timeScale(self.direction);
77
- }
78
- }
79
- });
80
- this.MM.add(this.element?.dataset.mcBreakpoint, ()=>{
81
- const mcSpeed = parseFloat(this.element?.dataset.mcSpeed || "20");
82
- const speed = mcSpeed;
83
- timeline.to(this.element.children, {
84
- duration: speed,
85
- x: "-100%",
86
- repeat: -1,
87
- ease: "none"
88
- });
89
- timeline.totalProgress(0.5);
90
- return ()=>timeline?.kill();
91
- });
92
- return timeline;
93
- }
94
- setBreakpoints() {
95
- if (this.element.dataset.mcMax) this.element.dataset.mcBreakpoint = `(max-width: ${parseFloat(this.element.dataset.mcMax) - 0.02}px)`;
96
- else if (this.element.dataset.mcMin) this.element.dataset.mcBreakpoint = `(min-width: ${this.element.dataset.mcMin}px)`;
97
- else this.element.dataset.mcBreakpoint = "";
98
- }
99
- clearTimeline() {
100
- this.timeline?.kill();
101
- this.timeline = null;
102
- this.gsap.set(this.element.children, {
103
- clearProps: "all"
104
- });
105
- }
106
- cloneElements() {
107
- const removingClones = ()=>{
108
- while(this.element.childElementCount > 1)this.element.removeChild(this.element.lastChild);
109
- };
110
- removingClones();
111
- this.MM.add(this.element.dataset.mcBreakpoint, ()=>{
112
- const requiredQuantity = Math.ceil(this.element.scrollWidth / this.element.firstElementChild.clientWidth + 2);
113
- if (this.element.childElementCount < requiredQuantity) {
114
- const fragment = document.createDocumentFragment();
115
- const clones = Array.from({
116
- length: requiredQuantity - 1
117
- }, ()=>this.element.firstElementChild.cloneNode(true));
118
- clones.forEach((clone)=>fragment.appendChild(clone));
119
- this.element.appendChild(fragment);
120
- }
121
- return removingClones;
122
- });
123
- }
124
- applySkew() {
125
- if (!this.element?.dataset.mcSkew) return;
126
- const { style: style } = this.element;
127
- style.transformOrigin = "center center";
128
- style.transform = `skew(0deg, ${this.element.dataset.mcSkew}deg)`;
129
- }
130
- }
131
- var $a196c1ed25598f0e$export$2e2bcd8739ae039 = $a196c1ed25598f0e$var$MarqueeContent;
132
-
133
-
134
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;AAIA,MAAM;IACa,KAAY;IAEZ,GAAU;IAEnB,SAAgB;IAEP,QAA4B;IAErC,eAA+B;IAE/B,iBAAgC,KAAK;IAE7C,OAAO,KAAY;IAEnB,OAAO,cAAqB;IAE5B,YAAY,WAAE,UAAU,YAAmC,GAAG,CAAC,CAAC,CAAE;QAChE,IAAI,CAAC,IAAI,GAAG,qCAAe,IAAI,IAAI,AAAC,OAAiB,IAAI;QACzD,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU;QAC9B,IAAI,CAAC,QAAQ,GAAG;QAChB,IAAI,CAAC,OAAO,GAAG,OAAO,YAAY,WAAW,SAAS,aAAa,CAAC,WAAW;QAE/E,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QAEnB,IAAI,CAAC,cAAc,GAAG,IAAI,eAAe,qCAAe,QAAQ,CAAC,IAAI,CAAC,MAAM;QAC5E,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO;IAC1C;IAEA,OAAO,aAAa,IAAW,EAAE,aAAoB,EAAE;QACrD,qCAAe,IAAI,GAAG;QACtB,qCAAe,aAAa,GAAG;IACjC;IAEQ,aAAa;QACnB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,aAAa;YAClB,IAAI,CAAC,aAAa;YAClB,IAAI,CAAC,cAAc;YACnB,IAAI,CAAC,SAAS;YAEd,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,eAAe;QACtC;IACF,EAAE;IAEM,SAAS;QACf,IAAI,IAAI,CAAC,cAAc,KAAK,MAC1B,qBAAqB,IAAI,CAAC,cAAc;QAG1C,IAAI,CAAC,cAAc,GAAG,sBAAsB;YAC1C,IAAI,CAAC,UAAU;YAEf,qCAAe,aAAa,CAAC,OAAO;QACtC;IACF,EAAE;IAEK,OAAO;QACZ,IAAI,CAAC,UAAU;IACjB,EAAE;IAEK,UAAU;QACf,IAAI,IAAI,CAAC,cAAc,KAAK,MAC1B,qBAAqB,IAAI,CAAC,cAAc;QAG1C,IAAI,IAAI,CAAC,OAAO,EACd,IAAI,CAAC,aAAa;QAGpB,IAAI,CAAC,cAAc,EAAE;IACvB,EAAE;IAEF,OAAe,SAAS,IAAgC,EAAE;QACxD,IAAI,QAAuB;QAE3B,OAAO,CAAC,GAAG;YACT,IAAI,UAAU,MACZ,qBAAqB;YAGvB,QAAQ,sBAAsB,IAAM,QAAQ;QAC9C;IACF;IAEQ,kBAAkB;QACxB,IAAI,CAAC,QAAQ,EAAE;QAEf,MAAM,WAAW,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;YAClC,eAAe;gBACb,SAAS,IAAI,CAAC,OAAO;gBACrB,OAAO;gBACP,KAAK;gBACL,eAAe;gBACf,UAAU,CAAC;oBACT,IAAI,IAAI,CAAC,OAAO,EAAE,QAAQ,gBAAgB,OACxC,SAAS,SAAS,CAAC;yBACd,IAAI,IAAI,CAAC,OAAO,EAAE,QAAQ,gBAAgB,QAC/C,SAAS,SAAS,CAAC,KAAK,SAAS;gBAErC;YACF;QACF;QAEA,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,cAAc;YAC9C,MAAM,UAAU,WAAW,IAAI,CAAC,OAAO,EAAE,QAAQ,WAAW;YAC5D,MAAM,QAAQ;YAEd,SAAS,EAAE,CAAC,IAAI,CAAC,OAAO,CAAE,QAAQ,EAAE;gBAClC,UAAU;gBACV,GAAG;gBACH,QAAQ;gBACR,MAAM;YACR;YAEA,SAAS,aAAa,CAAC;YAEvB,OAAO,IAAM,UAAU;QACzB;QAEA,OAAO;IACT;IAEQ,iBAAiB;QACvB,IAAI,IAAI,CAAC,OAAO,CAAE,OAAO,CAAC,KAAK,EAC7B,IAAI,CAAC,OAAO,CAAE,OAAO,CAAC,YAAY,GAAG,CAAC,YAAY,EAAE,WAAW,IAAI,CAAC,OAAO,CAAE,OAAO,CAAC,KAAK,IAAI,KAAK,GAAG,CAAC;aAClG,IAAI,IAAI,CAAC,OAAO,CAAE,OAAO,CAAC,KAAK,EACpC,IAAI,CAAC,OAAO,CAAE,OAAO,CAAC,YAAY,GAAG,CAAC,YAAY,EAAE,IAAI,CAAC,OAAO,CAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;aAEpF,IAAI,CAAC,OAAO,CAAE,OAAO,CAAC,YAAY,GAAG;IAEzC;IAEQ,gBAAgB;QACtB,IAAI,CAAC,QAAQ,EAAE;QACf,IAAI,CAAC,QAAQ,GAAG;QAChB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAE,QAAQ,EAAE;YAAE,YAAY;QAAM;IAC5D;IAEQ,gBAAgB;QACtB,MAAM,iBAAiB;YACrB,MAAO,IAAI,CAAC,OAAO,CAAE,iBAAiB,GAAG,EACvC,IAAI,CAAC,OAAO,CAAE,WAAW,CAAC,IAAI,CAAC,OAAO,CAAE,SAAS;QAErD;QAEA;QAEA,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAE,OAAO,CAAC,YAAY,EAAE;YAC9C,MAAM,mBAAmB,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO,CAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAE,iBAAiB,CAAE,WAAW,GAAG;YAE9G,IAAI,IAAI,CAAC,OAAO,CAAE,iBAAiB,GAAG,kBAAkB;gBACtD,MAAM,WAAW,SAAS,sBAAsB;gBAChD,MAAM,SAAS,MAAM,IAAI,CAAC;oBAAE,QAAQ,mBAAmB;gBAAE,GAAG,IAAM,IAAI,CAAC,OAAO,CAAE,iBAAiB,CAAE,SAAS,CAAC;gBAE7G,OAAO,OAAO,CAAC,CAAC,QAAU,SAAS,WAAW,CAAC;gBAE/C,IAAI,CAAC,OAAO,CAAE,WAAW,CAAC;YAC5B;YAEA,OAAO;QACT;IACF;IAEQ,YAAY;QAClB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,QAAQ;QAEnC,MAAM,SAAE,KAAK,EAAE,GAAG,IAAI,CAAC,OAAO;QAE9B,MAAM,eAAe,GAAG;QACxB,MAAM,SAAS,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IACnE;AACF;IAEA,2CAAe","sources":["src/index.ts"],"sourcesContent":["interface MarqueeContentOptions {\n element?: string | HTMLElement;\n}\n\nclass MarqueeContent {\n private readonly gsap: never;\n\n private readonly MM: never;\n\n private timeline: never;\n\n private readonly element: HTMLElement | null;\n\n private resizeObserver: ResizeObserver;\n\n private animationFrame: number | null = null;\n\n static gsap: never;\n\n static ScrollTrigger: never;\n\n constructor({ element = '.marquee' }: MarqueeContentOptions = {}) {\n this.gsap = MarqueeContent.gsap ?? (window as never).gsap;\n this.MM = this.gsap.matchMedia();\n this.timeline = null;\n this.element = typeof element === 'string' ? document.querySelector(element) : element;\n\n if (!this.element) return;\n\n this.resizeObserver = new ResizeObserver(MarqueeContent.debounce(this.update));\n this.resizeObserver.observe(this.element);\n }\n\n static registerGSAP(gsap: never, ScrollTrigger: never) {\n MarqueeContent.gsap = gsap;\n MarqueeContent.ScrollTrigger = ScrollTrigger;\n }\n\n private commonInit = () => {\n if (this.element) {\n this.clearTimeline();\n this.cloneElements();\n this.setBreakpoints();\n this.applySkew();\n\n this.timeline = this.createAnimation();\n }\n };\n\n private update = () => {\n if (this.animationFrame !== null) {\n cancelAnimationFrame(this.animationFrame);\n }\n\n this.animationFrame = requestAnimationFrame(() => {\n this.commonInit();\n\n MarqueeContent.ScrollTrigger.refresh();\n });\n };\n\n public init = () => {\n this.commonInit();\n };\n\n public destroy = () => {\n if (this.animationFrame !== null) {\n cancelAnimationFrame(this.animationFrame);\n }\n\n if (this.element) {\n this.clearTimeline();\n }\n\n this.resizeObserver?.disconnect();\n };\n\n private static debounce(func: (...args: never[]) => void) {\n let timer: number | null = null;\n\n return (...args: never[]) => {\n if (timer !== null) {\n cancelAnimationFrame(timer);\n }\n\n timer = requestAnimationFrame(() => func(...args));\n };\n }\n\n private createAnimation() {\n this.timeline?.kill();\n\n const timeline = this.gsap.timeline({\n scrollTrigger: {\n trigger: this.element,\n start: 'top bottom',\n end: 'bottom top',\n toggleActions: 'resume pause resume pause',\n onUpdate: (self: never) => {\n if (this.element?.dataset.mcDirection === 'ltr') {\n timeline.timeScale(-1);\n } else if (this.element?.dataset.mcDirection === 'auto') {\n timeline.timeScale(self.direction);\n }\n },\n },\n });\n\n this.MM.add(this.element?.dataset.mcBreakpoint, () => {\n const mcSpeed = parseFloat(this.element?.dataset.mcSpeed || '20');\n const speed = mcSpeed;\n\n timeline.to(this.element!.children, {\n duration: speed,\n x: '-100%',\n repeat: -1,\n ease: 'none',\n });\n\n timeline.totalProgress(0.5);\n\n return () => timeline?.kill();\n });\n\n return timeline;\n }\n\n private setBreakpoints() {\n if (this.element!.dataset.mcMax) {\n this.element!.dataset.mcBreakpoint = `(max-width: ${parseFloat(this.element!.dataset.mcMax) - 0.02}px)`;\n } else if (this.element!.dataset.mcMin) {\n this.element!.dataset.mcBreakpoint = `(min-width: ${this.element!.dataset.mcMin}px)`;\n } else {\n this.element!.dataset.mcBreakpoint = '';\n }\n }\n\n private clearTimeline() {\n this.timeline?.kill();\n this.timeline = null;\n this.gsap.set(this.element!.children, { clearProps: 'all' });\n }\n\n private cloneElements() {\n const removingClones = () => {\n while (this.element!.childElementCount > 1) {\n this.element!.removeChild(this.element!.lastChild as ChildNode);\n }\n };\n\n removingClones();\n\n this.MM.add(this.element!.dataset.mcBreakpoint, () => {\n const requiredQuantity = Math.ceil(this.element!.scrollWidth / this.element!.firstElementChild!.clientWidth + 2);\n\n if (this.element!.childElementCount < requiredQuantity) {\n const fragment = document.createDocumentFragment();\n const clones = Array.from({ length: requiredQuantity - 1 }, () => this.element!.firstElementChild!.cloneNode(true) as HTMLElement);\n\n clones.forEach((clone) => fragment.appendChild(clone));\n\n this.element!.appendChild(fragment);\n }\n\n return removingClones;\n });\n }\n\n private applySkew() {\n if (!this.element?.dataset.mcSkew) return;\n\n const { style } = this.element;\n\n style.transformOrigin = 'center center';\n style.transform = `skew(0deg, ${this.element.dataset.mcSkew}deg)`;\n }\n}\n\nexport default MarqueeContent;\n"],"names":[],"version":3,"file":"index.js.map"}