1String.fromCharCode;var e=/#/g,t=/&/g,n=/\//g,r=/=/g,i=/\+/g,a=/%5e/gi,o=/%60/gi,s=/%7c/gi,c=/%20/gi;function l(e){return encodeURI(``+e).replace(s,`|`)}function u(r){return l(typeof r==`string`?r:JSON.stringify(r)).replace(i,`%2B`).replace(c,`+`).replace(e,`%23`).replace(t,`%26`).replace(o,"`").replace(a,`^`).replace(n,`%2F`)}function d(e){return u(e).replace(r,`%3D`)}function f(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function p(e){return f(e.replace(i,` `))}function m(e){return f(e.replace(i,` `))}function h(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=p(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=m(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function g(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${d(e)}=${u(t)}`).join(`&`):`${d(e)}=${u(t)}`:d(e)}function _(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>g(t,e[t])).filter(Boolean).join(`&`)}var v=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,y=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,b=/^([/\\]\s*){2,}[^/\\]/,x=/\/$|\/\?|\/#/,S=/^\.?\//;function C(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?v.test(e):y.test(e)||(t.acceptRelative?b.test(e):!1)}function w(e=``,t){return t?x.test(e):e.endsWith(`/`)}function T(e=``,t){if(!t)return(w(e)?e.slice(0,-1):e)||`/`;if(!w(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function E(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(w(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function D(e=``){return e.startsWith(`/`)}function O(e=``){return D(e)?e:`/`+e}function k(e,t){if(j(t)||C(e))return e;let n=T(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return N(n,e)}function A(e,t){let n=I(e);return n.search=_({...h(n.search),...t}),R(n)}function j(e){return!e||e===`/`}function M(e){return e&&e!==`/`}function N(e,...t){let n=e||``;for(let e of t.filter(e=>M(e)))if(n){let t=e.replace(S,``);n=E(n)+t}else n=e;return n}function P(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&C(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}var F=Symbol.for(`ufo:protocolRelative`);function I(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!C(e,{acceptRelative:!0}))return t?I(t+e):L(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=L(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[F]:!r}}function L(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function R(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[F]?(e.protocol||``)+`//`:``)+i+a+t+n+r}export{k as a,I as i,P as n,O as o,N as r,A as s,C as t};
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.