import{c$ as o,aS as c,bD as d,bC as f,d0 as v,ay as l,aA as i,aw as h,a0 as m}from"./index-UvaAT40e.js";function I(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=c(!1),n=c({});d(()=>{n.value=s.value?{}:v(a)});const r=t.push(n.value,e);return f(n,u=>{r.patch(u)}),m()&&(l(()=>{r.dispose()}),i(()=>{s.value=!0}),h(()=>{s.value=!1})),r}export{I as u};