async function e(e,t){let n=await fetch(e,{...t,...t?.headers&&{headers:t.headers}});if(!n.ok){let e=`An error occurred while fetching the data.`;try{e=(await n.json())?.error?.message||e}catch{}let t=Error(e);throw t.info=e,t.status=n.status,t}return n.text()}export{e as t};
//# sourceMappingURL=text-fetcher-e-DKQHg9.mjs.map