import{computed as a}from"vue";import{defaultConfig as r}from"../../theme/internal.mjs";function c(e,o){const n=a(()=>e?.value||{}),u=a(()=>n.value.inherit===!1||!o?.value?r:o.value);return a(()=>{if(!e?.value)return o?.value;const t={...u.value.components};return Object.keys(e.value.components||{}).forEach(l=>{t[l]={...t[l],...e.value.components[l]}}),{...u.value,...n.value,token:{...u.value.token,...n.value.token},components:t}})}export{c as default};
