try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ca519416-c9c8-4b33-a7e9-0ef5428df9a2",t._sentryDebugIdIdentifier="sentry-dbid-ca519416-c9c8-4b33-a7e9-0ef5428df9a2")}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8824],{11201:(t,e,i)=>{i.d(e,{Z:()=>T});var s=i(38245),o=i(84243),n=i(77346),r=(0,o.tv)({slots:{base:["flex","flex-col","relative","overflow-hidden","h-auto","outline-none","text-foreground","box-border","bg-content1",...n.zb],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,isFooterBlurred:!1}}),a=i(12115),l=i(73750),h=i(81627),u=i(77151),d=i(9906),c=i(48223),p=i(4885),m=i(60288),v=i(72100),g=i(44129),f=i(11665),y=i(67590),x=i(4612),P=i(95155),b=(0,m.Rf)((t,e)=>{let{children:i,context:o,Component:n,isPressable:b,disableAnimation:T,disableRipple:D,getCardProps:A,getRippleProps:w}=function(t){var e,i,s,o;let n=(0,p.o)(),[x,P]=(0,m.rE)(t,r.variantKeys),{ref:b,as:T,children:D,onClick:A,onPress:w,autoFocus:E,className:k,classNames:R,allowTextSelectionOnPress:S=!0,...j}=x,L=(0,f.zD)(b),C=T||(t.isPressable?"button":"div"),V="string"==typeof C,B=null!=(i=null!=(e=t.disableAnimation)?e:null==n?void 0:n.disableAnimation)&&i,M=null!=(o=null!=(s=t.disableRipple)?s:null==n?void 0:n.disableRipple)&&o,U=(0,v.$z)(null==R?void 0:R.base,k),{onClear:F,onPress:O,ripples:N}=(0,y.k)(),W=(0,a.useCallback)(t=>{M||B||L.current&&O(t)},[M,B,L,O]),{buttonProps:H,isPressed:G}=(0,c.l)({onPress:(0,l.c)(w,W),elementType:T,isDisabled:!t.isPressable,onClick:A,allowTextSelectionOnPress:S,...j},L),{hoverProps:I,isHovered:X}=(0,d.M)({isDisabled:!t.isHoverable,...j}),{isFocusVisible:z,isFocused:Q,focusProps:q}=(0,u.o)({autoFocus:E}),K=(0,a.useMemo)(()=>r({...P,disableAnimation:B}),[(0,v.t6)(P),B]),Y=(0,a.useMemo)(()=>({slots:K,classNames:R,disableAnimation:B,isDisabled:t.isDisabled,isFooterBlurred:t.isFooterBlurred,fullWidth:t.fullWidth}),[K,R,t.isDisabled,t.isFooterBlurred,B,t.fullWidth]),_=(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:L,className:K.base({class:U}),tabIndex:t.isPressable?0:-1,"data-hover":(0,v.sE)(X),"data-pressed":(0,v.sE)(G),"data-focus":(0,v.sE)(Q),"data-focus-visible":(0,v.sE)(z),"data-disabled":(0,v.sE)(t.isDisabled),...(0,h.v)(t.isPressable?{...H,...q,role:"button"}:{},t.isHoverable?I:{},(0,g.$)(j,{enabled:V}),(0,g.$)(e))}},[L,K,U,V,t.isPressable,t.isHoverable,t.isDisabled,X,G,z,H,q,I,j]),$=(0,a.useCallback)(()=>({ripples:N,onClear:F}),[N,F]);return{context:Y,domRef:L,Component:C,classNames:R,children:D,isHovered:X,isPressed:G,disableAnimation:B,isPressable:t.isPressable,isHoverable:t.isHoverable,disableRipple:M,handlePress:W,isFocusVisible:z,getCardProps:_,getRippleProps:$}}({...t,ref:e});return(0,P.jsxs)(n,{...A(),children:[(0,P.jsx)(s.u,{value:o,children:i}),b&&!T&&!D&&(0,P.jsx)(x.j,{...w()})]})});b.displayName="HeroUI.Card";var T=b},15315:(t,e,i)=>{i.d(e,{f:()=>s});function s(t,e){return e?1e3/e*t:0}},19932:(t,e,i)=>{let s;i.d(e,{k:()=>a});var o=i(74492),n=i(59210);function r(){s=void 0}let a={now:()=>(void 0===s&&a.set(n.uv.isProcessing||o.W.useManualTiming?n.uv.timestamp:performance.now()),s),set:t=>{s=t,queueMicrotask(r)}}},23905:(t,e,i)=>{i.d(e,{$:()=>I});var s=i(52290),o=i(19827),n=i(54542),r=i(46256),a=i(47215),l=i(51442),h=i(51586);function u(t,e,i,s){return(0,l.k)(t,e,(0,h.F)(i),s)}let d=(t,e)=>Math.abs(t-e);var c=i(97007),p=i(59210);class m{updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,p.WG)(this.updatePoint)}constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:o=!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:s}=t,{timestamp:o}=p.uv;this.history.push({...s,timestamp:o});let{onStart:n,onMove:r}=this.handlers;e||(n&&n(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=v(e,this.transformPagePoint),p.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=f("pointercancel"===t.type?this.lastMoveEventInfo:v(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!(0,r.Mc)(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let n=v((0,h.e)(t),this.transformPagePoint),{point:a}=n,{timestamp:l}=p.uv;this.history=[{...a,timestamp:l}];let{onSessionStart:m}=e;m&&m(t,f(n,this.history)),this.removeListeners=(0,c.F)(u(this.contextWindow,"pointermove",this.handlePointerMove),u(this.contextWindow,"pointerup",this.handlePointerUp),u(this.contextWindow,"pointercancel",this.handlePointerUp))}}function v(t,e){return e?{point:e(t.point)}:t}function g(t,e){return{x:t.x-e.x,y:t.y-e.y}}function f(t,e){let{point:i}=t;return{point:i,delta:g(i,y(e)),offset:g(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,o=y(t);for(;i>=0&&(s=t[i],!(o.timestamp-s.timestamp>(0,a.f)(.1)));)i--;if(!s)return{x:0,y:0};let n=(0,a.X)(o.timestamp-s.timestamp);if(0===n)return{x:0,y:0};let r={x:(o.x-s.x)/n,y:(o.y-s.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,.1)}}function y(t){return t[t.length-1]}var x=i(33991),P=i(45818),b=i(64200),T=i(77782),D=i(21109);function A(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 w(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min{let{current:e}=t;return e?e.ownerDocument.defaultView:null};var M=i(76333);let U=new WeakMap;class F{start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new m(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor((0,h.e)(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:o}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,r.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),(0,S.X)(t=>{let e=this.getAxisMotionValue(t).get()||0;if(C.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=(0,b.CQ)(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),o&&p.Gt.postRender(()=>o(t,e)),(0,M.g)(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:o,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:r}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(r),null!==this.currentDirection&&o&&o(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),n&&n(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>(0,S.X)(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:B(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&p.Gt.postRender(()=>o(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:s}=this.getProps();if(!i||!O(t,s,this.currentDirection))return;let o=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,e,i){let{min:s,max:o}=e;return void 0!==s&&to&&(t=i?(0,D.k)(o,t,i.max):Math.min(t,o)),t}(n,this.constraints[t],this.elastic[t])),o.set(n)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,o=this.constraints;e&&(0,x.X)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,e){let{top:i,left:s,bottom:o,right:n}=e;return{x:A(t.x,s,n),y:A(t.y,i,o)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:E(t,"left","right"),y:E(t,"top","bottom")}}(i),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&(0,S.X)(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}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,x.X)(e))return!1;let s=e.current;(0,n.V)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let r=(0,j.L)(s,o.root,this.visualElement.getTransformPagePoint()),a=(t=o.layout.layoutBox,{x:w(t.x,r.x),y:w(t.y,r.y)});if(i){let t=i((0,L.pA)(a));this.hasMutatedConstraints=!!t,t&&(a=(0,L.FY)(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:n,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all((0,S.X)(r=>{if(!O(r,e,this.currentDirection))return;let l=a&&a[r]||{};n&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[r]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,M.g)(this.visualElement,t),i.start((0,V.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){(0,S.X)(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){(0,S.X)(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e="_drag".concat(t.toUpperCase()),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){(0,S.X)(e=>{let{drag:i}=this.getProps();if(!O(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,o=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];o.set(t[e]-(0,D.k)(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,x.X)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};(0,S.X)(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=(0,b.CQ)(t),o=(0,b.CQ)(e);return o>s?i=(0,P.q)(e.min,e.max-s,t.min):s>o&&(i=(0,P.q)(t.min,t.max-o,e.min)),(0,T.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),(0,S.X)(e=>{if(!O(e,t,null))return;let i=this.getAxisMotionValue(e),{min:o,max:n}=this.constraints[e];i.set((0,D.k)(o,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;U.set(this.visualElement,this);let t=u(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,x.X)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),p.Gt.read(e);let o=(0,l.k)(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&((0,S.X)(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),s(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:n=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:n,dragMomentum:r}}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,R.ge)(),this.visualElement=t}}function O(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class N extends s.X{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||o.l}unmount(){this.removeGroupControls(),this.removeListeners()}constructor(t){super(t),this.removeGroupControls=o.l,this.removeListeners=o.l,this.controls=new F(t)}}let W=t=>(e,i)=>{t&&p.Gt.postRender(()=>t(e,i))};class H extends s.X{onPointerDown(t){this.session=new m(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:B(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:W(t),onStart:W(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&p.Gt.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=u(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=o.l}}var G=i(49267);let I={pan:{Feature:H},drag:{Feature:N,ProjectionNode:i(55607).P,MeasureLayout:G.$}}},29901:(t,e,i)=>{i.d(e,{w:()=>s});let s={hasAnimatedSinceResize:!0,hasEverUpdated:!1}},38245:(t,e,i)=>{i.d(e,{f:()=>o,u:()=>s});var[s,o]=(0,i(19452).q)({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within "})},49267:(t,e,i)=>{i.d(e,{$:()=>y});var s=i(95155),o=i(12115),n=i(32082),r=i(90869),a=i(70797),l=i(29901),h=i(45471);function u(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let d={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!h.px.test(t))return t;else t=parseFloat(t);let i=u(t,e.target.x),s=u(t,e.target.y);return"".concat(i,"% ").concat(s,"%")}};var c=i(21109),p=i(93013),m=i(20637),v=i(48466),g=i(59210);class f extends o.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:o}=t;(0,m.$)(x),o&&(e.group&&e.group.add(o),i&&i.register&&s&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),l.w.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:o}=this.props,n=i.projection;return n&&(n.isPresent=o,s||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?n.promote():n.relegate()||g.Gt.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),v.k.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function y(t){let[e,i]=(0,n.xQ)(),l=(0,o.useContext)(r.L);return(0,s.jsx)(f,{...t,layoutGroup:l,switchLayoutGroup:(0,o.useContext)(a.N),isPresent:e,safeToRemove:i})}let x={borderRadius:{...d,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:d,borderTopRightRadius:d,borderBottomLeftRadius:d,borderBottomRightRadius:d,boxShadow:{correct:(t,e)=>{let{treeScale:i,projectionDelta:s}=e,o=p.f.parse(t);if(o.length>5)return t;let n=p.f.createTransformer(t),r=+("number"!=typeof o[0]),a=s.x.scale*i.x,l=s.y.scale*i.y;o[0+r]/=a,o[1+r]/=l;let h=(0,c.k)(a,l,.5);return"number"==typeof o[2+r]&&(o[2+r]/=h),"number"==typeof o[3+r]&&(o[3+r]/=h),n(o)}}}},53292:(t,e,i)=>{i.d(e,{Z:()=>n});var s=i(55607),o=i(49267);let n={layout:{ProjectionNode:s.P,MeasureLayout:o.$}}},55607:(t,e,i)=>{i.d(e,{P:()=>tL});var s=i(46256),o=i(19827),n=i(59779),r=i(14570),a=i(44931),l=i(46926),h=i(59210),u=i(48466),d=i(19932),c=i(63284);let p=(t,e)=>t.depth-e.depth;class m{add(t){(0,c.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,c.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(p),this.isDirty=!1,this.children.forEach(t)}constructor(){this.children=[],this.isDirty=!1}}var v=i(77782),g=i(21109),f=i(66802),y=i(95902),x=i(45818),P=i(59282),b=i(45471);let T=["TopLeft","TopRight","BottomLeft","BottomRight"],D=T.length,A=t=>"string"==typeof t?parseFloat(t):t,w=t=>"number"==typeof t||b.px.test(t);function E(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let k=S(0,.5,P.yT),R=S(.5,.95,o.l);function S(t,e,i){return s=>se?1:i((0,x.q)(t,e,s))}function j(t,e){t.min=e.min,t.max=e.max}function L(t,e){j(t.x,e.x),j(t.y,e.y)}function C(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var V=i(96147),B=i(64200);function M(t,e,i,s,o){return t-=e,t=(0,V.hq)(t,1/i,s),void 0!==o&&(t=(0,V.hq)(t,1/o,s)),t}function U(t,e,i,s,o){let[n,r,a]=i;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=arguments.length>4?arguments[4]:void 0,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(b.KN.test(e)&&(e=parseFloat(e),e=(0,g.k)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,g.k)(n.min,n.max,s);t===n&&(a-=e),t.min=M(t.min,e,i,a,o),t.max=M(t.max,e,i,a,o)}(t,e[n],e[r],e[a],e.scale,s,o)}let F=["x","scaleX","originX"],O=["y","scaleY","originY"];function N(t,e,i,s){U(t.x,e,F,i?i.x:void 0,s?s.x:void 0),U(t.y,e,O,i?i.y:void 0,s?s.y:void 0)}var W=i(81786);function H(t){return 0===t.translate&&1===t.scale}function G(t){return H(t.x)&&H(t.y)}function I(t,e){return t.min===e.min&&t.max===e.max}function X(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function z(t,e){return X(t.x,e.x)&&X(t.y,e.y)}function Q(t){return(0,B.CQ)(t.x)/(0,B.CQ)(t.y)}function q(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class K{add(t){(0,c.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,c.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,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:s}=t.options;!1===s&&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)}constructor(){this.members=[]}}var Y=i(20637),_=i(94198),$=i(62662),Z=i(29901);let J={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},tt="undefined"!=typeof window&&void 0!==window.MotionDebug,te=["","X","Y","Z"],ti={visibility:"hidden"},ts=0;function to(t,e,i,s){let{latestValues:o}=e;o[t]&&(i[t]=o[t],e.setStaticValue(t,0),s&&(s[t]=0))}function tn(t){let{attachResizeListener:e,defaultParent:i,measureScroll:o,checkIsScrollRoot:c,resetTransform:p}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new f.v),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,i=Array(e>1?e-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:o,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||o)&&(this.isLayoutDirty=!0),e){let i,s=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=d.k.now(),s=e=>{let{timestamp:o}=e,n=o-i;n>=250&&((0,h.WG)(s),t(n-250))};return h.Gt.read(s,!0),()=>(0,h.WG)(s)}(s,250),Z.w.hasAnimatedSinceResize&&(Z.w.hasAnimatedSinceResize=!1,this.nodes.forEach(tm))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&r&&(o||n)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i,hasRelativeTargetChanged:o,layout:n}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||r.getDefaultTransition()||tT,{onLayoutAnimationStart:l,onLayoutAnimationComplete:h}=r.getProps(),u=!this.targetLayout||!z(this.targetLayout,n)||o,d=!i&&o;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||d||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,d);let t={...(0,s.rU)(a,"layout"),onPlay:l,onComplete:h};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else i||tm(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,h.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(tf),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[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 s=(0,l.P)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",h.Gt,!(t||i))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&t(o)}(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;t0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=c(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!p)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!G(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;t&&(e||(0,$.HD)(this.latestValues)||o)&&(p(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),s=this.removeElementScroll(i);return e&&(s=this.removeTransform(s)),tw((t=s).x),tw(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return(0,W.ge)();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(tk))){let{scroll:t}=this.root;t&&((0,V.Ql)(i.x,t.offset.x),(0,V.Ql)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,W.ge)();if(L(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e1&&void 0!==arguments[1]&&arguments[1],i=(0,W.ge)();L(i,t);for(let t=0;t0&&void 0!==arguments[0]&&arguments[0],i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==i;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:o,layoutId:n}=this.options;if(this.layout&&(o||n)){if(this.resolvedRelativeTargetAt=h.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,W.ge)(),this.relativeTargetOrigin=(0,W.ge)(),(0,B.jA)(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),L(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,W.ge)(),this.targetWithTransforms=(0,W.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,B.N)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):L(this.target,this.layout.layoutBox),(0,V.o4)(this.target,this.targetDelta)):L(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,W.ge)(),this.relativeTargetOrigin=(0,W.ge)(),(0,B.jA)(this.relativeTargetOrigin,this.target,t.target),L(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tt&&J.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,$.vk)(this.parent.latestValues)||(0,$.vF)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===h.uv.timestamp&&(s=!1),s)return;let{layout:o,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(o||n))return;L(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;(0,V.OU)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,W.ge)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(C(this.prevProjectionDelta.x,this.projectionDelta.x),C(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,B.vb)(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&q(this.projectionDelta.x,this.prevProjectionDelta.x)&&q(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tt&&J.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,W.xU)(),this.projectionDelta=(0,W.xU)(),this.projectionDeltaWithTransform=(0,W.xU)()}setAnimationOrigin(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=this.snapshot,o=s?s.latestValues:{},n={...this.latestValues},r=(0,W.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let a=(0,W.ge)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(tb));this.animationProgress=0,this.mixTargetDelta=i=>{let s=i/1e3;if(tx(r.x,t.x,s),tx(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,m,v,f;(0,B.jA)(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,v=a,f=s,tP(p.x,m.x,v.x,f),tP(p.y,m.y,v.y,f),e&&(h=this.relativeTarget,c=e,I(h.x,c.x)&&I(h.y,c.y))&&(this.isProjectionDirty=!1),e||(e=(0,W.ge)()),L(e,this.relativeTarget)}l&&(this.animationValues=n,function(t,e,i,s,o,n){o?(t.opacity=(0,g.k)(0,void 0!==i.opacity?i.opacity:1,k(s)),t.opacityExit=(0,g.k)(void 0!==e.opacity?e.opacity:1,0,R(s))):n&&(t.opacity=(0,g.k)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let o=0;o{Z.w.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let s=(0,r.S)(0)?0:(0,n.OQ)(t);return s.start((0,a.f)("",s,1e3,i)),s.animation}(0,0,{...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:s,latestValues:o}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&tE(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,W.ge)();let e=(0,B.CQ)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=(0,B.CQ)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}L(e,i),(0,V.Ww)(e,o),(0,B.vb)(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new K),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.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=this.getStack();s&&s.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 s={};i.z&&to("z",t,s,this.animationValues);for(let e=0;e{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(td),this.root.sharedNodes.clear()}constructor(t={},e=null==i?void 0:i()){this.id=ts++,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,tt&&(J.totalNodes=J.resolvedTargetDeltas=J.recalculatedProjection=0),this.nodes.forEach(tl),this.nodes.forEach(tv),this.nodes.forEach(tg),this.nodes.forEach(th),tt&&window.MotionDebug.record(J)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t{let s=n?i.measuredBox[t]:i.layoutBox[t],o=(0,B.CQ)(s);s.min=e[t].min,s.max=s.min+o}):tE(o,i.layoutBox,e)&&(0,_.X)(s=>{let o=n?i.measuredBox[s]:i.layoutBox[s],r=(0,B.CQ)(e[s]);o.max=o.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)});let r=(0,W.xU)();(0,B.vb)(r,e,i.layoutBox);let a=(0,W.xU)();n?(0,B.vb)(a,t.applyTransform(s,!0),i.measuredBox):(0,B.vb)(a,e,i.layoutBox);let l=!G(r),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:o,layout:n}=s;if(o&&n){let r=(0,W.ge)();(0,B.jA)(r,i.layoutBox,o.layoutBox);let a=(0,W.ge)();(0,B.jA)(a,e,n.layoutBox),z(r,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tl(t){tt&&J.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 th(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tu(t){t.clearSnapshot()}function td(t){t.clearMeasurements()}function tc(t){t.isLayoutDirty=!1}function tp(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tm(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tv(t){t.resolveTargetDelta()}function tg(t){t.calcProjection()}function tf(t){t.resetSkewAndRotation()}function ty(t){t.removeLeadSnapshot()}function tx(t,e,i){t.translate=(0,g.k)(e.translate,0,i),t.scale=(0,g.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tP(t,e,i,s){t.min=(0,g.k)(e.min,i.min,s),t.max=(0,g.k)(e.max,i.max,s)}function tb(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tT={duration:.45,ease:[.4,0,.1,1]},tD=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tA=tD("applewebkit/")&&!tD("chrome/")?Math.round:o.l;function tw(t){t.min=tA(t.min),t.max=tA(t.max)}function tE(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,B.HQ)(Q(e),Q(i),.2)}function tk(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}var tR=i(51442);let tS=tn({attachResizeListener:(t,e)=>(0,tR.k)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tj={current:void 0},tL=tn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tj.current){let t=new tS({});t.mount(window),t.setOptions({layoutScroll:!0}),tj.current=t}return tj.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position})},59779:(t,e,i)=>{i.d(e,{KG:()=>l,OQ:()=>h});var s=i(19932),o=i(66802),n=i(15315),r=i(59210);let a={current:void 0};class l{setCurrent(t){this.current=t,this.updatedAt=s.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]: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 o.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),r.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){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];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){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.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,n.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()}constructor(t,e={}){var i=this;this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],o=s.k.now();i.updatedAt!==o&&i.setPrevFrameValue(),i.prev=i.current,i.setCurrent(t),i.current!==i.prev&&i.events.change&&i.events.change.notify(i.current),e&&i.events.renderRequest&&i.events.renderRequest.notify(i.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}}function h(t,e){return new l(t,e)}},63284:(t,e,i)=>{function s(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>o,Kq:()=>s})},64200:(t,e,i)=>{i.d(e,{CQ:()=>o,HQ:()=>n,N:()=>h,jA:()=>d,vb:()=>a});var s=i(21109);function o(t){return t.max-t.min}function n(t,e,i){return Math.abs(t-e)<=i}function r(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=(0,s.k)(e.min,e.max,t.origin),t.scale=o(i)/o(e),t.translate=(0,s.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 a(t,e,i,s){r(t.x,e.x,i.x,s?s.originX:void 0),r(t.y,e.y,i.y,s?s.originY:void 0)}function l(t,e,i){t.min=i.min+e.min,t.max=t.min+o(e)}function h(t,e,i){l(t.x,e.x,i.x),l(t.y,e.y,i.y)}function u(t,e,i){t.min=e.min-i.min,t.max=t.min+o(e)}function d(t,e,i){u(t.x,e.x,i.x),u(t.y,e.y,i.y)}},66802:(t,e,i)=>{i.d(e,{v:()=>o});var s=i(63284);class o{add(t){return(0,s.Kq)(this.subscriptions,t),()=>(0,s.Ai)(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let o=0;o{i.d(e,{M:()=>s});let s=new Set(["opacity","clipPath","filter","transform"])},94198:(t,e,i)=>{i.d(e,{X:()=>s});function s(t){return[t("x"),t("y")]}},97399:(t,e,i)=>{i.d(e,{U:()=>o});var s=i(12115),o=(null==globalThis?void 0:globalThis.document)?s.useLayoutEffect:s.useEffect}}]);