1import{r as c,c as F}from"./react-4ldeB94U.js";function H(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,s,o,a=[],u="",f=e.split("/");for(f[0]||f.shift();s=f.shift();)n=s[0],n==="*"?(a.push(n),u+=s[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=s.indexOf("?",1),o=s.indexOf(".",1),a.push(s.substring(1,~r?r:~o?o:s.length)),u+=~r&&!~o?"(?:/([^/]+?))?":"/([^/]+?)",~o&&(u+=(~r?"?":"")+"\\"+s.substring(o))):u+="/"+s;return{keys:a,pattern:new RegExp("^"+u+(t?"(?=$|/)":"/?$"),"i")}}var O={exports:{}},j={};/** 2 * @license React 3 * use-sync-external-store-shim.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var p=c;function M(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var N=typeof Object.is=="function"?Object.is:M,q=p.useState,T=p.useEffect,z=p.useLayoutEffect,G=p.useDebugValue;function J(e,t){var n=t(),r=q({inst:{value:n,getSnapshot:t}}),s=r[0].inst,o=r[1];return z(function(){s.value=n,s.getSnapshot=t,g(s)&&o({inst:s})},[e,n,t]),T(function(){return g(s)&&o({inst:s}),e(function(){g(s)&&o({inst:s})})},[e]),G(n),n}function g(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!N(e,n)}catch{return!0}}function Q(e,t){return t()}var W=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Q:J;j.useSyncExternalStore=p.useSyncExternalStore!==void 0?p.useSyncExternalStore:W;O.exports=j;var X=O.exports;const Y=F.useInsertionEffect,Z=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ee=Z?c.useLayoutEffect:c.useEffect,te=Y||ee,_=e=>{const t=c.useRef([e,(...n)=>t[0](...n)]).current;return te(()=>{t[0]=e}),t[1]},ne="popstate",x="pushState",S="replaceState",se="hashchange",R=[ne,x,S,se],re=e=>{for(const t of R)addEventListener(t,e);return()=>{for(const t of R)removeEventListener(t,e)}},I=(e,t)=>X.useSyncExternalStore(re,e,t),oe=()=>location.search,ce=({ssrSearch:e=""}={})=>I(oe,()=>e),b=()=>location.pathname,ae=({ssrPath:e}={})=>I(b,e?()=>e:b),ue=(e,{replace:t=!1,state:n=null}={})=>history[t?S:x](n,"",e),ie=(e={})=>[ae(e),ue],k=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[k]>"u"){for(const e of[x,S]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,k,{value:!0})}const fe=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",K=(e="")=>e==="/"?"":e,le=(e,t)=>e[0]==="~"?e.slice(1):K(t)+e,he=(e="",t)=>fe(L(K(e)),L(t)),L=e=>{try{return decodeURI(e)}catch{return e}},D={hook:ie,searchHook:ce,parser:H,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:e=>e},U=c.createContext(D),E=()=>c.useContext(U),V={},$=c.createContext(V),de=()=>c.useContext($),v=e=>{const[t,n]=e.hook(e);return[he(e.base,t),_((r,s)=>n(le(r,e.base),s))]},Ee=()=>v(E()),A=(e,t,n,r)=>{const{pattern:s,keys:o}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),a=s.exec(n)||[],[u,...f]=a;return u!==void 0?[!0,(()=>{const i=o!==!1?Object.fromEntries(o.map((m,h)=>[m,f[h]])):a.groups;let l={...f};return i&&Object.assign(l,i),l})(),...r?[u]:[]]:[!1,null]},pe=({children:e,...t})=>{var l,m;const n=E(),r=t.hook?D:n;let s=r;const[o,a]=((l=t.ssrPath)==null?void 0:l.split("?"))??[];a&&(t.ssrSearch=a,t.ssrPath=o),t.hrefs=t.hrefs??((m=t.hook)==null?void 0:m.hrefs);let u=c.useRef({}),f=u.current,i=f;for(let h in r){const y=h==="base"?r[h]+(t[h]||""):t[h]||r[h];f===i&&y!==i[h]&&(u.current=i={...i}),i[h]=y,y!==r[h]&&(s=i)}return c.createElement(U.Provider,{value:s,children:e})},C=({children:e,component:t},n)=>t?c.createElement(t,{params:n}):typeof e=="function"?e(n):e,me=e=>{let t=c.useRef(V),n=t.current;for(const r in e)e[r]!==n[r]&&(n=e);return Object.keys(e).length===0&&(n=e),t.current=n},ve=({path:e,nest:t,match:n,...r})=>{const s=E(),[o]=v(s),[a,u,f]=n??A(s.parser,e,o,t),i=me({...de(),...u});if(!a)return null;const l=f?c.createElement(pe,{base:f},C(r,i)):C(r,i);return c.createElement($.Provider,{value:i,children:l})},ge=c.forwardRef((e,t)=>
9{const n=E(),[r,s]=v(n),{to:o="",href:a=o,onClick:u,asChild:f,children:i,className:l,replace:m,state:h,...y}=e,w=_(d=>{d.ctrlKey||d.metaKey||d.altKey||d.shiftKey||d.button!==0||(u==null||u(d),d.defaultPrevented||(d.preventDefault(),s(a,e)))}),P=n.hrefs(a[0]==="~"?a.slice(1):n.base+a,n);return f&&c.isValidElement(i)?c.cloneElement(i,{onClick:w,href:P}):c.createElement("a",{...y,onClick:w,href:P,className:l!=null&&l.call?l(r===a):l,children:i,ref:t})}),B=e=>Array.isArray(e)?e.flatMap(t=>B(t&&t.type===c.Fragment?t.props.children:t)):[e],xe=({children:e,location:t})=>{const n=E(),[r]=v(n);for(const s of B(e)){let o=0;if(c.isValidElement(s)&&(o=A(n.parser,s.props.path,t||r,s.props.nest))[0])return c.cloneElement(s,{match:o})}return null};export{ge as L,ve as R,xe as S,Ee as u};
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.