1var a=(n,t=500)=>{if(typeof n!="string"||n===null||n===void 0)return"";let e=n;e.length>t&&(e=e.substring(0,t));let r="",i=0,s=3;for(;e!==r&&i<s&&e.includes("%");){r=e;try{e=decodeURIComponent(e),i++}catch{break}}return e=e.replace(/<[^>]*>/g,""),e=e.replace(/\0/g,""),e.trim()},p=n=>{let t=a(n,1e3);return t=t.replace(/\.{2,}/g,""),t=t.replace(/\\/g,"/"),t=t.replace(/\/+/g,"/"),t=t.replace(/\0/g,""),t&&!t.startsWith("/")&&(t="/"+t),t},u=(n,t)=>{if(!n||n==="?")return"";let e=new URLSearchParams(n),r=new URLSearchParams;for(let[s,g]of e.entries()){if(t&&!t.includes(s))continue;let c=a(s,100),o=a(g,500);c&&o&&r.set(c,o)}let i=r.toString();return i?`?${i}`:""};export{a,p as b,u 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.