1import{r as c,j as g,R as V,a as Zt,v as Ys,b as io}from"./vendor-react-DF1jHNRj.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"8c7c06dfbd0cc13a416e71c009d6df152d31449e"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="64a46f7f-c309-426c-a407-c2a66d9a920b",e._sentryDebugIdIdentifier="sentry-dbid-64a46f7f-c309-426c-a407-c2a66d9a920b")}catch{}})();function O(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Ln(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ao(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Ln(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Ln(e[r],null)}}}}function $(...e){return c.useCallback(ao(...e),e)}function Xs(e,t){const n=c.createContext(t),o=s=>{const{children:i,...a}=s,u=c.useMemo(()=>a,Object.values(a));return g.jsx(n.Provider,{value:u,children:i})};o.displayName=e+"Provider";function r(s){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function K(e,t=[]){let n=[];function o(s,i){const a=c.createContext(i),u=n.length;n=[...n,i];const l=d=>{var y;const{scope:h,children:v,...x}=d,p=((y=h==null?void 0:h[e])==null?void 0:y[u])||a,m=c.useMemo(()=>x,Object.values(x));return g.jsx(p.Provider,{value:m,children:v})};l.displayName=s+"Provider";function f(d,h){var p;const v=((p=h==null?void 0:h[e])==null?void 0:p[u])||a,x=c.useContext(v);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const r=()=>{const s=n.map(i=>c.createContext(i));return function(a){const u=(a==null?void 0:a[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return r.scopeName=e,[o,qs(r,...t)]}function qs(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=o.reduce((a,{useScope:u,scopeName:l})=>{const d=u(s)[`__scope${l}`];return{...a,...d}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Ce(e){const t=Zs(e),n=c.forwardRef((o,r)=>{const{children:s,...i}=o,a=c.Children.toArray(s),u=a.find(Js);if(u){const l=u.props.children,f=a.map(d=>d===u?c.Children.count(l)>1?c.Children.only(null):c.isValidElement(l)?l.props.children:null:d);return g.jsx(t,{...i,ref:r,children:c.isValidElement(l)?c.cloneElement(l,void 0,f):null})}return g.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var $u=Ce("Slot");function Zs(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const i=ti(r),a=ei(s,r.props);return r.type!==c.Fragment&&(a.ref=o?ao(o,i):i),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var co=Symbol("radix.slottable");function Qs(e){const t=({children:n})=>g.jsx(g.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=co,t}function Js(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===co}function ei(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const u=s(...a);return r(...a),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function ti(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ot(e){const t=e+"CollectionProvider",[n,o]=K(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:m,children:y}=p,w=V.useRef(null),b=V.useRef(new Map).current;return g.jsx(r,{scope:m,itemMap:b,collectionRef:w,children:y})};i.displayName=t;const a=e+"CollectionSlot",u=Ce(a),l=V.forwardRef((p,m)=>{const{scope:y,children:w}=p,b=s(a,y),C=$(m,b.collectionRef);return g.jsx(u,{ref:C,children:w})});l.displayName=a;const f=e+"CollectionItemSlot",d="data-radix-collection-item",h=Ce(f),v=V.forwardRef((p,m)=>{const{scope:y,children:w,...b}=p,C=V.useRef(null),E=$(m,C),P=s(f,y);return V.useEffect(()=>(P.itemMap.set(C,{ref:C,...b}),()=>void P.itemMap.delete(C))),g.jsx(h,{[d]:"",ref:E,children:w})});v.displayName=f;function x(p){const m=s(e+"CollectionConsumer",p);return V.useCallback(()=>{const w=m.collectionRef.current;if(!w)return[];const b=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(m.itemMap.values()).sort((P,R)=>b.indexOf(P.ref.current)-b.indexOf(R.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:l,ItemSlot:v},x,o]}var ni=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],I=ni.reduce((e,t)=>
1{const n=Ce(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:i,...a}=r,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(u,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function lo(e,t){e&&Zt.flushSync(()=>e.dispatchEvent(t))}function G(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function oi(e,t=globalThis==null?void 0:globalThis.document){const n=G(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var ri="DismissableLayer",Lt="dismissableLayer.update",si="dismissableLayer.pointerDownOutside",ii="dismissableLayer.focusOutside",Fn,uo=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Me=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...u}=e,l=c.useContext(uo),[f,d]=c.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=c.useState({}),x=$(t,R=>d(R)),p=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(m),w=f?p.indexOf(f):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,C=w>=y,E=ci(R=>{const A=R.target,M=[...l.branches].some(N=>N.contains(A));!C||M||(r==null||r(R),i==null||i(R),R.defaultPrevented||a==null||a())},h),P=li(R=>{const A=R.target;[...l.branches].some(N=>N.contains(A))||(s==null||s(R),i==null||i(R),R.defaultPrevented||a==null||a())},h);return oi(R=>{w===l.layers.size-1&&(o==null||o(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},h),c.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Fn=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),jn(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Fn)}},[f,h,n,l]),c.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),jn())},[f,l]),c.useEffect(()=>{const R=()=>v({});return document.addEventListener(Lt,R),()=>document.removeEventListener(Lt,R)},[]),g.jsx(I.div,{...u,ref:x,style:{pointerEvents:b?C?"auto":"none":void 0,...e.style},onFocusCapture:O(e.onFocusCapture,P.onFocusCapture),onBlurCapture:O(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:O(e.onPointerDownCapture,E.onPointerDownCapture)})});Me.displayName=ri;var ai="DismissableLayerBranch",fo=c.forwardRef((e,t)=>{const n=c.useContext(uo),o=c.useRef(null),r=$(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(I.div,{...e,ref:r})});fo.displayName=ai;function ci(e,t=globalThis==null?void 0:globalThis.document){const n=G(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const s=a=>{if(a.target&&!o.current){let u=function(){po(si,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function li(e,t=globalThis==null?void 0:globalThis.document){const n=G(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&po(ii,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function jn(){const e=new CustomEvent(Lt);document.dispatchEvent(e)}function po(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?lo(r,s):r.dispatchEvent(s)}var ui=Me,di=fo,ne=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},fi="Portal",rt=c.forwardRef((e,t)=>
1{var a;const{container:n,...o}=e,[r,s]=c.useState(!1);ne(()=>s(!0),[]);const i=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Ys.createPortal(g.jsx(I.div,{...o,ref:t}),i):null});rt.displayName=fi;function pi(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var X=e=>{const{present:t,children:n}=e,o=mi(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=$(o.ref,vi(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null};X.displayName="Presence";function mi(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),s=c.useRef("none"),i=e?"mounted":"unmounted",[a,u]=pi(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const l=Ve(o.current);s.current=a==="mounted"?l:"none"},[a]),ne(()=>{const l=o.current,f=r.current;if(f!==e){const h=s.current,v=Ve(l);e?u("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(f&&h!==v?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),ne(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,d=v=>{const p=Ve(o.current).includes(v.animationName);if(v.target===t&&p&&(u("ANIMATION_END"),!r.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},h=v=>{v.target===t&&(s.current=Ve(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function Ve(e){return(e==null?void 0:e.animationName)||"none"}function vi(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hi=io[" useInsertionEffect ".trim().toString()]||ne;function q({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,i]=gi({defaultProp:t,onChange:n}),a=e!==void 0,u=a?e:r;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const d=f.current;d!==a&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,o])}const l=c.useCallback(f=>{var d;if(a){const h=yi(f)?f(e):f;h!==e&&((d=i.current)==null||d.call(i,h))}else s(f)},[a,e,s,i]);return[u,l]}function gi({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return hi(()=>{s.current=t},[t]),c.useEffect(()=>{var i;r.current!==n&&((i=s.current)==null||i.call(s,n),r.current=n)},[n,r]),[n,o,s]}function yi(e){return typeof e=="function"}var wi=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),xi="VisuallyHidden",st=c.forwardRef((e,t)=>g.jsx(I.span,{...e,ref:t,style:{...wi,...e.style}}));st.displayName=xi;var bi=st,Qt="ToastProvider",[Jt,Ci,Ei]=ot("Toast"),[mo,Bu]=K("Toast",[Ei]),[Ri,it]=mo(Qt),vo=e=>{const{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:r="right",swipeThreshold:s=50,children:i}=e,[a,u]=c.useState(null),[l,f]=c.useState(0),d=c.useRef(!1),h=c.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Qt}\`. Expected non-empty \`string\`.`),g.jsx(Jt.Provider,{scope:t,children:g.jsx(Ri,{scope:t,label:n,duration:o,swipeDirection:r,swipeThreshold:s,toastCount:l,viewport:a,onViewportChange:u,onToastAdd:c.useCallback(()=>f(v=>v+1),[]),onToastRemove:c.useCallback(()=>f(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:i})})};vo.displayName=Qt;var ho="ToastViewport",Pi=["F8"],Ft="toast.viewportPause",jt="toast.viewportResume",go=c.forwardRef((e,t)=>
1{const{__scopeToast:n,hotkey:o=Pi,label:r="Notifications ({hotkey})",...s}=e,i=it(ho,n),a=Ci(n),u=c.useRef(null),l=c.useRef(null),f=c.useRef(null),d=c.useRef(null),h=$(t,d,i.onViewportChange),v=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=i.toastCount>0;c.useEffect(()=>{const m=y=>{var b;o.length!==0&&o.every(C=>y[C]||y.code===C)&&((b=d.current)==null||b.focus())};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[o]),c.useEffect(()=>{const m=u.current,y=d.current;if(x&&m&&y){const w=()=>{if(!i.isClosePausedRef.current){const P=new CustomEvent(Ft);y.dispatchEvent(P),i.isClosePausedRef.current=!0}},b=()=>{if(i.isClosePausedRef.current){const P=new CustomEvent(jt);y.dispatchEvent(P),i.isClosePausedRef.current=!1}},C=P=>{!m.contains(P.relatedTarget)&&b()},E=()=>{m.contains(document.activeElement)||b()};return m.addEventListener("focusin",w),m.addEventListener("focusout",C),m.addEventListener("pointermove",w),m.addEventListener("pointerleave",E),window.addEventListener("blur",w),window.addEventListener("focus",b),()=>{m.removeEventListener("focusin",w),m.removeEventListener("focusout",C),m.removeEventListener("pointermove",w),m.removeEventListener("pointerleave",E),window.removeEventListener("blur",w),window.removeEventListener("focus",b)}}},[x,i.isClosePausedRef]);const p=c.useCallback(({tabbingDirection:m})=>{const w=a().map(b=>{const C=b.ref.current,E=[C,...ji(C)];return m==="forwards"?E:E.reverse()});return(m==="forwards"?w.reverse():w).flat()},[a]);return c.useEffect(()=>{const m=d.current;if(m){const y=w=>{var E,P,R;const b=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!b){const A=document.activeElement,M=w.shiftKey;if(w.target===m&&M){(E=l.current)==null||E.focus();return}const k=p({tabbingDirection:M?"backwards":"forwards"}),L=k.findIndex(S=>S===A);Pt(k.slice(L+1))?w.preventDefault():M?(P=l.current)==null||P.focus():(R=f.current)==null||R.focus()}};return m.addEventListener("keydown",y),()=>m.removeEventListener("keydown",y)}},[a,p]),g.jsxs(di,{ref:u,role:"region","aria-label":r.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&g.jsx($t,{ref:l,onFocusFromOutsideViewport:()=>{const m=p({tabbingDirection:"forwards"});Pt(m)}}),g.jsx(Jt.Slot,{scope:n,children:g.jsx(I.ol,{tabIndex:-1,...s,ref:h})}),x&&g.jsx($t,{ref:f,onFocusFromOutsideViewport:()=>{const m=p({tabbingDirection:"backwards"});Pt(m)}})]})});go.displayName=ho;var yo="ToastFocusProxy",$t=c.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:o,...r}=e,s=it(yo,n);return g.jsx(st,{"aria-hidden":!0,tabIndex:0,...r,ref:t,style:{position:"fixed"},onFocus:i=>{var l;const a=i.relatedTarget;!((l=s.viewport)!=null&&l.contains(a))&&o()}})});$t.displayName=yo;var ke="Toast",Si="toast.swipeStart",Ai="toast.swipeMove",Ti="toast.swipeCancel",Oi="toast.swipeEnd",wo=c.forwardRef((e,t)=>{const{forceMount:n,open:o,defaultOpen:r,onOpenChange:s,...i}=e,[a,u]=q({prop:o,defaultProp:r??!0,onChange:s,caller:ke});return g.jsx(X,{present:n||a,children:g.jsx(Di,{open:a,...i,ref:t,onClose:()=>u(!1),onPause:G(e.onPause),onResume:G(e.onResume),onSwipeStart:O(e.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:O(e.onSwipeMove,l=>{const{x:f,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:O(e.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:O(e.onSwipeEnd,l=>{const{x:f,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),u(!1)})})})});
1wo.displayName=ke;var[_i,Ii]=mo(ke,{onClose(){}}),Di=c.forwardRef((e,t)=>{const{__scopeToast:n,type:o="foreground",duration:r,open:s,onClose:i,onEscapeKeyDown:a,onPause:u,onResume:l,onSwipeStart:f,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:v,...x}=e,p=it(ke,n),[m,y]=c.useState(null),w=$(t,S=>y(S)),b=c.useRef(null),C=c.useRef(null),E=r||p.duration,P=c.useRef(0),R=c.useRef(E),A=c.useRef(0),{onToastAdd:M,onToastRemove:N}=p,D=G(()=>{var F;(m==null?void 0:m.contains(document.activeElement))&&((F=p.viewport)==null||F.focus()),i()}),k=c.useCallback(S=>{!S||S===1/0||(window.clearTimeout(A.current),P.current=new Date().getTime(),A.current=window.setTimeout(D,S))},[D]);c.useEffect(()=>{const S=p.viewport;if(S){const F=()=>{k(R.current),l==null||l()},_=()=>{const j=new Date().getTime()-P.current;R.current=R.current-j,window.clearTimeout(A.current),u==null||u()};return S.addEventListener(Ft,_),S.addEventListener(jt,F),()=>{S.removeEventListener(Ft,_),S.removeEventListener(jt,F)}}},[p.viewport,E,u,l,k]),c.useEffect(()=>{s&&!p.isClosePausedRef.current&&k(E)},[s,E,p.isClosePausedRef,k]),c.useEffect(()=>(M(),()=>N()),[M,N]);const L=c.useMemo(()=>m?So(m):null,[m]);return p.viewport?g.jsxs(g.Fragment,{children:[L&&g.jsx(Ni,{__scopeToast:n,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:L}),g.jsx(_i,{scope:n,onClose:D,children:Zt.createPortal(g.jsx(Jt.ItemSlot,{scope:n,children:g.jsx(ui,{asChild:!0,onEscapeKeyDown:O(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||D(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx(I.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":p.swipeDirection,...x,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:O(e.onKeyDown,S=>{S.key==="Escape"&&(a==null||a(S.nativeEvent),S.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:O(e.onPointerDown,S=>{S.button===0&&(b.current={x:S.clientX,y:S.clientY})}),onPointerMove:O(e.onPointerMove,S=>{if(!b.current)return;const F=S.clientX-b.current.x,_=S.clientY-b.current.y,j=!!C.current,T=["left","right"].includes(p.swipeDirection),B=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,U=T?B(0,F):0,ve=T?0:B(0,_),Oe=S.pointerType==="touch"?10:2,he={x:U,y:ve},$e={originalEvent:S,delta:he};j?(C.current=he,We(Ai,d,$e,{discrete:!1})):$n(he,p.swipeDirection,Oe)?(C.current=he,We(Si,f,$e,{discrete:!1}),S.target.setPointerCapture(S.pointerId)):(Math.abs(F)>Oe||Math.abs(_)>Oe)&&(b.current=null)}),onPointerUp:O(e.onPointerUp,S=>{const F=C.current,_=S.target;if(_.hasPointerCapture(S.pointerId)&&_.releasePointerCapture(S.pointerId),C.current=null,b.current=null,F){const j=S.currentTarget,T={originalEvent:S,delta:F};$n(F,p.swipeDirection,p.swipeThreshold)?We(Oi,v,T,{discrete:!0}):We(Ti,h,T,{discrete:!0}),j.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),Ni=e=>{const{__scopeToast:t,children:n,...o}=e,r=it(ke,t),[s,i]=c.useState(!1),[a,u]=c.useState(!1);return Li(()=>i(!0)),c.useEffect(()=>{const l=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:g.jsx(rt,{asChild:!0,children:g.jsx(st,{...o,children:s&&g.jsxs(g.Fragment,{children:[r.label," ",n]})})})},Mi="ToastTitle",xo=c.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return g.jsx(I.div,{...o,ref:t})});xo.displayName=Mi;var ki="ToastDescription",bo=c.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return g.jsx(I.div,{...o,ref:t})});bo.displayName=ki;var Co="ToastAction",Eo=c.forwardRef((e,t)=>{const{altText:n,...o}=e;return n.trim()?g.jsx(Po,{altText:n,asChild:!0,children:g.jsx(en,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Co}\`. Expected non-empty \`string\`.`),null)});Eo.displayName=Co;var Ro="ToastClose",en=c.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e,r=Ii(Ro,n);return g.jsx(Po,{asChild:!0,children:g.jsx(I.button,{type:"button",...o,ref:t,onClick:O(e.onClick,r.onClose)})})});en.displayName=Ro;var Po=c.forwardRef((e,t)=>{const{__scopeToast:n,altText:o,...r}=e;return g.jsx(I.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...r,ref:t})});function So(e){const t=[];
1return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),Fi(o)){const r=o.ariaHidden||o.hidden||o.style.display==="none",s=o.dataset.radixToastAnnounceExclude==="";if(!r)if(s){const i=o.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...So(o))}}),t}function We(e,t,n,{discrete:o}){const r=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?lo(r,s):r.dispatchEvent(s)}var $n=(e,t,n=0)=>{const o=Math.abs(e.x),r=Math.abs(e.y),s=o>r;return t==="left"||t==="right"?s&&o>n:!s&&r>n};function Li(e=()=>{}){const t=G(e);ne(()=>{let n=0,o=0;return n=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(o)}},[t])}function Fi(e){return e.nodeType===e.ELEMENT_NODE}function ji(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Pt(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Vu=vo,Wu=go,Hu=wo,Ku=xo,Uu=bo,Gu=Eo,zu=en,$i=io[" useId ".trim().toString()]||(()=>{}),Bi=0;function ce(e){const[t,n]=c.useState($i());return ne(()=>{n(o=>o??String(Bi++))},[e]),t?`radix-${t}`:""}const Vi=["top","right","bottom","left"],ue=Math.min,W=Math.max,Ze=Math.round,He=Math.floor,te=e=>({x:e,y:e}),Wi={left:"right",right:"left",bottom:"top",top:"bottom"},Hi={start:"end",end:"start"};function Bt(e,t,n){return W(e,ue(t,n))}function se(e,t){return typeof e=="function"?e(t):e}function ie(e){return e.split("-")[0]}function Se(e){return e.split("-")[1]}function tn(e){return e==="x"?"y":"x"}function nn(e){return e==="y"?"height":"width"}const Ki=new Set(["top","bottom"]);function ee(e){return Ki.has(ie(e))?"y":"x"}function on(e){return tn(ee(e))}function Ui(e,t,n){n===void 0&&(n=!1);const o=Se(e),r=on(e),s=nn(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Qe(i)),[i,Qe(i)]}function Gi(e){const t=Qe(e);return[Vt(e),t,Vt(t)]}function Vt(e){return e.replace(/start|end/g,t=>Hi[t])}const Bn=["left","right"],Vn=["right","left"],zi=["top","bottom"],Yi=["bottom","top"];function Xi(e,t,n){switch(e){case"top":case"bottom":return n?t?Vn:Bn:t?Bn:Vn;case"left":case"right":return t?zi:Yi;default:return[]}}function qi(e,t,n,o){const r=Se(e);let s=Xi(ie(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Vt)))),s}function Qe(e){return e.replace(/left|right|bottom|top/g,t=>Wi[t])}function Zi(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ao(e){return typeof e!="number"?Zi(e):{top:e,right:e,bottom:e,left:e}}function Je(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Wn(e,t,n){let{reference:o,floating:r}=e;const s=ee(t),i=on(t),a=nn(i),u=ie(t),l=s==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,h=o[a]/2-r[a]/2;let v;switch(u){case"top":v={x:f,y:o.y-r.height};break;case"bottom":v={x:f,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:d};break;case"left":v={x:o.x-r.width,y:d};break;default:v={x:o.x,y:o.y}}switch(Se(t)){case"start":v[i]-=h*(n&&l?-1:1);break;case"end":v[i]+=h*(n&&l?-1:1);break}return v}const Qi=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=Wn(l,o,u),h=o,v={},x=0;for(let p=0;p<a.length;p++){const{name:m,fn:y}=a[p],{x:w,y:b,data:C,reset:E}=await y({x:f,y:d,initialPlacement:o,placement:h,strategy:r,middlewareData:v,rects:l,platform:i,elements:{reference:e,floating:t}});f=w??f,d=b??d,v={...v,[m]:{...v[m],...C}},E&&x<=50&&(x++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(l=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:f,y:d}=Wn(l,h,u)),p=-1)}return{x:f,y:d,placement:h,strategy:r,middlewareData:v}};async function Ie(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:a,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:v=0}=se(t,e),x=Ao(v),m=a[h?d==="floating"?"reference":"floating":d],y=Je(await s.getClippingRect
vendor: 8,941 bytes, line 1
1({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:u})),w=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},E=Je(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:b,strategy:u}):w);return{top:(y.top-E.top+x.top)/C.y,bottom:(E.bottom-y.bottom+x.bottom)/C.y,left:(y.left-E.left+x.left)/C.x,right:(E.right-y.right+x.right)/C.x}}const Ji=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:u}=t,{element:l,padding:f=0}=se(e,t)||{};if(l==null)return{};const d=Ao(f),h={x:n,y:o},v=on(r),x=nn(v),p=await i.getDimensions(l),m=v==="y",y=m?"top":"left",w=m?"bottom":"right",b=m?"clientHeight":"clientWidth",C=s.reference[x]+s.reference[v]-h[v]-s.floating[x],E=h[v]-s.reference[v],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let R=P?P[b]:0;(!R||!await(i.isElement==null?void 0:i.isElement(P)))&&(R=a.floating[b]||s.floating[x]);const A=C/2-E/2,M=R/2-p[x]/2-1,N=ue(d[y],M),D=ue(d[w],M),k=N,L=R-p[x]-D,S=R/2-p[x]/2+A,F=Bt(k,S,L),_=!u.arrow&&Se(r)!=null&&S!==F&&s.reference[x]/2-(S<k?N:D)-p[x]/2<0,j=_?S<k?S-k:S-L:0;return{[v]:h[v]+j,data:{[v]:F,centerOffset:S-F-j,..._&&{alignmentOffset:j}},reset:_}}}),ea=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:u,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:p=!0,...m}=se(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=ie(r),w=ee(a),b=ie(a)===a,C=await(u.isRTL==null?void 0:u.isRTL(l.floating)),E=h||(b||!p?[Qe(a)]:Gi(a)),P=x!=="none";!h&&P&&E.push(...qi(a,p,x,C));const R=[a,...E],A=await Ie(t,m),M=[];let N=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&M.push(A[y]),d){const S=Ui(r,i,C);M.push(A[S[0]],A[S[1]])}if(N=[...N,{placement:r,overflows:M}],!M.every(S=>S<=0)){var D,k;const S=(((D=s.flip)==null?void 0:D.index)||0)+1,F=R[S];if(F&&(!(d==="alignment"?w!==ee(F):!1)||N.every(T=>T.overflows[0]>0&&ee(T.placement)===w)))return{data:{index:S,overflows:N},reset:{placement:F}};let _=(k=N.filter(j=>j.overflows[0]<=0).sort((j,T)=>j.overflows[1]-T.overflows[1])[0])==null?void 0:k.placement;if(!_)switch(v){case"bestFit":{var L;const j=(L=N.filter(T=>{if(P){const B=ee(T.placement);return B===w||B==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(B=>B>0).reduce((B,U)=>B+U,0)]).sort((T,B)=>T[1]-B[1])[0])==null?void 0:L[0];j&&(_=j);break}case"initialPlacement":_=a;break}if(r!==_)return{reset:{placement:_}}}return{}}}};function Hn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Kn(e){return Vi.some(t=>e[t]>=0)}const ta=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=se(e,t);switch(o){case"referenceHidden":{const s=await Ie(t,{...r,elementContext:"reference"}),i=Hn(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Kn(i)}}}case"escaped":{const s=await Ie(t,{...r,altBoundary:!0}),i=Hn(s,n.floating);return{data:{escapedOffsets:i,escaped:Kn(i)}}}default:return{}}}}},To=new Set(["left","top"]);async function na(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=ie(n),a=Se(n),u=ee(n)==="y",l=To.has(i)?-1:1,f=s&&u?-1:1,d=se(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:x}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof x=="number"&&(v=a==="end"?x*-1:x),u?{x:v*f,y:h*l}:{x:h*l,y:v*f}}const oa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:a}=t,u=await na(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+u.x,y:s+u.y,data:{...u,placement:i}}}}},ra=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:m=>{let{x:y,y:w}=m;return{x:y,y:w}}},...u}=se(e,t),l={x:n,y:o},f=await Ie(t,u),d=ee(ie(r)),h=tn(d);let v=l[h],x=l[d];if(s){const m=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=v+f[m],b=v-f[y];v=Bt(w,v,b)}if(i){const m=d==="y"?"top":"left",y=d==="y"?"bottom":"right",w=x+f[m],b=x-f[y];x=Bt(w,x,b)}const p=a.fn({...t,[h]:v,[d]:x});return{...p,data:{x:p.x-n,y:p.y-o,enabled:{[h]:s,[d]:i}}}}}},sa=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=se(e,t),f={x:n,y:o},d=ee(r),h=tn(d);let v=f[h],x=f[d];const p=se(a,t),m=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const b=h==="y"?"height":"width",C=s.reference[h]-s.floating[b]+m.mainAxis,E=s.reference[h]+s.reference[b]-m.mainAxis;v<C?v=C:v>E&&(v=E)}if(l){var y,w;const b=h==="y"?"width":"height",C=To.has(ie(r)),E=s.reference[d]-s.floating[b]+(C&&((y=i.offset)==null?void 0:y[d])||0)+(C?0:m.crossAxis),P=s.reference[d]+s.reference[b]+(C?0:((w=i.offset)==null?void 0:w[d])||0)-(C?m.crossAxis:0);x<E?x=E:x>P&&(x=P)}return{[h]:v,[d]:x}}}},ia=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:a}=t,{apply:u=()=>{},...l}=se(e,t),f=await Ie(t,l),d=ie(r),h=Se(r),v=ee(r)==="y",{width:x,height:p}=s.floating;let m,y;d==="top"||d==="bottom"?(m=d,y=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,m=h==="end"?"top":"bottom");const w=p-f.top-f.bottom,b=x-f.left-f.right,C=ue(p-f[m],w),E=ue(x-f[y],b),P=!t.middlewareData.shift;let R=C,A=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=b),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(R=w),P&&!h){const N=W(f.left,0),D=W(f.right,0),k=W(f.top,0),L=W(f.bottom,0);v?A=x-2*(N!==0||D!==0?N+D:W(f.left,f.right)):R=p-2*(k!==0||L!==0?k+L:W(f.top,f.bottom))}await u({...t,availableWidth:A,availableHeight:R});const M=await i.getDimensions(a.floating);return x!==M.width||p!==M.height?{reset:{rects:!0}}:{}}}};function at(){return typeof window<"u"}function Ae(e){return Oo(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function re(e){var t;return(t=(Oo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Oo(e){return at()?e instanceof Node||e instanceof H(e).Node:!1}function z(e){return at()?e instanceof Element||e instanceof H(e).Element:!1}function oe(e){return at()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function Un(e){return!at()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}const aa=new Set(["inline","contents"]);function Le(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!aa.has(r)}const ca=new Set(["table","td","th"]);function la(e){return ca.has(Ae(e))}const ua=[":popover-open",":modal"];function ct(e){return ua.some(t=>{try{return e.matches(t)}catch{return!1}})}const da=["transform","translate","scale","rotate","perspective"],fa=["transform","translate","scale","rotate","perspective","filter"],pa=["paint","layout","strict","content"];function rn(e){const t=sn(),n=z(e)?Y(e):e;return da.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||fa.some(o=>(n.willChange||"").includes(o))||pa.some(o=>(n.contain||"").includes(o))}function ma(e){let t=de(e);for(;oe(t)&&!Ee(t);){if(rn(t))return t;if(ct(t))return null;t=de(t)}return null}function sn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const va=new Set(["html","body","#document"]);function Ee(e){return va.has(Ae(e))}function Y(e){return H(e).getComputedStyle(e)}function lt(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function de(e){if(Ae(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Un(e)&&e.host||re(e);return Un(t)?t.host:t}function _o(e){const t=de(e);return Ee(t)?e.ownerDocument?e.ownerDocument.body:e.body:oe(t)&&Le(t)?t:_o(t)}function De(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=_o(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=H(r);if(s){const a=Wt(i);
vendor: 7,365 bytes, line 1
1return t.concat(i,i.visualViewport||[],Le(r)?r:[],a&&n?De(a):[])}return t.concat(r,De(r,[],n))}function Wt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Io(e){const t=Y(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=oe(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=Ze(n)!==s||Ze(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function an(e){return z(e)?e:e.contextElement}function xe(e){const t=an(e);if(!oe(t))return te(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Io(t);let i=(s?Ze(n.width):n.width)/o,a=(s?Ze(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ha=te(0);function Do(e){const t=H(e);return!sn()||!t.visualViewport?ha:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ga(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function pe(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=an(e);let i=te(1);t&&(o?z(o)&&(i=xe(o)):i=xe(e));const a=ga(s,n,o)?Do(s):te(0);let u=(r.left+a.x)/i.x,l=(r.top+a.y)/i.y,f=r.width/i.x,d=r.height/i.y;if(s){const h=H(s),v=o&&z(o)?H(o):o;let x=h,p=Wt(x);for(;p&&o&&v!==x;){const m=xe(p),y=p.getBoundingClientRect(),w=Y(p),b=y.left+(p.clientLeft+parseFloat(w.paddingLeft))*m.x,C=y.top+(p.clientTop+parseFloat(w.paddingTop))*m.y;u*=m.x,l*=m.y,f*=m.x,d*=m.y,u+=b,l+=C,x=H(p),p=Wt(x)}}return Je({width:f,height:d,x:u,y:l})}function cn(e,t){const n=lt(e).scrollLeft;return t?t.left+n:pe(re(e)).left+n}function No(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:cn(e,o)),s=o.top+t.scrollTop;return{x:r,y:s}}function ya(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=re(o),a=t?ct(t.floating):!1;if(o===i||a&&s)return n;let u={scrollLeft:0,scrollTop:0},l=te(1);const f=te(0),d=oe(o);if((d||!d&&!s)&&((Ae(o)!=="body"||Le(i))&&(u=lt(o)),oe(o))){const v=pe(o);l=xe(o),f.x=v.x+o.clientLeft,f.y=v.y+o.clientTop}const h=i&&!d&&!s?No(i,u,!0):te(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+f.x+h.x,y:n.y*l.y-u.scrollTop*l.y+f.y+h.y}}function wa(e){return Array.from(e.getClientRects())}function xa(e){const t=re(e),n=lt(e),o=e.ownerDocument.body,r=W(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=W(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+cn(e);const a=-n.scrollTop;return Y(o).direction==="rtl"&&(i+=W(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:a}}function ba(e,t){const n=H(e),o=re(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,a=0,u=0;if(r){s=r.width,i=r.height;const l=sn();(!l||l&&t==="fixed")&&(a=r.offsetLeft,u=r.offsetTop)}return{width:s,height:i,x:a,y:u}}const Ca=new Set(["absolute","fixed"]);function Ea(e,t){const n=pe(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=oe(e)?xe(e):te(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,u=r*s.x,l=o*s.y;return{width:i,height:a,x:u,y:l}}function Gn(e,t,n){let o;if(t==="viewport")o=ba(e,n);else if(t==="document")o=xa(re(e));else if(z(t))o=Ea(t,n);else{const r=Do(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Je(o)}function Mo(e,t){const n=de(e);return n===t||!z(n)||Ee(n)?!1:Y(n).position==="fixed"||Mo(n,t)}function Ra(e,t){const n=t.get(e);if(n)return n;let o=De(e,[],!1).filter(a=>z(a)&&Ae(a)!=="body"),r=null;const s=Y(e).position==="fixed";let i=s?de(e):e;for(;z(i)&&!Ee(i);){const a=Y(i),u=rn(i);!u&&a.position==="fixed"&&(r=null),(s?!u&&!r:!u&&a.position==="static"&&!!r&&Ca.has(r.position)||Le(i)&&!u&&Mo(e,i))?o=o.filter(f=>f!==i):r=a,i=de(i)}return t.set(e,o),o}function Pa(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?ct(t)?[]:Ra(t,this._c):[].concat(n),o],a=i[0],u=i.reduce((l,f)=>{const d=Gn(t,f,r);return l.top=W(d.top,l.top),l.right=ue(d.right,l.right),l.bottom=ue(d.bottom,l.bottom),l.left=W(d.left,l.left),l},Gn(t,a,r));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Sa(e){const{width:t,height:n}=Io(e);return{width:t,height:n}}function Aa(e,t,n){const o=oe(t),r=re(t),s=n==="fixed",i=pe(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const u=te(0);function l(){u.x=cn(r)}if(o||!o&&!s)if((Ae(t)!=="body"||Le(r))&&(a=lt(t)),o){const v=pe(t,!0,s,t);u.x=v.x+t.clientLeft,u.y=v.y+t.clientTop}else r&&l();s&&!o&&r&&l();const f=r&&!o&&!s?No(r,a):te(0),d=i.left+a.scrollLeft-u.x-f.x,h=i.top+a.scrollTop-u.y-f.y;return{x:d,y:h,width:i.width,height:i.height}}function St(e){return Y(e).position==="static"}function zn(e,t){if(!oe(e)||Y(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return re(e)===n&&(n=n.ownerDocument.body),n}function ko(e,t){const n=H(e);if(ct(e))return n;if(!oe(e)){let r=de(e);for(;r&&!Ee(r);){if(z(r)&&!St(r))return r;r=de(r)}return n}let o=zn(e,t);for(;o&&la(o)&&St(o);)o=zn(o,t);return o&&Ee(o)&&St(o)&&!rn(o)?n:o||ma(e)||n}const Ta=async function(e){const t=this.getOffsetParent||ko,n=this.getDimensions,o=await n(e.floating);return{reference:Aa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Oa(e){return Y(e).direction==="rtl"}const _a={convertOffsetParentRelativeRectToViewportRelativeRect:ya,getDocumentElement:re,getClippingRect:Pa,getOffsetParent:ko,getElementRects:Ta,getClientRects:wa,getDimensions:Sa,getScale:xe,isElement:z,isRTL:Oa};function Lo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ia(e,t){let n=null,o;const r=re(e);function s(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function i(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),s();const l=e.getBoundingClientRect(),{left:f,top:d,width:h,height:v}=l;if(a||t(),!h||!v)return;const x=He(d),p=He(r.clientWidth-(f+h)),m=He(r.clientHeight-(d+v)),y=He(f),b={rootMargin:-x+"px "+-p+"px "+-m+"px "+-y+"px",threshold:W(0,ue(1,u))||1};let C=!0;function E(P){const R=P[0].intersectionRatio;if(R!==u){if(!C)return i();R?i(!1,R):o=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!Lo(l,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(E,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(E,b)}n.observe(e)}return i(!0),s}function Da(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,l=an(e),f=r||s?[...l?De(l):[],...De(t)]:[];f.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const d=l&&a?Ia(l,n):null;let h=-1,v=null;i&&(v=new ResizeObserver(y=>{let[w]=y;w&&w.target===l&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=v)==null||b.observe(t)})),n()}),l&&!u&&v.observe(l),v.observe(t));let x,p=u?pe(e):null;u&&m();function m(){const y=pe(e);p&&!Lo(p,y)&&n(),p=y,x=requestAnimationFrame(m)}return n(),()=>{var y;f.forEach(w=>{r&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),d==null||d(),(y=v)==null||y.disconnect(),v=null,u&&cancelAnimationFrame(x)}}const Na=oa,Ma=ra,ka=ea,La=ia,Fa=ta,Yn=Ji,ja=sa,$a=(e,t,n)=>{const o=new Map,r={platform:_a,...n},s={...r.platform,_c:o};return Qi(e,t,{...r,platform:s})};var Ba=typeof document<"u",Va=function(){},Ye=Ba?c.useLayoutEffect:Va;function et(e,t){if(e===t)return!0;
vendor: 1,498 bytes, line 1
1if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!et(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!et(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Fo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xn(e,t){const n=Fo(e);return Math.round(t*n)/n}function At(e){const t=c.useRef(e);return Ye(()=>{t.current=e}),t}function Wa(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:u,open:l}=e,[f,d]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,v]=c.useState(o);et(h,o)||v(o);const[x,p]=c.useState(null),[m,y]=c.useState(null),w=c.useCallback(T=>{T!==P.current&&(P.current=T,p(T))},[]),b=c.useCallback(T=>{T!==R.current&&(R.current=T,y(T))},[]),C=s||x,E=i||m,P=c.useRef(null),R=c.useRef(null),A=c.useRef(f),M=u!=null,N=At(u),D=At(r),k=At(l),L=c.useCallback(()=>{if(!P.current||!R.current)return;const T={placement:t,strategy:n,middleware:h};D.current&&(T.platform=D.current),$a(P.current,R.current,T).then(B=>{const U={...B,isPositioned:k.current!==!1};
1S.current&&!et(A.current,U)&&(A.current=U,Zt.flushSync(()=>{d(U)}))})},[h,t,n,D,k]);Ye(()=>{l===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[l]);const S=c.useRef(!1);Ye(()=>(S.current=!0,()=>{S.current=!1}),[]),Ye(()=>{if(C&&(P.current=C),E&&(R.current=E),C&&E){if(N.current)return N.current(C,E,L);L()}},[C,E,L,N,M]);const F=c.useMemo(()=>({reference:P,floating:R,setReference:w,setFloating:b}),[w,b]),_=c.useMemo(()=>({reference:C,floating:E}),[C,E]),j=c.useMemo(()=>{const T={position:n,left:0,top:0};if(!_.floating)return T;const B=Xn(_.floating,f.x),U=Xn(_.floating,f.y);return a?{...T,transform:"translate("+B+"px, "+U+"px)",...Fo(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:U}},[n,a,_.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:L,refs:F,elements:_,floatingStyles:j}),[f,L,F,_,j])}const Ha=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Yn({element:o.current,padding:r}).fn(n):{}:o?Yn({element:o,padding:r}).fn(n):{}}}},Ka=(e,t)=>({...Na(e),options:[e,t]}),Ua=(e,t)=>({...Ma(e),options:[e,t]}),Ga=(e,t)=>({...ja(e),options:[e,t]}),za=(e,t)=>({...ka(e),options:[e,t]}),Ya=(e,t)=>({...La(e),options:[e,t]}),Xa=(e,t)=>({...Fa(e),options:[e,t]}),qa=(e,t)=>({...Ha(e),options:[e,t]});var Za="Arrow",jo=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return g.jsx(I.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});jo.displayName=Za;var Qa=jo;function ut(e){const[t,n]=c.useState(void 0);return ne(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,a;if("borderBoxSize"in s){const u=s.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var ln="Popper",[$o,dt]=K(ln),[Ja,Bo]=$o(ln),Vo=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return g.jsx(Ja,{scope:t,anchor:o,onAnchorChange:r,children:n})};Vo.displayName=ln;var Wo="PopperAnchor",Ho=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Bo(Wo,n),i=c.useRef(null),a=$(t,i);return c.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||i.current)}),o?null:g.jsx(I.div,{...r,ref:a})});Ho.displayName=Wo;var un="PopperContent",[ec,tc]=$o(un),Ko=c.forwardRef((e,t)=>{var On,_n,In,Dn,Nn,Mn;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:x,...p}=e,m=Bo(un,n),[y,w]=c.useState(null),b=$(t,_e=>w(_e)),[C,E]=c.useState(null),P=ut(C),R=(P==null?void 0:P.width)??0,A=(P==null?void 0:P.height)??0,M=o+(s!=="center"?"-"+s:""),N=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},D=Array.isArray(l)?l:[l],k=D.length>0,L={padding:N,boundary:D.filter(oc),altBoundary:k},{refs:S,floatingStyles:F,placement:_,isPositioned:j,middlewareData:T}=Wa({strategy:"fixed",placement:M,whileElementsMounted:(..._e)=>Da(..._e,{animationFrame:v==="always"}),elements:{reference:m.anchor},middleware:[Ka({mainAxis:r+A,alignmentAxis:i}),u&&Ua({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Ga():void 0,...L}),u&&za({...L}),Ya({...L,apply:({elements:_e,rects:kn,availableWidth:Ks,availableHeight:Us})=>{const{width:Gs,height:zs}=kn.reference,Be=_e.floating.style;Be.setProperty("--radix-popper-available-width",`${Ks}px`),Be.setProperty("--radix-popper-available-height",`${Us}px`),Be.setProperty("--radix-popper-anchor-width",`${Gs}px`),Be.setProperty("--radix-popper-anchor-height",`${zs}px`)}}),C&&qa({element:C,padding:a}),rc({arrowWidth:R,arrowHeight:A}),h&&Xa({strategy:"referenceHidden",...L})]}),[B,U]=zo(_),ve=G(x);ne(()=>{j&&(ve==null||ve())},[j,ve]);const Oe=(On=T.arrow)==null?void 0:On.x,he=(_n=T.arrow)==null?void 0:_n.y,$e=((In=T.arrow)==null?void 0:In.centerOffset)!==0,[Ws,Hs]=c.useState();return ne(()=>{y&&Hs(window.getComputedStyle(y).zIndex)},[y]),g.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:j?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ws,"--radix-popper-transform-origin":[(Dn=T.transformOrigin)==null?void 0:Dn.x,(Nn=T.transformOrigin)==null?void 0:Nn.y].join(" "),...((Mn=T.hide)==null?void 0:Mn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(ec,{scope:n,placedSide:B,onArrowChange:E,arrowX:Oe,arrowY:he,shouldHideArrow:$e,children:g.jsx(I.div,{"data-side":B,"data-align":U,...p,ref:b,style:{...p.style,animation:j?void 0:"none"}})})})});Ko.displayName=un;var Uo="PopperArrow",nc={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},Go=c.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=tc(Uo,o),i=nc[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(Qa,{...r,ref:n,style:{...r.style,display:"block"}})})});Go.displayName=Uo;function oc(e){return e!==null}var rc=e=>({name:"transformOrigin",options:e,fn(t){var m,y,w;const{placement:n,rects:o,middlewareData:r}=t,i=((m=r.arrow)==null?void 0:m.centerOffset)!==0,a=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[l,f]=zo(n),d={start:"0%",center:"50%",end:"100%"}[f],h=(((y=r.arrow)==null?void 0:y.x)??0)+a/2,v=(((w=r.arrow)==null?void 0:w.y)??0)+u/2;let x="",p="";return l==="bottom"?(x=i?d:`${h}px`,p=`${-u}px`):l==="top"?(x=i?d:`${h}px`,p=`${o.floating.height+u}px`):l==="right"?(x=`${-u}px`,p=i?d:`${v}px`):l==="left"&&(x=`${o.floating.width+u}px`,p=i?d:`${v}px`),{data:{x,y:p}}}});function zo(e){const[t,n="center"]=e.split("-");return[t,n]}var Yo=Vo,dn=Ho,Xo=Ko,qo=Go,[ft,Yu]=K("Tooltip",[dt]),pt=dt(),Zo="TooltipProvider",sc=700,Ht="tooltip.open",[ic,fn]=ft(Zo),Qo=e=>{const{__scopeTooltip:t,delayDuration:n=sc,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=e,i=c.useRef(!0),a=c.useRef(!1),u=c.useRef(0);return c.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),g.jsx(ic,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,o)},[o]),isPointerInTransitRef:a,onPointerInTransitChange:c.useCallback(l=>{a.current=l},[]),disableHoverableContent:r,children:s})};Qo.displayName=Zo;var Ne="Tooltip",[ac,mt]=ft(Ne),Jo=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,u=fn(Ne,e.__scopeTooltip),l=pt(t),[f,d]=c.useState(null),h=ce(),v=c.useRef(0),x=i??u.disableHoverableContent,p=a??u.delayDuration,m=c.useRef(!1),[y,w]=q({prop:o,defaultProp:r??!1,onChange:R=>{R?(u.onOpen(),document.dispatchEvent(new CustomEvent(Ht))):u.onClose(),s==null||s(R)},caller:Ne}),b=c.useMemo(()=>y?m.current?"delayed-open":"instant-open":"closed",[y]),C=c.useCallback(()=>{window.clearTimeout(v.current),v.current=0,m.current=!1,w(!0)},[w]),E=c.useCallback(()=>{window.clearTimeout(v.current),v.current=0,w(!1)},[w]),P=c.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{m.current=!0,w(!0),v.current=0},p)},[p,w]);return c.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),g.jsx(Yo,{...l,children:g.jsx(ac,{scope:t,contentId:h,open:y,stateAttribute:b,trigger:f,onTriggerChange:d,onTriggerEnter:c.useCallback(()=>{u.isOpenDelayedRef.current?P():C()},[u.isOpenDelayedRef,P,C]),onTriggerLeave:c.useCallback(()=>{x?E():(window.clearTimeout(v.current),v.current=0)},[E,x]),onOpen:C,onClose:E,disableHoverableContent:x,children:n})})};Jo.displayName=Ne;var Kt="TooltipTrigger",er=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=mt(Kt,n),s=fn(Kt,n),i=pt(n),a=c.useRef(null),u=$(t,a,r.onTriggerChange),l=c.useRef(!1),f=c.useRef(!1),d=c.useCallback(()=>l.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),g.jsx(dn,{asChild:!0,...i,children:g.jsx(I.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:u,onPointerMove:O(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:O(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:O(e.onPointerDown,()=>{r.open&&r.onClose(),l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:O(e.onFocus,()=>{l.current||r.onOpen()}),onBlur:O(e.onBlur,r.onClose),onClick:O(e.onClick,r.onClose)})})});er.displayName=Kt;var cc="TooltipPortal",[Xu,lc]=ft(cc,{forceMount:void 0}),Re="TooltipContent",tr=c.forwardRef((e,t)=>
1{const n=lc(Re,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,i=mt(Re,e.__scopeTooltip);return g.jsx(X,{present:o||i.open,children:i.disableHoverableContent?g.jsx(nr,{side:r,...s,ref:t}):g.jsx(uc,{side:r,...s,ref:t})})}),uc=c.forwardRef((e,t)=>{const n=mt(Re,e.__scopeTooltip),o=fn(Re,e.__scopeTooltip),r=c.useRef(null),s=$(t,r),[i,a]=c.useState(null),{trigger:u,onClose:l}=n,f=r.current,{onPointerInTransitChange:d}=o,h=c.useCallback(()=>{a(null),d(!1)},[d]),v=c.useCallback((x,p)=>{const m=x.currentTarget,y={x:x.clientX,y:x.clientY},w=vc(y,m.getBoundingClientRect()),b=hc(y,w),C=gc(p.getBoundingClientRect()),E=wc([...b,...C]);a(E),d(!0)},[d]);return c.useEffect(()=>()=>h(),[h]),c.useEffect(()=>{if(u&&f){const x=m=>v(m,f),p=m=>v(m,u);return u.addEventListener("pointerleave",x),f.addEventListener("pointerleave",p),()=>{u.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",p)}}},[u,f,v,h]),c.useEffect(()=>{if(i){const x=p=>{const m=p.target,y={x:p.clientX,y:p.clientY},w=(u==null?void 0:u.contains(m))||(f==null?void 0:f.contains(m)),b=!yc(y,i);w?h():b&&(h(),l())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[u,f,i,l,h]),g.jsx(nr,{...e,ref:s})}),[dc,fc]=ft(Ne,{isInside:!1}),pc=Qs("TooltipContent"),nr=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,u=mt(Re,n),l=pt(n),{onClose:f}=u;return c.useEffect(()=>(document.addEventListener(Ht,f),()=>document.removeEventListener(Ht,f)),[f]),c.useEffect(()=>{if(u.trigger){const d=h=>{const v=h.target;v!=null&&v.contains(u.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[u.trigger,f]),g.jsx(Me,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:f,children:g.jsxs(Xo,{"data-state":u.stateAttribute,...l,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(pc,{children:o}),g.jsx(dc,{scope:n,isInside:!0,children:g.jsx(bi,{id:u.contentId,role:"tooltip",children:r||o})})]})})});tr.displayName=Re;var or="TooltipArrow",mc=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=pt(n);return fc(or,n).isInside?null:g.jsx(qo,{...r,...o,ref:t})});mc.displayName=or;function vc(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function hc(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function gc(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function yc(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],u=t[i],l=a.x,f=a.y,d=u.x,h=u.y;f>o!=h>o&&n<(d-l)*(o-f)/(h-f)+l&&(r=!r)}return r}function wc(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),xc(t)}function xc(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var qu=Qo,Zu=Jo,Qu=er,Ju=tr,bc="Label",rr=c.forwardRef((e,t)=>
1g.jsx(I.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));rr.displayName=bc;var ed=rr;function sr(e,[t,n]){return Math.min(n,Math.max(t,e))}var Cc=c.createContext(void 0);function vt(e){const t=c.useContext(Cc);return e||t||"ltr"}function pn(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ir=["PageUp","PageDown"],ar=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],cr={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Te="Slider",[Ut,Ec,Rc]=ot(Te),[lr,td]=K(Te,[Rc]),[Pc,ht]=lr(Te),ur=c.forwardRef((e,t)=>{const{name:n,min:o=0,max:r=100,step:s=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:l=[o],value:f,onValueChange:d=()=>{},onValueCommit:h=()=>{},inverted:v=!1,form:x,...p}=e,m=c.useRef(new Set),y=c.useRef(0),b=i==="horizontal"?Sc:Ac,[C=[],E]=q({prop:f,defaultProp:l,onChange:D=>{var L;(L=[...m.current][y.current])==null||L.focus(),d(D)}}),P=c.useRef(C);function R(D){const k=Dc(C,D);N(D,k)}function A(D){N(D,y.current)}function M(){const D=P.current[y.current];C[y.current]!==D&&h(C)}function N(D,k,{commit:L}={commit:!1}){const S=Lc(s),F=Fc(Math.round((D-o)/s)*s+o,S),_=sr(F,[o,r]);E((j=[])=>{const T=_c(j,_,k);if(kc(T,u*s)){y.current=T.indexOf(_);const B=String(T)!==String(j);return B&&L&&h(T),B?T:j}else return j})}return g.jsx(Pc,{scope:e.__scopeSlider,name:n,disabled:a,min:o,max:r,valueIndexToChangeRef:y,thumbs:m.current,values:C,orientation:i,form:x,children:g.jsx(Ut.Provider,{scope:e.__scopeSlider,children:g.jsx(Ut.Slot,{scope:e.__scopeSlider,children:g.jsx(b,{"aria-disabled":a,"data-disabled":a?"":void 0,...p,ref:t,onPointerDown:O(p.onPointerDown,()=>{a||(P.current=C)}),min:o,max:r,inverted:v,onSlideStart:a?void 0:R,onSlideMove:a?void 0:A,onSlideEnd:a?void 0:M,onHomeKeyDown:()=>!a&&N(o,0,{commit:!0}),onEndKeyDown:()=>!a&&N(r,C.length-1,{commit:!0}),onStepKeyDown:({event:D,direction:k})=>{if(!a){const F=ir.includes(D.key)||D.shiftKey&&ar.includes(D.key)?10:1,_=y.current,j=C[_],T=s*F*k;N(j+T,_,{commit:!0})}}})})})})});ur.displayName=Te;var[dr,fr]=lr(Te,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Sc=c.forwardRef((e,t)=>{const{min:n,max:o,dir:r,inverted:s,onSlideStart:i,onSlideMove:a,onSlideEnd:u,onStepKeyDown:l,...f}=e,[d,h]=c.useState(null),v=$(t,b=>h(b)),x=c.useRef(void 0),p=vt(r),m=p==="ltr",y=m&&!s||!m&&s;function w(b){const C=x.current||d.getBoundingClientRect(),E=[0,C.width],R=mn(E,y?[n,o]:[o,n]);return x.current=C,R(b-C.left)}return g.jsx(dr,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:g.jsx(pr,{dir:p,"data-orientation":"horizontal",...f,ref:v,style:{...f.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const C=w(b.clientX);i==null||i(C)},onSlideMove:b=>{const C=w(b.clientX);a==null||a(C)},onSlideEnd:()=>{x.current=void 0,u==null||u()},onStepKeyDown:b=>{const E=cr[y?"from-left":"from-right"].includes(b.key);l==null||l({event:b,direction:E?-1:1})}})})}),Ac=c.forwardRef((e,t)=>{const{min:n,max:o,inverted:r,onSlideStart:s,onSlideMove:i,onSlideEnd:a,onStepKeyDown:u,...l}=e,f=c.useRef(null),d=$(t,f),h=c.useRef(void 0),v=!r;function x(p){const m=h.current||f.current.getBoundingClientRect(),y=[0,m.height],b=mn(y,v?[o,n]:[n,o]);return h.current=m,b(p-m.top)}return g.jsx(dr,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:g.jsx(pr,{"data-orientation":"vertical",...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:p=>{const m=x(p.clientY);s==null||s(m)},onSlideMove:p=>{const m=x(p.clientY);i==null||i(m)},onSlideEnd:()=>{h.current=void 0,a==null||a()},onStepKeyDown:p=>{const y=cr[v?"from-bottom":"from-top"].includes(p.key);u==null||u({event:p,direction:y?-1:1})}})})}),pr=c.forwardRef((e,t)=>
1{const{__scopeSlider:n,onSlideStart:o,onSlideMove:r,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:u,...l}=e,f=ht(Te,n);return g.jsx(I.span,{...l,ref:t,onKeyDown:O(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):ir.concat(ar).includes(d.key)&&(u(d),d.preventDefault())}),onPointerDown:O(e.onPointerDown,d=>{const h=d.target;h.setPointerCapture(d.pointerId),d.preventDefault(),f.thumbs.has(h)?h.focus():o(d)}),onPointerMove:O(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&r(d)}),onPointerUp:O(e.onPointerUp,d=>{const h=d.target;h.hasPointerCapture(d.pointerId)&&(h.releasePointerCapture(d.pointerId),s(d))})})}),mr="SliderTrack",vr=c.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=ht(mr,n);return g.jsx(I.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});vr.displayName=mr;var Gt="SliderRange",hr=c.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=ht(Gt,n),s=fr(Gt,n),i=c.useRef(null),a=$(t,i),u=r.values.length,l=r.values.map(h=>wr(h,r.min,r.max)),f=u>1?Math.min(...l):0,d=100-Math.max(...l);return g.jsx(I.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:a,style:{...e.style,[s.startEdge]:f+"%",[s.endEdge]:d+"%"}})});hr.displayName=Gt;var zt="SliderThumb",gr=c.forwardRef((e,t)=>{const n=Ec(e.__scopeSlider),[o,r]=c.useState(null),s=$(t,a=>r(a)),i=c.useMemo(()=>o?n().findIndex(a=>a.ref.current===o):-1,[n,o]);return g.jsx(Tc,{...e,ref:s,index:i})}),Tc=c.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:r,...s}=e,i=ht(zt,n),a=fr(zt,n),[u,l]=c.useState(null),f=$(t,w=>l(w)),d=u?i.form||!!u.closest("form"):!0,h=ut(u),v=i.values[o],x=v===void 0?0:wr(v,i.min,i.max),p=Ic(o,i.values.length),m=h==null?void 0:h[a.size],y=m?Nc(m,x,a.direction):0;return c.useEffect(()=>{if(u)return i.thumbs.add(u),()=>{i.thumbs.delete(u)}},[u,i.thumbs]),g.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${x}% + ${y}px)`},children:[g.jsx(Ut.ItemSlot,{scope:e.__scopeSlider,children:g.jsx(I.span,{role:"slider","aria-label":e["aria-label"]||p,"aria-valuemin":i.min,"aria-valuenow":v,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...s,ref:f,style:v===void 0?{display:"none"}:e.style,onFocus:O(e.onFocus,()=>{i.valueIndexToChangeRef.current=o})})}),d&&g.jsx(yr,{name:r??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:v},o)]})});gr.displayName=zt;var Oc="RadioBubbleInput",yr=c.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const r=c.useRef(null),s=$(r,o),i=pn(t);return c.useEffect(()=>{const a=r.current;if(!a)return;const u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"value").set;if(i!==t&&f){const d=new Event("input",{bubbles:!0});f.call(a,t),a.dispatchEvent(d)}},[i,t]),g.jsx(I.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});yr.displayName=Oc;function _c(e=[],t,n){const o=[...e];return o[n]=t,o.sort((r,s)=>r-s)}function wr(e,t,n){const s=100/(n-t)*(e-t);return sr(s,[0,100])}function Ic(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Dc(e,t){if(e.length===1)return 0;const n=e.map(r=>Math.abs(r-t)),o=Math.min(...n);return n.indexOf(o)}function Nc(e,t,n){const o=e/2,s=mn([0,50],[0,o]);return(o-s(t)*n)*n}function Mc(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function kc(e,t){if(t>0){const n=Mc(e);return Math.min(...n)>=t}return!0}function mn(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function Lc(e){return(String(e).split(".")[1]||"").length}function Fc(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var nd=ur,od=vr,rd=hr,sd=gr,gt="Collapsible",[jc,xr]=K(gt),[$c,vn]=jc(gt),br=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:s,onOpenChange:i,...a}=e,[u,l]=q({prop:o,defaultProp:r??!1,onChange:i,caller:gt});return g.jsx($c,{scope:n,disabled:s,contentId:ce(),open:u,onOpenToggle:c.useCallback(()=>l(f=>!f),[l]),children:g.jsx(I.div,{"data-state":gn(u),"data-disabled":s?"":void 0,...a,ref:t})})});br.displayName=gt;var Cr="CollapsibleTrigger",Er=c.forwardRef((e,t)=>
1{const{__scopeCollapsible:n,...o}=e,r=vn(Cr,n);return g.jsx(I.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":gn(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:O(e.onClick,r.onOpenToggle)})});Er.displayName=Cr;var hn="CollapsibleContent",Rr=c.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=vn(hn,e.__scopeCollapsible);return g.jsx(X,{present:n||r.open,children:({present:s})=>g.jsx(Bc,{...o,ref:t,present:s})})});Rr.displayName=hn;var Bc=c.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...s}=e,i=vn(hn,n),[a,u]=c.useState(o),l=c.useRef(null),f=$(t,l),d=c.useRef(0),h=d.current,v=c.useRef(0),x=v.current,p=i.open||a,m=c.useRef(p),y=c.useRef(void 0);return c.useEffect(()=>{const w=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(w)},[]),ne(()=>{const w=l.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const b=w.getBoundingClientRect();d.current=b.height,v.current=b.width,m.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),u(o)}},[i.open,o]),g.jsx(I.div,{"data-state":gn(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!p,...s,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:p&&r})});function gn(e){return e?"open":"closed"}var Vc=br,Wc=Er,Hc=Rr,Z="Accordion",Kc=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[yn,Uc,Gc]=ot(Z),[yt,id]=K(Z,[Gc,xr]),wn=xr(),Pr=V.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,s=o;return g.jsx(yn.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?g.jsx(qc,{...s,ref:t}):g.jsx(Xc,{...r,ref:t})})});
1Pr.displayName=Z;var[Sr,zc]=yt(Z),[Ar,Yc]=yt(Z,{collapsible:!1}),Xc=V.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:s=!1,...i}=e,[a,u]=q({prop:n,defaultProp:o??"",onChange:r,caller:Z});return g.jsx(Sr,{scope:e.__scopeAccordion,value:V.useMemo(()=>a?[a]:[],[a]),onItemOpen:u,onItemClose:V.useCallback(()=>s&&u(""),[s,u]),children:g.jsx(Ar,{scope:e.__scopeAccordion,collapsible:s,children:g.jsx(Tr,{...i,ref:t})})})}),qc=V.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...s}=e,[i,a]=q({prop:n,defaultProp:o??[],onChange:r,caller:Z}),u=V.useCallback(f=>a((d=[])=>[...d,f]),[a]),l=V.useCallback(f=>a((d=[])=>d.filter(h=>h!==f)),[a]);return g.jsx(Sr,{scope:e.__scopeAccordion,value:i,onItemOpen:u,onItemClose:l,children:g.jsx(Ar,{scope:e.__scopeAccordion,collapsible:!0,children:g.jsx(Tr,{...s,ref:t})})})}),[Zc,wt]=yt(Z),Tr=V.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:s="vertical",...i}=e,a=V.useRef(null),u=$(a,t),l=Uc(n),d=vt(r)==="ltr",h=O(e.onKeyDown,v=>{var A;if(!Kc.includes(v.key))return;const x=v.target,p=l().filter(M=>{var N;return!((N=M.ref.current)!=null&&N.disabled)}),m=p.findIndex(M=>M.ref.current===x),y=p.length;if(m===-1)return;v.preventDefault();let w=m;const b=0,C=y-1,E=()=>{w=m+1,w>C&&(w=b)},P=()=>{w=m-1,w<b&&(w=C)};switch(v.key){case"Home":w=b;break;case"End":w=C;break;case"ArrowRight":s==="horizontal"&&(d?E():P());break;case"ArrowDown":s==="vertical"&&E();break;case"ArrowLeft":s==="horizontal"&&(d?P():E());break;case"ArrowUp":s==="vertical"&&P();break}const R=w%y;(A=p[R].ref.current)==null||A.focus()});return g.jsx(Zc,{scope:n,disabled:o,direction:r,orientation:s,children:g.jsx(yn.Slot,{scope:n,children:g.jsx(I.div,{...i,"data-orientation":s,ref:u,onKeyDown:o?void 0:h})})})}),tt="AccordionItem",[Qc,xn]=yt(tt),Or=V.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,s=wt(tt,n),i=zc(tt,n),a=wn(n),u=ce(),l=o&&i.value.includes(o)||!1,f=s.disabled||e.disabled;return g.jsx(Qc,{scope:n,open:l,disabled:f,triggerId:u,children:g.jsx(Vc,{"data-orientation":s.orientation,"data-state":kr(l),...a,...r,ref:t,disabled:f,open:l,onOpenChange:d=>{d?i.onItemOpen(o):i.onItemClose(o)}})})});Or.displayName=tt;var _r="AccordionHeader",Ir=V.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=wt(Z,n),s=xn(_r,n);return g.jsx(I.h3,{"data-orientation":r.orientation,"data-state":kr(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});Ir.displayName=_r;var Yt="AccordionTrigger",Dr=V.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=wt(Z,n),s=xn(Yt,n),i=Yc(Yt,n),a=wn(n);return g.jsx(yn.ItemSlot,{scope:n,children:g.jsx(Wc,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":r.orientation,id:s.triggerId,...a,...o,ref:t})})});Dr.displayName=Yt;var Nr="AccordionContent",Mr=V.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=wt(Z,n),s=xn(Nr,n),i=wn(n);return g.jsx(Hc,{role:"region","aria-labelledby":s.triggerId,"data-orientation":r.orientation,...i,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Mr.displayName=Nr;function kr(e){return e?"open":"closed"}var ad=Pr,cd=Or,ld=Ir,ud=Dr,dd=Mr,Tt="focusScope.autoFocusOnMount",Ot="focusScope.autoFocusOnUnmount",qn={bubbles:!1,cancelable:!0},Jc="FocusScope",bn=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...i}=e,[a,u]=c.useState(null),l=G(r),f=G(s),d=c.useRef(null),h=$(t,p=>u(p)),v=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let p=function(b){if(v.paused||!a)return;const C=b.target;a.contains(C)?d.current=C:ae(d.current,{select:!0})},m=function(b){if(v.paused||!a)return;const C=b.relatedTarget;C!==null&&(a.contains(C)||ae(d.current,{select:!0}))},y=function(b){if(document.activeElement===document.body)for(const E of b)E.removedNodes.length>0&&ae(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",m);const w=new MutationObserver(y);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",m),w.disconnect()}}},[o,a,v.paused]),c.useEffect(()=>{if(a){Qn.add(v);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(Tt,qn);a.addEventListener(Tt,l),a.dispatchEvent(y),y.defaultPrevented||(el(sl(Lr(a)),{select:!0}),document.activeElement===p&&ae(a))}return()=>{a.removeEventListener(Tt,l),setTimeout(()=>{const y=new CustomEvent(Ot,qn);a.addEventListener(Ot,f),a.dispatchEvent(y),y.defaultPrevented||ae(p??document.body,{select:!0}),a.removeEventListener(Ot,f),Qn.remove(v)},0)}}},[a,l,f,v]);const x=c.useCallback(p=>{if(!n&&!o||v.paused)return;const m=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(m&&y){const w=p.currentTarget,[b,C]=tl(w);b&&C?!p.shiftKey&&y===C?(p.preventDefault(),n&&ae(b,{select:!0}
1)):p.shiftKey&&y===b&&(p.preventDefault(),n&&ae(C,{select:!0})):y===w&&p.preventDefault()}},[n,o,v.paused]);return g.jsx(I.div,{tabIndex:-1,...i,ref:h,onKeyDown:x})});bn.displayName=Jc;function el(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(ae(o,{select:t}),document.activeElement!==n)return}function tl(e){const t=Lr(e),n=Zn(t,e),o=Zn(t.reverse(),e);return[n,o]}function Lr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zn(e,t){for(const n of e)if(!nl(n,{upTo:t}))return n}function nl(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}function ol(e){return e instanceof HTMLInputElement&&"select"in e}function ae(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ol(e)&&t&&e.select()}}var Qn=rl();function rl(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Jn(e,t),e.unshift(t)},remove(t){var n;e=Jn(e,t),(n=e[0])==null||n.resume()}}}function Jn(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function sl(e){return e.filter(t=>t.tagName!=="A")}var _t=0;function Fr(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eo()),document.body.insertAdjacentElement("beforeend",e[1]??eo()),_t++,()=>{_t===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_t--}},[])}function eo(){const 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}var J=function(){return J=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},J.apply(this,arguments)};function jr(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function il(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Xe="right-scroll-bar-position",qe="width-before-scroll-bar",al="with-scroll-bars-hidden",cl="--removed-body-scroll-bar-size";function It(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ll(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var ul=typeof window<"u"?c.useLayoutEffect:c.useEffect,to=new WeakMap;function dl(e,t){var n=ll(null,function(o){return e.forEach(function(r){return It(r,o)})});return ul(function(){var o=to.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(a){s.has(a)||It(a,null)}),s.forEach(function(a){r.has(a)||It(a,i)})}to.set(n,e)},[e]),n}function fl(e){return e}function pl(e,t){t===void 0&&(t=fl);var n=[],o=!1,r={read:function(){if(o)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(s){var i=t(s,o);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var u=function(){var f=i;i=[],f.forEach(s)},l=function(){return Promise.resolve().then(u)};
vendor: 10,116 bytes, lines 1-41
1l(),n={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),n}}}};return r}function ml(e){e===void 0&&(e={});var t=pl(null);return t.options=J({async:!0,ssr:!1},e),t}var $r=function(e){var t=e.sideCar,n=jr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,J({},n))};$r.isSideCarExport=!0;function vl(e,t){return e.useMedium(t),$r}var Br=ml(),Dt=function(){},xt=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:Dt,onWheelCapture:Dt,onTouchMoveCapture:Dt}),r=o[0],s=o[1],i=e.forwardProps,a=e.children,u=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,v=e.noRelative,x=e.noIsolation,p=e.inert,m=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,b=e.gapMode,C=jr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,P=dl([n,t]),R=J(J({},C),r);return c.createElement(c.Fragment,null,f&&c.createElement(E,{sideCar:Br,removeScrollBar:l,shards:d,noRelative:v,noIsolation:x,inert:p,setCallbacks:s,allowPinchZoom:!!m,lockRef:n,gapMode:b}),i?c.cloneElement(c.Children.only(a),J(J({},R),{ref:P})):c.createElement(w,J({},R,{className:u,ref:P}),a))});xt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xt.classNames={fullWidth:qe,zeroRight:Xe};var hl=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function gl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hl();return t&&e.setAttribute("nonce",t),e}function yl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function wl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=gl())&&(yl(t,n),wl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bl=function(){var e=xl();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Vr=function(){var e=bl(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Cl={left:0,top:0,right:0,gap:0},Nt=function(e){return parseInt(e||"",10)||0},El=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Nt(n),Nt(o),Nt(r)]},Rl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Cl;var t=El(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Pl=Vr(),be="data-scroll-locked",Sl=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(al,` { 3 overflow: hidden `).concat(o,`; 4 padding-right: `).concat(a,"px ").concat(o,`; 5 } 6 body[`).concat(be,`] { 7 overflow: hidden `).concat(o,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&` 10 padding-left: `.concat(r,`px; 11 padding-top: `).concat(s,`px; 12 padding-right: `).concat(i,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(a,"px ").concat(o,`; 16 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(Xe,` { 20 right: `).concat(a,"px ").concat(o,`; 21 } 22 23 .`).concat(qe,` { 24 margin-right: `).concat(a,"px ").concat(o,`; 25 } 26 27 .`).concat(Xe," .").concat(Xe,` { 28 right: 0 `).concat(o,`; 29 } 30 31 .`).concat(qe," .").concat(qe,` { 32 margin-right: 0 `).concat(o,`; 33 } 34 35 body[`).concat(be,`] { 36 `).concat(cl,": ").concat(a,`px; 37 } 38`)},no=function(){var e=parseInt(document.body.getAttribute(be)||"0",10);return isFinite(e)?e:0},Al=function(){c.useEffect(function(){return document.body.setAttribute(be,(no()+1).toString()),function(){var e=no()-1;e<=0?document.body.removeAttribute(be):document.body.setAttribute(be,e.toString())}},[])},Tl=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Al();var s=c.useMemo(function(){return Rl(r)},[r]);return c.createElement(Pl,{styles:Sl(s,!t,r,n?"":"!important")})},Xt=!1;if(typeof window<"u")try{var Ke=Object.defineProperty({},"passive",{get:function(){return Xt=!0,!0}});window.addEventListener("test",Ke,Ke),window.removeEventListener("test",Ke,Ke)}catch{Xt=!1}var ge=Xt?{passive:!1}:!1,Ol=function(e){return e.tagName==="TEXTAREA"},Wr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ol(e)&&n[t]==="visible")},_l=function(e){return Wr(e,"overflowY")},Il=function(e){return Wr(e,"overflowX")},oo=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Hr(e,o);if(r){var s=Kr(e,o),i=s[1],a=s[2];if(i>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Dl=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Nl=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Hr=function(e,t){return e==="v"?_l(t):Il(t)},Kr=function(e,t){return e==="v"?Dl(t):Nl(t)},Ml=function(e,t){return e==="h"&&t==="rtl"?-1:1},kl=function(e,t,n,o,r){var s=Ml(e,window.getComputedStyle(t).direction),i=s*o,a=n.target,u=t.contains(a),l=!1,f=i>0,d=0,h=0;do{if(!a)break;var v=Kr(e,a),x=v[0],p=v[1],m=v[2],y=p-m-s*x;(x||y)&&Hr(e,a)&&(d+=y,h+=x);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(f&&(Math.abs(d)<1||!r)||!f&&(Math.abs(h)<1||!r))&&(l=!0),l},Ue=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ro=function(e){return[e.deltaX,e.deltaY]},so=function(e){return e&&"current"in e?e.current:e},Ll=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Fl=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},jl=0,ye=[];function $l(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(jl++)[0],s=c.useState(Vr)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=il([e.lockRef.current],(e.shards||[]).map(so),!0).filter(Boolean);return p.forEach(function(m){return m.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(p,m){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var y=Ue(p),w=n.current,b="deltaX"in p?p.deltaX:w[0]-y[0],C="deltaY"in p?p.deltaY:w[1]-y[1],E,P=p.target,R=Math.abs(b)>Math.abs(C)?"h":"v";if("touches"in p&&R==="h"&&P.type==="range")return!1;var A=oo(R,P);if(!A)return!0;if(A?E=R:(E=R==="v"?"h":"v",A=oo(R,P)),!A)return!1;if(!o.current&&"changedTouches"in p&&(b||C)&&(o.current=E),!E)return!0;var M=o.current||E;return kl(M,m,p,M==="h"?b:C,!0)},[]),u=c.useCallback(function(p){var m=p;if(!(!ye.length||ye[ye.length-1]!==s)){var y="deltaY"in m?ro(m):Ue(m),w=t.current.filter(function(E){return E.name===m.type&&(E.target===m.target||m.target===E.shadowParent)&&Ll(E.delta,y)})[0];if(w&&w.should){m.cancelable&&m.preventDefault();return}if(!w){var b=(i.current.shards||[]).map(so).filter(Boolean).filter(function(E){return E.contains(m.target)}),C=b.length>0?a(m,b[0]):!i.current.noIsolation;C&&m.cancelable&&m.preventDefault()}}},[]),l=c.useCallback(function(p,m,y,w){var b={name:p,delta:m,target:y,should:w,shadowParent:Bl(y)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(C){return C!==b})},1)},[]),f=c.useCallback(function(p){n.current=Ue(p),o.current=void 0},[]),d=c.useCallback(function(p){l(p.type,ro(p),p.target,a(p,e.lockRef.current))},[]),h=c.useCallback(function(p){l(p.type,Ue(p),p.target,a(p,e.lockRef.current))},[]);c.useEffect(function(){return ye.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",u,ge),document.addEventListener("touchmove",u,ge),document.addEventListener("touchstart",f,ge),function(){ye=ye.filter(function(p){return p!==s}),document.removeEventListener("wheel",u,ge),document.removeEventListener("touchmove",u,ge),document.removeEventListener("touchstart",f,ge)}},[]);var v=e.removeScrollBar,x=e.inert;return c.createElement(c.Fragment,null,x?c.createElement(s,{styles:Fl(r)}):null,v?c.createElement(Tl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Bl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Vl=vl(Br,$l);var Cn=c.forwardRef(function(e,t){return c.createElement(xt,J({},e,{ref:t,sideCar:Vl}))});Cn.classNames=xt.classNames;var Wl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},we=new WeakMap,Ge=new WeakMap,ze={},Mt=0,Ur=function(e){return e&&(e.host||Ur(e.parentNode))},Hl=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Ur(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Kl=function(e,t,n,o){var r=Hl(t,Array.isArray(e)?e:[e]);ze[n]||(ze[n]=new WeakMap);var s=ze[n],i=[],a=new Set,u=new Set(r),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};r.forEach(l);var f=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))f(h);else try{var v=h.getAttribute(o),x=v!==null&&v!=="false",p=(we.get(h)||0)+1,m=(s.get(h)||0)+1;we.set(h,p),s.set(h,m),i.push(h),p===1&&x&&Ge.set(h,!0),m===1&&h.setAttribute(n,"true"),x||h.setAttribute(o,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};
41return f(t),a.clear(),Mt++,function(){i.forEach(function(d){var h=we.get(d)-1,v=s.get(d)-1;we.set(d,h),s.set(d,v),h||(Ge.has(d)||d.removeAttribute(o),Ge.delete(d)),v||d.removeAttribute(n)}),Mt--,Mt||(we=new WeakMap,we=new WeakMap,Ge=new WeakMap,ze={})}},Gr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Wl(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),Kl(o,r,n,"aria-hidden")):function(){return null}},bt="Dialog",[zr,fd]=K(bt),[Ul,Q]=zr(bt),Yr=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,a=c.useRef(null),u=c.useRef(null),[l,f]=q({prop:o,defaultProp:r??!1,onChange:s,caller:bt});return g.jsx(Ul,{scope:t,triggerRef:a,contentRef:u,contentId:ce(),titleId:ce(),descriptionId:ce(),open:l,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(d=>!d),[f]),modal:i,children:n})};Yr.displayName=bt;var Xr="DialogTrigger",Gl=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Q(Xr,n),s=$(t,r.triggerRef);return g.jsx(I.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Pn(r.open),...o,ref:s,onClick:O(e.onClick,r.onOpenToggle)})});Gl.displayName=Xr;var En="DialogPortal",[zl,qr]=zr(En,{forceMount:void 0}),Zr=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=Q(En,t);return g.jsx(zl,{scope:t,forceMount:n,children:c.Children.map(o,i=>g.jsx(X,{present:n||s.open,children:g.jsx(rt,{asChild:!0,container:r,children:i})}))})};Zr.displayName=En;var nt="DialogOverlay",Qr=c.forwardRef((e,t)=>{const n=qr(nt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=Q(nt,e.__scopeDialog);return s.modal?g.jsx(X,{present:o||s.open,children:g.jsx(Xl,{...r,ref:t})}):null});Qr.displayName=nt;var Yl=Ce("DialogOverlay.RemoveScroll"),Xl=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Q(nt,n);return g.jsx(Cn,{as:Yl,allowPinchZoom:!0,shards:[r.contentRef],children:g.jsx(I.div,{"data-state":Pn(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),me="DialogContent",Jr=c.forwardRef((e,t)=>{const n=qr(me,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=Q(me,e.__scopeDialog);return g.jsx(X,{present:o||s.open,children:s.modal?g.jsx(ql,{...r,ref:t}):g.jsx(Zl,{...r,ref:t})})});Jr.displayName=me;var ql=c.forwardRef((e,t)=>{const n=Q(me,e.__scopeDialog),o=c.useRef(null),r=$(t,n.contentRef,o);return c.useEffect(()=>{const s=o.current;if(s)return Gr(s)},[]),g.jsx(es,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:O(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:O(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:O(e.onFocusOutside,s=>s.preventDefault())})}),Zl=c.forwardRef((e,t)=>{const n=Q(me,e.__scopeDialog),o=c.useRef(!1),r=c.useRef(!1);return g.jsx(es,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),es=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...i}=e,a=Q(me,n),u=c.useRef(null),l=$(t,u);return Fr(),g.jsxs(g.Fragment,{children:[g.jsx(bn,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:g.jsx(Me,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Pn(a.open),...i,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(Ql,{titleId:a.titleId}),g.jsx(eu,{contentRef:u,descriptionId:a.descriptionId})]})]})}),Rn="DialogTitle",ts=c.forwardRef((e,t)=>
41{const{__scopeDialog:n,...o}=e,r=Q(Rn,n);return g.jsx(I.h2,{id:r.titleId,...o,ref:t})});ts.displayName=Rn;var ns="DialogDescription",os=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Q(ns,n);return g.jsx(I.p,{id:r.descriptionId,...o,ref:t})});os.displayName=ns;var rs="DialogClose",ss=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Q(rs,n);return g.jsx(I.button,{type:"button",...o,ref:t,onClick:O(e.onClick,()=>r.onOpenChange(!1))})});ss.displayName=rs;function Pn(e){return e?"open":"closed"}var is="DialogTitleWarning",[pd,as]=Xs(is,{contentName:me,titleName:Rn,docsSlug:"dialog"}),Ql=({titleId:e})=>{const t=as(is),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 42 43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 44 45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Jl="DialogDescriptionWarning",eu=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${as(Jl).contentName}}.`;return c.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},md=Yr,vd=Zr,hd=Qr,gd=Jr,yd=ts,wd=os,xd=ss,kt="rovingFocusGroup.onEntryFocus",tu={bubbles:!1,cancelable:!0},Fe="RovingFocusGroup",[qt,cs,nu]=ot(Fe),[ou,ls]=K(Fe,[nu]),[ru,su]=ou(Fe),us=c.forwardRef((e,t)=>g.jsx(qt.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(qt.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(iu,{...e,ref:t})})}));us.displayName=Fe;var iu=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...d}=e,h=c.useRef(null),v=$(t,h),x=vt(s),[p,m]=q({prop:i,defaultProp:a??null,onChange:u,caller:Fe}),[y,w]=c.useState(!1),b=G(l),C=cs(n),E=c.useRef(!1),[P,R]=c.useState(0);return c.useEffect(()=>{const A=h.current;if(A)return A.addEventListener(kt,b),()=>A.removeEventListener(kt,b)},[b]),g.jsx(ru,{scope:n,orientation:o,dir:x,loop:r,currentTabStopId:p,onItemFocus:c.useCallback(A=>m(A),[m]),onItemShiftTab:c.useCallback(()=>w(!0),[]),onFocusableItemAdd:c.useCallback(()=>R(A=>A+1),[]),onFocusableItemRemove:c.useCallback(()=>R(A=>A-1),[]),children:g.jsx(I.div,{tabIndex:y||P===0?-1:0,"data-orientation":o,...d,ref:v,style:{outline:"none",...e.style},onMouseDown:O(e.onMouseDown,()=>{E.current=!0}),onFocus:O(e.onFocus,A=>{const M=!E.current;if(A.target===A.currentTarget&&M&&!y){const N=new CustomEvent(kt,tu);if(A.currentTarget.dispatchEvent(N),!N.defaultPrevented){const D=C().filter(_=>_.focusable),k=D.find(_=>_.active),L=D.find(_=>_.id===p),F=[k,L,...D].filter(Boolean).map(_=>_.ref.current);ps(F,f)}}E.current=!1}),onBlur:O(e.onBlur,()=>w(!1))})})}),ds="RovingFocusGroupItem",fs=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:i,...a}=e,u=ce(),l=s||u,f=su(ds,n),d=f.currentTabStopId===l,h=cs(n),{onFocusableItemAdd:v,onFocusableItemRemove:x,currentTabStopId:p}=f;return c.useEffect(()=>{if(o)return v(),()=>x()},[o,v,x]),g.jsx(qt.ItemSlot,{scope:n,id:l,focusable:o,active:r,children:g.jsx(I.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...a,ref:t,onMouseDown:O(e.onMouseDown,m=>{o?f.onItemFocus(l):m.preventDefault()}),onFocus:O(e.onFocus,()=>f.onItemFocus(l)),onKeyDown:O(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){f.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=lu(m,f.orientation,f.dir);if(y!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let b=h().filter(C=>C.focusable).map(C=>C.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const C=b.indexOf(m.currentTarget);b=f.loop?uu(b,C+1):b.slice(C+1)}setTimeout(()=>ps(b))}}),children:typeof i=="function"?i({isCurrentTabStop:d,hasTabStop:p!=null}):i})})});fs.displayName=ds;var au={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function cu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function lu(e,t,n){const o=cu(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return au[o]}function ps(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function uu(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var du=us,fu=fs,Sn="Radio",[pu,ms]=K(Sn),[mu,vu]=pu(Sn),vs=c.forwardRef((e,t)=>
45{const{__scopeRadio:n,name:o,checked:r=!1,required:s,disabled:i,value:a="on",onCheck:u,form:l,...f}=e,[d,h]=c.useState(null),v=$(t,m=>h(m)),x=c.useRef(!1),p=d?l||!!d.closest("form"):!0;return g.jsxs(mu,{scope:n,checked:r,disabled:i,children:[g.jsx(I.button,{type:"button",role:"radio","aria-checked":r,"data-state":ws(r),"data-disabled":i?"":void 0,disabled:i,value:a,...f,ref:v,onClick:O(e.onClick,m=>{r||u==null||u(),p&&(x.current=m.isPropagationStopped(),x.current||m.stopPropagation())})}),p&&g.jsx(ys,{control:d,bubbles:!x.current,name:o,value:a,checked:r,required:s,disabled:i,form:l,style:{transform:"translateX(-100%)"}})]})});vs.displayName=Sn;var hs="RadioIndicator",gs=c.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:o,...r}=e,s=vu(hs,n);return g.jsx(X,{present:o||s.checked,children:g.jsx(I.span,{"data-state":ws(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:t})})});gs.displayName=hs;var hu="RadioBubbleInput",ys=c.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:o=!0,...r},s)=>{const i=c.useRef(null),a=$(i,s),u=pn(n),l=ut(t);return c.useEffect(()=>{const f=i.current;if(!f)return;const d=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(d,"checked").set;if(u!==n&&v){const x=new Event("click",{bubbles:o});v.call(f,n),f.dispatchEvent(x)}},[u,n,o]),g.jsx(I.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:a,style:{...r.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ys.displayName=hu;function ws(e){return e?"checked":"unchecked"}var gu=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ct="RadioGroup",[yu,bd]=K(Ct,[ls,ms]),xs=ls(),bs=ms(),[wu,xu]=yu(Ct),Cs=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:o,defaultValue:r,value:s,required:i=!1,disabled:a=!1,orientation:u,dir:l,loop:f=!0,onValueChange:d,...h}=e,v=xs(n),x=vt(l),[p,m]=q({prop:s,defaultProp:r??null,onChange:d,caller:Ct});return g.jsx(wu,{scope:n,name:o,required:i,disabled:a,value:p,onValueChange:m,children:g.jsx(du,{asChild:!0,...v,orientation:u,dir:x,loop:f,children:g.jsx(I.div,{role:"radiogroup","aria-required":i,"aria-orientation":u,"data-disabled":a?"":void 0,dir:x,...h,ref:t})})})});Cs.displayName=Ct;var Es="RadioGroupItem",Rs=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:o,...r}=e,s=xu(Es,n),i=s.disabled||o,a=xs(n),u=bs(n),l=c.useRef(null),f=$(t,l),d=s.value===r.value,h=c.useRef(!1);return c.useEffect(()=>{const v=p=>{gu.includes(p.key)&&(h.current=!0)},x=()=>h.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",x),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",x)}},[]),g.jsx(fu,{asChild:!0,...a,focusable:!i,active:d,children:g.jsx(vs,{disabled:i,required:s.required,
45checked:d,...u,...r,name:s.name,ref:f,onCheck:()=>s.onValueChange(r.value),onKeyDown:O(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:O(r.onFocus,()=>{var v;h.current&&((v=l.current)==null||v.click())})})})});Rs.displayName=Es;var bu="RadioGroupIndicator",Ps=c.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...o}=e,r=bs(n);return g.jsx(gs,{...r,...o,ref:t})});Ps.displayName=bu;var Cd=Cs,Ed=Rs,Rd=Ps,Et="Checkbox",[Cu,Pd]=K(Et),[Eu,An]=Cu(Et);function Ru(e){const{__scopeCheckbox:t,checked:n,children:o,defaultChecked:r,disabled:s,form:i,name:a,onCheckedChange:u,required:l,value:f="on",internal_do_not_use_render:d}=e,[h,v]=q({prop:n,defaultProp:r??!1,onChange:u,caller:Et}),[x,p]=c.useState(null),[m,y]=c.useState(null),w=c.useRef(!1),b=x?!!i||!!x.closest("form"):!0,C={checked:h,disabled:s,setChecked:v,control:x,setControl:p,name:a,form:i,value:f,hasConsumerStoppedPropagationRef:w,required:l,defaultChecked:le(r)?!1:r,isFormControl:b,bubbleInput:m,setBubbleInput:y};return g.jsx(Eu,{scope:t,...C,children:Au(d)?d(C):o})}var Ss="CheckboxTrigger",As=c.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...o},r)=>{const{control:s,value:i,disabled:a,checked:u,required:l,setControl:f,setChecked:d,hasConsumerStoppedPropagationRef:h,isFormControl:v,bubbleInput:x}=An(Ss,e),p=$(r,f),m=c.useRef(u);return c.useEffect(()=>{const y=s==null?void 0:s.form;if(y){const w=()=>d(m.current);return y.addEventListener("reset",w),()=>y.removeEventListener("reset",w)}},[s,d]),g.jsx(I.button,{type:"button",role:"checkbox","aria-checked":le(u)?"mixed":u,"aria-required":l,"data-state":Is(u),"data-disabled":a?"":void 0,disabled:a,value:i,...o,ref:p,onKeyDown:O(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:O(n,y=>{d(w=>le(w)?!0:!w),x&&v&&(h.current=y.isPropagationStopped(),h.current||y.stopPropagation())})})});As.displayName=Ss;var Pu=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:o,checked:r,defaultChecked:s,required:i,disabled:a,value:u,onCheckedChange:l,form:f,...d}=e;return g.jsx(Ru,{__scopeCheckbox:n,checked:r,defaultChecked:s,disabled:a,required:i,onCheckedChange:l,name:o,form:f,value:u,internal_do_not_use_render:({isFormControl:h})=>g.jsxs(g.Fragment,{children:[g.jsx(As,{...d,ref:t,__scopeCheckbox:n}),h&&g.jsx(_s,{__scopeCheckbox:n})]})})});Pu.displayName=Et;var Ts="CheckboxIndicator",Su=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:o,...r}=e,s=An(Ts,n);return g.jsx(X,{present:o||le(s.checked)||s.checked===!0,children:g.jsx(I.span,{"data-state":Is(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});Su.displayName=Ts;var Os="CheckboxBubbleInput",_s=c.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:o,hasConsumerStoppedPropagationRef:r,checked:s,defaultChecked:i,required:a,disabled:u,name:l,value:f,form:d,bubbleInput:h,setBubbleInput:v}=An(Os,e),x=$(n,v),p=pn(s),m=ut(o);c.useEffect(()=>{const w=h;if(!w)return;const b=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(b,"checked").set,P=!r.current;if(p!==s&&E){const R=new Event("click",{bubbles:P});w.indeterminate=le(s),E.call(w,le(s)?!1:s),w.dispatchEvent(R)}},[h,p,s,r]);const y=c.useRef(le(s)?!1:s);return g.jsx(I.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??y.current,required:a,disabled:u,name:l,value:f,form:d,...t,tabIndex:-1,ref:x,style:{...t.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});_s.displayName=Os;function Au(e){return typeof e=="function"}function le(e){return e==="indeterminate"}function Is(e){return le(e)?"indeterminate":e?"checked":"unchecked"}var Rt="Popover",[Ds,Sd]=K(Rt,[dt]),je=dt(),[Tu,fe]=Ds(Rt),Ns=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!1}=e,a=je(t),u=c.useRef(null),[l,f]=c.useState(!1),[d,h]=q({prop:o,defaultProp:r??!1,onChange:s,caller:Rt});return g.jsx(Yo,{...a,children:g.jsx(Tu,{scope:t,contentId:ce(),triggerRef:u,open:d,onOpenChange:h,onOpenToggle:c.useCallback(()=>h(v=>!v),[h]),hasCustomAnchor:l,onCustomAnchorAdd:c.useCallback(()=>f(!0),[]),onCustomAnchorRemove:c.useCallback(()=>f(!1),[]),modal:i,children:n})})};Ns.displayName=Rt;var Ms="PopoverAnchor",Ou=c.forwardRef((e,t)=>
45{const{__scopePopover:n,...o}=e,r=fe(Ms,n),s=je(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=r;return c.useEffect(()=>(i(),()=>a()),[i,a]),g.jsx(dn,{...s,...o,ref:t})});Ou.displayName=Ms;var ks="PopoverTrigger",Ls=c.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=fe(ks,n),s=je(n),i=$(t,r.triggerRef),a=g.jsx(I.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Vs(r.open),...o,ref:i,onClick:O(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:g.jsx(dn,{asChild:!0,...s,children:a})});Ls.displayName=ks;var Tn="PopoverPortal",[_u,Iu]=Ds(Tn,{forceMount:void 0}),Fs=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,s=fe(Tn,t);return g.jsx(_u,{scope:t,forceMount:n,children:g.jsx(X,{present:n||s.open,children:g.jsx(rt,{asChild:!0,container:r,children:o})})})};Fs.displayName=Tn;var Pe="PopoverContent",js=c.forwardRef((e,t)=>{const n=Iu(Pe,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,s=fe(Pe,e.__scopePopover);return g.jsx(X,{present:o||s.open,children:s.modal?g.jsx(Nu,{...r,ref:t}):g.jsx(Mu,{...r,ref:t})})});js.displayName=Pe;var Du=Ce("PopoverContent.RemoveScroll"),Nu=c.forwardRef((e,t)=>{const n=fe(Pe,e.__scopePopover),o=c.useRef(null),r=$(t,o),s=c.useRef(!1);return c.useEffect(()=>{const i=o.current;if(i)return Gr(i)},[]),g.jsx(Cn,{as:Du,allowPinchZoom:!0,children:g.jsx($s,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:O(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),s.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:O(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,l=a.button===2||u;s.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:O(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Mu=c.forwardRef((e,t)=>{const n=fe(Pe,e.__scopePopover),o=c.useRef(!1),r=c.useRef(!1);return g.jsx($s,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(o.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),$s=c.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:f,...d}=e,h=fe(Pe,n),v=je(n);return Fr(),g.jsx(bn,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:g.jsx(Me,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:g.jsx(Xo,{"data-state":Vs(h.open),role:"dialog",id:h.contentId,...v,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Bs="PopoverClose",ku=c.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=fe(Bs,n);return g.jsx(I.button,{type:"button",...o,ref:t,onClick:O(e.onClick,()=>r.onOpenChange(!1))})});ku.displayName=Bs;var Lu="PopoverArrow",Fu=c.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=je(n);return g.jsx(qo,{...r,...o,ref:t})});Fu.displayName=Lu;function Vs(e){return e?"open":"closed"}var Ad=Ns,Td=Ls,Od=Fs,_d=js;export{Gu as A,ad as B,zu as C,Uu as D,ld as H,Ed as I,hd as O,Vu as P,Hu as R,$u as S,Ku as T,Wu as V,Ju as a,Zu as b,Qu as c,qu as d,ed as e,nd as f,od as g,rd as h,sd as i,Cd as j,Rd as k,Pu as l,Su as m,vd as n,gd as o,xd as p,yd as q,wd as r,md as s,Od as t,_d as u,Ad as v,Td as w,cd as x,ud as y,dd 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.