w-json-stream 1.0.12 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -0
- package/.github/workflows/ci-test.yml +24 -0
- package/README.md +6 -7
- package/SECURITY.md +5 -0
- package/dist/into-stream.umd.js +2 -2
- package/dist/into-stream.umd.js.map +1 -1
- package/dist/json-stream-stringify.umd.js +2 -2
- package/dist/json-stream-stringify.umd.js.map +1 -1
- package/dist/through.umd.js +2 -2
- package/dist/through.umd.js.map +1 -1
- package/dist/w-json-stream.umd.js +2 -2
- package/dist/w-json-stream.umd.js.map +1 -1
- package/dist/w-json-stream.wk.umd.js +1 -1
- package/docs/WJsonStream.mjs.html +1 -1
- package/docs/examples/ex-large-webworker.html +3 -3
- package/docs/examples/ex-large.html +2 -2
- package/docs/examples/ex-small-stream.html +2 -2
- package/docs/examples/ex-small.html +2 -2
- package/docs/examples/ex-stream-createParseStream.html +2 -2
- package/docs/examples/ex-stream-createParseStreamWithFilter.html +3 -3
- package/docs/examples/ex-stream-createStringifyStream.html +2 -2
- package/docs/global.html +1 -1
- package/docs/index.html +1 -1
- package/examples/ex-large-webworker.html +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* w-json-stream v1.0.
|
|
2
|
+
* w-json-stream v1.0.15
|
|
3
3
|
* (c) 2018-2021 yuda-lyu(semisphere)
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-json-stream"]=e()}(this,(function(){"use strict";function t(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function e(e){return function(){var r=this,n=arguments;return new Promise((function(i,o){var a=e.apply(r,n);function s(e){t(a,i,o,s,u,"next",e)}function u(e){t(a,i,o,s,u,"throw",e)}s(void 0)}))}}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach((function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})})),e}function o(t){var e={exports:{}};return t(e,e.exports),e.exports}var a=o((function(t){var e=function(t){var e,n=Object.prototype,i=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),a=new O(n||[]);return o._invoke=function(t,e,r){var n=l;return function(i,o){if(n===p)throw new Error("Generator is already running");if(n===g){if("throw"===i)throw o;return L()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=j(a,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=c(t,e,r);if("normal"===u.type){if(n=r.done?g:d,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=g,r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var l="suspendedStart",d="suspendedYield",p="executing",g="completed",y={};function v(){}function b(){}function w(){}var m={};m[a]=function(){return this};var _=Object.getPrototypeOf,S=_&&_(_(A([])));S&&S!==n&&i.call(S,a)&&(m=S);var E=w.prototype=v.prototype=Object.create(m);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function R(t,e){function n(o,a,s,u){var f=c(t[o],t,a);if("throw"!==f.type){var h=f.arg,l=h.value;return l&&"object"===r(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(l).then((function(t){h.value=t,s(h)}),(function(t){return n("throw",t,s,u)}))}u(f.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}}function j(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,j(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var i=c(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function A(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(i.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}return{next:L}}function L(){return{value:e,done:!0}}return b.prototype=E.constructor=w,w.constructor=b,b.displayName=f(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},k(R.prototype),R.prototype[s]=function(){return this},t.AsyncIterator=R,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new R(h(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(E),f(E,u,"Generator"),E[a]=function(){return this},E.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),f=i.call(a,"finallyLoc");if(u&&f){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),s="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function u(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}var h=u,c=f;function l(t){if(h===setTimeout)return setTimeout(t,0);if((h===u||!h)&&setTimeout)return h=setTimeout,setTimeout(t,0);try{return h(t,0)}catch(e){try{return h.call(null,t,0)}catch(e){return h.call(this,t,0)}}}"function"==typeof s.setTimeout&&(h=setTimeout),"function"==typeof s.clearTimeout&&(c=clearTimeout);var d,p=[],g=!1,y=-1;function v(){g&&d&&(g=!1,d.length?p=d.concat(p):y=-1,p.length&&b())}function b(){if(!g){var t=l(v);g=!0;for(var e=p.length;e;){for(d=p,p=[];++y<e;)d&&d[y].run();y=-1,e=p.length}d=null,g=!1,function(t){if(c===clearTimeout)return clearTimeout(t);if((c===f||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(t);try{c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}(t)}}function w(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];p.push(new m(t,e)),1!==p.length||g||l(b)}function m(t,e){this.fun=t,this.array=e}m.prototype.run=function(){this.fun.apply(null,this.array)};function _(){}var S=_,E=_,k=_,R=_,j=_,x=_,T=_;var O=s.performance||{},A=O.now||O.mozNow||O.msNow||O.oNow||O.webkitNow||function(){return(new Date).getTime()};var L=new Date;var C={nextTick:w,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:S,addListener:E,once:k,off:R,removeListener:j,removeAllListeners:x,emit:T,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*A.call(O),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-L)/1e3}},M=o((function(t){void 0===C||!C.version||0===C.version.indexOf("v0.")||0===C.version.indexOf("v1.")&&0!==C.version.indexOf("v1.8.")?t.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return C.nextTick(t);case 2:return C.nextTick((function(){t.call(null,e)}));case 3:return C.nextTick((function(){t.call(null,e,r)}));case 4:return C.nextTick((function(){t.call(null,e,r,n)}));default:for(i=new Array(a-1),o=0;o<i.length;)i[o++]=arguments[o];return C.nextTick((function(){t.apply(null,i)}))}}}:t.exports=C})),P={}.toString,B=Array.isArray||function(t){return"[object Array]"==P.call(t)};function N(){}function U(){U.init.call(this)}function D(t){return void 0===t._maxListeners?U.defaultMaxListeners:t._maxListeners}function I(t,e,r){if(e)t.call(r);else for(var n=t.length,i=H(t,n),o=0;o<n;++o)i[o].call(r)}function F(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,o=H(t,i),a=0;a<i;++a)o[a].call(r,n)}function q(t,e,r,n,i){if(e)t.call(r,n,i);else for(var o=t.length,a=H(t,o),s=0;s<o;++s)a[s].call(r,n,i)}function W(t,e,r,n,i,o){if(e)t.call(r,n,i,o);else for(var a=t.length,s=H(t,a),u=0;u<a;++u)s[u].call(r,n,i,o)}function z(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,o=H(t,i),a=0;a<i;++a)o[a].apply(r,n)}function Y(t,e,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=t._events)?(o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]):(o=t._events=new N,t._eventsCount=0),a){if("function"==typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(i=D(t))&&i>0&&a.length>i){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[e]=r,++t._eventsCount;return t}function $(t,e,r){var n=!1;function i(){t.removeListener(e,i),n||(n=!0,r.apply(t,arguments))}return i.listener=r,i}function G(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function H(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}N.prototype=Object.create(null),U.EventEmitter=U,U.usingDomains=!1,U.prototype.domain=void 0,U.prototype._events=void 0,U.prototype._maxListeners=void 0,U.defaultMaxListeners=10,U.init=function(){this.domain=null,U.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new N,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},U.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},U.prototype.getMaxListeners=function(){return D(this)},U.prototype.emit=function(t){var e,r,n,i,o,a,s,u="error"===t;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(e=arguments[1],!s){if(e instanceof Error)throw e;var f=new Error('Uncaught, unspecified "error" event. ('+e+")");throw f.context=e,f}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=s,e.domainThrown=!1,s.emit("error",e),!1}if(!(r=a[t]))return!1;var h="function"==typeof r;switch(n=arguments.length){case 1:I(r,h,this);break;case 2:F(r,h,this,arguments[1]);break;case 3:q(r,h,this,arguments[1],arguments[2]);break;case 4:W(r,h,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];z(r,h,this,i)}return!0},U.prototype.addListener=function(t,e){return Y(this,t,e,!1)},U.prototype.on=U.prototype.addListener,U.prototype.prependListener=function(t,e){return Y(this,t,e,!0)},U.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,$(this,t,e)),this},U.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,$(this,t,e)),this},U.prototype.removeListener=function(t,e){var r,n,i,o,a;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[t]))return this;if(r===e||r.listener&&r.listener===e)0==--this._eventsCount?this._events=new N:(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length;o-- >0;)if(r[o]===e||r[o].listener&&r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new N,this;delete n[t]}else!function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(r,i);n.removeListener&&this.emit("removeListener",t,a||e)}return this},U.prototype.removeAllListeners=function(t){var e,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new N,this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=new N:delete r[t]),this;if(0===arguments.length){for(var n,i=Object.keys(r),o=0;o<i.length;++o)"removeListener"!==(n=i[o])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new N,this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},U.prototype.listeners=function(t){var e,r=this._events;return r&&(e=r[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(e):[]},U.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):G.call(t,e)},U.prototype.listenerCount=G,U.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var J=i(Object.freeze({__proto__:null,default:U,EventEmitter:U})),V=J.EventEmitter,K=[],Z=[],X="undefined"!=typeof Uint8Array?Uint8Array:Array,Q=!1;function tt(){Q=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)K[e]=t[e],Z[t.charCodeAt(e)]=e;Z["-".charCodeAt(0)]=62,Z["_".charCodeAt(0)]=63}function et(t,e,r){for(var n,i,o=[],a=e;a<r;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],o.push(K[(i=n)>>18&63]+K[i>>12&63]+K[i>>6&63]+K[63&i]);return o.join("")}function rt(t){var e;Q||tt();for(var r=t.length,n=r%3,i="",o=[],a=16383,s=0,u=r-n;s<u;s+=a)o.push(et(t,s,s+a>u?u:s+a));return 1===n?(e=t[r-1],i+=K[e>>2],i+=K[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=K[e>>10],i+=K[e>>4&63],i+=K[e<<2&63],i+="="),o.push(i),o.join("")}function nt(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,f=u>>1,h=-7,c=r?i-1:0,l=r?-1:1,d=t[e+c];for(c+=l,o=d&(1<<-h)-1,d>>=-h,h+=s;h>0;o=256*o+t[e+c],c+=l,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=256*a+t[e+c],c+=l,h-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=f}return(d?-1:1)*a*Math.pow(2,o-n)}function it(t,e,r,n,i,o){var a,s,u,f=8*o-i-1,h=(1<<f)-1,c=h>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+c>=1?l/u:l*Math.pow(2,1-c))*u>=2&&(a++,u/=2),a+c>=h?(s=0,a=h):a+c>=1?(s=(e*u-1)*Math.pow(2,i),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,f+=i;f>0;t[r+d]=255&a,d+=p,a/=256,f-=8);t[r+d-p]|=128*g}var ot={}.toString,at=Array.isArray||function(t){return"[object Array]"==ot.call(t)};ht.TYPED_ARRAY_SUPPORT=void 0===s.TYPED_ARRAY_SUPPORT||s.TYPED_ARRAY_SUPPORT;var st=ut();function ut(){return ht.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ft(t,e){if(ut()<e)throw new RangeError("Invalid typed array length");return ht.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=ht.prototype:(null===t&&(t=new ht(e)),t.length=e),t}function ht(t,e,r){if(!(ht.TYPED_ARRAY_SUPPORT||this instanceof ht))return new ht(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return dt(this,t)}return ct(this,t,e,r)}function ct(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);ht.TYPED_ARRAY_SUPPORT?(t=e).__proto__=ht.prototype:t=pt(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!ht.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|vt(e,r),i=(t=ft(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(yt(e)){var r=0|gt(e.length);return 0===(t=ft(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?ft(t,0):pt(t,e);if("Buffer"===e.type&&at(e.data))return pt(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function lt(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function dt(t,e){if(lt(e),t=ft(t,e<0?0:0|gt(e)),!ht.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function pt(t,e){var r=e.length<0?0:0|gt(e.length);t=ft(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function gt(t){if(t>=ut())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ut().toString(16)+" bytes");return 0|t}function yt(t){return!(null==t||!t._isBuffer)}function vt(t,e){if(yt(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Yt(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $t(t).length;default:if(n)return Yt(t).length;e=(""+e).toLowerCase(),n=!0}}function bt(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Mt(this,e,r);case"utf8":case"utf-8":return Ot(this,e,r);case"ascii":return Lt(this,e,r);case"latin1":case"binary":return Ct(this,e,r);case"base64":return Tt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function wt(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function mt(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=ht.from(e,n)),yt(e))return 0===e.length?-1:_t(t,e,r,n,i);if("number"==typeof e)return e&=255,ht.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):_t(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _t(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var h=-1;for(o=r;o<s;o++)if(f(t,o)===f(e,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===u)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var c=!0,l=0;l<u;l++)if(f(t,o+l)!==f(e,l)){c=!1;break}if(c)return o}return-1}function St(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function Et(t,e,r,n){return Gt(Yt(e,t.length-r),t,r,n)}function kt(t,e,r,n){return Gt(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function Rt(t,e,r,n){return kt(t,e,r,n)}function jt(t,e,r,n){return Gt($t(e),t,r,n)}function xt(t,e,r,n){return Gt(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function Tt(t,e,r){return 0===e&&r===t.length?rt(t):rt(t.slice(e,r))}function Ot(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,f=t[i],h=null,c=f>239?4:f>223?3:f>191?2:1;if(i+c<=r)switch(c){case 1:f<128&&(h=f);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&f)<<6|63&o)>127&&(h=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&f)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(h=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(h=u)}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}return function(t){var e=t.length;if(e<=At)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=At));return r}(n)}ht.poolSize=8192,ht._augment=function(t){return t.__proto__=ht.prototype,t},ht.from=function(t,e,r){return ct(null,t,e,r)},ht.TYPED_ARRAY_SUPPORT&&(ht.prototype.__proto__=Uint8Array.prototype,ht.__proto__=Uint8Array),ht.alloc=function(t,e,r){return function(t,e,r,n){return lt(e),e<=0?ft(t,e):void 0!==r?"string"==typeof n?ft(t,e).fill(r,n):ft(t,e).fill(r):ft(t,e)}(null,t,e,r)},ht.allocUnsafe=function(t){return dt(null,t)},ht.allocUnsafeSlow=function(t){return dt(null,t)},ht.isBuffer=Ht,ht.compare=function(t,e){if(!yt(t)||!yt(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},ht.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ht.concat=function(t,e){if(!at(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return ht.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=ht.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(!yt(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},ht.byteLength=vt,ht.prototype._isBuffer=!0,ht.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)wt(this,e,e+1);return this},ht.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)wt(this,e,e+3),wt(this,e+1,e+2);return this},ht.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)wt(this,e,e+7),wt(this,e+1,e+6),wt(this,e+2,e+5),wt(this,e+3,e+4);return this},ht.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?Ot(this,0,t):bt.apply(this,arguments)},ht.prototype.equals=function(t){if(!yt(t))throw new TypeError("Argument must be a Buffer");return this===t||0===ht.compare(this,t)},ht.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},ht.prototype.compare=function(t,e,r,n,i){if(!yt(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(n,i),f=t.slice(e,r),h=0;h<s;++h)if(u[h]!==f[h]){o=u[h],a=f[h];break}return o<a?-1:a<o?1:0},ht.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},ht.prototype.indexOf=function(t,e,r){return mt(this,t,e,r,!0)},ht.prototype.lastIndexOf=function(t,e,r){return mt(this,t,e,r,!1)},ht.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return St(this,t,e,r);case"utf8":case"utf-8":return Et(this,t,e,r);case"ascii":return kt(this,t,e,r);case"latin1":case"binary":return Rt(this,t,e,r);case"base64":return jt(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},ht.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var At=4096;function Lt(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function Ct(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Mt(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=zt(t[o]);return i}function Pt(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function Bt(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function Nt(t,e,r,n,i,o){if(!yt(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function Ut(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function Dt(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function It(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ft(t,e,r,n,i){return i||It(t,0,r,4),it(t,e,r,n,23,4),r+4}function qt(t,e,r,n,i){return i||It(t,0,r,8),it(t,e,r,n,52,8),r+8}ht.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),ht.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=ht.prototype;else{var i=e-t;r=new ht(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},ht.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||Bt(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},ht.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||Bt(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},ht.prototype.readUInt8=function(t,e){return e||Bt(t,1,this.length),this[t]},ht.prototype.readUInt16LE=function(t,e){return e||Bt(t,2,this.length),this[t]|this[t+1]<<8},ht.prototype.readUInt16BE=function(t,e){return e||Bt(t,2,this.length),this[t]<<8|this[t+1]},ht.prototype.readUInt32LE=function(t,e){return e||Bt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},ht.prototype.readUInt32BE=function(t,e){return e||Bt(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},ht.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||Bt(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},ht.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||Bt(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},ht.prototype.readInt8=function(t,e){return e||Bt(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},ht.prototype.readInt16LE=function(t,e){e||Bt(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},ht.prototype.readInt16BE=function(t,e){e||Bt(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},ht.prototype.readInt32LE=function(t,e){return e||Bt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},ht.prototype.readInt32BE=function(t,e){return e||Bt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},ht.prototype.readFloatLE=function(t,e){return e||Bt(t,4,this.length),nt(this,t,!0,23,4)},ht.prototype.readFloatBE=function(t,e){return e||Bt(t,4,this.length),nt(this,t,!1,23,4)},ht.prototype.readDoubleLE=function(t,e){return e||Bt(t,8,this.length),nt(this,t,!0,52,8)},ht.prototype.readDoubleBE=function(t,e){return e||Bt(t,8,this.length),nt(this,t,!1,52,8)},ht.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Nt(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},ht.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Nt(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},ht.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||Nt(this,t,e,1,255,0),ht.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},ht.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||Nt(this,t,e,2,65535,0),ht.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Ut(this,t,e,!0),e+2},ht.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||Nt(this,t,e,2,65535,0),ht.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Ut(this,t,e,!1),e+2},ht.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||Nt(this,t,e,4,4294967295,0),ht.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Dt(this,t,e,!0),e+4},ht.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||Nt(this,t,e,4,4294967295,0),ht.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Dt(this,t,e,!1),e+4},ht.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);Nt(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},ht.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);Nt(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},ht.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||Nt(this,t,e,1,127,-128),ht.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},ht.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||Nt(this,t,e,2,32767,-32768),ht.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Ut(this,t,e,!0),e+2},ht.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||Nt(this,t,e,2,32767,-32768),ht.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Ut(this,t,e,!1),e+2},ht.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||Nt(this,t,e,4,2147483647,-2147483648),ht.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Dt(this,t,e,!0),e+4},ht.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||Nt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),ht.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Dt(this,t,e,!1),e+4},ht.prototype.writeFloatLE=function(t,e,r){return Ft(this,t,e,!0,r)},ht.prototype.writeFloatBE=function(t,e,r){return Ft(this,t,e,!1,r)},ht.prototype.writeDoubleLE=function(t,e,r){return qt(this,t,e,!0,r)},ht.prototype.writeDoubleBE=function(t,e,r){return qt(this,t,e,!1,r)},ht.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!ht.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},ht.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!ht.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=yt(t)?t:Yt(new ht(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var Wt=/[^+\/0-9A-Za-z-_]/g;function zt(t){return t<16?"0"+t.toString(16):t.toString(16)}function Yt(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function $t(t){return function(t){var e,r,n,i,o,a;Q||tt();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[s-2]?2:"="===t[s-1]?1:0,a=new X(3*s/4-o),n=o>0?s-4:s;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)i=Z[t.charCodeAt(e)]<<18|Z[t.charCodeAt(e+1)]<<12|Z[t.charCodeAt(e+2)]<<6|Z[t.charCodeAt(e+3)],a[u++]=i>>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=Z[t.charCodeAt(e)]<<2|Z[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=Z[t.charCodeAt(e)]<<10|Z[t.charCodeAt(e+1)]<<4|Z[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(Wt,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Gt(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Ht(t){return null!=t&&(!!t._isBuffer||Jt(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Jt(t.slice(0,0))}(t))}function Jt(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var Vt=i(Object.freeze({__proto__:null,Buffer:ht,INSPECT_MAX_BYTES:50,SlowBuffer:function(t){return+t!=t&&(t=0),ht.alloc(+t)},isBuffer:Ht,kMaxLength:st})),Kt=o((function(t,e){var r=Vt.Buffer;function n(t,e){for(var r in t)e[r]=t[r]}function i(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=Vt:(n(Vt,e),e.Buffer=i),n(r,i),i.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},i.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return Vt.SlowBuffer(t)}}));function Zt(t){return Object.prototype.toString.call(t)}var Xt={isArray:function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Zt(t)},isBoolean:function(t){return"boolean"==typeof t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t},isNumber:function(t){return"number"==typeof t},isString:function(t){return"string"==typeof t},isSymbol:function(t){return"symbol"===r(t)},isUndefined:function(t){return void 0===t},isRegExp:function(t){return"[object RegExp]"===Zt(t)},isObject:function(t){return"object"===r(t)&&null!==t},isDate:function(t){return"[object Date]"===Zt(t)},isError:function(t){return"[object Error]"===Zt(t)||t instanceof Error},isFunction:function(t){return"function"==typeof t},isPrimitive:function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===r(t)||void 0===t},isBuffer:ht.isBuffer},Qt=o((function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}})),te="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t},ee=/%[sdj%]/g;function re(t){if(!be(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(se(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(t).replace(ee,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),a=n[r];r<i;a=n[++r])ge(a)||!Se(a)?o+=" "+a:o+=" "+se(a);return o}function ne(t,e){if(me(s.process))return function(){return ne(t,e).apply(this,arguments)};if(!0===C.noDeprecation)return t;var r=!1;return function(){if(!r){if(C.throwDeprecation)throw new Error(e);C.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}}var ie,oe={};function ae(t){if(me(ie)&&(ie=C.env.NODE_DEBUG||""),t=t.toUpperCase(),!oe[t])if(new RegExp("\\b"+t+"\\b","i").test(ie)){oe[t]=function(){var e=re.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else oe[t]=function(){};return oe[t]}function se(t,e){var r={seen:[],stylize:fe};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),pe(e)?r.showHidden=e:e&&Me(r,e),me(r.showHidden)&&(r.showHidden=!1),me(r.depth)&&(r.depth=2),me(r.colors)&&(r.colors=!1),me(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=ue),he(r,t,r.depth)}function ue(t,e){var r=se.styles[e];return r?"["+se.colors[r][0]+"m"+t+"["+se.colors[r][1]+"m":t}function fe(t,e){return t}function he(t,e,r){if(t.customInspect&&e&&Re(e.inspect)&&e.inspect!==se&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return be(n)||(n=he(t,n,r)),n}var i=function(t,e){if(me(e))return t.stylize("undefined","undefined");if(be(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(ve(e))return t.stylize(""+e,"number");if(pe(e))return t.stylize(""+e,"boolean");if(ge(e))return t.stylize("null","null")}(t,e);if(i)return i;var o=Object.keys(e),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),ke(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return ce(e);if(0===o.length){if(Re(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(_e(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Ee(e))return t.stylize(Date.prototype.toString.call(e),"date");if(ke(e))return ce(e)}var u,f="",h=!1,c=["{","}"];(de(e)&&(h=!0,c=["[","]"]),Re(e))&&(f=" [Function"+(e.name?": "+e.name:"")+"]");return _e(e)&&(f=" "+RegExp.prototype.toString.call(e)),Ee(e)&&(f=" "+Date.prototype.toUTCString.call(e)),ke(e)&&(f=" "+ce(e)),0!==o.length||h&&0!=e.length?r<0?_e(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=h?function(t,e,r,n,i){for(var o=[],a=0,s=e.length;a<s;++a)Pe(e,String(a))?o.push(le(t,e,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(le(t,e,r,n,i,!0))})),o}(t,e,r,a,o):o.map((function(n){return le(t,e,r,a,n,h)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(u,f,c)):c[0]+f+c[1]}function ce(t){return"["+Error.prototype.toString.call(t)+"]"}function le(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),Pe(n,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=ge(r)?he(t,u.value,null):he(t,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),me(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function de(t){return Array.isArray(t)}function pe(t){return"boolean"==typeof t}function ge(t){return null===t}function ye(t){return null==t}function ve(t){return"number"==typeof t}function be(t){return"string"==typeof t}function we(t){return"symbol"===r(t)}function me(t){return void 0===t}function _e(t){return Se(t)&&"[object RegExp]"===Te(t)}function Se(t){return"object"===r(t)&&null!==t}function Ee(t){return Se(t)&&"[object Date]"===Te(t)}function ke(t){return Se(t)&&("[object Error]"===Te(t)||t instanceof Error)}function Re(t){return"function"==typeof t}function je(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===r(t)||void 0===t}function xe(t){return ht.isBuffer(t)}function Te(t){return Object.prototype.toString.call(t)}function Oe(t){return t<10?"0"+t.toString(10):t.toString(10)}se.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},se.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Le(){var t=new Date,e=[Oe(t.getHours()),Oe(t.getMinutes()),Oe(t.getSeconds())].join(":");return[t.getDate(),Ae[t.getMonth()],e].join(" ")}function Ce(){console.log("%s - %s",Le(),re.apply(null,arguments))}function Me(t,e){if(!e||!Se(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function Pe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Be={inherits:te,_extend:Me,log:Ce,isBuffer:xe,isPrimitive:je,isFunction:Re,isError:ke,isDate:Ee,isObject:Se,isRegExp:_e,isUndefined:me,isSymbol:we,isString:be,isNumber:ve,isNullOrUndefined:ye,isNull:ge,isBoolean:pe,isArray:de,inspect:se,deprecate:ne,format:re,debuglog:ae},Ne=i(Object.freeze({__proto__:null,format:re,deprecate:ne,debuglog:ae,inspect:se,isArray:de,isBoolean:pe,isNull:ge,isNullOrUndefined:ye,isNumber:ve,isString:be,isSymbol:we,isUndefined:me,isRegExp:_e,isObject:Se,isDate:Ee,isError:ke,isFunction:Re,isPrimitive:je,isBuffer:xe,log:Ce,inherits:te,_extend:Me,default:Be})),Ue=o((function(t){var e=Kt.Buffer;t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return e.alloc(0);if(1===this.length)return this.head.data;for(var r,n,i,o=e.allocUnsafe(t>>>0),a=this.head,s=0;a;)r=a.data,n=o,i=s,r.copy(n,i),s+=a.data.length,a=a.next;return o},t}(),Ne&&Ne.inspect&&Ne.inspect.custom&&(t.exports.prototype[Ne.inspect.custom]=function(){var t=Ne.inspect({length:this.length});return this.constructor.name+" "+t})}));function De(t,e){t.emit("error",e)}var Ie=function(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||M.nextTick(De,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(M.nextTick(De,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})),this)},Fe=function(){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.finished=!1,this._writableState.errorEmitted=!1)},qe=function(t,e){if(We("noDeprecation"))return t;var r=!1;return function(){if(!r){if(We("throwDeprecation"))throw new Error(e);We("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}};function We(t){try{if(!n.localStorage)return!1}catch(t){return!1}var e=n.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}var ze=tr;function Ye(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}var $e,Ge=!C.browser&&["v0.10","v0.9."].indexOf(C.version.slice(0,5))>-1?setImmediate:M.nextTick;tr.WritableState=Qe;var He=Object.create(Xt);He.inherits=Qt;var Je,Ve={deprecate:qe},Ke=Kt.Buffer,Ze=n.Uint8Array||function(){};function Xe(){}function Qe(t,e){t=t||{};var r=e instanceof($e=$e||ur);this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,i=t.writableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(M.nextTick(i,n),M.nextTick(ar,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(i(n),t._writableState.errorEmitted=!0,t.emit("error",n),ar(t,e))}(t,r,n,e,i);else{var o=ir(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||nr(t,r),n?Ge(rr,t,r,o,i):rr(t,r,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ye(this)}function tr(t){if($e=$e||ur,!(Je.call(tr,this)||this instanceof $e))return new tr(t);this._writableState=new Qe(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),V.call(this)}function er(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function rr(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),ar(t,e)}function nr(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)i[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;i.allBuffers=s,er(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new Ye(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,h=r.callback;if(er(t,e,!1,e.objectMode?1:u.length,u,f,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function ir(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function or(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),ar(t,e)}))}function ar(t,e){var r=ir(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,M.nextTick(or,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}He.inherits(tr,V),Qe.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(Qe.prototype,"buffer",{get:Ve.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(Je=Function.prototype[Symbol.hasInstance],Object.defineProperty(tr,Symbol.hasInstance,{value:function(t){return!!Je.call(this,t)||this===tr&&(t&&t._writableState instanceof Qe)}})):Je=function(t){return t instanceof this},tr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},tr.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&function(t){return Ke.isBuffer(t)||t instanceof Ze}(t);return o&&!Ke.isBuffer(t)&&(t=function(t){return Ke.from(t)}(t)),"function"==typeof e&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=Xe),n.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),M.nextTick(e,r)}(this,r):(o||function(t,e,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),M.nextTick(n,o),i=!1),i}(this,n,t,r))&&(n.pendingcb++,i=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=Ke.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else er(t,e,!1,s,n,i,o);return u}(this,n,o,t,e,r)),i},tr.prototype.cork=function(){this._writableState.corked++},tr.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||nr(this,t))},tr.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(tr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),tr.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},tr.prototype._writev=null,tr.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,ar(t,e),r&&(e.finished?M.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(tr.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),tr.prototype.destroy=Ie,tr.prototype._undestroy=Fe,tr.prototype._destroy=function(t,e){this.end(),e(t)};var sr=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},ur=dr,fr=Object.create(Xt);fr.inherits=Qt,fr.inherits(dr,Ar);for(var hr=sr(ze.prototype),cr=0;cr<hr.length;cr++){var lr=hr[cr];dr.prototype[lr]||(dr.prototype[lr]=ze.prototype[lr])}function dr(t){if(!(this instanceof dr))return new dr(t);Ar.call(this,t),ze.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",pr)}function pr(){this.allowHalfOpen||this._writableState.ended||M.nextTick(gr,this)}function gr(t){t.end()}Object.defineProperty(dr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(dr.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),dr.prototype._destroy=function(t,e){this.push(null),this.end(),M.nextTick(e,t)};var yr=Kt.Buffer,vr=yr.isEncoding||function(t){switch((t=""+t)&&t.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}};var br=wr;function wr(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(yr.isEncoding===vr||!vr(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=Sr,this.end=Er,e=4;break;case"utf8":this.fillLast=_r,e=4;break;case"base64":this.text=kr,this.end=Rr,e=3;break;default:return this.write=jr,void(this.end=xr)}this.lastNeed=0,this.lastTotal=0,this.lastChar=yr.allocUnsafe(e)}function mr(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function _r(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function Sr(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Er(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function kr(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function Rr(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function jr(t){return t.toString(this.encoding)}function xr(t){return t&&t.length?this.write(t):""}wr.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},wr.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},wr.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=mr(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if((i=mr(e[n]))>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if((i=mr(e[n]))>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},wr.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};var Tr,Or={StringDecoder:br},Ar=Ir;Ir.ReadableState=Dr,J.EventEmitter;var Lr=function(t,e){return t.listeners(e).length},Cr=Kt.Buffer,Mr=n.Uint8Array||function(){};var Pr=Object.create(Xt);Pr.inherits=Qt;var Br,Nr=void 0;Nr=Ne&&Ne.debuglog?Ne.debuglog("stream"):function(){},Pr.inherits(Ir,V);var Ur=["error","close","destroy","pause","resume"];function Dr(t,e){t=t||{};var r=e instanceof(Tr=Tr||ur);this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Ue,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.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Br||(Br=Or.StringDecoder),this.decoder=new Br(t.encoding),this.encoding=t.encoding)}function Ir(t){if(Tr=Tr||ur,!(this instanceof Ir))return new Ir(t);this._readableState=new Dr(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),V.call(this)}function Fr(t,e,r,n,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,Yr(t)}(t,a)):(i||(o=function(t,e){var r;(function(t){return Cr.isBuffer(t)||t instanceof Mr})(e)||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===Cr.prototype||(e=function(t){return Cr.from(t)}(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):qr(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?qr(t,a,e,!1):Gr(t,a)):qr(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function qr(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Yr(t)),Gr(t,e)}Object.defineProperty(Ir.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),Ir.prototype.destroy=Ie,Ir.prototype._undestroy=Fe,Ir.prototype._destroy=function(t,e){this.push(null),e(t)},Ir.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=Cr.from(t,e),e=""),r=!0),Fr(this,t,e,!1,r)},Ir.prototype.unshift=function(t){return Fr(this,t,null,!0,!1)},Ir.prototype.isPaused=function(){return!1===this._readableState.flowing},Ir.prototype.setEncoding=function(t){return Br||(Br=Or.StringDecoder),this._readableState.decoder=new Br(t),this._readableState.encoding=t,this};var Wr=8388608;function zr(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=Wr?t=Wr:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function Yr(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Nr("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?M.nextTick($r,t):$r(t))}function $r(t){Nr("emit readable"),t.emit("readable"),Kr(t)}function Gr(t,e){e.readingMore||(e.readingMore=!0,M.nextTick(Hr,t,e))}function Hr(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Nr("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function Jr(t){Nr("readable nexttick read 0"),t.read(0)}function Vr(t,e){e.reading||(Nr("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Kr(t),e.flowing&&!e.reading&&t.read(0)}function Kr(t){var e=t._readableState;for(Nr("flow",e.flowing);e.flowing&&null!==t.read(););}function Zr(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=Cr.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function Xr(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,M.nextTick(Qr,e,t))}function Qr(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function tn(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}Ir.prototype.read=function(t){Nr("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Nr("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Xr(this):Yr(this),null;if(0===(t=zr(t,e))&&e.ended)return 0===e.length&&Xr(this),null;var n,i=e.needReadable;return Nr("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&Nr("length less than watermark",i=!0),e.ended||e.reading?Nr("reading or ended",i=!1):i&&(Nr("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=zr(r,e))),null===(n=t>0?Zr(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Xr(this)),null!==n&&this.emit("data",n),n},Ir.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},Ir.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,Nr("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||!1!==e.end)&&t!==C.stdout&&t!==C.stderr?a:p;function o(e,i){Nr("onunpipe"),e===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,Nr("cleanup"),t.removeListener("close",l),t.removeListener("finish",d),t.removeListener("drain",s),t.removeListener("error",c),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",p),r.removeListener("data",h),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||s())}function a(){Nr("onend"),t.end()}n.endEmitted?M.nextTick(i):r.once("end",i),t.on("unpipe",o);var s=function(t){return function(){var e=t._readableState;Nr("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&Lr(t,"data")&&(e.flowing=!0,Kr(t))}}(r);t.on("drain",s);var u=!1;var f=!1;function h(e){Nr("ondata"),f=!1,!1!==t.write(e)||f||((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==tn(n.pipes,t))&&!u&&(Nr("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function c(e){Nr("onerror",e),p(),t.removeListener("error",c),0===Lr(t,"error")&&t.emit("error",e)}function l(){t.removeListener("finish",d),p()}function d(){Nr("onfinish"),t.removeListener("close",l),p()}function p(){Nr("unpipe"),r.unpipe(t)}return r.on("data",h),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?B(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",c),t.once("close",l),t.once("finish",d),t.emit("pipe",r),n.flowing||(Nr("pipe resume"),r.resume()),t},Ir.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=tn(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},Ir.prototype.on=function(t,e){var r=V.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&Yr(this):M.nextTick(Jr,this))}return r},Ir.prototype.addListener=Ir.prototype.on,Ir.prototype.resume=function(){var t=this._readableState;return t.flowing||(Nr("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,M.nextTick(Vr,t,e))}(this,t)),this},Ir.prototype.pause=function(){return Nr("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Nr("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Ir.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(Nr("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(Nr("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<Ur.length;o++)t.on(Ur[o],this.emit.bind(this,Ur[o]));return this._read=function(e){Nr("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(Ir.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ir._fromList=Zr;var en=on,rn=Object.create(Xt);function nn(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function on(t){if(!(this instanceof on))return new on(t);ur.call(this,t),this._transformState={afterTransform:nn.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",an)}function an(){var t=this;"function"==typeof this._flush?this._flush((function(e,r){sn(t,e,r)})):sn(this,null,null)}function sn(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}rn.inherits=Qt,rn.inherits(on,ur),on.prototype.push=function(t,e){return this._transformState.needTransform=!1,ur.prototype.push.call(this,t,e)},on.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},on.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},on.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},on.prototype._destroy=function(t,e){var r=this;ur.prototype._destroy.call(this,t,(function(t){e(t),r.emit("close")}))};var un=hn,fn=Object.create(Xt);function hn(t){if(!(this instanceof hn))return new hn(t);en.call(this,t)}fn.inherits=Qt,fn.inherits(hn,en),hn.prototype._transform=function(t,e,r){r(null,t)};var cn=o((function(t,e){(e=t.exports=Ar).Stream=e,e.Readable=e,e.Writable=ze,e.Duplex=ur,e.Transform=en,e.PassThrough=un})).Readable,ln=pn;pn.ctor=gn,pn.obj=function(t,e){("function"==typeof t||Array.isArray(t))&&(e=t,t={});return(t=vn(t)).objectMode=!0,t.highWaterMark=16,pn(t,e)};var dn=gn();function pn(t,e){("object"!==r(t)||Array.isArray(t))&&(e=t,t={});var n,i=new dn(t);return i._from=Array.isArray(e)?(n=(n=e).slice(),function(t,e){var r=null,i=n.length?n.shift():null;i instanceof Error&&(r=i,i=null),e(r,i)}):e||yn,i}function gn(t,e){function r(e){if(!(this instanceof r))return new r(e);this._reading=!1,this._callback=function(t,e){if(n.destroyed)return;if(t)return n.destroy(t);if(null===e)return n.push(null);n._reading=!1,n.push(e)&&n._read(i)},this.destroyed=!1,cn.call(this,e||t);var n=this,i=this._readableState.highWaterMark}return"function"==typeof t&&(e=t,t={}),t=vn(t),Qt(r,cn),r.prototype._from=e||yn,r.prototype._read=function(t){this._reading||this.destroyed||(this._reading=!0,this._from(t,this._callback))},r.prototype.destroy=function(t){if(!this.destroyed){this.destroyed=!0;var e=this;C.nextTick((function(){t&&e.emit("error",t),e.emit("close")}))}},r}function yn(){}function vn(t){return t=t||{}}var bn,wn=1,mn={},_n=!1,Sn=s.document;function En(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var n={callback:t,args:e};return mn[wn]=n,bn(wn),wn++}function kn(t){if(_n)setTimeout(kn,0,t);else{var e=mn[t];if(e){_n=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{!function(t){delete mn[t]}(t),_n=!1}}}}var Rn,jn,xn,Tn,On=Object.getPrototypeOf&&Object.getPrototypeOf(s);function An(t){var e,r=Object.prototype.toString.call(t);if(e="[object Promise]"===r)return!0;if("[object Function]"!==r)return!1;try{e="function"!=typeof t.subscribe&&"function"==typeof t.then}catch(t){}return e}function Ln(t){var r,n,i;function o(e){((t=e)instanceof ArrayBuffer||ArrayBuffer.isView(t)&&!ht.isBuffer(t))&&(t=ht.from(t));var o=!(r=An(t)?t:null)&&t[Symbol.iterator]&&"string"!=typeof t&&!ht.isBuffer(t);n=o?t[Symbol.iterator]():null;var a=!r&&t[Symbol.asyncIterator];i=a?t[Symbol.asyncIterator]():null}return Array.isArray(t)&&(t=t.slice()),o(t),ln((function s(u,f){var h=this;if(r)e(a.mark((function t(){return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=o,t.next=4,r;case 4:return t.t1=t.sent,t.next=7,(0,t.t0)(t.t1);case 7:s.call(h,u,f),t.next=13;break;case 10:t.prev=10,t.t2=t.catch(0),f(t.t2);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})))();else if(n){var c=n.next();En(f,null,c.done?null:c.value)}else if(i)e(a.mark((function t(){var e;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.next();case 3:e=t.sent,En(f,null,e.done?null:e.value),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),En(f,t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))();else if(0!==t.length){var l=t.slice(0,u);t=t.slice(u),En(f,null,l)}else En(f,null,null)}))}On=On&&On.setTimeout?On:s,"[object process]"==={}.toString.call(s.process)?bn=function(t){C.nextTick((function(){kn(t)}))}:!function(){if(s.postMessage&&!s.importScripts){var t=!0,e=s.onmessage;return s.onmessage=function(){t=!1},s.postMessage("","*"),s.onmessage=e,t}}()?s.MessageChannel?((jn=new MessageChannel).port1.onmessage=function(t){kn(t.data)},bn=function(t){jn.port2.postMessage(t)}):Sn&&"onreadystatechange"in Sn.createElement("script")?(Rn=Sn.documentElement,bn=function(t){var e=Sn.createElement("script");e.onreadystatechange=function(){kn(t),e.onreadystatechange=null,Rn.removeChild(e),e=null},Rn.appendChild(e)}):bn=function(t){setTimeout(kn,0,t)}:(xn="setImmediate$"+Math.random()+"$",Tn=function(t){t.source===s&&"string"==typeof t.data&&0===t.data.indexOf(xn)&&kn(+t.data.slice(xn.length))},s.addEventListener?s.addEventListener("message",Tn,!1):s.attachEvent("onmessage",Tn),bn=function(t){s.postMessage(xn+t,"*")}),Ln.object=function(t){var r,n,i;function o(e){r=An(t=e)?t:null,n=!r&&t[Symbol.iterator]?t[Symbol.iterator]():null,i=!r&&t[Symbol.asyncIterator]?t[Symbol.asyncIterator]():null}return Array.isArray(t)&&(t=t.slice()),o(t),ln.obj((function s(u,f){var h=this;if(r)e(a.mark((function t(){return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=o,t.next=4,r;case 4:return t.t1=t.sent,t.next=7,(0,t.t0)(t.t1);case 7:s.call(h,u,f),t.next=13;break;case 10:t.prev=10,t.t2=t.catch(0),f(t.t2);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})))();else if(n){var c=n.next();En(f,null,c.done?null:c.value)}else i?e(a.mark((function t(){var e;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.next();case 3:e=t.sent,En(f,null,e.done?null:e.value),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),En(f,t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))():(this.push(t),En(f,null,null))}))};var Cn={},Mn=Cn.LEFT_BRACE=1,Pn=Cn.RIGHT_BRACE=2,Bn=Cn.LEFT_BRACKET=3,Nn=Cn.RIGHT_BRACKET=4,Un=Cn.COLON=5,Dn=Cn.COMMA=6,In=Cn.TRUE=7,Fn=Cn.FALSE=8,qn=Cn.NULL=9,Wn=Cn.STRING=10,zn=Cn.NUMBER=11,Yn=Cn.START=17,$n=Cn.STOP=18,Gn=Cn.TRUE1=33,Hn=Cn.TRUE2=34,Jn=Cn.TRUE3=35,Vn=Cn.FALSE1=49,Kn=Cn.FALSE2=50,Zn=Cn.FALSE3=51,Xn=Cn.FALSE4=52,Qn=Cn.NULL1=65,ti=Cn.NULL2=66,ei=Cn.NULL3=67,ri=Cn.NUMBER1=81,ni=Cn.NUMBER3=83,ii=Cn.STRING1=97,oi=Cn.STRING2=98,ai=Cn.STRING3=99,si=Cn.STRING4=100,ui=Cn.STRING5=101,fi=Cn.STRING6=102,hi=Cn.VALUE=113,ci=Cn.KEY=114,li=Cn.OBJECT=129,di=Cn.ARRAY=130,pi="\\".charCodeAt(0),gi="/".charCodeAt(0),yi="\b".charCodeAt(0),vi="\f".charCodeAt(0),bi="\n".charCodeAt(0),wi="\r".charCodeAt(0),mi="\t".charCodeAt(0),_i=65536;function Si(){this.tState=Yn,this.value=void 0,this.string=void 0,this.stringBuffer=ht.alloc?ht.alloc(_i):new ht(_i),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=hi,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new ht(2),3:new ht(3),4:new ht(4)},this.offset=-1}Si.toknam=function(t){for(var e=Object.keys(Cn),r=0,n=e.length;r<n;r++){var i=e[r];if(Cn[i]===t)return i}return t&&"0x"+t.toString(16)};var Ei=Si.prototype;Ei.onError=function(t){throw t},Ei.charError=function(t,e){this.tState=$n,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(t[e]))+" at position "+e+" in state "+Si.toknam(this.tState)))},Ei.appendStringChar=function(t){this.stringBufferOffset>=_i&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=t},Ei.appendStringBuf=function(t,e,r){var n=t.length;"number"==typeof e&&(n="number"==typeof r?r<0?t.length-e+r:r-e:t.length-e),n<0&&(n=0),this.stringBufferOffset+n>_i&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),t.copy(this.stringBuffer,this.stringBufferOffset,e,r),this.stringBufferOffset+=n},Ei.write=function(t){var e;"string"==typeof t&&(t=new ht(t));for(var r=0,n=t.length;r<n;r++)if(this.tState===Yn){if(e=t[r],this.offset++,123===e)this.onToken(Mn,"{");else if(125===e)this.onToken(Pn,"}");else if(91===e)this.onToken(Bn,"[");else if(93===e)this.onToken(Nn,"]");else if(58===e)this.onToken(Un,":");else if(44===e)this.onToken(Dn,",");else if(116===e)this.tState=Gn;else if(102===e)this.tState=Vn;else if(110===e)this.tState=Qn;else if(34===e)this.string="",this.stringBufferOffset=0,this.tState=ii;else if(45===e)this.string="-",this.tState=ri;else if(e>=48&&e<64)this.string=String.fromCharCode(e),this.tState=ni;else if(32!==e&&9!==e&&10!==e&&13!==e)return this.charError(t,r)}else if(this.tState===ii)if(e=t[r],this.bytes_remaining>0){for(var i=0;i<this.bytes_remaining;i++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+i]=t[i];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,r=r+i-1}else if(0===this.bytes_remaining&&e>=128){if(e<=193||e>244)return this.onError(new Error("Invalid UTF-8 character at position "+r+" in state "+Si.toknam(this.tState)));if(e>=194&&e<=223&&(this.bytes_in_sequence=2),e>=224&&e<=239&&(this.bytes_in_sequence=3),e>=240&&e<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+r>t.length){for(var o=0;o<=t.length-1-r;o++)this.temp_buffs[this.bytes_in_sequence][o]=t[r+o];this.bytes_remaining=r+this.bytes_in_sequence-t.length,r=t.length-1}else this.appendStringBuf(t,r,r+this.bytes_in_sequence),r=r+this.bytes_in_sequence-1}else if(34===e)this.tState=Yn,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(Wn,this.string),this.offset+=ht.byteLength(this.string,"utf8")+1,this.string=void 0;else if(92===e)this.tState=oi;else{if(!(e>=32))return this.charError(t,r);this.appendStringChar(e)}else if(this.tState===oi)if(34===(e=t[r]))this.appendStringChar(e),this.tState=ii;else if(92===e)this.appendStringChar(pi),this.tState=ii;else if(47===e)this.appendStringChar(gi),this.tState=ii;else if(98===e)this.appendStringChar(yi),this.tState=ii;else if(102===e)this.appendStringChar(vi),this.tState=ii;else if(110===e)this.appendStringChar(bi),this.tState=ii;else if(114===e)this.appendStringChar(wi),this.tState=ii;else if(116===e)this.appendStringChar(mi),this.tState=ii;else{if(117!==e)return this.charError(t,r);this.unicode="",this.tState=ai}else if(this.tState===ai||this.tState===si||this.tState===ui||this.tState===fi){if(!((e=t[r])>=48&&e<64||e>64&&e<=70||e>96&&e<=102))return this.charError(t,r);if(this.unicode+=String.fromCharCode(e),this.tState++===fi){var a=parseInt(this.unicode,16);this.unicode=void 0,void 0!==this.highSurrogate&&a>=56320&&a<57344?(this.appendStringBuf(new ht(String.fromCharCode(this.highSurrogate,a))),this.highSurrogate=void 0):void 0===this.highSurrogate&&a>=55296&&a<56320?this.highSurrogate=a:(void 0!==this.highSurrogate&&(this.appendStringBuf(new ht(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new ht(String.fromCharCode(a)))),this.tState=ii}}else if(this.tState===ri||this.tState===ni)switch(e=t[r]){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(e),this.tState=ni;break;default:this.tState=Yn;var s=Number(this.string);if(isNaN(s))return this.charError(t,r);this.string.match(/[0-9]+/)==this.string&&s.toString()!=this.string?this.onToken(Wn,this.string):this.onToken(zn,s),this.offset+=this.string.length-1,this.string=void 0,r--}else if(this.tState===Gn){if(114!==t[r])return this.charError(t,r);this.tState=Hn}else if(this.tState===Hn){if(117!==t[r])return this.charError(t,r);this.tState=Jn}else if(this.tState===Jn){if(101!==t[r])return this.charError(t,r);this.tState=Yn,this.onToken(In,!0),this.offset+=3}else if(this.tState===Vn){if(97!==t[r])return this.charError(t,r);this.tState=Kn}else if(this.tState===Kn){if(108!==t[r])return this.charError(t,r);this.tState=Zn}else if(this.tState===Zn){if(115!==t[r])return this.charError(t,r);this.tState=Xn}else if(this.tState===Xn){if(101!==t[r])return this.charError(t,r);this.tState=Yn,this.onToken(Fn,!1),this.offset+=4}else if(this.tState===Qn){if(117!==t[r])return this.charError(t,r);this.tState=ti}else if(this.tState===ti){if(108!==t[r])return this.charError(t,r);this.tState=ei}else if(this.tState===ei){if(108!==t[r])return this.charError(t,r);this.tState=Yn,this.onToken(qn,null),this.offset+=3}},Ei.onToken=function(t,e){},Ei.parseError=function(t,e){this.tState=$n,this.onError(new Error("Unexpected "+Si.toknam(t)+(e?"("+JSON.stringify(e)+")":"")+" in state "+Si.toknam(this.state)))},Ei.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},Ei.pop=function(){var t=this.value,e=this.stack.pop();this.value=e.value,this.key=e.key,this.mode=e.mode,this.emit(t),this.mode||(this.state=hi)},Ei.emit=function(t){this.mode&&(this.state=Dn),this.onValue(t)},Ei.onValue=function(t){},Ei.onToken=function(t,e){if(this.state===hi)if(t===Wn||t===zn||t===In||t===Fn||t===qn)this.value&&(this.value[this.key]=e),this.emit(e);else if(t===Mn)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=ci,this.mode=li;else if(t===Bn)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=di,this.state=hi;else if(t===Pn){if(this.mode!==li)return this.parseError(t,e);this.pop()}else{if(t!==Nn)return this.parseError(t,e);if(this.mode!==di)return this.parseError(t,e);this.pop()}else if(this.state===ci)if(t===Wn)this.key=e,this.state=Un;else{if(t!==Pn)return this.parseError(t,e);this.pop()}else if(this.state===Un){if(t!==Un)return this.parseError(t,e);this.state=hi}else{if(this.state!==Dn)return this.parseError(t,e);if(t===Dn)this.mode===di?(this.key++,this.state=hi):this.mode===li&&(this.state=ci);else{if(!(t===Nn&&this.mode===di||t===Pn&&this.mode===li))return this.parseError(t,e);this.pop()}}},Si.C=Cn;var ki=Si;function Ri(){this.head=null,this.tail=null,this.length=0}Ri.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},Ri.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},Ri.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},Ri.prototype.clear=function(){this.head=this.tail=null,this.length=0},Ri.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},Ri.prototype.concat=function(t){if(0===this.length)return ht.alloc(0);if(1===this.length)return this.head.data;for(var e=ht.allocUnsafe(t>>>0),r=this.head,n=0;r;)r.data.copy(e,n),n+=r.data.length,r=r.next;return e};var ji=ht.isEncoding||function(t){switch(t&&t.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 xi(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!ji(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Oi;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Ai;break;default:return void(this.write=Ti)}this.charBuffer=new ht(6),this.charReceived=0,this.charLength=0}function Ti(t){return t.toString(this.encoding)}function Oi(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function Ai(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}xi.prototype.write=function(t){for(var e="";this.charLength;){var r=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(t=t.slice(r,t.length),!((i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var n=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,n),n-=this.charReceived);var i;n=(e+=t.toString(this.encoding,0,n)).length-1;if((i=e.charCodeAt(n))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,n)}return e},xi.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&r>>5==6){this.charLength=2;break}if(e<=2&&r>>4==14){this.charLength=3;break}if(e<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=e},xi.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e},Mi.ReadableState=Ci;var Li=ae("stream");function Ci(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof so&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new Ri,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.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new xi(t.encoding),this.encoding=t.encoding)}function Mi(t){if(!(this instanceof Mi))return new Mi(t);this._readableState=new Ci(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),U.call(this)}function Pi(t,e,r,n,i){var o=function(t,e){var r=null;ht.isBuffer(e)||"string"==typeof e||null==e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(e,r);if(o)t.emit("error",o);else if(null===r)e.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,Ui(t)}(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!i){var a=new Error("stream.push() after EOF");t.emit("error",a)}else if(e.endEmitted&&i){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var u;!e.decoder||i||n||(r=e.decoder.write(r),u=!e.objectMode&&0===r.length),i||(e.reading=!1),u||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Ui(t))),function(t,e){e.readingMore||(e.readingMore=!0,w(Ii,t,e))}(t,e)}else i||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}te(Mi,U),Mi.prototype.push=function(t,e){var r=this._readableState;return r.objectMode||"string"!=typeof t||(e=e||r.defaultEncoding)!==r.encoding&&(t=ht.from(t,e),e=""),Pi(this,r,t,e,!1)},Mi.prototype.unshift=function(t){return Pi(this,this._readableState,t,"",!0)},Mi.prototype.isPaused=function(){return!1===this._readableState.flowing},Mi.prototype.setEncoding=function(t){return this._readableState.decoder=new xi(t),this._readableState.encoding=t,this};var Bi=8388608;function Ni(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=Bi?t=Bi:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function Ui(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Li("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?w(Di,t):Di(t))}function Di(t){Li("emit readable"),t.emit("readable"),Wi(t)}function Ii(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Li("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function Fi(t){Li("readable nexttick read 0"),t.read(0)}function qi(t,e){e.reading||(Li("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Wi(t),e.flowing&&!e.reading&&t.read(0)}function Wi(t){var e=t._readableState;for(Li("flow",e.flowing);e.flowing&&null!==t.read(););}function zi(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=ht.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function Yi(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,w($i,e,t))}function $i(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Gi(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Hi(){}function Ji(t,e,r){this.chunk=t,this.encoding=e,this.callback=r,this.next=null}function Vi(t,e){Object.defineProperty(this,"buffer",{get:ne((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof so&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===t.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?w(i,n):i(n);t._writableState.errorEmitted=!0,t.emit("error",n)}(t,r,n,e,i);else{var o=to(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||Qi(t,r),n?w(Xi,t,r,o,i):Xi(t,r,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new no(this)}function Ki(t){if(!(this instanceof Ki||this instanceof so))return new Ki(t);this._writableState=new Vi(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),U.call(this)}function Zi(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function Xi(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),ro(t,e)}function Qi(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var a=0;r;)i[a]=r,r=r.next,a+=1;Zi(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new no(e)}else{for(;r;){var s=r.chunk,u=r.encoding,f=r.callback;if(Zi(t,e,!1,e.objectMode?1:s.length,s,u,f),r=r.next,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=r,e.bufferProcessing=!1}function to(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function eo(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function ro(t,e){var r=to(e);return r&&(0===e.pendingcb?(eo(t,e),e.finished=!0,t.emit("finish")):eo(t,e)),r}function no(t){var e=this;this.next=null,this.entry=null,this.finish=function(r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}Mi.prototype.read=function(t){Li("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Li("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Yi(this):Ui(this),null;if(0===(t=Ni(t,e))&&e.ended)return 0===e.length&&Yi(this),null;var n,i=e.needReadable;return Li("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&Li("length less than watermark",i=!0),e.ended||e.reading?Li("reading or ended",i=!1):i&&(Li("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ni(r,e))),null===(n=t>0?zi(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Yi(this)),null!==n&&this.emit("data",n),n},Mi.prototype._read=function(t){this.emit("error",new Error("not implemented"))},Mi.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,Li("pipe count=%d opts=%j",n.pipesCount,e);var i=!e||!1!==e.end?a:f;function o(t){Li("onunpipe"),t===r&&f()}function a(){Li("onend"),t.end()}n.endEmitted?w(i):r.once("end",i),t.on("unpipe",o);var s=function(t){return function(){var e=t._readableState;Li("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,Wi(t))}}(r);t.on("drain",s);var u=!1;function f(){Li("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",s),t.removeListener("error",l),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",f),r.removeListener("data",c),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}var h=!1;function c(e){Li("ondata"),h=!1,!1!==t.write(e)||h||((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==Gi(n.pipes,t))&&!u&&(Li("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function l(e){var r;Li("onerror",e),g(),t.removeListener("error",l),0===(r="error",t.listeners(r).length)&&t.emit("error",e)}function d(){t.removeListener("finish",p),g()}function p(){Li("onfinish"),t.removeListener("close",d),g()}function g(){Li("unpipe"),r.unpipe(t)}return r.on("data",c),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",l),t.once("close",d),t.once("finish",p),t.emit("pipe",r),n.flowing||(Li("pipe resume"),r.resume()),t},Mi.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}var o=Gi(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},Mi.prototype.on=function(t,e){var r=U.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&Ui(this):w(Fi,this))}return r},Mi.prototype.addListener=Mi.prototype.on,Mi.prototype.resume=function(){var t=this._readableState;return t.flowing||(Li("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,w(qi,t,e))}(this,t)),this},Mi.prototype.pause=function(){return Li("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Li("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Mi.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;for(var i in t.on("end",(function(){if(Li("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)})),t.on("data",(function(i){(Li("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&null==i)||(e.objectMode||i&&i.length)&&(n.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));return function(t,e){for(var r=0,n=t.length;r<n;r++)e(t[r],r)}(["error","close","destroy","pause","resume"],(function(e){t.on(e,n.emit.bind(n,e))})),n._read=function(e){Li("wrapped _read",e),r&&(r=!1,t.resume())},n},Mi._fromList=zi,Ki.WritableState=Vi,te(Ki,U),Vi.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},Ki.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Ki.prototype.write=function(t,e,r){var n=this._writableState,i=!1;return"function"==typeof e&&(r=e,e=null),ht.isBuffer(t)?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=Hi),n.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),w(e,r)}(this,r):function(t,e,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):ht.isBuffer(r)||"string"==typeof r||void 0===r||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),w(n,o),i=!1),i}(this,n,t,r)&&(n.pendingcb++,i=function(t,e,r,n,i){r=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=ht.from(e,r));return e}(e,r,n),ht.isBuffer(r)&&(n="buffer");var o=e.objectMode?1:r.length;e.length+=o;var a=e.length<e.highWaterMark;a||(e.needDrain=!0);if(e.writing||e.corked){var s=e.lastBufferedRequest;e.lastBufferedRequest=new Ji(r,n,i),s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Zi(t,e,!1,o,r,n,i);return a}(this,n,t,e,r)),i},Ki.prototype.cork=function(){this._writableState.corked++},Ki.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||Qi(this,t))},Ki.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Ki.prototype._write=function(t,e,r){r(new Error("not implemented"))},Ki.prototype._writev=null,Ki.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,ro(t,e),r&&(e.finished?w(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},te(so,Mi);for(var io=Object.keys(Ki.prototype),oo=0;oo<io.length;oo++){var ao=io[oo];so.prototype[ao]||(so.prototype[ao]=Ki.prototype[ao])}function so(t){if(!(this instanceof so))return new so(t);Mi.call(this,t),Ki.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",uo)}function uo(){this.allowHalfOpen||this._writableState.ended||w(fo,this)}function fo(t){t.end()}function ho(t){this.afterTransform=function(e,r){return function(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&t.push(r);i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function co(t){if(!(this instanceof co))return new co(t);so.call(this,t),this._transformState=new ho(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t){lo(e,t)})):lo(e)}))}function lo(t,e){if(e)return t.emit("error",e);var r=t._writableState,n=t._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(n.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}function po(t){if(!(this instanceof po))return new po(t);co.call(this,t)}function go(){U.call(this)}function yo(t,e,r){t=t||function(t){this.queue(t)},e=e||function(){this.queue(null)};var n=!1,i=!1,o=[],a=!1,s=new go;function u(){for(;o.length&&!s.paused;){var t=o.shift();if(null===t)return s.emit("end");s.emit("data",t)}}function f(){s.writable=!1,e.call(s),!s.readable&&s.autoDestroy&&s.destroy()}return s.readable=s.writable=!0,s.paused=!1,s.autoDestroy=!(r&&!1===r.autoDestroy),s.write=function(e){return t.call(this,e),!s.paused},s.queue=s.push=function(t){return a||(null===t&&(a=!0),o.push(t),u()),s},s.on("end",(function(){s.readable=!1,!s.writable&&s.autoDestroy&&C.nextTick((function(){s.destroy()}))})),s.end=function(t){if(!n)return n=!0,arguments.length&&s.write(t),f(),s},s.destroy=function(){if(!i)return i=!0,n=!0,o.length=0,s.writable=s.readable=!1,s.emit("close"),s},s.pause=function(){if(!s.paused)return s.paused=!0,s},s.resume=function(){return s.paused&&(s.paused=!1,s.emit("resume")),u(),s.paused||s.emit("drain"),s},s}te(co,so),co.prototype.push=function(t,e){return this._transformState.needTransform=!1,so.prototype.push.call(this,t,e)},co.prototype._transform=function(t,e,r){throw new Error("Not implemented")},co.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},co.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},te(po,co),po.prototype._transform=function(t,e,r){r(null,t)},te(go,U),go.Readable=Mi,go.Writable=Ki,go.Duplex=so,go.Transform=co,go.PassThrough=po,go.Stream=go,go.prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",a),r.on("close",s));var o=!1;function a(){o||(o=!0,t.end())}function s(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(f(),0===U.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",s),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),t.removeListener("close",f)}return r.on("error",u),t.on("error",u),r.on("end",f),r.on("close",f),t.on("close",f),t.emit("pipe",r),t},yo.through=yo;var vo={parse:function(t,e){var n,i;function o(t,e){return"string"==typeof t?e===t:t&&"function"==typeof t.exec?t.exec(e):"boolean"==typeof t||"object"===r(t)?t:"function"==typeof t&&t(e)}var a=new ki,s=yo((function(t){"string"==typeof t&&(t=ht.from(t)),a.write(t)}),(function(t){t&&s.write(t),n&&s.emit("header",n),i&&s.emit("footer",i),s.queue(null)}));function u(t,e){!1!==n&&((n=n||{})[t]=e),!1!==i&&!1===n&&((i=i||{})[t]=e)}return"string"==typeof t&&(t=t.split(".").map((function(t){return"$*"===t?{emitKey:!0}:"*"===t||(""===t?{recurse:!0}:t)}))),t&&t.length||(t=null),a.onValue=function(r){if(this.root||(s.root=r),t){for(var i=0,a=0,f=!1,h=!1;i<t.length;){var c=t[i],l=void 0;if(a++,c&&!c.recurse){if(!(l=a===this.stack.length?this:this.stack[a]))return;if(!o(c,l.key))return void u(l.key,r);f=!!c.emitKey,h=!!c.emitPath,i++}else{i++;var d=t[i];if(!d)return;for(;;){if(!(l=a===this.stack.length?this:this.stack[a]))return;if(o(d,l.key)){i++,Object.isFrozen(this.stack[a])||(this.stack[a].value=null);break}u(l.key,r),a++}}}if(n&&(s.emit("header",n),n=!1),a===this.stack.length){var p=this.stack.slice(1).map((function(t){return t.key})).concat([this.key]),g=r;for(var y in null!=g&&null!=(g=e?e(g,p):g)&&((f||h)&&(g={value:g},f&&(g.key=this.key),h&&(g.path=p)),s.queue(g)),this.value&&delete this.value[this.key],this.stack)Object.isFrozen(this.stack[y])||(this.stack[y].value=null)}}},a._onToken=a.onToken,a.onToken=function(e,r){a._onToken(e,r),0===this.stack.length&&s.root&&(t||s.queue(s.root),s.root=null)},a.onError=function(t){t.message.indexOf("at position")>-1&&(t.message="Invalid JSON ("+t.message+")"),s.emit("error",t)},s}},bo=function(t,e){return(bo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};var wo,mo=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function So(t){return t?"function"==typeof t.then?wo.Promise:function(t){return"function"==typeof t.read&&"function"==typeof t.pause&&"function"==typeof t.resume&&"function"==typeof t.pipe&&"function"==typeof t.once&&"function"==typeof t.removeListener}(t)?t._readableState.objectMode?wo.ReadableObject:wo.ReadableString:Array.isArray(t)?wo.Array:"object"===r(t)||t instanceof Object?wo.Object:wo.Primitive:wo.Primitive}!function(t){t[t.Array=0]="Array",t[t.Object=1]="Object",t[t.ReadableString=2]="ReadableString",t[t.ReadableObject=3]="ReadableObject",t[t.Primitive=4]="Primitive",t[t.Promise=5]="Promise"}(wo||(wo={}));var Eo=[];Eo[wo.Array]="[",Eo[wo.Object]="{",Eo[wo.ReadableString]='"',Eo[wo.ReadableObject]="[";var ko=[];ko[wo.Array]="]",ko[wo.Object]="}",ko[wo.ReadableString]='"',ko[wo.ReadableObject]="]";for(var Ro=[],jo=0,xo=Object.entries(wo);jo<xo.length;jo++){var To=xo[jo],Oo=To[0],Ao=To[1];"number"==typeof Ao&&(Ro[Ao]="process"+Oo)}function Lo(t){return t.replace(mo,(function(t){var e=_o[t];return"string"==typeof e?e:"\\u"+t.charCodeAt(0).toString(16).padStart(4,"0")}))}function Co(t){return'"'+Lo(t)+'"'}function Mo(t,e){var r=t.read(e);return null===r?new Promise((function(e,r){var n=function(){return e(null)};t.once("end",n),t.once("error",r),t.once("readable",(function(){t.removeListener("end",n),t.removeListener("error",r),e(t.read())}))})):Promise.resolve(r)}function Po(t){return t.then((function(t){return So(t)===wo.Promise?Po(t):t}))}var Bo=function(t){function e(e,n,i,o){void 0===o&&(o=!1);var a=t.call(this)||this;a.cycle=o,a.stack=[],a.depth=0,a.pushCalled=!1,a.end=!1,a.isReading=!1,a.readMore=!1;var s=r(i);return"string"!==s&&"number"!==s||(a.gap=Number.isFinite(i)?" ".repeat(i):i),Object.assign(a,{visited:o?new WeakMap:new WeakSet,replacerFunction:n instanceof Function&&n,replacerArray:Array.isArray(n)&&n}),n instanceof Function&&(a.replacerFunction=n),Array.isArray(n)&&(a.replacerArray=n),a.addToStack(e),a}return function(t,e){function r(){this.constructor=t}bo(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.cycler=function(t,e){var r=this.visited.get(e);if(r)return{$ref:r};var n=this.path();return void 0!==t&&n.push(t),n=n.map((function(t){return"["+(Number.isInteger(t)?t:Co(t))+"]"})),this.visited.set(e,n.length?"$"+n.join(""):"$"),e},e.prototype.addToStack=function(t,e,n,i){var o,a,s=this,u=t;this.replacerFunction&&(u=this.replacerFunction(e||n,u,this)),u&&u.toJSON instanceof Function&&(u=u.toJSON()),(u instanceof Function||"symbol"===r(t))&&(u=void 0),void 0!==e&&this.replacerArray&&(this.replacerArray.includes(e)||(u=void 0));var f=So(u);if((i&&i.type===wo.Array||void 0!==u)&&f!==wo.Promise&&(i&&!i.first&&this._push(","),i&&(i.first=!1)),void 0!==u&&f!==wo.Promise&&e&&(this.gap?this._push("\n"+this.gap.repeat(this.depth)+'"'+Lo(e)+'": '):this._push('"'+Lo(e)+'":')),f!==wo.Primitive)if(this.cycle)f=So(u=this.cycler(e||n,u));else{if(this.visited.has(u))throw Object.assign(new Error("Converting circular structure to JSON"),{realValue:u,key:e||n});this.visited.add(u)}!e&&n>-1&&this.depth&&this.gap&&this._push("\n"+this.gap.repeat(this.depth));var h=Eo[f];h&&this._push(h);var c={key:e,index:n,type:f,parent:i,value:u,first:!0};return f===wo.Object?(this.depth+=1,c.unread=Object.keys(u),c.isEmpty=!c.unread.length):f===wo.Array?(this.depth+=1,c.unread=u.length,c.arrayLength=c.unread,c.isEmpty=!c.unread):f!==wo.ReadableString&&f!==wo.ReadableObject||(this.depth+=1,u.readableEnded||(null===(o=u._readableState)||void 0===o?void 0:o.endEmitted)?this.emit("error",new Error("Readable Stream has ended before it was serialized. All stream data have been lost"),u,e||n):(u.readableFlowing||(null===(a=u._readableState)||void 0===a?void 0:a.flowing))&&(u.pause(),this.emit("error",new Error("Readable Stream is in flowing mode, data may have been lost. Trying to pause stream."),u,e||n)),c.readCount=0,u.once("end",(function(){c.end=!0,s.__read()})),u.once("error",(function(t){s.error=!0,s.emit("error",t)}))),this.stack.unshift(c),c},e.prototype.removeFromStack=function(t){var e=t.type,r=e===wo.Object||e===wo.Array||e===wo.ReadableString||e===wo.ReadableObject;e!==wo.Primitive&&(this.cycle||this.visited.delete(t.value),r&&(this.depth-=1));var n=ko[e];r&&!t.isEmpty&&this.gap&&this._push("\n"+this.gap.repeat(this.depth)),n&&this._push(n);var i=this.stack.indexOf(t);this.stack.splice(i,1)},e.prototype._push=function(t){this.pushCalled=!0,this.push(t)},e.prototype.processReadableObject=function(t,e){var r=this;if(!t.end)return Mo(t.value,e).then((function(e){null!==e&&(t.first||r._push(","),t.first=!1,r.addToStack(e,void 0,t.readCount),t.readCount+=1)}));this.removeFromStack(t)},e.prototype.processObject=function(t){if(t.unread.length){var e=t.unread.shift(),r=t.value[e];this.addToStack(r,e,void 0,t)}else this.removeFromStack(t)},e.prototype.processArray=function(t){var e=t.unread;if(e){var r=t.arrayLength-e,n=t.value[r];t.unread-=1,this.addToStack(n,void 0,r,t)}else this.removeFromStack(t)},e.prototype.processPrimitive=function(t){if(void 0!==t.value){var e,n=r(t.value);switch(n){case"string":e=Co(t.value);break;case"number":e=Number.isFinite(t.value)?String(t.value):"null";break;case"boolean":e=String(t.value);break;case"object":t.value||(e="null");break;default:throw Object.assign(new Error('Unknown type "'+n+'". Please file an issue!'),{value:t.value})}this._push(e)}else!this.stack[1]||this.stack[1].type!==wo.Array&&this.stack[1].type!==wo.ReadableObject?t.addSeparatorAfterEnd=!1:this._push("null");this.removeFromStack(t)},e.prototype.processReadableString=function(t,e){var r=this;if(!t.end)return Mo(t.value,e).then((function(t){t&&r._push(Lo(t.toString()))}));this.removeFromStack(t)},e.prototype.processPromise=function(t){var e=this;return Po(t.value).then((function(r){e.removeFromStack(t),e.addToStack(r,t.key,t.index,t.parent)}))},e.prototype.processStackTopItem=function(t){var e,r=this,n=this.stack[0];if(!n||this.error)return Promise.resolve();try{e=this[Ro[n.type]](n,t)}catch(t){return Promise.reject(t)}return Promise.resolve(e).then((function(){0===r.stack.length&&(r.end=!0,r._push(null))}))},e.prototype.__read=function(t){var e=this;if(!this.isReading&&!this.error)return this.isReading=!0,this.readMore=!1,this.processStackTopItem(t).then((function(){!e.end&&!e.error&&(e.readMore||!e.pushCalled)?En((function(){e.isReading=!1,e.__read()})):e.isReading=!1})).catch((function(t){e.error=!0,e.emit("error",t)}));this.readMore=!0},e.prototype._read=function(t){this.pushCalled=!1,this.__read(t)},e.prototype.path=function(){return this.stack.map((function(t){var e=t.key,r=t.index;return e||r})).filter((function(t){return t||t>-1})).reverse()},e}(Mi),No=Array.isArray,Uo="object"==r(n)&&n&&n.Object===Object&&n,Do="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,Io=Uo||Do||Function("return this")(),Fo=Io.Symbol,qo=Object.prototype,Wo=qo.hasOwnProperty,zo=qo.toString,Yo=Fo?Fo.toStringTag:void 0;var $o=function(t){var e=Wo.call(t,Yo),r=t[Yo];try{t[Yo]=void 0;var n=!0}catch(t){}var i=zo.call(t);return n&&(e?t[Yo]=r:delete t[Yo]),i},Go=Object.prototype.toString;var Ho=function(t){return Go.call(t)},Jo=Fo?Fo.toStringTag:void 0;var Vo=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Jo&&Jo in Object(t)?$o(t):Ho(t)};var Ko=function(t){return null!=t&&"object"==r(t)};var Zo=function(t){return"symbol"==r(t)||Ko(t)&&"[object Symbol]"==Vo(t)},Xo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qo=/^\w*$/;var ta=function(t,e){if(No(t))return!1;var n=r(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Zo(t))||(Qo.test(t)||!Xo.test(t)||null!=e&&t in Object(e))};var ea=function(t){var e=r(t);return null!=t&&("object"==e||"function"==e)};var ra,na=function(t){if(!ea(t))return!1;var e=Vo(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},ia=Io["__core-js_shared__"],oa=(ra=/[^.]+$/.exec(ia&&ia.keys&&ia.keys.IE_PROTO||""))?"Symbol(src)_1."+ra:"";var aa=function(t){return!!oa&&oa in t},sa=Function.prototype.toString;var ua=function(t){if(null!=t){try{return sa.call(t)}catch(t){}try{return t+""}catch(t){}}return""},fa=/^\[object .+?Constructor\]$/,ha=Function.prototype,ca=Object.prototype,la=ha.toString,da=ca.hasOwnProperty,pa=RegExp("^"+la.call(da).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ga=function(t){return!(!ea(t)||aa(t))&&(na(t)?pa:fa).test(ua(t))};var ya=function(t,e){return null==t?void 0:t[e]};var va=function(t,e){var r=ya(t,e);return ga(r)?r:void 0},ba=va(Object,"create");var wa=function(){this.__data__=ba?ba(null):{},this.size=0};var ma=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},_a=Object.prototype.hasOwnProperty;var Sa=function(t){var e=this.__data__;if(ba){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return _a.call(e,t)?e[t]:void 0},Ea=Object.prototype.hasOwnProperty;var ka=function(t){var e=this.__data__;return ba?void 0!==e[t]:Ea.call(e,t)};var Ra=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ba&&void 0===e?"__lodash_hash_undefined__":e,this};function ja(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ja.prototype.clear=wa,ja.prototype.delete=ma,ja.prototype.get=Sa,ja.prototype.has=ka,ja.prototype.set=Ra;var xa=ja;var Ta=function(){this.__data__=[],this.size=0};var Oa=function(t,e){return t===e||t!=t&&e!=e};var Aa=function(t,e){for(var r=t.length;r--;)if(Oa(t[r][0],e))return r;return-1},La=Array.prototype.splice;var Ca=function(t){var e=this.__data__,r=Aa(e,t);return!(r<0)&&(r==e.length-1?e.pop():La.call(e,r,1),--this.size,!0)};var Ma=function(t){var e=this.__data__,r=Aa(e,t);return r<0?void 0:e[r][1]};var Pa=function(t){return Aa(this.__data__,t)>-1};var Ba=function(t,e){var r=this.__data__,n=Aa(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Na(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Na.prototype.clear=Ta,Na.prototype.delete=Ca,Na.prototype.get=Ma,Na.prototype.has=Pa,Na.prototype.set=Ba;var Ua=Na,Da=va(Io,"Map");var Ia=function(){this.size=0,this.__data__={hash:new xa,map:new(Da||Ua),string:new xa}};var Fa=function(t){var e=r(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var qa=function(t,e){var r=t.__data__;return Fa(e)?r["string"==typeof e?"string":"hash"]:r.map};var Wa=function(t){var e=qa(this,t).delete(t);return this.size-=e?1:0,e};var za=function(t){return qa(this,t).get(t)};var Ya=function(t){return qa(this,t).has(t)};var $a=function(t,e){var r=qa(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Ga(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ga.prototype.clear=Ia,Ga.prototype.delete=Wa,Ga.prototype.get=za,Ga.prototype.has=Ya,Ga.prototype.set=$a;var Ha=Ga;function Ja(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function r(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Ja.Cache||Ha),r}Ja.Cache=Ha;var Va=Ja;var Ka=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Za=/\\(\\)?/g,Xa=function(t){var e=Va(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ka,(function(t,r,n,i){e.push(n?i.replace(Za,"$1"):r||t)})),e}));var Qa=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i},ts=Fo?Fo.prototype:void 0,es=ts?ts.toString:void 0;var rs=function t(e){if("string"==typeof e)return e;if(No(e))return Qa(e,t)+"";if(Zo(e))return es?es.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var ns=function(t){return null==t?"":rs(t)};var is=function(t,e){return No(t)?t:ta(t,e)?[t]:Xa(ns(t))};var os=function(t){if("string"==typeof t||Zo(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var as=function(t,e){for(var r=0,n=(e=is(e,t)).length;null!=t&&r<n;)t=t[os(e[r++])];return r&&r==n?t:void 0};var ss=function(t,e,r){var n=null==t?void 0:as(t,e);return void 0===n?r:n};var us=function(t){return"number"==typeof t||Ko(t)&&"[object Number]"==Vo(t)};function fs(t){return"[object String]"===Object.prototype.toString.call(t)}function hs(t){return!(!fs(t)||""===t)}function cs(t){return"[object Array]"===Object.prototype.toString.call(t)}function ls(t){return"[object Undefined]"===Object.prototype.toString.call(t)}function ds(t){return"[object Object]"===Object.prototype.toString.call(t)}function ps(t){return!(!fs(t)||""!==t)}function gs(t){return!!ls(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!function(t){if(ds(t)){for(var e in t)return!1;return!0}return!1}(t)||(!!ps(t)||!!function(t){return!!cs(t)&&0===t.length}(t))))}function ys(){var t,e,r=new Promise((function(){t=arguments[0],e=arguments[1]}));return r.resolve=t,r.reject=e,r}function vs(){return(vs=e(a.mark((function t(e){var r;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(hs(e)){t.next=2;break}return t.abrupt("return",{});case 2:r={};try{r=JSON.parse(e)}catch(t){r={}}return t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function bs(){return(bs=e(a.mark((function t(e){var r;return a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!ls(e)){t.next=2;break}return t.abrupt("return","");case 2:r="";try{r=JSON.stringify(e)}catch(t){r=""}return t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return{parse:function(t){return vs.apply(this,arguments)},parseByStream:function(t){var e={};if("null"===t)return null;if(""===t)return{};var r="__system__",n='{"'.concat(r,'":').concat(t,"}"),i=ys(),o=Ln(n),a=vo.parse("$*");return a.on("data",(function(t){e[t.key]=t.value})),a.on("end",(function(){var t=ss(e,r);i.resolve(t)})),a.on("error",(function(t){i.reject(t)})),o.pipe(a),i},createParseStream:function(t){return hs(t)||function(t){return!(!cs(t)||0===t.length||1===t.length&&gs(t[0]))}(t)||(t="$*"),vo.parse(t)},stringify:function(t){return bs.apply(this,arguments)},stringifyByStream:function(t){var e="";if(ls(t))return"";if(null===t)return"null";if(ps(t))return'""';if(us(t))return"".concat(t);if(fs(t))return'"'.concat(t,'"');var r=ys(),n=new Bo(t,null,null,!1);return n.on("data",(function(t){e+=t})),n.on("end",(function(){r.resolve(e)})),n.on("error",(function(t){r.reject(t)})),r},createStringifyStream:function(t){if(!ds(t)&&!cs(t))throw new Error("data is not object or array");return new Bo(t,null,null,!1)}}}));
|
|
6
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-json-stream"]=e()}(this,(function(){"use strict";function t(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function e(e){return function(){var r=this,n=arguments;return new Promise((function(i,o){var a=e.apply(r,n);function s(e){t(a,i,o,s,u,"next",e)}function u(e){t(a,i,o,s,u,"throw",e)}s(void 0)}))}}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach((function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})})),e}function o(t){var e={exports:{}};return t(e,e.exports),e.exports}var a=o((function(t){var e=function(t){var e,n=Object.prototype,i=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),a=new O(n||[]);return o._invoke=function(t,e,r){var n=l;return function(i,o){if(n===p)throw new Error("Generator is already running");if(n===g){if("throw"===i)throw o;return L()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=j(a,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=c(t,e,r);if("normal"===u.type){if(n=r.done?g:d,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=g,r.method="throw",r.arg=u.arg)}}}(t,r,a),o}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var l="suspendedStart",d="suspendedYield",p="executing",g="completed",y={};function v(){}function b(){}function w(){}var m={};f(m,a,(function(){return this}));var _=Object.getPrototypeOf,S=_&&_(_(A([])));S&&S!==n&&i.call(S,a)&&(m=S);var E=w.prototype=v.prototype=Object.create(m);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function R(t,e){function n(o,a,s,u){var f=c(t[o],t,a);if("throw"!==f.type){var h=f.arg,l=h.value;return l&&"object"===r(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(l).then((function(t){h.value=t,s(h)}),(function(t){return n("throw",t,s,u)}))}u(f.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}}function j(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,j(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var i=c(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function A(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(i.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}return{next:L}}function L(){return{value:e,done:!0}}return b.prototype=w,f(E,"constructor",w),f(w,"constructor",b),b.displayName=f(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},k(R.prototype),f(R.prototype,s,(function(){return this})),t.AsyncIterator=R,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new R(h(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(E),f(E,u,"Generator"),f(E,a,(function(){return this})),f(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),f=i.call(a,"finallyLoc");if(u&&f){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})),s=a,u="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function f(){throw new Error("setTimeout has not been defined")}function h(){throw new Error("clearTimeout has not been defined")}var c=f,l=h;function d(t){if(c===setTimeout)return setTimeout(t,0);if((c===f||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}"function"==typeof u.setTimeout&&(c=setTimeout),"function"==typeof u.clearTimeout&&(l=clearTimeout);var p,g=[],y=!1,v=-1;function b(){y&&p&&(y=!1,p.length?g=p.concat(g):v=-1,g.length&&w())}function w(){if(!y){var t=d(b);y=!0;for(var e=g.length;e;){for(p=g,g=[];++v<e;)p&&p[v].run();v=-1,e=g.length}p=null,y=!1,function(t){if(l===clearTimeout)return clearTimeout(t);if((l===h||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}(t)}}function m(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];g.push(new _(t,e)),1!==g.length||y||d(w)}function _(t,e){this.fun=t,this.array=e}_.prototype.run=function(){this.fun.apply(null,this.array)};function S(){}var E=S,k=S,R=S,j=S,x=S,T=S,O=S;var A=u.performance||{},L=A.now||A.mozNow||A.msNow||A.oNow||A.webkitNow||function(){return(new Date).getTime()};var C=new Date;var M={nextTick:m,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:E,addListener:k,once:R,off:j,removeListener:x,removeAllListeners:T,emit:O,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*L.call(A),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-C)/1e3}},P=o((function(t){void 0===M||!M.version||0===M.version.indexOf("v0.")||0===M.version.indexOf("v1.")&&0!==M.version.indexOf("v1.8.")?t.exports={nextTick:function(t,e,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return M.nextTick(t);case 2:return M.nextTick((function(){t.call(null,e)}));case 3:return M.nextTick((function(){t.call(null,e,r)}));case 4:return M.nextTick((function(){t.call(null,e,r,n)}));default:for(i=new Array(a-1),o=0;o<i.length;)i[o++]=arguments[o];return M.nextTick((function(){t.apply(null,i)}))}}}:t.exports=M})),B={}.toString,N=Array.isArray||function(t){return"[object Array]"==B.call(t)};function U(){}function D(){D.init.call(this)}function I(t){return void 0===t._maxListeners?D.defaultMaxListeners:t._maxListeners}function F(t,e,r){if(e)t.call(r);else for(var n=t.length,i=J(t,n),o=0;o<n;++o)i[o].call(r)}function q(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,o=J(t,i),a=0;a<i;++a)o[a].call(r,n)}function W(t,e,r,n,i){if(e)t.call(r,n,i);else for(var o=t.length,a=J(t,o),s=0;s<o;++s)a[s].call(r,n,i)}function z(t,e,r,n,i,o){if(e)t.call(r,n,i,o);else for(var a=t.length,s=J(t,a),u=0;u<a;++u)s[u].call(r,n,i,o)}function Y(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,o=J(t,i),a=0;a<i;++a)o[a].apply(r,n)}function $(t,e,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=t._events)?(o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]):(o=t._events=new U,t._eventsCount=0),a){if("function"==typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),!a.warned&&(i=I(t))&&i>0&&a.length>i){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=o[e]=r,++t._eventsCount;return t}function G(t,e,r){var n=!1;function i(){t.removeListener(e,i),n||(n=!0,r.apply(t,arguments))}return i.listener=r,i}function H(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function J(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}U.prototype=Object.create(null),D.EventEmitter=D,D.usingDomains=!1,D.prototype.domain=void 0,D.prototype._events=void 0,D.prototype._maxListeners=void 0,D.defaultMaxListeners=10,D.init=function(){this.domain=null,D.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new U,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},D.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},D.prototype.getMaxListeners=function(){return I(this)},D.prototype.emit=function(t){var e,r,n,i,o,a,s,u="error"===t;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(e=arguments[1],!s){if(e instanceof Error)throw e;var f=new Error('Uncaught, unspecified "error" event. ('+e+")");throw f.context=e,f}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=s,e.domainThrown=!1,s.emit("error",e),!1}if(!(r=a[t]))return!1;var h="function"==typeof r;switch(n=arguments.length){case 1:F(r,h,this);break;case 2:q(r,h,this,arguments[1]);break;case 3:W(r,h,this,arguments[1],arguments[2]);break;case 4:z(r,h,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];Y(r,h,this,i)}return!0},D.prototype.addListener=function(t,e){return $(this,t,e,!1)},D.prototype.on=D.prototype.addListener,D.prototype.prependListener=function(t,e){return $(this,t,e,!0)},D.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,G(this,t,e)),this},D.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,G(this,t,e)),this},D.prototype.removeListener=function(t,e){var r,n,i,o,a;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[t]))return this;if(r===e||r.listener&&r.listener===e)0==--this._eventsCount?this._events=new U:(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length;o-- >0;)if(r[o]===e||r[o].listener&&r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new U,this;delete n[t]}else!function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(r,i);n.removeListener&&this.emit("removeListener",t,a||e)}return this},D.prototype.removeAllListeners=function(t){var e,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new U,this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=new U:delete r[t]),this;if(0===arguments.length){for(var n,i=Object.keys(r),o=0;o<i.length;++o)"removeListener"!==(n=i[o])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new U,this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},D.prototype.listeners=function(t){var e,r=this._events;return r&&(e=r[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(e):[]},D.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):H.call(t,e)},D.prototype.listenerCount=H,D.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var V=i(Object.freeze({__proto__:null,default:D,EventEmitter:D})),K=V.EventEmitter,Z=[],X=[],Q="undefined"!=typeof Uint8Array?Uint8Array:Array,tt=!1;function et(){tt=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)Z[e]=t[e],X[t.charCodeAt(e)]=e;X["-".charCodeAt(0)]=62,X["_".charCodeAt(0)]=63}function rt(t,e,r){for(var n,i,o=[],a=e;a<r;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],o.push(Z[(i=n)>>18&63]+Z[i>>12&63]+Z[i>>6&63]+Z[63&i]);return o.join("")}function nt(t){var e;tt||et();for(var r=t.length,n=r%3,i="",o=[],a=16383,s=0,u=r-n;s<u;s+=a)o.push(rt(t,s,s+a>u?u:s+a));return 1===n?(e=t[r-1],i+=Z[e>>2],i+=Z[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=Z[e>>10],i+=Z[e>>4&63],i+=Z[e<<2&63],i+="="),o.push(i),o.join("")}function it(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,f=u>>1,h=-7,c=r?i-1:0,l=r?-1:1,d=t[e+c];for(c+=l,o=d&(1<<-h)-1,d>>=-h,h+=s;h>0;o=256*o+t[e+c],c+=l,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=256*a+t[e+c],c+=l,h-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=f}return(d?-1:1)*a*Math.pow(2,o-n)}function ot(t,e,r,n,i,o){var a,s,u,f=8*o-i-1,h=(1<<f)-1,c=h>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+c>=1?l/u:l*Math.pow(2,1-c))*u>=2&&(a++,u/=2),a+c>=h?(s=0,a=h):a+c>=1?(s=(e*u-1)*Math.pow(2,i),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,f+=i;f>0;t[r+d]=255&a,d+=p,a/=256,f-=8);t[r+d-p]|=128*g}var at={}.toString,st=Array.isArray||function(t){return"[object Array]"==at.call(t)};ct.TYPED_ARRAY_SUPPORT=void 0===u.TYPED_ARRAY_SUPPORT||u.TYPED_ARRAY_SUPPORT;var ut=ft();function ft(){return ct.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ht(t,e){if(ft()<e)throw new RangeError("Invalid typed array length");return ct.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=ct.prototype:(null===t&&(t=new ct(e)),t.length=e),t}function ct(t,e,r){if(!(ct.TYPED_ARRAY_SUPPORT||this instanceof ct))return new ct(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return pt(this,t)}return lt(this,t,e,r)}function lt(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);ct.TYPED_ARRAY_SUPPORT?(t=e).__proto__=ct.prototype:t=gt(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!ct.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|bt(e,r),i=(t=ht(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(vt(e)){var r=0|yt(e.length);return 0===(t=ht(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?ht(t,0):gt(t,e);if("Buffer"===e.type&&st(e.data))return gt(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function dt(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function pt(t,e){if(dt(e),t=ht(t,e<0?0:0|yt(e)),!ct.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function gt(t,e){var r=e.length<0?0:0|yt(e.length);t=ht(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function yt(t){if(t>=ft())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ft().toString(16)+" bytes");return 0|t}function vt(t){return!(null==t||!t._isBuffer)}function bt(t,e){if(vt(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return $t(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Gt(t).length;default:if(n)return $t(t).length;e=(""+e).toLowerCase(),n=!0}}function wt(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Pt(this,e,r);case"utf8":case"utf-8":return At(this,e,r);case"ascii":return Ct(this,e,r);case"latin1":case"binary":return Mt(this,e,r);case"base64":return Ot(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bt(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function mt(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function _t(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=ct.from(e,n)),vt(e))return 0===e.length?-1:St(t,e,r,n,i);if("number"==typeof e)return e&=255,ct.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):St(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function St(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var h=-1;for(o=r;o<s;o++)if(f(t,o)===f(e,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===u)return h*a}else-1!==h&&(o-=o-h),h=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var c=!0,l=0;l<u;l++)if(f(t,o+l)!==f(e,l)){c=!1;break}if(c)return o}return-1}function Et(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function kt(t,e,r,n){return Ht($t(e,t.length-r),t,r,n)}function Rt(t,e,r,n){return Ht(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function jt(t,e,r,n){return Rt(t,e,r,n)}function xt(t,e,r,n){return Ht(Gt(e),t,r,n)}function Tt(t,e,r,n){return Ht(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function Ot(t,e,r){return 0===e&&r===t.length?nt(t):nt(t.slice(e,r))}function At(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,f=t[i],h=null,c=f>239?4:f>223?3:f>191?2:1;if(i+c<=r)switch(c){case 1:f<128&&(h=f);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&f)<<6|63&o)>127&&(h=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&f)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(h=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(h=u)}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}return function(t){var e=t.length;if(e<=Lt)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Lt));return r}(n)}ct.poolSize=8192,ct._augment=function(t){return t.__proto__=ct.prototype,t},ct.from=function(t,e,r){return lt(null,t,e,r)},ct.TYPED_ARRAY_SUPPORT&&(ct.prototype.__proto__=Uint8Array.prototype,ct.__proto__=Uint8Array),ct.alloc=function(t,e,r){return function(t,e,r,n){return dt(e),e<=0?ht(t,e):void 0!==r?"string"==typeof n?ht(t,e).fill(r,n):ht(t,e).fill(r):ht(t,e)}(null,t,e,r)},ct.allocUnsafe=function(t){return pt(null,t)},ct.allocUnsafeSlow=function(t){return pt(null,t)},ct.isBuffer=Jt,ct.compare=function(t,e){if(!vt(t)||!vt(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},ct.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ct.concat=function(t,e){if(!st(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return ct.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=ct.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(!vt(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},ct.byteLength=bt,ct.prototype._isBuffer=!0,ct.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)mt(this,e,e+1);return this},ct.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)mt(this,e,e+3),mt(this,e+1,e+2);return this},ct.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)mt(this,e,e+7),mt(this,e+1,e+6),mt(this,e+2,e+5),mt(this,e+3,e+4);return this},ct.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?At(this,0,t):wt.apply(this,arguments)},ct.prototype.equals=function(t){if(!vt(t))throw new TypeError("Argument must be a Buffer");return this===t||0===ct.compare(this,t)},ct.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},ct.prototype.compare=function(t,e,r,n,i){if(!vt(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(n,i),f=t.slice(e,r),h=0;h<s;++h)if(u[h]!==f[h]){o=u[h],a=f[h];break}return o<a?-1:a<o?1:0},ct.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},ct.prototype.indexOf=function(t,e,r){return _t(this,t,e,r,!0)},ct.prototype.lastIndexOf=function(t,e,r){return _t(this,t,e,r,!1)},ct.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return Et(this,t,e,r);case"utf8":case"utf-8":return kt(this,t,e,r);case"ascii":return Rt(this,t,e,r);case"latin1":case"binary":return jt(this,t,e,r);case"base64":return xt(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Tt(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},ct.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Lt=4096;function Ct(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function Mt(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function Pt(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=Yt(t[o]);return i}function Bt(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function Nt(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function Ut(t,e,r,n,i,o){if(!vt(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function Dt(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function It(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function Ft(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function qt(t,e,r,n,i){return i||Ft(t,0,r,4),ot(t,e,r,n,23,4),r+4}function Wt(t,e,r,n,i){return i||Ft(t,0,r,8),ot(t,e,r,n,52,8),r+8}ct.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),ct.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=ct.prototype;else{var i=e-t;r=new ct(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},ct.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||Nt(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},ct.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||Nt(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},ct.prototype.readUInt8=function(t,e){return e||Nt(t,1,this.length),this[t]},ct.prototype.readUInt16LE=function(t,e){return e||Nt(t,2,this.length),this[t]|this[t+1]<<8},ct.prototype.readUInt16BE=function(t,e){return e||Nt(t,2,this.length),this[t]<<8|this[t+1]},ct.prototype.readUInt32LE=function(t,e){return e||Nt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},ct.prototype.readUInt32BE=function(t,e){return e||Nt(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},ct.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||Nt(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},ct.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||Nt(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},ct.prototype.readInt8=function(t,e){return e||Nt(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},ct.prototype.readInt16LE=function(t,e){e||Nt(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},ct.prototype.readInt16BE=function(t,e){e||Nt(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},ct.prototype.readInt32LE=function(t,e){return e||Nt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},ct.prototype.readInt32BE=function(t,e){return e||Nt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},ct.prototype.readFloatLE=function(t,e){return e||Nt(t,4,this.length),it(this,t,!0,23,4)},ct.prototype.readFloatBE=function(t,e){return e||Nt(t,4,this.length),it(this,t,!1,23,4)},ct.prototype.readDoubleLE=function(t,e){return e||Nt(t,8,this.length),it(this,t,!0,52,8)},ct.prototype.readDoubleBE=function(t,e){return e||Nt(t,8,this.length),it(this,t,!1,52,8)},ct.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Ut(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},ct.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||Ut(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},ct.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||Ut(this,t,e,1,255,0),ct.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},ct.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||Ut(this,t,e,2,65535,0),ct.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Dt(this,t,e,!0),e+2},ct.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||Ut(this,t,e,2,65535,0),ct.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Dt(this,t,e,!1),e+2},ct.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||Ut(this,t,e,4,4294967295,0),ct.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):It(this,t,e,!0),e+4},ct.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||Ut(this,t,e,4,4294967295,0),ct.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):It(this,t,e,!1),e+4},ct.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);Ut(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},ct.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);Ut(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},ct.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||Ut(this,t,e,1,127,-128),ct.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},ct.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||Ut(this,t,e,2,32767,-32768),ct.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Dt(this,t,e,!0),e+2},ct.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||Ut(this,t,e,2,32767,-32768),ct.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Dt(this,t,e,!1),e+2},ct.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||Ut(this,t,e,4,2147483647,-2147483648),ct.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):It(this,t,e,!0),e+4},ct.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||Ut(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),ct.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):It(this,t,e,!1),e+4},ct.prototype.writeFloatLE=function(t,e,r){return qt(this,t,e,!0,r)},ct.prototype.writeFloatBE=function(t,e,r){return qt(this,t,e,!1,r)},ct.prototype.writeDoubleLE=function(t,e,r){return Wt(this,t,e,!0,r)},ct.prototype.writeDoubleBE=function(t,e,r){return Wt(this,t,e,!1,r)},ct.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!ct.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},ct.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!ct.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=vt(t)?t:$t(new ct(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var zt=/[^+\/0-9A-Za-z-_]/g;function Yt(t){return t<16?"0"+t.toString(16):t.toString(16)}function $t(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Gt(t){return function(t){var e,r,n,i,o,a;tt||et();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[s-2]?2:"="===t[s-1]?1:0,a=new Q(3*s/4-o),n=o>0?s-4:s;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)i=X[t.charCodeAt(e)]<<18|X[t.charCodeAt(e+1)]<<12|X[t.charCodeAt(e+2)]<<6|X[t.charCodeAt(e+3)],a[u++]=i>>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=X[t.charCodeAt(e)]<<2|X[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=X[t.charCodeAt(e)]<<10|X[t.charCodeAt(e+1)]<<4|X[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(zt,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Ht(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Jt(t){return null!=t&&(!!t._isBuffer||Vt(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Vt(t.slice(0,0))}(t))}function Vt(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var Kt=i(Object.freeze({__proto__:null,Buffer:ct,INSPECT_MAX_BYTES:50,SlowBuffer:function(t){return+t!=t&&(t=0),ct.alloc(+t)},isBuffer:Jt,kMaxLength:ut})),Zt=o((function(t,e){var r=Kt.Buffer;function n(t,e){for(var r in t)e[r]=t[r]}function i(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=Kt:(n(Kt,e),e.Buffer=i),n(r,i),i.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},i.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return Kt.SlowBuffer(t)}}));function Xt(t){return Object.prototype.toString.call(t)}var Qt,te={isArray:function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Xt(t)},isBoolean:function(t){return"boolean"==typeof t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t},isNumber:function(t){return"number"==typeof t},isString:function(t){return"string"==typeof t},isSymbol:function(t){return"symbol"===r(t)},isUndefined:function(t){return void 0===t},isRegExp:function(t){return"[object RegExp]"===Xt(t)},isObject:function(t){return"object"===r(t)&&null!==t},isDate:function(t){return"[object Date]"===Xt(t)},isError:function(t){return"[object Error]"===Xt(t)||t instanceof Error},isFunction:function(t){return"function"==typeof t},isPrimitive:function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===r(t)||void 0===t},isBuffer:Kt.Buffer.isBuffer},ee=o((function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}}));Qt="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t};var re=Qt,ne=/%[sdj%]/g;function ie(t){if(!me(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(fe(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(t).replace(ne,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),a=n[r];r<i;a=n[++r])ve(a)||!ke(a)?o+=" "+a:o+=" "+fe(a);return o}function oe(t,e){if(Se(u.process))return function(){return oe(t,e).apply(this,arguments)};if(!0===M.noDeprecation)return t;var r=!1;return function(){if(!r){if(M.throwDeprecation)throw new Error(e);M.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}}var ae,se={};function ue(t){if(Se(ae)&&(ae=M.env.NODE_DEBUG||""),t=t.toUpperCase(),!se[t])if(new RegExp("\\b"+t+"\\b","i").test(ae)){se[t]=function(){var e=ie.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else se[t]=function(){};return se[t]}function fe(t,e){var r={seen:[],stylize:ce};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),ye(e)?r.showHidden=e:e&&Be(r,e),Se(r.showHidden)&&(r.showHidden=!1),Se(r.depth)&&(r.depth=2),Se(r.colors)&&(r.colors=!1),Se(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=he),le(r,t,r.depth)}function he(t,e){var r=fe.styles[e];return r?"["+fe.colors[r][0]+"m"+t+"["+fe.colors[r][1]+"m":t}function ce(t,e){return t}function le(t,e,r){if(t.customInspect&&e&&xe(e.inspect)&&e.inspect!==fe&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return me(n)||(n=le(t,n,r)),n}var i=function(t,e){if(Se(e))return t.stylize("undefined","undefined");if(me(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(we(e))return t.stylize(""+e,"number");if(ye(e))return t.stylize(""+e,"boolean");if(ve(e))return t.stylize("null","null")}(t,e);if(i)return i;var o=Object.keys(e),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),je(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return de(e);if(0===o.length){if(xe(e)){var s=e.name?": "+e.name:"";return t.stylize("[Function"+s+"]","special")}if(Ee(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Re(e))return t.stylize(Date.prototype.toString.call(e),"date");if(je(e))return de(e)}var u,f="",h=!1,c=["{","}"];(ge(e)&&(h=!0,c=["[","]"]),xe(e))&&(f=" [Function"+(e.name?": "+e.name:"")+"]");return Ee(e)&&(f=" "+RegExp.prototype.toString.call(e)),Re(e)&&(f=" "+Date.prototype.toUTCString.call(e)),je(e)&&(f=" "+de(e)),0!==o.length||h&&0!=e.length?r<0?Ee(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=h?function(t,e,r,n,i){for(var o=[],a=0,s=e.length;a<s;++a)Ne(e,String(a))?o.push(pe(t,e,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(pe(t,e,r,n,i,!0))})),o}(t,e,r,a,o):o.map((function(n){return pe(t,e,r,a,n,h)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(u,f,c)):c[0]+f+c[1]}function de(t){return"["+Error.prototype.toString.call(t)+"]"}function pe(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),Ne(n,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=ve(r)?le(t,u.value,null):le(t,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),Se(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function ge(t){return Array.isArray(t)}function ye(t){return"boolean"==typeof t}function ve(t){return null===t}function be(t){return null==t}function we(t){return"number"==typeof t}function me(t){return"string"==typeof t}function _e(t){return"symbol"===r(t)}function Se(t){return void 0===t}function Ee(t){return ke(t)&&"[object RegExp]"===Ae(t)}function ke(t){return"object"===r(t)&&null!==t}function Re(t){return ke(t)&&"[object Date]"===Ae(t)}function je(t){return ke(t)&&("[object Error]"===Ae(t)||t instanceof Error)}function xe(t){return"function"==typeof t}function Te(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===r(t)||void 0===t}function Oe(t){return ct.isBuffer(t)}function Ae(t){return Object.prototype.toString.call(t)}function Le(t){return t<10?"0"+t.toString(10):t.toString(10)}fe.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},fe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Ce=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Me(){var t=new Date,e=[Le(t.getHours()),Le(t.getMinutes()),Le(t.getSeconds())].join(":");return[t.getDate(),Ce[t.getMonth()],e].join(" ")}function Pe(){console.log("%s - %s",Me(),ie.apply(null,arguments))}function Be(t,e){if(!e||!ke(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function Ne(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Ue={inherits:re,_extend:Be,log:Pe,isBuffer:Oe,isPrimitive:Te,isFunction:xe,isError:je,isDate:Re,isObject:ke,isRegExp:Ee,isUndefined:Se,isSymbol:_e,isString:me,isNumber:we,isNullOrUndefined:be,isNull:ve,isBoolean:ye,isArray:ge,inspect:fe,deprecate:oe,format:ie,debuglog:ue},De=i(Object.freeze({__proto__:null,format:ie,deprecate:oe,debuglog:ue,inspect:fe,isArray:ge,isBoolean:ye,isNull:ve,isNullOrUndefined:be,isNumber:we,isString:me,isSymbol:_e,isUndefined:Se,isRegExp:Ee,isObject:ke,isDate:Re,isError:je,isFunction:xe,isPrimitive:Te,isBuffer:Oe,log:Pe,inherits:re,_extend:Be,default:Ue})),Ie=o((function(t){var e=Zt.Buffer;t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return e.alloc(0);if(1===this.length)return this.head.data;for(var r,n,i,o=e.allocUnsafe(t>>>0),a=this.head,s=0;a;)r=a.data,n=o,i=s,r.copy(n,i),s+=a.data.length,a=a.next;return o},t}(),De&&De.inspect&&De.inspect.custom&&(t.exports.prototype[De.inspect.custom]=function(){var t=De.inspect({length:this.length});return this.constructor.name+" "+t})}));function Fe(t,e){t.emit("error",e)}var qe=function(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||P.nextTick(Fe,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(P.nextTick(Fe,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})),this)},We=function(){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.finished=!1,this._writableState.errorEmitted=!1)},ze=function(t,e){if(Ye("noDeprecation"))return t;var r=!1;return function(){if(!r){if(Ye("throwDeprecation"))throw new Error(e);Ye("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}};function Ye(t){try{if(!n.localStorage)return!1}catch(t){return!1}var e=n.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}var $e=lr,Ge=nr;function He(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}var Je,Ve=!M.browser&&["v0.10","v0.9."].indexOf(M.version.slice(0,5))>-1?setImmediate:P.nextTick;nr.WritableState=rr;var Ke=Object.create(te);Ke.inherits=ee;var Ze,Xe={deprecate:ze},Qe=Zt.Buffer,tr=n.Uint8Array||function(){};function er(){}function rr(t,e){t=t||{};var r=e instanceof(Je=Je||$e);this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,i=t.writableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(P.nextTick(i,n),P.nextTick(fr,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(i(n),t._writableState.errorEmitted=!0,t.emit("error",n),fr(t,e))}(t,r,n,e,i);else{var o=sr(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||ar(t,r),n?Ve(or,t,r,o,i):or(t,r,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new He(this)}function nr(t){if(Je=Je||$e,!(Ze.call(nr,this)||this instanceof Je))return new nr(t);this._writableState=new rr(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),K.call(this)}function ir(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function or(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),fr(t,e)}function ar(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)i[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;i.allBuffers=s,ir(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new He(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,h=r.callback;if(ir(t,e,!1,e.objectMode?1:u.length,u,f,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function sr(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function ur(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),fr(t,e)}))}function fr(t,e){var r=sr(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,P.nextTick(ur,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}Ke.inherits(nr,K),rr.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(rr.prototype,"buffer",{get:Xe.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(Ze=Function.prototype[Symbol.hasInstance],Object.defineProperty(nr,Symbol.hasInstance,{value:function(t){return!!Ze.call(this,t)||this===nr&&(t&&t._writableState instanceof rr)}})):Ze=function(t){return t instanceof this},nr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},nr.prototype.write=function(t,e,r){var n=this._writableState,i=!1,o=!n.objectMode&&function(t){return Qe.isBuffer(t)||t instanceof tr}(t);return o&&!Qe.isBuffer(t)&&(t=function(t){return Qe.from(t)}(t)),"function"==typeof e&&(r=e,e=null),o?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=er),n.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),P.nextTick(e,r)}(this,r):(o||function(t,e,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),P.nextTick(n,o),i=!1),i}(this,n,t,r))&&(n.pendingcb++,i=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=Qe.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ir(t,e,!1,s,n,i,o);return u}(this,n,o,t,e,r)),i},nr.prototype.cork=function(){this._writableState.corked++},nr.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||ar(this,t))},nr.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(nr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),nr.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},nr.prototype._writev=null,nr.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,fr(t,e),r&&(e.finished?P.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(nr.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),nr.prototype.destroy=qe,nr.prototype._undestroy=We,nr.prototype._destroy=function(t,e){this.end(),e(t)};var hr=Pr,cr=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},lr=vr,dr=Object.create(te);dr.inherits=ee,dr.inherits(vr,hr);for(var pr=cr(Ge.prototype),gr=0;gr<pr.length;gr++){var yr=pr[gr];vr.prototype[yr]||(vr.prototype[yr]=Ge.prototype[yr])}function vr(t){if(!(this instanceof vr))return new vr(t);hr.call(this,t),Ge.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",br)}function br(){this.allowHalfOpen||this._writableState.ended||P.nextTick(wr,this)}function wr(t){t.end()}Object.defineProperty(vr.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(vr.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),vr.prototype._destroy=function(t,e){this.push(null),this.end(),P.nextTick(e,t)};var mr=Zt.Buffer,_r=mr.isEncoding||function(t){switch((t=""+t)&&t.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}};var Sr=Er;function Er(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(mr.isEncoding===_r||!_r(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=jr,this.end=xr,e=4;break;case"utf8":this.fillLast=Rr,e=4;break;case"base64":this.text=Tr,this.end=Or,e=3;break;default:return this.write=Ar,void(this.end=Lr)}this.lastNeed=0,this.lastTotal=0,this.lastChar=mr.allocUnsafe(e)}function kr(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function Rr(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function jr(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function xr(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function Tr(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function Or(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Ar(t){return t.toString(this.encoding)}function Lr(t){return t&&t.length?this.write(t):""}Er.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},Er.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},Er.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=kr(e[n]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if((i=kr(e[n]))>=0)return i>0&&(t.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if((i=kr(e[n]))>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},Er.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};var Cr,Mr={StringDecoder:Sr},Pr=zr;zr.ReadableState=Wr,V.EventEmitter;var Br=function(t,e){return t.listeners(e).length},Nr=Zt.Buffer,Ur=n.Uint8Array||function(){};var Dr=Object.create(te);Dr.inherits=ee;var Ir,Fr=void 0;Fr=De&&De.debuglog?De.debuglog("stream"):function(){},Dr.inherits(zr,K);var qr=["error","close","destroy","pause","resume"];function Wr(t,e){t=t||{};var r=e instanceof(Cr=Cr||$e);this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Ie,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.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ir||(Ir=Mr.StringDecoder),this.decoder=new Ir(t.encoding),this.encoding=t.encoding)}function zr(t){if(Cr=Cr||$e,!(this instanceof zr))return new zr(t);this._readableState=new Wr(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),K.call(this)}function Yr(t,e,r,n,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,Jr(t)}(t,a)):(i||(o=function(t,e){var r;(function(t){return Nr.isBuffer(t)||t instanceof Ur})(e)||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===Nr.prototype||(e=function(t){return Nr.from(t)}(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):$r(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?$r(t,a,e,!1):Kr(t,a)):$r(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function $r(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&Jr(t)),Kr(t,e)}Object.defineProperty(zr.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),zr.prototype.destroy=qe,zr.prototype._undestroy=We,zr.prototype._destroy=function(t,e){this.push(null),e(t)},zr.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=Nr.from(t,e),e=""),r=!0),Yr(this,t,e,!1,r)},zr.prototype.unshift=function(t){return Yr(this,t,null,!0,!1)},zr.prototype.isPaused=function(){return!1===this._readableState.flowing},zr.prototype.setEncoding=function(t){return Ir||(Ir=Mr.StringDecoder),this._readableState.decoder=new Ir(t),this._readableState.encoding=t,this};var Gr=8388608;function Hr(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=Gr?t=Gr:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function Jr(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Fr("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?P.nextTick(Vr,t):Vr(t))}function Vr(t){Fr("emit readable"),t.emit("readable"),tn(t)}function Kr(t,e){e.readingMore||(e.readingMore=!0,P.nextTick(Zr,t,e))}function Zr(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Fr("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function Xr(t){Fr("readable nexttick read 0"),t.read(0)}function Qr(t,e){e.reading||(Fr("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),tn(t),e.flowing&&!e.reading&&t.read(0)}function tn(t){var e=t._readableState;for(Fr("flow",e.flowing);e.flowing&&null!==t.read(););}function en(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=Nr.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function rn(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,P.nextTick(nn,e,t))}function nn(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function on(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}zr.prototype.read=function(t){Fr("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Fr("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?rn(this):Jr(this),null;if(0===(t=Hr(t,e))&&e.ended)return 0===e.length&&rn(this),null;var n,i=e.needReadable;return Fr("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&Fr("length less than watermark",i=!0),e.ended||e.reading?Fr("reading or ended",i=!1):i&&(Fr("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Hr(r,e))),null===(n=t>0?en(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&rn(this)),null!==n&&this.emit("data",n),n},zr.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},zr.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,Fr("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||!1!==e.end)&&t!==M.stdout&&t!==M.stderr?a:p;function o(e,i){Fr("onunpipe"),e===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,Fr("cleanup"),t.removeListener("close",l),t.removeListener("finish",d),t.removeListener("drain",s),t.removeListener("error",c),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",p),r.removeListener("data",h),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||s())}function a(){Fr("onend"),t.end()}n.endEmitted?P.nextTick(i):r.once("end",i),t.on("unpipe",o);var s=function(t){return function(){var e=t._readableState;Fr("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&Br(t,"data")&&(e.flowing=!0,tn(t))}}(r);t.on("drain",s);var u=!1;var f=!1;function h(e){Fr("ondata"),f=!1,!1!==t.write(e)||f||((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==on(n.pipes,t))&&!u&&(Fr("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function c(e){Fr("onerror",e),p(),t.removeListener("error",c),0===Br(t,"error")&&t.emit("error",e)}function l(){t.removeListener("finish",d),p()}function d(){Fr("onfinish"),t.removeListener("close",l),p()}function p(){Fr("unpipe"),r.unpipe(t)}return r.on("data",h),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?N(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",c),t.once("close",l),t.once("finish",d),t.emit("pipe",r),n.flowing||(Fr("pipe resume"),r.resume()),t},zr.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=on(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},zr.prototype.on=function(t,e){var r=K.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&Jr(this):P.nextTick(Xr,this))}return r},zr.prototype.addListener=zr.prototype.on,zr.prototype.resume=function(){var t=this._readableState;return t.flowing||(Fr("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,P.nextTick(Qr,t,e))}(this,t)),this},zr.prototype.pause=function(){return Fr("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Fr("pause"),this._readableState.flowing=!1,this.emit("pause")),this},zr.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(Fr("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(Fr("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<qr.length;o++)t.on(qr[o],this.emit.bind(this,qr[o]));return this._read=function(e){Fr("wrapped _read",e),n&&(n=!1,t.resume())},this},Object.defineProperty(zr.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),zr._fromList=en;var an=fn,sn=Object.create(te);function un(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function fn(t){if(!(this instanceof fn))return new fn(t);$e.call(this,t),this._transformState={afterTransform:un.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",hn)}function hn(){var t=this;"function"==typeof this._flush?this._flush((function(e,r){cn(t,e,r)})):cn(this,null,null)}function cn(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}sn.inherits=ee,sn.inherits(fn,$e),fn.prototype.push=function(t,e){return this._transformState.needTransform=!1,$e.prototype.push.call(this,t,e)},fn.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")},fn.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},fn.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},fn.prototype._destroy=function(t,e){var r=this;$e.prototype._destroy.call(this,t,(function(t){e(t),r.emit("close")}))};var ln=pn,dn=Object.create(te);function pn(t){if(!(this instanceof pn))return new pn(t);an.call(this,t)}dn.inherits=ee,dn.inherits(pn,an),pn.prototype._transform=function(t,e,r){r(null,t)};var gn=o((function(t,e){(e=t.exports=hr).Stream=e,e.Readable=e,e.Writable=Ge,e.Duplex=$e,e.Transform=an,e.PassThrough=ln})).Readable,yn=bn;bn.ctor=wn,bn.obj=function(t,e){("function"==typeof t||Array.isArray(t))&&(e=t,t={});return(t=_n(t)).objectMode=!0,t.highWaterMark=16,bn(t,e)};var vn=wn();function bn(t,e){("object"!==r(t)||Array.isArray(t))&&(e=t,t={});var n,i=new vn(t);return i._from=Array.isArray(e)?(n=(n=e).slice(),function(t,e){var r=null,i=n.length?n.shift():null;i instanceof Error&&(r=i,i=null),e(r,i)}):e||mn,i}function wn(t,e){function r(e){if(!(this instanceof r))return new r(e);this._reading=!1,this._callback=function(t,e){if(n.destroyed)return;if(t)return n.destroy(t);if(null===e)return n.push(null);n._reading=!1,n.push(e)&&n._read(i)},this.destroyed=!1,gn.call(this,e||t);var n=this,i=this._readableState.highWaterMark}return"function"==typeof t&&(e=t,t={}),t=_n(t),ee(r,gn),r.prototype._from=e||mn,r.prototype._read=function(t){this._reading||this.destroyed||(this._reading=!0,this._from(t,this._callback))},r.prototype.destroy=function(t){if(!this.destroyed){this.destroyed=!0;var e=this;M.nextTick((function(){t&&e.emit("error",t),e.emit("close")}))}},r}function mn(){}function _n(t){return t=t||{}}var Sn,En=1,kn={},Rn=!1,jn=u.document;function xn(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var n={callback:t,args:e};return kn[En]=n,Sn(En),En++}function Tn(t){if(Rn)setTimeout(Tn,0,t);else{var e=kn[t];if(e){Rn=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{!function(t){delete kn[t]}(t),Rn=!1}}}}var On,An,Ln,Cn,Mn=Object.getPrototypeOf&&Object.getPrototypeOf(u);function Pn(t){var e,r=Object.prototype.toString.call(t);if(e="[object Promise]"===r)return!0;if("[object Function]"!==r)return!1;try{e="function"!=typeof t.subscribe&&"function"==typeof t.then}catch(t){}return e}function Bn(t){var r,n,i;function o(e){((t=e)instanceof ArrayBuffer||ArrayBuffer.isView(t)&&!ct.isBuffer(t))&&(t=ct.from(t));var o=!(r=Pn(t)?t:null)&&t[Symbol.iterator]&&"string"!=typeof t&&!ct.isBuffer(t);n=o?t[Symbol.iterator]():null;var a=!r&&t[Symbol.asyncIterator];i=a?t[Symbol.asyncIterator]():null}return Array.isArray(t)&&(t=t.slice()),o(t),yn((function a(u,f){var h=this;if(r)e(s.mark((function t(){return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=o,t.next=4,r;case 4:return t.t1=t.sent,t.next=7,(0,t.t0)(t.t1);case 7:a.call(h,u,f),t.next=13;break;case 10:t.prev=10,t.t2=t.catch(0),f(t.t2);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})))();else if(n){var c=n.next();xn(f,null,c.done?null:c.value)}else if(i)e(s.mark((function t(){var e;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.next();case 3:e=t.sent,xn(f,null,e.done?null:e.value),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),xn(f,t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))();else if(0!==t.length){var l=t.slice(0,u);t=t.slice(u),xn(f,null,l)}else xn(f,null,null)}))}Mn=Mn&&Mn.setTimeout?Mn:u,"[object process]"==={}.toString.call(u.process)?Sn=function(t){M.nextTick((function(){Tn(t)}))}:!function(){if(u.postMessage&&!u.importScripts){var t=!0,e=u.onmessage;return u.onmessage=function(){t=!1},u.postMessage("","*"),u.onmessage=e,t}}()?u.MessageChannel?((An=new MessageChannel).port1.onmessage=function(t){Tn(t.data)},Sn=function(t){An.port2.postMessage(t)}):jn&&"onreadystatechange"in jn.createElement("script")?(On=jn.documentElement,Sn=function(t){var e=jn.createElement("script");e.onreadystatechange=function(){Tn(t),e.onreadystatechange=null,On.removeChild(e),e=null},On.appendChild(e)}):Sn=function(t){setTimeout(Tn,0,t)}:(Ln="setImmediate$"+Math.random()+"$",Cn=function(t){t.source===u&&"string"==typeof t.data&&0===t.data.indexOf(Ln)&&Tn(+t.data.slice(Ln.length))},u.addEventListener?u.addEventListener("message",Cn,!1):u.attachEvent("onmessage",Cn),Sn=function(t){u.postMessage(Ln+t,"*")}),Bn.object=function(t){var r,n,i;function o(e){r=Pn(t=e)?t:null,n=!r&&t[Symbol.iterator]?t[Symbol.iterator]():null,i=!r&&t[Symbol.asyncIterator]?t[Symbol.asyncIterator]():null}return Array.isArray(t)&&(t=t.slice()),o(t),yn.obj((function a(u,f){var h=this;if(r)e(s.mark((function t(){return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=o,t.next=4,r;case 4:return t.t1=t.sent,t.next=7,(0,t.t0)(t.t1);case 7:a.call(h,u,f),t.next=13;break;case 10:t.prev=10,t.t2=t.catch(0),f(t.t2);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})))();else if(n){var c=n.next();xn(f,null,c.done?null:c.value)}else i?e(s.mark((function t(){var e;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.next();case 3:e=t.sent,xn(f,null,e.done?null:e.value),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),xn(f,t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))():(this.push(t),xn(f,null,null))}))};var Nn={},Un=Nn.LEFT_BRACE=1,Dn=Nn.RIGHT_BRACE=2,In=Nn.LEFT_BRACKET=3,Fn=Nn.RIGHT_BRACKET=4,qn=Nn.COLON=5,Wn=Nn.COMMA=6,zn=Nn.TRUE=7,Yn=Nn.FALSE=8,$n=Nn.NULL=9,Gn=Nn.STRING=10,Hn=Nn.NUMBER=11,Jn=Nn.START=17,Vn=Nn.STOP=18,Kn=Nn.TRUE1=33,Zn=Nn.TRUE2=34,Xn=Nn.TRUE3=35,Qn=Nn.FALSE1=49,ti=Nn.FALSE2=50,ei=Nn.FALSE3=51,ri=Nn.FALSE4=52,ni=Nn.NULL1=65,ii=Nn.NULL2=66,oi=Nn.NULL3=67,ai=Nn.NUMBER1=81,si=Nn.NUMBER3=83,ui=Nn.STRING1=97,fi=Nn.STRING2=98,hi=Nn.STRING3=99,ci=Nn.STRING4=100,li=Nn.STRING5=101,di=Nn.STRING6=102,pi=Nn.VALUE=113,gi=Nn.KEY=114,yi=Nn.OBJECT=129,vi=Nn.ARRAY=130,bi="\\".charCodeAt(0),wi="/".charCodeAt(0),mi="\b".charCodeAt(0),_i="\f".charCodeAt(0),Si="\n".charCodeAt(0),Ei="\r".charCodeAt(0),ki="\t".charCodeAt(0),Ri=65536;function ji(){this.tState=Jn,this.value=void 0,this.string=void 0,this.stringBuffer=ct.alloc?ct.alloc(Ri):new ct(Ri),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=pi,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new ct(2),3:new ct(3),4:new ct(4)},this.offset=-1}ji.toknam=function(t){for(var e=Object.keys(Nn),r=0,n=e.length;r<n;r++){var i=e[r];if(Nn[i]===t)return i}return t&&"0x"+t.toString(16)};var xi=ji.prototype;xi.onError=function(t){throw t},xi.charError=function(t,e){this.tState=Vn,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(t[e]))+" at position "+e+" in state "+ji.toknam(this.tState)))},xi.appendStringChar=function(t){this.stringBufferOffset>=Ri&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=t},xi.appendStringBuf=function(t,e,r){var n=t.length;"number"==typeof e&&(n="number"==typeof r?r<0?t.length-e+r:r-e:t.length-e),n<0&&(n=0),this.stringBufferOffset+n>Ri&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),t.copy(this.stringBuffer,this.stringBufferOffset,e,r),this.stringBufferOffset+=n},xi.write=function(t){var e;"string"==typeof t&&(t=new ct(t));for(var r=0,n=t.length;r<n;r++)if(this.tState===Jn){if(e=t[r],this.offset++,123===e)this.onToken(Un,"{");else if(125===e)this.onToken(Dn,"}");else if(91===e)this.onToken(In,"[");else if(93===e)this.onToken(Fn,"]");else if(58===e)this.onToken(qn,":");else if(44===e)this.onToken(Wn,",");else if(116===e)this.tState=Kn;else if(102===e)this.tState=Qn;else if(110===e)this.tState=ni;else if(34===e)this.string="",this.stringBufferOffset=0,this.tState=ui;else if(45===e)this.string="-",this.tState=ai;else if(e>=48&&e<64)this.string=String.fromCharCode(e),this.tState=si;else if(32!==e&&9!==e&&10!==e&&13!==e)return this.charError(t,r)}else if(this.tState===ui)if(e=t[r],this.bytes_remaining>0){for(var i=0;i<this.bytes_remaining;i++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+i]=t[i];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,r=r+i-1}else if(0===this.bytes_remaining&&e>=128){if(e<=193||e>244)return this.onError(new Error("Invalid UTF-8 character at position "+r+" in state "+ji.toknam(this.tState)));if(e>=194&&e<=223&&(this.bytes_in_sequence=2),e>=224&&e<=239&&(this.bytes_in_sequence=3),e>=240&&e<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+r>t.length){for(var o=0;o<=t.length-1-r;o++)this.temp_buffs[this.bytes_in_sequence][o]=t[r+o];this.bytes_remaining=r+this.bytes_in_sequence-t.length,r=t.length-1}else this.appendStringBuf(t,r,r+this.bytes_in_sequence),r=r+this.bytes_in_sequence-1}else if(34===e)this.tState=Jn,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(Gn,this.string),this.offset+=ct.byteLength(this.string,"utf8")+1,this.string=void 0;else if(92===e)this.tState=fi;else{if(!(e>=32))return this.charError(t,r);this.appendStringChar(e)}else if(this.tState===fi)if(34===(e=t[r]))this.appendStringChar(e),this.tState=ui;else if(92===e)this.appendStringChar(bi),this.tState=ui;else if(47===e)this.appendStringChar(wi),this.tState=ui;else if(98===e)this.appendStringChar(mi),this.tState=ui;else if(102===e)this.appendStringChar(_i),this.tState=ui;else if(110===e)this.appendStringChar(Si),this.tState=ui;else if(114===e)this.appendStringChar(Ei),this.tState=ui;else if(116===e)this.appendStringChar(ki),this.tState=ui;else{if(117!==e)return this.charError(t,r);this.unicode="",this.tState=hi}else if(this.tState===hi||this.tState===ci||this.tState===li||this.tState===di){if(!((e=t[r])>=48&&e<64||e>64&&e<=70||e>96&&e<=102))return this.charError(t,r);if(this.unicode+=String.fromCharCode(e),this.tState++===di){var a=parseInt(this.unicode,16);this.unicode=void 0,void 0!==this.highSurrogate&&a>=56320&&a<57344?(this.appendStringBuf(new ct(String.fromCharCode(this.highSurrogate,a))),this.highSurrogate=void 0):void 0===this.highSurrogate&&a>=55296&&a<56320?this.highSurrogate=a:(void 0!==this.highSurrogate&&(this.appendStringBuf(new ct(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new ct(String.fromCharCode(a)))),this.tState=ui}}else if(this.tState===ai||this.tState===si)switch(e=t[r]){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(e),this.tState=si;break;default:this.tState=Jn;var s=Number(this.string);if(isNaN(s))return this.charError(t,r);this.string.match(/[0-9]+/)==this.string&&s.toString()!=this.string?this.onToken(Gn,this.string):this.onToken(Hn,s),this.offset+=this.string.length-1,this.string=void 0,r--}else if(this.tState===Kn){if(114!==t[r])return this.charError(t,r);this.tState=Zn}else if(this.tState===Zn){if(117!==t[r])return this.charError(t,r);this.tState=Xn}else if(this.tState===Xn){if(101!==t[r])return this.charError(t,r);this.tState=Jn,this.onToken(zn,!0),this.offset+=3}else if(this.tState===Qn){if(97!==t[r])return this.charError(t,r);this.tState=ti}else if(this.tState===ti){if(108!==t[r])return this.charError(t,r);this.tState=ei}else if(this.tState===ei){if(115!==t[r])return this.charError(t,r);this.tState=ri}else if(this.tState===ri){if(101!==t[r])return this.charError(t,r);this.tState=Jn,this.onToken(Yn,!1),this.offset+=4}else if(this.tState===ni){if(117!==t[r])return this.charError(t,r);this.tState=ii}else if(this.tState===ii){if(108!==t[r])return this.charError(t,r);this.tState=oi}else if(this.tState===oi){if(108!==t[r])return this.charError(t,r);this.tState=Jn,this.onToken($n,null),this.offset+=3}},xi.onToken=function(t,e){},xi.parseError=function(t,e){this.tState=Vn,this.onError(new Error("Unexpected "+ji.toknam(t)+(e?"("+JSON.stringify(e)+")":"")+" in state "+ji.toknam(this.state)))},xi.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},xi.pop=function(){var t=this.value,e=this.stack.pop();this.value=e.value,this.key=e.key,this.mode=e.mode,this.emit(t),this.mode||(this.state=pi)},xi.emit=function(t){this.mode&&(this.state=Wn),this.onValue(t)},xi.onValue=function(t){},xi.onToken=function(t,e){if(this.state===pi)if(t===Gn||t===Hn||t===zn||t===Yn||t===$n)this.value&&(this.value[this.key]=e),this.emit(e);else if(t===Un)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=gi,this.mode=yi;else if(t===In)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=vi,this.state=pi;else if(t===Dn){if(this.mode!==yi)return this.parseError(t,e);this.pop()}else{if(t!==Fn)return this.parseError(t,e);if(this.mode!==vi)return this.parseError(t,e);this.pop()}else if(this.state===gi)if(t===Gn)this.key=e,this.state=qn;else{if(t!==Dn)return this.parseError(t,e);this.pop()}else if(this.state===qn){if(t!==qn)return this.parseError(t,e);this.state=pi}else{if(this.state!==Wn)return this.parseError(t,e);if(t===Wn)this.mode===vi?(this.key++,this.state=pi):this.mode===yi&&(this.state=gi);else{if(!(t===Fn&&this.mode===vi||t===Dn&&this.mode===yi))return this.parseError(t,e);this.pop()}}},ji.C=Nn;var Ti=ji;function Oi(){this.head=null,this.tail=null,this.length=0}Oi.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},Oi.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},Oi.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},Oi.prototype.clear=function(){this.head=this.tail=null,this.length=0},Oi.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},Oi.prototype.concat=function(t){if(0===this.length)return ct.alloc(0);if(1===this.length)return this.head.data;for(var e=ct.allocUnsafe(t>>>0),r=this.head,n=0;r;)r.data.copy(e,n),n+=r.data.length,r=r.next;return e};var Ai=ct.isEncoding||function(t){switch(t&&t.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 Li(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!Ai(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Mi;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Pi;break;default:return void(this.write=Ci)}this.charBuffer=new ct(6),this.charReceived=0,this.charLength=0}function Ci(t){return t.toString(this.encoding)}function Mi(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function Pi(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}Li.prototype.write=function(t){for(var e="";this.charLength;){var r=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(t=t.slice(r,t.length),!((i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var n=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,n),n-=this.charReceived);var i;n=(e+=t.toString(this.encoding,0,n)).length-1;if((i=e.charCodeAt(n))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,n)}return e},Li.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&r>>5==6){this.charLength=2;break}if(e<=2&&r>>4==14){this.charLength=3;break}if(e<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=e},Li.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e},Ui.ReadableState=Ni;var Bi=ue("stream");function Ni(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof co&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new Oi,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.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new Li(t.encoding),this.encoding=t.encoding)}function Ui(t){if(!(this instanceof Ui))return new Ui(t);this._readableState=new Ni(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),D.call(this)}function Di(t,e,r,n,i){var o=function(t,e){var r=null;ct.isBuffer(e)||"string"==typeof e||null==e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(e,r);if(o)t.emit("error",o);else if(null===r)e.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,qi(t)}(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!i){var a=new Error("stream.push() after EOF");t.emit("error",a)}else if(e.endEmitted&&i){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var u;!e.decoder||i||n||(r=e.decoder.write(r),u=!e.objectMode&&0===r.length),i||(e.reading=!1),u||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&qi(t))),function(t,e){e.readingMore||(e.readingMore=!0,m(zi,t,e))}(t,e)}else i||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}re(Ui,D),Ui.prototype.push=function(t,e){var r=this._readableState;return r.objectMode||"string"!=typeof t||(e=e||r.defaultEncoding)!==r.encoding&&(t=ct.from(t,e),e=""),Di(this,r,t,e,!1)},Ui.prototype.unshift=function(t){return Di(this,this._readableState,t,"",!0)},Ui.prototype.isPaused=function(){return!1===this._readableState.flowing},Ui.prototype.setEncoding=function(t){return this._readableState.decoder=new Li(t),this._readableState.encoding=t,this};var Ii=8388608;function Fi(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=Ii?t=Ii:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function qi(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(Bi("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?m(Wi,t):Wi(t))}function Wi(t){Bi("emit readable"),t.emit("readable"),Gi(t)}function zi(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(Bi("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function Yi(t){Bi("readable nexttick read 0"),t.read(0)}function $i(t,e){e.reading||(Bi("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Gi(t),e.flowing&&!e.reading&&t.read(0)}function Gi(t){var e=t._readableState;for(Bi("flow",e.flowing);e.flowing&&null!==t.read(););}function Hi(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=ct.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function Ji(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,m(Vi,e,t))}function Vi(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Ki(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Zi(){}function Xi(t,e,r){this.chunk=t,this.encoding=e,this.callback=r,this.next=null}function Qi(t,e){Object.defineProperty(this,"buffer",{get:oe((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof co&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===t.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?m(i,n):i(n);t._writableState.errorEmitted=!0,t.emit("error",n)}(t,r,n,e,i);else{var o=io(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||no(t,r),n?m(ro,t,r,o,i):ro(t,r,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new so(this)}function to(t){if(!(this instanceof to||this instanceof co))return new to(t);this._writableState=new Qi(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),D.call(this)}function eo(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function ro(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),ao(t,e)}function no(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var a=0;r;)i[a]=r,r=r.next,a+=1;eo(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new so(e)}else{for(;r;){var s=r.chunk,u=r.encoding,f=r.callback;if(eo(t,e,!1,e.objectMode?1:s.length,s,u,f),r=r.next,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=r,e.bufferProcessing=!1}function io(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function oo(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function ao(t,e){var r=io(e);return r&&(0===e.pendingcb?(oo(t,e),e.finished=!0,t.emit("finish")):oo(t,e)),r}function so(t){var e=this;this.next=null,this.entry=null,this.finish=function(r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}Ui.prototype.read=function(t){Bi("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return Bi("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Ji(this):qi(this),null;if(0===(t=Fi(t,e))&&e.ended)return 0===e.length&&Ji(this),null;var n,i=e.needReadable;return Bi("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&Bi("length less than watermark",i=!0),e.ended||e.reading?Bi("reading or ended",i=!1):i&&(Bi("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Fi(r,e))),null===(n=t>0?Hi(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&Ji(this)),null!==n&&this.emit("data",n),n},Ui.prototype._read=function(t){this.emit("error",new Error("not implemented"))},Ui.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,Bi("pipe count=%d opts=%j",n.pipesCount,e);var i=!e||!1!==e.end?a:f;function o(t){Bi("onunpipe"),t===r&&f()}function a(){Bi("onend"),t.end()}n.endEmitted?m(i):r.once("end",i),t.on("unpipe",o);var s=function(t){return function(){var e=t._readableState;Bi("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,Gi(t))}}(r);t.on("drain",s);var u=!1;function f(){Bi("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",s),t.removeListener("error",l),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",f),r.removeListener("data",c),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}var h=!1;function c(e){Bi("ondata"),h=!1,!1!==t.write(e)||h||((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==Ki(n.pipes,t))&&!u&&(Bi("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function l(e){var r;Bi("onerror",e),g(),t.removeListener("error",l),0===(r="error",t.listeners(r).length)&&t.emit("error",e)}function d(){t.removeListener("finish",p),g()}function p(){Bi("onfinish"),t.removeListener("close",d),g()}function g(){Bi("unpipe"),r.unpipe(t)}return r.on("data",c),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",l),t.once("close",d),t.once("finish",p),t.emit("pipe",r),n.flowing||(Bi("pipe resume"),r.resume()),t},Ui.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}var o=Ki(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},Ui.prototype.on=function(t,e){var r=D.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&qi(this):m(Yi,this))}return r},Ui.prototype.addListener=Ui.prototype.on,Ui.prototype.resume=function(){var t=this._readableState;return t.flowing||(Bi("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,m($i,t,e))}(this,t)),this},Ui.prototype.pause=function(){return Bi("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Bi("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Ui.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;for(var i in t.on("end",(function(){if(Bi("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)})),t.on("data",(function(i){(Bi("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&null==i)||(e.objectMode||i&&i.length)&&(n.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));return function(t,e){for(var r=0,n=t.length;r<n;r++)e(t[r],r)}(["error","close","destroy","pause","resume"],(function(e){t.on(e,n.emit.bind(n,e))})),n._read=function(e){Bi("wrapped _read",e),r&&(r=!1,t.resume())},n},Ui._fromList=Hi,to.WritableState=Qi,re(to,D),Qi.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},to.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},to.prototype.write=function(t,e,r){var n=this._writableState,i=!1;return"function"==typeof e&&(r=e,e=null),ct.isBuffer(t)?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=Zi),n.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),m(e,r)}(this,r):function(t,e,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):ct.isBuffer(r)||"string"==typeof r||void 0===r||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),m(n,o),i=!1),i}(this,n,t,r)&&(n.pendingcb++,i=function(t,e,r,n,i){r=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=ct.from(e,r));return e}(e,r,n),ct.isBuffer(r)&&(n="buffer");var o=e.objectMode?1:r.length;e.length+=o;var a=e.length<e.highWaterMark;a||(e.needDrain=!0);if(e.writing||e.corked){var s=e.lastBufferedRequest;e.lastBufferedRequest=new Xi(r,n,i),s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else eo(t,e,!1,o,r,n,i);return a}(this,n,t,e,r)),i},to.prototype.cork=function(){this._writableState.corked++},to.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||no(this,t))},to.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},to.prototype._write=function(t,e,r){r(new Error("not implemented"))},to.prototype._writev=null,to.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,ao(t,e),r&&(e.finished?m(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},re(co,Ui);for(var uo=Object.keys(to.prototype),fo=0;fo<uo.length;fo++){var ho=uo[fo];co.prototype[ho]||(co.prototype[ho]=to.prototype[ho])}function co(t){if(!(this instanceof co))return new co(t);Ui.call(this,t),to.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",lo)}function lo(){this.allowHalfOpen||this._writableState.ended||m(po,this)}function po(t){t.end()}function go(t){this.afterTransform=function(e,r){return function(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&t.push(r);i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function yo(t){if(!(this instanceof yo))return new yo(t);co.call(this,t),this._transformState=new go(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t){vo(e,t)})):vo(e)}))}function vo(t,e){if(e)return t.emit("error",e);var r=t._writableState,n=t._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(n.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}function bo(t){if(!(this instanceof bo))return new bo(t);yo.call(this,t)}function wo(){D.call(this)}function mo(t,e,r){t=t||function(t){this.queue(t)},e=e||function(){this.queue(null)};var n=!1,i=!1,o=[],a=!1,s=new wo;function u(){for(;o.length&&!s.paused;){var t=o.shift();if(null===t)return s.emit("end");s.emit("data",t)}}function f(){s.writable=!1,e.call(s),!s.readable&&s.autoDestroy&&s.destroy()}return s.readable=s.writable=!0,s.paused=!1,s.autoDestroy=!(r&&!1===r.autoDestroy),s.write=function(e){return t.call(this,e),!s.paused},s.queue=s.push=function(t){return a||(null===t&&(a=!0),o.push(t),u()),s},s.on("end",(function(){s.readable=!1,!s.writable&&s.autoDestroy&&M.nextTick((function(){s.destroy()}))})),s.end=function(t){if(!n)return n=!0,arguments.length&&s.write(t),f(),s},s.destroy=function(){if(!i)return i=!0,n=!0,o.length=0,s.writable=s.readable=!1,s.emit("close"),s},s.pause=function(){if(!s.paused)return s.paused=!0,s},s.resume=function(){return s.paused&&(s.paused=!1,s.emit("resume")),u(),s.paused||s.emit("drain"),s},s}re(yo,co),yo.prototype.push=function(t,e){return this._transformState.needTransform=!1,co.prototype.push.call(this,t,e)},yo.prototype._transform=function(t,e,r){throw new Error("Not implemented")},yo.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},yo.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},re(bo,yo),bo.prototype._transform=function(t,e,r){r(null,t)},re(wo,D),wo.Readable=Ui,wo.Writable=to,wo.Duplex=co,wo.Transform=yo,wo.PassThrough=bo,wo.Stream=wo,wo.prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",a),r.on("close",s));var o=!1;function a(){o||(o=!0,t.end())}function s(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(f(),0===D.listenerCount(this,"error"))throw t}function f(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",s),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),t.removeListener("close",f)}return r.on("error",u),t.on("error",u),r.on("end",f),r.on("close",f),t.on("close",f),t.emit("pipe",r),t},mo.through=mo;var _o={parse:function(t,e){var n,i;function o(t,e){return"string"==typeof t?e===t:t&&"function"==typeof t.exec?t.exec(e):"boolean"==typeof t||"object"===r(t)?t:"function"==typeof t&&t(e)}var a=new Ti,s=mo((function(t){"string"==typeof t&&(t=ct.from(t)),a.write(t)}),(function(t){t&&s.write(t),n&&s.emit("header",n),i&&s.emit("footer",i),s.queue(null)}));function u(t,e){!1!==n&&((n=n||{})[t]=e),!1!==i&&!1===n&&((i=i||{})[t]=e)}return"string"==typeof t&&(t=t.split(".").map((function(t){return"$*"===t?{emitKey:!0}:"*"===t||(""===t?{recurse:!0}:t)}))),t&&t.length||(t=null),a.onValue=function(r){if(this.root||(s.root=r),t){for(var i=0,a=0,f=!1,h=!1;i<t.length;){var c=t[i],l=void 0;if(a++,c&&!c.recurse){if(!(l=a===this.stack.length?this:this.stack[a]))return;if(!o(c,l.key))return void u(l.key,r);f=!!c.emitKey,h=!!c.emitPath,i++}else{i++;var d=t[i];if(!d)return;for(;;){if(!(l=a===this.stack.length?this:this.stack[a]))return;if(o(d,l.key)){i++,Object.isFrozen(this.stack[a])||(this.stack[a].value=null);break}u(l.key,r),a++}}}if(n&&(s.emit("header",n),n=!1),a===this.stack.length){var p=this.stack.slice(1).map((function(t){return t.key})).concat([this.key]),g=r;for(var y in null!=g&&null!=(g=e?e(g,p):g)&&((f||h)&&(g={value:g},f&&(g.key=this.key),h&&(g.path=p)),s.queue(g)),this.value&&delete this.value[this.key],this.stack)Object.isFrozen(this.stack[y])||(this.stack[y].value=null)}}},a._onToken=a.onToken,a.onToken=function(e,r){a._onToken(e,r),0===this.stack.length&&s.root&&(t||s.queue(s.root),s.root=null)},a.onError=function(t){t.message.indexOf("at position")>-1&&(t.message="Invalid JSON ("+t.message+")"),s.emit("error",t)},s}},So=function(t,e){return So=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},So(t,e)};var Eo,ko=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Ro={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function jo(t){return t?"function"==typeof t.then?Eo.Promise:function(t){return"function"==typeof t.read&&"function"==typeof t.pause&&"function"==typeof t.resume&&"function"==typeof t.pipe&&"function"==typeof t.once&&"function"==typeof t.removeListener}(t)?t._readableState.objectMode?Eo.ReadableObject:Eo.ReadableString:Array.isArray(t)?Eo.Array:"object"===r(t)||t instanceof Object?Eo.Object:Eo.Primitive:Eo.Primitive}!function(t){t[t.Array=0]="Array",t[t.Object=1]="Object",t[t.ReadableString=2]="ReadableString",t[t.ReadableObject=3]="ReadableObject",t[t.Primitive=4]="Primitive",t[t.Promise=5]="Promise"}(Eo||(Eo={}));var xo=[];xo[Eo.Array]="[",xo[Eo.Object]="{",xo[Eo.ReadableString]='"',xo[Eo.ReadableObject]="[";var To=[];To[Eo.Array]="]",To[Eo.Object]="}",To[Eo.ReadableString]='"',To[Eo.ReadableObject]="]";for(var Oo=[],Ao=0,Lo=Object.entries(Eo);Ao<Lo.length;Ao++){var Co=Lo[Ao],Mo=Co[0],Po=Co[1];"number"==typeof Po&&(Oo[Po]="process"+Mo)}function Bo(t){return t.replace(ko,(function(t){var e=Ro[t];return"string"==typeof e?e:"\\u"+t.charCodeAt(0).toString(16).padStart(4,"0")}))}function No(t){return'"'+Bo(t)+'"'}function Uo(t,e){var r=t.read(e);return null===r?new Promise((function(e,r){var n=function(){return e(null)};t.once("end",n),t.once("error",r),t.once("readable",(function(){t.removeListener("end",n),t.removeListener("error",r),e(t.read())}))})):Promise.resolve(r)}function Do(t){return t.then((function(t){return jo(t)===Eo.Promise?Do(t):t}))}var Io=function(t){function e(e,n,i,o){void 0===o&&(o=!1);var a=t.call(this)||this;a.cycle=o,a.stack=[],a.depth=0,a.pushCalled=!1,a.end=!1,a.isReading=!1,a.readMore=!1;var s=r(i);return"string"!==s&&"number"!==s||(a.gap=Number.isFinite(i)?" ".repeat(i):i),Object.assign(a,{visited:o?new WeakMap:new WeakSet,replacerFunction:n instanceof Function&&n,replacerArray:Array.isArray(n)&&n}),n instanceof Function&&(a.replacerFunction=n),Array.isArray(n)&&(a.replacerArray=n),a.addToStack(e),a}return function(t,e){function r(){this.constructor=t}So(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.cycler=function(t,e){var r=this.visited.get(e);if(r)return{$ref:r};var n=this.path();return void 0!==t&&n.push(t),n=n.map((function(t){return"["+(Number.isInteger(t)?t:No(t))+"]"})),this.visited.set(e,n.length?"$"+n.join(""):"$"),e},e.prototype.addToStack=function(t,e,n,i){var o,a,s=this,u=t;this.replacerFunction&&(u=this.replacerFunction(e||n,u,this)),u&&u.toJSON instanceof Function&&(u=u.toJSON()),(u instanceof Function||"symbol"===r(t))&&(u=void 0),void 0!==e&&this.replacerArray&&(this.replacerArray.includes(e)||(u=void 0));var f=jo(u);if((i&&i.type===Eo.Array||void 0!==u)&&f!==Eo.Promise&&(i&&!i.first&&this._push(","),i&&(i.first=!1)),void 0!==u&&f!==Eo.Promise&&e&&(this.gap?this._push("\n"+this.gap.repeat(this.depth)+'"'+Bo(e)+'": '):this._push('"'+Bo(e)+'":')),f!==Eo.Primitive)if(this.cycle)f=jo(u=this.cycler(e||n,u));else{if(this.visited.has(u))throw Object.assign(new Error("Converting circular structure to JSON"),{realValue:u,key:e||n});this.visited.add(u)}!e&&n>-1&&this.depth&&this.gap&&this._push("\n"+this.gap.repeat(this.depth));var h=xo[f];h&&this._push(h);var c={key:e,index:n,type:f,parent:i,value:u,first:!0};return f===Eo.Object?(this.depth+=1,c.unread=Object.keys(u),c.isEmpty=!c.unread.length):f===Eo.Array?(this.depth+=1,c.unread=u.length,c.arrayLength=c.unread,c.isEmpty=!c.unread):f!==Eo.ReadableString&&f!==Eo.ReadableObject||(this.depth+=1,u.readableEnded||(null===(o=u._readableState)||void 0===o?void 0:o.endEmitted)?this.emit("error",new Error("Readable Stream has ended before it was serialized. All stream data have been lost"),u,e||n):(u.readableFlowing||(null===(a=u._readableState)||void 0===a?void 0:a.flowing))&&(u.pause(),this.emit("error",new Error("Readable Stream is in flowing mode, data may have been lost. Trying to pause stream."),u,e||n)),c.readCount=0,u.once("end",(function(){c.end=!0,s.__read()})),u.once("error",(function(t){s.error=!0,s.emit("error",t)}))),this.stack.unshift(c),c},e.prototype.removeFromStack=function(t){var e=t.type,r=e===Eo.Object||e===Eo.Array||e===Eo.ReadableString||e===Eo.ReadableObject;e!==Eo.Primitive&&(this.cycle||this.visited.delete(t.value),r&&(this.depth-=1));var n=To[e];r&&!t.isEmpty&&this.gap&&this._push("\n"+this.gap.repeat(this.depth)),n&&this._push(n);var i=this.stack.indexOf(t);this.stack.splice(i,1)},e.prototype._push=function(t){this.pushCalled=!0,this.push(t)},e.prototype.processReadableObject=function(t,e){var r=this;if(!t.end)return Uo(t.value,e).then((function(e){null!==e&&(t.first||r._push(","),t.first=!1,r.addToStack(e,void 0,t.readCount),t.readCount+=1)}));this.removeFromStack(t)},e.prototype.processObject=function(t){if(t.unread.length){var e=t.unread.shift(),r=t.value[e];this.addToStack(r,e,void 0,t)}else this.removeFromStack(t)},e.prototype.processArray=function(t){var e=t.unread;if(e){var r=t.arrayLength-e,n=t.value[r];t.unread-=1,this.addToStack(n,void 0,r,t)}else this.removeFromStack(t)},e.prototype.processPrimitive=function(t){if(void 0!==t.value){var e,n=r(t.value);switch(n){case"string":e=No(t.value);break;case"number":e=Number.isFinite(t.value)?String(t.value):"null";break;case"boolean":e=String(t.value);break;case"object":t.value||(e="null");break;default:throw Object.assign(new Error('Unknown type "'+n+'". Please file an issue!'),{value:t.value})}this._push(e)}else!this.stack[1]||this.stack[1].type!==Eo.Array&&this.stack[1].type!==Eo.ReadableObject?t.addSeparatorAfterEnd=!1:this._push("null");this.removeFromStack(t)},e.prototype.processReadableString=function(t,e){var r=this;if(!t.end)return Uo(t.value,e).then((function(t){t&&r._push(Bo(t.toString()))}));this.removeFromStack(t)},e.prototype.processPromise=function(t){var e=this;return Do(t.value).then((function(r){e.removeFromStack(t),e.addToStack(r,t.key,t.index,t.parent)}))},e.prototype.processStackTopItem=function(t){var e,r=this,n=this.stack[0];if(!n||this.error)return Promise.resolve();try{e=this[Oo[n.type]](n,t)}catch(t){return Promise.reject(t)}return Promise.resolve(e).then((function(){0===r.stack.length&&(r.end=!0,r._push(null))}))},e.prototype.__read=function(t){var e=this;if(!this.isReading&&!this.error)return this.isReading=!0,this.readMore=!1,this.processStackTopItem(t).then((function(){!e.end&&!e.error&&(e.readMore||!e.pushCalled)?xn((function(){e.isReading=!1,e.__read()})):e.isReading=!1})).catch((function(t){e.error=!0,e.emit("error",t)}));this.readMore=!0},e.prototype._read=function(t){this.pushCalled=!1,this.__read(t)},e.prototype.path=function(){return this.stack.map((function(t){var e=t.key,r=t.index;return e||r})).filter((function(t){return t||t>-1})).reverse()},e}(Ui),Fo=Array.isArray,qo="object"==r(n)&&n&&n.Object===Object&&n,Wo="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,zo=qo||Wo||Function("return this")(),Yo=zo.Symbol,$o=Object.prototype,Go=$o.hasOwnProperty,Ho=$o.toString,Jo=Yo?Yo.toStringTag:void 0;var Vo=function(t){var e=Go.call(t,Jo),r=t[Jo];try{t[Jo]=void 0;var n=!0}catch(t){}var i=Ho.call(t);return n&&(e?t[Jo]=r:delete t[Jo]),i},Ko=Object.prototype.toString;var Zo=function(t){return Ko.call(t)},Xo=Yo?Yo.toStringTag:void 0;var Qo=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Xo&&Xo in Object(t)?Vo(t):Zo(t)};var ta=function(t){return null!=t&&"object"==r(t)};var ea=function(t){return"symbol"==r(t)||ta(t)&&"[object Symbol]"==Qo(t)},ra=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,na=/^\w*$/;var ia=function(t,e){if(Fo(t))return!1;var n=r(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ea(t))||(na.test(t)||!ra.test(t)||null!=e&&t in Object(e))};var oa=function(t){var e=r(t);return null!=t&&("object"==e||"function"==e)};var aa,sa=function(t){if(!oa(t))return!1;var e=Qo(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},ua=zo["__core-js_shared__"],fa=(aa=/[^.]+$/.exec(ua&&ua.keys&&ua.keys.IE_PROTO||""))?"Symbol(src)_1."+aa:"";var ha=function(t){return!!fa&&fa in t},ca=Function.prototype.toString;var la=function(t){if(null!=t){try{return ca.call(t)}catch(t){}try{return t+""}catch(t){}}return""},da=/^\[object .+?Constructor\]$/,pa=Function.prototype,ga=Object.prototype,ya=pa.toString,va=ga.hasOwnProperty,ba=RegExp("^"+ya.call(va).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var wa=function(t){return!(!oa(t)||ha(t))&&(sa(t)?ba:da).test(la(t))};var ma=function(t,e){return null==t?void 0:t[e]};var _a=function(t,e){var r=ma(t,e);return wa(r)?r:void 0},Sa=_a(Object,"create");var Ea=function(){this.__data__=Sa?Sa(null):{},this.size=0};var ka=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ra=Object.prototype.hasOwnProperty;var ja=function(t){var e=this.__data__;if(Sa){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Ra.call(e,t)?e[t]:void 0},xa=Object.prototype.hasOwnProperty;var Ta=function(t){var e=this.__data__;return Sa?void 0!==e[t]:xa.call(e,t)};var Oa=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Sa&&void 0===e?"__lodash_hash_undefined__":e,this};function Aa(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Aa.prototype.clear=Ea,Aa.prototype.delete=ka,Aa.prototype.get=ja,Aa.prototype.has=Ta,Aa.prototype.set=Oa;var La=Aa;var Ca=function(){this.__data__=[],this.size=0};var Ma=function(t,e){return t===e||t!=t&&e!=e};var Pa=function(t,e){for(var r=t.length;r--;)if(Ma(t[r][0],e))return r;return-1},Ba=Array.prototype.splice;var Na=function(t){var e=this.__data__,r=Pa(e,t);return!(r<0)&&(r==e.length-1?e.pop():Ba.call(e,r,1),--this.size,!0)};var Ua=function(t){var e=this.__data__,r=Pa(e,t);return r<0?void 0:e[r][1]};var Da=function(t){return Pa(this.__data__,t)>-1};var Ia=function(t,e){var r=this.__data__,n=Pa(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Fa(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Fa.prototype.clear=Ca,Fa.prototype.delete=Na,Fa.prototype.get=Ua,Fa.prototype.has=Da,Fa.prototype.set=Ia;var qa=Fa,Wa=_a(zo,"Map");var za=function(){this.size=0,this.__data__={hash:new La,map:new(Wa||qa),string:new La}};var Ya=function(t){var e=r(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var $a=function(t,e){var r=t.__data__;return Ya(e)?r["string"==typeof e?"string":"hash"]:r.map};var Ga=function(t){var e=$a(this,t).delete(t);return this.size-=e?1:0,e};var Ha=function(t){return $a(this,t).get(t)};var Ja=function(t){return $a(this,t).has(t)};var Va=function(t,e){var r=$a(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function Ka(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ka.prototype.clear=za,Ka.prototype.delete=Ga,Ka.prototype.get=Ha,Ka.prototype.has=Ja,Ka.prototype.set=Va;var Za=Ka;function Xa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function r(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Xa.Cache||Za),r}Xa.Cache=Za;var Qa=Xa;var ts=function(t){var e=Qa(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e},es=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rs=/\\(\\)?/g,ns=ts((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(es,(function(t,r,n,i){e.push(n?i.replace(rs,"$1"):r||t)})),e}));var is=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i},os=Yo?Yo.prototype:void 0,as=os?os.toString:void 0;var ss=function t(e){if("string"==typeof e)return e;if(Fo(e))return is(e,t)+"";if(ea(e))return as?as.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var us=function(t){return null==t?"":ss(t)};var fs=function(t,e){return Fo(t)?t:ia(t,e)?[t]:ns(us(t))};var hs=function(t){if("string"==typeof t||ea(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var cs=function(t,e){for(var r=0,n=(e=fs(e,t)).length;null!=t&&r<n;)t=t[hs(e[r++])];return r&&r==n?t:void 0};var ls=function(t,e,r){var n=null==t?void 0:cs(t,e);return void 0===n?r:n};var ds=function(t){return"number"==typeof t||ta(t)&&"[object Number]"==Qo(t)};function ps(t){return"[object String]"===Object.prototype.toString.call(t)}function gs(t){return!(!ps(t)||""===t)}function ys(t){return"[object Array]"===Object.prototype.toString.call(t)}function vs(t){return"[object Undefined]"===Object.prototype.toString.call(t)}function bs(t){return"[object Object]"===Object.prototype.toString.call(t)}function ws(t){return!(!ps(t)||""!==t)}function ms(t){return!!vs(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!function(t){if(bs(t)){for(var e in t)return!1;return!0}return!1}(t)||(!!ws(t)||!!function(t){return!!ys(t)&&0===t.length}(t))))}function _s(){var t,e,r=new Promise((function(){t=arguments[0],e=arguments[1]}));return r.resolve=t,r.reject=e,r}function Ss(){return(Ss=e(s.mark((function t(e){var r;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(gs(e)){t.next=2;break}return t.abrupt("return",{});case 2:r={};try{r=JSON.parse(e)}catch(t){r={}}return t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Es(){return(Es=e(s.mark((function t(e){var r;return s.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!vs(e)){t.next=2;break}return t.abrupt("return","");case 2:r="";try{r=JSON.stringify(e)}catch(t){r=""}return t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var ks={parse:function(t){return Ss.apply(this,arguments)},parseByStream:function(t){var e={};if("null"===t)return null;if(""===t)return{};var r="__system__",n='{"'.concat(r,'":').concat(t,"}"),i=_s(),o=Bn(n),a=_o.parse("$*");return a.on("data",(function(t){e[t.key]=t.value})),a.on("end",(function(){var t=ls(e,r);i.resolve(t)})),a.on("error",(function(t){i.reject(t)})),o.pipe(a),i},createParseStream:function(t){return gs(t)||function(t){return!(!ys(t)||0===t.length||1===t.length&&ms(t[0]))}(t)||(t="$*"),_o.parse(t)},stringify:function(t){return Es.apply(this,arguments)},stringifyByStream:function(t){var e="";if(vs(t))return"";if(null===t)return"null";if(ws(t))return'""';if(ds(t))return"".concat(t);if(ps(t))return'"'.concat(t,'"');var r=_s(),n=new Io(t,null,null,!1);return n.on("data",(function(t){e+=t})),n.on("end",(function(){r.resolve(e)})),n.on("error",(function(t){r.reject(t)})),r},createStringifyStream:function(t){if(!bs(t)&&!ys(t))throw new Error("data is not object or array");return new Io(t,null,null,!1)}};return ks}));
|
|
7
7
|
//# sourceMappingURL=w-json-stream.umd.js.map
|