"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2495],{6833:(t,e,n)=>{n.d(e,{F:()=>a,e:()=>r});var i=n(55141);function r(t){return{point:{x:t.pageX,y:t.pageY}}}let a=t=>e=>(0,i.M)(e)&&t(e,r(e))},7112:(t,e,n)=>{n.d(e,{p:()=>i});let i=t=>Array.isArray(t)},15874:(t,e,n)=>{n.d(e,{n:()=>P});var i=n(73934),r=n(94322),a=n(29792),s=n(38561);function o(t,e){let n=(0,s.K)(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}var l=n(6833);function u(t,e,n){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===n);let a=r["onHover"+n];a&&i.Gt.postRender(()=>a(e,(0,l.e)(e)))}class h extends r.X{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){let[i,r,s]=o(t,n);return i.forEach(t=>{let n,i=!1,s=!1,o=e=>{n&&(n(e),n=void 0),t.removeEventListener("pointerleave",u)},l=t=>{i=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),s&&(s=!1,o(t))},u=t=>{if("touch"!==t.pointerType){if(i){s=!0;return}o(t)}};t.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||(0,a.D)())return;s=!1;let o=e(t,i);"function"==typeof o&&(n=o,t.addEventListener("pointerleave",u,r))},r),t.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",l,r)},r)}),s}(t,(t,e)=>(u(this.node,e,"Start"),t=>u(this.node,t,"End"))))}unmount(){}}var d=n(32494),m=n(23656);class c extends r.X{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=(0,m.F)((0,d.k)(this.node.current,"focus",()=>this.onFocus()),(0,d.k)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var p=n(81402);let f=(t,e)=>!!e&&(t===e||f(t,e.parentElement));var v=n(55141),y=n(51945);let g=new WeakSet;function w(t){return e=>{"Enter"===e.key&&t(e)}}function b(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function x(t){return(0,v.M)(t)&&!(0,a.D)()}let T=new WeakSet;function S(t,e,n){let{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===n);let a=r["onTap"+("End"===n?"":n)];a&&i.Gt.postRender(()=>a(e,(0,l.e)(e)))}class k extends r.X{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:n}=this.node.props;this.unmount=function(t,e,n={}){let[i,r,a]=o(t,n),s=t=>{let i=t.currentTarget;if(!x(t)||T.has(t))return;g.add(i),n.stopPropagation&&T.add(t);let a=e(i,t),s=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),g.has(i)&&g.delete(i),x(t)&&"function"==typeof a&&a(t,{success:e})},o=t=>{s(t,i===window||i===document||n.useGlobalTarget||f(i,t.target))},l=t=>{s(t,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};return i.forEach(t=>{(n.useGlobalTarget?window:t).addEventListener("pointerdown",s,r),(0,p.s)(t)&&(t.addEventListener("focus",t=>((t,e)=>{let n=t.currentTarget;if(!n)return;let i=w(()=>{if(g.has(n))return;b(n,"down");let t=w(()=>{b(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>b(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)})(t,r)),(0,y.c)(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),a}(t,(t,e)=>(S(this.node,e,"Start"),(t,{success:e})=>S(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:n?.tap===!1})}unmount(){}}let A=new WeakMap,M=new WeakMap,C=t=>{let e=A.get(t.target);e&&e(t)},V=t=>{t.forEach(C)},E={some:0,all:1};class D extends r.X{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:r}=t,a={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:E[i]},s=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),a=e?n:i;a&&a(t)};this.stopObserver=function(t,e,n){let i=function({root:t,...e}){let n=t||document;M.has(n)||M.set(n,{});let i=M.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(V,{root:t,...e})),i[r]}(e);return A.set(t,n),i.observe(t),()=>{A.delete(t),i.unobserve(t)}}(this.node.current,a,s)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{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(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let P={inView:{Feature:D},tap:{Feature:k},focus:{Feature:c},hover:{Feature:h}}},16815:(t,e,n)=>{n.d(e,{G:()=>i});let i=t=>e=>1-t(1-e)},17727:(t,e,n)=>{n.d(e,{OU:()=>u,Ql:()=>h,Ww:()=>c,hq:()=>a,o4:()=>l});var i=n(39361),r=n(42418);function a(t,e,n){return n+e*(t-n)}function s(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function o(t,e=0,n=1,i,r){t.min=s(t.min,e,n,i,r),t.max=s(t.max,e,n,i,r)}function l(t,{x:e,y:n}){o(t.x,e.translate,e.scale,e.originPoint),o(t.y,n.translate,n.scale,n.originPoint)}function u(t,e,n,i=!1){let a,s,o=n.length;if(o){e.x=e.y=1;for(let u=0;u.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min+=e,t.max+=e}function d(t,e,n,r,a=.5){let s=(0,i.k)(t.min,t.max,a);o(t,e,n,s,r)}function m(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function c(t,e,n){let i=n??t;d(t.x,m(e.x,i.x),e.scaleX,e.scale,e.originX),d(t.y,m(e.y,i.y),e.scaleY,e.scale,e.originY)}},21767:(t,e,n)=>{n.d(e,{K:()=>r});var i=n(10883);function r(t,e,n){let r=t.getProps();return(0,i.a)(r,e,void 0!==n?n:r.custom,t)}},23656:(t,e,n)=>{n.d(e,{F:()=>r});let i=(t,e)=>n=>e(t(n)),r=(...t)=>t.reduce(i)},23781:(t,e,n)=>{n.d(e,{g:()=>a});var i=n(40042),r=n(33182);function a(t,e){let n=t.getValue("willChange");if((0,r.S)(n)&&n.add)return n.add(e);if(!n&&i.W.WillChange){let n=new i.W.WillChange("auto");t.addValue("willChange",n),n.add(e)}}},26666:(t,e,n)=>{n.d(e,{W:()=>b});var i=n(94322),r=n(65777),a=n(93746),s=n(19461),o=n(52036);let l=o._.length;var u=n(36874),h=n(7112),d=n(21767);function m(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;iPromise.all(e.map(({animation:e,options:n})=>(0,r._)(t,e,n))),n=v(),i=!0,f=!1,y=e=>(n,i)=>{let r=(0,d.K)(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...i}=r;n={...n,...i,...e}}return n};function g(r){let{props:v}=t,g=function t(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(n.initial=e.props.initial),n}let n={};for(let t=0;tT&&A,D=!1,P=Array.isArray(p)?p:[p],F=P.reduce(y(o),{});!1===M&&(F={});let{prevResolvedValues:O={}}=l,I={...O,...F},L=e=>{E=!0,b.has(e)&&(D=!0,b.delete(e)),l.needsAnimating[e]=!0;let n=t.getValue(e);n&&(n.liveStyle=!1)};for(let t in I){let e=F[t],n=O[t];if(!x.hasOwnProperty(t))((0,h.p)(e)&&(0,h.p)(n)?m(e,n):e===n)?void 0!==e&&b.has(t)?L(t):l.protectedKeys[t]=!0:null!=e?L(t):b.add(t)}l.prevProp=p,l.prevResolvedValues=F,l.isActive&&(x={...x,...F}),(i||f)&&t.blockInitialAnimation&&(E=!1);let K=C&&V,q=!K||D;E&&q&&w.push(...P.map(e=>{let n={type:o};if("string"==typeof e&&(i||f)&&!K&&t.manuallyAnimateOnMount&&t.parent){let{parent:i}=t,r=(0,d.K)(i,e);if(i.enteringChildren&&r){let{delayChildren:e}=r.transition||{};n.delay=(0,a.L)(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(b.size){let e={};if("boolean"!=typeof v.initial){let n=(0,d.K)(t,Array.isArray(v.initial)?v.initial[0]:v.initial);n&&n.transition&&(e.transition=n.transition)}b.forEach(n=>{let i=t.getBaseTarget(n),r=t.getValue(n);r&&(r.liveStyle=!0),e[n]=i??null}),w.push({animation:e})}let A=!!w.length;return i&&(!1===v.initial||v.initial===v.animate)&&!t.manuallyAnimateOnMount&&(A=!1),i=!1,f=!1,A?e(w):Promise.resolve()}return{animateChanges:g,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;let r=g(e);for(let t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=v(),f=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,u.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let g=0;class w extends i.X{constructor(){super(...arguments),this.id=g++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;if(t&&!1===n){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let n=(0,d.K)(this.node,t,e);if(n){let{transition:t,transitionEnd:e,...i}=n;for(let t in i)this.node.getValue(t)?.jump(i[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let b={animation:{Feature:y},exit:{Feature:w}}},29792:(t,e,n)=>{n.d(e,{D:()=>r,I:()=>i});let i={x:!1,y:!1};function r(){return i.x||i.y}},32494:(t,e,n)=>{n.d(e,{k:()=>i});function i(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}},33152:(t,e,n)=>{function i({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function a(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(e,{FY:()=>i,bS:()=>a,pA:()=>r})},38561:(t,e,n)=>{n.d(e,{K:()=>i});function i(t,e,n){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let i=document;e&&(i=e.current);let r=n?.[t]??i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}},39719:(t,e,n)=>{n.d(e,{f:()=>tO});var i=n(27290),r=n(40042),a=n(6500),s=n(27424),o=n(23656),l=n(48895),u=n(62213),h=n(78041),d=n(21391),m=n(55389),c=n(24888),p=n(68894),f=n(44807);function v(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var y=n(31739);function g(t,e){return n=>n>0?e:t}var w=n(39361);let b=(t,e,n)=>{let i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},x=[p.u,y.B,f.V];function T(t){let e=x.find(e=>e.test(t));if((0,h.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===f.V&&(n=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let r=0,a=0,s=0;if(e/=100){let i=n<.5?n*(1+e):n+e-n*e,o=2*n-i;r=v(o,i,t+1/3),a=v(o,i,t),s=v(o,i,t-1/3)}else r=a=s=n;return{red:Math.round(255*r),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}(n)),n}let S=(t,e)=>{let n=T(t),i=T(e);if(!n||!i)return g(t,e);let r={...n};return t=>(r.red=b(n.red,i.red,t),r.green=b(n.green,i.green,t),r.blue=b(n.blue,i.blue,t),r.alpha=(0,w.k)(n.alpha,i.alpha,t),y.B.transform(r))},k=new Set(["none","hidden"]);function A(t,e){return n=>(0,w.k)(t,e,n)}function M(t){return"number"==typeof t?A:"string"==typeof t?(0,d.pG)(t)?g:m.y.test(t)?S:E:Array.isArray(t)?C:"object"==typeof t?m.y.test(t)?S:V:g}function C(t,e){let n=[...t],i=n.length,r=t.map((t,n)=>M(t)(t,e[n]));return t=>{for(let e=0;e{for(let e in i)n[e]=i[e](t);return n}}let E=(t,e)=>{let n=c.f.createTransformer(e),i=(0,c.V)(t),r=(0,c.V)(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?k.has(t)&&!r.values.length||k.has(e)&&!i.values.length?function(t,e){return k.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):(0,o.F)(C(function(t,e){let n=[],i={color:0,var:0,number:0};for(let r=0;r{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>P.Gt.update(e,t),stop:()=>(0,P.WG)(e),now:()=>P.uv.isProcessing?P.uv.timestamp:s.k.now()}};var O=n(33754);function I(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}let L={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function K(t,e){return t*Math.sqrt(1-e*e)}let q=["duration","bounce"],X=["stiffness","damping","mass"];function R(t,e){return e.some(e=>void 0!==t[e])}function G(t=L.visualDuration,e=L.bounce){let n,r,a,s,o,u,d="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:m,restDelta:c}=d,p=d.keyframes[0],f=d.keyframes[d.keyframes.length-1],v={done:!1,value:p},{stiffness:y,damping:g,mass:w,duration:b,velocity:x,isResolvedFromDuration:T}=function(t){let e={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...t};if(!R(t,X)&&R(t,q))if(e.velocity=0,t.visualDuration){let n=2*Math.PI/(1.2*t.visualDuration),i=n*n,r=2*(0,l.q)(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:L.mass,stiffness:i,damping:r}}else{let n=function({duration:t=L.duration,bounce:e=L.bounce,velocity:n=L.velocity,mass:r=L.mass}){let a,s;(0,h.$)(t<=(0,i.f)(L.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=(0,l.q)(L.minDamping,L.maxDamping,o),t=(0,l.q)(L.minDuration,L.maxDuration,(0,i.X)(t)),o<1?(a=e=>{let i=e*o,r=i*t;return .001-(i-n)/K(e,o)*Math.exp(-r)},s=e=>{let i=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,s=Math.exp(-i),l=K(Math.pow(e,2),o);return(i*n+n-r)*s*(-a(e)+.001>0?-1:1)/l}):(a=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),s=e=>t*t*(n-e)*Math.exp(-e*t));let u=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(a,s,5/t);if(t=(0,i.f)(t),isNaN(u))return{stiffness:L.stiffness,damping:L.damping,duration:t};{let e=Math.pow(u,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}({...t,velocity:0});(e={...e,...n,mass:L.mass}).isResolvedFromDuration=!0}return e}({...d,velocity:-(0,i.X)(d.velocity||0)}),S=x||0,k=g/(2*Math.sqrt(y*w)),A=f-p,M=(0,i.X)(Math.sqrt(y/w)),C=5>Math.abs(A);if(m||(m=C?L.restSpeed.granular:L.restSpeed.default),c||(c=C?L.restDelta.granular:L.restDelta.default),k<1)a=K(M,k),s=(S+k*M*A)/a,n=t=>f-Math.exp(-k*M*t)*(s*Math.sin(a*t)+A*Math.cos(a*t)),o=k*M*s+A*a,u=k*M*A-s*a,r=t=>Math.exp(-k*M*t)*(o*Math.sin(a*t)+u*Math.cos(a*t));else if(1===k){n=t=>f-Math.exp(-M*t)*(A+(S+M*A)*t);let t=S+M*A;r=e=>Math.exp(-M*e)*(M*t*e-S)}else{let t=M*Math.sqrt(k*k-1);n=e=>{let n=Math.exp(-k*M*e),i=Math.min(t*e,300);return f-n*((S+k*M*A)*Math.sinh(i)+t*A*Math.cosh(i))/t};let e=(S+k*M*A)/t,i=k*M*e-A*t,a=k*M*A-e*t;r=e=>{let n=Math.exp(-k*M*e),r=Math.min(t*e,300);return n*(i*Math.sinh(r)+a*Math.cosh(r))}}let V={calculatedDuration:T&&b||null,velocity:t=>(0,i.f)(r(t)),next:t=>{if(!T&&k<1){let e=Math.exp(-k*M*t),n=Math.sin(a*t),r=Math.cos(a*t),l=f-e*(s*n+A*r);return v.done=Math.abs((0,i.f)(e*(o*n+u*r)))<=m&&Math.abs(f-l)<=c,v.value=v.done?f:l,v}let e=n(t);return T?v.done=t>=b:v.done=Math.abs((0,i.f)(r(t)))<=m&&Math.abs(f-e)<=c,v.value=v.done?f:e,v},toString:()=>{let t=Math.min(I(V),2e4),e=(0,O.K)(e=>V.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return V}G.applyToOptions=t=>{let e=function(t,e=100,n){let r=n({...t,keyframes:[0,e]}),a=Math.min(I(r),2e4);return{type:"keyframes",ease:t=>r.next(a*t).value/e,duration:(0,i.X)(a)}}(t,100,G);return t.ease=e.ease,t.duration=(0,i.f)(e.duration),t.type="keyframes",t};var B=n(45242);function W(t,e,n){let i=Math.max(e-5,0);return(0,B.f)(n-t(i),e-i)}function $({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:h}){let d,m,c=t[0],p={done:!1,value:c},f=n*e,v=c+f,y=void 0===s?v:s(v);y!==v&&(f=y-c);let g=t=>-f*Math.exp(-t/i),w=t=>y+g(t),b=t=>{let e=g(t),n=w(t);p.done=Math.abs(e)<=u,p.value=p.done?y:n},x=t=>{let e;if(e=p.value,void 0!==o&&el){var n;d=t,m=G({keyframes:[p.value,(n=p.value,void 0===o?l:void 0===l||Math.abs(o-n){let e=!1;return(m||void 0!==d||(e=!0,b(t),x(t)),void 0!==d&&t>=d)?m.next(t-d):(e||b(t),p)}}}let N=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function _(t,e,n,i){return t===e&&n===i?a.l:r=>0===r||1===r?r:N(function(t,e,n,i,r){let a,s,o=0;do(a=N(s=e+(n-e)/2,i,r)-t)>0?n=s:e=s;while(Math.abs(a)>1e-7&&++o<12);return s}(r,0,1,t,n),e,i)}let H=_(.42,0,1,1),U=_(0,0,.58,1),j=_(.42,0,.58,1);var Y=n(95516),z=n(16815);let Q=_(.33,1.53,.69,.99),J=(0,z.G)(Q),Z=(0,Y.V)(J),tt=t=>t>=1?1:(t*=2)<1?.5*J(t):.5*(2-Math.pow(2,-10*(t-1)));var te=n(69809),tn=n(34324);let ti={linear:a.l,easeIn:H,easeInOut:j,easeOut:U,circIn:te.po,circInOut:te.tn,circOut:te.yT,backIn:J,backInOut:Z,backOut:Q,anticipate:tt},tr=t=>{if((0,tn.D)(t)){(0,h.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,n,i,r]=t;return _(e,n,i,r)}return"string"==typeof t?((0,h.V)(void 0!==ti[t],`Invalid easing type '${t}'`,"invalid-easing-type"),ti[t]):t};var ta=n(91225);function ts({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){var s;let u=Array.isArray(i)&&"number"!=typeof i[0]?i.map(tr):tr(i),d={done:!1,value:e[0]},m=function(t,e,{clamp:n=!0,ease:i,mixer:s}={}){let u=t.length;if((0,h.V)(u===e.length,"Both input and output ranges must be the same length","range-length"),1===u)return()=>e[0];if(2===u&&e[0]===e[1])return()=>e[1];let d=t[0]===t[1];t[0]>t[u-1]&&(t=[...t].reverse(),e=[...e].reverse());let m=function(t,e,n){let i=[],s=n||r.W.mix||D,l=t.length-1;for(let n=0;n{if(d&&n1)for(;ip((0,l.q)(t[0],t[u-1],e)):p}((s=n&&n.length===e.length?n:function(t){let e=[0];return!function(t,e){let n=t[t.length-1];for(let i=1;i<=e;i++){let r=(0,ta.q)(0,e,i);t.push((0,w.k)(n,1,r))}}(e,t.length-1),e}(e),s.map(e=>e*t)),e,{ease:Array.isArray(u)?u:e.map(()=>u||j).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(d.value=m(e),d.done=e>=t,d)}}var to=n(33855);let tl={decay:$,inertia:$,tween:ts,keyframes:ts,spring:G};function tu(t){"string"==typeof t.type&&(t.type=tl[t.type])}var th=n(87671);let td=t=>t/100;class tm extends th.q{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==s.k.now()&&this.tick(s.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},u.q.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tu(t);let{type:e=ts,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:a=0}=t,{keyframes:s}=t,l=e||ts;l!==ts&&"number"!=typeof s[0]&&(this.mixKeyframes=(0,o.F)(td,D(s[0],s[1])),s=[0,100]);let u=l({...t,keyframes:s});"mirror"===r&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=I(u));let{calculatedDuration:h}=u;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=u}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let n,{generator:i,totalDuration:r,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:u}=this;if(null===this.startTime)return i.next(0);let{delay:h=0,keyframes:d,repeat:m,repeatType:c,repeatDelay:p,type:f,onUpdate:v,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-h*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,x=i;if(m){let t=Math.min(this.currentTime,r)/o,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,m+1))%2&&("reverse"===c?(n=1-n,p&&(n-=p/o)):"mirror"===c&&(x=s)),b=(0,l.q)(0,1,n)*o}w?(this.delayState.value=d[0],n=this.delayState):n=x.next(b),a&&!w&&(n.value=a(n.value));let{done:T}=n;w||null===u||(T=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return S&&f!==$&&(n.value=(0,to.X)(d,this.options,y,this.speed)),v&&v(n.value),S&&this.finish(),n}then(t,e){return this.finished.then(t,e)}get duration(){return(0,i.X)(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,i.X)(t)}get time(){return(0,i.X)(this.currentTime)}set time(t){t=(0,i.f)(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return W(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(s.k.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=(0,i.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=F,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(s.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,u.q.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}var tc=n(63946),tp=n(46934),tf=n(82617);let tv={anticipate:tt,backInOut:Z,circInOut:te.tn};class ty extends tf.m{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in tv&&(t.ease=tv[t.ease])}(t),tu(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:n,onComplete:i,element:r,...a}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new tm({...a,autoplay:!1}),u=Math.max(10,s.k.now()-this.startTime),h=(0,l.q)(0,10,u-10),d=o.sample(u).value,{name:m}=this.options;r&&m&&(0,tp.e)(r,m,d),e.setWithVelocity(o.sample(Math.max(0,u-h)).value,d,h),o.stop()}}var tg=n(65181);let tw=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(c.f.test(t)||"0"===t)&&!t.startsWith("url("));function tb(t){t.duration=0,t.type="keyframes"}var tx=n(60178),tT=n(87913);let tS=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,tk=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),tA=(0,tx.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tM extends th.q{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:r