vendor: 4,892 bytes, line 1
1import{r as s,j as y,e as T,R as pe,a as qe,b as Ze,s as Je}from"./react-vendor-DL_jcNr5.js";import{u as Qe,a as et,o as tt,s as nt,f as rt,b as ot,c as st,h as it,l as at}from"./floating-ui-Cvfw4c_J.js";function k(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function an(e,t){const n=s.createContext(t),r=i=>{const{children:c,...a}=i,u=s.useMemo(()=>a,Object.values(a));return y.jsx(n.Provider,{value:u,children:c})};r.displayName=e+"Provider";function o(i){const c=s.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function G(e,t=[]){let n=[];function r(i,c){const a=s.createContext(c),u=n.length;n=[...n,c];const l=p=>{const{scope:E,children:m,...x}=p,f=E?.[e]?.[u]||a,g=s.useMemo(()=>x,Object.values(x));return y.jsx(f.Provider,{value:g,children:m})};l.displayName=i+"Provider";function d(p,E){const m=E?.[e]?.[u]||a,x=s.useContext(m);if(x)return x;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[l,d]}const o=()=>{const i=n.map(c=>s.createContext(c));return function(a){const u=a?.[e]||i;return s.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[r,ct(o,...t)]}function ct(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const c=r.reduce((a,{useScope:u,scopeName:l})=>{const p=u(i)[`__scope${l}`];return{...a,...p}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function se(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function me(...e){return t=>{let n=!1;const r=e.map(o=>{const i=se(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():se(e[o],null)}}}}function R(...e){return s.useCallback(me(...e),e)}function H(e){const t=lt(e),n=s.forwardRef((r,o)=>{const{children:i,...c}=r,a=s.Children.toArray(i),u=a.find(ut);if(u){const l=u.props.children,d=a.map(p=>p===u?s.Children.count(l)>1?s.Children.only(null):s.isValidElement(l)?l.props.children:null:p);return y.jsx(t,{...c,ref:o,children:s.isValidElement(l)?s.cloneElement(l,void 0,d):null})}return y.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var cn=H("Slot");function lt(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const c=ft(o),a=dt(i,o.props);return o.type!==s.Fragment&&(a.ref=r?me(r,c):c),s.cloneElement(o,a)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ve=Symbol("radix.slottable");function ln(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ve,t}function ut(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ve}function dt(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function ft(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function un(e){const t=e+"CollectionProvider",[n,r]=G(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=f=>{const{scope:g,children:v}=f,h=T.useRef(null),b=T.useRef(new Map).current;return y.jsx(o,{scope:g,itemMap:b,collectionRef:h,children:v})};c.displayName=t;const a=e+"CollectionSlot",u=H(a),l=T.forwardRef((f,g)=>{const{scope:v,children:h}=f,b=i(a,v),C=R(g,b.collectionRef);return y.jsx(u,{ref:C,children:h})});l.displayName=a;const d=e+"CollectionItemSlot",p="data-radix-collection-item",E=H(d),m=T.forwardRef((f,g)=>{const{scope:v,children:h,...b}=f,C=T.useRef(null),A=R(g,C),S=i(d,v);return T.useEffect(()=>(S.itemMap.set(C,{ref:C,...b}),()=>void S.itemMap.delete(C))),y.jsx(E,{[p]:"",ref:A,children:h})});m.displayName=d;function x(f){const g=i(e+"CollectionConsumer",f);return T.useCallback(()=>{const h=g.collectionRef.current;if(!h)return[];const b=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((S,w)=>b.indexOf(S.ref.current)-b.indexOf(w.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:c,Slot:l,ItemSlot:m},x,r]}var N=globalThis?.document?s.useLayoutEffect:()=>{},pt=pe[" useId ".trim().toString()]||(()=>{}),mt=0;function vt(e){const[t,n]=s.useState(pt());return N(()=>{e||n(r=>r??String(mt++))},[e]),e||(t?`radix-${t}`:"")}var ht=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],P=ht.reduce((e,t)=>
vendor: 4,248 bytes, line 1
1{const n=H(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:c,...a}=o,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(u,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yt(e,t){e&&qe.flushSync(()=>e.dispatchEvent(t))}function _(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}var Et=pe[" useInsertionEffect ".trim().toString()]||N;function gt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,c]=bt({defaultProp:t,onChange:n}),a=e!==void 0,u=a?e:o;{const d=s.useRef(e!==void 0);s.useEffect(()=>{const p=d.current;if(p!==a){const E=p?"controlled":"uncontrolled",m=a?"controlled":"uncontrolled"}d.current=a},[a,r])}const l=s.useCallback(d=>{if(a){const p=Ct(d)?d(e):d;p!==e&&c.current?.(p)}else i(d)},[a,e,i,c]);return[u,l]}function bt({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return Et(()=>{i.current=t},[t]),s.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Ct(e){return typeof e=="function"}var xt=s.createContext(void 0);function dn(e){const t=s.useContext(xt);return e||t||"ltr"}function wt(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}var he=e=>{const{present:t,children:n}=e,r=Pt(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),i=R(r.ref,St(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:i}):null};he.displayName="Presence";function Pt(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),i=s.useRef("none"),c=e?"mounted":"unmounted",[a,u]=wt(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const l=W(r.current);i.current=a==="mounted"?l:"none"},[a]),N(()=>{const l=r.current,d=o.current;if(d!==e){const E=i.current,m=W(l);e?u("MOUNT"):m==="none"||l?.display==="none"?u("UNMOUNT"):u(d&&E!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),N(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,p=m=>{const f=W(r.current).includes(m.animationName);if(m.target===t&&f&&(u("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},E=m=>{m.target===t&&(i.current=W(r.current))};return t.addEventListener("animationstart",E),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",E),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:s.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function W(e){return e?.animationName||"none"}function St(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function fn(e){const t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function At(e){const[t,n]=s.useState(void 0);return N(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let c,a;if("borderBoxSize"in i){const u=i.borderBoxSize,l=Array.isArray(u)?u[0]:u;c=l.inlineSize,a=l.blockSize}else c=e.offsetWidth,a=e.offsetHeight;n({width:c,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function Rt(e,t=globalThis?.document){const n=_(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Nt="DismissableLayer",Y="dismissableLayer.update",Ot="dismissableLayer.pointerDownOutside",It="dismissableLayer.focusOutside",ie,ye=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ee=s.forwardRef((e,t)=>
vendor: 10,892 bytes, line 1
1{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:c,onDismiss:a,...u}=e,l=s.useContext(ye),[d,p]=s.useState(null),E=d?.ownerDocument??globalThis?.document,[,m]=s.useState({}),x=R(t,w=>p(w)),f=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=f.indexOf(g),h=d?f.indexOf(d):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,C=h>=v,A=Dt(w=>{const I=w.target,F=[...l.branches].some(M=>M.contains(I));!C||F||(o?.(w),c?.(w),w.defaultPrevented||a?.())},E),S=_t(w=>{const I=w.target;[...l.branches].some(M=>M.contains(I))||(i?.(w),c?.(w),w.defaultPrevented||a?.())},E);return Rt(w=>{h===l.layers.size-1&&(r?.(w),!w.defaultPrevented&&a&&(w.preventDefault(),a()))},E),s.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ie=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),ae(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=ie)}},[d,E,n,l]),s.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),ae())},[d,l]),s.useEffect(()=>{const w=()=>m({});return document.addEventListener(Y,w),()=>document.removeEventListener(Y,w)},[]),y.jsx(P.div,{...u,ref:x,style:{pointerEvents:b?C?"auto":"none":void 0,...e.style},onFocusCapture:k(e.onFocusCapture,S.onFocusCapture),onBlurCapture:k(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:k(e.onPointerDownCapture,A.onPointerDownCapture)})});Ee.displayName=Nt;var Tt="DismissableLayerBranch",ge=s.forwardRef((e,t)=>{const n=s.useContext(ye),r=s.useRef(null),o=R(t,r);return s.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),y.jsx(P.div,{...e,ref:o})});ge.displayName=Tt;function Dt(e,t=globalThis?.document){const n=_(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let u=function(){be(Ot,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _t(e,t=globalThis?.document){const n=_(e),r=s.useRef(!1);return s.useEffect(()=>{const o=i=>{i.target&&!r.current&&be(It,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ae(){const e=new CustomEvent(Y);document.dispatchEvent(e)}function be(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?yt(o,i):o.dispatchEvent(i)}var pn=Ee,mn=ge,z="focusScope.autoFocusOnMount",K="focusScope.autoFocusOnUnmount",ce={bubbles:!1,cancelable:!0},Mt="FocusScope",Lt=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...c}=e,[a,u]=s.useState(null),l=_(o),d=_(i),p=s.useRef(null),E=R(t,f=>u(f)),m=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let f=function(b){if(m.paused||!a)return;const C=b.target;a.contains(C)?p.current=C:O(p.current,{select:!0})},g=function(b){if(m.paused||!a)return;const C=b.relatedTarget;C!==null&&(a.contains(C)||O(p.current,{select:!0}))},v=function(b){if(document.activeElement===document.body)for(const A of b)A.removedNodes.length>0&&O(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",g);const h=new MutationObserver(v);return a&&h.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",g),h.disconnect()}}},[r,a,m.paused]),s.useEffect(()=>{if(a){ue.add(m);const f=document.activeElement;if(!a.contains(f)){const v=new CustomEvent(z,ce);a.addEventListener(z,l),a.dispatchEvent(v),v.defaultPrevented||(Ft(kt(Ce(a)),{select:!0}),document.activeElement===f&&O(a))}return()=>{a.removeEventListener(z,l),setTimeout(()=>{const v=new CustomEvent(K,ce);a.addEventListener(K,d),a.dispatchEvent(v),v.defaultPrevented||O(f??document.body,{select:!0}),a.removeEventListener(K,d),ue.remove(m)},0)}}},[a,l,d,m]);const x=s.useCallback(f=>{if(!n&&!r||m.paused)return;const g=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,v=document.activeElement;if(g&&v){const h=f.currentTarget,[b,C]=jt(h);b&&C?!f.shiftKey&&v===C?(f.preventDefault(),n&&O(b,{select:!0})):f.shiftKey&&v===b&&(f.preventDefault(),n&&O(C,{select:!0})):v===h&&f.preventDefault()}},[n,r,m.paused]);return y.jsx(P.div,{tabIndex:-1,...c,ref:E,onKeyDown:x})});Lt.displayName=Mt;function Ft(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(O(r,{select:t}),document.activeElement!==n)return}function jt(e){const t=Ce(e),n=le(t,e),r=le(t.reverse(),e);return[n,r]}function Ce(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function le(e,t){for(const n of e)if(!$t(n,{upTo:t}))return n}function $t(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 Ut(e){return e instanceof HTMLInputElement&&"select"in e}function O(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ut(e)&&t&&e.select()}}var ue=Wt();function Wt(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=de(e,t),e.unshift(t)},remove(t){e=de(e,t),e[0]?.resume()}}}function de(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function kt(e){return e.filter(t=>t.tagName!=="A")}var Ht="Portal",Bt=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=s.useState(!1);N(()=>i(!0),[]);const c=n||o&&globalThis?.document?.body;return c?Ze.createPortal(y.jsx(P.div,{...r,ref:t}),c):null});Bt.displayName=Ht;var V=0;function vn(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??fe()),document.body.insertAdjacentElement("beforeend",e[1]??fe()),V++,()=>{V===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),V--}},[])}function fe(){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 zt="Arrow",xe=s.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return y.jsx(P.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});xe.displayName=zt;var Kt=xe,X="Popper",[we,hn]=G(X),[Vt,Pe]=we(X),Se=e=>{const{__scopePopper:t,children:n}=e,[r,o]=s.useState(null);return y.jsx(Vt,{scope:t,anchor:r,onAnchorChange:o,children:n})};Se.displayName=X;var Ae="PopperAnchor",Re=s.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Pe(Ae,n),c=s.useRef(null),a=R(t,c);return s.useEffect(()=>{i.onAnchorChange(r?.current||c.current)}),r?null:y.jsx(P.div,{...o,ref:a})});Re.displayName=Ae;var q="PopperContent",[Yt,Gt]=we(q),Ne=s.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:c=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:E=!1,updatePositionStrategy:m="optimized",onPlaced:x,...f}=e,g=Pe(q,n),[v,h]=s.useState(null),b=R(t,L=>h(L)),[C,A]=s.useState(null),S=At(C),w=S?.width??0,I=S?.height??0,F=r+(i!=="center"?"-"+i:""),M=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},ee=Array.isArray(l)?l:[l],je=ee.length>0,j={padding:M,boundary:ee.filter(qt),altBoundary:je},{refs:$e,floatingStyles:te,placement:Ue,isPositioned:$,middlewareData:D}=Qe({strategy:"fixed",placement:F,whileElementsMounted:(...L)=>et(...L,{animationFrame:m==="always"}),elements:{reference:g.anchor},middleware:[tt({mainAxis:o+I,alignmentAxis:c}),u&&nt({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?at():void 0,...j}),u&&rt({...j}),ot({...j,apply:({elements:L,rects:oe,availableWidth:Ve,availableHeight:Ye})=>{const{width:Ge,height:Xe}=oe.reference,U=L.floating.style;U.setProperty("--radix-popper-available-width",`${Ve}px`),U.setProperty("--radix-popper-available-height",`${Ye}px`),U.setProperty("--radix-popper-anchor-width",`${Ge}px`),U.setProperty("--radix-popper-anchor-height",`${Xe}px`)}}),C&&st({element:C,padding:a}),Zt({arrowWidth:w,arrowHeight:I}),E&&it({strategy:"referenceHidden",...j})]}),[ne,We]=Te(Ue),re=_(x);N(()=>{$&&re?.()},[$,re]);const ke=D.arrow?.x,He=D.arrow?.y,Be=D.arrow?.centerOffset!==0,[ze,Ke]=s.useState();return N(()=>{v&&Ke(window.getComputedStyle(v).zIndex)},[v]),y.jsx("div",{ref:$e.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:$?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ze,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(Yt,{scope:n,placedSide:ne,onArrowChange:A,arrowX:ke,arrowY:He,shouldHideArrow:Be,children:y.jsx(P.div,{"data-side":ne,"data-align":We,...f,ref:b,style:{...f.style,animation:$?void 0:"none"}})})})});Ne.displayName=q;var Oe="PopperArrow",Xt={top:"bottom",right:"left",bottom:"top",left:"right"},Ie=s.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Gt(Oe,r),c=Xt[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:y.jsx(Kt,{...o,ref:n,style:{...o.style,display:"block"}})})});Ie.displayName=Oe;function qt(e){return e!==null}var Zt=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,c=o.arrow?.centerOffset!==0,a=c?0:e.arrowWidth,u=c?0:e.arrowHeight,[l,d]=Te(n),p={start:"0%",center:"50%",end:"100%"}[d],E=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+u/2;let x="",f="";return l==="bottom"?(x=c?p:`${E}px`,f=`${-u}
1px`):l==="top"?(x=c?p:`${E}px`,f=`${r.floating.height+u}px`):l==="right"?(x=`${-u}px`,f=c?p:`${m}px`):l==="left"&&(x=`${r.floating.width+u}px`,f=c?p:`${m}px`),{data:{x,y:f}}}});function Te(e){const[t,n="center"]=e.split("-");return[t,n]}var yn=Se,En=Re,gn=Ne,bn=Ie,B="Collapsible",[Jt,Cn]=G(B),[Qt,Z]=Jt(B),De=s.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:c,...a}=e,[u,l]=gt({prop:r,defaultProp:o??!1,onChange:c,caller:B});return y.jsx(Qt,{scope:n,disabled:i,contentId:vt(),open:u,onOpenToggle:s.useCallback(()=>l(d=>!d),[l]),children:y.jsx(P.div,{"data-state":Q(u),"data-disabled":i?"":void 0,...a,ref:t})})});De.displayName=B;var _e="CollapsibleTrigger",Me=s.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Z(_e,n);return y.jsx(P.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Q(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:k(e.onClick,o.onOpenToggle)})});Me.displayName=_e;var J="CollapsibleContent",Le=s.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Z(J,e.__scopeCollapsible);return y.jsx(he,{present:n||o.open,children:({present:i})=>y.jsx(en,{...r,ref:t,present:i})})});Le.displayName=J;var en=s.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,c=Z(J,n),[a,u]=s.useState(r),l=s.useRef(null),d=R(t,l),p=s.useRef(0),E=p.current,m=s.useRef(0),x=m.current,f=c.open||a,g=s.useRef(f),v=s.useRef(void 0);return s.useEffect(()=>{const h=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(h)},[]),N(()=>{const h=l.current;if(h){v.current=v.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const b=h.getBoundingClientRect();p.current=b.height,m.current=b.width,g.current||(h.style.transitionDuration=v.current.transitionDuration,h.style.animationName=v.current.animationName),u(r)}},[c.open,r]),y.jsx(P.div,{"data-state":Q(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!f,...i,ref:d,style:{"--radix-collapsible-content-height":E?`${E}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:f&&o})});function Q(e){return e?"open":"closed"}var xn=De,wn=Me,Pn=Le,tn=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"}),nn="VisuallyHidden",Fe=s.forwardRef((e,t)=>y.jsx(P.span,{...e,ref:t,style:{...tn,...e.style}}));Fe.displayName=nn;var Sn=Fe;function An(){return Je.useSyncExternalStore(rn,()=>!0,()=>!1)}function rn(){return()=>{}}export{En as A,Sn as B,Pn as C,Ee as D,An as E,Lt as F,mn as G,Fe as H,pn as I,P,xn as R,cn as S,wn as T,tn as V,G as a,Cn as b,un as c,R as d,dn as e,k as f,vt as g,he as h,vn as i,an as j,Bt as k,H as l,hn as m,gn as n,bn as o,yn as p,N as q,fn as r,_ as s,me as t,gt as u,yt as v,Me as w,Le as x,At as y,ln 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.