import{J as e,ht as t,nr as n,pr as r,sr as i}from"./dist-CoD0k1Bd.js";function a(e){let n=t(),a=n?.type.emits,o={};return a?.length||console.warn(`No emitted event found. Please check component: ${n?.type.__name}`),a?.forEach(t=>{o[r(i(t))]=(...n)=>e(t,...n)}),o}function o(r){let a=t(),o=Object.keys(a?.type.props??{}).reduce((e,t)=>{let n=(a?.type.props[t]).default;return n!==void 0&&(e[t]=n),e},{}),s=n(r);return e(()=>{let e={},t=a?.vnode.props??{};return Object.keys(t).forEach(n=>{e[i(n)]=t[n]}),Object.keys({...o,...e}).reduce((e,t)=>(s.value[t]!==void 0&&(e[t]=s.value[t]),e),{})})}function s(t,n){let r=o(t),i=n?a(n):{};return e(()=>({...r.value,...i}))}export{o as n,a as r,s as t};