import{$ as f,R as g,c as a}from"./jwt-decode.esm.fbcfeaec.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="e1b78eb1-79b5-460c-b2ac-0aea2c6d78d5",n._sentryDebugIdIdentifier="sentry-dbid-e1b78eb1-79b5-460c-b2ac-0aea2c6d78d5")}catch{}})();const v=n=>{const e=f({loading:!0,result:null,error:null});let l=null,o=0;const u=(r,t)=>(t===o&&(e.value={loading:!1,result:r,error:null}),r),d=(r,t)=>{t===o&&r.name!=="AbortError"&&(e.value={loading:!1,result:null,error:r})},s=async()=>{l&&l.abort(),l=new AbortController;const r=++o;return e.value={loading:!0,result:e.value.result,error:null},n().then(t=>u(t,r)).catch(t=>d(t,r))};s(),g(()=>{l&&l.abort()});const c=a(()=>e.value.loading),b=a(()=>e.value.result),i=a(()=>e.value.error);return{loading:c,result:b,error:i,refetch:s}};export{v as a};
//# sourceMappingURL=asyncComputed.5a2bb5ad.js.map
