Error([`Detected an invalid children for \`${d}\` for  \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(f=>`  - ${f}`).join(`
`)].join(`
`))}return()=>o.value||a.value||s.value?xe(t.default({present:s})[0],{ref:d=>{const f=wa(d);return typeof(f==null?void 0:f.hasAttribute)>"u"||(f!=null&&f.hasAttribute("data-radix-popper-content-wrapper")?i.value=f.firstElementChild:i.value=f),f}}):null}});function IR({type:e,defaultValue:t,modelValue:n}){const r=n||t;if(v2(e)&&v2(n)&&v2(t))throw new Error("Either the `type` or the `value` or `default-value` prop must be defined.");if(n!==void 0&&t!==void 0&&typeof n!=typeof t)throw new Error(`Invalid prop \`value\` of value \`${n}\` supplied, should be the same type as the \`defaultValue\` prop, which is \`${t}\`. The \`value\` prop must be:
  ${e==="single"?"- a string":e==="multiple"?"- an array of strings":`- a string
- an array of strings`}
  - \`undefined\``);const a=n!==void 0||t!==void 0;if(e&&a){const o=Array.isArray(n)||Array.isArray(t),i=n!==void 0?"modelValue":"defaultValue",s=i==="modelValue"?typeof n:typeof t;if(e==="single"&&o)return console.error(`Invalid prop \`${i}\` of type ${s} supplied with type \`single\`. The \`modelValue\` prop must be a string or \`undefined\`.
    You can remove the \`type\` prop to let the component infer the type from the ${i} prop.`),"multiple";if(e==="multiple"&&!o)return console.error(`Invalid prop \`${i}\` of type ${s} supplied with type \`multiple\`. The \`modelValue\` prop must be an array of strings or \`undefined\`.
    You can remove the \`type\` prop to let the component infer the type from the ${i} prop.`),"single"}return a?Array.isArray(r)?"multiple":"single":e}function t2e({type:e,defaultValue:t,modelValue:n}){return e||IR({type:e,defaultValue:t,modelValue:n})}function n2e({type:e,defaultValue:t}){return t!==void 0?t:e==="single"?void 0:[]}function r2e(e,t){const n=K(t2e(e)),r=mr(e,"modelValue",t,{defaultValue:n2e(e),passive:e.modelValue===void 0,deep:!0});Pe(()=>[e.type,e.modelValue,e.defaultValue],()=>{const i=IR(e);n.value!==i&&(n.value=i)},{immediate:!0});function a(i){if(n.value==="single")r.value=i===r.value?void 0:i;else{const s=[...r.value||[]];if(s.includes(i)){const c=s.findIndex(u=>u===i);s.splice(c,1)}else s.push(i);r.value=s}}const o=V(()=>n.value==="single");return{modelValue:r,type:n,changeModelValue:a,isSingle:o}}const P1=_e({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=R7();return(n,r)=>y(t)||n.forceMount?(C(),te(d0,{key:0,to:n.to,disabled:n.disabled},[Z(n.$slots,"default")],8,["to","disabled"])):he("",!0)}}),a2e="dismissableLayer.pointerDownOutside",o2e="dismissableLayer.focusOutside";function DR(e,t){const n=t.closest("[data-dismissable-layer]"),r=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),a=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&r===n||a.indexOf(r)<a.indexOf(n))}function i2e(e,t){var i;var n;const r=(i=(n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)!=null?i:globalThis==null?void 0:globalThis.document,a=K(!1),o=K(()=>{});return Cn(s=>{if(!oi)return;const c=async d=>{const f=d.target;if(t!=null&&t.value){if(DR(t.value,f)){a.value=!1;return}if(d.target&&!a.value){let p=function(){A7(a2e,e,h)};const h={originalEvent:d};d.pointerType==="touch"?(r.removeEventListener("click",o.value),o.value=p,r.addEventListener("click",o.value,{once:!0})):p()}else r.removeEventListener("click",o.value);a.value=!1}},u=window.setTimeout(()=>{r.addEventListener("pointerdown",c)},0);s(()=>{window.clearTimeout(u),r.removeEventListener("pointerdown",c),r.removeEventListener("click",o.value)})}),{onPointerDownCapture:()=>a.value=!0}}function s2e(e,t){var o;var n;const r=(o=(n=t==null?void 0:t.value)==null?void 0:n.ownerDocument)!=null?o:globalThis==null?void 0:globalThis.document,a=K(!1);return Cn(i=>{if(!oi)return;const s=async c=>{t!=null&&t.value&&(await st(),!(!t.value||DR(t.value,c.target))&&c.target&&!a.value&&A7(o2e,e,{originalEvent:c}))};r.addEventListener("focusin",s),i(()=>r.removeEventListener("focusin",s))}),{onFocusCapture:()=>a.value=!0,onBlurCapture:()=>a.value=!1}}const Oo=cn({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),k1=_e({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:a,currentElement:o}=tt(),i=V(()=>{var g;var m;return(g=(m=o.value)==null?void 0:m.ownerDocument)!=null?g:globalThis.document}),s=V(()=>Oo.layersRoot),c=V(()=>o.value?Array.from(s.value).indexOf(o.value):-1),u=V(()=>Oo.layersWithOutsidePointerEventsDisabled.size>0),d=V(()=>{const m=Array.from(s.value),[g]=[...Oo.layersWithOutsidePointerEventsDisabled].slice(-1),_=m.indexOf(g);return c.value>=_}),f=i2e(async m=>{const g=[...Oo.branches].some(_=>_==null?void 0:_.contains(m.target));!d.value||g||(r("pointerDownOutside",m),r("interactOutside",m),await st(),m.defaultPrevented||r("dismiss"))},o),p=s2e(m=>{[...Oo.branches].some(g=>g==null?void 0:g.contains(m.target))||(r("focusOutside",m),r("interactOutside",m),m.defaultPrevented||r("dismiss"))},o);D0e("Escape",m=>{c.value===s.value.size-1&&(r("escapeKeyDown",m),m.defaultPrevented||r("dismiss"))});let h;return Cn(m=>{o.value&&(n.disableOutsidePointerEvents&&(Oo.layersWithOutsidePointerEventsDisabled.size===0&&(h=i.value.body.style.pointerEvents,i.value.body.style.pointerEvents="none"),Oo.layersWithOutsidePointerEventsDisabled.add(o.value)),s.value.add(o.value),m(()=>{n.disableOutsidePointerEvents&&Oo.layersWithOutsidePointerEventsDisabled.size===1&&(i.value.body.style.pointerEvents=h)}))}),Cn(m=>{m(()=>{o.value&&(s.value.delete(o.value),Oo.layersWithOutsidePointerEventsDisabled.delete(o.value))})}),(m,g)=>(C(),te(y(ut),{ref:y(a),"as-child":m.asChild,as:m.as,"data-dismissable-layer":"",style:Gt({pointerEvents:u.value?d.value?"auto":"none":void 0}),onFocusCapture:y(p).onFocusCapture,onBlurCapture:y(p).onBlurCapture,onPointerdownCapture:y(f).onPointerDownCapture},{default:U(()=>[Z(m.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),mf="focusScope.autoFocusOnMount",vf="focusScope.autoFocusOnUnmount",R_={bubbles:!1,cancelable:!0};function l2e(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(gi(r,{select:t}),document.activeElement!==n)return!0}function c2e(e){const t=LR(e),n=M_(t,e),r=M_(t.reverse(),e);return[n,r]}function LR(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function M_(e,t){for(const n of e)if(!u2e(n,{upTo:t}))return n}function u2e(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 d2e(e){return e instanceof HTMLInputElement&&"select"in e}function gi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&d2e(e)&&t&&e.select()}}const f2e=g0e(()=>K([]));function p2e(){const e=f2e();return{add(t){const n=e.value[0];t!==n&&(n==null||n.pause()),e.value=I_(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=I_(e.value,t),(n=e.value[0])==null||n.resume()}}}function I_(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function h2e(e){return e.filter(t=>t.tagName!=="A")}const T7=_e({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,r=t,{currentRef:a,currentElement:o}=tt(),i=K(null),s=p2e(),c=cn({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Cn(d=>{if(!oi)return;const f=o.value;if(!n.trapped)return;function p(_){if(c.paused||!f)return;const S=_.target;f.contains(S)?i.value=S:gi(i.value,{select:!0})}function h(_){if(c.paused||!f)return;const S=_.relatedTarget;S!==null&&(f.contains(S)||gi(i.value,{select:!0}))}function m(_){f.contains(i.value)||gi(f)}document.addEventListener("focusin",p),document.addEventListener("focusout",h);const g=new MutationObserver(m);f&&g.observe(f,{childList:!0,subtree:!0}),d(()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",h),g.disconnect()})}),Cn(async d=>{const f=o.value;if(await st(),!f)return;s.add(c);const p=document.activeElement;if(!f.contains(p)){const h=new CustomEvent(mf,R_);f.addEventListener(mf,m=>r("mountAutoFocus",m)),f.dispatchEvent(h),h.defaultPrevented||(l2e(h2e(LR(f)),{select:!0}),document.activeElement===p&&gi(f))}d(()=>{f.removeEventListener(mf,g=>r("mountAutoFocus",g));const h=new CustomEvent(vf,R_),m=g=>{r("unmountAutoFocus",g)};f.addEventListener(vf,m),f.dispatchEvent(h),setTimeout(()=>{h.defaultPrevented||gi(p!=null?p:document.body,{select:!0}),f.removeEventListener(vf,m),s.remove(c)},0)})});function u(d){if(!n.loop&&!n.trapped||c.paused)return;const f=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,p=document.activeElement;if(f&&p){const h=d.currentTarget,[m,g]=c2e(h);m&&g?!d.shiftKey&&p===g?(d.preventDefault(),n.loop&&gi(m,{select:!0})):d.shiftKey&&p===m&&(d.preventDefault(),n.loop&&gi(g,{select:!0})):p===h&&d.preventDefault()}}return(d,f)=>(C(),te(y(ut),{ref_key:"currentRef",ref:a,tabindex:"-1","as-child":d.asChild,as:d.as,onKeydown:u},{default:U(()=>[Z(d.$slots,"default")]),_:3},8,["as-child","as"]))}}),m2e="menu.itemSelect",cp=["Enter"," "],v2e=["ArrowDown","PageUp","Home"],TR=["ArrowUp","PageDown","End"],g2e=[...v2e,...TR];[...cp],[...cp];function _2e(e){return e?"open":"closed"}function up(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function y2e(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const s=t[o].x,c=t[o].y,u=t[i].x,d=t[i].y;c>r!=d>r&&n<(u-s)*(r-c)/(d-c)+s&&(a=!a)}return a}function E2e(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return y2e(n,t)}function dp(e){return e.pointerType==="mouse"}const[NR,b2e]=rn("PopperRoot"),V1=_e({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=K();return b2e({anchor:t,onAnchorChange:n=>t.value=n}),(n,r)=>Z(n.$slots,"default")}}),sl=_e({__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n,currentElement:r}=tt(),a=NR();return Cn(()=>{var o;a.onAnchorChange((o=t.element)!=null?o:r.value)}),(o,i)=>(C(),te(y(ut),{ref:y(n),as:o.as,"as-child":o.asChild},{default:U(()=>[Z(o.$slots,"default")]),_:3},8,["as","as-child"]))}});function S2e(e){return e!==null}function C2e(e){return{name:"transformOrigin",options:e,fn(t){var b,v;var n,r,a;const{placement:o,rects:i,middlewareData:s}=t,c=((n=s.arrow)==null?void 0:n.centerOffset)!==0,u=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[f,p]=fp(o),h={start:"0%",center:"50%",end:"100%"}[p],m=((b=(r=s.arrow)==null?void 0:r.x)!=null?b:0)+u/2,g=((v=(a=s.arrow)==null?void 0:a.y)!=null?v:0)+d/2;let _="",S="";return f==="bottom"?(_=c?h:`${m}px`,S=`${-d}px`):f==="top"?(_=c?h:`${m}px`,S=`${i.floating.height+d}px`):f==="right"?(_=`${-d}px`,S=c?h:`${g}px`):f==="left"&&(_=`${i.floating.width+d}px`,S=c?h:`${g}px`),{data:{x:_,y:S}}}}}function fp(e){const[t,n="center"]=e.split("-");return[t,n]}const OR={side:"bottom",sideOffset:0,align:"center",alignOffset:0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",prioritizePosition:!1},[w2e,A2e]=rn("PopperContent"),U2=_e({inheritAttrs:!1,__name:"PopperContent",props:$E({side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...OR}),emits:["placed"],setup(e,{emit:t}){const n=e,r=t,a=NR(),{forwardRef:o,currentElement:i}=tt(),s=K(),c=K(),{width:u,height:d}=RR(c),f=V(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),p=V(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),h=V(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),m=V(()=>({padding:p.value,boundary:h.value.filter(S2e),altBoundary:h.value.length>0})),g=m0e(()=>[r0e({mainAxis:n.sideOffset+d.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&S_({...m.value}),n.avoidCollisions&&a0e({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?l0e():void 0,...m.value}),!n.prioritizePosition&&n.avoidCollisions&&S_({...m.value}),o0e({...m.value,apply:({elements:T,rects:x,availableWidth:I,availableHeight:B})=>{const{width:O,height:X}=x.reference,q=T.floating.style;q.setProperty("--radix-popper-available-width",`${I}px`),q.setProperty("--radix-popper-available-height",`${B}px`),q.setProperty("--radix-popper-anchor-width",`${O}px`),q.setProperty("--radix-popper-anchor-height",`${X}px`)}}),c.value&&d0e({element:c.value,padding:n.arrowPadding}),C2e({arrowWidth:u.value,arrowHeight:d.value}),n.hideWhenDetached&&i0e({strategy:"referenceHidden",...m.value})]),{floatingStyles:_,placement:S,isPositioned:b,middlewareData:v}=f0e(a.anchor,s,{strategy:"fixed",placement:f,whileElementsMounted:(...T)=>n0e(...T,{animationFrame:n.updatePositionStrategy==="always"}),middleware:g}),A=V(()=>fp(S.value)[0]),w=V(()=>fp(S.value)[1]);AN(()=>{b.value&&r("placed")});const N=V(()=>{var T;return((T=v.value.arrow)==null?void 0:T.centerOffset)!==0}),M=K("");Cn(()=>{i.value&&(M.value=window.getComputedStyle(i.value).zIndex)});const F=V(()=>{var x;var T;return(x=(T=v.value.arrow)==null?void 0:T.x)!=null?x:0}),P=V(()=>{var x;var T;return(x=(T=v.value.arrow)==null?void 0:T.y)!=null?x:0});return A2e({placedSide:A,onArrowChange:T=>c.value=T,arrowX:F,arrowY:P,shouldHideArrow:N}),(T,x)=>{var I,B,O;return C(),G("div",{ref_key:"floatingRef",ref:s,"data-radix-popper-content-wrapper":"",style:Gt({...y(_),transform:y(b)?y(_).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:M.value,"--radix-popper-transform-origin":[(I=y(v).transformOrigin)==null?void 0:I.x,(B=y(v).transformOrigin)==null?void 0:B.y].join(" "),...((O=y(v).hide)==null?void 0:O.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}})},[me(y(ut),Me({ref:y(o)},T.$attrs,{"as-child":n.asChild,as:T.as,"data-side":A.value,"data-align":w.value,style:{animation:y(b)?void 0:"none"}}),{default:U(()=>[Z(T.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4)}}}),R2e=W("polygon",{points:"0,0 30,0 15,10"},null,-1),M2e=_e({__name:"Arrow",props:{width:{default:10},height:{default:5},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const t=e;return tt(),(n,r)=>(C(),te(y(ut),Me(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 30 10",preserveAspectRatio:n.asChild?void 0:"none"}),{default:U(()=>[Z(n.$slots,"default",{},()=>[R2e])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),I2e={top:"bottom",right:"left",bottom:"top",left:"right"},xR=_e({inheritAttrs:!1,__name:"PopperArrow",props:{width:{},height:{},asChild:{type:Boolean},as:{default:"svg"}},setup(e){const{forwardRef:t}=tt(),n=w2e(),r=V(()=>I2e[n.placedSide.value]);return(a,o)=>{var i,s,c,u;return C(),G("span",{ref:d=>{y(n).onArrowChange(d)},style:Gt({position:"absolute",left:(i=y(n).arrowX)!=null&&i.value?`${(s=y(n).arrowX)==null?void 0:s.value}px`:void 0,top:(c=y(n).arrowY)!=null&&c.value?`${(u=y(n).arrowY)==null?void 0:u.value}px`:void 0,[r.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[y(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[y(n).placedSide.value],visibility:y(n).shouldHideArrow.value?"hidden":void 0})},[me(M2e,Me(a.$attrs,{ref:y(t),style:{display:"block"},as:a.as,"as-child":a.asChild,width:a.width,height:a.height}),{default:U(()=>[Z(a.$slots,"default")]),_:3},16,["as","as-child","width","height"])],4)}}}),N7=_e({__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){return tt(),(t,n)=>(C(),te(y(ut),{as:t.as,"as-child":t.asChild,style:{position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:U(()=>[Z(t.$slots,"default")]),_:3},8,["as","as-child"]))}}),D2e=_e({__name:"VisuallyHiddenInput",props:{name:{},value:{},required:{type:Boolean},disabled:{type:Boolean}},setup(e){const t=e,n=V(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((r,a)=>typeof r=="object"?Object.entries(r).map(([o,i])=>({name:`[${a}][${t.name}][${o}]`,value:i})):{name:`[${t.name}][${a}]`,value:r}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([r,a])=>({name:`[${t.name}][${r}]`,value:a})):[]);return(r,a)=>(C(!0),G(Be,null,ct(n.value,o=>(C(),te(N7,{key:o.name,as:"input",type:"hidden",hidden:"",readonly:"",name:o.name,value:o.value,required:r.required,disabled:r.disabled},null,8,["name","value","required","disabled"]))),128))}}),L2e="data-radix-vue-collection-item",[O7,T2e]=rn("CollectionProvider");function x7(e=L2e){const t=K(new Map),n=K(),r=T2e({collectionRef:n,itemMap:t,attrName:e}),{getItems:a}=k7(r),o=V(()=>Array.from(r.itemMap.value.values())),i=V(()=>r.itemMap.value.size);return{getItems:a,reactiveItems:o,itemMapSize:i}}const P7=_e({name:"CollectionSlot",setup(e,{slots:t}){const n=O7(),{primitiveElement:r,currentElement:a}=L7();return Pe(a,()=>{n.collectionRef.value=a.value}),()=>xe(D7,{ref:r},t)}}),T5=_e({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){const r=O7(),{primitiveElement:a,currentElement:o}=L7();return Cn(i=>{if(o.value){const s=sr(o.value);r.itemMap.value.set(s,{ref:o.value,value:e.value}),i(()=>r.itemMap.value.delete(s))}}),()=>xe(D7,{...n,[r.attrName]:"",ref:a},t)}});function k7(e){const t=e!=null?e:O7();return{getItems:()=>{const n=t.collectionRef.value;if(!n)return[];const r=Array.from(n.querySelectorAll(`[${t.attrName}]`));return Array.from(t.itemMap.value.values()).sort((a,o)=>r.indexOf(a.ref)-r.indexOf(o.ref))}}}const[rs,N2e]=rn("ComboboxRoot"),V7=_e({__name:"ComboboxRoot",props:{modelValue:{},defaultValue:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},searchTerm:{},selectedValue:{},multiple:{type:Boolean},disabled:{type:Boolean},name:{},dir:{},filterFunction:{},displayValue:{},resetSearchTermOnBlur:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["update:modelValue","update:open","update:searchTerm","update:selectedValue"],setup(e,{emit:t}){var X;const n=e,r=t,{multiple:a,disabled:o,dir:i}=wn(n),s=ii(i),c=mr(n,"searchTerm",r,{defaultValue:"",passive:n.searchTerm===void 0}),u=mr(n,"modelValue",r,{defaultValue:((X=n.defaultValue)!=null?X:a.value)?[]:void 0,passive:n.modelValue===void 0,deep:!0}),d=mr(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),f=mr(n,"selectedValue",r,{defaultValue:void 0,passive:n.selectedValue===void 0});async function p(q){var $,Q;d.value=q,await st(),q?(u.value&&(Array.isArray(u.value)&&a.value?f.value=($=v().find(H=>{var ve,ge;return((ge=(ve=H.ref)==null?void 0:ve.dataset)==null?void 0:ge.state)==="checked"}))==null?void 0:$.value:f.value=u.value),await st(),(Q=g.value)==null||Q.focus(),B()):(m.value=!1,n.resetSearchTermOnBlur&&F())}function h(q){if(Array.isArray(u.value)&&a.value){const $=u.value.findIndex(H=>Ls(H,q)),Q=[...u.value];$===-1?Q.push(q):Q.splice($,1),u.value=Q}else u.value=q,p(!1)}const m=K(!1),g=K(),_=K(),{forwardRef:S,currentElement:b}=tt(),{getItems:v,reactiveItems:A,itemMapSize:w}=x7("data-radix-vue-combobox-item"),N=K([]);Pe(()=>w.value,()=>{N.value=v().map(q=>q.value)},{immediate:!0,flush:"post"});const M=V(()=>{if(m.value){if(n.filterFunction)return n.filterFunction(N.value,c.value);const q=N.value.filter($=>typeof $=="string");if(q.length)return q.filter($=>{var Q;return $.toLowerCase().includes((Q=c.value)==null?void 0:Q.toLowerCase())})}return N.value});function F(){!a.value&&u.value&&!Array.isArray(u.value)?n.displayValue?c.value=n.displayValue(u.value):typeof u.value!="object"?c.value=u.value.toString():c.value="":c.value=""}const P=V(()=>M.value.findIndex(q=>Ls(q,f.value))),T=V(()=>{var q;return(q=A.value.find($=>Ls($.value,f.value)))==null?void 0:q.ref}),x=V(()=>JSON.stringify(u.value));Pe(x,async()=>{await st(),await st(),F()},{immediate:!n.searchTerm}),Pe(()=>[M.value.length,c.value.length],async([q,$],[Q,H])=>{await st(),await st(),q&&(H>$||P.value===-1)&&(f.value=M.value[0])});const I=D5(b);function B(){var q;T.value instanceof Element&&((q=T.value)==null||q.scrollIntoView({block:"nearest"}))}function O(){T.value instanceof Element&&T.value.focus&&T.value.focus()}return N2e({searchTerm:c,modelValue:u,onValueChange:h,isUserInputted:m,multiple:a,disabled:o,open:d,onOpenChange:p,filteredOptions:M,contentId:"",inputElement:g,selectedElement:T,onInputElementChange:q=>g.value=q,onInputNavigation:async q=>{const $=P.value;$===0&&q==="up"||$===M.value.length-1&&q==="down"||($===-1&&M.value.length||q==="home"?f.value=M.value[0]:q==="end"?f.value=M.value[M.value.length-1]:f.value=M.value[q==="up"?$-1:$+1],await st(),B(),O(),st(()=>{var Q;return(Q=g.value)==null?void 0:Q.focus({preventScroll:!0})}))},onInputEnter:async q=>{var $;M.value.length&&f.value&&T.value instanceof Element&&(q.preventDefault(),q.stopPropagation(),($=T.value)==null||$.click())},selectedValue:f,onSelectedValueChange:q=>f.value=q,parentElement:b,contentElement:_,onContentElementChange:q=>_.value=q}),(q,$)=>(C(),te(y(V1),null,{default:U(()=>[me(y(ut),Me({ref:y(S),style:{pointerEvents:y(d)?"auto":void 0},as:q.as,"as-child":q.asChild,dir:y(s)},q.$attrs),{default:U(()=>[Z(q.$slots,"default",{open:y(d),modelValue:y(u)}),y(I)&&n.name?(C(),te(y(D2e),{key:0,name:n.name,value:y(u)},null,8,["name","value"])):he("",!0)]),_:3},16,["style","as","as-child","dir"])]),_:3}))}}),PR=_e({__name:"ComboboxInput",props:{type:{default:"text"},disabled:{type:Boolean},autoFocus:{type:Boolean},asChild:{type:Boolean},as:{default:"input"}},setup(e){const t=e,n=rs(),{forwardRef:r,currentElement:a}=tt();ht(()=>{const d=a.value.nodeName==="INPUT"?a.value:a.value.querySelector("input");d&&(n.onInputElementChange(d),setTimeout(()=>{t.autoFocus&&(d==null||d.focus())},1))});const o=V(()=>t.disabled||n.disabled.value||!1),i=K();tb(()=>{var d;return i.value=(d=n.selectedElement.value)==null?void 0:d.id});function s(d){n.open.value?n.onInputNavigation(d.key==="ArrowUp"?"up":"down"):n.onOpenChange(!0)}function c(d){n.open.value&&n.onInputNavigation(d.key==="Home"?"home":"end")}function u(d){var f;n.searchTerm.value=(f=d.target)==null?void 0:f.value,n.open.value||n.onOpenChange(!0),n.isUserInputted.value=!0}return(d,f)=>{var p;return C(),te(y(ut),{ref:y(r),as:d.as,"as-child":d.asChild,type:d.type,disabled:o.value,value:y(n).searchTerm.value,"aria-expanded":y(n).open.value,"aria-controls":y(n).contentId,"aria-disabled":(p=o.value)!=null?p:void 0,"aria-activedescendant":i.value,"aria-autocomplete":"list",role:"combobox",autocomplete:"false",onInput:u,onKeydown:[Je(ft(s,["prevent"]),["down","up"]),Je(y(n).onInputEnter,["enter"]),Je(ft(c,["prevent"]),["home","end"])]},{default:U(()=>[Z(d.$slots,"default")]),_:3},8,["as","as-child","type","disabled","value","aria-expanded","aria-controls","aria-disabled","aria-activedescendant","onKeydown"])}}}),B7=_e({__name:"ComboboxAnchor",props:{asChild:{type:Boolean},as:{}},setup(e){const{forwardRef:t}=tt();return(n,r)=>(C(),te(y(sl),{"as-child":""},{default:U(()=>[me(y(ut),Me({ref:y(t),"as-child":n.asChild,as:n.as},n.$attrs),{default:U(()=>[Z(n.$slots,"default")]),_:3},16,["as-child","as"])]),_:3}))}}),kR=_e({__name:"ComboboxTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;tt();const n=rs(),r=V(()=>t.disabled||n.disabled.value||!1);return(a,o)=>{var i;return C(),te(y(ut),Me(t,{type:a.as==="button"?"button":void 0,tabindex:"-1","aria-label":"Show popup","aria-haspopup":"listbox","aria-expanded":y(n).open.value,"aria-controls":y(n).contentId,"data-state":y(n).open.value?"open":"closed",disabled:r.value,"data-disabled":r.value?"":void 0,"aria-disabled":(i=r.value)!=null?i:void 0,onClick:o[0]||(o[0]=s=>y(n).onOpenChange(!y(n).open.value))}),{default:U(()=>[Z(a.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","disabled","data-disabled","aria-disabled"])}}}),O2e=_e({__name:"ComboboxCancel",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;tt();const n=rs();function r(){var a;n.searchTerm.value="",(a=n.inputElement.value)==null||a.focus()}return(a,o)=>(C(),te(y(ut),Me({type:a.as==="button"?"button":void 0},t,{tabindex:"-1",onClick:r}),{default:U(()=>[Z(a.$slots,"default")]),_:3},16,["type"]))}}),[x2e,P2e]=rn("ComboboxGroup"),Yge=_e({__name:"ComboboxGroup",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,{currentRef:n,currentElement:r}=tt(),a=ja(void 0,"radix-vue-combobox-group"),o=rs(),i=K(!1);function s(){if(!r.value)return;const c=r.value.querySelectorAll("[data-radix-vue-combobox-item]:not([data-hidden])");i.value=!!c.length}return L0e(r,()=>{st(()=>{s()})},{childList:!0}),Pe(()=>o.searchTerm.value,()=>{st(()=>{s()})},{immediate:!0}),P2e({id:a}),(c,u)=>jt((C(),te(y(ut),Me(t,{ref_key:"currentRef",ref:n,role:"group","aria-labelledby":y(a)}),{default:U(()=>[Z(c.$slots,"default")]),_:3},16,["aria-labelledby"])),[[Br,i.value]])}}),[Zge,k2e]=rn("ComboboxContent"),V2e=_e({__name:"ComboboxContentImpl",props:{position:{default:"inline"},bodyLock:{type:Boolean},dismissable:{type:Boolean,default:!0},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(e,{emit:t}){const n=e,r=t,{position:a}=wn(n),o=rs();M5(n.bodyLock);const{forwardRef:i,currentElement:s}=tt();L5(o.parentElement);const c=V(()=>n.position==="popper"?n:{}),u=il(c.value);function d(p){o.onSelectedValueChange("")}ht(()=>{o.onContentElementChange(s.value)});const f={boxSizing:"border-box","--radix-combobox-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-combobox-content-available-width":"var(--radix-popper-available-width)","--radix-combobox-content-available-height":"var(--radix-popper-available-height)","--radix-combobox-trigger-width":"var(--radix-popper-anchor-width)","--radix-combobox-trigger-height":"var(--radix-popper-anchor-height)"};return k2e({position:a}),(p,h)=>(C(),te(y(P7),null,{default:U(()=>[p.dismissable?(C(),te(y(k1),{key:0,"as-child":"","disable-outside-pointer-events":p.disableOutsidePointerEvents,onDismiss:h[0]||(h[0]=m=>y(o).onOpenChange(!1)),onFocusOutside:h[1]||(h[1]=m=>{var g;(g=y(o).parentElement.value)!=null&&g.contains(m.target)&&m.preventDefault(),r("focusOutside",m)}),onInteractOutside:h[2]||(h[2]=m=>r("interactOutside",m)),onEscapeKeyDown:h[3]||(h[3]=m=>r("escapeKeyDown",m)),onPointerDownOutside:h[4]||(h[4]=m=>{var g;(g=y(o).parentElement.value)!=null&&g.contains(m.target)&&m.preventDefault(),r("pointerDownOutside",m)})},{default:U(()=>[(C(),te(dn(y(a)==="popper"?y(U2):y(ut)),Me({...p.$attrs,...y(u)},{id:y(o).contentId,ref:y(i),role:"listbox","data-state":y(o).open.value?"open":"closed",style:{display:"flex",flexDirection:"column",outline:"none",...y(a)==="popper"?f:{}},onPointerleave:d}),{default:U(()=>[Z(p.$slots,"default")]),_:3},16,["id","data-state","style"]))]),_:3},8,["disable-outside-pointer-events"])):(C(),te(dn(y(a)==="popper"?y(U2):y(ut)),Me({key:1},{...p.$attrs,...c.value},{id:y(o).contentId,ref:y(i),role:"listbox","data-state":y(o).open.value?"open":"closed",style:{display:"flex",flexDirection:"column",outline:"none",...y(a)==="popper"?f:{}},onPointerleave:d}),{default:U(()=>[Z(p.$slots,"default")]),_:3},16,["id","data-state","style"]))]),_:3}))}}),F7=_e({__name:"ComboboxContent",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},dismissable:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(e,{emit:t}){const n=Ra(e,t),{forwardRef:r}=tt(),a=rs();return a.contentId||(a.contentId=ja(void 0,"radix-vue-combobox-content")),(o,i)=>(C(),te(y(ns),{present:o.forceMount||y(a).open.value},{default:U(()=>[me(V2e,Me({...y(n),...o.$attrs},{ref:y(r)}),{default:U(()=>[Z(o.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),VR=_e({__name:"ComboboxEmpty",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;tt();const n=rs(),r=V(()=>n.filteredOptions.value.length===0);return(a,o)=>r.value?(C(),te(y(ut),Et(Me({key:0},t)),{default:U(()=>[Z(a.$slots,"default",{},()=>[gt("No options")])]),_:3},16)):he("",!0)}});function BR(e){const t=R5({nonce:K()});return V(()=>{var n;return(e==null?void 0:e.value)||((n=t.nonce)==null?void 0:n.value)})}const $7=_e({__name:"ComboboxViewport",props:{nonce:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,{forwardRef:n}=tt(),{nonce:r}=wn(t),a=BR(r);return(o,i)=>(C(),G(Be,null,[me(y(ut),Me({...o.$attrs,...t},{ref:y(n),"data-radix-combobox-viewport":"",role:"presentation",style:{position:"relative",flex:1,overflow:"auto"}}),{default:U(()=>[Z(o.$slots,"default")]),_:3},16),me(y(ut),{as:"style",nonce:y(a)},{default:U(()=>[gt(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-radix-combobox-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-combobox-viewport]::-webkit-scrollbar { display: none; } ")]),_:1},8,["nonce"])],64))}}),[Xge,B2e]=rn("ComboboxItem"),F2e="combobox.select",N5=_e({__name:"ComboboxItem",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,{disabled:a}=wn(n),o=rs();x2e({id:"",options:K([])});const{forwardRef:i}=tt(),s=V(()=>{var g,_;return o.multiple.value&&Array.isArray(o.modelValue.value)?(g=o.modelValue.value)==null?void 0:g.some(S=>Ls(S,n.value)):Ls((_=o.modelValue)==null?void 0:_.value,n.value)}),c=V(()=>Ls(o.selectedValue.value,n.value)),u=ja(void 0,"radix-vue-combobox-item"),d=ja(void 0,"radix-vue-combobox-option"),f=V(()=>o.isUserInputted.value?o.searchTerm.value===""||!!o.filteredOptions.value.find(g=>Ls(g,n.value)):!0);async function p(g){r("select",g),!(g!=null&&g.defaultPrevented)&&!a.value&&g&&o.onValueChange(n.value)}function h(g){if(!g)return;const _={originalEvent:g,value:n.value};A7(F2e,p,_)}async function m(g){await st(),!g.defaultPrevented&&o.onSelectedValueChange(n.value)}if(n.value==="")throw new Error("A <ComboboxItem /> must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.");return B2e({isSelected:s}),(g,_)=>(C(),te(y(T5),{value:g.value},{default:U(()=>[jt(me(y(ut),{id:y(d),ref:y(i),role:"option",tabindex:"-1","aria-labelledby":y(u),"data-highlighted":c.value?"":void 0,"aria-selected":s.value,"data-state":s.value?"checked":"unchecked","aria-disabled":y(a)||void 0,"data-disabled":y(a)?"":void 0,as:g.as,"as-child":g.asChild,"data-hidden":f.value?void 0:!0,onClick:h,onPointermove:m},{default:U(()=>[Z(g.$slots,"default",{},()=>[gt(Ie(g.value),1)])]),_:3},8,["id","aria-labelledby","data-highlighted","aria-selected","data-state","aria-disabled","data-disabled","as","as-child","data-hidden"]),[[Br,f.value]])]),_:3},8,["value"]))}}),FR=_e({__name:"ComboboxPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(C(),te(y(P1),Et(Tt(t)),{default:U(()=>[Z(n.$slots,"default")]),_:3},16))}}),$2e=_e({__name:"MenuAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(C(),te(y(sl),Et(Tt(t)),{default:U(()=>[Z(n.$slots,"default")]),_:3},16))}});function U2e(){const e=K(!1);return ht(()=>{$2("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),$2(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const H2e=_R(U2e),[O5,z2e]=rn(["MenuRoot","MenuSub"],"MenuContext"),[U7,G2e]=rn("MenuRoot"),K2e=_e({__name:"MenuRoot",props:{open:{type:Boolean,default:!1},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t,{modal:a,dir:o}=wn(n),i=ii(o),s=mr(n,"open",r),c=K(),u=H2e();return z2e({open:s,onOpenChange:d=>{s.value=d},content:c,onContentChange:d=>{c.value=d}}),G2e({onClose:()=>{s.value=!1},isUsingKeyboardRef:u,dir:i,modal:a}),(d,f)=>(C(),te(y(V1),null,{default:U(()=>[Z(d.$slots,"default")]),_:3}))}}),q2e="rovingFocusGroup.onEntryFocus",j2e={bubbles:!1,cancelable:!0},W2e={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Y2e(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Z2e(e,t,n){const r=Y2e(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return W2e[r]}function $R(e,t=!1,n){var a;const r=(a=n==null?void 0:n.activeElement)!=null?a:document.activeElement;for(const o of e)if(o===r||(o.focus({preventScroll:t}),document.activeElement!==r))return}function X2e(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const[Q2e,J2e]=rn("RovingFocusGroup"),H7=_e({__name:"RovingFocusGroup",props:{orientation:{default:void 0},dir:{},loop:{type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},preventScrollOnEntryFocus:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){const r=e,a=n,{loop:o,orientation:i,dir:s}=wn(r),c=ii(s),u=mr(r,"currentTabStopId",a,{defaultValue:r.defaultCurrentTabStopId,passive:r.currentTabStopId===void 0}),d=K(!1),f=K(!1),p=K(0),{getItems:h}=x7();function m(_){const S=!f.value;if(_.currentTarget&&_.target===_.currentTarget&&S&&!d.value){const b=new CustomEvent(q2e,j2e);if(_.currentTarget.dispatchEvent(b),a("entryFocus",b),!b.defaultPrevented){const v=h().map(M=>M.ref).filter(M=>M.dataset.disabled!==""),A=v.find(M=>M.getAttribute("data-active")==="true"),w=v.find(M=>M.id===u.value),N=[A,w,...v].filter(Boolean);$R(N,r.preventScrollOnEntryFocus)}}f.value=!1}function g(){setTimeout(()=>{f.value=!1},1)}return t({getItems:h}),J2e({loop:o,dir:c,orientation:i,currentTabStopId:u,onItemFocus:_=>{u.value=_},onItemShiftTab:()=>{d.value=!0},onFocusableItemAdd:()=>{p.value++},onFocusableItemRemove:()=>{p.value--}}),(_,S)=>(C(),te(y(P7),null,{default:U(()=>[me(y(ut),{tabindex:d.value||p.value===0?-1:0,"data-orientation":y(i),as:_.as,"as-child":_.asChild,dir:y(c),style:{outline:"none"},onMousedown:S[0]||(S[0]=b=>f.value=!0),onMouseup:g,onFocus:m,onBlur:S[1]||(S[1]=b=>d.value=!1)},{default:U(()=>[Z(_.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),z7=_e({__name:"RovingFocusItem",props:{tabStopId:{},focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!0},allowShiftKey:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=e,n=Q2e(),r=V(()=>t.tabStopId||ja()),a=V(()=>n.currentTabStopId.value===r.value),{getItems:o}=k7(),{primitiveElement:i,currentElement:s}=L7(),c=V(()=>{var d;return(d=s.value)==null?void 0:d.getRootNode()});ht(()=>{t.focusable&&n.onFocusableItemAdd()}),zn(()=>{t.focusable&&n.onFocusableItemRemove()});function u(d){if(d.key==="Tab"&&d.shiftKey){n.onItemShiftTab();return}if(d.target!==d.currentTarget)return;const f=Z2e(d,n.orientation.value,n.dir.value);if(f!==void 0){if(d.metaKey||d.ctrlKey||d.altKey||!t.allowShiftKey&&d.shiftKey)return;d.preventDefault();let p=[...o().map(h=>h.ref).filter(h=>h.dataset.disabled!=="")];if(f==="last")p.reverse();else if(f==="prev"||f==="next"){f==="prev"&&p.reverse();const h=p.indexOf(d.currentTarget);p=n.loop.value?X2e(p,h+1):p.slice(h+1)}st(()=>$R(p,!1,c.value))}}return(d,f)=>(C(),te(y(T5),null,{default:U(()=>[me(y(ut),{ref_key:"primitiveElement",ref:i,tabindex:a.value?0:-1,"data-orientation":y(n).orientation.value,"data-active":d.active,"data-disabled":d.focusable?void 0:"",as:d.as,"as-child":d.asChild,onMousedown:f[0]||(f[0]=p=>{d.focusable?y(n).onItemFocus(r.value):p.preventDefault()}),onFocus:f[1]||(f[1]=p=>y(n).onItemFocus(r.value)),onKeydown:u},{default:U(()=>[Z(d.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),[UR,ele]=rn("MenuContent"),HR=_e({__name:"MenuContentImpl",props:$E({loop:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},disableOutsideScroll:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},{...OR}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,r=t,a=O5(),o=U7(),{trapFocus:i,disableOutsidePointerEvents:s,loop:c}=wn(n);M7(),M5(s.value);const u=K(""),d=K(0),f=K(0),p=K(null),h=K("right"),m=K(0),g=K(null),{createCollection:_}=I5(),{forwardRef:S,currentElement:b}=tt(),v=_(b);Pe(b,T=>{a.onContentChange(T)});const{handleTypeaheadSearch:A}=I7(v);zn(()=>{window.clearTimeout(d.value)});function w(T){var x,I;return h.value===((x=p.value)==null?void 0:x.side)&&E2e(T,(I=p.value)==null?void 0:I.area)}async function N(T){var x;r("openAutoFocus",T),!T.defaultPrevented&&(T.preventDefault(),(x=b.value)==null||x.focus({preventScroll:!0}))}function M(T){if(T.defaultPrevented)return;const x=T.target.closest("[data-radix-menu-content]")===T.currentTarget,I=T.ctrlKey||T.altKey||T.metaKey,B=T.key.length===1,O=O0e(T,document.activeElement,b.value,{loop:c.value,arrowKeyOptions:"vertical",dir:o==null?void 0:o.dir.value,focus:!0,attributeName:"[data-radix-vue-collection-item]:not([data-disabled])"});if(O)return O==null?void 0:O.focus();if(T.code==="Space"||(x&&(T.key==="Tab"&&T.preventDefault(),!I&&B&&A(T.key)),T.target!==b.value)||!g2e.includes(T.key))return;T.preventDefault();const X=v.value;TR.includes(T.key)&&X.reverse(),up(X)}function F(T){var x,I;(I=(x=T==null?void 0:T.currentTarget)==null?void 0:x.contains)!=null&&I.call(x,T.target)||(window.clearTimeout(d.value),u.value="")}function P(T){var x;if(!dp(T))return;const I=T.target,B=m.value!==T.clientX;if((x=T==null?void 0:T.currentTarget)!=null&&x.contains(I)&&B){const O=T.clientX>m.value?"right":"left";h.value=O,m.value=T.clientX}}return ele({onItemEnter:T=>!!w(T),onItemLeave:T=>{var x;w(T)||((x=b.value)==null||x.focus(),g.value=null)},onTriggerLeave:T=>!!w(T),searchRef:u,pointerGraceTimerRef:f,onPointerGraceIntentChange:T=>{p.value=T}}),(T,x)=>(C(),te(y(T7),{"as-child":"",trapped:y(i),onMountAutoFocus:N,onUnmountAutoFocus:x[7]||(x[7]=I=>r("closeAutoFocus",I))},{default:U(()=>[me(y(k1),{"as-child":"","disable-outside-pointer-events":y(s),onEscapeKeyDown:x[2]||(x[2]=I=>r("escapeKeyDown",I)),onPointerDownOutside:x[3]||(x[3]=I=>r("pointerDownOutside",I)),onFocusOutside:x[4]||(x[4]=I=>r("focusOutside",I)),onInteractOutside:x[5]||(x[5]=I=>r("interactOutside",I)),onDismiss:x[6]||(x[6]=I=>r("dismiss"))},{default:U(()=>[me(y(H7),{"current-tab-stop-id":g.value,"onUpdate:currentTabStopId":x[0]||(x[0]=I=>g.value=I),"as-child":"",orientation:"vertical",dir:y(o).dir.value,loop:y(c),onEntryFocus:x[1]||(x[1]=I=>{r("entryFocus",I),y(o).isUsingKeyboardRef.value||I.preventDefault()})},{default:U(()=>[me(y(U2),{ref:y(S),role:"menu",as:T.as,"as-child":T.asChild,"aria-orientation":"vertical","data-radix-menu-content":"","data-state":y(_2e)(y(a).open.value),dir:y(o).dir.value,side:T.side,"side-offset":T.sideOffset,align:T.align,"align-offset":T.alignOffset,"avoid-collisions":T.avoidCollisions,"collision-boundary":T.collisionBoundary,"collision-padding":T.collisionPadding,"arrow-padding":T.arrowPadding,"prioritize-position":T.prioritizePosition,sticky:T.sticky,"hide-when-detached":T.hideWhenDetached,onKeydown:M,onBlur:F,onPointermove:P},{default:U(()=>[Z(T.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","sticky","hide-when-detached"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),tle=_e({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=UR(),{forwardRef:r}=tt(),a=K(!1);async function o(s){if(!s.defaultPrevented&&dp(s)){if(t.disabled)n.onItemLeave(s);else if(!n.onItemEnter(s)){const c=s.currentTarget;c==null||c.focus({preventScroll:!0})}}}async function i(s){await st(),!s.defaultPrevented&&dp(s)&&n.onItemLeave(s)}return(s,c)=>(C(),te(y(T5),null,{default:U(()=>[me(y(ut),Me({ref:y(r),role:"menuitem",tabindex:"-1"},s.$attrs,{as:s.as,"as-child":s.asChild,"data-radix-vue-collection-item":"","aria-disabled":s.disabled||void 0,"data-disabled":s.disabled?"":void 0,"data-highlighted":a.value?"":void 0,onPointermove:o,onPointerleave:i,onFocus:c[0]||(c[0]=async u=>{await st(),!(u.defaultPrevented||s.disabled)&&(a.value=!0)}),onBlur:c[1]||(c[1]=async u=>{await st(),!u.defaultPrevented&&(a.value=!1)})}),{default:U(()=>[Z(s.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3}))}}),nle=_e({__name:"MenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:a,currentElement:o}=tt(),i=U7(),s=UR(),c=K(!1);async function u(){const d=o.value;if(!n.disabled&&d){const f=new CustomEvent(m2e,{bubbles:!0,cancelable:!0});r("select",f),await st(),f.defaultPrevented?c.value=!1:i.onClose()}}return(d,f)=>(C(),te(tle,Me(n,{ref:y(a),onClick:u,onPointerdown:f[0]||(f[0]=()=>{c.value=!0}),onPointerup:f[1]||(f[1]=async p=>{var h;await st(),!p.defaultPrevented&&(c.value||(h=p.currentTarget)==null||h.click())}),onKeydown:f[2]||(f[2]=async p=>{const h=y(s).searchRef.value!=="";d.disabled||h&&p.key===" "||y(cp).includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})}),{default:U(()=>[Z(d.$slots,"default")]),_:3},16))}}),rle=_e({__name:"MenuRootContentModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,a=Ra(n,r),o=O5(),{forwardRef:i,currentElement:s}=tt();return L5(s),(c,u)=>(C(),te(HR,Me(y(a),{ref:y(i),"trap-focus":y(o).open.value,"disable-outside-pointer-events":y(o).open.value,"disable-outside-scroll":!0,onDismiss:u[0]||(u[0]=d=>y(o).onOpenChange(!1)),onFocusOutside:u[1]||(u[1]=ft(d=>r("focusOutside",d),["prevent"]))}),{default:U(()=>[Z(c.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),ale=_e({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=Ra(e,t),r=O5();return(a,o)=>(C(),te(HR,Me(y(n),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:o[0]||(o[0]=i=>y(r).onOpenChange(!1))}),{default:U(()=>[Z(a.$slots,"default")]),_:3},16))}}),ole=_e({__name:"MenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=Ra(e,t),r=O5(),a=U7();return(o,i)=>(C(),te(y(ns),{present:o.forceMount||y(r).open.value},{default:U(()=>[y(a).modal.value?(C(),te(rle,Et(Me({key:0},{...o.$attrs,...y(n)})),{default:U(()=>[Z(o.$slots,"default")]),_:3},16)):(C(),te(ale,Et(Me({key:1},{...o.$attrs,...y(n)})),{default:U(()=>[Z(o.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),ile=_e({__name:"MenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(C(),te(y(P1),Et(Tt(t)),{default:U(()=>[Z(n.$slots,"default")]),_:3},16))}}),[zR,sle]=rn("DropdownMenuRoot"),lle=_e({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},dir:{},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t;tt();const a=mr(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),o=K(),{modal:i,dir:s}=wn(n),c=ii(s);return sle({open:a,onOpenChange:u=>{a.value=u},onOpenToggle:()=>{a.value=!a.value},triggerId:"",triggerElement:o,contentId:"",modal:i,dir:c}),(u,d)=>(C(),te(y(K2e),{open:y(a),"onUpdate:open":d[0]||(d[0]=f=>nn(a)?a.value=f:null),dir:y(c),modal:y(i)},{default:U(()=>[Z(u.$slots,"default",{open:y(a)})]),_:3},8,["open","dir","modal"]))}}),cle=_e({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=zR(),{forwardRef:r,currentElement:a}=tt();return ht(()=>{n.triggerElement=a}),n.triggerId||(n.triggerId=ja(void 0,"radix-vue-dropdown-menu-trigger")),(o,i)=>(C(),te(y($2e),{"as-child":""},{default:U(()=>[me(y(ut),{id:y(n).triggerId,ref:y(r),type:o.as==="button"?"button":void 0,"as-child":t.asChild,as:o.as,"aria-haspopup":"menu","aria-expanded":y(n).open.value,"aria-controls":y(n).open.value?y(n).contentId:void 0,"data-disabled":o.disabled?"":void 0,disabled:o.disabled,"data-state":y(n).open.value?"open":"closed",onClick:i[0]||(i[0]=async s=>{var c;!o.disabled&&s.button===0&&s.ctrlKey===!1&&((c=y(n))==null||c.onOpenToggle(),await st(),y(n).open.value&&s.preventDefault())}),onKeydown:i[1]||(i[1]=Je(s=>{o.disabled||(["Enter"," "].includes(s.key)&&y(n).onOpenToggle(),s.key==="ArrowDown"&&y(n).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())},["enter","space","arrow-down"]))},{default:U(()=>[Z(o.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),ule=_e({__name:"DropdownMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(C(),te(y(ile),Et(Tt(t)),{default:U(()=>[Z(n.$slots,"default")]),_:3},16))}}),dle=_e({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const n=Ra(e,t);tt();const r=zR(),a=K(!1);function o(i){i.defaultPrevented||(a.value||setTimeout(()=>{var s;(s=r.triggerElement.value)==null||s.focus()},0),a.value=!1,i.preventDefault())}return r.contentId||(r.contentId=ja(void 0,"radix-vue-dropdown-menu-content")),(i,s)=>{var c;return C(),te(y(ole),Me(y(n),{id:y(r).contentId,"aria-labelledby":(c=y(r))==null?void 0:c.triggerId,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)"},onCloseAutoFocus:o,onInteractOutside:s[0]||(s[0]=u=>{var d;if(u.defaultPrevented)return;const f=u.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,h=f.button===2||p;(!y(r).modal.value||h)&&(a.value=!0),(d=y(r).triggerElement.value)!=null&&d.contains(u.target)&&u.preventDefault()})}),{default:U(()=>[Z(i.$slots,"default")]),_:3},16,["id","aria-labelledby"])}}}),fle=_e({__name:"DropdownMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){const n=e,r=wR(t);return tt(),(a,o)=>(C(),te(y(nle),Et(Tt({...n,...y(r)})),{default:U(()=>[Z(a.$slots,"default")]),_:3},16))}}),Qge=_e({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{default:"label"}},setup(e){const t=e;return tt(),(n,r)=>(C(),te(y(ut),Me(t,{onMousedown:r[0]||(r[0]=a=>{!a.defaultPrevented&&a.detail>1&&a.preventDefault()})}),{default:U(()=>[Z(n.$slots,"default")]),_:3},16))}}),[ll,ple]=rn("PopoverRoot"),x5=_e({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},modal:{type:Boolean,default:!1}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t,{modal:a}=wn(n),o=mr(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),i=K(),s=K(!1);return ple({contentId:"",modal:a,open:o,onOpenChange:c=>{o.value=c},onOpenToggle:()=>{o.value=!o.value},triggerElement:i,hasCustomAnchor:s}),(c,u)=>(C(),te(y(V1),null,{default:U(()=>[Z(c.$slots,"default",{open:y(o)})]),_:3}))}}),G7=_e({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e,n=ll(),{forwardRef:r,currentElement:a}=tt();return ht(()=>{n.triggerElement.value=a.value}),(o,i)=>(C(),te(dn(y(n).hasCustomAnchor.value?y(ut):y(sl)),{"as-child":""},{default:U(()=>[me(y(ut),{ref:y(r),type:o.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":y(n).open.value,"aria-controls":y(n).contentId,"data-state":y(n).open.value?"open":"closed",as:o.as,"as-child":t.asChild,onClick:y(n).onOpenToggle},{default:U(()=>[Z(o.$slots,"default")]),_:3},8,["type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),P5=_e({__name:"PopoverPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,r)=>(C(),te(y(P1),Et(Tt(t)),{default:U(()=>[Z(n.$slots,"default")]),_:3},16))}}),GR=_e({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,a=il(n),{forwardRef:o}=tt(),i=ll();return M7(),(s,c)=>(C(),te(y(T7),{"as-child":"",loop:"",trapped:s.trapFocus,onMountAutoFocus:c[5]||(c[5]=u=>r("openAutoFocus",u)),onUnmountAutoFocus:c[6]||(c[6]=u=>r("closeAutoFocus",u))},{default:U(()=>[me(y(k1),{"as-child":"","disable-outside-pointer-events":s.disableOutsidePointerEvents,onPointerDownOutside:c[0]||(c[0]=u=>r("pointerDownOutside",u)),onInteractOutside:c[1]||(c[1]=u=>r("interactOutside",u)),onEscapeKeyDown:c[2]||(c[2]=u=>r("escapeKeyDown",u)),onFocusOutside:c[3]||(c[3]=u=>r("focusOutside",u)),onDismiss:c[4]||(c[4]=u=>y(i).onOpenChange(!1))},{default:U(()=>[me(y(U2),Me(y(a),{id:y(i).contentId,ref:y(o),"data-state":y(i).open.value?"open":"closed",role:"dialog",style:{"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper