1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`[email protected]`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`cac0a65a-beca-4978-85ab-2f3a51469840`,e._sentryDebugIdIdentifier=`sentry-dbid-cac0a65a-beca-4978-85ab-2f3a51469840`)}catch{}})();import{B as e,Ht as t,L as n,Tn as r,ft as i,g as a,jn as o,k as s,rr as c,tt as l,vn as u,wn as d}from"./CjeAHpIR.js";import{i as f,m as p,n as m}from"./B3RB9ad-.js";import{r as h}from"./b5tYb5jF.js";function g(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function _(e){let t=n(),r=t?.type.emits,i={};return r?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),r?.forEach(t=>{i[c(o(t))]=(...n)=>e(t,...n)}),i}function v(e){let t=n(),r=Object.keys(t?.type.props??{}).reduce((e,n)=>{let r=(t?.type.props[n]).default;return r!==void 0&&(e[n]=r),e},{}),i=d(e);return a(()=>{let e={},n=t?.vnode.props??{};return Object.keys(n).forEach(t=>{e[o(t)]=n[t]}),Object.keys({...r,...e}).reduce((e,t)=>(i.value[t]!==void 0&&(e[t]=i.value[t]),e),{})})}function y(e,t){let n=v(e),r=t?_(t):{};return a(()=>({...n.value,...r}))}function b(e,t){let n=u(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function x(e,n){let r=u({}),o=u(`none`),s=u(e),c=e.value?`mounted`:`unmounted`,d,f=n.value?.ownerDocument.defaultView??m,{state:h,dispatch:g}=b(c,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),_=e=>{if(p){let t=new CustomEvent(e,{bubbles:!1,cancelable:!1});n.value?.dispatchEvent(t)}};t(e,async(e,t)=>{let i=t!==e;if(await l(),i){let i=o.value,a=S(n.value);e?(g(`MOUNT`),_(`enter`),a===`none`&&_(`after-enter`)):a===`none`||a===`undefined`||r.value?.display===`none`?(g(`UNMOUNT`),_(`leave`),_(`after-leave`)):t&&i!==a?(g(`ANIMATION_OUT`),_(`leave`)):(g(`UNMOUNT`),_(`after-leave`))}},{immediate:!0});let v=e=>{if(e.target!==n.value)return;let t=S(n.value),r=t.includes(CSS.escape(e.animationName)),i=h.value===`mounted`?`enter`:`leave`;if(r&&(_(`after-${i}`),g(`ANIMATION_END`),!s.value)){let e=n.value.style.animationFillMode;n.value.style.animationFillMode=`forwards`,d=f?.setTimeout(()=>{n.value?.style.animationFillMode===`forwards`&&(n.value.style.animationFillMode=e)})}t===`none`&&g(`ANIMATION_END`)},y=e=>{e.target===n.value&&(o.value=S(n.value))},x=t(n,(e,t)=>{e?(r.value=getComputedStyle(e),e.addEventListener(`animationstart`,y),e.addEventListener(`animationcancel`,v),e.addEventListener(`animationend`,v)):(g(`ANIMATION_END`),d!==void 0&&f?.clearTimeout(d),t?.removeEventListener(`animationstart`,y),t?.removeEventListener(`animationcancel`,v),t?.removeEventListener(`animationend`,v))},{immediate:!0}),C=t(h,()=>{let e=S(n.value);o.value=h.value===`mounted`?e:`none`});return i(()=>{x(),C(),n.value&&(n.value.removeEventListener(`animationstart`,y),n.value.removeEventListener(`animationcancel`,v),n.value.removeEventListener(`animationend`,v)),d!==void 0&&f?.clearTimeout(d)}),{isPresent:a(()=>[`mounted`,`unmountSuspended`].includes(h.value))}}function S(e){return e&&getComputedStyle(e).animationName||`none`}var C=s({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(t,{slots:i,expose:a}){let{present:o,forceMount:s}=r(t),c=u(),{isPresent:l}=x(o,c);a({present:l});let d=i.default({present:l.value});d=h(d||[]);let p=n();if(d&&d?.length>1){let e=p?.parent?.type.name?`<${p.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` 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(e=>` - ${e}`).join(` 2`)].join(` 3`))}return()=>s.value||o.value||l.value?e(i.default({present:l.value})[0],{ref:e=>{let t=f(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?c.value=t.firstElementChild:c.value=t),t}}):null}});export{g as a,_ as i,y as n,v as r,C as t};
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.