import{an as r,M as u,a6 as p,bF as f,aK as m,bC as i,cR as b}from"./index-BKKvzUDD.js";const c="utils/vue/vnode";function g(s){return r(s)&&s.type===u}function y(s){return r(s)&&s.type===f}function C(s){return r(s)&&!g(s)&&!y(s)}const E=s=>{if(!r(s))return m(c,"[getNormalizedProps] must be a VNode"),{};const o=s.props||{},t=(r(s.type)?s.type.props:void 0)||{},e={};return Object.keys(t).forEach(a=>{i(t[a],"default")&&(e[a]=t[a].default)}),Object.keys(o).forEach(a=>{e[b(a)]=o[a]}),e},n=s=>{const o=p(s)?s:[s],t=[];return o.forEach(e=>{var a;p(e)?t.push(...n(e)):r(e)&&((a=e.component)!=null&&a.subTree)?t.push(e,...n(e.component.subTree)):r(e)&&p(e.children)?t.push(...n(e.children)):r(e)&&e.shapeFlag===2?t.push(...n(e.type())):t.push(e)}),t};export{C as a,y as b,n as f,E as g,g as i};
