ecloud-spark 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -1,48 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react");function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function n(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var r=e(t),i=n(t),o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function a(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}"function"==typeof SuppressedError&&SuppressedError;a(".spark-button {\n background: transparent;\n border: 1px solid black;\n border-radius: 2rem;\n color: black;\n cursor: pointer;\n display: block;\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 1;\n padding: 1rem 2rem;\n text-align: center;\n text-decoration: none;\n transition: 0.3s color, 0.3s background-color; }\n .spark-button:hover {\n background-color: black;\n color: white; }\n");var u=t.forwardRef((function(t,e){var n=t.children,i=t.className,a=void 0===i?"":i,u=t.as,l=void 0===u?"button":u,c=s(t,["children","className","as"]);return r.default.createElement(l,o({ref:e,className:"spark-button ".concat(a)},c),n)}));function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
2
- /*!
3
- * GSAP 3.12.2
4
- * https://greensock.com
5
- *
6
- * @license Copyright 2008-2023, GreenSock. All rights reserved.
7
- * Subject to the terms at https://greensock.com/standard-license or for
8
- * Club GreenSock members, the agreement issued with that membership.
9
- * @author: Jack Doyle, jack@greensock.com
10
- */var f,h,p,d,m,v,g,y,_,x,b,w={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},T={duration:.5,overwrite:!1,delay:0},E=1e8,k=1e-8,P=2*Math.PI,S=P/4,C=0,A=Math.sqrt,M=Math.cos,O=Math.sin,R=function(t){return"string"==typeof t},D=function(t){return"function"==typeof t},L=function(t){return"number"==typeof t},V=function(t){return void 0===t},j=function(t){return"object"==typeof t},B=function(t){return!1!==t},F=function(){return"undefined"!=typeof window},I=function(t){return D(t)||R(t)},z="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},N=Array.isArray,U=/(?:-?\.?\d|\.)+/gi,W=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,$=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Y=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,H=/[+-]=-?[.\d]+/,q=/[^,'"\[\]\s]+/gi,X=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,G={},Z={},K=function(t){return(Z=Pt(t,G))&&Sn},Q=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},J=function(t,e){return!e&&console.warn(t)},tt=function(t,e){return t&&(G[t]=e)&&Z&&(Z[t]=e)||G},et=function(){return 0},nt={suppressEvents:!0,isStart:!0,kill:!1},rt={suppressEvents:!0,kill:!1},it={suppressEvents:!0},ot={},st=[],at={},ut={},lt={},ct=30,ft=[],ht="",pt=function(t){var e,n,r=t[0];if(j(r)||D(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=ft.length;n--&&!ft[n].targetTest(r););e=ft[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new ze(t[n],e)))||t.splice(n,1);return t},dt=function(t){return t._gsap||pt(re(t))[0]._gsap},mt=function(t,e,n){return(n=t[e])&&D(n)?t[e]():V(n)&&t.getAttribute&&t.getAttribute(e)||n},vt=function(t,e){return(t=t.split(",")).forEach(e)||t},gt=function(t){return Math.round(1e5*t)/1e5||0},yt=function(t){return Math.round(1e7*t)/1e7||0},_t=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+r:"-"===n?t-r:"*"===n?t*r:t/r},xt=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},bt=function(){var t,e,n=st.length,r=st.slice(0);for(at={},st.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},wt=function(t,e,n,r){st.length&&!h&&bt(),t.render(e,n,r||h&&e<0&&(t._initted||t._startAt)),st.length&&!h&&bt()},Tt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(q).length<2?e:R(t)?t.trim():t},Et=function(t){return t},kt=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Pt=function(t,e){for(var n in e)t[n]=e[n];return t},St=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=j(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Ct=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},At=function(t){var e,n=t.parent||d,r=t.keyframes?(e=N(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):kt;if(B(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Mt=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var o,s=t[r];if(i)for(o=e[i];s&&s[i]>o;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t,e},Ot=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,o=e._next;i?i._next=o:t[n]===e&&(t[n]=o),o?o._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},Rt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Dt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Lt=function(t,e,n,r){return t._startAt&&(h?t._startAt.revert(rt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Vt=function t(e){return!e||e._ts&&t(e.parent)},jt=function(t){return t._repeat?Bt(t._tTime,t=t.duration()+t._rDelay)*t:0},Bt=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Ft=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},It=function(t){return t._end=yt(t._start+(t._tDur/Math.abs(t._ts||t._rts||k)||0))},zt=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=yt(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),It(t),n._dirty||Dt(n,t)),t},Nt=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=Ft(t.rawTime(),e),(!e._dur||Jt(0,e.totalDuration(),n)-e._tTime>k)&&e.render(n,!0)),Dt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},Ut=function(t,e,n,r){return e.parent&&Rt(e),e._start=yt((L(n)?n:n||t!==d?Zt(t,n,e):t._time)+e._delay),e._end=yt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Mt(t,e,"_first","_last",t._sort?"_start":0),Ht(e)||(t._recent=e),r||Nt(t,e),t._ts<0&&zt(t,t._tTime),t},Wt=function(t,e){return(G.ScrollTrigger||Q("scrollTrigger",e))&&G.ScrollTrigger.create(e,t)},$t=function(t,e,n,r,i){return Xe(t,e,i),t._initted?!n&&t._pt&&!h&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&_!==Se.frame?(st.push(t),t._lazy=[i,r],1):void 0:1},Yt=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},Ht=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},qt=function(t,e,n,r){var i=t._repeat,o=yt(e)||0,s=t._tTime/t._tDur;return s&&!r&&(t._time*=o/t._dur),t._dur=o,t._tDur=i?i<0?1e10:yt(o*(i+1)+t._rDelay*i):o,s>0&&!r&&zt(t,t._tTime=t._tDur*s),t.parent&&It(t),n||Dt(t.parent,t),t},Xt=function(t){return t instanceof Ue?Dt(t):qt(t,t._dur)},Gt={_start:0,endTime:et,totalDuration:et},Zt=function t(e,n,r){var i,o,s,a=e.labels,u=e._recent||Gt,l=e.duration()>=E?u.endTime(!1):e._dur;return R(n)&&(isNaN(n)||n in a)?(o=n.charAt(0),s="%"===n.substr(-1),i=n.indexOf("="),"<"===o||">"===o?(i>=0&&(n=n.replace(/=/,"")),("<"===o?u._start:u.endTime(u._repeat>=0))+(parseFloat(n.substr(1))||0)*(s?(i<0?u:r).totalDuration()/100:1)):i<0?(n in a||(a[n]=l),a[n]):(o=parseFloat(n.charAt(i-1)+n.substr(i+1)),s&&r&&(o=o/100*(N(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+o:l+o)):null==n?l:+n},Kt=function(t,e,n){var r,i,o=L(e[1]),s=(o?2:1)+(t<2?0:1),a=e[s];if(o&&(a.duration=e[1]),a.parent=n,t){for(r=a,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=B(i.vars.inherit)&&i.parent;a.immediateRender=B(r.immediateRender),t<2?a.runBackwards=1:a.startAt=e[s-1]}return new Je(e[0],a,e[s+1])},Qt=function(t,e){return t||0===t?e(t):e},Jt=function(t,e,n){return n<t?t:n>e?e:n},te=function(t,e){return R(t)&&(e=X.exec(t))?e[1]:""},ee=[].slice,ne=function(t,e){return t&&j(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&j(t[0]))&&!t.nodeType&&t!==m},re=function(t,e,n){return p&&!e&&p.selector?p.selector(t):!R(t)||n||!v&&Ce()?N(t)?function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return R(t)&&!e||ne(t,1)?(r=n).push.apply(r,re(t)):n.push(t)}))||n}(t,n):ne(t)?ee.call(t,0):t?[t]:[]:ee.call((e||g).querySelectorAll(t),0)},ie=function(t){return t=re(t)[0]||J("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return re(e,n.querySelectorAll?n:n===t?J("Invalid scope")||g.createElement("div"):t)}},oe=function(t){return t.sort((function(){return.5-Math.random()}))},se=function(t){if(D(t))return t;var e=j(t)?t:{each:t},n=Ve(e.ease),r=e.from||0,i=parseFloat(e.base)||0,o={},s=r>0&&r<1,a=isNaN(r)||s,u=e.axis,l=r,c=r;return R(r)?l=c={center:.5,edges:.5,end:1}[r]||0:!s&&a&&(l=r[0],c=r[1]),function(t,s,f){var h,p,d,m,v,g,y,_,x,b=(f||e).length,w=o[b];if(!w){if(!(x="auto"===e.grid?0:(e.grid||[1,E])[1])){for(y=-1e8;y<(y=f[x++].getBoundingClientRect().left)&&x<b;);x--}for(w=o[b]=[],h=a?Math.min(x,b)*l-.5:r%x,p=x===E?0:a?b*c/x-.5:r/x|0,y=0,_=E,g=0;g<b;g++)d=g%x-h,m=p-(g/x|0),w[g]=v=u?Math.abs("y"===u?m:d):A(d*d+m*m),v>y&&(y=v),v<_&&(_=v);"random"===r&&oe(w),w.max=y-_,w.min=_,w.v=b=(parseFloat(e.amount)||parseFloat(e.each)*(x>b?b-1:u?"y"===u?b/x:x:Math.max(x,b/x))||0)*("edges"===r?-1:1),w.b=b<0?i-b:i,w.u=te(e.amount||e.each)||0,n=n&&b<0?De(n):n}return b=(w[t]-w.min)/w.max||0,yt(w.b+(n?n(b):b)*w.v)+w.u}},ae=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=yt(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(L(n)?0:te(n))}},ue=function(t,e){var n,r,i=N(t);return!i&&j(t)&&(n=i=t.radius||E,t.values?(t=re(t.values),(r=!L(t[0]))&&(n*=n)):t=ae(t.increment)),Qt(e,i?D(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,o,s=parseFloat(r?e.x:e),a=parseFloat(r?e.y:0),u=E,l=0,c=t.length;c--;)(i=r?(i=t[c].x-s)*i+(o=t[c].y-a)*o:Math.abs(t[c]-s))<u&&(u=i,l=c);return l=!n||u<=n?t[l]:e,r||l===e||L(e)?l:l+te(e)}:ae(t))},le=function(t,e,n,r){return Qt(N(t)?!e:!0===n?!!(n=0):!r,(function(){return N(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*r)/r}))},ce=function(t,e,n){return Qt(n,(function(n){return t[~~e(n)]}))},fe=function(t){for(var e,n,r,i,o=0,s="";~(e=t.indexOf("random(",o));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?q:U),s+=t.substr(o,e-o)+le(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),o=r+1;return s+t.substr(o,t.length-o)},he=function(t,e,n,r,i){var o=e-t,s=r-n;return Qt(i,(function(e){return n+((e-t)/o*s||0)}))},pe=function(t,e,n){var r,i,o,s=t.labels,a=E;for(r in s)(i=s[r]-e)<0==!!n&&i&&a>(i=Math.abs(i))&&(o=r,a=i);return o},de=function(t,e,n){var r,i,o,s=t.vars,a=s[e],u=p,l=t._ctx;if(a)return r=s[e+"Params"],i=s.callbackScope||t,n&&st.length&&bt(),l&&(p=l),o=r?a.apply(i,r):a.call(i),p=u,o},me=function(t){return Rt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!h),t.progress()<1&&de(t,"onInterrupt"),t},ve=[],ge=function(t){if(F()&&t){var e=(t=!t.name&&t.default||t).name,n=D(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:et,render:ln,add:He,kill:fn,modifier:cn,rawVars:0},o={targetTest:0,get:0,getSetter:on,aliases:{},register:0};if(Ce(),t!==r){if(ut[e])return;kt(r,kt(Ct(t,i),o)),Pt(r.prototype,Pt(i,Ct(t,o))),ut[r.prop=e]=r,t.targetTest&&(ft.push(r),ot[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}tt(e,r),t.register&&t.register(Sn,r,dn)}else t&&ve.push(t)},ye=255,_e={aqua:[0,ye,ye],lime:[0,ye,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ye],navy:[0,0,128],white:[ye,ye,ye],olive:[128,128,0],yellow:[ye,ye,0],orange:[ye,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ye,0,0],pink:[ye,192,203],cyan:[0,ye,ye],transparent:[ye,ye,ye,0]},xe=function(t,e,n){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*ye+.5|0},be=function(t,e,n){var r,i,o,s,a,u,l,c,f,h,p=t?L(t)?[t>>16,t>>8&ye,t&ye]:0:_e.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),_e[t])p=_e[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),o=t.charAt(3),t="#"+r+r+i+i+o+o+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&ye,p&ye,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&ye,t&ye]}else if("hsl"===t.substr(0,3))if(p=h=t.match(U),e){if(~t.indexOf("="))return p=t.match(W),n&&p.length<4&&(p[3]=1),p}else s=+p[0]%360/360,a=+p[1]/100,r=2*(u=+p[2]/100)-(i=u<=.5?u*(a+1):u+a-u*a),p.length>3&&(p[3]*=1),p[0]=xe(s+1/3,r,i),p[1]=xe(s,r,i),p[2]=xe(s-1/3,r,i);else p=t.match(U)||_e.transparent;p=p.map(Number)}return e&&!h&&(r=p[0]/ye,i=p[1]/ye,o=p[2]/ye,u=((l=Math.max(r,i,o))+(c=Math.min(r,i,o)))/2,l===c?s=a=0:(f=l-c,a=u>.5?f/(2-l-c):f/(l+c),s=l===r?(i-o)/f+(i<o?6:0):l===i?(o-r)/f+2:(r-i)/f+4,s*=60),p[0]=~~(s+.5),p[1]=~~(100*a+.5),p[2]=~~(100*u+.5)),n&&p.length<4&&(p[3]=1),p},we=function(t){var e=[],n=[],r=-1;return t.split(Ee).forEach((function(t){var i=t.match($)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Te=function(t,e,n){var r,i,o,s,a="",u=(t+a).match(Ee),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map((function(t){return(t=be(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(o=we(t),(r=n.c).join(a)!==o.c.join(a)))for(s=(i=t.replace(Ee,"1").split($)).length-1;c<s;c++)a+=i[c]+(~r.indexOf(c)?u.shift()||l+"0,0,0,0)":(o.length?o:u.length?u:n).shift());if(!i)for(s=(i=t.split(Ee)).length-1;c<s;c++)a+=i[c]+u[c];return a+i[s]},Ee=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in _e)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),ke=/hsl[a]?\(/,Pe=function(t){var e,n=t.join(" ");if(Ee.lastIndex=0,Ee.test(n))return e=ke.test(n),t[1]=Te(t[1],e),t[0]=Te(t[0],e,we(t[1])),!0},Se=function(){var t,e,n,r,i,o,s=Date.now,a=500,u=33,l=s(),c=l,f=1e3/240,h=f,p=[],d=function n(d){var m,v,g,y,_=s()-c,x=!0===d;if(_>a&&(l+=_-u),((m=(g=(c+=_)-l)-h)>0||x)&&(y=++r.frame,i=g-1e3*r.time,r.time=g/=1e3,h+=m+(m>=f?4:f-m),v=1),x||(t=e(n)),v)for(o=0;o<p.length;o++)p[o](g,i,y,d)};return r={time:0,frame:0,tick:function(){d(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){y&&(!v&&F()&&(m=v=window,g=m.document||{},G.gsap=Sn,(m.gsapVersions||(m.gsapVersions=[])).push(Sn.version),K(Z||m.GreenSockGlobals||!m.gsap&&m||{}),n=m.requestAnimationFrame,ve.forEach(ge)),t&&r.sleep(),e=n||function(t){return setTimeout(t,h-1e3*r.time+1|0)},b=1,d(2))},sleep:function(){(n?m.cancelAnimationFrame:clearTimeout)(t),b=0,e=et},lagSmoothing:function(t,e){a=t||1/0,u=Math.min(e||33,a)},fps:function(t){f=1e3/(t||240),h=1e3*r.time+f},add:function(t,e,n){var i=e?function(e,n,o,s){t(e,n,o,s),r.remove(i)}:t;return r.remove(t),p[n?"unshift":"push"](i),Ce(),i},remove:function(t,e){~(e=p.indexOf(t))&&p.splice(e,1)&&o>=e&&o--},_listeners:p}}(),Ce=function(){return!b&&Se.wake()},Ae={},Me=/^[\d.\-M][\d.\-,\s]/,Oe=/["']/g,Re=function(t){for(var e,n,r,i={},o=t.substr(1,t.length-3).split(":"),s=o[0],a=1,u=o.length;a<u;a++)n=o[a],e=a!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[s]=isNaN(r)?r.replace(Oe,"").trim():+r,s=n.substr(e+1).trim();return i},De=function(t){return function(e){return 1-t(1-e)}},Le=function t(e,n){for(var r,i=e._first;i;)i instanceof Ue?t(i,n):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===n||(i.timeline?t(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},Ve=function(t,e){return t&&(D(t)?t:Ae[t]||function(t){var e,n,r,i,o=(t+"").split("("),s=Ae[o[0]];return s&&o.length>1&&s.config?s.config.apply(null,~t.indexOf("{")?[Re(o[1])]:(e=t,n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n),e.substring(n,~i&&i<r?e.indexOf(")",r+1):r)).split(",").map(Tt)):Ae._CE&&Me.test(t)?Ae._CE("",t):s}(t))||e},je=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,o={easeIn:e,easeOut:n,easeInOut:r};return vt(t,(function(t){for(var e in Ae[t]=G[t]=o,Ae[i=t.toLowerCase()]=n,o)Ae[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ae[t+"."+e]=o[e]})),o},Be=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Fe=function t(e,n,r){var i=n>=1?n:1,o=(r||(e?.3:.45))/(n<1?n:1),s=o/P*(Math.asin(1/i)||0),a=function(t){return 1===t?1:i*Math.pow(2,-10*t)*O((t-s)*o)+1},u="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:Be(a);return o=P/o,u.config=function(n,r){return t(e,n,r)},u},Ie=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:Be(r);return i.config=function(n){return t(e,n)},i};vt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;je(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),Ae.Linear.easeNone=Ae.none=Ae.Linear.easeIn,je("Elastic",Fe("in"),Fe("out"),Fe()),function(t,e){var n=1/e,r=function(r){return r<n?t*r*r:r<.7272727272727273?t*Math.pow(r-1.5/e,2)+.75:r<.9090909090909092?t*(r-=2.25/e)*r+.9375:t*Math.pow(r-2.625/e,2)+.984375};je("Bounce",(function(t){return 1-r(1-t)}),r)}(7.5625,2.75),je("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),je("Circ",(function(t){return-(A(1-t*t)-1)})),je("Sine",(function(t){return 1===t?1:1-M(t*S)})),je("Back",Ie("in"),Ie("out"),Ie()),Ae.SteppedEase=Ae.steps=G.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,r=t+(e?0:1),i=e?1:0;return function(t){return((r*Jt(0,.99999999,t)|0)+i)*n}}},T.ease=Ae["quad.out"],vt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return ht+=t+","+t+"Params,"}));var ze=function(t,e){this.id=C++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:mt,this.set=e?e.getSetter:on},Ne=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,qt(this,+t.duration,1,1),this.data=t.data,p&&(this._ctx=p,p.data.push(this)),b||Se.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,qt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ce(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(zt(this,t),!n._dp||n.parent||Nt(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&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Ut(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===k||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),wt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+jt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+jt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?Bt(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Ft(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Jt(-Math.abs(this._delay),this._tDur,e),!0),It(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ce(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==k&&(this._tTime-=k)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Ut(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(B(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ft(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=it);var e=h;return h=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),h=e,this},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(e._ts||1),e=e._dp;return!this.parent&&this._sat?this._sat.vars.immediateRender?-1/0:this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Xt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Xt(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Zt(this,t),B(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,B(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-k))},e.eventCallback=function(t,e,n){var r=this.vars;return arguments.length>1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=D(t)?t:Et,i=function(){var t=e.then;e.then=null,D(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){me(this)},t}();kt(Ne.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ue=function(t){function e(e,n){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=B(e.sortChildren),d&&Ut(e.parent||d,l(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&Wt(l(r),e.scrollTrigger),r}c(e,t);var n=e.prototype;return n.to=function(t,e,n){return Kt(0,arguments,this),this},n.from=function(t,e,n){return Kt(1,arguments,this),this},n.fromTo=function(t,e,n,r){return Kt(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,At(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Je(t,e,Zt(this,n),1),this},n.call=function(t,e,n){return Ut(this,Je.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,o,s){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=o,n.onCompleteParams=s,n.parent=this,new Je(t,n,Zt(this,i)),this},n.staggerFrom=function(t,e,n,r,i,o,s){return n.runBackwards=1,At(n).immediateRender=B(n.immediateRender),this.staggerTo(t,e,n,r,i,o,s)},n.staggerFromTo=function(t,e,n,r,i,o,s,a){return r.startAt=n,At(r).immediateRender=B(r.immediateRender),this.staggerTo(t,e,r,i,o,s,a)},n.render=function(t,e,n){var r,i,o,s,a,u,l,c,f,p,m,v,g=this._time,y=this._dirty?this.totalDuration():this._tDur,_=this._dur,x=t<=0?0:yt(t),b=this._zTime<0!=t<0&&(this._initted||!_);if(this!==d&&x>y&&t>=0&&(x=y),x!==this._tTime||n||b){if(g!==this._time&&_&&(x+=this._time-g,t+=this._time-g),r=x,f=this._start,u=!(c=this._ts),b&&(_||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(m=this._yoyo,a=_+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,n);if(r=yt(x%a),x===y?(s=this._repeat,r=_):((s=~~(x/a))&&s===x/a&&(r=_,s--),r>_&&(r=_)),p=Bt(this._tTime,a),!g&&this._tTime&&p!==s&&this._tTime-p*a-this._dur<=0&&(p=s),m&&1&s&&(r=_-r,v=1),s!==p&&!this._lock){var w=m&&1&p,T=w===(m&&1&s);if(s<p&&(w=!w),g=w?0:x%_?_:x,this._lock=1,this.render(g||(v?0:yt(s*a)),e,!_)._lock=0,this._tTime=x,!e&&this.parent&&de(this,"onRepeat"),this.vars.repeatRefresh&&!v&&(this.invalidate()._lock=1),g&&g!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(_=this._dur,y=this._tDur,T&&(this._lock=2,g=w?_:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!v&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Le(this,v)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=function(t,e,n){var r;if(n>e)for(r=t._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,yt(g),yt(r)),l&&(x-=r-(r=l._start))),this._tTime=x,this._time=r,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&r&&!e&&!s&&(de(this,"onStart"),this._tTime!==x))return this;if(r>=g&&t>=0)for(i=this._first;i;){if(o=i._next,(i._act||r>=i._start)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!u){l=0,o&&(x+=this._zTime=-1e-8);break}}i=o}else{i=this._last;for(var E=t<0?t:r;i;){if(o=i._prev,(i._act||E<=i._end)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(E-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(E-i._start)*i._ts,e,n||h&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!u){l=0,o&&(x+=this._zTime=E?-1e-8:k);break}}i=o}}if(l&&!e&&(this.pause(),l.render(r>=g?0:-1e-8)._zTime=r>=g?1:-1,this._ts))return this._start=f,It(this),this.render(t,e,n);this._onUpdate&&!e&&de(this,"onUpdate",!0),(x===y&&this._tTime>=this.totalDuration()||!x&&g)&&(f!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!_)&&(x===y&&this._ts>0||!x&&this._ts<0)&&Rt(this,1),e||t<0&&!g||!x&&!g&&y||(de(this,x===y&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(x<y&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(L(e)||(e=Zt(this,e,t)),!(t instanceof Ne)){if(N(t))return t.forEach((function(t){return n.add(t,e)})),this;if(R(t))return this.addLabel(t,e);if(!D(t))return this;t=Je.delayedCall(0,t)}return this!==t?Ut(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var i=[],o=this._first;o;)o._start>=r&&(o instanceof Je?e&&i.push(o):(n&&i.push(o),t&&i.push.apply(i,o.getChildren(!0,e,n)))),o=o._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return R(t)?this.removeLabel(t):D(t)?this.killTweensOf(t):(Ot(this,t),t===this._recent&&(this._recent=this._last),Dt(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=yt(Se.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=Zt(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=Je.delayedCall(0,e||et,n);return r.data="isPause",this._hasPause=1,Ut(this,r,Zt(this,t))},n.removePause=function(t){var e=this._first;for(t=Zt(this,t);e;)e._start===t&&"isPause"===e.data&&Rt(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)We!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=re(t),o=this._first,s=L(e);o;)o instanceof Je?xt(o._targets,i)&&(s?(!We||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&r.push(o):(n=o.getTweensOf(i,e)).length&&r.push.apply(r,n),o=o._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=Zt(r,t),o=e,s=o.startAt,a=o.onStart,u=o.onStartParams,l=o.immediateRender,c=Je.to(r,kt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale())||k,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale());c._dur!==t&&qt(c,t,0,1).render(c._time,!0,!0),n=1}a&&a.apply(c,u||[])}},e));return l?c.render(0):c},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,kt({startAt:{time:Zt(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),pe(this,Zt(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),pe(this,Zt(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+k)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,o=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in o)o[r]>=n&&(o[r]+=t);return Dt(this)},n.invalidate=function(e){var n=this._first;for(this._lock=0;n;)n.invalidate(e),n=n._next;return t.prototype.invalidate.call(this,e)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Dt(this)},n.totalDuration=function(t){var e,n,r,i=0,o=this,s=o._last,a=E;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(r=o.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>a&&o._sort&&s._ts&&!o._lock?(o._lock=1,Ut(o,s,n-s._delay,1)._lock=0):a=n,n<0&&s._ts&&(i-=n,(!r&&!o._dp||r&&r.smoothChildTiming)&&(o._start+=n/o._ts,o._time-=n,o._tTime-=n),o.shiftChildren(-n,!1,-Infinity),a=0),s._end>i&&s._ts&&(i=s._end),s=e;qt(o,o===d&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(t){if(d._ts&&(wt(d,Ft(t,d)),_=Se.frame),Se.frame>=ct){ct+=w.autoSleep||120;var e=d._first;if((!e||!e._ts)&&w.autoSleep&&Se._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Se.sleep()}}},e}(Ne);kt(Ue.prototype,{_lock:0,_hasPause:0,_forcing:0});var We,$e,Ye=function(t,e,n,r,i,o,s){var a,u,l,c,f,h,p,d,m=new dn(this._pt,t,e,0,1,un,null,i),v=0,g=0;for(m.b=n,m.e=r,n+="",(p=~(r+="").indexOf("random("))&&(r=fe(r)),o&&(o(d=[n,r],t,e),n=d[0],r=d[1]),u=n.match(Y)||[];a=Y.exec(r);)c=a[0],f=r.substring(v,a.index),l?l=(l+1)%5:"rgba("===f.substr(-5)&&(l=1),c!==u[g++]&&(h=parseFloat(u[g-1])||0,m._pt={_next:m._pt,p:f||1===g?f:",",s:h,c:"="===c.charAt(1)?_t(h,c)-h:parseFloat(c)-h,m:l&&l<4?Math.round:0},v=Y.lastIndex);return m.c=v<r.length?r.substring(v,r.length):"",m.fp=s,(H.test(r)||p)&&(m.e=0),this._pt=m,m},He=function(t,e,n,r,i,o,s,a,u,l){D(r)&&(r=r(i||0,t,o));var c,f=t[e],h="get"!==n?n:D(f)?u?t[e.indexOf("set")||!D(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():f,p=D(f)?u?nn:en:tn;if(R(r)&&(~r.indexOf("random(")&&(r=fe(r)),"="===r.charAt(1)&&((c=_t(h,r)+(te(h)||0))||0===c)&&(r=c)),!l||h!==r||$e)return isNaN(h*r)||""===r?(!f&&!(e in t)&&Q(e,r),Ye.call(this,t,e,h,r,p,a||w.stringFilter,u)):(c=new dn(this._pt,t,e,+h||0,r-(h||0),"boolean"==typeof f?an:sn,0,p),u&&(c.fp=u),s&&c.modifier(s,this,t),this._pt=c)},qe=function(t,e,n,r,i,o){var s,a,u,l;if(ut[t]&&!1!==(s=new ut[t]).init(i,s.rawVars?e[t]:function(t,e,n,r,i){if(D(t)&&(t=Ze(t,i,e,n,r)),!j(t)||t.style&&t.nodeType||N(t)||z(t))return R(t)?Ze(t,i,e,n,r):t;var o,s={};for(o in t)s[o]=Ze(t[o],i,e,n,r);return s}(e[t],r,i,o,n),n,r,o)&&(n._pt=a=new dn(n._pt,i,t,0,1,s.render,s,0,s.priority),n!==x))for(u=n._ptLookup[n._targets.indexOf(i)],l=s._props.length;l--;)u[s._props[l]]=a;return s},Xe=function t(e,n,r){var i,o,s,a,u,l,c,p,m,v,g,y,_,x=e.vars,b=x.ease,w=x.startAt,P=x.immediateRender,S=x.lazy,C=x.onUpdate,A=x.onUpdateParams,M=x.callbackScope,O=x.runBackwards,R=x.yoyoEase,D=x.keyframes,L=x.autoRevert,V=e._dur,j=e._startAt,F=e._targets,I=e.parent,z=I&&"nested"===I.data?I.vars.targets:F,N="auto"===e._overwrite&&!f,U=e.timeline;if(U&&(!D||!b)&&(b="none"),e._ease=Ve(b,T.ease),e._yEase=R?De(Ve(!0===R?b:R,T.ease)):0,R&&e._yoyo&&!e._repeat&&(R=e._yEase,e._yEase=e._ease,e._ease=R),e._from=!U&&!!x.runBackwards,!U||D&&!x.stagger){if(y=(p=F[0]?dt(F[0]).harness:0)&&x[p.prop],i=Ct(x,ot),j&&(j._zTime<0&&j.progress(1),n<0&&O&&P&&!L?j.render(-1,!0):j.revert(O&&V?rt:nt),j._lazy=0),w){if(Rt(e._startAt=Je.set(F,kt({data:"isStart",overwrite:!1,parent:I,immediateRender:!0,lazy:!j&&B(S),startAt:null,delay:0,onUpdate:C,onUpdateParams:A,callbackScope:M,stagger:0},w))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(h||!P&&!L)&&e._startAt.revert(rt),P&&V&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(O&&V&&!j)if(n&&(P=!1),s=kt({overwrite:!1,data:"isFromStart",lazy:P&&!j&&B(S),immediateRender:P,stagger:0,parent:I},i),y&&(s[p.prop]=y),Rt(e._startAt=Je.set(F,s)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(h?e._startAt.revert(rt):e._startAt.render(-1,!0)),e._zTime=n,P){if(!n)return}else t(e._startAt,k,k);for(e._pt=e._ptCache=0,S=V&&B(S)||S&&!V,o=0;o<F.length;o++){if(c=(u=F[o])._gsap||pt(F)[o]._gsap,e._ptLookup[o]=v={},at[c.id]&&st.length&&bt(),g=z===F?o:z.indexOf(u),p&&!1!==(m=new p).init(u,y||i,e,g,z)&&(e._pt=a=new dn(e._pt,u,m.name,0,1,m.render,m,0,m.priority),m._props.forEach((function(t){v[t]=a})),m.priority&&(l=1)),!p||y)for(s in i)ut[s]&&(m=qe(s,i,e,g,u,z))?m.priority&&(l=1):v[s]=a=He.call(e,u,s,"get",i[s],g,z,0,x.stringFilter);e._op&&e._op[o]&&e.kill(u,e._op[o]),N&&e._pt&&(We=e,d.killTweensOf(u,v,e.globalTime(n)),_=!e.parent,We=0),e._pt&&S&&(at[c.id]=1)}l&&pn(e),e._onInit&&e._onInit(e)}e._onUpdate=C,e._initted=(!e._op||e._pt)&&!_,D&&n<=0&&U.render(E,!0,!0)},Ge=function(t,e,n,r){var i,o,s=e.ease||r||"power1.inOut";if(N(e))o=n[t]||(n[t]=[]),e.forEach((function(t,n){return o.push({t:n/(e.length-1)*100,v:t,e:s})}));else for(i in e)o=n[i]||(n[i]=[]),"ease"===i||o.push({t:parseFloat(t),v:e[i],e:s})},Ze=function(t,e,n,r,i){return D(t)?t.call(e,n,r,i):R(t)&&~t.indexOf("random(")?fe(t):t},Ke=ht+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Qe={};vt(Ke+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return Qe[t]=1}));var Je=function(t){function e(e,n,r,i){var o;"number"==typeof n&&(r.duration=n,n=r,r=null);var s,a,u,c,h,p,m,v,g=(o=t.call(this,i?n:At(n))||this).vars,y=g.duration,_=g.delay,x=g.immediateRender,b=g.stagger,T=g.overwrite,E=g.keyframes,k=g.defaults,P=g.scrollTrigger,S=g.yoyoEase,C=n.parent||d,A=(N(e)||z(e)?L(e[0]):"length"in n)?[e]:re(e);if(o._targets=A.length?pt(A):J("GSAP target "+e+" not found. https://greensock.com",!w.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=T,E||b||I(y)||I(_)){if(n=o.vars,(s=o.timeline=new Ue({data:"nested",defaults:k||{},targets:C&&"nested"===C.data?C.vars.targets:A})).kill(),s.parent=s._dp=l(o),s._start=0,b||I(y)||I(_)){if(c=A.length,m=b&&se(b),j(b))for(h in b)~Ke.indexOf(h)&&(v||(v={}),v[h]=b[h]);for(a=0;a<c;a++)(u=Ct(n,Qe)).stagger=0,S&&(u.yoyoEase=S),v&&Pt(u,v),p=A[a],u.duration=+Ze(y,l(o),a,p,A),u.delay=(+Ze(_,l(o),a,p,A)||0)-o._delay,!b&&1===c&&u.delay&&(o._delay=_=u.delay,o._start+=_,u.delay=0),s.to(p,u,m?m(a,p,A):0),s._ease=Ae.none;s.duration()?y=_=0:o.timeline=0}else if(E){At(kt(s.vars.defaults,{ease:"none"})),s._ease=Ve(E.ease||n.ease||"none");var M,O,R,D=0;if(N(E))E.forEach((function(t){return s.to(A,t,">")})),s.duration();else{for(h in u={},E)"ease"===h||"easeEach"===h||Ge(h,E[h],u,E.easeEach);for(h in u)for(M=u[h].sort((function(t,e){return t.t-e.t})),D=0,a=0;a<M.length;a++)(R={ease:(O=M[a]).e,duration:(O.t-(a?M[a-1].t:0))/100*y})[h]=O.v,s.to(A,R,D),D+=R.duration;s.duration()<y&&s.to({},{duration:y-s.duration()})}}y||o.duration(y=s.duration())}else o.timeline=0;return!0!==T||f||(We=l(o),d.killTweensOf(A),We=0),Ut(C,l(o),r),n.reversed&&o.reverse(),n.paused&&o.paused(!0),(x||!y&&!E&&o._start===yt(C._time)&&B(x)&&Vt(l(o))&&"nested"!==C.data)&&(o._tTime=-1e-8,o.render(Math.max(0,-_)||0)),P&&Wt(l(o),P),o}c(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,o,s,a,u,l,c,f,p=this._time,d=this._tDur,m=this._dur,v=t<0,g=t>d-k&&!v?d:t<k?0:t;if(m){if(g!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==v){if(r=g,c=this.timeline,this._repeat){if(s=m+this._rDelay,this._repeat<-1&&v)return this.totalTime(100*s+t,e,n);if(r=yt(g%s),g===d?(o=this._repeat,r=m):((o=~~(g/s))&&o===g/s&&(r=m,o--),r>m&&(r=m)),(u=this._yoyo&&1&o)&&(f=this._yEase,r=m-r),a=Bt(this._tTime,s),r===p&&!n&&this._initted)return this._tTime=g,this;o!==a&&(c&&this._yEase&&Le(c,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(yt(s*o),!0).invalidate()._lock=0))}if(!this._initted){if($t(this,v?t:r,n,e,g))return this._tTime=0,this;if(p!==this._time)return this;if(m!==this._dur)return this.render(t,e,n)}if(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(f||this._ease)(r/m),this._from&&(this.ratio=l=1-l),r&&!p&&!e&&!o&&(de(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;c&&c.render(t<0?t:!r&&u?-1e-8:c._dur*c._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(v&&Lt(this,t,0,n),de(this,"onUpdate")),this._repeat&&o!==a&&this.vars.onRepeat&&!e&&this.parent&&de(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(v&&!this._onUpdate&&Lt(this,t,0,!0),(t||!m)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Rt(this,1),e||v&&!p||!(g||p||u)||(de(this,g===d?"onComplete":"onReverseComplete",!0),this._prom&&!(g<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,o,s,a=t.ratio,u=e<0||!e&&(!t._start&&Yt(t)&&(t._initted||!Ht(t))||(t._ts<0||t._dp._ts<0)&&!Ht(t))?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=Jt(0,t._tDur,e),o=Bt(c,l),t._yoyo&&1&o&&(u=1-u),o!==Bt(t._tTime,l)&&(a=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==a||h||r||t._zTime===k||!e&&t._zTime){if(!t._initted&&$t(t,e,r,n,c))return;for(s=t._zTime,t._zTime=e||(n?k:0),n||(n=e&&!s),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=c,i=t._pt;i;)i.r(u,i.d),i=i._next;e<0&&Lt(t,e,0,!0),t._onUpdate&&!n&&de(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&de(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Rt(t,1),n||h||(de(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},n.resetTo=function(t,e,n,r){b||Se.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Xe(this,i),function(t,e,n,r,i,o,s){var a,u,l,c,f=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!f)for(f=t._ptCache[e]=[],l=t._ptLookup,c=t._targets.length;c--;){if((a=l[c][e])&&a.d&&a.d._pt)for(a=a.d._pt;a&&a.p!==e&&a.fp!==e;)a=a._next;if(!a)return $e=1,t.vars[e]="+=0",Xe(t,s),$e=0,1;f.push(a)}for(c=f.length;c--;)(a=(u=f[c])._pt||u).s=!r&&0!==r||i?a.s+(r||0)+o*a.c:r,a.c=n-a.s,u.e&&(u.e=gt(n)+te(u.e)),u.b&&(u.b=a.s+te(u.b))}(this,t,e,n,r,this._ease(i/this._dur),i)?this.resetTo(t,e,n,r):(zt(this,0),this.parent||Mt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?me(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,We&&!0!==We.vars.overwrite)._first||me(this),this.parent&&n!==this.timeline.totalDuration()&&qt(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,o,s,a,u,l,c=this._targets,f=t?re(t):c,h=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(c,f))return"all"===e&&(this._pt=0),me(this);for(r=this._op=this._op||[],"all"!==e&&(R(e)&&(a={},vt(e,(function(t){return a[t]=1})),e=a),e=function(t,e){var n,r,i,o,s=t[0]?dt(t[0]).harness:0,a=s&&s.aliases;if(!a)return e;for(r in n=Pt({},e),a)if(r in n)for(i=(o=a[r].split(",")).length;i--;)n[o[i]]=n[r];return n}(c,e)),l=c.length;l--;)if(~f.indexOf(c[l]))for(a in i=h[l],"all"===e?(r[l]=e,s=i,o={}):(o=r[l]=r[l]||{},s=e),s)(u=i&&i[a])&&("kill"in u.d&&!0!==u.d.kill(a)||Ot(this,u,"_pt"),delete i[a]),"all"!==o&&(o[a]=1);return this._initted&&!this._pt&&p&&me(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return Kt(1,arguments)},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,e,n){return Kt(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return d.killTweensOf(t,e,n)},e}(Ne);kt(Je.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),vt("staggerTo,staggerFrom,staggerFromTo",(function(t){Je[t]=function(){var e=new Ue,n=ee.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var tn=function(t,e,n){return t[e]=n},en=function(t,e,n){return t[e](n)},nn=function(t,e,n,r){return t[e](r.fp,n)},rn=function(t,e,n){return t.setAttribute(e,n)},on=function(t,e){return D(t[e])?en:V(t[e])&&t.setAttribute?rn:tn},sn=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},an=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},un=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},ln=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},cn=function(t,e,n,r){for(var i,o=this._pt;o;)i=o._next,o.p===r&&o.modifier(t,e,n),o=i},fn=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Ot(this,r,"_pt"):r.dep||(e=1),r=n;return!e},hn=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},pn=function(t){for(var e,n,r,i,o=t._pt;o;){for(e=o._next,n=r;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:i)?o._prev._next=o:r=o,(o._next=n)?n._prev=o:i=o,o=e}t._pt=r},dn=function(){function t(t,e,n,r,i,o,s,a,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=o||sn,this.d=s||this,this.set=a||tn,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=hn,this.m=t,this.mt=n,this.tween=e},t}();vt(ht+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return ot[t]=1})),G.TweenMax=G.TweenLite=Je,G.TimelineLite=G.TimelineMax=Ue,d=new Ue({sortChildren:!1,defaults:T,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),w.stringFilter=Pe;var mn=[],vn={},gn=[],yn=0,_n=0,xn=function(t){return(vn[t]||gn).map((function(t){return t()}))},bn=function(){var t=Date.now(),e=[];t-yn>2&&(xn("matchMediaInit"),mn.forEach((function(t){var n,r,i,o,s=t.queries,a=t.conditions;for(r in s)(n=m.matchMedia(s[r]).matches)&&(i=1),n!==a[r]&&(a[r]=n,o=1);o&&(t.revert(),i&&e.push(t))})),xn("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t)})),yn=t,xn("matchMedia"))},wn=function(){function t(t,e){this.selector=e&&ie(e),this.data=[],this._r=[],this.isReverted=!1,this.id=_n++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){D(t)&&(n=e,e=t,t=D);var r=this,i=function(){var t,i=p,o=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=ie(n)),p=r,t=e.apply(r,arguments),D(t)&&r._r.push(t),p=i,r.selector=o,r.isReverted=!1,t};return r.last=i,t===D?i(r):t?r[t]=i:i},e.ignore=function(t){var e=p;p=null,t(this),p=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof Je&&!(n.parent&&"nested"===n.parent.data)&&e.push(n)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var n=this;if(t){var r=this.getTweens();this.data.forEach((function(t){"isFlip"===t.data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(t){return r.splice(r.indexOf(t),1)})))})),r.map((function(t){return{g:t.globalTime(0),t:t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),this.data.forEach((function(e){return!(e instanceof Je)&&e.revert&&e.revert(t)})),this._r.forEach((function(e){return e(t,n)})),this.isReverted=!0}else this.data.forEach((function(t){return t.kill&&t.kill()}));if(this.clear(),e)for(var i=mn.length;i--;)mn[i].id===this.id&&mn.splice(i,1)},e.revert=function(t){this.kill(t||{})},t}(),Tn=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,n){j(t)||(t={matches:t});var r,i,o,s=new wn(0,n||this.scope),a=s.conditions={};for(i in p&&!s.selector&&(s.selector=p.selector),this.contexts.push(s),e=s.add("onMatch",e),s.queries=t,t)"all"===i?o=1:(r=m.matchMedia(t[i]))&&(mn.indexOf(s)<0&&mn.push(s),(a[i]=r.matches)&&(o=1),r.addListener?r.addListener(bn):r.addEventListener("change",bn));return o&&e(s),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),En={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return ge(t)}))},timeline:function(t){return new Ue(t)},getTweensOf:function(t,e){return d.getTweensOf(t,e)},getProperty:function(t,e,n,r){R(t)&&(t=re(t)[0]);var i=dt(t||{}).get,o=n?Et:Tt;return"native"===n&&(n=""),t?e?o((ut[e]&&ut[e].get||i)(t,e,n,r)):function(e,n,r){return o((ut[e]&&ut[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=re(t)).length>1){var r=t.map((function(t){return Sn.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var o=ut[e],s=dt(t),a=s.harness&&(s.harness.aliases||{})[e]||e,u=o?function(e){var r=new o;x._pt=0,r.init(t,n?e+n:e,x,0,[t]),r.render(1,r),x._pt&&ln(1,x)}:s.set(t,a);return o?u:function(e){return u(t,a,n?e+n:e,s,1)}},quickTo:function(t,e,n){var r,i=Sn.to(t,Pt(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),o=function(t,n,r){return i.resetTo(e,t,n,r)};return o.tween=i,o},isTweening:function(t){return d.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ve(t.ease,T.ease)),St(T,t||{})},config:function(t){return St(w,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,o=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!ut[t]&&!G[t]&&J(e+" effect requires "+t+" plugin.")})),lt[e]=function(t,e,r){return n(re(t),kt(e||{},i),r)},o&&(Ue.prototype[e]=function(t,n,r){return this.add(lt[e](t,j(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Ae[t]=Ve(e)},parseEase:function(t,e){return arguments.length?Ve(t,e):Ae},getById:function(t){return d.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new Ue(t);for(i.smoothChildTiming=B(t.smoothChildTiming),d.remove(i),i._dp=0,i._time=i._tTime=d._time,n=d._first;n;)r=n._next,!e&&!n._dur&&n instanceof Je&&n.vars.onComplete===n._targets[0]||Ut(i,n,n._start-n._delay),n=r;return Ut(d,i,0),i},context:function(t,e){return t?new wn(t,e):p},matchMedia:function(t){return new Tn(t)},matchMediaRefresh:function(){return mn.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||bn()},addEventListener:function(t,e){var n=vn[t]||(vn[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=vn[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return N(e)?ce(e,t(0,e.length),n):Qt(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,o=2*i;return N(e)?ce(e,t(0,e.length-1),n):Qt(r,(function(t){return e+((t=(o+(t-e)%o)%o||0)>i?o-t:t)}))},distribute:se,random:le,snap:ue,normalize:function(t,e,n){return he(t,e,0,1,n)},getUnit:te,clamp:function(t,e,n){return Qt(n,(function(n){return Jt(t,e,n)}))},splitColor:be,toArray:re,selector:ie,mapRange:he,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(n){return t(parseFloat(n))+(e||te(n))}},interpolate:function t(e,n,r,i){var o=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!o){var s,a,u,l,c,f=R(e),h={};if(!0===r&&(i=1)&&(r=null),f)e={p:e},n={p:n};else if(N(e)&&!N(n)){for(u=[],l=e.length,c=l-2,a=1;a<l;a++)u.push(t(e[a-1],e[a]));l--,o=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},r=n}else i||(e=Pt(N(e)?[]:{},e));if(!u){for(s in n)He.call(h,e,s,"get",n[s]);o=function(t){return ln(t,h)||(f?e.p:e)}}}return Qt(r,o)},shuffle:oe},install:K,effects:lt,ticker:Se,updateRoot:Ue.updateRoot,plugins:ut,globalTimeline:d,core:{PropTween:dn,globals:tt,Tween:Je,Timeline:Ue,Animation:Ne,getCache:dt,_removeLinkedListItem:Ot,reverting:function(){return h},context:function(t){return t&&p&&(p.data.push(t),t._ctx=p),p},suppressOverwrites:function(t){return f=t}}};vt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return En[t]=Je[t]})),Se.add(Ue.updateRoot),x=En.to({},{duration:0});var kn=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Pn=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(R(n)&&(r={},vt(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}!function(t,e){var n,r,i,o=t._targets;for(n in e)for(r=o.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=kn(i,n)),i&&i.modifier&&i.modifier(e[n],t,o[r],n))}(t,n)}}}},Sn=En.registerPlugin({name:"attr",init:function(t,e,n,r,i){var o,s,a;for(o in this.tween=n,e)a=t.getAttribute(o)||"",(s=this.add(t,"setAttribute",(a||0)+"",e[o],r,i,0,0,o)).op=o,s.b=a,this._props.push(o)},render:function(t,e){for(var n=e._pt;n;)h?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n],0,0,0,0,0,1)}},Pn("roundProps",ae),Pn("modifiers"),Pn("snap",ue))||En;Je.version=Ue.version=Sn.version="3.12.2",y=1,F()&&Ce(),Ae.Power0,Ae.Power1,Ae.Power2,Ae.Power3,Ae.Power4,Ae.Linear,Ae.Quad,Ae.Cubic,Ae.Quart,Ae.Quint,Ae.Strong,Ae.Elastic,Ae.Back,Ae.SteppedEase,Ae.Bounce,Ae.Sine,Ae.Expo,Ae.Circ;
11
- /*!
12
- * CSSPlugin 3.12.2
13
- * https://greensock.com
14
- *
15
- * Copyright 2008-2023, GreenSock. All rights reserved.
16
- * Subject to the terms at https://greensock.com/standard-license or for
17
- * Club GreenSock members, the agreement issued with that membership.
18
- * @author: Jack Doyle, jack@greensock.com
19
- */
20
- var Cn,An,Mn,On,Rn,Dn,Ln,Vn,jn={},Bn=180/Math.PI,Fn=Math.PI/180,In=Math.atan2,zn=/([A-Z])/g,Nn=/(left|right|width|margin|padding|x)/i,Un=/[\s,\(]\S/,Wn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},$n=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Yn=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Hn=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},qn=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},Xn=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Gn=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Zn=function(t,e,n){return t.style[e]=n},Kn=function(t,e,n){return t.style.setProperty(e,n)},Qn=function(t,e,n){return t._gsap[e]=n},Jn=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},tr=function(t,e,n,r,i){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(i,o)},er=function(t,e,n,r,i){var o=t._gsap;o[e]=n,o.renderTransform(i,o)},nr="transform",rr=nr+"Origin",ir=function t(e,n){var r=this,i=this.target,o=i.style;if(e in jn&&o){if(this.tfm=this.tfm||{},"transform"===e)return Wn.transform.split(",").forEach((function(e){return t.call(r,e,n)}));if(~(e=Wn[e]||e).indexOf(",")?e.split(",").forEach((function(t){return r.tfm[t]=wr(i,t)})):this.tfm[e]=i._gsap.x?i._gsap[e]:wr(i,e),this.props.indexOf(nr)>=0)return;i._gsap.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(rr,n,"")),e=nr}(o||n)&&this.props.push(e,n,o[e])},or=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},sr=function(){var t,e,n=this.props,r=this.target,i=r.style,o=r._gsap;for(t=0;t<n.length;t+=3)n[t+1]?r[n[t]]=n[t+2]:n[t+2]?i[n[t]]=n[t+2]:i.removeProperty("--"===n[t].substr(0,2)?n[t]:n[t].replace(zn,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)o[e]=this.tfm[e];o.svg&&(o.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=Ln())&&t.isStart||i[nr]||(or(i),o.uncache=1)}},ar=function(t,e){var n={target:t,props:[],revert:sr,save:ir};return t._gsap||Sn.core.getCache(t),e&&e.split(",").forEach((function(t){return n.save(t)})),n},ur=function(t,e){var n=An.createElementNS?An.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):An.createElement(t);return n.style?n:An.createElement(t)},lr=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(zn,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,fr(n)||n,1)||""},cr="O,Moz,ms,Ms,Webkit".split(","),fr=function(t,e,n){var r=(e||Rn).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(cr[i]+t in r););return i<0?null:(3===i?"ms":i>=0?cr[i]:"")+t},hr=function(){"undefined"!=typeof window&&window.document&&(Cn=window,An=Cn.document,Mn=An.documentElement,Rn=ur("div")||{style:{}},ur("div"),nr=fr(nr),rr=nr+"Origin",Rn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Vn=!!fr("perspective"),Ln=Sn.core.reverting,On=1)},pr=function t(e){var n,r=ur("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,o=this.nextSibling,s=this.style.cssText;if(Mn.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(o?i.insertBefore(this,o):i.appendChild(this)),Mn.removeChild(r),this.style.cssText=s,n},dr=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},mr=function(t){var e;try{e=t.getBBox()}catch(n){e=pr.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===pr||(e=pr.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+dr(t,["x","cx","x1"])||0,y:+dr(t,["y","cy","y1"])||0,width:0,height:0}},vr=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!mr(t))},gr=function(t,e){if(e){var n=t.style;e in jn&&e!==rr&&(e=nr),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(zn,"-$1").toLowerCase())):n.removeAttribute(e)}},yr=function(t,e,n,r,i,o){var s=new dn(t._pt,e,n,0,1,o?Gn:Xn);return t._pt=s,s.b=r,s.e=i,t._props.push(n),s},_r={deg:1,rad:1,turn:1},xr={grid:1,flex:1},br=function t(e,n,r,i){var o,s,a,u,l=parseFloat(r)||0,c=(r+"").trim().substr((l+"").length)||"px",f=Rn.style,h=Nn.test(n),p="svg"===e.tagName.toLowerCase(),d=(p?"client":"offset")+(h?"Width":"Height"),m=100,v="px"===i,g="%"===i;return i===c||!l||_r[i]||_r[c]?l:("px"!==c&&!v&&(l=t(e,n,r,"px")),u=e.getCTM&&vr(e),!g&&"%"!==c||!jn[n]&&!~n.indexOf("adius")?(f[h?"width":"height"]=m+(v?c:i),s=~n.indexOf("adius")||"em"===i&&e.appendChild&&!p?e:e.parentNode,u&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==An&&s.appendChild||(s=An.body),(a=s._gsap)&&g&&a.width&&h&&a.time===Se.time&&!a.uncache?gt(l/a.width*m):((g||"%"===c)&&!xr[lr(s,"display")]&&(f.position=lr(e,"position")),s===e&&(f.position="static"),s.appendChild(Rn),o=Rn[d],s.removeChild(Rn),f.position="absolute",h&&g&&((a=dt(s)).time=Se.time,a.width=s[d]),gt(v?o*l/m:o&&l?m/o*l:0))):(o=u?e.getBBox()[h?"width":"height"]:e[d],gt(g?l/o*m:l/100*o)))},wr=function(t,e,n,r){var i;return On||hr(),e in Wn&&"transform"!==e&&~(e=Wn[e]).indexOf(",")&&(e=e.split(",")[0]),jn[e]&&"transform"!==e?(i=Lr(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Vr(lr(t,rr))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Sr[e]&&Sr[e](t,e,n)||lr(t,e)||mt(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?br(t,e,i,n)+n:i},Tr=function(t,e,n,r){if(!n||"none"===n){var i=fr(e,t,1),o=i&&lr(t,i,1);o&&o!==n?(e=i,n=o):"borderColor"===e&&(n=lr(t,"borderTopColor"))}var s,a,u,l,c,f,h,p,d,m,v,g=new dn(this._pt,t.style,e,0,1,un),y=0,_=0;if(g.b=n,g.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=lr(t,e)||r,t.style[e]=n),Pe(s=[n,r]),r=s[1],u=(n=s[0]).match($)||[],(r.match($)||[]).length){for(;a=$.exec(r);)h=a[0],d=r.substring(y,a.index),c?c=(c+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(c=1),h!==(f=u[_++]||"")&&(l=parseFloat(f)||0,v=f.substr((l+"").length),"="===h.charAt(1)&&(h=_t(l,h)+v),p=parseFloat(h),m=h.substr((p+"").length),y=$.lastIndex-m.length,m||(m=m||w.units[e]||v,y===r.length&&(r+=m,g.e+=m)),v!==m&&(l=br(t,e,f,m)||0),g._pt={_next:g._pt,p:d||1===_?d:",",s:l,c:p-l,m:c&&c<4||"zIndex"===e?Math.round:0});g.c=y<r.length?r.substring(y,r.length):""}else g.r="display"===e&&"none"===r?Gn:Xn;return H.test(r)&&(g.e=0),this._pt=g,g},Er={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},kr=function(t){var e=t.split(" "),n=e[0],r=e[1]||"50%";return"top"!==n&&"bottom"!==n&&"left"!==r&&"right"!==r||(t=n,n=r,r=t),e[0]=Er[n]||n,e[1]=Er[r]||r,e.join(" ")},Pr=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,o=e.t,s=o.style,a=e.u,u=o._gsap;if("all"===a||!0===a)s.cssText="",r=1;else for(i=(a=a.split(",")).length;--i>-1;)n=a[i],jn[n]&&(r=1,n="transformOrigin"===n?rr:nr),gr(o,n);r&&(gr(o,nr),u&&(u.svg&&o.removeAttribute("transform"),Lr(o,1),u.uncache=1,or(s)))}},Sr={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var o=t._pt=new dn(t._pt,e,n,0,0,Pr);return o.u=r,o.pr=-10,o.tween=i,t._props.push(n),1}}},Cr=[1,0,0,1,0,0],Ar={},Mr=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Or=function(t){var e=lr(t,nr);return Mr(e)?Cr:e.substr(7).match(W).map(gt)},Rr=function(t,e){var n,r,i,o,s=t._gsap||dt(t),a=t.style,u=Or(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Cr:u:(u!==Cr||t.offsetParent||t===Mn||s.svg||(i=a.display,a.display="block",(n=t.parentNode)&&t.offsetParent||(o=1,r=t.nextElementSibling,Mn.appendChild(t)),u=Or(t),i?a.display=i:gr(t,"display"),o&&(r?n.insertBefore(t,r):n?n.appendChild(t):Mn.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Dr=function(t,e,n,r,i,o){var s,a,u,l=t._gsap,c=i||Rr(t,!0),f=l.xOrigin||0,h=l.yOrigin||0,p=l.xOffset||0,d=l.yOffset||0,m=c[0],v=c[1],g=c[2],y=c[3],_=c[4],x=c[5],b=e.split(" "),w=parseFloat(b[0])||0,T=parseFloat(b[1])||0;n?c!==Cr&&(a=m*y-v*g)&&(u=w*(-v/a)+T*(m/a)-(m*x-v*_)/a,w=w*(y/a)+T*(-g/a)+(g*x-y*_)/a,T=u):(w=(s=mr(t)).x+(~b[0].indexOf("%")?w/100*s.width:w),T=s.y+(~(b[1]||b[0]).indexOf("%")?T/100*s.height:T)),r||!1!==r&&l.smooth?(_=w-f,x=T-h,l.xOffset=p+(_*m+x*g)-_,l.yOffset=d+(_*v+x*y)-x):l.xOffset=l.yOffset=0,l.xOrigin=w,l.yOrigin=T,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[rr]="0px 0px",o&&(yr(o,l,"xOrigin",f,w),yr(o,l,"yOrigin",h,T),yr(o,l,"xOffset",p,l.xOffset),yr(o,l,"yOffset",d,l.yOffset)),t.setAttribute("data-svg-origin",w+" "+T)},Lr=function(t,e){var n=t._gsap||new ze(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,o,s,a,u,l,c,f,h,p,d,m,v,g,y,_,x,b,T,E,k,P,S,C,A,M,O,R,D,L,V,j=t.style,B=n.scaleX<0,F="px",I="deg",z=getComputedStyle(t),N=lr(t,rr)||"0";return r=i=o=u=l=c=f=h=p=0,s=a=1,n.svg=!(!t.getCTM||!vr(t)),z.translate&&("none"===z.translate&&"none"===z.scale&&"none"===z.rotate||(j[nr]=("none"!==z.translate?"translate3d("+(z.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==z.rotate?"rotate("+z.rotate+") ":"")+("none"!==z.scale?"scale("+z.scale.split(" ").join(",")+") ":"")+("none"!==z[nr]?z[nr]:"")),j.scale=j.rotate=j.translate="none"),v=Rr(t,n.svg),n.svg&&(n.uncache?(C=t.getBBox(),N=n.xOrigin-C.x+"px "+(n.yOrigin-C.y)+"px",S=""):S=!e&&t.getAttribute("data-svg-origin"),Dr(t,S||N,!!S||n.originIsAbsolute,!1!==n.smooth,v)),d=n.xOrigin||0,m=n.yOrigin||0,v!==Cr&&(x=v[0],b=v[1],T=v[2],E=v[3],r=k=v[4],i=P=v[5],6===v.length?(s=Math.sqrt(x*x+b*b),a=Math.sqrt(E*E+T*T),u=x||b?In(b,x)*Bn:0,(f=T||E?In(T,E)*Bn+u:0)&&(a*=Math.abs(Math.cos(f*Fn))),n.svg&&(r-=d-(d*x+m*T),i-=m-(d*b+m*E))):(V=v[6],D=v[7],M=v[8],O=v[9],R=v[10],L=v[11],r=v[12],i=v[13],o=v[14],l=(g=In(V,R))*Bn,g&&(S=k*(y=Math.cos(-g))+M*(_=Math.sin(-g)),C=P*y+O*_,A=V*y+R*_,M=k*-_+M*y,O=P*-_+O*y,R=V*-_+R*y,L=D*-_+L*y,k=S,P=C,V=A),c=(g=In(-T,R))*Bn,g&&(y=Math.cos(-g),L=E*(_=Math.sin(-g))+L*y,x=S=x*y-M*_,b=C=b*y-O*_,T=A=T*y-R*_),u=(g=In(b,x))*Bn,g&&(S=x*(y=Math.cos(g))+b*(_=Math.sin(g)),C=k*y+P*_,b=b*y-x*_,P=P*y-k*_,x=S,k=C),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),s=gt(Math.sqrt(x*x+b*b+T*T)),a=gt(Math.sqrt(P*P+V*V)),g=In(k,P),f=Math.abs(g)>2e-4?g*Bn:0,p=L?1/(L<0?-L:L):0),n.svg&&(S=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Mr(lr(t,nr)),S&&t.setAttribute("transform",S))),Math.abs(f)>90&&Math.abs(f)<270&&(B?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(a*=-1,f+=f<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+F,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+F,n.z=o+F,n.scaleX=gt(s),n.scaleY=gt(a),n.rotation=gt(u)+I,n.rotationX=gt(l)+I,n.rotationY=gt(c)+I,n.skewX=f+I,n.skewY=h+I,n.transformPerspective=p+F,(n.zOrigin=parseFloat(N.split(" ")[2])||0)&&(j[rr]=Vr(N)),n.xOffset=n.yOffset=0,n.force3D=w.force3D,n.renderTransform=n.svg?Ur:Vn?Nr:Br,n.uncache=0,n},Vr=function(t){return(t=t.split(" "))[0]+" "+t[1]},jr=function(t,e,n){var r=te(e);return gt(parseFloat(e)+parseFloat(br(t,"x",n+"px",r)))+r},Br=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Nr(t,e)},Fr="0deg",Ir="0px",zr=") ",Nr=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,o=n.x,s=n.y,a=n.z,u=n.rotation,l=n.rotationY,c=n.rotationX,f=n.skewX,h=n.skewY,p=n.scaleX,d=n.scaleY,m=n.transformPerspective,v=n.force3D,g=n.target,y=n.zOrigin,_="",x="auto"===v&&t&&1!==t||!0===v;if(y&&(c!==Fr||l!==Fr)){var b,w=parseFloat(l)*Fn,T=Math.sin(w),E=Math.cos(w);w=parseFloat(c)*Fn,b=Math.cos(w),o=jr(g,o,T*b*-y),s=jr(g,s,-Math.sin(w)*-y),a=jr(g,a,E*b*-y+y)}m!==Ir&&(_+="perspective("+m+zr),(r||i)&&(_+="translate("+r+"%, "+i+"%) "),(x||o!==Ir||s!==Ir||a!==Ir)&&(_+=a!==Ir||x?"translate3d("+o+", "+s+", "+a+") ":"translate("+o+", "+s+zr),u!==Fr&&(_+="rotate("+u+zr),l!==Fr&&(_+="rotateY("+l+zr),c!==Fr&&(_+="rotateX("+c+zr),f===Fr&&h===Fr||(_+="skew("+f+", "+h+zr),1===p&&1===d||(_+="scale("+p+", "+d+zr),g.style[nr]=_||"translate(0, 0)"},Ur=function(t,e){var n,r,i,o,s,a=e||this,u=a.xPercent,l=a.yPercent,c=a.x,f=a.y,h=a.rotation,p=a.skewX,d=a.skewY,m=a.scaleX,v=a.scaleY,g=a.target,y=a.xOrigin,_=a.yOrigin,x=a.xOffset,b=a.yOffset,w=a.forceCSS,T=parseFloat(c),E=parseFloat(f);h=parseFloat(h),p=parseFloat(p),(d=parseFloat(d))&&(p+=d=parseFloat(d),h+=d),h||p?(h*=Fn,p*=Fn,n=Math.cos(h)*m,r=Math.sin(h)*m,i=Math.sin(h-p)*-v,o=Math.cos(h-p)*v,p&&(d*=Fn,s=Math.tan(p-d),i*=s=Math.sqrt(1+s*s),o*=s,d&&(s=Math.tan(d),n*=s=Math.sqrt(1+s*s),r*=s)),n=gt(n),r=gt(r),i=gt(i),o=gt(o)):(n=m,o=v,r=i=0),(T&&!~(c+"").indexOf("px")||E&&!~(f+"").indexOf("px"))&&(T=br(g,"x",c,"px"),E=br(g,"y",f,"px")),(y||_||x||b)&&(T=gt(T+y-(y*n+_*i)+x),E=gt(E+_-(y*r+_*o)+b)),(u||l)&&(s=g.getBBox(),T=gt(T+u/100*s.width),E=gt(E+l/100*s.height)),s="matrix("+n+","+r+","+i+","+o+","+T+","+E+")",g.setAttribute("transform",s),w&&(g.style[nr]=s)},Wr=function(t,e,n,r,i){var o,s,a=360,u=R(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?Bn:1)-r,c=r+l+"deg";return u&&("short"===(o=i.split("_")[1])&&(l%=a)!==l%180&&(l+=l<0?a:-360),"cw"===o&&l<0?l=(l+36e9)%a-~~(l/a)*a:"ccw"===o&&l>0&&(l=(l-36e9)%a-~~(l/a)*a)),t._pt=s=new dn(t._pt,e,n,r,l,Yn),s.e=c,s.u="deg",t._props.push(n),s},$r=function(t,e){for(var n in e)t[n]=e[n];return t},Yr=function(t,e,n){var r,i,o,s,a,u,l,c=$r({},n._gsap),f=n.style;for(i in c.svg?(o=n.getAttribute("transform"),n.setAttribute("transform",""),f[nr]=e,r=Lr(n,1),gr(n,nr),n.setAttribute("transform",o)):(o=getComputedStyle(n)[nr],f[nr]=e,r=Lr(n,1),f[nr]=o),jn)(o=c[i])!==(s=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=te(o)!==(l=te(s))?br(n,i,o,l):parseFloat(o),u=parseFloat(s),t._pt=new dn(t._pt,r,i,a,u-a,$n),t._pt.u=l||0,t._props.push(i));$r(r,c)};vt("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",o="Left",s=(e<3?[n,r,i,o]:[n+o,n+r,i+r,i+o]).map((function(n){return e<2?t+n:"border"+n+t}));Sr[e>1?"border"+t:t]=function(t,e,n,r,i){var o,a;if(arguments.length<4)return o=s.map((function(e){return wr(t,e,n)})),5===(a=o.join(" ")).split(o[0]).length?o[0]:a;o=(r+"").split(" "),a={},s.forEach((function(t,e){return a[t]=o[e]=o[e]||o[(e-1)/2|0]})),t.init(e,a,i)}}));var Hr,qr,Xr,Gr={name:"css",register:hr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var o,s,a,u,l,c,f,h,p,d,m,v,g,y,_,x,b=this._props,T=t.style,E=n.vars.startAt;for(f in On||hr(),this.styles=this.styles||ar(t),x=this.styles.props,this.tween=n,e)if("autoRound"!==f&&(s=e[f],!ut[f]||!qe(f,e,n,r,t,i)))if(l=typeof s,c=Sr[f],"function"===l&&(l=typeof(s=s.call(n,r,t,i))),"string"===l&&~s.indexOf("random(")&&(s=fe(s)),c)c(this,t,f,s,n)&&(_=1);else if("--"===f.substr(0,2))o=(getComputedStyle(t).getPropertyValue(f)+"").trim(),s+="",Ee.lastIndex=0,Ee.test(o)||(h=te(o),p=te(s)),p?h!==p&&(o=br(t,f,o,p)+p):h&&(s+=h),this.add(T,"setProperty",o,s,r,i,0,0,f),b.push(f),x.push(f,0,T[f]);else if("undefined"!==l){if(E&&f in E?(o="function"==typeof E[f]?E[f].call(n,r,t,i):E[f],R(o)&&~o.indexOf("random(")&&(o=fe(o)),te(o+"")||(o+=w.units[f]||te(wr(t,f))||""),"="===(o+"").charAt(1)&&(o=wr(t,f))):o=wr(t,f),u=parseFloat(o),(d="string"===l&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),a=parseFloat(s),f in Wn&&("autoAlpha"===f&&(1===u&&"hidden"===wr(t,"visibility")&&a&&(u=0),x.push("visibility",0,T.visibility),yr(this,T,"visibility",u?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==f&&"transform"!==f&&~(f=Wn[f]).indexOf(",")&&(f=f.split(",")[0])),m=f in jn)if(this.styles.save(f),v||((g=t._gsap).renderTransform&&!e.parseTransform||Lr(t,e.parseTransform),y=!1!==e.smoothOrigin&&g.smooth,(v=this._pt=new dn(this._pt,T,nr,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===f)this._pt=new dn(this._pt,g,"scaleY",g.scaleY,(d?_t(g.scaleY,d+a):a)-g.scaleY||0,$n),this._pt.u=0,b.push("scaleY",f),f+="X";else{if("transformOrigin"===f){x.push(rr,0,T[rr]),s=kr(s),g.svg?Dr(t,s,0,y,0,this):((p=parseFloat(s.split(" ")[2])||0)!==g.zOrigin&&yr(this,g,"zOrigin",g.zOrigin,p),yr(this,T,f,Vr(o),Vr(s)));continue}if("svgOrigin"===f){Dr(t,s,1,y,0,this);continue}if(f in Ar){Wr(this,g,f,u,d?_t(u,d+s):s);continue}if("smoothOrigin"===f){yr(this,g,"smooth",g.smooth,s);continue}if("force3D"===f){g[f]=s;continue}if("transform"===f){Yr(this,s,t);continue}}else f in T||(f=fr(f)||f);if(m||(a||0===a)&&(u||0===u)&&!Un.test(s)&&f in T)a||(a=0),(h=(o+"").substr((u+"").length))!==(p=te(s)||(f in w.units?w.units[f]:h))&&(u=br(t,f,o,p)),this._pt=new dn(this._pt,m?g:T,f,u,(d?_t(u,d+a):a)-u,m||"px"!==p&&"zIndex"!==f||!1===e.autoRound?$n:qn),this._pt.u=p||0,h!==p&&"%"!==p&&(this._pt.b=o,this._pt.r=Hn);else if(f in T)Tr.call(this,t,f,o,d?d+s:s);else if(f in t)this.add(t,f,o||t[f],d?d+s:s,r,i);else if("parseTransform"!==f){Q(f,s);continue}m||(f in T?x.push(f,0,T[f]):x.push(f,1,o||t[f])),b.push(f)}_&&pn(this)},render:function(t,e){if(e.tween._time||!Ln())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:wr,aliases:Wn,getSetter:function(t,e,n){var r=Wn[e];return r&&r.indexOf(",")<0&&(e=r),e in jn&&e!==rr&&(t._gsap.x||wr(t,"x"))?n&&Dn===n?"scale"===e?Jn:Qn:(Dn=n||{})&&("scale"===e?tr:er):t.style&&!V(t.style[e])?Zn:~e.indexOf("-")?Kn:on(t,e)},core:{_removeProperty:gr,_getMatrix:Rr}};Sn.utils.checkPrefix=fr,Sn.core.getStyleSaver=ar,Xr=vt((Hr="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(qr="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){jn[t]=1})),vt(qr,(function(t){w.units[t]="deg",Ar[t]=1})),Wn[Xr[13]]=Hr+","+qr,vt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Wn[e[1]]=Xr[e[0]]})),vt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){w.units[t]="px"})),Sn.registerPlugin(Gr);var Zr=Sn.registerPlugin(Gr)||Sn;Zr.core.Tween;a(".spark-magnetic {\n display: inline-block;\n position: relative; }\n");var Kr=t.forwardRef((function(e,n){var i=e.children,a=e.className,l=void 0===a?"":a,c=e.button,f=e.movement,h=void 0===f?.5:f,p=s(e,["children","className","button","movement"]),d=t.useRef(null),m=t.useRef(null),v=c?r.default.cloneElement(c,o({ref:m},p)):r.default.createElement(u,o({ref:m},p),i);return r.default.createElement("div",{className:"spark-magnetic ".concat(l),ref:d,onMouseMove:function(t){var e=d.current;if(e){var n=e.getBoundingClientRect(),r=t.pageX-n.left,i=t.pageY-n.top,o=window.scrollY||document.documentElement.scrollTop;Zr.to(m.current,{duration:.3,x:(r-n.width/2)*h,y:(i-n.height/2-o)*h,ease:"expo.out"})}},onMouseOut:function(){Zr.to(m.current,{duration:.4,x:0,y:0,ease:"elastic.out(1, 0.5)"})}},v)}));const Qr=t.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Jr=t.createContext({}),ti=t.createContext(null),ei="undefined"!=typeof document,ni=ei?t.useLayoutEffect:t.useEffect,ri=t.createContext({strict:!1});function ii(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function oi(t){return"string"==typeof t||Array.isArray(t)}function si(t){return"object"==typeof t&&"function"==typeof t.start}const ai=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ui=["initial",...ai];function li(t){return si(t.animate)||ui.some((e=>oi(t[e])))}function ci(t){return Boolean(li(t)||t.variants)}function fi(e){const{initial:n,animate:r}=function(t,e){if(li(t)){const{initial:e,animate:n}=t;return{initial:!1===e||oi(e)?e:void 0,animate:oi(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,t.useContext(Jr));return t.useMemo((()=>({initial:n,animate:r})),[hi(n),hi(r)])}function hi(t){return Array.isArray(t)?t.join(" "):t}const pi={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},di={};for(const t in pi)di[t]={isEnabled:e=>pi[t].some((t=>!!e[t]))};const mi=t.createContext({}),vi=t.createContext({}),gi=Symbol.for("motionComponentSymbol");function yi({preloadedFeatures:e,createVisualElement:n,useRender:r,useVisualState:o,Component:s}){e&&function(t){for(const e in t)di[e]={...di[e],...t[e]}}(e);const a=t.forwardRef((function(a,u){let l;const c={...t.useContext(Qr),...a,layoutId:_i(a)},{isStatic:f}=c,h=fi(a),p=o(a,f);if(!f&&ei){h.visualElement=function(e,n,r,i){const{visualElement:o}=t.useContext(Jr),s=t.useContext(ri),a=t.useContext(ti),u=t.useContext(Qr).reducedMotion,l=t.useRef();i=i||s.renderer,!l.current&&i&&(l.current=i(e,{visualState:n,parent:o,props:r,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:u}));const c=l.current;t.useInsertionEffect((()=>{c&&c.update(r,a)}));const f=t.useRef(Boolean(window.HandoffAppearAnimations));return ni((()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())})),t.useEffect((()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,f.current=!1)})),c}(s,p,c,n);const r=t.useContext(vi),i=t.useContext(ri).strict;h.visualElement&&(l=h.visualElement.loadFeatures(c,i,e,r))}return i.createElement(Jr.Provider,{value:h},l&&h.visualElement?i.createElement(l,{visualElement:h.visualElement,...c}):null,r(s,a,function(e,n,r){return t.useCallback((t=>{t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):ii(r)&&(r.current=t))}),[n])}(p,h.visualElement,u),p,f,h.visualElement))}));return a[gi]=s,a}function _i({layoutId:e}){const n=t.useContext(mi).id;return n&&void 0!==e?n+"-"+e:e}function xi(t){function e(e,n={}){return yi(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}const bi=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function wi(t){return"string"==typeof t&&!t.includes("-")&&!!(bi.indexOf(t)>-1||/[A-Z]/.test(t))}const Ti={};const Ei=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ki=new Set(Ei);function Pi(t,{layout:e,layoutId:n}){return ki.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Ti[t]||"opacity"===t)}const Si=t=>Boolean(t&&t.getVelocity),Ci={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ai=Ei.length;const Mi=t=>e=>"string"==typeof e&&e.startsWith(t),Oi=Mi("--"),Ri=Mi("var(--"),Di=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Li=(t,e,n)=>Math.min(Math.max(n,t),e),Vi={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},ji={...Vi,transform:t=>Li(0,1,t)},Bi={...Vi,default:1},Fi=t=>Math.round(1e5*t)/1e5,Ii=/(-)?([\d]*\.?[\d])+/g,zi=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Ni=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ui(t){return"string"==typeof t}const Wi=t=>({test:e=>Ui(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),$i=Wi("deg"),Yi=Wi("%"),Hi=Wi("px"),qi=Wi("vh"),Xi=Wi("vw"),Gi={...Yi,parse:t=>Yi.parse(t)/100,transform:t=>Yi.transform(100*t)},Zi={...Vi,transform:Math.round},Ki={borderWidth:Hi,borderTopWidth:Hi,borderRightWidth:Hi,borderBottomWidth:Hi,borderLeftWidth:Hi,borderRadius:Hi,radius:Hi,borderTopLeftRadius:Hi,borderTopRightRadius:Hi,borderBottomRightRadius:Hi,borderBottomLeftRadius:Hi,width:Hi,maxWidth:Hi,height:Hi,maxHeight:Hi,size:Hi,top:Hi,right:Hi,bottom:Hi,left:Hi,padding:Hi,paddingTop:Hi,paddingRight:Hi,paddingBottom:Hi,paddingLeft:Hi,margin:Hi,marginTop:Hi,marginRight:Hi,marginBottom:Hi,marginLeft:Hi,rotate:$i,rotateX:$i,rotateY:$i,rotateZ:$i,scale:Bi,scaleX:Bi,scaleY:Bi,scaleZ:Bi,skew:$i,skewX:$i,skewY:$i,distance:Hi,translateX:Hi,translateY:Hi,translateZ:Hi,x:Hi,y:Hi,z:Hi,perspective:Hi,transformPerspective:Hi,opacity:ji,originX:Gi,originY:Gi,originZ:Hi,zIndex:Zi,fillOpacity:ji,strokeOpacity:ji,numOctaves:Zi};function Qi(t,e,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=t;let u=!1,l=!1,c=!0;for(const t in e){const n=e[t];if(Oi(t)){o[t]=n;continue}const r=Ki[t],f=Di(n,r);if(ki.has(t)){if(u=!0,s[t]=f,!c)continue;n!==(r.default||0)&&(c=!1)}else t.startsWith("origin")?(l=!0,a[t]=f):i[t]=f}if(e.transform||(u||r?i.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let e=0;e<Ai;e++){const n=Ei[e];void 0!==t[n]&&(o+=`${Ci[n]||n}(${t[n]}) `)}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}(t.transform,n,c,r):i.transform&&(i.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:n=0}=a;i.transformOrigin=`${t} ${e} ${n}`}}const Ji=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function to(t,e,n){for(const r in e)Si(e[r])||Pi(r,n)||(t[r]=e[r])}function eo(e,n,r){const i={};return to(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},n,r){return t.useMemo((()=>{const t=Ji();return Qi(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)}),[n])}(e,n,r)),e.transformValues?e.transformValues(i):i}function no(t,e,n){const r={},i=eo(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const ro=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function io(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||ro.has(t)}let oo=t=>!io(t);try{(so=require("@emotion/is-prop-valid").default)&&(oo=t=>t.startsWith("on")?!io(t):so(t))}catch(t){}var so;function ao(t,e,n){return"string"==typeof t?t:Hi.transform(e+n*t)}const uo={offset:"stroke-dashoffset",array:"stroke-dasharray"},lo={offset:"strokeDashoffset",array:"strokeDasharray"};function co(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:u=0,...l},c,f,h){if(Qi(t,l,c,h),f)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:d,dimensions:m}=t;p.transform&&(m&&(d.transform=p.transform),delete p.transform),m&&(void 0!==i||void 0!==o||d.transform)&&(d.transformOrigin=function(t,e,n){return`${ao(e,t.x,t.width)} ${ao(n,t.y,t.height)}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(p.x=e),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==s&&function(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?uo:lo;t[o.offset]=Hi.transform(-r);const s=Hi.transform(e),a=Hi.transform(n);t[o.array]=`${s} ${a}`}(p,s,a,u,!1)}const fo=()=>({...Ji(),attrs:{}}),ho=t=>"string"==typeof t&&"svg"===t.toLowerCase();function po(e,n,r,i){const o=t.useMemo((()=>{const t=fo();return co(t,n,{enableHardwareAcceleration:!1},ho(i),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};to(t,e.style,e),o.style={...t,...o.style}}return o}function mo(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(wi(n)?po:no)(r,o,s,n),u=function(t,e,n){const r={};for(const i in t)"values"===i&&"object"==typeof t.values||(oo(i)||!0===n&&io(i)||!e&&!io(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(r,"string"==typeof n,e),l={...u,...a,ref:i},{children:c}=r,f=t.useMemo((()=>Si(c)?c.get():c),[c]);return t.createElement(n,{...l,children:f})}}const vo=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function go(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const e in n)t.style.setProperty(e,n[e])}const yo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function _o(t,e,n,r){go(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(yo.has(n)?n:vo(n),e.attrs[n])}function xo(t,e){const{style:n}=t,r={};for(const i in n)(Si(n[i])||e.style&&Si(e.style[i])||Pi(i,t))&&(r[i]=n[i]);return r}function bo(t,e){const n=xo(t,e);for(const r in t)if(Si(t[r])||Si(e[r])){n[-1!==Ei.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]}return n}function wo(t,e,n,r={},i={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),e}function To(e){const n=t.useRef(null);return null===n.current&&(n.current=e()),n.current}const Eo=t=>Array.isArray(t),ko=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),Po=t=>Eo(t)?t[t.length-1]||0:t;function So(t){const e=Si(t)?t.get():t;return ko(e)?e.toValue():e}const Co=e=>(n,r)=>{const i=t.useContext(Jr),o=t.useContext(ti),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const s={latestValues:Ao(r,i,o,t),renderState:e()};return n&&(s.mount=t=>n(r,t,s)),s}(e,n,i,o);return r?s():To(s)};function Ao(t,e,n,r){const i={},o=r(t,{});for(const t in o)i[t]=So(o[t]);let{initial:s,animate:a}=t;const u=li(t),l=ci(t);e&&l&&!u&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===s;const f=c?a:s;if(f&&"boolean"!=typeof f&&!si(f)){(Array.isArray(f)?f:[f]).forEach((e=>{const n=wo(t,e);if(!n)return;const{transitionEnd:r,transition:o,...s}=n;for(const t in s){let e=s[t];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(i[t]=e)}for(const t in r)i[t]=r[t]}))}return i}const Mo=t=>t;class Oo{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}const Ro=["prepare","read","update","preRender","render","postRender"];const{schedule:Do,cancel:Lo,state:Vo,steps:jo}=function(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ro.reduce(((t,e)=>(t[e]=function(t){let e=new Oo,n=new Oo,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(t,o=!1,a=!1)=>{const u=a&&i,l=u?e:n;return o&&s.add(t),l.add(t)&&u&&i&&(r=e.order.length),t},cancel:t=>{n.remove(t),s.delete(t)},process:u=>{if(i)o=!0;else{if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let n=0;n<r;n++){const r=e.order[n];r(u),s.has(r)&&(a.schedule(r),t())}i=!1,o&&(o=!1,a.process(u))}}};return a}((()=>n=!0)),t)),{}),s=t=>o[t].process(i),a=()=>{const o=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,Ro.forEach(s),i.isProcessing=!1,n&&e&&(r=!1,t(a))};return{schedule:Ro.reduce(((e,s)=>{const u=o[s];return e[s]=(e,o=!1,s=!1)=>(n||(n=!0,r=!0,i.isProcessing||t(a)),u.schedule(e,o,s)),e}),{}),cancel:t=>Ro.forEach((e=>o[e].cancel(t))),state:i,steps:o}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Mo,!0),Bo={useVisualState:Co({scrapeMotionValuesFromProps:bo,createRenderState:fo,onMount:(t,e,{renderState:n,latestValues:r})=>{Do.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),Do.render((()=>{co(n,r,{enableHardwareAcceleration:!1},ho(e.tagName),t.transformTemplate),_o(e,n)}))}})},Fo={useVisualState:Co({scrapeMotionValuesFromProps:xo,createRenderState:Ji})};function Io(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const zo=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function No(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Uo=t=>e=>zo(e)&&t(e,No(e));function Wo(t,e,n,r){return Io(t,e,Uo(n),r)}const $o=(t,e)=>n=>e(t(n)),Yo=(...t)=>t.reduce($o);function Ho(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const qo=Ho("dragHorizontal"),Xo=Ho("dragVertical");function Go(t){let e=!1;if("y"===t)e=Xo();else if("x"===t)e=qo();else{const t=qo(),n=Xo();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function Zo(){const t=Go(!0);return!t||(t(),!1)}class Ko{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Qo(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End");return Wo(t.current,n,((n,i)=>{if("touch"===n.type||Zo())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e),o[r]&&Do.update((()=>o[r](n,i)))}),{passive:!t.getProps()[r]})}const Jo=(t,e)=>!!e&&(t===e||Jo(t,e.parentElement));function ts(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,No(n))}const es=new WeakMap,ns=new WeakMap,rs=t=>{const e=es.get(t.target);e&&e(t)},is=t=>{t.forEach(rs)};function os(t,e,n){const r=function({root:t,...e}){const n=t||document;ns.has(n)||ns.set(n,{});const r=ns.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(is,{root:t,...e})),r[i]}(e);return es.set(t,n),r.observe(t),()=>{es.delete(t),r.unobserve(t)}}const ss={some:0,all:1};const as={inView:{Feature:class extends Ko{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ss[r]};return os(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,i&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Ko{constructor(){super(...arguments),this.removeStartListeners=Mo,this.removeEndListeners=Mo,this.removeAccessibleListeners=Mo,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Wo(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Do.update((()=>{Jo(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)}))}),{passive:!(n.onTap||n.onPointerUp)}),i=Wo(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Yo(r,i),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=Io(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Io(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&ts("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&Do.update((()=>n(t,e)))}))})),ts("down",((t,e)=>{this.startPress(t,e)}))})),e=Io(this.node.current,"blur",(()=>{this.isPressing&&ts("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=Yo(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Do.update((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Zo()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Do.update((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=Wo(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Io(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Yo(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Ko{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Yo(Io(this.node.current,"focus",(()=>this.onFocus())),Io(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Ko{mount(){this.unmount=Yo(Qo(this.node,!0),Qo(this.node,!1))}unmount(){}}}};function us(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function ls(t,e,n){const r=t.getProps();return wo(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}const cs="data-"+vo("framerAppearId");let fs=Mo,hs=Mo;"production"!==process.env.NODE_ENV&&(fs=(t,e)=>{t||"undefined"==typeof console||console.warn(e)},hs=(t,e)=>{if(!t)throw new Error(e)});const ps=t=>1e3*t,ds=t=>t/1e3,ms=!1,vs=t=>Array.isArray(t)&&"number"==typeof t[0];function gs(t){return Boolean(!t||"string"==typeof t&&_s[t]||vs(t)||Array.isArray(t)&&t.every(gs))}const ys=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,_s={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ys([0,.65,.55,1]),circOut:ys([.55,0,1,.45]),backIn:ys([.31,.01,.66,-.59]),backOut:ys([.33,1.53,.69,.99])};function xs(t){if(t)return vs(t)?ys(t):Array.isArray(t)?t.map(xs):_s[t]}const bs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ws=1e-7,Ts=12;function Es(t,e,n,r){if(t===e&&n===r)return Mo;const i=e=>function(t,e,n,r,i){let o,s,a=0;do{s=e+(n-e)/2,o=bs(s,r,i)-t,o>0?n=s:e=s}while(Math.abs(o)>ws&&++a<Ts);return s}(e,0,1,t,n);return t=>0===t||1===t?t:bs(i(t),e,r)}const ks=Es(.42,0,1,1),Ps=Es(0,0,.58,1),Ss=Es(.42,0,.58,1),Cs=t=>Array.isArray(t)&&"number"!=typeof t[0],As=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ms=t=>e=>1-t(1-e),Os=t=>1-Math.sin(Math.acos(t)),Rs=Ms(Os),Ds=As(Rs),Ls=Es(.33,1.53,.69,.99),Vs=Ms(Ls),js=As(Vs),Bs={linear:Mo,easeIn:ks,easeInOut:Ss,easeOut:Ps,circIn:Os,circInOut:Ds,circOut:Rs,backIn:Vs,backInOut:js,backOut:Ls,anticipate:t=>(t*=2)<1?.5*Vs(t):.5*(2-Math.pow(2,-10*(t-1)))},Fs=t=>{if(Array.isArray(t)){hs(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return Es(e,n,r,i)}return"string"==typeof t?(hs(void 0!==Bs[t],`Invalid easing type '${t}'`),Bs[t]):t},Is=(t,e)=>n=>Boolean(Ui(n)&&Ni.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),zs=(t,e,n)=>r=>{if(!Ui(r))return r;const[i,o,s,a]=r.match(Ii);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Ns={...Vi,transform:t=>Math.round((t=>Li(0,255,t))(t))},Us={test:Is("rgb","red"),parse:zs("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Ns.transform(t)+", "+Ns.transform(e)+", "+Ns.transform(n)+", "+Fi(ji.transform(r))+")"};const Ws={test:Is("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:Us.transform},$s={test:Is("hsl","hue"),parse:zs("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Yi.transform(Fi(e))+", "+Yi.transform(Fi(n))+", "+Fi(ji.transform(r))+")"},Ys={test:t=>Us.test(t)||Ws.test(t)||$s.test(t),parse:t=>Us.test(t)?Us.parse(t):$s.test(t)?$s.parse(t):Ws.parse(t),transform:t=>Ui(t)?t:t.hasOwnProperty("red")?Us.transform(t):$s.transform(t)},Hs=(t,e,n)=>-n*t+n*e+t;function qs(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const Xs=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},Gs=[Ws,Us,$s];function Zs(t){const e=(n=t,Gs.find((t=>t.test(n))));var n;hs(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let r=e.parse(t);return e===$s&&(r=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,o=0,s=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;i=qs(a,r,t+1/3),o=qs(a,r,t),s=qs(a,r,t-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(r)),r}const Ks=(t,e)=>{const n=Zs(t),r=Zs(e),i={...n};return t=>(i.red=Xs(n.red,r.red,t),i.green=Xs(n.green,r.green,t),i.blue=Xs(n.blue,r.blue,t),i.alpha=Hs(n.alpha,r.alpha,t),Us.transform(i))};const Qs={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Mo},Js={regex:zi,countKey:"Colors",token:"${c}",parse:Ys.parse},ta={regex:Ii,countKey:"Numbers",token:"${n}",parse:Vi.parse};function ea(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function na(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ea(n,Qs),ea(n,Js),ea(n,ta),n}function ra(t){return na(t).values}function ia(t){const{values:e,numColors:n,numVars:r,tokenised:i}=na(t),o=e.length;return t=>{let e=i;for(let i=0;i<o;i++)e=i<r?e.replace(Qs.token,t[i]):i<r+n?e.replace(Js.token,Ys.transform(t[i])):e.replace(ta.token,Fi(t[i]));return e}}const oa=t=>"number"==typeof t?0:t;const sa={test:function(t){var e,n;return isNaN(t)&&Ui(t)&&((null===(e=t.match(Ii))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(zi))||void 0===n?void 0:n.length)||0)>0},parse:ra,createTransformer:ia,getAnimatableNone:function(t){const e=ra(t);return ia(t)(e.map(oa))}},aa=(t,e)=>n=>`${n>0?e:t}`;function ua(t,e){return"number"==typeof t?n=>Hs(t,e,n):Ys.test(t)?Ks(t,e):t.startsWith("var(")?aa(t,e):fa(t,e)}const la=(t,e)=>{const n=[...t],r=n.length,i=t.map(((t,n)=>ua(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=i[e](t);return n}},ca=(t,e)=>{const n={...t,...e},r={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=ua(t[i],e[i]));return t=>{for(const e in r)n[e]=r[e](t);return n}},fa=(t,e)=>{const n=sa.createTransformer(e),r=na(t),i=na(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Yo(la(r.values,i.values),n):(fs(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),aa(t,e))},ha=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},pa=(t,e)=>n=>Hs(t,e,n);function da(t,e,n){const r=[],i=n||("number"==typeof(o=t[0])?pa:"string"==typeof o?Ys.test(o)?Ks:fa:Array.isArray(o)?la:"object"==typeof o?ca:pa);var o;const s=t.length-1;for(let n=0;n<s;n++){let o=i(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||Mo:e;o=Yo(t,o)}r.push(o)}return r}function ma(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(hs(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=da(e,r,i),a=s.length,u=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=ha(t[n],t[n+1],e);return s[n](r)};return n?e=>u(Li(t[0],t[o-1],e)):u}function va(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=ha(0,e,r);t.push(Hs(n,1,i))}}(e,t.length-1),e}function ga(t,e){return t.map((()=>e||Ss)).splice(0,t.length-1)}function ya({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Cs(r)?r.map(Fs):Fs(r),o={done:!1,value:e[0]},s=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:va(e),t),a=ma(s,e,{ease:Array.isArray(i)?i:ga(e,i)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}function _a(t,e){return e?t*(1e3/e):0}const xa=5;function ba(t,e,n){const r=Math.max(e-xa,0);return _a(n-t(r),e-r)}const wa=.001,Ta=.01,Ea=10,ka=.05,Pa=1;function Sa({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;fs(t<=ps(Ea),"Spring duration must be 10 seconds or less");let s=1-e;s=Li(ka,Pa,s),t=Li(Ta,Ea,ds(t)),s<1?(i=e=>{const r=e*s,i=r*t,o=r-n,a=Aa(e,s),u=Math.exp(-i);return wa-o/a*u},o=e=>{const r=e*s*t,o=r*n+n,a=Math.pow(s,2)*Math.pow(e,2)*t,u=Math.exp(-r),l=Aa(Math.pow(e,2),s);return(-i(e)+wa>0?-1:1)*((o-a)*u)/l}):(i=e=>Math.exp(-e*t)*((e-n)*t+1)-wa,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let r=n;for(let n=1;n<Ca;n++)r-=t(r)/e(r);return r}(i,o,5/t);if(t=ps(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*r;return{stiffness:e,damping:2*s*Math.sqrt(r*e),duration:t}}}const Ca=12;function Aa(t,e){return t*Math.sqrt(1-e*e)}const Ma=["duration","bounce"],Oa=["stiffness","damping","mass"];function Ra(t,e){return e.some((e=>void 0!==t[e]))}function Da({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],s={done:!1,value:i},{stiffness:a,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:h}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Ra(t,Oa)&&Ra(t,Ma)){const n=Sa(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(r),p=c?-ds(c):0,d=u/(2*Math.sqrt(a*l)),m=o-i,v=ds(Math.sqrt(a/l)),g=Math.abs(m)<5;let y;if(n||(n=g?.01:2),e||(e=g?.005:.5),d<1){const t=Aa(v,d);y=e=>{const n=Math.exp(-d*v*e);return o-n*((p+d*v*m)/t*Math.sin(t*e)+m*Math.cos(t*e))}}else if(1===d)y=t=>o-Math.exp(-v*t)*(m+(p+v*m)*t);else{const t=v*Math.sqrt(d*d-1);y=e=>{const n=Math.exp(-d*v*e),r=Math.min(t*e,300);return o-n*((p+d*v*m)*Math.sinh(r)+t*m*Math.cosh(r))/t}}return{calculatedDuration:h&&f||null,next:t=>{const r=y(t);if(h)s.done=t>=f;else{let i=p;0!==t&&(i=d<1?ba(y,t,r):0);const a=Math.abs(i)<=n,u=Math.abs(o-r)<=e;s.done=a&&u}return s.value=s.done?o:r,s}}}function La({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:u,restDelta:l=.5,restSpeed:c}){const f=t[0],h={done:!1,value:f},p=t=>void 0===a?u:void 0===u||Math.abs(a-t)<Math.abs(u-t)?a:u;let d=n*e;const m=f+d,v=void 0===s?m:s(m);v!==m&&(d=v-f);const g=t=>-d*Math.exp(-t/r),y=t=>v+g(t),_=t=>{const e=g(t),n=y(t);h.done=Math.abs(e)<=l,h.value=h.done?v:n};let x,b;const w=t=>{var e;(e=h.value,void 0!==a&&e<a||void 0!==u&&e>u)&&(x=t,b=Da({keyframes:[h.value,p(h.value)],velocity:ba(y,t,h.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return b||void 0!==x||(e=!0,_(t),w(t)),void 0!==x&&t>x?b.next(t-x):(!e&&_(t),h)}}}const Va=t=>{const e=({timestamp:e})=>t(e);return{start:()=>Do.update(e,!0),stop:()=>Lo(e),now:()=>Vo.isProcessing?Vo.timestamp:performance.now()}},ja=2e4;function Ba(t){let e=0;let n=t.next(e);for(;!n.done&&e<ja;)e+=50,n=t.next(e);return e>=ja?1/0:e}const Fa={decay:La,inertia:La,tween:ya,keyframes:ya,spring:Da};function Ia({autoplay:t=!0,delay:e=0,driver:n=Va,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:f,...h}){let p,d,m=1,v=!1;const g=()=>{d=new Promise((t=>{p=t}))};let y;g();const _=Fa[i]||ya;let x;_!==ya&&"number"!=typeof r[0]&&(x=ma([0,100],r,{clamp:!1}),r=[0,100]);const b=_({...h,keyframes:r});let w;"mirror"===a&&(w=_({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let T="idle",E=null,k=null,P=null;null===b.calculatedDuration&&o&&(b.calculatedDuration=Ba(b));const{calculatedDuration:S}=b;let C=1/0,A=1/0;null!==S&&(C=S+s,A=C*(o+1)-s);let M=0;const O=t=>{if(null===k)return;m>0&&(k=Math.min(k,t)),m<0&&(k=Math.min(t-A/m,k)),M=null!==E?E:Math.round(t-k)*m;const n=M-e*(m>=0?1:-1),i=m>=0?n<0:n>A;M=Math.max(n,0),"finished"===T&&null===E&&(M=A);let u=M,l=b;if(o){const t=M/C;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,o+1);const r=Boolean(e%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/C)):"mirror"===a&&(l=w));let i=Li(0,1,n);M>A&&(i="reverse"===a&&r?1:0),u=i*C}const c=i?{done:!1,value:r[0]}:l.next(u);x&&(c.value=x(c.value));let{done:h}=c;i||null===S||(h=m>=0?M>=A:M<=0);const p=null===E&&("finished"===T||"running"===T&&h);return f&&f(c.value),p&&L(),c},R=()=>{y&&y.stop(),y=void 0},D=()=>{T="idle",R(),p(),g(),k=P=null},L=()=>{T="finished",c&&c(),R(),p()},V=()=>{if(v)return;y||(y=n(O));const t=y.now();u&&u(),null!==E?k=t-E:k&&"finished"!==T||(k=t),"finished"===T&&g(),P=k,E=null,T="running",y.start()};t&&V();const j={then:(t,e)=>d.then(t,e),get time(){return ds(M)},set time(t){t=ps(t),M=t,null===E&&y&&0!==m?k=y.now()-t/m:E=t},get duration(){const t=null===b.calculatedDuration?Ba(b):b.calculatedDuration;return ds(t)},get speed(){return m},set speed(t){t!==m&&y&&(m=t,j.time=ds(M))},get state(){return T},play:V,pause:()=>{T="paused",E=M},stop:()=>{v=!0,"idle"!==T&&(T="idle",l&&l(),D())},cancel:()=>{null!==P&&O(P),D()},complete:()=>{T="finished"},sample:t=>(k=0,O(t))};return j}const za=function(t){let e;return()=>(void 0===e&&(e=t()),e)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Na=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Ua(t,e,{onUpdate:n,onComplete:r,...i}){if(!(za()&&Na.has(e)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let o,s,a=!1;const u=()=>{s=new Promise((t=>{o=t}))};u();let{keyframes:l,duration:c=300,ease:f,times:h}=i;if(((t,e)=>"spring"===e.type||"backgroundColor"===t||!gs(e.ease))(e,i)){const t=Ia({...i,repeat:0,delay:0});let e={done:!1,value:l[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;h=void 0,l=n,c=r-10,f="linear"}const p=function(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:u}={}){const l={[e]:n};u&&(l.offset=u);const c=xs(a);return Array.isArray(c)&&(l.easing=c),t.animate(l,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,l,{...i,duration:c,ease:f,times:h});i.syncStart&&(p.startTime=Vo.isProcessing?Vo.timestamp:document.timeline?document.timeline.currentTime:performance.now());const d=()=>p.cancel(),m=()=>{Do.update(d),o(),u()};p.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(l,i)),r&&r(),m()};return{then:(t,e)=>s.then(t,e),attachTimeline:t=>(p.timeline=t,p.onfinish=null,Mo),get time(){return ds(p.currentTime||0)},set time(t){p.currentTime=ps(t)},get speed(){return p.playbackRate},set speed(t){p.playbackRate=t},get duration(){return ds(c)},play:()=>{a||(p.play(),Lo(d))},pause:()=>p.pause(),stop:()=>{if(a=!0,"idle"===p.playState)return;const{currentTime:e}=p;if(e){const n=Ia({...i,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}m()},complete:()=>p.finish(),cancel:m}}const Wa={type:"spring",stiffness:500,damping:25,restSpeed:10},$a={type:"keyframes",duration:.8},Ya={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ha=(t,{keyframes:e})=>e.length>2?$a:ki.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Wa:Ya,qa=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!sa.test(e)&&"0"!==e||e.startsWith("url("))),Xa=new Set(["brightness","contrast","saturate","opacity"]);function Ga(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(Ii)||[];if(!r)return t;const i=n.replace(r,"");let o=Xa.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const Za=/([a-z-]*)\(.*?\)/g,Ka={...sa,getAnimatableNone:t=>{const e=t.match(Za);return e?e.map(Ga).join(" "):t}},Qa={...Ki,color:Ys,backgroundColor:Ys,outlineColor:Ys,fill:Ys,stroke:Ys,borderColor:Ys,borderTopColor:Ys,borderRightColor:Ys,borderBottomColor:Ys,borderLeftColor:Ys,filter:Ka,WebkitFilter:Ka},Ja=t=>Qa[t];function tu(t,e){let n=Ja(t);return n!==Ka&&(n=sa),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const eu=t=>/^0[^.\s]+$/.test(t);function nu(t){return"number"==typeof t?0===t:null!==t?"none"===t||"0"===t||eu(t):void 0}function ru(t,e){return t[e]||t.default||t}const iu=(t,e,n,r={})=>i=>{const o=ru(r,t)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a-=ps(s);const u=function(t,e,n,r){const i=qa(e,n);let o;o=Array.isArray(n)?[...n]:[null,n];const s=void 0!==r.from?r.from:t.get();let a;const u=[];for(let t=0;t<o.length;t++)null===o[t]&&(o[t]=0===t?s:o[t-1]),nu(o[t])&&u.push(t),"string"==typeof o[t]&&"none"!==o[t]&&"0"!==o[t]&&(a=o[t]);if(i&&u.length&&a)for(let t=0;t<u.length;t++)o[u[t]]=tu(e,a);return o}(e,t,n,o),l=u[0],c=u[u.length-1],f=qa(t,l),h=qa(t,c);fs(f===h,`You are trying to animate ${t} from "${l}" to "${c}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${c} via the \`style\` property.`);let p={keyframes:u,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:u,elapsed:l,...c}){return!!Object.keys(c).length}(o)||(p={...p,...Ha(t,p)}),p.duration&&(p.duration=ps(p.duration)),p.repeatDelay&&(p.repeatDelay=ps(p.repeatDelay)),!f||!h||ms||!1===o.type)return function({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Mo,pause:Mo,stop:Mo,then:t=>(t(),Promise.resolve()),cancel:Mo,complete:Mo});return e?Ia({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}(ms?{...p,delay:0}:p);if(e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=Ua(e,t,p);if(n)return n}return Ia(p)};function ou(t){return Boolean(Si(t)&&t.add)}const su=t=>/^\-?\d*\.?\d+$/.test(t);function au(t,e){-1===t.indexOf(e)&&t.push(e)}function uu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class lu{constructor(){this.subscriptions=[]}add(t){return au(this.subscriptions,t),()=>uu(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const cu=new Set;function fu(t,e,n){t||cu.has(e)||(console.warn(e),n&&console.warn(n),cu.add(e))}class hu{constructor(t,e={}){var n;this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:r}=Vo;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Do.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Do.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return"production"!==process.env.NODE_ENV&&fu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new lu);const n=this.events[t].add(e);return"change"===t?()=>{n(),Do.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?_a(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pu(t,e){return new hu(t,e)}const du=t=>e=>e.test(t),mu=[Vi,Hi,Yi,$i,Xi,qi,{test:t=>"auto"===t,parse:t=>t}],vu=t=>mu.find(du(t)),gu=[...mu,Ys,sa];function yu(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,pu(n))}function _u(t,e){if(!e)return;return(e[t]||e.default||e).from}function xu({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function bu(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");r&&(o=r);const l=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const e in a){const r=t.getValue(e),i=a[e];if(!r||void 0===i||c&&xu(c,e))continue;const s={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=t.getProps()[cs];n&&(s.elapsed=window.HandoffAppearAnimations(n,e,r,Do),s.syncStart=!0)}r.start(iu(e,r,i,t.shouldReduceMotion&&ki.has(e)?{type:!1}:s));const f=r.animation;ou(u)&&(u.add(e),f.then((()=>u.remove(e)))),l.push(f)}return s&&Promise.all(l).then((()=>{s&&function(t,e){const n=ls(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const e in o)yu(t,e,Po(o[e]))}(t,s)})),l}function wu(t,e,n={}){const r=ls(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(bu(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(t,e,n=0,r=0,i=1,o){const s=[],a=(t.variantChildren.size-1)*r,u=1===i?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(Tu).forEach(((t,r)=>{t.notify("AnimationStart",e),s.push(wu(t,e,{...o,delay:n+u(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(s)}(t,e,o+r,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[t,e]="beforeChildren"===a?[o,s]:[s,o];return t().then((()=>e()))}return Promise.all([o(),s(n.delay)])}function Tu(t,e){return t.sortNodePosition(e)}const Eu=[...ai].reverse(),ku=ai.length;function Pu(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const i=e.map((e=>wu(t,e,n)));r=Promise.all(i)}else if("string"==typeof e)r=wu(t,e,n);else{const i="function"==typeof e?ls(t,e,n.custom):e;r=Promise.all(bu(t,i,n))}return r.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function Su(t){let e=Pu(t);const n={animate:Au(!0),whileInView:Au(),whileHover:Au(),whileTap:Au(),whileDrag:Au(),whileFocus:Au(),exit:Au()};let r=!0;const i=(e,n)=>{const r=ls(t,n);if(r){const{transition:t,transitionEnd:n,...i}=r;e={...e,...i,...n}}return e};function o(o,s){const a=t.getProps(),u=t.getVariantContext(!0)||{},l=[],c=new Set;let f={},h=1/0;for(let e=0;e<ku;e++){const p=Eu[e],d=n[p],m=void 0!==a[p]?a[p]:u[p],v=oi(m),g=p===s?d.isActive:null;!1===g&&(h=e);let y=m===u[p]&&m!==a[p]&&v;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),d.protectedKeys={...f},!d.isActive&&null===g||!m&&!d.prevProp||si(m)||"boolean"==typeof m)continue;const _=Cu(d.prevProp,m);let x=_||p===s&&d.isActive&&!y&&v||e>h&&v;const b=Array.isArray(m)?m:[m];let w=b.reduce(i,{});!1===g&&(w={});const{prevResolvedValues:T={}}=d,E={...T,...w},k=t=>{x=!0,c.delete(t),d.needsAnimating[t]=!0};for(const t in E){const e=w[t],n=T[t];f.hasOwnProperty(t)||(e!==n?Eo(e)&&Eo(n)?!us(e,n)||_?k(t):d.protectedKeys[t]=!0:void 0!==e?k(t):c.add(t):void 0!==e&&c.has(t)?k(t):d.protectedKeys[t]=!0)}d.prevProp=m,d.prevResolvedValues=w,d.isActive&&(f={...f,...w}),r&&t.blockInitialAnimation&&(x=!1),x&&!y&&l.push(...b.map((t=>({animation:t,options:{type:p,...o}}))))}if(c.size){const e={};c.forEach((n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)})),l.push({animation:e})}let p=Boolean(l.length);return r&&!1===a.initial&&!t.manuallyAnimateOnMount&&(p=!1),r=!1,p?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,r,i){var s;if(n[e].isActive===r)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;const a=o(i,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function Cu(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!us(e,t)}function Au(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Mu=0;const Ou={animation:{Feature:class extends Ko{constructor(t){super(t),t.animationState||(t.animationState=Su(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),si(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Ko{constructor(){super(...arguments),this.id=Mu++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&i.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}},Ru=(t,e)=>Math.abs(t-e);class Du{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=ju(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=Ru(t.x,e.x),r=Ru(t.y,e.y);return Math.sqrt(n**2+r**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:r}=t,{timestamp:i}=Vo;this.history.push({...r,timestamp:i});const{onStart:o,onMove:s}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Lu(e,this.transformPagePoint),Do.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,i=ju("pointercancel"===t.type?this.lastMoveEventInfo:Lu(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!zo(t))return;this.handlers=e,this.transformPagePoint=n;const r=Lu(No(t),this.transformPagePoint),{point:i}=r,{timestamp:o}=Vo;this.history=[{...i,timestamp:o}];const{onSessionStart:s}=e;s&&s(t,ju(r,this.history)),this.removeListeners=Yo(Wo(window,"pointermove",this.handlePointerMove),Wo(window,"pointerup",this.handlePointerUp),Wo(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Lo(this.updatePoint)}}function Lu(t,e){return e?{point:e(t.point)}:t}function Vu(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ju({point:t},e){return{point:t,delta:Vu(t,Fu(e)),offset:Vu(t,Bu(e)),velocity:Iu(e,.1)}}function Bu(t){return t[0]}function Fu(t){return t[t.length-1]}function Iu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=Fu(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>ps(e)));)n--;if(!r)return{x:0,y:0};const o=ds(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function zu(t){return t.max-t.min}function Nu(t,e=0,n=.01){return Math.abs(t-e)<=n}function Uu(t,e,n,r=.5){t.origin=r,t.originPoint=Hs(e.min,e.max,t.origin),t.scale=zu(n)/zu(e),(Nu(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Hs(n.min,n.max,t.origin)-t.originPoint,(Nu(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Wu(t,e,n,r){Uu(t.x,e.x,n.x,r?r.originX:void 0),Uu(t.y,e.y,n.y,r?r.originY:void 0)}function $u(t,e,n){t.min=n.min+e.min,t.max=t.min+zu(e)}function Yu(t,e,n){t.min=e.min-n.min,t.max=t.min+zu(e)}function Hu(t,e,n){Yu(t.x,e.x,n.x),Yu(t.y,e.y,n.y)}function qu(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function Xu(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}const Gu=.35;function Zu(t,e,n){return{min:Ku(t,e),max:Ku(t,n)}}function Ku(t,e){return"number"==typeof t?t:t[e]||0}const Qu=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Ju=()=>({x:{min:0,max:0},y:{min:0,max:0}});function tl(t){return[t("x"),t("y")]}function el({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function nl(t){return void 0===t||1===t}function rl({scale:t,scaleX:e,scaleY:n}){return!nl(t)||!nl(e)||!nl(n)}function il(t){return rl(t)||ol(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ol(t){return sl(t.x)||sl(t.y)}function sl(t){return t&&"0%"!==t}function al(t,e,n){return n+e*(t-n)}function ul(t,e,n,r,i){return void 0!==i&&(t=al(t,i,r)),al(t,n,r)+e}function ll(t,e=0,n=1,r,i){t.min=ul(t.min,e,n,r,i),t.max=ul(t.max,e,n,r,i)}function cl(t,{x:e,y:n}){ll(t.x,e.translate,e.scale,e.originPoint),ll(t.y,n.translate,n.scale,n.originPoint)}function fl(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function hl(t,e){t.min=t.min+e,t.max=t.max+e}function pl(t,e,[n,r,i]){const o=void 0!==e[i]?e[i]:.5,s=Hs(t.min,t.max,o);ll(t,e[n],e[r],s,e.scale)}const dl=["x","scaleX","originX"],ml=["y","scaleY","originY"];function vl(t,e){pl(t.x,e,dl),pl(t.y,e,ml)}function gl(t,e){return el(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}const yl=new WeakMap;class _l{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ju(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Du(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(No(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Go(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tl((t=>{let e=this.getAxisMotionValue(t).get()||0;if(Yi.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[t];if(r){e=zu(r)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),i&&Do.update((()=>i(t,e)),!1,!0);const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=e;if(r&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(s),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=e;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&Do.update((()=>i(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:r}=this.getProps();if(!n||!xl(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?Hs(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?Hs(n,t,r.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;t&&ii(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:r,right:i}){return{x:qu(t.x,n,i),y:qu(t.y,e,r)}}(n.layoutBox,t),this.elastic=function(t=Gu){return!1===t?t=0:!0===t&&(t=Gu),{x:Zu(t,"left","right"),y:Zu(t,"top","bottom")}}(e),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&tl((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!ii(t))return!1;const n=t.current;hs(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=function(t,e,n){const r=gl(t,n),{scroll:i}=e;return i&&(hl(r.x,i.offset.x),hl(r.y,i.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:Xu(t.x,e.x),y:Xu(t.y,e.y)}}(r.layout.layoutBox,i);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=el(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},u=tl((s=>{if(!xl(s,e,this.currentDirection))return;let u=a&&a[s]||{};o&&(u={min:0,max:0});const l=r?200:1e6,c=r?40:1e7,f={type:"inertia",velocity:n?t[s]:0,bounceStiffness:l,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(s,f)}));return Promise.all(u).then(s)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start(iu(t,n,0,e))}stopAnimation(){tl((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){const e="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),r=n[e];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){tl((e=>{const{drag:n}=this.getProps();if(!xl(e,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(e);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[e];i.set(t[e]-Hs(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!ii(e)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};tl((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();r[t]=function(t,e){let n=.5;const r=zu(t),i=zu(e);return i>r?n=ha(e.min,e.max-r,t.min):r>i&&(n=ha(t.min,t.max-i,e.min)),Li(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),tl((e=>{if(!xl(e,t,null))return;const n=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];n.set(Hs(i,o,r[e]))}))}addListeners(){if(!this.visualElement.current)return;yl.set(this.visualElement,this);const t=Wo(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();ii(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();const i=Io(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tl((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{i(),t(),r(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=Gu,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function xl(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const bl=t=>(e,n)=>{t&&Do.update((()=>t(e,n)))};const wl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Tl(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const El={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Hi.test(t))return t;t=parseFloat(t)}return`${Tl(t,e.target.x)}% ${Tl(t,e.target.y)}%`}},kl={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=sa.parse(t);if(i.length>5)return r;const o=sa.createTransformer(t),s="number"!=typeof i[0]?1:0,a=n.x.scale*e.x,u=n.y.scale*e.y;i[0+s]/=a,i[1+s]/=u;const l=Hs(a,u,.5);return"number"==typeof i[2+s]&&(i[2+s]/=l),"number"==typeof i[3+s]&&(i[3+s]/=l),o(i)}};class Pl extends r.default.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;var o;o=Cl,Object.assign(Ti,o),i&&(e.group&&e.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),wl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o?(o.isPresent=i,r||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Do.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Sl(e){const[n,i]=function(){const e=t.useContext(ti);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=t.useId();return t.useEffect((()=>i(o)),[]),!n&&r?[!1,()=>r&&r(o)]:[!0]}(),o=t.useContext(mi);return r.default.createElement(Pl,{...e,layoutGroup:o,switchLayoutGroup:t.useContext(vi),isPresent:n,safeToRemove:i})}const Cl={borderRadius:{...El,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:El,borderTopRightRadius:El,borderBottomLeftRadius:El,borderBottomRightRadius:El,boxShadow:kl},Al=["TopLeft","TopRight","BottomLeft","BottomRight"],Ml=Al.length,Ol=t=>"string"==typeof t?parseFloat(t):t,Rl=t=>"number"==typeof t||Hi.test(t);function Dl(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Ll=jl(0,.5,Rs),Vl=jl(.5,.95,Mo);function jl(t,e,n){return r=>r<t?0:r>e?1:n(ha(t,e,r))}function Bl(t,e){t.min=e.min,t.max=e.max}function Fl(t,e){Bl(t.x,e.x),Bl(t.y,e.y)}function Il(t,e,n,r,i){return t=al(t-=e,1/n,r),void 0!==i&&(t=al(t,1/i,r)),t}function zl(t,e,[n,r,i],o,s){!function(t,e=0,n=1,r=.5,i,o=t,s=t){Yi.test(e)&&(e=parseFloat(e),e=Hs(s.min,s.max,e/100)-s.min);if("number"!=typeof e)return;let a=Hs(o.min,o.max,r);t===o&&(a-=e),t.min=Il(t.min,e,n,a,i),t.max=Il(t.max,e,n,a,i)}(t,e[n],e[r],e[i],e.scale,o,s)}const Nl=["x","scaleX","originX"],Ul=["y","scaleY","originY"];function Wl(t,e,n,r){zl(t.x,e,Nl,n?n.x:void 0,r?r.x:void 0),zl(t.y,e,Ul,n?n.y:void 0,r?r.y:void 0)}function $l(t){return 0===t.translate&&1===t.scale}function Yl(t){return $l(t.x)&&$l(t.y)}function Hl(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function ql(t){return zu(t.x)/zu(t.y)}class Xl{constructor(){this.members=[]}add(t){au(this.members,t),t.scheduleRender()}remove(t){if(uu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Gl(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),1===e.x&&1===e.y||(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:i}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),i&&(r+=`rotateY(${i}deg) `)}const s=t.x.scale*e.x,a=t.y.scale*e.y;return 1===s&&1===a||(r+=`scale(${s}, ${a})`),r||"none"}const Zl=(t,e)=>t.depth-e.depth;class Kl{constructor(){this.children=[],this.isDirty=!1}add(t){au(this.children,t),this.isDirty=!0}remove(t){uu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Zl),this.isDirty=!1,this.children.forEach(t)}}const Ql=["","X","Y","Z"];let Jl=0;const tc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ec({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(t={},n=(null==e?void 0:e())){this.id=Jl++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var t;tc.totalNodes=tc.resolvedTargetDeltas=tc.recalculatedProjection=0,this.nodes.forEach(ic),this.nodes.forEach(fc),this.nodes.forEach(hc),this.nodes.forEach(oc),t=tc,window.MotionDebug&&window.MotionDebug.record(t)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Kl)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new lu),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=e)instanceof SVGElement&&"svg"!==r.tagName,this.instance=e;const{layoutId:i,layout:o,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||i)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(Lo(r),t(o-e))};return Do.read(r,!0),()=>Lo(r)}(r,250),wl.hasAnimatedSinceResize&&(wl.hasAnimatedSinceResize=!1,this.nodes.forEach(cc))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||o)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||s.getDefaultTransition()||yc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),u=!this.targetLayout||!Hl(this.targetLayout,r)||n,l=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,l);const e={...ru(i,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||cc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Lo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(pc),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ac);this.isUpdating||this.nodes.forEach(uc),this.isUpdating=!1,this.nodes.forEach(lc),this.nodes.forEach(nc),this.nodes.forEach(rc),this.clearAllSnapshots();const t=performance.now();Vo.delta=Li(0,1e3/60,t-Vo.timestamp),Vo.timestamp=t,Vo.isProcessing=!0,jo.update.process(Vo),jo.preRender.process(Vo),jo.render.process(Vo),Vo.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(sc),this.sharedNodes.forEach(dc)}scheduleUpdateProjection(){Do.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Do.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ju(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!Yl(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;t&&(e||il(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var r;return t&&(n=this.removeTransform(n)),bc((r=n).x),bc(r.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return Ju();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(hl(e.x,n.offset.x),hl(e.y,n.offset.y)),e}removeElementScroll(t){const e=Ju();Fl(e,t);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){Fl(e,t);const{scroll:n}=this.root;n&&(hl(e.x,-n.offset.x),hl(e.y,-n.offset.y))}hl(e.x,i.offset.x),hl(e.y,i.offset.y)}}return e}applyTransform(t,e=!1){const n=Ju();Fl(n,t);for(let t=0;t<this.path.length;t++){const r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&vl(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),il(r.latestValues)&&vl(n,r.latestValues)}return il(this.latestValues)&&vl(n,this.latestValues),n}removeTransform(t){const e=Ju();Fl(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!il(n.latestValues))continue;rl(n.latestValues)&&n.updateSnapshot();const r=Ju();Fl(r,n.measurePageBox()),Wl(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return il(this.latestValues)&&Wl(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Vo.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:i,layoutId:o}=this.options;if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=Vo.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ju(),this.relativeTargetOrigin=Ju(),Hu(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Fl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,u;if(this.target||(this.target=Ju(),this.targetWithTransforms=Ju()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,u=this.relativeParent.target,$u(s.x,a.x,u.x),$u(s.y,a.y,u.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Fl(this.target,this.layout.layoutBox),cl(this.target,this.targetDelta)):Fl(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ju(),this.relativeTargetOrigin=Ju(),Hu(this.relativeTargetOrigin,this.target,t.target),Fl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!rl(this.parent.latestValues)&&!ol(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Vo.timestamp&&(r=!1),r)return;const{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!o)return;Fl(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,r=!1){const i=n.length;if(!i)return;let o,s;e.x=e.y=1;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const i=o.instance;i&&i.style&&"contents"===i.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&vl(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,cl(t,s)),r&&il(o.latestValues)&&vl(t,o.latestValues))}e.x=fl(e.x),e.y=fl(e.y)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox);const{target:u}=e;if(!u)return void(this.projectionTransform&&(this.projectionDelta=Qu(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=Qu(),this.projectionDeltaWithTransform=Qu());const l=this.projectionTransform;Wu(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.projectionTransform=Gl(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),tc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){const n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},o=Qu();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const s=Ju(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),l=!u||u.members.length<=1,c=Boolean(a&&!l&&!0===this.options.crossfade&&!this.path.some(gc));let f;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var u,h,p,d,m,v;mc(o.x,t.x,n),mc(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hu(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,d=this.relativeTargetOrigin,m=s,v=n,vc(p.x,d.x,m.x,v),vc(p.y,d.y,m.y,v),f&&(u=this.relativeTarget,h=f,u.x.min===h.x.min&&u.x.max===h.x.max&&u.y.min===h.y.min&&u.y.max===h.y.max)&&(this.isProjectionDirty=!1),f||(f=Ju()),Fl(f,this.relativeTarget)),a&&(this.animationValues=i,function(t,e,n,r,i,o){i?(t.opacity=Hs(0,void 0!==n.opacity?n.opacity:1,Ll(r)),t.opacityExit=Hs(void 0!==e.opacity?e.opacity:1,0,Vl(r))):o&&(t.opacity=Hs(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<Ml;i++){const o=`border${Al[i]}Radius`;let s=Dl(e,o),a=Dl(n,o);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||Rl(s)===Rl(a)?(t[o]=Math.max(Hs(Ol(s),Ol(a),r),0),(Yi.test(a)||Yi.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=Hs(e.rotate||0,n.rotate||0,r))}(i,r,this.latestValues,n,c,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Lo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Do.update((()=>{wl.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const r=Si(t)?t:pu(t);return r.start(iu("",r,e,n)),r.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:r,latestValues:i}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&wc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Ju();const e=zu(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const r=zu(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}Fl(e,n),vl(e,i),Wu(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Xl);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const r={};for(let e=0;e<Ql.length;e++){const i="rotate"+Ql[e];n[i]&&(r[i]=n[i],t.setStaticValue(i,0))}t.render();for(const e in r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=So(t.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=So(t.pointerEvents)||""),this.hasProjected&&!il(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}const s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=Gl(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));const{x:a,y:u}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*u.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const t in Ti){if(void 0===s[t])continue;const{correct:e,applyTo:n}=Ti[t],i="none"===r.transform?s[t]:e(s[t],o);if(n){const t=n.length;for(let e=0;e<t;e++)r[n[e]]=i}else r[t]=i}return this.options.layoutId&&(r.pointerEvents=o===this?So(t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(ac),this.root.sharedNodes.clear()}}}function nc(t){t.updateLayout()}function rc(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:r}=t.layout,{animationType:i}=t.options,o=n.source!==t.layout.source;"size"===i?tl((t=>{const r=o?n.measuredBox[t]:n.layoutBox[t],i=zu(r);r.min=e[t].min,r.max=r.min+i})):wc(i,n.layoutBox,e)&&tl((r=>{const i=o?n.measuredBox[r]:n.layoutBox[r],s=zu(e[r]);i.max=i.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+s)}));const s=Qu();Wu(s,e,n.layoutBox);const a=Qu();o?Wu(a,t.applyTransform(r,!0),n.measuredBox):Wu(a,e,n.layoutBox);const u=!Yl(s);let l=!1;if(!t.resumeFrom){const r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:o}=r;if(i&&o){const s=Ju();Hu(s,n.layoutBox,i.layoutBox);const a=Ju();Hu(a,e,o.layoutBox),Hl(s,a)||(l=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:l})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ic(t){tc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function oc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sc(t){t.clearSnapshot()}function ac(t){t.clearMeasurements()}function uc(t){t.isLayoutDirty=!1}function lc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function cc(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function fc(t){t.resolveTargetDelta()}function hc(t){t.calcProjection()}function pc(t){t.resetRotation()}function dc(t){t.removeLeadSnapshot()}function mc(t,e,n){t.translate=Hs(e.translate,0,n),t.scale=Hs(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function vc(t,e,n,r){t.min=Hs(e.min,n.min,r),t.max=Hs(e.max,n.max,r)}function gc(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const yc={duration:.45,ease:[.4,0,.1,1]},_c=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),xc=_c("applewebkit/")&&!_c("chrome/")?Math.round:Mo;function bc(t){t.min=xc(t.min),t.max=xc(t.max)}function wc(t,e,n){return"position"===t||"preserve-aspect"===t&&!Nu(ql(e),ql(n),.2)}const Tc=ec({attachResizeListener:(t,e)=>Io(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ec={current:void 0},kc=ec({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ec.current){const t=new Tc({});t.mount(window),t.setOptions({layoutScroll:!0}),Ec.current=t}return Ec.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Pc={pan:{Feature:class extends Ko{constructor(){super(...arguments),this.removePointerDownListener=Mo}onPointerDown(t){this.session=new Du(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:bl(t),onStart:bl(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&Do.update((()=>r(t,e)))}}}mount(){this.removePointerDownListener=Wo(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Ko{constructor(t){super(t),this.removeGroupControls=Mo,this.removeListeners=Mo,this.controls=new _l(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Mo}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:kc,MeasureLayout:Sl}},Sc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const Cc=4;function Ac(t,e,n=1){hs(n<=Cc,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=function(t){const e=Sc.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const t=o.trim();return su(t)?parseFloat(t):t}return Ri(i)?Ac(i,e,n+1):i}const Mc=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Oc=t=>Mc.has(t),Rc=t=>t===Vi||t===Hi,Dc=(t,e)=>parseFloat(t.split(", ")[e]),Lc=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Dc(i[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?Dc(e[1],t):0}},Vc=new Set(["x","y","z"]),jc=Ei.filter((t=>!Vc.has(t)));const Bc={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Lc(4,13),y:Lc(5,14)};Bc.translateX=Bc.x,Bc.translateY=Bc.y;const Fc=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(Oc);let o=[],s=!1;const a=[];if(i.forEach((i=>{const u=t.getValue(i);if(!t.hasValue(i))return;let l=n[i],c=vu(l);const f=e[i];let h;if(Eo(f)){const t=f.length,e=null===f[0]?1:0;l=f[e],c=vu(l);for(let n=e;n<t&&null!==f[n];n++)h?hs(vu(f[n])===h,"All keyframes must be of the same type"):(h=vu(f[n]),hs(h===c||Rc(c)&&Rc(h),"Keyframes must be of the same dimension as the current value"))}else h=vu(f);if(c!==h)if(Rc(c)&&Rc(h)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof f?e[i]=parseFloat(f):Array.isArray(f)&&h===Hi&&(e[i]=f.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==h?void 0:h.transform)&&(0===l||0===f)?0===l?u.set(h.transform(l)):e[i]=c.transform(f):(s||(o=function(t){const e=[];return jc.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),s=!0),a.push(i),r[i]=void 0!==r[i]?r[i]:e[i],u.jump(f))})),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,i=((t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:s}=o,a={};"none"===s&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Bc[t](r,o)})),e.render();const u=e.measureViewportBox();return n.forEach((n=>{const r=e.getValue(n);r&&r.jump(a[n]),t[n]=Bc[n](u,o)})),t})(e,t,a);return o.length&&o.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),ei&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}return{target:e,transitionEnd:r}};function Ic(t,e,n,r){return(t=>Object.keys(t).some(Oc))(e)?Fc(t,e,n,r):{target:e,transitionEnd:r}}const zc=(t,e,n,r)=>{const i=function(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!Ri(e))return;const n=Ac(e,r);n&&t.set(n)}));for(const t in e){const i=e[t];if(!Ri(i))continue;const o=Ac(i,r);o&&(e[t]=o,n||(n={}),void 0===n[t]&&(n[t]=i))}return{target:e,transitionEnd:n}}(t,e,r);return Ic(t,e=i.target,n,r=i.transitionEnd)},Nc={current:null},Uc={current:!1};const Wc=new WeakMap,$c=Object.keys(di),Yc=$c.length,Hc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],qc=ui.length;class Xc{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Do.render(this.render,!1,!0);const{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=li(e),this.isVariantNode=ci(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...l}=this.scrapeMotionValuesFromProps(e,{});for(const t in l){const e=l[t];void 0!==s[t]&&Si(e)&&(e.set(s[t],!1),ou(u)&&u.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,Wc.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Uc.current||function(){if(Uc.current=!0,ei)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Nc.current=t.matches;t.addListener(e),e()}else Nc.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Nc.current),"production"!==process.env.NODE_ENV&&fu(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Wc.delete(this.current),this.projection&&this.projection.unmount(),Lo(this.notifyUpdate),Lo(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=ki.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&Do.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{r(),i()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,i){let o,s;if("production"!==process.env.NODE_ENV&&r&&n){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?fs(!1,t):hs(!1,t)}for(let t=0;t<Yc;t++){const n=$c[t],{isEnabled:r,Feature:i,ProjectionNode:a,MeasureLayout:u}=di[n];a&&(o=a),r(e)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),u&&(s=u))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:u}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||s&&ii(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:u})}return s}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ju()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Hc.length;e++){const n=Hc[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],s=n[i];if(Si(o))t.addValue(i,o),ou(r)&&r.add(i),"development"===process.env.NODE_ENV&&fu("10.16.4"===o.version,`Attempting to mix Framer Motion versions ${o.version} with 10.16.4 may not work as expected.`);else if(Si(s))t.addValue(i,pu(o,{owner:t})),ou(r)&&r.remove(i);else if(s!==o)if(t.hasValue(i)){const e=t.getValue(i);!e.hasAnimated&&e.set(o)}else{const e=t.getStaticValue(i);t.addValue(i,pu(void 0!==e?e:o,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<qc;t++){const n=ui[t],r=this.props[n];(oi(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=pu(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=wo(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||Si(i)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new lu),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class Gc extends Xc{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},i){let o=function(t,e,n){const r={};for(const i in t){const t=_u(i,e);if(void 0!==t)r[i]=t;else{const t=n.getValue(i);t&&(r[i]=t.get())}}return r}(n,t||{},this);if(r&&(e&&(e=r(e)),n&&(n=r(n)),o&&(o=r(o))),i){!function(t,e,n){var r,i;const o=Object.keys(e).filter((e=>!t.hasValue(e))),s=o.length;var a;if(s)for(let u=0;u<s;u++){const s=o[u],l=e[s];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(i=null!==(r=n[s])&&void 0!==r?r:t.readValue(s))&&void 0!==i?i:e[s]),null!=c&&("string"==typeof c&&(su(c)||eu(c))?c=parseFloat(c):(a=c,!gu.find(du(a))&&sa.test(l)&&(c=tu(s,l))),t.addValue(s,pu(c,{owner:t})),void 0===n[s]&&(n[s]=c),null!==c&&t.setBaseTarget(s,c))}}(this,n,o);const t=zc(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class Zc extends Gc{readValueFromInstance(t,e){if(ki.has(e)){const t=Ja(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),i=(Oi(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return gl(t,e)}build(t,e,n,r){Qi(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return xo(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Si(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,r){go(t,e,n,r)}}class Kc extends Gc{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(ki.has(e)){const t=Ja(e);return t&&t.default||0}return e=yo.has(e)?e:vo(e),t.getAttribute(e)}measureInstanceViewportBox(){return Ju()}scrapeMotionValuesFromProps(t,e){return bo(t,e)}build(t,e,n,r){co(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){_o(t,e,0,r)}mount(t){this.isSVGTag=ho(t.tagName),super.mount(t)}}const Qc=(t,e)=>wi(t)?new Kc(e,{enableHardwareAcceleration:!1}):new Zc(e,{enableHardwareAcceleration:!0}),Jc={...Ou,...as,...Pc,...{layout:{ProjectionNode:kc,MeasureLayout:Sl}}},tf=xi(((t,e)=>function(t,{forwardMotionProps:e=!1},n,r){return{...wi(t)?Bo:Fo,preloadedFeatures:n,useRender:mo(e),createVisualElement:r,Component:t}}(t,e,Jc,Qc)));function ef(){const e=t.useRef(!1);return ni((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class nf extends i.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function rf({children:e,isPresent:n}){const r=t.useId(),o=t.useRef(null),s=t.useRef({width:0,height:0,top:0,left:0});return t.useInsertionEffect((()=>{const{width:t,height:e,top:i,left:a}=s.current;if(n||!o.current||!t||!e)return;o.current.dataset.motionPopId=r;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`\n [data-motion-pop-id="${r}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${e}px !important;\n top: ${i}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(u)}}),[n]),i.createElement(nf,{isPresent:n,childRef:o,sizeRef:s},i.cloneElement(e,{ref:o}))}const of=({children:e,initial:n,isPresent:r,onExitComplete:o,custom:s,presenceAffectsLayout:a,mode:u})=>{const l=To(sf),c=t.useId(),f=t.useMemo((()=>({id:c,initial:n,isPresent:r,custom:s,onExitComplete:t=>{l.set(t,!0);for(const t of l.values())if(!t)return;o&&o()},register:t=>(l.set(t,!1),()=>l.delete(t))})),a?void 0:[r]);return t.useMemo((()=>{l.forEach(((t,e)=>l.set(e,!1)))}),[r]),i.useEffect((()=>{!r&&!l.size&&o&&o()}),[r]),"popLayout"===u&&(e=i.createElement(rf,{isPresent:r},e)),i.createElement(ti.Provider,{value:f},e)};function sf(){return new Map}const af=t=>t.key||"";const uf=({children:e,custom:n,initial:r=!0,onExitComplete:o,exitBeforeEnter:s,presenceAffectsLayout:a=!0,mode:u="sync"})=>{hs(!s,"Replace exitBeforeEnter with mode='wait'");const l=t.useContext(mi).forceRender||function(){const e=ef(),[n,r]=t.useState(0),i=t.useCallback((()=>{e.current&&r(n+1)}),[n]);return[t.useCallback((()=>Do.postRender(i)),[i]),n]}()[0],c=ef(),f=function(e){const n=[];return t.Children.forEach(e,(e=>{t.isValidElement(e)&&n.push(e)})),n}(e);let h=f;const p=t.useRef(new Map).current,d=t.useRef(h),m=t.useRef(new Map).current,v=t.useRef(!0);var g;if(ni((()=>{v.current=!1,function(t,e){t.forEach((t=>{const n=af(t);e.set(n,t)}))}(f,m),d.current=h})),g=()=>{v.current=!0,m.clear(),p.clear()},t.useEffect((()=>()=>g()),[]),v.current)return i.createElement(i.Fragment,null,h.map((t=>i.createElement(of,{key:af(t),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:u},t))));h=[...h];const y=d.current.map(af),_=f.map(af),x=y.length;for(let t=0;t<x;t++){const e=y[t];-1!==_.indexOf(e)||p.has(e)||p.set(e,void 0)}return"wait"===u&&p.size&&(h=[]),p.forEach(((t,e)=>{if(-1!==_.indexOf(e))return;const r=m.get(e);if(!r)return;const s=y.indexOf(e);let v=t;if(!v){const t=()=>{m.delete(e),p.delete(e);const t=d.current.findIndex((t=>t.key===e));if(d.current.splice(t,1),!p.size){if(d.current=f,!1===c.current)return;l(),o&&o()}};v=i.createElement(of,{key:af(r),isPresent:!1,onExitComplete:t,custom:n,presenceAffectsLayout:a,mode:u},r),p.set(e,v)}h.splice(s,0,v)})),h=h.map((t=>{const e=t.key;return p.has(e)?t:i.createElement(of,{key:af(t),isPresent:!0,presenceAffectsLayout:a,mode:u},t)})),"production"!==process.env.NODE_ENV&&"wait"===u&&h.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),i.createElement(i.Fragment,null,p.size?h:h.map((e=>t.cloneElement(e))))};a(".spark-elastic {\n background-color: transparent;\n border: 0 none;\n margin: 0;\n padding: 0; }\n .spark-elastic > div {\n height: 100%; }\n .spark-elastic__stack {\n display: flex; }\n .spark-elastic__button {\n background: transparent;\n border: 1px solid black;\n border-radius: 2rem;\n color: black;\n cursor: pointer;\n display: block;\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 1;\n padding: 1rem 2rem;\n text-decoration: none; }\n .spark-elastic__icon {\n border-radius: 100%;\n box-shadow: 0 0 0 1px inset black;\n height: 100%;\n width: 3.35rem; }\n");var lf=t.forwardRef((function(e,n){var i=e.children,a=e.className,u=void 0===a?"":a,l=e.as,c=void 0===l?"button":l,f=e.button,h=e.icon,p=void 0===h?r.default.createElement("div",{className:"spark-elastic__icon"}):h,d=s(e,["children","className","as","button","icon"]),m=t.useState(!1),v=m[0],g=m[1],y=function(){return p},_=f?r.default.cloneElement(f):r.default.createElement("div",{className:"spark-elastic__button"},i);return r.default.createElement(c,o({ref:n,className:"spark-elastic ".concat(u)},d),r.default.createElement("div",{className:"spark-elastic__stack",onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)}},r.default.createElement(uf,{mode:"wait"},r.default.createElement(tf.div,{key:v?"hover":"idle",initial:{x:20},animate:{x:0},transition:{type:"spring",damping:7,stiffness:300,restDelta:.1}},v&&r.default.createElement(y,null))),r.default.createElement(uf,{mode:"wait"},r.default.createElement(tf.div,{key:v?"hover":"idle",initial:{x:20},animate:{x:0},transition:{duration:.3,ease:"circOut"}},_)),r.default.createElement(uf,{mode:"wait"},r.default.createElement(tf.div,{key:v?"hover":"idle",initial:{x:10},animate:{x:0},transition:{type:"spring",damping:7,stiffness:300,restDelta:.1}},!v&&r.default.createElement(y,null)))))})),cf="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ff={exports:{}};function hf(t,e){return Object.getOwnPropertyNames(Object(t)).reduce(((n,r)=>{const i=Object.getOwnPropertyDescriptor(Object(t),r),o=Object.getOwnPropertyDescriptor(Object(e),r);return Object.defineProperty(n,r,o||i)}),{})}function pf(t){return"string"==typeof t}function df(t){return Array.isArray(t)}function mf(t={}){const e=hf(t);let n;return void 0!==e.types?n=e.types:void 0!==e.split&&(n=e.split),void 0!==n&&(e.types=(pf(n)||df(n)?String(n):"").split(",").map((t=>String(t).trim())).filter((t=>/((line)|(word)|(char))/i.test(t)))),(e.absolute||e.position)&&(e.absolute=e.absolute||/absolute/.test(t.position)),e}function vf(t){const e=pf(t)||df(t)?String(t):"";return{none:!e,lines:/line/i.test(e),words:/word/i.test(e),chars:/char/i.test(e)}}function gf(t){return null!==t&&"object"==typeof t}function yf(t){return gf(t)&&/^(1|3|11)$/.test(t.nodeType)}function _f(t){return df(t)?t:null==t?[]:function(t){return gf(t)&&function(t){return"number"==typeof t&&t>-1&&t%1==0}(t.length)}(t)?Array.prototype.slice.call(t):[t]}function xf(t){let e=t;return pf(t)&&(e=/^(#[a-z]\w+)$/.test(t.trim())?document.getElementById(t.trim().slice(1)):document.querySelectorAll(t)),_f(e).reduce(((t,e)=>[...t,..._f(e).filter(yf)]),[])}!function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}
21
- /*!
22
- * Observer 3.12.2
23
- * https://greensock.com
24
- *
25
- * @license Copyright 2008-2023, GreenSock. All rights reserved.
26
- * Subject to the terms at https://greensock.com/standard-license or for
27
- * Club GreenSock members, the agreement issued with that membership.
28
- * @author: Jack Doyle, jack@greensock.com
29
- */var r,i,o,s,a,u,l,c,f,h,p,d,m,v=function(){return r||"undefined"!=typeof window&&(r=window.gsap)&&r.registerPlugin&&r},g=1,y=[],_=[],x=[],b=Date.now,w=function(t,e){return e},T=function(){var t=f.core,e=t.bridge||{},n=t._scrollers,r=t._proxies;n.push.apply(n,_),r.push.apply(r,x),_=n,x=r,w=function(t,n){return e[t](n)}},E=function(t,e){return~x.indexOf(t)&&x[x.indexOf(t)+1][e]},k=function(t){return!!~h.indexOf(t)},P=function(t,e,n,r,i){return t.addEventListener(e,n,{passive:!r,capture:!!i})},S=function(t,e,n,r){return t.removeEventListener(e,n,!!r)},C="scrollLeft",A="scrollTop",M=function(){return p&&p.isPressed||_.cache++},O=function(t,e){var n=function n(r){if(r||0===r){g&&(o.history.scrollRestoration="manual");var i=p&&p.isPressed;r=n.v=Math.round(r)||(p&&p.iOS?1:0),t(r),n.cacheID=_.cache,i&&w("ss",r)}else(e||_.cache!==n.cacheID||w("ref"))&&(n.cacheID=_.cache,n.v=t());return n.v+n.offset};return n.offset=0,t&&n},R={s:C,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:O((function(t){return arguments.length?o.scrollTo(t,D.sc()):o.pageXOffset||s[C]||a[C]||u[C]||0}))},D={s:A,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:R,sc:O((function(t){return arguments.length?o.scrollTo(R.sc(),t):o.pageYOffset||s[A]||a[A]||u[A]||0}))},L=function(t,e){return(e&&e._ctx&&e._ctx.selector||r.utils.toArray)(t)[0]||("string"==typeof t&&!1!==r.config().nullTargetWarn?console.warn("Element not found:",t):null)},V=function(t,e){var n=e.s,i=e.sc;k(t)&&(t=s.scrollingElement||a);var o=_.indexOf(t),u=i===D.sc?1:2;!~o&&(o=_.push(t)-1),_[o+u]||P(t,"scroll",M);var l=_[o+u],c=l||(_[o+u]=O(E(t,n),!0)||(k(t)?i:O((function(e){return arguments.length?t[n]=e:t[n]}))));return c.target=t,l||(c.smooth="smooth"===r.getProperty(t,"scrollBehavior")),c},j=function(t,e,n){var r=t,i=t,o=b(),s=o,a=e||50,u=Math.max(500,3*a),l=function(t,e){var u=b();e||u-o>a?(i=r,r=t,s=o,o=u):n?r+=t:r=i+(t-i)/(u-s)*(o-s)},c=function(t){var e=s,a=i,c=b();return(t||0===t)&&t!==r&&l(t),o===s||c-s>u?0:(r+(n?a:-a))/((n?c:o)-e)*1e3};return{update:l,reset:function(){i=r=n?0:r,s=o=0},getVelocity:c}},B=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},F=function(t){var e=Math.max.apply(Math,t),n=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(n)?e:n},I=function(){(f=r.core.globals().ScrollTrigger)&&f.core&&T()},z=function(t){return(r=t||v())&&"undefined"!=typeof document&&document.body&&(o=window,s=document,a=s.documentElement,u=s.body,h=[o,s,a,u],r.utils.clamp,m=r.core.context||function(){},c="onpointerenter"in u?"pointer":"mouse",l=N.isTouch=o.matchMedia&&o.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in o||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,d=N.eventTypes=("ontouchstart"in a?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in a?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return g=0}),500),I(),i=1),i};R.op=D,_.cache=0;var N=function(){function t(t){this.init(t)}return t.prototype.init=function(t){i||z(r)||console.warn("Please gsap.registerPlugin(Observer)"),f||I();var e=t.tolerance,n=t.dragMinimum,h=t.type,v=t.target,g=t.lineHeight,_=t.debounce,x=t.preventDefault,w=t.onStop,T=t.onStopDelay,E=t.ignore,C=t.wheelSpeed,A=t.event,O=t.onDragStart,N=t.onDragEnd,U=t.onDrag,W=t.onPress,$=t.onRelease,Y=t.onRight,H=t.onLeft,q=t.onUp,X=t.onDown,G=t.onChangeX,Z=t.onChangeY,K=t.onChange,Q=t.onToggleX,J=t.onToggleY,tt=t.onHover,et=t.onHoverEnd,nt=t.onMove,rt=t.ignoreCheck,it=t.isNormalizer,ot=t.onGestureStart,st=t.onGestureEnd,at=t.onWheel,ut=t.onEnable,lt=t.onDisable,ct=t.onClick,ft=t.scrollSpeed,ht=t.capture,pt=t.allowClicks,dt=t.lockAxis,mt=t.onLockAxis;this.target=v=L(v)||a,this.vars=t,E&&(E=r.utils.toArray(E)),e=e||1e-9,n=n||0,C=C||1,ft=ft||1,h=h||"wheel,touch,pointer",_=!1!==_,g||(g=parseFloat(o.getComputedStyle(u).lineHeight)||22);var vt,gt,yt,_t,xt,bt,wt,Tt=this,Et=0,kt=0,Pt=V(v,R),St=V(v,D),Ct=Pt(),At=St(),Mt=~h.indexOf("touch")&&!~h.indexOf("pointer")&&"pointerdown"===d[0],Ot=k(v),Rt=v.ownerDocument||s,Dt=[0,0,0],Lt=[0,0,0],Vt=0,jt=function(){return Vt=b()},Bt=function(t,e){return(Tt.event=t)&&E&&~E.indexOf(t.target)||e&&Mt&&"touch"!==t.pointerType||rt&&rt(t,e)},Ft=function(){Tt._vx.reset(),Tt._vy.reset(),gt.pause(),w&&w(Tt)},It=function(){var t=Tt.deltaX=F(Dt),n=Tt.deltaY=F(Lt),r=Math.abs(t)>=e,i=Math.abs(n)>=e;K&&(r||i)&&K(Tt,t,n,Dt,Lt),r&&(Y&&Tt.deltaX>0&&Y(Tt),H&&Tt.deltaX<0&&H(Tt),G&&G(Tt),Q&&Tt.deltaX<0!=Et<0&&Q(Tt),Et=Tt.deltaX,Dt[0]=Dt[1]=Dt[2]=0),i&&(X&&Tt.deltaY>0&&X(Tt),q&&Tt.deltaY<0&&q(Tt),Z&&Z(Tt),J&&Tt.deltaY<0!=kt<0&&J(Tt),kt=Tt.deltaY,Lt[0]=Lt[1]=Lt[2]=0),(_t||yt)&&(nt&&nt(Tt),yt&&(U(Tt),yt=!1),_t=!1),bt&&!(bt=!1)&&mt&&mt(Tt),xt&&(at(Tt),xt=!1),vt=0},zt=function(t,e,n){Dt[n]+=t,Lt[n]+=e,Tt._vx.update(t),Tt._vy.update(e),_?vt||(vt=requestAnimationFrame(It)):It()},Nt=function(t,e){dt&&!wt&&(Tt.axis=wt=Math.abs(t)>Math.abs(e)?"x":"y",bt=!0),"y"!==wt&&(Dt[2]+=t,Tt._vx.update(t,!0)),"x"!==wt&&(Lt[2]+=e,Tt._vy.update(e,!0)),_?vt||(vt=requestAnimationFrame(It)):It()},Ut=function(t){if(!Bt(t,1)){var e=(t=B(t,x)).clientX,r=t.clientY,i=e-Tt.x,o=r-Tt.y,s=Tt.isDragging;Tt.x=e,Tt.y=r,(s||Math.abs(Tt.startX-e)>=n||Math.abs(Tt.startY-r)>=n)&&(U&&(yt=!0),s||(Tt.isDragging=!0),Nt(i,o),s||O&&O(Tt))}},Wt=Tt.onPress=function(t){Bt(t,1)||t&&t.button||(Tt.axis=wt=null,gt.pause(),Tt.isPressed=!0,t=B(t),Et=kt=0,Tt.startX=Tt.x=t.clientX,Tt.startY=Tt.y=t.clientY,Tt._vx.reset(),Tt._vy.reset(),P(it?v:Rt,d[1],Ut,x,!0),Tt.deltaX=Tt.deltaY=0,W&&W(Tt))},$t=Tt.onRelease=function(t){if(!Bt(t,1)){S(it?v:Rt,d[1],Ut,!0);var e=!isNaN(Tt.y-Tt.startY),n=Tt.isDragging&&(Math.abs(Tt.x-Tt.startX)>3||Math.abs(Tt.y-Tt.startY)>3),i=B(t);!n&&e&&(Tt._vx.reset(),Tt._vy.reset(),x&&pt&&r.delayedCall(.08,(function(){if(b()-Vt>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(Rt.createEvent){var e=Rt.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,o,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),Tt.isDragging=Tt.isGesturing=Tt.isPressed=!1,w&&!it&&gt.restart(!0),N&&n&&N(Tt),$&&$(Tt,n)}},Yt=function(t){return t.touches&&t.touches.length>1&&(Tt.isGesturing=!0)&&ot(t,Tt.isDragging)},Ht=function(){return(Tt.isGesturing=!1)||st(Tt)},qt=function(t){if(!Bt(t)){var e=Pt(),n=St();zt((e-Ct)*ft,(n-At)*ft,1),Ct=e,At=n,w&&gt.restart(!0)}},Xt=function(t){if(!Bt(t)){t=B(t,x),at&&(xt=!0);var e=(1===t.deltaMode?g:2===t.deltaMode?o.innerHeight:1)*C;zt(t.deltaX*e,t.deltaY*e,0),w&&!it&&gt.restart(!0)}},Gt=function(t){if(!Bt(t)){var e=t.clientX,n=t.clientY,r=e-Tt.x,i=n-Tt.y;Tt.x=e,Tt.y=n,_t=!0,(r||i)&&Nt(r,i)}},Zt=function(t){Tt.event=t,tt(Tt)},Kt=function(t){Tt.event=t,et(Tt)},Qt=function(t){return Bt(t)||B(t,x)&&ct(Tt)};gt=Tt._dc=r.delayedCall(T||.25,Ft).pause(),Tt.deltaX=Tt.deltaY=0,Tt._vx=j(0,50,!0),Tt._vy=j(0,50,!0),Tt.scrollX=Pt,Tt.scrollY=St,Tt.isDragging=Tt.isGesturing=Tt.isPressed=!1,m(this),Tt.enable=function(t){return Tt.isEnabled||(P(Ot?Rt:v,"scroll",M),h.indexOf("scroll")>=0&&P(Ot?Rt:v,"scroll",qt,x,ht),h.indexOf("wheel")>=0&&P(v,"wheel",Xt,x,ht),(h.indexOf("touch")>=0&&l||h.indexOf("pointer")>=0)&&(P(v,d[0],Wt,x,ht),P(Rt,d[2],$t),P(Rt,d[3],$t),pt&&P(v,"click",jt,!1,!0),ct&&P(v,"click",Qt),ot&&P(Rt,"gesturestart",Yt),st&&P(Rt,"gestureend",Ht),tt&&P(v,c+"enter",Zt),et&&P(v,c+"leave",Kt),nt&&P(v,c+"move",Gt)),Tt.isEnabled=!0,t&&t.type&&Wt(t),ut&&ut(Tt)),Tt},Tt.disable=function(){Tt.isEnabled&&(y.filter((function(t){return t!==Tt&&k(t.target)})).length||S(Ot?Rt:v,"scroll",M),Tt.isPressed&&(Tt._vx.reset(),Tt._vy.reset(),S(it?v:Rt,d[1],Ut,!0)),S(Ot?Rt:v,"scroll",qt,ht),S(v,"wheel",Xt,ht),S(v,d[0],Wt,ht),S(Rt,d[2],$t),S(Rt,d[3],$t),S(v,"click",jt,!0),S(v,"click",Qt),S(Rt,"gesturestart",Yt),S(Rt,"gestureend",Ht),S(v,c+"enter",Zt),S(v,c+"leave",Kt),S(v,c+"move",Gt),Tt.isEnabled=Tt.isPressed=Tt.isDragging=!1,lt&&lt(Tt))},Tt.kill=Tt.revert=function(){Tt.disable();var t=y.indexOf(Tt);t>=0&&y.splice(t,1),p===Tt&&(p=0)},y.push(Tt),it&&k(v)&&(p=Tt),Tt.enable(A)},n(t,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t}();N.version="3.12.2",N.create=function(t){return new N(t)},N.register=z,N.getAll=function(){return y.slice()},N.getById=function(t){return y.filter((function(e){return e.vars.id===t}))[0]},v()&&r.registerPlugin(N);
30
- /*!
31
- * ScrollTrigger 3.12.2
32
- * https://greensock.com
33
- *
34
- * @license Copyright 2008-2023, GreenSock. All rights reserved.
35
- * Subject to the terms at https://greensock.com/standard-license or for
36
- * Club GreenSock members, the agreement issued with that membership.
37
- * @author: Jack Doyle, jack@greensock.com
38
- */
39
- var U,W,$,Y,H,q,X,G,Z,K,Q,J,tt,et,nt,rt,it,ot,st,at,ut,lt,ct,ft,ht,pt,dt,mt,vt,gt,yt,_t,xt,bt,wt,Tt,Et=1,kt=Date.now,Pt=kt(),St=0,Ct=0,At=function(t,e,n){var r=Yt(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return n["_"+e+"Clamp"]=r,r?t.substr(6,t.length-7):t},Mt=function(t,e){return!e||Yt(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Ot=function t(){return Ct&&requestAnimationFrame(t)},Rt=function(){return et=1},Dt=function(){return et=0},Lt=function(t){return t},Vt=function(t){return Math.round(1e5*t)/1e5||0},jt=function(){return"undefined"!=typeof window},Bt=function(){return U||jt()&&(U=window.gsap)&&U.registerPlugin&&U},Ft=function(t){return!!~X.indexOf(t)},It=function(t){return("Height"===t?yt:$["inner"+t])||H["client"+t]||q["client"+t]},zt=function(t){return E(t,"getBoundingClientRect")||(Ft(t)?function(){return un.width=$.innerWidth,un.height=yt,un}:function(){return ve(t)})},Nt=function(t,e,n){var r=n.d,i=n.d2,o=n.a;return(o=E(t,"getBoundingClientRect"))?function(){return o()[r]}:function(){return(e?It(i):t["client"+i])||0}},Ut=function(t,e){return!e||~x.indexOf(t)?zt(t):function(){return un}},Wt=function(t,e){var n=e.s,r=e.d2,i=e.d,o=e.a;return Math.max(0,(n="scroll"+r)&&(o=E(t,n))?o()-zt(t)()[i]:Ft(t)?(H[n]||q[n])-It(r):t[n]-t["offset"+r])},$t=function(t,e){for(var n=0;n<st.length;n+=3)(!e||~e.indexOf(st[n+1]))&&t(st[n],st[n+1],st[n+2])},Yt=function(t){return"string"==typeof t},Ht=function(t){return"function"==typeof t},qt=function(t){return"number"==typeof t},Xt=function(t){return"object"==typeof t},Gt=function(t,e,n){return t&&t.progress(e?0:1)&&n&&t.pause()},Zt=function(t,e){if(t.enabled){var n=e(t);n&&n.totalTime&&(t.callbackAnimation=n)}},Kt=Math.abs,Qt="left",Jt="top",te="right",ee="bottom",ne="width",re="height",ie="Right",oe="Left",se="Top",ae="Bottom",ue="padding",le="margin",ce="Width",fe="Height",he="px",pe=function(t){return $.getComputedStyle(t)},de=function(t){var e=pe(t).position;t.style.position="absolute"===e||"fixed"===e?e:"relative"},me=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},ve=function(t,e){var n=e&&"matrix(1, 0, 0, 1, 0, 0)"!==pe(t)[nt]&&U.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=t.getBoundingClientRect();return n&&n.progress(0).kill(),r},ge=function(t,e){var n=e.d2;return t["offset"+n]||t["client"+n]||0},ye=function(t){var e,n=[],r=t.labels,i=t.duration();for(e in r)n.push(r[e]/i);return n},_e=function(t){return function(e){return U.utils.snap(ye(t),e)}},xe=function(t){var e=U.utils.snap(t),n=Array.isArray(t)&&t.slice(0).sort((function(t,e){return t-e}));return n?function(t,r,i){var o;if(void 0===i&&(i=.001),!r)return e(t);if(r>0){for(t-=i,o=0;o<n.length;o++)if(n[o]>=t)return n[o];return n[o-1]}for(o=n.length,t+=i;o--;)if(n[o]<=t)return n[o];return n[0]}:function(n,r,i){void 0===i&&(i=.001);var o=e(n);return!r||Math.abs(o-n)<i||o-n<0==r<0?o:e(r<0?n-t:n+t)}},be=function(t){return function(e,n){return xe(ye(t))(e,n.direction)}},we=function(t,e,n,r){return n.split(",").forEach((function(n){return t(e,n,r)}))},Te=function(t,e,n,r,i){return t.addEventListener(e,n,{passive:!r,capture:!!i})},Ee=function(t,e,n,r){return t.removeEventListener(e,n,!!r)},ke=function(t,e,n){(n=n&&n.wheelHandler)&&(t(e,"wheel",n),t(e,"touchmove",n))},Pe={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Se={toggleActions:"play",anticipatePin:0},Ce={top:0,left:0,center:.5,bottom:1,right:1},Ae=function(t,e){if(Yt(t)){var n=t.indexOf("="),r=~n?+(t.charAt(n-1)+1)*parseFloat(t.substr(n+1)):0;~n&&(t.indexOf("%")>n&&(r*=e/100),t=t.substr(0,n-1)),t=r+(t in Ce?Ce[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Me=function(t,e,n,r,i,o,s,a){var u=i.startColor,l=i.endColor,c=i.fontSize,f=i.indent,h=i.fontWeight,p=Y.createElement("div"),d=Ft(n)||"fixed"===E(n,"pinType"),m=-1!==t.indexOf("scroller"),v=d?q:n,g=-1!==t.indexOf("start"),y=g?u:l,_="border-color:"+y+";font-size:"+c+";color:"+y+";font-weight:"+h+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return _+="position:"+((m||a)&&d?"fixed;":"absolute;"),(m||a||!d)&&(_+=(r===D?te:ee)+":"+(o+parseFloat(f))+"px;"),s&&(_+="box-sizing:border-box;text-align:left;width:"+s.offsetWidth+"px;"),p._isStart=g,p.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),p.style.cssText=_,p.innerText=e||0===e?t+"-"+e:t,v.children[0]?v.insertBefore(p,v.children[0]):v.appendChild(p),p._offset=p["offset"+r.op.d2],Oe(p,0,r,g),p},Oe=function(t,e,n,r){var i={display:"block"},o=n[r?"os2":"p2"],s=n[r?"p2":"os2"];t._isFlipped=r,i[n.a+"Percent"]=r?-100:0,i[n.a]=r?"1px":0,i["border"+o+ce]=1,i["border"+s+ce]=0,i[n.p]=e+"px",U.set(t,i)},Re=[],De={},Le=function(){return kt()-St>34&&(xt||(xt=requestAnimationFrame(Qe)))},Ve=function(){(!ct||!ct.isPressed||ct.startX>q.clientWidth)&&(_.cache++,ct?xt||(xt=requestAnimationFrame(Qe)):Qe(),St||Ne("scrollStart"),St=kt())},je=function(){pt=$.innerWidth,ht=$.innerHeight},Be=function(){_.cache++,!tt&&!lt&&!Y.fullscreenElement&&!Y.webkitFullscreenElement&&(!ft||pt!==$.innerWidth||Math.abs($.innerHeight-ht)>.25*$.innerHeight)&&G.restart(!0)},Fe={},Ie=[],ze=function t(){return Ee(mn,"scrollEnd",t)||Ge(!0)},Ne=function(t){return Fe[t]&&Fe[t].map((function(t){return t()}))||Ie},Ue=[],We=function(t){for(var e=0;e<Ue.length;e+=5)(!t||Ue[e+4]&&Ue[e+4].query===t)&&(Ue[e].style.cssText=Ue[e+1],Ue[e].getBBox&&Ue[e].setAttribute("transform",Ue[e+2]||""),Ue[e+3].uncache=1)},$e=function(t,e){var n;for(rt=0;rt<Re.length;rt++)!(n=Re[rt])||e&&n._ctx!==e||(t?n.kill(1):n.revert(!0,!0));e&&We(e),e||Ne("revert")},Ye=function(t,e){_.cache++,(e||!bt)&&_.forEach((function(t){return Ht(t)&&t.cacheID++&&(t.rec=0)})),Yt(t)&&($.history.scrollRestoration=vt=t)},He=0,qe=function(){if(wt!==He){var t=wt=He;requestAnimationFrame((function(){return t===He&&Ge(!0)}))}},Xe=function(){q.appendChild(gt),yt=gt.offsetHeight||$.innerHeight,q.removeChild(gt)},Ge=function(t,e){if(!St||t){Xe(),bt=mn.isRefreshing=!0,_.forEach((function(t){return Ht(t)&&++t.cacheID&&(t.rec=t())}));var n=Ne("refreshInit");at&&mn.sort(),e||$e(),_.forEach((function(t){Ht(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))})),Re.slice(0).forEach((function(t){return t.refresh()})),Re.forEach((function(t,e){if(t._subPinOffset&&t.pin){var n=t.vars.horizontal?"offsetWidth":"offsetHeight",r=t.pin[n];t.revert(!0,1),t.adjustPinSpacing(t.pin[n]-r),t.refresh()}})),Re.forEach((function(t){var e=Wt(t.scroller,t._dir);("max"===t.vars.end||t._endClamp&&t.end>e)&&t.setPositions(t.start,Math.max(t.start+1,e),!0)})),n.forEach((function(t){return t&&t.render&&t.render(-1)})),_.forEach((function(t){Ht(t)&&(t.smooth&&requestAnimationFrame((function(){return t.target.style.scrollBehavior="smooth"})),t.rec&&t(t.rec))})),Ye(vt,1),G.pause(),He++,bt=2,Qe(2),Re.forEach((function(t){return Ht(t.vars.onRefresh)&&t.vars.onRefresh(t)})),bt=mn.isRefreshing=!1,Ne("refresh")}else Te(mn,"scrollEnd",ze)},Ze=0,Ke=1,Qe=function(t){if(!bt||2===t){mn.isUpdating=!0,Tt&&Tt.update(0);var e=Re.length,n=kt(),r=n-Pt>=50,i=e&&Re[0].scroll();if(Ke=Ze>i?-1:1,bt||(Ze=i),r&&(St&&!et&&n-St>200&&(St=0,Ne("scrollEnd")),Q=Pt,Pt=n),Ke<0){for(rt=e;rt-- >0;)Re[rt]&&Re[rt].update(0,r);Ke=1}else for(rt=0;rt<e;rt++)Re[rt]&&Re[rt].update(0,r);mn.isUpdating=!1}xt=0},Je=[Qt,Jt,ee,te,le+ae,le+ie,le+se,le+oe,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],tn=Je.concat([ne,re,"boxSizing","max"+ce,"max"+fe,"position",le,ue,ue+se,ue+ie,ue+ae,ue+oe]),en=function(t,e,n){on(n);var r=t._gsap;if(r.spacerIsNative)on(r.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1},nn=function(t,e,n,r){if(!t._gsap.swappedIn){for(var i,o=Je.length,s=e.style,a=t.style;o--;)s[i=Je[o]]=n[i];s.position="absolute"===n.position?"absolute":"relative","inline"===n.display&&(s.display="inline-block"),a[ee]=a[te]="auto",s.flexBasis=n.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[ne]=ge(t,R)+he,s[re]=ge(t,D)+he,s[ue]=a[le]=a[Jt]=a[Qt]="0",on(r),a[ne]=a["max"+ce]=n[ne],a[re]=a["max"+fe]=n[re],a[ue]=n[ue],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},rn=/([A-Z])/g,on=function(t){if(t){var e,n,r=t.t.style,i=t.length,o=0;for((t.t._gsap||U.core.getCache(t.t)).uncache=1;o<i;o+=2)n=t[o+1],e=t[o],n?r[e]=n:r[e]&&r.removeProperty(e.replace(rn,"-$1").toLowerCase())}},sn=function(t){for(var e=tn.length,n=t.style,r=[],i=0;i<e;i++)r.push(tn[i],n[tn[i]]);return r.t=t,r},an=function(t,e,n){for(var r,i=[],o=t.length,s=n?8:0;s<o;s+=2)r=t[s],i.push(r,r in e?e[r]:t[s+1]);return i.t=t.t,i},un={left:0,top:0},ln=function(t,e,n,r,i,o,s,a,u,l,c,f,h,p){Ht(t)&&(t=t(a)),Yt(t)&&"max"===t.substr(0,3)&&(t=f+("="===t.charAt(4)?Ae("0"+t.substr(3),n):0));var d,m,v,g=h?h.time():0;if(h&&h.seek(0),isNaN(t)||(t=+t),qt(t))h&&(t=U.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,f,t)),s&&Oe(s,n,r,!0);else{Ht(e)&&(e=e(a));var y,_,x,b,w=(t||"0").split(" ");v=L(e,a)||q,(y=ve(v)||{})&&(y.left||y.top)||"none"!==pe(v).display||(b=v.style.display,v.style.display="block",y=ve(v),b?v.style.display=b:v.style.removeProperty("display")),_=Ae(w[0],y[r.d]),x=Ae(w[1]||"0",n),t=y[r.p]-u[r.p]-l+_+i-x,s&&Oe(s,x,r,n-x<20||s._isStart&&x>20),n-=n-x}if(p&&(a[p]=t||-.001,t<0&&(t=0)),o){var T=t+n,E=o._isStart;d="scroll"+r.d2,Oe(o,T,r,E&&T>20||!E&&(c?Math.max(q[d],H[d]):o.parentNode[d])<=T+1),c&&(u=ve(s),c&&(o.style[r.op.p]=u[r.op.p]-r.op.m-o._offset+he))}return h&&v&&(d=ve(v),h.seek(f),m=ve(v),h._caScrollDist=d[r.p]-m[r.p],t=t/h._caScrollDist*f),h&&h.seek(g),h?t:Math.round(t)},cn=/(webkit|moz|length|cssText|inset)/i,fn=function(t,e,n,r){if(t.parentNode!==e){var i,o,s=t.style;if(e===q){for(i in t._stOrig=s.cssText,o=pe(t))+i||cn.test(i)||!o[i]||"string"!=typeof s[i]||"0"===i||(s[i]=o[i]);s.top=n,s.left=r}else s.cssText=t._stOrig;U.core.getCache(t).uncache=1,e.appendChild(t)}},hn=function(t,e,n){var r=e,i=r;return function(e){var o=Math.round(t());return o!==r&&o!==i&&Math.abs(o-r)>3&&Math.abs(o-i)>3&&(e=o,n&&n()),i=r,r=e,e}},pn=function(t,e,n){var r={};r[e.p]="+="+n,U.set(t,r)},dn=function(t,e){var n=V(t,e),r="_scroll"+e.p2,i=function e(i,o,s,a,u){var l=e.tween,c=o.onComplete,f={};s=s||n();var h=hn(n,s,(function(){l.kill(),e.tween=0}));return u=a&&u||0,a=a||i-s,l&&l.kill(),o[r]=i,o.modifiers=f,f[r]=function(){return h(s+a*l.ratio+u*l.ratio*l.ratio)},o.onUpdate=function(){_.cache++,Qe()},o.onComplete=function(){e.tween=0,c&&c.call(l)},l=e.tween=U.to(t,o)};return t[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Te(t,"wheel",n.wheelHandler),mn.isTouch&&Te(t,"touchmove",n.wheelHandler),i},mn=function(){function t(e,n){W||t.register(U)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),mt(this),this.init(e,n)}return t.prototype.init=function(e,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Ct){var r,i,o,s,a,u,l,c,f,h,p,d,m,v,g,y,b,w,T,k,P,S,C,A,M,O,j,B,F,I,z,N,W,X,G,J,nt,it,ot,st=e=me(Yt(e)||qt(e)||e.nodeType?{trigger:e}:e,Se),lt=st.onUpdate,ct=st.toggleClass,ft=st.id,ht=st.onToggle,pt=st.onRefresh,dt=st.scrub,mt=st.trigger,vt=st.pin,gt=st.pinSpacing,yt=st.invalidateOnRefresh,xt=st.anticipatePin,wt=st.onScrubComplete,Pt=st.onSnapComplete,Ot=st.once,Rt=st.snap,Dt=st.pinReparent,jt=st.pinSpacer,Bt=st.containerAnimation,It=st.fastScrollEnd,zt=st.preventOverlaps,$t=e.horizontal||e.containerAnimation&&!1!==e.horizontal?R:D,Qt=!dt&&0!==dt,Jt=L(e.scroller||$),te=U.core.getCache(Jt),ee=Ft(Jt),ye="fixed"===("pinType"in e?e.pinType:E(Jt,"pinType")||ee&&"fixed"),we=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],ke=Qt&&e.toggleActions.split(" "),Ce="markers"in e?e.markers:Se.markers,Oe=ee?0:parseFloat(pe(Jt)["border"+$t.p2+ce])||0,Le=this,je=e.onRefreshInit&&function(){return e.onRefreshInit(Le)},Fe=Nt(Jt,ee,$t),Ie=Ut(Jt,ee),Ne=0,Ue=0,We=0,$e=V(Jt,$t);if(Le._startClamp=Le._endClamp=!1,Le._dir=$t,xt*=45,Le.scroller=Jt,Le.scroll=Bt?Bt.time.bind(Bt):$e,s=$e(),Le.vars=e,n=n||e.animation,"refreshPriority"in e&&(at=1,-9999===e.refreshPriority&&(Tt=Le)),te.tweenScroll=te.tweenScroll||{top:dn(Jt,D),left:dn(Jt,R)},Le.tweenTo=r=te.tweenScroll[$t.p],Le.scrubDuration=function(t){(W=qt(t)&&t)?N?N.duration(t):N=U.to(n,{ease:"expo",totalProgress:"+=0",duration:W,paused:!0,onComplete:function(){return wt&&wt(Le)}}):(N&&N.progress(1).kill(),N=0)},n&&(n.vars.lazy=!1,n._initted&&!Le.isReverted||!1!==n.vars.immediateRender&&!1!==e.immediateRender&&n.duration()&&n.render(0,!0,!0),Le.animation=n.pause(),n.scrollTrigger=Le,Le.scrubDuration(dt),I=0,ft||(ft=n.vars.id)),Rt&&(Xt(Rt)&&!Rt.push||(Rt={snapTo:Rt}),"scrollBehavior"in q.style&&U.set(ee?[q,H]:Jt,{scrollBehavior:"auto"}),_.forEach((function(t){return Ht(t)&&t.target===(ee?Y.scrollingElement||H:Jt)&&(t.smooth=!1)})),o=Ht(Rt.snapTo)?Rt.snapTo:"labels"===Rt.snapTo?_e(n):"labelsDirectional"===Rt.snapTo?be(n):!1!==Rt.directional?function(t,e){return xe(Rt.snapTo)(t,kt()-Ue<500?0:e.direction)}:U.utils.snap(Rt.snapTo),X=Rt.duration||{min:.1,max:2},X=Xt(X)?K(X.min,X.max):K(X,X),G=U.delayedCall(Rt.delay||W/2||.1,(function(){var t=$e(),e=kt()-Ue<500,i=r.tween;if(!(e||Math.abs(Le.getVelocity())<10)||i||et||Ne===t)Le.isActive&&Ne!==t&&G.restart(!0);else{var s=(t-u)/v,a=n&&!Qt?n.totalProgress():s,c=e?0:(a-z)/(kt()-Q)*1e3||0,f=U.utils.clamp(-s,1-s,Kt(c/2)*c/.185),h=s+(!1===Rt.inertia?0:f),p=K(0,1,o(h,Le)),d=Math.round(u+p*v),m=Rt,g=m.onStart,y=m.onInterrupt,_=m.onComplete;if(t<=l&&t>=u&&d!==t){if(i&&!i._initted&&i.data<=Kt(d-t))return;!1===Rt.inertia&&(f=p-s),r(d,{duration:X(Kt(.185*Math.max(Kt(h-a),Kt(p-a))/c/.05||0)),ease:Rt.ease||"power3",data:Kt(d-t),onInterrupt:function(){return G.restart(!0)&&y&&y(Le)},onComplete:function(){Le.update(),Ne=$e(),I=z=n&&!Qt?n.totalProgress():Le.progress,Pt&&Pt(Le),_&&_(Le)}},t,f*v,d-t-f*v),g&&g(Le,r.tween)}}})).pause()),ft&&(De[ft]=Le),(ot=(mt=Le.trigger=L(mt||!0!==vt&&vt))&&mt._gsap&&mt._gsap.stRevert)&&(ot=ot(Le)),vt=!0===vt?mt:L(vt),Yt(ct)&&(ct={targets:mt,className:ct}),vt&&(!1===gt||gt===le||(gt=!(!gt&&vt.parentNode&&vt.parentNode.style&&"flex"===pe(vt.parentNode).display)&&ue),Le.pin=vt,(i=U.core.getCache(vt)).spacer?g=i.pinState:(jt&&((jt=L(jt))&&!jt.nodeType&&(jt=jt.current||jt.nativeElement),i.spacerIsNative=!!jt,jt&&(i.spacerState=sn(jt))),i.spacer=w=jt||Y.createElement("div"),w.classList.add("pin-spacer"),ft&&w.classList.add("pin-spacer-"+ft),i.pinState=g=sn(vt)),!1!==e.force3D&&U.set(vt,{force3D:!0}),Le.spacer=w=i.spacer,F=pe(vt),A=F[gt+$t.os2],k=U.getProperty(vt),P=U.quickSetter(vt,$t.a,he),nn(vt,w,F),b=sn(vt)),Ce){d=Xt(Ce)?me(Ce,Pe):Pe,h=Me("scroller-start",ft,Jt,$t,d,0),p=Me("scroller-end",ft,Jt,$t,d,0,h),T=h["offset"+$t.op.d2];var Ye=L(E(Jt,"content")||Jt);c=this.markerStart=Me("start",ft,Ye,$t,d,T,0,Bt),f=this.markerEnd=Me("end",ft,Ye,$t,d,T,0,Bt),Bt&&(it=U.quickSetter([c,f],$t.a,he)),ye||x.length&&!0===E(Jt,"fixedMarkers")||(de(ee?q:Jt),U.set([h,p],{force3D:!0}),O=U.quickSetter(h,$t.a,he),B=U.quickSetter(p,$t.a,he))}if(Bt){var He=Bt.vars.onUpdate,Xe=Bt.vars.onUpdateParams;Bt.eventCallback("onUpdate",(function(){Le.update(0,0,1),He&&He.apply(Bt,Xe||[])}))}if(Le.previous=function(){return Re[Re.indexOf(Le)-1]},Le.next=function(){return Re[Re.indexOf(Le)+1]},Le.revert=function(t,e){if(!e)return Le.kill(!0);var r=!1!==t||!Le.enabled,i=tt;r!==Le.isReverted&&(r&&(J=Math.max($e(),Le.scroll.rec||0),We=Le.progress,nt=n&&n.progress()),c&&[c,f,h,p].forEach((function(t){return t.style.display=r?"none":"block"})),r&&(tt=Le,Le.update(r)),!vt||Dt&&Le.isActive||(r?en(vt,w,g):nn(vt,w,pe(vt),M)),r||Le.update(r),tt=i,Le.isReverted=r)},Le.refresh=function(i,o,d,_){if(!tt&&Le.enabled||o)if(vt&&i&&St)Te(t,"scrollEnd",ze);else{!bt&&je&&je(Le),tt=Le,r.tween&&!d&&(r.tween.kill(),r.tween=0),N&&N.pause(),yt&&n&&n.revert({kill:!1}).invalidate(),Le.isReverted||Le.revert(!0,!0),Le._subPinOffset=!1;var x,T,E,P,A,O,B,F,I,z,W,$,X,Z=Fe(),K=Ie(),Q=Bt?Bt.duration():Wt(Jt,$t),et=v<=.01,rt=0,it=_||0,ot=Xt(d)?d.end:e.end,st=e.endTrigger||mt,at=Xt(d)?d.start:e.start||(0!==e.start&&mt?vt?"0 0":"0 100%":0),lt=Le.pinnedContainer=e.pinnedContainer&&L(e.pinnedContainer,Le),ct=mt&&Math.max(0,Re.indexOf(Le))||0,ft=ct;for(Ce&&Xt(d)&&($=U.getProperty(h,$t.p),X=U.getProperty(p,$t.p));ft--;)(O=Re[ft]).end||O.refresh(0,1)||(tt=Le),!(B=O.pin)||B!==mt&&B!==vt&&B!==lt||O.isReverted||(z||(z=[]),z.unshift(O),O.revert(!0,!0)),O!==Re[ft]&&(ct--,ft--);for(Ht(at)&&(at=at(Le)),at=At(at,"start",Le),u=ln(at,mt,Z,$t,$e(),c,h,Le,K,Oe,ye,Q,Bt,Le._startClamp&&"_startClamp")||(vt?-.001:0),Ht(ot)&&(ot=ot(Le)),Yt(ot)&&!ot.indexOf("+=")&&(~ot.indexOf(" ")?ot=(Yt(at)?at.split(" ")[0]:"")+ot:(rt=Ae(ot.substr(2),Z),ot=Yt(at)?at:(Bt?U.utils.mapRange(0,Bt.duration(),Bt.scrollTrigger.start,Bt.scrollTrigger.end,u):u)+rt,st=mt)),ot=At(ot,"end",Le),l=Math.max(u,ln(ot||(st?"100% 0":Q),st,Z,$t,$e()+rt,f,p,Le,K,Oe,ye,Q,Bt,Le._endClamp&&"_endClamp"))||-.001,rt=0,ft=ct;ft--;)(B=(O=Re[ft]).pin)&&O.start-O._pinPush<=u&&!Bt&&O.end>0&&(x=O.end-(Le._startClamp?Math.max(0,O.start):O.start),(B===mt&&O.start-O._pinPush<u||B===lt)&&isNaN(at)&&(rt+=x*(1-O.progress)),B===vt&&(it+=x));if(u+=rt,l+=rt,Le._startClamp&&(Le._startClamp+=rt),Le._endClamp&&!bt&&(Le._endClamp=l||-.001,l=Math.min(l,Wt(Jt,$t))),v=l-u||(u-=.01)&&.001,et&&(We=U.utils.clamp(0,1,U.utils.normalize(u,l,J))),Le._pinPush=it,c&&rt&&((x={})[$t.a]="+="+rt,lt&&(x[$t.p]="-="+$e()),U.set([c,f],x)),vt)x=pe(vt),P=$t===D,E=$e(),S=parseFloat(k($t.a))+it,!Q&&l>1&&(W={style:W=(ee?Y.scrollingElement||H:Jt).style,value:W["overflow"+$t.a.toUpperCase()]},ee&&"scroll"!==pe(q)["overflow"+$t.a.toUpperCase()]&&(W.style["overflow"+$t.a.toUpperCase()]="scroll")),nn(vt,w,x),b=sn(vt),T=ve(vt,!0),F=ye&&V(Jt,P?R:D)(),gt&&((M=[gt+$t.os2,v+it+he]).t=w,(ft=gt===ue?ge(vt,$t)+v+it:0)&&M.push($t.d,ft+he),on(M),lt&&Re.forEach((function(t){t.pin===lt&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)})),ye&&$e(J)),ye&&((A={top:T.top+(P?E-u:F)+he,left:T.left+(P?F:E-u)+he,boxSizing:"border-box",position:"fixed"})[ne]=A["max"+ce]=Math.ceil(T.width)+he,A[re]=A["max"+fe]=Math.ceil(T.height)+he,A[le]=A[le+se]=A[le+ie]=A[le+ae]=A[le+oe]="0",A[ue]=x[ue],A[ue+se]=x[ue+se],A[ue+ie]=x[ue+ie],A[ue+ae]=x[ue+ae],A[ue+oe]=x[ue+oe],y=an(g,A,Dt),bt&&$e(0)),n?(I=n._initted,ut(1),n.render(n.duration(),!0,!0),C=k($t.a)-S+v+it,j=Math.abs(v-C)>1,ye&&j&&y.splice(y.length-2,2),n.render(0,!0,!0),I||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),ut(0)):C=v,W&&(W.value?W.style["overflow"+$t.a.toUpperCase()]=W.value:W.style.removeProperty("overflow-"+$t.a));else if(mt&&$e()&&!Bt)for(T=mt.parentNode;T&&T!==q;)T._pinOffset&&(u-=T._pinOffset,l-=T._pinOffset),T=T.parentNode;z&&z.forEach((function(t){return t.revert(!1,!0)})),Le.start=u,Le.end=l,s=a=bt?J:$e(),Bt||bt||(s<J&&$e(J),Le.scroll.rec=0),Le.revert(!1,!0),Ue=kt(),G&&(Ne=-1,G.restart(!0)),tt=0,n&&Qt&&(n._initted||nt)&&n.progress()!==nt&&n.progress(nt||0,!0).render(n.time(),!0,!0),(et||We!==Le.progress||Bt)&&(n&&!Qt&&n.totalProgress(Bt&&u<-.001&&!We?U.utils.normalize(u,l,0):We,!0),Le.progress=et||(s-u)/v===We?0:We),vt&&gt&&(w._pinOffset=Math.round(Le.progress*C)),N&&N.invalidate(),isNaN($)||($-=U.getProperty(h,$t.p),X-=U.getProperty(p,$t.p),pn(h,$t,$),pn(c,$t,$-(_||0)),pn(p,$t,X),pn(f,$t,X-(_||0))),et&&!bt&&Le.update(),!pt||bt||m||(m=!0,pt(Le),m=!1)}},Le.getVelocity=function(){return($e()-a)/(kt()-Q)*1e3||0},Le.endAnimation=function(){Gt(Le.callbackAnimation),n&&(N?N.progress(1):n.paused()?Qt||Gt(n,Le.direction<0,1):Gt(n,n.reversed()))},Le.labelToScroll=function(t){return n&&n.labels&&(u||Le.refresh()||u)+n.labels[t]/n.duration()*v||0},Le.getTrailing=function(t){var e=Re.indexOf(Le),n=Le.direction>0?Re.slice(0,e).reverse():Re.slice(e+1);return(Yt(t)?n.filter((function(e){return e.vars.preventOverlaps===t})):n).filter((function(t){return Le.direction>0?t.end<=u:t.start>=l}))},Le.update=function(t,e,i){if(!Bt||i||t){var o,c,f,p,d,m,g,_=!0===bt?J:Le.scroll(),x=t?0:(_-u)/v,T=x<0?0:x>1?1:x||0,E=Le.progress;if(e&&(a=s,s=Bt?$e():_,Rt&&(z=I,I=n&&!Qt?n.totalProgress():T)),xt&&!T&&vt&&!tt&&!Et&&St&&u<_+(_-a)/(kt()-Q)*xt&&(T=1e-4),T!==E&&Le.enabled){if(p=(d=(o=Le.isActive=!!T&&T<1)!=(!!E&&E<1))||!!T!=!!E,Le.direction=T>E?1:-1,Le.progress=T,p&&!tt&&(c=T&&!E?0:1===T?1:1===E?2:3,Qt&&(f=!d&&"none"!==ke[c+1]&&ke[c+1]||ke[c],g=n&&("complete"===f||"reset"===f||f in n))),zt&&(d||g)&&(g||dt||!n)&&(Ht(zt)?zt(Le):Le.getTrailing(zt).forEach((function(t){return t.endAnimation()}))),Qt||(!N||tt||Et?n&&n.totalProgress(T,!(!tt||!Ue&&!t)):(N._dp._time-N._start!==N._time&&N.render(N._dp._time-N._start),N.resetTo?N.resetTo("totalProgress",T,n._tTime/n._tDur):(N.vars.totalProgress=T,N.invalidate().restart()))),vt)if(t&&gt&&(w.style[gt+$t.os2]=A),ye){if(p){if(m=!t&&T>E&&l+1>_&&_+1>=Wt(Jt,$t),Dt)if(t||!o&&!m)fn(vt,w);else{var k=ve(vt,!0),M=_-u;fn(vt,q,k.top+($t===D?M:0)+he,k.left+($t===D?0:M)+he)}on(o||m?y:b),j&&T<1&&o||P(S+(1!==T||m?0:C))}}else P(Vt(S+C*T));Rt&&!r.tween&&!tt&&!Et&&G.restart(!0),ct&&(d||Ot&&T&&(T<1||!_t))&&Z(ct.targets).forEach((function(t){return t.classList[o||Ot?"add":"remove"](ct.className)})),lt&&!Qt&&!t&&lt(Le),p&&!tt?(Qt&&(g&&("complete"===f?n.pause().totalProgress(1):"reset"===f?n.restart(!0).pause():"restart"===f?n.restart(!0):n[f]()),lt&&lt(Le)),!d&&_t||(ht&&d&&Zt(Le,ht),we[c]&&Zt(Le,we[c]),Ot&&(1===T?Le.kill(!1,1):we[c]=0),d||we[c=1===T?1:3]&&Zt(Le,we[c])),It&&!o&&Math.abs(Le.getVelocity())>(qt(It)?It:2500)&&(Gt(Le.callbackAnimation),N?N.progress(1):Gt(n,"reverse"===f?1:!T,1))):Qt&&lt&&!tt&&lt(Le)}if(B){var R=Bt?_/Bt.duration()*(Bt._caScrollDist||0):_;O(R+(h._isFlipped?1:0)),B(R)}it&&it(-_/Bt.duration()*(Bt._caScrollDist||0))}},Le.enable=function(e,n){Le.enabled||(Le.enabled=!0,Te(Jt,"resize",Be),ee||Te(Jt,"scroll",Ve),je&&Te(t,"refreshInit",je),!1!==e&&(Le.progress=We=0,s=a=Ne=$e()),!1!==n&&Le.refresh())},Le.getTween=function(t){return t&&r?r.tween:N},Le.setPositions=function(t,e,n,r){if(Bt){var i=Bt.scrollTrigger,o=Bt.duration(),s=i.end-i.start;t=i.start+s*t/o,e=i.start+s*e/o}Le.refresh(!1,!1,{start:Mt(t,n&&!!Le._startClamp),end:Mt(e,n&&!!Le._endClamp)},r),Le.update()},Le.adjustPinSpacing=function(t){if(M&&t){var e=M.indexOf($t.d)+1;M[e]=parseFloat(M[e])+t+he,M[1]=parseFloat(M[1])+t+he,on(M)}},Le.disable=function(e,n){if(Le.enabled&&(!1!==e&&Le.revert(!0,!0),Le.enabled=Le.isActive=!1,n||N&&N.pause(),J=0,i&&(i.uncache=1),je&&Ee(t,"refreshInit",je),G&&(G.pause(),r.tween&&r.tween.kill()&&(r.tween=0)),!ee)){for(var o=Re.length;o--;)if(Re[o].scroller===Jt&&Re[o]!==Le)return;Ee(Jt,"resize",Be),ee||Ee(Jt,"scroll",Ve)}},Le.kill=function(t,r){Le.disable(t,r),N&&!r&&N.kill(),ft&&delete De[ft];var o=Re.indexOf(Le);o>=0&&Re.splice(o,1),o===rt&&Ke>0&&rt--,o=0,Re.forEach((function(t){return t.scroller===Le.scroller&&(o=1)})),o||bt||(Le.scroll.rec=0),n&&(n.scrollTrigger=null,t&&n.revert({kill:!1}),r||n.kill()),c&&[c,f,h,p].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),Tt===Le&&(Tt=0),vt&&(i&&(i.uncache=1),o=0,Re.forEach((function(t){return t.pin===vt&&o++})),o||(i.spacer=0)),e.onKill&&e.onKill(Le)},Re.push(Le),Le.enable(!1,!1),ot&&ot(Le),n&&n.add&&!v){var Ge=Le.update;Le.update=function(){Le.update=Ge,u||l||Le.refresh()},U.delayedCall(.01,Le.update),v=.01,u=l=0}else Le.refresh();vt&&qe()}else this.update=this.refresh=this.kill=Lt},t.register=function(e){return W||(U=e||Bt(),jt()&&window.document&&t.enable(),W=Ct),W},t.defaults=function(t){if(t)for(var e in t)Se[e]=t[e];return Se},t.disable=function(t,e){Ct=0,Re.forEach((function(n){return n[e?"kill":"disable"](t)})),Ee($,"wheel",Ve),Ee(Y,"scroll",Ve),clearInterval(J),Ee(Y,"touchcancel",Lt),Ee(q,"touchstart",Lt),we(Ee,Y,"pointerdown,touchstart,mousedown",Rt),we(Ee,Y,"pointerup,touchend,mouseup",Dt),G.kill(),$t(Ee);for(var n=0;n<_.length;n+=3)ke(Ee,_[n],_[n+1]),ke(Ee,_[n],_[n+2])},t.enable=function(){if($=window,Y=document,H=Y.documentElement,q=Y.body,U&&(Z=U.utils.toArray,K=U.utils.clamp,mt=U.core.context||Lt,ut=U.core.suppressOverwrites||Lt,vt=$.history.scrollRestoration||"auto",Ze=$.pageYOffset,U.core.globals("ScrollTrigger",t),q)){Ct=1,(gt=document.createElement("div")).style.height="100vh",gt.style.position="absolute",Xe(),Ot(),N.register(U),t.isTouch=N.isTouch,dt=N.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Te($,"wheel",Ve),X=[$,Y,H,q],U.matchMedia?(t.matchMedia=function(t){var e,n=U.matchMedia();for(e in t)n.add(e,t[e]);return n},U.addEventListener("matchMediaInit",(function(){return $e()})),U.addEventListener("matchMediaRevert",(function(){return We()})),U.addEventListener("matchMedia",(function(){Ge(0,1),Ne("matchMedia")})),U.matchMedia("(orientation: portrait)",(function(){return je(),je}))):console.warn("Requires GSAP 3.11.0 or later"),je(),Te(Y,"scroll",Ve);var e,n,r=q.style,i=r.borderTopStyle,o=U.core.Animation.prototype;for(o.revert||Object.defineProperty(o,"revert",{value:function(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",e=ve(q),D.m=Math.round(e.top+D.sc())||0,R.m=Math.round(e.left+R.sc())||0,i?r.borderTopStyle=i:r.removeProperty("border-top-style"),J=setInterval(Le,250),U.delayedCall(.5,(function(){return Et=0})),Te(Y,"touchcancel",Lt),Te(q,"touchstart",Lt),we(Te,Y,"pointerdown,touchstart,mousedown",Rt),we(Te,Y,"pointerup,touchend,mouseup",Dt),nt=U.utils.checkPrefix("transform"),tn.push(nt),W=kt(),G=U.delayedCall(.2,Ge).pause(),st=[Y,"visibilitychange",function(){var t=$.innerWidth,e=$.innerHeight;Y.hidden?(it=t,ot=e):it===t&&ot===e||Be()},Y,"DOMContentLoaded",Ge,$,"load",Ge,$,"resize",Be],$t(Te),Re.forEach((function(t){return t.enable(0,1)})),n=0;n<_.length;n+=3)ke(Ee,_[n],_[n+1]),ke(Ee,_[n],_[n+2])}},t.config=function(e){"limitCallbacks"in e&&(_t=!!e.limitCallbacks);var n=e.syncInterval;n&&clearInterval(J)||(J=n)&&setInterval(Le,n),"ignoreMobileResize"in e&&(ft=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&($t(Ee)||$t(Te,e.autoRefreshEvents||"none"),lt=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var n=L(t),r=_.indexOf(n),i=Ft(n);~r&&_.splice(r,i?6:2),e&&(i?x.unshift($,e,q,e,H,e):x.unshift(n,e))},t.clearMatchMedia=function(t){Re.forEach((function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)}))},t.isInViewport=function(t,e,n){var r=(Yt(t)?L(t):t).getBoundingClientRect(),i=r[n?ne:re]*e||0;return n?r.right-i>0&&r.left+i<$.innerWidth:r.bottom-i>0&&r.top+i<$.innerHeight},t.positionInViewport=function(t,e,n){Yt(t)&&(t=L(t));var r=t.getBoundingClientRect(),i=r[n?ne:re],o=null==e?i/2:e in Ce?Ce[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return n?(r.left+o)/$.innerWidth:(r.top+o)/$.innerHeight},t.killAll=function(t){if(Re.slice(0).forEach((function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()})),!0!==t){var e=Fe.killAll||[];Fe={},e.forEach((function(t){return t()}))}},t}();mn.version="3.12.2",mn.saveStyles=function(t){return t?Z(t).forEach((function(t){if(t&&t.style){var e=Ue.indexOf(t);e>=0&&Ue.splice(e,5),Ue.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),U.core.getCache(t),mt())}})):Ue},mn.revert=function(t,e){return $e(!t,e)},mn.create=function(t,e){return new mn(t,e)},mn.refresh=function(t){return t?Be():(W||mn.register())&&Ge(!0)},mn.update=function(t){return++_.cache&&Qe(!0===t?2:0)},mn.clearScrollMemory=Ye,mn.maxScroll=function(t,e){return Wt(t,e?R:D)},mn.getScrollFunc=function(t,e){return V(L(t),e?R:D)},mn.getById=function(t){return De[t]},mn.getAll=function(){return Re.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},mn.isScrolling=function(){return!!St},mn.snapDirectional=xe,mn.addEventListener=function(t,e){var n=Fe[t]||(Fe[t]=[]);~n.indexOf(e)||n.push(e)},mn.removeEventListener=function(t,e){var n=Fe[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},mn.batch=function(t,e){var n,r=[],i={},o=e.interval||.016,s=e.batchMax||1e9,a=function(t,e){var n=[],r=[],i=U.delayedCall(o,(function(){e(n,r),n=[],r=[]})).pause();return function(t){n.length||i.restart(!0),n.push(t.trigger),r.push(t),s<=n.length&&i.progress(1)}};for(n in e)i[n]="on"===n.substr(0,2)&&Ht(e[n])&&"onRefreshInit"!==n?a(n,e[n]):e[n];return Ht(s)&&(s=s(),Te(mn,"refresh",(function(){return s=e.batchMax()}))),Z(t).forEach((function(t){var e={};for(n in i)e[n]=i[n];e.trigger=t,r.push(mn.create(e))})),r};var vn,gn=function(t,e,n,r){return e>r?t(r):e<0&&t(0),n>r?(r-e)/(n-e):n<0?e/(e-n):1},yn=function t(e,n){!0===n?e.style.removeProperty("touch-action"):e.style.touchAction=!0===n?"auto":n?"pan-"+n+(N.isTouch?" pinch-zoom":""):"none",e===H&&t(q,n)},_n={auto:1,scroll:1},xn=function(t){var e,n=t.event,r=t.target,i=t.axis,o=(n.changedTouches?n.changedTouches[0]:n).target,s=o._gsap||U.core.getCache(o),a=kt();if(!s._isScrollT||a-s._isScrollT>2e3){for(;o&&o!==q&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!_n[(e=pe(o)).overflowY]&&!_n[e.overflowX]);)o=o.parentNode;s._isScroll=o&&o!==r&&!Ft(o)&&(_n[(e=pe(o)).overflowY]||_n[e.overflowX]),s._isScrollT=a}(s._isScroll||"x"===i)&&(n.stopPropagation(),n._gsapAllow=!0)},bn=function(t,e,n,r){return N.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:r=r&&xn,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&Te(Y,N.eventTypes[0],Tn,!1,!0)},onDisable:function(){return Ee(Y,N.eventTypes[0],Tn,!0)}})},wn=/(input|label|select|textarea)/i,Tn=function(t){var e=wn.test(t.target.tagName);(e||vn)&&(t._gsapAllow=!0,vn=e)},En=function(t){Xt(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,n,r,i,o,s,a,u,l=t,c=l.normalizeScrollX,f=l.momentum,h=l.allowNestedScroll,p=l.onRelease,d=L(t.target)||H,m=U.core.globals().ScrollSmoother,v=m&&m.get(),g=dt&&(t.content&&L(t.content)||v&&!1!==t.content&&!v.smooth()&&v.content()),y=V(d,D),x=V(d,R),b=1,w=(N.isTouch&&$.visualViewport?$.visualViewport.scale*$.visualViewport.width:$.outerWidth)/$.innerWidth,T=0,E=Ht(f)?function(){return f(e)}:function(){return f||2.8},k=bn(d,t.type,!0,h),P=function(){return i=!1},S=Lt,C=Lt,A=function(){n=Wt(d,D),C=K(dt?1:0,n),c&&(S=K(0,Wt(d,R))),r=He},M=function(){g._gsap.y=Vt(parseFloat(g._gsap.y)+y.offset)+"px",g.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(g._gsap.y)+", 0, 1)",y.offset=y.cacheID=0},O=function(){if(i){requestAnimationFrame(P);var t=Vt(e.deltaY/2),n=C(y.v-t);if(g&&n!==y.v+y.offset){y.offset=n-y.v;var r=Vt((parseFloat(g&&g._gsap.y)||0)-y.offset);g.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",g._gsap.y=r+"px",y.cacheID=_.cache,Qe()}return!0}y.offset&&M(),i=!0},j=function(){A(),o.isActive()&&o.vars.scrollY>n&&(y()>n?o.progress(1)&&y(n):o.resetTo("scrollY",n))};return g&&U.set(g,{y:"+=0"}),t.ignoreCheck=function(t){return dt&&"touchmove"===t.type&&O()||b>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=b;b=Vt(($.visualViewport&&$.visualViewport.scale||1)/w),o.pause(),t!==b&&yn(d,b>1.01||!c&&"x"),s=x(),a=y(),A(),r=He},t.onRelease=t.onGestureStart=function(t,e){if(y.offset&&M(),e){_.cache++;var r,i,s=E();c&&(i=(r=x())+.05*s*-t.velocityX/.227,s*=gn(x,r,i,Wt(d,R)),o.vars.scrollX=S(i)),i=(r=y())+.05*s*-t.velocityY/.227,s*=gn(y,r,i,Wt(d,D)),o.vars.scrollY=C(i),o.invalidate().duration(s).play(.01),(dt&&o.vars.scrollY>=n||r>=n-1)&&U.to({},{onUpdate:j,duration:s})}else u.restart(!0);p&&p(t)},t.onWheel=function(){o._ts&&o.pause(),kt()-T>1e3&&(r=0,T=kt())},t.onChange=function(t,e,n,i,o){if(He!==r&&A(),e&&c&&x(S(i[2]===e?s+(t.startX-t.x):x()+e-i[1])),n){y.offset&&M();var u=o[2]===n,l=u?a+t.startY-t.y:y()+n-o[1],f=C(l);u&&l!==f&&(a+=f-l),y(f)}(n||e)&&Qe()},t.onEnable=function(){yn(d,!c&&"x"),mn.addEventListener("refresh",j),Te($,"resize",j),y.smooth&&(y.target.style.scrollBehavior="auto",y.smooth=x.smooth=!1),k.enable()},t.onDisable=function(){yn(d,!0),Ee($,"resize",j),mn.removeEventListener("refresh",j),k.kill()},t.lockAxis=!1!==t.lockAxis,(e=new N(t)).iOS=dt,dt&&!y()&&y(1),dt&&U.ticker.add(Lt),u=e._dc,o=U.to(e,{ease:"power4",paused:!0,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:hn(y,y(),(function(){return o.pause()}))},onUpdate:Qe,onComplete:u.vars.onComplete}),e};mn.sort=function(t){return Re.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+t.start-(e.start+-1e6*(e.vars.refreshPriority||0))})},mn.observe=function(t){return new N(t)},mn.normalizeScroll=function(t){if(void 0===t)return ct;if(!0===t&&ct)return ct.enable();if(!1===t)return ct&&ct.kill();var e=t instanceof N?t:En(t);return ct&&ct.target===e.target&&ct.kill(),Ft(e.target)&&(ct=e),e},mn.core={_getVelocityProp:j,_inputObserver:bn,_scrollers:_,_proxies:x,bridge:{ss:function(){St||Ne("scrollStart"),St=kt()},ref:function(){return tt}}},Bt()&&U.registerPlugin(mn),t.ScrollTrigger=mn,t.default=mn,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete window.default}(ff.exports),(()=>{function t(...t){const e=t.length;for(let n=0;n<e;n++){const e=t[n];1===e.nodeType||11===e.nodeType?this.appendChild(e):this.appendChild(document.createTextNode(String(e)))}}function e(...t){for(;this.lastChild;)this.removeChild(this.lastChild);t.length&&this.append(...t)}function n(...t){const e=this.parentNode;let n=t.length;if(e)for(n||e.removeChild(this);n--;){let r=t[n];"object"!=typeof r?r=this.ownerDocument.createTextNode(r):r.parentNode&&r.parentNode.removeChild(r),n?e.insertBefore(this.previousSibling,r):e.replaceChild(r,this)}}"undefined"!=typeof Element&&(Element.prototype.append||(Element.prototype.append=t,DocumentFragment.prototype.append=t),Element.prototype.replaceChildren||(Element.prototype.replaceChildren=e,DocumentFragment.prototype.replaceChildren=e),Element.prototype.replaceWith||(Element.prototype.replaceWith=n,DocumentFragment.prototype.replaceWith=n))})();const{entries:bf,keys:wf,values:Tf}=Object,Ef="_splittype",kf={};let Pf=0;function Sf(t,e,n){if(!gf(t))return console.warn("[data.set] owner is not an object"),null;const r=t[Ef]||(t[Ef]=++Pf),i=kf[r]||(kf[r]={});return void 0===n?e&&Object.getPrototypeOf(e)===Object.prototype&&(kf[r]={...i,...e}):void 0!==e&&(i[e]=n),n}function Cf(t,e){const n=gf(t)?t[Ef]:null,r=n&&kf[n]||{};return void 0===e?r:r[e]}function Af(t){const e=t&&t[Ef];e&&(delete t[e],delete kf[e])}const Mf="\\ud800-\\udfff",Of="\\u0300-\\u036f\\ufe20-\\ufe23",Rf="\\u20d0-\\u20f0",Df="\\ufe0e\\ufe0f",Lf=`[${Mf}]`,Vf=`[${Of}${Rf}]`,jf="\\ud83c[\\udffb-\\udfff]",Bf=`[^${Mf}]`,Ff="(?:\\ud83c[\\udde6-\\uddff]){2}",If="[\\ud800-\\udbff][\\udc00-\\udfff]",zf="\\u200d",Nf=`${`(?:${Vf}|${jf})`}?`,Uf=`[${Df}]?`,Wf=Uf+Nf+("(?:"+zf+"(?:"+[Bf,Ff,If].join("|")+")"+Uf+Nf+")*"),$f=`(?:${[`${Bf}${Vf}?`,Vf,Ff,If,Lf].join("|")}\n)`,Yf=RegExp(`${jf}(?=${jf})|${$f}${Wf}`,"g"),Hf=RegExp(`[${[zf,Mf,Of,Rf,Df].join("")}]`);function qf(t){return Hf.test(t)}function Xf(t){return qf(t)?function(t){return t.match(Yf)||[]}(t):function(t){return t.split("")}(t)}function Gf(t,e=""){var n;return(t=null==(n=t)?"":String(n))&&pf(t)&&!e&&qf(t)?Xf(t):t.split(e)}function Zf(t,e){const n=document.createElement(t);return e?(Object.keys(e).forEach((t=>{const r=e[t],i=pf(r)?r.trim():r;null!==i&&""!==i&&("children"===t?n.append(..._f(i)):n.setAttribute(t,i))})),n):n}var Kf={splitClass:"",lineClass:"line",wordClass:"word",charClass:"char",types:["lines","words","chars"],absolute:!1,tagName:"div"};function Qf(t,e){const n=vf((e=hf(Kf,e)).types),r=e.tagName,i=t.nodeValue,o=document.createDocumentFragment();let s=[],a=[];return/^\s/.test(i)&&o.append(" "),s=function(t,e=" "){return(t?String(t):"").trim().replace(/\s+/g," ").split(e)}(i).reduce(((t,i,s,u)=>{let l,c;return n.chars&&(c=Gf(i).map((t=>{const n=Zf(r,{class:`${e.splitClass} ${e.charClass}`,style:"display: inline-block;",children:t});return Sf(n,"isChar",!0),a=[...a,n],n}))),n.words||n.lines?(l=Zf(r,{class:`${e.wordClass} ${e.splitClass}`,style:"display: inline-block; "+(n.words&&e.absolute?"position: relative;":""),children:n.chars?c:i}),Sf(l,{isWord:!0,isWordStart:!0,isWordEnd:!0}),o.appendChild(l)):c.forEach((t=>{o.appendChild(t)})),s<u.length-1&&o.append(" "),n.words?t.concat(l):t}),[]),/\s$/.test(i)&&o.append(" "),t.replaceWith(o),{words:s,chars:a}}function Jf(t,e){const n=t.nodeType,r={words:[],chars:[]};if(!/(1|3|11)/.test(n))return r;if(3===n&&/\S/.test(t.nodeValue))return Qf(t,e);const i=_f(t.childNodes);if(i.length&&(Sf(t,"isSplit",!0),!Cf(t).isRoot)){t.style.display="inline-block",t.style.position="relative";const e=t.nextSibling,n=t.previousSibling,r=t.textContent||"",i=e?e.textContent:" ",o=n?n.textContent:" ";Sf(t,{isWordEnd:/\s$/.test(r)||/^\s/.test(i),isWordStart:/^\s/.test(r)||/\s$/.test(o)})}return i.reduce(((t,n)=>{const{words:r,chars:i}=Jf(n,e);return{words:[...t.words,...r],chars:[...t.chars,...i]}}),r)}function th(t){Cf(t).isWord?(Af(t),t.replaceWith(...t.childNodes)):_f(t.children).forEach((t=>th(t)))}function eh(t,e,n){const r=vf(e.types),i=e.tagName,o=t.getElementsByTagName("*"),s=[];let a,u,l,c=[],f=null,h=[];const p=t.parentElement,d=t.nextElementSibling,m=document.createDocumentFragment(),v=window.getComputedStyle(t),g=v.textAlign,y=.2*parseFloat(v.fontSize);return e.absolute&&(l={left:t.offsetLeft,top:t.offsetTop,width:t.offsetWidth},u=t.offsetWidth,a=t.offsetHeight,Sf(t,{cssWidth:t.style.width,cssHeight:t.style.height})),_f(o).forEach((i=>{const o=i.parentElement===t,{width:a,height:u,top:l,left:h}=function(t,e,n,r){if(!n.absolute)return{top:e?t.offsetTop:null};const i=t.offsetParent,[o,s]=r;let a=0,u=0;if(i&&i!==document.body){const t=i.getBoundingClientRect();a=t.x+o,u=t.y+s}const{width:l,height:c,x:f,y:h}=t.getBoundingClientRect();return{width:l,height:c,top:h+s-u,left:f+o-a}}(i,o,e,n);/^br$/i.test(i.nodeName)||(r.lines&&o&&((null===f||l-f>=y)&&(f=l,s.push(c=[])),c.push(i)),e.absolute&&Sf(i,{top:l,left:h,width:a,height:u}))})),p&&p.removeChild(t),r.lines&&(h=s.map((t=>{const n=Zf(i,{class:`${e.splitClass} ${e.lineClass}`,style:`display: block; text-align: ${g}; width: 100%;`});Sf(n,"isLine",!0);const r={height:0,top:1e4};return m.appendChild(n),t.forEach(((t,e,i)=>{const{isWordEnd:o,top:s,height:a}=Cf(t),u=i[e+1];r.height=Math.max(r.height,a),r.top=Math.min(r.top,s),n.appendChild(t),o&&Cf(u).isWordStart&&n.append(" ")})),e.absolute&&Sf(n,{height:r.height,top:r.top}),n})),r.words||th(m),t.replaceChildren(m)),e.absolute&&(t.style.width=`${t.style.width||u}px`,t.style.height=`${a}px`,_f(o).forEach((t=>{const{isLine:e,top:n,left:r,width:i,height:o}=Cf(t),s=Cf(t.parentElement),a=!e&&s.isLine;t.style.top=`${a?n-s.top:n}px`,t.style.left=e?`${l.left}px`:r-(a?l.left:0)+"px",t.style.height=`${o}px`,t.style.width=e?`${l.width}px`:`${i}px`,t.style.position="absolute"}))),p&&(d?p.insertBefore(t,d):p.appendChild(t)),h}let nh=hf(Kf,{});class rh{static get data(){return kf}static get defaults(){return nh}static set defaults(t){nh=hf(nh,mf(t))}static setDefaults(t){return nh=hf(nh,mf(t)),Kf}static revert(t){xf(t).forEach((t=>{const{isSplit:e,html:n,cssWidth:r,cssHeight:i}=Cf(t);e&&(t.innerHTML=n,t.style.width=r||"",t.style.height=i||"",Af(t))}))}static create(t,e){return new rh(t,e)}constructor(t,e){this.isSplit=!1,this.settings=hf(nh,mf(e)),this.elements=xf(t),this.split()}split(t){this.revert(),this.elements.forEach((t=>{Sf(t,"html",t.innerHTML)})),this.lines=[],this.words=[],this.chars=[];const e=[window.pageXOffset,window.pageYOffset];void 0!==t&&(this.settings=hf(this.settings,mf(t)));const n=vf(this.settings.types);n.none||(this.elements.forEach((t=>{Sf(t,"isRoot",!0);const{words:e,chars:n}=Jf(t,this.settings);this.words=[...this.words,...e],this.chars=[...this.chars,...n]})),this.elements.forEach((t=>{if(n.lines||this.settings.absolute){const n=eh(t,this.settings,e);this.lines=[...this.lines,...n]}})),this.isSplit=!0,window.scrollTo(e[0],e[1]),bf(kf).forEach((([t,{isRoot:e,isSplit:n}])=>{e&&n||(kf[t]=null,delete kf[t])})))}revert(){this.isSplit&&(this.lines=null,this.words=null,this.chars=null,this.isSplit=!1),rh.revert(this.elements)}}a(".spark-text-reveal {\n opacity: 0; }\n .spark-text-reveal__container {\n overflow: hidden; }\n .spark-text-reveal__content {\n transform: translate(0, 100%) rotate(10deg);\n transform-origin: left; }\n");var ih="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function oh(e){var n=t.useState(!1),r=n[0],i=n[1];return t.useEffect((function(){var t=window.matchMedia(e);function n(){i(t.matches)}return t.addEventListener("change",n,!1),n(),function(){return t.removeEventListener("change",n,!1)}}),[e]),r}var sh={exports:{}};
40
- /**
41
- * @license
42
- * Lodash <https://lodash.com/>
43
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
44
- * Released under MIT license <https://lodash.com/license>
45
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
46
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
47
- */!function(t,e){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",s=16,a=32,u=64,l=128,c=256,f=1/0,h=9007199254740991,p=NaN,d=4294967295,m=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",a],["partialRight",u],["rearg",c]],v="[object Arguments]",g="[object Array]",y="[object Boolean]",_="[object Date]",x="[object Error]",b="[object Function]",w="[object GeneratorFunction]",T="[object Map]",E="[object Number]",k="[object Object]",P="[object Promise]",S="[object RegExp]",C="[object Set]",A="[object String]",M="[object Symbol]",O="[object WeakMap]",R="[object ArrayBuffer]",D="[object DataView]",L="[object Float32Array]",V="[object Float64Array]",j="[object Int8Array]",B="[object Int16Array]",F="[object Int32Array]",I="[object Uint8Array]",z="[object Uint8ClampedArray]",N="[object Uint16Array]",U="[object Uint32Array]",W=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,X=RegExp(H.source),G=RegExp(q.source),Z=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tt=/^\w*$/,et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nt=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(nt.source),it=/^\s+/,ot=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,ut=/,? & /,lt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ct=/[()=,{}\[\]\/\s]/,ft=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,mt=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",Tt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Et="\\u2700-\\u27bf",kt="a-z\\xdf-\\xf6\\xf8-\\xff",Pt="A-Z\\xc0-\\xd6\\xd8-\\xde",St="\\ufe0e\\ufe0f",Ct="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",At="['’]",Mt="["+wt+"]",Ot="["+Ct+"]",Rt="["+Tt+"]",Dt="\\d+",Lt="["+Et+"]",Vt="["+kt+"]",jt="[^"+wt+Ct+Dt+Et+kt+Pt+"]",Bt="\\ud83c[\\udffb-\\udfff]",Ft="[^"+wt+"]",It="(?:\\ud83c[\\udde6-\\uddff]){2}",zt="[\\ud800-\\udbff][\\udc00-\\udfff]",Nt="["+Pt+"]",Ut="\\u200d",Wt="(?:"+Vt+"|"+jt+")",$t="(?:"+Nt+"|"+jt+")",Yt="(?:['’](?:d|ll|m|re|s|t|ve))?",Ht="(?:['’](?:D|LL|M|RE|S|T|VE))?",qt="(?:"+Rt+"|"+Bt+")"+"?",Xt="["+St+"]?",Gt=Xt+qt+("(?:"+Ut+"(?:"+[Ft,It,zt].join("|")+")"+Xt+qt+")*"),Zt="(?:"+[Lt,It,zt].join("|")+")"+Gt,Kt="(?:"+[Ft+Rt+"?",Rt,It,zt,Mt].join("|")+")",Qt=RegExp(At,"g"),Jt=RegExp(Rt,"g"),te=RegExp(Bt+"(?="+Bt+")|"+Kt+Gt,"g"),ee=RegExp([Nt+"?"+Vt+"+"+Yt+"(?="+[Ot,Nt,"$"].join("|")+")",$t+"+"+Ht+"(?="+[Ot,Nt+Wt,"$"].join("|")+")",Nt+"?"+Wt+"+"+Yt,Nt+"+"+Ht,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dt,Zt].join("|"),"g"),ne=RegExp("["+Ut+wt+Tt+St+"]"),re=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ie=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],oe=-1,se={};se[L]=se[V]=se[j]=se[B]=se[F]=se[I]=se[z]=se[N]=se[U]=!0,se[v]=se[g]=se[R]=se[y]=se[D]=se[_]=se[x]=se[b]=se[T]=se[E]=se[k]=se[S]=se[C]=se[A]=se[O]=!1;var ae={};ae[v]=ae[g]=ae[R]=ae[D]=ae[y]=ae[_]=ae[L]=ae[V]=ae[j]=ae[B]=ae[F]=ae[T]=ae[E]=ae[k]=ae[S]=ae[C]=ae[A]=ae[M]=ae[I]=ae[z]=ae[N]=ae[U]=!0,ae[x]=ae[b]=ae[O]=!1;var ue={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},le=parseFloat,ce=parseInt,fe="object"==typeof cf&&cf&&cf.Object===Object&&cf,he="object"==typeof self&&self&&self.Object===Object&&self,pe=fe||he||Function("return this")(),de=e&&!e.nodeType&&e,me=de&&t&&!t.nodeType&&t,ve=me&&me.exports===de,ge=ve&&fe.process,ye=function(){try{var t=me&&me.require&&me.require("util").types;return t||ge&&ge.binding&&ge.binding("util")}catch(t){}}(),_e=ye&&ye.isArrayBuffer,xe=ye&&ye.isDate,be=ye&&ye.isMap,we=ye&&ye.isRegExp,Te=ye&&ye.isSet,Ee=ye&&ye.isTypedArray;function ke(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Pe(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Ce(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ae(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Me(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function Oe(t,e){return!!(null==t?0:t.length)&&Ne(t,e,0)>-1}function Re(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function De(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Le(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Ve(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function je(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Be(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var Fe=Ye("length");function Ie(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function ze(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Ne(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):ze(t,We,n)}function Ue(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function We(t){return t!=t}function $e(t,e){var n=null==t?0:t.length;return n?Xe(t,e)/n:p}function Ye(t){return function(e){return null==e?n:e[t]}}function He(t){return function(e){return null==t?n:t[e]}}function qe(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Xe(t,e){for(var r,i=-1,o=t.length;++i<o;){var s=e(t[i]);s!==n&&(r=r===n?s:r+s)}return r}function Ge(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ze(t){return t?t.slice(0,dn(t)+1).replace(it,""):t}function Ke(t){return function(e){return t(e)}}function Qe(t,e){return De(e,(function(e){return t[e]}))}function Je(t,e){return t.has(e)}function tn(t,e){for(var n=-1,r=t.length;++n<r&&Ne(e,t[n],0)>-1;);return n}function en(t,e){for(var n=t.length;n--&&Ne(e,t[n],0)>-1;);return n}var nn=He({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),rn=He({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function on(t){return"\\"+ue[t]}function sn(t){return ne.test(t)}function an(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function un(t,e){return function(n){return t(e(n))}}function ln(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var a=t[n];a!==e&&a!==o||(t[n]=o,s[i++]=n)}return s}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function fn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function hn(t){return sn(t)?function(t){var e=te.lastIndex=0;for(;te.test(t);)++e;return e}(t):Fe(t)}function pn(t){return sn(t)?function(t){return t.match(te)||[]}(t):function(t){return t.split("")}(t)}function dn(t){for(var e=t.length;e--&&ot.test(t.charAt(e)););return e}var mn=He({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vn=function t(e){var ot=(e=null==e?pe:vn.defaults(pe.Object(),e,vn.pick(pe,ie))).Array,wt=e.Date,Tt=e.Error,Et=e.Function,kt=e.Math,Pt=e.Object,St=e.RegExp,Ct=e.String,At=e.TypeError,Mt=ot.prototype,Ot=Et.prototype,Rt=Pt.prototype,Dt=e["__core-js_shared__"],Lt=Ot.toString,Vt=Rt.hasOwnProperty,jt=0,Bt=function(){var t=/[^.]+$/.exec(Dt&&Dt.keys&&Dt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ft=Rt.toString,It=Lt.call(Pt),zt=pe._,Nt=St("^"+Lt.call(Vt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ut=ve?e.Buffer:n,Wt=e.Symbol,$t=e.Uint8Array,Yt=Ut?Ut.allocUnsafe:n,Ht=un(Pt.getPrototypeOf,Pt),qt=Pt.create,Xt=Rt.propertyIsEnumerable,Gt=Mt.splice,Zt=Wt?Wt.isConcatSpreadable:n,Kt=Wt?Wt.iterator:n,te=Wt?Wt.toStringTag:n,ne=function(){try{var t=fo(Pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ue=e.clearTimeout!==pe.clearTimeout&&e.clearTimeout,fe=wt&&wt.now!==pe.Date.now&&wt.now,he=e.setTimeout!==pe.setTimeout&&e.setTimeout,de=kt.ceil,me=kt.floor,ge=Pt.getOwnPropertySymbols,ye=Ut?Ut.isBuffer:n,Fe=e.isFinite,He=Mt.join,gn=un(Pt.keys,Pt),yn=kt.max,_n=kt.min,xn=wt.now,bn=e.parseInt,wn=kt.random,Tn=Mt.reverse,En=fo(e,"DataView"),kn=fo(e,"Map"),Pn=fo(e,"Promise"),Sn=fo(e,"Set"),Cn=fo(e,"WeakMap"),An=fo(Pt,"create"),Mn=Cn&&new Cn,On={},Rn=Fo(En),Dn=Fo(kn),Ln=Fo(Pn),Vn=Fo(Sn),jn=Fo(Cn),Bn=Wt?Wt.prototype:n,Fn=Bn?Bn.valueOf:n,In=Bn?Bn.toString:n;function zn(t){if(ea(t)&&!$s(t)&&!(t instanceof $n)){if(t instanceof Wn)return t;if(Vt.call(t,"__wrapped__"))return Io(t)}return new Wn(t)}var Nn=function(){function t(){}return function(e){if(!ta(e))return{};if(qt)return qt(e);t.prototype=e;var r=new t;return t.prototype=n,r}}();function Un(){}function Wn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=n}function $n(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Yn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function qn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Xn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new qn;++e<n;)this.add(t[e])}function Gn(t){var e=this.__data__=new Hn(t);this.size=e.size}function Zn(t,e){var n=$s(t),r=!n&&Ws(t),i=!n&&!r&&Xs(t),o=!n&&!r&&!i&&la(t),s=n||r||i||o,a=s?Ge(t.length,Ct):[],u=a.length;for(var l in t)!e&&!Vt.call(t,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||_o(l,u))||a.push(l);return a}function Kn(t){var e=t.length;return e?t[Xr(0,e-1)]:n}function Qn(t,e){return Vo(Ai(t),ar(e,0,t.length))}function Jn(t){return Vo(Ai(t))}function tr(t,e,r){(r!==n&&!zs(t[e],r)||r===n&&!(e in t))&&or(t,e,r)}function er(t,e,r){var i=t[e];Vt.call(t,e)&&zs(i,r)&&(r!==n||e in t)||or(t,e,r)}function nr(t,e){for(var n=t.length;n--;)if(zs(t[n][0],e))return n;return-1}function rr(t,e,n,r){return hr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function ir(t,e){return t&&Mi(e,Oa(e),t)}function or(t,e,n){"__proto__"==e&&ne?ne(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function sr(t,e){for(var r=-1,i=e.length,o=ot(i),s=null==t;++r<i;)o[r]=s?n:Pa(t,e[r]);return o}function ar(t,e,r){return t==t&&(r!==n&&(t=t<=r?t:r),e!==n&&(t=t>=e?t:e)),t}function ur(t,e,r,i,o,s){var a,u=1&e,l=2&e,c=4&e;if(r&&(a=o?r(t,i,o,s):r(t)),a!==n)return a;if(!ta(t))return t;var f=$s(t);if(f){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Vt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!u)return Ai(t,a)}else{var h=mo(t),p=h==b||h==w;if(Xs(t))return Ti(t,u);if(h==k||h==v||p&&!o){if(a=l||p?{}:go(t),!u)return l?function(t,e){return Mi(t,po(t),e)}(t,function(t,e){return t&&Mi(e,Ra(e),t)}(a,t)):function(t,e){return Mi(t,ho(t),e)}(t,ir(a,t))}else{if(!ae[h])return o?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case R:return Ei(t);case y:case _:return new r(+t);case D:return function(t,e){var n=e?Ei(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case L:case V:case j:case B:case F:case I:case z:case N:case U:return ki(t,n);case T:return new r;case E:case A:return new r(t);case S:return function(t){var e=new t.constructor(t.source,pt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case C:return new r;case M:return i=t,Fn?Pt(Fn.call(i)):{}}var i}(t,h,u)}}s||(s=new Gn);var d=s.get(t);if(d)return d;s.set(t,a),sa(t)?t.forEach((function(n){a.add(ur(n,e,r,n,t,s))})):na(t)&&t.forEach((function(n,i){a.set(i,ur(n,e,r,i,t,s))}));var m=f?n:(c?l?io:ro:l?Ra:Oa)(t);return Se(m||t,(function(n,i){m&&(n=t[i=n]),er(a,i,ur(n,e,r,i,t,s))})),a}function lr(t,e,r){var i=r.length;if(null==t)return!i;for(t=Pt(t);i--;){var o=r[i],s=e[o],a=t[o];if(a===n&&!(o in t)||!s(a))return!1}return!0}function cr(t,e,i){if("function"!=typeof t)throw new At(r);return Oo((function(){t.apply(n,i)}),e)}function fr(t,e,n,r){var i=-1,o=Oe,s=!0,a=t.length,u=[],l=e.length;if(!a)return u;n&&(e=De(e,Ke(n))),r?(o=Re,s=!1):e.length>=200&&(o=Je,s=!1,e=new Xn(e));t:for(;++i<a;){var c=t[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,s&&f==f){for(var h=l;h--;)if(e[h]===f)continue t;u.push(c)}else o(e,f,r)||u.push(c)}return u}zn.templateSettings={escape:Z,evaluate:K,interpolate:Q,variable:"",imports:{_:zn}},zn.prototype=Un.prototype,zn.prototype.constructor=zn,Wn.prototype=Nn(Un.prototype),Wn.prototype.constructor=Wn,$n.prototype=Nn(Un.prototype),$n.prototype.constructor=$n,Yn.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Yn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Yn.prototype.get=function(t){var e=this.__data__;if(An){var r=e[t];return r===i?n:r}return Vt.call(e,t)?e[t]:n},Yn.prototype.has=function(t){var e=this.__data__;return An?e[t]!==n:Vt.call(e,t)},Yn.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=An&&e===n?i:e,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(t){var e=this.__data__,n=nr(e,t);return!(n<0)&&(n==e.length-1?e.pop():Gt.call(e,n,1),--this.size,!0)},Hn.prototype.get=function(t){var e=this.__data__,r=nr(e,t);return r<0?n:e[r][1]},Hn.prototype.has=function(t){return nr(this.__data__,t)>-1},Hn.prototype.set=function(t,e){var n=this.__data__,r=nr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(kn||Hn),string:new Yn}},qn.prototype.delete=function(t){var e=lo(this,t).delete(t);return this.size-=e?1:0,e},qn.prototype.get=function(t){return lo(this,t).get(t)},qn.prototype.has=function(t){return lo(this,t).has(t)},qn.prototype.set=function(t,e){var n=lo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Xn.prototype.add=Xn.prototype.push=function(t){return this.__data__.set(t,i),this},Xn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Gn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Gn.prototype.get=function(t){return this.__data__.get(t)},Gn.prototype.has=function(t){return this.__data__.has(t)},Gn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!kn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(t,e),this.size=n.size,this};var hr=Di(xr),pr=Di(br,!0);function dr(t,e){var n=!0;return hr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function mr(t,e,r){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=e(s);if(null!=a&&(u===n?a==a&&!ua(a):r(a,u)))var u=a,l=s}return l}function vr(t,e){var n=[];return hr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function gr(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=yo),i||(i=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?gr(a,e-1,n,r,i):Le(i,a):r||(i[i.length]=a)}return i}var yr=Li(),_r=Li(!0);function xr(t,e){return t&&yr(t,e,Oa)}function br(t,e){return t&&_r(t,e,Oa)}function wr(t,e){return Me(e,(function(e){return Ks(t[e])}))}function Tr(t,e){for(var r=0,i=(e=_i(e,t)).length;null!=t&&r<i;)t=t[Bo(e[r++])];return r&&r==i?t:n}function Er(t,e,n){var r=e(t);return $s(t)?r:Le(r,n(t))}function kr(t){return null==t?t===n?"[object Undefined]":"[object Null]":te&&te in Pt(t)?function(t){var e=Vt.call(t,te),r=t[te];try{t[te]=n;var i=!0}catch(t){}var o=Ft.call(t);i&&(e?t[te]=r:delete t[te]);return o}(t):function(t){return Ft.call(t)}(t)}function Pr(t,e){return t>e}function Sr(t,e){return null!=t&&Vt.call(t,e)}function Cr(t,e){return null!=t&&e in Pt(t)}function Ar(t,e,r){for(var i=r?Re:Oe,o=t[0].length,s=t.length,a=s,u=ot(s),l=1/0,c=[];a--;){var f=t[a];a&&e&&(f=De(f,Ke(e))),l=_n(f.length,l),u[a]=!r&&(e||o>=120&&f.length>=120)?new Xn(a&&f):n}f=t[0];var h=-1,p=u[0];t:for(;++h<o&&c.length<l;){var d=f[h],m=e?e(d):d;if(d=r||0!==d?d:0,!(p?Je(p,m):i(c,m,r))){for(a=s;--a;){var v=u[a];if(!(v?Je(v,m):i(t[a],m,r)))continue t}p&&p.push(m),c.push(d)}}return c}function Mr(t,e,r){var i=null==(t=Co(t,e=_i(e,t)))?t:t[Bo(Zo(e))];return null==i?n:ke(i,t,r)}function Or(t){return ea(t)&&kr(t)==v}function Rr(t,e,r,i,o){return t===e||(null==t||null==e||!ea(t)&&!ea(e)?t!=t&&e!=e:function(t,e,r,i,o,s){var a=$s(t),u=$s(e),l=a?g:mo(t),c=u?g:mo(e),f=(l=l==v?k:l)==k,h=(c=c==v?k:c)==k,p=l==c;if(p&&Xs(t)){if(!Xs(e))return!1;a=!0,f=!1}if(p&&!f)return s||(s=new Gn),a||la(t)?eo(t,e,r,i,o,s):function(t,e,n,r,i,o,s){switch(n){case D:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case R:return!(t.byteLength!=e.byteLength||!o(new $t(t),new $t(e)));case y:case _:case E:return zs(+t,+e);case x:return t.name==e.name&&t.message==e.message;case S:case A:return t==e+"";case T:var a=an;case C:var u=1&r;if(a||(a=cn),t.size!=e.size&&!u)return!1;var l=s.get(t);if(l)return l==e;r|=2,s.set(t,e);var c=eo(a(t),a(e),r,i,o,s);return s.delete(t),c;case M:if(Fn)return Fn.call(t)==Fn.call(e)}return!1}(t,e,l,r,i,o,s);if(!(1&r)){var d=f&&Vt.call(t,"__wrapped__"),m=h&&Vt.call(e,"__wrapped__");if(d||m){var b=d?t.value():t,w=m?e.value():e;return s||(s=new Gn),o(b,w,r,i,s)}}if(!p)return!1;return s||(s=new Gn),function(t,e,r,i,o,s){var a=1&r,u=ro(t),l=u.length,c=ro(e),f=c.length;if(l!=f&&!a)return!1;var h=l;for(;h--;){var p=u[h];if(!(a?p in e:Vt.call(e,p)))return!1}var d=s.get(t),m=s.get(e);if(d&&m)return d==e&&m==t;var v=!0;s.set(t,e),s.set(e,t);var g=a;for(;++h<l;){var y=t[p=u[h]],_=e[p];if(i)var x=a?i(_,y,p,e,t,s):i(y,_,p,t,e,s);if(!(x===n?y===_||o(y,_,r,i,s):x)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(v=!1)}return s.delete(t),s.delete(e),v}(t,e,r,i,o,s)}(t,e,r,i,Rr,o))}function Dr(t,e,r,i){var o=r.length,s=o,a=!i;if(null==t)return!s;for(t=Pt(t);o--;){var u=r[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<s;){var l=(u=r[o])[0],c=t[l],f=u[1];if(a&&u[2]){if(c===n&&!(l in t))return!1}else{var h=new Gn;if(i)var p=i(c,f,l,t,e,h);if(!(p===n?Rr(f,c,3,i,h):p))return!1}}return!0}function Lr(t){return!(!ta(t)||(e=t,Bt&&Bt in e))&&(Ks(t)?Nt:vt).test(Fo(t));var e}function Vr(t){return"function"==typeof t?t:null==t?ru:"object"==typeof t?$s(t)?Nr(t[0],t[1]):zr(t):hu(t)}function jr(t){if(!Eo(t))return gn(t);var e=[];for(var n in Pt(t))Vt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Br(t){if(!ta(t))return function(t){var e=[];if(null!=t)for(var n in Pt(t))e.push(n);return e}(t);var e=Eo(t),n=[];for(var r in t)("constructor"!=r||!e&&Vt.call(t,r))&&n.push(r);return n}function Fr(t,e){return t<e}function Ir(t,e){var n=-1,r=Hs(t)?ot(t.length):[];return hr(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function zr(t){var e=co(t);return 1==e.length&&e[0][2]?Po(e[0][0],e[0][1]):function(n){return n===t||Dr(n,t,e)}}function Nr(t,e){return bo(t)&&ko(e)?Po(Bo(t),e):function(r){var i=Pa(r,t);return i===n&&i===e?Sa(r,t):Rr(e,i,3)}}function Ur(t,e,r,i,o){t!==e&&yr(e,(function(s,a){if(o||(o=new Gn),ta(s))!function(t,e,r,i,o,s,a){var u=Ao(t,r),l=Ao(e,r),c=a.get(l);if(c)return void tr(t,r,c);var f=s?s(u,l,r+"",t,e,a):n,h=f===n;if(h){var p=$s(l),d=!p&&Xs(l),m=!p&&!d&&la(l);f=l,p||d||m?$s(u)?f=u:qs(u)?f=Ai(u):d?(h=!1,f=Ti(l,!0)):m?(h=!1,f=ki(l,!0)):f=[]:ia(l)||Ws(l)?(f=u,Ws(u)?f=ga(u):ta(u)&&!Ks(u)||(f=go(l))):h=!1}h&&(a.set(l,f),o(f,l,i,s,a),a.delete(l));tr(t,r,f)}(t,e,a,r,Ur,i,o);else{var u=i?i(Ao(t,a),s,a+"",t,e,o):n;u===n&&(u=s),tr(t,a,u)}}),Ra)}function Wr(t,e){var r=t.length;if(r)return _o(e+=e<0?r:0,r)?t[e]:n}function $r(t,e,n){e=e.length?De(e,(function(t){return $s(t)?function(e){return Tr(e,1===t.length?t[0]:t)}:t})):[ru];var r=-1;e=De(e,Ke(uo()));var i=Ir(t,(function(t,n,i){var o=De(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(i,(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,s=i.length,a=n.length;for(;++r<s;){var u=Pi(i[r],o[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Yr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],a=Tr(t,s);n(a,s)&&Jr(o,_i(s,t),a)}return o}function Hr(t,e,n,r){var i=r?Ue:Ne,o=-1,s=e.length,a=t;for(t===e&&(e=Ai(e)),n&&(a=De(t,Ke(n)));++o<s;)for(var u=0,l=e[o],c=n?n(l):l;(u=i(a,c,u,r))>-1;)a!==t&&Gt.call(a,u,1),Gt.call(t,u,1);return t}function qr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;_o(i)?Gt.call(t,i,1):fi(t,i)}}return t}function Xr(t,e){return t+me(wn()*(e-t+1))}function Gr(t,e){var n="";if(!t||e<1||e>h)return n;do{e%2&&(n+=t),(e=me(e/2))&&(t+=t)}while(e);return n}function Zr(t,e){return Ro(So(t,e,ru),t+"")}function Kr(t){return Kn(za(t))}function Qr(t,e){var n=za(t);return Vo(n,ar(e,0,n.length))}function Jr(t,e,r,i){if(!ta(t))return t;for(var o=-1,s=(e=_i(e,t)).length,a=s-1,u=t;null!=u&&++o<s;){var l=Bo(e[o]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(o!=a){var f=u[l];(c=i?i(f,l,u):n)===n&&(c=ta(f)?f:_o(e[o+1])?[]:{})}er(u,l,c),u=u[l]}return t}var ti=Mn?function(t,e){return Mn.set(t,e),t}:ru,ei=ne?function(t,e){return ne(t,"toString",{configurable:!0,enumerable:!1,value:tu(e),writable:!0})}:ru;function ni(t){return Vo(za(t))}function ri(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=ot(i);++r<i;)o[r]=t[r+e];return o}function ii(t,e){var n;return hr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function oi(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=t[o];null!==s&&!ua(s)&&(n?s<=e:s<e)?r=o+1:i=o}return i}return si(t,e,ru,n)}function si(t,e,r,i){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(e=r(e))!=e,u=null===e,l=ua(e),c=e===n;o<s;){var f=me((o+s)/2),h=r(t[f]),p=h!==n,d=null===h,m=h==h,v=ua(h);if(a)var g=i||m;else g=c?m&&(i||p):u?m&&p&&(i||!d):l?m&&p&&!d&&(i||!v):!d&&!v&&(i?h<=e:h<e);g?o=f+1:s=f}return _n(s,4294967294)}function ai(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n],a=e?e(s):s;if(!n||!zs(a,u)){var u=a;o[i++]=0===s?0:s}}return o}function ui(t){return"number"==typeof t?t:ua(t)?p:+t}function li(t){if("string"==typeof t)return t;if($s(t))return De(t,li)+"";if(ua(t))return In?In.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ci(t,e,n){var r=-1,i=Oe,o=t.length,s=!0,a=[],u=a;if(n)s=!1,i=Re;else if(o>=200){var l=e?null:Gi(t);if(l)return cn(l);s=!1,i=Je,u=new Xn}else u=e?[]:a;t:for(;++r<o;){var c=t[r],f=e?e(c):c;if(c=n||0!==c?c:0,s&&f==f){for(var h=u.length;h--;)if(u[h]===f)continue t;e&&u.push(f),a.push(c)}else i(u,f,n)||(u!==a&&u.push(f),a.push(c))}return a}function fi(t,e){return null==(t=Co(t,e=_i(e,t)))||delete t[Bo(Zo(e))]}function hi(t,e,n,r){return Jr(t,e,n(Tr(t,e)),r)}function pi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ri(t,r?0:o,r?o+1:i):ri(t,r?o+1:0,r?i:o)}function di(t,e){var n=t;return n instanceof $n&&(n=n.value()),Ve(e,(function(t,e){return e.func.apply(e.thisArg,Le([t],e.args))}),n)}function mi(t,e,n){var r=t.length;if(r<2)return r?ci(t[0]):[];for(var i=-1,o=ot(r);++i<r;)for(var s=t[i],a=-1;++a<r;)a!=i&&(o[i]=fr(o[i]||s,t[a],e,n));return ci(gr(o,1),e,n)}function vi(t,e,r){for(var i=-1,o=t.length,s=e.length,a={};++i<o;){var u=i<s?e[i]:n;r(a,t[i],u)}return a}function gi(t){return qs(t)?t:[]}function yi(t){return"function"==typeof t?t:ru}function _i(t,e){return $s(t)?t:bo(t,e)?[t]:jo(ya(t))}var xi=Zr;function bi(t,e,r){var i=t.length;return r=r===n?i:r,!e&&r>=i?t:ri(t,e,r)}var wi=ue||function(t){return pe.clearTimeout(t)};function Ti(t,e){if(e)return t.slice();var n=t.length,r=Yt?Yt(n):new t.constructor(n);return t.copy(r),r}function Ei(t){var e=new t.constructor(t.byteLength);return new $t(e).set(new $t(t)),e}function ki(t,e){var n=e?Ei(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Pi(t,e){if(t!==e){var r=t!==n,i=null===t,o=t==t,s=ua(t),a=e!==n,u=null===e,l=e==e,c=ua(e);if(!u&&!c&&!s&&t>e||s&&a&&l&&!u&&!c||i&&a&&l||!r&&l||!o)return 1;if(!i&&!s&&!c&&t<e||c&&r&&o&&!i&&!s||u&&r&&o||!a&&o||!l)return-1}return 0}function Si(t,e,n,r){for(var i=-1,o=t.length,s=n.length,a=-1,u=e.length,l=yn(o-s,0),c=ot(u+l),f=!r;++a<u;)c[a]=e[a];for(;++i<s;)(f||i<o)&&(c[n[i]]=t[i]);for(;l--;)c[a++]=t[i++];return c}function Ci(t,e,n,r){for(var i=-1,o=t.length,s=-1,a=n.length,u=-1,l=e.length,c=yn(o-a,0),f=ot(c+l),h=!r;++i<c;)f[i]=t[i];for(var p=i;++u<l;)f[p+u]=e[u];for(;++s<a;)(h||i<o)&&(f[p+n[s]]=t[i++]);return f}function Ai(t,e){var n=-1,r=t.length;for(e||(e=ot(r));++n<r;)e[n]=t[n];return e}function Mi(t,e,r,i){var o=!r;r||(r={});for(var s=-1,a=e.length;++s<a;){var u=e[s],l=i?i(r[u],t[u],u,r,t):n;l===n&&(l=t[u]),o?or(r,u,l):er(r,u,l)}return r}function Oi(t,e){return function(n,r){var i=$s(n)?Pe:rr,o=e?e():{};return i(n,t,uo(r,2),o)}}function Ri(t){return Zr((function(e,r){var i=-1,o=r.length,s=o>1?r[o-1]:n,a=o>2?r[2]:n;for(s=t.length>3&&"function"==typeof s?(o--,s):n,a&&xo(r[0],r[1],a)&&(s=o<3?n:s,o=1),e=Pt(e);++i<o;){var u=r[i];u&&t(e,u,i,s)}return e}))}function Di(t,e){return function(n,r){if(null==n)return n;if(!Hs(n))return t(n,r);for(var i=n.length,o=e?i:-1,s=Pt(n);(e?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function Li(t){return function(e,n,r){for(var i=-1,o=Pt(e),s=r(e),a=s.length;a--;){var u=s[t?a:++i];if(!1===n(o[u],u,o))break}return e}}function Vi(t){return function(e){var r=sn(e=ya(e))?pn(e):n,i=r?r[0]:e.charAt(0),o=r?bi(r,1).join(""):e.slice(1);return i[t]()+o}}function ji(t){return function(e){return Ve(Ka(Wa(e).replace(Qt,"")),t,"")}}function Bi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Nn(t.prototype),r=t.apply(n,e);return ta(r)?r:n}}function Fi(t){return function(e,r,i){var o=Pt(e);if(!Hs(e)){var s=uo(r,3);e=Oa(e),r=function(t){return s(o[t],t,o)}}var a=t(e,r,i);return a>-1?o[s?e[a]:a]:n}}function Ii(t){return no((function(e){var i=e.length,o=i,s=Wn.prototype.thru;for(t&&e.reverse();o--;){var a=e[o];if("function"!=typeof a)throw new At(r);if(s&&!u&&"wrapper"==so(a))var u=new Wn([],!0)}for(o=u?o:i;++o<i;){var l=so(a=e[o]),c="wrapper"==l?oo(a):n;u=c&&wo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[so(c[0])].apply(u,c[3]):1==a.length&&wo(a)?u[l]():u.thru(a)}return function(){var t=arguments,n=t[0];if(u&&1==t.length&&$s(n))return u.plant(n).value();for(var r=0,o=i?e[r].apply(this,t):n;++r<i;)o=e[r].call(this,o);return o}}))}function zi(t,e,r,i,o,s,a,u,c,f){var h=e&l,p=1&e,d=2&e,m=24&e,v=512&e,g=d?n:Bi(t);return function l(){for(var y=arguments.length,_=ot(y),x=y;x--;)_[x]=arguments[x];if(m)var b=ao(l),w=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(_,b);if(i&&(_=Si(_,i,o,m)),s&&(_=Ci(_,s,a,m)),y-=w,m&&y<f){var T=ln(_,b);return qi(t,e,zi,l.placeholder,r,_,T,u,c,f-y)}var E=p?r:this,k=d?E[t]:t;return y=_.length,u?_=function(t,e){var r=t.length,i=_n(e.length,r),o=Ai(t);for(;i--;){var s=e[i];t[i]=_o(s,r)?o[s]:n}return t}(_,u):v&&y>1&&_.reverse(),h&&c<y&&(_.length=c),this&&this!==pe&&this instanceof l&&(k=g||Bi(k)),k.apply(E,_)}}function Ni(t,e){return function(n,r){return function(t,e,n,r){return xr(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Ui(t,e){return function(r,i){var o;if(r===n&&i===n)return e;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=li(r),i=li(i)):(r=ui(r),i=ui(i)),o=t(r,i)}return o}}function Wi(t){return no((function(e){return e=De(e,Ke(uo())),Zr((function(n){var r=this;return t(e,(function(t){return ke(t,r,n)}))}))}))}function $i(t,e){var r=(e=e===n?" ":li(e)).length;if(r<2)return r?Gr(e,t):e;var i=Gr(e,de(t/hn(e)));return sn(e)?bi(pn(i),0,t).join(""):i.slice(0,t)}function Yi(t){return function(e,r,i){return i&&"number"!=typeof i&&xo(e,r,i)&&(r=i=n),e=pa(e),r===n?(r=e,e=0):r=pa(r),function(t,e,n,r){for(var i=-1,o=yn(de((e-t)/(n||1)),0),s=ot(o);o--;)s[r?o:++i]=t,t+=n;return s}(e,r,i=i===n?e<r?1:-1:pa(i),t)}}function Hi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=va(e),n=va(n)),t(e,n)}}function qi(t,e,r,i,o,s,l,c,f,h){var p=8&e;e|=p?a:u,4&(e&=~(p?u:a))||(e&=-4);var d=[t,e,o,p?s:n,p?l:n,p?n:s,p?n:l,c,f,h],m=r.apply(n,d);return wo(t)&&Mo(m,d),m.placeholder=i,Do(m,t,e)}function Xi(t){var e=kt[t];return function(t,n){if(t=va(t),(n=null==n?0:_n(da(n),292))&&Fe(t)){var r=(ya(t)+"e").split("e");return+((r=(ya(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Gi=Sn&&1/cn(new Sn([,-0]))[1]==f?function(t){return new Sn(t)}:uu;function Zi(t){return function(e){var n=mo(e);return n==T?an(e):n==C?fn(e):function(t,e){return De(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Ki(t,e,i,f,h,p,d,m){var v=2&e;if(!v&&"function"!=typeof t)throw new At(r);var g=f?f.length:0;if(g||(e&=-97,f=h=n),d=d===n?d:yn(da(d),0),m=m===n?m:da(m),g-=h?h.length:0,e&u){var y=f,_=h;f=h=n}var x=v?n:oo(t),b=[t,e,i,f,h,y,_,p,d,m];if(x&&function(t,e){var n=t[1],r=e[1],i=n|r,s=i<131,a=r==l&&8==n||r==l&&n==c&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!s&&!a)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var f=t[3];t[3]=f?Si(f,u,e[4]):u,t[4]=f?ln(t[3],o):e[4]}(u=e[5])&&(f=t[5],t[5]=f?Ci(f,u,e[6]):u,t[6]=f?ln(t[5],o):e[6]);(u=e[7])&&(t[7]=u);r&l&&(t[8]=null==t[8]?e[8]:_n(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(b,x),t=b[0],e=b[1],i=b[2],f=b[3],h=b[4],!(m=b[9]=b[9]===n?v?0:t.length:yn(b[9]-g,0))&&24&e&&(e&=-25),e&&1!=e)w=8==e||e==s?function(t,e,r){var i=Bi(t);return function o(){for(var s=arguments.length,a=ot(s),u=s,l=ao(o);u--;)a[u]=arguments[u];var c=s<3&&a[0]!==l&&a[s-1]!==l?[]:ln(a,l);return(s-=c.length)<r?qi(t,e,zi,o.placeholder,n,a,c,n,n,r-s):ke(this&&this!==pe&&this instanceof o?i:t,this,a)}}(t,e,m):e!=a&&33!=e||h.length?zi.apply(n,b):function(t,e,n,r){var i=1&e,o=Bi(t);return function e(){for(var s=-1,a=arguments.length,u=-1,l=r.length,c=ot(l+a),f=this&&this!==pe&&this instanceof e?o:t;++u<l;)c[u]=r[u];for(;a--;)c[u++]=arguments[++s];return ke(f,i?n:this,c)}}(t,e,i,f);else var w=function(t,e,n){var r=1&e,i=Bi(t);return function e(){return(this&&this!==pe&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,i);return Do((x?ti:Mo)(w,b),t,e)}function Qi(t,e,r,i){return t===n||zs(t,Rt[r])&&!Vt.call(i,r)?e:t}function Ji(t,e,r,i,o,s){return ta(t)&&ta(e)&&(s.set(e,t),Ur(t,e,n,Ji,s),s.delete(e)),t}function to(t){return ia(t)?n:t}function eo(t,e,r,i,o,s){var a=1&r,u=t.length,l=e.length;if(u!=l&&!(a&&l>u))return!1;var c=s.get(t),f=s.get(e);if(c&&f)return c==e&&f==t;var h=-1,p=!0,d=2&r?new Xn:n;for(s.set(t,e),s.set(e,t);++h<u;){var m=t[h],v=e[h];if(i)var g=a?i(v,m,h,e,t,s):i(m,v,h,t,e,s);if(g!==n){if(g)continue;p=!1;break}if(d){if(!Be(e,(function(t,e){if(!Je(d,e)&&(m===t||o(m,t,r,i,s)))return d.push(e)}))){p=!1;break}}else if(m!==v&&!o(m,v,r,i,s)){p=!1;break}}return s.delete(t),s.delete(e),p}function no(t){return Ro(So(t,n,Yo),t+"")}function ro(t){return Er(t,Oa,ho)}function io(t){return Er(t,Ra,po)}var oo=Mn?function(t){return Mn.get(t)}:uu;function so(t){for(var e=t.name+"",n=On[e],r=Vt.call(On,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function ao(t){return(Vt.call(zn,"placeholder")?zn:t).placeholder}function uo(){var t=zn.iteratee||iu;return t=t===iu?Vr:t,arguments.length?t(arguments[0],arguments[1]):t}function lo(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function co(t){for(var e=Oa(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,ko(i)]}return e}function fo(t,e){var r=function(t,e){return null==t?n:t[e]}(t,e);return Lr(r)?r:n}var ho=ge?function(t){return null==t?[]:(t=Pt(t),Me(ge(t),(function(e){return Xt.call(t,e)})))}:mu,po=ge?function(t){for(var e=[];t;)Le(e,ho(t)),t=Ht(t);return e}:mu,mo=kr;function vo(t,e,n){for(var r=-1,i=(e=_i(e,t)).length,o=!1;++r<i;){var s=Bo(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Js(i)&&_o(s,i)&&($s(t)||Ws(t))}function go(t){return"function"!=typeof t.constructor||Eo(t)?{}:Nn(Ht(t))}function yo(t){return $s(t)||Ws(t)||!!(Zt&&t&&t[Zt])}function _o(t,e){var n=typeof t;return!!(e=null==e?h:e)&&("number"==n||"symbol"!=n&&yt.test(t))&&t>-1&&t%1==0&&t<e}function xo(t,e,n){if(!ta(n))return!1;var r=typeof e;return!!("number"==r?Hs(n)&&_o(e,n.length):"string"==r&&e in n)&&zs(n[e],t)}function bo(t,e){if($s(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ua(t))||(tt.test(t)||!J.test(t)||null!=e&&t in Pt(e))}function wo(t){var e=so(t),n=zn[e];if("function"!=typeof n||!(e in $n.prototype))return!1;if(t===n)return!0;var r=oo(n);return!!r&&t===r[0]}(En&&mo(new En(new ArrayBuffer(1)))!=D||kn&&mo(new kn)!=T||Pn&&mo(Pn.resolve())!=P||Sn&&mo(new Sn)!=C||Cn&&mo(new Cn)!=O)&&(mo=function(t){var e=kr(t),r=e==k?t.constructor:n,i=r?Fo(r):"";if(i)switch(i){case Rn:return D;case Dn:return T;case Ln:return P;case Vn:return C;case jn:return O}return e});var To=Dt?Ks:vu;function Eo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Rt)}function ko(t){return t==t&&!ta(t)}function Po(t,e){return function(r){return null!=r&&(r[t]===e&&(e!==n||t in Pt(r)))}}function So(t,e,r){return e=yn(e===n?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=yn(n.length-e,0),s=ot(o);++i<o;)s[i]=n[e+i];i=-1;for(var a=ot(e+1);++i<e;)a[i]=n[i];return a[e]=r(s),ke(t,this,a)}}function Co(t,e){return e.length<2?t:Tr(t,ri(e,0,-1))}function Ao(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Mo=Lo(ti),Oo=he||function(t,e){return pe.setTimeout(t,e)},Ro=Lo(ei);function Do(t,e,n){var r=e+"";return Ro(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Se(m,(function(n){var r="_."+n[0];e&n[1]&&!Oe(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(at);return e?e[1].split(ut):[]}(r),n)))}function Lo(t){var e=0,r=0;return function(){var i=xn(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(n,arguments)}}function Vo(t,e){var r=-1,i=t.length,o=i-1;for(e=e===n?i:e;++r<e;){var s=Xr(r,o),a=t[s];t[s]=t[r],t[r]=a}return t.length=e,t}var jo=function(t){var e=Ls(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(et,(function(t,n,r,i){e.push(r?i.replace(ft,"$1"):n||t)})),e}));function Bo(t){if("string"==typeof t||ua(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Fo(t){if(null!=t){try{return Lt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Io(t){if(t instanceof $n)return t.clone();var e=new Wn(t.__wrapped__,t.__chain__);return e.__actions__=Ai(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var zo=Zr((function(t,e){return qs(t)?fr(t,gr(e,1,qs,!0)):[]})),No=Zr((function(t,e){var r=Zo(e);return qs(r)&&(r=n),qs(t)?fr(t,gr(e,1,qs,!0),uo(r,2)):[]})),Uo=Zr((function(t,e){var r=Zo(e);return qs(r)&&(r=n),qs(t)?fr(t,gr(e,1,qs,!0),n,r):[]}));function Wo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=yn(r+i,0)),ze(t,uo(e,3),i)}function $o(t,e,r){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return r!==n&&(o=da(r),o=r<0?yn(i+o,0):_n(o,i-1)),ze(t,uo(e,3),o,!0)}function Yo(t){return(null==t?0:t.length)?gr(t,1):[]}function Ho(t){return t&&t.length?t[0]:n}var qo=Zr((function(t){var e=De(t,gi);return e.length&&e[0]===t[0]?Ar(e):[]})),Xo=Zr((function(t){var e=Zo(t),r=De(t,gi);return e===Zo(r)?e=n:r.pop(),r.length&&r[0]===t[0]?Ar(r,uo(e,2)):[]})),Go=Zr((function(t){var e=Zo(t),r=De(t,gi);return(e="function"==typeof e?e:n)&&r.pop(),r.length&&r[0]===t[0]?Ar(r,n,e):[]}));function Zo(t){var e=null==t?0:t.length;return e?t[e-1]:n}var Ko=Zr(Qo);function Qo(t,e){return t&&t.length&&e&&e.length?Hr(t,e):t}var Jo=no((function(t,e){var n=null==t?0:t.length,r=sr(t,e);return qr(t,De(e,(function(t){return _o(t,n)?+t:t})).sort(Pi)),r}));function ts(t){return null==t?t:Tn.call(t)}var es=Zr((function(t){return ci(gr(t,1,qs,!0))})),ns=Zr((function(t){var e=Zo(t);return qs(e)&&(e=n),ci(gr(t,1,qs,!0),uo(e,2))})),rs=Zr((function(t){var e=Zo(t);return e="function"==typeof e?e:n,ci(gr(t,1,qs,!0),n,e)}));function is(t){if(!t||!t.length)return[];var e=0;return t=Me(t,(function(t){if(qs(t))return e=yn(t.length,e),!0})),Ge(e,(function(e){return De(t,Ye(e))}))}function os(t,e){if(!t||!t.length)return[];var r=is(t);return null==e?r:De(r,(function(t){return ke(e,n,t)}))}var ss=Zr((function(t,e){return qs(t)?fr(t,e):[]})),as=Zr((function(t){return mi(Me(t,qs))})),us=Zr((function(t){var e=Zo(t);return qs(e)&&(e=n),mi(Me(t,qs),uo(e,2))})),ls=Zr((function(t){var e=Zo(t);return e="function"==typeof e?e:n,mi(Me(t,qs),n,e)})),cs=Zr(is);var fs=Zr((function(t){var e=t.length,r=e>1?t[e-1]:n;return r="function"==typeof r?(t.pop(),r):n,os(t,r)}));function hs(t){var e=zn(t);return e.__chain__=!0,e}function ps(t,e){return e(t)}var ds=no((function(t){var e=t.length,r=e?t[0]:0,i=this.__wrapped__,o=function(e){return sr(e,t)};return!(e>1||this.__actions__.length)&&i instanceof $n&&_o(r)?((i=i.slice(r,+r+(e?1:0))).__actions__.push({func:ps,args:[o],thisArg:n}),new Wn(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(n),t}))):this.thru(o)}));var ms=Oi((function(t,e,n){Vt.call(t,n)?++t[n]:or(t,n,1)}));var vs=Fi(Wo),gs=Fi($o);function ys(t,e){return($s(t)?Se:hr)(t,uo(e,3))}function _s(t,e){return($s(t)?Ce:pr)(t,uo(e,3))}var xs=Oi((function(t,e,n){Vt.call(t,n)?t[n].push(e):or(t,n,[e])}));var bs=Zr((function(t,e,n){var r=-1,i="function"==typeof e,o=Hs(t)?ot(t.length):[];return hr(t,(function(t){o[++r]=i?ke(e,t,n):Mr(t,e,n)})),o})),ws=Oi((function(t,e,n){or(t,n,e)}));function Ts(t,e){return($s(t)?De:Ir)(t,uo(e,3))}var Es=Oi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var ks=Zr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&xo(t,e[0],e[1])?e=[]:n>2&&xo(e[0],e[1],e[2])&&(e=[e[0]]),$r(t,gr(e,1),[])})),Ps=fe||function(){return pe.Date.now()};function Ss(t,e,r){return e=r?n:e,e=t&&null==e?t.length:e,Ki(t,l,n,n,n,n,e)}function Cs(t,e){var i;if("function"!=typeof e)throw new At(r);return t=da(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=n),i}}var As=Zr((function(t,e,n){var r=1;if(n.length){var i=ln(n,ao(As));r|=a}return Ki(t,r,e,n,i)})),Ms=Zr((function(t,e,n){var r=3;if(n.length){var i=ln(n,ao(Ms));r|=a}return Ki(e,r,t,n,i)}));function Os(t,e,i){var o,s,a,u,l,c,f=0,h=!1,p=!1,d=!0;if("function"!=typeof t)throw new At(r);function m(e){var r=o,i=s;return o=s=n,f=e,u=t.apply(i,r)}function v(t){var r=t-c;return c===n||r>=e||r<0||p&&t-f>=a}function g(){var t=Ps();if(v(t))return y(t);l=Oo(g,function(t){var n=e-(t-c);return p?_n(n,a-(t-f)):n}(t))}function y(t){return l=n,d&&o?m(t):(o=s=n,u)}function _(){var t=Ps(),r=v(t);if(o=arguments,s=this,c=t,r){if(l===n)return function(t){return f=t,l=Oo(g,e),h?m(t):u}(c);if(p)return wi(l),l=Oo(g,e),m(c)}return l===n&&(l=Oo(g,e)),u}return e=va(e)||0,ta(i)&&(h=!!i.leading,a=(p="maxWait"in i)?yn(va(i.maxWait)||0,e):a,d="trailing"in i?!!i.trailing:d),_.cancel=function(){l!==n&&wi(l),f=0,o=c=s=l=n},_.flush=function(){return l===n?u:y(Ps())},_}var Rs=Zr((function(t,e){return cr(t,1,e)})),Ds=Zr((function(t,e,n){return cr(t,va(e)||0,n)}));function Ls(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new At(r);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ls.Cache||qn),n}function Vs(t){if("function"!=typeof t)throw new At(r);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ls.Cache=qn;var js=xi((function(t,e){var n=(e=1==e.length&&$s(e[0])?De(e[0],Ke(uo())):De(gr(e,1),Ke(uo()))).length;return Zr((function(r){for(var i=-1,o=_n(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return ke(t,this,r)}))})),Bs=Zr((function(t,e){var r=ln(e,ao(Bs));return Ki(t,a,n,e,r)})),Fs=Zr((function(t,e){var r=ln(e,ao(Fs));return Ki(t,u,n,e,r)})),Is=no((function(t,e){return Ki(t,c,n,n,n,e)}));function zs(t,e){return t===e||t!=t&&e!=e}var Ns=Hi(Pr),Us=Hi((function(t,e){return t>=e})),Ws=Or(function(){return arguments}())?Or:function(t){return ea(t)&&Vt.call(t,"callee")&&!Xt.call(t,"callee")},$s=ot.isArray,Ys=_e?Ke(_e):function(t){return ea(t)&&kr(t)==R};function Hs(t){return null!=t&&Js(t.length)&&!Ks(t)}function qs(t){return ea(t)&&Hs(t)}var Xs=ye||vu,Gs=xe?Ke(xe):function(t){return ea(t)&&kr(t)==_};function Zs(t){if(!ea(t))return!1;var e=kr(t);return e==x||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ia(t)}function Ks(t){if(!ta(t))return!1;var e=kr(t);return e==b||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Qs(t){return"number"==typeof t&&t==da(t)}function Js(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function ta(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ea(t){return null!=t&&"object"==typeof t}var na=be?Ke(be):function(t){return ea(t)&&mo(t)==T};function ra(t){return"number"==typeof t||ea(t)&&kr(t)==E}function ia(t){if(!ea(t)||kr(t)!=k)return!1;var e=Ht(t);if(null===e)return!0;var n=Vt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Lt.call(n)==It}var oa=we?Ke(we):function(t){return ea(t)&&kr(t)==S};var sa=Te?Ke(Te):function(t){return ea(t)&&mo(t)==C};function aa(t){return"string"==typeof t||!$s(t)&&ea(t)&&kr(t)==A}function ua(t){return"symbol"==typeof t||ea(t)&&kr(t)==M}var la=Ee?Ke(Ee):function(t){return ea(t)&&Js(t.length)&&!!se[kr(t)]};var ca=Hi(Fr),fa=Hi((function(t,e){return t<=e}));function ha(t){if(!t)return[];if(Hs(t))return aa(t)?pn(t):Ai(t);if(Kt&&t[Kt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Kt]());var e=mo(t);return(e==T?an:e==C?cn:za)(t)}function pa(t){return t?(t=va(t))===f||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function da(t){var e=pa(t),n=e%1;return e==e?n?e-n:e:0}function ma(t){return t?ar(da(t),0,d):0}function va(t){if("number"==typeof t)return t;if(ua(t))return p;if(ta(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ta(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ze(t);var n=mt.test(t);return n||gt.test(t)?ce(t.slice(2),n?2:8):dt.test(t)?p:+t}function ga(t){return Mi(t,Ra(t))}function ya(t){return null==t?"":li(t)}var _a=Ri((function(t,e){if(Eo(e)||Hs(e))Mi(e,Oa(e),t);else for(var n in e)Vt.call(e,n)&&er(t,n,e[n])})),xa=Ri((function(t,e){Mi(e,Ra(e),t)})),ba=Ri((function(t,e,n,r){Mi(e,Ra(e),t,r)})),wa=Ri((function(t,e,n,r){Mi(e,Oa(e),t,r)})),Ta=no(sr);var Ea=Zr((function(t,e){t=Pt(t);var r=-1,i=e.length,o=i>2?e[2]:n;for(o&&xo(e[0],e[1],o)&&(i=1);++r<i;)for(var s=e[r],a=Ra(s),u=-1,l=a.length;++u<l;){var c=a[u],f=t[c];(f===n||zs(f,Rt[c])&&!Vt.call(t,c))&&(t[c]=s[c])}return t})),ka=Zr((function(t){return t.push(n,Ji),ke(La,n,t)}));function Pa(t,e,r){var i=null==t?n:Tr(t,e);return i===n?r:i}function Sa(t,e){return null!=t&&vo(t,e,Cr)}var Ca=Ni((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),t[e]=n}),tu(ru)),Aa=Ni((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),Vt.call(t,e)?t[e].push(n):t[e]=[n]}),uo),Ma=Zr(Mr);function Oa(t){return Hs(t)?Zn(t):jr(t)}function Ra(t){return Hs(t)?Zn(t,!0):Br(t)}var Da=Ri((function(t,e,n){Ur(t,e,n)})),La=Ri((function(t,e,n,r){Ur(t,e,n,r)})),Va=no((function(t,e){var n={};if(null==t)return n;var r=!1;e=De(e,(function(e){return e=_i(e,t),r||(r=e.length>1),e})),Mi(t,io(t),n),r&&(n=ur(n,7,to));for(var i=e.length;i--;)fi(n,e[i]);return n}));var ja=no((function(t,e){return null==t?{}:function(t,e){return Yr(t,e,(function(e,n){return Sa(t,n)}))}(t,e)}));function Ba(t,e){if(null==t)return{};var n=De(io(t),(function(t){return[t]}));return e=uo(e),Yr(t,n,(function(t,n){return e(t,n[0])}))}var Fa=Zi(Oa),Ia=Zi(Ra);function za(t){return null==t?[]:Qe(t,Oa(t))}var Na=ji((function(t,e,n){return e=e.toLowerCase(),t+(n?Ua(e):e)}));function Ua(t){return Za(ya(t).toLowerCase())}function Wa(t){return(t=ya(t))&&t.replace(_t,nn).replace(Jt,"")}var $a=ji((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ya=ji((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ha=Vi("toLowerCase");var qa=ji((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Xa=ji((function(t,e,n){return t+(n?" ":"")+Za(e)}));var Ga=ji((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Za=Vi("toUpperCase");function Ka(t,e,r){return t=ya(t),(e=r?n:e)===n?function(t){return re.test(t)}(t)?function(t){return t.match(ee)||[]}(t):function(t){return t.match(lt)||[]}(t):t.match(e)||[]}var Qa=Zr((function(t,e){try{return ke(t,n,e)}catch(t){return Zs(t)?t:new Tt(t)}})),Ja=no((function(t,e){return Se(e,(function(e){e=Bo(e),or(t,e,As(t[e],t))})),t}));function tu(t){return function(){return t}}var eu=Ii(),nu=Ii(!0);function ru(t){return t}function iu(t){return Vr("function"==typeof t?t:ur(t,1))}var ou=Zr((function(t,e){return function(n){return Mr(n,t,e)}})),su=Zr((function(t,e){return function(n){return Mr(t,n,e)}}));function au(t,e,n){var r=Oa(e),i=wr(e,r);null!=n||ta(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=wr(e,Oa(e)));var o=!(ta(n)&&"chain"in n&&!n.chain),s=Ks(t);return Se(i,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Ai(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Le([this.value()],arguments))})})),t}function uu(){}var lu=Wi(De),cu=Wi(Ae),fu=Wi(Be);function hu(t){return bo(t)?Ye(Bo(t)):function(t){return function(e){return Tr(e,t)}}(t)}var pu=Yi(),du=Yi(!0);function mu(){return[]}function vu(){return!1}var gu=Ui((function(t,e){return t+e}),0),yu=Xi("ceil"),_u=Ui((function(t,e){return t/e}),1),xu=Xi("floor");var bu,wu=Ui((function(t,e){return t*e}),1),Tu=Xi("round"),Eu=Ui((function(t,e){return t-e}),0);return zn.after=function(t,e){if("function"!=typeof e)throw new At(r);return t=da(t),function(){if(--t<1)return e.apply(this,arguments)}},zn.ary=Ss,zn.assign=_a,zn.assignIn=xa,zn.assignInWith=ba,zn.assignWith=wa,zn.at=Ta,zn.before=Cs,zn.bind=As,zn.bindAll=Ja,zn.bindKey=Ms,zn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return $s(t)?t:[t]},zn.chain=hs,zn.chunk=function(t,e,r){e=(r?xo(t,e,r):e===n)?1:yn(da(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,s=0,a=ot(de(i/e));o<i;)a[s++]=ri(t,o,o+=e);return a},zn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},zn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=ot(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Le($s(n)?Ai(n):[n],gr(e,1))},zn.cond=function(t){var e=null==t?0:t.length,n=uo();return t=e?De(t,(function(t){if("function"!=typeof t[1])throw new At(r);return[n(t[0]),t[1]]})):[],Zr((function(n){for(var r=-1;++r<e;){var i=t[r];if(ke(i[0],this,n))return ke(i[1],this,n)}}))},zn.conforms=function(t){return function(t){var e=Oa(t);return function(n){return lr(n,t,e)}}(ur(t,1))},zn.constant=tu,zn.countBy=ms,zn.create=function(t,e){var n=Nn(t);return null==e?n:ir(n,e)},zn.curry=function t(e,r,i){var o=Ki(e,8,n,n,n,n,n,r=i?n:r);return o.placeholder=t.placeholder,o},zn.curryRight=function t(e,r,i){var o=Ki(e,s,n,n,n,n,n,r=i?n:r);return o.placeholder=t.placeholder,o},zn.debounce=Os,zn.defaults=Ea,zn.defaultsDeep=ka,zn.defer=Rs,zn.delay=Ds,zn.difference=zo,zn.differenceBy=No,zn.differenceWith=Uo,zn.drop=function(t,e,r){var i=null==t?0:t.length;return i?ri(t,(e=r||e===n?1:da(e))<0?0:e,i):[]},zn.dropRight=function(t,e,r){var i=null==t?0:t.length;return i?ri(t,0,(e=i-(e=r||e===n?1:da(e)))<0?0:e):[]},zn.dropRightWhile=function(t,e){return t&&t.length?pi(t,uo(e,3),!0,!0):[]},zn.dropWhile=function(t,e){return t&&t.length?pi(t,uo(e,3),!0):[]},zn.fill=function(t,e,r,i){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&xo(t,e,r)&&(r=0,i=o),function(t,e,r,i){var o=t.length;for((r=da(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:da(i))<0&&(i+=o),i=r>i?0:ma(i);r<i;)t[r++]=e;return t}(t,e,r,i)):[]},zn.filter=function(t,e){return($s(t)?Me:vr)(t,uo(e,3))},zn.flatMap=function(t,e){return gr(Ts(t,e),1)},zn.flatMapDeep=function(t,e){return gr(Ts(t,e),f)},zn.flatMapDepth=function(t,e,r){return r=r===n?1:da(r),gr(Ts(t,e),r)},zn.flatten=Yo,zn.flattenDeep=function(t){return(null==t?0:t.length)?gr(t,f):[]},zn.flattenDepth=function(t,e){return(null==t?0:t.length)?gr(t,e=e===n?1:da(e)):[]},zn.flip=function(t){return Ki(t,512)},zn.flow=eu,zn.flowRight=nu,zn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},zn.functions=function(t){return null==t?[]:wr(t,Oa(t))},zn.functionsIn=function(t){return null==t?[]:wr(t,Ra(t))},zn.groupBy=xs,zn.initial=function(t){return(null==t?0:t.length)?ri(t,0,-1):[]},zn.intersection=qo,zn.intersectionBy=Xo,zn.intersectionWith=Go,zn.invert=Ca,zn.invertBy=Aa,zn.invokeMap=bs,zn.iteratee=iu,zn.keyBy=ws,zn.keys=Oa,zn.keysIn=Ra,zn.map=Ts,zn.mapKeys=function(t,e){var n={};return e=uo(e,3),xr(t,(function(t,r,i){or(n,e(t,r,i),t)})),n},zn.mapValues=function(t,e){var n={};return e=uo(e,3),xr(t,(function(t,r,i){or(n,r,e(t,r,i))})),n},zn.matches=function(t){return zr(ur(t,1))},zn.matchesProperty=function(t,e){return Nr(t,ur(e,1))},zn.memoize=Ls,zn.merge=Da,zn.mergeWith=La,zn.method=ou,zn.methodOf=su,zn.mixin=au,zn.negate=Vs,zn.nthArg=function(t){return t=da(t),Zr((function(e){return Wr(e,t)}))},zn.omit=Va,zn.omitBy=function(t,e){return Ba(t,Vs(uo(e)))},zn.once=function(t){return Cs(2,t)},zn.orderBy=function(t,e,r,i){return null==t?[]:($s(e)||(e=null==e?[]:[e]),$s(r=i?n:r)||(r=null==r?[]:[r]),$r(t,e,r))},zn.over=lu,zn.overArgs=js,zn.overEvery=cu,zn.overSome=fu,zn.partial=Bs,zn.partialRight=Fs,zn.partition=Es,zn.pick=ja,zn.pickBy=Ba,zn.property=hu,zn.propertyOf=function(t){return function(e){return null==t?n:Tr(t,e)}},zn.pull=Ko,zn.pullAll=Qo,zn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Hr(t,e,uo(n,2)):t},zn.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?Hr(t,e,n,r):t},zn.pullAt=Jo,zn.range=pu,zn.rangeRight=du,zn.rearg=Is,zn.reject=function(t,e){return($s(t)?Me:vr)(t,Vs(uo(e,3)))},zn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=uo(e,3);++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),i.push(r))}return qr(t,i),n},zn.rest=function(t,e){if("function"!=typeof t)throw new At(r);return Zr(t,e=e===n?e:da(e))},zn.reverse=ts,zn.sampleSize=function(t,e,r){return e=(r?xo(t,e,r):e===n)?1:da(e),($s(t)?Qn:Qr)(t,e)},zn.set=function(t,e,n){return null==t?t:Jr(t,e,n)},zn.setWith=function(t,e,r,i){return i="function"==typeof i?i:n,null==t?t:Jr(t,e,r,i)},zn.shuffle=function(t){return($s(t)?Jn:ni)(t)},zn.slice=function(t,e,r){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&xo(t,e,r)?(e=0,r=i):(e=null==e?0:da(e),r=r===n?i:da(r)),ri(t,e,r)):[]},zn.sortBy=ks,zn.sortedUniq=function(t){return t&&t.length?ai(t):[]},zn.sortedUniqBy=function(t,e){return t&&t.length?ai(t,uo(e,2)):[]},zn.split=function(t,e,r){return r&&"number"!=typeof r&&xo(t,e,r)&&(e=r=n),(r=r===n?d:r>>>0)?(t=ya(t))&&("string"==typeof e||null!=e&&!oa(e))&&!(e=li(e))&&sn(t)?bi(pn(t),0,r):t.split(e,r):[]},zn.spread=function(t,e){if("function"!=typeof t)throw new At(r);return e=null==e?0:yn(da(e),0),Zr((function(n){var r=n[e],i=bi(n,0,e);return r&&Le(i,r),ke(t,this,i)}))},zn.tail=function(t){var e=null==t?0:t.length;return e?ri(t,1,e):[]},zn.take=function(t,e,r){return t&&t.length?ri(t,0,(e=r||e===n?1:da(e))<0?0:e):[]},zn.takeRight=function(t,e,r){var i=null==t?0:t.length;return i?ri(t,(e=i-(e=r||e===n?1:da(e)))<0?0:e,i):[]},zn.takeRightWhile=function(t,e){return t&&t.length?pi(t,uo(e,3),!1,!0):[]},zn.takeWhile=function(t,e){return t&&t.length?pi(t,uo(e,3)):[]},zn.tap=function(t,e){return e(t),t},zn.throttle=function(t,e,n){var i=!0,o=!0;if("function"!=typeof t)throw new At(r);return ta(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Os(t,e,{leading:i,maxWait:e,trailing:o})},zn.thru=ps,zn.toArray=ha,zn.toPairs=Fa,zn.toPairsIn=Ia,zn.toPath=function(t){return $s(t)?De(t,Bo):ua(t)?[t]:Ai(jo(ya(t)))},zn.toPlainObject=ga,zn.transform=function(t,e,n){var r=$s(t),i=r||Xs(t)||la(t);if(e=uo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:ta(t)&&Ks(o)?Nn(Ht(t)):{}}return(i?Se:xr)(t,(function(t,r,i){return e(n,t,r,i)})),n},zn.unary=function(t){return Ss(t,1)},zn.union=es,zn.unionBy=ns,zn.unionWith=rs,zn.uniq=function(t){return t&&t.length?ci(t):[]},zn.uniqBy=function(t,e){return t&&t.length?ci(t,uo(e,2)):[]},zn.uniqWith=function(t,e){return e="function"==typeof e?e:n,t&&t.length?ci(t,n,e):[]},zn.unset=function(t,e){return null==t||fi(t,e)},zn.unzip=is,zn.unzipWith=os,zn.update=function(t,e,n){return null==t?t:hi(t,e,yi(n))},zn.updateWith=function(t,e,r,i){return i="function"==typeof i?i:n,null==t?t:hi(t,e,yi(r),i)},zn.values=za,zn.valuesIn=function(t){return null==t?[]:Qe(t,Ra(t))},zn.without=ss,zn.words=Ka,zn.wrap=function(t,e){return Bs(yi(e),t)},zn.xor=as,zn.xorBy=us,zn.xorWith=ls,zn.zip=cs,zn.zipObject=function(t,e){return vi(t||[],e||[],er)},zn.zipObjectDeep=function(t,e){return vi(t||[],e||[],Jr)},zn.zipWith=fs,zn.entries=Fa,zn.entriesIn=Ia,zn.extend=xa,zn.extendWith=ba,au(zn,zn),zn.add=gu,zn.attempt=Qa,zn.camelCase=Na,zn.capitalize=Ua,zn.ceil=yu,zn.clamp=function(t,e,r){return r===n&&(r=e,e=n),r!==n&&(r=(r=va(r))==r?r:0),e!==n&&(e=(e=va(e))==e?e:0),ar(va(t),e,r)},zn.clone=function(t){return ur(t,4)},zn.cloneDeep=function(t){return ur(t,5)},zn.cloneDeepWith=function(t,e){return ur(t,5,e="function"==typeof e?e:n)},zn.cloneWith=function(t,e){return ur(t,4,e="function"==typeof e?e:n)},zn.conformsTo=function(t,e){return null==e||lr(t,e,Oa(e))},zn.deburr=Wa,zn.defaultTo=function(t,e){return null==t||t!=t?e:t},zn.divide=_u,zn.endsWith=function(t,e,r){t=ya(t),e=li(e);var i=t.length,o=r=r===n?i:ar(da(r),0,i);return(r-=e.length)>=0&&t.slice(r,o)==e},zn.eq=zs,zn.escape=function(t){return(t=ya(t))&&G.test(t)?t.replace(q,rn):t},zn.escapeRegExp=function(t){return(t=ya(t))&&rt.test(t)?t.replace(nt,"\\$&"):t},zn.every=function(t,e,r){var i=$s(t)?Ae:dr;return r&&xo(t,e,r)&&(e=n),i(t,uo(e,3))},zn.find=vs,zn.findIndex=Wo,zn.findKey=function(t,e){return Ie(t,uo(e,3),xr)},zn.findLast=gs,zn.findLastIndex=$o,zn.findLastKey=function(t,e){return Ie(t,uo(e,3),br)},zn.floor=xu,zn.forEach=ys,zn.forEachRight=_s,zn.forIn=function(t,e){return null==t?t:yr(t,uo(e,3),Ra)},zn.forInRight=function(t,e){return null==t?t:_r(t,uo(e,3),Ra)},zn.forOwn=function(t,e){return t&&xr(t,uo(e,3))},zn.forOwnRight=function(t,e){return t&&br(t,uo(e,3))},zn.get=Pa,zn.gt=Ns,zn.gte=Us,zn.has=function(t,e){return null!=t&&vo(t,e,Sr)},zn.hasIn=Sa,zn.head=Ho,zn.identity=ru,zn.includes=function(t,e,n,r){t=Hs(t)?t:za(t),n=n&&!r?da(n):0;var i=t.length;return n<0&&(n=yn(i+n,0)),aa(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Ne(t,e,n)>-1},zn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=yn(r+i,0)),Ne(t,e,i)},zn.inRange=function(t,e,r){return e=pa(e),r===n?(r=e,e=0):r=pa(r),function(t,e,n){return t>=_n(e,n)&&t<yn(e,n)}(t=va(t),e,r)},zn.invoke=Ma,zn.isArguments=Ws,zn.isArray=$s,zn.isArrayBuffer=Ys,zn.isArrayLike=Hs,zn.isArrayLikeObject=qs,zn.isBoolean=function(t){return!0===t||!1===t||ea(t)&&kr(t)==y},zn.isBuffer=Xs,zn.isDate=Gs,zn.isElement=function(t){return ea(t)&&1===t.nodeType&&!ia(t)},zn.isEmpty=function(t){if(null==t)return!0;if(Hs(t)&&($s(t)||"string"==typeof t||"function"==typeof t.splice||Xs(t)||la(t)||Ws(t)))return!t.length;var e=mo(t);if(e==T||e==C)return!t.size;if(Eo(t))return!jr(t).length;for(var n in t)if(Vt.call(t,n))return!1;return!0},zn.isEqual=function(t,e){return Rr(t,e)},zn.isEqualWith=function(t,e,r){var i=(r="function"==typeof r?r:n)?r(t,e):n;return i===n?Rr(t,e,n,r):!!i},zn.isError=Zs,zn.isFinite=function(t){return"number"==typeof t&&Fe(t)},zn.isFunction=Ks,zn.isInteger=Qs,zn.isLength=Js,zn.isMap=na,zn.isMatch=function(t,e){return t===e||Dr(t,e,co(e))},zn.isMatchWith=function(t,e,r){return r="function"==typeof r?r:n,Dr(t,e,co(e),r)},zn.isNaN=function(t){return ra(t)&&t!=+t},zn.isNative=function(t){if(To(t))throw new Tt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(t)},zn.isNil=function(t){return null==t},zn.isNull=function(t){return null===t},zn.isNumber=ra,zn.isObject=ta,zn.isObjectLike=ea,zn.isPlainObject=ia,zn.isRegExp=oa,zn.isSafeInteger=function(t){return Qs(t)&&t>=-9007199254740991&&t<=h},zn.isSet=sa,zn.isString=aa,zn.isSymbol=ua,zn.isTypedArray=la,zn.isUndefined=function(t){return t===n},zn.isWeakMap=function(t){return ea(t)&&mo(t)==O},zn.isWeakSet=function(t){return ea(t)&&"[object WeakSet]"==kr(t)},zn.join=function(t,e){return null==t?"":He.call(t,e)},zn.kebabCase=$a,zn.last=Zo,zn.lastIndexOf=function(t,e,r){var i=null==t?0:t.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=da(r))<0?yn(i+o,0):_n(o,i-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):ze(t,We,o,!0)},zn.lowerCase=Ya,zn.lowerFirst=Ha,zn.lt=ca,zn.lte=fa,zn.max=function(t){return t&&t.length?mr(t,ru,Pr):n},zn.maxBy=function(t,e){return t&&t.length?mr(t,uo(e,2),Pr):n},zn.mean=function(t){return $e(t,ru)},zn.meanBy=function(t,e){return $e(t,uo(e,2))},zn.min=function(t){return t&&t.length?mr(t,ru,Fr):n},zn.minBy=function(t,e){return t&&t.length?mr(t,uo(e,2),Fr):n},zn.stubArray=mu,zn.stubFalse=vu,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=wu,zn.nth=function(t,e){return t&&t.length?Wr(t,da(e)):n},zn.noConflict=function(){return pe._===this&&(pe._=zt),this},zn.noop=uu,zn.now=Ps,zn.pad=function(t,e,n){t=ya(t);var r=(e=da(e))?hn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return $i(me(i),n)+t+$i(de(i),n)},zn.padEnd=function(t,e,n){t=ya(t);var r=(e=da(e))?hn(t):0;return e&&r<e?t+$i(e-r,n):t},zn.padStart=function(t,e,n){t=ya(t);var r=(e=da(e))?hn(t):0;return e&&r<e?$i(e-r,n)+t:t},zn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),bn(ya(t).replace(it,""),e||0)},zn.random=function(t,e,r){if(r&&"boolean"!=typeof r&&xo(t,e,r)&&(e=r=n),r===n&&("boolean"==typeof e?(r=e,e=n):"boolean"==typeof t&&(r=t,t=n)),t===n&&e===n?(t=0,e=1):(t=pa(t),e===n?(e=t,t=0):e=pa(e)),t>e){var i=t;t=e,e=i}if(r||t%1||e%1){var o=wn();return _n(t+o*(e-t+le("1e-"+((o+"").length-1))),e)}return Xr(t,e)},zn.reduce=function(t,e,n){var r=$s(t)?Ve:qe,i=arguments.length<3;return r(t,uo(e,4),n,i,hr)},zn.reduceRight=function(t,e,n){var r=$s(t)?je:qe,i=arguments.length<3;return r(t,uo(e,4),n,i,pr)},zn.repeat=function(t,e,r){return e=(r?xo(t,e,r):e===n)?1:da(e),Gr(ya(t),e)},zn.replace=function(){var t=arguments,e=ya(t[0]);return t.length<3?e:e.replace(t[1],t[2])},zn.result=function(t,e,r){var i=-1,o=(e=_i(e,t)).length;for(o||(o=1,t=n);++i<o;){var s=null==t?n:t[Bo(e[i])];s===n&&(i=o,s=r),t=Ks(s)?s.call(t):s}return t},zn.round=Tu,zn.runInContext=t,zn.sample=function(t){return($s(t)?Kn:Kr)(t)},zn.size=function(t){if(null==t)return 0;if(Hs(t))return aa(t)?hn(t):t.length;var e=mo(t);return e==T||e==C?t.size:jr(t).length},zn.snakeCase=qa,zn.some=function(t,e,r){var i=$s(t)?Be:ii;return r&&xo(t,e,r)&&(e=n),i(t,uo(e,3))},zn.sortedIndex=function(t,e){return oi(t,e)},zn.sortedIndexBy=function(t,e,n){return si(t,e,uo(n,2))},zn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=oi(t,e);if(r<n&&zs(t[r],e))return r}return-1},zn.sortedLastIndex=function(t,e){return oi(t,e,!0)},zn.sortedLastIndexBy=function(t,e,n){return si(t,e,uo(n,2),!0)},zn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=oi(t,e,!0)-1;if(zs(t[n],e))return n}return-1},zn.startCase=Xa,zn.startsWith=function(t,e,n){return t=ya(t),n=null==n?0:ar(da(n),0,t.length),e=li(e),t.slice(n,n+e.length)==e},zn.subtract=Eu,zn.sum=function(t){return t&&t.length?Xe(t,ru):0},zn.sumBy=function(t,e){return t&&t.length?Xe(t,uo(e,2)):0},zn.template=function(t,e,r){var i=zn.templateSettings;r&&xo(t,e,r)&&(e=n),t=ya(t),e=ba({},e,i,Qi);var o,s,a=ba({},e.imports,i.imports,Qi),u=Oa(a),l=Qe(a,u),c=0,f=e.interpolate||xt,h="__p += '",p=St((e.escape||xt).source+"|"+f.source+"|"+(f===Q?ht:xt).source+"|"+(e.evaluate||xt).source+"|$","g"),d="//# sourceURL="+(Vt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++oe+"]")+"\n";t.replace(p,(function(e,n,r,i,a,u){return r||(r=i),h+=t.slice(c,u).replace(bt,on),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+e.length,e})),h+="';\n";var m=Vt.call(e,"variable")&&e.variable;if(m){if(ct.test(m))throw new Tt("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(W,""):h).replace($,"$1").replace(Y,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=Qa((function(){return Et(u,d+"return "+h).apply(n,l)}));if(v.source=h,Zs(v))throw v;return v},zn.times=function(t,e){if((t=da(t))<1||t>h)return[];var n=d,r=_n(t,d);e=uo(e),t-=d;for(var i=Ge(r,e);++n<t;)e(n);return i},zn.toFinite=pa,zn.toInteger=da,zn.toLength=ma,zn.toLower=function(t){return ya(t).toLowerCase()},zn.toNumber=va,zn.toSafeInteger=function(t){return t?ar(da(t),-9007199254740991,h):0===t?t:0},zn.toString=ya,zn.toUpper=function(t){return ya(t).toUpperCase()},zn.trim=function(t,e,r){if((t=ya(t))&&(r||e===n))return Ze(t);if(!t||!(e=li(e)))return t;var i=pn(t),o=pn(e);return bi(i,tn(i,o),en(i,o)+1).join("")},zn.trimEnd=function(t,e,r){if((t=ya(t))&&(r||e===n))return t.slice(0,dn(t)+1);if(!t||!(e=li(e)))return t;var i=pn(t);return bi(i,0,en(i,pn(e))+1).join("")},zn.trimStart=function(t,e,r){if((t=ya(t))&&(r||e===n))return t.replace(it,"");if(!t||!(e=li(e)))return t;var i=pn(t);return bi(i,tn(i,pn(e))).join("")},zn.truncate=function(t,e){var r=30,i="...";if(ta(e)){var o="separator"in e?e.separator:o;r="length"in e?da(e.length):r,i="omission"in e?li(e.omission):i}var s=(t=ya(t)).length;if(sn(t)){var a=pn(t);s=a.length}if(r>=s)return t;var u=r-hn(i);if(u<1)return i;var l=a?bi(a,0,u).join(""):t.slice(0,u);if(o===n)return l+i;if(a&&(u+=l.length-u),oa(o)){if(t.slice(u).search(o)){var c,f=l;for(o.global||(o=St(o.source,ya(pt.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var h=c.index;l=l.slice(0,h===n?u:h)}}else if(t.indexOf(li(o),u)!=u){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+i},zn.unescape=function(t){return(t=ya(t))&&X.test(t)?t.replace(H,mn):t},zn.uniqueId=function(t){var e=++jt;return ya(t)+e},zn.upperCase=Ga,zn.upperFirst=Za,zn.each=ys,zn.eachRight=_s,zn.first=Ho,au(zn,(bu={},xr(zn,(function(t,e){Vt.call(zn.prototype,e)||(bu[e]=t)})),bu),{chain:!1}),zn.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){zn[t].placeholder=zn})),Se(["drop","take"],(function(t,e){$n.prototype[t]=function(r){r=r===n?1:yn(da(r),0);var i=this.__filtered__&&!e?new $n(this):this.clone();return i.__filtered__?i.__takeCount__=_n(r,i.__takeCount__):i.__views__.push({size:_n(r,d),type:t+(i.__dir__<0?"Right":"")}),i},$n.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Se(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;$n.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:uo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");$n.prototype[t]=function(){return this[n](1).value()[0]}})),Se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");$n.prototype[t]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(ru)},$n.prototype.find=function(t){return this.filter(t).head()},$n.prototype.findLast=function(t){return this.reverse().find(t)},$n.prototype.invokeMap=Zr((function(t,e){return"function"==typeof t?new $n(this):this.map((function(n){return Mr(n,t,e)}))})),$n.prototype.reject=function(t){return this.filter(Vs(uo(t)))},$n.prototype.slice=function(t,e){t=da(t);var r=this;return r.__filtered__&&(t>0||e<0)?new $n(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==n&&(r=(e=da(e))<0?r.dropRight(-e):r.take(e-t)),r)},$n.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$n.prototype.toArray=function(){return this.take(d)},xr($n.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=zn[i?"take"+("last"==e?"Right":""):e],s=i||/^find/.test(e);o&&(zn.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,u=e instanceof $n,l=a[0],c=u||$s(e),f=function(t){var e=o.apply(zn,Le([t],a));return i&&h?e[0]:e};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var h=this.__chain__,p=!!this.__actions__.length,d=s&&!h,m=u&&!p;if(!s&&c){e=m?e:new $n(this);var v=t.apply(e,a);return v.__actions__.push({func:ps,args:[f],thisArg:n}),new Wn(v,h)}return d&&m?t.apply(this,a):(v=this.thru(f),d?i?v.value()[0]:v.value():v)})})),Se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Mt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);zn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply($s(i)?i:[],t)}return this[n]((function(n){return e.apply($s(n)?n:[],t)}))}})),xr($n.prototype,(function(t,e){var n=zn[e];if(n){var r=n.name+"";Vt.call(On,r)||(On[r]=[]),On[r].push({name:e,func:n})}})),On[zi(n,2).name]=[{name:"wrapper",func:n}],$n.prototype.clone=function(){var t=new $n(this.__wrapped__);return t.__actions__=Ai(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ai(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ai(this.__views__),t},$n.prototype.reverse=function(){if(this.__filtered__){var t=new $n(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$n.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=$s(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=_n(e,t+s);break;case"takeRight":t=yn(t,e-s)}}return{start:t,end:e}}(0,i,this.__views__),s=o.start,a=o.end,u=a-s,l=r?a:s-1,c=this.__iteratees__,f=c.length,h=0,p=_n(u,this.__takeCount__);if(!n||!r&&i==u&&p==u)return di(t,this.__actions__);var d=[];t:for(;u--&&h<p;){for(var m=-1,v=t[l+=e];++m<f;){var g=c[m],y=g.iteratee,_=g.type,x=y(v);if(2==_)v=x;else if(!x){if(1==_)continue t;break t}}d[h++]=v}return d},zn.prototype.at=ds,zn.prototype.chain=function(){return hs(this)},zn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===n&&(this.__values__=ha(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?n:this.__values__[this.__index__++]}},zn.prototype.plant=function(t){for(var e,r=this;r instanceof Un;){var i=Io(r);i.__index__=0,i.__values__=n,e?o.__wrapped__=i:e=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,e},zn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $n){var e=t;return this.__actions__.length&&(e=new $n(this)),(e=e.reverse()).__actions__.push({func:ps,args:[ts],thisArg:n}),new Wn(e,this.__chain__)}return this.thru(ts)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Kt&&(zn.prototype[Kt]=function(){return this}),zn}();me?((me.exports=vn)._=vn,de._=vn):pe._=vn}).call(cf)}(sh,sh.exports);var ah=function(){var e=t.useState(0),n=e[0],r=e[1],i=t.useState(0),o=i[0],s=i[1];return ih((function(){var t=sh.exports.throttle((function(){r(window.innerWidth),s(window.innerHeight)}),50);return window.addEventListener("resize",t),window.addEventListener("change",t),t(),function(){window.removeEventListener("resize",t),window.removeEventListener("change",t)}}),[]),{windowWidth:n,windowHeight:o}},uh=function(){var e=t.useState(0),n=e[0],r=e[1];return ih((function(){var t=document.documentElement,e=function(){r(t.offsetHeight)},n=sh.exports.throttle(e,50),i=new ResizeObserver((function(t){return e()}));return i.observe(t),t.addEventListener("resize",n),t.addEventListener("change",n),n(),function(){t.addEventListener("resize",n),t.addEventListener("change",n),i.disconnect()}}),[]),n},lh=992;a("/* Breakpoints */\n.spark-text-reader {\n opacity: 0;\n overflow: hidden; }\n .spark-text-reader .word {\n opacity: 0; }\n .spark-text-reader .line {\n background-size: 200% 100%;\n background-position: 100% 0%; }\n .spark-text-reader .line:not(.highlight) {\n background-clip: text;\n -webkit-text-fill-color: transparent; }\n @media (max-width: 992px) {\n .spark-text-reader.showOnMobile .word {\n opacity: 1; } }\n @media (max-width: 992px) {\n .spark-text-reader.showOnMobile .line:not(.highlight) {\n -webkit-text-fill-color: currentColor; } }\n");a("/* Breakpoints */\n.spark-hpin {\n display: flex;\n gap: 1rem;\n white-space: nowrap;\n overflow-x: auto;\n margin: 0;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar; }\n .spark-hpin::-webkit-scrollbar {\n display: none; }\n @media (min-width: 992px) {\n .spark-hpin {\n white-space: normal;\n overflow-x: visible; } }\n");a("/* Breakpoints */\n.spark-vpin {\n display: flex;\n flex-direction: column;\n justify-content: space-between; }\n @media (min-width: 992px) {\n .spark-vpin {\n flex-direction: row; } }\n .spark-vpin__pin {\n height: 100%; }\n @media (min-width: 992px) {\n .spark-vpin__pin {\n position: sticky; } }\n .spark-vpin__items {\n display: flex;\n flex-direction: column; }\n");a("/* Breakpoints */\n.spark-voverlap {\n display: flex;\n flex-direction: row;\n gap: 6.25rem; }\n @media (max-width: 992px) {\n .spark-voverlap {\n flex-direction: column; } }\n .spark-voverlap__aside {\n max-width: 31.25rem;\n position: sticky;\n top: 0;\n height: 100%;\n width: 100%; }\n .spark-voverlap__img-wrapper {\n height: 21.875rem; }\n .spark-voverlap__img {\n border-radius: 1.5rem;\n clip-path: inset(0 0 0 0);\n object-fit: cover;\n transition: 0.6s clip-path;\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%; }\n .spark-voverlap__img.active {\n clip-path: inset(0 0 100% 0); }\n .spark-voverlap__content {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n padding-top: 7%;\n padding-bottom: 7%;\n width: 100%; }\n .spark-voverlap__content .voverlap-content-item {\n transition: 0.4s opacity; }\n @media (min-width: 992px) {\n .spark-voverlap__content .voverlap-content-item {\n opacity: 0.2; } }\n .spark-voverlap__content .voverlap-content-item.active {\n opacity: 1; }\n");a("/* Breakpoints */\n.spark-menu {\n position: relative;\n z-index: 1; }\n .spark-menu.is-open {\n z-index: 900; }\n .spark-menu.is-right .spark-menu__body {\n left: auto;\n right: calc(2rem * -1);\n transform-origin: right top; }\n .spark-menu__btn {\n position: relative;\n z-index: 3; }\n .spark-menu__body {\n border-radius: 2.625rem;\n background: rgba(245, 245, 245, 0.8);\n -webkit-backdrop-filter: blur(0.4rem);\n backdrop-filter: blur(0.4rem);\n box-sizing: border-box;\n transform: translateZ(0);\n transform-origin: left top;\n overflow: hidden;\n position: absolute;\n left: calc(2rem * -1);\n top: calc(2rem * -1);\n padding: 6rem 2rem 2rem;\n width: 30.25rem;\n z-index: 2; }\n @media (max-width: 992px) {\n .spark-menu__body {\n left: calc((2rem / 4) * -1);\n right: calc((2rem / 4) * -1);\n width: auto; } }\n .spark-menu__overlay {\n background-color: rgba(0, 0, 0, 0.2);\n transform: translateZ(0);\n position: fixed;\n left: 0;\n top: 0;\n inset: 0;\n z-index: 1; }\n");var ch={};Object.defineProperty(ch,"__esModule",{value:!0});var fh=r.default;function hh(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var ph=hh(fh);!function(t){if(!t||"undefined"==typeof window)return;const e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t,document.head.appendChild(e)}('.rfm-marquee-container {\n overflow-x: hidden;\n display: flex;\n flex-direction: row;\n position: relative;\n width: var(--width);\n transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n background: linear-gradient(to right, var(--gradient-color), transparent);\n content: "";\n height: 100%;\n position: absolute;\n width: var(--gradient-width);\n z-index: 2;\n pointer-events: none;\n touch-action: none;\n}\n.rfm-overlay::after {\n right: 0;\n top: 0;\n transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n left: 0;\n top: 0;\n}\n\n.rfm-marquee {\n flex: 0 0 auto;\n min-width: var(--min-width);\n z-index: 1;\n display: flex;\n flex-direction: row;\n align-items: center;\n animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n animation-play-state: var(--play);\n animation-delay: var(--delay);\n animation-direction: var(--direction);\n}\n@keyframes scroll {\n 0% {\n transform: translateX(0%);\n }\n 100% {\n transform: translateX(-100%);\n }\n}\n\n.rfm-initial-child-container {\n flex: 0 0 auto;\n display: flex;\n min-width: auto;\n flex-direction: row;\n align-items: center;\n}\n\n.rfm-child {\n transform: var(--transform);\n}');const dh=fh.forwardRef((function({style:t={},className:e="",autoFill:n=!1,play:r=!0,pauseOnHover:i=!1,pauseOnClick:o=!1,direction:s="left",speed:a=50,delay:u=0,loop:l=0,gradient:c=!1,gradientColor:f="white",gradientWidth:h=200,onFinish:p,onCycleComplete:d,onMount:m,children:v},g){const[y,_]=fh.useState(0),[x,b]=fh.useState(0),[w,T]=fh.useState(1),[E,k]=fh.useState(!1),P=fh.useRef(null),S=g||P,C=fh.useRef(null),A=fh.useCallback((()=>{if(C.current&&S.current){const t=S.current.getBoundingClientRect(),e=C.current.getBoundingClientRect();let r=t.width,i=e.width;"up"!==s&&"down"!==s||(r=t.height,i=e.height),T(n&&r&&i&&i<r?Math.ceil(r/i):1),_(r),b(i)}}),[n,S,s]);fh.useEffect((()=>{if(E&&(A(),C.current&&S.current)){const t=new ResizeObserver((()=>A()));return t.observe(S.current),t.observe(C.current),()=>{t&&t.disconnect()}}}),[A,S,E]),fh.useEffect((()=>{A()}),[A,v]),fh.useEffect((()=>{k(!0)}),[]),fh.useEffect((()=>{"function"==typeof m&&m()}),[]);const M=fh.useMemo((()=>n?x*w/a:x<y?y/a:x/a),[n,y,x,w,a]),O=fh.useMemo((()=>Object.assign(Object.assign({},t),{"--pause-on-hover":!r||i?"paused":"running","--pause-on-click":!r||i&&!o||o?"paused":"running","--width":"up"===s||"down"===s?"100vh":"100%","--transform":"up"===s?"rotate(-90deg)":"down"===s?"rotate(90deg)":"none"})),[t,r,i,o,s]),R=fh.useMemo((()=>({"--gradient-color":f,"--gradient-width":"number"==typeof h?`${h}px`:h})),[f,h]),D=fh.useMemo((()=>({"--play":r?"running":"paused","--direction":"left"===s?"normal":"reverse","--duration":`${M}s`,"--delay":`${u}s`,"--iteration-count":l?`${l}`:"infinite","--min-width":n?"auto":"100%"})),[r,s,M,u,l,n]),L=fh.useMemo((()=>({"--transform":"up"===s?"rotate(90deg)":"down"===s?"rotate(-90deg)":"none"})),[s]),V=fh.useCallback((t=>[...Array(Number.isFinite(t)&&t>=0?t:0)].map(((t,e)=>ph.default.createElement(fh.Fragment,{key:e},fh.Children.map(v,(t=>ph.default.createElement("div",{style:L,className:"rfm-child"},t))))))),[L,v]);return E?ph.default.createElement("div",{ref:S,style:O,className:"rfm-marquee-container "+e},c&&ph.default.createElement("div",{style:R,className:"rfm-overlay"}),ph.default.createElement("div",{className:"rfm-marquee",style:D,onAnimationIteration:d,onAnimationEnd:p},ph.default.createElement("div",{className:"rfm-initial-child-container",ref:C},fh.Children.map(v,(t=>ph.default.createElement("div",{style:L,className:"rfm-child"},t)))),V(w-1)),ph.default.createElement("div",{className:"rfm-marquee",style:D},V(w))):null}));var mh=ch.default=dh;a("/* Breakpoints */\n.spark-ribbons {\n position: relative;\n overflow: hidden;\n width: 100%; }\n\n.spark-ribbon {\n background: rgba(255, 255, 255, 0.5);\n backdrop-filter: blur(0.5rem);\n padding: 1.5rem 0;\n position: absolute;\n left: 50%;\n top: 50%;\n width: 105%;\n will-change: transform; }\n @media (max-width: 992px) {\n .spark-ribbon {\n width: 108%; } }\n .spark-ribbon:nth-child(1) {\n transform: translate(-50%, -50%) translateZ(0) rotate(11deg);\n z-index: 1; }\n .spark-ribbon:nth-child(2) {\n transform: translate(-50%, -50%) translateZ(0) rotate(-11deg);\n z-index: 2; }\n .spark-ribbon .rfm-marquee-container,\n .spark-ribbon .rfm-marquee {\n will-change: transform;\n transform: translateZ(0); }\n .spark-ribbon .rfm-marquee {\n overflow: hidden; }\n"),exports.Button=u,exports.ElasticButton=lf,exports.HPin=function(e){var n=e.children,i=e.triggerRef,o=e.pin,s=void 0===o||o,a=e.scrub,u=void 0===a?.3:a,l=e.start,c=void 0===l?"center center":l,f=e.end,h=void 0===f?"bottom top":f,p=e.markers,d=void 0!==p&&p,m=e.spacing,v=void 0===m?"1rem":m,g=e.sideSpacing,y=void 0===g?"0":g,_=e.startPos,x=void 0===_?"20%":_,b=e.endPos,w=void 0===b?1.1:b,T=t.useRef(null),E=oh("(min-width: ".concat(lh,"px)")),k=ah().windowWidth,P=uh();return ih((function(){if(Zr.registerPlugin(ff.exports.ScrollTrigger),E){var t=Zr.context((function(){var t,e,n=Zr.timeline(),r=null!==(e=null===(t=T.current)||void 0===t?void 0:t.scrollWidth)&&void 0!==e?e:"90%",o=k-Number(r)*w;n.fromTo(T.current,{x:x},{x:o}),ff.exports.ScrollTrigger.create({trigger:(null==i?void 0:i.current)?i.current:T.current,start:c,end:h,pin:s,scrub:u,animation:n,markers:d})}),T);return function(){t&&t.revert()}}}),[E,k,P]),r.default.createElement("div",{className:"spark-hpin",ref:T,style:{gap:v,margin:"0 calc(".concat(E?0:y," * -1)"),padding:"0 ".concat(E?0:y)}},n)},exports.MagneticButton=Kr,exports.Menu=function(t){var e=t.button,n=t.children,i=t.isOpen,o=void 0!==i&&i,s=t.withOverlay,a=void 0!==s&&s,u=t.closeOnOverlayClick,l=void 0===u||u,c=t.menuClass,f=void 0===c?"":c,h=t.bodyClass,p=void 0===h?"":h,d=t.overlayClass,m=void 0===d?"":d,v=t.alignment,g=void 0===v?"left":v,y=t.onClose,_=e?r.default.cloneElement(e,{className:"spark-menu__btn"}):null;return r.default.createElement("div",{className:"spark-menu ".concat("right"===g?"is-right":""," ").concat(o?"is-open":""," ").concat(f)},_,r.default.createElement(uf,null,o&&r.default.createElement(r.default.Fragment,null,r.default.createElement(tf.div,{className:"spark-menu__body ".concat(p),initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:{ease:"anticipate",scale:{duration:.3,delay:.2},opacity:{duration:.25,delay:.2}}},exit:{scale:0,opacity:0,transition:{scale:{duration:.3},opacity:{duration:.25}}},key:"body"},r.default.createElement(tf.div,{initial:{opacity:0,y:"50%"},animate:{opacity:1,y:0,transition:{ease:"easeInOut",duration:.5,delay:.6}},exit:{opacity:0,transition:{duration:.1,delay:0}}},n)),a&&r.default.createElement(tf.div,{className:"spark-menu__overlay ".concat(m),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{opacity:{delay:.4}}},onClick:l?function(){return y(!1)}:void 0,style:{cursor:l?"pointer":"default"}}))))},exports.Ribbons=function(e){var n=e.children,i=e.bottomDirection,o=void 0===i?"left":i,s=e.topDirection,a=void 0===s?"right":s,u=e.speed,l=void 0===u?50:u,c=e.pauseOnHover,f=void 0!==c&&c,h=e.containerClass,p=void 0===h?"":h,d=e.ribbonClass,m=void 0===d?"":d,v=t.useRef(null),g=t.useRef(null),y=t.useState(0),_=y[0],x=y[1],b=ah(),w=b.windowHeight,T=b.windowWidth;return t.useEffect((function(){var t=new ResizeObserver((function(){var t,e;x(null!==(e=null===(t=g.current)||void 0===t?void 0:t.offsetHeight)&&void 0!==e?e:0)}));return t.observe(null==g?void 0:g.current),v.current&&function(){var t,e=null===(t=g.current)||void 0===t?void 0:t.getBoundingClientRect();v.current&&(v.current.style.height=(null==e?void 0:e.height)+"px")}(),function(){t.disconnect()}}),[_,w,T]),r.default.createElement("div",{className:"spark-ribbons ".concat(p),ref:v},r.default.createElement("div",{className:"spark-ribbon ".concat(m),ref:g},r.default.createElement(mh,{direction:o,speed:l,pauseOnHover:f,gradient:!1,autoFill:!0},n)),r.default.createElement("div",{className:"spark-ribbon ".concat(m&&m)},r.default.createElement(mh,{direction:a,speed:l,pauseOnHover:f,gradient:!1,autoFill:!0},n)))},exports.TextReader=function(e){var n=e.text,i=e.textColor,o=void 0===i?"black":i,s=e.textColorIdle,a=void 0===s?"rgba(0, 0, 0, 0.5)":s,u=e.pin,l=void 0===u||u,c=e.pinRef,f=e.start,h=void 0===f?"top 30%":f,p=e.end,d=void 0===p?"bottom top":p,m=e.responsive,v=void 0===m||m,g=e.withMask,y=void 0!==g&&g,_=e.highlight,x=void 0!==_&&_,b=e.highlightColor,w=void 0===b?"":b,T=e.onComplete,E=t.useRef(null),k=oh("(min-width: ".concat(lh,"px)")),P=ah().windowWidth;return ih((function(){var t=null;return E.current&&(E.current.style.opacity="1"),Zr.registerPlugin(ff.exports.ScrollTrigger),(k||v)&&(!function(){var t,e,n;if(y){var r=rh.create(null!==(t=E.current)&&void 0!==t?t:"",{types:"lines",tagName:"span",lineClass:"line ".concat(x?"highlight":"")});(k||v)&&(null===(e=r.lines)||void 0===e||e.forEach((function(t){t.style.backgroundImage="linear-gradient(to right, ".concat(x?w:o," 0%, \n ").concat(x?w:o," 50%, ").concat(a," 50%, ").concat(a," 100%)")})))}else rh.create(null!==(n=E.current)&&void 0!==n?n:"",{types:"words",tagName:"span"})}(),t=Zr.context((function(){var t,e;if(y){var n=null===(t=E.current)||void 0===t?void 0:t.querySelectorAll(".line"),r=Zr.timeline();null==n||n.forEach((function(t){x&&(t.style.display="inline-block",t.style.width="auto",t.style.color=o),r.to(t,{backgroundPosition:"0% 0%"})})),r.to(E.current,{z:0,duration:1}),ff.exports.ScrollTrigger.create({trigger:c.current,start:h,end:d,pin:!!l&&(!c.current||c.current),scrub:1,animation:r,invalidateOnRefresh:!0,onUpdate:function(t){var e=t.progress,n=t.direction;T&&T(e>=1&&1===n)}})}else{var i=null===(e=E.current)||void 0===e?void 0:e.querySelectorAll(".word"),s=Zr.timeline();null==i||i.forEach((function(t){s.to(t,{opacity:1})})),s.to(E.current,{z:0,duration:1}),ff.exports.ScrollTrigger.create({trigger:c.current,start:h,end:d,pin:!!l&&(!c.current||c.current),scrub:1,animation:s,invalidateOnRefresh:!0,onUpdate:function(t){var e=t.progress,n=t.direction;T&&T(e>=1&&1===n)}})}}),E)),function(){t&&t.revert()}}),[k,c.current,P]),r.default.createElement("p",{className:"spark-text-reader ".concat(v?void 0:"showOnMobile"),ref:E},n)},exports.TextReveal=function(e){var n=e.children,i=e.duration,o=void 0===i?3:i,s=e.start,a=void 0===s?"top 90%":s,u=e.scrub,l=void 0!==u&&u,c=e.toggleActions,f=void 0===c?"play none none none":c,h=e.delay,p=void 0===h?0:h,d=t.useRef(null),m=ah().windowWidth,v=oh("(min-width: ".concat(lh,"px)"));return ih((function(){var t=null,e=null;return Zr.registerPlugin(ff.exports.ScrollTrigger),t=Zr.context((function(){e=setTimeout((function(){var t;!function(){var t;rh.create(null!==(t=d.current)&&void 0!==t?t:"",{types:"lines",tagName:"div"})}();var e=null===(t=d.current)||void 0===t?void 0:t.querySelectorAll(".line"),n=Zr.timeline();n.to(d.current,{opacity:1,duration:0,delay:p}),ff.exports.ScrollTrigger.create({trigger:d.current,start:a,toggleActions:f,scrub:l,animation:n}),e&&e.forEach((function(t){var e,r=document.createElement("div");r.classList.add("spark-text-reveal__container"),r.append(t),null===(e=null==d?void 0:d.current)||void 0===e||e.append(r),t.classList.add("spark-text-reveal__content"),n.to(t,{duration:o,y:0,rotate:0,ease:"expo.out"},">-90%")}))}),500)}),d),function(){ff.exports.ScrollTrigger.killAll(),t&&(t.revert(),t=null),e&&(clearTimeout(e),e=null)}}),[m,v]),r.default.createElement("div",{className:"spark-text-reveal",ref:d},n)},exports.VOverlap=function(e){var n=e.images,i=e.content,o=e.imagesWrapperClass,s=void 0===o?"spark-voverlap-img-wrapper":o,a=e.contentImgClass,u=void 0===a?"voverlap-content-img":a,l=e.start,c=void 0===l?"top 70%":l,f=e.gap,h=void 0===f?[288,80]:f,p=t.useRef(null),d=t.useRef(null),m=t.useState(0),v=m[0],g=m[1],y=ah().windowWidth,_=oh("(min-width: ".concat(lh,"px)"));return ih((function(){var t=null,e=null;if(Zr.registerPlugin(ff.exports.ScrollTrigger),_){var n=d.current;n&&(n.style.top="calc((100% - ".concat(n.clientHeight,"px) / 2)")),t=Zr.context((function(){var t,n=document.documentElement;(e=new ResizeObserver((function(){g(n.scrollHeight)}))).observe(n);var r=null===(t=null==p?void 0:p.current)||void 0===t?void 0:t.querySelectorAll(".voverlap-content-item");null==r||r.forEach((function(t,e){var n,i=null===(n=null==p?void 0:p.current)||void 0===n?void 0:n.querySelectorAll(".spark-voverlap-img")[e];ff.exports.ScrollTrigger.create({trigger:t,id:"slide-".concat(e+1),start:c,end:function(){return"+=".concat(t.clientHeight+h[0])},toggleActions:"play reverse none reverse",toggleClass:{targets:t,className:"active"},invalidateOnRefresh:!0,onLeave:function(){e+1!==r.length&&i.classList.add("active")},onEnterBack:function(){i.classList.remove("active")}})}))}),p)}return function(){t&&(t.revert(),null==e||e.disconnect())}}),[_,y,v]),t.useEffect((function(){var t=document.querySelectorAll(".".concat(u));_?t.forEach((function(t){t.style.display="none"})):t.forEach((function(t){t.style.display="block"}))}),[_]),r.default.createElement("div",{className:"spark-voverlap",ref:p},_&&r.default.createElement("div",{className:"spark-voverlap__aside",ref:d},n.length&&r.default.createElement("div",{className:"spark-voverlap__img-wrapper ".concat(s)},n.map((function(t,e){return r.default.createElement("img",{className:"spark-voverlap__img spark-voverlap-img",src:t.url,alt:t.alt?t.alt:"",key:e,style:{zIndex:n.length-e}})})))),i&&r.default.createElement("div",{className:"spark-voverlap__content",style:{gap:"".concat(_?h[0]:h[1],"px")}},i.map((function(t,e){return r.default.createElement("div",{className:"voverlap-content-item",key:e},t)}))))},exports.VPin=function(t){var e=t.children,n=t.items,i=t.itemsSpacing,a=void 0===i?"1rem":i,u=t.contentGap,l=void 0===u?"2rem":u,c=t.topGap,f=void 0===c?"6.25rem":c,h=s(t,["children","items","itemsSpacing","contentGap","topGap"]);return r.default.createElement("div",o({className:"spark-vpin",style:{gap:l}},h),r.default.createElement("div",{className:"spark-vpin__pin",style:{top:f}},e),r.default.createElement("div",{className:"spark-vpin__items",style:{gap:a}},n))},exports.useDocumentHeight=uh,exports.useIsomorphicLayoutEffect=ih,exports.useMediaQuery=oh,exports.useWindowSize=ah;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),n=require("gsap"),t=require("framer-motion"),r=require("gsap/dist/ScrollTrigger"),a=require("split-type"),i=require("lodash"),o=require("react-fast-marquee");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=l(e),s=l(n),d=l(a),u=l(o),p=function(){return p=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},p.apply(this,arguments)};function v(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t}function m(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}"function"==typeof SuppressedError&&SuppressedError;m(".spark-button {\n background: transparent;\n border: 1px solid black;\n border-radius: 2rem;\n color: black;\n cursor: pointer;\n display: block;\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 1;\n padding: 1rem 2rem;\n text-align: center;\n text-decoration: none;\n transition: 0.3s color, 0.3s background-color;\n}\n.spark-button:hover {\n background-color: black;\n color: white;\n}");var f=e.forwardRef((function(e,n){var t=e.children,r=e.className,a=void 0===r?"":r,i=e.as,o=void 0===i?"button":i,l=v(e,["children","className","as"]);return c.default.createElement(o,p({ref:n,className:"spark-button ".concat(a)},l),t)}));m(".spark-magnetic {\n display: inline-block;\n position: relative;\n}");var g=e.forwardRef((function(n,t){var r=n.children,a=n.className,i=void 0===a?"":a,o=n.button,l=n.movement,d=void 0===l?.5:l,u=v(n,["children","className","button","movement"]),m=e.useRef(null),g=e.useRef(null),h=o?c.default.cloneElement(o,p({ref:g},u)):c.default.createElement(f,p({ref:g},u),r);return c.default.createElement("div",{className:"spark-magnetic ".concat(i),ref:m,onMouseMove:function(e){var n=m.current;if(n){var t=n.getBoundingClientRect(),r=e.pageX-t.left,a=e.pageY-t.top,i=window.scrollY||document.documentElement.scrollTop;s.default.to(g.current,{duration:.3,x:(r-t.width/2)*d,y:(a-t.height/2-i)*d,ease:"expo.out"})}},onMouseOut:function(){s.default.to(g.current,{duration:.4,x:0,y:0,ease:"elastic.out(1, 0.5)"})}},h)}));m(".spark-elastic {\n background-color: transparent;\n border: 0 none;\n margin: 0;\n padding: 0;\n}\n.spark-elastic > div {\n height: 100%;\n}\n.spark-elastic__stack {\n display: flex;\n}\n.spark-elastic__button {\n background: transparent;\n border: 1px solid black;\n border-radius: 2rem;\n color: black;\n cursor: pointer;\n display: block;\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 1;\n padding: 1rem 2rem;\n text-decoration: none;\n}\n.spark-elastic__icon {\n border-radius: 100%;\n box-shadow: 0 0 0 1px inset black;\n height: 100%;\n width: 3.35rem;\n}");var h=e.forwardRef((function(n,r){var a=n.children,i=n.className,o=void 0===i?"":i,l=n.as,s=void 0===l?"button":l,d=n.button,u=n.icon,m=void 0===u?c.default.createElement("div",{className:"spark-elastic__icon"}):u,f=v(n,["children","className","as","button","icon"]),g=e.useState(!1),h=g[0],b=g[1],k=function(){return m},y=d?c.default.cloneElement(d):c.default.createElement("div",{className:"spark-elastic__button"},a);return c.default.createElement(s,p({ref:r,className:"spark-elastic ".concat(o)},f),c.default.createElement("div",{className:"spark-elastic__stack",onMouseEnter:function(){return b(!0)},onMouseLeave:function(){return b(!1)}},c.default.createElement(t.AnimatePresence,{mode:"wait"},c.default.createElement(t.motion.div,{key:h?"hover":"idle",initial:{x:20},animate:{x:0},transition:{type:"spring",damping:7,stiffness:300,restDelta:.1}},h&&c.default.createElement(k,null))),c.default.createElement(t.AnimatePresence,{mode:"wait"},c.default.createElement(t.motion.div,{key:h?"hover":"idle",initial:{x:20},animate:{x:0},transition:{duration:.3,ease:"circOut"}},y)),c.default.createElement(t.AnimatePresence,{mode:"wait"},c.default.createElement(t.motion.div,{key:h?"hover":"idle",initial:{x:10},animate:{x:0},transition:{type:"spring",damping:7,stiffness:300,restDelta:.1}},!h&&c.default.createElement(k,null)))))}));m(".spark-text-reveal {\n opacity: 0;\n}\n.spark-text-reveal__container {\n overflow: hidden;\n}\n.spark-text-reveal__content {\n transform: translate(0, 100%) rotate(10deg);\n transform-origin: left;\n}");var b="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function k(n){var t=e.useState(!1),r=t[0],a=t[1];return e.useEffect((function(){var e=window.matchMedia(n);function t(){a(e.matches)}return e.addEventListener("change",t,!1),t(),function(){return e.removeEventListener("change",t,!1)}}),[n]),r}var y=function(){var n=e.useState(0),t=n[0],r=n[1],a=e.useState(0),o=a[0],l=a[1];return b((function(){var e=i.throttle((function(){r(window.innerWidth),l(window.innerHeight)}),50);return window.addEventListener("resize",e),window.addEventListener("change",e),e(),function(){window.removeEventListener("resize",e),window.removeEventListener("change",e)}}),[]),{windowWidth:t,windowHeight:o}},x=function(){var n=e.useState(0),t=n[0],r=n[1];return b((function(){var e=document.documentElement,n=function(){r(e.offsetHeight)},t=i.throttle(n,50),a=new ResizeObserver((function(e){return n()}));return a.observe(e),e.addEventListener("resize",t),e.addEventListener("change",t),t(),function(){e.addEventListener("resize",t),e.addEventListener("change",t),a.disconnect()}}),[]),t},w=992;m("/* Breakpoints */\n.spark-text-reader {\n opacity: 0;\n overflow: hidden;\n}\n.spark-text-reader .word {\n opacity: 0;\n}\n.spark-text-reader .line {\n background-size: 200% 100%;\n background-position: 100% 0%;\n}\n.spark-text-reader .line:not(.highlight) {\n background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n@media (max-width: 992px) {\n .spark-text-reader.showOnMobile .word {\n opacity: 1;\n }\n}\n@media (max-width: 992px) {\n .spark-text-reader.showOnMobile .line:not(.highlight) {\n -webkit-text-fill-color: currentColor;\n }\n}");m("/* Breakpoints */\n.spark-hpin {\n display: flex;\n gap: 1rem;\n white-space: nowrap;\n overflow-x: auto;\n margin: 0;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n}\n.spark-hpin::-webkit-scrollbar {\n display: none;\n}\n@media (min-width: 992px) {\n .spark-hpin {\n white-space: normal;\n overflow-x: visible;\n }\n}");m("/* Breakpoints */\n.spark-vpin {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n@media (min-width: 992px) {\n .spark-vpin {\n flex-direction: row;\n }\n}\n.spark-vpin__pin {\n height: 100%;\n}\n@media (min-width: 992px) {\n .spark-vpin__pin {\n position: sticky;\n }\n}\n.spark-vpin__items {\n display: flex;\n flex-direction: column;\n}");m("/* Breakpoints */\n.spark-voverlap {\n display: flex;\n flex-direction: row;\n gap: 6.25rem;\n}\n@media (max-width: 992px) {\n .spark-voverlap {\n flex-direction: column;\n }\n}\n.spark-voverlap__aside {\n max-width: 31.25rem;\n position: sticky;\n top: 0;\n height: 100%;\n width: 100%;\n}\n.spark-voverlap__img-wrapper {\n height: 21.875rem;\n}\n.spark-voverlap__img {\n border-radius: 1.5rem;\n clip-path: inset(0 0 0 0);\n object-fit: cover;\n transition: 0.6s clip-path;\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%;\n}\n.spark-voverlap__img.active {\n clip-path: inset(0 0 100% 0);\n}\n.spark-voverlap__content {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n padding-top: 7%;\n padding-bottom: 7%;\n width: 100%;\n}\n.spark-voverlap__content .voverlap-content-item {\n transition: 0.4s opacity;\n}\n@media (min-width: 992px) {\n .spark-voverlap__content .voverlap-content-item {\n opacity: 0.2;\n }\n}\n.spark-voverlap__content .voverlap-content-item.active {\n opacity: 1;\n}");m("/* Breakpoints */\n.spark-menu {\n position: relative;\n z-index: 1;\n}\n.spark-menu.is-open {\n z-index: 900;\n}\n.spark-menu.is-right .spark-menu__body {\n left: auto;\n right: calc(2rem * -1);\n transform-origin: right top;\n}\n.spark-menu__btn {\n position: relative;\n z-index: 3;\n}\n.spark-menu__body {\n border-radius: 2.625rem;\n background: rgba(245, 245, 245, 0.8);\n -webkit-backdrop-filter: blur(0.4rem);\n backdrop-filter: blur(0.4rem);\n box-sizing: border-box;\n transform: translateZ(0);\n transform-origin: left top;\n overflow: hidden;\n position: absolute;\n left: calc(2rem * -1);\n top: calc(2rem * -1);\n padding: 6rem 2rem 2rem;\n width: 30.25rem;\n z-index: 2;\n}\n@media (max-width: 992px) {\n .spark-menu__body {\n left: calc(2rem / 4 * -1);\n right: calc(2rem / 4 * -1);\n width: auto;\n }\n}\n.spark-menu__overlay {\n background-color: rgba(0, 0, 0, 0.2);\n transform: translateZ(0);\n position: fixed;\n left: 0;\n top: 0;\n inset: 0;\n z-index: 1;\n}");m("/* Breakpoints */\n.spark-ribbons {\n position: relative;\n overflow: hidden;\n width: 100%;\n}\n\n.spark-ribbon {\n background: rgba(255, 255, 255, 0.5);\n backdrop-filter: blur(0.5rem);\n padding: 1.5rem 0;\n position: absolute;\n left: 50%;\n top: 50%;\n width: 105%;\n will-change: transform;\n}\n@media (max-width: 992px) {\n .spark-ribbon {\n width: 108%;\n }\n}\n.spark-ribbon:nth-child(1) {\n transform: translate(-50%, -50%) translateZ(0) rotate(11deg);\n z-index: 1;\n}\n.spark-ribbon:nth-child(2) {\n transform: translate(-50%, -50%) translateZ(0) rotate(-11deg);\n z-index: 2;\n}\n.spark-ribbon .rfm-marquee-container,\n.spark-ribbon .rfm-marquee {\n will-change: transform;\n transform: translateZ(0);\n}\n.spark-ribbon .rfm-marquee {\n overflow: hidden;\n}"),exports.Button=f,exports.ElasticButton=h,exports.HPin=function(t){var a=t.children,i=t.triggerRef,o=t.pin,l=void 0===o||o,s=t.scrub,d=void 0===s?.3:s,u=t.start,p=void 0===u?"center center":u,v=t.end,m=void 0===v?"bottom top":v,f=t.markers,g=void 0!==f&&f,h=t.spacing,E=void 0===h?"1rem":h,_=t.sideSpacing,N=void 0===_?"0":_,S=t.startPos,O=void 0===S?"20%":S,R=t.endPos,C=void 0===R?1.1:R,z=e.useRef(null),T=k("(min-width: ".concat(w,"px)")),L=y().windowWidth,P=x();return b((function(){if(n.gsap.registerPlugin(r.ScrollTrigger),T){var e=n.gsap.context((function(){var e,t,a=n.gsap.timeline(),o=null!==(t=null===(e=z.current)||void 0===e?void 0:e.scrollWidth)&&void 0!==t?t:"90%",c=L-Number(o)*C;a.fromTo(z.current,{x:O},{x:c}),r.ScrollTrigger.create({trigger:(null==i?void 0:i.current)?i.current:z.current,start:p,end:m,pin:l,scrub:d,animation:a,markers:g})}),z);return function(){e&&e.revert()}}}),[T,L,P]),c.default.createElement("div",{className:"spark-hpin",ref:z,style:{gap:E,margin:"0 calc(".concat(T?0:N," * -1)"),padding:"0 ".concat(T?0:N)}},a)},exports.MagneticButton=g,exports.Menu=function(e){var n=e.button,r=e.children,a=e.isOpen,i=void 0!==a&&a,o=e.withOverlay,l=void 0!==o&&o,s=e.closeOnOverlayClick,d=void 0===s||s,u=e.menuClass,p=void 0===u?"":u,v=e.bodyClass,m=void 0===v?"":v,f=e.overlayClass,g=void 0===f?"":f,h=e.alignment,b=void 0===h?"left":h,k=e.onClose,y=n?c.default.cloneElement(n,{className:"spark-menu__btn"}):null;return c.default.createElement("div",{className:"spark-menu ".concat("right"===b?"is-right":""," ").concat(i?"is-open":""," ").concat(p)},y,c.default.createElement(t.AnimatePresence,null,i&&c.default.createElement(c.default.Fragment,null,c.default.createElement(t.motion.div,{className:"spark-menu__body ".concat(m),initial:{scale:0,opacity:0},animate:{scale:1,opacity:1,transition:{ease:"anticipate",scale:{duration:.3,delay:.2},opacity:{duration:.25,delay:.2}}},exit:{scale:0,opacity:0,transition:{scale:{duration:.3},opacity:{duration:.25}}},key:"body"},c.default.createElement(t.motion.div,{initial:{opacity:0,y:"50%"},animate:{opacity:1,y:0,transition:{ease:"easeInOut",duration:.5,delay:.6}},exit:{opacity:0,transition:{duration:.1,delay:0}}},r)),l&&c.default.createElement(t.motion.div,{className:"spark-menu__overlay ".concat(g),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{opacity:{delay:.4}}},onClick:d?function(){return k(!1)}:void 0,style:{cursor:d?"pointer":"default"}}))))},exports.Ribbons=function(n){var t=n.children,r=n.bottomDirection,a=void 0===r?"left":r,i=n.topDirection,o=void 0===i?"right":i,l=n.speed,s=void 0===l?50:l,d=n.pauseOnHover,p=void 0!==d&&d,v=n.containerClass,m=void 0===v?"":v,f=n.ribbonClass,g=void 0===f?"":f,h=e.useRef(null),b=e.useRef(null),k=e.useState(0),x=k[0],w=k[1],E=y(),_=E.windowHeight,N=E.windowWidth;return e.useEffect((function(){var e=new ResizeObserver((function(){var e,n;w(null!==(n=null===(e=b.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==n?n:0)}));return e.observe(null==b?void 0:b.current),h.current&&function(){var e,n=null===(e=b.current)||void 0===e?void 0:e.getBoundingClientRect();h.current&&(h.current.style.height=(null==n?void 0:n.height)+"px")}(),function(){e.disconnect()}}),[x,_,N]),c.default.createElement("div",{className:"spark-ribbons ".concat(m),ref:h},c.default.createElement("div",{className:"spark-ribbon ".concat(g),ref:b},c.default.createElement(u.default,{direction:a,speed:s,pauseOnHover:p,gradient:!1,autoFill:!0},t)),c.default.createElement("div",{className:"spark-ribbon ".concat(g&&g)},c.default.createElement(u.default,{direction:o,speed:s,pauseOnHover:p,gradient:!1,autoFill:!0},t)))},exports.TextReader=function(t){var a=t.text,i=t.textColor,o=void 0===i?"black":i,l=t.textColorIdle,s=void 0===l?"rgba(0, 0, 0, 0.5)":l,u=t.pin,p=void 0===u||u,v=t.pinRef,m=t.start,f=void 0===m?"top 30%":m,g=t.end,h=void 0===g?"bottom top":g,x=t.responsive,E=void 0===x||x,_=t.withMask,N=void 0!==_&&_,S=t.highlight,O=void 0!==S&&S,R=t.highlightColor,C=void 0===R?"":R,z=t.onComplete,T=e.useRef(null),L=k("(min-width: ".concat(w,"px)")),P=y().windowWidth;return b((function(){var e=null;return T.current&&(T.current.style.opacity="1"),n.gsap.registerPlugin(r.ScrollTrigger),(L||E)&&(!function(){var e,n,t;if(N){var r=d.default.create(null!==(e=T.current)&&void 0!==e?e:"",{types:"lines",tagName:"span",lineClass:"line ".concat(O?"highlight":"")});(L||E)&&(null===(n=r.lines)||void 0===n||n.forEach((function(e){e.style.backgroundImage="linear-gradient(to right, ".concat(O?C:o," 0%, \n ").concat(O?C:o," 50%, ").concat(s," 50%, ").concat(s," 100%)")})))}else d.default.create(null!==(t=T.current)&&void 0!==t?t:"",{types:"words",tagName:"span"})}(),e=n.gsap.context((function(){var e,t;if(N){var a=null===(e=T.current)||void 0===e?void 0:e.querySelectorAll(".line"),i=n.gsap.timeline();null==a||a.forEach((function(e){O&&(e.style.display="inline-block",e.style.width="auto",e.style.color=o),i.to(e,{backgroundPosition:"0% 0%"})})),i.to(T.current,{z:0,duration:1}),r.ScrollTrigger.create({trigger:v.current,start:f,end:h,pin:!!p&&(!v.current||v.current),scrub:1,animation:i,invalidateOnRefresh:!0,onUpdate:function(e){var n=e.progress,t=e.direction;z&&z(n>=1&&1===t)}})}else{var l=null===(t=T.current)||void 0===t?void 0:t.querySelectorAll(".word"),c=n.gsap.timeline();null==l||l.forEach((function(e){c.to(e,{opacity:1})})),c.to(T.current,{z:0,duration:1}),r.ScrollTrigger.create({trigger:v.current,start:f,end:h,pin:!!p&&(!v.current||v.current),scrub:1,animation:c,invalidateOnRefresh:!0,onUpdate:function(e){var n=e.progress,t=e.direction;z&&z(n>=1&&1===t)}})}}),T)),function(){e&&e.revert()}}),[L,v.current,P]),c.default.createElement("p",{className:"spark-text-reader ".concat(E?void 0:"showOnMobile"),ref:T},a)},exports.TextReveal=function(t){var a=t.children,i=t.duration,o=void 0===i?3:i,l=t.start,s=void 0===l?"top 90%":l,u=t.scrub,p=void 0!==u&&u,v=t.toggleActions,m=void 0===v?"play none none none":v,f=t.delay,g=void 0===f?0:f,h=e.useRef(null),x=y().windowWidth,E=k("(min-width: ".concat(w,"px)"));return b((function(){var e=null,t=null;return n.gsap.registerPlugin(r.ScrollTrigger),e=n.gsap.context((function(){t=setTimeout((function(){var e;!function(){var e;d.default.create(null!==(e=h.current)&&void 0!==e?e:"",{types:"lines",tagName:"div"})}();var t=null===(e=h.current)||void 0===e?void 0:e.querySelectorAll(".line"),a=n.gsap.timeline();a.to(h.current,{opacity:1,duration:0,delay:g}),r.ScrollTrigger.create({trigger:h.current,start:s,toggleActions:m,scrub:p,animation:a}),t&&t.forEach((function(e){var n,t=document.createElement("div");t.classList.add("spark-text-reveal__container"),t.append(e),null===(n=null==h?void 0:h.current)||void 0===n||n.append(t),e.classList.add("spark-text-reveal__content"),a.to(e,{duration:o,y:0,rotate:0,ease:"expo.out"},">-90%")}))}),500)}),h),function(){r.ScrollTrigger.killAll(),e&&(e.revert(),e=null),t&&(clearTimeout(t),t=null)}}),[x,E]),c.default.createElement("div",{className:"spark-text-reveal",ref:h},a)},exports.VOverlap=function(t){var a=t.images,i=t.content,o=t.imagesWrapperClass,l=void 0===o?"spark-voverlap-img-wrapper":o,s=t.contentImgClass,d=void 0===s?"voverlap-content-img":s,u=t.start,p=void 0===u?"top 70%":u,v=t.gap,m=void 0===v?[288,80]:v,f=e.useRef(null),g=e.useRef(null),h=e.useState(0),x=h[0],E=h[1],_=y().windowWidth,N=k("(min-width: ".concat(w,"px)"));return b((function(){var e=null,t=null;if(n.gsap.registerPlugin(r.ScrollTrigger),N){var a=g.current;a&&(a.style.top="calc((100% - ".concat(a.clientHeight,"px) / 2)")),e=n.gsap.context((function(){var e,n=document.documentElement;(t=new ResizeObserver((function(){E(n.scrollHeight)}))).observe(n);var a=null===(e=null==f?void 0:f.current)||void 0===e?void 0:e.querySelectorAll(".voverlap-content-item");null==a||a.forEach((function(e,n){var t,i=null===(t=null==f?void 0:f.current)||void 0===t?void 0:t.querySelectorAll(".spark-voverlap-img")[n];r.ScrollTrigger.create({trigger:e,id:"slide-".concat(n+1),start:p,end:function(){return"+=".concat(e.clientHeight+m[0])},toggleActions:"play reverse none reverse",toggleClass:{targets:e,className:"active"},invalidateOnRefresh:!0,onLeave:function(){n+1!==a.length&&i.classList.add("active")},onEnterBack:function(){i.classList.remove("active")}})}))}),f)}return function(){e&&(e.revert(),null==t||t.disconnect())}}),[N,_,x]),e.useEffect((function(){var e=document.querySelectorAll(".".concat(d));N?e.forEach((function(e){e.style.display="none"})):e.forEach((function(e){e.style.display="block"}))}),[N]),c.default.createElement("div",{className:"spark-voverlap",ref:f},N&&c.default.createElement("div",{className:"spark-voverlap__aside",ref:g},a.length&&c.default.createElement("div",{className:"spark-voverlap__img-wrapper ".concat(l)},a.map((function(e,n){return c.default.createElement("img",{className:"spark-voverlap__img spark-voverlap-img",src:e.url,alt:e.alt?e.alt:"",key:n,style:{zIndex:a.length-n}})})))),i&&c.default.createElement("div",{className:"spark-voverlap__content",style:{gap:"".concat(N?m[0]:m[1],"px")}},i.map((function(e,n){return c.default.createElement("div",{className:"voverlap-content-item",key:n},e)}))))},exports.VPin=function(e){var n=e.children,t=e.items,r=e.itemsSpacing,a=void 0===r?"1rem":r,i=e.contentGap,o=void 0===i?"2rem":i,l=e.topGap,s=void 0===l?"6.25rem":l,d=v(e,["children","items","itemsSpacing","contentGap","topGap"]);return c.default.createElement("div",p({className:"spark-vpin",style:{gap:o}},d),c.default.createElement("div",{className:"spark-vpin__pin",style:{top:s}},n),c.default.createElement("div",{className:"spark-vpin__items",style:{gap:a}},t))},exports.useDocumentHeight=x,exports.useIsomorphicLayoutEffect=b,exports.useMediaQuery=k,exports.useWindowSize=y;
48
2
  //# sourceMappingURL=index.js.map