import{t as e}from"./rolldown-runtime.Dh6celcD.mjs";import{D as t,I as n,M as r,P as i,R as a,S as o,a as s,c,g as l,i as u,o as d}from"./react.C562Zofk.mjs";import{C as f,H as p,_ as m,at as h,mt as g,r as _}from"./framer.DeB2Kziq.mjs";function v(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function y(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,ee,te,ne,L,R,z,re,ie,ae,B,oe,se,ce,V,le,ue,de,fe,pe,me,he,H,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,U,W,G,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,K,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,q,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,J,en,Y,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,X,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,Z,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Q,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr=e((()=>{ /*! * GSAP 3.11.3 * https://greensock.com * * @license Copyright 2008-2022, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for * Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */ n(),j={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},M={duration:.5,overwrite:!1,delay:0},N=1e8,P=1/N,F=2*Math.PI,I=F/4,ee=0,te=Math.sqrt,ne=Math.cos,L=Math.sin,R=function(e){return typeof e==`string`},z=function(e){return typeof e==`function`},re=function(e){return typeof e==`number`},ie=function(e){return e===void 0},ae=function(e){return typeof e==`object`},B=function(e){return!1!==e},oe=function(){return a!==void 0},se=function(e){return z(e)||R(e)},ce=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},V=Array.isArray,le=/(?:-?\.?\d|\.)+/gi,ue=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,de=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,fe=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,pe=/[+-]=-?[.\d]+/,me=/[^,'"\[\]\s]+/gi,he=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,H={},ge={},_e=function(e){return(ge=We(e,H))&&er},ve=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},ye=function(e,t){return!t&&console.warn(e)},be=function(e,t){return e&&(H[e]=t)&&ge&&(ge[e]=t)||H},xe=function(){return 0},Se={suppressEvents:!0,isStart:!0,kill:!1},Ce={suppressEvents:!0,kill:!1},we={suppressEvents:!0},Te={},Ee=[],De={},Oe={},ke={},Ae=30,je=[],Me=``,Ne=function(e){var t,n,r=e[0];if(ae(r)||z(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(n=je.length;n--&&!je[n].targetTest(r););t=je[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new mn(e[n],t)))||e.splice(n,1);return e},Pe=function(e){return e._gsap||Ne(Et(e))[0]._gsap},Fe=function(e,t,n){return(n=e[t])&&z(n)?e[t]():ie(n)&&e.getAttribute&&e.getAttribute(t)||n},U=function(e,t){return(e=e.split(`,`)).forEach(t)||e},W=function(e){return Math.round(1e5*e)/1e5||0},G=function(e){return Math.round(1e7*e)/1e7||0},Ie=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},Le=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++ra;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e,t},Xe=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},Ze=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove(e),e._act=0},Qe=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},$e=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},et=function(e,t,n,r){return e._startAt&&(x?e._startAt.revert(Ce):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},tt=function e(t){return!t||t._ts&&e(t.parent)},nt=function(e){return e._repeat?rt(e._tTime,e=e.duration()+e._rDelay)*e:0},rt=function(e,t){var n=Math.floor(e/=t);return e&&n===e?n-1:n},it=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},at=function(e){return e._end=G(e._start+(e._tDur/Math.abs(e._ts||e._rts||P)||0))},ot=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=G(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),at(e),n._dirty||Qe(n,e)),e},st=function(e,t){var n;if((t._time||t._initted&&!t._dur)&&(n=it(e.rawTime(),t),(!t._dur||xt(0,t.totalDuration(),n)-t._tTime>P)&&t.render(n,!0)),Qe(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-P}},ct=function(e,t,n,r){return t.parent&&Ze(t),t._start=G((re(n)?n:n||e!==C?vt(e,n,t):e._time)+t._delay),t._end=G(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Ye(e,t,`_first`,`_last`,e._sort?`_start`:0),ft(t)||(e._recent=t),r||st(e,t),e._ts<0&&ot(e,e._tTime),e},lt=function(e,t){return(H.ScrollTrigger||ve(`scrollTrigger`,t))&&H.ScrollTrigger.create(t,e)},ut=function(e,t,n,r,i){if(Sn(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!x&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&O!==J.frame)return Ee.push(e),e._lazy=[i,r],1},dt=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},ft=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},pt=function(e,t,n,r){var i,a,o,s=e.ratio,c=t<0||!t&&(!e._start&&dt(e)&&!(!e._initted&&ft(e))||(e._ts<0||e._dp._ts<0)&&!ft(e))?0:1,l=e._rDelay,u=0;if(l&&e._repeat&&(u=xt(0,e._tDur,t),a=rt(u,l),e._yoyo&&1&a&&(c=1-c),a!==rt(e._tTime,l)&&(s=1-c,e.vars.repeatRefresh&&e._initted&&e.invalidate())),c!==s||x||r||e._zTime===P||!t&&e._zTime){if(!e._initted&&ut(e,t,r,n,u))return;for(o=e._zTime,e._zTime=t||(n?P:0),n||=t&&!o,e.ratio=c,e._from&&(c=1-c),e._time=0,e._tTime=u,i=e._pt;i;)i.r(c,i.d),i=i._next;t<0&&et(e,t,n,!0),e._onUpdate&&!n&&Ut(e,`onUpdate`),u&&e._repeat&&!n&&e.parent&&Ut(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===c&&(c&&Ze(e,1),!n&&!x&&(Ut(e,c?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},mt=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._start0&&!r&&ot(e,e._tTime=e._tDur*o),e.parent&&at(e),n||Qe(e.parent,e),e},gt=function(e){return e instanceof X?Qe(e):ht(e,e._dur)},_t={_start:0,endTime:xe,totalDuration:xe},vt=function e(t,n,r){var i,a,o,s=t.labels,c=t._recent||_t,l=t.duration()>=N?c.endTime(!1):t._dur;return R(n)&&(isNaN(n)||n in s)?(a=n.charAt(0),o=n.substr(-1)===`%`,i=n.indexOf(`=`),a===`<`||a===`>`?(i>=0&&(n=n.replace(/=/,``)),(a===`<`?c._start:c.endTime(c._repeat>=0))+(parseFloat(n.substr(1))||0)*(o?(i<0?c:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=l),s[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),o&&r&&(a=a/100*(V(r)?r[0]:r).totalDuration()),i>1?e(t,n.substr(0,i-1),r)+a:l+a)):n==null?l:+n},yt=function(e,t,n){var r,i,a=re(t[1]),o=(a?2:1)+(e<2?0:1),s=t[o];if(a&&(s.duration=t[1]),s.parent=n,e){for(r=s,i=n;i&&!(`immediateRender`in r);)r=i.vars.defaults||{},i=B(i.vars.inherit)&&i.parent;s.immediateRender=B(r.immediateRender),e<2?s.runBackwards=1:s.startAt=t[o-1]}return new Z(t[0],s,t[o+1])},bt=function(e,t){return e||e===0?t(e):t},xt=function(e,t,n){return nt?t:n},K=function(e,t){return R(e)&&(t=he.exec(e))?t[1]:``},St=function(e,t,n){return bt(n,(function(n){return xt(e,t,n)}))},Ct=[].slice,wt=function(e,t){return e&&ae(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&ae(e[0]))&&!e.nodeType&&e!==w},Tt=function(e,t,n){return n===void 0&&(n=[]),e.forEach((function(e){var r;return R(e)&&!t||wt(e,1)?(r=n).push.apply(r,Et(e)):n.push(e)}))||n},Et=function(e,t,n){return S&&!t&&S.selector?S.selector(e):!R(e)||n||!T&&en()?V(e)?Tt(e,n):wt(e)?Ct.call(e,0):e?[e]:[]:Ct.call((t||E).querySelectorAll(e),0)},Dt=function(e){return e=Et(e)[0]||ye(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return Et(t,n.querySelectorAll?n:n===e?ye(`Invalid scope`)||E.createElement(`div`):e)}},Ot=function(e){return e.sort((function(){return .5-Math.random()}))},kt=function(e){if(z(e))return e;var t=ae(e)?e:{each:e},n=ln(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return R(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f,p,m,h,g,_,v,y,b,x=(d||t).length,S=a[x];if(!S){if(b=t.grid===`auto`?0:(t.grid||[1,N])[1],!b){for(v=-N;v<(v=d[b++].getBoundingClientRect().left)&&bv&&(v=g),gx?x-1:c?c===`y`?x/b:b:Math.max(b,x/b))||0)*(r===`edges`?-1:1),S.b=x<0?i-x:i,S.u=K(t.amount||t.each)||0,n=n&&x<0?sn(n):n}return x=(S[e]-S.min)/S.max||0,G(S.b+(n?n(x):x)*S.v)+S.u}},At=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=G(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(re(n)?0:K(n))}},jt=function(e,t){var n,r,i=V(e);return!i&&ae(e)&&(n=i=e.radius||N,e.values?(e=Et(e.values),(r=!re(e[0]))&&(n*=n)):e=At(e.increment)),bt(t,i?z(e)?function(t){return r=e(t),Math.abs(r-t)<=n?r:t}:function(t){for(var i,a,o=parseFloat(r?t.x:t),s=parseFloat(r?t.y:0),c=N,l=0,u=e.length;u--;)r?(i=e[u].x-o,a=e[u].y-s,i=i*i+a*a):i=Math.abs(e[u]-o),ii?a-e:e)}))},zt=function(e){for(var t,n,r,i,a=0,o=``;~(t=e.indexOf(`random(`,a));)r=e.indexOf(`)`,t),i=e.charAt(t+7)===`[`,n=e.substr(t+7,r-t-7).match(i?me:le),o+=e.substr(a,t-a)+Mt(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return o+e.substr(a,e.length-a)},Bt=function(e,t,n,r,i){var a=t-e,o=r-n;return bt(i,(function(t){return n+((t-e)/a*o||0)}))},Vt=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o,s,c,l,u,d=R(t),f={};if(!0===r&&(i=1)&&(r=null),d)t={p:t},n={p:n};else if(V(t)&&!V(n)){for(c=[],l=t.length,u=l-2,s=1;s(i=Math.abs(i))&&(a=r,s=i);return a},Ut=function(e,t,n){var r,i,a,o=e.vars,s=o[t],c=S,l=e._ctx;if(s)return r=o[t+`Params`],i=o.callbackScope||e,n&&Ee.length&&Re(),l&&(S=l),a=r?s.apply(i,r):s.call(i),S=c,a},Wt=function(e){return Ze(e),e.scrollTrigger&&e.scrollTrigger.kill(!!x),e.progress()<1&&Ut(e,`onInterrupt`),e},Gt=function(e){e=!e.name&&e.default||e;var t=e.name,n=z(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:xe,render:Ln,add:yn,kill:zn,modifier:Rn,rawVars:0},a={targetTest:0,get:0,getSetter:Nn,aliases:{},register:0};if(en(),e!==r){if(Oe[t])return;He(r,He(Ke(e,i),a)),We(r.prototype,We(i,Ke(e,a))),Oe[r.prop=t]=r,e.targetTest&&(je.push(r),Te[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}be(t,r),e.register&&e.register(er,r,Q)},q=255,Kt={aqua:[0,q,q],lime:[0,q,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,q],navy:[0,0,128],white:[q,q,q],olive:[128,128,0],yellow:[q,q,0],orange:[q,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[q,0,0],pink:[q,192,203],cyan:[0,q,q],transparent:[q,q,q,0]},qt=function(e,t,n){return e+=e<0?1:e>1?-1:0,(6*e<1?t+(n-t)*e*6:e<.5?n:3*e<2?t+(n-t)*(2/3-e)*6:t)*q+.5|0},Jt=function(e,t,n){var r,i,a,o,s,c,l,u,d,f,p=e?re(e)?[e>>16,e>>8&q,e&q]:0:Kt.black;if(!p){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),Kt[e])p=Kt[e];else if(e.charAt(0)===`#`){if(e.length<6&&(r=e.charAt(1),i=e.charAt(2),a=e.charAt(3),e=`#`+r+r+i+i+a+a+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return p=parseInt(e.substr(1,6),16),[p>>16,p>>8&q,p&q,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),p=[e>>16,e>>8&q,e&q]}else if(e.substr(0,3)===`hsl`)if(p=f=e.match(le),t){if(~e.indexOf(`=`))return p=e.match(ue),n&&p.length<4&&(p[3]=1),p}else o=p[0]%360/360,s=p[1]/100,c=p[2]/100,i=c<=.5?c*(s+1):c+s-c*s,r=2*c-i,p.length>3&&(p[3]*=1),p[0]=qt(o+1/3,r,i),p[1]=qt(o,r,i),p[2]=qt(o-1/3,r,i);else p=e.match(le)||Kt.transparent;p=p.map(Number)}return t&&!f&&(r=p[0]/q,i=p[1]/q,a=p[2]/q,l=Math.max(r,i,a),u=Math.min(r,i,a),c=(l+u)/2,l===u?o=s=0:(d=l-u,s=c>.5?d/(2-l-u):d/(l+u),o=l===r?(i-a)/d+(ic&&(u+=y-l),d+=y,_=d-u,h=_-p,(h>0||b)&&(v=++r.frame,i=_-1e3*r.time,r.time=_/=1e3,p+=h+(h>=f?4:f-h),g=1),b||(e=t(n)),g)for(o=0;o=t&&o--},_listeners:m},r}(),en=function(){return!A&&J.wake()},Y={},tn=/^[\d.\-M][\d.\-,\s]/,nn=/["']/g,rn=function(e){for(var t,n,r,i={},a=e.substr(1,e.length-3).split(`:`),o=a[0],s=1,c=a.length;s1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[rn(t[1])]:an(e).split(`,`).map(Be)):Y._CE&&tn.test(e)?Y._CE(``,e):n},sn=function(e){return function(t){return 1-e(1-t)}},cn=function e(t,n){for(var r,i=t._first;i;)i instanceof X?e(i,n):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==n&&(i.timeline?e(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},ln=function(e,t){return e&&(z(e)?e:Y[e]||on(e))||t},un=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(2*e)/2:1-t(2*(1-e))/2});var i,a={easeIn:t,easeOut:n,easeInOut:r};return U(e,(function(e){for(var t in Y[e]=H[e]=a,Y[i=e.toLowerCase()]=n,a)Y[i+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=Y[e+`.`+t]=a[t]})),a},dn=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}},fn=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/F*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*L((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:dn(s);return a=F/a,c.config=function(n,r){return e(t,n,r)},c},pn=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)}:dn(r);return i.config=function(n){return e(t,n)},i},U(`Linear,Quad,Cubic,Quart,Quint,Strong`,(function(e,t){var n=t<5?t+1:t;un(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?(2*e)**n/2:1-(2*(1-e))**n/2}))})),Y.Linear.easeNone=Y.none=Y.Linear.easeIn,un(`Elastic`,fn(`in`),fn(`out`),fn()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,ht(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(en(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ot(this,e),!n._dp||n.parent||st(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&&e0||!this._tDur&&!e)&&ct(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===P||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),ze(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+nt(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.ratio},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+nt(this),t):this.duration()?Math.min(1,this._time/this._dur):this.ratio},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?rt(this._tTime,n)+1:1},t.timeScale=function(e){if(!arguments.length)return this._rts===-P?0:this._rts;if(this._rts===e)return this;var t=this.parent&&this._ts?it(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-P?0:this._rts,this.totalTime(xt(-this._delay,this._tDur,t),!0),at(this),$e(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):(en(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==P&&(this._tTime-=P)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&ct(t,this,e-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?it(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=we);var t=x;return x=e,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&!1!==e.kill&&this.kill(),x=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(t._ts||1),t=t._dp;return!this.parent&&this.vars.immediateRender?-1:n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,gt(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,gt(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(vt(this,e),B(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,B(t))},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?-P:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-P,this},t.isActive=function(){var e,t=this.parent||this._dp,n=this._start;return!!(!t||this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=n&&e1?(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;return new Promise((function(n){var r=z(e)?e:Ve,i=function(){var e=t.then;t.then=null,z(r)&&(r=r(t))&&(r.then||r===t)&&(t.then=e),n(r),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?i():t._prom=i}))},t.kill=function(){Wt(this)},e}(),He(hn.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:-P,_prom:0,_ps:!1,_rts:1}),X=function(e){y(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=B(t.sortChildren),C&&ct(t.parent||C,v(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&<(v(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return yt(0,arguments,this),this},n.from=function(e,t,n){return yt(1,arguments,this),this},n.fromTo=function(e,t,n,r){return yt(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,qe(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Z(e,t,vt(this,n),1),this},n.call=function(e,t,n){return ct(this,Z.delayedCall(0,e,t),n)},n.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 Z(e,n,vt(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,qe(n).immediateRender=B(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,qe(r).immediateRender=B(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r,i,a,o,s,c,l,u,d,f,p,m,h=this._time,g=this._dirty?this.totalDuration():this._tDur,_=this._dur,v=e<=0?0:G(e),y=this._zTime<0!=e<0&&(this._initted||!_);if(this!==C&&v>g&&e>=0&&(v=g),v!==this._tTime||n||y){if(h!==this._time&&_&&(v+=this._time-h,e+=this._time-h),r=v,d=this._start,u=this._ts,c=!u,y&&(_||(h=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(p=this._yoyo,s=_+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(100*s+e,t,n);if(r=G(v%s),v===g?(o=this._repeat,r=_):(o=~~(v/s),o&&o===v/s&&(r=_,o--),r>_&&(r=_)),f=rt(this._tTime,s),!h&&this._tTime&&f!==o&&(f=o),p&&1&o&&(r=_-r,m=1),o!==f&&!this._lock){var b=p&&1&f,S=b===(p&&1&o);if(o=h&&e>=0)for(i=this._first;i;){if(a=i._next,(i._act||r>=i._start)&&i._ts&&l!==i){if(i.parent!==this)return this.render(e,t,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,t,n),r!==this._time||!this._ts&&!c){l=0,a&&(v+=this._zTime=-P);break}}i=a}else{i=this._last;for(var w=e<0?e:r;i;){if(a=i._prev,(i._act||w<=i._end)&&i._ts&&l!==i){if(i.parent!==this)return this.render(e,t,n);if(i.render(i._ts>0?(w-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(w-i._start)*i._ts,t,n||x&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!c){l=0,a&&(v+=this._zTime=w?-P:P);break}}i=a}}if(l&&!t&&(this.pause(),l.render(r>=h?0:-P)._zTime=r>=h?1:-1,this._ts))return this._start=d,at(this),this.render(e,t,n);this._onUpdate&&!t&&Ut(this,`onUpdate`,!0),(v===g&&this._tTime>=this.totalDuration()||!v&&h)&&(d===this._start||Math.abs(u)!==Math.abs(this._ts))&&!this._lock&&((e||!_)&&(v===g&&this._ts>0||!v&&this._ts<0)&&Ze(this,1),!t&&!(e<0&&!h)&&(v||h||!g)&&(Ut(this,v===g&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(v0)&&this._prom()))}return this},n.add=function(e,t){var n=this;if(re(t)||(t=vt(this,t,e)),!(e instanceof hn)){if(V(e))return e.forEach((function(e){return n.add(e,t)})),this;if(R(e))return this.addLabel(e,t);if(!z(e))return this;e=Z.delayedCall(0,e)}return this===e?this:ct(this,e,t)},n.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=-N);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Z?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return R(e)?this.removeLabel(e):z(e)?this.killTweensOf(e):(Xe(this,e),e===this._recent&&(this._recent=this._last),Qe(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=G(J.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=vt(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Z.delayedCall(0,t||xe,n);return r.data=`isPause`,this._hasPause=1,ct(this,r,vt(this,e))},n.removePause=function(e){var t=this._first;for(e=vt(this,e);t;)t._start===e&&t.data===`isPause`&&Ze(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)gn!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n,r=[],i=Et(e),a=this._first,o=re(t);a;)a instanceof Z?Le(a._targets,i)&&(o?(!gn||a._initted&&a._ts)&&a.globalTime(0)<=t&&a.globalTime(a.totalDuration())>t:!t||a.isActive())&&r.push(a):(n=a.getTweensOf(i,t)).length&&r.push.apply(r,n),a=a._next;return r},n.tweenTo=function(e,t){t||={};var n,r=this,i=vt(r,e),a=t,o=a.startAt,s=a.onStart,c=a.onStartParams,l=a.immediateRender,u=Z.to(r,He({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:i,overwrite:`auto`,duration:t.duration||Math.abs((i-(o&&`time`in o?o.time:r._time))/r.timeScale())||P,onStart:function(){if(r.pause(),!n){var e=t.duration||Math.abs((i-(o&&`time`in o?o.time:r._time))/r.timeScale());u._dur!==e&&ht(u,e,0,1).render(u._time,!0,!0),n=1}s&&s.apply(u,c||[])}},t));return l?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,He({startAt:{time:vt(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Ht(this,vt(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Ht(this,vt(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+P)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);for(var r,i=this._first,a=this.labels;i;)i._start>=n&&(i._start+=e,i._end+=e),i=i._next;if(t)for(r in a)a[r]>=n&&(a[r]+=e);return Qe(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t,n=this._first;n;)t=n._next,this.remove(n),n=t;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),Qe(this)},n.totalDuration=function(e){var t,n,r,i=0,a=this,o=a._last,s=N;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-e:e));if(a._dirty){for(r=a.parent;o;)t=o._prev,o._dirty&&o.totalDuration(),n=o._start,n>s&&a._sort&&o._ts&&!a._lock?(a._lock=1,ct(a,o,n-o._delay,1)._lock=0):s=n,n<0&&o._ts&&(i-=n,(!r&&!a._dp||r&&r.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-1/0),s=0),o._end>i&&o._ts&&(i=o._end),o=t;ht(a,a===C&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},t.updateRoot=function(e){if(C._ts&&(ze(C,it(e,C)),O=J.frame),J.frame>=Ae){Ae+=j.autoSleep||120;var t=C._first;if((!t||!t._ts)&&j.autoSleep&&J._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||J.sleep()}}},t}(hn),He(X.prototype,{_lock:0,_hasPause:0,_forcing:0}),vn=function(e,t,n,r,i,a,o){var s,c,l,u,d,f,p,m,h=new Q(this._pt,e,t,0,1,In,null,i),g=0,_=0;for(h.b=n,h.e=r,n+=``,r+=``,(p=~r.indexOf(`random(`))&&(r=zt(r)),a&&(m=[n,r],a(m,e,t),n=m[0],r=m[1]),c=n.match(fe)||[];s=fe.exec(r);)u=s[0],d=r.substring(g,s.index),l?l=(l+1)%5:d.substr(-5)===`rgba(`&&(l=1),u!==c[_++]&&(f=parseFloat(c[_-1])||0,h._pt={_next:h._pt,p:d||_===1?d:`,`,s:f,c:u.charAt(1)===`=`?Ie(f,u)-f:parseFloat(u)-f,m:l&&l<4?Math.round:0},g=fe.lastIndex);return h.c=g`)})),o.duration();else{for(u in c={},S)u===`ease`||u===`easeEach`||Tn(u,S[u],c,S.easeEach);for(u in c)for(k=c[u].sort((function(e,t){return e.t-t.t})),N=0,s=0;sp-P&&!h?p:em&&(r=m)),c=this._yoyo&&1&a,c&&(d=this._yEase,r=m-r),s=rt(this._tTime,o),r===f&&!n&&this._initted)return this._tTime=g,this;a!==s&&(u&&this._yEase&&cn(u,c),this.vars.repeatRefresh&&!c&&!this._lock&&(this._lock=n=1,this.render(G(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(ut(this,h?e:r,n,t,g))return this._tTime=0,this;if(f!==this._time)return this;if(m!==this._dur)return this.render(e,t,n)}if(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(d||this._ease)(r/m),this._from&&(this.ratio=l=1-l),r&&!f&&!t&&(Ut(this,`onStart`),this._tTime!==g))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;u&&u.render(e<0?e:!r&&c?-P:u._dur*u._ease(r/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(h&&et(this,e,t,n),Ut(this,`onUpdate`)),this._repeat&&a!==s&&this.vars.onRepeat&&!t&&this.parent&&Ut(this,`onRepeat`),(g===this._tDur||!g)&&this._tTime===g&&(h&&!this._onUpdate&&et(this,e,!0,!0),(e||!m)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Ze(this,1),!t&&!(h&&!f)&&(g||f||c)&&(Ut(this,g===p?`onComplete`:`onReverseComplete`,!0),this._prom&&!(g0)&&this._prom()))}}else pt(this,e,t,n);return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r){A||J.wake(),this._ts||this.play();var i,a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Sn(this,a),i=this._ease(a/this._dur),Cn(this,e,t,n,r,i,a)?this.resetTo(e,t,n,r):(ot(this,0),this.parent||Ye(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Wt(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,gn&&!0!==gn.vars.overwrite)._first||Wt(this),this.parent&&n!==this.timeline.totalDuration()&&ht(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,o,s,c,l,u=this._targets,d=e?Et(e):u,f=this._ptLookup,p=this._pt;if((!t||t===`all`)&&Je(u,d))return t===`all`&&(this._pt=0),Wt(this);for(r=this._op=this._op||[],t!==`all`&&(R(t)&&(s={},U(t,(function(e){return s[e]=1})),t=s),t=wn(u,t)),l=u.length;l--;)if(~d.indexOf(u[l]))for(s in i=f[l],t===`all`?(r[l]=t,o=i,a={}):(a=r[l]=r[l]||{},o=t),o)c=i&&i[s],c&&(`kill`in c.d&&!0!==c.d.kill(s)||Xe(this,c,`_pt`),delete i[s]),a!==`all`&&(a[s]=1);return this._initted&&!this._pt&&p&&Wt(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return yt(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return yt(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return C.killTweensOf(e,t,n)},t}(hn),He(Z.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),U(`staggerTo,staggerFrom,staggerFromTo`,(function(e){Z[e]=function(){var t=new X,n=Ct.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}})),kn=function(e,t,n){return e[t]=n},An=function(e,t,n){return e[t](n)},jn=function(e,t,n,r){return e[t](r.fp,n)},Mn=function(e,t,n){return e.setAttribute(t,n)},Nn=function(e,t){return z(e[t])?An:ie(e[t])&&e.setAttribute?Mn:kn},Pn=function(e,t){return t.set(t.t,t.p,Math.round(1e6*(t.s+t.c*e))/1e6,t)},Fn=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},In=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round(1e4*(n.s+n.c*e))/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Ln=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Rn=function(e,t,n,r){for(var i,a=this._pt;a;)i=a._next,a.p===r&&a.modifier(e,t,n),a=i},zn=function(e){for(var t,n,r=this._pt;r;)n=r._next,r.p===e&&!r.op||r.op===e?Xe(this,r,`_pt`):r.dep||(t=1),r=n;return!t},Bn=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},Vn=function(e){for(var t,n,r,i,a=e._pt;a;){for(t=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:i)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:i=a,a=t}e._pt=r},Q=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||Pn,this.d=o||this,this.set=s||kn,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=Bn,this.m=e,this.mt=n,this.tween=t},e}(),U(Me+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger`,(function(e){return Te[e]=1})),H.TweenMax=H.TweenLite=Z,H.TimelineLite=H.TimelineMax=X,C=new X({sortChildren:!1,defaults:M,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),j.stringFilter=$t,Hn=[],Un={},Wn=[],Gn=0,Kn=function(e){return(Un[e]||Wn).map((function(e){return e()}))},qn=function(){var e=Date.now(),t=[];e-Gn>2&&(Kn(`matchMediaInit`),Hn.forEach((function(e){var n,r,i,a,o=e.queries,s=e.conditions;for(r in o)n=w.matchMedia(o[r]).matches,n&&(i=1),n!==s[r]&&(s[r]=n,a=1);a&&(e.revert(),i&&t.push(e))})),Kn(`matchMediaRevert`),t.forEach((function(e){return e.onMatch(e)})),Gn=e,Kn(`matchMedia`))},Jn=function(){function e(e,t){this.selector=t&&Dt(t),this.data=[],this._r=[],this.isReverted=!1,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){z(e)&&(n=t,t=e,e=z);var r=this,i=function(){var e,i=S,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=Dt(n)),S=r,e=t.apply(r,arguments),z(e)&&r._r.push(e),S=i,r.selector=a,r.isReverted=!1,e};return r.last=i,e===z?i(r):e?r[e]=i:i},t.ignore=function(e){var t=S;S=null,e(this),S=t},t.getTweens=function(){var t=[];return this.data.forEach((function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Z&&!(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){var r=this.getTweens();this.data.forEach((function(e){e.data===`isFlip`&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(e){return r.splice(r.indexOf(e),1)})))})),r.map((function(e){return{g:e.globalTime(0),t:e}})).sort((function(e,t){return t.g-e.g||-1})).forEach((function(t){return t.t.revert(e)})),this.data.forEach((function(t){return!(t instanceof hn)&&t.revert&&t.revert(e)})),this._r.forEach((function(t){return t(e,n)})),this.isReverted=!0}else this.data.forEach((function(e){return e.kill&&e.kill()}));if(this.clear(),t){var i=Hn.indexOf(this);~i&&Hn.splice(i,1)}},t.revert=function(e){this.kill(e||{})},e}(),Yn=function(){function e(e){this.contexts=[],this.scope=e}var t=e.prototype;return t.add=function(e,t,n){ae(e)||(e={matches:e});var r,i,a,o=new Jn(0,n||this.scope),s=o.conditions={};for(i in this.contexts.push(o),t=o.add(`onMatch`,t),o.queries=e,e)i===`all`?a=1:(r=w.matchMedia(e[i]),r&&(Hn.indexOf(o)<0&&Hn.push(o),(s[i]=r.matches)&&(a=1),r.addListener?r.addListener(qn):r.addEventListener(`change`,qn)));return a&&t(o),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach((function(t){return t.kill(e,!0)}))},e}(),Xn={registerPlugin:function(){[...arguments].forEach((function(e){return Gt(e)}))},timeline:function(e){return new X(e)},getTweensOf:function(e,t){return C.getTweensOf(e,t)},getProperty:function(e,t,n,r){R(e)&&(e=Et(e)[0]);var i=Pe(e||{}).get,a=n?Ve:Be;return n===`native`&&(n=``),e&&(t?a((Oe[t]&&Oe[t].get||i)(e,t,n,r)):function(t,n,r){return a((Oe[t]&&Oe[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=Et(e),e.length>1){var r=e.map((function(e){return er.quickSetter(e,t,n)})),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=Oe[t],o=Pe(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;k._pt=0,r.init(e,n?t+n:t,k,0,[e]),r.render(1,r),k._pt&&Ln(1,k)}: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=er.to(e,We((r={},r[t]=`+=0.1`,r.paused=!0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return C.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=ln(e.ease,M.ease)),Ge(M,e||{})},config:function(e){return Ge(j,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&&!Oe[e]&&!H[e]&&ye(t+` effect requires `+e+` plugin.`)})),ke[t]=function(e,t,r){return n(Et(e),He(t||{},i),r)},a&&(X.prototype[t]=function(e,n,r){return this.add(ke[t](e,ae(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){Y[e]=ln(t)},parseEase:function(e,t){return arguments.length?ln(e,t):Y},getById:function(e){return C.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n,r,i=new X(e);for(i.smoothChildTiming=B(e.smoothChildTiming),C.remove(i),i._dp=0,i._time=i._tTime=C._time,n=C._first;n;)r=n._next,!t&&!n._dur&&n instanceof Z&&n.vars.onComplete===n._targets[0]||ct(i,n,n._start-n._delay),n=r;return ct(C,i,0),i},context:function(e,t){return e?new Jn(e,t):S},matchMedia:function(e){return new Yn(e)},matchMediaRefresh:function(){return Hn.forEach((function(e){var t,n,r=e.conditions;for(n in r)r[n]&&(r[n]=!1,t=1);t&&e.revert()}))||qn()},addEventListener:function(e,t){var n=Un[e]||(Un[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Un[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:Lt,wrapYoyo:Rt,distribute:kt,random:Mt,snap:jt,normalize:Ft,getUnit:K,clamp:St,splitColor:Jt,toArray:Et,selector:Dt,mapRange:Bt,pipe:Nt,unitize:Pt,interpolate:Vt,shuffle:Ot},install:_e,effects:ke,ticker:J,updateRoot:X.updateRoot,plugins:Oe,globalTimeline:C,core:{PropTween:Q,globals:be,Tween:Z,Timeline:X,Animation:hn,getCache:Pe,_removeLinkedListItem:Xe,reverting:function(){return x},context:function(e){return e&&S&&(S.data.push(e),e._ctx=S),S},suppressOverwrites:function(e){return b=e}}},U(`to,from,fromTo,delayedCall,set,killTweensOf`,(function(e){return Xn[e]=Z[e]})),J.add(X.updateRoot),k=Xn.to({},{duration:0}),Zn=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},Qn=function(e,t){var n,r,i,a=e._targets;for(n in t)for(r=a.length;r--;)i=e._ptLookup[r][n],(i&&=i.d)&&(i._pt&&(i=Zn(i,n)),i&&i.modifier&&i.modifier(t[n],e,a[r],n))},$n=function(e,t){return{name:e,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(R(n)&&(r={},U(n,(function(e){return r[e]=1})),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}Qn(e,n)}}}},er=Xn.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;)x?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},$n(`roundProps`,At),$n(`modifiers`),$n(`snap`,jt))||Xn,Z.version=X.version=er.version=`3.11.3`,D=1,oe()&&en(),Y.Power0,Y.Power1,Y.Power2,Y.Power3,Y.Power4,Y.Linear,Y.Quad,Y.Cubic,Y.Quart,Y.Quint,Y.Strong,Y.Elastic,Y.Back,Y.SteppedEase,Y.Bounce,Y.Sine,Y.Expo,Y.Circ})),nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,$,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si=e((()=>{n(),tr(),ur=function(){return a!==void 0},dr={},fr=180/Math.PI,pr=Math.PI/180,mr=Math.atan2,hr=1e8,gr=/([A-Z])/g,_r=/(left|right|width|margin|padding|x)/i,vr=/[\s,\(]\S/,yr={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},br=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},xr=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},Sr=function(e,t){return t.set(t.t,t.p,e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)},Cr=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},wr=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Tr=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},Er=function(e,t,n){return e.style[t]=n},Dr=function(e,t,n){return e.style.setProperty(t,n)},Or=function(e,t,n){return e._gsap[t]=n},kr=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Ar=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},jr=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},$=`transform`,Mr=$+`Origin`,Nr=function(e,t){var n=this,r=this.target,i=r.style;if(e in dr){if(this.tfm=this.tfm||{},e!==`transform`&&(e=yr[e]||e,~e.indexOf(`,`)?e.split(`,`).forEach((function(e){return n.tfm[e]=Zr(r,e)})):this.tfm[e]=r._gsap.x?r._gsap[e]:Zr(r,e)),this.props.indexOf($)>=0)return;r._gsap.svg&&(this.svgo=r.getAttribute(`data-svg-origin`),this.props.push(Mr,t,``)),e=$}(i||t)&&this.props.push(e,t,i[e])},Pr=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Fr=function(){var e,t,n=this.props,r=this.target,i=r.style,a=r._gsap;for(e=0;e=0?zr[i]:``)+e},Vr=function(){ur()&&a.document&&(nr=a,rr=nr.document,ir=rr.documentElement,or=Lr(`div`)||{style:{}},Lr(`div`),$=Br($),Mr=$+`Origin`,or.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,lr=!!Br(`perspective`),cr=er.core.reverting,ar=1)},Hr=function e(t){var n,r=Lr(`svg`,this.ownerSVGElement&&this.ownerSVGElement.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),i=this.parentNode,a=this.nextSibling,o=this.style.cssText;if(ir.appendChild(r),r.appendChild(this),this.style.display=`block`,t)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=e}catch{}else this._gsapBBox&&(n=this._gsapBBox());return i&&(a?i.insertBefore(this,a):i.appendChild(this)),ir.removeChild(r),this.style.cssText=o,n},Ur=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},Wr=function(e){var t;try{t=e.getBBox()}catch{t=Hr.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===Hr||(t=Hr.call(e,!0)),!t||t.width||t.x||t.y?t:{x:+Ur(e,[`x`,`cx`,`x1`])||0,y:+Ur(e,[`y`,`cy`,`y1`])||0,width:0,height:0}},Gr=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Wr(e))},Kr=function(e,t){if(t){var n=e.style;t in dr&&t!==Mr&&(t=$),n.removeProperty?(t.substr(0,2)!==`ms`&&t.substr(0,6)!==`webkit`||(t=`-`+t),n.removeProperty(t.replace(gr,`-$1`).toLowerCase())):n.removeAttribute(t)}},qr=function(e,t,n,r,i,a){var o=new Q(e._pt,t,n,0,1,a?Tr:wr);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},Jr={deg:1,rad:1,turn:1},Yr={grid:1,flex:1},Xr=function e(t,n,r,i){var a,o,s,c,l=parseFloat(r)||0,u=(r+``).trim().substr((l+``).length)||`px`,d=or.style,f=_r.test(n),p=t.tagName.toLowerCase()===`svg`,m=(p?`client`:`offset`)+(f?`Width`:`Height`),h=100,g=i===`px`,_=i===`%`;return i===u||!l||Jr[i]||Jr[u]?l:(u!==`px`&&!g&&(l=e(t,n,r,`px`)),c=t.getCTM&&Gr(t),(_||u===`%`)&&(dr[n]||~n.indexOf(`adius`))?(a=c?t.getBBox()[f?`width`:`height`]:t[m],W(_?l/a*h:l/100*a)):(d[f?`width`:`height`]=h+(g?u:i),o=~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!p?t:t.parentNode,c&&(o=(t.ownerSVGElement||{}).parentNode),o&&o!==rr&&o.appendChild||(o=rr.body),s=o._gsap,s&&_&&s.width&&f&&s.time===J.time&&!s.uncache?W(l/s.width*h):((_||u===`%`)&&!Yr[Rr(o,`display`)]&&(d.position=Rr(t,`position`)),o===t&&(d.position=`static`),o.appendChild(or),a=or[m],o.removeChild(or),d.position=`absolute`,f&&_&&(s=Pe(o),s.time=J.time,s.width=o[m]),W(g?a*l/h:a&&l?h/a*l:0))))},Zr=function(e,t,n,r){var i;return ar||Vr(),t in yr&&t!==`transform`&&(t=yr[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),dr[t]&&t!==`transform`?(i=li(e,r),i=t===`transformOrigin`?i.svg?i.origin:ui(Rr(e,Mr))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=ni[t]&&ni[t](e,t,n)||Rr(e,t)||Fe(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?Xr(e,t,i,n)+n:i},Qr=function(e,t,n,r){if(!n||n===`none`){var i=Br(t,e,1),a=i&&Rr(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=Rr(e,`borderTopColor`))}var o,s,c,l,u,d,f,p,m,h,g,_,v=new Q(this._pt,e.style,t,0,1,In),y=0,b=0;if(v.b=n,v.e=r,n+=``,r+=``,r===`auto`&&(e.style[t]=r,r=Rr(e,t)||r,e.style[t]=n),o=[n,r],$t(o),n=o[0],r=o[1],c=n.match(de)||[],_=r.match(de)||[],_.length){for(;s=de.exec(r);)f=s[0],m=r.substring(y,s.index),u?u=(u+1)%5:m.substr(-5)!==`rgba(`&&m.substr(-5)!==`hsla(`||(u=1),f!==(d=c[b++]||``)&&(l=parseFloat(d)||0,g=d.substr((l+``).length),f.charAt(1)===`=`&&(f=Ie(l,f)+g),p=parseFloat(f),h=f.substr((p+``).length),y=de.lastIndex-h.length,h||(h=h||j.units[t]||g,y===r.length&&(r+=h,v.e+=h)),g!==h&&(l=Xr(e,t,d,h)||0),v._pt={_next:v._pt,p:m||b===1?m:`,`,s:l,c:p-l,m:u&&u<4||t===`zIndex`?Math.round:0});v.c=y-1;)n=s[i],dr[n]&&(r=1,n=n===`transformOrigin`?Mr:$),Kr(a,n);r&&(Kr(a,$),c&&(c.svg&&a.removeAttribute(`transform`),li(a,1),c.uncache=1,Pr(o)))}},ni={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new Q(e._pt,t,n,0,0,ti);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},ri=[1,0,0,1,0,0],ii={},ai=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},oi=function(e){var t=Rr(e,$);return ai(t)?ri:t.substr(7).match(ue).map(W)},si=function(e,t){var n,r,i,a,o=e._gsap||Pe(e),s=e.style,c=oi(e);return o.svg&&e.getAttribute(`transform`)?(i=e.transform.baseVal.consolidate().matrix,c=[i.a,i.b,i.c,i.d,i.e,i.f],c.join(`,`)===`1,0,0,1,0,0`?ri:c):(c===ri&&!e.offsetParent&&e!==ir&&!o.svg&&(i=s.display,s.display=`block`,n=e.parentNode,(!n||!e.offsetParent)&&(a=1,r=e.nextElementSibling,ir.appendChild(e)),c=oi(e),i?s.display=i:Kr(e,`display`),a&&(r?n.insertBefore(e,r):n?n.appendChild(e):ir.removeChild(e))),t&&c.length>6?[c[0],c[1],c[4],c[5],c[12],c[13]]:c)},ci=function(e,t,n,r,i,a){var o,s,c,l,u=e._gsap,d=i||si(e,!0),f=u.xOrigin||0,p=u.yOrigin||0,m=u.xOffset||0,h=u.yOffset||0,g=d[0],_=d[1],v=d[2],y=d[3],b=d[4],x=d[5],S=t.split(` `),C=parseFloat(S[0])||0,w=parseFloat(S[1])||0;n?d!==ri&&(s=g*y-_*v)&&(c=y/s*C+w*(-v/s)+(v*x-y*b)/s,l=C*(-_/s)+g/s*w-(g*x-_*b)/s,C=c,w=l):(o=Wr(e),C=o.x+(~S[0].indexOf(`%`)?C/100*o.width:C),w=o.y+(~(S[1]||S[0]).indexOf(`%`)?w/100*o.height:w)),r||!1!==r&&u.smooth?(b=C-f,x=w-p,u.xOffset=m+(b*g+x*v)-b,u.yOffset=h+(b*_+x*y)-x):u.xOffset=u.yOffset=0,u.xOrigin=C,u.yOrigin=w,u.smooth=!!r,u.origin=t,u.originIsAbsolute=!!n,e.style[Mr]=`0px 0px`,a&&(qr(a,u,`xOrigin`,f,C),qr(a,u,`yOrigin`,p,w),qr(a,u,`xOffset`,m,u.xOffset),qr(a,u,`yOffset`,h,u.yOffset)),e.setAttribute(`data-svg-origin`,C+` `+w)},li=function(e,t){var n=e._gsap||new mn(e);if(`x`in n&&!t&&!n.uncache)return n;var r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,M,N,P,F,I=e.style,ee=n.scaleX<0,te=`px`,ne=`deg`,L=getComputedStyle(e),R=Rr(e,Mr)||`0`;return r=i=a=c=l=u=d=f=p=0,o=s=1,n.svg=!!(e.getCTM&&Gr(e)),L.translate&&(L.translate===`none`&&L.scale===`none`&&L.rotate===`none`||(I[$]=(L.translate===`none`?``:`translate3d(`+(L.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(L.rotate===`none`?``:`rotate(`+L.rotate+`) `)+(L.scale===`none`?``:`scale(`+L.scale.split(` `).join(`,`)+`) `)+(L[$]===`none`?``:L[$])),I.scale=I.rotate=I.translate=`none`),g=si(e,n.svg),n.svg&&(n.uncache?(D=e.getBBox(),R=n.xOrigin-D.x+`px `+(n.yOrigin-D.y)+`px`,E=``):E=!t&&e.getAttribute(`data-svg-origin`),ci(e,E||R,!!E||n.originIsAbsolute,!1!==n.smooth,g)),m=n.xOrigin||0,h=n.yOrigin||0,g!==ri&&(b=g[0],x=g[1],S=g[2],C=g[3],r=w=g[4],i=T=g[5],g.length===6?(o=Math.sqrt(b*b+x*x),s=Math.sqrt(C*C+S*S),c=b||x?mr(x,b)*fr:0,d=S||C?mr(S,C)*fr+c:0,d&&(s*=Math.abs(Math.cos(d*pr))),n.svg&&(r-=m-(m*b+h*S),i-=h-(m*x+h*C))):(F=g[6],N=g[7],k=g[8],A=g[9],M=g[10],P=g[11],r=g[12],i=g[13],a=g[14],_=mr(F,M),l=_*fr,_&&(v=Math.cos(-_),y=Math.sin(-_),E=w*v+k*y,D=T*v+A*y,O=F*v+M*y,k=w*-y+k*v,A=T*-y+A*v,M=F*-y+M*v,P=N*-y+P*v,w=E,T=D,F=O),_=mr(-S,M),u=_*fr,_&&(v=Math.cos(-_),y=Math.sin(-_),E=b*v-k*y,D=x*v-A*y,O=S*v-M*y,P=C*y+P*v,b=E,x=D,S=O),_=mr(x,b),c=_*fr,_&&(v=Math.cos(_),y=Math.sin(_),E=b*v+x*y,D=w*v+T*y,x=x*v-b*y,T=T*v-w*y,b=E,w=D),l&&Math.abs(l)+Math.abs(c)>359.9&&(l=c=0,u=180-u),o=W(Math.sqrt(b*b+x*x+S*S)),s=W(Math.sqrt(T*T+F*F)),_=mr(w,T),d=Math.abs(_)>2e-4?_*fr:0,p=P?1/(P<0?-P:P):0),n.svg&&(E=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!ai(Rr(e,$)),E&&e.setAttribute(`transform`,E))),Math.abs(d)>90&&Math.abs(d)<270&&(ee?(o*=-1,d+=c<=0?180:-180,c+=c<=0?180:-180):(s*=-1,d+=d<=0?180:-180)),t||=n.uncache,n.x=r-((n.xPercent=r&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-r)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+te,n.y=i-((n.yPercent=i&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+te,n.z=a+te,n.scaleX=W(o),n.scaleY=W(s),n.rotation=W(c)+ne,n.rotationX=W(l)+ne,n.rotationY=W(u)+ne,n.skewX=d+ne,n.skewY=f+ne,n.transformPerspective=p+te,(n.zOrigin=parseFloat(R.split(` `)[2])||0)&&(I[Mr]=ui(R)),n.xOffset=n.yOffset=0,n.force3D=j.force3D,n.renderTransform=n.svg?_i:lr?gi:fi,n.uncache=0,n},ui=function(e){return(e=e.split(` `))[0]+` `+e[1]},di=function(e,t,n){var r=K(t);return W(parseFloat(t)+parseFloat(Xr(e,`x`,n+`px`,r)))+r},fi=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,gi(e,t)},pi=`0deg`,mi=`0px`,hi=`) `,gi=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||!0===g;if(v&&(u!==pi||l!==pi)){var x,S=parseFloat(l)*pr,C=Math.sin(S),w=Math.cos(S);S=parseFloat(u)*pr,x=Math.cos(S),a=di(_,a,C*x*-v),o=di(_,o,-Math.sin(S)*-v),s=di(_,s,w*x*-v+v)}h!==mi&&(y+=`perspective(`+h+hi),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==mi||o!==mi||s!==mi)&&(y+=s!==mi||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+hi),c!==pi&&(y+=`rotate(`+c+hi),l!==pi&&(y+=`rotateY(`+l+hi),u!==pi&&(y+=`rotateX(`+u+hi),d===pi&&f===pi||(y+=`skew(`+d+`, `+f+hi),p===1&&m===1||(y+=`scale(`+p+`, `+m+hi),_.style[$]=y||`translate(0, 0)`},_i=function(e,t){var n,r,i,a,o,s=t||this,c=s.xPercent,l=s.yPercent,u=s.x,d=s.y,f=s.rotation,p=s.skewX,m=s.skewY,h=s.scaleX,g=s.scaleY,_=s.target,v=s.xOrigin,y=s.yOrigin,b=s.xOffset,x=s.yOffset,S=s.forceCSS,C=parseFloat(u),w=parseFloat(d);f=parseFloat(f),p=parseFloat(p),m=parseFloat(m),m&&(m=parseFloat(m),p+=m,f+=m),f||p?(f*=pr,p*=pr,n=Math.cos(f)*h,r=Math.sin(f)*h,i=Math.sin(f-p)*-g,a=Math.cos(f-p)*g,p&&(m*=pr,o=Math.tan(p-m),o=Math.sqrt(1+o*o),i*=o,a*=o,m&&(o=Math.tan(m),o=Math.sqrt(1+o*o),n*=o,r*=o)),n=W(n),r=W(r),i=W(i),a=W(a)):(n=h,a=g,r=i=0),(C&&!~(u+``).indexOf(`px`)||w&&!~(d+``).indexOf(`px`))&&(C=Xr(_,`x`,u,`px`),w=Xr(_,`y`,d,`px`)),(v||y||b||x)&&(C=W(C+v-(v*n+y*i)+b),w=W(w+y-(v*r+y*a)+x)),(c||l)&&(o=_.getBBox(),C=W(C+c/100*o.width),w=W(w+l/100*o.height)),o=`matrix(`+n+`,`+r+`,`+i+`,`+a+`,`+C+`,`+w+`)`,_.setAttribute(`transform`,o),S&&(_.style[$]=o)},vi=function(e,t,n,r,i){var a,o,s=360,c=R(i),l=parseFloat(i)*(c&&~i.indexOf(`rad`)?fr:1)-r,u=r+l+`deg`;return c&&(a=i.split(`_`)[1],a===`short`&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),a===`cw`&&l<0?l=(l+s*hr)%s-~~(l/s)*s:a===`ccw`&&l>0&&(l=(l-s*hr)%s-~~(l/s)*s)),e._pt=o=new Q(e._pt,t,n,r,l,xr),o.e=u,o.u=`deg`,e._props.push(n),o},yi=function(e,t){for(var n in t)e[n]=t[n];return e},bi=function(e,t,n){var r,i,a,o,s,c,l,u,d=yi({},n._gsap),f=`perspective,force3D,transformOrigin,svgOrigin`,p=n.style;for(i in d.svg?(a=n.getAttribute(`transform`),n.setAttribute(`transform`,``),p[$]=t,r=li(n,1),Kr(n,$),n.setAttribute(`transform`,a)):(a=getComputedStyle(n)[$],p[$]=t,r=li(n,1),p[$]=a),dr)a=d[i],o=r[i],a!==o&&f.indexOf(i)<0&&(l=K(a),u=K(o),s=l===u?parseFloat(a):Xr(n,i,a,u),c=parseFloat(o),e._pt=new Q(e._pt,r,i,s,c-s,br),e._pt.u=u||0,e._props.push(i));yi(r,d)},U(`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}));ni[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 Zr(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)}})),xi={name:`css`,register:Vr,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x=this._props,S=e.style,C=n.vars.startAt;for(d in ar||Vr(),this.styles=this.styles||Ir(e),b=this.styles.props,this.tween=n,t)if(d!==`autoRound`&&(o=t[d],!Oe[d]||!xn(d,t,n,r,e,i))){if(l=typeof o,u=ni[d],l===`function`&&(o=o.call(n,r,e,i),l=typeof o),l===`string`&&~o.indexOf(`random(`)&&(o=zt(o)),u)u(this,e,d,o,n)&&(y=1);else if(d.substr(0,2)===`--`)a=(getComputedStyle(e).getPropertyValue(d)+``).trim(),o+=``,Zt.lastIndex=0,Zt.test(a)||(f=K(a),p=K(o)),p?f!==p&&(a=Xr(e,d,a,p)+p):f&&(o+=f),this.add(S,`setProperty`,a,o,r,i,0,0,d),x.push(d),b.push(d,0,S[d]);else if(l!==`undefined`){if(C&&d in C?(a=typeof C[d]==`function`?C[d].call(n,r,e,i):C[d],R(a)&&~a.indexOf(`random(`)&&(a=zt(a)),K(a+``)||(a+=j.units[d]||K(Zr(e,d))||``),(a+``).charAt(1)===`=`&&(a=Zr(e,d))):a=Zr(e,d),c=parseFloat(a),m=l===`string`&&o.charAt(1)===`=`&&o.substr(0,2),m&&(o=o.substr(2)),s=parseFloat(o),d in yr&&(d===`autoAlpha`&&(c===1&&Zr(e,`visibility`)===`hidden`&&s&&(c=0),b.push(`visibility`,0,S.visibility),qr(this,S,`visibility`,c?`inherit`:`hidden`,s?`inherit`:`hidden`,!s)),d!==`scale`&&d!==`transform`&&(d=yr[d],~d.indexOf(`,`)&&(d=d.split(`,`)[0]))),h=d in dr,h)if(this.styles.save(d),g||(_=e._gsap,_.renderTransform&&!t.parseTransform||li(e,t.parseTransform),v=!1!==t.smoothOrigin&&_.smooth,g=this._pt=new Q(this._pt,S,$,0,1,_.renderTransform,_,0,-1),g.dep=1),d===`scale`)this._pt=new Q(this._pt,_,`scaleY`,c,(m?Ie(c,m+s):s)-c||0,br),this._pt.u=0,x.push(`scaleY`,d),d+=`X`;else{if(d===`transformOrigin`){b.push(Mr,0,S[Mr]),o=ei(o),_.svg?ci(e,o,0,v,0,this):(p=parseFloat(o.split(` `)[2])||0,p!==_.zOrigin&&qr(this,_,`zOrigin`,_.zOrigin,p),qr(this,S,d,ui(a),ui(o)));continue}if(d===`svgOrigin`){ci(e,o,1,v,0,this);continue}if(d in ii){vi(this,_,d,c,m?Ie(c,m+o):o);continue}if(d===`smoothOrigin`){qr(this,_,`smooth`,_.smooth,o);continue}if(d===`force3D`){_[d]=o;continue}if(d===`transform`){bi(this,o,e);continue}}else d in S||(d=Br(d)||d);if(h||(s||s===0)&&(c||c===0)&&!vr.test(o)&&d in S)f=(a+``).substr((c+``).length),s||=0,p=K(o)||(d in j.units?j.units[d]:f),f!==p&&(c=Xr(e,d,a,p)),this._pt=new Q(this._pt,h?_:S,d,c,(m?Ie(c,m+s):s)-c,h||p!==`px`&&d!==`zIndex`||!1===t.autoRound?br:Cr),this._pt.u=p||0,f!==p&&p!==`%`&&(this._pt.b=a,this._pt.r=Sr);else if(d in S)Qr.call(this,e,d,a,m?m+o:o);else{if(!(d in e)){ve(d,o);continue}this.add(e,d,a||e[d],m?m+o:o,r,i)}h||(d in S?b.push(d,0,S[d]):b.push(d,1,a||e[d])),x.push(d)}}y&&Vn(this)},render:function(e,t){if(t.tween._time||!cr())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:Zr,aliases:yr,getSetter:function(e,t,n){var r=yr[t];return r&&r.indexOf(`,`)<0&&(t=r),t in dr&&t!==Mr&&(e._gsap.x||Zr(e,`x`))?n&&sr===n?t===`scale`?kr:Or:(sr=n||{})&&(t===`scale`?Ar:jr):e.style&&!ie(e.style[t])?Er:~t.indexOf(`-`)?Dr:Nn(e,t)},core:{_removeProperty:Kr,_getMatrix:si}},er.utils.checkPrefix=Br,er.core.getStyleSaver=Ir,(function(e,t,n,r){var i=U(e+`,`+t+`,`+n,(function(e){dr[e]=1}));U(t,(function(e){j.units[e]=`deg`,ii[e]=1})),yr[i[13]]=e+`,`+t,U(r,(function(e){var t=e.split(`:`);yr[t[1]]=i[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`),U(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,(function(e){j.units[e]=`px`})),er.registerPlugin(xi)})),Ci,wi=e((()=>{tr(),Si(),Ci=er.registerPlugin(xi)||er,Ci.core.Tween}));function Ti({colors:e,lineWidth:n,length:o,smoothing:s,style:l}){let d=m.current()===m.canvas,f=t([]),p=t(null),[h,g]=i(!1),_=t(!1),v=t(null),y=t(null),b=[];switch(e.type){case`single`:b=[e.color];break;case`multi`:b=e.colors?[...e.colors].reverse():[];break}return r(()=>{let e,t=t=>{_.current||(y.current={x:t.clientX,y:t.clientY},v.current={x:t.clientX,y:t.clientY},g(!0),_.current=!0,e=requestAnimationFrame(n)),y.current={x:t.clientX,y:t.clientY}},n=()=>{d||!v.current||!y.current||(Ci.to(v.current,{x:y.current.x,y:y.current.y,duration:s/100,ease:`power2.out`}),e=requestAnimationFrame(n))};return a.addEventListener(`mousemove`,t),()=>{a.removeEventListener(`mousemove`,t),e&&cancelAnimationFrame(e)}},[s]),r(()=>{let e=()=>{f.current.forEach((e,t)=>{if(!e)return;let n=Math.floor(o/b.length*(b.length-t)),r=e.points||[];for(r.unshift({...v.current});r.length>n;)r.pop();if(e.points=r,r.length>1){let t=`M ${r[0].x} ${r[0].y}`;for(let e=1;ec(`svg`,{style:{position:`absolute`,top:0,left:0,height:`100%`,width:`100%`},children:c(`path`,{ref:e=>f.current[t]=e,className:`trail`,fill:`none`,stroke:e,strokeWidth:n,strokeLinecap:`round`,strokeLinejoin:`round`})},e))}),document.body):null})}var Ei=e((()=>{n(),d(),p(),o(),s(),wi(),Ti.displayName=`Cursor Trail`,f(Ti,{colors:{type:_.Object,controls:{type:{type:_.Enum,defaultValue:`single`,options:[`single`,`multi`],optionTitles:[`Single`,`Multi`],displaySegmentedControl:!0},color:{type:_.Color,defaultValue:`#0099ff`,hidden:e=>e.type!==`single`},colors:{type:_.Array,defaultValue:[`#0099FF`,`#52BAFF`,`#ADE0FF`,`#FFFFFF`],control:{type:_.Color},hidden:e=>e.type!==`multi`}}},lineWidth:{type:_.Number,defaultValue:20,min:1,step:1,max:200,title:`Width`},length:{type:_.Number,defaultValue:40,min:1,max:100,step:1},smoothing:{type:_.Number,defaultValue:50,min:0,max:100,step:1,description:`More components at [Framer University](https://frameruni.link/cc).`}})}));function Di(e){let{particleCount:n=50,particleSize:o=2,speed:s=1,opacity:u=.8,backgroundColor:d=`#000000`,connectionLines:f=!1,connectionDistance:p=100,connectionOpacity:m=.3,density:g=1}=e,_=t(null),v=t(),y=t([]),b=h(),[x,S]=i({width:800,height:600}),C=(e,t)=>{let r=[];for(let i=0;i{y.current.forEach(n=>{let r=s*g;n.vx=n.vx/Math.abs(n.vx||1)*r*(Math.random()*.5+.75),n.vy=n.vy/Math.abs(n.vy||1)*r*(Math.random()*.5+.75),n.x+=n.vx,n.y+=n.vy,n.x<0&&(n.x=e),n.x>e&&(n.x=0),n.y<0&&(n.y=t),n.y>t&&(n.y=0)})},T=(e,t,n)=>{if(e.clearRect(0,0,t,n),f){e.strokeStyle=`rgba(255, 255, 255, ${m})`,e.lineWidth=1;for(let t=0;t{e.beginPath(),e.arc(t.x,t.y,t.size,0,Math.PI*2),e.fillStyle=`rgba(255, 255, 255, ${t.opacity})`,e.fill()})},E=()=>{if(!_.current||b)return;let e=_.current,t=e.getContext(`2d`);t&&(w(e.width,e.height),T(t,e.width,e.height),v.current=requestAnimationFrame(E))};return r(()=>{if(a===void 0)return;let e=()=>{if(_.current&&_.current.parentElement){let e=_.current.parentElement.getBoundingClientRect();l(()=>{S({width:e.width,height:e.height})})}};return e(),a.addEventListener(`resize`,e),()=>{a.removeEventListener(`resize`,e)}},[]),r(()=>{if(!b){if(C(x.width,x.height),_.current){let e=_.current;e.width=x.width,e.height=x.height}return E(),()=>{v.current&&cancelAnimationFrame(v.current)}}},[x,n,s,g,u,o,f,p,m,b]),b?c(`div`,{style:{width:`100%`,height:`100%`,backgroundColor:d,position:`relative`,overflow:`hidden`},children:Array.from({length:Math.min(20,n)}).map((e,t)=>c(`div`,{style:{position:`absolute`,width:o*2,height:o*2,backgroundColor:`#FFFFFF`,borderRadius:`50%`,opacity:u*.8,left:`${Math.random()*100}%`,top:`${Math.random()*100}%`}},t))}):c(`div`,{style:{width:`100%`,height:`100%`,backgroundColor:d,position:`relative`,overflow:`hidden`},children:c(`canvas`,{ref:_,style:{position:`absolute`,top:0,left:0,width:`100%`,height:`100%`},width:x.width,height:x.height})})}var Oi=e((()=>{n(),d(),o(),p(),f(Di,{particleCount:{type:_.Number,title:`Particle Count`,defaultValue:50,min:10,max:200,step:1},density:{type:_.Number,title:`Density`,defaultValue:1,min:.1,max:3,step:.1},particleSize:{type:_.Number,title:`Particle Size`,defaultValue:2,min:1,max:10,step:.5,unit:`px`},speed:{type:_.Number,title:`Speed`,defaultValue:1,min:.1,max:5,step:.1},opacity:{type:_.Number,title:`Particle Opacity`,defaultValue:.8,min:.1,max:1,step:.1},backgroundColor:{type:_.Color,title:`Background Color`,defaultValue:`#000000`},connectionLines:{type:_.Boolean,title:`Connection Lines`,defaultValue:!1,enabledTitle:`Show`,disabledTitle:`Hide`},connectionDistance:{type:_.Number,title:`Connection Distance`,defaultValue:100,min:50,max:200,step:10,unit:`px`,hidden:({connectionLines:e})=>!e},connectionOpacity:{type:_.Number,title:`Line Opacity`,defaultValue:.3,min:.1,max:1,step:.1,hidden:({connectionLines:e})=>!e}})}));function ki(e,t,n){return Math.max(e,Math.min(t,n))}var Ai,ji,Mi,Ni,Pi,Fi,Ii=e((()=>{n(),Ai=class{constructor(){this.isRunning=!1,this.value=0,this.from=0,this.to=0,this.duration=0,this.currentTime=0}advance(e){var t;if(!this.isRunning)return;let n=!1;if(this.duration&&this.easing){this.currentTime+=e;let t=ki(0,this.currentTime/this.duration,1);n=t>=1;let r=n?1:this.easing(t);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=function(e,t,n,r){return function(e,t,n){return(1-n)*e+n*t}(e,t,1-Math.exp(-n*r))}(this.value,this.to,60*this.lerp,e),Math.round(this.value)===this.to&&(this.value=this.to,n=!0)):(this.value=this.to,n=!0);n&&this.stop(),(t=this.onUpdate)==null||t.call(this,this.value,n)}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}},ji=class{constructor({wrapper:e,content:t,autoResize:n=!0,debounce:r=250}={}){this.width=0,this.height=0,this.scrollWidth=0,this.scrollHeight=0,this.resize=()=>{this.onWrapperResize(),this.onContentResize()},this.onWrapperResize=()=>{this.wrapper===a?(this.width=a.innerWidth,this.height=a.innerHeight):this.wrapper instanceof HTMLElement&&(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)},this.onContentResize=()=>{this.wrapper===a?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):this.wrapper instanceof HTMLElement&&(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)},this.wrapper=e,this.content=t,n&&(this.debouncedResize=function(e,t){let n;return function(){let r=arguments,i=this;clearTimeout(n),n=setTimeout((function(){e.apply(i,r)}),t)}}(this.resize,r),this.wrapper===a?a.addEventListener(`resize`,this.debouncedResize,!1):(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(){var e,t;(e=this.wrapperResizeObserver)==null||e.disconnect(),(t=this.contentResizeObserver)==null||t.disconnect(),a.removeEventListener(`resize`,this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},Mi=class{constructor(){this.events={}}emit(e,...t){let n=this.events[e]||[];for(let e=0,r=n.length;e{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={}}},Ni=100/6,Pi=class{constructor(e,{wheelMultiplier:t=1,touchMultiplier:n=1}){this.lastDelta={x:0,y:0},this.windowWidth=0,this.windowHeight=0,this.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})},this.onTouchMove=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,r=-(t-(this.touchStart?.x??0))*this.touchMultiplier,i=-(n-(this.touchStart?.y??0))*this.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})},this.onTouchEnd=e=>{this.emitter.emit(`scroll`,{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})},this.onWheel=e=>{let{deltaX:t,deltaY:n,deltaMode:r}=e;t*=r===1?Ni:r===2?this.windowWidth:1,n*=r===1?Ni:r===2?this.windowHeight:1,t*=this.wheelMultiplier,n*=this.wheelMultiplier,this.emitter.emit(`scroll`,{deltaX:t,deltaY:n,event:e})},this.onWindowResize=()=>{this.windowWidth=a.innerWidth,this.windowHeight=a.innerHeight},this.element=e,this.wheelMultiplier=t,this.touchMultiplier=n,this.touchStart={x:null,y:null},this.emitter=new Mi,a.addEventListener(`resize`,this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener(`wheel`,this.onWheel,{passive:!1}),this.element.addEventListener(`touchstart`,this.onTouchStart,{passive:!1}),this.element.addEventListener(`touchmove`,this.onTouchMove,{passive:!1}),this.element.addEventListener(`touchend`,this.onTouchEnd,{passive:!1})}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),a.removeEventListener(`resize`,this.onWindowResize,!1),this.element.removeEventListener(`wheel`,this.onWheel),this.element.removeEventListener(`touchstart`,this.onTouchStart),this.element.removeEventListener(`touchmove`,this.onTouchMove),this.element.removeEventListener(`touchend`,this.onTouchEnd)}},Fi=class{constructor({wrapper:e=a,content:t=document.documentElement,wheelEventsTarget:n=e,eventsTarget:r=n,smoothWheel:i=!0,syncTouch:o=!1,syncTouchLerp:s=.075,touchInertiaMultiplier:c=35,duration:l,easing:u=(e=>Math.min(1,1.001-2**(-10*e))),lerp:d=.1,infinite:f=!1,orientation:p=`vertical`,gestureOrientation:m=`vertical`,touchMultiplier:h=1,wheelMultiplier:g=1,autoResize:_=!0,prevent:v,virtualScroll:y,__experimental__naiveDimensions:b=!1}={}){this.__isScrolling=!1,this.__isStopped=!1,this.__isLocked=!1,this.userData={},this.lastVelocity=0,this.velocity=0,this.direction=0,this.onPointerDown=e=>{e.button===1&&this.reset()},this.onVirtualScroll=e=>{if(typeof this.options.virtualScroll==`function`&&!1===this.options.virtualScroll(e))return;let{deltaX:t,deltaY:n,event:r}=e;if(this.emitter.emit(`virtual-scroll`,{deltaX:t,deltaY:n,event:r}),r.ctrlKey)return;let i=r.type.includes(`touch`),a=r.type.includes(`wheel`);if(this.isTouching=r.type===`touchstart`||r.type===`touchmove`,this.options.syncTouch&&i&&r.type===`touchstart`&&!this.isStopped&&!this.isLocked)return void this.reset();let o=t===0&&n===0,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;if(c.find((e=>e instanceof Element&&(typeof l==`function`&&l?.(e)||e.hasAttribute?.call(e,`data-lenis-prevent`)||i&&e.hasAttribute?.call(e,`data-lenis-prevent-touch`)||a&&e.hasAttribute?.call(e,`data-lenis-prevent-wheel`)||e.classList?.contains(`lenis`)&&!e.classList?.contains(`lenis-stopped`)))))return;if(this.isStopped||this.isLocked)return void r.preventDefault();if(!(this.options.syncTouch&&i||this.options.smoothWheel&&a))return this.isScrolling=`native`,void this.animate.stop();r.preventDefault();let u=n;this.options.gestureOrientation===`both`?u=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation===`horizontal`&&(u=t);let d=i&&this.options.syncTouch,f=i&&r.type===`touchend`&&Math.abs(u)>5;f&&(u=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+u,Object.assign({programmatic:!1},d?{lerp:f?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}))},this.onNativeScroll=()=>{if(clearTimeout(this.__resetVelocityTimeout),delete this.__resetVelocityTimeout,this.__preventNextNativeScrollEvent)delete this.__preventNextNativeScrollEvent;else if(!1===this.isScrolling||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.isScrolling=`native`,this.emit(),this.velocity!==0&&(this.__resetVelocityTimeout=setTimeout((()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()}),400))}},a.lenisVersion=`1.1.9`,e&&e!==document.documentElement&&e!==document.body||(e=a),this.options={wrapper:e,content:t,wheelEventsTarget:n,eventsTarget:r,smoothWheel:i,syncTouch:o,syncTouchLerp:s,touchInertiaMultiplier:c,duration:l,easing:u,lerp:d,infinite:f,gestureOrientation:m,orientation:p,touchMultiplier:h,wheelMultiplier:g,autoResize:_,prevent:v,virtualScroll:y,__experimental__naiveDimensions:b},this.animate=new Ai,this.emitter=new Mi,this.dimensions=new ji({wrapper:e,content:t,autoResize:_}),this.updateClassName(),this.userData={},this.time=0,this.velocity=this.lastVelocity=0,this.isLocked=!1,this.isStopped=!1,this.isScrolling=!1,this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener(`scroll`,this.onNativeScroll,!1),this.options.wrapper.addEventListener(`pointerdown`,this.onPointerDown,!1),this.virtualScroll=new Pi(r,{touchMultiplier:h,wheelMultiplier:g}),this.virtualScroll.on(`scroll`,this.onVirtualScroll)}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener(`scroll`,this.onNativeScroll,!1),this.options.wrapper.removeEventListener(`pointerdown`,this.onPointerDown,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName()}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}setScroll(e){this.isHorizontal?this.rootElement.scrollLeft=e:this.rootElement.scrollTop=e}resize(){this.dimensions.resize()}emit(){this.emitter.emit(`scroll`,this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.isStopped=!1,this.reset())}stop(){this.isStopped||(this.isStopped=!0,this.animate.stop(),this.reset())}raf(e){let t=e-(this.time||e);this.time=e,this.animate.advance(.001*t)}scrollTo(e,{offset:t=0,immediate:n=!1,lock:r=!1,duration:i=this.options.duration,easing:o=this.options.easing,lerp:s=this.options.lerp,onStart:c,onComplete:l,force:u=!1,programmatic:d=!0,userData:f={}}={}){if(!this.isStopped&&!this.isLocked||u){if(typeof e==`string`&&[`top`,`left`,`start`].includes(e))e=0;else if(typeof e==`string`&&[`bottom`,`right`,`end`].includes(e))e=this.limit;else{let n;if(typeof e==`string`?n=document.querySelector(e):e instanceof HTMLElement&&e!=null&&e.nodeType&&(n=e),n){if(this.options.wrapper!==a){let e=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?e.left:e.top}let r=n.getBoundingClientRect();e=(this.isHorizontal?r.left:r.top)+this.animatedScroll}}if(typeof e==`number`&&(e+=t,e=Math.round(e),this.options.infinite?d&&(this.targetScroll=this.animatedScroll=this.scroll):e=ki(0,e,this.limit),e!==this.targetScroll)){if(this.userData=f,n)return this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),void(this.userData={});d||(this.targetScroll=e),this.animate.fromTo(this.animatedScroll,e,{duration:i,easing:o,lerp:s,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),d&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),l?.(this),this.userData={},this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this.__preventNextNativeScrollEvent=!0,requestAnimationFrame((()=>{delete this.__preventNextNativeScrollEvent}))}get rootElement(){return this.options.wrapper===a?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__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(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.scrollTop}get scroll(){return this.options.infinite?function(e,t){return(e%t+t)%t}(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.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.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,``).trim()}}}));function Li(e){let{intensity:n}=e,i=t(null);return r(()=>{if(i.current)try{i.current.scrollTo(0,{immediate:!0})}catch(e){console.error(`Error scrolling to top:`,e)}},[i]),r(()=>{let e=()=>{try{let e=document.querySelector(`[data-frameruni-stop-scroll]`),t=document.documentElement,n=t&&t.style&&t.style.overflow===`hidden`;i.current&&(e||n?i.current.stop():i.current.start())}catch(e){console.error(`Error in checkForStopScroll:`,e)}};e();let t,n;try{t=new MutationObserver(e),n=new MutationObserver(e),document&&document.documentElement&&(t.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`data-frameruni-stop-scroll`]}),n.observe(document.documentElement,{attributes:!0,attributeFilter:[`style`]}))}catch(e){console.error(`Error setting up observers:`,e)}return()=>{try{t&&t.disconnect(),n&&n.disconnect()}catch(e){console.error(`Error disconnecting observers:`,e)}}},[]),r(()=>{try{if(!document)return;let e=document.getElementsByTagName(`*`);for(let t=0;t{try{if(typeof Fi!=`function`){console.error(`Lenis is not available`);return}i.current=new Fi({duration:(n||10)/10});let e=t=>{if(i.current)try{i.current.raf(t),requestAnimationFrame(e)}catch(e){console.error(`Error in animation frame:`,e)}},t=requestAnimationFrame(e);return()=>{if(cancelAnimationFrame(t),i.current)try{i.current.destroy(),i.current=null}catch(e){console.error(`Error destroying Lenis:`,e)}}}catch(e){return console.error(`Error initializing Lenis:`,e),()=>{}}},[n]),r(()=>{try{if(!document||!i.current)return;let e=Array.from(document.querySelectorAll(`a[href]`)||[]).filter(e=>{if(!e)return!1;let t=e;if(!t.href)return!1;let n=t.href.startsWith(a.location.origin)||t.href.startsWith(`./`)||t.href.startsWith(`/`),r=t.href.includes(`#`);return n&&r}).map(e=>{try{let t=e,n=t.href.includes(`#`)?`#${t.href.split(`#`).pop()}`:``,r=n?decodeURIComponent(n):``,i=0;try{if(r){let e=document.querySelector(r);if(e){let t=a.getComputedStyle(e).scrollMarginTop;i=t&&parseInt(t)||0}}}catch(e){console.error(`Error finding target element:`,e)}return{href:n,scrollMargin:i,anchorElement:t}}catch(e){return console.error(`Error processing anchor:`,e),null}}).filter(Boolean),t=(e,t,n)=>{try{e&&e.preventDefault&&e.preventDefault(),i.current&&t&&i.current.scrollTo(t,{offset:-(n||0)})}catch(e){console.error(`Error in anchor click handler:`,e)}},n=e.map(({href:e,scrollMargin:n})=>r=>t(r,e,n));return e.forEach(({anchorElement:e},t)=>{e&&n[t]&&e.addEventListener(`click`,n[t])}),()=>{e.forEach(({anchorElement:e},t)=>{e&&n[t]&&e.removeEventListener(`click`,n[t])})}}catch(e){return console.error(`Error setting up anchor links:`,e),()=>{}}},[i]),c(`div`,{style:e.style})}var Ri,zi=e((()=>{n(),d(),p(),Ii(),o(),Ri=g(Li,[`html.lenis { height: auto; }`,`.lenis.lenis-smooth { scroll-behavior: auto !important; }`,`.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }`,`.lenis.lenis-stopped { overflow: hidden; }`,`.lenis.lenis-scrolling iframe { pointer-events: none; }`],``),Ri.displayName=`Smooth Scroll`,f(Ri,{intensity:{title:`Intensity`,type:_.Number,defaultValue:10,min:0,description:`More components at [Framer University](https://frameruni.link/cc).`}})}));export{Ti as a,Oi as i,zi as n,Ei as o,Di as r,Ri as t}; //# sourceMappingURL=SmoothScroll_Prod.x49eseVK.mjs.map