@stinkycomputing/cachearoo 1.0.24 → 1.0.25
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/dist/cachearoo-node.d.ts +2 -2
- package/dist/cachearoo-node.js +4 -1
- package/dist/cachearoo.d.ts +2 -2
- package/dist/cachearoo.es.js +785 -757
- package/dist/cachearoo.min.js +5 -5
- package/dist/libs/cro.d.ts +4 -0
- package/dist/libs/cro.js +28 -1
- package/dist/libs/cro.msg.competing-consumers.js +1 -1
- package/dist/libs/cro.msg.request-reply.js +8 -4
- package/package.json +1 -1
package/dist/cachearoo.es.js
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
1
|
var Ct = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function
|
|
3
|
-
return
|
|
2
|
+
function Ar(i) {
|
|
3
|
+
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
4
4
|
}
|
|
5
5
|
var Dt = {}, Qe = {};
|
|
6
|
-
Qe.byteLength =
|
|
7
|
-
Qe.toByteArray =
|
|
8
|
-
Qe.fromByteArray =
|
|
9
|
-
var re = [], H = [],
|
|
10
|
-
for (var Se = 0,
|
|
6
|
+
Qe.byteLength = Or;
|
|
7
|
+
Qe.toByteArray = xr;
|
|
8
|
+
Qe.fromByteArray = Rr;
|
|
9
|
+
var re = [], H = [], Sr = typeof Uint8Array < "u" ? Uint8Array : Array, Ye = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
10
|
+
for (var Se = 0, Tr = Ye.length; Se < Tr; ++Se)
|
|
11
11
|
re[Se] = Ye[Se], H[Ye.charCodeAt(Se)] = Se;
|
|
12
12
|
H["-".charCodeAt(0)] = 62;
|
|
13
13
|
H["_".charCodeAt(0)] = 63;
|
|
14
|
-
function Nt(
|
|
15
|
-
var e =
|
|
14
|
+
function Nt(i) {
|
|
15
|
+
var e = i.length;
|
|
16
16
|
if (e % 4 > 0)
|
|
17
17
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
18
|
-
var n =
|
|
18
|
+
var n = i.indexOf("=");
|
|
19
19
|
n === -1 && (n = e);
|
|
20
20
|
var a = n === e ? 0 : 4 - n % 4;
|
|
21
21
|
return [n, a];
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
var e = Nt(
|
|
23
|
+
function Or(i) {
|
|
24
|
+
var e = Nt(i), n = e[0], a = e[1];
|
|
25
25
|
return (n + a) * 3 / 4 - a;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Fr(i, e, n) {
|
|
28
28
|
return (e + n) * 3 / 4 - n;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
var e, n = Nt(
|
|
30
|
+
function xr(i) {
|
|
31
|
+
var e, n = Nt(i), a = n[0], u = n[1], c = new Sr(Fr(i, a, u)), l = 0, f = u > 0 ? a - 4 : a, m;
|
|
32
32
|
for (m = 0; m < f; m += 4)
|
|
33
|
-
e = H[
|
|
34
|
-
return u === 2 && (e = H[
|
|
33
|
+
e = H[i.charCodeAt(m)] << 18 | H[i.charCodeAt(m + 1)] << 12 | H[i.charCodeAt(m + 2)] << 6 | H[i.charCodeAt(m + 3)], c[l++] = e >> 16 & 255, c[l++] = e >> 8 & 255, c[l++] = e & 255;
|
|
34
|
+
return u === 2 && (e = H[i.charCodeAt(m)] << 2 | H[i.charCodeAt(m + 1)] >> 4, c[l++] = e & 255), u === 1 && (e = H[i.charCodeAt(m)] << 10 | H[i.charCodeAt(m + 1)] << 4 | H[i.charCodeAt(m + 2)] >> 2, c[l++] = e >> 8 & 255, c[l++] = e & 255), c;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
return re[
|
|
36
|
+
function Ir(i) {
|
|
37
|
+
return re[i >> 18 & 63] + re[i >> 12 & 63] + re[i >> 6 & 63] + re[i & 63];
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function kr(i, e, n) {
|
|
40
40
|
for (var a, u = [], c = e; c < n; c += 3)
|
|
41
|
-
a = (
|
|
41
|
+
a = (i[c] << 16 & 16711680) + (i[c + 1] << 8 & 65280) + (i[c + 2] & 255), u.push(Ir(a));
|
|
42
42
|
return u.join("");
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
for (var e, n =
|
|
46
|
-
u.push(
|
|
47
|
-
return a === 1 ? (e =
|
|
44
|
+
function Rr(i) {
|
|
45
|
+
for (var e, n = i.length, a = n % 3, u = [], c = 16383, l = 0, f = n - a; l < f; l += c)
|
|
46
|
+
u.push(kr(i, l, l + c > f ? f : l + c));
|
|
47
|
+
return a === 1 ? (e = i[n - 1], u.push(
|
|
48
48
|
re[e >> 2] + re[e << 4 & 63] + "=="
|
|
49
|
-
)) : a === 2 && (e = (
|
|
49
|
+
)) : a === 2 && (e = (i[n - 2] << 8) + i[n - 1], u.push(
|
|
50
50
|
re[e >> 10] + re[e >> 4 & 63] + re[e << 2 & 63] + "="
|
|
51
51
|
)), u.join("");
|
|
52
52
|
}
|
|
53
53
|
var vt = {};
|
|
54
54
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
55
|
-
vt.read = function(
|
|
56
|
-
var c, l, f = u * 8 - a - 1, m = (1 << f) - 1,
|
|
57
|
-
for (O +=
|
|
55
|
+
vt.read = function(i, e, n, a, u) {
|
|
56
|
+
var c, l, f = u * 8 - a - 1, m = (1 << f) - 1, b = m >> 1, w = -7, O = n ? u - 1 : 0, R = n ? -1 : 1, j = i[e + O];
|
|
57
|
+
for (O += R, c = j & (1 << -w) - 1, j >>= -w, w += f; w > 0; c = c * 256 + i[e + O], O += R, w -= 8)
|
|
58
58
|
;
|
|
59
|
-
for (l = c & (1 << -w) - 1, c >>= -w, w += a; w > 0; l = l * 256 +
|
|
59
|
+
for (l = c & (1 << -w) - 1, c >>= -w, w += a; w > 0; l = l * 256 + i[e + O], O += R, w -= 8)
|
|
60
60
|
;
|
|
61
61
|
if (c === 0)
|
|
62
|
-
c = 1 -
|
|
62
|
+
c = 1 - b;
|
|
63
63
|
else {
|
|
64
64
|
if (c === m)
|
|
65
65
|
return l ? NaN : (j ? -1 : 1) * (1 / 0);
|
|
66
|
-
l = l + Math.pow(2, a), c = c -
|
|
66
|
+
l = l + Math.pow(2, a), c = c - b;
|
|
67
67
|
}
|
|
68
68
|
return (j ? -1 : 1) * l * Math.pow(2, c - a);
|
|
69
69
|
};
|
|
70
|
-
vt.write = function(
|
|
71
|
-
var l, f, m,
|
|
72
|
-
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, l = w) : (l = Math.floor(Math.log(e) / Math.LN2), e * (m = Math.pow(2, -l)) < 1 && (l--, m *= 2), l + O >= 1 ? e +=
|
|
70
|
+
vt.write = function(i, e, n, a, u, c) {
|
|
71
|
+
var l, f, m, b = c * 8 - u - 1, w = (1 << b) - 1, O = w >> 1, R = u === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, j = a ? 0 : c - 1, D = a ? 1 : -1, G = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
72
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, l = w) : (l = Math.floor(Math.log(e) / Math.LN2), e * (m = Math.pow(2, -l)) < 1 && (l--, m *= 2), l + O >= 1 ? e += R / m : e += R * Math.pow(2, 1 - O), e * m >= 2 && (l++, m /= 2), l + O >= w ? (f = 0, l = w) : l + O >= 1 ? (f = (e * m - 1) * Math.pow(2, u), l = l + O) : (f = e * Math.pow(2, O - 1) * Math.pow(2, u), l = 0)); u >= 8; i[n + j] = f & 255, j += D, f /= 256, u -= 8)
|
|
73
73
|
;
|
|
74
|
-
for (l = l << u | f,
|
|
74
|
+
for (l = l << u | f, b += u; b > 0; i[n + j] = l & 255, j += D, l /= 256, b -= 8)
|
|
75
75
|
;
|
|
76
|
-
|
|
76
|
+
i[n + j - D] |= G * 128;
|
|
77
77
|
};
|
|
78
78
|
/*!
|
|
79
79
|
* The buffer module from node.js, for the browser.
|
|
@@ -81,11 +81,11 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
81
81
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
82
82
|
* @license MIT
|
|
83
83
|
*/
|
|
84
|
-
(function(
|
|
84
|
+
(function(i) {
|
|
85
85
|
var e = Qe, n = vt, a = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
86
|
-
|
|
86
|
+
i.Buffer = f, i.SlowBuffer = ue, i.INSPECT_MAX_BYTES = 50;
|
|
87
87
|
var u = 2147483647;
|
|
88
|
-
|
|
88
|
+
i.kMaxLength = u, f.TYPED_ARRAY_SUPPORT = c(), !f.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
89
89
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
90
90
|
);
|
|
91
91
|
function c() {
|
|
@@ -130,7 +130,7 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
130
130
|
f.poolSize = 8192;
|
|
131
131
|
function m(s, t, r) {
|
|
132
132
|
if (typeof s == "string")
|
|
133
|
-
return
|
|
133
|
+
return R(s, t);
|
|
134
134
|
if (ArrayBuffer.isView(s))
|
|
135
135
|
return D(s);
|
|
136
136
|
if (s == null)
|
|
@@ -143,9 +143,9 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
143
143
|
throw new TypeError(
|
|
144
144
|
'The "value" argument must not be of type number. Received type number'
|
|
145
145
|
);
|
|
146
|
-
var
|
|
147
|
-
if (
|
|
148
|
-
return f.from(
|
|
146
|
+
var o = s.valueOf && s.valueOf();
|
|
147
|
+
if (o != null && o !== s)
|
|
148
|
+
return f.from(o, t, r);
|
|
149
149
|
var p = me(s);
|
|
150
150
|
if (p)
|
|
151
151
|
return p;
|
|
@@ -162,35 +162,35 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
162
162
|
f.from = function(s, t, r) {
|
|
163
163
|
return m(s, t, r);
|
|
164
164
|
}, Object.setPrototypeOf(f.prototype, Uint8Array.prototype), Object.setPrototypeOf(f, Uint8Array);
|
|
165
|
-
function
|
|
165
|
+
function b(s) {
|
|
166
166
|
if (typeof s != "number")
|
|
167
167
|
throw new TypeError('"size" argument must be of type number');
|
|
168
168
|
if (s < 0)
|
|
169
169
|
throw new RangeError('The value "' + s + '" is invalid for option "size"');
|
|
170
170
|
}
|
|
171
171
|
function w(s, t, r) {
|
|
172
|
-
return
|
|
172
|
+
return b(s), s <= 0 ? l(s) : t !== void 0 ? typeof r == "string" ? l(s).fill(t, r) : l(s).fill(t) : l(s);
|
|
173
173
|
}
|
|
174
174
|
f.alloc = function(s, t, r) {
|
|
175
175
|
return w(s, t, r);
|
|
176
176
|
};
|
|
177
177
|
function O(s) {
|
|
178
|
-
return
|
|
178
|
+
return b(s), l(s < 0 ? 0 : ne(s) | 0);
|
|
179
179
|
}
|
|
180
180
|
f.allocUnsafe = function(s) {
|
|
181
181
|
return O(s);
|
|
182
182
|
}, f.allocUnsafeSlow = function(s) {
|
|
183
183
|
return O(s);
|
|
184
184
|
};
|
|
185
|
-
function
|
|
185
|
+
function R(s, t) {
|
|
186
186
|
if ((typeof t != "string" || t === "") && (t = "utf8"), !f.isEncoding(t))
|
|
187
187
|
throw new TypeError("Unknown encoding: " + t);
|
|
188
|
-
var r = we(s, t) | 0,
|
|
189
|
-
return p !== r && (
|
|
188
|
+
var r = we(s, t) | 0, o = l(r), p = o.write(s, t);
|
|
189
|
+
return p !== r && (o = o.slice(0, p)), o;
|
|
190
190
|
}
|
|
191
191
|
function j(s) {
|
|
192
|
-
for (var t = s.length < 0 ? 0 : ne(s.length) | 0, r = l(t),
|
|
193
|
-
r[
|
|
192
|
+
for (var t = s.length < 0 ? 0 : ne(s.length) | 0, r = l(t), o = 0; o < t; o += 1)
|
|
193
|
+
r[o] = s[o] & 255;
|
|
194
194
|
return r;
|
|
195
195
|
}
|
|
196
196
|
function D(s) {
|
|
@@ -205,8 +205,8 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
205
205
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
206
206
|
if (s.byteLength < t + (r || 0))
|
|
207
207
|
throw new RangeError('"length" is outside of buffer bounds');
|
|
208
|
-
var
|
|
209
|
-
return t === void 0 && r === void 0 ?
|
|
208
|
+
var o;
|
|
209
|
+
return t === void 0 && r === void 0 ? o = new Uint8Array(s) : r === void 0 ? o = new Uint8Array(s, t) : o = new Uint8Array(s, t, r), Object.setPrototypeOf(o, f.prototype), o;
|
|
210
210
|
}
|
|
211
211
|
function me(s) {
|
|
212
212
|
if (f.isBuffer(s)) {
|
|
@@ -235,12 +235,12 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
235
235
|
);
|
|
236
236
|
if (t === r)
|
|
237
237
|
return 0;
|
|
238
|
-
for (var
|
|
238
|
+
for (var o = t.length, p = r.length, d = 0, v = Math.min(o, p); d < v; ++d)
|
|
239
239
|
if (t[d] !== r[d]) {
|
|
240
|
-
|
|
240
|
+
o = t[d], p = r[d];
|
|
241
241
|
break;
|
|
242
242
|
}
|
|
243
|
-
return
|
|
243
|
+
return o < p ? -1 : p < o ? 1 : 0;
|
|
244
244
|
}, f.isEncoding = function(t) {
|
|
245
245
|
switch (String(t).toLowerCase()) {
|
|
246
246
|
case "hex":
|
|
@@ -263,13 +263,13 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
263
263
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
264
264
|
if (t.length === 0)
|
|
265
265
|
return f.alloc(0);
|
|
266
|
-
var
|
|
266
|
+
var o;
|
|
267
267
|
if (r === void 0)
|
|
268
|
-
for (r = 0,
|
|
269
|
-
r += t[
|
|
268
|
+
for (r = 0, o = 0; o < t.length; ++o)
|
|
269
|
+
r += t[o].length;
|
|
270
270
|
var p = f.allocUnsafe(r), d = 0;
|
|
271
|
-
for (
|
|
272
|
-
var v = t[
|
|
271
|
+
for (o = 0; o < t.length; ++o) {
|
|
272
|
+
var v = t[o];
|
|
273
273
|
if ($(v, Uint8Array))
|
|
274
274
|
d + v.length > p.length ? f.from(v).copy(p, d) : Uint8Array.prototype.set.call(
|
|
275
275
|
p,
|
|
@@ -293,8 +293,8 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
293
293
|
throw new TypeError(
|
|
294
294
|
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof s
|
|
295
295
|
);
|
|
296
|
-
var r = s.length,
|
|
297
|
-
if (!
|
|
296
|
+
var r = s.length, o = arguments.length > 2 && arguments[2] === !0;
|
|
297
|
+
if (!o && r === 0)
|
|
298
298
|
return 0;
|
|
299
299
|
for (var p = !1; ; )
|
|
300
300
|
switch (t) {
|
|
@@ -316,13 +316,13 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
316
316
|
return M(s).length;
|
|
317
317
|
default:
|
|
318
318
|
if (p)
|
|
319
|
-
return
|
|
319
|
+
return o ? -1 : A(s).length;
|
|
320
320
|
t = ("" + t).toLowerCase(), p = !0;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
f.byteLength = we;
|
|
324
324
|
function be(s, t, r) {
|
|
325
|
-
var
|
|
325
|
+
var o = !1;
|
|
326
326
|
if ((t === void 0 || t < 0) && (t = 0), t > this.length || ((r === void 0 || r > this.length) && (r = this.length), r <= 0) || (r >>>= 0, t >>>= 0, r <= t))
|
|
327
327
|
return "";
|
|
328
328
|
for (s || (s = "utf8"); ; )
|
|
@@ -338,22 +338,22 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
338
338
|
case "binary":
|
|
339
339
|
return pe(this, t, r);
|
|
340
340
|
case "base64":
|
|
341
|
-
return
|
|
341
|
+
return Pe(this, t, r);
|
|
342
342
|
case "ucs2":
|
|
343
343
|
case "ucs-2":
|
|
344
344
|
case "utf16le":
|
|
345
345
|
case "utf-16le":
|
|
346
346
|
return he(this, t, r);
|
|
347
347
|
default:
|
|
348
|
-
if (
|
|
348
|
+
if (o)
|
|
349
349
|
throw new TypeError("Unknown encoding: " + s);
|
|
350
|
-
s = (s + "").toLowerCase(),
|
|
350
|
+
s = (s + "").toLowerCase(), o = !0;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
f.prototype._isBuffer = !0;
|
|
354
354
|
function W(s, t, r) {
|
|
355
|
-
var
|
|
356
|
-
s[t] = s[r], s[r] =
|
|
355
|
+
var o = s[t];
|
|
356
|
+
s[t] = s[r], s[r] = o;
|
|
357
357
|
}
|
|
358
358
|
f.prototype.swap16 = function() {
|
|
359
359
|
var t = this.length;
|
|
@@ -384,34 +384,34 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
384
384
|
throw new TypeError("Argument must be a Buffer");
|
|
385
385
|
return this === t ? !0 : f.compare(this, t) === 0;
|
|
386
386
|
}, f.prototype.inspect = function() {
|
|
387
|
-
var t = "", r =
|
|
387
|
+
var t = "", r = i.INSPECT_MAX_BYTES;
|
|
388
388
|
return t = this.toString("hex", 0, r).replace(/(.{2})/g, "$1 ").trim(), this.length > r && (t += " ... "), "<Buffer " + t + ">";
|
|
389
|
-
}, a && (f.prototype[a] = f.prototype.inspect), f.prototype.compare = function(t, r,
|
|
389
|
+
}, a && (f.prototype[a] = f.prototype.inspect), f.prototype.compare = function(t, r, o, p, d) {
|
|
390
390
|
if ($(t, Uint8Array) && (t = f.from(t, t.offset, t.byteLength)), !f.isBuffer(t))
|
|
391
391
|
throw new TypeError(
|
|
392
392
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof t
|
|
393
393
|
);
|
|
394
|
-
if (r === void 0 && (r = 0),
|
|
394
|
+
if (r === void 0 && (r = 0), o === void 0 && (o = t ? t.length : 0), p === void 0 && (p = 0), d === void 0 && (d = this.length), r < 0 || o > t.length || p < 0 || d > this.length)
|
|
395
395
|
throw new RangeError("out of range index");
|
|
396
|
-
if (p >= d && r >=
|
|
396
|
+
if (p >= d && r >= o)
|
|
397
397
|
return 0;
|
|
398
398
|
if (p >= d)
|
|
399
399
|
return -1;
|
|
400
|
-
if (r >=
|
|
400
|
+
if (r >= o)
|
|
401
401
|
return 1;
|
|
402
|
-
if (r >>>= 0,
|
|
402
|
+
if (r >>>= 0, o >>>= 0, p >>>= 0, d >>>= 0, this === t)
|
|
403
403
|
return 0;
|
|
404
|
-
for (var v = d - p, x =
|
|
404
|
+
for (var v = d - p, x = o - r, B = Math.min(v, x), _ = this.slice(p, d), q = t.slice(r, o), L = 0; L < B; ++L)
|
|
405
405
|
if (_[L] !== q[L]) {
|
|
406
406
|
v = _[L], x = q[L];
|
|
407
407
|
break;
|
|
408
408
|
}
|
|
409
409
|
return v < x ? -1 : x < v ? 1 : 0;
|
|
410
410
|
};
|
|
411
|
-
function Ee(s, t, r,
|
|
411
|
+
function Ee(s, t, r, o, p) {
|
|
412
412
|
if (s.length === 0)
|
|
413
413
|
return -1;
|
|
414
|
-
if (typeof r == "string" ? (
|
|
414
|
+
if (typeof r == "string" ? (o = r, r = 0) : r > 2147483647 ? r = 2147483647 : r < -2147483648 && (r = -2147483648), r = +r, Y(r) && (r = p ? 0 : s.length - 1), r < 0 && (r = s.length + r), r >= s.length) {
|
|
415
415
|
if (p)
|
|
416
416
|
return -1;
|
|
417
417
|
r = s.length - 1;
|
|
@@ -420,15 +420,15 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
420
420
|
r = 0;
|
|
421
421
|
else
|
|
422
422
|
return -1;
|
|
423
|
-
if (typeof t == "string" && (t = f.from(t,
|
|
424
|
-
return t.length === 0 ? -1 : J(s, t, r,
|
|
423
|
+
if (typeof t == "string" && (t = f.from(t, o)), f.isBuffer(t))
|
|
424
|
+
return t.length === 0 ? -1 : J(s, t, r, o, p);
|
|
425
425
|
if (typeof t == "number")
|
|
426
|
-
return t = t & 255, typeof Uint8Array.prototype.indexOf == "function" ? p ? Uint8Array.prototype.indexOf.call(s, t, r) : Uint8Array.prototype.lastIndexOf.call(s, t, r) : J(s, [t], r,
|
|
426
|
+
return t = t & 255, typeof Uint8Array.prototype.indexOf == "function" ? p ? Uint8Array.prototype.indexOf.call(s, t, r) : Uint8Array.prototype.lastIndexOf.call(s, t, r) : J(s, [t], r, o, p);
|
|
427
427
|
throw new TypeError("val must be string, number or Buffer");
|
|
428
428
|
}
|
|
429
|
-
function J(s, t, r,
|
|
429
|
+
function J(s, t, r, o, p) {
|
|
430
430
|
var d = 1, v = s.length, x = t.length;
|
|
431
|
-
if (
|
|
431
|
+
if (o !== void 0 && (o = String(o).toLowerCase(), o === "ucs2" || o === "ucs-2" || o === "utf16le" || o === "utf-16le")) {
|
|
432
432
|
if (s.length < 2 || t.length < 2)
|
|
433
433
|
return -1;
|
|
434
434
|
d = 2, v /= 2, x /= 2, r /= 2;
|
|
@@ -457,20 +457,20 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
457
457
|
}
|
|
458
458
|
return -1;
|
|
459
459
|
}
|
|
460
|
-
f.prototype.includes = function(t, r,
|
|
461
|
-
return this.indexOf(t, r,
|
|
462
|
-
}, f.prototype.indexOf = function(t, r,
|
|
463
|
-
return Ee(this, t, r,
|
|
464
|
-
}, f.prototype.lastIndexOf = function(t, r,
|
|
465
|
-
return Ee(this, t, r,
|
|
460
|
+
f.prototype.includes = function(t, r, o) {
|
|
461
|
+
return this.indexOf(t, r, o) !== -1;
|
|
462
|
+
}, f.prototype.indexOf = function(t, r, o) {
|
|
463
|
+
return Ee(this, t, r, o, !0);
|
|
464
|
+
}, f.prototype.lastIndexOf = function(t, r, o) {
|
|
465
|
+
return Ee(this, t, r, o, !1);
|
|
466
466
|
};
|
|
467
|
-
function ie(s, t, r,
|
|
467
|
+
function ie(s, t, r, o) {
|
|
468
468
|
r = Number(r) || 0;
|
|
469
469
|
var p = s.length - r;
|
|
470
|
-
|
|
470
|
+
o ? (o = Number(o), o > p && (o = p)) : o = p;
|
|
471
471
|
var d = t.length;
|
|
472
|
-
|
|
473
|
-
for (var v = 0; v <
|
|
472
|
+
o > d / 2 && (o = d / 2);
|
|
473
|
+
for (var v = 0; v < o; ++v) {
|
|
474
474
|
var x = parseInt(t.substr(v * 2, 2), 16);
|
|
475
475
|
if (Y(x))
|
|
476
476
|
return v;
|
|
@@ -478,51 +478,51 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
478
478
|
}
|
|
479
479
|
return v;
|
|
480
480
|
}
|
|
481
|
-
function X(s, t, r,
|
|
482
|
-
return z(A(t, s.length - r), s, r,
|
|
481
|
+
function X(s, t, r, o) {
|
|
482
|
+
return z(A(t, s.length - r), s, r, o);
|
|
483
483
|
}
|
|
484
|
-
function fe(s, t, r,
|
|
485
|
-
return z(T(t), s, r,
|
|
484
|
+
function fe(s, t, r, o) {
|
|
485
|
+
return z(T(t), s, r, o);
|
|
486
486
|
}
|
|
487
|
-
function oe(s, t, r,
|
|
488
|
-
return z(M(t), s, r,
|
|
487
|
+
function oe(s, t, r, o) {
|
|
488
|
+
return z(M(t), s, r, o);
|
|
489
489
|
}
|
|
490
|
-
function K(s, t, r,
|
|
491
|
-
return z(k(t, s.length - r), s, r,
|
|
490
|
+
function K(s, t, r, o) {
|
|
491
|
+
return z(k(t, s.length - r), s, r, o);
|
|
492
492
|
}
|
|
493
|
-
f.prototype.write = function(t, r,
|
|
493
|
+
f.prototype.write = function(t, r, o, p) {
|
|
494
494
|
if (r === void 0)
|
|
495
|
-
p = "utf8",
|
|
496
|
-
else if (
|
|
497
|
-
p = r,
|
|
495
|
+
p = "utf8", o = this.length, r = 0;
|
|
496
|
+
else if (o === void 0 && typeof r == "string")
|
|
497
|
+
p = r, o = this.length, r = 0;
|
|
498
498
|
else if (isFinite(r))
|
|
499
|
-
r = r >>> 0, isFinite(
|
|
499
|
+
r = r >>> 0, isFinite(o) ? (o = o >>> 0, p === void 0 && (p = "utf8")) : (p = o, o = void 0);
|
|
500
500
|
else
|
|
501
501
|
throw new Error(
|
|
502
502
|
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
503
503
|
);
|
|
504
504
|
var d = this.length - r;
|
|
505
|
-
if ((
|
|
505
|
+
if ((o === void 0 || o > d) && (o = d), t.length > 0 && (o < 0 || r < 0) || r > this.length)
|
|
506
506
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
507
507
|
p || (p = "utf8");
|
|
508
508
|
for (var v = !1; ; )
|
|
509
509
|
switch (p) {
|
|
510
510
|
case "hex":
|
|
511
|
-
return ie(this, t, r,
|
|
511
|
+
return ie(this, t, r, o);
|
|
512
512
|
case "utf8":
|
|
513
513
|
case "utf-8":
|
|
514
|
-
return X(this, t, r,
|
|
514
|
+
return X(this, t, r, o);
|
|
515
515
|
case "ascii":
|
|
516
516
|
case "latin1":
|
|
517
517
|
case "binary":
|
|
518
|
-
return fe(this, t, r,
|
|
518
|
+
return fe(this, t, r, o);
|
|
519
519
|
case "base64":
|
|
520
|
-
return oe(this, t, r,
|
|
520
|
+
return oe(this, t, r, o);
|
|
521
521
|
case "ucs2":
|
|
522
522
|
case "ucs-2":
|
|
523
523
|
case "utf16le":
|
|
524
524
|
case "utf-16le":
|
|
525
|
-
return K(this, t, r,
|
|
525
|
+
return K(this, t, r, o);
|
|
526
526
|
default:
|
|
527
527
|
if (v)
|
|
528
528
|
throw new TypeError("Unknown encoding: " + p);
|
|
@@ -534,12 +534,12 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
534
534
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
535
535
|
};
|
|
536
536
|
};
|
|
537
|
-
function
|
|
537
|
+
function Pe(s, t, r) {
|
|
538
538
|
return t === 0 && r === s.length ? e.fromByteArray(s) : e.fromByteArray(s.slice(t, r));
|
|
539
539
|
}
|
|
540
540
|
function Q(s, t, r) {
|
|
541
541
|
r = Math.min(s.length, r);
|
|
542
|
-
for (var
|
|
542
|
+
for (var o = [], p = t; p < r; ) {
|
|
543
543
|
var d = s[p], v = null, x = d > 239 ? 4 : d > 223 ? 3 : d > 191 ? 2 : 1;
|
|
544
544
|
if (p + x <= r) {
|
|
545
545
|
var B, _, q, L;
|
|
@@ -557,51 +557,51 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
557
557
|
B = s[p + 1], _ = s[p + 2], q = s[p + 3], (B & 192) === 128 && (_ & 192) === 128 && (q & 192) === 128 && (L = (d & 15) << 18 | (B & 63) << 12 | (_ & 63) << 6 | q & 63, L > 65535 && L < 1114112 && (v = L));
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
v === null ? (v = 65533, x = 1) : v > 65535 && (v -= 65536,
|
|
560
|
+
v === null ? (v = 65533, x = 1) : v > 65535 && (v -= 65536, o.push(v >>> 10 & 1023 | 55296), v = 56320 | v & 1023), o.push(v), p += x;
|
|
561
561
|
}
|
|
562
|
-
return le(
|
|
562
|
+
return le(o);
|
|
563
563
|
}
|
|
564
564
|
var ce = 4096;
|
|
565
565
|
function le(s) {
|
|
566
566
|
var t = s.length;
|
|
567
567
|
if (t <= ce)
|
|
568
568
|
return String.fromCharCode.apply(String, s);
|
|
569
|
-
for (var r = "",
|
|
569
|
+
for (var r = "", o = 0; o < t; )
|
|
570
570
|
r += String.fromCharCode.apply(
|
|
571
571
|
String,
|
|
572
|
-
s.slice(
|
|
572
|
+
s.slice(o, o += ce)
|
|
573
573
|
);
|
|
574
574
|
return r;
|
|
575
575
|
}
|
|
576
576
|
function Be(s, t, r) {
|
|
577
|
-
var
|
|
577
|
+
var o = "";
|
|
578
578
|
r = Math.min(s.length, r);
|
|
579
579
|
for (var p = t; p < r; ++p)
|
|
580
|
-
|
|
581
|
-
return
|
|
580
|
+
o += String.fromCharCode(s[p] & 127);
|
|
581
|
+
return o;
|
|
582
582
|
}
|
|
583
583
|
function pe(s, t, r) {
|
|
584
|
-
var
|
|
584
|
+
var o = "";
|
|
585
585
|
r = Math.min(s.length, r);
|
|
586
586
|
for (var p = t; p < r; ++p)
|
|
587
|
-
|
|
588
|
-
return
|
|
587
|
+
o += String.fromCharCode(s[p]);
|
|
588
|
+
return o;
|
|
589
589
|
}
|
|
590
590
|
function V(s, t, r) {
|
|
591
|
-
var
|
|
592
|
-
(!t || t < 0) && (t = 0), (!r || r < 0 || r >
|
|
591
|
+
var o = s.length;
|
|
592
|
+
(!t || t < 0) && (t = 0), (!r || r < 0 || r > o) && (r = o);
|
|
593
593
|
for (var p = "", d = t; d < r; ++d)
|
|
594
594
|
p += Ae[s[d]];
|
|
595
595
|
return p;
|
|
596
596
|
}
|
|
597
597
|
function he(s, t, r) {
|
|
598
|
-
for (var
|
|
599
|
-
p += String.fromCharCode(
|
|
598
|
+
for (var o = s.slice(t, r), p = "", d = 0; d < o.length - 1; d += 2)
|
|
599
|
+
p += String.fromCharCode(o[d] + o[d + 1] * 256);
|
|
600
600
|
return p;
|
|
601
601
|
}
|
|
602
602
|
f.prototype.slice = function(t, r) {
|
|
603
|
-
var
|
|
604
|
-
t = ~~t, r = r === void 0 ?
|
|
603
|
+
var o = this.length;
|
|
604
|
+
t = ~~t, r = r === void 0 ? o : ~~r, t < 0 ? (t += o, t < 0 && (t = 0)) : t > o && (t = o), r < 0 ? (r += o, r < 0 && (r = 0)) : r > o && (r = o), r < t && (r = t);
|
|
605
605
|
var p = this.subarray(t, r);
|
|
606
606
|
return Object.setPrototypeOf(p, f.prototype), p;
|
|
607
607
|
};
|
|
@@ -611,13 +611,13 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
611
611
|
if (s + t > r)
|
|
612
612
|
throw new RangeError("Trying to access beyond buffer length");
|
|
613
613
|
}
|
|
614
|
-
f.prototype.readUintLE = f.prototype.readUIntLE = function(t, r,
|
|
615
|
-
t = t >>> 0, r = r >>> 0,
|
|
614
|
+
f.prototype.readUintLE = f.prototype.readUIntLE = function(t, r, o) {
|
|
615
|
+
t = t >>> 0, r = r >>> 0, o || U(t, r, this.length);
|
|
616
616
|
for (var p = this[t], d = 1, v = 0; ++v < r && (d *= 256); )
|
|
617
617
|
p += this[t + v] * d;
|
|
618
618
|
return p;
|
|
619
|
-
}, f.prototype.readUintBE = f.prototype.readUIntBE = function(t, r,
|
|
620
|
-
t = t >>> 0, r = r >>> 0,
|
|
619
|
+
}, f.prototype.readUintBE = f.prototype.readUIntBE = function(t, r, o) {
|
|
620
|
+
t = t >>> 0, r = r >>> 0, o || U(t, r, this.length);
|
|
621
621
|
for (var p = this[t + --r], d = 1; r > 0 && (d *= 256); )
|
|
622
622
|
p += this[t + --r] * d;
|
|
623
623
|
return p;
|
|
@@ -631,13 +631,13 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
631
631
|
return t = t >>> 0, r || U(t, 4, this.length), (this[t] | this[t + 1] << 8 | this[t + 2] << 16) + this[t + 3] * 16777216;
|
|
632
632
|
}, f.prototype.readUint32BE = f.prototype.readUInt32BE = function(t, r) {
|
|
633
633
|
return t = t >>> 0, r || U(t, 4, this.length), this[t] * 16777216 + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]);
|
|
634
|
-
}, f.prototype.readIntLE = function(t, r,
|
|
635
|
-
t = t >>> 0, r = r >>> 0,
|
|
634
|
+
}, f.prototype.readIntLE = function(t, r, o) {
|
|
635
|
+
t = t >>> 0, r = r >>> 0, o || U(t, r, this.length);
|
|
636
636
|
for (var p = this[t], d = 1, v = 0; ++v < r && (d *= 256); )
|
|
637
637
|
p += this[t + v] * d;
|
|
638
638
|
return d *= 128, p >= d && (p -= Math.pow(2, 8 * r)), p;
|
|
639
|
-
}, f.prototype.readIntBE = function(t, r,
|
|
640
|
-
t = t >>> 0, r = r >>> 0,
|
|
639
|
+
}, f.prototype.readIntBE = function(t, r, o) {
|
|
640
|
+
t = t >>> 0, r = r >>> 0, o || U(t, r, this.length);
|
|
641
641
|
for (var p = r, d = 1, v = this[t + --p]; p > 0 && (d *= 256); )
|
|
642
642
|
v += this[t + --p] * d;
|
|
643
643
|
return d *= 128, v >= d && (v -= Math.pow(2, 8 * r)), v;
|
|
@@ -645,12 +645,12 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
645
645
|
return t = t >>> 0, r || U(t, 1, this.length), this[t] & 128 ? (255 - this[t] + 1) * -1 : this[t];
|
|
646
646
|
}, f.prototype.readInt16LE = function(t, r) {
|
|
647
647
|
t = t >>> 0, r || U(t, 2, this.length);
|
|
648
|
-
var
|
|
649
|
-
return
|
|
648
|
+
var o = this[t] | this[t + 1] << 8;
|
|
649
|
+
return o & 32768 ? o | 4294901760 : o;
|
|
650
650
|
}, f.prototype.readInt16BE = function(t, r) {
|
|
651
651
|
t = t >>> 0, r || U(t, 2, this.length);
|
|
652
|
-
var
|
|
653
|
-
return
|
|
652
|
+
var o = this[t + 1] | this[t] << 8;
|
|
653
|
+
return o & 32768 ? o | 4294901760 : o;
|
|
654
654
|
}, f.prototype.readInt32LE = function(t, r) {
|
|
655
655
|
return t = t >>> 0, r || U(t, 4, this.length), this[t] | this[t + 1] << 8 | this[t + 2] << 16 | this[t + 3] << 24;
|
|
656
656
|
}, f.prototype.readInt32BE = function(t, r) {
|
|
@@ -664,113 +664,113 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
664
664
|
}, f.prototype.readDoubleBE = function(t, r) {
|
|
665
665
|
return t = t >>> 0, r || U(t, 8, this.length), n.read(this, t, !1, 52, 8);
|
|
666
666
|
};
|
|
667
|
-
function h(s, t, r,
|
|
667
|
+
function h(s, t, r, o, p, d) {
|
|
668
668
|
if (!f.isBuffer(s))
|
|
669
669
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
670
670
|
if (t > p || t < d)
|
|
671
671
|
throw new RangeError('"value" argument is out of bounds');
|
|
672
|
-
if (r +
|
|
672
|
+
if (r + o > s.length)
|
|
673
673
|
throw new RangeError("Index out of range");
|
|
674
674
|
}
|
|
675
|
-
f.prototype.writeUintLE = f.prototype.writeUIntLE = function(t, r,
|
|
676
|
-
if (t = +t, r = r >>> 0,
|
|
677
|
-
var d = Math.pow(2, 8 *
|
|
678
|
-
h(this, t, r,
|
|
675
|
+
f.prototype.writeUintLE = f.prototype.writeUIntLE = function(t, r, o, p) {
|
|
676
|
+
if (t = +t, r = r >>> 0, o = o >>> 0, !p) {
|
|
677
|
+
var d = Math.pow(2, 8 * o) - 1;
|
|
678
|
+
h(this, t, r, o, d, 0);
|
|
679
679
|
}
|
|
680
680
|
var v = 1, x = 0;
|
|
681
|
-
for (this[r] = t & 255; ++x <
|
|
681
|
+
for (this[r] = t & 255; ++x < o && (v *= 256); )
|
|
682
682
|
this[r + x] = t / v & 255;
|
|
683
|
-
return r +
|
|
684
|
-
}, f.prototype.writeUintBE = f.prototype.writeUIntBE = function(t, r,
|
|
685
|
-
if (t = +t, r = r >>> 0,
|
|
686
|
-
var d = Math.pow(2, 8 *
|
|
687
|
-
h(this, t, r,
|
|
683
|
+
return r + o;
|
|
684
|
+
}, f.prototype.writeUintBE = f.prototype.writeUIntBE = function(t, r, o, p) {
|
|
685
|
+
if (t = +t, r = r >>> 0, o = o >>> 0, !p) {
|
|
686
|
+
var d = Math.pow(2, 8 * o) - 1;
|
|
687
|
+
h(this, t, r, o, d, 0);
|
|
688
688
|
}
|
|
689
|
-
var v =
|
|
689
|
+
var v = o - 1, x = 1;
|
|
690
690
|
for (this[r + v] = t & 255; --v >= 0 && (x *= 256); )
|
|
691
691
|
this[r + v] = t / x & 255;
|
|
692
|
-
return r +
|
|
693
|
-
}, f.prototype.writeUint8 = f.prototype.writeUInt8 = function(t, r,
|
|
694
|
-
return t = +t, r = r >>> 0,
|
|
695
|
-
}, f.prototype.writeUint16LE = f.prototype.writeUInt16LE = function(t, r,
|
|
696
|
-
return t = +t, r = r >>> 0,
|
|
697
|
-
}, f.prototype.writeUint16BE = f.prototype.writeUInt16BE = function(t, r,
|
|
698
|
-
return t = +t, r = r >>> 0,
|
|
699
|
-
}, f.prototype.writeUint32LE = f.prototype.writeUInt32LE = function(t, r,
|
|
700
|
-
return t = +t, r = r >>> 0,
|
|
701
|
-
}, f.prototype.writeUint32BE = f.prototype.writeUInt32BE = function(t, r,
|
|
702
|
-
return t = +t, r = r >>> 0,
|
|
703
|
-
}, f.prototype.writeIntLE = function(t, r,
|
|
692
|
+
return r + o;
|
|
693
|
+
}, f.prototype.writeUint8 = f.prototype.writeUInt8 = function(t, r, o) {
|
|
694
|
+
return t = +t, r = r >>> 0, o || h(this, t, r, 1, 255, 0), this[r] = t & 255, r + 1;
|
|
695
|
+
}, f.prototype.writeUint16LE = f.prototype.writeUInt16LE = function(t, r, o) {
|
|
696
|
+
return t = +t, r = r >>> 0, o || h(this, t, r, 2, 65535, 0), this[r] = t & 255, this[r + 1] = t >>> 8, r + 2;
|
|
697
|
+
}, f.prototype.writeUint16BE = f.prototype.writeUInt16BE = function(t, r, o) {
|
|
698
|
+
return t = +t, r = r >>> 0, o || h(this, t, r, 2, 65535, 0), this[r] = t >>> 8, this[r + 1] = t & 255, r + 2;
|
|
699
|
+
}, f.prototype.writeUint32LE = f.prototype.writeUInt32LE = function(t, r, o) {
|
|
700
|
+
return t = +t, r = r >>> 0, o || h(this, t, r, 4, 4294967295, 0), this[r + 3] = t >>> 24, this[r + 2] = t >>> 16, this[r + 1] = t >>> 8, this[r] = t & 255, r + 4;
|
|
701
|
+
}, f.prototype.writeUint32BE = f.prototype.writeUInt32BE = function(t, r, o) {
|
|
702
|
+
return t = +t, r = r >>> 0, o || h(this, t, r, 4, 4294967295, 0), this[r] = t >>> 24, this[r + 1] = t >>> 16, this[r + 2] = t >>> 8, this[r + 3] = t & 255, r + 4;
|
|
703
|
+
}, f.prototype.writeIntLE = function(t, r, o, p) {
|
|
704
704
|
if (t = +t, r = r >>> 0, !p) {
|
|
705
|
-
var d = Math.pow(2, 8 *
|
|
706
|
-
h(this, t, r,
|
|
705
|
+
var d = Math.pow(2, 8 * o - 1);
|
|
706
|
+
h(this, t, r, o, d - 1, -d);
|
|
707
707
|
}
|
|
708
708
|
var v = 0, x = 1, B = 0;
|
|
709
|
-
for (this[r] = t & 255; ++v <
|
|
709
|
+
for (this[r] = t & 255; ++v < o && (x *= 256); )
|
|
710
710
|
t < 0 && B === 0 && this[r + v - 1] !== 0 && (B = 1), this[r + v] = (t / x >> 0) - B & 255;
|
|
711
|
-
return r +
|
|
712
|
-
}, f.prototype.writeIntBE = function(t, r,
|
|
711
|
+
return r + o;
|
|
712
|
+
}, f.prototype.writeIntBE = function(t, r, o, p) {
|
|
713
713
|
if (t = +t, r = r >>> 0, !p) {
|
|
714
|
-
var d = Math.pow(2, 8 *
|
|
715
|
-
h(this, t, r,
|
|
714
|
+
var d = Math.pow(2, 8 * o - 1);
|
|
715
|
+
h(this, t, r, o, d - 1, -d);
|
|
716
716
|
}
|
|
717
|
-
var v =
|
|
717
|
+
var v = o - 1, x = 1, B = 0;
|
|
718
718
|
for (this[r + v] = t & 255; --v >= 0 && (x *= 256); )
|
|
719
719
|
t < 0 && B === 0 && this[r + v + 1] !== 0 && (B = 1), this[r + v] = (t / x >> 0) - B & 255;
|
|
720
|
-
return r +
|
|
721
|
-
}, f.prototype.writeInt8 = function(t, r,
|
|
722
|
-
return t = +t, r = r >>> 0,
|
|
723
|
-
}, f.prototype.writeInt16LE = function(t, r,
|
|
724
|
-
return t = +t, r = r >>> 0,
|
|
725
|
-
}, f.prototype.writeInt16BE = function(t, r,
|
|
726
|
-
return t = +t, r = r >>> 0,
|
|
727
|
-
}, f.prototype.writeInt32LE = function(t, r,
|
|
728
|
-
return t = +t, r = r >>> 0,
|
|
729
|
-
}, f.prototype.writeInt32BE = function(t, r,
|
|
730
|
-
return t = +t, r = r >>> 0,
|
|
720
|
+
return r + o;
|
|
721
|
+
}, f.prototype.writeInt8 = function(t, r, o) {
|
|
722
|
+
return t = +t, r = r >>> 0, o || h(this, t, r, 1, 127, -128), t < 0 && (t = 255 + t + 1), this[r] = t & 255, r + 1;
|
|
723
|
+
}, f.prototype.writeInt16LE = function(t, r, o) {
|
|
724
|
+
return t = +t, r = r >>> 0, o || h(this, t, r, 2, 32767, -32768), this[r] = t & 255, this[r + 1] = t >>> 8, r + 2;
|
|
725
|
+
}, f.prototype.writeInt16BE = function(t, r, o) {
|
|
726
|
+
return t = +t, r = r >>> 0, o || h(this, t, r, 2, 32767, -32768), this[r] = t >>> 8, this[r + 1] = t & 255, r + 2;
|
|
727
|
+
}, f.prototype.writeInt32LE = function(t, r, o) {
|
|
728
|
+
return t = +t, r = r >>> 0, o || h(this, t, r, 4, 2147483647, -2147483648), this[r] = t & 255, this[r + 1] = t >>> 8, this[r + 2] = t >>> 16, this[r + 3] = t >>> 24, r + 4;
|
|
729
|
+
}, f.prototype.writeInt32BE = function(t, r, o) {
|
|
730
|
+
return t = +t, r = r >>> 0, o || h(this, t, r, 4, 2147483647, -2147483648), t < 0 && (t = 4294967295 + t + 1), this[r] = t >>> 24, this[r + 1] = t >>> 16, this[r + 2] = t >>> 8, this[r + 3] = t & 255, r + 4;
|
|
731
731
|
};
|
|
732
|
-
function y(s, t, r,
|
|
733
|
-
if (r +
|
|
732
|
+
function y(s, t, r, o, p, d) {
|
|
733
|
+
if (r + o > s.length)
|
|
734
734
|
throw new RangeError("Index out of range");
|
|
735
735
|
if (r < 0)
|
|
736
736
|
throw new RangeError("Index out of range");
|
|
737
737
|
}
|
|
738
|
-
function g(s, t, r,
|
|
739
|
-
return t = +t, r = r >>> 0, p || y(s, t, r, 4), n.write(s, t, r,
|
|
738
|
+
function g(s, t, r, o, p) {
|
|
739
|
+
return t = +t, r = r >>> 0, p || y(s, t, r, 4), n.write(s, t, r, o, 23, 4), r + 4;
|
|
740
740
|
}
|
|
741
|
-
f.prototype.writeFloatLE = function(t, r,
|
|
742
|
-
return g(this, t, r, !0,
|
|
743
|
-
}, f.prototype.writeFloatBE = function(t, r,
|
|
744
|
-
return g(this, t, r, !1,
|
|
741
|
+
f.prototype.writeFloatLE = function(t, r, o) {
|
|
742
|
+
return g(this, t, r, !0, o);
|
|
743
|
+
}, f.prototype.writeFloatBE = function(t, r, o) {
|
|
744
|
+
return g(this, t, r, !1, o);
|
|
745
745
|
};
|
|
746
|
-
function
|
|
747
|
-
return t = +t, r = r >>> 0, p || y(s, t, r, 8), n.write(s, t, r,
|
|
748
|
-
}
|
|
749
|
-
f.prototype.writeDoubleLE = function(t, r,
|
|
750
|
-
return
|
|
751
|
-
}, f.prototype.writeDoubleBE = function(t, r,
|
|
752
|
-
return
|
|
753
|
-
}, f.prototype.copy = function(t, r,
|
|
746
|
+
function E(s, t, r, o, p) {
|
|
747
|
+
return t = +t, r = r >>> 0, p || y(s, t, r, 8), n.write(s, t, r, o, 52, 8), r + 8;
|
|
748
|
+
}
|
|
749
|
+
f.prototype.writeDoubleLE = function(t, r, o) {
|
|
750
|
+
return E(this, t, r, !0, o);
|
|
751
|
+
}, f.prototype.writeDoubleBE = function(t, r, o) {
|
|
752
|
+
return E(this, t, r, !1, o);
|
|
753
|
+
}, f.prototype.copy = function(t, r, o, p) {
|
|
754
754
|
if (!f.isBuffer(t))
|
|
755
755
|
throw new TypeError("argument should be a Buffer");
|
|
756
|
-
if (
|
|
756
|
+
if (o || (o = 0), !p && p !== 0 && (p = this.length), r >= t.length && (r = t.length), r || (r = 0), p > 0 && p < o && (p = o), p === o || t.length === 0 || this.length === 0)
|
|
757
757
|
return 0;
|
|
758
758
|
if (r < 0)
|
|
759
759
|
throw new RangeError("targetStart out of bounds");
|
|
760
|
-
if (
|
|
760
|
+
if (o < 0 || o >= this.length)
|
|
761
761
|
throw new RangeError("Index out of range");
|
|
762
762
|
if (p < 0)
|
|
763
763
|
throw new RangeError("sourceEnd out of bounds");
|
|
764
|
-
p > this.length && (p = this.length), t.length - r < p -
|
|
765
|
-
var d = p -
|
|
766
|
-
return this === t && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(r,
|
|
764
|
+
p > this.length && (p = this.length), t.length - r < p - o && (p = t.length - r + o);
|
|
765
|
+
var d = p - o;
|
|
766
|
+
return this === t && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(r, o, p) : Uint8Array.prototype.set.call(
|
|
767
767
|
t,
|
|
768
|
-
this.subarray(
|
|
768
|
+
this.subarray(o, p),
|
|
769
769
|
r
|
|
770
770
|
), d;
|
|
771
|
-
}, f.prototype.fill = function(t, r,
|
|
771
|
+
}, f.prototype.fill = function(t, r, o, p) {
|
|
772
772
|
if (typeof t == "string") {
|
|
773
|
-
if (typeof r == "string" ? (p = r, r = 0,
|
|
773
|
+
if (typeof r == "string" ? (p = r, r = 0, o = this.length) : typeof o == "string" && (p = o, o = this.length), p !== void 0 && typeof p != "string")
|
|
774
774
|
throw new TypeError("encoding must be a string");
|
|
775
775
|
if (typeof p == "string" && !f.isEncoding(p))
|
|
776
776
|
throw new TypeError("Unknown encoding: " + p);
|
|
@@ -780,20 +780,20 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
780
780
|
}
|
|
781
781
|
} else
|
|
782
782
|
typeof t == "number" ? t = t & 255 : typeof t == "boolean" && (t = Number(t));
|
|
783
|
-
if (r < 0 || this.length < r || this.length <
|
|
783
|
+
if (r < 0 || this.length < r || this.length < o)
|
|
784
784
|
throw new RangeError("Out of range index");
|
|
785
|
-
if (
|
|
785
|
+
if (o <= r)
|
|
786
786
|
return this;
|
|
787
|
-
r = r >>> 0,
|
|
787
|
+
r = r >>> 0, o = o === void 0 ? this.length : o >>> 0, t || (t = 0);
|
|
788
788
|
var v;
|
|
789
789
|
if (typeof t == "number")
|
|
790
|
-
for (v = r; v <
|
|
790
|
+
for (v = r; v < o; ++v)
|
|
791
791
|
this[v] = t;
|
|
792
792
|
else {
|
|
793
793
|
var x = f.isBuffer(t) ? t : f.from(t, p), B = x.length;
|
|
794
794
|
if (B === 0)
|
|
795
795
|
throw new TypeError('The value "' + t + '" is invalid for argument "value"');
|
|
796
|
-
for (v = 0; v <
|
|
796
|
+
for (v = 0; v < o - r; ++v)
|
|
797
797
|
this[v + r] = x[v % B];
|
|
798
798
|
}
|
|
799
799
|
return this;
|
|
@@ -808,13 +808,13 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
808
808
|
}
|
|
809
809
|
function A(s, t) {
|
|
810
810
|
t = t || 1 / 0;
|
|
811
|
-
for (var r,
|
|
811
|
+
for (var r, o = s.length, p = null, d = [], v = 0; v < o; ++v) {
|
|
812
812
|
if (r = s.charCodeAt(v), r > 55295 && r < 57344) {
|
|
813
813
|
if (!p) {
|
|
814
814
|
if (r > 56319) {
|
|
815
815
|
(t -= 3) > -1 && d.push(239, 191, 189);
|
|
816
816
|
continue;
|
|
817
|
-
} else if (v + 1 ===
|
|
817
|
+
} else if (v + 1 === o) {
|
|
818
818
|
(t -= 3) > -1 && d.push(239, 191, 189);
|
|
819
819
|
continue;
|
|
820
820
|
}
|
|
@@ -867,15 +867,15 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
867
867
|
return t;
|
|
868
868
|
}
|
|
869
869
|
function k(s, t) {
|
|
870
|
-
for (var r,
|
|
871
|
-
r = s.charCodeAt(v),
|
|
870
|
+
for (var r, o, p, d = [], v = 0; v < s.length && !((t -= 2) < 0); ++v)
|
|
871
|
+
r = s.charCodeAt(v), o = r >> 8, p = r % 256, d.push(p), d.push(o);
|
|
872
872
|
return d;
|
|
873
873
|
}
|
|
874
874
|
function M(s) {
|
|
875
875
|
return e.toByteArray(I(s));
|
|
876
876
|
}
|
|
877
|
-
function z(s, t, r,
|
|
878
|
-
for (var p = 0; p <
|
|
877
|
+
function z(s, t, r, o) {
|
|
878
|
+
for (var p = 0; p < o && !(p + r >= t.length || p >= s.length); ++p)
|
|
879
879
|
t[p + r] = s[p];
|
|
880
880
|
return p;
|
|
881
881
|
}
|
|
@@ -887,8 +887,8 @@ vt.write = function(o, e, n, a, u, c) {
|
|
|
887
887
|
}
|
|
888
888
|
var Ae = function() {
|
|
889
889
|
for (var s = "0123456789abcdef", t = new Array(256), r = 0; r < 16; ++r)
|
|
890
|
-
for (var
|
|
891
|
-
t[
|
|
890
|
+
for (var o = r * 16, p = 0; p < 16; ++p)
|
|
891
|
+
t[o + p] = s[r] + s[p];
|
|
892
892
|
return t;
|
|
893
893
|
}();
|
|
894
894
|
})(Dt);
|
|
@@ -911,61 +911,61 @@ function ft() {
|
|
|
911
911
|
te = ft;
|
|
912
912
|
}
|
|
913
913
|
})();
|
|
914
|
-
function qt(
|
|
914
|
+
function qt(i) {
|
|
915
915
|
if (ee === setTimeout)
|
|
916
|
-
return setTimeout(
|
|
916
|
+
return setTimeout(i, 0);
|
|
917
917
|
if ((ee === ut || !ee) && setTimeout)
|
|
918
|
-
return ee = setTimeout, setTimeout(
|
|
918
|
+
return ee = setTimeout, setTimeout(i, 0);
|
|
919
919
|
try {
|
|
920
|
-
return ee(
|
|
920
|
+
return ee(i, 0);
|
|
921
921
|
} catch {
|
|
922
922
|
try {
|
|
923
|
-
return ee.call(null,
|
|
923
|
+
return ee.call(null, i, 0);
|
|
924
924
|
} catch {
|
|
925
|
-
return ee.call(this,
|
|
925
|
+
return ee.call(this, i, 0);
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
|
-
function Pr(
|
|
929
|
+
function Pr(i) {
|
|
930
930
|
if (te === clearTimeout)
|
|
931
|
-
return clearTimeout(
|
|
931
|
+
return clearTimeout(i);
|
|
932
932
|
if ((te === ft || !te) && clearTimeout)
|
|
933
|
-
return te = clearTimeout, clearTimeout(
|
|
933
|
+
return te = clearTimeout, clearTimeout(i);
|
|
934
934
|
try {
|
|
935
|
-
return te(
|
|
935
|
+
return te(i);
|
|
936
936
|
} catch {
|
|
937
937
|
try {
|
|
938
|
-
return te.call(null,
|
|
938
|
+
return te.call(null, i);
|
|
939
939
|
} catch {
|
|
940
|
-
return te.call(this,
|
|
940
|
+
return te.call(this, i);
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
944
|
var se = [], xe = !1, de, Ce = -1;
|
|
945
|
-
function
|
|
945
|
+
function Br() {
|
|
946
946
|
!xe || !de || (xe = !1, de.length ? se = de.concat(se) : Ce = -1, se.length && $t());
|
|
947
947
|
}
|
|
948
948
|
function $t() {
|
|
949
949
|
if (!xe) {
|
|
950
|
-
var
|
|
950
|
+
var i = qt(Br);
|
|
951
951
|
xe = !0;
|
|
952
952
|
for (var e = se.length; e; ) {
|
|
953
953
|
for (de = se, se = []; ++Ce < e; )
|
|
954
954
|
de && de[Ce].run();
|
|
955
955
|
Ce = -1, e = se.length;
|
|
956
956
|
}
|
|
957
|
-
de = null, xe = !1, Pr(
|
|
957
|
+
de = null, xe = !1, Pr(i);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
C.nextTick = function(
|
|
960
|
+
C.nextTick = function(i) {
|
|
961
961
|
var e = new Array(arguments.length - 1);
|
|
962
962
|
if (arguments.length > 1)
|
|
963
963
|
for (var n = 1; n < arguments.length; n++)
|
|
964
964
|
e[n - 1] = arguments[n];
|
|
965
|
-
se.push(new Gt(
|
|
965
|
+
se.push(new Gt(i, e)), se.length === 1 && !xe && qt($t);
|
|
966
966
|
};
|
|
967
|
-
function Gt(
|
|
968
|
-
this.fun =
|
|
967
|
+
function Gt(i, e) {
|
|
968
|
+
this.fun = i, this.array = e;
|
|
969
969
|
}
|
|
970
970
|
Gt.prototype.run = function() {
|
|
971
971
|
this.fun.apply(null, this.array);
|
|
@@ -987,39 +987,39 @@ C.removeAllListeners = ae;
|
|
|
987
987
|
C.emit = ae;
|
|
988
988
|
C.prependListener = ae;
|
|
989
989
|
C.prependOnceListener = ae;
|
|
990
|
-
C.listeners = function(
|
|
990
|
+
C.listeners = function(i) {
|
|
991
991
|
return [];
|
|
992
992
|
};
|
|
993
|
-
C.binding = function(
|
|
993
|
+
C.binding = function(i) {
|
|
994
994
|
throw new Error("process.binding is not supported");
|
|
995
995
|
};
|
|
996
996
|
C.cwd = function() {
|
|
997
997
|
return "/";
|
|
998
998
|
};
|
|
999
|
-
C.chdir = function(
|
|
999
|
+
C.chdir = function(i) {
|
|
1000
1000
|
throw new Error("process.chdir is not supported");
|
|
1001
1001
|
};
|
|
1002
1002
|
C.umask = function() {
|
|
1003
1003
|
return 0;
|
|
1004
1004
|
};
|
|
1005
|
-
var
|
|
1006
|
-
const Z = /* @__PURE__ */
|
|
1007
|
-
var
|
|
1005
|
+
var jr = Mt.exports;
|
|
1006
|
+
const Z = /* @__PURE__ */ Ar(jr);
|
|
1007
|
+
var _r = function(i) {
|
|
1008
1008
|
function e() {
|
|
1009
1009
|
var a = this || self;
|
|
1010
|
-
return delete
|
|
1010
|
+
return delete i.prototype.__magic__, a;
|
|
1011
1011
|
}
|
|
1012
1012
|
if (typeof globalThis == "object")
|
|
1013
1013
|
return globalThis;
|
|
1014
1014
|
if (this)
|
|
1015
1015
|
return e();
|
|
1016
|
-
|
|
1016
|
+
i.defineProperty(i.prototype, "__magic__", {
|
|
1017
1017
|
configurable: !0,
|
|
1018
1018
|
get: e
|
|
1019
1019
|
});
|
|
1020
1020
|
var n = __magic__;
|
|
1021
1021
|
return n;
|
|
1022
|
-
}(Object),
|
|
1022
|
+
}(Object), Ur = _r, mt = {}, Wt = {}, Jt = function() {
|
|
1023
1023
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
1024
1024
|
return !1;
|
|
1025
1025
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -1042,18 +1042,18 @@ var jr = function(o) {
|
|
|
1042
1042
|
return !1;
|
|
1043
1043
|
}
|
|
1044
1044
|
return !0;
|
|
1045
|
-
},
|
|
1046
|
-
return
|
|
1047
|
-
}, xt = typeof Symbol < "u" && Symbol,
|
|
1048
|
-
return typeof xt != "function" || typeof Symbol != "function" || typeof xt("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
1045
|
+
}, Lr = Jt, wt = function() {
|
|
1046
|
+
return Lr() && !!Symbol.toStringTag;
|
|
1047
|
+
}, xt = typeof Symbol < "u" && Symbol, Cr = Jt, Dr = function() {
|
|
1048
|
+
return typeof xt != "function" || typeof Symbol != "function" || typeof xt("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Cr();
|
|
1049
1049
|
}, It = {
|
|
1050
1050
|
foo: {}
|
|
1051
|
-
},
|
|
1052
|
-
return { __proto__: It }.foo === It.foo && !({ __proto__: null } instanceof
|
|
1053
|
-
},
|
|
1051
|
+
}, Nr = Object, Mr = function() {
|
|
1052
|
+
return { __proto__: It }.foo === It.foo && !({ __proto__: null } instanceof Nr);
|
|
1053
|
+
}, qr = "Function.prototype.bind called on incompatible ", Ze = Array.prototype.slice, $r = Object.prototype.toString, Gr = "[object Function]", Wr = function(e) {
|
|
1054
1054
|
var n = this;
|
|
1055
|
-
if (typeof n != "function" ||
|
|
1056
|
-
throw new TypeError(
|
|
1055
|
+
if (typeof n != "function" || $r.call(n) !== Gr)
|
|
1056
|
+
throw new TypeError(qr + n);
|
|
1057
1057
|
for (var a = Ze.call(arguments, 1), u, c = function() {
|
|
1058
1058
|
if (this instanceof u) {
|
|
1059
1059
|
var w = n.apply(
|
|
@@ -1069,14 +1069,14 @@ var jr = function(o) {
|
|
|
1069
1069
|
}, l = Math.max(0, n.length - a.length), f = [], m = 0; m < l; m++)
|
|
1070
1070
|
f.push("$" + m);
|
|
1071
1071
|
if (u = Function("binder", "return function (" + f.join(",") + "){ return binder.apply(this,arguments); }")(c), n.prototype) {
|
|
1072
|
-
var
|
|
1072
|
+
var b = function() {
|
|
1073
1073
|
};
|
|
1074
|
-
|
|
1074
|
+
b.prototype = n.prototype, u.prototype = new b(), b.prototype = null;
|
|
1075
1075
|
}
|
|
1076
1076
|
return u;
|
|
1077
|
-
},
|
|
1077
|
+
}, Jr = Wr, bt = Function.prototype.bind || Jr, zr = bt, Hr = zr.call(Function.call, Object.prototype.hasOwnProperty), S, Re = SyntaxError, zt = Function, Ie = TypeError, et = function(i) {
|
|
1078
1078
|
try {
|
|
1079
|
-
return zt('"use strict"; return (' +
|
|
1079
|
+
return zt('"use strict"; return (' + i + ").constructor;")();
|
|
1080
1080
|
} catch {
|
|
1081
1081
|
}
|
|
1082
1082
|
}, ge = Object.getOwnPropertyDescriptor;
|
|
@@ -1088,7 +1088,7 @@ if (ge)
|
|
|
1088
1088
|
}
|
|
1089
1089
|
var tt = function() {
|
|
1090
1090
|
throw new Ie();
|
|
1091
|
-
},
|
|
1091
|
+
}, Kr = ge ? function() {
|
|
1092
1092
|
try {
|
|
1093
1093
|
return arguments.callee, tt;
|
|
1094
1094
|
} catch {
|
|
@@ -1098,9 +1098,9 @@ var tt = function() {
|
|
|
1098
1098
|
return tt;
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
}() : tt, Te =
|
|
1102
|
-
return
|
|
1103
|
-
} : null), Oe = {},
|
|
1101
|
+
}() : tt, Te = Dr(), Qr = Mr(), N = Object.getPrototypeOf || (Qr ? function(i) {
|
|
1102
|
+
return i.__proto__;
|
|
1103
|
+
} : null), Oe = {}, Vr = typeof Uint8Array > "u" || !N ? S : N(Uint8Array), ve = {
|
|
1104
1104
|
"%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
|
|
1105
1105
|
"%Array%": Array,
|
|
1106
1106
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? S : ArrayBuffer,
|
|
@@ -1156,9 +1156,9 @@ var tt = function() {
|
|
|
1156
1156
|
"%String%": String,
|
|
1157
1157
|
"%StringIteratorPrototype%": Te && N ? N(""[Symbol.iterator]()) : S,
|
|
1158
1158
|
"%Symbol%": Te ? Symbol : S,
|
|
1159
|
-
"%SyntaxError%":
|
|
1160
|
-
"%ThrowTypeError%":
|
|
1161
|
-
"%TypedArray%":
|
|
1159
|
+
"%SyntaxError%": Re,
|
|
1160
|
+
"%ThrowTypeError%": Kr,
|
|
1161
|
+
"%TypedArray%": Vr,
|
|
1162
1162
|
"%TypeError%": Ie,
|
|
1163
1163
|
"%Uint8Array%": typeof Uint8Array > "u" ? S : Uint8Array,
|
|
1164
1164
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? S : Uint8ClampedArray,
|
|
@@ -1172,11 +1172,11 @@ var tt = function() {
|
|
|
1172
1172
|
if (N)
|
|
1173
1173
|
try {
|
|
1174
1174
|
null.error;
|
|
1175
|
-
} catch (
|
|
1176
|
-
var
|
|
1177
|
-
ve["%Error.prototype%"] =
|
|
1175
|
+
} catch (i) {
|
|
1176
|
+
var Xr = N(N(i));
|
|
1177
|
+
ve["%Error.prototype%"] = Xr;
|
|
1178
1178
|
}
|
|
1179
|
-
var
|
|
1179
|
+
var Yr = function i(e) {
|
|
1180
1180
|
var n;
|
|
1181
1181
|
if (e === "%AsyncFunction%")
|
|
1182
1182
|
n = et("async function () {}");
|
|
@@ -1185,10 +1185,10 @@ var Xr = function o(e) {
|
|
|
1185
1185
|
else if (e === "%AsyncGeneratorFunction%")
|
|
1186
1186
|
n = et("async function* () {}");
|
|
1187
1187
|
else if (e === "%AsyncGenerator%") {
|
|
1188
|
-
var a =
|
|
1188
|
+
var a = i("%AsyncGeneratorFunction%");
|
|
1189
1189
|
a && (n = a.prototype);
|
|
1190
1190
|
} else if (e === "%AsyncIteratorPrototype%") {
|
|
1191
|
-
var u =
|
|
1191
|
+
var u = i("%AsyncGenerator%");
|
|
1192
1192
|
u && N && (n = N(u.prototype));
|
|
1193
1193
|
}
|
|
1194
1194
|
return ve[e] = n, n;
|
|
@@ -1244,21 +1244,21 @@ var Xr = function o(e) {
|
|
|
1244
1244
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1245
1245
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1246
1246
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1247
|
-
}, _e = bt, Ge =
|
|
1247
|
+
}, _e = bt, Ge = Hr, Zr = _e.call(Function.call, Array.prototype.concat), en = _e.call(Function.apply, Array.prototype.splice), Rt = _e.call(Function.call, String.prototype.replace), We = _e.call(Function.call, String.prototype.slice), tn = _e.call(Function.call, RegExp.prototype.exec), rn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, nn = /\\(\\)?/g, on = function(e) {
|
|
1248
1248
|
var n = We(e, 0, 1), a = We(e, -1);
|
|
1249
1249
|
if (n === "%" && a !== "%")
|
|
1250
|
-
throw new
|
|
1250
|
+
throw new Re("invalid intrinsic syntax, expected closing `%`");
|
|
1251
1251
|
if (a === "%" && n !== "%")
|
|
1252
|
-
throw new
|
|
1252
|
+
throw new Re("invalid intrinsic syntax, expected opening `%`");
|
|
1253
1253
|
var u = [];
|
|
1254
|
-
return
|
|
1255
|
-
u[u.length] = f ?
|
|
1254
|
+
return Rt(e, rn, function(c, l, f, m) {
|
|
1255
|
+
u[u.length] = f ? Rt(m, nn, "$1") : l || c;
|
|
1256
1256
|
}), u;
|
|
1257
|
-
},
|
|
1257
|
+
}, sn = function(e, n) {
|
|
1258
1258
|
var a = e, u;
|
|
1259
1259
|
if (Ge(kt, a) && (u = kt[a], a = "%" + u[0] + "%"), Ge(ve, a)) {
|
|
1260
1260
|
var c = ve[a];
|
|
1261
|
-
if (c === Oe && (c =
|
|
1261
|
+
if (c === Oe && (c = Yr(a)), typeof c > "u" && !n)
|
|
1262
1262
|
throw new Ie("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
1263
1263
|
return {
|
|
1264
1264
|
alias: u,
|
|
@@ -1266,39 +1266,39 @@ var Xr = function o(e) {
|
|
|
1266
1266
|
value: c
|
|
1267
1267
|
};
|
|
1268
1268
|
}
|
|
1269
|
-
throw new
|
|
1269
|
+
throw new Re("intrinsic " + e + " does not exist!");
|
|
1270
1270
|
}, Et = function(e, n) {
|
|
1271
1271
|
if (typeof e != "string" || e.length === 0)
|
|
1272
1272
|
throw new Ie("intrinsic name must be a non-empty string");
|
|
1273
1273
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
1274
1274
|
throw new Ie('"allowMissing" argument must be a boolean');
|
|
1275
|
-
if (
|
|
1276
|
-
throw new
|
|
1277
|
-
var a =
|
|
1278
|
-
|
|
1275
|
+
if (tn(/^%?[^%]*%?$/, e) === null)
|
|
1276
|
+
throw new Re("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1277
|
+
var a = on(e), u = a.length > 0 ? a[0] : "", c = sn("%" + u + "%", n), l = c.name, f = c.value, m = !1, b = c.alias;
|
|
1278
|
+
b && (u = b[0], en(a, Zr([0, 1], b)));
|
|
1279
1279
|
for (var w = 1, O = !0; w < a.length; w += 1) {
|
|
1280
|
-
var
|
|
1280
|
+
var R = a[w], j = We(R, 0, 1), D = We(R, -1);
|
|
1281
1281
|
if ((j === '"' || j === "'" || j === "`" || D === '"' || D === "'" || D === "`") && j !== D)
|
|
1282
|
-
throw new
|
|
1283
|
-
if ((
|
|
1282
|
+
throw new Re("property names with quotes must have matching quotes");
|
|
1283
|
+
if ((R === "constructor" || !O) && (m = !0), u += "." + R, l = "%" + u + "%", Ge(ve, l))
|
|
1284
1284
|
f = ve[l];
|
|
1285
1285
|
else if (f != null) {
|
|
1286
|
-
if (!(
|
|
1286
|
+
if (!(R in f)) {
|
|
1287
1287
|
if (!n)
|
|
1288
1288
|
throw new Ie("base intrinsic for " + e + " exists, but the property is not available.");
|
|
1289
1289
|
return;
|
|
1290
1290
|
}
|
|
1291
1291
|
if (ge && w + 1 >= a.length) {
|
|
1292
|
-
var G = ge(f,
|
|
1293
|
-
O = !!G, O && "get" in G && !("originalValue" in G.get) ? f = G.get : f = f[
|
|
1292
|
+
var G = ge(f, R);
|
|
1293
|
+
O = !!G, O && "get" in G && !("originalValue" in G.get) ? f = G.get : f = f[R];
|
|
1294
1294
|
} else
|
|
1295
|
-
O = Ge(f,
|
|
1295
|
+
O = Ge(f, R), f = f[R];
|
|
1296
1296
|
O && !m && (ve[l] = f);
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
return f;
|
|
1300
1300
|
}, Ht = { exports: {} };
|
|
1301
|
-
(function(
|
|
1301
|
+
(function(i) {
|
|
1302
1302
|
var e = bt, n = Et, a = n("%Function.prototype.apply%"), u = n("%Function.prototype.call%"), c = n("%Reflect.apply%", !0) || e.call(u, a), l = n("%Object.getOwnPropertyDescriptor%", !0), f = n("%Object.defineProperty%", !0), m = n("%Math.max%");
|
|
1303
1303
|
if (f)
|
|
1304
1304
|
try {
|
|
@@ -1306,54 +1306,54 @@ var Xr = function o(e) {
|
|
|
1306
1306
|
} catch {
|
|
1307
1307
|
f = null;
|
|
1308
1308
|
}
|
|
1309
|
-
|
|
1310
|
-
var
|
|
1309
|
+
i.exports = function(O) {
|
|
1310
|
+
var R = c(e, u, arguments);
|
|
1311
1311
|
if (l && f) {
|
|
1312
|
-
var j = l(
|
|
1312
|
+
var j = l(R, "length");
|
|
1313
1313
|
j.configurable && f(
|
|
1314
|
-
|
|
1314
|
+
R,
|
|
1315
1315
|
"length",
|
|
1316
1316
|
{ value: 1 + m(0, O.length - (arguments.length - 1)) }
|
|
1317
1317
|
);
|
|
1318
1318
|
}
|
|
1319
|
-
return
|
|
1319
|
+
return R;
|
|
1320
1320
|
};
|
|
1321
|
-
var
|
|
1321
|
+
var b = function() {
|
|
1322
1322
|
return c(e, a, arguments);
|
|
1323
1323
|
};
|
|
1324
|
-
f ? f(
|
|
1324
|
+
f ? f(i.exports, "apply", { value: b }) : i.exports.apply = b;
|
|
1325
1325
|
})(Ht);
|
|
1326
|
-
var Kt = Ht.exports, Qt = Et, Vt = Kt,
|
|
1326
|
+
var Kt = Ht.exports, Qt = Et, Vt = Kt, an = Vt(Qt("String.prototype.indexOf")), Xt = function(e, n) {
|
|
1327
1327
|
var a = Qt(e, !!n);
|
|
1328
|
-
return typeof a == "function" &&
|
|
1329
|
-
},
|
|
1330
|
-
return
|
|
1328
|
+
return typeof a == "function" && an(e, ".prototype.") > -1 ? Vt(a) : a;
|
|
1329
|
+
}, un = wt(), fn = Xt, ct = fn("Object.prototype.toString"), Ve = function(e) {
|
|
1330
|
+
return un && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : ct(e) === "[object Arguments]";
|
|
1331
1331
|
}, Yt = function(e) {
|
|
1332
1332
|
return Ve(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && ct(e) !== "[object Array]" && ct(e.callee) === "[object Function]";
|
|
1333
|
-
},
|
|
1333
|
+
}, cn = function() {
|
|
1334
1334
|
return Ve(arguments);
|
|
1335
1335
|
}();
|
|
1336
1336
|
Ve.isLegacyArguments = Yt;
|
|
1337
|
-
var
|
|
1337
|
+
var ln = cn ? Ve : Yt, pn = Object.prototype.toString, hn = Function.prototype.toString, yn = /^\s*(?:function)?\*/, Zt = wt(), rt = Object.getPrototypeOf, dn = function() {
|
|
1338
1338
|
if (!Zt)
|
|
1339
1339
|
return !1;
|
|
1340
1340
|
try {
|
|
1341
1341
|
return Function("return function*() {}")();
|
|
1342
1342
|
} catch {
|
|
1343
1343
|
}
|
|
1344
|
-
}, nt,
|
|
1344
|
+
}, nt, gn = function(e) {
|
|
1345
1345
|
if (typeof e != "function")
|
|
1346
1346
|
return !1;
|
|
1347
|
-
if (
|
|
1347
|
+
if (yn.test(hn.call(e)))
|
|
1348
1348
|
return !0;
|
|
1349
1349
|
if (!Zt) {
|
|
1350
|
-
var n =
|
|
1350
|
+
var n = pn.call(e);
|
|
1351
1351
|
return n === "[object GeneratorFunction]";
|
|
1352
1352
|
}
|
|
1353
1353
|
if (!rt)
|
|
1354
1354
|
return !1;
|
|
1355
1355
|
if (typeof nt > "u") {
|
|
1356
|
-
var a =
|
|
1356
|
+
var a = dn();
|
|
1357
1357
|
nt = a ? rt(a) : !1;
|
|
1358
1358
|
}
|
|
1359
1359
|
return rt(e) === nt;
|
|
@@ -1367,15 +1367,15 @@ if (typeof Fe == "function" && typeof Object.defineProperty == "function")
|
|
|
1367
1367
|
}), De = {}, Fe(function() {
|
|
1368
1368
|
throw 42;
|
|
1369
1369
|
}, null, lt);
|
|
1370
|
-
} catch (
|
|
1371
|
-
|
|
1370
|
+
} catch (i) {
|
|
1371
|
+
i !== De && (Fe = null);
|
|
1372
1372
|
}
|
|
1373
1373
|
else
|
|
1374
1374
|
Fe = null;
|
|
1375
|
-
var
|
|
1375
|
+
var vn = /^\s*class\b/, pt = function(e) {
|
|
1376
1376
|
try {
|
|
1377
1377
|
var n = er.call(e);
|
|
1378
|
-
return
|
|
1378
|
+
return vn.test(n);
|
|
1379
1379
|
} catch {
|
|
1380
1380
|
return !1;
|
|
1381
1381
|
}
|
|
@@ -1385,22 +1385,22 @@ var gn = /^\s*class\b/, pt = function(e) {
|
|
|
1385
1385
|
} catch {
|
|
1386
1386
|
return !1;
|
|
1387
1387
|
}
|
|
1388
|
-
}, Ne = Object.prototype.toString,
|
|
1388
|
+
}, Ne = Object.prototype.toString, mn = "[object Object]", wn = "[object Function]", bn = "[object GeneratorFunction]", En = "[object HTMLAllCollection]", An = "[object HTML document.all class]", Sn = "[object HTMLCollection]", Tn = typeof Symbol == "function" && !!Symbol.toStringTag, On = !(0 in [,]), ht = function() {
|
|
1389
1389
|
return !1;
|
|
1390
1390
|
};
|
|
1391
1391
|
if (typeof document == "object") {
|
|
1392
|
-
var
|
|
1393
|
-
Ne.call(
|
|
1394
|
-
if ((
|
|
1392
|
+
var Fn = document.all;
|
|
1393
|
+
Ne.call(Fn) === Ne.call(document.all) && (ht = function(e) {
|
|
1394
|
+
if ((On || !e) && (typeof e > "u" || typeof e == "object"))
|
|
1395
1395
|
try {
|
|
1396
1396
|
var n = Ne.call(e);
|
|
1397
|
-
return (n ===
|
|
1397
|
+
return (n === En || n === An || n === Sn || n === mn) && e("") == null;
|
|
1398
1398
|
} catch {
|
|
1399
1399
|
}
|
|
1400
1400
|
return !1;
|
|
1401
1401
|
});
|
|
1402
1402
|
}
|
|
1403
|
-
var
|
|
1403
|
+
var xn = Fe ? function(e) {
|
|
1404
1404
|
if (ht(e))
|
|
1405
1405
|
return !0;
|
|
1406
1406
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
@@ -1417,27 +1417,27 @@ var Fn = Fe ? function(e) {
|
|
|
1417
1417
|
return !0;
|
|
1418
1418
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
1419
1419
|
return !1;
|
|
1420
|
-
if (
|
|
1420
|
+
if (Tn)
|
|
1421
1421
|
return it(e);
|
|
1422
1422
|
if (pt(e))
|
|
1423
1423
|
return !1;
|
|
1424
1424
|
var n = Ne.call(e);
|
|
1425
|
-
return n !==
|
|
1426
|
-
},
|
|
1425
|
+
return n !== wn && n !== bn && !/^\[object HTML/.test(n) ? !1 : it(e);
|
|
1426
|
+
}, In = xn, kn = Object.prototype.toString, tr = Object.prototype.hasOwnProperty, Rn = function(e, n, a) {
|
|
1427
1427
|
for (var u = 0, c = e.length; u < c; u++)
|
|
1428
1428
|
tr.call(e, u) && (a == null ? n(e[u], u, e) : n.call(a, e[u], u, e));
|
|
1429
1429
|
}, Pn = function(e, n, a) {
|
|
1430
1430
|
for (var u = 0, c = e.length; u < c; u++)
|
|
1431
1431
|
a == null ? n(e.charAt(u), u, e) : n.call(a, e.charAt(u), u, e);
|
|
1432
|
-
},
|
|
1432
|
+
}, Bn = function(e, n, a) {
|
|
1433
1433
|
for (var u in e)
|
|
1434
1434
|
tr.call(e, u) && (a == null ? n(e[u], u, e) : n.call(a, e[u], u, e));
|
|
1435
|
-
},
|
|
1436
|
-
if (!
|
|
1435
|
+
}, jn = function(e, n, a) {
|
|
1436
|
+
if (!In(n))
|
|
1437
1437
|
throw new TypeError("iterator must be a function");
|
|
1438
1438
|
var u;
|
|
1439
|
-
arguments.length >= 3 && (u = a),
|
|
1440
|
-
},
|
|
1439
|
+
arguments.length >= 3 && (u = a), kn.call(e) === "[object Array]" ? Rn(e, n, u) : typeof e == "string" ? Pn(e, n, u) : Bn(e, n, u);
|
|
1440
|
+
}, _n = jn, ot = [
|
|
1441
1441
|
"BigInt64Array",
|
|
1442
1442
|
"BigUint64Array",
|
|
1443
1443
|
"Float32Array",
|
|
@@ -1449,38 +1449,38 @@ var Fn = Fe ? function(e) {
|
|
|
1449
1449
|
"Uint32Array",
|
|
1450
1450
|
"Uint8Array",
|
|
1451
1451
|
"Uint8ClampedArray"
|
|
1452
|
-
],
|
|
1452
|
+
], Un = typeof globalThis > "u" ? Ct : globalThis, Ln = function() {
|
|
1453
1453
|
for (var e = [], n = 0; n < ot.length; n++)
|
|
1454
|
-
typeof
|
|
1454
|
+
typeof Un[ot[n]] == "function" && (e[e.length] = ot[n]);
|
|
1455
1455
|
return e;
|
|
1456
|
-
},
|
|
1456
|
+
}, Cn = Et, Me = Cn("%Object.getOwnPropertyDescriptor%", !0);
|
|
1457
1457
|
if (Me)
|
|
1458
1458
|
try {
|
|
1459
1459
|
Me([], "length");
|
|
1460
1460
|
} catch {
|
|
1461
1461
|
Me = null;
|
|
1462
1462
|
}
|
|
1463
|
-
var
|
|
1463
|
+
var Dn = Me, Je = _n, Nn = Ln, Pt = Kt, At = Xt, qe = Dn, Mn = At("Object.prototype.toString"), rr = wt(), Bt = typeof globalThis > "u" ? Ct : globalThis, yt = Nn(), St = At("String.prototype.slice"), st = Object.getPrototypeOf, qn = At("Array.prototype.indexOf", !0) || function(e, n) {
|
|
1464
1464
|
for (var a = 0; a < e.length; a += 1)
|
|
1465
1465
|
if (e[a] === n)
|
|
1466
1466
|
return a;
|
|
1467
1467
|
return -1;
|
|
1468
1468
|
}, ze = { __proto__: null };
|
|
1469
|
-
rr && qe && st ? Je(yt, function(
|
|
1470
|
-
var e = new Bt[
|
|
1469
|
+
rr && qe && st ? Je(yt, function(i) {
|
|
1470
|
+
var e = new Bt[i]();
|
|
1471
1471
|
if (Symbol.toStringTag in e) {
|
|
1472
1472
|
var n = st(e), a = qe(n, Symbol.toStringTag);
|
|
1473
1473
|
if (!a) {
|
|
1474
1474
|
var u = st(n);
|
|
1475
1475
|
a = qe(u, Symbol.toStringTag);
|
|
1476
1476
|
}
|
|
1477
|
-
ze["$" +
|
|
1477
|
+
ze["$" + i] = Pt(a.get);
|
|
1478
1478
|
}
|
|
1479
|
-
}) : Je(yt, function(
|
|
1480
|
-
var e = new Bt[
|
|
1481
|
-
ze["$" +
|
|
1479
|
+
}) : Je(yt, function(i) {
|
|
1480
|
+
var e = new Bt[i]();
|
|
1481
|
+
ze["$" + i] = Pt(e.slice);
|
|
1482
1482
|
});
|
|
1483
|
-
var
|
|
1483
|
+
var $n = function(e) {
|
|
1484
1484
|
var n = !1;
|
|
1485
1485
|
return Je(ze, function(a, u) {
|
|
1486
1486
|
if (!n)
|
|
@@ -1489,7 +1489,7 @@ var qn = function(e) {
|
|
|
1489
1489
|
} catch {
|
|
1490
1490
|
}
|
|
1491
1491
|
}), n;
|
|
1492
|
-
},
|
|
1492
|
+
}, Gn = function(e) {
|
|
1493
1493
|
var n = !1;
|
|
1494
1494
|
return Je(ze, function(a, u) {
|
|
1495
1495
|
if (!n)
|
|
@@ -1502,198 +1502,198 @@ var qn = function(e) {
|
|
|
1502
1502
|
if (!e || typeof e != "object")
|
|
1503
1503
|
return !1;
|
|
1504
1504
|
if (!rr) {
|
|
1505
|
-
var n = St(
|
|
1506
|
-
return
|
|
1505
|
+
var n = St(Mn(e), 8, -1);
|
|
1506
|
+
return qn(yt, n) > -1 ? n : n !== "Object" ? !1 : Gn(e);
|
|
1507
1507
|
}
|
|
1508
|
-
return qe ?
|
|
1509
|
-
},
|
|
1510
|
-
return !!
|
|
1508
|
+
return qe ? $n(e) : null;
|
|
1509
|
+
}, Wn = nr, Jn = function(e) {
|
|
1510
|
+
return !!Wn(e);
|
|
1511
1511
|
};
|
|
1512
|
-
(function(
|
|
1513
|
-
var e =
|
|
1514
|
-
function c(
|
|
1515
|
-
return
|
|
1512
|
+
(function(i) {
|
|
1513
|
+
var e = ln, n = gn, a = nr, u = Jn;
|
|
1514
|
+
function c(o) {
|
|
1515
|
+
return o.call.bind(o);
|
|
1516
1516
|
}
|
|
1517
|
-
var l = typeof BigInt < "u", f = typeof Symbol < "u", m = c(Object.prototype.toString),
|
|
1517
|
+
var l = typeof BigInt < "u", f = typeof Symbol < "u", m = c(Object.prototype.toString), b = c(Number.prototype.valueOf), w = c(String.prototype.valueOf), O = c(Boolean.prototype.valueOf);
|
|
1518
1518
|
if (l)
|
|
1519
|
-
var
|
|
1519
|
+
var R = c(BigInt.prototype.valueOf);
|
|
1520
1520
|
if (f)
|
|
1521
1521
|
var j = c(Symbol.prototype.valueOf);
|
|
1522
|
-
function D(
|
|
1523
|
-
if (typeof
|
|
1522
|
+
function D(o, p) {
|
|
1523
|
+
if (typeof o != "object")
|
|
1524
1524
|
return !1;
|
|
1525
1525
|
try {
|
|
1526
|
-
return p(
|
|
1526
|
+
return p(o), !0;
|
|
1527
1527
|
} catch {
|
|
1528
1528
|
return !1;
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
|
-
|
|
1532
|
-
function G(
|
|
1533
|
-
return typeof Promise < "u" &&
|
|
1531
|
+
i.isArgumentsObject = e, i.isGeneratorFunction = n, i.isTypedArray = u;
|
|
1532
|
+
function G(o) {
|
|
1533
|
+
return typeof Promise < "u" && o instanceof Promise || o !== null && typeof o == "object" && typeof o.then == "function" && typeof o.catch == "function";
|
|
1534
1534
|
}
|
|
1535
|
-
|
|
1536
|
-
function me(
|
|
1537
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(
|
|
1535
|
+
i.isPromise = G;
|
|
1536
|
+
function me(o) {
|
|
1537
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(o) : u(o) || y(o);
|
|
1538
1538
|
}
|
|
1539
|
-
|
|
1540
|
-
function ne(
|
|
1541
|
-
return a(
|
|
1539
|
+
i.isArrayBufferView = me;
|
|
1540
|
+
function ne(o) {
|
|
1541
|
+
return a(o) === "Uint8Array";
|
|
1542
1542
|
}
|
|
1543
|
-
|
|
1544
|
-
function ue(
|
|
1545
|
-
return a(
|
|
1543
|
+
i.isUint8Array = ne;
|
|
1544
|
+
function ue(o) {
|
|
1545
|
+
return a(o) === "Uint8ClampedArray";
|
|
1546
1546
|
}
|
|
1547
|
-
|
|
1548
|
-
function we(
|
|
1549
|
-
return a(
|
|
1547
|
+
i.isUint8ClampedArray = ue;
|
|
1548
|
+
function we(o) {
|
|
1549
|
+
return a(o) === "Uint16Array";
|
|
1550
1550
|
}
|
|
1551
|
-
|
|
1552
|
-
function be(
|
|
1553
|
-
return a(
|
|
1551
|
+
i.isUint16Array = we;
|
|
1552
|
+
function be(o) {
|
|
1553
|
+
return a(o) === "Uint32Array";
|
|
1554
1554
|
}
|
|
1555
|
-
|
|
1556
|
-
function W(
|
|
1557
|
-
return a(
|
|
1555
|
+
i.isUint32Array = be;
|
|
1556
|
+
function W(o) {
|
|
1557
|
+
return a(o) === "Int8Array";
|
|
1558
1558
|
}
|
|
1559
|
-
|
|
1560
|
-
function Ee(
|
|
1561
|
-
return a(
|
|
1559
|
+
i.isInt8Array = W;
|
|
1560
|
+
function Ee(o) {
|
|
1561
|
+
return a(o) === "Int16Array";
|
|
1562
1562
|
}
|
|
1563
|
-
|
|
1564
|
-
function J(
|
|
1565
|
-
return a(
|
|
1563
|
+
i.isInt16Array = Ee;
|
|
1564
|
+
function J(o) {
|
|
1565
|
+
return a(o) === "Int32Array";
|
|
1566
1566
|
}
|
|
1567
|
-
|
|
1568
|
-
function ie(
|
|
1569
|
-
return a(
|
|
1567
|
+
i.isInt32Array = J;
|
|
1568
|
+
function ie(o) {
|
|
1569
|
+
return a(o) === "Float32Array";
|
|
1570
1570
|
}
|
|
1571
|
-
|
|
1572
|
-
function X(
|
|
1573
|
-
return a(
|
|
1571
|
+
i.isFloat32Array = ie;
|
|
1572
|
+
function X(o) {
|
|
1573
|
+
return a(o) === "Float64Array";
|
|
1574
1574
|
}
|
|
1575
|
-
|
|
1576
|
-
function fe(
|
|
1577
|
-
return a(
|
|
1575
|
+
i.isFloat64Array = X;
|
|
1576
|
+
function fe(o) {
|
|
1577
|
+
return a(o) === "BigInt64Array";
|
|
1578
1578
|
}
|
|
1579
|
-
|
|
1580
|
-
function oe(
|
|
1581
|
-
return a(
|
|
1579
|
+
i.isBigInt64Array = fe;
|
|
1580
|
+
function oe(o) {
|
|
1581
|
+
return a(o) === "BigUint64Array";
|
|
1582
1582
|
}
|
|
1583
|
-
|
|
1584
|
-
function K(
|
|
1585
|
-
return m(
|
|
1583
|
+
i.isBigUint64Array = oe;
|
|
1584
|
+
function K(o) {
|
|
1585
|
+
return m(o) === "[object Map]";
|
|
1586
1586
|
}
|
|
1587
1587
|
K.working = typeof Map < "u" && K(/* @__PURE__ */ new Map());
|
|
1588
|
-
function
|
|
1589
|
-
return typeof Map > "u" ? !1 : K.working ? K(
|
|
1588
|
+
function Pe(o) {
|
|
1589
|
+
return typeof Map > "u" ? !1 : K.working ? K(o) : o instanceof Map;
|
|
1590
1590
|
}
|
|
1591
|
-
|
|
1592
|
-
function Q(
|
|
1593
|
-
return m(
|
|
1591
|
+
i.isMap = Pe;
|
|
1592
|
+
function Q(o) {
|
|
1593
|
+
return m(o) === "[object Set]";
|
|
1594
1594
|
}
|
|
1595
1595
|
Q.working = typeof Set < "u" && Q(/* @__PURE__ */ new Set());
|
|
1596
|
-
function ce(
|
|
1597
|
-
return typeof Set > "u" ? !1 : Q.working ? Q(
|
|
1596
|
+
function ce(o) {
|
|
1597
|
+
return typeof Set > "u" ? !1 : Q.working ? Q(o) : o instanceof Set;
|
|
1598
1598
|
}
|
|
1599
|
-
|
|
1600
|
-
function le(
|
|
1601
|
-
return m(
|
|
1599
|
+
i.isSet = ce;
|
|
1600
|
+
function le(o) {
|
|
1601
|
+
return m(o) === "[object WeakMap]";
|
|
1602
1602
|
}
|
|
1603
1603
|
le.working = typeof WeakMap < "u" && le(/* @__PURE__ */ new WeakMap());
|
|
1604
|
-
function Be(
|
|
1605
|
-
return typeof WeakMap > "u" ? !1 : le.working ? le(
|
|
1604
|
+
function Be(o) {
|
|
1605
|
+
return typeof WeakMap > "u" ? !1 : le.working ? le(o) : o instanceof WeakMap;
|
|
1606
1606
|
}
|
|
1607
|
-
|
|
1608
|
-
function pe(
|
|
1609
|
-
return m(
|
|
1607
|
+
i.isWeakMap = Be;
|
|
1608
|
+
function pe(o) {
|
|
1609
|
+
return m(o) === "[object WeakSet]";
|
|
1610
1610
|
}
|
|
1611
1611
|
pe.working = typeof WeakSet < "u" && pe(/* @__PURE__ */ new WeakSet());
|
|
1612
|
-
function V(
|
|
1613
|
-
return pe(
|
|
1612
|
+
function V(o) {
|
|
1613
|
+
return pe(o);
|
|
1614
1614
|
}
|
|
1615
|
-
|
|
1616
|
-
function he(
|
|
1617
|
-
return m(
|
|
1615
|
+
i.isWeakSet = V;
|
|
1616
|
+
function he(o) {
|
|
1617
|
+
return m(o) === "[object ArrayBuffer]";
|
|
1618
1618
|
}
|
|
1619
1619
|
he.working = typeof ArrayBuffer < "u" && he(new ArrayBuffer());
|
|
1620
|
-
function U(
|
|
1621
|
-
return typeof ArrayBuffer > "u" ? !1 : he.working ? he(
|
|
1620
|
+
function U(o) {
|
|
1621
|
+
return typeof ArrayBuffer > "u" ? !1 : he.working ? he(o) : o instanceof ArrayBuffer;
|
|
1622
1622
|
}
|
|
1623
|
-
|
|
1624
|
-
function h(
|
|
1625
|
-
return m(
|
|
1623
|
+
i.isArrayBuffer = U;
|
|
1624
|
+
function h(o) {
|
|
1625
|
+
return m(o) === "[object DataView]";
|
|
1626
1626
|
}
|
|
1627
1627
|
h.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && h(new DataView(new ArrayBuffer(1), 0, 1));
|
|
1628
|
-
function y(
|
|
1629
|
-
return typeof DataView > "u" ? !1 : h.working ? h(
|
|
1628
|
+
function y(o) {
|
|
1629
|
+
return typeof DataView > "u" ? !1 : h.working ? h(o) : o instanceof DataView;
|
|
1630
1630
|
}
|
|
1631
|
-
|
|
1631
|
+
i.isDataView = y;
|
|
1632
1632
|
var g = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
1633
|
-
function
|
|
1634
|
-
return m(
|
|
1633
|
+
function E(o) {
|
|
1634
|
+
return m(o) === "[object SharedArrayBuffer]";
|
|
1635
1635
|
}
|
|
1636
|
-
function F(
|
|
1637
|
-
return typeof g > "u" ? !1 : (typeof
|
|
1636
|
+
function F(o) {
|
|
1637
|
+
return typeof g > "u" ? !1 : (typeof E.working > "u" && (E.working = E(new g())), E.working ? E(o) : o instanceof g);
|
|
1638
1638
|
}
|
|
1639
|
-
|
|
1640
|
-
function I(
|
|
1641
|
-
return m(
|
|
1639
|
+
i.isSharedArrayBuffer = F;
|
|
1640
|
+
function I(o) {
|
|
1641
|
+
return m(o) === "[object AsyncFunction]";
|
|
1642
1642
|
}
|
|
1643
|
-
|
|
1644
|
-
function A(
|
|
1645
|
-
return m(
|
|
1643
|
+
i.isAsyncFunction = I;
|
|
1644
|
+
function A(o) {
|
|
1645
|
+
return m(o) === "[object Map Iterator]";
|
|
1646
1646
|
}
|
|
1647
|
-
|
|
1648
|
-
function T(
|
|
1649
|
-
return m(
|
|
1647
|
+
i.isMapIterator = A;
|
|
1648
|
+
function T(o) {
|
|
1649
|
+
return m(o) === "[object Set Iterator]";
|
|
1650
1650
|
}
|
|
1651
|
-
|
|
1652
|
-
function k(
|
|
1653
|
-
return m(
|
|
1651
|
+
i.isSetIterator = T;
|
|
1652
|
+
function k(o) {
|
|
1653
|
+
return m(o) === "[object Generator]";
|
|
1654
1654
|
}
|
|
1655
|
-
|
|
1656
|
-
function M(
|
|
1657
|
-
return m(
|
|
1655
|
+
i.isGeneratorObject = k;
|
|
1656
|
+
function M(o) {
|
|
1657
|
+
return m(o) === "[object WebAssembly.Module]";
|
|
1658
1658
|
}
|
|
1659
|
-
|
|
1660
|
-
function z(
|
|
1661
|
-
return D(
|
|
1659
|
+
i.isWebAssemblyCompiledModule = M;
|
|
1660
|
+
function z(o) {
|
|
1661
|
+
return D(o, b);
|
|
1662
1662
|
}
|
|
1663
|
-
|
|
1664
|
-
function $(
|
|
1665
|
-
return D(
|
|
1663
|
+
i.isNumberObject = z;
|
|
1664
|
+
function $(o) {
|
|
1665
|
+
return D(o, w);
|
|
1666
1666
|
}
|
|
1667
|
-
|
|
1668
|
-
function Y(
|
|
1669
|
-
return D(
|
|
1667
|
+
i.isStringObject = $;
|
|
1668
|
+
function Y(o) {
|
|
1669
|
+
return D(o, O);
|
|
1670
1670
|
}
|
|
1671
|
-
|
|
1672
|
-
function Ae(
|
|
1673
|
-
return l && D(
|
|
1671
|
+
i.isBooleanObject = Y;
|
|
1672
|
+
function Ae(o) {
|
|
1673
|
+
return l && D(o, R);
|
|
1674
1674
|
}
|
|
1675
|
-
|
|
1676
|
-
function s(
|
|
1677
|
-
return f && D(
|
|
1675
|
+
i.isBigIntObject = Ae;
|
|
1676
|
+
function s(o) {
|
|
1677
|
+
return f && D(o, j);
|
|
1678
1678
|
}
|
|
1679
|
-
|
|
1680
|
-
function t(
|
|
1681
|
-
return z(
|
|
1679
|
+
i.isSymbolObject = s;
|
|
1680
|
+
function t(o) {
|
|
1681
|
+
return z(o) || $(o) || Y(o) || Ae(o) || s(o);
|
|
1682
1682
|
}
|
|
1683
|
-
|
|
1684
|
-
function r(
|
|
1685
|
-
return typeof Uint8Array < "u" && (U(
|
|
1683
|
+
i.isBoxedPrimitive = t;
|
|
1684
|
+
function r(o) {
|
|
1685
|
+
return typeof Uint8Array < "u" && (U(o) || F(o));
|
|
1686
1686
|
}
|
|
1687
|
-
|
|
1688
|
-
Object.defineProperty(
|
|
1687
|
+
i.isAnyArrayBuffer = r, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(o) {
|
|
1688
|
+
Object.defineProperty(i, o, {
|
|
1689
1689
|
enumerable: !1,
|
|
1690
1690
|
value: function() {
|
|
1691
|
-
throw new Error(
|
|
1691
|
+
throw new Error(o + " is not supported in userland");
|
|
1692
1692
|
}
|
|
1693
1693
|
});
|
|
1694
1694
|
});
|
|
1695
1695
|
})(Wt);
|
|
1696
|
-
var
|
|
1696
|
+
var zn = function(e) {
|
|
1697
1697
|
return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
|
|
1698
1698
|
}, dt = { exports: {} };
|
|
1699
1699
|
typeof Object.create == "function" ? dt.exports = function(e, n) {
|
|
@@ -1713,50 +1713,50 @@ typeof Object.create == "function" ? dt.exports = function(e, n) {
|
|
|
1713
1713
|
a.prototype = n.prototype, e.prototype = new a(), e.prototype.constructor = e;
|
|
1714
1714
|
}
|
|
1715
1715
|
};
|
|
1716
|
-
var
|
|
1717
|
-
(function(
|
|
1716
|
+
var Hn = dt.exports;
|
|
1717
|
+
(function(i) {
|
|
1718
1718
|
var e = Object.getOwnPropertyDescriptors || function(y) {
|
|
1719
|
-
for (var g = Object.keys(y),
|
|
1720
|
-
|
|
1721
|
-
return
|
|
1719
|
+
for (var g = Object.keys(y), E = {}, F = 0; F < g.length; F++)
|
|
1720
|
+
E[g[F]] = Object.getOwnPropertyDescriptor(y, g[F]);
|
|
1721
|
+
return E;
|
|
1722
1722
|
}, n = /%[sdj%]/g;
|
|
1723
|
-
|
|
1723
|
+
i.format = function(h) {
|
|
1724
1724
|
if (!W(h)) {
|
|
1725
1725
|
for (var y = [], g = 0; g < arguments.length; g++)
|
|
1726
1726
|
y.push(l(arguments[g]));
|
|
1727
1727
|
return y.join(" ");
|
|
1728
1728
|
}
|
|
1729
|
-
for (var g = 1,
|
|
1729
|
+
for (var g = 1, E = arguments, F = E.length, I = String(h).replace(n, function(T) {
|
|
1730
1730
|
if (T === "%%")
|
|
1731
1731
|
return "%";
|
|
1732
1732
|
if (g >= F)
|
|
1733
1733
|
return T;
|
|
1734
1734
|
switch (T) {
|
|
1735
1735
|
case "%s":
|
|
1736
|
-
return String(
|
|
1736
|
+
return String(E[g++]);
|
|
1737
1737
|
case "%d":
|
|
1738
|
-
return Number(
|
|
1738
|
+
return Number(E[g++]);
|
|
1739
1739
|
case "%j":
|
|
1740
1740
|
try {
|
|
1741
|
-
return JSON.stringify(
|
|
1741
|
+
return JSON.stringify(E[g++]);
|
|
1742
1742
|
} catch {
|
|
1743
1743
|
return "[Circular]";
|
|
1744
1744
|
}
|
|
1745
1745
|
default:
|
|
1746
1746
|
return T;
|
|
1747
1747
|
}
|
|
1748
|
-
}), A =
|
|
1748
|
+
}), A = E[g]; g < F; A = E[++g])
|
|
1749
1749
|
ue(A) || !X(A) ? I += " " + A : I += " " + l(A);
|
|
1750
1750
|
return I;
|
|
1751
|
-
},
|
|
1751
|
+
}, i.deprecate = function(h, y) {
|
|
1752
1752
|
if (typeof Z < "u" && Z.noDeprecation === !0)
|
|
1753
1753
|
return h;
|
|
1754
1754
|
if (typeof Z > "u")
|
|
1755
1755
|
return function() {
|
|
1756
|
-
return
|
|
1756
|
+
return i.deprecate(h, y).apply(this, arguments);
|
|
1757
1757
|
};
|
|
1758
1758
|
var g = !1;
|
|
1759
|
-
function
|
|
1759
|
+
function E() {
|
|
1760
1760
|
if (!g) {
|
|
1761
1761
|
if (Z.throwDeprecation)
|
|
1762
1762
|
throw new Error(y);
|
|
@@ -1764,19 +1764,19 @@ var zn = dt.exports;
|
|
|
1764
1764
|
}
|
|
1765
1765
|
return h.apply(this, arguments);
|
|
1766
1766
|
}
|
|
1767
|
-
return
|
|
1767
|
+
return E;
|
|
1768
1768
|
};
|
|
1769
1769
|
var a = {}, u = /^$/;
|
|
1770
1770
|
if (Z.env.NODE_DEBUG) {
|
|
1771
1771
|
var c = Z.env.NODE_DEBUG;
|
|
1772
1772
|
c = c.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), u = new RegExp("^" + c + "$", "i");
|
|
1773
1773
|
}
|
|
1774
|
-
|
|
1774
|
+
i.debuglog = function(h) {
|
|
1775
1775
|
if (h = h.toUpperCase(), !a[h])
|
|
1776
1776
|
if (u.test(h)) {
|
|
1777
1777
|
var y = Z.pid;
|
|
1778
1778
|
a[h] = function() {
|
|
1779
|
-
var g =
|
|
1779
|
+
var g = i.format.apply(i, arguments);
|
|
1780
1780
|
console.error("%s %d: %s", h, y, g);
|
|
1781
1781
|
};
|
|
1782
1782
|
} else
|
|
@@ -1789,9 +1789,9 @@ var zn = dt.exports;
|
|
|
1789
1789
|
seen: [],
|
|
1790
1790
|
stylize: m
|
|
1791
1791
|
};
|
|
1792
|
-
return arguments.length >= 3 && (g.depth = arguments[2]), arguments.length >= 4 && (g.colors = arguments[3]), ne(y) ? g.showHidden = y : y &&
|
|
1792
|
+
return arguments.length >= 3 && (g.depth = arguments[2]), arguments.length >= 4 && (g.colors = arguments[3]), ne(y) ? g.showHidden = y : y && i._extend(g, y), J(g.showHidden) && (g.showHidden = !1), J(g.depth) && (g.depth = 2), J(g.colors) && (g.colors = !1), J(g.customInspect) && (g.customInspect = !0), g.colors && (g.stylize = f), w(g, h, g.depth);
|
|
1793
1793
|
}
|
|
1794
|
-
|
|
1794
|
+
i.inspect = l, l.colors = {
|
|
1795
1795
|
bold: [1, 22],
|
|
1796
1796
|
italic: [3, 23],
|
|
1797
1797
|
underline: [4, 24],
|
|
@@ -1823,25 +1823,25 @@ var zn = dt.exports;
|
|
|
1823
1823
|
function m(h, y) {
|
|
1824
1824
|
return h;
|
|
1825
1825
|
}
|
|
1826
|
-
function
|
|
1826
|
+
function b(h) {
|
|
1827
1827
|
var y = {};
|
|
1828
|
-
return h.forEach(function(g,
|
|
1828
|
+
return h.forEach(function(g, E) {
|
|
1829
1829
|
y[g] = !0;
|
|
1830
1830
|
}), y;
|
|
1831
1831
|
}
|
|
1832
1832
|
function w(h, y, g) {
|
|
1833
1833
|
if (h.customInspect && y && K(y.inspect) && // Filter out the util module, it's inspect function is special
|
|
1834
|
-
y.inspect !==
|
|
1834
|
+
y.inspect !== i.inspect && // Also filter out any prototype objects using the circular check.
|
|
1835
1835
|
!(y.constructor && y.constructor.prototype === y)) {
|
|
1836
|
-
var
|
|
1837
|
-
return W(
|
|
1836
|
+
var E = y.inspect(g, h);
|
|
1837
|
+
return W(E) || (E = w(h, E, g)), E;
|
|
1838
1838
|
}
|
|
1839
1839
|
var F = O(h, y);
|
|
1840
1840
|
if (F)
|
|
1841
1841
|
return F;
|
|
1842
|
-
var I = Object.keys(y), A =
|
|
1842
|
+
var I = Object.keys(y), A = b(I);
|
|
1843
1843
|
if (h.showHidden && (I = Object.getOwnPropertyNames(y)), oe(y) && (I.indexOf("message") >= 0 || I.indexOf("description") >= 0))
|
|
1844
|
-
return
|
|
1844
|
+
return R(y);
|
|
1845
1845
|
if (I.length === 0) {
|
|
1846
1846
|
if (K(y)) {
|
|
1847
1847
|
var T = y.name ? ": " + y.name : "";
|
|
@@ -1852,14 +1852,14 @@ var zn = dt.exports;
|
|
|
1852
1852
|
if (fe(y))
|
|
1853
1853
|
return h.stylize(Date.prototype.toString.call(y), "date");
|
|
1854
1854
|
if (oe(y))
|
|
1855
|
-
return
|
|
1855
|
+
return R(y);
|
|
1856
1856
|
}
|
|
1857
1857
|
var k = "", M = !1, z = ["{", "}"];
|
|
1858
1858
|
if (me(y) && (M = !0, z = ["[", "]"]), K(y)) {
|
|
1859
1859
|
var $ = y.name ? ": " + y.name : "";
|
|
1860
1860
|
k = " [Function" + $ + "]";
|
|
1861
1861
|
}
|
|
1862
|
-
if (ie(y) && (k = " " + RegExp.prototype.toString.call(y)), fe(y) && (k = " " + Date.prototype.toUTCString.call(y)), oe(y) && (k = " " +
|
|
1862
|
+
if (ie(y) && (k = " " + RegExp.prototype.toString.call(y)), fe(y) && (k = " " + Date.prototype.toUTCString.call(y)), oe(y) && (k = " " + R(y)), I.length === 0 && (!M || y.length == 0))
|
|
1863
1863
|
return z[0] + k + z[1];
|
|
1864
1864
|
if (g < 0)
|
|
1865
1865
|
return ie(y) ? h.stylize(RegExp.prototype.toString.call(y), "regexp") : h.stylize("[Object]", "special");
|
|
@@ -1883,16 +1883,16 @@ var zn = dt.exports;
|
|
|
1883
1883
|
if (ue(y))
|
|
1884
1884
|
return h.stylize("null", "null");
|
|
1885
1885
|
}
|
|
1886
|
-
function
|
|
1886
|
+
function R(h) {
|
|
1887
1887
|
return "[" + Error.prototype.toString.call(h) + "]";
|
|
1888
1888
|
}
|
|
1889
|
-
function j(h, y, g,
|
|
1889
|
+
function j(h, y, g, E, F) {
|
|
1890
1890
|
for (var I = [], A = 0, T = y.length; A < T; ++A)
|
|
1891
1891
|
pe(y, String(A)) ? I.push(D(
|
|
1892
1892
|
h,
|
|
1893
1893
|
y,
|
|
1894
1894
|
g,
|
|
1895
|
-
|
|
1895
|
+
E,
|
|
1896
1896
|
String(A),
|
|
1897
1897
|
!0
|
|
1898
1898
|
)) : I.push("");
|
|
@@ -1901,15 +1901,15 @@ var zn = dt.exports;
|
|
|
1901
1901
|
h,
|
|
1902
1902
|
y,
|
|
1903
1903
|
g,
|
|
1904
|
-
|
|
1904
|
+
E,
|
|
1905
1905
|
k,
|
|
1906
1906
|
!0
|
|
1907
1907
|
));
|
|
1908
1908
|
}), I;
|
|
1909
1909
|
}
|
|
1910
|
-
function D(h, y, g,
|
|
1910
|
+
function D(h, y, g, E, F, I) {
|
|
1911
1911
|
var A, T, k;
|
|
1912
|
-
if (k = Object.getOwnPropertyDescriptor(y, F) || { value: y[F] }, k.get ? k.set ? T = h.stylize("[Getter/Setter]", "special") : T = h.stylize("[Getter]", "special") : k.set && (T = h.stylize("[Setter]", "special")), pe(
|
|
1912
|
+
if (k = Object.getOwnPropertyDescriptor(y, F) || { value: y[F] }, k.get ? k.set ? T = h.stylize("[Getter/Setter]", "special") : T = h.stylize("[Getter]", "special") : k.set && (T = h.stylize("[Setter]", "special")), pe(E, F) || (A = "[" + F + "]"), T || (h.seen.indexOf(k.value) < 0 ? (ue(g) ? T = w(h, k.value, null) : T = w(h, k.value, g - 1), T.indexOf(`
|
|
1913
1913
|
`) > -1 && (I ? T = T.split(`
|
|
1914
1914
|
`).map(function(M) {
|
|
1915
1915
|
return " " + M;
|
|
@@ -1927,72 +1927,72 @@ var zn = dt.exports;
|
|
|
1927
1927
|
return A + ": " + T;
|
|
1928
1928
|
}
|
|
1929
1929
|
function G(h, y, g) {
|
|
1930
|
-
var
|
|
1930
|
+
var E = h.reduce(function(F, I) {
|
|
1931
1931
|
return I.indexOf(`
|
|
1932
1932
|
`) >= 0, F + I.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
1933
1933
|
}, 0);
|
|
1934
|
-
return
|
|
1934
|
+
return E > 60 ? g[0] + (y === "" ? "" : y + `
|
|
1935
1935
|
`) + " " + h.join(`,
|
|
1936
1936
|
`) + " " + g[1] : g[0] + y + " " + h.join(", ") + " " + g[1];
|
|
1937
1937
|
}
|
|
1938
|
-
|
|
1938
|
+
i.types = Wt;
|
|
1939
1939
|
function me(h) {
|
|
1940
1940
|
return Array.isArray(h);
|
|
1941
1941
|
}
|
|
1942
|
-
|
|
1942
|
+
i.isArray = me;
|
|
1943
1943
|
function ne(h) {
|
|
1944
1944
|
return typeof h == "boolean";
|
|
1945
1945
|
}
|
|
1946
|
-
|
|
1946
|
+
i.isBoolean = ne;
|
|
1947
1947
|
function ue(h) {
|
|
1948
1948
|
return h === null;
|
|
1949
1949
|
}
|
|
1950
|
-
|
|
1950
|
+
i.isNull = ue;
|
|
1951
1951
|
function we(h) {
|
|
1952
1952
|
return h == null;
|
|
1953
1953
|
}
|
|
1954
|
-
|
|
1954
|
+
i.isNullOrUndefined = we;
|
|
1955
1955
|
function be(h) {
|
|
1956
1956
|
return typeof h == "number";
|
|
1957
1957
|
}
|
|
1958
|
-
|
|
1958
|
+
i.isNumber = be;
|
|
1959
1959
|
function W(h) {
|
|
1960
1960
|
return typeof h == "string";
|
|
1961
1961
|
}
|
|
1962
|
-
|
|
1962
|
+
i.isString = W;
|
|
1963
1963
|
function Ee(h) {
|
|
1964
1964
|
return typeof h == "symbol";
|
|
1965
1965
|
}
|
|
1966
|
-
|
|
1966
|
+
i.isSymbol = Ee;
|
|
1967
1967
|
function J(h) {
|
|
1968
1968
|
return h === void 0;
|
|
1969
1969
|
}
|
|
1970
|
-
|
|
1970
|
+
i.isUndefined = J;
|
|
1971
1971
|
function ie(h) {
|
|
1972
1972
|
return X(h) && Q(h) === "[object RegExp]";
|
|
1973
1973
|
}
|
|
1974
|
-
|
|
1974
|
+
i.isRegExp = ie, i.types.isRegExp = ie;
|
|
1975
1975
|
function X(h) {
|
|
1976
1976
|
return typeof h == "object" && h !== null;
|
|
1977
1977
|
}
|
|
1978
|
-
|
|
1978
|
+
i.isObject = X;
|
|
1979
1979
|
function fe(h) {
|
|
1980
1980
|
return X(h) && Q(h) === "[object Date]";
|
|
1981
1981
|
}
|
|
1982
|
-
|
|
1982
|
+
i.isDate = fe, i.types.isDate = fe;
|
|
1983
1983
|
function oe(h) {
|
|
1984
1984
|
return X(h) && (Q(h) === "[object Error]" || h instanceof Error);
|
|
1985
1985
|
}
|
|
1986
|
-
|
|
1986
|
+
i.isError = oe, i.types.isNativeError = oe;
|
|
1987
1987
|
function K(h) {
|
|
1988
1988
|
return typeof h == "function";
|
|
1989
1989
|
}
|
|
1990
|
-
|
|
1991
|
-
function
|
|
1990
|
+
i.isFunction = K;
|
|
1991
|
+
function Pe(h) {
|
|
1992
1992
|
return h === null || typeof h == "boolean" || typeof h == "number" || typeof h == "string" || typeof h == "symbol" || // ES6 symbol
|
|
1993
1993
|
typeof h > "u";
|
|
1994
1994
|
}
|
|
1995
|
-
|
|
1995
|
+
i.isPrimitive = Pe, i.isBuffer = zn;
|
|
1996
1996
|
function Q(h) {
|
|
1997
1997
|
return Object.prototype.toString.call(h);
|
|
1998
1998
|
}
|
|
@@ -2021,20 +2021,20 @@ var zn = dt.exports;
|
|
|
2021
2021
|
].join(":");
|
|
2022
2022
|
return [h.getDate(), le[h.getMonth()], y].join(" ");
|
|
2023
2023
|
}
|
|
2024
|
-
|
|
2025
|
-
console.log("%s - %s", Be(),
|
|
2026
|
-
},
|
|
2024
|
+
i.log = function() {
|
|
2025
|
+
console.log("%s - %s", Be(), i.format.apply(i, arguments));
|
|
2026
|
+
}, i.inherits = Hn, i._extend = function(h, y) {
|
|
2027
2027
|
if (!y || !X(y))
|
|
2028
2028
|
return h;
|
|
2029
|
-
for (var g = Object.keys(y),
|
|
2030
|
-
h[g[
|
|
2029
|
+
for (var g = Object.keys(y), E = g.length; E--; )
|
|
2030
|
+
h[g[E]] = y[g[E]];
|
|
2031
2031
|
return h;
|
|
2032
2032
|
};
|
|
2033
2033
|
function pe(h, y) {
|
|
2034
2034
|
return Object.prototype.hasOwnProperty.call(h, y);
|
|
2035
2035
|
}
|
|
2036
2036
|
var V = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
2037
|
-
|
|
2037
|
+
i.promisify = function(y) {
|
|
2038
2038
|
if (typeof y != "function")
|
|
2039
2039
|
throw new TypeError('The "original" argument must be of type Function');
|
|
2040
2040
|
if (V && y[V]) {
|
|
@@ -2049,12 +2049,12 @@ var zn = dt.exports;
|
|
|
2049
2049
|
}), g;
|
|
2050
2050
|
}
|
|
2051
2051
|
function g() {
|
|
2052
|
-
for (var
|
|
2053
|
-
|
|
2052
|
+
for (var E, F, I = new Promise(function(k, M) {
|
|
2053
|
+
E = k, F = M;
|
|
2054
2054
|
}), A = [], T = 0; T < arguments.length; T++)
|
|
2055
2055
|
A.push(arguments[T]);
|
|
2056
2056
|
A.push(function(k, M) {
|
|
2057
|
-
k ? F(k) :
|
|
2057
|
+
k ? F(k) : E(M);
|
|
2058
2058
|
});
|
|
2059
2059
|
try {
|
|
2060
2060
|
y.apply(this, A);
|
|
@@ -2072,7 +2072,7 @@ var zn = dt.exports;
|
|
|
2072
2072
|
g,
|
|
2073
2073
|
e(y)
|
|
2074
2074
|
);
|
|
2075
|
-
},
|
|
2075
|
+
}, i.promisify.custom = V;
|
|
2076
2076
|
function he(h, y) {
|
|
2077
2077
|
if (!h) {
|
|
2078
2078
|
var g = new Error("Promise was rejected with a falsy value");
|
|
@@ -2084,8 +2084,8 @@ var zn = dt.exports;
|
|
|
2084
2084
|
if (typeof h != "function")
|
|
2085
2085
|
throw new TypeError('The "original" argument must be of type Function');
|
|
2086
2086
|
function y() {
|
|
2087
|
-
for (var g = [],
|
|
2088
|
-
g.push(arguments[
|
|
2087
|
+
for (var g = [], E = 0; E < arguments.length; E++)
|
|
2088
|
+
g.push(arguments[E]);
|
|
2089
2089
|
var F = g.pop();
|
|
2090
2090
|
if (typeof F != "function")
|
|
2091
2091
|
throw new TypeError("The last argument must be of type Function");
|
|
@@ -2106,14 +2106,14 @@ var zn = dt.exports;
|
|
|
2106
2106
|
e(h)
|
|
2107
2107
|
), y;
|
|
2108
2108
|
}
|
|
2109
|
-
|
|
2109
|
+
i.callbackify = U;
|
|
2110
2110
|
})(mt);
|
|
2111
2111
|
var at, jt;
|
|
2112
|
-
function
|
|
2112
|
+
function Kn() {
|
|
2113
2113
|
if (jt)
|
|
2114
2114
|
return at;
|
|
2115
2115
|
jt = 1;
|
|
2116
|
-
var
|
|
2116
|
+
var i = function() {
|
|
2117
2117
|
if (typeof self == "object" && self)
|
|
2118
2118
|
return self;
|
|
2119
2119
|
if (typeof window == "object" && window)
|
|
@@ -2133,16 +2133,16 @@ function Hn() {
|
|
|
2133
2133
|
configurable: !0
|
|
2134
2134
|
});
|
|
2135
2135
|
} catch {
|
|
2136
|
-
return
|
|
2136
|
+
return i();
|
|
2137
2137
|
}
|
|
2138
2138
|
try {
|
|
2139
|
-
return __global__ ||
|
|
2139
|
+
return __global__ || i();
|
|
2140
2140
|
} finally {
|
|
2141
2141
|
delete Object.prototype.__global__;
|
|
2142
2142
|
}
|
|
2143
2143
|
}(), at;
|
|
2144
2144
|
}
|
|
2145
|
-
const
|
|
2145
|
+
const Qn = "websocket@^1.0.30", Vn = "websocket@1.0.34", Xn = !1, Yn = "sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==", Zn = "/websocket", ei = {}, ti = {
|
|
2146
2146
|
type: "range",
|
|
2147
2147
|
registry: !0,
|
|
2148
2148
|
raw: "websocket@^1.0.30",
|
|
@@ -2151,41 +2151,41 @@ const Kn = "websocket@^1.0.30", Qn = "websocket@1.0.34", Vn = !1, Xn = "sha512-P
|
|
|
2151
2151
|
rawSpec: "^1.0.30",
|
|
2152
2152
|
saveSpec: null,
|
|
2153
2153
|
fetchSpec: "^1.0.30"
|
|
2154
|
-
},
|
|
2154
|
+
}, ri = [
|
|
2155
2155
|
"/"
|
|
2156
|
-
],
|
|
2156
|
+
], ni = "https://registry.npmjs.org/websocket/-/websocket-1.0.34.tgz", ii = "2bdc2602c08bf2c82253b730655c0ef7dcab3111", oi = "websocket@^1.0.30", si = "/Users/peter/dev/cachearoo-js", ai = {
|
|
2157
2157
|
name: "Brian McKelvey",
|
|
2158
2158
|
email: "theturtle32@gmail.com",
|
|
2159
2159
|
url: "https://github.com/theturtle32"
|
|
2160
|
-
},
|
|
2160
|
+
}, ui = "lib/browser.js", fi = {
|
|
2161
2161
|
url: "https://github.com/theturtle32/WebSocket-Node/issues"
|
|
2162
|
-
},
|
|
2162
|
+
}, ci = !1, li = {
|
|
2163
2163
|
verbose: !1
|
|
2164
|
-
},
|
|
2164
|
+
}, pi = [
|
|
2165
2165
|
{
|
|
2166
2166
|
name: "Iñaki Baz Castillo",
|
|
2167
2167
|
email: "ibc@aliax.net",
|
|
2168
2168
|
url: "http://dev.sipdoc.net"
|
|
2169
2169
|
}
|
|
2170
|
-
],
|
|
2170
|
+
], hi = {
|
|
2171
2171
|
bufferutil: "^4.0.1",
|
|
2172
2172
|
debug: "^2.2.0",
|
|
2173
2173
|
"es5-ext": "^0.10.50",
|
|
2174
2174
|
"typedarray-to-buffer": "^3.1.5",
|
|
2175
2175
|
"utf-8-validate": "^5.0.2",
|
|
2176
2176
|
yaeti: "^0.0.6"
|
|
2177
|
-
},
|
|
2177
|
+
}, yi = !1, di = "Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.", gi = {
|
|
2178
2178
|
"buffer-equal": "^1.0.0",
|
|
2179
2179
|
gulp: "^4.0.2",
|
|
2180
2180
|
"gulp-jshint": "^2.0.4",
|
|
2181
2181
|
jshint: "^2.0.0",
|
|
2182
2182
|
"jshint-stylish": "^2.2.1",
|
|
2183
2183
|
tape: "^4.9.1"
|
|
2184
|
-
}, gi = {
|
|
2185
|
-
lib: "./lib"
|
|
2186
2184
|
}, vi = {
|
|
2185
|
+
lib: "./lib"
|
|
2186
|
+
}, mi = {
|
|
2187
2187
|
node: ">=4.0.0"
|
|
2188
|
-
},
|
|
2188
|
+
}, wi = "https://github.com/theturtle32/WebSocket-Node", bi = [
|
|
2189
2189
|
"websocket",
|
|
2190
2190
|
"websockets",
|
|
2191
2191
|
"socket",
|
|
@@ -2196,94 +2196,94 @@ const Kn = "websocket@^1.0.30", Qn = "websocket@1.0.34", Vn = !1, Xn = "sha512-P
|
|
|
2196
2196
|
"realtime",
|
|
2197
2197
|
"server",
|
|
2198
2198
|
"client"
|
|
2199
|
-
],
|
|
2199
|
+
], Ei = "Apache-2.0", Ai = "index", Si = "websocket", Ti = {
|
|
2200
2200
|
type: "git",
|
|
2201
2201
|
url: "git+https://github.com/theturtle32/WebSocket-Node.git"
|
|
2202
|
-
},
|
|
2202
|
+
}, Oi = {
|
|
2203
2203
|
gulp: "gulp",
|
|
2204
2204
|
test: "tape test/unit/*.js"
|
|
2205
|
-
},
|
|
2206
|
-
_from:
|
|
2207
|
-
_id:
|
|
2208
|
-
_inBundle:
|
|
2209
|
-
_integrity:
|
|
2210
|
-
_location:
|
|
2211
|
-
_phantomChildren:
|
|
2212
|
-
_requested:
|
|
2213
|
-
_requiredBy:
|
|
2214
|
-
_resolved:
|
|
2215
|
-
_shasum:
|
|
2216
|
-
_spec:
|
|
2217
|
-
_where:
|
|
2218
|
-
author:
|
|
2219
|
-
browser:
|
|
2220
|
-
bugs:
|
|
2221
|
-
bundleDependencies:
|
|
2222
|
-
config:
|
|
2223
|
-
contributors:
|
|
2224
|
-
dependencies:
|
|
2225
|
-
deprecated:
|
|
2226
|
-
description:
|
|
2227
|
-
devDependencies:
|
|
2228
|
-
directories:
|
|
2229
|
-
engines:
|
|
2230
|
-
homepage:
|
|
2231
|
-
keywords:
|
|
2232
|
-
license:
|
|
2233
|
-
main:
|
|
2234
|
-
name:
|
|
2235
|
-
repository:
|
|
2236
|
-
scripts:
|
|
2237
|
-
version:
|
|
2205
|
+
}, Fi = "1.0.34", xi = {
|
|
2206
|
+
_from: Qn,
|
|
2207
|
+
_id: Vn,
|
|
2208
|
+
_inBundle: Xn,
|
|
2209
|
+
_integrity: Yn,
|
|
2210
|
+
_location: Zn,
|
|
2211
|
+
_phantomChildren: ei,
|
|
2212
|
+
_requested: ti,
|
|
2213
|
+
_requiredBy: ri,
|
|
2214
|
+
_resolved: ni,
|
|
2215
|
+
_shasum: ii,
|
|
2216
|
+
_spec: oi,
|
|
2217
|
+
_where: si,
|
|
2218
|
+
author: ai,
|
|
2219
|
+
browser: ui,
|
|
2220
|
+
bugs: fi,
|
|
2221
|
+
bundleDependencies: ci,
|
|
2222
|
+
config: li,
|
|
2223
|
+
contributors: pi,
|
|
2224
|
+
dependencies: hi,
|
|
2225
|
+
deprecated: yi,
|
|
2226
|
+
description: di,
|
|
2227
|
+
devDependencies: gi,
|
|
2228
|
+
directories: vi,
|
|
2229
|
+
engines: mi,
|
|
2230
|
+
homepage: wi,
|
|
2231
|
+
keywords: bi,
|
|
2232
|
+
license: Ei,
|
|
2233
|
+
main: Ai,
|
|
2234
|
+
name: Si,
|
|
2235
|
+
repository: Ti,
|
|
2236
|
+
scripts: Oi,
|
|
2237
|
+
version: Fi
|
|
2238
2238
|
};
|
|
2239
|
-
var
|
|
2239
|
+
var Ii = xi.version, ye;
|
|
2240
2240
|
if (typeof globalThis == "object")
|
|
2241
2241
|
ye = globalThis;
|
|
2242
2242
|
else
|
|
2243
2243
|
try {
|
|
2244
|
-
ye =
|
|
2244
|
+
ye = Kn();
|
|
2245
2245
|
} catch {
|
|
2246
2246
|
} finally {
|
|
2247
2247
|
if (!ye && typeof window < "u" && (ye = window), !ye)
|
|
2248
2248
|
throw new Error("Could not determine global this");
|
|
2249
2249
|
}
|
|
2250
|
-
var je = ye.WebSocket || ye.MozWebSocket,
|
|
2251
|
-
function ir(
|
|
2250
|
+
var je = ye.WebSocket || ye.MozWebSocket, ki = Ii;
|
|
2251
|
+
function ir(i, e) {
|
|
2252
2252
|
var n;
|
|
2253
|
-
return e ? n = new je(
|
|
2253
|
+
return e ? n = new je(i, e) : n = new je(i), n;
|
|
2254
2254
|
}
|
|
2255
|
-
je && ["CONNECTING", "OPEN", "CLOSING", "CLOSED"].forEach(function(
|
|
2256
|
-
Object.defineProperty(ir,
|
|
2255
|
+
je && ["CONNECTING", "OPEN", "CLOSING", "CLOSED"].forEach(function(i) {
|
|
2256
|
+
Object.defineProperty(ir, i, {
|
|
2257
2257
|
get: function() {
|
|
2258
|
-
return je[
|
|
2258
|
+
return je[i];
|
|
2259
2259
|
}
|
|
2260
2260
|
});
|
|
2261
2261
|
});
|
|
2262
|
-
var
|
|
2262
|
+
var Ri = {
|
|
2263
2263
|
w3cwebsocket: je ? ir : null,
|
|
2264
|
-
version:
|
|
2264
|
+
version: ki
|
|
2265
2265
|
};
|
|
2266
2266
|
const Pi = 3e3;
|
|
2267
|
-
function
|
|
2267
|
+
function Bi(i) {
|
|
2268
2268
|
const e = new Uint8Array(128);
|
|
2269
2269
|
let n = 0;
|
|
2270
|
-
const a = typeof window < "u" ? window.TextEncoder : mt.TextEncoder, u = new a(), c = u.encode(
|
|
2270
|
+
const a = typeof window < "u" ? window.TextEncoder : mt.TextEncoder, u = new a(), c = u.encode(i.bucket), l = u.encode(i.key), f = u.encode(i.apiKey);
|
|
2271
2271
|
if (c.byteLength > 36 || l.byteLength > 36 || f.byteLength > 36)
|
|
2272
2272
|
throw new Error("Cannot write binary header, bucket/key/apiKey cannot exceed 36 bytes each");
|
|
2273
|
-
return e[0] =
|
|
2273
|
+
return e[0] = i.type, e[1] = c.byteLength, e[2] = l.byteLength, e[3] = f.byteLength, n = 4, e.set(c, n), n += e[1], e.set(l, n), n += e[2], e.set(f, n), e;
|
|
2274
2274
|
}
|
|
2275
|
-
function
|
|
2276
|
-
let e =
|
|
2275
|
+
function ji(i) {
|
|
2276
|
+
let e = i[1], n = i[2], a = i[3];
|
|
2277
2277
|
const u = typeof window < "u" ? window.TextDecoder : mt.TextDecoder, c = new u("utf-8"), l = {
|
|
2278
|
-
type:
|
|
2278
|
+
type: i[0],
|
|
2279
2279
|
bucket: "",
|
|
2280
2280
|
key: "",
|
|
2281
2281
|
apiKey: ""
|
|
2282
2282
|
};
|
|
2283
2283
|
let f = 4;
|
|
2284
|
-
return l.bucket = c.decode(
|
|
2284
|
+
return l.bucket = c.decode(i.slice(f, f + e)), f = f + e, l.key = c.decode(i.slice(f, f + n)), f = f + n, l.apiKey = c.decode(i.slice(f, f + a)), l;
|
|
2285
2285
|
}
|
|
2286
|
-
class
|
|
2286
|
+
class _i {
|
|
2287
2287
|
constructor(e) {
|
|
2288
2288
|
this.connected = !1, this.id = void 0, this.enablePing = !1, this.requestID = 0, this.events = [], this.binaryEvents = [], this.sendValues = !1, this.ws = void 0, this.eventsReceived = 0, this.skipReconnect = !1, this.requests = [], this.requestTimer = void 0, this.reconnectTimer = void 0, this.pingTimer = void 0, this.pingInterval = 5e3, this.settings = e, this.enablePing = !!e.enablePing, this.pingInterval = e.pingInterval || this.pingInterval;
|
|
2289
2289
|
var n = e.secure ? "wss://" : "ws://";
|
|
@@ -2323,12 +2323,12 @@ class ji {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
async write(e, n, a, u, c) {
|
|
2325
2325
|
return new Promise((l, f) => {
|
|
2326
|
-
this.addRequest({ op: "write", bucket: e, key: n, value: a, failIfExists: u, expire: c }, function(m,
|
|
2326
|
+
this.addRequest({ op: "write", bucket: e, key: n, value: a, failIfExists: u, expire: c }, function(m, b) {
|
|
2327
2327
|
if (m) {
|
|
2328
2328
|
const w = m.alreadyExists ? new sr(`Key ${n} already exists`) : new Error("Cachearoo ws WRITE error: " + JSON.stringify(m) + " for bucket: " + e + ", key: " + n);
|
|
2329
2329
|
f(w);
|
|
2330
2330
|
} else
|
|
2331
|
-
l(
|
|
2331
|
+
l(b);
|
|
2332
2332
|
});
|
|
2333
2333
|
});
|
|
2334
2334
|
}
|
|
@@ -2356,7 +2356,7 @@ class ji {
|
|
|
2356
2356
|
bucket: n,
|
|
2357
2357
|
key: a,
|
|
2358
2358
|
apiKey: this.apiKey || ""
|
|
2359
|
-
}, l =
|
|
2359
|
+
}, l = Bi(c);
|
|
2360
2360
|
this.connected && this.ws && this.ws.send(Dt.Buffer.concat([l, u]));
|
|
2361
2361
|
}
|
|
2362
2362
|
close() {
|
|
@@ -2427,7 +2427,7 @@ class ji {
|
|
|
2427
2427
|
processBinaryMessage(e) {
|
|
2428
2428
|
if (e.byteLength < 128)
|
|
2429
2429
|
return console.error("Binary data without header");
|
|
2430
|
-
const n =
|
|
2430
|
+
const n = ji(new Uint8Array(e));
|
|
2431
2431
|
for (var a = 0; a < this.binaryEvents.length; a++)
|
|
2432
2432
|
(this.binaryEvents[a].bucket === "*" || this.binaryEvents[a].bucket == n.bucket) && (this.binaryEvents[a].key === "*" || this.binaryEvents[a].key == n.key) && this.binaryEvents[a].callback({
|
|
2433
2433
|
type: n.type,
|
|
@@ -2462,7 +2462,7 @@ class ji {
|
|
|
2462
2462
|
(this.events[c].bucket === "*" || this.events[c].bucket == u.bucket) && (this.events[c].key === "*" || this.events[c].key == u.key) && this.events[c].callback(u);
|
|
2463
2463
|
}
|
|
2464
2464
|
wsStart(e) {
|
|
2465
|
-
this.skipReconnect = !1, this.connected = !1, this.pingTimer && clearInterval(this.pingTimer), this.ws && this.ws.close && this.ws.close(), this.ws = new
|
|
2465
|
+
this.skipReconnect = !1, this.connected = !1, this.pingTimer && clearInterval(this.pingTimer), this.ws && this.ws.close && this.ws.close(), this.ws = new Ri.w3cwebsocket(e, "", void 0, void 0, void 0, { maxReceivedMessageSize: 128 * 1024 * 1024 }), this.ws.binaryType = "arraybuffer", this.enablePing && (this.pingTimer = setInterval(() => {
|
|
2466
2466
|
this.ws != null && this.connected && this.ws.send(JSON.stringify({ msg: "ping" }));
|
|
2467
2467
|
}, this.pingInterval)), this.ws.onerror = (n) => {
|
|
2468
2468
|
typeof this.onError == "function" && this.onError(n);
|
|
@@ -2477,7 +2477,7 @@ class ji {
|
|
|
2477
2477
|
};
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
2480
|
-
const
|
|
2480
|
+
const Ui = Ur.fetch, Li = 4300, Le = 200, Ci = 404, _t = 201, Di = 304, Ni = 50;
|
|
2481
2481
|
class or extends Error {
|
|
2482
2482
|
constructor(e, n) {
|
|
2483
2483
|
super(e), Error.captureStackTrace(this, this.constructor), this.progressTimeout = n;
|
|
@@ -2488,13 +2488,34 @@ class sr extends Error {
|
|
|
2488
2488
|
super(e), this.name = "AlreadyExistsError", Error.captureStackTrace(this, this.constructor);
|
|
2489
2489
|
}
|
|
2490
2490
|
}
|
|
2491
|
-
function
|
|
2492
|
-
|
|
2491
|
+
function Mi(i) {
|
|
2492
|
+
if (typeof i == "string")
|
|
2493
|
+
return i;
|
|
2494
|
+
if (i && typeof i == "object") {
|
|
2495
|
+
if (typeof i.message == "string")
|
|
2496
|
+
return i.message;
|
|
2497
|
+
if (typeof i.msg == "string")
|
|
2498
|
+
return i.msg;
|
|
2499
|
+
try {
|
|
2500
|
+
return JSON.stringify(i);
|
|
2501
|
+
} catch {
|
|
2502
|
+
return String(i);
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
return String(i);
|
|
2506
|
+
}
|
|
2507
|
+
class ar extends Error {
|
|
2508
|
+
constructor(e) {
|
|
2509
|
+
super(Mi(e)), this.name = "ReplyError", this.reply = e, Error.captureStackTrace(this, this.constructor);
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
function ur() {
|
|
2513
|
+
function i() {
|
|
2493
2514
|
return Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
|
|
2494
2515
|
}
|
|
2495
|
-
return
|
|
2516
|
+
return i() + i() + "-" + i() + "-" + i() + "-" + i() + "-" + i() + i() + i();
|
|
2496
2517
|
}
|
|
2497
|
-
class
|
|
2518
|
+
class fr {
|
|
2498
2519
|
constructor() {
|
|
2499
2520
|
this.bucket = void 0, this.host = void 0, this.port = void 0, this.path = "", this.apiKey = void 0, this.secure = !1, this.enablePing = !1, this.pingInterval = 5e3, this.clientId = void 0, this.wsSubDomain = void 0;
|
|
2500
2521
|
}
|
|
@@ -2504,19 +2525,19 @@ class He {
|
|
|
2504
2525
|
this.bucket = void 0, this.data = void 0, this.failIfExists = !1, this.expire = void 0, this.async = !0, this.forceHttp = !1, this.keysOnly = !1, this.filter = void 0, this.removeDataFromReply = !1, e && (this.bucket = e.bucket, this.data = e.data, this.failIfExists = e.failIfExists, this.expire = e.expire, this.async = e.async, this.forceHttp = e.forceHttp, this.keysOnly = e.keysOnly, this.filter = e.filter, this.removeDataFromReply = e.removeDataFromReply);
|
|
2505
2526
|
}
|
|
2506
2527
|
}
|
|
2507
|
-
class
|
|
2528
|
+
class qi extends He {
|
|
2508
2529
|
constructor() {
|
|
2509
2530
|
super(...arguments), this.url = void 0, this.method = void 0, this.key = void 0, this.forceHttp = !1, this.keysOnly = !1, this.filter = void 0, this.removeDataFromReply = !1, this.isList = !1;
|
|
2510
2531
|
}
|
|
2511
2532
|
}
|
|
2512
|
-
class
|
|
2533
|
+
class $i {
|
|
2513
2534
|
constructor(e) {
|
|
2514
|
-
this.pendingRequests = 0, e == null && (e = new
|
|
2535
|
+
this.pendingRequests = 0, e == null && (e = new fr()), e.host = e.host || "127.0.0.1", e.port = e.port || Li, typeof e.path != "string" && (e.path = ""), e.path !== "" && e.path.charAt(0) !== "/" && (e.path = "/" + e.path), e.path.charAt(e.path.length - 1) !== "/" && (e.path = e.path + "/"), this.settings = e, this.connection = new _i(e), this.requestQueue = [];
|
|
2515
2536
|
}
|
|
2516
2537
|
internalizeRequestOptions(e, n, a = !1) {
|
|
2517
2538
|
var u = n.bucket || this.settings.bucket || "";
|
|
2518
2539
|
n.async == null && (n.async = !0);
|
|
2519
|
-
var c = new
|
|
2540
|
+
var c = new qi(null);
|
|
2520
2541
|
return n.keysOnly !== void 0 && (c.keysOnly = n.keysOnly), n.filter !== void 0 && (c.filter = n.filter), c.url = this.getUrl(e, u, c.keysOnly, c.filter, a), c.bucket = u, c.key = e, c.async = n.async, c.failIfExists = n.failIfExists, c.forceHttp = n.forceHttp, c.expire = n.expire, c.isList = a, c.removeDataFromReply = n.removeDataFromReply, c;
|
|
2521
2542
|
}
|
|
2522
2543
|
checkOptions(e) {
|
|
@@ -2567,14 +2588,14 @@ class Mi {
|
|
|
2567
2588
|
body: void 0
|
|
2568
2589
|
};
|
|
2569
2590
|
this.settings.apiKey && (a.headers["API-Key"] = this.settings.apiKey, a.headers["x-api-key"] = this.settings.apiKey), (n == "PUT" || n == "POST" || n == "PATCH") && (a.body = JSON.stringify(e.data), a.headers["Content-Type"] = "application/json", e.failIfExists && (a.headers.failIfExists = e.failIfExists), e.removeDataFromReply && (a.headers.RemoveDataFromReply = e.removeDataFromReply), e.expire && (a.headers.expire = e.expire));
|
|
2570
|
-
const u = await
|
|
2571
|
-
if ((n === "GET" || n === "PATCH") && [Le,
|
|
2591
|
+
const u = await Ui(e.url, a);
|
|
2592
|
+
if ((n === "GET" || n === "PATCH") && [Le, Di].indexOf(u.status) > -1)
|
|
2572
2593
|
return await u.json();
|
|
2573
2594
|
if (["POST", "PUT"].indexOf(n) > -1 && [Le, _t].indexOf(u.status) > -1) {
|
|
2574
2595
|
let c = e.key;
|
|
2575
2596
|
return u.status === _t && (c = u.headers.location), c;
|
|
2576
2597
|
} else {
|
|
2577
|
-
if (n === "DELETE" && [Le,
|
|
2598
|
+
if (n === "DELETE" && [Le, Ci].indexOf(u.status) > -1)
|
|
2578
2599
|
return;
|
|
2579
2600
|
if (u.status == Le)
|
|
2580
2601
|
return;
|
|
@@ -2592,7 +2613,7 @@ class Mi {
|
|
|
2592
2613
|
}), u;
|
|
2593
2614
|
}
|
|
2594
2615
|
processRequestQueue() {
|
|
2595
|
-
if (this.pendingRequests >=
|
|
2616
|
+
if (this.pendingRequests >= Ni || this.requestQueue.length === 0)
|
|
2596
2617
|
return;
|
|
2597
2618
|
const e = this.requestQueue.pop();
|
|
2598
2619
|
this.pendingRequests++;
|
|
@@ -2615,52 +2636,52 @@ ke && typeof ke.ownKeys == "function" ? $e = ke.ownKeys : Object.getOwnPropertyS
|
|
|
2615
2636
|
} : $e = function(e) {
|
|
2616
2637
|
return Object.getOwnPropertyNames(e);
|
|
2617
2638
|
};
|
|
2618
|
-
function
|
|
2619
|
-
console && console.warn && console.warn(
|
|
2639
|
+
function Gi(i) {
|
|
2640
|
+
console && console.warn && console.warn(i);
|
|
2620
2641
|
}
|
|
2621
|
-
var
|
|
2642
|
+
var cr = Number.isNaN || function(e) {
|
|
2622
2643
|
return e !== e;
|
|
2623
2644
|
};
|
|
2624
|
-
function
|
|
2625
|
-
|
|
2645
|
+
function P() {
|
|
2646
|
+
P.init.call(this);
|
|
2626
2647
|
}
|
|
2627
|
-
Tt.exports =
|
|
2628
|
-
Tt.exports.once =
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2648
|
+
Tt.exports = P;
|
|
2649
|
+
Tt.exports.once = Hi;
|
|
2650
|
+
P.EventEmitter = P;
|
|
2651
|
+
P.prototype._events = void 0;
|
|
2652
|
+
P.prototype._eventsCount = 0;
|
|
2653
|
+
P.prototype._maxListeners = void 0;
|
|
2633
2654
|
var Lt = 10;
|
|
2634
|
-
function Xe(
|
|
2635
|
-
if (typeof
|
|
2636
|
-
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof
|
|
2655
|
+
function Xe(i) {
|
|
2656
|
+
if (typeof i != "function")
|
|
2657
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof i);
|
|
2637
2658
|
}
|
|
2638
|
-
Object.defineProperty(
|
|
2659
|
+
Object.defineProperty(P, "defaultMaxListeners", {
|
|
2639
2660
|
enumerable: !0,
|
|
2640
2661
|
get: function() {
|
|
2641
2662
|
return Lt;
|
|
2642
2663
|
},
|
|
2643
|
-
set: function(
|
|
2644
|
-
if (typeof
|
|
2645
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' +
|
|
2646
|
-
Lt =
|
|
2664
|
+
set: function(i) {
|
|
2665
|
+
if (typeof i != "number" || i < 0 || cr(i))
|
|
2666
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + i + ".");
|
|
2667
|
+
Lt = i;
|
|
2647
2668
|
}
|
|
2648
2669
|
});
|
|
2649
|
-
|
|
2670
|
+
P.init = function() {
|
|
2650
2671
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
2651
2672
|
};
|
|
2652
|
-
|
|
2653
|
-
if (typeof e != "number" || e < 0 ||
|
|
2673
|
+
P.prototype.setMaxListeners = function(e) {
|
|
2674
|
+
if (typeof e != "number" || e < 0 || cr(e))
|
|
2654
2675
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
2655
2676
|
return this._maxListeners = e, this;
|
|
2656
2677
|
};
|
|
2657
|
-
function
|
|
2658
|
-
return
|
|
2678
|
+
function lr(i) {
|
|
2679
|
+
return i._maxListeners === void 0 ? P.defaultMaxListeners : i._maxListeners;
|
|
2659
2680
|
}
|
|
2660
|
-
|
|
2661
|
-
return
|
|
2681
|
+
P.prototype.getMaxListeners = function() {
|
|
2682
|
+
return lr(this);
|
|
2662
2683
|
};
|
|
2663
|
-
|
|
2684
|
+
P.prototype.emit = function(e) {
|
|
2664
2685
|
for (var n = [], a = 1; a < arguments.length; a++)
|
|
2665
2686
|
n.push(arguments[a]);
|
|
2666
2687
|
var u = e === "error", c = this._events;
|
|
@@ -2681,47 +2702,47 @@ R.prototype.emit = function(e) {
|
|
|
2681
2702
|
if (typeof m == "function")
|
|
2682
2703
|
Ut(m, this, n);
|
|
2683
2704
|
else
|
|
2684
|
-
for (var
|
|
2705
|
+
for (var b = m.length, w = gr(m, b), a = 0; a < b; ++a)
|
|
2685
2706
|
Ut(w[a], this, n);
|
|
2686
2707
|
return !0;
|
|
2687
2708
|
};
|
|
2688
|
-
function
|
|
2709
|
+
function pr(i, e, n, a) {
|
|
2689
2710
|
var u, c, l;
|
|
2690
|
-
if (Xe(n), c =
|
|
2711
|
+
if (Xe(n), c = i._events, c === void 0 ? (c = i._events = /* @__PURE__ */ Object.create(null), i._eventsCount = 0) : (c.newListener !== void 0 && (i.emit(
|
|
2691
2712
|
"newListener",
|
|
2692
2713
|
e,
|
|
2693
2714
|
n.listener ? n.listener : n
|
|
2694
|
-
), c =
|
|
2695
|
-
l = c[e] = n, ++
|
|
2696
|
-
else if (typeof l == "function" ? l = c[e] = a ? [n, l] : [l, n] : a ? l.unshift(n) : l.push(n), u =
|
|
2715
|
+
), c = i._events), l = c[e]), l === void 0)
|
|
2716
|
+
l = c[e] = n, ++i._eventsCount;
|
|
2717
|
+
else if (typeof l == "function" ? l = c[e] = a ? [n, l] : [l, n] : a ? l.unshift(n) : l.push(n), u = lr(i), u > 0 && l.length > u && !l.warned) {
|
|
2697
2718
|
l.warned = !0;
|
|
2698
2719
|
var f = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
2699
|
-
f.name = "MaxListenersExceededWarning", f.emitter =
|
|
2720
|
+
f.name = "MaxListenersExceededWarning", f.emitter = i, f.type = e, f.count = l.length, Gi(f);
|
|
2700
2721
|
}
|
|
2701
|
-
return
|
|
2722
|
+
return i;
|
|
2702
2723
|
}
|
|
2703
|
-
|
|
2704
|
-
return
|
|
2724
|
+
P.prototype.addListener = function(e, n) {
|
|
2725
|
+
return pr(this, e, n, !1);
|
|
2705
2726
|
};
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
return
|
|
2727
|
+
P.prototype.on = P.prototype.addListener;
|
|
2728
|
+
P.prototype.prependListener = function(e, n) {
|
|
2729
|
+
return pr(this, e, n, !0);
|
|
2709
2730
|
};
|
|
2710
|
-
function
|
|
2731
|
+
function Wi() {
|
|
2711
2732
|
if (!this.fired)
|
|
2712
2733
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
2713
2734
|
}
|
|
2714
|
-
function
|
|
2715
|
-
var a = { fired: !1, wrapFn: void 0, target:
|
|
2735
|
+
function hr(i, e, n) {
|
|
2736
|
+
var a = { fired: !1, wrapFn: void 0, target: i, type: e, listener: n }, u = Wi.bind(a);
|
|
2716
2737
|
return u.listener = n, a.wrapFn = u, u;
|
|
2717
2738
|
}
|
|
2718
|
-
|
|
2719
|
-
return Xe(n), this.on(e,
|
|
2739
|
+
P.prototype.once = function(e, n) {
|
|
2740
|
+
return Xe(n), this.on(e, hr(this, e, n)), this;
|
|
2720
2741
|
};
|
|
2721
|
-
|
|
2722
|
-
return Xe(n), this.prependListener(e,
|
|
2742
|
+
P.prototype.prependOnceListener = function(e, n) {
|
|
2743
|
+
return Xe(n), this.prependListener(e, hr(this, e, n)), this;
|
|
2723
2744
|
};
|
|
2724
|
-
|
|
2745
|
+
P.prototype.removeListener = function(e, n) {
|
|
2725
2746
|
var a, u, c, l, f;
|
|
2726
2747
|
if (Xe(n), u = this._events, u === void 0)
|
|
2727
2748
|
return this;
|
|
@@ -2737,12 +2758,12 @@ R.prototype.removeListener = function(e, n) {
|
|
|
2737
2758
|
}
|
|
2738
2759
|
if (c < 0)
|
|
2739
2760
|
return this;
|
|
2740
|
-
c === 0 ? a.shift() :
|
|
2761
|
+
c === 0 ? a.shift() : Ji(a, c), a.length === 1 && (u[e] = a[0]), u.removeListener !== void 0 && this.emit("removeListener", e, f || n);
|
|
2741
2762
|
}
|
|
2742
2763
|
return this;
|
|
2743
2764
|
};
|
|
2744
|
-
|
|
2745
|
-
|
|
2765
|
+
P.prototype.off = P.prototype.removeListener;
|
|
2766
|
+
P.prototype.removeAllListeners = function(e) {
|
|
2746
2767
|
var n, a, u;
|
|
2747
2768
|
if (a = this._events, a === void 0)
|
|
2748
2769
|
return this;
|
|
@@ -2761,27 +2782,27 @@ R.prototype.removeAllListeners = function(e) {
|
|
|
2761
2782
|
this.removeListener(e, n[u]);
|
|
2762
2783
|
return this;
|
|
2763
2784
|
};
|
|
2764
|
-
function
|
|
2765
|
-
var a =
|
|
2785
|
+
function yr(i, e, n) {
|
|
2786
|
+
var a = i._events;
|
|
2766
2787
|
if (a === void 0)
|
|
2767
2788
|
return [];
|
|
2768
2789
|
var u = a[e];
|
|
2769
|
-
return u === void 0 ? [] : typeof u == "function" ? n ? [u.listener || u] : [u] : n ?
|
|
2790
|
+
return u === void 0 ? [] : typeof u == "function" ? n ? [u.listener || u] : [u] : n ? zi(u) : gr(u, u.length);
|
|
2770
2791
|
}
|
|
2771
|
-
|
|
2772
|
-
return
|
|
2792
|
+
P.prototype.listeners = function(e) {
|
|
2793
|
+
return yr(this, e, !0);
|
|
2773
2794
|
};
|
|
2774
|
-
|
|
2775
|
-
return
|
|
2795
|
+
P.prototype.rawListeners = function(e) {
|
|
2796
|
+
return yr(this, e, !1);
|
|
2776
2797
|
};
|
|
2777
|
-
|
|
2778
|
-
return typeof
|
|
2798
|
+
P.listenerCount = function(i, e) {
|
|
2799
|
+
return typeof i.listenerCount == "function" ? i.listenerCount(e) : dr.call(i, e);
|
|
2779
2800
|
};
|
|
2780
|
-
|
|
2781
|
-
function
|
|
2801
|
+
P.prototype.listenerCount = dr;
|
|
2802
|
+
function dr(i) {
|
|
2782
2803
|
var e = this._events;
|
|
2783
2804
|
if (e !== void 0) {
|
|
2784
|
-
var n = e[
|
|
2805
|
+
var n = e[i];
|
|
2785
2806
|
if (typeof n == "function")
|
|
2786
2807
|
return 1;
|
|
2787
2808
|
if (n !== void 0)
|
|
@@ -2789,64 +2810,64 @@ function yr(o) {
|
|
|
2789
2810
|
}
|
|
2790
2811
|
return 0;
|
|
2791
2812
|
}
|
|
2792
|
-
|
|
2813
|
+
P.prototype.eventNames = function() {
|
|
2793
2814
|
return this._eventsCount > 0 ? $e(this._events) : [];
|
|
2794
2815
|
};
|
|
2795
|
-
function
|
|
2816
|
+
function gr(i, e) {
|
|
2796
2817
|
for (var n = new Array(e), a = 0; a < e; ++a)
|
|
2797
|
-
n[a] =
|
|
2818
|
+
n[a] = i[a];
|
|
2798
2819
|
return n;
|
|
2799
2820
|
}
|
|
2800
|
-
function
|
|
2801
|
-
for (; e + 1 <
|
|
2802
|
-
|
|
2803
|
-
|
|
2821
|
+
function Ji(i, e) {
|
|
2822
|
+
for (; e + 1 < i.length; e++)
|
|
2823
|
+
i[e] = i[e + 1];
|
|
2824
|
+
i.pop();
|
|
2804
2825
|
}
|
|
2805
|
-
function
|
|
2806
|
-
for (var e = new Array(
|
|
2807
|
-
e[n] =
|
|
2826
|
+
function zi(i) {
|
|
2827
|
+
for (var e = new Array(i.length), n = 0; n < e.length; ++n)
|
|
2828
|
+
e[n] = i[n].listener || i[n];
|
|
2808
2829
|
return e;
|
|
2809
2830
|
}
|
|
2810
|
-
function
|
|
2831
|
+
function Hi(i, e) {
|
|
2811
2832
|
return new Promise(function(n, a) {
|
|
2812
2833
|
function u(l) {
|
|
2813
|
-
|
|
2834
|
+
i.removeListener(e, c), a(l);
|
|
2814
2835
|
}
|
|
2815
2836
|
function c() {
|
|
2816
|
-
typeof
|
|
2837
|
+
typeof i.removeListener == "function" && i.removeListener("error", u), n([].slice.call(arguments));
|
|
2817
2838
|
}
|
|
2818
|
-
|
|
2839
|
+
vr(i, e, c, { once: !0 }), e !== "error" && Ki(i, u, { once: !0 });
|
|
2819
2840
|
});
|
|
2820
2841
|
}
|
|
2821
|
-
function
|
|
2822
|
-
typeof
|
|
2842
|
+
function Ki(i, e, n) {
|
|
2843
|
+
typeof i.on == "function" && vr(i, "error", e, n);
|
|
2823
2844
|
}
|
|
2824
|
-
function
|
|
2825
|
-
if (typeof
|
|
2826
|
-
a.once ?
|
|
2827
|
-
else if (typeof
|
|
2828
|
-
|
|
2829
|
-
a.once &&
|
|
2845
|
+
function vr(i, e, n, a) {
|
|
2846
|
+
if (typeof i.on == "function")
|
|
2847
|
+
a.once ? i.once(e, n) : i.on(e, n);
|
|
2848
|
+
else if (typeof i.addEventListener == "function")
|
|
2849
|
+
i.addEventListener(e, function u(c) {
|
|
2850
|
+
a.once && i.removeEventListener(e, u), n(c);
|
|
2830
2851
|
});
|
|
2831
2852
|
else
|
|
2832
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof
|
|
2853
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof i);
|
|
2833
2854
|
}
|
|
2834
|
-
var
|
|
2835
|
-
const Ke = "messaging.compcon",
|
|
2836
|
-
class
|
|
2855
|
+
var Qi = Tt.exports;
|
|
2856
|
+
const Ke = "messaging.compcon", Vi = 1e4, Xi = 1e4, Yi = 20, mr = 100, wr = 200;
|
|
2857
|
+
class Zi {
|
|
2837
2858
|
constructor(e) {
|
|
2838
2859
|
const n = (/* @__PURE__ */ new Date()).valueOf();
|
|
2839
2860
|
this.lastProgress = void 0, this.publishTime = n, this.callback = e;
|
|
2840
2861
|
}
|
|
2841
2862
|
}
|
|
2842
|
-
async function
|
|
2843
|
-
|
|
2844
|
-
setTimeout(() => e(null),
|
|
2863
|
+
async function eo(i) {
|
|
2864
|
+
i !== 0 && await new Promise((e) => {
|
|
2865
|
+
setTimeout(() => e(null), i);
|
|
2845
2866
|
});
|
|
2846
2867
|
}
|
|
2847
|
-
class
|
|
2868
|
+
class to {
|
|
2848
2869
|
constructor(e, n, a, u) {
|
|
2849
|
-
this.pendingJobs = /* @__PURE__ */ new Map(), this.jobQueue = Ke + "." + n + ".jobs", this.statusQueue = Ke + "." + n + ".status", this.timeout = a ||
|
|
2870
|
+
this.pendingJobs = /* @__PURE__ */ new Map(), this.jobQueue = Ke + "." + n + ".jobs", this.statusQueue = Ke + "." + n + ".status", this.timeout = a || Vi, this.progressTimeout = u || Xi, this.de = e, this.jobStatusQueueListener = (c) => {
|
|
2850
2871
|
if (this.pendingJobs.has(c.key)) {
|
|
2851
2872
|
const l = this.pendingJobs.get(c.key);
|
|
2852
2873
|
l.lastProgress = (/* @__PURE__ */ new Date()).valueOf(), l.callback(c.value.err, c), c.value.done && this.pendingJobs.delete(c.key);
|
|
@@ -2858,22 +2879,22 @@ class Zi {
|
|
|
2858
2879
|
}
|
|
2859
2880
|
async addJob(e, n, a, u) {
|
|
2860
2881
|
a = a || this.timeout, u = u || this.progressTimeout;
|
|
2861
|
-
const c =
|
|
2882
|
+
const c = ur();
|
|
2862
2883
|
return await this.de.connection.write(this.jobQueue, c, e), new Promise((l, f) => {
|
|
2863
2884
|
const m = setInterval(() => {
|
|
2864
|
-
const
|
|
2885
|
+
const b = (/* @__PURE__ */ new Date()).valueOf();
|
|
2865
2886
|
let w = !1;
|
|
2866
|
-
this.pendingJobs[c].lastProgress != null && (w =
|
|
2867
|
-
const O =
|
|
2887
|
+
this.pendingJobs[c].lastProgress != null && (w = b > this.pendingJobs[c].lastProgress + u);
|
|
2888
|
+
const O = b > this.pendingJobs[c].publishTime + a;
|
|
2868
2889
|
(w || O) && (this.pendingJobs[c] = null, clearInterval(m), f(new or(`Timeout for job id ${c}`, w)));
|
|
2869
2890
|
}, 500);
|
|
2870
|
-
this.pendingJobs[c] = new
|
|
2871
|
-
|
|
2891
|
+
this.pendingJobs[c] = new Zi((b, w) => {
|
|
2892
|
+
b ? (clearInterval(m), f(new ar(b))) : w.value.done ? (clearInterval(m), l(w.value), this.de.connection.delete(this.statusQueue, w.key)) : typeof n == "function" && n(w.value);
|
|
2872
2893
|
});
|
|
2873
2894
|
});
|
|
2874
2895
|
}
|
|
2875
2896
|
}
|
|
2876
|
-
class
|
|
2897
|
+
class ro extends Qi.EventEmitter {
|
|
2877
2898
|
constructor(e, n, a) {
|
|
2878
2899
|
super(), this.jobCount = 0, this.statusQueue = Ke + "." + n + ".status", this.jobQueue = Ke + "." + n + ".jobs", this.de = e, this.clientId = a, this.jobQueueListener = (u) => {
|
|
2879
2900
|
u.isDeleted || u.value == null || this.jobHandler(u.key, u.value).catch(() => this.emit("job", { id: u.value.id, status: "No worker" }));
|
|
@@ -2883,7 +2904,7 @@ class eo extends Hi.EventEmitter {
|
|
|
2883
2904
|
this.de.connection.removeListener(this.jobQueueListener), this.removeAllListeners();
|
|
2884
2905
|
}
|
|
2885
2906
|
async jobHandler(e, n) {
|
|
2886
|
-
this.emit("job", { id: n.id, status: "Job received" }), await
|
|
2907
|
+
this.emit("job", { id: n.id, status: "Job received" }), await eo(Math.floor(Math.random() * Yi));
|
|
2887
2908
|
const a = await this.waitForWorker(n);
|
|
2888
2909
|
try {
|
|
2889
2910
|
const u = {
|
|
@@ -2911,22 +2932,22 @@ class eo extends Hi.EventEmitter {
|
|
|
2911
2932
|
clearInterval(u), this.emit("job", { id: e.id, status: "Worker assigned" }), n(l);
|
|
2912
2933
|
return;
|
|
2913
2934
|
} else
|
|
2914
|
-
c ==
|
|
2935
|
+
c == mr ? (clearInterval(u), this.emit("job", { id: e.id, error: "Not supported" }), a(new Error("Job not supported"))) : c == wr || (clearInterval(u), this.emit("job", { id: e.id, errno: c }), a(new Error(`Error no : ${c}`)));
|
|
2915
2936
|
});
|
|
2916
2937
|
}, 100);
|
|
2917
2938
|
});
|
|
2918
2939
|
}
|
|
2919
2940
|
}
|
|
2920
|
-
const
|
|
2921
|
-
class
|
|
2941
|
+
const br = "#reqrep/", Er = "#reqrep-progress/";
|
|
2942
|
+
class no {
|
|
2922
2943
|
constructor(e, n) {
|
|
2923
2944
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
2924
2945
|
this.lastProgress = a, this.requestTime = a, this.reply = e, this.progress = n;
|
|
2925
2946
|
}
|
|
2926
2947
|
}
|
|
2927
|
-
class
|
|
2948
|
+
class io {
|
|
2928
2949
|
constructor(e, n, a, u) {
|
|
2929
|
-
this.pendingRequests = /* @__PURE__ */ new Map(), this.timeout = a || 5e3, this.progressTimeout = u || 5e3, this.channel =
|
|
2950
|
+
this.pendingRequests = /* @__PURE__ */ new Map(), this.timeout = a || 5e3, this.progressTimeout = u || 5e3, this.channel = br + n, this.progressChannel = Er + n, this.de = e, this.progressListener = (c) => {
|
|
2930
2951
|
const l = this.pendingRequests[c.key];
|
|
2931
2952
|
l && (l.lastProgress = (/* @__PURE__ */ new Date()).valueOf(), typeof l.progress == "function" && l.progress(c.value.data));
|
|
2932
2953
|
}, this.replyListener = (c) => {
|
|
@@ -2938,28 +2959,32 @@ class ro {
|
|
|
2938
2959
|
}
|
|
2939
2960
|
async request(e, n, a, u) {
|
|
2940
2961
|
return a = a || this.timeout, u = u || this.progressTimeout, new Promise((c, l) => {
|
|
2941
|
-
var f =
|
|
2942
|
-
this.de.connection.signalEvent(this.channel, f, e)
|
|
2962
|
+
var f = ur();
|
|
2963
|
+
this.de.connection.signalEvent(this.channel, f, e).catch((b) => {
|
|
2964
|
+
this.pendingRequests[f] = null, clearInterval(m), l(b);
|
|
2965
|
+
});
|
|
2943
2966
|
const m = setInterval(() => {
|
|
2944
|
-
const
|
|
2967
|
+
const b = (/* @__PURE__ */ new Date()).valueOf(), w = b > this.pendingRequests[f].lastProgress + u, O = b > this.pendingRequests[f].requestTime + a;
|
|
2945
2968
|
(w || O) && (this.pendingRequests[f] = null, clearInterval(m), l(new or(`Timeout in request id ${f}`, w)));
|
|
2946
2969
|
}, 500);
|
|
2947
|
-
this.pendingRequests[f] = new
|
|
2948
|
-
clearInterval(m),
|
|
2970
|
+
this.pendingRequests[f] = new no((b, w) => {
|
|
2971
|
+
clearInterval(m), b ? l(new ar(b)) : c(w);
|
|
2949
2972
|
}, n);
|
|
2950
2973
|
});
|
|
2951
2974
|
}
|
|
2952
2975
|
}
|
|
2953
|
-
class
|
|
2976
|
+
class oo {
|
|
2954
2977
|
constructor(e, n) {
|
|
2955
|
-
this.channel =
|
|
2978
|
+
this.channel = br + n, this.progressChannel = Er + n, this.de = e, this.requestListener = (a) => {
|
|
2956
2979
|
this.onMessage !== void 0 && this.onMessage(a.value, (u, c) => {
|
|
2957
2980
|
if (this.de.connection.connected) {
|
|
2958
2981
|
const l = u instanceof Error ? u.message : u;
|
|
2959
|
-
this.de.connection.signalEvent(this.channel, a.key, { err: l, data: c })
|
|
2982
|
+
this.de.connection.signalEvent(this.channel, a.key, { err: l, data: c }).catch(() => {
|
|
2983
|
+
});
|
|
2960
2984
|
}
|
|
2961
2985
|
}, (u) => {
|
|
2962
|
-
this.de.connection.connected && this.de.connection.signalEvent(this.progressChannel, a.key, { data: u })
|
|
2986
|
+
this.de.connection.connected && this.de.connection.signalEvent(this.progressChannel, a.key, { data: u }).catch(() => {
|
|
2987
|
+
});
|
|
2963
2988
|
});
|
|
2964
2989
|
}, e.connection.addListener(this.channel, "*", !0, this.requestListener);
|
|
2965
2990
|
}
|
|
@@ -2968,29 +2993,32 @@ class no {
|
|
|
2968
2993
|
}
|
|
2969
2994
|
}
|
|
2970
2995
|
var gt;
|
|
2971
|
-
((
|
|
2972
|
-
|
|
2973
|
-
Requestor:
|
|
2974
|
-
Replier:
|
|
2975
|
-
},
|
|
2976
|
-
CompetingConsumer:
|
|
2977
|
-
Producer:
|
|
2978
|
-
},
|
|
2979
|
-
JOB_NOT_SUPPORTED:
|
|
2980
|
-
NO_WORKER_AVAILABLE:
|
|
2996
|
+
((i) => {
|
|
2997
|
+
i.RequestReply = {
|
|
2998
|
+
Requestor: io,
|
|
2999
|
+
Replier: oo
|
|
3000
|
+
}, i.CompetingConsumers = {
|
|
3001
|
+
CompetingConsumer: ro,
|
|
3002
|
+
Producer: to
|
|
3003
|
+
}, i.Errors = {
|
|
3004
|
+
JOB_NOT_SUPPORTED: mr,
|
|
3005
|
+
NO_WORKER_AVAILABLE: wr
|
|
2981
3006
|
};
|
|
2982
3007
|
})(gt || (gt = {}));
|
|
2983
3008
|
typeof window < "u" && window && (window.Cachearoo = {
|
|
2984
|
-
Cachearoo:
|
|
2985
|
-
CachearooSettings:
|
|
3009
|
+
Cachearoo: $i,
|
|
3010
|
+
CachearooSettings: fr,
|
|
2986
3011
|
RequestOptions: He,
|
|
2987
3012
|
Messaging: gt
|
|
2988
3013
|
});
|
|
2989
3014
|
export {
|
|
2990
|
-
|
|
2991
|
-
|
|
3015
|
+
sr as AlreadyExistsError,
|
|
3016
|
+
$i as Cachearoo,
|
|
3017
|
+
fr as CachearooSettings,
|
|
2992
3018
|
gt as Messaging,
|
|
2993
|
-
|
|
3019
|
+
oo as Replier,
|
|
3020
|
+
ar as ReplyError,
|
|
2994
3021
|
He as RequestOptions,
|
|
2995
|
-
|
|
3022
|
+
io as Requestor,
|
|
3023
|
+
or as TimeoutError
|
|
2996
3024
|
};
|