import{a4asL,rasE,pasw,Hasq,EasB,casb,dasM,Qasx,a5asG,a6asC,a7asV,a8asj,RasK,a9asY,kasz,oasW,was_,fasH,uasT,GasQ}from"./app-BXYcVHqk.js";import{rasJ,SasO,PasX}from"./AppLogoIcon.vue_vue_type_script_setup_true_lang-BzXwPo6R.js";import{qasZ,iasee,uaste,basne}from"./useForwardExpose-Djbxsgaa.js";import{basR,gasP,casae,aasoe}from"./VisuallyHidden-BvthYHr5.js";functionEe(t,e="reka"){return`${e}-${L?.()}`}functionre(t,e){consti=E(t);functiona(d){returne[i.value][d]??i.value}return{state:i,dispatch:d=>{i.value=a(d)}}}functionie(t,e){consti=E({}),a=E("none"),s=E(t),d=t.value?"mounted":"unmounted";letc;constv=e.value?.ownerDocument.defaultView??Z,{state:m,dispatch:u}=re(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),n=o=>{if(ee){constr=newCustomEvent(o,{bubbles:!1,cancelable:!1});e.value?.dispatchEvent(r)}};w(t,async(o,r)=>{consth=r!==o;if(awaitq(),h){constI=a.value,p=N(e.value);o?(u("MOUNT"),n("enter"),p==="none"&&n("after-enter")):p==="none"||p==="undefined"||i.value?.display==="none"?(u("UNMOUNT"),n("leave"),n("after-leave")):r&&I!==p?(u("ANIMATION_OUT"),n("leave")):(u("UNMOUNT"),n("after-leave"))}},{immediate:!0});constl=o=>{constr=N(e.value),h=r.includes(CSS.escape(o.animationName)),I=m.value==="mounted"?"enter":"leave";if(o.target===e.value&&h&&(n(`after-${I}`),u("ANIMATION_END"),!s.value)){constp=e.value.style.animationFillMode;e.value.style.animationFillMode="forwards",c=v?.setTimeout(()=>{e.value?.style.animationFillMode==="forwards"&&(e.value.style.animationFillMode=p)})}o.target===e.value&&r==="none"&&u("ANIMATION_END")},f=o=>{o.target===e.value&&(a.value=N(e.value))},A=w(e,(o,r)=>{o?(i.value=getComputedStyle(o),o.addEventListener("animationstart",f),o.addEventListener("animationcancel",l),o.addEventListener("animationend",l)):(u("ANIMATION_END"),c!==void0&&v?.clearTimeout(c),r?.removeEventListener("animationstart",f),r?.removeEventListener("animationcancel",l),r?.removeEventListener("animationend",l))},{immediate:!0}),g=w(m,()=>{consto=N(e.value);a.value=m.value==="mounted"?o:"none"});returnB(()=>{A(),g()}),{isPresent:b(()=>["mounted","unmountSuspended"].includes(m.value))}}functionN(t){returnt&&getComputedStyle(t).animationName||"none"}varIe=M({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(t,{slots:e,expose:i}){const{present:a,forceMount:s}=x(t),d=E(),{isPresent:c}=ie(a,d);i({present:c});letv=e.default({present:c.value});v=J(v||[]);constm=G();if(v&&v?.length>1){constu=m?.parent?.type.name?`<${m.parent.type.name} />`:"component";thrownewError([`Detected an invalid children for \`${u}\` 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(n=>` - ${n}`).join(`