@streamlayer/sdk-web 0.28.16 → 0.28.18
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/lib/cjs/index.js +9 -9
- package/lib/es/index.js +834 -811
- package/package.json +9 -9
package/lib/es/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { QuestionType as
|
|
1
|
+
import { QuestionType as Re, SilenceSetting as Kr, QuestionStatus as Yt } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
|
|
2
2
|
import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
|
|
3
3
|
import { SdkOverlayType as ue } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
4
|
-
import { computed as
|
|
4
|
+
import { computed as Hr, map as qn, atom as Tt } from "nanostores";
|
|
5
5
|
import "@nanostores/logger";
|
|
6
6
|
import "microdiff";
|
|
7
|
-
import { Code as
|
|
8
|
-
import { createGrpcWebTransport as
|
|
9
|
-
import { nanoquery as
|
|
10
|
-
import { Events as
|
|
11
|
-
import { Client as
|
|
7
|
+
import { Code as Qn, createPromiseClient as Gn, createCallbackClient as zn } from "@connectrpc/connect";
|
|
8
|
+
import { createGrpcWebTransport as Kn } from "@connectrpc/connect-web";
|
|
9
|
+
import { nanoquery as Hn } from "@nanostores/query";
|
|
10
|
+
import { Events as Wn } from "@streamlayer/sl-eslib/sports/events/events_connect";
|
|
11
|
+
import { Client as _t } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
|
|
12
12
|
import { Users as Wr } from "@streamlayer/sl-eslib/users/users_connect";
|
|
13
|
-
import { pino as
|
|
13
|
+
import { pino as Jn } from "pino";
|
|
14
14
|
import { Feed as ve } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
|
|
15
15
|
import { Leaderboard as Jr } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
|
|
16
16
|
import "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb";
|
|
17
17
|
var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
18
|
-
function
|
|
18
|
+
function Yn(t) {
|
|
19
19
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
20
20
|
}
|
|
21
|
-
var O = {}, Xr = {},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var we = [], se = [],
|
|
26
|
-
for (var
|
|
27
|
-
we[
|
|
21
|
+
var O = {}, Xr = {}, Ct = {};
|
|
22
|
+
Ct.byteLength = ei;
|
|
23
|
+
Ct.toByteArray = ri;
|
|
24
|
+
Ct.fromByteArray = oi;
|
|
25
|
+
var we = [], se = [], Xn = typeof Uint8Array < "u" ? Uint8Array : Array, Nt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
26
|
+
for (var qe = 0, Zn = Nt.length; qe < Zn; ++qe)
|
|
27
|
+
we[qe] = Nt[qe], se[Nt.charCodeAt(qe)] = qe;
|
|
28
28
|
se["-".charCodeAt(0)] = 62;
|
|
29
29
|
se["_".charCodeAt(0)] = 63;
|
|
30
30
|
function Zr(t) {
|
|
@@ -36,60 +36,60 @@ function Zr(t) {
|
|
|
36
36
|
var o = r === e ? 0 : 4 - r % 4;
|
|
37
37
|
return [r, o];
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ei(t) {
|
|
40
40
|
var e = Zr(t), r = e[0], o = e[1];
|
|
41
41
|
return (r + o) * 3 / 4 - o;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ti(t, e, r) {
|
|
44
44
|
return (e + r) * 3 / 4 - r;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
var e, r = Zr(t), o = r[0], s = r[1], u = new
|
|
46
|
+
function ri(t) {
|
|
47
|
+
var e, r = Zr(t), o = r[0], s = r[1], u = new Xn(ti(t, o, s)), l = 0, f = s > 0 ? o - 4 : o, p;
|
|
48
48
|
for (p = 0; p < f; p += 4)
|
|
49
49
|
e = se[t.charCodeAt(p)] << 18 | se[t.charCodeAt(p + 1)] << 12 | se[t.charCodeAt(p + 2)] << 6 | se[t.charCodeAt(p + 3)], u[l++] = e >> 16 & 255, u[l++] = e >> 8 & 255, u[l++] = e & 255;
|
|
50
50
|
return s === 2 && (e = se[t.charCodeAt(p)] << 2 | se[t.charCodeAt(p + 1)] >> 4, u[l++] = e & 255), s === 1 && (e = se[t.charCodeAt(p)] << 10 | se[t.charCodeAt(p + 1)] << 4 | se[t.charCodeAt(p + 2)] >> 2, u[l++] = e >> 8 & 255, u[l++] = e & 255), u;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ni(t) {
|
|
53
53
|
return we[t >> 18 & 63] + we[t >> 12 & 63] + we[t >> 6 & 63] + we[t & 63];
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function ii(t, e, r) {
|
|
56
56
|
for (var o, s = [], u = e; u < r; u += 3)
|
|
57
|
-
o = (t[u] << 16 & 16711680) + (t[u + 1] << 8 & 65280) + (t[u + 2] & 255), s.push(
|
|
57
|
+
o = (t[u] << 16 & 16711680) + (t[u + 1] << 8 & 65280) + (t[u + 2] & 255), s.push(ni(o));
|
|
58
58
|
return s.join("");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function oi(t) {
|
|
61
61
|
for (var e, r = t.length, o = r % 3, s = [], u = 16383, l = 0, f = r - o; l < f; l += u)
|
|
62
|
-
s.push(
|
|
62
|
+
s.push(ii(t, l, l + u > f ? f : l + u));
|
|
63
63
|
return o === 1 ? (e = t[r - 1], s.push(
|
|
64
64
|
we[e >> 2] + we[e << 4 & 63] + "=="
|
|
65
65
|
)) : o === 2 && (e = (t[r - 2] << 8) + t[r - 1], s.push(
|
|
66
66
|
we[e >> 10] + we[e >> 4 & 63] + we[e << 2 & 63] + "="
|
|
67
67
|
)), s.join("");
|
|
68
68
|
}
|
|
69
|
-
var
|
|
69
|
+
var fr = {};
|
|
70
70
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
71
|
-
|
|
72
|
-
var u, l, f = s * 8 - o - 1, p = (1 << f) - 1,
|
|
73
|
-
for (b += E, u =
|
|
71
|
+
fr.read = function(t, e, r, o, s) {
|
|
72
|
+
var u, l, f = s * 8 - o - 1, p = (1 << f) - 1, v = p >> 1, g = -7, b = r ? s - 1 : 0, E = r ? -1 : 1, F = t[e + b];
|
|
73
|
+
for (b += E, u = F & (1 << -g) - 1, F >>= -g, g += f; g > 0; u = u * 256 + t[e + b], b += E, g -= 8)
|
|
74
74
|
;
|
|
75
75
|
for (l = u & (1 << -g) - 1, u >>= -g, g += o; g > 0; l = l * 256 + t[e + b], b += E, g -= 8)
|
|
76
76
|
;
|
|
77
77
|
if (u === 0)
|
|
78
|
-
u = 1 -
|
|
78
|
+
u = 1 - v;
|
|
79
79
|
else {
|
|
80
80
|
if (u === p)
|
|
81
|
-
return l ? NaN : (
|
|
82
|
-
l = l + Math.pow(2, o), u = u -
|
|
81
|
+
return l ? NaN : (F ? -1 : 1) * (1 / 0);
|
|
82
|
+
l = l + Math.pow(2, o), u = u - v;
|
|
83
83
|
}
|
|
84
|
-
return (
|
|
84
|
+
return (F ? -1 : 1) * l * Math.pow(2, u - o);
|
|
85
85
|
};
|
|
86
|
-
|
|
87
|
-
var l, f, p,
|
|
88
|
-
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, l = g) : (l = Math.floor(Math.log(e) / Math.LN2), e * (p = Math.pow(2, -l)) < 1 && (l--, p *= 2), l + b >= 1 ? e += E / p : e += E * Math.pow(2, 1 - b), e * p >= 2 && (l++, p /= 2), l + b >= g ? (f = 0, l = g) : l + b >= 1 ? (f = (e * p - 1) * Math.pow(2, s), l = l + b) : (f = e * Math.pow(2, b - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r +
|
|
86
|
+
fr.write = function(t, e, r, o, s, u) {
|
|
87
|
+
var l, f, p, v = u * 8 - s - 1, g = (1 << v) - 1, b = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, F = o ? 0 : u - 1, N = o ? 1 : -1, P = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
88
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, l = g) : (l = Math.floor(Math.log(e) / Math.LN2), e * (p = Math.pow(2, -l)) < 1 && (l--, p *= 2), l + b >= 1 ? e += E / p : e += E * Math.pow(2, 1 - b), e * p >= 2 && (l++, p /= 2), l + b >= g ? (f = 0, l = g) : l + b >= 1 ? (f = (e * p - 1) * Math.pow(2, s), l = l + b) : (f = e * Math.pow(2, b - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r + F] = f & 255, F += N, f /= 256, s -= 8)
|
|
89
89
|
;
|
|
90
|
-
for (l = l << s | f,
|
|
90
|
+
for (l = l << s | f, v += s; v > 0; t[r + F] = l & 255, F += N, l /= 256, v -= 8)
|
|
91
91
|
;
|
|
92
|
-
t[r +
|
|
92
|
+
t[r + F - N] |= P * 128;
|
|
93
93
|
};
|
|
94
94
|
/*!
|
|
95
95
|
* The buffer module from node.js, for the browser.
|
|
@@ -98,8 +98,8 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
98
98
|
* @license MIT
|
|
99
99
|
*/
|
|
100
100
|
(function(t) {
|
|
101
|
-
const e =
|
|
102
|
-
t.Buffer = f, t.SlowBuffer =
|
|
101
|
+
const e = Ct, r = fr, o = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
102
|
+
t.Buffer = f, t.SlowBuffer = _, t.INSPECT_MAX_BYTES = 50;
|
|
103
103
|
const s = 2147483647;
|
|
104
104
|
t.kMaxLength = s, f.TYPED_ARRAY_SUPPORT = u(), !f.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
105
105
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
@@ -174,20 +174,20 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
174
174
|
f.from = function(a, n, i) {
|
|
175
175
|
return p(a, n, i);
|
|
176
176
|
}, Object.setPrototypeOf(f.prototype, Uint8Array.prototype), Object.setPrototypeOf(f, Uint8Array);
|
|
177
|
-
function
|
|
177
|
+
function v(a) {
|
|
178
178
|
if (typeof a != "number")
|
|
179
179
|
throw new TypeError('"size" argument must be of type number');
|
|
180
180
|
if (a < 0)
|
|
181
181
|
throw new RangeError('The value "' + a + '" is invalid for option "size"');
|
|
182
182
|
}
|
|
183
183
|
function g(a, n, i) {
|
|
184
|
-
return
|
|
184
|
+
return v(a), a <= 0 ? l(a) : n !== void 0 ? typeof i == "string" ? l(a).fill(n, i) : l(a).fill(n) : l(a);
|
|
185
185
|
}
|
|
186
186
|
f.alloc = function(a, n, i) {
|
|
187
187
|
return g(a, n, i);
|
|
188
188
|
};
|
|
189
189
|
function b(a) {
|
|
190
|
-
return
|
|
190
|
+
return v(a), l(a < 0 ? 0 : I(a) | 0);
|
|
191
191
|
}
|
|
192
192
|
f.allocUnsafe = function(a) {
|
|
193
193
|
return b(a);
|
|
@@ -202,7 +202,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
202
202
|
const h = c.write(a, n);
|
|
203
203
|
return h !== i && (c = c.slice(0, h)), c;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function F(a) {
|
|
206
206
|
const n = a.length < 0 ? 0 : I(a.length) | 0, i = l(n);
|
|
207
207
|
for (let c = 0; c < n; c += 1)
|
|
208
208
|
i[c] = a[c] & 255;
|
|
@@ -213,7 +213,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
213
213
|
const n = new Uint8Array(a);
|
|
214
214
|
return P(n.buffer, n.byteOffset, n.byteLength);
|
|
215
215
|
}
|
|
216
|
-
return
|
|
216
|
+
return F(a);
|
|
217
217
|
}
|
|
218
218
|
function P(a, n, i) {
|
|
219
219
|
if (n < 0 || a.byteLength < n)
|
|
@@ -229,16 +229,16 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
229
229
|
return i.length === 0 || a.copy(i, 0, 0, n), i;
|
|
230
230
|
}
|
|
231
231
|
if (a.length !== void 0)
|
|
232
|
-
return typeof a.length != "number" || Rt(a.length) ? l(0) :
|
|
232
|
+
return typeof a.length != "number" || Rt(a.length) ? l(0) : F(a);
|
|
233
233
|
if (a.type === "Buffer" && Array.isArray(a.data))
|
|
234
|
-
return
|
|
234
|
+
return F(a.data);
|
|
235
235
|
}
|
|
236
236
|
function I(a) {
|
|
237
237
|
if (a >= s)
|
|
238
238
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + s.toString(16) + " bytes");
|
|
239
239
|
return a | 0;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function _(a) {
|
|
242
242
|
return +a != a && (a = 0), f.alloc(+a);
|
|
243
243
|
}
|
|
244
244
|
f.isBuffer = function(n) {
|
|
@@ -322,7 +322,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
322
322
|
return i;
|
|
323
323
|
case "utf8":
|
|
324
324
|
case "utf-8":
|
|
325
|
-
return
|
|
325
|
+
return it(a).length;
|
|
326
326
|
case "ucs2":
|
|
327
327
|
case "ucs-2":
|
|
328
328
|
case "utf16le":
|
|
@@ -334,7 +334,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
334
334
|
return ht(a).length;
|
|
335
335
|
default:
|
|
336
336
|
if (h)
|
|
337
|
-
return c ? -1 :
|
|
337
|
+
return c ? -1 : it(a).length;
|
|
338
338
|
n = ("" + n).toLowerCase(), h = !0;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
@@ -346,17 +346,17 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
346
346
|
for (a || (a = "utf8"); ; )
|
|
347
347
|
switch (a) {
|
|
348
348
|
case "hex":
|
|
349
|
-
return
|
|
349
|
+
return le(this, n, i);
|
|
350
350
|
case "utf8":
|
|
351
351
|
case "utf-8":
|
|
352
|
-
return
|
|
352
|
+
return fe(this, n, i);
|
|
353
353
|
case "ascii":
|
|
354
|
-
return
|
|
354
|
+
return nt(this, n, i);
|
|
355
355
|
case "latin1":
|
|
356
356
|
case "binary":
|
|
357
357
|
return Be(this, n, i);
|
|
358
358
|
case "base64":
|
|
359
|
-
return
|
|
359
|
+
return rt(this, n, i);
|
|
360
360
|
case "ucs2":
|
|
361
361
|
case "ucs-2":
|
|
362
362
|
case "utf16le":
|
|
@@ -369,7 +369,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
f.prototype._isBuffer = !0;
|
|
372
|
-
function
|
|
372
|
+
function T(a, n, i) {
|
|
373
373
|
const c = a[n];
|
|
374
374
|
a[n] = a[i], a[i] = c;
|
|
375
375
|
}
|
|
@@ -378,25 +378,25 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
378
378
|
if (n % 2 !== 0)
|
|
379
379
|
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
380
380
|
for (let i = 0; i < n; i += 2)
|
|
381
|
-
|
|
381
|
+
T(this, i, i + 1);
|
|
382
382
|
return this;
|
|
383
383
|
}, f.prototype.swap32 = function() {
|
|
384
384
|
const n = this.length;
|
|
385
385
|
if (n % 4 !== 0)
|
|
386
386
|
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
387
387
|
for (let i = 0; i < n; i += 4)
|
|
388
|
-
|
|
388
|
+
T(this, i, i + 3), T(this, i + 1, i + 2);
|
|
389
389
|
return this;
|
|
390
390
|
}, f.prototype.swap64 = function() {
|
|
391
391
|
const n = this.length;
|
|
392
392
|
if (n % 8 !== 0)
|
|
393
393
|
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
394
394
|
for (let i = 0; i < n; i += 8)
|
|
395
|
-
|
|
395
|
+
T(this, i, i + 7), T(this, i + 1, i + 6), T(this, i + 2, i + 5), T(this, i + 3, i + 4);
|
|
396
396
|
return this;
|
|
397
397
|
}, f.prototype.toString = function() {
|
|
398
398
|
const n = this.length;
|
|
399
|
-
return n === 0 ? "" : arguments.length === 0 ?
|
|
399
|
+
return n === 0 ? "" : arguments.length === 0 ? fe(this, 0, n) : U.apply(this, arguments);
|
|
400
400
|
}, f.prototype.toLocaleString = f.prototype.toString, f.prototype.equals = function(n) {
|
|
401
401
|
if (!f.isBuffer(n))
|
|
402
402
|
throw new TypeError("Argument must be a Buffer");
|
|
@@ -502,16 +502,16 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
502
502
|
return m;
|
|
503
503
|
}
|
|
504
504
|
function ie(a, n, i, c) {
|
|
505
|
-
return it(
|
|
505
|
+
return ot(it(n, a.length - i), a, i, c);
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
return
|
|
507
|
+
function Ce(a, n, i, c) {
|
|
508
|
+
return ot(Pt(n), a, i, c);
|
|
509
509
|
}
|
|
510
510
|
function Se(a, n, i, c) {
|
|
511
|
-
return
|
|
511
|
+
return ot(ht(n), a, i, c);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
return
|
|
513
|
+
function ce(a, n, i, c) {
|
|
514
|
+
return ot(S(n, a.length - i), a, i, c);
|
|
515
515
|
}
|
|
516
516
|
f.prototype.write = function(n, i, c, h) {
|
|
517
517
|
if (i === void 0)
|
|
@@ -539,14 +539,14 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
539
539
|
case "ascii":
|
|
540
540
|
case "latin1":
|
|
541
541
|
case "binary":
|
|
542
|
-
return
|
|
542
|
+
return Ce(this, n, i, c);
|
|
543
543
|
case "base64":
|
|
544
544
|
return Se(this, n, i, c);
|
|
545
545
|
case "ucs2":
|
|
546
546
|
case "ucs-2":
|
|
547
547
|
case "utf16le":
|
|
548
548
|
case "utf-16le":
|
|
549
|
-
return
|
|
549
|
+
return ce(this, n, i, c);
|
|
550
550
|
default:
|
|
551
551
|
if (m)
|
|
552
552
|
throw new TypeError("Unknown encoding: " + h);
|
|
@@ -558,10 +558,10 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
558
558
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
559
559
|
};
|
|
560
560
|
};
|
|
561
|
-
function
|
|
561
|
+
function rt(a, n, i) {
|
|
562
562
|
return n === 0 && i === a.length ? e.fromByteArray(a) : e.fromByteArray(a.slice(n, i));
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function fe(a, n, i) {
|
|
565
565
|
i = Math.min(a.length, i);
|
|
566
566
|
const c = [];
|
|
567
567
|
let h = n;
|
|
@@ -601,7 +601,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
601
601
|
);
|
|
602
602
|
return i;
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function nt(a, n, i) {
|
|
605
605
|
let c = "";
|
|
606
606
|
i = Math.min(a.length, i);
|
|
607
607
|
for (let h = n; h < i; ++h)
|
|
@@ -615,12 +615,12 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
615
615
|
c += String.fromCharCode(a[h]);
|
|
616
616
|
return c;
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function le(a, n, i) {
|
|
619
619
|
const c = a.length;
|
|
620
620
|
(!n || n < 0) && (n = 0), (!i || i < 0 || i > c) && (i = c);
|
|
621
621
|
let h = "";
|
|
622
622
|
for (let y = n; y < i; ++y)
|
|
623
|
-
h +=
|
|
623
|
+
h += Vn[a[y]];
|
|
624
624
|
return h;
|
|
625
625
|
}
|
|
626
626
|
function ke(a, n, i) {
|
|
@@ -665,13 +665,13 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
665
665
|
}, f.prototype.readUint32BE = f.prototype.readUInt32BE = function(n, i) {
|
|
666
666
|
return n = n >>> 0, i || H(n, 4, this.length), this[n] * 16777216 + (this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3]);
|
|
667
667
|
}, f.prototype.readBigUInt64LE = Pe(function(n) {
|
|
668
|
-
n = n >>> 0,
|
|
668
|
+
n = n >>> 0, he(n, "offset");
|
|
669
669
|
const i = this[n], c = this[n + 7];
|
|
670
670
|
(i === void 0 || c === void 0) && oe(n, this.length - 8);
|
|
671
671
|
const h = i + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24, y = this[++n] + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + c * 2 ** 24;
|
|
672
672
|
return BigInt(h) + (BigInt(y) << BigInt(32));
|
|
673
673
|
}), f.prototype.readBigUInt64BE = Pe(function(n) {
|
|
674
|
-
n = n >>> 0,
|
|
674
|
+
n = n >>> 0, he(n, "offset");
|
|
675
675
|
const i = this[n], c = this[n + 7];
|
|
676
676
|
(i === void 0 || c === void 0) && oe(n, this.length - 8);
|
|
677
677
|
const h = i * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + this[++n], y = this[++n] * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + c;
|
|
@@ -703,13 +703,13 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
703
703
|
}, f.prototype.readInt32BE = function(n, i) {
|
|
704
704
|
return n = n >>> 0, i || H(n, 4, this.length), this[n] << 24 | this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3];
|
|
705
705
|
}, f.prototype.readBigInt64LE = Pe(function(n) {
|
|
706
|
-
n = n >>> 0,
|
|
706
|
+
n = n >>> 0, he(n, "offset");
|
|
707
707
|
const i = this[n], c = this[n + 7];
|
|
708
708
|
(i === void 0 || c === void 0) && oe(n, this.length - 8);
|
|
709
709
|
const h = this[n + 4] + this[n + 5] * 2 ** 8 + this[n + 6] * 2 ** 16 + (c << 24);
|
|
710
710
|
return (BigInt(h) << BigInt(32)) + BigInt(i + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24);
|
|
711
711
|
}), f.prototype.readBigInt64BE = Pe(function(n) {
|
|
712
|
-
n = n >>> 0,
|
|
712
|
+
n = n >>> 0, he(n, "offset");
|
|
713
713
|
const i = this[n], c = this[n + 7];
|
|
714
714
|
(i === void 0 || c === void 0) && oe(n, this.length - 8);
|
|
715
715
|
const h = (i << 24) + // Overflow
|
|
@@ -812,27 +812,27 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
812
812
|
}), f.prototype.writeBigInt64BE = Pe(function(n, i = 0) {
|
|
813
813
|
return A(this, n, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
814
814
|
});
|
|
815
|
-
function
|
|
815
|
+
function C(a, n, i, c, h, y) {
|
|
816
816
|
if (i + c > a.length)
|
|
817
817
|
throw new RangeError("Index out of range");
|
|
818
818
|
if (i < 0)
|
|
819
819
|
throw new RangeError("Index out of range");
|
|
820
820
|
}
|
|
821
821
|
function D(a, n, i, c, h) {
|
|
822
|
-
return n = +n, i = i >>> 0, h ||
|
|
822
|
+
return n = +n, i = i >>> 0, h || C(a, n, i, 4), r.write(a, n, i, c, 23, 4), i + 4;
|
|
823
823
|
}
|
|
824
824
|
f.prototype.writeFloatLE = function(n, i, c) {
|
|
825
825
|
return D(this, n, i, !0, c);
|
|
826
826
|
}, f.prototype.writeFloatBE = function(n, i, c) {
|
|
827
827
|
return D(this, n, i, !1, c);
|
|
828
828
|
};
|
|
829
|
-
function
|
|
830
|
-
return n = +n, i = i >>> 0, h ||
|
|
829
|
+
function V(a, n, i, c, h) {
|
|
830
|
+
return n = +n, i = i >>> 0, h || C(a, n, i, 8), r.write(a, n, i, c, 52, 8), i + 8;
|
|
831
831
|
}
|
|
832
832
|
f.prototype.writeDoubleLE = function(n, i, c) {
|
|
833
|
-
return
|
|
833
|
+
return V(this, n, i, !0, c);
|
|
834
834
|
}, f.prototype.writeDoubleBE = function(n, i, c) {
|
|
835
|
-
return
|
|
835
|
+
return V(this, n, i, !1, c);
|
|
836
836
|
}, f.prototype.copy = function(n, i, c, h) {
|
|
837
837
|
if (!f.isBuffer(n))
|
|
838
838
|
throw new TypeError("argument should be a Buffer");
|
|
@@ -923,11 +923,11 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
923
923
|
"ERR_OUT_OF_RANGE",
|
|
924
924
|
function(a, n, i) {
|
|
925
925
|
let c = `The value of "${a}" is out of range.`, h = i;
|
|
926
|
-
return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? h =
|
|
926
|
+
return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? h = M(String(i)) : typeof i == "bigint" && (h = String(i), (i > BigInt(2) ** BigInt(32) || i < -(BigInt(2) ** BigInt(32))) && (h = M(h)), h += "n"), c += ` It must be ${n}. Received ${h}`, c;
|
|
927
927
|
},
|
|
928
928
|
RangeError
|
|
929
929
|
);
|
|
930
|
-
function
|
|
930
|
+
function M(a) {
|
|
931
931
|
let n = "", i = a.length;
|
|
932
932
|
const c = a[0] === "-" ? 1 : 0;
|
|
933
933
|
for (; i >= c + 4; i -= 3)
|
|
@@ -935,7 +935,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
935
935
|
return `${a.slice(0, i)}${n}`;
|
|
936
936
|
}
|
|
937
937
|
function te(a, n, i) {
|
|
938
|
-
|
|
938
|
+
he(n, "offset"), (a[n] === void 0 || a[n + i] === void 0) && oe(n, a.length - (i + 1));
|
|
939
939
|
}
|
|
940
940
|
function ye(a, n, i, c, h, y) {
|
|
941
941
|
if (a > i || a < n) {
|
|
@@ -945,26 +945,26 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
945
945
|
}
|
|
946
946
|
te(c, h, y);
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function he(a, n) {
|
|
949
949
|
if (typeof a != "number")
|
|
950
950
|
throw new B.ERR_INVALID_ARG_TYPE(n, "number", a);
|
|
951
951
|
}
|
|
952
952
|
function oe(a, n, i) {
|
|
953
|
-
throw Math.floor(a) !== a ? (
|
|
953
|
+
throw Math.floor(a) !== a ? (he(a, i), new B.ERR_OUT_OF_RANGE(i || "offset", "an integer", a)) : n < 0 ? new B.ERR_BUFFER_OUT_OF_BOUNDS() : new B.ERR_OUT_OF_RANGE(
|
|
954
954
|
i || "offset",
|
|
955
955
|
`>= ${i ? 1 : 0} and <= ${n}`,
|
|
956
956
|
a
|
|
957
957
|
);
|
|
958
958
|
}
|
|
959
|
-
const
|
|
959
|
+
const Me = /[^+/0-9A-Za-z-_]/g;
|
|
960
960
|
function lt(a) {
|
|
961
|
-
if (a = a.split("=")[0], a = a.trim().replace(
|
|
961
|
+
if (a = a.split("=")[0], a = a.trim().replace(Me, ""), a.length < 2)
|
|
962
962
|
return "";
|
|
963
963
|
for (; a.length % 4 !== 0; )
|
|
964
964
|
a = a + "=";
|
|
965
965
|
return a;
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function it(a, n) {
|
|
968
968
|
n = n || 1 / 0;
|
|
969
969
|
let i;
|
|
970
970
|
const c = a.length;
|
|
@@ -1029,7 +1029,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
1029
1029
|
n.push(a.charCodeAt(i) & 255);
|
|
1030
1030
|
return n;
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function S(a, n) {
|
|
1033
1033
|
let i, c, h;
|
|
1034
1034
|
const y = [];
|
|
1035
1035
|
for (let m = 0; m < a.length && !((n -= 2) < 0); ++m)
|
|
@@ -1039,7 +1039,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
1039
1039
|
function ht(a) {
|
|
1040
1040
|
return e.toByteArray(lt(a));
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function ot(a, n, i, c) {
|
|
1043
1043
|
let h;
|
|
1044
1044
|
for (h = 0; h < c && !(h + i >= n.length || h >= a.length); ++h)
|
|
1045
1045
|
n[h + i] = a[h];
|
|
@@ -1051,7 +1051,7 @@ lr.write = function(t, e, r, o, s, u) {
|
|
|
1051
1051
|
function Rt(a) {
|
|
1052
1052
|
return a !== a;
|
|
1053
1053
|
}
|
|
1054
|
-
const
|
|
1054
|
+
const Vn = function() {
|
|
1055
1055
|
const a = "0123456789abcdef", n = new Array(256);
|
|
1056
1056
|
for (let i = 0; i < 16; ++i) {
|
|
1057
1057
|
const c = i * 16;
|
|
@@ -1101,7 +1101,7 @@ function tn(t) {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function si(t) {
|
|
1105
1105
|
if (be === clearTimeout)
|
|
1106
1106
|
return clearTimeout(t);
|
|
1107
1107
|
if ((be === Zt || !be) && clearTimeout)
|
|
@@ -1116,20 +1116,20 @@ function oi(t) {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
|
-
var
|
|
1120
|
-
function
|
|
1121
|
-
!
|
|
1119
|
+
var Te = [], We = !1, Le, pt = -1;
|
|
1120
|
+
function ai() {
|
|
1121
|
+
!We || !Le || (We = !1, Le.length ? Te = Le.concat(Te) : pt = -1, Te.length && rn());
|
|
1122
1122
|
}
|
|
1123
1123
|
function rn() {
|
|
1124
|
-
if (!
|
|
1125
|
-
var t = tn(
|
|
1126
|
-
|
|
1127
|
-
for (var e =
|
|
1128
|
-
for (
|
|
1129
|
-
|
|
1130
|
-
pt = -1, e =
|
|
1124
|
+
if (!We) {
|
|
1125
|
+
var t = tn(ai);
|
|
1126
|
+
We = !0;
|
|
1127
|
+
for (var e = Te.length; e; ) {
|
|
1128
|
+
for (Le = Te, Te = []; ++pt < e; )
|
|
1129
|
+
Le && Le[pt].run();
|
|
1130
|
+
pt = -1, e = Te.length;
|
|
1131
1131
|
}
|
|
1132
|
-
|
|
1132
|
+
Le = null, We = !1, si(t);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
1135
|
Y.nextTick = function(t) {
|
|
@@ -1137,7 +1137,7 @@ Y.nextTick = function(t) {
|
|
|
1137
1137
|
if (arguments.length > 1)
|
|
1138
1138
|
for (var r = 1; r < arguments.length; r++)
|
|
1139
1139
|
e[r - 1] = arguments[r];
|
|
1140
|
-
|
|
1140
|
+
Te.push(new nn(t, e)), Te.length === 1 && !We && tn(rn);
|
|
1141
1141
|
};
|
|
1142
1142
|
function nn(t, e) {
|
|
1143
1143
|
this.fun = t, this.array = e;
|
|
@@ -1151,17 +1151,17 @@ Y.env = {};
|
|
|
1151
1151
|
Y.argv = [];
|
|
1152
1152
|
Y.version = "";
|
|
1153
1153
|
Y.versions = {};
|
|
1154
|
-
function
|
|
1154
|
+
function _e() {
|
|
1155
1155
|
}
|
|
1156
|
-
Y.on =
|
|
1157
|
-
Y.addListener =
|
|
1158
|
-
Y.once =
|
|
1159
|
-
Y.off =
|
|
1160
|
-
Y.removeListener =
|
|
1161
|
-
Y.removeAllListeners =
|
|
1162
|
-
Y.emit =
|
|
1163
|
-
Y.prependListener =
|
|
1164
|
-
Y.prependOnceListener =
|
|
1156
|
+
Y.on = _e;
|
|
1157
|
+
Y.addListener = _e;
|
|
1158
|
+
Y.once = _e;
|
|
1159
|
+
Y.off = _e;
|
|
1160
|
+
Y.removeListener = _e;
|
|
1161
|
+
Y.removeAllListeners = _e;
|
|
1162
|
+
Y.emit = _e;
|
|
1163
|
+
Y.prependListener = _e;
|
|
1164
|
+
Y.prependOnceListener = _e;
|
|
1165
1165
|
Y.listeners = function(t) {
|
|
1166
1166
|
return [];
|
|
1167
1167
|
};
|
|
@@ -1177,13 +1177,13 @@ Y.chdir = function(t) {
|
|
|
1177
1177
|
Y.umask = function() {
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
};
|
|
1180
|
-
var
|
|
1180
|
+
var ui = en.exports;
|
|
1181
1181
|
(function(t) {
|
|
1182
1182
|
Object.defineProperty(t, Symbol.toStringTag, { value: "Module" });
|
|
1183
|
-
const e = Xr, r =
|
|
1183
|
+
const e = Xr, r = ui, o = (l) => l && l.__esModule ? l : { default: l }, s = o(r), u = globalThis || void 0 || self;
|
|
1184
1184
|
Object.defineProperty(t, "Buffer", { enumerable: !0, get: () => e.Buffer }), Object.defineProperty(t, "process", { enumerable: !0, get: () => s.default }), t.global = u;
|
|
1185
1185
|
})(O);
|
|
1186
|
-
class
|
|
1186
|
+
class ci {
|
|
1187
1187
|
}
|
|
1188
1188
|
window.slStore = /* @__PURE__ */ Object.create(null);
|
|
1189
1189
|
class Ot {
|
|
@@ -1202,9 +1202,9 @@ class Ot {
|
|
|
1202
1202
|
return this.store;
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
|
-
const
|
|
1205
|
+
const fi = (t) => {
|
|
1206
1206
|
const e = Object.keys(t);
|
|
1207
|
-
return
|
|
1207
|
+
return Hr(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((o, s) => [o, r[s]])));
|
|
1208
1208
|
};
|
|
1209
1209
|
class at extends Ot {
|
|
1210
1210
|
getValues = () => this.getStore().get();
|
|
@@ -1213,22 +1213,22 @@ class at extends Ot {
|
|
|
1213
1213
|
subscribe = (...e) => this.getStore().subscribe(...e);
|
|
1214
1214
|
unsubscribe = () => this.getStore().off();
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1216
|
+
const Ue = (t) => qn(t);
|
|
1217
1217
|
var Ie;
|
|
1218
1218
|
(function(t) {
|
|
1219
1219
|
t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
|
|
1220
1220
|
})(Ie || (Ie = {}));
|
|
1221
|
-
const
|
|
1221
|
+
const li = {
|
|
1222
1222
|
[ue.BETTING]: "betting",
|
|
1223
1223
|
[ue.GAMES]: "games",
|
|
1224
1224
|
[ue.PUBLIC_CHAT]: "publicChat",
|
|
1225
1225
|
[ue.TWITTER]: "twitter"
|
|
1226
1226
|
};
|
|
1227
|
-
var
|
|
1227
|
+
var $e;
|
|
1228
1228
|
(function(t) {
|
|
1229
1229
|
t.Ready = "ready", t.Suspended = "suspended";
|
|
1230
|
-
})(
|
|
1231
|
-
class
|
|
1230
|
+
})($e || ($e = {}));
|
|
1231
|
+
class lr {
|
|
1232
1232
|
status;
|
|
1233
1233
|
source;
|
|
1234
1234
|
config;
|
|
@@ -1236,7 +1236,7 @@ class hr {
|
|
|
1236
1236
|
listeners = /* @__PURE__ */ new Set();
|
|
1237
1237
|
settingsKey;
|
|
1238
1238
|
constructor({ settings: e, ...r }, o) {
|
|
1239
|
-
this.settingsKey =
|
|
1239
|
+
this.settingsKey = li[r.type], this.status = Tt($e.Suspended), this.config = new at(Ue(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new at(Ue(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new at(Ue({}), `feature:settings:${this.settingsKey}`), this.source = o;
|
|
1240
1240
|
}
|
|
1241
1241
|
get featureConfig() {
|
|
1242
1242
|
return this.config.getStore();
|
|
@@ -1248,10 +1248,10 @@ class hr {
|
|
|
1248
1248
|
this.listeners.add(e);
|
|
1249
1249
|
}
|
|
1250
1250
|
enable = () => {
|
|
1251
|
-
this.status.set(
|
|
1251
|
+
this.status.set($e.Ready);
|
|
1252
1252
|
};
|
|
1253
1253
|
disable = () => {
|
|
1254
|
-
this.status.set(
|
|
1254
|
+
this.status.set($e.Suspended);
|
|
1255
1255
|
};
|
|
1256
1256
|
setFeatureConfig = ({ settings: e, ...r }) => {
|
|
1257
1257
|
let o;
|
|
@@ -1278,7 +1278,7 @@ class hr {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
|
-
class
|
|
1281
|
+
class de extends Ot {
|
|
1282
1282
|
getValue = () => this.getStore().get();
|
|
1283
1283
|
getValues() {
|
|
1284
1284
|
throw new Error("not implemented");
|
|
@@ -1293,11 +1293,11 @@ class ce extends Ot {
|
|
|
1293
1293
|
return this.getStore().get();
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
const ne = (t) =>
|
|
1297
|
-
class
|
|
1296
|
+
const ne = (t) => Tt(t);
|
|
1297
|
+
class pe extends Ot {
|
|
1298
1298
|
atomStore;
|
|
1299
1299
|
constructor(e, r, o) {
|
|
1300
|
-
super(e, `api:${r}`), this.atomStore =
|
|
1300
|
+
super(e, `api:${r}`), this.atomStore = Tt(), o && e.subscribe((s) => {
|
|
1301
1301
|
this.atomStore.set(o(s));
|
|
1302
1302
|
});
|
|
1303
1303
|
}
|
|
@@ -1391,7 +1391,7 @@ class di {
|
|
|
1391
1391
|
ts: /* @__PURE__ */ new Date(),
|
|
1392
1392
|
log: []
|
|
1393
1393
|
};
|
|
1394
|
-
this.state = new at(
|
|
1394
|
+
this.state = new at(Ue(u), `subscription:${s.name}:state`), this.name = s.name, this.headers = e, this.listeners = /* @__PURE__ */ new Map(), this.params = o, this.method = r, s.withStore && (this.store = new de(ne(null), `subscription:${s.name}:store`)), "subscribe" in o && typeof o.subscribe == "function" && o.subscribe(() => {
|
|
1395
1395
|
this.reconnect();
|
|
1396
1396
|
}), this.updateState(Ae.Ready);
|
|
1397
1397
|
}
|
|
@@ -1433,7 +1433,7 @@ class di {
|
|
|
1433
1433
|
this.addStateLog(`data routed to ${this.listeners.size} listeners`);
|
|
1434
1434
|
};
|
|
1435
1435
|
onStreamError = (e) => {
|
|
1436
|
-
e !== void 0 && (e.code !==
|
|
1436
|
+
e !== void 0 && (e.code !== Qn.Canceled && e.rawMessage !== "[canceled] BodyStreamBuffer was aborted" ? (this.updateState(Ae.Failed), this.state.setValue("error", e)) : this.disconnect());
|
|
1437
1437
|
};
|
|
1438
1438
|
}
|
|
1439
1439
|
class yi {
|
|
@@ -1451,11 +1451,11 @@ class yi {
|
|
|
1451
1451
|
callbackClients;
|
|
1452
1452
|
subscriptions;
|
|
1453
1453
|
constructor(e) {
|
|
1454
|
-
this.host = e, this.$headers = new at(
|
|
1454
|
+
this.host = e, this.$headers = new at(Ue({
|
|
1455
1455
|
"sl-device-id": O.process?.env?.NX_DEVICE_ID || "sdk-web-dev"
|
|
1456
1456
|
}), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.callbackClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map();
|
|
1457
|
-
const [r, o, s] =
|
|
1458
|
-
this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport =
|
|
1457
|
+
const [r, o, s] = Hn();
|
|
1458
|
+
this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport = Kn({
|
|
1459
1459
|
baseUrl: e,
|
|
1460
1460
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1461
1461
|
// @ts-ignore
|
|
@@ -1491,14 +1491,14 @@ class yi {
|
|
|
1491
1491
|
const r = e.typeName;
|
|
1492
1492
|
if (this.clients.has(r))
|
|
1493
1493
|
return this.clients.get(r);
|
|
1494
|
-
const o =
|
|
1494
|
+
const o = Gn(e, this.transport);
|
|
1495
1495
|
return this.clients.set(r, o), o;
|
|
1496
1496
|
};
|
|
1497
1497
|
getCallbackClient = (e) => {
|
|
1498
1498
|
const r = e.typeName;
|
|
1499
1499
|
if (this.callbackClients.has(r))
|
|
1500
1500
|
return this.callbackClients.get(r);
|
|
1501
|
-
const o =
|
|
1501
|
+
const o = zn(e, this.transport);
|
|
1502
1502
|
return this.callbackClients.set(r, o), o;
|
|
1503
1503
|
};
|
|
1504
1504
|
// create unary client, used for query request
|
|
@@ -1534,7 +1534,7 @@ class yi {
|
|
|
1534
1534
|
};
|
|
1535
1535
|
}
|
|
1536
1536
|
const gi = (t, e) => {
|
|
1537
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1537
|
+
const { client: r, queryKey: o } = e.createPromiseClient(Wn, {
|
|
1538
1538
|
method: "retrieveEventId",
|
|
1539
1539
|
params: [t]
|
|
1540
1540
|
});
|
|
@@ -1552,7 +1552,7 @@ const gi = (t, e) => {
|
|
|
1552
1552
|
}
|
|
1553
1553
|
});
|
|
1554
1554
|
}, mi = (t, e) => {
|
|
1555
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1555
|
+
const { client: r, queryKey: o } = e.createPromiseClient(_t, { method: "getStream", params: [t] });
|
|
1556
1556
|
return e.nanoquery.createFetcherStore(o, {
|
|
1557
1557
|
fetcher: async (s, u, l) => l ? (await r.getStream({
|
|
1558
1558
|
id: l
|
|
@@ -1568,12 +1568,12 @@ const gi = (t, e) => {
|
|
|
1568
1568
|
const { client: e } = t.createPromiseClient(Wr, { method: "bypassAuth" });
|
|
1569
1569
|
return ({ userKey: r, schema: o, init: s }) => e.bypassAuth({ userKey: r, schema: o, init: s });
|
|
1570
1570
|
}, vi = (t, e) => {
|
|
1571
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1571
|
+
const { client: r, queryKey: o } = e.createPromiseClient(_t, { method: "get", params: [t] });
|
|
1572
1572
|
return e.nanoquery.createFetcherStore(o, {
|
|
1573
1573
|
fetcher: async () => (await r.get({})).data?.attributes
|
|
1574
1574
|
});
|
|
1575
1575
|
}, Si = (t, e) => {
|
|
1576
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1576
|
+
const { client: r, queryKey: o } = e.createPromiseClient(_t, { method: "getOrganization", params: [t] });
|
|
1577
1577
|
return e.nanoquery.createFetcherStore(o, {
|
|
1578
1578
|
fetcher: async () => {
|
|
1579
1579
|
const s = await r.getOrganization({});
|
|
@@ -1584,7 +1584,7 @@ const gi = (t, e) => {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
});
|
|
1586
1586
|
}, Ai = (t, e) => {
|
|
1587
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1587
|
+
const { client: r, queryKey: o } = e.createPromiseClient(_t, {
|
|
1588
1588
|
method: "getOrganizationAdvertising",
|
|
1589
1589
|
params: [t]
|
|
1590
1590
|
});
|
|
@@ -1594,7 +1594,7 @@ const gi = (t, e) => {
|
|
|
1594
1594
|
}, Ei = (t, e, r) => {
|
|
1595
1595
|
t.transport = new yi(e.host), t.sdk.host = t.transport.host, t.transport.setSdkKey(e.sdkKey), r();
|
|
1596
1596
|
};
|
|
1597
|
-
class
|
|
1597
|
+
class hr {
|
|
1598
1598
|
delimiter = ":";
|
|
1599
1599
|
prefix;
|
|
1600
1600
|
constructor(e = "main") {
|
|
@@ -1621,7 +1621,7 @@ var Ee;
|
|
|
1621
1621
|
(function(t) {
|
|
1622
1622
|
t.SCHEMA = "schema", t.EXTERNAL_TOKEN = "eToken", t.TOKEN = "token";
|
|
1623
1623
|
})(Ee || (Ee = {}));
|
|
1624
|
-
class
|
|
1624
|
+
class Ke extends hr {
|
|
1625
1625
|
constructor() {
|
|
1626
1626
|
super("user");
|
|
1627
1627
|
}
|
|
@@ -1649,7 +1649,7 @@ var Fe;
|
|
|
1649
1649
|
t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
|
|
1650
1650
|
})(Fe || (Fe = {}));
|
|
1651
1651
|
const Ii = (t) => {
|
|
1652
|
-
const e = new
|
|
1652
|
+
const e = new Ke(), r = new de(ne(e.getExternalToken()), "userKey"), o = new de(ne(e.getToken()), "userToken"), s = new pe(bi(o.getStore(), t), "user", (l) => l?.data?.data?.id), u = new pe(vi(o.getStore(), t), "userSettings");
|
|
1653
1653
|
return {
|
|
1654
1654
|
userKey: r,
|
|
1655
1655
|
userToken: o,
|
|
@@ -1657,7 +1657,7 @@ const Ii = (t) => {
|
|
|
1657
1657
|
userSettings: u
|
|
1658
1658
|
};
|
|
1659
1659
|
}, Fi = (t) => {
|
|
1660
|
-
const e = new
|
|
1660
|
+
const e = new de(ne(void 0), "providerStreamId"), r = new pe(gi(e.getStore(), t), "slStreamId", (s) => s?.data), o = new pe(mi(r.getAtomStore(), t), "streamSettings");
|
|
1661
1661
|
return r.getAtomStore().listen((s) => {
|
|
1662
1662
|
(s === "" || s === void 0) && o.getStore().mutate(void 0);
|
|
1663
1663
|
}), {
|
|
@@ -1665,8 +1665,8 @@ const Ii = (t) => {
|
|
|
1665
1665
|
slStreamId: r,
|
|
1666
1666
|
streamSettings: o
|
|
1667
1667
|
};
|
|
1668
|
-
},
|
|
1669
|
-
const e = new
|
|
1668
|
+
}, Ti = (t) => {
|
|
1669
|
+
const e = new de(ne(void 0), "enabled"), r = new de(ne(Fe.DISABLED), "status"), o = new pe(Si(e.getStore(), t), "organizationSettings", (f) => f?.data?.id), s = new pe(Ai(o.getAtomStore(), t), "organizationAdvertising"), u = Ii(t), l = Fi(t);
|
|
1670
1670
|
return {
|
|
1671
1671
|
enabled: e,
|
|
1672
1672
|
status: r,
|
|
@@ -1681,10 +1681,10 @@ const Ii = (t) => {
|
|
|
1681
1681
|
organizationAdvertising: s
|
|
1682
1682
|
};
|
|
1683
1683
|
};
|
|
1684
|
-
class
|
|
1684
|
+
class _i extends Ot {
|
|
1685
1685
|
stores;
|
|
1686
1686
|
constructor(e) {
|
|
1687
|
-
const r =
|
|
1687
|
+
const r = Ti(e), o = fi(r);
|
|
1688
1688
|
super(o, "core"), this.stores = r;
|
|
1689
1689
|
}
|
|
1690
1690
|
getValue() {
|
|
@@ -1705,7 +1705,7 @@ class Ci extends Ot {
|
|
|
1705
1705
|
};
|
|
1706
1706
|
unsubscribe = () => this.getStore().off();
|
|
1707
1707
|
}
|
|
1708
|
-
class
|
|
1708
|
+
class Ci extends ci {
|
|
1709
1709
|
$coreStore;
|
|
1710
1710
|
transport;
|
|
1711
1711
|
bypassLogin;
|
|
@@ -1731,14 +1731,14 @@ class Ti extends ui {
|
|
|
1731
1731
|
* Logout user. Clears the all user data from the store.
|
|
1732
1732
|
*/
|
|
1733
1733
|
logout = () => {
|
|
1734
|
-
this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), new
|
|
1734
|
+
this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), new Ke().clear();
|
|
1735
1735
|
};
|
|
1736
1736
|
/**
|
|
1737
1737
|
* Soft logout, only clears the StreamLayer user data from the store.
|
|
1738
1738
|
* Does not clear the external token. And automatically tries to re-login by external token.
|
|
1739
1739
|
*/
|
|
1740
1740
|
softLogout = () => {
|
|
1741
|
-
const e = new
|
|
1741
|
+
const e = new Ke();
|
|
1742
1742
|
this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), e.setToken(""), this.reLogin();
|
|
1743
1743
|
};
|
|
1744
1744
|
/**
|
|
@@ -1749,7 +1749,7 @@ class Ti extends ui {
|
|
|
1749
1749
|
* - If no one of the above is true, then logout.
|
|
1750
1750
|
*/
|
|
1751
1751
|
reLogin = () => {
|
|
1752
|
-
const e = new
|
|
1752
|
+
const e = new Ke(), r = e.getToken(), o = e.getExternalToken();
|
|
1753
1753
|
if (this.$coreStore.getValues().userKey.setValue(o), this.$coreStore.getValues().userToken.setValue(r), r)
|
|
1754
1754
|
return this.saveUser(r, ""), this.me().then((s) => {
|
|
1755
1755
|
if (console.log("user", s), s?.id) {
|
|
@@ -1768,7 +1768,7 @@ class Ti extends ui {
|
|
|
1768
1768
|
* Write token to the Transport and UserStore
|
|
1769
1769
|
*/
|
|
1770
1770
|
saveUser = (e, r) => {
|
|
1771
|
-
this.transport.setAuth(e, r), this.$coreStore.getValues().userToken.setValue(e), new
|
|
1771
|
+
this.transport.setAuth(e, r), this.$coreStore.getValues().userToken.setValue(e), new Ke().setToken(e);
|
|
1772
1772
|
};
|
|
1773
1773
|
/**
|
|
1774
1774
|
* Add interceptor to the Transport to handle 401 and 403 errors.
|
|
@@ -1784,16 +1784,16 @@ class Ti extends ui {
|
|
|
1784
1784
|
});
|
|
1785
1785
|
};
|
|
1786
1786
|
}
|
|
1787
|
-
const
|
|
1788
|
-
t.auth = new
|
|
1787
|
+
const st = new Ke(), Oi = (t, e, r) => {
|
|
1788
|
+
t.auth = new Ci(t.store, t.transport), t.stores.status.listen((o) => {
|
|
1789
1789
|
o === Fe.READY && t.auth.reLogin();
|
|
1790
1790
|
}), t.sdk.authorizationBypass = async (o, s) => {
|
|
1791
|
-
|
|
1791
|
+
st.getSchema() === o && st.getExternalToken() === s && t.transport.getHeader("authorization") || (await t.auth.login(o, s), st.setSchema(o), st.setExternalToken(s));
|
|
1792
1792
|
}, t.sdk.logout = () => {
|
|
1793
|
-
t.auth.logout(),
|
|
1793
|
+
t.auth.logout(), st.clear();
|
|
1794
1794
|
}, t.sdk.getUserStore = () => t.stores.user.getStore(), t.sdk.isUserAuthorized = () => t.auth.isAuthenticated(), r();
|
|
1795
1795
|
}, xi = (t, e, r) => {
|
|
1796
|
-
t.store = new
|
|
1796
|
+
t.store = new _i(t.transport), t.stores = t.store.getValues(), t.sdk.enabled = t.stores.enabled.getStore(), t.sdk.status = t.stores.status.getStore(), t.sdk.sdkStore = t.store.getStore(), t.sdk.organizationStore = () => t.stores.organizationSettings.getStore(), t.sdk.streamStore = () => t.stores.streamSettings.getStore(), t.storeUnsubscribe = () => {
|
|
1797
1797
|
t.store.unsubscribe();
|
|
1798
1798
|
}, r();
|
|
1799
1799
|
}, Bi = (t, e, r) => {
|
|
@@ -1812,7 +1812,7 @@ const ot = new Ge(), Oi = (t, e, r) => {
|
|
|
1812
1812
|
}, t.sdk.createEventSession = (o) => {
|
|
1813
1813
|
t.stores.providerStreamId.setValue(o);
|
|
1814
1814
|
}, r();
|
|
1815
|
-
}, ki =
|
|
1815
|
+
}, ki = Jn({
|
|
1816
1816
|
level: "trace"
|
|
1817
1817
|
}), on = (t, e) => ki.child({ name: t }, e), Pi = (t, e, r) => {
|
|
1818
1818
|
const { client: o, queryKey: s } = r.createPromiseClient(Jr, {
|
|
@@ -1845,7 +1845,7 @@ const ot = new Ge(), Oi = (t, e, r) => {
|
|
|
1845
1845
|
})).data?.attributes : void 0
|
|
1846
1846
|
});
|
|
1847
1847
|
}, Ui = (t, e) => {
|
|
1848
|
-
const { client: r } = e.createCallbackClient(ve), o =
|
|
1848
|
+
const { client: r } = e.createCallbackClient(ve), o = Tt({ eventId: t.get() || "", feedId: "" });
|
|
1849
1849
|
return t.subscribe((u = "") => {
|
|
1850
1850
|
o.set({ eventId: u, feedId: "" });
|
|
1851
1851
|
}), e.addSubscription(r.subscription, o, { name: "feedSubscription" });
|
|
@@ -1872,101 +1872,101 @@ const ot = new Ge(), Oi = (t, e, r) => {
|
|
|
1872
1872
|
})).data?.map(({ attributes: p }) => p) : void 0
|
|
1873
1873
|
});
|
|
1874
1874
|
};
|
|
1875
|
-
var
|
|
1876
|
-
const
|
|
1877
|
-
function
|
|
1875
|
+
var pr = { exports: {} };
|
|
1876
|
+
const Vi = Object.getPrototypeOf({});
|
|
1877
|
+
function dr(t) {
|
|
1878
1878
|
function e(I) {
|
|
1879
1879
|
return I !== "constructor" && I !== "prototype" && I !== "__proto__";
|
|
1880
1880
|
}
|
|
1881
1881
|
function r(I) {
|
|
1882
|
-
let
|
|
1882
|
+
let _ = 0;
|
|
1883
1883
|
const j = I.length, U = new Array(j);
|
|
1884
|
-
for (
|
|
1885
|
-
U[
|
|
1884
|
+
for (_ = 0; _ < j; ++_)
|
|
1885
|
+
U[_] = F(I[_]);
|
|
1886
1886
|
return U;
|
|
1887
1887
|
}
|
|
1888
1888
|
function o(I) {
|
|
1889
|
-
const
|
|
1890
|
-
if (p && Object.getPrototypeOf(I) !==
|
|
1889
|
+
const _ = {};
|
|
1890
|
+
if (p && Object.getPrototypeOf(I) !== Vi)
|
|
1891
1891
|
return p(I);
|
|
1892
1892
|
const j = f(I);
|
|
1893
|
-
let U,
|
|
1894
|
-
for (U = 0,
|
|
1895
|
-
e(x = j[U]) && (
|
|
1896
|
-
return
|
|
1897
|
-
}
|
|
1898
|
-
function s(I,
|
|
1899
|
-
const j = I.length, U =
|
|
1900
|
-
let
|
|
1893
|
+
let U, T, x;
|
|
1894
|
+
for (U = 0, T = j.length; U < T; ++U)
|
|
1895
|
+
e(x = j[U]) && (_[x] = F(I[x]));
|
|
1896
|
+
return _;
|
|
1897
|
+
}
|
|
1898
|
+
function s(I, _) {
|
|
1899
|
+
const j = I.length, U = _.length;
|
|
1900
|
+
let T = 0;
|
|
1901
1901
|
const x = new Array(j + U);
|
|
1902
|
-
for (
|
|
1903
|
-
x[
|
|
1904
|
-
for (
|
|
1905
|
-
x[
|
|
1902
|
+
for (T = 0; T < j; ++T)
|
|
1903
|
+
x[T] = F(I[T]);
|
|
1904
|
+
for (T = 0; T < U; ++T)
|
|
1905
|
+
x[T + j] = F(_[T]);
|
|
1906
1906
|
return x;
|
|
1907
1907
|
}
|
|
1908
1908
|
const u = Object.prototype.propertyIsEnumerable;
|
|
1909
1909
|
function l(I) {
|
|
1910
|
-
const
|
|
1911
|
-
for (let U = 0,
|
|
1912
|
-
u.call(I, j[U]) &&
|
|
1913
|
-
return
|
|
1910
|
+
const _ = Object.keys(I), j = Object.getOwnPropertySymbols(I);
|
|
1911
|
+
for (let U = 0, T = j.length; U < T; ++U)
|
|
1912
|
+
u.call(I, j[U]) && _.push(j[U]);
|
|
1913
|
+
return _;
|
|
1914
1914
|
}
|
|
1915
1915
|
const f = t && t.symbols ? l : Object.keys, p = typeof t?.cloneProtoObject == "function" ? t.cloneProtoObject : void 0;
|
|
1916
|
-
function
|
|
1916
|
+
function v(I) {
|
|
1917
1917
|
return typeof I == "object" && I !== null && !(I instanceof RegExp) && !(I instanceof Date);
|
|
1918
1918
|
}
|
|
1919
1919
|
function g(I) {
|
|
1920
1920
|
return typeof I != "object" || I === null;
|
|
1921
1921
|
}
|
|
1922
|
-
const b = typeof O.Buffer < "u" ? (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date || I instanceof O.Buffer : (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date, E = t && typeof t.mergeArray == "function" ? t.mergeArray({ clone:
|
|
1923
|
-
function
|
|
1924
|
-
return
|
|
1922
|
+
const b = typeof O.Buffer < "u" ? (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date || I instanceof O.Buffer : (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date, E = t && typeof t.mergeArray == "function" ? t.mergeArray({ clone: F, deepmerge: P, getKeys: f, isMergeableObject: v }) : s;
|
|
1923
|
+
function F(I) {
|
|
1924
|
+
return v(I) ? Array.isArray(I) ? r(I) : o(I) : I;
|
|
1925
1925
|
}
|
|
1926
|
-
function N(I,
|
|
1927
|
-
const j = {}, U = f(I),
|
|
1926
|
+
function N(I, _) {
|
|
1927
|
+
const j = {}, U = f(I), T = f(_);
|
|
1928
1928
|
let x, k, G;
|
|
1929
1929
|
for (x = 0, k = U.length; x < k; ++x)
|
|
1930
|
-
e(G = U[x]) &&
|
|
1931
|
-
for (x = 0, k =
|
|
1932
|
-
e(G =
|
|
1933
|
-
(j[G] = _
|
|
1930
|
+
e(G = U[x]) && T.indexOf(G) === -1 && (j[G] = F(I[G]));
|
|
1931
|
+
for (x = 0, k = T.length; x < k; ++x)
|
|
1932
|
+
e(G = T[x]) && (G in I && (U.indexOf(G) !== -1 && (j[G] = P(I[G], _[G])), !0) || // eslint-disable-line no-mixed-operators
|
|
1933
|
+
(j[G] = F(_[G])));
|
|
1934
1934
|
return j;
|
|
1935
1935
|
}
|
|
1936
|
-
function P(I,
|
|
1937
|
-
const j = Array.isArray(
|
|
1938
|
-
return g(
|
|
1936
|
+
function P(I, _) {
|
|
1937
|
+
const j = Array.isArray(_), U = Array.isArray(I);
|
|
1938
|
+
return g(_) ? _ : b(I) ? F(_) : j && U ? E(I, _) : j !== U ? F(_) : N(I, _);
|
|
1939
1939
|
}
|
|
1940
1940
|
function K() {
|
|
1941
1941
|
switch (arguments.length) {
|
|
1942
1942
|
case 0:
|
|
1943
1943
|
return {};
|
|
1944
1944
|
case 1:
|
|
1945
|
-
return
|
|
1945
|
+
return F(arguments[0]);
|
|
1946
1946
|
case 2:
|
|
1947
1947
|
return P(arguments[0], arguments[1]);
|
|
1948
1948
|
}
|
|
1949
1949
|
let I;
|
|
1950
|
-
for (let
|
|
1951
|
-
I = P(I, arguments[
|
|
1950
|
+
for (let _ = 0, j = arguments.length; _ < j; ++_)
|
|
1951
|
+
I = P(I, arguments[_]);
|
|
1952
1952
|
return I;
|
|
1953
1953
|
}
|
|
1954
1954
|
return t && t.all ? K : P;
|
|
1955
1955
|
}
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
var
|
|
1956
|
+
pr.exports = dr;
|
|
1957
|
+
pr.exports.default = dr;
|
|
1958
|
+
var Mi = pr.exports.deepmerge = dr;
|
|
1959
1959
|
const qi = (t) => (e, r) => {
|
|
1960
1960
|
let o = 0;
|
|
1961
1961
|
const s = e.length, u = r.length, l = Math.max(s, u), f = new Array(l);
|
|
1962
1962
|
for (o = 0; o < l; ++o)
|
|
1963
1963
|
o < u ? f[o] = t.deepmerge(e[o], r[o]) : f[o] = t.clone(e[o]);
|
|
1964
1964
|
return f;
|
|
1965
|
-
}, Qi =
|
|
1966
|
-
const o =
|
|
1965
|
+
}, Qi = Mi({ mergeArray: qi }), Gi = (t, e, r) => {
|
|
1966
|
+
const o = Hr([e, r], (l, f) => {
|
|
1967
1967
|
if (l && f.data)
|
|
1968
1968
|
return f.data.find((p) => p.id === l);
|
|
1969
|
-
}), s =
|
|
1969
|
+
}), s = Ue({
|
|
1970
1970
|
data: void 0,
|
|
1971
1971
|
loading: void 0,
|
|
1972
1972
|
error: void 0
|
|
@@ -2014,7 +2014,7 @@ class zi {
|
|
|
2014
2014
|
constructor(e) {
|
|
2015
2015
|
if (e.gamification)
|
|
2016
2016
|
throw new Error("GamificationBackground Singleton error");
|
|
2017
|
-
this.log = on("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new
|
|
2017
|
+
this.log = on("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new de(ne(void 0), "moderationId").getStore(), this.openedQuestionId = new de(ne(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new pe(Ni(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new pe(ji(this.slStreamId, e.transport), "gamification:feedList"), this.activeQuestionId = new pe(Li(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = Gi(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
|
|
2018
2018
|
this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = $i(r, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (o) => {
|
|
2019
2019
|
window.requestAnimationFrame(() => {
|
|
2020
2020
|
this.openedQuestion.updateExtendedQuestion(o.data?.attributes?.question);
|
|
@@ -2065,7 +2065,7 @@ class Ki {
|
|
|
2065
2065
|
options;
|
|
2066
2066
|
logger;
|
|
2067
2067
|
constructor(e) {
|
|
2068
|
-
this.options = e, this.logger = on("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notifications = new
|
|
2068
|
+
this.options = e, this.logger = on("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notifications = new de(ne(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = this.notifications.getStore();
|
|
2069
2069
|
}
|
|
2070
2070
|
addToQueue = (e) => {
|
|
2071
2071
|
if (this.store.has(e.id)) {
|
|
@@ -2104,7 +2104,7 @@ class Ki {
|
|
|
2104
2104
|
const s = e, u = new Map(this.notifications.getValue());
|
|
2105
2105
|
u.set(r.id, r), this.notifications.setValue(u);
|
|
2106
2106
|
const l = setTimeout(() => {
|
|
2107
|
-
this.logger.debug({ notificationId: s }, "notification hiding by autoHideDuration"), this.closeNotification(s);
|
|
2107
|
+
this.logger.debug({ notificationId: s, delay: r.autoHideDuration || 5e3 }, "notification hiding by autoHideDuration"), this.closeNotification(s);
|
|
2108
2108
|
}, r.autoHideDuration || 5e3);
|
|
2109
2109
|
this.timeouts.set(s, l), this.logger.debug({ notificationId: s, queue: [...u.values()] }, "notification displayed");
|
|
2110
2110
|
}, r.delay || 0);
|
|
@@ -2129,7 +2129,7 @@ var wt;
|
|
|
2129
2129
|
(function(t) {
|
|
2130
2130
|
t.OPENED = "opened";
|
|
2131
2131
|
})(wt || (wt = {}));
|
|
2132
|
-
class Hi extends
|
|
2132
|
+
class Hi extends hr {
|
|
2133
2133
|
constructor() {
|
|
2134
2134
|
super("notification");
|
|
2135
2135
|
}
|
|
@@ -2141,15 +2141,15 @@ class Hi extends pr {
|
|
|
2141
2141
|
this.clear();
|
|
2142
2142
|
};
|
|
2143
2143
|
}
|
|
2144
|
-
var
|
|
2144
|
+
var je;
|
|
2145
2145
|
(function(t) {
|
|
2146
|
-
t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION";
|
|
2147
|
-
})(
|
|
2146
|
+
t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION", t[t.QUESTION_RESOLVED = 3] = "QUESTION_RESOLVED";
|
|
2147
|
+
})(je || (je = {}));
|
|
2148
2148
|
class Wi {
|
|
2149
2149
|
queue;
|
|
2150
2150
|
storage;
|
|
2151
2151
|
constructor(e = {}) {
|
|
2152
|
-
this.storage = new Hi(), this.queue = new Ki({ concurrency: 1, animationDelay:
|
|
2152
|
+
this.storage = new Hi(), this.queue = new Ki({ concurrency: 1, animationDelay: 1600, ...e });
|
|
2153
2153
|
}
|
|
2154
2154
|
add = (e) => {
|
|
2155
2155
|
this.storage.isOpened(e.id) || this.queue.addToQueue(e);
|
|
@@ -2178,7 +2178,7 @@ var vt;
|
|
|
2178
2178
|
(function(t) {
|
|
2179
2179
|
t.ONBOARDING = "onboarding";
|
|
2180
2180
|
})(vt || (vt = {}));
|
|
2181
|
-
class
|
|
2181
|
+
class un extends hr {
|
|
2182
2182
|
constructor() {
|
|
2183
2183
|
super("gamification");
|
|
2184
2184
|
}
|
|
@@ -2187,15 +2187,15 @@ class eo extends pr {
|
|
|
2187
2187
|
};
|
|
2188
2188
|
getOnboardingStatus = ({ userId: e, eventId: r, organizationId: o }) => this.read(vt.ONBOARDING, o, e, r);
|
|
2189
2189
|
}
|
|
2190
|
-
const
|
|
2190
|
+
const Fr = {
|
|
2191
2191
|
pageSize: 10
|
|
2192
|
-
},
|
|
2193
|
-
const o = ne({ pageSize: r?.pageSize ||
|
|
2194
|
-
if (
|
|
2192
|
+
}, eo = (t, e, r) => {
|
|
2193
|
+
const o = ne({ pageSize: r?.pageSize || Fr.pageSize, page: 0 }), s = Ue({ data: [], loading: void 0, error: void 0 }), u = Ri(t), l = async (v) => {
|
|
2194
|
+
if (v) {
|
|
2195
2195
|
s.setKey("loading", !0);
|
|
2196
2196
|
const g = {
|
|
2197
|
-
eventId:
|
|
2198
|
-
pagination: { page: 0, pageSize: r?.pageSize ||
|
|
2197
|
+
eventId: v,
|
|
2198
|
+
pagination: { page: 0, pageSize: r?.pageSize || Fr.pageSize }
|
|
2199
2199
|
}, b = await u(g);
|
|
2200
2200
|
s.set({ data: b.data.map((E) => E.attributes), loading: !1 }), o.set(g.pagination);
|
|
2201
2201
|
}
|
|
@@ -2204,29 +2204,79 @@ const _r = {
|
|
|
2204
2204
|
const f = () => {
|
|
2205
2205
|
l(e.get());
|
|
2206
2206
|
};
|
|
2207
|
-
return o.listen(async (
|
|
2207
|
+
return o.listen(async (v) => {
|
|
2208
2208
|
const g = e.get(), b = s.get().data?.length || 0;
|
|
2209
|
-
if (
|
|
2209
|
+
if (v.page > 0 && g && b >= v.page * v.pageSize) {
|
|
2210
2210
|
s.setKey("loading", !0);
|
|
2211
|
-
const
|
|
2211
|
+
const F = await u({
|
|
2212
2212
|
eventId: g,
|
|
2213
|
-
pagination:
|
|
2213
|
+
pagination: v
|
|
2214
2214
|
}), N = s.get().data || [];
|
|
2215
2215
|
s.set({
|
|
2216
|
-
data: [...N, ...
|
|
2216
|
+
data: [...N, ...F.data.map((P) => P.attributes)],
|
|
2217
2217
|
loading: !1
|
|
2218
2218
|
});
|
|
2219
2219
|
}
|
|
2220
2220
|
}), { $store: s, fetchMore: () => {
|
|
2221
|
-
const
|
|
2222
|
-
o.set({ ...
|
|
2221
|
+
const v = o.get();
|
|
2222
|
+
o.set({ ...v, page: v.page + 1 });
|
|
2223
2223
|
}, invalidate: f };
|
|
2224
|
-
}
|
|
2224
|
+
};
|
|
2225
2225
|
var re;
|
|
2226
2226
|
(function(t) {
|
|
2227
2227
|
t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
|
|
2228
2228
|
})(re || (re = {}));
|
|
2229
|
-
|
|
2229
|
+
const to = (t, e, r, o) => {
|
|
2230
|
+
const s = new un(), u = ne(re.Unset), l = () => {
|
|
2231
|
+
const { inplayGame: v = {} } = t.featureSettings.get(), g = e.getCurrentSessionId({ prefix: "onboarding" });
|
|
2232
|
+
o.add({
|
|
2233
|
+
type: je.ONBOARDING,
|
|
2234
|
+
id: g,
|
|
2235
|
+
action: t.openFeature,
|
|
2236
|
+
close: () => {
|
|
2237
|
+
o.markAsViewed(g);
|
|
2238
|
+
},
|
|
2239
|
+
autoHideDuration: 1e6,
|
|
2240
|
+
data: {
|
|
2241
|
+
questionType: Re.UNSET,
|
|
2242
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2243
|
+
// @ts-ignore
|
|
2244
|
+
onboarding: { ...v }
|
|
2245
|
+
}
|
|
2246
|
+
});
|
|
2247
|
+
};
|
|
2248
|
+
u.subscribe((v) => {
|
|
2249
|
+
(v === re.Optional || re.Required) && l(), v === re.Completed && e.activeQuestionId.invalidate();
|
|
2250
|
+
});
|
|
2251
|
+
const f = async () => {
|
|
2252
|
+
const v = e.userId.get();
|
|
2253
|
+
if (!v)
|
|
2254
|
+
return;
|
|
2255
|
+
s.getOnboardingStatus({
|
|
2256
|
+
userId: v,
|
|
2257
|
+
organizationId: e.organizationId.get() || "",
|
|
2258
|
+
eventId: e.slStreamId.get() || ""
|
|
2259
|
+
}) === re.Completed && u.set(re.Completed);
|
|
2260
|
+
const b = await e.moderation.getValue();
|
|
2261
|
+
if (u.get() === re.Completed)
|
|
2262
|
+
return;
|
|
2263
|
+
const E = !!(b?.options?.onboardingEnabled && t.featureSettings.get().inplayGame?.onboarding?.completed), F = !!t.featureSettings.get().inplayGame?.titleCard?.optIn;
|
|
2264
|
+
E ? F ? u.set(re.Required) : u.set(re.Optional) : F ? u.set(re.Unavailable) : u.set(re.Disabled);
|
|
2265
|
+
};
|
|
2266
|
+
return f(), e.userId.subscribe((v) => {
|
|
2267
|
+
v && f();
|
|
2268
|
+
}), e.moderation.subscribe((v) => {
|
|
2269
|
+
v.data && f();
|
|
2270
|
+
}), { $store: u, submitInplay: async () => {
|
|
2271
|
+
const v = e.slStreamId.get();
|
|
2272
|
+
v && (await Xi(r, v), u.set(re.Completed), s.saveOnboardingStatus({
|
|
2273
|
+
organizationId: e.organizationId.get() || "",
|
|
2274
|
+
userId: e.userId.get() || "",
|
|
2275
|
+
eventId: v
|
|
2276
|
+
}, re.Completed));
|
|
2277
|
+
} };
|
|
2278
|
+
}, ro = /* @__PURE__ */ new Set([Re.POLL, Re.PREDICTION, Re.TRIVIA]);
|
|
2279
|
+
class no extends lr {
|
|
2230
2280
|
/** user statistics (leaderboard panel) */
|
|
2231
2281
|
userSummary;
|
|
2232
2282
|
/** feed list (pick history) */
|
|
@@ -2241,83 +2291,63 @@ class no extends hr {
|
|
|
2241
2291
|
openedQuestion;
|
|
2242
2292
|
/** pinned leaderboard id */
|
|
2243
2293
|
openedUser;
|
|
2244
|
-
notifications;
|
|
2245
|
-
transport;
|
|
2246
2294
|
closeFeature;
|
|
2247
2295
|
openFeature;
|
|
2296
|
+
notifications;
|
|
2297
|
+
transport;
|
|
2248
2298
|
/** gamification background class, handle subscriptions and notifications for closed overlay */
|
|
2249
2299
|
background;
|
|
2250
2300
|
/** Browser cache */
|
|
2251
2301
|
storage;
|
|
2252
2302
|
constructor(e, r, o) {
|
|
2253
|
-
super(e, r), this.background = an(o), this.storage = new
|
|
2254
|
-
|
|
2255
|
-
}), this.status.subscribe((s) => {
|
|
2256
|
-
s === Ue.Ready ? (this.notifications.close(this.background.getCurrentSessionId({ prefix: "onboarding" })), this.connect(o.transport)) : this.disconnect();
|
|
2257
|
-
}), this.onboardingStatus.subscribe((s) => {
|
|
2258
|
-
s && this.background.activeQuestionId.invalidate();
|
|
2303
|
+
super(e, r), this.background = an(o), this.storage = new un(), this.userSummary = new pe(Pi(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.openedUser = ne(void 0), this.leaderboardId = new de(ne(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = to(this, this.background, o.transport, o.notifications), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ue.GAMES), this.openedQuestion = this.background.openedQuestion, this.leaderboardList = eo(this.transport, this.background.slStreamId), this.status.subscribe((s) => {
|
|
2304
|
+
s === $e.Ready ? this.connect(o.transport) : this.disconnect();
|
|
2259
2305
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2260
|
-
s && s.data && this.onboardingStatus.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !==
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2306
|
+
if (s && s.data && this.onboardingStatus.$store.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.status === Yt.ACTIVE) {
|
|
2307
|
+
if (ro.has(s.data.question.type))
|
|
2308
|
+
this.notifications.add({
|
|
2309
|
+
type: je.QUESTION,
|
|
2310
|
+
action: () => s.data?.question && this.openQuestion(s.data.question.id),
|
|
2311
|
+
close: () => s.data?.question && this.closeQuestion(s.data.question.id),
|
|
2312
|
+
autoHideDuration: 1e3 * +(s.data.question?.appearance?.autoHideInterval || "5"),
|
|
2313
|
+
id: this.background.getCurrentSessionId({ prefix: "notification", entity: s.data.question.id }),
|
|
2314
|
+
data: {
|
|
2315
|
+
questionType: s.data.question.type,
|
|
2316
|
+
question: {
|
|
2317
|
+
title: s.data.question.notification.title
|
|
2318
|
+
}
|
|
2319
|
+
}
|
|
2320
|
+
});
|
|
2321
|
+
else if (s.data.question.type === Re.FACTOID) {
|
|
2322
|
+
const u = {
|
|
2323
|
+
heading: "",
|
|
2324
|
+
body: "",
|
|
2325
|
+
image: "",
|
|
2326
|
+
video: {
|
|
2327
|
+
id: "",
|
|
2328
|
+
url: "",
|
|
2329
|
+
thumbnailUrl: ""
|
|
2330
|
+
},
|
|
2331
|
+
webLink: {
|
|
2332
|
+
label: "",
|
|
2333
|
+
url: ""
|
|
2334
|
+
}
|
|
2335
|
+
};
|
|
2336
|
+
this.notifications.add({
|
|
2337
|
+
type: je.QUESTION,
|
|
2338
|
+
action: () => s.data?.question && this.openQuestion(s.data.question.id),
|
|
2339
|
+
close: () => s.data?.question && this.closeQuestion(s.data.question.id),
|
|
2340
|
+
autoHideDuration: 1e3 * +(s.data.question?.appearance?.autoHideInterval || "5"),
|
|
2341
|
+
id: this.background.getCurrentSessionId({ prefix: "notification", entity: s.data.question.id }),
|
|
2342
|
+
data: {
|
|
2343
|
+
questionType: s.data.question.type,
|
|
2344
|
+
insight: u
|
|
2345
|
+
}
|
|
2346
|
+
});
|
|
2272
2347
|
}
|
|
2273
|
-
});
|
|
2274
|
-
}), this.onboardingProcess(), this.background.userId.subscribe((s) => {
|
|
2275
|
-
s && this.onboardingProcess();
|
|
2276
|
-
}), this.background.moderation.subscribe((s) => {
|
|
2277
|
-
s.data && this.onboardingProcess();
|
|
2278
|
-
});
|
|
2279
|
-
}
|
|
2280
|
-
/**
|
|
2281
|
-
* check onboarding status, sync with browser cache
|
|
2282
|
-
* retrieve onboarding settings from api
|
|
2283
|
-
*/
|
|
2284
|
-
onboardingProcess = async () => {
|
|
2285
|
-
const e = this.background.userId.get();
|
|
2286
|
-
if (!e)
|
|
2287
|
-
return;
|
|
2288
|
-
this.storage.getOnboardingStatus({
|
|
2289
|
-
userId: e,
|
|
2290
|
-
organizationId: this.background.organizationId.get() || "",
|
|
2291
|
-
eventId: this.background.slStreamId.get() || ""
|
|
2292
|
-
}) === re.Completed && this.onboardingStatus.set(re.Completed);
|
|
2293
|
-
const o = await this.background.moderation.getValue();
|
|
2294
|
-
if (this.onboardingStatus.get() === re.Completed)
|
|
2295
|
-
return;
|
|
2296
|
-
const s = !!(o?.options?.onboardingEnabled && this.featureSettings.get().inplayGame?.onboarding?.completed), u = !!this.featureSettings.get().inplayGame?.titleCard?.optIn;
|
|
2297
|
-
s ? u ? this.onboardingStatus.set(re.Required) : this.onboardingStatus.set(re.Optional) : u ? this.onboardingStatus.set(re.Unavailable) : this.onboardingStatus.set(re.Disabled);
|
|
2298
|
-
};
|
|
2299
|
-
showOnboardingInApp = () => {
|
|
2300
|
-
const { inplayGame: e } = this.featureSettings.get();
|
|
2301
|
-
if (!e)
|
|
2302
|
-
return;
|
|
2303
|
-
const { titleCard: r, overview: o } = e;
|
|
2304
|
-
this.notifications.add({
|
|
2305
|
-
type: He.ONBOARDING,
|
|
2306
|
-
id: this.background.getCurrentSessionId({ prefix: "onboarding" }),
|
|
2307
|
-
action: this.openFeature,
|
|
2308
|
-
close: this.closeFeature,
|
|
2309
|
-
autoHideDuration: 1e5,
|
|
2310
|
-
data: {
|
|
2311
|
-
header: r?.header,
|
|
2312
|
-
title: r?.title,
|
|
2313
|
-
subtitle: r?.subtitle,
|
|
2314
|
-
graphicBg: r?.appearance?.graphic,
|
|
2315
|
-
icon: r?.media?.icon,
|
|
2316
|
-
sponsorLogo: r?.media?.sponsorLogo,
|
|
2317
|
-
primaryColor: o?.appearance?.primaryColor
|
|
2318
2348
|
}
|
|
2319
2349
|
});
|
|
2320
|
-
}
|
|
2350
|
+
}
|
|
2321
2351
|
connect = (e) => {
|
|
2322
2352
|
this.userSummary.invalidate(), this.leaderboardList.invalidate(), this.feedList.invalidate(), this.background.feedSubscription.addListener("feed-subscription-prediction-close", (r) => {
|
|
2323
2353
|
window.requestAnimationFrame(async () => {
|
|
@@ -2325,18 +2355,21 @@ class no extends hr {
|
|
|
2325
2355
|
if (!o)
|
|
2326
2356
|
return;
|
|
2327
2357
|
const { status: s, type: u, id: l } = o;
|
|
2328
|
-
if (s === Yt.RESOLVED && u ===
|
|
2358
|
+
if (s === Yt.RESOLVED && u === Re.PREDICTION) {
|
|
2329
2359
|
const f = this.background.getCurrentSessionId({
|
|
2330
2360
|
prefix: `notification-id:${l}`
|
|
2331
|
-
}),
|
|
2361
|
+
}), v = (await sn(l, e))?.answers.find(({ correct: g }) => g);
|
|
2332
2362
|
this.notifications.add({
|
|
2333
|
-
type:
|
|
2363
|
+
type: je.QUESTION_RESOLVED,
|
|
2334
2364
|
action: () => this.openQuestion(l),
|
|
2335
2365
|
close: () => this.closeQuestion(l),
|
|
2336
2366
|
autoHideDuration: 5e3,
|
|
2337
2367
|
id: f,
|
|
2338
2368
|
data: {
|
|
2339
|
-
|
|
2369
|
+
questionType: Re.PREDICTION,
|
|
2370
|
+
question: {
|
|
2371
|
+
title: v?.youVoted ? `Congratulations! You answered correctly! You won ${v.points} pts!` : `Better luck next time! Correct: ${v?.text}!`
|
|
2372
|
+
}
|
|
2340
2373
|
}
|
|
2341
2374
|
});
|
|
2342
2375
|
}
|
|
@@ -2350,15 +2383,6 @@ class no extends hr {
|
|
|
2350
2383
|
disconnect = () => {
|
|
2351
2384
|
this.background.feedSubscription.removeListener("feed-subscription-questions-list");
|
|
2352
2385
|
};
|
|
2353
|
-
// onboarding
|
|
2354
|
-
submitInplay = async () => {
|
|
2355
|
-
const e = this.background.slStreamId.get();
|
|
2356
|
-
e && (await Xi(this.transport, e), this.onboardingStatus.set(re.Completed), this.storage.saveOnboardingStatus({
|
|
2357
|
-
organizationId: this.background.organizationId.get() || "",
|
|
2358
|
-
userId: this.background.userId.get() || "",
|
|
2359
|
-
eventId: e
|
|
2360
|
-
}, re.Completed));
|
|
2361
|
-
};
|
|
2362
2386
|
submitAnswer = async (e, r) => {
|
|
2363
2387
|
await Yi(this.transport, { questionId: e, answerId: r }), this.feedList?.invalidate();
|
|
2364
2388
|
};
|
|
@@ -2375,7 +2399,7 @@ class no extends hr {
|
|
|
2375
2399
|
this.openedUser.set(void 0);
|
|
2376
2400
|
};
|
|
2377
2401
|
}
|
|
2378
|
-
class io extends
|
|
2402
|
+
class io extends lr {
|
|
2379
2403
|
insights;
|
|
2380
2404
|
closeFeature;
|
|
2381
2405
|
openFeature;
|
|
@@ -2385,26 +2409,25 @@ class io extends hr {
|
|
|
2385
2409
|
background;
|
|
2386
2410
|
constructor(e, r, o) {
|
|
2387
2411
|
super(e, r), this.background = an(o), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ue.HIGHLIGHTS), this.status.subscribe((s) => {
|
|
2388
|
-
s ===
|
|
2412
|
+
s === $e.Ready ? this.connect() : this.disconnect();
|
|
2389
2413
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2390
|
-
s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !==
|
|
2391
|
-
type:
|
|
2414
|
+
s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.type === Re.FACTOID && s.data.question.status === Yt.ACTIVE && this.notifications.add({
|
|
2415
|
+
type: je.QUESTION,
|
|
2392
2416
|
action: () => s.data?.question && this.openHighlight(s.data.question.id),
|
|
2393
2417
|
close: () => s.data?.question && this.closeHighlight(s.data.question.id),
|
|
2394
|
-
autoHideDuration: +(s.data.
|
|
2418
|
+
autoHideDuration: 1e3 * +(s.data.question?.appearance?.autoHideInterval || "5"),
|
|
2395
2419
|
id: this.background.getCurrentSessionId({ prefix: "notification", entity: s.data.question.id }),
|
|
2396
2420
|
data: {
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
imagePosition: s.data.question.notification.imagePosition
|
|
2421
|
+
questionType: s.data.question.type,
|
|
2422
|
+
question: {
|
|
2423
|
+
title: s.data.question.notification.title
|
|
2424
|
+
}
|
|
2402
2425
|
}
|
|
2403
2426
|
});
|
|
2404
2427
|
}), this.openedInsight = this.background.openedQuestion;
|
|
2405
2428
|
}
|
|
2406
2429
|
connect = () => {
|
|
2407
|
-
this.insights ? this.insights.invalidate() : this.insights = new
|
|
2430
|
+
this.insights ? this.insights.invalidate() : this.insights = new pe(Di(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
|
|
2408
2431
|
window.requestAnimationFrame(() => {
|
|
2409
2432
|
this.insights?.invalidate();
|
|
2410
2433
|
});
|
|
@@ -2417,13 +2440,13 @@ class io extends hr {
|
|
|
2417
2440
|
closeHighlight = (e) => this.background.closeQuestion(e);
|
|
2418
2441
|
}
|
|
2419
2442
|
ue.GAMES + "", ue.HIGHLIGHTS + "";
|
|
2420
|
-
class oo extends
|
|
2443
|
+
class oo extends lr {
|
|
2421
2444
|
constructor(e, r) {
|
|
2422
2445
|
super(e, r);
|
|
2423
2446
|
}
|
|
2424
2447
|
}
|
|
2425
2448
|
const so = (t, e, r) => t.type === ue.GAMES ? new no(t, e, r) : t.type === ue.HIGHLIGHTS ? new io(t, e, r) : new oo(t, e), ao = (t, e, r) => {
|
|
2426
|
-
t.features = /* @__PURE__ */ new Map(), t.activeFeature = new
|
|
2449
|
+
t.features = /* @__PURE__ */ new Map(), t.activeFeature = new de(ne(ue.UNSET), "activeFeature"), t.sdk.getFeatures = () => t.features, t.sdk.getFeature = (o) => t.features.get(o), t.sdk.getActiveFeature = () => t.activeFeature.getStore(), t.sdk.openFeature = (o) => {
|
|
2427
2450
|
t.activeFeature.setValue(o);
|
|
2428
2451
|
}, t.sdk.closeFeature = () => {
|
|
2429
2452
|
t.activeFeature.setValue(ue.UNSET);
|
|
@@ -2478,7 +2501,7 @@ const so = (t, e, r) => t.type === ue.GAMES ? new no(t, e, r) : t.type === ue.HI
|
|
|
2478
2501
|
t.store.subscribe(s);
|
|
2479
2502
|
}, r();
|
|
2480
2503
|
};
|
|
2481
|
-
var
|
|
2504
|
+
var yr = { exports: {} }, gr = { exports: {} };
|
|
2482
2505
|
function uo(t) {
|
|
2483
2506
|
var e = new t(), r = e;
|
|
2484
2507
|
function o() {
|
|
@@ -2494,7 +2517,7 @@ function uo(t) {
|
|
|
2494
2517
|
};
|
|
2495
2518
|
}
|
|
2496
2519
|
var co = uo, fo = co;
|
|
2497
|
-
function
|
|
2520
|
+
function cn(t, e, r) {
|
|
2498
2521
|
if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
|
|
2499
2522
|
throw new Error("fastqueue concurrency must be greater than 1");
|
|
2500
2523
|
var o = fo(lo), s = null, u = null, l = 0, f = null, p = {
|
|
@@ -2504,65 +2527,65 @@ function un(t, e, r) {
|
|
|
2504
2527
|
pause: g,
|
|
2505
2528
|
paused: !1,
|
|
2506
2529
|
concurrency: r,
|
|
2507
|
-
running:
|
|
2508
|
-
resume:
|
|
2530
|
+
running: v,
|
|
2531
|
+
resume: F,
|
|
2509
2532
|
idle: N,
|
|
2510
2533
|
length: b,
|
|
2511
2534
|
getQueue: E,
|
|
2512
2535
|
unshift: K,
|
|
2513
2536
|
empty: ae,
|
|
2514
|
-
kill:
|
|
2537
|
+
kill: _,
|
|
2515
2538
|
killAndDrain: j,
|
|
2516
2539
|
error: U
|
|
2517
2540
|
};
|
|
2518
2541
|
return p;
|
|
2519
|
-
function
|
|
2542
|
+
function v() {
|
|
2520
2543
|
return l;
|
|
2521
2544
|
}
|
|
2522
2545
|
function g() {
|
|
2523
2546
|
p.paused = !0;
|
|
2524
2547
|
}
|
|
2525
2548
|
function b() {
|
|
2526
|
-
for (var
|
|
2527
|
-
|
|
2549
|
+
for (var T = s, x = 0; T; )
|
|
2550
|
+
T = T.next, x++;
|
|
2528
2551
|
return x;
|
|
2529
2552
|
}
|
|
2530
2553
|
function E() {
|
|
2531
|
-
for (var
|
|
2532
|
-
x.push(
|
|
2554
|
+
for (var T = s, x = []; T; )
|
|
2555
|
+
x.push(T.value), T = T.next;
|
|
2533
2556
|
return x;
|
|
2534
2557
|
}
|
|
2535
|
-
function
|
|
2558
|
+
function F() {
|
|
2536
2559
|
if (p.paused) {
|
|
2537
2560
|
p.paused = !1;
|
|
2538
|
-
for (var
|
|
2561
|
+
for (var T = 0; T < p.concurrency; T++)
|
|
2539
2562
|
l++, I();
|
|
2540
2563
|
}
|
|
2541
2564
|
}
|
|
2542
2565
|
function N() {
|
|
2543
2566
|
return l === 0 && p.length() === 0;
|
|
2544
2567
|
}
|
|
2545
|
-
function P(
|
|
2568
|
+
function P(T, x) {
|
|
2546
2569
|
var k = o.get();
|
|
2547
|
-
k.context = t, k.release = I, k.value =
|
|
2570
|
+
k.context = t, k.release = I, k.value = T, k.callback = x || ae, k.errorHandler = f, l === p.concurrency || p.paused ? u ? (u.next = k, u = k) : (s = k, u = k, p.saturated()) : (l++, e.call(t, k.value, k.worked));
|
|
2548
2571
|
}
|
|
2549
|
-
function K(
|
|
2572
|
+
function K(T, x) {
|
|
2550
2573
|
var k = o.get();
|
|
2551
|
-
k.context = t, k.release = I, k.value =
|
|
2574
|
+
k.context = t, k.release = I, k.value = T, k.callback = x || ae, l === p.concurrency || p.paused ? s ? (k.next = s, s = k) : (s = k, u = k, p.saturated()) : (l++, e.call(t, k.value, k.worked));
|
|
2552
2575
|
}
|
|
2553
|
-
function I(
|
|
2554
|
-
|
|
2576
|
+
function I(T) {
|
|
2577
|
+
T && o.release(T);
|
|
2555
2578
|
var x = s;
|
|
2556
2579
|
x ? p.paused ? l-- : (u === s && (u = null), s = x.next, x.next = null, e.call(t, x.value, x.worked), u === null && p.empty()) : --l === 0 && p.drain();
|
|
2557
2580
|
}
|
|
2558
|
-
function
|
|
2581
|
+
function _() {
|
|
2559
2582
|
s = null, u = null, p.drain = ae;
|
|
2560
2583
|
}
|
|
2561
2584
|
function j() {
|
|
2562
2585
|
s = null, u = null, p.drain(), p.drain = ae;
|
|
2563
2586
|
}
|
|
2564
|
-
function U(
|
|
2565
|
-
f =
|
|
2587
|
+
function U(T) {
|
|
2588
|
+
f = T;
|
|
2566
2589
|
}
|
|
2567
2590
|
}
|
|
2568
2591
|
function ae() {
|
|
@@ -2582,13 +2605,13 @@ function ho(t, e, r) {
|
|
|
2582
2605
|
b(null, E);
|
|
2583
2606
|
}, b);
|
|
2584
2607
|
}
|
|
2585
|
-
var s =
|
|
2586
|
-
return s.push = f, s.unshift = p, s.drained =
|
|
2608
|
+
var s = cn(t, o, r), u = s.push, l = s.unshift;
|
|
2609
|
+
return s.push = f, s.unshift = p, s.drained = v, s;
|
|
2587
2610
|
function f(g) {
|
|
2588
|
-
var b = new Promise(function(E,
|
|
2611
|
+
var b = new Promise(function(E, F) {
|
|
2589
2612
|
u(g, function(N, P) {
|
|
2590
2613
|
if (N) {
|
|
2591
|
-
|
|
2614
|
+
F(N);
|
|
2592
2615
|
return;
|
|
2593
2616
|
}
|
|
2594
2617
|
E(P);
|
|
@@ -2597,10 +2620,10 @@ function ho(t, e, r) {
|
|
|
2597
2620
|
return b.catch(ae), b;
|
|
2598
2621
|
}
|
|
2599
2622
|
function p(g) {
|
|
2600
|
-
var b = new Promise(function(E,
|
|
2623
|
+
var b = new Promise(function(E, F) {
|
|
2601
2624
|
l(g, function(N, P) {
|
|
2602
2625
|
if (N) {
|
|
2603
|
-
|
|
2626
|
+
F(N);
|
|
2604
2627
|
return;
|
|
2605
2628
|
}
|
|
2606
2629
|
E(P);
|
|
@@ -2608,7 +2631,7 @@ function ho(t, e, r) {
|
|
|
2608
2631
|
});
|
|
2609
2632
|
return b.catch(ae), b;
|
|
2610
2633
|
}
|
|
2611
|
-
function
|
|
2634
|
+
function v() {
|
|
2612
2635
|
if (s.idle())
|
|
2613
2636
|
return new Promise(function(E) {
|
|
2614
2637
|
E();
|
|
@@ -2621,12 +2644,12 @@ function ho(t, e, r) {
|
|
|
2621
2644
|
return b;
|
|
2622
2645
|
}
|
|
2623
2646
|
}
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
var
|
|
2647
|
+
gr.exports = cn;
|
|
2648
|
+
gr.exports.promise = ho;
|
|
2649
|
+
var fn = gr.exports, mr = { exports: {} }, Je = typeof Reflect == "object" ? Reflect : null, Tr = Je && typeof Je.apply == "function" ? Je.apply : function(e, r, o) {
|
|
2627
2650
|
return Function.prototype.apply.call(e, r, o);
|
|
2628
2651
|
}, dt;
|
|
2629
|
-
|
|
2652
|
+
Je && typeof Je.ownKeys == "function" ? dt = Je.ownKeys : Object.getOwnPropertySymbols ? dt = function(e) {
|
|
2630
2653
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
2631
2654
|
} : dt = function(e) {
|
|
2632
2655
|
return Object.getOwnPropertyNames(e);
|
|
@@ -2634,19 +2657,19 @@ We && typeof We.ownKeys == "function" ? dt = We.ownKeys : Object.getOwnPropertyS
|
|
|
2634
2657
|
function po(t) {
|
|
2635
2658
|
console && console.warn && console.warn(t);
|
|
2636
2659
|
}
|
|
2637
|
-
var
|
|
2660
|
+
var ln = Number.isNaN || function(e) {
|
|
2638
2661
|
return e !== e;
|
|
2639
2662
|
};
|
|
2640
2663
|
function q() {
|
|
2641
2664
|
q.init.call(this);
|
|
2642
2665
|
}
|
|
2643
|
-
|
|
2644
|
-
|
|
2666
|
+
mr.exports = q;
|
|
2667
|
+
mr.exports.once = bo;
|
|
2645
2668
|
q.EventEmitter = q;
|
|
2646
2669
|
q.prototype._events = void 0;
|
|
2647
2670
|
q.prototype._eventsCount = 0;
|
|
2648
2671
|
q.prototype._maxListeners = void 0;
|
|
2649
|
-
var
|
|
2672
|
+
var _r = 10;
|
|
2650
2673
|
function xt(t) {
|
|
2651
2674
|
if (typeof t != "function")
|
|
2652
2675
|
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
|
|
@@ -2654,27 +2677,27 @@ function xt(t) {
|
|
|
2654
2677
|
Object.defineProperty(q, "defaultMaxListeners", {
|
|
2655
2678
|
enumerable: !0,
|
|
2656
2679
|
get: function() {
|
|
2657
|
-
return
|
|
2680
|
+
return _r;
|
|
2658
2681
|
},
|
|
2659
2682
|
set: function(t) {
|
|
2660
|
-
if (typeof t != "number" || t < 0 ||
|
|
2683
|
+
if (typeof t != "number" || t < 0 || ln(t))
|
|
2661
2684
|
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
|
|
2662
|
-
|
|
2685
|
+
_r = t;
|
|
2663
2686
|
}
|
|
2664
2687
|
});
|
|
2665
2688
|
q.init = function() {
|
|
2666
2689
|
(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;
|
|
2667
2690
|
};
|
|
2668
2691
|
q.prototype.setMaxListeners = function(e) {
|
|
2669
|
-
if (typeof e != "number" || e < 0 ||
|
|
2692
|
+
if (typeof e != "number" || e < 0 || ln(e))
|
|
2670
2693
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
2671
2694
|
return this._maxListeners = e, this;
|
|
2672
2695
|
};
|
|
2673
|
-
function
|
|
2696
|
+
function hn(t) {
|
|
2674
2697
|
return t._maxListeners === void 0 ? q.defaultMaxListeners : t._maxListeners;
|
|
2675
2698
|
}
|
|
2676
2699
|
q.prototype.getMaxListeners = function() {
|
|
2677
|
-
return
|
|
2700
|
+
return hn(this);
|
|
2678
2701
|
};
|
|
2679
2702
|
q.prototype.emit = function(e) {
|
|
2680
2703
|
for (var r = [], o = 1; o < arguments.length; o++)
|
|
@@ -2695,13 +2718,13 @@ q.prototype.emit = function(e) {
|
|
|
2695
2718
|
if (p === void 0)
|
|
2696
2719
|
return !1;
|
|
2697
2720
|
if (typeof p == "function")
|
|
2698
|
-
|
|
2721
|
+
Tr(p, this, r);
|
|
2699
2722
|
else
|
|
2700
|
-
for (var
|
|
2701
|
-
|
|
2723
|
+
for (var v = p.length, g = mn(p, v), o = 0; o < v; ++o)
|
|
2724
|
+
Tr(g[o], this, r);
|
|
2702
2725
|
return !0;
|
|
2703
2726
|
};
|
|
2704
|
-
function
|
|
2727
|
+
function pn(t, e, r, o) {
|
|
2705
2728
|
var s, u, l;
|
|
2706
2729
|
if (xt(r), u = t._events, u === void 0 ? (u = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (u.newListener !== void 0 && (t.emit(
|
|
2707
2730
|
"newListener",
|
|
@@ -2709,7 +2732,7 @@ function hn(t, e, r, o) {
|
|
|
2709
2732
|
r.listener ? r.listener : r
|
|
2710
2733
|
), u = t._events), l = u[e]), l === void 0)
|
|
2711
2734
|
l = u[e] = r, ++t._eventsCount;
|
|
2712
|
-
else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s =
|
|
2735
|
+
else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s = hn(t), s > 0 && l.length > s && !l.warned) {
|
|
2713
2736
|
l.warned = !0;
|
|
2714
2737
|
var f = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
2715
2738
|
f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length, po(f);
|
|
@@ -2717,25 +2740,25 @@ function hn(t, e, r, o) {
|
|
|
2717
2740
|
return t;
|
|
2718
2741
|
}
|
|
2719
2742
|
q.prototype.addListener = function(e, r) {
|
|
2720
|
-
return
|
|
2743
|
+
return pn(this, e, r, !1);
|
|
2721
2744
|
};
|
|
2722
2745
|
q.prototype.on = q.prototype.addListener;
|
|
2723
2746
|
q.prototype.prependListener = function(e, r) {
|
|
2724
|
-
return
|
|
2747
|
+
return pn(this, e, r, !0);
|
|
2725
2748
|
};
|
|
2726
2749
|
function yo() {
|
|
2727
2750
|
if (!this.fired)
|
|
2728
2751
|
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);
|
|
2729
2752
|
}
|
|
2730
|
-
function
|
|
2753
|
+
function dn(t, e, r) {
|
|
2731
2754
|
var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = yo.bind(o);
|
|
2732
2755
|
return s.listener = r, o.wrapFn = s, s;
|
|
2733
2756
|
}
|
|
2734
2757
|
q.prototype.once = function(e, r) {
|
|
2735
|
-
return xt(r), this.on(e,
|
|
2758
|
+
return xt(r), this.on(e, dn(this, e, r)), this;
|
|
2736
2759
|
};
|
|
2737
2760
|
q.prototype.prependOnceListener = function(e, r) {
|
|
2738
|
-
return xt(r), this.prependListener(e,
|
|
2761
|
+
return xt(r), this.prependListener(e, dn(this, e, r)), this;
|
|
2739
2762
|
};
|
|
2740
2763
|
q.prototype.removeListener = function(e, r) {
|
|
2741
2764
|
var o, s, u, l, f;
|
|
@@ -2777,24 +2800,24 @@ q.prototype.removeAllListeners = function(e) {
|
|
|
2777
2800
|
this.removeListener(e, r[s]);
|
|
2778
2801
|
return this;
|
|
2779
2802
|
};
|
|
2780
|
-
function
|
|
2803
|
+
function yn(t, e, r) {
|
|
2781
2804
|
var o = t._events;
|
|
2782
2805
|
if (o === void 0)
|
|
2783
2806
|
return [];
|
|
2784
2807
|
var s = o[e];
|
|
2785
|
-
return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? mo(s) :
|
|
2808
|
+
return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? mo(s) : mn(s, s.length);
|
|
2786
2809
|
}
|
|
2787
2810
|
q.prototype.listeners = function(e) {
|
|
2788
|
-
return
|
|
2811
|
+
return yn(this, e, !0);
|
|
2789
2812
|
};
|
|
2790
2813
|
q.prototype.rawListeners = function(e) {
|
|
2791
|
-
return
|
|
2814
|
+
return yn(this, e, !1);
|
|
2792
2815
|
};
|
|
2793
2816
|
q.listenerCount = function(t, e) {
|
|
2794
|
-
return typeof t.listenerCount == "function" ? t.listenerCount(e) :
|
|
2817
|
+
return typeof t.listenerCount == "function" ? t.listenerCount(e) : gn.call(t, e);
|
|
2795
2818
|
};
|
|
2796
|
-
q.prototype.listenerCount =
|
|
2797
|
-
function
|
|
2819
|
+
q.prototype.listenerCount = gn;
|
|
2820
|
+
function gn(t) {
|
|
2798
2821
|
var e = this._events;
|
|
2799
2822
|
if (e !== void 0) {
|
|
2800
2823
|
var r = e[t];
|
|
@@ -2808,7 +2831,7 @@ function yn(t) {
|
|
|
2808
2831
|
q.prototype.eventNames = function() {
|
|
2809
2832
|
return this._eventsCount > 0 ? dt(this._events) : [];
|
|
2810
2833
|
};
|
|
2811
|
-
function
|
|
2834
|
+
function mn(t, e) {
|
|
2812
2835
|
for (var r = new Array(e), o = 0; o < e; ++o)
|
|
2813
2836
|
r[o] = t[o];
|
|
2814
2837
|
return r;
|
|
@@ -2831,13 +2854,13 @@ function bo(t, e) {
|
|
|
2831
2854
|
function u() {
|
|
2832
2855
|
typeof t.removeListener == "function" && t.removeListener("error", s), r([].slice.call(arguments));
|
|
2833
2856
|
}
|
|
2834
|
-
|
|
2857
|
+
bn(t, e, u, { once: !0 }), e !== "error" && wo(t, s, { once: !0 });
|
|
2835
2858
|
});
|
|
2836
2859
|
}
|
|
2837
2860
|
function wo(t, e, r) {
|
|
2838
|
-
typeof t.on == "function" &&
|
|
2861
|
+
typeof t.on == "function" && bn(t, "error", e, r);
|
|
2839
2862
|
}
|
|
2840
|
-
function
|
|
2863
|
+
function bn(t, e, r, o) {
|
|
2841
2864
|
if (typeof t.on == "function")
|
|
2842
2865
|
o.once ? t.once(e, r) : t.on(e, r);
|
|
2843
2866
|
else if (typeof t.addEventListener == "function")
|
|
@@ -2847,7 +2870,7 @@ function mn(t, e, r, o) {
|
|
|
2847
2870
|
else
|
|
2848
2871
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
|
|
2849
2872
|
}
|
|
2850
|
-
var
|
|
2873
|
+
var wn = mr.exports, Bt = {}, vn = {}, Sn = function() {
|
|
2851
2874
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2852
2875
|
return !1;
|
|
2853
2876
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2870,15 +2893,15 @@ var bn = br.exports, Bt = {}, wn = {}, vn = function() {
|
|
|
2870
2893
|
return !1;
|
|
2871
2894
|
}
|
|
2872
2895
|
return !0;
|
|
2873
|
-
}, vo =
|
|
2896
|
+
}, vo = Sn, br = function() {
|
|
2874
2897
|
return vo() && !!Symbol.toStringTag;
|
|
2875
|
-
},
|
|
2876
|
-
return typeof
|
|
2877
|
-
},
|
|
2898
|
+
}, Cr = typeof Symbol < "u" && Symbol, So = Sn, Ao = function() {
|
|
2899
|
+
return typeof Cr != "function" || typeof Symbol != "function" || typeof Cr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : So();
|
|
2900
|
+
}, Or = {
|
|
2878
2901
|
foo: {}
|
|
2879
2902
|
}, Eo = Object, Io = function() {
|
|
2880
|
-
return { __proto__:
|
|
2881
|
-
}, Fo = "Function.prototype.bind called on incompatible ",
|
|
2903
|
+
return { __proto__: Or }.foo === Or.foo && !({ __proto__: null } instanceof Eo);
|
|
2904
|
+
}, Fo = "Function.prototype.bind called on incompatible ", To = Object.prototype.toString, _o = Math.max, Co = "[object Function]", xr = function(e, r) {
|
|
2882
2905
|
for (var o = [], s = 0; s < e.length; s += 1)
|
|
2883
2906
|
o[s] = e[s];
|
|
2884
2907
|
for (var u = 0; u < r.length; u += 1)
|
|
@@ -2894,66 +2917,66 @@ var bn = br.exports, Bt = {}, wn = {}, vn = function() {
|
|
|
2894
2917
|
return r;
|
|
2895
2918
|
}, Bo = function(e) {
|
|
2896
2919
|
var r = this;
|
|
2897
|
-
if (typeof r != "function" ||
|
|
2920
|
+
if (typeof r != "function" || To.apply(r) !== Co)
|
|
2898
2921
|
throw new TypeError(Fo + r);
|
|
2899
2922
|
for (var o = Oo(arguments, 1), s, u = function() {
|
|
2900
2923
|
if (this instanceof s) {
|
|
2901
2924
|
var g = r.apply(
|
|
2902
2925
|
this,
|
|
2903
|
-
|
|
2926
|
+
xr(o, arguments)
|
|
2904
2927
|
);
|
|
2905
2928
|
return Object(g) === g ? g : this;
|
|
2906
2929
|
}
|
|
2907
2930
|
return r.apply(
|
|
2908
2931
|
e,
|
|
2909
|
-
|
|
2932
|
+
xr(o, arguments)
|
|
2910
2933
|
);
|
|
2911
|
-
}, l =
|
|
2934
|
+
}, l = _o(0, r.length - o.length), f = [], p = 0; p < l; p++)
|
|
2912
2935
|
f[p] = "$" + p;
|
|
2913
2936
|
if (s = Function("binder", "return function (" + xo(f, ",") + "){ return binder.apply(this,arguments); }")(u), r.prototype) {
|
|
2914
|
-
var
|
|
2937
|
+
var v = function() {
|
|
2915
2938
|
};
|
|
2916
|
-
|
|
2939
|
+
v.prototype = r.prototype, s.prototype = new v(), v.prototype = null;
|
|
2917
2940
|
}
|
|
2918
2941
|
return s;
|
|
2919
|
-
}, ko = Bo,
|
|
2920
|
-
return Lt.call(
|
|
2921
|
-
}, $,
|
|
2942
|
+
}, ko = Bo, An = Function.prototype.bind || ko, Br = {}.hasOwnProperty, Lt = Function.prototype.call, Po = Lt.bind ? Lt.bind(Br) : function(t, e) {
|
|
2943
|
+
return Lt.call(Br, t, e);
|
|
2944
|
+
}, $, Xe = SyntaxError, En = Function, Ye = TypeError, Ut = function(t) {
|
|
2922
2945
|
try {
|
|
2923
|
-
return
|
|
2946
|
+
return En('"use strict"; return (' + t + ").constructor;")();
|
|
2924
2947
|
} catch {
|
|
2925
2948
|
}
|
|
2926
|
-
},
|
|
2927
|
-
if (
|
|
2949
|
+
}, De = Object.getOwnPropertyDescriptor;
|
|
2950
|
+
if (De)
|
|
2928
2951
|
try {
|
|
2929
|
-
|
|
2952
|
+
De({}, "");
|
|
2930
2953
|
} catch {
|
|
2931
|
-
|
|
2954
|
+
De = null;
|
|
2932
2955
|
}
|
|
2933
2956
|
var $t = function() {
|
|
2934
|
-
throw new
|
|
2935
|
-
}, Ro =
|
|
2957
|
+
throw new Ye();
|
|
2958
|
+
}, Ro = De ? function() {
|
|
2936
2959
|
try {
|
|
2937
2960
|
return arguments.callee, $t;
|
|
2938
2961
|
} catch {
|
|
2939
2962
|
try {
|
|
2940
|
-
return
|
|
2963
|
+
return De(arguments, "callee").get;
|
|
2941
2964
|
} catch {
|
|
2942
2965
|
return $t;
|
|
2943
2966
|
}
|
|
2944
2967
|
}
|
|
2945
|
-
}() : $t,
|
|
2968
|
+
}() : $t, Qe = Ao(), No = Io(), X = Object.getPrototypeOf || (No ? function(t) {
|
|
2946
2969
|
return t.__proto__;
|
|
2947
|
-
} : null),
|
|
2970
|
+
} : null), ze = {}, Lo = typeof Uint8Array > "u" || !X ? $ : X(Uint8Array), Ve = {
|
|
2948
2971
|
"%AggregateError%": typeof AggregateError > "u" ? $ : AggregateError,
|
|
2949
2972
|
"%Array%": Array,
|
|
2950
2973
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? $ : ArrayBuffer,
|
|
2951
|
-
"%ArrayIteratorPrototype%":
|
|
2974
|
+
"%ArrayIteratorPrototype%": Qe && X ? X([][Symbol.iterator]()) : $,
|
|
2952
2975
|
"%AsyncFromSyncIteratorPrototype%": $,
|
|
2953
|
-
"%AsyncFunction%":
|
|
2954
|
-
"%AsyncGenerator%":
|
|
2955
|
-
"%AsyncGeneratorFunction%":
|
|
2956
|
-
"%AsyncIteratorPrototype%":
|
|
2976
|
+
"%AsyncFunction%": ze,
|
|
2977
|
+
"%AsyncGenerator%": ze,
|
|
2978
|
+
"%AsyncGeneratorFunction%": ze,
|
|
2979
|
+
"%AsyncIteratorPrototype%": ze,
|
|
2957
2980
|
"%Atomics%": typeof Atomics > "u" ? $ : Atomics,
|
|
2958
2981
|
"%BigInt%": typeof BigInt > "u" ? $ : BigInt,
|
|
2959
2982
|
"%BigInt64Array%": typeof BigInt64Array > "u" ? $ : BigInt64Array,
|
|
@@ -2972,17 +2995,17 @@ var $t = function() {
|
|
|
2972
2995
|
"%Float32Array%": typeof Float32Array > "u" ? $ : Float32Array,
|
|
2973
2996
|
"%Float64Array%": typeof Float64Array > "u" ? $ : Float64Array,
|
|
2974
2997
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? $ : FinalizationRegistry,
|
|
2975
|
-
"%Function%":
|
|
2976
|
-
"%GeneratorFunction%":
|
|
2998
|
+
"%Function%": En,
|
|
2999
|
+
"%GeneratorFunction%": ze,
|
|
2977
3000
|
"%Int8Array%": typeof Int8Array > "u" ? $ : Int8Array,
|
|
2978
3001
|
"%Int16Array%": typeof Int16Array > "u" ? $ : Int16Array,
|
|
2979
3002
|
"%Int32Array%": typeof Int32Array > "u" ? $ : Int32Array,
|
|
2980
3003
|
"%isFinite%": isFinite,
|
|
2981
3004
|
"%isNaN%": isNaN,
|
|
2982
|
-
"%IteratorPrototype%":
|
|
3005
|
+
"%IteratorPrototype%": Qe && X ? X(X([][Symbol.iterator]())) : $,
|
|
2983
3006
|
"%JSON%": typeof JSON == "object" ? JSON : $,
|
|
2984
3007
|
"%Map%": typeof Map > "u" ? $ : Map,
|
|
2985
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
3008
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !Qe || !X ? $ : X((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2986
3009
|
"%Math%": Math,
|
|
2987
3010
|
"%Number%": Number,
|
|
2988
3011
|
"%Object%": Object,
|
|
@@ -2995,15 +3018,15 @@ var $t = function() {
|
|
|
2995
3018
|
"%Reflect%": typeof Reflect > "u" ? $ : Reflect,
|
|
2996
3019
|
"%RegExp%": RegExp,
|
|
2997
3020
|
"%Set%": typeof Set > "u" ? $ : Set,
|
|
2998
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
3021
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !Qe || !X ? $ : X((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2999
3022
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? $ : SharedArrayBuffer,
|
|
3000
3023
|
"%String%": String,
|
|
3001
|
-
"%StringIteratorPrototype%":
|
|
3002
|
-
"%Symbol%":
|
|
3003
|
-
"%SyntaxError%":
|
|
3024
|
+
"%StringIteratorPrototype%": Qe && X ? X(""[Symbol.iterator]()) : $,
|
|
3025
|
+
"%Symbol%": Qe ? Symbol : $,
|
|
3026
|
+
"%SyntaxError%": Xe,
|
|
3004
3027
|
"%ThrowTypeError%": Ro,
|
|
3005
3028
|
"%TypedArray%": Lo,
|
|
3006
|
-
"%TypeError%":
|
|
3029
|
+
"%TypeError%": Ye,
|
|
3007
3030
|
"%Uint8Array%": typeof Uint8Array > "u" ? $ : Uint8Array,
|
|
3008
3031
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? $ : Uint8ClampedArray,
|
|
3009
3032
|
"%Uint16Array%": typeof Uint16Array > "u" ? $ : Uint16Array,
|
|
@@ -3018,7 +3041,7 @@ if (X)
|
|
|
3018
3041
|
null.error;
|
|
3019
3042
|
} catch (t) {
|
|
3020
3043
|
var Uo = X(X(t));
|
|
3021
|
-
|
|
3044
|
+
Ve["%Error.prototype%"] = Uo;
|
|
3022
3045
|
}
|
|
3023
3046
|
var $o = function t(e) {
|
|
3024
3047
|
var r;
|
|
@@ -3035,8 +3058,8 @@ var $o = function t(e) {
|
|
|
3035
3058
|
var s = t("%AsyncGenerator%");
|
|
3036
3059
|
s && X && (r = X(s.prototype));
|
|
3037
3060
|
}
|
|
3038
|
-
return
|
|
3039
|
-
},
|
|
3061
|
+
return Ve[e] = r, r;
|
|
3062
|
+
}, kr = {
|
|
3040
3063
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
3041
3064
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
3042
3065
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -3088,60 +3111,60 @@ var $o = function t(e) {
|
|
|
3088
3111
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3089
3112
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3090
3113
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3091
|
-
}, ft =
|
|
3114
|
+
}, ft = An, St = Po, jo = ft.call(Function.call, Array.prototype.concat), Do = ft.call(Function.apply, Array.prototype.splice), Pr = ft.call(Function.call, String.prototype.replace), At = ft.call(Function.call, String.prototype.slice), Vo = ft.call(Function.call, RegExp.prototype.exec), Mo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, qo = /\\(\\)?/g, Qo = function(e) {
|
|
3092
3115
|
var r = At(e, 0, 1), o = At(e, -1);
|
|
3093
3116
|
if (r === "%" && o !== "%")
|
|
3094
|
-
throw new
|
|
3117
|
+
throw new Xe("invalid intrinsic syntax, expected closing `%`");
|
|
3095
3118
|
if (o === "%" && r !== "%")
|
|
3096
|
-
throw new
|
|
3119
|
+
throw new Xe("invalid intrinsic syntax, expected opening `%`");
|
|
3097
3120
|
var s = [];
|
|
3098
|
-
return
|
|
3099
|
-
s[s.length] = f ?
|
|
3121
|
+
return Pr(e, Mo, function(u, l, f, p) {
|
|
3122
|
+
s[s.length] = f ? Pr(p, qo, "$1") : l || u;
|
|
3100
3123
|
}), s;
|
|
3101
3124
|
}, Go = function(e, r) {
|
|
3102
3125
|
var o = e, s;
|
|
3103
|
-
if (St(
|
|
3104
|
-
var u =
|
|
3105
|
-
if (u ===
|
|
3106
|
-
throw new
|
|
3126
|
+
if (St(kr, o) && (s = kr[o], o = "%" + s[0] + "%"), St(Ve, o)) {
|
|
3127
|
+
var u = Ve[o];
|
|
3128
|
+
if (u === ze && (u = $o(o)), typeof u > "u" && !r)
|
|
3129
|
+
throw new Ye("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
3107
3130
|
return {
|
|
3108
3131
|
alias: s,
|
|
3109
3132
|
name: o,
|
|
3110
3133
|
value: u
|
|
3111
3134
|
};
|
|
3112
3135
|
}
|
|
3113
|
-
throw new
|
|
3114
|
-
},
|
|
3136
|
+
throw new Xe("intrinsic " + e + " does not exist!");
|
|
3137
|
+
}, et = function(e, r) {
|
|
3115
3138
|
if (typeof e != "string" || e.length === 0)
|
|
3116
|
-
throw new
|
|
3139
|
+
throw new Ye("intrinsic name must be a non-empty string");
|
|
3117
3140
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
3118
|
-
throw new
|
|
3119
|
-
if (
|
|
3120
|
-
throw new
|
|
3121
|
-
var o = Qo(e), s = o.length > 0 ? o[0] : "", u = Go("%" + s + "%", r), l = u.name, f = u.value, p = !1,
|
|
3122
|
-
|
|
3141
|
+
throw new Ye('"allowMissing" argument must be a boolean');
|
|
3142
|
+
if (Vo(/^%?[^%]*%?$/, e) === null)
|
|
3143
|
+
throw new Xe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3144
|
+
var o = Qo(e), s = o.length > 0 ? o[0] : "", u = Go("%" + s + "%", r), l = u.name, f = u.value, p = !1, v = u.alias;
|
|
3145
|
+
v && (s = v[0], Do(o, jo([0, 1], v)));
|
|
3123
3146
|
for (var g = 1, b = !0; g < o.length; g += 1) {
|
|
3124
|
-
var E = o[g],
|
|
3125
|
-
if ((
|
|
3126
|
-
throw new
|
|
3127
|
-
if ((E === "constructor" || !b) && (p = !0), s += "." + E, l = "%" + s + "%", St(
|
|
3128
|
-
f =
|
|
3147
|
+
var E = o[g], F = At(E, 0, 1), N = At(E, -1);
|
|
3148
|
+
if ((F === '"' || F === "'" || F === "`" || N === '"' || N === "'" || N === "`") && F !== N)
|
|
3149
|
+
throw new Xe("property names with quotes must have matching quotes");
|
|
3150
|
+
if ((E === "constructor" || !b) && (p = !0), s += "." + E, l = "%" + s + "%", St(Ve, l))
|
|
3151
|
+
f = Ve[l];
|
|
3129
3152
|
else if (f != null) {
|
|
3130
3153
|
if (!(E in f)) {
|
|
3131
3154
|
if (!r)
|
|
3132
|
-
throw new
|
|
3155
|
+
throw new Ye("base intrinsic for " + e + " exists, but the property is not available.");
|
|
3133
3156
|
return;
|
|
3134
3157
|
}
|
|
3135
|
-
if (
|
|
3136
|
-
var P =
|
|
3158
|
+
if (De && g + 1 >= o.length) {
|
|
3159
|
+
var P = De(f, E);
|
|
3137
3160
|
b = !!P, b && "get" in P && !("originalValue" in P.get) ? f = P.get : f = f[E];
|
|
3138
3161
|
} else
|
|
3139
3162
|
b = St(f, E), f = f[E];
|
|
3140
|
-
b && !p && (
|
|
3163
|
+
b && !p && (Ve[l] = f);
|
|
3141
3164
|
}
|
|
3142
3165
|
}
|
|
3143
3166
|
return f;
|
|
3144
|
-
},
|
|
3167
|
+
}, In = { exports: {} }, zo = et, er = zo("%Object.defineProperty%", !0), tr = function() {
|
|
3145
3168
|
if (er)
|
|
3146
3169
|
try {
|
|
3147
3170
|
return er({}, "a", { value: 1 }), !0;
|
|
@@ -3159,34 +3182,34 @@ tr.hasArrayLengthDefineBug = function() {
|
|
|
3159
3182
|
return !0;
|
|
3160
3183
|
}
|
|
3161
3184
|
};
|
|
3162
|
-
var
|
|
3185
|
+
var Fn = tr, Ko = et, yt = Ko("%Object.getOwnPropertyDescriptor%", !0);
|
|
3163
3186
|
if (yt)
|
|
3164
3187
|
try {
|
|
3165
3188
|
yt([], "length");
|
|
3166
3189
|
} catch {
|
|
3167
3190
|
yt = null;
|
|
3168
3191
|
}
|
|
3169
|
-
var
|
|
3192
|
+
var wr = yt, Ho = Fn(), vr = et, ut = Ho && vr("%Object.defineProperty%", !0);
|
|
3170
3193
|
if (ut)
|
|
3171
3194
|
try {
|
|
3172
3195
|
ut({}, "a", { value: 1 });
|
|
3173
3196
|
} catch {
|
|
3174
3197
|
ut = !1;
|
|
3175
3198
|
}
|
|
3176
|
-
var Wo =
|
|
3199
|
+
var Wo = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = wr, Jo = function(e, r, o) {
|
|
3177
3200
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
3178
|
-
throw new
|
|
3201
|
+
throw new Ge("`obj` must be an object or a function`");
|
|
3179
3202
|
if (typeof r != "string" && typeof r != "symbol")
|
|
3180
|
-
throw new
|
|
3203
|
+
throw new Ge("`property` must be a string or a symbol`");
|
|
3181
3204
|
if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
|
|
3182
|
-
throw new
|
|
3205
|
+
throw new Ge("`nonEnumerable`, if provided, must be a boolean or null");
|
|
3183
3206
|
if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
|
|
3184
|
-
throw new
|
|
3207
|
+
throw new Ge("`nonWritable`, if provided, must be a boolean or null");
|
|
3185
3208
|
if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
|
|
3186
|
-
throw new
|
|
3209
|
+
throw new Ge("`nonConfigurable`, if provided, must be a boolean or null");
|
|
3187
3210
|
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
3188
|
-
throw new
|
|
3189
|
-
var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, p = !!
|
|
3211
|
+
throw new Ge("`loose`, if provided, must be a boolean");
|
|
3212
|
+
var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, p = !!Rr && Rr(e, r);
|
|
3190
3213
|
if (ut)
|
|
3191
3214
|
ut(e, r, {
|
|
3192
3215
|
configurable: l === null && p ? p.configurable : !l,
|
|
@@ -3198,20 +3221,20 @@ var Wo = Sr("%SyntaxError%"), qe = Sr("%TypeError%"), Nr = vr, Jo = function(e,
|
|
|
3198
3221
|
e[r] = o;
|
|
3199
3222
|
else
|
|
3200
3223
|
throw new Wo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3201
|
-
},
|
|
3224
|
+
}, Tn = et, Nr = Jo, Yo = Fn(), Lr = wr, Ur = Tn("%TypeError%"), Xo = Tn("%Math.floor%"), Zo = function(e, r) {
|
|
3202
3225
|
if (typeof e != "function")
|
|
3203
|
-
throw new
|
|
3226
|
+
throw new Ur("`fn` is not a function");
|
|
3204
3227
|
if (typeof r != "number" || r < 0 || r > 4294967295 || Xo(r) !== r)
|
|
3205
|
-
throw new
|
|
3228
|
+
throw new Ur("`length` must be a positive 32-bit integer");
|
|
3206
3229
|
var o = arguments.length > 2 && !!arguments[2], s = !0, u = !0;
|
|
3207
|
-
if ("length" in e &&
|
|
3208
|
-
var l =
|
|
3230
|
+
if ("length" in e && Lr) {
|
|
3231
|
+
var l = Lr(e, "length");
|
|
3209
3232
|
l && !l.configurable && (s = !1), l && !l.writable && (u = !1);
|
|
3210
3233
|
}
|
|
3211
|
-
return (s || u || !o) && (Yo ?
|
|
3234
|
+
return (s || u || !o) && (Yo ? Nr(e, "length", r, !0, !0) : Nr(e, "length", r)), e;
|
|
3212
3235
|
};
|
|
3213
3236
|
(function(t) {
|
|
3214
|
-
var e =
|
|
3237
|
+
var e = An, r = et, o = Zo, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), f = r("%Reflect.apply%", !0) || e.call(l, u), p = r("%Object.defineProperty%", !0), v = r("%Math.max%");
|
|
3215
3238
|
if (p)
|
|
3216
3239
|
try {
|
|
3217
3240
|
p({}, "a", { value: 1 });
|
|
@@ -3221,10 +3244,10 @@ var Wo = Sr("%SyntaxError%"), qe = Sr("%TypeError%"), Nr = vr, Jo = function(e,
|
|
|
3221
3244
|
t.exports = function(E) {
|
|
3222
3245
|
if (typeof E != "function")
|
|
3223
3246
|
throw new s("a function is required");
|
|
3224
|
-
var
|
|
3247
|
+
var F = f(e, l, arguments);
|
|
3225
3248
|
return o(
|
|
3226
|
-
|
|
3227
|
-
1 +
|
|
3249
|
+
F,
|
|
3250
|
+
1 + v(0, E.length - (arguments.length - 1)),
|
|
3228
3251
|
!0
|
|
3229
3252
|
);
|
|
3230
3253
|
};
|
|
@@ -3232,20 +3255,20 @@ var Wo = Sr("%SyntaxError%"), qe = Sr("%TypeError%"), Nr = vr, Jo = function(e,
|
|
|
3232
3255
|
return f(e, u, arguments);
|
|
3233
3256
|
};
|
|
3234
3257
|
p ? p(t.exports, "apply", { value: g }) : t.exports.apply = g;
|
|
3235
|
-
})(
|
|
3236
|
-
var _n =
|
|
3258
|
+
})(In);
|
|
3259
|
+
var _n = In.exports, Cn = et, On = _n, es = On(Cn("String.prototype.indexOf")), xn = function(e, r) {
|
|
3237
3260
|
var o = Cn(e, !!r);
|
|
3238
|
-
return typeof o == "function" && es(e, ".prototype.") > -1 ?
|
|
3239
|
-
}, ts =
|
|
3261
|
+
return typeof o == "function" && es(e, ".prototype.") > -1 ? On(o) : o;
|
|
3262
|
+
}, ts = br(), rs = xn, rr = rs("Object.prototype.toString"), kt = function(e) {
|
|
3240
3263
|
return ts && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : rr(e) === "[object Arguments]";
|
|
3241
|
-
},
|
|
3264
|
+
}, Bn = function(e) {
|
|
3242
3265
|
return kt(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && rr(e) !== "[object Array]" && rr(e.callee) === "[object Function]";
|
|
3243
3266
|
}, ns = function() {
|
|
3244
3267
|
return kt(arguments);
|
|
3245
3268
|
}();
|
|
3246
|
-
kt.isLegacyArguments =
|
|
3247
|
-
var is = ns ? kt :
|
|
3248
|
-
if (!
|
|
3269
|
+
kt.isLegacyArguments = Bn;
|
|
3270
|
+
var is = ns ? kt : Bn, os = Object.prototype.toString, ss = Function.prototype.toString, as = /^\s*(?:function)?\*/, kn = br(), jt = Object.getPrototypeOf, us = function() {
|
|
3271
|
+
if (!kn)
|
|
3249
3272
|
return !1;
|
|
3250
3273
|
try {
|
|
3251
3274
|
return Function("return function*() {}")();
|
|
@@ -3256,7 +3279,7 @@ var is = ns ? kt : xn, os = Object.prototype.toString, ss = Function.prototype.t
|
|
|
3256
3279
|
return !1;
|
|
3257
3280
|
if (as.test(ss.call(e)))
|
|
3258
3281
|
return !0;
|
|
3259
|
-
if (!
|
|
3282
|
+
if (!kn) {
|
|
3260
3283
|
var r = os.call(e);
|
|
3261
3284
|
return r === "[object GeneratorFunction]";
|
|
3262
3285
|
}
|
|
@@ -3267,31 +3290,31 @@ var is = ns ? kt : xn, os = Object.prototype.toString, ss = Function.prototype.t
|
|
|
3267
3290
|
Dt = o ? jt(o) : !1;
|
|
3268
3291
|
}
|
|
3269
3292
|
return jt(e) === Dt;
|
|
3270
|
-
},
|
|
3271
|
-
if (typeof
|
|
3293
|
+
}, Pn = Function.prototype.toString, He = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, gt;
|
|
3294
|
+
if (typeof He == "function" && typeof Object.defineProperty == "function")
|
|
3272
3295
|
try {
|
|
3273
3296
|
nr = Object.defineProperty({}, "length", {
|
|
3274
3297
|
get: function() {
|
|
3275
3298
|
throw gt;
|
|
3276
3299
|
}
|
|
3277
|
-
}), gt = {},
|
|
3300
|
+
}), gt = {}, He(function() {
|
|
3278
3301
|
throw 42;
|
|
3279
3302
|
}, null, nr);
|
|
3280
3303
|
} catch (t) {
|
|
3281
|
-
t !== gt && (
|
|
3304
|
+
t !== gt && (He = null);
|
|
3282
3305
|
}
|
|
3283
3306
|
else
|
|
3284
|
-
|
|
3307
|
+
He = null;
|
|
3285
3308
|
var fs = /^\s*class\b/, ir = function(e) {
|
|
3286
3309
|
try {
|
|
3287
|
-
var r =
|
|
3310
|
+
var r = Pn.call(e);
|
|
3288
3311
|
return fs.test(r);
|
|
3289
3312
|
} catch {
|
|
3290
3313
|
return !1;
|
|
3291
3314
|
}
|
|
3292
|
-
},
|
|
3315
|
+
}, Vt = function(e) {
|
|
3293
3316
|
try {
|
|
3294
|
-
return ir(e) ? !1 : (
|
|
3317
|
+
return ir(e) ? !1 : (Pn.call(e), !0);
|
|
3295
3318
|
} catch {
|
|
3296
3319
|
return !1;
|
|
3297
3320
|
}
|
|
@@ -3310,44 +3333,44 @@ if (typeof document == "object") {
|
|
|
3310
3333
|
return !1;
|
|
3311
3334
|
});
|
|
3312
3335
|
}
|
|
3313
|
-
var vs =
|
|
3336
|
+
var vs = He ? function(e) {
|
|
3314
3337
|
if (or(e))
|
|
3315
3338
|
return !0;
|
|
3316
3339
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
3317
3340
|
return !1;
|
|
3318
3341
|
try {
|
|
3319
|
-
|
|
3342
|
+
He(e, null, nr);
|
|
3320
3343
|
} catch (r) {
|
|
3321
3344
|
if (r !== gt)
|
|
3322
3345
|
return !1;
|
|
3323
3346
|
}
|
|
3324
|
-
return !ir(e) &&
|
|
3347
|
+
return !ir(e) && Vt(e);
|
|
3325
3348
|
} : function(e) {
|
|
3326
3349
|
if (or(e))
|
|
3327
3350
|
return !0;
|
|
3328
3351
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
3329
3352
|
return !1;
|
|
3330
3353
|
if (ms)
|
|
3331
|
-
return
|
|
3354
|
+
return Vt(e);
|
|
3332
3355
|
if (ir(e))
|
|
3333
3356
|
return !1;
|
|
3334
3357
|
var r = mt.call(e);
|
|
3335
|
-
return r !== hs && r !== ps && !/^\[object HTML/.test(r) ? !1 :
|
|
3336
|
-
}, Ss = vs, As = Object.prototype.toString,
|
|
3358
|
+
return r !== hs && r !== ps && !/^\[object HTML/.test(r) ? !1 : Vt(e);
|
|
3359
|
+
}, Ss = vs, As = Object.prototype.toString, Rn = Object.prototype.hasOwnProperty, Es = function(e, r, o) {
|
|
3337
3360
|
for (var s = 0, u = e.length; s < u; s++)
|
|
3338
|
-
|
|
3361
|
+
Rn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
|
|
3339
3362
|
}, Is = function(e, r, o) {
|
|
3340
3363
|
for (var s = 0, u = e.length; s < u; s++)
|
|
3341
3364
|
o == null ? r(e.charAt(s), s, e) : r.call(o, e.charAt(s), s, e);
|
|
3342
3365
|
}, Fs = function(e, r, o) {
|
|
3343
3366
|
for (var s in e)
|
|
3344
|
-
|
|
3345
|
-
},
|
|
3367
|
+
Rn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
|
|
3368
|
+
}, Ts = function(e, r, o) {
|
|
3346
3369
|
if (!Ss(r))
|
|
3347
3370
|
throw new TypeError("iterator must be a function");
|
|
3348
3371
|
var s;
|
|
3349
3372
|
arguments.length >= 3 && (s = o), As.call(e) === "[object Array]" ? Es(e, r, s) : typeof e == "string" ? Is(e, r, s) : Fs(e, r, s);
|
|
3350
|
-
},
|
|
3373
|
+
}, _s = Ts, Mt = [
|
|
3351
3374
|
"BigInt64Array",
|
|
3352
3375
|
"BigUint64Array",
|
|
3353
3376
|
"Float32Array",
|
|
@@ -3359,36 +3382,36 @@ var vs = ze ? function(e) {
|
|
|
3359
3382
|
"Uint32Array",
|
|
3360
3383
|
"Uint8Array",
|
|
3361
3384
|
"Uint8ClampedArray"
|
|
3362
|
-
],
|
|
3363
|
-
for (var e = [], r = 0; r <
|
|
3364
|
-
typeof
|
|
3385
|
+
], Cs = typeof globalThis > "u" ? Yr : globalThis, Os = function() {
|
|
3386
|
+
for (var e = [], r = 0; r < Mt.length; r++)
|
|
3387
|
+
typeof Cs[Mt[r]] == "function" && (e[e.length] = Mt[r]);
|
|
3365
3388
|
return e;
|
|
3366
|
-
}, Et =
|
|
3389
|
+
}, Et = _s, xs = Os, $r = _n, Sr = xn, bt = wr, Bs = Sr("Object.prototype.toString"), Nn = br(), jr = typeof globalThis > "u" ? Yr : globalThis, sr = xs(), Ar = Sr("String.prototype.slice"), qt = Object.getPrototypeOf, ks = Sr("Array.prototype.indexOf", !0) || function(e, r) {
|
|
3367
3390
|
for (var o = 0; o < e.length; o += 1)
|
|
3368
3391
|
if (e[o] === r)
|
|
3369
3392
|
return o;
|
|
3370
3393
|
return -1;
|
|
3371
3394
|
}, It = { __proto__: null };
|
|
3372
|
-
|
|
3373
|
-
var e = new
|
|
3395
|
+
Nn && bt && qt ? Et(sr, function(t) {
|
|
3396
|
+
var e = new jr[t]();
|
|
3374
3397
|
if (Symbol.toStringTag in e) {
|
|
3375
3398
|
var r = qt(e), o = bt(r, Symbol.toStringTag);
|
|
3376
3399
|
if (!o) {
|
|
3377
3400
|
var s = qt(r);
|
|
3378
3401
|
o = bt(s, Symbol.toStringTag);
|
|
3379
3402
|
}
|
|
3380
|
-
It["$" + t] =
|
|
3403
|
+
It["$" + t] = $r(o.get);
|
|
3381
3404
|
}
|
|
3382
3405
|
}) : Et(sr, function(t) {
|
|
3383
|
-
var e = new
|
|
3384
|
-
r && (It["$" + t] =
|
|
3406
|
+
var e = new jr[t](), r = e.slice || e.set;
|
|
3407
|
+
r && (It["$" + t] = $r(r));
|
|
3385
3408
|
});
|
|
3386
3409
|
var Ps = function(e) {
|
|
3387
3410
|
var r = !1;
|
|
3388
3411
|
return Et(It, function(o, s) {
|
|
3389
3412
|
if (!r)
|
|
3390
3413
|
try {
|
|
3391
|
-
"$" + o(e) === s && (r =
|
|
3414
|
+
"$" + o(e) === s && (r = Ar(s, 1));
|
|
3392
3415
|
} catch {
|
|
3393
3416
|
}
|
|
3394
3417
|
}), r;
|
|
@@ -3397,205 +3420,205 @@ var Ps = function(e) {
|
|
|
3397
3420
|
return Et(It, function(o, s) {
|
|
3398
3421
|
if (!r)
|
|
3399
3422
|
try {
|
|
3400
|
-
o(e), r =
|
|
3423
|
+
o(e), r = Ar(s, 1);
|
|
3401
3424
|
} catch {
|
|
3402
3425
|
}
|
|
3403
3426
|
}), r;
|
|
3404
|
-
},
|
|
3427
|
+
}, Ln = function(e) {
|
|
3405
3428
|
if (!e || typeof e != "object")
|
|
3406
3429
|
return !1;
|
|
3407
|
-
if (!
|
|
3408
|
-
var r =
|
|
3430
|
+
if (!Nn) {
|
|
3431
|
+
var r = Ar(Bs(e), 8, -1);
|
|
3409
3432
|
return ks(sr, r) > -1 ? r : r !== "Object" ? !1 : Rs(e);
|
|
3410
3433
|
}
|
|
3411
3434
|
return bt ? Ps(e) : null;
|
|
3412
|
-
}, Ns =
|
|
3435
|
+
}, Ns = Ln, Ls = function(e) {
|
|
3413
3436
|
return !!Ns(e);
|
|
3414
3437
|
};
|
|
3415
3438
|
(function(t) {
|
|
3416
|
-
var e = is, r = cs, o =
|
|
3417
|
-
function u(
|
|
3418
|
-
return
|
|
3439
|
+
var e = is, r = cs, o = Ln, s = Ls;
|
|
3440
|
+
function u(S) {
|
|
3441
|
+
return S.call.bind(S);
|
|
3419
3442
|
}
|
|
3420
|
-
var l = typeof BigInt < "u", f = typeof Symbol < "u", p = u(Object.prototype.toString),
|
|
3443
|
+
var l = typeof BigInt < "u", f = typeof Symbol < "u", p = u(Object.prototype.toString), v = u(Number.prototype.valueOf), g = u(String.prototype.valueOf), b = u(Boolean.prototype.valueOf);
|
|
3421
3444
|
if (l)
|
|
3422
3445
|
var E = u(BigInt.prototype.valueOf);
|
|
3423
3446
|
if (f)
|
|
3424
|
-
var
|
|
3425
|
-
function N(
|
|
3426
|
-
if (typeof
|
|
3447
|
+
var F = u(Symbol.prototype.valueOf);
|
|
3448
|
+
function N(S, ht) {
|
|
3449
|
+
if (typeof S != "object")
|
|
3427
3450
|
return !1;
|
|
3428
3451
|
try {
|
|
3429
|
-
return ht(
|
|
3452
|
+
return ht(S), !0;
|
|
3430
3453
|
} catch {
|
|
3431
3454
|
return !1;
|
|
3432
3455
|
}
|
|
3433
3456
|
}
|
|
3434
3457
|
t.isArgumentsObject = e, t.isGeneratorFunction = r, t.isTypedArray = s;
|
|
3435
|
-
function P(
|
|
3436
|
-
return typeof Promise < "u" &&
|
|
3458
|
+
function P(S) {
|
|
3459
|
+
return typeof Promise < "u" && S instanceof Promise || S !== null && typeof S == "object" && typeof S.then == "function" && typeof S.catch == "function";
|
|
3437
3460
|
}
|
|
3438
3461
|
t.isPromise = P;
|
|
3439
|
-
function K(
|
|
3440
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(
|
|
3462
|
+
function K(S) {
|
|
3463
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(S) : s(S) || w(S);
|
|
3441
3464
|
}
|
|
3442
3465
|
t.isArrayBufferView = K;
|
|
3443
|
-
function I(
|
|
3444
|
-
return o(
|
|
3466
|
+
function I(S) {
|
|
3467
|
+
return o(S) === "Uint8Array";
|
|
3445
3468
|
}
|
|
3446
3469
|
t.isUint8Array = I;
|
|
3447
|
-
function
|
|
3448
|
-
return o(
|
|
3470
|
+
function _(S) {
|
|
3471
|
+
return o(S) === "Uint8ClampedArray";
|
|
3449
3472
|
}
|
|
3450
|
-
t.isUint8ClampedArray =
|
|
3451
|
-
function j(
|
|
3452
|
-
return o(
|
|
3473
|
+
t.isUint8ClampedArray = _;
|
|
3474
|
+
function j(S) {
|
|
3475
|
+
return o(S) === "Uint16Array";
|
|
3453
3476
|
}
|
|
3454
3477
|
t.isUint16Array = j;
|
|
3455
|
-
function U(
|
|
3456
|
-
return o(
|
|
3478
|
+
function U(S) {
|
|
3479
|
+
return o(S) === "Uint32Array";
|
|
3457
3480
|
}
|
|
3458
3481
|
t.isUint32Array = U;
|
|
3459
|
-
function
|
|
3460
|
-
return o(
|
|
3482
|
+
function T(S) {
|
|
3483
|
+
return o(S) === "Int8Array";
|
|
3461
3484
|
}
|
|
3462
|
-
t.isInt8Array =
|
|
3463
|
-
function x(
|
|
3464
|
-
return o(
|
|
3485
|
+
t.isInt8Array = T;
|
|
3486
|
+
function x(S) {
|
|
3487
|
+
return o(S) === "Int16Array";
|
|
3465
3488
|
}
|
|
3466
3489
|
t.isInt16Array = x;
|
|
3467
|
-
function k(
|
|
3468
|
-
return o(
|
|
3490
|
+
function k(S) {
|
|
3491
|
+
return o(S) === "Int32Array";
|
|
3469
3492
|
}
|
|
3470
3493
|
t.isInt32Array = k;
|
|
3471
|
-
function G(
|
|
3472
|
-
return o(
|
|
3494
|
+
function G(S) {
|
|
3495
|
+
return o(S) === "Float32Array";
|
|
3473
3496
|
}
|
|
3474
3497
|
t.isFloat32Array = G;
|
|
3475
|
-
function ie(
|
|
3476
|
-
return o(
|
|
3498
|
+
function ie(S) {
|
|
3499
|
+
return o(S) === "Float64Array";
|
|
3477
3500
|
}
|
|
3478
3501
|
t.isFloat64Array = ie;
|
|
3479
|
-
function
|
|
3480
|
-
return o(
|
|
3502
|
+
function Ce(S) {
|
|
3503
|
+
return o(S) === "BigInt64Array";
|
|
3481
3504
|
}
|
|
3482
|
-
t.isBigInt64Array =
|
|
3483
|
-
function Se(
|
|
3484
|
-
return o(
|
|
3505
|
+
t.isBigInt64Array = Ce;
|
|
3506
|
+
function Se(S) {
|
|
3507
|
+
return o(S) === "BigUint64Array";
|
|
3485
3508
|
}
|
|
3486
3509
|
t.isBigUint64Array = Se;
|
|
3487
|
-
function
|
|
3488
|
-
return p(
|
|
3510
|
+
function ce(S) {
|
|
3511
|
+
return p(S) === "[object Map]";
|
|
3489
3512
|
}
|
|
3490
|
-
|
|
3491
|
-
function
|
|
3492
|
-
return typeof Map > "u" ? !1 :
|
|
3513
|
+
ce.working = typeof Map < "u" && ce(/* @__PURE__ */ new Map());
|
|
3514
|
+
function rt(S) {
|
|
3515
|
+
return typeof Map > "u" ? !1 : ce.working ? ce(S) : S instanceof Map;
|
|
3493
3516
|
}
|
|
3494
|
-
t.isMap =
|
|
3495
|
-
function
|
|
3496
|
-
return p(
|
|
3517
|
+
t.isMap = rt;
|
|
3518
|
+
function fe(S) {
|
|
3519
|
+
return p(S) === "[object Set]";
|
|
3497
3520
|
}
|
|
3498
|
-
|
|
3499
|
-
function Oe(
|
|
3500
|
-
return typeof Set > "u" ? !1 :
|
|
3521
|
+
fe.working = typeof Set < "u" && fe(/* @__PURE__ */ new Set());
|
|
3522
|
+
function Oe(S) {
|
|
3523
|
+
return typeof Set > "u" ? !1 : fe.working ? fe(S) : S instanceof Set;
|
|
3501
3524
|
}
|
|
3502
3525
|
t.isSet = Oe;
|
|
3503
|
-
function xe(
|
|
3504
|
-
return p(
|
|
3526
|
+
function xe(S) {
|
|
3527
|
+
return p(S) === "[object WeakMap]";
|
|
3505
3528
|
}
|
|
3506
3529
|
xe.working = typeof WeakMap < "u" && xe(/* @__PURE__ */ new WeakMap());
|
|
3507
|
-
function
|
|
3508
|
-
return typeof WeakMap > "u" ? !1 : xe.working ? xe(
|
|
3530
|
+
function nt(S) {
|
|
3531
|
+
return typeof WeakMap > "u" ? !1 : xe.working ? xe(S) : S instanceof WeakMap;
|
|
3509
3532
|
}
|
|
3510
|
-
t.isWeakMap =
|
|
3511
|
-
function Be(
|
|
3512
|
-
return p(
|
|
3533
|
+
t.isWeakMap = nt;
|
|
3534
|
+
function Be(S) {
|
|
3535
|
+
return p(S) === "[object WeakSet]";
|
|
3513
3536
|
}
|
|
3514
3537
|
Be.working = typeof WeakSet < "u" && Be(/* @__PURE__ */ new WeakSet());
|
|
3515
|
-
function
|
|
3516
|
-
return Be(
|
|
3538
|
+
function le(S) {
|
|
3539
|
+
return Be(S);
|
|
3517
3540
|
}
|
|
3518
|
-
t.isWeakSet =
|
|
3519
|
-
function ke(
|
|
3520
|
-
return p(
|
|
3541
|
+
t.isWeakSet = le;
|
|
3542
|
+
function ke(S) {
|
|
3543
|
+
return p(S) === "[object ArrayBuffer]";
|
|
3521
3544
|
}
|
|
3522
3545
|
ke.working = typeof ArrayBuffer < "u" && ke(new ArrayBuffer());
|
|
3523
|
-
function H(
|
|
3524
|
-
return typeof ArrayBuffer > "u" ? !1 : ke.working ? ke(
|
|
3546
|
+
function H(S) {
|
|
3547
|
+
return typeof ArrayBuffer > "u" ? !1 : ke.working ? ke(S) : S instanceof ArrayBuffer;
|
|
3525
3548
|
}
|
|
3526
3549
|
t.isArrayBuffer = H;
|
|
3527
|
-
function d(
|
|
3528
|
-
return p(
|
|
3550
|
+
function d(S) {
|
|
3551
|
+
return p(S) === "[object DataView]";
|
|
3529
3552
|
}
|
|
3530
3553
|
d.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && d(new DataView(new ArrayBuffer(1), 0, 1));
|
|
3531
|
-
function w(
|
|
3532
|
-
return typeof DataView > "u" ? !1 : d.working ? d(
|
|
3554
|
+
function w(S) {
|
|
3555
|
+
return typeof DataView > "u" ? !1 : d.working ? d(S) : S instanceof DataView;
|
|
3533
3556
|
}
|
|
3534
3557
|
t.isDataView = w;
|
|
3535
3558
|
var A = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
3536
|
-
function
|
|
3537
|
-
return p(
|
|
3559
|
+
function C(S) {
|
|
3560
|
+
return p(S) === "[object SharedArrayBuffer]";
|
|
3538
3561
|
}
|
|
3539
|
-
function D(
|
|
3540
|
-
return typeof A > "u" ? !1 : (typeof
|
|
3562
|
+
function D(S) {
|
|
3563
|
+
return typeof A > "u" ? !1 : (typeof C.working > "u" && (C.working = C(new A())), C.working ? C(S) : S instanceof A);
|
|
3541
3564
|
}
|
|
3542
3565
|
t.isSharedArrayBuffer = D;
|
|
3543
|
-
function
|
|
3544
|
-
return p(
|
|
3566
|
+
function V(S) {
|
|
3567
|
+
return p(S) === "[object AsyncFunction]";
|
|
3545
3568
|
}
|
|
3546
|
-
t.isAsyncFunction =
|
|
3547
|
-
function B(
|
|
3548
|
-
return p(
|
|
3569
|
+
t.isAsyncFunction = V;
|
|
3570
|
+
function B(S) {
|
|
3571
|
+
return p(S) === "[object Map Iterator]";
|
|
3549
3572
|
}
|
|
3550
3573
|
t.isMapIterator = B;
|
|
3551
|
-
function L(
|
|
3552
|
-
return p(
|
|
3574
|
+
function L(S) {
|
|
3575
|
+
return p(S) === "[object Set Iterator]";
|
|
3553
3576
|
}
|
|
3554
3577
|
t.isSetIterator = L;
|
|
3555
|
-
function
|
|
3556
|
-
return p(
|
|
3578
|
+
function M(S) {
|
|
3579
|
+
return p(S) === "[object Generator]";
|
|
3557
3580
|
}
|
|
3558
|
-
t.isGeneratorObject =
|
|
3559
|
-
function te(
|
|
3560
|
-
return p(
|
|
3581
|
+
t.isGeneratorObject = M;
|
|
3582
|
+
function te(S) {
|
|
3583
|
+
return p(S) === "[object WebAssembly.Module]";
|
|
3561
3584
|
}
|
|
3562
3585
|
t.isWebAssemblyCompiledModule = te;
|
|
3563
|
-
function ye(
|
|
3564
|
-
return N(
|
|
3586
|
+
function ye(S) {
|
|
3587
|
+
return N(S, v);
|
|
3565
3588
|
}
|
|
3566
3589
|
t.isNumberObject = ye;
|
|
3567
|
-
function
|
|
3568
|
-
return N(
|
|
3590
|
+
function he(S) {
|
|
3591
|
+
return N(S, g);
|
|
3569
3592
|
}
|
|
3570
|
-
t.isStringObject =
|
|
3571
|
-
function oe(
|
|
3572
|
-
return N(
|
|
3593
|
+
t.isStringObject = he;
|
|
3594
|
+
function oe(S) {
|
|
3595
|
+
return N(S, b);
|
|
3573
3596
|
}
|
|
3574
3597
|
t.isBooleanObject = oe;
|
|
3575
|
-
function
|
|
3576
|
-
return l && N(
|
|
3598
|
+
function Me(S) {
|
|
3599
|
+
return l && N(S, E);
|
|
3577
3600
|
}
|
|
3578
|
-
t.isBigIntObject =
|
|
3579
|
-
function lt(
|
|
3580
|
-
return f && N(
|
|
3601
|
+
t.isBigIntObject = Me;
|
|
3602
|
+
function lt(S) {
|
|
3603
|
+
return f && N(S, F);
|
|
3581
3604
|
}
|
|
3582
3605
|
t.isSymbolObject = lt;
|
|
3583
|
-
function
|
|
3584
|
-
return ye(
|
|
3606
|
+
function it(S) {
|
|
3607
|
+
return ye(S) || he(S) || oe(S) || Me(S) || lt(S);
|
|
3585
3608
|
}
|
|
3586
|
-
t.isBoxedPrimitive =
|
|
3587
|
-
function Pt(
|
|
3588
|
-
return typeof Uint8Array < "u" && (H(
|
|
3609
|
+
t.isBoxedPrimitive = it;
|
|
3610
|
+
function Pt(S) {
|
|
3611
|
+
return typeof Uint8Array < "u" && (H(S) || D(S));
|
|
3589
3612
|
}
|
|
3590
|
-
t.isAnyArrayBuffer = Pt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(
|
|
3591
|
-
Object.defineProperty(t,
|
|
3613
|
+
t.isAnyArrayBuffer = Pt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(S) {
|
|
3614
|
+
Object.defineProperty(t, S, {
|
|
3592
3615
|
enumerable: !1,
|
|
3593
3616
|
value: function() {
|
|
3594
|
-
throw new Error(
|
|
3617
|
+
throw new Error(S + " is not supported in userland");
|
|
3595
3618
|
}
|
|
3596
3619
|
});
|
|
3597
3620
|
});
|
|
3598
|
-
})(
|
|
3621
|
+
})(vn);
|
|
3599
3622
|
var Us = function(e) {
|
|
3600
3623
|
return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
|
|
3601
3624
|
}, ar = { exports: {} };
|
|
@@ -3619,38 +3642,38 @@ typeof Object.create == "function" ? ar.exports = function(e, r) {
|
|
|
3619
3642
|
var $s = ar.exports;
|
|
3620
3643
|
(function(t) {
|
|
3621
3644
|
var e = Object.getOwnPropertyDescriptors || function(w) {
|
|
3622
|
-
for (var A = Object.keys(w),
|
|
3623
|
-
|
|
3624
|
-
return
|
|
3645
|
+
for (var A = Object.keys(w), C = {}, D = 0; D < A.length; D++)
|
|
3646
|
+
C[A[D]] = Object.getOwnPropertyDescriptor(w, A[D]);
|
|
3647
|
+
return C;
|
|
3625
3648
|
}, r = /%[sdj%]/g;
|
|
3626
3649
|
t.format = function(d) {
|
|
3627
|
-
if (!
|
|
3650
|
+
if (!T(d)) {
|
|
3628
3651
|
for (var w = [], A = 0; A < arguments.length; A++)
|
|
3629
3652
|
w.push(l(arguments[A]));
|
|
3630
3653
|
return w.join(" ");
|
|
3631
3654
|
}
|
|
3632
|
-
for (var A = 1,
|
|
3655
|
+
for (var A = 1, C = arguments, D = C.length, V = String(d).replace(r, function(L) {
|
|
3633
3656
|
if (L === "%%")
|
|
3634
3657
|
return "%";
|
|
3635
3658
|
if (A >= D)
|
|
3636
3659
|
return L;
|
|
3637
3660
|
switch (L) {
|
|
3638
3661
|
case "%s":
|
|
3639
|
-
return String(
|
|
3662
|
+
return String(C[A++]);
|
|
3640
3663
|
case "%d":
|
|
3641
|
-
return Number(
|
|
3664
|
+
return Number(C[A++]);
|
|
3642
3665
|
case "%j":
|
|
3643
3666
|
try {
|
|
3644
|
-
return JSON.stringify(
|
|
3667
|
+
return JSON.stringify(C[A++]);
|
|
3645
3668
|
} catch {
|
|
3646
3669
|
return "[Circular]";
|
|
3647
3670
|
}
|
|
3648
3671
|
default:
|
|
3649
3672
|
return L;
|
|
3650
3673
|
}
|
|
3651
|
-
}), B =
|
|
3652
|
-
|
|
3653
|
-
return
|
|
3674
|
+
}), B = C[A]; A < D; B = C[++A])
|
|
3675
|
+
_(B) || !ie(B) ? V += " " + B : V += " " + l(B);
|
|
3676
|
+
return V;
|
|
3654
3677
|
}, t.deprecate = function(d, w) {
|
|
3655
3678
|
if (typeof O.process < "u" && O.process.noDeprecation === !0)
|
|
3656
3679
|
return d;
|
|
@@ -3659,7 +3682,7 @@ var $s = ar.exports;
|
|
|
3659
3682
|
return t.deprecate(d, w).apply(this, arguments);
|
|
3660
3683
|
};
|
|
3661
3684
|
var A = !1;
|
|
3662
|
-
function
|
|
3685
|
+
function C() {
|
|
3663
3686
|
if (!A) {
|
|
3664
3687
|
if (O.process.throwDeprecation)
|
|
3665
3688
|
throw new Error(w);
|
|
@@ -3667,7 +3690,7 @@ var $s = ar.exports;
|
|
|
3667
3690
|
}
|
|
3668
3691
|
return d.apply(this, arguments);
|
|
3669
3692
|
}
|
|
3670
|
-
return
|
|
3693
|
+
return C;
|
|
3671
3694
|
};
|
|
3672
3695
|
var o = {}, s = /^$/;
|
|
3673
3696
|
if (O.process.env.NODE_DEBUG) {
|
|
@@ -3726,56 +3749,56 @@ var $s = ar.exports;
|
|
|
3726
3749
|
function p(d, w) {
|
|
3727
3750
|
return d;
|
|
3728
3751
|
}
|
|
3729
|
-
function
|
|
3752
|
+
function v(d) {
|
|
3730
3753
|
var w = {};
|
|
3731
|
-
return d.forEach(function(A,
|
|
3754
|
+
return d.forEach(function(A, C) {
|
|
3732
3755
|
w[A] = !0;
|
|
3733
3756
|
}), w;
|
|
3734
3757
|
}
|
|
3735
3758
|
function g(d, w, A) {
|
|
3736
|
-
if (d.customInspect && w &&
|
|
3759
|
+
if (d.customInspect && w && ce(w.inspect) && // Filter out the util module, it's inspect function is special
|
|
3737
3760
|
w.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
|
|
3738
3761
|
!(w.constructor && w.constructor.prototype === w)) {
|
|
3739
|
-
var
|
|
3740
|
-
return
|
|
3762
|
+
var C = w.inspect(A, d);
|
|
3763
|
+
return T(C) || (C = g(d, C, A)), C;
|
|
3741
3764
|
}
|
|
3742
3765
|
var D = b(d, w);
|
|
3743
3766
|
if (D)
|
|
3744
3767
|
return D;
|
|
3745
|
-
var
|
|
3746
|
-
if (d.showHidden && (
|
|
3768
|
+
var V = Object.keys(w), B = v(V);
|
|
3769
|
+
if (d.showHidden && (V = Object.getOwnPropertyNames(w)), Se(w) && (V.indexOf("message") >= 0 || V.indexOf("description") >= 0))
|
|
3747
3770
|
return E(w);
|
|
3748
|
-
if (
|
|
3749
|
-
if (
|
|
3771
|
+
if (V.length === 0) {
|
|
3772
|
+
if (ce(w)) {
|
|
3750
3773
|
var L = w.name ? ": " + w.name : "";
|
|
3751
3774
|
return d.stylize("[Function" + L + "]", "special");
|
|
3752
3775
|
}
|
|
3753
3776
|
if (G(w))
|
|
3754
3777
|
return d.stylize(RegExp.prototype.toString.call(w), "regexp");
|
|
3755
|
-
if (
|
|
3778
|
+
if (Ce(w))
|
|
3756
3779
|
return d.stylize(Date.prototype.toString.call(w), "date");
|
|
3757
3780
|
if (Se(w))
|
|
3758
3781
|
return E(w);
|
|
3759
3782
|
}
|
|
3760
|
-
var
|
|
3761
|
-
if (K(w) && (te = !0, ye = ["[", "]"]),
|
|
3762
|
-
var
|
|
3763
|
-
|
|
3783
|
+
var M = "", te = !1, ye = ["{", "}"];
|
|
3784
|
+
if (K(w) && (te = !0, ye = ["[", "]"]), ce(w)) {
|
|
3785
|
+
var he = w.name ? ": " + w.name : "";
|
|
3786
|
+
M = " [Function" + he + "]";
|
|
3764
3787
|
}
|
|
3765
|
-
if (G(w) && (
|
|
3766
|
-
return ye[0] +
|
|
3788
|
+
if (G(w) && (M = " " + RegExp.prototype.toString.call(w)), Ce(w) && (M = " " + Date.prototype.toUTCString.call(w)), Se(w) && (M = " " + E(w)), V.length === 0 && (!te || w.length == 0))
|
|
3789
|
+
return ye[0] + M + ye[1];
|
|
3767
3790
|
if (A < 0)
|
|
3768
3791
|
return G(w) ? d.stylize(RegExp.prototype.toString.call(w), "regexp") : d.stylize("[Object]", "special");
|
|
3769
3792
|
d.seen.push(w);
|
|
3770
3793
|
var oe;
|
|
3771
|
-
return te ? oe =
|
|
3772
|
-
return N(d, w, A, B,
|
|
3773
|
-
}), d.seen.pop(), P(oe,
|
|
3794
|
+
return te ? oe = F(d, w, A, B, V) : oe = V.map(function(Me) {
|
|
3795
|
+
return N(d, w, A, B, Me, te);
|
|
3796
|
+
}), d.seen.pop(), P(oe, M, ye);
|
|
3774
3797
|
}
|
|
3775
3798
|
function b(d, w) {
|
|
3776
3799
|
if (k(w))
|
|
3777
3800
|
return d.stylize("undefined", "undefined");
|
|
3778
|
-
if (
|
|
3801
|
+
if (T(w)) {
|
|
3779
3802
|
var A = "'" + JSON.stringify(w).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
3780
3803
|
return d.stylize(A, "string");
|
|
3781
3804
|
}
|
|
@@ -3783,37 +3806,37 @@ var $s = ar.exports;
|
|
|
3783
3806
|
return d.stylize("" + w, "number");
|
|
3784
3807
|
if (I(w))
|
|
3785
3808
|
return d.stylize("" + w, "boolean");
|
|
3786
|
-
if (
|
|
3809
|
+
if (_(w))
|
|
3787
3810
|
return d.stylize("null", "null");
|
|
3788
3811
|
}
|
|
3789
3812
|
function E(d) {
|
|
3790
3813
|
return "[" + Error.prototype.toString.call(d) + "]";
|
|
3791
3814
|
}
|
|
3792
|
-
function
|
|
3793
|
-
for (var
|
|
3794
|
-
Be(w, String(B)) ?
|
|
3815
|
+
function F(d, w, A, C, D) {
|
|
3816
|
+
for (var V = [], B = 0, L = w.length; B < L; ++B)
|
|
3817
|
+
Be(w, String(B)) ? V.push(N(
|
|
3795
3818
|
d,
|
|
3796
3819
|
w,
|
|
3797
3820
|
A,
|
|
3798
|
-
|
|
3821
|
+
C,
|
|
3799
3822
|
String(B),
|
|
3800
3823
|
!0
|
|
3801
|
-
)) :
|
|
3802
|
-
return D.forEach(function(
|
|
3803
|
-
|
|
3824
|
+
)) : V.push("");
|
|
3825
|
+
return D.forEach(function(M) {
|
|
3826
|
+
M.match(/^\d+$/) || V.push(N(
|
|
3804
3827
|
d,
|
|
3805
3828
|
w,
|
|
3806
3829
|
A,
|
|
3807
|
-
|
|
3808
|
-
|
|
3830
|
+
C,
|
|
3831
|
+
M,
|
|
3809
3832
|
!0
|
|
3810
3833
|
));
|
|
3811
|
-
}),
|
|
3834
|
+
}), V;
|
|
3812
3835
|
}
|
|
3813
|
-
function N(d, w, A,
|
|
3814
|
-
var B, L,
|
|
3815
|
-
if (
|
|
3816
|
-
`) > -1 && (
|
|
3836
|
+
function N(d, w, A, C, D, V) {
|
|
3837
|
+
var B, L, M;
|
|
3838
|
+
if (M = Object.getOwnPropertyDescriptor(w, D) || { value: w[D] }, M.get ? M.set ? L = d.stylize("[Getter/Setter]", "special") : L = d.stylize("[Getter]", "special") : M.set && (L = d.stylize("[Setter]", "special")), Be(C, D) || (B = "[" + D + "]"), L || (d.seen.indexOf(M.value) < 0 ? (_(A) ? L = g(d, M.value, null) : L = g(d, M.value, A - 1), L.indexOf(`
|
|
3839
|
+
`) > -1 && (V ? L = L.split(`
|
|
3817
3840
|
`).map(function(te) {
|
|
3818
3841
|
return " " + te;
|
|
3819
3842
|
}).join(`
|
|
@@ -3823,22 +3846,22 @@ var $s = ar.exports;
|
|
|
3823
3846
|
return " " + te;
|
|
3824
3847
|
}).join(`
|
|
3825
3848
|
`))) : L = d.stylize("[Circular]", "special")), k(B)) {
|
|
3826
|
-
if (
|
|
3849
|
+
if (V && D.match(/^\d+$/))
|
|
3827
3850
|
return L;
|
|
3828
3851
|
B = JSON.stringify("" + D), B.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (B = B.slice(1, -1), B = d.stylize(B, "name")) : (B = B.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), B = d.stylize(B, "string"));
|
|
3829
3852
|
}
|
|
3830
3853
|
return B + ": " + L;
|
|
3831
3854
|
}
|
|
3832
3855
|
function P(d, w, A) {
|
|
3833
|
-
var
|
|
3834
|
-
return
|
|
3835
|
-
`) >= 0, D +
|
|
3856
|
+
var C = d.reduce(function(D, V) {
|
|
3857
|
+
return V.indexOf(`
|
|
3858
|
+
`) >= 0, D + V.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
3836
3859
|
}, 0);
|
|
3837
|
-
return
|
|
3860
|
+
return C > 60 ? A[0] + (w === "" ? "" : w + `
|
|
3838
3861
|
`) + " " + d.join(`,
|
|
3839
3862
|
`) + " " + A[1] : A[0] + w + " " + d.join(", ") + " " + A[1];
|
|
3840
3863
|
}
|
|
3841
|
-
t.types =
|
|
3864
|
+
t.types = vn;
|
|
3842
3865
|
function K(d) {
|
|
3843
3866
|
return Array.isArray(d);
|
|
3844
3867
|
}
|
|
@@ -3847,10 +3870,10 @@ var $s = ar.exports;
|
|
|
3847
3870
|
return typeof d == "boolean";
|
|
3848
3871
|
}
|
|
3849
3872
|
t.isBoolean = I;
|
|
3850
|
-
function
|
|
3873
|
+
function _(d) {
|
|
3851
3874
|
return d === null;
|
|
3852
3875
|
}
|
|
3853
|
-
t.isNull =
|
|
3876
|
+
t.isNull = _;
|
|
3854
3877
|
function j(d) {
|
|
3855
3878
|
return d == null;
|
|
3856
3879
|
}
|
|
@@ -3859,10 +3882,10 @@ var $s = ar.exports;
|
|
|
3859
3882
|
return typeof d == "number";
|
|
3860
3883
|
}
|
|
3861
3884
|
t.isNumber = U;
|
|
3862
|
-
function
|
|
3885
|
+
function T(d) {
|
|
3863
3886
|
return typeof d == "string";
|
|
3864
3887
|
}
|
|
3865
|
-
t.isString =
|
|
3888
|
+
t.isString = T;
|
|
3866
3889
|
function x(d) {
|
|
3867
3890
|
return typeof d == "symbol";
|
|
3868
3891
|
}
|
|
@@ -3872,31 +3895,31 @@ var $s = ar.exports;
|
|
|
3872
3895
|
}
|
|
3873
3896
|
t.isUndefined = k;
|
|
3874
3897
|
function G(d) {
|
|
3875
|
-
return ie(d) &&
|
|
3898
|
+
return ie(d) && fe(d) === "[object RegExp]";
|
|
3876
3899
|
}
|
|
3877
3900
|
t.isRegExp = G, t.types.isRegExp = G;
|
|
3878
3901
|
function ie(d) {
|
|
3879
3902
|
return typeof d == "object" && d !== null;
|
|
3880
3903
|
}
|
|
3881
3904
|
t.isObject = ie;
|
|
3882
|
-
function
|
|
3883
|
-
return ie(d) &&
|
|
3905
|
+
function Ce(d) {
|
|
3906
|
+
return ie(d) && fe(d) === "[object Date]";
|
|
3884
3907
|
}
|
|
3885
|
-
t.isDate =
|
|
3908
|
+
t.isDate = Ce, t.types.isDate = Ce;
|
|
3886
3909
|
function Se(d) {
|
|
3887
|
-
return ie(d) && (
|
|
3910
|
+
return ie(d) && (fe(d) === "[object Error]" || d instanceof Error);
|
|
3888
3911
|
}
|
|
3889
3912
|
t.isError = Se, t.types.isNativeError = Se;
|
|
3890
|
-
function
|
|
3913
|
+
function ce(d) {
|
|
3891
3914
|
return typeof d == "function";
|
|
3892
3915
|
}
|
|
3893
|
-
t.isFunction =
|
|
3894
|
-
function
|
|
3916
|
+
t.isFunction = ce;
|
|
3917
|
+
function rt(d) {
|
|
3895
3918
|
return d === null || typeof d == "boolean" || typeof d == "number" || typeof d == "string" || typeof d == "symbol" || // ES6 symbol
|
|
3896
3919
|
typeof d > "u";
|
|
3897
3920
|
}
|
|
3898
|
-
t.isPrimitive =
|
|
3899
|
-
function
|
|
3921
|
+
t.isPrimitive = rt, t.isBuffer = Us;
|
|
3922
|
+
function fe(d) {
|
|
3900
3923
|
return Object.prototype.toString.call(d);
|
|
3901
3924
|
}
|
|
3902
3925
|
function Oe(d) {
|
|
@@ -3916,7 +3939,7 @@ var $s = ar.exports;
|
|
|
3916
3939
|
"Nov",
|
|
3917
3940
|
"Dec"
|
|
3918
3941
|
];
|
|
3919
|
-
function
|
|
3942
|
+
function nt() {
|
|
3920
3943
|
var d = /* @__PURE__ */ new Date(), w = [
|
|
3921
3944
|
Oe(d.getHours()),
|
|
3922
3945
|
Oe(d.getMinutes()),
|
|
@@ -3925,26 +3948,26 @@ var $s = ar.exports;
|
|
|
3925
3948
|
return [d.getDate(), xe[d.getMonth()], w].join(" ");
|
|
3926
3949
|
}
|
|
3927
3950
|
t.log = function() {
|
|
3928
|
-
console.log("%s - %s",
|
|
3951
|
+
console.log("%s - %s", nt(), t.format.apply(t, arguments));
|
|
3929
3952
|
}, t.inherits = $s, t._extend = function(d, w) {
|
|
3930
3953
|
if (!w || !ie(w))
|
|
3931
3954
|
return d;
|
|
3932
|
-
for (var A = Object.keys(w),
|
|
3933
|
-
d[A[
|
|
3955
|
+
for (var A = Object.keys(w), C = A.length; C--; )
|
|
3956
|
+
d[A[C]] = w[A[C]];
|
|
3934
3957
|
return d;
|
|
3935
3958
|
};
|
|
3936
3959
|
function Be(d, w) {
|
|
3937
3960
|
return Object.prototype.hasOwnProperty.call(d, w);
|
|
3938
3961
|
}
|
|
3939
|
-
var
|
|
3962
|
+
var le = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
3940
3963
|
t.promisify = function(w) {
|
|
3941
3964
|
if (typeof w != "function")
|
|
3942
3965
|
throw new TypeError('The "original" argument must be of type Function');
|
|
3943
|
-
if (
|
|
3944
|
-
var A = w[
|
|
3966
|
+
if (le && w[le]) {
|
|
3967
|
+
var A = w[le];
|
|
3945
3968
|
if (typeof A != "function")
|
|
3946
3969
|
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
|
3947
|
-
return Object.defineProperty(A,
|
|
3970
|
+
return Object.defineProperty(A, le, {
|
|
3948
3971
|
value: A,
|
|
3949
3972
|
enumerable: !1,
|
|
3950
3973
|
writable: !1,
|
|
@@ -3952,21 +3975,21 @@ var $s = ar.exports;
|
|
|
3952
3975
|
}), A;
|
|
3953
3976
|
}
|
|
3954
3977
|
function A() {
|
|
3955
|
-
for (var
|
|
3956
|
-
|
|
3978
|
+
for (var C, D, V = new Promise(function(M, te) {
|
|
3979
|
+
C = M, D = te;
|
|
3957
3980
|
}), B = [], L = 0; L < arguments.length; L++)
|
|
3958
3981
|
B.push(arguments[L]);
|
|
3959
|
-
B.push(function(
|
|
3960
|
-
|
|
3982
|
+
B.push(function(M, te) {
|
|
3983
|
+
M ? D(M) : C(te);
|
|
3961
3984
|
});
|
|
3962
3985
|
try {
|
|
3963
3986
|
w.apply(this, B);
|
|
3964
|
-
} catch (
|
|
3965
|
-
D(
|
|
3987
|
+
} catch (M) {
|
|
3988
|
+
D(M);
|
|
3966
3989
|
}
|
|
3967
|
-
return
|
|
3990
|
+
return V;
|
|
3968
3991
|
}
|
|
3969
|
-
return Object.setPrototypeOf(A, Object.getPrototypeOf(w)),
|
|
3992
|
+
return Object.setPrototypeOf(A, Object.getPrototypeOf(w)), le && Object.defineProperty(A, le, {
|
|
3970
3993
|
value: A,
|
|
3971
3994
|
enumerable: !1,
|
|
3972
3995
|
writable: !1,
|
|
@@ -3975,7 +3998,7 @@ var $s = ar.exports;
|
|
|
3975
3998
|
A,
|
|
3976
3999
|
e(w)
|
|
3977
4000
|
);
|
|
3978
|
-
}, t.promisify.custom =
|
|
4001
|
+
}, t.promisify.custom = le;
|
|
3979
4002
|
function ke(d, w) {
|
|
3980
4003
|
if (!d) {
|
|
3981
4004
|
var A = new Error("Promise was rejected with a falsy value");
|
|
@@ -3987,13 +4010,13 @@ var $s = ar.exports;
|
|
|
3987
4010
|
if (typeof d != "function")
|
|
3988
4011
|
throw new TypeError('The "original" argument must be of type Function');
|
|
3989
4012
|
function w() {
|
|
3990
|
-
for (var A = [],
|
|
3991
|
-
A.push(arguments[
|
|
4013
|
+
for (var A = [], C = 0; C < arguments.length; C++)
|
|
4014
|
+
A.push(arguments[C]);
|
|
3992
4015
|
var D = A.pop();
|
|
3993
4016
|
if (typeof D != "function")
|
|
3994
4017
|
throw new TypeError("The last argument must be of type Function");
|
|
3995
|
-
var
|
|
3996
|
-
return D.apply(
|
|
4018
|
+
var V = this, B = function() {
|
|
4019
|
+
return D.apply(V, arguments);
|
|
3997
4020
|
};
|
|
3998
4021
|
d.apply(this, A).then(
|
|
3999
4022
|
function(L) {
|
|
@@ -4012,7 +4035,7 @@ var $s = ar.exports;
|
|
|
4012
4035
|
t.callbackify = H;
|
|
4013
4036
|
})(Bt);
|
|
4014
4037
|
const { inherits: js, format: Qt } = Bt;
|
|
4015
|
-
function
|
|
4038
|
+
function Ne(t, e, r = Error) {
|
|
4016
4039
|
if (!t)
|
|
4017
4040
|
throw new Error("Avvio error code must not be empty");
|
|
4018
4041
|
if (!e)
|
|
@@ -4026,63 +4049,63 @@ function Re(t, e, r = Error) {
|
|
|
4026
4049
|
return `${this.name} [${this.code}]: ${this.message}`;
|
|
4027
4050
|
}, js(o, r), o;
|
|
4028
4051
|
}
|
|
4029
|
-
var
|
|
4030
|
-
createError:
|
|
4031
|
-
AVV_ERR_EXPOSE_ALREADY_DEFINED:
|
|
4052
|
+
var Un = {
|
|
4053
|
+
createError: Ne,
|
|
4054
|
+
AVV_ERR_EXPOSE_ALREADY_DEFINED: Ne(
|
|
4032
4055
|
"AVV_ERR_EXPOSE_ALREADY_DEFINED",
|
|
4033
4056
|
"'%s' () is already defined, specify an expose option"
|
|
4034
4057
|
),
|
|
4035
|
-
AVV_ERR_CALLBACK_NOT_FN:
|
|
4058
|
+
AVV_ERR_CALLBACK_NOT_FN: Ne(
|
|
4036
4059
|
"AVV_ERR_CALLBACK_NOT_FN",
|
|
4037
4060
|
"Callback for '%s' hook is not a function. Received: '%s'"
|
|
4038
4061
|
),
|
|
4039
|
-
AVV_ERR_PLUGIN_NOT_VALID:
|
|
4062
|
+
AVV_ERR_PLUGIN_NOT_VALID: Ne(
|
|
4040
4063
|
"AVV_ERR_PLUGIN_NOT_VALID",
|
|
4041
4064
|
"Plugin must be a function or a promise. Received: '%s'"
|
|
4042
4065
|
),
|
|
4043
|
-
AVV_ERR_ROOT_PLG_BOOTED:
|
|
4066
|
+
AVV_ERR_ROOT_PLG_BOOTED: Ne(
|
|
4044
4067
|
"AVV_ERR_PLUGIN_NOT_VALID",
|
|
4045
4068
|
"Root plugin has already booted"
|
|
4046
4069
|
),
|
|
4047
|
-
AVV_ERR_PARENT_PLG_LOADED:
|
|
4070
|
+
AVV_ERR_PARENT_PLG_LOADED: Ne(
|
|
4048
4071
|
"AVV_ERR_PARENT_PLG_LOADED",
|
|
4049
4072
|
"Impossible to load '%s' plugin because the parent '%s' was already loaded"
|
|
4050
4073
|
),
|
|
4051
|
-
AVV_ERR_READY_TIMEOUT:
|
|
4074
|
+
AVV_ERR_READY_TIMEOUT: Ne(
|
|
4052
4075
|
"AVV_ERR_READY_TIMEOUT",
|
|
4053
4076
|
"Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise"
|
|
4054
4077
|
)
|
|
4055
4078
|
}, Ds = function t(e, r, o) {
|
|
4056
4079
|
r === void 0 && (r = ""), o || (o = {});
|
|
4057
4080
|
var s = function(p) {
|
|
4058
|
-
var
|
|
4081
|
+
var v = {
|
|
4059
4082
|
"│": "|",
|
|
4060
4083
|
"└": "`",
|
|
4061
4084
|
"├": "+",
|
|
4062
4085
|
"─": "-",
|
|
4063
4086
|
"┬": "-"
|
|
4064
4087
|
};
|
|
4065
|
-
return o.unicode === !1 ?
|
|
4088
|
+
return o.unicode === !1 ? v[p] : p;
|
|
4066
4089
|
};
|
|
4067
4090
|
typeof e == "string" && (e = { label: e });
|
|
4068
4091
|
var u = e.nodes || [], l = (e.label || "").split(`
|
|
4069
4092
|
`), f = `
|
|
4070
4093
|
` + r + (u.length ? s("│") : " ") + " ";
|
|
4071
4094
|
return r + l.join(f) + `
|
|
4072
|
-
` + u.map(function(p,
|
|
4073
|
-
var g =
|
|
4095
|
+
` + u.map(function(p, v) {
|
|
4096
|
+
var g = v === u.length - 1, b = p.nodes && p.nodes.length, E = r + (g ? " " : s("│")) + " ";
|
|
4074
4097
|
return r + s(g ? "└" : "├") + s("─") + s(b ? "┬" : "─") + " " + t(p, E, o).slice(r.length + 2);
|
|
4075
4098
|
}).join("");
|
|
4076
4099
|
};
|
|
4077
|
-
const
|
|
4078
|
-
let
|
|
4100
|
+
const Vs = Ds, Dr = Symbol("avvio.TimeTree.untrackNode"), Gt = Symbol("avvio.TimeTree.trackNode"), Vr = Symbol("avvio.TimeTree.getParent"), Mr = Symbol("avvio.TimeTree.getNode"), qr = Symbol("avvio.TimeTree.addNode");
|
|
4101
|
+
let Ms = class {
|
|
4079
4102
|
constructor() {
|
|
4080
4103
|
this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
|
|
4081
4104
|
}
|
|
4082
4105
|
[Gt](e) {
|
|
4083
4106
|
this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
|
|
4084
4107
|
}
|
|
4085
|
-
[
|
|
4108
|
+
[Dr](e) {
|
|
4086
4109
|
this.tableId.delete(e.id);
|
|
4087
4110
|
const r = this.tableLabel.get(e.label);
|
|
4088
4111
|
if (r.id) {
|
|
@@ -4097,10 +4120,10 @@ let Vs = class {
|
|
|
4097
4120
|
const r = this.tableLabel.get(e);
|
|
4098
4121
|
return r.id ? r : r[r.length - 1];
|
|
4099
4122
|
}
|
|
4100
|
-
[
|
|
4123
|
+
[Mr](e) {
|
|
4101
4124
|
return this.tableId.get(e);
|
|
4102
4125
|
}
|
|
4103
|
-
[
|
|
4126
|
+
[qr](e, r, o) {
|
|
4104
4127
|
if (e === null)
|
|
4105
4128
|
return this.root = {
|
|
4106
4129
|
id: "root",
|
|
@@ -4118,25 +4141,25 @@ let Vs = class {
|
|
|
4118
4141
|
return u.nodes.push(f), this[Gt](f), l;
|
|
4119
4142
|
}
|
|
4120
4143
|
start(e, r, o = Date.now()) {
|
|
4121
|
-
return this[
|
|
4144
|
+
return this[qr](e, r, o);
|
|
4122
4145
|
}
|
|
4123
4146
|
stop(e, r = Date.now()) {
|
|
4124
|
-
const o = this[
|
|
4125
|
-
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[
|
|
4147
|
+
const o = this[Mr](e);
|
|
4148
|
+
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[Dr](o));
|
|
4126
4149
|
}
|
|
4127
4150
|
toJSON() {
|
|
4128
4151
|
return Object.assign({}, this.root);
|
|
4129
4152
|
}
|
|
4130
4153
|
prittyPrint() {
|
|
4131
4154
|
const e = (o) => (o.label = `${o.label} ${o.diff} ms`, o.nodes.length > 0 && (o.nodes = o.nodes.map((s) => e(s))), o), r = e(this.toJSON());
|
|
4132
|
-
return
|
|
4155
|
+
return Vs(r);
|
|
4133
4156
|
}
|
|
4134
4157
|
};
|
|
4135
|
-
var qs =
|
|
4158
|
+
var qs = Ms, Er = { exports: {} }, ur = { exports: {} }, zt, Qr;
|
|
4136
4159
|
function Qs() {
|
|
4137
|
-
if (
|
|
4160
|
+
if (Qr)
|
|
4138
4161
|
return zt;
|
|
4139
|
-
|
|
4162
|
+
Qr = 1;
|
|
4140
4163
|
var t = 1e3, e = t * 60, r = e * 60, o = r * 24, s = o * 7, u = o * 365.25;
|
|
4141
4164
|
zt = function(g, b) {
|
|
4142
4165
|
b = b || {};
|
|
@@ -4155,8 +4178,8 @@ function Qs() {
|
|
|
4155
4178
|
g
|
|
4156
4179
|
);
|
|
4157
4180
|
if (b) {
|
|
4158
|
-
var E = parseFloat(b[1]),
|
|
4159
|
-
switch (
|
|
4181
|
+
var E = parseFloat(b[1]), F = (b[2] || "ms").toLowerCase();
|
|
4182
|
+
switch (F) {
|
|
4160
4183
|
case "years":
|
|
4161
4184
|
case "year":
|
|
4162
4185
|
case "yrs":
|
|
@@ -4207,16 +4230,16 @@ function Qs() {
|
|
|
4207
4230
|
}
|
|
4208
4231
|
function p(g) {
|
|
4209
4232
|
var b = Math.abs(g);
|
|
4210
|
-
return b >= o ?
|
|
4233
|
+
return b >= o ? v(g, b, o, "day") : b >= r ? v(g, b, r, "hour") : b >= e ? v(g, b, e, "minute") : b >= t ? v(g, b, t, "second") : g + " ms";
|
|
4211
4234
|
}
|
|
4212
|
-
function
|
|
4235
|
+
function v(g, b, E, F) {
|
|
4213
4236
|
var N = b >= E * 1.5;
|
|
4214
|
-
return Math.round(g / E) + " " +
|
|
4237
|
+
return Math.round(g / E) + " " + F + (N ? "s" : "");
|
|
4215
4238
|
}
|
|
4216
4239
|
return zt;
|
|
4217
4240
|
}
|
|
4218
4241
|
function Gs(t) {
|
|
4219
|
-
r.debug = r, r.default = r, r.coerce = p, r.disable = u, r.enable = s, r.enabled = l, r.humanize = Qs(), r.destroy =
|
|
4242
|
+
r.debug = r, r.default = r, r.coerce = p, r.disable = u, r.enable = s, r.enabled = l, r.humanize = Qs(), r.destroy = v, Object.keys(t).forEach((g) => {
|
|
4220
4243
|
r[g] = t[g];
|
|
4221
4244
|
}), r.names = [], r.skips = [], r.formatters = {};
|
|
4222
4245
|
function e(g) {
|
|
@@ -4227,12 +4250,12 @@ function Gs(t) {
|
|
|
4227
4250
|
}
|
|
4228
4251
|
r.selectColor = e;
|
|
4229
4252
|
function r(g) {
|
|
4230
|
-
let b, E = null,
|
|
4253
|
+
let b, E = null, F, N;
|
|
4231
4254
|
function P(...K) {
|
|
4232
4255
|
if (!P.enabled)
|
|
4233
4256
|
return;
|
|
4234
|
-
const I = P,
|
|
4235
|
-
I.diff = j, I.prev = b, I.curr =
|
|
4257
|
+
const I = P, _ = Number(/* @__PURE__ */ new Date()), j = _ - (b || _);
|
|
4258
|
+
I.diff = j, I.prev = b, I.curr = _, b = _, K[0] = r.coerce(K[0]), typeof K[0] != "string" && K.unshift("%O");
|
|
4236
4259
|
let U = 0;
|
|
4237
4260
|
K[0] = K[0].replace(/%([a-zA-Z%])/g, (x, k) => {
|
|
4238
4261
|
if (x === "%%")
|
|
@@ -4249,7 +4272,7 @@ function Gs(t) {
|
|
|
4249
4272
|
return P.namespace = g, P.useColors = r.useColors(), P.color = r.selectColor(g), P.extend = o, P.destroy = r.destroy, Object.defineProperty(P, "enabled", {
|
|
4250
4273
|
enumerable: !0,
|
|
4251
4274
|
configurable: !1,
|
|
4252
|
-
get: () => E !== null ? E : (
|
|
4275
|
+
get: () => E !== null ? E : (F !== r.namespaces && (F = r.namespaces, N = r.enabled(g)), N),
|
|
4253
4276
|
set: (K) => {
|
|
4254
4277
|
E = K;
|
|
4255
4278
|
}
|
|
@@ -4262,8 +4285,8 @@ function Gs(t) {
|
|
|
4262
4285
|
function s(g) {
|
|
4263
4286
|
r.save(g), r.namespaces = g, r.names = [], r.skips = [];
|
|
4264
4287
|
let b;
|
|
4265
|
-
const E = (typeof g == "string" ? g : "").split(/[\s,]+/),
|
|
4266
|
-
for (b = 0; b <
|
|
4288
|
+
const E = (typeof g == "string" ? g : "").split(/[\s,]+/), F = E.length;
|
|
4289
|
+
for (b = 0; b < F; b++)
|
|
4267
4290
|
E[b] && (g = E[b].replace(/\*/g, ".*?"), g[0] === "-" ? r.skips.push(new RegExp("^" + g.slice(1) + "$")) : r.names.push(new RegExp("^" + g + "$")));
|
|
4268
4291
|
}
|
|
4269
4292
|
function u() {
|
|
@@ -4291,7 +4314,7 @@ function Gs(t) {
|
|
|
4291
4314
|
function p(g) {
|
|
4292
4315
|
return g instanceof Error ? g.stack || g.message : g;
|
|
4293
4316
|
}
|
|
4294
|
-
function
|
|
4317
|
+
function v() {
|
|
4295
4318
|
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
4296
4319
|
}
|
|
4297
4320
|
return r.enable(r.load()), r;
|
|
@@ -4391,12 +4414,12 @@ var zs = Gs;
|
|
|
4391
4414
|
function o(p) {
|
|
4392
4415
|
if (p[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + p[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors)
|
|
4393
4416
|
return;
|
|
4394
|
-
const
|
|
4395
|
-
p.splice(1, 0,
|
|
4417
|
+
const v = "color: " + this.color;
|
|
4418
|
+
p.splice(1, 0, v, "color: inherit");
|
|
4396
4419
|
let g = 0, b = 0;
|
|
4397
4420
|
p[0].replace(/%[a-zA-Z%]/g, (E) => {
|
|
4398
4421
|
E !== "%%" && (g++, E === "%c" && (b = g));
|
|
4399
|
-
}), p.splice(b, 0,
|
|
4422
|
+
}), p.splice(b, 0, v);
|
|
4400
4423
|
}
|
|
4401
4424
|
e.log = console.debug || console.log || (() => {
|
|
4402
4425
|
});
|
|
@@ -4425,13 +4448,13 @@ var zs = Gs;
|
|
|
4425
4448
|
f.j = function(p) {
|
|
4426
4449
|
try {
|
|
4427
4450
|
return JSON.stringify(p);
|
|
4428
|
-
} catch (
|
|
4429
|
-
return "[UnexpectedJSONParseError]: " +
|
|
4451
|
+
} catch (v) {
|
|
4452
|
+
return "[UnexpectedJSONParseError]: " + v.message;
|
|
4430
4453
|
}
|
|
4431
4454
|
};
|
|
4432
4455
|
})(ur, ur.exports);
|
|
4433
|
-
var
|
|
4434
|
-
const Ks =
|
|
4456
|
+
var $n = ur.exports;
|
|
4457
|
+
const Ks = fn, Hs = wn.EventEmitter, Ws = Bt.inherits, Z = $n("avvio"), { AVV_ERR_READY_TIMEOUT: Js } = Un, Kt = Symbol.for("plugin-meta");
|
|
4435
4458
|
function Ys(t, e) {
|
|
4436
4459
|
return t[Kt] && t[Kt].name ? t[Kt].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
|
|
4437
4460
|
`).slice(0, 2).map((r) => r.trim()).join(" -- ");
|
|
@@ -4442,11 +4465,11 @@ function Xs() {
|
|
|
4442
4465
|
t.resolve = e, t.reject = r;
|
|
4443
4466
|
}), t;
|
|
4444
4467
|
}
|
|
4445
|
-
function
|
|
4468
|
+
function tt(t, e, r, o, s) {
|
|
4446
4469
|
this.started = !1, this.func = e, this.opts = r, this.onFinish = null, this.parent = t, this.timeout = s === void 0 ? t._timeout : s, this.name = Ys(e, r), this.isAfter = o, this.q = Ks(t, Zs, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
|
|
4447
4470
|
}
|
|
4448
|
-
Ws(
|
|
4449
|
-
|
|
4471
|
+
Ws(tt, Hs);
|
|
4472
|
+
tt.prototype.exec = function(t, e) {
|
|
4450
4473
|
const r = this.func;
|
|
4451
4474
|
let o = !1;
|
|
4452
4475
|
const s = this.name;
|
|
@@ -4482,7 +4505,7 @@ et.prototype.exec = function(t, e) {
|
|
|
4482
4505
|
(p) => O.process.nextTick(l, p)
|
|
4483
4506
|
));
|
|
4484
4507
|
};
|
|
4485
|
-
|
|
4508
|
+
tt.prototype.loadedSoFar = function() {
|
|
4486
4509
|
if (this.loaded)
|
|
4487
4510
|
return Promise.resolve();
|
|
4488
4511
|
const t = () => {
|
|
@@ -4493,10 +4516,10 @@ et.prototype.loadedSoFar = function() {
|
|
|
4493
4516
|
let e;
|
|
4494
4517
|
return this._promise ? e = Promise.resolve() : (this._promise = Xs(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
|
|
4495
4518
|
};
|
|
4496
|
-
|
|
4519
|
+
tt.prototype.enqueue = function(t, e) {
|
|
4497
4520
|
Z("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
|
|
4498
4521
|
};
|
|
4499
|
-
|
|
4522
|
+
tt.prototype.finish = function(t, e) {
|
|
4500
4523
|
Z("finish", this.name, t);
|
|
4501
4524
|
const r = () => {
|
|
4502
4525
|
this.loaded || (Z("loaded", this.name), this.emit("loaded", this.server ? this.server.name : null, this.name, Date.now()), this.loaded = !0, e(t));
|
|
@@ -4523,12 +4546,12 @@ et.prototype.finish = function(t, e) {
|
|
|
4523
4546
|
};
|
|
4524
4547
|
function Zs(t, e) {
|
|
4525
4548
|
const r = this;
|
|
4526
|
-
O.process.nextTick(
|
|
4549
|
+
O.process.nextTick(Ir.bind(r), t, e);
|
|
4527
4550
|
}
|
|
4528
|
-
function
|
|
4551
|
+
function Ir(t, e) {
|
|
4529
4552
|
if (typeof t.func.then == "function") {
|
|
4530
4553
|
t.func.then((o) => {
|
|
4531
|
-
typeof o.default == "function" && (o = o.default), t.func = o,
|
|
4554
|
+
typeof o.default == "function" && (o = o.default), t.func = o, Ir.call(this, t, e);
|
|
4532
4555
|
}, e);
|
|
4533
4556
|
return;
|
|
4534
4557
|
}
|
|
@@ -4541,16 +4564,16 @@ function Fr(t, e) {
|
|
|
4541
4564
|
}
|
|
4542
4565
|
function ea() {
|
|
4543
4566
|
}
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
var ta =
|
|
4547
|
-
const
|
|
4567
|
+
Er.exports = tt;
|
|
4568
|
+
Er.exports.loadPlugin = Ir;
|
|
4569
|
+
var ta = Er.exports;
|
|
4570
|
+
const Gr = fn, ra = wn.EventEmitter, na = Bt.inherits, {
|
|
4548
4571
|
AVV_ERR_EXPOSE_ALREADY_DEFINED: Ht,
|
|
4549
4572
|
AVV_ERR_CALLBACK_NOT_FN: ct,
|
|
4550
4573
|
AVV_ERR_PLUGIN_NOT_VALID: ia,
|
|
4551
4574
|
AVV_ERR_ROOT_PLG_BOOTED: oa,
|
|
4552
4575
|
AVV_ERR_READY_TIMEOUT: sa
|
|
4553
|
-
} =
|
|
4576
|
+
} = Un, aa = qs, cr = ta, Ze = $n("avvio"), Ft = Symbol("kAvvio"), Wt = Symbol("kThenifyDoNotWrap");
|
|
4554
4577
|
function ua(t, e, r) {
|
|
4555
4578
|
const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", f = o.onClose || "onClose", p = o.close || "close";
|
|
4556
4579
|
if (t[s])
|
|
@@ -4559,22 +4582,22 @@ function ua(t, e, r) {
|
|
|
4559
4582
|
throw new Ht(u);
|
|
4560
4583
|
if (t[l])
|
|
4561
4584
|
throw new Ht(l);
|
|
4562
|
-
t[s] = function(
|
|
4563
|
-
return r.use(
|
|
4564
|
-
}, Object.defineProperty(t, "then", { get:
|
|
4565
|
-
return typeof
|
|
4566
|
-
}, t[l] = function(
|
|
4567
|
-
if (
|
|
4568
|
-
throw new ct(l, typeof
|
|
4569
|
-
return r.ready(
|
|
4570
|
-
}, t[f] = function(
|
|
4571
|
-
if (typeof
|
|
4572
|
-
throw new ct(f, typeof
|
|
4573
|
-
return r.onClose(pa(
|
|
4574
|
-
}, t[p] = function(
|
|
4575
|
-
if (
|
|
4576
|
-
throw new ct(p, typeof
|
|
4577
|
-
return
|
|
4585
|
+
t[s] = function(v, g) {
|
|
4586
|
+
return r.use(v, g), this;
|
|
4587
|
+
}, Object.defineProperty(t, "then", { get: jn.bind(r) }), t[Ft] = !0, t[u] = function(v) {
|
|
4588
|
+
return typeof v != "function" ? r._loadRegistered() : (r.after(Jt(v, this)), this);
|
|
4589
|
+
}, t[l] = function(v) {
|
|
4590
|
+
if (v && typeof v != "function")
|
|
4591
|
+
throw new ct(l, typeof v);
|
|
4592
|
+
return r.ready(v ? Jt(v, this) : void 0);
|
|
4593
|
+
}, t[f] = function(v) {
|
|
4594
|
+
if (typeof v != "function")
|
|
4595
|
+
throw new ct(f, typeof v);
|
|
4596
|
+
return r.onClose(pa(v, this)), this;
|
|
4597
|
+
}, t[p] = function(v) {
|
|
4598
|
+
if (v && typeof v != "function")
|
|
4599
|
+
throw new ct(p, typeof v);
|
|
4600
|
+
return v ? (r.close(Jt(v, this)), this) : r.close();
|
|
4578
4601
|
};
|
|
4579
4602
|
}
|
|
4580
4603
|
function ee(t, e, r) {
|
|
@@ -4582,17 +4605,17 @@ function ee(t, e, r) {
|
|
|
4582
4605
|
const o = new ee(t, e, r);
|
|
4583
4606
|
return t && ua(t, e, o), o;
|
|
4584
4607
|
}
|
|
4585
|
-
e.autostart !== !1 && (e.autostart = !0), t = t || this, this._timeout = Number(e.timeout) || 0, this._server = t, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), r && this.once("start", r), this.started = !1, this.booted = !1, this.pluginTree = new aa(), this._readyQ =
|
|
4586
|
-
this.emit("start"), this._readyQ.drain =
|
|
4587
|
-
}, this._closeQ =
|
|
4588
|
-
this.emit("close"), this._closeQ.drain =
|
|
4608
|
+
e.autostart !== !1 && (e.autostart = !0), t = t || this, this._timeout = Number(e.timeout) || 0, this._server = t, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), r && this.once("start", r), this.started = !1, this.booted = !1, this.pluginTree = new aa(), this._readyQ = Gr(this, Dn, 1), this._readyQ.pause(), this._readyQ.drain = () => {
|
|
4609
|
+
this.emit("start"), this._readyQ.drain = zr;
|
|
4610
|
+
}, this._closeQ = Gr(this, ha, 1), this._closeQ.pause(), this._closeQ.drain = () => {
|
|
4611
|
+
this.emit("close"), this._closeQ.drain = zr;
|
|
4589
4612
|
}, this._doStart = null, this._root = new cr(this, ca.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
|
|
4590
4613
|
const l = this.pluginTree.start(null, s, u);
|
|
4591
|
-
this._root.once("loaded", (f, p,
|
|
4592
|
-
this.pluginTree.stop(l,
|
|
4614
|
+
this._root.once("loaded", (f, p, v) => {
|
|
4615
|
+
this.pluginTree.stop(l, v);
|
|
4593
4616
|
});
|
|
4594
4617
|
}), cr.loadPlugin.call(this, this._root, (o) => {
|
|
4595
|
-
|
|
4618
|
+
Ze("root plugin ready");
|
|
4596
4619
|
try {
|
|
4597
4620
|
this.emit("preReady"), this._root = null;
|
|
4598
4621
|
} catch (s) {
|
|
@@ -4629,14 +4652,14 @@ ee.prototype._loadRegistered = function() {
|
|
|
4629
4652
|
const t = this._current[0];
|
|
4630
4653
|
return !this.started && !this.booted && O.process.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
|
|
4631
4654
|
};
|
|
4632
|
-
Object.defineProperty(ee.prototype, "then", { get:
|
|
4655
|
+
Object.defineProperty(ee.prototype, "then", { get: jn });
|
|
4633
4656
|
ee.prototype._addPlugin = function(t, e, r) {
|
|
4634
4657
|
if (t = fa(t), e = e || {}, this.booted)
|
|
4635
4658
|
throw new oa();
|
|
4636
4659
|
const o = this._current[0], s = new cr(this, t, e, r);
|
|
4637
4660
|
if (s.once("start", (u, l, f) => {
|
|
4638
4661
|
const p = this.pluginTree.start(o.name, l, f);
|
|
4639
|
-
s.once("loaded", (
|
|
4662
|
+
s.once("loaded", (v, g, b) => {
|
|
4640
4663
|
this.pluginTree.stop(p, b);
|
|
4641
4664
|
});
|
|
4642
4665
|
}), o.loaded)
|
|
@@ -4650,7 +4673,7 @@ ee.prototype.after = function(t) {
|
|
|
4650
4673
|
return this._loadRegistered();
|
|
4651
4674
|
this._addPlugin(e.bind(this), {}, !0);
|
|
4652
4675
|
function e(r, o, s) {
|
|
4653
|
-
|
|
4676
|
+
Dn.call(this, t, s);
|
|
4654
4677
|
}
|
|
4655
4678
|
return this;
|
|
4656
4679
|
};
|
|
@@ -4701,20 +4724,20 @@ ee.prototype.prettyPrint = function() {
|
|
|
4701
4724
|
ee.prototype.toJSON = function() {
|
|
4702
4725
|
return this.pluginTree.toJSON();
|
|
4703
4726
|
};
|
|
4704
|
-
function
|
|
4727
|
+
function zr() {
|
|
4705
4728
|
}
|
|
4706
|
-
function
|
|
4729
|
+
function jn() {
|
|
4707
4730
|
if (this.booted) {
|
|
4708
|
-
|
|
4731
|
+
Ze("thenify returning null because we are already booted");
|
|
4709
4732
|
return;
|
|
4710
4733
|
}
|
|
4711
4734
|
if (this[Wt]) {
|
|
4712
4735
|
this[Wt] = !1;
|
|
4713
4736
|
return;
|
|
4714
4737
|
}
|
|
4715
|
-
return
|
|
4738
|
+
return Ze("thenify"), (t, e) => this._loadRegistered().then(() => (this[Wt] = !0, t(this._server)), e);
|
|
4716
4739
|
}
|
|
4717
|
-
function
|
|
4740
|
+
function Dn(t, e) {
|
|
4718
4741
|
const r = this._server, o = this._error;
|
|
4719
4742
|
let s;
|
|
4720
4743
|
if (this._error = null, t.length === 0)
|
|
@@ -4731,9 +4754,9 @@ function jn(t, e) {
|
|
|
4731
4754
|
}
|
|
4732
4755
|
function la(t, e, r, o) {
|
|
4733
4756
|
const s = t.name;
|
|
4734
|
-
|
|
4757
|
+
Ze("setting up ready timeout", s, this._timeout);
|
|
4735
4758
|
let u = setTimeout(() => {
|
|
4736
|
-
|
|
4759
|
+
Ze("timed out", s), u = null;
|
|
4737
4760
|
const f = new sa(s);
|
|
4738
4761
|
f.fn = t, this._error = f, o(f);
|
|
4739
4762
|
}, this._timeout);
|
|
@@ -4746,7 +4769,7 @@ function ha(t, e) {
|
|
|
4746
4769
|
const r = this._server, o = t[this._isOnCloseHandlerKey];
|
|
4747
4770
|
if (t.length === 0 || t.length === 1) {
|
|
4748
4771
|
let s;
|
|
4749
|
-
o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (
|
|
4772
|
+
o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (Ze("resolving close/onClose promise"), s.then(
|
|
4750
4773
|
() => O.process.nextTick(e),
|
|
4751
4774
|
(u) => O.process.nextTick(e, u)
|
|
4752
4775
|
)) : O.process.nextTick(e);
|
|
@@ -4775,16 +4798,16 @@ function Jt(t, e) {
|
|
|
4775
4798
|
}, s) : O.process.nextTick(s)) : t.length === 2 ? t(o, s) : t(o, this, s) : O.process.nextTick(s);
|
|
4776
4799
|
}
|
|
4777
4800
|
}
|
|
4778
|
-
|
|
4779
|
-
|
|
4801
|
+
yr.exports = ee;
|
|
4802
|
+
yr.exports.express = function(t) {
|
|
4780
4803
|
return ee(t, {
|
|
4781
4804
|
expose: {
|
|
4782
4805
|
use: "load"
|
|
4783
4806
|
}
|
|
4784
4807
|
});
|
|
4785
4808
|
};
|
|
4786
|
-
var da =
|
|
4787
|
-
const ya = /* @__PURE__ */
|
|
4809
|
+
var da = yr.exports;
|
|
4810
|
+
const ya = /* @__PURE__ */ Yn(da);
|
|
4788
4811
|
function Ra(t, e = !0, r = !0) {
|
|
4789
4812
|
const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s = ya(/* @__PURE__ */ Object.create({}), { autostart: !1 });
|
|
4790
4813
|
return s.use(Bi), s.use(Ei, { sdkKey: t, host: o }), s.use(xi), s.use(Oi), s.use(ao), s.use(Ji), r && s.after(async (u, l, f) => {
|