1import{a}from"/build/_shared/chunk-SL3MII6H.js";import{b as c}from"/build/_shared/chunk-DWMKVSXX.js";var f=[{match:/^\/learn(?=\/|$)/,app:"learn",strip:/^\/learn/},{match:/^\/podcasts(?=\/|$)/,app:"learn"},{match:/^\/store(?=\/|$)/,app:"store",strip:/^\/store/}],p=t=>{let r=t.search(/[?#]/),s=r===-1?t:t.slice(0,r),n=r===-1?"":t.slice(r);for(let{match:e,app:h,strip:i}of f)if(e.test(s)){let o=i?s.replace(i,""):s,m=o.startsWith("/")?o:`/${o}`;return`${a[h]}${m}${n}`}return`${a.www}${s}${n}`},x=t=>{if(t.startsWith("http://")||t.startsWith("https://"))try{let{hostname:r,pathname:s,search:n,hash:e}=new URL(t);return r==="ligonier.org"?p(s+n+e):t}catch(r){return r instanceof Error&&c(r,{context:"convertUrl"}),"/"}return t.startsWith("/")?p(t):"/"};export{x as a};
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.