PageSourceSearch

https://phybench.cn/assets/ui-components.CW2CXeZY.js

js phybench.cn collected 2026-10-04 00:43:47 UTC 127,716 bytes, 45 lines download raw bytes

vendor: 17,790 bytes, line 1
1import{r as i,a as To,R as X,b as it,c as Ao}from"./antd.CvpsKluO.js";import{j as m}from"./r3f.DgDenwPD.js";function Zn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Fe(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Zn(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():Zn(e[r],null)}}}}function D(...e){return i.useCallback(Fe(...e),e)}function Ge(e){const t=Ti(e),n=i.forwardRef((o,r)=>{const{children:s,...a}=o,c=i.Children.toArray(s),l=c.find(Mi);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var lf=Ge("Slot");function Ti(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n,a=i.isValidElement(r)?Oi(r):void 0,c=D(a,o);if(i.isValidElement(r)){const l=Ii(s,r.props);return r.type!==i.Fragment&&(l.ref=c),i.cloneElement(r,l)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Mo=Symbol("radix.slottable");function Ai(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Mo,t}function Mi(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mo}function Ii(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]=(...c)=>{const l=s(...c);return r(...c),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Oi(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 T(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 _i(e,t){const n=i.createContext(t),o=s=>{const{children:a,...c}=s,l=i.useMemo(()=>c,Object.values(c));return m.jsx(n.Provider,{value:l,children:a})};o.displayName=e+"Provider";function r(s){const a=i.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function pe(e,t=[]){let n=[];function o(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];const u=f=>{var y;const{scope:h,children:g,...C}=f,p=((y=h==null?void 0:h[e])==null?void 0:y[l])||c,v=i.useMemo(()=>C,Object.values(C));return m.jsx(p.Provider,{value:v,children:g})};u.displayName=s+"Provider";function d(f,h){var p;const g=((p=h==null?void 0:h[e])==null?void 0:p[l])||c,C=i.useContext(g);if(C)return C;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const r=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[o,Ni(r,...t)]}function Ni(...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 a=o.reduce((c,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...c,...f}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var q=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},Di=To[" useInsertionEffect ".trim().toString()]||q;function Ye({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,a]=Li({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:r;{const d=i.useRef(e!==void 0);i.useEffect(()=>{const f=d.current;f!==c&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${c?"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.`),d.current=c},[c,o])}const u=i.useCallback(d=>{var f;if(c){const h=$i(d)?d(e):d;h!==e&&((f=a.current)==null||f.call(a,h))}else s(d)},[c,e,s,a]);return[l,u]}function Li({defaultProp:e,onChange:t}){const[n,o]=i.useState(e),r=i.useRef(n),s=i.useRef(t);return Di(()=>{s.current=t},[t]),i.useEffect(()=>{var a;r.current!==n&&((a=s.current)==null||a.call(s,n),r.current=n)},[n,r]),[n,o,s]}function $i(e){return typeof e=="function"}function ji(e){const t=Fi(e),n=i.forwardRef((o,r)=>{const{children:s,...a}=o,c=i.Children.toArray(s),l=c.find(Wi);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function Fi(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n;if(i.isValidElement(r)){const a=Hi(r),c=Bi(s,r.props);return r.type!==i.Fragment&&(c.ref=o?Fe(o,a):a),i.cloneElement(r,c)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ki=Symbol("radix.slottable");function Wi(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ki}function Bi(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]=(...c)=>{s(...c),r(...c)}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Hi(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 Vi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ui=Vi.reduce((e,t)=>{const n=ji(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:a,...c}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Ct(e){const t=Ki(e),n=i.forwardRef((o,r)=>{const{children:s,...a}=o,c=i.Children.toArray(s),l=c.find(Yi);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function Ki(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n;if(i.isValidElement(r)){const a=Xi(r),c=zi(s,r.props);return r.type!==i.Fragment&&(c.ref=o?Fe(o,a):a),i.cloneElement(r,c)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gi=Symbol("radix.slottable");function Yi(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gi}function zi(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]=(...c)=>{s(...c),r(...c)}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Xi(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 Zi(e){const t=e+"CollectionProvider",[n,o]=pe(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:v,children:y}=p,w=X.useRef(null),x=X.useRef(new Map).current;return m.jsx(r,{scope:v,itemMap:x,collectionRef:w,children:y})};a.displayName=t;const c=e+"CollectionSlot",l=Ct(c),u=X.forwardRef((p,v)=>{const{scope:y,children:w}=p,x=s(c,y),E=D(v,x.collectionRef);return m.jsx(l,{ref:E,children:w})});u.displayName=c;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=Ct(d),g=X.forwardRef((p,v)=>{const{scope:y,children:w,...x}=p,E=X.useRef(null),S=D(v,E),R=s(d,y);return X.useEffect(()=>(R.itemMap.set(E,{ref:E,...x}),()=>void R.itemMap.delete(E))),m.jsx(h,{[f]:"",ref:S,children:w})});g.displayName=d;function C(p){const v=s(e+"CollectionConsumer",p);return X.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((R,b)=>x.indexOf(R.ref.current)-x.indexOf(b.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},C,o]}var qi=i.createContext(void 0);function En(e){const t=i.useContext(qi);return e||t||"ltr"}var Qi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ce=Qi.reduce((e,t)=>{const n=Ct(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:a,...c}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Io(e,t){e&&it.flushSync(()=>e.dispatchEvent(t))}function ee(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Oo(e,t=globalThis==null?void 0:globalThis.document){const n=ee(e);i.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 Ji="DismissableLayer",cn="dismissableLayer.update",ec="dismissableLayer.pointerDownOutside",tc="dismissableLayer.focusOutside",qn,_o=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),No=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=i.useContext(_o),[d,f]=i.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=i.useState({}),C=D(t,b=>f(b)),p=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),w=d?p.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,S=rc(b=>{const A=b.target,N=[...u.branches].some(_=>_.contains(A));!E||N||(r==null||r(b),a==null||a(b),b.defaultPrevented||c==null||c())},h),R=sc(b=>{const A=b.target;[...u.branches].some(_=>_.contains(A))||(s==null||s(b),a==null||a(b),b.defaultPrevented||c==null||c())},h);return Oo(b=>{w===u.layers.size-1&&(o==null||o(b),!b.defaultPrevented&&c&&(b.preventDefault(),c()))},h),i.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qn=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Qn(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=qn)}},[d,h,n,u]),i.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Qn())},[d,u]),i.useEffect(()=>{const b=()=>g({});return document.addEventListener(cn,b),()=>document.removeEventListener(cn,b)},[]),m.jsx(ce.div,{...l,ref:C,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:T(e.onFocusCapture,R.onFocusCapture),onBlurCapture:T(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:T(e.onPointerDownCapture,S.onPointerDownCapture)})});No.displayName=Ji;var nc="DismissableLayerBranch",oc=i.forwardRef((e,t)=>{const n=i.useContext(_o),o=i.useRef(null),r=D(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),m.jsx(ce.div,{...e,ref:r})});oc.displayName=nc;function rc(e,t=globalThis==null?void 0:globalThis.document){const n=ee(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let l=function(){Do(ec,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function sc(e,t=globalThis==null?void 0:globalThis.document){const n=ee(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&Do(tc,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 Qn(){const e=new CustomEvent(cn);document.dispatchEvent(e)}function Do(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?Io(r,s):r.dispatchEvent(s)}var zt=0;function bn(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Jn()),document.body.insertAdjacentElement("beforeend",e[1]??Jn()),zt++,()=>{zt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zt--}},[])}function Jn(){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 Xt="focusScope.autoFocusOnMount",Zt="focusScope.autoFocusOnUnmount",eo={bubbles:!1,cancelable:!0},ic="FocusScope",Lo=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[c,l]=i.useState(null),u=ee(r),d=ee(s),f=i.useRef(null),h=D(t,p=>l(p)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let p=function(x){if(g.paused||!c)return;const E=x.target;c.contains(E)?f.current=E:Se(f.current,{select:!0})},v=function(x){if(g.paused||!c)return;const E=x.relatedTarget;E!==null&&(c.contains(E)||Se(f.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Se(c)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const w=new MutationObserver(y);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),w.disconnect()}}},[o,c,g.paused]),i.useEffect(()=>{if(c){no.add(g);const p=document.activeElement;if(!c.contains(p)){const y=new CustomEvent(Xt,eo);c.addEventListener(Xt,u),c.dispatchEvent(y),y.defaultPrevented||(cc(fc($o(c)),{select:!0}),document.activeElement===p&&Se(c))}return()=>{c.removeEventListener(Xt,u),setTimeout(()=>{const y=new CustomEvent(Zt,eo);c.addEventListener(Zt,d),c.dispatchEvent(y),y.defaultPrevented||Se(p??document.body,{select:!0}),c.removeEventListener(Zt,d),no.remove(g)},0)}}},[c,u,d,g]);const C=i.useCallback(p=>{if(!n&&!o||g.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const w=p.currentTarget,[x,E]=ac(w);x&&E?!p.shiftKey&&y===E?(p.preventDefault(),n&&Se(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),n&&Se(E,{select:!0})):y===w&&p.preventDefault()}},[n,o,g.paused]);return m.jsx(ce.div,{tabIndex:-1,...a,ref:h,onKeyDown:C})});Lo.displayName=ic;function cc(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Se(o,{select:t}),document.activeElement!==n)return}function ac(e){const t=$o(e),n=to(t,e),o=to(t.reverse(),e);return[n,o]}function $o(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 to(e,t){for(const n of e)if(!lc(n,{upTo:t}))return n}function lc(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 uc(e){return e instanceof HTMLInputElement&&"select"in e}function Se(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&uc(e)&&t&&e.select()}}var no=dc();function dc(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=oo(e,t),e.unshift(t)},remove(t){var n;e=oo(e,t),(n=e[0])==null||n.resume()}}}function oo(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function fc(e){return e.filter(t=>t.tagName!=="A")}var pc=To[" useId ".trim().toString()]||(()=>{}),mc=0;function ve(e){const[t,n]=i.useState(pc());return q(()=>{n(o=>o??String(mc++))},[e]),e||(t?`radix-${t}`:"")}const hc=["top","right","bottom","left"],Pe=Math.min,re=Math.max,Et=Math.round,ft=Math.floor,ge=e=>({x:e,y:e}),vc={left:"right",right:"left",bottom:"top",top:"bottom"},gc={start:"end",end:"start"};function an(e,t,n){return re(e,Pe(t,n))}function Ee(e,t){return typeof e=="function"?e(t):e}function be(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function Sn(e){return e==="x"?"y":"x"}function Rn(e){return e==="y"?"height":"width"}function Te(e){return["top","bottom"].includes(be(e))?"y":"x"}function Pn(e){return Sn(Te(e))}function yc(e,t,n){n===void 0&&(n=!1);const o=Ze(e),r=Pn(e),s=Rn(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>
vendor: 4,487 bytes, line 1
1t.floating[s]&&(a=bt(a)),[a,bt(a)]}function wc(e){const t=bt(e);return[ln(e),t,ln(t)]}function ln(e){return e.replace(/start|end/g,t=>gc[t])}function xc(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:a;default:return[]}}function Cc(e,t,n,o){const r=Ze(e);let s=xc(be(e),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),t&&(s=s.concat(s.map(ln)))),s}function bt(e){return e.replace(/left|right|bottom|top/g,t=>vc[t])}function Ec(e){return{top:0,right:0,bottom:0,left:0,...e}}function jo(e){return typeof e!="number"?Ec(e):{top:e,right:e,bottom:e,left:e}}function St(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 ro(e,t,n){let{reference:o,floating:r}=e;const s=Te(t),a=Pn(t),c=Rn(a),l=be(t),u=s==="y",d=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,h=o[c]/2-r[c]/2;let g;switch(l){case"top":g={x:d,y:o.y-r.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:f};break;case"left":g={x:o.x-r.width,y:f};break;default:g={x:o.x,y:o.y}}switch(Ze(t)){case"start":g[a]-=h*(n&&u?-1:1);break;case"end":g[a]+=h*(n&&u?-1:1);break}return g}const bc=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=ro(u,o,l),h=o,g={},C=0;for(let p=0;p<c.length;p++){const{name:v,fn:y}=c[p],{x:w,y:x,data:E,reset:S}=await y({x:d,y:f,initialPlacement:o,placement:h,strategy:r,middlewareData:g,rects:u,platform:a,elements:{reference:e,floating:t}});d=w??d,f=x??f,g={...g,[v]:{...g[v],...E}},S&&C<=50&&(C++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(u=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:d,y:f}=ro(u,h,l)),p=-1)}return{x:d,y:f,placement:h,strategy:r,middlewareData:g}};async function tt(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:a,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=Ee(t,e),C=jo(g),v=c[h?f==="floating"?"reference":"floating":f],y=St(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:d,strategy:l})),w=f==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),E=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},S=St(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-S.top+C.top)/E.y,bottom:(S.bottom-y.bottom+C.bottom)/E.y,left:(y.left-S.left+C.left)/E.x,right:(S.right-y.right+C.right)/E.x}}const Sc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:a,elements:c,middlewareData:l}=t,{element:u,padding:d=0}=Ee(e,t)||{};if(u==null)return{};const f=jo(d),h={x:n,y:o},g=Pn(r),C=Rn(g),p=await a.getDimensions(u),v=g==="y",y=v?"top":"left",w=v?"bottom":"right",x=v?"clientHeight":"clientWidth",E=s.reference[C]+s.reference[g]-h[g]-s.floating[C],S=h[g]-s.reference[g],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let b=R?R[x]:0;(!b||!await(a.isElement==null?void 0:a.isElement(R)))&&(b=c.floating[x]||s.floating[C]);const A=E/2-S/2,N=b/2-p[C]/2-1,_=Pe(f[y],N),F=Pe(f[w],N),k=_,L=b-p[C]-F,$=b/2-p[C]/2+A,U=an(k,$,L),O=!l.arrow&&Ze(r)!=null&&$!==U&&s.reference[C]/2-($<k?_:F)-p[C]/2<0,j=O?$<k?$-k:$-L:0;return{[g]:h[g]+j,data:{[g]:U,centerOffset:$-U-j,...O&&{alignmentOffset:j}},reset:O}}}),Rc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:p=!0,...v}=Ee(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=be(r),w=Te(c),x=be(c)===c,E=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=h||(x||!p?[bt(c)]:wc(c)),R=C!=="none";!h&&R&&S.push(...Cc(c,p,C,E));
vendor: 6,637 bytes, line 1
1const b=[c,...S],A=await tt(t,v),N=[];let _=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&N.push(A[y]),f){const $=yc(r,a,E);N.push(A[$[0]],A[$[1]])}if(_=[..._,{placement:r,overflows:N}],!N.every($=>$<=0)){var F,k;const $=(((F=s.flip)==null?void 0:F.index)||0)+1,U=b[$];if(U)return{data:{index:$,overflows:_},reset:{placement:U}};let O=(k=_.filter(j=>j.overflows[0]<=0).sort((j,M)=>j.overflows[1]-M.overflows[1])[0])==null?void 0:k.placement;if(!O)switch(g){case"bestFit":{var L;const j=(L=_.filter(M=>{if(R){const P=Te(M.placement);return P===w||P==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(P=>P>0).reduce((P,K)=>P+K,0)]).sort((M,P)=>M[1]-P[1])[0])==null?void 0:L[0];j&&(O=j);break}case"initialPlacement":O=c;break}if(r!==O)return{reset:{placement:O}}}return{}}}};function so(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function io(e){return hc.some(t=>e[t]>=0)}const Pc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Ee(e,t);switch(o){case"referenceHidden":{const s=await tt(t,{...r,elementContext:"reference"}),a=so(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:io(a)}}}case"escaped":{const s=await tt(t,{...r,altBoundary:!0}),a=so(s,n.floating);return{data:{escapedOffsets:a,escaped:io(a)}}}default:return{}}}}};async function Tc(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=be(n),c=Ze(n),l=Te(n)==="y",u=["left","top"].includes(a)?-1:1,d=s&&l?-1:1,f=Ee(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:C}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof C=="number"&&(g=c==="end"?C*-1:C),l?{x:g*d,y:h*u}:{x:h*u,y:g*d}}const Ac=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:a,middlewareData:c}=t,l=await Tc(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:a}}}}},Mc=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:a=!1,limiter:c={fn:v=>{let{x:y,y:w}=v;return{x:y,y:w}}},...l}=Ee(e,t),u={x:n,y:o},d=await tt(t,l),f=Te(be(r)),h=Sn(f);let g=u[h],C=u[f];if(s){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=g+d[v],x=g-d[y];g=an(w,g,x)}if(a){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=C+d[v],x=C-d[y];C=an(w,C,x)}const p=c.fn({...t,[h]:g,[f]:C});return{...p,data:{x:p.x-n,y:p.y-o,enabled:{[h]:s,[f]:a}}}}}},Ic=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=Ee(e,t),d={x:n,y:o},f=Te(r),h=Sn(f);let g=d[h],C=d[f];const p=Ee(c,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const x=h==="y"?"height":"width",E=s.reference[h]-s.floating[x]+v.mainAxis,S=s.reference[h]+s.reference[x]-v.mainAxis;g<E?g=E:g>S&&(g=S)}if(u){var y,w;const x=h==="y"?"width":"height",E=["top","left"].includes(be(r)),S=s.reference[f]-s.floating[x]+(E&&((y=a.offset)==null?void 0:y[f])||0)+(E?0:v.crossAxis),R=s.reference[f]+s.reference[x]+(E?0:((w=a.offset)==null?void 0:w[f])||0)-(E?v.crossAxis:0);C<S?C=S:C>R&&(C=R)}return{[h]:g,[f]:C}}}},Oc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:a,elements:c}=t,{apply:l=()=>{},...u}=Ee(e,t),d=await tt(t,u),f=be(r),h=Ze(r),g=Te(r)==="y",{width:C,height:p}=s.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=h===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(y=f,v=h==="end"?"top":"bottom");const w=p-d.top-d.bottom,x=C-d.left-d.right,E=Pe(p-d[v],w),S=Pe(C-d[y],x),R=!t.middlewareData.shift;let b=E,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=x),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(b=w),R&&!h){const _=re(d.left,0),F=re(d.right,0),k=re(d.top,0),L=re(d.bottom,0);g?A=C-2*(_!==0||F!==0?_+F:re(d.left,d.right)):b=p-2*(k!==0||L!==0?k+L:re(d.top,d.bottom))}await l({...t,availableWidth:A,availableHeight:b});const N=await a.getDimensions(c.floating);return C!==N.width||p!==N.height?{reset:{rects:!0}}:{}}}};function It(){return typeof window<"u"}function qe(e){return Fo(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(Fo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fo(e){return It()?e instanceof Node||e instanceof se(e).Node:!1}function de(e){return It()?e instanceof Element||e instanceof se(e).Element:!1}function ye(e){return It()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function co(e){return!It()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function ct(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function _c(e){return["table","td","th"].includes(qe(e))}function Ot(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Tn(e){const t=An(),n=de(e)?fe(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Nc(e){let t=Ae(e);for(;ye(t)&&!ze(t);){if(Tn(t))return t;if(Ot(t))return null;t=Ae(t)}return null}function An(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ze(e){return["html","body","#document"].includes(qe(e))}function fe(e){return se(e).getComputedStyle(e)}function _t(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||co(e)&&e.host||we(e);return co(t)?t.host:t}function ko(e){const t=Ae(e);return ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&ct(t)?t:ko(t)}function nt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ko(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),a=se(r);if(s){const c=un(a);
vendor: 5,367 bytes, line 1
1return t.concat(a,a.visualViewport||[],ct(r)?r:[],c&&n?nt(c):[])}return t.concat(r,nt(r,[],n))}function un(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wo(e){const t=fe(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ye(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,c=Et(n)!==s||Et(o)!==a;return c&&(n=s,o=a),{width:n,height:o,$:c}}function Mn(e){return de(e)?e:e.contextElement}function Ue(e){const t=Mn(e);if(!ye(t))return ge(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Wo(t);let a=(s?Et(n.width):n.width)/o,c=(s?Et(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const Dc=ge(0);function Bo(e){const t=se(e);return!An()||!t.visualViewport?Dc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Lc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==se(e)?!1:t}function De(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Mn(e);let a=ge(1);t&&(o?de(o)&&(a=Ue(o)):a=Ue(e));const c=Lc(s,n,o)?Bo(s):ge(0);let l=(r.left+c.x)/a.x,u=(r.top+c.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(s){const h=se(s),g=o&&de(o)?se(o):o;let C=h,p=un(C);for(;p&&o&&g!==C;){const v=Ue(p),y=p.getBoundingClientRect(),w=fe(p),x=y.left+(p.clientLeft+parseFloat(w.paddingLeft))*v.x,E=y.top+(p.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,f*=v.y,l+=x,u+=E,C=se(p),p=un(C)}}return St({width:d,height:f,x:l,y:u})}function In(e,t){const n=_t(e).scrollLeft;return t?t.left+n:De(we(e)).left+n}function Ho(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:In(e,o)),s=o.top+t.scrollTop;return{x:r,y:s}}function $c(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",a=we(o),c=t?Ot(t.floating):!1;if(o===a||c&&s)return n;let l={scrollLeft:0,scrollTop:0},u=ge(1);const d=ge(0),f=ye(o);if((f||!f&&!s)&&((qe(o)!=="body"||ct(a))&&(l=_t(o)),ye(o))){const g=De(o);u=Ue(o),d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}const h=a&&!f&&!s?Ho(a,l,!0):ge(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-l.scrollTop*u.y+d.y+h.y}}function jc(e){return Array.from(e.getClientRects())}function Fc(e){const t=we(e),n=_t(e),o=e.ownerDocument.body,r=re(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=re(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+In(e);const c=-n.scrollTop;return fe(o).direction==="rtl"&&(a+=re(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:c}}function kc(e,t){const n=se(e),o=we(e),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,c=0,l=0;if(r){s=r.width,a=r.height;const u=An();(!u||u&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}return{width:s,height:a,x:c,y:l}}function Wc(e,t){const n=De(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=ye(e)?Ue(e):ge(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:a,height:c,x:l,y:u}}function ao(e,t,n){let o;if(t==="viewport")o=kc(e,n);else if(t==="document")o=Fc(we(e));else if(de(t))o=Wc(t,n);else{const r=Bo(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return St(o)}function Vo(e,t){const n=Ae(e);return n===t||!de(n)||ze(n)?!1:fe(n).position==="fixed"||Vo(n,t)}function Bc(e,t){const n=t.get(e);if(n)return n;let o=nt(e,[],!1).filter(c=>de(c)&&qe(c)!=="body"),r=null;const s=fe(e).position==="fixed";let a=s?Ae(e):e;for(;de(a)&&!ze(a);){const c=fe(a),l=Tn(a);!l&&c.position==="fixed"&&(r=null),(s?!l&&!r:!l&&c.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ct(a)&&!l&&Vo(e,a))?o=o.filter(d=>d!==a):r=c,a=Ae(a)}return t.set(e,o),o}function Hc(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?Ot(t)?[]:Bc(t,this._c):[].concat(n),o],c=a[0],l=a.reduce((u,d)=>{const f=ao(t,d,r);return u.top=re(f.top,u.top),u.right=Pe(f.right,u.right),u.bottom=Pe(f.bottom,u.bottom),u.left=re(f.left,u.left),u},ao(t,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Vc(e){const{width:t,height:n}=Wo(e);return{width:t,height:n}}function Uc(e,t,n){const o=ye(t),r=we(t),s=n==="fixed",a=De(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=ge(0);if(o||!o&&!s)if((qe(t)!=="body"||ct(r))&&(c=_t(t)),o){const h=De(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else r&&(l.x=In(r));const u=r&&!o&&!s?Ho(r,c):ge(0),d=a.left+c.scrollLeft-l.x-u.x,f=a.top+c.scrollTop-l.y-u.y;return{x:d,y:f,width:a.width,height:a.height}}function qt(e){return fe(e).position==="static"}function lo(e,t){if(!ye(e)||fe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return we(e)===n&&(n=n.ownerDocument.body),n}function Uo(e,t){const n=se(e);if(Ot(e))return n;if(!ye(e)){let r=Ae(e);for(;r&&!ze(r);){if(de(r)&&!qt(r))return r;r=Ae(r)}return n}let o=lo(e,t);for(;o&&_c(o)&&qt(o);)o=lo(o,t);return o&&ze(o)&&qt(o)&&!Tn(o)?n:o||Nc(e)||n}const Kc=async function(e){const t=this.getOffsetParent||Uo,n=this.getDimensions,o=await n(e.floating);return{reference:Uc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Gc(e){return fe(e).direction==="rtl"}const Yc={convertOffsetParentRelativeRectToViewportRelativeRect:$c,getDocumentElement:we,getClippingRect:Hc,getOffsetParent:Uo,getElementRects:Kc,getClientRects:jc,getDimensions:Vc,get
vendor: 18,206 bytes, line 1
1Scale:Ue,isElement:de,isRTL:Gc};function Ko(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function zc(e,t){let n=null,o;const r=we(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function a(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:g}=u;if(c||t(),!h||!g)return;const C=ft(f),p=ft(r.clientWidth-(d+h)),v=ft(r.clientHeight-(f+g)),y=ft(d),x={rootMargin:-C+"px "+-p+"px "+-v+"px "+-y+"px",threshold:re(0,Pe(1,l))||1};let E=!0;function S(R){const b=R[0].intersectionRatio;if(b!==l){if(!E)return a();b?a(!1,b):o=setTimeout(()=>{a(!1,1e-7)},1e3)}b===1&&!Ko(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(S,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return a(!0),s}function Go(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Mn(e),d=r||s?[...u?nt(u):[],...nt(t)]:[];d.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const f=u&&c?zc(u,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let C,p=l?De(e):null;l&&v();function v(){const y=De(e);p&&!Ko(p,y)&&n(),p=y,C=requestAnimationFrame(v)}return n(),()=>{var y;d.forEach(w=>{r&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),f==null||f(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(C)}}const Xc=Ac,Zc=Mc,qc=Rc,Qc=Oc,Jc=Pc,uo=Sc,ea=Ic,ta=(e,t,n)=>{const o=new Map,r={platform:Yc,...n},s={...r.platform,_c:o};return bc(e,t,{...r,platform:s})};var yt=typeof document<"u"?i.useLayoutEffect:i.useEffect;function Rt(e,t){if(e===t)return!0;if(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(!Rt(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)&&!Rt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Yo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fo(e,t){const n=Yo(e);return Math.round(t*n)/n}function Qt(e){const t=i.useRef(e);return yt(()=>{t.current=e}),t}function zo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,f]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=i.useState(o);Rt(h,o)||g(o);const[C,p]=i.useState(null),[v,y]=i.useState(null),w=i.useCallback(M=>{M!==R.current&&(R.current=M,p(M))},[]),x=i.useCallback(M=>{M!==b.current&&(b.current=M,y(M))},[]),E=s||C,S=a||v,R=i.useRef(null),b=i.useRef(null),A=i.useRef(d),N=l!=null,_=Qt(l),F=Qt(r),k=Qt(u),L=i.useCallback(()=>{if(!R.current||!b.current)return;const M={placement:t,strategy:n,middleware:h};F.current&&(M.platform=F.current),ta(R.current,b.current,M).then(P=>{const K={...P,isPositioned:k.current!==!1};$.current&&!Rt(A.current,K)&&(A.current=K,it.flushSync(()=>{f(K)}))})},[h,t,n,F,k]);yt(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[u]);const $=i.useRef(!1);yt(()=>($.current=!0,()=>{$.current=!1}),[]),yt(()=>{if(E&&(R.current=E),S&&(b.current=S),E&&S){if(_.current)return _.current(E,S,L);L()}},[E,S,L,_,N]);const U=i.useMemo(()=>({reference:R,floating:b,setReference:w,setFloating:x}),[w,x]),O=i.useMemo(()=>({reference:E,floating:S}),[E,S]),j=i.useMemo(()=>{const M={position:n,left:0,top:0};if(!O.floating)return M;const P=fo(O.floating,d.x),K=fo(O.floating,d.y);return c?{...M,transform:"translate("+P+"px, "+K+"px)",...Yo(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:K}},[n,c,O.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:L,refs:U,elements:O,floatingStyles:j}),[d,L,U,O,j])}const na=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?uo({element:o.current,padding:r}).fn(n):{}:o?uo({element:o,padding:r}).fn(n):{}}}},Xo=(e,t)=>({...Xc(e),options:[e,t]}),Zo=(e,t)=>({...Zc(e),options:[e,t]}),qo=(e,t)=>({...ea(e),options:[e,t]}),Qo=(e,t)=>({...qc(e),options:[e,t]}),Jo=(e,t)=>({...Qc(e),options:[e,t]}),er=(e,t)=>({...Jc(e),options:[e,t]}),tr=(e,t)=>({...na(e),options:[e,t]});var oa="Arrow",nr=i.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return m.jsx(ce.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});nr.displayName=oa;var ra=nr;function or(e){const[t,n]=i.useState(void 0);return q(()=>{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 a,c;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var On="Popper",[rr,sr]=pe(On),[sa,ir]=rr(On),cr=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return m.jsx(sa,{scope:t,anchor:o,onAnchorChange:r,children:n})};cr.displayName=On;var ar="PopperAnchor",lr=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=ir(ar,n),a=i.useRef(null),c=D(t,a);return i.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||a.current)}),o?null:m.jsx(ce.div,{...r,ref:c})});lr.displayName=ar;var _n="PopperContent",[ia,ca]=rr(_n),ur=i.forwardRef((e,t)=>{var I,B,G,W,H,V;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:C,...p}=e,v=ir(_n,n),[y,w]=i.useState(null),x=D(t,Z=>w(Z)),[E,S]=i.useState(null),R=or(E),b=(R==null?void 0:R.width)??0,A=(R==null?void 0:R.height)??0,N=o+(s!=="center"?"-"+s:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},F=Array.isArray(u)?u:[u],k=F.length>0,L={padding:_,boundary:F.filter(la),altBoundary:k},{refs:$,floatingStyles:U,placement:O,isPositioned:j,middlewareData:M}=zo({strategy:"fixed",placement:N,whileElementsMounted:(...Z)=>Go(...Z,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[Xo({mainAxis:r+A,alignmentAxis:a}),l&&Zo({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?qo():void 0,...L}),l&&Qo({...L}),Jo({...L,apply:({elements:Z,rects:oe,availableWidth:Oe,availableHeight:_e})=>{const{width:Ne,height:Yt}=oe.reference,Ce=Z.floating.style;Ce.setProperty("--radix-popper-available-width",`${Oe}px`),Ce.setProperty("--radix-popper-available-height",`${_e}px`),Ce.setProperty("--radix-popper-anchor-width",`${Ne}px`),Ce.setProperty("--radix-popper-anchor-height",`${Yt}px`)}}),E&&tr({element:E,padding:c}),ua({arrowWidth:b,arrowHeight:A}),h&&er({strategy:"referenceHidden",...L})]}),[P,K]=pr(O),z=ee(C);q(()=>{j&&(z==null||z())},[j,z]);const Q=(I=M.arrow)==null?void 0:I.x,ae=(B=M.arrow)==null?void 0:B.y,ne=((G=M.arrow)==null?void 0:G.centerOffset)!==0,[le,J]=i.useState();return q(()=>{y&&J(window.getComputedStyle(y).zIndex)},[y]),m.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:j?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(W=M.transformOrigin)==null?void 0:W.x,(H=M.transformOrigin)==null?void 0:H.y].join(" "),...((V=M.hide)==null?void 0:V.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(ia,{scope:n,placedSide:P,onArrowChange:S,arrowX:Q,arrowY:ae,shouldHideArrow:ne,children:m.jsx(ce.div,{"data-side":P,"data-align":K,...p,ref:x,style:{...p.style,animation:j?void 0:"none"}})})})});ur.displayName=_n;var dr="PopperArrow",aa={top:"bottom",right:"left",bottom:"top",left:"right"},fr=i.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=ca(dr,o),a=aa[s.placedSide];return m.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]: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:m.jsx(ra,{...r,ref:n,style:{...r.style,display:"block"}})})});fr.displayName=dr;function la(e){return e!==null}var ua=e=>({name:"transformOrigin",options:e,fn(t){var v,y,w;const{placement:n,rects:o,middlewareData:r}=t,a=((v=r.arrow)==null?void 0:v.centerOffset)!==0,c=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,d]=pr(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((y=r.arrow)==null?void 0:y.x)??0)+c/2,g=(((w=r.arrow)==null?void 0:w.y)??0)+l/2;let C="",p="";return u==="bottom"?(C=a?f:`${h}px`,p=`${-l}px`):u==="top"?(C=a?f:`${h}px`,p=`${o.floating.height+l}px`):u==="right"?(C=`${-l}px`,p=a?f:`${g}px`):u==="left"&&(C=`${o.floating.width+l}px`,p=a?f:`${g}px`),{data:{x:C,y:p}}}});function pr(e){const[t,n="center"]=e.split("-");return[t,n]}var da=cr,fa=lr,pa=ur,ma=fr,ha="Portal",mr=i.forwardRef((e,t)=>{var c;const{container:n,...o}=e,[r,s]=i.useState(!1);q(()=>s(!0),[]);const a=n||r&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Ao.createPortal(m.jsx(ce.div,{...o,ref:t}),a):null});mr.displayName=ha;function va(e,t){return i.useReducer((n,o)=>t[n][o]??n,e)}var xe=e=>{const{present:t,children:n}=e,o=ga(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=D(o.ref,ya(r));return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};xe.displayName="Presence";function ga(e){const[t,n]=i.useState(),o=i.useRef(null),r=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,l]=va(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=pt(o.current);s.current=c==="mounted"?u:"none"},[c]),q(()=>{const u=o.current,d=r.current;if(d!==e){const h=s.current,g=pt(u);e?l("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),q(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=g=>{const p=pt(o.current).includes(g.animationName);if(g.target===t&&p&&(l("ANIMATION_END"),!r.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=g=>{g.target===t&&(s.current=pt(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{o.current=u?getComputedStyle(u):null,n(u)},[])}}function pt(e){return(e==null?void 0:e.animationName)||"none"}function ya(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 po(e){const t=wa(e),n=i.forwardRef((o,r)=>{const{children:s,...a}=o,c=i.Children.toArray(s),l=c.find(Ca);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function wa(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n;if(i.isValidElement(r)){const a=ba(r),c=Ea(s,r.props);return r.type!==i.Fragment&&(c.ref=o?Fe(o,a):a),i.cloneElement(r,c)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xa=Symbol("radix.slottable");function Ca(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xa}function Ea(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]=(...c)=>{s(...c),r(...c)}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function ba(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 Sa(e){const t=e+"CollectionProvider",[n,o]=pe(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:v,children:y}=p,w=X.useRef(null),x=X.useRef(new Map).current;return m.jsx(r,{scope:v,itemMap:x,collectionRef:w,children:y})};a.displayName=t;const c=e+"CollectionSlot",l=po(c),u=X.forwardRef((p,v)=>{const{scope:y,children:w}=p,x=s(c,y),E=D(v,x.collectionRef);return m.jsx(l,{ref:E,children:w})});u.displayName=c;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=po(d),g=X.forwardRef((p,v)=>{const{scope:y,children:w,...x}=p,E=X.useRef(null),S=D(v,E),R=s(d,y);return X.useEffect(()=>(R.itemMap.set(E,{ref:E,...x}),()=>void R.itemMap.delete(E))),m.jsx(h,{[f]:"",ref:S,children:w})});g.displayName=d;function C(p){const v=s(e+"CollectionConsumer",p);return X.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((R,b)=>x.indexOf(R.ref.current)-x.indexOf(b.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},C,o]}function Ra(e){const t=Pa(e),n=i.forwardRef((o,r)=>{const{children:s,...a}=o,c=i.Children.toArray(s),l=c.find(Aa);if(l){const u=l.props.children,d=c.map(f=>f===l?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...a,ref:r,children:i.isValidElement(u)?i.cloneElement(u,void 0,d):null})}return m.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function Pa(e){const t=i.forwardRef((n,o)=>{const{children:r,...s}=n;if(i.isValidElement(r)){const a=Ia(r),c=Ma(s,r.props);return r.type!==i.Fragment&&(c.ref=o?Fe(o,a):a),i.cloneElement(r,c)}return i.Children.count(r)>1?i.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ta=Symbol("radix.slottable");function Aa(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ta}function Ma(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]=(...c)=>{s(...c),r(...c)}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Ia(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 Oa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hr=Oa.reduce((e,t)=>{const n=Ra(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:a,...c}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),Jt="rovingFocusGroup.onEntryFocus",_a={bubbles:!1,cancelable:!0},at="RovingFocusGroup",[dn,vr,Na]=Sa(at),[Da,gr]=pe(at,[Na]),[La,$a]=Da(at),yr=i.forwardRef((e,t)=>m.jsx(dn.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(dn.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(ja,{...e,ref:t})})}));yr.displayName=at;var ja=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,h=i.useRef(null),g=D(t,h),C=En(s),[p,v]=Ye({prop:a,defaultProp:c??null,onChange:l,caller:at}),[y,w]=i.useState(!1),x=ee(u),E=vr(n),S=i.useRef(!1),[R,b]=i.useState(0);return i.useEffect(()=>{const A=h.current;if(A)return A.addEventListener(Jt,x),()=>A.removeEventListener(Jt,x)},[x]),m.jsx(La,{scope:n,orientation:o,dir:C,loop:r,currentTabStopId:p,onItemFocus:i.useCallback(A=>v(A),[v]),onItemShiftTab:i.useCallback(()=>w(!0),[]),onFocusableItemAdd:i.useCallback(()=>b(A=>A+1),[]),onFocusableItemRemove:i.useCallback(()=>b(A=>A-1),[]),children:m.jsx(hr.div,{tabIndex:y||R===0?-1:0,"data-orientation":o,...f,ref:g,style:{outline:"none",...e.style},onMouseDown:T(e.onMouseDown,()=>{S.current=!0}),onFocus:T(e.onFocus,A=>{const N=!S.current;if(A.target===A.currentTarget&&N&&!y){const _=new CustomEvent(Jt,_a);if(A.currentTarget.dispatchEvent(_),!_.defaultPrevented){const F=E().filter(O=>O.focusable),k=F.find(O=>O.active),L=F.find(O=>O.id===p),U=[k,L,...F].filter(Boolean).map(O=>O.ref.current);Cr(U,d)}}S.current=!1}),onBlur:T(e.onBlur,()=>w(!1))})})}),wr="RovingFocusGroupItem",xr=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:a,...c}=e,l=ve(),u=s||l,d=$a(wr,n),f=d.currentTabStopId===u,h=vr(n),{onFocusableItemAdd:g,onFocusableItemRemove:C,currentTabStopId:p}=d;return i.useEffect(()=>{if(o)return g(),()=>C()}
vendor: 8,469 bytes, lines 1-16
1,[o,g,C]),m.jsx(dn.ItemSlot,{scope:n,id:u,focusable:o,active:r,children:m.jsx(hr.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:t,onMouseDown:T(e.onMouseDown,v=>{o?d.onItemFocus(u):v.preventDefault()}),onFocus:T(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:T(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){d.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=Wa(v,d.orientation,d.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=h().filter(E=>E.focusable).map(E=>E.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const E=x.indexOf(v.currentTarget);x=d.loop?Ba(x,E+1):x.slice(E+1)}setTimeout(()=>Cr(x))}}),children:typeof a=="function"?a({isCurrentTabStop:f,hasTabStop:p!=null}):a})})});xr.displayName=wr;var Fa={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ka(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Wa(e,t,n){const o=ka(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Fa[o]}function Cr(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function Ba(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Ha=yr,Va=xr,Ua=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Be=new WeakMap,mt=new WeakMap,ht={},en=0,Er=function(e){return e&&(e.host||Er(e.parentNode))},Ka=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Er(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})},Ga=function(e,t,n,o){var r=Ka(t,Array.isArray(e)?e:[e]);ht[n]||(ht[n]=new WeakMap);var s=ht[n],a=[],c=new Set,l=new Set(r),u=function(f){!f||c.has(f)||(c.add(f),u(f.parentNode))};r.forEach(u);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(c.has(h))d(h);else try{var g=h.getAttribute(o),C=g!==null&&g!=="false",p=(Be.get(h)||0)+1,v=(s.get(h)||0)+1;Be.set(h,p),s.set(h,v),a.push(h),p===1&&C&&mt.set(h,!0),v===1&&h.setAttribute(n,"true"),C||h.setAttribute(o,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return d(t),c.clear(),en++,function(){a.forEach(function(f){var h=Be.get(f)-1,g=s.get(f)-1;Be.set(f,h),s.set(f,g),h||(mt.has(f)||f.removeAttribute(o),mt.delete(f)),g||f.removeAttribute(n)}),en--,en||(Be=new WeakMap,Be=new WeakMap,mt=new WeakMap,ht={})}},Nn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Ua(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),Ga(o,r,n,"aria-hidden")):function(){return null}},he=function(){return he=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},he.apply(this,arguments)};function br(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 Ya(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 wt="right-scroll-bar-position",xt="width-before-scroll-bar",za="with-scroll-bars-hidden",Xa="--removed-body-scroll-bar-size";function tn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Za(e,t){var n=i.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 qa=typeof window<"u"?i.useLayoutEffect:i.useEffect,mo=new WeakMap;function Qa(e,t){var n=Za(null,function(o){return e.forEach(function(r){return tn(r,o)})});return qa(function(){var o=mo.get(n);if(o){var r=new Set(o),s=new Set(e),a=n.current;r.forEach(function(c){s.has(c)||tn(c,null)}),s.forEach(function(c){r.has(c)||tn(c,a)})}mo.set(n,e)},[e]),n}function Ja(e){return e}function el(e,t){t===void 0&&(t=Ja);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 a=t(s,o);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(o=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){o=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var l=function(){var d=a;a=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return r}function tl(e){e===void 0&&(e={});var t=el(null);return t.options=he({async:!0,ssr:!1},e),t}var Sr=function(e){var t=e.sideCar,n=br(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 i.createElement(o,he({},n))};Sr.isSideCarExport=!0;function nl(e,t){return e.useMedium(t),Sr}var Rr=tl(),nn=function(){},Nt=i.forwardRef(function(e,t){var n=i.useRef(null),o=i.useState({onScrollCapture:nn,onWheelCapture:nn,onTouchMoveCapture:nn}),r=o[0],s=o[1],a=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,g=e.noIsolation,C=e.inert,p=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,w=e.gapMode,x=br(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,S=Qa([n,t]),R=he(he({},x),r);return i.createElement(i.Fragment,null,d&&i.createElement(E,{sideCar:Rr,removeScrollBar:u,shards:f,noIsolation:g,inert:C,setCallbacks:s,allowPinchZoom:!!p,lockRef:n,gapMode:w}),a?i.cloneElement(i.Children.only(c),he(he({},R),{ref:S})):i.createElement(y,he({},R,{className:l,ref:S}),c))});Nt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Nt.classNames={fullWidth:xt,zeroRight:wt};var ol=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ol();return t&&e.setAttribute("nonce",t),e}function sl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function il(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=rl())&&(sl(t,n),il(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},al=function(){var e=cl();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Pr=function(){var e=al(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},ll={left:0,top:0,right:0,gap:0},on=function(e){return parseInt(e||"",10)||0},ul=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[on(n),on(o),on(r)]},dl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ll;var t=ul(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])}},fl=Pr(),Ke="data-scroll-locked",pl=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(za,` {
3   overflow: hidden `).concat(o,`;
4   padding-right: `).concat(c,"px ").concat(o,`;
5  }
6  body[`).concat(Ke,`] {
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(a,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(c,"px ").concat(o,`;
16    `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(o,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(wt,` {
20    right: `).concat(c,"px ").concat(o,`;
21  }
22  
23  .`).concat(xt,` {
24    margin-right: `).concat(c,"px ").concat(o,`;
25  }
26  
27  .`).concat(wt," .").concat(wt,` {
28    right: 0 `).concat(o,`;
29  }
30  
31  .`).concat(xt," .").concat(xt,` {
32    margin-right: 0 `).concat(o,`;
33  }
34  
35  body[`).concat(Ke,`] {
36    `).concat(Xa,": ").concat(c,`px;
37  }
38`)},ho=function(){var e=parseInt(document.body.getAttribute(Ke)||"0",10);return isFinite(e)?e:0},ml=function(){i.useEffect(function(){return document.body.setAttribute(Ke,(ho()+1).toString()),function(){var e=ho()-1;e<=0?document.body.removeAttribute(Ke):document.body.setAttribute(Ke,e.toString())}},[])},hl=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;ml();var s=i.useMemo(function(){return dl(r)},[r]);return i.createElement(fl,{styles:pl(s,!t,r,n?"":"!important")})},fn=!1;if(typeof window<"u")try{var vt=Object.defineProperty({},"passive",{get:function(){return fn=!0,!0}});window.addEventListener("test",vt,vt),window.removeEventListener("test",vt,vt)}catch{fn=!1}var He=fn?{passive:!1}:!1,vl=function(e){return e.tagName==="TEXTAREA"},Tr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vl(e)&&n[t]==="visible")},gl=function(e){return Tr(e,"overflowY")},yl=function(e){return Tr(e,"overflowX")},vo=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Ar(e,o);if(r){var s=Mr(e,o),a=s[1],c=s[2];if(a>c)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},wl=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},xl=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Ar=function(e,t){return e==="v"?gl(t):yl(t)},Mr=function(e,t){return e==="v"?wl(t):xl(t)},Cl=function(e,t){return e==="h"&&t==="rtl"?-1:1},El=function(e,t,n,o,r){var s=Cl(e,window.getComputedStyle(t).direction),a=s*o,c=n.target,l=t.contains(c),u=!1,d=a>0,f=0,h=0;do{var g=Mr(e,c),C=g[0],p=g[1],v=g[2],y=p-v-s*C;(C||y)&&Ar(e,c)&&(f+=y,h+=C),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(d&&Math.abs(f)<1||!d&&Math.abs(h)<1)&&(u=!0),u},gt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},go=function(e){return[e.deltaX,e.deltaY]},yo=function(e){return e&&"current"in e?e.current:e},bl=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Sl=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},Rl=0,Ve=[];function Pl(e){var t=i.useRef([]),n=i.useRef([0,0]),o=i.useRef(),r=i.useState(Rl++)[0],s=i.useState(Pr)[0],a=i.useRef(e);i.useEffect(function(){a.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=Ya([e.lockRef.current],(e.shards||[]).map(yo),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!a.current.allowPinchZoom;var y=gt(p),w=n.current,x="deltaX"in p?p.deltaX:w[0]-y[0],E="deltaY"in p?p.deltaY:w[1]-y[1],S,R=p.target,b=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in p&&b==="h"&&R.type==="range")return!1;var A=vo(b,R);if(!A)return!0;if(A?S=b:(S=b==="v"?"h":"v",A=vo(b,R)),!A)return!1;if(!o.current&&"changedTouches"in p&&(x||E)&&(o.current=S),!S)return!0;var N=o.current||S;return El(N,v,p,N==="h"?x:E)},[]),l=i.useCallback(function(p){var v=p;if(!(!Ve.length||Ve[Ve.length-1]!==s)){var y="deltaY"in v?go(v):gt(v),w=t.current.filter(function(S){return S.name===v.type&&(S.target===v.target||v.target===S.shadowParent)&&bl(S.delta,y)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}
vendor: 27,313 bytes, line 41
41if(!w){var x=(a.current.shards||[]).map(yo).filter(Boolean).filter(function(S){return S.contains(v.target)}),E=x.length>0?c(v,x[0]):!a.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),u=i.useCallback(function(p,v,y,w){var x={name:p,delta:v,target:y,should:w,shadowParent:Tl(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),d=i.useCallback(function(p){n.current=gt(p),o.current=void 0},[]),f=i.useCallback(function(p){u(p.type,go(p),p.target,c(p,e.lockRef.current))},[]),h=i.useCallback(function(p){u(p.type,gt(p),p.target,c(p,e.lockRef.current))},[]);i.useEffect(function(){return Ve.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,He),document.addEventListener("touchmove",l,He),document.addEventListener("touchstart",d,He),function(){Ve=Ve.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,He),document.removeEventListener("touchmove",l,He),document.removeEventListener("touchstart",d,He)}},[]);var g=e.removeScrollBar,C=e.inert;return i.createElement(i.Fragment,null,C?i.createElement(s,{styles:Sl(r)}):null,g?i.createElement(hl,{gapMode:e.gapMode}):null)}function Tl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Al=nl(Rr,Pl);var Dt=i.forwardRef(function(e,t){return i.createElement(Nt,he({},e,{ref:t,sideCar:Al}))});Dt.classNames=Nt.classNames;var pn=["Enter"," "],Ml=["ArrowDown","PageUp","Home"],Ir=["ArrowUp","PageDown","End"],Il=[...Ml,...Ir],Ol={ltr:[...pn,"ArrowRight"],rtl:[...pn,"ArrowLeft"]},_l={ltr:["ArrowLeft"],rtl:["ArrowRight"]},lt="Menu",[ot,Nl,Dl]=Zi(lt),[ke,Or]=pe(lt,[Dl,sr,gr]),Lt=sr(),_r=gr(),[Ll,We]=ke(lt),[$l,ut]=ke(lt),Nr=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:a=!0}=e,c=Lt(t),[l,u]=i.useState(null),d=i.useRef(!1),f=ee(s),h=En(r);return i.useEffect(()=>{const g=()=>{d.current=!0,document.addEventListener("pointerdown",C,{capture:!0,once:!0}),document.addEventListener("pointermove",C,{capture:!0,once:!0})},C=()=>d.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",C,{capture:!0}),document.removeEventListener("pointermove",C,{capture:!0})}},[]),m.jsx(da,{...c,children:m.jsx(Ll,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:m.jsx($l,{scope:t,onClose:i.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:h,modal:a,children:o})})})};Nr.displayName=lt;var jl="MenuAnchor",Dn=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Lt(n);return m.jsx(fa,{...r,...o,ref:t})});Dn.displayName=jl;var Ln="MenuPortal",[Fl,Dr]=ke(Ln,{forceMount:void 0}),Lr=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=We(Ln,t);return m.jsx(Fl,{scope:t,forceMount:n,children:m.jsx(xe,{present:n||s.open,children:m.jsx(mr,{asChild:!0,container:r,children:o})})})};Lr.displayName=Ln;var ie="MenuContent",[kl,$n]=ke(ie),$r=i.forwardRef((e,t)=>{const n=Dr(ie,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=We(ie,e.__scopeMenu),a=ut(ie,e.__scopeMenu);return m.jsx(ot.Provider,{scope:e.__scopeMenu,children:m.jsx(xe,{present:o||s.open,children:m.jsx(ot.Slot,{scope:e.__scopeMenu,children:a.modal?m.jsx(Wl,{...r,ref:t}):m.jsx(Bl,{...r,ref:t})})})})}),Wl=i.forwardRef((e,t)=>{const n=We(ie,e.__scopeMenu),o=i.useRef(null),r=D(t,o);return i.useEffect(()=>{const s=o.current;if(s)return Nn(s)},[]),m.jsx(jn,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:T(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Bl=i.forwardRef((e,t)=>{const n=We(ie,e.__scopeMenu);return m.jsx(jn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Hl=Ct("MenuContent.ScrollLock"),jn=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:g,disableOutsideScroll:C,...p}=e,v=We(ie,n),y=ut(ie,n),w=Lt(n),x=_r(n),E=Nl(n),[S,R]=i.useState(null),b=i.useRef(null),A=D(t,b,v.onContentChange),N=i.useRef(0),_=i.useRef(""),F=i.useRef(0),k=i.useRef(null),L=i.useRef("right"),$=i.useRef(0),U=C?Dt:i.Fragment,O=C?{as:Hl,allowPinchZoom:!0}:void 0,j=P=>{var I,B;const K=_.current+P,z=E().filter(G=>!G.disabled),Q=document.activeElement,ae=(I=z.find(G=>G.ref.current===Q))==null?void 0:I.textValue,ne=z.map(G=>G.textValue),le=eu(ne,K,ae),J=(B=z.find(G=>G.textValue===le))==null?void 0:B.ref.current;(function G(W){_.current=W,window.clearTimeout(N.current),W!==""&&(N.current=window.setTimeout(()=>G(""),1e3))})(K),J&&setTimeout(()=>J.focus())};i.useEffect(()=>()=>window.clearTimeout(N.current),[]),bn();const M=i.useCallback(P=>{var z,Q;return L.current===((z=k.current)==null?void 0:z.side)&&nu(P,(Q=k.current)==null?void 0:Q.area)},[]);return m.jsx(kl,{scope:n,searchRef:_,onItemEnter:i.useCallback(P=>{M(P)&&P.preventDefault()},[M]),onItemLeave:i.useCallback(P=>{var K;M(P)||((K=b.current)==null||K.focus(),R(null))},[M]),onTriggerLeave:i.useCallback(P=>{M(P)&&P.preventDefault()},[M]),pointerGraceTimerRef:F,onPointerGraceIntentChange:i.useCallback(P=>{k.current=P},[]),children:m.jsx(U,{...O,children:m.jsx(Lo,{asChild:!0,trapped:r,onMountAutoFocus:T(s,P=>{var K;P.preventDefault(),(K=b.current)==null||K.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:m.jsx(No,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:g,children:m.jsx(Ha,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:o,currentTabStopId:S,onCurrentTabStopIdChange:R,onEntryFocus:T(l,P=>{y.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(pa,{role:"menu","aria-orientation":"vertical","data-state":Qr(v.open),"data-radix-menu-content":"",dir:y.dir,...w,...p,ref:A,style:{outline:"none",...p.style},onKeyDown:T(p.onKeyDown,P=>{const z=P.target.closest("[data-radix-menu-content]")===P.currentTarget,Q=P.ctrlKey||P.altKey||P.metaKey,ae=P.key.length===1;z&&(P.key==="Tab"&&P.preventDefault(),!Q&&ae&&j(P.key));const ne=b.current;if(P.target!==ne||!Il.includes(P.key))return;P.preventDefault();const J=E().filter(I=>!I.disabled).map(I=>I.ref.current);Ir.includes(P.key)&&J.reverse(),Ql(J)}),onBlur:T(e.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(N.current),_.current="")}),onPointerMove:T(e.onPointerMove,rt(P=>{const K=P.target,z=$.current!==P.clientX;if(P.currentTarget.contains(K)&&z){const Q=P.clientX>$.current?"right":"left";L.current=Q,$.current=P.clientX}}))})})})})})})});$r.displayName=ie;var Vl="MenuGroup",Fn=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return m.jsx(ce.div,{role:"group",...o,ref:t})});Fn.displayName=Vl;var Ul="MenuLabel",jr=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return m.jsx(ce.div,{...o,ref:t})});jr.displayName=Ul;var Pt="MenuItem",wo="menu.itemSelect",$t=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=i.useRef(null),a=ut(Pt,e.__scopeMenu),c=$n(Pt,e.__scopeMenu),l=D(t,s),u=i.useRef(!1),d=()=>{const f=s.current;if(!n&&f){const h=new CustomEvent(wo,{bubbles:!0,cancelable:!0});f.addEventListener(wo,g=>o==null?void 0:o(g),{once:!0}),Io(f,h),h.defaultPrevented?u.current=!1:a.onClose()}};return m.jsx(Fr,{...r,ref:l,disabled:n,onClick:T(e.onClick,d),onPointerDown:f=>{var h;(h=e.onPointerDown)==null||h.call(e,f),u.current=!0},onPointerUp:T(e.onPointerUp,f=>{var h;u.current||(h=f.currentTarget)==null||h.click()}),onKeyDown:T(e.onKeyDown,f=>{const h=c.searchRef.current!=="";n||h&&f.key===" "||pn.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});$t.displayName=Pt;var Fr=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,a=$n(Pt,n),c=_r(n),l=i.useRef(null),u=D(t,l),[d,f]=i.useState(!1),[h,g]=i.useState("");return i.useEffect(()=>{const C=l.current;C&&g((C.textContent??"").trim())},[s.children]),m.jsx(ot.ItemSlot,{scope:n,disabled:o,textValue:r??h,children:m.jsx(Va,{asChild:!0,...c,focusable:!o,children:m.jsx(ce.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:u,onPointerMove:T(e.onPointerMove,rt(C=>{o?a.onItemLeave(C):(a.onItemEnter(C),C.defaultPrevented||C.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:T(e.onPointerLeave,rt(C=>a.onItemLeave(C))),onFocus:T(e.onFocus,()=>f(!0)),onBlur:T(e.onBlur,()=>f(!1))})})})}),Kl="MenuCheckboxItem",kr=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return m.jsx(Ur,{scope:e.__scopeMenu,checked:n,children:m.jsx($t,{role:"menuitemcheckbox","aria-checked":Tt(n)?"mixed":n,...r,ref:t,"data-state":Wn(n),onSelect:T(r.onSelect,()=>o==null?void 0:o(Tt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});kr.displayName=Kl;var Wr="MenuRadioGroup",[Gl,Yl]=ke(Wr,{value:void 0,onValueChange:()=>{}}),Br=i.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=ee(o);return m.jsx(Gl,{scope:e.__scopeMenu,value:n,onValueChange:s,children:m.jsx(Fn,{...r,ref:t})})});Br.displayName=Wr;var Hr="MenuRadioItem",Vr=i.forwardRef((e,t)=>{const{value:n,...o}=e,r=Yl(Hr,e.__scopeMenu),s=n===r.value;return m.jsx(Ur,{scope:e.__scopeMenu,checked:s,children:m.jsx($t,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":Wn(s),onSelect:T(o.onSelect,()=>{var a;return(a=r.onValueChange)==null?void 0:a.call(r,n)},{checkForDefaultPrevented:!1})})})});Vr.displayName=Hr;var kn="MenuItemIndicator",[Ur,zl]=ke(kn,{checked:!1}),Kr=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=zl(kn,n);return m.jsx(xe,{present:o||Tt(s.checked)||s.checked===!0,children:m.jsx(ce.span,{...r,ref:t,"data-state":Wn(s.checked)})})});Kr.displayName=kn;var Xl="MenuSeparator",Gr=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return m.jsx(ce.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Gr.displayName=Xl;var Zl="MenuArrow",Yr=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Lt(n);return m.jsx(ma,{...r,...o,ref:t})});Yr.displayName=Zl;var ql="MenuSub",[uf,zr]=ke(ql),Je="MenuSubTrigger",Xr=i.forwardRef((e,t)=>{const n=We(Je,e.__scopeMenu),o=ut(Je,e.__scopeMenu),r=zr(Je,e.__scopeMenu),s=$n(Je,e.__scopeMenu),a=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=s,u={__scopeMenu:e.__scopeMenu},d=i.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return i.useEffect(()=>d,[d]),i.useEffect(()=>{const f=c.current;return()=>{window.clearTimeout(f),l(null)}},[c,l]),m.jsx(Dn,{asChild:!0,...u,children:m.jsx(Fr,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":Qr(n.open),...e,ref:Fe(t,r.onTriggerChange),onClick:f=>{var h;(h=e.onClick)==null||h.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:T(e.onPointerMove,rt(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:T(e.onPointerLeave,rt(f=>{var g,C;d();const h=(g=n.content)==null?void 0:g.getBoundingClientRect();if(h){const p=(C=n.content)==null?void 0:C.dataset.side,v=p==="right",y=v?-5:5,w=h[v?"left":"right"],x=h[v?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+y,y:f.clientY},{x:w,y:h.top},{x,y:h.top},{x,y:h.bottom},{x:w,y:h.bottom}],side:p}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:T(e.onKeyDown,f=>{var g;const h=s.searchRef.current!=="";e.disabled||h&&f.key===" "||Ol[o.dir].includes(f.key)&&(n.onOpenChange(!0),(g=n.content)==null||g.focus(),f.preventDefault())})})})});Xr.displayName=Je;var Zr="MenuSubContent",qr=i.forwardRef((e,t)=>{const n=Dr(ie,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=We(ie,e.__scopeMenu),a=ut(ie,e.__scopeMenu),c=zr(Zr,e.__scopeMenu),l=i.useRef(null),u=D(t,l);return m.jsx(ot.Provider,{scope:e.__scopeMenu,children:m.jsx(xe,{present:o||s.open,children:m.jsx(ot.Slot,{scope:e.__scopeMenu,children:m.jsx(jn,{id:c.contentId,"aria-labelledby":c.triggerId,...r,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;a.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:T(e.onFocusOutside,d=>{d.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:T(e.onEscapeKeyDown,d=>{a.onClose(),d.preventDefault()}),onKeyDown:T(e.onKeyDown,d=>{var g;const f=d.currentTarget.contains(d.target),h=_l[a.dir].includes(d.key);f&&h&&(s.onOpenChange(!1),(g=c.trigger)==null||g.focus(),d.preventDefault())})})})})})});qr.displayName=Zr;function Qr(e){return e?"open":"closed"}function Tt(e){return e==="indeterminate"}function Wn(e){return Tt(e)?"indeterminate":e?"checked":"unchecked"}function Ql(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Jl(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function eu(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Jl(e,Math.max(s,0));r.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function tu(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],l=t[a],u=c.x,d=c.y,f=l.x,h=l.y;d>o!=h>o&&n<(f-u)*(o-d)/(h-d)+u&&(r=!r)}return r}function nu(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return tu(n,t)}function rt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ou=Nr,ru=Dn,su=Lr,iu=$r,cu=Fn,au=jr,lu=$t,uu=kr,du=Br,fu=Vr,pu=Kr,mu=Gr,hu=Yr,vu=Xr,gu=qr,jt="DropdownMenu",[yu,df]=pe(jt,[Or]),te=Or(),[wu,Jr]=yu(jt),es=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:a,modal:c=!0}=e,l=te(t),u=i.useRef(null),[d,f]=Ye({prop:r,defaultProp:s??!1,onChange:a,caller:jt});return m.jsx(wu,{scope:t,triggerId:ve(),triggerRef:u,contentId:ve(),open:d,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(h=>!h),[f]),modal:c,children:m.jsx(ou,{...l,open:d,onOpenChange:f,dir:o,modal:c,children:n})})};es.displayName=jt;var ts="DropdownMenuTrigger",ns=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=Jr(ts,n),a=te(n);return m.jsx(ru,{asChild:!0,...a,children:m.jsx(Ui.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:Fe(t,s.triggerRef),onPointerDown:T(e.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:T(e.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});ns.displayName=ts;var xu="DropdownMenuPortal",os=e=>{const{__scopeDropdownMenu:t,...n}=e,o=te(t);return m.jsx(su,{...o,...n})};os.displayName=xu;var rs="DropdownMenuContent",ss=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=Jr(rs,n),s=te(n),a=i.useRef(!1);return m.jsx(iu,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:T(e.onCloseAutoFocus,c=>{var l;a.current||(l=r.triggerRef.current)==null||l.focus(),a.current=!1,c.preventDefault()}),onInteractOutside:T(e.onInteractOutside,c=>{const l=c.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!r.modal||d)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ss.displayName=rs;var Cu="DropdownMenuGroup",Eu=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return m.jsx(cu,{...r,...o,ref:t})});Eu.displayName=Cu;var bu="DropdownMenuLabel",is=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return m.jsx(au,{...r,...o,ref:t})});is.displayName=bu;var Su="DropdownMenuItem",cs=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return m.jsx(lu,{...r,...o,ref:t})});cs.displayName=Su;var Ru="DropdownMenuCheckboxItem",as=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return m.jsx(uu,{...r,...o,ref:t})});as.displayName=Ru;var Pu="DropdownMenuRadioGroup",Tu=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return m.jsx(du,{...r,...o,ref:t})});Tu.displayName=Pu;var Au="DropdownMenuRadioItem",Mu=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return m.jsx(fu,{...r,...o,ref:t})});Mu.displayName=Au;var Iu="DropdownMenuItemIndicator",ls=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return m.jsx(pu,{...r,...o,ref:t})});ls.displayName=Iu;var Ou="DropdownMenuSeparator",us=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return m.jsx(mu,{...r,...o,ref:t})});us.displayName=Ou;var _u="DropdownMenuArrow",Nu=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return m.jsx(hu,{...r,...o,ref:t})});Nu.displayName=_u;var Du="DropdownMenuSubTrigger",Lu=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return m.jsx(vu,{...r,...o,ref:t})});Lu.displayName=Du;var $u="DropdownMenuSubContent",ju=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=te(n);return m.jsx(gu,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ju.displayName=$u;var ff=es,pf=ns,mf=os,hf=ss,vf=is,gf=cs,yf=as,wf=ls,xf=us,Fu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Y=Fu.reduce((e,t)=>{const n=Ge(`Primitive.${t}`),o=i.forwardRef((r,s)=>{const{asChild:a,...c}=r,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function ku(e,t){e&&it.flushSync(()=>e.dispatchEvent(t))}var Wu="DismissableLayer",mn="dismissableLayer.update",Bu="dismissableLayer.pointerDownOutside",Hu="dismissableLayer.focusOutside",xo,ds=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ft=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=i.useContext(ds),[d,f]=i.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=i.useState({}),C=D(t,b=>f(b)),p=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),w=d?p.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,S=Ku(b=>{const A=b.target,N=[...u.branches].some(_=>_.contains(A));!E||N||(r==null||r(b),a==null||a(b),b.defaultPrevented||c==null||c())},h),R=Gu(b=>{const A=b.target;[...u.branches].some(_=>_.contains(A))||(s==null||s(b),a==null||a(b),b.defaultPrevented||c==null||c())},h);return Oo(b=>{w===u.layers.size-1&&(o==null||o(b),!b.defaultPrevented&&c&&(b.preventDefault(),c()))},h),i.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xo=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Co(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=xo)}},[d,h,n,u]),i.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Co())},[d,u]),i.useEffect(()=>{const b=()=>g({});return document.addEventListener(mn,b),()=>document.removeEventListener(mn,b)},[]),m.jsx(Y.div,{...l,ref:C,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:T(e.onFocusCapture,R.onFocusCapture),onBlurCapture:T(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:T(e.onPointerDownCapture,S.onPointerDownCapture)})});Ft.displayName=Wu;var Vu="DismissableLayerBranch",Uu=i.forwardRef((e,t)=>{const n=i.useContext(ds),o=i.useRef(null),r=D(t,o);return i.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),m.jsx(Y.div,{...e,ref:r})});Uu.displayName=Vu;function Ku(e,t=globalThis==null?void 0:globalThis.document){const n=ee(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let l=function(){fs(Bu,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Gu(e,t=globalThis==null?void 0:globalThis.document){const n=ee(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&fs(Hu,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 Co(){const e=new CustomEvent(mn);document.dispatchEvent(e)}function fs(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?ku(r,s):r.dispatchEvent(s)}var Yu="Arrow",ps=i.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return m.jsx(Y.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});ps.displayName=Yu;var zu=ps,Bn="Popper",[ms,kt]=pe(Bn),[Xu,hs]=ms(Bn),vs=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return m.jsx(Xu,{scope:t,anchor:o,onAnchorChange:r,children:n})};vs.displayName=Bn;var gs="PopperAnchor",ys=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=hs(gs,n),a=i.useRef(null),c=D(t,a);return i.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||a.current)}),o?null:m.jsx(Y.div,{...r,ref:c})});ys.displayName=gs;var Hn="PopperContent",[Zu,qu]=ms(Hn),ws=i.forwardRef((e,t)=>{var I,B,G,W,H,V;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:C,...p}=e,v=hs(Hn,n),[y,w]=i.useState(null),x=D(t,Z=>w(Z)),[E,S]=i.useState(null),R=or(E),b=(R==null?void 0:R.width)??0,A=(R==null?void 0:R.height)??0,N=o+(s!=="center"?"-"+s:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},F=Array.isArray(u)?u:[u],k=F.length>0,L={padding:_,boundary:F.filter(Ju),altBoundary:k},{refs:$,floatingStyles:U,placement:O,isPositioned:j,middlewareData:M}=zo({strategy:"fixed",placement:N,whileElementsMounted:(...Z)=>Go(...Z,{animationFrame:g==="always"}),elements:{reference:v.anchor},middleware:[Xo({mainAxis:r+A,alignmentAxis:a}),l&&Zo({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?qo():void 0,...L}),l&&Qo({...L}),Jo({...L,apply:({elements:Z,rects:oe,availableWidth:Oe,availableHeight:_e})=>{const{width:Ne,height:Yt}=oe.reference,Ce=Z.floating.style;Ce.setProperty("--radix-popper-available-width",`${Oe}px`),Ce.setProperty("--radix-popper-available-height",`${_e}px`),Ce.setProperty("--radix-popper-anchor-width",`${Ne}px`),Ce.setProperty("--radix-popper-anchor-height",`${Yt}px`)}}),E&&tr({element:E,padding:c}),ed({arrowWidth:b,arrowHeight:A}),h&&er({strategy:"referenceHidden",...L})]}),[P,K]=Es(O),z=ee(C);q(()=>{j&&(z==null||z())},[j,z]);const Q=(I=M.arrow)==null?void 0:I.x,ae=(B=M.arrow)==null?void 0:B.y,ne=((G=M.arrow)==null?void 0:G.centerOffset)!==0,[le,J]=i.useState();return q(()=>{y&&J(window.getComputedStyle(y).zIndex)},[y]),m.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:j?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(W=M.transformOrigin)==null?void 0:W.x,(H=M.transformOrigin)==null?void 0:H.y].join(" "),...((V=M.hide)==null?void 0:V.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(Zu,{scope:n,placedSide:P,onArrowChange:S,arrowX:Q,arrowY:ae,shouldHideArrow:ne,children:m.jsx(Y.div,{"data-side":P,"data-align":K,...p,ref:x,style:{...p.style,animation:j?void 0:"none"}})})})});ws.displayName=Hn;var xs="PopperArrow",Qu={top:"bottom",right:"left",bottom:"top",left:"right"},Cs=i.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=qu(xs,o),a=Qu[s.placedSide];return m.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]: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:m.jsx(zu,{...r,ref:n,style:{...r.style,display:"block"}})})});Cs.displayName=xs;function Ju(e){return e!==null}var ed=e=>({name:"transformOrigin",options:e,fn(t){var v,y,w;const{placement:n,rects:o,middlewareData:r}=t,a=((v=r.arrow)==null?void 0:v.centerOffset)!==0,c=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,d]=Es(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((y=r.arrow)==null?void 0:y.x)??0)+c/2,g=(((w=r.arrow)==null?void 0:w.y)??0)+l/2;let C="",p="";return u==="bottom"?(C=a?f:`${h}px`,p=`${-l}px`):u==="top"?(C=a?f:`${h}px`,p=`${o.floating.height+l}px`):u==="right"?(C=`${-l}px`,p=a?f:`${g}px`):u==="left"&&(C=`${o.floating.width+l}px`,p=a?f:`${g}px`),{data:{x:C,y:p}}}});function Es(e){const[t,n="center"]=e.split("-");return[t,n]}var bs=vs,Ss=ys,Rs=ws,Ps=Cs,td="Portal",Wt=i.forwardRef((e,t)=>{var c;const{container:n,...o}=e,[r,s]=i.useState(!1);q(()=>s(!0),[]);const a=n||r&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?Ao.createPortal(m.jsx(Y.div,{...o,ref:t}),a):null});Wt.displayName=td;var Ts=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"}),nd="VisuallyHidden",As=i.forwardRef((e,t)=>
vendor: 9,260 bytes, line 41
41m.jsx(Y.span,{...e,ref:t,style:{...Ts,...e.style}}));As.displayName=nd;var od=As,[Bt,Cf]=pe("Tooltip",[kt]),Ht=kt(),Ms="TooltipProvider",rd=700,hn="tooltip.open",[sd,Vn]=Bt(Ms),Is=e=>{const{__scopeTooltip:t,delayDuration:n=rd,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=e,a=i.useRef(!0),c=i.useRef(!1),l=i.useRef(0);return i.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),m.jsx(sd,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:i.useCallback(u=>{c.current=u},[]),disableHoverableContent:r,children:s})};Is.displayName=Ms;var st="Tooltip",[id,dt]=Bt(st),Os=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,l=Vn(st,e.__scopeTooltip),u=Ht(t),[d,f]=i.useState(null),h=ve(),g=i.useRef(0),C=a??l.disableHoverableContent,p=c??l.delayDuration,v=i.useRef(!1),[y,w]=Ye({prop:o,defaultProp:r??!1,onChange:b=>{b?(l.onOpen(),document.dispatchEvent(new CustomEvent(hn))):l.onClose(),s==null||s(b)},caller:st}),x=i.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v.current=!1,w(!0)},[w]),S=i.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),R=i.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{v.current=!0,w(!0),g.current=0},p)},[p,w]);return i.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),m.jsx(bs,{...u,children:m.jsx(id,{scope:t,contentId:h,open:y,stateAttribute:x,trigger:d,onTriggerChange:f,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayedRef.current?R():E()},[l.isOpenDelayedRef,R,E]),onTriggerLeave:i.useCallback(()=>{C?S():(window.clearTimeout(g.current),g.current=0)},[S,C]),onOpen:E,onClose:S,disableHoverableContent:C,children:n})})};Os.displayName=st;var vn="TooltipTrigger",_s=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=dt(vn,n),s=Vn(vn,n),a=Ht(n),c=i.useRef(null),l=D(t,c,r.onTriggerChange),u=i.useRef(!1),d=i.useRef(!1),f=i.useCallback(()=>u.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),m.jsx(Ss,{asChild:!0,...a,children:m.jsx(Y.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:l,onPointerMove:T(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:T(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:T(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:T(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:T(e.onBlur,r.onClose),onClick:T(e.onClick,r.onClose)})})});_s.displayName=vn;var Un="TooltipPortal",[cd,ad]=Bt(Un,{forceMount:void 0}),Ns=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,s=dt(Un,t);return m.jsx(cd,{scope:t,forceMount:n,children:m.jsx(xe,{present:n||s.open,children:m.jsx(Wt,{asChild:!0,container:r,children:o})})})};Ns.displayName=Un;var Xe="TooltipContent",Ds=i.forwardRef((e,t)=>{const n=ad(Xe,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,a=dt(Xe,e.__scopeTooltip);return m.jsx(xe,{present:o||a.open,children:a.disableHoverableContent?m.jsx(Ls,{side:r,...s,ref:t}):m.jsx(ld,{side:r,...s,ref:t})})}),ld=i.forwardRef((e,t)=>{const n=dt(Xe,e.__scopeTooltip),o=Vn(Xe,e.__scopeTooltip),r=i.useRef(null),s=D(t,r),[a,c]=i.useState(null),{trigger:l,onClose:u}=n,d=r.current,{onPointerInTransitChange:f}=o,h=i.useCallback(()=>{c(null),f(!1)},[f]),g=i.useCallback((C,p)=>{const v=C.currentTarget,y={x:C.clientX,y:C.clientY},w=pd(y,v.getBoundingClientRect()),x=md(y,w),E=hd(p.getBoundingClientRect()),S=gd([...x,...E]);c(S),f(!0)},[f]);return i.useEffect(()=>()=>h(),[h]),i.useEffect(()=>{if(l&&d){const C=v=>g(v,d),p=v=>g(v,l);return l.addEventListener("pointerleave",C),d.addEventListener("pointerleave",p),()=>{l.removeEventListener("pointerleave",C),d.removeEventListener("pointerleave",p)}}},[l,d,g,h]),i.useEffect(()=>{if(a){const C=p=>{const v=p.target,y={x:p.clientX,y:p.clientY},w=(l==null?void 0:l.contains(v))||(d==null?void 0:d.contains(v)),x=!vd(y,a);w?h():x&&(h(),u())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[l,d,a,u,h]),m.jsx(Ls,{...e,ref:s})}),[ud,dd]=Bt(st,{isInside:!1}),fd=Ai("TooltipContent"),Ls=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,l=dt(Xe,n),u=Ht(n),{onClose:d}=l;return i.useEffect(()=>(document.addEventListener(hn,d),()=>document.removeEventListener(hn,d)),[d]),i.useEffect(()=>{if(l.trigger){const f=h=>{const g=h.target;g!=null&&g.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),m.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:m.jsxs(Rs,{"data-state":l.stateAttribute,...u,...c,ref:t,style:{...c.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:[m.jsx(fd,{children:o}),m.jsx(ud,{scope:n,isInside:!0,children:m.jsx(od,{id:l.contentId,role:"tooltip",children:r||o})})]})})});Ds.displayName=Xe;var $s="TooltipArrow",js=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Ht(n);return dd($s,n).isInside?null:m.jsx(Ps,{...r,...o,ref:t})});js.displayName=$s;function pd(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 md(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 hd(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 vd(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],l=t[a],u=c.x,d=c.y,f=l.x,h=l.y;d>o!=h>o&&n<(f-u)*(o-d)/(h-d)+u&&(r=!r)}return r}function gd(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),yd(t)}function yd(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],a=t[t.length-2];if((s.x-a.x)*(r.y-a.y)>=(s.y-a.y)*(r.x-a.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],a=n[n.length-2];if((s.x-a.x)*(r.y-a.y)>=(s.y-a.y)*(r.x-a.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 Ef=Is,bf=Os,Sf=_s,Rf=Ns,Pf=Ds,Tf=js,rn="focusScope.autoFocusOnMount",sn="focusScope.autoFocusOnUnmount",Eo={bubbles:!1,cancelable:!0},wd="FocusScope",Kn=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[c,l]=i.useState(null),u=ee(r),d=ee(s),f=i.useRef(null),h=D(t,p=>l(p)),g=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let p=function(x){if(g.paused||!c)return;const E=x.target;c.contains(E)?f.current=E:Re(f.current,{select:!0})},v=function(x){if(g.paused||!c)return;const E=x.relatedTarget;E!==null&&(c.contains(E)||Re(f.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Re(c)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const w=new MutationObserver(y);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),w.disconnect()}}},[o,c,g.paused]),i.useEffect(()=>{if(c){So.add(g);const p=document.activeElement;if(!c.contains(p)){const y=new CustomEvent(rn,Eo);c.addEventListener(rn,u),c.dispatchEvent(y),y.defaultPrevented||(xd(Rd(Fs(c)),{select:!0}),document.activeElement===p&&Re(c))}return()=>{c.removeEventListener(rn,u),setTimeout(()=>{const y=new CustomEvent(sn,Eo);c.addEventListener(sn,d),c.dispatchEvent(y),y.defaultPrevented||Re(p??document.body,{select:!0}),c.removeEventListener(sn,d),So.remove(g)},0)}}},[c,u,d,g]);const C=i.useCallback(p=>{if(!n&&!o||g.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const w=p.currentTarget,[x,E]=Cd(w);x&&E?!p.shiftKey&&y===E?(p.preventDefault(),n&&Re(x,{select:!0}
vendor: 26,039 bytes, lines 41-45
41)):p.shiftKey&&y===x&&(p.preventDefault(),n&&Re(E,{select:!0})):y===w&&p.preventDefault()}},[n,o,g.paused]);return m.jsx(Y.div,{tabIndex:-1,...a,ref:h,onKeyDown:C})});Kn.displayName=wd;function xd(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Re(o,{select:t}),document.activeElement!==n)return}function Cd(e){const t=Fs(e),n=bo(t,e),o=bo(t.reverse(),e);return[n,o]}function Fs(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 bo(e,t){for(const n of e)if(!Ed(n,{upTo:t}))return n}function Ed(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 bd(e){return e instanceof HTMLInputElement&&"select"in e}function Re(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&bd(e)&&t&&e.select()}}var So=Sd();function Sd(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ro(e,t),e.unshift(t)},remove(t){var n;e=Ro(e,t),(n=e[0])==null||n.resume()}}}function Ro(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Rd(e){return e.filter(t=>t.tagName!=="A")}var Vt="Dialog",[ks,Af]=pe(Vt),[Pd,me]=ks(Vt),Ws=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:a=!0}=e,c=i.useRef(null),l=i.useRef(null),[u,d]=Ye({prop:o,defaultProp:r??!1,onChange:s,caller:Vt});return m.jsx(Pd,{scope:t,triggerRef:c,contentRef:l,contentId:ve(),titleId:ve(),descriptionId:ve(),open:u,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(f=>!f),[d]),modal:a,children:n})};Ws.displayName=Vt;var Bs="DialogTrigger",Hs=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=me(Bs,n),s=D(t,r.triggerRef);return m.jsx(Y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":zn(r.open),...o,ref:s,onClick:T(e.onClick,r.onOpenToggle)})});Hs.displayName=Bs;var Gn="DialogPortal",[Td,Vs]=ks(Gn,{forceMount:void 0}),Us=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=me(Gn,t);return m.jsx(Td,{scope:t,forceMount:n,children:i.Children.map(o,a=>m.jsx(xe,{present:n||s.open,children:m.jsx(Wt,{asChild:!0,container:r,children:a})}))})};Us.displayName=Gn;var At="DialogOverlay",Ks=i.forwardRef((e,t)=>{const n=Vs(At,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=me(At,e.__scopeDialog);return s.modal?m.jsx(xe,{present:o||s.open,children:m.jsx(Md,{...r,ref:t})}):null});Ks.displayName=At;var Ad=Ge("DialogOverlay.RemoveScroll"),Md=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=me(At,n);return m.jsx(Dt,{as:Ad,allowPinchZoom:!0,shards:[r.contentRef],children:m.jsx(Y.div,{"data-state":zn(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Le="DialogContent",Gs=i.forwardRef((e,t)=>{const n=Vs(Le,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=me(Le,e.__scopeDialog);return m.jsx(xe,{present:o||s.open,children:s.modal?m.jsx(Id,{...r,ref:t}):m.jsx(Od,{...r,ref:t})})});Gs.displayName=Le;var Id=i.forwardRef((e,t)=>{const n=me(Le,e.__scopeDialog),o=i.useRef(null),r=D(t,n.contentRef,o);return i.useEffect(()=>{const s=o.current;if(s)return Nn(s)},[]),m.jsx(Ys,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:T(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:T(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:T(e.onFocusOutside,s=>s.preventDefault())})}),Od=i.forwardRef((e,t)=>{const n=me(Le,e.__scopeDialog),o=i.useRef(!1),r=i.useRef(!1);return m.jsx(Ys,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(o.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const a=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Ys=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...a}=e,c=me(Le,n),l=i.useRef(null),u=D(t,l);return bn(),m.jsxs(m.Fragment,{children:[m.jsx(Kn,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:m.jsx(Ft,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":zn(c.open),...a,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(_d,{titleId:c.titleId}),m.jsx(Dd,{contentRef:l,descriptionId:c.descriptionId})]})]})}),Yn="DialogTitle",zs=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=me(Yn,n);return m.jsx(Y.h2,{id:r.titleId,...o,ref:t})});zs.displayName=Yn;var Xs="DialogDescription",Zs=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=me(Xs,n);return m.jsx(Y.p,{id:r.descriptionId,...o,ref:t})});Zs.displayName=Xs;var qs="DialogClose",Qs=i.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=me(qs,n);return m.jsx(Y.button,{type:"button",...o,ref:t,onClick:T(e.onClick,()=>r.onOpenChange(!1))})});Qs.displayName=qs;function zn(e){return e?"open":"closed"}var Js="DialogTitleWarning",[Mf,ei]=_i(Js,{contentName:Le,titleName:Yn,docsSlug:"dialog"}),_d=({titleId:e})=>{const t=ei(Js),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 i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Nd="DialogDescriptionWarning",Dd=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ei(Nd).contentName}}.`;return i.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},If=Ws,Of=Hs,_f=Us,Nf=Ks,Df=Gs,Lf=zs,$f=Zs,jf=Qs;function Po(e,[t,n]){return Math.min(n,Math.max(t,e))}function Ld(e){const t=e+"CollectionProvider",[n,o]=pe(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:v,children:y}=p,w=X.useRef(null),x=X.useRef(new Map).current;return m.jsx(r,{scope:v,itemMap:x,collectionRef:w,children:y})};a.displayName=t;const c=e+"CollectionSlot",l=Ge(c),u=X.forwardRef((p,v)=>{const{scope:y,children:w}=p,x=s(c,y),E=D(v,x.collectionRef);return m.jsx(l,{ref:E,children:w})});u.displayName=c;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=Ge(d),g=X.forwardRef((p,v)=>{const{scope:y,children:w,...x}=p,E=X.useRef(null),S=D(v,E),R=s(d,y);return X.useEffect(()=>(R.itemMap.set(E,{ref:E,...x}),()=>void R.itemMap.delete(E))),m.jsx(h,{[f]:"",ref:S,children:w})});g.displayName=d;function C(p){const v=s(e+"CollectionConsumer",p);return X.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((R,b)=>x.indexOf(R.ref.current)-x.indexOf(b.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},C,o]}function $d(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var jd=[" ","Enter","ArrowUp","ArrowDown"],Fd=[" ","Enter"],$e="Select",[Ut,Kt,kd]=Ld($e),[Qe,Ff]=pe($e,[kd,kt]),Gt=kt(),[Wd,Me]=Qe($e),[Bd,Hd]=Qe($e),ti=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:a,defaultValue:c,onValueChange:l,dir:u,name:d,autoComplete:f,disabled:h,required:g,form:C}=e,p=Gt(t),[v,y]=i.useState(null),[w,x]=i.useState(null),[E,S]=i.useState(!1),R=En(u),[b,A]=Ye({prop:o,defaultProp:r??!1,onChange:s,caller:$e}),[N,_]=Ye({prop:a,defaultProp:c,onChange:l,caller:$e}),F=i.useRef(null),k=v?C||!!v.closest("form"):!0,[L,$]=i.useState(new Set),U=Array.from(L).map(O=>O.props.value).join(";");return m.jsx(bs,{...p,children:m.jsxs(Wd,{required:g,scope:t,trigger:v,onTriggerChange:y,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:E,onValueNodeHasChildrenChange:S,contentId:ve(),value:N,onValueChange:_,open:b,onOpenChange:A,dir:R,triggerPointerDownPosRef:F,disabled:h,children:[m.jsx(Ut.Provider,{scope:t,children:m.jsx(Bd,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(O=>{$(j=>new Set(j).add(O))},[]),onNativeOptionRemove:i.useCallback(O=>{$(j=>{const M=new Set(j);return M.delete(O),M})},[]),children:n})}),k?m.jsxs(bi,{"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:f,value:N,onChange:O=>_(O.target.value),disabled:h,form:C,children:[N===void 0?m.jsx("option",{value:""}):null,Array.from(L)]},U):null]})})};ti.displayName=$e;var ni="SelectTrigger",oi=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=Gt(n),a=Me(ni,n),c=a.disabled||o,l=D(t,a.onTriggerChange),u=Kt(n),d=i.useRef("touch"),[f,h,g]=Ri(p=>{const v=u().filter(x=>!x.disabled),y=v.find(x=>x.value===a.value),w=Pi(v,p,y);w!==void 0&&a.onValueChange(w.value)}),C=p=>{c||(a.onOpenChange(!0),g()),p&&(a.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return m.jsx(Ss,{asChild:!0,...s,children:m.jsx(Y.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Si(a.value)?"":void 0,...r,ref:l,onClick:T(r.onClick,p=>{p.currentTarget.focus(),d.current!=="mouse"&&C(p)}),onPointerDown:T(r.onPointerDown,p=>{d.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(C(p),p.preventDefault())}),onKeyDown:T(r.onKeyDown,p=>{const v=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&h(p.key),!(v&&p.key===" ")&&jd.includes(p.key)&&(C(),p.preventDefault())})})})});oi.displayName=ni;var ri="SelectValue",si=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:a="",...c}=e,l=Me(ri,n),{onValueNodeHasChildrenChange:u}=l,d=s!==void 0,f=D(t,l.onValueNodeChange);return q(()=>{u(d)},[u,d]),m.jsx(Y.span,{...c,ref:f,style:{pointerEvents:"none"},children:Si(l.value)?m.jsx(m.Fragment,{children:a}):s})});si.displayName=ri;var Vd="SelectIcon",ii=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return m.jsx(Y.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});ii.displayName=Vd;var Ud="SelectPortal",ci=e=>m.jsx(Wt,{asChild:!0,...e});ci.displayName=Ud;var je="SelectContent",ai=i.forwardRef((e,t)=>{const n=Me(je,e.__scopeSelect),[o,r]=i.useState();if(q(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?it.createPortal(m.jsx(li,{scope:e.__scopeSelect,children:m.jsx(Ut.Slot,{scope:e.__scopeSelect,children:m.jsx("div",{children:e.children})})}),s):null}return m.jsx(ui,{...e,ref:t})});ai.displayName=je;var ue=10,[li,Ie]=Qe(je),Kd="SelectContentImpl",Gd=Ge("SelectContent.RemoveScroll"),ui=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:g,sticky:C,hideWhenDetached:p,avoidCollisions:v,...y}=e,w=Me(je,n),[x,E]=i.useState(null),[S,R]=i.useState(null),b=D(t,I=>E(I)),[A,N]=i.useState(null),[_,F]=i.useState(null),k=Kt(n),[L,$]=i.useState(!1),U=i.useRef(!1);i.useEffect(()=>{if(x)return Nn(x)},[x]),bn();const O=i.useCallback(I=>{const[B,...G]=k().map(V=>V.ref.current),[W]=G.slice(-1),H=document.activeElement;for(const V of I)if(V===H||(V==null||V.scrollIntoView({block:"nearest"}),V===B&&S&&(S.scrollTop=0),V===W&&S&&(S.scrollTop=S.scrollHeight),V==null||V.focus(),document.activeElement!==H))return},[k,S]),j=i.useCallback(()=>O([A,x]),[O,A,x]);i.useEffect(()=>{L&&j()},[L,j]);const{onOpenChange:M,triggerPointerDownPosRef:P}=w;i.useEffect(()=>{if(x){let I={x:0,y:0};const B=W=>{var H,V;I={x:Math.abs(Math.round(W.pageX)-(((H=P.current)==null?void 0:H.x)??0)),y:Math.abs(Math.round(W.pageY)-(((V=P.current)==null?void 0:V.y)??0))}},G=W=>{I.x<=10&&I.y<=10?W.preventDefault():x.contains(W.target)||M(!1),document.removeEventListener("pointermove",B),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",B),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",B),document.removeEventListener("pointerup",G,{capture:!0})}}},[x,M,P]),i.useEffect(()=>{const I=()=>M(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[M]);const[K,z]=Ri(I=>{const B=k().filter(H=>!H.disabled),G=B.find(H=>H.ref.current===document.activeElement),W=Pi(B,I,G);W&&setTimeout(()=>W.ref.current.focus())}),Q=i.useCallback((I,B,G)=>{const W=!U.current&&!G;(w.value!==void 0&&w.value===B||W)&&(N(I),W&&(U.current=!0))},[w.value]),ae=i.useCallback(()=>x==null?void 0:x.focus(),[x]),ne=i.useCallback((I,B,G)=>{const W=!U.current&&!G;(w.value!==void 0&&w.value===B||W)&&F(I)},[w.value]),le=o==="popper"?gn:di,J=le===gn?{side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:g,sticky:C,hideWhenDetached:p,avoidCollisions:v}:{};return m.jsx(li,{scope:n,content:x,viewport:S,onViewportChange:R,itemRefCallback:Q,selectedItem:A,onItemLeave:ae,itemTextRefCallback:ne,focusSelectedItem:j,selectedItemText:_,position:o,isPositioned:L,searchRef:K,children:m.jsx(Dt,{as:Gd,allowPinchZoom:!0,children:m.jsx(Kn,{asChild:!0,trapped:w.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:T(r,I=>{var B;(B=w.trigger)==null||B.focus({preventScroll:!0}),I.preventDefault()}),children:m.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:m.jsx(le,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:I=>I.preventDefault(),...y,...J,onPlaced:()=>$(!0),ref:b,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:T(y.onKeyDown,I=>{const B=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!B&&I.key.length===1&&z(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let W=k().filter(H=>!H.disabled).map(H=>H.ref.current);if(["ArrowUp","End"].includes(I.key)&&(W=W.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const H=I.target,V=W.indexOf(H);W=W.slice(V+1)}setTimeout(()=>O(W)),I.preventDefault()}})})})})})})});ui.displayName=Kd;var Yd="SelectItemAlignedPosition",di=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=Me(je,n),a=Ie(je,n),[c,l]=i.useState(null),[u,d]=i.useState(null),f=D(t,b=>d(b)),h=Kt(n),g=i.useRef(!1),C=i.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:y,focusSelectedItem:w}=a,x=i.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&p&&v&&y){const b=s.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),_=y.getBoundingClientRect();if(s.dir!=="rtl"){const H=_.left-A.left,V=N.left-H,Z=b.left-V,oe=b.width+Z,Oe=Math.max(oe,A.width),_e=window.innerWidth-ue,Ne=Po(V,[ue,Math.max(ue,_e-Oe)]);c.style.minWidth=oe+"px",c.style.left=Ne+"px"}else{const H=A.right-_.right,V=window.innerWidth-N.right-H,Z=window.innerWidth-b.right-V,oe=b.width+Z,Oe=Math.max(oe,A.width),_e=window.innerWidth-ue,Ne=Po(V,[ue,Math.max(ue,_e-Oe)]);c.style.minWidth=oe+"px",c.style.right=Ne+"px"}const F=h(),k=window.innerHeight-ue*2,L=p.scrollHeight,$=window.getComputedStyle(u),U=parseInt($.borderTopWidth,10),O=parseInt($.paddingTop,10),j=parseInt($.borderBottomWidth,10),M=parseInt($.paddingBottom,10),P=U+O+L+M+j,K=Math.min(v.offsetHeight*5,P),z=window.getComputedStyle(p),Q=parseInt(z.paddingTop,10),ae=parseInt(z.paddingBottom,10),ne=b.top+b.height/2-ue,le=k-ne,J=v.offsetHeight/2,I=v.offsetTop+J,B=U+O+I,G=P-B;if(B<=ne){const H=F.length>0&&v===F[F.length-1].ref.current;c.style.bottom="0px";const V=u.clientHeight-p.offsetTop-p.offsetHeight,Z=Math.max(le,J+(H?ae:0)+V+j),oe=B+Z;c.style.height=oe+"px"}else{const H=F.length>0&&v===F[0].ref.current;c.style.top="0px";const Z=Math.max(ne,U+p.offsetTop+(H?Q:0)+J)+G;c.style.height=Z+"px",p.scrollTop=B-ne+p.offsetTop}c.style.margin=`${ue}px 0`,c.style.minHeight=K+"px",c.style.maxHeight=k+"px",o==null||o(),requestAnimationFrame(()=>g.current=!0)}},[h,s.trigger,s.valueNode,c,u,p,v,y,s.dir,o]);q(()=>x(),[x]);const[E,S]=i.useState();q(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const R=i.useCallback(b=>{b&&C.current===!0&&(x(),w==null||w(),C.current=!1)},[x,w]);return m.jsx(Xd,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:R,children:m.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:m.jsx(Y.div,{...r,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});di.displayName=Yd;var zd="SelectPopperPosition",gn=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=ue,...s}=e,a=Gt(n);return m.jsx(Rs,{...a,...s,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});gn.displayName=zd;var[Xd,Xn]=Qe(je,{}),yn="SelectViewport",fi=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=Ie(yn,n),a=Xn(yn,n),c=D(t,s.onViewportChange),l=i.useRef(0);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),m.jsx(Ut.Slot,{scope:n,children:m.jsx(Y.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:T(r.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=a;if(h!=null&&h.current&&f){const g=Math.abs(l.current-d.scrollTop);if(g>0){const C=window.innerHeight-ue*2,p=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),y=Math.max(p,v);if(y<C){const w=y+g,x=Math.min(C,w),E=w-x;f.style.height=x+"px",f.style.bottom==="0px"&&(d.scrollTop=E>0?E:0,f.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});fi.displayName=yn;var pi="SelectGroup",[Zd,qd]=Qe(pi),Qd=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=ve();return m.jsx(Zd,{scope:n,id:r,children:m.jsx(Y.div,{role:"group","aria-labelledby":r,...o,ref:t})})});Qd.displayName=pi;var mi="SelectLabel",Jd=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=qd(mi,n);return m.jsx(Y.div,{id:r.id,...o,ref:t})});Jd.displayName=mi;var Mt="SelectItem",[ef,hi]=Qe(Mt),vi=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...a}=e,c=Me(Mt,n),l=Ie(Mt,n),u=c.value===o,[d,f]=i.useState(s??""),[h,g]=i.useState(!1),C=D(t,w=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,w,o,r)}),p=ve(),v=i.useRef("touch"),y=()=>{r||(c.onValueChange(o),c.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return m.jsx(ef,{scope:n,value:o,disabled:r,textId:p,isSelected:u,onItemTextChange:i.useCallback(w=>{f(x=>x||((w==null?void 0:w.textContent)??"").trim())},[]),children:m.jsx(Ut.ItemSlot,{scope:n,value:o,disabled:r,textValue:d,children:m.jsx(Y.div,{role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...a,ref:C,onFocus:T(a.onFocus,()=>g(!0)),onBlur:T(a.onBlur,()=>g(!1)),onClick:T(a.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:T(a.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:T(a.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:T(a.onPointerMove,w=>{var x;v.current=w.pointerType,r?(x=l.onItemLeave)==null||x.call(l):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:T(a.onPointerLeave,w=>{var x;w.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:T(a.onKeyDown,w=>{var E;((E=l.searchRef)==null?void 0:E.current)!==""&&w.key===" "||(Fd.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});vi.displayName=Mt;var et="SelectItemText",gi=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,a=Me(et,n),c=Ie(et,n),l=hi(et,n),u=Hd(et,n),[d,f]=i.useState(null),h=D(t,y=>f(y),l.onItemTextChange,y=>{var w;return(w=c.itemTextRefCallback)==null?void 0:w.call(c,y,l.value,l.disabled)}),g=d==null?void 0:d.textContent,C=i.useMemo(()=>m.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return q(()=>(p(C),()=>v(C)),[p,v,C]),m.jsxs(m.Fragment,{children:[m.jsx(Y.span,{id:l.textId,...s,ref:h}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?it.createPortal(s.children,a.valueNode):null]})});gi.displayName=et;var yi="SelectItemIndicator",wi=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return hi(yi,n).isSelected?m.jsx(Y.span,{"aria-hidden":!0,...o,ref:t}):null});wi.displayName=yi;var wn="SelectScrollUpButton",xi=i.forwardRef((e,t)=>{const n=Ie(wn,e.__scopeSelect),o=Xn(wn,e.__scopeSelect),[r,s]=i.useState(!1),a=D(t,o.onScrollButtonChange);return q(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?m.jsx(Ei,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});xi.displayName=wn;var xn="SelectScrollDownButton",Ci=i.forwardRef((e,t)=>{const n=Ie(xn,e.__scopeSelect),o=Xn(xn,e.__scopeSelect),[r,s]=i.useState(!1),a=D(t,o.onScrollButtonChange);return q(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;s(d)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?m.jsx(Ei,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});Ci.displayName=xn;var Ei=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=Ie("SelectScrollButton",n),a=i.useRef(null),c=Kt(n),l=i.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return i.useEffect(()=>()=>l(),[l]),q(()=>{var d;const u=c().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[c]),m.jsx(Y.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:T(r.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(o,50))}),onPointerMove:T(r.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),a.current===null&&(a.current=window.setInterval(o,50))}),onPointerLeave:T(r.onPointerLeave,()=>{l()})})}),tf="SelectSeparator",nf=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return m.jsx(Y.div,{"aria-hidden":!0,...o,ref:t})});nf.displayName=tf;var Cn="SelectArrow",of=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Gt(n),s=Me(Cn,n),a=Ie(Cn,n);return s.open&&a.position==="popper"?m.jsx(Ps,{...r,...o,ref:t}):null});of.displayName=Cn;var rf="SelectBubbleInput",bi=i.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const r=i.useRef(null),s=D(o,r),a=$d(t);return i.useEffect(()=>{const c=r.current;if(!c)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&d){const f=new Event("change",{bubbles:!0});d.call(c,t),c.dispatchEvent(f)}},[a,t]),m.jsx(Y.select,{...n,style:{...Ts,...n.style},ref:s,defaultValue:t})});bi.displayName=rf;function Si(e){return e===""||e===void 0}function Ri(e){const t=ee(e),n=i.useRef(""),o=i.useRef(0),r=i.useCallback(a=>{const c=n.current+a;t(c),function l(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}(c)},[t]),s=i.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function Pi(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=sf(e,Math.max(s,0));r.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function sf(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var kf=ti,Wf=oi,Bf=si,Hf=ii,Vf=ci,Uf=ai,Kf=fi,Gf=vi,Yf=gi,zf=wi,Xf=xi,Zf=Ci;export{Tf as A,hf as C,$f as D,wf as I,vf as L,Nf as O,mf as P,ff as R,lf as S,pf as T,Bf as V,xf as a,yf as b,gf as c,Ef as d,bf as e,Sf as f,Rf as g,Pf as h,If as i,Of as j,Df as k,jf as l,Lf as m,_f as n,kf as o,Wf as p,Hf as q,Vf as r,Uf as s,Kf as t,Gf as u,zf as v,Yf as w,Xf as x,Zf as y};

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.