PageSourceSearch

https://dekko.io/assets/json2csv.min-a8c77713dce47adb5c143c94d8875fb0.js

js dekko.io collected 2026-10-04 23:02:03 UTC 78,628 bytes, 612 lines download raw bytes

1!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).json2csv={})}(this,(function(t){"use strict"
2function e(){}function r(){r.init.call(this)}function n(t){return void 0===t._maxListeners?r.defaultMaxListeners:t._maxListeners}function i(t,r,i,o){var s,a,u,h
3if("function"!=typeof i)throw new TypeError('"listener" argument must be a function')
4if((a=t._events)?(a.newListener&&(t.emit("newListener",r,i.listener?i.listener:i),a=t._events),u=a[r]):(a=t._events=new e,t._eventsCount=0),u){if("function"==typeof u?u=a[r]=o?[i,u]:[u,i]:o?u.unshift(i):u.push(i),!u.warned&&(s=n(t))&&s>0&&u.length>s){u.warned=!0
5var f=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+r+" listeners added. Use emitter.setMaxListeners() to increase limit")
6f.name="MaxListenersExceededWarning",f.emitter=t,f.type=r,f.count=u.length,h=f,"function"==typeof console.warn?console.warn(h):console.log(h)}}else u=a[r]=i,++t._eventsCount
7return t}function o(t,e,r){var n=!1
8function i(){t.removeListener(e,i),n||(n=!0,r.apply(t,arguments))}return i.listener=r,i}function s(t){var e=this._events
9if(e){var r=e[t]
10if("function"==typeof r)return 1
11if(r)return r.length}return 0}function a(t,e){for(var r=new Array(e);e--;)r[e]=t[e]
12return r}e.prototype=Object.create(null),r.EventEmitter=r,r.usingDomains=!1,r.prototype.domain=void 0,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.init=function(){this.domain=null,r.usingDomains&&(void 0).active&&(void 0).Domain,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new e,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},r.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number')
13return this._maxListeners=t,this},r.prototype.getMaxListeners=function(){return n(this)},r.prototype.emit=function(t){var e,r,n,i,o,s,u,h="error"===t
14if(s=this._events)h=h&&null==s.error
15else if(!h)return!1
16if(u=this.domain,h){if(e=arguments[1],!u){if(e instanceof Error)throw e
17var f=new Error('Uncaught, unspecified "error" event. ('+e+")")
18throw f.context=e,f}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=u,e.domainThrown=!1,u.emit("error",e),!1}if(!(r=s[t]))return!1
19var c="function"==typeof r
20switch(n=arguments.length){case 1:!function(t,e,r){if(e)t.call(r)
21else for(var n=t.length,i=a(t,n),o=0;o<n;++o)i[o].call(r)}(r,c,this)
22break
23case 2:!function(t,e,r,n){if(e)t.call(r,n)
24else for(var i=t.length,o=a(t,i),s=0;s<i;++s)o[s].call(r,n)}(r,c,this,arguments[1])
25break
26case 3:!function(t,e,r,n,i){if(e)t.call(r,n,i)
27else for(var o=t.length,s=a(t,o),u=0;u<o;++u)s[u].call(r,n,i)}(r,c,this,arguments[1],arguments[2])
28break
29case 4:!function(t,e,r,n,i,o){if(e)t.call(r,n,i,o)
30else for(var s=t.length,u=a(t,s),h=0;h<s;++h)u[h].call(r,n,i,o)}(r,c,this,arguments[1],arguments[2],arguments[3])
31break
32default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o]
33!function(t,e,r,n){if(e)t.apply(r,n)
34else for(var i=t.length,o=a(t,i),s=0;s<i;++s)o[s].apply(r,n)}(r,c,this,i)}return!0},r.prototype.addListener=function(t,e){return i(this,t,e,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(t,e){return i(this,t,e,!0)},r.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function')
35return this.on(t,o(this,t,e)),this},r.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function')
36return this.prependListener(t,o(this,t,e)),this},r.prototype.removeListener=function(t,r){var n,i,o,s,a
37if("function"!=typeof r)throw new TypeError('"listener" argument must be a function')
38if(!(i=this._events))return this
39if(!(n=i[t]))return this
40if(n===r||n.listener&&n.listener===r)0==--this._eventsCount?this._events=new e:(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r))
41else if("function"!=typeof n){for(o=-1,s=n.length;s-- >0;)if(n[s]===r||n[s].listener&&n[s].listener===r){a=n[s].listener,o=s
42break}if(o<0)return this
43if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new e,this
44delete i[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]
45t.pop()}(n,o)
46i.removeListener&&this.emit("removeListener",t,a||r)}return this},r.prototype.removeAllListeners=function(t){var r,n
47if(!(n=this._events))return this
48if(!n.removeListener)return 0===arguments.length?(this._events=new e,this._eventsCount=0):n[t]&&(0==--this._eventsCount?this._events=new e:delete n[t]),this
49if(0===arguments.length){for(var i,o=Object.keys(n),s=0;s<o.length;++s)"removeListener"!==(i=o[s])&&this.removeAllListeners(i)
50return this.removeAllListeners("removeListener"),this._events=new e,this._eventsCount=0,this}if("function"==typeof(r=n[t]))this.removeListener(t,r)
51else if(r)do{this.removeListener(t,r[r.length-1])}while(r[0])
52return this},r.prototype.listeners=function(t){var e,r=this._events
53return 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]
54return e}(e):[]},r.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):s.call(t,e)},r.prototype.listenerCount=s,r.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}
55var u="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},h=[],f=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,l=!1
56function p(){l=!0
57for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)h[e]=t[e],f[t.charCodeAt(e)]=e
58f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63}function d(t,e,r){for(var n,i,o=[],s=e;s<r;s+=3)n=(t[s]<<16)+(t[s+1]<<8)+t[s+2],o.push(h[(i=n)>>18&63]+h[i>>12&63]+h[i>>6&63]+h[63&i])
59return o.join("")}function g(t){var e
60l||p()
61for(var r=t.length,n=r%3,i="",o=[],s=0,a=r-n;s<a;s+=16383)o.push(d(t,s,s+16383>a?a:s+16383))
62return 1===n?(e=t[r-1],i+=h[e>>2],i+=h[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=h[e>>10],i+=h[e>>4&63],i+=h[e<<2&63],i+="="),o.push(i),o.join("")}function y(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,h=u>>1,f=-7,c=r?i-1:0,l=r?-1:1,p=t[e+c]
63for(c+=l,o=p&(1<<-f)-1,p>>=-f,f+=a;f>0;o=256*o+t[e+c],c+=l,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=256*s+t[e+c],c+=l,f-=8);if(0===o)o=1-h
64else{if(o===u)return s?NaN:1/0*(p?-1:1)
65s+=Math.pow(2,n),o-=h}return(p?-1:1)*s*Math.pow(2,o-n)}function v(t,e,r,n,i,o){var s,a,u,h=8*o-i-1,f=(1<<h)-1,c=f>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0
66for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+c>=1?l/u:l*Math.pow(2,1-c))*u>=2&&(s++,u/=2),s+c>=f?(a=0,s=f):s+c>=1?(a=(e*u-1)*Math.pow(2,i),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,h+=i;h>0;t[r+p]=255&s,p+=d,s/=256,h-=8);t[r+p-d]|=128*g}var w={}.toString,b=Array.isArray||function(t){return"[object Array]"==w.call(t)}
67function m(){return S.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function _(t,e){if(m()<e)throw new RangeError("Invalid typed array length")
68return S.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=S.prototype:(null===t&&(t=new S(e)),t.length=e),t}function S(t,e,r){if(!(S.TYPED_ARRAY_SUPPORT||this instanceof S))return new S(t,e,r)
69if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string")
70return k(this,t)}return E(this,t,e,r)}function E(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number')
71return"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")
72if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds")
73return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),S.TYPED_ARRAY_SUPPORT?(t=e).__proto__=S.prototype:t=A(t,e),t}(t,e,r,n):"string"==typeof e?function(t,e,r){if("string"==typeof r&&""!==r||(r="utf8"),!S.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding')
74var n=0|L(e,r),i=(t=_(t,n)).write(e,r)
75return i!==n&&(t=t.slice(0,i)),t}(t,e,r):function(t,e){if(O(e)){var r=0|T(e.length)
76return 0===(t=_(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||(n=e.length)!=n?_(t,0):A(t,e)
77if("Buffer"===e.type&&b(e.data))return A(t,e.data)}var n
78throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function R(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number')
79if(t<0)throw new RangeError('"size" argument must not be negative')}function k(t,e){if(R(e),t=_(t,e<0?0:0|T(e)),!S.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0
80return t}function A(t,e){var r=e.length<0?0:0|T(e.length)
81t=_(t,r)
82for(var n=0;n<r;n+=1)t[n]=255&e[n]
83return t}function T(t){if(t>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes")
84return 0|t}function O(t){return!(null==t||!t._isBuffer)}function L(t,e){if(O(t))return t.length
85if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
85(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength
86"string"!=typeof t&&(t=""+t)
87var r=t.length
88if(0===r)return 0
89for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r
90case"utf8":case"utf-8":case void 0:return et(t).length
91case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r
92case"hex":return r>>>1
93case"base64":return rt(t).length
94default:if(n)return et(t).length
95e=(""+e).toLowerCase(),n=!0}}function C(t,e,r){var n=t[e]
96t[e]=t[r],t[r]=n}function P(t,e,r,n,i){if(0===t.length)return-1
97if("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
98r=t.length-1}else if(r<0){if(!i)return-1
99r=0}if("string"==typeof e&&(e=S.from(e,n)),O(e))return 0===e.length?-1:j(t,e,r,n,i)
100if("number"==typeof e)return e&=255,S.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):j(t,[e],r,n,i)
101throw new TypeError("val must be string, number or Buffer")}function j(t,e,r,n,i){var o,s=1,a=t.length,u=e.length
102if(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
103s=2,a/=2,u/=2,r/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var f=-1
104for(o=r;o<a;o++)if(h(t,o)===h(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*s}else-1!==f&&(o-=o-f),f=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var c=!0,l=0;l<u;l++)if(h(t,o+l)!==h(e,l)){c=!1
105break}if(c)return o}return-1}function B(t,e,r,n){r=Number(r)||0
106var i=t.length-r
107n?(n=Number(n))>i&&(n=i):n=i
108var o=e.length
109if(o%2!=0)throw new TypeError("Invalid hex string")
110n>o/2&&(n=o/2)
111for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16)
112if(isNaN(a))return s
113t[r+s]=a}return s}function M(t,e,r,n){return nt(et(e,t.length-r),t,r,n)}function x(t,e,r,n){return nt(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r))
114return e}(e),t,r,n)}function U(t,e,r,n){return x(t,e,r,n)}function I(t,e,r,n){return nt(rt(e),t,r,n)}function D(t,e,r,n){return nt(function(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=(r=t.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n)
115return o}(e,t.length-r),t,r,n)}function N(t,e,r){return 0===e&&r===t.length?g(t):g(t.slice(e,r))}function q(t,e,r){r=Math.min(t.length,r)
116for(var n=[],i=e;i<r;){var o,s,a,u,h=t[i],f=null,c=h>239?4:h>223?3:h>191?2:1
117if(i+c<=r)switch(c){case 1:h<128&&(f=h)
118break
119case 2:128==(192&(o=t[i+1]))&&(u=(31&h)<<6|63&o)>127&&(f=u)
120break
121case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&h)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(f=u)
122break
123case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(f=u)}null===f?(f=65533,c=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=c}return function(t){var e=t.length
124if(e<=Y)return String.fromCharCode.apply(String,t)
125for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Y))
126return r}(n)}S.TYPED_ARRAY_SUPPORT=void 0===u.TYPED_ARRAY_SUPPORT||u.TYPED_ARRAY_SUPPORT,S.poolSize=8192,S._augment=function(t){return t.__proto__=S.prototype,t},S.from=function(t,e,r){return E(null,t,e,r)},S.TYPED_ARRAY_SUPPORT&&(S.prototype.__proto__=Uint8Array.prototype,S.__proto__=Uint8Array),S.alloc=function(t,e,r){return function(t,e,r,n){return R(e),e<=0?_(t,e):void 0!==r?"string"==typeof n?_(t,e).fill(r,n):_(t,e).fill(r):_(t,e)}(null,t,e,r)},S.allocUnsafe=function(t){return k(null,t)},S.allocUnsafeSlow=function(t){return k(null,t)},S.isBuffer=it,S.compare=function(t,e){if(!O(t)||!O(e))throw new TypeError("Arguments must be Buffers")
127if(t===e)return 0
128for(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]
129break}return r<n?-1:n<r?1:0},S.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
130default:return!1}},S.concat=function(t,e){if(!b(t))throw new TypeError('"list" argument must be an Array of Buffers')
131if(0===t.length)return S.alloc(0)
132var r
133if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length
134var n=S.allocUnsafe(e),i=0
135for(r=0;r<t.length;++r){var o=t[r]
136if(!O(o))throw new TypeError('"list" argument must be an Array of Buffers')
137o.copy(n,i),i+=o.length}return n},S.byteLength=L,S.prototype._isBuffer=!0,S.prototype.swap16=function(){var t=this.length
138if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits")
139for(var e=0;e<t;e+=2)C(this,e,e+1)
140return this},S.prototype.swap32=function(){var t=this.length
141if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits")
142for(var e=0;e<t;e+=4)C(this,e,e+3),C(this,e+1,e+2)
143return this},S.prototype.swap64=function(){var t=this.length
144if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits")
145for(var e=0;e<t;e+=8)C(this,e,e+7),C(this,e+1,e+6),C(this,e+2,e+5),C(this,e+3,e+4)
146return this},S.prototype.toString=function(){var t=0|this.length
147return 0===t?"":0===arguments.length?q(this,0,t):function(t,e,r){var n=!1
148if((void 0===e||e<0)&&(e=0),e>this.length)return""
149if((void 0===r||r>this.length)&&(r=this.length),r<=0)return""
150if((r>>>=0)<=(e>>>=0))return""
151for(t||(t="utf8");;)switch(t){case"hex":return W(this,e,r)
152case"utf8":case"utf-8":return q(this,e,r)
153case"ascii":return z(this,e,r)
154case"latin1":case"binary":return F(this,e,r)
155case"base64":return N(this,e,r)
156case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,e,r)
157default:if(n)throw new TypeError("Unknown encoding: "+t)
158t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},S.prototype.equals=function(t){if(!O(t))throw new TypeError("Argument must be a Buffer")
159return this===t||0===S.compare(this,t)},S.prototype.inspect=function(){var t=""
160return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},S.prototype.compare=function(t,e,r,n,i){if(!O(t))throw new TypeError("Argument must be a Buffer")
161if(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")
162if(n>=i&&e>=r)return 0
163if(n>=i)return-1
164if(e>=r)return 1
165if(this===t)return 0
166for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),u=this.slice(n,i),h=t.slice(e,r),f=0;f<a;++f)if(u[f]!==h[f]){o=u[f],s=h[f]
167break}return o<s?-1:s<o?1:0},S.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},S.prototype.indexOf=function(t,e,r){return P(this,t,e,r,!0)},S.prototype.lastIndexOf=function(t,e,r){return P(this,t,e,r,!1)},S.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0
168else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0
169else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")
170e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e
171if((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")
172n||(n="utf8")
173for(var o=!1;;)switch(n){case"hex":return B(this,t,e,r)
174case"utf8":case"utf-8":return M(this,t,e,r)
175case"ascii":return x(this,t,e,r)
176case"latin1":case"binary":return U(this,t,e,r)
177case"base64":return I(this,t,e,r)
178case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,e,r)
179default:if(o)throw new TypeError("Unknown encoding: "+n)
180n=(""+n).toLowerCase(),o=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}}
181var Y=4096
182function z(t,e,r){var n=""
183r=Math.min(t.length,r)
184for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i])
185return n}function F(t,e,r){var n=""
186r=Math.min(t.length,r)
187for(var i=e;i<r;++i)n+=String.fromCharCode(t[i])
188return n}function W(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n)
189for(var i="",o=e;o<r;++o)i+=tt(t[o])
190return i}function J(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])
191return i}function $(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint")
192if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function H(t,e,r,n,i,o){if(!O(t))throw new TypeError('"buffer" argument must be a Buffer instance')
193if(e>i||e<o)throw new RangeError('"value" argument is out of bounds')
194if(r+n>t.length)throw new RangeError("Index out of range")}function G(t,e,r,n){e<0&&(e=65535+e+1)
195for(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 V(t,e,r,n){e<0&&(e=4294967295+e+1)
196for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function Q(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range")
197if(r<0)throw new RangeError("Index out of range")}function K(t,e,r,n,i){return i||Q(t,0,r,4),v(t,e,r,n,23,4),r+4}function Z(t,e,r,n,i){return i||Q(t,0,r,8),v(t,e,r,n,52,8),r+8}S.prototype.slice=function(t,e){var r,n=this.length
198if((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),S.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=S.prototype
199else{var i=e-t
200r=new S(i,void 0)
201for(var o=0;o<i;++o)r[o]=this[o+t]}return r},S.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||$(t,e,this.length)
202for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i
203return n},S.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||$(t,e,this.length)
204for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i
205return n},S.prototype.readUInt8=function(t,e){return e||$(t,1,this.length),this[t]},S.prototype.readUInt16LE=function(t,e){return e||$(t,2,this.length),this[t]|this[t+1]<<8},S.prototype.readUInt16BE=function(t,e){return e||$(t,2,this.length),this[t]<<8|this[t+1]},S.prototype.readUInt32LE=function(t,e){return e||$(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},S.prototype.readUInt32BE=function(t,e){return e||$(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},S.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||$(t,e,this.length)
206for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i
207return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},S.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||$(t,e,this.length)
208for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i
209return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},S.prototype.readInt8=function(t,e){return e||$(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},S.prototype.readInt16LE=function(t,e){e||$(t,2,this.length)
210var r=this[t]|this[t+1]<<8
211return 32768&r?4294901760|r:r},S.prototype.readInt16BE=function(t,e){e||$(t,2,this.length)
212var r=this[t+1]|this[t]<<8
213return 32768&r?4294901760|r:r},S.prototype.readInt32LE=function(t,e){return e||$(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},S.prototype.readInt32BE=function(t,e){return e||$(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},S.prototype.readFloatLE=function(t,e){return e||$(t,4,this.length),y(this,t,!0,23,4)},S.prototype.readFloatBE=function(t,e){return e||$(t,4,this.length),y(this,t,!1,23,4)},S.prototype.readDoubleLE=function(t,e){return e||$(t,8,this.length),y(this,t,!0,52,8)},S.prototype.readDoubleBE=function(t,e){return e||$(t,8,this.length),y(this,t,!1,52,8)},S.prototype.writeUIntLE=function(t,e,r,n){t=+t,e|=0,r|=0,n||H(this,t,e,r,Math.pow(2,8*r)-1,0)
214var i=1,o=0
215for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255
216return e+r},S.prototype.writeUIntBE=function(t,e,r,n){t=+t,e|=0,r|=0,n||H(this,t,e,r,Math.pow(2,8*r)-1,0)
217var i=r-1,o=1
218for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255
219return e+r},S.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||H(this,t,e,1,255,0),S.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},S.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||H(this,t,e,2,65535,0),S.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):G(this,t,e,!0),e+2},S.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||H(this,t,e,2,65535,0),S.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
2198,this[e+1]=255&t):G(this,t,e,!1),e+2},S.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||H(this,t,e,4,4294967295,0),S.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):V(this,t,e,!0),e+4},S.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||H(this,t,e,4,4294967295,0),S.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},S.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1)
220H(this,t,e,r,i-1,-i)}var o=0,s=1,a=0
221for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255
222return e+r},S.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1)
223H(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0
224for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255
225return e+r},S.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||H(this,t,e,1,127,-128),S.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},S.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||H(this,t,e,2,32767,-32768),S.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):G(this,t,e,!0),e+2},S.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||H(this,t,e,2,32767,-32768),S.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):G(this,t,e,!1),e+2},S.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||H(this,t,e,4,2147483647,-2147483648),S.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):V(this,t,e,!0),e+4},S.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||H(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),S.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},S.prototype.writeFloatLE=function(t,e,r){return K(this,t,e,!0,r)},S.prototype.writeFloatBE=function(t,e,r){return K(this,t,e,!1,r)},S.prototype.writeDoubleLE=function(t,e,r){return Z(this,t,e,!0,r)},S.prototype.writeDoubleBE=function(t,e,r){return Z(this,t,e,!1,r)},S.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0
226if(0===t.length||0===this.length)return 0
227if(e<0)throw new RangeError("targetStart out of bounds")
228if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds")
229if(n<0)throw new RangeError("sourceEnd out of bounds")
230n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r)
231var i,o=n-r
232if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r]
233else if(o<1e3||!S.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r]
234else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e)
235return o},S.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)
236i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string")
237if("string"==typeof n&&!S.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255)
238if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index")
239if(r<=e)return this
240var o
241if(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
242else{var s=O(t)?t:et(new S(t,n).toString()),a=s.length
243for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this}
244var X=/[^+\/0-9A-Za-z-_]/g
245function tt(t){return t<16?"0"+t.toString(16):t.toString(16)}function et(t,e){var r
246e=e||1/0
247for(var n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189)
248continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189)
249continue}i=r
250continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r
251continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189)
252if(i=null,r<128){if((e-=1)<0)break
253o.push(r)}else if(r<2048){if((e-=2)<0)break
254o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break
255o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point")
256if((e-=4)<0)break
257o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function rt(t){return function(t){var e,r,n,i,o,s
258l||p()
259var a=t.length
260if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4")
261o="="===t[a-2]?2:"="===t[a-1]?1:0,s=new c(3*a/4-o),n=o>0?a-4:a
262var u=0
263for(e=0,r=0;e<n;e+=4,r+=3)i=f[t.charCodeAt(e)]<<18|f[t.charCodeAt(e+1)]<<12|f[t.charCodeAt(e+2)]<<6|f[t.charCodeAt(e+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i
264return 2===o?(i=f[t.charCodeAt(e)]<<2|f[t.charCodeAt(e+1)]>>4,s[u++]=255&i):1===o&&(i=f[t.charCodeAt(e)]<<10|f[t.charCodeAt(e+1)]<<4|f[t.charCodeAt(e+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(X,"")).length<2)return""
265for(;t.length%4!=0;)t+="="
266return t}(t))}function nt(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i]
267return i}function it(t){return null!=t&&(!!t._isBuffer||ot(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&ot(t.slice(0,0))}(t))}function ot(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function st(){throw new Error("setTimeout has not been defined")}function at(){throw new Error("clearTimeout has not been defined")}var ut=st,ht=at
268function ft(t){if(ut===setTimeout)return setTimeout(t,0)
269if((ut===st||!ut)&&setTimeout)return ut=setTimeout,setTimeout(t,0)
270try{return ut(t,0)}catch(e){try{return ut.call(null,t,0)}catch(e){return ut.call(this,t,0)}}}"function"==typeof u.setTimeout&&(ut=setTimeout),"function"==typeof u.clearTimeout&&(ht=clearTimeout)
271var ct,lt=[],pt=!1,dt=-1
272function gt(){pt&&ct&&(pt=!1,ct.length?lt=ct.concat(lt):dt=-1,lt.length&&yt())}function yt(){if(!pt){var t=ft(gt)
273pt=!0
274for(var e=lt.length;e;){for(ct=lt,lt=[];++dt<e;)ct&&ct[dt].run()
275dt=-1,e=lt.length}ct=null,pt=!1,function(t){if(ht===clearTimeout)return clearTimeout(t)
276if((ht===at||!ht)&&clearTimeout)return ht=clearTimeout,clearTimeout(t)
277try{ht(t)}
277catch(e){try{return ht.call(null,t)}catch(e){return ht.call(this,t)}}}(t)}}function vt(t){var e=new Array(arguments.length-1)
278if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r]
279lt.push(new wt(t,e)),1!==lt.length||pt||ft(yt)}function wt(t,e){this.fun=t,this.array=e}function bt(){}wt.prototype.run=function(){this.fun.apply(null,this.array)}
280var mt=bt,_t=bt,St=bt,Et=bt,Rt=bt,kt=bt,At=bt,Tt=u.performance||{},Ot=Tt.now||Tt.mozNow||Tt.msNow||Tt.oNow||Tt.webkitNow||function(){return(new Date).getTime()},Lt=new Date,Ct={nextTick:vt,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:mt,addListener:_t,once:St,off:Et,removeListener:Rt,removeAllListeners:kt,emit:At,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*Ot.call(Tt),r=Math.floor(e),n=Math.floor(e%1*1e9)
281return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Lt)/1e3}},Pt="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
282var r=function(){}
283r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t},jt=/%[sdj%]/g
284function Bt(t,e){if(Jt(u.process))return function(){return Bt(t,e).apply(this,arguments)}
285var r=!1
286return function(){return r||(console.error(e),r=!0),t.apply(this,arguments)}}var Mt,xt={}
287function Ut(t,e){var r={seen:[],stylize:Dt}
288return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),zt(e)?r.showHidden=e:e&&function(t,e){if(!e||!Ht(e))return t
289for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]]}(r,e),Jt(r.showHidden)&&(r.showHidden=!1),Jt(r.depth)&&(r.depth=2),Jt(r.colors)&&(r.colors=!1),Jt(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=It),Nt(r,t,r.depth)}function It(t,e){var r=Ut.styles[e]
290return r?"�["+Ut.colors[r][0]+"m"+t+"�["+Ut.colors[r][1]+"m":t}function Dt(t,e){return t}function Nt(t,e,r){if(t.customInspect&&e&&Qt(e.inspect)&&e.inspect!==Ut&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t)
291return Wt(n)||(n=Nt(t,n,r)),n}var i=function(t,e){if(Jt(e))return t.stylize("undefined","undefined")
292if(Wt(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'"
293return t.stylize(r,"string")}return"number"==typeof e?t.stylize(""+e,"number"):zt(e)?t.stylize(""+e,"boolean"):Ft(e)?t.stylize("null","null"):void 0}(t,e)
294if(i)return i
295var o=Object.keys(e),s=function(t){var e={}
296return t.forEach((function(t,r){e[t]=!0})),e}(o)
297if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),Vt(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return qt(e)
298if(0===o.length){if(Qt(e)){var a=e.name?": "+e.name:""
299return t.stylize("[Function"+a+"]","special")}if($t(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp")
300if(Gt(e))return t.stylize(Date.prototype.toString.call(e),"date")
301if(Vt(e))return qt(e)}var u,h,f="",c=!1,l=["{","}"]
302return u=e,Array.isArray(u)&&(c=!0,l=["[","]"]),Qt(e)&&(f=" [Function"+(e.name?": "+e.name:"")+"]"),$t(e)&&(f=" "+RegExp.prototype.toString.call(e)),Gt(e)&&(f=" "+Date.prototype.toUTCString.call(e)),Vt(e)&&(f=" "+qt(e)),0!==o.length||c&&0!=e.length?r<0?$t(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),h=c?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s<a;++s)Zt(e,String(s))?o.push(Yt(t,e,r,n,String(s),!0)):o.push("")
303return i.forEach((function(i){i.match(/^\d+$/)||o.push(Yt(t,e,r,n,i,!0))})),o}(t,e,r,s,o):o.map((function(n){return Yt(t,e,r,s,n,c)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(h,f,l)):l[0]+f+l[1]}function qt(t){return"["+Error.prototype.toString.call(t)+"]"}function Yt(t,e,r,n,i,o){var s,a,u
304if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[
304Setter]","special")),Zt(n,i)||(s="["+i+"]"),a||(t.seen.indexOf(u.value)<0?(a=Ft(r)?Nt(t,u.value,null):Nt(t,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return"  "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return"   "+t})).join("\n")):a=t.stylize("[Circular]","special")),Jt(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function zt(t){return"boolean"==typeof t}function Ft(t){return null===t}function Wt(t){return"string"==typeof t}function Jt(t){return void 0===t}function $t(t){return Ht(t)&&"[object RegExp]"===Kt(t)}function Ht(t){return"object"==typeof t&&null!==t}function Gt(t){return Ht(t)&&"[object Date]"===Kt(t)}function Vt(t){return Ht(t)&&("[object Error]"===Kt(t)||t instanceof Error)}function Qt(t){return"function"==typeof t}function Kt(t){return Object.prototype.toString.call(t)}function Zt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Xt(){this.head=null,this.tail=null,this.length=0}Ut.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]},Ut.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Xt.prototype.push=function(t){var e={data:t,next:null}
305this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},Xt.prototype.unshift=function(t){var e={data:t,next:this.head}
3060===this.length&&(this.tail=e),this.head=e,++this.length},Xt.prototype.shift=function(){if(0!==this.length){var t=this.head.data
307return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},Xt.prototype.clear=function(){this.head=this.tail=null,this.length=0},Xt.prototype.join=function(t){if(0===this.length)return""
308for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data
309return r},Xt.prototype.concat=function(t){if(0===this.length)return S.alloc(0)
310if(1===this.length)return this.head.data
311for(var e=S.allocUnsafe(t>>>0),r=this.head,n=0;r;)r.data.copy(e,n),n+=r.data.length,r=r.next
312return e}
313var te=S.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
314default:return!1}}
315function ee(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!te(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3
316break
317case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=ne
318break
319case"base64":this.surrogateSize=3,this.detectIncompleteChar=ie
320break
321default:return void(this.write=re)}this.charBuffer=new S(6),this.charReceived=0,this.charLength=0}function re(t){return t.toString(this.encoding)}function ne(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function ie(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}ee.prototype.write=function(t){for(var e="";this.charLength;){var r=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length
322if(t.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return""
323if(t=t.slice(r,t.length),!((n=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e
324break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t)
325var n,i=t.length
326if(this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,i),i-=this.charReceived),i=(e+=t.toString(this.encoding,0,i)).length-1,(n=e.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize
327return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,i)}return e},ee.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e]
328if(1==e&&r>>5==6){this.charLength=2
329break}if(e<=2&&r>>4==14){this.charLength=3
330break}if(e<=3&&r>>3==30){this.charLength=4
331break}}this.charReceived=e},ee.prototype.end=function(t){var e=""
332if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding
333e+=n.slice(0,r).toString(i)}return e},ae.ReadableState=se
334var oe=function(t){return Jt(Mt)&&(Mt=Ct.env.NODE_DEBUG||""),t=t.toUpperCase(),xt[t]||(new RegExp("\\b"+t+"\\b","i").test(Mt)?xt[t]=function(){var e=function(t){if(!Wt(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(Ut(arguments[r]))
335return e.join(" ")}r=1
336for(var n=arguments,i=n.length,o=String(t).replace(jt,(function(t){if("%%"===t)return"%"
337if(r>=i)return t
338switch(t){case"%s":return String(n[r++])
339case"%d":return Number(n[r++])
340case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<i;s=n[++r])Ft(s)||!Ht(s)?o+=" "+s:o+=" "+Ut(s)
341return o}.apply(null,arguments)
342console.error("%s %d: %s",t,0,e)}:xt[t]=function(){}),xt[t]}("stream")
343function se(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof xe&&(this.objectMode=this.objectMode||!!t.readableObjectMode)
344var r=t.highWaterMark,n=this.objectMode?16:16384
345this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new Xt,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 ee(t.encoding),this.encoding=t.encoding)}function ae(t){if(!(this instanceof ae))return new ae(t)
346this._readableState=new se(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),r.call(this)}function ue(t,e,r,n,i){var o=function(t,e){var r=null
347return it(e)||"string"==typeof e||null==e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(e,r)
348if(o)t.emit("error",o)
349else if(null===r)e.reading=!1,function(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end()
350r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,ce(t)}}(t,e)
351else if(e.objectMode||r&&r.length>0)if(e.ended&&!i){var s=new Error("stream.push() after EOF")
352t.emit("error",s)}else if(e.endEmitted&&i){var a=new Error("stream.unshift() after end event")
353t.emit("error",a)}else{var u
354!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&&ce(t))),function(t,e){e.readingMore||(e.readingMore=!0,vt(pe,t,e))}(t,e)}else i||(e.reading=!1)
355return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}Pt(ae,r),ae.prototype.push=function(t,e){var r=this._readableState
356return r.objectMode||"string"!=typeof t||(e=e||r.defaultEncoding)!==r.encoding&&(t=S.from(t,e),e=""),ue(this,r,t,e,!1)},ae.prototype.unshift=function(t){return ue(this,this._readableState,t,"",!0)},ae.prototype.isPaused=function(){return!1===this._readableState.flowing},ae.prototype.setEncoding=function(t){return this._readableState.decoder=new ee(t),this._readableState.encoding=t,this}
357var he=8388608
358function fe(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>=he?t=he:(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 ce(t){var e=t._readableState
359e.needReadable=!1,e.emittedReadable||(oe("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?vt(le,t):le
359(t))}function le(t){oe("emit readable"),t.emit("readable"),ye(t)}function pe(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(oe("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length
360e.readingMore=!1}function de(t){oe("readable nexttick read 0"),t.read(0)}function ge(t,e){e.reading||(oe("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),ye(t),e.flowing&&!e.reading&&t.read(0)}function ye(t){var e=t._readableState
361for(oe("flow",e.flowing);e.flowing&&null!==t.read(););}function ve(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
362return 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
363for(t-=i.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t
364if(s===o.length?i+=o:i+=o.slice(0,t),0==(t-=s)){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s))
365break}++n}return e.length-=n,i}(t,e):function(t,e){var r=S.allocUnsafe(t),n=e.head,i=1
366for(n.data.copy(r),t-=n.data.length;n=n.next;){var o=n.data,s=t>o.length?o.length:t
367if(o.copy(r,r.length-t,0,s),0==(t-=s)){s===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s))
368break}++i}return e.length-=i,r}(t,e),n}(t,e.buffer,e.decoder),r)
369var r}function we(t){var e=t._readableState
370if(e.length>0)throw new Error('"endReadable()" called on non-empty stream')
371e.endEmitted||(e.ended=!0,vt(be,e,t))}function be(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function me(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r
372return-1}function _e(){}function Se(t,e,r){this.chunk=t,this.encoding=e,this.callback=r,this.next=null}function Ee(t,e){Object.defineProperty(this,"buffer",{get:Bt((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof xe&&(this.objectMode=this.objectMode||!!t.writableObjectMode)
373var r=t.highWaterMark,n=this.objectMode?16:16384
374this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1
375var i=!1===t.decodeStrings
376this.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
377if(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?vt(i,n):i(n),t._writableState.errorEmitted=!0,t.emit("error",n)}(t,r,n,e,i)
378else{var o=Oe(r)
379o||r.corked||r.bufferProcessing||!r.bufferedRequest||Te(t,r),n?vt(Ae,t,r,o,i):Ae(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 Pe(this)}function Re(t){if(!(this instanceof Re||this instanceof xe))return new Re(t)
380this._writableState=new Ee(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),r.call(this)}function ke(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function Ae(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),Ce(t,e)}function Te(t,e){e.bufferProcessing=!0
381var r=e.bufferedRequest
382if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree
383o.entry=r
384for(var s=0;r;)i[s]=r,r=r.next,s+=1
385ke(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 Pe(e)}else{for(;r;){var a=r.chunk,u=r.encoding,h=r.callback
386if(ke(t,e,!1,e.objectMode?1:a.length,a,u,h),r=r.next,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=r,e.bufferProcessing=!1}function Oe(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function Le(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function Ce(t,e){var r=Oe(e)
387return r&&(0===e.pendingcb?(Le(t,e),e.finished=!0,t.emit("finish")):Le(t,e)),r}function Pe(t){var e=this
388this.next=null,this.entry=null,this.finish=function(r){var n=e.entry
389for(e.entry=null;n;){var i=n.callback
390t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}ae.prototype.read=function(t){oe("read",t),t=parseInt(t,10)
391var e=this._readableState,r=t
392if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return oe("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?we(this):ce(this),null
393if(0===(t=fe(t,e))&&e.ended)return 0===e.length&&we(this),null
394var n,i=e.needReadable
395return oe("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&oe("length less than watermark",i=!0),e.ended||e.reading?oe("reading or ended",i=!1):i&&(oe("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=fe(r,e))),null===(n=t>0?ve(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&we(this)),null!==n&&this.emit("data",n),n},ae.prototype._read=function(t){this.emit("error",new Error("not implemented"))},ae.prototype.pipe=function(t,e){var r=this,n=this._readableState
396switch(n.pipesCount){case 0:n.pipes=t
397break
398case 1:n.pipes=[n.pipes,t]
399break
400default:n.pipes.push(t)}n.pipesCount+=1,oe("pipe count=%d opts=%j",n.pipesCount,e)
401var i=e&&!1===e.end?h:s
402function o(t){oe("onunpipe"),t===r&&h()}function s(){oe("onend"),t.end()}n.endEmitted?vt(i):r.once("end",i),t.on("unpipe",o)
403var a=function(t){return function(){var e=t._readableState
404oe("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,ye(t))}}(r)
405t.on("drain",a)
406var u=!1
407function h(){oe("cleanup"),t.removeListener("close",p),t.removeListener("finish",d),t.removeListener("drain",a),t.removeListener("error",l),t.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",h),r.removeListener("data",c),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||a()}var f=!1
408function c(e){oe("ondata"),f=!1,!1!==t.write(e)||f||((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==me(n.pipes,t))&&!u&&(oe("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function l(e){oe("onerror",e),g(),t.removeListener("error",l),0===("error",t.listeners("error").length)&&t.emit("error",e)}function p(){t.removeListener("finish",d),g()}function d(){oe("onfinish"),t.removeListener("close",p),g()}function g(){oe("unpipe"),r.unpipe(t)}return r.on("data",c),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r)
409t._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",p),t.once("finish",d),t.emit("pipe",r),n.flowing||(oe("pipe resume"),r.resume()),t},ae.prototype.unpipe=function(t){var e=this._readableState
410if(0===e.pipesCount)return this
411if(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
412if(!t){var r=e.pipes,n=e.pipesCount
413e.pipes=null,e.pipesCount=0,e.flowing=!1
414for(var i=0;i<n;i++)r[i].emit("unpipe",this)
415return this}var o=me(e.pipes,t)
416return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},ae.prototype.on=function(t,e){var n=r.prototype.on.call(this,t,e)
417if("data"===t)!1!==this._readableState.flowing&&this.resume()
418else if("readable"===t){var i=this._readableState
419i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&ce(this):vt(de,this))}return n},ae.prototype.addListener=ae.prototype.on,ae.prototype.resume=function(){var t=this._readableState
420return t.flowing||(oe("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,vt(ge,t,e))}(this,t)),this},ae.prototype.pause=function(){return oe("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(oe("pause"),this._readableState.flowing=!1,this.emit("pause")),this},ae.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this
421for(var i in t.on("end",(function(){if(oe("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end()
422t&&t.length&&n.push(t)}n.push(null)})),t.on("data",(function(i){oe("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))
423return function(t,e){for(var r=0,n=t.length;r<n;r++)e(t[r])}(["error","close","destroy","pause","resume"],(function(e){t.on(e,n.emit.bind(n,e))})),n._read=function(e){oe("wrapped _read",e),r&&(r=!1,t.resume())},n},ae._fromList=ve,Re.WritableState=Ee,Pt(Re,r),Ee.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next
424return e}
424,Re.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Re.prototype.write=function(t,e,r){var n=this._writableState,i=!1
425return"function"==typeof e&&(r=e,e=null),S.isBuffer(t)?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=_e),n.ended?function(t,e){var r=new Error("write after end")
426t.emit("error",r),vt(e,r)}(this,r):function(t,e,r,n){var i=!0,o=!1
427return null===r?o=new TypeError("May not write null values to stream"):S.isBuffer(r)||"string"==typeof r||void 0===r||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),vt(n,o),i=!1),i}(this,n,t,r)&&(n.pendingcb++,i=function(t,e,r,n,i){r=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=S.from(e,r)),e}(e,r,n),S.isBuffer(r)&&(n="buffer")
428var o=e.objectMode?1:r.length
429e.length+=o
430var s=e.length<e.highWaterMark
431if(s||(e.needDrain=!0),e.writing||e.corked){var a=e.lastBufferedRequest
432e.lastBufferedRequest=new Se(r,n,i),a?a.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ke(t,e,!1,o,r,n,i)
433return s}(this,n,t,e,r)),i},Re.prototype.cork=function(){this._writableState.corked++},Re.prototype.uncork=function(){var t=this._writableState
434t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||Te(this,t))},Re.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)
435return this._writableState.defaultEncoding=t,this},Re.prototype._write=function(t,e,r){r(new Error("not implemented"))},Re.prototype._writev=null,Re.prototype.end=function(t,e,r){var n=this._writableState
436"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,Ce(t,e),r&&(e.finished?vt(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r)},Pt(xe,ae)
437for(var je=Object.keys(Re.prototype),Be=0;Be<je.length;Be++){var Me=je[Be]
438xe.prototype[Me]||(xe.prototype[Me]=Re.prototype[Me])}function xe(t){if(!(this instanceof xe))return new xe(t)
439ae.call(this,t),Re.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",Ue)}function Ue(){this.allowHalfOpen||this._writableState.ended||vt(Ie,this)}function Ie(t){t.end()}function De(t){this.afterTransform=function(e,r){return function(t,e,r){var n=t._transformState
440n.transforming=!1
441var i=n.writecb
442if(!i)return t.emit("error",new Error("no writecb in Transform class"))
443n.writechunk=null,n.writecb=null,null!=r&&t.push(r),i(e)
444var o=t._readableState
445o.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 Ne(t){if(!(this instanceof Ne))return new Ne(t)
446xe.call(this,t),this._transformState=new De(this)
447var e=this
448this._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){qe(e,t)})):qe(e)}))}function qe(t,e){if(e)return t.emit("error",e)
449var r=t._writableState,n=t._transformState
450if(r.length)throw new Error("Calling transform done when ws.length != 0")
451if(n.transforming)throw new Error("Calling transform done when still transforming")
452return t.push(null)}function Ye(t){if(!(this instanceof Ye))return new Ye(t)
453Ne.call(this,t)}function ze(){r.call(this)}function Fe(t){return(Fe="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)}function We(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Je(t,e){for(var r=0;r<e.length;r++){var n=e[r]
454n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function $e(t,e,r){return e&&Je(t.prototype,e),r&&Je(t,r),t}function He(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function")
455t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ve(t,e)}function Ge(t){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ve(t,e){return(Ve=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qe(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
456return t}(t):e}Pt(Ne,xe),Ne.prototype.push=function(t,e){return this._transformState.needTransform=!1,xe.prototype.push.call(this,t,e)},Ne.prototype._transform=function(t,e,r){throw new Error("Not implemented")},Ne.prototype._write=function(t,e,r){var n=this._transformState
457if(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)}},Ne.prototype._read=function(t){var e=this._transformState
458null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},Pt(Ye,Ne),Ye.prototype._transform=function(t,e,r){r(null,t)},Pt(ze,r),ze.Readable=ae,ze.Writable=Re,ze.Duplex=xe,ze.Transform=Ne,ze.PassThrough=Ye,ze.Stream=ze,ze.prototype.pipe=function(t,e){var n=this
459function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",a),n.on("close",u))
460var s=!1
461function a(){s||(s=!0,t.end())}function u(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(f(),0===r.listenerCount(this,"error"))throw t}function f(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",u),n.removeListener("error",h),t.removeListener("error",h),n.removeListener("end",f),n.removeListener("close",f),t.removeListener("close",f)}return n.on("error",h),t.on("error",h),n.on("end",f),n.on("close",f),t.on("close",f),t.emit("pipe",n),t}
462var Ke,Ze="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Xe="__lodash_hash_undefined__",tr=1/0,er=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rr=/^\w*$/,nr=/^\./,ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,or=/\\(\\)?/g,sr=/^\[object .+?Constructor\]$/,ar="object"==typeof Ze&&Ze&&Ze.Object===Object&&Ze,ur="object"==typeof self&&self&&self.Object===Object&&self,hr=ar||ur||Function("return this")(),fr=Array.prototype,cr=Function.prototype,lr=Object.prototype,pr=hr["__core-js_shared__"],dr=(Ke=/[^.]+$/.exec(pr&&pr.keys&&pr.keys.IE_PROTO||""))?"Symbol(sr
462c)_1."+Ke:"",gr=cr.toString,yr=lr.hasOwnProperty,vr=lr.toString,wr=RegExp("^"+gr.call(yr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),br=hr.Symbol,mr=fr.splice,_r=Cr(hr,"Map"),Sr=Cr(Object,"create"),Er=br?br.prototype:void 0,Rr=Er?Er.toString:void 0
463function kr(t){var e=-1,r=t?t.length:0
464for(this.clear();++e<r;){var n=t[e]
465this.set(n[0],n[1])}}function Ar(t){var e=-1,r=t?t.length:0
466for(this.clear();++e<r;){var n=t[e]
467this.set(n[0],n[1])}}function Tr(t){var e=-1,r=t?t.length:0
468for(this.clear();++e<r;){var n=t[e]
469this.set(n[0],n[1])}}function Or(t,e){for(var r,n,i=t.length;i--;)if((r=t[i][0])===(n=e)||r!=r&&n!=n)return i
470return-1}function Lr(t,e){var r,n,i=t.__data__
471return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Cr(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e)
472return function(t){return!(!xr(t)||(e=t,dr&&dr in e))&&(function(t){var e=xr(t)?vr.call(t):""
473return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)||function(t){var e=!1
474if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?wr:sr).test(function(t){if(null!=t){try{return gr.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))
475var e}(r)?r:void 0}kr.prototype.clear=function(){this.__data__=Sr?Sr(null):{}},kr.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},kr.prototype.get=function(t){var e=this.__data__
476if(Sr){var r=e[t]
477return r===Xe?void 0:r}return yr.call(e,t)?e[t]:void 0},kr.prototype.has=function(t){var e=this.__data__
478return Sr?void 0!==e[t]:yr.call(e,t)},kr.prototype.set=function(t,e){return this.__data__[t]=Sr&&void 0===e?Xe:e,this},Ar.prototype.clear=function(){this.__data__=[]},Ar.prototype.delete=function(t){var e=this.__data__,r=Or(e,t)
479return!(r<0||(r==e.length-1?e.pop():mr.call(e,r,1),0))},Ar.prototype.get=function(t){var e=this.__data__,r=Or(e,t)
480return r<0?void 0:e[r][1]},Ar.prototype.has=function(t){return Or(this.__data__,t)>-1},Ar.prototype.set=function(t,e){var r=this.__data__,n=Or(r,t)
481return n<0?r.push([t,e]):r[n][1]=e,this},Tr.prototype.clear=function(){this.__data__={hash:new kr,map:new(_r||Ar),string:new kr}},Tr.prototype.delete=function(t){return Lr(this,t).delete(t)},Tr.prototype.get=function(t){return Lr(this,t).get(t)},Tr.prototype.has=function(t){return Lr(this,t).has(t)},Tr.prototype.set=function(t,e){return Lr(this,t).set(t,e),this}
482var Pr=Br((function(t){var e
483t=null==(e=t)?"":function(t){if("string"==typeof t)return t
484if(Ur(t))return Rr?Rr.call(t):""
485var e=t+""
486return"0"==e&&1/t==-tr?"-0":e}(e)
487var r=[]
488return nr.test(t)&&r.push(""),t.replace(ir,(function(t,e,n,i){r.push(n?i.replace(or,"$1"):e||t)})),r}))
489function jr(t){if("string"==typeof t||Ur(t))return t
490var e=t+""
491return"0"==e&&1/t==-tr?"-0":e}function Br(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function")
492var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache
493if(o.has(i))return o.get(i)
494var s=t.apply(this,n)
495return r.cache=o.set(i,s),s}
496return r.cache=new(Br.Cache||Tr),r}Br.Cache=Tr
497var Mr=Array.isArray
498function xr(t){var e=typeof t
499return!!t&&("object"==e||"function"==e)}function Ur(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==vr.call(t)}var Ir=function(t,e,r){var n=null==t?void 0:function(t,e){for(var r,n=0,i=(e=function(t,e){if(Mr(t))return!1
500var r=typeof t
501return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Ur(t))||rr.test(t)||!er.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:Mr(r=e)?r:Pr(r)).length;null!=t&&n<i;)t=t[jr(e[n++])]
502return n&&n==i?t:void 0}(t,e)
503return void 0===n?r:n},Dr=function(t,e){var r=!0
504return t.reduce((function(t,n){return null==n&&(n=""),r?(r=!1,"".concat(n)):"".concat(t).concat(e).concat(n)}),"")},Nr=function(t,e){try{return t.push.apply(t,function(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e]
505return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(e)),t}catch(r){return t.concat(e)}},qr=function(t,e,r){return void 0===t[e]?r:t[e]},Yr=function t(e,r,n){var i=Array.isArray(r)?r:r.split("."),o=i[0],s=i.length>1?t(e[o]||{},i.slice(1),n):n
506return Object.assign({},e,function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}({},o,s))},zr=Dr,Fr=Nr,Wr=function(){function t(e){We(this,t),this.opts=this.preprocessOpts(e),this.preprocessRow=this.memoizePreprocessRow()}return $e(t,[{key:"preprocessOpts",value:function(t){var e=Object.assign({},t)
507return e.unwind=Array.isArray(e.unwind)?e.unwind:e.unwind?[e.unwind]:[],e.delimiter=e.delimiter||",",e.flattenSeparator=e.flattenSeparator||".",e.eol=e.eol||"\n",e.quote="string"==typeof e.quote?t.quote:'"',e.doubleQuote="string"==typeof e.doubleQuote?e.doubleQuote:e.quote+e.quote,e.header=!1!==e.header,e.includeEmptyRows=e.includeEmptyRows||!1,e.withBOM=e.withBOM||!1,e}},{key:"preprocessFieldsInfo",value:function(t){var e=this
508return t.map((function(t){if("string"==typeof t)return{label:t,value:t.includes(".")||t.includes("[")?function(r){return Ir(r,t,e.opts.defaultValue)}:function(r){return qr(r,t,e.opts.defaultValue)},stringify:!0}
509if("object"===Fe(t)){var r="default"in t?t.default:e.opts.defaultValue
510if("string"==typeof t.value)return{label:t.label||t.value,value:t.value.includes(".")||t.value.includes("[")?function(e){return Ir(e,t.value,r)}:function(e){return qr(e,t.value,r)},stringify:void 0===t.stringify||t.stringify}
511if("function"==typeof t.value){var n=t.label||t.value.name||"",i={label:n,default:r}
512return{label:n,value:function(e){var n=t.value(e,i)
513return null==n?r:n},stringify:void 0===t.stringify||t.stringify}}}throw new Error("Invalid field info option. "+JSON.stringify(t))}))}},{key:"getHeader",value:function(){var t=this
514return zr(this.opts.fields.map((function(e){return t.processValue(e.label,!0)})),this.opts.delimiter)}},{key:"memoizePreprocessRow",value:function(){return this.opts.unwind&&this.opts.unwind.length?this.opts.flatten?function(t){var e=this
515return this.unwindData(t,this.opts.unwind).map((function(t){return e.flatten(t,e.opts.flattenSeparator)}))}:function(t){return this.unwindData(t,this.opts.unwind)}:this.opts.flatten?function(t){return[this.flatten(t,this.opts.flattenSeparator)]}:function(t){return[t]}}},{key:"preprocessRow",value:function(){}},{key:"processRow",value:function(t){var e=this
516if(t){var r=this.opts.fields.map((function(r){return e.processCell(t,r)}))
517if(this.opts.includeEmptyRows||!r.every((function(t){return void 0===t})))return zr(r,this.opts.delimiter)}}},{key:"processCell",value:function(t,e){return this.processValue(e.value(t),e.stringify)}},{key:"processValue",value:function(t,e){if(null!=t){var r=Fe(t)
518if("boolean"!==r&&"number"!==r&&"string"!==r){if(void 0===(t=JSON.stringify(t)))return
519'"'===t[0]&&(t=t.replace(/^"(.+)"$/,"$1"))}return"string"==typeof t&&(t.includes(this.opts.quote)&&(t=t.replace(new RegExp(this.opts.quote,"g"),this.opts.doubleQuote)),t=e?"".concat(this.opts.quote).concat(t).concat(this.opts.quote):t.replace(new RegExp("^".concat(this.opts.doubleQuote)),this.opts.quote).replace(new RegExp("".concat(this.opts.doubleQuote,"$")),this.opts.quote),this.opts.excelStrings&&(t='"="'.concat(t,'""'))),t}}},{key:"flatten",value:function(t,e){return function t(r,n,i){return Object.keys(r).forEach((function(o){var s=r[o],a=i?"".concat(i).c
519oncat(e).concat(o):o
520"object"===Fe(s)&&null!==s&&!Array.isArray(s)&&"[object Function]"!==Object.prototype.toString.call(s.toJSON)&&Object.keys(s).length?t(s,n,a):n[a]=s})),n}(t,{})}},{key:"unwindData",value:function(t,e){var r=this
521return e.reduce((function(t,e){return t.map((function(t){var n=Ir(t,e)
522return Array.isArray(n)?n.length?n.map((function(n,i){var o=r.opts.unwindBlank&&i>0?{}:t
523return Yr(o,e,n)})):Yr(t,e,void 0):t})).reduce(Fr,[])}),[t])}}]),t}(),Jr=Dr,$r=Nr,Hr=function(t){function e(t){var r
524return We(this,e),(r=Qe(this,Ge(e).call(this,t))).opts.fields&&(r.opts.fields=r.preprocessFieldsInfo(r.opts.fields)),r}return He(e,Wr),$e(e,[{key:"parse",value:function(t){var e=this.preprocessData(t)
525this.opts.fields||(this.opts.fields=e.reduce((function(t,e){return Object.keys(e).forEach((function(e){t.includes(e)||t.push(e)})),t}),[]),this.opts.fields=this.preprocessFieldsInfo(this.opts.fields))
526var r=this.opts.header?this.getHeader():"",n=this.processData(e)
527return(this.opts.withBOM?"\ufeff":"")+r+(r&&n?this.opts.eol:"")+n}},{key:"preprocessData",value:function(t){var e=this,r=Array.isArray(t)?t:[t]
528if(!this.opts.fields&&(0===r.length||"object"!==Fe(r[0])))throw new Error('Data should not be empty or the "fields" option should be included')
529return this.opts.unwind&&this.opts.unwind.length||this.opts.flatten?r.map((function(t){return e.preprocessRow(t)})).reduce($r,[]):r}},{key:"processData",value:function(t){var e=this
530return Jr(t.map((function(t){return e.processRow(t)})).filter((function(t){return t})),this.opts.eol)}}]),e}(),Gr={},Vr=Gr.LEFT_BRACE=1,Qr=Gr.RIGHT_BRACE=2,Kr=Gr.LEFT_BRACKET=3,Zr=Gr.RIGHT_BRACKET=4,Xr=Gr.COLON=5,tn=Gr.COMMA=6,en=Gr.TRUE=7,rn=Gr.FALSE=8,nn=Gr.NULL=9,on=Gr.STRING=10,sn=Gr.NUMBER=11,an=Gr.START=17,un=Gr.STOP=18,hn=Gr.TRUE1=33,fn=Gr.TRUE2=34,cn=Gr.TRUE3=35,ln=Gr.FALSE1=49,pn=Gr.FALSE2=50,dn=Gr.FALSE3=51,gn=Gr.FALSE4=52,yn=Gr.NULL1=65,vn=Gr.NULL2=66,wn=Gr.NULL3=67,bn=Gr.NUMBER1=81,mn=Gr.NUMBER3=83,_n=Gr.STRING1=97,Sn=Gr.STRING2=98,En=Gr.STRING3=99,Rn=Gr.STRING4=100,kn=Gr.STRING5=101,An=Gr.STRING6=102,Tn=Gr.VALUE=113,On=Gr.KEY=114,Ln=Gr.OBJECT=129,Cn=Gr.ARRAY=130,Pn="\\".charCodeAt(0),jn="/".charCodeAt(0),Bn="\b".charCodeAt(0),Mn="\f".charCodeAt(0),xn="\n".charCodeAt(0),Un="\r".charCodeAt(0),In="\t".charCodeAt(0),Dn=65536
531function Nn(){this.tState=an,this.value=void 0,this.string=void 0,this.stringBuffer=S.alloc?S.alloc(Dn):new S(Dn),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=Tn,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new S(2),3:new S(3),4:new S(4)},this.offset=-1}Nn.toknam=function(t){for(var e=Object.keys(Gr),r=0,n=e.length;r<n;r++){var i=e[r]
532if(Gr[i]===t)return i}return t&&"0x"+t.toString(16)}
533var qn=Nn.prototype
534qn.onError=function(t){throw t},qn.charError=function(t,e){this.tState=un,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(t[e]))+" at position "+e+" in state "+Nn.toknam(this.tState)))},qn.appendStringChar=function(t){this.stringBufferOffset>=Dn&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=t},qn.appendStringBuf=function(t,e,r){var n=t.length
535"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>Dn&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),t.copy(this.stringBuffer,this.stringBufferOffset,e,r),this.stringBufferOffset+=n},qn.write=function(t){var e
536"string"==typeof t&&(t=new S(t))
537for(var r=0,n=t.length;r<n;r++)if(this.tState===an){if(e=t[r],this.offset++,123===e)this.onToken(Vr,"{")
538else if(125===e)this.onToken(Qr,"}")
539else if(91===e)this.onToken(Kr,"[")
540else if(93===e)this.onToken(Zr,"]")
541else if(58===e)this.onToken(Xr,":")
542else if(44===e)this.onToken(tn,",")
543else if(116===e)this.tState=hn
544else if(102===e)this.tState=ln
545else if(110===e)this.tState=yn
546else if(34===e)this.string="",this.stringBufferOffset=0,this.tState=_n
547else if(45===e)this.string="-",this.tState=bn
548else if(e>=48&&e<64)this.string=String.fromCharCode(e),this.tState=mn
549else if(32!==e&&9!==e&&10!==e&&13!==e)return this.charError(t,r)}else if(this.tState===_n)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]
550this.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 "+Nn.toknam(this.tState)))
551if(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]
552this.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=an,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(on,this.string),this.offset+=S.byteLength(this.string,"utf8")+1,this.string=void 0
553else if(92===e)this.tState=Sn
554else{if(!(e>=32))return this.charError(t,r)
555this.appendStringChar(e)}else if(this.tState===Sn)if(34===(e=t[r]))this.appendStringChar(e),this.tState=_n
556else if(92===e)this.appendStringChar(Pn),this.tState=_n
557else if(47===e)this.appendStringChar(jn),this.tState=_n
558else if(98===e)this.appendStringChar(Bn),this.tState=_n
559else if(102===e)this.appendStringChar(Mn),this.tState=_n
560else if(110===e)this.appendStringChar(xn),this.tState=_n
561else if(114===e)this.appendStringChar(Un),this.tState=_n
562else if(116===e)this.appendStringChar(In),this.tState=_n
563else{if(117!==e)return this.charError(t,r)
564this.unicode="",this.tState=En}else if(this.tState===En||this.tState===Rn||this.tState===kn||this.tState===An){if(!((e=t[r])>=48&&e<64||e>64&&e<=70||e>96&&e<=102))return this.charError(t,r)
565if(this.unicode+=String.fromCharCode(e),this.tState++===An){var s=parseInt(this.unicode,16)
566this.unicode=void 0,void 0!==this.highSurrogate&&s>=56320&&s<57344?(this.appendStringBuf(new S(String.fromCharCode(this.highSurrogate,s))),this.highSurrogate=void 0):void 0===this.highSurrogate&&s>=55296&&s<56320?this.highSurrogate=s:(void 0!==this.highSurrogate&&(this.appendStringBuf(new S(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new S(String.fromCharCode(s)))),this.tState=_n}}else if(this.tState===bn||this.tState===mn)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=mn
567break
568default:this.tState=an
569var a=Number(this.string)
570if(isNaN(a))return this.charError(t,r)
571this.string.match(/[0-9]+/)==this.string&&a.toString()!=this.string?this.onToken(on,this.string):this.onToken(sn,a),this.offset+=this.string.length-1,this.string=void 0,r--}else if(this.tState===hn){if(114!==t[r])return this.charError(t,r)
572this.tState=fn}else if(this.tState===fn){if(117!==t[r])return this.charError(t,r)
573this.tState=cn}else if(this.tState===cn){if(101!==t[r])return this.charError(t,r)
574this.tState=an,this.onToken(en,!0),this.offset+=3}else if(this.tState===ln){if(97!==t[r])return this.charError(t,r)
575this.tState=pn}else if(this.tState===pn){if(108!==t[r])return this.charError(t,r)
576this.tState=dn}else if(this.tState===dn){if(115!==t[r])return this.charError(t,r)
577this.tState=gn}else if(this.tState===gn){if(101!==t[r])return this.charError(t,r)
578this.tState=an,this.onToken(rn,!1),this.offset+=4}else if(this.tState===yn){if(117!==t[r])return this.charError(t,r)
579this.tState=vn}else if(this.tState===vn){if(108!==t[r])return this.charError(t,r)
580this.tState=wn}else if(this.tState===wn){if(108!==t[r])return this.charError(t,r)
581this.tState=an,this.onToken(nn,null),this.offset+=3}},qn.onToken=function(t,e){},qn.parseError=function(t,e){this.tState=un,this.onError(new Error("Unexpected "+Nn.toknam(t)+(e?"("+JSON.stringify(e)+")":"")+" in state "+Nn.toknam(this.state)))},qn.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},qn.pop=function(){var t=this.value,e=this.stack.pop()
582this.value=e.value,this.key=e.key,this.mode=e.mode,this.emit(t),this.mode||(this.state=Tn)},qn.emit=function(t){this.mode&&(this.state=tn),this.onValue(t)},qn.onValue=function(t){},qn.onToken=function(t,e){if(this.state===Tn)if(t===on||t===sn||t===en||t===rn||t===nn)this.value&&(this.value[this.key]=e),this.emit(e)
583else if(t===Vr)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=On,this.mode=Ln
584else if(t===Kr)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=Cn,this.state=Tn
585else if(t===Qr){if(this.mode!==Ln)return this.parseError(t,e)
586this.pop()}else{if(t!==Zr)return this.parseError(t,e)
587if(this.mode!==Cn)return this.parseError(t,e)
588this.pop()}else if(this.state===On)if(t===on)this.key=e,this.state=Xr
589else{if(t!==Qr)return this.parseError(t,e)
590this.pop()}else if(this.state===Xr){if(t!==Xr)return this.parseError(t,e)
591this.state=Tn}else{if(this.state!==tn)return this.parseError(t,e)
592if(t===tn)this.mode===Cn?(this.key++,this.state=Tn):this.mode===Ln&&(this.state=On)
593else{if(!(t===Zr&&this.mode===Cn||t===Qr&&this.mode===Ln))return this.parseError(t,e)
594this.pop()}}},Nn.C=Gr
595var Yn=Nn,zn=ze.Transform,Fn=function(t){function e(t,r){var n
596return We(this,e),n=Qe(this,Ge(e).call(this,r)),Object.getOwnPropertyNames(Wr.prototype).forEach((function(t){return n[t]=Wr.prototype[t]})),n.opts=n.preprocessOpts(t),n.preprocessRow=n.memoizePreprocessRow(),n._data="",n._hasWritten=!1,n._readableState.objectMode?n.initObjectModeParse():n.opts.ndjson?n.initNDJSONParse():n.initJSONParser(),n.opts.withBOM&&n.push("\ufeff"),n.opts.fields&&(n.opts.fields=n.preprocessFieldsInfo(n.opts.fields),n.pushHeader()),n}return He(e,zn),$e(e,[{key:"initObjectModeParse",value:function(){var t=this
597this.parser={write:function(e){t.pushLine(e)},getPendingData:function(){}}}},{key:"initNDJSONParse",value:function(){var t=this
598this.parser={_data:"",write:function(e){this._data+=e.toString()
599var r=this._data.split("\n").map((function(t){return t.trim()})).filter((function(t){return""!==t})),n=!1
600r.forEach((function(e,i){try{t.pushLine(JSON.parse(e))}catch(o){i===r.length-1?n=!0:(o.message="Invalid JSON ("+e+")",t.emit("error",o))}})),this._data=n?this._data.slice(this._data.lastIndexOf("\n")):""},getPendingData:function(){return this._data}}}},{key:"initJSONParser",value:function(){var t=this
601this.parser=new Yn,this.parser.onValue=function(e){this.stack.length===this.depthToEmit&&t.pushLine(e)},this.parser._onToken=this.parser.onToken,this.parser.onToken=function(e,r){t.parser._onToken(e,r),0!==this.stack.length||t.opts.fields||this.mode===Yn.C.ARRAY||this.mode===Yn.C.OBJECT||this.onError(new Error('Data should not be empty or the "fields" option should be included')),1===this.stack.length&&(void 0===this.depthToEmit&&(this.depthToEmit=this.mode===Yn.C.ARRAY?1:0),0!==this.depthToEmit&&1===this.stack.length&&(this.value=void 0))},this.parser.getPendingData=function(){return this.value},this.parser.onError=function(e){e.message.includes("Unexpected")&&(e.message="Invalid JSON ("+e.message+")"),t.emit("error",e)}}},{key:"_transform",value:function(t,e,r){this.parser.write(t),r()}},{key:"_flush",value:function(t){this.parser.getPendingData()&&t(new Error("Invalid data received from stdin",this.parser.getPendingData())),t()}},{key:"pushHeader",value:function(){if(this.opts.header){var t=this.getHeader()
602this.emit("header",t),this.push(t),this._hasWritten=!0}}},{key:"pushLine",value:function(t){var e=this,r=this.preprocessRow(t)
603this._hasWritten||(this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(Object.keys(r[0])),this.pushHeader()),r.forEach((function(t){var r=e.processRow(t,e.opts)
604void 0!==r&&(e.emit("line",r),e.push(e._hasWritten?e.opts.eol+r:r),e._hasWritten=!0)}))}}]),e}(),Wn=ze.Transform,Jn=Dr,$n=function(){function t(e,r){We(this,t),this.input=new Wn(r),this.input._read=function(){},this.transform=new Fn(e,r),this.processor=this.input.pipe(this.transform)}return $e(t,[{key:"fromInput",value:function(t){if(this._input)throw new Error("Async parser already has an input.")
605return this._input=t,this.input=this._input.pipe(this.processor),this}},{key:"throughTransform",value:function(t){if(this._output)throw new Error("Can't add transforms once an output has been added.")
606return this.processor=this.processor.pipe(t),this}},{key:"toOutput",value:function(t){if(this._output)throw new Error("Async parser already has an output.")
607return this._output=t,this.processor=this.processor.pipe(t),this}},{key:"promise",value:function(){var t=this
608return new Promise((function(e,r){var n=[]
609t.processor.on("data",(function(t){return n.push(t.toString())})).on("finish",(function(){return e(Jn(n,""))})).on("error",(function(t){return r(t)}))}
609))}}]),t}(),Hn=ze.Readable,Gn=Hr,Vn=$n,Qn=Fn,Kn=function(t,e){return new Hr(e).parse(t)},Zn=function(t,e,r){try{t instanceof Hn||(r=Object.assign({},r,{objectMode:!0}))
610var n=new $n(e,r),i=n.promise()
611return Array.isArray(t)?(t.forEach((function(t){return n.input.push(t)})),n.input.push(null)):t instanceof Hn?n.fromInput(t):(n.input.push(t),n.input.push(null)),i}catch(t){return Promise.reject(t)}},Xn={Parser:Gn,AsyncParser:Vn,Transform:Qn,parse:Kn,parseAsync:Zn}
612t.default=Xn,t.Parser=Gn,t.AsyncParser=Vn,t.Transform=Qn,t.parse=Kn,t.parseAsync=Zn,Object.defineProperty(t,"__esModule",{value:!0})}))

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.