import{c4 as o,r,ae as f,Y as d,bs as v,c5 as l,c6 as i,c7 as h,c8 as m}from"./index-207e8178.js";function U(t,a={}){const e=a.head||o();if(e)return e.ssr?e.push(t,a):p(e,t,a)}function p(t,a,e={}){const s=r(!1),n=r({});f(()=>{n.value=s.value?{}:m(a)});const c=t.push(n.value,e);return d(n,u=>{c.patch(u)}),h()&&(v(()=>{c.dispose()}),l(()=>{s.value=!0}),i(()=>{s.value=!1})),c}export{U as u};