!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6f604bd0-7c11-4d3f-a892-d37010782a98",t._sentryDebugIdIdentifier="sentry-dbid-6f604bd0-7c11-4d3f-a892-d37010782a98")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3317],{61442:function(t,e,i){i.d(e,{j:function(){return B}});var n,r=i(66603),s=i(47947),o=i(41634),a=i(57144),l=i(953);let u=(t,e,i)=>{let n=e-t;return((i-t)%n+n)%n+t};var h=i(70090);function c(t,e){return(0,h.N)(t)?t[u(0,t.length,e)]:t}var d=i(746),f=i(16396),p=i(22735);function m(t){return"object"==typeof t&&!Array.isArray(t)}function v(t,e,i,n){return"string"==typeof t&&m(e)?(0,r.IG)(t,i,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function g(t,e,i,n){var r;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:null!==(r=n.get(e))&&void 0!==r?r:t}var y=i(40046),x=i(79029);function w(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function P(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function T(t,e){return e[t]||(e[t]=[]),e[t]}let b=t=>"number"==typeof t,S=t=>t.every(b);var A=i(32980),E=i(32777),D=i(999),M=i(97621),V=i(15173),C=i(81271),R=i(70665);class k extends R.l{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return(0,C.dO)()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function L(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=(0,D.v)(t)?new M.e(e):new V.W(e);i.mount(t),A.R.set(t,i)}function j(t){let e=new k({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),A.R.set(t,e)}var O=i(8836);function F(t,e,i,n){let r=[];if((0,p.i)(t)||"number"==typeof t||"string"==typeof t&&!m(e))r.push((0,O.D)(t,m(e)&&e.default||e,i&&i.default||i));else{let s=v(t,e,n),o=s.length;(0,a.k)(!!o,"No valid elements provided.");for(let t=0;t{let p=Array.isArray(t)?t:[t],{delay:m=0,times:v=(0,d.Y)(p),type:g="keyframes",repeat:w,repeatType:P,repeatDelay:T=0,...b}=i,{ease:A=e.ease||"easeOut",duration:E}=i,V="function"==typeof m?m(l,h):m,R=p.length,k=(0,r.xD)(g)?g:null==s?void 0:s[g];if(R<=2&&k){let t=100;2===R&&S(p)&&(t=Math.abs(p[1]-p[0]));let e={...b};void 0!==E&&(e.duration=(0,o.w)(E));let i=(0,r.S9)(e,t,k);A=i.ease,E=i.duration}null!=E||(E=u);let L=D+V;1===v.length&&0===v[0]&&(v[1]=1);let j=v.length-p.length;if(j>0&&(0,f.c)(v,j),1===p.length&&p.unshift(null),w){(0,a.k)(w<20,"Repeat count too high, must be less than 20"),E*=w+1;let t=[...p],e=[...v],i=[...A=Array.isArray(A)?[...A]:[A]];for(let n=0;ne&&r.at{for(let r in t){let s=t[r];s.sort(w);let o=[],a=[],u=[];for(let t=0;t{n.push(...F(i,t,e))}),n}(t,e,void 0):F(t,e,i,n);let h=new r.sP(u);return n&&n.animations.push(h),h}},8836:function(t,e,i){i.d(e,{D:function(){return o}});var n=i(6092),r=i(22735),s=i(85124);function o(t,e,i){let o=(0,r.i)(t)?t:(0,n.BX)(t);return o.start((0,s.v)("",o,e,i)),o.animation}},47947:function(t,e,i){i.d(e,{S:function(){return f}});var n=i(66603),r=i(41634),s=i(7610),o=i(72920);let a={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};var l=i(57144);function u(t,e){return t*Math.sqrt(1-e*e)}let h=["duration","bounce"],c=["stiffness","damping","mass"];function d(t,e){return e.some(e=>void 0!==t[e])}function f(t=a.visualDuration,e=a.bounce){let i;let f="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:p,restDelta:m}=f,v=f.keyframes[0],g=f.keyframes[f.keyframes.length-1],y={done:!1,value:v},{stiffness:x,damping:w,mass:P,duration:T,velocity:b,isResolvedFromDuration:S}=function(t){let e={velocity:a.velocity,stiffness:a.stiffness,damping:a.damping,mass:a.mass,isResolvedFromDuration:!1,...t};if(!d(t,c)&&d(t,h)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*(0,s.u)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:a.mass,stiffness:n,damping:r}}else{let i=function({duration:t=a.duration,bounce:e=a.bounce,velocity:i=a.velocity,mass:n=a.mass}){let o,h;(0,l.K)(t<=(0,r.w)(a.maxDuration),"Spring duration must be 10 seconds or less");let c=1-e;c=(0,s.u)(a.minDamping,a.maxDamping,c),t=(0,s.u)(a.minDuration,a.maxDuration,(0,r.X)(t)),c<1?(o=e=>{let n=e*c,r=n*t;return .001-(n-i)/u(e,c)*Math.exp(-r)},h=e=>{let n=e*c*t,r=Math.pow(c,2)*Math.pow(e,2)*t,s=u(Math.pow(e,2),c);return(n*i+i-r)*Math.exp(-n)*(-o(e)+.001>0?-1:1)/s}):(o=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),h=e=>t*t*(i-e)*Math.exp(-e*t));let d=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(o,h,5/t);if(t=(0,r.w)(t),isNaN(d))return{stiffness:a.stiffness,damping:a.damping,duration:t};{let e=Math.pow(d,2)*n;return{stiffness:e,damping:2*c*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:a.mass}).isResolvedFromDuration=!0}}return e}({...f,velocity:-(0,r.X)(f.velocity||0)}),A=b||0,E=w/(2*Math.sqrt(x*P)),D=g-v,M=(0,r.X)(Math.sqrt(x/P)),V=5>Math.abs(D);if(p||(p=V?a.restSpeed.granular:a.restSpeed.default),m||(m=V?a.restDelta.granular:a.restDelta.default),E<1){let t=u(M,E);i=e=>g-Math.exp(-E*M*e)*((A+E*M*D)/t*Math.sin(t*e)+D*Math.cos(t*e))}else if(1===E)i=t=>g-Math.exp(-M*t)*(D+(A+M*D)*t);else{let t=M*Math.sqrt(E*E-1);i=e=>{let i=Math.exp(-E*M*e),n=Math.min(t*e,300);return g-i*((A+E*M*D)*Math.sinh(n)+t*D*Math.cosh(n))/t}}let C={calculatedDuration:S&&T||null,next:t=>{let e=i(t);if(S)y.done=t>=T;else{let n=0;E<1&&(n=0===t?(0,r.w)(A):(0,o.P)(i,t,e));let s=Math.abs(n)<=p,a=Math.abs(g-e)<=m;y.done=s&&a}return y.value=y.done?g:e,y},toString:()=>{let t=Math.min((0,n.iI)(C),n.EO),e=(0,n.wk)(e=>C.next(t*e).value,t,30);return t+"ms "+e}};return C}},72920:function(t,e,i){i.d(e,{P:function(){return r}});var n=i(20113);function r(t,e,i){let r=Math.max(e-5,0);return(0,n.R)(i-t(r),e-r)}},85124:function(t,e,i){i.d(e,{v:function(){return tr}});var n=i(66603),r=i(41634),s=i(92950),o=i(48236);let a={current:!1};var l=i(3643);let u=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function h(t,e,i,n){if(t===e&&i===n)return l.Z;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=u(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:u(r(t),e,n)}var c=i(65678),d=i(92585);let f=h(.33,1.53,.69,.99),p=(0,d.M)(f),m=(0,c.o)(p),v=t=>(t*=2)<1?.5*p(t):.5*(2-Math.pow(2,-10*(t-1)));var g=i(94733),y=i(92018),x=i(61180),w=i(83593),P=i(57144),T=i(43426);let b=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(T.P.test(t)||"0"===t)&&!t.startsWith("url(")),S=t=>null!==t;function A(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(S),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return s&&void 0!==n?n:r[s]}class E{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=x.X.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,w.m)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=x.X.now(),this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:s,delay:o,onComplete:l,onUpdate:u,isGenerator:h}=this.options;if(!h&&!function(t,e,i,r){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],a=b(s,e),l=b(o,e);return(0,P.K)(a===l,`You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!!a&&!!l&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i{this.resolveFinishedPromise=t})}}var D=i(13648),M=i(7610),V=i(21062),C=i(31381),R=i(47947),k=i(72920);function L({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d;let f=t[0],p={done:!1,value:f},m=t=>void 0!==a&&tl,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)-g*Math.exp(-t/n),P=t=>x+w(t),T=t=>{let e=w(t),i=P(t);p.done=Math.abs(e)<=u,p.value=p.done?x:i},b=t=>{m(p.value)&&(c=t,d=(0,R.S)({keyframes:[p.value,v(p.value)],velocity:(0,k.P)(P,t,p.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,T(t),b(t)),void 0!==c&&t>=c)?d.next(t-c):(e||T(t),p)}}}let j=h(.42,0,1,1),O=h(0,0,.58,1),F=h(.42,0,.58,1);var B=i(70090);let I={linear:l.Z,easeIn:j,easeInOut:F,easeOut:O,circIn:g.Z7,circInOut:g.X7,circOut:g.Bn,backIn:p,backInOut:m,backOut:f,anticipate:v},W=t=>{if((0,n.qE)(t)){(0,P.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return h(e,i,n,r)}return"string"==typeof t?((0,P.k)(void 0!==I[t],`Invalid easing type '${t}'`),I[t]):t};var $=i(61410),U=i(746);function N({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=(0,B.N)(n)?n.map(W):W(n),s={done:!1,value:e[0]},o=(i&&i.length===e.length?i:(0,U.Y)(e)).map(e=>e*t),a=(0,$.s)(o,e,{ease:Array.isArray(r)?r:e.map(()=>r||F).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}let X=t=>{let e=({timestamp:e})=>t(e);return{start:()=>s.Wi.update(e,!0),stop:()=>(0,s.Pn)(e),now:()=>s.frameData.isProcessing?s.frameData.timestamp:x.X.now()}},z={decay:L,inertia:L,tween:N,keyframes:N,spring:R.S},Y=t=>t/100;class K extends E{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,s=(null==n?void 0:n.KeyframeResolver)||w.e;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i;let{type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a,velocity:l=0}=this.options,u=(0,n.xD)(r)?r:z[r]||N;u!==N&&"number"!=typeof t[0]&&(e=(0,C.z)(Y,(0,V.C)(t[0],t[1])),t=[0,100]);let h=u({...this.options,keyframes:t});"mirror"===a&&(i=u({...this.options,keyframes:[...t].reverse(),velocity:-l})),null===h.calculatedDuration&&(h.calculatedDuration=(0,n.iI)(h));let{calculatedDuration:c}=h,d=c+o;return{generator:h,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(s+1)-o}}onPostResolved(){let{autoplay:t=!0}=this.options;D.P.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:d,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===f?(i=1-i,p&&(i-=p/h)):"mirror"===f&&(x=s)),y=(0,M.u)(0,1,i)*h}let w=g?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:P}=w;g||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return T&&void 0!==n&&(w.value=A(a,this.options,n)),m&&m(w.value),T&&this.finish(),w}get duration(){let{resolved:t}=this;return t?(0,r.X)(t.calculatedDuration):0}get time(){return(0,r.X)(this.currentTime)}set time(t){t=(0,r.w)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,r.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=X,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),D.P.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let H=new Set(["opacity","clipPath","filter","transform"]);var _=i(57963);let q=(0,i(99435).X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Z={anticipate:v,backInOut:m,circInOut:g.X7};class G extends E{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new y.s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:r=300,times:s,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!l.owner||!l.owner.current)return!1;if("string"==typeof o&&(0,n.Vc)()&&o in Z&&(o=Z[o]),i=this.options,(0,n.xD)(i.type)||"spring"===i.type||!(0,n.hR)(i.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:l,...u}=this.options,h=function(t,e){let i=new K({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,s=h.times,o=h.ease,a="keyframes"}let c=function(t,e,i,{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:u}={}){let h={[e]:i};u&&(h.offset=u);let c=(0,n.eB)(l,s);Array.isArray(c)&&(h.easing=c),_.f.value&&D.P.waapi++;let d=t.animate(h,{delay:r,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"});return _.f.value&&d.finished.finally(()=>{D.P.waapi--}),d}(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return c.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?((0,n._F)(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:i}=this.options;l.set(A(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,r.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,r.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,r.w)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return l.Z;let{animation:i}=e;(0,n._F)(i,t)}else this.pendingTimeline=t;return l.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:s,ease:o,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,c=new K({...h,keyframes:i,duration:n,type:s,ease:o,times:a,isGenerator:!0}),d=(0,r.w)(this.time);t.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return q()&&i&&H.has(i)&&!a&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}var J=i(83874);let Q={type:"spring",stiffness:500,damping:25,restSpeed:10},tt=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),te={type:"keyframes",duration:.8},ti={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tn=(t,{keyframes:e})=>e.length>2?te:J.G.has(t)?t.startsWith("scale")?tt(e[1]):Q:ti,tr=(t,e,i,l={},u,h)=>c=>{let d=(0,n.ev)(l,t)||{},f=d.delay||l.delay||0,{elapsed:p=0}=l;p-=(0,r.w)(f);let m={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-p,onUpdate:t=>{e.set(t),d.onUpdate&&d.onUpdate(t)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:h?void 0:u};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(d)&&(m={...m,...tn(t,m)}),m.duration&&(m.duration=(0,r.w)(m.duration)),m.repeatDelay&&(m.repeatDelay=(0,r.w)(m.repeatDelay)),void 0!==m.from&&(m.keyframes[0]=m.from);let v=!1;if(!1!==m.type&&(0!==m.duration||m.repeatDelay)||(m.duration=0,0!==m.delay||(v=!0)),(a.current||o.c.skipAnimations)&&(v=!0,m.duration=0,m.delay=0),v&&!h&&void 0!==e.get()){let t=A(m.keyframes,d);if(void 0!==t)return s.Wi.update(()=>{m.onUpdate(t),m.onComplete()}),new n.sP([])}return!h&&G.supports(m)?new G(m):new K(m)}},32777:function(t,e,i){i.d(e,{w:function(){return d}});var n=i(66603),r=i(94166),s=i(31364),o=i(6092),a=i(19312),l=i(40252),u=i(4258),h=i(85124),c=i(92950);function d(t,e,{delay:i=0,transitionOverride:d,type:f}={}){var p;let{transition:m=t.getDefaultTransition(),transitionEnd:v,...g}=e;d&&(m=d);let y=[],x=f&&t.animationState&&t.animationState.getState()[f];for(let e in g){let s=t.getValue(e,null!==(p=t.latestValues[e])&&void 0!==p?p:null),o=g[e];if(void 0===o||x&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(x,e))continue;let a={delay:i,...(0,n.ev)(m||{},e)},d=!1;if(window.MotionHandoffAnimation){let i=(0,u.s)(t);if(i){let t=window.MotionHandoffAnimation(i,e,c.Wi);null!==t&&(a.startTime=t,d=!0)}}(0,l.K)(t,e),s.start((0,h.v)(e,s,o,t.shouldReduceMotion&&r.z.has(e)?{type:!1}:a,t,d));let f=s.animation;f&&y.push(f)}return v&&Promise.all(y).then(()=>{c.Wi.update(()=>{v&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=(0,a.x)(t,e)||{};for(let e in r={...r,...i}){let i=(0,s.Y)(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,o.BX)(i))}}(t,v)})}),y}},56525:function(t,e,i){i.d(e,{M:function(){return n}});let n="data-"+(0,i(78681).D)("framerAppearId")},4258:function(t,e,i){i.d(e,{s:function(){return r}});var n=i(56525);function r(t){return t.props[n.M]}},46217:function(t,e,i){i.d(e,{H:function(){return n}});function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},73078:function(t,e,i){i.d(e,{C:function(){return n}});let n=t=>Array.isArray(t)},94520:function(t,e,i){i.d(e,{M:function(){return g}});var n=i(13868),r=i(21295),s=i(15234),o=i(5809),a=i(94796),l=i(58821);class u extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=t instanceof HTMLElement&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h(t){let{children:e,isPresent:i,anchorX:s}=t,o=(0,r.useId)(),a=(0,r.useRef)(null),h=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=(0,r.useContext)(l._);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:r,right:l}=h.current;if(i||!a.current||!t||!e)return;a.current.dataset.motionPopId=o;let u=document.createElement("style");return c&&(u.nonce=c),document.head.appendChild(u),u.sheet&&u.sheet.insertRule('\n [data-motion-pop-id="'.concat(o,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n ").concat("left"===s?"left: ".concat(r):"right: ".concat(l),"px !important;\n top: ").concat(n,"px !important;\n }\n ")),()=>{document.head.removeChild(u)}},[i]),(0,n.jsx)(u,{isPresent:i,childRef:a,sizeRef:h,children:r.cloneElement(e,{ref:a})})}let c=t=>{let{children:e,initial:i,isPresent:s,onExitComplete:l,custom:u,presenceAffectsLayout:c,mode:f,anchorX:p}=t,m=(0,o.h)(d),v=(0,r.useId)(),g=(0,r.useCallback)(t=>{for(let e of(m.set(t,!0),m.values()))if(!e)return;l&&l()},[m,l]),y=(0,r.useMemo)(()=>({id:v,initial:i,isPresent:s,custom:u,onExitComplete:g,register:t=>(m.set(t,!1),()=>m.delete(t))}),c?[Math.random(),g]:[s,g]);return(0,r.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[s]),r.useEffect(()=>{s||m.size||!l||l()},[s]),"popLayout"===f&&(e=(0,n.jsx)(h,{isPresent:s,anchorX:p,children:e})),(0,n.jsx)(a.O.Provider,{value:y,children:e})};function d(){return new Map}var f=i(46530);let p=t=>t.key||"";function m(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}var v=i(85949);let g=t=>{let{children:e,custom:i,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:d=!1,anchorX:g="left"}=t,[y,x]=(0,f.oO)(d),w=(0,r.useMemo)(()=>m(e),[e]),P=d&&!y?[]:w.map(p),T=(0,r.useRef)(!0),b=(0,r.useRef)(w),S=(0,o.h)(()=>new Map),[A,E]=(0,r.useState)(w),[D,M]=(0,r.useState)(w);(0,v.L)(()=>{T.current=!1,b.current=w;for(let t=0;t{let e=p(t),r=(!d||!!y)&&(w===D||P.includes(e));return(0,n.jsx)(c,{isPresent:r,initial:(!T.current||!!a)&&void 0,custom:i,presenceAffectsLayout:u,mode:h,onExitComplete:r?void 0:()=>{if(!S.has(e))return;S.set(e,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(null==C||C(),M(b.current),d&&(null==x||x()),l&&l())},anchorX:g,children:t},e)})})}},46530:function(t,e,i){i.d(e,{oO:function(){return s}});var n=i(21295),r=i(94796);function s(t=!0){let e=(0,n.useContext)(r.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:o}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{t&&o(a)},[t]);let l=(0,n.useCallback)(()=>t&&s&&s(a),[a,s,t]);return!i&&s?[!1,l]:[!0]}},15234:function(t,e,i){i.d(e,{p:function(){return n}});let n=(0,i(21295).createContext)({})},58821:function(t,e,i){i.d(e,{_:function(){return n}});let n=(0,i(21295).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},94796:function(t,e,i){i.d(e,{O:function(){return n}});let n=(0,i(21295).createContext)(null)},94733:function(t,e,i){i.d(e,{Bn:function(){return o},X7:function(){return a},Z7:function(){return s}});var n=i(65678),r=i(92585);let s=t=>1-Math.sin(Math.acos(t)),o=(0,r.M)(s),a=(0,n.o)(s)},65678:function(t,e,i){i.d(e,{o:function(){return n}});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},92585:function(t,e,i){i.d(e,{M:function(){return n}});let n=t=>e=>1-t(1-e)},70090:function(t,e,i){i.d(e,{N:function(){return n}});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},74503:function(t,e,i){i.d(e,{Z:function(){return o}});var n=i(48236);let r=["read","resolveKeyframes","update","preRender","render","postRender"];var s=i(57963);function o(t,e){let i=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,u=r.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,o=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){a.has(e)&&(c.schedule(e),t()),u++,e(l)}let c={schedule:(t,e=!1,s=!1)=>{let o=s&&r?i:n;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(l=t,r){o=!0;return}r=!0,[i,n]=[n,i],i.forEach(h),e&&s.f.value&&s.f.value.frameloop[e].push(u),u=0,i.clear(),r=!1,o&&(o=!1,c.process(t))}};return c}(l,e?i:void 0),t),{}),{read:h,resolveKeyframes:c,update:d,preRender:f,render:p,postRender:m}=u,v=()=>{let r=n.c.useManualTiming?a.timestamp:performance.now();i=!1,n.c.useManualTiming||(a.delta=o?1e3/60:Math.max(Math.min(r-a.timestamp,40),1)),a.timestamp=r,a.isProcessing=!0,h.process(a),c.process(a),d.process(a),f.process(a),p.process(a),m.process(a),a.isProcessing=!1,i&&e&&(o=!1,t(v))},g=()=>{i=!0,o=!0,a.isProcessing||t(v)};return{schedule:r.reduce((t,e)=>{let n=u[e];return t[e]=(t,e=!1,r=!1)=>(i||g(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e(void 0===n&&a.set(s.frameData.isProcessing||r.c.useManualTiming?s.frameData.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},46929:function(t,e,i){i.d(e,{featureDefinitions:function(){return r}});let n={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"]},r={};for(let t in n)r[t]={isEnabled:e=>n[t].some(t=>!!e[t])}},90051:function(t,e,i){i.d(e,{j:function(){return s}});var n=i(58855),r=i(83874);function s(t,{layout:e,layoutId:i}){return r.G.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!n.P[t]||"opacity"===t)}},61081:function(t,e,i){function n({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}i.d(e,{d7:function(){return s},i8:function(){return n},z2:function(){return r}})},70615:function(t,e,i){i.d(e,{D2:function(){return d},YY:function(){return u},am:function(){return h},o2:function(){return l},q2:function(){return s}});var n=i(79029),r=i(7447);function s(t,e,i){return i+e*(t-i)}function o(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function a(t,e=0,i=1,n,r){t.min=o(t.min,e,i,n,r),t.max=o(t.max,e,i,n,r)}function l(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}function u(t,e,i,n=!1){let s,o;let a=i.length;if(a){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=t.min+e,t.max=t.max+e}function c(t,e,i,r,s=.5){let o=(0,n.t)(t.min,t.max,s);a(t,e,i,o,r)}function d(t,e){c(t.x,e.x,e.scaleX,e.scale,e.originX),c(t.y,e.y,e.scaleY,e.scale,e.originY)}},81271:function(t,e,i){i.d(e,{dO:function(){return o},wc:function(){return r}});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:n(),y:n()}),s=()=>({min:0,max:0}),o=()=>({x:s(),y:s()})},58855:function(t,e,i){i.d(e,{B:function(){return s},P:function(){return r}});var n=i(81366);let r={};function s(t){for(let e in t)r[e]=t[e],(0,n.f)(e)&&(r[e].isCSSVariable=!0)}},7447:function(t,e,i){function n(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:i}){return!n(t)||!n(e)||!n(i)}function s(t){return r(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{D_:function(){return o},Lj:function(){return r},ud:function(){return s}})},38188:function(t,e,i){i.d(e,{J:function(){return s},z:function(){return o}});var n=i(61081),r=i(70615);function s(t,e){return(0,n.i8)((0,n.d7)(t.getBoundingClientRect(),e))}function o(t,e,i){let n=s(t,i),{scroll:o}=e;return o&&((0,r.am)(n.x,o.offset.x),(0,r.am)(n.y,o.offset.y)),n}},70665:function(t,e,i){i.d(e,{l:function(){return M}});var n=i(61180),r=i(46929),s=i(81271),o=i(99225),a=i(78529),l=i(60468);let u={current:null},h={current:!1};var c=i(40013),d=i(6092),f=i(43426),p=i(22735),m=i(76397),v=i(33132),g=i(68687),y=i(46993);let x=[...g.$,v.$,f.P],w=t=>x.find((0,y.l)(t));var P=i(83874),T=i(32980),b=i(55834),S=i(83593),A=i(86120),E=i(92950);let D=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class M{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=S.e,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.renderScheduledAt=0,this.scheduleRender=()=>{let t=n.X.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),h.current||function(){if(h.current=!0,l.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>u.current=t.matches;t.addListener(e),e()}else u.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||u.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,E.Pn)(this.notifyUpdate),(0,E.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=P.G.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&E.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in r.featureDefinitions){let e=r.featureDefinitions[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,s.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=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;ee.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let 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 i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,d.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&((0,o.P)(n)||(0,a.W)(n))?n=parseFloat(n):!w(n)&&f.P.test(e)&&(n=(0,m.T)(t,e)),this.setBaseTarget(t,(0,p.i)(n)?n.get():n)),(0,p.i)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=(0,A.o)(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,p.i)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new c.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}},41297:function(t,e,i){i.d(e,{E:function(){return iw}});var n,r,s,o=i(46217),a=i(19312),l=i(32777);function u(t,e,i={}){var n;let r=(0,a.x)(t,e,"exit"===i.type?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let o=r?()=>Promise.all((0,l.w)(t,r,i)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(h).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(u(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:d}=s;if(!d)return Promise.all([o(),c(i.delay)]);{let[t,e]="beforeChildren"===d?[o,c]:[c,o];return t().then(()=>e())}}function h(t,e){return t.sortNodePosition(e)}var c=i(73078);function d(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;nPromise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>u(t,e,i)));else if("string"==typeof e)n=u(t,e,i);else{let r="function"==typeof e?(0,a.x)(t,e,i.custom):e;n=Promise.all((0,l.w)(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=x(),n=!0,r=e=>(i,n)=>{var r;let s=(0,a.x)(t,n,"exit"===e?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function s(s){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;tx&&P,E=!1,D=Array.isArray(g)?g:[g],M=D.reduce(r(p),{});!1===T&&(M={});let{prevResolvedValues:V={}}=m,C={...V,...M},R=e=>{A=!0,h.has(e)&&(E=!0,h.delete(e)),m.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=M[t],i=V[t];if(!y.hasOwnProperty(t))((0,c.C)(e)&&(0,c.C)(i)?d(e,i):e===i)?void 0!==e&&h.has(t)?R(t):m.protectedKeys[t]=!0:null!=e?R(t):h.add(t)}m.prevProp=g,m.prevResolvedValues=M,m.isActive&&(y={...y,...M}),n&&t.blockInitialAnimation&&(A=!1);let k=!(b&&S)||E;A&&k&&u.push(...D.map(t=>({animation:t,options:{type:p}})))}if(h.size){let e={};h.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),u.push({animation:e})}let P=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(P=!1),n=!1,P?e(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null===(r=t.variantChildren)||void 0===r||r.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let o=s(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=x(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,o.H)(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(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let T=0;class b extends w{constructor(){super(...arguments),this.id=T++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var S=i(3643),A=i(57144),E=i(66603),D=i(41634);function M(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function V(t){return{point:{x:t.pageX,y:t.pageY}}}let C=t=>e=>(0,E.DJ)(e)&&t(e,V(e));function R(t,e,i,n){return M(t,e,C(i),n)}let k=(t,e)=>Math.abs(t-e);var L=i(31381),j=i(92950);class O{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=I(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(k(t.x,e.x)**2+k(t.y,e.y)**2)>=3);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=j.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=F(e,this.transformPagePoint),j.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=I("pointercancel"===t.type?this.lastMoveEventInfo:F(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!(0,E.DJ)(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=F(V(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=j.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,I(s,this.history)),this.removeListeners=(0,L.z)(R(this.contextWindow,"pointermove",this.handlePointerMove),R(this.contextWindow,"pointerup",this.handlePointerUp),R(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,j.Pn)(this.updatePoint)}}function F(t,e){return e?{point:e(t.point)}:t}function B(t,e){return{x:t.x-e.x,y:t.y-e.y}}function I({point:t},e){return{point:t,delta:B(t,W(e)),offset:B(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=W(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,D.w)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,D.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function W(t){return t[t.length-1]}function $(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var U=i(953),N=i(79029);function X(t){return t.max-t.min}function z(t,e,i,n=.5){t.origin=n,t.originPoint=(0,N.t)(e.min,e.max,t.origin),t.scale=X(i)/X(e),t.translate=(0,N.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Y(t,e,i,n){z(t.x,e.x,i.x,n?n.originX:void 0),z(t.y,e.y,i.y,n?n.originY:void 0)}function K(t,e,i){t.min=i.min+e.min,t.max=t.min+X(e)}function H(t,e,i){t.min=e.min-i.min,t.max=t.min+X(e)}function _(t,e,i){H(t.x,e.x,i.x),H(t.y,e.y,i.y)}var q=i(7610);function Z(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function G(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.mint?t.ownerDocument.defaultView:null;var ta=i(40252);let tl=new WeakMap;class tu{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,tt.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new O(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(V(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,E.KV)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),te(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tr.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=X(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&j.Wi.postRender(()=>r(t,e)),(0,ta.K)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>te(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:to(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&j.Wi.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!th(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?(0,N.t)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,r=this.constraints;e&&$(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:Z(t.x,i,r),y:Z(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:J(t,"left","right"),y:J(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&te(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!$(e))return!1;let n=e.current;(0,A.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=(0,ti.z)(n,r.root,this.visualElement.getTransformPagePoint()),o={x:G((t=r.layout.layoutBox).x,s.x),y:G(t.y,s.y)};if(i){let t=i((0,tn.z2)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,tn.i8)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(te(o=>{if(!th(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,ta.K)(this.visualElement,t),i.start((0,ts.v)(t,i,0,e,this.visualElement,!1))}stopAnimation(){te(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){te(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){te(e=>{let{drag:i}=this.getProps();if(!th(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-(0,N.t)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!$(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};te(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=X(t),r=X(e);return r>n?i=(0,U.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,U.Y)(t.min,t.max-r,e.min)),(0,q.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),te(e=>{if(!th(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,N.t)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;tl.set(this.visualElement,this);let t=R(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();$(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),j.Wi.read(e);let r=M(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(te(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function th(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tc extends w{constructor(t){super(t),this.removeGroupControls=S.Z,this.removeListeners=S.Z,this.controls=new tu(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||S.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let td=t=>(e,i)=>{t&&j.Wi.postRender(()=>t(e,i))};class tf extends w{constructor(){super(...arguments),this.removePointerDownListener=S.Z}onPointerDown(t){this.session=new O(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:to(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:td(t),onStart:td(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&j.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=R(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var tp=i(13868),tm=i(21295),tv=i(46530),tg=i(15234);let ty=(0,tm.createContext)({}),tx={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tw(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tP={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tr.px.test(t))return t;t=parseFloat(t)}let i=tw(t,e.target.x),n=tw(t,e.target.y);return`${i}% ${n}%`}};var tT=i(43426),tb=i(58855);let{schedule:tS,cancel:tA}=(0,i(74503).Z)(queueMicrotask,!1);class tE extends tm.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;(0,tb.B)(tM),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),tx.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||j.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tS.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tD(t){let[e,i]=(0,tv.oO)(),n=(0,tm.useContext)(tg.p);return(0,tp.jsx)(tE,{...t,layoutGroup:n,switchLayoutGroup:(0,tm.useContext)(ty),isPresent:e,safeToRemove:i})}let tM={borderRadius:{...tP,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tP,borderTopRightRadius:tP,borderBottomLeftRadius:tP,borderBottomRightRadius:tP,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tT.P.parse(t);if(n.length>5)return t;let r=tT.P.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=(0,N.t)(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};var tV=i(8836),tC=i(4258),tR=i(61180),tk=i(999),tL=i(40046);let tj=(t,e)=>t.depth-e.depth;class tO{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tL.y4)(this.children,t),this.isDirty=!0}remove(t){(0,tL.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tj),this.isDirty=!1,this.children.forEach(t)}}var tF=i(13648),tB=i(57963),tI=i(40013),tW=i(31364),t$=i(22735);function tU(t){let e=(0,t$.i)(t)?t.get():t;return(0,tW.p)(e)?e.toValue():e}var tN=i(94733);let tX=["TopLeft","TopRight","BottomLeft","BottomRight"],tz=tX.length,tY=t=>"string"==typeof t?parseFloat(t):t,tK=t=>"number"==typeof t||tr.px.test(t);function tH(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let t_=tZ(0,.5,tN.Bn),tq=tZ(.5,.95,S.Z);function tZ(t,e,i){return n=>ne?1:i((0,U.Y)(t,e,n))}function tG(t,e){t.min=e.min,t.max=e.max}function tJ(t,e){tG(t.x,e.x),tG(t.y,e.y)}function tQ(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var t0=i(70615);function t1(t,e,i,n,r){return t-=e,t=(0,t0.q2)(t,1/i,n),void 0!==r&&(t=(0,t0.q2)(t,1/r,n)),t}function t2(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tr.aQ.test(e)&&(e=parseFloat(e),e=(0,N.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,N.t)(s.min,s.max,n);t===s&&(a-=e),t.min=t1(t.min,e,i,a,r),t.max=t1(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let t3=["x","scaleX","originX"],t5=["y","scaleY","originY"];function t9(t,e,i,n){t2(t.x,e,t3,i?i.x:void 0,n?n.x:void 0),t2(t.y,e,t5,i?i.y:void 0,n?n.y:void 0)}function t6(t){return 0===t.translate&&1===t.scale}function t4(t){return t6(t.x)&&t6(t.y)}function t8(t,e){return t.min===e.min&&t.max===e.max}function t7(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function et(t,e){return t7(t.x,e.x)&&t7(t.y,e.y)}function ee(t){return X(t.x)/X(t.y)}function ei(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class en{constructor(){this.members=[]}add(t){(0,tL.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,tL.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var er=i(7447);let es={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},eo=["","X","Y","Z"],ea={visibility:"hidden"},el=0;function eu(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function eh({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=el++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tB.f.value&&(es.nodes=es.calculatedTargetDeltas=es.calculatedProjections=0),this.nodes.forEach(ef),this.nodes.forEach(ew),this.nodes.forEach(eP),this.nodes.forEach(ep),tB.f.addProjectionMetrics&&tB.f.addProjectionMetrics(es)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tR.X.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&((0,j.Pn)(n),t(r-250))};return j.Wi.read(n,!0),()=>(0,j.Pn)(n)}(n,0),tx.hasAnimatedSinceResize&&(tx.hasAnimatedSinceResize=!1,this.nodes.forEach(ex))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||eD,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!et(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,E.ev)(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ex(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,j.Pn)(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(eT),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,tC.s)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",j.Wi,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||X(this.snapshot.measuredBox.x)||X(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t{let n=e/1e3;if(eS(o.x,t.x,n),eS(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p;_(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,eA(f.x,p.x,a.x,n),eA(f.y,p.y,a.y,n),i&&(u=this.relativeTarget,d=i,t8(u.x,d.x)&&t8(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,tt.dO)()),tJ(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,N.t)(0,void 0!==i.opacity?i.opacity:1,t_(n)),t.opacityExit=(0,N.t)(void 0!==e.opacity?e.opacity:1,0,tq(n))):s&&(t.opacity=(0,N.t)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r{tx.hasAnimatedSinceResize=!0,tF.P.layout++,this.currentAnimation=(0,tV.D)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{tF.P.layout--},onComplete:()=>{tF.P.layout--,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);let 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(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&eR(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,tt.dO)();let e=X(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=X(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}tJ(e,i),(0,t0.D2)(e,r),Y(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new en),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&eu("z",t,n,this.animationValues);for(let e=0;e{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(ev),this.root.sharedNodes.clear()}}}function ec(t){t.updateLayout()}function ed(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?te(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=X(n);n.min=e[t].min,n.max=n.min+r}):eR(r,i.layoutBox,e)&&te(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=X(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,tt.wc)();Y(o,e,i.layoutBox);let a=(0,tt.wc)();s?Y(a,t.applyTransform(n,!0),i.measuredBox):Y(a,e,i.layoutBox);let l=!t4(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=(0,tt.dO)();_(o,i.layoutBox,r.layoutBox);let a=(0,tt.dO)();_(a,e,s.layoutBox),et(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ef(t){tB.f.value&&es.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ep(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function em(t){t.clearSnapshot()}function ev(t){t.clearMeasurements()}function eg(t){t.isLayoutDirty=!1}function ey(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ex(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ew(t){t.resolveTargetDelta()}function eP(t){t.calcProjection()}function eT(t){t.resetSkewAndRotation()}function eb(t){t.removeLeadSnapshot()}function eS(t,e,i){t.translate=(0,N.t)(e.translate,0,i),t.scale=(0,N.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eA(t,e,i,n){t.min=(0,N.t)(e.min,i.min,n),t.max=(0,N.t)(e.max,i.max,n)}function eE(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eD={duration:.45,ease:[.4,0,.1,1]},eM=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eV=eM("applewebkit/")&&!eM("chrome/")?Math.round:S.Z;function eC(t){t.min=eV(t.min),t.max=eV(t.max)}function eR(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(ee(e)-ee(i)))}function ek(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let eL=eh({attachResizeListener:(t,e)=>M(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ej={current:void 0},eO=eh({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ej.current){let t=new eL({});t.mount(window),t.setOptions({layoutScroll:!0}),ej.current=t}return ej.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function eF(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&j.Wi.postRender(()=>r(e,V(e)))}class eB extends w{mount(){let{current:t}=this.node;t&&(this.unmount=(0,E.Mr)(t,(t,e)=>(eF(this.node,e,"Start"),t=>eF(this.node,t,"End"))))}unmount(){}}class eI extends w{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,L.z)(M(this.node.current,"focus",()=>this.onFocus()),M(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function eW(t,e,i){let{props:n}=t;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&j.Wi.postRender(()=>r(e,V(e)))}class e$ extends w{mount(){let{current:t}=this.node;t&&(this.unmount=(0,E.OD)(t,(t,e)=>(eW(this.node,e,"Start"),(t,{success:e})=>eW(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let eU=new WeakMap,eN=new WeakMap,eX=t=>{let e=eU.get(t.target);e&&e(t)},ez=t=>{t.forEach(eX)},eY={some:0,all:1};class eK extends w{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:eY[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;eN.has(i)||eN.set(i,{});let n=eN.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(ez,{root:t,...e})),n[r]}(e);return eU.set(t,i),n.observe(t),()=>{eU.delete(t),n.unobserve(t)}}(this.node.current,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:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}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 i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let eH=(0,tm.createContext)({strict:!1});var e_=i(58821);let eq=(0,tm.createContext)({});var eZ=i(55834);function eG(t){return Array.isArray(t)?t.join(" "):t}var eJ=i(60468),eQ=i(46929);let e0=Symbol.for("motionComponentSymbol");var e1=i(94796),e2=i(85949),e3=i(56525),e5=i(90051),e9=i(8361);let e6=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function e4(t,e,i){for(let n in e)(0,t$.i)(e[n])||(0,e5.j)(n,i)||(t[n]=e[n])}let e8=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function e7(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||e8.has(t)}let it=t=>!e7(t);try{(n=require("@emotion/is-prop-valid").default)&&(it=t=>t.startsWith("on")?!e7(t):n(t))}catch(t){}let ie=["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 ii(t){if("string"!=typeof t||t.includes("-"));else if(ie.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var ir=i(87847);let is=()=>({...e6(),attrs:{}});var io=i(34825),ia=i(86120),il=i(5809);let iu=t=>(e,i)=>{let n=(0,tm.useContext)(eq),r=(0,tm.useContext)(e1.O),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,r,s){let a={latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=tU(s[t]);let{initial:a,animate:l}=t,u=(0,eZ.G)(t),h=(0,eZ.M)(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let c=!!i&&!1===i.initial,d=(c=c||!1===a)?l:a;if(d&&"boolean"!=typeof d&&!(0,o.H)(d)){let e=Array.isArray(d)?d:[d];for(let i=0;ii({props:n,current:t,...a}),a.onUpdate=t=>i(t)),a})(t,e,n,r);return i?s():(0,il.h)(s)},ih={useVisualState:iu({scrapeMotionValuesFromProps:i(58480).U,createRenderState:e6})};var ic=i(83874),id=i(15720),ip=i(99967),im=i(17823);let iv=["x","y","width","height","cx","cy","r"],ig={useVisualState:iu({scrapeMotionValuesFromProps:im.U,createRenderState:is,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:r})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in r)if(ic.G.has(t)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let i=0;i{(0,id.g)(i,n),j.Wi.render(()=>{(0,ir.i)(n,r,(0,io.a)(i.tagName),t.transformTemplate),(0,ip.K)(i,n)})})}})};var iy=i(15173),ix=i(97621);let iw=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((r={animation:{Feature:P},exit:{Feature:b},inView:{Feature:eK},tap:{Feature:e$},focus:{Feature:eI},hover:{Feature:eB},pan:{Feature:tf},drag:{Feature:tc,ProjectionNode:eO,MeasureLayout:tD},layout:{ProjectionNode:eO,MeasureLayout:tD}},s=(t,e)=>ii(t)?new ix.e(e):new iy.W(e,{allowProjection:t!==tm.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:o,Component:a}=t;function l(t,e){var i;let n;let l={...(0,tm.useContext)(e_._),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tm.useContext)(tg.p).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:u}=l,h=function(t){let{initial:e,animate:i}=function(t,e){if((0,eZ.G)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,f.$)(e)?e:void 0,animate:(0,f.$)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tm.useContext)(eq));return(0,tm.useMemo)(()=>({initial:e,animate:i}),[eG(e),eG(i)])}(t),c=o(t,u);if(!u&&eJ.j){(0,tm.useContext)(eH).strict;let t=function(t){let{drag:e,layout:i}=eQ.featureDefinitions;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);n=t.MeasureLayout,h.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,tm.useContext)(eq),l=(0,tm.useContext)(eH),u=(0,tm.useContext)(e1.O),h=(0,tm.useContext)(e_._).reducedMotion,c=(0,tm.useRef)(null);n=n||l.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let d=c.current,f=(0,tm.useContext)(ty);d&&!d.projection&&r&&("html"===d.type||"svg"===d.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&$(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(c.current,i,r,f);let p=(0,tm.useRef)(!1);(0,tm.useInsertionEffect)(()=>{d&&p.current&&d.update(i,u)});let m=i[e3.M],v=(0,tm.useRef)(!!m&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,m))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,m)));return(0,e2.L)(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),tS.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),(0,tm.useEffect)(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,m)}),v.current=!1))}),d}(a,c,l,r,t.ProjectionNode)}return(0,tp.jsxs)(eq.Provider,{value:h,children:[n&&h.visualElement?(0,tp.jsx)(n,{visualElement:h.visualElement,...l}):null,s(a,t,(i=h.visualElement,(0,tm.useCallback)(t=>{t&&c.onMount&&c.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):$(e)&&(e.current=t))},[i])),c,u,h.visualElement)]})}n&&function(t){for(let e in t)eQ.featureDefinitions[e]={...eQ.featureDefinitions[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!==(i=null!==(e=a.displayName)&&void 0!==e?e:a.name)&&void 0!==i?i:"",")"));let u=(0,tm.forwardRef)(l);return u[e0]=a,u}({...ii(t)?ig:ih,preloadedFeatures:r,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let o=(ii(e)?function(t,e,i,n){let r=(0,tm.useMemo)(()=>{let i=is();return(0,ir.i)(i,e,(0,io.a)(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};e4(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return e4(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,tm.useMemo)(()=>{let i=e6();return(0,e9.r)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,s,e),a=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(it(r)||!0===i&&e7(r)||!e&&!e7(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==tm.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,tm.useMemo)(()=>(0,t$.i)(u)?u.get():u,[u]);return(0,tm.createElement)(e,{...l,children:h})}}(e),createVisualElement:s,Component:t})}))},92018:function(t,e,i){i.d(e,{s:function(){return m}});var n=i(78529),r=i(94166),s=i(43426),o=i(76397);let a=new Set(["auto","none","0"]);var l=i(83593),u=i(57144),h=i(99225),c=i(81366);let d=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var f=i(98412),p=i(68687);class m extends l.e{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}},98951:function(t,e,i){i.d(e,{J:function(){return o}});var n=i(70665),r=i(92018),s=i(22735);class o extends n.l{constructor(){super(...arguments),this.KeyframeResolver=r.s}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:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,s.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},78681:function(t,e,i){i.d(e,{D:function(){return n}});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},81366:function(t,e,i){i.d(e,{f:function(){return r},t:function(){return o}});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},999:function(t,e,i){i.d(e,{v:function(){return n}});function n(t){return t instanceof SVGElement&&"svg"!==t.tagName}},98412:function(t,e,i){i.d(e,{Ei:function(){return c},lw:function(){return d},mP:function(){return o}});var n=i(34628),r=i(90891),s=i(83874);let o=t=>t===n.Rx||t===r.px,a=(t,e)=>parseFloat(t.split(", ")[e]),l=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return a(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?a(e[1],t):0}},u=new Set(["x","y","z"]),h=s._.filter(t=>!u.has(t));function c(t){let e=[];return h.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}let d={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),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:l(4,13),y:l(5,14)};d.translateX=d.x,d.translateY=d.y},76397:function(t,e,i){i.d(e,{T:function(){return o}});var n=i(43426),r=i(16345),s=i(95532);function o(t,e){let i=(0,s.A)(t);return i!==r.h&&(i=n.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},95532:function(t,e,i){i.d(e,{A:function(){return o}});var n=i(33132),r=i(16345);let s={...i(85520).j,color:n.$,backgroundColor:n.$,outlineColor:n.$,fill:n.$,stroke:n.$,borderColor:n.$,borderTopColor:n.$,borderRightColor:n.$,borderBottomColor:n.$,borderLeftColor:n.$,filter:r.h,WebkitFilter:r.h},o=t=>s[t]},68687:function(t,e,i){i.d(e,{$:function(){return o},C:function(){return a}});var n=i(34628),r=i(90891),s=i(46993);let o=[n.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,s.l)(t))},85520:function(t,e,i){i.d(e,{j:function(){return l}});var n=i(34628),r=i(90891);let s={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,backgroundPositionX:r.px,backgroundPositionY:r.px},o={rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:n.bA,scaleX:n.bA,scaleY:n.bA,scaleZ:n.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:n.Fq,originX:r.$C,originY:r.$C,originZ:r.px},a={...n.Rx,transform:Math.round},l={...s,...o,zIndex:a,size:r.px,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:a}},46993:function(t,e,i){i.d(e,{l:function(){return n}});let n=t=>e=>e.test(t)},15173:function(t,e,i){i.d(e,{W:function(){return c}});var n=i(38188),r=i(98951),s=i(81366),o=i(95532),a=i(8361),l=i(83874),u=i(23242),h=i(58480);class c extends r.J{constructor(){super(...arguments),this.type="html",this.renderInstance=u.N}readValueFromInstance(t,e){if(l.G.has(e)){let t=(0,o.A)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,s.f)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,n.J)(t,e)}build(t,e,i){(0,a.r)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,h.U)(t,e,i)}}},8361:function(t,e,i){i.d(e,{r:function(){return u}});var n=i(81366);let r=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var s=i(85520),o=i(83874);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=o._.length;function u(t,e,i){let{style:u,vars:h,transformOrigin:c}=t,d=!1,f=!1;for(let t in e){let i=e[t];if(o.G.has(t)){d=!0;continue}if((0,n.f)(t)){h[t]=i;continue}{let e=r(i,s.j[t]);t.startsWith("origin")?(f=!0,c[t]=e):u[t]=e}}if(!e.transform&&(d||i?u.transform=function(t,e,i){let n="",u=!0;for(let h=0;h{this.current&&!this.renderState.dimensions&&(0,d.g)(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.G.has(e)){let t=(0,a.A)(e);return t&&t.default||0}return e=h.s.has(e)?e:(0,o.D)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,p.U)(t,e,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&n.Wi.postRender(this.updateDimensions)}build(t,e,i){(0,u.i)(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){(0,f.K)(t,e,i,n)}mount(t){this.isSVGTag=(0,c.a)(t.tagName),super.mount(t)}}},87847:function(t,e,i){i.d(e,{i:function(){return l}});var n=i(8361),r=i(90891);let s={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"};function a(t,e,i){return"string"==typeof t?t:r.px.transform(e+i*t)}function l(t,{attrX:e,attrY:i,attrScale:l,originX:u,originY:h,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...p},m,v){if((0,n.r)(t,p,v),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:g,style:y,dimensions:x}=t;g.transform&&(x&&(y.transform=g.transform),delete g.transform),x&&(void 0!==u||void 0!==h||y.transform)&&(y.transformOrigin=function(t,e,i){let n=a(e,t.x,t.width),r=a(i,t.y,t.height);return`${n} ${r}`}(x,void 0!==u?u:.5,void 0!==h?h:.5)),void 0!==e&&(g.x=e),void 0!==i&&(g.y=i),void 0!==l&&(g.scale=l),void 0!==c&&function(t,e,i=1,n=0,a=!0){t.pathLength=1;let l=a?s:o;t[l.offset]=r.px.transform(-n);let u=r.px.transform(e),h=r.px.transform(i);t[l.array]=`${u} ${h}`}(g,c,d,f,!1)}},14049:function(t,e,i){i.d(e,{s:function(){return n}});let n=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"])},34825:function(t,e,i){i.d(e,{a:function(){return n}});let n=t=>"string"==typeof t&&"svg"===t.toLowerCase()},15720:function(t,e,i){i.d(e,{g:function(){return n}});function n(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}},99967:function(t,e,i){i.d(e,{K:function(){return o}});var n=i(78681),r=i(23242),s=i(14049);function o(t,e,i,o){for(let i in(0,r.N)(t,e,void 0,o),e.attrs)t.setAttribute(s.s.has(i)?i:(0,n.D)(i),e.attrs[i])}},17823:function(t,e,i){i.d(e,{U:function(){return o}});var n=i(22735),r=i(83874),s=i(58480);function o(t,e,i){let o=(0,s.U)(t,e,i);for(let i in t)((0,n.i)(t[i])||(0,n.i)(e[i]))&&(o[-1!==r._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return o}},83593:function(t,e,i){i.d(e,{e:function(){return c},m:function(){return h}});var n=i(98412),r=i(92950);let s=new Set,o=!1,a=!1;function l(){if(a){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,n.Ei)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null===(n=t.getValue(e))||void 0===n||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,s.forEach(t=>t.complete()),s.clear()}function u(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function h(){u(),l()}class c{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(s.add(this),o||(o=!0,r.Wi.read(u),r.Wi.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r(0,r.$)(t[e]))}function a(t){return!!(o(t)||t.variants)}},92496:function(t,e,i){i.d(e,{$:function(){return n}});function n(t){return"string"==typeof t||Array.isArray(t)}},19312:function(t,e,i){i.d(e,{x:function(){return r}});var n=i(86120);function r(t,e,i){let r=t.getProps();return(0,n.o)(r,e,void 0!==i?i:r.custom,t)}},86120:function(t,e,i){function n(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function r(t,e,i,r){if("function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}return e}i.d(e,{o:function(){return r}})},6194:function(t,e,i){i.d(e,{V:function(){return r},e:function(){return n}});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...n]},13648:function(t,e,i){i.d(e,{P:function(){return n}});let n={layout:0,mainThread:0,waapi:0}},57963:function(t,e,i){i.d(e,{f:function(){return n}});let n={value:null,addProjectionMetrics:null}},48236:function(t,e,i){i.d(e,{c:function(){return n}});let n={skipAnimations:!1,useManualTiming:!1}},40046:function(t,e,i){function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:function(){return r},y4:function(){return n}})},7610:function(t,e,i){i.d(e,{u:function(){return n}});let n=(t,e,i)=>i>e?e:ie[0];if(2===c&&e[0]===e[1])return()=>e[1];let d=t[0]===t[1];t[0]>t[c-1]&&(t=[...t].reverse(),e=[...e].reverse());let f=function(t,e,i){let r=[],s=i||a.C,o=t.length-1;for(let i=0;i{if(d&&i1)for(;nm((0,o.u)(t[0],t[c-1],e)):m}},60468:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},99225:function(t,e,i){i.d(e,{P:function(){return n}});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},78529:function(t,e,i){i.d(e,{W:function(){return n}});let n=t=>/^0[^.\s]+$/u.test(t)},21062:function(t,e,i){i.d(e,{C:function(){return A}});var n=i(79029),r=i(57144);function s(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var o=i(94665),a=i(84772),l=i(56868);function u(t,e){return i=>i>0?e:t}let h=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},c=[o.$,a.m,l.J],d=t=>c.find(e=>e.test(t));function f(t){let e=d(t);if((0,r.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===l.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,o=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,l=2*i-n;r=s(l,n,t+1/3),o=s(l,n,t),a=s(l,n,t-1/3)}else r=o=a=i;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(i)),i}let p=(t,e)=>{let i=f(t),r=f(e);if(!i||!r)return u(t,e);let s={...i};return t=>(s.red=h(i.red,r.red,t),s.green=h(i.green,r.green,t),s.blue=h(i.blue,r.blue,t),s.alpha=(0,n.t)(i.alpha,r.alpha,t),a.m.transform(s))};var m=i(31381),v=i(33132),g=i(43426),y=i(81366);let x=new Set(["none","hidden"]);function w(t,e){return i=>(0,n.t)(t,e,i)}function P(t){return"number"==typeof t?w:"string"==typeof t?(0,y.t)(t)?u:v.$.test(t)?p:S:Array.isArray(t)?T:"object"==typeof t?v.$.test(t)?p:b:u}function T(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>P(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let S=(t,e)=>{let i=g.P.createTransformer(e),n=(0,g.V)(t),s=(0,g.V)(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?x.has(t)&&!s.values.length||x.has(e)&&!n.values.length?x.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:(0,m.z)(T(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;st+(e-t)*i},746:function(t,e,i){i.d(e,{Y:function(){return r}});var n=i(16396);function r(t){let e=[0];return(0,n.c)(e,t.length-1),e}},16396:function(t,e,i){i.d(e,{c:function(){return s}});var n=i(953),r=i(79029);function s(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,n.Y)(0,e,s);t.push((0,r.t)(i,1,o))}}},31381:function(t,e,i){i.d(e,{z:function(){return r}});let n=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(n)},31364:function(t,e,i){i.d(e,{Y:function(){return s},p:function(){return r}});var n=i(73078);let r=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),s=t=>(0,n.C)(t)?t[t.length-1]||0:t},40013:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(40046);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.y4)(this.subscriptions,t),()=>(0,n.cl)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;rt.on(e,i),[t,e,i])}},20113:function(t,e,i){i.d(e,{R:function(){return n}});function n(t,e){return e?1e3/e*t:0}},6092:function(t,e,i){i.d(e,{BX:function(){return h},S1:function(){return l}});var n=i(61180),r=i(40013),s=i(20113),o=i(92950);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.version="12.4.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=n.X.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=n.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new r.L);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let 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,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=n.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,s.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}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 h(t,e){return new u(t,e)}},94665:function(t,e,i){i.d(e,{$:function(){return r}});var n=i(84772);let r={test:(0,i(6055).i)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.m.transform}},56868:function(t,e,i){i.d(e,{J:function(){return a}});var n=i(34628),r=i(90891),s=i(34911),o=i(6055);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.N)(e))+", "+r.aQ.transform((0,s.N)(i))+", "+(0,s.N)(n.Fq.transform(o))+")"}},33132:function(t,e,i){i.d(e,{$:function(){return o}});var n=i(94665),r=i(56868),s=i(84772);let o={test:t=>s.m.test(t)||n.$.test(t)||r.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):r.J.test(t)?r.J.parse(t):n.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.m.transform(t):r.J.transform(t)}},84772:function(t,e,i){i.d(e,{m:function(){return u}});var n=i(7610),r=i(34628),s=i(34911),o=i(6055);let a=t=>(0,n.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,s.N)(r.Fq.transform(n))+")"}},6055:function(t,e,i){i.d(e,{i:function(){return s},d:function(){return o}});var n=i(10066);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,o,a,l]=r.match(n.K);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},16345:function(t,e,i){i.d(e,{h:function(){return l}});var n=i(43426),r=i(10066);let s=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(r.K)||[];if(!n)return t;let o=i.replace(n,""),a=s.has(e)?1:0;return n!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...n.P,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},43426:function(t,e,i){i.d(e,{V:function(){return h},P:function(){return p}});var n=i(33132);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(10066),o=i(34911);let a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function h(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],o=0,h=e.replace(u,t=>(n.$.test(t)?(r.color.push(o),s.push(l),i.push(n.$.parse(t))):t.startsWith("var(")?(r.var.push(o),s.push("var"),i.push(t)):(r.number.push(o),s.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:r,types:s}}function c(t){return h(t).values}function d(t){let{split:e,types:i}=h(t),r=e.length;return t=>{let s="";for(let u=0;u"number"==typeof t?0:t,p={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(s.K))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(r))||void 0===i?void 0:i.length)||0)>0},parse:c,createTransformer:d,getAnimatableNone:function(t){let e=c(t);return d(t)(e.map(f))}}},34628:function(t,e,i){i.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return o}});var n=i(7610);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.u)(0,1,t)},o={...r,default:1}},90891:function(t,e,i){i.d(e,{$C:function(){return u},RW:function(){return r},aQ:function(){return s},px:function(){return o},vh:function(){return a},vw:function(){return l}});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=n("deg"),s=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},10066:function(t,e,i){i.d(e,{K:function(){return n}});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},34911:function(t,e,i){i.d(e,{N:function(){return n}});let n=t=>Math.round(1e5*t)/1e5},11313:function(t,e,i){i.d(e,{N:function(){return o}});var n=i(81670),r=i(85949),s=i(92950);function o(t,e){let i=(0,n.c)(e()),o=()=>i.set(e());return o(),(0,r.L)(()=>{let e=()=>s.Wi.preRender(o,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,s.Pn)(o)}}),i}},46402:function(t,e,i){i.d(e,{Y:function(){return s}});var n=i(11313),r=i(22735);function s(t,...e){let i=t.length;return(0,n.N)(e.filter(r.i),function(){let n="";for(let s=0;s(0,r.BX)(t)),{isStatic:i}=(0,n.useContext)(s._);if(i){let[,i]=(0,n.useState)(t);(0,n.useEffect)(()=>e.on("change",i),[])}return e}},41834:function(t,e,i){i.d(e,{H:function(){return u}});var n=i(61410);let r=t=>t&&"object"==typeof t&&t.mix,s=t=>r(t)?t.mix:void 0;var o=i(11313),a=i(5809),l=i(6092);function u(t,e,i,r){if("function"==typeof t)return function(t){l.S1.current=[],t();let e=(0,o.N)(l.S1.current,t);return l.S1.current=void 0,e}(t);let a="function"==typeof e?e:function(...t){let e=!Array.isArray(t[0]),i=e?0:-1,r=t[0+i],o=t[1+i],a=t[2+i],l=t[3+i],u=(0,n.s)(o,a,{mixer:s(a[0]),...l});return e?u(r):u}(e,i,r);return Array.isArray(t)?h(t,a):h([t],([t])=>a(t))}function h(t,e){let i=(0,a.h)(()=>[]);return(0,o.N)(t,()=>{i.length=0;let n=t.length;for(let e=0;e!!(t&&t.getVelocity)},66603:function(t,e,i){i.d(e,{sP:function(){return o},_F:function(){return f},iI:function(){return u},S9:function(){return c},wk:function(){return y},ev:function(){return a},Mr:function(){return E},qE:function(){return p},xD:function(){return d},DJ:function(){return V},hR:function(){return x},eB:function(){return function t(e,i){if(e)return"function"==typeof e&&v()?y(e,i):p(e)?w(e):Array.isArray(e)?e.map(e=>t(e,i)||P.easeOut):P[e]}},EO:function(){return l},OD:function(){return F},IG:function(){return b},KV:function(){return B},Vc:function(){return v}});var n=i(99435);let r=(0,n.X)(()=>void 0!==window.ScrollTimeline);class s{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;ir()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;ee[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class o extends s{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function a(t,e){return t?t[e]||t.default||t:void 0}let l=2e4;function u(t){let e=0,i=t.next(e);for(;!i.done&&e=l?1/0:e}var h=i(41634);function c(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(u(n),l);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:(0,h.X)(r)}}function d(t){return"function"==typeof t}function f(t,e){t.timeline=e,t.onfinish=null}let p=t=>Array.isArray(t)&&"number"==typeof t[0],m={linearEasing:void 0},v=function(t,e){let i=(0,n.X)(t);return()=>{var t;return null!==(t=m[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var g=i(953);let y=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e`cubic-bezier(${t}, ${e}, ${i}, ${n})`,P={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:w([0,.65,.55,1]),circOut:w([.55,0,1,.45]),backIn:w([.31,.01,.66,-.59]),backOut:w([.33,1.53,.69,.99])},T={x:!1,y:!1};function b(t,e,i){var n;if(t instanceof EventTarget)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let s=null!==(n=null==i?void 0:i[t])&&void 0!==n?n:r.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function S(t,e){let i=b(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function A(t){return!("touch"===t.pointerType||T.x||T.y)}function E(t,e,i={}){let[n,r,s]=S(t,i),o=t=>{if(!A(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{A(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}function D(t,e){let i=`${e}PointerCapture`;if(t.target instanceof Element&&i in t.target&&void 0!==t.pointerId)try{t.target[i](t.pointerId)}catch(t){}}let M=(t,e)=>!!e&&(t===e||M(t,e.parentElement)),V=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,C=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),R=new WeakSet;function k(t){return e=>{"Enter"===e.key&&t(e)}}function L(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let j=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=k(()=>{if(R.has(i))return;L(i,"down");let t=k(()=>{L(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>L(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function O(t){return V(t)&&!(T.x||T.y)}function F(t,e,i={}){let[n,r,s]=S(t,i),o=t=>{let i=t.currentTarget;if(!i||!O(t)||R.has(i))return;R.add(i),D(t,"set");let n=e(i,t),s=(t,e)=>{i.removeEventListener("pointerup",o),i.removeEventListener("pointercancel",a),D(t,"release"),O(t)&&R.has(i)&&(R.delete(i),"function"==typeof n&&n(t,{success:e}))},o=t=>{var e;t.isTrusted&&(e=i instanceof Element?i.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight},t.clientXe.right||t.clientYe.bottom)?s(t,!1):s(t,!(i instanceof Element)||M(i,t.target))},a=t=>{s(t,!1)};i.addEventListener("pointerup",o,r),i.addEventListener("pointercancel",a,r),i.addEventListener("lostpointercapture",a,r)};return n.forEach(t=>{t=i.useGlobalTarget?window:t;let e=!1;if(t instanceof HTMLElement){var n;e=!0,n=t,C.has(n.tagName)||-1!==n.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0)}t.addEventListener("pointerdown",o,r),e&&t.addEventListener("focus",t=>j(t,r),r)}),s}function B(t){return"x"===t||"y"===t?T[t]?null:(T[t]=!0,()=>{T[t]=!1}):T.x||T.y?null:(T.x=T.y=!0,()=>{T.x=T.y=!1})}i(3643)},57144:function(t,e,i){i.d(e,{K:function(){return r},k:function(){return s}});var n=i(3643);let r=n.Z,s=n.Z},99435:function(t,e,i){i.d(e,{X:function(){return n}});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},3643:function(t,e,i){i.d(e,{Z:function(){return n}});let n=t=>t},953:function(t,e,i){i.d(e,{Y:function(){return n}});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},41634:function(t,e,i){i.d(e,{X:function(){return r},w:function(){return n}});let n=t=>1e3*t,r=t=>t/1e3},29293:function(t,e,i){i.d(e,{u_:function(){return P},ZA:function(){return T}});var n=i(21852),r=i(20501),s=i(92077),o=i(88387),a=i(39512),l=i(59107),u=i(15342),h=i(8920),c=i(21295),d=i(85562),f=i(77465);let p="undefined"!=typeof document&&window.visualViewport;function m(){return{width:p&&(null==p?void 0:p.width)||window.innerWidth,height:p&&(null==p?void 0:p.height)||window.innerHeight}}var v=i(31258),g=i(64824),y=i(94478);let x=(0,c.createContext)(null),w=(0,c.createContext)(null),P=(0,c.forwardRef)(function(t,e){if((0,c.useContext)(w))return c.createElement(S,{...t,modalRef:e},t.children);let{isDismissable:i,isKeyboardDismissDisabled:n,isOpen:r,defaultOpen:s,onOpenChange:o,children:a,isEntering:l,isExiting:u,UNSTABLE_portalContainer:h,shouldCloseOnInteractOutside:d,...f}=t;return c.createElement(T,{isDismissable:i,isKeyboardDismissDisabled:n,isOpen:r,defaultOpen:s,onOpenChange:o,isEntering:l,isExiting:u,UNSTABLE_portalContainer:h,shouldCloseOnInteractOutside:d},c.createElement(S,{...f,modalRef:e},a))}),T=(0,c.forwardRef)(function(t,e){[t,e]=(0,n.pE)(t,e,x);let i=(0,c.useContext)(r.$H),o=(0,y.d)(t),a=null==t.isOpen&&null==t.defaultOpen&&i?i:o,l=(0,f.B)(e),u=(0,c.useRef)(null),h=(0,n.xB)(l,a.isOpen),d=(0,n.xB)(u,a.isOpen),p=h||d||t.isExiting||!1,m=(0,s.Av)();return(a.isOpen||p)&&!m?c.createElement(b,{...t,state:a,isExiting:p,overlayRef:l,modalRef:u}):null});function b({UNSTABLE_portalContainer:t,...e}){let i=e.modalRef,{state:d}=e,{modalProps:f,underlayProps:g}=function(t,e,i){let{overlayProps:n,underlayProps:r}=(0,a.I)({...t,isOpen:e.isOpen,onClose:e.close},i);return(0,u.t)({isDisabled:!e.isOpen}),(0,l.Bq)(),(0,c.useEffect)(()=>{if(e.isOpen&&i.current)return(0,o.R)([i.current])},[e.isOpen,i]),{modalProps:(0,h.d)(n),underlayProps:r}}(e,d,i),y=(0,n.iW)(e.overlayRef)||e.isEntering||!1,x=(0,n.aX)({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:y,isExiting:e.isExiting,state:d}}),P=function(){let t=(0,s.Av)(),[e,i]=(0,c.useState)(()=>t?{width:0,height:0}:m());return(0,c.useEffect)(()=>{let t=()=>{i(t=>{let e=m();return e.width===t.width&&e.height===t.height?t:e})};return p?p.addEventListener("resize",t):window.addEventListener("resize",t),()=>{p?p.removeEventListener("resize",t):window.removeEventListener("resize",t)}},[]),e}(),T={...x.style,"--visual-viewport-height":P.height+"px"};return c.createElement(l.aV,{isExiting:e.isExiting,portalContainer:t},c.createElement("div",{...(0,h.d)((0,v.z)(e),g),...x,style:T,ref:e.overlayRef,"data-entering":y||void 0,"data-exiting":e.isExiting||void 0},c.createElement(n.zt,{values:[[w,{modalProps:f,modalRef:i,isExiting:e.isExiting,isDismissable:e.isDismissable}],[r.$H,d]]},x.children)))}function S(t){let{modalProps:e,modalRef:i,isExiting:s,isDismissable:o}=(0,c.useContext)(w),a=(0,c.useContext)(r.$H),l=(0,c.useMemo)(()=>(0,g.l)(t.modalRef,i),[t.modalRef,i]),u=(0,f.B)(l),p=(0,n.iW)(u),m=(0,n.aX)({...t,defaultClassName:"react-aria-Modal",values:{isEntering:p,isExiting:s,state:a}});return c.createElement("div",{...(0,h.d)((0,v.z)(t),e),...m,ref:u,"data-entering":p||void 0,"data-exiting":s||void 0},o&&c.createElement(d.U,{onDismiss:a.close}),m.children)}}}]);