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