@streamlayer/sdk-web 0.27.0 → 0.27.1
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 +7 -7
- package/lib/es/index.js +195 -195
- package/package.json +4 -4
package/lib/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QuestionType as Qe, SilenceSetting as Gr, QuestionStatus as Wt } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
|
|
2
2
|
import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
|
|
3
|
-
import { SdkOverlayType as
|
|
3
|
+
import { SdkOverlayType as ce } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
|
|
4
4
|
import { computed as Qr, map as Dn, atom as It } from "nanostores";
|
|
5
5
|
import "@nanostores/logger";
|
|
6
6
|
import "microdiff";
|
|
@@ -11,7 +11,7 @@ import { Events as Qn } from "@streamlayer/sl-eslib/sports/events/events_connect
|
|
|
11
11
|
import { Client as Ft } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
|
|
12
12
|
import { Users as zr } from "@streamlayer/sl-eslib/users/users_connect";
|
|
13
13
|
import { pino as zn } from "pino";
|
|
14
|
-
import { Feed as
|
|
14
|
+
import { Feed as de } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
|
|
15
15
|
import { Leaderboard as Hr } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
|
|
16
16
|
var Kr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
17
17
|
function Hn(t) {
|
|
@@ -21,9 +21,9 @@ var _ = {}, Wr = {}, Ct = {};
|
|
|
21
21
|
Ct.byteLength = Jn;
|
|
22
22
|
Ct.toByteArray = Xn;
|
|
23
23
|
Ct.fromByteArray = ti;
|
|
24
|
-
var
|
|
24
|
+
var ve = [], oe = [], Kn = typeof Uint8Array < "u" ? Uint8Array : Array, Pt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
25
25
|
for (var je = 0, Wn = Pt.length; je < Wn; ++je)
|
|
26
|
-
|
|
26
|
+
ve[je] = Pt[je], oe[Pt.charCodeAt(je)] = je;
|
|
27
27
|
oe["-".charCodeAt(0)] = 62;
|
|
28
28
|
oe["_".charCodeAt(0)] = 63;
|
|
29
29
|
function Jr(t) {
|
|
@@ -49,7 +49,7 @@ function Xn(t) {
|
|
|
49
49
|
return s === 2 && (e = oe[t.charCodeAt(p)] << 2 | oe[t.charCodeAt(p + 1)] >> 4, u[l++] = e & 255), s === 1 && (e = oe[t.charCodeAt(p)] << 10 | oe[t.charCodeAt(p + 1)] << 4 | oe[t.charCodeAt(p + 2)] >> 2, u[l++] = e >> 8 & 255, u[l++] = e & 255), u;
|
|
50
50
|
}
|
|
51
51
|
function Zn(t) {
|
|
52
|
-
return
|
|
52
|
+
return ve[t >> 18 & 63] + ve[t >> 12 & 63] + ve[t >> 6 & 63] + ve[t & 63];
|
|
53
53
|
}
|
|
54
54
|
function ei(t, e, r) {
|
|
55
55
|
for (var o, s = [], u = e; u < r; u += 3)
|
|
@@ -60,9 +60,9 @@ function ti(t) {
|
|
|
60
60
|
for (var e, r = t.length, o = r % 3, s = [], u = 16383, l = 0, f = r - o; l < f; l += u)
|
|
61
61
|
s.push(ei(t, l, l + u > f ? f : l + u));
|
|
62
62
|
return o === 1 ? (e = t[r - 1], s.push(
|
|
63
|
-
|
|
63
|
+
ve[e >> 2] + ve[e << 4 & 63] + "=="
|
|
64
64
|
)) : o === 2 && (e = (t[r - 2] << 8) + t[r - 1], s.push(
|
|
65
|
-
|
|
65
|
+
ve[e >> 10] + ve[e >> 4 & 63] + ve[e << 2 & 63] + "="
|
|
66
66
|
)), s.join("");
|
|
67
67
|
}
|
|
68
68
|
var ur = {};
|
|
@@ -83,12 +83,12 @@ ur.read = function(t, e, r, o, s) {
|
|
|
83
83
|
return (I ? -1 : 1) * l * Math.pow(2, u - o);
|
|
84
84
|
};
|
|
85
85
|
ur.write = function(t, e, r, o, s, u) {
|
|
86
|
-
var l, f, p, A = u * 8 - s - 1, g = (1 << A) - 1, w = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, I = o ? 0 : u - 1, R = o ? 1 : -1,
|
|
86
|
+
var l, f, p, A = u * 8 - s - 1, g = (1 << A) - 1, w = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, I = o ? 0 : u - 1, R = o ? 1 : -1, U = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
87
87
|
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 + w >= 1 ? e += E / p : e += E * Math.pow(2, 1 - w), e * p >= 2 && (l++, p /= 2), l + w >= g ? (f = 0, l = g) : l + w >= 1 ? (f = (e * p - 1) * Math.pow(2, s), l = l + w) : (f = e * Math.pow(2, w - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r + I] = f & 255, I += R, f /= 256, s -= 8)
|
|
88
88
|
;
|
|
89
89
|
for (l = l << s | f, A += s; A > 0; t[r + I] = l & 255, I += R, l /= 256, A -= 8)
|
|
90
90
|
;
|
|
91
|
-
t[r + I - R] |=
|
|
91
|
+
t[r + I - R] |= U * 128;
|
|
92
92
|
};
|
|
93
93
|
/*!
|
|
94
94
|
* The buffer module from node.js, for the browser.
|
|
@@ -152,8 +152,8 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
152
152
|
throw new TypeError(
|
|
153
153
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof a
|
|
154
154
|
);
|
|
155
|
-
if (
|
|
156
|
-
return
|
|
155
|
+
if (me(a, ArrayBuffer) || a && me(a.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (me(a, SharedArrayBuffer) || a && me(a.buffer, SharedArrayBuffer)))
|
|
156
|
+
return U(a, n, i);
|
|
157
157
|
if (typeof a == "number")
|
|
158
158
|
throw new TypeError(
|
|
159
159
|
'The "value" argument must not be of type number. Received type number'
|
|
@@ -196,7 +196,7 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
196
196
|
function E(a, n) {
|
|
197
197
|
if ((typeof n != "string" || n === "") && (n = "utf8"), !f.isEncoding(n))
|
|
198
198
|
throw new TypeError("Unknown encoding: " + n);
|
|
199
|
-
const i =
|
|
199
|
+
const i = ye(a, n) | 0;
|
|
200
200
|
let c = l(i);
|
|
201
201
|
const h = c.write(a, n);
|
|
202
202
|
return h !== i && (c = c.slice(0, h)), c;
|
|
@@ -208,13 +208,13 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
208
208
|
return i;
|
|
209
209
|
}
|
|
210
210
|
function R(a) {
|
|
211
|
-
if (
|
|
211
|
+
if (me(a, Uint8Array)) {
|
|
212
212
|
const n = new Uint8Array(a);
|
|
213
|
-
return
|
|
213
|
+
return U(n.buffer, n.byteOffset, n.byteLength);
|
|
214
214
|
}
|
|
215
215
|
return I(a);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function U(a, n, i) {
|
|
218
218
|
if (n < 0 || a.byteLength < n)
|
|
219
219
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
220
220
|
if (a.byteLength < n + (i || 0))
|
|
@@ -243,7 +243,7 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
243
243
|
f.isBuffer = function(n) {
|
|
244
244
|
return n != null && n._isBuffer === !0 && n !== f.prototype;
|
|
245
245
|
}, f.compare = function(n, i) {
|
|
246
|
-
if (
|
|
246
|
+
if (me(n, Uint8Array) && (n = f.from(n, n.offset, n.byteLength)), me(i, Uint8Array) && (i = f.from(i, i.offset, i.byteLength)), !f.isBuffer(n) || !f.isBuffer(i))
|
|
247
247
|
throw new TypeError(
|
|
248
248
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
249
249
|
);
|
|
@@ -286,7 +286,7 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
286
286
|
let y = 0;
|
|
287
287
|
for (c = 0; c < n.length; ++c) {
|
|
288
288
|
let m = n[c];
|
|
289
|
-
if (
|
|
289
|
+
if (me(m, Uint8Array))
|
|
290
290
|
y + m.length > h.length ? (f.isBuffer(m) || (m = f.from(m)), m.copy(h, y)) : Uint8Array.prototype.set.call(
|
|
291
291
|
h,
|
|
292
292
|
m,
|
|
@@ -300,10 +300,10 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
300
300
|
}
|
|
301
301
|
return h;
|
|
302
302
|
};
|
|
303
|
-
function
|
|
303
|
+
function ye(a, n) {
|
|
304
304
|
if (f.isBuffer(a))
|
|
305
305
|
return a.length;
|
|
306
|
-
if (ArrayBuffer.isView(a) ||
|
|
306
|
+
if (ArrayBuffer.isView(a) || me(a, ArrayBuffer))
|
|
307
307
|
return a.byteLength;
|
|
308
308
|
if (typeof a != "string")
|
|
309
309
|
throw new TypeError(
|
|
@@ -337,7 +337,7 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
337
337
|
n = ("" + n).toLowerCase(), h = !0;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
f.byteLength =
|
|
340
|
+
f.byteLength = ye;
|
|
341
341
|
function ee(a, n, i) {
|
|
342
342
|
let c = !1;
|
|
343
343
|
if ((n === void 0 || n < 0) && (n = 0), n > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, n >>>= 0, i <= n))
|
|
@@ -345,10 +345,10 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
345
345
|
for (a || (a = "utf8"); ; )
|
|
346
346
|
switch (a) {
|
|
347
347
|
case "hex":
|
|
348
|
-
return
|
|
348
|
+
return he(this, n, i);
|
|
349
349
|
case "utf8":
|
|
350
350
|
case "utf-8":
|
|
351
|
-
return
|
|
351
|
+
return le(this, n, i);
|
|
352
352
|
case "ascii":
|
|
353
353
|
return tt(this, n, i);
|
|
354
354
|
case "latin1":
|
|
@@ -395,7 +395,7 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
395
395
|
return this;
|
|
396
396
|
}, f.prototype.toString = function() {
|
|
397
397
|
const n = this.length;
|
|
398
|
-
return n === 0 ? "" : arguments.length === 0 ?
|
|
398
|
+
return n === 0 ? "" : arguments.length === 0 ? le(this, 0, n) : ee.apply(this, arguments);
|
|
399
399
|
}, f.prototype.toLocaleString = f.prototype.toString, f.prototype.equals = function(n) {
|
|
400
400
|
if (!f.isBuffer(n))
|
|
401
401
|
throw new TypeError("Argument must be a Buffer");
|
|
@@ -405,7 +405,7 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
405
405
|
const i = t.INSPECT_MAX_BYTES;
|
|
406
406
|
return n = this.toString("hex", 0, i).replace(/(.{2})/g, "$1 ").trim(), this.length > i && (n += " ... "), "<Buffer " + n + ">";
|
|
407
407
|
}, o && (f.prototype[o] = f.prototype.inspect), f.prototype.compare = function(n, i, c, h, y) {
|
|
408
|
-
if (
|
|
408
|
+
if (me(n, Uint8Array) && (n = f.from(n, n.offset, n.byteLength)), !f.isBuffer(n))
|
|
409
409
|
throw new TypeError(
|
|
410
410
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof n
|
|
411
411
|
);
|
|
@@ -509,7 +509,7 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
509
509
|
function Se(a, n, i, c) {
|
|
510
510
|
return nt(ft(n), a, i, c);
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function fe(a, n, i, c) {
|
|
513
513
|
return nt(v(n, a.length - i), a, i, c);
|
|
514
514
|
}
|
|
515
515
|
f.prototype.write = function(n, i, c, h) {
|
|
@@ -545,7 +545,7 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
545
545
|
case "ucs-2":
|
|
546
546
|
case "utf16le":
|
|
547
547
|
case "utf-16le":
|
|
548
|
-
return
|
|
548
|
+
return fe(this, n, i, c);
|
|
549
549
|
default:
|
|
550
550
|
if (m)
|
|
551
551
|
throw new TypeError("Unknown encoding: " + h);
|
|
@@ -560,7 +560,7 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
560
560
|
function et(a, n, i) {
|
|
561
561
|
return n === 0 && i === a.length ? e.fromByteArray(a) : e.fromByteArray(a.slice(n, i));
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function le(a, n, i) {
|
|
564
564
|
i = Math.min(a.length, i);
|
|
565
565
|
const c = [];
|
|
566
566
|
let h = n;
|
|
@@ -614,12 +614,12 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
614
614
|
c += String.fromCharCode(a[h]);
|
|
615
615
|
return c;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function he(a, n, i) {
|
|
618
618
|
const c = a.length;
|
|
619
619
|
(!n || n < 0) && (n = 0), (!i || i < 0 || i > c) && (i = c);
|
|
620
620
|
let h = "";
|
|
621
621
|
for (let y = n; y < i; ++y)
|
|
622
|
-
h +=
|
|
622
|
+
h += Ln[a[y]];
|
|
623
623
|
return h;
|
|
624
624
|
}
|
|
625
625
|
function Oe(a, n, i) {
|
|
@@ -664,13 +664,13 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
664
664
|
}, f.prototype.readUint32BE = f.prototype.readUInt32BE = function(n, i) {
|
|
665
665
|
return n = n >>> 0, i || V(n, 4, this.length), this[n] * 16777216 + (this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3]);
|
|
666
666
|
}, f.prototype.readBigUInt64LE = xe(function(n) {
|
|
667
|
-
n = n >>> 0,
|
|
667
|
+
n = n >>> 0, pe(n, "offset");
|
|
668
668
|
const i = this[n], c = this[n + 7];
|
|
669
669
|
(i === void 0 || c === void 0) && ie(n, this.length - 8);
|
|
670
670
|
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;
|
|
671
671
|
return BigInt(h) + (BigInt(y) << BigInt(32));
|
|
672
672
|
}), f.prototype.readBigUInt64BE = xe(function(n) {
|
|
673
|
-
n = n >>> 0,
|
|
673
|
+
n = n >>> 0, pe(n, "offset");
|
|
674
674
|
const i = this[n], c = this[n + 7];
|
|
675
675
|
(i === void 0 || c === void 0) && ie(n, this.length - 8);
|
|
676
676
|
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;
|
|
@@ -702,13 +702,13 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
702
702
|
}, f.prototype.readInt32BE = function(n, i) {
|
|
703
703
|
return n = n >>> 0, i || V(n, 4, this.length), this[n] << 24 | this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3];
|
|
704
704
|
}, f.prototype.readBigInt64LE = xe(function(n) {
|
|
705
|
-
n = n >>> 0,
|
|
705
|
+
n = n >>> 0, pe(n, "offset");
|
|
706
706
|
const i = this[n], c = this[n + 7];
|
|
707
707
|
(i === void 0 || c === void 0) && ie(n, this.length - 8);
|
|
708
708
|
const h = this[n + 4] + this[n + 5] * 2 ** 8 + this[n + 6] * 2 ** 16 + (c << 24);
|
|
709
709
|
return (BigInt(h) << BigInt(32)) + BigInt(i + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24);
|
|
710
710
|
}), f.prototype.readBigInt64BE = xe(function(n) {
|
|
711
|
-
n = n >>> 0,
|
|
711
|
+
n = n >>> 0, pe(n, "offset");
|
|
712
712
|
const i = this[n], c = this[n + 7];
|
|
713
713
|
(i === void 0 || c === void 0) && ie(n, this.length - 8);
|
|
714
714
|
const h = (i << 24) + // Overflow
|
|
@@ -761,14 +761,14 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
761
761
|
return n = +n, i = i >>> 0, c || d(this, n, i, 4, 4294967295, 0), this[i] = n >>> 24, this[i + 1] = n >>> 16, this[i + 2] = n >>> 8, this[i + 3] = n & 255, i + 4;
|
|
762
762
|
};
|
|
763
763
|
function b(a, n, i, c, h) {
|
|
764
|
-
|
|
764
|
+
ge(n, c, h, a, i, 7);
|
|
765
765
|
let y = Number(n & BigInt(4294967295));
|
|
766
766
|
a[i++] = y, y = y >> 8, a[i++] = y, y = y >> 8, a[i++] = y, y = y >> 8, a[i++] = y;
|
|
767
767
|
let m = Number(n >> BigInt(32) & BigInt(4294967295));
|
|
768
768
|
return a[i++] = m, m = m >> 8, a[i++] = m, m = m >> 8, a[i++] = m, m = m >> 8, a[i++] = m, i;
|
|
769
769
|
}
|
|
770
770
|
function S(a, n, i, c, h) {
|
|
771
|
-
|
|
771
|
+
ge(n, c, h, a, i, 7);
|
|
772
772
|
let y = Number(n & BigInt(4294967295));
|
|
773
773
|
a[i + 7] = y, y = y >> 8, a[i + 6] = y, y = y >> 8, a[i + 5] = y, y = y >> 8, a[i + 4] = y;
|
|
774
774
|
let m = Number(n >> BigInt(32) & BigInt(4294967295));
|
|
@@ -922,11 +922,11 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
922
922
|
"ERR_OUT_OF_RANGE",
|
|
923
923
|
function(a, n, i) {
|
|
924
924
|
let c = `The value of "${a}" is out of range.`, h = i;
|
|
925
|
-
return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? h =
|
|
925
|
+
return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? h = L(String(i)) : typeof i == "bigint" && (h = String(i), (i > BigInt(2) ** BigInt(32) || i < -(BigInt(2) ** BigInt(32))) && (h = L(h)), h += "n"), c += ` It must be ${n}. Received ${h}`, c;
|
|
926
926
|
},
|
|
927
927
|
RangeError
|
|
928
928
|
);
|
|
929
|
-
function
|
|
929
|
+
function L(a) {
|
|
930
930
|
let n = "", i = a.length;
|
|
931
931
|
const c = a[0] === "-" ? 1 : 0;
|
|
932
932
|
for (; i >= c + 4; i -= 3)
|
|
@@ -934,9 +934,9 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
934
934
|
return `${a.slice(0, i)}${n}`;
|
|
935
935
|
}
|
|
936
936
|
function Y(a, n, i) {
|
|
937
|
-
|
|
937
|
+
pe(n, "offset"), (a[n] === void 0 || a[n + i] === void 0) && ie(n, a.length - (i + 1));
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function ge(a, n, i, c, h, y) {
|
|
940
940
|
if (a > i || a < n) {
|
|
941
941
|
const m = typeof n == "bigint" ? "n" : "";
|
|
942
942
|
let T;
|
|
@@ -944,12 +944,12 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
944
944
|
}
|
|
945
945
|
Y(c, h, y);
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function pe(a, n) {
|
|
948
948
|
if (typeof a != "number")
|
|
949
949
|
throw new C.ERR_INVALID_ARG_TYPE(n, "number", a);
|
|
950
950
|
}
|
|
951
951
|
function ie(a, n, i) {
|
|
952
|
-
throw Math.floor(a) !== a ? (
|
|
952
|
+
throw Math.floor(a) !== a ? (pe(a, i), new C.ERR_OUT_OF_RANGE(i || "offset", "an integer", a)) : n < 0 ? new C.ERR_BUFFER_OUT_OF_BOUNDS() : new C.ERR_OUT_OF_RANGE(
|
|
953
953
|
i || "offset",
|
|
954
954
|
`>= ${i ? 1 : 0} and <= ${n}`,
|
|
955
955
|
a
|
|
@@ -1044,13 +1044,13 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
1044
1044
|
n[h + i] = a[h];
|
|
1045
1045
|
return h;
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function me(a, n) {
|
|
1048
1048
|
return a instanceof n || a != null && a.constructor != null && a.constructor.name != null && a.constructor.name === n.name;
|
|
1049
1049
|
}
|
|
1050
1050
|
function kt(a) {
|
|
1051
1051
|
return a !== a;
|
|
1052
1052
|
}
|
|
1053
|
-
const
|
|
1053
|
+
const Ln = function() {
|
|
1054
1054
|
const a = "0123456789abcdef", n = new Array(256);
|
|
1055
1055
|
for (let i = 0; i < 16; ++i) {
|
|
1056
1056
|
const c = i * 16;
|
|
@@ -1066,7 +1066,7 @@ ur.write = function(t, e, r, o, s, u) {
|
|
|
1066
1066
|
throw new Error("BigInt not supported");
|
|
1067
1067
|
}
|
|
1068
1068
|
})(Wr);
|
|
1069
|
-
var Yr = { exports: {} }, H = Yr.exports = {},
|
|
1069
|
+
var Yr = { exports: {} }, H = Yr.exports = {}, be, we;
|
|
1070
1070
|
function Jt() {
|
|
1071
1071
|
throw new Error("setTimeout has not been defined");
|
|
1072
1072
|
}
|
|
@@ -1075,43 +1075,43 @@ function Yt() {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
(function() {
|
|
1077
1077
|
try {
|
|
1078
|
-
typeof setTimeout == "function" ?
|
|
1078
|
+
typeof setTimeout == "function" ? be = setTimeout : be = Jt;
|
|
1079
1079
|
} catch {
|
|
1080
|
-
|
|
1080
|
+
be = Jt;
|
|
1081
1081
|
}
|
|
1082
1082
|
try {
|
|
1083
|
-
typeof clearTimeout == "function" ?
|
|
1083
|
+
typeof clearTimeout == "function" ? we = clearTimeout : we = Yt;
|
|
1084
1084
|
} catch {
|
|
1085
|
-
|
|
1085
|
+
we = Yt;
|
|
1086
1086
|
}
|
|
1087
1087
|
})();
|
|
1088
1088
|
function Xr(t) {
|
|
1089
|
-
if (
|
|
1089
|
+
if (be === setTimeout)
|
|
1090
1090
|
return setTimeout(t, 0);
|
|
1091
|
-
if ((
|
|
1092
|
-
return
|
|
1091
|
+
if ((be === Jt || !be) && setTimeout)
|
|
1092
|
+
return be = setTimeout, setTimeout(t, 0);
|
|
1093
1093
|
try {
|
|
1094
|
-
return
|
|
1094
|
+
return be(t, 0);
|
|
1095
1095
|
} catch {
|
|
1096
1096
|
try {
|
|
1097
|
-
return
|
|
1097
|
+
return be.call(null, t, 0);
|
|
1098
1098
|
} catch {
|
|
1099
|
-
return
|
|
1099
|
+
return be.call(this, t, 0);
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
1103
|
function ri(t) {
|
|
1104
|
-
if (
|
|
1104
|
+
if (we === clearTimeout)
|
|
1105
1105
|
return clearTimeout(t);
|
|
1106
|
-
if ((
|
|
1107
|
-
return
|
|
1106
|
+
if ((we === Yt || !we) && clearTimeout)
|
|
1107
|
+
return we = clearTimeout, clearTimeout(t);
|
|
1108
1108
|
try {
|
|
1109
|
-
return
|
|
1109
|
+
return we(t);
|
|
1110
1110
|
} catch {
|
|
1111
1111
|
try {
|
|
1112
|
-
return
|
|
1112
|
+
return we.call(null, t);
|
|
1113
1113
|
} catch {
|
|
1114
|
-
return
|
|
1114
|
+
return we.call(this, t);
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
@@ -1218,15 +1218,15 @@ var Ee;
|
|
|
1218
1218
|
t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
|
|
1219
1219
|
})(Ee || (Ee = {}));
|
|
1220
1220
|
const ai = {
|
|
1221
|
-
[
|
|
1222
|
-
[
|
|
1223
|
-
[
|
|
1224
|
-
[
|
|
1221
|
+
[ce.BETTING]: "betting",
|
|
1222
|
+
[ce.GAMES]: "games",
|
|
1223
|
+
[ce.PUBLIC_CHAT]: "publicChat",
|
|
1224
|
+
[ce.TWITTER]: "twitter"
|
|
1225
1225
|
};
|
|
1226
|
-
var
|
|
1226
|
+
var Ue;
|
|
1227
1227
|
(function(t) {
|
|
1228
1228
|
t.Ready = "ready", t.Suspended = "suspended";
|
|
1229
|
-
})(
|
|
1229
|
+
})(Ue || (Ue = {}));
|
|
1230
1230
|
class cr {
|
|
1231
1231
|
status;
|
|
1232
1232
|
source;
|
|
@@ -1235,7 +1235,7 @@ class cr {
|
|
|
1235
1235
|
listeners = /* @__PURE__ */ new Set();
|
|
1236
1236
|
settingsKey;
|
|
1237
1237
|
constructor({ settings: e, ...r }, o) {
|
|
1238
|
-
this.settingsKey = ai[r.type], this.status = It(
|
|
1238
|
+
this.settingsKey = ai[r.type], this.status = It(Ue.Suspended), this.config = new it(ot(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new it(ot(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new it(ot({}), `feature:settings:${this.settingsKey}`), this.source = o;
|
|
1239
1239
|
}
|
|
1240
1240
|
get featureConfig() {
|
|
1241
1241
|
return this.config.getStore();
|
|
@@ -1247,10 +1247,10 @@ class cr {
|
|
|
1247
1247
|
this.listeners.add(e);
|
|
1248
1248
|
}
|
|
1249
1249
|
enable = () => {
|
|
1250
|
-
this.status.set(
|
|
1250
|
+
this.status.set(Ue.Ready);
|
|
1251
1251
|
};
|
|
1252
1252
|
disable = () => {
|
|
1253
|
-
this.status.set(
|
|
1253
|
+
this.status.set(Ue.Suspended);
|
|
1254
1254
|
};
|
|
1255
1255
|
setFeatureConfig = ({ settings: e, ...r }) => {
|
|
1256
1256
|
let o;
|
|
@@ -1742,7 +1742,7 @@ const Ei = async (t, e, r) => {
|
|
|
1742
1742
|
}, t.sdk.disableApp = () => {
|
|
1743
1743
|
t.stores.enabled.setValue(), t.stores.status.setValue(ke.DISABLED), t.storeUnsubscribe();
|
|
1744
1744
|
}, t.sdk.createEventSession = (o) => {
|
|
1745
|
-
t.stores.providerStreamId.setValue(
|
|
1745
|
+
t.stores.providerStreamId.setValue(o);
|
|
1746
1746
|
}, r();
|
|
1747
1747
|
}, Ci = zn({
|
|
1748
1748
|
level: "trace"
|
|
@@ -1770,14 +1770,14 @@ const Ei = async (t, e, r) => {
|
|
|
1770
1770
|
})).data
|
|
1771
1771
|
});
|
|
1772
1772
|
}, Bi = (t, e) => {
|
|
1773
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1773
|
+
const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "get", params: [t] });
|
|
1774
1774
|
return e.nanoquery.createFetcherStore(o, {
|
|
1775
1775
|
fetcher: async (s, u, l) => (await r.get({
|
|
1776
1776
|
eventId: l
|
|
1777
1777
|
})).data?.attributes
|
|
1778
1778
|
});
|
|
1779
1779
|
}, Oi = (t, e) => {
|
|
1780
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1780
|
+
const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "syncQuestion", params: [t] });
|
|
1781
1781
|
return e.nanoquery.createFetcherStore(o, {
|
|
1782
1782
|
fetcher: async (s, u, l) => l ? (await r.syncQuestion({
|
|
1783
1783
|
filter: {
|
|
@@ -1786,41 +1786,41 @@ const Ei = async (t, e, r) => {
|
|
|
1786
1786
|
})).data?.attributes : void 0
|
|
1787
1787
|
});
|
|
1788
1788
|
}, xi = (t, e) => {
|
|
1789
|
-
const { client: r } = e.createCallbackClient(
|
|
1789
|
+
const { client: r } = e.createCallbackClient(de), o = It({ eventId: t.get() || "", feedId: "" });
|
|
1790
1790
|
return t.subscribe((u = "") => {
|
|
1791
1791
|
o.set({ eventId: u, feedId: "" });
|
|
1792
1792
|
}), e.addSubscription(r.subscription, o, { name: "feedSubscription" });
|
|
1793
1793
|
}, ki = (t, e) => {
|
|
1794
|
-
const { client: r } = e.createCallbackClient(
|
|
1794
|
+
const { client: r } = e.createCallbackClient(de);
|
|
1795
1795
|
return e.addSubscription(r.questionSubscription, { questionId: t }, { name: "questionSubscription" });
|
|
1796
1796
|
}, Pi = async (t, e) => {
|
|
1797
|
-
const { client: r } = e.createPromiseClient(
|
|
1797
|
+
const { client: r } = e.createPromiseClient(de, { method: "questionByUser", params: [t] });
|
|
1798
1798
|
return (await r.questionByUser({
|
|
1799
1799
|
questionId: t
|
|
1800
1800
|
})).data?.attributes?.question;
|
|
1801
1801
|
}, Ri = (t, e) => {
|
|
1802
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1802
|
+
const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "questionByUser", params: [t] });
|
|
1803
1803
|
return e.nanoquery.createFetcherStore(o, {
|
|
1804
1804
|
fetcher: async (s, u, l) => (await r.questionByUser({
|
|
1805
1805
|
questionId: l
|
|
1806
1806
|
})).data?.attributes?.question
|
|
1807
1807
|
});
|
|
1808
1808
|
}, Ni = (t, e) => {
|
|
1809
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1809
|
+
const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "pickHistory", params: [t] });
|
|
1810
1810
|
return e.nanoquery.createFetcherStore(o, {
|
|
1811
1811
|
fetcher: async (s, u, l) => l ? (await r.pickHistory({
|
|
1812
1812
|
eventId: l
|
|
1813
|
-
})).data?.map(({ attributes: p }) => p) :
|
|
1813
|
+
})).data?.map(({ attributes: p }) => p) : []
|
|
1814
1814
|
});
|
|
1815
|
-
},
|
|
1816
|
-
const { client: r, queryKey: o } = e.createPromiseClient(
|
|
1815
|
+
}, Ui = (t, e) => {
|
|
1816
|
+
const { client: r, queryKey: o } = e.createPromiseClient(de, { method: "insightHistory", params: [t] });
|
|
1817
1817
|
return e.nanoquery.createFetcherStore(o, {
|
|
1818
1818
|
fetcher: async (s, u, l) => l ? (await r.insightHistory({
|
|
1819
1819
|
eventId: l
|
|
1820
1820
|
})).data?.map(({ attributes: p }) => p) : void 0
|
|
1821
1821
|
});
|
|
1822
|
-
}, nn = (t) => (t.gamification || (t.gamification = new
|
|
1823
|
-
class
|
|
1822
|
+
}, nn = (t) => (t.gamification || (t.gamification = new Li(t)), t.gamification);
|
|
1823
|
+
class Li {
|
|
1824
1824
|
/** sl event id */
|
|
1825
1825
|
slStreamId;
|
|
1826
1826
|
/** organization id */
|
|
@@ -1997,13 +1997,13 @@ class ji {
|
|
|
1997
1997
|
const Mi = (t, e, r) => {
|
|
1998
1998
|
t.notifications = new ji(), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), r();
|
|
1999
1999
|
}, Vi = (t, e) => {
|
|
2000
|
-
const { client: r } = t.createPromiseClient(
|
|
2000
|
+
const { client: r } = t.createPromiseClient(de, { method: "submitAnswer" });
|
|
2001
2001
|
return r.submitAnswer({ data: e });
|
|
2002
2002
|
}, qi = (t, e) => {
|
|
2003
|
-
const { client: r } = t.createPromiseClient(
|
|
2003
|
+
const { client: r } = t.createPromiseClient(de, { method: "submitInplay" });
|
|
2004
2004
|
return r.submitInplay({ data: { eventId: +e } });
|
|
2005
2005
|
}, Gi = (t, e) => {
|
|
2006
|
-
const { client: r } = t.createPromiseClient(
|
|
2006
|
+
const { client: r } = t.createPromiseClient(de, { method: "skipQuestion" });
|
|
2007
2007
|
return r.skipQuestion({ data: { id: e } });
|
|
2008
2008
|
};
|
|
2009
2009
|
var bt;
|
|
@@ -2046,13 +2046,13 @@ class zi extends cr {
|
|
|
2046
2046
|
/** Browser cache */
|
|
2047
2047
|
storage;
|
|
2048
2048
|
constructor(e, r, o) {
|
|
2049
|
-
super(e, r), this.background = nn(o), this.storage = new Qi(), this.userSummary = new te(_i(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.leaderboardId = new ae(ue(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = new ae(ue(Z.Unset), "onboardingStatus").getStore(), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(
|
|
2049
|
+
super(e, r), this.background = nn(o), this.storage = new Qi(), this.userSummary = new te(_i(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.questions = new te(Ni(this.background.slStreamId, o.transport), "gamification:questions"), this.leaderboardId = new ae(ue(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = new ae(ue(Z.Unset), "onboardingStatus").getStore(), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ce.GAMES), this.openedQuestion = fr(this.background.openedQuestion.getStore(), (s) => {
|
|
2050
2050
|
if (s.data?.type && Ar.has(s.data.type))
|
|
2051
2051
|
return s.data;
|
|
2052
|
-
}), this.onboardingStatus.subscribe((s) => {
|
|
2052
|
+
}), this.leaderboardList = new te(Ti(this.background.slStreamId, this.leaderboardId, o.transport), "gamification:leaderboardList"), this.onboardingStatus.subscribe((s) => {
|
|
2053
2053
|
(s === Z.Optional || Z.Required) && this.showOnboardingInApp();
|
|
2054
2054
|
}), this.status.subscribe((s) => {
|
|
2055
|
-
s ===
|
|
2055
|
+
s === Ue.Ready ? (this.notifications.close(this.background.getCurrentSessionId({ prefix: "onboarding" })), this.connect(o.transport)) : this.disconnect();
|
|
2056
2056
|
}), this.onboardingStatus.subscribe((s) => {
|
|
2057
2057
|
s && this.background.activeQuestionId.invalidate();
|
|
2058
2058
|
}), this.background.activeQuestionId.listen((s) => {
|
|
@@ -2118,7 +2118,7 @@ class zi extends cr {
|
|
|
2118
2118
|
});
|
|
2119
2119
|
};
|
|
2120
2120
|
connect = (e) => {
|
|
2121
|
-
this.userSummary.invalidate(), this.leaderboardList
|
|
2121
|
+
this.userSummary.invalidate(), this.leaderboardList.invalidate(), this.questions.invalidate(), this.background.feedSubscription.addListener("feed-subscription-prediction-close", (r) => {
|
|
2122
2122
|
window.requestAnimationFrame(async () => {
|
|
2123
2123
|
const o = r.data?.attributes?.question;
|
|
2124
2124
|
if (!o)
|
|
@@ -2176,8 +2176,8 @@ class Hi extends cr {
|
|
|
2176
2176
|
transport;
|
|
2177
2177
|
background;
|
|
2178
2178
|
constructor(e, r, o) {
|
|
2179
|
-
super(e, r), this.background = nn(o), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(
|
|
2180
|
-
s ===
|
|
2179
|
+
super(e, r), this.background = nn(o), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ce.HIGHLIGHTS), this.status.subscribe((s) => {
|
|
2180
|
+
s === Ue.Ready ? this.connect() : this.disconnect();
|
|
2181
2181
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2182
2182
|
s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== Gr.ON && s.data.question.type === Qe.FACTOID && s.data.question.status === Wt.ACTIVE && this.notifications.add({
|
|
2183
2183
|
type: He.QUESTION,
|
|
@@ -2199,7 +2199,7 @@ class Hi extends cr {
|
|
|
2199
2199
|
});
|
|
2200
2200
|
}
|
|
2201
2201
|
connect = () => {
|
|
2202
|
-
this.insights ? this.insights.invalidate() : this.insights = new te(
|
|
2202
|
+
this.insights ? this.insights.invalidate() : this.insights = new te(Ui(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
|
|
2203
2203
|
window.requestAnimationFrame(() => {
|
|
2204
2204
|
this.insights?.invalidate();
|
|
2205
2205
|
});
|
|
@@ -2211,17 +2211,17 @@ class Hi extends cr {
|
|
|
2211
2211
|
openHighlight = (e) => (this.openFeature(), this.background.openQuestion(e));
|
|
2212
2212
|
closeHighlight = (e) => this.background.closeQuestion(e);
|
|
2213
2213
|
}
|
|
2214
|
-
|
|
2214
|
+
ce.GAMES + "", ce.HIGHLIGHTS + "";
|
|
2215
2215
|
class Ki extends cr {
|
|
2216
2216
|
constructor(e, r) {
|
|
2217
2217
|
super(e, r);
|
|
2218
2218
|
}
|
|
2219
2219
|
}
|
|
2220
|
-
const Wi = (t, e, r) => t.type ===
|
|
2221
|
-
t.features = /* @__PURE__ */ new Map(), t.activeFeature = new ae(ue(
|
|
2220
|
+
const Wi = (t, e, r) => t.type === ce.GAMES ? new zi(t, e, r) : t.type === ce.HIGHLIGHTS ? new Hi(t, e, r) : new Ki(t, e), Ji = (t, e, r) => {
|
|
2221
|
+
t.features = /* @__PURE__ */ new Map(), t.activeFeature = new ae(ue(ce.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) => {
|
|
2222
2222
|
t.activeFeature.setValue(o);
|
|
2223
2223
|
}, t.sdk.closeFeature = () => {
|
|
2224
|
-
t.activeFeature.setValue(
|
|
2224
|
+
t.activeFeature.setValue(ce.UNSET);
|
|
2225
2225
|
}, t.initFeature = (o, s = Ee.ORGANIZATION) => {
|
|
2226
2226
|
const u = Wi(o, s, t);
|
|
2227
2227
|
t.features.set(o.type, u);
|
|
@@ -2293,7 +2293,7 @@ function on(t, e, r) {
|
|
|
2293
2293
|
if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
|
|
2294
2294
|
throw new Error("fastqueue concurrency must be greater than 1");
|
|
2295
2295
|
var o = Zi(eo), s = null, u = null, l = 0, f = null, p = {
|
|
2296
|
-
push:
|
|
2296
|
+
push: U,
|
|
2297
2297
|
drain: se,
|
|
2298
2298
|
saturated: se,
|
|
2299
2299
|
pause: g,
|
|
@@ -2307,7 +2307,7 @@ function on(t, e, r) {
|
|
|
2307
2307
|
unshift: Q,
|
|
2308
2308
|
empty: se,
|
|
2309
2309
|
kill: X,
|
|
2310
|
-
killAndDrain:
|
|
2310
|
+
killAndDrain: ye,
|
|
2311
2311
|
error: ee
|
|
2312
2312
|
};
|
|
2313
2313
|
return p;
|
|
@@ -2337,7 +2337,7 @@ function on(t, e, r) {
|
|
|
2337
2337
|
function R() {
|
|
2338
2338
|
return l === 0 && p.length() === 0;
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2340
|
+
function U(x, j) {
|
|
2341
2341
|
var B = o.get();
|
|
2342
2342
|
B.context = t, B.release = z, B.value = x, B.callback = j || se, B.errorHandler = f, l === p.concurrency || p.paused ? u ? (u.next = B, u = B) : (s = B, u = B, p.saturated()) : (l++, e.call(t, B.value, B.worked));
|
|
2343
2343
|
}
|
|
@@ -2353,7 +2353,7 @@ function on(t, e, r) {
|
|
|
2353
2353
|
function X() {
|
|
2354
2354
|
s = null, u = null, p.drain = se;
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function ye() {
|
|
2357
2357
|
s = null, u = null, p.drain(), p.drain = se;
|
|
2358
2358
|
}
|
|
2359
2359
|
function ee(x) {
|
|
@@ -2381,24 +2381,24 @@ function to(t, e, r) {
|
|
|
2381
2381
|
return s.push = f, s.unshift = p, s.drained = A, s;
|
|
2382
2382
|
function f(g) {
|
|
2383
2383
|
var w = new Promise(function(E, I) {
|
|
2384
|
-
u(g, function(R,
|
|
2384
|
+
u(g, function(R, U) {
|
|
2385
2385
|
if (R) {
|
|
2386
2386
|
I(R);
|
|
2387
2387
|
return;
|
|
2388
2388
|
}
|
|
2389
|
-
E(
|
|
2389
|
+
E(U);
|
|
2390
2390
|
});
|
|
2391
2391
|
});
|
|
2392
2392
|
return w.catch(se), w;
|
|
2393
2393
|
}
|
|
2394
2394
|
function p(g) {
|
|
2395
2395
|
var w = new Promise(function(E, I) {
|
|
2396
|
-
l(g, function(R,
|
|
2396
|
+
l(g, function(R, U) {
|
|
2397
2397
|
if (R) {
|
|
2398
2398
|
I(R);
|
|
2399
2399
|
return;
|
|
2400
2400
|
}
|
|
2401
|
-
E(
|
|
2401
|
+
E(U);
|
|
2402
2402
|
});
|
|
2403
2403
|
});
|
|
2404
2404
|
return w.catch(se), w;
|
|
@@ -2718,26 +2718,26 @@ var yn = dr.exports, Bt = {}, gn = {}, mn = function() {
|
|
|
2718
2718
|
return wn('"use strict"; return (' + t + ").constructor;")();
|
|
2719
2719
|
} catch {
|
|
2720
2720
|
}
|
|
2721
|
-
},
|
|
2722
|
-
if (
|
|
2721
|
+
}, Le = Object.getOwnPropertyDescriptor;
|
|
2722
|
+
if (Le)
|
|
2723
2723
|
try {
|
|
2724
|
-
|
|
2724
|
+
Le({}, "");
|
|
2725
2725
|
} catch {
|
|
2726
|
-
|
|
2726
|
+
Le = null;
|
|
2727
2727
|
}
|
|
2728
|
-
var
|
|
2728
|
+
var Ut = function() {
|
|
2729
2729
|
throw new We();
|
|
2730
|
-
}, Eo =
|
|
2730
|
+
}, Eo = Le ? function() {
|
|
2731
2731
|
try {
|
|
2732
|
-
return arguments.callee,
|
|
2732
|
+
return arguments.callee, Ut;
|
|
2733
2733
|
} catch {
|
|
2734
2734
|
try {
|
|
2735
|
-
return
|
|
2735
|
+
return Le(arguments, "callee").get;
|
|
2736
2736
|
} catch {
|
|
2737
|
-
return
|
|
2737
|
+
return Ut;
|
|
2738
2738
|
}
|
|
2739
2739
|
}
|
|
2740
|
-
}() :
|
|
2740
|
+
}() : Ut, Me = fo(), Io = ho(), K = Object.getPrototypeOf || (Io ? function(t) {
|
|
2741
2741
|
return t.__proto__;
|
|
2742
2742
|
} : null), qe = {}, Fo = typeof Uint8Array > "u" || !K ? k : K(Uint8Array), $e = {
|
|
2743
2743
|
"%AggregateError%": typeof AggregateError > "u" ? k : AggregateError,
|
|
@@ -2927,9 +2927,9 @@ var _o = function t(e) {
|
|
|
2927
2927
|
throw new We("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2928
2928
|
return;
|
|
2929
2929
|
}
|
|
2930
|
-
if (
|
|
2931
|
-
var
|
|
2932
|
-
w = !!
|
|
2930
|
+
if (Le && g + 1 >= o.length) {
|
|
2931
|
+
var U = Le(f, E);
|
|
2932
|
+
w = !!U, w && "get" in U && !("originalValue" in U.get) ? f = U.get : f = f[E];
|
|
2933
2933
|
} else
|
|
2934
2934
|
w = wt(f, E), f = f[E];
|
|
2935
2935
|
w && !p && ($e[l] = f);
|
|
@@ -2954,14 +2954,14 @@ Zt.hasArrayLengthDefineBug = function() {
|
|
|
2954
2954
|
return !0;
|
|
2955
2955
|
}
|
|
2956
2956
|
};
|
|
2957
|
-
var Sn = Zt,
|
|
2957
|
+
var Sn = Zt, Uo = Xe, pt = Uo("%Object.getOwnPropertyDescriptor%", !0);
|
|
2958
2958
|
if (pt)
|
|
2959
2959
|
try {
|
|
2960
2960
|
pt([], "length");
|
|
2961
2961
|
} catch {
|
|
2962
2962
|
pt = null;
|
|
2963
2963
|
}
|
|
2964
|
-
var gr = pt,
|
|
2964
|
+
var gr = pt, Lo = Sn(), mr = Xe, st = Lo && mr("%Object.defineProperty%", !0);
|
|
2965
2965
|
if (st)
|
|
2966
2966
|
try {
|
|
2967
2967
|
st({}, "a", { value: 1 });
|
|
@@ -3039,7 +3039,7 @@ var En = vn.exports, In = Xe, Fn = En, qo = Fn(In("String.prototype.indexOf")),
|
|
|
3039
3039
|
return Ot(arguments);
|
|
3040
3040
|
}();
|
|
3041
3041
|
Ot.isLegacyArguments = _n;
|
|
3042
|
-
var Ho = zo ? Ot : _n, Ko = Object.prototype.toString, Wo = Function.prototype.toString, Jo = /^\s*(?:function)?\*/, Tn = yr(),
|
|
3042
|
+
var Ho = zo ? Ot : _n, Ko = Object.prototype.toString, Wo = Function.prototype.toString, Jo = /^\s*(?:function)?\*/, Tn = yr(), Lt = Object.getPrototypeOf, Yo = function() {
|
|
3043
3043
|
if (!Tn)
|
|
3044
3044
|
return !1;
|
|
3045
3045
|
try {
|
|
@@ -3055,13 +3055,13 @@ var Ho = zo ? Ot : _n, Ko = Object.prototype.toString, Wo = Function.prototype.t
|
|
|
3055
3055
|
var r = Ko.call(e);
|
|
3056
3056
|
return r === "[object GeneratorFunction]";
|
|
3057
3057
|
}
|
|
3058
|
-
if (!
|
|
3058
|
+
if (!Lt)
|
|
3059
3059
|
return !1;
|
|
3060
3060
|
if (typeof $t > "u") {
|
|
3061
3061
|
var o = Yo();
|
|
3062
|
-
$t = o ?
|
|
3062
|
+
$t = o ? Lt(o) : !1;
|
|
3063
3063
|
}
|
|
3064
|
-
return
|
|
3064
|
+
return Lt(e) === $t;
|
|
3065
3065
|
}, Bn = Function.prototype.toString, Ge = typeof Reflect == "object" && Reflect !== null && Reflect.apply, tr, dt;
|
|
3066
3066
|
if (typeof Ge == "function" && typeof Object.defineProperty == "function")
|
|
3067
3067
|
try {
|
|
@@ -3158,14 +3158,14 @@ var cs = Ge ? function(e) {
|
|
|
3158
3158
|
for (var e = [], r = 0; r < jt.length; r++)
|
|
3159
3159
|
typeof ms[jt[r]] == "function" && (e[e.length] = jt[r]);
|
|
3160
3160
|
return e;
|
|
3161
|
-
}, St = gs, ws = bs, Nr = En, br = Cn, gt = gr, vs = br("Object.prototype.toString"), xn = yr(),
|
|
3161
|
+
}, St = gs, ws = bs, Nr = En, br = Cn, gt = gr, vs = br("Object.prototype.toString"), xn = yr(), Ur = typeof globalThis > "u" ? Kr : globalThis, ir = ws(), wr = br("String.prototype.slice"), Mt = Object.getPrototypeOf, Ss = br("Array.prototype.indexOf", !0) || function(e, r) {
|
|
3162
3162
|
for (var o = 0; o < e.length; o += 1)
|
|
3163
3163
|
if (e[o] === r)
|
|
3164
3164
|
return o;
|
|
3165
3165
|
return -1;
|
|
3166
3166
|
}, At = { __proto__: null };
|
|
3167
3167
|
xn && gt && Mt ? St(ir, function(t) {
|
|
3168
|
-
var e = new
|
|
3168
|
+
var e = new Ur[t]();
|
|
3169
3169
|
if (Symbol.toStringTag in e) {
|
|
3170
3170
|
var r = Mt(e), o = gt(r, Symbol.toStringTag);
|
|
3171
3171
|
if (!o) {
|
|
@@ -3175,7 +3175,7 @@ xn && gt && Mt ? St(ir, function(t) {
|
|
|
3175
3175
|
At["$" + t] = Nr(o.get);
|
|
3176
3176
|
}
|
|
3177
3177
|
}) : St(ir, function(t) {
|
|
3178
|
-
var e = new
|
|
3178
|
+
var e = new Ur[t](), r = e.slice || e.set;
|
|
3179
3179
|
r && (At["$" + t] = Nr(r));
|
|
3180
3180
|
});
|
|
3181
3181
|
var As = function(e) {
|
|
@@ -3227,10 +3227,10 @@ var As = function(e) {
|
|
|
3227
3227
|
}
|
|
3228
3228
|
}
|
|
3229
3229
|
t.isArgumentsObject = e, t.isGeneratorFunction = r, t.isTypedArray = s;
|
|
3230
|
-
function
|
|
3230
|
+
function U(v) {
|
|
3231
3231
|
return typeof Promise < "u" && v instanceof Promise || v !== null && typeof v == "object" && typeof v.then == "function" && typeof v.catch == "function";
|
|
3232
3232
|
}
|
|
3233
|
-
t.isPromise =
|
|
3233
|
+
t.isPromise = U;
|
|
3234
3234
|
function Q(v) {
|
|
3235
3235
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(v) : s(v) || b(v);
|
|
3236
3236
|
}
|
|
@@ -3243,10 +3243,10 @@ var As = function(e) {
|
|
|
3243
3243
|
return o(v) === "Uint8ClampedArray";
|
|
3244
3244
|
}
|
|
3245
3245
|
t.isUint8ClampedArray = X;
|
|
3246
|
-
function
|
|
3246
|
+
function ye(v) {
|
|
3247
3247
|
return o(v) === "Uint16Array";
|
|
3248
3248
|
}
|
|
3249
|
-
t.isUint16Array =
|
|
3249
|
+
t.isUint16Array = ye;
|
|
3250
3250
|
function ee(v) {
|
|
3251
3251
|
return o(v) === "Uint32Array";
|
|
3252
3252
|
}
|
|
@@ -3279,20 +3279,20 @@ var As = function(e) {
|
|
|
3279
3279
|
return o(v) === "BigUint64Array";
|
|
3280
3280
|
}
|
|
3281
3281
|
t.isBigUint64Array = Se;
|
|
3282
|
-
function
|
|
3282
|
+
function fe(v) {
|
|
3283
3283
|
return p(v) === "[object Map]";
|
|
3284
3284
|
}
|
|
3285
|
-
|
|
3285
|
+
fe.working = typeof Map < "u" && fe(/* @__PURE__ */ new Map());
|
|
3286
3286
|
function et(v) {
|
|
3287
|
-
return typeof Map > "u" ? !1 :
|
|
3287
|
+
return typeof Map > "u" ? !1 : fe.working ? fe(v) : v instanceof Map;
|
|
3288
3288
|
}
|
|
3289
3289
|
t.isMap = et;
|
|
3290
|
-
function
|
|
3290
|
+
function le(v) {
|
|
3291
3291
|
return p(v) === "[object Set]";
|
|
3292
3292
|
}
|
|
3293
|
-
|
|
3293
|
+
le.working = typeof Set < "u" && le(/* @__PURE__ */ new Set());
|
|
3294
3294
|
function _e(v) {
|
|
3295
|
-
return typeof Set > "u" ? !1 :
|
|
3295
|
+
return typeof Set > "u" ? !1 : le.working ? le(v) : v instanceof Set;
|
|
3296
3296
|
}
|
|
3297
3297
|
t.isSet = _e;
|
|
3298
3298
|
function Te(v) {
|
|
@@ -3307,10 +3307,10 @@ var As = function(e) {
|
|
|
3307
3307
|
return p(v) === "[object WeakSet]";
|
|
3308
3308
|
}
|
|
3309
3309
|
Be.working = typeof WeakSet < "u" && Be(/* @__PURE__ */ new WeakSet());
|
|
3310
|
-
function
|
|
3310
|
+
function he(v) {
|
|
3311
3311
|
return Be(v);
|
|
3312
3312
|
}
|
|
3313
|
-
t.isWeakSet =
|
|
3313
|
+
t.isWeakSet = he;
|
|
3314
3314
|
function Oe(v) {
|
|
3315
3315
|
return p(v) === "[object ArrayBuffer]";
|
|
3316
3316
|
}
|
|
@@ -3347,22 +3347,22 @@ var As = function(e) {
|
|
|
3347
3347
|
return p(v) === "[object Set Iterator]";
|
|
3348
3348
|
}
|
|
3349
3349
|
t.isSetIterator = O;
|
|
3350
|
-
function
|
|
3350
|
+
function L(v) {
|
|
3351
3351
|
return p(v) === "[object Generator]";
|
|
3352
3352
|
}
|
|
3353
|
-
t.isGeneratorObject =
|
|
3353
|
+
t.isGeneratorObject = L;
|
|
3354
3354
|
function Y(v) {
|
|
3355
3355
|
return p(v) === "[object WebAssembly.Module]";
|
|
3356
3356
|
}
|
|
3357
3357
|
t.isWebAssemblyCompiledModule = Y;
|
|
3358
|
-
function
|
|
3358
|
+
function ge(v) {
|
|
3359
3359
|
return R(v, A);
|
|
3360
3360
|
}
|
|
3361
|
-
t.isNumberObject =
|
|
3362
|
-
function
|
|
3361
|
+
t.isNumberObject = ge;
|
|
3362
|
+
function pe(v) {
|
|
3363
3363
|
return R(v, g);
|
|
3364
3364
|
}
|
|
3365
|
-
t.isStringObject =
|
|
3365
|
+
t.isStringObject = pe;
|
|
3366
3366
|
function ie(v) {
|
|
3367
3367
|
return R(v, w);
|
|
3368
3368
|
}
|
|
@@ -3376,7 +3376,7 @@ var As = function(e) {
|
|
|
3376
3376
|
}
|
|
3377
3377
|
t.isSymbolObject = ct;
|
|
3378
3378
|
function rt(v) {
|
|
3379
|
-
return
|
|
3379
|
+
return ge(v) || pe(v) || ie(v) || De(v) || ct(v);
|
|
3380
3380
|
}
|
|
3381
3381
|
t.isBoxedPrimitive = rt;
|
|
3382
3382
|
function xt(v) {
|
|
@@ -3528,7 +3528,7 @@ var _s = or.exports;
|
|
|
3528
3528
|
}), b;
|
|
3529
3529
|
}
|
|
3530
3530
|
function g(d, b, S) {
|
|
3531
|
-
if (d.customInspect && b &&
|
|
3531
|
+
if (d.customInspect && b && fe(b.inspect) && // Filter out the util module, it's inspect function is special
|
|
3532
3532
|
b.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
|
|
3533
3533
|
!(b.constructor && b.constructor.prototype === b)) {
|
|
3534
3534
|
var F = b.inspect(S, d);
|
|
@@ -3541,7 +3541,7 @@ var _s = or.exports;
|
|
|
3541
3541
|
if (d.showHidden && (N = Object.getOwnPropertyNames(b)), Se(b) && (N.indexOf("message") >= 0 || N.indexOf("description") >= 0))
|
|
3542
3542
|
return E(b);
|
|
3543
3543
|
if (N.length === 0) {
|
|
3544
|
-
if (
|
|
3544
|
+
if (fe(b)) {
|
|
3545
3545
|
var O = b.name ? ": " + b.name : "";
|
|
3546
3546
|
return d.stylize("[Function" + O + "]", "special");
|
|
3547
3547
|
}
|
|
@@ -3552,20 +3552,20 @@ var _s = or.exports;
|
|
|
3552
3552
|
if (Se(b))
|
|
3553
3553
|
return E(b);
|
|
3554
3554
|
}
|
|
3555
|
-
var
|
|
3556
|
-
if (Q(b) && (Y = !0,
|
|
3557
|
-
var
|
|
3558
|
-
|
|
3555
|
+
var L = "", Y = !1, ge = ["{", "}"];
|
|
3556
|
+
if (Q(b) && (Y = !0, ge = ["[", "]"]), fe(b)) {
|
|
3557
|
+
var pe = b.name ? ": " + b.name : "";
|
|
3558
|
+
L = " [Function" + pe + "]";
|
|
3559
3559
|
}
|
|
3560
|
-
if (re(b) && (
|
|
3561
|
-
return
|
|
3560
|
+
if (re(b) && (L = " " + RegExp.prototype.toString.call(b)), Ce(b) && (L = " " + Date.prototype.toUTCString.call(b)), Se(b) && (L = " " + E(b)), N.length === 0 && (!Y || b.length == 0))
|
|
3561
|
+
return ge[0] + L + ge[1];
|
|
3562
3562
|
if (S < 0)
|
|
3563
3563
|
return re(b) ? d.stylize(RegExp.prototype.toString.call(b), "regexp") : d.stylize("[Object]", "special");
|
|
3564
3564
|
d.seen.push(b);
|
|
3565
3565
|
var ie;
|
|
3566
3566
|
return Y ? ie = I(d, b, S, C, N) : ie = N.map(function(De) {
|
|
3567
3567
|
return R(d, b, S, C, De, Y);
|
|
3568
|
-
}), d.seen.pop(),
|
|
3568
|
+
}), d.seen.pop(), U(ie, L, ge);
|
|
3569
3569
|
}
|
|
3570
3570
|
function w(d, b) {
|
|
3571
3571
|
if (B(b))
|
|
@@ -3594,20 +3594,20 @@ var _s = or.exports;
|
|
|
3594
3594
|
String(C),
|
|
3595
3595
|
!0
|
|
3596
3596
|
)) : N.push("");
|
|
3597
|
-
return P.forEach(function(
|
|
3598
|
-
|
|
3597
|
+
return P.forEach(function(L) {
|
|
3598
|
+
L.match(/^\d+$/) || N.push(R(
|
|
3599
3599
|
d,
|
|
3600
3600
|
b,
|
|
3601
3601
|
S,
|
|
3602
3602
|
F,
|
|
3603
|
-
|
|
3603
|
+
L,
|
|
3604
3604
|
!0
|
|
3605
3605
|
));
|
|
3606
3606
|
}), N;
|
|
3607
3607
|
}
|
|
3608
3608
|
function R(d, b, S, F, P, N) {
|
|
3609
|
-
var C, O,
|
|
3610
|
-
if (
|
|
3609
|
+
var C, O, L;
|
|
3610
|
+
if (L = Object.getOwnPropertyDescriptor(b, P) || { value: b[P] }, L.get ? L.set ? O = d.stylize("[Getter/Setter]", "special") : O = d.stylize("[Getter]", "special") : L.set && (O = d.stylize("[Setter]", "special")), Be(F, P) || (C = "[" + P + "]"), O || (d.seen.indexOf(L.value) < 0 ? (X(S) ? O = g(d, L.value, null) : O = g(d, L.value, S - 1), O.indexOf(`
|
|
3611
3611
|
`) > -1 && (N ? O = O.split(`
|
|
3612
3612
|
`).map(function(Y) {
|
|
3613
3613
|
return " " + Y;
|
|
@@ -3624,7 +3624,7 @@ var _s = or.exports;
|
|
|
3624
3624
|
}
|
|
3625
3625
|
return C + ": " + O;
|
|
3626
3626
|
}
|
|
3627
|
-
function
|
|
3627
|
+
function U(d, b, S) {
|
|
3628
3628
|
var F = d.reduce(function(P, N) {
|
|
3629
3629
|
return N.indexOf(`
|
|
3630
3630
|
`) >= 0, P + N.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
@@ -3646,10 +3646,10 @@ var _s = or.exports;
|
|
|
3646
3646
|
return d === null;
|
|
3647
3647
|
}
|
|
3648
3648
|
t.isNull = X;
|
|
3649
|
-
function
|
|
3649
|
+
function ye(d) {
|
|
3650
3650
|
return d == null;
|
|
3651
3651
|
}
|
|
3652
|
-
t.isNullOrUndefined =
|
|
3652
|
+
t.isNullOrUndefined = ye;
|
|
3653
3653
|
function ee(d) {
|
|
3654
3654
|
return typeof d == "number";
|
|
3655
3655
|
}
|
|
@@ -3667,7 +3667,7 @@ var _s = or.exports;
|
|
|
3667
3667
|
}
|
|
3668
3668
|
t.isUndefined = B;
|
|
3669
3669
|
function re(d) {
|
|
3670
|
-
return ne(d) &&
|
|
3670
|
+
return ne(d) && le(d) === "[object RegExp]";
|
|
3671
3671
|
}
|
|
3672
3672
|
t.isRegExp = re, t.types.isRegExp = re;
|
|
3673
3673
|
function ne(d) {
|
|
@@ -3675,23 +3675,23 @@ var _s = or.exports;
|
|
|
3675
3675
|
}
|
|
3676
3676
|
t.isObject = ne;
|
|
3677
3677
|
function Ce(d) {
|
|
3678
|
-
return ne(d) &&
|
|
3678
|
+
return ne(d) && le(d) === "[object Date]";
|
|
3679
3679
|
}
|
|
3680
3680
|
t.isDate = Ce, t.types.isDate = Ce;
|
|
3681
3681
|
function Se(d) {
|
|
3682
|
-
return ne(d) && (
|
|
3682
|
+
return ne(d) && (le(d) === "[object Error]" || d instanceof Error);
|
|
3683
3683
|
}
|
|
3684
3684
|
t.isError = Se, t.types.isNativeError = Se;
|
|
3685
|
-
function
|
|
3685
|
+
function fe(d) {
|
|
3686
3686
|
return typeof d == "function";
|
|
3687
3687
|
}
|
|
3688
|
-
t.isFunction =
|
|
3688
|
+
t.isFunction = fe;
|
|
3689
3689
|
function et(d) {
|
|
3690
3690
|
return d === null || typeof d == "boolean" || typeof d == "number" || typeof d == "string" || typeof d == "symbol" || // ES6 symbol
|
|
3691
3691
|
typeof d > "u";
|
|
3692
3692
|
}
|
|
3693
3693
|
t.isPrimitive = et, t.isBuffer = Cs;
|
|
3694
|
-
function
|
|
3694
|
+
function le(d) {
|
|
3695
3695
|
return Object.prototype.toString.call(d);
|
|
3696
3696
|
}
|
|
3697
3697
|
function _e(d) {
|
|
@@ -3731,15 +3731,15 @@ var _s = or.exports;
|
|
|
3731
3731
|
function Be(d, b) {
|
|
3732
3732
|
return Object.prototype.hasOwnProperty.call(d, b);
|
|
3733
3733
|
}
|
|
3734
|
-
var
|
|
3734
|
+
var he = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
3735
3735
|
t.promisify = function(b) {
|
|
3736
3736
|
if (typeof b != "function")
|
|
3737
3737
|
throw new TypeError('The "original" argument must be of type Function');
|
|
3738
|
-
if (
|
|
3739
|
-
var S = b[
|
|
3738
|
+
if (he && b[he]) {
|
|
3739
|
+
var S = b[he];
|
|
3740
3740
|
if (typeof S != "function")
|
|
3741
3741
|
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
|
3742
|
-
return Object.defineProperty(S,
|
|
3742
|
+
return Object.defineProperty(S, he, {
|
|
3743
3743
|
value: S,
|
|
3744
3744
|
enumerable: !1,
|
|
3745
3745
|
writable: !1,
|
|
@@ -3747,21 +3747,21 @@ var _s = or.exports;
|
|
|
3747
3747
|
}), S;
|
|
3748
3748
|
}
|
|
3749
3749
|
function S() {
|
|
3750
|
-
for (var F, P, N = new Promise(function(
|
|
3751
|
-
F =
|
|
3750
|
+
for (var F, P, N = new Promise(function(L, Y) {
|
|
3751
|
+
F = L, P = Y;
|
|
3752
3752
|
}), C = [], O = 0; O < arguments.length; O++)
|
|
3753
3753
|
C.push(arguments[O]);
|
|
3754
|
-
C.push(function(
|
|
3755
|
-
|
|
3754
|
+
C.push(function(L, Y) {
|
|
3755
|
+
L ? P(L) : F(Y);
|
|
3756
3756
|
});
|
|
3757
3757
|
try {
|
|
3758
3758
|
b.apply(this, C);
|
|
3759
|
-
} catch (
|
|
3760
|
-
P(
|
|
3759
|
+
} catch (L) {
|
|
3760
|
+
P(L);
|
|
3761
3761
|
}
|
|
3762
3762
|
return N;
|
|
3763
3763
|
}
|
|
3764
|
-
return Object.setPrototypeOf(S, Object.getPrototypeOf(b)),
|
|
3764
|
+
return Object.setPrototypeOf(S, Object.getPrototypeOf(b)), he && Object.defineProperty(S, he, {
|
|
3765
3765
|
value: S,
|
|
3766
3766
|
enumerable: !1,
|
|
3767
3767
|
writable: !1,
|
|
@@ -3770,7 +3770,7 @@ var _s = or.exports;
|
|
|
3770
3770
|
S,
|
|
3771
3771
|
e(b)
|
|
3772
3772
|
);
|
|
3773
|
-
}, t.promisify.custom =
|
|
3773
|
+
}, t.promisify.custom = he;
|
|
3774
3774
|
function Oe(d, b) {
|
|
3775
3775
|
if (!d) {
|
|
3776
3776
|
var S = new Error("Promise was rejected with a falsy value");
|
|
@@ -3869,7 +3869,7 @@ var Pn = {
|
|
|
3869
3869
|
return r + s(g ? "└" : "├") + s("─") + s(w ? "┬" : "─") + " " + t(p, E, o).slice(r.length + 2);
|
|
3870
3870
|
}).join("");
|
|
3871
3871
|
};
|
|
3872
|
-
const Os = Bs,
|
|
3872
|
+
const Os = Bs, Lr = Symbol("avvio.TimeTree.untrackNode"), qt = Symbol("avvio.TimeTree.trackNode"), $r = Symbol("avvio.TimeTree.getParent"), Dr = Symbol("avvio.TimeTree.getNode"), jr = Symbol("avvio.TimeTree.addNode");
|
|
3873
3873
|
let xs = class {
|
|
3874
3874
|
constructor() {
|
|
3875
3875
|
this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
|
|
@@ -3877,7 +3877,7 @@ let xs = class {
|
|
|
3877
3877
|
[qt](e) {
|
|
3878
3878
|
this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
|
|
3879
3879
|
}
|
|
3880
|
-
[
|
|
3880
|
+
[Lr](e) {
|
|
3881
3881
|
this.tableId.delete(e.id);
|
|
3882
3882
|
const r = this.tableLabel.get(e.label);
|
|
3883
3883
|
if (r.id) {
|
|
@@ -3917,7 +3917,7 @@ let xs = class {
|
|
|
3917
3917
|
}
|
|
3918
3918
|
stop(e, r = Date.now()) {
|
|
3919
3919
|
const o = this[Dr](e);
|
|
3920
|
-
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[
|
|
3920
|
+
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[Lr](o));
|
|
3921
3921
|
}
|
|
3922
3922
|
toJSON() {
|
|
3923
3923
|
return Object.assign({}, this.root);
|
|
@@ -4023,11 +4023,11 @@ function Rs(t) {
|
|
|
4023
4023
|
r.selectColor = e;
|
|
4024
4024
|
function r(g) {
|
|
4025
4025
|
let w, E = null, I, R;
|
|
4026
|
-
function
|
|
4027
|
-
if (!
|
|
4026
|
+
function U(...Q) {
|
|
4027
|
+
if (!U.enabled)
|
|
4028
4028
|
return;
|
|
4029
|
-
const z =
|
|
4030
|
-
z.diff =
|
|
4029
|
+
const z = U, X = Number(/* @__PURE__ */ new Date()), ye = X - (w || X);
|
|
4030
|
+
z.diff = ye, z.prev = w, z.curr = X, w = X, Q[0] = r.coerce(Q[0]), typeof Q[0] != "string" && Q.unshift("%O");
|
|
4031
4031
|
let ee = 0;
|
|
4032
4032
|
Q[0] = Q[0].replace(/%([a-zA-Z%])/g, (j, B) => {
|
|
4033
4033
|
if (j === "%%")
|
|
@@ -4041,14 +4041,14 @@ function Rs(t) {
|
|
|
4041
4041
|
return j;
|
|
4042
4042
|
}), r.formatArgs.call(z, Q), (z.log || r.log).apply(z, Q);
|
|
4043
4043
|
}
|
|
4044
|
-
return
|
|
4044
|
+
return U.namespace = g, U.useColors = r.useColors(), U.color = r.selectColor(g), U.extend = o, U.destroy = r.destroy, Object.defineProperty(U, "enabled", {
|
|
4045
4045
|
enumerable: !0,
|
|
4046
4046
|
configurable: !1,
|
|
4047
4047
|
get: () => E !== null ? E : (I !== r.namespaces && (I = r.namespaces, R = r.enabled(g)), R),
|
|
4048
4048
|
set: (Q) => {
|
|
4049
4049
|
E = Q;
|
|
4050
4050
|
}
|
|
4051
|
-
}), typeof r.init == "function" && r.init(
|
|
4051
|
+
}), typeof r.init == "function" && r.init(U), U;
|
|
4052
4052
|
}
|
|
4053
4053
|
function o(g, w) {
|
|
4054
4054
|
const E = r(this.namespace + (typeof w > "u" ? ":" : w) + g);
|
|
@@ -4226,7 +4226,7 @@ var Ns = Rs;
|
|
|
4226
4226
|
};
|
|
4227
4227
|
})(sr, sr.exports);
|
|
4228
4228
|
var Rn = sr.exports;
|
|
4229
|
-
const
|
|
4229
|
+
const Us = sn, Ls = yn.EventEmitter, $s = Bt.inherits, W = Rn("avvio"), { AVV_ERR_READY_TIMEOUT: Ds } = Pn, Qt = Symbol.for("plugin-meta");
|
|
4230
4230
|
function js(t, e) {
|
|
4231
4231
|
return t[Qt] && t[Qt].name ? t[Qt].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
|
|
4232
4232
|
`).slice(0, 2).map((r) => r.trim()).join(" -- ");
|
|
@@ -4238,9 +4238,9 @@ function Ms() {
|
|
|
4238
4238
|
}), t;
|
|
4239
4239
|
}
|
|
4240
4240
|
function Ze(t, e, r, o, s) {
|
|
4241
|
-
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 = js(e, r), this.isAfter = o, this.q =
|
|
4241
|
+
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 = js(e, r), this.isAfter = o, this.q = Us(t, Vs, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
|
|
4242
4242
|
}
|
|
4243
|
-
$s(Ze,
|
|
4243
|
+
$s(Ze, Ls);
|
|
4244
4244
|
Ze.prototype.exec = function(t, e) {
|
|
4245
4245
|
const r = this.func;
|
|
4246
4246
|
let o = !1;
|
|
@@ -4377,7 +4377,7 @@ function J(t, e, r) {
|
|
|
4377
4377
|
const o = new J(t, e, r);
|
|
4378
4378
|
return t && Ys(t, e, o), o;
|
|
4379
4379
|
}
|
|
4380
|
-
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 Js(), this._readyQ = Vr(this,
|
|
4380
|
+
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 Js(), this._readyQ = Vr(this, Un, 1), this._readyQ.pause(), this._readyQ.drain = () => {
|
|
4381
4381
|
this.emit("start"), this._readyQ.drain = qr;
|
|
4382
4382
|
}, this._closeQ = Vr(this, ta, 1), this._closeQ.pause(), this._closeQ.drain = () => {
|
|
4383
4383
|
this.emit("close"), this._closeQ.drain = qr;
|
|
@@ -4445,7 +4445,7 @@ J.prototype.after = function(t) {
|
|
|
4445
4445
|
return this._loadRegistered();
|
|
4446
4446
|
this._addPlugin(e.bind(this), {}, !0);
|
|
4447
4447
|
function e(r, o, s) {
|
|
4448
|
-
|
|
4448
|
+
Un.call(this, t, s);
|
|
4449
4449
|
}
|
|
4450
4450
|
return this;
|
|
4451
4451
|
};
|
|
@@ -4509,7 +4509,7 @@ function Nn() {
|
|
|
4509
4509
|
}
|
|
4510
4510
|
return Ye("thenify"), (t, e) => this._loadRegistered().then(() => (this[Ht] = !0, t(this._server)), e);
|
|
4511
4511
|
}
|
|
4512
|
-
function
|
|
4512
|
+
function Un(t, e) {
|
|
4513
4513
|
const r = this._server, o = this._error;
|
|
4514
4514
|
let s;
|
|
4515
4515
|
if (this._error = null, t.length === 0)
|