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