1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[70154],{7522:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(62569).A)("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]])},12456:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(62569).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},23636:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(62569).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},31351:(t,e,i)=>{i.d(e,{H_:()=>t9,UC:()=>t2,YJ:()=>t5,q7:()=>t3,VF:()=>t7,JU:()=>t6,ZL:()=>t1,z6:()=>t4,hN:()=>t8,bL:()=>tQ,wv:()=>et,Pb:()=>ee,G5:()=>en,ZP:()=>ei,l9:()=>t0});var n=i(32209),r=i(87966),s=i(7709),o=i(64463),a=i(16514),l=i(97287),u=i(28518),h=i(96618),d=i(74724),c=i(50917),p=i(82176),m=i(59474),f=i(6027),v=i(4544),g=i(69741),y=i(46609),x=i(91209),w=i(8482),b=i(5164),T=i(71652),P=i(77301),S=["Enter"," "],M=["ArrowUp","PageDown","End"],A=["ArrowDown","PageUp","Home",...M],E={ltr:[...S,"ArrowRight"],rtl:[...S,"ArrowLeft"]},C={ltr:["ArrowLeft"],rtl:["ArrowRight"]},k="Menu",[D,V,R]=(0,u.N)(k),[j,L]=(0,o.A)(k,[R,f.Bk,y.RG]),I=(0,f.Bk)(),F=(0,y.RG)(),[B,O]=j(k),[N,U]=j(k),_=t=>{let{__scopeMenu:e,open:i=!1,children:r,dir:s,onOpenChange:o,modal:a=!0}=t,l=I(e),[u,d]=n.useState(null),c=n.useRef(!1),p=(0,w.c)(o),m=(0,h.jH)(s);return n.useEffect(()=>{let t=()=>{c.current=!0,document.addEventListener("pointerdown",e,{capture:!0,once:!0}),document.addEventListener("pointermove",e,{capture:!0,once:!0})},e=()=>c.current=!1;return document.addEventListener("keydown",t,{capture:!0}),()=>{document.removeEventListener("keydown",t,{capture:!0}),document.removeEventListener("pointerdown",e,{capture:!0}),document.removeEventListener("pointermove",e,{capture:!0})}},[]),(0,P.jsx)(f.bL,{...l,children:(0,P.jsx)(B,{scope:e,open:i,onOpenChange:p,content:u,onContentChange:d,children:(0,P.jsx)(N,{scope:e,onClose:n.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:c,dir:m,modal:a,children:r})})})};_.displayName=k;var W=n.forwardRef((t,e)=>{let{__scopeMenu:i,...n}=t,r=I(i);return(0,P.jsx)(f.Mz,{...r,...n,ref:e})});W.displayName="MenuAnchor";var $="MenuPortal",[z,K]=j($,{forceMount:void 0}),H=t=>{let{__scopeMenu:e,forceMount:i,children:n,container:r}=t,s=O($,e);return(0,P.jsx)(z,{scope:e,forceMount:i,children:(0,P.jsx)(g.C,{present:i||s.open,children:(0,P.jsx)(v.Z,{asChild:!0,container:r,children:n})})})};H.displayName=$;var X="MenuContent",[Y,G]=j(X),q=n.forwardRef((t,e)=>{let i=K(X,t.__scopeMenu),{forceMount:n=i.forceMount,...r}=t,s=O(X,t.__scopeMenu),o=U(X,t.__scopeMenu);return(0,P.jsx)(D.Provider,{scope:t.__scopeMenu,children:(0,P.jsx)(g.C,{present:n||s.open,children:(0,P.jsx)(D.Slot,{scope:t.__scopeMenu,children:o.modal?(0,P.jsx)(Z,{...r,ref:e}):(0,P.jsx)(J,{...r,ref:e})})})})}),Z=n.forwardRef((t,e)=>{let i=O(X,t.__scopeMenu),o=n.useRef(null),a=(0,s.s)(e,o);return n.useEffect(()=>{let t=o.current;if(t)return(0,b.Eq)(t)},[]),(0,P.jsx)(Q,{...t,ref:a,trapFocus:i.open,disableOutsidePointerEvents:i.open,disableOutsideScroll:!0,onFocusOutside:(0,r.m)(t.onFocusOutside,t=>t.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>i.onOpenChange(!1)})}),J=n.forwardRef((t,e)=>{let i=O(X,t.__scopeMenu);return(0,P.jsx)(Q,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>i.onOpenChange(!1)})}),Q=n.forwardRef((t,e)=>{let{__scopeMenu:i,loop:o=!1,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:h,onEntryFocus:m,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:w,onInteractOutside:b,onDismiss:S,disableOutsideScroll:E,...C}=t,k=O(X,i),D=U(X,i),R=I(i),j=F(i),L=V(i),[B,N]=n.useState(null),_=n.useRef(null),W=(0,s.s)(e,_,k.onContentChange),$=n.useRef(0),z=n.useRef(""),K=n.useRef(0),H=n.useRef(null),G=n.useRef("right"),q=n.useRef(0),Z=E?T.A:n.Fragment,J=E?{as:x.DX,allowPinchZoom:!0}:void 0,Q=t=>{var e,i;let n=z.current+t,r=L().filter(t=>!t.disabled),s=document.activeElement,o=null===(e=r.find(t=>t.ref.current===s))||void 0===e?void 0:e.textValue,a=function(t,e,
1i){var n;let r=e.length>1&&Array.from(e).every(t=>t===e[0])?e[0]:e,s=(n=Math.max(i?t.indexOf(i):-1,0),t.map((e,i)=>t[(n+i)%t.length]));1===r.length&&(s=s.filter(t=>t!==i));let o=s.find(t=>t.toLowerCase().startsWith(r.toLowerCase()));return o!==i?o:void 0}(r.map(t=>t.textValue),n,o),l=null===(i=r.find(t=>t.textValue===a))||void 0===i?void 0:i.ref.current;!function t(e){z.current=e,window.clearTimeout($.current),""!==e&&($.current=window.setTimeout(()=>t(""),1e3))}(n),l&&setTimeout(()=>l.focus())};n.useEffect(()=>()=>window.clearTimeout($.current),[]),(0,c.Oh)();let tt=n.useCallback(t=>{var e,i;return G.current===(null===(e=H.current)||void 0===e?void 0:e.side)&&function(t,e){return!!e&&function(t,e){let{x:i,y:n}=t,r=!1;for(let t=0,s=e.length-1;t<e.length;s=t++){let o=e[t].x,a=e[t].y,l=e[s].x,u=e[s].y;a>n!=u>n&&i<(l-o)*(n-a)/(u-a)+o&&(r=!r)}return r}({x:t.clientX,y:t.clientY},e)}(t,null===(i=H.current)||void 0===i?void 0:i.area)},[]);return(0,P.jsx)(Y,{scope:i,searchRef:z,onItemEnter:n.useCallback(t=>{tt(t)&&t.preventDefault()},[tt]),onItemLeave:n.useCallback(t=>{var e;tt(t)||(null===(e=_.current)||void 0===e||e.focus(),N(null))},[tt]),onTriggerLeave:n.useCallback(t=>{tt(t)&&t.preventDefault()},[tt]),pointerGraceTimerRef:K,onPointerGraceIntentChange:n.useCallback(t=>{H.current=t},[]),children:(0,P.jsx)(Z,{...J,children:(0,P.jsx)(p.n,{asChild:!0,trapped:a,onMountAutoFocus:(0,r.m)(l,t=>{var e;t.preventDefault(),null===(e=_.current)||void 0===e||e.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,P.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:w,onInteractOutside:b,onDismiss:S,children:(0,P.jsx)(y.bL,{asChild:!0,...j,dir:D.dir,orientation:"vertical",loop:o,currentTabStopId:B,onCurrentTabStopIdChange:N,onEntryFocus:(0,r.m)(m,t=>{D.isUsingKeyboardRef.current||t.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,P.jsx)(f.UC,{role:"menu","aria-orientation":"vertical","data-state":tE(k.open),"data-radix-menu-content":"",dir:D.dir,...R,...C,ref:W,style:{outline:"none",...C.style},onKeyDown:(0,r.m)(C.onKeyDown,t=>{let e=t.target.closest("[data-radix-menu-content]")===t.currentTarget,i=t.ctrlKey||t.altKey||t.metaKey,n=1===t.key.length;e&&("Tab"===t.key&&t.preventDefault(),!i&&n&&Q(t.key));let r=_.current;if(t.target!==r||!A.includes(t.key))return;t.preventDefault();let s=L().filter(t=>!t.disabled).map(t=>t.ref.current);M.includes(t.key)&&s.reverse(),function(t){let e=document.activeElement;for(let i of t)if(i===e||(i.focus(),document.activeElement!==e))return}(s)}),onBlur:(0,r.m)(t.onBlur,t=>{t.currentTarget.contains(t.target)||(window.clearTimeout($.current),z.current="")}),onPointerMove:(0,r.m)(t.onPointerMove,tD(t=>{let e=t.target,i=q.current!==t.clientX;t.currentTarget.contains(e)&&i&&(G.current=t.clientX>q.current?"right":"left",q.current=t.clientX)}))})})})})})})});q.displayName=X;var tt=n.forwardRef((t,e)=>{let{__scopeMenu:i,...n}=t;return(0,P.jsx)(l.sG.div,{role:"group",...n,ref:e})});tt.displayName="MenuGroup";var te=n.forwardRef((t,e)=>{let{__scopeMenu:i,...n}=t;return(0,P.jsx)(l.sG.div,{...n,ref:e})});te.displayName="MenuLabel";var ti="MenuItem",tn="menu.itemSelect",tr=n.forwardRef((t,e)=>{let{disabled:i=!1,onSelect:o,...a}=t,u=n.useRef(null),h=U(ti,t.__scopeMenu),d=G(ti,t.__scopeMenu),c=(0,s.s)(e,u),p=n.useRef(!1);return(0,P.jsx)(ts,{...a,ref:c,disabled:i,onClick:(0,r.m)(t.onClick,()=>{let t=u.current;if(!i&&t){let e=new CustomEvent(tn,{bubbles:!0,cancelable:!0});t.addEventListener(tn,t=>null==o?void 0:o(t),{once:!0}),(0,l.hO)(t,e),e.defaultPrevented?p.current=!1:h.onClose()}}),onPointerDown:e=>{var i;null===(i=t.onPointerDown)||void 0===i||i.call(t,e),p.current=!0},onPointerUp:(0,r.m)(t.onPointerUp,t=>{var e;p.current||null===(e=t.currentTarget)||void 0===e||e.click()}),onKeyDown:(0,r.m)(t.onKeyDown,t=>{let e=""!==d.searchRef.current;!i&&(!e||" "!==t.key)&&S.includes(t.key)&&(t.currentTarget.click(),t.preventDefault())})})});tr.displayName=ti;var ts=n.forwardRef((t,e)=>{let{__scopeMenu:i,disabled:o=!1,textValue:a,...u}=t,h=G(ti,i),d=F(i),c=n.useRef(null),p=(0,s.s)(e,c),[m,f]=n.useState(!1),[v,g]=n.useState("");return n.useEffect(()=>{let t=c.current;if(t){var e;g((null!==(e=t.textContent)&&void 0!==e?e:"").trim())}},[u.children]),(0,P.jsx)(D.ItemSlot,{scope:i,disabled:o,textValue:null!=a?a:v,children:(0,P.jsx)(y.q7,{asChild:!0,...d,focusable:!o,children:(0,P.jsx)(l.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...u,ref:p,onPointerMove:(0,r.m)(t.onPointerMove,tD(t=>{o?h.onItemLeave(t):(h.onItemEnter(t),t.defaultPrevented||t.currentTarget.focu
1s({preventScroll:!0}))})),onPointerLeave:(0,r.m)(t.onPointerLeave,tD(t=>h.onItemLeave(t))),onFocus:(0,r.m)(t.onFocus,()=>f(!0)),onBlur:(0,r.m)(t.onBlur,()=>f(!1))})})})}),to=n.forwardRef((t,e)=>{let{checked:i=!1,onCheckedChange:n,...s}=t;return(0,P.jsx)(tm,{scope:t.__scopeMenu,checked:i,children:(0,P.jsx)(tr,{role:"menuitemcheckbox","aria-checked":tC(i)?"mixed":i,...s,ref:e,"data-state":tk(i),onSelect:(0,r.m)(s.onSelect,()=>null==n?void 0:n(!!tC(i)||!i),{checkForDefaultPrevented:!1})})})});to.displayName="MenuCheckboxItem";var ta="MenuRadioGroup",[tl,tu]=j(ta,{value:void 0,onValueChange:()=>{}}),th=n.forwardRef((t,e)=>{let{value:i,onValueChange:n,...r}=t,s=(0,w.c)(n);return(0,P.jsx)(tl,{scope:t.__scopeMenu,value:i,onValueChange:s,children:(0,P.jsx)(tt,{...r,ref:e})})});th.displayName=ta;var td="MenuRadioItem",tc=n.forwardRef((t,e)=>{let{value:i,...n}=t,s=tu(td,t.__scopeMenu),o=i===s.value;return(0,P.jsx)(tm,{scope:t.__scopeMenu,checked:o,children:(0,P.jsx)(tr,{role:"menuitemradio","aria-checked":o,...n,ref:e,"data-state":tk(o),onSelect:(0,r.m)(n.onSelect,()=>{var t;return null===(t=s.onValueChange)||void 0===t?void 0:t.call(s,i)},{checkForDefaultPrevented:!1})})})});tc.displayName=td;var tp="MenuItemIndicator",[tm,tf]=j(tp,{checked:!1}),tv=n.forwardRef((t,e)=>{let{__scopeMenu:i,forceMount:n,...r}=t,s=tf(tp,i);return(0,P.jsx)(g.C,{present:n||tC(s.checked)||!0===s.checked,children:(0,P.jsx)(l.sG.span,{...r,ref:e,"data-state":tk(s.checked)})})});tv.displayName=tp;var tg=n.forwardRef((t,e)=>{let{__scopeMenu:i,...n}=t;return(0,P.jsx)(l.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:e})});tg.displayName="MenuSeparator";var ty=n.forwardRef((t,e)=>{let{__scopeMenu:i,...n}=t,r=I(i);return(0,P.jsx)(f.i3,{...r,...n,ref:e})});ty.displayName="MenuArrow";var tx="MenuSub",[tw,tb]=j(tx),tT=t=>{let{__scopeMenu:e,children:i,open:r=!1,onOpenChange:s}=t,o=O(tx,e),a=I(e),[l,u]=n.useState(null),[h,d]=n.useState(null),c=(0,w.c)(s);return n.useEffect(()=>(!1===o.open&&c(!1),()=>c(!1)),[o.open,c]),(0,P.jsx)(f.bL,{...a,children:(0,P.jsx)(B,{scope:e,open:r,onOpenChange:c,content:h,onContentChange:d,children:(0,P.jsx)(tw,{scope:e,contentId:(0,m.B)(),triggerId:(0,m.B)(),trigger:l,onTriggerChange:u,children:i})})})};tT.displayName=tx;var tP="MenuSubTrigger",tS=n.forwardRef((t,e)=>{let i=O(tP,t.__scopeMenu),o=U(tP,t.__scopeMenu),a=tb(tP,t.__scopeMenu),l=G(tP,t.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:h,onPointerGraceIntentChange:d}=l,c={__scopeMenu:t.__scopeMenu},p=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let t=h.current;return()=>{window.clearTimeout(t),d(null)}},[h,d]),(0,P.jsx)(W,{asChild:!0,...c,children:(0,P.jsx)(ts,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":a.contentId,"data-state":tE(i.open),...t,ref:(0,s.t)(e,a.onTriggerChange),onClick:e=>{var n;null===(n=t.onClick)||void 0===n||n.call(t,e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),i.open||i.onOpenChange(!0))},onPointerMove:(0,r.m)(t.onPointerMove,tD(e=>{l.onItemEnter(e),e.defaultPrevented||t.disabled||i.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{i.onOpenChange(!0),p()},100))})),onPointerLeave:(0,r.m)(t.onPointerLeave,tD(t=>{var e,n;p();let r=null===(e=i.content)||void 0===e?void 0:e.getBoundingClientRect();if(r){let e=null===(n=i.content)||void 0===n?void 0:n.dataset.side,s="right"===e,o=r[s?"left":"right"],a=r[s?"right":"left"];l.onPointerGraceIntentChange({area:[{x:t.clientX+(s?-5:5),y:t.clientY},{x:o,y:r.top},{x:a,y:r.top},{x:a,y:r.bottom},{x:o,y:r.bottom}],side:e}),window.clearTimeout(h.current),h.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(t),t.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,r.m)(t.onKeyDown,e=>{let n=""!==l.searchRef.current;if(!t.disabled&&(!n||" "!==e.key)&&E[o.dir].includes(e.key)){var r;i.onOpenChange(!0),null===(r=i.content)||void 0===r||r.focus(),e.preventDefault()}})})})});tS.displayName=tP;var tM="MenuSubContent",tA=n.forwardRef((t,e)=>{let i=K(X,t.__scopeMenu),{forceMount:o=i.forceMount,...a}=t,l=O(X,t.__scopeMenu),u=U(X,t.__scopeMenu),h=tb(tM,t.__scopeMenu),d=n.useRef(null),c=(0,s.s)(e,d);return(0,P.jsx)(D.Provider,{scope:t.__scopeMenu,children:(0,P.jsx)(g.C,{present:o||l.open,children:(0,P.jsx)(D.Slot,{scope:t.__scopeMenu,children:(0,P.jsx)(Q,{id:h.contentId,"aria-labelledby":h.triggerId,...a,ref:c,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:t=>{var e;u.isUsingKeyboardRef.current&&(null===(e=d.current)||void 0===e||e.focus()),t.preventDefault()},onCloseAutoFocus:t=>
1t.preventDefault(),onFocusOutside:(0,r.m)(t.onFocusOutside,t=>{t.target!==h.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,r.m)(t.onEscapeKeyDown,t=>{u.onClose(),t.preventDefault()}),onKeyDown:(0,r.m)(t.onKeyDown,t=>{let e=t.currentTarget.contains(t.target),i=C[u.dir].includes(t.key);if(e&&i){var n;l.onOpenChange(!1),null===(n=h.trigger)||void 0===n||n.focus(),t.preventDefault()}})})})})})});function tE(t){return t?"open":"closed"}function tC(t){return"indeterminate"===t}function tk(t){return tC(t)?"indeterminate":t?"checked":"unchecked"}function tD(t){return e=>"mouse"===e.pointerType?t(e):void 0}tA.displayName=tM;var tV="DropdownMenu",[tR,tj]=(0,o.A)(tV,[L]),tL=L(),[tI,tF]=tR(tV),tB=t=>{let{__scopeDropdownMenu:e,children:i,dir:r,open:s,defaultOpen:o,onOpenChange:l,modal:u=!0}=t,h=tL(e),d=n.useRef(null),[c=!1,p]=(0,a.i)({prop:s,defaultProp:o,onChange:l});return(0,P.jsx)(tI,{scope:e,triggerId:(0,m.B)(),triggerRef:d,contentId:(0,m.B)(),open:c,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(t=>!t),[p]),modal:u,children:(0,P.jsx)(_,{...h,open:c,onOpenChange:p,dir:r,modal:u,children:i})})};tB.displayName=tV;var tO="DropdownMenuTrigger",tN=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,disabled:n=!1,...o}=t,a=tF(tO,i),u=tL(i);return(0,P.jsx)(W,{asChild:!0,...u,children:(0,P.jsx)(l.sG.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:(0,s.t)(e,a.triggerRef),onPointerDown:(0,r.m)(t.onPointerDown,t=>{n||0!==t.button||!1!==t.ctrlKey||(a.onOpenToggle(),a.open||t.preventDefault())}),onKeyDown:(0,r.m)(t.onKeyDown,t=>{!n&&(["Enter"," "].includes(t.key)&&a.onOpenToggle(),"ArrowDown"===t.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(t.key)&&t.preventDefault())})})})});tN.displayName=tO;var tU=t=>{let{__scopeDropdownMenu:e,...i}=t,n=tL(e);return(0,P.jsx)(H,{...n,...i})};tU.displayName="DropdownMenuPortal";var t_="DropdownMenuContent",tW=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...s}=t,o=tF(t_,i),a=tL(i),l=n.useRef(!1);return(0,P.jsx)(q,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...s,ref:e,onCloseAutoFocus:(0,r.m)(t.onCloseAutoFocus,t=>{var e;l.current||null===(e=o.triggerRef.current)||void 0===e||e.focus(),l.current=!1,t.preventDefault()}),onInteractOutside:(0,r.m)(t.onInteractOutside,t=>{let e=t.detail.originalEvent,i=0===e.button&&!0===e.ctrlKey,n=2===e.button||i;(!o.modal||n)&&(l.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tW.displayName=t_;var t$=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tL(i);return(0,P.jsx)(tt,{...r,...n,ref:e})});t$.displayName="DropdownMenuGroup";var tz=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tL(i);return(0,P.jsx)(te,{...r,...n,ref:e})});tz.displayName="DropdownMenuLabel";var tK=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tL(i);return(0,P.jsx)(tr,{...r,...n,ref:e})});tK.displayName="DropdownMenuItem";var tH=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tL(i);return(0,P.jsx)(to,{...r,...n,ref:e})});tH.displayName="DropdownMenuCheckboxItem";var tX=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tL(i);return(0,P.jsx)(th,{...r,...n,ref:e})});tX.displayName="DropdownMenuRadioGroup";var tY=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tL(i);return(0,P.jsx)(tc,{...r,...n,ref:e})});tY.displayName="DropdownMenuRadioItem";var tG=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tL(i);return(0,P.jsx)(tv,{...r,...n,ref:e})});tG.displayName="DropdownMenuItemIndicator";var tq=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tL(i);return(0,P.jsx)(tg,{...r,...n,ref:e})});tq.displayName="DropdownMenuSeparator",n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tL(i);return(0,P.jsx)(ty,{...r,...n,ref:e})}).displayName="DropdownMenuArrow";var tZ=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tL(i);return(0,P.jsx)(tS,{...r,...n,ref:e})});tZ.displayName="DropdownMenuSubTrigger";var tJ=n.forwardRef((t,e)=>{let{__scopeDropdownMenu:i,...n}=t,r=tL(i);return(0,P.jsx)(tA,{...r,...n,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tJ.displayName="DropdownMenuSubContent";var tQ=tB,t0=tN,t1=tU,t2=tW,t5=t$,t6=tz,t3=tK,t9=tH,t4=tX,t8=tY,t7=tG,et=tq,ee=t=>{let{__scopeDropdownMenu:e,children:i,open:n,onOpenChange:r,defaultOpen:s}=t,o=tL(e),[l=!1,u]=(0,a.i)({prop:n,defaultProp:s,onChange:r});return(0,P.jsx)(tT,{...o,open:l,onOpenChange:u,children:i})},ei=tZ,en=tJ}
1,42021:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(62569).A)("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},48665:(t,e,i)=>{i.d(e,{sc:()=>h});var n=i(39496),r=i(36090);class s extends r.Vw{constructor(t,e,i,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=e,this.padOffset=i,this.isLE=n,this.buffer=new Uint8Array(t),this.view=(0,r.O8)(this.buffer)}update(t){(0,n.CC)(this);let{view:e,buffer:i,blockLen:s}=this,o=(t=(0,r.ZJ)(t)).length;for(let n=0;n<o;){let a=Math.min(s-this.pos,o-n);if(a===s){let e=(0,r.O8)(t);for(;s<=o-n;n+=s)this.process(e,n);continue}i.set(t.subarray(n,n+a),this.pos),this.pos+=a,n+=a,this.pos===s&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,n.CC)(this),(0,n.Ht)(t,this),this.finished=!0;let{buffer:e,view:i,blockLen:s,isLE:o}=this,{pos:a}=this;e[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>s-a&&(this.process(i,0),a=0);for(let t=a;t<s;t++)e[t]=0;!function(t,e,i,n){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,i,n);let r=BigInt(32),s=BigInt(0xffffffff),o=Number(i>>r&s),a=Number(i&s),l=4*!!n,u=4*!n;t.setUint32(e+l,o,n),t.setUint32(e+u,a,n)}(i,s-8,BigInt(8*this.length),o),this.process(i,0);let l=(0,r.O8)(t),u=this.outputLen;if(u%4)throw Error("_sha2: outputLen should be aligned to 32bit");let h=u/4,d=this.get();if(h>d.length)throw Error("_sha2: outputLen bigger than state");for(let t=0;t<h;t++)l.setUint32(4*t,d[t],o)}digest(){let{buffer:t,outputLen:e}=this;this.digestInto(t);let i=t.slice(0,e);return this.destroy(),i}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:e,buffer:i,length:n,finished:r,destroyed:s,pos:o}=this;return t.length=n,t.pos=o,t.finished=r,t.destroyed=s,n%e&&t.buffer.set(i),t}}let o=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),a=new Uint32Array([0x6a09e66
17,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),l=new Uint32Array(64);class u extends s{constructor(t=32){super(64,t,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){let{A:t,B:e,C:i,D:n,E:r,F:s,G:o,H:a}=this;return[t,e,i,n,r,s,o,a]}set(t,e,i,n,r,s,o,a){this.A=0|t,this.B=0|e,this.C=0|i,this.D=0|n,this.E=0|r,this.F=0|s,this.G=0|o,this.H=0|a}process(t,e){for(let i=0;i<16;i++,e+=4)l[i]=t.getUint32(e,!1);for(let t=16;t<64;t++){let e=l[t-15],i=l[t-2],n=(0,r.Ow)(e,7)^(0,r.Ow)(e,18)^e>>>3,s=(0,r.Ow)(i,17)^(0,r.Ow)(i,19)^i>>>10;l[t]=s+l[t-7]+n+l[t-16]|0}let{A:i,B:n,C:s,D:a,E:u,F:h,G:d,H:c}=this;for(let t=0;t<64;t++){var p,m,f,v;let e=c+((0,r.Ow)(u,6)^(0,r.Ow)(u,11)^(0,r.Ow)(u,25))+((p=u)&h^~p&d)+o[t]+l[t]|0,g=((0,r.Ow)(i,2)^(0,r.Ow)(i,13)^(0,r.Ow)(i,22))+((m=i)&(f=n)^m&(v=s)^f&v)|0;c=d,d=h,h=u,u=a+e|0,a=s,s=n,n=i,i=e+g|0}i=i+this.A|0,n=n+this.B|0,s=s+this.C|0,a=a+this.D|0,u=u+this.E|0,h=h+this.F|0,d=d+this.G|0,c=c+this.H|0,this.set(i,n,s,a,u,h,d,c)}roundClean(){l.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let h=(0,r.ld)(()=>new u)},49197:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(62569).A)("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},50756:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(62569).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},52464:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(62569).A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},66196:(t,e,i)=>{let n,r,s;i.d(e,{P:()=>sY});let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set(o),l=(t,e,i)=>i>e?e:i<t?t:i,u={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},h={...u,transform:t=>l(0,1,t)},d={...u,default:1},c=t=>Math.round(1e5*t)/1e5,p=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,m=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,f=(t,e)=>i=>!!("string"==typeof i&&m.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),v=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(p);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},g=t=>l(0,255,t),y={...u,transform:t=>Math.round(g(t))},x={test:f("rgb","red"),parse:v("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+y.transform(t)+", "+y.transform(e)+", "+y.transform(i)+", "+c(h.transform(n))+")"},w={test:f("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:x.transform},b=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),T=b("deg"),P=b("%"),S=b("px"),M=b("vh"),A=b("vw"),E={...P,parse:t=>P.parse(t)/100,transform:t=>P.transform(100*t)},C={test:f("hsl","hue"),parse:v("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+P.transform(c(e))+", "+P.transform(c(i))+", "+c(h.transform(n))+")"},k={test:t=>x.test(t)||w.test(t)||C.test(t),parse:t=>x.test(t)?x.parse(t):C.test(t)?C.parse(t):w.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?x.transform(t):C.transform(t),getAnimatableNone:t=>{let e=k.parse(t);return e.alpha=0,k.transform(e)}},D=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,V="number",R="color",j=/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 L(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(j,t=>(k.test(t)?(n.color.push(s),r.push(R),i.push(k.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(V),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function I({split:t,types:e}){let i=t.length;return n=>{let r="";for(let s=0;s<i;s++)if(r+=t[s],void 0!==n[s]){let t=e[s];t===V?r+=c(n[s]):t===R?r+=k.transform(n[s]):r+=n[s]}return r}}let F=t=>"number"==typeof t?0:k.test(t)?k.getAnimatableNone(t):t,B=(t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:F(t),O={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(p)?.length||0)+(t.match(D)?.length||0)>0},parse:function(t){return L(t).values},createTransformer:function(t){return I(L(t))},getAnimatableNone:function(t){let e=L(t);return I(e)(e.values.map((t,i)=>B(t,e.split[i])))}},N=new Set(["brightness","contrast","saturate","opacity"]);function U(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(p)||[];if(!n)return t;let r=i.replace(n,""),s=+!!N.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}
1let _=/\b([a-z-]*)\(.*?\)/gu,W={...O,getAnimatableNone:t=>{let e=t.match(_);return e?e.map(U).join(" "):t}},$={...O,getAnimatableNone:t=>{let e=O.parse(t);return O.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},z={...u,transform:Math.round},K={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,rotate:T,rotateX:T,rotateY:T,rotateZ:T,scale:d,scaleX:d,scaleY:d,scaleZ:d,skew:T,skewX:T,skewY:T,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:h,originX:E,originY:E,originZ:S,zIndex:z,fillOpacity:h,strokeOpacity:h,numOctaves:z},H={...K,color:k,backgroundColor:k,outlineColor:k,fill:k,stroke:k,borderColor:k,borderTopColor:k,borderRightColor:k,borderBottomColor:k,borderLeftColor:k,filter:W,WebkitFilter:W,mask:$,WebkitMask:$},X=t=>H[t],Y=()=>({translate:0,scale:1,origin:0,originPoint:0}),G=()=>({x:Y(),y:Y()}),q=()=>({min:0,max:0}),Z=()=>({x:q(),y:q()}),J=t=>!!(t&&t.getVelocity),Q=new Set(["width","height","top","left","right","bottom",...o]),tt=t=>e=>e.test(t),te=[u,S,P,T,A,M,{test:t=>"auto"===t,parse:t=>t}],ti=t=>te.find(tt(t));i(37811);let tn=()=>{},tr=()=>{},ts=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),to=t=>e=>"string"==typeof e&&e.startsWith(t),ta=to("--"),tl=to("var(--"),tu=t=>!!tl(t)&&th.test(t.split("/*")[0].trim()),th=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function td(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tp=t=>180*t/Math.PI,tm=t=>tv(tp(Math.atan2(t[1],t[0]))),tf={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tm,rotateZ:tm,skewX:t=>tp(Math.atan(t[1])),skewY:t=>tp(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tv=t=>((t%=360)<0&&(t+=360),t),tg=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ty=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tx={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tg,scaleY:ty,scale:t=>(tg(t)+ty(t))/2,rotateX:t=>tv(tp(Math.atan2(t[6],t[5]))),rotateY:t=>tv(tp(Math.atan2(-t[2],t[0]))),rotateZ:tm,rotate:tm,skewX:t=>tp(Math.atan(t[4])),skewY:t=>tp(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tw(t){return+!!t.includes("scale")}function tb(t,e){let i,n;if(!t||"none"===t)return tw(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=tx,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tf,n=e}if(!n)return tw(e);let s=i[e],o=n[1].split(",").map(tP);return"function"==typeof s?s(o):o[s]}let tT=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tb(i,e)};function tP(t){return parseFloat(t.trim())}let tS=t=>t===u||t===S,tM=new Set(["x","y","z"]),tA=o.filter(t=>!tM.has(t)),tE={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:(t,{transform:e})=>tb(e,"x"),y:(t,{transform:e})=>tb(e,"y")};tE.translateX=tE.x,tE.translateY=tE.y;let tC=t=>t,tk={},tD=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tV={value:null,addProjectionMetrics:null};function tR(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=tD.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}
1r=!0,[i,n]=[n,i],i.forEach(u),e&&tV.value&&tV.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let s=tk.useManualTiming?r.timestamp:performance.now();i=!1,tk.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),d.process(r),c.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(f))},v=()=>{i=!0,n=!0,r.isProcessing||t(f)};return{schedule:tD.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||v(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<tD.length;e++)o[tD[e]].cancel(t)},state:r,steps:o}}let{schedule:tj,cancel:tL,state:tI,steps:tF}=tR("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tC,!0),tB=new Set,tO=!1,tN=!1,tU=!1;function t_(){if(tN){let t=Array.from(tB).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return tA.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(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])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tN=!1,tO=!1,tB.forEach(t=>t.complete(tU)),tB.clear()}function tW(){tB.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tN=!0)})}class t${constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tB.add(this),tO||(tO=!0,tj.read(tW),tj.resolveKeyframes(t_))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tB.delete(this)}cancel(){"scheduled"===this.state&&(tB.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tz=t=>/^0[^.\s]+$/u.test(t),tK=new Set([W,$]);function tH(t,e){let i=X(t);return tK.has(i)||(i=O),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tX=new Set(["auto","none","0"]);class tY extends t${constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&tu(n=n.trim())){let r=function t(e,i,n=1){tr(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=tc.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return ts(t)?parseFloat(t):t}return tu(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Q.has(i)||2!==t.length)return;let[n,r]=t,s=ti(n),o=ti(r);if(td(n)!==td(r)&&tE[i]){this.needsMeasurement=!0;return}if(s!==o)if(tS(s)&&tS(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tE[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||tz(n)))&&i.push(e)}if(i.length){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tX.has(e)&&L(e).values.length&&(n=t[r]),r++}if(n&&e)for(let r of i)t[r]=tH(e,n)}}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tE[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=tE[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tG=t=>1e3*t,tq=t=>t/1e3;function tZ(t,e){-1===t.indexOf(e)&&t.push(e)}function tJ(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tQ{constructor(){this.subscriptions=[]}add(t){return tZ(this.subscriptions,t),()=>tJ(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let t0=t=>t.startsWith("--");function t1(t,e,i){t0(e)?t.style.setProperty(e,i):t.style[e]=i}function t2(t){let e;return()=>(void 0===e&&(e=t()),e)}let t5={};function t6(t,e){let i=t2(t);return()=>t5[e]??i()}let t3=t6(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),t9=t=>null!==t;function t4(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(t9),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}class t8{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t7={layout:0,mainThread:0,waapi:0},et=t=>Array.isArray(t)&&"number"==typeof t[0],ee=t6(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ei=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},en=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,er={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:en([0,.65,.55,1]),circOut:en([.55,0,1,.45]),backIn:en([.31,.01,.66,-.59]),backOut:en([.33,1.53,.69,.99])};function es(t){return"function"==typeof t&&"applyToOptions"in t}class eo extends t8{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,tr("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return es(t)&&ee()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?ee()?ei(e,i):"ease-out":et(e)?en(e):Array.isArray(e)?e.map(e=>t(e,i)||er.easeOut):er[e]}(a,r);Array.isArray(d)&&(h.easing=d),tV.value&&t7.waapi++;let c={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(c.pseudoElement=u);let p=t.animate(h,c);return tV.value&&p.finished.finally(()=>{t7.waapi--}),p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=t4(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),t1(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"===t||"finished"===t||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return tq(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+tq(t)}get time(){return tq(Number(this.animation.currentTime)||0)}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tG(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t3())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tC):n(this)}}let ea=new Set(["opacity","clipPath","filter","transform"]),{schedule:el}=tR(queueMicrotask,!1);function eu(){n=void 0}let eh={now:()=>(void 0===n&&eh.set(tI.isProcessing||tk.useManualTiming?tI.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(eu)}},ed=t=>!isNaN(parseFloat(t)),ec={current:void 0};class ep{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=eh.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=eh.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=ed(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 tQ);let i=this.events[t].add(e);return"change"===t?()=>{i(),tj.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return ec.current&&ec.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=eh.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function em(t,e){return new ep(t,e)}let ef=[...te,k,O],ev=t=>ef.find(tt(t)),eg=new WeakMap;function ey(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ex(t){return"string"==typeof t||Array.isArray(t)}let ew=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eb=["initial",...ew];function eT(t){return ey(t.animate)||eb.some(e=>ex(t[e]))}function eP(t){return!!(eT(t)||t.variants)}let eS={current:null},eM={current:!1},eA="undefined"!=typeof window;function eE(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eC(t,e,i,n){if("function"==typeof e){let[r,s]=eE(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=eE(n);e=e(void 0!==i?i:t.custom,r,s)}return e}let ek=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eD={};class eV{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=t$,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=eh.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tj.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=eT(e),this.isVariantNode=eP(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==l[t]&&J(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];if(this.current=t,eg.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig)this.shouldReduceMotion=!1;else if("always"===this.reducedMotionConfig)this.shouldReduceMotion=!0;else{if(!eM.current&&(eM.current=!0,eA))if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eS.current=t.matches;t.addEventListener("change",e),e()}else eS.current=!1;this.shouldReduceMotion=eS.current}this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tL(this.notifyUpdate),tL(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ea.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=e.accelerate,a=new eo({element:this.current,name:t,keyframes:n,times:r,ease:s,duration:tG(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=a.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tj.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{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 eD){let e=eD[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];
1e.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):Z()}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;e<ek.length;e++){let i=ek[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(J(r))t.addValue(n,r);else if(J(s))t.addValue(n,em(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,em(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.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=em(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(ts(i)||tz(i))?i=parseFloat(i):!ev(i)&&O.test(e)&&(i=tH(t,e)),this.setBaseTarget(t,J(i)?i.get():i)),J(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=eC(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||J(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tQ),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){el.render(this.render)}}class eR extends eV{constructor(){super(...arguments),this.KeyframeResolver=tY}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[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;J(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function ej(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eL=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eF=o.length;function eB(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(a.has(t)){l=!0;continue}if(ta(t)){r[t]=i;continue}{let e=eL(i,K[t]);t.startsWith("origin")?(u=!0,s[t]=e):n[t]=e}}
1if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<eF;s++){let a=o[s],l=t[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let t=parseFloat(l);u=a.startsWith("scale")?1===t:0===t}if(!u||i){let t=eL(l,K[a]);if(!u){r=!1;let e=eI[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}let eO={offset:"stroke-dashoffset",array:"stroke-dasharray"},eN={offset:"strokeDashoffset",array:"strokeDasharray"},eU=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function e_(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(eB(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),eU))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?eO:eN;t[s.offset]=`${-n}`,t[s.array]=`${e} ${i}`}(d,r,s,o,!1)}let eW=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"]),e$=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ez(t,{style:e,vars:i},n,r){let s,o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}function eK(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eH={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!S.test(t))return t;else t=parseFloat(t);let i=eK(t,e.target.x),n=eK(t,e.target.y);return`${i}% ${n}%`}},eX=(t,e,i)=>t+(e-t)*i,eY={borderRadius:{...eH,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eH,borderTopRightRadius:eH,borderBottomLeftRadius:eH,borderBottomRightRadius:eH,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=O.parse(t);if(n.length>5)return t;let r=O.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=eX(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function eG(t,{layout:e,layoutId:i}){return a.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eY[t]||"opacity"===t)}function eq(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)(J(n[e])||r&&J(r[e])||eG(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}function eZ(t,e,i){let n=eq(t,e,i);for(let i in t)(J(t[i])||J(e[i]))&&(n[-1!==o.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eJ extends eR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Z}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.has(e)){let t=X(e);return t&&t.default||0}return e=eW.has(e)?e:ej(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eZ(t,e,i)}build(t,e,i){e_(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in ez(t,e,void 0,n),e.attrs)t.setAttribute(eW.has(i)?i:ej(i),e.attrs[i])}mount(t){this.isSVGTag=e$(t.tagName),super.mount(t)}}function eQ({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function e0(t){return void 0===t||1===t}function e1({scale:t,scaleX:e,scaleY:i}){return!e0(t)||!e0(e)||!e0(i)}function e2(t){return e1(t)||e5(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function e5(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function e6(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function e3(t,e=0,i=1,n,r){t.min=e6(t.min,e,i,n,r),t.max=e6(t.max,e,i,n,r)}function e9(t,{x:e,y:i}){e3(t.x,e.translate,e.scale,e.originPoint),e3(t.y,i.translate,i.scale,i.originPoint)}function e4(t,e){t.min=t.min+e,t.max=t.max+e}function e8(t,e,i,n,r=.5){let s=eX(t.min,t.max,r);e3(t,e,i,s,n)}function e7(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function it(t,e,i){let n=i??t;e8(t.x,e7(e.x,n.x),e.scaleX,e.scale,e.originX),e8(t.y,e7(e.y,n.y),e.scaleY,e.scale,e.originY)}function ie(t,e){return eQ(function(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}}(t.getBoundingClientRect(),e))}class ii extends eR{constructor(){super(...arguments),this.type="html",this.renderInstance=ez}readValueFromInstance(t,e){if(a.has(e))return this.projection?.isProjecting?tw(e):tT(t,e);{let i=window.getComputedStyle(t),n=(ta(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return ie(t,e)}build(t,e,i){eB(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return eq(t,e,i)}}var ir=i(32209);let is=["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 io(t){if("string"!=typeof t||t.includes("-"));else if(is.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var ia=i(77301);let il=(0,ir.createContext)({}),iu=(0,ir.createContext)({strict:!1}),ih=(0,ir.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),id=(0,ir.createContext)({});function ic(t){return Array.isArray(t)?t.join(" "):t}let ip=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function im(t,e,i){for(let n in e)J(e[n])||eG(n,i)||(t[n]=e[n])}let iv=()=>({...ip(),attrs:{}}),ig=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","propagate","ignoreStrict","viewport"]);function iy(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ig.has(t)}let ix=t=>!iy(t);try{!function(t){"function"==typeof t&&(ix=e=>e.startsWith("on")?!iy(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}function iw(t){return J(t)?t.get():t}let ib=(0,ir.createContext)(null),iT=t=>(e,i)=>{let n=(0,ir.useContext)(id),r=(0,ir.useContext)(ib),s=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:r,createRenderState:s}=t;return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=iw(s[t]);let{initial:o,animate:a}=t,l=eT(t),u=eP(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!ey(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=eC(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(e,i,n,r),renderState:s()}})(t,e,n,r);return i?s():function(t){let e=(0,ir.useRef)(null);return null===e.current&&(e.current=t()),e.current}(s)},iP=iT({scrapeMotionValuesFromProps:eq,createRenderState:ip}),iS=iT({scrapeMotionValuesFromProps:eZ,createRenderState:iv}),iM={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"]},iA=!1;function iE(){return!function(){if(iA)return;let t={};for(let e in iM)t[e]={isEnabled:t=>iM[e].some(e=>!!t[e])};eD=t,iA=!0}(),eD}let iC=Symbol.for("motionComponentSymbol"),ik="data-"+ej("framerAppearId"),iD=(0,ir.createContext)({});function iV(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iR="undefined"!=typeof window?ir.useLayoutEffect:ir.useEffect;function ij(t){var e,i;let{forwardMotionProps:n=!1,type:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;s&&function(t){let e=iE();for(let i in t)e[i]={...e[i],...t[i]};eD=e}(s);let a=r?"svg"===r:io(t),l=a?iS:iP;function u(e,i){let r,s={...(0,ir.useContext)(ih),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,ir.useContext)(il).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:u}=s,h=function(t){let{initial:e,animate:i}=function(t,e){if(eT(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ex(e)?e:void 0,animate:ex(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,ir.useContext)(id));return(0,ir.useMemo)(()=>({initial:e,animate:i}),[ic(e),ic(i)])}(e),d=l(e,u);if(!u&&"undefined"!=typeof window){var c,p;c=0,p=0,(0,ir.useContext)(iu).strict;let e=function(t){let{drag:e,layout:i}=iE();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}}
1(s);r=e.MeasureLayout,h.visualElement=function(t,e,i,n,r,s){var o,a,l,u;let{visualElement:h}=(0,ir.useContext)(id),d=(0,ir.useContext)(iu),c=(0,ir.useContext)(ib),p=(0,ir.useContext)(ih),m=p.reducedMotion,f=p.skipAnimations,v=(0,ir.useRef)(null),g=(0,ir.useRef)(!1);n=n||d.renderer,!v.current&&n&&(v.current=n(t,{visualState:e,parent:h,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:m,skipAnimations:f,isSVG:s}),g.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));let y=v.current,x=(0,ir.useContext)(iD);y&&!y.projection&&r&&("html"===y.type||"svg"===y.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&iV(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(v.current,i,r,x);let w=(0,ir.useRef)(!1);(0,ir.useInsertionEffect)(()=>{y&&w.current&&y.update(i,c)});let b=i[ik],T=(0,ir.useRef)(!!b&&"undefined"!=typeof window&&!(null===(o=(a=window).MotionHandoffIsComplete)||void 0===o?void 0:o.call(a,b))&&(null===(l=(u=window).MotionHasOptimisedAnimation)||void 0===l?void 0:l.call(u,b)));return iR(()=>{g.current=!0,y&&(w.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),T.current&&y.animationState&&y.animationState.animateChanges())}),(0,ir.useEffect)(()=>{y&&(!T.current&&y.animationState&&y.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var t,e;null===(t=(e=window).MotionHandoffMarkAsComplete)||void 0===t||t.call(e,b)}),T.current=!1),y.enteringChildren=void 0)}),y}(t,d,s,o,e.ProjectionNode,a)}return(0,ia.jsxs)(id.Provider,{value:h,children:[r&&h.visualElement?(0,ia.jsx)(r,{visualElement:h.visualElement,...s}):null,function(t,e,i,n,r){let{latestValues:s}=n,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=((null!=a?a:io(t))?function(t,e,i,n){let r=(0,ir.useMemo)(()=>{let i=iv();return e_(i,e,e$(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};im(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return im(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,ir.useMemo)(()=>{let t=ip();return eB(t,e,i),Object.assign({},t.vars,t.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-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,s,r,t),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(ix(r)||!0===i&&iy(r)||!e&&!iy(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,o),h=t!==ir.Fragment?{...u,...l,ref:i}:{},{children:d}=e,c=(0,ir.useMemo)(()=>J(d)?d.get():d,[d]);return(0,ir.createElement)(t,{...h,children:c})}(t,e,function(t,e,i){let n=(0,ir.useRef)(i);(0,ir.useInsertionEffect)(()=>{n.current=i});let r=(0,ir.useRef)(null);return(0,ir.useCallback)(i=>{if(i){var s;null===(s=t.onMount)||void 0===s||s.call(t,i)}let o=n.current;if("function"==typeof o)if(i){let t=o(i);"function"==typeof t&&(r.current=t)}else r.current?(r.current(),r.current=null):o(i);else o&&(o.current=i);e&&(i?e.mount(i):e.unmount())},[e])}(d,h.visualElement,i),d,u,n,a)]})}u.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!==(i=null!==(e=t.displayName)&&void 0!==e?e:t.name)&&void 0!==i?i:"",")"));let h=(0,ir.forwardRef)(u);return h[iC]=t,h}class iL{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iI(t,e,i){let n=t.getProps();return eC(n,e,void 0!==i?i:n.custom,t)}function iF(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function iB(t,e){let i=t?.[e]??t?.default??t;return i!==t?iF(i,t):i}let iO=t=>Array.isArray(t);function iN(t,e){let i=t.getValue("willChange");if(J(i)&&i.add)return i.add(e);if(!i&&tk.WillChange){let i=new tk.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}let iU=(t,e)=>i=>e(t(i)),i_=(...t)=>t.reduce(iU);function iW(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}function i$(t,e){return i=>i>0?e:t}let iz=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},iK=[w,x,C],iH=t=>iK.find(e=>e.test(t));function iX(t){let e=iH(t);if(tn(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===C&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=iW(a,n,t+1/3),s=iW(a,n,t),o=iW(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let iY=(t,e)=>{let i=iX(t),n=iX(e);if(!i||!n)return i$(t,e);let r={...i};return t=>(r.red=iz(i.red,n.red,t),r.green=iz(i.green,n.green,t),r.blue=iz(i.blue,n.blue,t),r.alpha=eX(i.alpha,n.alpha,t),x.transform(r))},iG=new Set(["none","hidden"]);function iq(t,e){return i=>eX(t,e,i)}function iZ(t){return"number"==typeof t?iq:"string"==typeof t?tu(t)?i$:k.test(t)?iY:i0:Array.isArray(t)?iJ:"object"==typeof t?k.test(t)?iY:iQ:i$}function iJ(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>iZ(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function iQ(t,e){let i={...t,...e},n={};
1for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=iZ(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let i0=(t,e)=>{let i=O.createTransformer(e),n=L(t),r=L(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?iG.has(t)&&!r.values.length||iG.has(e)&&!n.values.length?function(t,e){return iG.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):i_(iJ(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i):(tn(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),i$(t,e))};function i1(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eX(t,e,i):iZ(t)(t,e)}let i2=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tj.update(e,t),stop:()=>tL(e),now:()=>tI.isProcessing?tI.timestamp:eh.now()}};function i5(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let i6={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 i3(t,e){return t*Math.sqrt(1-e*e)}let i9=["duration","bounce"],i4=["stiffness","damping","mass"];function i8(t,e){return e.some(e=>void 0!==t[e])}function i7(t=i6.visualDuration,e=i6.bounce){let i,n,r,s,o,a,u="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:d}=u,c=u.keyframes[0],p=u.keyframes[u.keyframes.length-1],m={done:!1,value:c},{stiffness:f,damping:v,mass:g,duration:y,velocity:x,isResolvedFromDuration:w}=function(t){let e={velocity:i6.velocity,stiffness:i6.stiffness,damping:i6.damping,mass:i6.mass,isResolvedFromDuration:!1,...t};if(!i8(t,i4)&&i8(t,i9))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*l(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:i6.mass,stiffness:n,damping:r}}else{let i=function({duration:t=i6.duration,bounce:e=i6.bounce,velocity:i=i6.velocity,mass:n=i6.mass}){let r,s;tn(t<=tG(i6.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=l(i6.minDamping,i6.maxDamping,o),t=l(i6.minDuration,i6.maxDuration,tq(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/i3(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=i3(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=tG(t),isNaN(a))return{stiffness:i6.stiffness,damping:i6.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:i6.mass}).isResolvedFromDuration=!0}return e}({...u,velocity:-tq(u.velocity||0)}),b=x||0,T=v/(2*Math.sqrt(f*g)),P=p-c,S=tq(Math.sqrt(f/g)),M=5>Math.abs(P);if(h||(h=M?i6.restSpeed.granular:i6.restSpeed.default),d||(d=M?i6.restDelta.granular:i6.restDelta.default),T<1)r=i3(S,T),s=(b+T*S*P)/r,i=t=>p-Math.exp(-T*S*t)*(s*Math.sin(r*t)+P*Math.cos(r*t)),o=T*S*s+P*r,a=T*S*P-s*r,n=t=>Math.exp(-T*S*t)*(o*Math.sin(r*t)+a*Math.cos(r*t));else if(1===T){i=t=>p-Math.exp(-S*t)*(P+(b+S*P)*t);let t=b+S*P;n=e=>Math.exp(-S*e)*(S*t*e-b)}else{let t=S*Math.sqrt(T*T-1);i=e=>{let i=Math.exp(-T*S*e),n=Math.min(t*e,300);return p-i*((b+T*S*P)*Math.sinh(n)+t*P*Math.cosh(n))/t};let e=(b+T*S*P)/t,r=T*S*e-P*t,s=T*S*P-e*t;n=e=>{let i=Math.exp(-T*S*e),n=Math.min(t*e,300);return i*(r*Math.sinh(n)+s*Math.cosh(n))}}let A={calculatedDuration:w&&y||null,velocity:t=>tG(n(t)),next:t=>{if(!w&&T<1){let e=Math.exp(-T*S*t),i=Math.sin(r*t),n=Math.cos(r*t),l=p-e*(s*i+P*n);return m.done=Math.abs(tG(e*(o*i+a*n)))<=h&&Math.abs(p-l)<=d,m.value=m.done?p:l,m}let e=i(t);return w?m.done=t>=y:m.done=Math.abs(tG(n(t)))<=h&&Math.abs(p-e)<=d,m.value=m.done?p:e,m},toString:()=>{let t=Math.min(i5(A),2e4),e=ei(e=>A.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return A}function nt(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}function ne({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&&(g=x-p);let w=t=>-g*Math.exp(-t/n),b=t=>x+w(t),T=t=>{let e=w(t),i=b(t);m.done=Math.abs(e)<=u,m.value=m.done?x:i},P=t=>
1{f(m.value)&&(d=t,c=i7({keyframes:[m.value,v(m.value)],velocity:nt(b,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,T(t),P(t)),void 0!==d&&t>=d)?c.next(t-d):(e||T(t),m)}}}i7.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(i5(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:tq(r)}}(t,100,i7);return t.ease=e.ease,t.duration=tG(e.duration),t.type="keyframes",t};let ni=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function nn(t,e,i,n){if(t===e&&i===n)return tC;let r=e=>(function(t,e,i,n,r){let s,o,a=0;do(s=ni(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:ni(r(t),e,n)}let nr=nn(.42,0,1,1),ns=nn(0,0,.58,1),no=nn(.42,0,.58,1),na=t=>Array.isArray(t)&&"number"!=typeof t[0],nl=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,nu=t=>e=>1-t(1-e),nh=nn(.33,1.53,.69,.99),nd=nu(nh),nc=nl(nd),np=t=>(t*=2)<1?.5*nd(t):.5*(2-Math.pow(2,-10*(t-1))),nm=t=>1-Math.sin(Math.acos(t)),nf=nu(nm),nv=nl(nm),ng={linear:tC,easeIn:nr,easeInOut:no,easeOut:ns,circIn:nm,circInOut:nv,circOut:nf,backIn:nd,backInOut:nc,backOut:nh,anticipate:np},ny=t=>"string"==typeof t,nx=t=>{if(et(t)){tr(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return nn(e,i,n,r)}return ny(t)?(tr(void 0!==ng[t],`Invalid easing type '${t}'`,"invalid-easing-type"),ng[t]):t},nw=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function nb({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=na(n)?n.map(nx):nx(n),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(tr(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],r=i||tk.mix||i1,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=i_(Array.isArray(e)?e[i]||tC:e,s)),n.push(s)}return n}(e,n,r),u=a.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=nw(t[n],t[n+1],i);return a[n](r)};return i?e=>h(l(t[0],t[s-1],e)):h}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=nw(0,e,n);t.push(eX(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||no).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let nT={decay:ne,inertia:ne,tween:nb,keyframes:nb,spring:i7};function nP(t){"string"==typeof t.type&&(t.type=nT[t.type])}let nS=t=>t/100;class nM extends t8{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==eh.now()&&this.tick(eh.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},t7.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nP(t);let{type:e=nb,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||nb;a!==nb&&"number"!=typeof o[0]&&(this.mixKeyframes=i_(nS,i1(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=i5(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:c,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let x=this.currentTime,w=i;if(d){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===c?(i=1-i,p&&(i-=p/o)):"mirror"===c&&(w=s)),x=l(0,1,i)*o}let b=y?{done:!1,value:h[0]}:w.next(x);r&&!y&&(b.value=r(b.value));let{done:T}=b;y||null===a||(T=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return P&&m!==ne&&(b.value=t4(h,this.options,v,this.speed)),f&&f(b.value),P&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return tq(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+tq(t)}get time(){return tq(this.currentTime)}set time(t){t=tG(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
1if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return nt(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(eh.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=tq(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=i2,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(eh.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,t7.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nA={anticipate:np,backInOut:nc,circInOut:nv};class nE extends eo{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nA&&(t.ease=nA[t.ease])}
1(t),nP(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let o=new nM({...s,autoplay:!1}),a=Math.max(10,eh.now()-this.startTime),u=l(0,10,a-10),h=o.sample(a).value,{name:d}=this.options;r&&d&&t1(r,d,h),e.setWithVelocity(o.sample(Math.max(0,a-u)).value,h,u),o.stop()}}let nC=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(O.test(t)||"0"===t)&&!t.startsWith("url("));function nk(t){t.duration=0,t.type="keyframes"}let nD=new Set(["opacity","clipPath","filter","transform"]),nV=t2(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nR extends t8{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=eh.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},c=u?.KeyframeResolver||t$;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:o,delay:a,isHandoff:l,onUpdate:u}=i;this.resolvedAt=eh.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=nC(r,e),a=nC(s,e);return tn(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||es(i))&&n)}(t,r,s,o)&&((tk.instantAnimations||!a)&&u?.(t4(t,i,e)),t[0]=t[t.length-1],nk(i),i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return nV()&&i&&nD.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(h),c=h.motionValue?.owner?.current,p=d?new nE({...h,element:c}):new nM(h);p.finished.then(()=>{this.notifyFinished()}).catch(tC),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tU=!0,tW(),t_(),tU=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nj={type:"spring",stiffness:500,damping:25,restSpeed:10},nL=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),nI={type:"keyframes",duration:.8},nF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nB=(t,{keyframes:e})=>e.length>2?nI:a.has(t)?t.startsWith("scale")?nL(e[1]):nj:nF,nO=t=>null!==t,nN=(t,e,i,n={},r,s)=>o=>{let a=iB(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=tG(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:
1o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&Object.assign(h,nB(t,h)),h.duration&&(h.duration=tG(h.duration)),h.repeatDelay&&(h.repeatDelay=tG(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(nk(h),0!==h.delay||(d=!0)),(tk.instantAnimations||tk.skipAnimations||r?.shouldSkipAnimations)&&(d=!0,nk(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,d&&!s&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(nO),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(h.keyframes,a);if(void 0!==t){tj.update(()=>{h.onUpdate(t),h.onComplete()});return}}return a.isSync?new nM(h):new nR(h)};function nU(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition();s=s?iF(s,l):l;let u=s?.reduceMotion;n&&(s=n);let h=[],d=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let o={delay:i,...iB(s||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating&&!Array.isArray(r)&&r===l&&!o.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=t.props[ik];if(i){let t=window.MotionHandoffAnimation(i,e,tj);null!==t&&(o.startTime=t,c=!0)}}iN(t,e);let p=u??t.shouldReduceMotion;n.start(nN(e,n,r,p&&Q.has(e)?{type:!1}:o,t,c));let m=n.animation;m&&h.push(m)}if(o){let e=()=>tj.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=iI(t,e)||{};for(let e in r={...r,...i}){var s;let i=iO(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,em(i))}}(t,o)});h.length?Promise.all(h).then(e):e()}return h}function n_(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function nW(t,e,i={}){let n=iI(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nU(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,r=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nW(l,e,{...o,delay:i+("function"==typeof n?0:n)+n_(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}let n$=eb.length;function nz(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nK=[...ew].reverse(),nH=ew.length;function nX(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nY(){return{animate:nX(!0),whileInView:nX(),whileHover:nX(),whileTap:nX(),whileDrag:nX(),whileFocus:nX(),exit:nX()}}class nG extends iL{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nW(t,e,i)));else if("string"==typeof e)n=nW(t,e,i);else{let r="function"==typeof e?iI(t,e,i.custom):e;n=Promise.all(nU(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nY(),n=!0,r=!1,s=e=>(i,n)=>{let r=iI(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<n$;t++){let n=eb[t],r=e.props[n];(ex(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},u=[],h=new Set,d={},c=1/0;for(let e=0;e<nH;e++){var p,m;let f=nK[e],v=i[f],g=void 0!==a[f]?a[f]:l[f],y=ex(g),x=f===o?v.isActive:null;!1===x&&(c=e);let w=g===l[f]&&g!==a[f]&&y;if(w&&(n||r)&&t.manuallyAnimateOnMount&&(w=!1),v.protectedKeys={...d},!v.isActive&&null===x||!g&&!v.prevProp||ey(g)||"boolean"==typeof g)continue;if("exit"===f&&v.isActive&&!0!==x){v.prevResolvedValues&&(d={...d,...v.prevResolvedValues});continue}let b=(p=v.prevProp,"string"==typeof(m=g)?m!==p:!!Array.isArray(m)&&!nz(m,p)),T=b||f===o&&v.isActive&&!w&&y||e>c&&y,P=!1,S=Array.isArray(g)?g:[g],M=S.reduce(s(f),{});!1===x&&(M={});let{prevResolvedValues:A={}}=v,E={...A,...M},C=e=>{T=!0,h.has(e)&&(P=!0,h.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in E){let e=M[t],i=A[t];if(d.hasOwnProperty(t))continue;let n=!1;(iO(e)&&iO(i)?nz(e,i):e===i)?void 0!==e&&h.has(t)?C(t):v.protectedKeys[t]=!0:null!=e?C(t):h.add(t)}v.prevProp=g,v.prevResolvedValues=M,v.isActive&&(d={...d,...M}),(n||r)&&t.blockInitialAnimation&&(T=!1);let k=w&&b,D=!k||P;T&&D&&u.push(...S.map(e=>{let i={type:f};if("string"==typeof e&&(n||r)&&!k&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=iI(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=n_(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=iI(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),u.push({animation:e})}let f=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,r=!1,f?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=o(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nY(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ey(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nq=0;class nZ extends iL{constructor(){super(...arguments),this.id=nq++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let nJ={x:!1,y:!1};function nQ(t){return[t("x"),t("y")]}function n0(t){return t.max-t.min}function n1(t,e,i,n=.5){t.origin=n,t.originPoint=eX(e.min,e.max,t.origin),t.scale=n0(i)/n0(e),t.translate=eX(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 n2(t,e,i,n){n1(t.x,e.x,i.x,n?n.originX:void 0),n1(t.y,e.y,i.y,n?n.originY:void 0)}function n5(t,e,i){t.min=i.min+e.min,t.max=t.min+n0(e)}function n6(t,e,i){t.min=e.min-i.min,t.max=t.min+n0(e)}function n3(t,e,i){n6(t.x,e.x,i.x),n6(t.y,e.y,i.y)}let n9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),n4=new Set(["INPUT","SELECT","TEXTAREA"]);function n8(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function n7(t){return"object"==typeof t&&null!==t}function rt(t){return n7(t)&&"ownerSVGElement"in t}function re(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}let ri=new WeakMap,rn=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:rt(n)&&"getBBox"in n?n.getBBox()[e]:n[i],rr=rn("inline","width","offsetWidth"),rs=rn("block","height","offsetHeight");function ro({target:t,borderBoxSize:e}){ri.get(t)?.forEach(i=>{i(t,{get width(){return rr(t,e)},get height(){return rs(t,e)}})})}function ra(t){t.forEach(ro)}let rl=new Set;function ru(t,e){return"function"==typeof t?(rl.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};rl.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{rl.delete(t),rl.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):function(t,e){r||"undefined"==typeof ResizeObserver||(r=new ResizeObserver(ra));let i=re(t);return i.forEach(t=>{let i=ri.get(t);i||(i=new Set,ri.set(t,i)),i.add(e),r?.observe(t)}),()=>{i.forEach(t=>{let i=ri.get(t);i?.delete(e),i?.size||r?.unobserve(t)})}}(t,e)}let rh=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function rd(t){return{point:{x:t.pageX,y:t.pageY}}}let rc=t=>e=>rh(e)&&t(e,rd(e));function rp(t,e,i,n){return n8(t,e,rc(i),n)}let rm=({current:t})=>t?t.ownerDocument.defaultView:null,rf=(t,e)=>Math.abs(t-e),rv=new Set(["auto","scroll"]);class rg{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ry(this.lastRawMoveEventInfo,this.transformPagePoint));let t=rw(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(rf(t.x,e.x)**2+rf(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=tI;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=ry(e,this.transformPagePoint),tj.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rw("pointercancel"===t.type?this.lastMoveEventInfo:ry(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!rh(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let a=ry(rd(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tI;this.history=[{...l,timestamp:u}];let{onSessionStart:h}=e;h&&h(t,rw(a,this.history)),this.removeListeners=i_(rp(this.contextWindow,"pointermove",this.handlePointerMove),rp(this.contextWindow,"pointerup",this.handlePointerUp),rp(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(rv.has(t.overflowX)||rv.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),tj.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tL(this.updatePoint)}}function ry(t,e){return e?{point:e(t.point)}:t}function rx(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rw({point:t},e){return{point:t,delta:rx(t,rb(e)),offset:rx(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=rb(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>tG(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&r.timestamp-n.timestamp>2*tG(e)&&(n=t[1]);let s=tq(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function rb(t){return t[t.length-1]}function rT(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 rP(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function rS(t,e,i){return{min:rM(t,e),max:rM(t,i)}}function rM(t,e){return"number"==typeof t?t:t[e]||0}let rA=new WeakMap;class rE{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=Z(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new rg(t,{onSessionStart:t=>{e&&this.snapToCursor(rd(t).point),this.stopAnimation()},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nJ[t])return null;else return nJ[t]=!0,()=>{nJ[t]=!1};return nJ.x||nJ.y?null:(nJ.x=nJ.y=!0,()=>{nJ.x=nJ.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nQ(t=>{let e=this.getAxisMotionValue(t).get()||0;if(P.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=n0(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&tj.update(()=>r(t,e),!1,!0),iN(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&tj.update(()=>s(t,e),!1,!0)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:i,contextWindow:rm(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tj.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!rk(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eX(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eX(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iV(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:rT(t.x,i,r),y:rT(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:rS(t,"left","right"),y:rS(t,"top","bottom")}}(e),n!==this.constraints&&!iV(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&nQ(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}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iV(e))return!1;let n=e.current;tr(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
1let s=function(t,e,i){let n=ie(t,i),{scroll:r}=e;return r&&(e4(n.x,r.offset.x),e4(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:rP((t=r.layout.layoutBox).x,s.x),y:rP(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eQ(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nQ(o=>{if(!rk(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iN(this.visualElement,t),i.start(nN(t,i,0,e,this.visualElement,!1))}stopAnimation(){nQ(t=>this.getAxisMotionValue(t).stop())}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){nQ(e=>{let{drag:i}=this.getProps();if(!rk(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],o=r.get()||0;r.set(t[e]-eX(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iV(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nQ(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=n0(t),r=n0(e);return r>n?i=nw(e.min,e.max-n,t.min):n>r&&(i=nw(t.min,t.max-r,e.min)),l(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),nQ(e=>{if(!rk(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(eX(r,s,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;rA.set(this.visualElement,this);let e=this.visualElement.current,i=rp(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=t.target,s=r!==e&&(n4.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(t)}),n=()=>{let{dragConstraints:i}=this.getProps();iV(i)&&i.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,i){let n=ru(t,rC(i)),r=ru(e,rC(i));return()=>{n(),r()}}(e,i.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),tj.read(n);let o=n8(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>
1{this.isDragging&&e&&(nQ(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function rC(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function rk(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class rD extends iL{constructor(t){super(t),this.removeGroupControls=tC,this.removeListeners=tC,this.controls=new rE(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tC}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let rV=t=>(e,i)=>{t&&tj.update(()=>t(e,i),!1,!0)};class rR extends iL{constructor(){super(...arguments),this.removePointerDownListener=tC}onPointerDown(t){this.session=new rg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rm(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rV(t),onStart:rV(e),onMove:rV(i),onEnd:(t,e)=>{delete this.session,n&&tj.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=rp(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rj={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rL=!1;class rI extends ir.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),rL&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rj.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),rL=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||tj.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),el.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;rL=!0,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 rF(t){let[e,i]=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,ir.useContext)(ib);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=(0,ir.useId)();(0,ir.useEffect)(()=>{if(t)return r(s)},[t]);let o=(0,ir.useCallback)(()=>t&&n&&n(s),[s,n,t]);return!i&&n?[!1,o]:[!0]}(),n=(0,ir.useContext)(il);return(0,ia.jsx)(rI,{...t,layoutGroup:n,switchLayoutGroup:(0,ir.useContext)(iD),isPresent:e,safeToRemove:i})}let rB=["TopLeft","TopRight","BottomLeft","BottomRight"],rO=rB.length,rN=t=>"string"==typeof t?parseFloat(t):t,rU=t=>"number"==typeof t||S.test(t);function r_(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rW=rz(0,.5,nf),r$=rz(.5,.95,tC);function rz(t,e,i){return n=>n<t?0:n>e?1:i(nw(t,e,n))}function rK(t,e){t.min=e.min,t.max=e.max}function rH(t,e){rK(t.x,e.x),rK(t.y,e.y)}function rX(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rY(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function rG(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(P.test(e)&&(e=parseFloat(e),e=eX(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eX(s.min,s.max,n);t===s&&(a-=e),t.min=rY(t.min,e,i,a,r),t.max=rY(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let rq=["x","scaleX","originX"],rZ=["y","scaleY","originY"];function rJ(t,e,i,n){rG(t.x,e,rq,i?i.x:void 0,n?n.x:void 0),rG(t.y,e,rZ,i?i.y:void 0,n?n.y:void 0)}function rQ(t){return 0===t.translate&&1===t.scale}function r0(t){return rQ(t.x)&&rQ(t.y)}function r1(t,e){return t.min===e.min&&t.max===e.max}function r2(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function r5(t,e){return r2(t.x,e.x)&&r2(t.y,e.y)}function r6(t){return n0(t.x)/n0(t.y)}function r3(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class r9{constructor(){this.members=[]}add(t){tZ(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(tJ(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tJ(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)}
1}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:r}=t.options;(void 0===n||n!==r)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let r4=(t,e)=>t.depth-e.depth;class r8{constructor(){this.children=[],this.isDirty=!1}add(t){tZ(this.children,t),this.isDirty=!0}remove(t){tJ(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(r4),this.isDirty=!1,this.children.forEach(t)}}let r7={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},st=["","X","Y","Z"],se=0;function si(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function sn({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=se++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tV.value&&(r7.nodes=r7.calculatedTargetDeltas=r7.calculatedProjections=0),this.nodes.forEach(so),this.nodes.forEach(sp),this.nodes.forEach(sm),this.nodes.forEach(sa),tV.addProjectionMetrics&&tV.addProjectionMetrics(r7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new r8)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tQ),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=rt(e)&&!(rt(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;tj.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=eh.now(),n=({timestamp:r})=>{let s=r-i;s>=250&&(tL(n),t(s-e))};return tj.setup(n,!0),()=>tL(n)}(r,250),rj.hasAnimatedSinceResize&&(rj.hasAnimatedSinceResize=!1,this.nodes.forEach(sc)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||sw,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!r5(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iB(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||sc(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,this.eventHandlers.clear(),tL(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.forEac
1h(sf),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=i.props[ik];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tj,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(su);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(sh);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sd),this.nodes.forEach(sr),this.nodes.forEach(ss)):this.nodes.forEach(sh),this.clearAllSnapshots();let t=eh.now();tI.delta=l(0,1e3/60,t-tI.timestamp),tI.timestamp=t,tI.isProcessing=!0,tF.update.process(tI),tF.preRender.process(tI),tF.render.process(tI),tI.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,el.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sl),this.sharedNodes.forEach(sv)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tj.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tj.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||n0(this.snapshot.measuredBox.x)||n0(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!r0(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||e2(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),sP((e=n).x),sP(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return Z();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sM))){let{scroll:t}=this.root;t&&(e4(e.x,t.offset.x),e4(e.y,t.offset.y))}return e}removeElementScroll(t){let e=Z();if(rH(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rH(e,t),e4(e.x,r.offset.x),e4(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=Z();rH(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];
1!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&it(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),e2(n.latestValues)&&it(i,n.latestValues,n.layout?.layoutBox)}return e2(this.latestValues)&&it(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(t){let e=Z();rH(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];e2(n.latestValues)&&(n.instance&&(e1(n.latestValues)&&n.updateSnapshot(),rH(i=Z(),n.measurePageBox())),rJ(e,n.latestValues,n.snapshot?.layoutBox,i))}return e2(this.latestValues)&&rJ(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tI.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=tI.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=Z(),this.targetWithTransforms=Z()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,n5(o.x,a.x,l.x),n5(o.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rH(this.target,this.layout.layoutBox),e9(this.target,this.targetDelta)):rH(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0),tV.value&&r7.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||e1(this.parent.latestValues)||e5(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)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Z(),this.relativeTargetOrigin=Z(),n3(this.relativeTargetOrigin,e,i),rH(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tI.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;rH(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;
1!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&it(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,e9(t,s)),n&&e2(r.latestValues)&&it(t,r.latestValues,r.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=Z());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rX(this.prevProjectionDelta.x,this.projectionDelta.x),rX(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),n2(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&r3(this.projectionDelta.x,this.prevProjectionDelta.x)&&r3(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),tV.value&&r7.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=G(),this.projectionDelta=G(),this.projectionDeltaWithTransform=G()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=G();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=Z(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(sx));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(sg(o.x,t.x,n),sg(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,v;if(n3(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=n,sy(p.x,m.x,f.x,v),sy(p.y,m.y,f.y,v),i&&(u=this.relativeTarget,c=i,r1(u.x,c.x)&&r1(u.y,c.y)))this.isProjectionDirty=!1;i||(i=Z()),rH(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=eX(0,i.opacity??1,rW(n)),t.opacityExit=eX(e.opacity??1,0,r$(n))):s&&(t.opacity=eX(e.opacity??1,i.opacity??1,n));for(let r=0;r<rO;r++){let s=`border${rB[r]}Radius`,o=r_(e,s),a=r_(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rU(o)===rU(a)?(t[s]=Math.max(eX(rN(o),rN(a),n),0),(P.test(a)||P.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eX(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tL(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tj.update(()=>{rj.hasAnimatedSinceResize=!0,t7.layout++,this.motionValue||(this.motionValue=em(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(t,e,i){let n=J(t)?t:em(t);return n.start(nN("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{t7.layout--},onComplete:()=>{t7.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sS(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Z();let e=n0(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=n0(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rH(e,i),it(e,r),n2(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new r9),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(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.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&&si("z",t,n,this.animationValues);for(let e=0;e<st.length;e++)si(`rotate${st[e]}`,t,n,this.animationValues),si(`skew${st[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=iw(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=iw(e?.pointerEvents)||""),this.hasProjected&&!e2(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eY){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eY[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?iw(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(su),this.root.sharedNodes.clear()}}}function sr(t){t.updateLayout()}function ss(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?nQ(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=n0(n);n.min=i[t].min,n.max=n.min+r}):sS(r,e.layoutBox,i)&&nQ(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=n0(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=G();n2(o,i,e.layoutBox);let a=G();s?n2(a,t.applyTransform(n,!0),e.measuredBox):n2(a,i,e.layoutBox);let l=!r0(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=Z();n3(o,e.layoutBox,r.layoutBox);let a=Z();n3(a,i,s.layoutBox),r5(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function so(t){tV.value&&r7.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function sa(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sl(t){t.clearSnapshot()}function su(t){t.clearMeasurements()}function sh(t){t.isLayoutDirty=!1}function sd(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function sc(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sp(t){t.resolveTargetDelta()}function sm(t){t.calcProjection()}function sf(t){t.resetSkewAndRotation()}function sv(t){t.removeLeadSnapshot()}function sg(t,e,i){t.translate=eX(e.translate,0,i),t.scale=eX(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sy(t,e,i,n){t.min=eX(e.min,i.min,n),t.max=eX(e.max,i.max,n)}function sx(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sw={duration:.45,ease:[.4,0,.1,1]},sb=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sT=sb("applewebkit/")&&!sb("chrome/")?Math.round:tC;function sP(t){t.min=sT(t.min),t.max=sT(t.max)}function sS(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(r6(e)-r6(i)))}function sM(t){return t!==t.root&&t.scroll?.wasRoot}let sA=sn({attachResizeListener:(t,e)=>n8(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sE={current:void 0},sC=sn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sE.current){let t=new sA({});t.mount(window),t.setOptions({layoutScroll:!0}),sE.current=t}return sE.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sk(t,e){let i=re(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sD(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tj.postRender(()=>r(e,rd(e)))}class sV extends iL{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=sk(t,i);return n.forEach(t=>{let i,n=!1,s=!1,o=()=>{t.removeEventListener("pointerleave",u)},a=t=>{i&&(i(t),i=void 0),o()},l=t=>{n=!1,window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",l),s&&(s=!1,a(t))},u=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nJ.x||nJ.y)return;s=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",u,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",l,r)},r)}),s}(t,(t,e)=>(sD(this.node,e,"Start"),t=>sD(this.node,t,"End"))))}unmount(){}}class sR extends iL{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=i_(n8(this.node.current,"focus",()=>this.onFocus()),n8(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let sj=(t,e)=>!!e&&(t===e||sj(t,e.parentElement)),sL=new WeakSet;function sI(t){return e=>{"Enter"===e.key&&t(e)}}function sF(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let sB=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=sI(()=>{if(sL.has(i))return;sF(i,"down");let t=sI(()=>{sF(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sF(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function sO(t){return rh(t)&&!(nJ.x||nJ.y)}let sN=new WeakSet;function sU(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&tj.postRender(()=>r(e,rd(e)))}class s_ extends iL{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;
1this.unmount=function(t,e,i={}){let[n,r,s]=sk(t,i),o=t=>{let n=t.currentTarget;if(!sO(t)||sN.has(t))return;sL.add(n),i.stopPropagation&&sN.add(t);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sL.has(n)&&sL.delete(n),sO(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||sj(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),n7(t)&&"offsetHeight"in t&&(t.addEventListener("focus",t=>sB(t,r)),!n9.has(t.tagName)&&!0!==t.isContentEditable&&!t.hasAttribute("tabindex")&&(t.tabIndex=0))}),s}(t,(t,e)=>(sU(this.node,e,"Start"),(t,{success:e})=>sU(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}let sW=new WeakMap,s$=new WeakMap,sz=t=>{let e=sW.get(t.target);e&&e(t)},sK=t=>{t.forEach(sz)},sH={some:0,all:1};class sX extends iL{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:sH[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;s$.has(i)||s$.set(i,{});let n=s$.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(sK,{root:t,...e})),n[r]}(e);return sW.set(t,i),n.observe(t),()=>{sW.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let sY=function(t,e){if("undefined"==typeof Proxy)return ij;let i=new Map,n=(i,n)=>ij(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,ij(s,void 0,t,e)),i.get(s))})}({animation:{Feature:nG},exit:{Feature:nZ},inView:{Feature:sX},tap:{Feature:s_},focus:{Feature:sR},hover:{Feature:sV},pan:{Feature:rR},drag:{Feature:rD,ProjectionNode:sC,MeasureLayout:rF},layout:{ProjectionNode:sC,MeasureLayout:rF}},(t,e)=>e.isSVG??io(t)?new eJ(e):new ii(e,{allowProjection:t!==ir.Fragment}))},72832:(t,e,i)=>{i.d(e,{N:()=>h});var n=i(39949),r=i(26727),s=i(48665),o=i(29830),a=i(73505);let l=new n.A(4096);var u=i(29180);function h(t){let{clientId:e,secretKey:i,...n}=t,h=e;if(i)if((0,u.s)(i)){if(!e)throw Error("clientId must be provided when using a JWT secretKey")}else h=e??function(t){if(l.has(t))return l.get(t);let e=(function(t,e){let i=(0,s.sc)((0,o.q)(t,{strict:!1})?(0,a.AS)(t):t);return(0,a.EY)(i)})((0,r.Af)(t)).slice(2,34);return l.set(t,e),e}(i);if(!h)throw Error("clientId or secretKey must be provided");return{...n,clientId:h,secretKey:i}}},97065:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(62569).A)("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.