diff --git "a/_next/static/chunks/813-2d6d2c33c642dc38.js" "b/_next/static/chunks/813-2d6d2c33c642dc38.js" new file mode 100644--- /dev/null +++ "b/_next/static/chunks/813-2d6d2c33c642dc38.js" @@ -0,0 +1,5 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[813],{56800:function(e,t){var r;/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e="",t=0;t{let{__scopeAvatar:r,...o}=e,[l,i]=(0,a.useState)("idle");return(0,a.createElement)(m,{scope:r,imageLoadingStatus:l,onImageLoadingStatusChange:i},(0,a.createElement)(s.WV.span,(0,n.Z)({},o,{ref:t})))}),v=(0,a.forwardRef)((e,t)=>{let{__scopeAvatar:r,src:o,onLoadingStatusChange:c=()=>{},...u}=e,d=f("AvatarImage",r),m=function(e){let[t,r]=(0,a.useState)("idle");return(0,i.b)(()=>{if(!e){r("error");return}let t=!0,n=new window.Image,a=e=>()=>{t&&r(e)};return r("loading"),n.onload=a("loaded"),n.onerror=a("error"),n.src=e,()=>{t=!1}},[e]),t}(o),p=(0,l.W)(e=>{c(e),d.onImageLoadingStatusChange(e)});return(0,i.b)(()=>{"idle"!==m&&p(m)},[m,p]),"loaded"===m?(0,a.createElement)(s.WV.img,(0,n.Z)({},u,{ref:t,src:o})):null}),h=(0,a.forwardRef)((e,t)=>{let{__scopeAvatar:r,delayMs:o,...l}=e,i=f("AvatarFallback",r),[c,u]=(0,a.useState)(void 0===o);return(0,a.useEffect)(()=>{if(void 0!==o){let e=window.setTimeout(()=>u(!0),o);return()=>window.clearTimeout(e)}},[o]),c&&"loaded"!==i.imageLoadingStatus?(0,a.createElement)(s.WV.span,(0,n.Z)({},l,{ref:t})):null}),g=p,C=v,E=h},69324:function(e,t,r){"use strict";r.d(t,{Ed:function(){return v},fC:function(){return N},z$:function(){return R}});var n=r(22988),a=r(2265),o=r(1584),l=r(98324),i=r(78149),s=r(91715),c=r(47250),u=r(75238),d=r(31383),m=r(25171);let f="Checkbox",[p,v]=(0,l.b)(f),[h,g]=p(f),C=(0,a.forwardRef)((e,t)=>{let{__scopeCheckbox:r,name:l,checked:c,defaultChecked:u,required:d,disabled:f,value:p="on",onCheckedChange:v,...g}=e,[C,E]=(0,a.useState)(null),N=(0,o.e)(t,e=>E(e)),R=(0,a.useRef)(!1),x=!C||!!C.closest("form"),[M=!1,T]=(0,s.T)({prop:c,defaultProp:u,onChange:v}),_=(0,a.useRef)(M);return(0,a.useEffect)(()=>{let e=null==C?void 0:C.form;if(e){let t=()=>T(_.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[C,T]),(0,a.createElement)(h,{scope:r,state:M,disabled:f},(0,a.createElement)(m.WV.button,(0,n.Z)({type:"button",role:"checkbox","aria-checked":w(M)?"mixed":M,"aria-required":d,"data-state":b(M),"data-disabled":f?"":void 0,disabled:f,value:p},g,{ref:N,onKeyDown:(0,i.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.M)(e.onClick,e=>{T(e=>!!w(e)||!e),x&&(R.current=e.isPropagationStopped(),R.current||e.stopPropagation())})})),x&&(0,a.createElement)(y,{control:C,bubbles:!R.current,name:l,value:p,checked:M,required:d,disabled:f,style:{transform:"translateX(-100%)"}}))}),E=(0,a.forwardRef)((e,t)=>{let{__scopeCheckbox:r,forceMount:o,...l}=e,i=g("CheckboxIndicator",r);return(0,a.createElement)(d.z,{present:o||w(i.state)||!0===i.state},(0,a.createElement)(m.WV.span,(0,n.Z)({"data-state":b(i.state),"data-disabled":i.disabled?"":void 0},l,{ref:t,style:{pointerEvents:"none",...e.style}})))}),y=e=>{let{control:t,checked:r,bubbles:o=!0,...l}=e,i=(0,a.useRef)(null),s=(0,c.D)(r),d=(0,u.t)(t);return(0,a.useEffect)(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(s!==r&&t){let n=new Event("click",{bubbles:o});e.indeterminate=w(r),t.call(e,!w(r)&&r),e.dispatchEvent(n)}},[s,r,o]),(0,a.createElement)("input",(0,n.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:!w(r)&&r},l,{tabIndex:-1,ref:i,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function w(e){return"indeterminate"===e}function b(e){return w(e)?"indeterminate":e?"checked":"unchecked"}let N=C,R=E},13304:function(e,t,r){"use strict";r.d(t,{Dx:function(){return X},VY:function(){return j},aV:function(){return U},dk:function(){return Y},fC:function(){return G},h_:function(){return K},jm:function(){return B},p8:function(){return w},x8:function(){return q},xz:function(){return H}});var n=r(22988),a=r(2265),o=r(78149),l=r(1584),i=r(98324),s=r(53201),c=r(91715),u=r(53938),d=r(80467),m=r(56935),f=r(31383),p=r(25171),v=r(20589),h=r(6088),g=r(78369),C=r(71538);let E="Dialog",[y,w]=(0,i.b)(E),[b,N]=y(E),R=(0,a.forwardRef)((e,t)=>{let{__scopeDialog:r,...i}=e,s=N("DialogTrigger",r),c=(0,l.e)(t,s.triggerRef);return(0,a.createElement)(p.WV.button,(0,n.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":F(s.open)},i,{ref:c,onClick:(0,o.M)(e.onClick,s.onOpenToggle)}))}),x="DialogPortal",[M,T]=y(x,{forceMount:void 0}),_="DialogOverlay",S=(0,a.forwardRef)((e,t)=>{let r=T(_,e.__scopeDialog),{forceMount:o=r.forceMount,...l}=e,i=N(_,e.__scopeDialog);return i.modal?(0,a.createElement)(f.z,{present:o||i.open},(0,a.createElement)(k,(0,n.Z)({},l,{ref:t}))):null}),k=(0,a.forwardRef)((e,t)=>{let{__scopeDialog:r,...o}=e,l=N(_,r);return(0,a.createElement)(h.Z,{as:C.g7,allowPinchZoom:!0,shards:[l.contentRef]},(0,a.createElement)(p.WV.div,(0,n.Z)({"data-state":F(l.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),D="DialogContent",P=(0,a.forwardRef)((e,t)=>{let r=T(D,e.__scopeDialog),{forceMount:o=r.forceMount,...l}=e,i=N(D,e.__scopeDialog);return(0,a.createElement)(f.z,{present:o||i.open},i.modal?(0,a.createElement)(I,(0,n.Z)({},l,{ref:t})):(0,a.createElement)(L,(0,n.Z)({},l,{ref:t})))}),I=(0,a.forwardRef)((e,t)=>{let r=N(D,e.__scopeDialog),i=(0,a.useRef)(null),s=(0,l.e)(t,r.contentRef,i);return(0,a.useEffect)(()=>{let e=i.current;if(e)return(0,g.Ry)(e)},[]),(0,a.createElement)(A,(0,n.Z)({},e,{ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())}))}),L=(0,a.forwardRef)((e,t)=>{let r=N(D,e.__scopeDialog),o=(0,a.useRef)(!1),l=(0,a.useRef)(!1);return(0,a.createElement)(A,(0,n.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(l.current=!0));let i=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}}))}),A=(0,a.forwardRef)((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,...c}=e,m=N(D,r),f=(0,a.useRef)(null),p=(0,l.e)(t,f);return(0,v.EW)(),(0,a.createElement)(a.Fragment,null,(0,a.createElement)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s},(0,a.createElement)(u.XB,(0,n.Z)({role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":F(m.open)},c,{ref:p,onDismiss:()=>m.onOpenChange(!1)}))),!1)}),z="DialogTitle",O=(0,a.forwardRef)((e,t)=>{let{__scopeDialog:r,...o}=e,l=N(z,r);return(0,a.createElement)(p.WV.h2,(0,n.Z)({id:l.titleId},o,{ref:t}))}),Z=(0,a.forwardRef)((e,t)=>{let{__scopeDialog:r,...o}=e,l=N("DialogDescription",r);return(0,a.createElement)(p.WV.p,(0,n.Z)({id:l.descriptionId},o,{ref:t}))}),V=(0,a.forwardRef)((e,t)=>{let{__scopeDialog:r,...l}=e,i=N("DialogClose",r);return(0,a.createElement)(p.WV.button,(0,n.Z)({type:"button"},l,{ref:t,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))}))});function F(e){return e?"open":"closed"}let[B,W]=(0,i.k)("DialogTitleWarning",{contentName:D,titleName:z,docsSlug:"dialog"}),G=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:l,modal:i=!0}=e,u=(0,a.useRef)(null),d=(0,a.useRef)(null),[m=!1,f]=(0,c.T)({prop:n,defaultProp:o,onChange:l});return(0,a.createElement)(b,{scope:t,triggerRef:u,contentRef:d,contentId:(0,s.M)(),titleId:(0,s.M)(),descriptionId:(0,s.M)(),open:m,onOpenChange:f,onOpenToggle:(0,a.useCallback)(()=>f(e=>!e),[f]),modal:i},r)},H=R,K=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,l=N(x,t);return(0,a.createElement)(M,{scope:t,forceMount:r},a.Children.map(n,e=>(0,a.createElement)(f.z,{present:r||l.open},(0,a.createElement)(m.h,{asChild:!0,container:o},e))))},U=S,j=P,X=O,Y=Z,q=V},6461:function(e,t,r){"use strict";r.d(t,{Ee:function(){return eP},Eh:function(){return ez},Rk:function(){return eI},Tr:function(){return eO},VY:function(){return eT},Wf:function(){return I},Z0:function(){return eA},ZA:function(){return e_},__:function(){return eS},ck:function(){return ek},ee:function(){return ex},fC:function(){return eR},fF:function(){return eZ},h_:function(){return eM},oC:function(){return eD},tu:function(){return eV},wU:function(){return eL}});var n=r(22988),a=r(2265),o=r(78149),l=r(90976),i=r(1584),s=r(98324),c=r(87513),u=r(53938),d=r(20589),m=r(80467),f=r(53201),p=r(25510),v=r(56935),h=r(31383),g=r(25171),C=r(53398),E=r(71538),y=r(75137),w=r(78369),b=r(6088);let N=["Enter"," "],R=["ArrowUp","PageDown","End"],x=["ArrowDown","PageUp","Home",...R],M={ltr:[...N,"ArrowRight"],rtl:[...N,"ArrowLeft"]},T={ltr:["ArrowLeft"],rtl:["ArrowRight"]},_="Menu",[S,k,D]=(0,l.B)(_),[P,I]=(0,s.b)(_,[D,p.D7,C.Pc]),L=(0,p.D7)(),A=(0,C.Pc)(),[z,O]=P(_),[Z,V]=P(_),F=(0,a.forwardRef)((e,t)=>{let{__scopeMenu:r,...o}=e,l=L(r);return(0,a.createElement)(p.ee,(0,n.Z)({},l,o,{ref:t}))}),B="MenuPortal",[W,G]=P(B,{forceMount:void 0}),H="MenuContent",[K,U]=P(H),j=(0,a.forwardRef)((e,t)=>{let r=G(H,e.__scopeMenu),{forceMount:o=r.forceMount,...l}=e,i=O(H,e.__scopeMenu),s=V(H,e.__scopeMenu);return(0,a.createElement)(S.Provider,{scope:e.__scopeMenu},(0,a.createElement)(h.z,{present:o||i.open},(0,a.createElement)(S.Slot,{scope:e.__scopeMenu},s.modal?(0,a.createElement)(X,(0,n.Z)({},l,{ref:t})):(0,a.createElement)(Y,(0,n.Z)({},l,{ref:t})))))}),X=(0,a.forwardRef)((e,t)=>{let r=O(H,e.__scopeMenu),l=(0,a.useRef)(null),s=(0,i.e)(t,l);return(0,a.useEffect)(()=>{let e=l.current;if(e)return(0,w.Ry)(e)},[]),(0,a.createElement)(q,(0,n.Z)({},e,{ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),Y=(0,a.forwardRef)((e,t)=>{let r=O(H,e.__scopeMenu);return(0,a.createElement)(q,(0,n.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),q=(0,a.forwardRef)((e,t)=>{let{__scopeMenu:r,loop:l=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:f,disableOutsidePointerEvents:v,onEntryFocus:h,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:N,onDismiss:M,disableOutsideScroll:T,..._}=e,S=O(H,r),D=V(H,r),P=L(r),I=A(r),z=k(r),[Z,F]=(0,a.useState)(null),B=(0,a.useRef)(null),W=(0,i.e)(t,B,S.onContentChange),G=(0,a.useRef)(0),U=(0,a.useRef)(""),j=(0,a.useRef)(0),X=(0,a.useRef)(null),Y=(0,a.useRef)("right"),q=(0,a.useRef)(0),$=T?b.Z:a.Fragment,J=T?{as:E.g7,allowPinchZoom:!0}:void 0,Q=e=>{var t,r;let n=U.current+e,a=z().filter(e=>!e.disabled),o=document.activeElement,l=null===(t=a.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,i=function(e,t,r){var n;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===a.length&&(o=o.filter(e=>e!==r));let l=o.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}(a.map(e=>e.textValue),n,l),s=null===(r=a.find(e=>e.textValue===i))||void 0===r?void 0:r.ref.current;!function e(t){U.current=t,window.clearTimeout(G.current),""!==t&&(G.current=window.setTimeout(()=>e(""),1e3))}(n),s&&setTimeout(()=>s.focus())};(0,a.useEffect)(()=>()=>window.clearTimeout(G.current),[]),(0,d.EW)();let ee=(0,a.useCallback)(e=>{var t,r,n;return Y.current===(null===(t=X.current)||void 0===t?void 0:t.side)&&!!(n=null===(r=X.current)||void 0===r?void 0:r.area)&&function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,o=t.length-1;en!=c>n&&r<(s-l)*(n-i)/(c-i)+l&&(a=!a)}return a}({x:e.clientX,y:e.clientY},n)},[]);return(0,a.createElement)(K,{scope:r,searchRef:U,onItemEnter:(0,a.useCallback)(e=>{ee(e)&&e.preventDefault()},[ee]),onItemLeave:(0,a.useCallback)(e=>{var t;ee(e)||(null===(t=B.current)||void 0===t||t.focus(),F(null))},[ee]),onTriggerLeave:(0,a.useCallback)(e=>{ee(e)&&e.preventDefault()},[ee]),pointerGraceTimerRef:j,onPointerGraceIntentChange:(0,a.useCallback)(e=>{X.current=e},[])},(0,a.createElement)($,J,(0,a.createElement)(m.M,{asChild:!0,trapped:s,onMountAutoFocus:(0,o.M)(c,e=>{var t;e.preventDefault(),null===(t=B.current)||void 0===t||t.focus()}),onUnmountAutoFocus:f},(0,a.createElement)(u.XB,{asChild:!0,disableOutsidePointerEvents:v,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:N,onDismiss:M},(0,a.createElement)(C.fC,(0,n.Z)({asChild:!0},I,{dir:D.dir,orientation:"vertical",loop:l,currentTabStopId:Z,onCurrentTabStopIdChange:F,onEntryFocus:(0,o.M)(h,e=>{D.isUsingKeyboardRef.current||e.preventDefault()})}),(0,a.createElement)(p.VY,(0,n.Z)({role:"menu","aria-orientation":"vertical","data-state":ey(S.open),"data-radix-menu-content":"",dir:D.dir},P,_,{ref:W,style:{outline:"none",..._.style},onKeyDown:(0,o.M)(_.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&Q(e.key));let a=B.current;if(e.target!==a||!x.includes(e.key))return;e.preventDefault();let o=z().filter(e=>!e.disabled).map(e=>e.ref.current);R.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(G.current),U.current="")}),onPointerMove:(0,o.M)(e.onPointerMove,eN(e=>{let t=e.target,r=q.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>q.current?"right":"left";Y.current=t,q.current=e.clientX}}))})))))))}),$=(0,a.forwardRef)((e,t)=>{let{__scopeMenu:r,...o}=e;return(0,a.createElement)(g.WV.div,(0,n.Z)({role:"group"},o,{ref:t}))}),J=(0,a.forwardRef)((e,t)=>{let{__scopeMenu:r,...o}=e;return(0,a.createElement)(g.WV.div,(0,n.Z)({},o,{ref:t}))}),Q="MenuItem",ee="menu.itemSelect",et=(0,a.forwardRef)((e,t)=>{let{disabled:r=!1,onSelect:l,...s}=e,c=(0,a.useRef)(null),u=V(Q,e.__scopeMenu),d=U(Q,e.__scopeMenu),m=(0,i.e)(t,c),f=(0,a.useRef)(!1);return(0,a.createElement)(er,(0,n.Z)({},s,{ref:m,disabled:r,onClick:(0,o.M)(e.onClick,()=>{let e=c.current;if(!r&&e){let t=new CustomEvent(ee,{bubbles:!0,cancelable:!0});e.addEventListener(ee,e=>null==l?void 0:l(e),{once:!0}),(0,g.jH)(e,t),t.defaultPrevented?f.current=!1:u.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),f.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{var t;f.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!r&&(!t||" "!==e.key)&&N.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),er=(0,a.forwardRef)((e,t)=>{let{__scopeMenu:r,disabled:l=!1,textValue:s,...c}=e,u=U(Q,r),d=A(r),m=(0,a.useRef)(null),f=(0,i.e)(t,m),[p,v]=(0,a.useState)(!1),[h,E]=(0,a.useState)("");return(0,a.useEffect)(()=>{let e=m.current;if(e){var t;E((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[c.children]),(0,a.createElement)(S.ItemSlot,{scope:r,disabled:l,textValue:null!=s?s:h},(0,a.createElement)(C.ck,(0,n.Z)({asChild:!0},d,{focusable:!l}),(0,a.createElement)(g.WV.div,(0,n.Z)({role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0},c,{ref:f,onPointerMove:(0,o.M)(e.onPointerMove,eN(e=>{l?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())})),onPointerLeave:(0,o.M)(e.onPointerLeave,eN(e=>u.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>v(!0)),onBlur:(0,o.M)(e.onBlur,()=>v(!1))}))))}),en=(0,a.forwardRef)((e,t)=>{let{checked:r=!1,onCheckedChange:l,...i}=e;return(0,a.createElement)(ec,{scope:e.__scopeMenu,checked:r},(0,a.createElement)(et,(0,n.Z)({role:"menuitemcheckbox","aria-checked":ew(r)?"mixed":r},i,{ref:t,"data-state":eb(r),onSelect:(0,o.M)(i.onSelect,()=>null==l?void 0:l(!!ew(r)||!r),{checkForDefaultPrevented:!1})})))}),[ea,eo]=P("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),el=(0,a.forwardRef)((e,t)=>{let{value:r,onValueChange:o,...l}=e,i=(0,y.W)(o);return(0,a.createElement)(ea,{scope:e.__scopeMenu,value:r,onValueChange:i},(0,a.createElement)($,(0,n.Z)({},l,{ref:t})))}),ei=(0,a.forwardRef)((e,t)=>{let{value:r,...l}=e,i=eo("MenuRadioItem",e.__scopeMenu),s=r===i.value;return(0,a.createElement)(ec,{scope:e.__scopeMenu,checked:s},(0,a.createElement)(et,(0,n.Z)({role:"menuitemradio","aria-checked":s},l,{ref:t,"data-state":eb(s),onSelect:(0,o.M)(l.onSelect,()=>{var e;return null===(e=i.onValueChange)||void 0===e?void 0:e.call(i,r)},{checkForDefaultPrevented:!1})})))}),es="MenuItemIndicator",[ec,eu]=P(es,{checked:!1}),ed=(0,a.forwardRef)((e,t)=>{let{__scopeMenu:r,forceMount:o,...l}=e,i=eu(es,r);return(0,a.createElement)(h.z,{present:o||ew(i.checked)||!0===i.checked},(0,a.createElement)(g.WV.span,(0,n.Z)({},l,{ref:t,"data-state":eb(i.checked)})))}),em=(0,a.forwardRef)((e,t)=>{let{__scopeMenu:r,...o}=e;return(0,a.createElement)(g.WV.div,(0,n.Z)({role:"separator","aria-orientation":"horizontal"},o,{ref:t}))}),ef=(0,a.forwardRef)((e,t)=>{let{__scopeMenu:r,...o}=e,l=L(r);return(0,a.createElement)(p.Eh,(0,n.Z)({},l,o,{ref:t}))}),ep="MenuSub",[ev,eh]=P(ep),eg="MenuSubTrigger",eC=(0,a.forwardRef)((e,t)=>{let r=O(eg,e.__scopeMenu),l=V(eg,e.__scopeMenu),s=eh(eg,e.__scopeMenu),c=U(eg,e.__scopeMenu),u=(0,a.useRef)(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:m}=c,f={__scopeMenu:e.__scopeMenu},p=(0,a.useCallback)(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return(0,a.useEffect)(()=>p,[p]),(0,a.useEffect)(()=>{let e=d.current;return()=>{window.clearTimeout(e),m(null)}},[d,m]),(0,a.createElement)(F,(0,n.Z)({asChild:!0},f),(0,a.createElement)(er,(0,n.Z)({id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":ey(r.open)},e,{ref:(0,i.F)(t,s.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,eN(t=>{c.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||u.current||(c.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,eN(e=>{var t,n;p();let a=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(a){let t=null===(n=r.content)||void 0===n?void 0:n.dataset.side,o="right"===t,l=a[o?"left":"right"],i=a[o?"right":"left"];c.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:l,y:a.top},{x:i,y:a.top},{x:i,y:a.bottom},{x:l,y:a.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(e),e.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,t=>{let n=""!==c.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&M[l.dir].includes(t.key)){var a;r.onOpenChange(!0),null===(a=r.content)||void 0===a||a.focus(),t.preventDefault()}})})))}),eE=(0,a.forwardRef)((e,t)=>{let r=G(H,e.__scopeMenu),{forceMount:l=r.forceMount,...s}=e,c=O(H,e.__scopeMenu),u=V(H,e.__scopeMenu),d=eh("MenuSubContent",e.__scopeMenu),m=(0,a.useRef)(null),f=(0,i.e)(t,m);return(0,a.createElement)(S.Provider,{scope:e.__scopeMenu},(0,a.createElement)(h.z,{present:l||c.open},(0,a.createElement)(S.Slot,{scope:e.__scopeMenu},(0,a.createElement)(q,(0,n.Z)({id:d.contentId,"aria-labelledby":d.triggerId},s,{ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null===(t=m.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==d.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=T[u.dir].includes(e.key);if(t&&r){var n;c.onOpenChange(!1),null===(n=d.trigger)||void 0===n||n.focus(),e.preventDefault()}})})))))});function ey(e){return e?"open":"closed"}function ew(e){return"indeterminate"===e}function eb(e){return ew(e)?"indeterminate":e?"checked":"unchecked"}function eN(e){return t=>"mouse"===t.pointerType?e(t):void 0}let eR=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:l,modal:i=!0}=e,s=L(t),[u,d]=(0,a.useState)(null),m=(0,a.useRef)(!1),f=(0,y.W)(l),v=(0,c.gm)(o);return(0,a.useEffect)(()=>{let e=()=>{m.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>m.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,a.createElement)(p.fC,s,(0,a.createElement)(z,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d},(0,a.createElement)(Z,{scope:t,onClose:(0,a.useCallback)(()=>f(!1),[f]),isUsingKeyboardRef:m,dir:v,modal:i},n)))},ex=F,eM=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,l=O(B,t);return(0,a.createElement)(W,{scope:t,forceMount:r},(0,a.createElement)(h.z,{present:r||l.open},(0,a.createElement)(v.h,{asChild:!0,container:o},n)))},eT=j,e_=$,eS=J,ek=et,eD=en,eP=el,eI=ei,eL=ed,eA=em,ez=ef,eO=e=>{let{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,l=O(ep,t),i=L(t),[s,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(null),m=(0,y.W)(o);return(0,a.useEffect)(()=>(!1===l.open&&m(!1),()=>m(!1)),[l.open,m]),(0,a.createElement)(p.fC,i,(0,a.createElement)(z,{scope:t,open:n,onOpenChange:m,content:u,onContentChange:d},(0,a.createElement)(ev,{scope:t,contentId:(0,f.M)(),triggerId:(0,f.M)(),trigger:s,onTriggerChange:c},r)))},eZ=eC,eV=eE},61485:function(e,t,r){"use strict";r.d(t,{VY:function(){return W},ee:function(){return V},fC:function(){return Z},h_:function(){return B},x8:function(){return G},xz:function(){return F}});var n=r(22988),a=r(2265),o=r(78149),l=r(1584),i=r(98324),s=r(53938),c=r(20589),u=r(80467),d=r(53201),m=r(25510),f=r(56935),p=r(31383),v=r(25171),h=r(71538),g=r(91715),C=r(78369),E=r(6088);let y="Popover",[w,b]=(0,i.b)(y,[m.D7]),N=(0,m.D7)(),[R,x]=w(y),M=(0,a.forwardRef)((e,t)=>{let{__scopePopover:r,...o}=e,l=x("PopoverAnchor",r),i=N(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=l;return(0,a.useEffect)(()=>(s(),()=>c()),[s,c]),(0,a.createElement)(m.ee,(0,n.Z)({},i,o,{ref:t}))}),T=(0,a.forwardRef)((e,t)=>{let{__scopePopover:r,...i}=e,s=x("PopoverTrigger",r),c=N(r),u=(0,l.e)(t,s.triggerRef),d=(0,a.createElement)(v.WV.button,(0,n.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":O(s.open)},i,{ref:u,onClick:(0,o.M)(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?d:(0,a.createElement)(m.ee,(0,n.Z)({asChild:!0},c),d)}),_="PopoverPortal",[S,k]=w(_,{forceMount:void 0}),D="PopoverContent",P=(0,a.forwardRef)((e,t)=>{let r=k(D,e.__scopePopover),{forceMount:o=r.forceMount,...l}=e,i=x(D,e.__scopePopover);return(0,a.createElement)(p.z,{present:o||i.open},i.modal?(0,a.createElement)(I,(0,n.Z)({},l,{ref:t})):(0,a.createElement)(L,(0,n.Z)({},l,{ref:t})))}),I=(0,a.forwardRef)((e,t)=>{let r=x(D,e.__scopePopover),i=(0,a.useRef)(null),s=(0,l.e)(t,i),c=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let e=i.current;if(e)return(0,C.Ry)(e)},[]),(0,a.createElement)(E.Z,{as:h.g7,allowPinchZoom:!0},(0,a.createElement)(A,(0,n.Z)({},e,{ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),c.current||null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;c.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),L=(0,a.forwardRef)((e,t)=>{let r=x(D,e.__scopePopover),o=(0,a.useRef)(!1),l=(0,a.useRef)(!1);return(0,a.createElement)(A,(0,n.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(l.current=!0));let i=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}}))}),A=(0,a.forwardRef)((e,t)=>{let{__scopePopover:r,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:i,disableOutsidePointerEvents:d,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:v,onInteractOutside:h,...g}=e,C=x(D,r),E=N(r);return(0,c.EW)(),(0,a.createElement)(u.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:i},(0,a.createElement)(s.XB,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:h,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:v,onDismiss:()=>C.onOpenChange(!1)},(0,a.createElement)(m.VY,(0,n.Z)({"data-state":O(C.open),role:"dialog",id:C.contentId},E,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}),z=(0,a.forwardRef)((e,t)=>{let{__scopePopover:r,...l}=e,i=x("PopoverClose",r);return(0,a.createElement)(v.WV.button,(0,n.Z)({type:"button"},l,{ref:t,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))}))});function O(e){return e?"open":"closed"}let Z=e=>{let{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:l,modal:i=!1}=e,s=N(t),c=(0,a.useRef)(null),[u,f]=(0,a.useState)(!1),[p=!1,v]=(0,g.T)({prop:n,defaultProp:o,onChange:l});return(0,a.createElement)(m.fC,s,(0,a.createElement)(R,{scope:t,contentId:(0,d.M)(),triggerRef:c,open:p,onOpenChange:v,onOpenToggle:(0,a.useCallback)(()=>v(e=>!e),[v]),hasCustomAnchor:u,onCustomAnchorAdd:(0,a.useCallback)(()=>f(!0),[]),onCustomAnchorRemove:(0,a.useCallback)(()=>f(!1),[]),modal:i},r))},V=M,F=T,B=e=>{let{__scopePopover:t,forceMount:r,children:n,container:o}=e,l=x(_,t);return(0,a.createElement)(S,{scope:t,forceMount:r},(0,a.createElement)(p.z,{present:r||l.open},(0,a.createElement)(f.h,{asChild:!0,container:o},n)))},W=P,G=z},99497:function(e,t,r){"use strict";r.d(t,{ck:function(){return L},fC:function(){return I},oo:function(){return M}});var n=r(22988),a=r(2265),o=r(78149),l=r(1584),i=r(98324),s=r(25171),c=r(53398),u=r(91715),d=r(87513),m=r(75238),f=r(47250),p=r(31383);let v="Radio",[h,g]=(0,i.b)(v),[C,E]=h(v),y=(0,a.forwardRef)((e,t)=>{let{__scopeRadio:r,name:i,checked:c=!1,required:u,disabled:d,value:m="on",onCheck:f,...p}=e,[v,h]=(0,a.useState)(null),g=(0,l.e)(t,e=>h(e)),E=(0,a.useRef)(!1),y=!v||!!v.closest("form");return(0,a.createElement)(C,{scope:r,checked:c,disabled:d},(0,a.createElement)(s.WV.button,(0,n.Z)({type:"button",role:"radio","aria-checked":c,"data-state":b(c),"data-disabled":d?"":void 0,disabled:d,value:m},p,{ref:g,onClick:(0,o.M)(e.onClick,e=>{c||null==f||f(),y&&(E.current=e.isPropagationStopped(),E.current||e.stopPropagation())})})),y&&(0,a.createElement)(w,{control:v,bubbles:!E.current,name:i,value:m,checked:c,required:u,disabled:d,style:{transform:"translateX(-100%)"}}))}),w=((e,t)=>{let{__scopeRadio:r,forceMount:o,...l}=e,i=E("RadioIndicator",r);return(0,a.createElement)(p.z,{present:o||i.checked},(0,a.createElement)(s.WV.span,(0,n.Z)({"data-state":b(i.checked),"data-disabled":i.disabled?"":void 0},l,{ref:t})))},e=>{let{control:t,checked:r,bubbles:o=!0,...l}=e,i=(0,a.useRef)(null),s=(0,f.D)(r),c=(0,m.t)(t);return(0,a.useEffect)(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(s!==r&&t){let n=new Event("click",{bubbles:o});t.call(e,r),e.dispatchEvent(n)}},[s,r,o]),(0,a.createElement)("input",(0,n.Z)({type:"radio","aria-hidden":!0,defaultChecked:r},l,{tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))});function b(e){return e?"checked":"unchecked"}let N=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],R="RadioGroup",[x,M]=(0,i.b)(R,[c.Pc,g]),T=(0,c.Pc)(),_=g(),[S,k]=x(R),D=(0,a.forwardRef)((e,t)=>{let{__scopeRadioGroup:r,name:o,defaultValue:l,value:i,required:m=!1,disabled:f=!1,orientation:p,dir:v,loop:h=!0,onValueChange:g,...C}=e,E=T(r),y=(0,d.gm)(v),[w,b]=(0,u.T)({prop:i,defaultProp:l,onChange:g});return(0,a.createElement)(S,{scope:r,name:o,required:m,disabled:f,value:w,onValueChange:b},(0,a.createElement)(c.fC,(0,n.Z)({asChild:!0},E,{orientation:p,dir:y,loop:h}),(0,a.createElement)(s.WV.div,(0,n.Z)({role:"radiogroup","aria-required":m,"aria-orientation":p,"data-disabled":f?"":void 0,dir:y},C,{ref:t}))))}),P=(0,a.forwardRef)((e,t)=>{let{__scopeRadioGroup:r,disabled:i,...s}=e,u=k("RadioGroupItem",r),d=u.disabled||i,m=T(r),f=_(r),p=(0,a.useRef)(null),v=(0,l.e)(t,p),h=u.value===s.value,g=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let e=e=>{N.includes(e.key)&&(g.current=!0)},t=()=>g.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,a.createElement)(c.ck,(0,n.Z)({asChild:!0},m,{focusable:!d,active:h}),(0,a.createElement)(y,(0,n.Z)({disabled:d,required:u.required,checked:h},f,s,{name:u.name,ref:v,onCheck:()=>u.onValueChange(s.value),onKeyDown:(0,o.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,o.M)(s.onFocus,()=>{var e;g.current&&(null===(e=p.current)||void 0===e||e.click())})})))}),I=D,L=P},53398:function(e,t,r){"use strict";r.d(t,{Pc:function(){return w},ck:function(){return k},fC:function(){return S}});var n=r(22988),a=r(2265),o=r(78149),l=r(90976),i=r(1584),s=r(98324),c=r(53201),u=r(25171),d=r(75137),m=r(91715),f=r(87513);let p="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[g,C,E]=(0,l.B)(h),[y,w]=(0,s.b)(h,[E]),[b,N]=y(h),R=(0,a.forwardRef)((e,t)=>(0,a.createElement)(g.Provider,{scope:e.__scopeRovingFocusGroup},(0,a.createElement)(g.Slot,{scope:e.__scopeRovingFocusGroup},(0,a.createElement)(x,(0,n.Z)({},e,{ref:t}))))),x=(0,a.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:l,loop:s=!1,dir:c,currentTabStopId:h,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:E,onEntryFocus:y,...w}=e,N=(0,a.useRef)(null),R=(0,i.e)(t,N),x=(0,f.gm)(c),[M=null,T]=(0,m.T)({prop:h,defaultProp:g,onChange:E}),[S,k]=(0,a.useState)(!1),D=(0,d.W)(y),P=C(r),I=(0,a.useRef)(!1),[L,A]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let e=N.current;if(e)return e.addEventListener(p,D),()=>e.removeEventListener(p,D)},[D]),(0,a.createElement)(b,{scope:r,orientation:l,dir:x,loop:s,currentTabStopId:M,onItemFocus:(0,a.useCallback)(e=>T(e),[T]),onItemShiftTab:(0,a.useCallback)(()=>k(!0),[]),onFocusableItemAdd:(0,a.useCallback)(()=>A(e=>e+1),[]),onFocusableItemRemove:(0,a.useCallback)(()=>A(e=>e-1),[])},(0,a.createElement)(u.WV.div,(0,n.Z)({tabIndex:S||0===L?-1:0,"data-orientation":l},w,{ref:R,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{I.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!I.current;if(e.target===e.currentTarget&&t&&!S){let t=new CustomEvent(p,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);_([e.find(e=>e.active),e.find(e=>e.id===M),...e].filter(Boolean).map(e=>e.ref.current))}}I.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>k(!1))})))}),M=(0,a.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:l=!0,active:i=!1,tabStopId:s,...d}=e,m=(0,c.M)(),f=s||m,p=N("RovingFocusGroupItem",r),v=p.currentTabStopId===f,h=C(r),{onFocusableItemAdd:E,onFocusableItemRemove:y}=p;return(0,a.useEffect)(()=>{if(l)return E(),()=>y()},[l,E,y]),(0,a.createElement)(g.ItemSlot,{scope:r,id:f,focusable:l,active:i},(0,a.createElement)(u.WV.span,(0,n.Z)({tabIndex:v?0:-1,"data-orientation":p.orientation},d,{ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{l?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let a=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return T[a]}(e,p.orientation,p.dir);if(void 0!==t){e.preventDefault();let a=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&a.reverse();let o=a.indexOf(e.currentTarget);a=p.loop?(r=a,n=o+1,r.map((e,t)=>r[(n+t)%r.length])):a.slice(o+1)}setTimeout(()=>_(a))}})})))}),T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}let S=R,k=M},80023:function(e,t,r){"use strict";r.d(t,{LW:function(){return X},Ns:function(){return q},bU:function(){return Y},fC:function(){return U},l_:function(){return j}});var n=r(22988),a=r(2265),o=r(25171),l=r(31383),i=r(98324),s=r(1584),c=r(75137),u=r(87513),d=r(1336),m=r(62361),f=r(78149);let p="ScrollArea",[v,h]=(0,i.b)(p),[g,C]=v(p),E=(0,a.forwardRef)((e,t)=>{let{__scopeScrollArea:r,type:l="hover",dir:i,scrollHideDelay:c=600,...d}=e,[m,f]=(0,a.useState)(null),[p,v]=(0,a.useState)(null),[h,C]=(0,a.useState)(null),[E,y]=(0,a.useState)(null),[w,b]=(0,a.useState)(null),[N,R]=(0,a.useState)(0),[x,M]=(0,a.useState)(0),[T,_]=(0,a.useState)(!1),[S,k]=(0,a.useState)(!1),D=(0,s.e)(t,e=>f(e)),P=(0,u.gm)(i);return(0,a.createElement)(g,{scope:r,type:l,dir:P,scrollHideDelay:c,scrollArea:m,viewport:p,onViewportChange:v,content:h,onContentChange:C,scrollbarX:E,onScrollbarXChange:y,scrollbarXEnabled:T,onScrollbarXEnabledChange:_,scrollbarY:w,onScrollbarYChange:b,scrollbarYEnabled:S,onScrollbarYEnabledChange:k,onCornerWidthChange:R,onCornerHeightChange:M},(0,a.createElement)(o.WV.div,(0,n.Z)({dir:P},d,{ref:D,style:{position:"relative","--radix-scroll-area-corner-width":N+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})))}),y=(0,a.forwardRef)((e,t)=>{let{__scopeScrollArea:r,children:l,...i}=e,c=C("ScrollAreaViewport",r),u=(0,a.useRef)(null),d=(0,s.e)(t,u,c.onViewportChange);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,a.createElement)(o.WV.div,(0,n.Z)({"data-radix-scroll-area-viewport":""},i,{ref:d,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,a.createElement)("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"}},l)))}),w="ScrollAreaScrollbar",b=(0,a.forwardRef)((e,t)=>{let{forceMount:r,...o}=e,l=C(w,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=l,c="horizontal"===e.orientation;return(0,a.useEffect)(()=>(c?i(!0):s(!0),()=>{c?i(!1):s(!1)}),[c,i,s]),"hover"===l.type?(0,a.createElement)(N,(0,n.Z)({},o,{ref:t,forceMount:r})):"scroll"===l.type?(0,a.createElement)(R,(0,n.Z)({},o,{ref:t,forceMount:r})):"auto"===l.type?(0,a.createElement)(x,(0,n.Z)({},o,{ref:t,forceMount:r})):"always"===l.type?(0,a.createElement)(M,(0,n.Z)({},o,{ref:t})):null}),N=(0,a.forwardRef)((e,t)=>{let{forceMount:r,...o}=e,i=C(w,e.__scopeScrollArea),[s,c]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),c(!0)},n=()=>{t=window.setTimeout(()=>c(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,a.createElement)(l.z,{present:r||s},(0,a.createElement)(x,(0,n.Z)({"data-state":s?"visible":"hidden"},o,{ref:t})))}),R=(0,a.forwardRef)((e,t)=>{var r,o;let{forceMount:i,...s}=e,c=C(w,e.__scopeScrollArea),u="horizontal"===e.orientation,d=H(()=>p("SCROLL_END"),100),[m,p]=(r="hidden",o={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,a.useReducer)((e,t)=>{let r=o[e][t];return null!=r?r:e},r));return(0,a.useEffect)(()=>{if("idle"===m){let e=window.setTimeout(()=>p("HIDE"),c.scrollHideDelay);return()=>window.clearTimeout(e)}},[m,c.scrollHideDelay,p]),(0,a.useEffect)(()=>{let e=c.viewport,t=u?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t];r!==n&&(p("SCROLL"),d()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[c.viewport,u,p,d]),(0,a.createElement)(l.z,{present:i||"hidden"!==m},(0,a.createElement)(M,(0,n.Z)({"data-state":"hidden"===m?"hidden":"visible"},s,{ref:t,onPointerEnter:(0,f.M)(e.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:(0,f.M)(e.onPointerLeave,()=>p("POINTER_LEAVE"))})))}),x=(0,a.forwardRef)((e,t)=>{let r=C(w,e.__scopeScrollArea),{forceMount:o,...i}=e,[s,c]=(0,a.useState)(!1),u="horizontal"===e.orientation,d=H(()=>{if(r.viewport){let e=r.viewport.offsetWidth{let{orientation:r="vertical",...o}=e,l=C(w,e.__scopeScrollArea),i=(0,a.useRef)(null),s=(0,a.useRef)(0),[c,u]=(0,a.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=V(c.viewport,c.content),m={...o,sizes:c,onSizesChange:u,hasThumb:!!(d>0&&d<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function f(e,t){return function(e,t,r,n="ltr"){let a=F(r),o=t||a/2,l=r.scrollbar.paddingStart+o,i=r.scrollbar.size-r.scrollbar.paddingEnd-(a-o),s=r.content-r.viewport;return W([l,i],"ltr"===n?[0,s]:[-1*s,0])(e)}(e,s.current,c,t)}return"horizontal"===r?(0,a.createElement)(T,(0,n.Z)({},m,{ref:t,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=B(l.viewport.scrollLeft,c,l.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=f(e,l.dir))}})):"vertical"===r?(0,a.createElement)(_,(0,n.Z)({},m,{ref:t,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=B(l.viewport.scrollTop,c);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=f(e))}})):null}),T=(0,a.forwardRef)((e,t)=>{let{sizes:r,onSizesChange:o,...l}=e,i=C(w,e.__scopeScrollArea),[c,u]=(0,a.useState)(),d=(0,a.useRef)(null),m=(0,s.e)(t,d,i.onScrollbarXChange);return(0,a.useEffect)(()=>{d.current&&u(getComputedStyle(d.current))},[d]),(0,a.createElement)(D,(0,n.Z)({"data-orientation":"horizontal"},l,{ref:m,sizes:r,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":F(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(i.viewport){let n=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),n>0&&n{d.current&&i.viewport&&c&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:Z(c.paddingLeft),paddingEnd:Z(c.paddingRight)}})}}))}),_=(0,a.forwardRef)((e,t)=>{let{sizes:r,onSizesChange:o,...l}=e,i=C(w,e.__scopeScrollArea),[c,u]=(0,a.useState)(),d=(0,a.useRef)(null),m=(0,s.e)(t,d,i.onScrollbarYChange);return(0,a.useEffect)(()=>{d.current&&u(getComputedStyle(d.current))},[d]),(0,a.createElement)(D,(0,n.Z)({"data-orientation":"vertical"},l,{ref:m,sizes:r,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":F(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(i.viewport){let n=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),n>0&&n{d.current&&i.viewport&&c&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:Z(c.paddingTop),paddingEnd:Z(c.paddingBottom)}})}}))}),[S,k]=v(w),D=(0,a.forwardRef)((e,t)=>{let{__scopeScrollArea:r,sizes:l,hasThumb:i,onThumbChange:u,onThumbPointerUp:d,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:v,onWheelScroll:h,onResize:g,...E}=e,y=C(w,r),[b,N]=(0,a.useState)(null),R=(0,s.e)(t,e=>N(e)),x=(0,a.useRef)(null),M=(0,a.useRef)(""),T=y.viewport,_=l.content-l.viewport,k=(0,c.W)(h),D=(0,c.W)(p),P=H(g,10);function I(e){x.current&&v({x:e.clientX-x.current.left,y:e.clientY-x.current.top})}return(0,a.useEffect)(()=>{let e=e=>{let t=e.target;(null==b?void 0:b.contains(t))&&k(e,_)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[T,b,_,k]),(0,a.useEffect)(D,[l,D]),K(b,P),K(y.content,P),(0,a.createElement)(S,{scope:r,scrollbar:b,hasThumb:i,onThumbChange:(0,c.W)(u),onThumbPointerUp:(0,c.W)(d),onThumbPositionChange:D,onThumbPointerDown:(0,c.W)(m)},(0,a.createElement)(o.WV.div,(0,n.Z)({},E,{ref:R,style:{position:"absolute",...E.style},onPointerDown:(0,f.M)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),x.current=b.getBoundingClientRect(),M.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),I(e))}),onPointerMove:(0,f.M)(e.onPointerMove,I),onPointerUp:(0,f.M)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=M.current,y.viewport&&(y.viewport.style.scrollBehavior=""),x.current=null})})))}),P="ScrollAreaThumb",I=(0,a.forwardRef)((e,t)=>{let{forceMount:r,...o}=e,i=k(P,e.__scopeScrollArea);return(0,a.createElement)(l.z,{present:r||i.hasThumb},(0,a.createElement)(L,(0,n.Z)({ref:t},o)))}),L=(0,a.forwardRef)((e,t)=>{let{__scopeScrollArea:r,style:l,...i}=e,c=C(P,r),u=k(P,r),{onThumbPositionChange:d}=u,m=(0,s.e)(t,e=>u.onThumbChange(e)),p=(0,a.useRef)(),v=H(()=>{p.current&&(p.current(),p.current=void 0)},100);return(0,a.useEffect)(()=>{let e=c.viewport;if(e){let t=()=>{if(v(),!p.current){let t=G(e,d);p.current=t,d()}};return d(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[c.viewport,v,d]),(0,a.createElement)(o.WV.div,(0,n.Z)({"data-state":u.hasThumb?"visible":"hidden"},i,{ref:m,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:(0,f.M)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;u.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,f.M)(e.onPointerUp,u.onThumbPointerUp)}))}),A="ScrollAreaCorner",z=(0,a.forwardRef)((e,t)=>{let r=C(A,e.__scopeScrollArea),o=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&o?(0,a.createElement)(O,(0,n.Z)({},e,{ref:t})):null}),O=(0,a.forwardRef)((e,t)=>{let{__scopeScrollArea:r,...l}=e,i=C(A,r),[s,c]=(0,a.useState)(0),[u,d]=(0,a.useState)(0),m=!!(s&&u);return K(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),d(t)}),K(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),c(t)}),m?(0,a.createElement)(o.WV.div,(0,n.Z)({},l,{ref:t,style:{width:s,height:u,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function Z(e){return e?parseInt(e,10):0}function V(e,t){let r=e/t;return isNaN(r)?0:r}function F(e){let t=V(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function B(e,t,r="ltr"){let n=F(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,l=t.content-t.viewport,i=(0,m.u)(e,"ltr"===r?[0,l]:[-1*l,0]);return W([0,l],[0,o-n])(i)}function W(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}let G=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function a(){let o={left:e.scrollLeft,top:e.scrollTop},l=r.left!==o.left,i=r.top!==o.top;(l||i)&&t(),r=o,n=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(n)};function H(e,t){let r=(0,c.W)(e),n=(0,a.useRef)(0);return(0,a.useEffect)(()=>()=>window.clearTimeout(n.current),[]),(0,a.useCallback)(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function K(e,t){let r=(0,c.W)(t);(0,d.b)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}let U=E,j=y,X=b,Y=I,q=z},9646:function(e,t,r){"use strict";r.d(t,{bU:function(){return b},fC:function(){return w}});var n=r(22988),a=r(2265),o=r(78149),l=r(1584),i=r(98324),s=r(91715),c=r(47250),u=r(75238),d=r(25171);let m="Switch",[f,p]=(0,i.b)(m),[v,h]=f(m),g=(0,a.forwardRef)((e,t)=>{let{__scopeSwitch:r,name:i,checked:c,defaultChecked:u,required:m,disabled:f,value:p="on",onCheckedChange:h,...g}=e,[C,w]=(0,a.useState)(null),b=(0,l.e)(t,e=>w(e)),N=(0,a.useRef)(!1),R=!C||!!C.closest("form"),[x=!1,M]=(0,s.T)({prop:c,defaultProp:u,onChange:h});return(0,a.createElement)(v,{scope:r,checked:x,disabled:f},(0,a.createElement)(d.WV.button,(0,n.Z)({type:"button",role:"switch","aria-checked":x,"aria-required":m,"data-state":y(x),"data-disabled":f?"":void 0,disabled:f,value:p},g,{ref:b,onClick:(0,o.M)(e.onClick,e=>{M(e=>!e),R&&(N.current=e.isPropagationStopped(),N.current||e.stopPropagation())})})),R&&(0,a.createElement)(E,{control:C,bubbles:!N.current,name:i,value:p,checked:x,required:m,disabled:f,style:{transform:"translateX(-100%)"}}))}),C=(0,a.forwardRef)((e,t)=>{let{__scopeSwitch:r,...o}=e,l=h("SwitchThumb",r);return(0,a.createElement)(d.WV.span,(0,n.Z)({"data-state":y(l.checked),"data-disabled":l.disabled?"":void 0},o,{ref:t}))}),E=e=>{let{control:t,checked:r,bubbles:o=!0,...l}=e,i=(0,a.useRef)(null),s=(0,c.D)(r),d=(0,u.t)(t);return(0,a.useEffect)(()=>{let e=i.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(s!==r&&t){let n=new Event("click",{bubbles:o});t.call(e,r),e.dispatchEvent(n)}},[s,r,o]),(0,a.createElement)("input",(0,n.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:r},l,{tabIndex:-1,ref:i,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function y(e){return e?"checked":"unchecked"}let w=g,b=C},27071:function(e,t,r){"use strict";r.d(t,{Eh:function(){return G},VY:function(){return W},fC:function(){return V},h_:function(){return B},xz:function(){return F},zt:function(){return Z}});var n=r(22988),a=r(2265),o=r(78149),l=r(1584),i=r(98324),s=r(53938),c=r(53201),u=r(25510),d=r(56935),m=r(31383),f=r(25171),p=r(71538),v=r(91715),h=r(31725);let[g,C]=(0,i.b)("Tooltip",[u.D7]),E=(0,u.D7)(),y="tooltip.open",[w,b]=g("TooltipProvider"),N="Tooltip",[R,x]=g(N),M="TooltipTrigger",T=(0,a.forwardRef)((e,t)=>{let{__scopeTooltip:r,...i}=e,s=x(M,r),c=b(M,r),d=E(r),m=(0,a.useRef)(null),p=(0,l.e)(t,m,s.onTriggerChange),v=(0,a.useRef)(!1),h=(0,a.useRef)(!1),g=(0,a.useCallback)(()=>v.current=!1,[]);return(0,a.useEffect)(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,a.createElement)(u.ee,(0,n.Z)({asChild:!0},d),(0,a.createElement)(f.WV.button,(0,n.Z)({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},i,{ref:p,onPointerMove:(0,o.M)(e.onPointerMove,e=>{"touch"===e.pointerType||h.current||c.isPointerInTransitRef.current||(s.onTriggerEnter(),h.current=!0)}),onPointerLeave:(0,o.M)(e.onPointerLeave,()=>{s.onTriggerLeave(),h.current=!1}),onPointerDown:(0,o.M)(e.onPointerDown,()=>{v.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,o.M)(e.onFocus,()=>{v.current||s.onOpen()}),onBlur:(0,o.M)(e.onBlur,s.onClose),onClick:(0,o.M)(e.onClick,s.onClose)})))}),_="TooltipPortal",[S,k]=g(_,{forceMount:void 0}),D="TooltipContent",P=(0,a.forwardRef)((e,t)=>{let r=k(D,e.__scopeTooltip),{forceMount:o=r.forceMount,side:l="top",...i}=e,s=x(D,e.__scopeTooltip);return(0,a.createElement)(m.z,{present:o||s.open},s.disableHoverableContent?(0,a.createElement)(z,(0,n.Z)({side:l},i,{ref:t})):(0,a.createElement)(I,(0,n.Z)({side:l},i,{ref:t})))}),I=(0,a.forwardRef)((e,t)=>{let r=x(D,e.__scopeTooltip),o=b(D,e.__scopeTooltip),i=(0,a.useRef)(null),s=(0,l.e)(t,i),[c,u]=(0,a.useState)(null),{trigger:d,onClose:m}=r,f=i.current,{onPointerInTransitChange:p}=o,v=(0,a.useCallback)(()=>{u(null),p(!1)},[p]),h=(0,a.useCallback)((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},a=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,a,o)){case o:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(n,r.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([...function(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,a),...function(e){let{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}(t.getBoundingClientRect())])),p(!0)},[p]);return(0,a.useEffect)(()=>()=>v(),[v]),(0,a.useEffect)(()=>{if(d&&f){let e=e=>h(e,f),t=e=>h(e,d);return d.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[d,f,h,v]),(0,a.useEffect)(()=>{if(c){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==d?void 0:d.contains(t))||(null==f?void 0:f.contains(t)),a=!function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,o=t.length-1;en!=c>n&&r<(s-l)*(n-i)/(c-i)+l&&(a=!a)}return a}(r,c);n?v():a&&(v(),m())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,f,c,m,v]),(0,a.createElement)(z,(0,n.Z)({},e,{ref:s}))}),[L,A]=g(N,{isInside:!1}),z=(0,a.forwardRef)((e,t)=>{let{__scopeTooltip:r,children:o,"aria-label":l,onEscapeKeyDown:i,onPointerDownOutside:c,...d}=e,m=x(D,r),f=E(r),{onClose:v}=m;return(0,a.useEffect)(()=>(document.addEventListener(y,v),()=>document.removeEventListener(y,v)),[v]),(0,a.useEffect)(()=>{if(m.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(m.trigger)&&v()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[m.trigger,v]),(0,a.createElement)(s.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:v},(0,a.createElement)(u.VY,(0,n.Z)({"data-state":m.stateAttribute},f,d,{ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,a.createElement)(p.A4,null,o),(0,a.createElement)(L,{scope:r,isInside:!0},(0,a.createElement)(h.f,{id:m.contentId,role:"tooltip"},l||o))))}),O=(0,a.forwardRef)((e,t)=>{let{__scopeTooltip:r,...o}=e,l=E(r);return A("TooltipArrow",r).isInside?null:(0,a.createElement)(u.Eh,(0,n.Z)({},l,o,{ref:t}))}),Z=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:l}=e,[i,s]=(0,a.useState)(!0),c=(0,a.useRef)(!1),u=(0,a.useRef)(0);return(0,a.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,a.createElement)(w,{scope:t,isOpenDelayed:i,delayDuration:r,onOpen:(0,a.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,a.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:(0,a.useCallback)(e=>{c.current=e},[]),disableHoverableContent:o},l)},V=e=>{let{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:l,disableHoverableContent:i,delayDuration:s}=e,d=b(N,e.__scopeTooltip),m=E(t),[f,p]=(0,a.useState)(null),h=(0,c.M)(),g=(0,a.useRef)(0),C=null!=i?i:d.disableHoverableContent,w=null!=s?s:d.delayDuration,x=(0,a.useRef)(!1),[M=!1,T]=(0,v.T)({prop:n,defaultProp:o,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(y))):d.onClose(),null==l||l(e)}}),_=(0,a.useMemo)(()=>M?x.current?"delayed-open":"instant-open":"closed",[M]),S=(0,a.useCallback)(()=>{window.clearTimeout(g.current),x.current=!1,T(!0)},[T]),k=(0,a.useCallback)(()=>{window.clearTimeout(g.current),T(!1)},[T]),D=(0,a.useCallback)(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,T(!0)},w)},[w,T]);return(0,a.useEffect)(()=>()=>window.clearTimeout(g.current),[]),(0,a.createElement)(u.fC,m,(0,a.createElement)(R,{scope:t,contentId:h,open:M,stateAttribute:_,trigger:f,onTriggerChange:p,onTriggerEnter:(0,a.useCallback)(()=>{d.isOpenDelayed?D():S()},[d.isOpenDelayed,D,S]),onTriggerLeave:(0,a.useCallback)(()=>{C?k():window.clearTimeout(g.current)},[k,C]),onOpen:S,onClose:k,disableHoverableContent:C},r))},F=T,B=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,l=x(_,t);return(0,a.createElement)(S,{scope:t,forceMount:r},(0,a.createElement)(m.z,{present:r||l.open},(0,a.createElement)(d.h,{asChild:!0,container:o},n)))},W=P,G=O},91048:function(e,t,r){"use strict";r.r(t),r.d(t,{AccessibleIcon:function(){return o}});var n=r(2265),a=r(31725);let o=({children:e,label:t})=>{let r=n.Children.only(e);return(0,n.createElement)(n.Fragment,null,(0,n.cloneElement)(r,{"aria-hidden":"true",focusable:"false"}),(0,n.createElement)(a.f,null,t))}},16502:function(e,t,r){"use strict";r.r(t),r.d(t,{Action:function(){return Z},Cancel:function(){return V},Content:function(){return A},Description:function(){return O},Root:function(){return I},Title:function(){return z},Trigger:function(){return L}});var n=r(2265),a=r(56800),o=r(22988),l=r(98324),i=r(1584),s=r(13304),c=r(78149),u=r(71538);let[d,m]=(0,l.b)("AlertDialog",[s.p8]),f=(0,s.p8)(),p=(0,n.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,...a}=e,l=f(r);return(0,n.createElement)(s.xz,(0,o.Z)({},l,a,{ref:t}))}),v=(0,n.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,...a}=e,l=f(r);return(0,n.createElement)(s.aV,(0,o.Z)({},l,a,{ref:t}))}),h="AlertDialogContent",[g,C]=d(h),E=(0,n.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,children:a,...l}=e,d=f(r),m=(0,n.useRef)(null),p=(0,i.e)(t,m),v=(0,n.useRef)(null);return(0,n.createElement)(s.jm,{contentName:h,titleName:y,docsSlug:"alert-dialog"},(0,n.createElement)(g,{scope:r,cancelRef:v},(0,n.createElement)(s.VY,(0,o.Z)({role:"alertdialog"},d,l,{ref:p,onOpenAutoFocus:(0,c.M)(l.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=v.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()}),(0,n.createElement)(u.A4,null,a),!1)))}),y="AlertDialogTitle",w=(0,n.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,...a}=e,l=f(r);return(0,n.createElement)(s.Dx,(0,o.Z)({},l,a,{ref:t}))}),b=(0,n.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,...a}=e,l=f(r);return(0,n.createElement)(s.dk,(0,o.Z)({},l,a,{ref:t}))}),N=(0,n.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,...a}=e,l=f(r);return(0,n.createElement)(s.x8,(0,o.Z)({},l,a,{ref:t}))}),R=(0,n.forwardRef)((e,t)=>{let{__scopeAlertDialog:r,...a}=e,{cancelRef:l}=C("AlertDialogCancel",r),c=f(r),u=(0,i.e)(t,l);return(0,n.createElement)(s.x8,(0,o.Z)({},c,a,{ref:u}))}),x=e=>{let{__scopeAlertDialog:t,...r}=e,a=f(t);return(0,n.createElement)(s.fC,(0,o.Z)({},a,r,{modal:!0}))},M=e=>{let{__scopeAlertDialog:t,...r}=e,a=f(t);return(0,n.createElement)(s.h_,(0,o.Z)({},a,r))};var T=r(6963),_=r(68890),S=r(19078),k=r(29340),D=r(19594),P=r(9766);let I=e=>n.createElement(x,{...e});I.displayName="AlertDialog.Root";let L=n.forwardRef((e,t)=>{let{children:r,...a}=e;return n.createElement(p,{...a,ref:t,asChild:!0},(0,P.O)(r))});L.displayName="AlertDialog.Trigger";let A=n.forwardRef((e,t)=>{let{align:r,...o}=e,{align:l,...i}=T.x,{className:s}=(0,D.y)({align:r},{align:l}),{className:c,forceMount:u,container:d,...m}=(0,D.y)(o,i);return n.createElement(M,{container:d,forceMount:u},n.createElement(k.Theme,{asChild:!0},n.createElement(v,{className:"rt-BaseDialogOverlay rt-AlertDialogOverlay"},n.createElement("div",{className:"rt-BaseDialogScroll rt-AlertDialogScroll"},n.createElement("div",{className:"rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ".concat(s)},n.createElement(E,{...m,ref:t,className:a("rt-BaseDialogContent","rt-AlertDialogContent",c)}))))))});A.displayName="AlertDialog.Content";let z=n.forwardRef((e,t)=>n.createElement(w,{asChild:!0},n.createElement(_.X,{size:"5",mb:"3",trim:"start",...e,asChild:!1,ref:t})));z.displayName="AlertDialog.Title";let O=n.forwardRef((e,t)=>n.createElement(b,{asChild:!0},n.createElement(S.x,{as:"p",size:"3",...e,asChild:!1,ref:t})));O.displayName="AlertDialog.Description";let Z=n.forwardRef((e,t)=>{let{children:r,...a}=e;return n.createElement(N,{...a,ref:t,asChild:!0},(0,P.O)(r))});Z.displayName="AlertDialog.Action";let V=n.forwardRef((e,t)=>{let{children:r,...a}=e;return n.createElement(R,{...a,ref:t,asChild:!0},(0,P.O)(r))});V.displayName="AlertDialog.Cancel"},38507:function(e,t,r){"use strict";r.r(t),r.d(t,{Avatar:function(){return p}});var n=r(2265),a=r(56800),o=r(44458),l=r(38460),i=r(17534),s=r(75073),c=r(66176);let u={...l.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],default:"3",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["solid","soft"],default:"soft"},...i.o3,...s.K,...c.I,fallback:{type:"ReactNode",required:!0}};var d=r(19594),m=r(81271),f=r(66188);let p=n.forwardRef((e,t)=>{let{asChild:r,children:l,className:i,style:s,color:c,radius:p,...h}=(0,d.y)(e,u,f.E);return n.createElement(o.fC,{"data-accent-color":c,"data-radius":p,className:a("rt-reset","rt-AvatarRoot",i),style:s,asChild:r},(0,m.x)({asChild:r,children:l},n.createElement(v,{ref:t,...h})))});p.displayName="Avatar";let v=n.forwardRef((e,t)=>{let{fallback:r,...l}=e,[i,s]=n.useState("idle");return n.createElement(n.Fragment,null,"idle"===i||"loading"===i?n.createElement("span",{className:"rt-AvatarFallback"}):null,"error"===i?n.createElement(o.NY,{className:a("rt-AvatarFallback",{"rt-one-letter":"string"==typeof r&&1===r.length,"rt-two-letters":"string"==typeof r&&2===r.length}),delayMs:0},r):null,n.createElement(o.Ee,{ref:t,className:"rt-AvatarImage",...l,onLoadingStatusChange:e=>{var t;null===(t=l.onLoadingStatusChange)||void 0===t||t.call(l,e),s(e)}}))});v.displayName="AvatarImpl"},58022:function(e,t,r){"use strict";r.d(t,{C:function(){return i}});var n=r(38460),a=r(17534),o=r(75073),l=r(66176);let i={...n.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","solid","soft","surface","outline","ghost"],default:"solid"},...a.o3,...o.K,...l.I,loading:{type:"boolean",className:"rt-loading",default:!1}}},5233:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(17534),a=r(75073);let o={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...n.EG,...a.K}},93518:function(e,t,r){"use strict";r.d(t,{JD:function(){return l},QN:function(){return c},km:function(){return s},nj:function(){return i}});var n=r(38460),a=r(17534),o=r(75073);let l={size:{type:"enum",className:"rt-r-size",values:["1","2"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["solid","soft"],default:"solid"},...a.EG,...o.K},i={...n.C,...a.EG,shortcut:{type:"string"}},s={...a.EG,shortcut:{type:"string"}},c={...a.EG}},13384:function(e,t,r){"use strict";r.d(t,{U:function(){return o}});var n=r(17534),a=r(75073);let o={size:{type:"enum",className:"rt-r-size",values:["1","2"],default:"2",responsive:!0},wrap:{type:"enum",className:"rt-r-fw",values:["nowrap","wrap","wrap-reverse"],responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:["start","center","end"],responsive:!0},...n.EG,...a.K}},44581:function(e,t,r){"use strict";r.r(t),r.d(t,{Icon:function(){return f},Root:function(){return m},Text:function(){return p}});var n=r(2265),a=r(56800),o=r(71538),l=r(19078),i=r(31861),s=r(19594),c=r(6717),u=r(66188);let d=n.createContext({}),m=n.forwardRef((e,t)=>{let{size:r=i.n.size.default}=e,{asChild:l,children:c,className:m,color:f,...p}=(0,s.y)(e,i.n,u.E);return n.createElement(l?o.g7:"div",{"data-accent-color":f,...p,className:a("rt-CalloutRoot",m),ref:t},n.createElement(d.Provider,{value:n.useMemo(()=>({size:r}),[r])},c))});m.displayName="Callout.Root";let f=n.forwardRef((e,t)=>{let{className:r,...o}=e;return n.createElement("div",{...o,className:a("rt-CalloutIcon",r),ref:t})});f.displayName="Callout.Icon";let p=n.forwardRef((e,t)=>{let{className:r,...o}=e,{size:i}=n.useContext(d);return n.createElement(l.x,{as:"p",size:(0,c.qz)(i,c.uJ),...o,asChild:!1,ref:t,className:a("rt-CalloutText",r)})});p.displayName="Callout.Text"},31861:function(e,t,r){"use strict";r.d(t,{n:function(){return l}});var n=r(38460),a=r(17534),o=r(75073);let l={...n.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["soft","surface","outline"],default:"soft"},...a.o3,...o.K}},36756:function(e,t,r){"use strict";r.r(t),r.d(t,{Item:function(){return N},Root:function(){return b}});var n=r(2265),a=r(56800),o=r(98324),l=r(91740),i=r(38460),s=r(17534),c=r(75073),u=r(26624);let d={...i.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["surface","classic"],default:"surface"},...s.EG,...c.K,columns:{...u.L.columns,default:"repeat(auto-fit, minmax(200px, 1fr))"},gap:{...u.L.gap,default:"4"}};var m=r(5233),f=r(61395),p=r(52777),v=r(19594),h=r(66188);let g="CheckboxCards",[C]=(0,o.b)(g,[l.hm]),E=(0,l.hm)(),[y,w]=C(g),b=n.forwardRef((e,t)=>{let{__scopeCheckboxCards:r,className:o,color:i,...s}=(0,v.y)(e,d,h.E),c=E(r);return n.createElement(y,{scope:r,size:e.size,highContrast:e.highContrast},n.createElement(f.r,{asChild:!0},n.createElement(l.fC,{...c,"data-accent-color":i,...s,ref:t,className:a("rt-CheckboxCardsRoot",o)})))});b.displayName="CheckboxCards.Root";let N=n.forwardRef((e,t)=>{let{__scopeCheckboxCards:r,children:o,className:i,style:s,...c}=e,u=w("CheckboxCardsItem",r),d=E(r),{className:f}=(0,v.y)({size:null==u?void 0:u.size,variant:"surface",highContrast:null==u?void 0:u.highContrast},m.m);return n.createElement("label",{className:a("rt-BaseCard","rt-CheckboxCardsItem",i),style:s},o,n.createElement(l.ck,{...d,...c,ref:t,className:a("rt-reset","rt-BaseCheckboxRoot","rt-CheckboxCardCheckbox",f)},n.createElement(l.z$,{...d,asChild:!0,className:"rt-BaseCheckboxIndicator"},n.createElement(p.dc,null))))});N.displayName="CheckboxCards.Item"},76895:function(e,t,r){"use strict";r.r(t),r.d(t,{Item:function(){return y},Root:function(){return E}});var n=r(2265),a=r(56800),o=r(98324),l=r(91740),i=r(38460),s=r(5233);let c={...i.C,...s.m};var u=r(52777),d=r(19078),m=r(19594),f=r(66188);let p="CheckboxGroup",[v]=(0,o.b)(p,[l.hm]),h=(0,l.hm)(),[g,C]=v(p),E=n.forwardRef((e,t)=>{let{color:r=c.color.default,highContrast:o=c.highContrast.default,size:i=c.size.default,variant:s=c.variant.default,...u}=e,{__scopeCheckboxGroup:d,className:p,...v}=(0,m.y)(u,f.E),C=h(d);return n.createElement(g,{scope:d,color:r,size:i,highContrast:o,variant:s},n.createElement(l.fC,{...C,...v,ref:t,className:a("rt-CheckboxGroupRoot",p)}))});E.displayName="CheckboxGroup.Root";let y=n.forwardRef((e,t)=>{let{__scopeCheckboxGroup:r,children:o,className:l,style:i,...s}=e,{size:c}=C("CheckboxGroupItem",r);return o?n.createElement(d.x,{as:"label",size:c,className:a("rt-CheckboxGroupItem",l),style:i},n.createElement(w,{__scopeCheckboxGroup:r,...s,ref:t}),o&&n.createElement("span",{className:"rt-CheckboxGroupItemInner"},o)):n.createElement(w,{__scopeCheckboxGroup:r,...s,ref:t,className:l,style:i})});y.displayName="CheckboxGroup.Item";let w=n.forwardRef((e,t)=>{let{__scopeCheckboxGroup:r,...o}=e,i=C("CheckboxGroupItemCheckbox",r),s=h(r),{color:d,className:p}=(0,m.y)({...o,...i},c,f.E);return n.createElement(l.ck,{...s,"data-accent-color":d,...o,ref:t,className:a("rt-reset","rt-BaseCheckboxRoot","rt-CheckboxGroupItemCheckbox",p)},n.createElement(l.z$,{...s,asChild:!0,className:"rt-BaseCheckboxIndicator"},n.createElement(u.dc,null)))});w.displayName="CheckboxGroup.ItemCheckbox"},91740:function(e,t,r){"use strict";r.d(t,{ck:function(){return N},fC:function(){return b},hm:function(){return f},z$:function(){return R}});var n=r(2265),a=r(69324),o=r(1584),l=r(98324),i=r(25171),s=r(53398),c=r(91715),u=r(87513);let d="CheckboxGroup",[m,f]=(0,l.b)(d,[s.Pc,a.Ed]),p=(0,s.Pc)(),v=(0,a.Ed)(),[h,g]=m(d),C=n.forwardRef((e,t)=>{let{__scopeCheckboxGroup:r,name:a,defaultValue:o,value:l,required:d=!1,disabled:m=!1,orientation:f,dir:v,loop:g=!0,onValueChange:C,...E}=e,y=p(r),w=(0,u.gm)(v),[b=[],N]=(0,c.T)({prop:l,defaultProp:o,onChange:C}),R=n.useCallback(e=>N((t=[])=>[...t,e]),[N]),x=n.useCallback(e=>N((t=[])=>t.filter(t=>t!==e)),[N]);return n.createElement(h,{scope:r,name:a,required:d,disabled:m,value:b,onItemCheck:R,onItemUncheck:x},n.createElement(s.fC,{asChild:!0,...y,orientation:f,dir:w,loop:g},n.createElement(i.WV.div,{role:"group","data-disabled":m?"":void 0,dir:w,...E,ref:t})))});C.displayName=d;let E="CheckboxGroupItem",y=n.forwardRef((e,t)=>{let{__scopeCheckboxGroup:r,disabled:l,...i}=e,c=g(E,r),u=c.disabled||l,d=p(r),m=v(r),f=n.useRef(null),h=(0,o.e)(t,f),C=c.value?.includes(i.value);return n.createElement(s.ck,{asChild:!0,...d,focusable:!u,active:C},n.createElement(a.fC,{name:c.name,disabled:u,required:c.required,checked:C,...m,...i,ref:h,onCheckedChange:t=>{t?c.onItemCheck(e.value):c.onItemUncheck(e.value)}}))});y.displayName=E;let w=n.forwardRef((e,t)=>{let{__scopeCheckboxGroup:r,...o}=e,l=v(r);return n.createElement(a.z$,{...l,...o,ref:t})});w.displayName="CheckboxGroupIndicator";let b=C,N=y,R=w},2738:function(e,t,r){"use strict";r.r(t),r.d(t,{Checkbox:function(){return u}});var n=r(2265),a=r(56800),o=r(69324),l=r(5233),i=r(52777),s=r(19594),c=r(66188);let u=n.forwardRef((e,t)=>{let{className:r,color:u,...d}=(0,s.y)(e,l.m,c.E);return n.createElement(o.fC,{"data-accent-color":u,...d,asChild:!1,ref:t,className:a("rt-reset","rt-BaseCheckboxRoot","rt-CheckboxRoot",r)},n.createElement(o.z$,{asChild:!0,className:"rt-BaseCheckboxIndicator rt-CheckboxIndicator"},n.createElement(i.dc,null)))});u.displayName="Checkbox"},23195:function(e,t,r){"use strict";r.r(t),r.d(t,{CheckboxItem:function(){return q},Content:function(){return H},Group:function(){return j},Item:function(){return U},Label:function(){return K},RadioGroup:function(){return X},RadioItem:function(){return Y},Root:function(){return B},Separator:function(){return ee},Sub:function(){return $},SubContent:function(){return Q},SubTrigger:function(){return J},Trigger:function(){return W}});var n=r(2265),a=r(56800),o=r(22988),l=r(78149),i=r(98324),s=r(25171),c=r(6461),u=r(75137),d=r(91715);let m="ContextMenu",[f,p]=(0,i.b)(m,[c.Wf]),v=(0,c.Wf)(),[h,g]=f(m),C=(0,n.forwardRef)((e,t)=>{let{__scopeContextMenu:r,disabled:a=!1,...i}=e,u=g("ContextMenuTrigger",r),d=v(r),m=(0,n.useRef)({x:0,y:0}),f=(0,n.useRef)({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...m.current})}),p=(0,n.useRef)(0),h=(0,n.useCallback)(()=>window.clearTimeout(p.current),[]),C=e=>{m.current={x:e.clientX,y:e.clientY},u.onOpenChange(!0)};return(0,n.useEffect)(()=>h,[h]),(0,n.useEffect)(()=>void(a&&h()),[a,h]),(0,n.createElement)(n.Fragment,null,(0,n.createElement)(c.ee,(0,o.Z)({},d,{virtualRef:f})),(0,n.createElement)(s.WV.span,(0,o.Z)({"data-state":u.open?"open":"closed","data-disabled":a?"":void 0},i,{ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:a?e.onContextMenu:(0,l.M)(e.onContextMenu,e=>{h(),C(e),e.preventDefault()}),onPointerDown:a?e.onPointerDown:(0,l.M)(e.onPointerDown,k(e=>{h(),p.current=window.setTimeout(()=>C(e),700)})),onPointerMove:a?e.onPointerMove:(0,l.M)(e.onPointerMove,k(h)),onPointerCancel:a?e.onPointerCancel:(0,l.M)(e.onPointerCancel,k(h)),onPointerUp:a?e.onPointerUp:(0,l.M)(e.onPointerUp,k(h))})))}),E=(0,n.forwardRef)((e,t)=>{let{__scopeContextMenu:r,...a}=e,l=g("ContextMenuContent",r),i=v(r),s=(0,n.useRef)(!1);return(0,n.createElement)(c.VY,(0,o.Z)({},i,a,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:t=>{var r;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),!t.defaultPrevented&&s.current&&t.preventDefault(),s.current=!1},onInteractOutside:t=>{var r;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||l.modal||(s.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),y=(0,n.forwardRef)((e,t)=>{let{__scopeContextMenu:r,...a}=e,l=v(r);return(0,n.createElement)(c.ZA,(0,o.Z)({},l,a,{ref:t}))}),w=(0,n.forwardRef)((e,t)=>{let{__scopeContextMenu:r,...a}=e,l=v(r);return(0,n.createElement)(c.__,(0,o.Z)({},l,a,{ref:t}))}),b=(0,n.forwardRef)((e,t)=>{let{__scopeContextMenu:r,...a}=e,l=v(r);return(0,n.createElement)(c.ck,(0,o.Z)({},l,a,{ref:t}))}),N=(0,n.forwardRef)((e,t)=>{let{__scopeContextMenu:r,...a}=e,l=v(r);return(0,n.createElement)(c.oC,(0,o.Z)({},l,a,{ref:t}))}),R=(0,n.forwardRef)((e,t)=>{let{__scopeContextMenu:r,...a}=e,l=v(r);return(0,n.createElement)(c.Ee,(0,o.Z)({},l,a,{ref:t}))}),x=(0,n.forwardRef)((e,t)=>{let{__scopeContextMenu:r,...a}=e,l=v(r);return(0,n.createElement)(c.Rk,(0,o.Z)({},l,a,{ref:t}))}),M=(0,n.forwardRef)((e,t)=>{let{__scopeContextMenu:r,...a}=e,l=v(r);return(0,n.createElement)(c.wU,(0,o.Z)({},l,a,{ref:t}))}),T=(0,n.forwardRef)((e,t)=>{let{__scopeContextMenu:r,...a}=e,l=v(r);return(0,n.createElement)(c.Z0,(0,o.Z)({},l,a,{ref:t}))}),_=(0,n.forwardRef)((e,t)=>{let{__scopeContextMenu:r,...a}=e,l=v(r);return(0,n.createElement)(c.fF,(0,o.Z)({},l,a,{ref:t}))}),S=(0,n.forwardRef)((e,t)=>{let{__scopeContextMenu:r,...a}=e,l=v(r);return(0,n.createElement)(c.tu,(0,o.Z)({},l,a,{ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))});function k(e){return t=>"mouse"!==t.pointerType?e(t):void 0}let D=e=>{let{__scopeContextMenu:t,children:r,onOpenChange:a,dir:l,modal:i=!0}=e,[s,d]=(0,n.useState)(!1),m=v(t),f=(0,u.W)(a),p=(0,n.useCallback)(e=>{d(e),f(e)},[f]);return(0,n.createElement)(h,{scope:t,open:s,onOpenChange:p,modal:i},(0,n.createElement)(c.fC,(0,o.Z)({},m,{dir:l,open:s,onOpenChange:p,modal:i}),r))},P=e=>{let{__scopeContextMenu:t,...r}=e,a=v(t);return(0,n.createElement)(c.h_,(0,o.Z)({},a,r))},I=e=>{let{__scopeContextMenu:t,children:r,onOpenChange:a,open:l,defaultOpen:i}=e,s=v(t),[u,m]=(0,d.T)({prop:l,defaultProp:i,onChange:a});return(0,n.createElement)(c.Tr,(0,o.Z)({},s,{open:u,onOpenChange:m}),r)};var L=r(71538),A=r(19829),z=r(93518),O=r(29340),Z=r(52777),V=r(19594),F=r(9766);let B=e=>n.createElement(D,{...e});B.displayName="ContextMenu.Root";let W=n.forwardRef((e,t)=>{let{children:r,...a}=e;return n.createElement(C,{...a,ref:t,asChild:!0},(0,F.O)(r))});W.displayName="ContextMenu.Trigger";let G=n.createContext({}),H=n.forwardRef((e,t)=>{let r=(0,O.useThemeContext)(),{size:o=z.JD.size.default,variant:l=z.JD.variant.default,highContrast:i=z.JD.highContrast.default}=e,{className:s,children:c,color:u,container:d,forceMount:m,...f}=(0,V.y)(e,z.JD),p=u||r.accentColor;return n.createElement(P,{container:d,forceMount:m},n.createElement(O.Theme,{asChild:!0},n.createElement(E,{"data-accent-color":p,alignOffset:-(4*Number(o)),collisionPadding:10,...f,asChild:!1,ref:t,className:a("rt-PopperContent","rt-BaseMenuContent","rt-ContextMenuContent",s)},n.createElement(A.ScrollArea,{type:"auto"},n.createElement("div",{className:a("rt-BaseMenuViewport","rt-ContextMenuViewport")},n.createElement(G.Provider,{value:n.useMemo(()=>({size:o,variant:l,color:p,highContrast:i}),[o,l,p,i])},c))))))});H.displayName="ContextMenu.Content";let K=n.forwardRef((e,t)=>{let{className:r,...o}=e;return n.createElement(w,{...o,asChild:!1,ref:t,className:a("rt-BaseMenuLabel","rt-ContextMenuLabel",r)})});K.displayName="ContextMenu.Label";let U=n.forwardRef((e,t)=>{let{className:r,children:o,color:l=z.nj.color.default,shortcut:i,...s}=e;return n.createElement(b,{"data-accent-color":l,...s,ref:t,className:a("rt-reset","rt-BaseMenuItem","rt-ContextMenuItem",r)},n.createElement(L.A4,null,o),i&&n.createElement("div",{className:"rt-BaseMenuShortcut rt-ContextMenuShortcut"},i))});U.displayName="ContextMenu.Item";let j=n.forwardRef((e,t)=>{let{className:r,...o}=e;return n.createElement(y,{...o,asChild:!1,ref:t,className:a("rt-BaseMenuGroup","rt-ContextMenuGroup",r)})});j.displayName="ContextMenu.Group";let X=n.forwardRef((e,t)=>{let{className:r,...o}=e;return n.createElement(R,{...o,asChild:!1,ref:t,className:a("rt-BaseMenuRadioGroup","rt-ContextMenuRadioGroup",r)})});X.displayName="ContextMenu.RadioGroup";let Y=n.forwardRef((e,t)=>{let{children:r,className:o,color:l=z.QN.color.default,...i}=e;return n.createElement(x,{...i,asChild:!1,ref:t,"data-accent-color":l,className:a("rt-BaseMenuItem","rt-BaseMenuRadioItem","rt-ContextMenuItem","rt-ContextMenuRadioItem",o)},n.createElement(L.A4,null,r),n.createElement(M,{className:"rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator"},n.createElement(Z.dc,{className:"rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon"})))});Y.displayName="ContextMenu.RadioItem";let q=n.forwardRef((e,t)=>{let{children:r,className:o,shortcut:l,color:i=z.km.color.default,...s}=e;return n.createElement(N,{...s,asChild:!1,ref:t,"data-accent-color":i,className:a("rt-BaseMenuItem","rt-BaseMenuCheckboxItem","rt-ContextMenuItem","rt-ContextMenuCheckboxItem",o)},n.createElement(L.A4,null,r),n.createElement(M,{className:"rt-BaseMenuItemIndicator rt-ContextMenuItemIndicator"},n.createElement(Z.dc,{className:"rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon"})),l&&n.createElement("div",{className:"rt-BaseMenuShortcut rt-ContextMenuShortcut"},l))});q.displayName="ContextMenu.CheckboxItem";let $=e=>n.createElement(I,{...e});$.displayName="ContextMenu.Sub";let J=n.forwardRef((e,t)=>{let{className:r,children:o,...l}=e;return n.createElement(_,{...l,asChild:!1,ref:t,className:a("rt-BaseMenuItem","rt-BaseMenuSubTrigger","rt-ContextMenuItem","rt-ContextMenuSubTrigger",r)},o,n.createElement("div",{className:"rt-BaseMenuShortcut rt-ContextMenuShortcut"},n.createElement(Z.OW,{className:"rt-BaseMenuSubTriggerIcon rt-ContextMenuSubTriggerIcon"})))});J.displayName="ContextMenu.SubTrigger";let Q=n.forwardRef((e,t)=>{let{size:r,variant:o,color:l,highContrast:i}=n.useContext(G),{className:s,children:c,container:u,forceMount:d,...m}=(0,V.y)({size:r,variant:o,color:l,highContrast:i,...e},z.JD);return n.createElement(P,{container:u,forceMount:d},n.createElement(O.Theme,{asChild:!0},n.createElement(S,{"data-accent-color":l,alignOffset:-(4*Number(r)),sideOffset:1,collisionPadding:10,...m,asChild:!1,ref:t,className:a("rt-PopperContent","rt-BaseMenuContent","rt-BaseMenuSubContent","rt-ContextMenuContent","rt-ContextMenuSubContent",s)},n.createElement(A.ScrollArea,{type:"auto"},n.createElement("div",{className:a("rt-BaseMenuViewport","rt-ContextMenuViewport")},c)))))});Q.displayName="ContextMenu.SubContent";let ee=n.forwardRef((e,t)=>{let{className:r,...o}=e;return n.createElement(T,{...o,asChild:!1,ref:t,className:a("rt-BaseMenuSeparator","rt-ContextMenuSeparator",r)})});ee.displayName="ContextMenu.Separator"},17584:function(e,t,r){"use strict";r.r(t),r.d(t,{Close:function(){return g},Content:function(){return p},Description:function(){return h},Root:function(){return m},Title:function(){return v},Trigger:function(){return f}});var n=r(2265),a=r(56800),o=r(13304),l=r(6963),i=r(68890),s=r(19078),c=r(29340),u=r(19594),d=r(9766);let m=e=>n.createElement(o.fC,{...e,modal:!0});m.displayName="Dialog.Root";let f=n.forwardRef((e,t)=>{let{children:r,...a}=e;return n.createElement(o.xz,{...a,ref:t,asChild:!0},(0,d.O)(r))});f.displayName="Dialog.Trigger";let p=n.forwardRef((e,t)=>{let{align:r,...i}=e,{align:s,...d}=l.x,{className:m}=(0,u.y)({align:r},{align:s}),{className:f,forceMount:p,container:v,...h}=(0,u.y)(i,d);return n.createElement(o.h_,{container:v,forceMount:p},n.createElement(c.Theme,{asChild:!0},n.createElement(o.aV,{className:"rt-BaseDialogOverlay rt-DialogOverlay"},n.createElement("div",{className:"rt-BaseDialogScroll rt-DialogScroll"},n.createElement("div",{className:"rt-BaseDialogScrollPadding rt-DialogScrollPadding ".concat(m)},n.createElement(o.VY,{...h,ref:t,className:a("rt-BaseDialogContent","rt-DialogContent",f)}))))))});p.displayName="Dialog.Content";let v=n.forwardRef((e,t)=>n.createElement(o.Dx,{asChild:!0},n.createElement(i.X,{size:"5",mb:"3",trim:"start",...e,asChild:!1,ref:t})));v.displayName="Dialog.Title";let h=n.forwardRef((e,t)=>n.createElement(o.dk,{asChild:!0},n.createElement(s.x,{as:"p",size:"3",...e,asChild:!1,ref:t})));h.displayName="Dialog.Description";let g=n.forwardRef((e,t)=>{let{children:r,...a}=e;return n.createElement(o.x8,{...a,ref:t,asChild:!0},(0,d.O)(r))});g.displayName="Dialog.Close"},6963:function(e,t,r){"use strict";r.d(t,{x:function(){return l}});var n=r(38460),a=r(74577),o=r(64791);let l={...n.C,align:{type:"enum",className:"rt-r-align",values:["start","center"],default:"center"},size:{type:"enum",className:"rt-r-size",values:["1","2","3","4"],default:"3",responsive:!0},width:a.n.width,minWidth:a.n.minWidth,maxWidth:{...a.n.maxWidth,default:"600px"},...o.F}},62187:function(e,t,r){"use strict";r.r(t),r.d(t,{CheckboxItem:function(){return q},Content:function(){return H},Group:function(){return j},Item:function(){return U},Label:function(){return K},RadioGroup:function(){return X},RadioItem:function(){return Y},Root:function(){return B},Separator:function(){return ee},Sub:function(){return $},SubContent:function(){return Q},SubTrigger:function(){return J},Trigger:function(){return W},TriggerIcon:function(){return Z.v4}});var n=r(2265),a=r(56800),o=r(22988),l=r(78149),i=r(1584),s=r(98324),c=r(91715),u=r(25171),d=r(6461),m=r(53201);let f="DropdownMenu",[p,v]=(0,s.b)(f,[d.Wf]),h=(0,d.Wf)(),[g,C]=p(f),E=(0,n.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,disabled:a=!1,...s}=e,c=C("DropdownMenuTrigger",r),m=h(r);return(0,n.createElement)(d.ee,(0,o.Z)({asChild:!0},m),(0,n.createElement)(u.WV.button,(0,o.Z)({type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":a?"":void 0,disabled:a},s,{ref:(0,i.F)(t,c.triggerRef),onPointerDown:(0,l.M)(e.onPointerDown,e=>{a||0!==e.button||!1!==e.ctrlKey||(c.onOpenToggle(),c.open||e.preventDefault())}),onKeyDown:(0,l.M)(e.onKeyDown,e=>{!a&&(["Enter"," "].includes(e.key)&&c.onOpenToggle(),"ArrowDown"===e.key&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),y=(0,n.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,i=C("DropdownMenuContent",r),s=h(r),c=(0,n.useRef)(!1);return(0,n.createElement)(d.VY,(0,o.Z)({id:i.contentId,"aria-labelledby":i.triggerId},s,a,{ref:t,onCloseAutoFocus:(0,l.M)(e.onCloseAutoFocus,e=>{var t;c.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),c.current=!1,e.preventDefault()}),onInteractOutside:(0,l.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!i.modal||n)&&(c.current=!0)}),style:{...e.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)"}}))}),w=(0,n.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,l=h(r);return(0,n.createElement)(d.ZA,(0,o.Z)({},l,a,{ref:t}))}),b=(0,n.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,l=h(r);return(0,n.createElement)(d.__,(0,o.Z)({},l,a,{ref:t}))}),N=(0,n.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,l=h(r);return(0,n.createElement)(d.ck,(0,o.Z)({},l,a,{ref:t}))}),R=(0,n.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,l=h(r);return(0,n.createElement)(d.oC,(0,o.Z)({},l,a,{ref:t}))}),x=(0,n.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,l=h(r);return(0,n.createElement)(d.Ee,(0,o.Z)({},l,a,{ref:t}))}),M=(0,n.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,l=h(r);return(0,n.createElement)(d.Rk,(0,o.Z)({},l,a,{ref:t}))}),T=(0,n.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,l=h(r);return(0,n.createElement)(d.wU,(0,o.Z)({},l,a,{ref:t}))}),_=(0,n.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,l=h(r);return(0,n.createElement)(d.Z0,(0,o.Z)({},l,a,{ref:t}))}),S=(0,n.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,l=h(r);return(0,n.createElement)(d.fF,(0,o.Z)({},l,a,{ref:t}))}),k=(0,n.forwardRef)((e,t)=>{let{__scopeDropdownMenu:r,...a}=e,l=h(r);return(0,n.createElement)(d.tu,(0,o.Z)({},l,a,{ref:t,style:{...e.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)"}}))}),D=e=>{let{__scopeDropdownMenu:t,children:r,dir:a,open:l,defaultOpen:i,onOpenChange:s,modal:u=!0}=e,f=h(t),p=(0,n.useRef)(null),[v=!1,C]=(0,c.T)({prop:l,defaultProp:i,onChange:s});return(0,n.createElement)(g,{scope:t,triggerId:(0,m.M)(),triggerRef:p,contentId:(0,m.M)(),open:v,onOpenChange:C,onOpenToggle:(0,n.useCallback)(()=>C(e=>!e),[C]),modal:u},(0,n.createElement)(d.fC,(0,o.Z)({},f,{open:v,onOpenChange:C,dir:a,modal:u}),r))},P=e=>{let{__scopeDropdownMenu:t,...r}=e,a=h(t);return(0,n.createElement)(d.h_,(0,o.Z)({},a,r))},I=e=>{let{__scopeDropdownMenu:t,children:r,open:a,onOpenChange:l,defaultOpen:i}=e,s=h(t),[u=!1,m]=(0,c.T)({prop:a,defaultProp:i,onChange:l});return(0,n.createElement)(d.Tr,(0,o.Z)({},s,{open:u,onOpenChange:m}),r)};var L=r(71538),A=r(19829),z=r(93518),O=r(29340),Z=r(52777),V=r(19594),F=r(9766);let B=e=>n.createElement(D,{...e});B.displayName="DropdownMenu.Root";let W=n.forwardRef((e,t)=>{let{children:r,...a}=e;return n.createElement(E,{...a,ref:t,asChild:!0},(0,F.O)(r))});W.displayName="DropdownMenu.Trigger";let G=n.createContext({}),H=n.forwardRef((e,t)=>{let r=(0,O.useThemeContext)(),{size:o=z.JD.size.default,variant:l=z.JD.variant.default,highContrast:i=z.JD.highContrast.default}=e,{className:s,children:c,color:u,container:d,forceMount:m,...f}=(0,V.y)(e,z.JD),p=u||r.accentColor;return n.createElement(P,{container:d,forceMount:m},n.createElement(O.Theme,{asChild:!0},n.createElement(y,{"data-accent-color":p,align:"start",sideOffset:4,collisionPadding:10,...f,asChild:!1,ref:t,className:a("rt-PopperContent","rt-BaseMenuContent","rt-DropdownMenuContent",s)},n.createElement(A.ScrollArea,{type:"auto"},n.createElement("div",{className:a("rt-BaseMenuViewport","rt-DropdownMenuViewport")},n.createElement(G.Provider,{value:n.useMemo(()=>({size:o,variant:l,color:p,highContrast:i}),[o,l,p,i])},c))))))});H.displayName="DropdownMenu.Content";let K=n.forwardRef((e,t)=>{let{className:r,...o}=e;return n.createElement(b,{...o,asChild:!1,ref:t,className:a("rt-BaseMenuLabel","rt-DropdownMenuLabel",r)})});K.displayName="DropdownMenu.Label";let U=n.forwardRef((e,t)=>{let{className:r,children:o,color:l=z.nj.color.default,shortcut:i,...s}=e;return n.createElement(N,{"data-accent-color":l,...s,ref:t,className:a("rt-reset","rt-BaseMenuItem","rt-DropdownMenuItem",r)},n.createElement(L.A4,null,o),i&&n.createElement("div",{className:"rt-BaseMenuShortcut rt-DropdownMenuShortcut"},i))});U.displayName="DropdownMenu.Item";let j=n.forwardRef((e,t)=>{let{className:r,...o}=e;return n.createElement(w,{...o,asChild:!1,ref:t,className:a("rt-BaseMenuGroup","rt-DropdownMenuGroup",r)})});j.displayName="DropdownMenu.Group";let X=n.forwardRef((e,t)=>{let{className:r,...o}=e;return n.createElement(x,{...o,asChild:!1,ref:t,className:a("rt-BaseMenuRadioGroup","rt-DropdownMenuRadioGroup",r)})});X.displayName="DropdownMenu.RadioGroup";let Y=n.forwardRef((e,t)=>{let{children:r,className:o,color:l=z.QN.color.default,...i}=e;return n.createElement(M,{...i,asChild:!1,ref:t,"data-accent-color":l,className:a("rt-BaseMenuItem","rt-BaseMenuRadioItem","rt-DropdownMenuItem","rt-DropdownMenuRadioItem",o)},r,n.createElement(T,{className:"rt-BaseMenuItemIndicator rt-DropdownMenuItemIndicator"},n.createElement(Z.dc,{className:"rt-BaseMenuItemIndicatorIcon rt-DropdownMenuItemIndicatorIcon"})))});Y.displayName="DropdownMenu.RadioItem";let q=n.forwardRef((e,t)=>{let{children:r,className:o,shortcut:l,color:i=z.km.color.default,...s}=e;return n.createElement(R,{...s,asChild:!1,ref:t,"data-accent-color":i,className:a("rt-BaseMenuItem","rt-BaseMenuCheckboxItem","rt-DropdownMenuItem","rt-DropdownMenuCheckboxItem",o)},r,n.createElement(T,{className:"rt-BaseMenuItemIndicator rt-DropdownMenuItemIndicator"},n.createElement(Z.dc,{className:"rt-BaseMenuItemIndicatorIcon rt-ContextMenuItemIndicatorIcon"})),l&&n.createElement("div",{className:"rt-BaseMenuShortcut rt-DropdownMenuShortcut"},l))});q.displayName="DropdownMenu.CheckboxItem";let $=e=>n.createElement(I,{...e});$.displayName="DropdownMenu.Sub";let J=n.forwardRef((e,t)=>{let{className:r,children:o,...l}=e;return n.createElement(S,{...l,asChild:!1,ref:t,className:a("rt-BaseMenuItem","rt-BaseMenuSubTrigger","rt-DropdownMenuItem","rt-DropdownMenuSubTrigger",r)},o,n.createElement("div",{className:"rt-BaseMenuShortcut rt-DropdownMenuShortcut"},n.createElement(Z.OW,{className:"rt-BaseMenuSubTriggerIcon rt-DropdownMenuSubtriggerIcon"})))});J.displayName="DropdownMenu.SubTrigger";let Q=n.forwardRef((e,t)=>{let{size:r,variant:o,color:l,highContrast:i}=n.useContext(G),{className:s,children:c,container:u,forceMount:d,...m}=(0,V.y)({size:r,variant:o,color:l,highContrast:i,...e},z.JD);return n.createElement(P,{container:u,forceMount:d},n.createElement(O.Theme,{asChild:!0},n.createElement(k,{"data-accent-color":l,alignOffset:-(4*Number(r)),sideOffset:1,collisionPadding:10,...m,asChild:!1,ref:t,className:a("rt-PopperContent","rt-BaseMenuContent","rt-BaseMenuSubContent","rt-DropdownMenuContent","rt-DropdownMenuSubContent",s)},n.createElement(A.ScrollArea,{type:"auto"},n.createElement("div",{className:a("rt-BaseMenuViewport","rt-DropdownMenuViewport")},c)))))});Q.displayName="DropdownMenu.SubContent";let ee=n.forwardRef((e,t)=>{let{className:r,...o}=e;return n.createElement(_,{...o,asChild:!1,ref:t,className:a("rt-BaseMenuSeparator","rt-DropdownMenuSeparator",r)})});ee.displayName="DropdownMenu.Separator"},20611:function(e,t,r){"use strict";r.d(t,{l:function(){return o}});var n=r(38460),a=r(75232);let o={as:{type:"enum",values:["div","span"],default:"div"},...n.C,display:{type:"enum",className:"rt-r-display",values:["none","inline-flex","flex"],responsive:!0},direction:{type:"enum",className:"rt-r-fd",values:["row","column","row-reverse","column-reverse"],responsive:!0},align:{type:"enum",className:"rt-r-ai",values:["start","center","end","baseline","stretch"],responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:["start","center","end","between"],parseValue:function(e){return"between"===e?"space-between":e},responsive:!0},wrap:{type:"enum",className:"rt-r-fw",values:["nowrap","wrap","wrap-reverse"],responsive:!0},...a.c}},61395:function(e,t,r){"use strict";r.d(t,{r:function(){return u}});var n=r(2265),a=r(56800),o=r(71538),l=r(26624),i=r(19594),s=r(85706),c=r(66188);let u=n.forwardRef((e,t)=>{let{className:r,asChild:u,as:d="div",...m}=(0,i.y)(e,l.L,s.P,c.E);return n.createElement(u?o.g7:d,{...m,ref:t,className:a("rt-Grid",r)})});u.displayName="Grid"},26624:function(e,t,r){"use strict";r.d(t,{L:function(){return o}});var n=r(38460),a=r(75232);let o={as:{type:"enum",values:["div","span"],default:"div"},...n.C,display:{type:"enum",className:"rt-r-display",values:["none","inline-grid","grid"],responsive:!0},columns:{type:"enum | string",className:"rt-r-gtc",customProperties:["--grid-template-columns"],values:["1","2","3","4","5","6","7","8","9"],parseValue:l,responsive:!0},rows:{type:"enum | string",className:"rt-r-gtr",customProperties:["--grid-template-rows"],values:["1","2","3","4","5","6","7","8","9"],parseValue:l,responsive:!0},flow:{type:"enum",className:"rt-r-gaf",values:["row","column","dense","row-dense","column-dense"],responsive:!0},align:{type:"enum",className:"rt-r-ai",values:["start","center","end","baseline","stretch"],responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:["start","center","end","between"],parseValue:function(e){return"between"===e?"space-between":e},responsive:!0},...a.c};function l(e){return o.columns.values.includes(e)?e:e?.match(/^\d+$/)?`repeat(${e}, minmax(0, 1fr))`:e}},68890:function(e,t,r){"use strict";r.d(t,{X:function(){return g}});var n=r(2265),a=r(56800),o=r(71538),l=r(38460),i=r(17534),s=r(75073),c=r(76148),u=r(16532),d=r(91279),m=r(58489),f=r(53773);let p={as:{type:"enum",values:["h1","h2","h3","h4","h5","h6"],default:"h1"},...l.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],default:"6",responsive:!0},...f.x,...u.O,...c.E,...m.w,...d.u,...i.EG,...s.K};var v=r(19594),h=r(66188);let g=n.forwardRef((e,t)=>{let{children:r,className:l,asChild:i,as:s="h1",color:c,...u}=(0,v.y)(e,p,h.E);return n.createElement(o.g7,{"data-accent-color":c,...u,ref:t,className:a("rt-Heading",l)},i?r:n.createElement(s,null,r))});g.displayName="Heading"},16808:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{Content:function(){return B},Root:function(){return V},Trigger:function(){return F}});var a=r(2265),o=r(56800),l=r(22988),i=r(78149),s=r(98324),c=r(91715),u=r(1584),d=r(25510),m=r(56935),f=r(31383),p=r(25171),v=r(53938);let h="HoverCard",[g,C]=(0,s.b)(h,[d.D7]),E=(0,d.D7)(),[y,w]=g(h),b=(0,a.forwardRef)((e,t)=>{let{__scopeHoverCard:r,...n}=e,o=w("HoverCardTrigger",r),s=E(r);return(0,a.createElement)(d.ee,(0,l.Z)({asChild:!0},s),(0,a.createElement)(p.WV.a,(0,l.Z)({"data-state":o.open?"open":"closed"},n,{ref:t,onPointerEnter:(0,i.M)(e.onPointerEnter,S(o.onOpen)),onPointerLeave:(0,i.M)(e.onPointerLeave,S(o.onClose)),onFocus:(0,i.M)(e.onFocus,o.onOpen),onBlur:(0,i.M)(e.onBlur,o.onClose),onTouchStart:(0,i.M)(e.onTouchStart,e=>e.preventDefault())})))}),N="HoverCardPortal",[R,x]=g(N,{forceMount:void 0}),M="HoverCardContent",T=(0,a.forwardRef)((e,t)=>{let r=x(M,e.__scopeHoverCard),{forceMount:n=r.forceMount,...o}=e,s=w(M,e.__scopeHoverCard);return(0,a.createElement)(f.z,{present:n||s.open},(0,a.createElement)(_,(0,l.Z)({"data-state":s.open?"open":"closed"},o,{onPointerEnter:(0,i.M)(e.onPointerEnter,S(s.onOpen)),onPointerLeave:(0,i.M)(e.onPointerLeave,S(s.onClose)),ref:t})))}),_=(0,a.forwardRef)((e,t)=>{let{__scopeHoverCard:r,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:m,...f}=e,p=w(M,r),h=E(r),g=(0,a.useRef)(null),C=(0,u.e)(t,g),[y,b]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(y){let e=document.body;return n=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=n,e.style.webkitUserSelect=n}}},[y]),(0,a.useEffect)(()=>{if(g.current){let e=()=>{b(!1),p.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(p.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),p.hasSelectionRef.current=!1,p.isPointerDownOnContentRef.current=!1}}},[p.isPointerDownOnContentRef,p.hasSelectionRef]),(0,a.useEffect)(()=>{g.current&&(function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)t.push(r.currentNode);return t})(g.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,a.createElement)(v.XB,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:m,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:(0,i.M)(c,e=>{e.preventDefault()}),onDismiss:p.onDismiss},(0,a.createElement)(d.VY,(0,l.Z)({},h,f,{onPointerDown:(0,i.M)(f.onPointerDown,e=>{e.currentTarget.contains(e.target)&&b(!0),p.hasSelectionRef.current=!1,p.isPointerDownOnContentRef.current=!0}),ref:C,style:{...f.style,userSelect:y?"text":void 0,WebkitUserSelect:y?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))});function S(e){return t=>"touch"===t.pointerType?void 0:e()}let k=e=>{let{__scopeHoverCard:t,children:r,open:n,defaultOpen:o,onOpenChange:l,openDelay:i=700,closeDelay:s=300}=e,u=E(t),m=(0,a.useRef)(0),f=(0,a.useRef)(0),p=(0,a.useRef)(!1),v=(0,a.useRef)(!1),[h=!1,g]=(0,c.T)({prop:n,defaultProp:o,onChange:l}),C=(0,a.useCallback)(()=>{clearTimeout(f.current),m.current=window.setTimeout(()=>g(!0),i)},[i,g]),w=(0,a.useCallback)(()=>{clearTimeout(m.current),p.current||v.current||(f.current=window.setTimeout(()=>g(!1),s))},[s,g]),b=(0,a.useCallback)(()=>g(!1),[g]);return(0,a.useEffect)(()=>()=>{clearTimeout(m.current),clearTimeout(f.current)},[]),(0,a.createElement)(y,{scope:t,open:h,onOpenChange:g,onOpen:C,onClose:w,onDismiss:b,hasSelectionRef:p,isPointerDownOnContentRef:v},(0,a.createElement)(d.fC,u,r))},D=e=>{let{__scopeHoverCard:t,forceMount:r,children:n,container:o}=e,l=w(N,t);return(0,a.createElement)(R,{scope:t,forceMount:r},(0,a.createElement)(f.z,{present:r||l.open},(0,a.createElement)(m.h,{asChild:!0,container:o},n)))};var P=r(38460),I=r(64791),L=r(74577);let A={...P.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},width:L.n.width,minWidth:L.n.minWidth,maxWidth:{...L.n.maxWidth,default:"480px"},...I.F};var z=r(19594),O=r(9766),Z=r(29340);let V=e=>a.createElement(k,{closeDelay:150,openDelay:200,...e});V.displayName="HoverCard.Root";let F=a.forwardRef((e,t)=>{let{children:r,className:n,...l}=e;return a.createElement(b,{ref:t,className:o("rt-HoverCardTrigger",n),...l,asChild:!0},(0,O.O)(r))});F.displayName="HoverCard.Trigger";let B=a.forwardRef((e,t)=>{let{className:r,forceMount:n,container:l,...i}=(0,z.y)(e,A);return a.createElement(D,{container:l,forceMount:n},a.createElement(Z.Theme,{asChild:!0},a.createElement(T,{align:"start",sideOffset:8,collisionPadding:10,...i,ref:t,className:o("rt-PopperContent","rt-HoverCardContent",r)})))});B.displayName="HoverCard.Content"},52777:function(e,t,r){"use strict";r.d(t,{OW:function(){return l},dc:function(){return a},v4:function(){return o}});var n=r(2265);let a=n.forwardRef((e,t)=>n.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z"})));a.displayName="ThickCheckIcon";let o=n.forwardRef((e,t)=>n.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},n.createElement("path",{d:"M0.135232 3.15803C0.324102 2.95657 0.640521 2.94637 0.841971 3.13523L4.5 6.56464L8.158 3.13523C8.3595 2.94637 8.6759 2.95657 8.8648 3.15803C9.0536 3.35949 9.0434 3.67591 8.842 3.86477L4.84197 7.6148C4.64964 7.7951 4.35036 7.7951 4.15803 7.6148L0.158031 3.86477C-0.0434285 3.67591 -0.0536285 3.35949 0.135232 3.15803Z"})));o.displayName="ChevronDownIcon";let l=n.forwardRef((e,t)=>n.createElement("svg",{width:"9",height:"9",viewBox:"0 0 9 9",fill:"currentcolor",xmlns:"http://www.w3.org/2000/svg",...e,ref:t},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z"})));l.displayName="ThickChevronRightIcon"},84285:function(e,t,r){"use strict";r.r(t),r.d(t,{Close:function(){return h},Content:function(){return v},Root:function(){return f},Trigger:function(){return p}});var n=r(2265),a=r(56800),o=r(61485),l=r(19594),i=r(9766),s=r(38460),c=r(64791),u=r(74577);let d={...s.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4"],default:"2",responsive:!0},width:u.n.width,minWidth:u.n.minWidth,maxWidth:{...u.n.maxWidth,default:"480px"},...c.F};var m=r(29340);let f=e=>n.createElement(o.fC,{...e});f.displayName="Popover.Root";let p=n.forwardRef((e,t)=>{let{children:r,...a}=e;return n.createElement(o.xz,{...a,ref:t,asChild:!0},(0,i.O)(r))});p.displayName="Popover.Trigger";let v=n.forwardRef((e,t)=>{let{className:r,forceMount:i,container:s,...c}=(0,l.y)(e,d);return n.createElement(o.h_,{container:s,forceMount:i},n.createElement(m.Theme,{asChild:!0},n.createElement(o.VY,{align:"start",sideOffset:8,collisionPadding:10,...c,ref:t,className:a("rt-PopperContent","rt-PopoverContent",r)})))});v.displayName="Popover.Content";let h=n.forwardRef((e,t)=>{let{children:r,...a}=e;return n.createElement(o.x8,{...a,ref:t,asChild:!0},(0,i.O)(r))});h.displayName="Popover.Close"},37654:function(e,t,r){"use strict";r.r(t),r.d(t,{Progress:function(){return f}});var n=r(2265),a=r(56800),o=r(52431),l=r(17534),i=r(75073),s=r(66176);let c={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...l.EG,...i.K,...s.I,duration:{type:"string"}};var u=r(19594),d=r(36291),m=r(66188);let f=n.forwardRef((e,t)=>{let{className:r,style:l,color:i,radius:s,duration:f,...p}=(0,u.y)(e,c,m.E);return n.createElement(o.fC,{"data-accent-color":i,"data-radius":s,ref:t,className:a("rt-ProgressRoot",r),style:(0,d.y)({"--progress-duration":"value"in p?void 0:f,"--progress-value":"value"in p?p.value:void 0,"--progress-max":"max"in p?p.max:void 0},l),...p,asChild:!1},n.createElement(o.z$,{className:"rt-ProgressIndicator"}))});f.displayName="Progress"},11416:function(e,t,r){"use strict";r.r(t),r.d(t,{Item:function(){return v},Root:function(){return p}});var n=r(2265),a=r(56800),o=r(99497),l=r(38460),i=r(17534),s=r(75073),c=r(26624);let u={...l.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["surface","classic"],default:"surface"},...i.EG,...s.K,columns:{...c.L.columns,default:"repeat(auto-fit, minmax(160px, 1fr))"},gap:{...c.L.gap,default:"4"}};var d=r(61395),m=r(19594),f=r(66188);let p=n.forwardRef((e,t)=>{let{className:r,color:l,...i}=(0,m.y)(e,u,f.E);return n.createElement(d.r,{asChild:!0},n.createElement(o.fC,{"data-accent-color":l,...i,ref:t,className:a("rt-RadioCardsRoot",r)}))});p.displayName="RadioCards.Root";let v=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.ck,{...l,asChild:!1,ref:t,className:a("rt-reset","rt-BaseCard","rt-RadioCardsItem",r)})});v.displayName="RadioCards.Item"},76484:function(e,t,r){"use strict";r.r(t),r.d(t,{Item:function(){return y},Root:function(){return E}});var n=r(2265),a=r(56800),o=r(98324),l=r(99497),i=r(38460),s=r(17534),c=r(75073);let u={...i.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...s.EG,...c.K};var d=r(19078),m=r(19594),f=r(66188);let p="RadioGroup",[v]=(0,o.b)(p,[l.oo]),h=(0,l.oo)(),[g,C]=v(p),E=n.forwardRef((e,t)=>{let{color:r=u.color.default,highContrast:o=u.highContrast.default,size:i=u.size.default,variant:s=u.variant.default,...c}=e,{__scopeRadioGroup:d,className:p,...v}=(0,m.y)(c,f.E),C=h(d);return n.createElement(g,{scope:d,color:r,highContrast:o,size:i,variant:s},n.createElement(l.fC,{...C,...v,ref:t,className:a("rt-RadioGroupRoot",p)}))});E.displayName="RadioGroup.Root";let y=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,children:o,className:l,style:i,...s}=e,{size:c}=C("RadioGroupItem",r);return o?n.createElement(d.x,{as:"label",size:c,className:a("rt-RadioGroupItem",l),style:i},n.createElement(w,{__scopeRadioGroup:r,...s,ref:t}),o&&n.createElement("span",{className:"rt-RadioGroupItemInner"},o)):n.createElement(w,{__scopeRadioGroup:r,...s,ref:t,className:l,style:i})});y.displayName="RadioGroup.Item";let w=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...o}=e,i=C("RadioGroupItemRadio",r),s=h(r),{color:c,className:d}=(0,m.y)({...o,...i},u,f.E);return n.createElement(l.ck,{...s,"data-accent-color":c,...o,asChild:!1,ref:t,className:a("rt-reset","rt-BaseRadioRoot",d)})});w.displayName="RadioGroup.ItemRadio"},62381:function(e,t,r){"use strict";r.r(t),r.d(t,{Radio:function(){return m}});var n=r(2265),a=r(56800),o=r(78149),l=r(1584),i=r(17534),s=r(75073);let c={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...i.EG,...s.K};var u=r(66188),d=r(19594);let m=n.forwardRef((e,t)=>{let r=n.useRef(null),{className:i,color:s,onChange:m,onValueChange:f,...p}=(0,d.y)(e,c,u.E);return n.createElement("input",{type:"radio","data-accent-color":s,...p,onChange:(0,o.M)(m,e=>null==f?void 0:f(e.currentTarget.value)),ref:(0,l.F)(r,t),className:a("rt-reset","rt-BaseRadioRoot","rt-RadioRoot",i)})});m.displayName="Radio"},19829:function(e,t,r){"use strict";r.r(t),r.d(t,{ScrollArea:function(){return f}});var n=r(2265),a=r(56800),o=r(80023),l=r(38460),i=r(66176);let s={...l.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"1",responsive:!0},...i.I,scrollbars:{type:"enum",values:["vertical","horizontal","both"],default:"both"}};var c=r(28978),u=r(36291);let d=r(66188).E.m.values;var m=r(81271);let f=n.forwardRef((e,t)=>{let{rest:r,...l}=function(e){let{m:t,mx:r,my:n,mt:a,mr:o,mb:l,ml:i,...s}=e;return{m:t,mx:r,my:n,mt:a,mr:o,mb:l,ml:i,rest:s}}(e),[i,f]=function(e){let[t,r]=(0,c.uq)({className:"rt-r-m",customProperties:["--margin"],propValues:d,value:e.m}),[n,o]=(0,c.uq)({className:"rt-r-mx",customProperties:["--margin-left","--margin-right"],propValues:d,value:e.mx}),[l,i]=(0,c.uq)({className:"rt-r-my",customProperties:["--margin-top","--margin-bottom"],propValues:d,value:e.my}),[s,m]=(0,c.uq)({className:"rt-r-mt",customProperties:["--margin-top"],propValues:d,value:e.mt}),[f,p]=(0,c.uq)({className:"rt-r-mr",customProperties:["--margin-right"],propValues:d,value:e.mr}),[v,h]=(0,c.uq)({className:"rt-r-mb",customProperties:["--margin-bottom"],propValues:d,value:e.mb}),[g,C]=(0,c.uq)({className:"rt-r-ml",customProperties:["--margin-left"],propValues:d,value:e.ml});return[a(t,n,l,s,f,v,g),(0,u.y)(r,o,i,m,p,h,C)]}(l),{asChild:p,children:v,className:h,style:g,type:C,scrollHideDelay:E="scroll"!==C?0:void 0,dir:y,size:w=s.size.default,radius:b=s.radius.default,scrollbars:N=s.scrollbars.default,...R}=r;return n.createElement(o.fC,{type:C,scrollHideDelay:E,className:a("rt-ScrollAreaRoot",i,h),style:(0,u.y)(f,g),asChild:p},(0,m.x)({asChild:p,children:v},e=>n.createElement(n.Fragment,null,n.createElement(o.l_,{...R,ref:t,className:"rt-ScrollAreaViewport"},e),n.createElement("div",{className:"rt-ScrollAreaViewportFocusRing"}),"vertical"!==N?n.createElement(o.LW,{"data-radius":b,orientation:"horizontal",className:a("rt-ScrollAreaScrollbar",(0,c.RE)({className:"rt-r-size",value:w,propValues:s.size.values}))},n.createElement(o.bU,{className:"rt-ScrollAreaThumb"})):null,"horizontal"!==N?n.createElement(o.LW,{"data-radius":b,orientation:"vertical",className:a("rt-ScrollAreaScrollbar",(0,c.RE)({className:"rt-r-size",value:w,propValues:s.size.values}))},n.createElement(o.bU,{className:"rt-ScrollAreaThumb"})):null,"both"===N?n.createElement(o.Ns,{className:"rt-ScrollAreaCorner"}):null)))});f.displayName="ScrollArea"},90393:function(e,t,r){"use strict";r.r(t),r.d(t,{Item:function(){return P},Root:function(){return D}});var n=r(2265),a=r(56800),o=r(22988),l=r(98324),i=r(25171),s=r(53398),c=r(78149),u=r(91715);let d=(0,n.forwardRef)((e,t)=>{let{pressed:r,defaultPressed:a=!1,onPressedChange:l,...s}=e,[d=!1,m]=(0,u.T)({prop:r,onChange:l,defaultProp:a});return(0,n.createElement)(i.WV.button,(0,o.Z)({type:"button","aria-pressed":d,"data-state":d?"on":"off","data-disabled":e.disabled?"":void 0},s,{ref:t,onClick:(0,c.M)(e.onClick,()=>{e.disabled||m(!d)})}))});var m=r(87513);let f="ToggleGroup",[p,v]=(0,l.b)(f,[s.Pc]),h=(0,s.Pc)(),g=n.forwardRef((e,t)=>{let{type:r,...a}=e;if("single"===r)return n.createElement(y,(0,o.Z)({},a,{ref:t}));if("multiple"===r)return n.createElement(w,(0,o.Z)({},a,{ref:t}));throw Error(`Missing prop \`type\` expected on \`${f}\``)}),[C,E]=p(f),y=n.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:l=()=>{},...i}=e,[s,c]=(0,u.T)({prop:r,defaultProp:a,onChange:l});return n.createElement(C,{scope:e.__scopeToggleGroup,type:"single",value:s?[s]:[],onItemActivate:c,onItemDeactivate:n.useCallback(()=>c(""),[c])},n.createElement(R,(0,o.Z)({},i,{ref:t})))}),w=n.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:l=()=>{},...i}=e,[s=[],c]=(0,u.T)({prop:r,defaultProp:a,onChange:l}),d=n.useCallback(e=>c((t=[])=>[...t,e]),[c]),m=n.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return n.createElement(C,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:d,onItemDeactivate:m},n.createElement(R,(0,o.Z)({},i,{ref:t})))}),[b,N]=p(f),R=n.forwardRef((e,t)=>{let{__scopeToggleGroup:r,disabled:a=!1,rovingFocus:l=!0,orientation:c,dir:u,loop:d=!0,...f}=e,p=h(r),v=(0,m.gm)(u),g={role:"group",dir:v,...f};return n.createElement(b,{scope:r,rovingFocus:l,disabled:a},l?n.createElement(s.fC,(0,o.Z)({asChild:!0},p,{orientation:c,dir:v,loop:d}),n.createElement(i.WV.div,(0,o.Z)({},g,{ref:t}))):n.createElement(i.WV.div,(0,o.Z)({},g,{ref:t})))}),x="ToggleGroupItem",M=n.forwardRef((e,t)=>{let r=E(x,e.__scopeToggleGroup),a=N(x,e.__scopeToggleGroup),l=h(e.__scopeToggleGroup),i=r.value.includes(e.value),c=a.disabled||e.disabled,u={...e,pressed:i,disabled:c},d=n.useRef(null);return a.rovingFocus?n.createElement(s.ck,(0,o.Z)({asChild:!0},l,{focusable:!c,active:i,ref:d}),n.createElement(T,(0,o.Z)({},u,{ref:t}))):n.createElement(T,(0,o.Z)({},u,{ref:t}))}),T=n.forwardRef((e,t)=>{let{__scopeToggleGroup:r,value:a,...l}=e,i=E(x,r),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},c="single"===i.type?s:void 0;return n.createElement(d,(0,o.Z)({},c,l,{ref:t,onPressedChange:e=>{e?i.onItemActivate(a):i.onItemDeactivate(a)}}))}),_={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["surface","classic"],default:"surface"},...r(66176).I};var S=r(19594),k=r(66188);let D=n.forwardRef((e,t)=>{let{className:r,children:o,radius:l,value:i,defaultValue:s,onValueChange:c,...d}=(0,S.y)(e,_,k.E),[m,f]=(0,u.T)({prop:i,onChange:c,defaultProp:s});return n.createElement(g,{"data-radius":l,ref:t,className:a("rt-SegmentedControlRoot",r),onValueChange:e=>{e&&f(e)},...d,type:"single",value:m,asChild:!1,disabled:!1},o,n.createElement("div",{className:"rt-SegmentedControlIndicator"}))});D.displayName="SegmentedControl.Root";let P=n.forwardRef((e,t)=>{let{children:r,className:o,...l}=e;return n.createElement(M,{ref:t,className:a("rt-reset","rt-SegmentedControlItem",o),...l,disabled:!1,asChild:!1},n.createElement("span",{className:"rt-SegmentedControlItemSeparator"}),n.createElement("span",{className:"rt-SegmentedControlItemLabel"},n.createElement("span",{className:"rt-SegmentedControlItemLabelActive"},r),n.createElement("span",{className:"rt-SegmentedControlItemLabelInactive"},r)))});P.displayName="SegmentedControl.Item"},37967:function(e,t,r){"use strict";r.r(t),r.d(t,{Content:function(){return y},Group:function(){return b},Item:function(){return w},Label:function(){return N},Root:function(){return C},Separator:function(){return R},Trigger:function(){return E}});var n=r(2265),a=r(56800),o=r(17549),l=r(80023),i=r(19594),s=r(66188),c=r(52777),u=r(17534),d=r(75073),m=r(66176);let f={type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},p={variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft","ghost"],default:"surface"},...u.EG,...m.I,placeholder:{type:"string"}},v={variant:{type:"enum",className:"rt-variant",values:["solid","soft"],default:"solid"},...u.EG,...d.K};var h=r(29340);let g=n.createContext({}),C=e=>{let{children:t,size:r=f.default,...a}=e;return n.createElement(o.fC,{...a},n.createElement(g.Provider,{value:n.useMemo(()=>({size:r}),[r])},t))};C.displayName="Select.Root";let E=n.forwardRef((e,t)=>{let r=n.useContext(g),{children:l,className:u,color:d,radius:m,placeholder:v,...h}=(0,i.y)({size:null==r?void 0:r.size,...e},{size:f},p,s.E);return n.createElement(o.xz,{asChild:!0},n.createElement("button",{"data-accent-color":d,"data-radius":m,...h,ref:t,className:a("rt-reset","rt-SelectTrigger",u)},n.createElement("span",{className:"rt-SelectTriggerInner"},n.createElement(o.B4,{placeholder:v},l)),n.createElement(o.JO,{asChild:!0},n.createElement(c.v4,{className:"rt-SelectIcon"}))))});E.displayName="Select.Trigger";let y=n.forwardRef((e,t)=>{let r=n.useContext(g),{className:s,children:c,color:u,container:d,...m}=(0,i.y)({size:null==r?void 0:r.size,...e},{size:f},v),p=(0,h.useThemeContext)(),C=u||p.accentColor;return n.createElement(o.h_,{container:d},n.createElement(h.Theme,{asChild:!0},n.createElement(o.VY,{"data-accent-color":C,sideOffset:4,...m,asChild:!1,ref:t,className:a({"rt-PopperContent":"popper"===m.position},"rt-SelectContent",s)},n.createElement(l.fC,{type:"auto",className:"rt-ScrollAreaRoot"},n.createElement(o.l_,{asChild:!0,className:"rt-SelectViewport"},n.createElement(l.l_,{className:"rt-ScrollAreaViewport",style:{overflowY:void 0}},c)),n.createElement(l.LW,{className:"rt-ScrollAreaScrollbar rt-r-size-1",orientation:"vertical"},n.createElement(l.bU,{className:"rt-ScrollAreaThumb"}))))))});y.displayName="Select.Content";let w=n.forwardRef((e,t)=>{let{className:r,children:l,...i}=e;return n.createElement(o.ck,{...i,asChild:!1,ref:t,className:a("rt-SelectItem",r)},n.createElement(o.wU,{className:"rt-SelectItemIndicator"},n.createElement(c.dc,{className:"rt-SelectItemIndicatorIcon"})),n.createElement(o.eT,null,l))});w.displayName="Select.Item";let b=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.ZA,{...l,asChild:!1,ref:t,className:a("rt-SelectGroup",r)})});b.displayName="Select.Group";let N=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.__,{...l,asChild:!1,ref:t,className:a("rt-SelectLabel",r)})});N.displayName="Select.Label";let R=n.forwardRef((e,t)=>{let{className:r,...l}=e;return n.createElement(o.Z0,{...l,asChild:!1,ref:t,className:a("rt-SelectSeparator",r)})});R.displayName="Select.Separator"},63817:function(e,t,r){"use strict";r.r(t),r.d(t,{Separator:function(){return s}});var n=r(2265),a=r(56800);let o={orientation:{type:"enum",className:"rt-r-orientation",values:["horizontal","vertical"],default:"horizontal",responsive:!0},size:{type:"enum",className:"rt-r-size",values:["1","2","3","4"],default:"1",responsive:!0},color:{...r(17534).EG.color,default:"gray"},decorative:{type:"boolean",default:!0}};var l=r(19594),i=r(66188);let s=n.forwardRef((e,t)=>{let{className:r,color:s,decorative:c,...u}=(0,l.y)(e,o,i.E);return n.createElement("span",{"data-accent-color":s,role:c?void 0:"separator",...u,ref:t,className:a("rt-Separator",r)})});s.displayName="Separator"},32039:function(e,t,r){"use strict";r.r(t),r.d(t,{Slider:function(){return X}});var n=r(2265),a=r(56800),o=r(22988),l=r(62361),i=r(78149),s=r(1584),c=r(98324),u=r(91715),d=r(87513),m=r(47250),f=r(75238),p=r(25171),v=r(90976);let h=["PageUp","PageDown"],g=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},E="Slider",[y,w,b]=(0,v.B)(E),[N,R]=(0,c.b)(E,[b]),[x,M]=N(E),T=(0,n.forwardRef)((e,t)=>{let{name:r,min:a=0,max:c=100,step:d=1,orientation:m="horizontal",disabled:f=!1,minStepsBetweenThumbs:p=0,defaultValue:v=[a],value:C,onValueChange:E=()=>{},onValueCommit:w=()=>{},inverted:b=!1,...N}=e,[R,M]=(0,n.useState)(null),T=(0,s.e)(t,e=>M(e)),_=(0,n.useRef)(new Set),S=(0,n.useRef)(0),P="horizontal"===m,I=!R||!!R.closest("form"),[L=[],A]=(0,u.T)({prop:C,defaultProp:v,onChange:e=>{var t;null===(t=[..._.current][S.current])||void 0===t||t.focus(),E(e)}}),z=(0,n.useRef)(L);function O(e,t,{commit:r}={commit:!1}){let n=(String(d).split(".")[1]||"").length,o=function(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-a)/d)*d+a,n),i=(0,l.u)(o,[a,c]);A((e=[])=>{var n,a;let o=function(e=[],t,r){let n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}(e,i,t);if(n=o,!(!((a=p*d)>0)||Math.min(...n.slice(0,-1).map((e,t)=>n[t+1]-e))>=a))return e;{S.current=o.indexOf(i);let t=String(o)!==String(e);return t&&r&&w(o),t?o:e}})}return(0,n.createElement)(x,{scope:e.__scopeSlider,disabled:f,min:a,max:c,valueIndexToChangeRef:S,thumbs:_.current,values:L,orientation:m},(0,n.createElement)(y.Provider,{scope:e.__scopeSlider},(0,n.createElement)(y.Slot,{scope:e.__scopeSlider},(0,n.createElement)(P?k:D,(0,o.Z)({"aria-disabled":f,"data-disabled":f?"":void 0},N,{ref:T,onPointerDown:(0,i.M)(N.onPointerDown,()=>{f||(z.current=L)}),min:a,max:c,inverted:b,onSlideStart:f?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t));return r.indexOf(Math.min(...r))}(L,e);O(e,t)},onSlideMove:f?void 0:function(e){O(e,S.current)},onSlideEnd:f?void 0:function(){let e=z.current[S.current];L[S.current]!==e&&w(L)},onHomeKeyDown:()=>!f&&O(a,0,{commit:!0}),onEndKeyDown:()=>!f&&O(c,L.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!f){let r=h.includes(e.key)||e.shiftKey&&g.includes(e.key),n=S.current;O(L[n]+d*(r?10:1)*t,n,{commit:!0})}}})))),I&&L.map((e,t)=>(0,n.createElement)(V,{key:t,name:r?r+(L.length>1?"[]":""):void 0,value:e})))}),[_,S]=N(E,{startEdge:"left",endEdge:"right",size:"width",direction:1}),k=(0,n.forwardRef)((e,t)=>{let{min:r,max:a,dir:l,inverted:i,onSlideStart:c,onSlideMove:u,onSlideEnd:m,onStepKeyDown:f,...p}=e,[v,h]=(0,n.useState)(null),g=(0,s.e)(t,e=>h(e)),E=(0,n.useRef)(),y=(0,d.gm)(l),w="ltr"===y,b=w&&!i||!w&&i;function N(e){let t=E.current||v.getBoundingClientRect(),n=B([0,t.width],b?[r,a]:[a,r]);return E.current=t,n(e-t.left)}return(0,n.createElement)(_,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width"},(0,n.createElement)(P,(0,o.Z)({dir:y,"data-orientation":"horizontal"},p,{ref:g,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=N(e.clientX);null==c||c(t)},onSlideMove:e=>{let t=N(e.clientX);null==u||u(t)},onSlideEnd:()=>{E.current=void 0,null==m||m()},onStepKeyDown:e=>{let t=C[b?"from-left":"from-right"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})))}),D=(0,n.forwardRef)((e,t)=>{let{min:r,max:a,inverted:l,onSlideStart:i,onSlideMove:c,onSlideEnd:u,onStepKeyDown:d,...m}=e,f=(0,n.useRef)(null),p=(0,s.e)(t,f),v=(0,n.useRef)(),h=!l;function g(e){let t=v.current||f.current.getBoundingClientRect(),n=B([0,t.height],h?[a,r]:[r,a]);return v.current=t,n(e-t.top)}return(0,n.createElement)(_,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1},(0,n.createElement)(P,(0,o.Z)({"data-orientation":"vertical"},m,{ref:p,style:{...m.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=g(e.clientY);null==i||i(t)},onSlideMove:e=>{let t=g(e.clientY);null==c||c(t)},onSlideEnd:()=>{v.current=void 0,null==u||u()},onStepKeyDown:e=>{let t=C[h?"from-bottom":"from-top"].includes(e.key);null==d||d({event:e,direction:t?-1:1})}})))}),P=(0,n.forwardRef)((e,t)=>{let{__scopeSlider:r,onSlideStart:a,onSlideMove:l,onSlideEnd:s,onHomeKeyDown:c,onEndKeyDown:u,onStepKeyDown:d,...m}=e,f=M(E,r);return(0,n.createElement)(p.WV.span,(0,o.Z)({},m,{ref:t,onKeyDown:(0,i.M)(e.onKeyDown,e=>{"Home"===e.key?(c(e),e.preventDefault()):"End"===e.key?(u(e),e.preventDefault()):h.concat(g).includes(e.key)&&(d(e),e.preventDefault())}),onPointerDown:(0,i.M)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),f.thumbs.has(t)?t.focus():a(e)}),onPointerMove:(0,i.M)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&l(e)}),onPointerUp:(0,i.M)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),s(e))})}))}),I=(0,n.forwardRef)((e,t)=>{let{__scopeSlider:r,...a}=e,l=M("SliderTrack",r);return(0,n.createElement)(p.WV.span,(0,o.Z)({"data-disabled":l.disabled?"":void 0,"data-orientation":l.orientation},a,{ref:t}))}),L="SliderRange",A=(0,n.forwardRef)((e,t)=>{let{__scopeSlider:r,...a}=e,l=M(L,r),i=S(L,r),c=(0,n.useRef)(null),u=(0,s.e)(t,c),d=l.values.length,m=l.values.map(e=>F(e,l.min,l.max));return(0,n.createElement)(p.WV.span,(0,o.Z)({"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0},a,{ref:u,style:{...e.style,[i.startEdge]:(d>1?Math.min(...m):0)+"%",[i.endEdge]:100-Math.max(...m)+"%"}}))}),z="SliderThumb",O=(0,n.forwardRef)((e,t)=>{let r=w(e.__scopeSlider),[a,l]=(0,n.useState)(null),i=(0,s.e)(t,e=>l(e)),c=(0,n.useMemo)(()=>a?r().findIndex(e=>e.ref.current===a):-1,[r,a]);return(0,n.createElement)(Z,(0,o.Z)({},e,{ref:i,index:c}))}),Z=(0,n.forwardRef)((e,t)=>{var r;let{__scopeSlider:a,index:l,...c}=e,u=M(z,a),d=S(z,a),[m,v]=(0,n.useState)(null),h=(0,s.e)(t,e=>v(e)),g=(0,f.t)(m),C=u.values[l],E=void 0===C?0:F(C,u.min,u.max),w=(r=u.values.length)>2?`Value ${l+1} of ${r}`:2===r?["Minimum","Maximum"][l]:void 0,b=null==g?void 0:g[d.size],N=b?function(e,t,r){let n=e/2,a=B([0,50],[0,n]);return(n-a(t)*r)*r}(b,E,d.direction):0;return(0,n.useEffect)(()=>{if(m)return u.thumbs.add(m),()=>{u.thumbs.delete(m)}},[m,u.thumbs]),(0,n.createElement)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:`calc(${E}% + ${N}px)`}},(0,n.createElement)(y.ItemSlot,{scope:e.__scopeSlider},(0,n.createElement)(p.WV.span,(0,o.Z)({role:"slider","aria-label":e["aria-label"]||w,"aria-valuemin":u.min,"aria-valuenow":C,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0},c,{ref:h,style:void 0===C?{display:"none"}:e.style,onFocus:(0,i.M)(e.onFocus,()=>{u.valueIndexToChangeRef.current=l})}))))}),V=e=>{let{value:t,...r}=e,a=(0,n.useRef)(null),l=(0,m.D)(t);return(0,n.useEffect)(()=>{let e=a.current,r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(l!==t&&r){let n=new Event("input",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[l,t]),(0,n.createElement)("input",(0,o.Z)({style:{display:"none"}},r,{ref:a,defaultValue:t}))};function F(e,t,r){return(0,l.u)(100/(r-t)*(e-t),[0,100])}function B(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var W=r(17534),G=r(75073),H=r(66176);let K={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...W.EG,...G.K,...H.I};var U=r(19594),j=r(66188);let X=n.forwardRef((e,t)=>{var r,o;let{className:l,color:i,radius:s,tabIndex:c,...u}=(0,U.y)(e,K,j.E);return n.createElement(T,{"data-accent-color":i,"data-radius":s,ref:t,...u,asChild:!1,className:a("rt-SliderRoot",l)},n.createElement(I,{className:"rt-SliderTrack"},n.createElement(A,{className:a("rt-SliderRange",{"rt-high-contrast":e.highContrast}),"data-inverted":u.inverted?"":void 0})),(null!==(o=null!==(r=u.value)&&void 0!==r?r:u.defaultValue)&&void 0!==o?o:[]).map((e,t)=>n.createElement(O,{key:t,className:"rt-SliderThumb",...void 0!==c?{tabIndex:c}:void 0})))});X.displayName="Slider"},82709:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},loading:{type:"boolean",default:!0}}},15961:function(e,t,r){"use strict";r.r(t),r.d(t,{Switch:function(){return m}});var n=r(2265),a=r(56800),o=r(9646),l=r(19594),i=r(66188),s=r(17534),c=r(75073),u=r(66176);let d={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...s.EG,...c.K,...u.I},m=n.forwardRef((e,t)=>{let{className:r,color:s,radius:c,...u}=(0,l.y)(e,d,i.E);return n.createElement(o.fC,{"data-accent-color":s,"data-radius":c,...u,asChild:!1,ref:t,className:a("rt-reset","rt-SwitchRoot",r)},n.createElement(o.bU,{className:a("rt-SwitchThumb",{"rt-high-contrast":e.highContrast})}))});m.displayName="Switch"},67738:function(e,t,r){"use strict";r.r(t),r.d(t,{Link:function(){return et},Root:function(){return ee}});var n=r(2265),a=r(56800),o=r(22988),l=(r(54887),r(98324)),i=r(78149),s=r(25171),c=r(91715),u=r(1584),d=r(87513),m=r(31383),f=r(53201),p=r(90976),v=r(53938),h=r(47250),g=r(1336),C=r(75137);r(31725);let E="NavigationMenu",[y,w,b]=(0,p.B)(E),[N,R,x]=(0,p.B)(E),[M,T]=(0,l.b)(E,[b,x]),[_,S]=M(E),[k,D]=M(E),P=(0,n.forwardRef)((e,t)=>{let{__scopeNavigationMenu:r,value:a,onValueChange:l,defaultValue:i,delayDuration:m=200,skipDelayDuration:f=300,orientation:p="horizontal",dir:v,...h}=e,[g,C]=(0,n.useState)(null),E=(0,u.e)(t,e=>C(e)),y=(0,d.gm)(v),w=(0,n.useRef)(0),b=(0,n.useRef)(0),N=(0,n.useRef)(0),[R,x]=(0,n.useState)(!0),[M="",T]=(0,c.T)({prop:a,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(N.current),t&&x(!1)):(window.clearTimeout(N.current),N.current=window.setTimeout(()=>x(!0),f)),null==l||l(e)},defaultProp:i}),_=(0,n.useCallback)(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>T(""),150)},[T]),S=(0,n.useCallback)(e=>{window.clearTimeout(b.current),T(e)},[T]),k=(0,n.useCallback)(e=>{M===e?window.clearTimeout(b.current):w.current=window.setTimeout(()=>{window.clearTimeout(b.current),T(e)},m)},[M,T,m]);return(0,n.useEffect)(()=>()=>{window.clearTimeout(w.current),window.clearTimeout(b.current),window.clearTimeout(N.current)},[]),(0,n.createElement)(I,{scope:r,isRootMenu:!0,value:M,dir:y,orientation:p,rootNavigationMenu:g,onTriggerEnter:e=>{window.clearTimeout(w.current),R?k(e):S(e)},onTriggerLeave:()=>{window.clearTimeout(w.current),_()},onContentEnter:()=>window.clearTimeout(b.current),onContentLeave:_,onItemSelect:e=>{T(t=>t===e?"":e)},onItemDismiss:()=>T("")},(0,n.createElement)(s.WV.nav,(0,o.Z)({"aria-label":"Main","data-orientation":p,dir:y},h,{ref:E})))}),I=e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:a,dir:o,orientation:l,children:i,value:s,onItemSelect:c,onItemDismiss:u,onTriggerEnter:d,onTriggerLeave:m,onContentEnter:p,onContentLeave:v}=e,[g,E]=(0,n.useState)(null),[w,b]=(0,n.useState)(new Map),[N,R]=(0,n.useState)(null);return(0,n.createElement)(_,{scope:t,isRootMenu:r,rootNavigationMenu:a,value:s,previousValue:(0,h.D)(s),baseId:(0,f.M)(),dir:o,orientation:l,viewport:g,onViewportChange:E,indicatorTrack:N,onIndicatorTrackChange:R,onTriggerEnter:(0,C.W)(d),onTriggerLeave:(0,C.W)(m),onContentEnter:(0,C.W)(p),onContentLeave:(0,C.W)(v),onItemSelect:(0,C.W)(c),onItemDismiss:(0,C.W)(u),onViewportContentChange:(0,n.useCallback)((e,t)=>{b(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:(0,n.useCallback)(e=>{b(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[])},(0,n.createElement)(y.Provider,{scope:t},(0,n.createElement)(k,{scope:t,items:w},i)))},L=(0,n.forwardRef)((e,t)=>{let{__scopeNavigationMenu:r,...a}=e,l=S("NavigationMenuList",r),i=(0,n.createElement)(s.WV.ul,(0,o.Z)({"data-orientation":l.orientation},a,{ref:t}));return(0,n.createElement)(s.WV.div,{style:{position:"relative"},ref:l.onIndicatorTrackChange},(0,n.createElement)(y.Slot,{scope:r},l.isRootMenu?(0,n.createElement)(G,{asChild:!0},i):i))}),[A,z]=M("NavigationMenuItem"),O=(0,n.forwardRef)((e,t)=>{let{__scopeNavigationMenu:r,value:a,...l}=e,i=(0,f.M)(),c=(0,n.useRef)(null),u=(0,n.useRef)(null),d=(0,n.useRef)(null),m=(0,n.useRef)(()=>{}),p=(0,n.useRef)(!1),v=(0,n.useCallback)((e="start")=>{if(c.current){m.current();let t=U(c.current);t.length&&j("start"===e?t:t.reverse())}},[]),h=(0,n.useCallback)(()=>{if(c.current){let e=U(c.current);e.length&&(m.current=(e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}))}},[]);return(0,n.createElement)(A,{scope:r,value:a||i||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:c,focusProxyRef:d,wasEscapeCloseRef:p,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:h,onContentFocusOutside:h},(0,n.createElement)(s.WV.li,(0,o.Z)({},l,{ref:t})))}),Z="navigationMenu.linkSelect",V=(0,n.forwardRef)((e,t)=>{let{__scopeNavigationMenu:r,active:a,onSelect:l,...c}=e;return(0,n.createElement)(K,{asChild:!0},(0,n.createElement)(s.WV.a,(0,o.Z)({"data-active":a?"":void 0,"aria-current":a?"page":void 0},c,{ref:t,onClick:(0,i.M)(e.onClick,e=>{let t=e.target,r=new CustomEvent(Z,{bubbles:!0,cancelable:!0});if(t.addEventListener(Z,e=>null==l?void 0:l(e),{once:!0}),(0,s.jH)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(B,{bubbles:!0,cancelable:!0});(0,s.jH)(t,e)}},{checkForDefaultPrevented:!1})})))}),F=((e,t)=>{let{__scopeNavigationMenu:r,...a}=e,l=S("NavigationMenuIndicator",r),i=w(r),[c,u]=(0,n.useState)(null),[d,m]=(0,n.useState)(null),f="horizontal"===l.orientation,p=!!l.value;(0,n.useEffect)(()=>{var e;let t=null===(e=i().find(e=>e.value===l.value))||void 0===e?void 0:e.ref.current;t&&u(t)},[i,l.value]);let v=()=>{c&&m({size:f?c.offsetWidth:c.offsetHeight,offset:f?c.offsetLeft:c.offsetTop})};return X(c,v),X(l.indicatorTrack,v),d?(0,n.createElement)(s.WV.div,(0,o.Z)({"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":l.orientation},a,{ref:t,style:{position:"absolute",...f?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...a.style}})):null},"NavigationMenuContent"),B=((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=S(F,e.__scopeNavigationMenu);return(0,g.b)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,g.b)(()=>()=>n(e.value),[e.value,n]),null},"navigationMenu.rootContentDismiss"),W=(0,n.forwardRef)((e,t)=>{let{__scopeNavigationMenu:r,value:a,triggerRef:l,focusProxyRef:s,wasEscapeCloseRef:c,onRootContentClose:d,onContentFocusOutside:m,...f}=e,p=S(F,r),h=(0,n.useRef)(null),g=(0,u.e)(h,t),C=function(e,t){return`${e}-trigger-${t}`}(p.baseId,a),E=function(e,t){return`${e}-content-${t}`}(p.baseId,a),y=w(r),b=(0,n.useRef)(null),{onItemDismiss:N}=p;(0,n.useEffect)(()=>{let e=h.current;if(p.isRootMenu&&e){let t=()=>{var t;N(),d(),e.contains(document.activeElement)&&(null===(t=l.current)||void 0===t||t.focus())};return e.addEventListener(B,t),()=>e.removeEventListener(B,t)}},[p.isRootMenu,e.value,l,N,d]);let R=(0,n.useMemo)(()=>{let e=y().map(e=>e.value);"rtl"===p.dir&&e.reverse();let t=e.indexOf(p.value),r=e.indexOf(p.previousValue),n=a===p.value,o=r===e.indexOf(a);if(!n&&!o)return b.current;let l=(()=>{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(o&&-1!==t)return t>r?"to-start":"to-end"}return null})();return b.current=l,l},[p.previousValue,p.value,p.dir,y,a]);return(0,n.createElement)(G,{asChild:!0},(0,n.createElement)(v.XB,(0,o.Z)({id:E,"aria-labelledby":C,"data-motion":R,"data-orientation":p.orientation},f,{ref:g,onDismiss:()=>{var e;let t=new Event(B,{bubbles:!0,cancelable:!0});null===(e=h.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:(0,i.M)(e.onFocusOutside,e=>{var t;m();let r=e.target;null!==(t=p.rootNavigationMenu)&&void 0!==t&&t.contains(r)&&e.preventDefault()}),onPointerDownOutside:(0,i.M)(e.onPointerDownOutside,e=>{var t;let r=e.target,n=y().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(r)}),a=p.isRootMenu&&(null===(t=p.viewport)||void 0===t?void 0:t.contains(r));(n||a||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,i.M)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=U(e.currentTarget),n=document.activeElement,a=t.findIndex(e=>e===n);if(j(e.shiftKey?t.slice(0,a).reverse():t.slice(a+1,t.length)))e.preventDefault();else{var r;null===(r=s.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:(0,i.M)(e.onEscapeKeyDown,e=>{c.current=!0})})))}),G=((e,t)=>{let{__scopeNavigationMenu:r,children:a,...l}=e,c=S("NavigationMenuViewport",r),d=(0,u.e)(t,c.onViewportChange),f=D(F,e.__scopeNavigationMenu),[p,v]=(0,n.useState)(null),[h,g]=(0,n.useState)(null),C=p?(null==p?void 0:p.width)+"px":void 0,E=p?(null==p?void 0:p.height)+"px":void 0,y=!!c.value,w=y?c.value:c.previousValue;return X(h,()=>{h&&v({width:h.offsetWidth,height:h.offsetHeight})}),(0,n.createElement)(s.WV.div,(0,o.Z)({"data-state":function(e){return e?"open":"closed"}(y),"data-orientation":c.orientation},l,{ref:d,style:{pointerEvents:!y&&c.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":C,"--radix-navigation-menu-viewport-height":E,...l.style},onPointerEnter:(0,i.M)(e.onPointerEnter,c.onContentEnter),onPointerLeave:(0,i.M)(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(c.onContentLeave))}),Array.from(f.items).map(([e,{ref:t,forceMount:r,...a}])=>{let l=w===e;return(0,n.createElement)(m.z,{key:e,present:r||l},(0,n.createElement)(W,(0,o.Z)({},a,{ref:(0,u.F)(t,e=>{l&&e&&g(e)})})))}))},(0,n.forwardRef)((e,t)=>{let{__scopeNavigationMenu:r,...a}=e,l=S("FocusGroup",r);return(0,n.createElement)(N.Provider,{scope:r},(0,n.createElement)(N.Slot,{scope:r},(0,n.createElement)(s.WV.div,(0,o.Z)({dir:l.dir},a,{ref:t}))))})),H=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],K=(0,n.forwardRef)((e,t)=>{let{__scopeNavigationMenu:r,...a}=e,l=R(r),c=S("FocusGroupItem",r);return(0,n.createElement)(N.ItemSlot,{scope:r},(0,n.createElement)(s.WV.button,(0,o.Z)({},a,{ref:t,onKeyDown:(0,i.M)(e.onKeyDown,e=>{if(["Home","End",...H].includes(e.key)){let t=l().map(e=>e.ref.current);if(["rtl"===c.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),H.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>j(t)),e.preventDefault()}})})))});function U(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function j(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function X(e,t){let r=(0,C.W)(t);(0,g.b)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}var Y=r(38460),q=r(13384);({...Y.C});var $=r(19594),J=r(81271),Q=r(66188);let ee=n.forwardRef((e,t)=>{let{children:r,className:o,color:l,...i}=(0,$.y)(e,q.U,Q.E);return n.createElement(P,{className:"rt-TabNavRoot","data-accent-color":l,...i,asChild:!1,ref:t},n.createElement(L,{className:a("rt-reset","rt-BaseTabList","rt-TabNavList",o)},r))});ee.displayName="TabNav.Root";let et=n.forwardRef((e,t)=>{let{asChild:r,children:o,className:l,...i}=e;return n.createElement(O,{className:"rt-TabNavItem"},n.createElement(V,{...i,ref:t,className:a("rt-reset","rt-BaseTabListTrigger","rt-TabNavLink",l),onSelect:()=>{},asChild:r},(0,J.x)({asChild:r,children:o},e=>n.createElement(n.Fragment,null,n.createElement("span",{className:"rt-BaseTabListTriggerInner rt-TabNavLinkInner"},e),n.createElement("span",{className:"rt-BaseTabListTriggerInnerHidden rt-TabNavLinkInnerHidden"},e)))))});et.displayName="TabNav.Link"},42594:function(e,t,r){"use strict";r.r(t),r.d(t,{Content:function(){return I},List:function(){return D},Root:function(){return k},Trigger:function(){return P}});var n=r(2265),a=r(56800),o=r(22988),l=r(78149),i=r(98324),s=r(53398),c=r(31383),u=r(25171),d=r(87513),m=r(91715),f=r(53201);let p="Tabs",[v,h]=(0,i.b)(p,[s.Pc]),g=(0,s.Pc)(),[C,E]=v(p),y=(0,n.forwardRef)((e,t)=>{let{__scopeTabs:r,value:a,onValueChange:l,defaultValue:i,orientation:s="horizontal",dir:c,activationMode:p="automatic",...v}=e,h=(0,d.gm)(c),[g,E]=(0,m.T)({prop:a,onChange:l,defaultProp:i});return(0,n.createElement)(C,{scope:r,baseId:(0,f.M)(),value:g,onValueChange:E,orientation:s,dir:h,activationMode:p},(0,n.createElement)(u.WV.div,(0,o.Z)({dir:h,"data-orientation":s},v,{ref:t})))}),w=(0,n.forwardRef)((e,t)=>{let{__scopeTabs:r,loop:a=!0,...l}=e,i=E("TabsList",r),c=g(r);return(0,n.createElement)(s.fC,(0,o.Z)({asChild:!0},c,{orientation:i.orientation,dir:i.dir,loop:a}),(0,n.createElement)(u.WV.div,(0,o.Z)({role:"tablist","aria-orientation":i.orientation},l,{ref:t})))}),b=(0,n.forwardRef)((e,t)=>{let{__scopeTabs:r,value:a,disabled:i=!1,...c}=e,d=E("TabsTrigger",r),m=g(r),f=R(d.baseId,a),p=x(d.baseId,a),v=a===d.value;return(0,n.createElement)(s.ck,(0,o.Z)({asChild:!0},m,{focusable:!i,active:v}),(0,n.createElement)(u.WV.button,(0,o.Z)({type:"button",role:"tab","aria-selected":v,"aria-controls":p,"data-state":v?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:f},c,{ref:t,onMouseDown:(0,l.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():d.onValueChange(a)}),onKeyDown:(0,l.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&d.onValueChange(a)}),onFocus:(0,l.M)(e.onFocus,()=>{let e="manual"!==d.activationMode;v||i||!e||d.onValueChange(a)})})))}),N=(0,n.forwardRef)((e,t)=>{let{__scopeTabs:r,value:a,forceMount:l,children:i,...s}=e,d=E("TabsContent",r),m=R(d.baseId,a),f=x(d.baseId,a),p=a===d.value,v=(0,n.useRef)(p);return(0,n.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,n.createElement)(c.z,{present:l||p},({present:r})=>(0,n.createElement)(u.WV.div,(0,o.Z)({"data-state":p?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":m,hidden:!r,id:f,tabIndex:0},s,{ref:t,style:{...e.style,animationDuration:v.current?"0s":void 0}}),r&&i))});function R(e,t){return`${e}-trigger-${t}`}function x(e,t){return`${e}-content-${t}`}var M=r(38460),T=r(13384);M.C,M.C;var _=r(19594),S=r(66188);let k=n.forwardRef((e,t)=>{let{className:r,...o}=(0,_.y)(e,S.E);return n.createElement(y,{...o,ref:t,className:a("rt-TabsRoot",r)})});k.displayName="Tabs.Root";let D=n.forwardRef((e,t)=>{let{className:r,color:o,...l}=(0,_.y)(e,T.U,S.E);return n.createElement(w,{"data-accent-color":o,...l,asChild:!1,ref:t,className:a("rt-BaseTabList","rt-TabsList",r)})});D.displayName="Tabs.List";let P=n.forwardRef((e,t)=>{let{className:r,children:o,...l}=e;return n.createElement(b,{...l,asChild:!1,ref:t,className:a("rt-reset","rt-BaseTabListTrigger","rt-TabsTrigger",r)},n.createElement("span",{className:"rt-BaseTabListTriggerInner rt-TabsTriggerInner"},o),n.createElement("span",{className:"rt-BaseTabListTriggerInnerHidden rt-TabsTriggerInnerHidden"},o))});P.displayName="Tabs.Trigger";let I=n.forwardRef((e,t)=>{let{className:r,...o}=(0,_.y)(e,S.E);return n.createElement(N,{...o,ref:t,className:a("rt-TabsContent",r)})});I.displayName="Tabs.Content"},36982:function(e,t,r){"use strict";r.r(t),r.d(t,{Root:function(){return p},Slot:function(){return v}});var n=r(2265),a=r(56800),o=r(1584),l=r(17534),i=r(11379),s=r(66176),c=r(20611);let u={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...l.EG,...s.I},d={side:{type:"enum",values:["left","right"]},...l.EG,gap:c.l.gap,px:i.i.px,pl:i.i.pl,pr:i.i.pr};var m=r(19594),f=r(66188);let p=n.forwardRef((e,t)=>{let r=n.useRef(null),{children:l,className:i,color:s,radius:c,style:d,...p}=(0,m.y)(e,u,f.E);return n.createElement("div",{"data-accent-color":s,"data-radius":c,style:d,className:a("rt-TextFieldRoot",i),onPointerDown:e=>{let t=e.target;if(t.closest("input, button, a"))return;let n=r.current;if(!n)return;let a=t.closest("\n .rt-TextFieldSlot[data-side='right'],\n .rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])\n ")?n.value.length:0;requestAnimationFrame(()=>{try{n.setSelectionRange(a,a)}catch(e){}n.focus()})}},n.createElement("input",{spellCheck:"false",...p,ref:(0,o.F)(r,t),className:"rt-reset rt-TextFieldInput"}),l)});p.displayName="TextField.Root";let v=n.forwardRef((e,t)=>{let{className:r,color:o,side:l,...i}=(0,m.y)(e,d);return n.createElement("div",{"data-accent-color":o,"data-side":l,...i,ref:t,className:a("rt-TextFieldSlot",r)})});v.displayName="TextField.Slot"},19078:function(e,t,r){"use strict";r.d(t,{x:function(){return c}});var n=r(2265),a=r(56800),o=r(71538),l=r(19594),i=r(66188),s=r(17408);let c=n.forwardRef((e,t)=>{let{children:r,className:c,asChild:u,as:d="span",color:m,...f}=(0,l.y)(e,s.S,i.E);return n.createElement(o.g7,{"data-accent-color":m,...f,ref:t,className:a("rt-Text",c)},u?r:n.createElement(d,null,r))});c.displayName="Text"},17408:function(e,t,r){"use strict";r.d(t,{S:function(){return d}});var n=r(38460),a=r(17534),o=r(75073),l=r(76148),i=r(16532),s=r(91279),c=r(58489),u=r(53773);let d={as:{type:"enum",values:["span","div","label","p"],default:"span"},...n.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],responsive:!0},...u.x,...i.O,...l.E,...c.w,...s.u,...a.EG,...o.K}},90448:function(e,t,r){"use strict";r.r(t),r.d(t,{ThemePanel:function(){return c}});var n=r(2265),a=r(75137),o=r(34270),l=r(29340),i=r(37033),s=r(95204);let c=n.forwardRef((e,t)=>{let{defaultOpen:r=!0,...a}=e,[o,l]=n.useState(r);return n.createElement(u,{...a,ref:t,open:o,onOpenChange:l})});c.displayName="ThemePanel";let u=n.forwardRef((e,t)=>{let{open:r,onOpenChange:c,onAppearanceChange:u,...m}=e,{appearance:f,onAppearanceChange:p,accentColor:v,onAccentColorChange:h,grayColor:g,onGrayColorChange:C,panelBackground:E,onPanelBackgroundChange:y,radius:w,onRadiusChange:b,scaling:N,onScalingChange:R}=(0,l.useThemeContext)(),x=void 0!==u,M=(0,a.W)(u),T=n.useCallback(e=>{let t=function(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}}();if("inherit"!==f){p(e);return}x?M(e):(L(e),function(e){let t=document.documentElement,r=t.classList.contains("light-theme"),n=t.classList.contains("dark-theme"),a=t.classList.contains("light"),o=t.classList.contains("dark");(r||n)&&(t.classList.remove("light-theme","dark-theme"),t.style.colorScheme=e,t.classList.add("".concat(e,"-theme"))),(a||o)&&(t.classList.remove("light","dark"),t.style.colorScheme=e,t.classList.add(e)),r||n||a||o||(t.style.colorScheme=e,t.classList.add(e))}(e)),t()},[f,p,x,M]),_=(0,i.G)(v),S="auto"===g?_:g,[k,D]=n.useState("idle");async function P(){let e={appearance:f===s.y.appearance.default?void 0:f,accentColor:v===s.y.accentColor.default?void 0:v,grayColor:g===s.y.grayColor.default?void 0:g,panelBackground:E===s.y.panelBackground.default?void 0:E,radius:w===s.y.radius.default?void 0:w,scaling:N===s.y.scaling.default?void 0:N},t=Object.keys(e).filter(t=>void 0!==e[t]).map(t=>"".concat(t,'="').concat(e[t],'"')).join(" ");D("copying"),await navigator.clipboard.writeText(t?""):""),D("copied"),setTimeout(()=>D("idle"),2e3)}let[I,L]=n.useState("inherit"===f?null:f),A='\n [contenteditable],\n [role="combobox"],\n [role="listbox"],\n [role="menu"],\n input:not([type="radio"], [type="checkbox"]),\n select,\n textarea\n ';return n.useEffect(()=>{function e(e){var t,n;let a=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey,o=null===(t=document.activeElement)||void 0===t?void 0:t.closest(A);(null===(n=e.key)||void 0===n?void 0:n.toUpperCase())!=="T"||a||o||c(!r)}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[c,r,A]),n.useEffect(()=>{function e(e){var t,r;let n=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey,a=null===(t=document.activeElement)||void 0===t?void 0:t.closest(A);(null===(r=e.key)||void 0===r?void 0:r.toUpperCase())!=="D"||n||a||T("light"===I?"dark":"light")}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[T,I,A]),n.useEffect(()=>{let e=document.documentElement,t=document.body;function r(){let r=e.classList.contains("dark")||e.classList.contains("dark-theme")||t.classList.contains("dark")||t.classList.contains("dark-theme");L("inherit"===f?r?"dark":"light":f)}let n=new MutationObserver(function(e){e.forEach(function(e){"class"===e.attributeName&&r()})});return r(),"inherit"===f&&(n.observe(e,{attributes:!0}),n.observe(t,{attributes:!0})),()=>n.disconnect()},[f]),n.createElement(l.Theme,{asChild:!0,radius:"medium",scaling:"100%"},n.createElement(o.kC,{direction:"column",position:"fixed",top:"0",right:"0",mr:"4",mt:"4",inert:r?void 0:"",...m,ref:t,style:{zIndex:9999,overflow:"hidden",maxHeight:"calc(100vh - var(--space-4) - var(--space-4))",borderRadius:"var(--radius-4)",backgroundColor:"var(--color-panel-solid)",transformOrigin:"top center",transitionProperty:"transform, box-shadow",transitionDuration:"200ms",transitionTimingFunction:r?"ease-out":"ease-in",transform:r?"none":"translateX(105%)",boxShadow:r?"var(--shadow-5)":"var(--shadow-2)",...e.style}},n.createElement(o.xr,null,n.createElement(o.xu,{flexGrow:"1",p:"5",position:"relative"},n.createElement(o.xu,{position:"absolute",top:"0",right:"0",m:"2"},n.createElement(o.u,{content:"Press T to show/hide the Theme Panel",side:"bottom",sideOffset:6},n.createElement(o.Tz,{asChild:!0,size:"3",tabIndex:0,className:"rt-ThemePanelShortcut"},n.createElement("button",{onClick:()=>c(!r)},"T")))),n.createElement(o.X6,{size:"5",trim:"both",as:"h3",mb:"5"},"Theme"),n.createElement(o.xv,{id:"accent-color-title",as:"p",size:"2",weight:"medium",mt:"5"},"Accent color"),n.createElement(o.rj,{columns:"10",gap:"2",mt:"3",role:"group","aria-labelledby":"accent-color-title"},s.y.accentColor.values.map(e=>n.createElement("label",{key:e,className:"rt-ThemePanelSwatch",style:{backgroundColor:"var(--".concat(e,"-9)")}},n.createElement(o.u,{content:"".concat(d(e)).concat("gray"===v&&"gray"!==S?" (".concat(d(S),")"):"")},n.createElement("input",{className:"rt-ThemePanelSwatchInput",type:"radio",name:"accentColor",value:e,checked:v===e,onChange:e=>h(e.target.value)}))))),n.createElement(o.kC,{asChild:!0,align:"center",justify:"between"},n.createElement(o.xv,{as:"p",id:"gray-color-title",size:"2",weight:"medium",mt:"5"},"Gray color")),n.createElement(o.rj,{columns:"10",gap:"2",mt:"3",role:"group","aria-labelledby":"gray-color-title"},s.y.grayColor.values.map(e=>n.createElement(o.kC,{key:e,asChild:!0,align:"center",justify:"center"},n.createElement("label",{className:"rt-ThemePanelSwatch",style:{backgroundColor:"auto"===e?"var(--".concat(_,"-9)"):"gray"===e?"var(--gray-9)":"var(--".concat(e,"-9)"),filter:"gray"===e?"saturate(0)":void 0}},n.createElement(o.u,{content:"".concat(d(e)).concat("auto"===e?" (".concat(d(_),")"):"")},n.createElement("input",{className:"rt-ThemePanelSwatchInput",type:"radio",name:"grayColor",value:e,checked:g===e,onChange:e=>C(e.target.value)})))))),n.createElement(o.xv,{id:"appearance-title",as:"p",size:"2",weight:"medium",mt:"5"},"Appearance"),n.createElement(o.rj,{columns:"2",gap:"2",mt:"3",role:"group","aria-labelledby":"appearance-title"},["light","dark"].map(e=>n.createElement("label",{key:e,className:"rt-ThemePanelRadioCard"},n.createElement("input",{className:"rt-ThemePanelRadioCardInput",type:"radio",name:"appearance",value:e,checked:I===e,onChange:e=>T(e.target.value)}),n.createElement(o.kC,{align:"center",justify:"center",height:"32px",gap:"2"},"light"===e?n.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{margin:"0 -1px"}},n.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):n.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{margin:"0 -1px"}},n.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})),n.createElement(o.xv,{size:"1",weight:"medium"},d(e)))))),n.createElement(o.xv,{id:"radius-title",as:"p",size:"2",weight:"medium",mt:"5"},"Radius"),n.createElement(o.rj,{columns:"5",gap:"2",mt:"3",role:"group","aria-labelledby":"radius-title"},s.y.radius.values.map(e=>n.createElement(o.kC,{key:e,direction:"column",align:"center"},n.createElement("label",{className:"rt-ThemePanelRadioCard"},n.createElement("input",{className:"rt-ThemePanelRadioCardInput",type:"radio",name:"radius",id:"theme-panel-radius-".concat(e),value:e,checked:w===e,onChange:e=>b(e.target.value)}),n.createElement(l.Theme,{asChild:!0,radius:e},n.createElement(o.xu,{m:"3",width:"32px",height:"32px",style:{borderTopLeftRadius:"full"===e?"80%":"var(--radius-5)",backgroundImage:"linear-gradient(to bottom right, var(--accent-3), var(--accent-4))",borderTop:"2px solid var(--accent-a8)",borderLeft:"2px solid var(--accent-a8)"}}))),n.createElement(o.xu,{asChild:!0,pt:"2"},n.createElement(o.xv,{asChild:!0,size:"1",color:"gray"},n.createElement("label",{htmlFor:"theme-panel-radius-".concat(e)},d(e))))))),n.createElement(o.xv,{id:"scaling-title",as:"p",size:"2",weight:"medium",mt:"5"},"Scaling"),n.createElement(o.rj,{columns:"5",gap:"2",mt:"3",role:"group","aria-labelledby":"scaling-title"},s.y.scaling.values.map(e=>n.createElement("label",{key:e,className:"rt-ThemePanelRadioCard"},n.createElement("input",{className:"rt-ThemePanelRadioCardInput",type:"radio",name:"scaling",value:e,checked:N===e,onChange:e=>R(e.target.value)}),n.createElement(o.kC,{align:"center",justify:"center",height:"32px"},n.createElement(l.Theme,{asChild:!0,scaling:e},n.createElement(o.kC,{align:"center",justify:"center"},n.createElement(o.xv,{size:"1",weight:"medium"},d(e)))))))),n.createElement(o.kC,{mt:"5",align:"center",gap:"2"},n.createElement(o.xv,{id:"panel-background-title",as:"p",size:"2",weight:"medium"},"Panel background"),n.createElement(o.J2.Root,null,n.createElement(o.J2.Trigger,null,n.createElement(o.hU,{size:"1",variant:"ghost",color:"gray"},n.createElement(o.CJ,{label:"Learn more about panel background options"},n.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},n.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",fillRule:"evenodd",clipRule:"evenodd"}))))),n.createElement(o.J2.Content,{size:"1",style:{maxWidth:220},side:"top",align:"center"},n.createElement(o.xv,{as:"p",size:"2"},"Whether Card and Table panels are translucent, showing some of\xa0the background behind them.")))),n.createElement(o.rj,{columns:"2",gap:"2",mt:"3",role:"group","aria-labelledby":"panel-background-title"},s.y.panelBackground.values.map(e=>n.createElement("label",{key:e,className:"rt-ThemePanelRadioCard"},n.createElement("input",{className:"rt-ThemePanelRadioCardInput",type:"radio",name:"panelBackground",value:e,checked:E===e,onChange:e=>y(e.target.value)}),n.createElement(o.kC,{align:"center",justify:"center",height:"32px",gap:"2"},"solid"===e?n.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{margin:"0 -2px"}},n.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):n.createElement("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{margin:"0 -2px"}},n.createElement("path",{opacity:".05",d:"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".1",d:"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".15",d:"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".2",d:"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".25",d:"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".3",d:"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".35",d:"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".4",d:"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".45",d:"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{opacity:".5",d:"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),n.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})),n.createElement(o.xv,{size:"1",weight:"medium"},d(e)))))),n.createElement(o.zx,{mt:"5",style:{width:"100%"},onClick:P},"copied"===k?"Copied":"Copy Theme")))))});function d(e){return e.charAt(0).toUpperCase()+e.slice(1)}u.displayName="ThemePanelImpl"},29340:function(e,t,r){"use strict";r.r(t),r.d(t,{Theme:function(){return f},useThemeContext:function(){return m}});var n=r(2265),a=r(56800),o=r(27071),l=r(87513),i=r(71538),s=r(37033),c=r(95204);let u=()=>{},d=n.createContext(void 0);function m(){let e=n.useContext(d);if(void 0===e)throw Error("`useThemeContext` must be used within a `Theme`");return e}let f=n.forwardRef((e,t)=>void 0===n.useContext(d)?n.createElement(o.zt,{delayDuration:200},n.createElement(l._9,{dir:"ltr"},n.createElement(p,{...e,ref:t}))):n.createElement(v,{...e,ref:t}));f.displayName="Theme";let p=n.forwardRef((e,t)=>{let{appearance:r=c.y.appearance.default,accentColor:a=c.y.accentColor.default,grayColor:o=c.y.grayColor.default,panelBackground:l=c.y.panelBackground.default,radius:i=c.y.radius.default,scaling:s=c.y.scaling.default,hasBackground:u=c.y.hasBackground.default,...d}=e,[m,f]=n.useState(r);n.useEffect(()=>f(r),[r]);let[p,h]=n.useState(a);n.useEffect(()=>h(a),[a]);let[g,C]=n.useState(o);n.useEffect(()=>C(o),[o]);let[E,y]=n.useState(l);n.useEffect(()=>y(l),[l]);let[w,b]=n.useState(i);n.useEffect(()=>b(i),[i]);let[N,R]=n.useState(s);return n.useEffect(()=>R(s),[s]),n.createElement(v,{...d,ref:t,isRoot:!0,hasBackground:u,appearance:m,accentColor:p,grayColor:g,panelBackground:E,radius:w,scaling:N,onAppearanceChange:f,onAccentColorChange:h,onGrayColorChange:C,onPanelBackgroundChange:y,onRadiusChange:b,onScalingChange:R})});p.displayName="ThemeRoot";let v=n.forwardRef((e,t)=>{var r,o,l,m,f,p;let v=n.useContext(d),{asChild:h,isRoot:g,hasBackground:C,appearance:E=null!==(r=null==v?void 0:v.appearance)&&void 0!==r?r:c.y.appearance.default,accentColor:y=null!==(o=null==v?void 0:v.accentColor)&&void 0!==o?o:c.y.accentColor.default,grayColor:w=null!==(l=null==v?void 0:v.resolvedGrayColor)&&void 0!==l?l:c.y.grayColor.default,panelBackground:b=null!==(m=null==v?void 0:v.panelBackground)&&void 0!==m?m:c.y.panelBackground.default,radius:N=null!==(f=null==v?void 0:v.radius)&&void 0!==f?f:c.y.radius.default,scaling:R=null!==(p=null==v?void 0:v.scaling)&&void 0!==p?p:c.y.scaling.default,onAppearanceChange:x=u,onAccentColorChange:M=u,onGrayColorChange:T=u,onPanelBackgroundChange:_=u,onRadiusChange:S=u,onScalingChange:k=u,...D}=e,P=h?i.g7:"div",I="auto"===w?(0,s.G)(y):w,L="light"===e.appearance||"dark"===e.appearance;return n.createElement(d.Provider,{value:n.useMemo(()=>({appearance:E,accentColor:y,grayColor:w,resolvedGrayColor:I,panelBackground:b,radius:N,scaling:R,onAppearanceChange:x,onAccentColorChange:M,onGrayColorChange:T,onPanelBackgroundChange:_,onRadiusChange:S,onScalingChange:k}),[E,y,w,I,b,N,R,x,M,T,_,S,k])},n.createElement(P,{"data-is-root-theme":g?"true":"false","data-accent-color":y,"data-gray-color":I,"data-has-background":(void 0===C?g||L:C)?"true":"false","data-panel-background":b,"data-radius":N,"data-scaling":R,ref:t,...D,className:a("radix-themes",{light:"light"===E,dark:"dark"===E},D.className)}))});v.displayName="ThemeImpl"},95204:function(e,t,r){"use strict";r.d(t,{y:function(){return l}});var n=r(38460),a=r(17534),o=r(66176);let l={...n.C,hasBackground:{type:"boolean",default:!0},appearance:{type:"enum",values:["inherit","light","dark"],default:"inherit"},accentColor:{type:"enum",values:a.FN,default:"indigo"},grayColor:{type:"enum",values:a.ab,default:"auto"},panelBackground:{type:"enum",values:["solid","translucent"],default:"translucent"},radius:{type:"enum",values:o.p,default:"medium"},scaling:{type:"enum",values:["90%","95%","100%","105%","110%"],default:"100%"}}},16823:function(e,t,r){"use strict";r.r(t),r.d(t,{Tooltip:function(){return d}});var n=r(2265),a=r(56800),o=r(27071),l=r(19078),i=r(29340),s=r(19594),c=r(74577);let u={content:{type:"ReactNode",required:!0},width:c.n.width,minWidth:c.n.minWidth,maxWidth:{...c.n.maxWidth,default:"360px"}},d=n.forwardRef((e,t)=>{let{children:r,className:c,open:d,defaultOpen:m,onOpenChange:f,delayDuration:p,disableHoverableContent:v,content:h,container:g,forceMount:C,...E}=(0,s.y)(e,u);return n.createElement(o.fC,{open:d,defaultOpen:m,onOpenChange:f,delayDuration:p,disableHoverableContent:v},n.createElement(o.xz,{asChild:!0},r),n.createElement(o.h_,{container:g,forceMount:C},n.createElement(i.Theme,{asChild:!0},n.createElement(o.VY,{sideOffset:4,collisionPadding:10,...E,asChild:!1,ref:t,className:a("rt-TooltipContent",c)},n.createElement(l.x,{as:"p",className:"rt-TooltipText",size:"1"},h),n.createElement(o.Eh,{className:"rt-TooltipArrow"})))))});d.displayName="Tooltip"},19594:function(e,t,r){"use strict";r.d(t,{y:function(){return i}});var n=r(56800),a=r(28978),o=r(37910),l=r(36291);function i(e,...t){let r,s;let c={...e},u=function(...e){return Object.assign({},...e)}(...t);for(let e in u){let t=c[e],i=u[e];if(void 0!==i.default&&void 0===t&&(t=i.default),"enum"!==i.type||[i.default,...i.values].includes(t)||(0,o.d)(t)||(t=i.default),c[e]=t,"className"in i&&i.className){delete c[e];let u="responsive"in i;if(!t||(0,o.d)(t)&&!u)continue;if((0,o.d)(t)&&(void 0!==i.default&&void 0===t.initial&&(t.initial=i.default),"enum"===i.type&&([i.default,...i.values].includes(t.initial)||(t.initial=i.default))),"enum"===i.type){r=n(r,(0,a.RE)({allowArbitraryValues:!1,value:t,className:i.className,propValues:i.values,parseValue:i.parseValue}));continue}if("string"===i.type||"enum | string"===i.type){let e="string"===i.type?[]:i.values,[o,c]=(0,a.uq)({className:i.className,customProperties:i.customProperties,propValues:e,parseValue:i.parseValue,value:t});s=(0,l.y)(s,c),r=n(r,o);continue}if("boolean"===i.type&&t){r=n(r,i.className);continue}}}return c.className=n(r,e.className),c.style=(0,l.y)(s,e.style),c}},37033:function(e,t,r){"use strict";function n(e){switch(e){case"tomato":case"red":case"ruby":case"crimson":case"pink":case"plum":case"purple":case"violet":return"mauve";case"iris":case"indigo":case"blue":case"sky":case"cyan":return"slate";case"teal":case"jade":case"mint":case"green":return"sage";case"grass":case"lime":return"olive";case"yellow":case"amber":case"orange":case"brown":case"gold":case"bronze":return"sand";case"gray":return"gray"}}r.d(t,{G:function(){return n}})},28978:function(e,t,r){"use strict";r.d(t,{RE:function(){return i},uq:function(){return l}});var n=r(57770);function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var o=r(37910);function l({className:e,customProperties:t,...r}){return[i({allowArbitraryValues:!0,className:e,...r}),function({customProperties:e,value:t,propValues:r,parseValue:l=e=>e}){let i={};if(!(!t||"string"==typeof t&&r.includes(t))){if("string"==typeof t&&(i=Object.fromEntries(e.map(e=>[e,t]))),(0,o.d)(t))for(let o in t){if(!a(t,o)||!n.A.includes(o))continue;let l=t[o];if(!r.includes(l))for(let t of e)i={["initial"===o?t:`${t}-${o}`]:l,...i}}for(let e in i){let t=i[e];void 0!==t&&(i[e]=l(t))}return i}}({customProperties:t,...r})]}function i({allowArbitraryValues:e,value:t,className:r,propValues:l,parseValue:i=e=>e}){let c=[];if(t){if("string"==typeof t&&l.includes(t))return s(r,t,i);if((0,o.d)(t)){for(let o in t){if(!a(t,o)||!n.A.includes(o))continue;let u=t[o];if(void 0!==u){if(l.includes(u)){let e=s(r,u,i),t="initial"===o?e:`${o}:${e}`;c.push(t)}else if(e){let e="initial"===o?r:`${o}:${r}`;c.push(e)}}}return c.join(" ")}if(e)return r}}function s(e,t,r){let n=r(t),a=n?.startsWith("-"),o=a?n?.substring(1):n;return`${a?"-":""}${e}${e?"-":""}${o}`}},81271:function(e,t,r){"use strict";r.d(t,{x:function(){return a}});var n=r(2265);function a(e,t){let{asChild:r,children:a}=e;if(!r)return"function"==typeof t?t(a):t;let o=n.Children.only(a);return n.cloneElement(o,{children:"function"==typeof t?t(o.props.children):t})}},37910:function(e,t,r){"use strict";r.d(t,{d:function(){return a}});var n=r(57770);function a(e){return"object"==typeof e&&Object.keys(e).some(e=>n.A.includes(e))}},6717:function(e,t,r){"use strict";function n(e,t){if(void 0!==e)return"string"==typeof e?t(e):Object.fromEntries(Object.entries(e).map(([e,r])=>[e,t(r)]))}function a(e){return"3"===e?"3":"2"}function o(e){switch(e){case"1":return"1";case"2":case"3":return"2";case"4":return"3"}}r.d(t,{AG:function(){return o},qz:function(){return n},uJ:function(){return a}}),r(58022),r(31861),r(82709),r(17408)},36291:function(e,t,r){"use strict";function n(...e){let t={};for(let r of e)r&&(t={...t,...r});return Object.keys(t).length?t:void 0}r.d(t,{y:function(){return n}})},9766:function(e,t,r){"use strict";r.d(t,{O:function(){return a}});var n=r(2265);let a=e=>{if(!n.isValidElement(e))throw Error(`Expected a single React Element child, but got: ${n.Children.toArray(e).map(e=>"object"==typeof e&&"type"in e&&"string"==typeof e.type?e.type:typeof e).join(", ")}`);return e}},34270:function(e,t,r){"use strict";r.d(t,{CJ:function(){return a.AccessibleIcon},Ct:function(){return v},xu:function(){return b},zx:function(){return D},Zb:function(){return I},cO:function(){return L},W2:function(){return F},FR:function(){return n},Vq:function(){return Y},kC:function(){return x},rj:function(){return $.r},X6:function(){return J.X},hU:function(){return Q},Tz:function(){return ea},rU:function(){return el},J2:function(){return ei},Ex:function(){return es.Progress},xr:function(){return ed.ScrollArea},Ph:function(){return ef},Z0:function(){return ep.Separator},$j:function(){return T},rs:function(){return eg.Switch},mQ:function(){return eN},xv:function(){return h.x},nv:function(){return ex},u:function(){return eM.Tooltip}});var n={};r.r(n),r.d(n,{ck:function(){return U},__:function(){return j},fC:function(){return K},B4:function(){return X}});var a=r(91048);r(16502),r(38507);var o=r(2265),l=r(56800),i=r(71538),s=r(38460),c=r(17534),u=r(75073),d=r(66176);let m={...s.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"1",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["solid","soft","surface","outline"],default:"soft"},...c.o3,...u.K,...d.I};var f=r(19594),p=r(66188);let v=o.forwardRef((e,t)=>{let{asChild:r,className:n,color:a,radius:s,...c}=(0,f.y)(e,m,p.E);return o.createElement(r?i.g7:"span",{"data-accent-color":a,"data-radius":s,...c,ref:t,className:l("rt-reset","rt-Badge",n)})});v.displayName="Badge";var h=r(19078),g=r(91279),C=r(58489),E=r(53773);s.C,E.x,c.EG,u.K,C.w,g.u,o.forwardRef((e,t)=>{let{asChild:r,children:n,className:a,...s}=e,c=r?i.g7:"blockquote";return o.createElement(h.x,{asChild:!0,...s,ref:t,className:l("rt-Blockquote",a)},o.createElement(c,null,n))}).displayName="Blockquote";let y={as:{type:"enum",values:["div","span"],default:"div"},...s.C,display:{type:"enum",className:"rt-r-display",values:["none","inline","inline-block","block"],responsive:!0}};var w=r(85706);let b=o.forwardRef((e,t)=>{let{className:r,asChild:n,as:a="div",...s}=(0,f.y)(e,y,w.P,p.E);return o.createElement(n?i.g7:a,{...s,ref:t,className:l("rt-Box",r)})});b.displayName="Box";var N=r(58022),R=r(20611);let x=o.forwardRef((e,t)=>{let{className:r,asChild:n,as:a="div",...s}=(0,f.y)(e,R.l,w.P,p.E);return o.createElement(n?i.g7:a,{...s,ref:t,className:l("rt-Flex",r)})});x.displayName="Flex";var M=r(82709);let T=o.forwardRef((e,t)=>{let{className:r,children:n,loading:a,...i}=(0,f.y)(e,M.Z,p.E);if(!a)return n;let s=o.createElement("span",{...i,ref:t,className:l("rt-Spinner",r)},o.createElement("span",{className:"rt-SpinnerLeaf"}),o.createElement("span",{className:"rt-SpinnerLeaf"}),o.createElement("span",{className:"rt-SpinnerLeaf"}),o.createElement("span",{className:"rt-SpinnerLeaf"}),o.createElement("span",{className:"rt-SpinnerLeaf"}),o.createElement("span",{className:"rt-SpinnerLeaf"}),o.createElement("span",{className:"rt-SpinnerLeaf"}),o.createElement("span",{className:"rt-SpinnerLeaf"}));return void 0===n?s:o.createElement(x,{asChild:!0,position:"relative",align:"center",justify:"center"},o.createElement("span",null,o.createElement("span",{"aria-hidden":!0,style:{display:"contents",visibility:"hidden"},inert:""},n),o.createElement(x,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},o.createElement("span",null,s))))});T.displayName="Spinner";var _=r(31725),S=r(6717);let k=o.forwardRef((e,t)=>{let{size:r=N.C.size.default}=e,{className:n,children:a,asChild:s,color:c,radius:u,disabled:d=e.loading,...m}=(0,f.y)(e,N.C,p.E);return o.createElement(s?i.g7:"button",{"data-disabled":d||void 0,"data-accent-color":c,"data-radius":u,...m,ref:t,className:l("rt-reset","rt-BaseButton",n),disabled:d},e.loading?o.createElement(o.Fragment,null,o.createElement("span",{style:{display:"contents",visibility:"hidden"},"aria-hidden":!0},a),o.createElement(_.T,null,a),o.createElement(x,{asChild:!0,align:"center",justify:"center",position:"absolute",inset:"0"},o.createElement("span",null,o.createElement(T,{size:(0,S.qz)(r,S.AG)})))):a)});k.displayName="BaseButton";let D=o.forwardRef(({className:e,...t},r)=>o.createElement(k,{...t,ref:r,className:l("rt-Button",e)}));D.displayName="Button",r(44581);let P={...s.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5"],default:"1",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["surface","classic","ghost"],default:"surface"}},I=o.forwardRef((e,t)=>{let{asChild:r,className:n,...a}=(0,f.y)(e,P,p.E);return o.createElement(r?i.g7:"div",{ref:t,...a,className:l("rt-reset","rt-BaseCard","rt-Card",n)})});I.displayName="Card",r(36756);var L=r(76895);r(2738);let A={...s.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],responsive:!0},variant:{type:"enum",className:"rt-variant",values:["solid","soft","outline","ghost"],default:"soft"},...E.x,...c.o3,...u.K,...C.w,...g.u};o.forwardRef((e,t)=>{let{asChild:r,className:n,color:a,...s}=(0,f.y)(e,A,p.E),c="ghost"===e.variant?a||void 0:a;return o.createElement(r?i.g7:"code",{"data-accent-color":c,...s,ref:t,className:l("rt-reset","rt-Code",n)})}).displayName="Code";let z={...s.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4"],default:"4",responsive:!0},display:{type:"enum",className:"rt-r-display",values:["none","initial"],parseValue:function(e){return"initial"===e?"flex":e},responsive:!0},align:{type:"enum",className:"rt-r-ai",values:["left","center","right"],parseValue:function(e){return"left"===e?"start":"right"===e?"end":e},responsive:!0}};var O=r(81271),Z=r(64791),V=r(74577);let F=o.forwardRef(({width:e,minWidth:t,maxWidth:r,height:n,minHeight:a,maxHeight:s,...c},u)=>{let{asChild:d,children:m,className:v,...h}=(0,f.y)(c,z,w.P,p.E),{className:g,style:C}=(0,f.y)({width:e,minWidth:t,maxWidth:r,height:n,minHeight:a,maxHeight:s},V.n,Z.F);return o.createElement(d?i.g7:"div",{...h,ref:u,className:l("rt-Container",v)},(0,O.x)({asChild:d,children:m},e=>o.createElement("div",{className:l("rt-ContainerInner",g),style:C},e)))});F.displayName="Container",r(23195);var B=r(76148);let W={orientation:{type:"enum",className:"rt-r-orientation",values:["horizontal","vertical"],default:"horizontal",responsive:!0},size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},trim:{...B.E.trim,className:"rt-r-trim"}},G={align:{type:"enum",className:"rt-r-ai",values:["start","center","end","baseline","stretch"],responsive:!0}},H={...V.n,...c.EG,...u.K},K=o.forwardRef((e,t)=>{let{className:r,...n}=(0,f.y)(e,W,p.E);return o.createElement(h.x,{asChild:!0},o.createElement("dl",{...n,ref:t,className:l("rt-DataListRoot",r)}))});K.displayName="DataList.Root";let U=o.forwardRef((e,t)=>{let{className:r,...n}=(0,f.y)(e,G);return o.createElement("div",{...n,ref:t,className:l("rt-DataListItem",r)})});U.displayName="DataList.Item";let j=o.forwardRef((e,t)=>{let{className:r,color:n,...a}=(0,f.y)(e,H);return o.createElement("dt",{...a,"data-accent-color":n,ref:t,className:l("rt-DataListLabel",r)})});j.displayName="DataList.Label";let X=o.forwardRef(({children:e,className:t,...r},n)=>o.createElement("dd",{...r,ref:n,className:l(t,"rt-DataListValue")},e));X.displayName="DataList.Value";var Y=r(17584);r(62187);let q={...s.C,...C.w,...g.u};o.forwardRef((e,t)=>{let{asChild:r,className:n,...a}=(0,f.y)(e,q);return o.createElement(r?i.g7:"em",{...a,ref:t,className:l("rt-Em",n)})}).displayName="Em";var $=r(61395),J=r(68890);r(16808);let Q=o.forwardRef(({className:e,...t},r)=>o.createElement(k,{...t,ref:r,className:l("rt-IconButton",e)}));Q.displayName="IconButton",r(52777);let ee=["current","0"],et={...s.C,side:{type:"enum",className:"rt-r-side",values:["all","x","y","top","bottom","left","right"],default:"all",responsive:!0},clip:{type:"enum",className:"rt-r-clip",values:["border-box","padding-box"],default:"border-box",responsive:!0},p:{type:"enum",className:"rt-r-p",values:ee,parseValue:er,responsive:!0},px:{type:"enum",className:"rt-r-px",values:ee,parseValue:er,responsive:!0},py:{type:"enum",className:"rt-r-py",values:ee,parseValue:er,responsive:!0},pt:{type:"enum",className:"rt-r-pt",values:ee,parseValue:er,responsive:!0},pr:{type:"enum",className:"rt-r-pr",values:ee,parseValue:er,responsive:!0},pb:{type:"enum",className:"rt-r-pb",values:ee,parseValue:er,responsive:!0},pl:{type:"enum",className:"rt-r-pl",values:ee,parseValue:er,responsive:!0}};function er(e){return"current"===e?"inset":e}o.forwardRef((e,t)=>{let{asChild:r,className:n,...a}=(0,f.y)(e,et,p.E);return o.createElement(r?i.g7:"div",{...a,ref:t,className:l("rt-Inset",n)})}).displayName="Inset";let en={...s.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],responsive:!0}},ea=o.forwardRef((e,t)=>{let{asChild:r,className:n,...a}=(0,f.y)(e,en,p.E);return o.createElement(r?i.g7:"kbd",{...a,ref:t,className:l("rt-reset","rt-Kbd",n)})});ea.displayName="Kbd";let eo={...s.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4","5","6","7","8","9"],responsive:!0},...E.x,...B.E,...C.w,...g.u,underline:{type:"enum",className:"rt-underline",values:["auto","always","hover","none"],default:"auto"},...c.o3,...u.K},el=o.forwardRef((e,t)=>{let{children:r,className:n,color:a,asChild:i,...s}=(0,f.y)(e,eo);return o.createElement(h.x,{...s,"data-accent-color":a,ref:t,asChild:!0,className:l("rt-reset","rt-Link",n)},i?r:o.createElement("a",null,r))});el.displayName="Link";var ei=r(84285),es=r(37654);let ec={...s.C,...C.w,...g.u};o.forwardRef((e,t)=>{let{asChild:r,className:n,...a}=(0,f.y)(e,ec);return o.createElement(r?i.g7:"q",{...a,ref:t,className:l("rt-Quote",n)})}).displayName="Quote",r(11416),r(76484),r(62381);var eu=r(9766);o.forwardRef(({className:e,children:t,...r},n)=>o.createElement(i.g7,{...r,ref:n,className:l("rt-reset",e)},(0,eu.O)(t))).displayName="Reset";var ed=r(19829);r(90393);let em={...s.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3","4"],default:"3",responsive:!0},display:{type:"enum",className:"rt-r-display",values:["none","initial"],parseValue:function(e){return"initial"===e?"block":e},responsive:!0}};o.forwardRef((e,t)=>{let{asChild:r,className:n,...a}=(0,f.y)(e,em,w.P,p.E);return o.createElement(r?i.g7:"section",{...a,ref:t,className:l("rt-Section",n)})}).displayName="Section";var ef=r(37967),ep=r(63817);let ev={loading:{type:"boolean",default:!0},...V.n,...Z.F};o.forwardRef((e,t)=>{let{children:r,className:n,loading:a,...s}=(0,f.y)(e,ev,p.E);if(!a)return r;let c=o.isValidElement(r)?i.g7:"span";return o.createElement(c,{ref:t,"aria-hidden":!0,className:l("rt-Skeleton",n),"data-inline-skeleton":!o.isValidElement(r)||void 0,tabIndex:-1,inert:"",...s},r)}).displayName="Skeleton",r(32039);let eh={...s.C,...C.w,...g.u};o.forwardRef((e,t)=>{let{asChild:r,className:n,...a}=(0,f.y)(e,eh);return o.createElement(r?i.g7:"strong",{...a,ref:t,className:l("rt-Strong",n)})}).displayName="Strong";var eg=r(15961);r(67738);var eC=r(11379);let eE={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["surface","ghost"],default:"ghost"},layout:{type:"enum",className:"rt-r-tl",values:["auto","fixed"],responsive:!0}},ey={align:{type:"enum",className:"rt-r-va",values:["start","center","end","baseline"],parseValue:function(e){return({baseline:"baseline",start:"top",center:"middle",end:"bottom"})[e]},responsive:!0}},ew={justify:{type:"enum",className:"rt-r-ta",values:["start","center","end"],parseValue:function(e){return({start:"left",center:"center",end:"right"})[e]},responsive:!0},...V.n,...eC.i};var eb=r(28978);o.forwardRef((e,t)=>{let{layout:r,...n}=eE,{className:a,children:i,layout:s,...c}=(0,f.y)(e,n,p.E),u=(0,eb.RE)({value:s,className:eE.layout.className,propValues:eE.layout.values});return o.createElement("div",{ref:t,className:l("rt-TableRoot",a),...c},o.createElement(ed.ScrollArea,null,o.createElement("table",{className:l("rt-TableRootTable",u)},i)))}).displayName="Table.Root",o.forwardRef(({className:e,...t},r)=>o.createElement("thead",{...t,ref:r,className:l("rt-TableHeader",e)})).displayName="Table.Header",o.forwardRef(({className:e,...t},r)=>o.createElement("tbody",{...t,ref:r,className:l("rt-TableBody",e)})).displayName="Table.Body",o.forwardRef((e,t)=>{let{className:r,...n}=(0,f.y)(e,ey);return o.createElement("tr",{...n,ref:t,className:l("rt-TableRow",r)})}).displayName="Table.Row",o.forwardRef((e,t)=>{let{className:r,...n}=(0,f.y)(e,ew);return o.createElement("td",{className:l("rt-TableCell",r),ref:t,...n})}).displayName="Table.Cell",o.forwardRef((e,t)=>{let{className:r,...n}=(0,f.y)(e,ew);return o.createElement("th",{className:l("rt-TableCell","rt-TableColumnHeaderCell",r),scope:"col",ref:t,...n})}).displayName="Table.ColumnHeaderCell",o.forwardRef((e,t)=>{let{className:r,...n}=(0,f.y)(e,ew);return o.createElement("th",{className:l("rt-TableCell","rt-TableRowHeaderCell",r),scope:"row",ref:t,...n})}).displayName="Table.RowHeaderCell";var eN=r(42594);let eR={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},resize:{type:"enum",className:"rt-r-resize",values:["none","vertical","horizontal","both"],responsive:!0},...c.EG,...d.I};o.forwardRef((e,t)=>{let{className:r,color:n,radius:a,style:i,...s}=(0,f.y)(e,eR,p.E);return o.createElement("div",{"data-accent-color":n,"data-radius":a,className:l("rt-TextAreaRoot",r),style:i},o.createElement("textarea",{className:"rt-reset rt-TextAreaInput",ref:t,...s}))}).displayName="TextArea";var ex=r(36982);r(90448),r(29340);var eM=r(16823)},38460:function(e,t,r){"use strict";r.d(t,{C:function(){return n}});let n={asChild:{type:"boolean"}}},17534:function(e,t,r){"use strict";r.d(t,{EG:function(){return o},FN:function(){return n},ab:function(){return a},o3:function(){return l}});let n=["gray","gold","bronze","brown","yellow","amber","orange","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","lime","mint","sky"],a=["auto","gray","mauve","slate","sage","olive","sand"],o={color:{type:"enum",values:n,default:void 0}},l={color:{type:"enum",values:n,default:""}}},75232:function(e,t,r){"use strict";r.d(t,{c:function(){return a}});let n=["0","1","2","3","4","5","6","7","8","9"],a={gap:{type:"enum | string",className:"rt-r-gap",customProperties:["--gap"],values:n,responsive:!0},gapX:{type:"enum | string",className:"rt-r-cg",customProperties:["--column-gap"],values:n,responsive:!0},gapY:{type:"enum | string",className:"rt-r-rg",customProperties:["--row-gap"],values:n,responsive:!0}}},64791:function(e,t,r){"use strict";r.d(t,{F:function(){return n}});let n={height:{type:"string",className:"rt-r-h",customProperties:["--height"],responsive:!0},minHeight:{type:"string",className:"rt-r-min-h",customProperties:["--min-height"],responsive:!0},maxHeight:{type:"string",className:"rt-r-max-h",customProperties:["--max-height"],responsive:!0}}},75073:function(e,t,r){"use strict";r.d(t,{K:function(){return n}});let n={highContrast:{type:"boolean",className:"rt-high-contrast",default:void 0}}},85706:function(e,t,r){"use strict";r.d(t,{P:function(){return s}});var n=r(11379),a=r(64791),o=r(74577);let l=["visible","hidden","clip","scroll","auto"],i=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],s={...n.i,...o.n,...a.F,position:{type:"enum",className:"rt-r-position",values:["static","relative","absolute","fixed","sticky"],responsive:!0},inset:{type:"enum | string",className:"rt-r-inset",customProperties:["--inset"],values:i,responsive:!0},top:{type:"enum | string",className:"rt-r-top",customProperties:["--top"],values:i,responsive:!0},right:{type:"enum | string",className:"rt-r-right",customProperties:["--right"],values:i,responsive:!0},bottom:{type:"enum | string",className:"rt-r-bottom",customProperties:["--bottom"],values:i,responsive:!0},left:{type:"enum | string",className:"rt-r-left",customProperties:["--left"],values:i,responsive:!0},overflow:{type:"enum",className:"rt-r-overflow",values:l,responsive:!0},overflowX:{type:"enum",className:"rt-r-ox",values:l,responsive:!0},overflowY:{type:"enum",className:"rt-r-oy",values:l,responsive:!0},flexBasis:{type:"string",className:"rt-r-fb",customProperties:["--flex-basis"],responsive:!0},flexShrink:{type:"enum | string",className:"rt-r-fs",customProperties:["--flex-shrink"],values:["0","1"],responsive:!0},flexGrow:{type:"enum | string",className:"rt-r-fg",customProperties:["--flex-grow"],values:["0","1"],responsive:!0},gridColumn:{type:"string",className:"rt-r-gc",customProperties:["--grid-column"],responsive:!0},gridColumnStart:{type:"string",className:"rt-r-gcs",customProperties:["--grid-column-start"],responsive:!0},gridColumnEnd:{type:"string",className:"rt-r-gce",customProperties:["--grid-column-end"],responsive:!0},gridRow:{type:"string",className:"rt-r-gr",customProperties:["--grid-row"],responsive:!0},gridRowStart:{type:"string",className:"rt-r-grs",customProperties:["--grid-row-start"],responsive:!0},gridRowEnd:{type:"string",className:"rt-r-gre",customProperties:["--grid-row-end"],responsive:!0}}},76148:function(e,t,r){"use strict";r.d(t,{E:function(){return n}});let n={trim:{type:"enum",className:"rt-r-lt",values:["normal","start","end","both"],responsive:!0}}},66188:function(e,t,r){"use strict";r.d(t,{E:function(){return a}});let n=["0","1","2","3","4","5","6","7","8","9","-1","-2","-3","-4","-5","-6","-7","-8","-9"],a={m:{type:"enum | string",values:n,responsive:!0,className:"rt-r-m",customProperties:["--m"]},mx:{type:"enum | string",values:n,responsive:!0,className:"rt-r-mx",customProperties:["--ml","--mr"]},my:{type:"enum | string",values:n,responsive:!0,className:"rt-r-my",customProperties:["--mt","--mb"]},mt:{type:"enum | string",values:n,responsive:!0,className:"rt-r-mt",customProperties:["--mt"]},mr:{type:"enum | string",values:n,responsive:!0,className:"rt-r-mr",customProperties:["--mr"]},mb:{type:"enum | string",values:n,responsive:!0,className:"rt-r-mb",customProperties:["--mb"]},ml:{type:"enum | string",values:n,responsive:!0,className:"rt-r-ml",customProperties:["--ml"]}}},11379:function(e,t,r){"use strict";r.d(t,{i:function(){return a}});let n=["0","1","2","3","4","5","6","7","8","9"],a={p:{type:"enum | string",className:"rt-r-p",customProperties:["--p"],values:n,responsive:!0},px:{type:"enum | string",className:"rt-r-px",customProperties:["--pl","--pr"],values:n,responsive:!0},py:{type:"enum | string",className:"rt-r-py",customProperties:["--pt","--pb"],values:n,responsive:!0},pt:{type:"enum | string",className:"rt-r-pt",customProperties:["--pt"],values:n,responsive:!0},pr:{type:"enum | string",className:"rt-r-pr",customProperties:["--pr"],values:n,responsive:!0},pb:{type:"enum | string",className:"rt-r-pb",customProperties:["--pb"],values:n,responsive:!0},pl:{type:"enum | string",className:"rt-r-pl",customProperties:["--pl"],values:n,responsive:!0}}},57770:function(e,t,r){"use strict";r.d(t,{A:function(){return n}});let n=["initial","xs","sm","md","lg","xl"]},66176:function(e,t,r){"use strict";r.d(t,{I:function(){return a},p:function(){return n}});let n=["none","small","medium","large","full"],a={radius:{type:"enum",values:n,default:void 0}}},16532:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});let n={align:{type:"enum",className:"rt-r-ta",values:["left","center","right"],responsive:!0}}},91279:function(e,t,r){"use strict";r.d(t,{u:function(){return n}});let n={wrap:{type:"enum",className:"rt-r-tw",values:["wrap","nowrap","pretty","balance"],responsive:!0}}},58489:function(e,t,r){"use strict";r.d(t,{w:function(){return n}});let n={truncate:{type:"boolean",className:"rt-truncate"}}},53773:function(e,t,r){"use strict";r.d(t,{x:function(){return n}});let n={weight:{type:"enum",className:"rt-r-weight",values:["light","regular","medium","bold"],responsive:!0}}},74577:function(e,t,r){"use strict";r.d(t,{n:function(){return n}});let n={width:{type:"string",className:"rt-r-w",customProperties:["--width"],responsive:!0},minWidth:{type:"string",className:"rt-r-min-w",customProperties:["--min-width"],responsive:!0},maxWidth:{type:"string",className:"rt-r-max-w",customProperties:["--max-width"],responsive:!0}}}}]); \ No newline at end of file