import{j as y,k as o,H as _,l as t,C as g,m as a,o as i,q as d,u as m,v as p}from"./BfGs3WDN.js";function E(n,r){let s=null,f=t;var l;if(t){s=m;for(var e=p(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=a(e);if(e===null)i(!1);else{var u=a(e);e.remove(),d(u)}}t||(l=document.head.appendChild(y()));try{o(()=>r(l),_)}finally{f&&(i(!0),d(s))}}export{E as h};