1import{c as K,n as j,i as L,g as H,o as z,u as V,p as q}from"./DjckwuGC.js";import{aF as A,bZ as x,b0 as M,aZ as E,bo as _,bC as Z,a$ as y,bF as I,bR as Q,bK as Y,aO as R,aN as G,aI as w,aK as k,bD as J,bP as N,bw as X,aQ as ee,b3 as te,bS as ne,bL as se}from"./CgQ1fbzD.js";import{r as ae,P as ie}from"./ywd6EK70.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9f5878f9-90d8-4a75-9747-5c79112c2dda",e._sentryDebugIdIdentifier="sentry-dbid-9f5878f9-90d8-4a75-9747-5c79112c2dda")}catch{}const[ge,oe]=K("ConfigProvider"),we=A({inheritAttrs:!1,__name:"ConfigProvider",props:{dir:{default:"ltr"},locale:{default:"en"},scrollBody:{type:[Boolean,Object],default:!0},nonce:{default:void 0},useId:{type:Function,default:void 0}},setup(e){const t=e,{dir:n,locale:s,scrollBody:r,nonce:a}=x(t);return oe({dir:n,locale:s,scrollBody:r,nonce:a,useId:t.useId}),(l,i)=>M(l.$slots,"default")}});function re(e,t){const n=E(e);function s(a){return t[n.value][a]??n.value}return{state:n,dispatch:a=>{n.value=s(a)}}}function ue(e,t){var p;const n=E({}),s=E("none"),r=E(e),a=e.value?"mounted":"unmounted";let l;const i=((p=t.value)==null?void 0:p.ownerDocument.defaultView)??j,{state:m,dispatch:f}=re(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),v=c=>{var d;if(L){const D=new CustomEvent(c,{bubbles:!1,cancelable:!1});(d=t.value)==null||d.dispatchEvent(D)}};_(e,async(c,d)=>{var T;const D=d!==c;if(await I(),D){const S=s.value,g=C(t.value);c?(f("MOUNT"),v("enter"),g==="none"&&v("after-enter")):g==="none"||g==="undefined"||((T=n.value)==null?void 0:T.display)==="none"?(f("UNMOUNT"),v("leave"),v("after-leave")):d&&S!==g?(f("ANIMATION_OUT"),v("leave")):(f("UNMOUNT"),v("after-leave"))}},{immediate:!0});const u=c=>{const d=C(t.value),D=d.includes(c.animationName),T=m.value==="mounted"?"enter":"leave";if(c.target===t.value&&D&&(v(`after-${T}`),f("ANIMATION_END"),!r.value)){const S=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",l=i==null?void 0:i.setTimeout(()=>{var g;((g=t.value)==null?void 0:g.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=S)})}c.target===t.value&&d==="none"&&f("ANIMATION_END")},h=c=>{c.target===t.value&&(s.value=C(t.value))},P=_(t,(c,d)=>{c?(n.value=getComputedStyle(c),c.addEventListener("animationstart",h),c.addEventListener("animationcancel",u),c.addEventListener("animationend",u)):(f("ANIMATION_END"),l!==void 0&&(i==null||i.clearTimeout(l)),d==null||d.removeEventListener("animationstart",h),d==null||d.removeEventListener("animationcancel",u),d==null||d.removeEventListener("animationend",u))},{immediate:!0}),o=_(m,()=>{const c=C(t.value);s.value=m.value==="mounted"?c:"none"});return Z(()=>{P(),o()}),{isPresent:y(()=>["mounted","unmountSuspended"].includes(m.value))}}function C(e){return e&&getComputedStyle(e).animationName||"none"}const De=A({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var f;const{present:s,forceMount:r}=x(e),a=E(),{isPresent:l}=ue(s,a);n({present:l});let i=t.default({present:l.value});i=ae(i||[]);const m=Q();if(i&&(i==null?void 0:i.length)>1){const v=(f=m==null?void 0:m.parent)!=null&&f.type.name?`<${m.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${v}\` 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(u=>` - ${u}`).join(` 2`)].join(` 3`))}return()=>r.value||s.value||l.value?Y(t.default({present:l.value})[0],{ref:v=>{const u=H(v);return typeof(u==null?void 0:u.hasAttribute)>"u"||(u!=null&&u.hasAttribute("data-reka-popper-content-wrapper")?a.value=u.firstElementChild:a.value=u),u}}
3):null}}),Pe=A({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=z();return(n,s)=>w(t)||n.forceMount?(k(),R(J,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[M(n.$slots,"default")],8,["to","disabled","defer"])):G("",!0)}});function W(e,t,n){const s=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),s.dispatchEvent(r)}const le="dismissableLayer.pointerDownOutside",ce="dismissableLayer.focusOutside";function $(e,t){const n=t.closest("[data-dismissable-layer]"),s=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),r=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&s===n||r.indexOf(s)<r.indexOf(n))}function de(e,t){var a;const n=((a=t==null?void 0:t.value)==null?void 0:a.ownerDocument)??(globalThis==null?void 0:globalThis.document),s=E(!1),r=E(()=>{});return N(l=>{if(!L)return;const i=async f=>{const v=f.target;if(t!=null&&t.value){if($(t.value,v)){s.value=!1;return}if(f.target&&!s.value){let u=function(){W(le,e,h)};const h={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",r.value),r.value=u,n.addEventListener("click",r.value,{once:!0})):u()}else n.removeEventListener("click",r.value);s.value=!1}},m=window.setTimeout(()=>{n.addEventListener("pointerdown",i)},0);l(()=>{window.clearTimeout(m),n.removeEventListener("pointerdown",i),n.removeEventListener("click",r.value)})}),{onPointerDownCapture:()=>s.value=!0}}function fe(e,t){var r;const n=((r=t==null?void 0:t.value)==null?void 0:r.ownerDocument)??(globalThis==null?void 0:globalThis.document),s=E(!1);return N(a=>{if(!L)return;const l=async i=>{t!=null&&t.value&&(await I(),await I(),!(!t.value||$(t.value,i.target))&&i.target&&!s.value&&W(ce,e,{originalEvent:i}))};n.addEventListener("focusin",l),a(()=>n.removeEventListener("focusin",l))}),{onFocusCapture:()=>s.value=!0,onBlurCapture:()=>s.value=!1}}const b=X({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Te=A({__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,s=t,{forwardRef:r,currentElement:a}=V(),l=y(()=>{var o;return((o=a.value)==null?void 0:o.ownerDocument)??globalThis.document}),i=y(()=>b.layersRoot),m=y(()=>a.value?Array.from(i.value).indexOf(a.value):-1),f=y(()=>b.layersWithOutsidePointerEventsDisabled.size>0),v=y(()=>{const o=Array.from(i.value),[O]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),p=o.indexOf(O);return m.value>=p}),u=de(async o=>{const O=[...b.branches].some(p=>p==null?void 0:p.contains(o.target));!v.value||O||(s("pointerDownOutside",o),s("interactOutside",o),await I(),o.defaultPrevented||s("dismiss"))},a),h=fe(o=>{[...b.branches].some(p=>p==null?void 0:p.contains(o.target))||(s("focusOutside",o),s("interactOutside",o),o.defaultPrevented||s("dismiss"))},a);q("Escape",o=>{m.value===i.value.size-1&&(s("escapeKeyDown",o),o.defaultPrevented||s("dismiss"))});let P;return N(o=>{a.value&&(n.disableOutsidePointerEvents&&(b.layersWithOutsidePointerEventsDisabled.size===0&&(P=l.value.body.style.pointerEvents,l.value.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(a.value)),i.value.add(a.value),o(()=>{n.disableOutsidePointerEvents&&b.layersWithOutsidePointerEventsDisabled.size===1&&(l.value.body.style.pointerEvents=P)}))}),N(o=>{o(()=>{a.value&&(i.value.delete(a.value),b.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(o,O)=>(k(),R(w(ie),{ref:w(r),"as-child":o.asChild,as:o.as,"data-dismissable-layer":"",style:te({pointerEvents:f.value?v.value?"auto":"none":void 0}),onFocusCapture:w(h).onFocusCapture,onBlurCapture:w(h).onBlurCapture,onPointerdownCapture:w(u).onPointerDownCapture},{default:ee(()=>[M(o.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}});function F(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}const Ce="focusScope.autoFocusOnMount",Ie="focusScope.autoFocusOnUnmount",Ne={bubbles:!1,cancelable:!0};function Ae(e,{select:t=!1}={}){const n=F();for(const s of e)if(ye(s,{select:t}),F()!==n)return!0}function Se(e){const t=ve(e),n=U(t,e),s=U(t.reverse(),e);return[n,s]}function ve(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function U(e,t){for(const n of e)if(!me(n,{upTo:t}))return n}function me(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 pe(e){return e instanceof HTMLInputElement&&"select"in e}function ye(e,{select:t=!1}={}){if(e&&e.focus){const n=F();e.focus({preventScroll:!0}),e!==n&&pe(e)&&t&&e.select()}}const B=Symbol("nuxt-ui.portal-target");function _e(e){const t=ne(B,void 0),n=y(()=>typeof e.value=="boolean"||e.value===void 0?(t==null?void 0:t.value)??"body":e.value),s=y(()=>typeof e.value=="boolean"?!e.value:!1);return se(B,y(()=>n.value)),y(()=>({to:n.value,disabled:s.value}))}export{Ce as A,Ne as E,De as P,Te as _,Pe as a,Ae as b,ve as c,Ie as d,Se as e,ye as f,F as g,b as h,ge as i,we as j,B as p,_e as u};
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.