PageSourceSearch

https://commonego.com/assets/vendor-ui-AHajMRc9.js

js commonego.com collected 2026-10-09 22:00:38 UTC 59,558 bytes, 41 lines download raw bytes

1var Pt=e=>{throw TypeError(e)};var _t=(e,t,n)=>t.has(e)||Pt("Cannot "+n);var F=(e,t,n)=>(_t(e,t,"read from private field"),n?n.call(e):t.get(e)),Ot=(e,t,n)=>t.has(e)?Pt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),je=(e,t,n,r)=>(_t(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);import{r as a,j as b,R as de}from"./vendor-query-Cpjl6gpd.js";import{r as Wt}from"./vendor-react-ClNFnALs.js";var qn=Object.defineProperty,fe=(e,t)=>qn(e,"name",{value:t,configurable:!0}),Gt=!!(typeof window<"u"&&window.document&&window.document.createElement);function O(e,t,{checkForDefaultPrevented:n=!0}={}){return fe(function(o){if(e?.(o),n===!1||!o||!o.defaultPrevented)return t?.(o)},"handleEvent")}fe(O,"composeEventHandlers");function Qn(e){if(!Gt)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}fe(Qn,"getOwnerWindow");function Ke(e){if(!Gt)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}fe(Ke,"getOwnerDocument");function Ht(e,t=!1){const{activeElement:n}=Ke(e);if(!n?.nodeName)return null;if(Kt(n)&&n.contentDocument)return Ht(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const o=Ke(n).getElementById(r);if(o)return o}}return n}fe(Ht,"getActiveElement");function Kt(e){return e.tagName==="IFRAME"}fe(Kt,"isFrame");var Jn=Object.defineProperty,st=(e,t)=>Jn(e,"name",{value:t,configurable:!0});function ze(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}st(ze,"setRef");function zt(...e){return t=>{let n=!1;const r=e.map(o=>{const i=ze(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():ze(e[o],null)}}}}st(zt,"composeRefs");function j(...e){return a.useCallback(zt(...e),e)}st(j,"useComposedRefs");var er=Object.defineProperty,W=(e,t)=>er(e,"name",{value:t,configurable:!0});function tr(e,t){const n=a.createContext(t);n.displayName=e+"Context";const r=W(i=>{const{children:s,...c}=i,l=a.useMemo(()=>c,Object.values(c));return b.jsx(n.Provider,{value:l,children:s})},"Provider");r.displayName=e+"Provider";function o(i,s={}){const{optional:c=!1}=s,l=a.useContext(n);if(l)return l;if(t!==void 0)return t;if(!c)throw new Error(`\`${i}\` must be used within \`${e}\``)}return W(o,"useContext"),[r,o]}W(tr,"createContext");function te(e,t=[]){let n=[];function r(i,s){const c=a.createContext(s);c.displayName=i+"Context";const l=n.length;n=[...n,s];const p=W(u=>{const{scope:d,children:y,...g}=u,m=d?.[e]?.[l]||c,v=a.useMemo(()=>g,Object.values(g));return b.jsx(m.Provider,{value:v,children:y})},"Provider");p.displayName=i+"Provider";function f(u,d,y={}){const{optional:g=!1}=y,m=d?.[e]?.[l]||c,v=a.useContext(m);if(v)return v;if(s!==void 0)return s;if(!g)throw new Error(`\`${u}\` must be used within \`${i}\``)}return W(f,"useContext"),[p,f]}W(r,"createContext");const o=W(()=>{const i=n.map(s=>a.createContext(s));return W(function(c){const l=c?.[e]||i;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])},"useScope")},"createScope");return o.scopeName=e,[r,Yt(o,...t)]}W(te,"createContextScope");function Yt(...e){const t=e[0];if(e.length===1)return t;const n=W(()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return W(function(i){const s=r.reduce((c,{useScope:l,scopeName:p})=>{const u=l(i)[`__scope${p}`];return{...c,...u}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}W(Yt,"composeContextScopes");var nr=Object.defineProperty,G=(e,t)=>nr(e,"name",{value:t,configurable:!0});function ee(e){const t=a.forwardRef((n,r)=>{let{children:o,...i}=n,s=null,c=!1;const l=[];Ye(o)&&typeof ye=="function"&&(o=ye(o._payload)),a.Children.forEach(o,d=>{if(Qt(d)){c=!0;const y=d;let g="child"in y.props?y.props.child:y.props.children;Ye(g)&&typeof ye=="function"&&(g=ye(g._payload)),s=or(y,g),l.push(s?.props?.children)}else l.push(d)}),s?s=a.cloneElement(s,void 0,l):!c&&a.Children.count(o)===1&&a.isValidElement(o)&&(s=o);const p=s?qt(s):void 0,f=j(r,p);if(!s){if(o||o===0)throw new Error(c?ar(e):sr(e));return o}const u=Zt(i,s.props??{});return s.type!==a.Fragment&&(u.ref=r?f:p),a.cloneElement(s,u)});return t.displayName=`${e}.Slot`,t}G(ee,"createSlot");var Bi=ee("Slot"),Xt=Symbol.for("radix.slottable");function rr(e){const t=G(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Xt,t}G(rr,"createSlottable");var or=G((e,t)=>{if("child"in e.props){const n=e.props.child;
1return a.isValidElement(n)?a.cloneElement(n,void 0,e.props.children(n.props.children)):null}return a.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Zt(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...c)=>{const l=i(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}G(Zt,"mergeProps");function qt(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)}G(qt,"getElementRef");function Qt(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Xt}G(Qt,"isSlottable");var ir=Symbol.for("react.lazy");function Ye(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ir&&"_payload"in e&&Jt(e._payload)}G(Ye,"isLazyComponent");function Jt(e){return typeof e=="object"&&e!==null&&"then"in e}G(Jt,"isPromiseLike");var sr=G(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),ar=G(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),ye=de[" use ".trim().toString()],cr=Object.defineProperty,ur=(e,t)=>cr(e,"name",{value:t,configurable:!0}),lr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],A=lr.reduce((e,t)=>{const n=ee(`Primitive.${t}`),r=a.forwardRef((o,i)=>{const{asChild:s,...c}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function en(e,t){e&&Wt.flushSync(()=>e.dispatchEvent(t))}ur(en,"dispatchDiscreteCustomEvent");var dr=Object.defineProperty,fr=(e,t)=>dr(e,"name",{value:t,configurable:!0});function ne(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}fr(ne,"useCallbackRef");var vr=Object.defineProperty,D=(e,t)=>vr(e,"name",{value:t,configurable:!0}),Xe="dismissableLayer.update",pr="dismissableLayer.pointerDownOutside",mr="dismissableLayer.focusOutside",At,at=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),tn=a.forwardRef(D(function(t,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:l,onDismiss:p,...f}=t,u=a.useContext(at),[d,y]=a.useState(null),g=d?.ownerDocument??globalThis?.document,[,m]=a.useState({}),v=j(n,y),S=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=C?S.indexOf(C):-1,E=d?S.indexOf(d):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,R=E>=h,P=a.useRef(!1),T=rn(x=>{s?.(x),l?.(x),x.defaultPrevented||p?.()},{ownerDocument:g,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:a.useCallback(x=>{if(!(x instanceof Node))return!1;const U=[...u.branches].some(Q=>Q.contains(x));return R&&!U},[u.branches,R])}),I=on(x=>{if(o&&P.current)return;const U=x.target;[...u.branches].some(pe=>pe.contains(U))||(c?.(x),l?.(x),x.defaultPrevented||p?.())},g),K=d?E===S.length-1:!1,k=ne(x=>{x.key==="Escape"&&(i?.(x),!x.defaultPrevented&&p&&(x.preventDefault(),p()))});return a.useEffect(()=>{if(K)return g.addEventListener("keydown",k,{capture:!0}),()=>g.removeEventListener("keydown",k,{capture:!0})},[g,K,k]),a.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(At=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ze(),()=>{r&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(g.body.style.pointerEvents=At))}},[d,g,r,u]),a.useEffect(()=>()=>
1{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ze())},[d,u]),a.useEffect(()=>{const x=D(()=>m({}),"handleUpdate");return document.addEventListener(Xe,x),()=>document.removeEventListener(Xe,x)},[]),b.jsx(A.div,{...f,ref:v,style:{pointerEvents:w?R?"auto":"none":void 0,...t.style},onFocusCapture:O(t.onFocusCapture,I.onFocusCapture),onBlurCapture:O(t.onBlurCapture,I.onBlurCapture),onPointerDownCapture:O(t.onPointerDownCapture,T.onPointerDownCapture)})},"DismissableLayer")),hr=a.forwardRef(D(function(t,n){const r=a.useContext(at),o=a.useRef(null),i=j(n,o);return a.useEffect(()=>{const s=o.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),b.jsx(A.div,{...t,ref:i})},"DismissableLayerBranch"));function nn(){const e=a.useContext(at),[t,n]=a.useState(null);return a.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}D(nn,"useDismissableLayerSurface");var gr=D(()=>!0,"IS_TRUE");function rn(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:s=gr}=t,c=ne(e),l=a.useRef(!1),p=a.useRef(!1),f=a.useRef(new Map),u=a.useRef(()=>{});return a.useEffect(()=>{function d(){p.current=!1,o.current=!1,f.current.clear()}D(d,"resetOutsideInteraction");function y(){return Array.from(f.current.values()).some(Boolean)}D(y,"isOutsideInteractionIntercepted");function g(h){if(!p.current)return;const E=h.target;E instanceof Node&&[...i].some(R=>R.contains(E))||f.current.set(h.type,!0),h.type==="click"&&window.setTimeout(()=>{p.current&&u.current()},0)}D(g,"handleInteractionCapture");function m(h){p.current&&f.current.set(h.type,!1)}D(m,"handleInteractionBubble");const v=D(h=>{if(h.target&&!l.current){let E=function(){n.removeEventListener("click",u.current);const R=y();d(),R||ct(pr,c,w,{discrete:!0})};if(D(E,"handleAndDispatchPointerDownOutsideEvent"),!s(h.target)){n.removeEventListener("click",u.current),d(),l.current=!1;return}const w={originalEvent:h};p.current=!0,o.current=r&&h.button===0,f.current.clear(),!r||h.button!==0?E():(n.removeEventListener("click",u.current),u.current=E,n.addEventListener("click",u.current,{once:!0}))}else n.removeEventListener("click",u.current),d();l.current=!1},"handlePointerDown"),S=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const h of S)n.addEventListener(h,g,!0),n.addEventListener(h,m);const C=window.setTimeout(()=>{n.addEventListener("pointerdown",v)},0);return()=>{window.clearTimeout(C),n.removeEventListener("pointerdown",v),n.removeEventListener("click",u.current);for(const h of S)n.removeEventListener(h,g,!0),n.removeEventListener(h,m)}},[n,c,r,o,i,s]),{onPointerDownCapture:D(()=>l.current=!0,"onPointerDownCapture")}}D(rn,"usePointerDownOutside");function on(e,t=globalThis?.document){const n=ne(e),r=a.useRef(!1);return a.useEffect(()=>{const o=D(i=>{i.target&&!r.current&&ct(mr,n,{originalEvent:i},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:D(()=>r.current=!0,"onFocusCapture"),onBlurCapture:D(()=>r.current=!1,"onBlurCapture")}}D(on,"useFocusOutside");function Ze(){const e=new CustomEvent(Xe);document.dispatchEvent(e)}D(Ze,"dispatchUpdate");function ct(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?en(o,i):o.dispatchEvent(i)}D(ct,"handleAndDispatchCustomEvent");var Vi=tn,Ui=hr,Y=globalThis?.document?a.useLayoutEffect:()=>{},br=Object.defineProperty,Cr=(e,t)=>br(e,"name",{value:t,configurable:!0}),yr=de[" useId ".trim().toString()]||(()=>{}),Er=0;function J(e){const[t,n]=a.useState(yr());return Y(()=>{e||n(r=>r??String(Er++))},[e]),e||(t?`radix-${t}`:"")}Cr(J,"useId");var Sr=Object.defineProperty,wr=(e,t)=>Sr(e,"name",{value:t,configurable:!0}),Rr=a.forwardRef(wr(function(t,n){const{container:r,...o}=t,[i,s]=a.useState(!1);Y(()=>s(!0),[]);const c=r||i&&globalThis?.document?.body;return c?Wt.createPortal(b.jsx(A.div,{...o,ref:n}),c):null},"Portal")),Ir=Object.defineProperty,q=(e,t)=>
1Ir(e,"name",{value:t,configurable:!0});function sn(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}q(sn,"useStateMachine");var he=q(e=>{const{present:t,children:n}=e,r=an(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),i=cn(r.ref,un(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:i}):null},"Presence");function an(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),s=a.useRef(void 0),c=e?"mounted":"unmounted",[l,p]=sn(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{l==="mounted"?(i.current=s.current??ue(r.current),s.current=void 0):i.current="none"},[l]),Y(()=>{const f=r.current,u=o.current;if(u!==e){const y=i.current,g=ue(f);e?(s.current=g,p("MOUNT")):g==="none"||f?.display==="none"?p("UNMOUNT"):p(u&&y!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),Y(()=>{if(t){let f;const u=t.ownerDocument.defaultView??window,d=q(g=>{const v=ue(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&v&&(p("ANIMATION_END"),!o.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",f=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},"handleAnimationEnd"),y=q(g=>{g.target===t&&(i.current=ue(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(f),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback(f=>{if(f){const u=getComputedStyle(f);r.current=u,s.current=ue(u)}else r.current=null;n(f)},[])}}q(an,"usePresence");function qe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}q(qe,"setRef");function cn(...e){const t=a.useRef(e);return t.current=e,a.useCallback(n=>{const r=t.current;let o=!1;const i=r.map(s=>{const c=qe(s,n);return!o&&typeof c=="function"&&(o=!0),c});if(o)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():qe(r[s],null)}}},[])}q(cn,"useStableComposedRefs");function ue(e){return e?.animationName||"none"}q(ue,"getAnimationName");function un(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)}q(un,"getElementRef");var xr=Object.defineProperty,Pr=(e,t)=>xr(e,"name",{value:t,configurable:!0}),Dt=de[" useEffectEvent ".trim().toString()],Tt=de[" useInsertionEffect ".trim().toString()];function ln(e){if(typeof Dt=="function")return Dt(e);const t=a.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Tt=="function"?Tt(()=>{t.current=e}):Y(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}Pr(ln,"useEffectEvent");var _r=Object.defineProperty,ge=(e,t)=>_r(e,"name",{value:t,configurable:!0}),Or=de[" useInsertionEffect ".trim().toString()]||Y;function re({prop:e,defaultProp:t,onChange:n=ge(()=>{},"onChange"),caller:r}){const[o,i,s]=dn({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:o,p=a.useCallback(f=>{if(c){const u=fn(f)?f(e):f;u!==e&&s.current?.(u)}else i(f)},[c,e,i,s]);return[l,p]}ge(re,"useControllableState");function dn({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),i=a.useRef(t);return Or(()=>{i.current=t},[t]),a.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}ge(dn,"useUncontrolledState");function fn(e){return typeof e=="function"}ge(fn,"isFunction");var Nt=Symbol("RADIX:SYNC_STATE");function Ar(e,t,n,r){const{prop:o,defaultProp:i,onChange:s,caller:c}=t,l=o!==void 0,p=ln(s),f=[{...n,state:i}];r&&f.push(r);const[u,d]=a.useReducer((v,S)=>{if(S.type===Nt)return{...v,state:S.state};const C=e(v,S);return l&&!Object.is(C.state,v.state)&&p(C.state),C},...f),y=u.state,g=a.useRef(y);a.useEffect(()=>{g.current!==y&&(g.current=y,l||p(y))},[y,g,l]);const m=a.useMemo(()=>o!==void 0?{...u,state:o}:u,[u,o]);return a.useEffect(()=>{l&&!Object.is(o,u.state)&&d({type:Nt,state:o})},[o,u.state,l]),[m,d]}ge(Ar,"useControllableStateReducer");var z=function(){return z=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},z.apply(this,arguments)};function vn(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Wi(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}
1return new(n||(n=Promise))(function(i,s){function c(f){try{p(r.next(f))}catch(u){s(u)}}function l(f){try{p(r.throw(f))}catch(u){s(u)}}function p(f){f.done?i(f.value):o(f.value).then(c,l)}p((r=r.apply(e,t||[])).next())})}function Dr(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Tr=Object.defineProperty,L=(e,t)=>Tr(e,"name",{value:t,configurable:!0}),ke="focusScope.autoFocusOnMount",Le="focusScope.autoFocusOnUnmount",Mt={bubbles:!1,cancelable:!0},Nr=a.forwardRef(L(function(t,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...c}=t,[l,p]=a.useState(null),f=ne(i),u=ne(s),d=a.useRef(null),y=j(n,p),g=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(o){let v=function(E){if(g.paused||!l)return;const w=E.target;l.contains(w)?d.current=w:Z(d.current,{select:!0})},S=function(E){if(g.paused||!l)return;const w=E.relatedTarget;w!==null&&(l.contains(w)||Z(d.current,{select:!0}))},C=function(E){if(document.activeElement===document.body)for(const R of E)R.removedNodes.length>0&&Z(l)};L(v,"handleFocusIn"),L(S,"handleFocusOut"),L(C,"handleMutations"),document.addEventListener("focusin",v),document.addEventListener("focusout",S);const h=new MutationObserver(C);return l&&h.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",S),h.disconnect()}}},[o,l,g.paused]),a.useEffect(()=>{if(l){Ft.add(g);const v=document.activeElement;if(!l.contains(v)){const C=new CustomEvent(ke,Mt);l.addEventListener(ke,f),l.dispatchEvent(C),C.defaultPrevented||(pn(Cn(ut(l)),{select:!0}),document.activeElement===v&&Z(l))}return()=>{l.removeEventListener(ke,f),setTimeout(()=>{const C=new CustomEvent(Le,Mt);l.addEventListener(Le,u),l.dispatchEvent(C),C.defaultPrevented||Z(v??document.body,{select:!0}),l.removeEventListener(Le,u),Ft.remove(g)},0)}}},[l,f,u,g]);const m=a.useCallback(v=>{if(!r&&!o||g.paused)return;const S=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,C=document.activeElement;if(S&&C){const h=v.currentTarget,[E,w]=mn(h);E&&w?!v.shiftKey&&C===w?(v.preventDefault(),r&&Z(E,{select:!0})):v.shiftKey&&C===E&&(v.preventDefault(),r&&Z(w,{select:!0})):C===h&&v.preventDefault()}},[r,o,g.paused]);return b.jsx(A.div,{tabIndex:-1,...c,ref:y,onKeyDown:m})},"FocusScope"));function pn(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Z(r,{select:t}),document.activeElement!==n)return}L(pn,"focusFirst");function mn(e){const t=ut(e),n=Qe(t,e),r=Qe(t.reverse(),e);return[n,r]}L(mn,"getTabbableEdges");function ut(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:L(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}L(ut,"getTabbableCandidates");function Qe(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):hn(r,{upTo:t})))return r}L(Qe,"findVisible");function hn(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}L(hn,"isHidden");function gn(e){return e instanceof HTMLInputElement&&"select"in e}L(gn,"isSelectableInput");function Z(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gn(e)&&t&&e.select()}}L(Z,"focus");var Ft=bn();function bn(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Je(e,t),e.unshift(t)},remove(t){e=Je(e,t),e[0]?.resume()}}}L(bn,"createFocusScopesStack");function Je(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}L(Je,"arrayRemove");function Cn(e){return e.filter(t=>t.tagName!=="A")}L(Cn,"removeLinks");var Mr=Object.defineProperty,lt=(e,t)=>Mr(e,"name",{value:t,configurable:!0}),Ee=0,ie=null;function Fr(e){return dt(),e.children}lt(Fr,"FocusGuards");function dt(){a.useEffect(()=>{ie||(ie={start:et(),end:et()});const{start:e,end:t}=ie;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Ee++,()=>{Ee===1&&(ie?.start.remove(),ie?.end.remove(),ie=null),Ee=Math.max(0,Ee-1)}},[])}lt(dt,"useFocusGuards");function et(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,923 bytes, lines 1-16
1style.position="fixed",e.style.pointerEvents="none",e}lt(et,"createFocusGuard");var xe="right-scroll-bar-position",Pe="width-before-scroll-bar",jr="with-scroll-bars-hidden",kr="--removed-body-scroll-bar-size";function $e(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Lr(e,t){var n=a.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var $r=typeof window<"u"?a.useLayoutEffect:a.useEffect,jt=new WeakMap;function Br(e,t){var n=Lr(null,function(r){return e.forEach(function(o){return $e(o,r)})});return $r(function(){var r=jt.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(c){i.has(c)||$e(c,null)}),i.forEach(function(c){o.has(c)||$e(c,s)})}jt.set(n,e)},[e]),n}function Vr(e){return e}function Ur(e,t){t===void 0&&(t=Vr);var n=[],r=!1,o={read:function(){if(r)throw new 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(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(i),s=n}var l=function(){var f=s;s=[],f.forEach(i)},p=function(){return Promise.resolve().then(l)};p(),n={push:function(f){s.push(f),p()},filter:function(f){return s=s.filter(f),n}}}};return o}function Wr(e){e===void 0&&(e={});var t=Ur(null);return t.options=z({async:!0,ssr:!1},e),t}var yn=function(e){var t=e.sideCar,n=vn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,z({},n))};yn.isSideCarExport=!0;function Gr(e,t){return e.useMedium(t),yn}var En=Wr(),Be=function(){},Oe=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Be,onWheelCapture:Be,onTouchMoveCapture:Be}),o=r[0],i=r[1],s=e.forwardProps,c=e.children,l=e.className,p=e.removeScrollBar,f=e.enabled,u=e.shards,d=e.sideCar,y=e.noRelative,g=e.noIsolation,m=e.inert,v=e.allowPinchZoom,S=e.as,C=S===void 0?"div":S,h=e.gapMode,E=vn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=d,R=Br([n,t]),P=z(z({},E),o);return a.createElement(a.Fragment,null,f&&a.createElement(w,{sideCar:En,removeScrollBar:p,shards:u,noRelative:y,noIsolation:g,inert:m,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:h}),s?a.cloneElement(a.Children.only(c),z(z({},P),{ref:R})):a.createElement(C,z({},P,{className:l,ref:R}),c))});Oe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Oe.classNames={fullWidth:Pe,zeroRight:xe};var Hr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Kr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Hr();return t&&e.setAttribute("nonce",t),e}function zr(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yr(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Xr=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Kr())&&(zr(t,n),Yr(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zr=function(){var e=Xr();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Sn=function(){var e=Zr(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},qr={left:0,top:0,right:0,gap:0},Ve=function(e){return parseInt(e||"",10)||0},Qr=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ve(n),Ve(r),Ve(o)]},Jr=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return qr;var t=Qr(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])}},eo=Sn(),le="data-scroll-locked",to=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(jr,` {
3   overflow: hidden `).concat(r,`;
4   padding-right: `).concat(c,"px ").concat(r,`;
5  }
6  body[`).concat(le,`] {
7    overflow: hidden `).concat(r,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10    padding-left: `.concat(o,`px;
11    padding-top: `).concat(i,`px;
12    padding-right: `).concat(s,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(c,"px ").concat(r,`;
16    `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(xe,` {
20    right: `).concat(c,"px ").concat(r,`;
21  }
22  
23  .`).concat(Pe,` {
24    margin-right: `).concat(c,"px ").concat(r,`;
25  }
26  
27  .`).concat(xe," .").concat(xe,` {
28    right: 0 `).concat(r,`;
29  }
30  
31  .`).concat(Pe," .").concat(Pe,` {
32    margin-right: 0 `).concat(r,`;
33  }
34  
35  body[`).concat(le,`] {
36    `).concat(kr,": ").concat(c,`px;
37  }
38`)},kt=function(){var e=parseInt(document.body.getAttribute(le)||"0",10);return isFinite(e)?e:0},no=function(){a.useEffect(function(){return document.body.setAttribute(le,(kt()+1).toString()),function(){var e=kt()-1;e<=0?document.body.removeAttribute(le):document.body.setAttribute(le,e.toString())}},[])},ro=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;no();var i=a.useMemo(function(){return Jr(o)},[o]);return a.createElement(eo,{styles:to(i,!t,o,n?"":"!important")})},tt=!1;if(typeof window<"u")try{var Se=Object.defineProperty({},"passive",{get:function(){return tt=!0,!0}});window.addEventListener("test",Se,Se),window.removeEventListener("test",Se,Se)}catch{tt=!1}var se=tt?{passive:!1}:!1,oo=function(e){return e.tagName==="TEXTAREA"},wn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!oo(e)&&n[t]==="visible")},io=function(e){return wn(e,"overflowY")},so=function(e){return wn(e,"overflowX")},Lt=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Rn(e,r);if(o){var i=In(e,r),s=i[1],c=i[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ao=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},co=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Rn=function(e,t){return e==="v"?io(t):so(t)},In=function(e,t){return e==="v"?ao(t):co(t)},uo=function(e,t){return e==="h"&&t==="rtl"?-1:1},lo=function(e,t,n,r,o){var i=uo(e,window.getComputedStyle(t).direction),s=i*r,c=n.target,l=t.contains(c),p=!1,f=s>0,u=0,d=0;do{if(!c)break;var y=In(e,c),g=y[0],m=y[1],v=y[2],S=m-v-i*g;(g||S)&&Rn(e,c)&&(u+=S,d+=g);var C=c.parentNode;c=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(f&&Math.abs(u)<1||!f&&Math.abs(d)<1)&&(p=!0),p},we=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$t=function(e){return[e.deltaX,e.deltaY]},Bt=function(e){return e&&"current"in e?e.current:e},fo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vo=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},po=0,ae=[];function mo(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(po++)[0],i=a.useState(Sn)[0],s=a.useRef(e);a.useEffect(function(){s.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=Dr([e.lockRef.current],(e.shards||[]).map(Bt),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=a.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var S=we(m),C=n.current,h="deltaX"in m?m.deltaX:C[0]-S[0],E="deltaY"in m?m.deltaY:C[1]-S[1],w,R=m.target,P=Math.abs(h)>Math.abs(E)?"h":"v";if("touches"in m&&P==="h"&&R.type==="range")return!1;var T=window.getSelection(),I=T&&T.anchorNode,K=I?I===R||I.contains(R):!1;if(K)return!1;var k=Lt(P,R);if(!k)return!0;if(k?w=P:(w=P==="v"?"h":"v",k=Lt(P,R)),!k)return!1;if(!r.current&&"changedTouches"in m&&(h||E)&&(r.current=w),!w)return!0;var x=r.current||w;return lo(x,v,m,x==="h"?h:E)},[]),l=a.useCallback(function(m){var v=m;if(!(!ae.length||ae[ae.length-1]!==i)){var S="deltaY"in v?$t(v):we(v),C=t.current.filter(function(w){return w.name===v.type&&(w.target===v.target||v.target===w.shadowParent)&&fo(w.delta,S)})[0];if(C&&C.should){v.cancelable&&v.preventDefault();return}
41if(!C){var h=(s.current.shards||[]).map(Bt).filter(Boolean).filter(function(w){return w.contains(v.target)}),E=h.length>0?c(v,h[0]):!s.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),p=a.useCallback(function(m,v,S,C){var h={name:m,delta:v,target:S,should:C,shadowParent:ho(S)};t.current.push(h),setTimeout(function(){t.current=t.current.filter(function(E){return E!==h})},1)},[]),f=a.useCallback(function(m){n.current=we(m),r.current=void 0},[]),u=a.useCallback(function(m){p(m.type,$t(m),m.target,c(m,e.lockRef.current))},[]),d=a.useCallback(function(m){p(m.type,we(m),m.target,c(m,e.lockRef.current))},[]);a.useEffect(function(){return ae.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",l,se),document.addEventListener("touchmove",l,se),document.addEventListener("touchstart",f,se),function(){ae=ae.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,se),document.removeEventListener("touchmove",l,se),document.removeEventListener("touchstart",f,se)}},[]);var y=e.removeScrollBar,g=e.inert;return a.createElement(a.Fragment,null,g?a.createElement(i,{styles:vo(o)}):null,y?a.createElement(ro,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ho(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const go=Gr(En,mo);var xn=a.forwardRef(function(e,t){return a.createElement(Oe,z({},e,{ref:t,sideCar:go}))});xn.classNames=Oe.classNames;var bo=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ce=new WeakMap,Re=new WeakMap,Ie={},Ue=0,Pn=function(e){return e&&(e.host||Pn(e.parentNode))},Co=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Pn(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},yo=function(e,t,n,r){var o=Co(t,Array.isArray(e)?e:[e]);Ie[n]||(Ie[n]=new WeakMap);var i=Ie[n],s=[],c=new Set,l=new Set(o),p=function(u){!u||c.has(u)||(c.add(u),p(u.parentNode))};o.forEach(p);var f=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(d){if(c.has(d))f(d);else try{var y=d.getAttribute(r),g=y!==null&&y!=="false",m=(ce.get(d)||0)+1,v=(i.get(d)||0)+1;ce.set(d,m),i.set(d,v),s.push(d),m===1&&g&&Re.set(d,!0),v===1&&d.setAttribute(n,"true"),g||d.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",d,S)}})};return f(t),c.clear(),Ue++,function(){s.forEach(function(u){var d=ce.get(u)-1,y=i.get(u)-1;ce.set(u,d),i.set(u,y),d||(Re.has(u)||u.removeAttribute(r),Re.delete(u)),y||u.removeAttribute(n)}),Ue--,Ue||(ce=new WeakMap,ce=new WeakMap,Re=new WeakMap,Ie={})}},Eo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=bo(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),yo(r,o,n,"aria-hidden")):function(){return null}},So=Object.defineProperty,V=(e,t)=>So(e,"name",{value:t,configurable:!0}),ft="Dialog",[_n,Gi]=te(ft),[wo,H]=_n(ft),Hi=V(e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,c=a.useRef(null),l=a.useRef(null),[p,f]=re({prop:r,defaultProp:o??!1,onChange:i,caller:ft}),[u,d]=a.useState(0),[y,g]=a.useState(0);return b.jsx(wo,{scope:t,triggerRef:c,contentRef:l,contentId:J(),titleId:J(),descriptionId:J(),titlePresent:u>0,descriptionPresent:y>0,setTitleCount:d,setDescriptionCount:g,open:p,onOpenChange:f,onOpenToggle:a.useCallback(()=>f(m=>!m),[f]),modal:s,children:n})},"Dialog"),Ro="DialogTrigger",Ki=a.forwardRef(V(function(t,n){const{__scopeDialog:r,...o}=t,i=H(Ro,r),s=j(n,i.triggerRef);return b.jsx(A.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Ae(i.open),...o,ref:s,onClick:O(t.onClick,i.onOpenToggle)})},"DialogTrigger")),On="DialogPortal",[Io,An]=_n(On,{forceMount:void 0}),zi=V(e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=H(On,t);return b.jsx(Io,{scope:t,forceMount:n,children:a.Children.map(r,s=>b.jsx(he,{present:n||i.open,children:b.jsx(Rr,{asChild:!0,container:o,children:s})}))})},"DialogPortal"),nt="DialogOverlay",Yi=a.forwardRef(V(function(t,n){const r=An(nt,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,s=H(nt,t.__scopeDialog);return s.modal?b.jsx(he,{present:o||s.open,children:b.jsx(Po,{...i,ref:n})}):null},"DialogOverlay")),xo=ee("DialogOverlay.RemoveScroll"),Po=a.forwardRef(V(function(t,n){const{__scopeDialog:r,...o}=t,i=H(nt,r),s=nn(),c=j(n,s);return b.jsx(xn,{as:xo,allowPinchZoom:!0,shards:[i.contentRef],children:b.jsx(A.div,{"data-state":Ae(i.open),...o,ref:c,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),me="DialogContent",Xi=a.forwardRef(V(function(t,n){const r=An(me,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,s=H(me,t.__scopeDialog);return b.jsx(he,{present:o||s.open,children:s.modal?b.jsx(_o,{...i,ref:n}):b.jsx(Oo,{...i,ref:n})})},"DialogContent")),_o=a.forwardRef(V(function(t,n){const r=H(me,t.__scopeDialog),o=a.useRef(null),i=j(n,r.contentRef,o);return a.useEffect(()=>{const s=o.current;if(s)return Eo(s)},[]),b.jsx(Dn,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:O(t.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:O(t.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&s.preventDefault()}),onFocusOutside:O(t.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),Oo=a.forwardRef(V(function(t,n){const r=H(me,t.__scopeDialog),o=a.useRef(!1),i=a.useRef(!1);return b.jsx(Dn,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||r.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=s.target;r.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})},"DialogContentNonModal")),Dn=a.forwardRef(V(function(t,n){const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,...c}=t,l=H(me,r);return dt(),b.jsx(b.Fragment,{children:b.jsx(Nr,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s,children:b.jsx(tn,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":Ae(l.open),...c,ref:n,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl")),Ao="DialogTitle",Zi=a.forwardRef(V(function(t,n){const{__scopeDialog:r,...o}=t,i=H(Ao,r),{setTitleCount:s}=i;return Y(()=>(s(c=>c+1),()=>s(c=>c-1)),[s]),b.jsx(A.h2,{id:i.titleId,...o,ref:n})},"DialogTitle")),Do="DialogDescription",qi=a.forwardRef(V(function(t,n){const{__scopeDialog:r,...o}=t,i=H(Do,r),{setDescriptionCount:s}=i;return Y(()=>(s(c=>c+1),()=>s(c=>c-1)),[s]),b.jsx(A.p,{id:i.descriptionId,...o,ref:n})},"DialogDescription")),To="DialogClose",Qi=a.forwardRef(V(function(t,n){const{__scopeDialog:r,...o}=t,i=H(To,r);return b.jsx(A.button,{type:"button",...o,ref:n,onClick:O(t.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function Ae(e){return e?"open":"closed"}V(Ae,"getState");var No=Object.defineProperty,M=(e,t)=>No(e,"name",{value:t,configurable:!0});function vt(e){const t=e+"CollectionProvider",[n,r]=te(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=M(m=>{const{scope:v,children:S}=m,C=a.useRef(null),h=a.useRef(new Map).current;return b.jsx(o,{scope:v,itemMap:h,collectionRef:C,children:S})},"CollectionProvider");s.displayName=t;const c=e+"CollectionSlot",l=ee(c),p=a.forwardRef((m,v)=>{const{scope:S,children:C}=m,h=i(c,S),E=j(v,h.collectionRef);return b.jsx(l,{ref:E,children:C})});p.displayName=c;const f=e+"CollectionItemSlot",u="data-radix-collection-item",d=ee(f),y=a.forwardRef((m,v)=>{const{scope:S,children:C,...h}=m,E=a.useRef(null),w=j(v,E),R=i(f,S);return a.useEffect(()=>(R.itemMap.set(E,{ref:E,...h}),()=>void R.itemMap.delete(E))),b.jsx(d,{[u]:"",ref:w,children:C})});y.displayName=f;function g(m){const v=i(e+"CollectionConsumer",m);return a.useCallback(()=>{const C=v.collectionRef.current;if(!C)return[];const h=Array.from(C.querySelectorAll(`[${u}]`));return Array.from(v.itemMap.values()).sort((R,P)=>h.indexOf(R.ref.current)-h.indexOf(P.ref.current))},[v.collectionRef,v.itemMap])}return M(g,"useCollection"),[{Provider:s,Slot:p,ItemSlot:y},g,r]}M(vt,"createCollection");var Vt=new WeakMap,_,$,We=($=class extends Map{constructor(n){super(n);Ot(this,_);je(this,_,[...super.keys()]),Vt.set(this,!0)}set(n,r){return Vt.get(this)&&(this.has(n)?F(this,_)[F(this,_).indexOf(n)]=n:F(this,_).push(n)),super.set(n,r),this}insert(n,r,o){const i=this.has(r),s=F(this,_).length,c=pt(n);let l=c>=0?c:s+c;const p=l<0||l>=s?-1:l;if(p===this.size||i&&p===this.size-1||p===-1)return this.set(r,o),this;const f=this.size+(i?0:1);c<0&&l++;const u=[...F(this,_)];let d,y=!1;for(let g=l;g<f;g++)if(l===g){let m=u[g];u[g]===r&&(m=u[g+1]),i&&this.delete(r),d=this.get(m),this.set(r,o)}else{!y&&u[g-1]===r&&(y=!0);const m=u[y?g:g-1],v=d;d=this.get(m),this.delete(m),this.set(m,v)}return this}with(n,r,o){const i=new $(this);return i.insert(n,r,o),i}before(n){const r=F(this,_).indexOf(n)-1;if(!(r<0))return this.entryAt(r)}setBefore(n,r,o){const i=F(this,_).indexOf(n);return i===-1?this:this.insert(i,r,o)}after(n){let r=F(this,_).indexOf(n);if(r=r===-1||r===this.size-1?-1:r+1,r!==-1)return this.entryAt(r)}setAfter(n,r,o){const i=F(this,_).indexOf(n);return i===-1?this:this.insert(i+1,r,o)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return je(this,_,[]),super.clear()}delete(n){const r=super.delete(n);return r&&F(this,_).splice(F(this,_).indexOf(n),1),r}deleteAt(n){const r=this.keyAt(n);return r!==void 0?this.delete(r):!1}at(n){const r=_e(F(this,_),n);if(r!==void 0)return this.get(r)}entryAt(n){const r=_e(F(this,_),n);if(r!==void 0)return[r,this.get(r)]}indexOf(n){return F(this,_).indexOf(n)}keyAt(n){return _e(F(this,_),n)}from(n,r){const o=this.indexOf(n);if(o===-1)return;let i=o+r;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(n,r){const o=this.indexOf(n);if(o===-1)return;let i=o+r;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return i;o++}}findIndex(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return o;o++}return-1}filter(n,r){const o=[];let i=0;for(const s of this)Reflect.apply(n,r,[s,i,this])&&o.push(s),i++;return new $(o)}map(n,r){const o=[];let i=0;for(const s of this)o.push([s[0],Reflect.apply(n,r,[s,i,this])]),i++;return new $(o)}reduce(...n){const[r,o]=n;let i=0,s=o??this.at(0);for(const c of this)i===0&&n.length===1?s=c:s=Reflect.apply(r,this,[s,c,i,this]),i++;return s}reduceRight(...n){const[r,o]=n;let i=o??this.at(-1);for(let s=this.size-1;s>=0;s--){const c=this.at(s);s===this.size-1&&n.length===1?i=c:i=Reflect.apply(r,this,[i,c,s,this])}return i}toSorted(n){const r=[...this.entries()].sort(n);return new $(r)}toReversed(){const n=new $;for(let r=this.size-1;r>=0;r--){const o=this.keyAt(r),i=this.get(o);n.set(o,i)}return n}toSpliced(...n){const r=[...this.entries()];return r.splice(...n),new $(r)}slice(n,r){const o=new $;let i=this.size-1;if(n===void 0)return o;n<0&&(n=n+this.size),r!==void 0&&r>0&&(i=r-1);for(let s=n;s<=i;s++){const c=this.keyAt(s),l=this.get(c);o.set(c,l)}return o}every(n,r){let o=0;for(const i of this){if(!Reflect.apply(n,r,[i,o,this]))return!1;o++}return!0}some(n,r){let o=0;for(const i of this){if(Reflect.apply(n,r,[i,o,this]))return!0;o++}return!1}},_=new WeakMap,M($,"OrderedDict"),$);function _e(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=Tn(e,t);return n===-1?void 0:e[n]}M(_e,"at");function Tn(e,t){const n=e.length,r=pt(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}M(Tn,"toSafeIndex");function pt(e){return e!==e||e===0?0:Math.trunc(e)}M(pt,"toSafeInteger");function Mo(e){const t=e+"CollectionProvider",[n,r]=te(t),[o,i]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new We,setItemMap:M(()=>{},"setItemMap")}),s=M(({state:h,...E})=>h?b.jsx(l,{...E,state:h}):b.jsx(c,{...E}),"CollectionProvider");s.displayName=t;const c=M(h=>{const E=v();return b.jsx(l,{...h,state:E})},"CollectionInit");c.displayName=t+"Init";const l=M(h=>{const{scope:E,children:w,state:R}
41=h,P=a.useRef(null),[T,I]=a.useState(null),K=j(P,I),[k,x]=R;return a.useEffect(()=>{if(!T)return;const U=Fn(()=>{});return U.observe(T,{childList:!0,subtree:!0}),()=>{U.disconnect()}},[T]),b.jsx(o,{scope:E,itemMap:k,setItemMap:x,collectionRef:K,collectionRefObject:P,collectionElement:T,children:w})},"CollectionProviderImpl");l.displayName=t+"Impl";const p=e+"CollectionSlot",f=ee(p),u=a.forwardRef((h,E)=>{const{scope:w,children:R}=h,P=i(p,w),T=j(E,P.collectionRef);return b.jsx(f,{ref:T,children:R})});u.displayName=p;const d=e+"CollectionItemSlot",y="data-radix-collection-item",g=ee(d),m=a.forwardRef((h,E)=>{const{scope:w,children:R,...P}=h,T=a.useRef(null),[I,K]=a.useState(null),k=j(E,T,K),x=i(d,w),{setItemMap:U}=x,Q=a.useRef(P);Nn(Q.current,P)||(Q.current=P);const pe=Q.current;return a.useEffect(()=>{const Ce=pe;return U(N=>I?N.has(I)?N.set(I,{...Ce,element:I}).toSorted(rt):(N.set(I,{...Ce,element:I}),N.toSorted(rt)):N),()=>{U(N=>!I||!N.has(I)?N:(N.delete(I),new We(N)))}},[I,pe,U]),b.jsx(g,{[y]:"",ref:k,children:R})});m.displayName=d;function v(){return a.useState(new We)}M(v,"useInitCollection");function S(h){const{itemMap:E}=i(e+"CollectionConsumer",h);return E}return M(S,"useCollection"),[{Provider:s,Slot:u,ItemSlot:m},{createCollectionScope:r,useCollection:S,useInitCollection:v}]}M(Mo,"createCollection");function Nn(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!Object.prototype.hasOwnProperty.call(t,o)||e[o]!==t[o])return!1;return!0}M(Nn,"shallowEqual");function Mn(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}M(Mn,"isElementPreceding");function rt(e,t){return!e[1].element||!t[1].element?0:Mn(e[1].element,t[1].element)?-1:1}M(rt,"sortByDocumentPosition");function Fn(e){return new MutationObserver(n=>{for(const r of n)if(r.type==="childList"){e();return}})}M(Fn,"getChildListObserver");var Fo=Object.defineProperty,jo=(e,t)=>Fo(e,"name",{value:t,configurable:!0}),ko=a.createContext(void 0);function De(e){const t=a.useContext(ko);return e||t||"ltr"}jo(De,"useDirection");var Lo=Object.defineProperty,mt=(e,t)=>Lo(e,"name",{value:t,configurable:!0}),Ge=!1;function jn(){const[e,t]=a.useState(Ge);return a.useEffect(()=>{Ge||(Ge=!0,t(!0))},[]),e}mt(jn,"useIsHydrated");var kn=de[" useSyncExternalStore ".trim().toString()];function Ln(){return()=>{}}mt(Ln,"subscribe");function $n(){return kn(Ln,()=>!0,()=>!1)}mt($n,"useIsHydratedModern");var $o=typeof kn=="function"?$n:jn,Bo=Object.defineProperty,oe=(e,t)=>Bo(e,"name",{value:t,configurable:!0}),He="rovingFocusGroup.onEntryFocus",Vo={bubbles:!1,cancelable:!0},Te="RovingFocusGroup",[ot,Bn,Uo]=vt(Te),[Wo,Vn]=te(Te,[Uo]),[Go,Ho]=Wo(Te),Ko=a.forwardRef(oe(function(t,n){return b.jsx(ot.Provider,{scope:t.__scopeRovingFocusGroup,children:b.jsx(ot.Slot,{scope:t.__scopeRovingFocusGroup,children:b.jsx(zo,{...t,ref:n})})})},"RovingFocusGroup")),zo=a.forwardRef(oe(function(t,n){const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:p,onEntryFocus:f,preventScrollOnEntryFocus:u=!1,...d}=t,y=a.useRef(null),g=j(n,y),m=De(s),[v,S]=re({prop:c,defaultProp:l??null,onChange:p,caller:Te}),[C,h]=a.useState(!1),E=ne(f),w=Bn(r),R=a.useRef(!1),[P,T]=a.useState(0);return a.useEffect(()=>{const I=y.current;if(I)return I.addEventListener(He,E),()=>I.removeEventListener(He,E)},[E]),b.jsx(Go,{scope:r,orientation:o,dir:m,loop:i,currentTabStopId:v,onItemFocus:a.useCallback(I=>S(I),[S]),onItemShiftTab:a.useCallback(()=>h(!0),[]),onFocusableItemAdd:a.useCallback(()=>T(I=>I+1),[]),onFocusableItemRemove:a.useCallback(()=>T(I=>I-1),[]),children:b.jsx(A.div,{tabIndex:C||P===0?-1:0,"data-orientation":o,...d,ref:g,style:{outline:"none",...t.style},onMouseDown:O(t.onMouseDown,()=>{R.current=!0}),onFocus:O(t.onFocus,I=>{const K=!R.current;if(I.target===I.currentTarget&&K&&!C){const k=new CustomEvent(He,Vo);if(I.currentTarget.dispatchEvent(k),!k.defaultPrevented){const x=w().filter(N=>N.focusable),U=x.find(N=>N.active),Q=x.find(N=>
41N.id===v),Ce=[U,Q,...x].filter(Boolean).map(N=>N.ref.current);ht(Ce,u)}}R.current=!1}),onBlur:O(t.onBlur,()=>h(!1))})})},"RovingFocusGroupImpl")),Yo="RovingFocusGroupItem",Xo=a.forwardRef(oe(function(t,n){const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:s,children:c,...l}=t,p=J(),f=s||p,u=Ho(Yo,r),d=u.currentTabStopId===f,y=Bn(r),{onFocusableItemAdd:g,onFocusableItemRemove:m,currentTabStopId:v}=u,S=$o();return Y(()=>{if(!(!S||!o))return g(),()=>m()},[S,o,g,m]),a.useEffect(()=>{if(!(S||!o))return g(),()=>m()},[S,o,g,m]),b.jsx(ot.ItemSlot,{scope:r,id:f,focusable:o,active:i,children:b.jsx(A.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...l,ref:n,onMouseDown:O(t.onMouseDown,C=>{o?u.onItemFocus(f):C.preventDefault()}),onFocus:O(t.onFocus,()=>u.onItemFocus(f)),onKeyDown:O(t.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){u.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const h=Wn(C,u.orientation,u.dir);if(h!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let w=y().filter(R=>R.focusable).map(R=>R.ref.current);if(h==="last")w.reverse();else if(h==="prev"||h==="next"){h==="prev"&&w.reverse();const R=w.indexOf(C.currentTarget);w=u.loop?Gn(w,R+1):w.slice(R+1)}setTimeout(()=>ht(w))}}),children:typeof c=="function"?c({isCurrentTabStop:d,hasTabStop:v!=null}):c})})},"RovingFocusGroupItem")),Zo={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Un(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}oe(Un,"getDirectionAwareKey");function Wn(e,t,n){const r=Un(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Zo[r]}oe(Wn,"getFocusIntent");function ht(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}oe(ht,"focusFirst");function Gn(e,t){return e.map((n,r)=>e[(t+r)%e.length])}oe(Gn,"wrapArray");var qo=Ko,Qo=Xo,Jo=Object.defineProperty,be=(e,t)=>Jo(e,"name",{value:t,configurable:!0}),gt="Collapsible",[ei,Hn]=te(gt),[ti,bt]=ei(gt),ni=a.forwardRef(be(function(t,n){const{__scopeCollapsible:r,open:o,defaultOpen:i,disabled:s,onOpenChange:c,...l}=t,[p,f]=re({prop:o,defaultProp:i??!1,onChange:c,caller:gt});return b.jsx(ti,{scope:r,disabled:s,contentId:J(),open:p,onOpenToggle:a.useCallback(()=>f(u=>!u),[f]),children:b.jsx(A.div,{"data-state":Ne(p),"data-disabled":s?"":void 0,...l,ref:n})})},"Collapsible")),ri="CollapsibleTrigger",oi=a.forwardRef(be(function(t,n){const{__scopeCollapsible:r,...o}=t,i=bt(ri,r);return b.jsx(A.button,{type:"button","aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":Ne(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...o,ref:n,onClick:O(t.onClick,i.onOpenToggle)})},"CollapsibleTrigger")),Kn="CollapsibleContent",ii=a.forwardRef(be(function(t,n){const{forceMount:r,...o}=t,i=bt(Kn,t.__scopeCollapsible);return b.jsx(he,{present:r||i.open,children:({present:s})=>b.jsx(si,{...o,ref:n,present:s})})},"CollapsibleContent")),si=a.forwardRef(be(function(t,n){const{__scopeCollapsible:r,present:o,children:i,...s}=t,c=bt(Kn,r),[l,p]=a.useState(o),f=a.useRef(null),u=j(n,f),d=a.useRef(0),y=d.current,g=a.useRef(0),m=g.current,v=c.open||l,S=a.useRef(v),C=a.useRef(void 0);return a.useEffect(()=>{const h=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(h)},[]),Y(()=>{const h=f.current;if(h){C.current=C.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const E=h.getBoundingClientRect();d.current=E.height,g.current=E.width,S.current||(h.style.transitionDuration=C.current.transitionDuration,h.style.animationName=C.current.animationName),p(o)}},[c.open,o]),b.jsx(A.div,{"data-state":Ne(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!v,...s,ref:u,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...t.style},children:v&&i})},"CollapsibleContentImpl"));function Ne(e){return e?"open":"closed"}be(Ne,"getState");var ai=ni,ci=oi,ui=ii,li=Object.defineProperty,B=(e,t)=>li(e,"name",{value:t,configurable:!0}),X="Accordion",di=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ct,fi,vi]=vt(X),[Me,Ji]=te(X,[vi,Hn]),yt=Hn(),pi=a.forwardRef(B(function(t,n){const{type:r,...o}=t,i=o,s=o;return b.jsx(Ct.Provider,{scope:t.__scopeAccordion,children:r==="multiple"?b.jsx(bi,{...s,ref:n}):b.jsx(gi,{...i,ref:n})})},"Accordion")),[zn,mi]=Me(X),[Yn,hi]=Me(X,{collapsible:!1}),gi=a.forwardRef(B(function(t,n){const{value:r,defaultValue:o,onValueChange:i=B(()=>{},"onValueChange"),collapsible:s=!1,...c}=t,[l,p]=re({prop:r,defaultProp:o??"",onChange:i,caller:X});return b.jsx(zn,{scope:t.__scopeAccordion,value:a.useMemo(()=>l?[l]:[],[l]),onItemOpen:p,onItemClose:a.useCallback(()=>s&&p(""),[s,p]),children:b.jsx(Yn,{scope:t.__scopeAccordion,collapsible:s,children:b.jsx(Xn,{...c,ref:n})})})},"AccordionImplSingle")),bi=a.forwardRef(B(function(t,n){const{value:r,defaultValue:o,onValueChange:i=B(()=>{},"onValueChange"),...s}=t,[c,l]=re({prop:r,defaultProp:o??[],onChange:i,caller:X}),p=a.useCallback(u=>l((d=[])=>[...d,u]),[l]),f=a.useCallback(u=>l((d=[])=>d.filter(y=>y!==u)),[l]);return b.jsx(zn,{scope:t.__scopeAccordion,value:c,onItemOpen:p,onItemClose:f,children:b.jsx(Yn,{scope:t.__scopeAccordion,collapsible:!0,children:b.jsx(Xn,{...s,ref:n})})})},"AccordionImplMultiple")),[Ci,Fe]=Me(X),Xn=a.forwardRef(B(function(t,n){const{__scopeAccordion:r,disabled:o,dir:i,orientation:s="vertical",...c}=t,l=a.useRef(null),p=j(l,n),f=fi(r),d=De(i)==="ltr",y=O(t.onKeyDown,g=>{if(!di.includes(g.key))return;const m=g.target,v=f().filter(I=>!I.ref.current?.disabled),S=v.findIndex(I=>I.ref.current===m),C=v.length;if(S===-1)return;g.preventDefault();let h=S;const E=0,w=C-1,R=B(()=>{h=S+1,h>w&&(h=E)},"moveNext"),P=B(()=>{h=S-1,h<E&&(h=w)},"movePrev");switch(g.key){case"Home":h=E;break;case"End":h=w;break;case"ArrowRight":s==="horizontal"&&(d?R():P());break;case"ArrowDown":s==="vertical"&&R();break;case"ArrowLeft":s==="horizontal"&&(d?P():R());break;case"ArrowUp":s==="vertical"&&P();break}const T=h%C;v[T].ref.current?.focus()});return b.jsx(Ci,{scope:r,disabled:o,direction:i,orientation:s,children:b.jsx(Ct.Slot,{scope:r,children:b.jsx(A.div,{...c,"data-orientation":s,ref:p,onKeyDown:o?void 0:y})})})},"AccordionImpl")),it="AccordionItem",[yi,Et]=Me(it),Ei=a.forwardRef(B(function(t,n){const{__scopeAccordion:r,value:o,...i}=t,s=Fe(it,r),c=mi(it,r),l=yt(r),p=J(),f=o&&c.value.includes(o)||!1,u=s.disabled||t.disabled;return b.jsx(yi,{scope:r,open:f,disabled:u,triggerId:p,children:b.jsx(ai,{"data-orientation":s.orientation,"data-state":St(f),...l,...i,ref:n,disabled:u,open:f,onOpenChange:d=>{d?c.onItemOpen(o):c.onItemClose(o)}})})},"AccordionItem")),Si="AccordionHeader",wi=a.forwardRef(B(function(t,n){const{__scopeAccordion:r,...o}=t,i=Fe(X,r),s=Et(Si,r);return b.jsx(A.h3,{"data-orientation":i.orientation,"data-state":St(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:n})},"AccordionHeader")),Ut="AccordionTrigger",Ri=a.forwardRef(B(function(t,n){const{__scopeAccordion:r,...o}=t,i=Fe(X,r),s=Et(Ut,r),c=hi(Ut,r),l=yt(r);return b.jsx(Ct.ItemSlot,{scope:r,children:b.jsx(ci,{"aria-disabled":s.open&&!c.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId,...l,...o,ref:n})})},"AccordionTrigger")),Ii="AccordionContent",xi=a.forwardRef(B(function(t,n){const{__scopeAccordion:r,...o}=t,i=Fe(X,r),s=Et(Ii,r),c=yt(r);return b.jsx(ui,{role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation,...c,...o,ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})},"AccordionContent"));function St(e){return e?"open":"closed"}B(St,"getState");var es=pi,ts=Ei,ns=wi,rs=Ri,os=xi,Pi=Object.defineProperty,ve=(e,t)=>
41Pi(e,"name",{value:t,configurable:!0}),wt="Tabs",[_i,is]=te(wt,[Vn]),Zn=Vn(),[Oi,Rt]=_i(wt),Ai=a.forwardRef(ve(function(t,n){const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:s,orientation:c="horizontal",dir:l,activationMode:p="automatic",...f}=t,u=De(l),[d,y]=re({prop:o,onChange:i,defaultProp:s??"",caller:wt});return b.jsx(Oi,{scope:r,baseId:J(),value:d,onValueChange:y,orientation:c,dir:u,activationMode:p,children:b.jsx(A.div,{dir:u,"data-orientation":c,...f,ref:n})})},"Tabs")),Di="TabsList",Ti=a.forwardRef(ve(function(t,n){const{__scopeTabs:r,loop:o=!0,...i}=t,s=Rt(Di,r),c=Zn(r);return b.jsx(qo,{asChild:!0,...c,orientation:s.orientation,dir:s.dir,loop:o,children:b.jsx(A.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:n})})},"TabsList")),Ni="TabsTrigger",Mi=a.forwardRef(ve(function(t,n){const{__scopeTabs:r,value:o,disabled:i=!1,...s}=t,c=Rt(Ni,r),l=Zn(r),p=It(c.baseId,o),f=xt(c.baseId,o),u=o===c.value;return b.jsx(Qo,{asChild:!0,...l,focusable:!i,active:u,children:b.jsx(A.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:p,...s,ref:n,onMouseDown:O(t.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?c.onValueChange(o):d.preventDefault()}),onKeyDown:O(t.onKeyDown,d=>{i||d.target!==d.currentTarget||[" ","Enter"].includes(d.key)&&c.onValueChange(o)}),onFocus:O(t.onFocus,()=>{const d=c.activationMode!=="manual";!u&&!i&&d&&c.onValueChange(o)})})})},"TabsTrigger")),Fi="TabsContent",ji=a.forwardRef(ve(function(t,n){const{__scopeTabs:r,value:o,forceMount:i,children:s,...c}=t,l=Rt(Fi,r),p=It(l.baseId,o),f=xt(l.baseId,o),u=o===l.value,d=a.useRef(u);return a.useEffect(()=>{const y=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(y)},[]),b.jsx(he,{present:i||u,children:({present:y})=>b.jsx(A.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":p,hidden:!y,id:f,tabIndex:0,...c,ref:n,style:{...t.style,animationDuration:d.current?"0s":void 0},children:y&&s})})},"TabsContent"));function It(e,t){return`${e}-trigger-${t}`}ve(It,"makeTriggerId");function xt(e,t){return`${e}-content-${t}`}ve(xt,"makeContentId");var ss=Ai,as=Ti,cs=Mi,us=ji;export{Pe as $,xn as A,Ui as B,os as C,tn as D,ee as E,dt as F,Nr as G,ns as H,ts as I,Vn as J,qo as K,Qo as L,De as M,ss as N,as as O,A as P,cs as Q,Vi as R,Bi as S,rs as T,us as U,Gi as V,Wr as W,Br as X,z as Y,xe as Z,Wi as _,j as a,Sn as a0,Dr as a1,ro as a2,Gr as a3,ne as b,te as c,J as d,re as e,O as f,he as g,rr as h,vn as i,Yi as j,zi as k,Xi as l,Qi as m,Zi as n,qi as o,Hi as p,Ki as q,vt as r,Rr as s,en as t,Y as u,es as v,ai as w,oi as x,ii as y,Eo as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.