Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

big-uuid

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

big-uuid - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

2

dist/browser/index.js

@@ -8,3 +8,3 @@ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.bigUUID=e():t.bigUUID=e()}(this,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=13)}([function(t,e,r){"use strict";(function(t){r.d(e,"a",function(){return n});var n=function(e){return parseInt(t.from(e).toString("hex"),16)}}).call(this,r(8).Buffer)},function(t,e){},function(t,e){e.endianness=function(){return"LE"},e.hostname=function(){return"undefined"!=typeof location?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL="\n",e.homedir=function(){return"/"}},function(t,e){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(t){return n.exec(t).slice(1)};function o(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var i=n>=0?arguments[n]:process.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,e="/"===i.charAt(0))}return t=r(o(t.split("/"),function(t){return!!t}),!e).join("/"),(e?"/":"")+t||"."},e.normalize=function(t){var n=e.isAbsolute(t),i="/"===s(t,-1);return(t=r(o(t.split("/"),function(t){return!!t}),!n).join("/"))||n||(t="."),t&&i&&(t+="/"),(n?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(o(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),o=n(r.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u<s;u++)if(i[u]!==o[u]){a=u;break}var f=[];for(u=a;u<i.length;u++)f.push("..");return(f=f.concat(o.slice(a))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){var e=i(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},e.basename=function(t,e){var r=i(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){return i(t)[3]};var s="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}},function(t,e,r){t.exports=function(){var t=t||function(t,e){var r=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),n={},i=n.lib={},o=i.Base={extend:function(t){var e=r(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},s=i.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=s<<24-(n+o)%4*8}else for(var o=0;o<i;o+=4)e[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var r,n=[],i=function(e){var e=e,r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}},o=0;o<e;o+=4){var a=i(4294967296*(r||t.random()));r=987654071*a(),n.push(4294967296*a()|0)}return new s.init(n,e)}}),a=n.enc={},u=a.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new s.init(r,e/2)}},f=a.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new s.init(r,e)}},c=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,a=4*o,u=i/a,f=(u=e?t.ceil(u):t.max((0|u)-this._minBufferSize,0))*o,c=t.min(4*f,i);if(f){for(var h=0;h<f;h+=o)this._doProcessBlock(n,h);var l=n.splice(0,f);r.sigBytes-=c}return new s.init(l,c)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),l=(i.Hasher=h.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new l.HMAC.init(t,r).finalize(e)}}}),n.algo={});return n}(Math);return t}()},function(t,e,r){t.exports=function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.Hasher,o=[],s=e.algo.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],s=r[2],a=r[3],u=r[4],f=0;f<80;f++){if(f<16)o[f]=0|t[e+f];else{var c=o[f-3]^o[f-8]^o[f-14]^o[f-16];o[f]=c<<1|c>>>31}var h=(n<<5|n>>>27)+u+o[f];h+=f<20?1518500249+(i&s|~i&a):f<40?1859775393+(i^s^a):f<60?(i&s|i&a|s&a)-1894007588:(i^s^a)-899497514,u=a,a=s,s=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=i._createHelper(s),e.HmacSHA1=i._createHmacHelper(s)}(),t.SHA1}(r(4))},function(t,e,r){t.exports=function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=s.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,s=t[e+0],u=t[e+1],p=t[e+2],d=t[e+3],g=t[e+4],y=t[e+5],v=t[e+6],m=t[e+7],w=t[e+8],_=t[e+9],I=t[e+10],S=t[e+11],E=t[e+12],A=t[e+13],b=t[e+14],U=t[e+15],R=o[0],T=o[1],D=o[2],N=o[3];T=l(T=l(T=l(T=l(T=h(T=h(T=h(T=h(T=c(T=c(T=c(T=c(T=f(T=f(T=f(T=f(T,D=f(D,N=f(N,R=f(R,T,D,N,s,7,a[0]),T,D,u,12,a[1]),R,T,p,17,a[2]),N,R,d,22,a[3]),D=f(D,N=f(N,R=f(R,T,D,N,g,7,a[4]),T,D,y,12,a[5]),R,T,v,17,a[6]),N,R,m,22,a[7]),D=f(D,N=f(N,R=f(R,T,D,N,w,7,a[8]),T,D,_,12,a[9]),R,T,I,17,a[10]),N,R,S,22,a[11]),D=f(D,N=f(N,R=f(R,T,D,N,E,7,a[12]),T,D,A,12,a[13]),R,T,b,17,a[14]),N,R,U,22,a[15]),D=c(D,N=c(N,R=c(R,T,D,N,u,5,a[16]),T,D,v,9,a[17]),R,T,S,14,a[18]),N,R,s,20,a[19]),D=c(D,N=c(N,R=c(R,T,D,N,y,5,a[20]),T,D,I,9,a[21]),R,T,U,14,a[22]),N,R,g,20,a[23]),D=c(D,N=c(N,R=c(R,T,D,N,_,5,a[24]),T,D,b,9,a[25]),R,T,d,14,a[26]),N,R,w,20,a[27]),D=c(D,N=c(N,R=c(R,T,D,N,A,5,a[28]),T,D,p,9,a[29]),R,T,m,14,a[30]),N,R,E,20,a[31]),D=h(D,N=h(N,R=h(R,T,D,N,y,4,a[32]),T,D,w,11,a[33]),R,T,S,16,a[34]),N,R,b,23,a[35]),D=h(D,N=h(N,R=h(R,T,D,N,u,4,a[36]),T,D,g,11,a[37]),R,T,m,16,a[38]),N,R,I,23,a[39]),D=h(D,N=h(N,R=h(R,T,D,N,A,4,a[40]),T,D,s,11,a[41]),R,T,d,16,a[42]),N,R,v,23,a[43]),D=h(D,N=h(N,R=h(R,T,D,N,_,4,a[44]),T,D,E,11,a[45]),R,T,U,16,a[46]),N,R,p,23,a[47]),D=l(D,N=l(N,R=l(R,T,D,N,s,6,a[48]),T,D,m,10,a[49]),R,T,b,15,a[50]),N,R,y,21,a[51]),D=l(D,N=l(N,R=l(R,T,D,N,E,6,a[52]),T,D,d,10,a[53]),R,T,I,15,a[54]),N,R,u,21,a[55]),D=l(D,N=l(N,R=l(R,T,D,N,w,6,a[56]),T,D,U,10,a[57]),R,T,v,15,a[58]),N,R,A,21,a[59]),D=l(D,N=l(N,R=l(R,T,D,N,g,6,a[60]),T,D,S,10,a[61]),R,T,p,15,a[62]),N,R,_,21,a[63]),o[0]=o[0]+R|0,o[1]=o[1]+T|0,o[2]=o[2]+D|0,o[3]=o[3]+N|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),s=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(r.length+1),this._process();for(var a=this._hash,u=a.words,f=0;f<4;f++){var c=u[f];u[f]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return a},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function f(t,e,r,n,i,o,s){var a=t+(e&r|~e&n)+i+s;return(a<<o|a>>>32-o)+e}function c(t,e,r,n,i,o,s){var a=t+(e&n|r&~n)+i+s;return(a<<o|a>>>32-o)+e}function h(t,e,r,n,i,o,s){var a=t+(e^r^n)+i+s;return(a<<o|a>>>32-o)+e}function l(t,e,r,n,i,o,s){var a=t+(r^(e|~n))+i+s;return(a<<o|a>>>32-o)+e}r.MD5=o._createHelper(u),r.HmacMD5=o._createHmacHelper(u)}(Math),t.MD5}(r(4))},function(t,e,r){t.exports=function(t){return t.enc.Hex}(r(4))},function(t,e,r){"use strict";(function(t){

*/
var n=r(10),i=r(11),o=r(12);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return f(this,t,e,r)}function f(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=l(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(e,r),i=(t=a(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|p(e.length);return 0===(t=a(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?a(t,0):l(t,e);if("Buffer"===e.type&&o(e.data))return l(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(c(e),t=a(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function l(t,e){var r=e.length<0?0:0|p(e.length);t=a(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,e){if(u.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 G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(t).length;default:if(n)return G(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(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=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function f(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var c=-1;for(o=r;o<a;o++)if(f(t,o)===f(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var h=!0,l=0;l<u;l++)if(f(t,o+l)!==f(e,l)){h=!1;break}if(h)return o}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(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 s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function w(t,e,r,n){return H(G(e,t.length-r),t,r,n)}function _(t,e,r,n){return H(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function I(t,e,r,n){return _(t,e,r,n)}function S(t,e,r,n){return H(Y(e),t,r,n)}function E(t,e,r,n){return H(function(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function b(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,u,f=t[i],c=null,h=f>239?4:f>223?3:f>191?2:1;if(i+h<=r)switch(h){case 1:f<128&&(c=f);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&f)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&f)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(t){var e=t.length;if(e<=U)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=U));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){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(t){return!1}}(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return f(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return c(e),e<=0?a(t,e):void 0!==r?"string"==typeof n?a(t,e).fill(r,n):a(t,e).fill(r):a(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.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);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var s=t[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?b(this,0,t):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))return"";for(t||(t="utf8");;)switch(t){case"hex":return D(this,e,r);case"utf8":case"utf-8":return b(this,e,r);case"ascii":return R(this,e,r);case"latin1":case"binary":return T(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,i){if(!u.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,s=r-e,a=Math.min(o,s),f=this.slice(n,i),c=t.slice(e,r),h=0;h<a;++h)if(f[h]!==c[h]){o=f[h],s=c[h];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(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 m(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return I(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function R(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function T(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function D(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=x(t[o]);return i}function N(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function B(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function P(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function L(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function O(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 k(t,e,r,n,o){return o||O(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function C(t,e,r,n,o){return o||O(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||B(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||B(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||B(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||M(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||M(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);M(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);M(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return k(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return k(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return C(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return C(this,t,e,!1,r)},u.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<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=u.isBuffer(t)?t:G(new u(t,n).toString()),a=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function x(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+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 Y(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(9))},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.byteLength=function(t){var e=f(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){for(var e,r=f(t),n=r[0],s=r[1],a=new o(function(t,e,r){return 3*(e+r)/4-r}(0,n,s)),u=0,c=s>0?n-4:n,h=0;h<c;h+=4)e=i[t.charCodeAt(h)]<<18|i[t.charCodeAt(h+1)]<<12|i[t.charCodeAt(h+2)]<<6|i[t.charCodeAt(h+3)],a[u++]=e>>16&255,a[u++]=e>>8&255,a[u++]=255&e;2===s&&(e=i[t.charCodeAt(h)]<<2|i[t.charCodeAt(h+1)]>>4,a[u++]=255&e);1===s&&(e=i[t.charCodeAt(h)]<<10|i[t.charCodeAt(h+1)]<<4|i[t.charCodeAt(h+2)]>>2,a[u++]=e>>8&255,a[u++]=255&e);return a},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],s=0,a=r-i;s<a;s+=16383)o.push(h(t,s,s+16383>a?a:s+16383));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]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function f(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function h(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(c(n));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,c=-7,h=r?i-1:0,l=r?-1:1,p=t[e+h];for(h+=l,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+t[e+h],h+=l,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[e+h],h+=l,c-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,c=(1<<f)-1,h=c>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+h>=1?l/u:l*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+p]=255&s,p+=d,s/=256,f-=8);t[r+p-d]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";r.r(e);var n={UUID_VERSION_INVALID:"The version argument was not a valid UUID version.",HASH_ARGUMENT_MISSING:"The hash argument was not provided, without which a v3 or v5 UUID cannot be created.",TIMESTAMP_GENERATION_FAILED:"The random number generator did not produce an acceptable value for the random number used in place of a stable timestamp.",TIMESTAMP_INVALID:"The timestamp property of the UUID object is malformed.",NAMESPACE_ID_MISSING:"In order to construct a v3 or v5 UUID, you need to provide a namespace ID to be hashed.",NAME_MISSING:"In order to construct a v3 or v5 UUID, you need to provide a name to be hashed.",CLOCK_SEQUENCE_INVALID:"The clockSequence property of the UUID object is malformed.",CLOCK_SEQUENCE_GENERATION_FAILED:"The random number generator did not produce an acceptable value for the random number used in place of a stable clock sequence.",CLOCK_SEQUENCE_LOW_INVALID:"The clockSequenceLow property of the UUID object is malformed.",CLOCK_SEQUENCE_HIGH_INVALID:"The clockSequenceHigh property of the UUID object is malformed.",CLOCK_HIGH_AND_RESERVED_INVALID:"The clockSequenceHighAndReserved property of the UUID object is malformed.",MAC_ADDRESS_UNAVAILABLE:"The MAC address is unavailable, which makes creating the version 1 node ID impossible.",MAC_ADDRESS_INVALID:"The MAC address was found, but it was malformed.",UUID_LAST_RESULTS_INVALID:"The provided last results object did not meet the isValidLastResults type guard.",UUID_STRING_INVALID:"The text argument passed to UUID.parse was malformed.",UUID_OPTIONS_INVALID:"The options argument passed to one of the UUID methods did not meet the isUUIDOptions type guard.",TIME_LOW_INVALID:"The timestamp property did not produce a valid low portion of the timestamp.",TIME_MID_INVALID:"The timestamp property did not produce a valid mid portion of the timestamp.",TIME_HIGH_INVALID:"The timestamp property did not produce a valid high portion of the timestamp.",TIME_HIGH_AND_VERSION_INVALID:"The timestamp property did not produce a valid high-and-version multiplex.",NODE_IDENTIFIER_INVALID:"The nodeIdentifier property of the UUID object was malformed."},i=r(5),o=r(6),s=r(7),a=function(t,e,r){if(!e)throw new Error(n.NAMESPACE_ID_MISSING);if(!r)throw new Error(n.NAME_MISSING);var a,u=e+r;return a="3"===t.toString()?o(u):i(u),s.stringify(a)},u=function(){return Boolean("undefined"!=typeof process&&process.versions&&process.versions.node)};function f(t){return/^[1345]$/.test(t.toString())}var c=r(0),h=function(t){for(var e=[],r=t.length;r>0;r-=8){var n=t.slice(r-8,r).padStart(8,"0");e.unshift(parseInt(n,2))}return new Uint8Array(e)},l=r(1);function p(t){return"object"==typeof t&&t&&t.clockSequence&&"BYTES_PER_ELEMENT"in t.clockSequence&&t.nodeIdentifier&&"BYTES_PER_ELEMENT"in t.nodeIdentifier&&t.timestamp&&"BYTES_PER_ELEMENT"in t.timestamp}var d=r(2),g=r(3),y=function(){var t=null;try{var e=Object(l.readFileSync)(Object(g.join)(Object(d.homedir)(),"ifid"),"utf8");t=JSON.parse(e)}catch(t){}return p(t)?t:{}}(),v=function(t){if(u())return new Uint8Array(Object(l.randomBytes)(t));for(var e=window.crypto||window.msCrypto,r=new Uint8Array(t),n=0;n<t;n+=65536)e.getRandomValues(r.subarray(n,n+Math.min(t-n,65536)));return r};function m(t,e){if(!f(t))throw new Error(n.UUID_VERSION_INVALID);var r;if(/^[14]$/.test(t.toString())){if(y.clockSequence&&"BYTES_PER_ELEMENT"in y.clockSequence)return y.clockSequence;r=function(){var t=Object(c.a)(v(2)).toString(2).slice(0,14);return new Uint8Array([parseInt(t.slice(0,6),2),parseInt(t.slice(6),2)])}(),"1"===t.toString()&&(y.clockSequence=r)}else{if(!e)throw new Error(n.HASH_ARGUMENT_MISSING);var i="";i+=e.slice(16,18),i+=e.slice(18,20);var o=parseInt(i,16).toString(2).padStart(14,"0");r=h(o)}return r}function w(){for(var t=Object(d.networkInterfaces)(),e=Object.keys(t),r=0;r<e.length;r+=1)for(var i=t[e[r]],o=0;o<i.length;o+=1){var s=i[o];if("object"==typeof s&&s){var a=s.mac;if("string"==typeof a&&a&&"00:00:00:00:00:00"!==a){var u=a.split(":").map(function(t){return parseInt(t,16)});return new Uint8Array(u)}}}throw new Error(n.MAC_ADDRESS_UNAVAILABLE)}function _(t,e){var r;if("1"===t.toString()){if(y.nodeIdentifier&&"BYTES_PER_ELEMENT"in y.nodeIdentifier)return y.nodeIdentifier;r=w(),y.nodeIdentifier=r}else if(/^[35]$/.test(t.toString())){if(!e)throw new Error(n.HASH_ARGUMENT_MISSING);var i="";i+=e.slice(20,32);var o=parseInt(i,16).toString(2).padStart(48,"0");r=h(o)}else{if("4"!==t.toString())throw new Error(n.UUID_VERSION_INVALID);r=v(6)}return r}function I(){return 10*((new Date).getTime()-new Date(1582,9,15).getTime())}function S(t,e){if(!f(t))throw new Error(n.UUID_VERSION_INVALID);var r;if("1"===t.toString()){var i=y.timestamp,o=I();i&&"BYTES_PER_ELEMENT"in i&&Object(c.a)(i)>o&&y.clockSequence&&"BYTES_PER_ELEMENT"in y.clockSequence&&(y.clockSequence[1]+=1);for(var s=o.toString(2).padStart(60,"0"),a=[],u=60;u>0;u-=8){var l=s.slice(u-8,u).padStart(8,"0");a.unshift(parseInt(l,2))}r=new Uint8Array(a)}else if(/^[35]$/.test(t.toString())){if(!e)throw new Error(n.HASH_ARGUMENT_MISSING);var p="";p=e.slice(0,8),p=e.slice(8,12)+p,p=e.slice(12,16)+p;var d=parseInt(p,16).toString(2).padStart(60,"0");r=h(d)}else(r=v(8))[7]=parseInt(r[7].toString(2).slice(0,4),2);return y.timestamp=r,r}var E=function(t){void 0===t&&(t={}),this.version="4",this.clockSequenceGetter=m,this.nodeIdentifierGetter=_,this.timestampGetter=S;var e=t||{};if(e.version){if(!f(e.version))throw new Error(n.UUID_VERSION_INVALID);this.version=e.version}if(e.clockSequenceGetter&&(this.clockSequenceGetter=e.clockSequenceGetter),e.nodeIdentifierGetter&&(this.nodeIdentifierGetter=e.nodeIdentifierGetter),e.timestampGetter&&(this.timestampGetter=e.timestampGetter),e.namespaceId&&(this.namespaceId=e.namespaceId),e.name&&(this.namespaceId=e.namespaceId),/^[35]$/.test(this.version.toString())){if(!this.namespaceId)throw new Error(n.NAMESPACE_ID_MISSING);if(!this.name)throw new Error(n.NAME_MISSING)}},A=function(t){if(!p(t))throw new Error(n.UUID_LAST_RESULTS_INVALID);var e={clockSequence:Array.from(t.clockSequence),nodeIdentifier:Array.from(t.nodeIdentifier),timestamp:Array.from(t.timestamp)};try{Object(l.writeFileSync)(Object(g.join)(Object(d.homedir)(),"ifid"),JSON.stringify(e),{encoding:"utf8"})}catch(t){console.error("Could not save results.")}};function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var U,R=function(){function t(t){var e=new E;t&&"object"==typeof t&&(t.version&&(e.version=t.version),t.clockSequenceGetter&&(e.clockSequenceGetter=t.clockSequenceGetter),t.timestampGetter&&(e.timestampGetter=t.timestampGetter),t.nodeIdentifierGetter&&(e.nodeIdentifierGetter=t.nodeIdentifierGetter),t.namespaceId&&(e.namespaceId=t.namespaceId),t.name&&(e.name=t.name));var r=e.version;if(!f(r))throw new Error(n.UUID_VERSION_INVALID);if(u()||"1"===r.toString()&&(console.error("The time-based version 1 UUID cannot be created within the browser. Falling back to the pseudo-random version 4."),r="4"),this.__version=r,/^[35]$/.test(r.toString())){if(!e.namespaceId)throw new Error(n.NAMESPACE_ID_MISSING);if(!e.name)throw new Error(n.NAME_MISSING);var i=a(r,e.namespaceId,e.name),o=e.clockSequenceGetter(r,i);this.__clockSequence=o;var s=e.timestampGetter(r,i);this.__timestamp=s;var c=e.nodeIdentifierGetter(r,i);this.__nodeIdentifier=c}else{var h=e.clockSequenceGetter(r);this.__clockSequence=h;var l=e.timestampGetter(r);this.__timestamp=l;var p=e.nodeIdentifierGetter(r);this.__nodeIdentifier=p,u()&&"1"===this.version.toString()&&A(this)}}return t.parse=function(t){var e=t.split("-");if(5!==e.length)throw new Error(n.UUID_STRING_INVALID);for(var r=function(t){return parseInt(parseInt(t,16).toString(2).split("").reverse().join(),2).toString(16)},i=r(e[0]),o=r(e[1]),s=r(e[2]),a=s.slice(0,3),u=s[4],f=a+o+i,c=[],h=0;h<16;h+=2)c.push(parseInt(f.slice(h,h+2),16));for(var l=new Uint8Array(c),p=r(e[3]),d=p.slice(0,2),g=parseInt(parseInt(d,16).toString(2).slice(2),2).toString(16),y=p.slice(2,4)+g,v=[],m=0;m<7;m+=2)v.push(parseInt(y.slice(m,m+2),16));for(var w=new Uint8Array(v),_=r(e[4]),I=[],S=0;S<12;S+=2)I.push(parseInt(_.slice(S,S+2),16));var E=new Uint8Array(I);return Object.assign({},this.prototype,{__version:u,__timestamp:l,__clockSequence:w,__nodeIdentifier:E})},t.prototype.toString=function(){var t=function(t,e){return Object(c.a)(t).toString(16).padStart(e,"0")};return t(this.timeLow,8)+"-"+t(this.timeMid,4)+"-"+t(this.timeHighAndVersion,4)+"-"+t(this.clockSequenceHighAndReserved,2)+t(this.clockSequenceLow,2)+"-"+t(this.nodeIdentifier,12)},function(t,e,r){e&&b(t.prototype,e),r&&b(t,r)}(t,[{key:"version",get:function(){return this.__version}},{key:"timestamp",get:function(){return this.__timestamp}},{key:"timeLow",get:function(){return this.timestamp.slice(4,8)}},{key:"timeMid",get:function(){return this.timestamp.slice(2,4)}},{key:"timeHigh",get:function(){return this.timestamp.slice(0,2)}},{key:"timeHighAndVersion",get:function(){var t=this.timeHigh,e=parseInt(this.version.toString()).toString(2),r=Object(c.a)(t).toString(2),n=e.padStart(4,"0")+r.padStart(12,"0"),i=parseInt(n.slice(0,8),2),o=parseInt(n.slice(8,16),2);return new Uint8Array([i,o])}},{key:"clockSequence",get:function(){return this.__clockSequence}},{key:"clockSequenceLow",get:function(){return this.clockSequence.slice(0,1)}},{key:"clockSequenceHigh",get:function(){return this.clockSequence.slice(1)}},{key:"reserved",get:function(){return new Uint8Array([2])}},{key:"clockSequenceHighAndReserved",get:function(){var t=Object(c.a)(this.clockSequenceHigh).toString(2),e=Object(c.a)(this.reserved).toString(2),r=t.padStart(6,"0")+e.padStart(2,"0");return new Uint8Array([parseInt(r,2)])}},{key:"nodeIdentifier",get:function(){return this.__nodeIdentifier}}]),t}();!function(t){t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t.OID="6ba7b812-9dad-11d1-80b4-00c04fd430c8",t.X500="6ba7b814-9dad-11d1-80b4-00c04fd430c8"}(U||(U={}));var T=function(t){var e=t.toString(2).split("").reverse().join("");return parseInt(e,2).toString(16)};r.d(e,"UUID",function(){return R}),r.d(e,"UUIDOptions",function(){return E}),r.d(e,"NamespaceIds",function(){return U}),r.d(e,"clockSequenceGetter",function(){return m}),r.d(e,"getHashFromNamespaceIdAndName",function(){return a}),r.d(e,"getHundredsOfNanosecondsSinceGregorianReform",function(){return I}),r.d(e,"nodeIdentifierGetter",function(){return _}),r.d(e,"numberAsLittleEndianHexStr",function(){return T}),r.d(e,"timestampGetter",function(){return S}),r.d(e,"uintArrayAsNumber",function(){return c.a})}])});
var n=r(10),i=r(11),o=r(12);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return f(this,t,e,r)}function f(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=l(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(e,r),i=(t=a(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r=0|p(e.length);return 0===(t=a(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?a(t,0):l(t,e);if("Buffer"===e.type&&o(e.data))return l(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(c(e),t=a(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function l(t,e){var r=e.length<0?0:0|p(e.length);t=a(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,e){if(u.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 G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(t).length;default:if(n)return G(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(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=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function f(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var c=-1;for(o=r;o<a;o++)if(f(t,o)===f(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var h=!0,l=0;l<u;l++)if(f(t,o+l)!==f(e,l)){h=!1;break}if(h)return o}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(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 s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function w(t,e,r,n){return H(G(e,t.length-r),t,r,n)}function _(t,e,r,n){return H(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function I(t,e,r,n){return _(t,e,r,n)}function S(t,e,r,n){return H(Y(e),t,r,n)}function E(t,e,r,n){return H(function(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function b(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,u,f=t[i],c=null,h=f>239?4:f>223?3:f>191?2:1;if(i+h<=r)switch(h){case 1:f<128&&(c=f);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&f)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&f)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(t){var e=t.length;if(e<=U)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=U));return r}(n)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){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(t){return!1}}(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return f(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return function(t,e,r,n){return c(e),e<=0?a(t,e):void 0!==r?"string"==typeof n?a(t,e).fill(r,n):a(t,e).fill(r):a(t,e)}(null,t,e,r)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.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);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var s=t[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?b(this,0,t):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))return"";for(t||(t="utf8");;)switch(t){case"hex":return D(this,e,r);case"utf8":case"utf-8":return b(this,e,r);case"ascii":return R(this,e,r);case"latin1":case"binary":return T(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,i){if(!u.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,s=r-e,a=Math.min(o,s),f=this.slice(n,i),c=t.slice(e,r),h=0;h<a;++h)if(f[h]!==c[h]){o=f[h],s=c[h];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(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 m(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return I(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function R(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function T(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function D(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=x(t[o]);return i}function N(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function B(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function P(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function L(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function O(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 k(t,e,r,n,o){return o||O(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function C(t,e,r,n,o){return o||O(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||B(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||B(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||B(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||M(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||M(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):L(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);M(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);M(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):L(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):L(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return k(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return k(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return C(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return C(this,t,e,!1,r)},u.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<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=u.isBuffer(t)?t:G(new u(t,n).toString()),a=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function x(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+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 Y(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(9))},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.byteLength=function(t){var e=f(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){for(var e,r=f(t),n=r[0],s=r[1],a=new o(function(t,e,r){return 3*(e+r)/4-r}(0,n,s)),u=0,c=s>0?n-4:n,h=0;h<c;h+=4)e=i[t.charCodeAt(h)]<<18|i[t.charCodeAt(h+1)]<<12|i[t.charCodeAt(h+2)]<<6|i[t.charCodeAt(h+3)],a[u++]=e>>16&255,a[u++]=e>>8&255,a[u++]=255&e;2===s&&(e=i[t.charCodeAt(h)]<<2|i[t.charCodeAt(h+1)]>>4,a[u++]=255&e);1===s&&(e=i[t.charCodeAt(h)]<<10|i[t.charCodeAt(h+1)]<<4|i[t.charCodeAt(h+2)]>>2,a[u++]=e>>8&255,a[u++]=255&e);return a},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],s=0,a=r-i;s<a;s+=16383)o.push(h(t,s,s+16383>a?a:s+16383));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]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function f(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function h(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(c(n));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,c=-7,h=r?i-1:0,l=r?-1:1,p=t[e+h];for(h+=l,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+t[e+h],h+=l,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[e+h],h+=l,c-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,c=(1<<f)-1,h=c>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+h>=1?l/u:l*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+p]=255&s,p+=d,s/=256,f-=8);t[r+p-d]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";r.r(e);var n={UUID_VERSION_INVALID:"The version argument was not a valid UUID version.",HASH_ARGUMENT_MISSING:"The hash argument was not provided, without which a v3 or v5 UUID cannot be created.",TIMESTAMP_GENERATION_FAILED:"The random number generator did not produce an acceptable value for the random number used in place of a stable timestamp.",TIMESTAMP_INVALID:"The timestamp property of the UUID object is malformed.",NAMESPACE_ID_MISSING:"In order to construct a v3 or v5 UUID, you need to provide a namespace ID to be hashed.",NAME_MISSING:"In order to construct a v3 or v5 UUID, you need to provide a name to be hashed.",CLOCK_SEQUENCE_INVALID:"The clockSequence property of the UUID object is malformed.",CLOCK_SEQUENCE_GENERATION_FAILED:"The random number generator did not produce an acceptable value for the random number used in place of a stable clock sequence.",CLOCK_SEQUENCE_LOW_INVALID:"The clockSequenceLow property of the UUID object is malformed.",CLOCK_SEQUENCE_HIGH_INVALID:"The clockSequenceHigh property of the UUID object is malformed.",CLOCK_HIGH_AND_RESERVED_INVALID:"The clockSequenceHighAndReserved property of the UUID object is malformed.",MAC_ADDRESS_UNAVAILABLE:"The MAC address is unavailable, which makes creating the version 1 node ID impossible.",MAC_ADDRESS_INVALID:"The MAC address was found, but it was malformed.",UUID_LAST_RESULTS_INVALID:"The provided last results object did not meet the isValidLastResults type guard.",UUID_STRING_INVALID:"The text argument passed to UUID.parse was malformed.",UUID_OPTIONS_INVALID:"The options argument passed to one of the UUID methods did not meet the isUUIDOptions type guard.",TIME_LOW_INVALID:"The timestamp property did not produce a valid low portion of the timestamp.",TIME_MID_INVALID:"The timestamp property did not produce a valid mid portion of the timestamp.",TIME_HIGH_INVALID:"The timestamp property did not produce a valid high portion of the timestamp.",TIME_HIGH_AND_VERSION_INVALID:"The timestamp property did not produce a valid high-and-version multiplex.",NODE_IDENTIFIER_INVALID:"The nodeIdentifier property of the UUID object was malformed."},i=r(5),o=r(6),s=r(7),a=function(t,e,r){if(!e)throw new Error(n.NAMESPACE_ID_MISSING);if(!r)throw new Error(n.NAME_MISSING);var a,u=e+r;return a="3"===t.toString()?o(u):i(u),s.stringify(a)},u=function(){return Boolean("undefined"!=typeof process&&process.versions&&process.versions.node)};function f(t){return/^[1345]$/.test(t.toString())}var c=r(0),h=function(t){for(var e=[],r=t.length;r>0;r-=8){var n=t.slice(r-8,r).padStart(8,"0");e.unshift(parseInt(n,2))}return new Uint8Array(e)},l=r(1);function p(t){return"object"==typeof t&&t&&t.clockSequence&&"BYTES_PER_ELEMENT"in t.clockSequence&&t.nodeIdentifier&&"BYTES_PER_ELEMENT"in t.nodeIdentifier&&t.timestamp&&"BYTES_PER_ELEMENT"in t.timestamp}var d=r(2),g=r(3),y=function(){var t=null;try{var e=Object(l.readFileSync)(Object(g.join)(Object(d.homedir)(),"ifid"),"utf8");t=JSON.parse(e)}catch(t){}return p(t)?t:{}}(),v=function(t){if(u())return new Uint8Array(Object(l.randomBytes)(t));for(var e=window.crypto||window.msCrypto,r=new Uint8Array(t),n=0;n<t;n+=65536)e.getRandomValues(r.subarray(n,n+Math.min(t-n,65536)));return r};function m(t,e){if(!f(t))throw new Error(n.UUID_VERSION_INVALID);var r;if(/^[14]$/.test(t.toString())){if(y.clockSequence&&"BYTES_PER_ELEMENT"in y.clockSequence)return y.clockSequence;r=function(){var t=Object(c.a)(v(2)).toString(2).slice(0,14);return new Uint8Array([parseInt(t.slice(0,6),2),parseInt(t.slice(6),2)])}(),"1"===t.toString()&&(y.clockSequence=r)}else{if(!e)throw new Error(n.HASH_ARGUMENT_MISSING);var i="";i+=e.slice(16,18),i+=e.slice(18,20);var o=parseInt(i,16).toString(2).padStart(14,"0");r=h(o)}return r}function w(){for(var t=Object(d.networkInterfaces)(),e=Object.keys(t),r=0;r<e.length;r+=1)for(var i=t[e[r]],o=0;o<i.length;o+=1){var s=i[o];if("object"==typeof s&&s){var a=s.mac;if("string"==typeof a&&a&&"00:00:00:00:00:00"!==a){var u=a.split(":").map(function(t){return parseInt(t,16)});return new Uint8Array(u)}}}throw new Error(n.MAC_ADDRESS_UNAVAILABLE)}function _(t,e){var r;if("1"===t.toString()){if(y.nodeIdentifier&&"BYTES_PER_ELEMENT"in y.nodeIdentifier)return y.nodeIdentifier;r=w(),y.nodeIdentifier=r}else if(/^[35]$/.test(t.toString())){if(!e)throw new Error(n.HASH_ARGUMENT_MISSING);var i="";i+=e.slice(20,32);var o=parseInt(i,16).toString(2).padStart(48,"0");r=h(o)}else{if("4"!==t.toString())throw new Error(n.UUID_VERSION_INVALID);r=v(6)}return r}function I(){return 10*((new Date).getTime()-new Date(1582,9,15).getTime())}function S(t,e){if(!f(t))throw new Error(n.UUID_VERSION_INVALID);var r;if("1"===t.toString()){var i=y.timestamp,o=I();i&&"BYTES_PER_ELEMENT"in i&&Object(c.a)(i)>o&&y.clockSequence&&"BYTES_PER_ELEMENT"in y.clockSequence&&(y.clockSequence[1]+=1);for(var s=o.toString(2).padStart(60,"0"),a=[],u=60;u>0;u-=8){var l=s.slice(u-8,u).padStart(8,"0");a.unshift(parseInt(l,2))}r=new Uint8Array(a)}else if(/^[35]$/.test(t.toString())){if(!e)throw new Error(n.HASH_ARGUMENT_MISSING);var p="";p=e.slice(0,8),p=e.slice(8,12)+p,p=e.slice(12,16)+p;var d=parseInt(p,16).toString(2).padStart(60,"0");r=h(d)}else(r=v(8))[7]=parseInt(r[7].toString(2).slice(0,4),2);return y.timestamp=r,r}var E=function(t){void 0===t&&(t={}),this.version="4",this.clockSequenceGetter=m,this.nodeIdentifierGetter=_,this.timestampGetter=S;var e=t||{};if(e.version){if(!f(e.version))throw new Error(n.UUID_VERSION_INVALID);this.version=e.version}if(e.clockSequenceGetter&&(this.clockSequenceGetter=e.clockSequenceGetter),e.nodeIdentifierGetter&&(this.nodeIdentifierGetter=e.nodeIdentifierGetter),e.timestampGetter&&(this.timestampGetter=e.timestampGetter),e.namespaceId&&(this.namespaceId=e.namespaceId),e.name&&(this.namespaceId=e.namespaceId),/^[35]$/.test(this.version.toString())){if(!this.namespaceId)throw new Error(n.NAMESPACE_ID_MISSING);if(!this.name)throw new Error(n.NAME_MISSING)}},A=function(t){if(!p(t))throw new Error(n.UUID_LAST_RESULTS_INVALID);var e={clockSequence:Array.from(t.clockSequence),nodeIdentifier:Array.from(t.nodeIdentifier),timestamp:Array.from(t.timestamp)};try{Object(l.writeFileSync)(Object(g.join)(Object(d.homedir)(),"ifid"),JSON.stringify(e),{encoding:"utf8"})}catch(t){console.error("Could not save results.")}};function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var U,R=function(){function t(t){var e=new E;t&&"object"==typeof t&&(t.version&&(e.version=t.version),t.clockSequenceGetter&&(e.clockSequenceGetter=t.clockSequenceGetter),t.timestampGetter&&(e.timestampGetter=t.timestampGetter),t.nodeIdentifierGetter&&(e.nodeIdentifierGetter=t.nodeIdentifierGetter),t.namespaceId&&(e.namespaceId=t.namespaceId),t.name&&(e.name=t.name));var r=e.version;if(!f(r))throw new Error(n.UUID_VERSION_INVALID);if(u()||"1"===r.toString()&&(console.error("The time-based version 1 UUID cannot be created within the browser. Falling back to the pseudo-random version 4."),r="4"),this.__version=r,/^[35]$/.test(r.toString())){if(!e.namespaceId)throw new Error(n.NAMESPACE_ID_MISSING);if(!e.name)throw new Error(n.NAME_MISSING);var i=a(r,e.namespaceId,e.name),o=e.clockSequenceGetter(r,i);this.__clockSequence=o;var s=e.timestampGetter(r,i);this.__timestamp=s;var c=e.nodeIdentifierGetter(r,i);this.__nodeIdentifier=c}else{var h=e.clockSequenceGetter(r);this.__clockSequence=h;var l=e.timestampGetter(r);this.__timestamp=l;var p=e.nodeIdentifierGetter(r);this.__nodeIdentifier=p,u()&&"1"===this.version.toString()&&A(this)}}return t.parse=function(t){var e=t.split("-");if(5!==e.length)throw new Error(n.UUID_STRING_INVALID);for(var r=e[0],i=e[1],o=e[2],s=o.slice(0,3),a=o[4],u=s+i+r,f=[],c=0;c<16;c+=2)f.push(parseInt(u.slice(c,c+2),16));for(var h=new Uint8Array(f),l=e[3],p=l.slice(0,2),d=parseInt(parseInt(p,16).toString(2).slice(2),2).toString(16),g=l.slice(2,4)+d,y=[],v=0;v<7;v+=2)y.push(parseInt(g.slice(v,v+2),16));for(var m=new Uint8Array(y),w=e[4],_=[],I=0;I<12;I+=2)_.push(parseInt(w.slice(I,I+2),16));var S=new Uint8Array(_);return Object.assign({},this.prototype,{__version:a,__timestamp:h,__clockSequence:m,__nodeIdentifier:S})},t.prototype.toString=function(){var t=function(t,e){return Object(c.a)(t).toString(16).padStart(e,"0")};return t(this.timeLow,8)+"-"+t(this.timeMid,4)+"-"+t(this.timeHighAndVersion,4)+"-"+t(this.clockSequenceHighAndReserved,2)+t(this.clockSequenceLow,2)+"-"+t(this.nodeIdentifier,12)},function(t,e,r){e&&b(t.prototype,e),r&&b(t,r)}(t,[{key:"version",get:function(){return this.__version}},{key:"timestamp",get:function(){return this.__timestamp}},{key:"timeLow",get:function(){return this.timestamp.slice(4,8)}},{key:"timeMid",get:function(){return this.timestamp.slice(2,4)}},{key:"timeHigh",get:function(){return this.timestamp.slice(0,2)}},{key:"timeHighAndVersion",get:function(){var t=this.timeHigh,e=parseInt(this.version.toString()).toString(2),r=Object(c.a)(t).toString(2),n=e.padStart(4,"0")+r.padStart(12,"0"),i=parseInt(n.slice(0,8),2),o=parseInt(n.slice(8,16),2);return new Uint8Array([i,o])}},{key:"clockSequence",get:function(){return this.__clockSequence}},{key:"clockSequenceLow",get:function(){return this.clockSequence.slice(0,1)}},{key:"clockSequenceHigh",get:function(){return this.clockSequence.slice(1)}},{key:"reserved",get:function(){return new Uint8Array([2])}},{key:"clockSequenceHighAndReserved",get:function(){var t=Object(c.a)(this.clockSequenceHigh).toString(2),e=Object(c.a)(this.reserved).toString(2),r=t.padStart(6,"0")+e.padStart(2,"0");return new Uint8Array([parseInt(r,2)])}},{key:"nodeIdentifier",get:function(){return this.__nodeIdentifier}}]),t}();!function(t){t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t.OID="6ba7b812-9dad-11d1-80b4-00c04fd430c8",t.X500="6ba7b814-9dad-11d1-80b4-00c04fd430c8"}(U||(U={}));r.d(e,"UUID",function(){return R}),r.d(e,"UUIDOptions",function(){return E}),r.d(e,"NamespaceIds",function(){return U}),r.d(e,"clockSequenceGetter",function(){return m}),r.d(e,"getHashFromNamespaceIdAndName",function(){return a}),r.d(e,"getHundredsOfNanosecondsSinceGregorianReform",function(){return I}),r.d(e,"nodeIdentifierGetter",function(){return _}),r.d(e,"timestampGetter",function(){return S}),r.d(e,"uintArrayAsNumber",function(){return c.a})}])});
//# sourceMappingURL=index.js.map

@@ -10,3 +10,2 @@ export * from './UUID/UUID';

export * from './nodeIdentifierGetter';
export * from './numberAsLittleEndianHexStr';
export * from './timestampGetter';

@@ -13,0 +12,0 @@ export * from './uintArrayAsNumber';

@@ -7,3 +7,3 @@ (function (factory) {

else if (typeof define === "function" && define.amd) {
define(["require", "exports", "./UUID/UUID", "./UUID/UUIDOptions/UUIDOptions", "./Enums/NamespaceIds", "./clockSequenceGetter", "./getHashFromNamespaceIdAndName", "./getHundredsOfNanosecondsSinceGregorianReform", "./nodeIdentifierGetter", "./numberAsLittleEndianHexStr", "./timestampGetter", "./uintArrayAsNumber"], factory);
define(["require", "exports", "./UUID/UUID", "./UUID/UUIDOptions/UUIDOptions", "./Enums/NamespaceIds", "./clockSequenceGetter", "./getHashFromNamespaceIdAndName", "./getHundredsOfNanosecondsSinceGregorianReform", "./nodeIdentifierGetter", "./timestampGetter", "./uintArrayAsNumber"], factory);
}

@@ -23,5 +23,4 @@ })(function (require, exports) {

__export(require("./nodeIdentifierGetter"));
__export(require("./numberAsLittleEndianHexStr"));
__export(require("./timestampGetter"));
__export(require("./uintArrayAsNumber"));
});

@@ -135,6 +135,5 @@ (function (factory) {

}
const leHexToBeHex = (leHex) => (parseInt(parseInt(leHex, 16).toString(2).split('').reverse().join(), 2).toString(16));
const timeLow = leHexToBeHex(split[0]);
const timeMid = leHexToBeHex(split[1]);
const timeHighAndVersion = leHexToBeHex(split[2]);
const timeLow = split[0];
const timeMid = split[1];
const timeHighAndVersion = split[2];
const timeHigh = timeHighAndVersion.slice(0, 3);

@@ -148,3 +147,3 @@ const version = timeHighAndVersion[4];

const timestamp = new Uint8Array(timestampArr);
const clockSequenceHighAndReservedAndLow = leHexToBeHex(split[3]);
const clockSequenceHighAndReservedAndLow = split[3];
const clockSequenceHighAndReservedHex = clockSequenceHighAndReservedAndLow.slice(0, 2);

@@ -159,3 +158,3 @@ const clockSequenceHighHex = parseInt(parseInt(clockSequenceHighAndReservedHex, 16).toString(2).slice(2), 2).toString(16);

const clockSequence = new Uint8Array(clockSequenceArr);
const nodeIdentifierHex = leHexToBeHex(split[4]);
const nodeIdentifierHex = split[4];
const nodeIdentifierArr = [];

@@ -162,0 +161,0 @@ for (let ii = 0; ii < 12; ii += 2) {

@@ -10,3 +10,2 @@ export * from './UUID/UUID';

export * from './nodeIdentifierGetter';
export * from './numberAsLittleEndianHexStr';
export * from './timestampGetter';

@@ -13,0 +12,0 @@ export * from './uintArrayAsNumber';

@@ -8,4 +8,3 @@ export * from './UUID/UUID';

export * from './nodeIdentifierGetter';
export * from './numberAsLittleEndianHexStr';
export * from './timestampGetter';
export * from './uintArrayAsNumber';

@@ -124,6 +124,5 @@ import { getHashFromNamespaceIdAndName, } from '../getHashFromNamespaceIdAndName';

}
const leHexToBeHex = (leHex) => (parseInt(parseInt(leHex, 16).toString(2).split('').reverse().join(), 2).toString(16));
const timeLow = leHexToBeHex(split[0]);
const timeMid = leHexToBeHex(split[1]);
const timeHighAndVersion = leHexToBeHex(split[2]);
const timeLow = split[0];
const timeMid = split[1];
const timeHighAndVersion = split[2];
const timeHigh = timeHighAndVersion.slice(0, 3);

@@ -137,3 +136,3 @@ const version = timeHighAndVersion[4];

const timestamp = new Uint8Array(timestampArr);
const clockSequenceHighAndReservedAndLow = leHexToBeHex(split[3]);
const clockSequenceHighAndReservedAndLow = split[3];
const clockSequenceHighAndReservedHex = clockSequenceHighAndReservedAndLow.slice(0, 2);

@@ -148,3 +147,3 @@ const clockSequenceHighHex = parseInt(parseInt(clockSequenceHighAndReservedHex, 16).toString(2).slice(2), 2).toString(16);

const clockSequence = new Uint8Array(clockSequenceArr);
const nodeIdentifierHex = leHexToBeHex(split[4]);
const nodeIdentifierHex = split[4];
const nodeIdentifierArr = [];

@@ -151,0 +150,0 @@ for (let ii = 0; ii < 12; ii += 2) {

{
"name": "big-uuid",
"version": "0.3.1",
"version": "0.3.2",
"description": "An RFC 4112 conformant UUID generator creating v1, v3, v4, and v5 UUIDs.",

@@ -5,0 +5,0 @@ "main": "dist/node.es6/index.js",

@@ -10,3 +10,2 @@ export * from './UUID/UUID';

export * from './nodeIdentifierGetter';
export * from './numberAsLittleEndianHexStr';
export * from './timestampGetter';

@@ -13,0 +12,0 @@ export * from './uintArrayAsNumber';

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc