import{M as e,O as t,U as n,V as r,_ as i,gt as a,wt as o}from"./vue.runtime.esm-bundler-DVLEBHCy.js";import{o as s}from"./dist-F6rBTodE.js";function c(t,r){let i=typeof t==`string`&&!r?`${t}Context`:r,a=Symbol(i);return[n=>{let r=e(a,n);if(r||r===null)return r;throw Error(`Injection \`${a.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(`, `)}`:`\`${t}\``}`)},e=>(n(a,e),e)]}function l(){let e=t(),n=a(),c=i(()=>l());r(()=>{c.value!==l()&&o(n)});function l(){return n.value&&`$el`in n.value&&[`#text`,`#comment`].includes(n.value.$el.nodeName)?n.value.$el.nextElementSibling:s(n)}let u=Object.assign({},e.exposed),d={};for(let t in e.props)Object.defineProperty(d,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(u).length>0)for(let e in u)Object.defineProperty(d,e,{enumerable:!0,configurable:!0,get:()=>u[e]});Object.defineProperty(d,`$el`,{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=d;function f(t){if(n.value=t,t&&(Object.defineProperty(d,`$el`,{enumerable:!0,configurable:!0,get:()=>t instanceof Element?t:t.$el}),!(t instanceof Element)&&!Object.hasOwn(t,`$el`))){let n=t.$.exposed,r=Object.assign({},d);for(let e in n)Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>n[e]});e.exposed=r}}return{forwardRef:f,currentRef:n,currentElement:c}}export{c as n,l as t};