1 line
294 KiB
Plaintext
1 line
294 KiB
Plaintext
{"code":"(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"chunk-3a30d877\"],{\"0050\":function(e,t,r){\"use strict\";(function(t){function r(e){return e instanceof t?t.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function n(e){return e=e||{},e.circles?i(e):e.proto?o:n;function t(e,t){for(var n=Object.keys(e),i=new Array(n.length),o=0;o<n.length;o++){var s=n[o],a=e[s];\"object\"!==typeof a||null===a?i[s]=a:a instanceof Date?i[s]=new Date(a):ArrayBuffer.isView(a)?i[s]=r(a):i[s]=t(a)}return i}function n(e){if(\"object\"!==typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return t(e,n);if(e instanceof Map)return new Map(t(Array.from(e),n));if(e instanceof Set)return new Set(t(Array.from(e),n));var i={};for(var o in e)if(!1!==Object.hasOwnProperty.call(e,o)){var s=e[o];\"object\"!==typeof s||null===s?i[o]=s:s instanceof Date?i[o]=new Date(s):s instanceof Map?i[o]=new Map(t(Array.from(s),n)):s instanceof Set?i[o]=new Set(t(Array.from(s),n)):ArrayBuffer.isView(s)?i[o]=r(s):i[o]=n(s)}return i}function o(e){if(\"object\"!==typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return t(e,o);if(e instanceof Map)return new Map(t(Array.from(e),o));if(e instanceof Set)return new Set(t(Array.from(e),o));var n={};for(var i in e){var s=e[i];\"object\"!==typeof s||null===s?n[i]=s:s instanceof Date?n[i]=new Date(s):s instanceof Map?n[i]=new Map(t(Array.from(s),o)):s instanceof Set?n[i]=new Set(t(Array.from(s),o)):ArrayBuffer.isView(s)?n[i]=r(s):n[i]=o(s)}return n}}function i(e){var t=[],n=[];return e.proto?s:o;function i(e,i){for(var o=Object.keys(e),s=new Array(o.length),a=0;a<o.length;a++){var u=o[a],c=e[u];if(\"object\"!==typeof c||null===c)s[u]=c;else if(c instanceof Date)s[u]=new Date(c);else if(ArrayBuffer.isView(c))s[u]=r(c);else{var l=t.indexOf(c);s[u]=-1!==l?n[l]:i(c)}}return s}function o(e){if(\"object\"!==typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return i(e,o);if(e instanceof Map)return new Map(i(Array.from(e),o));if(e instanceof Set)return new Set(i(Array.from(e),o));var s={};for(var a in t.push(e),n.push(s),e)if(!1!==Object.hasOwnProperty.call(e,a)){var u=e[a];if(\"object\"!==typeof u||null===u)s[a]=u;else if(u instanceof Date)s[a]=new Date(u);else if(u instanceof Map)s[a]=new Map(i(Array.from(u),o));else if(u instanceof Set)s[a]=new Set(i(Array.from(u),o));else if(ArrayBuffer.isView(u))s[a]=r(u);else{var c=t.indexOf(u);s[a]=-1!==c?n[c]:o(u)}}return t.pop(),n.pop(),s}function s(e){if(\"object\"!==typeof e||null===e)return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e))return i(e,s);if(e instanceof Map)return new Map(i(Array.from(e),s));if(e instanceof Set)return new Set(i(Array.from(e),s));var o={};for(var a in t.push(e),n.push(o),e){var u=e[a];if(\"object\"!==typeof u||null===u)o[a]=u;else if(u instanceof Date)o[a]=new Date(u);else if(u instanceof Map)o[a]=new Map(i(Array.from(u),s));else if(u instanceof Set)o[a]=new Set(i(Array.from(u),s));else if(ArrayBuffer.isView(u))o[a]=r(u);else{var c=t.indexOf(u);o[a]=-1!==c?n[c]:s(u)}}return t.pop(),n.pop(),o}}e.exports=n}).call(this,r(\"b639\").Buffer)},\"035d\":function(e,t,r){t=e.exports=r(\"85f8\"),t.Stream=t,t.Readable=t,t.Writable=r(\"13a8\"),t.Duplex=r(\"be3f\"),t.Transform=r(\"3ca2\"),t.PassThrough=r(\"7058\"),t.finished=r(\"d9e1\"),t.pipeline=r(\"652a\")},\"05ee\":function(e,t,r){\"use strict\";const n=r(1),i=r(\"db34\")(\"mqttjs:tcp\");function o(e,t){t.port=t.port||1883,t.hostname=t.hostname||t.host||\"localhost\";const r=t.port,o=t.hostname;return i(\"port %d and host %s\",r,o),n.createConnection(r,o)}e.exports=o},\"0b16\":function(e,t,r){\"use strict\";var n=r(\"1985\"),i=r(\"35e86\");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=_,t.resolve=E,t.resolveObject=k,t.format=S,t.Url=o;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,c=[\"<\",\">\",'\"',\"`\",\" \",\"\\r\",\"\\n\",\"\\t\"],l=[\"{\",\"}\",\"|\",\"\\\\\",\"^\",\"`\"].concat(c),h=[\"'\"].concat(l),f=[\"%\",\"/\",\"?\",\";\",\"#\"].concat(h),p=[\"/\",\"?\",\"#\"],d=255,g=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,\"javascript:\":!0},m={javascript:!0,\"javascript:\":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,\"http:\":!0,\"https:\":!0,\"ftp:\":!0,\"gopher:\":!0,\"file:\":!0},v=r(\"b383\");function _(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}function S(e){return i.isString(e)&&(e=_(e)),e instanceof o?e.format():o.prototype.format.call(e)}function E(e,t){return _(e,!1,!0).resolve(t)}function k(e,t){return e?_(e,!1,!0).resolveObject(t):t}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError(\"Parameter 'url' must be a string, not \"+typeof e);var o=e.indexOf(\"?\"),a=-1!==o&&o<e.indexOf(\"#\")?\"?\":\"#\",c=e.split(a),l=/\\\\/g;c[0]=c[0].replace(l,\"/\"),e=c.join(a);var _=e;if(_=_.trim(),!r&&1===e.split(\"#\").length){var S=u.exec(_);if(S)return this.path=_,this.href=_,this.pathname=S[1],S[2]?(this.search=S[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search=\"\",this.query={}),this}var E=s.exec(_);if(E){E=E[0];var k=E.toLowerCase();this.protocol=k,_=_.substr(E.length)}if(r||E||_.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)){var C=\"//\"===_.substr(0,2);!C||E&&m[E]||(_=_.substr(2),this.slashes=!0)}if(!m[E]&&(C||E&&!w[E])){for(var R,A,T=-1,x=0;x<p.length;x++){var O=_.indexOf(p[x]);-1!==O&&(-1===T||O<T)&&(T=O)}A=-1===T?_.lastIndexOf(\"@\"):_.lastIndexOf(\"@\",T),-1!==A&&(R=_.slice(0,A),_=_.slice(A+1),this.auth=decodeURIComponent(R)),T=-1;for(x=0;x<f.length;x++){O=_.indexOf(f[x]);-1!==O&&(-1===T||O<T)&&(T=O)}-1===T&&(T=_.length),this.host=_.slice(0,T),_=_.slice(T),this.parseHost(),this.hostname=this.hostname||\"\";var P=\"[\"===this.hostname[0]&&\"]\"===this.hostname[this.hostname.length-1];if(!P)for(var I=this.hostname.split(/\\./),B=(x=0,I.length);x<B;x++){var M=I[x];if(M&&!M.match(g)){for(var L=\"\",N=0,j=M.length;N<j;N++)M.charCodeAt(N)>127?L+=\"x\":L+=M[N];if(!L.match(g)){var F=I.slice(0,x),U=I.slice(x+1),D=M.match(y);D&&(F.push(D[1]),U.unshift(D[2])),U.length&&(_=\"/\"+U.join(\".\")+_),this.hostname=F.join(\".\");break}}}this.hostname.length>d?this.hostname=\"\":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var q=this.port?\":\"+this.port:\"\",V=this.hostname||\"\";this.host=V+q,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),\"/\"!==_[0]&&(_=\"/\"+_))}if(!b[k])for(x=0,B=h.length;x<B;x++){var W=h[x];if(-1!==_.indexOf(W)){var z=encodeURIComponent(W);z===W&&(z=escape(W)),_=_.split(W).join(z)}}var K=_.indexOf(\"#\");-1!==K&&(this.hash=_.substr(K),_=_.slice(0,K));var H=_.indexOf(\"?\");if(-1!==H?(this.search=_.substr(H),this.query=_.substr(H+1),t&&(this.query=v.parse(this.query)),_=_.slice(0,H)):t&&(this.search=\"\",this.query={}),_&&(this.pathname=_),w[k]&&this.hostname&&!this.pathname&&(this.pathname=\"/\"),this.pathname||this.search){q=this.pathname||\"\";var Q=this.search||\"\";this.path=q+Q}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||\"\";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,\":\"),e+=\"@\");var t=this.protocol||\"\",r=this.pathname||\"\",n=this.hash||\"\",o=!1,s=\"\";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(\":\")?this.hostname:\"[\"+this.hostname+\"]\"),this.port&&(o+=\":\"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(s=v.stringify(this.query));var a=this.search||s&&\"?\"+s||\"\";return t&&\":\"!==t.substr(-1)&&(t+=\":\"),this.slashes||(!t||w[t])&&!1!==o?(o=\"//\"+(o||\"\"),r&&\"/\"!==r.charAt(0)&&(r=\"/\"+r)):o||(o=\"\"),n&&\"#\"!==n.charAt(0)&&(n=\"#\"+n),a&&\"?\"!==a.charAt(0)&&(a=\"?\"+a),r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),a=a.replace(\"#\",\"%23\"),t+o+r+a+n},o.prototype.resolve=function(e){return this.resolveObject(_(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),s=0;s<n.length;s++){var a=n[s];r[a]=this[a]}if(r.hash=e.hash,\"\"===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),c=0;c<u.length;c++){var l=u[c];\"protocol\"!==l&&(r[l]=e[l])}return w[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname=\"/\"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!w[e.protocol]){for(var h=Object.keys(e),f=0;f<h.length;f++){var p=h[f];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||m[e.protocol])r.pathname=e.pathname;else{var d=(e.pathname||\"\").split(\"/\");while(d.length&&!(e.host=d.shift()));e.host||(e.host=\"\"),e.hostname||(e.hostname=\"\"),\"\"!==d[0]&&d.unshift(\"\"),d.length<2&&d.unshift(\"\"),r.pathname=d.join(\"/\")}if(r.search=e.search,r.query=e.query,r.host=e.host||\"\",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var g=r.pathname||\"\",y=r.search||\"\";r.path=g+y}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&\"/\"===r.pathname.charAt(0),v=e.host||e.pathname&&\"/\"===e.pathname.charAt(0),_=v||b||r.host&&e.pathname,S=_,E=r.pathname&&r.pathname.split(\"/\")||[],k=(d=e.pathname&&e.pathname.split(\"/\")||[],r.protocol&&!w[r.protocol]);if(k&&(r.hostname=\"\",r.port=null,r.host&&(\"\"===E[0]?E[0]=r.host:E.unshift(r.host)),r.host=\"\",e.protocol&&(e.hostname=null,e.port=null,e.host&&(\"\"===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),_=_&&(\"\"===d[0]||\"\"===E[0])),v)r.host=e.host||\"\"===e.host?e.host:r.host,r.hostname=e.hostname||\"\"===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,E=d;else if(d.length)E||(E=[]),E.pop(),E=E.concat(d),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(k){r.hostname=r.host=E.shift();var C=!!(r.host&&r.host.indexOf(\"@\")>0)&&r.host.split(\"@\");C&&(r.auth=C.shift(),r.host=r.hostname=C.shift())}return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:\"\")+(r.search?r.search:\"\")),r.href=r.format(),r}if(!E.length)return r.pathname=null,r.search?r.path=\"/\"+r.search:r.path=null,r.href=r.format(),r;for(var R=E.slice(-1)[0],A=(r.host||e.host||E.length>1)&&(\".\"===R||\"..\"===R)||\"\"===R,T=0,x=E.length;x>=0;x--)R=E[x],\".\"===R?E.splice(x,1):\"..\"===R?(E.splice(x,1),T++):T&&(E.splice(x,1),T--);if(!_&&!S)for(;T--;T)E.unshift(\"..\");!_||\"\"===E[0]||E[0]&&\"/\"===E[0].charAt(0)||E.unshift(\"\"),A&&\"/\"!==E.join(\"/\").substr(-1)&&E.push(\"\");var O=\"\"===E[0]||E[0]&&\"/\"===E[0].charAt(0);if(k){r.hostname=r.host=O?\"\":E.length?E.shift():\"\";C=!!(r.host&&r.host.indexOf(\"@\")>0)&&r.host.split(\"@\");C&&(r.auth=C.shift(),r.host=r.hostname=C.shift())}return _=_||r.host&&E.length,_&&!O&&E.unshift(\"\"),E.length?r.pathname=E.join(\"/\"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:\"\")+(r.search?r.search:\"\")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(t=t[0],\":\"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},\"0e8b\":function(e,t,r){\"use strict\";(function(t,n){var i;e.exports=x,x.ReadableState=T;r(\"faa1\").EventEmitter;var o=function(e,t){return e.listeners(t).length},s=r(\"b98b\"),a=r(\"b639\").Buffer,u=t.Uint8Array||function(){};function c(e){return a.from(e)}function l(e){return a.isBuffer(e)||e instanceof u}var h,f=r(4);h=f&&f.debuglog?f.debuglog(\"stream\"):function(){};var p,d,g,y=r(\"e937\"),b=r(\"f482\"),m=r(\"86c6\"),w=m.getHighWaterMark,v=r(\"9bfc\").codes,_=v.ERR_INVALID_ARG_TYPE,S=v.ERR_STREAM_PUSH_AFTER_EOF,E=v.ERR_METHOD_NOT_IMPLEMENTED,k=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(\"3fb5\")(x,s);var C=b.errorOrDestroy,R=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function A(e,t,r){if(\"function\"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function T(e,t,n){i=i||r(\"a493\"),e=e||{},\"boolean\"!==typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=w(this,e,\"readableHighWaterMark\",n),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(\"7d72\").StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function x(e){if(i=i||r(\"a493\"),!(this instanceof x))return new x(e);var t=this instanceof i;this._readableState=new T(e,this,t),this.readable=!0,e&&(\"function\"===typeof e.read&&(this._read=e.read),\"function\"===typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function O(e,t,r,n,i){h(\"readableAddChunk\",t);var o,s=e._readableState;if(null===t)s.reading=!1,N(e,s);else if(i||(o=I(s,t)),o)C(e,o);else if(s.objectMode||t&&t.length>0)if(\"string\"===typeof t||s.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=c(t)),n)s.endEmitted?C(e,new k):P(e,s,t,!0);else if(s.ended)C(e,new S);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?P(e,s,t,!1):U(e,s)):P(e,s,t,!1)}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function P(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit(\"data\",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),U(e,t)}function I(e,t){var r;return l(t)||\"string\"===typeof t||void 0===t||e.objectMode||(r=new _(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],t)),r}Object.defineProperty(x.prototype,\"destroyed\",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=b.destroy,x.prototype._undestroy=b.undestroy,x.prototype._destroy=function(e,t){t(e)},x.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:\"string\"===typeof e&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=\"\"),r=!0),O(this,e,t,!1,r)},x.prototype.unshift=function(e){return O(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(e){p||(p=r(\"7d72\").StringDecoder);var t=new p(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var n=this._readableState.buffer.head,i=\"\";while(null!==n)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),\"\"!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var B=1073741824;function M(e){return e>=B?e=B:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function L(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=M(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function N(e,t){if(h(\"onEofChunk\"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function j(e){var t=e._readableState;h(\"emitReadable\",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(h(\"emitReadable\",t.flowing),t.emittedReadable=!0,n.nextTick(F,e))}function F(e){var t=e._readableState;h(\"emitReadable_\",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit(\"readable\"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,H(e)}function U(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(D,e,t))}function D(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length)){var r=t.length;if(h(\"maybeReadMore read 0\"),e.read(0),r===t.length)break}t.readingMore=!1}function q(e){return function(){var t=e._readableState;h(\"pipeOnDrain\",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,\"data\")&&(t.flowing=!0,H(e))}}function V(e){var t=e._readableState;t.readableListening=e.listenerCount(\"readable\")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(\"data\")>0&&e.resume()}function W(e){h(\"readable nexttick read 0\"),e.read(0)}function z(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(K,e,t))}function K(e,t){h(\"resume\",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(\"resume\"),H(e),t.flowing&&!t.reading&&e.read(0)}function H(e){var t=e._readableState;h(\"flow\",t.flowing);while(t.flowing&&null!==e.read());}function Q(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(\"\"):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function Y(e){var t=e._readableState;h(\"endReadable\",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick($,t,e))}function $(e,t){if(h(\"endReadableNT\",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit(\"end\"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function G(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}x.prototype.read=function(e){h(\"read\",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return h(\"read: emitReadable\",t.length,t.ended),0===t.length&&t.ended?Y(this):j(this),null;if(e=L(e,t),0===e&&t.ended)return 0===t.length&&Y(this),null;var n,i=t.needReadable;return h(\"need readable\",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,h(\"length less than watermark\",i)),t.ended||t.reading?(i=!1,h(\"reading or ended\",i)):i&&(h(\"do read\"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=L(r,t))),n=e>0?Q(e,t):null,null===n?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Y(this)),null!==n&&this.emit(\"data\",n),n},x.prototype._read=function(e){C(this,new E(\"_read()\"))},x.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,h(\"pipe count=%d opts=%j\",i.pipesCount,t);var s=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr,a=s?c:m;function u(e,t){h(\"onunpipe\"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function c(){h(\"onend\"),e.end()}i.endEmitted?n.nextTick(a):r.once(\"end\",a),e.on(\"unpipe\",u);var l=q(r);e.on(\"drain\",l);var f=!1;function p(){h(\"cleanup\"),e.removeListener(\"close\",y),e.removeListener(\"finish\",b),e.removeListener(\"drain\",l),e.removeListener(\"error\",g),e.removeListener(\"unpipe\",u),r.removeListener(\"end\",c),r.removeListener(\"end\",m),r.removeListener(\"data\",d),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}function d(t){h(\"ondata\");var n=e.write(t);h(\"dest.write\",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==G(i.pipes,e))&&!f&&(h(\"false write response, pause\",i.awaitDrain),i.awaitDrain++),r.pause())}function g(t){h(\"onerror\",t),m(),e.removeListener(\"error\",g),0===o(e,\"error\")&&C(e,t)}function y(){e.removeListener(\"finish\",b),m()}function b(){h(\"onfinish\"),e.removeListener(\"close\",y),m()}function m(){h(\"unpipe\"),r.unpipe(e)}return r.on(\"data\",d),A(e,\"error\",g),e.once(\"close\",y),e.once(\"finish\",b),e.emit(\"pipe\",r),i.flowing||(h(\"pipe resume\"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(\"unpipe\",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var s=G(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit(\"unpipe\",this,r)),this},x.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),i=this._readableState;return\"data\"===e?(i.readableListening=this.listenerCount(\"readable\")>0,!1!==i.flowing&&this.resume()):\"readable\"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,h(\"on readable\",i.length,i.reading),i.length?j(this):i.reading||n.nextTick(W,this))),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return\"readable\"===e&&n.nextTick(V,this),r},x.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return\"readable\"!==e&&void 0!==e||n.nextTick(V,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(h(\"resume\"),e.flowing=!e.readableListening,z(this,e)),e.paused=!1,this},x.prototype.pause=function(){return h(\"call pause flowing=%j\",this._readableState.flowing),!1!==this._readableState.flowing&&(h(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on(\"end\",(function(){if(h(\"wrapped end\"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on(\"data\",(function(i){if(h(\"wrapped data\"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)){var o=t.push(i);o||(n=!0,e.pause())}})),e)void 0===this[i]&&\"function\"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<R.length;o++)e.on(R[o],this.emit.bind(this,R[o]));return this._read=function(t){h(\"wrapped _read\",t),n&&(n=!1,e.resume())},this},\"function\"===typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(\"782c\")),d(this)}),Object.defineProperty(x.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,\"readableBuffer\",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,\"readableFlowing\",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),x._fromList=Q,Object.defineProperty(x.prototype,\"readableLength\",{enumerable:!1,get:function(){return this._readableState.length}}),\"function\"===typeof Symbol&&(x.from=function(e,t){return void 0===g&&(g=r(\"a50f\")),g(x,e,t)})}).call(this,r(\"c8ba\"),r(\"f28c\"))},1:function(e,t){},\"13a8\":function(e,t,r){\"use strict\";(function(t,n){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){K(t,e)}}var o;e.exports=T,T.WritableState=A;var s={deprecate:r(\"b7d1\")},a=r(\"9ede\"),u=r(\"b639\").Buffer,c=t.Uint8Array||function(){};function l(e){return u.from(e)}function h(e){return u.isBuffer(e)||e instanceof c}var f,p=r(\"edb3\"),d=r(\"31b5\"),g=d.getHighWaterMark,y=r(\"fbd7\").codes,b=y.ERR_INVALID_ARG_TYPE,m=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_MULTIPLE_CALLBACK,v=y.ERR_STREAM_CANNOT_PIPE,_=y.ERR_STREAM_DESTROYED,S=y.ERR_STREAM_NULL_VALUES,E=y.ERR_STREAM_WRITE_AFTER_END,k=y.ERR_UNKNOWN_ENCODING,C=p.errorOrDestroy;function R(){}function A(e,t,n){o=o||r(\"be3f\"),e=e||{},\"boolean\"!==typeof n&&(n=t instanceof o),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=g(this,e,\"writableHighWaterMark\",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){N(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function T(e){o=o||r(\"be3f\");var t=this instanceof o;if(!t&&!f.call(T,this))return new T(e);this._writableState=new A(e,this,t),this.writable=!0,e&&(\"function\"===typeof e.write&&(this._write=e.write),\"function\"===typeof e.writev&&(this._writev=e.writev),\"function\"===typeof e.destroy&&(this._destroy=e.destroy),\"function\"===typeof e.final&&(this._final=e.final)),a.call(this)}function x(e,t){var r=new E;C(e,r),n.nextTick(t,r)}function O(e,t,r,i){var o;return null===r?o=new S:\"string\"===typeof r||t.objectMode||(o=new b(\"chunk\",[\"string\",\"Buffer\"],r)),!o||(C(e,o),n.nextTick(i,o),!1)}function P(e,t,r){return e.objectMode||!1===e.decodeStrings||\"string\"!==typeof t||(t=u.from(t,r)),t}function I(e,t,r,n,i,o){if(!r){var s=P(t,n,i);n!==s&&(r=!0,i=\"buffer\",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else B(e,t,!1,a,n,i,o);return u}function B(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _(\"write\")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function M(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(W,e,t),e._writableState.errorEmitted=!0,C(e,i)):(o(i),e._writableState.errorEmitted=!0,C(e,i),W(e,t))}function L(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function N(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(\"function\"!==typeof o)throw new w;if(L(r),t)M(e,r,i,t,o);else{var s=D(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||U(e,r),i?n.nextTick(j,e,r,s,o):j(e,r,s,o)}}function j(e,t,r,n){r||F(e,t),t.pendingcb--,n(),W(e,t)}function F(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit(\"drain\"))}function U(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),s=t.corkedRequestsFree;s.entry=r;var a=0,u=!0;while(r)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,B(e,t,!0,t.length,o,\"\",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{while(r){var c=r.chunk,l=r.encoding,h=r.callback,f=t.objectMode?1:c.length;if(B(e,t,!1,f,c,l,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function D(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function q(e,t){e._final((function(r){t.pendingcb--,r&&C(e,r),t.prefinished=!0,e.emit(\"prefinish\"),W(e,t)}))}function V(e,t){t.prefinished||t.finalCalled||(\"function\"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit(\"prefinish\")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(q,e,t)))}function W(e,t){var r=D(t);if(r&&(V(e,t),0===t.pendingcb&&(t.finished=!0,e.emit(\"finish\"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function z(e,t,r){t.ending=!0,W(e,t),r&&(t.finished?n.nextTick(r):e.once(\"finish\",r)),t.ended=!0,e.writable=!1}function K(e,t,r){var n=e.entry;e.entry=null;while(n){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}r(\"3fb5\")(T,a),A.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(A.prototype,\"buffer\",{get:s.deprecate((function(){return this.getBuffer()}),\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch(e){}}(),\"function\"===typeof Symbol&&Symbol.hasInstance&&\"function\"===typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!f.call(this,e)||this===T&&(e&&e._writableState instanceof A)}})):f=function(e){return e instanceof this},T.prototype.pipe=function(){C(this,new v)},T.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!u.isBuffer(e)&&(e=l(e)),\"function\"===typeof t&&(r=t,t=null),o?t=\"buffer\":t||(t=n.defaultEncoding),\"function\"!==typeof r&&(r=R),n.ending?x(this,r):(o||O(this,n,e,r))&&(n.pendingcb++,i=I(this,n,o,e,t,r)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||U(this,e))},T.prototype.setDefaultEncoding=function(e){if(\"string\"===typeof e&&(e=e.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((e+\"\").toLowerCase())>-1))throw new k(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,r){r(new m(\"_write()\"))},T.prototype._writev=null,T.prototype.end=function(e,t,r){var n=this._writableState;return\"function\"===typeof e?(r=e,e=null,t=null):\"function\"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||z(this,n,r),this},Object.defineProperty(T.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,\"destroyed\",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=p.destroy,T.prototype._undestroy=p.undestroy,T.prototype._destroy=function(e,t){t(e)}}).call(this,r(\"c8ba\"),r(\"f28c\"))},1985:function(e,t,r){(function(e,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(o){t&&t.nodeType,e&&e.nodeType;var s=\"object\"==typeof n&&n;s.global!==s&&s.window!==s&&s.self;var a,u=2147483647,c=36,l=1,h=26,f=38,p=700,d=72,g=128,y=\"-\",b=/^xn--/,m=/[^\\x20-\\x7E]/,w=/[\\x2E\\u3002\\uFF0E\\uFF61]/g,v={overflow:\"Overflow: input needs wider integers to process\",\"not-basic\":\"Illegal input >= 0x80 (not a basic code point)\",\"invalid-input\":\"Invalid input\"},_=c-l,S=Math.floor,E=String.fromCharCode;function k(e){throw new RangeError(v[e])}function C(e,t){var r=e.length,n=[];while(r--)n[r]=t(e[r]);return n}function R(e,t){var r=e.split(\"@\"),n=\"\";r.length>1&&(n=r[0]+\"@\",e=r[1]),e=e.replace(w,\".\");var i=e.split(\".\"),o=C(i,t).join(\".\");return n+o}function A(e){var t,r,n=[],i=0,o=e.length;while(i<o)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<o?(r=e.charCodeAt(i++),56320==(64512&r)?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--)):n.push(t);return n}function T(e){return C(e,(function(e){var t=\"\";return e>65535&&(e-=65536,t+=E(e>>>10&1023|55296),e=56320|1023&e),t+=E(e),t})).join(\"\")}function x(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function O(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function P(e,t,r){var n=0;for(e=r?S(e/p):e>>1,e+=S(e/t);e>_*h>>1;n+=c)e=S(e/_);return S(n+(_+1)*e/(e+f))}function I(e){var t,r,n,i,o,s,a,f,p,b,m=[],w=e.length,v=0,_=g,E=d;for(r=e.lastIndexOf(y),r<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&k(\"not-basic\"),m.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<w;){for(o=v,s=1,a=c;;a+=c){if(i>=w&&k(\"invalid-input\"),f=x(e.charCodeAt(i++)),(f>=c||f>S((u-v)/s))&&k(\"overflow\"),v+=f*s,p=a<=E?l:a>=E+h?h:a-E,f<p)break;b=c-p,s>S(u/b)&&k(\"overflow\"),s*=b}t=m.length+1,E=P(v-o,t,0==o),S(v/t)>u-_&&k(\"overflow\"),_+=S(v/t),v%=t,m.splice(v++,0,_)}return T(m)}function B(e){var t,r,n,i,o,s,a,f,p,b,m,w,v,_,C,R=[];for(e=A(e),w=e.length,t=g,r=0,o=d,s=0;s<w;++s)m=e[s],m<128&&R.push(E(m));n=i=R.length,i&&R.push(y);while(n<w){for(a=u,s=0;s<w;++s)m=e[s],m>=t&&m<a&&(a=m);for(v=n+1,a-t>S((u-r)/v)&&k(\"overflow\"),r+=(a-t)*v,t=a,s=0;s<w;++s)if(m=e[s],m<t&&++r>u&&k(\"overflow\"),m==t){for(f=r,p=c;;p+=c){if(b=p<=o?l:p>=o+h?h:p-o,f<b)break;C=f-b,_=c-b,R.push(E(O(b+C%_,0))),f=S(C/_)}R.push(E(O(f,0))),o=P(r,v,n==i),r=0,++n}++r,++t}return R.join(\"\")}function M(e){return R(e,(function(e){return b.test(e)?I(e.slice(4).toLowerCase()):e}))}function L(e){return R(e,(function(e){return m.test(e)?\"xn--\"+B(e):e}))}a={version:\"1.4.1\",ucs2:{decode:A,encode:T},decode:I,encode:B,toASCII:L,toUnicode:M},i=function(){return a}.call(t,r,t,e),void 0===i||(e.exports=i)})()}).call(this,r(\"62e4\")(e),r(\"c8ba\"))},\"1e4b\":function(e,t,r){\"use strict\";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r(\"div\",{staticClass:\"content-box\"},[r(\"div\",{staticClass:\"container\"},[r(\"div\",{staticStyle:{width:\"30%\",height:\"300px\",display:\"inline-block\"}},[r(\"img\",{attrs:{src:e.imgUrl,width:\"100%\",height:\"100%\"}})]),r(\"div\",{staticStyle:{width:\"30%\",height:\"300px\",display:\"inline-block\"}},[r(\"img\",{attrs:{src:e.imgUrl1,width:\"100%\",height:\"100%\"}})]),r(\"div\",{staticStyle:{width:\"30%\",height:\"300px\",display:\"inline-block\"}},[r(\"img\",{attrs:{src:e.imgUrl2,width:\"100%\",height:\"100%\"}})]),r(\"div\",{staticStyle:{width:\"30%\",height:\"300px\",display:\"inline-block\"}},[r(\"img\",{attrs:{src:e.imgUrl3,width:\"100%\",height:\"100%\"}})]),r(\"div\",{staticStyle:{width:\"30%\",height:\"300px\",display:\"inline-block\"}},[r(\"img\",{attrs:{src:e.imgUrl4,width:\"100%\",height:\"100%\"}})]),r(\"div\",{staticStyle:{width:\"30%\",height:\"300px\",display:\"inline-block\"}},[r(\"img\",{attrs:{src:e.imgUrl5,width:\"100%\",height:\"100%\"}})])])])},i=[],o=(r(\"34ef\"),r(\"6b54\"),r(\"e7fc\")),s=r.n(o),a=r(\"bc3a\"),u=r.n(a),c={data:function(){return{hideBoxShow:!0,closeStatus:null,modelOthers:!1,componentShow:\"\",isShowBtn:!0,isShowBtn1:!1,inputVal:\"\",nowTime:\"\",ins:0,imgUrl:\"\",imgUrl1:\"\",imgUrl2:\"\",imgUrl3:\"\",imgUrl4:\"\",imgUrl5:\"\",btnPic:[],statusInfo:[{count:15,name:\"穿梭车在线数量\",color:\"#01A8FC\"},{count:26,name:\"任务数量\",color:\"#FDA401\"}],messageInfo:[],orderList:[],enterList:[],stockInfo:[],perCent:0,perCent1:0,perCent2:0,facToal:\"\",wbContent:\"\",wxContent:\"\",inContent:\"\",outContent:\"\",containerDetails:\"\",locdesc:\"\",weatherItem:{},loadingShow1:!0,carInfo:[],carName:\"\",palletizerInfo:[],palletizerName:\"\",destackerInfo:[],destackerName:\"\",hoistInfo:[],hoistName:\"\",battaryStationInfo:[],battaryStationName:\"\",conveyorInfo:[],conveyorName:\"\"}},mounted:function(){},created:function(){this.testMqtt()},methods:{testMqtt:function(){this.getDataByMqtt()},loadingShow:function(e){this.loadingShow1=e},getDataByMqtt:function(e,t,r){var n=this,i=\"test_id_\"+String((new Date).getTime()),o=\"ws://49.234.27.18:10087/\",a={keepalive:60,username:\"admin\",password:\"123456\",clientId:i,protocolId:\"MQTT\",protocolVersion:4,clean:!0,reconnectPeriod:2e3,connectTimeout:3e4,will:{topic:\"img1\",payload:\"[MQTT-TEST] 遗嘱消息:连接异常断开!\",qos:0,retain:!1}};void 0==this.mqttClient&&(this.mqttClient=s.a.connect(o,a),console.log(\"this.mqttClient\",this.mqttClient),this.mqttClient.on(\"error\",(function(e){console.log(\"[MQTT-TEST] 连接错误:\",e),n.mqttClient.end()})),this.mqttClient.on(\"reconnect\",(function(e){console.log(\"[MQTT-TEST] 重连中……\",e)})),this.mqttClient.on(\"connect\",(function(e){console.log(\"[MQTT-TEST] 已连接的客户端ID: \",e),n.mqttClient.subscribe(\"img0\",{qos:0}),n.mqttClient.subscribe(\"img1\",{qos:0}),n.mqttClient.subscribe(\"img2\",{qos:0}),n.mqttClient.subscribe(\"img3\",{qos:0}),n.mqttClient.subscribe(\"img4\",{qos:0}),n.mqttClient.subscribe(\"img5\",{qos:0}),n.mqttClient.subscribe(\"stream0\",{qos:0}),n.mqttClient.subscribe(\"stream1\",{qos:0}),n.mqttClient.subscribe(\"stream2\",{qos:0}),n.mqttClient.subscribe(\"stream3\",{qos:0}),n.mqttClient.subscribe(\"stream4\",{qos:0}),n.mqttClient.subscribe(\"stream5\",{qos:0})})),this.mqttClient.on(\"message\",(function(e,t,r){if(console.log(\"[MQTT-TEST] 已连接的客户端ID: \",t),console.log('[MQTT-TEST] 从主题 \"'.concat(e,'\" 收到的内容: ').concat(t.toString()),new Date,(new Date).getMilliseconds()),-1!=e.indexOf(\"img0\"))try{var i=new TextDecoder,o=new Uint8Array(t),s=i.decode(o),a=JSON.parse(s);console.log(\"msg\",a),n.imgUrl=\"data:image/png;base64,\"+a.pic,console.log(\"imageUrl\",imageUrl)}catch(H){var u=\"arraybuffer\",c=new Blob([t],{type:u}),l=(window.URL||window.webkitURL).createObjectURL(c);console.log(\"imageUrl\",l)}else if(-1!=e.indexOf(\"img1\"))try{var h=new TextDecoder,f=new Uint8Array(t),p=h.decode(f),d=JSON.parse(p);console.log(\"msg\",d),n.imgUrl1=\"data:image/png;base64,\"+d.pic,console.log(\"imageUrl\",imageUrl)}catch(Q){var g=\"arraybuffer\",y=new Blob([t],{type:g}),b=(window.URL||window.webkitURL).createObjectURL(y);console.log(\"imageUrl\",b)}else if(-1!=e.indexOf(\"img2\"))try{var m=new TextDecoder,w=new Uint8Array(t),v=m.decode(w),_=JSON.parse(v);console.log(\"msg\",_),n.imgUrl2=\"data:image/png;base64,\"+_.pic,console.log(\"imageUrl\",imageUrl)}catch(Y){var S=\"arraybuffer\",E=new Blob([t],{type:S}),k=(window.URL||window.webkitURL).createObjectURL(E);console.log(\"imageUrl\",k)}else if(-1!=e.indexOf(\"img3\"))try{var C=new TextDecoder,R=new Uint8Array(t),A=C.decode(R),T=JSON.parse(A);console.log(\"msg\",T),n.imgUrl3=\"data:image/png;base64,\"+T.pic,console.log(\"imageUrl\",imageUrl)}catch($){var x=\"arraybuffer\",O=new Blob([t],{type:x}),P=(window.URL||window.webkitURL).createObjectURL(O);console.log(\"imageUrl\",P)}else if(-1!=e.indexOf(\"img4\"))try{var I=new TextDecoder,B=new Uint8Array(t),M=I.decode(B),L=JSON.parse(M);console.log(\"msg\",L),n.imgUrl4=\"data:image/png;base64,\"+L.pic,console.log(\"imageUrl\",imageUrl)}catch(G){var N=\"arraybuffer\",j=new Blob([t],{type:N}),F=(window.URL||window.webkitURL).createObjectURL(j);console.log(\"imageUrl\",F)}else if(-1!=e.indexOf(\"img5\"))try{var U=new TextDecoder,D=new Uint8Array(t),q=U.decode(D),V=JSON.parse(q);console.log(\"msg\",V),n.imgUrl5=\"data:image/png;base64,\"+V.pic,console.log(\"imageUrl\",imageUrl)}catch(J){var W=\"arraybuffer\",z=new Blob([t],{type:W}),K=(window.URL||window.webkitURL).createObjectURL(z);console.log(\"imageUrl\",K)}else(-1!=e.indexOf(\"stream0\")||-1!=e.indexOf(\"stream0\")||-1!=e.indexOf(\"stream1\")||-1!=e.indexOf(\"stream2\")||-1!=e.indexOf(\"stream3\")||-1!=e.indexOf(\"stream4\")||-1!=e.indexOf(\"stream5\"))&&console.log('[MQTT-TEST] 从主题 \"'.concat(e,'\" 收到的内容: ').concat(t.toString()),new Date,(new Date).getMilliseconds())})))},handleSearch:function(){this.modelOthers=!0,this.$refs.htModels.finbBox(this.inputVal),console.log(this.$refs.htModels,\"asdasdasd\"),this.inputVal=\"\"},handleRow:function(e){this.modelOthers=!0,this.$refs.htModels.finbBox(e)},handleWather:function(){var e=this;u()({url:\"https://restapi.amap.com/v3/weather/weatherInfo?key=bc2b906032fdd8a63cbd0790d656b1d7&city=620100\",methods:\"\"}).then((function(t){e.weatherItem=t.data.lives[0],console.log(e.weatherItem,\"asdsads\")}))},Onweather:function(e){},hideBox:function(){this.$refs.htModels.handleFirstBox()}},components:{}},l=c,h=(r(\"d44d\"),r(\"2877\")),f=Object(h[\"a\"])(l,n,i,!1,null,null,null);t[\"default\"]=f.exports},\"1e4d\":function(e,t,r){\"use strict\";function n(){if(!(this instanceof n))return new n;this.nextId=Math.max(1,Math.floor(65535*Math.random()))}n.prototype.allocate=function(){const e=this.nextId++;return 65536===this.nextId&&(this.nextId=1),e},n.prototype.getLastAllocated=function(){return 1===this.nextId?65535:this.nextId-1},n.prototype.register=function(e){return!0},n.prototype.deallocate=function(e){},n.prototype.clear=function(){},e.exports=n},\"1fad\":function(e,t,r){const n=r(\"51e9\"),i=r(\"faa1\"),o=r(\"a7c9\"),s=r(\"b289\"),a=r(\"e4fc\")(\"mqtt-packet:parser\");class u extends i{constructor(){super(),this.parser=this.constructor.parser}static parser(e){return this instanceof u?(this.settings=e||{},this._states=[\"_parseHeader\",\"_parseLength\",\"_parsePayload\",\"_newPacket\"],this._resetState(),this):(new u).parser(e)}_resetState(){a(\"_resetState: resetting packet, error, _list, and _stateCounter\"),this.packet=new o,this.error=null,this._list=n(),this._stateCounter=0}parse(e){this.error&&this._resetState(),this._list.append(e),a(\"parse: current state: %s\",this._states[this._stateCounter]);while((-1!==this.packet.length||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error)this._stateCounter++,a(\"parse: state complete. _stateCounter is now: %d\",this._stateCounter),a(\"parse: packet.length: %d, buffer list length: %d\",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return a(\"parse: exited while loop. packet: %d, buffer list length: %d\",this.packet.length,this._list.length),this._list.length}_parseHeader(){const e=this._list.readUInt8(0);return this.packet.cmd=s.types[e>>s.CMD_SHIFT],this.packet.retain=0!==(e&s.RETAIN_MASK),this.packet.qos=e>>s.QOS_SHIFT&s.QOS_MASK,this.packet.dup=0!==(e&s.DUP_MASK),a(\"_parseHeader: packet: %o\",this.packet),this._list.consume(1),!0}_parseLength(){const e=this._parseVarByteNum(!0);return e&&(this.packet.length=e.value,this._list.consume(e.bytes)),a(\"_parseLength %d\",e.value),!!e}_parsePayload(){a(\"_parsePayload: payload %O\",this._list);let e=!1;if(0===this.packet.length||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case\"connect\":this._parseConnect();break;case\"connack\":this._parseConnack();break;case\"publish\":this._parsePublish();break;case\"puback\":case\"pubrec\":case\"pubrel\":case\"pubcomp\":this._parseConfirmation();break;case\"subscribe\":this._parseSubscribe();break;case\"suback\":this._parseSuback();break;case\"unsubscribe\":this._parseUnsubscribe();break;case\"unsuback\":this._parseUnsuback();break;case\"pingreq\":case\"pingresp\":break;case\"disconnect\":this._parseDisconnect();break;case\"auth\":this._parseAuth();break;default:this._emitError(new Error(\"Not supported\"))}e=!0}return a(\"_parsePayload complete result: %s\",e),e}_parseConnect(){let e,t,r,n;a(\"_parseConnect\");const i={},o=this.packet,u=this._parseString();if(null===u)return this._emitError(new Error(\"Cannot parse protocolId\"));if(\"MQTT\"!==u&&\"MQIsdp\"!==u)return this._emitError(new Error(\"Invalid protocolId\"));if(o.protocolId=u,this._pos>=this._list.length)return this._emitError(new Error(\"Packet too short\"));if(o.protocolVersion=this._list.readUInt8(this._pos),o.protocolVersion>=128&&(o.bridgeMode=!0,o.protocolVersion=o.protocolVersion-128),3!==o.protocolVersion&&4!==o.protocolVersion&&5!==o.protocolVersion)return this._emitError(new Error(\"Invalid protocol version\"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error(\"Packet too short\"));if(i.username=this._list.readUInt8(this._pos)&s.USERNAME_MASK,i.password=this._list.readUInt8(this._pos)&s.PASSWORD_MASK,i.will=this._list.readUInt8(this._pos)&s.WILL_FLAG_MASK,i.will&&(o.will={},o.will.retain=0!==(this._list.readUInt8(this._pos)&s.WILL_RETAIN_MASK),o.will.qos=(this._list.readUInt8(this._pos)&s.WILL_QOS_MASK)>>s.WILL_QOS_SHIFT),o.clean=0!==(this._list.readUInt8(this._pos)&s.CLEAN_SESSION_MASK),this._pos++,o.keepalive=this._parseNum(),-1===o.keepalive)return this._emitError(new Error(\"Packet too short\"));if(5===o.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(o.properties=e)}const c=this._parseString();if(null===c)return this._emitError(new Error(\"Packet too short\"));if(o.clientId=c,a(\"_parseConnect: packet.clientId: %s\",o.clientId),i.will){if(5===o.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(o.will.properties=e)}if(e=this._parseString(),null===e)return this._emitError(new Error(\"Cannot parse will topic\"));if(o.will.topic=e,a(\"_parseConnect: packet.will.topic: %s\",o.will.topic),t=this._parseBuffer(),null===t)return this._emitError(new Error(\"Cannot parse will payload\"));o.will.payload=t,a(\"_parseConnect: packet.will.paylaod: %s\",o.will.payload)}if(i.username){if(n=this._parseString(),null===n)return this._emitError(new Error(\"Cannot parse username\"));o.username=n,a(\"_parseConnect: packet.username: %s\",o.username)}if(i.password){if(r=this._parseBuffer(),null===r)return this._emitError(new Error(\"Cannot parse password\"));o.password=r}return this.settings=o,a(\"_parseConnect: complete\"),o}_parseConnack(){a(\"_parseConnack\");const e=this.packet;if(this._list.length<1)return null;if(e.sessionPresent=!!(this._list.readUInt8(this._pos++)&s.SESSIONPRESENT_MASK),5===this.settings.protocolVersion)this._list.length>=2?e.reasonCode=this._list.readUInt8(this._pos++):e.reasonCode=0;else{if(this._list.length<2)return null;e.returnCode=this._list.readUInt8(this._pos++)}if(-1===e.returnCode||-1===e.reasonCode)return this._emitError(new Error(\"Cannot parse return code\"));if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}a(\"_parseConnack: complete\")}_parsePublish(){a(\"_parsePublish\");const e=this.packet;if(e.topic=this._parseString(),null===e.topic)return this._emitError(new Error(\"Cannot parse topic\"));if(!(e.qos>0)||this._parseMessageId()){if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}e.payload=this._list.slice(this._pos,e.length),a(\"_parsePublish: payload from buffer list: %o\",e.payload)}}_parseSubscribe(){a(\"_parseSubscribe\");const e=this.packet;let t,r,n,i,o,u,c;if(1!==e.qos)return this._emitError(new Error(\"Wrong subscribe header\"));if(e.subscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}while(this._pos<e.length){if(t=this._parseString(),null===t)return this._emitError(new Error(\"Cannot parse topic\"));if(this._pos>=e.length)return this._emitError(new Error(\"Malformed Subscribe Payload\"));r=this._parseByte(),n=r&s.SUBSCRIBE_OPTIONS_QOS_MASK,u=0!==(r>>s.SUBSCRIBE_OPTIONS_NL_SHIFT&s.SUBSCRIBE_OPTIONS_NL_MASK),o=0!==(r>>s.SUBSCRIBE_OPTIONS_RAP_SHIFT&s.SUBSCRIBE_OPTIONS_RAP_MASK),i=r>>s.SUBSCRIBE_OPTIONS_RH_SHIFT&s.SUBSCRIBE_OPTIONS_RH_MASK,c={topic:t,qos:n},5===this.settings.protocolVersion?(c.nl=u,c.rap=o,c.rh=i):this.settings.bridgeMode&&(c.rh=0,c.rap=!0,c.nl=!0),a(\"_parseSubscribe: push subscription `%s` to subscription\",c),e.subscriptions.push(c)}}}_parseSuback(){a(\"_parseSuback\");const e=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}while(this._pos<this.packet.length)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseUnsubscribe(){a(\"_parseUnsubscribe\");const e=this.packet;if(e.unsubscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}while(this._pos<e.length){const t=this._parseString();if(null===t)return this._emitError(new Error(\"Cannot parse topic\"));a(\"_parseUnsubscribe: push topic `%s` to unsubscriptions\",t),e.unsubscriptions.push(t)}}}_parseUnsuback(){a(\"_parseUnsuback\");const e=this.packet;if(!this._parseMessageId())return this._emitError(new Error(\"Cannot parse messageId\"));if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t),e.granted=[];while(this._pos<this.packet.length)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseConfirmation(){a(\"_parseConfirmation: packet.cmd: `%s`\",this.packet.cmd);const e=this.packet;if(this._parseMessageId(),5===this.settings.protocolVersion&&(e.length>2?(e.reasonCode=this._parseByte(),a(\"_parseConfirmation: packet.reasonCode `%d`\",e.reasonCode)):e.reasonCode=0,e.length>3)){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}return!0}_parseDisconnect(){const e=this.packet;if(a(\"_parseDisconnect\"),5===this.settings.protocolVersion){this._list.length>0?e.reasonCode=this._parseByte():e.reasonCode=0;const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}return a(\"_parseDisconnect result: true\"),!0}_parseAuth(){a(\"_parseAuth\");const e=this.packet;if(5!==this.settings.protocolVersion)return this._emitError(new Error(\"Not supported auth packet for this version MQTT\"));e.reasonCode=this._parseByte();const t=this._parseProperties();return Object.getOwnPropertyNames(t).length&&(e.properties=t),a(\"_parseAuth: result: true\"),!0}_parseMessageId(){const e=this.packet;return e.messageId=this._parseNum(),null===e.messageId?(this._emitError(new Error(\"Cannot parse messageId\")),!1):(a(\"_parseMessageId: packet.messageId %d\",e.messageId),!0)}_parseString(e){const t=this._parseNum(),r=t+this._pos;if(-1===t||r>this._list.length||r>this.packet.length)return null;const n=this._list.toString(\"utf8\",this._pos,r);return this._pos+=t,a(\"_parseString: result: %s\",n),n}_parseStringPair(){return a(\"_parseStringPair\"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const e=this._parseNum(),t=e+this._pos;if(-1===e||t>this._list.length||t>this.packet.length)return null;const r=this._list.slice(this._pos,t);return this._pos+=e,a(\"_parseBuffer: result: %o\",r),r}_parseNum(){if(this._list.length-this._pos<2)return-1;const e=this._list.readUInt16BE(this._pos);return this._pos+=2,a(\"_parseNum: result: %s\",e),e}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const e=this._list.readUInt32BE(this._pos);return this._pos+=4,a(\"_parse4ByteNum: result: %s\",e),e}_parseVarByteNum(e){a(\"_parseVarByteNum\");const t=4;let r,n=0,i=1,o=0,u=!1;const c=this._pos?this._pos:0;while(n<t&&c+n<this._list.length){if(r=this._list.readUInt8(c+n++),o+=i*(r&s.VARBYTEINT_MASK),i*=128,0===(r&s.VARBYTEINT_FIN_MASK)){u=!0;break}if(this._list.length<=n)break}return!u&&n===t&&this._list.length>=n&&this._emitError(new Error(\"Invalid variable byte integer\")),c&&(this._pos+=n),u=!!u&&(e?{bytes:n,value:o}:o),a(\"_parseVarByteNum: result: %o\",u),u}_parseByte(){let e;return this._pos<this._list.length&&(e=this._list.readUInt8(this._pos),this._pos++),a(\"_parseByte: result: %o\",e),e}_parseByType(e){switch(a(\"_parseByType: type: %s\",e),e){case\"byte\":return 0!==this._parseByte();case\"int8\":return this._parseByte();case\"int16\":return this._parseNum();case\"int32\":return this._parse4ByteNum();case\"var\":return this._parseVarByteNum();case\"string\":return this._parseString();case\"pair\":return this._parseStringPair();case\"binary\":return this._parseBuffer()}}_parseProperties(){a(\"_parseProperties\");const e=this._parseVarByteNum(),t=this._pos,r=t+e,n={};while(this._pos<r){const e=this._parseByte();if(!e)return this._emitError(new Error(\"Cannot parse property code type\")),!1;const t=s.propertiesCodes[e];if(!t)return this._emitError(new Error(\"Unknown property\")),!1;if(\"userProperties\"!==t)n[t]?(Array.isArray(n[t])||(n[t]=[n[t]]),n[t].push(this._parseByType(s.propertiesTypes[t]))):n[t]=this._parseByType(s.propertiesTypes[t]);else{n[t]||(n[t]=Object.create(null));const e=this._parseByType(s.propertiesTypes[t]);if(n[t][e.name])if(Array.isArray(n[t][e.name]))n[t][e.name].push(e.value);else{const r=n[t][e.name];n[t][e.name]=[r],n[t][e.name].push(e.value)}else n[t][e.name]=e.value}}return n}_newPacket(){return a(\"_newPacket\"),this.packet&&(this._list.consume(this.packet.length),a(\"_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d\",this.packet.cmd,this.packet.payload,this.packet.length),this.emit(\"packet\",this.packet)),a(\"_newPacket: new packet\"),this.packet=new o,this._pos=0,!0}_emitError(e){a(\"_emitError\"),this.error=e,this.emit(\"error\",e)}}e.exports=u},\"1fb5\":function(e,t,r){\"use strict\";t.byteLength=l,t.toByteArray=f,t.fromByteArray=g;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 c(e){var t=e.length;if(t%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var r=e.indexOf(\"=\");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function l(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function h(e,t,r){return 3*(t+r)/4-r}function f(e){var t,r,n=c(e),s=n[0],a=n[1],u=new o(h(e,s,a)),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[l++]=255&t),1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u}function p(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function d(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(p(n));return i.join(\"\")}function g(e){for(var t,r=e.length,i=r%3,o=[],s=16383,a=0,u=r-i;a<u;a+=s)o.push(d(e,a,a+s>u?u:a+s));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+\"==\")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+\"=\")),o.join(\"\")}i[\"-\".charCodeAt(0)]=62,i[\"_\".charCodeAt(0)]=63},2:function(e,t){},2527:function(e,t){e.exports=function(){throw new Error(\"Readable.from is not available in the browser\")}},\"29a2\":function(e,t,r){\"use strict\";function n(e,t,r){var n=this;this._callback=e,this._args=r,this._interval=setInterval(e,t,this._args),this.reschedule=function(e){e||(e=n._interval),n._interval&&clearInterval(n._interval),n._interval=setInterval(n._callback,e,n._args)},this.clear=function(){n._interval&&(clearInterval(n._interval),n._interval=void 0)},this.destroy=function(){n._interval&&clearInterval(n._interval),n._callback=void 0,n._interval=void 0,n._args=void 0}}function i(){if(\"function\"!==typeof arguments[0])throw new Error(\"callback needed\");if(\"number\"!==typeof arguments[1])throw new Error(\"interval needed\");var e;if(arguments.length>0){e=new Array(arguments.length-2);for(var t=0;t<e.length;t++)e[t]=arguments[t+2]}return new n(arguments[0],arguments[1],e)}e.exports=i},\"29aa\":function(e,t){var r=1e3,n=60*r,i=60*n,o=24*i,s=7*o,a=365.25*o;function u(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var u=parseFloat(t[1]),c=(t[2]||\"ms\").toLowerCase();switch(c){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return u*a;case\"weeks\":case\"week\":case\"w\":return u*s;case\"days\":case\"day\":case\"d\":return u*o;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return u*i;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return u*n;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return u*r;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return u;default:return}}}}function c(e){var t=Math.abs(e);return t>=o?Math.round(e/o)+\"d\":t>=i?Math.round(e/i)+\"h\":t>=n?Math.round(e/n)+\"m\":t>=r?Math.round(e/r)+\"s\":e+\"ms\"}function l(e){var t=Math.abs(e);return t>=o?h(e,t,o,\"day\"):t>=i?h(e,t,i,\"hour\"):t>=n?h(e,t,n,\"minute\"):t>=r?h(e,t,r,\"second\"):e+\" ms\"}function h(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+\" \"+n+(i?\"s\":\"\")}e.exports=function(e,t){t=t||{};var r=typeof e;if(\"string\"===r&&e.length>0)return u(e);if(\"number\"===r&&isFinite(e))return t.long?l(e):c(e);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(e))}},\"2a28\":function(e,t,r){\"use strict\";e.exports=r(\"0050\")()},\"2fae\":function(e,t,r){\"use strict\";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&\"function\"===typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}function i(e,t,r){var n=t===e.head?new a(r,null,t,e):new a(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function o(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function s(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,r,n){if(!(this instanceof a))return new a(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=a,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw new Error(\"removing node which does not belong to this list\");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)s(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,i=this.head;null!==i;)r.push(e.call(t,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,i=this.tail;null!==i;)r.push(e.call(t,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError(\"Reduce of empty list with no initial value\");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError(\"Reduce of empty list with no initial value\");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,o=this.head;null!==o&&n<e;n++)o=o.next;var s=[];for(n=0;o&&n<t;n++)s.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(n=0;n<r.length;n++)o=i(this,o,r[n]);return s},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(\"aff9\")(n)}catch(u){}},3:function(e,t){},\"31b5\":function(e,t,r){\"use strict\";var n=r(\"fbd7\").codes.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var s=i(t,o,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){var a=o?r:\"highWaterMark\";throw new n(a,s)}return Math.floor(s)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},33013:function(e,t,r){\"use strict\";const{Buffer:n}=r(\"b639\"),i=Symbol.for(\"BufferList\");function o(e){if(!(this instanceof o))return new o(e);o._init.call(this,e)}o._init=function(e){Object.defineProperty(this,i,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},o.prototype._new=function(e){return new o(e)},o.prototype._offset=function(e){if(0===e)return[0,0];let t=0;for(let r=0;r<this._bufs.length;r++){const n=t+this._bufs[r].length;if(e<n||r===this._bufs.length-1)return[r,e-t];t=n}},o.prototype._reverseOffset=function(e){const t=e[0];let r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r},o.prototype.get=function(e){if(e>this.length||e<0)return;const t=this._offset(e);return this._bufs[t[0]][t[1]]},o.prototype.slice=function(e,t){return\"number\"===typeof e&&e<0&&(e+=this.length),\"number\"===typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},o.prototype.copy=function(e,t,r,i){if((\"number\"!==typeof r||r<0)&&(r=0),(\"number\"!==typeof i||i>this.length)&&(i=this.length),r>=this.length)return e||n.alloc(0);if(i<=0)return e||n.alloc(0);const o=!!e,s=this._offset(r),a=i-r;let u=a,c=o&&t||0,l=s[1];if(0===r&&i===this.length){if(!o)return 1===this._bufs.length?this._bufs[0]:n.concat(this._bufs,this.length);for(let t=0;t<this._bufs.length;t++)this._bufs[t].copy(e,c),c+=this._bufs[t].length;return e}if(u<=this._bufs[s[0]].length-l)return o?this._bufs[s[0]].copy(e,t,l,l+u):this._bufs[s[0]].slice(l,l+u);o||(e=n.allocUnsafe(a));for(let n=s[0];n<this._bufs.length;n++){const t=this._bufs[n].length-l;if(!(u>t)){this._bufs[n].copy(e,c,l,l+u),c+=t;break}this._bufs[n].copy(e,c,l),c+=t,u-=t,l&&(l=0)}return e.length>c?e.slice(0,c):e},o.prototype.shallowSlice=function(e,t){if(e=e||0,t=\"number\"!==typeof t?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();const r=this._offset(e),n=this._offset(t),i=this._bufs.slice(r[0],n[0]+1);return 0===n[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,n[1]),0!==r[1]&&(i[0]=i[0].slice(r[1])),this._new(i)},o.prototype.toString=function(e,t,r){return this.slice(t,r).toString(e)},o.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;while(this._bufs.length){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},o.prototype.duplicate=function(){const e=this._new();for(let t=0;t<this._bufs.length;t++)e.append(this._bufs[t]);return e},o.prototype.append=function(e){if(null==e)return this;if(e.buffer)this._appendBuffer(n.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let t=0;t<e.length;t++)this.append(e[t]);else if(this._isBufferList(e))for(let t=0;t<e._bufs.length;t++)this.append(e._bufs[t]);else\"number\"===typeof e&&(e=e.toString()),this._appendBuffer(n.from(e));return this},o.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},o.prototype.indexOf=function(e,t,r){if(void 0===r&&\"string\"===typeof t&&(r=t,t=void 0),\"function\"===typeof e||Array.isArray(e))throw new TypeError('The \"value\" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(\"number\"===typeof e?e=n.from([e]):\"string\"===typeof e?e=n.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=n.from(e.buffer,e.byteOffset,e.byteLength):n.isBuffer(e)||(e=n.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),0===e.length)return t>this.length?this.length:t;const i=this._offset(t);let o=i[0],s=i[1];for(;o<this._bufs.length;o++){const t=this._bufs[o];while(s<t.length){const r=t.length-s;if(r>=e.length){const r=t.indexOf(e,s);if(-1!==r)return this._reverseOffset([o,r]);s=t.length-e.length+1}else{const t=this._reverseOffset([o,s]);if(this._match(t,e))return t;s++}}s=0}return-1},o.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0},function(){const e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const t in e)(function(t){null===e[t]?o.prototype[t]=function(e,r){return this.slice(e,e+r)[t](0,r)}:o.prototype[t]=function(r=0){return this.slice(r,r+e[t])[t](0)}})(t)}(),o.prototype._isBufferList=function(e){return e instanceof o||o.isBufferList(e)},o.isBufferList=function(e){return null!=e&&e[i]},e.exports=o},3409:function(e,t,r){t.parser=r(\"1fad\").parser,t.generate=r(\"7f0f\"),t.writeToStream=r(\"7135\")},\"34e3\":function(e,t,r){\"use strict\";(function(t){var n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(\"d9e1\"),s=Symbol(\"lastResolve\"),a=Symbol(\"lastReject\"),u=Symbol(\"error\"),c=Symbol(\"ended\"),l=Symbol(\"lastPromise\"),h=Symbol(\"handlePromise\"),f=Symbol(\"stream\");function p(e,t){return{value:e,done:t}}function d(e){var t=e[s];if(null!==t){var r=e[f].read();null!==r&&(e[l]=null,e[s]=null,e[a]=null,t(p(r,!1)))}}function g(e){t.nextTick(d,e)}function y(e,t){return function(r,n){e.then((function(){t[c]?r(p(void 0,!0)):t[h](r,n)}),n)}}var b=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((n={get stream(){return this[f]},next:function(){var e=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(p(void 0,!0))}))}));var n,i=this[l];if(i)n=new Promise(y(i,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(p(o,!1));n=new Promise(this[h])}return this[l]=n,n}},i(n,Symbol.asyncIterator,(function(){return this})),i(n,\"return\",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),b),w=function(e){var t,r=Object.create(m,(t={},i(t,f,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var n=r[f].read();n?(r[l]=null,r[s]=null,r[a]=null,e(p(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[l]=null,o(e,(function(e){if(e&&\"ERR_STREAM_PREMATURE_CLOSE\"!==e.code){var t=r[a];return null!==t&&(r[l]=null,r[s]=null,r[a]=null,t(e)),void(r[u]=e)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[a]=null,n(p(void 0,!0))),r[c]=!0})),e.on(\"readable\",g.bind(null,r)),r};e.exports=w}).call(this,r(\"f28c\"))},\"35e86\":function(e,t,r){\"use strict\";e.exports={isString:function(e){return\"string\"===typeof e},isObject:function(e){return\"object\"===typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},\"386b7\":function(e,t,r){\"use strict\";var n;function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var o=r(\"9bfc\").codes,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){return e.setHeader&&\"function\"===typeof e.abort}function l(e,t,o,s){s=i(s);var u=!1;e.on(\"close\",(function(){u=!0})),void 0===n&&(n=r(\"bf09\")),n(e,{readable:t,writable:o},(function(e){if(e)return s(e);u=!0,s()}));var l=!1;return function(t){if(!u&&!l)return l=!0,c(e)?e.abort():\"function\"===typeof e.destroy?e.destroy():void s(t||new a(\"pipe\"))}}function h(e){e()}function f(e,t){return e.pipe(t)}function p(e){return e.length?\"function\"!==typeof e[e.length-1]?u:e.pop():u}function d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=p(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new s(\"streams\");var o=t.map((function(e,r){var s=r<t.length-1,a=r>0;return l(e,s,a,(function(e){n||(n=e),e&&o.forEach(h),s||(o.forEach(h),i(n))}))}));return t.reduce(f)}e.exports=d},\"3ca2\":function(e,t,r){\"use strict\";e.exports=l;var n=r(\"fbd7\").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(\"be3f\");function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit(\"error\",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(\"function\"===typeof e.transform&&(this._transform=e.transform),\"function\"===typeof e.flush&&(this._flush=e.flush)),this.on(\"prefinish\",h)}function h(){var e=this;\"function\"!==typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,r){f(e,t,r)}))}function f(e,t,r){if(t)return e.emit(\"error\",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}r(\"3fb5\")(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i(\"_transform()\"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},\"3d67\":function(e,t,r){\"use strict\";r.r(t),r.d(t,\"Stack\",(function(){return c})),r.d(t,\"Queue\",(function(){return C})),r.d(t,\"PriorityQueue\",(function(){return O})),r.d(t,\"Vector\",(function(){return F})),r.d(t,\"VectorIterator\",(function(){return N})),r.d(t,\"LinkList\",(function(){return z})),r.d(t,\"LinkListIterator\",(function(){return V})),r.d(t,\"Deque\",(function(){return S})),r.d(t,\"DequeIterator\",(function(){return v})),r.d(t,\"OrderedSet\",(function(){return oe})),r.d(t,\"OrderedSetIterator\",(function(){return ne})),r.d(t,\"OrderedMap\",(function(){return fe})),r.d(t,\"OrderedMapIterator\",(function(){return le})),r.d(t,\"HashSet\",(function(){return ve})),r.d(t,\"HashMap\",(function(){return Ce})),r.d(t,\"Container\",(function(){return s})),r.d(t,\"ContainerIterator\",(function(){return i})),r.d(t,\"SequentialContainer\",(function(){return f})),r.d(t,\"TreeContainer\",(function(){return G})),r.d(t,\"HashContainer\",(function(){return ge}));var n=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=function(){function e(t){void 0===t&&(t=e.NORMAL),this.iteratorType=t}return e.NORMAL=!1,e.REVERSE=!0,e}(),o=function(){function e(){this.length=0}return e.prototype.size=function(){return this.length},e.prototype.empty=function(){return 0===this.length},e}(),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(o),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(e){function t(t){void 0===t&&(t=[]);var r=e.call(this)||this;return r.stack=[],t.forEach((function(e){return r.push(e)})),r}return a(t,e),t.prototype.clear=function(){this.length=0,this.stack.length=0},t.prototype.push=function(e){this.stack.push(e),this.length+=1},t.prototype.pop=function(){this.stack.pop(),this.length>0&&(this.length-=1)},t.prototype.top=function(){return this.stack[this.length-1]},t}(o),c=u,l=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(s),f=h;function p(e,t,r){if(e<t||e>r)throw new RangeError}var d=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(e){function t(t,r,n,o,s){var a=e.call(this,s)||this;return a.node=t,a.size=r,a.getElementByPos=n,a.setElementByPos=o,a.iteratorType===i.NORMAL?(a.pre=function(){if(0===this.node)throw new RangeError(\"Deque iterator access denied!\");return this.node-=1,this},a.next=function(){if(this.node===this.size())throw new RangeError(\"Deque Iterator access denied!\");return this.node+=1,this}):(a.pre=function(){if(this.node===this.size()-1)throw new RangeError(\"Deque iterator access denied!\");return this.node+=1,this},a.next=function(){if(-1===this.node)throw new RangeError(\"Deque iterator access denied!\");return this.node-=1,this}),a}return d(t,e),Object.defineProperty(t.prototype,\"pointer\",{get:function(){return p(this.node,0,this.size()-1),this.getElementByPos(this.node)},set:function(e){p(this.node,0,this.size()-1),this.setElementByPos(this.node,e)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return this.node===e.node},t}(i),y=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),b=function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},\"function\"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError(\"Generator is already executing.\");while(s)try{if(r=1,n&&(i=2&o[0]?n[\"return\"]:o[0]?n[\"throw\"]||((i=n[\"return\"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},m=function(e,t){var r=\"function\"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{while((void 0===t||t-- >0)&&!(n=o.next()).done)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o[\"return\"])&&r.call(o)}finally{if(i)throw i.error}}return s},w=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.copy=function(){return new t(this.node,this.size,this.getElementByPos,this.setElementByPos,this.iteratorType)},t}(g),_=function(e){function t(t,r){void 0===t&&(t=[]),void 0===r&&(r=4096);var n,i=e.call(this)||this;if(i.first=0,i.curFirst=0,i.last=0,i.curLast=0,i.bucketNum=0,i.map=[],\"size\"in t)n=\"number\"===typeof t.size?t.size:t.size();else{if(!(\"length\"in t))throw new RangeError(\"Can't get container's size!\");n=t.length}i.bucketSize=r,i.bucketNum=Math.max(Math.ceil(n/i.bucketSize),1);for(var o=0;o<i.bucketNum;++o)i.map.push(new Array(i.bucketSize));var s=Math.ceil(n/i.bucketSize);return i.first=i.last=(i.bucketNum>>1)-(s>>1),i.curFirst=i.curLast=i.bucketSize-n%i.bucketSize>>1,t.forEach((function(e){return i.pushBack(e)})),i.size=i.size.bind(i),i.getElementByPos=i.getElementByPos.bind(i),i.setElementByPos=i.setElementByPos.bind(i),i}return y(t,e),t.prototype.reAllocate=function(){for(var e=[],t=Math.max(this.bucketNum>>1,1),r=0;r<t;++r)e[r]=new Array(this.bucketSize);for(r=this.first;r<this.bucketNum;++r)e[e.length]=this.map[r];for(r=0;r<this.last;++r)e[e.length]=this.map[r];e[e.length]=w([],m(this.map[this.last]),!1),this.first=t,this.last=e.length-1;for(r=0;r<t;++r)e[e.length]=new Array(this.bucketSize);this.map=e,this.bucketNum=e.length},t.prototype.getElementIndex=function(e){var t=this.curFirst+e+1,r=t%this.bucketSize,n=r-1,i=this.first+(t-r)/this.bucketSize;return 0===r&&(i-=1),i%=this.bucketNum,n<0&&(n+=this.bucketSize),{curNodeBucketIndex:i,curNodePointerIndex:n}},t.prototype.clear=function(){this.map=[[]],this.bucketNum=1,this.first=this.last=this.length=0,this.curFirst=this.curLast=this.bucketSize>>1},t.prototype.front=function(){return this.map[this.first][this.curFirst]},t.prototype.back=function(){return this.map[this.last][this.curLast]},t.prototype.begin=function(){return new v(0,this.size,this.getElementByPos,this.setElementByPos)},t.prototype.end=function(){return new v(this.length,this.size,this.getElementByPos,this.setElementByPos)},t.prototype.rBegin=function(){return new v(this.length-1,this.size,this.getElementByPos,this.setElementByPos,i.REVERSE)},t.prototype.rEnd=function(){return new v(-1,this.size,this.getElementByPos,this.setElementByPos,i.REVERSE)},t.prototype.pushBack=function(e){this.length&&(this.curLast<this.bucketSize-1?this.curLast+=1:this.last<this.bucketNum-1?(this.last+=1,this.curLast=0):(this.last=0,this.curLast=0),this.last===this.first&&this.curLast===this.curFirst&&this.reAllocate()),this.length+=1,this.map[this.last][this.curLast]=e},t.prototype.popBack=function(){this.length&&(this.map[this.last][this.curLast]=void 0,1!==this.length&&(this.curLast>0?this.curLast-=1:this.last>0?(this.last-=1,this.curLast=this.bucketSize-1):(this.last=this.bucketNum-1,this.curLast=this.bucketSize-1)),this.length-=1)},t.prototype.pushFront=function(e){this.length&&(this.curFirst>0?this.curFirst-=1:this.first>0?(this.first-=1,this.curFirst=this.bucketSize-1):(this.first=this.bucketNum-1,this.curFirst=this.bucketSize-1),this.first===this.last&&this.curFirst===this.curLast&&this.reAllocate()),this.length+=1,this.map[this.first][this.curFirst]=e},t.prototype.popFront=function(){this.length&&(this.map[this.first][this.curFirst]=void 0,1!==this.length&&(this.curFirst<this.bucketSize-1?this.curFirst+=1:this.first<this.bucketNum-1?(this.first+=1,this.curFirst=0):(this.first=0,this.curFirst=0)),this.length-=1)},t.prototype.forEach=function(e){for(var t=0;t<this.length;++t)e(this.getElementByPos(t),t)},t.prototype.getElementByPos=function(e){p(e,0,this.length-1);var t=this.getElementIndex(e),r=t.curNodeBucketIndex,n=t.curNodePointerIndex;return this.map[r][n]},t.prototype.setElementByPos=function(e,t){p(e,0,this.length-1);var r=this.getElementIndex(e),n=r.curNodeBucketIndex,i=r.curNodePointerIndex;this.map[n][i]=t},t.prototype.insert=function(e,t,r){if(void 0===r&&(r=1),p(e,0,this.length),0===e)while(r--)this.pushFront(t);else if(e===this.length)while(r--)this.pushBack(t);else{for(var n=[],i=e;i<this.length;++i)n.push(this.getElementByPos(i));this.cut(e-1);for(i=0;i<r;++i)this.pushBack(t);for(i=0;i<n.length;++i)this.pushBack(n[i])}},t.prototype.cut=function(e){if(e<0)this.clear();else{var t=this.getElementIndex(e),r=t.curNodeBucketIndex,n=t.curNodePointerIndex;this.last=r,this.curLast=n,this.length=e+1}},t.prototype.eraseElementByPos=function(e){var t=this;if(p(e,0,this.length-1),0===e)this.popFront();else if(e===this.length-1)this.popBack();else{for(var r=[],n=e+1;n<this.length;++n)r.push(this.getElementByPos(n));this.cut(e),this.popBack(),r.forEach((function(e){return t.pushBack(e)}))}},t.prototype.eraseElementByValue=function(e){if(this.length){for(var t=[],r=0;r<this.length;++r){var n=this.getElementByPos(r);n!==e&&t.push(n)}var i=t.length;for(r=0;r<i;++r)this.setElementByPos(r,t[r]);this.cut(i-1)}},t.prototype.eraseElementByIterator=function(e){var t=e.node;return this.eraseElementByPos(t),e=e.next(),e},t.prototype.find=function(e){for(var t=0;t<this.length;++t)if(this.getElementByPos(t)===e)return new v(t,this.size,this.getElementByPos,this.setElementByPos);return this.end()},t.prototype.reverse=function(){var e=0,t=this.length-1;while(e<t){var r=this.getElementByPos(e);this.setElementByPos(e,this.getElementByPos(t)),this.setElementByPos(t,r),e+=1,t-=1}},t.prototype.unique=function(){if(!(this.length<=1)){for(var e=1,t=this.getElementByPos(0),r=1;r<this.length;++r){var n=this.getElementByPos(r);n!==t&&(t=n,this.setElementByPos(e++,n))}while(this.length>e)this.popBack()}},t.prototype.sort=function(e){for(var t=[],r=0;r<this.length;++r)t.push(this.getElementByPos(r));t.sort(e);for(r=0;r<this.length;++r)this.setElementByPos(r,t[r])},t.prototype.shrinkToFit=function(){if(this.length){var e=[];this.forEach((function(t){return e.push(t)})),this.bucketNum=Math.max(Math.ceil(this.length/this.bucketSize),1),this.length=this.first=this.last=this.curFirst=this.curLast=0,this.map=[];for(var t=0;t<this.bucketNum;++t)this.map.push(new Array(this.bucketSize));for(t=0;t<e.length;++t)this.pushBack(e[t])}},t.prototype[Symbol.iterator]=function(){return function(){var e;return b(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<this.length?[4,this.getElementByPos(e)]:[3,4];case 2:t.sent(),t.label=3;case 3:return++e,[3,1];case 4:return[2]}}))}.bind(this)()},t}(f),S=_,E=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),k=function(e){function t(t){void 0===t&&(t=[]);var r=e.call(this)||this;return r.queue=new S(t),r.length=r.queue.size(),r}return E(t,e),t.prototype.clear=function(){this.queue.clear(),this.length=0},t.prototype.push=function(e){this.queue.pushBack(e),this.length+=1},t.prototype.pop=function(){this.queue.popFront(),this.length&&(this.length-=1)},t.prototype.front=function(){return this.queue.front()},t}(o),C=k,R=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),A=function(e,t){var r=\"function\"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{while((void 0===t||t-- >0)&&!(n=o.next()).done)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o[\"return\"])&&r.call(o)}finally{if(i)throw i.error}}return s},T=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},x=function(e){function t(t,r,n){var i;void 0===t&&(t=[]),void 0===r&&(r=function(e,t){return e>t?-1:e<t?1:0}),void 0===n&&(n=!0);var o=e.call(this)||this;o.cmp=r,Array.isArray(t)?o.priorityQueue=n?T([],A(t),!1):t:(o.priorityQueue=[],t.forEach((function(e){return o.priorityQueue.push(e)}))),o.length=o.priorityQueue.length;for(var s=o.length-1>>1;s>=0;--s){var a=s,u=a<<1|1;while(u<o.length){var c=u,l=c+1,h=c;if(l<o.length&&o.cmp(o.priorityQueue[c],o.priorityQueue[l])>0&&(h=l),o.cmp(o.priorityQueue[a],o.priorityQueue[h])<=0)break;i=A([o.priorityQueue[h],o.priorityQueue[a]],2),o.priorityQueue[a]=i[0],o.priorityQueue[h]=i[1],a=h,u=a<<1|1}}return o}return R(t,e),t.prototype.adjust=function(e){var t,r,n=e<<1|1,i=2+(e<<1);n<this.length&&this.cmp(this.priorityQueue[e],this.priorityQueue[n])>0&&(t=A([this.priorityQueue[n],this.priorityQueue[e]],2),this.priorityQueue[e]=t[0],this.priorityQueue[n]=t[1]),i<this.length&&this.cmp(this.priorityQueue[e],this.priorityQueue[i])>0&&(r=A([this.priorityQueue[i],this.priorityQueue[e]],2),this.priorityQueue[e]=r[0],this.priorityQueue[i]=r[1])},t.prototype.clear=function(){this.length=0,this.priorityQueue.length=0},t.prototype.push=function(e){if(this.priorityQueue.push(e),this.length+=1,1!==this.length){var t=this.length-1;while(t>0){var r=t-1>>1;if(this.cmp(this.priorityQueue[r],e)<=0)break;this.adjust(r),t=r}}},t.prototype.pop=function(){if(this.length){var e=this.priorityQueue[this.length-1];this.length-=1;var t=0;while(t<this.length){var r=t<<1|1,n=2+(t<<1);if(r>=this.length)break;var i=r;if(n<this.length&&this.cmp(this.priorityQueue[r],this.priorityQueue[n])>0&&(i=n),this.cmp(this.priorityQueue[i],e)>=0)break;this.priorityQueue[t]=this.priorityQueue[i],t=i}this.priorityQueue[t]=e,this.priorityQueue.pop()}},t.prototype.top=function(){return this.priorityQueue[0]},t}(o),O=x,P=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),I=function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},\"function\"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError(\"Generator is already executing.\");while(s)try{if(r=1,n&&(i=2&o[0]?n[\"return\"]:o[0]?n[\"throw\"]||((i=n[\"return\"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},B=function(e,t){var r=\"function\"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{while((void 0===t||t-- >0)&&!(n=o.next()).done)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o[\"return\"])&&r.call(o)}finally{if(i)throw i.error}}return s},M=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},L=function(e){var t=\"function\"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&\"number\"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")},N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P(t,e),t.prototype.copy=function(){return new t(this.node,this.size,this.getElementByPos,this.setElementByPos,this.iteratorType)},t}(g),j=function(e){function t(t,r){void 0===t&&(t=[]),void 0===r&&(r=!0);var n=e.call(this)||this;return Array.isArray(t)?(n.vector=r?M([],B(t),!1):t,n.length=t.length):(n.vector=[],t.forEach((function(e){return n.pushBack(e)}))),n.size=n.size.bind(n),n.getElementByPos=n.getElementByPos.bind(n),n.setElementByPos=n.setElementByPos.bind(n),n}return P(t,e),t.prototype.clear=function(){this.length=0,this.vector.length=0},t.prototype.begin=function(){return new N(0,this.size,this.getElementByPos,this.setElementByPos)},t.prototype.end=function(){return new N(this.length,this.size,this.getElementByPos,this.setElementByPos)},t.prototype.rBegin=function(){return new N(this.length-1,this.size,this.getElementByPos,this.setElementByPos,i.REVERSE)},t.prototype.rEnd=function(){return new N(-1,this.size,this.getElementByPos,this.setElementByPos,i.REVERSE)},t.prototype.front=function(){return this.vector[0]},t.prototype.back=function(){return this.vector[this.length-1]},t.prototype.forEach=function(e){for(var t=0;t<this.length;++t)e(this.vector[t],t)},t.prototype.getElementByPos=function(e){return p(e,0,this.length-1),this.vector[e]},t.prototype.eraseElementByPos=function(e){p(e,0,this.length-1),this.vector.splice(e,1),this.length-=1},t.prototype.eraseElementByValue=function(e){for(var t=0,r=0;r<this.length;++r)this.vector[r]!==e&&(this.vector[t++]=this.vector[r]);this.length=this.vector.length=t},t.prototype.eraseElementByIterator=function(e){var t=e.node;return e=e.next(),this.eraseElementByPos(t),e},t.prototype.pushBack=function(e){this.vector.push(e),this.length+=1},t.prototype.popBack=function(){this.length&&(this.vector.pop(),this.length-=1)},t.prototype.setElementByPos=function(e,t){p(e,0,this.length-1),this.vector[e]=t},t.prototype.insert=function(e,t,r){var n;void 0===r&&(r=1),p(e,0,this.length),(n=this.vector).splice.apply(n,M([e,0],B(new Array(r).fill(t)),!1)),this.length+=r},t.prototype.find=function(e){for(var t=0;t<this.length;++t)if(this.vector[t]===e)return new N(t,this.size,this.getElementByPos,this.getElementByPos);return this.end()},t.prototype.reverse=function(){this.vector.reverse()},t.prototype.unique=function(){for(var e=1,t=1;t<this.length;++t)this.vector[t]!==this.vector[t-1]&&(this.vector[e++]=this.vector[t]);this.length=this.vector.length=e},t.prototype.sort=function(e){this.vector.sort(e)},t.prototype[Symbol.iterator]=function(){return function(){return I(this,(function(e){switch(e.label){case 0:return[5,L(this.vector)];case 1:return[2,e.sent()]}}))}.bind(this)()},t}(f),F=j,U=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),D=function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},\"function\"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError(\"Generator is already executing.\");while(s)try{if(r=1,n&&(i=2&o[0]?n[\"return\"]:o[0]?n[\"throw\"]||((i=n[\"return\"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},q=function(){function e(e){this.value=void 0,this.pre=void 0,this.next=void 0,this.value=e}return e}(),V=function(e){function t(t,r,n){var o=e.call(this,n)||this;return o.node=t,o.header=r,o.iteratorType===i.NORMAL?(o.pre=function(){if(this.node.pre===this.header)throw new RangeError(\"LinkList iterator access denied!\");return this.node=this.node.pre,this},o.next=function(){if(this.node===this.header)throw new RangeError(\"LinkList iterator access denied!\");return this.node=this.node.next,this}):(o.pre=function(){if(this.node.next===this.header)throw new RangeError(\"LinkList iterator access denied!\");return this.node=this.node.next,this},o.next=function(){if(this.node===this.header)throw new RangeError(\"LinkList iterator access denied!\");return this.node=this.node.pre,this}),o}return U(t,e),Object.defineProperty(t.prototype,\"pointer\",{get:function(){if(this.node===this.header)throw new RangeError(\"LinkList iterator access denied!\");return this.node.value},set:function(e){if(this.node===this.header)throw new RangeError(\"LinkList iterator access denied!\");this.node.value=e},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return this.node===e.node},t.prototype.copy=function(){return new t(this.node,this.header,this.iteratorType)},t}(i),W=function(e){function t(t){void 0===t&&(t=[]);var r=e.call(this)||this;return r.header=new q,r.head=void 0,r.tail=void 0,t.forEach((function(e){return r.pushBack(e)})),r}return U(t,e),t.prototype.clear=function(){this.length=0,this.head=this.tail=void 0,this.header.pre=this.header.next=void 0},t.prototype.begin=function(){return new V(this.head||this.header,this.header)},t.prototype.end=function(){return new V(this.header,this.header)},t.prototype.rBegin=function(){return new V(this.tail||this.header,this.header,i.REVERSE)},t.prototype.rEnd=function(){return new V(this.header,this.header,i.REVERSE)},t.prototype.front=function(){return this.head?this.head.value:void 0},t.prototype.back=function(){return this.tail?this.tail.value:void 0},t.prototype.forEach=function(e){if(this.length){var t=this.head,r=0;while(t!==this.header)e(t.value,r++),t=t.next}},t.prototype.getElementByPos=function(e){p(e,0,this.length-1);var t=this.head;while(e--)t=t.next;return t.value},t.prototype.eraseElementByPos=function(e){if(p(e,0,this.length-1),0===e)this.popFront();else if(e===this.length-1)this.popBack();else{var t=this.head;while(e--)t=t.next;t=t;var r=t.pre,n=t.next;n.pre=r,r.next=n,this.length-=1}},t.prototype.eraseElementByValue=function(e){while(this.head&&this.head.value===e)this.popFront();while(this.tail&&this.tail.value===e)this.popBack();if(this.head){var t=this.head;while(t!==this.header){if(t.value===e){var r=t.pre,n=t.next;n&&(n.pre=r),r&&(r.next=n),this.length-=1}t=t.next}}},t.prototype.eraseElementByIterator=function(e){var t=e.node;if(t===this.header)throw new RangeError(\"Invalid iterator\");if(e=e.next(),this.head===t)this.popFront();else if(this.tail===t)this.popBack();else{var r=t.pre,n=t.next;n&&(n.pre=r),r&&(r.next=n),this.length-=1}return e},t.prototype.pushBack=function(e){this.length+=1;var t=new q(e);this.tail?(this.tail.next=t,t.pre=this.tail,this.tail=t):(this.head=this.tail=t,this.header.next=this.head,this.head.pre=this.header),this.tail.next=this.header,this.header.pre=this.tail},t.prototype.popBack=function(){this.tail&&(this.length-=1,this.head===this.tail?(this.head=this.tail=void 0,this.header.next=void 0):(this.tail=this.tail.pre,this.tail&&(this.tail.next=void 0)),this.header.pre=this.tail,this.tail&&(this.tail.next=this.header))},t.prototype.setElementByPos=function(e,t){p(e,0,this.length-1);var r=this.head;while(e--)r=r.next;r.value=t},t.prototype.insert=function(e,t,r){if(void 0===r&&(r=1),p(e,0,this.length),!(r<=0))if(0===e)while(r--)this.pushFront(t);else if(e===this.length)while(r--)this.pushBack(t);else{for(var n=this.head,i=1;i<e;++i)n=n.next;var o=n.next;this.length+=r;while(r--)n.next=new q(t),n.next.pre=n,n=n.next;n.next=o,o&&(o.pre=n)}},t.prototype.find=function(e){if(!this.head)return this.end();var t=this.head;while(t!==this.header){if(t.value===e)return new V(t,this.header);t=t.next}return this.end()},t.prototype.reverse=function(){if(!(this.length<=1)){var e=this.head,t=this.tail,r=0;while(r<<1<this.length){var n=e.value;e.value=t.value,t.value=n,e=e.next,t=t.pre,r+=1}}},t.prototype.unique=function(){if(!(this.length<=1)){var e=this.head;while(e!==this.header){var t=e;while(t.next&&t.value===t.next.value)t=t.next,this.length-=1;e.next=t.next,e.next&&(e.next.pre=e),e=e.next}}},t.prototype.sort=function(e){if(!(this.length<=1)){var t=[];this.forEach((function(e){return t.push(e)})),t.sort(e);var r=this.head;t.forEach((function(e){r.value=e,r=r.next}))}},t.prototype.pushFront=function(e){this.length+=1;var t=new q(e);this.head?(t.next=this.head,this.head.pre=t,this.head=t):(this.head=this.tail=t,this.tail.next=this.header,this.header.pre=this.tail),this.header.next=this.head,this.head.pre=this.header},t.prototype.popFront=function(){this.head&&(this.length-=1,this.head===this.tail?(this.head=this.tail=void 0,this.header.pre=this.tail):(this.head=this.head.next,this.head&&(this.head.pre=this.header)),this.header.next=this.head)},t.prototype.merge=function(e){var t=this;if(this.head){var r=this.head;e.forEach((function(e){while(r&&r!==t.header&&r.value<=e)r=r.next;if(r===t.header)t.pushBack(e),r=t.tail;else if(r===t.head)t.pushFront(e),r=t.head;else{t.length+=1;var n=r.pre;n.next=new q(e),n.next.pre=n,n.next.next=r,r.pre=n.next}}))}else e.forEach((function(e){return t.pushBack(e)}))},t.prototype[Symbol.iterator]=function(){return function(){var e;return D(this,(function(t){switch(t.label){case 0:if(!this.head)return[2];e=this.head,t.label=1;case 1:return e===this.header?[3,3]:[4,e.value];case 2:return t.sent(),e=e.next,[3,1];case 3:return[2]}}))}.bind(this)()},t}(f),z=W,K=function(){function e(e,t){this.color=!0,this.key=void 0,this.value=void 0,this.left=void 0,this.right=void 0,this.parent=void 0,this.key=e,this.value=t}return e.prototype.pre=function(){var t=this;if(t.color===e.RED&&t.parent.parent===t)t=t.right;else if(t.left){t=t.left;while(t.right)t=t.right}else{var r=t.parent;while(r.left===t)t=r,r=t.parent;t=r}return t},e.prototype.next=function(){var e=this;if(e.right){e=e.right;while(e.left)e=e.left}else{var t=e.parent;while(t.right===e)e=t,t=e.parent;e.right!==t&&(e=t)}return e},e.prototype.rotateLeft=function(){var e=this.parent,t=this.right,r=t.left;return e.parent===this?e.parent=t:e.left===this?e.left=t:e.right=t,t.parent=e,t.left=this,this.parent=t,this.right=r,r&&(r.parent=this),t},e.prototype.rotateRight=function(){var e=this.parent,t=this.left,r=t.right;return e.parent===this?e.parent=t:e.left===this?e.left=t:e.right=t,t.parent=e,t.right=this,this.parent=t,this.left=r,r&&(r.parent=this),t},e.prototype.remove=function(){var e=this.parent;this===e.left?e.left=void 0:e.right=void 0},e.RED=!0,e.BLACK=!1,e}(),H=K,Q=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Y=function(e,t){var r=\"function\"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{while((void 0===t||t-- >0)&&!(n=o.next()).done)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o[\"return\"])&&r.call(o)}finally{if(i)throw i.error}}return s},$=function(e){function t(t){void 0===t&&(t=function(e,t){return e<t?-1:e>t?1:0});var r=e.call(this)||this;return r.root=void 0,r.header=new H,r.inOrderTraversal=function(e,t){if(void 0===e)return!1;var n=r.inOrderTraversal(e.left,t);return!!n||(!!t(e)||r.inOrderTraversal(e.right,t))},r.cmp=t,r}return Q(t,e),t.prototype._lowerBound=function(e,t){var r;while(e){var n=this.cmp(e.key,t);if(n<0)e=e.right;else{if(!(n>0))return e;r=e,e=e.left}}return void 0===r?this.header:r},t.prototype._upperBound=function(e,t){var r;while(e){var n=this.cmp(e.key,t);n<=0?e=e.right:n>0&&(r=e,e=e.left)}return void 0===r?this.header:r},t.prototype._reverseLowerBound=function(e,t){var r;while(e){var n=this.cmp(e.key,t);if(n<0)r=e,e=e.right;else{if(!(n>0))return e;e=e.left}}return void 0===r?this.header:r},t.prototype._reverseUpperBound=function(e,t){var r;while(e){var n=this.cmp(e.key,t);n<0?(r=e,e=e.right):n>=0&&(e=e.left)}return void 0===r?this.header:r},t.prototype.eraseNodeSelfBalance=function(e){while(1){var t=e.parent;if(t===this.header)return;if(e.color===H.RED)return void(e.color=H.BLACK);if(e===t.left){var r=t.right;if(r.color===H.RED)r.color=H.BLACK,t.color=H.RED,t===this.root?this.root=t.rotateLeft():t.rotateLeft();else if(r.color===H.BLACK){if(r.right&&r.right.color===H.RED)return r.color=t.color,t.color=H.BLACK,r.right.color=H.BLACK,void(t===this.root?this.root=t.rotateLeft():t.rotateLeft());r.left&&r.left.color===H.RED?(r.color=H.RED,r.left.color=H.BLACK,r.rotateRight()):(r.color=H.RED,e=t)}}else{r=t.left;if(r.color===H.RED)r.color=H.BLACK,t.color=H.RED,t===this.root?this.root=t.rotateRight():t.rotateRight();else{if(r.left&&r.left.color===H.RED)return r.color=t.color,t.color=H.BLACK,r.left.color=H.BLACK,void(t===this.root?this.root=t.rotateRight():t.rotateRight());r.right&&r.right.color===H.RED?(r.color=H.RED,r.right.color=H.BLACK,r.rotateLeft()):(r.color=H.RED,e=t)}}}},t.prototype.eraseNode=function(e){var t,r;if(1!==this.length){var n=e;while(n.left||n.right){if(n.right){n=n.right;while(n.left)n=n.left}else n.left&&(n=n.left);t=Y([n.key,e.key],2),e.key=t[0],n.key=t[1],r=Y([n.value,e.value],2),e.value=r[0],n.value=r[1],e=n}this.header.left===n?this.header.left=n.parent:this.header.right===n&&(this.header.right=n.parent),this.eraseNodeSelfBalance(n),n.remove(),this.length-=1,this.root.color=H.BLACK}else this.clear()},t.prototype.insertNodeSelfBalance=function(e){while(1){var t=e.parent;if(t.color===H.BLACK)return;var r=t.parent;if(t===r.left){var n=r.right;if(n&&n.color===H.RED){if(n.color=t.color=H.BLACK,r===this.root)return;r.color=H.RED,e=r;continue}if(e===t.right){if(e.color=H.BLACK,e.left&&(e.left.parent=t),e.right&&(e.right.parent=r),t.right=e.left,r.left=e.right,e.left=t,e.right=r,r===this.root)this.root=e,this.header.parent=e;else{var i=r.parent;i.left===r?i.left=e:i.right=e}e.parent=r.parent,t.parent=e,r.parent=e}else t.color=H.BLACK,r===this.root?this.root=r.rotateRight():r.rotateRight();r.color=H.RED}else{n=r.left;if(n&&n.color===H.RED){if(n.color=t.color=H.BLACK,r===this.root)return;r.color=H.RED,e=r;continue}if(e===t.left){if(e.color=H.BLACK,e.left&&(e.left.parent=r),e.right&&(e.right.parent=t),r.right=e.left,t.left=e.right,e.left=r,e.right=t,r===this.root)this.root=e,this.header.parent=e;else{i=r.parent;i.left===r?i.left=e:i.right=e}e.parent=r.parent,t.parent=e,r.parent=e}else t.color=H.BLACK,r===this.root?this.root=r.rotateLeft():r.rotateLeft();r.color=H.RED}return}},t.prototype.findElementNode=function(e,t){while(e){var r=this.cmp(e.key,t);if(r<0)e=e.right;else{if(!(r>0))return e;e=e.left}}return e},t.prototype.set=function(e,t,r){if(void 0===this.root)return this.length+=1,this.root=new H(e,t),this.root.color=H.BLACK,this.root.parent=this.header,this.header.parent=this.root,this.header.left=this.root,void(this.header.right=this.root);var n,i=this.header.left,o=this.cmp(i.key,e);if(0!==o){if(o>0)i.left=new H(e,t),i.left.parent=i,n=i.left,this.header.left=n;else{var s=this.header.right,a=this.cmp(s.key,e);if(0===a)return void(s.value=t);if(a<0)s.right=new H(e,t),s.right.parent=s,n=s.right,this.header.right=n;else{if(void 0!==r){var u=r.node;if(u!==this.header){var c=this.cmp(u.key,e);if(0===c)return void(u.value=t);if(c>0){var l=u.pre(),h=this.cmp(l.key,e);if(0===h)return void(l.value=t);h<0&&(n=new H(e,t),void 0===l.right?(l.right=n,n.parent=l):(u.left=n,n.parent=u))}}}if(void 0===n){n=this.root;while(1){var f=this.cmp(n.key,e);if(f>0){if(void 0===n.left){n.left=new H(e,t),n.left.parent=n,n=n.left;break}n=n.left}else{if(!(f<0))return void(n.value=t);if(void 0===n.right){n.right=new H(e,t),n.right.parent=n,n=n.right;break}n=n.right}}}}}this.length+=1,this.insertNodeSelfBalance(n)}else i.value=t},t.prototype.clear=function(){this.length=0,this.root=void 0,this.header.parent=void 0,this.header.left=this.header.right=void 0},t.prototype.updateKeyByIterator=function(e,t){var r=e.node;if(r===this.header)throw new TypeError(\"Invalid iterator!\");if(1===this.length)return r.key=t,!0;if(r===this.header.left)return this.cmp(r.next().key,t)>0&&(r.key=t,!0);if(r===this.header.right)return this.cmp(r.pre().key,t)<0&&(r.key=t,!0);var n=r.pre().key;if(this.cmp(n,t)>=0)return!1;var i=r.next().key;return!(this.cmp(i,t)<=0)&&(r.key=t,!0)},t.prototype.eraseElementByPos=function(e){var t=this;p(e,0,this.length-1);var r=0;this.inOrderTraversal(this.root,(function(n){return e===r?(t.eraseNode(n),!0):(r+=1,!1)}))},t.prototype.eraseElementByKey=function(e){if(this.length){var t=this.findElementNode(this.root,e);void 0!==t&&this.eraseNode(t)}},t.prototype.eraseElementByIterator=function(e){var t=e.node;if(t===this.header)throw new RangeError(\"Invalid iterator\");return void 0===t.right&&(e=e.next()),this.eraseNode(t),e},t.prototype.getHeight=function(){if(!this.length)return 0;var e=function(t){return t?Math.max(e(t.left),e(t.right))+1:0};return e(this.root)},t}(s),G=$,J=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Z=function(e){function t(t,r,n){var o=e.call(this,n)||this;return o.node=t,o.header=r,o.iteratorType===i.NORMAL?(o.pre=function(){if(this.node===this.header.left)throw new RangeError(\"LinkList iterator access denied!\");return this.node=this.node.pre(),this},o.next=function(){if(this.node===this.header)throw new RangeError(\"LinkList iterator access denied!\");return this.node=this.node.next(),this}):(o.pre=function(){if(this.node===this.header.right)throw new RangeError(\"LinkList iterator access denied!\");return this.node=this.node.next(),this},o.next=function(){if(this.node===this.header)throw new RangeError(\"LinkList iterator access denied!\");return this.node=this.node.pre(),this}),o}return J(t,e),t.prototype.equals=function(e){return this.node===e.node},t}(i),X=Z,ee=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),te=function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},\"function\"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError(\"Generator is already executing.\");while(s)try{if(r=1,n&&(i=2&o[0]?n[\"return\"]:o[0]?n[\"throw\"]||((i=n[\"return\"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},re=function(e){var t=\"function\"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&\"number\"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")},ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ee(t,e),Object.defineProperty(t.prototype,\"pointer\",{get:function(){if(this.node===this.header)throw new RangeError(\"OrderedSet iterator access denied!\");return this.node.key},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.node,this.header,this.iteratorType)},t}(X),ie=function(e){function t(t,r){void 0===t&&(t=[]);var n=e.call(this,r)||this;return n.iterationFunc=function(e){return te(this,(function(t){switch(t.label){case 0:return void 0===e?[2]:[5,re(this.iterationFunc(e.left))];case 1:return t.sent(),[4,e.key];case 2:return t.sent(),[5,re(this.iterationFunc(e.right))];case 3:return t.sent(),[2]}}))},t.forEach((function(e){return n.insert(e)})),n.iterationFunc=n.iterationFunc.bind(n),n}return ee(t,e),t.prototype.begin=function(){return new ne(this.header.left||this.header,this.header)},t.prototype.end=function(){return new ne(this.header,this.header)},t.prototype.rBegin=function(){return new ne(this.header.right||this.header,this.header,i.REVERSE)},t.prototype.rEnd=function(){return new ne(this.header,this.header,i.REVERSE)},t.prototype.front=function(){return this.header.left?this.header.left.key:void 0},t.prototype.back=function(){return this.header.right?this.header.right.key:void 0},t.prototype.forEach=function(e){var t,r,n=0;try{for(var i=re(this),o=i.next();!o.done;o=i.next()){var s=o.value;e(s,n++)}}catch(a){t={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},t.prototype.getElementByPos=function(e){var t,r,n;p(e,0,this.length-1);var i=0;try{for(var o=re(this),s=o.next();!s.done;s=o.next()){var a=s.value;i===e&&(n=a),i+=1}}catch(u){t={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n},t.prototype.insert=function(e,t){this.set(e,void 0,t)},t.prototype.find=function(e){var t=this.findElementNode(this.root,e);return void 0!==t?new ne(t,this.header):this.end()},t.prototype.lowerBound=function(e){var t=this._lowerBound(this.root,e);return new ne(t,this.header)},t.prototype.upperBound=function(e){var t=this._upperBound(this.root,e);return new ne(t,this.header)},t.prototype.reverseLowerBound=function(e){var t=this._reverseLowerBound(this.root,e);return new ne(t,this.header)},t.prototype.reverseUpperBound=function(e){var t=this._reverseUpperBound(this.root,e);return new ne(t,this.header)},t.prototype.union=function(e){var t=this;e.forEach((function(e){return t.insert(e)}))},t.prototype[Symbol.iterator]=function(){return this.iterationFunc(this.root)},t}(G),oe=ie,se=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ae=function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},\"function\"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError(\"Generator is already executing.\");while(s)try{if(r=1,n&&(i=2&o[0]?n[\"return\"]:o[0]?n[\"throw\"]||((i=n[\"return\"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},ue=function(e,t){var r=\"function\"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{while((void 0===t||t-- >0)&&!(n=o.next()).done)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o[\"return\"])&&r.call(o)}finally{if(i)throw i.error}}return s},ce=function(e){var t=\"function\"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&\"number\"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")},le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return se(t,e),Object.defineProperty(t.prototype,\"pointer\",{get:function(){var e=this;if(this.node===this.header)throw new RangeError(\"OrderedMap iterator access denied\");return new Proxy([],{get:function(t,r){return\"0\"===r?e.node.key:\"1\"===r?e.node.value:void 0},set:function(t,r,n){if(\"1\"!==r)throw new TypeError(\"props must be 1\");return e.node.value=n,!0}})},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.node,this.header,this.iteratorType)},t}(X),he=function(e){function t(t,r){void 0===t&&(t=[]);var n=e.call(this,r)||this;return n.iterationFunc=function(e){return ae(this,(function(t){switch(t.label){case 0:return void 0===e?[2]:[5,ce(this.iterationFunc(e.left))];case 1:return t.sent(),[4,[e.key,e.value]];case 2:return t.sent(),[5,ce(this.iterationFunc(e.right))];case 3:return t.sent(),[2]}}))},n.iterationFunc=n.iterationFunc.bind(n),t.forEach((function(e){var t=ue(e,2),r=t[0],i=t[1];return n.setElement(r,i)})),n}return se(t,e),t.prototype.begin=function(){return new le(this.header.left||this.header,this.header)},t.prototype.end=function(){return new le(this.header,this.header)},t.prototype.rBegin=function(){return new le(this.header.right||this.header,this.header,i.REVERSE)},t.prototype.rEnd=function(){return new le(this.header,this.header,i.REVERSE)},t.prototype.front=function(){if(this.length){var e=this.header.left;return[e.key,e.value]}},t.prototype.back=function(){if(this.length){var e=this.header.right;return[e.key,e.value]}},t.prototype.forEach=function(e){var t,r,n=0;try{for(var i=ce(this),o=i.next();!o.done;o=i.next()){var s=o.value;e(s,n++)}}catch(a){t={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},t.prototype.lowerBound=function(e){var t=this._lowerBound(this.root,e);return new le(t,this.header)},t.prototype.upperBound=function(e){var t=this._upperBound(this.root,e);return new le(t,this.header)},t.prototype.reverseLowerBound=function(e){var t=this._reverseLowerBound(this.root,e);return new le(t,this.header)},t.prototype.reverseUpperBound=function(e){var t=this._reverseUpperBound(this.root,e);return new le(t,this.header)},t.prototype.setElement=function(e,t,r){this.set(e,t,r)},t.prototype.find=function(e){var t=this.findElementNode(this.root,e);return void 0!==t?new le(t,this.header):this.end()},t.prototype.getElementByKey=function(e){var t=this.findElementNode(this.root,e);return t?t.value:void 0},t.prototype.getElementByPos=function(e){var t,r,n;p(e,0,this.length-1);var i=0;try{for(var o=ce(this),s=o.next();!s.done;s=o.next()){var a=s.value;if(i===e){n=a;break}i+=1}}catch(u){t={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n},t.prototype.union=function(e){var t=this;e.forEach((function(e){var r=ue(e,2),n=r[0],i=r[1];return t.setElement(n,i)}))},t.prototype[Symbol.iterator]=function(){return this.iterationFunc(this.root)},t}(G),fe=he,pe=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),de=function(e){function t(t,r){void 0===t&&(t=16),void 0===r&&(r=function(e){var t;t=\"string\"!==typeof e?JSON.stringify(e):e;for(var r=0,n=t.length,i=0;i<n;i++){var o=t.charCodeAt(i);r=(r<<5)-r+o,r|=0}return r>>>0});var n=e.call(this)||this;if(t<16||0!==(t&t-1))throw new RangeError(\"InitBucketNum range error\");return n.bucketNum=n.initBucketNum=t,n.hashFunc=r,n}return pe(t,e),t.prototype.clear=function(){this.length=0,this.bucketNum=this.initBucketNum,this.hashTable=[]},t.sigma=.75,t.treeifyThreshold=8,t.untreeifyThreshold=6,t.minTreeifySize=64,t.maxBucketNum=1<<30,t}(o),ge=de,ye=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),be=function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},\"function\"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError(\"Generator is already executing.\");while(s)try{if(r=1,n&&(i=2&o[0]?n[\"return\"]:o[0]?n[\"throw\"]||((i=n[\"return\"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},me=function(e){var t=\"function\"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&\"number\"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")},we=function(e){function t(t,r,n){void 0===t&&(t=[]);var i=e.call(this,r,n)||this;return i.hashTable=[],t.forEach((function(e){return i.insert(e)})),i}return ye(t,e),t.prototype.reAllocate=function(){var e=this;if(!(this.bucketNum>=ge.maxBucketNum)){var t=[],r=this.bucketNum;this.bucketNum<<=1;for(var n=Object.keys(this.hashTable),i=n.length,o=function(i){var o=parseInt(n[i]),a=s.hashTable[o],u=a.size();if(0===u)return\"continue\";if(1===u){var c=a.front();return t[s.hashFunc(c)&s.bucketNum-1]=new F([c],!1),\"continue\"}var l=[],h=[];a.forEach((function(t){var n=e.hashFunc(t);0===(n&r)?l.push(t):h.push(t)})),a instanceof oe?(l.length>ge.untreeifyThreshold?t[o]=new oe(l):l.length&&(t[o]=new F(l,!1)),h.length>ge.untreeifyThreshold?t[o+r]=new oe(h):h.length&&(t[o+r]=new F(h,!1))):(l.length>=ge.treeifyThreshold?t[o]=new oe(l):l.length&&(t[o]=new F(l,!1)),h.length>=ge.treeifyThreshold?t[o+r]=new oe(h):h.length&&(t[o+r]=new F(h,!1)))},s=this,a=0;a<i;++a)o(a);this.hashTable=t}},t.prototype.forEach=function(e){for(var t=Object.values(this.hashTable),r=t.length,n=0,i=0;i<r;++i)t[i].forEach((function(t){return e(t,n++)}))},t.prototype.insert=function(e){var t=this.hashFunc(e)&this.bucketNum-1,r=this.hashTable[t];if(r){var n=r.size();if(r instanceof F){if(!r.find(e).equals(r.end()))return;if(r.pushBack(e),n+1>=ge.treeifyThreshold){if(this.bucketNum<=ge.minTreeifySize)return this.length+=1,void this.reAllocate();this.hashTable[t]=new oe(r)}this.length+=1}else{r.insert(e);var i=r.size();this.length+=i-n}}else this.hashTable[t]=new F([e],!1),this.length+=1;this.length>this.bucketNum*ge.sigma&&this.reAllocate()},t.prototype.eraseElementByKey=function(e){var t=this.hashFunc(e)&this.bucketNum-1,r=this.hashTable[t];if(r){var n=r.size();if(0!==n)if(r instanceof F){r.eraseElementByValue(e);var i=r.size();this.length+=i-n}else{r.eraseElementByKey(e);i=r.size();this.length+=i-n,i<=ge.untreeifyThreshold&&(this.hashTable[t]=new F(r))}}},t.prototype.find=function(e){var t=this.hashFunc(e)&this.bucketNum-1,r=this.hashTable[t];return!!r&&!r.find(e).equals(r.end())},t.prototype[Symbol.iterator]=function(){return function(){var e,t,r,n,i,o,s,a,u,c;return be(this,(function(l){switch(l.label){case 0:e=Object.values(this.hashTable),t=e.length,r=0,l.label=1;case 1:if(!(r<t))return[3,10];n=e[r],l.label=2;case 2:l.trys.push([2,7,8,9]),u=void 0,i=me(n),o=i.next(),l.label=3;case 3:return o.done?[3,6]:(s=o.value,[4,s]);case 4:l.sent(),l.label=5;case 5:return o=i.next(),[3,3];case 6:return[3,9];case 7:return a=l.sent(),u={error:a},[3,9];case 8:try{o&&!o.done&&(c=i.return)&&c.call(i)}finally{if(u)throw u.error}return[7];case 9:return++r,[3,1];case 10:return[2]}}))}.bind(this)()},t}(ge),ve=we,_e=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if(\"function\"!==typeof r&&null!==r)throw new TypeError(\"Class extends value \"+String(r)+\" is not a constructor or null\");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Se=function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},\"function\"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError(\"Generator is already executing.\");while(s)try{if(r=1,n&&(i=2&o[0]?n[\"return\"]:o[0]?n[\"throw\"]||((i=n[\"return\"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Ee=function(e){var t=\"function\"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&\"number\"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")},ke=function(e){function t(t,r,n){void 0===t&&(t=[]);var i=e.call(this,r,n)||this;return i.hashTable=[],t.forEach((function(e){return i.setElement(e[0],e[1])})),i}return _e(t,e),t.prototype.reAllocate=function(){var e=this;if(!(this.bucketNum>=ge.maxBucketNum)){var t=[],r=this.bucketNum;this.bucketNum<<=1;for(var n=Object.keys(this.hashTable),i=n.length,o=function(i){var o=parseInt(n[i]),a=s.hashTable[o],u=a.size();if(0===u)return\"continue\";if(1===u){var c=a.front();return t[s.hashFunc(c[0])&s.bucketNum-1]=new F([c],!1),\"continue\"}var l=[],h=[];a.forEach((function(t){var n=e.hashFunc(t[0]);0===(n&r)?l.push(t):h.push(t)})),a instanceof fe?(l.length>ge.untreeifyThreshold?t[o]=new fe(l):l.length&&(t[o]=new F(l,!1)),h.length>ge.untreeifyThreshold?t[o+r]=new fe(h):h.length&&(t[o+r]=new F(h,!1))):(l.length>=ge.treeifyThreshold?t[o]=new fe(l):l.length&&(t[o]=new F(l,!1)),h.length>=ge.treeifyThreshold?t[o+r]=new fe(h):h.length&&(t[o+r]=new F(h,!1)))},s=this,a=0;a<i;++a)o(a);this.hashTable=t}},t.prototype.forEach=function(e){for(var t=Object.values(this.hashTable),r=t.length,n=0,i=0;i<r;++i)t[i].forEach((function(t){return e(t,n++)}))},t.prototype.setElement=function(e,r){var n,i,o=this.hashFunc(e)&this.bucketNum-1,s=this.hashTable[o];if(s){var a=s.size();if(s instanceof F){try{for(var u=Ee(s),c=u.next();!c.done;c=u.next()){var l=c.value;if(l[0]===e)return void(l[1]=r)}}catch(f){n={error:f}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}if(s.pushBack([e,r]),a+1>=t.treeifyThreshold){if(this.bucketNum<=t.minTreeifySize)return this.length+=1,void this.reAllocate();this.hashTable[o]=new fe(this.hashTable[o])}this.length+=1}else{s.setElement(e,r);var h=s.size();this.length+=h-a}}else this.length+=1,this.hashTable[o]=new F([[e,r]],!1);this.length>this.bucketNum*t.sigma&&this.reAllocate()},t.prototype.getElementByKey=function(e){var t,r,n=this.hashFunc(e)&this.bucketNum-1,i=this.hashTable[n];if(i){if(i instanceof fe)return i.getElementByKey(e);try{for(var o=Ee(i),s=o.next();!s.done;s=o.next()){var a=s.value;if(a[0]===e)return a[1]}}catch(u){t={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}},t.prototype.eraseElementByKey=function(e){var t,r,n=this.hashFunc(e)&this.bucketNum-1,i=this.hashTable[n];if(i)if(i instanceof F){var o=0;try{for(var s=Ee(i),a=s.next();!a.done;a=s.next()){var u=a.value;if(u[0]===e)return i.eraseElementByPos(o),void(this.length-=1);o+=1}}catch(h){t={error:h}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}}else{var c=i.size();i.eraseElementByKey(e);var l=i.size();this.length+=l-c,l<=ge.untreeifyThreshold&&(this.hashTable[n]=new F(i))}},t.prototype.find=function(e){var t,r,n=this.hashFunc(e)&this.bucketNum-1,i=this.hashTable[n];if(!i)return!1;if(i instanceof fe)return!i.find(e).equals(i.end());try{for(var o=Ee(i),s=o.next();!s.done;s=o.next()){var a=s.value;if(a[0]===e)return!0}}catch(u){t={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return!1},t.prototype[Symbol.iterator]=function(){return function(){var e,t,r,n,i,o,s,a,u,c;return Se(this,(function(l){switch(l.label){case 0:e=Object.values(this.hashTable),t=e.length,r=0,l.label=1;case 1:if(!(r<t))return[3,10];n=e[r],l.label=2;case 2:l.trys.push([2,7,8,9]),u=void 0,i=Ee(n),o=i.next(),l.label=3;case 3:return o.done?[3,6]:(s=o.value,[4,s]);case 4:l.sent(),l.label=5;case 5:return o=i.next(),[3,3];case 6:return[3,9];case 7:return a=l.sent(),u={error:a},[3,9];case 8:try{o&&!o.done&&(c=i.return)&&c.call(i)}finally{if(u)throw u.error}return[7];case 9:return++r,[3,1];case 10:return[2]}}))}.bind(this)()},t}(ge),Ce=ke},\"3fb5\":function(e,t){\"function\"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},4:function(e,t){},\"454e\":function(e,t,r){function n(e){function t(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return n.colors[Math.abs(t)%n.colors.length]}function n(e){let t,r,o,s=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),o=i-(t||i);r.diff=o,r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),\"string\"!==typeof e[0]&&e.unshift(\"%O\");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(\"%%\"===t)return\"%\";s++;const o=n.formatters[i];if(\"function\"===typeof o){const n=e[s];t=o.call(r,n),e.splice(s,1),s--}return t}),n.formatArgs.call(r,e);const u=r.log||n.log;u.apply(r,e)}return a.namespace=e,a.useColors=n.useColors(),a.color=n.selectColor(e),a.extend=i,a.destroy=n.destroy,Object.defineProperty(a,\"enabled\",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==n.namespaces&&(r=n.namespaces,o=n.enabled(e)),o),set:e=>{s=e}}),\"function\"===typeof n.init&&n.init(a),a}function i(e,t){const r=n(this.namespace+(\"undefined\"===typeof t?\":\":t)+e);return r.log=this.log,r}function o(e){let t;n.save(e),n.namespaces=e,n.names=[],n.skips=[];const r=(\"string\"===typeof e?e:\"\").split(/[\\s,]+/),i=r.length;for(t=0;t<i;t++)r[t]&&(e=r[t].replace(/\\*/g,\".*?\"),\"-\"===e[0]?n.skips.push(new RegExp(\"^\"+e.slice(1)+\"$\")):n.names.push(new RegExp(\"^\"+e+\"$\")))}function s(){const e=[...n.names.map(u),...n.skips.map(u).map(e=>\"-\"+e)].join(\",\");return n.enable(\"\"),e}function a(e){if(\"*\"===e[e.length-1])return!0;let t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1}function u(e){return e.toString().substring(2,e.toString().length-2).replace(/\\.\\*\\?$/,\"*\")}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\")}return n.debug=n,n.default=n,n.coerce=c,n.disable=s,n.enable=o,n.enabled=a,n.humanize=r(\"5679\"),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={},n.selectColor=t,n.enable(n.load()),n}e.exports=n},\"4d84\":function(e,t,r){\"use strict\";const n=r(\"3d67\").OrderedSet,i=r(\"687e\")(\"number-allocator:trace\"),o=r(\"687e\")(\"number-allocator:error\");function s(e,t){this.low=e,this.high=t}function a(e,t){if(!(this instanceof a))return new a(e,t);this.min=e,this.max=t,this.ss=new n([],(e,t)=>e.compare(t)),i(\"Create\"),this.clear()}s.prototype.equals=function(e){return this.low===e.low&&this.high===e.high},s.prototype.compare=function(e){return this.low<e.low&&this.high<e.low?-1:e.low<this.low&&e.high<this.low?1:0},a.prototype.firstVacant=function(){return 0===this.ss.size()?null:this.ss.front().low},a.prototype.alloc=function(){if(0===this.ss.size())return i(\"alloc():empty\"),null;const e=this.ss.begin(),t=e.pointer.low,r=e.pointer.high,n=t;return n+1<=r?this.ss.updateKeyByIterator(e,new s(t+1,r)):this.ss.eraseElementByPos(0),i(\"alloc():\"+n),n},a.prototype.use=function(e){const t=new s(e,e),r=this.ss.lowerBound(t);if(!r.equals(this.ss.end())){const n=r.pointer.low,o=r.pointer.high;return r.pointer.equals(t)?(this.ss.eraseElementByIterator(r),i(\"use():\"+e),!0):!(n>e)&&(n===e?(this.ss.updateKeyByIterator(r,new s(n+1,o)),i(\"use():\"+e),!0):o===e?(this.ss.updateKeyByIterator(r,new s(n,o-1)),i(\"use():\"+e),!0):(this.ss.updateKeyByIterator(r,new s(e+1,o)),this.ss.insert(new s(n,e-1)),i(\"use():\"+e),!0))}return i(\"use():failed\"),!1},a.prototype.free=function(e){if(e<this.min||e>this.max)return void o(\"free():\"+e+\" is out of range\");const t=new s(e,e),r=this.ss.upperBound(t);if(r.equals(this.ss.end())){if(r.equals(this.ss.begin()))return void this.ss.insert(t);r.pre();const n=r.pointer.high,i=r.pointer.high;i+1===e?this.ss.updateKeyByIterator(r,new s(n,e)):this.ss.insert(t)}else if(r.equals(this.ss.begin()))if(e+1===r.pointer.low){const e=r.pointer.high-1,t=r.pointer.high;this.ss.updateKeyByIterator(r,new s(e,t))}else this.ss.insert(t);else{const n=r.pointer.low,i=r.pointer.high;r.pre();const o=r.pointer.low,a=r.pointer.high;if(a+1===e)if(e+1===n){this.ss.eraseElementByIterator(r);const e=r.pointer.high;this.ss.updateKeyByIterator(r,new s(o,e))}else this.ss.updateKeyByIterator(r,new s(o,e));else e+1===n?(this.ss.eraseElementByIterator(r.next()),this.ss.insert(new s(e,i))):this.ss.insert(t)}i(\"free():\"+e)},a.prototype.clear=function(){i(\"clear()\"),this.ss.clear(),this.ss.insert(new s(this.min,this.max))},a.prototype.intervalCount=function(){return this.ss.size()},a.prototype.dump=function(){console.log(\"length:\"+this.ss.size());for(const e of this.ss)console.log(e)},e.exports=a},5:function(e,t){},\"51e9\":function(e,t,r){\"use strict\";const n=r(\"f214\").Duplex,i=r(\"3fb5\"),o=r(\"33013\");function s(e){if(!(this instanceof s))return new s(e);if(\"function\"===typeof e){this._callback=e;const t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on(\"pipe\",(function(e){e.on(\"error\",t)})),this.on(\"unpipe\",(function(e){e.removeListener(\"error\",t)})),e=null}o._init.call(this,e),n.call(this)}i(s,n),Object.assign(s.prototype,o.prototype),s.prototype._new=function(e){return new s(e)},s.prototype._write=function(e,t,r){this._appendBuffer(e),\"function\"===typeof r&&r()},s.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},s.prototype.end=function(e){n.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},s.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e)},s.prototype._isBufferList=function(e){return e instanceof s||e instanceof o||s.isBufferList(e)},s.isBufferList=o.isBufferList,e.exports=s,e.exports.BufferListStream=s,e.exports.BufferList=o},\"53a8\":function(e,t){e.exports=n;var r=Object.prototype.hasOwnProperty;function n(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var i in n)r.call(n,i)&&(e[i]=n[i])}return e}},\"555e\":function(e,t,r){function n(e){function t(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return n.colors[Math.abs(t)%n.colors.length]}function n(e){let t,r,o,s=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),o=i-(t||i);r.diff=o,r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),\"string\"!==typeof e[0]&&e.unshift(\"%O\");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(\"%%\"===t)return\"%\";s++;const o=n.formatters[i];if(\"function\"===typeof o){const n=e[s];t=o.call(r,n),e.splice(s,1),s--}return t}),n.formatArgs.call(r,e);const u=r.log||n.log;u.apply(r,e)}return a.namespace=e,a.useColors=n.useColors(),a.color=n.selectColor(e),a.extend=i,a.destroy=n.destroy,Object.defineProperty(a,\"enabled\",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==n.namespaces&&(r=n.namespaces,o=n.enabled(e)),o),set:e=>{s=e}}),\"function\"===typeof n.init&&n.init(a),a}function i(e,t){const r=n(this.namespace+(\"undefined\"===typeof t?\":\":t)+e);return r.log=this.log,r}function o(e){let t;n.save(e),n.namespaces=e,n.names=[],n.skips=[];const r=(\"string\"===typeof e?e:\"\").split(/[\\s,]+/),i=r.length;for(t=0;t<i;t++)r[t]&&(e=r[t].replace(/\\*/g,\".*?\"),\"-\"===e[0]?n.skips.push(new RegExp(\"^\"+e.slice(1)+\"$\")):n.names.push(new RegExp(\"^\"+e+\"$\")))}function s(){const e=[...n.names.map(u),...n.skips.map(u).map(e=>\"-\"+e)].join(\",\");return n.enable(\"\"),e}function a(e){if(\"*\"===e[e.length-1])return!0;let t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1}function u(e){return e.toString().substring(2,e.toString().length-2).replace(/\\.\\*\\?$/,\"*\")}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\")}return n.debug=n,n.default=n,n.coerce=c,n.disable=s,n.enable=o,n.enabled=a,n.humanize=r(\"29aa\"),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={},n.selectColor=t,n.enable(n.load()),n}e.exports=n},\"566b\":function(e,t,r){var n=r(\"d633\");function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||\"Function wrapped with `once`\";return t.onceError=r+\" shouldn't be called more than once\",t.called=!1,t}e.exports=n(i),e.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,\"once\",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,\"onceStrict\",{value:function(){return o(this)},configurable:!0})}))},5679:function(e,t){var r=1e3,n=60*r,i=60*n,o=24*i,s=7*o,a=365.25*o;function u(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var u=parseFloat(t[1]),c=(t[2]||\"ms\").toLowerCase();switch(c){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return u*a;case\"weeks\":case\"week\":case\"w\":return u*s;case\"days\":case\"day\":case\"d\":return u*o;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return u*i;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return u*n;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return u*r;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return u;default:return}}}}function c(e){var t=Math.abs(e);return t>=o?Math.round(e/o)+\"d\":t>=i?Math.round(e/i)+\"h\":t>=n?Math.round(e/n)+\"m\":t>=r?Math.round(e/r)+\"s\":e+\"ms\"}function l(e){var t=Math.abs(e);return t>=o?h(e,t,o,\"day\"):t>=i?h(e,t,i,\"hour\"):t>=n?h(e,t,n,\"minute\"):t>=r?h(e,t,r,\"second\"):e+\" ms\"}function h(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+\" \"+n+(i?\"s\":\"\")}e.exports=function(e,t){t=t||{};var r=typeof e;if(\"string\"===r&&e.length>0)return u(e);if(\"number\"===r&&isFinite(e))return t.long?l(e):c(e);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(e))}},\"56ac\":function(e,t,r){(function(t,n){var i=r(\"035d\"),o=r(\"ab52\"),s=r(\"3fb5\"),a=r(\"f9c1\"),u=t.from&&t.from!==Uint8Array.from?t.from([0]):new t([0]),c=function(e,t){e._corked?e.once(\"uncork\",t):t()},l=function(e,t){e._autoDestroy&&e.destroy(t)},h=function(e,t){return function(r){r?l(e,\"premature close\"===r.message?null:r):t&&!e._ended&&e.end()}},f=function(e,t){return e?e._writableState&&e._writableState.finished?t():e._writableState?e.end(t):(e.end(),void t()):t()},p=function(){},d=function(e){return new i.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},g=function(e,t,r){if(!(this instanceof g))return new g(e,t,r);i.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||!1!==r.autoDestroy,this._forwardDestroy=!r||!1!==r.destroy,this._forwardEnd=!r||!1!==r.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(g,i.Duplex),g.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new g(e,t,r)},g.prototype.cork=function(){1===++this._corked&&this.emit(\"cork\")},g.prototype.uncork=function(){this._corked&&0===--this._corked&&this.emit(\"uncork\")},g.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed)e&&e.destroy&&e.destroy();else if(null!==e&&!1!==e){var t=this,r=o(e,{writable:!0,readable:!1},h(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()},s=function(){t._writable.removeListener(\"drain\",i),r()};this._unwrite&&n.nextTick(i),this._writable=e,this._writable.on(\"drain\",i),this._unwrite=s,this.uncork()}else this.end()},g.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed)e&&e.destroy&&e.destroy();else{if(null===e||!1===e)return this.push(null),void this.resume();var t=this,r=o(e,{writable:!1,readable:!0},h(this)),n=function(){t._forward()},i=function(){t.push(null)},s=function(){t._readable2.removeListener(\"readable\",n),t._readable2.removeListener(\"end\",i),r()};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:d(e),this._readable2.on(\"readable\",n),this._readable2.on(\"end\",i),this._unread=s,this._forward()}},g.prototype._read=function(){this._drained=!0,this._forward()},g.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var e;this._forwarding=!0;while(this._drained&&null!==(e=a(this._readable2)))this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},g.prototype.destroy=function(e,t){if(t||(t=p),this.destroyed)return t(null);this.destroyed=!0;var r=this;n.nextTick((function(){r._destroy(e),t(null)}))},g.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit(\"error\",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit(\"close\")},g.prototype._write=function(e,t,r){if(!this.destroyed)return this._corked?c(this,this._write.bind(this,e,t,r)):e===u?this._finish(r):this._writable?void(!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()):r()},g.prototype._finish=function(e){var t=this;this.emit(\"preend\"),c(this,(function(){f(t._forwardEnd&&t._writable,(function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit(\"prefinish\"),c(t,e)}))}))},g.prototype.end=function(e,t,r){return\"function\"===typeof e?this.end(null,null,e):\"function\"===typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(u),i.Writable.prototype.end.call(this,r))},e.exports=g}).call(this,r(\"b639\").Buffer,r(\"f28c\"))},6:function(e,t){},6155:function(e,t,r){const n=r(\"4d84\");e.exports.NumberAllocator=n},\"62e4\":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,\"loaded\",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,\"id\",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},\"63f0\":function(e,t,r){\"use strict\";const n=r(\"2fae\"),i=Symbol(\"max\"),o=Symbol(\"length\"),s=Symbol(\"lengthCalculator\"),a=Symbol(\"allowStale\"),u=Symbol(\"maxAge\"),c=Symbol(\"dispose\"),l=Symbol(\"noDisposeOnSet\"),h=Symbol(\"lruList\"),f=Symbol(\"cache\"),p=Symbol(\"updateAgeOnGet\"),d=()=>1;class g{constructor(e){if(\"number\"===typeof e&&(e={max:e}),e||(e={}),e.max&&(\"number\"!==typeof e.max||e.max<0))throw new TypeError(\"max must be a non-negative number\");this[i]=e.max||1/0;const t=e.length||d;if(this[s]=\"function\"!==typeof t?d:t,this[a]=e.stale||!1,e.maxAge&&\"number\"!==typeof e.maxAge)throw new TypeError(\"maxAge must be a number\");this[u]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(\"number\"!==typeof e||e<0)throw new TypeError(\"max must be a non-negative number\");this[i]=e||1/0,m(this)}get max(){return this[i]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if(\"number\"!==typeof e)throw new TypeError(\"maxAge must be a non-negative number\");this[u]=e,m(this)}get maxAge(){return this[u]}set lengthCalculator(e){\"function\"!==typeof e&&(e=d),e!==this[s]&&(this[s]=e,this[o]=0,this[h].forEach(e=>{e.length=this[s](e.value,e.key),this[o]+=e.length})),m(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(e,t){t=t||this;for(let r=this[h].tail;null!==r;){const n=r.prev;_(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[h].head;null!==r;){const n=r.next;_(this,e,r,t),r=n}}keys(){return this[h].toArray().map(e=>e.key)}values(){return this[h].toArray().map(e=>e.value)}reset(){this[c]&&this[h]&&this[h].length&&this[h].forEach(e=>this[c](e.key,e.value)),this[f]=new Map,this[h]=new n,this[o]=0}dump(){return this[h].map(e=>!b(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[h]}set(e,t,r){if(r=r||this[u],r&&\"number\"!==typeof r)throw new TypeError(\"maxAge must be a number\");const n=r?Date.now():0,a=this[s](t,e);if(this[f].has(e)){if(a>this[i])return w(this,this[f].get(e)),!1;const s=this[f].get(e),u=s.value;return this[c]&&(this[l]||this[c](e,u.value)),u.now=n,u.maxAge=r,u.value=t,this[o]+=a-u.length,u.length=a,this.get(e),m(this),!0}const p=new v(e,t,a,n,r);return p.length>this[i]?(this[c]&&this[c](e,t),!1):(this[o]+=p.length,this[h].unshift(p),this[f].set(e,this[h].head),m(this),!0)}has(e){if(!this[f].has(e))return!1;const t=this[f].get(e).value;return!b(this,t)}get(e){return y(this,e,!0)}peek(e){return y(this,e,!1)}pop(){const e=this[h].tail;return e?(w(this,e),e.value):null}del(e){w(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[f].forEach((e,t)=>y(this,t,!1))}}const y=(e,t,r)=>{const n=e[f].get(t);if(n){const t=n.value;if(b(e,t)){if(w(e,n),!e[a])return}else r&&(e[p]&&(n.value.now=Date.now()),e[h].unshiftNode(n));return t.value}},b=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[u]&&r>e[u]},m=e=>{if(e[o]>e[i])for(let t=e[h].tail;e[o]>e[i]&&null!==t;){const r=t.prev;w(e,t),t=r}},w=(e,t)=>{if(t){const r=t.value;e[c]&&e[c](r.key,r.value),e[o]-=r.length,e[f].delete(r.key),e[h].removeNode(t)}};class v{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}const _=(e,t,r,n)=>{let i=r.value;b(e,i)&&(w(e,r),e[a]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=g},\"652a\":function(e,t,r){\"use strict\";var n;function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var o=r(\"fbd7\").codes,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){return e.setHeader&&\"function\"===typeof e.abort}function l(e,t,o,s){s=i(s);var u=!1;e.on(\"close\",(function(){u=!0})),void 0===n&&(n=r(\"d9e1\")),n(e,{readable:t,writable:o},(function(e){if(e)return s(e);u=!0,s()}));var l=!1;return function(t){if(!u&&!l)return l=!0,c(e)?e.abort():\"function\"===typeof e.destroy?e.destroy():void s(t||new a(\"pipe\"))}}function h(e){e()}function f(e,t){return e.pipe(t)}function p(e){return e.length?\"function\"!==typeof e[e.length-1]?u:e.pop():u}function d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=p(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new s(\"streams\");var o=t.map((function(e,r){var s=r<t.length-1,a=r>0;return l(e,s,a,(function(e){n||(n=e),e&&o.forEach(h),s||(o.forEach(h),i(n))}))}));return t.reduce(f)}e.exports=d},\"687e\":function(e,t,r){(function(n){function i(){return!(\"undefined\"===typeof window||!window.process||\"renderer\"!==window.process.type&&!window.process.__nwjs)||(\"undefined\"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/))&&(\"undefined\"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||\"undefined\"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||\"undefined\"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)&&parseInt(RegExp.$1,10)>=31||\"undefined\"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/))}function o(t){if(t[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+t[0]+(this.useColors?\"%c \":\" \")+\"+\"+e.exports.humanize(this.diff),!this.useColors)return;const r=\"color: \"+this.color;t.splice(1,0,r,\"color: inherit\");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{\"%%\"!==e&&(n++,\"%c\"===e&&(i=n))}),t.splice(i,0,r)}function s(e){try{e?t.storage.setItem(\"debug\",e):t.storage.removeItem(\"debug\")}catch(r){}}function a(){let e;try{e=t.storage.getItem(\"debug\")}catch(r){}return!e&&\"undefined\"!==typeof n&&\"env\"in n&&(e=Object({NODE_ENV:\"production\",BASE_URL:\"/\"}).DEBUG),e}function u(){try{return localStorage}catch(e){}}t.formatArgs=o,t.save=s,t.load=a,t.useColors=i,t.storage=u(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\"))}})(),t.colors=[\"#0000CC\",\"#0000FF\",\"#0033CC\",\"#0033FF\",\"#0066CC\",\"#0066FF\",\"#0099CC\",\"#0099FF\",\"#00CC00\",\"#00CC33\",\"#00CC66\",\"#00CC99\",\"#00CCCC\",\"#00CCFF\",\"#3300CC\",\"#3300FF\",\"#3333CC\",\"#3333FF\",\"#3366CC\",\"#3366FF\",\"#3399CC\",\"#3399FF\",\"#33CC00\",\"#33CC33\",\"#33CC66\",\"#33CC99\",\"#33CCCC\",\"#33CCFF\",\"#6600CC\",\"#6600FF\",\"#6633CC\",\"#6633FF\",\"#66CC00\",\"#66CC33\",\"#9900CC\",\"#9900FF\",\"#9933CC\",\"#9933FF\",\"#99CC00\",\"#99CC33\",\"#CC0000\",\"#CC0033\",\"#CC0066\",\"#CC0099\",\"#CC00CC\",\"#CC00FF\",\"#CC3300\",\"#CC3333\",\"#CC3366\",\"#CC3399\",\"#CC33CC\",\"#CC33FF\",\"#CC6600\",\"#CC6633\",\"#CC9900\",\"#CC9933\",\"#CCCC00\",\"#CCCC33\",\"#FF0000\",\"#FF0033\",\"#FF0066\",\"#FF0099\",\"#FF00CC\",\"#FF00FF\",\"#FF3300\",\"#FF3333\",\"#FF3366\",\"#FF3399\",\"#FF33CC\",\"#FF33FF\",\"#FF6600\",\"#FF6633\",\"#FF9900\",\"#FF9933\",\"#FFCC00\",\"#FFCC33\"],t.log=console.debug||console.log||(()=>{}),e.exports=r(\"c15d\")(t);const{formatters:c}=e.exports;c.j=function(e){try{return JSON.stringify(e)}catch(t){return\"[UnexpectedJSONParseError]: \"+t.message}}}).call(this,r(\"f28c\"))},7058:function(e,t,r){\"use strict\";e.exports=i;var n=r(\"3ca2\");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(\"3fb5\")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},7135:function(e,t,r){(function(t){const n=r(\"b289\"),i=t.allocUnsafe(0),o=t.from([0]),s=r(\"f0cb\"),a=r(\"966d\").nextTick,u=r(\"e4fc\")(\"mqtt-packet:writeToStream\"),c=s.cache,l=s.generateNumber,h=s.generateCache,f=s.genBufVariableByteInt,p=s.generate4ByteBuffer;let d=B,g=!0;function y(e,t,r){switch(u(\"generate called\"),t.cork&&(t.cork(),a(b,t)),g&&(g=!1,h()),u(\"generate: packet.cmd: %s\",e.cmd),e.cmd){case\"connect\":return m(e,t,r);case\"connack\":return w(e,t,r);case\"publish\":return v(e,t,r);case\"puback\":case\"pubrec\":case\"pubrel\":case\"pubcomp\":return _(e,t,r);case\"subscribe\":return S(e,t,r);case\"suback\":return E(e,t,r);case\"unsubscribe\":return k(e,t,r);case\"unsuback\":return C(e,t,r);case\"pingreq\":case\"pingresp\":return R(e,t,r);case\"disconnect\":return A(e,t,r);case\"auth\":return T(e,t,r);default:return t.emit(\"error\",new Error(\"Unknown command\")),!1}}function b(e){e.uncork()}function m(e,r,i){const o=e||{},s=o.protocolId||\"MQTT\";let a=o.protocolVersion||4;const u=o.will;let c=o.clean;const l=o.keepalive||0,h=o.clientId||\"\",f=o.username,p=o.password,g=o.properties;void 0===c&&(c=!0);let y=0;if(!s||\"string\"!==typeof s&&!t.isBuffer(s))return r.emit(\"error\",new Error(\"Invalid protocolId\")),!1;if(y+=s.length+2,3!==a&&4!==a&&5!==a)return r.emit(\"error\",new Error(\"Invalid protocol version\")),!1;if(y+=1,(\"string\"===typeof h||t.isBuffer(h))&&(h||a>=4)&&(h||c))y+=t.byteLength(h)+2;else{if(a<4)return r.emit(\"error\",new Error(\"clientId must be supplied before 3.1.1\")),!1;if(1*c===0)return r.emit(\"error\",new Error(\"clientId must be given if cleanSession set to 0\")),!1}if(\"number\"!==typeof l||l<0||l>65535||l%1!==0)return r.emit(\"error\",new Error(\"Invalid keepalive\")),!1;if(y+=2,y+=1,5===a){var b=j(r,g);if(!b)return!1;y+=b.length}if(u){if(\"object\"!==typeof u)return r.emit(\"error\",new Error(\"Invalid will\")),!1;if(!u.topic||\"string\"!==typeof u.topic)return r.emit(\"error\",new Error(\"Invalid will topic\")),!1;if(y+=t.byteLength(u.topic)+2,y+=2,u.payload){if(!(u.payload.length>=0))return r.emit(\"error\",new Error(\"Invalid will payload\")),!1;\"string\"===typeof u.payload?y+=t.byteLength(u.payload):y+=u.payload.length}var m={};if(5===a){if(m=j(r,u.properties),!m)return!1;y+=m.length}}let w=!1;if(null!=f){if(!V(f))return r.emit(\"error\",new Error(\"Invalid username\")),!1;w=!0,y+=t.byteLength(f)+2}if(null!=p){if(!w)return r.emit(\"error\",new Error(\"Username is required to use password\")),!1;if(!V(p))return r.emit(\"error\",new Error(\"Invalid password\")),!1;y+=q(p)+2}r.write(n.CONNECT_HEADER),O(r,y),N(r,s),o.bridgeMode&&(a+=128),r.write(131===a?n.VERSION131:132===a?n.VERSION132:4===a?n.VERSION4:5===a?n.VERSION5:n.VERSION3);let v=0;return v|=null!=f?n.USERNAME_MASK:0,v|=null!=p?n.PASSWORD_MASK:0,v|=u&&u.retain?n.WILL_RETAIN_MASK:0,v|=u&&u.qos?u.qos<<n.WILL_QOS_SHIFT:0,v|=u?n.WILL_FLAG_MASK:0,v|=c?n.CLEAN_SESSION_MASK:0,r.write(t.from([v])),d(r,l),5===a&&b.write(),N(r,h),u&&(5===a&&m.write(),P(r,u.topic),N(r,u.payload)),null!=f&&N(r,f),null!=p&&N(r,p),!0}function w(e,r,i){const s=i?i.protocolVersion:4,a=e||{},u=5===s?a.reasonCode:a.returnCode,c=a.properties;let l=2;if(\"number\"!==typeof u)return r.emit(\"error\",new Error(\"Invalid return code\")),!1;let h=null;if(5===s){if(h=j(r,c),!h)return!1;l+=h.length}return r.write(n.CONNACK_HEADER),O(r,l),r.write(a.sessionPresent?n.SESSIONPRESENT_HEADER:o),r.write(t.from([u])),null!=h&&h.write(),!0}function v(e,r,o){u(\"publish: packet: %o\",e);const s=o?o.protocolVersion:4,a=e||{},c=a.qos||0,l=a.retain?n.RETAIN_MASK:0,h=a.topic,f=a.payload||i,p=a.messageId,g=a.properties;let y=0;if(\"string\"===typeof h)y+=t.byteLength(h)+2;else{if(!t.isBuffer(h))return r.emit(\"error\",new Error(\"Invalid topic\")),!1;y+=h.length+2}if(t.isBuffer(f)?y+=f.length:y+=t.byteLength(f),c&&\"number\"!==typeof p)return r.emit(\"error\",new Error(\"Invalid messageId\")),!1;c&&(y+=2);let b=null;if(5===s){if(b=j(r,g),!b)return!1;y+=b.length}return r.write(n.PUBLISH_HEADER[c][a.dup?1:0][l?1:0]),O(r,y),d(r,q(h)),r.write(h),c>0&&d(r,p),null!=b&&b.write(),u(\"publish: payload: %o\",f),r.write(f)}function _(e,r,i){const o=i?i.protocolVersion:4,s=e||{},a=s.cmd||\"puback\",u=s.messageId,c=s.dup&&\"pubrel\"===a?n.DUP_MASK:0;let l=0;const h=s.reasonCode,f=s.properties;let p=5===o?3:2;if(\"pubrel\"===a&&(l=1),\"number\"!==typeof u)return r.emit(\"error\",new Error(\"Invalid messageId\")),!1;let g=null;if(5===o&&\"object\"===typeof f){if(g=F(r,f,i,p),!g)return!1;p+=g.length}return r.write(n.ACKS[a][l][c][0]),O(r,p),d(r,u),5===o&&r.write(t.from([h])),null!==g&&g.write(),!0}function S(e,r,i){u(\"subscribe: packet: \");const o=i?i.protocolVersion:4,s=e||{},a=s.dup?n.DUP_MASK:0,c=s.messageId,l=s.subscriptions,h=s.properties;let f=0;if(\"number\"!==typeof c)return r.emit(\"error\",new Error(\"Invalid messageId\")),!1;f+=2;let p=null;if(5===o){if(p=j(r,h),!p)return!1;f+=p.length}if(\"object\"!==typeof l||!l.length)return r.emit(\"error\",new Error(\"Invalid subscriptions\")),!1;for(let n=0;n<l.length;n+=1){const e=l[n].topic,i=l[n].qos;if(\"string\"!==typeof e)return r.emit(\"error\",new Error(\"Invalid subscriptions - invalid topic\")),!1;if(\"number\"!==typeof i)return r.emit(\"error\",new Error(\"Invalid subscriptions - invalid qos\")),!1;if(5===o){const e=l[n].nl||!1;if(\"boolean\"!==typeof e)return r.emit(\"error\",new Error(\"Invalid subscriptions - invalid No Local\")),!1;const t=l[n].rap||!1;if(\"boolean\"!==typeof t)return r.emit(\"error\",new Error(\"Invalid subscriptions - invalid Retain as Published\")),!1;const i=l[n].rh||0;if(\"number\"!==typeof i||i>2)return r.emit(\"error\",new Error(\"Invalid subscriptions - invalid Retain Handling\")),!1}f+=t.byteLength(e)+2+1}u(\"subscribe: writing to stream: %o\",n.SUBSCRIBE_HEADER),r.write(n.SUBSCRIBE_HEADER[1][a?1:0][0]),O(r,f),d(r,c),null!==p&&p.write();let g=!0;for(const u of l){const e=u.topic,i=u.qos,s=+u.nl,a=+u.rap,c=u.rh;let l;P(r,e),l=n.SUBSCRIBE_OPTIONS_QOS[i],5===o&&(l|=s?n.SUBSCRIBE_OPTIONS_NL:0,l|=a?n.SUBSCRIBE_OPTIONS_RAP:0,l|=c?n.SUBSCRIBE_OPTIONS_RH[c]:0),g=r.write(t.from([l]))}return g}function E(e,r,i){const o=i?i.protocolVersion:4,s=e||{},a=s.messageId,u=s.granted,c=s.properties;let l=0;if(\"number\"!==typeof a)return r.emit(\"error\",new Error(\"Invalid messageId\")),!1;if(l+=2,\"object\"!==typeof u||!u.length)return r.emit(\"error\",new Error(\"Invalid qos vector\")),!1;for(let t=0;t<u.length;t+=1){if(\"number\"!==typeof u[t])return r.emit(\"error\",new Error(\"Invalid qos vector\")),!1;l+=1}let h=null;if(5===o){if(h=F(r,c,i,l),!h)return!1;l+=h.length}return r.write(n.SUBACK_HEADER),O(r,l),d(r,a),null!==h&&h.write(),r.write(t.from(u))}function k(e,r,i){const o=i?i.protocolVersion:4,s=e||{},a=s.messageId,u=s.dup?n.DUP_MASK:0,c=s.unsubscriptions,l=s.properties;let h=0;if(\"number\"!==typeof a)return r.emit(\"error\",new Error(\"Invalid messageId\")),!1;if(h+=2,\"object\"!==typeof c||!c.length)return r.emit(\"error\",new Error(\"Invalid unsubscriptions\")),!1;for(let n=0;n<c.length;n+=1){if(\"string\"!==typeof c[n])return r.emit(\"error\",new Error(\"Invalid unsubscriptions\")),!1;h+=t.byteLength(c[n])+2}let f=null;if(5===o){if(f=j(r,l),!f)return!1;h+=f.length}r.write(n.UNSUBSCRIBE_HEADER[1][u?1:0][0]),O(r,h),d(r,a),null!==f&&f.write();let p=!0;for(let t=0;t<c.length;t++)p=P(r,c[t]);return p}function C(e,r,i){const o=i?i.protocolVersion:4,s=e||{},a=s.messageId,u=s.dup?n.DUP_MASK:0,c=s.granted,l=s.properties,h=s.cmd,f=0;let p=2;if(\"number\"!==typeof a)return r.emit(\"error\",new Error(\"Invalid messageId\")),!1;if(5===o){if(\"object\"!==typeof c||!c.length)return r.emit(\"error\",new Error(\"Invalid qos vector\")),!1;for(let e=0;e<c.length;e+=1){if(\"number\"!==typeof c[e])return r.emit(\"error\",new Error(\"Invalid qos vector\")),!1;p+=1}}let g=null;if(5===o){if(g=F(r,l,i,p),!g)return!1;p+=g.length}return r.write(n.ACKS[h][f][u][0]),O(r,p),d(r,a),null!==g&&g.write(),5===o&&r.write(t.from(c)),!0}function R(e,t,r){return t.write(n.EMPTY[e.cmd])}function A(e,r,i){const o=i?i.protocolVersion:4,s=e||{},a=s.reasonCode,u=s.properties;let c=5===o?1:0,l=null;if(5===o){if(l=F(r,u,i,c),!l)return!1;c+=l.length}return r.write(t.from([n.codes.disconnect<<4])),O(r,c),5===o&&r.write(t.from([a])),null!==l&&l.write(),!0}function T(e,r,i){const o=i?i.protocolVersion:4,s=e||{},a=s.reasonCode,u=s.properties;let c=5===o?1:0;5!==o&&r.emit(\"error\",new Error(\"Invalid mqtt version for auth packet\"));const l=F(r,u,i,c);return!!l&&(c+=l.length,r.write(t.from([n.codes.auth<<4])),O(r,c),r.write(t.from([a])),null!==l&&l.write(),!0)}Object.defineProperty(y,\"cacheNumbers\",{get(){return d===B},set(e){e?(c&&0!==Object.keys(c).length||(g=!0),d=B):(g=!1,d=M)}});const x={};function O(e,t){if(t>n.VARBYTEINT_MAX)return e.emit(\"error\",new Error(\"Invalid variable byte integer: \"+t)),!1;let r=x[t];return r||(r=f(t),t<16384&&(x[t]=r)),u(\"writeVarByteInt: writing to stream: %o\",r),e.write(r)}function P(e,r){const n=t.byteLength(r);return d(e,n),u(\"writeString: %s\",r),e.write(r,\"utf8\")}function I(e,t,r){P(e,t),P(e,r)}function B(e,t){return u(\"writeNumberCached: number: %d\",t),u(\"writeNumberCached: %o\",c[t]),e.write(c[t])}function M(e,t){const r=l(t);return u(\"writeNumberGenerated: %o\",r),e.write(r)}function L(e,t){const r=p(t);return u(\"write4ByteNumber: %o\",r),e.write(r)}function N(e,t){\"string\"===typeof t?P(e,t):t?(d(e,t.length),e.write(t)):d(e,0)}function j(e,r){if(\"object\"!==typeof r||null!=r.length)return{length:1,write(){D(e,{},0)}};let i=0;function o(r,i){const o=n.propertiesTypes[r];let s=0;switch(o){case\"byte\":if(\"boolean\"!==typeof i)return e.emit(\"error\",new Error(`Invalid ${r}: ${i}`)),!1;s+=2;break;case\"int8\":if(\"number\"!==typeof i||i<0||i>255)return e.emit(\"error\",new Error(`Invalid ${r}: ${i}`)),!1;s+=2;break;case\"binary\":if(i&&null===i)return e.emit(\"error\",new Error(`Invalid ${r}: ${i}`)),!1;s+=1+t.byteLength(i)+2;break;case\"int16\":if(\"number\"!==typeof i||i<0||i>65535)return e.emit(\"error\",new Error(`Invalid ${r}: ${i}`)),!1;s+=3;break;case\"int32\":if(\"number\"!==typeof i||i<0||i>4294967295)return e.emit(\"error\",new Error(`Invalid ${r}: ${i}`)),!1;s+=5;break;case\"var\":if(\"number\"!==typeof i||i<0||i>268435455)return e.emit(\"error\",new Error(`Invalid ${r}: ${i}`)),!1;s+=1+t.byteLength(f(i));break;case\"string\":if(\"string\"!==typeof i)return e.emit(\"error\",new Error(`Invalid ${r}: ${i}`)),!1;s+=3+t.byteLength(i.toString());break;case\"pair\":if(\"object\"!==typeof i)return e.emit(\"error\",new Error(`Invalid ${r}: ${i}`)),!1;s+=Object.getOwnPropertyNames(i).reduce((e,r)=>{const n=i[r];return Array.isArray(n)?e+=n.reduce((e,n)=>(e+=3+t.byteLength(r.toString())+2+t.byteLength(n.toString()),e),0):e+=3+t.byteLength(r.toString())+2+t.byteLength(i[r].toString()),e},0);break;default:return e.emit(\"error\",new Error(`Invalid property ${r}: ${i}`)),!1}return s}if(r)for(const t in r){let e=0,n=0;const s=r[t];if(Array.isArray(s))for(let r=0;r<s.length;r++){if(n=o(t,s[r]),!n)return!1;e+=n}else{if(n=o(t,s),!n)return!1;e=n}if(!e)return!1;i+=e}const s=t.byteLength(f(i));return{length:s+i,write(){D(e,r,i)}}}function F(e,t,r,n){const i=[\"reasonString\",\"userProperties\"],o=r&&r.properties&&r.properties.maximumPacketSize?r.properties.maximumPacketSize:0;let s=j(e,t);if(o)while(n+s.length>o){const r=i.shift();if(!r||!t[r])return!1;delete t[r],s=j(e,t)}return s}function U(e,r,i){const o=n.propertiesTypes[r];switch(o){case\"byte\":e.write(t.from([n.properties[r]])),e.write(t.from([+i]));break;case\"int8\":e.write(t.from([n.properties[r]])),e.write(t.from([i]));break;case\"binary\":e.write(t.from([n.properties[r]])),N(e,i);break;case\"int16\":e.write(t.from([n.properties[r]])),d(e,i);break;case\"int32\":e.write(t.from([n.properties[r]])),L(e,i);break;case\"var\":e.write(t.from([n.properties[r]])),O(e,i);break;case\"string\":e.write(t.from([n.properties[r]])),P(e,i);break;case\"pair\":Object.getOwnPropertyNames(i).forEach(o=>{const s=i[o];Array.isArray(s)?s.forEach(i=>{e.write(t.from([n.properties[r]])),I(e,o.toString(),i.toString())}):(e.write(t.from([n.properties[r]])),I(e,o.toString(),s.toString()))});break;default:return e.emit(\"error\",new Error(`Invalid property ${r} value: ${i}`)),!1}}function D(e,t,r){O(e,r);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&null!==t[n]){const r=t[n];if(Array.isArray(r))for(let t=0;t<r.length;t++)U(e,n,r[t]);else U(e,n,r)}}function q(e){return e?e instanceof t?e.length:t.byteLength(e):0}function V(e){return\"string\"===typeof e||e instanceof t}e.exports=y}).call(this,r(\"b639\").Buffer)},\"782c\":function(e,t,r){\"use strict\";(function(t){var n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(\"bf09\"),s=Symbol(\"lastResolve\"),a=Symbol(\"lastReject\"),u=Symbol(\"error\"),c=Symbol(\"ended\"),l=Symbol(\"lastPromise\"),h=Symbol(\"handlePromise\"),f=Symbol(\"stream\");function p(e,t){return{value:e,done:t}}function d(e){var t=e[s];if(null!==t){var r=e[f].read();null!==r&&(e[l]=null,e[s]=null,e[a]=null,t(p(r,!1)))}}function g(e){t.nextTick(d,e)}function y(e,t){return function(r,n){e.then((function(){t[c]?r(p(void 0,!0)):t[h](r,n)}),n)}}var b=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((n={get stream(){return this[f]},next:function(){var e=this,r=this[u];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(p(void 0,!0))}))}));var n,i=this[l];if(i)n=new Promise(y(i,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(p(o,!1));n=new Promise(this[h])}return this[l]=n,n}},i(n,Symbol.asyncIterator,(function(){return this})),i(n,\"return\",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),b),w=function(e){var t,r=Object.create(m,(t={},i(t,f,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var n=r[f].read();n?(r[l]=null,r[s]=null,r[a]=null,e(p(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[l]=null,o(e,(function(e){if(e&&\"ERR_STREAM_PREMATURE_CLOSE\"!==e.code){var t=r[a];return null!==t&&(r[l]=null,r[s]=null,r[a]=null,t(e)),void(r[u]=e)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[a]=null,n(p(void 0,!0))),r[c]=!0})),e.on(\"readable\",g.bind(null,r)),r};e.exports=w}).call(this,r(\"f28c\"))},\"7d72\":function(e,t,r){\"use strict\";var n=r(\"8707\").Buffer,i=n.isEncoding||function(e){switch(e=\"\"+e,e&&e.toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":case\"raw\":return!0;default:return!1}};function o(e){if(!e)return\"utf8\";var t;while(1)switch(e){case\"utf8\":case\"utf-8\":return\"utf8\";case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return\"utf16le\";case\"latin1\":case\"binary\":return\"latin1\";case\"base64\":case\"ascii\":case\"hex\":return e;default:if(t)return;e=(\"\"+e).toLowerCase(),t=!0}}function s(e){var t=o(e);if(\"string\"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error(\"Unknown encoding: \"+e);return t||e}function a(e){var t;switch(this.encoding=s(e),this.encoding){case\"utf16le\":this.text=d,this.end=g,t=4;break;case\"utf8\":this.fillLast=h,t=4;break;case\"base64\":this.text=y,this.end=b,t=3;break;default:return this.write=m,void(this.end=w)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=u(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=u(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=u(t[n]),i>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function l(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,\"<22>\";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,\"<22>\";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,\"<22>\"}}function h(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function f(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString(\"utf8\",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString(\"utf8\",t,n)}function p(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+\"<22>\":t}function d(e,t){if((e.length-t)%2===0){var r=e.toString(\"utf16le\",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(\"utf16le\",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):\"\";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(\"utf16le\",0,r)}return t}function y(e,t){var r=(e.length-t)%3;return 0===r?e.toString(\"base64\",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(\"base64\",t,e.length-r))}function b(e){var t=e&&e.length?this.write(e):\"\";return this.lastNeed?t+this.lastChar.toString(\"base64\",0,3-this.lastNeed):t}function m(e){return e.toString(this.encoding)}function w(e){return e&&e.length?this.write(e):\"\"}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return\"\";var t,r;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return\"\";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||\"\"},a.prototype.end=p,a.prototype.text=f,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},\"7f0f\":function(e,t,r){(function(t){const n=r(\"7135\"),i=r(\"faa1\");function o(e,t){const r=new s;return n(e,r,t),r.concat()}class s extends i{constructor(){super(),this._array=new Array(20),this._i=0}write(e){return this._array[this._i++]=e,!0}concat(){let e=0;const r=new Array(this._array.length),n=this._array;let i,o=0;for(i=0;i<n.length&&void 0!==n[i];i++)\"string\"!==typeof n[i]?r[i]=n[i].length:r[i]=t.byteLength(n[i]),e+=r[i];const s=t.allocUnsafe(e);for(i=0;i<n.length&&void 0!==n[i];i++)\"string\"!==typeof n[i]?(n[i].copy(s,o),o+=r[i]):(s.write(n[i],o),o+=r[i]);return s}}e.exports=o}).call(this,r(\"b639\").Buffer)},8311:function(e,t,r){\"use strict\";const{Buffer:n}=r(\"b639\"),i=r(\"035d\").Transform,o=r(\"56ac\");let s,a,u;function c(){const e=new i;return e._write=function(e,t,r){s.send({data:e.buffer,success:function(){r()},fail:function(e){r(new Error(e))}})},e._flush=function(e){s.close({success:function(){e()}})},e}function l(e){e.hostname||(e.hostname=\"localhost\"),e.path||(e.path=\"/\"),e.wsOptions||(e.wsOptions={})}function h(e,t){const r=\"wxs\"===e.protocol?\"wss\":\"ws\";let n=r+\"://\"+e.hostname+e.path;return e.port&&80!==e.port&&443!==e.port&&(n=r+\"://\"+e.hostname+\":\"+e.port+e.path),\"function\"===typeof e.transformWsUrl&&(n=e.transformWsUrl(n,e,t)),n}function f(){s.onOpen((function(){u.setReadable(a),u.setWritable(a),u.emit(\"connect\")})),s.onMessage((function(e){let t=e.data;t=t instanceof ArrayBuffer?n.from(t):n.from(t,\"utf8\"),a.push(t)})),s.onClose((function(){u.end(),u.destroy()})),s.onError((function(e){u.destroy(new Error(e.errMsg))}))}function p(e,t){if(t.hostname=t.hostname||t.host,!t.hostname)throw new Error(\"Could not determine host. Specify host manually.\");const r=\"MQIsdp\"===t.protocolId&&3===t.protocolVersion?\"mqttv3.1\":\"mqtt\";l(t);const n=h(t,e);s=wx.connectSocket({url:n,protocols:[r]}),a=c(),u=o.obj(),u._destroy=function(e,t){s.close({success:function(){t&&t(e)}})};const i=u.destroy;return u.destroy=function(){u.destroy=i;const e=this;setTimeout((function(){s.close({fail:function(){e._destroy(new Error)}})}),0)}.bind(u),f(),u}e.exports=p},\"85f8\":function(e,t,r){\"use strict\";(function(t,n){var i;e.exports=x,x.ReadableState=T;r(\"faa1\").EventEmitter;var o=function(e,t){return e.listeners(t).length},s=r(\"9ede\"),a=r(\"b639\").Buffer,u=t.Uint8Array||function(){};function c(e){return a.from(e)}function l(e){return a.isBuffer(e)||e instanceof u}var h,f=r(2);h=f&&f.debuglog?f.debuglog(\"stream\"):function(){};var p,d,g,y=r(\"f688\"),b=r(\"edb3\"),m=r(\"31b5\"),w=m.getHighWaterMark,v=r(\"fbd7\").codes,_=v.ERR_INVALID_ARG_TYPE,S=v.ERR_STREAM_PUSH_AFTER_EOF,E=v.ERR_METHOD_NOT_IMPLEMENTED,k=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(\"3fb5\")(x,s);var C=b.errorOrDestroy,R=[\"error\",\"close\",\"destroy\",\"pause\",\"resume\"];function A(e,t,r){if(\"function\"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function T(e,t,n){i=i||r(\"be3f\"),e=e||{},\"boolean\"!==typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=w(this,e,\"readableHighWaterMark\",n),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(\"7d72\").StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function x(e){if(i=i||r(\"be3f\"),!(this instanceof x))return new x(e);var t=this instanceof i;this._readableState=new T(e,this,t),this.readable=!0,e&&(\"function\"===typeof e.read&&(this._read=e.read),\"function\"===typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function O(e,t,r,n,i){h(\"readableAddChunk\",t);var o,s=e._readableState;if(null===t)s.reading=!1,N(e,s);else if(i||(o=I(s,t)),o)C(e,o);else if(s.objectMode||t&&t.length>0)if(\"string\"===typeof t||s.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=c(t)),n)s.endEmitted?C(e,new k):P(e,s,t,!0);else if(s.ended)C(e,new S);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?P(e,s,t,!1):U(e,s)):P(e,s,t,!1)}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function P(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit(\"data\",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),U(e,t)}function I(e,t){var r;return l(t)||\"string\"===typeof t||void 0===t||e.objectMode||(r=new _(\"chunk\",[\"string\",\"Buffer\",\"Uint8Array\"],t)),r}Object.defineProperty(x.prototype,\"destroyed\",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=b.destroy,x.prototype._undestroy=b.undestroy,x.prototype._destroy=function(e,t){t(e)},x.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:\"string\"===typeof e&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=\"\"),r=!0),O(this,e,t,!1,r)},x.prototype.unshift=function(e){return O(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(e){p||(p=r(\"7d72\").StringDecoder);var t=new p(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var n=this._readableState.buffer.head,i=\"\";while(null!==n)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),\"\"!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var B=1073741824;function M(e){return e>=B?e=B:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function L(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=M(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function N(e,t){if(h(\"onEofChunk\"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function j(e){var t=e._readableState;h(\"emitReadable\",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(h(\"emitReadable\",t.flowing),t.emittedReadable=!0,n.nextTick(F,e))}function F(e){var t=e._readableState;h(\"emitReadable_\",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit(\"readable\"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,H(e)}function U(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(D,e,t))}function D(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length)){var r=t.length;if(h(\"maybeReadMore read 0\"),e.read(0),r===t.length)break}t.readingMore=!1}function q(e){return function(){var t=e._readableState;h(\"pipeOnDrain\",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,\"data\")&&(t.flowing=!0,H(e))}}function V(e){var t=e._readableState;t.readableListening=e.listenerCount(\"readable\")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(\"data\")>0&&e.resume()}function W(e){h(\"readable nexttick read 0\"),e.read(0)}function z(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(K,e,t))}function K(e,t){h(\"resume\",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(\"resume\"),H(e),t.flowing&&!t.reading&&e.read(0)}function H(e){var t=e._readableState;h(\"flow\",t.flowing);while(t.flowing&&null!==e.read());}function Q(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(\"\"):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function Y(e){var t=e._readableState;h(\"endReadable\",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick($,t,e))}function $(e,t){if(h(\"endReadableNT\",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit(\"end\"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function G(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}x.prototype.read=function(e){h(\"read\",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return h(\"read: emitReadable\",t.length,t.ended),0===t.length&&t.ended?Y(this):j(this),null;if(e=L(e,t),0===e&&t.ended)return 0===t.length&&Y(this),null;var n,i=t.needReadable;return h(\"need readable\",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,h(\"length less than watermark\",i)),t.ended||t.reading?(i=!1,h(\"reading or ended\",i)):i&&(h(\"do read\"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=L(r,t))),n=e>0?Q(e,t):null,null===n?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Y(this)),null!==n&&this.emit(\"data\",n),n},x.prototype._read=function(e){C(this,new E(\"_read()\"))},x.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,h(\"pipe count=%d opts=%j\",i.pipesCount,t);var s=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr,a=s?c:m;function u(e,t){h(\"onunpipe\"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function c(){h(\"onend\"),e.end()}i.endEmitted?n.nextTick(a):r.once(\"end\",a),e.on(\"unpipe\",u);var l=q(r);e.on(\"drain\",l);var f=!1;function p(){h(\"cleanup\"),e.removeListener(\"close\",y),e.removeListener(\"finish\",b),e.removeListener(\"drain\",l),e.removeListener(\"error\",g),e.removeListener(\"unpipe\",u),r.removeListener(\"end\",c),r.removeListener(\"end\",m),r.removeListener(\"data\",d),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}function d(t){h(\"ondata\");var n=e.write(t);h(\"dest.write\",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==G(i.pipes,e))&&!f&&(h(\"false write response, pause\",i.awaitDrain),i.awaitDrain++),r.pause())}function g(t){h(\"onerror\",t),m(),e.removeListener(\"error\",g),0===o(e,\"error\")&&C(e,t)}function y(){e.removeListener(\"finish\",b),m()}function b(){h(\"onfinish\"),e.removeListener(\"close\",y),m()}function m(){h(\"unpipe\"),r.unpipe(e)}return r.on(\"data\",d),A(e,\"error\",g),e.once(\"close\",y),e.once(\"finish\",b),e.emit(\"pipe\",r),i.flowing||(h(\"pipe resume\"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(\"unpipe\",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit(\"unpipe\",this,{hasUnpiped:!1});return this}var s=G(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit(\"unpipe\",this,r)),this},x.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),i=this._readableState;return\"data\"===e?(i.readableListening=this.listenerCount(\"readable\")>0,!1!==i.flowing&&this.resume()):\"readable\"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,h(\"on readable\",i.length,i.reading),i.length?j(this):i.reading||n.nextTick(W,this))),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return\"readable\"===e&&n.nextTick(V,this),r},x.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return\"readable\"!==e&&void 0!==e||n.nextTick(V,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(h(\"resume\"),e.flowing=!e.readableListening,z(this,e)),e.paused=!1,this},x.prototype.pause=function(){return h(\"call pause flowing=%j\",this._readableState.flowing),!1!==this._readableState.flowing&&(h(\"pause\"),this._readableState.flowing=!1,this.emit(\"pause\")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on(\"end\",(function(){if(h(\"wrapped end\"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on(\"data\",(function(i){if(h(\"wrapped data\"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)){var o=t.push(i);o||(n=!0,e.pause())}})),e)void 0===this[i]&&\"function\"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<R.length;o++)e.on(R[o],this.emit.bind(this,R[o]));return this._read=function(t){h(\"wrapped _read\",t),n&&(n=!1,e.resume())},this},\"function\"===typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(\"34e3\")),d(this)}),Object.defineProperty(x.prototype,\"readableHighWaterMark\",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,\"readableBuffer\",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,\"readableFlowing\",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),x._fromList=Q,Object.defineProperty(x.prototype,\"readableLength\",{enumerable:!1,get:function(){return this._readableState.length}}),\"function\"===typeof Symbol&&(x.from=function(e,t){return void 0===g&&(g=r(\"2527\")),g(x,e,t)})}).call(this,r(\"c8ba\"),r(\"f28c\"))},\"86c6\":function(e,t,r){\"use strict\";var n=r(\"9bfc\").codes.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var s=i(t,o,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){var a=o?r:\"highWaterMark\";throw new n(a,s)}return Math.floor(s)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},8707:function(e,t,r){var n=r(\"b639\"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),o(i,s),s.from=function(e,t,r){if(\"number\"===typeof e)throw new TypeError(\"Argument must not be a number\");return i(e,t,r)},s.alloc=function(e,t,r){if(\"number\"!==typeof e)throw new TypeError(\"Argument must be a number\");var n=i(e);return void 0!==t?\"string\"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if(\"number\"!==typeof e)throw new TypeError(\"Argument must be a number\");return i(e)},s.allocUnsafeSlow=function(e){if(\"number\"!==typeof e)throw new TypeError(\"Argument must be a number\");return n.SlowBuffer(e)}},9152:function(e,t){t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,h=r?i-1:0,f=r?-1:1,p=e[t+h];for(h+=f,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+e[t+h],h+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+h],h+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=c}return(p?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,h=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),t+=s+h>=1?f/u:f*Math.pow(2,1-h),t*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(t*u-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[r+p]=255&s,p+=d,s/=256,c-=8);e[r+p-d]|=128*g}},\"91dd\":function(e,t,r){\"use strict\";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||\"&\",r=r||\"=\";var s={};if(\"string\"!==typeof e||0===e.length)return s;var a=/\\+/g;e=e.split(t);var u=1e3;o&&\"number\"===typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var h,f,p,d,g=e[l].replace(a,\"%20\"),y=g.indexOf(r);y>=0?(h=g.substr(0,y),f=g.substr(y+1)):(h=g,f=\"\"),p=decodeURIComponent(h),d=decodeURIComponent(f),n(s,p)?i(s[p])?s[p].push(d):s[p]=[s[p],d]:s[p]=d}return s};var i=Array.isArray||function(e){return\"[object Array]\"===Object.prototype.toString.call(e)}},\"966d\":function(e,t,r){\"use strict\";(function(t){function r(e,r,n,i){if(\"function\"!==typeof e)throw new TypeError('\"callback\" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,i)}));default:o=new Array(a-1),s=0;while(s<o.length)o[s++]=arguments[s];return t.nextTick((function(){e.apply(null,o)}))}}\"undefined\"===typeof t||!t.version||0===t.version.indexOf(\"v0.\")||0===t.version.indexOf(\"v1.\")&&0!==t.version.indexOf(\"v1.8.\")?e.exports={nextTick:r}:e.exports=t}).call(this,r(\"f28c\"))},\"9bfc\":function(e,t,r){\"use strict\";function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var i={};function o(e,t,r){function o(e,r,n){return\"string\"===typeof t?t:t(e,r,n)}r||(r=Error);var s=function(e){function t(t,r,n){return e.call(this,o(t,r,n))||this}return n(t,e),t}(r);s.prototype.name=r.name,s.prototype.code=e,i[e]=s}function s(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?\"one of \".concat(t,\" \").concat(e.slice(0,r-1).join(\", \"),\", or \")+e[r-1]:2===r?\"one of \".concat(t,\" \").concat(e[0],\" or \").concat(e[1]):\"of \".concat(t,\" \").concat(e[0])}return\"of \".concat(t,\" \").concat(String(e))}function a(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function u(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function c(e,t,r){return\"number\"!==typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}o(\"ERR_INVALID_OPT_VALUE\",(function(e,t){return'The value \"'+t+'\" is invalid for option \"'+e+'\"'}),TypeError),o(\"ERR_INVALID_ARG_TYPE\",(function(e,t,r){var n,i;if(\"string\"===typeof t&&a(t,\"not \")?(n=\"must not be\",t=t.replace(/^not /,\"\")):n=\"must be\",u(e,\" argument\"))i=\"The \".concat(e,\" \").concat(n,\" \").concat(s(t,\"type\"));else{var o=c(e,\".\")?\"property\":\"argument\";i='The \"'.concat(e,'\" ').concat(o,\" \").concat(n,\" \").concat(s(t,\"type\"))}return i+=\". Received type \".concat(typeof r),i}),TypeError),o(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\"),o(\"ERR_METHOD_NOT_IMPLEMENTED\",(function(e){return\"The \"+e+\" method is not implemented\"})),o(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\"),o(\"ERR_STREAM_DESTROYED\",(function(e){return\"Cannot call \"+e+\" after a stream was destroyed\"})),o(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\"),o(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\"),o(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\"),o(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError),o(\"ERR_UNKNOWN_ENCODING\",(function(e){return\"Unknown encoding: \"+e}),TypeError),o(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\"),e.exports.codes=i},\"9d37\":function(e,t,r){\"use strict\";e.exports=i;var n=r(\"fe34\");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(\"3fb5\")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},\"9ede\":function(e,t,r){e.exports=r(\"faa1\").EventEmitter},a43f:function(e,t,r){\"use strict\";const n=r(\"63f0\"),i=r(\"6155\").NumberAllocator;function o(e){if(!(this instanceof o))return new o(e);e>0&&(this.aliasToTopic=new n({max:e}),this.topicToAlias={},this.numberAllocator=new i(1,e),this.max=e,this.length=0)}o.prototype.put=function(e,t){if(0===t||t>this.max)return!1;const r=this.aliasToTopic.get(t);return r&&delete this.topicToAlias[r],this.aliasToTopic.set(t,e),this.topicToAlias[e]=t,this.numberAllocator.use(t),this.length=this.aliasToTopic.length,!0},o.prototype.getTopicByAlias=function(e){return this.aliasToTopic.get(e)},o.prototype.getAliasByTopic=function(e){const t=this.topicToAlias[e];return\"undefined\"!==typeof t&&this.aliasToTopic.get(t),t},o.prototype.clear=function(){this.aliasToTopic.reset(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0},o.prototype.getLruAlias=function(){const e=this.numberAllocator.firstVacant();return e||this.aliasToTopic.keys()[this.aliasToTopic.length-1]},e.exports=o},a493:function(e,t,r){\"use strict\";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var i=r(\"0e8b\"),o=r(\"f6ba\");r(\"3fb5\")(c,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var u=s[a];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once(\"end\",l)))}function l(){this._writableState.ended||t.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,\"destroyed\",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,r(\"f28c\"))},a50f:function(e,t){e.exports=function(){throw new Error(\"Readable.from is not available in the browser\")}},a7c9:function(e,t){class r{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}}e.exports=r},a9b9:function(e,t,r){\"use strict\";e.exports=function(){throw new Error(\"ws does not work in the browser. Browser clients must use the native WebSocket object\")}},ab52:function(e,t,r){(function(t){var n=r(\"566b\"),i=function(){},o=function(e){return e.setHeader&&\"function\"===typeof e.abort},s=function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length},a=function(e,r,u){if(\"function\"===typeof r)return a(e,null,r);r||(r={}),u=n(u||i);var c=e._writableState,l=e._readableState,h=r.readable||!1!==r.readable&&e.readable,f=r.writable||!1!==r.writable&&e.writable,p=!1,d=function(){e.writable||g()},g=function(){f=!1,h||u.call(e)},y=function(){h=!1,f||u.call(e)},b=function(t){u.call(e,t?new Error(\"exited with error code: \"+t):null)},m=function(t){u.call(e,t)},w=function(){t.nextTick(v)},v=function(){if(!p)return(!h||l&&l.ended&&!l.destroyed)&&(!f||c&&c.ended&&!c.destroyed)?void 0:u.call(e,new Error(\"premature close\"))},_=function(){e.req.on(\"finish\",g)};return o(e)?(e.on(\"complete\",g),e.on(\"abort\",w),e.req?_():e.on(\"request\",_)):f&&!c&&(e.on(\"end\",d),e.on(\"close\",d)),s(e)&&e.on(\"exit\",b),e.on(\"end\",y),e.on(\"finish\",g),!1!==r.error&&e.on(\"error\",m),e.on(\"close\",w),function(){p=!0,e.removeListener(\"complete\",g),e.removeListener(\"abort\",w),e.removeListener(\"request\",_),e.req&&e.req.removeListener(\"finish\",g),e.removeListener(\"end\",d),e.removeListener(\"close\",d),e.removeListener(\"finish\",g),e.removeListener(\"exit\",b),e.removeListener(\"end\",y),e.removeListener(\"error\",m),e.removeListener(\"close\",w)}};e.exports=a}).call(this,r(\"f28c\"))},adaa:function(e,t){var r=1e3,n=60*r,i=60*n,o=24*i,s=7*o,a=365.25*o;function u(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var u=parseFloat(t[1]),c=(t[2]||\"ms\").toLowerCase();switch(c){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return u*a;case\"weeks\":case\"week\":case\"w\":return u*s;case\"days\":case\"day\":case\"d\":return u*o;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return u*i;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return u*n;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return u*r;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return u;default:return}}}}function c(e){var t=Math.abs(e);return t>=o?Math.round(e/o)+\"d\":t>=i?Math.round(e/i)+\"h\":t>=n?Math.round(e/n)+\"m\":t>=r?Math.round(e/r)+\"s\":e+\"ms\"}function l(e){var t=Math.abs(e);return t>=o?h(e,t,o,\"day\"):t>=i?h(e,t,i,\"hour\"):t>=n?h(e,t,n,\"minute\"):t>=r?h(e,t,r,\"second\"):e+\" ms\"}function h(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+\" \"+n+(i?\"s\":\"\")}e.exports=function(e,t){t=t||{};var r=typeof e;if(\"string\"===r&&e.length>0)return u(e);if(\"number\"===r&&isFinite(e))return t.long?l(e):c(e);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(e))}},ae84:function(e,t,r){\"use strict\";function n(e){const t=e.split(\"/\");for(let r=0;r<t.length;r++)if(\"+\"!==t[r]){if(\"#\"===t[r])return r===t.length-1;if(-1!==t[r].indexOf(\"+\")||-1!==t[r].indexOf(\"#\"))return!1}return!0}function i(e){if(0===e.length)return\"empty_topic_list\";for(let t=0;t<e.length;t++)if(!n(e[t]))return e[t];return null}e.exports={validateTopics:i}},aff9:function(e,t,r){\"use strict\";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},b289:function(e,t,r){(function(t){const r=e.exports;r.types={0:\"reserved\",1:\"connect\",2:\"connack\",3:\"publish\",4:\"puback\",5:\"pubrec\",6:\"pubrel\",7:\"pubcomp\",8:\"subscribe\",9:\"suback\",10:\"unsubscribe\",11:\"unsuback\",12:\"pingreq\",13:\"pingresp\",14:\"disconnect\",15:\"auth\"},r.codes={};for(const e in r.types){const t=r.types[e];r.codes[t]=e}r.CMD_SHIFT=4,r.CMD_MASK=240,r.DUP_MASK=8,r.QOS_MASK=3,r.QOS_SHIFT=1,r.RETAIN_MASK=1,r.VARBYTEINT_MASK=127,r.VARBYTEINT_FIN_MASK=128,r.VARBYTEINT_MAX=268435455,r.SESSIONPRESENT_MASK=1,r.SESSIONPRESENT_HEADER=t.from([r.SESSIONPRESENT_MASK]),r.CONNACK_HEADER=t.from([r.codes.connack<<r.CMD_SHIFT]),r.USERNAME_MASK=128,r.PASSWORD_MASK=64,r.WILL_RETAIN_MASK=32,r.WILL_QOS_MASK=24,r.WILL_QOS_SHIFT=3,r.WILL_FLAG_MASK=4,r.CLEAN_SESSION_MASK=2,r.CONNECT_HEADER=t.from([r.codes.connect<<r.CMD_SHIFT]),r.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},r.propertiesCodes={};for(const e in r.properties){const t=r.properties[e];r.propertiesCodes[t]=e}function n(e){return[0,1,2].map(n=>[0,1].map(i=>[0,1].map(o=>{const s=t.alloc(1);return s.writeUInt8(r.codes[e]<<r.CMD_SHIFT|(i?r.DUP_MASK:0)|n<<r.QOS_SHIFT|o,0,!0),s})))}r.propertiesTypes={sessionExpiryInterval:\"int32\",willDelayInterval:\"int32\",receiveMaximum:\"int16\",maximumPacketSize:\"int32\",topicAliasMaximum:\"int16\",requestResponseInformation:\"byte\",requestProblemInformation:\"byte\",userProperties:\"pair\",authenticationMethod:\"string\",authenticationData:\"binary\",payloadFormatIndicator:\"byte\",messageExpiryInterval:\"int32\",contentType:\"string\",responseTopic:\"string\",correlationData:\"binary\",maximumQoS:\"int8\",retainAvailable:\"byte\",assignedClientIdentifier:\"string\",reasonString:\"string\",wildcardSubscriptionAvailable:\"byte\",subscriptionIdentifiersAvailable:\"byte\",sharedSubscriptionAvailable:\"byte\",serverKeepAlive:\"int16\",responseInformation:\"string\",serverReference:\"string\",topicAlias:\"int16\",subscriptionIdentifier:\"var\"},r.PUBLISH_HEADER=n(\"publish\"),r.SUBSCRIBE_HEADER=n(\"subscribe\"),r.SUBSCRIBE_OPTIONS_QOS_MASK=3,r.SUBSCRIBE_OPTIONS_NL_MASK=1,r.SUBSCRIBE_OPTIONS_NL_SHIFT=2,r.SUBSCRIBE_OPTIONS_RAP_MASK=1,r.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,r.SUBSCRIBE_OPTIONS_RH_MASK=3,r.SUBSCRIBE_OPTIONS_RH_SHIFT=4,r.SUBSCRIBE_OPTIONS_RH=[0,16,32],r.SUBSCRIBE_OPTIONS_NL=4,r.SUBSCRIBE_OPTIONS_RAP=8,r.SUBSCRIBE_OPTIONS_QOS=[0,1,2],r.UNSUBSCRIBE_HEADER=n(\"unsubscribe\"),r.ACKS={unsuback:n(\"unsuback\"),puback:n(\"puback\"),pubcomp:n(\"pubcomp\"),pubrel:n(\"pubrel\"),pubrec:n(\"pubrec\")},r.SUBACK_HEADER=t.from([r.codes.suback<<r.CMD_SHIFT]),r.VERSION3=t.from([3]),r.VERSION4=t.from([4]),r.VERSION5=t.from([5]),r.VERSION131=t.from([131]),r.VERSION132=t.from([132]),r.QOS=[0,1,2].map(e=>t.from([e])),r.EMPTY={pingreq:t.from([r.codes.pingreq<<4,0]),pingresp:t.from([r.codes.pingresp<<4,0]),disconnect:t.from([r.codes.disconnect<<4,0])}}).call(this,r(\"b639\").Buffer)},b383:function(e,t,r){\"use strict\";t.decode=t.parse=r(\"91dd\"),t.encode=t.stringify=r(\"e099\")},b639:function(e,t,r){\"use strict\";(function(e){\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh <http://feross.org>\n * @license MIT\n */\nvar n=r(\"1fb5\"),i=r(\"9152\"),o=r(\"e3db\");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&\"function\"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(a()<t)throw new RangeError(\"Invalid typed array length\");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,r){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,r);if(\"number\"===typeof e){if(\"string\"===typeof t)throw new Error(\"If encoding is specified then the first argument must be a string\");return p(this,e)}return l(this,e,t,r)}function l(e,t,r,n){if(\"number\"===typeof t)throw new TypeError('\"value\" argument must not be a number');return\"undefined\"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?y(e,t,r,n):\"string\"===typeof t?d(e,t,r):b(e,t)}function h(e){if(\"number\"!==typeof e)throw new TypeError('\"size\" argument must be a number');if(e<0)throw new RangeError('\"size\" argument must not be negative')}function f(e,t,r,n){return h(t),t<=0?u(e,t):void 0!==r?\"string\"===typeof n?u(e,t).fill(r,n):u(e,t).fill(r):u(e,t)}function p(e,t){if(h(t),e=u(e,t<0?0:0|m(t)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t,r){if(\"string\"===typeof r&&\"\"!==r||(r=\"utf8\"),!c.isEncoding(r))throw new TypeError('\"encoding\" must be a valid string encoding');var n=0|v(t,r);e=u(e,n);var i=e.write(t,r);return i!==n&&(e=e.slice(0,i)),e}function g(e,t){var r=t.length<0?0:0|m(t.length);e=u(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function y(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError(\"'offset' is out of bounds\");if(t.byteLength<r+(n||0))throw new RangeError(\"'length' is out of bounds\");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=g(e,t),e}function b(e,t){if(c.isBuffer(t)){var r=0|m(t.length);return e=u(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if(\"undefined\"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||\"length\"in t)return\"number\"!==typeof t.length||te(t.length)?u(e,0):g(e,t);if(\"Buffer\"===t.type&&o(t.data))return g(e,t.data)}throw new TypeError(\"First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.\")}function m(e){if(e>=a())throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+a().toString(16)+\" bytes\");return 0|e}function w(e){return+e!=e&&(e=0),c.alloc(+e)}function v(e,t){if(c.isBuffer(e))return e.length;if(\"undefined\"!==typeof ArrayBuffer&&\"function\"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;\"string\"!==typeof e&&(e=\"\"+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return r;case\"utf8\":case\"utf-8\":case void 0:return G(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*r;case\"hex\":return r>>>1;case\"base64\":return X(e).length;default:if(n)return G(e).length;t=(\"\"+t).toLowerCase(),n=!0}}function _(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return\"\";if(r>>>=0,t>>>=0,r<=t)return\"\";e||(e=\"utf8\");while(1)switch(e){case\"hex\":return j(this,t,r);case\"utf8\":case\"utf-8\":return I(this,t,r);case\"ascii\":return L(this,t,r);case\"latin1\":case\"binary\":return N(this,t,r);case\"base64\":return P(this,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return F(this,t,r);default:if(n)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),n=!0}}function S(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function E(e,t,r,n,i){if(0===e.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:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if(\"string\"===typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:k(e,t,r,n,i);if(\"number\"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&\"function\"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):k(e,[t],r,n,i);throw new TypeError(\"val must be string, number or Buffer\")}function k(e,t,r,n,i){var o,s=1,a=e.length,u=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),\"ucs2\"===n||\"ucs-2\"===n||\"utf16le\"===n||\"utf-16le\"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(c(e,o+f)!==c(t,f)){h=!1;break}if(h)return o}return-1}function C(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.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(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function R(e,t,r,n){return ee(G(t,e.length-r),e,r,n)}function A(e,t,r,n){return ee(J(t),e,r,n)}function T(e,t,r,n){return A(e,t,r,n)}function x(e,t,r,n){return ee(X(t),e,r,n)}function O(e,t,r,n){return ee(Z(t,e.length-r),e,r,n)}function P(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function I(e,t,r){r=Math.min(e.length,r);var n=[],i=t;while(i<r){var o,s,a,u,c=e[i],l=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(l=c);break;case 2:o=e[i+1],128===(192&o)&&(u=(31&c)<<6|63&o,u>127&&(l=u));break;case 3:o=e[i+1],s=e[i+2],128===(192&o)&&128===(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s,u>2047&&(u<55296||u>57343)&&(l=u));break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a,u>65535&&u<1114112&&(l=u))}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}return M(n)}t.Buffer=c,t.SlowBuffer=w,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:s(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return l(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,\"undefined\"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,r){return f(null,e,t,r)},c.allocUnsafe=function(e){return p(null,e)},c.allocUnsafeSlow=function(e){return p(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError(\"Arguments must be Buffers\");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).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}},c.concat=function(e,t){if(!o(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=c.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(!c.isBuffer(s))throw new TypeError('\"list\" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},c.byteLength=v,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;t<e;t+=2)S(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(var t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(var t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?\"\":0===arguments.length?I(this,0,e):_.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e=\"\",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString(\"hex\",0,r).match(/.{2}/g).join(\" \"),this.length>r&&(e+=\" ... \")),\"<Buffer \"+e+\">\"},c.prototype.compare=function(e,t,r,n,i){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError(\"out of range index\");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,s=r-t,a=Math.min(o,s),u=this.slice(n,i),l=e.slice(t,r),h=0;h<a;++h)if(u[h]!==l[h]){o=u[h],s=l[h];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return E(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return E(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n=\"utf8\",r=this.length,t=0;else if(void 0===r&&\"string\"===typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t|=0,isFinite(r)?(r|=0,void 0===n&&(n=\"utf8\")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");n||(n=\"utf8\");for(var o=!1;;)switch(n){case\"hex\":return C(this,e,t,r);case\"utf8\":case\"utf-8\":return R(this,e,t,r);case\"ascii\":return A(this,e,t,r);case\"latin1\":case\"binary\":return T(this,e,t,r);case\"base64\":return x(this,e,t,r);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return O(this,e,t,r);default:if(o)throw new TypeError(\"Unknown encoding: \"+n);n=(\"\"+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function M(e){var t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);var r=\"\",n=0;while(n<t)r+=String.fromCharCode.apply(String,e.slice(n,n+=B));return r}function L(e,t,r){var n=\"\";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function N(e,t,r){var n=\"\";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function j(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i=\"\",o=t;o<r;++o)i+=$(e[o]);return i}function F(e,t,r){for(var n=e.slice(t,r),i=\"\",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function U(e,t,r){if(e%1!==0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>r)throw new RangeError(\"Trying to access beyond buffer length\")}function D(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('\"value\" argument is out of bounds');if(r+n>e.length)throw new RangeError(\"Index out of range\")}function q(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function V(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function W(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"Index out of range\")}function z(e,t,r,n,o){return o||W(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function K(e,t,r,n,o){return o||W(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=c.prototype;else{var i=t-e;r=new c(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},c.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);var n=this[e],i=1,o=0;while(++o<t&&(i*=256))n+=this[e+o]*i;return n},c.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);var n=this[e+--t],i=1;while(t>0&&(i*=256))n+=this[e+--t]*i;return n},c.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);var n=this[e],i=1,o=0;while(++o<t&&(i*=256))n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);var n=t,i=1,o=this[e+--n];while(n>0&&(i*=256))o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;D(this,e,t,r,i,0)}var o=1,s=0;this[t]=255&e;while(++s<r&&(o*=256))this[t+s]=e/o&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;D(this,e,t,r,i,0)}var o=r-1,s=1;this[t+o]=255&e;while(--o>=0&&(s*=256))this[t+o]=e/s&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):V(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):V(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);D(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;this[t]=255&e;while(++o<r&&(s*=256))e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);D(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;this[t+o]=255&e;while(--o>=0&&(s*=256))e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):V(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):V(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return z(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return z(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return K(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return K(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<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),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},c.prototype.fill=function(e,t,r,n){if(\"string\"===typeof e){if(\"string\"===typeof t?(n=t,t=0,r=this.length):\"string\"===typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&\"string\"!==typeof n)throw new TypeError(\"encoding must be a string\");if(\"string\"===typeof n&&!c.isEncoding(n))throw new TypeError(\"Unknown encoding: \"+n)}else\"number\"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError(\"Out of range index\");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),\"number\"===typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=c.isBuffer(e)?e:G(new c(e,n).toString()),a=s.length;for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};var H=/[^+\\/0-9A-Za-z-_]/g;function Q(e){if(e=Y(e).replace(H,\"\"),e.length<2)return\"\";while(e.length%4!==0)e+=\"=\";return e}function Y(e){return e.trim?e.trim():e.replace(/^\\s+|\\s+$/g,\"\")}function $(e){return e<16?\"0\"+e.toString(16):e.toString(16)}function G(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],s=0;s<n;++s){if(r=e.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=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((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function J(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function Z(e,t){for(var r,n,i,o=[],s=0;s<e.length;++s){if((t-=2)<0)break;r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n)}return o}function X(e){return n.toByteArray(Q(e))}function ee(e,t,r,n){for(var i=0;i<n;++i){if(i+r>=t.length||i>=e.length)break;t[i+r]=e[i]}return i}function te(e){return e!==e}}).call(this,r(\"c8ba\"))},b7d1:function(e,t,r){(function(t){function r(e,t){if(n(\"noDeprecation\"))return e;var r=!1;function i(){if(!r){if(n(\"throwDeprecation\"))throw new Error(t);n(\"traceDeprecation\")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function n(e){try{if(!t.localStorage)return!1}catch(n){return!1}var r=t.localStorage[e];return null!=r&&\"true\"===String(r).toLowerCase()}e.exports=r}).call(this,r(\"c8ba\"))},b98b:function(e,t,r){e.exports=r(\"faa1\").EventEmitter},be3f:function(e,t,r){\"use strict\";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var i=r(\"85f8\"),o=r(\"13a8\");r(\"3fb5\")(c,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var u=s[a];c.prototype[u]||(c.prototype[u]=o.prototype[u])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once(\"end\",l)))}function l(){this._writableState.ended||t.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,\"destroyed\",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,r(\"f28c\"))},beda:function(e,t,r){},bf09:function(e,t,r){\"use strict\";var n=r(\"9bfc\").codes.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function s(e){return e.setHeader&&\"function\"===typeof e.abort}function a(e,t,r){if(\"function\"===typeof t)return a(e,null,t);t||(t={}),r=i(r||o);var u=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,l=function(){e.writable||f()},h=e._writableState&&e._writableState.finished,f=function(){c=!1,h=!0,u||r.call(e)},p=e._readableState&&e._readableState.endEmitted,d=function(){u=!1,p=!0,c||r.call(e)},g=function(t){r.call(e,t)},y=function(){var t;return u&&!p?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!h?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},b=function(){e.req.on(\"finish\",f)};return s(e)?(e.on(\"complete\",f),e.on(\"abort\",y),e.req?b():e.on(\"request\",b)):c&&!e._writableState&&(e.on(\"end\",l),e.on(\"close\",l)),e.on(\"end\",d),e.on(\"finish\",f),!1!==t.error&&e.on(\"error\",g),e.on(\"close\",y),function(){e.removeListener(\"complete\",f),e.removeListener(\"abort\",y),e.removeListener(\"request\",b),e.req&&e.req.removeListener(\"finish\",f),e.removeListener(\"end\",l),e.removeListener(\"close\",l),e.removeListener(\"finish\",f),e.removeListener(\"end\",d),e.removeListener(\"error\",g),e.removeListener(\"close\",y)}}e.exports=a},c15d:function(e,t,r){function n(e){function t(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return n.colors[Math.abs(t)%n.colors.length]}function n(e){let t,r,o,s=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),o=i-(t||i);r.diff=o,r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),\"string\"!==typeof e[0]&&e.unshift(\"%O\");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(\"%%\"===t)return\"%\";s++;const o=n.formatters[i];if(\"function\"===typeof o){const n=e[s];t=o.call(r,n),e.splice(s,1),s--}return t}),n.formatArgs.call(r,e);const u=r.log||n.log;u.apply(r,e)}return a.namespace=e,a.useColors=n.useColors(),a.color=n.selectColor(e),a.extend=i,a.destroy=n.destroy,Object.defineProperty(a,\"enabled\",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==n.namespaces&&(r=n.namespaces,o=n.enabled(e)),o),set:e=>{s=e}}),\"function\"===typeof n.init&&n.init(a),a}function i(e,t){const r=n(this.namespace+(\"undefined\"===typeof t?\":\":t)+e);return r.log=this.log,r}function o(e){let t;n.save(e),n.namespaces=e,n.names=[],n.skips=[];const r=(\"string\"===typeof e?e:\"\").split(/[\\s,]+/),i=r.length;for(t=0;t<i;t++)r[t]&&(e=r[t].replace(/\\*/g,\".*?\"),\"-\"===e[0]?n.skips.push(new RegExp(\"^\"+e.slice(1)+\"$\")):n.names.push(new RegExp(\"^\"+e+\"$\")))}function s(){const e=[...n.names.map(u),...n.skips.map(u).map(e=>\"-\"+e)].join(\",\");return n.enable(\"\"),e}function a(e){if(\"*\"===e[e.length-1])return!0;let t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1}function u(e){return e.toString().substring(2,e.toString().length-2).replace(/\\.\\*\\?$/,\"*\")}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\")}return n.debug=n,n.default=n,n.coerce=c,n.disable=s,n.enable=o,n.enabled=a,n.humanize=r(\"adaa\"),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={},n.selectColor=t,n.enable(n.load()),n}e.exports=n},c4c7:function(e,t,r){\"use strict\";const{Buffer:n}=r(\"b639\"),i=r(\"035d\").Transform,o=r(\"56ac\");let s,a,u,c=!1;function l(){const e=new i;return e._write=function(e,t,r){s.sendSocketMessage({data:e.buffer,success:function(){r()},fail:function(){r(new Error)}})},e._flush=function(e){s.closeSocket({success:function(){e()}})},e}function h(e){e.hostname||(e.hostname=\"localhost\"),e.path||(e.path=\"/\"),e.wsOptions||(e.wsOptions={})}function f(e,t){const r=\"alis\"===e.protocol?\"wss\":\"ws\";let n=r+\"://\"+e.hostname+e.path;return e.port&&80!==e.port&&443!==e.port&&(n=r+\"://\"+e.hostname+\":\"+e.port+e.path),\"function\"===typeof e.transformWsUrl&&(n=e.transformWsUrl(n,e,t)),n}function p(){c||(c=!0,s.onSocketOpen((function(){u.setReadable(a),u.setWritable(a),u.emit(\"connect\")})),s.onSocketMessage((function(e){if(\"string\"===typeof e.data){const t=n.from(e.data,\"base64\");a.push(t)}else{const t=new FileReader;t.addEventListener(\"load\",(function(){let e=t.result;e=e instanceof ArrayBuffer?n.from(e):n.from(e,\"utf8\"),a.push(e)})),t.readAsArrayBuffer(e.data)}})),s.onSocketClose((function(){u.end(),u.destroy()})),s.onSocketError((function(e){u.destroy(e)})))}function d(e,t){if(t.hostname=t.hostname||t.host,!t.hostname)throw new Error(\"Could not determine host. Specify host manually.\");const r=\"MQIsdp\"===t.protocolId&&3===t.protocolVersion?\"mqttv3.1\":\"mqtt\";h(t);const n=f(t,e);return s=t.my,s.connectSocket({url:n,protocols:r}),a=l(),u=o.obj(),p(),u}e.exports=d},d44d:function(e,t,r){\"use strict\";var n=r(\"beda\"),i=r.n(n);i.a},d633:function(e,t){function r(e,t){if(e&&t)return r(e)(t);if(\"function\"!==typeof e)throw new TypeError(\"need wrapper function\");return Object.keys(e).forEach((function(t){n[t]=e[t]})),n;function n(){for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];var n=e.apply(this,t),i=t[t.length-1];return\"function\"===typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}}e.exports=r},d9e1:function(e,t,r){\"use strict\";var n=r(\"fbd7\").codes.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function s(e){return e.setHeader&&\"function\"===typeof e.abort}function a(e,t,r){if(\"function\"===typeof t)return a(e,null,t);t||(t={}),r=i(r||o);var u=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,l=function(){e.writable||f()},h=e._writableState&&e._writableState.finished,f=function(){c=!1,h=!0,u||r.call(e)},p=e._readableState&&e._readableState.endEmitted,d=function(){u=!1,p=!0,c||r.call(e)},g=function(t){r.call(e,t)},y=function(){var t;return u&&!p?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!h?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},b=function(){e.req.on(\"finish\",f)};return s(e)?(e.on(\"complete\",f),e.on(\"abort\",y),e.req?b():e.on(\"request\",b)):c&&!e._writableState&&(e.on(\"end\",l),e.on(\"close\",l)),e.on(\"end\",d),e.on(\"finish\",f),!1!==t.error&&e.on(\"error\",g),e.on(\"close\",y),function(){e.removeListener(\"complete\",f),e.removeListener(\"abort\",y),e.removeListener(\"request\",b),e.req&&e.req.removeListener(\"finish\",f),e.removeListener(\"end\",l),e.removeListener(\"close\",l),e.removeListener(\"finish\",f),e.removeListener(\"end\",d),e.removeListener(\"error\",g),e.removeListener(\"close\",y)}}e.exports=a},db34:function(e,t,r){(function(n){function i(){return!(\"undefined\"===typeof window||!window.process||\"renderer\"!==window.process.type&&!window.process.__nwjs)||(\"undefined\"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/))&&(\"undefined\"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||\"undefined\"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||\"undefined\"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)&&parseInt(RegExp.$1,10)>=31||\"undefined\"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/))}function o(t){if(t[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+t[0]+(this.useColors?\"%c \":\" \")+\"+\"+e.exports.humanize(this.diff),!this.useColors)return;const r=\"color: \"+this.color;t.splice(1,0,r,\"color: inherit\");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{\"%%\"!==e&&(n++,\"%c\"===e&&(i=n))}),t.splice(i,0,r)}function s(e){try{e?t.storage.setItem(\"debug\",e):t.storage.removeItem(\"debug\")}catch(r){}}function a(){let e;try{e=t.storage.getItem(\"debug\")}catch(r){}return!e&&\"undefined\"!==typeof n&&\"env\"in n&&(e=Object({NODE_ENV:\"production\",BASE_URL:\"/\"}).DEBUG),e}function u(){try{return localStorage}catch(e){}}t.formatArgs=o,t.save=s,t.load=a,t.useColors=i,t.storage=u(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\"))}})(),t.colors=[\"#0000CC\",\"#0000FF\",\"#0033CC\",\"#0033FF\",\"#0066CC\",\"#0066FF\",\"#0099CC\",\"#0099FF\",\"#00CC00\",\"#00CC33\",\"#00CC66\",\"#00CC99\",\"#00CCCC\",\"#00CCFF\",\"#3300CC\",\"#3300FF\",\"#3333CC\",\"#3333FF\",\"#3366CC\",\"#3366FF\",\"#3399CC\",\"#3399FF\",\"#33CC00\",\"#33CC33\",\"#33CC66\",\"#33CC99\",\"#33CCCC\",\"#33CCFF\",\"#6600CC\",\"#6600FF\",\"#6633CC\",\"#6633FF\",\"#66CC00\",\"#66CC33\",\"#9900CC\",\"#9900FF\",\"#9933CC\",\"#9933FF\",\"#99CC00\",\"#99CC33\",\"#CC0000\",\"#CC0033\",\"#CC0066\",\"#CC0099\",\"#CC00CC\",\"#CC00FF\",\"#CC3300\",\"#CC3333\",\"#CC3366\",\"#CC3399\",\"#CC33CC\",\"#CC33FF\",\"#CC6600\",\"#CC6633\",\"#CC9900\",\"#CC9933\",\"#CCCC00\",\"#CCCC33\",\"#FF0000\",\"#FF0033\",\"#FF0066\",\"#FF0099\",\"#FF00CC\",\"#FF00FF\",\"#FF3300\",\"#FF3333\",\"#FF3366\",\"#FF3399\",\"#FF33CC\",\"#FF33FF\",\"#FF6600\",\"#FF6633\",\"#FF9900\",\"#FF9933\",\"#FFCC00\",\"#FFCC33\"],t.log=console.debug||console.log||(()=>{}),e.exports=r(\"555e\")(t);const{formatters:c}=e.exports;c.j=function(e){try{return JSON.stringify(e)}catch(t){return\"[UnexpectedJSONParseError]: \"+t.message}}}).call(this,r(\"f28c\"))},df86:function(e,t,r){\"use strict\";(function(t,n){const i=r(\"faa1\").EventEmitter,o=r(\"ea08\"),s=r(\"e7d0\"),a=r(\"a43f\"),u=r(\"3409\"),c=r(\"1e4d\"),l=r(\"035d\").Writable,h=r(\"3fb5\"),f=r(\"29a2\"),p=r(\"2a28\"),d=r(\"ae84\"),g=r(\"53a8\"),y=r(\"db34\")(\"mqttjs:client\"),b=t?t.nextTick:function(e){setTimeout(e,0)},m=n.setImmediate||function(e){b(e)},w={keepalive:60,reschedulePings:!0,protocolId:\"MQTT\",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0},v=[\"ECONNREFUSED\",\"EADDRINUSE\",\"ECONNRESET\",\"ENOTFOUND\"],_={0:\"\",1:\"Unacceptable protocol version\",2:\"Identifier rejected\",3:\"Server unavailable\",4:\"Bad username or password\",5:\"Not authorized\",16:\"No matching subscribers\",17:\"No subscription existed\",128:\"Unspecified error\",129:\"Malformed Packet\",130:\"Protocol Error\",131:\"Implementation specific error\",132:\"Unsupported Protocol Version\",133:\"Client Identifier not valid\",134:\"Bad User Name or Password\",135:\"Not authorized\",136:\"Server unavailable\",137:\"Server busy\",138:\"Banned\",139:\"Server shutting down\",140:\"Bad authentication method\",141:\"Keep Alive timeout\",142:\"Session taken over\",143:\"Topic Filter invalid\",144:\"Topic Name invalid\",145:\"Packet identifier in use\",146:\"Packet Identifier not found\",147:\"Receive Maximum exceeded\",148:\"Topic Alias invalid\",149:\"Packet too large\",150:\"Message rate too high\",151:\"Quota exceeded\",152:\"Administrative action\",153:\"Payload format invalid\",154:\"Retain not supported\",155:\"QoS not supported\",156:\"Use another server\",157:\"Server moved\",158:\"Shared Subscriptions not supported\",159:\"Connection rate exceeded\",160:\"Maximum connect time\",161:\"Subscription Identifiers not supported\",162:\"Wildcard Subscriptions not supported\"};function S(){return\"mqttjs_\"+Math.random().toString(16).substr(2,8)}function E(e,t){if(5===e.options.protocolVersion&&\"publish\"===t.cmd){let r;t.properties&&(r=t.properties.topicAlias);const n=t.topic.toString();if(e.topicAliasSend)if(r){if(0!==n.length&&(y(\"applyTopicAlias :: register topic: %s - alias: %d\",n,r),!e.topicAliasSend.put(n,r)))return y(\"applyTopicAlias :: error out of range. topic: %s - alias: %d\",n,r),new Error(\"Sending Topic Alias out of range\")}else 0!==n.length&&(e.options.autoAssignTopicAlias?(r=e.topicAliasSend.getAliasByTopic(n),r?(t.topic=\"\",t.properties={...t.properties,topicAlias:r},y(\"applyTopicAlias :: auto assign(use) topic: %s - alias: %d\",n,r)):(r=e.topicAliasSend.getLruAlias(),e.topicAliasSend.put(n,r),t.properties={...t.properties,topicAlias:r},y(\"applyTopicAlias :: auto assign topic: %s - alias: %d\",n,r))):e.options.autoUseTopicAlias&&(r=e.topicAliasSend.getAliasByTopic(n),r&&(t.topic=\"\",t.properties={...t.properties,topicAlias:r},y(\"applyTopicAlias :: auto use topic: %s - alias: %d\",n,r))));else if(r)return y(\"applyTopicAlias :: error out of range. topic: %s - alias: %d\",n,r),new Error(\"Sending Topic Alias out of range\")}}function k(e,t){let r;t.properties&&(r=t.properties.topicAlias);let n=t.topic.toString();if(0===n.length){if(\"undefined\"===typeof r)return new Error(\"Unregistered Topic Alias\");if(n=e.topicAliasSend.getTopicByAlias(r),\"undefined\"===typeof n)return new Error(\"Unregistered Topic Alias\");t.topic=n}r&&delete t.properties.topicAlias}function C(e,t,r){y(\"sendPacket :: packet: %O\",t),y(\"sendPacket :: emitting `packetsend`\"),e.emit(\"packetsend\",t),y(\"sendPacket :: writing to stream\");const n=u.writeToStream(t,e.stream,e.options);y(\"sendPacket :: writeToStream result %s\",n),!n&&r&&r!==x?(y(\"sendPacket :: handle events on `drain` once through callback.\"),e.stream.once(\"drain\",r)):r&&(y(\"sendPacket :: invoking cb\"),r())}function R(e){e&&(y(\"flush: queue exists? %b\",!!e),Object.keys(e).forEach((function(t){\"function\"===typeof e[t].cb&&(e[t].cb(new Error(\"Connection closed\")),delete e[t])})))}function A(e){e&&(y(\"flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function\"),Object.keys(e).forEach((function(t){e[t].volatile&&\"function\"===typeof e[t].cb&&(e[t].cb(new Error(\"Connection closed\")),delete e[t])})))}function T(e,t,r,n){y(\"storeAndSend :: store packet with cmd %s to outgoingStore\",t.cmd);let i,o=t;if(\"publish\"===o.cmd&&(o=p(t),i=k(e,o),i))return r&&r(i);e.outgoingStore.put(o,(function(i){if(i)return r&&r(i);n(),C(e,t,r)}))}function x(e){y(\"nop ::\",e)}function O(e,t){let r;const n=this;if(!(this instanceof O))return new O(e,t);for(r in this.options=t||{},w)\"undefined\"===typeof this.options[r]?this.options[r]=w[r]:this.options[r]=t[r];y(\"MqttClient :: options.protocol\",t.protocol),y(\"MqttClient :: options.protocolVersion\",t.protocolVersion),y(\"MqttClient :: options.username\",t.username),y(\"MqttClient :: options.keepalive\",t.keepalive),y(\"MqttClient :: options.reconnectPeriod\",t.reconnectPeriod),y(\"MqttClient :: options.rejectUnauthorized\",t.rejectUnauthorized),y(\"MqttClient :: options.topicAliasMaximum\",t.topicAliasMaximum),this.options.clientId=\"string\"===typeof t.clientId?t.clientId:S(),y(\"MqttClient :: clientId\",this.options.clientId),this.options.customHandleAcks=5===t.protocolVersion&&t.customHandleAcks?t.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=e,this.messageIdProvider=\"undefined\"===typeof this.options.messageIdProvider?new c:this.options.messageIdProvider,this.outgoingStore=t.outgoingStore||new o,this.incomingStore=t.incomingStore||new o,this.queueQoSZero=void 0===t.queueQoSZero||t.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,t.topicAliasMaximum>0&&(t.topicAliasMaximum>65535?y(\"MqttClient :: options.topicAliasMaximum is out of range\"):this.topicAliasRecv=new s(t.topicAliasMaximum)),this.on(\"connect\",(function(){const e=this.queue;function t(){const r=e.shift();y(\"deliver :: entry %o\",r);let i=null;if(!r)return void n._resubscribe();i=r.packet,y(\"deliver :: call _sendPacket for %o\",i);let o=!0;i.messageId&&0!==i.messageId&&(n.messageIdProvider.register(i.messageId)||(o=!1)),o?n._sendPacket(i,(function(e){r.cb&&r.cb(e),t()})):(y(\"messageId: %d has already used. The message is skipped and removed.\",i.messageId),t())}y(\"connect :: sending queued packets\"),t()})),this.on(\"close\",(function(){y(\"close :: connected set to `false`\"),this.connected=!1,y(\"close :: clearing connackTimer\"),clearTimeout(this.connackTimer),y(\"close :: clearing ping timer\"),null!==n.pingTimer&&(n.pingTimer.clear(),n.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),y(\"close :: calling _setupReconnect\"),this._setupReconnect()})),i.call(this),y(\"MqttClient :: setting up stream\"),this._setupStream()}h(O,i),O.prototype._setupStream=function(){const e=this,t=new l,r=u.parser(this.options);let n=null;const i=[];function o(){if(i.length)b(s);else{const e=n;n=null,e()}}function s(){y(\"work :: getting next packet in queue\");const t=i.shift();if(t)y(\"work :: packet pulled from queue\"),e._handlePacket(t,o);else{y(\"work :: no packets in queue\");const e=n;n=null,y(\"work :: done flag is %s\",!!e),e&&e()}}function a(t){y(\"streamErrorHandler :: error\",t.message),v.includes(t.code)?(y(\"streamErrorHandler :: emitting error\"),e.emit(\"error\",t)):x(t)}y(\"_setupStream :: calling method to clear reconnect\"),this._clearReconnect(),y(\"_setupStream :: using streamBuilder provided to client to create stream\"),this.stream=this.streamBuilder(this),r.on(\"packet\",(function(e){y(\"parser :: on packet push to packets array.\"),i.push(e)})),t._write=function(e,t,i){n=i,y(\"writable stream :: parsing buffer\"),r.parse(e),s()},y(\"_setupStream :: pipe stream to writable stream\"),this.stream.pipe(t),this.stream.on(\"error\",a),this.stream.on(\"close\",(function(){y(\"(%s)stream :: on close\",e.options.clientId),A(e.outgoing),y(\"stream: emit close to MqttClient\"),e.emit(\"close\")})),y(\"_setupStream: sending packet `connect`\");const c=Object.create(this.options);if(c.cmd=\"connect\",this.topicAliasRecv&&(c.properties||(c.properties={}),this.topicAliasRecv&&(c.properties.topicAliasMaximum=this.topicAliasRecv.max)),C(this,c),r.on(\"error\",this.emit.bind(this,\"error\")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return e.end(()=>this.emit(\"error\",new Error(\"Packet has no Authentication Method\"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&\"object\"===typeof this.options.authPacket){const e=g({cmd:\"auth\",reasonCode:0},this.options.authPacket);C(this,e)}}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout((function(){y(\"!!connectTimeout hit!! Calling _cleanUp with force `true`\"),e._cleanUp(!0)}),this.options.connectTimeout)},O.prototype._handlePacket=function(e,t){const r=this.options;if(5===r.protocolVersion&&r.properties&&r.properties.maximumPacketSize&&r.properties.maximumPacketSize<e.length)return this.emit(\"error\",new Error(\"exceeding packets size \"+e.cmd)),this.end({reasonCode:149,properties:{reasonString:\"Maximum packet size was exceeded\"}}),this;switch(y(\"_handlePacket :: emitting packetreceive\"),this.emit(\"packetreceive\",e),e.cmd){case\"publish\":this._handlePublish(e,t);break;case\"puback\":case\"pubrec\":case\"pubcomp\":case\"suback\":case\"unsuback\":this._handleAck(e),t();break;case\"pubrel\":this._handlePubrel(e,t);break;case\"connack\":this._handleConnack(e),t();break;case\"auth\":this._handleAuth(e),t();break;case\"pingresp\":this._handlePingresp(e),t();break;case\"disconnect\":this._handleDisconnect(e),t();break;default:break}},O.prototype._checkDisconnecting=function(e){return this.disconnecting&&(e&&e!==x?e(new Error(\"client disconnecting\")):this.emit(\"error\",new Error(\"client disconnecting\"))),this.disconnecting},O.prototype.publish=function(e,t,r,n){y(\"publish :: message `%s` to topic `%s`\",t,e);const i=this.options;\"function\"===typeof r&&(n=r,r=null);const o={qos:0,retain:!1,dup:!1};if(r=g(o,r),this._checkDisconnecting(n))return this;const s=this,a=function(){let o=0;if((1===r.qos||2===r.qos)&&(o=s._nextId(),null===o))return y(\"No messageId left\"),!1;const a={cmd:\"publish\",topic:e,payload:t,qos:r.qos,retain:r.retain,messageId:o,dup:r.dup};switch(5===i.protocolVersion&&(a.properties=r.properties),y(\"publish :: qos\",r.qos),r.qos){case 1:case 2:s.outgoing[a.messageId]={volatile:!1,cb:n||x},y(\"MqttClient:publish: packet cmd: %s\",a.cmd),s._sendPacket(a,void 0,r.cbStorePut);break;default:y(\"MqttClient:publish: packet cmd: %s\",a.cmd),s._sendPacket(a,n,r.cbStorePut);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!a())&&this._storeProcessingQueue.push({invoke:a,cbStorePut:r.cbStorePut,callback:n}),this},O.prototype.subscribe=function(){const e=this,t=new Array(arguments.length);for(let h=0;h<arguments.length;h++)t[h]=arguments[h];const r=[];let n=t.shift();const i=n.resubscribe;let o=t.pop()||x,s=t.pop();const a=this.options.protocolVersion;delete n.resubscribe,\"string\"===typeof n&&(n=[n]),\"function\"!==typeof o&&(s=o,o=x);const u=d.validateTopics(n);if(null!==u)return m(o,new Error(\"Invalid topic \"+u)),this;if(this._checkDisconnecting(o))return y(\"subscribe: discconecting true\"),this;const c={qos:0};if(5===a&&(c.nl=!1,c.rap=!1,c.rh=0),s=g(c,s),Array.isArray(n)?n.forEach((function(t){if(y(\"subscribe: array topic %s\",t),!Object.prototype.hasOwnProperty.call(e._resubscribeTopics,t)||e._resubscribeTopics[t].qos<s.qos||i){const e={topic:t,qos:s.qos};5===a&&(e.nl=s.nl,e.rap=s.rap,e.rh=s.rh,e.properties=s.properties),y(\"subscribe: pushing topic `%s` and qos `%s` to subs list\",e.topic,e.qos),r.push(e)}})):Object.keys(n).forEach((function(t){if(y(\"subscribe: object topic %s\",t),!Object.prototype.hasOwnProperty.call(e._resubscribeTopics,t)||e._resubscribeTopics[t].qos<n[t].qos||i){const e={topic:t,qos:n[t].qos};5===a&&(e.nl=n[t].nl,e.rap=n[t].rap,e.rh=n[t].rh,e.properties=s.properties),y(\"subscribe: pushing `%s` to subs list\",e),r.push(e)}})),!r.length)return o(null,[]),this;const l=function(){const t=e._nextId();if(null===t)return y(\"No messageId left\"),!1;const n={cmd:\"subscribe\",subscriptions:r,qos:1,retain:!1,dup:!1,messageId:t};if(s.properties&&(n.properties=s.properties),e.options.resubscribe){y(\"subscribe :: resubscribe true\");const t=[];r.forEach((function(r){if(e.options.reconnectPeriod>0){const n={qos:r.qos};5===a&&(n.nl=r.nl||!1,n.rap=r.rap||!1,n.rh=r.rh||0,n.properties=r.properties),e._resubscribeTopics[r.topic]=n,t.push(r.topic)}})),e.messageIdToTopic[n.messageId]=t}return e.outgoing[n.messageId]={volatile:!0,cb:function(e,t){if(!e){const e=t.granted;for(let t=0;t<e.length;t+=1)r[t].qos=e[t]}o(e,r)}},y(\"subscribe :: call _sendPacket\"),e._sendPacket(n),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!l())&&this._storeProcessingQueue.push({invoke:l,callback:o}),this},O.prototype.unsubscribe=function(){const e=this,t=new Array(arguments.length);for(let a=0;a<arguments.length;a++)t[a]=arguments[a];let r=t.shift(),n=t.pop()||x,i=t.pop();\"string\"===typeof r&&(r=[r]),\"function\"!==typeof n&&(i=n,n=x);const o=d.validateTopics(r);if(null!==o)return m(n,new Error(\"Invalid topic \"+o)),this;if(e._checkDisconnecting(n))return this;const s=function(){const t=e._nextId();if(null===t)return y(\"No messageId left\"),!1;const o={cmd:\"unsubscribe\",qos:1,messageId:t};return\"string\"===typeof r?o.unsubscriptions=[r]:Array.isArray(r)&&(o.unsubscriptions=r),e.options.resubscribe&&o.unsubscriptions.forEach((function(t){delete e._resubscribeTopics[t]})),\"object\"===typeof i&&i.properties&&(o.properties=i.properties),e.outgoing[o.messageId]={volatile:!0,cb:n},y(\"unsubscribe: call _sendPacket\"),e._sendPacket(o),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!s())&&this._storeProcessingQueue.push({invoke:s,callback:n}),this},O.prototype.end=function(e,t,r){const n=this;function i(){y(\"end :: closeStores: closing incoming and outgoing stores\"),n.disconnected=!0,n.incomingStore.close((function(e){n.outgoingStore.close((function(t){if(y(\"end :: closeStores: emitting end\"),n.emit(\"end\"),r){const n=e||t;y(\"end :: closeStores: invoking callback with args\"),r(n)}}))})),n._deferredReconnect&&n._deferredReconnect()}function o(){y(\"end :: (%s) :: finish :: calling _cleanUp with force %s\",n.options.clientId,e),n._cleanUp(e,()=>{y(\"end :: finish :: calling process.nextTick on closeStores\"),b(i.bind(n))},t)}return y(\"end :: (%s)\",this.options.clientId),null!=e&&\"boolean\"===typeof e||(r=t||x,t=e,e=!1,\"object\"!==typeof t&&(r=t,t=null,\"function\"!==typeof r&&(r=x))),\"object\"!==typeof t&&(r=t,t=null),y(\"end :: cb? %s\",!!r),r=r||x,this.disconnecting?(r(),this):(this._clearReconnect(),this.disconnecting=!0,!e&&Object.keys(this.outgoing).length>0?(y(\"end :: (%s) :: calling finish in 10ms once outgoing is empty\",n.options.clientId),this.once(\"outgoingEmpty\",setTimeout.bind(null,o,10))):(y(\"end :: (%s) :: immediately calling finish\",n.options.clientId),o()),this)},O.prototype.removeOutgoingMessage=function(e){const t=this.outgoing[e]?this.outgoing[e].cb:null;return delete this.outgoing[e],this.outgoingStore.del({messageId:e},(function(){t(new Error(\"Message removed\"))})),this},O.prototype.reconnect=function(e){y(\"client reconnect\");const t=this,r=function(){e?(t.options.incomingStore=e.incomingStore,t.options.outgoingStore=e.outgoingStore):(t.options.incomingStore=null,t.options.outgoingStore=null),t.incomingStore=t.options.incomingStore||new o,t.outgoingStore=t.options.outgoingStore||new o,t.disconnecting=!1,t.disconnected=!1,t._deferredReconnect=null,t._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=r:r(),this},O.prototype._reconnect=function(){y(\"_reconnect: emitting reconnect to client\"),this.emit(\"reconnect\"),this.connected?(this.end(()=>{this._setupStream()}),y(\"client already connected. disconnecting first.\")):(y(\"_reconnect: calling _setupStream\"),this._setupStream())},O.prototype._setupReconnect=function(){const e=this;!e.disconnecting&&!e.reconnectTimer&&e.options.reconnectPeriod>0?(this.reconnecting||(y(\"_setupReconnect :: emit `offline` state\"),this.emit(\"offline\"),y(\"_setupReconnect :: set `reconnecting` to `true`\"),this.reconnecting=!0),y(\"_setupReconnect :: setting reconnectTimer for %d ms\",e.options.reconnectPeriod),e.reconnectTimer=setInterval((function(){y(\"reconnectTimer :: reconnect triggered!\"),e._reconnect()}),e.options.reconnectPeriod)):y(\"_setupReconnect :: doing nothing...\")},O.prototype._clearReconnect=function(){y(\"_clearReconnect : clearing reconnect timer\"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},O.prototype._cleanUp=function(e,t){const r=arguments[2];if(t&&(y(\"_cleanUp :: done callback provided for on stream close\"),this.stream.on(\"close\",t)),y(\"_cleanUp :: forced? %s\",e),e)0===this.options.reconnectPeriod&&this.options.clean&&R(this.outgoing),y(\"_cleanUp :: (%s) :: destroying stream\",this.options.clientId),this.stream.destroy();else{const e=g({cmd:\"disconnect\"},r);y(\"_cleanUp :: (%s) :: call _sendPacket with disconnect packet\",this.options.clientId),this._sendPacket(e,m.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(y(\"_cleanUp :: client not disconnecting. Clearing and resetting reconnect.\"),this._clearReconnect(),this._setupReconnect()),null!==this.pingTimer&&(y(\"_cleanUp :: clearing pingTimer\"),this.pingTimer.clear(),this.pingTimer=null),t&&!this.connected&&(y(\"_cleanUp :: (%s) :: removing stream `done` callback `close` listener\",this.options.clientId),this.stream.removeListener(\"close\",t),t())},O.prototype._sendPacket=function(e,t,r){y(\"_sendPacket :: (%s) :: start\",this.options.clientId),r=r||x,t=t||x;const n=E(this,e);if(n)t(n);else{if(!this.connected)return\"auth\"===e.cmd?(this._shiftPingInterval(),void C(this,e,t)):(y(\"_sendPacket :: client not connected. Storing packet offline.\"),void this._storePacket(e,t,r));switch(this._shiftPingInterval(),e.cmd){case\"publish\":break;case\"pubrel\":return void T(this,e,t,r);default:return void C(this,e,t)}switch(e.qos){case 2:case 1:T(this,e,t,r);break;case 0:default:C(this,e,t);break}y(\"_sendPacket :: (%s) :: end\",this.options.clientId)}},O.prototype._storePacket=function(e,t,r){y(\"_storePacket :: packet: %o\",e),y(\"_storePacket :: cb? %s\",!!t),r=r||x;let n=e;if(\"publish\"===n.cmd){n=p(e);const r=k(this,n);if(r)return t&&t(r)}0===(n.qos||0)&&this.queueQoSZero||\"publish\"!==n.cmd?this.queue.push({packet:n,cb:t}):n.qos>0?(t=this.outgoing[n.messageId]?this.outgoing[n.messageId].cb:null,this.outgoingStore.put(n,(function(e){if(e)return t&&t(e);r()}))):t&&t(new Error(\"No connection to broker\"))},O.prototype._setupPingTimer=function(){y(\"_setupPingTimer :: keepalive %d (seconds)\",this.options.keepalive);const e=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=f((function(){e._checkPing()}),1e3*this.options.keepalive))},O.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(1e3*this.options.keepalive)},O.prototype._checkPing=function(){y(\"_checkPing :: checking ping...\"),this.pingResp?(y(\"_checkPing :: ping response received. Clearing flag and sending `pingreq`\"),this.pingResp=!1,this._sendPacket({cmd:\"pingreq\"})):(y(\"_checkPing :: calling _cleanUp with force true\"),this._cleanUp(!0))},O.prototype._handlePingresp=function(){this.pingResp=!0},O.prototype._handleConnack=function(e){y(\"_handleConnack\");const t=this.options,r=t.protocolVersion,n=5===r?e.reasonCode:e.returnCode;if(clearTimeout(this.connackTimer),delete this.topicAliasSend,e.properties){if(e.properties.topicAliasMaximum){if(e.properties.topicAliasMaximum>65535)return void this.emit(\"error\",new Error(\"topicAliasMaximum from broker is out of range\"));e.properties.topicAliasMaximum>0&&(this.topicAliasSend=new a(e.properties.topicAliasMaximum))}e.properties.serverKeepAlive&&t.keepalive&&(t.keepalive=e.properties.serverKeepAlive,this._shiftPingInterval()),e.properties.maximumPacketSize&&(t.properties||(t.properties={}),t.properties.maximumPacketSize=e.properties.maximumPacketSize)}if(0===n)this.reconnecting=!1,this._onConnect(e);else if(n>0){const e=new Error(\"Connection refused: \"+_[n]);e.code=n,this.emit(\"error\",e)}},O.prototype._handleAuth=function(e){const t=this.options,r=t.protocolVersion,n=5===r?e.reasonCode:e.returnCode;if(5!==r){const e=new Error(\"Protocol error: Auth packets are only supported in MQTT 5. Your version:\"+r);return e.code=n,void this.emit(\"error\",e)}const i=this;this.handleAuth(e,(function(e,t){if(e)i.emit(\"error\",e);else if(24===n)i.reconnecting=!1,i._sendPacket(t);else{const t=new Error(\"Connection refused: \"+_[n]);e.code=n,i.emit(\"error\",t)}}))},O.prototype.handleAuth=function(e,t){t()},O.prototype._handlePublish=function(e,t){y(\"_handlePublish: packet %o\",e),t=\"undefined\"!==typeof t?t:x;let r=e.topic.toString();const n=e.payload,i=e.qos,o=e.messageId,s=this,a=this.options,u=[0,16,128,131,135,144,145,151,153];if(5===this.options.protocolVersion){let t;if(e.properties&&(t=e.properties.topicAlias),\"undefined\"!==typeof t)if(0===r.length){if(!(t>0&&t<=65535))return y(\"_handlePublish :: topic alias out of range. alias: %d\",t),void this.emit(\"error\",new Error(\"Received Topic Alias is out of range\"));{const e=this.topicAliasRecv.getTopicByAlias(t);if(!e)return y(\"_handlePublish :: unregistered topic alias. alias: %d\",t),void this.emit(\"error\",new Error(\"Received unregistered Topic Alias\"));r=e,y(\"_handlePublish :: topic complemented by alias. topic: %s - alias: %d\",r,t)}}else{if(!this.topicAliasRecv.put(r,t))return y(\"_handlePublish :: topic alias out of range. alias: %d\",t),void this.emit(\"error\",new Error(\"Received Topic Alias is out of range\"));y(\"_handlePublish :: registered topic: %s - alias: %d\",r,t)}}switch(y(\"_handlePublish: qos %d\",i),i){case 2:a.customHandleAcks(r,n,e,(function(r,n){return r instanceof Error||(n=r,r=null),r?s.emit(\"error\",r):-1===u.indexOf(n)?s.emit(\"error\",new Error(\"Wrong reason code for pubrec\")):void(n?s._sendPacket({cmd:\"pubrec\",messageId:o,reasonCode:n},t):s.incomingStore.put(e,(function(){s._sendPacket({cmd:\"pubrec\",messageId:o},t)})))}));break;case 1:a.customHandleAcks(r,n,e,(function(i,a){return i instanceof Error||(a=i,i=null),i?s.emit(\"error\",i):-1===u.indexOf(a)?s.emit(\"error\",new Error(\"Wrong reason code for puback\")):(a||s.emit(\"message\",r,n,e),void s.handleMessage(e,(function(e){if(e)return t&&t(e);s._sendPacket({cmd:\"puback\",messageId:o,reasonCode:a},t)})))}));break;case 0:this.emit(\"message\",r,n,e),this.handleMessage(e,t);break;default:y(\"_handlePublish: unknown QoS. Doing nothing.\");break}},O.prototype.handleMessage=function(e,t){t()},O.prototype._handleAck=function(e){const t=e.messageId,r=e.cmd;let n=null;const i=this.outgoing[t]?this.outgoing[t].cb:null,o=this;let s;if(i){switch(y(\"_handleAck :: packet type\",r),r){case\"pubcomp\":case\"puback\":{const r=e.reasonCode;r&&r>0&&16!==r&&(s=new Error(\"Publish error: \"+_[r]),s.code=r,i(s,e)),delete this.outgoing[t],this.outgoingStore.del(e,i),this.messageIdProvider.deallocate(t),this._invokeStoreProcessingQueue();break}case\"pubrec\":{n={cmd:\"pubrel\",qos:2,messageId:t};const r=e.reasonCode;r&&r>0&&16!==r?(s=new Error(\"Publish error: \"+_[r]),s.code=r,i(s,e)):this._sendPacket(n);break}case\"suback\":delete this.outgoing[t],this.messageIdProvider.deallocate(t);for(let r=0;r<e.granted.length;r++)if(0!==(128&e.granted[r])){const e=this.messageIdToTopic[t];e&&e.forEach((function(e){delete o._resubscribeTopics[e]}))}this._invokeStoreProcessingQueue(),i(null,e);break;case\"unsuback\":delete this.outgoing[t],this.messageIdProvider.deallocate(t),this._invokeStoreProcessingQueue(),i(null);break;default:o.emit(\"error\",new Error(\"unrecognized packet type\"))}this.disconnecting&&0===Object.keys(this.outgoing).length&&this.emit(\"outgoingEmpty\")}else y(\"_handleAck :: Server sent an ack in error. Ignoring.\")},O.prototype._handlePubrel=function(e,t){y(\"handling pubrel packet\"),t=\"undefined\"!==typeof t?t:x;const r=e.messageId,n=this,i={cmd:\"pubcomp\",messageId:r};n.incomingStore.get(e,(function(e,r){e?n._sendPacket(i,t):(n.emit(\"message\",r.topic,r.payload,r),n.handleMessage(r,(function(e){if(e)return t(e);n.incomingStore.del(r,x),n._sendPacket(i,t)})))}))},O.prototype._handleDisconnect=function(e){this.emit(\"disconnect\",e)},O.prototype._nextId=function(){return this.messageIdProvider.allocate()},O.prototype.getLastMessageId=function(){return this.messageIdProvider.getLastAllocated()},O.prototype._resubscribe=function(){y(\"_resubscribe\");const e=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||5===this.options.protocolVersion&&!this.connackPacket.sessionPresent)&&e.length>0)if(this.options.resubscribe)if(5===this.options.protocolVersion){y(\"_resubscribe: protocolVersion 5\");for(let t=0;t<e.length;t++){const r={};r[e[t]]=this._resubscribeTopics[e[t]],r.resubscribe=!0,this.subscribe(r,{properties:r[e[t]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1},O.prototype._onConnect=function(e){if(this.disconnected)return void this.emit(\"connect\",e);const t=this;function r(){let n=t.outgoingStore.createStream();function i(){t._storeProcessing=!1,t._packetIdsDuringStoreProcessing={}}function o(){n.destroy(),n=null,t._flushStoreProcessingQueue(),i()}function s(){if(!n)return;t._storeProcessing=!0;const e=n.read(1);let r;e?t._packetIdsDuringStoreProcessing[e.messageId]?s():t.disconnecting||t.reconnectTimer?n.destroy&&n.destroy():(r=t.outgoing[e.messageId]?t.outgoing[e.messageId].cb:null,t.outgoing[e.messageId]={volatile:!1,cb:function(e,t){r&&r(e,t),s()}},t._packetIdsDuringStoreProcessing[e.messageId]=!0,t.messageIdProvider.register(e.messageId)?t._sendPacket(e):y(\"messageId: %d has already used.\",e.messageId)):n.once(\"readable\",s)}t.once(\"close\",o),n.on(\"error\",(function(e){i(),t._flushStoreProcessingQueue(),t.removeListener(\"close\",o),t.emit(\"error\",e)})),n.on(\"end\",(function(){let n=!0;for(const e in t._packetIdsDuringStoreProcessing)if(!t._packetIdsDuringStoreProcessing[e]){n=!1;break}n?(i(),t.removeListener(\"close\",o),t._invokeAllStoreProcessingQueue(),t.emit(\"connect\",e)):r()})),s()}this.connackPacket=e,this.messageIdProvider.clear(),this._setupPingTimer(),this.connected=!0,r()},O.prototype._invokeStoreProcessingQueue=function(){if(this._storeProcessingQueue.length>0){const e=this._storeProcessingQueue[0];if(e&&e.invoke())return this._storeProcessingQueue.shift(),!0}return!1},O.prototype._invokeAllStoreProcessingQueue=function(){while(this._invokeStoreProcessingQueue());},O.prototype._flushStoreProcessingQueue=function(){for(const e of this._storeProcessingQueue)e.cbStorePut&&e.cbStorePut(new Error(\"Connection closed\")),e.callback&&e.callback(new Error(\"Connection closed\"));this._storeProcessingQueue.splice(0)},e.exports=O}).call(this,r(\"f28c\"),r(\"c8ba\"))},e099:function(e,t,r){\"use strict\";var n=function(e){switch(typeof e){case\"string\":return e;case\"boolean\":return e?\"true\":\"false\";case\"number\":return isFinite(e)?e:\"\";default:return\"\"}};e.exports=function(e,t,r,a){return t=t||\"&\",r=r||\"=\",null===e&&(e=void 0),\"object\"===typeof e?o(s(e),(function(s){var a=encodeURIComponent(n(s))+r;return i(e[s])?o(e[s],(function(e){return a+encodeURIComponent(n(e))})).join(t):a+encodeURIComponent(n(e[s]))})).join(t):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(e)):\"\"};var i=Array.isArray||function(e){return\"[object Array]\"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var s=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},e3db:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return\"[object Array]\"==r.call(e)}},e4fc:function(e,t,r){(function(n){function i(){return!(\"undefined\"===typeof window||!window.process||\"renderer\"!==window.process.type&&!window.process.__nwjs)||(\"undefined\"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/))&&(\"undefined\"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||\"undefined\"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||\"undefined\"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)&&parseInt(RegExp.$1,10)>=31||\"undefined\"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/))}function o(t){if(t[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+t[0]+(this.useColors?\"%c \":\" \")+\"+\"+e.exports.humanize(this.diff),!this.useColors)return;const r=\"color: \"+this.color;t.splice(1,0,r,\"color: inherit\");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{\"%%\"!==e&&(n++,\"%c\"===e&&(i=n))}),t.splice(i,0,r)}function s(e){try{e?t.storage.setItem(\"debug\",e):t.storage.removeItem(\"debug\")}catch(r){}}function a(){let e;try{e=t.storage.getItem(\"debug\")}catch(r){}return!e&&\"undefined\"!==typeof n&&\"env\"in n&&(e=Object({NODE_ENV:\"production\",BASE_URL:\"/\"}).DEBUG),e}function u(){try{return localStorage}catch(e){}}t.formatArgs=o,t.save=s,t.load=a,t.useColors=i,t.storage=u(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\"))}})(),t.colors=[\"#0000CC\",\"#0000FF\",\"#0033CC\",\"#0033FF\",\"#0066CC\",\"#0066FF\",\"#0099CC\",\"#0099FF\",\"#00CC00\",\"#00CC33\",\"#00CC66\",\"#00CC99\",\"#00CCCC\",\"#00CCFF\",\"#3300CC\",\"#3300FF\",\"#3333CC\",\"#3333FF\",\"#3366CC\",\"#3366FF\",\"#3399CC\",\"#3399FF\",\"#33CC00\",\"#33CC33\",\"#33CC66\",\"#33CC99\",\"#33CCCC\",\"#33CCFF\",\"#6600CC\",\"#6600FF\",\"#6633CC\",\"#6633FF\",\"#66CC00\",\"#66CC33\",\"#9900CC\",\"#9900FF\",\"#9933CC\",\"#9933FF\",\"#99CC00\",\"#99CC33\",\"#CC0000\",\"#CC0033\",\"#CC0066\",\"#CC0099\",\"#CC00CC\",\"#CC00FF\",\"#CC3300\",\"#CC3333\",\"#CC3366\",\"#CC3399\",\"#CC33CC\",\"#CC33FF\",\"#CC6600\",\"#CC6633\",\"#CC9900\",\"#CC9933\",\"#CCCC00\",\"#CCCC33\",\"#FF0000\",\"#FF0033\",\"#FF0066\",\"#FF0099\",\"#FF00CC\",\"#FF00FF\",\"#FF3300\",\"#FF3333\",\"#FF3366\",\"#FF3399\",\"#FF33CC\",\"#FF33FF\",\"#FF6600\",\"#FF6633\",\"#FF9900\",\"#FF9933\",\"#FFCC00\",\"#FFCC33\"],t.log=console.debug||console.log||(()=>{}),e.exports=r(\"454e\")(t);const{formatters:c}=e.exports;c.j=function(e){try{return JSON.stringify(e)}catch(t){return\"[UnexpectedJSONParseError]: \"+t.message}}}).call(this,r(\"f28c\"))},e7d0:function(e,t,r){\"use strict\";function n(e){if(!(this instanceof n))return new n(e);this.aliasToTopic={},this.max=e}n.prototype.put=function(e,t){return!(0===t||t>this.max)&&(this.aliasToTopic[t]=e,this.length=Object.keys(this.aliasToTopic).length,!0)},n.prototype.getTopicByAlias=function(e){return this.aliasToTopic[e]},n.prototype.clear=function(){this.aliasToTopic={}},e.exports=n},e7fc:function(e,t,r){\"use strict\";(function(t){const n=r(\"df86\"),i=r(\"ea08\"),o=r(\"0b16\"),s=r(\"53a8\"),a=r(\"db34\")(\"mqttjs\"),u={};function c(e){let t;e.auth&&(t=e.auth.match(/^(.+):(.+)$/),t?(e.username=t[1],e.password=t[2]):e.username=e.auth)}function l(e,t){if(a(\"connecting to an MQTT broker...\"),\"object\"!==typeof e||t||(t=e,e=null),t=t||{},e){const r=o.parse(e,!0);if(null!=r.port&&(r.port=Number(r.port)),t=s(r,t),null===t.protocol)throw new Error(\"Missing protocol\");t.protocol=t.protocol.replace(/:$/,\"\")}if(c(t),t.query&&\"string\"===typeof t.query.clientId&&(t.clientId=t.query.clientId),t.cert&&t.key){if(!t.protocol)throw new Error(\"Missing secure protocol key\");if(-1===[\"mqtts\",\"wss\",\"wxs\",\"alis\"].indexOf(t.protocol))switch(t.protocol){case\"mqtt\":t.protocol=\"mqtts\";break;case\"ws\":t.protocol=\"wss\";break;case\"wx\":t.protocol=\"wxs\";break;case\"ali\":t.protocol=\"alis\";break;default:throw new Error('Unknown protocol for secure connection: \"'+t.protocol+'\"!')}}if(!u[t.protocol]){const e=-1!==[\"mqtts\",\"wss\"].indexOf(t.protocol);t.protocol=[\"mqtt\",\"mqtts\",\"ws\",\"wss\",\"wx\",\"wxs\",\"ali\",\"alis\"].filter((function(t,r){return(!e||r%2!==0)&&\"function\"===typeof u[t]}))[0]}if(!1===t.clean&&!t.clientId)throw new Error(\"Missing clientId for unclean clients\");function r(e){return t.servers&&(e._reconnectCount&&e._reconnectCount!==t.servers.length||(e._reconnectCount=0),t.host=t.servers[e._reconnectCount].host,t.port=t.servers[e._reconnectCount].port,t.protocol=t.servers[e._reconnectCount].protocol?t.servers[e._reconnectCount].protocol:t.defaultProtocol,t.hostname=t.host,e._reconnectCount++),a(\"calling streambuilder for\",t.protocol),u[t.protocol](e,t)}t.protocol&&(t.defaultProtocol=t.protocol);const i=new n(r,t);return i.on(\"error\",(function(){})),i}\"undefined\"!==typeof t&&\"browser\"!==t.title||\"function\"!==typeof r?(u.mqtt=r(\"05ee\"),u.tcp=r(\"05ee\"),u.ssl=r(\"fe3c\"),u.tls=r(\"fe3c\"),u.mqtts=r(\"fe3c\")):(u.wx=r(\"8311\"),u.wxs=r(\"8311\"),u.ali=r(\"c4c7\"),u.alis=r(\"c4c7\")),u.ws=r(\"fcb9\"),u.wss=r(\"fcb9\"),e.exports=l,e.exports.connect=l,e.exports.MqttClient=n,e.exports.Store=i}).call(this,r(\"f28c\"))},e937:function(e,t,r){\"use strict\";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}var c=r(\"b639\"),l=c.Buffer,h=r(5),f=h.inspect,p=f&&f.custom||\"inspect\";function d(e,t,r){l.prototype.copy.call(e,t,r)}e.exports=function(){function e(){s(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:\"push\",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:\"unshift\",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:\"shift\",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:\"clear\",value:function(){this.head=this.tail=null,this.length=0}},{key:\"join\",value:function(e){if(0===this.length)return\"\";var t=this.head,r=\"\"+t.data;while(t=t.next)r+=e+t.data;return r}},{key:\"concat\",value:function(e){if(0===this.length)return l.alloc(0);var t=l.allocUnsafe(e>>>0),r=this.head,n=0;while(r)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:\"consume\",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:\"first\",value:function(){return this.head.data}},{key:\"_getString\",value:function(e){var t=this.head,r=1,n=t.data;e-=n.length;while(t=t.next){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),e-=o,0===e){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:\"_getBuffer\",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;r.data.copy(t),e-=r.data.length;while(r=r.next){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),e-=o,0===e){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:p,value:function(e,t){return f(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},ea08:function(e,t,r){\"use strict\";const n=r(\"53a8\"),i=r(\"035d\").Readable,o={objectMode:!0},s={clean:!0};function a(e){if(!(this instanceof a))return new a(e);this.options=e||{},this.options=n(s,e),this._inflights=new Map}a.prototype.put=function(e,t){return this._inflights.set(e.messageId,e),t&&t(),this},a.prototype.createStream=function(){const e=new i(o),t=[];let r=!1,n=0;return this._inflights.forEach((function(e,r){t.push(e)})),e._read=function(){!r&&n<t.length?this.push(t[n++]):this.push(null)},e.destroy=function(){if(r)return;const e=this;r=!0,setTimeout((function(){e.emit(\"close\")}),0)},e},a.prototype.del=function(e,t){return e=this._inflights.get(e.messageId),e?(this._inflights.delete(e.messageId),t(null,e)):t&&t(new Error(\"missing packet\")),this},a.prototype.get=function(e,t){return e=this._inflights.get(e.messageId),e?t(null,e):t&&t(new Error(\"missing packet\")),this},a.prototype.close=function(e){this.options.clean&&(this._inflights=null),e&&e()},e.exports=a},edb3:function(e,t,r){\"use strict\";(function(t){function r(e,r){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(s,this,e)):t.nextTick(s,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!r&&e?o._writableState?o._writableState.errorEmitted?t.nextTick(i,o):(o._writableState.errorEmitted=!0,t.nextTick(n,o,e)):t.nextTick(n,o,e):r?(t.nextTick(i,o),r(e)):t.nextTick(i,o)})),this)}function n(e,t){s(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(\"close\")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit(\"error\",t)}function a(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit(\"error\",t)}e.exports={destroy:r,undestroy:o,errorOrDestroy:a}}).call(this,r(\"f28c\"))},f0cb:function(e,t,r){(function(t){const r=65536,n={},i=t.isBuffer(t.from([1,2]).subarray(0,1));function o(e){const r=t.allocUnsafe(2);return r.writeUInt8(e>>8,0),r.writeUInt8(255&e,1),r}function s(){for(let e=0;e<r;e++)n[e]=o(e)}function a(e){const r=4;let n=0,o=0;const s=t.allocUnsafe(r);do{n=e%128|0,e=e/128|0,e>0&&(n|=128),s.writeUInt8(n,o++)}while(e>0&&o<r);return e>0&&(o=0),i?s.subarray(0,o):s.slice(0,o)}function u(e){const r=t.allocUnsafe(4);return r.writeUInt32BE(e,0),r}e.exports={cache:n,generateCache:s,generateNumber:o,genBufVariableByteInt:a,generate4ByteBuffer:u}}).call(this,r(\"b639\").Buffer)},f214:function(e,t,r){t=e.exports=r(\"0e8b\"),t.Stream=t,t.Readable=t,t.Writable=r(\"f6ba\"),t.Duplex=r(\"a493\"),t.Transform=r(\"fe34\"),t.PassThrough=r(\"9d37\"),t.finished=r(\"bf09\"),t.pipeline=r(\"386b7\")},f482:function(e,t,r){\"use strict\";(function(t){function r(e,r){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(s,this,e)):t.nextTick(s,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!r&&e?o._writableState?o._writableState.errorEmitted?t.nextTick(i,o):(o._writableState.errorEmitted=!0,t.nextTick(n,o,e)):t.nextTick(n,o,e):r?(t.nextTick(i,o),r(e)):t.nextTick(i,o)})),this)}function n(e,t){s(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(\"close\")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit(\"error\",t)}function a(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit(\"error\",t)}e.exports={destroy:r,undestroy:o,errorOrDestroy:a}}).call(this,r(\"f28c\"))},f688:function(e,t,r){\"use strict\";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}var c=r(\"b639\"),l=c.Buffer,h=r(3),f=h.inspect,p=f&&f.custom||\"inspect\";function d(e,t,r){l.prototype.copy.call(e,t,r)}e.exports=function(){function e(){s(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:\"push\",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:\"unshift\",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:\"shift\",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:\"clear\",value:function(){this.head=this.tail=null,this.length=0}},{key:\"join\",value:function(e){if(0===this.length)return\"\";var t=this.head,r=\"\"+t.data;while(t=t.next)r+=e+t.data;return r}},{key:\"concat\",value:function(e){if(0===this.length)return l.alloc(0);var t=l.allocUnsafe(e>>>0),r=this.head,n=0;while(r)d(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:\"consume\",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:\"first\",value:function(){return this.head.data}},{key:\"_getString\",value:function(e){var t=this.head,r=1,n=t.data;e-=n.length;while(t=t.next){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),e-=o,0===e){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:\"_getBuffer\",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;r.data.copy(t),e-=r.data.length;while(r=r.next){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),e-=o,0===e){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:p,value:function(e,t){return f(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},f6ba:function(e,t,r){\"use strict\";(function(t,n){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){K(t,e)}}var o;e.exports=T,T.WritableState=A;var s={deprecate:r(\"b7d1\")},a=r(\"b98b\"),u=r(\"b639\").Buffer,c=t.Uint8Array||function(){};function l(e){return u.from(e)}function h(e){return u.isBuffer(e)||e instanceof c}var f,p=r(\"f482\"),d=r(\"86c6\"),g=d.getHighWaterMark,y=r(\"9bfc\").codes,b=y.ERR_INVALID_ARG_TYPE,m=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_MULTIPLE_CALLBACK,v=y.ERR_STREAM_CANNOT_PIPE,_=y.ERR_STREAM_DESTROYED,S=y.ERR_STREAM_NULL_VALUES,E=y.ERR_STREAM_WRITE_AFTER_END,k=y.ERR_UNKNOWN_ENCODING,C=p.errorOrDestroy;function R(){}function A(e,t,n){o=o||r(\"a493\"),e=e||{},\"boolean\"!==typeof n&&(n=t instanceof o),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=g(this,e,\"writableHighWaterMark\",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||\"utf8\",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){N(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function T(e){o=o||r(\"a493\");var t=this instanceof o;if(!t&&!f.call(T,this))return new T(e);this._writableState=new A(e,this,t),this.writable=!0,e&&(\"function\"===typeof e.write&&(this._write=e.write),\"function\"===typeof e.writev&&(this._writev=e.writev),\"function\"===typeof e.destroy&&(this._destroy=e.destroy),\"function\"===typeof e.final&&(this._final=e.final)),a.call(this)}function x(e,t){var r=new E;C(e,r),n.nextTick(t,r)}function O(e,t,r,i){var o;return null===r?o=new S:\"string\"===typeof r||t.objectMode||(o=new b(\"chunk\",[\"string\",\"Buffer\"],r)),!o||(C(e,o),n.nextTick(i,o),!1)}function P(e,t,r){return e.objectMode||!1===e.decodeStrings||\"string\"!==typeof t||(t=u.from(t,r)),t}function I(e,t,r,n,i,o){if(!r){var s=P(t,n,i);n!==s&&(r=!0,i=\"buffer\",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else B(e,t,!1,a,n,i,o);return u}function B(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _(\"write\")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function M(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(W,e,t),e._writableState.errorEmitted=!0,C(e,i)):(o(i),e._writableState.errorEmitted=!0,C(e,i),W(e,t))}function L(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function N(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(\"function\"!==typeof o)throw new w;if(L(r),t)M(e,r,i,t,o);else{var s=D(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||U(e,r),i?n.nextTick(j,e,r,s,o):j(e,r,s,o)}}function j(e,t,r,n){r||F(e,t),t.pendingcb--,n(),W(e,t)}function F(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit(\"drain\"))}function U(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),s=t.corkedRequestsFree;s.entry=r;var a=0,u=!0;while(r)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,B(e,t,!0,t.length,o,\"\",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{while(r){var c=r.chunk,l=r.encoding,h=r.callback,f=t.objectMode?1:c.length;if(B(e,t,!1,f,c,l,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function D(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function q(e,t){e._final((function(r){t.pendingcb--,r&&C(e,r),t.prefinished=!0,e.emit(\"prefinish\"),W(e,t)}))}function V(e,t){t.prefinished||t.finalCalled||(\"function\"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit(\"prefinish\")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(q,e,t)))}function W(e,t){var r=D(t);if(r&&(V(e,t),0===t.pendingcb&&(t.finished=!0,e.emit(\"finish\"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function z(e,t,r){t.ending=!0,W(e,t),r&&(t.finished?n.nextTick(r):e.once(\"finish\",r)),t.ended=!0,e.writable=!1}function K(e,t,r){var n=e.entry;e.entry=null;while(n){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}r(\"3fb5\")(T,a),A.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(A.prototype,\"buffer\",{get:s.deprecate((function(){return this.getBuffer()}),\"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.\",\"DEP0003\")})}catch(e){}}(),\"function\"===typeof Symbol&&Symbol.hasInstance&&\"function\"===typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!f.call(this,e)||this===T&&(e&&e._writableState instanceof A)}})):f=function(e){return e instanceof this},T.prototype.pipe=function(){C(this,new v)},T.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!u.isBuffer(e)&&(e=l(e)),\"function\"===typeof t&&(r=t,t=null),o?t=\"buffer\":t||(t=n.defaultEncoding),\"function\"!==typeof r&&(r=R),n.ending?x(this,r):(o||O(this,n,e,r))&&(n.pendingcb++,i=I(this,n,o,e,t,r)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||U(this,e))},T.prototype.setDefaultEncoding=function(e){if(\"string\"===typeof e&&(e=e.toLowerCase()),!([\"hex\",\"utf8\",\"utf-8\",\"ascii\",\"binary\",\"base64\",\"ucs2\",\"ucs-2\",\"utf16le\",\"utf-16le\",\"raw\"].indexOf((e+\"\").toLowerCase())>-1))throw new k(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,\"writableBuffer\",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,\"writableHighWaterMark\",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,r){r(new m(\"_write()\"))},T.prototype._writev=null,T.prototype.end=function(e,t,r){var n=this._writableState;return\"function\"===typeof e?(r=e,e=null,t=null):\"function\"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||z(this,n,r),this},Object.defineProperty(T.prototype,\"writableLength\",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,\"destroyed\",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=p.destroy,T.prototype._undestroy=p.undestroy,T.prototype._destroy=function(e,t){t(e)}}).call(this,r(\"c8ba\"),r(\"f28c\"))},f9c1:function(e,t){function r(e){var t=e._readableState;return t?t.objectMode||\"number\"===typeof e._duplexState?e.read():e.read(n(t)):null}function n(e){return e.buffer.length?e.buffer.head?e.buffer.head.data.length:e.buffer[0].length:e.length}e.exports=r},faa1:function(e,t,r){\"use strict\";var n,i=\"object\"===typeof Reflect?Reflect:null,o=i&&\"function\"===typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function s(e){console&&console.warn&&console.warn(e)}n=i&&\"function\"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function u(){u.init.call(this)}e.exports=u,e.exports.once=v,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function l(e){if(\"function\"!==typeof e)throw new TypeError('The \"listener\" argument must be of type Function. Received type '+typeof e)}function h(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function f(e,t,r,n){var i,o,a;if(l(r),o=e._events,void 0===o?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit(\"newListener\",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if(\"function\"===typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),i=h(e),i>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error(\"Possible EventEmitter memory leak detected. \"+a.length+\" \"+String(t)+\" listeners added. Use emitter.setMaxListeners() to increase limit\");u.name=\"MaxListenersExceededWarning\",u.emitter=e,u.type=t,u.count=a.length,s(u)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=p.bind(n);return i.listener=r,n.wrapFn=i,i}function g(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:\"function\"===typeof i?r?[i.listener||i]:[i]:r?w(i):b(i,i.length)}function y(e){var t=this._events;if(void 0!==t){var r=t[e];if(\"function\"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function b(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function w(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function v(e,t){return new Promise((function(r,n){function i(){void 0!==o&&e.removeListener(\"error\",o),r([].slice.call(arguments))}var o;\"error\"!==t&&(o=function(r){e.removeListener(t,i),n(r)},e.once(\"error\",o)),e.once(t,i)}))}Object.defineProperty(u,\"defaultMaxListeners\",{enumerable:!0,get:function(){return c},set:function(e){if(\"number\"!==typeof e||e<0||a(e))throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received '+e+\".\");c=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if(\"number\"!==typeof e||e<0||a(e))throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received '+e+\".\");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return h(this)},u.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n=\"error\"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error(\"Unhandled error.\"+(s?\" (\"+s.message+\")\":\"\"));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if(\"function\"===typeof u)o(u,this,t);else{var c=u.length,l=b(u,c);for(r=0;r<c;++r)o(l[r],this,t)}return!0},u.prototype.addListener=function(e,t){return f(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return f(this,e,t,!0)},u.prototype.once=function(e,t){return l(t),this.on(e,d(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,d(this,e,t)),this},u.prototype.removeListener=function(e,t){var r,n,i,o,s;if(l(t),n=this._events,void 0===n)return this;if(r=n[e],void 0===r)return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit(\"removeListener\",e,r.listener||t));else if(\"function\"!==typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():m(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit(\"removeListener\",e,s||t)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var t,r,n;if(r=this._events,void 0===r)return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)i=o[n],\"removeListener\"!==i&&this.removeAllListeners(i);return this.removeAllListeners(\"removeListener\"),this._events=Object.create(null),this._eventsCount=0,this}if(t=r[e],\"function\"===typeof t)this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},u.prototype.listeners=function(e){return g(this,e,!0)},u.prototype.rawListeners=function(e){return g(this,e,!1)},u.listenerCount=function(e,t){return\"function\"===typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},u.prototype.listenerCount=y,u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},fbd7:function(e,t,r){\"use strict\";function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var i={};function o(e,t,r){function o(e,r,n){return\"string\"===typeof t?t:t(e,r,n)}r||(r=Error);var s=function(e){function t(t,r,n){return e.call(this,o(t,r,n))||this}return n(t,e),t}(r);s.prototype.name=r.name,s.prototype.code=e,i[e]=s}function s(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?\"one of \".concat(t,\" \").concat(e.slice(0,r-1).join(\", \"),\", or \")+e[r-1]:2===r?\"one of \".concat(t,\" \").concat(e[0],\" or \").concat(e[1]):\"of \".concat(t,\" \").concat(e[0])}return\"of \".concat(t,\" \").concat(String(e))}function a(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function u(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function c(e,t,r){return\"number\"!==typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}o(\"ERR_INVALID_OPT_VALUE\",(function(e,t){return'The value \"'+t+'\" is invalid for option \"'+e+'\"'}),TypeError),o(\"ERR_INVALID_ARG_TYPE\",(function(e,t,r){var n,i;if(\"string\"===typeof t&&a(t,\"not \")?(n=\"must not be\",t=t.replace(/^not /,\"\")):n=\"must be\",u(e,\" argument\"))i=\"The \".concat(e,\" \").concat(n,\" \").concat(s(t,\"type\"));else{var o=c(e,\".\")?\"property\":\"argument\";i='The \"'.concat(e,'\" ').concat(o,\" \").concat(n,\" \").concat(s(t,\"type\"))}return i+=\". Received type \".concat(typeof r),i}),TypeError),o(\"ERR_STREAM_PUSH_AFTER_EOF\",\"stream.push() after EOF\"),o(\"ERR_METHOD_NOT_IMPLEMENTED\",(function(e){return\"The \"+e+\" method is not implemented\"})),o(\"ERR_STREAM_PREMATURE_CLOSE\",\"Premature close\"),o(\"ERR_STREAM_DESTROYED\",(function(e){return\"Cannot call \"+e+\" after a stream was destroyed\"})),o(\"ERR_MULTIPLE_CALLBACK\",\"Callback called multiple times\"),o(\"ERR_STREAM_CANNOT_PIPE\",\"Cannot pipe, not readable\"),o(\"ERR_STREAM_WRITE_AFTER_END\",\"write after end\"),o(\"ERR_STREAM_NULL_VALUES\",\"May not write null values to stream\",TypeError),o(\"ERR_UNKNOWN_ENCODING\",(function(e){return\"Unknown encoding: \"+e}),TypeError),o(\"ERR_STREAM_UNSHIFT_AFTER_END_EVENT\",\"stream.unshift() after end event\"),e.exports.codes=i},fcb9:function(e,t,r){\"use strict\";(function(t){const{Buffer:n}=r(\"b639\"),i=r(\"a9b9\"),o=r(\"db34\")(\"mqttjs:ws\"),s=r(\"56ac\"),a=r(\"035d\").Transform,u=[\"rejectUnauthorized\",\"ca\",\"cert\",\"key\",\"pfx\",\"passphrase\"],c=\"undefined\"!==typeof t&&\"browser\"===t.title||\"function\"===typeof r;function l(e,t){let r=e.protocol+\"://\"+e.hostname+\":\"+e.port+e.path;return\"function\"===typeof e.transformWsUrl&&(r=e.transformWsUrl(r,e,t)),r}function h(e){const t=e;return e.hostname||(t.hostname=\"localhost\"),e.port||(\"wss\"===e.protocol?t.port=443:t.port=80),e.path||(t.path=\"/\"),e.wsOptions||(t.wsOptions={}),c||\"wss\"!==e.protocol||u.forEach((function(r){Object.prototype.hasOwnProperty.call(e,r)&&!Object.prototype.hasOwnProperty.call(e.wsOptions,r)&&(t.wsOptions[r]=e[r])})),t}function f(e){const t=h(e);if(t.hostname||(t.hostname=t.host),!t.hostname){if(\"undefined\"===typeof document)throw new Error(\"Could not determine host. Specify host manually.\");const e=new URL(document.URL);t.hostname=e.hostname,t.port||(t.port=e.port)}return void 0===t.objectMode&&(t.objectMode=!(!0===t.binary||void 0===t.binary)),t}function p(e,t,r){o(\"createWebSocket\"),o(\"protocol: \"+r.protocolId+\" \"+r.protocolVersion);const n=\"MQIsdp\"===r.protocolId&&3===r.protocolVersion?\"mqttv3.1\":\"mqtt\";o(\"creating new Websocket for url: \"+t+\" and protocol: \"+n);const s=new i(t,[n],r.wsOptions);return s}function d(e,t){const r=\"MQIsdp\"===t.protocolId&&3===t.protocolVersion?\"mqttv3.1\":\"mqtt\",n=l(t,e),i=new WebSocket(n,[r]);return i.binaryType=\"arraybuffer\",i}function g(e,t){o(\"streamBuilder\");const r=h(t),n=l(r,e),s=p(e,n,r),a=i.createWebSocketStream(s,r.wsOptions);return a.url=n,s.on(\"close\",()=>{a.destroy()}),a}function y(e,t){let r;o(\"browserStreamBuilder\");const i=f(t),u=i.browserBufferSize||524288,c=t.browserBufferTimeout||1e3,l=!t.objectMode,h=d(e,t),p=y(t,S,E);t.objectMode||(p._writev=_),p.on(\"close\",()=>{h.close()});const g=\"undefined\"!==typeof h.addEventListener;function y(e,t,r){const n=new a({objectModeMode:e.objectMode});return n._write=t,n._flush=r,n}function b(){r.setReadable(p),r.setWritable(p),r.emit(\"connect\")}function m(){r.end(),r.destroy()}function w(e){r.destroy(e)}function v(e){let t=e.data;t=t instanceof ArrayBuffer?n.from(t):n.from(t,\"utf8\"),p.push(t)}function _(e,t){const r=new Array(e.length);for(let i=0;i<e.length;i++)\"string\"===typeof e[i].chunk?r[i]=n.from(e[i],\"utf8\"):r[i]=e[i].chunk;this._write(n.concat(r),\"binary\",t)}function S(e,t,r){h.bufferedAmount>u&&setTimeout(S,c,e,t,r),l&&\"string\"===typeof e&&(e=n.from(e,\"utf8\"));try{h.send(e)}catch(i){return r(i)}r()}function E(e){h.close(),e()}return h.readyState===h.OPEN?r=p:(r=r=s(void 0,void 0,t),t.objectMode||(r._writev=_),g?h.addEventListener(\"open\",b):h.onopen=b),r.socket=h,g?(h.addEventListener(\"close\",m),h.addEventListener(\"error\",w),h.addEventListener(\"message\",v)):(h.onclose=m,h.onerror=w,h.onmessage=v),r}e.exports=c?y:g}).call(this,r(\"f28c\"))},fe34:function(e,t,r){\"use strict\";e.exports=l;var n=r(\"9bfc\").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(\"a493\");function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit(\"error\",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(\"function\"===typeof e.transform&&(this._transform=e.transform),\"function\"===typeof e.flush&&(this._flush=e.flush)),this.on(\"prefinish\",h)}function h(){var e=this;\"function\"!==typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,r){f(e,t,r)}))}function f(e,t,r){if(t)return e.emit(\"error\",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}r(\"3fb5\")(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i(\"_transform()\"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},fe3c:function(e,t,r){\"use strict\";const n=r(6),i=r(1),o=r(\"db34\")(\"mqttjs:tls\");function s(e,t){t.port=t.port||8883,t.host=t.hostname||t.host||\"localhost\",0===i.isIP(t.host)&&(t.servername=t.host),t.rejectUnauthorized=!1!==t.rejectUnauthorized,delete t.path,o(\"port %d host %s rejectUnauthorized %b\",t.port,t.host,t.rejectUnauthorized);const r=n.connect(t);function s(n){t.rejectUnauthorized&&e.emit(\"error\",n),r.end()}return r.on(\"secureConnect\",(function(){t.rejectUnauthorized&&!r.authorized?r.emit(\"error\",new Error(\"TLS not authorized\")):r.removeListener(\"error\",s)})),r.on(\"error\",s),r}e.exports=s}}]);","extractedComments":[]} |