@studiokyne/sk-motion 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -1
- package/dist/sk-motion.full.iife.min.js +18 -32
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -255,7 +255,24 @@ Variables CSS disponibles :
|
|
|
255
255
|
- `--sk-hover-underline-ease`
|
|
256
256
|
- `--sk-hover-underline-color`
|
|
257
257
|
|
|
258
|
-
|
|
258
|
+
Comportement et personnalisation
|
|
259
|
+
|
|
260
|
+
- L'underline est piloté par la taille de police : `--sk-hover-underline-gap` utilise des unités `em` dans le code (valeur par défaut : `clamp(0.08em, 0.12em, 0.32em)`). Cela permet à l'underline de rester proportionnel quand le `font-size` augmente.
|
|
261
|
+
- Pour garder une position visuelle fixe par rapport à la baseline, le pseudo-élément `::after` est positionné avec `bottom: calc(-1 * var(--sk-hover-underline-gap))`.
|
|
262
|
+
- Le composant ajoute une petite `padding-bottom` automatiquement pour éviter que le layout ne saute, mais la position visuelle réelle reste contrôlée par `--sk-hover-underline-gap`.
|
|
263
|
+
- L'animation se dévoile de gauche à droite au hover (origine contrôlée par `--sk-hover-underline-origin`) et se referme dans l'autre sens quand la souris quitte l'élément.
|
|
264
|
+
|
|
265
|
+
Exemples:
|
|
266
|
+
|
|
267
|
+
```css
|
|
268
|
+
.sk-hover-underline {
|
|
269
|
+
/* valeurs par défaut */
|
|
270
|
+
}
|
|
271
|
+
.sk-hover-underline.big-title {
|
|
272
|
+
--sk-hover-underline-gap: 0.25em; /* élargir l'écart pour les très gros titres */
|
|
273
|
+
--sk-hover-underline-thickness: 3px;
|
|
274
|
+
}
|
|
275
|
+
```
|
|
259
276
|
|
|
260
277
|
### Text reveal (lines)
|
|
261
278
|
|
|
@@ -1,63 +1,54 @@
|
|
|
1
1
|
(function(){function e(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var n={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},r={duration:.5,overwrite:!1,delay:0},i,a,o,s=1e8,c=1/s,l=Math.PI*2,u=l/4,d=0,f=Math.sqrt,p=Math.cos,m=Math.sin,h=function(e){return typeof e==`string`},g=function(e){return typeof e==`function`},_=function(e){return typeof e==`number`},v=function(e){return e===void 0},y=function(e){return typeof e==`object`},b=function(e){return e!==!1},x=function(){return typeof window<`u`},S=function(e){return g(e)||h(e)},C=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},w=Array.isArray,T=/random\([^)]+\)/g,E=/,\s*/g,D=/(?:-?\.?\d|\.)+/gi,O=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,k=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,A=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,j=/[+-]=-?[.\d]+/,M=/[^,'"\[\]\s]+/gi,N=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,P,F,I,L,R={},z={},B,V=function(e){return(z=q(e,R))&&Wn},ee=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},H=function(e,t){return!t&&console.warn(e)},te=function(e,t){return e&&(R[e]=t)&&z&&(z[e]=t)||R},ne=function(){return 0},re={suppressEvents:!0,isStart:!0,kill:!1},U={suppressEvents:!0,kill:!1},ie={suppressEvents:!0},ae={},W=[],oe={},se,ce={},le={},ue=30,de=[],fe=``,pe=function(e){var t=e[0],n,r;if(y(t)||g(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=de.length;r--&&!de[r].targetTest(t););n=de[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new $t(e[r],n)))||e.splice(r,1);return e},me=function(e){return e._gsap||pe(ct(e))[0]._gsap},G=function(e,t,n){return(n=e[t])&&g(n)?e[t]():v(n)&&e.getAttribute&&e.getAttribute(t)||n},he=function(e,t){return(e=e.split(`,`)).forEach(t)||e},K=function(e){return Math.round(e*1e5)/1e5||0},ge=function(e){return Math.round(e*1e7)/1e7||0},_e=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},ve=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},ye=function(){var e=W.length,t=W.slice(0),n,r;for(oe={},W.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},be=function(e){return!!(e._initted||e._startAt||e.add)},xe=function(e,t,n,r){W.length&&!a&&ye(),e.render(t,n,r||!!(a&&t<0&&be(e))),W.length&&!a&&ye()},Se=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(M).length<2?t:h(e)?e.trim():e},Ce=function(e){return e},we=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Te=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},q=function(e,t){for(var n in t)e[n]=t[n];return e},Ee=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=y(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},De=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},Oe=function(e){var t=e.parent||P,n=e.keyframes?Te(w(e.keyframes)):we;if(b(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},ke=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},Ae=function(e,t,n,r,i){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var a=e[r],o;if(i)for(o=t[i];a&&a[i]>o;)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},je=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Me=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ne=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},Pe=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},Fe=function(e,t,n,r){return e._startAt&&(a?e._startAt.revert(U):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},Ie=function e(t){return!t||t._ts&&e(t.parent)},Le=function(e){return e._repeat?Re(e._tTime,e=e.duration()+e._rDelay)*e:0},Re=function(e,t){var n=Math.floor(e=ge(e/t));return e&&n===e?n-1:n},ze=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Be=function(e){return e._end=ge(e._start+(e._tDur/Math.abs(e._ts||e._rts||c)||0))},Ve=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=ge(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Be(e),n._dirty||Ne(n,e)),e},He=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=ze(e.rawTime(),t),(!t._dur||nt(0,t.totalDuration(),n)-t._tTime>c)&&t.render(n,!0)),Ne(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=-c}},Ue=function(e,t,n,r){return t.parent&&Me(t),t._start=ge((_(n)?n:n||e!==P?$e(e,n,t):e._time)+t._delay),t._end=ge(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ae(e,t,`_first`,`_last`,e._sort?`_start`:0),qe(t)||(e._recent=t),r||He(e,t),e._ts<0&&Ve(e,e._tTime),e},We=function(e,t){return(R.ScrollTrigger||ee(`scrollTrigger`,t))&&R.ScrollTrigger.create(t,e)},Ge=function(e,t,n,r,i){if(ln(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!a&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&se!==Bt.frame)return W.push(e),e._lazy=[i,r],1},Ke=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},qe=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},Je=function(e,t,n,r){var i=e.ratio,o=t<0||!t&&(!e._start&&Ke(e)&&!(!e._initted&&qe(e))||(e._ts<0||e._dp._ts<0)&&!qe(e))?0:1,s=e._rDelay,l=0,u,d,f;if(s&&e._repeat&&(l=nt(0,e._tDur,t),d=Re(l,s),e._yoyo&&d&1&&(o=1-o),d!==Re(e._tTime,s)&&(i=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==i||a||r||e._zTime===c||!t&&e._zTime){if(!e._initted&&Ge(e,t,r,n,l))return;for(f=e._zTime,e._zTime=t||(n?c:0),n||=t&&!f,e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,u=e._pt;u;)u.r(o,u.d),u=u._next;t<0&&Fe(e,t,n,!0),e._onUpdate&&!n&&Tt(e,`onUpdate`),l&&e._repeat&&!n&&e.parent&&Tt(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&Me(e,1),!n&&!a&&(Tt(e,o?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},Ye=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start<t)return r;r=r._prev}},Xe=function(e,t,n,r){var i=e._repeat,a=ge(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:ge(a*(i+1)+e._rDelay*i):a,o>0&&!r&&Ve(e,e._tTime=e._tDur*o),e.parent&&Be(e),n||Ne(e.parent,e),e},Ze=function(e){return e instanceof tn?Ne(e):Xe(e,e._dur)},Qe={_start:0,endTime:ne,totalDuration:ne},$e=function e(t,n,r){var i=t.labels,a=t._recent||Qe,o=t.duration()>=s?a.endTime(!1):t._dur,c,l,u;return h(n)&&(isNaN(n)||n in i)?(l=n.charAt(0),u=n.substr(-1)===`%`,c=n.indexOf(`=`),l===`<`||l===`>`?(c>=0&&(n=n.replace(/=/,``)),(l===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(u?(c<0?a:r).totalDuration()/100:1)):c<0?(n in i||(i[n]=o),i[n]):(l=parseFloat(n.charAt(c-1)+n.substr(c+1)),u&&r&&(l=l/100*(w(r)?r[0]:r).totalDuration()),c>1?e(t,n.substr(0,c-1),r)+l:o+l)):n==null?o:+n},et=function(e,t,n){var r=_(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=b(s.vars.inherit)&&s.parent;a.immediateRender=b(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new gn(t[0],a,t[i+1])},tt=function(e,t){return e||e===0?t(e):t},nt=function(e,t,n){return n<e?e:n>t?t:n},rt=function(e,t){return!h(e)||!(t=N.exec(e))?``:t[1]},it=function(e,t,n){return tt(n,function(n){return nt(e,t,n)})},at=[].slice,ot=function(e,t){return e&&y(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&y(e[0]))&&!e.nodeType&&e!==F},st=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return h(e)&&!t||ot(e,1)?(r=n).push.apply(r,ct(e)):n.push(e)})||n},ct=function(e,t,n){return o&&!t&&o.selector?o.selector(e):h(e)&&!n&&(I||!Vt())?at.call((t||L).querySelectorAll(e),0):w(e)?st(e,n):ot(e)?at.call(e,0):e?[e]:[]},lt=function(e){return e=ct(e)[0]||H(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return ct(t,n.querySelectorAll?n:n===e?H(`Invalid scope`)||L.createElement(`div`):e)}},ut=function(e){return e.sort(function(){return .5-Math.random()})},dt=function(e){if(g(e))return e;var t=y(e)?e:{each:e},n=Jt(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,c=isNaN(r)||o,l=t.axis,u=r,d=r;return h(r)?u=d={center:.5,edges:.5,end:1}[r]||0:!o&&c&&(u=r[0],d=r[1]),function(e,o,p){var m=(p||t).length,h=a[m],g,_,v,y,b,x,S,C,w;if(!h){if(w=t.grid===`auto`?0:(t.grid||[1,s])[1],!w){for(S=-s;S<(S=p[w++].getBoundingClientRect().left)&&w<m;);w<m&&w--}for(h=a[m]=[],g=c?Math.min(w,m)*u-.5:r%w,_=w===s?0:c?m*d/w-.5:r/w|0,S=0,C=s,x=0;x<m;x++)v=x%w-g,y=_-(x/w|0),h[x]=b=l?Math.abs(l===`y`?y:v):f(v*v+y*y),b>S&&(S=b),b<C&&(C=b);r===`random`&&ut(h),h.max=S-C,h.min=C,h.v=m=(parseFloat(t.amount)||parseFloat(t.each)*(w>m?m-1:l?l===`y`?m/w:w:Math.max(w,m/w))||0)*(r===`edges`?-1:1),h.b=m<0?i-m:i,h.u=rt(t.amount||t.each)||0,n=n&&m<0?qt(n):n}return m=(h[e]-h.min)/h.max||0,ge(h.b+(n?n(m):m)*h.v)+h.u}},ft=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=ge(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(_(n)?0:rt(n))}},pt=function(e,t){var n=w(e),r,i;return!n&&y(e)&&(r=n=e.radius||s,e.values?(e=ct(e.values),(i=!_(e[0]))&&(r*=r)):e=ft(e.increment)),tt(t,n?g(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=s,c=0,l=e.length,u,d;l--;)i?(u=e[l].x-n,d=e[l].y-a,u=u*u+d*d):u=Math.abs(e[l]-n),u<o&&(o=u,c=l);return c=!r||o<=r?e[c]:t,i||c===t||_(t)?c:c+rt(t)}:ft(e))},mt=function(e,t,n,r){return tt(w(e)?!t:n===!0?!!(n=0):!r,function(){return w(e)?e[~~(Math.random()*e.length)]:(n||=1e-5)&&(r=n<1?10**((n+``).length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*r)/r})},ht=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduce(function(e,t){return t(e)},e)}},gt=function(e,t){return function(n){return e(parseFloat(n))+(t||rt(n))}},_t=function(e,t,n){return St(e,t,0,1,n)},vt=function(e,t,n){return tt(n,function(n){return e[~~t(n)]})},yt=function e(t,n,r){var i=n-t;return w(t)?vt(t,e(0,t.length),n):tt(r,function(e){return(i+(e-t)%i)%i+t})},bt=function e(t,n,r){var i=n-t,a=i*2;return w(t)?vt(t,e(0,t.length-1),n):tt(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},xt=function(e){return e.replace(T,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(E);return mt(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},St=function(e,t,n,r,i){var a=t-e,o=r-n;return tt(i,function(t){return n+((t-e)/a*o||0)})},Ct=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=h(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(w(t)&&!w(n)){for(u=[],d=t.length,f=d-2,l=1;l<d;l++)u.push(e(t[l-1],t[l]));d--,a=function(e){e*=d;var t=Math.min(f,~~e);return u[t](e-t)},r=n}else i||(t=q(w(t)?[]:{},t));if(!u){for(c in n)rn.call(s,t,c,`get`,n[c]);a=function(e){return Tn(e,s)||(o?t.p:t)}}}return tt(r,a)},wt=function(e,t,n){var r=e.labels,i=s,a,o,c;for(a in r)o=r[a]-t,o<0==!!n&&o&&i>(o=Math.abs(o))&&(c=a,i=o);return c},Tt=function(e,t,n){var r=e.vars,i=r[t],a=o,s=e._ctx,c,l,u;if(i)return c=r[t+`Params`],l=r.callbackScope||e,n&&W.length&&ye(),s&&(o=s),u=c?i.apply(l,c):i.call(l),o=a,u},Et=function(e){return Me(e),e.scrollTrigger&&e.scrollTrigger.kill(!!a),e.progress()<1&&Tt(e,`onInterrupt`),e},Dt,Ot=[],kt=function(e){if(e)if(e=!e.name&&e.default||e,x()||e.headless){var t=e.name,n=g(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:ne,render:Tn,add:rn,kill:Dn,modifier:En,rawVars:0},a={targetTest:0,get:0,getSetter:xn,aliases:{},register:0};if(Vt(),e!==r){if(ce[t])return;we(r,we(De(e,i),a)),q(r.prototype,q(i,De(e,a))),ce[r.prop=t]=r,e.targetTest&&(de.push(r),ae[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}te(t,r),e.register&&e.register(Wn,r,An)}else Ot.push(e)},At=255,jt={aqua:[0,At,At],lime:[0,At,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,At],navy:[0,0,128],white:[At,At,At],olive:[128,128,0],yellow:[At,At,0],orange:[At,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[At,0,0],pink:[At,192,203],cyan:[0,At,At],transparent:[At,At,At,0]},Mt=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*At+.5|0},Nt=function(e,t,n){var r=e?_(e)?[e>>16,e>>8&At,e&At]:0:jt.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),jt[e])r=jt[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&At,r&At,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&At,e&At]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(D),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=Mt(s+1/3,i,a),r[1]=Mt(s,i,a),r[2]=Mt(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(O),n&&r.length<4&&(r[3]=1),r}else r=e.match(D)||jt.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/At,a=r[1]/At,o=r[2]/At,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(a<o?6:0):u===a?(o-i)/f+2:(i-a)/f+4,s*=60),r[0]=~~(s+.5),r[1]=~~(c*100+.5),r[2]=~~(l*100+.5)),n&&r.length<4&&(r[3]=1),r},Pt=function(e){var t=[],n=[],r=-1;return e.split(It).forEach(function(e){var i=e.match(k)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},Ft=function(e,t,n){var r=``,i=(e+r).match(It),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=Nt(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=Pt(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(It,`1`).split(k),u=c.length-1;o<u;o++)r+=c[o]+(~s.indexOf(o)?i.shift()||a+`0,0,0,0)`:(l.length?l:i.length?i:n).shift());if(!c)for(c=e.split(It),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},It=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in jt)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),Lt=/hsl[a]?\(/,Rt=function(e){var t=e.join(` `),n;if(It.lastIndex=0,It.test(t))return n=Lt.test(t),e[1]=Ft(e[1],n),e[0]=Ft(e[0],n,Pt(e[1])),!0},zt,Bt=function(){var e=Date.now,t=500,n=33,r=e(),i=r,a=1e3/240,o=a,s=[],c,l,u,d,f,p,m=function u(m){var h=e()-i,g=m===!0,_,v,y,b;if((h>t||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p<s.length;p++)s[p](y,f,b,m)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(e){return f/(1e3/(e||60))},wake:function(){B&&(!I&&x()&&(F=I=window,L=F.document||{},R.gsap=Wn,(F.gsapVersions||=[]).push(Wn.version),V(z||F.GreenSockGlobals||!F.gsap&&F||{}),Ot.forEach(kt)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},zt=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),zt=0,l=ne},lagSmoothing:function(e,r){t=e||1/0,n=Math.min(r||33,t)},fps:function(e){a=1e3/(e||240),o=d.time*1e3+a},add:function(e,t,n){var r=t?function(t,n,i,a){e(t,n,i,a),d.remove(r)}:e;return d.remove(e),s[n?`unshift`:`push`](r),Vt(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),Vt=function(){return!zt&&Bt.wake()},J={},Ht=/^[\d.\-M][\d.\-,\s]/,Ut=/["']/g,Wt=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i<a;i++)s=n[i],o=i===a-1?s.length:s.lastIndexOf(`,`),c=s.substr(0,o),t[r]=isNaN(c)?c.replace(Ut,``).trim():+c,r=s.substr(o+1).trim();return t},Gt=function(e){var t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.indexOf(`(`,t);return e.substring(t,~r&&r<n?e.indexOf(`)`,n+1):n)},Kt=function(e){var t=(e+``).split(`(`),n=J[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[Wt(t[1])]:Gt(e).split(`,`).map(Se)):J._CE&&Ht.test(e)?J._CE(``,e):n},qt=function(e){return function(t){return 1-e(1-t)}},Jt=function(e,t){return e&&(g(e)?e:J[e]||Kt(e))||t},Yt=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return he(e,function(e){for(var t in J[e]=R[e]=i,J[a=e.toLowerCase()]=n,i)J[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=J[e+`.`+t]=i[t]}),i},Xt=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Zt=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/l*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*m((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:Xt(s);return a=l/a,c.config=function(n,r){return e(t,n,r)},c},Qt=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:Xt(r);return i.config=function(n){return e(t,n)},i};he(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;Yt(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),J.Linear.easeNone=J.none=J.Linear.easeIn,Yt(`Elastic`,Zt(`in`),Zt(`out`),Zt()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a<n?e*a*a:a<r?e*(a-1.5/t)**2+.75:a<i?e*(a-=2.25/t)*a+.9375:e*(a-2.625/t)**2+.984375};Yt(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),Yt(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Yt(`Circ`,function(e){return-(f(1-e*e)-1)}),Yt(`Sine`,function(e){return e===1?1:-p(e*u)+1}),Yt(`Back`,Qt(`in`),Qt(`out`),Qt()),J.SteppedEase=J.steps=R.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-c;return function(e){return((r*nt(0,a,e)|0)+i)*n}}},r.ease=J[`quad.out`],he(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return fe+=e+`,`+e+`Params,`});var $t=function(e,t){this.id=d++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:G,this.set=t?t.getSetter:xn},en=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,Xe(this,+e.duration,1,1),this.data=e.data,o&&(this._ctx=o,o.data.push(this)),zt||Bt.wake()}var t=e.prototype;return t.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,Xe(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(Vt(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Ve(this,e),!n._dp||n.parent||He(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&Ue(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===c||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),xe(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Le(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+Le(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?Re(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-c?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?ze(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-c?0:this._rts,this.totalTime(nt(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),Be(this),Pe(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Vt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==c&&(this._tTime-=c)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=ge(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Ue(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(b(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ze(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=ie);var t=a;return a=e,be(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),a=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,Ze(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,Ze(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime($e(this,e),b(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,b(t)),this._dur||(this._zTime=-c),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-c:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-c,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n<this.endTime(!0)-c)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=g(e)?e:Ce,a=function(){var e=t.then;t.then=null,n&&n(),g(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Et(this)},e}();we(en.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:-c,_prom:0,_ps:!1,_rts:1});var tn=function(r){t(i,r);function i(t,n){var i;return t===void 0&&(t={}),i=r.call(this,t)||this,i.labels={},i.smoothChildTiming=!!t.smoothChildTiming,i.autoRemoveChildren=!!t.autoRemoveChildren,i._sort=b(t.sortChildren),P&&Ue(t.parent||P,e(i),n),t.reversed&&i.reverse(),t.paused&&i.paused(!0),t.scrollTrigger&&We(e(i),t.scrollTrigger),i}var o=i.prototype;return o.to=function(e,t,n){return et(0,arguments,this),this},o.from=function(e,t,n){return et(1,arguments,this),this},o.fromTo=function(e,t,n,r){return et(2,arguments,this),this},o.set=function(e,t,n){return t.duration=0,t.parent=this,Oe(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new gn(e,t,$e(this,n),1),this},o.call=function(e,t,n){return Ue(this,gn.delayedCall(0,e,t),n)},o.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new gn(e,n,$e(this,i)),this},o.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Oe(n).immediateRender=b(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},o.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Oe(r).immediateRender=b(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},o.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,o=this._dur,s=e<=0?0:ge(e),l=this._zTime<0!=e<0&&(this._initted||!o),u,d,f,p,m,h,g,_,v,y,b,x;if(this!==P&&s>i&&e>=0&&(s=i),s!==this._tTime||n||l){if(r!==this._time&&o&&(s+=this._time-r,e+=this._time-r),u=s,v=this._start,_=this._ts,h=!_,l&&(o||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(b=this._yoyo,m=o+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(m*100+e,t,n);if(u=ge(s%m),s===i?(p=this._repeat,u=o):(y=ge(s/m),p=~~y,p&&p===y&&(u=o,p--),u>o&&(u=o)),y=Re(this._tTime,m),!r&&this._tTime&&y!==p&&this._tTime-y*m-this._dur<=0&&(y=p),b&&p&1&&(u=o-u,x=1),p!==y&&!this._lock){var S=b&&y&1,C=S===(b&&p&1);if(p<y&&(S=!S),r=S?0:s%o?o:s,this._lock=1,this.render(r||(x?0:ge(p*m)),t,!o)._lock=0,this._tTime=s,!t&&this.parent&&Tt(this,`onRepeat`),this.vars.repeatRefresh&&!x&&(this.invalidate()._lock=1,y=p),r&&r!==this._time||h!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(o=this._dur,i=this._tDur,C&&(this._lock=2,r=S?o:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!x&&this.invalidate()),this._lock=0,!this._ts&&!h))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(g=Ye(this,ge(r),ge(u)),g&&(s-=u-(u=g._start))),this._tTime=s,this._time=u,this._act=!!_,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&s&&o&&!t&&!y&&(Tt(this,`onStart`),this._tTime!==s))return this;if(u>=r&&e>=0)for(d=this._first;d;){if(f=d._next,(d._act||u>=d._start)&&d._ts&&g!==d){if(d.parent!==this)return this.render(e,t,n);if(d.render(d._ts>0?(u-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(u-d._start)*d._ts,t,n),u!==this._time||!this._ts&&!h){g=0,f&&(s+=this._zTime=-c);break}}d=f}else{d=this._last;for(var w=e<0?e:u;d;){if(f=d._prev,(d._act||w<=d._end)&&d._ts&&g!==d){if(d.parent!==this)return this.render(e,t,n);if(d.render(d._ts>0?(w-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(w-d._start)*d._ts,t,n||a&&be(d)),u!==this._time||!this._ts&&!h){g=0,f&&(s+=this._zTime=w?-c:c);break}}d=f}}if(g&&!t&&(this.pause(),g.render(u>=r?0:-c)._zTime=u>=r?1:-1,this._ts))return this._start=v,Be(this),this.render(e,t,n);this._onUpdate&&!t&&Tt(this,`onUpdate`,!0),(s===i&&this._tTime>=this.totalDuration()||!s&&r)&&(v===this._start||Math.abs(_)!==Math.abs(this._ts))&&(this._lock||((e||!o)&&(s===i&&this._ts>0||!s&&this._ts<0)&&Me(this,1),!t&&!(e<0&&!r)&&(s||r||!i)&&(Tt(this,s===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&this._prom())))}return this},o.add=function(e,t){var n=this;if(_(t)||(t=$e(this,t,e)),!(e instanceof en)){if(w(e))return e.forEach(function(e){return n.add(e,t)}),this;if(h(e))return this.addLabel(e,t);if(g(e))e=gn.delayedCall(0,e);else return this}return this===e?this:Ue(this,e,t)},o.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-s);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof gn?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},o.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},o.remove=function(e){return h(e)?this.removeLabel(e):g(e)?this.killTweensOf(e):(e.parent===this&&je(this,e),e===this._recent&&(this._recent=this._last),Ne(this))},o.totalTime=function(e,t){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ge(Bt.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),r.prototype.totalTime.call(this,e,t),this._forcing=0,this):this._tTime},o.addLabel=function(e,t){return this.labels[e]=$e(this,t),this},o.removeLabel=function(e){return delete this.labels[e],this},o.addPause=function(e,t,n){var r=gn.delayedCall(0,t||ne,n);return r.data=`isPause`,this._hasPause=1,Ue(this,r,$e(this,e))},o.removePause=function(e){var t=this._first;for(e=$e(this,e);t;)t._start===e&&t.data===`isPause`&&Me(t),t=t._next},o.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)sn!==r[i]&&r[i].kill(e,t);return this},o.getTweensOf=function(e,t){for(var n=[],r=ct(e),i=this._first,a=_(t),o;i;)i instanceof gn?ve(i._targets,r)&&(a?(!sn||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},o.tweenTo=function(e,t){t||={};var n=this,r=$e(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,l=i.immediateRender,u,d=gn.to(n,we({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||c,onStart:function(){if(n.pause(),!u){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());d._dur!==e&&Xe(d,e,0,1).render(d._time,!0,!0),u=1}o&&o.apply(d,s||[])}},t));return l?d.render(0):d},o.tweenFromTo=function(e,t,n){return this.tweenTo(t,we({startAt:{time:$e(this,e)}},n))},o.recent=function(){return this._recent},o.nextLabel=function(e){return e===void 0&&(e=this._time),wt(this,$e(this,e))},o.previousLabel=function(e){return e===void 0&&(e=this._time),wt(this,$e(this,e),1)},o.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+c)},o.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=ge(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return Ne(this)},o.invalidate=function(e){var t=this._first;for(this._lock=0;t;)t.invalidate(e),t=t._next;return r.prototype.invalidate.call(this,e)},o.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Ne(this)},o.totalDuration=function(e){var t=0,n=this,r=n._last,i=s,a,o,c;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(c=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,Ue(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!c&&!n._dp||c&&c.smoothChildTiming)&&(n._start+=ge(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;Xe(n,n===P&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},i.updateRoot=function(e){if(P._ts&&(xe(P,ze(e,P)),se=Bt.frame),Bt.frame>=ue){ue+=n.autoSleep||120;var t=P._first;if((!t||!t._ts)&&n.autoSleep&&Bt._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||Bt.sleep()}}},i}(en);we(tn.prototype,{_lock:0,_hasPause:0,_forcing:0});var nn=function(e,t,n,r,i,a,o){var s=new An(this._pt,e,t,0,1,wn,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=xt(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(A)||[];u=A.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?_e(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=A.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(j.test(r)||g)&&(s.e=0),this._pt=s,s},rn=function(e,t,r,i,a,o,s,c,l,u){g(i)&&(i=i(a||0,e,o));var d=e[t],f=r===`get`?g(d)?l?e[t.indexOf(`set`)||!g(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](l):e[t]():d:r,p=g(d)?l?yn:vn:_n,m;if(h(i)&&(~i.indexOf(`random(`)&&(i=xt(i)),i.charAt(1)===`=`&&(m=_e(f,i)+(rt(f)||0),(m||m===0)&&(i=m))),!u||f!==i||cn)return!isNaN(f*i)&&i!==``?(m=new An(this._pt,e,t,+f||0,i-(f||0),typeof d==`boolean`?Cn:Sn,0,p),l&&(m.fp=l),s&&m.modifier(s,this,e),this._pt=m):(!d&&!(t in e)&&ee(t,i),nn.call(this,e,t,f,i,p,c||n.stringFilter,l))},an=function(e,t,n,r,i){if(g(e)&&(e=pn(e,i,t,n,r)),!y(e)||e.style&&e.nodeType||w(e)||C(e))return h(e)?pn(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=pn(e[o],i,t,n,r);return a},on=function(e,t,n,r,i,a){var o,s,c,l;if(ce[e]&&(o=new ce[e]).init(i,o.rawVars?t[e]:an(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new An(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==Dt))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},sn,cn,ln=function e(t,n,o){var l=t.vars,u=l.ease,d=l.startAt,f=l.immediateRender,p=l.lazy,m=l.onUpdate,h=l.runBackwards,g=l.yoyoEase,_=l.keyframes,v=l.autoRevert,y=t._dur,x=t._startAt,S=t._targets,C=t.parent,w=C&&C.data===`nested`?C.vars.targets:S,T=t._overwrite===`auto`&&!i,E=t.timeline,D=l.easeReverse||g,O,k,A,j,M,N,F,I,L,R,z,B,V;if(E&&(!_||!u)&&(u=`none`),t._ease=Jt(u,r.ease),t._rEase=D&&(Jt(D)||t._ease),t._from=!E&&!!l.runBackwards,t._from&&(t.ratio=1),!E||_&&!l.stagger){if(I=S[0]?me(S[0]).harness:0,B=I&&l[I.prop],O=De(l,ae),x&&(x._zTime<0&&x.progress(1),n<0&&h&&f&&!v?x.render(-1,!0):x.revert(h&&y?U:re),x._lazy=0),d){if(Me(t._startAt=gn.set(S,we({data:`isStart`,overwrite:!1,parent:C,immediateRender:!0,lazy:!x&&b(p),startAt:null,delay:0,onUpdate:m&&function(){return Tt(t,`onUpdate`)},stagger:0},d))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(a||!f&&!v)&&t._startAt.revert(U),f&&y&&n<=0&&o<=0){n&&(t._zTime=n);return}}else if(h&&y&&!x){if(n&&(f=!1),A=we({overwrite:!1,data:`isFromStart`,lazy:f&&!x&&b(p),immediateRender:f,stagger:0,parent:C},O),B&&(A[I.prop]=B),Me(t._startAt=gn.set(S,A)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(a?t._startAt.revert(U):t._startAt.render(-1,!0)),t._zTime=n,!f)e(t._startAt,c,c);else if(!n)return}for(t._pt=t._ptCache=0,p=y&&b(p)||p&&!y,k=0;k<S.length;k++){if(M=S[k],F=M._gsap||pe(S)[k]._gsap,t._ptLookup[k]=R={},oe[F.id]&&W.length&&ye(),z=w===S?k:w.indexOf(M),I&&(L=new I).init(M,B||O,t,z,w)!==!1&&(t._pt=j=new An(t._pt,M,L.name,0,1,L.render,L,0,L.priority),L._props.forEach(function(e){R[e]=j}),L.priority&&(N=1)),!I||B)for(A in O)ce[A]&&(L=on(A,O,t,z,M,w))?L.priority&&(N=1):R[A]=j=rn.call(t,M,A,`get`,O[A],z,w,0,l.stringFilter);t._op&&t._op[k]&&t.kill(M,t._op[k]),T&&t._pt&&(sn=t,P.killTweensOf(M,R,t.globalTime(n)),V=!t.parent,sn=0),t._pt&&p&&(oe[F.id]=1)}N&&kn(t),t._onInit&&t._onInit(t)}t._onUpdate=m,t._initted=(!t._op||t._pt)&&!V,_&&n<=0&&E.render(s,!0,!0)},un=function(e,t,n,r,i,a,o,s){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],l,u,d,f;if(!c)for(c=e._ptCache[t]=[],d=e._ptLookup,f=e._targets.length;f--;){if(l=d[f][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return cn=1,e.vars[t]=`+=0`,ln(e,o),cn=0,s?H(t+` not eligible for reset. Try splitting into individual properties`):1;c.push(l)}for(f=c.length;f--;)u=c[f],l=u._pt||u,l.s=(r||r===0)&&!i?r:l.s+(r||0)+a*l.c,l.c=n-l.s,u.e&&=K(n)+rt(u.e),u.b&&=l.s+rt(u.b)},dn=function(e,t){var n=e[0]?me(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=q({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},fn=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(w(t))o=n[e]||(n[e]=[]),t.forEach(function(e,n){return o.push({t:n/(t.length-1)*100,v:e,e:i})});else for(a in t)o=n[a]||(n[a]=[]),a===`ease`||o.push({t:parseFloat(e),v:t[a],e:i})},pn=function(e,t,n,r,i){return g(e)?e.call(t,n,r,i):h(e)&&~e.indexOf(`random(`)?xt(e):e},mn=fe+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,hn={};he(mn+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return hn[e]=1});var gn=function(r){t(o,r);function o(t,a,o,s){var l;typeof a==`number`&&(o.duration=a,a=o,o=null),l=r.call(this,s?a:Oe(a))||this;var u=l.vars,d=u.duration,f=u.delay,p=u.immediateRender,m=u.stagger,h=u.overwrite,g=u.keyframes,v=u.defaults,x=u.scrollTrigger,T=a.parent||P,E=(w(t)||C(t)?_(t[0]):`length`in a)?[t]:ct(t),D,O,k,A,j,M,N,F;if(l._targets=E.length?pe(E):H(`GSAP target `+t+` not found. https://gsap.com`,!n.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=h,g||m||S(d)||S(f)){a=l.vars;var I=a.easeReverse||a.yoyoEase;if(D=l.timeline=new tn({data:`nested`,defaults:v||{},targets:T&&T.data===`nested`?T.vars.targets:E}),D.kill(),D.parent=D._dp=e(l),D._start=0,m||S(d)||S(f)){if(A=E.length,N=m&&dt(m),y(m))for(j in m)~mn.indexOf(j)&&(F||={},F[j]=m[j]);for(O=0;O<A;O++)k=De(a,hn),k.stagger=0,I&&(k.easeReverse=I),F&&q(k,F),M=E[O],k.duration=+pn(d,e(l),O,M,E),k.delay=(+pn(f,e(l),O,M,E)||0)-l._delay,!m&&A===1&&k.delay&&(l._delay=f=k.delay,l._start+=f,k.delay=0),D.to(M,k,N?N(O,M,E):0),D._ease=J.none;D.duration()?d=f=0:l.timeline=0}else if(g){Oe(we(D.vars.defaults,{ease:`none`})),D._ease=Jt(g.ease||a.ease||`none`);var L=0,R,z,B;if(w(g))g.forEach(function(e){return D.to(E,e,`>`)}),D.duration();else{for(j in k={},g)j===`ease`||j===`easeEach`||fn(j,g[j],k,g.easeEach);for(j in k)for(R=k[j].sort(function(e,t){return e.t-t.t}),L=0,O=0;O<R.length;O++)z=R[O],B={ease:z.e,duration:(z.t-(O?R[O-1].t:0))/100*d},B[j]=z.v,D.to(E,B,L),L+=B.duration;D.duration()<d&&D.to({},{duration:d-D.duration()})}}d||l.duration(d=D.duration())}else l.timeline=0;return h===!0&&!i&&(sn=e(l),P.killTweensOf(E),sn=0),Ue(T,e(l),o),a.reversed&&l.reverse(),a.paused&&l.paused(!0),(p||!d&&!g&&l._start===ge(T._time)&&b(p)&&Ie(e(l))&&T.data!==`nested`)&&(l._tTime=-c,l.render(Math.max(0,-f)||0)),x&&We(e(l),x),l}var s=o.prototype;return s.render=function(e,t,n){var r=this._time,i=this._tDur,a=this._dur,o=e<0,s=e>i-c&&!o?i:e<c?0:e,l,u,d,f,p,m,h,g;if(!a)Je(this,e,t,n);else if(s!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==o||this._lazy){if(l=s,g=this.timeline,this._repeat){if(f=a+this._rDelay,this._repeat<-1&&o)return this.totalTime(f*100+e,t,n);if(l=ge(s%f),s===i?(d=this._repeat,l=a):(p=ge(s/f),d=~~p,d&&d===p?(l=a,d--):l>a&&(l=a)),m=this._yoyo&&d&1,m&&(l=a-l),p=Re(this._tTime,f),l===r&&!n&&this._initted&&d===p)return this._tTime=s,this;d!==p&&this.vars.repeatRefresh&&!m&&!this._lock&&l!==f&&this._initted&&(this._lock=n=1,this.render(ge(f*d),!0).invalidate()._lock=0)}if(!this._initted){if(Ge(this,o?e:l,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&d!==p))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var _=l<r;if(_!==this._inv){var v=_?r:a-r;this._inv=_,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=r,this._invRecip=v?(_?-1:1)/v:0,this._invScale=_?-this.ratio:1-this.ratio,this._invEase=_?this._rEase:this._ease}this.ratio=h=this._invRatio+this._invScale*this._invEase((l-this._invTime)*this._invRecip)}else this.ratio=h=this._ease(l/a);if(this._from&&(this.ratio=h=1-h),this._tTime=s,this._time=l,!this._act&&this._ts&&(this._act=1,this._lazy=0),!r&&s&&!t&&!p&&(Tt(this,`onStart`),this._tTime!==s))return this;for(u=this._pt;u;)u.r(h,u.d),u=u._next;g&&g.render(e<0?e:g._dur*g._ease(l/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(o&&Fe(this,e,t,n),Tt(this,`onUpdate`)),this._repeat&&d!==p&&this.vars.onRepeat&&!t&&this.parent&&Tt(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&Fe(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&Me(this,1),!t&&!(o&&!r)&&(s||r||m)&&(Tt(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&this._prom()))}return this},s.targets=function(){return this._targets},s.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),r.prototype.invalidate.call(this,e)},s.resetTo=function(e,t,n,r,i){zt||Bt.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||ln(this,a),o=this._ease(a/this._dur),un(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(Ve(this,0),this.parent||Ae(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},s.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Et(this):this.scrollTrigger&&this.scrollTrigger.kill(!!a),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,sn&&sn.vars.overwrite!==!0)._first||Et(this),this.parent&&n!==this.timeline.totalDuration()&&Xe(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?ct(e):r,o=this._ptLookup,s=this._pt,c,l,u,d,f,p,m;if((!t||t===`all`)&&ke(r,i))return t===`all`&&(this._pt=0),Et(this);for(c=this._op=this._op||[],t!==`all`&&(h(t)&&(f={},he(t,function(e){return f[e]=1}),t=f),t=dn(r,t)),m=r.length;m--;)if(~i.indexOf(r[m]))for(f in l=o[m],t===`all`?(c[m]=t,d=l,u={}):(u=c[m]=c[m]||{},d=t),d)p=l&&l[f],p&&((!(`kill`in p.d)||p.d.kill(f)===!0)&&je(this,p,`_pt`),delete l[f]),u!==`all`&&(u[f]=1);return this._initted&&!this._pt&&s&&Et(this),this},o.to=function(e,t){return new o(e,t,arguments[2])},o.from=function(e,t){return et(1,arguments)},o.delayedCall=function(e,t,n,r){return new o(t,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:t,onReverseComplete:t,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:r})},o.fromTo=function(e,t,n){return et(2,arguments)},o.set=function(e,t){return t.duration=0,t.repeatDelay||(t.repeat=0),new o(e,t)},o.killTweensOf=function(e,t,n){return P.killTweensOf(e,t,n)},o}(en);we(gn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),he(`staggerTo,staggerFrom,staggerFromTo`,function(e){gn[e]=function(){var t=new tn,n=at.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var _n=function(e,t,n){return e[t]=n},vn=function(e,t,n){return e[t](n)},yn=function(e,t,n,r){return e[t](r.fp,n)},bn=function(e,t,n){return e.setAttribute(t,n)},xn=function(e,t){return g(e[t])?vn:v(e[t])&&e.setAttribute?bn:_n},Sn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Cn=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},wn=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((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Tn=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},En=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},Dn=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?je(this,t,`_pt`):t.dep||(n=1),t=r;return!n},On=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},kn=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},An=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||Sn,this.d=o||this,this.set=s||_n,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=On,this.m=e,this.mt=n,this.tween=t},e}();he(fe+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return ae[e]=1}),R.TweenMax=R.TweenLite=gn,R.TimelineLite=R.TimelineMax=tn,P=new tn({sortChildren:!1,defaults:r,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),n.stringFilter=Rt;var jn=[],Mn={},Nn=[],Pn=0,Fn=0,In=function(e){return(Mn[e]||Nn).map(function(e){return e()})},Ln=function(){var e=Date.now(),t=[];e-Pn>2&&(In(`matchMediaInit`),jn.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=F.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),In(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),Pn=e,In(`matchMedia`))},Rn=function(){function e(e,t){this.selector=t&<(t),this.data=[],this._r=[],this.isReverted=!1,this.id=Fn++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){g(e)&&(n=t,t=e,e=g);var r=this,i=function(){var e=o,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=lt(n)),o=r,a=t.apply(r,arguments),g(a)&&r._r.push(a),o=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===g?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=o;o=null,e(this),o=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof gn&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof tn?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof gn)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=jn.length;r--;)jn[r].id===this.id&&jn.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),zn=function(){function e(e){this.contexts=[],this.scope=e,o&&o.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){y(e)||(e={matches:e});var r=new Rn(0,n||this.scope),i=r.conditions={},a,s,c;for(s in o&&!r.selector&&(r.selector=o.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)s===`all`?c=1:(a=F.matchMedia(e[s]),a&&(jn.indexOf(r)<0&&jn.push(r),(i[s]=a.matches)&&(c=1),a.addListener?a.addListener(Ln):a.addEventListener(`change`,Ln)));return c&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),Bn={registerPlugin:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(e){return kt(e)})},timeline:function(e){return new tn(e)},getTweensOf:function(e,t){return P.getTweensOf(e,t)},getProperty:function(e,t,n,r){h(e)&&(e=ct(e)[0]);var i=me(e||{}).get,a=n?Ce:Se;return n===`native`&&(n=``),e&&(t?a((ce[t]&&ce[t].get||i)(e,t,n,r)):function(t,n,r){return a((ce[t]&&ce[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=ct(e),e.length>1){var r=e.map(function(e){return Wn.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=ce[t],o=me(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Dt._pt=0,r.init(e,n?t+n:t,Dt,0,[e]),r.render(1,r),Dt._pt&&Tn(1,Dt)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=Wn.to(e,we((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return P.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Jt(e.ease,r.ease)),Ee(r,e||{})},config:function(e){return Ee(n,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!ce[e]&&!R[e]&&H(t+` effect requires `+e+` plugin.`)}),le[t]=function(e,t,r){return n(ct(e),we(t||{},i),r)},a&&(tn.prototype[t]=function(e,n,r){return this.add(le[t](e,y(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){J[e]=Jt(t)},parseEase:function(e,t){return arguments.length?Jt(e,t):J},getById:function(e){return P.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new tn(e),r,i;for(n.smoothChildTiming=b(e.smoothChildTiming),P.remove(n),n._dp=0,n._time=n._tTime=P._time,r=P._first;r;)i=r._next,(t||!(!r._dur&&r instanceof gn&&r.vars.onComplete===r._targets[0]))&&Ue(n,r,r._start-r._delay),r=i;return Ue(P,n,0),n},context:function(e,t){return e?new Rn(e,t):o},matchMedia:function(e){return new zn(e)},matchMediaRefresh:function(){return jn.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||Ln()},addEventListener:function(e,t){var n=Mn[e]||(Mn[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Mn[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:yt,wrapYoyo:bt,distribute:dt,random:mt,snap:pt,normalize:_t,getUnit:rt,clamp:it,splitColor:Nt,toArray:ct,selector:lt,mapRange:St,pipe:ht,unitize:gt,interpolate:Ct,shuffle:ut},install:V,effects:le,ticker:Bt,updateRoot:tn.updateRoot,plugins:ce,globalTimeline:P,core:{PropTween:An,globals:te,Tween:gn,Timeline:tn,Animation:en,getCache:me,_removeLinkedListItem:je,reverting:function(){return a},context:function(e){return e&&o&&(o.data.push(e),e._ctx=o),o},suppressOverwrites:function(e){return i=e}}};he(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return Bn[e]=gn[e]}),Bt.add(tn.updateRoot),Dt=Bn.to({},{duration:0});var Vn=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},Hn=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=Vn(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},Un=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(h(n)&&(r={},he(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}Hn(e,n)}}}},Wn=Bn.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)a?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,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)}},Un(`roundProps`,ft),Un(`modifiers`),Un(`snap`,pt))||Bn;gn.version=tn.version=Wn.version=`3.15.0`,B=1,x()&&Vt(),J.Power0,J.Power1,J.Power2,J.Power3,J.Power4,J.Linear,J.Quad,J.Cubic,J.Quart,J.Quint,J.Strong,J.Elastic,J.Back,J.SteppedEase,J.Bounce,J.Sine,J.Expo,J.Circ;var Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn=function(){return typeof window<`u`},$n={},er=180/Math.PI,tr=Math.PI/180,nr=Math.atan2,rr=1e8,ir=/([A-Z])/g,ar=/(left|right|width|margin|padding|x)/i,or=/[\s,\(]\S/,sr={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},cr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},lr=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ur=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},dr=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},fr=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},pr=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},mr=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},hr=function(e,t,n){return e.style[t]=n},gr=function(e,t,n){return e.style.setProperty(t,n)},_r=function(e,t,n){return e._gsap[t]=n},vr=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},yr=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},br=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},xr=`transform`,Sr=xr+`Origin`,Cr=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in $n&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=sr[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=Hr(i,e)}):this.tfm[t]=o.x?o[t]:Hr(i,t),t===Sr&&(this.tfm.zOrigin=o.zOrigin);else return sr.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(xr)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(Sr,n,``)),t=xr}(a||n)&&this.props.push(t,n,a[t])},wr=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Tr=function(){var e=this.props,t=this.target,n=t.style,r=t._gsap,i,a;for(i=0;i<e.length;i+=3)e[i+1]?e[i+1]===2?t[e[i]](e[i+2]):t[e[i]]=e[i+2]:e[i+2]?n[e[i]]=e[i+2]:n.removeProperty(e[i].substr(0,2)===`--`?e[i]:e[i].replace(ir,`-$1`).toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),t.setAttribute(`data-svg-origin`,this.svgo||``)),i=Zn(),(!i||!i.isStart)&&!n[xr]&&(wr(n),r.zOrigin&&n[Sr]&&(n[Sr]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},Er=function(e,t){var n={target:e,props:[],revert:Tr,save:Cr};return e._gsap||Wn.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},Dr,Or=function(e,t){var n=Kn.createElementNS?Kn.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):Kn.createElement(e);return n&&n.style?n:Kn.createElement(e)},kr=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(ir,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,jr(n)||n,1)||``},Ar=`O,Moz,ms,Ms,Webkit`.split(`,`),jr=function(e,t,n){var r=(t||Yn).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(Ar[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?Ar[i]:``)+e},Mr=function(){Qn()&&window.document&&(Gn=window,Kn=Gn.document,qn=Kn.documentElement,Yn=Or(`div`)||{style:{}},Or(`div`),xr=jr(xr),Sr=xr+`Origin`,Yn.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,Dr=!!jr(`perspective`),Zn=Wn.core.reverting,Jn=1)},Nr=function(e){var t=e.ownerSVGElement,n=Or(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),qn.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),qn.removeChild(n),i},Pr=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Fr=function(e){var t,n;try{t=e.getBBox()}catch{t=Nr(e),n=1}return t&&(t.width||t.height)||n||(t=Nr(e)),t&&!t.width&&!t.x&&!t.y?{x:+Pr(e,[`x`,`cx`,`x1`])||0,y:+Pr(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},Ir=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Fr(e))},Lr=function(e,t){if(t){var n=e.style,r;t in $n&&t!==Sr&&(t=xr),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(ir,`-$1`).toLowerCase())):n.removeAttribute(t)}},Rr=function(e,t,n,r,i,a){var o=new An(e._pt,t,n,0,1,a?mr:pr);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},zr={deg:1,rad:1,turn:1},Br={grid:1,flex:1},Vr=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=Yn.style,c=ar.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||zr[i]||zr[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&Ir(t),(p||o===`%`)&&($n[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],K(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Kn||!h.appendChild)&&(h=Kn.body),g=h._gsap,g&&p&&g.width&&c&&g.time===Bt.time&&!g.uncache)return K(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:Lr(t,n)}else (p||o===`%`)&&!Br[kr(h,`display`)]&&(s.position=kr(t,`position`)),h===t&&(s.position=`static`),h.appendChild(Yn),m=Yn[u],h.removeChild(Yn),s.position=`absolute`;return c&&p&&(g=me(h),g.time=Bt.time,g.width=h[u]),K(f?m*a/d:m&&a?d/m*a:0)},Hr=function(e,t,n,r){var i;return Jn||Mr(),t in sr&&t!==`transform`&&(t=sr[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),$n[t]&&t!==`transform`?(i=ei(e,r),i=t===`transformOrigin`?i.svg?i.origin:ti(kr(e,Sr))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=qr[t]&&qr[t](e,t,n)||kr(e,t)||G(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?Vr(e,t,i,n)+n:i},Ur=function(e,t,r,i){if(!r||r===`none`){var a=jr(t,e,1),o=a&&kr(e,a,1);o&&o!==r?(t=a,r=o):t===`borderColor`&&(r=kr(e,`borderTopColor`))}var s=new An(this._pt,e.style,t,0,1,wn),c=0,l=0,u,d,f,p,m,h,g,_,v,y,b,x;if(s.b=r,s.e=i,r+=``,i+=``,i.substring(0,6)===`var(--`&&(i=kr(e,i.substring(4,i.indexOf(`)`)))),i===`auto`&&(h=e.style[t],e.style[t]=i,i=kr(e,t)||i,h?e.style[t]=h:Lr(e,t)),u=[r,i],Rt(u),r=u[0],i=u[1],f=r.match(k)||[],x=i.match(k)||[],x.length){for(;d=k.exec(i);)g=d[0],v=i.substring(c,d.index),m?m=(m+1)%5:(v.substr(-5)===`rgba(`||v.substr(-5)===`hsla(`)&&(m=1),g!==(h=f[l++]||``)&&(p=parseFloat(h)||0,b=h.substr((p+``).length),g.charAt(1)===`=`&&(g=_e(p,g)+b),_=parseFloat(g),y=g.substr((_+``).length),c=k.lastIndex-y.length,y||(y=y||n.units[t]||b,c===i.length&&(i+=y,s.e+=y)),b!==y&&(p=Vr(e,t,h,y)||0),s._pt={_next:s._pt,p:v||l===1?v:`,`,s:p,c:_-p,m:m&&m<4||t===`zIndex`?Math.round:0});s.c=c<i.length?i.substring(c,i.length):``}else s.r=t===`display`&&i===`none`?mr:pr;return j.test(i)&&(s.e=0),this._pt=s,s},Wr={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},Gr=function(e){var t=e.split(` `),n=t[0],r=t[1]||`50%`;return(n===`top`||n===`bottom`||r===`left`||r===`right`)&&(e=n,n=r,r=e),t[0]=Wr[n]||n,t[1]=Wr[r]||r,t.join(` `)},Kr=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,r=n.style,i=t.u,a=n._gsap,o,s,c;if(i===`all`||i===!0)r.cssText=``,s=1;else for(i=i.split(`,`),c=i.length;--c>-1;)o=i[c],$n[o]&&(s=1,o=o===`transformOrigin`?Sr:xr),Lr(n,o);s&&(Lr(n,xr),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,ei(n,1),a.uncache=1,wr(r)))}},qr={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new An(e._pt,t,n,0,0,Kr);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Jr=[1,0,0,1,0,0],Yr={},Xr=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},Zr=function(e){var t=kr(e,xr);return Xr(t)?Jr:t.substr(7).match(O).map(K)},Qr=function(e,t){var n=e._gsap||me(e),r=e.style,i=Zr(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?Jr:i):(i===Jr&&!e.offsetParent&&e!==qn&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,qn.appendChild(e)),i=Zr(e),s?r.display=s:Lr(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):qn.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},$r=function(e,t,n,r,i,a){var o=e._gsap,s=i||Qr(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==Jr&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=Fr(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[Sr]=`0px 0px`,a&&(Rr(a,o,`xOrigin`,c,y),Rr(a,o,`yOrigin`,l,b),Rr(a,o,`xOffset`,u,o.xOffset),Rr(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},ei=function(e,t){var r=e._gsap||new $t(e);if(`x`in r&&!t&&!r.uncache)return r;var i=e.style,a=r.scaleX<0,o=`px`,s=`deg`,c=getComputedStyle(e),l=kr(e,Sr)||`0`,u=d=f=h=g=_=v=y=b=0,d,f,p=m=1,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,B,V;return r.svg=!!(e.getCTM&&Ir(e)),c.translate&&((c.translate!==`none`||c.scale!==`none`||c.rotate!==`none`)&&(i[xr]=(c.translate===`none`?``:`translate3d(`+(c.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(c.rotate===`none`?``:`rotate(`+c.rotate+`) `)+(c.scale===`none`?``:`scale(`+c.scale.split(` `).join(`,`)+`) `)+(c[xr]===`none`?``:c[xr])),i.scale=i.rotate=i.translate=`none`),C=Qr(e,r.svg),r.svg&&(r.uncache?(P=e.getBBox(),l=r.xOrigin-P.x+`px `+(r.yOrigin-P.y)+`px`,N=``):N=!t&&e.getAttribute(`data-svg-origin`),$r(e,N||l,!!N||r.originIsAbsolute,r.smooth!==!1,C)),x=r.xOrigin||0,S=r.yOrigin||0,C!==Jr&&(D=C[0],O=C[1],k=C[2],A=C[3],u=j=C[4],d=M=C[5],C.length===6?(p=Math.sqrt(D*D+O*O),m=Math.sqrt(A*A+k*k),h=D||O?nr(O,D)*er:0,v=k||A?nr(k,A)*er+h:0,v&&(m*=Math.abs(Math.cos(v*tr))),r.svg&&(u-=x-(x*D+S*k),d-=S-(x*O+S*A))):(V=C[6],z=C[7],I=C[8],L=C[9],R=C[10],B=C[11],u=C[12],d=C[13],f=C[14],w=nr(V,R),g=w*er,w&&(T=Math.cos(-w),E=Math.sin(-w),N=j*T+I*E,P=M*T+L*E,F=V*T+R*E,I=j*-E+I*T,L=M*-E+L*T,R=V*-E+R*T,B=z*-E+B*T,j=N,M=P,V=F),w=nr(-k,R),_=w*er,w&&(T=Math.cos(-w),E=Math.sin(-w),N=D*T-I*E,P=O*T-L*E,F=k*T-R*E,B=A*E+B*T,D=N,O=P,k=F),w=nr(O,D),h=w*er,w&&(T=Math.cos(w),E=Math.sin(w),N=D*T+O*E,P=j*T+M*E,O=O*T-D*E,M=M*T-j*E,D=N,j=P),g&&Math.abs(g)+Math.abs(h)>359.9&&(g=h=0,_=180-_),p=K(Math.sqrt(D*D+O*O+k*k)),m=K(Math.sqrt(M*M+V*V)),w=nr(j,M),v=Math.abs(w)>2e-4?w*er:0,b=B?1/(B<0?-B:B):0),r.svg&&(N=e.getAttribute(`transform`),r.forceCSS=e.setAttribute(`transform`,``)||!Xr(kr(e,xr)),N&&e.setAttribute(`transform`,N))),Math.abs(v)>90&&Math.abs(v)<270&&(a?(p*=-1,v+=h<=0?180:-180,h+=h<=0?180:-180):(m*=-1,v+=v<=0?180:-180)),t||=r.uncache,r.x=u-((r.xPercent=u&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+o,r.y=d-((r.yPercent=d&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+o,r.z=f+o,r.scaleX=K(p),r.scaleY=K(m),r.rotation=K(h)+s,r.rotationX=K(g)+s,r.rotationY=K(_)+s,r.skewX=v+s,r.skewY=y+s,r.transformPerspective=b+o,(r.zOrigin=parseFloat(l.split(` `)[2])||!t&&r.zOrigin||0)&&(i[Sr]=ti(l)),r.xOffset=r.yOffset=0,r.force3D=n.force3D,r.renderTransform=r.svg?ci:Dr?si:ri,r.uncache=0,r},ti=function(e){return(e=e.split(` `))[0]+` `+e[1]},ni=function(e,t,n){var r=rt(t);return K(parseFloat(t)+parseFloat(Vr(e,`x`,n+`px`,r)))+r},ri=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,si(e,t)},ii=`0deg`,ai=`0px`,oi=`) `,si=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==ii||l!==ii)){var x=parseFloat(l)*tr,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*tr,w=Math.cos(x),a=ni(_,a,S*w*-v),o=ni(_,o,-Math.sin(x)*-v),s=ni(_,s,C*w*-v+v)}h!==ai&&(y+=`perspective(`+h+oi),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==ai||o!==ai||s!==ai)&&(y+=s!==ai||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+oi),c!==ii&&(y+=`rotate(`+c+oi),l!==ii&&(y+=`rotateY(`+l+oi),u!==ii&&(y+=`rotateX(`+u+oi),(d!==ii||f!==ii)&&(y+=`skew(`+d+`, `+f+oi),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+oi),_.style[xr]=y||`translate(0, 0)`},ci=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=tr,c*=tr,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=tr,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=K(b),x=K(x),S=K(S),C=K(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=Vr(f,`x`,a,`px`),y=Vr(f,`y`,o,`px`)),(p||m||h||g)&&(v=K(v+p-(p*b+m*S)+h),y=K(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=K(v+r/100*w.width),y=K(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[xr]=w)},li=function(e,t,n,r,i){var a=360,o=h(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?er:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*rr)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*rr)%a-~~(s/a)*a)),e._pt=u=new An(e._pt,t,n,r,s,lr),u.e=c,u.u=`deg`,e._props.push(n),u},ui=function(e,t){for(var n in t)e[n]=t[n];return e},di=function(e,t,n){var r=ui({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[xr]=t,o=ei(n,1),Lr(n,xr),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[xr],a[xr]=t,o=ei(n,1),a[xr]=c),$n)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=rt(c),p=rt(l),u=f===p?parseFloat(c):Vr(n,s,c,p),d=parseFloat(l),e._pt=new An(e._pt,o,s,u,d-u,cr),e._pt.u=p||0,e._props.push(s));ui(o,r)};he(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});qr[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return Hr(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var fi={name:`css`,register:Mr,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,i,a){var o=this._props,s=e.style,c=r.vars.startAt,l,u,d,f,p,m,g,_,v,y,b,x,S,C,w,T,E;for(g in Jn||Mr(),this.styles=this.styles||Er(e),T=this.styles.props,this.tween=r,t)if(g!==`autoRound`&&(u=t[g],!(ce[g]&&on(g,t,r,i,e,a)))){if(p=typeof u,m=qr[g],p===`function`&&(u=u.call(r,i,e,a),p=typeof u),p===`string`&&~u.indexOf(`random(`)&&(u=xt(u)),m)m(this,e,g,u,r)&&(w=1);else if(g.substr(0,2)===`--`)l=(getComputedStyle(e).getPropertyValue(g)+``).trim(),u+=``,It.lastIndex=0,It.test(l)||(_=rt(l),v=rt(u),v?_!==v&&(l=Vr(e,g,l,v)+v):_&&(u+=_)),this.add(s,`setProperty`,l,u,i,a,0,0,g),o.push(g),T.push(g,0,s[g]);else if(p!==`undefined`){if(c&&g in c?(l=typeof c[g]==`function`?c[g].call(r,i,e,a):c[g],h(l)&&~l.indexOf(`random(`)&&(l=xt(l)),rt(l+``)||l===`auto`||(l+=n.units[g]||rt(Hr(e,g))||``),(l+``).charAt(1)===`=`&&(l=Hr(e,g))):l=Hr(e,g),f=parseFloat(l),y=p===`string`&&u.charAt(1)===`=`&&u.substr(0,2),y&&(u=u.substr(2)),d=parseFloat(u),g in sr&&(g===`autoAlpha`&&(f===1&&Hr(e,`visibility`)===`hidden`&&d&&(f=0),T.push(`visibility`,0,s.visibility),Rr(this,s,`visibility`,f?`inherit`:`hidden`,d?`inherit`:`hidden`,!d)),g!==`scale`&&g!==`transform`&&(g=sr[g],~g.indexOf(`,`)&&(g=g.split(`,`)[0]))),b=g in $n,b){if(this.styles.save(g),E=u,p===`string`&&u.substring(0,6)===`var(--`){if(u=kr(e,u.substring(4,u.indexOf(`)`))),u.substring(0,5)===`calc(`){var D=e.style.perspective;e.style.perspective=u,u=kr(e,`perspective`),D?e.style.perspective=D:Lr(e,`perspective`)}d=parseFloat(u)}if(x||(S=e._gsap,S.renderTransform&&!t.parseTransform||ei(e,t.parseTransform),C=t.smoothOrigin!==!1&&S.smooth,x=this._pt=new An(this._pt,s,xr,0,1,S.renderTransform,S,0,-1),x.dep=1),g===`scale`)this._pt=new An(this._pt,S,`scaleY`,S.scaleY,(y?_e(S.scaleY,y+d):d)-S.scaleY||0,cr),this._pt.u=0,o.push(`scaleY`,g),g+=`X`;else if(g===`transformOrigin`){T.push(Sr,0,s[Sr]),u=Gr(u),S.svg?$r(e,u,0,C,0,this):(v=parseFloat(u.split(` `)[2])||0,v!==S.zOrigin&&Rr(this,S,`zOrigin`,S.zOrigin,v),Rr(this,s,g,ti(l),ti(u)));continue}else if(g===`svgOrigin`){$r(e,u,1,C,0,this);continue}else if(g in Yr){li(this,S,g,f,y?_e(f,y+u):u);continue}else if(g===`smoothOrigin`){Rr(this,S,`smooth`,S.smooth,u);continue}else if(g===`force3D`){S[g]=u;continue}else if(g===`transform`){di(this,u,e);continue}}else g in s||(g=jr(g)||g);if(b||(d||d===0)&&(f||f===0)&&!or.test(u)&&g in s)_=(l+``).substr((f+``).length),d||=0,v=rt(u)||(g in n.units?n.units[g]:_),_!==v&&(f=Vr(e,g,l,v)),this._pt=new An(this._pt,b?S:s,g,f,(y?_e(f,y+d):d)-f,!b&&(v===`px`||g===`zIndex`)&&t.autoRound!==!1?fr:cr),this._pt.u=v||0,b&&E!==u?(this._pt.b=l,this._pt.e=E,this._pt.r=dr):_!==v&&v!==`%`&&(this._pt.b=l,this._pt.r=ur);else if(g in s)Ur.call(this,e,g,l,y?y+u:u);else if(g in e)this.add(e,g,l||e[g],y?y+u:u,i,a);else if(g!==`parseTransform`){ee(g,u);continue}b||(g in s?T.push(g,0,s[g]):typeof e[g]==`function`?T.push(g,2,e[g]()):T.push(g,1,l||e[g])),o.push(g)}}w&&kn(this)},render:function(e,t){if(t.tween._time||!Zn())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Hr,aliases:sr,getSetter:function(e,t,n){var r=sr[t];return r&&r.indexOf(`,`)<0&&(t=r),t in $n&&t!==Sr&&(e._gsap.x||Hr(e,`x`))?n&&Xn===n?t===`scale`?vr:_r:(Xn=n||{})&&(t===`scale`?yr:br):e.style&&!v(e.style[t])?hr:~t.indexOf(`-`)?gr:xn(e,t)},core:{_removeProperty:Lr,_getMatrix:Qr}};Wn.utils.checkPrefix=jr,Wn.core.getStyleSaver=Er,(function(e,t,r,i){var a=he(e+`,`+t+`,`+r,function(e){$n[e]=1});he(t,function(e){n.units[e]=`deg`,Yr[e]=1}),sr[a[13]]=e+`,`+t,he(i,function(e){var t=e.split(`:`);sr[t[1]]=a[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),he(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){n.units[e]=`px`}),Wn.registerPlugin(fi);var pi=Wn.registerPlugin(fi)||Wn;pi.core.Tween;function mi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hi(e,t,n){return t&&mi(e.prototype,t),n&&mi(e,n),e}var gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki=function(){return gi||typeof window<`u`&&(gi=window.gsap)&&gi.registerPlugin&&gi},Ai=1,ji=[],Y=[],Mi=[],Ni=Date.now,Pi=function(e,t){return t},Fi=function(){var e=wi.core,t=e.bridge||{},n=e._scrollers,r=e._proxies;n.push.apply(n,Y),r.push.apply(r,Mi),Y=n,Mi=r,Pi=function(e,n){return t[e](n)}},Ii=function(e,t){return~Mi.indexOf(e)&&Mi[Mi.indexOf(e)+1][t]},Li=function(e){return!!~Ti.indexOf(e)},Ri=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:r!==!1,capture:!!i})},zi=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},Bi=`scrollLeft`,Vi=`scrollTop`,Hi=function(){return Ei&&Ei.isPressed||Y.cache++},Ui=function(e,t){var n=function n(r){if(r||r===0){Ai&&(vi.history.scrollRestoration=`manual`);var i=Ei&&Ei.isPressed;r=n.v=Math.round(r)||(Ei&&Ei.iOS?1:0),e(r),n.cacheID=Y.cache,i&&Pi(`ss`,r)}else (t||Y.cache!==n.cacheID||Pi(`ref`))&&(n.cacheID=Y.cache,n.v=e());return n.v+n.offset};return n.offset=0,e&&n},Wi={s:Bi,p:`left`,p2:`Left`,os:`right`,os2:`Right`,d:`width`,d2:`Width`,a:`x`,sc:Ui(function(e){return arguments.length?vi.scrollTo(e,Gi.sc()):vi.pageXOffset||yi[Bi]||bi[Bi]||xi[Bi]||0})},Gi={s:Vi,p:`top`,p2:`Top`,os:`bottom`,os2:`Bottom`,d:`height`,d2:`Height`,a:`y`,op:Wi,sc:Ui(function(e){return arguments.length?vi.scrollTo(Wi.sc(),e):vi.pageYOffset||yi[Vi]||bi[Vi]||xi[Vi]||0})},Ki=function(e,t){return(t&&t._ctx&&t._ctx.selector||gi.utils.toArray)(e)[0]||(typeof e==`string`&&gi.config().nullTargetWarn!==!1?console.warn(`Element not found:`,e):null)},qi=function(e,t){for(var n=t.length;n--;)if(t[n]===e||t[n].contains(e))return!0;return!1},Ji=function(e,t){var n=t.s,r=t.sc;Li(e)&&(e=yi.scrollingElement||bi);var i=Y.indexOf(e),a=r===Gi.sc?1:2;!~i&&(i=Y.push(e)-1),Y[i+a]||Ri(e,`scroll`,Hi);var o=Y[i+a],s=o||(Y[i+a]=Ui(Ii(e,n),!0)||(Li(e)?r:Ui(function(t){return arguments.length?e[n]=t:e[n]})));return s.target=e,o||(s.smooth=gi.getProperty(e,`scrollBehavior`)===`smooth`),s},Yi=function(e,t,n){var r=e,i=e,a=Ni(),o=a,s=t||50,c=Math.max(500,s*3),l=function(e,t){var c=Ni();t||c-a>s?(i=r,r=e,o=a,a=c):n?r+=e:r=i+(e-i)/(c-o)*(a-o)};return{update:l,reset:function(){i=r=n?0:r,o=a=0},getVelocity:function(e){var t=o,s=i,u=Ni();return(e||e===0)&&e!==r&&l(e),a===o||u-o>c?0:(r+(n?s:-s))/((n?u:a)-t)*1e3}}},Xi=function(e,t){return t&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Zi=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},Qi=function(){wi=gi.core.globals().ScrollTrigger,wi&&wi.core&&Fi()},$i=function(e){return gi=e||ki(),!_i&&gi&&typeof document<`u`&&document.body&&(vi=window,yi=document,bi=yi.documentElement,xi=yi.body,Ti=[vi,yi,bi,xi],gi.utils.clamp,Oi=gi.core.context||function(){},Ci=`onpointerenter`in xi?`pointer`:`mouse`,Si=ea.isTouch=vi.matchMedia&&vi.matchMedia(`(hover: none), (pointer: coarse)`).matches?1:`ontouchstart`in vi||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Di=ea.eventTypes=(`ontouchstart`in bi?`touchstart,touchmove,touchcancel,touchend`:`onpointerdown`in bi?`pointerdown,pointermove,pointercancel,pointerup`:`mousedown,mousemove,mouseup,mouseup`).split(`,`),setTimeout(function(){return Ai=0},500),_i=1),wi||Qi(),_i};Wi.op=Gi,Y.cache=0;var ea=function(){function e(e){this.init(e)}var t=e.prototype;return t.init=function(e){_i||$i(gi)||console.warn(`Please gsap.registerPlugin(Observer)`),wi||Qi();var t=e.tolerance,n=e.dragMinimum,r=e.type,i=e.target,a=e.lineHeight,o=e.debounce,s=e.preventDefault,c=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,p=e.onDragStart,m=e.onDragEnd,h=e.onDrag,g=e.onPress,_=e.onRelease,v=e.onRight,y=e.onLeft,b=e.onUp,x=e.onDown,S=e.onChangeX,C=e.onChangeY,w=e.onChange,T=e.onToggleX,E=e.onToggleY,D=e.onHover,O=e.onHoverEnd,k=e.onMove,A=e.ignoreCheck,j=e.isNormalizer,M=e.onGestureStart,N=e.onGestureEnd,P=e.onWheel,F=e.onEnable,I=e.onDisable,L=e.onClick,R=e.scrollSpeed,z=e.capture,B=e.allowClicks,V=e.lockAxis,ee=e.onLockAxis;this.target=i=Ki(i)||bi,this.vars=e,u&&=gi.utils.toArray(u),t||=1e-9,n||=0,d||=1,R||=1,r||=`wheel,touch,pointer`,o=o!==!1,a||=parseFloat(vi.getComputedStyle(xi).lineHeight)||22;var H,te,ne,re,U,ie,ae,W=this,oe=0,se=0,ce=e.passive||!s&&e.passive!==!1,le=Ji(i,Wi),ue=Ji(i,Gi),de=le(),fe=ue(),pe=~r.indexOf(`touch`)&&!~r.indexOf(`pointer`)&&Di[0]===`pointerdown`,me=Li(i),G=i.ownerDocument||yi,he=[0,0,0],K=[0,0,0],ge=0,_e=function(){return ge=Ni()},ve=function(e,t){return(W.event=e)&&u&&qi(e.target,u)||t&&pe&&e.pointerType!==`touch`||A&&A(e,t)},ye=function(){W._vx.reset(),W._vy.reset(),te.pause(),c&&c(W)},be=function(){var e=W.deltaX=Zi(he),n=W.deltaY=Zi(K),r=Math.abs(e)>=t,i=Math.abs(n)>=t;w&&(r||i)&&w(W,e,n,he,K),r&&(v&&W.deltaX>0&&v(W),y&&W.deltaX<0&&y(W),S&&S(W),T&&W.deltaX<0!=oe<0&&T(W),oe=W.deltaX,he[0]=he[1]=he[2]=0),i&&(x&&W.deltaY>0&&x(W),b&&W.deltaY<0&&b(W),C&&C(W),E&&W.deltaY<0!=se<0&&E(W),se=W.deltaY,K[0]=K[1]=K[2]=0),(re||ne)&&(k&&k(W),ne&&=(p&&ne===1&&p(W),h&&h(W),0),re=!1),ie&&!(ie=!1)&&ee&&ee(W),U&&=(P(W),!1),H=0},xe=function(e,t,n){he[n]+=e,K[n]+=t,W._vx.update(e),W._vy.update(t),o?H||=requestAnimationFrame(be):be()},Se=function(e,t){V&&!ae&&(W.axis=ae=Math.abs(e)>Math.abs(t)?`x`:`y`,ie=!0),ae!==`y`&&(he[2]+=e,W._vx.update(e,!0)),ae!==`x`&&(K[2]+=t,W._vy.update(t,!0)),o?H||=requestAnimationFrame(be):be()},Ce=function(e){if(!ve(e,1)){e=Xi(e,s);var t=e.clientX,r=e.clientY,i=t-W.x,a=r-W.y,o=W.isDragging;W.x=t,W.y=r,(o||(i||a)&&(Math.abs(W.startX-t)>=n||Math.abs(W.startY-r)>=n))&&(ne||=o?2:1,o||(W.isDragging=!0),Se(i,a))}},we=W.onPress=function(e){ve(e,1)||e&&e.button||(W.axis=ae=null,te.pause(),W.isPressed=!0,e=Xi(e),oe=se=0,W.startX=W.x=e.clientX,W.startY=W.y=e.clientY,W._vx.reset(),W._vy.reset(),Ri(j?i:G,Di[1],Ce,ce,!0),W.deltaX=W.deltaY=0,g&&g(W))},Te=W.onRelease=function(e){if(!ve(e,1)){zi(j?i:G,Di[1],Ce,!0);var t=!isNaN(W.y-W.startY),n=W.isDragging,r=n&&(Math.abs(W.x-W.startX)>3||Math.abs(W.y-W.startY)>3),a=Xi(e);!r&&t&&(W._vx.reset(),W._vy.reset(),s&&B&&gi.delayedCall(.08,function(){if(Ni()-ge>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(G.createEvent){var t=G.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,vi,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),W.isDragging=W.isGesturing=W.isPressed=!1,c&&n&&!j&&te.restart(!0),ne&&be(),m&&n&&m(W),_&&_(W,r)}},q=function(e){return e.touches&&e.touches.length>1&&(W.isGesturing=!0)&&M(e,W.isDragging)},Ee=function(){return(W.isGesturing=!1)||N(W)},De=function(e){if(!ve(e)){var t=le(),n=ue();xe((t-de)*R,(n-fe)*R,1),de=t,fe=n,c&&te.restart(!0)}},Oe=function(e){if(!ve(e)){e=Xi(e,s),P&&(U=!0);var t=(e.deltaMode===1?a:e.deltaMode===2?vi.innerHeight:1)*d;xe(e.deltaX*t,e.deltaY*t,0),c&&!j&&te.restart(!0)}},ke=function(e){if(!ve(e)){var t=e.clientX,n=e.clientY,r=t-W.x,i=n-W.y;W.x=t,W.y=n,re=!0,c&&te.restart(!0),(r||i)&&Se(r,i)}},Ae=function(e){W.event=e,D(W)},je=function(e){W.event=e,O(W)},Me=function(e){return ve(e)||Xi(e,s)&&L(W)};te=W._dc=gi.delayedCall(l||.25,ye).pause(),W.deltaX=W.deltaY=0,W._vx=Yi(0,50,!0),W._vy=Yi(0,50,!0),W.scrollX=le,W.scrollY=ue,W.isDragging=W.isGesturing=W.isPressed=!1,Oi(this),W.enable=function(e){return W.isEnabled||(Ri(me?G:i,`scroll`,Hi),r.indexOf(`scroll`)>=0&&Ri(me?G:i,`scroll`,De,ce,z),r.indexOf(`wheel`)>=0&&Ri(i,`wheel`,Oe,ce,z),(r.indexOf(`touch`)>=0&&Si||r.indexOf(`pointer`)>=0)&&(Ri(i,Di[0],we,ce,z),Ri(G,Di[2],Te),Ri(G,Di[3],Te),B&&Ri(i,`click`,_e,!0,!0),L&&Ri(i,`click`,Me),M&&Ri(G,`gesturestart`,q),N&&Ri(G,`gestureend`,Ee),D&&Ri(i,Ci+`enter`,Ae),O&&Ri(i,Ci+`leave`,je),k&&Ri(i,Ci+`move`,ke)),W.isEnabled=!0,W.isDragging=W.isGesturing=W.isPressed=re=ne=!1,W._vx.reset(),W._vy.reset(),de=le(),fe=ue(),e&&e.type&&we(e),F&&F(W)),W},W.disable=function(){W.isEnabled&&(ji.filter(function(e){return e!==W&&Li(e.target)}).length||zi(me?G:i,`scroll`,Hi),W.isPressed&&(W._vx.reset(),W._vy.reset(),zi(j?i:G,Di[1],Ce,!0)),zi(me?G:i,`scroll`,De,z),zi(i,`wheel`,Oe,z),zi(i,Di[0],we,z),zi(G,Di[2],Te),zi(G,Di[3],Te),zi(i,`click`,_e,!0),zi(i,`click`,Me),zi(G,`gesturestart`,q),zi(G,`gestureend`,Ee),zi(i,Ci+`enter`,Ae),zi(i,Ci+`leave`,je),zi(i,Ci+`move`,ke),W.isEnabled=W.isPressed=W.isDragging=!1,I&&I(W))},W.kill=W.revert=function(){W.disable();var e=ji.indexOf(W);e>=0&&ji.splice(e,1),Ei===W&&(Ei=0)},ji.push(W),j&&Li(i)&&(Ei=W),W.enable(f)},hi(e,[{key:`velocityX`,get:function(){return this._vx.getVelocity()}},{key:`velocityY`,get:function(){return this._vy.getVelocity()}}]),e}();ea.version=`3.15.0`,ea.create=function(e){return new ea(e)},ea.register=$i,ea.getAll=function(){return ji.slice()},ea.getById=function(e){return ji.filter(function(t){return t.vars.id===e})[0]},ki()&&gi.registerPlugin(ea);var X,ta,Z,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na=1,Pa=Date.now,Fa=Pa(),Ia=0,La=0,Ra=function(e,t,n){var r=eo(e)&&(e.substr(0,6)===`clamp(`||e.indexOf(`max`)>-1);return n[`_`+t+`Clamp`]=r,r?e.substr(6,e.length-7):e},za=function(e,t){return t&&(!eo(e)||e.substr(0,6)!==`clamp(`)?`clamp(`+e+`)`:e},Ba=function e(){return La&&requestAnimationFrame(e)},Va=function(){return fa=1},Ha=function(){return fa=0},Ua=function(e){return e},Wa=function(e){return Math.round(e*1e5)/1e5||0},Ga=function(){return typeof window<`u`},Ka=function(){return X||Ga()&&(X=window.gsap)&&X.registerPlugin&&X},qa=function(e){return!!~aa.indexOf(e)},Ja=function(e){return(e===`Height`?ka:Z[`inner`+e])||ra[`client`+e]||ia[`client`+e]},Ya=function(e){return Ii(e,`getBoundingClientRect`)||(qa(e)?function(){return Ss.width=Z.innerWidth,Ss.height=ka,Ss}:function(){return Eo(e)})},Xa=function(e,t,n){var r=n.d,i=n.d2,a=n.a;return(a=Ii(e,`getBoundingClientRect`))?function(){return a()[r]}:function(){return(t?Ja(i):e[`client`+i])||0}},Za=function(e,t){return!t||~Mi.indexOf(e)?Ya(e):function(){return Ss}},Qa=function(e,t){var n=t.s,r=t.d2,i=t.d,a=t.a;return Math.max(0,(n=`scroll`+r)&&(a=Ii(e,n))?a()-Ya(e)()[i]:qa(e)?(ra[n]||ia[n])-Ja(r):e[n]-e[`offset`+r])},$a=function(e,t){for(var n=0;n<_a.length;n+=3)(!t||~t.indexOf(_a[n+1]))&&e(_a[n],_a[n+1],_a[n+2])},eo=function(e){return typeof e==`string`},to=function(e){return typeof e==`function`},no=function(e){return typeof e==`number`},ro=function(e){return typeof e==`object`},io=function(e,t,n){return e&&e.progress(+!t)&&n&&e.pause()},ao=function(e,t,n){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return t(e,n)}):t(e,n);r&&r.totalTime&&(e.callbackAnimation=r)}},oo=Math.abs,so=`left`,co=`top`,lo=`right`,uo=`bottom`,fo=`width`,po=`height`,mo=`Right`,ho=`Left`,go=`Top`,_o=`Bottom`,vo=`padding`,yo=`margin`,bo=`Width`,xo=`Height`,So=`px`,Co=function(e){return Z.getComputedStyle(e.nodeType===Node.DOCUMENT_NODE?e.scrollingElement:e)},wo=function(e){var t=Co(e).position;e.style.position=t===`absolute`||t===`fixed`?t:`relative`},To=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Eo=function(e,t){var n=t&&Co(e)[pa]!==`matrix(1, 0, 0, 1, 0, 0)`&&X.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?e.getBoundingClientRect():e.scrollingElement.getBoundingClientRect();return n&&n.progress(0).kill(),r},Do=function(e,t){var n=t.d2;return e[`offset`+n]||e[`client`+n]||0},Oo=function(e){var t=[],n=e.labels,r=e.duration(),i;for(i in n)t.push(n[i]/r);return t},ko=function(e){return function(t){return X.utils.snap(Oo(e),t)}},Ao=function(e){var t=X.utils.snap(e),n=Array.isArray(e)&&e.slice(0).sort(function(e,t){return e-t});return n?function(e,r,i){i===void 0&&(i=.001);var a;if(!r)return t(e);if(r>0){for(e-=i,a=0;a<n.length;a++)if(n[a]>=e)return n[a];return n[a-1]}else for(a=n.length,e+=i;a--;)if(n[a]<=e)return n[a];return n[0]}:function(n,r,i){i===void 0&&(i=.001);var a=t(n);return!r||Math.abs(a-n)<i||a-n<0==r<0?a:t(r<0?n-e:n+e)}},jo=function(e){return function(t,n){return Ao(Oo(e))(t,n.direction)}},Mo=function(e,t,n,r){return n.split(`,`).forEach(function(n){return e(t,n,r)})},No=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:!r,capture:!!i})},Po=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},Fo=function(e,t,n){n&&=n.wheelHandler,n&&(e(t,`wheel`,n),e(t,`touchmove`,n))},Io={startColor:`green`,endColor:`red`,indent:0,fontSize:`16px`,fontWeight:`normal`},Lo={toggleActions:`play`,anticipatePin:0},Ro={top:0,left:0,center:.5,bottom:1,right:1},zo=function(e,t){if(eo(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 Ro?Ro[e]*t:~e.indexOf(`%`)?parseFloat(e)*t/100:parseFloat(e)||0)}return e},Bo=function(e,t,n,r,i,a,o,s){var c=i.startColor,l=i.endColor,u=i.fontSize,d=i.indent,f=i.fontWeight,p=na.createElement(`div`),m=qa(n)||Ii(n,`pinType`)===`fixed`,h=e.indexOf(`scroller`)!==-1,g=m?ia:n.tagName===`IFRAME`?n.contentDocument.body:n,_=e.indexOf(`start`)!==-1,v=_?c:l,y=`border-color:`+v+`;font-size:`+u+`;color:`+v+`;font-weight:`+f+`;pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;`;return y+=`position:`+((h||s)&&m?`fixed;`:`absolute;`),(h||s||!m)&&(y+=(r===Gi?lo:uo)+`:`+(a+parseFloat(d))+`px;`),o&&(y+=`box-sizing:border-box;text-align:left;width:`+o.offsetWidth+`px;`),p._isStart=_,p.setAttribute(`class`,`gsap-marker-`+e+(t?` marker-`+t:``)),p.style.cssText=y,p.innerText=t||t===0?e+`-`+t:e,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p[`offset`+r.op.d2],Vo(p,0,r,_),p},Vo=function(e,t,n,r){var i={display:`block`},a=n[r?`os2`:`p2`],o=n[r?`p2`:`os2`];e._isFlipped=r,i[n.a+`Percent`]=r?-100:0,i[n.a]=r?`1px`:0,i[`border`+a+bo]=1,i[`border`+o+bo]=0,i[n.p]=t+`px`,X.set(e,i)},Q=[],Ho={},Uo,Wo=function(){return Pa()-Ia>34&&(Uo||=requestAnimationFrame(ps))},Go=function(){(!xa||!xa.isPressed||xa.startX>ia.clientWidth)&&(Y.cache++,xa?Uo||=requestAnimationFrame(ps):ps(),Ia||Zo(`scrollStart`),Ia=Pa())},Ko=function(){wa=Z.innerWidth,Ca=Z.innerHeight},qo=function(e){Y.cache++,(e===!0||!da&&!ba&&!na.fullscreenElement&&!na.webkitFullscreenElement&&(!Sa||wa!==Z.innerWidth||Math.abs(Z.innerHeight-Ca)>Z.innerHeight*.25))&&oa.restart(!0)},Jo={},Yo=[],Xo=function e(){return Po($,`scrollEnd`,e)||ls(!0)},Zo=function(e){return Jo[e]&&Jo[e].map(function(e){return e()})||Yo},Qo=[],$o=function(e){for(var t=0;t<Qo.length;t+=5)(!e||Qo[t+4]&&Qo[t+4].query===e)&&(Qo[t].style.cssText=Qo[t+1],Qo[t].getBBox&&Qo[t].setAttribute(`transform`,Qo[t+2]||``),Qo[t+3].uncache=1)},es=function(){return Y.forEach(function(e){return to(e)&&++e.cacheID&&(e.rec=e())})},ts=function(e,t){var n;for(ma=0;ma<Q.length;ma++)n=Q[ma],n&&(!t||n._ctx===t)&&(e?n.kill(1):n.revert(!0,!0));Aa=!0,t&&$o(t),t||Zo(`revert`)},ns=function(e,t){Y.cache++,(t||!rs)&&Y.forEach(function(e){return to(e)&&e.cacheID++&&(e.rec=0)}),eo(e)&&(Z.history.scrollRestoration=Da=e)},rs,is=0,as,os=function(){if(as!==is){var e=as=is;requestAnimationFrame(function(){return e===is&&ls(!0)})}},ss=function(){ia.appendChild(Oa),ka=!xa&&Oa.offsetHeight||Z.innerHeight,ia.removeChild(Oa)},cs=function(e){return sa(`.gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end`).forEach(function(t){return t.style.display=e?`none`:`block`})},ls=function(e,t){if(ra=na.documentElement,ia=na.body,aa=[Z,na,ra,ia],Ia&&!e&&!Aa){No($,`scrollEnd`,Xo);return}ss(),rs=$.isRefreshing=!0,Aa||es();var n=Zo(`refreshInit`);va&&$.sort(),t||ts(),Y.forEach(function(e){to(e)&&(e.smooth&&(e.target.style.scrollBehavior=`auto`),e(0))}),Q.slice(0).forEach(function(e){return e.refresh()}),Aa=!1,Q.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?`offsetWidth`:`offsetHeight`,n=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-n),e.refresh()}}),ja=1,cs(!0),Q.forEach(function(e){var t=Qa(e.scroller,e._dir),n=e.vars.end===`max`||e._endClamp&&e.end>t,r=e._startClamp&&e.start>=t;(n||r)&&e.setPositions(r?t-1:e.start,n?Math.max(r?t:e.start+1,t):e.end,!0)}),cs(!1),ja=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),Y.forEach(function(e){to(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior=`smooth`}),e.rec&&e(e.rec))}),ns(Da,1),oa.pause(),is++,rs=2,ps(2),Q.forEach(function(e){return to(e.vars.onRefresh)&&e.vars.onRefresh(e)}),rs=$.isRefreshing=!1,Zo(`refresh`)},us=0,ds=1,fs,ps=function(e){if(e===2||!rs&&!Aa){$.isUpdating=!0,fs&&fs.update(0);var t=Q.length,n=Pa(),r=n-Fa>=50,i=t&&Q[0].scroll();if(ds=us>i?-1:1,rs||(us=i),r&&(Ia&&!fa&&n-Ia>200&&(Ia=0,Zo(`scrollEnd`)),la=Fa,Fa=n),ds<0){for(ma=t;ma-- >0;)Q[ma]&&Q[ma].update(0,r);ds=1}else for(ma=0;ma<t;ma++)Q[ma]&&Q[ma].update(0,r);$.isUpdating=!1}Uo=0},ms=[so,co,uo,lo,yo+_o,yo+mo,yo+go,yo+ho,`display`,`flexShrink`,`float`,`zIndex`,`gridColumnStart`,`gridColumnEnd`,`gridRowStart`,`gridRowEnd`,`gridArea`,`justifySelf`,`alignSelf`,`placeSelf`,`order`],hs=ms.concat([fo,po,`boxSizing`,`max`+bo,`max`+xo,`position`,yo,vo,vo+go,vo+mo,vo+_o,vo+ho]),gs=function(e,t,n){ys(n);var r=e._gsap;if(r.spacerIsNative)ys(r.spacerState);else if(e._gsap.swappedIn){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}e._gsap.swappedIn=!1},_s=function(e,t,n,r){if(!e._gsap.swappedIn){for(var i=ms.length,a=t.style,o=e.style,s;i--;)s=ms[i],a[s]=n[s];a.position=n.position===`absolute`?`absolute`:`relative`,n.display===`inline`&&(a.display=`inline-block`),o[uo]=o[lo]=`auto`,a.flexBasis=n.flexBasis||`auto`,a.overflow=`visible`,a.boxSizing=`border-box`,a[fo]=Do(e,Wi)+So,a[po]=Do(e,Gi)+So,a[vo]=o[yo]=o[co]=o[so]=`0`,ys(r),o[fo]=o[`max`+bo]=n[fo],o[po]=o[`max`+xo]=n[po],o[vo]=n[vo],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},vs=/([A-Z])/g,ys=function(e){if(e){var t=e.t.style,n=e.length,r=0,i,a;for((e.t._gsap||X.core.getCache(e.t)).uncache=1;r<n;r+=2)a=e[r+1],i=e[r],a?t[i]=a:t[i]&&t.removeProperty(i.replace(vs,`-$1`).toLowerCase())}},bs=function(e){for(var t=hs.length,n=e.style,r=[],i=0;i<t;i++)r.push(hs[i],n[hs[i]]);return r.t=e,r},xs=function(e,t,n){for(var r=[],i=e.length,a=n?8:0,o;a<i;a+=2)o=e[a],r.push(o,o in t?t[o]:e[a+1]);return r.t=e.t,r},Ss={left:0,top:0},Cs=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p){to(e)&&(e=e(s)),eo(e)&&e.substr(0,3)===`max`&&(e=d+(e.charAt(4)===`=`?zo(`0`+e.substr(3),n):0));var m=f?f.time():0,h,g,_;if(f&&f.seek(0),isNaN(e)||(e=+e),no(e))f&&(e=X.utils.mapRange(f.scrollTrigger.start,f.scrollTrigger.end,0,d,e)),o&&Vo(o,n,r,!0);else{to(t)&&(t=t(s));var v=(e||`0`).split(` `),y,b,x,S;_=Ki(t,s)||ia,y=Eo(_)||{},(!y||!y.left&&!y.top)&&Co(_).display===`none`&&(S=_.style.display,_.style.display=`block`,y=Eo(_),S?_.style.display=S:_.style.removeProperty(`display`)),b=zo(v[0],y[r.d]),x=zo(v[1]||`0`,n),e=y[r.p]-c[r.p]-l+b+i-x,o&&Vo(o,x,r,n-x<20||o._isStart&&x>20),n-=n-x}if(p&&(s[p]=e||-.001,e<0&&(e=0)),a){var C=e+n,w=a._isStart;h=`scroll`+r.d2,Vo(a,C,r,w&&C>20||!w&&(u?Math.max(ia[h],ra[h]):a.parentNode[h])<=C+1),u&&(c=Eo(o),u&&(a.style[r.op.p]=c[r.op.p]-r.op.m-a._offset+So))}return f&&_&&(h=Eo(_),f.seek(d),g=Eo(_),f._caScrollDist=h[r.p]-g[r.p],e=e/f._caScrollDist*d),f&&f.seek(m),f?e:Math.round(e)},ws=/(webkit|moz|length|cssText|inset)/i,Ts=function(e,t,n,r){if(e.parentNode!==t){var i=e.style,a,o;if(t===ia){for(a in e._stOrig=i.cssText,o=Co(e),o)!+a&&!ws.test(a)&&o[a]&&typeof i[a]==`string`&&a!==`0`&&(i[a]=o[a]);i.top=n,i.left=r}else i.cssText=e._stOrig;X.core.getCache(e).uncache=1,t.appendChild(e)}},Es=function(e,t,n){var r=t,i=r;return function(t){var a=Math.round(e());return a!==r&&a!==i&&Math.abs(a-r)>3&&Math.abs(a-i)>3&&(t=a,n&&n()),i=r,r=Math.round(t),r}},Ds=function(e,t,n){var r={};r[t.p]=`+=`+n,X.set(e,r)},Os=function(e,t){var n=Ji(e,t),r=`_scroll`+t.p2,i=function t(i,a,o,s,c){var l=t.tween,u=a.onComplete,d={};o||=n();var f=Es(n,o,function(){l.kill(),t.tween=0});return c=s&&c||0,s||=i-o,l&&l.kill(),a[r]=i,a.inherit=!1,a.modifiers=d,d[r]=function(){return f(o+s*l.ratio+c*l.ratio*l.ratio)},a.onUpdate=function(){Y.cache++,t.tween&&ps()},a.onComplete=function(){t.tween=0,u&&u.call(l)},l=t.tween=X.to(e,a),l};return e[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},No(e,`wheel`,n.wheelHandler),$.isTouch&&No(e,`touchmove`,n.wheelHandler),i},$=function(){function e(t,n){ta||e.register(X)||console.warn(`Please gsap.registerPlugin(ScrollTrigger)`),Ea(this),this.init(t,n)}var t=e.prototype;return t.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!La){this.update=this.refresh=this.kill=Ua;return}t=To(eo(t)||no(t)||t.nodeType?{trigger:t}:t,Lo);var r=t,i=r.onUpdate,a=r.toggleClass,o=r.id,s=r.onToggle,c=r.onRefresh,l=r.scrub,u=r.trigger,d=r.pin,f=r.pinSpacing,p=r.invalidateOnRefresh,m=r.anticipatePin,h=r.onScrubComplete,g=r.onSnapComplete,_=r.once,v=r.snap,y=r.pinReparent,b=r.pinSpacer,x=r.containerAnimation,S=r.fastScrollEnd,C=r.preventOverlaps,w=t.horizontal||t.containerAnimation&&t.horizontal!==!1?Wi:Gi,T=!l&&l!==0,E=Ki(t.scroller||Z),D=X.core.getCache(E),O=qa(E),k=(`pinType`in t?t.pinType:Ii(E,`pinType`)||O&&`fixed`)===`fixed`,A=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],j=T&&t.toggleActions.split(` `),M=`markers`in t?t.markers:Lo.markers,N=O?0:parseFloat(Co(E)[`border`+w.p2+bo])||0,P=this,F=t.onRefreshInit&&function(){return t.onRefreshInit(P)},I=Xa(E,O,w),L=Za(E,O),R=0,z=0,B=0,V=Ji(E,w),ee,H,te,ne,re,U,ie,ae,W,oe,se,ce,le,ue,de,fe,pe,me,G,he,K,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,q,Ee,De,Oe,ke,Ae,je,Me;if(P._startClamp=P._endClamp=!1,P._dir=w,m*=45,P.scroller=E,P.scroll=x?x.time.bind(x):V,ne=V(),P.vars=t,n||=t.animation,`refreshPriority`in t&&(va=1,t.refreshPriority===-9999&&(fs=P)),D.tweenScroll=D.tweenScroll||{top:Os(E,Gi),left:Os(E,Wi)},P.tweenTo=ee=D.tweenScroll[w.p],P.scrubDuration=function(e){Ee=no(e)&&e,Ee?q?q.duration(e):q=X.to(n,{ease:`expo`,totalProgress:`+=0`,inherit:!1,duration:Ee,paused:!0,onComplete:function(){return h&&h(P)}}):(q&&q.progress(1).kill(),q=0)},n&&(n.vars.lazy=!1,n._initted&&!P.isReverted||n.vars.immediateRender!==!1&&t.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),P.animation=n.pause(),n.scrollTrigger=P,P.scrubDuration(l),we=0,o||=n.vars.id),v&&((!ro(v)||v.push)&&(v={snapTo:v}),`scrollBehavior`in ia.style&&X.set(O?[ia,ra]:E,{scrollBehavior:`auto`}),Y.forEach(function(e){return to(e)&&e.target===(O?na.scrollingElement||ra:E)&&(e.smooth=!1)}),te=to(v.snapTo)?v.snapTo:v.snapTo===`labels`?ko(n):v.snapTo===`labelsDirectional`?jo(n):v.directional===!1?X.utils.snap(v.snapTo):function(e,t){return Ao(v.snapTo)(e,Pa()-z<500?0:t.direction)},De=v.duration||{min:.1,max:2},De=ro(De)?ca(De.min,De.max):ca(De,De),Oe=X.delayedCall(v.delay||Ee/2||.1,function(){var e=V(),t=Pa()-z<500,r=ee.tween;if((t||Math.abs(P.getVelocity())<10)&&!r&&!fa&&R!==e){var i=(e-U)/ue,a=n&&!T?n.totalProgress():i,o=t?0:(a-Te)/(Pa()-la)*1e3||0,s=X.utils.clamp(-i,1-i,oo(o/2)*o/.185),c=i+(v.inertia===!1?0:s),l,u,d=v,f=d.onStart,p=d.onInterrupt,m=d.onComplete;if(l=te(c,P),no(l)||(l=c),u=Math.max(0,Math.round(U+l*ue)),e<=ie&&e>=U&&u!==e){if(r&&!r._initted&&r.data<=oo(u-e))return;v.inertia===!1&&(s=l-i),ee(u,{duration:De(oo(Math.max(oo(c-a),oo(l-a))*.185/o/.05||0)),ease:v.ease||`power3`,data:oo(u-e),onInterrupt:function(){return Oe.restart(!0)&&p&&ao(P,p)},onComplete:function(){P.update(),R=V(),n&&!T&&(q?q.resetTo(`totalProgress`,l,n._tTime/n._tDur):n.progress(l)),we=Te=n&&!T?n.totalProgress():P.progress,g&&g(P),m&&ao(P,m)}},e,s*ue,u-e-s*ue),f&&ao(P,f,ee.tween)}}else P.isActive&&R!==e&&Oe.restart(!0)}).pause()),o&&(Ho[o]=P),u=P.trigger=Ki(u||d!==!0&&d),Me=u&&u._gsap&&u._gsap.stRevert,Me&&=Me(P),d=d===!0?u:Ki(d),eo(a)&&(a={targets:u,className:a}),d&&(f===!1||f===yo||(f=!f&&d.parentNode&&d.parentNode.style&&Co(d.parentNode).display===`flex`?!1:vo),P.pin=d,H=X.core.getCache(d),H.spacer?de=H.pinState:(b&&(b=Ki(b),b&&!b.nodeType&&(b=b.current||b.nativeElement),H.spacerIsNative=!!b,b&&(H.spacerState=bs(b))),H.spacer=me=b||na.createElement(`div`),me.classList.add(`pin-spacer`),o&&me.classList.add(`pin-spacer-`+o),H.pinState=de=bs(d)),t.force3D!==!1&&X.set(d,{force3D:!0}),P.spacer=me=H.spacer,Ce=Co(d),ve=Ce[f+w.os2],he=X.getProperty(d),K=X.quickSetter(d,w.a,So),_s(d,me,Ce),pe=bs(d)),M){ce=ro(M)?To(M,Io):Io,oe=Bo(`scroller-start`,o,E,w,ce,0),se=Bo(`scroller-end`,o,E,w,ce,0,oe),G=oe[`offset`+w.op.d2];var Ne=Ki(Ii(E,`content`)||E);ae=this.markerStart=Bo(`start`,o,Ne,w,ce,G,0,x),W=this.markerEnd=Bo(`end`,o,Ne,w,ce,G,0,x),x&&(je=X.quickSetter([ae,W],w.a,So)),!k&&!(Mi.length&&Ii(E,`fixedMarkers`)===!0)&&(wo(O?ia:E),X.set([oe,se],{force3D:!0}),be=X.quickSetter(oe,w.a,So),Se=X.quickSetter(se,w.a,So))}if(x){var Pe=x.vars.onUpdate,Fe=x.vars.onUpdateParams;x.eventCallback(`onUpdate`,function(){P.update(0,0,1),Pe&&Pe.apply(x,Fe||[])})}if(P.previous=function(){return Q[Q.indexOf(P)-1]},P.next=function(){return Q[Q.indexOf(P)+1]},P.revert=function(e,t){if(!t)return P.kill(!0);var r=e!==!1||!P.enabled,i=da;r!==P.isReverted&&(r&&(ke=Math.max(V(),P.scroll.rec||0),B=P.progress,Ae=n&&n.progress()),ae&&[ae,W,oe,se].forEach(function(e){return e.style.display=r?`none`:`block`}),r&&(da=P,P.update(r)),d&&(!y||!P.isActive)&&(r?gs(d,me,de):_s(d,me,Co(d),ye)),r||P.update(r),da=i,P.isReverted=r)},P.refresh=function(r,i,a,o){if(!((da||!P.enabled)&&!i)){if(d&&r&&Ia){No(e,`scrollEnd`,Xo);return}!rs&&F&&F(P),da=P,ee.tween&&!a&&(ee.tween.kill(),ee.tween=0),q&&q.pause(),p&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren?n.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):n.vars.immediateRender&&n.render(0,!0,!0)),P.isReverted||P.revert(!0,!0),P._subPinOffset=!1;var s=I(),l=L(),m=x?x.duration():Qa(E,w),h=ue<=.01||!ue,g=0,_=o||0,v=ro(a)?a.end:t.end,b=t.endTrigger||u,S=ro(a)?a.start:t.start||(t.start===0||!u?0:d?`0 0`:`0 100%`),C=P.pinnedContainer=t.pinnedContainer&&Ki(t.pinnedContainer,P),D=u&&Math.max(0,Q.indexOf(P))||0,A=D,j,H,te,ce,G,K,ve,be,Se,Ce,we,Te,Ee;for(M&&ro(a)&&(Te=X.getProperty(oe,w.p),Ee=X.getProperty(se,w.p));A-- >0;)K=Q[A],K.end||K.refresh(0,1)||(da=P),ve=K.pin,ve&&(ve===u||ve===d||ve===C)&&!K.isReverted&&(Ce||=[],Ce.unshift(K),K.revert(!0,!0)),K!==Q[A]&&(D--,A--);for(to(S)&&(S=S(P)),S=Ra(S,`start`,P),U=Cs(S,u,s,w,V(),ae,oe,P,l,N,k,m,x,P._startClamp&&`_startClamp`)||(d?-.001:0),to(v)&&(v=v(P)),eo(v)&&!v.indexOf(`+=`)&&(~v.indexOf(` `)?v=(eo(S)?S.split(` `)[0]:``)+v:(g=zo(v.substr(2),s),v=eo(S)?S:(x?X.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,U):U)+g,b=u)),v=Ra(v,`end`,P),ie=Math.max(U,Cs(v||(b?`100% 0`:m),b,s,w,V()+g,W,se,P,l,N,k,m,x,P._endClamp&&`_endClamp`))||-.001,g=0,A=D;A--;)K=Q[A]||{},ve=K.pin,ve&&K.start-K._pinPush<=U&&!x&&K.end>0&&(j=K.end-(P._startClamp?Math.max(0,K.start):K.start),(ve===u&&K.start-K._pinPush<U||ve===C)&&isNaN(S)&&(g+=j*(1-K.progress)),ve===d&&(_+=j));if(U+=g,ie+=g,P._startClamp&&(P._startClamp+=g),P._endClamp&&!rs&&(P._endClamp=ie||-.001,ie=Math.min(ie,Qa(E,w))),ue=ie-U||(U-=.01)&&.001,h&&(B=X.utils.clamp(0,1,X.utils.normalize(U,ie,ke))),P._pinPush=_,ae&&g&&(j={},j[w.a]=`+=`+g,C&&(j[w.p]=`-=`+V()),X.set([ae,W],j)),d&&!(ja&&P.end>=Qa(E,w)))j=Co(d),ce=w===Gi,te=V(),ge=parseFloat(he(w.a))+_,!m&&ie>1&&(we=(O?na.scrollingElement||ra:E).style,we={style:we,value:we[`overflow`+w.a.toUpperCase()]},O&&Co(ia)[`overflow`+w.a.toUpperCase()]!==`scroll`&&(we.style[`overflow`+w.a.toUpperCase()]=`scroll`)),_s(d,me,j),pe=bs(d),H=Eo(d,!0),be=k&&Ji(E,ce?Wi:Gi)(),f?(ye=[f+w.os2,ue+_+So],ye.t=me,A=f===vo?Do(d,w)+ue+_:0,A&&(ye.push(w.d,A+So),me.style.flexBasis!==`auto`&&(me.style.flexBasis=A+So)),ys(ye),C&&Q.forEach(function(e){e.pin===C&&e.vars.pinSpacing!==!1&&(e._subPinOffset=!0)}),k&&V(ke)):(A=Do(d,w),A&&me.style.flexBasis!==`auto`&&(me.style.flexBasis=A+So)),k&&(G={top:H.top+(ce?te-U:be)+So,left:H.left+(ce?be:te-U)+So,boxSizing:`border-box`,position:`fixed`},G[fo]=G[`max`+bo]=Math.ceil(H.width)+So,G[po]=G[`max`+xo]=Math.ceil(H.height)+So,G[yo]=G[yo+go]=G[yo+mo]=G[yo+_o]=G[yo+ho]=`0`,G[vo]=j[vo],G[vo+go]=j[vo+go],G[vo+mo]=j[vo+mo],G[vo+_o]=j[vo+_o],G[vo+ho]=j[vo+ho],fe=xs(de,G,y),rs&&V(0)),n?(Se=n._initted,ya(1),n.render(n.duration(),!0,!0),_e=he(w.a)-ge+ue+_,xe=Math.abs(ue-_e)>1,k&&xe&&fe.splice(fe.length-2,2),n.render(0,!0,!0),Se||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),ya(0)):_e=ue,we&&(we.value?we.style[`overflow`+w.a.toUpperCase()]=we.value:we.style.removeProperty(`overflow-`+w.a));else if(u&&V()&&!x)for(H=u.parentNode;H&&H!==ia;)H._pinOffset&&(U-=H._pinOffset,ie-=H._pinOffset),H=H.parentNode;Ce&&Ce.forEach(function(e){return e.revert(!1,!0)}),P.start=U,P.end=ie,ne=re=rs?ke:V(),!x&&!rs&&(ne<ke&&V(ke),P.scroll.rec=0),P.revert(!1,!0),z=Pa(),Oe&&(R=-1,Oe.restart(!0)),da=0,n&&T&&(n._initted||Ae)&&n.progress()!==Ae&&n.progress(Ae||0,!0).render(n.time(),!0,!0),(h||B!==P.progress||x||p||n&&!n._initted)&&(n&&!T&&(n._initted||B||n.vars.immediateRender!==!1)&&n.totalProgress(x&&U<-.001&&!B?X.utils.normalize(U,ie,0):B,!0),P.progress=h||(ne-U)/ue===B?0:B),d&&f&&(me._pinOffset=Math.round(P.progress*_e)),q&&q.invalidate(),isNaN(Te)||(Te-=X.getProperty(oe,w.p),Ee-=X.getProperty(se,w.p),Ds(oe,w,Te),Ds(ae,w,Te-(o||0)),Ds(se,w,Ee),Ds(W,w,Ee-(o||0))),h&&!rs&&P.update(),c&&!rs&&!le&&(le=!0,c(P),le=!1)}},P.getVelocity=function(){return(V()-re)/(Pa()-la)*1e3||0},P.endAnimation=function(){io(P.callbackAnimation),n&&(q?q.progress(1):n.paused()?T||io(n,P.direction<0,1):io(n,n.reversed()))},P.labelToScroll=function(e){return n&&n.labels&&(U||P.refresh()||U)+n.labels[e]/n.duration()*ue||0},P.getTrailing=function(e){var t=Q.indexOf(P),n=P.direction>0?Q.slice(0,t).reverse():Q.slice(t+1);return(eo(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return P.direction>0?e.end<=U:e.start>=ie})},P.update=function(e,t,r){if(!(x&&!r&&!e)){var o=rs===!0?ke:P.scroll(),c=e?0:(o-U)/ue,u=c<0?0:c>1?1:c||0,p=P.progress,h,g,b,D,O,M,N,F;if(t&&(re=ne,ne=x?V():o,v&&(Te=we,we=n&&!T?n.totalProgress():u)),m&&d&&!da&&!Na&&Ia&&(!u&&U<o+(o-re)/(Pa()-la)*m?u=1e-4:u===1&&ie>o+(o-re)/(Pa()-la)*m&&(u=.9999)),u!==p&&P.enabled){if(h=P.isActive=!!u&&u<1,g=!!p&&p<1,M=h!==g,O=M||!!u!=!!p,P.direction=u>p?1:-1,P.progress=u,O&&!da&&(b=u&&!p?0:u===1?1:p===1?2:3,T&&(D=!M&&j[b+1]!==`none`&&j[b+1]||j[b],F=n&&(D===`complete`||D===`reset`||D in n))),C&&(M||F)&&(F||l||!n)&&(to(C)?C(P):P.getTrailing(C).forEach(function(e){return e.endAnimation()})),T||(q&&!da&&!Na?(q._dp._time-q._start!==q._time&&q.render(q._dp._time-q._start),q.resetTo?q.resetTo(`totalProgress`,u,n._tTime/n._tDur):(q.vars.totalProgress=u,q.invalidate().restart())):n&&n.totalProgress(u,!!(da&&(z||e)))),d){if(e&&f&&(me.style[f+w.os2]=ve),!k)K(Wa(ge+_e*u));else if(O){if(N=!e&&u>p&&ie+1>o&&o+1>=Qa(E,w),y)if(!e&&(h||N)){var I=Eo(d,!0),L=o-U;Ts(d,ia,I.top+(w===Gi?L:0)+So,I.left+(w===Gi?0:L)+So)}else Ts(d,me);ys(h||N?fe:pe),xe&&u<1&&h||K(ge+(u===1&&!N?_e:0))}}v&&!ee.tween&&!da&&!Na&&Oe.restart(!0),a&&(M||_&&u&&(u<1||!Ma))&&sa(a.targets).forEach(function(e){return e.classList[h||_?`add`:`remove`](a.className)}),i&&!T&&!e&&i(P),O&&!da?(T&&(F&&(D===`complete`?n.pause().totalProgress(1):D===`reset`?n.restart(!0).pause():D===`restart`?n.restart(!0):n[D]()),i&&i(P)),(M||!Ma)&&(s&&M&&ao(P,s),A[b]&&ao(P,A[b]),_&&(u===1?P.kill(!1,1):A[b]=0),M||(b=u===1?1:3,A[b]&&ao(P,A[b]))),S&&!h&&Math.abs(P.getVelocity())>(no(S)?S:2500)&&(io(P.callbackAnimation),q?q.progress(1):io(n,D===`reverse`?1:!u,1))):T&&i&&!da&&i(P)}if(Se){var R=x?o/x.duration()*(x._caScrollDist||0):o;be(R+ +!!oe._isFlipped),Se(R)}je&&je(-o/x.duration()*(x._caScrollDist||0))}},P.enable=function(t,n){P.enabled||(P.enabled=!0,No(E,`resize`,qo),O||No(E,`scroll`,Go),F&&No(e,`refreshInit`,F),t!==!1&&(P.progress=B=0,ne=re=R=V()),n!==!1&&P.refresh())},P.getTween=function(e){return e&&ee?ee.tween:q},P.setPositions=function(e,t,n,r){if(x){var i=x.scrollTrigger,a=x.duration(),o=i.end-i.start;e=i.start+o*e/a,t=i.start+o*t/a}P.refresh(!1,!1,{start:za(e,n&&!!P._startClamp),end:za(t,n&&!!P._endClamp)},r),P.update()},P.adjustPinSpacing=function(e){if(ye&&e){var t=ye.indexOf(w.d)+1;ye[t]=parseFloat(ye[t])+e+So,ye[1]=parseFloat(ye[1])+e+So,ys(ye)}},P.disable=function(t,n){if(t!==!1&&P.revert(!0,!0),P.enabled&&(P.enabled=P.isActive=!1,n||q&&q.pause(),ke=0,H&&(H.uncache=1),F&&Po(e,`refreshInit`,F),Oe&&(Oe.pause(),ee.tween&&ee.tween.kill()&&(ee.tween=0)),!O)){for(var r=Q.length;r--;)if(Q[r].scroller===E&&Q[r]!==P)return;Po(E,`resize`,qo),O||Po(E,`scroll`,Go)}},P.kill=function(e,r){P.disable(e,r),q&&!r&&q.kill(),o&&delete Ho[o];var i=Q.indexOf(P);i>=0&&Q.splice(i,1),i===ma&&ds>0&&ma--,i=0,Q.forEach(function(e){return e.scroller===P.scroller&&(i=1)}),i||rs||(P.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),r||n.kill()),ae&&[ae,W,oe,se].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),fs===P&&(fs=0),d&&(H&&(H.uncache=1),i=0,Q.forEach(function(e){return e.pin===d&&i++}),i||(H.spacer=0)),t.onKill&&t.onKill(P)},Q.push(P),P.enable(!1,!1),Me&&Me(P),n&&n.add&&!ue){var Ie=P.update;P.update=function(){P.update=Ie,Y.cache++,U||ie||P.refresh()},X.delayedCall(.01,P.update),ue=.01,U=ie=0}else P.refresh();d&&os()},e.register=function(t){return ta||=(X=t||Ka(),Ga()&&window.document&&e.enable(),La),ta},e.defaults=function(e){if(e)for(var t in e)Lo[t]=e[t];return Lo},e.disable=function(e,t){La=0,Q.forEach(function(n){return n[t?`kill`:`disable`](e)}),Po(Z,`wheel`,Go),Po(na,`scroll`,Go),clearInterval(ua),Po(na,`touchcancel`,Ua),Po(ia,`touchstart`,Ua),Mo(Po,na,`pointerdown,touchstart,mousedown`,Va),Mo(Po,na,`pointerup,touchend,mouseup`,Ha),oa.kill(),$a(Po);for(var n=0;n<Y.length;n+=3)Fo(Po,Y[n],Y[n+1]),Fo(Po,Y[n],Y[n+2])},e.enable=function(){if(Z=window,na=document,ra=na.documentElement,ia=na.body,X)if(sa=X.utils.toArray,ca=X.utils.clamp,Ea=X.core.context||Ua,ya=X.core.suppressOverwrites||Ua,Da=Z.history.scrollRestoration||`auto`,us=Z.pageYOffset||0,X.core.globals(`ScrollTrigger`,e),ia){La=1,Oa=document.createElement(`div`),Oa.style.height=`100vh`,Oa.style.position=`absolute`,ss(),Ba(),ea.register(X),e.isTouch=ea.isTouch,Ta=ea.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Sa=ea.isTouch===1,No(Z,`wheel`,Go),aa=[Z,na,ra,ia],X.matchMedia?(e.matchMedia=function(e){var t=X.matchMedia(),n;for(n in e)t.add(n,e[n]);return t},X.addEventListener(`matchMediaInit`,function(){es(),ts()}),X.addEventListener(`matchMediaRevert`,function(){return $o()}),X.addEventListener(`matchMedia`,function(){ls(0,1),Zo(`matchMedia`)}),X.matchMedia().add(`(orientation: portrait)`,function(){return Ko(),Ko})):console.warn(`Requires GSAP 3.11.0 or later`),Ko(),No(na,`scroll`,Go);var t=ia.hasAttribute(`style`),n=ia.style,r=n.borderTopStyle,i=X.core.Animation.prototype,a,o;for(i.revert||Object.defineProperty(i,`revert`,{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle=`solid`,a=Eo(ia),Gi.m=Math.round(a.top+Gi.sc())||0,Wi.m=Math.round(a.left+Wi.sc())||0,r?n.borderTopStyle=r:n.removeProperty(`border-top-style`),t||(ia.setAttribute(`style`,``),ia.removeAttribute(`style`)),ua=setInterval(Wo,250),X.delayedCall(.5,function(){return Na=0}),No(na,`touchcancel`,Ua),No(ia,`touchstart`,Ua),Mo(No,na,`pointerdown,touchstart,mousedown`,Va),Mo(No,na,`pointerup,touchend,mouseup`,Ha),pa=X.utils.checkPrefix(`transform`),hs.push(pa),ta=Pa(),oa=X.delayedCall(.2,ls).pause(),_a=[na,`visibilitychange`,function(){var e=Z.innerWidth,t=Z.innerHeight;na.hidden?(ha=e,ga=t):(ha!==e||ga!==t)&&qo()},na,`DOMContentLoaded`,ls,Z,`load`,ls,Z,`resize`,qo],$a(No),Q.forEach(function(e){return e.enable(0,1)}),o=0;o<Y.length;o+=3)Fo(Po,Y[o],Y[o+1]),Fo(Po,Y[o],Y[o+2])}else na&&na.addEventListener(`DOMContentLoaded`,function t(){e.enable(),na.removeEventListener(`DOMContentLoaded`,t)})},e.config=function(t){`limitCallbacks`in t&&(Ma=!!t.limitCallbacks);var n=t.syncInterval;n&&clearInterval(ua)||(ua=n)&&setInterval(Wo,n),`ignoreMobileResize`in t&&(Sa=e.isTouch===1&&t.ignoreMobileResize),`autoRefreshEvents`in t&&($a(Po)||$a(No,t.autoRefreshEvents||`none`),ba=(t.autoRefreshEvents+``).indexOf(`resize`)===-1)},e.scrollerProxy=function(e,t){var n=Ki(e),r=Y.indexOf(n),i=qa(n);~r&&Y.splice(r,i?6:2),t&&(i?Mi.unshift(Z,t,ia,t,ra,t):Mi.unshift(n,t))},e.clearMatchMedia=function(e){Q.forEach(function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)})},e.isInViewport=function(e,t,n){var r=(eo(e)?Ki(e):e).getBoundingClientRect(),i=r[n?fo:po]*t||0;return n?r.right-i>0&&r.left+i<Z.innerWidth:r.bottom-i>0&&r.top+i<Z.innerHeight},e.positionInViewport=function(e,t,n){eo(e)&&(e=Ki(e));var r=e.getBoundingClientRect(),i=r[n?fo:po],a=t==null?i/2:t in Ro?Ro[t]*i:~t.indexOf(`%`)?parseFloat(t)*i/100:parseFloat(t)||0;return n?(r.left+a)/Z.innerWidth:(r.top+a)/Z.innerHeight},e.killAll=function(e){if(Q.slice(0).forEach(function(e){return e.vars.id!==`ScrollSmoother`&&e.kill()}),e!==!0){var t=Jo.killAll||[];Jo={},t.forEach(function(e){return e()})}},e}();$.version=`3.15.0`,$.saveStyles=function(e){return e?sa(e).forEach(function(e){if(e&&e.style){var t=Qo.indexOf(e);t>=0&&Qo.splice(t,5),Qo.push(e,e.style.cssText,e.getBBox&&e.getAttribute(`transform`),X.core.getCache(e),Ea())}}):Qo},$.revert=function(e,t){return ts(!e,t)},$.create=function(e,t){return new $(e,t)},$.refresh=function(e){return e?qo(!0):(ta||$.register())&&ls(!0)},$.update=function(e){return++Y.cache&&ps(e===!0?2:0)},$.clearScrollMemory=ns,$.maxScroll=function(e,t){return Qa(e,t?Wi:Gi)},$.getScrollFunc=function(e,t){return Ji(Ki(e),t?Wi:Gi)},$.getById=function(e){return Ho[e]},$.getAll=function(){return Q.filter(function(e){return e.vars.id!==`ScrollSmoother`})},$.isScrolling=function(){return!!Ia},$.snapDirectional=Ao,$.addEventListener=function(e,t){var n=Jo[e]||(Jo[e]=[]);~n.indexOf(t)||n.push(t)},$.removeEventListener=function(e,t){var n=Jo[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},$.batch=function(e,t){var n=[],r={},i=t.interval||.016,a=t.batchMax||1e9,o=function(e,t){var n=[],r=[],o=X.delayedCall(i,function(){t(n,r),n=[],r=[]}).pause();return function(e){n.length||o.restart(!0),n.push(e.trigger),r.push(e),a<=n.length&&o.progress(1)}},s;for(s in t)r[s]=s.substr(0,2)===`on`&&to(t[s])&&s!==`onRefreshInit`?o(s,t[s]):t[s];return to(a)&&(a=a(),No($,`refresh`,function(){return a=t.batchMax()})),sa(e).forEach(function(e){var t={};for(s in r)t[s]=r[s];t.trigger=e,n.push($.create(t))}),n};var ks=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},As=function e(t,n){n===!0?t.style.removeProperty(`touch-action`):t.style.touchAction=n===!0?`auto`:n?`pan-`+n+(ea.isTouch?` pinch-zoom`:``):`none`,t===ra&&e(ia,n)},js={auto:1,scroll:1},Ms=function(e){var t=e.event,n=e.target,r=e.axis,i=(t.changedTouches?t.changedTouches[0]:t).target,a=i._gsap||X.core.getCache(i),o=Pa(),s;if(!a._isScrollT||o-a._isScrollT>2e3){for(;i&&i!==ia&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(js[(s=Co(i)).overflowY]||js[s.overflowX]));)i=i.parentNode;a._isScroll=i&&i!==n&&!qa(i)&&(js[(s=Co(i)).overflowY]||js[s.overflowX]),a._isScrollT=o}(a._isScroll||r===`x`)&&(t.stopPropagation(),t._gsapAllow=!0)},Ns=function(e,t,n,r){return ea.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r&&=Ms,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&No(na,ea.eventTypes[0],Is,!1,!0)},onDisable:function(){return Po(na,ea.eventTypes[0],Is,!0)}})},Ps=/(input|label|select|textarea)/i,Fs,Is=function(e){var t=Ps.test(e.target.tagName);(t||Fs)&&(e._gsapAllow=!0,Fs=t)},Ls=function(e){ro(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||=`wheel,touch`,e.debounce=!!e.debounce,e.id=e.id||`normalizer`;var t=e,n=t.normalizeScrollX,r=t.momentum,i=t.allowNestedScroll,a=t.onRelease,o,s,c=Ki(e.target)||ra,l=X.core.globals().ScrollSmoother,u=l&&l.get(),d=Ta&&(e.content&&Ki(e.content)||u&&e.content!==!1&&!u.smooth()&&u.content()),f=Ji(c,Gi),p=Ji(c,Wi),m=1,h=(ea.isTouch&&Z.visualViewport?Z.visualViewport.scale*Z.visualViewport.width:Z.outerWidth)/Z.innerWidth,g=0,_=to(r)?function(){return r(o)}:function(){return r||2.8},v,y,b=Ns(c,e.type,!0,i),x=function(){return y=!1},S=Ua,C=Ua,w=function(){s=Qa(c,Gi),C=ca(+!!Ta,s),n&&(S=ca(0,Qa(c,Wi))),v=is},T=function(){d._gsap.y=Wa(parseFloat(d._gsap.y)+f.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)`,f.offset=f.cacheID=0},E=function(){if(y){requestAnimationFrame(x);var e=Wa(o.deltaY/2),t=C(f.v-e);if(d&&t!==f.v+f.offset){f.offset=t-f.v;var n=Wa((parseFloat(d&&d._gsap.y)||0)-f.offset);d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+n+`, 0, 1)`,d._gsap.y=n+`px`,f.cacheID=Y.cache,ps()}return!0}f.offset&&T(),y=!0},D,O,k,A,j=function(){w(),D.isActive()&&D.vars.scrollY>s&&(f()>s?D.progress(1)&&f(s):D.resetTo(`scrollY`,s))};return d&&X.set(d,{y:`+=0`}),e.ignoreCheck=function(e){return Ta&&e.type===`touchmove`&&E(e)||m>1.05&&e.type!==`touchstart`||o.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){y=!1;var e=m;m=Wa((Z.visualViewport&&Z.visualViewport.scale||1)/h),D.pause(),e!==m&&As(c,m>1.01?!0:n?!1:`x`),O=p(),k=f(),w(),v=is},e.onRelease=e.onGestureStart=function(e,t){if(f.offset&&T(),!t)A.restart(!0);else{Y.cache++;var r=_(),i,o;n&&(i=p(),o=i+r*.05*-e.velocityX/.227,r*=ks(p,i,o,Qa(c,Wi)),D.vars.scrollX=S(o)),i=f(),o=i+r*.05*-e.velocityY/.227,r*=ks(f,i,o,Qa(c,Gi)),D.vars.scrollY=C(o),D.invalidate().duration(r).play(.01),(Ta&&D.vars.scrollY>=s||i>=s-1)&&X.to({},{onUpdate:j,duration:r})}a&&a(e)},e.onWheel=function(){D._ts&&D.pause(),Pa()-g>1e3&&(v=0,g=Pa())},e.onChange=function(e,t,r,i,a){if(is!==v&&w(),t&&n&&p(S(i[2]===t?O+(e.startX-e.x):p()+t-i[1])),r){f.offset&&T();var o=a[2]===r,s=o?k+e.startY-e.y:f()+r-a[1],c=C(s);o&&s!==c&&(k+=c-s),f(c)}(r||t)&&ps()},e.onEnable=function(){As(c,n?!1:`x`),$.addEventListener(`refresh`,j),No(Z,`resize`,j),f.smooth&&=(f.target.style.scrollBehavior=`auto`,p.smooth=!1),b.enable()},e.onDisable=function(){As(c,!0),Po(Z,`resize`,j),$.removeEventListener(`refresh`,j),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new ea(e),o.iOS=Ta,Ta&&!f()&&f(1),Ta&&X.ticker.add(Ua),A=o._dc,D=X.to(o,{ease:`power4`,paused:!0,inherit:!1,scrollX:n?`+=0.1`:`+=0`,scrollY:`+=0.1`,modifiers:{scrollY:Es(f,f(),function(){return D.pause()})},onUpdate:ps,onComplete:A.vars.onComplete}),o};$.sort=function(e){if(to(e))return Q.sort(e);var t=Z.pageYOffset||0;return $.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+Z.innerHeight}),Q.sort(e||function(e,t){return(e.vars.refreshPriority||0)*-1e6+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})},$.observe=function(e){return new ea(e)},$.normalizeScroll=function(e){if(e===void 0)return xa;if(e===!0&&xa)return xa.enable();if(e===!1){xa&&xa.kill(),xa=e;return}var t=e instanceof ea?e:Ls(e);return xa&&xa.target===t.target&&xa.kill(),qa(t.target)&&(xa=t),t},$.core={_getVelocityProp:Yi,_inputObserver:Ns,_scrollers:Y,_proxies:Mi,bridge:{ss:function(){Ia||Zo(`scrollStart`),Ia=Pa()},ref:function(){return da}}},Ka()&&X.registerPlugin($);var Rs,zs,Bs=typeof Symbol==`function`?Symbol():`_split`,Vs,Hs=()=>Vs||sc.register(window.gsap),Us=typeof Intl<`u`&&`Segmenter`in Intl?new Intl.Segmenter:0,Ws=e=>e?typeof e==`string`?Ws(document.querySelectorAll(e)):`length`in e?Array.from(e).reduce((e,t)=>(typeof t==`string`?e.push(...Ws(t)):e.push(t),e),[]):[e]:[],Gs=e=>Ws(e).filter(e=>e&&e.nodeType===1),Ks=[],qs=function(){},Js={add:e=>e()},Ys=/\s+/g,Xs=RegExp(`\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.`,`gu`),Zs={left:0,top:0,width:0,height:0},Qs=(e,t)=>{for(;++t<e.length&&e[t]===Zs;);return e[t]||Zs},$s=({element:e,html:t,ariaL:n,ariaH:r})=>{e.innerHTML=t,n?e.setAttribute(`aria-label`,n):e.removeAttribute(`aria-label`),r?e.setAttribute(`aria-hidden`,r):e.removeAttribute(`aria-hidden`)},ec=(e,t)=>{if(t){let n=new Set(e.join(``).match(t)||Ks),r=e.length,i,a,o,s;if(n.size)for(;--r>-1;){a=e[r];for(o of n)if(o.startsWith(a)&&o.length>a.length){for(i=0,s=a;o.startsWith(s+=e[r+ ++i])&&s.length<o.length;);if(i&&s.length===o.length){e[r]=o,e.splice(r+1,i);break}}}}return e},tc=e=>window.getComputedStyle(e).display===`inline`&&(e.style.display=`inline-block`),nc=(e,t,n)=>t.insertBefore(typeof e==`string`?document.createTextNode(e):e,n),rc=(e,t,n)=>{let r=t[e+`sClass`]||``,{tag:i=`div`,aria:a=`auto`,propIndex:o=!1}=t,s=e===`line`?`block`:`inline-block`,c=r.indexOf(`++`)>-1,l=t=>{let l=document.createElement(i),u=n.length+1;return r&&(l.className=r+(c?` `+r+u:``)),o&&l.style.setProperty(`--`+e,u+``),a!==`none`&&l.setAttribute(`aria-hidden`,`true`),i!==`span`&&(l.style.position=`relative`,l.style.display=s),l.textContent=t,n.push(l),l};return c&&(r=r.replace(`++`,``)),l.collection=n,l},ic=(e,t,n,r)=>{let i=rc(`line`,n,r),a=window.getComputedStyle(e).textAlign||`left`;return(n,r)=>{let o=i(``);for(o.style.textAlign=a,e.insertBefore(o,t[n]);n<r;n++)o.appendChild(t[n]);o.normalize()}},ac=(e,t,n,r,i,a,o,s,c,l)=>{var u;let d=Array.from(e.childNodes),f=0,{wordDelimiter:p,reduceWhiteSpace:m=!0,prepareText:h}=t,g=e.getBoundingClientRect(),_=g,v=!m&&window.getComputedStyle(e).whiteSpace.substring(0,3)===`pre`,y=0,b=n.collection,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R;for(typeof p==`object`?(C=p.delimiter||p,S=p.replaceWith||``):S=p===``?``:p||` `,x=S!==` `;f<d.length;f++)if(w=d[f],w.nodeType===3){for(F=w.textContent||``,m?F=F.replace(Ys,` `):v&&(F=F.replace(/\n/g,S+`
|
|
2
2
|
`)),h&&(F=h(F,e)),w.textContent=F,T=S||C?F.split(C||S):F.match(s)||Ks,L=T[T.length-1],O=x?L.slice(-1)===` `:!L,L||T.pop(),_=g,D=x?T[0].charAt(0)===` `:!T[0],D&&nc(` `,e,w),T[0]||T.shift(),ec(T,c),a&&l||(w.textContent=``),k=1;k<=T.length;k++)if(I=T[k-1],!m&&v&&I.charAt(0)===`
|
|
3
|
-
`&&((u=w.previousSibling)==null||u.remove(),nc(document.createElement(`br`),e,w),I=I.slice(1)),!m&&I===``)nc(S,e,w);else if(I===` `)e.insertBefore(document.createTextNode(` `),w);else{if(x&&I.charAt(0)===` `&&nc(` `,e,w),y&&k===1&&!D&&b.indexOf(y.parentNode)>-1?(E=b[b.length-1],E.appendChild(document.createTextNode(r?``:I))):(E=n(r?``:I),nc(E,e,w),y&&k===1&&!D&&E.insertBefore(y,E.firstChild)),r)for(j=Us?ec([...Us.segment(I)].map(e=>e.segment),c):I.match(s)||Ks,R=0;R<j.length;R++)E.appendChild(j[R]===` `?document.createTextNode(` `):r(j[R]));if(a&&l){if(F=w.textContent=F.substring(I.length+1,F.length),A=E.getBoundingClientRect(),A.top>_.top&&A.left<=_.left){for(M=e.cloneNode(),N=e.childNodes[0];N&&N!==E;)P=N,N=N.nextSibling,M.appendChild(P);e.parentNode.insertBefore(M,e),i&&tc(M)}_=A}(k<T.length||O)&&nc(k>=T.length?` `:x&&I.slice(-1)===` `?` `+S:S,e,w)}e.removeChild(w),y=0}else w.nodeType===1&&(o&&o.indexOf(w)>-1?(b.indexOf(w.previousSibling)>-1&&b[b.length-1].appendChild(w),y=w):(ac(w,t,n,r,i,a,o,s,c,!0),y=0),i&&tc(w))},oc=class e{constructor(e,t){this.isSplit=!1,Hs(),this.elements=Gs(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=t,this.elements.forEach(e=>{var n;t.overwrite!==!1&&((n=e[Bs])==null||n._data.orig.filter(({element:t})=>t===e).forEach($s)),e[Bs]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let n=[],r,i=()=>{let e=n.length,t;for(;e--;){t=n[e];let r=t.element.offsetWidth;if(r!==t.width){t.width=r,this._split();return}}};this._data={orig:n,obs:typeof ResizeObserver<`u`&&new ResizeObserver(()=>{clearTimeout(r),r=setTimeout(i,200)})},qs(this),this.split(t)}split(e){return(this._ctx||Js).add(()=>{this.isSplit&&this.revert(),this.vars=e=e||this.vars||{};let{type:t=`chars,words,lines`,aria:n=`auto`,deepSlice:r=!0,smartWrap:i,onSplit:a,autoSplit:o=!1,specialChars:s,mask:c}=this.vars,l=t.indexOf(`lines`)>-1,u=t.indexOf(`chars`)>-1,d=t.indexOf(`words`)>-1,f=u&&!d&&!l,p=s&&(`push`in s?RegExp(`(?:`+s.join(`|`)+`)`,`gu`):s),m=p?RegExp(p.source+`|`+Xs.source,`gu`):Xs,h=!!e.ignore&&Gs(e.ignore),{orig:g,animTime:_,obs:v}=this._data,y;(u||d||l)&&(this.elements.forEach((t,a)=>{g[a]={element:t,html:t.innerHTML,ariaL:t.getAttribute(`aria-label`),ariaH:t.getAttribute(`aria-hidden`)},n===`auto`?t.setAttribute(`aria-label`,(t.textContent||``).trim()):n===`hidden`&&t.setAttribute(`aria-hidden`,`true`);let o=[],s=[],c=[],_=u?rc(`char`,e,o):null,v=rc(`word`,e,s),y,b,x,S;if(ac(t,e,v,_,f,r&&(l||f),h,m,p,!1),l){let n=Ws(t.childNodes),r=ic(t,n,e,c),i,a=[],o=0,s=n.map(e=>e.nodeType===1?e.getBoundingClientRect():Zs),l=Zs,u;for(y=0;y<n.length;y++)i=n[y],i.nodeType===1&&(i.nodeName===`BR`?((!y||n[y-1].nodeName!==`BR`)&&(a.push(i),r(o,y+1)),o=y+1,l=Qs(s,y)):(u=s[y],y&&u.top>l.top&&u.left<l.left+l.width-1&&(r(o,y),o=y),l=u));o<y&&r(o,y),a.forEach(e=>e.parentNode?.removeChild(e))}if(!d){for(y=0;y<s.length;y++)if(b=s[y],u||!b.nextSibling||b.nextSibling.nodeType!==3)if(i&&!l){for(x=document.createElement(`span`),x.style.whiteSpace=`nowrap`;b.firstChild;)x.appendChild(b.firstChild);b.replaceWith(x)}else b.replaceWith(...b.childNodes);else S=b.nextSibling,S&&S.nodeType===3&&(S.textContent=(b.textContent||``)+(S.textContent||``),b.remove());s.length=0,t.normalize()}this.lines.push(...c),this.words.push(...s),this.chars.push(...o)}),c&&this[c]&&this.masks.push(...this[c].map(e=>{let t=e.cloneNode();return e.replaceWith(t),t.appendChild(e),e.className&&(t.className=e.className.trim().split(` `).map(e=>e+`-mask`).join(` `)),t.style.overflow=`clip`,t}))),this.isSplit=!0,zs&&l&&o&&zs.addEventListener(`loadingdone`,this._split),(y=a&&a(this))&&y.totalTime&&(this._data.anim=_?y.totalTime(_):y),l&&o&&this.elements.forEach((e,t)=>{g[t].width=e.offsetWidth,v&&v.observe(e)})}),this}kill(){let{obs:e}=this._data;e&&e.disconnect(),zs?.removeEventListener(`loadingdone`,this._split)}revert(){var e,t;if(this.isSplit){let{orig:n,anim:r}=this._data;this.kill(),n.forEach($s),this.chars.length=this.words.length=this.lines.length=n.length=this.masks.length=0,this.isSplit=!1,r&&(this._data.animTime=r.totalTime(),r.revert()),(t=(e=this.vars).onRevert)==null||t.call(e,this)}return this}static create(t,n){return new e(t,n)}static register(e){Rs=Rs||e||window.gsap,Rs&&(Ws=Rs.utils.toArray,qs=Rs.core.context||qs),!Vs&&window.innerWidth>0&&(zs=document.fonts,Vs=!0)}};oc.version=`3.15.0`;var sc=oc,cc=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,lc=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,uc=Math.PI/180;180/Math.PI;var dc=Math.sin,fc=Math.cos,pc=Math.abs,mc=Math.sqrt,hc=function(e){return typeof e==`number`},gc=1e5,_c=function(e){return Math.round(e*gc)/gc||0},vc=function(e){return e.closed=Math.abs(e[0]-e[e.length-2])<.001&&Math.abs(e[1]-e[e.length-1])<.001};function yc(e,t,n,r,i,a,o){for(var s=e.length,c,l,u,d,f;--s>-1;)for(c=e[s],l=c.length,u=0;u<l;u+=2)d=c[u],f=c[u+1],c[u]=d*t+f*r+a,c[u+1]=d*n+f*i+o;return e._dirty=1,e}function bc(e,t,n,r,i,a,o,s,c){if(!(e===s&&t===c)){n=pc(n),r=pc(r);var l=i%360*uc,u=fc(l),d=dc(l),f=Math.PI,p=f*2,m=(e-s)/2,h=(t-c)/2,g=u*m+d*h,_=-d*m+u*h,v=g*g,y=_*_,b=v/(n*n)+y/(r*r);b>1&&(n=mc(b)*n,r=mc(b)*r);var x=n*n,S=r*r,C=(x*S-x*y-S*v)/(x*y+S*v);C<0&&(C=0);var w=(a===o?-1:1)*mc(C),T=w*(n*_/r),E=w*-(r*g/n),D=(e+s)/2,O=(t+c)/2,k=D+(u*T-d*E),A=O+(d*T+u*E),j=(g-T)/n,M=(_-E)/r,N=(-g-T)/n,P=(-_-E)/r,F=j*j+M*M,I=(M<0?-1:1)*Math.acos(j/mc(F)),L=(j*P-M*N<0?-1:1)*Math.acos((j*N+M*P)/mc(F*(N*N+P*P)));isNaN(L)&&(L=f),!o&&L>0?L-=p:o&&L<0&&(L+=p),I%=p,L%=p;var R=Math.ceil(pc(L)/(p/4)),z=[],B=L/R,V=4/3*dc(B/2)/(1+fc(B/2)),ee=u*n,H=d*n,te=d*-r,ne=u*r,re;for(re=0;re<R;re++)i=I+re*B,g=fc(i),_=dc(i),j=fc(i+=B),M=dc(i),z.push(g-V*_,_+V*g,j+V*M,M-V*j,j,M);for(re=0;re<z.length;re+=2)g=z[re],_=z[re+1],z[re]=g*ee+_*te+k,z[re+1]=g*H+_*ne+A;return z[re-2]=s,z[re-1]=c,z}}function xc(e){var t=(e+``).replace(lc,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(cc)||[],n=[],r=0,i=0,a=2/3,o=t.length,s=0,c=`ERROR: malformed path: `+e,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w=function(e,t,n,r){v=(n-e)/3,y=(r-t)/3,h.push(e+v,t+y,n-v,r-y,n,r)};if(!e||!isNaN(t[0])||isNaN(t[1]))return console.log(c),n;for(l=0;l<o;l++)if(x=p,isNaN(t[l])?(p=t[l].toUpperCase(),m=p!==t[l]):l--,d=+t[l+1],f=+t[l+2],m&&(d+=r,f+=i),l||(g=d,_=f),p===`M`)h&&(h.length<8?--n.length:s+=h.length,vc(h)),r=g=d,i=_=f,h=[d,f],n.push(h),l+=2,p=`L`;else if(p===`C`)h||=[0,0],m||(r=i=0),h.push(d,f,r+t[l+3]*1,i+t[l+4]*1,r+=t[l+5]*1,i+=t[l+6]*1),l+=6;else if(p===`S`)v=r,y=i,(x===`C`||x===`S`)&&(v+=r-h[h.length-4],y+=i-h[h.length-3]),m||(r=i=0),h.push(v,y,d,f,r+=t[l+3]*1,i+=t[l+4]*1),l+=4;else if(p===`Q`)v=r+(d-r)*a,y=i+(f-i)*a,m||(r=i=0),r+=t[l+3]*1,i+=t[l+4]*1,h.push(v,y,r+(d-r)*a,i+(f-i)*a,r,i),l+=4;else if(p===`T`)v=r-h[h.length-4],y=i-h[h.length-3],h.push(r+v,i+y,d+(r+v*1.5-d)*a,f+(i+y*1.5-f)*a,r=d,i=f),l+=2;else if(p===`H`)w(r,i,r=d,i),l+=1;else if(p===`V`)w(r,i,r,i=d+(m?i-r:0)),l+=1;else if(p===`L`||p===`Z`)p===`Z`&&(d=g,f=_,h.closed=!0),(p===`L`||pc(r-d)>.5||pc(i-f)>.5)&&(w(r,i,d,f),p===`L`&&(l+=2)),r=d,i=f;else if(p===`A`){if(S=t[l+4],C=t[l+5],v=t[l+6],y=t[l+7],u=7,S.length>1&&(S.length<3?(y=v,v=C,u--):(y=C,v=S.substr(2),u-=2),C=S.charAt(1),S=S.charAt(0)),b=bc(r,i,+t[l+1],+t[l+2],+t[l+3],+S,+C,(m?r:0)+v*1,(m?i:0)+y*1),l+=u,b)for(u=0;u<b.length;u++)h.push(b[u]);r=h[h.length-2],i=h[h.length-1]}else console.log(c);return l=h.length,l<6?(n.pop(),l=0):vc(h),n.totalPoints=s+l,n}function Sc(e){hc(e[0])&&(e=[e]);var t=``,n=e.length,r,i,a,o;for(i=0;i<n;i++){for(o=e[i],t+=`M`+_c(o[0])+`,`+_c(o[1])+` C`,r=o.length,a=2;a<r;a++)t+=_c(o[a++])+`,`+_c(o[a++])+` `+_c(o[a++])+`,`+_c(o[a++])+` `+_c(o[a++])+`,`+_c(o[a])+` `;o.closed&&(t+=`z`)}return t}var Cc,wc,Tc=function(){return Cc||typeof window<`u`&&(Cc=window.gsap)&&Cc.registerPlugin&&Cc},Ec=function(){Cc=Tc(),Cc?(Cc.registerEase(`_CE`,Fc.create),wc=1):console.warn(`Please gsap.registerPlugin(CustomEase)`)},Dc=0x56bc75e2d63100000,Oc=function(e){return~~(e*1e3+(e<0?-.5:.5))/1e3},kc=1,Ac=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,jc=/[cLlsSaAhHvVtTqQ]/g,Mc=function(e){var t=e.length,n=Dc,r;for(r=1;r<t;r+=6)+e[r]<n&&(n=+e[r]);return n},Nc=function(e,t,n){!n&&n!==0&&(n=Math.max(+e[e.length-1],+e[1]));var r=e[0]*-1,i=-n,a=e.length,o=1/(+e[a-2]+r),s=-t||(Math.abs(e[a-1]-+e[1])<.01*(e[a-2]-+e[0])?Mc(e)+i:+e[a-1]+i),c;for(s=s?1/s:-o,c=0;c<a;c+=2)e[c]=(+e[c]+r)*o,e[c+1]=(+e[c+1]+i)*s},Pc=function e(t,n,r,i,a,o,s,c,l,u,d){var f=(t+r)/2,p=(n+i)/2,m=(r+a)/2,h=(i+o)/2,g=(a+s)/2,_=(o+c)/2,v=(f+m)/2,y=(p+h)/2,b=(m+g)/2,x=(h+_)/2,S=(v+b)/2,C=(y+x)/2,w=s-t,T=c-n,E=Math.abs((r-s)*T-(i-c)*w),D=Math.abs((a-s)*T-(o-c)*w),O;return u||(u=[{x:t,y:n},{x:s,y:c}],d=1),u.splice(d||u.length-1,0,{x:S,y:C}),(E+D)*(E+D)>l*(w*w+T*T)&&(O=u.length,e(t,n,f,p,v,y,S,C,l,u,d),e(S,C,b,x,g,_,s,c,l,u,d+1+(u.length-O))),u},Fc=function(){function e(e,t,n){wc||Ec(),this.id=e,kc&&this.setData(t,n)}var t=e.prototype;return t.setData=function(e,t){t||={},e||=`0,0,1,1`;var n=e.match(Ac),r=1,i=[],a=[],o=t.precision||1,s=o<=1,c,l,u,d,f,p,m,h,g;if(this.data=e,(jc.test(e)||~e.indexOf(`M`)&&e.indexOf(`C`)<0)&&(n=xc(e)[0]),c=n.length,c===4)n.unshift(0,0),n.push(1,1),c=8;else if((c-2)%6)throw`Invalid CustomEase`;for((+n[0]!=0||+n[c-2]!=1)&&Nc(n,t.height,t.originY),this.segment=n,d=2;d<c;d+=6)l={x:+n[d-2],y:+n[d-1]},u={x:+n[d+4],y:+n[d+5]},i.push(l,u),Pc(l.x,l.y,+n[d],+n[d+1],+n[d+2],+n[d+3],u.x,u.y,1/(o*2e5),i,i.length-1);for(c=i.length,d=0;d<c;d++)m=i[d],h=i[d-1]||m,(m.x>h.x||h.y!==m.y&&h.x===m.x||m===h)&&m.x<=1?(h.cx=m.x-h.x,h.cy=m.y-h.y,h.n=m,h.nx=m.x,s&&d>1&&Math.abs(h.cy/h.cx-i[d-2].cy/i[d-2].cx)>2&&(s=0),h.cx<r&&(h.cx?r=h.cx:(h.cx=.001,d===c-1&&(h.x-=.001,r=Math.min(r,.001),s=0)))):(i.splice(d--,1),c--);if(c=1/r+1|0,f=1/c,p=0,m=i[0],s){for(d=0;d<c;d++)g=d*f,m.nx<g&&(m=i[++p]),l=m.y+(g-m.x)/m.cx*m.cy,a[d]={x:g,cx:f,y:l,cy:0,nx:9},d&&(a[d-1].cy=l-a[d-1].y);p=i[i.length-1],a[c-1].cy=p.y-l,a[c-1].cx=p.x-a[a.length-1].x}else{for(d=0;d<c;d++)m.nx<d*f&&(m=i[++p]),a[d]=m;p<i.length-1&&(a[d-1]=i[i.length-2])}return this.ease=function(e){var t=a[e*c|0]||a[c-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},this.ease.custom=this,this.id&&Cc&&Cc.registerEase(this.id,this.ease),this},t.getSVGData=function(t){return e.getSVGData(this,t)},e.create=function(t,n,r){return new e(t,n,r).ease},e.register=function(e){Cc=e,Ec()},e.get=function(e){return Cc.parseEase(e)},e.getSVGData=function(t,n){n||={};var r=n.width||100,i=n.height||100,a=n.x||0,o=(n.y||0)+i,s=Cc.utils.toArray(n.path)[0],c,l,u,d,f,p,m,h,g,_;if(n.invert&&(i=-i,o=0),typeof t==`string`&&(t=Cc.parseEase(t)),t.custom&&(t=t.custom),t instanceof e)c=Sc(yc([t.segment.slice(0)],r,0,0,-i,a,o));else{for(c=[a,o],m=Math.max(5,(n.precision||1)*200),d=1/m,m+=2,h=5/m,g=Oc(a+d*r),_=Oc(o+t(d)*-i),l=(_-o)/(g-a),u=2;u<m;u++)f=Oc(a+u*d*r),p=Oc(o+t(u*d)*-i),(Math.abs((p-_)/(f-g)-l)>h||u===m-1)&&(c.push(g,_),l=(p-_)/(f-g)),g=f,_=p;c=`M`+c.join(`,`)}return s&&s.setAttribute(`d`,c),c},e}();Fc.version=`3.15.0`,Fc.headless=!0,Tc()&&Cc.registerPlugin(Fc);var Ic=`1.3.23`;function Lc(e,t,n){return Math.max(e,Math.min(t,n))}function Rc(e,t,n){return(1-n)*e+n*t}function zc(e,t,n,r){return Rc(e,t,1-Math.exp(-n*r))}function Bc(e,t){return(e%t+t)%t}var Vc=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let n=Lc(0,this.currentTime/this.duration,1);t=n>=1;let r=t?1:this.easing(n);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=zc(this.value,this.to,this.lerp*60,e),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n,duration:r,easing:i,onStart:a,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=r,this.easing=i,this.currentTime=0,this.isRunning=!0,a?.(),this.onUpdate=o}};function Hc(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{n=void 0,e.apply(this,r)},t)}}var Uc=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(e,t,{autoResize:n=!0,debounce:r=250}={}){this.wrapper=e,this.content=t,n&&(this.debouncedResize=Hc(this.resize,r),this.wrapper instanceof Window?window.addEventListener(`resize`,this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener(`resize`,this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},Wc=class{events={};emit(e,...t){let n=this.events[e]||[];for(let e=0,r=n.length;e<r;e++)n[e]?.(...t)}on(e,t){return this.events[e]?this.events[e].push(t):this.events[e]=[t],()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}off(e,t){this.events[e]=this.events[e]?.filter(e=>t!==e)}destroy(){this.events={}}},Gc=100/6,Kc={passive:!1};function qc(e,t){return e===1?Gc:e===2?t:1}var Jc=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new Wc;constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener(`resize`,this.onWindowResize),this.onWindowResize(),this.element.addEventListener(`wheel`,this.onWheel,Kc),this.element.addEventListener(`touchstart`,this.onTouchStart,Kc),this.element.addEventListener(`touchmove`,this.onTouchMove,Kc),this.element.addEventListener(`touchend`,this.onTouchEnd,Kc)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener(`resize`,this.onWindowResize),this.element.removeEventListener(`wheel`,this.onWheel,Kc),this.element.removeEventListener(`touchstart`,this.onTouchStart,Kc),this.element.removeEventListener(`touchmove`,this.onTouchMove,Kc),this.element.removeEventListener(`touchend`,this.onTouchEnd,Kc)}onTouchStart=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit(`scroll`,{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,r=-(t-this.touchStart.x)*this.options.touchMultiplier,i=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:r,y:i},this.emitter.emit(`scroll`,{deltaX:r,deltaY:i,event:e})};onTouchEnd=e=>{this.emitter.emit(`scroll`,{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:n,deltaMode:r}=e,i=qc(r,this.window.width),a=qc(r,this.window.height);t*=i,n*=a,t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit(`scroll`,{deltaX:t,deltaY:n,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},Yc=e=>Math.min(1,1.001-2**(-10*e)),Xc=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new Vc;emitter=new Wc;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:n=e,smoothWheel:r=!0,syncTouch:i=!1,syncTouchLerp:a=.075,touchInertiaExponent:o=1.7,duration:s,easing:c,lerp:l=.1,infinite:u=!1,orientation:d=`vertical`,gestureOrientation:f=d===`horizontal`?`both`:`vertical`,touchMultiplier:p=1,wheelMultiplier:m=1,autoResize:h=!0,prevent:g,virtualScroll:_,overscroll:v=!0,autoRaf:y=!1,anchors:b=!1,autoToggle:x=!1,allowNestedScroll:S=!1,__experimental__naiveDimensions:C=!1,naiveDimensions:w=C,stopInertiaOnNavigate:T=!1}={}){window.lenisVersion=Ic,window.lenis||(window.lenis={}),window.lenis.version=Ic,d===`horizontal`&&(window.lenis.horizontal=!0),i===!0&&(window.lenis.touch=!0),(!e||e===document.documentElement)&&(e=window),typeof s==`number`&&typeof c!=`function`?c=Yc:typeof c==`function`&&typeof s!=`number`&&(s=1),this.options={wrapper:e,content:t,eventsTarget:n,smoothWheel:r,syncTouch:i,syncTouchLerp:a,touchInertiaExponent:o,duration:s,easing:c,lerp:l,infinite:u,gestureOrientation:f,orientation:d,touchMultiplier:p,wheelMultiplier:m,autoResize:h,prevent:g,virtualScroll:_,overscroll:v,autoRaf:y,anchors:b,autoToggle:x,allowNestedScroll:S,naiveDimensions:w,stopInertiaOnNavigate:T},this.dimensions=new Uc(e,t,{autoResize:h}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.addEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener(`click`,this.onClick),this.options.wrapper.addEventListener(`pointerdown`,this.onPointerDown),this.virtualScroll=new Jc(n,{touchMultiplier:p,wheelMultiplier:m}),this.virtualScroll.on(`scroll`,this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener(`transitionend`,this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.removeEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener(`pointerdown`,this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener(`click`,this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||(this.isScrolling===`smooth`||this.isScrolling===!1)&&e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent(`scrollend`,{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let e=this.isHorizontal?`overflow-x`:`overflow-y`;return getComputedStyle(this.rootElement)[e]}checkOverflow(){[`hidden`,`clip`].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=e=>{e.propertyName?.includes(`overflow`)&&e.target===this.rootElement&&this.checkOverflow()};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:`instant`}):this.options.wrapper.scrollTo({top:e,behavior:`instant`})}onClick=e=>{let t=e.composedPath().filter(e=>e instanceof HTMLAnchorElement&&e.href).map(e=>new URL(e.href)),n=new URL(window.location.href);if(this.options.anchors){let e=t.find(e=>n.host===e.host&&n.pathname===e.pathname&&e.hash);if(e){let t=typeof this.options.anchors==`object`&&this.options.anchors?this.options.anchors:void 0,n=`#${e.hash.split(`#`)[1]}`;this.scrollTo(n,t);return}}if(this.options.stopInertiaOnNavigate&&t.some(e=>n.host===e.host&&n.pathname!==e.pathname)){this.reset();return}};onPointerDown=e=>{e.button===1&&this.reset()};onVirtualScroll=e=>{if(typeof this.options.virtualScroll==`function`&&this.options.virtualScroll(e)===!1)return;let{deltaX:t,deltaY:n,event:r}=e;if(this.emitter.emit(`virtual-scroll`,{deltaX:t,deltaY:n,event:r}),r.ctrlKey||r.lenisStopPropagation)return;let i=r.type.includes(`touch`),a=r.type.includes(`wheel`);this.isTouching=r.type===`touchstart`||r.type===`touchmove`;let o=t===0&&n===0;if(this.options.syncTouch&&i&&r.type===`touchstart`&&o&&!this.isStopped&&!this.isLocked){this.reset();return}let s=this.options.gestureOrientation===`vertical`&&n===0||this.options.gestureOrientation===`horizontal`&&t===0;if(o||s)return;let c=r.composedPath();c=c.slice(0,c.indexOf(this.rootElement));let l=this.options.prevent,u=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`;if(c.find(e=>e instanceof HTMLElement&&(typeof l==`function`&&l?.(e)||e.hasAttribute?.(`data-lenis-prevent`)||u===`vertical`&&e.hasAttribute?.(`data-lenis-prevent-vertical`)||u===`horizontal`&&e.hasAttribute?.(`data-lenis-prevent-horizontal`)||i&&e.hasAttribute?.(`data-lenis-prevent-touch`)||a&&e.hasAttribute?.(`data-lenis-prevent-wheel`)||this.options.allowNestedScroll&&this.hasNestedScroll(e,{deltaX:t,deltaY:n}))))return;if(this.isStopped||this.isLocked){r.cancelable&&r.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&a)){this.isScrolling=`native`,this.animate.stop(),r.lenisStopPropagation=!0;return}let d=n;this.options.gestureOrientation===`both`?d=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation===`horizontal`&&(d=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&n>0||this.animatedScroll===this.limit&&n<0))&&(r.lenisStopPropagation=!0),r.cancelable&&r.preventDefault();let f=i&&this.options.syncTouch,p=i&&r.type===`touchend`;p&&(d=Math.sign(d)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+d,{programmatic:!1,...f?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit(`scroll`,this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling===`native`){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling=`native`),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty(`overflow`);return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty(`overflow`,`clip`);return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:n=!1,lock:r=!1,programmatic:i=!0,lerp:a=i?this.options.lerp:void 0,duration:o=i?this.options.duration:void 0,easing:s=i?this.options.easing:void 0,onStart:c,onComplete:l,force:u=!1,userData:d}={}){if((this.isStopped||this.isLocked)&&!u)return;let f=e,p=t;if(typeof f==`string`&&[`top`,`left`,`start`,`#`].includes(f))f=0;else if(typeof f==`string`&&[`bottom`,`right`,`end`].includes(f))f=this.limit;else{let e=null;if(typeof f==`string`?(e=document.querySelector(f),e||(f===`#top`?f=0:console.warn(`Lenis: Target not found`,f))):f instanceof HTMLElement&&f?.nodeType&&(e=f),e){if(this.options.wrapper!==window){let e=this.rootElement.getBoundingClientRect();p-=this.isHorizontal?e.left:e.top}let t=e.getBoundingClientRect(),n=getComputedStyle(e),r=this.isHorizontal?Number.parseFloat(n.scrollMarginLeft):Number.parseFloat(n.scrollMarginTop),i=getComputedStyle(this.rootElement),a=this.isHorizontal?Number.parseFloat(i.scrollPaddingLeft):Number.parseFloat(i.scrollPaddingTop);f=(this.isHorizontal?t.left:t.top)+this.animatedScroll-(Number.isNaN(r)?0:r)-(Number.isNaN(a)?0:a)}}if(typeof f==`number`){if(f+=p,this.options.infinite){if(i){this.targetScroll=this.animatedScroll=this.scroll;let e=f-this.animatedScroll;e>this.limit/2?f-=this.limit:e<-this.limit/2&&(f+=this.limit)}}else f=Lc(0,f,this.limit);if(f===this.targetScroll){c?.(this),l?.(this);return}if(this.userData=d??{},n){this.animatedScroll=this.targetScroll=f,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}i||(this.targetScroll=f),typeof o==`number`&&typeof s!=`function`?s=Yc:typeof s==`function`&&typeof o!=`number`&&(o=1),this.animate.fromTo(this.animatedScroll,f,{duration:o,easing:s,lerp:a,onStart:()=>{r&&(this.isLocked=!0),this.isScrolling=`smooth`,c?.(this)},onUpdate:(e,t)=>{this.isScrolling=`smooth`,this.lastVelocity=this.velocity,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),i&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(e,{deltaX:t,deltaY:n}){let r=Date.now();e._lenis||={};let i=e._lenis,a,o,s,c,l,u,d,f,p,m;if(r-(i.time??0)>2e3){i.time=Date.now();let t=window.getComputedStyle(e);if(i.computedStyle=t,a=[`auto`,`overlay`,`scroll`].includes(t.overflowX),o=[`auto`,`overlay`,`scroll`].includes(t.overflowY),l=[`auto`].includes(t.overscrollBehaviorX),u=[`auto`].includes(t.overscrollBehaviorY),i.hasOverflowX=a,i.hasOverflowY=o,!(a||o))return!1;d=e.scrollWidth,f=e.scrollHeight,p=e.clientWidth,m=e.clientHeight,s=d>p,c=f>m,i.isScrollableX=s,i.isScrollableY=c,i.scrollWidth=d,i.scrollHeight=f,i.clientWidth=p,i.clientHeight=m,i.hasOverscrollBehaviorX=l,i.hasOverscrollBehaviorY=u}else s=i.isScrollableX,c=i.isScrollableY,a=i.hasOverflowX,o=i.hasOverflowY,d=i.scrollWidth,f=i.scrollHeight,p=i.clientWidth,m=i.clientHeight,l=i.hasOverscrollBehaviorX,u=i.hasOverscrollBehaviorY;if(!(a&&s||o&&c))return!1;let h=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`,g,_,v,y,b,x;if(h===`horizontal`)g=Math.round(e.scrollLeft),_=d-p,v=t,y=a,b=s,x=l;else if(h===`vertical`)g=Math.round(e.scrollTop),_=f-m,v=n,y=o,b=c,x=u;else return!1;return!x&&(g>=_||g<=0)?!0:(v>0?g<_:g>0)&&y&&b}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?`x`:`y`]}get isHorizontal(){return this.options.orientation===`horizontal`}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?Bc(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling===`smooth`}get className(){let e=`lenis`;return this.options.autoToggle&&(e+=` lenis-autoToggle`),this.isStopped&&(e+=` lenis-stopped`),this.isLocked&&(e+=` lenis-locked`),this.isScrolling&&(e+=` lenis-scrolling`),this.isScrolling===`smooth`&&(e+=` lenis-smooth`),e}updateClassName(){this.cleanUpClassName(),this.className.split(` `).forEach(e=>{this.rootElement.classList.add(e)})}cleanUpClassName(){for(let e of Array.from(this.rootElement.classList))(e===`lenis`||e.startsWith(`lenis-`))&&this.rootElement.classList.remove(e)}};pi.registerPlugin($,sc,Fc);var Zc=`1.2.6`,Qc={debug:new URLSearchParams(window.location.search).has(`saDebug`),smoothScroll:!0,forceTopOnBoot:!0,startAt:`top 98%`,ease:`smoothKyne`,waitForFonts:!0,fontReadyTimeout:1500,reduceMotion:`auto`,highlightEnd:`center`,highlightWordStagger:.25,highlightCharStagger:.1,animations:{reveal:{fromY:40,duration:.55,stagger:.08},opacity:{duration:.55,stagger:.08},entryBlur:{fromY:18,fromBlur:10,duration:.75,stagger:.08},scaleIn:{fromScale:.92,duration:.6,stagger:.08},scaleInBlur:{fromScale:.88,fromBlur:8,duration:.7,stagger:.08},counter:{duration:1.2,startValue:0},textReveal:{fromYPercent:120,duration:.95,stagger:.08},highlightWords:{opacity:.1},highlightChars:{opacity:.1}},selectors:{reveal:`.sk-reveal`,textReveal:`.sk-text-lines`,opacity:`.sk-fade`,entryBlur:`.sk-entry-blur`,scaleIn:`.sk-scale-in`,scaleInBlur:`.sk-scale-in-blur`,counter:`.sk-counter`,textHighlightWords:`.sk-text-highlight-words`,textHighlightChars:`.sk-text-highlight-chars`}},$c=!1,el=null;function tl(e){document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,e,{once:!0}):e()}function nl(e){return e.split(`,`).map(e=>`${e.trim()}:not([data-sk-init])`).join(`, `)}function rl(){return window.matchMedia?window.matchMedia(`(prefers-reduced-motion: reduce)`).matches:!1}function il(e){if(!e.waitForFonts||e.reduceMotion||!document.fonts||!document.fonts.ready)return Promise.resolve();let t=Number.isFinite(e.fontReadyTimeout)?Math.max(0,e.fontReadyTimeout):0;return t?Promise.race([document.fonts.ready,new Promise(e=>{setTimeout(e,t)})]):document.fonts.ready}function al(e,t){return{...e,...t||{},reveal:{...e.reveal,...t&&t.reveal||{}},opacity:{...e.opacity,...t&&t.opacity||{}},entryBlur:{...e.entryBlur,...t&&t.entryBlur||{}},scaleIn:{...e.scaleIn,...t&&t.scaleIn||{}},scaleInBlur:{...e.scaleInBlur,...t&&t.scaleInBlur||{}},counter:{...e.counter,...t&&t.counter||{}},textReveal:{...e.textReveal,...t&&t.textReveal||{}},highlightWords:{...e.highlightWords,...t&&t.highlightWords||{}},highlightChars:{...e.highlightChars,...t&&t.highlightChars||{}}}}function ol(e,t){return e.animations?.[t]||{}}function sl(e){let t=String(e||``).replace(/\u00A0/g,` `).trim();if(!t)return null;let n=t.match(/[+-]?[\d][\d.,\s]*/);if(!n)return null;let r=n[0].trim(),i=t.indexOf(r),a=t.slice(0,i).trim(),o=t.slice(i+r.length).trim(),s=r.replace(/\s+/g,``),c=(s.match(/,/g)||[]).length,l=(s.match(/\./g)||[]).length,u=c>0,d=l>0,f=e=>e.replace(/[.,]/g,``),p=(e,t)=>{let n=e.split(t),r=n.shift()||``,i=n.join(``);return`${r.replace(/[.,]/g,``)}.${i.replace(/[.,]/g,``)}`},m=s,h=0;if(u&&d){let e=s.lastIndexOf(`,`),t=s.lastIndexOf(`.`),n=e>t?`,`:`.`,r=Math.max(e,t);m=p(s,n),h=Math.max(0,s.length-r-1)}else if(u||d){let e=u?`,`:`.`,t=u?c:l,n=s.split(e),r=n[n.length-1]||``;t>1||n.length===2&&r.length===3&&n[0].length>=1?(m=f(s),h=0):(m=p(s,e),h=r.length)}else m=s.replace(/[.,\s]/g,``),h=0;let g=Number(m);return Number.isFinite(g)?{prefix:a,suffix:o,value:g,decimals:h}:null}function cl(){return document.documentElement.lang||void 0}function ll(e,t){let n=cl(),r=Number(e);return Number.isFinite(r)?t>0?r.toLocaleString(n,{minimumFractionDigits:t,maximumFractionDigits:t}):Math.round(r).toLocaleString(n):`0`}function ul(e,t,n,r){let i=e.getAttribute(`data-sk-target`),a=Number(e.getAttribute(`data-sk-duration`)),o=e.getAttribute(`data-sk-decimals`),s=e.getAttribute(`data-sk-prefix`),c=e.getAttribute(`data-sk-suffix`),l=ol(n,`counter`),u=r===`data`&&i!=null&&Number.isFinite(Number(i))?Number(i):t.value,d=Number.isFinite(a)&&a>0?a:l.duration??1.2,f=o!=null&&o!==``&&Number.isFinite(Number(o))?Math.max(0,Number(o)):t.decimals;return{target:Number.isFinite(u)?u:t.value,duration:d,decimals:f,prefix:s??t.prefix,suffix:c??t.suffix}}function dl(e){e.smoothScroll&&(el=new Xc({allowNestedScroll:!0,anchors:{offset:-108},autoRaf:!1}),el.on(`scroll`,$.update),pi.ticker.add(e=>{el.raf(e*1e3)}),pi.ticker.lagSmoothing(0),window.__lenis=el)}function fl(e,t,n,r={}){let i=[...document.querySelectorAll(nl(n))];if(!i.length)return;let a=ol(e,t);if(i.forEach(e=>{e.setAttribute(`data-sk-init`,`true`)}),e.reduceMotion){r.reduceMotion(i,a);return}r.prepare(i,a),$.batch(i,{start:e.startAt,once:!0,batchMax:10,markers:e.debug,onEnter:e=>{r.animate(e,a)}})}function pl(e){let t=sl(e.textContent);if(t)return{source:`html`,value:t};let n=e.getAttribute(`data-sk-target`);return n!=null&&Number.isFinite(Number(n))?{source:`data`,value:{prefix:e.getAttribute(`data-sk-prefix`)||``,suffix:e.getAttribute(`data-sk-suffix`)||``,value:Number(n),decimals:e.getAttribute(`data-sk-decimals`)!=null&&e.getAttribute(`data-sk-decimals`)!==``&&Number.isFinite(Number(e.getAttribute(`data-sk-decimals`)))?Math.max(0,Number(e.getAttribute(`data-sk-decimals`))):0}}:null}function ml(e){fl(e,`reveal`,e.selectors.reveal,{reduceMotion:e=>{pi.set(e,{y:0,opacity:1,clearProps:`transform,opacity,willChange`})},prepare:(e,t)=>{pi.set(e,{y:t.fromY,opacity:0,willChange:`transform, opacity`})},animate:(t,n)=>{pi.to(t,{y:0,opacity:1,duration:n.duration,ease:e.ease,stagger:n.stagger,overwrite:`auto`,clearProps:`transform,opacity,willChange`})}})}function hl(e){fl(e,`opacity`,e.selectors.opacity,{reduceMotion:e=>{pi.set(e,{opacity:1,clearProps:`opacity,willChange`})},prepare:e=>{pi.set(e,{opacity:0,willChange:`opacity`})},animate:(t,n)=>{pi.to(t,{opacity:1,duration:n.duration,ease:e.ease,stagger:n.stagger,overwrite:`auto`,clearProps:`opacity,willChange`})}})}function gl(e){fl(e,`entryBlur`,e.selectors.entryBlur,{reduceMotion:e=>{pi.set(e,{y:0,opacity:1,filter:`blur(0px)`,clearProps:`transform,opacity,filter,willChange`})},prepare:(e,t)=>{pi.set(e,{y:t.fromY,opacity:0,filter:`blur(${t.fromBlur}px)`,willChange:`transform, opacity, filter`})},animate:(t,n)=>{pi.to(t,{y:0,opacity:1,filter:`blur(0px)`,duration:n.duration,ease:e.ease,stagger:n.stagger,overwrite:`auto`,clearProps:`transform,opacity,filter,willChange`})}})}function _l(e){fl(e,`scaleIn`,e.selectors.scaleIn,{reduceMotion:e=>{pi.set(e,{scale:1,opacity:1,clearProps:`transform,opacity,willChange`})},prepare:(e,t)=>{pi.set(e,{scale:t.fromScale,opacity:0,transformOrigin:`center center`,willChange:`transform, opacity`})},animate:(t,n)=>{pi.to(t,{scale:1,opacity:1,duration:n.duration,ease:e.ease,stagger:n.stagger,overwrite:`auto`,clearProps:`transform,opacity,willChange`})}})}function vl(e){fl(e,`scaleInBlur`,e.selectors.scaleInBlur,{reduceMotion:e=>{pi.set(e,{scale:1,opacity:1,filter:`blur(0px)`,clearProps:`transform,opacity,filter,willChange`})},prepare:(e,t)=>{pi.set(e,{scale:t.fromScale,opacity:0,filter:`blur(${t.fromBlur}px)`,transformOrigin:`center center`,willChange:`transform, opacity, filter`})},animate:(t,n)=>{pi.to(t,{scale:1,opacity:1,filter:`blur(0px)`,duration:n.duration,ease:e.ease,stagger:n.stagger,overwrite:`auto`,clearProps:`transform,opacity,filter,willChange`})}})}function yl(e){let t=[...document.querySelectorAll(nl(e.selectors.counter))];t.length&&t.forEach(t=>{let n=pl(t);if(!n)return;t.setAttribute(`data-sk-init`,`true`);let r=ul(t,n.value,e,n.source);if(e.reduceMotion){t.textContent=`${r.prefix}${ll(r.target,r.decimals)}${r.suffix}`;return}let i={value:0};$.create({trigger:t,start:e.startAt,once:!0,markers:e.debug,onEnter:()=>{pi.to(i,{value:r.target,duration:r.duration,ease:e.ease,overwrite:`auto`,onUpdate:()=>{t.textContent=`${r.prefix}${ll(i.value,r.decimals)}${r.suffix}`},onComplete:()=>{t.textContent=`${r.prefix}${ll(r.target,r.decimals)}${r.suffix}`}})}})})}function bl(e){let t=[...document.querySelectorAll(nl(e.selectors.textReveal))];t.length&&t.forEach(t=>{if(t.setAttribute(`data-sk-init`,`true`),e.reduceMotion){pi.set(t,{opacity:1,clearProps:`transform,opacity,willChange`});return}let n=ol(e,`textReveal`),r=sc.create(t,{type:`lines`,mask:`lines`,linesClass:`sk-line`,autoSplit:!0,deepSlice:!0});pi.set(r.lines,{yPercent:n.fromYPercent,opacity:0,willChange:`transform, opacity`}),$.create({trigger:t,start:e.startAt,once:!0,markers:e.debug,onEnter:()=>{pi.to(r.lines,{yPercent:0,opacity:1,duration:n.duration,ease:e.ease,stagger:n.stagger,overwrite:`auto`,clearProps:`transform,opacity,willChange`})}})})}function xl(){if(document.getElementById(`sk-motion-css`))return;let e=document.createElement(`style`);e.id=`sk-motion-css`,e.textContent=`
|
|
3
|
+
`&&((u=w.previousSibling)==null||u.remove(),nc(document.createElement(`br`),e,w),I=I.slice(1)),!m&&I===``)nc(S,e,w);else if(I===` `)e.insertBefore(document.createTextNode(` `),w);else{if(x&&I.charAt(0)===` `&&nc(` `,e,w),y&&k===1&&!D&&b.indexOf(y.parentNode)>-1?(E=b[b.length-1],E.appendChild(document.createTextNode(r?``:I))):(E=n(r?``:I),nc(E,e,w),y&&k===1&&!D&&E.insertBefore(y,E.firstChild)),r)for(j=Us?ec([...Us.segment(I)].map(e=>e.segment),c):I.match(s)||Ks,R=0;R<j.length;R++)E.appendChild(j[R]===` `?document.createTextNode(` `):r(j[R]));if(a&&l){if(F=w.textContent=F.substring(I.length+1,F.length),A=E.getBoundingClientRect(),A.top>_.top&&A.left<=_.left){for(M=e.cloneNode(),N=e.childNodes[0];N&&N!==E;)P=N,N=N.nextSibling,M.appendChild(P);e.parentNode.insertBefore(M,e),i&&tc(M)}_=A}(k<T.length||O)&&nc(k>=T.length?` `:x&&I.slice(-1)===` `?` `+S:S,e,w)}e.removeChild(w),y=0}else w.nodeType===1&&(o&&o.indexOf(w)>-1?(b.indexOf(w.previousSibling)>-1&&b[b.length-1].appendChild(w),y=w):(ac(w,t,n,r,i,a,o,s,c,!0),y=0),i&&tc(w))},oc=class e{constructor(e,t){this.isSplit=!1,Hs(),this.elements=Gs(e),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=t,this.elements.forEach(e=>{var n;t.overwrite!==!1&&((n=e[Bs])==null||n._data.orig.filter(({element:t})=>t===e).forEach($s)),e[Bs]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let n=[],r,i=()=>{let e=n.length,t;for(;e--;){t=n[e];let r=t.element.offsetWidth;if(r!==t.width){t.width=r,this._split();return}}};this._data={orig:n,obs:typeof ResizeObserver<`u`&&new ResizeObserver(()=>{clearTimeout(r),r=setTimeout(i,200)})},qs(this),this.split(t)}split(e){return(this._ctx||Js).add(()=>{this.isSplit&&this.revert(),this.vars=e=e||this.vars||{};let{type:t=`chars,words,lines`,aria:n=`auto`,deepSlice:r=!0,smartWrap:i,onSplit:a,autoSplit:o=!1,specialChars:s,mask:c}=this.vars,l=t.indexOf(`lines`)>-1,u=t.indexOf(`chars`)>-1,d=t.indexOf(`words`)>-1,f=u&&!d&&!l,p=s&&(`push`in s?RegExp(`(?:`+s.join(`|`)+`)`,`gu`):s),m=p?RegExp(p.source+`|`+Xs.source,`gu`):Xs,h=!!e.ignore&&Gs(e.ignore),{orig:g,animTime:_,obs:v}=this._data,y;(u||d||l)&&(this.elements.forEach((t,a)=>{g[a]={element:t,html:t.innerHTML,ariaL:t.getAttribute(`aria-label`),ariaH:t.getAttribute(`aria-hidden`)},n===`auto`?t.setAttribute(`aria-label`,(t.textContent||``).trim()):n===`hidden`&&t.setAttribute(`aria-hidden`,`true`);let o=[],s=[],c=[],_=u?rc(`char`,e,o):null,v=rc(`word`,e,s),y,b,x,S;if(ac(t,e,v,_,f,r&&(l||f),h,m,p,!1),l){let n=Ws(t.childNodes),r=ic(t,n,e,c),i,a=[],o=0,s=n.map(e=>e.nodeType===1?e.getBoundingClientRect():Zs),l=Zs,u;for(y=0;y<n.length;y++)i=n[y],i.nodeType===1&&(i.nodeName===`BR`?((!y||n[y-1].nodeName!==`BR`)&&(a.push(i),r(o,y+1)),o=y+1,l=Qs(s,y)):(u=s[y],y&&u.top>l.top&&u.left<l.left+l.width-1&&(r(o,y),o=y),l=u));o<y&&r(o,y),a.forEach(e=>e.parentNode?.removeChild(e))}if(!d){for(y=0;y<s.length;y++)if(b=s[y],u||!b.nextSibling||b.nextSibling.nodeType!==3)if(i&&!l){for(x=document.createElement(`span`),x.style.whiteSpace=`nowrap`;b.firstChild;)x.appendChild(b.firstChild);b.replaceWith(x)}else b.replaceWith(...b.childNodes);else S=b.nextSibling,S&&S.nodeType===3&&(S.textContent=(b.textContent||``)+(S.textContent||``),b.remove());s.length=0,t.normalize()}this.lines.push(...c),this.words.push(...s),this.chars.push(...o)}),c&&this[c]&&this.masks.push(...this[c].map(e=>{let t=e.cloneNode();return e.replaceWith(t),t.appendChild(e),e.className&&(t.className=e.className.trim().split(` `).map(e=>e+`-mask`).join(` `)),t.style.overflow=`clip`,t}))),this.isSplit=!0,zs&&l&&o&&zs.addEventListener(`loadingdone`,this._split),(y=a&&a(this))&&y.totalTime&&(this._data.anim=_?y.totalTime(_):y),l&&o&&this.elements.forEach((e,t)=>{g[t].width=e.offsetWidth,v&&v.observe(e)})}),this}kill(){let{obs:e}=this._data;e&&e.disconnect(),zs?.removeEventListener(`loadingdone`,this._split)}revert(){var e,t;if(this.isSplit){let{orig:n,anim:r}=this._data;this.kill(),n.forEach($s),this.chars.length=this.words.length=this.lines.length=n.length=this.masks.length=0,this.isSplit=!1,r&&(this._data.animTime=r.totalTime(),r.revert()),(t=(e=this.vars).onRevert)==null||t.call(e,this)}return this}static create(t,n){return new e(t,n)}static register(e){Rs=Rs||e||window.gsap,Rs&&(Ws=Rs.utils.toArray,qs=Rs.core.context||qs),!Vs&&window.innerWidth>0&&(zs=document.fonts,Vs=!0)}};oc.version=`3.15.0`;var sc=oc,cc=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,lc=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,uc=Math.PI/180;180/Math.PI;var dc=Math.sin,fc=Math.cos,pc=Math.abs,mc=Math.sqrt,hc=function(e){return typeof e==`number`},gc=1e5,_c=function(e){return Math.round(e*gc)/gc||0},vc=function(e){return e.closed=Math.abs(e[0]-e[e.length-2])<.001&&Math.abs(e[1]-e[e.length-1])<.001};function yc(e,t,n,r,i,a,o){for(var s=e.length,c,l,u,d,f;--s>-1;)for(c=e[s],l=c.length,u=0;u<l;u+=2)d=c[u],f=c[u+1],c[u]=d*t+f*r+a,c[u+1]=d*n+f*i+o;return e._dirty=1,e}function bc(e,t,n,r,i,a,o,s,c){if(!(e===s&&t===c)){n=pc(n),r=pc(r);var l=i%360*uc,u=fc(l),d=dc(l),f=Math.PI,p=f*2,m=(e-s)/2,h=(t-c)/2,g=u*m+d*h,_=-d*m+u*h,v=g*g,y=_*_,b=v/(n*n)+y/(r*r);b>1&&(n=mc(b)*n,r=mc(b)*r);var x=n*n,S=r*r,C=(x*S-x*y-S*v)/(x*y+S*v);C<0&&(C=0);var w=(a===o?-1:1)*mc(C),T=w*(n*_/r),E=w*-(r*g/n),D=(e+s)/2,O=(t+c)/2,k=D+(u*T-d*E),A=O+(d*T+u*E),j=(g-T)/n,M=(_-E)/r,N=(-g-T)/n,P=(-_-E)/r,F=j*j+M*M,I=(M<0?-1:1)*Math.acos(j/mc(F)),L=(j*P-M*N<0?-1:1)*Math.acos((j*N+M*P)/mc(F*(N*N+P*P)));isNaN(L)&&(L=f),!o&&L>0?L-=p:o&&L<0&&(L+=p),I%=p,L%=p;var R=Math.ceil(pc(L)/(p/4)),z=[],B=L/R,V=4/3*dc(B/2)/(1+fc(B/2)),ee=u*n,H=d*n,te=d*-r,ne=u*r,re;for(re=0;re<R;re++)i=I+re*B,g=fc(i),_=dc(i),j=fc(i+=B),M=dc(i),z.push(g-V*_,_+V*g,j+V*M,M-V*j,j,M);for(re=0;re<z.length;re+=2)g=z[re],_=z[re+1],z[re]=g*ee+_*te+k,z[re+1]=g*H+_*ne+A;return z[re-2]=s,z[re-1]=c,z}}function xc(e){var t=(e+``).replace(lc,function(e){var t=+e;return t<1e-4&&t>-1e-4?0:t}).match(cc)||[],n=[],r=0,i=0,a=2/3,o=t.length,s=0,c=`ERROR: malformed path: `+e,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w=function(e,t,n,r){v=(n-e)/3,y=(r-t)/3,h.push(e+v,t+y,n-v,r-y,n,r)};if(!e||!isNaN(t[0])||isNaN(t[1]))return console.log(c),n;for(l=0;l<o;l++)if(x=p,isNaN(t[l])?(p=t[l].toUpperCase(),m=p!==t[l]):l--,d=+t[l+1],f=+t[l+2],m&&(d+=r,f+=i),l||(g=d,_=f),p===`M`)h&&(h.length<8?--n.length:s+=h.length,vc(h)),r=g=d,i=_=f,h=[d,f],n.push(h),l+=2,p=`L`;else if(p===`C`)h||=[0,0],m||(r=i=0),h.push(d,f,r+t[l+3]*1,i+t[l+4]*1,r+=t[l+5]*1,i+=t[l+6]*1),l+=6;else if(p===`S`)v=r,y=i,(x===`C`||x===`S`)&&(v+=r-h[h.length-4],y+=i-h[h.length-3]),m||(r=i=0),h.push(v,y,d,f,r+=t[l+3]*1,i+=t[l+4]*1),l+=4;else if(p===`Q`)v=r+(d-r)*a,y=i+(f-i)*a,m||(r=i=0),r+=t[l+3]*1,i+=t[l+4]*1,h.push(v,y,r+(d-r)*a,i+(f-i)*a,r,i),l+=4;else if(p===`T`)v=r-h[h.length-4],y=i-h[h.length-3],h.push(r+v,i+y,d+(r+v*1.5-d)*a,f+(i+y*1.5-f)*a,r=d,i=f),l+=2;else if(p===`H`)w(r,i,r=d,i),l+=1;else if(p===`V`)w(r,i,r,i=d+(m?i-r:0)),l+=1;else if(p===`L`||p===`Z`)p===`Z`&&(d=g,f=_,h.closed=!0),(p===`L`||pc(r-d)>.5||pc(i-f)>.5)&&(w(r,i,d,f),p===`L`&&(l+=2)),r=d,i=f;else if(p===`A`){if(S=t[l+4],C=t[l+5],v=t[l+6],y=t[l+7],u=7,S.length>1&&(S.length<3?(y=v,v=C,u--):(y=C,v=S.substr(2),u-=2),C=S.charAt(1),S=S.charAt(0)),b=bc(r,i,+t[l+1],+t[l+2],+t[l+3],+S,+C,(m?r:0)+v*1,(m?i:0)+y*1),l+=u,b)for(u=0;u<b.length;u++)h.push(b[u]);r=h[h.length-2],i=h[h.length-1]}else console.log(c);return l=h.length,l<6?(n.pop(),l=0):vc(h),n.totalPoints=s+l,n}function Sc(e){hc(e[0])&&(e=[e]);var t=``,n=e.length,r,i,a,o;for(i=0;i<n;i++){for(o=e[i],t+=`M`+_c(o[0])+`,`+_c(o[1])+` C`,r=o.length,a=2;a<r;a++)t+=_c(o[a++])+`,`+_c(o[a++])+` `+_c(o[a++])+`,`+_c(o[a++])+` `+_c(o[a++])+`,`+_c(o[a])+` `;o.closed&&(t+=`z`)}return t}var Cc,wc,Tc=function(){return Cc||typeof window<`u`&&(Cc=window.gsap)&&Cc.registerPlugin&&Cc},Ec=function(){Cc=Tc(),Cc?(Cc.registerEase(`_CE`,Fc.create),wc=1):console.warn(`Please gsap.registerPlugin(CustomEase)`)},Dc=0x56bc75e2d63100000,Oc=function(e){return~~(e*1e3+(e<0?-.5:.5))/1e3},kc=1,Ac=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,jc=/[cLlsSaAhHvVtTqQ]/g,Mc=function(e){var t=e.length,n=Dc,r;for(r=1;r<t;r+=6)+e[r]<n&&(n=+e[r]);return n},Nc=function(e,t,n){!n&&n!==0&&(n=Math.max(+e[e.length-1],+e[1]));var r=e[0]*-1,i=-n,a=e.length,o=1/(+e[a-2]+r),s=-t||(Math.abs(e[a-1]-+e[1])<.01*(e[a-2]-+e[0])?Mc(e)+i:+e[a-1]+i),c;for(s=s?1/s:-o,c=0;c<a;c+=2)e[c]=(+e[c]+r)*o,e[c+1]=(+e[c+1]+i)*s},Pc=function e(t,n,r,i,a,o,s,c,l,u,d){var f=(t+r)/2,p=(n+i)/2,m=(r+a)/2,h=(i+o)/2,g=(a+s)/2,_=(o+c)/2,v=(f+m)/2,y=(p+h)/2,b=(m+g)/2,x=(h+_)/2,S=(v+b)/2,C=(y+x)/2,w=s-t,T=c-n,E=Math.abs((r-s)*T-(i-c)*w),D=Math.abs((a-s)*T-(o-c)*w),O;return u||(u=[{x:t,y:n},{x:s,y:c}],d=1),u.splice(d||u.length-1,0,{x:S,y:C}),(E+D)*(E+D)>l*(w*w+T*T)&&(O=u.length,e(t,n,f,p,v,y,S,C,l,u,d),e(S,C,b,x,g,_,s,c,l,u,d+1+(u.length-O))),u},Fc=function(){function e(e,t,n){wc||Ec(),this.id=e,kc&&this.setData(t,n)}var t=e.prototype;return t.setData=function(e,t){t||={},e||=`0,0,1,1`;var n=e.match(Ac),r=1,i=[],a=[],o=t.precision||1,s=o<=1,c,l,u,d,f,p,m,h,g;if(this.data=e,(jc.test(e)||~e.indexOf(`M`)&&e.indexOf(`C`)<0)&&(n=xc(e)[0]),c=n.length,c===4)n.unshift(0,0),n.push(1,1),c=8;else if((c-2)%6)throw`Invalid CustomEase`;for((+n[0]!=0||+n[c-2]!=1)&&Nc(n,t.height,t.originY),this.segment=n,d=2;d<c;d+=6)l={x:+n[d-2],y:+n[d-1]},u={x:+n[d+4],y:+n[d+5]},i.push(l,u),Pc(l.x,l.y,+n[d],+n[d+1],+n[d+2],+n[d+3],u.x,u.y,1/(o*2e5),i,i.length-1);for(c=i.length,d=0;d<c;d++)m=i[d],h=i[d-1]||m,(m.x>h.x||h.y!==m.y&&h.x===m.x||m===h)&&m.x<=1?(h.cx=m.x-h.x,h.cy=m.y-h.y,h.n=m,h.nx=m.x,s&&d>1&&Math.abs(h.cy/h.cx-i[d-2].cy/i[d-2].cx)>2&&(s=0),h.cx<r&&(h.cx?r=h.cx:(h.cx=.001,d===c-1&&(h.x-=.001,r=Math.min(r,.001),s=0)))):(i.splice(d--,1),c--);if(c=1/r+1|0,f=1/c,p=0,m=i[0],s){for(d=0;d<c;d++)g=d*f,m.nx<g&&(m=i[++p]),l=m.y+(g-m.x)/m.cx*m.cy,a[d]={x:g,cx:f,y:l,cy:0,nx:9},d&&(a[d-1].cy=l-a[d-1].y);p=i[i.length-1],a[c-1].cy=p.y-l,a[c-1].cx=p.x-a[a.length-1].x}else{for(d=0;d<c;d++)m.nx<d*f&&(m=i[++p]),a[d]=m;p<i.length-1&&(a[d-1]=i[i.length-2])}return this.ease=function(e){var t=a[e*c|0]||a[c-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},this.ease.custom=this,this.id&&Cc&&Cc.registerEase(this.id,this.ease),this},t.getSVGData=function(t){return e.getSVGData(this,t)},e.create=function(t,n,r){return new e(t,n,r).ease},e.register=function(e){Cc=e,Ec()},e.get=function(e){return Cc.parseEase(e)},e.getSVGData=function(t,n){n||={};var r=n.width||100,i=n.height||100,a=n.x||0,o=(n.y||0)+i,s=Cc.utils.toArray(n.path)[0],c,l,u,d,f,p,m,h,g,_;if(n.invert&&(i=-i,o=0),typeof t==`string`&&(t=Cc.parseEase(t)),t.custom&&(t=t.custom),t instanceof e)c=Sc(yc([t.segment.slice(0)],r,0,0,-i,a,o));else{for(c=[a,o],m=Math.max(5,(n.precision||1)*200),d=1/m,m+=2,h=5/m,g=Oc(a+d*r),_=Oc(o+t(d)*-i),l=(_-o)/(g-a),u=2;u<m;u++)f=Oc(a+u*d*r),p=Oc(o+t(u*d)*-i),(Math.abs((p-_)/(f-g)-l)>h||u===m-1)&&(c.push(g,_),l=(p-_)/(f-g)),g=f,_=p;c=`M`+c.join(`,`)}return s&&s.setAttribute(`d`,c),c},e}();Fc.version=`3.15.0`,Fc.headless=!0,Tc()&&Cc.registerPlugin(Fc);var Ic=`1.3.23`;function Lc(e,t,n){return Math.max(e,Math.min(t,n))}function Rc(e,t,n){return(1-n)*e+n*t}function zc(e,t,n,r){return Rc(e,t,1-Math.exp(-n*r))}function Bc(e,t){return(e%t+t)%t}var Vc=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let n=Lc(0,this.currentTime/this.duration,1);t=n>=1;let r=t?1:this.easing(n);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=zc(this.value,this.to,this.lerp*60,e),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n,duration:r,easing:i,onStart:a,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=r,this.easing=i,this.currentTime=0,this.isRunning=!0,a?.(),this.onUpdate=o}};function Hc(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{n=void 0,e.apply(this,r)},t)}}var Uc=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(e,t,{autoResize:n=!0,debounce:r=250}={}){this.wrapper=e,this.content=t,n&&(this.debouncedResize=Hc(this.resize,r),this.wrapper instanceof Window?window.addEventListener(`resize`,this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener(`resize`,this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},Wc=class{events={};emit(e,...t){let n=this.events[e]||[];for(let e=0,r=n.length;e<r;e++)n[e]?.(...t)}on(e,t){return this.events[e]?this.events[e].push(t):this.events[e]=[t],()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}off(e,t){this.events[e]=this.events[e]?.filter(e=>t!==e)}destroy(){this.events={}}},Gc=100/6,Kc={passive:!1};function qc(e,t){return e===1?Gc:e===2?t:1}var Jc=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new Wc;constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener(`resize`,this.onWindowResize),this.onWindowResize(),this.element.addEventListener(`wheel`,this.onWheel,Kc),this.element.addEventListener(`touchstart`,this.onTouchStart,Kc),this.element.addEventListener(`touchmove`,this.onTouchMove,Kc),this.element.addEventListener(`touchend`,this.onTouchEnd,Kc)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener(`resize`,this.onWindowResize),this.element.removeEventListener(`wheel`,this.onWheel,Kc),this.element.removeEventListener(`touchstart`,this.onTouchStart,Kc),this.element.removeEventListener(`touchmove`,this.onTouchMove,Kc),this.element.removeEventListener(`touchend`,this.onTouchEnd,Kc)}onTouchStart=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit(`scroll`,{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,r=-(t-this.touchStart.x)*this.options.touchMultiplier,i=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:r,y:i},this.emitter.emit(`scroll`,{deltaX:r,deltaY:i,event:e})};onTouchEnd=e=>{this.emitter.emit(`scroll`,{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:n,deltaMode:r}=e,i=qc(r,this.window.width),a=qc(r,this.window.height);t*=i,n*=a,t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit(`scroll`,{deltaX:t,deltaY:n,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},Yc=e=>Math.min(1,1.001-2**(-10*e)),Xc=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new Vc;emitter=new Wc;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:n=e,smoothWheel:r=!0,syncTouch:i=!1,syncTouchLerp:a=.075,touchInertiaExponent:o=1.7,duration:s,easing:c,lerp:l=.1,infinite:u=!1,orientation:d=`vertical`,gestureOrientation:f=d===`horizontal`?`both`:`vertical`,touchMultiplier:p=1,wheelMultiplier:m=1,autoResize:h=!0,prevent:g,virtualScroll:_,overscroll:v=!0,autoRaf:y=!1,anchors:b=!1,autoToggle:x=!1,allowNestedScroll:S=!1,__experimental__naiveDimensions:C=!1,naiveDimensions:w=C,stopInertiaOnNavigate:T=!1}={}){window.lenisVersion=Ic,window.lenis||(window.lenis={}),window.lenis.version=Ic,d===`horizontal`&&(window.lenis.horizontal=!0),i===!0&&(window.lenis.touch=!0),(!e||e===document.documentElement)&&(e=window),typeof s==`number`&&typeof c!=`function`?c=Yc:typeof c==`function`&&typeof s!=`number`&&(s=1),this.options={wrapper:e,content:t,eventsTarget:n,smoothWheel:r,syncTouch:i,syncTouchLerp:a,touchInertiaExponent:o,duration:s,easing:c,lerp:l,infinite:u,gestureOrientation:f,orientation:d,touchMultiplier:p,wheelMultiplier:m,autoResize:h,prevent:g,virtualScroll:_,overscroll:v,autoRaf:y,anchors:b,autoToggle:x,allowNestedScroll:S,naiveDimensions:w,stopInertiaOnNavigate:T},this.dimensions=new Uc(e,t,{autoResize:h}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.addEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener(`click`,this.onClick),this.options.wrapper.addEventListener(`pointerdown`,this.onPointerDown),this.virtualScroll=new Jc(n,{touchMultiplier:p,wheelMultiplier:m}),this.virtualScroll.on(`scroll`,this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener(`transitionend`,this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.removeEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener(`pointerdown`,this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener(`click`,this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||(this.isScrolling===`smooth`||this.isScrolling===!1)&&e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent(`scrollend`,{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let e=this.isHorizontal?`overflow-x`:`overflow-y`;return getComputedStyle(this.rootElement)[e]}checkOverflow(){[`hidden`,`clip`].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=e=>{e.propertyName?.includes(`overflow`)&&e.target===this.rootElement&&this.checkOverflow()};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:`instant`}):this.options.wrapper.scrollTo({top:e,behavior:`instant`})}onClick=e=>{let t=e.composedPath().filter(e=>e instanceof HTMLAnchorElement&&e.href).map(e=>new URL(e.href)),n=new URL(window.location.href);if(this.options.anchors){let e=t.find(e=>n.host===e.host&&n.pathname===e.pathname&&e.hash);if(e){let t=typeof this.options.anchors==`object`&&this.options.anchors?this.options.anchors:void 0,n=`#${e.hash.split(`#`)[1]}`;this.scrollTo(n,t);return}}if(this.options.stopInertiaOnNavigate&&t.some(e=>n.host===e.host&&n.pathname!==e.pathname)){this.reset();return}};onPointerDown=e=>{e.button===1&&this.reset()};onVirtualScroll=e=>{if(typeof this.options.virtualScroll==`function`&&this.options.virtualScroll(e)===!1)return;let{deltaX:t,deltaY:n,event:r}=e;if(this.emitter.emit(`virtual-scroll`,{deltaX:t,deltaY:n,event:r}),r.ctrlKey||r.lenisStopPropagation)return;let i=r.type.includes(`touch`),a=r.type.includes(`wheel`);this.isTouching=r.type===`touchstart`||r.type===`touchmove`;let o=t===0&&n===0;if(this.options.syncTouch&&i&&r.type===`touchstart`&&o&&!this.isStopped&&!this.isLocked){this.reset();return}let s=this.options.gestureOrientation===`vertical`&&n===0||this.options.gestureOrientation===`horizontal`&&t===0;if(o||s)return;let c=r.composedPath();c=c.slice(0,c.indexOf(this.rootElement));let l=this.options.prevent,u=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`;if(c.find(e=>e instanceof HTMLElement&&(typeof l==`function`&&l?.(e)||e.hasAttribute?.(`data-lenis-prevent`)||u===`vertical`&&e.hasAttribute?.(`data-lenis-prevent-vertical`)||u===`horizontal`&&e.hasAttribute?.(`data-lenis-prevent-horizontal`)||i&&e.hasAttribute?.(`data-lenis-prevent-touch`)||a&&e.hasAttribute?.(`data-lenis-prevent-wheel`)||this.options.allowNestedScroll&&this.hasNestedScroll(e,{deltaX:t,deltaY:n}))))return;if(this.isStopped||this.isLocked){r.cancelable&&r.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&a)){this.isScrolling=`native`,this.animate.stop(),r.lenisStopPropagation=!0;return}let d=n;this.options.gestureOrientation===`both`?d=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation===`horizontal`&&(d=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&n>0||this.animatedScroll===this.limit&&n<0))&&(r.lenisStopPropagation=!0),r.cancelable&&r.preventDefault();let f=i&&this.options.syncTouch,p=i&&r.type===`touchend`;p&&(d=Math.sign(d)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+d,{programmatic:!1,...f?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit(`scroll`,this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling===`native`){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling=`native`),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty(`overflow`);return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty(`overflow`,`clip`);return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:n=!1,lock:r=!1,programmatic:i=!0,lerp:a=i?this.options.lerp:void 0,duration:o=i?this.options.duration:void 0,easing:s=i?this.options.easing:void 0,onStart:c,onComplete:l,force:u=!1,userData:d}={}){if((this.isStopped||this.isLocked)&&!u)return;let f=e,p=t;if(typeof f==`string`&&[`top`,`left`,`start`,`#`].includes(f))f=0;else if(typeof f==`string`&&[`bottom`,`right`,`end`].includes(f))f=this.limit;else{let e=null;if(typeof f==`string`?(e=document.querySelector(f),e||(f===`#top`?f=0:console.warn(`Lenis: Target not found`,f))):f instanceof HTMLElement&&f?.nodeType&&(e=f),e){if(this.options.wrapper!==window){let e=this.rootElement.getBoundingClientRect();p-=this.isHorizontal?e.left:e.top}let t=e.getBoundingClientRect(),n=getComputedStyle(e),r=this.isHorizontal?Number.parseFloat(n.scrollMarginLeft):Number.parseFloat(n.scrollMarginTop),i=getComputedStyle(this.rootElement),a=this.isHorizontal?Number.parseFloat(i.scrollPaddingLeft):Number.parseFloat(i.scrollPaddingTop);f=(this.isHorizontal?t.left:t.top)+this.animatedScroll-(Number.isNaN(r)?0:r)-(Number.isNaN(a)?0:a)}}if(typeof f==`number`){if(f+=p,this.options.infinite){if(i){this.targetScroll=this.animatedScroll=this.scroll;let e=f-this.animatedScroll;e>this.limit/2?f-=this.limit:e<-this.limit/2&&(f+=this.limit)}}else f=Lc(0,f,this.limit);if(f===this.targetScroll){c?.(this),l?.(this);return}if(this.userData=d??{},n){this.animatedScroll=this.targetScroll=f,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}i||(this.targetScroll=f),typeof o==`number`&&typeof s!=`function`?s=Yc:typeof s==`function`&&typeof o!=`number`&&(o=1),this.animate.fromTo(this.animatedScroll,f,{duration:o,easing:s,lerp:a,onStart:()=>{r&&(this.isLocked=!0),this.isScrolling=`smooth`,c?.(this)},onUpdate:(e,t)=>{this.isScrolling=`smooth`,this.lastVelocity=this.velocity,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),i&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(e,{deltaX:t,deltaY:n}){let r=Date.now();e._lenis||={};let i=e._lenis,a,o,s,c,l,u,d,f,p,m;if(r-(i.time??0)>2e3){i.time=Date.now();let t=window.getComputedStyle(e);if(i.computedStyle=t,a=[`auto`,`overlay`,`scroll`].includes(t.overflowX),o=[`auto`,`overlay`,`scroll`].includes(t.overflowY),l=[`auto`].includes(t.overscrollBehaviorX),u=[`auto`].includes(t.overscrollBehaviorY),i.hasOverflowX=a,i.hasOverflowY=o,!(a||o))return!1;d=e.scrollWidth,f=e.scrollHeight,p=e.clientWidth,m=e.clientHeight,s=d>p,c=f>m,i.isScrollableX=s,i.isScrollableY=c,i.scrollWidth=d,i.scrollHeight=f,i.clientWidth=p,i.clientHeight=m,i.hasOverscrollBehaviorX=l,i.hasOverscrollBehaviorY=u}else s=i.isScrollableX,c=i.isScrollableY,a=i.hasOverflowX,o=i.hasOverflowY,d=i.scrollWidth,f=i.scrollHeight,p=i.clientWidth,m=i.clientHeight,l=i.hasOverscrollBehaviorX,u=i.hasOverscrollBehaviorY;if(!(a&&s||o&&c))return!1;let h=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`,g,_,v,y,b,x;if(h===`horizontal`)g=Math.round(e.scrollLeft),_=d-p,v=t,y=a,b=s,x=l;else if(h===`vertical`)g=Math.round(e.scrollTop),_=f-m,v=n,y=o,b=c,x=u;else return!1;return!x&&(g>=_||g<=0)?!0:(v>0?g<_:g>0)&&y&&b}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?`x`:`y`]}get isHorizontal(){return this.options.orientation===`horizontal`}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?Bc(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling===`smooth`}get className(){let e=`lenis`;return this.options.autoToggle&&(e+=` lenis-autoToggle`),this.isStopped&&(e+=` lenis-stopped`),this.isLocked&&(e+=` lenis-locked`),this.isScrolling&&(e+=` lenis-scrolling`),this.isScrolling===`smooth`&&(e+=` lenis-smooth`),e}updateClassName(){this.cleanUpClassName(),this.className.split(` `).forEach(e=>{this.rootElement.classList.add(e)})}cleanUpClassName(){for(let e of Array.from(this.rootElement.classList))(e===`lenis`||e.startsWith(`lenis-`))&&this.rootElement.classList.remove(e)}};pi.registerPlugin($,sc,Fc);var Zc=`1.2.8`,Qc={debug:new URLSearchParams(window.location.search).has(`saDebug`),smoothScroll:!0,forceTopOnBoot:!0,startAt:`top 98%`,ease:`smoothKyne`,waitForFonts:!0,fontReadyTimeout:1500,reduceMotion:`auto`,highlightEnd:`center`,highlightWordStagger:.25,highlightCharStagger:.1,animations:{reveal:{fromY:40,duration:.55,stagger:.08},opacity:{duration:.55,stagger:.08},entryBlur:{fromY:18,fromBlur:10,duration:.75,stagger:.08},scaleIn:{fromScale:.92,duration:.6,stagger:.08},scaleInBlur:{fromScale:.88,fromBlur:8,duration:.7,stagger:.08},counter:{duration:1.2,startValue:0},textReveal:{fromYPercent:120,duration:.95,stagger:.08},highlightWords:{opacity:.1},highlightChars:{opacity:.1}},selectors:{reveal:`.sk-reveal`,textReveal:`.sk-text-lines`,opacity:`.sk-fade`,entryBlur:`.sk-entry-blur`,scaleIn:`.sk-scale-in`,scaleInBlur:`.sk-scale-in-blur`,counter:`.sk-counter`,textHighlightWords:`.sk-text-highlight-words`,textHighlightChars:`.sk-text-highlight-chars`}},$c=!1,el=null;function tl(e){document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,e,{once:!0}):e()}function nl(e){return e.split(`,`).map(e=>`${e.trim()}:not([data-sk-init])`).join(`, `)}function rl(){return window.matchMedia?window.matchMedia(`(prefers-reduced-motion: reduce)`).matches:!1}function il(e){if(!e.waitForFonts||e.reduceMotion||!document.fonts||!document.fonts.ready)return Promise.resolve();let t=Number.isFinite(e.fontReadyTimeout)?Math.max(0,e.fontReadyTimeout):0;return t?Promise.race([document.fonts.ready,new Promise(e=>{setTimeout(e,t)})]):document.fonts.ready}function al(e,t){return{...e,...t||{},reveal:{...e.reveal,...t&&t.reveal||{}},opacity:{...e.opacity,...t&&t.opacity||{}},entryBlur:{...e.entryBlur,...t&&t.entryBlur||{}},scaleIn:{...e.scaleIn,...t&&t.scaleIn||{}},scaleInBlur:{...e.scaleInBlur,...t&&t.scaleInBlur||{}},counter:{...e.counter,...t&&t.counter||{}},textReveal:{...e.textReveal,...t&&t.textReveal||{}},highlightWords:{...e.highlightWords,...t&&t.highlightWords||{}},highlightChars:{...e.highlightChars,...t&&t.highlightChars||{}}}}function ol(e,t){return e.animations?.[t]||{}}function sl(e){let t=String(e||``).replace(/\u00A0/g,` `).trim();if(!t)return null;let n=t.match(/[+-]?[\d][\d.,\s]*/);if(!n)return null;let r=n[0].trim(),i=t.indexOf(r),a=t.slice(0,i).trim(),o=t.slice(i+r.length).trim(),s=r.replace(/\s+/g,``),c=(s.match(/,/g)||[]).length,l=(s.match(/\./g)||[]).length,u=c>0,d=l>0,f=e=>e.replace(/[.,]/g,``),p=(e,t)=>{let n=e.split(t),r=n.shift()||``,i=n.join(``);return`${r.replace(/[.,]/g,``)}.${i.replace(/[.,]/g,``)}`},m=s,h=0;if(u&&d){let e=s.lastIndexOf(`,`),t=s.lastIndexOf(`.`),n=e>t?`,`:`.`,r=Math.max(e,t);m=p(s,n),h=Math.max(0,s.length-r-1)}else if(u||d){let e=u?`,`:`.`,t=u?c:l,n=s.split(e),r=n[n.length-1]||``;t>1||n.length===2&&r.length===3&&n[0].length>=1?(m=f(s),h=0):(m=p(s,e),h=r.length)}else m=s.replace(/[.,\s]/g,``),h=0;let g=Number(m);return Number.isFinite(g)?{prefix:a,suffix:o,value:g,decimals:h}:null}function cl(){return document.documentElement.lang||void 0}function ll(e,t){let n=cl(),r=Number(e);return Number.isFinite(r)?t>0?r.toLocaleString(n,{minimumFractionDigits:t,maximumFractionDigits:t}):Math.round(r).toLocaleString(n):`0`}function ul(e,t,n,r){let i=e.getAttribute(`data-sk-target`),a=Number(e.getAttribute(`data-sk-duration`)),o=e.getAttribute(`data-sk-decimals`),s=e.getAttribute(`data-sk-prefix`),c=e.getAttribute(`data-sk-suffix`),l=ol(n,`counter`),u=r===`data`&&i!=null&&Number.isFinite(Number(i))?Number(i):t.value,d=Number.isFinite(a)&&a>0?a:l.duration??1.2,f=o!=null&&o!==``&&Number.isFinite(Number(o))?Math.max(0,Number(o)):t.decimals;return{target:Number.isFinite(u)?u:t.value,duration:d,decimals:f,prefix:s??t.prefix,suffix:c??t.suffix}}function dl(e){e.smoothScroll&&(el=new Xc({allowNestedScroll:!0,anchors:{offset:-108},autoRaf:!1}),el.on(`scroll`,$.update),pi.ticker.add(e=>{el.raf(e*1e3)}),pi.ticker.lagSmoothing(0),window.__lenis=el)}function fl(e,t,n,r={}){let i=[...document.querySelectorAll(nl(n))];if(!i.length)return;let a=ol(e,t);if(i.forEach(e=>{e.setAttribute(`data-sk-init`,`true`)}),e.reduceMotion){r.reduceMotion(i,a);return}r.prepare(i,a),$.batch(i,{start:e.startAt,once:!0,batchMax:10,markers:e.debug,onEnter:e=>{r.animate(e,a)}})}function pl(e){let t=sl(e.textContent);if(t)return{source:`html`,value:t};let n=e.getAttribute(`data-sk-target`);return n!=null&&Number.isFinite(Number(n))?{source:`data`,value:{prefix:e.getAttribute(`data-sk-prefix`)||``,suffix:e.getAttribute(`data-sk-suffix`)||``,value:Number(n),decimals:e.getAttribute(`data-sk-decimals`)!=null&&e.getAttribute(`data-sk-decimals`)!==``&&Number.isFinite(Number(e.getAttribute(`data-sk-decimals`)))?Math.max(0,Number(e.getAttribute(`data-sk-decimals`))):0}}:null}function ml(e){fl(e,`reveal`,e.selectors.reveal,{reduceMotion:e=>{pi.set(e,{y:0,opacity:1,clearProps:`transform,opacity,willChange`})},prepare:(e,t)=>{pi.set(e,{y:t.fromY,opacity:0,willChange:`transform, opacity`})},animate:(t,n)=>{pi.to(t,{y:0,opacity:1,duration:n.duration,ease:e.ease,stagger:n.stagger,overwrite:`auto`,clearProps:`transform,opacity,willChange`})}})}function hl(e){fl(e,`opacity`,e.selectors.opacity,{reduceMotion:e=>{pi.set(e,{opacity:1,clearProps:`opacity,willChange`})},prepare:e=>{pi.set(e,{opacity:0,willChange:`opacity`})},animate:(t,n)=>{pi.to(t,{opacity:1,duration:n.duration,ease:e.ease,stagger:n.stagger,overwrite:`auto`,clearProps:`opacity,willChange`})}})}function gl(e){fl(e,`entryBlur`,e.selectors.entryBlur,{reduceMotion:e=>{pi.set(e,{y:0,opacity:1,filter:`blur(0px)`,clearProps:`transform,opacity,filter,willChange`})},prepare:(e,t)=>{pi.set(e,{y:t.fromY,opacity:0,filter:`blur(${t.fromBlur}px)`,willChange:`transform, opacity, filter`})},animate:(t,n)=>{pi.to(t,{y:0,opacity:1,filter:`blur(0px)`,duration:n.duration,ease:e.ease,stagger:n.stagger,overwrite:`auto`,clearProps:`transform,opacity,filter,willChange`})}})}function _l(e){fl(e,`scaleIn`,e.selectors.scaleIn,{reduceMotion:e=>{pi.set(e,{scale:1,opacity:1,clearProps:`transform,opacity,willChange`})},prepare:(e,t)=>{pi.set(e,{scale:t.fromScale,opacity:0,transformOrigin:`center center`,willChange:`transform, opacity`})},animate:(t,n)=>{pi.to(t,{scale:1,opacity:1,duration:n.duration,ease:e.ease,stagger:n.stagger,overwrite:`auto`,clearProps:`transform,opacity,willChange`})}})}function vl(e){fl(e,`scaleInBlur`,e.selectors.scaleInBlur,{reduceMotion:e=>{pi.set(e,{scale:1,opacity:1,filter:`blur(0px)`,clearProps:`transform,opacity,filter,willChange`})},prepare:(e,t)=>{pi.set(e,{scale:t.fromScale,opacity:0,filter:`blur(${t.fromBlur}px)`,transformOrigin:`center center`,willChange:`transform, opacity, filter`})},animate:(t,n)=>{pi.to(t,{scale:1,opacity:1,filter:`blur(0px)`,duration:n.duration,ease:e.ease,stagger:n.stagger,overwrite:`auto`,clearProps:`transform,opacity,filter,willChange`})}})}function yl(e){let t=[...document.querySelectorAll(nl(e.selectors.counter))];t.length&&t.forEach(t=>{let n=pl(t);if(!n)return;t.setAttribute(`data-sk-init`,`true`);let r=ul(t,n.value,e,n.source);if(e.reduceMotion){t.textContent=`${r.prefix}${ll(r.target,r.decimals)}${r.suffix}`;return}let i={value:0};$.create({trigger:t,start:e.startAt,once:!0,markers:e.debug,onEnter:()=>{pi.to(i,{value:r.target,duration:r.duration,ease:e.ease,overwrite:`auto`,onUpdate:()=>{t.textContent=`${r.prefix}${ll(i.value,r.decimals)}${r.suffix}`},onComplete:()=>{t.textContent=`${r.prefix}${ll(r.target,r.decimals)}${r.suffix}`}})}})})}function bl(e){let t=[...document.querySelectorAll(nl(e.selectors.textReveal))];t.length&&t.forEach(t=>{if(t.setAttribute(`data-sk-init`,`true`),e.reduceMotion){pi.set(t,{opacity:1,clearProps:`transform,opacity,willChange`});return}let n=ol(e,`textReveal`),r=sc.create(t,{type:`lines`,mask:`lines`,linesClass:`sk-line`,autoSplit:!0,deepSlice:!0});pi.set(r.lines,{yPercent:n.fromYPercent,opacity:0,willChange:`transform, opacity`}),$.create({trigger:t,start:e.startAt,once:!0,markers:e.debug,onEnter:()=>{pi.to(r.lines,{yPercent:0,opacity:1,duration:n.duration,ease:e.ease,stagger:n.stagger,overwrite:`auto`,clearProps:`transform,opacity,willChange`})}})})}function xl(){if(document.getElementById(`sk-motion-css`))return;let e=document.createElement(`style`);e.id=`sk-motion-css`,e.textContent=`
|
|
4
4
|
.sk-hover-underline {
|
|
5
5
|
--sk-hover-underline-thickness: 2px;
|
|
6
|
-
|
|
7
|
-
--sk-hover-underline-
|
|
6
|
+
/* gap driven by font-size (em) so underline scales with text size */
|
|
7
|
+
--sk-hover-underline-gap: clamp(0.08em, 0.12em, 0.32em);
|
|
8
|
+
--sk-hover-underline-duration: 0.4s;
|
|
8
9
|
--sk-hover-underline-ease: cubic-bezier(0.25, 1, 0.5, 1);
|
|
9
10
|
--sk-hover-underline-color: currentColor;
|
|
11
|
+
--sk-hover-underline-scale: 0;
|
|
12
|
+
--sk-hover-underline-origin: left;
|
|
10
13
|
position: relative;
|
|
11
14
|
display: inline-block;
|
|
12
|
-
|
|
15
|
+
line-height: 1.08;
|
|
16
|
+
/* small padding to avoid layout jumps; visual position controlled by ::after bottom */
|
|
17
|
+
padding-bottom: calc(var(--sk-hover-underline-gap) * 0.45);
|
|
13
18
|
text-decoration: none;
|
|
19
|
+
overflow: visible;
|
|
14
20
|
}
|
|
15
21
|
|
|
16
|
-
.sk-hover-underline::before,
|
|
17
22
|
.sk-hover-underline::after {
|
|
18
23
|
content: "";
|
|
19
24
|
position: absolute;
|
|
20
25
|
left: 0;
|
|
21
26
|
right: 0;
|
|
22
|
-
|
|
27
|
+
/* position relative to font-size so underline stays visually fixed under glyphs */
|
|
28
|
+
bottom: calc(-1 * var(--sk-hover-underline-gap));
|
|
23
29
|
height: var(--sk-hover-underline-thickness);
|
|
24
30
|
border-radius: 999px;
|
|
25
31
|
background-color: var(--sk-hover-underline-color);
|
|
26
32
|
pointer-events: none;
|
|
27
|
-
transform: scaleX(0);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
transform: scaleX(var(--sk-hover-underline-scale, 0));
|
|
34
|
+
transform-origin: var(--sk-hover-underline-origin, left) center;
|
|
35
|
+
transition: transform var(--sk-hover-underline-duration)
|
|
36
|
+
var(--sk-hover-underline-ease);
|
|
31
37
|
will-change: transform;
|
|
32
38
|
}
|
|
33
39
|
|
|
34
|
-
.sk-hover-underline::before {
|
|
35
|
-
transform-origin: left center;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.sk-hover-underline::after {
|
|
39
|
-
transform-origin: right center;
|
|
40
|
-
transform: scaleX(1);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
40
|
.sk-hover-underline:hover,
|
|
44
41
|
.sk-hover-underline:focus-visible {
|
|
45
42
|
outline: none;
|
|
46
43
|
}
|
|
47
44
|
|
|
48
|
-
.sk-hover-underline:hover::before,
|
|
49
|
-
.sk-hover-underline:focus-visible::before {
|
|
50
|
-
transform: scaleX(1);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
45
|
.sk-hover-underline:hover::after,
|
|
54
46
|
.sk-hover-underline:focus-visible::after {
|
|
55
|
-
|
|
47
|
+
--sk-hover-underline-scale: 1;
|
|
56
48
|
}
|
|
57
49
|
|
|
58
50
|
@media (prefers-reduced-motion: reduce) {
|
|
59
51
|
.sk-hover-underline,
|
|
60
|
-
.sk-hover-underline::before,
|
|
61
52
|
.sk-hover-underline::after {
|
|
62
53
|
transition: none;
|
|
63
54
|
}
|
|
@@ -66,11 +57,6 @@
|
|
|
66
57
|
padding-bottom: var(--sk-hover-underline-gap);
|
|
67
58
|
}
|
|
68
59
|
|
|
69
|
-
.sk-hover-underline::before,
|
|
70
|
-
.sk-hover-underline::after {
|
|
71
|
-
transform: scaleX(0);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
60
|
.sk-hover-underline::after {
|
|
75
61
|
transform: scaleX(1);
|
|
76
62
|
}
|
|
@@ -111,4 +97,4 @@
|
|
|
111
97
|
.sk-scale-in-blur {
|
|
112
98
|
backface-visibility: hidden;
|
|
113
99
|
}
|
|
114
|
-
`,document.head.appendChild(e)}function Sl(e){if(!e.selectors.textHighlightWords)return;let t=[...document.querySelectorAll(nl(e.selectors.textHighlightWords))];t.length&&t.forEach(t=>{if(t.setAttribute(`data-sk-init`,`true`),e.reduceMotion){pi.set(t,{opacity:1,clearProps:`opacity,willChange`});return}let n=ol(e,`highlightWords`),r=sc.create(t,{type:`words`,wordsClass:`sk-highlight-word`,autoSplit:!0,deepSlice:!0});pi.set(r.words,{opacity:n.opacity??.1,willChange:`opacity`,color:`currentColor`}),pi.to(r.words,{opacity:1,ease:`none`,stagger:e.highlightWordStagger,overwrite:`auto`,scrollTrigger:{trigger:t,start:e.startAt,end:e.highlightEnd,scrub:!0,markers:e.debug}})})}function
|
|
100
|
+
`,document.head.appendChild(e)}function Sl(){let e=[...document.querySelectorAll(`.sk-hover-underline:not([data-sk-hover-underline-init])`)];e.length&&e.forEach(e=>{e.setAttribute(`data-sk-hover-underline-init`,`true`);let t=(t,n)=>{e.style.setProperty(`--sk-hover-underline-origin`,t),e.style.setProperty(`--sk-hover-underline-scale`,n)};t(`left`,`0`),e.addEventListener(`mouseenter`,()=>{t(`left`,`1`)}),e.addEventListener(`mouseleave`,()=>{t(`right`,`0`)}),e.addEventListener(`focus`,()=>{t(`left`,`1`)}),e.addEventListener(`blur`,()=>{t(`right`,`0`)})})}function Cl(e){if(!e.selectors.textHighlightWords)return;let t=[...document.querySelectorAll(nl(e.selectors.textHighlightWords))];t.length&&t.forEach(t=>{if(t.setAttribute(`data-sk-init`,`true`),e.reduceMotion){pi.set(t,{opacity:1,clearProps:`opacity,willChange`});return}let n=ol(e,`highlightWords`),r=sc.create(t,{type:`words`,wordsClass:`sk-highlight-word`,autoSplit:!0,deepSlice:!0});pi.set(r.words,{opacity:n.opacity??.1,willChange:`opacity`,color:`currentColor`}),pi.to(r.words,{opacity:1,ease:`none`,stagger:e.highlightWordStagger,overwrite:`auto`,scrollTrigger:{trigger:t,start:e.startAt,end:e.highlightEnd,scrub:!0,markers:e.debug}})})}function wl(e){if(!e.selectors.textHighlightChars)return;let t=[...document.querySelectorAll(nl(e.selectors.textHighlightChars))];t.length&&t.forEach(t=>{if(t.setAttribute(`data-sk-init`,`true`),e.reduceMotion){pi.set(t,{opacity:1,clearProps:`opacity,willChange`});return}let n=ol(e,`highlightChars`),r=sc.create(t,{type:`words, chars`,wordsClass:`sk-char-word`,charsClass:`sk-highlight-char`,autoSplit:!0,deepSlice:!0});pi.set(r.chars,{opacity:n.opacity??.1,willChange:`opacity`,color:`currentColor`}),pi.to(r.chars,{opacity:1,ease:`none`,stagger:e.highlightCharStagger,overwrite:`auto`,scrollTrigger:{trigger:t,start:e.startAt,end:e.highlightEnd,scrub:!0,markers:e.debug}})})}function Tl(e={}){if($c)return;$c=!0;let t=window.SKMotionConfig||{},n=e.reduceMotion??t.reduceMotion??Qc.reduceMotion,r={...Qc,...t,...e,animations:al(al(Qc.animations,t.animations),e.animations),selectors:{...Qc.selectors,...t.selectors||{},...e.selectors||{}},reduceMotion:n===`auto`||n==null?rl():!!n};r.reduceMotion&&(r.smoothScroll=!1),Fc.create(r.ease,`0.625,0.05,0,1`),$.config({ignoreMobileResize:!0,limitCallbacks:!0}),tl(()=>{xl(),Sl(),r.forceTopOnBoot&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`,window.scrollTo(0,0)),il(r).then(()=>{dl(r),ml(r),hl(r),gl(r),_l(r),vl(r),yl(r),bl(r),Cl(r),wl(r),requestAnimationFrame(()=>{$.refresh()})}),window.__skMotionScan=()=>{Sl(),ml(r),hl(r),gl(r),_l(r),vl(r),yl(r),bl(r),Cl(r),wl(r),$.refresh()},window.__skMotionRefresh=()=>$.refresh(),r.debug&&console.log(`[SK Motion] v${Zc} initialized`)})}window.StudioKyneMotion={init:Tl,version:Zc},window.SKMotionConfig?.autoInit!==!1&&Tl()})();
|
package/package.json
CHANGED