import*as e from"node:async_hooks";import{AsyncLocalStorage as t}from"node:async_hooks";globalThis.AsyncLocalStorage=e.AsyncLocalStorage;var n=globalThis,r=Symbol.for(`vinext.als.registry`),i=n[r]??=new Set,a=class{getStore(){}run(e,t,...n){return t(...n)}exit(e,...t){return e(...t)}enterWith(e){}disable(){}};function o(e){let r=Symbol.for(e),o=n[r]??=typeof t==`function`?new t:new a;return i.add(o),o}function s(e){i.add(e)}function c(e){let t=e;for(let e of i){let n=t;t=()=>e.exit(n)}return t()}export{s as n,c as r,o as t};