text: import{r as e,J as o}from"./vendor.c2cc062a.js";function r(r){const n=e(!1),t=e(!1),a=e(!1),c=new Promise(((e,c)=>{o((()=>{const o=document.createElement("script");o.type="text/javascript",o.onload=function(){n.value=!1,a.value=!0,t.value=!1,e("")},o.onerror=function(e){n.value=!1,a.value=!1,t.value=!0,c(e)},o.src=r.src,document.head.appendChild(o)}))}));return{isLoading:n,error:t,success:a,toPromise:()=>c}}export{r as u};
  