import{J as e,gt as t}from"./runtime-core.esm-bundler-B8D2lM98.js";function n(n,r){let i=typeof n==`string`&&!r?`${n}Context`:r,a=Symbol(i);return[t=>{let r=e(a,t);if(r||r===null)return r;throw Error(`Injection \`${a.toString()}\` not found. Component must be used within ${Array.isArray(n)?`one of the following components: ${n.join(`, `)}`:`\`${n}\``}`)},e=>(t(a,e),e)]}export{n as t};