(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["lazy-modules"],{"0774":function(t,e,r){var n=r("42a7"),i="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";t.exports=n(i)},1131:function(t,e,r){var n=r("8707").Buffer;const i=105,o=58,f=100,a=108,u=101;function s(t,e,r){for(var n=0,i=1,o=e;o=48)n=10*n+(f-48);else if(o!==e||43!==f){if(o!==e||45!==f){if(46===f)break;throw new Error("not a number: buffer["+o+"] = "+f)}i=-1}}return n*i}function h(t,e,r,i){return null==t||0===t.length?null:("number"!==typeof e&&null==i&&(i=e,e=void 0),"number"!==typeof r&&null==i&&(i=r,r=void 0),h.position=0,h.encoding=i||null,h.data=n.isBuffer(t)?t.slice(e,r):n.from(t),h.bytes=h.data.length,h.next())}h.bytes=0,h.position=0,h.data=null,h.encoding=null,h.next=function(){switch(h.data[h.position]){case f:return h.dictionary();case a:return h.list();case i:return h.integer();default:return h.buffer()}},h.find=function(t){var e=h.position,r=h.data.length,n=h.data;while(e0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function h(t){var e=s(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function c(t,e,r){return 3*(e+r)/4-r}function l(t){for(var e,r=s(t),n=r[0],f=r[1],a=new o(c(t,n,f)),u=0,h=f>0?n-4:n,l=0;l>16&255,a[u++]=e>>8&255,a[u++]=255&e;return 2===f&&(e=i[t.charCodeAt(l)]<<2|i[t.charCodeAt(l+1)]>>4,a[u++]=255&e),1===f&&(e=i[t.charCodeAt(l)]<<10|i[t.charCodeAt(l+1)]<<4|i[t.charCodeAt(l+2)]>>2,a[u++]=e>>8&255,a[u++]=255&e),a}function p(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function g(t,e,r){for(var n,i=[],o=e;ou?u:a+f));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2366:function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);function i(t,e){var n=e||0,i=r;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}t.exports=i},"2a3b":function(t,e,r){var n=r("738f"),i=new n,o="undefined"!==typeof window?window:self,f=o.crypto||o.msCrypto||{},a=f.subtle||f.webkitSubtle;function u(t){return i.digest(t)}try{a.digest({name:"sha-1"},new Uint8Array).catch((function(){a=!1}))}catch(l){a=!1}function s(t,e){a?("string"===typeof t&&(t=h(t)),a.digest({name:"sha-1"},t).then((function(t){e(c(new Uint8Array(t)))}),(function(r){e(u(t))}))):setTimeout(e,0,u(t))}function h(t){for(var e=t.length,r=new Uint8Array(e),n=0;n>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")}t.exports=s,t.exports.sync=u},"3e8f":function(t,e){},"42a7":function(t,e,r){"use strict";var n=r("8707").Buffer;function i(t){if(t.length>=255)throw new TypeError("Alphabet too long");var e=new Uint8Array(256);e.fill(255);for(var r=0;r>>0,c=new Uint8Array(h);while(o!==u){for(var l=e[o],p=0,g=h-1;(0!==l||p>>0,c[g]=l%f>>>0,l=l/f>>>0;if(0!==l)throw new Error("Non-zero carry");i=p,o++}var d=h-i;while(d!==h&&0===c[d])d++;for(var y=a.repeat(r);d>>0,h=new Uint8Array(s);while(t[r]){var c=e[t.charCodeAt(r)];if(255===c)return;for(var l=0,p=s-1;(0!==c||l>>0,h[p]=c%256>>>0,c=c/256>>>0;if(0!==c)throw new Error("Non-zero carry");o=l,r++}if(" "!==t[r]){var g=s-o;while(g!==s&&0===h[g])g++;var d=n.allocUnsafe(i+(s-g));d.fill(0,0,i);var y=i;while(g!==s)d[y++]=h[g++];return d}}}function l(t){var e=c(t);if(e)return e;throw new Error("Non-base"+f+" character")}return{encode:h,decodeUnsafe:c,decode:l}}t.exports=i},4947:function(t,e){},"4cdf":function(t,e,r){var n=r("8707").Buffer;function i(t,e,r){var o=[],f=null;return i._encode(o,t),f=n.concat(o),i.bytes=f.length,n.isBuffer(e)?(f.copy(e,r),e):f}i.bytes=-1,i._floatConversionDetected=!1,i.getType=function(t){return n.isBuffer(t)?"buffer":Array.isArray(t)?"array":ArrayBuffer.isView(t)?"arraybufferview":t instanceof Number?"number":t instanceof Boolean?"boolean":t instanceof ArrayBuffer?"arraybuffer":typeof t},i._encode=function(t,e){if(null!=e)switch(i.getType(e)){case"buffer":i.buffer(t,e);break;case"object":i.dict(t,e);break;case"array":i.list(t,e);break;case"string":i.string(t,e);break;case"number":i.number(t,e);break;case"boolean":i.number(t,e);break;case"arraybufferview":i.buffer(t,n.from(e.buffer,e.byteOffset,e.byteLength));break;case"arraybuffer":i.buffer(t,n.from(e));break}};var o=n.from("e"),f=n.from("d"),a=n.from("l");i.buffer=function(t,e){t.push(n.from(e.length+":"),e)},i.string=function(t,e){t.push(n.from(n.byteLength(e)+":"+e))},i.number=function(t,e){var r=2147483648,o=e/r<<0,f=e%r<<0,a=o*r+f;t.push(n.from("i"+a+"e")),a===e||i._floatConversionDetected||(i._floatConversionDetected=!0,console.warn('WARNING: Possible data corruption detected with value "'+e+'":','Bencoding only defines support for integers, value was converted to "'+a+'"'),console.trace())},i.dict=function(t,e){t.push(f);for(var r,n=0,a=Object.keys(e).sort(),u=a.length;n0;t+=1);return t},h=function(t,e){var r=new Uint8Array(t.buffer),n=e%4,i=e-n;switch(n){case 0:r[i+3]=0;case 1:r[i+2]=0;case 2:r[i+1]=0;case 3:r[i+0]=0}for(var o=1+(e>>2);o>2]|=128<<24-(e%4<<3),t[14+(2+(e>>2)&-16)]=r/(1<<29)|0,t[15+(2+(e>>2)&-16)]=r<<3},l=function(t,e){var r=new Int32Array(t,e+320,5),n=new Int32Array(5),i=new DataView(n.buffer);return i.setInt32(0,r[0],!1),i.setInt32(4,r[1],!1),i.setInt32(8,r[2],!1),i.setInt32(12,r[3],!1),i.setInt32(16,r[4],!1),n},p=function(){function t(e){if(n(this,t),e=e||65536,e%64>0)throw new Error("Chunk size must be a multiple of 128 bit");this._offset=0,this._maxChunkLen=e,this._padMaxChunkLen=s(e),this._heap=new ArrayBuffer(a(this._padMaxChunkLen+320+20)),this._h32=new Int32Array(this._heap),this._h8=new Int8Array(this._heap),this._core=new i({Int32Array:Int32Array},{},this._heap)}return t.prototype._initState=function(t,e){this._offset=0;var r=new Int32Array(t,e+320,5);r[0]=1732584193,r[1]=-271733879,r[2]=-1732584194,r[3]=271733878,r[4]=-1009589776},t.prototype._padChunk=function(t,e){var r=s(t),n=new Int32Array(this._heap,0,r>>2);return h(n,t),c(n,t,e),r},t.prototype._write=function(t,e,r,n){u(t,this._h8,this._h32,e,r,n||0)},t.prototype._coreCall=function(t,e,r,n,i){var o=r;this._write(t,e,r),i&&(o=this._padChunk(r,n)),this._core.hash(o,this._padMaxChunkLen)},t.prototype.rawDigest=function(t){var e=t.byteLength||t.length||t.size||0;this._initState(this._heap,this._padMaxChunkLen);var r=0,n=this._maxChunkLen;for(r=0;e>r+n;r+=n)this._coreCall(t,r,n,e,!1);return this._coreCall(t,r,e-r,e,!0),l(this._heap,this._padMaxChunkLen)},t.prototype.digest=function(t){return f(this.rawDigest(t).buffer)},t.prototype.digestFromString=function(t){return this.digest(t)},t.prototype.digestFromBuffer=function(t){return this.digest(t)},t.prototype.digestFromArrayBuffer=function(t){return this.digest(t)},t.prototype.resetState=function(){return this._initState(this._heap,this._padMaxChunkLen),this},t.prototype.append=function(t){var e=0,r=t.byteLength||t.length||t.size||0,n=this._offset%this._maxChunkLen,i=void 0;this._offset+=r;while(e0}),!1)}function s(t,e){var r={main:[e]},n={main:[]},i={main:{}};while(u(r))for(var o=Object.keys(r),f=0;f>2]|0;a=n[e+324>>2]|0;s=n[e+328>>2]|0;c=n[e+332>>2]|0;p=n[e+336>>2]|0;for(r=0;(r|0)<(t|0);r=r+64|0){f=o;u=a;h=s;l=c;g=p;for(i=0;(i|0)<64;i=i+4|0){y=n[r+i>>2]|0;d=((o<<5|o>>>27)+(a&s|~a&c)|0)+((y+p|0)+1518500249|0)|0;p=c;c=s;s=a<<30|a>>>2;a=o;o=d;n[t+i>>2]=y}for(i=t+64|0;(i|0)<(t+80|0);i=i+4|0){y=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;d=((o<<5|o>>>27)+(a&s|~a&c)|0)+((y+p|0)+1518500249|0)|0;p=c;c=s;s=a<<30|a>>>2;a=o;o=d;n[i>>2]=y}for(i=t+80|0;(i|0)<(t+160|0);i=i+4|0){y=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;d=((o<<5|o>>>27)+(a^s^c)|0)+((y+p|0)+1859775393|0)|0;p=c;c=s;s=a<<30|a>>>2;a=o;o=d;n[i>>2]=y}for(i=t+160|0;(i|0)<(t+240|0);i=i+4|0){y=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;d=((o<<5|o>>>27)+(a&s|a&c|s&c)|0)+((y+p|0)-1894007588|0)|0;p=c;c=s;s=a<<30|a>>>2;a=o;o=d;n[i>>2]=y}for(i=t+240|0;(i|0)<(t+320|0);i=i+4|0){y=(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])<<1|(n[i-12>>2]^n[i-32>>2]^n[i-56>>2]^n[i-64>>2])>>>31;d=((o<<5|o>>>27)+(a^s^c)|0)+((y+p|0)-899497514|0)|0;p=c;c=s;s=a<<30|a>>>2;a=o;o=d;n[i>>2]=y}o=o+f|0;a=a+u|0;s=s+h|0;c=c+l|0;p=p+g|0}n[e+320>>2]=o;n[e+324>>2]=a;n[e+328>>2]=s;n[e+332>>2]=c;n[e+336>>2]=p}return{hash:i}}},function(t,e){var r=this,n=void 0;"undefined"!==typeof self&&"undefined"!==typeof self.FileReaderSync&&(n=new self.FileReaderSync);var i=function(t,e,r,n,i,o){var f=void 0,a=o%4,u=(i+a)%4,s=i-u;switch(a){case 0:e[o]=t.charCodeAt(n+3);case 1:e[o+1-(a<<1)|0]=t.charCodeAt(n+2);case 2:e[o+2-(a<<1)|0]=t.charCodeAt(n+1);case 3:e[o+3-(a<<1)|0]=t.charCodeAt(n)}if(!(i>2]=t.charCodeAt(n+f)<<24|t.charCodeAt(n+f+1)<<16|t.charCodeAt(n+f+2)<<8|t.charCodeAt(n+f+3);switch(u){case 3:e[o+s+1|0]=t.charCodeAt(n+s+2);case 2:e[o+s+2|0]=t.charCodeAt(n+s+1);case 1:e[o+s+3|0]=t.charCodeAt(n+s)}}},o=function(t,e,r,n,i,o){var f=void 0,a=o%4,u=(i+a)%4,s=i-u;switch(a){case 0:e[o]=t[n+3];case 1:e[o+1-(a<<1)|0]=t[n+2];case 2:e[o+2-(a<<1)|0]=t[n+1];case 3:e[o+3-(a<<1)|0]=t[n]}if(!(i>2|0]=t[n+f]<<24|t[n+f+1]<<16|t[n+f+2]<<8|t[n+f+3];switch(u){case 3:e[o+s+1|0]=t[n+s+2];case 2:e[o+s+2|0]=t[n+s+1];case 1:e[o+s+3|0]=t[n+s]}}},f=function(t,e,r,i,o,f){var a=void 0,u=f%4,s=(o+u)%4,h=o-s,c=new Uint8Array(n.readAsArrayBuffer(t.slice(i,i+o)));switch(u){case 0:e[f]=c[3];case 1:e[f+1-(u<<1)|0]=c[2];case 2:e[f+2-(u<<1)|0]=c[1];case 3:e[f+3-(u<<1)|0]=c[0]}if(!(o>2|0]=c[a]<<24|c[a+1]<<16|c[a+2]<<8|c[a+3];switch(s){case 3:e[f+h+1|0]=c[h+2];case 2:e[f+h+2|0]=c[h+1];case 1:e[f+h+3|0]=c[h]}}};t.exports=function(t,e,n,a,u,s){if("string"===typeof t)return i(t,e,n,a,u,s);if(t instanceof Array)return o(t,e,n,a,u,s);if(r&&r.Buffer&&r.Buffer.isBuffer(t))return o(t,e,n,a,u,s);if(t instanceof ArrayBuffer)return o(new Uint8Array(t),e,n,a,u,s);if(t.buffer instanceof ArrayBuffer)return o(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),e,n,a,u,s);if(t instanceof Blob)return f(t,e,n,a,u,s);throw new Error("Unsupported data type.")}},function(t,e,r){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=r(0),o=r(1),f=o.toHex,a=function(){function t(){n(this,t),this._rusha=new i,this._rusha.resetState()}return t.prototype.update=function(t){return this._rusha.append(t),this},t.prototype.digest=function(t){var e=this._rusha.rawEnd().buffer;if(!t)return e;if("hex"===t)return f(e);throw new Error("unsupported digest encoding")},t}();t.exports=function(){return new a}}])}))},"83cc":function(t,e){},8707:function(t,e,r){var n=r("b639"),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function f(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=f),o(i,f),f.from=function(t,e,r){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},f.alloc=function(t,e,r){if("number"!==typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"===typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},f.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},f.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},"8fe2":function(t,e,r){var n=t.exports;n.encode=r("4cdf"),n.decode=r("1131"),n.byteLength=n.encodingLength=function(t){return n.encode(t).length}},9152:function(t,e){e.read=function(t,e,r,n,i){var o,f,a=8*i-n-1,u=(1<>1,h=-7,c=r?i-1:0,l=r?-1:1,p=t[e+c];for(c+=l,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+t[e+c],c+=l,h-=8);for(f=o&(1<<-h)-1,o>>=-h,h+=n;h>0;f=256*f+t[e+c],c+=l,h-=8);if(0===o)o=1-s;else{if(o===u)return f?NaN:1/0*(p?-1:1);f+=Math.pow(2,n),o-=s}return(p?-1:1)*f*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var f,a,u,s=8*o-i-1,h=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,g=n?1:-1,d=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,f=h):(f=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-f))<1&&(f--,u*=2),e+=f+c>=1?l/u:l*Math.pow(2,1-c),e*u>=2&&(f++,u/=2),f+c>=h?(a=0,f=h):f+c>=1?(a=(e*u-1)*Math.pow(2,i),f+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),f=0));i>=8;t[r+p]=255&a,p+=g,a/=256,i-=8);for(f=f<0;t[r+p]=255&f,p+=g,f/=256,s-=8);t[r+p-g]|=128*d}},b639:function(t,e,r){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var n=r("1fb5"),i=r("9152"),o=r("e3db");function f(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),s.alloc(+t)}function m(t,e){if(s.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(t).length;default:if(n)return X(t).length;e=(""+e).toLowerCase(),n=!0}}function _(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return Y(this,e,r);case"utf8":case"utf-8":return k(this,e,r);case"ascii":return M(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return L(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function A(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function E(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:B(t,e,r,n,i);if("number"===typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):B(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function B(t,e,r,n,i){var o,f=1,a=t.length,u=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;f=2,a/=2,u/=2,r/=2}function s(t,e){return 1===f?t[e]:t.readUInt16BE(e*f)}if(i){var h=-1;for(o=r;oa&&(r=a-u),o=r;o>=0;o--){for(var c=!0,l=0;li&&(n=i)):n=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var f=0;f239?4:s>223?3:s>191?2:1;if(i+c<=r)switch(c){case 1:s<128&&(h=s);break;case 2:o=t[i+1],128===(192&o)&&(u=(31&s)<<6|63&o,u>127&&(h=u));break;case 3:o=t[i+1],f=t[i+2],128===(192&o)&&128===(192&f)&&(u=(15&s)<<12|(63&o)<<6|63&f,u>2047&&(u<55296||u>57343)&&(h=u));break;case 4:o=t[i+1],f=t[i+2],a=t[i+3],128===(192&o)&&128===(192&f)&&128===(192&a)&&(u=(15&s)<<18|(63&o)<<12|(63&f)<<6|63&a,u>65535&&u<1114112&&(h=u))}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}return I(n)}e.Buffer=s,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:f(),e.kMaxLength=a(),s.poolSize=8192,s._augment=function(t){return t.__proto__=s.prototype,t},s.from=function(t,e,r){return h(null,t,e,r)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(t,e,r){return l(null,t,e,r)},s.allocUnsafe=function(t){return p(null,t)},s.allocUnsafeSlow=function(t){return p(null,t)},s.isBuffer=function(t){return!(null==t||!t._isBuffer)},s.compare=function(t,e){if(!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},s.prototype.compare=function(t,e,r,n,i){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,f=r-e,a=Math.min(o,f),u=this.slice(n,i),h=t.slice(e,r),c=0;ci)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return R(this,t,e,r);case"utf8":case"utf-8":return S(this,t,e,r);case"ascii":return x(this,t,e,r);case"latin1":case"binary":return U(this,t,e,r);case"base64":return T(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function I(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var r="",n=0;while(nn)&&(r=n);for(var i="",o=e;or)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,r,n,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function z(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i>>8*(n?i:1-i)}function F(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i>>8*(n?i:3-i)&255}function H(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function W(t,e,r,n,o){return o||H(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function V(t,e,r,n,o){return o||H(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}s.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e0&&(i*=256))n+=this[t+--e]*i;return n},s.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);var n=this[t],i=1,o=0;while(++o=i&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);var n=e,i=1,o=this[t+--n];while(n>0&&(i*=256))o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){e||N(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){e||N(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return e||N(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return e||N(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;j(this,t,e,r,i,0)}var o=1,f=0;this[e]=255&t;while(++f=0&&(f*=256))this[e+o]=t/f&255;return e+r},s.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):z(this,t,e,!1),e+2},s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):F(this,t,e,!0),e+4},s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);j(this,t,e,r,i-1,-i)}var o=0,f=1,a=0;this[e]=255&t;while(++o>0)-a&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);j(this,t,e,r,i-1,-i)}var o=r-1,f=1,a=0;this[e+o]=255&t;while(--o>=0&&(f*=256))t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/f>>0)-a&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):z(this,t,e,!1),e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):F(this,t,e,!0),e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):F(this,t,e,!1),e+4},s.prototype.writeFloatLE=function(t,e,r){return W(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return W(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return V(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return V(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--i)t[i+e]=this[i+r];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(f+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Z(t){for(var e=[],r=0;r>8,i=r%256,o.push(i),o.push(n)}return o}function Q(t){return n.toByteArray(J(t))}function tt(t,e,r,n){for(var i=0;i=e.length||i>=t.length)break;e[i+r]=t[i]}return i}function et(t){return t!==t}}).call(this,r("c8ba"))},b944:function(t,e,r){(function(e,n){const i=r("8fe2"),o=r("4947"),f=r("3e8f"),a=r("c7ba"),u=r("83cc"),s=r("df7c"),h=r("2a3b"),c=r("175e");function l(t){if("string"===typeof t&&/^(stream-)?magnet:/.test(t))return u(t);if("string"===typeof t&&(/^[a-f0-9]{40}$/i.test(t)||/^[a-z2-7]{32}$/i.test(t)))return u("magnet:?xt=urn:btih:"+t);if(e.isBuffer(t)&&20===t.length)return u("magnet:?xt=urn:btih:"+t.toString("hex"));if(e.isBuffer(t))return g(t);if(t&&t.infoHash)return t.infoHash=t.infoHash.toLowerCase(),t.announce||(t.announce=[]),"string"===typeof t.announce&&(t.announce=[t.announce]),t.urlList||(t.urlList=[]),t;throw new Error("Invalid torrent identifier")}function p(t,e){let r;if("function"!==typeof e)throw new Error("second argument must be a Function");try{r=l(t)}catch(u){}function i(t){try{r=l(t)}catch(u){return e(u)}r&&r.infoHash?e(null,r):e(new Error("Invalid torrent identifier"))}r&&r.infoHash?n.nextTick(()=>{e(null,r)}):y(t)?o(t,(t,r)=>{if(t)return e(new Error("Error converting Blob: "+t.message));i(r)}):"function"===typeof a&&/^https?:/.test(t)?a.concat({url:t,timeout:3e4,headers:{"user-agent":"WebTorrent (https://webtorrent.io)"}},(t,r,n)=>{if(t)return e(new Error("Error downloading torrent: "+t.message));i(n)}):"function"===typeof f.readFile&&"string"===typeof t?f.readFile(t,(t,r)=>{if(t)return e(new Error("Invalid torrent identifier"));i(r)}):n.nextTick(()=>{e(new Error("Invalid torrent identifier"))})}function g(t){e.isBuffer(t)&&(t=i.decode(t)),b(t.info,"info"),b(t.info["name.utf-8"]||t.info.name,"info.name"),b(t.info["piece length"],"info['piece length']"),b(t.info.pieces,"info.pieces"),t.info.files?t.info.files.forEach(t=>{b("number"===typeof t.length,"info.files[0].length"),b(t["path.utf-8"]||t.path,"info.files[0].path")}):b("number"===typeof t.info.length,"info.length");const r={info:t.info,infoBuffer:i.encode(t.info),name:(t.info["name.utf-8"]||t.info.name).toString(),announce:[]};r.infoHash=h.sync(r.infoBuffer),r.infoHashBuffer=e.from(r.infoHash,"hex"),void 0!==t.info.private&&(r.private=!!t.info.private),t["creation date"]&&(r.created=new Date(1e3*t["creation date"])),t["created by"]&&(r.createdBy=t["created by"].toString()),e.isBuffer(t.comment)&&(r.comment=t.comment.toString()),Array.isArray(t["announce-list"])&&t["announce-list"].length>0?t["announce-list"].forEach(t=>{t.forEach(t=>{r.announce.push(t.toString())})}):t.announce&&r.announce.push(t.announce.toString()),e.isBuffer(t["url-list"])&&(t["url-list"]=t["url-list"].length>0?[t["url-list"]]:[]),r.urlList=(t["url-list"]||[]).map(t=>t.toString()),c(r.announce),c(r.urlList);const n=t.info.files||[t.info];r.files=n.map((t,e)=>{const i=[].concat(r.name,t["path.utf-8"]||t.path||[]).map(t=>t.toString());return{path:s.join.apply(null,[s.sep].concat(i)).slice(1),name:i[i.length-1],length:t.length,offset:n.slice(0,e).reduce(w,0)}}),r.length=n.reduce(w,0);const o=r.files[r.files.length-1];return r.pieceLength=t.info["piece length"],r.lastPieceLength=(o.offset+o.length)%r.pieceLength||r.pieceLength,r.pieces=v(t.info.pieces),r}function d(t){const r={info:t.info};return r["announce-list"]=(t.announce||[]).map(t=>(r.announce||(r.announce=t),t=e.from(t,"utf8"),[t])),r["url-list"]=t.urlList||[],void 0!==t.private&&(r["private"]=Number(t.private)),t.created&&(r["creation date"]=t.created.getTime()/1e3|0),t.createdBy&&(r["created by"]=t.createdBy),t.comment&&(r.comment=t.comment),i.encode(r)}function y(t){return"undefined"!==typeof Blob&&t instanceof Blob}function w(t,e){return t+e.length}function v(t){const e=[];for(let r=0;r{e.alloc(0)})()}).call(this,r("b639").Buffer,r("4362"))},c64e:function(t,e,r){var n=r("e1f4"),i=r("2366");function o(t,e,r){var o=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null),t=t||{};var f=t.random||(t.rng||n)();if(f[6]=15&f[6]|64,f[8]=63&f[8]|128,e)for(var a=0;a<16;++a)e[o+a]=f[a];return e||i(f)}t.exports=o},c7ba:function(t,e){},e1f4:function(t,e){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);t.exports=function(){return r(n),n}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0===(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},e3db:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},e8a7:function(t,e,r){"use strict";r.r(e);var n=r("b944"),i=r.n(n),o=r("8707"),f=r("0774"),a=r.n(f),u=r("c64e"),s=r.n(u);function h(){const t=[];s()({},t);const e=128;t[0]=t[0]|e;const r=a.a.encode(o["Buffer"].from(t));return r}r.d(e,"parseTorrent",(function(){return i.a})),r.d(e,"Buffer",(function(){return o["Buffer"]})),r.d(e,"guid",(function(){return h})),r.d(e,"uuid4",(function(){return s.a}))}}]); //# sourceMappingURL=lazy-modules.a169b1ec.js.map