async function o(t,n){let r=await fetch(t,n);if(!r.ok){let e=new Error("An error occurred while fetching the data.");throw e.info=(await r.json()).error,e.status=r.status,e}return r.json()}export{o as a};
