offsite 0.0.49 → 0.0.51

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.
Files changed (28) hide show
  1. package/apps/server/dist/main.mjs +3149 -3169
  2. package/apps/server/dist/main.mjs.map +1 -1
  3. package/apps/web/dist/assets/MinusSignIcon-DGIm2EHe.js +1 -0
  4. package/apps/web/dist/assets/{accounts-CUAR3WyJ.js → accounts-CCbsDjja.js} +31 -31
  5. package/apps/web/dist/assets/{audio-player-BE-oXEaT.js → audio-player-dA2OYPGm.js} +1 -1
  6. package/apps/web/dist/assets/{button-Dhs1rqob.js → button-CvTVUHeO.js} +1 -1
  7. package/apps/web/dist/assets/{dialog-Bnoy9Qj1.js → dialog-BferUxFi.js} +2 -2
  8. package/apps/web/dist/assets/dist-W0oXjES1.js +1 -0
  9. package/apps/web/dist/assets/{editor-dialog-DzhWay5V.js → editor-dialog-DJduZneD.js} +3 -3
  10. package/apps/web/dist/assets/image-viewer-H78MKvch.js +1 -0
  11. package/apps/web/dist/assets/index-BYsSCxSd.css +2 -0
  12. package/apps/web/dist/assets/{index-CAPYmjDo.js → index-D8kFmWlq.js} +2 -2
  13. package/apps/web/dist/assets/{preview-dialog-dl8oUCEx.js → preview-dialog-CXQtRB9z.js} +1 -1
  14. package/apps/web/dist/assets/{react-DHkIXOR_.js → react-BzGNAlhs.js} +1 -1
  15. package/apps/web/dist/assets/tooltip-BVy8llWO.js +1 -0
  16. package/apps/web/dist/assets/{utils-KVq36YOZ.js → utils-DPxKzVJp.js} +1 -1
  17. package/apps/web/dist/assets/{video-viewer-DIbmaY7P.js → video-viewer-Dc2ZMyL5.js} +1 -1
  18. package/apps/web/dist/assets/zoomable-image-Cevmy_zk.js +41 -0
  19. package/apps/web/dist/assets/zoomable-image-Dugv4kyQ.js +1 -0
  20. package/apps/web/dist/index.html +7 -7
  21. package/apps/web/dist/sw.js +1 -1
  22. package/package.json +1 -1
  23. package/apps/web/dist/assets/dist-VgxG5tyZ.js +0 -1
  24. package/apps/web/dist/assets/image-viewer-DHukGxB1.js +0 -1
  25. package/apps/web/dist/assets/index-cgL3vsYO.css +0 -2
  26. package/apps/web/dist/assets/tooltip-CGSEdyeY.js +0 -1
  27. package/apps/web/dist/assets/zoomable-image-DzvW3FEl.js +0 -1
  28. package/apps/web/dist/assets/zoomable-image-HHk3X4rG.js +0 -41
@@ -1 +1 @@
1
- import{s as e,t}from"./utils-KVq36YOZ.js";import{a as n,c as r,d as i,f as a,n as o,s,t as c}from"./react-DHkIXOR_.js";var l=e();function u(e){return(0,l.jsx)(`span`,{className:t(`border-border bg-muted inline-flex rounded-lg border align-top`,e.className),children:(0,l.jsxs)(o,{audio:!0,className:`w-full rounded-lg outline-none [--media-background-color:transparent] [--media-control-background:transparent] [--media-control-hover-background:var(--accent)] [--media-font-family:inherit] [--media-primary-color:var(--foreground)] [--media-range-bar-color:var(--primary)] [--media-range-thumb-background:var(--primary)] [--media-range-track-background:var(--border)] [--media-range-track-border-radius:9999px] [--media-secondary-color:transparent] [--media-text-color:var(--muted-foreground)] [--media-time-range-buffered-color:var(--border)]`,children:[(0,l.jsx)(`audio`,{slot:`media`,src:e.src,"aria-label":e.label,preload:`metadata`,onError:e.onError}),(0,l.jsxs)(c,{className:`w-full px-1 pb-1 *:p-2`,children:[(0,l.jsx)(s,{}),(0,l.jsx)(a,{className:`grow`}),(0,l.jsx)(i,{showDuration:!0}),(0,l.jsx)(n,{}),(0,l.jsx)(r,{})]})]})})}export{u as AudioPlayer};
1
+ import{c as e,t}from"./utils-DPxKzVJp.js";import{a as n,c as r,d as i,f as a,n as o,s,t as c}from"./react-BzGNAlhs.js";var l=e();function u(e){return(0,l.jsx)(`span`,{className:t(`border-border bg-muted inline-flex rounded-lg border align-top`,e.className),children:(0,l.jsxs)(o,{audio:!0,className:`w-full rounded-lg outline-none [--media-background-color:transparent] [--media-control-background:transparent] [--media-control-hover-background:var(--accent)] [--media-font-family:inherit] [--media-primary-color:var(--foreground)] [--media-range-bar-color:var(--primary)] [--media-range-thumb-background:var(--primary)] [--media-range-track-background:var(--border)] [--media-range-track-border-radius:9999px] [--media-secondary-color:transparent] [--media-text-color:var(--muted-foreground)] [--media-time-range-buffered-color:var(--border)]`,children:[(0,l.jsx)(`audio`,{slot:`media`,src:e.src,"aria-label":e.label,preload:`metadata`,onError:e.onError}),(0,l.jsxs)(c,{className:`w-full px-1 pb-1 *:p-2`,children:[(0,l.jsx)(s,{}),(0,l.jsx)(a,{className:`grow`}),(0,l.jsx)(i,{showDuration:!0}),(0,l.jsx)(n,{}),(0,l.jsx)(r,{})]})]})})}export{u as AudioPlayer};
@@ -1 +1 @@
1
- import{i as e,t}from"./rolldown-runtime-Dd_uD5pT.js";import{c as n,o as r,s as i,t as a}from"./utils-KVq36YOZ.js";var o=t((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return l(e,t,null,n)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.0`})),s=t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=o()})),c=e(n()),l={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`},u=(0,c.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:i=``,altIcon:a,showAlt:o=!1,icon:s,primaryColor:u,secondaryColor:d,disableSecondaryOpacity:f=!1,...p},m)=>{let h=n===void 0?void 0:r?Number(n)*24/Number(t):n,g=h===void 0?{}:{strokeWidth:h,stroke:`currentColor`},_={ref:m,...l,width:t,height:t,color:u||e,className:i,...g,...p},v=[...o&&a?a:s].sort(([,e],[,t])=>{let n=e.opacity!==void 0;return t.opacity===void 0?n?-1:0:1}).map(([t,n])=>{let r=n.opacity!==void 0,i=r&&!f?n.opacity:void 0,a=d?{...n.stroke===void 0?{fill:r?d:u||e}:{stroke:r?d:u||e}}:{};return(0,c.createElement)(t,{...n,...g,...a,opacity:i,key:n.key})});return(0,c.createElement)(`svg`,_,v)});u.displayName=`HugeiconsIcon`;var d=i(),f=e(s(),1),p=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,m=r,h=(e,t)=>n=>{if(t?.variants==null)return m(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=p(t)||p(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return m(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},g=Object.defineProperty,_=(e,t)=>g(e,`name`,{value:t,configurable:!0});function v(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}_(v,`setRef`);function y(...e){return t=>{let n=!1,r=e.map(e=>{let r=v(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():v(e[t],null)}}}}_(y,`composeRefs`);function b(...e){return c.useCallback(y(...e),e)}_(b,`useComposedRefs`);var ee=Object.defineProperty,x=(e,t)=>ee(e,`name`,{value:t,configurable:!0});function S(e){let t=c.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=ie(r),c.Children.forEach(r,e=>{if(te(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;k(n)&&typeof A==`function`;)n=A(n._payload);a=E(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=c.cloneElement(a,void 0,s):!o&&c.Children.count(r)===1&&c.isValidElement(r)&&(a=r);let l=a?O(a):void 0,u=b(n,l);if(!a){if(r||r===0)throw Error(o?se(e):oe(e));return r}let d=D(i,a.props??{});return a.type!==c.Fragment&&(d.ref=n?u:l),c.cloneElement(a,d)});return t.displayName=`${e}.Slot`,t}x(S,`createSlot`);var C=S(`Slot`),w=Symbol.for(`radix.slottable`);function T(e){let t=x(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=w,t}x(T,`createSlottable`);var E=x((e,t)=>`child`in e.props?c.isValidElement(t)?c.cloneElement(t,void 0,e.props.children(t.props.children)):null:c.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function D(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]=ae(a,i))}return{...e,...n}}x(D,`mergeProps`);function O(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(O,`getElementRef`);function te(e){return c.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===w}x(te,`isSlottable`);var ne=Symbol.for(`react.lazy`);function k(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===ne&&`_payload`in e&&re(e._payload)}x(k,`isLazyComponent`);function re(e){return typeof e==`object`&&!!e&&`then`in e}x(re,`isPromiseLike`);function ie(e){let t=e;for(;k(t)&&typeof A==`function`;)t=A(t._payload);return t}x(ie,`useUnwrappedLazy`);function ae(...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(ae,`concatAriaDescribedby`);var oe=x(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),se=x(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),A=c.use,ce=Object.defineProperty,le=(e,t)=>ce(e,`name`,{value:t,configurable:!0}),j=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=S(`Primitive.${t}`),r=c.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,d.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function M(e,t){e&&f.flushSync(()=>e.dispatchEvent(t))}le(M,`dispatchDiscreteCustomEvent`);var ue=Object.defineProperty,N=(e,t)=>ue(e,`name`,{value:t,configurable:!0});function de(e,t){let n=c.createContext(t);n.displayName=e+`Context`;let r=N(e=>{let{children:t,...r}=e,i=c.useMemo(()=>r,Object.values(r));return(0,d.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=c.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return N(i,`useContext`),[r,i]}N(de,`createContext`);function fe(e,t=[]){let n=[];function r(t,r){let i=c.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=N(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=c.useMemo(()=>o,Object.values(o));return(0,d.jsx)(s.Provider,{value:l,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:l=!1}=s,u=o?.[e]?.[a]||i,d=c.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return N(s,`useContext`),[o,s]}N(r,`createContext`);let i=N(()=>{let t=n.map(e=>c.createContext(e));return N(function(n){let r=n?.[e]||t;return c.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,pe(i,...t)]}N(fe,`createContextScope`);function pe(...e){let t=e[0];if(e.length===1)return t;let n=N(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return N(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}N(pe,`composeContextScopes`);var P=globalThis?.document?c.useLayoutEffect:()=>{},me=Object.defineProperty,F=(e,t)=>me(e,`name`,{value:t,configurable:!0}),he=!!(typeof window<`u`&&window.document&&window.document.createElement);function I(e,t,{checkForDefaultPrevented:n=!0}={}){return F(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}F(I,`composeEventHandlers`);function ge(e){if(!he)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}F(ge,`getOwnerWindow`);function L(e){if(!he)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}F(L,`getOwnerDocument`);function _e(e,t=!1){let{activeElement:n}=L(e);if(!n?.nodeName)return null;if(ve(n)&&n.contentDocument)return _e(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=L(n).getElementById(e);if(t)return t}}return n}F(_e,`getActiveElement`);function ve(e){return e.tagName===`IFRAME`}F(ve,`isFrame`);var ye=Object.defineProperty,be=(e,t)=>ye(e,`name`,{value:t,configurable:!0}),xe=c.useEffectEvent,Se=c.useInsertionEffect;function Ce(e){if(typeof xe==`function`)return xe(e);let t=c.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Se==`function`?Se(()=>{t.current=e}):P(()=>{t.current=e}),c.useMemo(()=>((...e)=>t.current?.(...e)),[])}be(Ce,`useEffectEvent`);var we=Object.defineProperty,R=(e,t)=>we(e,`name`,{value:t,configurable:!0}),Te=c.useInsertionEffect||P;function Ee({prop:e,defaultProp:t,onChange:n=R(()=>{},`onChange`),caller:r}){let[i,a,o]=De({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,c.useCallback(t=>{if(s){let n=Oe(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}R(Ee,`useControllableState`);function De({defaultProp:e,onChange:t}){let[n,r]=c.useState(e),i=c.useRef(n),a=c.useRef(t);return Te(()=>{a.current=t},[t]),c.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}R(De,`useUncontrolledState`);function Oe(e){return typeof e==`function`}R(Oe,`isFunction`);var ke=Symbol(`RADIX:SYNC_STATE`);function Ae(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,l=i!==void 0,u=Ce(o),d=[{...n,state:a}];r&&d.push(r);let[f,p]=c.useReducer((t,n)=>{if(n.type===ke)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=c.useRef(m);c.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let g=c.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return c.useEffect(()=>{l&&!Object.is(i,f.state)&&p({type:ke,state:i})},[i,f.state,l]),[g,p]}R(Ae,`useControllableStateReducer`);var je=Object.defineProperty,z=(e,t)=>je(e,`name`,{value:t,configurable:!0});function Me(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}z(Me,`useStateMachine`);var Ne=z(e=>{let{present:t,children:n}=e,r=Pe(t),i=typeof n==`function`?n({present:r.isPresent}):c.Children.only(n),a=Fe(r.ref,Ie(i));return typeof n==`function`||r.isPresent?c.cloneElement(i,{ref:a}):null},`Presence`);function Pe(e){let[t,n]=c.useState(),r=c.useRef(null),i=c.useRef(e),a=c.useRef(`none`),o=c.useRef(void 0),[s,l]=Me(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return c.useEffect(()=>{s===`mounted`?(a.current=o.current??V(r.current),o.current=void 0):a.current=`none`},[s]),P(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=V(t);e?(o.current=s,l(`MOUNT`)):s===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,l]),P(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=z(a=>{let o=V(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l(`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=z(e=>{e.target===t&&(a.current=V(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)}}l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:c.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=V(t)}else r.current=null;n(e)},[])}}z(Pe,`usePresence`);function B(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}z(B,`setRef`);function Fe(...e){let t=c.useRef(e);return t.current=e,c.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=B(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():B(n[e],null)}}},[])}z(Fe,`useStableComposedRefs`);function V(e){return e?.animationName||`none`}z(V,`getAnimationName`);function Ie(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)}z(Ie,`getElementRef`);var Le=Object.defineProperty,Re=(e,t)=>Le(e,`name`,{value:t,configurable:!0}),ze=c.useId||(()=>void 0),Be=0;function Ve(e){let[t,n]=c.useState(ze());return P(()=>{e||n(e=>e??String(Be++))},[e]),e||(t?`radix-${t}`:``)}Re(Ve,`useId`);var He=Object.defineProperty,Ue=(e,t)=>He(e,`name`,{value:t,configurable:!0}),We=c.useInsertionEffect;function H(e){let t=c.useRef(e);return typeof We==`function`?We(()=>{t.current=e}):P(()=>{t.current=e}),c.useMemo(()=>((...e)=>t.current?.(...e)),[])}Ue(H,`useCallbackRef`);var Ge=Object.defineProperty,U=(e,t)=>Ge(e,`name`,{value:t,configurable:!0}),W=`dismissableLayer.update`,Ke=`dismissableLayer.pointerDownOutside`,qe=`dismissableLayer.focusOutside`,Je,Ye=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Xe=c.forwardRef(U(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...u}=e,f=c.useContext(Ye),[p,m]=c.useState(null),h=p?.ownerDocument??globalThis?.document,[,g]=c.useState({}),_=b(t,m),v=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),ee=y?v.indexOf(y):-1,x=p?v.indexOf(p):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,C=x>=ee,w=c.useRef(!1),T=$e(e=>{a?.(e),s?.(e),e.defaultPrevented||l?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return C&&!t},[f.branches,C])}),E=et(e=>{if(r&&w.current)return;let t=e.target;[...f.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||l?.())},h),D=p?x===v.length-1:!1,O=H(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return c.useEffect(()=>{if(D)return h.addEventListener(`keydown`,O,{capture:!0}),()=>h.removeEventListener(`keydown`,O,{capture:!0})},[h,D,O]),c.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Je=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),G(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(p),f.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Je))}},[p,h,n,f]),c.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),G())},[p,f]),c.useEffect(()=>{let e=U(()=>g({}),`handleUpdate`);return document.addEventListener(W,e),()=>document.removeEventListener(W,e)},[]),(0,d.jsx)(j.div,{...u,ref:_,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:I(e.onFocusCapture,E.onFocusCapture),onBlurCapture:I(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:I(e.onPointerDownCapture,T.onPointerDownCapture)})},`DismissableLayer`));function Ze(){let e=c.useContext(Ye),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}U(Ze,`useDismissableLayerSurface`);var Qe=U(()=>!0,`IS_TRUE`);function $e(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Qe}=t,s=H(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),f=c.useRef(()=>{});return c.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}U(e,`resetOutsideInteraction`);function t(){return Array.from(d.current.values()).some(Boolean)}U(t,`isOutsideInteractionIntercepted`);function c(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{u.current&&f.current()},0)}U(c,`handleInteractionCapture`);function p(e){u.current&&d.current.set(e.type,!1)}U(p,`handleInteractionBubble`);let m=U(a=>{if(a.target&&!l.current){let c=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||K(Ke,s,p,{discrete:!0})};if(U(c,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,f.current),e(),l.current=!1;return}let p={originalEvent:a};u.current=!0,i.current=r&&a.button===0,d.current.clear(),!r||a.button!==0?c():(n.removeEventListener(`click`,f.current),f.current=c,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();l.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,c,!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`,f.current);for(let e of h)n.removeEventListener(e,c,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:U(()=>l.current=!0,`onPointerDownCapture`)}}U($e,`usePointerDownOutside`);function et(e,t=globalThis?.document){let n=H(e),r=c.useRef(!1);return c.useEffect(()=>{let e=U(e=>{e.target&&!r.current&&K(qe,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:U(()=>r.current=!0,`onFocusCapture`),onBlurCapture:U(()=>r.current=!1,`onBlurCapture`)}}U(et,`useFocusOutside`);function G(){let e=new CustomEvent(W);document.dispatchEvent(e)}U(G,`dispatchUpdate`);function K(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?M(i,a):i.dispatchEvent(a)}U(K,`handleAndDispatchCustomEvent`);var tt=Object.defineProperty,q=(e,t)=>tt(e,`name`,{value:t,configurable:!0}),J=`focusScope.autoFocusOnMount`,Y=`focusScope.autoFocusOnUnmount`,nt={bubbles:!1,cancelable:!0},rt=c.forwardRef(q(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[l,u]=c.useState(null),f=H(a),p=H(o),m=c.useRef(null),h=b(t,u),g=c.useRef(i);c.useEffect(()=>{g.current=i});let _=c.useCallback(e=>e?l?.contains(e)?!0:!!g.current?.some(t=>t.contains(e)):!1,[l]),v=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let e=function(e){if(v.paused||!l)return;let t=e.target;_(t)?m.current=t:Q(m.current,{select:!0})},t=function(e){if(v.paused||!l)return;let t=e.relatedTarget;t!==null&&(_(t)||Q(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Q(l)};q(e,`handleFocusIn`),q(t,`handleFocusOut`),q(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,l,v.paused,_]),c.useEffect(()=>{if(l){ft.add(v);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(J,nt);l.addEventListener(J,f),l.dispatchEvent(t),t.defaultPrevented||(ct(mt(X(l)),{select:!0}),document.activeElement===e&&Q(l))}return()=>{l.removeEventListener(J,f);let t=l.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(Y,nt);l.addEventListener(Y,p),l.dispatchEvent(r),r.defaultPrevented||Q(e??t.body,{select:!0}),l.removeEventListener(Y,p),ft.remove(v)},0)}}},[l,f,p,v]);let y=c.useCallback(e=>{if(!n&&!r||v.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]=lt(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Q(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Q(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,d.jsx)(j.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})},`FocusScope`)),it=c.createContext(null);function at({registry:e,children:t}){return e?(0,d.jsx)(it.Provider,{value:e,children:t}):t}q(at,`FocusScopeBranchProvider`);function ot(){let[e,t]=c.useState([]);return{nodes:e,registry:c.useMemo(()=>({add:q(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:q(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}q(ot,`useFocusScopeBranchRegistry`);function st(e){let t=c.useContext(it);c.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}q(st,`useFocusScopeBranch`);function ct(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Q(r,{select:t}),document.activeElement!==n)return}q(ct,`focusFirst`);function lt(e){let t=X(e);return[Z(t,e),Z(t.reverse(),e)]}q(lt,`getTabbableEdges`);function X(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:q(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}q(X,`getTabbableCandidates`);function Z(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):ut(r,{upTo:t})))return r}q(Z,`findVisible`);function ut(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}q(ut,`isHidden`);function dt(e){return e.tagName===`INPUT`&&typeof e.select==`function`}q(dt,`isSelectableInput`);function Q(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&dt(e)&&t&&e.select()}}q(Q,`focus`);var ft=pt();function pt(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=$(e,t),e.unshift(t)},remove(t){e=$(e,t),e[0]?.resume()}}}q(pt,`createFocusScopesStack`);function $(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}q($,`arrayRemove`);function mt(e){return e.filter(e=>e.tagName!==`A`)}q(mt,`removeLinks`);var ht=Object.defineProperty,gt=c.forwardRef(((e,t)=>ht(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=c.useState(!1);P(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?f.createPortal((0,d.jsx)(j.div,{...r,ref:t}),o):null},`Portal`)),_t=h(`relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[var(--control-radius)] border text-sm font-medium whitespace-nowrap outline-none transition-[box-shadow,scale] select-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset disabled:pointer-events-none disabled:opacity-64 [&:active:not([aria-haspopup])]:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`border-primary bg-primary text-primary-foreground shadow-xs shadow-primary/24 not-disabled:inset-shadow-[0_1px_rgb(255_255_255/16%)] hover:bg-primary/90 active:shadow-none`,outline:`border-input bg-popover text-foreground shadow-xs/5 hover:bg-accent/50 dark:bg-input/32 dark:hover:bg-input/64 [&_svg:not([class*=text-])]:text-muted-foreground`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90 dark:bg-input/32 dark:hover:bg-input/64`,ghost:`border-transparent text-foreground hover:bg-accent aria-expanded:bg-accent [&_svg:not([class*=text-])]:text-muted-foreground`,"ghost-muted":`border-transparent text-muted-foreground hover:bg-accent hover:text-foreground aria-expanded:bg-accent`,destructive:`border-transparent bg-destructive/90 text-white shadow-xs shadow-destructive/24 hover:bg-destructive`},size:{default:`h-9 gap-1.5 px-[calc(--spacing(2.5)-1px)]`,sm:`h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)]`,xs:`h-7 gap-1 px-[calc(--spacing(2)-1px)] text-xs [&_svg:not([class*='size-'])]:size-3.5`,icon:`size-9`,"icon-sm":`size-8`,"icon-xs":`size-7 [&_svg:not([class*='size-'])]:size-3.5`,"icon-micro":`size-6 rounded-sm p-0`}},defaultVariants:{variant:`default`,size:`default`}});function vt({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let o=r?C:`button`;return(0,d.jsx)(o,{"data-slot":`button`,"data-variant":t,"data-size":n,className:a(_t({variant:t,size:n,className:e})),...i})}export{s as S,M as _,st as a,b,Ze as c,Ne as d,Ee as f,j as g,fe as h,at as i,H as l,P as m,gt as n,ot as o,I as p,rt as r,Xe as s,vt as t,Ve as u,S as v,u as x,T as y};
1
+ import{i as e,t}from"./rolldown-runtime-Dd_uD5pT.js";import{c as n,l as r,s as i,t as a}from"./utils-DPxKzVJp.js";var o=t((e=>{var t=r();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.0`})),s=t(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=o()})),c=e(r()),l={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`},u=(0,c.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:i=``,altIcon:a,showAlt:o=!1,icon:s,primaryColor:u,secondaryColor:d,disableSecondaryOpacity:f=!1,...p},m)=>{let h=n===void 0?void 0:r?Number(n)*24/Number(t):n,g=h===void 0?{}:{strokeWidth:h,stroke:`currentColor`},_={ref:m,...l,width:t,height:t,color:u||e,className:i,...g,...p},v=[...o&&a?a:s].sort(([,e],[,t])=>{let n=e.opacity!==void 0;return t.opacity===void 0?n?-1:0:1}).map(([t,n])=>{let r=n.opacity!==void 0,i=r&&!f?n.opacity:void 0,a=d?{...n.stroke===void 0?{fill:r?d:u||e}:{stroke:r?d:u||e}}:{};return(0,c.createElement)(t,{...n,...g,...a,opacity:i,key:n.key})});return(0,c.createElement)(`svg`,_,v)});u.displayName=`HugeiconsIcon`;var d=n(),f=e(s(),1),p=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,m=i,h=(e,t)=>n=>{if(t?.variants==null)return m(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=p(t)||p(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return m(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},g=Object.defineProperty,_=(e,t)=>g(e,`name`,{value:t,configurable:!0});function v(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}_(v,`setRef`);function y(...e){return t=>{let n=!1,r=e.map(e=>{let r=v(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():v(e[t],null)}}}}_(y,`composeRefs`);function b(...e){return c.useCallback(y(...e),e)}_(b,`useComposedRefs`);var ee=Object.defineProperty,x=(e,t)=>ee(e,`name`,{value:t,configurable:!0});function S(e){let t=c.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=ie(r),c.Children.forEach(r,e=>{if(te(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;k(n)&&typeof A==`function`;)n=A(n._payload);a=E(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=c.cloneElement(a,void 0,s):!o&&c.Children.count(r)===1&&c.isValidElement(r)&&(a=r);let l=a?O(a):void 0,u=b(n,l);if(!a){if(r||r===0)throw Error(o?se(e):oe(e));return r}let d=D(i,a.props??{});return a.type!==c.Fragment&&(d.ref=n?u:l),c.cloneElement(a,d)});return t.displayName=`${e}.Slot`,t}x(S,`createSlot`);var C=S(`Slot`),w=Symbol.for(`radix.slottable`);function T(e){let t=x(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=w,t}x(T,`createSlottable`);var E=x((e,t)=>`child`in e.props?c.isValidElement(t)?c.cloneElement(t,void 0,e.props.children(t.props.children)):null:c.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function D(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]=ae(a,i))}return{...e,...n}}x(D,`mergeProps`);function O(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(O,`getElementRef`);function te(e){return c.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===w}x(te,`isSlottable`);var ne=Symbol.for(`react.lazy`);function k(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===ne&&`_payload`in e&&re(e._payload)}x(k,`isLazyComponent`);function re(e){return typeof e==`object`&&!!e&&`then`in e}x(re,`isPromiseLike`);function ie(e){let t=e;for(;k(t)&&typeof A==`function`;)t=A(t._payload);return t}x(ie,`useUnwrappedLazy`);function ae(...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(ae,`concatAriaDescribedby`);var oe=x(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),se=x(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),A=c.use,ce=Object.defineProperty,le=(e,t)=>ce(e,`name`,{value:t,configurable:!0}),j=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=S(`Primitive.${t}`),r=c.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,d.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function M(e,t){e&&f.flushSync(()=>e.dispatchEvent(t))}le(M,`dispatchDiscreteCustomEvent`);var ue=Object.defineProperty,N=(e,t)=>ue(e,`name`,{value:t,configurable:!0});function de(e,t){let n=c.createContext(t);n.displayName=e+`Context`;let r=N(e=>{let{children:t,...r}=e,i=c.useMemo(()=>r,Object.values(r));return(0,d.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=c.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return N(i,`useContext`),[r,i]}N(de,`createContext`);function fe(e,t=[]){let n=[];function r(t,r){let i=c.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=N(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,l=c.useMemo(()=>o,Object.values(o));return(0,d.jsx)(s.Provider,{value:l,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:l=!1}=s,u=o?.[e]?.[a]||i,d=c.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return N(s,`useContext`),[o,s]}N(r,`createContext`);let i=N(()=>{let t=n.map(e=>c.createContext(e));return N(function(n){let r=n?.[e]||t;return c.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,pe(i,...t)]}N(fe,`createContextScope`);function pe(...e){let t=e[0];if(e.length===1)return t;let n=N(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return N(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}N(pe,`composeContextScopes`);var P=globalThis?.document?c.useLayoutEffect:()=>{},me=Object.defineProperty,F=(e,t)=>me(e,`name`,{value:t,configurable:!0}),he=!!(typeof window<`u`&&window.document&&window.document.createElement);function I(e,t,{checkForDefaultPrevented:n=!0}={}){return F(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}F(I,`composeEventHandlers`);function ge(e){if(!he)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}F(ge,`getOwnerWindow`);function L(e){if(!he)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}F(L,`getOwnerDocument`);function _e(e,t=!1){let{activeElement:n}=L(e);if(!n?.nodeName)return null;if(ve(n)&&n.contentDocument)return _e(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=L(n).getElementById(e);if(t)return t}}return n}F(_e,`getActiveElement`);function ve(e){return e.tagName===`IFRAME`}F(ve,`isFrame`);var ye=Object.defineProperty,be=(e,t)=>ye(e,`name`,{value:t,configurable:!0}),xe=c.useEffectEvent,Se=c.useInsertionEffect;function Ce(e){if(typeof xe==`function`)return xe(e);let t=c.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Se==`function`?Se(()=>{t.current=e}):P(()=>{t.current=e}),c.useMemo(()=>((...e)=>t.current?.(...e)),[])}be(Ce,`useEffectEvent`);var we=Object.defineProperty,R=(e,t)=>we(e,`name`,{value:t,configurable:!0}),Te=c.useInsertionEffect||P;function Ee({prop:e,defaultProp:t,onChange:n=R(()=>{},`onChange`),caller:r}){let[i,a,o]=De({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,c.useCallback(t=>{if(s){let n=Oe(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}R(Ee,`useControllableState`);function De({defaultProp:e,onChange:t}){let[n,r]=c.useState(e),i=c.useRef(n),a=c.useRef(t);return Te(()=>{a.current=t},[t]),c.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}R(De,`useUncontrolledState`);function Oe(e){return typeof e==`function`}R(Oe,`isFunction`);var ke=Symbol(`RADIX:SYNC_STATE`);function Ae(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,l=i!==void 0,u=Ce(o),d=[{...n,state:a}];r&&d.push(r);let[f,p]=c.useReducer((t,n)=>{if(n.type===ke)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=c.useRef(m);c.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let g=c.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return c.useEffect(()=>{l&&!Object.is(i,f.state)&&p({type:ke,state:i})},[i,f.state,l]),[g,p]}R(Ae,`useControllableStateReducer`);var je=Object.defineProperty,z=(e,t)=>je(e,`name`,{value:t,configurable:!0});function Me(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}z(Me,`useStateMachine`);var Ne=z(e=>{let{present:t,children:n}=e,r=Pe(t),i=typeof n==`function`?n({present:r.isPresent}):c.Children.only(n),a=Fe(r.ref,Ie(i));return typeof n==`function`||r.isPresent?c.cloneElement(i,{ref:a}):null},`Presence`);function Pe(e){let[t,n]=c.useState(),r=c.useRef(null),i=c.useRef(e),a=c.useRef(`none`),o=c.useRef(void 0),[s,l]=Me(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return c.useEffect(()=>{s===`mounted`?(a.current=o.current??V(r.current),o.current=void 0):a.current=`none`},[s]),P(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=V(t);e?(o.current=s,l(`MOUNT`)):s===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,l]),P(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=z(a=>{let o=V(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l(`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=z(e=>{e.target===t&&(a.current=V(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)}}l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:c.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=V(t)}else r.current=null;n(e)},[])}}z(Pe,`usePresence`);function B(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}z(B,`setRef`);function Fe(...e){let t=c.useRef(e);return t.current=e,c.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=B(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():B(n[e],null)}}},[])}z(Fe,`useStableComposedRefs`);function V(e){return e?.animationName||`none`}z(V,`getAnimationName`);function Ie(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)}z(Ie,`getElementRef`);var Le=Object.defineProperty,Re=(e,t)=>Le(e,`name`,{value:t,configurable:!0}),ze=c.useId||(()=>void 0),Be=0;function Ve(e){let[t,n]=c.useState(ze());return P(()=>{e||n(e=>e??String(Be++))},[e]),e||(t?`radix-${t}`:``)}Re(Ve,`useId`);var He=Object.defineProperty,Ue=(e,t)=>He(e,`name`,{value:t,configurable:!0}),We=c.useInsertionEffect;function H(e){let t=c.useRef(e);return typeof We==`function`?We(()=>{t.current=e}):P(()=>{t.current=e}),c.useMemo(()=>((...e)=>t.current?.(...e)),[])}Ue(H,`useCallbackRef`);var Ge=Object.defineProperty,U=(e,t)=>Ge(e,`name`,{value:t,configurable:!0}),W=`dismissableLayer.update`,Ke=`dismissableLayer.pointerDownOutside`,qe=`dismissableLayer.focusOutside`,Je,Ye=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Xe=c.forwardRef(U(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...u}=e,f=c.useContext(Ye),[p,m]=c.useState(null),h=p?.ownerDocument??globalThis?.document,[,g]=c.useState({}),_=b(t,m),v=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),ee=y?v.indexOf(y):-1,x=p?v.indexOf(p):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,C=x>=ee,w=c.useRef(!1),T=$e(e=>{a?.(e),s?.(e),e.defaultPrevented||l?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return C&&!t},[f.branches,C])}),E=et(e=>{if(r&&w.current)return;let t=e.target;[...f.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||l?.())},h),D=p?x===v.length-1:!1,O=H(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return c.useEffect(()=>{if(D)return h.addEventListener(`keydown`,O,{capture:!0}),()=>h.removeEventListener(`keydown`,O,{capture:!0})},[h,D,O]),c.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Je=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),G(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(p),f.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Je))}},[p,h,n,f]),c.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),G())},[p,f]),c.useEffect(()=>{let e=U(()=>g({}),`handleUpdate`);return document.addEventListener(W,e),()=>document.removeEventListener(W,e)},[]),(0,d.jsx)(j.div,{...u,ref:_,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:I(e.onFocusCapture,E.onFocusCapture),onBlurCapture:I(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:I(e.onPointerDownCapture,T.onPointerDownCapture)})},`DismissableLayer`));function Ze(){let e=c.useContext(Ye),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}U(Ze,`useDismissableLayerSurface`);var Qe=U(()=>!0,`IS_TRUE`);function $e(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Qe}=t,s=H(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),f=c.useRef(()=>{});return c.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}U(e,`resetOutsideInteraction`);function t(){return Array.from(d.current.values()).some(Boolean)}U(t,`isOutsideInteractionIntercepted`);function c(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{u.current&&f.current()},0)}U(c,`handleInteractionCapture`);function p(e){u.current&&d.current.set(e.type,!1)}U(p,`handleInteractionBubble`);let m=U(a=>{if(a.target&&!l.current){let c=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||K(Ke,s,p,{discrete:!0})};if(U(c,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,f.current),e(),l.current=!1;return}let p={originalEvent:a};u.current=!0,i.current=r&&a.button===0,d.current.clear(),!r||a.button!==0?c():(n.removeEventListener(`click`,f.current),f.current=c,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();l.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,c,!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`,f.current);for(let e of h)n.removeEventListener(e,c,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:U(()=>l.current=!0,`onPointerDownCapture`)}}U($e,`usePointerDownOutside`);function et(e,t=globalThis?.document){let n=H(e),r=c.useRef(!1);return c.useEffect(()=>{let e=U(e=>{e.target&&!r.current&&K(qe,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:U(()=>r.current=!0,`onFocusCapture`),onBlurCapture:U(()=>r.current=!1,`onBlurCapture`)}}U(et,`useFocusOutside`);function G(){let e=new CustomEvent(W);document.dispatchEvent(e)}U(G,`dispatchUpdate`);function K(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?M(i,a):i.dispatchEvent(a)}U(K,`handleAndDispatchCustomEvent`);var tt=Object.defineProperty,q=(e,t)=>tt(e,`name`,{value:t,configurable:!0}),J=`focusScope.autoFocusOnMount`,Y=`focusScope.autoFocusOnUnmount`,nt={bubbles:!1,cancelable:!0},rt=c.forwardRef(q(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[l,u]=c.useState(null),f=H(a),p=H(o),m=c.useRef(null),h=b(t,u),g=c.useRef(i);c.useEffect(()=>{g.current=i});let _=c.useCallback(e=>e?l?.contains(e)?!0:!!g.current?.some(t=>t.contains(e)):!1,[l]),v=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let e=function(e){if(v.paused||!l)return;let t=e.target;_(t)?m.current=t:Q(m.current,{select:!0})},t=function(e){if(v.paused||!l)return;let t=e.relatedTarget;t!==null&&(_(t)||Q(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Q(l)};q(e,`handleFocusIn`),q(t,`handleFocusOut`),q(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,l,v.paused,_]),c.useEffect(()=>{if(l){ft.add(v);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(J,nt);l.addEventListener(J,f),l.dispatchEvent(t),t.defaultPrevented||(ct(mt(X(l)),{select:!0}),document.activeElement===e&&Q(l))}return()=>{l.removeEventListener(J,f);let t=l.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(Y,nt);l.addEventListener(Y,p),l.dispatchEvent(r),r.defaultPrevented||Q(e??t.body,{select:!0}),l.removeEventListener(Y,p),ft.remove(v)},0)}}},[l,f,p,v]);let y=c.useCallback(e=>{if(!n&&!r||v.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]=lt(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Q(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Q(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,d.jsx)(j.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})},`FocusScope`)),it=c.createContext(null);function at({registry:e,children:t}){return e?(0,d.jsx)(it.Provider,{value:e,children:t}):t}q(at,`FocusScopeBranchProvider`);function ot(){let[e,t]=c.useState([]);return{nodes:e,registry:c.useMemo(()=>({add:q(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:q(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}q(ot,`useFocusScopeBranchRegistry`);function st(e){let t=c.useContext(it);c.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}q(st,`useFocusScopeBranch`);function ct(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Q(r,{select:t}),document.activeElement!==n)return}q(ct,`focusFirst`);function lt(e){let t=X(e);return[Z(t,e),Z(t.reverse(),e)]}q(lt,`getTabbableEdges`);function X(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:q(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}q(X,`getTabbableCandidates`);function Z(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):ut(r,{upTo:t})))return r}q(Z,`findVisible`);function ut(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}q(ut,`isHidden`);function dt(e){return e.tagName===`INPUT`&&typeof e.select==`function`}q(dt,`isSelectableInput`);function Q(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&dt(e)&&t&&e.select()}}q(Q,`focus`);var ft=pt();function pt(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=$(e,t),e.unshift(t)},remove(t){e=$(e,t),e[0]?.resume()}}}q(pt,`createFocusScopesStack`);function $(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}q($,`arrayRemove`);function mt(e){return e.filter(e=>e.tagName!==`A`)}q(mt,`removeLinks`);var ht=Object.defineProperty,gt=c.forwardRef(((e,t)=>ht(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=c.useState(!1);P(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?f.createPortal((0,d.jsx)(j.div,{...r,ref:t}),o):null},`Portal`)),_t=h(`relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 rounded-[var(--control-radius)] border text-sm font-medium whitespace-nowrap outline-none transition-[box-shadow,scale] select-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset disabled:pointer-events-none disabled:opacity-64 [&:active:not([aria-haspopup])]:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`border-primary bg-primary text-primary-foreground shadow-xs shadow-primary/24 not-disabled:inset-shadow-[0_1px_rgb(255_255_255/16%)] hover:bg-primary/90 active:shadow-none`,outline:`border-input bg-popover text-foreground shadow-xs/5 hover:bg-accent/50 dark:bg-input/32 dark:hover:bg-input/64 [&_svg:not([class*=text-])]:text-muted-foreground`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/90 dark:bg-input/32 dark:hover:bg-input/64`,ghost:`border-transparent text-foreground hover:bg-accent aria-expanded:bg-accent [&_svg:not([class*=text-])]:text-muted-foreground`,"ghost-muted":`border-transparent text-muted-foreground hover:bg-accent hover:text-foreground aria-expanded:bg-accent`,destructive:`border-transparent bg-destructive/90 text-white shadow-xs shadow-destructive/24 hover:bg-destructive`},size:{default:`h-9 gap-1.5 px-[calc(--spacing(2.5)-1px)]`,sm:`h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)]`,xs:`h-7 gap-1 px-[calc(--spacing(2)-1px)] text-xs [&_svg:not([class*='size-'])]:size-3.5`,icon:`size-9`,"icon-sm":`size-8`,"icon-xs":`size-7 [&_svg:not([class*='size-'])]:size-3.5`,"icon-micro":`size-6 rounded-sm p-0`}},defaultVariants:{variant:`default`,size:`default`}});function vt({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let o=r?C:`button`;return(0,d.jsx)(o,{"data-slot":`button`,"data-variant":t,"data-size":n,className:a(_t({variant:t,size:n,className:e})),...i})}export{s as S,M as _,st as a,b,Ze as c,Ne as d,Ee as f,j as g,fe as h,at as i,H as l,P as m,gt as n,ot as o,I as p,rt as r,Xe as s,vt as t,Ve as u,S as v,u as x,T as y};
@@ -1,4 +1,4 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{c as t,s as n,t as r}from"./utils-KVq36YOZ.js";import{b as i,c as a,d as o,f as s,g as c,h as l,i as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y,x as ee}from"./button-Dhs1rqob.js";var b=[[`path`,{d:`M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],x=e(t(),1),S=Object.defineProperty,C=(e,t)=>S(e,`name`,{value:t,configurable:!0}),w=0,T=null;function te(e){return E(),e.children}C(te,`FocusGuards`);function E(){x.useEffect(()=>{T||={start:D(),end:D()};let{start:e,end:t}=T;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),w++,()=>{w===1&&(T?.start.remove(),T?.end.remove(),T=null),w=Math.max(0,w-1)}},[])}C(E,`useFocusGuards`);function D(){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}C(D,`createFocusGuard`);var O=function(){return O=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},O.apply(this,arguments)};function ne(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 re(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 k=`right-scroll-bar-position`,A=`width-before-scroll-bar`,ie=`with-scroll-bars-hidden`,ae=`--removed-body-scroll-bar-size`;function j(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function oe(e,t){var n=(0,x.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 se=typeof window<`u`?x.useLayoutEffect:x.useEffect,ce=new WeakMap;function le(e,t){var n=oe(t||null,function(t){return e.forEach(function(e){return j(e,t)})});return se(function(){var t=ce.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||j(e,null)}),i.forEach(function(e){r.has(e)||j(e,a)})}ce.set(n,e)},[e]),n}function ue(e){return e}function de(e,t){t===void 0&&(t=ue);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 fe(e){e===void 0&&(e={});var t=de(null);return t.options=O({async:!0,ssr:!1},e),t}var pe=function(e){var t=e.sideCar,n=ne(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 x.createElement(r,O({},n))};pe.isSideCarExport=!0;function me(e,t){return e.useMedium(t),pe}var he=fe(),M=function(){},N=x.forwardRef(function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:M,onWheelCapture:M,onTouchMoveCapture:M}),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,ee=ne(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),b=f,S=le([n,t]),C=O(O({},ee),i);return x.createElement(x.Fragment,null,u&&x.createElement(b,{sideCar:he,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?x.cloneElement(x.Children.only(s),O(O({},C),{ref:S})):x.createElement(v,O({},C,{className:c,ref:S}),s))});N.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},N.classNames={fullWidth:A,zeroRight:k};var ge=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function _e(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=ge();return t&&e.setAttribute(`nonce`,t),e}function ve(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ye(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var be=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_e())&&(ve(t,n),ye(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xe=function(){var e=be();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Se=function(){var e=xe();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Ce={left:0,top:0,right:0,gap:0},P=function(e){return parseInt(e||``,10)||0},we=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[P(n),P(r),P(i)]},Te=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Ce;var t=we(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])}},Ee=Se(),F=`data-scroll-locked`,De=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{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{c as t,l as n,t as r}from"./utils-DPxKzVJp.js";import{b as i,c as a,d as o,f as s,g as c,h as l,i as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y,x as ee}from"./button-CvTVUHeO.js";var b=[[`path`,{d:`M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],x=e(n(),1),S=Object.defineProperty,C=(e,t)=>S(e,`name`,{value:t,configurable:!0}),w=0,T=null;function te(e){return E(),e.children}C(te,`FocusGuards`);function E(){x.useEffect(()=>{T||={start:D(),end:D()};let{start:e,end:t}=T;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),w++,()=>{w===1&&(T?.start.remove(),T?.end.remove(),T=null),w=Math.max(0,w-1)}},[])}C(E,`useFocusGuards`);function D(){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}C(D,`createFocusGuard`);var O=function(){return O=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},O.apply(this,arguments)};function ne(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 re(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 k=`right-scroll-bar-position`,A=`width-before-scroll-bar`,ie=`with-scroll-bars-hidden`,ae=`--removed-body-scroll-bar-size`;function j(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function oe(e,t){var n=(0,x.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 se=typeof window<`u`?x.useLayoutEffect:x.useEffect,ce=new WeakMap;function le(e,t){var n=oe(t||null,function(t){return e.forEach(function(e){return j(e,t)})});return se(function(){var t=ce.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||j(e,null)}),i.forEach(function(e){r.has(e)||j(e,a)})}ce.set(n,e)},[e]),n}function ue(e){return e}function de(e,t){t===void 0&&(t=ue);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 fe(e){e===void 0&&(e={});var t=de(null);return t.options=O({async:!0,ssr:!1},e),t}var pe=function(e){var t=e.sideCar,n=ne(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 x.createElement(r,O({},n))};pe.isSideCarExport=!0;function me(e,t){return e.useMedium(t),pe}var he=fe(),M=function(){},N=x.forwardRef(function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:M,onWheelCapture:M,onTouchMoveCapture:M}),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,ee=ne(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),b=f,S=le([n,t]),C=O(O({},ee),i);return x.createElement(x.Fragment,null,u&&x.createElement(b,{sideCar:he,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?x.cloneElement(x.Children.only(s),O(O({},C),{ref:S})):x.createElement(v,O({},C,{className:c,ref:S}),s))});N.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},N.classNames={fullWidth:A,zeroRight:k};var ge=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function _e(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=ge();return t&&e.setAttribute(`nonce`,t),e}function ve(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ye(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var be=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_e())&&(ve(t,n),ye(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xe=function(){var e=be();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Se=function(){var e=xe();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Ce={left:0,top:0,right:0,gap:0},P=function(e){return parseInt(e||``,10)||0},we=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[P(n),P(r),P(i)]},Te=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Ce;var t=we(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])}},Ee=Se(),F=`data-scroll-locked`,De=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
  .${ie} {
3
3
  overflow: hidden ${r};
4
4
  padding-right: ${s}px ${r};
@@ -38,7 +38,7 @@ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{c as t,s as n,t as r}f
38
38
  `},Oe=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},ke=function(){x.useEffect(function(){return document.body.setAttribute(F,(Oe()+1).toString()),function(){var e=Oe()-1;e<=0?document.body.removeAttribute(F):document.body.setAttribute(F,e.toString())}},[])},Ae=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;ke();var a=x.useMemo(function(){return Te(i)},[i]);return x.createElement(Ee,{styles:De(a,!t,i,n?``:`!important`)})},I=!1;if(typeof window<`u`)try{var L=Object.defineProperty({},"passive",{get:function(){return I=!0,!0}});window.addEventListener(`test`,L,L),window.removeEventListener(`test`,L,L)}catch{I=!1}var R=I?{passive:!1}:!1,je=function(e){return e.tagName===`TEXTAREA`},Me=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!je(e)&&n[t]===`visible`)},Ne=function(e){return Me(e,`overflowY`)},Pe=function(e){return Me(e,`overflowX`)},Fe=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Re(e,r)){var i=ze(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ie=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Le=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Re=function(e,t){return e===`v`?Ne(t):Pe(t)},ze=function(e,t){return e===`v`?Ie(t):Le(t)},Be=function(e,t){return e===`h`&&t===`rtl`?-1:1},Ve=function(e,t,n,r,i){var a=Be(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=ze(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Re(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},z=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},He=function(e){return[e.deltaX,e.deltaY]},Ue=function(e){return e&&`current`in e?e.current:e},We=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ge=function(e){return`
39
39
  .block-interactivity-${e} {pointer-events: none;}
40
40
  .allow-interactivity-${e} {pointer-events: all;}
41
- `},Ke=0,B=[];function qe(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),i=x.useState(Ke++)[0],a=x.useState(Se)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=re([e.lockRef.current],(e.shards||[]).map(Ue),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=x.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=z(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Fe(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Fe(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Ve(h,t,e,h===`h`?s:c,!0)},[]),c=x.useCallback(function(e){var n=e;if(B.length&&B[B.length-1]===a){var r=`deltaY`in n?He(n):z(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&We(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(Ue).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=x.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Je(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=x.useCallback(function(e){n.current=z(e),r.current=void 0},[]),d=x.useCallback(function(t){l(t.type,He(t),t.target,s(t,e.lockRef.current))},[]),f=x.useCallback(function(t){l(t.type,z(t),t.target,s(t,e.lockRef.current))},[]);x.useEffect(function(){return B.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,R),document.addEventListener(`touchmove`,c,R),document.addEventListener(`touchstart`,u,R),function(){B=B.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,R),document.removeEventListener(`touchmove`,c,R),document.removeEventListener(`touchstart`,u,R)}},[]);var p=e.removeScrollBar,m=e.inert;return x.createElement(x.Fragment,null,m?x.createElement(a,{styles:Ge(i)}):null,p?x.createElement(Ae,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Je(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ye=me(he,qe),V=x.forwardRef(function(e,t){return x.createElement(N,O({},e,{ref:t,sideCar:Ye}))});V.classNames=N.classNames;var Xe=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},H=new WeakMap,U=new WeakMap,W={},G=0,Ze=function(e){return e&&(e.host||Ze(e.parentNode))},Qe=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ze(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},$e=function(e,t,n,r){var i=Qe(t,Array.isArray(e)?e:[e]);W[n]||(W[n]=new WeakMap);var a=W[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(H.get(e)||0)+1,l=(a.get(e)||0)+1;H.set(e,c),a.set(e,l),o.push(e),c===1&&i&&U.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),G++,function(){o.forEach(function(e){var t=H.get(e)-1,i=a.get(e)-1;H.set(e,t),a.set(e,i),t||(U.has(e)||e.removeAttribute(r),U.delete(e)),i||e.removeAttribute(n)}),G--,G||(H=new WeakMap,H=new WeakMap,U=new WeakMap,W={})}},et=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Xe(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),$e(r,i,n,`aria-hidden`)):function(){return null}},K=n(),tt=Object.defineProperty,q=(e,t)=>tt(e,`name`,{value:t,configurable:!0}),J=`Dialog`,[nt,rt]=l(J),[it,Y]=nt(J),at=q(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,c=x.useRef(null),l=x.useRef(null),{nodes:u,registry:d}=p(),[f,m]=s({prop:r,defaultProp:i??!1,onChange:a,caller:J}),[h,g]=x.useState(0),[_,y]=x.useState(0);return(0,K.jsx)(it,{scope:t,triggerRef:c,contentRef:l,contentId:v(),titleId:v(),descriptionId:v(),titlePresent:h>0,descriptionPresent:_>0,setTitleCount:g,setDescriptionCount:y,open:f,onOpenChange:m,onOpenToggle:x.useCallback(()=>m(e=>!e),[m]),modal:o,branchNodes:u,branchRegistry:d,children:n})},`Dialog`),ot=`DialogTrigger`,st=x.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,a=Y(ot,n),o=i(t,a.triggerRef);return(0,K.jsx)(c.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":Q(a.open),...r,ref:o,onClick:m(e.onClick,a.onOpenToggle)})},`DialogTrigger`)),ct=`DialogPortal`,[lt,ut]=nt(ct,{forceMount:void 0}),dt=q(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Y(ct,t);return(0,K.jsx)(lt,{scope:t,forceMount:n,children:x.Children.map(r,e=>(0,K.jsx)(o,{present:n||a.open,children:(0,K.jsx)(f,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),ft=`DialogOverlay`,pt=x.forwardRef(q(function(e,t){let n=ut(ft,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Y(ft,e.__scopeDialog);return a.modal?(0,K.jsx)(o,{present:r||a.open,children:(0,K.jsx)(ht,{...i,ref:t})}):null},`DialogOverlay`)),mt=y(`DialogOverlay.RemoveScroll`),ht=x.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,o=Y(ft,n),s=a(),l=i(t,s);return(0,K.jsx)(V,{as:mt,allowPinchZoom:!0,shards:x.useMemo(()=>[o.contentRef,...o.branchNodes.map(e=>({current:e}))],[o.contentRef,o.branchNodes]),children:(0,K.jsx)(c.div,{"data-state":Q(o.open),...r,ref:l,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),X=`DialogContent`,gt=x.forwardRef(q(function(e,t){let n=ut(X,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Y(X,e.__scopeDialog);return(0,K.jsx)(o,{present:r||a.open,children:a.modal?(0,K.jsx)(_t,{...i,ref:t}):(0,K.jsx)(vt,{...i,ref:t})})},`DialogContent`)),_t=x.forwardRef(q(function(e,t){let n=Y(X,e.__scopeDialog),r=x.useRef(null),a=i(t,n.contentRef,r);return x.useEffect(()=>{let e=r.current;if(e)return et(e)},[]),(0,K.jsx)(yt,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:m(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:m(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:m(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),vt=x.forwardRef(q(function(e,t){let n=Y(X,e.__scopeDialog),r=x.useRef(!1),i=x.useRef(!1);return(0,K.jsx)(yt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),yt=x.forwardRef(q(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=Y(X,n);return E(),(0,K.jsx)(u,{registry:l.branchRegistry,children:(0,K.jsx)(h,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,K.jsx)(g,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?Ct(o,l.descriptionId):o,"data-state":Q(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),bt=x.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,i=Y(`DialogTitle`,n),{setTitleCount:a}=i;return d(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,K.jsx)(c.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),xt=x.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,i=Y(`DialogDescription`,n),{setDescriptionCount:a}=i;return d(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,K.jsx)(c.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),St=`DialogClose`,Z=x.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,i=Y(St,n);return(0,K.jsx)(c.button,{type:`button`,...r,ref:t,onClick:m(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function Ct(...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}q(Ct,`concatAriaDescribedby`);function Q(e){return e?`open`:`closed`}q(Q,`getState`);var wt=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
41
+ `},Ke=0,B=[];function qe(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),i=x.useState(Ke++)[0],a=x.useState(Se)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=re([e.lockRef.current],(e.shards||[]).map(Ue),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=x.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=z(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Fe(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Fe(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Ve(h,t,e,h===`h`?s:c,!0)},[]),c=x.useCallback(function(e){var n=e;if(B.length&&B[B.length-1]===a){var r=`deltaY`in n?He(n):z(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&We(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var c=(o.current.shards||[]).map(Ue).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=x.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Je(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=x.useCallback(function(e){n.current=z(e),r.current=void 0},[]),d=x.useCallback(function(t){l(t.type,He(t),t.target,s(t,e.lockRef.current))},[]),f=x.useCallback(function(t){l(t.type,z(t),t.target,s(t,e.lockRef.current))},[]);x.useEffect(function(){return B.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,R),document.addEventListener(`touchmove`,c,R),document.addEventListener(`touchstart`,u,R),function(){B=B.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,R),document.removeEventListener(`touchmove`,c,R),document.removeEventListener(`touchstart`,u,R)}},[]);var p=e.removeScrollBar,m=e.inert;return x.createElement(x.Fragment,null,m?x.createElement(a,{styles:Ge(i)}):null,p?x.createElement(Ae,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Je(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ye=me(he,qe),V=x.forwardRef(function(e,t){return x.createElement(N,O({},e,{ref:t,sideCar:Ye}))});V.classNames=N.classNames;var Xe=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},H=new WeakMap,U=new WeakMap,W={},G=0,Ze=function(e){return e&&(e.host||Ze(e.parentNode))},Qe=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ze(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},$e=function(e,t,n,r){var i=Qe(t,Array.isArray(e)?e:[e]);W[n]||(W[n]=new WeakMap);var a=W[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(H.get(e)||0)+1,l=(a.get(e)||0)+1;H.set(e,c),a.set(e,l),o.push(e),c===1&&i&&U.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),G++,function(){o.forEach(function(e){var t=H.get(e)-1,i=a.get(e)-1;H.set(e,t),a.set(e,i),t||(U.has(e)||e.removeAttribute(r),U.delete(e)),i||e.removeAttribute(n)}),G--,G||(H=new WeakMap,H=new WeakMap,U=new WeakMap,W={})}},et=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Xe(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),$e(r,i,n,`aria-hidden`)):function(){return null}},K=t(),tt=Object.defineProperty,q=(e,t)=>tt(e,`name`,{value:t,configurable:!0}),J=`Dialog`,[nt,rt]=l(J),[it,Y]=nt(J),at=q(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,c=x.useRef(null),l=x.useRef(null),{nodes:u,registry:d}=p(),[f,m]=s({prop:r,defaultProp:i??!1,onChange:a,caller:J}),[h,g]=x.useState(0),[_,y]=x.useState(0);return(0,K.jsx)(it,{scope:t,triggerRef:c,contentRef:l,contentId:v(),titleId:v(),descriptionId:v(),titlePresent:h>0,descriptionPresent:_>0,setTitleCount:g,setDescriptionCount:y,open:f,onOpenChange:m,onOpenToggle:x.useCallback(()=>m(e=>!e),[m]),modal:o,branchNodes:u,branchRegistry:d,children:n})},`Dialog`),ot=`DialogTrigger`,st=x.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,a=Y(ot,n),o=i(t,a.triggerRef);return(0,K.jsx)(c.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":Q(a.open),...r,ref:o,onClick:m(e.onClick,a.onOpenToggle)})},`DialogTrigger`)),ct=`DialogPortal`,[lt,ut]=nt(ct,{forceMount:void 0}),dt=q(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Y(ct,t);return(0,K.jsx)(lt,{scope:t,forceMount:n,children:x.Children.map(r,e=>(0,K.jsx)(o,{present:n||a.open,children:(0,K.jsx)(f,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),ft=`DialogOverlay`,pt=x.forwardRef(q(function(e,t){let n=ut(ft,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Y(ft,e.__scopeDialog);return a.modal?(0,K.jsx)(o,{present:r||a.open,children:(0,K.jsx)(ht,{...i,ref:t})}):null},`DialogOverlay`)),mt=y(`DialogOverlay.RemoveScroll`),ht=x.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,o=Y(ft,n),s=a(),l=i(t,s);return(0,K.jsx)(V,{as:mt,allowPinchZoom:!0,shards:x.useMemo(()=>[o.contentRef,...o.branchNodes.map(e=>({current:e}))],[o.contentRef,o.branchNodes]),children:(0,K.jsx)(c.div,{"data-state":Q(o.open),...r,ref:l,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),X=`DialogContent`,gt=x.forwardRef(q(function(e,t){let n=ut(X,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Y(X,e.__scopeDialog);return(0,K.jsx)(o,{present:r||a.open,children:a.modal?(0,K.jsx)(_t,{...i,ref:t}):(0,K.jsx)(vt,{...i,ref:t})})},`DialogContent`)),_t=x.forwardRef(q(function(e,t){let n=Y(X,e.__scopeDialog),r=x.useRef(null),a=i(t,n.contentRef,r);return x.useEffect(()=>{let e=r.current;if(e)return et(e)},[]),(0,K.jsx)(yt,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:m(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:m(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:m(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),vt=x.forwardRef(q(function(e,t){let n=Y(X,e.__scopeDialog),r=x.useRef(!1),i=x.useRef(!1);return(0,K.jsx)(yt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),yt=x.forwardRef(q(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=Y(X,n);return E(),(0,K.jsx)(u,{registry:l.branchRegistry,children:(0,K.jsx)(h,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,K.jsx)(g,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?Ct(o,l.descriptionId):o,"data-state":Q(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),bt=x.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,i=Y(`DialogTitle`,n),{setTitleCount:a}=i;return d(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,K.jsx)(c.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),xt=x.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,i=Y(`DialogDescription`,n),{setDescriptionCount:a}=i;return d(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,K.jsx)(c.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),St=`DialogClose`,Z=x.forwardRef(q(function(e,t){let{__scopeDialog:n,...r}=e,i=Y(St,n);return(0,K.jsx)(c.button,{type:`button`,...r,ref:t,onClick:m(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function Ct(...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}q(Ct,`concatAriaDescribedby`);function Q(e){return e?`open`:`closed`}q(Q,`getState`);var wt=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
42
42
  <symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
43
43
  <path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/>
44
44
  </symbol>
@@ -0,0 +1 @@
1
+ import"./accounts-CCbsDjja.js";export{n as getSharedHighlighter}from"./dist-BrDshb6Z.js";