"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[96999],{35104:(t,e,i)=>{i.d(e,{P:()=>s});let n=(0,i(68533).p)(()=>void 0!==window.ScrollTimeline);class s{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;in()&&i.attachTimeline?i.attachTimeline(t):e(i));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")}}},86092:(t,e,i)=>{i.d(e,{z:()=>o});var n=i(30843),s=i(30656),r=i(39706);function o(t,e,i){let o=(0,r.S)(t)?t:(0,s.OQ)(t);return o.start((0,n.f)("",o,e,i)),o.animation}},54470:(t,e,i)=>{i.d(e,{i:()=>d});var n=i(5260),s=i(47627),r=i(1824),o=i(4562),a=i(45529),l=i(96440);let u=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(l.f.test(t)||"0"===t)&&!t.startsWith("url("));var h=i(69696);class d{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=n.k.now(),this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,s.q)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=n.k.now(),this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:l,delay:d,onComplete:c,onUpdate:p,isGenerator:m}=this.options;if(!m&&!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],l=u(s,e),h=u(r,e);return(0,o.$)(l===h,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!!l&&!!h&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i{this.resolveFinishedPromise=t})}}},11984:(t,e,i)=>{i.d(e,{o:()=>H,L:()=>Y});var n=i(47627),s=i(63587),r=i(71672);function o({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:l,min:u,max:h,restDelta:d=.5,restSpeed:c}){let p,m;let f=t[0],v={done:!1,value:f},g=t=>void 0!==u&&th,y=t=>void 0===u?h:void 0===h?u:Math.abs(u-t)-x*Math.exp(-t/n),S=t=>P+T(t),b=t=>{let e=T(t),i=S(t);v.done=Math.abs(e)<=d,v.value=v.done?P:i},A=t=>{g(v.value)&&(p=t,m=(0,s.o)({keyframes:[v.value,y(v.value)],velocity:(0,r.Y)(S,t,v.value),damping:o,stiffness:a,restDelta:d,restSpeed:c}))};return A(0),{calculatedDuration:null,next:t=>{let e=!1;return(m||void 0!==p||(e=!0,b(t),A(t)),void 0!==p&&t>=p)?m.next(t-p):(e||b(t),v)}}}var a=i(44913),l=i(46091),u=i(35895),h=i(50438),d=i(57663),c=i(7762),p=i(64751),m=i(4562),f=i(66053);function v(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 g=i(98146),y=i(71575),x=i(37443);function w(t,e){return i=>i>0?e:t}let P=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},T=[g.u,y.B,x.V],S=t=>T.find(e=>e.test(t));function b(t){let e=S(t);if((0,m.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===x.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=v(a,n,t+1/3),r=v(a,n,t),o=v(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(i)),i}let A=(t,e)=>{let i=b(t),n=b(e);if(!i||!n)return w(t,e);let s={...i};return t=>(s.red=P(i.red,n.red,t),s.green=P(i.green,n.green,t),s.blue=P(i.blue,n.blue,t),s.alpha=(0,f.k)(i.alpha,n.alpha,t),y.B.transform(s))};var V=i(70401),E=i(96440),M=i(25244);let k=new Set(["none","hidden"]);function D(t,e){return i=>(0,f.k)(t,e,i)}function C(t){return"number"==typeof t?D:"string"==typeof t?(0,M.p)(t)?w:V.y.test(t)?A:L:Array.isArray(t)?R:"object"==typeof t?V.y.test(t)?A:j:w}function R(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>C(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let L=(t,e)=>{let i=E.f.createTransformer(e),n=(0,E.V)(t),s=(0,E.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?k.has(t)&&!s.values.length||k.has(e)&&!n.values.length?function(t,e){return k.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,d.F)(R(function(t,e){var i;let n=[],s={color:0,var:0,number:0};for(let r=0;re[0];if(2===r&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],s=i||F,r=t.length-1;for(let i=0;i{let i=0;if(a>1)for(;il((0,h.q)(t[0],t[r-1],e)):l}((i&&i.length===e.length?i:(0,B.Z)(e)).map(e=>e*t),e,{ease:Array.isArray(s)?s:e.map(()=>s||a.am).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(r.value=o(e),r.done=e>=t,r)}}var U=i(54470),I=i(82957),$=i(56231),W=i(5260),N=i(75290);let G=t=>{let e=({timestamp:e})=>t(e);return{start:()=>N.Gt.update(e,!0),stop:()=>(0,N.WG)(e),now:()=>N.uv.isProcessing?N.uv.timestamp:W.k.now()}};var K=i(69696),q=i(45529);let X={decay:o,inertia:o,tween:O,keyframes:O,spring:s.o},z=t=>t/100;class H extends U.i{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:s,keyframes:r}=this.options,o=(null==s?void 0:s.KeyframeResolver)||n.h;this.resolver=new o(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i;let{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o,velocity:a=0}=this.options,l=(0,q.W)(n)?n:X[n]||O;l!==O&&"number"!=typeof t[0]&&(e=(0,d.F)(z,F(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=(0,I.t)(u));let{calculatedDuration:h}=u,c=h+r;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(s+1)-r}}onPostResolved(){let{autoplay:t=!0}=this.options;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:s,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=i;if(null===this.startTime)return s.next(0);let{delay:c,repeat:p,repeatType:m,repeatDelay:f,onUpdate:v}=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 g=this.currentTime-c*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let x=this.currentTime,w=s;if(p){let t=Math.min(this.currentTime,u)/d,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,p+1))%2&&("reverse"===m?(i=1-i,f&&(i-=f/d)):"mirror"===m&&(w=r)),x=(0,h.q)(0,1,i)*d}let P=y?{done:!1,value:a[0]}:w.next(x);o&&(P.value=o(P.value));let{done:T}=P;y||null===l||(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return S&&void 0!==n&&(P.value=(0,K.X)(a,this.options,n)),v&&v(P.value),S&&this.finish(),P}get duration(){let{resolved:t}=this;return t?(0,$.X)(t.calculatedDuration):0}get time(){return(0,$.X)(this.currentTime)}set time(t){t=(0,$.f)(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,$.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=G,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()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function Y(t){return new H(t)}},69696:(t,e,i)=>{i.d(e,{X:()=>s});let n=t=>null!==t;function s(t,{repeat:e,repeatType:i="loop"},s){let r=t.filter(n),o=e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==s?s:r[o]}},61299:(t,e,i)=>{i.d(e,{K:()=>s});var n=i(7762);let s=(t,e,i=10)=>{let s="",r=Math.max(Math.round(e/i),2);for(let e=0;e{i.d(e,{o:()=>m});var n=i(61299),s=i(56231),r=i(71672),o=i(4562),a=i(50438);let l={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function u(t,e){return t*Math.sqrt(1-e*e)}var h=i(82957);let d=["duration","bounce"],c=["stiffness","damping","mass"];function p(t,e){return e.some(e=>void 0!==t[e])}function m(t=l.visualDuration,e=l.bounce){let i;let f="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:v,restDelta:g}=f,y=f.keyframes[0],x=f.keyframes[f.keyframes.length-1],w={done:!1,value:y},{stiffness:P,damping:T,mass:S,duration:b,velocity:A,isResolvedFromDuration:V}=function(t){let e={velocity:l.velocity,stiffness:l.stiffness,damping:l.damping,mass:l.mass,isResolvedFromDuration:!1,...t};if(!p(t,c)&&p(t,d)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*(0,a.q)(.05,1,1-t.bounce)*Math.sqrt(n);e={...e,mass:l.mass,stiffness:n,damping:s}}else{let i=function({duration:t=l.duration,bounce:e=l.bounce,velocity:i=l.velocity,mass:n=l.mass}){let r,h;(0,o.$)(t<=(0,s.f)(l.maxDuration),"Spring duration must be 10 seconds or less");let d=1-e;d=(0,a.q)(l.minDamping,l.maxDamping,d),t=(0,a.q)(l.minDuration,l.maxDuration,(0,s.X)(t)),d<1?(r=e=>{let n=e*d,s=n*t;return .001-(n-i)/u(e,d)*Math.exp(-s)},h=e=>{let n=e*d*t,s=Math.pow(d,2)*Math.pow(e,2)*t,o=Math.exp(-n),a=u(Math.pow(e,2),d);return(n*i+i-s)*o*(-r(e)+.001>0?-1:1)/a}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),h=e=>t*t*(i-e)*Math.exp(-e*t));let c=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,h,5/t);if(t=(0,s.f)(t),isNaN(c))return{stiffness:l.stiffness,damping:l.damping,duration:t};{let e=Math.pow(c,2)*n;return{stiffness:e,damping:2*d*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:l.mass}).isResolvedFromDuration=!0}}return e}({...f,velocity:-(0,s.X)(f.velocity||0)}),E=A||0,M=T/(2*Math.sqrt(P*S)),k=x-y,D=(0,s.X)(Math.sqrt(P/S)),C=5>Math.abs(k);if(v||(v=C?l.restSpeed.granular:l.restSpeed.default),g||(g=C?l.restDelta.granular:l.restDelta.default),M<1){let t=u(D,M);i=e=>x-Math.exp(-M*D*e)*((E+M*D*k)/t*Math.sin(t*e)+k*Math.cos(t*e))}else if(1===M)i=t=>x-Math.exp(-D*t)*(k+(E+D*k)*t);else{let t=D*Math.sqrt(M*M-1);i=e=>{let i=Math.exp(-M*D*e),n=Math.min(t*e,300);return x-i*((E+M*D*k)*Math.sinh(n)+t*k*Math.cosh(n))/t}}let R={calculatedDuration:V&&b||null,next:t=>{let e=i(t);if(V)w.done=t>=b;else{let n=0;M<1&&(n=0===t?(0,s.f)(E):(0,r.Y)(i,t,e));let o=Math.abs(n)<=v,a=Math.abs(x-e)<=g;w.done=o&&a}return w.value=w.done?x:e,w},toString:()=>{let t=Math.min((0,h.t)(R),h.Y),e=(0,n.K)(e=>R.next(t*e).value,t,30);return t+"ms "+e}};return R}},82957:(t,e,i)=>{i.d(e,{Y:()=>n,t:()=>s});let n=2e4;function s(t){let e=0,i=t.next(e);for(;!i.done&&e=n?1/0:e}},45529:(t,e,i)=>{i.d(e,{W:()=>n});function n(t){return"function"==typeof t}},71672:(t,e,i)=>{i.d(e,{Y:()=>s});var n=i(30147);function s(t,e,i){let s=Math.max(e-5,0);return(0,n.f)(i-t(s),e-s)}},30843:(t,e,i)=>{i.d(e,{f:()=>B});var n=i(56231),s=i(52526);let r={type:"spring",stiffness:500,damping:25,restSpeed:10},o=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),a={type:"keyframes",duration:.8},l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},u=(t,{keyframes:e})=>e.length>2?a:s.f.has(t)?t.startsWith("scale")?o(e[1]):r:l;var h=i(25614),d=i(77388),c=i(1824),p=i(69696),m=i(75290),f=i(22711),v=i(61894),g=i(43266),y=i(92213),x=i(64751),w=i(45529),P=i(54470),T=i(11984);let S=new Set(["opacity","clipPath","filter","transform"]);var b=i(12683),A=i(61299),V=i(68533);let E={linearEasing:void 0},M=function(t,e){let i=(0,V.p)(t);return()=>{var t;return null!==(t=E[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),k=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,D={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:k([0,.65,.55,1]),circOut:k([.55,0,1,.45]),backIn:k([.31,.01,.66,-.59]),backOut:k([.33,1.53,.69,.99])};function C(t,e){t.timeline=e,t.onfinish=null}let R=(0,V.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),j={anticipate:f.b,backInOut:v.ZZ,circInOut:g.tn};class L extends P.i{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:s}=this.options;this.resolver=new y.K(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i,n;let{duration:s=300,times:r,ease:o,type:a,motionValue:l,name:u,startTime:h}=this.options;if(!(null===(i=l.owner)||void 0===i?void 0:i.current))return!1;if("string"==typeof o&&M()&&o in j&&(o=j[o]),n=this.options,(0,w.W)(n.type)||"spring"===n.type||!function t(e){return!!("function"==typeof e&&M()||!e||"string"==typeof e&&(e in D||M())||(0,b.D)(e)||Array.isArray(e)&&e.every(t))}(n.ease)){let{onComplete:e,onUpdate:i,motionValue:n,element:l,...u}=this.options,h=function(t,e){let i=new T.o({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},s=[],r=0;for(;!n.done&&r<2e4;)s.push((n=i.sample(r)).value),r+=10;return{times:void 0,keyframes:s,duration:r-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),s=h.duration,r=h.times,o=h.ease,a="keyframes"}let d=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&M()?(0,A.K)(e,i):(0,b.D)(e)?k(e):Array.isArray(e)?e.map(e=>t(e,i)||D.easeOut):D[e]}(a,s);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"})}(l.owner.current,u,t,{...this.options,duration:s,times:r,ease:o});return d.startTime=null!=h?h:this.calcStartTime(),this.pendingTimeline?(C(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:i}=this.options;l.set((0,p.X)(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:s,times:r,type:a,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,n.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,n.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,n.f)(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 x.l;let{animation:i}=e;C(i,t)}else this.pendingTimeline=t;return x.l}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:s,type:r,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,d=new T.o({...h,keyframes:i,duration:s,type:r,ease:o,times:a,isGenerator:!0}),c=(0,n.f)(this.time);t.setWithVelocity(d.sample(c-10).value,d.sample(c).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:s,damping:r,type:o}=t;return R()&&i&&S.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}}var F=i(35104);let B=(t,e,i,s={},r,o)=>a=>{let l=(0,h.r)(s,t)||{},f=l.delay||s.delay||0,{elapsed:v=0}=s;v-=(0,n.f)(f);let g={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-v,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(l)&&(g={...g,...u(t,g)}),g.duration&&(g.duration=(0,n.f)(g.duration)),g.repeatDelay&&(g.repeatDelay=(0,n.f)(g.repeatDelay)),void 0!==g.from&&(g.keyframes[0]=g.from);let y=!1;if(!1!==g.type&&(0!==g.duration||g.repeatDelay)||(g.duration=0,0!==g.delay||(y=!0)),(c.d.current||d.W.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),y&&!o&&void 0!==e.get()){let t=(0,p.X)(g.keyframes,l);if(void 0!==t)return m.Gt.update(()=>{g.onUpdate(t),g.onComplete()}),new F.P([])}return!o&&L.supports(g)?new L(g):new T.o(g)}},81642:(t,e,i)=>{i.d(e,{$:()=>h});var n=i(52526),s=i(30843),r=i(85506),o=i(25614),a=i(61278),l=i(65831),u=i(75290);function h(t,e,{delay:i=0,transitionOverride:d,type:c}={}){var p;let{transition:m=t.getDefaultTransition(),transitionEnd:f,...v}=e;d&&(m=d);let g=[],y=c&&t.animationState&&t.animationState.getState()[c];for(let e in v){let r=t.getValue(e,null!==(p=t.latestValues[e])&&void 0!==p?p:null),h=v[e];if(void 0===h||y&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(y,e))continue;let d={delay:i,...(0,o.r)(m||{},e)},c=!1;if(window.MotionHandoffAnimation){let i=(0,a.P)(t);if(i){let t=window.MotionHandoffAnimation(i,e,u.Gt);null!==t&&(d.startTime=t,c=!0)}}(0,l.g)(t,e),r.start((0,s.f)(e,r,h,t.shouldReduceMotion&&n.f.has(e)?{type:!1}:d,t,c));let f=r.animation;f&&g.push(f)}return f&&Promise.all(g).then(()=>{u.Gt.update(()=>{f&&(0,r.U)(t,f)})}),g}},86712:(t,e,i)=>{i.d(e,{_:()=>a});var n=i(2387),s=i(81642);function r(t,e,i={}){var a;let l=(0,n.K)(t,e,"exit"===i.type?null===(a=t.presenceContext)||void 0===a?void 0:a.custom:void 0),{transition:u=t.getDefaultTransition()||{}}=l||{};i.transitionOverride&&(u=i.transitionOverride);let h=l?()=>Promise.all((0,s.$)(t,l,i)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:l}=u;return function(t,e,i=0,n=0,s=1,a){let l=[],u=(t.variantChildren.size-1)*n,h=1===s?(t=0)=>t*n:(t=0)=>u-t*n;return Array.from(t.variantChildren).sort(o).forEach((t,n)=>{t.notify("AnimationStart",e),l.push(r(t,e,{...a,delay:i+h(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(l)}(t,e,s+n,a,l,i)}:()=>Promise.resolve(),{when:c}=u;if(!c)return Promise.all([h(),d(i.delay)]);{let[t,e]="beforeChildren"===c?[h,d]:[d,h];return t().then(()=>e())}}function o(t,e){return t.sortNodePosition(e)}function a(t,e,i={}){let o;if(t.notify("AnimationStart",e),Array.isArray(e))o=Promise.all(e.map(e=>r(t,e,i)));else if("string"==typeof e)o=r(t,e,i);else{let r="function"==typeof e?(0,n.K)(t,e,i.custom):e;o=Promise.all((0,s.$)(t,r,i))}return o.then(()=>{t.notify("AnimationComplete",e)})}},12572:(t,e,i)=>{i.d(e,{n:()=>n});let n="data-"+(0,i(80578).I)("framerAppearId")},61278:(t,e,i)=>{i.d(e,{P:()=>s});var n=i(12572);function s(t){return t.props[n.n]}},25614:(t,e,i)=>{i.d(e,{r:()=>n});function n(t,e){return t?t[e]||t.default||t:void 0}},56340:(t,e,i)=>{i.d(e,{N:()=>n});function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},38214:(t,e,i)=>{i.d(e,{p:()=>n});let n=t=>Array.isArray(t)},63728:(t,e,i)=>{i.d(e,{N:()=>g});var n=i(19002),s=i(52114),r=i(10205),o=i(32341),a=i(50628);class l extends s.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u(t){let{children:e,isPresent:i}=t,r=(0,s.useId)(),o=(0,s.useRef)(null),u=(0,s.useRef)({width:0,height:0,top:0,left:0}),{nonce:h}=(0,s.useContext)(a.Q);return(0,s.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:s}=u.current;if(i||!o.current||!t||!e)return;o.current.dataset.motionPopId=r;let a=document.createElement("style");return h&&(a.nonce=h),document.head.appendChild(a),a.sheet&&a.sheet.insertRule('\n [data-motion-pop-id="'.concat(r,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n top: ").concat(n,"px !important;\n left: ").concat(s,"px !important;\n }\n ")),()=>{document.head.removeChild(a)}},[i]),(0,n.jsx)(l,{isPresent:i,childRef:o,sizeRef:u,children:s.cloneElement(e,{ref:o})})}let h=t=>{let{children:e,initial:i,isPresent:a,onExitComplete:l,custom:h,presenceAffectsLayout:c,mode:p}=t,m=(0,o.M)(d),f=(0,s.useId)(),v=(0,s.useCallback)(t=>{for(let e of(m.set(t,!0),m.values()))if(!e)return;l&&l()},[m,l]),g=(0,s.useMemo)(()=>({id:f,initial:i,isPresent:a,custom:h,onExitComplete:v,register:t=>(m.set(t,!1),()=>m.delete(t))}),c?[Math.random(),v]:[a,v]);return(0,s.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[a]),s.useEffect(()=>{a||m.size||!l||l()},[a]),"popLayout"===p&&(e=(0,n.jsx)(u,{isPresent:a,children:e})),(0,n.jsx)(r.t.Provider,{value:g,children:e})};function d(){return new Map}var c=i(34117),p=i(4562);let m=t=>t.key||"";function f(t){let e=[];return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&e.push(t)}),e}var v=i(31718);let g=t=>{let{children:e,exitBeforeEnter:i,custom:r,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:d="sync"}=t;(0,p.V)(!i,"Replace exitBeforeEnter with mode='wait'");let g=(0,s.useMemo)(()=>f(e),[e]),y=g.map(m),x=(0,s.useRef)(!0),w=(0,s.useRef)(g),P=(0,o.M)(()=>new Map),[T,S]=(0,s.useState)(g),[b,A]=(0,s.useState)(g);(0,v.E)(()=>{x.current=!1,w.current=g;for(let t=0;t{let e=m(t),i=g===b||y.includes(e);return(0,n.jsx)(h,{isPresent:i,initial:(!x.current||!!a)&&void 0,custom:i?void 0:r,presenceAffectsLayout:u,mode:d,onExitComplete:i?void 0:()=>{if(!P.has(e))return;P.set(e,!0);let t=!0;P.forEach(e=>{e||(t=!1)}),t&&(null==E||E(),A(w.current),l&&l())},children:t},e)})})}},34117:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(52114).createContext)({})},50628:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(52114).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},10205:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(52114).createContext)(null)},22711:(t,e,i)=>{i.d(e,{b:()=>s});var n=i(61894);let s=t=>(t*=2)<1?.5*(0,n.dg)(t):.5*(2-Math.pow(2,-10*(t-1)))},61894:(t,e,i)=>{i.d(e,{Sz:()=>o,ZZ:()=>l,dg:()=>a});var n=i(11193),s=i(55623),r=i(93410);let o=(0,n.A)(.33,1.53,.69,.99),a=(0,r.G)(o),l=(0,s.V)(a)},43266:(t,e,i)=>{i.d(e,{po:()=>r,tn:()=>a,yT:()=>o});var n=i(55623),s=i(93410);let r=t=>1-Math.sin(Math.acos(t)),o=(0,s.G)(r),a=(0,n.V)(r)},11193:(t,e,i)=>{i.d(e,{A:()=>r});var n=i(64751);let s=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function r(t,e,i,r){if(t===e&&i===r)return n.l;let o=e=>(function(t,e,i,n,r){let o,a;let l=0;do(o=s(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a;while(Math.abs(o)>1e-7&&++l<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:s(o(t),e,r)}},44913:(t,e,i)=>{i.d(e,{a6:()=>s,am:()=>o,vT:()=>r});var n=i(11193);let s=(0,n.A)(.42,0,1,1),r=(0,n.A)(0,0,.58,1),o=(0,n.A)(.42,0,.58,1)},55623:(t,e,i)=>{i.d(e,{V:()=>n});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},93410:(t,e,i)=>{i.d(e,{G:()=>n});let n=t=>e=>1-t(1-e)},12683:(t,e,i)=>{i.d(e,{D:()=>n});let n=t=>Array.isArray(t)&&"number"==typeof t[0]},46091:(t,e,i)=>{i.d(e,{h:()=>n});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},35895:(t,e,i)=>{i.d(e,{K:()=>c});var n=i(64751),s=i(4562),r=i(11193),o=i(44913),a=i(43266),l=i(61894),u=i(22711),h=i(12683);let d={linear:n.l,easeIn:o.a6,easeInOut:o.am,easeOut:o.vT,circIn:a.po,circInOut:a.tn,circOut:a.yT,backIn:l.dg,backInOut:l.ZZ,backOut:l.Sz,anticipate:u.b},c=t=>{if((0,h.D)(t)){(0,s.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,o]=t;return(0,r.A)(e,i,n,o)}return"string"==typeof t?((0,s.V)(void 0!==d[t],`Invalid easing type '${t}'`),d[t]):t}},14745:(t,e,i)=>{i.d(e,{I:()=>r});var n=i(77388);let s=["read","resolveKeyframes","update","preRender","render","postRender"];function r(t,e){let i=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=s.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,s=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,s=!1,o=!1)=>{let a=o&&n?e:i;return s&&r.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{if(o=t,n){s=!0;return}n=!0,[e,i]=[i,e],e.forEach(a),e.clear(),n=!1,s&&(s=!1,l.process(t))}};return l}(a),t),{}),{read:u,resolveKeyframes:h,update:d,preRender:c,render:p,postRender:m}=l,f=()=>{let s=n.W.useManualTiming?o.timestamp:performance.now();i=!1,o.delta=r?1e3/60:Math.max(Math.min(s-o.timestamp,40),1),o.timestamp=s,o.isProcessing=!0,u.process(o),h.process(o),d.process(o),c.process(o),p.process(o),m.process(o),o.isProcessing=!1,i&&e&&(r=!1,t(f))},v=()=>{i=!0,r=!0,o.isProcessing||t(f)};return{schedule:s.reduce((t,e)=>{let n=l[e];return t[e]=(t,e=!1,s=!1)=>(i||v(),n.schedule(t,e,s)),t},{}),cancel:t=>{for(let e=0;e{i.d(e,{Gt:()=>s,PP:()=>a,WG:()=>r,uv:()=>o});var n=i(64751);let{schedule:s,cancel:r,state:o,steps:a}=(0,i(14745).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},5260:(t,e,i)=>{let n;i.d(e,{k:()=>a});var s=i(77388),r=i(75290);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(r.uv.isProcessing||s.W.useManualTiming?r.uv.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},40770:(t,e,i)=>{i.d(e,{B:()=>s});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"]},s={};for(let t in n)s[t]={isEnabled:e=>n[t].some(t=>!!e[t])}},96079:(t,e,i)=>{i.d(e,{z:()=>r});var n=i(52013),s=i(52526);function r(t,{layout:e,layoutId:i}){return s.f.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!n.H[t]||"opacity"===t)}},15980:(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 s({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function r(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,{FY:()=>n,bS:()=>r,pA:()=>s})},80835:(t,e,i)=>{i.d(e,{OU:()=>u,Ql:()=>h,Ww:()=>c,hq:()=>r,o4:()=>l});var n=i(66053),s=i(91414);function r(t,e,i){return i+e*(t-i)}function o(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function a(t,e=0,i=1,n,s){t.min=o(t.min,e,i,n,s),t.max=o(t.max,e,i,n,s)}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 r,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 d(t,e,i,s,r=.5){let o=(0,n.k)(t.min,t.max,r);a(t,e,i,o,s)}function c(t,e){d(t.x,e.x,e.scaleX,e.scale,e.originX),d(t.y,e.y,e.scaleY,e.scale,e.originY)}},9066:(t,e,i)=>{i.d(e,{ge:()=>o,xU:()=>s});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),s=()=>({x:n(),y:n()}),r=()=>({min:0,max:0}),o=()=>({x:r(),y:r()})},52013:(t,e,i)=>{i.d(e,{$:()=>s,H:()=>n});let n={};function s(t){Object.assign(n,t)}},91414:(t,e,i)=>{function n(t){return void 0===t||1===t}function s({scale:t,scaleX:e,scaleY:i}){return!n(t)||!n(e)||!n(i)}function r(t){return s(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,{HD:()=>r,vF:()=>o,vk:()=>s})},82989:(t,e,i)=>{i.d(e,{L:()=>o,m:()=>r});var n=i(15980),s=i(80835);function r(t,e){return(0,n.FY)((0,n.bS)(t.getBoundingClientRect(),e))}function o(t,e,i){let n=r(t,i),{scroll:o}=e;return o&&((0,s.Ql)(n.x,o.offset.x),(0,s.Ql)(n.y,o.offset.y)),n}},6345:(t,e,i)=>{i.d(e,{B:()=>M});var n=i(12636);let s={current:null},r={current:!1};var o=i(61346),a=i(30656),l=i(39706),u=i(52526),h=i(94437),d=i(18175),c=i(40770),p=i(41111),m=i(47627),f=i(55630),v=i(57832),g=i(70401),y=i(96440),x=i(21695),w=i(88083);let P=[...x.T,g.y,y.f],T=t=>P.find((0,w.w)(t));var S=i(13460),b=i(9066),A=i(5260),V=i(75290);let E=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class M{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=m.h,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=A.k.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),r.current||function(){if(r.current=!0,n.B){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>s.current=t.matches;t.addListener(e),e()}else s.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||s.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in p.C.delete(this.current),this.projection&&this.projection.unmount(),(0,V.WG)(this.notifyUpdate),(0,V.WG)(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=u.f.has(t),s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&V.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),r(),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 c.B){let e=c.B[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,b.ge)()}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,a.OQ)(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,f.i)(n)||(0,v.$)(n))?n=parseFloat(n):!T(n)&&y.f.test(e)&&(n=(0,S.J)(t,e)),this.setBaseTarget(t,(0,l.S)(n)?n.get():n)),(0,l.S)(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 s=(0,d.a)(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,l.S)(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new o.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}},30868:(t,e,i)=>{i.d(e,{P:()=>ic});var n,s,r=i(56340),o=i(38214);function a(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})=>(0,d._)(t,e,i))),i=v(),n=!0,s=e=>(i,n)=>{var s;let r=(0,u.K)(t,n,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function f(u){let{props:d}=t,f=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,V=!1,E=Array.isArray(m)?m:[m],M=E.reduce(s(h),{});!1===T&&(M={});let{prevResolvedValues:k={}}=c,D={...k,...M},C=e=>{A=!0,g.has(e)&&(V=!0,g.delete(e)),c.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in D){let e=M[t],i=k[t];if(!y.hasOwnProperty(t))((0,o.p)(e)&&(0,o.p)(i)?a(e,i):e===i)?void 0!==e&&g.has(t)?C(t):c.protectedKeys[t]=!0:null!=e?C(t):g.add(t)}c.prevProp=m,c.prevResolvedValues=M,c.isActive&&(y={...y,...M}),n&&t.blockInitialAnimation&&(A=!1);let R=!(S&&b)||V;A&&R&&v.push(...E.map(t=>({animation:t,options:{type:h}})))}if(g.size){let e={};g.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!=n?n:null}),v.push({animation:e})}let P=!!v.length;return n&&(!1===d.initial||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(P=!1),n=!1,P?e(v):Promise.resolve()}return{animateChanges:f,setActive:function(e,n){var s;if(i[e].isActive===n)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,n)}),i[e].isActive=n;let r=f(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=v(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,r.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let x=0;class w extends g{constructor(){super(...arguments),this.id=x++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}var P=i(64751),T=i(4562),S=i(42353);function b(t){return{point:{x:t.pageX,y:t.pageY}}}let A=t=>e=>(0,S.Mc)(e)&&t(e,b(e));var V=i(56231);function E(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function M(t,e,i,n){return E(t,e,A(i),n)}var k=i(57663);let D=(t,e)=>Math.abs(t-e);var C=i(75290);class R{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=F(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(D(t.x,e.x)**2+D(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=C.uv;this.history.push({...n,timestamp:s});let{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=j(e,this.transformPagePoint),C.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=F("pointercancel"===t.type?this.lastMoveEventInfo:j(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!(0,S.Mc)(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let r=j(b(t),this.transformPagePoint),{point:o}=r,{timestamp:a}=C.uv;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,F(r,this.history)),this.removeListeners=(0,k.F)(M(this.contextWindow,"pointermove",this.handlePointerMove),M(this.contextWindow,"pointerup",this.handlePointerUp),M(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,C.WG)(this.updatePoint)}}function j(t,e){return e?{point:e(t.point)}:t}function L(t,e){return{x:t.x-e.x,y:t.y-e.y}}function F({point:t},e){return{point:t,delta:L(t,B(e)),offset:L(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=B(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,V.f)(.1)));)i--;if(!n)return{x:0,y:0};let r=(0,V.X)(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let o={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function B(t){return t[t.length-1]}function O(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var U=i(7762),I=i(66053);function $(t){return t.max-t.min}function W(t,e,i,n=.5){t.origin=n,t.originPoint=(0,I.k)(e.min,e.max,t.origin),t.scale=$(i)/$(e),t.translate=(0,I.k)(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 N(t,e,i,n){W(t.x,e.x,i.x,n?n.originX:void 0),W(t.y,e.y,i.y,n?n.originY:void 0)}function G(t,e,i){t.min=i.min+e.min,t.max=t.min+$(e)}function K(t,e,i){t.min=e.min-i.min,t.max=t.min+$(e)}function q(t,e,i){K(t.x,e.x,i.x),K(t.y,e.y,i.y)}var X=i(50438);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 H(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.mint?t.ownerDocument.defaultView:null;var ts=i(65831);let tr=new WeakMap;class to{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,Q.ge)(),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 R(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(b(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,S.Wp)(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),Z(t=>{let e=this.getAxisMotionValue(t).get()||0;if(te.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=$(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&C.Gt.postRender(()=>s(t,e)),(0,ts.g)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=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&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>Z(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:tn(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&C.Gt.postRender(()=>s(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||!ta(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?(0,I.k)(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}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,s=this.constraints;e&&O(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:z(t.x,i,s),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:Y(t,"left","right"),y:Y(t,"top","bottom")}}(i),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Z(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||!O(e))return!1;let n=e.current;(0,T.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=(0,J.L)(n,s.root,this.visualElement.getTransformPagePoint()),o={x:H((t=s.layout.layoutBox).x,r.x),y:H(t.y,r.y)};if(i){let t=i((0,tt.pA)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,tt.FY)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(Z(o=>{if(!ta(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(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,...s,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,ts.g)(this.visualElement,t),i.start((0,ti.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){Z(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Z(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){Z(e=>{let{drag:i}=this.getProps();if(!ta(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-(0,I.k)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!O(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};Z(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=$(t),s=$(e);return s>n?i=(0,U.q)(e.min,e.max-n,t.min):n>s&&(i=(0,U.q)(t.min,t.max-s,e.min)),(0,X.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Z(e=>{if(!ta(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,I.k)(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;tr.set(this.visualElement,this);let t=M(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();O(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()),C.Gt.read(e);let s=E(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Z(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function ta(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tl extends g{constructor(t){super(t),this.removeGroupControls=P.l,this.removeListeners=P.l,this.controls=new to(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let tu=t=>(e,i)=>{t&&C.Gt.postRender(()=>t(e,i))};class th extends g{constructor(){super(...arguments),this.removePointerDownListener=P.l}onPointerDown(t){this.session=new R(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tn(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tu(t),onStart:tu(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&C.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=M(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 td=i(19002),tc=i(52114),tp=i(10205),tm=i(34117);let tf=(0,tc.createContext)({}),tv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tg(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ty={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!te.px.test(t))return t;t=parseFloat(t)}let i=tg(t,e.target.x),n=tg(t,e.target.y);return`${i}% ${n}%`}};var tx=i(96440),tw=i(52013);let{schedule:tP,cancel:tT}=(0,i(14745).I)(queueMicrotask,!1);class tS extends tc.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;(0,tw.$)(tA),s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),tv.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,r=i.projection;return r&&(r.isPresent=s,n||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent===s||(s?r.promote():r.relegate()||C.Gt.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tP.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 tb(t){let[e,i]=function(){let t=(0,tc.useContext)(tp.t);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:n}=t,s=(0,tc.useId)();(0,tc.useEffect)(()=>n(s),[]);let r=(0,tc.useCallback)(()=>i&&i(s),[s,i]);return!e&&i?[!1,r]:[!0]}(),n=(0,tc.useContext)(tm.L);return(0,td.jsx)(tS,{...t,layoutGroup:n,switchLayoutGroup:(0,tc.useContext)(tf),isPresent:e,safeToRemove:i})}let tA={borderRadius:{...ty,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ty,borderTopRightRadius:ty,borderBottomLeftRadius:ty,borderBottomRightRadius:ty,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tx.f.parse(t);if(n.length>5)return t;let s=tx.f.createTransformer(t),r="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=(0,I.k)(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};var tV=i(61346),tE=i(43266);let tM=["TopLeft","TopRight","BottomLeft","BottomRight"],tk=tM.length,tD=t=>"string"==typeof t?parseFloat(t):t,tC=t=>"number"==typeof t||te.px.test(t);function tR(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tj=tF(0,.5,tE.yT),tL=tF(.5,.95,P.l);function tF(t,e,i){return n=>ne?1:i((0,U.q)(t,e,n))}function tB(t,e){t.min=e.min,t.max=e.max}function tO(t,e){tB(t.x,e.x),tB(t.y,e.y)}function tU(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tI=i(80835);function t$(t,e,i,n,s){return t-=e,t=(0,tI.hq)(t,1/i,n),void 0!==s&&(t=(0,tI.hq)(t,1/s,n)),t}function tW(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(te.KN.test(e)&&(e=parseFloat(e),e=(0,I.k)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,I.k)(r.min,r.max,n);t===r&&(a-=e),t.min=t$(t.min,e,i,a,s),t.max=t$(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let tN=["x","scaleX","originX"],tG=["y","scaleY","originY"];function tK(t,e,i,n){tW(t.x,e,tN,i?i.x:void 0,n?n.x:void 0),tW(t.y,e,tG,i?i.y:void 0,n?n.y:void 0)}var tq=i(25614);function tX(t){return 0===t.translate&&1===t.scale}function tz(t){return tX(t.x)&&tX(t.y)}function tH(t,e){return t.min===e.min&&t.max===e.max}function tY(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t_(t,e){return tY(t.x,e.x)&&tY(t.y,e.y)}function tQ(t){return $(t.x)/$(t.y)}function tZ(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var tJ=i(97700);class t0{constructor(){this.members=[]}add(t){(0,tJ.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,tJ.Ai)(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 t1=i(91414);let t5=(t,e)=>t.depth-e.depth;class t6{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tJ.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,tJ.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(t5),this.isDirty=!1,this.children.forEach(t)}}var t2=i(52827),t3=i(39706);function t4(t){let e=(0,t3.S)(t)?t.get():t;return(0,t2.B)(e)?e.toValue():e}var t9=i(5260),t7=i(14869),t8=i(86092),et=i(61278);let ee={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ei="undefined"!=typeof window&&void 0!==window.MotionDebug,en=["","X","Y","Z"],es={visibility:"hidden"},er=0;function eo(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function ea({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=null==e?void 0:e()){this.id=er++,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,ei&&(ee.totalNodes=ee.resolvedTargetDeltas=ee.recalculatedProjection=0),this.nodes.forEach(eh),this.nodes.forEach(eg),this.nodes.forEach(ey),this.nodes.forEach(ed),ei&&window.MotionDebug.record(ee)},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=t9.k.now(),n=({timestamp:e})=>{let s=e-i;s>=250&&((0,C.WG)(n),t(s-250))};return C.Gt.read(n,!0),()=>(0,C.WG)(n)}(n,250),tv.hasAnimatedSinceResize&&(tv.hasAnimatedSinceResize=!1,this.nodes.forEach(ev))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||eb,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!t_(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,tq.r)(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ev(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,C.WG)(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(ex),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,et.P)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",C.Gt,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(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())}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(eP(o.x,t.x,n),eP(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m;q(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,eT(p.x,m.x,a.x,n),eT(p.y,m.y,a.y,n),i&&(u=this.relativeTarget,c=i,tH(u.x,c.x)&&tH(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=(0,Q.ge)()),tO(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=(0,I.k)(0,void 0!==i.opacity?i.opacity:1,tj(n)),t.opacityExit=(0,I.k)(void 0!==e.opacity?e.opacity:1,0,tL(n))):r&&(t.opacity=(0,I.k)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let s=0;s{tv.hasAnimatedSinceResize=!0,this.currentAnimation=(0,t8.z)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);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:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&eM(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,Q.ge)();let e=$(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=$(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}tO(e,i),(0,tI.Ww)(e,s),N(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new t0),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&&eo("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(ep),this.root.sharedNodes.clear()}}}function el(t){t.updateLayout()}function eu(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:s}=t.options,r=i.source!==t.layout.source;"size"===s?Z(t=>{let n=r?i.measuredBox[t]:i.layoutBox[t],s=$(n);n.min=e[t].min,n.max=n.min+s}):eM(s,i.layoutBox,e)&&Z(n=>{let s=r?i.measuredBox[n]:i.layoutBox[n],o=$(e[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,Q.xU)();N(o,e,i.layoutBox);let a=(0,Q.xU)();r?N(a,t.applyTransform(n,!0),i.measuredBox):N(a,e,i.layoutBox);let l=!tz(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=(0,Q.ge)();q(o,i.layoutBox,s.layoutBox);let a=(0,Q.ge)();q(a,e,r.layoutBox),t_(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,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eh(t){ei&&ee.totalNodes++,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 ed(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ec(t){t.clearSnapshot()}function ep(t){t.clearMeasurements()}function em(t){t.isLayoutDirty=!1}function ef(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ev(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eg(t){t.resolveTargetDelta()}function ey(t){t.calcProjection()}function ex(t){t.resetSkewAndRotation()}function ew(t){t.removeLeadSnapshot()}function eP(t,e,i){t.translate=(0,I.k)(e.translate,0,i),t.scale=(0,I.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eT(t,e,i,n){t.min=(0,I.k)(e.min,i.min,n),t.max=(0,I.k)(e.max,i.max,n)}function eS(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eb={duration:.45,ease:[.4,0,.1,1]},eA=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eV=eA("applewebkit/")&&!eA("chrome/")?Math.round:P.l;function eE(t){t.min=eV(t.min),t.max=eV(t.max)}function eM(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(tQ(e)-tQ(i)))}function ek(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let eD=ea({attachResizeListener:(t,e)=>E(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eC={current:void 0},eR=ea({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eC.current){let t=new eD({});t.mount(window),t.setOptions({layoutScroll:!0}),eC.current=t}return eC.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ej(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&C.Gt.postRender(()=>s(e,b(e)))}class eL extends g{mount(){let{current:t}=this.node;t&&(this.unmount=(0,S.PT)(t,t=>(ej(this.node,t,"Start"),t=>ej(this.node,t,"End"))))}unmount(){}}class eF extends g{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,k.F)(E(this.node.current,"focus",()=>this.onFocus()),E(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function eB(t,e,i){let{props:n}=t;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&C.Gt.postRender(()=>s(e,b(e)))}class eO extends g{mount(){let{current:t}=this.node;t&&(this.unmount=(0,S.c$)(t,t=>(eB(this.node,t,"Start"),(t,{success:e})=>eB(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let eU=new WeakMap,eI=new WeakMap,e$=t=>{let e=eU.get(t.target);e&&e(t)},eW=t=>{t.forEach(e$)},eN={some:0,all:1};class eG extends g{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:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:eN[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;eI.has(i)||eI.set(i,{});let n=eI.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(eW,{root:t,...e})),n[s]}(e);return eU.set(t,i),n.observe(t),()=>{eU.delete(t),n.unobserve(t)}}(this.node.current,r,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!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(),r=e?i:n;r&&r(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(){}}var eK=i(50628);let eq=(0,tc.createContext)({});var eX=i(31718);let ez=(0,tc.createContext)({strict:!1});var eH=i(12572),eY=i(94437);function e_(t){return Array.isArray(t)?t.join(" "):t}var eQ=i(40770),eZ=i(12636);let eJ=Symbol.for("motionComponentSymbol"),e0=["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 e1(t){if("string"!=typeof t||t.includes("-"));else if(e0.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e5=i(84893),e6=i(81263),e2=i(18175),e3=i(32341);let e4=t=>(e,i)=>{let n=(0,tc.useContext)(eq),s=(0,tc.useContext)(tp.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},n,s,o){let a={latestValues:function(t,e,i,n){let s={},o=n(t,{});for(let t in o)s[t]=t4(o[t]);let{initial:a,animate:l}=t,u=(0,eY.e)(t),h=(0,eY.O)(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let d=!!i&&!1===i.initial,c=(d=d||!1===a)?l:a;if(c&&"boolean"!=typeof c&&!(0,r.N)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;ii(n,t,a)),a})(t,e,n,s);return i?o():(0,e3.M)(o)},e9=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),e7=()=>({...e9(),attrs:{}});var e8=i(85448),it=i(11511);let ie={useVisualState:e4({scrapeMotionValuesFromProps:e6.x,createRenderState:e7,onMount:(t,e,{renderState:i,latestValues:n})=>{C.Gt.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),C.Gt.render(()=>{(0,e8.B)(i,n,(0,it.n)(e.tagName),t.transformTemplate),(0,e5.d)(e,i)})}})},ii={useVisualState:e4({scrapeMotionValuesFromProps:i(60270).x,createRenderState:e9})};var is=i(96079),ir=i(36998);function io(t,e,i){for(let n in e)(0,t3.S)(e[n])||(0,is.z)(n,i)||(t[n]=e[n])}let ia=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 il(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ia.has(t)}let iu=t=>!il(t);try{!function(t){t&&(iu=e=>e.startsWith("on")?!il(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}var ih=i(83933),id=i(37661);let ic=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))})}((n={animation:{Feature:y},exit:{Feature:w},inView:{Feature:eG},tap:{Feature:eO},focus:{Feature:eF},hover:{Feature:eL},pan:{Feature:th},drag:{Feature:tl,ProjectionNode:eR,MeasureLayout:tb},layout:{ProjectionNode:eR,MeasureLayout:tb}},s=(t,e)=>e1(t)?new id.l(e):new ih.M(e,{allowProjection:t!==tc.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){let{preloadedFeatures:e,createVisualElement:i,useRender:n,useVisualState:s,Component:r}=t;e&&function(t){for(let e in t)eQ.B[e]={...eQ.B[e],...t[e]}}(e);let o=(0,tc.forwardRef)(function(t,e){var o;let a;let u={...(0,tc.useContext)(eK.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tc.useContext)(tm.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:h}=u,d=function(t){let{initial:e,animate:i}=function(t,e){if((0,eY.e)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,l.w)(e)?e:void 0,animate:(0,l.w)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tc.useContext)(eq));return(0,tc.useMemo)(()=>({initial:e,animate:i}),[e_(e),e_(i)])}(t),c=s(t,h);if(!h&&eZ.B){(0,tc.useContext)(ez).strict;let t=function(t){let{drag:e,layout:i}=eQ.B;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}}(u);a=t.MeasureLayout,d.visualElement=function(t,e,i,n,s){var r,o;let{visualElement:a}=(0,tc.useContext)(eq),l=(0,tc.useContext)(ez),u=(0,tc.useContext)(tp.t),h=(0,tc.useContext)(eK.Q).reducedMotion,d=(0,tc.useRef)(null);n=n||l.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,tc.useContext)(tf);c&&!c.projection&&s&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:s,layout:r,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:s,layout:r,alwaysMeasureLayout:!!o||a&&O(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,i,s,p);let m=(0,tc.useRef)(!1);(0,tc.useInsertionEffect)(()=>{c&&m.current&&c.update(i,u)});let f=i[eH.n],v=(0,tc.useRef)(!!f&&!(null===(r=window.MotionHandoffIsComplete)||void 0===r?void 0:r.call(window,f))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,f)));return(0,eX.E)(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),tP.render(c.render),v.current&&c.animationState&&c.animationState.animateChanges())}),(0,tc.useEffect)(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,f)}),v.current=!1))}),c}(r,c,u,i,t.ProjectionNode)}return(0,td.jsxs)(eq.Provider,{value:d,children:[a&&d.visualElement?(0,td.jsx)(a,{visualElement:d.visualElement,...u}):null,n(r,t,(o=d.visualElement,(0,tc.useCallback)(t=>{t&&c.mount&&c.mount(t),o&&(t?o.mount(t):o.unmount()),e&&("function"==typeof e?e(t):O(e)&&(e.current=t))},[o])),c,h,d.visualElement)]})});return o[eJ]=r,o}({...e1(t)?ie:ii,preloadedFeatures:n,useRender:function(t=!1){return(e,i,n,{latestValues:s},r)=>{let o=(e1(e)?function(t,e,i,n){let s=(0,tc.useMemo)(()=>{let i=e7();return(0,e8.B)(i,e,(0,it.n)(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};io(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return io(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,tc.useMemo)(()=>{let i=e9();return(0,ir.O)(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,s,r,e),a=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(iu(s)||!0===i&&il(s)||!e&&!il(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(i,"string"==typeof e,t),l=e!==tc.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,tc.useMemo)(()=>(0,t3.S)(u)?u.get():u,[u]);return(0,tc.createElement)(e,{...l,children:h})}}(e),createVisualElement:s,Component:t})}))},92213:(t,e,i)=>{i.d(e,{K:()=>m});var n=i(57832),s=i(4562),r=i(55630),o=i(25244);let a=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var l=i(40096),u=i(21695),h=i(47627),d=i(96440),c=i(13460);let p=new Set(["auto","none","0"]);class m extends h.h{constructor(t,e,i,n,s){super(t,e,i,n,s,!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()}}},49709:(t,e,i)=>{i.d(e,{b:()=>o});var n=i(6345),s=i(92213),r=i(39706);class o extends n.B{constructor(){super(...arguments),this.KeyframeResolver=s.K}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,r.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},80578:(t,e,i)=>{i.d(e,{I:()=>n});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},25244:(t,e,i)=>{i.d(e,{j:()=>s,p:()=>o});let n=t=>e=>"string"==typeof e&&e.startsWith(t),s=n("--"),r=n("var(--"),o=t=>!!r(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},14869:(t,e,i)=>{i.d(e,{x:()=>n});function n(t){return t instanceof SVGElement&&"svg"!==t.tagName}},40096:(t,e,i)=>{i.d(e,{$y:()=>o,E4:()=>a,Hr:()=>p,W9:()=>c});var n=i(52526),s=i(92346),r=i(80047);let o=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),a=t=>t===s.ai||t===r.px,l=(t,e)=>parseFloat(t.split(", ")[e]),u=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let s=n.match(/^matrix3d\((.+)\)$/u);if(s)return l(s[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?l(e[1],t):0}},h=new Set(["x","y","z"]),d=n.U.filter(t=>!h.has(t));function c(t){let e=[];return d.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}let p={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:u(4,13),y:u(5,14)};p.translateX=p.x,p.translateY=p.y},13460:(t,e,i)=>{i.d(e,{J:()=>o});var n=i(96440),s=i(65844),r=i(80985);function o(t,e){let i=(0,r.D)(t);return i!==s.p&&(i=n.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},80985:(t,e,i)=>{i.d(e,{D:()=>o});var n=i(70401),s=i(65844);let r={...i(9792).W,color:n.y,backgroundColor:n.y,outlineColor:n.y,fill:n.y,stroke:n.y,borderColor:n.y,borderTopColor:n.y,borderRightColor:n.y,borderBottomColor:n.y,borderLeftColor:n.y,filter:s.p,WebkitFilter:s.p},o=t=>r[t]},21695:(t,e,i)=>{i.d(e,{T:()=>o,n:()=>a});var n=i(92346),s=i(80047),r=i(88083);let o=[n.ai,s.px,s.KN,s.uj,s.vw,s.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,r.w)(t))},9792:(t,e,i)=>{i.d(e,{W:()=>l});var n=i(92346),s=i(80047);let r={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,backgroundPositionX:s.px,backgroundPositionY:s.px},o={rotate:s.uj,rotateX:s.uj,rotateY:s.uj,rotateZ:s.uj,scale:n.hs,scaleX:n.hs,scaleY:n.hs,scaleZ:n.hs,skew:s.uj,skewX:s.uj,skewY:s.uj,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:n.X4,originX:s.gQ,originY:s.gQ,originZ:s.px},a={...n.ai,transform:Math.round},l={...r,...o,zIndex:a,size:s.px,fillOpacity:n.X4,strokeOpacity:n.X4,numOctaves:a}},88083:(t,e,i)=>{i.d(e,{w:()=>n});let n=t=>e=>e.test(t)},83933:(t,e,i)=>{i.d(e,{M:()=>d});var n=i(36998),s=i(25244),r=i(52526),o=i(60270),a=i(31112),l=i(80985),u=i(82989),h=i(49709);class d extends h.b{constructor(){super(...arguments),this.type="html",this.renderInstance=a.e}readValueFromInstance(t,e){if(r.f.has(e)){let t=(0,l.D)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=((0,s.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,u.m)(t,e)}build(t,e,i){(0,n.O)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,o.x)(t,e,i)}}},36998:(t,e,i)=>{i.d(e,{O:()=>u});var n=i(52526);let s=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var r=i(9792);let o={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a=n.U.length;var l=i(25244);function u(t,e,i){let{style:u,vars:h,transformOrigin:d}=t,c=!1,p=!1;for(let t in e){let i=e[t];if(n.f.has(t)){c=!0;continue}if((0,l.j)(t)){h[t]=i;continue}{let e=s(i,r.W[t]);t.startsWith("origin")?(p=!0,d[t]=e):u[t]=e}}if(!e.transform&&(c||i?u.transform=function(t,e,i){let l="",u=!0;for(let h=0;h{i.d(e,{e:()=>n});function n(t,{style:e,vars:i},n,s){for(let r in Object.assign(t.style,e,s&&s.getProjectionStyles(n)),i)t.style.setProperty(r,i[r])}},60270:(t,e,i)=>{i.d(e,{x:()=>r});var n=i(96079),s=i(39706);function r(t,e,i){var r;let{style:o}=t,a={};for(let l in o)((0,s.S)(o[l])||e.style&&(0,s.S)(e.style[l])||(0,n.z)(l,t)||(null===(r=null==i?void 0:i.getValue(l))||void 0===r?void 0:r.liveStyle)!==void 0)&&(a[l]=o[l]);return a}},52526:(t,e,i)=>{i.d(e,{U:()=>n,f:()=>s});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(n)},41111:(t,e,i)=>{i.d(e,{C:()=>n});let n=new WeakMap},37661:(t,e,i)=>{i.d(e,{l:()=>p});var n=i(81263),s=i(49709),r=i(85448),o=i(80578),a=i(63309),l=i(52526),u=i(84893),h=i(80985),d=i(9066),c=i(11511);class p extends s.b{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=d.ge}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.f.has(e)){let t=(0,h.D)(e);return t&&t.default||0}return e=a.e.has(e)?e:(0,o.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,n.x)(t,e,i)}build(t,e,i){(0,r.B)(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){(0,u.d)(t,e,i,n)}mount(t){this.isSVGTag=(0,c.n)(t.tagName),super.mount(t)}}},85448:(t,e,i)=>{i.d(e,{B:()=>l});var n=i(36998),s=i(80047);function r(t,e,i){return"string"==typeof t?t:s.px.transform(e+i*t)}let o={offset:"stroke-dashoffset",array:"stroke-dasharray"},a={offset:"strokeDashoffset",array:"strokeDasharray"};function l(t,{attrX:e,attrY:i,attrScale:l,originX:u,originY:h,pathLength:d,pathSpacing:c=1,pathOffset:p=0,...m},f,v){if((0,n.O)(t,m,v),f){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=r(e,t.x,t.width),s=r(i,t.y,t.height);return`${n} ${s}`}(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!==d&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let l=r?o:a;t[l.offset]=s.px.transform(-n);let u=s.px.transform(e),h=s.px.transform(i);t[l.array]=`${u} ${h}`}(g,d,c,p,!1)}},63309:(t,e,i)=>{i.d(e,{e:()=>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"])},11511:(t,e,i)=>{i.d(e,{n:()=>n});let n=t=>"string"==typeof t&&"svg"===t.toLowerCase()},84893:(t,e,i)=>{i.d(e,{d:()=>o});var n=i(80578),s=i(31112),r=i(63309);function o(t,e,i,o){for(let i in(0,s.e)(t,e,void 0,o),e.attrs)t.setAttribute(r.e.has(i)?i:(0,n.I)(i),e.attrs[i])}},81263:(t,e,i)=>{i.d(e,{x:()=>o});var n=i(39706),s=i(60270),r=i(52526);function o(t,e,i){let o=(0,s.x)(t,e,i);for(let i in t)((0,n.S)(t[i])||(0,n.S)(e[i]))&&(o[-1!==r.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return o}},47627:(t,e,i)=>{i.d(e,{h:()=>d,q:()=>h});var n=i(40096),s=i(75290);let r=new Set,o=!1,a=!1;function l(){if(a){let t=Array.from(r).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,n.W9)(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,r.forEach(t=>t.complete()),r.clear()}function u(){r.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function h(){u(),l()}class d{constructor(t,e,i,n,s,r=!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=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(r.add(this),o||(o=!0,s.Gt.read(u),s.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let s=0;s{i.d(e,{O:()=>a,e:()=>o});var n=i(56340),s=i(98153),r=i(86296);function o(t){return(0,n.N)(t.animate)||r._.some(e=>(0,s.w)(t[e]))}function a(t){return!!(o(t)||t.variants)}},98153:(t,e,i)=>{i.d(e,{w:()=>n});function n(t){return"string"==typeof t||Array.isArray(t)}},2387:(t,e,i)=>{i.d(e,{K:()=>s});var n=i(18175);function s(t,e,i){let s=t.getProps();return(0,n.a)(s,e,void 0!==i?i:s.custom,t)}},18175:(t,e,i)=>{function n(t,e,i,n){if("function"==typeof e||("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e)){let[s,r]=function(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}(n);e=e(void 0!==i?i:t.custom,s,r)}return e}i.d(e,{a:()=>n})},85506:(t,e,i)=>{i.d(e,{U:()=>o});var n=i(52827),s=i(30656),r=i(2387);function o(t,e){let{transitionEnd:i={},transition:o={},...a}=(0,r.K)(t,e)||{};for(let e in a={...a,...i}){let i=(0,n.K)(a[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,s.OQ)(i))}}},86296:(t,e,i)=>{i.d(e,{U:()=>n,_:()=>s});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],s=["initial",...n]},77388:(t,e,i)=>{i.d(e,{W:()=>n});let n={skipAnimations:!1,useManualTiming:!1}},97700:(t,e,i)=>{function n(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>s,Kq:()=>n})},50438:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>i>e?e:i{i.d(e,{B:()=>n});let n="undefined"!=typeof window},55630:(t,e,i)=>{i.d(e,{i:()=>n});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},57832:(t,e,i)=>{i.d(e,{$:()=>n});let n=t=>/^0[^.\s]+$/u.test(t)},68533:(t,e,i)=>{i.d(e,{p:()=>n});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},66053:(t,e,i)=>{i.d(e,{k:()=>n});let n=(t,e,i)=>t+(e-t)*i},46697:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(71019);function s(t){let e=[0];return(0,n.f)(e,t.length-1),e}},71019:(t,e,i)=>{i.d(e,{f:()=>r});var n=i(66053),s=i(7762);function r(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let o=(0,s.q)(0,e,r);t.push((0,n.k)(i,1,o))}}},57663:(t,e,i)=>{i.d(e,{F:()=>s});let n=(t,e)=>i=>e(t(i)),s=(...t)=>t.reduce(n)},7762:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},52827:(t,e,i)=>{i.d(e,{B:()=>s,K:()=>r});var n=i(38214);let s=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),r=t=>(0,n.p)(t)?t[t.length-1]||0:t},61346:(t,e,i)=>{i.d(e,{v:()=>s});var n=i(97700);class s{constructor(){this.subscriptions=[]}add(t){return(0,n.Kq)(this.subscriptions,t),()=>(0,n.Ai)(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 s=0;s{i.d(e,{X:()=>s,f:()=>n});let n=t=>1e3*t,s=t=>t/1e3},32341:(t,e,i)=>{i.d(e,{M:()=>s});var n=i(52114);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},1824:(t,e,i)=>{i.d(e,{d:()=>n});let n={current:!1}},31718:(t,e,i)=>{i.d(e,{E:()=>s});var n=i(52114);let s=i(12636).B?n.useLayoutEffect:n.useEffect},30147:(t,e,i)=>{i.d(e,{f:()=>n});function n(t,e){return e?1e3/e*t:0}},30656:(t,e,i)=>{i.d(e,{OQ:()=>h});var n=i(61346),s=i(30147),r=i(5260),o=i(75290);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=r.k.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=r.k.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 n.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Gt.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=r.k.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.f)(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)}},98146:(t,e,i)=>{i.d(e,{u:()=>s});var n=i(71575);let s={test:(0,i(79452).$)("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:n.B.transform}},37443:(t,e,i)=>{i.d(e,{V:()=>a});var n=i(92346),s=i(80047),r=i(53338),o=i(79452);let a={test:(0,o.$)("hsl","hue"),parse:(0,o.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+s.KN.transform((0,r.a)(e))+", "+s.KN.transform((0,r.a)(i))+", "+(0,r.a)(n.X4.transform(o))+")"}},70401:(t,e,i)=>{i.d(e,{y:()=>o});var n=i(98146),s=i(37443),r=i(71575);let o={test:t=>r.B.test(t)||n.u.test(t)||s.V.test(t),parse:t=>r.B.test(t)?r.B.parse(t):s.V.test(t)?s.V.parse(t):n.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?r.B.transform(t):s.V.transform(t)}},71575:(t,e,i)=>{i.d(e,{B:()=>u});var n=i(50438),s=i(92346),r=i(53338),o=i(79452);let a=t=>(0,n.q)(0,255,t),l={...s.ai,transform:t=>Math.round(a(t))},u={test:(0,o.$)("rgb","red"),parse:(0,o.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,r.a)(s.X4.transform(n))+")"}},79452:(t,e,i)=>{i.d(e,{$:()=>r,q:()=>o});var n=i(97695);let s=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,r=(t,e)=>i=>!!("string"==typeof i&&s.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,o,a,l]=s.match(n.S);return{[t]:parseFloat(r),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},65844:(t,e,i)=>{i.d(e,{p:()=>l});var n=i(96440),s=i(97695);let r=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(s.S)||[];if(!n)return t;let o=i.replace(n,""),a=r.has(e)?1:0;return n!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...n.f,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},96440:(t,e,i)=>{i.d(e,{V:()=>h,f:()=>m});var n=i(70401);let s=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var r=i(97695),o=i(53338);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=[],s={color:[],number:[],var:[]},r=[],o=0,h=e.replace(u,t=>(n.y.test(t)?(s.color.push(o),r.push(l),i.push(n.y.parse(t))):t.startsWith("var(")?(s.var.push(o),r.push("var"),i.push(t)):(s.number.push(o),r.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:s,types:r}}function d(t){return h(t).values}function c(t){let{split:e,types:i}=h(t),s=e.length;return t=>{let r="";for(let u=0;u"number"==typeof t?0:t,m={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(r.S))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(s))||void 0===i?void 0:i.length)||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},92346:(t,e,i)=>{i.d(e,{X4:()=>r,ai:()=>s,hs:()=>o});var n=i(50438);let s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},r={...s,transform:t=>(0,n.q)(0,1,t)},o={...s,default:1}},80047:(t,e,i)=>{i.d(e,{KN:()=>r,gQ:()=>u,px:()=>o,uj:()=>s,vh:()=>a,vw:()=>l});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=n("deg"),r=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},97695:(t,e,i)=>{i.d(e,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},53338:(t,e,i)=>{i.d(e,{a:()=>n});let n=t=>Math.round(1e5*t)/1e5},65831:(t,e,i)=>{i.d(e,{g:()=>s});var n=i(39706);function s(t,e){let i=t.getValue("willChange");if((0,n.S)(i)&&i.add)return i.add(e)}},39706:(t,e,i)=>{i.d(e,{S:()=>n});let n=t=>!!(t&&t.getVelocity)},42353:(t,e,i)=>{i.d(e,{PT:()=>h,Mc:()=>c,c$:()=>x,KJ:()=>a,Wp:()=>w});function n(t){return!!("function"==typeof t&&supportsLinearEasing()||!t||"string"==typeof t&&(t in r||supportsLinearEasing())||isBezierDefinition(t)||Array.isArray(t)&&t.every(n))}let s=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,r={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:s([0,.65,.55,1]),circOut:s([.55,0,1,.45]),backIn:s([.31,.01,.66,-.59]),backOut:s([.33,1.53,.69,.99])},o={x:!1,y:!1};function a(t,e,i){var n;if(t instanceof Element)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let r=null!==(n=null==i?void 0:i[t])&&void 0!==n?n:s.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function l(t,e){let i=a(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function u(t){return e=>{"touch"===e.pointerType||o.x||o.y||t(e)}}function h(t,e,i={}){let[n,s,r]=l(t,i),o=u(t=>{let{target:i}=t,n=e(t);if("function"!=typeof n||!i)return;let r=u(t=>{n(t),i.removeEventListener("pointerleave",r)});i.addEventListener("pointerleave",r,s)});return n.forEach(t=>{t.addEventListener("pointerenter",o,s)}),r}let d=(t,e)=>!!e&&(t===e||d(t,e.parentElement)),c=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,p=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),m=new WeakSet;function f(t){return e=>{"Enter"===e.key&&t(e)}}function v(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let g=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=f(()=>{if(m.has(i))return;v(i,"down");let t=f(()=>{v(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>v(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function y(t){return c(t)&&!(o.x||o.y)}function x(t,e,i={}){let[n,s,r]=l(t,i),o=t=>{let n=t.currentTarget;if(!y(t)||m.has(n))return;m.add(n);let r=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),y(t)&&m.has(n)&&(m.delete(n),"function"==typeof r&&r(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||d(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{p.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),t.addEventListener("focus",t=>g(t,s),s)}),r}function w(t){return"x"===t||"y"===t?o[t]?null:(o[t]=!0,()=>{o[t]=!1}):o.x||o.y?null:(o.x=o.y=!0,()=>{o.x=o.y=!1})}i(64751)},4562:(t,e,i)=>{i.d(e,{$:()=>s,V:()=>r});var n=i(64751);let s=n.l,r=n.l},64751:(t,e,i)=>{i.d(e,{l:()=>n});let n=t=>t}}]);