"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),o=new WeakMap,s=(t,r)=>{var n;const e=(n=c.getCurrentInstance())==null?void 0:n.proxy;if(e==null)throw new Error("provideLocal must be called in setup");o.has(e)||o.set(e,Object.create(null));const l=o.get(e);l[t]=r,c.provide(t,r)},i=(...t)=>{var r;const n=t[0],e=(r=c.getCurrentInstance())==null?void 0:r.proxy;if(e==null)throw new Error("injectLocal must be called in setup");return o.has(e)&&n in o.get(e)?o.get(e)[n]:c.inject(...t)};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const a=Symbol("RESOURCE_CONTEXT"),u=t=>s(a,t),d=()=>i(a,{name:""});exports.RESOURCE_CONTEXT=a;exports.createResourceProvider=u;exports.useResourceContext=d;
//# sourceMappingURL=resource.js.map
