import{t as e}from"./index-CQbBgNYK.js";function t(t,n){return e.promise(t,{loading:n.loading,success:n.success,error:e=>(console.error(e),e instanceof Error?e.message:n.error??`Something went wrong`)}),t}export{t};