@deslop/auth 0.1.1260 → 0.1.1266
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{(home)-DGIqrJyw.js → (home)-C6w15Knq.js} +1 -1
- package/dist/client/assets/{Check.es-AeXSmS94.js → Check.es-C9l513Ch.js} +1 -1
- package/dist/client/assets/{components-Ch6q3AXb.js → components-Dzgxr0NK.js} +1 -1
- package/dist/client/assets/{dialog-DhfNJiqT.js → dialog-hH_i4j1g.js} +1 -1
- package/dist/client/assets/{index-DhM_XKY3.js → index-CW-CqO1U.js} +2 -2
- package/dist/client/assets/{people-DlPxEkG3.js → people-Bk8xVEDM.js} +1 -1
- package/dist/client/assets/{route-Cv57jbpK.js → route-C2Xf2CnS.js} +1 -1
- package/dist/client/assets/utils-BepQ-yTS.js +2 -0
- package/dist/client/index.html +2 -2
- package/dist/server.js +211 -148
- package/package.json +2 -2
- package/dist/client/assets/utils-C0__Xx0_.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,n,o as r}from"./react-COyt-gOi.js";import{B as i,En as a,Fn as o,In as s,Ln as c,W as l,Wt as u,_t as d,ar as f,dn as p,en as m,ft as h,ir as g,it as _,jn as v,or as y,q as b,tn as x,un as S,wn as C}from"./utils-C0__Xx0_.js";import{$ as w,C as T,Ct as E,at as D,ct as O,et as k,g as A,h as j,it as M,lt as N,mt as P,nt as F,ot as ee,pt as te,rt as ne,st as I,tt as L,ut as R,wt as z,x as B}from"./components-Ch6q3AXb.js";function V(e){return a(e.defaultTagName??`div`,e,e)}var H=n(),U=f(`group/badge inline-flex w-fit shrink-0 items-center justify-center gap-1.5 overflow-hidden rounded-none border-0 bg-transparent px-0 py-0 text-[0.625rem] font-semibold tracking-widest whitespace-nowrap uppercase transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-0 has-data-[icon=inline-start]:pl-0 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!`,{variants:{variant:{default:`text-foreground [a]:hover:text-foreground/70`,secondary:`text-muted-foreground [a]:hover:text-foreground`,destructive:`text-destructive focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:text-destructive/70`,outline:`text-foreground [a]:hover:text-foreground/70`,ghost:`text-muted-foreground hover:text-foreground`,link:`text-foreground underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function W(e){let t=(0,H.c)(13),n,r,i,a,o;if(t[0]!==e){let{className:c,variant:l,render:u,...d}=e;n=u,o=l===void 0?`default`:l,a=V,r=`span`,i=s({className:g(U({variant:o}),c)},d),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o}else n=t[1],r=t[2],i=t[3],a=t[4],o=t[5];let c;t[6]===o?c=t[7]:(c={slot:`badge`,variant:o},t[6]=o,t[7]=c);let l;return t[8]!==n||t[9]!==r||t[10]!==i||t[11]!==c?(l={defaultTagName:r,props:i,render:n,state:c},t[8]=n,t[9]=r,t[10]=i,t[11]=c,t[12]=l):l=t[12],a(l)}var G=e(r(),1),K=G.createContext(void 0);function q(e){let t=G.useContext(K);if(!e&&t===void 0)throw Error(o(27));return t}var J=G.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:o=!1,...s}=e,c=q(),l=c.useState(`open`),u=c.useState(`nested`),d=c.useState(`mounted`),f={open:l,transitionStatus:c.useState(`transitionStatus`)};return a(`div`,e,{state:f,ref:[c.context.backdropRef,t],stateAttributesMapping:z,props:[{role:`presentation`,hidden:!d,style:{userSelect:`none`,WebkitUserSelect:`none`}},s],enabled:o||!u})}),Y=G.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:o=!1,nativeButton:s=!0,...c}=e,u=q(),d=u.useState(`open`),{getButtonProps:f,buttonRef:p}=v({disabled:o,native:s}),m={disabled:o};function h(e){d&&u.setOpen(!1,_(l,e.nativeEvent))}return a(`button`,e,{state:m,ref:[t,p],props:[{onClick:h},c,f]})}),X=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,...s}=e,c=q(),l=T(o);return c.useSyncedValueWithCleanup(`descriptionElementId`,l),a(`p`,e,{ref:t,props:[{id:l},s]})}),Z=G.createContext(void 0);function re(){let e=G.useContext(Z);if(e===void 0)throw Error(o(26));return e}var ie=`--nested-dialogs`,ae=`data-nested-dialog-open`,oe={...E,...u,nestedDialogOpen(e){return e?{[ae]:``}:null}},Q=t(),se=G.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:o,initialFocus:s,...c}=e,l=q(),u=l.useState(`descriptionElementId`),d=l.useState(`disablePointerDismissal`),f=l.useState(`floatingRootContext`),p=l.useState(`popupProps`),m=l.useState(`modal`),g=l.useState(`mounted`),_=l.useState(`nested`),v=l.useState(`nestedOpenDialogCount`),y=l.useState(`open`),b=l.useState(`openMethod`),x=l.useState(`titleElementId`),S=l.useState(`transitionStatus`),C=l.useState(`role`),w=f.useState(`floatingId`);re(),h({open:y,ref:l.context.popupRef,onComplete(){y&&l.context.onOpenChangeComplete?.(!0)}});let T=s===void 0?M(l.context.popupRef):s,E=v>0,D=l.useStateSetter(`popupElement`),O=a(`div`,e,{state:{open:y,nested:_,transitionStatus:S,nestedDialogOpen:E},props:[p,{id:w,"aria-labelledby":x,"aria-describedby":u,role:C,...F,hidden:!g,onKeyDown(e){B.has(e.key)&&e.stopPropagation()},style:{[ie]:v}},c],ref:[t,l.context.popupRef,D],stateAttributesMapping:oe});return(0,Q.jsx)(P,{context:f,openInteractionType:b,disabled:!g,closeOnFocusOut:!d,initialFocus:T,returnFocus:o,modal:m!==!1,restoreFocus:`popup`,children:O})}),ce=G.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,a=q(),o=a.useState(`mounted`),s=a.useState(`modal`),c=a.useState(`open`);return o||n?(0,Q.jsx)(Z.Provider,{value:n,children:(0,Q.jsxs)(i,{ref:t,...r,children:[o&&s===!0&&(0,Q.jsx)(A,{ref:a.context.internalBackdropRef,inert:d(!c)}),e.children]})}):null});function le({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),l=e.useState(`floatingRootContext`),[u,d]=G.useState(0),[f,p]=G.useState(0),h=u===0,g=te(l,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=x(t);if(h&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||m(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:h});return j(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(d(t),p(n))}),c(()=>{!r&&!i&&(d(0),p(0))},[r,i]),c(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(u+1,f+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,u,f,t]),O(e,{activeTriggerProps:g.reference,inactiveTriggerProps:g.trigger,popupProps:g.floating,nestedOpenDialogCount:u,nestedOpenDrawerCount:f}),null}var ue={...k,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},de=class extends S{constructor(e,t,n){let r=new L,i=fe(e,r,t,n);super(i,pe(r),ue)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(D(this.state,e,t.trigger)))}};function fe(e,t,n,r=!1){return{...w(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function pe(e){return{popupRef:G.createRef(),backdropRef:G.createRef(),internalBackdropRef:G.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function $(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,v=m?`alertdialog`:`dialog`,y=q(!0),x={modal:h,disablePointerDismissal:g,nested:y!=null,role:v},S=N((e,t)=>new de({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...x},e,t),!0);S.useControlledProp(`openProp`,r),S.useControlledProp(`triggerIdProp`,d),S.useSyncedValues(x),S.useContextCallback(`onOpenChange`,a),S.useContextCallback(`onOpenChangeComplete`,o);let C=S.useState(`open`),w=S.useState(`mounted`),T=S.useState(`payload`);R(S,C),ee(S);let{forceUnmount:E}=I(C,S);G.useImperativeHandle(l,()=>({unmount:E,close:()=>S.setOpen(!1,_(b))}),[E,S]);let D=C||w||u!=null;return(0,Q.jsxs)(K.Provider,{value:S,children:[u&&(0,Q.jsx)(ne,{handle:u,store:S}),D&&(0,Q.jsx)(le,{store:S,parentContext:y?.context,isDrawer:p}),typeof n==`function`?n({payload:T}):n]})}var me=p(function(e){return $(`dialog`,e)}),he=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,...s}=e,c=q(),l=T(o);return c.useSyncedValueWithCleanup(`titleElementId`,l),a(`h2`,e,{ref:t,props:[{id:l},s]})});function ge(e){let t=(0,H.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(me,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function _e(e){let t=(0,H.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(ce,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function ve(e){let t=(0,H.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(Y,{"data-slot":`dialog-close`,...n}),t[2]=n,t[3]=r),r}function ye(e){let t=(0,H.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=g(`fixed inset-0 isolate z-50 bg-black/20 duration-100 supports-backdrop-filter:backdrop-blur-sm data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(J,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function be(e){let t=(0,H.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,showCloseButton:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0||a,s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Q.jsx)(ye,{}),t[5]=s):s=t[5];let c;t[6]===r?c=t[7]:(c=g(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-none bg-popover p-6 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),t[6]=r,t[7]=c);let l;t[8]===o?l=t[9]:(l=o&&(0,Q.jsxs)(Y,{"data-slot":`dialog-close`,render:(0,Q.jsx)(C,{variant:`ghost`,className:`absolute top-5 right-5 bg-secondary`,size:`icon-sm`}),children:[(0,Q.jsx)(y,{}),(0,Q.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[8]=o,t[9]=l);let u;return t[10]!==n||t[11]!==i||t[12]!==c||t[13]!==l?(u=(0,Q.jsxs)(_e,{children:[s,(0,Q.jsxs)(se,{"data-slot":`dialog-content`,className:c,...i,children:[n,l]})]}),t[10]=n,t[11]=i,t[12]=c,t[13]=l,t[14]=u):u=t[14],u}function xe(e){let t=(0,H.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=g(`flex flex-col gap-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Se(e){let t=(0,H.c)(14),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,showCloseButton:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a!==void 0&&a,s;t[5]===r?s=t[6]:(s=g(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,r),t[5]=r,t[6]=s);let c;t[7]===o?c=t[8]:(c=o&&(0,Q.jsx)(Y,{render:(0,Q.jsx)(C,{variant:`outline`}),children:`Close`}),t[7]=o,t[8]=c);let l;return t[9]!==n||t[10]!==i||t[11]!==s||t[12]!==c?(l=(0,Q.jsxs)(`div`,{"data-slot":`dialog-footer`,className:s,...i,children:[n,c]}),t[9]=n,t[10]=i,t[11]=s,t[12]=c,t[13]=l):l=t[13],l}function Ce(e){let t=(0,H.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=g(`text-lg leading-none font-semibold tracking-wider uppercase`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(he,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function we(e){let t=(0,H.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=g(`mt-0.5 text-sm leading-relaxed text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(X,{"data-slot":`dialog-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{Se as a,W as c,we as i,V as l,ve as n,xe as o,be as r,Ce as s,ge as t};
|
|
1
|
+
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,n,o as r}from"./react-COyt-gOi.js";import{B as i,En as a,Fn as o,In as s,Ln as c,W as l,Wt as u,_t as d,ar as f,dn as p,en as m,ft as h,ir as g,it as _,jn as v,or as y,q as b,tn as x,un as S,wn as C}from"./utils-BepQ-yTS.js";import{$ as w,C as T,Ct as E,at as D,ct as O,et as k,g as A,h as j,it as M,lt as N,mt as P,nt as F,ot as ee,pt as te,rt as ne,st as I,tt as L,ut as R,wt as z,x as B}from"./components-Dzgxr0NK.js";function V(e){return a(e.defaultTagName??`div`,e,e)}var H=n(),U=f(`group/badge inline-flex w-fit shrink-0 items-center justify-center gap-1.5 overflow-hidden rounded-none border-0 bg-transparent px-0 py-0 text-[0.625rem] font-semibold tracking-widest whitespace-nowrap uppercase transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-0 has-data-[icon=inline-start]:pl-0 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!`,{variants:{variant:{default:`text-foreground [a]:hover:text-foreground/70`,secondary:`text-muted-foreground [a]:hover:text-foreground`,destructive:`text-destructive focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:text-destructive/70`,outline:`text-foreground [a]:hover:text-foreground/70`,ghost:`text-muted-foreground hover:text-foreground`,link:`text-foreground underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function W(e){let t=(0,H.c)(13),n,r,i,a,o;if(t[0]!==e){let{className:c,variant:l,render:u,...d}=e;n=u,o=l===void 0?`default`:l,a=V,r=`span`,i=s({className:g(U({variant:o}),c)},d),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o}else n=t[1],r=t[2],i=t[3],a=t[4],o=t[5];let c;t[6]===o?c=t[7]:(c={slot:`badge`,variant:o},t[6]=o,t[7]=c);let l;return t[8]!==n||t[9]!==r||t[10]!==i||t[11]!==c?(l={defaultTagName:r,props:i,render:n,state:c},t[8]=n,t[9]=r,t[10]=i,t[11]=c,t[12]=l):l=t[12],a(l)}var G=e(r(),1),K=G.createContext(void 0);function q(e){let t=G.useContext(K);if(!e&&t===void 0)throw Error(o(27));return t}var J=G.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:o=!1,...s}=e,c=q(),l=c.useState(`open`),u=c.useState(`nested`),d=c.useState(`mounted`),f={open:l,transitionStatus:c.useState(`transitionStatus`)};return a(`div`,e,{state:f,ref:[c.context.backdropRef,t],stateAttributesMapping:z,props:[{role:`presentation`,hidden:!d,style:{userSelect:`none`,WebkitUserSelect:`none`}},s],enabled:o||!u})}),Y=G.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:o=!1,nativeButton:s=!0,...c}=e,u=q(),d=u.useState(`open`),{getButtonProps:f,buttonRef:p}=v({disabled:o,native:s}),m={disabled:o};function h(e){d&&u.setOpen(!1,_(l,e.nativeEvent))}return a(`button`,e,{state:m,ref:[t,p],props:[{onClick:h},c,f]})}),X=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,...s}=e,c=q(),l=T(o);return c.useSyncedValueWithCleanup(`descriptionElementId`,l),a(`p`,e,{ref:t,props:[{id:l},s]})}),Z=G.createContext(void 0);function re(){let e=G.useContext(Z);if(e===void 0)throw Error(o(26));return e}var ie=`--nested-dialogs`,ae=`data-nested-dialog-open`,oe={...E,...u,nestedDialogOpen(e){return e?{[ae]:``}:null}},Q=t(),se=G.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:o,initialFocus:s,...c}=e,l=q(),u=l.useState(`descriptionElementId`),d=l.useState(`disablePointerDismissal`),f=l.useState(`floatingRootContext`),p=l.useState(`popupProps`),m=l.useState(`modal`),g=l.useState(`mounted`),_=l.useState(`nested`),v=l.useState(`nestedOpenDialogCount`),y=l.useState(`open`),b=l.useState(`openMethod`),x=l.useState(`titleElementId`),S=l.useState(`transitionStatus`),C=l.useState(`role`),w=f.useState(`floatingId`);re(),h({open:y,ref:l.context.popupRef,onComplete(){y&&l.context.onOpenChangeComplete?.(!0)}});let T=s===void 0?M(l.context.popupRef):s,E=v>0,D=l.useStateSetter(`popupElement`),O=a(`div`,e,{state:{open:y,nested:_,transitionStatus:S,nestedDialogOpen:E},props:[p,{id:w,"aria-labelledby":x,"aria-describedby":u,role:C,...F,hidden:!g,onKeyDown(e){B.has(e.key)&&e.stopPropagation()},style:{[ie]:v}},c],ref:[t,l.context.popupRef,D],stateAttributesMapping:oe});return(0,Q.jsx)(P,{context:f,openInteractionType:b,disabled:!g,closeOnFocusOut:!d,initialFocus:T,returnFocus:o,modal:m!==!1,restoreFocus:`popup`,children:O})}),ce=G.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,a=q(),o=a.useState(`mounted`),s=a.useState(`modal`),c=a.useState(`open`);return o||n?(0,Q.jsx)(Z.Provider,{value:n,children:(0,Q.jsxs)(i,{ref:t,...r,children:[o&&s===!0&&(0,Q.jsx)(A,{ref:a.context.internalBackdropRef,inert:d(!c)}),e.children]})}):null});function le({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),l=e.useState(`floatingRootContext`),[u,d]=G.useState(0),[f,p]=G.useState(0),h=u===0,g=te(l,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=x(t);if(h&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||m(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:h});return j(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(d(t),p(n))}),c(()=>{!r&&!i&&(d(0),p(0))},[r,i]),c(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(u+1,f+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,u,f,t]),O(e,{activeTriggerProps:g.reference,inactiveTriggerProps:g.trigger,popupProps:g.floating,nestedOpenDialogCount:u,nestedOpenDrawerCount:f}),null}var ue={...k,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},de=class extends S{constructor(e,t,n){let r=new L,i=fe(e,r,t,n);super(i,pe(r),ue)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(D(this.state,e,t.trigger)))}};function fe(e,t,n,r=!1){return{...w(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function pe(e){return{popupRef:G.createRef(),backdropRef:G.createRef(),internalBackdropRef:G.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function $(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,v=m?`alertdialog`:`dialog`,y=q(!0),x={modal:h,disablePointerDismissal:g,nested:y!=null,role:v},S=N((e,t)=>new de({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...x},e,t),!0);S.useControlledProp(`openProp`,r),S.useControlledProp(`triggerIdProp`,d),S.useSyncedValues(x),S.useContextCallback(`onOpenChange`,a),S.useContextCallback(`onOpenChangeComplete`,o);let C=S.useState(`open`),w=S.useState(`mounted`),T=S.useState(`payload`);R(S,C),ee(S);let{forceUnmount:E}=I(C,S);G.useImperativeHandle(l,()=>({unmount:E,close:()=>S.setOpen(!1,_(b))}),[E,S]);let D=C||w||u!=null;return(0,Q.jsxs)(K.Provider,{value:S,children:[u&&(0,Q.jsx)(ne,{handle:u,store:S}),D&&(0,Q.jsx)(le,{store:S,parentContext:y?.context,isDrawer:p}),typeof n==`function`?n({payload:T}):n]})}var me=p(function(e){return $(`dialog`,e)}),he=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:o,...s}=e,c=q(),l=T(o);return c.useSyncedValueWithCleanup(`titleElementId`,l),a(`h2`,e,{ref:t,props:[{id:l},s]})});function ge(e){let t=(0,H.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(me,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function _e(e){let t=(0,H.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(ce,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function ve(e){let t=(0,H.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(Y,{"data-slot":`dialog-close`,...n}),t[2]=n,t[3]=r),r}function ye(e){let t=(0,H.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=g(`fixed inset-0 isolate z-50 bg-black/20 duration-100 supports-backdrop-filter:backdrop-blur-sm data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(J,{"data-slot":`dialog-overlay`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function be(e){let t=(0,H.c)(15),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,showCloseButton:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0||a,s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Q.jsx)(ye,{}),t[5]=s):s=t[5];let c;t[6]===r?c=t[7]:(c=g(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-none bg-popover p-6 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,r),t[6]=r,t[7]=c);let l;t[8]===o?l=t[9]:(l=o&&(0,Q.jsxs)(Y,{"data-slot":`dialog-close`,render:(0,Q.jsx)(C,{variant:`ghost`,className:`absolute top-5 right-5 bg-secondary`,size:`icon-sm`}),children:[(0,Q.jsx)(y,{}),(0,Q.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[8]=o,t[9]=l);let u;return t[10]!==n||t[11]!==i||t[12]!==c||t[13]!==l?(u=(0,Q.jsxs)(_e,{children:[s,(0,Q.jsxs)(se,{"data-slot":`dialog-content`,className:c,...i,children:[n,l]})]}),t[10]=n,t[11]=i,t[12]=c,t[13]=l,t[14]=u):u=t[14],u}function xe(e){let t=(0,H.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=g(`flex flex-col gap-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Se(e){let t=(0,H.c)(14),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,showCloseButton:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a!==void 0&&a,s;t[5]===r?s=t[6]:(s=g(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,r),t[5]=r,t[6]=s);let c;t[7]===o?c=t[8]:(c=o&&(0,Q.jsx)(Y,{render:(0,Q.jsx)(C,{variant:`outline`}),children:`Close`}),t[7]=o,t[8]=c);let l;return t[9]!==n||t[10]!==i||t[11]!==s||t[12]!==c?(l=(0,Q.jsxs)(`div`,{"data-slot":`dialog-footer`,className:s,...i,children:[n,c]}),t[9]=n,t[10]=i,t[11]=s,t[12]=c,t[13]=l):l=t[13],l}function Ce(e){let t=(0,H.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=g(`text-lg leading-none font-semibold tracking-wider uppercase`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(he,{"data-slot":`dialog-title`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function we(e){let t=(0,H.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=g(`mt-0.5 text-sm leading-relaxed text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(X,{"data-slot":`dialog-description`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{Se as a,W as c,we as i,V as l,ve as n,xe as o,be as r,Ce as s,ge as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-
|
|
2
|
-
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{Ar as t,Cr as n,Dr as r,Er as i,Fr as a,Ir as o,Mr as s,Or as c,Pr as l,Sr as u,Tr as d,_r as f,br as p,dr as m,fr as h,gn as g,gr as ee,hn as te,hr as ne,jr as re,kr as _,mn as v,mr as ie,n as y,vr as b,wr as x,xr as S,yr as C,z as ae}from"./utils-C0__Xx0_.js";import{a as w,o as T}from"./react-COyt-gOi.js";var E=`Error preloading route! ☝️`;function D(e,t){if(e)return typeof e==`string`?e:e[t]}function O(e){return e?.scriptFormat??`module`}function k(e,t,n){let r=A(t),i=D(n,`script`)??r.crossOrigin;return{...O(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function A(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function j(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function M(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function N(e,t,n,r){let i=f(e),a=[],o=[];for(let e of i)for(let t of Array.isArray(e.scripts)?e.scripts:[]){if(!t)continue;let{children:e,...i}=t;a.push({tag:`script`,attrs:{...i,...r,nonce:n},children:e})}if(t)for(let e of i)for(let r of t.routes[e.routeId]?.scripts??[])o.push({tag:`script`,attrs:{...r.attrs,nonce:n},children:r.children});return[a,o]}function P([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var F=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,r=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=C:this.parentRoute||d();let i=r?C:t?.path;i&&i!==`/`&&(i=n(i));let a=t?.id||i,o=r?C:S((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(a??``));i===`__root__`&&(i=`/`);let s=o===`__root__`?`/`:i===void 0?this.parentRoute.fullPath:S(this.parentRoute.fullPath+`/`+i);this._path=i,this._id=o,this._fullPath=s,this._to=x(s)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>b({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},oe=class{constructor({id:e}){this.notFound=e=>p({routeId:this.id,...e}),this.redirect=e=>b({from:this.id,...e}),this.id=e}},se=class extends F{constructor(e){super(e)}},I=e(T(),1),L=w();function ce(...e){let t=I.useRef(e),n=t.current;return e.forEach((e,t)=>{i(n[t],e,!1,!0)||(n[t]=e)}),t.current}function R(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(E)})}function le(e,t){let n=typeof e==`string`&&_(e);if(n)return t.has(n)?e:null}function ue(e,t,n,r){let a=u(e.pathname,r),o=u(t.pathname,r);return(n?.exact?a!==o:!a.startsWith(o)||a.length!==o.length&&a[o.length]!==`/`)||(n?.includeSearch??!0)&&!i(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function de(e,t,n){let r=a(),i=I.useRef(null),o=I.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:s,to:c,preload:l,preloadDelay:u,disabled:d,target:f,onClick:p,onBlur:m,onFocus:h,onMouseEnter:g,onMouseLeave:te,onTouchStart:ne}=e,[re,v,y]=ce(e.search,e.params,s),b=I.useContext(ee),x=(r.stores._linkScopes??={})[b]??=ie(r,b),[S,C,ae]=I.useMemo(()=>{let t=le(c,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,s=()=>{let e=x[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=ge(t,r,d),s=d||o&&!_(o)?ue(e,t,y,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,s,y?.includeHash&&(()=>{let e=s();return e[1]?o??=[e[0],!1]:e})]},[r,x,e.from,e.hash,e.href,c,re,v,e.state,e.mask,e.unsafeRelative,y,d]),[w,T]=I.useSyncExternalStore(x[1],C,ae||C),E=T===void 0&&w,D=d||w===void 0,O=I.useRef(!1),k=e.reloadDocument||E||D?!1:l??r.options.defaultPreload,A=u??r.options.defaultPreloadDelay??0,j=I.useCallback(e=>{let t=e?.isIntersecting;t??k===`intent`?A?i.t??=setTimeout(()=>{i.t=void 0,R(r,S)},A):R(r,S):t===!1&&B(i)},[r,S,i,k,A]);I.useEffect(()=>{if(!k)return;k===`render`&&!O.current&&(O.current=!0,R(r,S));let e=!0,t;return k===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&j(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),B(i)}},[r,S,k,j,i]);let M=me(e,n);if(M.ref=t?o:i,E)return M.href=E,M;let N=t=>{let n=f??t.currentTarget.getAttribute(`target`);D||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),B(i),r.navigate({...e,_fromLocation:S._fromLocation}))},P=()=>{k===`intent`&&R(r,S)},F=()=>{k===`intent`&&B(i)};return M.onClick=V(p,N),M.onBlur=V(m,F),M.onFocus=V(h,j),M.onMouseEnter=V(g,j),M.onMouseLeave=V(te,F),M.onTouchStart=V(ne,P),he(M,e,T,w,D,n)}var fe={},pe={className:`active`},z=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function me(e,t){let n={};for(let r in e)z.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function he(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:l,style:u,target:d}=t,f=c(n?o:s,{})??(n?pe:fe);Object.assign(e,f),e.href=r,a!==`a`&&(e.disabled=i),e.target=d;let p=f.style;(u||p)&&(e.style=u&&p?{...u,...p}:u||p);let m=f.className;return(l||m)&&(e.className=l?m?`${l} ${m}`:l:m),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var B=e=>{clearTimeout(e.t),e.t=void 0},V=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function ge(e,n,r){if(r)return;let i=e.maskedLocation??e,a=i.external?i.publicHref:n.history.createHref(i.publicHref)||`/`;if(!i.external&&a===i.publicHref||!t(a,n.protocolAllowlist))return a}var H=I.memo(I.forwardRef((e,t)=>{let n=e._asChild||`a`,r=de(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return I.createElement(n,r,i)}),_e);function _e(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!z.has(r)||!i(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var ve={};function ye(e,t){let n=I.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=s(n.current,i):i}}function U(e){let t=a(),n=I.useContext(e.from?ne:ee),r=e.from??n,i=t.stores.getMatchStore(r),o=ye(e,t),s=h(i,e=>e?o(e):ve);if(s!==ve)return s;(e.shouldThrow??!0)&&d()}function W(e){return U({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function G(e){let{select:t,...n}=e;return U({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function K(e){return U({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function q(e){return U({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function J(e){return U({...e,select:t=>e.select?e.select(t.context):t.context})}function be(e){return new xe({id:e})}var xe=class extends oe{constructor({id:e}){super({id:e}),this.useMatch=e=>U({...e,from:this.id}),this.useRouteContext=e=>J({...e,from:this.id}),this.useSearch=e=>q({...e,from:this.id}),this.useParams=e=>K({...e,from:this.id}),this.useLoaderDeps=e=>G({...e,from:this.id,strict:!1}),this.useLoaderData=e=>W({...e,from:this.id,strict:!1}),this.useNavigate=()=>{let e=a();return l({from:e.routesById[this.id].fullPath})},this.notFound=e=>p({routeId:this.id,...e}),this.Link=I.forwardRef((e,t)=>{let n=a().routesById[this.id].fullPath;return(0,L.jsx)(H,{ref:t,from:n,...e})})}},Se=class extends F{constructor(e){super(e),this.useMatch=e=>U({...e,from:this.id}),this.useRouteContext=e=>J({...e,from:this.id}),this.useSearch=e=>q({...e,from:this.id}),this.useParams=e=>K({...e,from:this.id}),this.useLoaderDeps=e=>G({...e,from:this.id}),this.useLoaderData=e=>W({...e,from:this.id}),this.useNavigate=()=>l({from:this.fullPath}),this.Link=I.forwardRef((e,t)=>(0,L.jsx)(H,{ref:t,from:this.fullPath,...e}))}};function Ce(e){return new Se(e)}var we=class extends se{constructor(e){super(e),this.useMatch=e=>U({...e,from:this.id}),this.useRouteContext=e=>J({...e,from:this.id}),this.useSearch=e=>q({...e,from:this.id}),this.useParams=e=>K({...e,from:this.id}),this.useLoaderDeps=e=>G({...e,from:this.id}),this.useLoaderData=e=>W({...e,from:this.id}),this.useNavigate=()=>l({from:this.fullPath}),this.Link=I.forwardRef((e,t)=>(0,L.jsx)(H,{ref:t,from:this.fullPath,...e}))}};function Te(e){return new we(e)}function Y(e){return e=>{let t=Ce(e);return t.isRoot=!1,t}}function X(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,s.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),s=function(e){if(i){if(re(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(o)o(a());else throw a()}return I.createElement(r,e)};return s.preload=a,s}function Z(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Ee(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=I.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,L.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,L.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,L.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,L.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,L.jsx)(De,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function De({attrs:e,children:t,preventScriptHoist:n}){a();let r=m(),i=I.useMemo(()=>t===void 0?void 0:{__html:t},[t]),o=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(I.useEffect(()=>{if(!o){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return Z(r,e),document.head.appendChild(r),()=>r.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.scripts){if(e.hasAttribute(`src`))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Z(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,o]),o&&typeof t==`string`)return(0,L.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,L.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,L.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function Oe(e,t,n,i){n=f(n);let a=n.map(e=>e.meta).filter(e=>e!==void 0),o=[],s={},c;for(let e=a.length-1;e>=0;e--){let n=a[e];for(let e=n.length-1;e>=0;e--){let i=n[e];if(i){if(i.title)c||={tag:`title`,children:i.title};else if(`script:ld+json`in i)try{let e=JSON.stringify(i[`script:ld+json`]);o.push({tag:`script`,attrs:{type:`application/ld+json`},children:r(e)})}catch{}else{let e=i.name??i.property;if(e){if(s[e])continue;s[e]=!0}o.push({tag:`meta`,attrs:{...i,nonce:t}})}}}}c&&o.push(c),t&&o.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),o.reverse();let l=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),u=e.ssr?.manifest,d=[];u&&(n.forEach(e=>{(u.routes[e.routeId]?.css)?.forEach(e=>{let n=M(e);d.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:D(i,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),u.inlineStyle&&d.push({tag:`style`,attrs:{...u.inlineStyle.attrs,nonce:t},children:u.inlineStyle.children,inlineCss:!0}));let p=[];u&&n.forEach(e=>{u.routes[e.routeId]?.preloads?.forEach(e=>{p.push({tag:`link`,attrs:{...k(u,e,i),nonce:t}})})});let m=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),h=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),g=[];return j(g,o),g.push(...p),j(g,l),g.push(...d),j(g,m),j(g,h),g}var ke=e=>{let t=a(),n=t.options.ssr?.nonce,r=I.useCallback(r=>Oe(t,n,r,e),[e,n,t]);return h(t.stores.matches,r,{compare:i})};function Ae(e){let t=ke(e.assetCrossOrigin),n=a().options.ssr?.nonce;return(0,L.jsx)(L.Fragment,{children:t.map(e=>(0,I.createElement)(Ee,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var je={suppressHydrationWarning:!0},Me=()=>{let e=a(),t=e.options.ssr?.nonce,n=n=>{let r=N(n,e.ssr?.manifest,t,je);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return Ne(h(e.stores.matches,e=>P(n(e)),{compare:i}))};function Ne(e){return(0,L.jsx)(L.Fragment,{children:e.map((e,t)=>(0,I.createElement)(Ee,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Pe=Te({shellComponent:e=>(0,L.jsxs)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:[(0,L.jsx)(Ae,{}),(0,L.jsx)(Me,{}),(0,L.jsx)(ae,{children:e.children})]})}),Fe=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Ie=function(e){return`/`+e},Le={},Re=function(e){return e.pathname.endsWith(`.css`)},ze=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Q=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Ie(t,n);let r=s(t),i=Re(r);return ze(Le,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:Fe,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Be=Y(`/(home)`)({component:X(()=>Q(()=>import(`./route-Cv57jbpK.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`component`),validateSearch:g(y)}),Ve=Y(`/(home)/`)({component:X(()=>Q(()=>import(`./(home)-DGIqrJyw.js`),__vite__mapDeps([8,1,2,3,4,5,6])),`component`)}),He=Y(`/(home)/people`)({component:X(()=>Q(()=>import(`./people-DlPxEkG3.js`),__vite__mapDeps([9,1,2,3,4,5,7])),`component`)}),$=Be.update({id:`/(home)`,getParentRoute:()=>Pe}),Ue=Ve.update({id:`/`,path:`/`,getParentRoute:()=>$}),We={homePeopleRoute:He.update({id:`/people`,path:`/people`,getParentRoute:()=>$}),homeIndexRoute:Ue},Ge={homeRouteRoute:$._addFileChildren(We)},Ke=Pe._addFileChildren(Ge)._addFileTypes(),qe=v(Ke);te(qe);export{H as n,be as t};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-C2Xf2CnS.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/react-COyt-gOi.js","assets/components-Dzgxr0NK.js","assets/effect-CarHrcH-.js","assets/utils-BepQ-yTS.js","assets/Check.es-C9l513Ch.js","assets/dialog-hH_i4j1g.js","assets/(home)-C6w15Knq.js","assets/people-Bk8xVEDM.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{Ar as t,Cr as n,Dr as r,Er as i,Fr as a,Ir as o,Mr as s,Or as c,Pr as l,Sr as u,Tr as d,_r as f,br as p,dr as m,fr as h,gn as g,gr as ee,hn as te,hr as ne,jr as re,kr as _,mn as v,mr as ie,n as y,vr as b,wr as x,xr as S,yr as C,z as ae}from"./utils-BepQ-yTS.js";import{a as w,o as T}from"./react-COyt-gOi.js";var E=`Error preloading route! ☝️`;function D(e,t){if(e)return typeof e==`string`?e:e[t]}function O(e){return e?.scriptFormat??`module`}function k(e,t,n){let r=A(t),i=D(n,`script`)??r.crossOrigin;return{...O(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,fetchPriority:`low`,...i?{crossOrigin:i}:{}}}function A(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function j(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function M(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function N(e,t,n,r){let i=f(e),a=[],o=[];for(let e of i)for(let t of Array.isArray(e.scripts)?e.scripts:[]){if(!t)continue;let{children:e,...i}=t;a.push({tag:`script`,attrs:{...i,...r,nonce:n},children:e})}if(t)for(let e of i)for(let r of t.routes[e.routeId]?.scripts??[])o.push({tag:`script`,attrs:{...r.attrs,nonce:n},children:r.children});return[a,o]}function P([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var F=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,r=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=C:this.parentRoute||d();let i=r?C:t?.path;i&&i!==`/`&&(i=n(i));let a=t?.id||i,o=r?C:S((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(a??``));i===`__root__`&&(i=`/`);let s=o===`__root__`?`/`:i===void 0?this.parentRoute.fullPath:S(this.parentRoute.fullPath+`/`+i);this._path=i,this._id=o,this._fullPath=s,this._to=x(s)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>b({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},oe=class{constructor({id:e}){this.notFound=e=>p({routeId:this.id,...e}),this.redirect=e=>b({from:this.id,...e}),this.id=e}},se=class extends F{constructor(e){super(e)}},I=e(T(),1),L=w();function ce(...e){let t=I.useRef(e),n=t.current;return e.forEach((e,t)=>{i(n[t],e,!1,!0)||(n[t]=e)}),t.current}function R(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(E)})}function le(e,t){let n=typeof e==`string`&&_(e);if(n)return t.has(n)?e:null}function ue(e,t,n,r){let a=u(e.pathname,r),o=u(t.pathname,r);return(n?.exact?a!==o:!a.startsWith(o)||a.length!==o.length&&a[o.length]!==`/`)||(n?.includeSearch??!0)&&!i(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function de(e,t,n){let r=a(),i=I.useRef(null),o=I.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:s,to:c,preload:l,preloadDelay:u,disabled:d,target:f,onClick:p,onBlur:m,onFocus:h,onMouseEnter:g,onMouseLeave:te,onTouchStart:ne}=e,[re,v,y]=ce(e.search,e.params,s),b=I.useContext(ee),x=(r.stores._linkScopes??={})[b]??=ie(r,b),[S,C,ae]=I.useMemo(()=>{let t=le(c,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,s=()=>{let e=x[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=ge(t,r,d),s=d||o&&!_(o)?ue(e,t,y,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,s,y?.includeHash&&(()=>{let e=s();return e[1]?o??=[e[0],!1]:e})]},[r,x,e.from,e.hash,e.href,c,re,v,e.state,e.mask,e.unsafeRelative,y,d]),[w,T]=I.useSyncExternalStore(x[1],C,ae||C),E=T===void 0&&w,D=d||w===void 0,O=I.useRef(!1),k=e.reloadDocument||E||D?!1:l??r.options.defaultPreload,A=u??r.options.defaultPreloadDelay??0,j=I.useCallback(e=>{let t=e?.isIntersecting;t??k===`intent`?A?i.t??=setTimeout(()=>{i.t=void 0,R(r,S)},A):R(r,S):t===!1&&B(i)},[r,S,i,k,A]);I.useEffect(()=>{if(!k)return;k===`render`&&!O.current&&(O.current=!0,R(r,S));let e=!0,t;return k===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&j(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),B(i)}},[r,S,k,j,i]);let M=me(e,n);if(M.ref=t?o:i,E)return M.href=E,M;let N=t=>{let n=f??t.currentTarget.getAttribute(`target`);D||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),B(i),r.navigate({...e,_fromLocation:S._fromLocation}))},P=()=>{k===`intent`&&R(r,S)},F=()=>{k===`intent`&&B(i)};return M.onClick=V(p,N),M.onBlur=V(m,F),M.onFocus=V(h,j),M.onMouseEnter=V(g,j),M.onMouseLeave=V(te,F),M.onTouchStart=V(ne,P),he(M,e,T,w,D,n)}var fe={},pe={className:`active`},z=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function me(e,t){let n={};for(let r in e)z.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function he(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:l,style:u,target:d}=t,f=c(n?o:s,{})??(n?pe:fe);Object.assign(e,f),e.href=r,a!==`a`&&(e.disabled=i),e.target=d;let p=f.style;(u||p)&&(e.style=u&&p?{...u,...p}:u||p);let m=f.className;return(l||m)&&(e.className=l?m?`${l} ${m}`:l:m),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var B=e=>{clearTimeout(e.t),e.t=void 0},V=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function ge(e,n,r){if(r)return;let i=e.maskedLocation??e,a=i.external?i.publicHref:n.history.createHref(i.publicHref)||`/`;if(!i.external&&a===i.publicHref||!t(a,n.protocolAllowlist))return a}var H=I.memo(I.forwardRef((e,t)=>{let n=e._asChild||`a`,r=de(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return I.createElement(n,r,i)}),_e);function _e(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!z.has(r)||!i(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var ve={};function ye(e,t){let n=I.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=s(n.current,i):i}}function U(e){let t=a(),n=I.useContext(e.from?ne:ee),r=e.from??n,i=t.stores.getMatchStore(r),o=ye(e,t),s=h(i,e=>e?o(e):ve);if(s!==ve)return s;(e.shouldThrow??!0)&&d()}function W(e){return U({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function G(e){let{select:t,...n}=e;return U({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function K(e){return U({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function q(e){return U({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function J(e){return U({...e,select:t=>e.select?e.select(t.context):t.context})}function be(e){return new xe({id:e})}var xe=class extends oe{constructor({id:e}){super({id:e}),this.useMatch=e=>U({...e,from:this.id}),this.useRouteContext=e=>J({...e,from:this.id}),this.useSearch=e=>q({...e,from:this.id}),this.useParams=e=>K({...e,from:this.id}),this.useLoaderDeps=e=>G({...e,from:this.id,strict:!1}),this.useLoaderData=e=>W({...e,from:this.id,strict:!1}),this.useNavigate=()=>{let e=a();return l({from:e.routesById[this.id].fullPath})},this.notFound=e=>p({routeId:this.id,...e}),this.Link=I.forwardRef((e,t)=>{let n=a().routesById[this.id].fullPath;return(0,L.jsx)(H,{ref:t,from:n,...e})})}},Se=class extends F{constructor(e){super(e),this.useMatch=e=>U({...e,from:this.id}),this.useRouteContext=e=>J({...e,from:this.id}),this.useSearch=e=>q({...e,from:this.id}),this.useParams=e=>K({...e,from:this.id}),this.useLoaderDeps=e=>G({...e,from:this.id}),this.useLoaderData=e=>W({...e,from:this.id}),this.useNavigate=()=>l({from:this.fullPath}),this.Link=I.forwardRef((e,t)=>(0,L.jsx)(H,{ref:t,from:this.fullPath,...e}))}};function Ce(e){return new Se(e)}var we=class extends se{constructor(e){super(e),this.useMatch=e=>U({...e,from:this.id}),this.useRouteContext=e=>J({...e,from:this.id}),this.useSearch=e=>q({...e,from:this.id}),this.useParams=e=>K({...e,from:this.id}),this.useLoaderDeps=e=>G({...e,from:this.id}),this.useLoaderData=e=>W({...e,from:this.id}),this.useNavigate=()=>l({from:this.fullPath}),this.Link=I.forwardRef((e,t)=>(0,L.jsx)(H,{ref:t,from:this.fullPath,...e}))}};function Te(e){return new we(e)}function Y(e){return e=>{let t=Ce(e);return t.isRoot=!1,t}}function X(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,s.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),s=function(e){if(i){if(re(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(o)o(a());else throw a()}return I.createElement(r,e)};return s.preload=a,s}function Z(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Ee(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=I.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,L.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,L.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,L.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,L.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,L.jsx)(De,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function De({attrs:e,children:t,preventScriptHoist:n}){a();let r=m(),i=I.useMemo(()=>t===void 0?void 0:{__html:t},[t]),o=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(I.useEffect(()=>{if(!o){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return Z(r,e),document.head.appendChild(r),()=>r.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.scripts){if(e.hasAttribute(`src`))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Z(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,o]),o&&typeof t==`string`)return(0,L.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:i});if(!r){if(e?.src)return(0,L.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,L.jsx)(`script`,{...e,dangerouslySetInnerHTML:i,suppressHydrationWarning:!0})}return null}function Oe(e,t,n,i){n=f(n);let a=n.map(e=>e.meta).filter(e=>e!==void 0),o=[],s={},c;for(let e=a.length-1;e>=0;e--){let n=a[e];for(let e=n.length-1;e>=0;e--){let i=n[e];if(i){if(i.title)c||={tag:`title`,children:i.title};else if(`script:ld+json`in i)try{let e=JSON.stringify(i[`script:ld+json`]);o.push({tag:`script`,attrs:{type:`application/ld+json`},children:r(e)})}catch{}else{let e=i.name??i.property;if(e){if(s[e])continue;s[e]=!0}o.push({tag:`meta`,attrs:{...i,nonce:t}})}}}}c&&o.push(c),t&&o.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),o.reverse();let l=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),u=e.ssr?.manifest,d=[];u&&(n.forEach(e=>{(u.routes[e.routeId]?.css)?.forEach(e=>{let n=M(e);d.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:D(i,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),u.inlineStyle&&d.push({tag:`style`,attrs:{...u.inlineStyle.attrs,nonce:t},children:u.inlineStyle.children,inlineCss:!0}));let p=[];u&&n.forEach(e=>{u.routes[e.routeId]?.preloads?.forEach(e=>{p.push({tag:`link`,attrs:{...k(u,e,i),nonce:t}})})});let m=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),h=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),g=[];return j(g,o),g.push(...p),j(g,l),g.push(...d),j(g,m),j(g,h),g}var ke=e=>{let t=a(),n=t.options.ssr?.nonce,r=I.useCallback(r=>Oe(t,n,r,e),[e,n,t]);return h(t.stores.matches,r,{compare:i})};function Ae(e){let t=ke(e.assetCrossOrigin),n=a().options.ssr?.nonce;return(0,L.jsx)(L.Fragment,{children:t.map(e=>(0,I.createElement)(Ee,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var je={suppressHydrationWarning:!0},Me=()=>{let e=a(),t=e.options.ssr?.nonce,n=n=>{let r=N(n,e.ssr?.manifest,t,je);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r};return Ne(h(e.stores.matches,e=>P(n(e)),{compare:i}))};function Ne(e){return(0,L.jsx)(L.Fragment,{children:e.map((e,t)=>(0,I.createElement)(Ee,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Pe=Te({shellComponent:e=>(0,L.jsxs)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:[(0,L.jsx)(Ae,{}),(0,L.jsx)(Me,{}),(0,L.jsx)(ae,{children:e.children})]})}),Fe=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Ie=function(e){return`/`+e},Le={},Re=function(e){return e.pathname.endsWith(`.css`)},ze=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},Q=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Ie(t,n);let r=s(t),i=Re(r);return ze(Le,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:Fe,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Be=Y(`/(home)`)({component:X(()=>Q(()=>import(`./route-C2Xf2CnS.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`component`),validateSearch:g(y)}),Ve=Y(`/(home)/`)({component:X(()=>Q(()=>import(`./(home)-C6w15Knq.js`),__vite__mapDeps([8,1,2,3,4,5,6])),`component`)}),He=Y(`/(home)/people`)({component:X(()=>Q(()=>import(`./people-Bk8xVEDM.js`),__vite__mapDeps([9,1,2,3,4,5,7])),`component`)}),$=Be.update({id:`/(home)`,getParentRoute:()=>Pe}),Ue=Ve.update({id:`/`,path:`/`,getParentRoute:()=>$}),We={homePeopleRoute:He.update({id:`/people`,path:`/people`,getParentRoute:()=>$}),homeIndexRoute:Ue},Ge={homeRouteRoute:$._addFileChildren(We)},Ke=Pe._addFileChildren(Ge)._addFileTypes(),qe=v(Ke);te(qe);export{H as n,be as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,n,o as r}from"./react-COyt-gOi.js";import{F as i,N as a,V as o,W as s,a as c,c as l,o as u,s as d,t as f,z as p}from"./components-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,n,o as r}from"./react-COyt-gOi.js";import{F as i,N as a,V as o,W as s,a as c,c as l,o as u,s as d,t as f,z as p}from"./components-Dzgxr0NK.js";import{B as m,Ga as h,Ja as g,Sa as _,ia as v,ka as y,oa as b,va as x,ya as S}from"./effect-CarHrcH-.js";import{D as C,E as w,Nr as T,_n as E,a as D,g as O,r as k,wn as A}from"./utils-BepQ-yTS.js";import{a as j,c as M,i as N,n as P,r as ee,s as F,t as I}from"./dialog-hH_i4j1g.js";var L=n(),R=e(r()),z=t();function B(e){let t=(0,L.c)(11),n;t[0]!==e.person.id||t[1]!==e.person.name?(n=(0,z.jsx)(f,{id:e.person.id,name:e.person.name}),t[0]=e.person.id,t[1]=e.person.name,t[2]=n):n=t[2];let r=e.person.fullName??e.person.name,i;t[3]===r?i=t[4]:(i=(0,z.jsx)(`span`,{className:`min-w-0 truncate font-medium`,children:r}),t[3]=r,t[4]=i);let a=e.person.fullName!==void 0&&`@${e.person.name}`,o;t[5]===a?o=t[6]:(o=(0,z.jsx)(`span`,{className:`text-muted-foreground min-w-0 flex-1 truncate font-mono text-xs`,children:a}),t[5]=a,t[6]=o);let s;return t[7]!==n||t[8]!==i||t[9]!==o?(s=(0,z.jsxs)(z.Fragment,{children:[n,i,o]}),t[7]=n,t[8]=i,t[9]=o,t[10]=s):s=t[10],s}function V(e){let t=(0,L.c)(9),n=`person-${e.person.id}`,r;t[0]===e.person?r=t[1]:(r=(0,z.jsx)(B,{person:e.person}),t[0]=e.person,t[1]=r);let i;t[2]!==e.children||t[3]!==r?(i=(0,z.jsxs)(`div`,{className:`flex h-14 min-w-0 items-center gap-3 px-1 text-sm max-sm:h-12`,children:[r,e.children]}),t[2]=e.children,t[3]=r,t[4]=i):i=t[4];let a;return t[5]!==e.failure||t[6]!==n||t[7]!==i?(a=(0,z.jsxs)(`div`,{role:`listitem`,id:n,className:`border-b`,children:[i,e.failure]}),t[5]=e.failure,t[6]=n,t[7]=i,t[8]=a):a=t[8],a}function H(e){let t=(0,L.c)(28),n;t[0]===e.person.id?n=t[1]:(n=D(e.person.id),t[0]=e.person.id,t[1]=n);let[r,i]=o(n),s=e.person,c;t[2]===r?c=t[3]:(c=(0,z.jsx)(a,{result:r,className:`mr-1 mb-2 ml-10 wrap-anywhere`}),t[2]=r,t[3]=c);let l;t[4]===e.person.since?l=t[5]:(l=O(e.person.since),t[4]=e.person.since,t[5]=l);let u;t[6]===l?u=t[7]:(u=(0,z.jsx)(`span`,{className:`text-muted-foreground shrink-0 font-mono text-xs max-sm:hidden`,children:l}),t[6]=l,t[7]=u);let d;t[8]===r?d=t[9]:(d=m(r),t[8]=r,t[9]=d);let f;t[10]===i?f=t[11]:(f=()=>i(!0),t[10]=i,t[11]=f);let p;t[12]!==d||t[13]!==f?(p=(0,z.jsx)(A,{size:`sm`,className:`shrink-0 max-sm:h-11`,disabled:d,onClick:f,children:`Allow`}),t[12]=d,t[13]=f,t[14]=p):p=t[14];let h;t[15]===r?h=t[16]:(h=m(r),t[15]=r,t[16]=h);let g;t[17]===i?g=t[18]:(g=()=>i(!1),t[17]=i,t[18]=g);let _;t[19]!==h||t[20]!==g?(_=(0,z.jsx)(A,{size:`sm`,variant:`outline`,className:`shrink-0 max-sm:h-11`,disabled:h,onClick:g,children:`Decline`}),t[19]=h,t[20]=g,t[21]=_):_=t[21];let v;return t[22]!==e.person||t[23]!==_||t[24]!==c||t[25]!==u||t[26]!==p?(v=(0,z.jsxs)(V,{person:s,failure:c,children:[u,p,_]}),t[22]=e.person,t[23]=_,t[24]=c,t[25]=u,t[26]=p,t[27]=v):v=t[27],v}function U(e){let t=(0,L.c)(60),n;t[0]===e.person.id?n=t[1]:(n=C(e.person.id),t[0]=e.person.id,t[1]=n);let[r,i]=o(n),[s,f]=(0,R.useState)(!1);if(e.person.role===`Admin`){let n;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,z.jsx)(M,{variant:`outline`,className:`shrink-0`,children:`admin`}),t[2]=n):n=t[2];let r;return t[3]===e.person?r=t[4]:(r=(0,z.jsx)(V,{person:e.person,children:n}),t[3]=e.person,t[4]=r),r}let p=e.person.fullName??e.person.name,h=`person-${e.person.id}`,g;t[5]===e.person.since?g=t[6]:(g=O(e.person.since),t[5]=e.person.since,t[6]=g);let _=`${p}, member since ${g}`,v;t[7]===_?v=t[8]:(v=(0,z.jsx)(`div`,{role:`button`,tabIndex:0,"aria-haspopup":`menu`,"aria-label":_,className:`hover:bg-muted/50 flex h-14 min-w-0 items-center gap-3 px-1 text-sm max-sm:h-12`}),t[7]=_,t[8]=v);let y;t[9]===e.person?y=t[10]:(y=(0,z.jsx)(B,{person:e.person}),t[9]=e.person,t[10]=y);let b;t[11]===e.person.since?b=t[12]:(b=O(e.person.since),t[11]=e.person.since,t[12]=b);let x;t[13]===b?x=t[14]:(x=(0,z.jsx)(`span`,{className:`text-muted-foreground shrink-0 font-mono text-xs`,children:b}),t[13]=b,t[14]=x);let S;t[15]!==v||t[16]!==y||t[17]!==x?(S=(0,z.jsxs)(l,{render:v,children:[y,x]}),t[15]=v,t[16]=y,t[17]=x,t[18]=S):S=t[18];let w;t[19]===r?w=t[20]:(w=(0,z.jsx)(a,{result:r,className:`mr-1 mb-2 ml-10 wrap-anywhere`}),t[19]=r,t[20]=w);let T;t[21]!==h||t[22]!==S||t[23]!==w?(T=(0,z.jsxs)(`div`,{role:`listitem`,id:h,className:`border-b`,children:[S,w]}),t[21]=h,t[22]=S,t[23]=w,t[24]=T):T=t[24];let E;t[25]===r?E=t[26]:(E=m(r),t[25]=r,t[26]=E);let D;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(D=()=>f(!0),t[27]=D):D=t[27];let k;t[28]===E?k=t[29]:(k=(0,z.jsx)(u,{className:`w-auto min-w-36`,children:(0,z.jsx)(d,{variant:`destructive`,className:`max-sm:h-11`,disabled:E,onClick:D,children:`Remove`})}),t[28]=E,t[29]=k);let H;t[30]===p?H=t[31]:(H=(0,z.jsxs)(F,{children:[`Remove `,p,`?`]}),t[30]=p,t[31]=H);let U;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,z.jsx)(N,{children:`They will no longer be able to sign in to any Deslop app, and their sign-ins end.`}),t[32]=U):U=t[32];let W;t[33]===r?W=t[34]:(W=(0,z.jsx)(a,{result:r}),t[33]=r,t[34]=W);let G;t[35]===r?G=t[36]:(G=m(r),t[35]=r,t[36]=G);let K;t[37]===G?K=t[38]:(K=(0,z.jsx)(P,{render:(0,z.jsx)(A,{variant:`ghost`,disabled:G}),children:`Cancel`}),t[37]=G,t[38]=K);let q;t[39]===r?q=t[40]:(q=m(r),t[39]=r,t[40]=q);let J;t[41]===i?J=t[42]:(J=()=>i(),t[41]=i,t[42]=J);let Y;t[43]!==q||t[44]!==J?(Y=(0,z.jsx)(A,{variant:`destructive`,disabled:q,onClick:J,children:`Remove`}),t[43]=q,t[44]=J,t[45]=Y):Y=t[45];let X;t[46]!==K||t[47]!==Y?(X=(0,z.jsxs)(j,{children:[K,Y]}),t[46]=K,t[47]=Y,t[48]=X):X=t[48];let Z;t[49]!==H||t[50]!==W||t[51]!==X?(Z=(0,z.jsxs)(ee,{children:[H,U,W,X]}),t[49]=H,t[50]=W,t[51]=X,t[52]=Z):Z=t[52];let Q;t[53]!==s||t[54]!==Z?(Q=(0,z.jsx)(I,{open:s,onOpenChange:f,children:Z}),t[53]=s,t[54]=Z,t[55]=Q):Q=t[55];let $;return t[56]!==T||t[57]!==k||t[58]!==Q?($=(0,z.jsxs)(c,{children:[T,k,Q]}),t[56]=T,t[57]=k,t[58]=Q,t[59]=$):$=t[59],$}function W(){let e=(0,L.c)(8),t=_(s(w).value,g(h,Y)),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,z.jsx)(`h1`,{className:`sr-only`,children:`People`}),e[0]=n):n=e[0];let r=i,a=`${t.length} people · ${b(t,J)} waiting`,o=S(t,{onEmpty:q,onNonEmpty:G}),c;e[1]!==r||e[2]!==a||e[3]!==o?(c=(0,z.jsx)(r,{title:`Directory`,meta:a,className:`gap-0`,children:o}),e[1]=r,e[2]=a,e[3]=o,e[4]=c):c=e[4];let l;return e[5]!==n||e[6]!==c?(l=(0,z.jsxs)(z.Fragment,{children:[n,c]}),e[5]=n,e[6]=c,e[7]=l):l=e[7],l}function G(e){return(0,z.jsx)(`div`,{role:`list`,"aria-label":`People`,children:x(e,K)})}function K(e){return v(e.role===`Waiting`,{onFalse:()=>(0,z.jsx)(U,{person:e},e.id),onTrue:()=>(0,z.jsx)(H,{person:e},e.id)})}function q(){return(0,z.jsx)(E,{label:`No one yet`,description:`People appear here after they ask to join with GitHub.`,icon:(0,z.jsx)(f,{id:`none`,name:`?`})})}function J(e){return e.role===`Waiting`}function Y(e){return e.role!==`Waiting`}function X(){let e=(0,L.c)(2);if(!y(s(k).value,Z)){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,z.jsx)(T,{to:`/`}),e[0]=t):t=e[0],t}let t;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,z.jsx)(R.Suspense,{fallback:(0,z.jsx)(p,{label:`People`,media:!0,rows:3}),children:(0,z.jsx)(W,{})}),e[1]=t):t=e[1],t}function Z(e){return e.role===`Admin`}export{X as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,i as n,n as r,o as i}from"./react-COyt-gOi.js";import{A as a,B as o,C as s,D as c,E as l,Et as u,G as d,I as f,J as p,M as m,N as h,O as g,P as _,Q as v,R as y,S as b,St as x,T as S,Tt as C,U as w,V as T,W as E,X as D,Y as O,Z as k,_ as A,_t as j,b as M,bt as N,d as P,dt as ee,f as F,ft as I,gt as te,ht as ne,i as re,j as ie,k as ae,l as oe,m as se,n as ce,p as le,q as ue,r as de,t as fe,u as pe,v as me,vt as he,w as ge,xt as _e,y as ve,yt as ye,z as be}from"./components-Ch6q3AXb.js";import{$ as xe,Aa as Se,B as L,Ba as R,Ca as Ce,Dt as we,F as Te,Ha as Ee,Ia as De,J as Oe,La as ke,M as Ae,Na as je,Ot as Me,Pa as Ne,Q as Pe,S as Fe,Ua as Ie,Z as Le,ai as Re,at as ze,ca as Be,da as Ve,ha as He,ia as z,ka as Ue,li as We,mt as Ge,no as Ke,oa as qe,ot as Je,rt as Ye,si as Xe,sr as Ze,st as Qe,ui as $e,va as et,wa as tt,z as nt}from"./effect-CarHrcH-.js";import{t as rt}from"./Check.es-AeXSmS94.js";import{$ as it,A as at,An as ot,Bt as st,Cn as ct,Dn as lt,E as ut,En as dt,Fn as ft,H as pt,In as mt,Jn as ht,K as gt,Ln as _t,M as vt,Nn as yt,O as bt,On as xt,P as St,Pn as Ct,Qt as wt,Rn as Tt,Rt as Et,Sn as Dt,T as Ot,Tt as kt,U as At,Vt as jt,Xn as B,Z as Mt,Zn as Nt,ar as Pt,b as Ft,bn as It,bt as Lt,cn as Rt,cr as zt,en as V,f as Bt,fn as Vt,gt as Ht,h as Ut,i as Wt,in as Gt,ir as H,it as U,j as Kt,jn as qt,k as Jt,kn as Yt,ln as Xt,lr as Zt,nn as Qt,nt as $t,p as en,pr as tn,r as nn,rn,rt as an,s as on,sn,t as cn,tn as ln,tt as un,u as dn,ur as fn,v as pn,vn as mn,vt as hn,w as gn,wn as W,wt as _n,xn as vn,yn,yt as bn}from"./utils-C0__Xx0_.js";import{n as xn,t as Sn}from"./index-DhM_XKY3.js";import{c as Cn,i as wn,l as Tn,o as En,r as Dn,s as On,t as kn}from"./dialog-DhfNJiqT.js";var G=e(i(),1),An=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,128l-72,72V56Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z`}))]]),jn=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:An}));jn.displayName=`ArrowRightIcon`;var Mn=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M160,48V208L80,128Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z`}))]]),Nn=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:Mn}));Nn.displayName=`CaretLeftIcon`;var Pn=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M176,128,96,208V48Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z`}))]]),Fn=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:Pn}));Fn.displayName=`CaretRightIcon`;var In=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),Ln=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:In}));Ln.displayName=`CopyIcon`;var Rn=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Zm48,22.74A84.3,84.3,0,0,1,160.11,180H160a83.52,83.52,0,0,1-23.65-3.38l-7.86,7.87A12,12,0,0,1,120,188H108v12a12,12,0,0,1-12,12H84v12a12,12,0,0,1-12,12H40a20,20,0,0,1-20-20V187.31a19.86,19.86,0,0,1,5.86-14.14l53.52-53.52A84,84,0,1,1,244,98.74ZM202.43,53.57A59.48,59.48,0,0,0,158,36c-32,1-58,27.89-58,59.89a59.69,59.69,0,0,0,4.2,22.19,12,12,0,0,1-2.55,13.21L44,189v23H60V200a12,12,0,0,1,12-12H84V176a12,12,0,0,1,12-12h19l9.65-9.65a12,12,0,0,1,13.22-2.55A59.58,59.58,0,0,0,160,156h.08c32,0,58.87-26.07,59.89-58A59.55,59.55,0,0,0,202.43,53.57Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M232,98.36C230.73,136.92,198.67,168,160.09,168a71.68,71.68,0,0,1-26.92-5.17h0L120,176H96v24H72v24H40a8,8,0,0,1-8-8V187.31a8,8,0,0,1,2.34-5.65l58.83-58.83h0A71.68,71.68,0,0,1,88,95.91c0-38.58,31.08-70.64,69.64-71.87A72,72,0,0,1,232,98.36Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM180,92a16,16,0,1,1,16-16A16,16,0,0,1,180,92Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M215.15,40.85A78,78,0,0,0,86.2,121.31l-56.1,56.1a13.94,13.94,0,0,0-4.1,9.9V216a14,14,0,0,0,14,14H72a6,6,0,0,0,6-6V206H96a6,6,0,0,0,6-6V182h18a6,6,0,0,0,4.24-1.76l10.45-10.44A77.59,77.59,0,0,0,160,174h.1A78,78,0,0,0,215.15,40.85ZM226,98.16c-1.12,35.16-30.67,63.8-65.88,63.84a65.93,65.93,0,0,1-24.51-4.67,6,6,0,0,0-6.64,1.26L117.51,170H96a6,6,0,0,0-6,6v18H72a6,6,0,0,0-6,6v18H40a2,2,0,0,1-2-2V187.31a2,2,0,0,1,.58-1.41l58.83-58.83a6,6,0,0,0,1.26-6.64A65.61,65.61,0,0,1,94,95.92C94,60.71,122.68,31.16,157.83,30A66,66,0,0,1,226,98.16ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M213.74,42.26A76,76,0,0,0,88.51,121.84l-57,57A11.93,11.93,0,0,0,28,187.31V216a12,12,0,0,0,12,12H72a4,4,0,0,0,4-4V204H96a4,4,0,0,0,4-4V180h20a4,4,0,0,0,2.83-1.17l11.33-11.34A75.72,75.72,0,0,0,160,172h.1A76,76,0,0,0,213.74,42.26Zm14.22,56c-1.15,36.22-31.6,65.72-67.87,65.77H160a67.52,67.52,0,0,1-25.21-4.83,4,4,0,0,0-4.45.83l-12,12H96a4,4,0,0,0-4,4v20H72a4,4,0,0,0-4,4v20H40a4,4,0,0,1-4-4V187.31a4.06,4.06,0,0,1,1.17-2.83L96,125.66a4,4,0,0,0,.83-4.45A67.51,67.51,0,0,1,92,95.91C92,59.64,121.55,29.19,157.77,28A68,68,0,0,1,228,98.23ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z`}))]]),zn=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:Rn}));zn.displayName=`KeyIcon`;var Bn=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),Vn=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:Bn}));Vn.displayName=`MagnifyingGlassIcon`;var Hn=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z`}))]]),Un=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:Hn}));Un.displayName=`PlusIcon`;function Wn(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=an}=t,l=e.context.dataRef,u=G.useRef(void 0),d=Ht(),f=Xt(),p=G.useMemo(()=>{function t(t,n,r,i){let a=U(c,n,r);t&&i===`touch`&&s>0?f.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=N(e.pointerType,!0)&&_e(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||N(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=ln(s),p=st(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:N(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,f,s]);return G.useMemo(()=>n?{reference:p}:xt,[n,p])}var Gn=tn();function Kn(e){let t=G.useCallback(t=>e===void 0?Yt:e.subscribeStore(t),[e]),n=G.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,Gn.useSyncExternalStore)(t,n,()=>e?.serverStore)}var qn=sn&≫function Jn(e,t={}){let{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,o=G.useRef(!1),s=G.useRef(null),c=G.useRef(!0),l=Xt();G.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=ht(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&Nt(t)&&t===wt(yt(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return bn(Lt(r,`blur`,i),qn&&Lt(r,`keydown`,a,!0),qn&&Lt(r,`pointerdown`,l,!0))},[e,n]),G.useEffect(()=>{if(!n)return;function t(t){if(t.reason===`trigger-press`||t.reason===`escape-key`){let t=e.select(`domReferenceElement`);B(t)&&(s.current=t,o.current=!0)}}return i.on(`openchange`,t),()=>{i.off(`openchange`,t)}},[i,n,e]);let u=G.useMemo(()=>{function t(){o.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(n){let i=n.currentTarget;if(o.current){if(s.current===i)return;t()}let a=ln(n.nativeEvent);if(B(a)){if(qn&&!n.relatedTarget){if(!c.current&&!st(a))return}else if(!jt(a))return}let u=Et(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,U(un,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,U(un,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=B(r)&&r.hasAttribute(pt(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=wt(yt(t));!r&&n===t||V(a.current.floatingContext?.refs.floating.current,n)||V(t,n)||o||Et(r??n,e.context.triggerElements)||e.setOpen(!1,U(un,i))})}}},[a,r,e,l]);return G.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}var Yn=e(n(),1),Xn={current:null};function Zn(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Xn,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:m,guardStaleOpen:h=!1}=t,{dataRef:g,events:_}=e.context,y=j(l),b=v(e),x=G.useRef(!1),S=ye(i),C=ye(r),w=ye(o),T=ye(n),E=ye(m),A=ye(f),M=Tt(()=>O(g.current.openEvent?.type,b.interactedInside)),P=Tt(()=>E.current?.()!==!1),ee=Tt((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!V(t,n);if(!B(r))return!1;let a=r;return i.hasMatchingElement(e=>V(e,a))&&(!t||!V(t,a))}),F=Tt(()=>{b.handler&&=(yt(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,b.handler),void 0)}),I=Tt(()=>{k(b)});return u&&(b.handleCloseOptions=i?.__options),G.useEffect(()=>F,[F]),G.useEffect(()=>{if(!n)return;function e(e){e.open?x.current=!1:(x.current=e.reason===$t,F(),b.openChangeTimeout.clear(),b.restTimeout.clear(),b.blockMouseMove=!0,b.restTimeoutPending=!1)}return _.on(`openchange`,e),()=>{_.off(`openchange`,e)}},[n,_,b,F]),G.useEffect(()=>{if(!n)return;function t(t,n=!0){let r=ue(C.current,`close`,b.pointerType);r?b.openChangeTimeout.start(r,()=>{e.setOpen(!1,U($t,t)),y?.events.emit(`floating.closed`,t)}):n&&(b.openChangeTimeout.clear(),e.setOpen(!1,U($t,t)),y?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!B(r))return;function i(t){if(b.openChangeTimeout.clear(),b.blockMouseMove=!1,a&&!N(b.pointerType))return;let n=p(w.current),r=ue(C.current,`open`,b.pointerType),i=ln(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(B(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if(V(t,i)){c=t;break}}B(o)&&B(s)&&!e.context.triggerElements.hasElement(o)&&V(o,s)&&(c=s);let l=c!=null&&ee(s,c,i),u=e.select(`open`),d=A.current?.()??e.select(`transitionStatus`)===`ending`,f=!u&&d&&x.current,m=!l&&B(c)&&B(s)&&V(s,c)&&f,h=n>0&&!r,g=l&&(u||f)||m,_=!u||l;g?P()&&e.setOpen(!0,U($t,t,c)):h||(r?b.openChangeTimeout.start(r,()=>{_&&P()&&e.setOpen(!0,U($t,t,c))}):_&&P()&&e.setOpen(!0,U($t,t,c)))}function o(n){if(M()){I();return}F();let r=e.select(`domReferenceElement`),i=yt(r);b.restTimeout.clear(),b.restTimeoutPending=!1;let a=g.current.floatingContext??d?.();if(!Et(n.relatedTarget,e.context.triggerElements)){if(S.current&&a){e.select(`open`)||b.openChangeTimeout.clear();let r=c.current;b.handler=S.current({...a,tree:y,x:n.clientX,y:n.clientY,onClose(){I(),F(),T.current&&!M()&&r===e.select(`domReferenceElement`)&&t(n,!0)}}),i.addEventListener(`mousemove`,b.handler),b.handler(n)}else b.pointerType===`touch`&&V(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){V(r,e.relatedTarget)||(b.openChangeTimeout.clear(),b.restTimeout.clear(),b.restTimeoutPending=!1)}let f=h?Lt(r,`mouseout`,l):void 0;return s?bn(Lt(r,`mousemove`,i,{once:!0}),Lt(r,`mouseenter`,i),Lt(r,`mouseleave`,o),f):bn(Lt(r,`mouseenter`,i),Lt(r,`mouseleave`,o),f)},[F,I,g,C,e,n,S,b,u,ee,M,a,s,w,c,y,T,d,A,P,h]),G.useMemo(()=>{if(!n)return;function t(e){b.pointerType=e.pointerType}return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:n}=t,r=t.currentTarget,i=e.select(`domReferenceElement`),o=e.select(`open`),s=ee(i,r,t.target);if(a&&!N(b.pointerType))return;if(o&&s&&b.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=b.handleCloseOptions?.getScope?.()??r.ownerDocument.body;D(b,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=p(w.current);if(o&&!s||c===0||!s&&b.restTimeoutPending&&t.movementX**2+t.movementY**2<2)return;b.restTimeout.clear();function l(){if(b.restTimeoutPending=!1,M())return;let t=e.select(`open`);!b.blockMouseMove&&(!t||s)&&P()&&e.setOpen(!0,U($t,n,r))}b.pointerType===`touch`?Yn.flushSync(()=>{l()}):s&&o?l():(b.restTimeoutPending=!0,b.restTimeout.start(c,l))}}},[n,b,M,ee,a,e,w,P])}var Qn=.1,$n=Qn*Qn,K=.5;function er(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function tr(e,t,n,r,i,a,o,s,c,l){let u=!1;return er(e,t,n,r,i,a)&&(u=!u),er(e,t,i,a,o,s)&&(u=!u),er(e,t,o,s,c,l)&&(u=!u),er(e,t,c,l,n,r)&&(u=!u),u}function nr(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function rr(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function ir(e={}){let{blockPointerEvents:t=!1}=e,n=new Rt,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*$n;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=ln(r),g=r.type===`mouseleave`,_=V(u,h),v=V(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&B(r.relatedTarget)&&V(u,r.relatedTarget))return;function y(){return!!(s&&x(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let S=a.getBoundingClientRect(),C=u.getBoundingClientRect(),w=e>C.right-C.width/2,T=t>C.bottom-C.height/2,E=C.width>S.width,D=C.height>S.height,O=(E?S:C).left,k=(E?S:C).right,A=(D?S:C).top,j=(D?S:C).bottom;if(c===`top`&&t>=S.bottom-1||c===`bottom`&&t<=S.top+1||c===`left`&&e>=S.right-1||c===`right`&&e<=S.left+1){b();return}let M=!1;switch(c){case`top`:M=rr(d,f,O,S.top+1,k,C.bottom-1);break;case`bottom`:M=rr(d,f,O,C.top+1,k,S.bottom-1);break;case`left`:M=rr(d,f,C.right-1,j,S.left+1,A);break;case`right`:M=rr(d,f,S.right-1,j,C.left+1,A)}if(M)return;if(l&&!nr(d,f,S)||!g&&p(d,f)){b();return}let N=!1;switch(c){case`top`:{let n=E?K/2:K*4,r=E||w?e+n:e-n,i=E?e-n:w?e+n:e-n,a=t+K+1,o=w||E?C.bottom-K:C.top,s=w?E?C.bottom-K:C.top:C.bottom-K;N=tr(d,f,r,a,i,a,C.left,o,C.right,s);break}case`bottom`:{let n=E?K/2:K*4,r=E||w?e+n:e-n,i=E?e-n:w?e+n:e-n,a=t-K,o=w||E?C.top+K:C.bottom,s=w?E?C.top+K:C.bottom:C.top+K;N=tr(d,f,r,a,i,a,C.left,o,C.right,s);break}case`left`:{let n=D?K/2:K*4,r=D||T?t+n:t-n,i=D?t-n:T?t+n:t-n,a=e+K+1,o=T||D?C.right-K:C.left,s=T?D?C.right-K:C.left:C.right-K;N=tr(d,f,o,C.top,s,C.bottom,a,r,a,i);break}case`right`:{let n=D?K/2:K*4,r=D||T?t+n:t-n,i=D?t-n:T?t+n:t-n,a=e-K,o=T||D?C.left+K:C.right,s=T?D?C.left+K:C.right:C.left+K;N=tr(d,f,a,r,a,i,o,C.top,s,C.bottom);break}}N?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var ar=G.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return dt(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})}),or=G.createContext(void 0);function sr(){let e=G.useContext(or);if(e===void 0)throw Error(ft(31));return e}var q=t(),cr=G.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=G.useState(void 0),c=dt(`div`,e,{ref:t,props:{role:`group`,"aria-labelledby":o,...a}});return(0,q.jsx)(or.Provider,{value:s,children:c})}),lr=G.forwardRef(function(e,t){let n=l()?.Group??cr;return(0,q.jsx)(n,{...e,ref:t})}),ur=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,c=s(a),l=sr();return _t(()=>(l(c),()=>{l(e=>e===c?void 0:e)}),[l,c]),dt(`div`,e,{ref:t,props:{id:c,"aria-hidden":!0,...o}})}),dr={};function fr(e){g();let t=G.useContext(F);if(t!==null){let n=t.SubmenuRoot;return(0,q.jsx)(F.Provider,{value:null,children:(0,q.jsx)(n,{...t.options,...e})})}return(0,q.jsx)(ve.Provider,{value:dr,children:(0,q.jsx)(P,{...e,isSubmenu:!0})})}var pr=5;function mr(e,t){let n=hr(t);return e.clientX>=n.left-pr&&e.clientX<=n.right+pr&&e.clientY>=n.top-pr&&e.clientY<=n.bottom+pr}function hr(e){let t=e.getBoundingClientRect(),n=ht(e);if(Qt)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function gr(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=Ct(),{ref:i,index:a}=ge(e),o=n===a,s=G.useRef(null),c=ot(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function _r(e){let{render:t,className:n,style:r,state:i=xt,props:a=lt,refs:o=lt,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=gr({metadata:s});return dt(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function vr(e,t){function n(n,r,i){let a=n.currentTarget;Yn.flushSync(()=>{e.setOpen(!1,U(gt,n.nativeEvent,a))}),_n(a.isConnected?a:t.current,r,i)?.focus()}function r(t){n(t,-1,e.select(`positionerElement`))}function i(t){let r=e.select(`positionerElement`);r&&kt(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function yr(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=G.useRef(!1);return G.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,yt(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:xt,[t,n,r])}var br=Vt(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:c,openOnHover:l,delay:u=100,closeDelay:d=0,handle:f,payload:p,...m}=e,h=g(!0),_=Kn(f)??h?.store;if(!_)throw Error(ft(85));let v=s(c),y=_.useState(`isTriggerActive`,v),b=_.useState(`floatingRootContext`),x=_.useState(`isOpenedByTrigger`,v),S=_.useState(`triggerControlsId`,v),w=G.useRef(null),T=Sr(),E=Ct(!0),D=j(),O=G.useMemo(()=>D??new he,[D]),k=ne(O),A=te(),{registerTrigger:M,isMountedByThisTrigger:N}=ee(v,w,_,{payload:p,closeDelay:d,parent:T,floatingTreeRoot:O,floatingNodeId:k,floatingParentNodeId:A,keyboardEventRelay:E?.relayKeyboardEvent}),P=T.type===`menubar`,F=_.useState(`disabled`),I=a||F||P&&T.context.disabled,{getButtonProps:re,buttonRef:ie}=qt({disabled:I,native:o});G.useEffect(()=>{!x&&T.type===void 0&&(_.context.allowMouseUpTriggerRef.current=!1)},[_,x,T.type]);let ae=G.useRef(null),se=Xt(),ce=Tt(e=>{if(!ae.current)return;se.clear(),_.context.allowMouseUpTriggerRef.current=!1;let t=e.target;V(ae.current,t)||V(_.select(`positionerElement`),t)||t===ae.current||t!=null&&oe(t)===_.select(`rootId`)||mr(e,ae.current)||O.events.emit(`close`,{domEvent:e,reason:At})});G.useEffect(()=>{let e=yt(ae.current);if(x&&_.select(`lastOpenChangeReason`)===`trigger-hover`)return e.addEventListener(`mouseup`,ce,{once:!0}),()=>{e.removeEventListener(`mouseup`,ce)}},[x,ce,_]);let le=P&&T.context.hasSubmenuOpen,ue=Zn(b,{enabled:(l??le)&&!I&&(!P||le&&!N),handleClose:ir({blockPointerEvents:!P}),mouseOnly:!0,move:!1,restMs:T.type===void 0?u:void 0,delay:{close:d},triggerElementRef:w,externalTree:O,isActiveTrigger:y,isClosing:()=>_.select(`transitionStatus`)===`ending`}),de=xr(x,_.select(`lastOpenChangeReason`)),fe=Wn(b,{enabled:!I,event:x&&P?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:T.type===void 0&&de}),pe=Jn(b,{enabled:!I&&le}),me=yr({open:x,enabled:P,mouseDownAction:`open`}),ge=G.useMemo(()=>mt(pe.reference,fe.reference),[pe.reference,fe.reference]),_e=_.useState(`triggerProps`,N),ve=_.useState(`filterTriggerProps`),{handlePreFocusGuardFocus:ye,handleFocusTargetFocus:be}=vr(_,w),xe={disabled:I,open:x},Se=[ae,t,ie,M,w],L=[ge,ue??xt,_e,{"aria-haspopup":`menu`,"aria-controls":S,id:v,onMouseDown:e=>{_.select(`open`)||(se.start(200,()=>{_.context.allowMouseUpTriggerRef.current=!0}),yt(e.currentTarget).addEventListener(`mouseup`,ce,{once:!0}))}},ve,P?{role:`menuitem`}:{},me,m,re],R=dt(`button`,e,{enabled:!P,stateAttributesMapping:C,state:xe,ref:Se,props:L});return P?(0,q.jsx)(_r,{tag:`button`,render:n,className:r,style:i,state:xe,refs:Se,props:L,stateAttributesMapping:C}):x?(0,q.jsxs)(G.Fragment,{children:[(0,q.jsx)(hn,{ref:_.context.beforeTriggerFocusGuardRef,onFocus:ye},`${v}-pre-focus-guard`),(0,q.jsx)(G.Fragment,{children:R},v),(0,q.jsx)(hn,{ref:_.context.triggerFocusTargetRef,onFocus:be},`${v}-post-focus-guard`)]}):(0,q.jsx)(G.Fragment,{children:R},v)});function xr(e,t){let n=Xt(),[r,i]=G.useState(!1);return _t(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function Sr(){let e=le(!0);return G.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}var Cr={"aria-expanded":void 0},wr=G.forwardRef(function(e,t){let{render:n,className:r,style:i,label:a,id:o,nativeButton:c=!1,openOnHover:l=!0,delay:d=100,closeDelay:f=0,disabled:p=!1,...m}=e,h=g(!0);if(h?.parent.type!==`menu`)throw Error(ft(37));let _=ae(),v=M(),{store:y,parentVirtualFocus:b}=h,x=h.parent.store,C=ge({guess:!0,label:a}),w=s(o),T=y.useState(`open`),E=G.useRef(!1),D=y.useState(`positionerElement`),O=y.useState(`floatingRootContext`),k=y.useState(`floatingTreeRoot`),A=y.useState(`triggerPopupId`,w),j=I(w,y),N=Tt(e=>{j(e);let t=y.select(`activeTriggerElement`);e!==null&&y.select(`open`)&&(t===e||y.select(`activeTriggerId`)==null)&&y.update({activeTriggerId:w??null,activeTriggerElement:e,closeDelay:f})}),P=G.useRef(null),ee=G.useCallback(e=>{P.current=e,y.set(`activeTriggerElement`,e)},[y]);_t(()=>(N(P.current),()=>N(null)),[N,w,y]),_t(()=>{if(!T||!D)return;function e(e){ln(e)===y.context.beforeContentFocusGuardRef.current&&(E.current=e.relatedTarget===P.current)}return D.addEventListener(`focusout`,e,!0),()=>{E.current=!1,D.removeEventListener(`focusout`,e,!0)}},[T,D,y]),y.useSyncedValue(`closeDelay`,f);let F=y.useState(`disabled`),te=x.useState(`disabled`),ne=p||F||te,re=x.useState(`itemProps`),ie=x.useState(`isActive`,C.index),oe=G.useMemo(()=>({type:`submenu-trigger`,setActive(e){x.select(`highlightItemOnHover`)&&x.setActiveIndex(C.index,it,e)}}),[x,C.index]),{getItemProps:se,itemRef:ce}=S({closeOnClick:!1,disabled:ne,highlighted:ie,id:w,store:y,typingRef:x.context.typingRef,nativeButton:c,itemMetadata:oe,nodeId:_?.context.nodeId}),le=Zn(O,{enabled:y.useState(`hoverEnabled`)&&l&&!ne,handleClose:ir({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:d,delay:{open:d,close:f},shouldOpen:d>0?()=>x.select(`allowMouseEnter`):void 0,triggerElementRef:P,externalTree:k,isClosing:()=>y.select(`transitionStatus`)===`ending`,guardStaleOpen:!0}),ue=Wn(O,{enabled:!ne,event:`mousedown`,toggle:!0,ignoreMouse:l,stickIfOpen:l}).reference??xt,de=y.useState(`triggerProps`,!0);delete de.id;let fe={disabled:ne,highlighted:ie,open:T},pe=y.useState(`openMethod`),me=y.useState(`lastOpenChangeReason`)===`list-navigation`||pe===`keyboard`,he=T&&me&&rn,_e=v?.onTriggerKeyDown?{onKeyDown:v.onTriggerKeyDown}:void 0;return dt(`div`,e,{state:fe,stateAttributesMapping:u,props:[ue,le,de,_e,re,he?Cr:void 0,{"aria-controls":A,tabIndex:b||!(T||ie)?-1:0,onFocus(e){y.select(`open`)&&E.current&&(E.current=!1,y.setOpen(!1,U(gt,e.nativeEvent)))},onBlur(){ie&&x.setActiveIndex(null,Mt)}},m,se],ref:[t,C.ref,ce,N,ee]})}),Tr=G.forwardRef(function(e,t){let n=c(e,t,`submenu-trigger`);if(!n.visible)return null;let r=n.props?mt(n.props,e):e;return(0,q.jsx)(wr,{...r,ref:n.ref})}),J=r(),Er=1,Dr=.9,Or=.8,kr=.17,Ar=.1,jr=.999,Mr=.9999,Nr=.99,Pr=/[\\\/_+.#"@\[\(\{&]/,Fr=/[\\\/_+.#"@\[\(\{&]/g,Ir=/[\s-]/,Lr=/[\s-]/g;function Rr(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?Er:Nr;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;l>=0;)d=Rr(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=Er:Pr.test(e.charAt(l-1))?(d*=Or,p=e.slice(i,l-1).match(Fr),p&&i>0&&(d*=jr**+p.length)):Ir.test(e.charAt(l-1))?(d*=Dr,m=e.slice(i,l-1).match(Lr),m&&i>0&&(d*=jr**+m.length)):(d*=kr,i>0&&(d*=jr**+(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=Mr)),(d<Ar&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(f=Rr(e,t,n,r,l+1,a+2,o),f*Ar>d&&(d=f*Ar)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function zr(e){return e.toLowerCase().replace(Lr,` `)}function Br(e,t,n){return e=n&&n.length>0?`${e+` `+n.join(` `)}`:e,Rr(e,t,zr(e),zr(t),0,0,{})}var Vr=Object.defineProperty,Hr=(e,t)=>Vr(e,`name`,{value:t,configurable:!0}),Ur=!!(typeof window<`u`&&window.document&&window.document.createElement);function Wr(e,t,{checkForDefaultPrevented:n=!0}={}){return Hr(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Hr(Wr,`composeEventHandlers`);function Gr(e){if(!Ur)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Hr(Gr,`getOwnerWindow`);function Kr(e){if(!Ur)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Hr(Kr,`getOwnerDocument`);function qr(e,t=!1){let{activeElement:n}=Kr(e);if(!n?.nodeName)return null;if(Jr(n)&&n.contentDocument)return qr(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Kr(n).getElementById(e);if(t)return t}}return n}Hr(qr,`getActiveElement`);function Jr(e){return e.tagName===`IFRAME`}Hr(Jr,`isFrame`);var Yr=Object.defineProperty,Xr=(e,t)=>Yr(e,`name`,{value:t,configurable:!0});function Zr(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Xr(Zr,`setRef`);function Qr(...e){return t=>{let n=!1,r=e.map(e=>{let r=Zr(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Zr(e[t],null)}}}}Xr(Qr,`composeRefs`);function $r(...e){return G.useCallback(Qr(...e),e)}Xr($r,`useComposedRefs`);var ei=Object.defineProperty,Y=(e,t)=>ei(e,`name`,{value:t,configurable:!0});function ti(e,t){let n=G.createContext(t);n.displayName=e+`Context`;let r=Y(e=>{let{children:t,...r}=e,i=G.useMemo(()=>r,Object.values(r));return(0,q.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=G.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Y(i,`useContext`),[r,i]}Y(ti,`createContext`);function ni(e,t=[]){let n=[];function r(t,r){let i=G.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Y(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=G.useMemo(()=>o,Object.values(o));return(0,q.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=G.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Y(s,`useContext`),[o,s]}Y(r,`createContext`);let i=Y(()=>{let t=n.map(e=>G.createContext(e));return Y(function(n){let r=n?.[e]||t;return G.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,ri(i,...t)]}Y(ni,`createContextScope`);function ri(...e){let t=e[0];if(e.length===1)return t;let n=Y(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Y(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return G.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Y(ri,`composeContextScopes`);var ii=globalThis?.document?G.useLayoutEffect:()=>{},ai=Object.defineProperty,oi=(e,t)=>ai(e,`name`,{value:t,configurable:!0}),si=G.useId||(()=>void 0),ci=0;function li(e){let[t,n]=G.useState(si());return ii(()=>{e||n(e=>e??String(ci++))},[e]),e||(t?`radix-${t}`:``)}oi(li,`useId`);var ui=Object.defineProperty,di=(e,t)=>ui(e,`name`,{value:t,configurable:!0}),fi=G.useEffectEvent,pi=G.useInsertionEffect;function mi(e){if(typeof fi==`function`)return fi(e);let t=G.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof pi==`function`?pi(()=>{t.current=e}):ii(()=>{t.current=e}),G.useMemo(()=>((...e)=>t.current?.(...e)),[])}di(mi,`useEffectEvent`);var hi=Object.defineProperty,gi=(e,t)=>hi(e,`name`,{value:t,configurable:!0}),_i=G.useInsertionEffect||ii;function vi({prop:e,defaultProp:t,onChange:n=gi(()=>{},`onChange`),caller:r}){let[i,a,o]=yi({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,G.useCallback(t=>{if(s){let n=bi(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}gi(vi,`useControllableState`);function yi({defaultProp:e,onChange:t}){let[n,r]=G.useState(e),i=G.useRef(n),a=G.useRef(t);return _i(()=>{a.current=t},[t]),G.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}gi(yi,`useUncontrolledState`);function bi(e){return typeof e==`function`}gi(bi,`isFunction`);var xi=Symbol(`RADIX:SYNC_STATE`);function Si(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=mi(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=G.useReducer((t,n)=>{if(n.type===xi)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=G.useRef(p);G.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=G.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return G.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:xi,state:i})},[i,d.state,c]),[h,f]}gi(Si,`useControllableStateReducer`);var Ci=Object.defineProperty,X=(e,t)=>Ci(e,`name`,{value:t,configurable:!0});function wi(e){let t=G.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=Pi(r),G.Children.forEach(r,e=>{if(Ai(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;Mi(n)&&typeof Ri==`function`;)n=Ri(n._payload);a=Di(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=G.cloneElement(a,void 0,s):!o&&G.Children.count(r)===1&&G.isValidElement(r)&&(a=r);let c=a?ki(a):void 0,l=$r(n,c);if(!a){if(r||r===0)throw Error(o?Li(e):Ii(e));return r}let u=Oi(i,a.props??{});return a.type!==G.Fragment&&(u.ref=n?l:c),G.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}X(wi,`createSlot`);var Ti=Symbol.for(`radix.slottable`);function Ei(e){let t=X(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Ti,t}X(Ei,`createSlottable`);var Di=X((e,t)=>`child`in e.props?G.isValidElement(t)?G.cloneElement(t,void 0,e.props.children(t.props.children)):null:G.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function Oi(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Fi(a,i))}return{...e,...n}}X(Oi,`mergeProps`);function ki(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}X(ki,`getElementRef`);function Ai(e){return G.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Ti}X(Ai,`isSlottable`);var ji=Symbol.for(`react.lazy`);function Mi(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===ji&&`_payload`in e&&Ni(e._payload)}X(Mi,`isLazyComponent`);function Ni(e){return typeof e==`object`&&!!e&&`then`in e}X(Ni,`isPromiseLike`);function Pi(e){let t=e;for(;Mi(t)&&typeof Ri==`function`;)t=Ri(t._payload);return t}X(Pi,`useUnwrappedLazy`);function Fi(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}X(Fi,`concatAriaDescribedby`);var Ii=X(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Li=X(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Ri=G.use,zi=Object.defineProperty,Bi=(e,t)=>zi(e,`name`,{value:t,configurable:!0}),Z=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=wi(`Primitive.${t}`),r=G.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,q.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Vi(e,t){e&&Yn.flushSync(()=>e.dispatchEvent(t))}Bi(Vi,`dispatchDiscreteCustomEvent`);var Hi=Object.defineProperty,Ui=(e,t)=>Hi(e,`name`,{value:t,configurable:!0}),Wi=G.useInsertionEffect;function Gi(e){let t=G.useRef(e);return typeof Wi==`function`?Wi(()=>{t.current=e}):ii(()=>{t.current=e}),G.useMemo(()=>((...e)=>t.current?.(...e)),[])}Ui(Gi,`useCallbackRef`);var Ki=Object.defineProperty,Q=(e,t)=>Ki(e,`name`,{value:t,configurable:!0}),qi=`dismissableLayer.update`,Ji=`dismissableLayer.pointerDownOutside`,Yi=`dismissableLayer.focusOutside`,Xi,Zi=G.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Qi=G.forwardRef(Q(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=G.useContext(Zi),[d,f]=G.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=G.useState({}),h=$r(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=G.useRef(!1),C=ta(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:G.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=na(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=Gi(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return G.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),G.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Xi=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ra(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Xi))}},[d,p,n,u]),G.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ra())},[d,u]),G.useEffect(()=>{let e=Q(()=>m({}),`handleUpdate`);return document.addEventListener(qi,e),()=>document.removeEventListener(qi,e)},[]),(0,q.jsx)(Z.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:Wr(e.onFocusCapture,w.onFocusCapture),onBlurCapture:Wr(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:Wr(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`));function $i(){let e=G.useContext(Zi),[t,n]=G.useState(null);return G.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Q($i,`useDismissableLayerSurface`);var ea=Q(()=>!0,`IS_TRUE`);function ta(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=ea}=t,s=Gi(e),c=G.useRef(!1),l=G.useRef(!1),u=G.useRef(new Map),d=G.useRef(()=>{});return G.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}Q(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}Q(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}Q(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}Q(p,`handleInteractionBubble`);let m=Q(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||ia(Ji,s,p,{discrete:!0})};if(Q(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:Q(()=>c.current=!0,`onPointerDownCapture`)}}Q(ta,`usePointerDownOutside`);function na(e,t=globalThis?.document){let n=Gi(e),r=G.useRef(!1);return G.useEffect(()=>{let e=Q(e=>{e.target&&!r.current&&ia(Yi,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:Q(()=>r.current=!0,`onFocusCapture`),onBlurCapture:Q(()=>r.current=!1,`onBlurCapture`)}}Q(na,`useFocusOutside`);function ra(){let e=new CustomEvent(qi);document.dispatchEvent(e)}Q(ra,`dispatchUpdate`);function ia(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Vi(i,a):i.dispatchEvent(a)}Q(ia,`handleAndDispatchCustomEvent`);var aa=Object.defineProperty,$=(e,t)=>aa(e,`name`,{value:t,configurable:!0}),oa=`focusScope.autoFocusOnMount`,sa=`focusScope.autoFocusOnUnmount`,ca={bubbles:!1,cancelable:!0},la=G.forwardRef($(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=G.useState(null),u=Gi(a),d=Gi(o),f=G.useRef(null),p=$r(t,l),m=G.useRef(i);G.useEffect(()=>{m.current=i});let h=G.useCallback(e=>e?c?.contains(e)?!0:!!m.current?.some(t=>t.contains(e)):!1,[c]),g=G.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;G.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;h(t)?f.current=t:ba(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||ba(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ba(c)};$(e,`handleFocusIn`),$(t,`handleFocusOut`),$(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,g.paused,h]),G.useEffect(()=>{if(c){xa.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(oa,ca);c.addEventListener(oa,u),c.dispatchEvent(t),t.defaultPrevented||(ma(wa(ga(c)),{select:!0}),document.activeElement===e&&ba(c))}return()=>{c.removeEventListener(oa,u);let t=c.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(sa,ca);c.addEventListener(sa,d),c.dispatchEvent(r),r.defaultPrevented||ba(e??t.body,{select:!0}),c.removeEventListener(sa,d),xa.remove(g)},0)}}},[c,u,d,g]);let _=G.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=ha(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&ba(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&ba(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,q.jsx)(Z.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),ua=G.createContext(null);function da({registry:e,children:t}){return e?(0,q.jsx)(ua.Provider,{value:e,children:t}):t}$(da,`FocusScopeBranchProvider`);function fa(){let[e,t]=G.useState([]);return{nodes:e,registry:G.useMemo(()=>({add:$(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:$(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}$(fa,`useFocusScopeBranchRegistry`);function pa(e){let t=G.useContext(ua);G.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}$(pa,`useFocusScopeBranch`);function ma(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(ba(r,{select:t}),document.activeElement!==n)return}$(ma,`focusFirst`);function ha(e){let t=ga(e);return[_a(t,e),_a(t.reverse(),e)]}$(ha,`getTabbableEdges`);function ga(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:$(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}$(ga,`getTabbableCandidates`);function _a(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):va(r,{upTo:t})))return r}$(_a,`findVisible`);function va(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}$(va,`isHidden`);function ya(e){return e.tagName===`INPUT`&&typeof e.select==`function`}$(ya,`isSelectableInput`);function ba(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&ya(e)&&t&&e.select()}}$(ba,`focus`);var xa=Sa();function Sa(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ca(e,t),e.unshift(t)},remove(t){e=Ca(e,t),e[0]?.resume()}}}$(Sa,`createFocusScopesStack`);function Ca(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}$(Ca,`arrayRemove`);function wa(e){return e.filter(e=>e.tagName!==`A`)}$(wa,`removeLinks`);var Ta=Object.defineProperty,Ea=G.forwardRef(((e,t)=>Ta(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=G.useState(!1);ii(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Yn.createPortal((0,q.jsx)(Z.div,{...r,ref:t}),o):null},`Portal`)),Da=Object.defineProperty,Oa=(e,t)=>Da(e,`name`,{value:t,configurable:!0});function ka(e,t){return G.useReducer((e,n)=>t[e][n]??e,e)}Oa(ka,`useStateMachine`);var Aa=Oa(e=>{let{present:t,children:n}=e,r=ja(t),i=typeof n==`function`?n({present:r.isPresent}):G.Children.only(n),a=Na(r.ref,Fa(i));return typeof n==`function`||r.isPresent?G.cloneElement(i,{ref:a}):null},`Presence`);function ja(e){let[t,n]=G.useState(),r=G.useRef(null),i=G.useRef(e),a=G.useRef(`none`),o=G.useRef(void 0),[s,c]=ka(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return G.useEffect(()=>{s===`mounted`?(a.current=o.current??Pa(r.current),o.current=void 0):a.current=`none`},[s]),ii(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Pa(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),ii(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Oa(a=>{let o=Pa(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Oa(e=>{e.target===t&&(a.current=Pa(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:G.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Pa(t)}else r.current=null;n(e)},[])}}Oa(ja,`usePresence`);function Ma(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Oa(Ma,`setRef`);function Na(...e){let t=G.useRef(e);return t.current=e,G.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Ma(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Ma(n[e],null)}}},[])}Oa(Na,`useStableComposedRefs`);function Pa(e){return e?.animationName||`none`}Oa(Pa,`getAnimationName`);function Fa(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Oa(Fa,`getElementRef`);var Ia=Object.defineProperty,La=(e,t)=>Ia(e,`name`,{value:t,configurable:!0}),Ra=0,za=null;function Ba(e){return Va(),e.children}La(Ba,`FocusGuards`);function Va(){G.useEffect(()=>{za||={start:Ha(),end:Ha()};let{start:e,end:t}=za;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Ra++,()=>{Ra===1&&(za?.start.remove(),za?.end.remove(),za=null),Ra=Math.max(0,Ra-1)}},[])}La(Va,`useFocusGuards`);function Ha(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}La(Ha,`createFocusGuard`);var Ua=function(){return Ua=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ua.apply(this,arguments)};function Wa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ga(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ka=`right-scroll-bar-position`,qa=`width-before-scroll-bar`,Ja=`with-scroll-bars-hidden`,Ya=`--removed-body-scroll-bar-size`;function Xa(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Za(e,t){var n=(0,G.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Qa=typeof window<`u`?G.useLayoutEffect:G.useEffect,$a=new WeakMap;function eo(e,t){var n=Za(t||null,function(t){return e.forEach(function(e){return Xa(e,t)})});return Qa(function(){var t=$a.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Xa(e,null)}),i.forEach(function(e){r.has(e)||Xa(e,a)})}$a.set(n,e)},[e]),n}function to(e){return e}function no(e,t){t===void 0&&(t=to);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function ro(e){e===void 0&&(e={});var t=no(null);return t.options=Ua({async:!0,ssr:!1},e),t}var io=function(e){var t=e.sideCar,n=Wa(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return G.createElement(r,Ua({},n))};io.isSideCarExport=!0;function ao(e,t){return e.useMedium(t),io}var oo=ro(),so=function(){},co=G.forwardRef(function(e,t){var n=G.useRef(null),r=G.useState({onScrollCapture:so,onWheelCapture:so,onTouchMoveCapture:so}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Wa(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=eo([n,t]),C=Ua(Ua({},b),i);return G.createElement(G.Fragment,null,u&&G.createElement(x,{sideCar:oo,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?G.cloneElement(G.Children.only(s),Ua(Ua({},C),{ref:S})):G.createElement(v,Ua({},C,{className:c,ref:S}),s))});co.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},co.classNames={fullWidth:qa,zeroRight:Ka};var lo=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function uo(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=lo();return t&&e.setAttribute(`nonce`,t),e}function fo(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function po(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var mo=function(){var e=0,t=null;return{add:function(n){e==0&&(t=uo())&&(fo(t,n),po(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ho=function(){var e=mo();return function(t,n){G.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},go=function(){var e=ho();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},_o={left:0,top:0,right:0,gap:0},vo=function(e){return parseInt(e||``,10)||0},yo=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[vo(n),vo(r),vo(i)]},bo=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return _o;var t=yo(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},xo=go(),So=`data-scroll-locked`,Co=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
1
|
+
import{n as e}from"./rolldown-runtime-WkwZ5CU-.js";import{a as t,i as n,n as r,o as i}from"./react-COyt-gOi.js";import{A as a,B as o,C as s,D as c,E as l,Et as u,G as d,I as f,J as p,M as m,N as h,O as g,P as _,Q as v,R as y,S as b,St as x,T as S,Tt as C,U as w,V as T,W as E,X as D,Y as O,Z as k,_ as A,_t as j,b as M,bt as N,d as P,dt as ee,f as F,ft as I,gt as te,ht as ne,i as re,j as ie,k as ae,l as oe,m as se,n as ce,p as le,q as ue,r as de,t as fe,u as pe,v as me,vt as he,w as ge,xt as _e,y as ve,yt as ye,z as be}from"./components-Dzgxr0NK.js";import{$ as xe,Aa as Se,B as L,Ba as R,Ca as Ce,Dt as we,F as Te,Ha as Ee,Ia as De,J as Oe,La as ke,M as Ae,Na as je,Ot as Me,Pa as Ne,Q as Pe,S as Fe,Ua as Ie,Z as Le,ai as Re,at as ze,ca as Be,da as Ve,ha as He,ia as z,ka as Ue,li as We,mt as Ge,no as Ke,oa as qe,ot as Je,rt as Ye,si as Xe,sr as Ze,st as Qe,ui as $e,va as et,wa as tt,z as nt}from"./effect-CarHrcH-.js";import{t as rt}from"./Check.es-C9l513Ch.js";import{$ as it,A as at,An as ot,Bt as st,Cn as ct,Dn as lt,E as ut,En as dt,Fn as ft,H as pt,In as mt,Jn as ht,K as gt,Ln as _t,M as vt,Nn as yt,O as bt,On as xt,P as St,Pn as Ct,Qt as wt,Rn as Tt,Rt as Et,Sn as Dt,T as Ot,Tt as kt,U as At,Vt as jt,Xn as B,Z as Mt,Zn as Nt,ar as Pt,b as Ft,bn as It,bt as Lt,cn as Rt,cr as zt,en as V,f as Bt,fn as Vt,gt as Ht,h as Ut,i as Wt,in as Gt,ir as H,it as U,j as Kt,jn as qt,k as Jt,kn as Yt,ln as Xt,lr as Zt,nn as Qt,nt as $t,p as en,pr as tn,r as nn,rn,rt as an,s as on,sn,t as cn,tn as ln,tt as un,u as dn,ur as fn,v as pn,vn as mn,vt as hn,w as gn,wn as W,wt as _n,xn as vn,yn,yt as bn}from"./utils-BepQ-yTS.js";import{n as xn,t as Sn}from"./index-CW-CqO1U.js";import{c as Cn,i as wn,l as Tn,o as En,r as Dn,s as On,t as kn}from"./dialog-hH_i4j1g.js";var G=e(i(),1),An=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,128l-72,72V56Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z`}))]]),jn=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:An}));jn.displayName=`ArrowRightIcon`;var Mn=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M160,48V208L80,128Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z`}))]]),Nn=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:Mn}));Nn.displayName=`CaretLeftIcon`;var Pn=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M176,128,96,208V48Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z`}))]]),Fn=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:Pn}));Fn.displayName=`CaretRightIcon`;var In=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),Ln=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:In}));Ln.displayName=`CopyIcon`;var Rn=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Zm48,22.74A84.3,84.3,0,0,1,160.11,180H160a83.52,83.52,0,0,1-23.65-3.38l-7.86,7.87A12,12,0,0,1,120,188H108v12a12,12,0,0,1-12,12H84v12a12,12,0,0,1-12,12H40a20,20,0,0,1-20-20V187.31a19.86,19.86,0,0,1,5.86-14.14l53.52-53.52A84,84,0,1,1,244,98.74ZM202.43,53.57A59.48,59.48,0,0,0,158,36c-32,1-58,27.89-58,59.89a59.69,59.69,0,0,0,4.2,22.19,12,12,0,0,1-2.55,13.21L44,189v23H60V200a12,12,0,0,1,12-12H84V176a12,12,0,0,1,12-12h19l9.65-9.65a12,12,0,0,1,13.22-2.55A59.58,59.58,0,0,0,160,156h.08c32,0,58.87-26.07,59.89-58A59.55,59.55,0,0,0,202.43,53.57Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M232,98.36C230.73,136.92,198.67,168,160.09,168a71.68,71.68,0,0,1-26.92-5.17h0L120,176H96v24H72v24H40a8,8,0,0,1-8-8V187.31a8,8,0,0,1,2.34-5.65l58.83-58.83h0A71.68,71.68,0,0,1,88,95.91c0-38.58,31.08-70.64,69.64-71.87A72,72,0,0,1,232,98.36Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM180,92a16,16,0,1,1,16-16A16,16,0,0,1,180,92Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M215.15,40.85A78,78,0,0,0,86.2,121.31l-56.1,56.1a13.94,13.94,0,0,0-4.1,9.9V216a14,14,0,0,0,14,14H72a6,6,0,0,0,6-6V206H96a6,6,0,0,0,6-6V182h18a6,6,0,0,0,4.24-1.76l10.45-10.44A77.59,77.59,0,0,0,160,174h.1A78,78,0,0,0,215.15,40.85ZM226,98.16c-1.12,35.16-30.67,63.8-65.88,63.84a65.93,65.93,0,0,1-24.51-4.67,6,6,0,0,0-6.64,1.26L117.51,170H96a6,6,0,0,0-6,6v18H72a6,6,0,0,0-6,6v18H40a2,2,0,0,1-2-2V187.31a2,2,0,0,1,.58-1.41l58.83-58.83a6,6,0,0,0,1.26-6.64A65.61,65.61,0,0,1,94,95.92C94,60.71,122.68,31.16,157.83,30A66,66,0,0,1,226,98.16ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M213.74,42.26A76,76,0,0,0,88.51,121.84l-57,57A11.93,11.93,0,0,0,28,187.31V216a12,12,0,0,0,12,12H72a4,4,0,0,0,4-4V204H96a4,4,0,0,0,4-4V180h20a4,4,0,0,0,2.83-1.17l11.33-11.34A75.72,75.72,0,0,0,160,172h.1A76,76,0,0,0,213.74,42.26Zm14.22,56c-1.15,36.22-31.6,65.72-67.87,65.77H160a67.52,67.52,0,0,1-25.21-4.83,4,4,0,0,0-4.45.83l-12,12H96a4,4,0,0,0-4,4v20H72a4,4,0,0,0-4,4v20H40a4,4,0,0,1-4-4V187.31a4.06,4.06,0,0,1,1.17-2.83L96,125.66a4,4,0,0,0,.83-4.45A67.51,67.51,0,0,1,92,95.91C92,59.64,121.55,29.19,157.77,28A68,68,0,0,1,228,98.23ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z`}))]]),zn=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:Rn}));zn.displayName=`KeyIcon`;var Bn=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),Vn=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:Bn}));Vn.displayName=`MagnifyingGlassIcon`;var Hn=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z`}))]]),Un=G.forwardRef((e,t)=>G.createElement(zt,{ref:t,...e,weights:Hn}));Un.displayName=`PlusIcon`;function Wn(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=an}=t,l=e.context.dataRef,u=G.useRef(void 0),d=Ht(),f=Xt(),p=G.useMemo(()=>{function t(t,n,r,i){let a=U(c,n,r);t&&i===`touch`&&s>0?f.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=N(e.pointerType,!0)&&_e(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||N(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=ln(s),p=st(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:N(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,f,s]);return G.useMemo(()=>n?{reference:p}:xt,[n,p])}var Gn=tn();function Kn(e){let t=G.useCallback(t=>e===void 0?Yt:e.subscribeStore(t),[e]),n=G.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,Gn.useSyncExternalStore)(t,n,()=>e?.serverStore)}var qn=sn&≫function Jn(e,t={}){let{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,o=G.useRef(!1),s=G.useRef(null),c=G.useRef(!0),l=Xt();G.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=ht(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&Nt(t)&&t===wt(yt(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return bn(Lt(r,`blur`,i),qn&&Lt(r,`keydown`,a,!0),qn&&Lt(r,`pointerdown`,l,!0))},[e,n]),G.useEffect(()=>{if(!n)return;function t(t){if(t.reason===`trigger-press`||t.reason===`escape-key`){let t=e.select(`domReferenceElement`);B(t)&&(s.current=t,o.current=!0)}}return i.on(`openchange`,t),()=>{i.off(`openchange`,t)}},[i,n,e]);let u=G.useMemo(()=>{function t(){o.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(n){let i=n.currentTarget;if(o.current){if(s.current===i)return;t()}let a=ln(n.nativeEvent);if(B(a)){if(qn&&!n.relatedTarget){if(!c.current&&!st(a))return}else if(!jt(a))return}let u=Et(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,U(un,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,U(un,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=B(r)&&r.hasAttribute(pt(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=wt(yt(t));!r&&n===t||V(a.current.floatingContext?.refs.floating.current,n)||V(t,n)||o||Et(r??n,e.context.triggerElements)||e.setOpen(!1,U(un,i))})}}},[a,r,e,l]);return G.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}var Yn=e(n(),1),Xn={current:null};function Zn(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Xn,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:m,guardStaleOpen:h=!1}=t,{dataRef:g,events:_}=e.context,y=j(l),b=v(e),x=G.useRef(!1),S=ye(i),C=ye(r),w=ye(o),T=ye(n),E=ye(m),A=ye(f),M=Tt(()=>O(g.current.openEvent?.type,b.interactedInside)),P=Tt(()=>E.current?.()!==!1),ee=Tt((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!V(t,n);if(!B(r))return!1;let a=r;return i.hasMatchingElement(e=>V(e,a))&&(!t||!V(t,a))}),F=Tt(()=>{b.handler&&=(yt(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,b.handler),void 0)}),I=Tt(()=>{k(b)});return u&&(b.handleCloseOptions=i?.__options),G.useEffect(()=>F,[F]),G.useEffect(()=>{if(!n)return;function e(e){e.open?x.current=!1:(x.current=e.reason===$t,F(),b.openChangeTimeout.clear(),b.restTimeout.clear(),b.blockMouseMove=!0,b.restTimeoutPending=!1)}return _.on(`openchange`,e),()=>{_.off(`openchange`,e)}},[n,_,b,F]),G.useEffect(()=>{if(!n)return;function t(t,n=!0){let r=ue(C.current,`close`,b.pointerType);r?b.openChangeTimeout.start(r,()=>{e.setOpen(!1,U($t,t)),y?.events.emit(`floating.closed`,t)}):n&&(b.openChangeTimeout.clear(),e.setOpen(!1,U($t,t)),y?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!B(r))return;function i(t){if(b.openChangeTimeout.clear(),b.blockMouseMove=!1,a&&!N(b.pointerType))return;let n=p(w.current),r=ue(C.current,`open`,b.pointerType),i=ln(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(B(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if(V(t,i)){c=t;break}}B(o)&&B(s)&&!e.context.triggerElements.hasElement(o)&&V(o,s)&&(c=s);let l=c!=null&&ee(s,c,i),u=e.select(`open`),d=A.current?.()??e.select(`transitionStatus`)===`ending`,f=!u&&d&&x.current,m=!l&&B(c)&&B(s)&&V(s,c)&&f,h=n>0&&!r,g=l&&(u||f)||m,_=!u||l;g?P()&&e.setOpen(!0,U($t,t,c)):h||(r?b.openChangeTimeout.start(r,()=>{_&&P()&&e.setOpen(!0,U($t,t,c))}):_&&P()&&e.setOpen(!0,U($t,t,c)))}function o(n){if(M()){I();return}F();let r=e.select(`domReferenceElement`),i=yt(r);b.restTimeout.clear(),b.restTimeoutPending=!1;let a=g.current.floatingContext??d?.();if(!Et(n.relatedTarget,e.context.triggerElements)){if(S.current&&a){e.select(`open`)||b.openChangeTimeout.clear();let r=c.current;b.handler=S.current({...a,tree:y,x:n.clientX,y:n.clientY,onClose(){I(),F(),T.current&&!M()&&r===e.select(`domReferenceElement`)&&t(n,!0)}}),i.addEventListener(`mousemove`,b.handler),b.handler(n)}else b.pointerType===`touch`&&V(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){V(r,e.relatedTarget)||(b.openChangeTimeout.clear(),b.restTimeout.clear(),b.restTimeoutPending=!1)}let f=h?Lt(r,`mouseout`,l):void 0;return s?bn(Lt(r,`mousemove`,i,{once:!0}),Lt(r,`mouseenter`,i),Lt(r,`mouseleave`,o),f):bn(Lt(r,`mouseenter`,i),Lt(r,`mouseleave`,o),f)},[F,I,g,C,e,n,S,b,u,ee,M,a,s,w,c,y,T,d,A,P,h]),G.useMemo(()=>{if(!n)return;function t(e){b.pointerType=e.pointerType}return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:n}=t,r=t.currentTarget,i=e.select(`domReferenceElement`),o=e.select(`open`),s=ee(i,r,t.target);if(a&&!N(b.pointerType))return;if(o&&s&&b.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=b.handleCloseOptions?.getScope?.()??r.ownerDocument.body;D(b,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=p(w.current);if(o&&!s||c===0||!s&&b.restTimeoutPending&&t.movementX**2+t.movementY**2<2)return;b.restTimeout.clear();function l(){if(b.restTimeoutPending=!1,M())return;let t=e.select(`open`);!b.blockMouseMove&&(!t||s)&&P()&&e.setOpen(!0,U($t,n,r))}b.pointerType===`touch`?Yn.flushSync(()=>{l()}):s&&o?l():(b.restTimeoutPending=!0,b.restTimeout.start(c,l))}}},[n,b,M,ee,a,e,w,P])}var Qn=.1,$n=Qn*Qn,K=.5;function er(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function tr(e,t,n,r,i,a,o,s,c,l){let u=!1;return er(e,t,n,r,i,a)&&(u=!u),er(e,t,i,a,o,s)&&(u=!u),er(e,t,o,s,c,l)&&(u=!u),er(e,t,c,l,n,r)&&(u=!u),u}function nr(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function rr(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function ir(e={}){let{blockPointerEvents:t=!1}=e,n=new Rt,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*$n;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=ln(r),g=r.type===`mouseleave`,_=V(u,h),v=V(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&B(r.relatedTarget)&&V(u,r.relatedTarget))return;function y(){return!!(s&&x(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let S=a.getBoundingClientRect(),C=u.getBoundingClientRect(),w=e>C.right-C.width/2,T=t>C.bottom-C.height/2,E=C.width>S.width,D=C.height>S.height,O=(E?S:C).left,k=(E?S:C).right,A=(D?S:C).top,j=(D?S:C).bottom;if(c===`top`&&t>=S.bottom-1||c===`bottom`&&t<=S.top+1||c===`left`&&e>=S.right-1||c===`right`&&e<=S.left+1){b();return}let M=!1;switch(c){case`top`:M=rr(d,f,O,S.top+1,k,C.bottom-1);break;case`bottom`:M=rr(d,f,O,C.top+1,k,S.bottom-1);break;case`left`:M=rr(d,f,C.right-1,j,S.left+1,A);break;case`right`:M=rr(d,f,S.right-1,j,C.left+1,A)}if(M)return;if(l&&!nr(d,f,S)||!g&&p(d,f)){b();return}let N=!1;switch(c){case`top`:{let n=E?K/2:K*4,r=E||w?e+n:e-n,i=E?e-n:w?e+n:e-n,a=t+K+1,o=w||E?C.bottom-K:C.top,s=w?E?C.bottom-K:C.top:C.bottom-K;N=tr(d,f,r,a,i,a,C.left,o,C.right,s);break}case`bottom`:{let n=E?K/2:K*4,r=E||w?e+n:e-n,i=E?e-n:w?e+n:e-n,a=t-K,o=w||E?C.top+K:C.bottom,s=w?E?C.top+K:C.bottom:C.top+K;N=tr(d,f,r,a,i,a,C.left,o,C.right,s);break}case`left`:{let n=D?K/2:K*4,r=D||T?t+n:t-n,i=D?t-n:T?t+n:t-n,a=e+K+1,o=T||D?C.right-K:C.left,s=T?D?C.right-K:C.left:C.right-K;N=tr(d,f,o,C.top,s,C.bottom,a,r,a,i);break}case`right`:{let n=D?K/2:K*4,r=D||T?t+n:t-n,i=D?t-n:T?t+n:t-n,a=e-K,o=T||D?C.left+K:C.right,s=T?D?C.left+K:C.right:C.left+K;N=tr(d,f,a,r,a,i,o,C.top,s,C.bottom);break}}N?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var ar=G.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return dt(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})}),or=G.createContext(void 0);function sr(){let e=G.useContext(or);if(e===void 0)throw Error(ft(31));return e}var q=t(),cr=G.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=G.useState(void 0),c=dt(`div`,e,{ref:t,props:{role:`group`,"aria-labelledby":o,...a}});return(0,q.jsx)(or.Provider,{value:s,children:c})}),lr=G.forwardRef(function(e,t){let n=l()?.Group??cr;return(0,q.jsx)(n,{...e,ref:t})}),ur=G.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,c=s(a),l=sr();return _t(()=>(l(c),()=>{l(e=>e===c?void 0:e)}),[l,c]),dt(`div`,e,{ref:t,props:{id:c,"aria-hidden":!0,...o}})}),dr={};function fr(e){g();let t=G.useContext(F);if(t!==null){let n=t.SubmenuRoot;return(0,q.jsx)(F.Provider,{value:null,children:(0,q.jsx)(n,{...t.options,...e})})}return(0,q.jsx)(ve.Provider,{value:dr,children:(0,q.jsx)(P,{...e,isSubmenu:!0})})}var pr=5;function mr(e,t){let n=hr(t);return e.clientX>=n.left-pr&&e.clientX<=n.right+pr&&e.clientY>=n.top-pr&&e.clientY<=n.bottom+pr}function hr(e){let t=e.getBoundingClientRect(),n=ht(e);if(Qt)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function gr(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=Ct(),{ref:i,index:a}=ge(e),o=n===a,s=G.useRef(null),c=ot(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function _r(e){let{render:t,className:n,style:r,state:i=xt,props:a=lt,refs:o=lt,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=gr({metadata:s});return dt(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function vr(e,t){function n(n,r,i){let a=n.currentTarget;Yn.flushSync(()=>{e.setOpen(!1,U(gt,n.nativeEvent,a))}),_n(a.isConnected?a:t.current,r,i)?.focus()}function r(t){n(t,-1,e.select(`positionerElement`))}function i(t){let r=e.select(`positionerElement`);r&&kt(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function yr(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=G.useRef(!1);return G.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,yt(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:xt,[t,n,r])}var br=Vt(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:c,openOnHover:l,delay:u=100,closeDelay:d=0,handle:f,payload:p,...m}=e,h=g(!0),_=Kn(f)??h?.store;if(!_)throw Error(ft(85));let v=s(c),y=_.useState(`isTriggerActive`,v),b=_.useState(`floatingRootContext`),x=_.useState(`isOpenedByTrigger`,v),S=_.useState(`triggerControlsId`,v),w=G.useRef(null),T=Sr(),E=Ct(!0),D=j(),O=G.useMemo(()=>D??new he,[D]),k=ne(O),A=te(),{registerTrigger:M,isMountedByThisTrigger:N}=ee(v,w,_,{payload:p,closeDelay:d,parent:T,floatingTreeRoot:O,floatingNodeId:k,floatingParentNodeId:A,keyboardEventRelay:E?.relayKeyboardEvent}),P=T.type===`menubar`,F=_.useState(`disabled`),I=a||F||P&&T.context.disabled,{getButtonProps:re,buttonRef:ie}=qt({disabled:I,native:o});G.useEffect(()=>{!x&&T.type===void 0&&(_.context.allowMouseUpTriggerRef.current=!1)},[_,x,T.type]);let ae=G.useRef(null),se=Xt(),ce=Tt(e=>{if(!ae.current)return;se.clear(),_.context.allowMouseUpTriggerRef.current=!1;let t=e.target;V(ae.current,t)||V(_.select(`positionerElement`),t)||t===ae.current||t!=null&&oe(t)===_.select(`rootId`)||mr(e,ae.current)||O.events.emit(`close`,{domEvent:e,reason:At})});G.useEffect(()=>{let e=yt(ae.current);if(x&&_.select(`lastOpenChangeReason`)===`trigger-hover`)return e.addEventListener(`mouseup`,ce,{once:!0}),()=>{e.removeEventListener(`mouseup`,ce)}},[x,ce,_]);let le=P&&T.context.hasSubmenuOpen,ue=Zn(b,{enabled:(l??le)&&!I&&(!P||le&&!N),handleClose:ir({blockPointerEvents:!P}),mouseOnly:!0,move:!1,restMs:T.type===void 0?u:void 0,delay:{close:d},triggerElementRef:w,externalTree:O,isActiveTrigger:y,isClosing:()=>_.select(`transitionStatus`)===`ending`}),de=xr(x,_.select(`lastOpenChangeReason`)),fe=Wn(b,{enabled:!I,event:x&&P?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:T.type===void 0&&de}),pe=Jn(b,{enabled:!I&&le}),me=yr({open:x,enabled:P,mouseDownAction:`open`}),ge=G.useMemo(()=>mt(pe.reference,fe.reference),[pe.reference,fe.reference]),_e=_.useState(`triggerProps`,N),ve=_.useState(`filterTriggerProps`),{handlePreFocusGuardFocus:ye,handleFocusTargetFocus:be}=vr(_,w),xe={disabled:I,open:x},Se=[ae,t,ie,M,w],L=[ge,ue??xt,_e,{"aria-haspopup":`menu`,"aria-controls":S,id:v,onMouseDown:e=>{_.select(`open`)||(se.start(200,()=>{_.context.allowMouseUpTriggerRef.current=!0}),yt(e.currentTarget).addEventListener(`mouseup`,ce,{once:!0}))}},ve,P?{role:`menuitem`}:{},me,m,re],R=dt(`button`,e,{enabled:!P,stateAttributesMapping:C,state:xe,ref:Se,props:L});return P?(0,q.jsx)(_r,{tag:`button`,render:n,className:r,style:i,state:xe,refs:Se,props:L,stateAttributesMapping:C}):x?(0,q.jsxs)(G.Fragment,{children:[(0,q.jsx)(hn,{ref:_.context.beforeTriggerFocusGuardRef,onFocus:ye},`${v}-pre-focus-guard`),(0,q.jsx)(G.Fragment,{children:R},v),(0,q.jsx)(hn,{ref:_.context.triggerFocusTargetRef,onFocus:be},`${v}-post-focus-guard`)]}):(0,q.jsx)(G.Fragment,{children:R},v)});function xr(e,t){let n=Xt(),[r,i]=G.useState(!1);return _t(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function Sr(){let e=le(!0);return G.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}var Cr={"aria-expanded":void 0},wr=G.forwardRef(function(e,t){let{render:n,className:r,style:i,label:a,id:o,nativeButton:c=!1,openOnHover:l=!0,delay:d=100,closeDelay:f=0,disabled:p=!1,...m}=e,h=g(!0);if(h?.parent.type!==`menu`)throw Error(ft(37));let _=ae(),v=M(),{store:y,parentVirtualFocus:b}=h,x=h.parent.store,C=ge({guess:!0,label:a}),w=s(o),T=y.useState(`open`),E=G.useRef(!1),D=y.useState(`positionerElement`),O=y.useState(`floatingRootContext`),k=y.useState(`floatingTreeRoot`),A=y.useState(`triggerPopupId`,w),j=I(w,y),N=Tt(e=>{j(e);let t=y.select(`activeTriggerElement`);e!==null&&y.select(`open`)&&(t===e||y.select(`activeTriggerId`)==null)&&y.update({activeTriggerId:w??null,activeTriggerElement:e,closeDelay:f})}),P=G.useRef(null),ee=G.useCallback(e=>{P.current=e,y.set(`activeTriggerElement`,e)},[y]);_t(()=>(N(P.current),()=>N(null)),[N,w,y]),_t(()=>{if(!T||!D)return;function e(e){ln(e)===y.context.beforeContentFocusGuardRef.current&&(E.current=e.relatedTarget===P.current)}return D.addEventListener(`focusout`,e,!0),()=>{E.current=!1,D.removeEventListener(`focusout`,e,!0)}},[T,D,y]),y.useSyncedValue(`closeDelay`,f);let F=y.useState(`disabled`),te=x.useState(`disabled`),ne=p||F||te,re=x.useState(`itemProps`),ie=x.useState(`isActive`,C.index),oe=G.useMemo(()=>({type:`submenu-trigger`,setActive(e){x.select(`highlightItemOnHover`)&&x.setActiveIndex(C.index,it,e)}}),[x,C.index]),{getItemProps:se,itemRef:ce}=S({closeOnClick:!1,disabled:ne,highlighted:ie,id:w,store:y,typingRef:x.context.typingRef,nativeButton:c,itemMetadata:oe,nodeId:_?.context.nodeId}),le=Zn(O,{enabled:y.useState(`hoverEnabled`)&&l&&!ne,handleClose:ir({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:d,delay:{open:d,close:f},shouldOpen:d>0?()=>x.select(`allowMouseEnter`):void 0,triggerElementRef:P,externalTree:k,isClosing:()=>y.select(`transitionStatus`)===`ending`,guardStaleOpen:!0}),ue=Wn(O,{enabled:!ne,event:`mousedown`,toggle:!0,ignoreMouse:l,stickIfOpen:l}).reference??xt,de=y.useState(`triggerProps`,!0);delete de.id;let fe={disabled:ne,highlighted:ie,open:T},pe=y.useState(`openMethod`),me=y.useState(`lastOpenChangeReason`)===`list-navigation`||pe===`keyboard`,he=T&&me&&rn,_e=v?.onTriggerKeyDown?{onKeyDown:v.onTriggerKeyDown}:void 0;return dt(`div`,e,{state:fe,stateAttributesMapping:u,props:[ue,le,de,_e,re,he?Cr:void 0,{"aria-controls":A,tabIndex:b||!(T||ie)?-1:0,onFocus(e){y.select(`open`)&&E.current&&(E.current=!1,y.setOpen(!1,U(gt,e.nativeEvent)))},onBlur(){ie&&x.setActiveIndex(null,Mt)}},m,se],ref:[t,C.ref,ce,N,ee]})}),Tr=G.forwardRef(function(e,t){let n=c(e,t,`submenu-trigger`);if(!n.visible)return null;let r=n.props?mt(n.props,e):e;return(0,q.jsx)(wr,{...r,ref:n.ref})}),J=r(),Er=1,Dr=.9,Or=.8,kr=.17,Ar=.1,jr=.999,Mr=.9999,Nr=.99,Pr=/[\\\/_+.#"@\[\(\{&]/,Fr=/[\\\/_+.#"@\[\(\{&]/g,Ir=/[\s-]/,Lr=/[\s-]/g;function Rr(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?Er:Nr;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;l>=0;)d=Rr(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=Er:Pr.test(e.charAt(l-1))?(d*=Or,p=e.slice(i,l-1).match(Fr),p&&i>0&&(d*=jr**+p.length)):Ir.test(e.charAt(l-1))?(d*=Dr,m=e.slice(i,l-1).match(Lr),m&&i>0&&(d*=jr**+m.length)):(d*=kr,i>0&&(d*=jr**+(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=Mr)),(d<Ar&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(f=Rr(e,t,n,r,l+1,a+2,o),f*Ar>d&&(d=f*Ar)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function zr(e){return e.toLowerCase().replace(Lr,` `)}function Br(e,t,n){return e=n&&n.length>0?`${e+` `+n.join(` `)}`:e,Rr(e,t,zr(e),zr(t),0,0,{})}var Vr=Object.defineProperty,Hr=(e,t)=>Vr(e,`name`,{value:t,configurable:!0}),Ur=!!(typeof window<`u`&&window.document&&window.document.createElement);function Wr(e,t,{checkForDefaultPrevented:n=!0}={}){return Hr(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Hr(Wr,`composeEventHandlers`);function Gr(e){if(!Ur)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Hr(Gr,`getOwnerWindow`);function Kr(e){if(!Ur)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Hr(Kr,`getOwnerDocument`);function qr(e,t=!1){let{activeElement:n}=Kr(e);if(!n?.nodeName)return null;if(Jr(n)&&n.contentDocument)return qr(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Kr(n).getElementById(e);if(t)return t}}return n}Hr(qr,`getActiveElement`);function Jr(e){return e.tagName===`IFRAME`}Hr(Jr,`isFrame`);var Yr=Object.defineProperty,Xr=(e,t)=>Yr(e,`name`,{value:t,configurable:!0});function Zr(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Xr(Zr,`setRef`);function Qr(...e){return t=>{let n=!1,r=e.map(e=>{let r=Zr(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Zr(e[t],null)}}}}Xr(Qr,`composeRefs`);function $r(...e){return G.useCallback(Qr(...e),e)}Xr($r,`useComposedRefs`);var ei=Object.defineProperty,Y=(e,t)=>ei(e,`name`,{value:t,configurable:!0});function ti(e,t){let n=G.createContext(t);n.displayName=e+`Context`;let r=Y(e=>{let{children:t,...r}=e,i=G.useMemo(()=>r,Object.values(r));return(0,q.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=G.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Y(i,`useContext`),[r,i]}Y(ti,`createContext`);function ni(e,t=[]){let n=[];function r(t,r){let i=G.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Y(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=G.useMemo(()=>o,Object.values(o));return(0,q.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=G.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Y(s,`useContext`),[o,s]}Y(r,`createContext`);let i=Y(()=>{let t=n.map(e=>G.createContext(e));return Y(function(n){let r=n?.[e]||t;return G.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,ri(i,...t)]}Y(ni,`createContextScope`);function ri(...e){let t=e[0];if(e.length===1)return t;let n=Y(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Y(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return G.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Y(ri,`composeContextScopes`);var ii=globalThis?.document?G.useLayoutEffect:()=>{},ai=Object.defineProperty,oi=(e,t)=>ai(e,`name`,{value:t,configurable:!0}),si=G.useId||(()=>void 0),ci=0;function li(e){let[t,n]=G.useState(si());return ii(()=>{e||n(e=>e??String(ci++))},[e]),e||(t?`radix-${t}`:``)}oi(li,`useId`);var ui=Object.defineProperty,di=(e,t)=>ui(e,`name`,{value:t,configurable:!0}),fi=G.useEffectEvent,pi=G.useInsertionEffect;function mi(e){if(typeof fi==`function`)return fi(e);let t=G.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof pi==`function`?pi(()=>{t.current=e}):ii(()=>{t.current=e}),G.useMemo(()=>((...e)=>t.current?.(...e)),[])}di(mi,`useEffectEvent`);var hi=Object.defineProperty,gi=(e,t)=>hi(e,`name`,{value:t,configurable:!0}),_i=G.useInsertionEffect||ii;function vi({prop:e,defaultProp:t,onChange:n=gi(()=>{},`onChange`),caller:r}){let[i,a,o]=yi({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,G.useCallback(t=>{if(s){let n=bi(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}gi(vi,`useControllableState`);function yi({defaultProp:e,onChange:t}){let[n,r]=G.useState(e),i=G.useRef(n),a=G.useRef(t);return _i(()=>{a.current=t},[t]),G.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}gi(yi,`useUncontrolledState`);function bi(e){return typeof e==`function`}gi(bi,`isFunction`);var xi=Symbol(`RADIX:SYNC_STATE`);function Si(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=mi(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=G.useReducer((t,n)=>{if(n.type===xi)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=G.useRef(p);G.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=G.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return G.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:xi,state:i})},[i,d.state,c]),[h,f]}gi(Si,`useControllableStateReducer`);var Ci=Object.defineProperty,X=(e,t)=>Ci(e,`name`,{value:t,configurable:!0});function wi(e){let t=G.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=Pi(r),G.Children.forEach(r,e=>{if(Ai(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;Mi(n)&&typeof Ri==`function`;)n=Ri(n._payload);a=Di(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=G.cloneElement(a,void 0,s):!o&&G.Children.count(r)===1&&G.isValidElement(r)&&(a=r);let c=a?ki(a):void 0,l=$r(n,c);if(!a){if(r||r===0)throw Error(o?Li(e):Ii(e));return r}let u=Oi(i,a.props??{});return a.type!==G.Fragment&&(u.ref=n?l:c),G.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}X(wi,`createSlot`);var Ti=Symbol.for(`radix.slottable`);function Ei(e){let t=X(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Ti,t}X(Ei,`createSlottable`);var Di=X((e,t)=>`child`in e.props?G.isValidElement(t)?G.cloneElement(t,void 0,e.props.children(t.props.children)):null:G.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function Oi(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Fi(a,i))}return{...e,...n}}X(Oi,`mergeProps`);function ki(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}X(ki,`getElementRef`);function Ai(e){return G.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Ti}X(Ai,`isSlottable`);var ji=Symbol.for(`react.lazy`);function Mi(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===ji&&`_payload`in e&&Ni(e._payload)}X(Mi,`isLazyComponent`);function Ni(e){return typeof e==`object`&&!!e&&`then`in e}X(Ni,`isPromiseLike`);function Pi(e){let t=e;for(;Mi(t)&&typeof Ri==`function`;)t=Ri(t._payload);return t}X(Pi,`useUnwrappedLazy`);function Fi(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}X(Fi,`concatAriaDescribedby`);var Ii=X(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Li=X(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Ri=G.use,zi=Object.defineProperty,Bi=(e,t)=>zi(e,`name`,{value:t,configurable:!0}),Z=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=wi(`Primitive.${t}`),r=G.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,q.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Vi(e,t){e&&Yn.flushSync(()=>e.dispatchEvent(t))}Bi(Vi,`dispatchDiscreteCustomEvent`);var Hi=Object.defineProperty,Ui=(e,t)=>Hi(e,`name`,{value:t,configurable:!0}),Wi=G.useInsertionEffect;function Gi(e){let t=G.useRef(e);return typeof Wi==`function`?Wi(()=>{t.current=e}):ii(()=>{t.current=e}),G.useMemo(()=>((...e)=>t.current?.(...e)),[])}Ui(Gi,`useCallbackRef`);var Ki=Object.defineProperty,Q=(e,t)=>Ki(e,`name`,{value:t,configurable:!0}),qi=`dismissableLayer.update`,Ji=`dismissableLayer.pointerDownOutside`,Yi=`dismissableLayer.focusOutside`,Xi,Zi=G.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Qi=G.forwardRef(Q(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=G.useContext(Zi),[d,f]=G.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=G.useState({}),h=$r(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=G.useRef(!1),C=ta(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:G.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=na(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=Gi(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return G.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),G.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Xi=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ra(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Xi))}},[d,p,n,u]),G.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ra())},[d,u]),G.useEffect(()=>{let e=Q(()=>m({}),`handleUpdate`);return document.addEventListener(qi,e),()=>document.removeEventListener(qi,e)},[]),(0,q.jsx)(Z.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:Wr(e.onFocusCapture,w.onFocusCapture),onBlurCapture:Wr(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:Wr(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`));function $i(){let e=G.useContext(Zi),[t,n]=G.useState(null);return G.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Q($i,`useDismissableLayerSurface`);var ea=Q(()=>!0,`IS_TRUE`);function ta(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=ea}=t,s=Gi(e),c=G.useRef(!1),l=G.useRef(!1),u=G.useRef(new Map),d=G.useRef(()=>{});return G.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}Q(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}Q(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}Q(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}Q(p,`handleInteractionBubble`);let m=Q(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||ia(Ji,s,p,{discrete:!0})};if(Q(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:Q(()=>c.current=!0,`onPointerDownCapture`)}}Q(ta,`usePointerDownOutside`);function na(e,t=globalThis?.document){let n=Gi(e),r=G.useRef(!1);return G.useEffect(()=>{let e=Q(e=>{e.target&&!r.current&&ia(Yi,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:Q(()=>r.current=!0,`onFocusCapture`),onBlurCapture:Q(()=>r.current=!1,`onBlurCapture`)}}Q(na,`useFocusOutside`);function ra(){let e=new CustomEvent(qi);document.dispatchEvent(e)}Q(ra,`dispatchUpdate`);function ia(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Vi(i,a):i.dispatchEvent(a)}Q(ia,`handleAndDispatchCustomEvent`);var aa=Object.defineProperty,$=(e,t)=>aa(e,`name`,{value:t,configurable:!0}),oa=`focusScope.autoFocusOnMount`,sa=`focusScope.autoFocusOnUnmount`,ca={bubbles:!1,cancelable:!0},la=G.forwardRef($(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=G.useState(null),u=Gi(a),d=Gi(o),f=G.useRef(null),p=$r(t,l),m=G.useRef(i);G.useEffect(()=>{m.current=i});let h=G.useCallback(e=>e?c?.contains(e)?!0:!!m.current?.some(t=>t.contains(e)):!1,[c]),g=G.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;G.useEffect(()=>{if(r){let e=function(e){if(g.paused||!c)return;let t=e.target;h(t)?f.current=t:ba(f.current,{select:!0})},t=function(e){if(g.paused||!c)return;let t=e.relatedTarget;t!==null&&(h(t)||ba(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ba(c)};$(e,`handleFocusIn`),$(t,`handleFocusOut`),$(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,g.paused,h]),G.useEffect(()=>{if(c){xa.add(g);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(oa,ca);c.addEventListener(oa,u),c.dispatchEvent(t),t.defaultPrevented||(ma(wa(ga(c)),{select:!0}),document.activeElement===e&&ba(c))}return()=>{c.removeEventListener(oa,u);let t=c.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(sa,ca);c.addEventListener(sa,d),c.dispatchEvent(r),r.defaultPrevented||ba(e??t.body,{select:!0}),c.removeEventListener(sa,d),xa.remove(g)},0)}}},[c,u,d,g]);let _=G.useCallback(e=>{if(!n&&!r||g.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=ha(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&ba(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&ba(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,g.paused]);return(0,q.jsx)(Z.div,{tabIndex:-1,...s,ref:p,onKeyDown:_})},`FocusScope`)),ua=G.createContext(null);function da({registry:e,children:t}){return e?(0,q.jsx)(ua.Provider,{value:e,children:t}):t}$(da,`FocusScopeBranchProvider`);function fa(){let[e,t]=G.useState([]);return{nodes:e,registry:G.useMemo(()=>({add:$(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:$(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}$(fa,`useFocusScopeBranchRegistry`);function pa(e){let t=G.useContext(ua);G.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}$(pa,`useFocusScopeBranch`);function ma(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(ba(r,{select:t}),document.activeElement!==n)return}$(ma,`focusFirst`);function ha(e){let t=ga(e);return[_a(t,e),_a(t.reverse(),e)]}$(ha,`getTabbableEdges`);function ga(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:$(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}$(ga,`getTabbableCandidates`);function _a(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):va(r,{upTo:t})))return r}$(_a,`findVisible`);function va(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}$(va,`isHidden`);function ya(e){return e.tagName===`INPUT`&&typeof e.select==`function`}$(ya,`isSelectableInput`);function ba(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&ya(e)&&t&&e.select()}}$(ba,`focus`);var xa=Sa();function Sa(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ca(e,t),e.unshift(t)},remove(t){e=Ca(e,t),e[0]?.resume()}}}$(Sa,`createFocusScopesStack`);function Ca(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}$(Ca,`arrayRemove`);function wa(e){return e.filter(e=>e.tagName!==`A`)}$(wa,`removeLinks`);var Ta=Object.defineProperty,Ea=G.forwardRef(((e,t)=>Ta(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=G.useState(!1);ii(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Yn.createPortal((0,q.jsx)(Z.div,{...r,ref:t}),o):null},`Portal`)),Da=Object.defineProperty,Oa=(e,t)=>Da(e,`name`,{value:t,configurable:!0});function ka(e,t){return G.useReducer((e,n)=>t[e][n]??e,e)}Oa(ka,`useStateMachine`);var Aa=Oa(e=>{let{present:t,children:n}=e,r=ja(t),i=typeof n==`function`?n({present:r.isPresent}):G.Children.only(n),a=Na(r.ref,Fa(i));return typeof n==`function`||r.isPresent?G.cloneElement(i,{ref:a}):null},`Presence`);function ja(e){let[t,n]=G.useState(),r=G.useRef(null),i=G.useRef(e),a=G.useRef(`none`),o=G.useRef(void 0),[s,c]=ka(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return G.useEffect(()=>{s===`mounted`?(a.current=o.current??Pa(r.current),o.current=void 0):a.current=`none`},[s]),ii(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Pa(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),ii(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Oa(a=>{let o=Pa(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Oa(e=>{e.target===t&&(a.current=Pa(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:G.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Pa(t)}else r.current=null;n(e)},[])}}Oa(ja,`usePresence`);function Ma(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Oa(Ma,`setRef`);function Na(...e){let t=G.useRef(e);return t.current=e,G.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Ma(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Ma(n[e],null)}}},[])}Oa(Na,`useStableComposedRefs`);function Pa(e){return e?.animationName||`none`}Oa(Pa,`getAnimationName`);function Fa(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Oa(Fa,`getElementRef`);var Ia=Object.defineProperty,La=(e,t)=>Ia(e,`name`,{value:t,configurable:!0}),Ra=0,za=null;function Ba(e){return Va(),e.children}La(Ba,`FocusGuards`);function Va(){G.useEffect(()=>{za||={start:Ha(),end:Ha()};let{start:e,end:t}=za;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Ra++,()=>{Ra===1&&(za?.start.remove(),za?.end.remove(),za=null),Ra=Math.max(0,Ra-1)}},[])}La(Va,`useFocusGuards`);function Ha(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}La(Ha,`createFocusGuard`);var Ua=function(){return Ua=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ua.apply(this,arguments)};function Wa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ga(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ka=`right-scroll-bar-position`,qa=`width-before-scroll-bar`,Ja=`with-scroll-bars-hidden`,Ya=`--removed-body-scroll-bar-size`;function Xa(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Za(e,t){var n=(0,G.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Qa=typeof window<`u`?G.useLayoutEffect:G.useEffect,$a=new WeakMap;function eo(e,t){var n=Za(t||null,function(t){return e.forEach(function(e){return Xa(e,t)})});return Qa(function(){var t=$a.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Xa(e,null)}),i.forEach(function(e){r.has(e)||Xa(e,a)})}$a.set(n,e)},[e]),n}function to(e){return e}function no(e,t){t===void 0&&(t=to);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function ro(e){e===void 0&&(e={});var t=no(null);return t.options=Ua({async:!0,ssr:!1},e),t}var io=function(e){var t=e.sideCar,n=Wa(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return G.createElement(r,Ua({},n))};io.isSideCarExport=!0;function ao(e,t){return e.useMedium(t),io}var oo=ro(),so=function(){},co=G.forwardRef(function(e,t){var n=G.useRef(null),r=G.useState({onScrollCapture:so,onWheelCapture:so,onTouchMoveCapture:so}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Wa(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=eo([n,t]),C=Ua(Ua({},b),i);return G.createElement(G.Fragment,null,u&&G.createElement(x,{sideCar:oo,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?G.cloneElement(G.Children.only(s),Ua(Ua({},C),{ref:S})):G.createElement(v,Ua({},C,{className:c,ref:S}),s))});co.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},co.classNames={fullWidth:qa,zeroRight:Ka};var lo=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function uo(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=lo();return t&&e.setAttribute(`nonce`,t),e}function fo(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function po(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var mo=function(){var e=0,t=null;return{add:function(n){e==0&&(t=uo())&&(fo(t,n),po(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ho=function(){var e=mo();return function(t,n){G.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},go=function(){var e=ho();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},_o={left:0,top:0,right:0,gap:0},vo=function(e){return parseInt(e||``,10)||0},yo=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[vo(n),vo(r),vo(i)]},bo=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return _o;var t=yo(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},xo=go(),So=`data-scroll-locked`,Co=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
2
2
|
.${Ja} {
|
|
3
3
|
overflow: hidden ${r};
|
|
4
4
|
padding-right: ${s}px ${r};
|