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