vendor: 4,739 bytes, lines 1-5
1// [email protected] downloaded from https://ga.jspm.io/npm:[email protected]/index.mjs 2 3const e={};function t(t){let n=e[t];if(n)return n;n=e[t]=[];for(let e=0;e<128;e++){let t=String.fromCharCode(e);n.push(t)}for(let e=0;e<t.length;e++){let r=t.charCodeAt(e);n[r]=`%`+(`0`+r.toString(16).toUpperCase()).slice(-2)}return n}function n(e,r){typeof r!=`string`&&(r=n.defaultChars);let i=t(r);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t=``;for(let n=0,r=e.length;n<r;n+=3){let a=parseInt(e.slice(n+1,n+3),16);if(a<128){t+=i[a];continue}if((a&224)==192&&n+3<r){let r=parseInt(e.slice(n+4,n+6),16);if((r&192)==128){let e=a<<6&1984|r&63;e<128?t+=`��`:t+=String.fromCharCode(e),n+=3;continue}}if((a&240)==224&&n+6<r){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16);if((r&192)==128&&(i&192)==128){let e=a<<12&61440|r<<6&4032|i&63;e<2048||e>=55296&&e<=57343?t+=`���`:t+=String.fromCharCode(e),n+=6;continue}}if((a&248)==240&&n+9<r){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16),o=parseInt(e.slice(n+10,n+12),16);if((r&192)==128&&(i&192)==128&&(o&192)==128){let e=a<<18&1835008|r<<12&258048|i<<6&4032|o&63;e<65536||e>1114111?t+=`����`:(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(e&1023))),n+=9;continue}}t+=`�`}return t})}n.defaultChars=`;/?:@&=+$,#`,n.componentChars=``;const r={};function i(e){let t=r[e];if(t)return t;t=r[e]=[];for(let e=0;e<128;e++){let n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push(`%`+(`0`+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function a(e,t,n){typeof t!=`string`&&(n=t,t=a.defaultChars),n===void 0&&(n=!0);let r=i(t),o=``;for(let t=0,i=e.length;t<i;t++){let a=e.charCodeAt(t);if(n&&a===37&&t+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){o+=e.slice(t,t+3),t+=2;continue}if(a<128){o+=r[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&t+1<i){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){o+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}o+=`%EF%BF%BD`;continue}o+=encodeURIComponent(e[t])}return o}a.defaultChars=`;/?:@&=+$,-_.!~*'()#`,a.componentChars=`-_.!~*'()`;function o(e){let t=``;return t+=e.protocol||``,t+=e.slashes?`//`:``,t+=e.auth?e.auth+`@`:``,e.hostname&&e.hostname.indexOf(`:`)!==-1?t+=`[`+e.hostname+`]`:t+=e.hostname||``,t+=e.port?`:`+e.port:``,t+=e.pathname||``,t+=e.search||``,t+=e.hash||``,t}function s(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const c=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=[`%`,`/`,`?`,`;`,`#`,`'`,`{`,`}`,`|`,`\\`,`^`,"`",`<`,`>`,`"`,"`",` `,`\r`,` 4`,` `],f=[`/`,`?`,`#`],p=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function v(e,t){if(e&&e instanceof s)return e;let n=new s;return n.parse(e,t),n}s.prototype.parse=function(e,t){let n,r,i,a=e;if(a=a.trim(),!t&&e.split(`#`).length===1){let e=u.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let o=c.exec(a);if(o&&(o=o[0],n=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)===`//`,i&&!(o&&g[o])&&(a=a.substr(2),this.slashes=!0)),!g[o]&&(i||o&&!_[o])){let e=-1;for(let t=0;t<f.length;t++)r=a.indexOf(f[t]),r!==-1&&(e===-1||r<e)&&(e=r);let t,n;n=e===-1?a.lastIndexOf(`@`):a.lastIndexOf(`@`,e),n!==-1&&(t=a.slice(0,n),a=a.slice(n+1),this.auth=t),e=-1;for(let t=0;t<d.length;t++)r=a.indexOf(d[t]),r!==-1&&(e===-1||r<e)&&(e=r);e===-1&&(e=a.length),a[e-1]===`:`&&e--;let i=a.slice(0,e);a=a.slice(e),this.parseHost(i),this.hostname=this.hostname||``;let o=this.hostname[0]===`[`&&this.hostname[this.hostname.length-1]===`]`;if(!o){let e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n&&!n.match(m)){let r=``;for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+=`x`:r+=n[e];if(!r.match(m)){let r=e.slice(0,t),i=e.slice(t+1),o=n.match(h);o&&(r.push(o[1]),i.unshift(o[2])),i.length&&(a=i.join(`.`)+a),this.hostname=r.join(`.`);break}}}}this.hostname.length>255&&(this.hostname=``),o&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=a.indexOf(`#`);s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));let l=a.indexOf(`?`);return l!==-1&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),_[n]&&this.hostname&&!this.pathname&&(this.pathname=``),this},s.prototype.parseHost=function(e){let t=l.exec(e);t&&(t=t[0],t!==`:`&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};export{n as decode,a as encode,o as format,v as parse}; 5
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.