1var e=/^[a-zA-Z][a-zA-Z\d+\-.]*:/;function t(e){return!e||e===`/`?e:e.replace(/\/+$/,``)}function n(n){let r=n.trim();if(!r)return r;if(e.test(r))try{let e=new URL(r);return e.pathname=t(e.pathname)||`/`,`${e.origin}${e.pathname}${e.search}${e.hash}`}catch{}let i=r.search(/[?#]/),a=i===-1?r:r.slice(0,i),o=i===-1?``:r.slice(i);return!a||a===`/`?`${a}${o}`:`${t(a)}${o}`}export{n as t}; 2//# sourceMappingURL=canonical-C7oK48da.js.map
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.