1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="2a9106f0-b1b3-6745-9dab-48e1e819bb35")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,418393,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(271645);function o(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}"u">typeof window&&window.document&&window.document.createElement;var i=e.i(820783),l=globalThis?.document?n.useLayoutEffect:()=>{};n[" useEffectEvent ".trim().toString()],n[" useInsertionEffect ".trim().toString()];var a=n[" useInsertionEffect ".trim().toString()]||l;function s({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){let[i,l,u]=function({defaultProp:e,onChange:t}){let[r,o]=n.useState(e),i=n.useRef(r),l=n.useRef(t);return a(()=>{l.current=t},[t]),n.useEffect(()=>{i.current!==r&&(l.current?.(r),i.current=r)},[r,i]),[r,o,l]}({defaultProp:t,onChange:r}),c=void 0!==e,d=c?e:i;{let t=n.useRef(void 0!==e);n.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}t.current=c},[c,o])}return[d,n.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&u.current?.(r)}else l(t)},[c,e,l,u])]}Symbol("RADIX:SYNC_STATE");var u=e.i(174080),c=Symbol("radix.slottable");function d(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}var f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{var o,l;let a,s,u,c=(l=o=`Primitive.${r}`,(a=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){var l;let e,a,s=(l=r,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,i.composeRefs)(t,s):s),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${l}.SlotClone`,s=a,(u=n.forwardRef((e,r)=>{let{children:o,...i}=e,l=n.Children.toArray(o),a=l.find(d);if(a){let e=a.props.children,o=l.map(t=>t!==a?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,t.jsx)(s,{...i,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,t.jsx)(s,{...i,ref:r,children:o})})).displayName=`${o}.Slot`,u),f=n.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(o?c:r,{...i,ref:n})});return f.displayName=`Primitive.${r}`,{...e,[r]:f}},{});function p(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function m(e){var r;let o,l=(r=e,(o=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){var l;let e,a,s=(l=r,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,i.composeRefs)(t,s):s),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${r}.SlotClone`,o),a=n.forwardRef((e,r)=>{let{children:o,...i}=e,a=n.Children.toArray(o),s=a.find(v);if(s){let e=s.props.children,o=a.map(t=>t!==s?t:n.Children.count(e)>
21?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,t.jsx)(l,{...i,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,t.jsx)(l,{...i,ref:r,children:o})});return a.displayName=`${e}.Slot`,a}"u">typeof window&&window.document&&window.document.createElement;var h=Symbol("radix.slottable");function v(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}function y(e){let r=e+"CollectionProvider",[o,l]=function(e,r=[]){let o=[],i=()=>{let t=o.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(r,i){let l=n.createContext(i),a=o.length;o=[...o,i];let s=r=>{let{scope:o,children:i,...s}=r,u=o?.[e]?.[a]||l,c=n.useMemo(()=>s,Object.values(s));return(0,t.jsx)(u.Provider,{value:c,children:i})};return s.displayName=r+"Provider",[s,function(t,o){let s=o?.[e]?.[a]||l,u=n.useContext(s);if(u)return u;if(void 0!==i)return i;throw Error(`\`${t}\` must be used within \`${r}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...r)]}(r),[a,s]=o(r,{collectionRef:{current:null},itemMap:new Map}),u=e=>{let{scope:r,children:o}=e,i=n.default.useRef(null),l=n.default.useRef(new Map).current;return(0,t.jsx)(a,{scope:r,itemMap:l,collectionRef:i,children:o})};u.displayName=r;let c=e+"CollectionSlot",d=m(c),f=n.default.forwardRef((e,r)=>{let{scope:n,children:o}=e,l=s(c,n),a=(0,i.useComposedRefs)(r,l.collectionRef);return(0,t.jsx)(d,{ref:a,children:o})});f.displayName=c;let p=e+"CollectionItemSlot",h="data-radix-collection-item",v=m(p),y=n.default.forwardRef((e,r)=>{let{scope:o,children:l,...a}=e,u=n.default.useRef(null),c=(0,i.useComposedRefs)(r,u),d=s(p,o);return n.default.useEffect(()=>(d.itemMap.set(u,{ref:u,...a}),()=>void d.itemMap.delete(u))),(0,t.jsx)(v,{...{[h]:""},ref:c,children:l})});return y.displayName=p,[{Provider:u,Slot:f,ItemSlot:y},function(t){let r=s(e+"CollectionConsumer",t);return n.default.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}var w=new WeakMap;function g(e,t){var r,n;let o,i,l;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=(r=e,n=t,o=r.length,(l=(i=x(n))>=0?i:o+i)<0||l>=o?-1:l);return -1===a?void 0:e[a]}function x(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],w.set(this,!0)}set(e,t){return w.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,o=this.has(t),i=this.#e.length,l=x(e),a=l>=0?l:i+l,s=a<0||a>=i?-1:a;if(s===this.size||o&&s===this.size-1||-1===s)return this.set(t,r),this;let u=this.size+ +!o;l<0&&a++;let c=[...this.#e],d=!1;for(let e=a;e<u;e++)if(a===e){let i=c[e];c[e]===t&&(i=c[e+1]),o&&this.delete(t),n=this.get(i),this.set(t,r)}else{d||c[e-1]!==t||(d=!0);let r=c[d?e:e-1],o=n;n=this.get(r),this.delete(r),this.set(r,o)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=g(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=g(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return g(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(...e){let[t,r]=e,n=0,o=r??this.at(0);for(let r of this)o=0===n&&1===e.length?r:Reflect.apply(t,this,[o,r,n,this]),n++;return o}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let o=this.at(r);n=r===this.size-1&&1===e.length?o:Reflect.apply(t,this,[n,o,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}});var R=n.createContext(void 0),b=e.i(726330),C=e.i(303536),N=e.i(765491),j=globalThis?.document?n.useLayoutEffect:()=>{},M=n[" useId ".trim().toString()]||(()=>void 0),S=0;function _(e){let[t,r]=n.useState(M());return j(()=>{e||r(e=>e??String(S++))},[e]),e||(t?`radix-${t}`:"")}var E=e.i(853660),D=e.i(774606),I=e=>{var t;let r,o,{present:l,children:a}=e,s=function(e){var t,r;let[o,i]=n.useState(),l=n.useRef(null),a=n.useRef(e),s=n.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>
2r[e][t]??e,t));return n.useEffect(()=>{let e=P(l.current);s.current="mounted"===u?e:"none"},[u]),j(()=>{let t=l.current,r=a.current;if(r!==e){let n=s.current,o=P(t);e?c("MOUNT"):"none"===o||t?.display==="none"?c("UNMOUNT"):r&&n!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),j(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,r=r=>{let n=P(l.current).includes(CSS.escape(r.animationName));if(r.target===o&&n&&(c("ANIMATION_END"),!a.current)){let r=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=r)})}},n=e=>{e.target===o&&(s.current=P(l.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}c("ANIMATION_END")},[o,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:n.useCallback(e=>{l.current=e?getComputedStyle(e):null,i(e)},[])}}(l),u="function"==typeof a?a({present:s.isPresent}):n.Children.only(a),c=(0,i.useComposedRefs)(s.ref,(t=u,(o=(r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.ref:(o=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof a||s.isPresent?n.cloneElement(u,{ref:c}):null};function P(e){return e?.animationName||"none"}function O(e){var r;let o,l=(r=e,(o=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){var l;let e,a,s=(l=r,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,i.composeRefs)(t,s):s),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${r}.SlotClone`,o),a=n.forwardRef((e,r)=>{let{children:o,...i}=e,a=n.Children.toArray(o),s=a.find(A);if(s){let e=s.props.children,o=a.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,t.jsx)(l,{...i,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,t.jsx)(l,{...i,ref:r,children:o})});return a.displayName=`${e}.Slot`,a}I.displayName="Presence";var k=Symbol("radix.slottable");function A(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===k}var T=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let o=O(`Primitive.${r}`),i=n.forwardRef((e,n)=>{let{asChild:i,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(i?o:r,{...l,ref:n})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{});function F(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}"u">typeof window&&window.document&&window.document.createElement;var $=globalThis?.document?n.useLayoutEffect:()=>{},L=n[" useId ".trim().toString()]||(()=>void 0),K=0,V=Symbol("radix.slottable");function U(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===V}var W=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{var o,l;let a,s,u,c=(l=o=`Primitive.${r}`,(a=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){var l;let e,a,s=(l=r,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.
2isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,i.composeRefs)(t,s):s),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${l}.SlotClone`,s=a,(u=n.forwardRef((e,r)=>{let{children:o,...i}=e,l=n.Children.toArray(o),a=l.find(U);if(a){let e=a.props.children,o=l.map(t=>t!==a?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,t.jsx)(s,{...i,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,t.jsx)(s,{...i,ref:r,children:o})})).displayName=`${o}.Slot`,u),d=n.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(o?c:r,{...i,ref:n})});return d.displayName=`Primitive.${r}`,{...e,[r]:d}},{});n[" useEffectEvent ".trim().toString()],n[" useInsertionEffect ".trim().toString()];var G=n[" useInsertionEffect ".trim().toString()]||$;Symbol("RADIX:SYNC_STATE");var z=n.createContext(void 0),B="rovingFocusGroup.onEntryFocus",X={bubbles:!1,cancelable:!0},Z="RovingFocusGroup",[Y,H,q]=y(Z),[J,Q]=function(e,r=[]){let o=[],i=()=>
2{let t=o.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(r,i){let l=n.createContext(i),a=o.length;o=[...o,i];let s=r=>{let{scope:o,children:i,...s}=r,u=o?.[e]?.[a]||l,c=n.useMemo(()=>s,Object.values(s));return(0,t.jsx)(u.Provider,{value:c,children:i})};return s.displayName=r+"Provider",[s,function(t,o){let s=o?.[e]?.[a]||l,u=n.useContext(s);if(u)return u;if(void 0!==i)return i;throw Error(`\`${t}\` must be used within \`${r}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...r)]}(Z,[q]),[ee,et]=J(Z),er=n.forwardRef((e,r)=>(0,t.jsx)(Y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(Y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(en,{...e,ref:r})})}));er.displayName=Z;var en=n.forwardRef((e,r)=>{let o,l,{__scopeRovingFocusGroup:a,orientation:s,loop:u=!1,dir:c,currentTabStopId:d,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:m,preventScrollOnEntryFocus:h=!1,...v}=e,y=n.useRef(null),w=(0,i.useComposedRefs)(r,y),g=(o=n.useContext(z),c||o||"ltr"),[x,R]=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){let[i,l,a]=function({defaultProp:e,onChange:t}){let[r,o]=n.useState(e),i=n.useRef(r),l=n.useRef(t);return G(()=>{l.current=t},[t]),n.useEffect(()=>{i.current!==r&&(l.current?.(r),i.current=r)},[r,i]),[r,o,l]}({defaultProp:t,onChange:r}),s=void 0!==e,u=s?e:i;{let t=n.useRef(void 0!==e);n.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}t.current=s},[s,o])}return[u,n.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&a.current?.(r)}else l(t)},[s,e,l,a])]}({prop:d,defaultProp:f??null,onChange:p,caller:Z}),[b,C]=n.useState(!1),N=(l=n.useRef(m),n.useEffect(()=>{l.current=m}),n.useMemo(()=>(...e)=>l.current?.(...e),[])),j=H(a),M=n.useRef(!1),[S,_]=n.useState(0);return n.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(B,N),()=>e.removeEventListener(B,N)},[N]),(0,t.jsx)(ee,{scope:a,orientation:s,dir:g,loop:u,currentTabStopId:x,onItemFocus:n.useCallback(e=>R(e),[R]),onItemShiftTab:n.useCallback(()=>C(!0),[]),onFocusableItemAdd:n.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>_(e=>e-1),[]),children:(0,t.jsx)(W.div,{tabIndex:b||0===S?-1:0,"data-orientation":s,...v,ref:w,style:{outline:"none",...e.style},onMouseDown:F(e.onMouseDown,()=>{M.current=!0}),onFocus:F(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(B,X);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=j().filter(e=>e.focusable);ea([e.find(e=>e.active),e.find(e=>e.id===x),...e].filter(Boolean).map(e=>e.ref.current),h)}}M.current=!1}),onBlur:F(e.onBlur,()=>C(!1))})})}),eo="RovingFocusGroupItem",ei=n.forwardRef((e,r)=>{let{__scopeRovingFocusGroup:o,focusable:i=!0,active:l=!1,tabStopId:a,children:s,...u}=e,c=function(){let[e,t]=n.useState(L());return $(()=>{t(e=>e??String(K++))},[void 0]),e?`radix-${e}`:""}(),d=a||c,f=et(eo,o),p=f.currentTabStopId===d,m=H(o),{onFocusableItemAdd:h,onFocusableItemRemove:v,currentTabStopId:y}=f;return n.useEffect(()=>{if(i)return h(),()=>v()},[i,h,v]),(0,t.jsx)(Y.ItemSlot,{scope:o,id:d,focusable:i,active:l,children:(0,t.jsx)(W.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...u,ref:r,onMouseDown:F(e.onMouseDown,e=>{i?f.onItemFocus(d):e.preventDefault()}),onFocus:F(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:F(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return el[o]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=m().filter(e=>
2e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=f.loop?(r=o,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(i+1)}setTimeout(()=>ea(o))}}),children:"function"==typeof s?s({isCurrentTabStop:p,hasTabStop:null!=y}):s})})});ei.displayName=eo;var el={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ea(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function es(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}var eu=e.i(186312),ec=e.i(985369),ed=["Enter"," "],ef=["ArrowUp","PageDown","End"],ep=["ArrowDown","PageUp","Home",...ef],em={ltr:[...ed,"ArrowRight"],rtl:[...ed,"ArrowLeft"]},eh={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ev="Menu",[ey,ew,eg]=y(ev),[ex,eR]=function(e,r=[]){let o=[],i=()=>{let t=o.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(r,i){let l=n.createContext(i),a=o.length;o=[...o,i];let s=r=>{let{scope:o,children:i,...s}=r,u=o?.[e]?.[a]||l,c=n.useMemo(()=>s,Object.values(s));return(0,t.jsx)(u.Provider,{value:c,children:i})};return s.displayName=r+"Provider",[s,function(t,o){let s=o?.[e]?.[a]||l,u=n.useContext(s);if(u)return u;if(void 0!==i)return i;throw Error(`\`${t}\` must be used within \`${r}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...r)]}(ev,[eg,E.createPopperScope,Q]),eb=(0,E.createPopperScope)(),eC=Q(),[eN,ej]=ex(ev),[eM,eS]=ex(ev),e_=e=>{let r,{__scopeMenu:o,open:i=!1,children:l,dir:a,onOpenChange:s,modal:u=!0}=e,c=eb(o),[d,f]=n.useState(null),p=n.useRef(!1),m=es(s),h=(r=n.useContext(R),a||r||"ltr");return n.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,t.jsx)(E.Root,{...c,children:(0,t.jsx)(eN,{scope:o,open:i,onOpenChange:m,content:d,onContentChange:f,children:(0,t.jsx)(eM,{scope:o,onClose:n.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:h,modal:u,children:l})})})};e_.displayName=ev;var eE=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e,i=eb(n);return(0,t.jsx)(E.Anchor,{...i,...o,ref:r})});eE.displayName="MenuAnchor";var eD="MenuPortal",[eI,eP]=ex(eD,{forceMount:void 0}),eO=e=>{let{__scopeMenu:r,forceMount:n,children:o,container:i}=e,l=ej(eD,r);return(0,t.jsx)(eI,{scope:r,forceMount:n,children:(0,t.jsx)(I,{present:n||l.open,children:(0,t.jsx)(D.Portal,{asChild:!0,container:i,children:o})})})};eO.displayName=eD;var ek="MenuContent",[eA,eT]=ex(ek),eF=n.forwardRef((e,r)=>{let n=eP(ek,e.__scopeMenu),{forceMount:o=n.forceMount,...i}=e,l=ej(ek,e.__scopeMenu),a=eS(ek,e.__scopeMenu);return(0,t.jsx)(ey.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(I,{present:o||l.open,children:(0,t.jsx)(ey.Slot,{scope:e.__scopeMenu,children:a.modal?(0,t.jsx)(e$,{...i,ref:r}):(0,t.jsx)(eL,{...i,ref:r})})})})}),e$=n.forwardRef((e,r)=>{let o=ej(ek,e.__scopeMenu),l=n.useRef(null),a=(0,i.useComposedRefs)(r,l);return n.useEffect(()=>{let e=l.current;if(e)return(0,eu.hideOthers)(e)},[]),(0,t.jsx)(eV,{...e,ref:a,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:p(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})}),eL=n.forwardRef((e,r)=>{let n=ej(ek,e.__scopeMenu);return(0,t.jsx)(eV,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),eK=O("MenuContent.ScrollLock"),eV=n.forwardRef((e,r)=>{let{__scopeMenu:o,loop:l=!1,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:v,onDismiss:y,disableOutsideScroll:w,...g}=e,x=ej(ek,o),R=eS(ek,o),j=eb(o),M=eC(o),S=ew(o),[_,D]=n.useState(null),I=n.useRef(null),P=(0,i.useComposedRefs)(r,I,x.onContentChange),O=n.useRef(0),k=n.useRef(""),A=n.useRef(0),T=n.useRef(null),F=n.useRef("right"),$=n.useRef(0),L=w?ec.RemoveScroll:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(O.current),[]),(0,C.useFocusGuards)();let K=n.useCallback(e=>{var t,r;return F.current===T.current?.side&&(t=e,!!(r=T.current?.area)&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],s=l.x,u=l.y,c=a.x,d=a.y;u>n!=d>n&&r<(c-s)*(n-u)/(d-u)+s&&(o=!o)}return o}({x:t.clientX,y:t.clientY},r))},[]);return(0,t.jsx)(eA,{scope:o,searchRef:k,onItemEnter:n.useCallback(e=>{K(e)&&e.preventDefault()},[K]),onItemLeave:n.useCallback(e=>{K(e)||(I.current?.focus(),D(null))},[K]),onTriggerLeave:n.useCallback(e=>{K(e)&&e.preventDefault()},[K]),pointerGraceTimerRef:A,onPointerGraceIntentChange:n.useCallback(e=>{T.current=e},[]),children:(0,t.jsx)(L,{...w?{as:eK,allowPinchZoom:!0}:void 0,children:(0,t.jsx)(N.FocusScope,{asChild:!0,trapped:a,onMountAutoFocus:p(s,e=>{e.preventDefault(),I.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,t.jsx)(b.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:v,onDismiss:y,children:(0,t.jsx)(er,{asChild:!0,...M,dir:R.dir,orientation:"vertical",loop:l,currentTabStopId:_,onCurrentTabStopIdChange:D,onEntryFocus:p(d,e=>{R.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,t.jsx)(E.Content,{role:"menu","aria-orientation":"vertical","data-state":ti(x.open),"data-radix-menu-content":"",dir:R.dir,...j,...g,ref:P,style:{outline:"none",...g.style},onKeyDown:p(g.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.ke
2y.length;if(t){var o;let t,i,l,a,s,u;"Tab"===e.key&&e.preventDefault(),!r&&n&&(o=e.key,t=k.current+o,i=S().filter(e=>!e.disabled),l=document.activeElement,a=i.find(e=>e.ref.current===l)?.textValue,s=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=r?e.indexOf(r):-1,l=(n=Math.max(i,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(l=l.filter(e=>e!==r));let a=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==r?a:void 0}(i.map(e=>e.textValue),t,a),u=i.find(e=>e.textValue===s)?.ref.current,function e(t){k.current=t,window.clearTimeout(O.current),""!==t&&(O.current=window.setTimeout(()=>e(""),1e3))}(t),u&&setTimeout(()=>u.focus()))}let i=I.current;if(e.target!==i||!ep.includes(e.key))return;e.preventDefault();let l=S().filter(e=>!e.disabled).map(e=>e.ref.current);ef.includes(e.key)&&l.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(l)}),onBlur:p(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),k.current="")}),onPointerMove:p(e.onPointerMove,ts(e=>{let t=e.target,r=$.current!==e.clientX;e.currentTarget.contains(t)&&r&&(F.current=e.clientX>$.current?"right":"left",$.current=e.clientX)}))})})})})})})});eF.displayName=ek;var eU=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e;return(0,t.jsx)(T.div,{role:"group",...o,ref:r})});eU.displayName="MenuGroup";var eW=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e;return(0,t.jsx)(T.div,{...o,ref:r})});eW.displayName="MenuLabel";var eG="MenuItem",ez="menu.itemSelect",eB=n.forwardRef((e,r)=>{let{disabled:o=!1,onSelect:l,...a}=e,s=n.useRef(null),c=eS(eG,e.__scopeMenu),d=eT(eG,e.__scopeMenu),f=(0,i.useComposedRefs)(r,s),m=n.useRef(!1);return(0,t.jsx)(eX,{...a,ref:f,disabled:o,onClick:p(e.onClick,()=>{let e=s.current;if(!o&&e){let t=new CustomEvent(ez,{bubbles:!0,cancelable:!0});e.addEventListener(ez,e=>l?.(e),{once:!0}),e&&u.flushSync(()=>e.dispatchEvent(t)),t.defaultPrevented?m.current=!1:c.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),m.current=!0},onPointerUp:p(e.onPointerUp,e=>{m.current||e.currentTarget?.click()}),onKeyDown:p(e.onKeyDown,e=>{let t=""!==d.searchRef.current;o||t&&" "===e.key||ed.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eB.displayName=eG;var eX=n.forwardRef((e,r)=>{let{__scopeMenu:o,disabled:l=!1,textValue:a,...s}=e,u=eT(eG,o),c=eC(o),d=n.useRef(null),f=(0,i.useComposedRefs)(r,d),[m,h]=n.useState(!1),[v,y]=n.useState("");return n.useEffect(()=>{let e=d.current;e&&y((e.textContent??"").trim())},[s.children]),(0,t.jsx)(ey.ItemSlot,{scope:o,disabled:l,textValue:a??v,children:(0,t.jsx)(ei,{asChild:!0,...c,focusable:!l,children:(0,t.jsx)(T.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...s,ref:f,onPointerMove:p(e.onPointerMove,ts(e=>{l?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:p(e.onPointerLeave,ts(e=>u.onItemLeave(e))),onFocus:p(e.onFocus,()=>h(!0)),onBlur:p(e.onBlur,()=>h(!1))})})})}),eZ=n.forwardRef((e,r)=>{let{checked:n=!1,onCheckedChange:o,...i}=e;return(0,t.jsx)(e2,{scope:e.__scopeMenu,checked:n,children:(0,t.jsx)(eB,{role:"menuitemcheckbox","aria-checked":tl(n)?"mixed":n,...i,ref:r,"data-state":ta(n),onSelect:p(i.onSelect,()=>o?.(!!tl(n)||!n),{checkForDefaultPrevented:!1})})})});eZ.displayName="MenuCheckboxItem";var eY="MenuRadioGroup",[eH,eq]=ex(eY,{value:void 0,onValueChange:()=>{}}),eJ=n.forwardRef((e,r)=>{let{value:n,onValueChange:o,...i}=e,l=es(o);return(0,t.jsx)(eH,{scope:e.__scopeMenu,value:n,onValueChange:l,children:(0,t.jsx)(eU,{...i,ref:r})})});eJ.displayName=eY;var eQ="MenuRadioItem",e0=n.forwardRef((e,r)=>{let{value:n,...o}=e,i=eq(eQ,e.__scopeMenu),l=n===i.value;return(0,t.jsx)(e2,{scope:e.__scopeMenu,checked:l,children:(0,t.jsx)(eB,{role:"menuitemradio","aria-checked":l,...o,ref:r,"data-state":ta(l),onSelect:p(o.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});e0.displayName=eQ;var e1="MenuItemIndicator",[e2,e3]=ex(e1,{checked:!1}
2),e5=n.forwardRef((e,r)=>{let{__scopeMenu:n,forceMount:o,...i}=e,l=e3(e1,n);return(0,t.jsx)(I,{present:o||tl(l.checked)||!0===l.checked,children:(0,t.jsx)(T.span,{...i,ref:r,"data-state":ta(l.checked)})})});e5.displayName=e1;var e4=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e;return(0,t.jsx)(T.div,{role:"separator","aria-orientation":"horizontal",...o,ref:r})});e4.displayName="MenuSeparator";var e8=n.forwardRef((e,r)=>{let{__scopeMenu:n,...o}=e,i=eb(n);return(0,t.jsx)(E.Arrow,{...i,...o,ref:r})});e8.displayName="MenuArrow";var e6="MenuSub",[e7,e9]=ex(e6),te=e=>{let{__scopeMenu:r,children:o,open:i=!1,onOpenChange:l}=e,a=ej(e6,r),s=eb(r),[u,c]=n.useState(null),[d,f]=n.useState(null),p=es(l);return n.useEffect(()=>(!1===a.open&&p(!1),()=>p(!1)),[a.open,p]),(0,t.jsx)(E.Root,{...s,children:(0,t.jsx)(eN,{scope:r,open:i,onOpenChange:p,content:d,onContentChange:f,children:(0,t.jsx)(e7,{scope:r,contentId:_(),triggerId:_(),trigger:u,onTriggerChange:c,children:o})})})};te.displayName=e6;var tt="MenuSubTrigger",tr=n.forwardRef((e,r)=>{let o=ej(tt,e.__scopeMenu),l=eS(tt,e.__scopeMenu),a=e9(tt,e.__scopeMenu),s=eT(tt,e.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=s,f={__scopeMenu:e.__scopeMenu},m=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>m,[m]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,t.jsx)(eE,{asChild:!0,...f,children:(0,t.jsx)(eX,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":a.contentId,"data-state":ti(o.open),...e,ref:(0,i.composeRefs)(r,a.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:p(e.onPointerMove,ts(t=>{s.onItemEnter(t),!t.defaultPrevented&&(e.disabled||o.open||u.current||(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{o.onOpenChange(!0),m()},100)))})),onPointerLeave:p(e.onPointerLeave,ts(e=>{m();let t=o.content?.getBoundingClientRect();if(t){let r=o.content?.dataset.side,n="right"===r,i=t[n?"left":"right"],l=t[n?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+(n?-5:5),y:e.clientY},{x:i,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:i,y:t.bottom}],side:r}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:p(e.onKeyDown,t=>{let r=""!==s.searchRef.current;e.disabled||r&&" "===t.key||em[l.dir].includes(t.key)&&(o.onOpenChange(!0),o.content?.focus(),t.preventDefault())})})})});tr.displayName=tt;var tn="MenuSubContent",to=n.forwardRef((e,r)=>{let o=eP(ek,e.__scopeMenu),{forceMount:l=o.forceMount,...a}=e,s=ej(ek,e.__scopeMenu),u=eS(ek,e.__scopeMenu),c=e9(tn,e.__scopeMenu),d=n.useRef(null),f=(0,i.useComposedRefs)(r,d);return(0,t.jsx)(ey.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(I,{present:l||s.open,children:(0,t.jsx)(ey.Slot,{scope:e.__scopeMenu,children:(0,t.jsx)(eV,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:p(e.onFocusOutside,e=>{e.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:p(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:p(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=eh[u.dir].includes(e.key);t&&r&&(s.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function ti(e){return e?"open":"closed"}function tl(e){return"indeterminate"===e}function ta(e){return tl(e)?"indeterminate":e?"checked":"unchecked"}function ts(e){return t=>"mouse"===t.pointerType?e(t):void 0}to.displayName=tn;var tu=n[" useId ".trim().toString()]||(()=>void 0),tc=0;function td(e){let[t,r]=n.useState(tu());return l(()=>{e||r(e=>e??String(tc++))},[e]),e||(t?`radix-${t}`:"")}var tf="DropdownMenu",[tp,tm]=function(e,r=[]){let o=[],i=()=>
2{let t=o.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(r,i){let l=n.createContext(i),a=o.length;o=[...o,i];let s=r=>{let{scope:o,children:i,...s}=r,u=o?.[e]?.[a]||l,c=n.useMemo(()=>s,Object.values(s));return(0,t.jsx)(u.Provider,{value:c,children:i})};return s.displayName=r+"Provider",[s,function(t,o){let s=o?.[e]?.[a]||l,u=n.useContext(s);if(u)return u;if(void 0!==i)return i;throw Error(`\`${t}\` must be used within \`${r}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...r)]}(tf,[eR]),th=eR(),[tv,ty]=tp(tf),tw=e=>{let{__scopeDropdownMenu:r,children:o,dir:i,open:l,defaultOpen:a,onOpenChange:u,modal:c=!0}=e,d=th(r),f=n.useRef(null),[p,m]=s({prop:l,defaultProp:a??!1,onChange:u,caller:tf});return(0,t.jsx)(tv,{scope:r,triggerId:td(),triggerRef:f,contentId:td(),open:p,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),modal:c,children:(0,t.jsx)(e_,{...d,open:p,onOpenChange:m,dir:i,modal:c,children:o})})};tw.displayName=tf;var tg="DropdownMenuTrigger",tx=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,disabled:l=!1,...a}=e,s=ty(tg,n),u=th(n);return(0,t.jsx)(eE,{asChild:!0,...u,children:(0,t.jsx)(f.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":l?"":void 0,disabled:l,...a,ref:(0,i.composeRefs)(r,s.triggerRef),onPointerDown:o(e.onPointerDown,e=>{!l&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:o(e.onKeyDown,e=>{!l&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tx.displayName=tg;var tR=e=>{let{__scopeDropdownMenu:r,...n}=e,o=th(r);return(0,t.jsx)(eO,{...o,...n})};tR.displayName="DropdownMenuPortal";var tb="DropdownMenuContent",tC=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:i,...l}=e,a=ty(tb,i),s=th(i),u=n.useRef(!1);return(0,t.jsx)(eF,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...l,ref:r,onCloseAutoFocus:o(e.onCloseAutoFocus,e=>{u.current||a.triggerRef.current?.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:o(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.modal||n)&&(u.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)"}})});tC.displayName=tb;var tN=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=th(n);return(0,t.jsx)(eU,{...i,...o,ref:r})});tN.displayName="DropdownMenuGroup";var tj=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=th(n);return(0,t.jsx)(eW,{...i,...o,ref:r})});tj.displayName="DropdownMenuLabel";var tM=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=th(n);return(0,t.jsx)(eB,{...i,...o,ref:r})});tM.displayName="DropdownMenuItem";var tS=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=th(n);return(0,t.jsx)(eZ,{...i,...o,ref:r})});tS.displayName="DropdownMenuCheckboxItem";var t_=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=th(n);return(0,t.jsx)(eJ,{...i,...o,ref:r})});t_.displayName="DropdownMenuRadioGroup";var tE=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=th(n);return(0,t.jsx)(e0,{...i,...o,ref:r})});tE.displayName="DropdownMenuRadioItem";var tD=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=th(n);return(0,t.jsx)(e5,{...i,...o,ref:r})});tD.displayName="DropdownMenuItemIndicator";var tI=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=th(n);return(0,t.jsx)(e4,{...i,...o,ref:r})});tI.displayName="DropdownMenuSeparator",n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=th(n);return(0,t.jsx)(e8,{...i,...o,ref:r})}).displayName="DropdownMenuArrow";
2var tP=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=th(n);return(0,t.jsx)(tr,{...i,...o,ref:r})});tP.displayName="DropdownMenuSubTrigger";var tO=n.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...o}=e,i=th(n);return(0,t.jsx)(to,{...i,...o,ref:r,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)"}})});tO.displayName="DropdownMenuSubContent";var tk=e.i(88653),tA=e.i(846932),tT=e.i(687922),tF=e.i(53009),t$=e.i(364326),tL=e.i(506659),tK=e.i(731876);let tV=n.createContext(null),tU=n.forwardRef((e,n)=>{let o,i,l,a,s,u,c,d=(0,r.c)(14);d[0]!==e?({className:i,inset:l,children:o,...a}=e,d[0]=e,d[1]=o,d[2]=i,d[3]=l,d[4]=a):(o=d[1],i=d[2],l=d[3],a=d[4]);let f=l&&"pl-8";return d[5]!==i||d[6]!==f?(s=(0,tK.cn)("flex cursor-default select-none items-center rounded-lg px-2 py-1.5 text-sm outline-none focus:bg-secondary data-[state=open]:bg-secondary",f,i),d[5]=i,d[6]=f,d[7]=s):s=d[7],d[8]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(tF.ChevronRight,{className:"ml-auto h-4 w-4"}),d[8]=u):u=d[8],d[9]!==o||d[10]!==a||d[11]!==n||d[12]!==s?(c=(0,t.jsxs)(tP,{ref:n,className:s,...a,children:[o,u]}),d[9]=o,d[10]=a,d[11]=n,d[12]=s,d[13]=c):c=d[13],c});tU.displayName=tP.displayName;let tW=n.forwardRef((e,n)=>{let o,i,l,a,s=(0,r.c)(9);return s[0]!==e?({className:o,...i}=e,s[0]=e,s[1]=o,s[2]=i):(o=s[1],i=s[2]),s[3]!==o?(l=(0,tK.cn)("z-50 min-w-[8rem] overflow-hidden rounded-xl border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",o),s[3]=o,s[4]=l):l=s[4],s[5]!==i||s[6]!==n||s[7]!==l?(a=(0,t.jsx)(tO,{ref:n,className:l,...i}),s[5]=i,s[6]=n,s[7]=l,s[8]=a):a=s[8],a});tW.displayName=tO.displayName;let tG=n.forwardRef((e,o)=>{let i,l,a,s,u,c,d,f,p,m,h,v=(0,r.c)(24);v[0]!==e?({className:l,sideOffset:s,children:i,...a}=e,v[0]=e,v[1]=i,v[2]=l,v[3]=a,v[4]=s):(i=v[1],l=v[2],a=v[3],s=v[4]);let y=void 0===s?4:s,[w,g]=n.useState(null),x=n.useRef(!1),[R,b]=n.useState(!1),C=n.useId();v[5]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{null!==e?(x.current=!0,b(!0)):setTimeout(()=>{x.current||b(!1)},50),g(e),null===e&&(x.current=!1)},v[5]=u):u=v[5];let N=u;return v[6]!==l?(c=(0,tK.cn)("z-50 min-w-[8rem] overflow-visible glass-overlay",l),v[6]=l,v[7]=c):c=v[7],v[8]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{x.current=!1,b(!1),g(null)},v[8]=d):d=v[8],v[9]!==w||v[10]!==R||v[11]!==C?(f={hoveredId:w,setHoveredId:N,layoutId:C,isHovering:R},v[9]=w,v[10]=R,v[11]=C,v[12]=f):f=v[12],v[13]!==i?(p=(0,t.jsx)(tL.GlassBubble,{variant:"pill",hoverEffect:"none",tint:"normal",blur:"normal",className:"dropdown-menu-glass p-1",children:(0,t.jsx)("div",{className:"dropdown-menu-content",children:i})}),v[13]=i,v[14]=p):p=v[14],v[15]!==f||v[16]!==p?(m=(0,t.jsx)(tV.Provider,{value:f,children:p}),v[15]=f,v[16]=p,v[17]=m):m=v[17],v[18]!==a||v[19]!==o||v[20]!==y||v[21]!==c||v[22]!==m?(h=(0,t.jsx)(tR,{children:(0,t.jsx)(tC,{ref:o,sideOffset:y,className:c,onMouseLeave:d,...a,children:m})}),v[18]=a,v[19]=o,v[20]=y,v[21]=c,v[22]=m,v[23]=h):h=v[23],h});tG.displayName=tC.displayName;let tz=n.forwardRef((e,o)=>{let i,l,a,s,u,c,d,f,p,m,h,v,y=(0,r.c)(38);y[0]!==e?({className:a,inset:s,children:l,asChild:i,...u}=e,y[0]=e,y[1]=i,y[2]=l,y[3]=a,y[4]=s,y[5]=u):(i=y[1],l=y[2],a=y[3],s=y[4],u=y[5]);let w=n.useContext(tV),g=n.useId();if(i||!w){let e,r,n=s&&"pl-8";return y[6]!==a||y[7]!==n?(e=(0,tK.cn)("relative flex cursor-default select-none items-center rounded-lg px-4 py-3 text-sm outline-none transition-colors focus:bg-secondary focus:text-secondary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n,a),y[6]=a,y[7]=n,y[8]=e):e=y[8],y[9]!==i||y[10]!==l||y[11]!==u||y[12]!==o||y[13]!==e?(r=(0,t.jsx)(tM,{ref:o,asChild:i,className:e,...u,children:l}),y[9]=i,y[10]=l,y[11]=u,y[12]=o,y[13]=e,y[14]=r):r=y[14],r}let{hoveredId:x,setHoveredId:R,layoutId:b,isHovering:C}=w,N=x===g,j=s&&"pl-8";return y[15]!==a||y[16]!==j?(c=(0,tK.cn)("dropdown-menu-item px-4 py-3 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",j,a),y[15]=a,y[16]=j,y[17]=c):c=y[17],y[18]!==g||y[19]!==R?(d=()=>R(g),f=()=>R(g),y[18]=g,y[19]=R,y[20]=d,y[21]=f):(d=y[20],f=y[21]),y[22]!==N||y[23]!==C||y[24]!==b?(p=N&&(0,t.jsx)(tA.motion.div,{layoutId:C?`${b}-dropdown-indicator`:void 0,className:"dropdown-menu-item-bg",initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},transition:C?{type:"spring",stiffness:400,damping:30}:{duration:.15}}),y[22]=N,y[23]=C,y[24]=b,y[25]=p):p=y[25],y[26]!==p?(m=(0,t.jsx)(tk.AnimatePresence,{children:p}),y[26]=p,y[27]=m):m=y[27],y[28]!==l?(h=(0,t.jsx)("span",{className:"dropdown-menu-item-content",children:l}),y[28]=l,y[29]=h):h=y[29],y[30]!==u||y[31]!==o||y[32]!==c||y[33]!==d||y[34]!==f||y[35]!==m||y[36]!==h?(v=(0,t.jsxs)(tM,{ref:o,className:c,onMouseEnter:d,onFocus:f,...u,children:[m,h]}),y[30]=u,y[31]=o,y[32]=c,y[33]=d,y[34]=f,y[35]=m,y[36]=h,y[37]=v):v=y[37],v});tz.displayName=tM.displayName;let tB=n.forwardRef((e,n)=>{let o,i,l,a,s,u,c,d=(0,r.c)(14);return d[0]!==e?({className:l,children:i,checked:o,...a}=e,d[0]=e,d[1]=o,d[2]=i,d[3]=l,d[4]=a):(o=d[1],i=d[2],l=d[3],a=d[4]),d[5]!==l?(s=(0,tK.cn)("relative flex cursor-default select-none items-center rounded-lg py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-secondary focus:text-secondary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",l),d[5]=l,d[6]=s):s=d[6],d[7]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tD,{children:(0,t.jsx)(tT.Check,{className:"h-4 w-4"})})}),d[7]=u):u=d[7],d[8]!==o||d[9]!==i||d[10]!==a||d[11]!==n||d[12]!==s?(c=(0,t.jsxs)(tS,{ref:n,className:s,checked:o,...a,children:[u,i]}),d[8]=o,d[9]=i,d[10]=a,d[11]=n,d[12]=s,d[13]=c):c=d[13],c});tB.displayName=tS.displayName;let tX=n.forwardRef((e,n)=>{let o,i,l,a,s,u,c=(0,r.c)(12);return c[0]!==e?({className:i,children:o,...l}=e,c[0]=e,c[1]=o,c[2]=i,c[3]=l):(o=c[1],i=c[2],l=c[3]),c[4]!==i?(a=(0,tK.cn)("relative flex cursor-default select-none items-center rounded-lg py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-secondary focus:text-secondary-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",i),c[4]=i,c[5]=a):a=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tD,{children:(0,t.jsx)(t$.Circle,{className:"h-2 w-2 fill-current"})})}),c[6]=s):s=c[6],c[7]!==o||c[8]!==l||c[9]!==n||c[10]!==a?(u=(0,t.jsxs)(tE,{ref:n,className:a,...l,children:[s,o]}),c[7]=o,c[8]=l,c[9]=n,c[10]=a,c[11]=u):u=c[11],u});tX.displayName=tE.displayName;let tZ=n.forwardRef((e,n)=>{let o,i,l,a,s,u=(0,r.c)(11);u[0]!==e?({className:o,inset:i,...l}=e,u[0]=e,u[1]=o,u[2]=i,u[3]=l):(o=u[1],i=u[2],l=u[3]);let c=i&&"pl-8";return u[4]!==o||u[5]!==c?(a=(0,tK.cn)("px-2 py-1.5 text-sm font-semibold",c,o),u[4]=o,u[5]=c,u[6]=a):a=u[6],u[7]!==l||u[8]!==n||u[9]!==a?(s=(0,t.jsx)(tj,{ref:n,className:a,...l}),u[7]=l,u[8]=n,u[9]=a,u[10]=s):s=u[10],s});tZ.displayName=tj.displayName;let tY=n.forwardRef((e,n)=>{let o,i,l,a,s=(0,r.c)(9);return s[0]!==e?({className:o,...i}=e,s[0]=e,s[1]=o,s[2]=i):(o=s[1],i=s[2]),s[3]!==o?(l=(0,tK.cn)("mx-4 my-1 h-px bg-muted",o),s[3]=o,s[4]=l):l=s[4],s[5]!==i||s[6]!==n||s[7]!==l?(a=(0,t.jsx)(tI,{ref:n,className:l,...i}),s[5]=i,s[6]=n,s[7]=l,s[8]=a):a=s[8],a});tY.displayName=tI.displayName;let tH=e=>{let n,o,i,l,a=(0,r.c)(8);return a[0]!==e?({className:n,...o}=e,a[0]=e,a[1]=n,a[2]=o):(n=a[1],o=a[2]),a[3]!==n?(i=(0,tK.cn)("ml-auto text-xs tracking-widest opacity-60",n),a[3]=n,a[4]=i):i=a[4],a[5]!==o||a[6]!==i?(l=(0,t.jsx)("span",{className:i,...o}),a[5]=o,a[6]=i,a[7]=l):l=a[7],l};tH.displayName="DropdownMenuShortcut",e.s(["DropdownMenu",0,tw,"DropdownMenuCheckboxItem",0,tB,"DropdownMenuContent",0,tG,"DropdownMenuGroup",0,tN,"DropdownMenuItem",0,tz,"DropdownMenuLabel",0,tZ,"DropdownMenuPortal",0,tR,"DropdownMenuRadioGroup",0,t_,"DropdownMenuRadioItem",0,tX,"DropdownMenuSeparator",0,tY,"DropdownMenuShortcut",0,tH,"DropdownMenuSub",0,e=>{let{__scopeDropdownMenu:r,children:n,open:o,onOpenChange:i,defaultOpen:l}=e,a=th(r),[u,c]=s({prop:o,defaultProp:l??!1,onChange:i,caller:"DropdownMenuSub"});return(0,t.jsx)(te,{...a,open:u,onOpenChange:c,children:n})},"DropdownMenuSubContent",0,tW,"DropdownMenuSubTrigger",0,tU,"DropdownMenuTrigger",0,tx,"useDropdownMenuContext",0,function(){return n.useContext(tV)}],418393)}]); 3 4//# debugId=2a9106f0-b1b3-6745-9dab-48e1e819bb35
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.