1import{a as u}from"./react-router-BaecbKjl.js";import{j as h}from"./jsx-runtime-BXHdZtXm.js";function w(e,s){const o=u.createContext(s),a=r=>{const{children:t,...n}=r,c=u.useMemo(()=>n,Object.values(n));return h.jsx(o.Provider,{value:c,children:t})};a.displayName=e+"Provider";function i(r){const t=u.useContext(o);if(t)return t;if(s!==void 0)return s;throw new Error(`\`${r}\` must be used within \`${e}\``)}return[a,i]}function _(e,s=[]){let o=[];function a(r,t){const n=u.createContext(t),c=o.length;o=[...o,t];const d=p=>{var S;const{scope:x,children:f,...m}=p,v=((S=x==null?void 0:x[e])==null?void 0:S[c])||n,P=u.useMemo(()=>m,Object.values(m));return h.jsx(v.Provider,{value:P,children:f})};d.displayName=r+"Provider";function C(p,x){var v;const f=((v=x==null?void 0:x[e])==null?void 0:v[c])||n,m=u.useContext(f);if(m)return m;if(t!==void 0)return t;throw new Error(`\`${p}\` must be used within \`${r}\``)}return[d,C]}const i=()=>{const r=o.map(t=>u.createContext(t));return function(n){const c=(n==null?void 0:n[e])||r;return u.useMemo(()=>({[`__scope${e}`]:{...n,[e]:c}}),[n,c])}};return i.scopeName=e,[a,l(i,...s)]}function l(...e){const s=e[0];if(e.length===1)return s;const o=()=>{const a=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const t=a.reduce((n,{useScope:c,scopeName:d})=>{const p=c(r)[`__scope${d}`];return{...n,...p}},{});return u.useMemo(()=>({[`__scope${s.scopeName}`]:t}),[t])}};return o.scopeName=s.scopeName,o}export{w as a,_ as c};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.