webtorrent
Version:
Streaming torrent client
1 lines • 233 kB
JavaScript
var e,t,n={5682(e,t,n){const i=n(6209),s=n(943),r=n(1847),o=n(3073),a=n(6679),h=n(5435),l=255===new Uint8Array(Uint16Array.of(255).buffer)[0];function c(e){switch(e){case"ascii":return i;case"base64":return s;case"hex":return r;case"binary":case"latin1":return o;case"utf8":case"utf-8":case void 0:case null:return a;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h;default:throw new Error(`Unknown encoding '${e}'`)}}function d(e,t){if(e===t)return 0;const n=Math.min(e.byteLength,t.byteLength);e=new DataView(e.buffer,e.byteOffset,e.byteLength),t=new DataView(t.buffer,t.byteOffset,t.byteLength);let i=0;for(let s=n-n%4;i<s;i+=4){if(e.getUint32(i,l)!==t.getUint32(i,l))break}for(;i<n;i++){const n=e.getUint8(i),s=t.getUint8(i);if(n<s)return-1;if(n>s)return 1}return e.byteLength>t.byteLength?1:e.byteLength<t.byteLength?-1:0}function u(e,t,n){return"string"==typeof e?function(e,t){const n=c(t),i=new Uint8Array(n.byteLength(e));return n.write(i,e),i}(e,t):Array.isArray(e)?function(e){const t=new Uint8Array(e.length);return t.set(e),t}(e):ArrayBuffer.isView(e)?function(e){const t=new Uint8Array(e.byteLength);return t.set(e),t}(e):function(e,t,n){return new Uint8Array(e,t,n)}(e,t,n)}function f(e,t,n,i){return p(e,t,n,i,!0)}function p(e,t,n,i,s){if(0===e.byteLength)return-1;if("string"==typeof n?(i=n,n=0):void 0===n?n=s?0:e.length-1:n<0&&(n+=e.byteLength),n>=e.byteLength){if(s)return-1;n=e.byteLength-1}else if(n<0){if(!s)return-1;n=0}if("string"==typeof t)t=u(t,i);else if("number"==typeof t)return t&=255,s?e.indexOf(t,n):e.lastIndexOf(t,n);if(0===t.byteLength)return-1;if(s){let i=-1;for(let s=n;s<e.byteLength;s++)if(e[s]===t[-1===i?0:s-i]){if(-1===i&&(i=s),s-i+1===t.byteLength)return i}else-1!==i&&(s-=s-i),i=-1}else{n+t.byteLength>e.byteLength&&(n=e.byteLength-t.byteLength);for(let i=n;i>=0;i--){let n=!0;for(let s=0;s<t.byteLength;s++)if(e[i+s]!==t[s]){n=!1;break}if(n)return i}}return-1}function g(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}e.exports=t={isBuffer:function(e){return e instanceof Uint8Array},isEncoding:function(e){try{return c(e),!0}catch{return!1}},alloc:function(e,n,i){const s=new Uint8Array(e);return void 0!==n&&t.fill(s,n,0,s.byteLength,i),s},allocUnsafe:function(e){return new Uint8Array(e)},allocUnsafeSlow:function(e){return new Uint8Array(e)},byteLength:function(e,t){return c(t).byteLength(e)},compare:d,concat:function(e,t){void 0===t&&(t=e.reduce((e,t)=>e+t.byteLength,0));const n=new Uint8Array(t);let i=0;for(const t of e){if(i+t.byteLength>n.byteLength)return n.set(t.subarray(0,n.byteLength-i),i),n;n.set(t,i),i+=t.byteLength}return n},copy:function(e,t,n=0,i=0,s=e.byteLength){if(n<0&&(n=0),n>=t.byteLength)return 0;const r=t.byteLength-n;if(i<0&&(i=0),i>=e.byteLength)return 0;if(s<=i)return 0;s>e.byteLength&&(s=e.byteLength),s-i>r&&(s=i+r);const o=s-i;return e===t?t.copyWithin(n,i,s):(0===i&&s===e.byteLength||(e=e.subarray(i,s)),t.set(e,n)),o},equals:function(e,t){return e===t||e.byteLength===t.byteLength&&0===d(e,t)},fill:function(e,n,i=0,s=e.byteLength,r="utf8"){if("string"==typeof n?"string"==typeof i?(r=i,i=0,s=e.byteLength):"string"==typeof s&&(r=s,s=e.byteLength):"number"==typeof n?n&=255:"boolean"==typeof n&&(n=+n),i<0&&(i=0),i>=e.byteLength)return e;if(s<=i)return e;if(s>e.byteLength&&(s=e.byteLength),"number"==typeof n)return e.fill(n,i,s);"string"==typeof n&&(n=t.from(n,r));const o=n.byteLength;for(let t=0,r=s-i;t<r;++t)e[t+i]=n[t%o];return e},from:u,includes:function(e,t,n,i){return-1!==f(e,t,n,i)},indexOf:f,lastIndexOf:function(e,t,n,i){return p(e,t,n,i,!1)},swap16:function(e){const t=e.byteLength;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let n=0;n<t;n+=2)g(e,n,n+1);return e},swap32:function(e){const t=e.byteLength;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let n=0;n<t;n+=4)g(e,n,n+3),g(e,n+1,n+2);return e},swap64:function(e){const t=e.byteLength;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let n=0;n<t;n+=8)g(e,n,n+7),g(e,n+1,n+6),g(e,n+2,n+5),g(e,n+3,n+4);return e},toBuffer:function(e){return e},toString:function(e,t="utf8",n=0,i=e.byteLength){return 1===arguments.length?a.toString(e):2===arguments.length?c(t).toString(e):(n<0&&(n=0),n>=e.byteLength||i<=n?"":(i>e.byteLength&&(i=e.byteLength),0===n&&i===e.byteLength||(e=e.subarray(n,i)),c(t).toString(e)))},write:function(e,n,i=0,s=e.byteLength,r){if(2===arguments.length)return a.write(e,n);"string"==typeof i?(r=i,i=0,s=e.byteLength):"string"==typeof s&&(r=s,s=e.byteLength-i),s=Math.min(s,t.byteLength(n,r));let o=i;if(o<0&&(o=0),o>=e.byteLength)return 0;let h=i+s;return h<=o?0:(h>e.byteLength&&(h=e.byteLength),0===o&&h===e.byteLength||(e=e.subarray(o,h)),c(r).write(e,n))},readDoubleBE:function(e,t=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!1)},readDoubleLE:function(e,t=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},readFloatBE:function(e,t=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!1)},readFloatLE:function(e,t=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},readInt32BE:function(e,t=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).getInt32(t,!1)},readInt32LE:function(e,t=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).getInt32(t,!0)},readUInt32BE:function(e,t=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).getUint32(t,!1)},readUInt32LE:function(e,t=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).getUint32(t,!0)},writeDoubleBE:function(e,t,n=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat64(n,t,!1),n+8},writeDoubleLE:function(e,t,n=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat64(n,t,!0),n+8},writeFloatBE:function(e,t,n=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat32(n,t,!1),n+4},writeFloatLE:function(e,t,n=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).setFloat32(n,t,!0),n+4},writeInt32BE:function(e,t,n=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).setInt32(n,t,!1),n+4},writeInt32LE:function(e,t,n=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).setInt32(n,t,!0),n+4},writeUInt32BE:function(e,t,n=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).setUint32(n,t,!1),n+4},writeUInt32LE:function(e,t,n=0){return new DataView(e.buffer,e.byteOffset,e.byteLength).setUint32(n,t,!0),n+4}}},6209(e){e.exports={byteLength:function(e){return e.length},toString:function(e){const t=e.byteLength;let n="";for(let i=0;i<t;i++)n+=String.fromCharCode(127&e[i]);return n},write:function(e,t){const n=e.byteLength;for(let i=0;i<n;i++)e[i]=t.charCodeAt(i);return n}}},943(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256);for(let e=0;e<64;e++)n[t.charCodeAt(e)]=e;n[45]=62,n[95]=63,e.exports={byteLength:function(e){let t=e.length;return 61===e.charCodeAt(t-1)&&t--,t>1&&61===e.charCodeAt(t-1)&&t--,3*t>>>2},toString:function(e){const n=e.byteLength;let i="";for(let s=0;s<n;s+=3)i+=t[e[s]>>2]+t[(3&e[s])<<4|e[s+1]>>4]+t[(15&e[s+1])<<2|e[s+2]>>6]+t[63&e[s+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},write:function(e,t){const i=e.byteLength;for(let s=0,r=0;r<i;s+=4){const i=n[t.charCodeAt(s)],o=n[t.charCodeAt(s+1)],a=n[t.charCodeAt(s+2)],h=n[t.charCodeAt(s+3)];e[r++]=i<<2|o>>4,e[r++]=(15&o)<<4|a>>2,e[r++]=(3&a)<<6|63&h}return i}}},1847(e){function t(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:void 0}e.exports={byteLength:function(e){return e.length>>>1},toString:function(e){const t=e.byteLength;e=new DataView(e.buffer,e.byteOffset,t);let n="",i=0;for(let s=t-t%4;i<s;i+=4)n+=e.getUint32(i).toString(16).padStart(8,"0");for(;i<t;i++)n+=e.getUint8(i).toString(16).padStart(2,"0");return n},write:function(e,n){const i=e.byteLength;for(let s=0;s<i;s++){const i=t(n.charCodeAt(2*s)),r=t(n.charCodeAt(2*s+1));if(void 0===i||void 0===r)return s;e[s]=i<<4|r}return i}}},3073(e){e.exports={byteLength:function(e){return e.length},toString:function(e){const t=e.byteLength;let n="";for(let i=0;i<t;i++)n+=String.fromCharCode(e[i]);return n},write:function(e,t){const n=e.byteLength;for(let i=0;i<n;i++)e[i]=t.charCodeAt(i);return n}}},5435(e){e.exports={byteLength:function(e){return 2*e.length},toString:function(e){const t=e.byteLength;let n="";for(let i=0;i<t-1;i+=2)n+=String.fromCharCode(e[i]+256*e[i+1]);return n},write:function(e,t){const n=e.byteLength;let i=n;for(let n=0;n<t.length&&!((i-=2)<0);++n){const i=t.charCodeAt(n),s=i>>8,r=i%256;e[2*n]=r,e[2*n+1]=s}return n}}},6679(e){let t,n;if("undefined"!=typeof TextDecoder){const e=new TextDecoder;t=function(t){return e.decode(t)}}else t=function(e){const t=e.byteLength;let n="",i=0;for(;i<t;){let s=e[i];if(s<=127){n+=String.fromCharCode(s),i++;continue}let r=0,o=0;if(s<=223?(r=1,o=31&s):s<=239?(r=2,o=15&s):s<=244&&(r=3,o=7&s),t-i-r>0){let t=0;for(;t<r;)s=e[i+t+1],o=o<<6|63&s,t+=1}else o=65533,r=t-i;n+=String.fromCodePoint(o),i+=r+1}return n};if("undefined"!=typeof TextEncoder){const e=new TextEncoder;n=function(t,n){return e.encodeInto(n,t).written}}else n=function(e,t){const n=e.byteLength;let i=0,s=0;for(;i<t.length;){const r=t.codePointAt(i);if(r<=127){if(s+1>n)break;e[s++]=r,i++;continue}let o=0,a=0;if(r<=2047?(o=6,a=192):r<=65535?(o=12,a=224):r<=2097151&&(o=18,a=240),s+o/6+1>n)break;for(e[s++]=a|r>>o,o-=6;o>=0;)e[s++]=128|r>>o&63,o-=6;i+=r>=65536?2:1}return s};e.exports={byteLength:function(e){let t=0;for(let n=0,i=e.length;n<i;n++){const s=e.charCodeAt(n);if(s>=55296&&s<=56319&&n+1<i){const i=e.charCodeAt(n+1);if(i>=56320&&i<=57343){t+=4,n++;continue}}t+=s<=127?1:s<=2047?2:3}return t},toString:t,write:n}},1467(e){function t(e,t){if("string"==typeof e[0])return e.join("");if("number"==typeof e[0])return new Uint8Array(e);const n=new Uint8Array(t);let i=0;for(let t=0,s=e.length;t<s;t++){const s=e[t];n.set(s,i),i+=s.byteLength||s.length}return n}e.exports=async function*(e,n=512,i={}){"object"==typeof n&&(n=(i=n).size||512);let{nopad:s,zeroPadding:r=!0}=i;s&&(r=!1);let o=[],a=0;for await(const i of e)if(a+=i.byteLength||i.length||1,o.push(i),a>=n){const e=t(o,a);let i=0;for(;a>=n;)yield e.slice(i,i+n),a-=n,i+=n;o=[e.slice(i,e.length)]}a&&(yield t(o,r?n:a))}},4497(e,t,n){const i=n(8454),s=n(9596);e.exports=class{constructor(e,t){if(this.store=e,this.chunkLength=e.chunkLength,this.inProgressGets=new Map,!this.store||!this.store.get||!this.store.put)throw new Error("First argument must be abstract-chunk-store compliant");this.cache=new i(t)}put(e,t,n=()=>{}){if(!this.cache)return s(()=>n(new Error("CacheStore closed")));this.cache.remove(e),this.store.put(e,t,n)}get(e,t,n=()=>{}){if("function"==typeof t)return this.get(e,null,t);if(!this.cache)return s(()=>n(new Error("CacheStore closed")));t||(t={});let i=this.cache.get(e);if(i){const e=t.offset||0,r=t.length||i.length-e;return 0===e&&r===i.length||(i=i.slice(e,r+e)),s(()=>n(null,i))}let r=this.inProgressGets.get(e);const o=!!r;r||(r=[],this.inProgressGets.set(e,r)),r.push({opts:t,cb:n}),o||this.store.get(e,(t,n)=>{t||null==this.cache||this.cache.set(e,n);const i=this.inProgressGets.get(e);this.inProgressGets.delete(e);for(const{opts:e,cb:s}of i)if(t)s(t);else{const t=e.offset||0,i=e.length||n.length-t;let r=n;0===t&&i===n.length||(r=n.slice(t,i+t)),s(null,r)}})}close(e=()=>{}){if(!this.cache)return s(()=>e(new Error("CacheStore closed")));this.cache=null,this.store.close(e)}destroy(e=()=>{}){if(!this.cache)return s(()=>e(new Error("CacheStore closed")));this.cache=null,this.store.destroy(e)}}},4018(e){e.exports=function(){for(var e=navigator.hardwareConcurrency||1,t=[],n=0;n<e;n++)t.push({model:"",speed:0,times:{user:0,nice:0,sys:0,idle:0,irq:0}});return t}},7833(e,t,n){var i=n(717);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(s=i))}),t.splice(s,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&void 0!==i&&"env"in i&&(e=i.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736(e,t,n){e.exports=function(e){function t(e){let n,s,r,o=null;function a(...e){if(!a.enabled)return;const i=a,s=Number(new Date),r=s-(n||s);i.diff=r,i.prev=n,i.curr=s,n=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,s)=>{if("%%"===n)return"%";o++;const r=t.formatters[s];if("function"==typeof r){const t=e[o];n=r.call(i,t),e.splice(o,1),o--}return n}),t.formatArgs.call(i,e);(i.log||t.log).apply(i,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=i,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(s!==t.namespaces&&(s=t.namespaces,r=t.enabled(e)),r),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function i(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function s(e,t){let n=0,i=0,s=-1,r=0;for(;n<e.length;)if(i<t.length&&(t[i]===e[n]||"*"===t[i]))"*"===t[i]?(s=i,r=n,i++):(n++,i++);else{if(-1===s)return!1;i=s+1,r++,n=r}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(s(e,n))return!1;for(const n of t.names)if(s(e,n))return!0;return!1},t.humanize=n(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},6611(e,t,n){var i=n(717),s=n(3519),r=function(){},o=globalThis.Bare?queueMicrotask:i.nextTick.bind(i),a=function(e,t,n){if("function"==typeof t)return a(e,null,t);t||(t={}),n=s(n||r);var i=e._writableState,h=e._readableState,l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,d=!1,u=function(){e.writable||f()},f=function(){c=!1,l||n.call(e)},p=function(){l=!1,c||n.call(e)},g=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},m=function(t){n.call(e,t)},_=function(){o(y)},y=function(){if(!d)return(!l||h&&h.ended&&!h.destroyed)&&(!c||i&&i.ended&&!i.destroyed)?void 0:n.call(e,new Error("premature close"))},b=function(){e.req.on("finish",f)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?c&&!i&&(e.on("end",u),e.on("close",u)):(e.on("complete",f),e.on("abort",_),e.req?b():e.on("request",b)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",g),e.on("end",p),e.on("finish",f),!1!==t.error&&e.on("error",m),e.on("close",_),function(){d=!0,e.removeListener("complete",f),e.removeListener("abort",_),e.removeListener("request",b),e.req&&e.req.removeListener("finish",f),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",f),e.removeListener("exit",g),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",_)}};e.exports=a},6310(e){function t(e,t){for(const n in t)Object.defineProperty(e,n,{value:t[n],enumerable:!0,configurable:!0});return e}e.exports=function(e,n,i){if(!e||"string"==typeof e)throw new TypeError("Please pass an Error to err-code");i||(i={}),"object"==typeof n&&(i=n,n=""),n&&(i.code=n);try{return t(e,i)}catch(n){i.message=e.message,i.stack=e.stack;const s=function(){};s.prototype=Object.create(Object.getPrototypeOf(e));return t(new s,i)}}},580(e){var t=/["'&<>]/;e.exports=function(e){var n,i=""+e,s=t.exec(i);if(!s)return i;var r="",o=0,a=0;for(o=s.index;o<i.length;o++){switch(i.charCodeAt(o)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}a!==o&&(r+=i.substring(a,o)),a=o+1,r+=n}return a!==o?r+i.substring(a,o):r}},301(e,t,n){e.exports=n(7007)},7007(e){var t=Object.create||function(e){var t=function(){};return t.prototype=e,new t},n=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},i=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function s(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=t(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0;var r,o=10;try{var a={};Object.defineProperty&&Object.defineProperty(a,"x",{value:0}),r=0===a.x}catch(e){r=!1}function h(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function l(e,n,i,s){var r,o,a;if("function"!=typeof i)throw new TypeError('"listener" argument must be a function');if((o=e._events)?(o.newListener&&(e.emit("newListener",n,i.listener?i.listener:i),o=e._events),a=o[n]):(o=e._events=t(null),e._eventsCount=0),a){if("function"==typeof a?a=o[n]=s?[i,a]:[a,i]:s?a.unshift(i):a.push(i),!a.warned&&(r=h(e))&&r>0&&a.length>r){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(n)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name="MaxListenersExceededWarning",l.emitter=e,l.type=n,l.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",l.name,l.message)}}else a=o[n]=i,++e._eventsCount;return e}function c(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function d(e,t,n){var s={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=i.call(c,s);return r.listener=n,s.wrapFn=r,r}function u(e,t,n){var i=e._events;if(!i)return[];var s=i[t];return s?"function"==typeof s?n?[s.listener||s]:[s]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(s):p(s,s.length):[]}function f(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function p(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}r?Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');o=e}}):s.defaultMaxListeners=o,s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return h(this)},s.prototype.emit=function(e){var t,n,i,s,r,o,a="error"===e;if(o=this._events)a=a&&null==o.error;else if(!a)return!1;if(a){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var h=new Error('Unhandled "error" event. ('+t+")");throw h.context=t,h}if(!(n=o[e]))return!1;var l="function"==typeof n;switch(i=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var i=e.length,s=p(e,i),r=0;r<i;++r)s[r].call(n)}(n,l,this);break;case 2:!function(e,t,n,i){if(t)e.call(n,i);else for(var s=e.length,r=p(e,s),o=0;o<s;++o)r[o].call(n,i)}(n,l,this,arguments[1]);break;case 3:!function(e,t,n,i,s){if(t)e.call(n,i,s);else for(var r=e.length,o=p(e,r),a=0;a<r;++a)o[a].call(n,i,s)}(n,l,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,i,s,r){if(t)e.call(n,i,s,r);else for(var o=e.length,a=p(e,o),h=0;h<o;++h)a[h].call(n,i,s,r)}(n,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(s=new Array(i-1),r=1;r<i;r++)s[r-1]=arguments[r];!function(e,t,n,i){if(t)e.apply(n,i);else for(var s=e.length,r=p(e,s),o=0;o<s;++o)r[o].apply(n,i)}(n,l,this,s)}return!0},s.prototype.addListener=function(e,t){return l(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return l(this,e,t,!0)},s.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,n){var i,s,r,o,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if(!(s=this._events))return this;if(!(i=s[e]))return this;if(i===n||i.listener===n)0===--this._eventsCount?this._events=t(null):(delete s[e],s.removeListener&&this.emit("removeListener",e,i.listener||n));else if("function"!=typeof i){for(r=-1,o=i.length-1;o>=0;o--)if(i[o]===n||i[o].listener===n){a=i[o].listener,r=o;break}if(r<0)return this;0===r?i.shift():function(e,t){for(var n=t,i=n+1,s=e.length;i<s;n+=1,i+=1)e[n]=e[i];e.pop()}(i,r),1===i.length&&(s[e]=i[0]),s.removeListener&&this.emit("removeListener",e,a||n)}return this},s.prototype.removeAllListeners=function(e){var i,s,r;if(!(s=this._events))return this;if(!s.removeListener)return 0===arguments.length?(this._events=t(null),this._eventsCount=0):s[e]&&(0===--this._eventsCount?this._events=t(null):delete s[e]),this;if(0===arguments.length){var o,a=n(s);for(r=0;r<a.length;++r)"removeListener"!==(o=a[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=t(null),this._eventsCount=0,this}if("function"==typeof(i=s[e]))this.removeListener(e,i);else if(i)for(r=i.length-1;r>=0;r--)this.removeListener(e,i[r]);return this},s.prototype.listeners=function(e){return u(this,e,!0)},s.prototype.rawListeners=function(e){return u(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},s.prototype.listenerCount=f,s.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},5809(e){e.exports=class{constructor(e){if(!(e>0)||e-1&e)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){const e=this.buffer[this.btm];if(void 0!==e)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},6080(e,t,n){const i=n(5809);e.exports=class{constructor(e){this.hwm=e||16,this.head=new i(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){const t=this.head;this.head=t.next=new i(2*this.head.buffer.length),this.head.push(e)}}shift(){0!==this.length&&this.length--;const e=this.tail.shift();if(void 0===e&&this.tail.next){const e=this.tail.next;return this.tail.next=null,this.tail=e,this.tail.shift()}return e}peek(){const e=this.tail.peek();return void 0===e&&this.tail.next?this.tail.next.peek():e}isEmpty(){return 0===this.length}}},3468(){"undefined"!=typeof ReadableStream&&(ReadableStream.prototype[Symbol.asyncIterator]||(ReadableStream.prototype[Symbol.asyncIterator]=function({preventCancel:e}={}){const t=this.getReader(),n=this;let i=t.read();return{next(){const e=i;return i=t.read(),e},return:async s=>(await i,t.releaseLock(),e||n.cancel(),{done:!0,value:s}),async throw(e){throw await this.return(),e},[Symbol.asyncIterator](){return this}}}),ReadableStream.prototype.getIterator||(ReadableStream.prototype.getIterator=function({preventCancel:e}={}){return this[Symbol.asyncIterator]({preventCancel:e})}))},3714(e,t,n){const i=n(9596);e.exports=class{constructor(e){if(this.store=e,this.chunkLength=e.chunkLength,!this.store||!this.store.get||!this.store.put)throw new Error("First argument must be abstract-chunk-store compliant");this.mem=[]}put(e,t,n=()=>{}){this.mem[e]=t,this.store.put(e,t,t=>{this.mem[e]=null,n(t)})}get(e,t,n=()=>{}){if("function"==typeof t)return this.get(e,null,t);let s=this.mem[e];if(!s)return this.store.get(e,t,n);t||(t={});const r=t.offset||0,o=t.length||s.length-r;0===r&&o===s.length||(s=s.slice(r,o+r)),i(()=>n(null,s))}close(e=()=>{}){this.store.close(e)}destroy(e=()=>{}){this.store.destroy(e)}}},6698(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},405(e){e.exports=async function*(e){for(let t of e)"function"==typeof t&&(t=t()),yield*t}},9439(e,t,n){n(3065),t.TokenBucket=n(5472)},3085(e,t,n){var i=n(717);e.exports=function(){if(void 0!==i&&i.hrtime){var e=i.hrtime(),t=e[0],n=e[1];return 1e3*t+Math.floor(n/1e6)}return(new Date).getTime()}},3065(e,t,n){var i=n(717),s=n(5472),r=n(3085),o=function(e,t,n){this.tokenBucket=new s(e,e,t,null),this.tokenBucket.content=e,this.curIntervalStart=r(),this.tokensThisInterval=0,this.fireImmediately=n};o.prototype={tokenBucket:null,curIntervalStart:0,tokensThisInterval:0,fireImmediately:!1,removeTokens:function(e,t){if(e>this.tokenBucket.bucketSize)return i.nextTick(t.bind(null,"Requested tokens "+e+" exceeds maximum tokens per interval "+this.tokenBucket.bucketSize,null)),!1;var n=this,s=r();if((s<this.curIntervalStart||s-this.curIntervalStart>=this.tokenBucket.interval)&&(this.curIntervalStart=s,this.tokensThisInterval=0),e>this.tokenBucket.tokensPerInterval-this.tokensThisInterval){if(this.fireImmediately)i.nextTick(t.bind(null,null,-1));else{var o=Math.ceil(this.curIntervalStart+this.tokenBucket.interval-s);setTimeout(function(){n.tokenBucket.removeTokens(e,a)},o)}return!1}return this.tokenBucket.removeTokens(e,a);function a(i,s){if(i)return t(i,null);n.tokensThisInterval+=e,t(null,s)}},tryRemoveTokens:function(e){if(e>this.tokenBucket.bucketSize)return!1;var t=r();if((t<this.curIntervalStart||t-this.curIntervalStart>=this.tokenBucket.interval)&&(this.curIntervalStart=t,this.tokensThisInterval=0),e>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return!1;var n=this.tokenBucket.tryRemoveTokens(e);return n&&(this.tokensThisInterval+=e),n},getTokensRemaining:function(){return this.tokenBucket.drip(),this.tokenBucket.content}},e.exports=o},5472(e,t,n){var i=n(717),s=function(e,t,n,i){if(this.bucketSize=e,this.tokensPerInterval=t,"string"==typeof n)switch(n){case"sec":case"second":this.interval=1e3;break;case"min":case"minute":this.interval=6e4;break;case"hr":case"hour":this.interval=36e5;break;case"day":this.interval=864e5;break;default:throw new Error("Invaid interval "+n)}else this.interval=n;this.parentBucket=i,this.content=0,this.lastDrip=+new Date};s.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(e,t){var n=this;return this.bucketSize?e>this.bucketSize?(i.nextTick(t.bind(null,"Requested tokens "+e+" exceeds bucket size "+this.bucketSize,null)),!1):(this.drip(),e>this.content?s():this.parentBucket?this.parentBucket.removeTokens(e,function(i,r){return i?t(i,null):e>n.content?s():(n.content-=e,void t(null,Math.min(r,n.content)))}):(this.content-=e,i.nextTick(t.bind(null,null,this.content)),!0)):(i.nextTick(t.bind(null,null,e,Number.POSITIVE_INFINITY)),!0);function s(){var i=Math.ceil((e-n.content)*(n.interval/n.tokensPerInterval));return setTimeout(function(){n.removeTokens(e,t)},i),!1}},tryRemoveTokens:function(e){return!this.bucketSize||!(e>this.bucketSize)&&(this.drip(),!(e>this.content)&&(!(this.parentBucket&&!this.parentBucket.tryRemoveTokens(e))&&(this.content-=e,!0)))},drip:function(){if(this.tokensPerInterval){var e=+new Date,t=Math.max(e-this.lastDrip,0);this.lastDrip=e;var n=t*(this.tokensPerInterval/this.interval);this.content=Math.min(this.content+n,this.bucketSize)}else this.content=this.bucketSize}},e.exports=s},8454(e,t,n){var i=n(7007),s=n(6698);function r(e){if(!(this instanceof r))return new r(e);"number"==typeof e&&(e={max:e}),e||(e={}),i.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=r,s(r,i.EventEmitter),Object.defineProperty(r.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),r.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},r.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},r.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},r.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},r.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},r.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},r.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},r.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},4862(e,t,n){e.exports=s;const i=n(9596);function s(e,t){if(!(this instanceof s))return new s(e,t);if(t||(t={}),this.chunkLength=Number(e),!this.chunkLength)throw new Error("First argument must be a chunk length");this.chunks=[],this.closed=!1,this.length=Number(t.length)||1/0,this.length!==1/0&&(this.lastChunkLength=this.length%this.chunkLength||this.chunkLength,this.lastChunkIndex=Math.ceil(this.length/this.chunkLength)-1)}s.prototype.put=function(e,t,n=()=>{}){if(this.closed)return i(()=>n(new Error("Storage is closed")));const s=e===this.lastChunkIndex;return s&&t.length!==this.lastChunkLength?i(()=>n(new Error("Last chunk length must be "+this.lastChunkLength))):s||t.length===this.chunkLength?(this.chunks[e]=t,void i(()=>n(null))):i(()=>n(new Error("Chunk length must be "+this.chunkLength)))},s.prototype.get=function(e,t,n=()=>{}){if("function"==typeof t)return this.get(e,null,t);if(this.closed)return i(()=>n(new Error("Storage is closed")));let s=this.chunks[e];if(!s){const e=new Error("Chunk not found");return e.notFound=!0,i(()=>n(e))}t||(t={});const r=t.offset||0,o=t.length||s.length-r;0===r&&o===s.length||(s=s.slice(r,o+r)),i(()=>n(null,s))},s.prototype.close=s.prototype.destroy=function(e=()=>{}){if(this.closed)return i(()=>e(new Error("Storage is closed")));this.closed=!0,this.chunks=null,i(()=>e(null))}},8673(e){function t(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}t.prototype.define=function(e,t){for(let n in e){let i=e[n].map(function(e){return e.toLowerCase()});n=n.toLowerCase();for(let e=0;e<i.length;e++){const s=i[e];if("*"!==s[0]){if(!t&&s in this._types)throw new Error('Attempt to change mapping for "'+s+'" extension from "'+this._types[s]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+s+'" from the list of extensions for "'+n+'".');this._types[s]=n}}if(t||!this._extensions[n]){const e=i[0];this._extensions[n]="*"!==e[0]?e:e.substr(1)}}},t.prototype.getType=function(e){let t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase(),i=t.length<e.length;return(n.length<t.length-1||!i)&&this._types[n]||null},t.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},e.exports=t},1133(e,t,n){let i=n(8673);e.exports=new i(n(8446))},8446(e){e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},6585(e){var t=1e3,n=60*t,i=60*n,s=24*i,r=7*s,o=365.25*s;function a(e,t,n,i){var s=t>=1.5*n;return Math.round(e/n)+" "+i+(s?"s":"")}e.exports=function(e,h){h=h||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var h=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return h*o;case"weeks":case"week":case"w":return h*r;case"days":case"day":case"d":return h*s;case"hours":case"hour":case"hrs":case"hr":case"h":return h*i;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}(e);if("number"===l&&isFinite(e))return h.long?function(e){var r=Math.abs(e);if(r>=s)return a(e,r,s,"day");if(r>=i)return a(e,r,i,"hour");if(r>=n)return a(e,r,n,"minute");if(r>=t)return a(e,r,t,"second");return e+" ms"}(e):function(e){var r=Math.abs(e);if(r>=s)return Math.round(e/s)+"d";if(r>=i)return Math.round(e/i)+"h";if(r>=n)return Math.round(e/n)+"m";if(r>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},3519(e,t,n){var i=n(6587);function s(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function r(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=i(s),e.exports.strict=i(r),s.proto=s(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return s(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return r(this)},configurable:!0})})},8444(e){e.exports=function(e){return Math.max(16384,1<<Math.log2(e<1024?1:e/1024)+.5)}},815(e,t,n){var i,s=n(717),r=n(3519),o=n(6611);try{i=n(2376)}catch(e){}var a=function(){},h=void 0!==s&&/^v?\.0/.test(s.version),l=function(e){return"function"==typeof e},c=function(e,t,n,s){s=r(s);var c=!1;e.on("close",function(){c=!0}),o(e,{readable:t,writable:n},function(e){if(e)return s(e);c=!0,s()});var d=!1;return function(t){if(!c&&!d)return d=!0,function(e){return!!h&&!!i&&(e instanceof(i.ReadStream||a)||e instanceof(i.WriteStream||a))&&l(e.close)}(e)?e.close(a):function(e){return e.setHeader&&l(e.abort)}(e)?e.abort():l(e.destroy)?e.destroy():void s(t||new Error("stream was destroyed"))}},d=function(e){e()},u=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),n=l(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var i=t.map(function(s,r){var o=r<t.length-1;return c(s,o,r>0,function(t){e||(e=t),t&&i.forEach(d),o||(i.forEach(d),n(e))})});return t.reduce(u)}},9596(e){let t;e.exports="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:globalThis):e=>(t||(t=Promise.resolve())).then(e).catch(e=>setTimeout(()=>{throw e},0))},7373(e){e.exports=function(e){var t=0;return function(){if(t===e.length)return null;var n=e.length-t,i=Math.random()*n|0,s=e[t+i],r=e[t];return e[t]=s,e[t+i]=r,t++,s}}},2878(e){function t(e,t){return{start:e.start,end:e.end,index:t}}function n(e){return{start:e.start,end:e.end}}function i(e,t){return e.index-t.index}function s(e,t){return e.start-t.start}e.exports=function(e,r,o){if("string"!=typeof r)throw new TypeError("argument str must be a string");var a=r.indexOf("=");if(-1===a)return-2;var h=r.slice(a+1).split(","),l=[];l.type=r.slice(0,a);for(var c=0;c<h.length;c++){var d=h[c].split("-"),u=parseInt(d[0],10),f=parseInt(d[1],10);isNaN(u)?(u=e-f,f=e-1):isNaN(f)&&(f=e-1),f>e-1&&(f=e-1),isNaN(u)||isNaN(f)||u>f||u<0||l.push({start:u,end:f})}if(l.length<1)return-1;return o&&o.combine?function(e){for(var r=e.map(t).sort(s),o=0,a=1;a<r.length;a++){var h=r[a],l=r[o];h.start>l.end+1?r[++o]=h:h.end>l.end&&(l.end=h.end,l.index=Math.min(l.index,h.index))}r.length=o+1;var c=r.sort(i).map(n);return c.type=e.type,c}(l):l}},8727(e){function t(e){return parseInt(e,10)===e}function n(e){function n(t){if(void 0===t){t=new Array(e);for(var n=0;n<e;n++)t[n]=Math.floor(Math.random()*e)}else if("string"==typeof t)t=(t=""+t).split("").map(function(t){return t.charCodeAt(0)%e});else{if(!Array.isArray(t))throw new TypeError("invalid seed key specified");if(!t.every(function(e){return"number"==typeof e&&e===(0|e)}))throw new TypeError("invalid seed key spec