@streamlayer/sdk-web 0.29.3 → 0.29.5
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 +1 -1
- package/lib/es/index.js +391 -388
- package/package.json +6 -6
package/lib/es/index.js
CHANGED
|
@@ -44,10 +44,10 @@ function ni(t, e, r) {
|
|
|
44
44
|
return (e + r) * 3 / 4 - r;
|
|
45
45
|
}
|
|
46
46
|
function ii(t) {
|
|
47
|
-
var e, r = Zr(t), o = r[0], s = r[1], u = new ei(ni(t, o, s)), l = 0, c = s > 0 ? o - 4 : o,
|
|
48
|
-
for (
|
|
49
|
-
e = se[t.charCodeAt(
|
|
50
|
-
return s === 2 && (e = se[t.charCodeAt(
|
|
47
|
+
var e, r = Zr(t), o = r[0], s = r[1], u = new ei(ni(t, o, s)), l = 0, c = s > 0 ? o - 4 : o, d;
|
|
48
|
+
for (d = 0; d < c; d += 4)
|
|
49
|
+
e = se[t.charCodeAt(d)] << 18 | se[t.charCodeAt(d + 1)] << 12 | se[t.charCodeAt(d + 2)] << 6 | se[t.charCodeAt(d + 3)], u[l++] = e >> 16 & 255, u[l++] = e >> 8 & 255, u[l++] = e & 255;
|
|
50
|
+
return s === 2 && (e = se[t.charCodeAt(d)] << 2 | se[t.charCodeAt(d + 1)] >> 4, u[l++] = e & 255), s === 1 && (e = se[t.charCodeAt(d)] << 10 | se[t.charCodeAt(d + 1)] << 4 | se[t.charCodeAt(d + 2)] >> 2, u[l++] = e >> 8 & 255, u[l++] = e & 255), u;
|
|
51
51
|
}
|
|
52
52
|
function oi(t) {
|
|
53
53
|
return be[t >> 18 & 63] + be[t >> 12 & 63] + be[t >> 6 & 63] + be[t & 63];
|
|
@@ -69,7 +69,7 @@ function ai(t) {
|
|
|
69
69
|
var fr = {};
|
|
70
70
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
71
71
|
fr.read = function(t, e, r, o, s) {
|
|
72
|
-
var u, l, c = s * 8 - o - 1,
|
|
72
|
+
var u, l, c = s * 8 - o - 1, d = (1 << c) - 1, b = d >> 1, g = -7, m = r ? s - 1 : 0, E = r ? -1 : 1, F = t[e + m];
|
|
73
73
|
for (m += E, u = F & (1 << -g) - 1, F >>= -g, g += c; g > 0; u = u * 256 + t[e + m], m += E, g -= 8)
|
|
74
74
|
;
|
|
75
75
|
for (l = u & (1 << -g) - 1, u >>= -g, g += o; g > 0; l = l * 256 + t[e + m], m += E, g -= 8)
|
|
@@ -77,15 +77,15 @@ fr.read = function(t, e, r, o, s) {
|
|
|
77
77
|
if (u === 0)
|
|
78
78
|
u = 1 - b;
|
|
79
79
|
else {
|
|
80
|
-
if (u ===
|
|
80
|
+
if (u === d)
|
|
81
81
|
return l ? NaN : (F ? -1 : 1) * (1 / 0);
|
|
82
82
|
l = l + Math.pow(2, o), u = u - b;
|
|
83
83
|
}
|
|
84
84
|
return (F ? -1 : 1) * l * Math.pow(2, u - o);
|
|
85
85
|
};
|
|
86
86
|
fr.write = function(t, e, r, o, s, u) {
|
|
87
|
-
var l, c,
|
|
88
|
-
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (c = isNaN(e) ? 1 : 0, l = g) : (l = Math.floor(Math.log(e) / Math.LN2), e * (
|
|
87
|
+
var l, c, d, b = u * 8 - s - 1, g = (1 << b) - 1, m = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, F = o ? 0 : u - 1, L = o ? 1 : -1, P = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
88
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (c = isNaN(e) ? 1 : 0, l = g) : (l = Math.floor(Math.log(e) / Math.LN2), e * (d = Math.pow(2, -l)) < 1 && (l--, d *= 2), l + m >= 1 ? e += E / d : e += E * Math.pow(2, 1 - m), e * d >= 2 && (l++, d /= 2), l + m >= g ? (c = 0, l = g) : l + m >= 1 ? (c = (e * d - 1) * Math.pow(2, s), l = l + m) : (c = e * Math.pow(2, m - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r + F] = c & 255, F += L, c /= 256, s -= 8)
|
|
89
89
|
;
|
|
90
90
|
for (l = l << s | c, b += s; b > 0; t[r + F] = l & 255, F += L, l /= 256, b -= 8)
|
|
91
91
|
;
|
|
@@ -141,10 +141,10 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
141
141
|
);
|
|
142
142
|
return m(a);
|
|
143
143
|
}
|
|
144
|
-
return
|
|
144
|
+
return d(a, n, i);
|
|
145
145
|
}
|
|
146
146
|
c.poolSize = 8192;
|
|
147
|
-
function
|
|
147
|
+
function d(a, n, i) {
|
|
148
148
|
if (typeof a == "string")
|
|
149
149
|
return E(a, n);
|
|
150
150
|
if (ArrayBuffer.isView(a))
|
|
@@ -172,7 +172,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
172
172
|
);
|
|
173
173
|
}
|
|
174
174
|
c.from = function(a, n, i) {
|
|
175
|
-
return
|
|
175
|
+
return d(a, n, i);
|
|
176
176
|
}, Object.setPrototypeOf(c.prototype, Uint8Array.prototype), Object.setPrototypeOf(c, Uint8Array);
|
|
177
177
|
function b(a) {
|
|
178
178
|
if (typeof a != "number")
|
|
@@ -197,7 +197,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
197
197
|
function E(a, n) {
|
|
198
198
|
if ((typeof n != "string" || n === "") && (n = "utf8"), !c.isEncoding(n))
|
|
199
199
|
throw new TypeError("Unknown encoding: " + n);
|
|
200
|
-
const i =
|
|
200
|
+
const i = j(a, n) | 0;
|
|
201
201
|
let f = l(i);
|
|
202
202
|
const h = f.write(a, n);
|
|
203
203
|
return h !== i && (f = f.slice(0, h)), f;
|
|
@@ -301,7 +301,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
301
301
|
}
|
|
302
302
|
return h;
|
|
303
303
|
};
|
|
304
|
-
function
|
|
304
|
+
function j(a, n) {
|
|
305
305
|
if (c.isBuffer(a))
|
|
306
306
|
return a.length;
|
|
307
307
|
if (ArrayBuffer.isView(a) || ge(a, ArrayBuffer))
|
|
@@ -331,14 +331,14 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
331
331
|
case "hex":
|
|
332
332
|
return i >>> 1;
|
|
333
333
|
case "base64":
|
|
334
|
-
return
|
|
334
|
+
return pt(a).length;
|
|
335
335
|
default:
|
|
336
336
|
if (h)
|
|
337
337
|
return f ? -1 : ot(a).length;
|
|
338
338
|
n = ("" + n).toLowerCase(), h = !0;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
c.byteLength =
|
|
341
|
+
c.byteLength = j;
|
|
342
342
|
function U(a, n, i) {
|
|
343
343
|
let f = !1;
|
|
344
344
|
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))
|
|
@@ -508,7 +508,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
508
508
|
return st(Rt(n), a, i, f);
|
|
509
509
|
}
|
|
510
510
|
function Se(a, n, i, f) {
|
|
511
|
-
return st(
|
|
511
|
+
return st(pt(n), a, i, f);
|
|
512
512
|
}
|
|
513
513
|
function ce(a, n, i, f) {
|
|
514
514
|
return st(S(n, a.length - i), a, i, f);
|
|
@@ -724,7 +724,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
724
724
|
}, c.prototype.readDoubleBE = function(n, i) {
|
|
725
725
|
return n = n >>> 0, i || H(n, 8, this.length), r.read(this, n, !1, 52, 8);
|
|
726
726
|
};
|
|
727
|
-
function
|
|
727
|
+
function p(a, n, i, f, h, y) {
|
|
728
728
|
if (!c.isBuffer(a))
|
|
729
729
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
730
730
|
if (n > h || n < y)
|
|
@@ -735,7 +735,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
735
735
|
c.prototype.writeUintLE = c.prototype.writeUIntLE = function(n, i, f, h) {
|
|
736
736
|
if (n = +n, i = i >>> 0, f = f >>> 0, !h) {
|
|
737
737
|
const R = Math.pow(2, 8 * f) - 1;
|
|
738
|
-
|
|
738
|
+
p(this, n, i, f, R, 0);
|
|
739
739
|
}
|
|
740
740
|
let y = 1, w = 0;
|
|
741
741
|
for (this[i] = n & 255; ++w < f && (y *= 256); )
|
|
@@ -744,22 +744,22 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
744
744
|
}, c.prototype.writeUintBE = c.prototype.writeUIntBE = function(n, i, f, h) {
|
|
745
745
|
if (n = +n, i = i >>> 0, f = f >>> 0, !h) {
|
|
746
746
|
const R = Math.pow(2, 8 * f) - 1;
|
|
747
|
-
|
|
747
|
+
p(this, n, i, f, R, 0);
|
|
748
748
|
}
|
|
749
749
|
let y = f - 1, w = 1;
|
|
750
750
|
for (this[i + y] = n & 255; --y >= 0 && (w *= 256); )
|
|
751
751
|
this[i + y] = n / w & 255;
|
|
752
752
|
return i + f;
|
|
753
753
|
}, c.prototype.writeUint8 = c.prototype.writeUInt8 = function(n, i, f) {
|
|
754
|
-
return n = +n, i = i >>> 0, f ||
|
|
754
|
+
return n = +n, i = i >>> 0, f || p(this, n, i, 1, 255, 0), this[i] = n & 255, i + 1;
|
|
755
755
|
}, c.prototype.writeUint16LE = c.prototype.writeUInt16LE = function(n, i, f) {
|
|
756
|
-
return n = +n, i = i >>> 0, f ||
|
|
756
|
+
return n = +n, i = i >>> 0, f || p(this, n, i, 2, 65535, 0), this[i] = n & 255, this[i + 1] = n >>> 8, i + 2;
|
|
757
757
|
}, c.prototype.writeUint16BE = c.prototype.writeUInt16BE = function(n, i, f) {
|
|
758
|
-
return n = +n, i = i >>> 0, f ||
|
|
758
|
+
return n = +n, i = i >>> 0, f || p(this, n, i, 2, 65535, 0), this[i] = n >>> 8, this[i + 1] = n & 255, i + 2;
|
|
759
759
|
}, c.prototype.writeUint32LE = c.prototype.writeUInt32LE = function(n, i, f) {
|
|
760
|
-
return n = +n, i = i >>> 0, f ||
|
|
760
|
+
return n = +n, i = i >>> 0, f || p(this, n, i, 4, 4294967295, 0), this[i + 3] = n >>> 24, this[i + 2] = n >>> 16, this[i + 1] = n >>> 8, this[i] = n & 255, i + 4;
|
|
761
761
|
}, c.prototype.writeUint32BE = c.prototype.writeUInt32BE = function(n, i, f) {
|
|
762
|
-
return n = +n, i = i >>> 0, f ||
|
|
762
|
+
return n = +n, i = i >>> 0, f || p(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;
|
|
763
763
|
};
|
|
764
764
|
function v(a, n, i, f, h) {
|
|
765
765
|
ye(n, f, h, a, i, 7);
|
|
@@ -782,7 +782,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
782
782
|
}), c.prototype.writeIntLE = function(n, i, f, h) {
|
|
783
783
|
if (n = +n, i = i >>> 0, !h) {
|
|
784
784
|
const W = Math.pow(2, 8 * f - 1);
|
|
785
|
-
|
|
785
|
+
p(this, n, i, f, W - 1, -W);
|
|
786
786
|
}
|
|
787
787
|
let y = 0, w = 1, R = 0;
|
|
788
788
|
for (this[i] = n & 255; ++y < f && (w *= 256); )
|
|
@@ -791,22 +791,22 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
791
791
|
}, c.prototype.writeIntBE = function(n, i, f, h) {
|
|
792
792
|
if (n = +n, i = i >>> 0, !h) {
|
|
793
793
|
const W = Math.pow(2, 8 * f - 1);
|
|
794
|
-
|
|
794
|
+
p(this, n, i, f, W - 1, -W);
|
|
795
795
|
}
|
|
796
796
|
let y = f - 1, w = 1, R = 0;
|
|
797
797
|
for (this[i + y] = n & 255; --y >= 0 && (w *= 256); )
|
|
798
798
|
n < 0 && R === 0 && this[i + y + 1] !== 0 && (R = 1), this[i + y] = (n / w >> 0) - R & 255;
|
|
799
799
|
return i + f;
|
|
800
800
|
}, c.prototype.writeInt8 = function(n, i, f) {
|
|
801
|
-
return n = +n, i = i >>> 0, f ||
|
|
801
|
+
return n = +n, i = i >>> 0, f || p(this, n, i, 1, 127, -128), n < 0 && (n = 255 + n + 1), this[i] = n & 255, i + 1;
|
|
802
802
|
}, c.prototype.writeInt16LE = function(n, i, f) {
|
|
803
|
-
return n = +n, i = i >>> 0, f ||
|
|
803
|
+
return n = +n, i = i >>> 0, f || p(this, n, i, 2, 32767, -32768), this[i] = n & 255, this[i + 1] = n >>> 8, i + 2;
|
|
804
804
|
}, c.prototype.writeInt16BE = function(n, i, f) {
|
|
805
|
-
return n = +n, i = i >>> 0, f ||
|
|
805
|
+
return n = +n, i = i >>> 0, f || p(this, n, i, 2, 32767, -32768), this[i] = n >>> 8, this[i + 1] = n & 255, i + 2;
|
|
806
806
|
}, c.prototype.writeInt32LE = function(n, i, f) {
|
|
807
|
-
return n = +n, i = i >>> 0, f ||
|
|
807
|
+
return n = +n, i = i >>> 0, f || p(this, n, i, 4, 2147483647, -2147483648), this[i] = n & 255, this[i + 1] = n >>> 8, this[i + 2] = n >>> 16, this[i + 3] = n >>> 24, i + 4;
|
|
808
808
|
}, c.prototype.writeInt32BE = function(n, i, f) {
|
|
809
|
-
return n = +n, i = i >>> 0, f ||
|
|
809
|
+
return n = +n, i = i >>> 0, f || p(this, n, i, 4, 2147483647, -2147483648), n < 0 && (n = 4294967295 + n + 1), this[i] = n >>> 24, this[i + 1] = n >>> 16, this[i + 2] = n >>> 8, this[i + 3] = n & 255, i + 4;
|
|
810
810
|
}, c.prototype.writeBigInt64LE = Re(function(n, i = 0) {
|
|
811
811
|
return v(this, n, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
812
812
|
}), c.prototype.writeBigInt64BE = Re(function(n, i = 0) {
|
|
@@ -818,13 +818,13 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
818
818
|
if (i < 0)
|
|
819
819
|
throw new RangeError("Index out of range");
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function D(a, n, i, f, h) {
|
|
822
822
|
return n = +n, i = i >>> 0, h || C(a, n, i, 4), r.write(a, n, i, f, 23, 4), i + 4;
|
|
823
823
|
}
|
|
824
824
|
c.prototype.writeFloatLE = function(n, i, f) {
|
|
825
|
-
return
|
|
825
|
+
return D(this, n, i, !0, f);
|
|
826
826
|
}, c.prototype.writeFloatBE = function(n, i, f) {
|
|
827
|
-
return
|
|
827
|
+
return D(this, n, i, !1, f);
|
|
828
828
|
};
|
|
829
829
|
function V(a, n, i, f, h) {
|
|
830
830
|
return n = +n, i = i >>> 0, h || C(a, n, i, 8), r.write(a, n, i, f, 52, 8), i + 8;
|
|
@@ -957,7 +957,7 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
957
957
|
);
|
|
958
958
|
}
|
|
959
959
|
const Me = /[^+/0-9A-Za-z-_]/g;
|
|
960
|
-
function
|
|
960
|
+
function dt(a) {
|
|
961
961
|
if (a = a.split("=")[0], a = a.trim().replace(Me, ""), a.length < 2)
|
|
962
962
|
return "";
|
|
963
963
|
for (; a.length % 4 !== 0; )
|
|
@@ -1036,8 +1036,8 @@ fr.write = function(t, e, r, o, s, u) {
|
|
|
1036
1036
|
i = a.charCodeAt(w), f = i >> 8, h = i % 256, y.push(h), y.push(f);
|
|
1037
1037
|
return y;
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1040
|
-
return e.toByteArray(
|
|
1039
|
+
function pt(a) {
|
|
1040
|
+
return e.toByteArray(dt(a));
|
|
1041
1041
|
}
|
|
1042
1042
|
function st(a, n, i, f) {
|
|
1043
1043
|
let h;
|
|
@@ -1244,7 +1244,7 @@ class xt {
|
|
|
1244
1244
|
return this.store;
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
|
-
const
|
|
1247
|
+
const di = (t) => {
|
|
1248
1248
|
const e = Object.keys(t);
|
|
1249
1249
|
return Hr(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((o, s) => [o, r[s]])));
|
|
1250
1250
|
};
|
|
@@ -1260,16 +1260,16 @@ var Ie;
|
|
|
1260
1260
|
(function(t) {
|
|
1261
1261
|
t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
|
|
1262
1262
|
})(Ie || (Ie = {}));
|
|
1263
|
-
const
|
|
1263
|
+
const pi = {
|
|
1264
1264
|
[ue.BETTING]: "betting",
|
|
1265
1265
|
[ue.GAMES]: "games",
|
|
1266
1266
|
[ue.PUBLIC_CHAT]: "publicChat",
|
|
1267
1267
|
[ue.TWITTER]: "twitter"
|
|
1268
1268
|
};
|
|
1269
|
-
var
|
|
1269
|
+
var je;
|
|
1270
1270
|
(function(t) {
|
|
1271
1271
|
t.Ready = "ready", t.Suspended = "suspended";
|
|
1272
|
-
})(
|
|
1272
|
+
})(je || (je = {}));
|
|
1273
1273
|
class lr {
|
|
1274
1274
|
status;
|
|
1275
1275
|
source;
|
|
@@ -1278,7 +1278,7 @@ class lr {
|
|
|
1278
1278
|
listeners = /* @__PURE__ */ new Set();
|
|
1279
1279
|
settingsKey;
|
|
1280
1280
|
constructor({ settings: e, ...r }, o) {
|
|
1281
|
-
this.settingsKey =
|
|
1281
|
+
this.settingsKey = pi[r.type], this.status = Ct(je.Suspended), this.config = new ut($e(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new ut($e(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new ut($e({}), `feature:settings:${this.settingsKey}`), this.source = o;
|
|
1282
1282
|
}
|
|
1283
1283
|
get featureConfig() {
|
|
1284
1284
|
return this.config.getStore();
|
|
@@ -1290,10 +1290,10 @@ class lr {
|
|
|
1290
1290
|
this.listeners.add(e);
|
|
1291
1291
|
}
|
|
1292
1292
|
enable = () => {
|
|
1293
|
-
this.status.set(
|
|
1293
|
+
this.status.set(je.Ready);
|
|
1294
1294
|
};
|
|
1295
1295
|
disable = () => {
|
|
1296
|
-
this.status.set(
|
|
1296
|
+
this.status.set(je.Suspended);
|
|
1297
1297
|
};
|
|
1298
1298
|
setFeatureConfig = ({ settings: e, ...r }) => {
|
|
1299
1299
|
let o;
|
|
@@ -1320,7 +1320,7 @@ class lr {
|
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
|
-
class
|
|
1323
|
+
class pe extends xt {
|
|
1324
1324
|
getValue = () => this.getStore().get();
|
|
1325
1325
|
getValues() {
|
|
1326
1326
|
throw new Error("not implemented");
|
|
@@ -1336,7 +1336,7 @@ class de extends xt {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
1338
|
const ne = (t) => Ct(t);
|
|
1339
|
-
class
|
|
1339
|
+
class de extends xt {
|
|
1340
1340
|
atomStore;
|
|
1341
1341
|
constructor(e, r, o) {
|
|
1342
1342
|
super(e, `api:${r}`), this.atomStore = Ct(), o && e.subscribe((s) => {
|
|
@@ -1434,7 +1434,7 @@ class mi {
|
|
|
1434
1434
|
ts: /* @__PURE__ */ new Date(),
|
|
1435
1435
|
log: []
|
|
1436
1436
|
};
|
|
1437
|
-
this.state = new ut($e(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
|
|
1437
|
+
this.state = new ut($e(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 pe(ne(null), `subscription:${s.name}:store`)), "subscribe" in o && typeof o.subscribe == "function" && o.subscribe(() => {
|
|
1438
1438
|
this.reconnect();
|
|
1439
1439
|
}), this.updateState(Ae.Ready);
|
|
1440
1440
|
}
|
|
@@ -1692,10 +1692,10 @@ var Fe;
|
|
|
1692
1692
|
t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
|
|
1693
1693
|
})(Fe || (Fe = {}));
|
|
1694
1694
|
const _i = (t) => {
|
|
1695
|
-
const e = new Ke(), r = new
|
|
1695
|
+
const e = new Ke(), r = new pe(ne(e.getExternalToken()), "userKey"), o = new pe(ne(e.getToken()), "userToken"), s = new de(Si(o.getStore(), t), "user", ({ data: l, error: c, loading: d }, b) => {
|
|
1696
1696
|
if (!c)
|
|
1697
|
-
return l?.data?.id ? l.data.id :
|
|
1698
|
-
}), u = new
|
|
1697
|
+
return l?.data?.id ? l.data.id : d === !1 ? void 0 : b;
|
|
1698
|
+
}), u = new de(Ei(o.getStore(), t), "userSettings");
|
|
1699
1699
|
return {
|
|
1700
1700
|
userKey: r,
|
|
1701
1701
|
userToken: o,
|
|
@@ -1703,7 +1703,7 @@ const _i = (t) => {
|
|
|
1703
1703
|
userSettings: u
|
|
1704
1704
|
};
|
|
1705
1705
|
}, Ci = (t) => {
|
|
1706
|
-
const e = new
|
|
1706
|
+
const e = new pe(ne(void 0), "providerStreamId"), r = new de(bi(e.getStore(), t), "slStreamId", (s) => s?.data), o = new de(vi(r.getAtomStore(), t), "streamSettings");
|
|
1707
1707
|
return r.getAtomStore().listen((s) => {
|
|
1708
1708
|
(s === "" || s === void 0) && o.getStore().mutate(void 0);
|
|
1709
1709
|
}), {
|
|
@@ -1712,7 +1712,7 @@ const _i = (t) => {
|
|
|
1712
1712
|
streamSettings: o
|
|
1713
1713
|
};
|
|
1714
1714
|
}, Oi = (t) => {
|
|
1715
|
-
const e = new
|
|
1715
|
+
const e = new pe(ne(void 0), "enabled"), r = new pe(ne(Fe.DISABLED), "status"), o = new de(Ii(e.getStore(), t), "organizationSettings", (c) => c?.data?.id), s = new de(Fi(o.getAtomStore(), t), "organizationAdvertising"), u = _i(t), l = Ci(t);
|
|
1716
1716
|
return {
|
|
1717
1717
|
enabled: e,
|
|
1718
1718
|
status: r,
|
|
@@ -1730,7 +1730,7 @@ const _i = (t) => {
|
|
|
1730
1730
|
class xi extends xt {
|
|
1731
1731
|
stores;
|
|
1732
1732
|
constructor(e) {
|
|
1733
|
-
const r = Oi(e), o =
|
|
1733
|
+
const r = Oi(e), o = di(r);
|
|
1734
1734
|
super(o, "core"), this.stores = r;
|
|
1735
1735
|
}
|
|
1736
1736
|
getValue() {
|
|
@@ -1877,9 +1877,9 @@ const at = new Ke(), ki = (t, e, r) => {
|
|
|
1877
1877
|
params: [t, e]
|
|
1878
1878
|
});
|
|
1879
1879
|
return r.nanoquery.createFetcherStore(s, {
|
|
1880
|
-
fetcher: async (u, l, c,
|
|
1880
|
+
fetcher: async (u, l, c, d) => (await o.summary({
|
|
1881
1881
|
eventId: c,
|
|
1882
|
-
userId:
|
|
1882
|
+
userId: d
|
|
1883
1883
|
})).data?.attributes
|
|
1884
1884
|
});
|
|
1885
1885
|
}, Ui = (t) => {
|
|
@@ -1892,7 +1892,7 @@ const at = new Ke(), ki = (t, e, r) => {
|
|
|
1892
1892
|
eventId: l
|
|
1893
1893
|
})).data?.attributes
|
|
1894
1894
|
});
|
|
1895
|
-
},
|
|
1895
|
+
}, ji = (t, e) => {
|
|
1896
1896
|
const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "syncQuestion", params: [t] });
|
|
1897
1897
|
return e.nanoquery.createFetcherStore(o, {
|
|
1898
1898
|
fetcher: async (s, u, l) => l ? (await r.syncQuestion({
|
|
@@ -1901,7 +1901,7 @@ const at = new Ke(), ki = (t, e, r) => {
|
|
|
1901
1901
|
}
|
|
1902
1902
|
})).data?.attributes : void 0
|
|
1903
1903
|
});
|
|
1904
|
-
},
|
|
1904
|
+
}, Di = (t, e) => {
|
|
1905
1905
|
const { client: r } = e.createCallbackClient(ve), o = Ct({ eventId: t.get() || "", feedId: "" });
|
|
1906
1906
|
return t.subscribe((u = "") => {
|
|
1907
1907
|
o.set({ eventId: u, feedId: "" });
|
|
@@ -1929,50 +1929,50 @@ const at = new Ke(), ki = (t, e, r) => {
|
|
|
1929
1929
|
return e.nanoquery.createFetcherStore(o, {
|
|
1930
1930
|
fetcher: async (s, u, l) => l ? (await r.insightHistory({
|
|
1931
1931
|
eventId: l
|
|
1932
|
-
})).data?.map(({ attributes:
|
|
1932
|
+
})).data?.map(({ attributes: d }) => d) : void 0
|
|
1933
1933
|
});
|
|
1934
1934
|
};
|
|
1935
|
-
var
|
|
1935
|
+
var dr = { exports: {} };
|
|
1936
1936
|
const Qi = Object.getPrototypeOf({});
|
|
1937
|
-
function
|
|
1937
|
+
function pr(t) {
|
|
1938
1938
|
function e(I) {
|
|
1939
1939
|
return I !== "constructor" && I !== "prototype" && I !== "__proto__";
|
|
1940
1940
|
}
|
|
1941
1941
|
function r(I) {
|
|
1942
1942
|
let _ = 0;
|
|
1943
|
-
const
|
|
1944
|
-
for (_ = 0; _ <
|
|
1943
|
+
const j = I.length, U = new Array(j);
|
|
1944
|
+
for (_ = 0; _ < j; ++_)
|
|
1945
1945
|
U[_] = F(I[_]);
|
|
1946
1946
|
return U;
|
|
1947
1947
|
}
|
|
1948
1948
|
function o(I) {
|
|
1949
1949
|
const _ = {};
|
|
1950
|
-
if (
|
|
1951
|
-
return
|
|
1952
|
-
const
|
|
1950
|
+
if (d && Object.getPrototypeOf(I) !== Qi)
|
|
1951
|
+
return d(I);
|
|
1952
|
+
const j = c(I);
|
|
1953
1953
|
let U, T, x;
|
|
1954
|
-
for (U = 0, T =
|
|
1955
|
-
e(x =
|
|
1954
|
+
for (U = 0, T = j.length; U < T; ++U)
|
|
1955
|
+
e(x = j[U]) && (_[x] = F(I[x]));
|
|
1956
1956
|
return _;
|
|
1957
1957
|
}
|
|
1958
1958
|
function s(I, _) {
|
|
1959
|
-
const
|
|
1959
|
+
const j = I.length, U = _.length;
|
|
1960
1960
|
let T = 0;
|
|
1961
|
-
const x = new Array(
|
|
1962
|
-
for (T = 0; T <
|
|
1961
|
+
const x = new Array(j + U);
|
|
1962
|
+
for (T = 0; T < j; ++T)
|
|
1963
1963
|
x[T] = F(I[T]);
|
|
1964
1964
|
for (T = 0; T < U; ++T)
|
|
1965
|
-
x[T +
|
|
1965
|
+
x[T + j] = F(_[T]);
|
|
1966
1966
|
return x;
|
|
1967
1967
|
}
|
|
1968
1968
|
const u = Object.prototype.propertyIsEnumerable;
|
|
1969
1969
|
function l(I) {
|
|
1970
|
-
const _ = Object.keys(I),
|
|
1971
|
-
for (let U = 0, T =
|
|
1972
|
-
u.call(I,
|
|
1970
|
+
const _ = Object.keys(I), j = Object.getOwnPropertySymbols(I);
|
|
1971
|
+
for (let U = 0, T = j.length; U < T; ++U)
|
|
1972
|
+
u.call(I, j[U]) && _.push(j[U]);
|
|
1973
1973
|
return _;
|
|
1974
1974
|
}
|
|
1975
|
-
const c = t && t.symbols ? l : Object.keys,
|
|
1975
|
+
const c = t && t.symbols ? l : Object.keys, d = typeof t?.cloneProtoObject == "function" ? t.cloneProtoObject : void 0;
|
|
1976
1976
|
function b(I) {
|
|
1977
1977
|
return typeof I == "object" && I !== null && !(I instanceof RegExp) && !(I instanceof Date);
|
|
1978
1978
|
}
|
|
@@ -1984,18 +1984,18 @@ function dr(t) {
|
|
|
1984
1984
|
return b(I) ? Array.isArray(I) ? r(I) : o(I) : I;
|
|
1985
1985
|
}
|
|
1986
1986
|
function L(I, _) {
|
|
1987
|
-
const
|
|
1987
|
+
const j = {}, U = c(I), T = c(_);
|
|
1988
1988
|
let x, k, G;
|
|
1989
1989
|
for (x = 0, k = U.length; x < k; ++x)
|
|
1990
|
-
e(G = U[x]) && T.indexOf(G) === -1 && (
|
|
1990
|
+
e(G = U[x]) && T.indexOf(G) === -1 && (j[G] = F(I[G]));
|
|
1991
1991
|
for (x = 0, k = T.length; x < k; ++x)
|
|
1992
|
-
e(G = T[x]) && (G in I && (U.indexOf(G) !== -1 && (
|
|
1993
|
-
(
|
|
1994
|
-
return
|
|
1992
|
+
e(G = T[x]) && (G in I && (U.indexOf(G) !== -1 && (j[G] = P(I[G], _[G])), !0) || // eslint-disable-line no-mixed-operators
|
|
1993
|
+
(j[G] = F(_[G])));
|
|
1994
|
+
return j;
|
|
1995
1995
|
}
|
|
1996
1996
|
function P(I, _) {
|
|
1997
|
-
const
|
|
1998
|
-
return g(_) ? _ : m(I) ? F(_) :
|
|
1997
|
+
const j = Array.isArray(_), U = Array.isArray(I);
|
|
1998
|
+
return g(_) ? _ : m(I) ? F(_) : j && U ? E(I, _) : j !== U ? F(_) : L(I, _);
|
|
1999
1999
|
}
|
|
2000
2000
|
function K() {
|
|
2001
2001
|
switch (arguments.length) {
|
|
@@ -2007,15 +2007,15 @@ function dr(t) {
|
|
|
2007
2007
|
return P(arguments[0], arguments[1]);
|
|
2008
2008
|
}
|
|
2009
2009
|
let I;
|
|
2010
|
-
for (let _ = 0,
|
|
2010
|
+
for (let _ = 0, j = arguments.length; _ < j; ++_)
|
|
2011
2011
|
I = P(I, arguments[_]);
|
|
2012
2012
|
return I;
|
|
2013
2013
|
}
|
|
2014
2014
|
return t && t.all ? K : P;
|
|
2015
2015
|
}
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
var Gi =
|
|
2016
|
+
dr.exports = pr;
|
|
2017
|
+
dr.exports.default = pr;
|
|
2018
|
+
var Gi = dr.exports.deepmerge = pr;
|
|
2019
2019
|
const zi = (t) => (e, r) => {
|
|
2020
2020
|
let o = 0;
|
|
2021
2021
|
const s = e.length, u = r.length, l = Math.max(s, u), c = new Array(l);
|
|
@@ -2024,8 +2024,11 @@ const zi = (t) => (e, r) => {
|
|
|
2024
2024
|
return c;
|
|
2025
2025
|
}, Ki = Gi({ mergeArray: zi }), Hi = (t, e, r) => {
|
|
2026
2026
|
const o = Hr([e, r], (l, c) => {
|
|
2027
|
-
if (l
|
|
2028
|
-
|
|
2027
|
+
if (l) {
|
|
2028
|
+
if (c.data)
|
|
2029
|
+
return c.data.find((d) => d.id === l);
|
|
2030
|
+
console.error("Feed list is not loaded yet. Issue with the opened question.");
|
|
2031
|
+
}
|
|
2029
2032
|
}), s = $e({
|
|
2030
2033
|
data: void 0,
|
|
2031
2034
|
loading: void 0,
|
|
@@ -2042,8 +2045,8 @@ const zi = (t) => (e, r) => {
|
|
|
2042
2045
|
}), { $store: o, $extendedStore: s, updateExtendedQuestion: (l) => {
|
|
2043
2046
|
const c = s.get().data;
|
|
2044
2047
|
if (c)
|
|
2045
|
-
for (const
|
|
2046
|
-
|
|
2048
|
+
for (const d of l?.answers || [])
|
|
2049
|
+
d.youVoted !== !0 && delete d.youVoted;
|
|
2047
2050
|
s.set({ data: Ki(c, l) });
|
|
2048
2051
|
} };
|
|
2049
2052
|
}, an = (t) => (t.gamification || (t.gamification = new Wi(t)), t.gamification);
|
|
@@ -2074,13 +2077,13 @@ class Wi {
|
|
|
2074
2077
|
constructor(e) {
|
|
2075
2078
|
if (e.gamification)
|
|
2076
2079
|
throw new Error("GamificationBackground Singleton error");
|
|
2077
|
-
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
|
|
2080
|
+
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 pe(ne(void 0), "moderationId").getStore(), this.openedQuestionId = new pe(ne(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new de($i(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new de(Mi(this.slStreamId, e.transport), "gamification:feedList"), this.activeQuestionId = new de(ji(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = Hi(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
|
|
2078
2081
|
this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = Vi(r, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (o) => {
|
|
2079
2082
|
window.requestAnimationFrame(() => {
|
|
2080
2083
|
this.openedQuestion.updateExtendedQuestion(o.data?.attributes?.question);
|
|
2081
2084
|
});
|
|
2082
2085
|
}), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
|
|
2083
|
-
}), this.feedSubscription =
|
|
2086
|
+
}), this.feedSubscription = Di(this.slStreamId, e.transport), this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
|
|
2084
2087
|
window.requestAnimationFrame(() => {
|
|
2085
2088
|
const o = this.activeQuestionId.getStore();
|
|
2086
2089
|
o && o.mutate(r.data?.attributes);
|
|
@@ -2125,7 +2128,7 @@ class Ji {
|
|
|
2125
2128
|
options;
|
|
2126
2129
|
logger;
|
|
2127
2130
|
constructor(e) {
|
|
2128
|
-
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
|
|
2131
|
+
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 pe(ne(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = this.notifications.getStore();
|
|
2129
2132
|
}
|
|
2130
2133
|
addToQueue = (e) => {
|
|
2131
2134
|
if (this.store.has(e.id)) {
|
|
@@ -2311,6 +2314,7 @@ const so = (t, e, r, o) => {
|
|
|
2311
2314
|
close: () => {
|
|
2312
2315
|
o.markAsViewed(g);
|
|
2313
2316
|
},
|
|
2317
|
+
delay: 1e3,
|
|
2314
2318
|
autoHideDuration: 1e6,
|
|
2315
2319
|
data: {
|
|
2316
2320
|
questionType: Te.UNSET,
|
|
@@ -2346,11 +2350,15 @@ const so = (t, e, r, o) => {
|
|
|
2346
2350
|
b.data && c();
|
|
2347
2351
|
}), { $store: u, submitInplay: async () => {
|
|
2348
2352
|
const b = e.slStreamId.get();
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2353
|
+
if (b) {
|
|
2354
|
+
await to(r, b), u.set(re.Completed), s.saveOnboardingStatus({
|
|
2355
|
+
organizationId: e.organizationId.get() || "",
|
|
2356
|
+
userId: e.userId.get() || "",
|
|
2357
|
+
eventId: b
|
|
2358
|
+
}, re.Completed);
|
|
2359
|
+
const g = e.getCurrentSessionId({ prefix: "onboarding" });
|
|
2360
|
+
o.close(g);
|
|
2361
|
+
}
|
|
2354
2362
|
} };
|
|
2355
2363
|
}, ao = /* @__PURE__ */ new Set([Te.POLL, Te.PREDICTION, Te.TRIVIA]);
|
|
2356
2364
|
class uo extends lr {
|
|
@@ -2380,8 +2388,8 @@ class uo extends lr {
|
|
|
2380
2388
|
/** Browser cache */
|
|
2381
2389
|
storage;
|
|
2382
2390
|
constructor(e, r, o) {
|
|
2383
|
-
super(e, r), this.background = an(o), this.storage = new un(), this.userSummary = new
|
|
2384
|
-
s ===
|
|
2391
|
+
super(e, r), this.background = an(o), this.storage = new un(), this.userSummary = new de(Ni(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.currentUserId = this.background.userId, this.openedUser = ne(void 0), this.leaderboardId = new pe(ne(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = so(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.deepLink = oo(this.transport, this.background.slStreamId, this.background.userId), this.leaderboardList = no(this.transport, this.background.slStreamId), this.status.subscribe((s) => {
|
|
2392
|
+
s === je.Ready ? this.connect(o.transport) : this.disconnect();
|
|
2385
2393
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2386
2394
|
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 === We.ACTIVE) {
|
|
2387
2395
|
if (ao.has(s.data.question.type))
|
|
@@ -2429,14 +2437,8 @@ class uo extends lr {
|
|
|
2429
2437
|
title: s.data.question.notification.title,
|
|
2430
2438
|
body: s.data.question.notification.body,
|
|
2431
2439
|
image: s.data.question.notification.image,
|
|
2432
|
-
account:
|
|
2433
|
-
|
|
2434
|
-
image: "",
|
|
2435
|
-
name: u?.tweetMeta?.account || "",
|
|
2436
|
-
// ToDo: add later
|
|
2437
|
-
userName: "",
|
|
2438
|
-
verified: !!u?.tweetMeta?.accountVerified
|
|
2439
|
-
}
|
|
2440
|
+
account: u?.tweetMeta?.account || "",
|
|
2441
|
+
accountVerified: !!u?.tweetMeta?.accountVerified
|
|
2440
2442
|
};
|
|
2441
2443
|
this.notifications.add({
|
|
2442
2444
|
type: Le.QUESTION,
|
|
@@ -2463,7 +2465,7 @@ class uo extends lr {
|
|
|
2463
2465
|
if (s === We.RESOLVED && u === Te.PREDICTION) {
|
|
2464
2466
|
const c = this.background.getCurrentSessionId({
|
|
2465
2467
|
prefix: `notification-id:${l}`
|
|
2466
|
-
}),
|
|
2468
|
+
}), d = await sn(l, e), b = d?.answers.find(({ correct: m }) => m), g = d?.answers.find(({ youVoted: m }) => m);
|
|
2467
2469
|
if (!g)
|
|
2468
2470
|
return;
|
|
2469
2471
|
this.notifications.add({
|
|
@@ -2482,7 +2484,8 @@ class uo extends lr {
|
|
|
2482
2484
|
},
|
|
2483
2485
|
correctAnswerTitle: b?.text,
|
|
2484
2486
|
correct: b?.youVoted,
|
|
2485
|
-
predictionResult: s === We.RESOLVED
|
|
2487
|
+
predictionResult: s === We.RESOLVED,
|
|
2488
|
+
questionTitle: d?.subject
|
|
2486
2489
|
}
|
|
2487
2490
|
}
|
|
2488
2491
|
}), this.userSummary.invalidate();
|
|
@@ -2523,7 +2526,7 @@ class co extends lr {
|
|
|
2523
2526
|
background;
|
|
2524
2527
|
constructor(e, r, o) {
|
|
2525
2528
|
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) => {
|
|
2526
|
-
s ===
|
|
2529
|
+
s === je.Ready ? this.connect() : this.disconnect();
|
|
2527
2530
|
}), this.background.activeQuestionId.listen((s) => {
|
|
2528
2531
|
s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== Kr.ON && s.data.question.type === Te.FACTOID && s.data.question.status === We.ACTIVE && this.notifications.add({
|
|
2529
2532
|
type: Le.QUESTION,
|
|
@@ -2541,7 +2544,7 @@ class co extends lr {
|
|
|
2541
2544
|
}), this.openedInsight = this.background.openedQuestion;
|
|
2542
2545
|
}
|
|
2543
2546
|
connect = () => {
|
|
2544
|
-
this.insights ? this.insights.invalidate() : this.insights = new
|
|
2547
|
+
this.insights ? this.insights.invalidate() : this.insights = new de(qi(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
|
|
2545
2548
|
window.requestAnimationFrame(() => {
|
|
2546
2549
|
this.insights?.invalidate();
|
|
2547
2550
|
});
|
|
@@ -2560,7 +2563,7 @@ class fo extends lr {
|
|
|
2560
2563
|
}
|
|
2561
2564
|
}
|
|
2562
2565
|
const lo = (t, e, r) => t.type === ue.GAMES ? new uo(t, e, r) : t.type === ue.HIGHLIGHTS ? new co(t, e, r) : new fo(t, e), ho = (t, e, r) => {
|
|
2563
|
-
t.features = /* @__PURE__ */ new Map(), t.activeFeature = new
|
|
2566
|
+
t.features = /* @__PURE__ */ new Map(), t.activeFeature = new pe(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) => {
|
|
2564
2567
|
t.activeFeature.setValue(o);
|
|
2565
2568
|
}, t.sdk.closeFeature = () => {
|
|
2566
2569
|
t.activeFeature.setValue(ue.UNSET);
|
|
@@ -2634,7 +2637,7 @@ var yo = po, go = yo;
|
|
|
2634
2637
|
function cn(t, e, r) {
|
|
2635
2638
|
if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
|
|
2636
2639
|
throw new Error("fastqueue concurrency must be greater than 1");
|
|
2637
|
-
var o = go(mo), s = null, u = null, l = 0, c = null,
|
|
2640
|
+
var o = go(mo), s = null, u = null, l = 0, c = null, d = {
|
|
2638
2641
|
push: P,
|
|
2639
2642
|
drain: ae,
|
|
2640
2643
|
saturated: ae,
|
|
@@ -2649,15 +2652,15 @@ function cn(t, e, r) {
|
|
|
2649
2652
|
unshift: K,
|
|
2650
2653
|
empty: ae,
|
|
2651
2654
|
kill: _,
|
|
2652
|
-
killAndDrain:
|
|
2655
|
+
killAndDrain: j,
|
|
2653
2656
|
error: U
|
|
2654
2657
|
};
|
|
2655
|
-
return
|
|
2658
|
+
return d;
|
|
2656
2659
|
function b() {
|
|
2657
2660
|
return l;
|
|
2658
2661
|
}
|
|
2659
2662
|
function g() {
|
|
2660
|
-
|
|
2663
|
+
d.paused = !0;
|
|
2661
2664
|
}
|
|
2662
2665
|
function m() {
|
|
2663
2666
|
for (var T = s, x = 0; T; )
|
|
@@ -2670,33 +2673,33 @@ function cn(t, e, r) {
|
|
|
2670
2673
|
return x;
|
|
2671
2674
|
}
|
|
2672
2675
|
function F() {
|
|
2673
|
-
if (
|
|
2674
|
-
|
|
2675
|
-
for (var T = 0; T <
|
|
2676
|
+
if (d.paused) {
|
|
2677
|
+
d.paused = !1;
|
|
2678
|
+
for (var T = 0; T < d.concurrency; T++)
|
|
2676
2679
|
l++, I();
|
|
2677
2680
|
}
|
|
2678
2681
|
}
|
|
2679
2682
|
function L() {
|
|
2680
|
-
return l === 0 &&
|
|
2683
|
+
return l === 0 && d.length() === 0;
|
|
2681
2684
|
}
|
|
2682
2685
|
function P(T, x) {
|
|
2683
2686
|
var k = o.get();
|
|
2684
|
-
k.context = t, k.release = I, k.value = T, k.callback = x || ae, k.errorHandler = c, l ===
|
|
2687
|
+
k.context = t, k.release = I, k.value = T, k.callback = x || ae, k.errorHandler = c, l === d.concurrency || d.paused ? u ? (u.next = k, u = k) : (s = k, u = k, d.saturated()) : (l++, e.call(t, k.value, k.worked));
|
|
2685
2688
|
}
|
|
2686
2689
|
function K(T, x) {
|
|
2687
2690
|
var k = o.get();
|
|
2688
|
-
k.context = t, k.release = I, k.value = T, k.callback = x || ae, l ===
|
|
2691
|
+
k.context = t, k.release = I, k.value = T, k.callback = x || ae, l === d.concurrency || d.paused ? s ? (k.next = s, s = k) : (s = k, u = k, d.saturated()) : (l++, e.call(t, k.value, k.worked));
|
|
2689
2692
|
}
|
|
2690
2693
|
function I(T) {
|
|
2691
2694
|
T && o.release(T);
|
|
2692
2695
|
var x = s;
|
|
2693
|
-
x ?
|
|
2696
|
+
x ? d.paused ? l-- : (u === s && (u = null), s = x.next, x.next = null, e.call(t, x.value, x.worked), u === null && d.empty()) : --l === 0 && d.drain();
|
|
2694
2697
|
}
|
|
2695
2698
|
function _() {
|
|
2696
|
-
s = null, u = null,
|
|
2699
|
+
s = null, u = null, d.drain = ae;
|
|
2697
2700
|
}
|
|
2698
|
-
function
|
|
2699
|
-
s = null, u = null,
|
|
2701
|
+
function j() {
|
|
2702
|
+
s = null, u = null, d.drain(), d.drain = ae;
|
|
2700
2703
|
}
|
|
2701
2704
|
function U(T) {
|
|
2702
2705
|
c = T;
|
|
@@ -2720,7 +2723,7 @@ function wo(t, e, r) {
|
|
|
2720
2723
|
}, m);
|
|
2721
2724
|
}
|
|
2722
2725
|
var s = cn(t, o, r), u = s.push, l = s.unshift;
|
|
2723
|
-
return s.push = c, s.unshift =
|
|
2726
|
+
return s.push = c, s.unshift = d, s.drained = b, s;
|
|
2724
2727
|
function c(g) {
|
|
2725
2728
|
var m = new Promise(function(E, F) {
|
|
2726
2729
|
u(g, function(L, P) {
|
|
@@ -2733,7 +2736,7 @@ function wo(t, e, r) {
|
|
|
2733
2736
|
});
|
|
2734
2737
|
return m.catch(ae), m;
|
|
2735
2738
|
}
|
|
2736
|
-
function
|
|
2739
|
+
function d(g) {
|
|
2737
2740
|
var m = new Promise(function(E, F) {
|
|
2738
2741
|
l(g, function(L, P) {
|
|
2739
2742
|
if (L) {
|
|
@@ -2828,17 +2831,17 @@ q.prototype.emit = function(e) {
|
|
|
2828
2831
|
var c = new Error("Unhandled error." + (l ? " (" + l.message + ")" : ""));
|
|
2829
2832
|
throw c.context = l, c;
|
|
2830
2833
|
}
|
|
2831
|
-
var
|
|
2832
|
-
if (
|
|
2834
|
+
var d = u[e];
|
|
2835
|
+
if (d === void 0)
|
|
2833
2836
|
return !1;
|
|
2834
|
-
if (typeof
|
|
2835
|
-
Tr(
|
|
2837
|
+
if (typeof d == "function")
|
|
2838
|
+
Tr(d, this, r);
|
|
2836
2839
|
else
|
|
2837
|
-
for (var b =
|
|
2840
|
+
for (var b = d.length, g = mn(d, b), o = 0; o < b; ++o)
|
|
2838
2841
|
Tr(g[o], this, r);
|
|
2839
2842
|
return !0;
|
|
2840
2843
|
};
|
|
2841
|
-
function
|
|
2844
|
+
function dn(t, e, r, o) {
|
|
2842
2845
|
var s, u, l;
|
|
2843
2846
|
if (Bt(r), u = t._events, u === void 0 ? (u = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (u.newListener !== void 0 && (t.emit(
|
|
2844
2847
|
"newListener",
|
|
@@ -2854,25 +2857,25 @@ function pn(t, e, r, o) {
|
|
|
2854
2857
|
return t;
|
|
2855
2858
|
}
|
|
2856
2859
|
q.prototype.addListener = function(e, r) {
|
|
2857
|
-
return
|
|
2860
|
+
return dn(this, e, r, !1);
|
|
2858
2861
|
};
|
|
2859
2862
|
q.prototype.on = q.prototype.addListener;
|
|
2860
2863
|
q.prototype.prependListener = function(e, r) {
|
|
2861
|
-
return
|
|
2864
|
+
return dn(this, e, r, !0);
|
|
2862
2865
|
};
|
|
2863
2866
|
function vo() {
|
|
2864
2867
|
if (!this.fired)
|
|
2865
2868
|
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);
|
|
2866
2869
|
}
|
|
2867
|
-
function
|
|
2870
|
+
function pn(t, e, r) {
|
|
2868
2871
|
var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = vo.bind(o);
|
|
2869
2872
|
return s.listener = r, o.wrapFn = s, s;
|
|
2870
2873
|
}
|
|
2871
2874
|
q.prototype.once = function(e, r) {
|
|
2872
|
-
return Bt(r), this.on(e,
|
|
2875
|
+
return Bt(r), this.on(e, pn(this, e, r)), this;
|
|
2873
2876
|
};
|
|
2874
2877
|
q.prototype.prependOnceListener = function(e, r) {
|
|
2875
|
-
return Bt(r), this.prependListener(e,
|
|
2878
|
+
return Bt(r), this.prependListener(e, pn(this, e, r)), this;
|
|
2876
2879
|
};
|
|
2877
2880
|
q.prototype.removeListener = function(e, r) {
|
|
2878
2881
|
var o, s, u, l, c;
|
|
@@ -3045,8 +3048,8 @@ var bn = mr.exports, kt = {}, vn = {}, Sn = function() {
|
|
|
3045
3048
|
e,
|
|
3046
3049
|
xr(o, arguments)
|
|
3047
3050
|
);
|
|
3048
|
-
}, l = ko(0, r.length - o.length), c = [],
|
|
3049
|
-
c[
|
|
3051
|
+
}, l = ko(0, r.length - o.length), c = [], d = 0; d < l; d++)
|
|
3052
|
+
c[d] = "$" + d;
|
|
3050
3053
|
if (s = Function("binder", "return function (" + Lo(c, ",") + "){ return binder.apply(this,arguments); }")(u), r.prototype) {
|
|
3051
3054
|
var b = function() {
|
|
3052
3055
|
};
|
|
@@ -3060,26 +3063,26 @@ var bn = mr.exports, kt = {}, vn = {}, Sn = function() {
|
|
|
3060
3063
|
return En('"use strict"; return (' + t + ").constructor;")();
|
|
3061
3064
|
} catch {
|
|
3062
3065
|
}
|
|
3063
|
-
},
|
|
3064
|
-
if (
|
|
3066
|
+
}, De = Object.getOwnPropertyDescriptor;
|
|
3067
|
+
if (De)
|
|
3065
3068
|
try {
|
|
3066
|
-
|
|
3069
|
+
De({}, "");
|
|
3067
3070
|
} catch {
|
|
3068
|
-
|
|
3071
|
+
De = null;
|
|
3069
3072
|
}
|
|
3070
|
-
var
|
|
3073
|
+
var jt = function() {
|
|
3071
3074
|
throw new Xe();
|
|
3072
|
-
},
|
|
3075
|
+
}, jo = De ? function() {
|
|
3073
3076
|
try {
|
|
3074
|
-
return arguments.callee,
|
|
3077
|
+
return arguments.callee, jt;
|
|
3075
3078
|
} catch {
|
|
3076
3079
|
try {
|
|
3077
|
-
return
|
|
3080
|
+
return De(arguments, "callee").get;
|
|
3078
3081
|
} catch {
|
|
3079
|
-
return
|
|
3082
|
+
return jt;
|
|
3080
3083
|
}
|
|
3081
3084
|
}
|
|
3082
|
-
}() :
|
|
3085
|
+
}() : jt, Qe = _o(), Do = Oo(), X = Object.getPrototypeOf || (Do ? function(t) {
|
|
3083
3086
|
return t.__proto__;
|
|
3084
3087
|
} : null), ze = {}, Vo = typeof Uint8Array > "u" || !X ? $ : X(Uint8Array), Ve = {
|
|
3085
3088
|
"%AggregateError%": typeof AggregateError > "u" ? $ : AggregateError,
|
|
@@ -3138,7 +3141,7 @@ var Dt = function() {
|
|
|
3138
3141
|
"%StringIteratorPrototype%": Qe && X ? X(""[Symbol.iterator]()) : $,
|
|
3139
3142
|
"%Symbol%": Qe ? Symbol : $,
|
|
3140
3143
|
"%SyntaxError%": Ze,
|
|
3141
|
-
"%ThrowTypeError%":
|
|
3144
|
+
"%ThrowTypeError%": jo,
|
|
3142
3145
|
"%TypedArray%": Vo,
|
|
3143
3146
|
"%TypeError%": Xe,
|
|
3144
3147
|
"%Uint8Array%": typeof Uint8Array > "u" ? $ : Uint8Array,
|
|
@@ -3232,8 +3235,8 @@ var qo = function t(e) {
|
|
|
3232
3235
|
if (o === "%" && r !== "%")
|
|
3233
3236
|
throw new Ze("invalid intrinsic syntax, expected opening `%`");
|
|
3234
3237
|
var s = [];
|
|
3235
|
-
return Pr(e, Ko, function(u, l, c,
|
|
3236
|
-
s[s.length] = c ? Pr(
|
|
3238
|
+
return Pr(e, Ko, function(u, l, c, d) {
|
|
3239
|
+
s[s.length] = c ? Pr(d, Ho, "$1") : l || u;
|
|
3237
3240
|
}), s;
|
|
3238
3241
|
}, Jo = function(e, r) {
|
|
3239
3242
|
var o = e, s;
|
|
@@ -3255,13 +3258,13 @@ var qo = function t(e) {
|
|
|
3255
3258
|
throw new Xe('"allowMissing" argument must be a boolean');
|
|
3256
3259
|
if (zo(/^%?[^%]*%?$/, e) === null)
|
|
3257
3260
|
throw new Ze("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3258
|
-
var o = Wo(e), s = o.length > 0 ? o[0] : "", u = Jo("%" + s + "%", r), l = u.name, c = u.value,
|
|
3261
|
+
var o = Wo(e), s = o.length > 0 ? o[0] : "", u = Jo("%" + s + "%", r), l = u.name, c = u.value, d = !1, b = u.alias;
|
|
3259
3262
|
b && (s = b[0], Go(o, Qo([0, 1], b)));
|
|
3260
3263
|
for (var g = 1, m = !0; g < o.length; g += 1) {
|
|
3261
3264
|
var E = o[g], F = It(E, 0, 1), L = It(E, -1);
|
|
3262
3265
|
if ((F === '"' || F === "'" || F === "`" || L === '"' || L === "'" || L === "`") && F !== L)
|
|
3263
3266
|
throw new Ze("property names with quotes must have matching quotes");
|
|
3264
|
-
if ((E === "constructor" || !m) && (
|
|
3267
|
+
if ((E === "constructor" || !m) && (d = !0), s += "." + E, l = "%" + s + "%", Et(Ve, l))
|
|
3265
3268
|
c = Ve[l];
|
|
3266
3269
|
else if (c != null) {
|
|
3267
3270
|
if (!(E in c)) {
|
|
@@ -3269,12 +3272,12 @@ var qo = function t(e) {
|
|
|
3269
3272
|
throw new Xe("base intrinsic for " + e + " exists, but the property is not available.");
|
|
3270
3273
|
return;
|
|
3271
3274
|
}
|
|
3272
|
-
if (
|
|
3273
|
-
var P =
|
|
3275
|
+
if (De && g + 1 >= o.length) {
|
|
3276
|
+
var P = De(c, E);
|
|
3274
3277
|
m = !!P, m && "get" in P && !("originalValue" in P.get) ? c = P.get : c = c[E];
|
|
3275
3278
|
} else
|
|
3276
3279
|
m = Et(c, E), c = c[E];
|
|
3277
|
-
m && !
|
|
3280
|
+
m && !d && (Ve[l] = c);
|
|
3278
3281
|
}
|
|
3279
3282
|
}
|
|
3280
3283
|
return c;
|
|
@@ -3323,13 +3326,13 @@ var es = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = br, ts = function(e,
|
|
|
3323
3326
|
throw new Ge("`nonConfigurable`, if provided, must be a boolean or null");
|
|
3324
3327
|
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
3325
3328
|
throw new Ge("`loose`, if provided, must be a boolean");
|
|
3326
|
-
var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, c = arguments.length > 6 ? arguments[6] : !1,
|
|
3329
|
+
var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, c = arguments.length > 6 ? arguments[6] : !1, d = !!Rr && Rr(e, r);
|
|
3327
3330
|
if (ct)
|
|
3328
3331
|
ct(e, r, {
|
|
3329
|
-
configurable: l === null &&
|
|
3330
|
-
enumerable: s === null &&
|
|
3332
|
+
configurable: l === null && d ? d.configurable : !l,
|
|
3333
|
+
enumerable: s === null && d ? d.enumerable : !s,
|
|
3331
3334
|
value: o,
|
|
3332
|
-
writable: u === null &&
|
|
3335
|
+
writable: u === null && d ? d.writable : !u
|
|
3333
3336
|
});
|
|
3334
3337
|
else if (c || !s && !u && !l)
|
|
3335
3338
|
e[r] = o;
|
|
@@ -3348,12 +3351,12 @@ var es = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = br, ts = function(e,
|
|
|
3348
3351
|
return (s || u || !o) && (rs ? Lr(e, "length", r, !0, !0) : Lr(e, "length", r)), e;
|
|
3349
3352
|
};
|
|
3350
3353
|
(function(t) {
|
|
3351
|
-
var e = An, r = tt, o = is, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), c = r("%Reflect.apply%", !0) || e.call(l, u),
|
|
3352
|
-
if (
|
|
3354
|
+
var e = An, r = tt, o = is, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), c = r("%Reflect.apply%", !0) || e.call(l, u), d = r("%Object.defineProperty%", !0), b = r("%Math.max%");
|
|
3355
|
+
if (d)
|
|
3353
3356
|
try {
|
|
3354
|
-
|
|
3357
|
+
d({}, "a", { value: 1 });
|
|
3355
3358
|
} catch {
|
|
3356
|
-
|
|
3359
|
+
d = null;
|
|
3357
3360
|
}
|
|
3358
3361
|
t.exports = function(E) {
|
|
3359
3362
|
if (typeof E != "function")
|
|
@@ -3368,7 +3371,7 @@ var es = vr("%SyntaxError%"), Ge = vr("%TypeError%"), Rr = br, ts = function(e,
|
|
|
3368
3371
|
var g = function() {
|
|
3369
3372
|
return c(e, u, arguments);
|
|
3370
3373
|
};
|
|
3371
|
-
|
|
3374
|
+
d ? d(t.exports, "apply", { value: g }) : t.exports.apply = g;
|
|
3372
3375
|
})(In);
|
|
3373
3376
|
var _n = In.exports, Cn = tt, On = _n, os = On(Cn("String.prototype.indexOf")), xn = function(e, r) {
|
|
3374
3377
|
var o = Cn(e, !!r);
|
|
@@ -3381,14 +3384,14 @@ var _n = In.exports, Cn = tt, On = _n, os = On(Cn("String.prototype.indexOf")),
|
|
|
3381
3384
|
return Pt(arguments);
|
|
3382
3385
|
}();
|
|
3383
3386
|
Pt.isLegacyArguments = Bn;
|
|
3384
|
-
var cs = us ? Pt : Bn, fs = Object.prototype.toString, ls = Function.prototype.toString, hs = /^\s*(?:function)?\*/, kn = wr(),
|
|
3387
|
+
var cs = us ? Pt : Bn, fs = Object.prototype.toString, ls = Function.prototype.toString, hs = /^\s*(?:function)?\*/, kn = wr(), Dt = Object.getPrototypeOf, ds = function() {
|
|
3385
3388
|
if (!kn)
|
|
3386
3389
|
return !1;
|
|
3387
3390
|
try {
|
|
3388
3391
|
return Function("return function*() {}")();
|
|
3389
3392
|
} catch {
|
|
3390
3393
|
}
|
|
3391
|
-
}, Vt,
|
|
3394
|
+
}, Vt, ps = function(e) {
|
|
3392
3395
|
if (typeof e != "function")
|
|
3393
3396
|
return !1;
|
|
3394
3397
|
if (hs.test(ls.call(e)))
|
|
@@ -3397,13 +3400,13 @@ var cs = us ? Pt : Bn, fs = Object.prototype.toString, ls = Function.prototype.t
|
|
|
3397
3400
|
var r = fs.call(e);
|
|
3398
3401
|
return r === "[object GeneratorFunction]";
|
|
3399
3402
|
}
|
|
3400
|
-
if (!
|
|
3403
|
+
if (!Dt)
|
|
3401
3404
|
return !1;
|
|
3402
3405
|
if (typeof Vt > "u") {
|
|
3403
|
-
var o =
|
|
3404
|
-
Vt = o ?
|
|
3406
|
+
var o = ds();
|
|
3407
|
+
Vt = o ? Dt(o) : !1;
|
|
3405
3408
|
}
|
|
3406
|
-
return
|
|
3409
|
+
return Dt(e) === Vt;
|
|
3407
3410
|
}, Pn = Function.prototype.toString, He = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, wt;
|
|
3408
3411
|
if (typeof He == "function" && typeof Object.defineProperty == "function")
|
|
3409
3412
|
try {
|
|
@@ -3500,14 +3503,14 @@ var Fs = He ? function(e) {
|
|
|
3500
3503
|
for (var e = [], r = 0; r < qt.length; r++)
|
|
3501
3504
|
typeof Ps[qt[r]] == "function" && (e[e.length] = qt[r]);
|
|
3502
3505
|
return e;
|
|
3503
|
-
}, Ft = ks, Ls = Rs, $r = _n, Sr = xn, vt = br, Ns = Sr("Object.prototype.toString"), Ln = wr(),
|
|
3506
|
+
}, Ft = ks, Ls = Rs, $r = _n, Sr = xn, vt = br, Ns = Sr("Object.prototype.toString"), Ln = wr(), jr = typeof globalThis > "u" ? Yr : globalThis, sr = Ls(), Ar = Sr("String.prototype.slice"), Qt = Object.getPrototypeOf, Us = Sr("Array.prototype.indexOf", !0) || function(e, r) {
|
|
3504
3507
|
for (var o = 0; o < e.length; o += 1)
|
|
3505
3508
|
if (e[o] === r)
|
|
3506
3509
|
return o;
|
|
3507
3510
|
return -1;
|
|
3508
3511
|
}, Tt = { __proto__: null };
|
|
3509
3512
|
Ln && vt && Qt ? Ft(sr, function(t) {
|
|
3510
|
-
var e = new
|
|
3513
|
+
var e = new jr[t]();
|
|
3511
3514
|
if (Symbol.toStringTag in e) {
|
|
3512
3515
|
var r = Qt(e), o = vt(r, Symbol.toStringTag);
|
|
3513
3516
|
if (!o) {
|
|
@@ -3517,7 +3520,7 @@ Ln && vt && Qt ? Ft(sr, function(t) {
|
|
|
3517
3520
|
Tt["$" + t] = $r(o.get);
|
|
3518
3521
|
}
|
|
3519
3522
|
}) : Ft(sr, function(t) {
|
|
3520
|
-
var e = new
|
|
3523
|
+
var e = new jr[t](), r = e.slice || e.set;
|
|
3521
3524
|
r && (Tt["$" + t] = $r(r));
|
|
3522
3525
|
});
|
|
3523
3526
|
var $s = function(e) {
|
|
@@ -3529,7 +3532,7 @@ var $s = function(e) {
|
|
|
3529
3532
|
} catch {
|
|
3530
3533
|
}
|
|
3531
3534
|
}), r;
|
|
3532
|
-
},
|
|
3535
|
+
}, js = function(e) {
|
|
3533
3536
|
var r = !1;
|
|
3534
3537
|
return Ft(Tt, function(o, s) {
|
|
3535
3538
|
if (!r)
|
|
@@ -3543,27 +3546,27 @@ var $s = function(e) {
|
|
|
3543
3546
|
return !1;
|
|
3544
3547
|
if (!Ln) {
|
|
3545
3548
|
var r = Ar(Ns(e), 8, -1);
|
|
3546
|
-
return Us(sr, r) > -1 ? r : r !== "Object" ? !1 :
|
|
3549
|
+
return Us(sr, r) > -1 ? r : r !== "Object" ? !1 : js(e);
|
|
3547
3550
|
}
|
|
3548
3551
|
return vt ? $s(e) : null;
|
|
3549
|
-
},
|
|
3550
|
-
return !!
|
|
3552
|
+
}, Ds = Nn, Vs = function(e) {
|
|
3553
|
+
return !!Ds(e);
|
|
3551
3554
|
};
|
|
3552
3555
|
(function(t) {
|
|
3553
|
-
var e = cs, r =
|
|
3556
|
+
var e = cs, r = ps, o = Nn, s = Vs;
|
|
3554
3557
|
function u(S) {
|
|
3555
3558
|
return S.call.bind(S);
|
|
3556
3559
|
}
|
|
3557
|
-
var l = typeof BigInt < "u", c = typeof Symbol < "u",
|
|
3560
|
+
var l = typeof BigInt < "u", c = typeof Symbol < "u", d = u(Object.prototype.toString), b = u(Number.prototype.valueOf), g = u(String.prototype.valueOf), m = u(Boolean.prototype.valueOf);
|
|
3558
3561
|
if (l)
|
|
3559
3562
|
var E = u(BigInt.prototype.valueOf);
|
|
3560
3563
|
if (c)
|
|
3561
3564
|
var F = u(Symbol.prototype.valueOf);
|
|
3562
|
-
function L(S,
|
|
3565
|
+
function L(S, pt) {
|
|
3563
3566
|
if (typeof S != "object")
|
|
3564
3567
|
return !1;
|
|
3565
3568
|
try {
|
|
3566
|
-
return
|
|
3569
|
+
return pt(S), !0;
|
|
3567
3570
|
} catch {
|
|
3568
3571
|
return !1;
|
|
3569
3572
|
}
|
|
@@ -3585,10 +3588,10 @@ var $s = function(e) {
|
|
|
3585
3588
|
return o(S) === "Uint8ClampedArray";
|
|
3586
3589
|
}
|
|
3587
3590
|
t.isUint8ClampedArray = _;
|
|
3588
|
-
function
|
|
3591
|
+
function j(S) {
|
|
3589
3592
|
return o(S) === "Uint16Array";
|
|
3590
3593
|
}
|
|
3591
|
-
t.isUint16Array =
|
|
3594
|
+
t.isUint16Array = j;
|
|
3592
3595
|
function U(S) {
|
|
3593
3596
|
return o(S) === "Uint32Array";
|
|
3594
3597
|
}
|
|
@@ -3622,7 +3625,7 @@ var $s = function(e) {
|
|
|
3622
3625
|
}
|
|
3623
3626
|
t.isBigUint64Array = Se;
|
|
3624
3627
|
function ce(S) {
|
|
3625
|
-
return
|
|
3628
|
+
return d(S) === "[object Map]";
|
|
3626
3629
|
}
|
|
3627
3630
|
ce.working = typeof Map < "u" && ce(/* @__PURE__ */ new Map());
|
|
3628
3631
|
function nt(S) {
|
|
@@ -3630,7 +3633,7 @@ var $s = function(e) {
|
|
|
3630
3633
|
}
|
|
3631
3634
|
t.isMap = nt;
|
|
3632
3635
|
function fe(S) {
|
|
3633
|
-
return
|
|
3636
|
+
return d(S) === "[object Set]";
|
|
3634
3637
|
}
|
|
3635
3638
|
fe.working = typeof Set < "u" && fe(/* @__PURE__ */ new Set());
|
|
3636
3639
|
function xe(S) {
|
|
@@ -3638,7 +3641,7 @@ var $s = function(e) {
|
|
|
3638
3641
|
}
|
|
3639
3642
|
t.isSet = xe;
|
|
3640
3643
|
function Be(S) {
|
|
3641
|
-
return
|
|
3644
|
+
return d(S) === "[object WeakMap]";
|
|
3642
3645
|
}
|
|
3643
3646
|
Be.working = typeof WeakMap < "u" && Be(/* @__PURE__ */ new WeakMap());
|
|
3644
3647
|
function it(S) {
|
|
@@ -3646,7 +3649,7 @@ var $s = function(e) {
|
|
|
3646
3649
|
}
|
|
3647
3650
|
t.isWeakMap = it;
|
|
3648
3651
|
function ke(S) {
|
|
3649
|
-
return
|
|
3652
|
+
return d(S) === "[object WeakSet]";
|
|
3650
3653
|
}
|
|
3651
3654
|
ke.working = typeof WeakSet < "u" && ke(/* @__PURE__ */ new WeakSet());
|
|
3652
3655
|
function le(S) {
|
|
@@ -3654,47 +3657,47 @@ var $s = function(e) {
|
|
|
3654
3657
|
}
|
|
3655
3658
|
t.isWeakSet = le;
|
|
3656
3659
|
function Pe(S) {
|
|
3657
|
-
return
|
|
3660
|
+
return d(S) === "[object ArrayBuffer]";
|
|
3658
3661
|
}
|
|
3659
3662
|
Pe.working = typeof ArrayBuffer < "u" && Pe(new ArrayBuffer());
|
|
3660
3663
|
function H(S) {
|
|
3661
3664
|
return typeof ArrayBuffer > "u" ? !1 : Pe.working ? Pe(S) : S instanceof ArrayBuffer;
|
|
3662
3665
|
}
|
|
3663
3666
|
t.isArrayBuffer = H;
|
|
3664
|
-
function
|
|
3665
|
-
return
|
|
3667
|
+
function p(S) {
|
|
3668
|
+
return d(S) === "[object DataView]";
|
|
3666
3669
|
}
|
|
3667
|
-
|
|
3670
|
+
p.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && p(new DataView(new ArrayBuffer(1), 0, 1));
|
|
3668
3671
|
function v(S) {
|
|
3669
|
-
return typeof DataView > "u" ? !1 :
|
|
3672
|
+
return typeof DataView > "u" ? !1 : p.working ? p(S) : S instanceof DataView;
|
|
3670
3673
|
}
|
|
3671
3674
|
t.isDataView = v;
|
|
3672
3675
|
var A = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
3673
3676
|
function C(S) {
|
|
3674
|
-
return
|
|
3677
|
+
return d(S) === "[object SharedArrayBuffer]";
|
|
3675
3678
|
}
|
|
3676
|
-
function
|
|
3679
|
+
function D(S) {
|
|
3677
3680
|
return typeof A > "u" ? !1 : (typeof C.working > "u" && (C.working = C(new A())), C.working ? C(S) : S instanceof A);
|
|
3678
3681
|
}
|
|
3679
|
-
t.isSharedArrayBuffer =
|
|
3682
|
+
t.isSharedArrayBuffer = D;
|
|
3680
3683
|
function V(S) {
|
|
3681
|
-
return
|
|
3684
|
+
return d(S) === "[object AsyncFunction]";
|
|
3682
3685
|
}
|
|
3683
3686
|
t.isAsyncFunction = V;
|
|
3684
3687
|
function B(S) {
|
|
3685
|
-
return
|
|
3688
|
+
return d(S) === "[object Map Iterator]";
|
|
3686
3689
|
}
|
|
3687
3690
|
t.isMapIterator = B;
|
|
3688
3691
|
function N(S) {
|
|
3689
|
-
return
|
|
3692
|
+
return d(S) === "[object Set Iterator]";
|
|
3690
3693
|
}
|
|
3691
3694
|
t.isSetIterator = N;
|
|
3692
3695
|
function M(S) {
|
|
3693
|
-
return
|
|
3696
|
+
return d(S) === "[object Generator]";
|
|
3694
3697
|
}
|
|
3695
3698
|
t.isGeneratorObject = M;
|
|
3696
3699
|
function te(S) {
|
|
3697
|
-
return
|
|
3700
|
+
return d(S) === "[object WebAssembly.Module]";
|
|
3698
3701
|
}
|
|
3699
3702
|
t.isWebAssemblyCompiledModule = te;
|
|
3700
3703
|
function ye(S) {
|
|
@@ -3713,16 +3716,16 @@ var $s = function(e) {
|
|
|
3713
3716
|
return l && L(S, E);
|
|
3714
3717
|
}
|
|
3715
3718
|
t.isBigIntObject = Me;
|
|
3716
|
-
function
|
|
3719
|
+
function dt(S) {
|
|
3717
3720
|
return c && L(S, F);
|
|
3718
3721
|
}
|
|
3719
|
-
t.isSymbolObject =
|
|
3722
|
+
t.isSymbolObject = dt;
|
|
3720
3723
|
function ot(S) {
|
|
3721
|
-
return ye(S) || he(S) || oe(S) || Me(S) ||
|
|
3724
|
+
return ye(S) || he(S) || oe(S) || Me(S) || dt(S);
|
|
3722
3725
|
}
|
|
3723
3726
|
t.isBoxedPrimitive = ot;
|
|
3724
3727
|
function Rt(S) {
|
|
3725
|
-
return typeof Uint8Array < "u" && (H(S) ||
|
|
3728
|
+
return typeof Uint8Array < "u" && (H(S) || D(S));
|
|
3726
3729
|
}
|
|
3727
3730
|
t.isAnyArrayBuffer = Rt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(S) {
|
|
3728
3731
|
Object.defineProperty(t, S, {
|
|
@@ -3756,20 +3759,20 @@ typeof Object.create == "function" ? ar.exports = function(e, r) {
|
|
|
3756
3759
|
var qs = ar.exports;
|
|
3757
3760
|
(function(t) {
|
|
3758
3761
|
var e = Object.getOwnPropertyDescriptors || function(v) {
|
|
3759
|
-
for (var A = Object.keys(v), C = {},
|
|
3760
|
-
C[A[
|
|
3762
|
+
for (var A = Object.keys(v), C = {}, D = 0; D < A.length; D++)
|
|
3763
|
+
C[A[D]] = Object.getOwnPropertyDescriptor(v, A[D]);
|
|
3761
3764
|
return C;
|
|
3762
3765
|
}, r = /%[sdj%]/g;
|
|
3763
|
-
t.format = function(
|
|
3764
|
-
if (!T(
|
|
3766
|
+
t.format = function(p) {
|
|
3767
|
+
if (!T(p)) {
|
|
3765
3768
|
for (var v = [], A = 0; A < arguments.length; A++)
|
|
3766
3769
|
v.push(l(arguments[A]));
|
|
3767
3770
|
return v.join(" ");
|
|
3768
3771
|
}
|
|
3769
|
-
for (var A = 1, C = arguments,
|
|
3772
|
+
for (var A = 1, C = arguments, D = C.length, V = String(p).replace(r, function(N) {
|
|
3770
3773
|
if (N === "%%")
|
|
3771
3774
|
return "%";
|
|
3772
|
-
if (A >=
|
|
3775
|
+
if (A >= D)
|
|
3773
3776
|
return N;
|
|
3774
3777
|
switch (N) {
|
|
3775
3778
|
case "%s":
|
|
@@ -3785,15 +3788,15 @@ var qs = ar.exports;
|
|
|
3785
3788
|
default:
|
|
3786
3789
|
return N;
|
|
3787
3790
|
}
|
|
3788
|
-
}), B = C[A]; A <
|
|
3791
|
+
}), B = C[A]; A < D; B = C[++A])
|
|
3789
3792
|
_(B) || !ie(B) ? V += " " + B : V += " " + l(B);
|
|
3790
3793
|
return V;
|
|
3791
|
-
}, t.deprecate = function(
|
|
3794
|
+
}, t.deprecate = function(p, v) {
|
|
3792
3795
|
if (typeof O.process < "u" && O.process.noDeprecation === !0)
|
|
3793
|
-
return
|
|
3796
|
+
return p;
|
|
3794
3797
|
if (typeof O.process > "u")
|
|
3795
3798
|
return function() {
|
|
3796
|
-
return t.deprecate(
|
|
3799
|
+
return t.deprecate(p, v).apply(this, arguments);
|
|
3797
3800
|
};
|
|
3798
3801
|
var A = !1;
|
|
3799
3802
|
function C() {
|
|
@@ -3802,7 +3805,7 @@ var qs = ar.exports;
|
|
|
3802
3805
|
throw new Error(v);
|
|
3803
3806
|
O.process.traceDeprecation ? console.trace(v) : console.error(v), A = !0;
|
|
3804
3807
|
}
|
|
3805
|
-
return
|
|
3808
|
+
return p.apply(this, arguments);
|
|
3806
3809
|
}
|
|
3807
3810
|
return C;
|
|
3808
3811
|
};
|
|
@@ -3811,25 +3814,25 @@ var qs = ar.exports;
|
|
|
3811
3814
|
var u = O.process.env.NODE_DEBUG;
|
|
3812
3815
|
u = u.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), s = new RegExp("^" + u + "$", "i");
|
|
3813
3816
|
}
|
|
3814
|
-
t.debuglog = function(
|
|
3815
|
-
if (
|
|
3816
|
-
if (s.test(
|
|
3817
|
+
t.debuglog = function(p) {
|
|
3818
|
+
if (p = p.toUpperCase(), !o[p])
|
|
3819
|
+
if (s.test(p)) {
|
|
3817
3820
|
var v = O.process.pid;
|
|
3818
|
-
o[
|
|
3821
|
+
o[p] = function() {
|
|
3819
3822
|
var A = t.format.apply(t, arguments);
|
|
3820
|
-
console.error("%s %d: %s",
|
|
3823
|
+
console.error("%s %d: %s", p, v, A);
|
|
3821
3824
|
};
|
|
3822
3825
|
} else
|
|
3823
|
-
o[
|
|
3826
|
+
o[p] = function() {
|
|
3824
3827
|
};
|
|
3825
|
-
return o[
|
|
3828
|
+
return o[p];
|
|
3826
3829
|
};
|
|
3827
|
-
function l(
|
|
3830
|
+
function l(p, v) {
|
|
3828
3831
|
var A = {
|
|
3829
3832
|
seen: [],
|
|
3830
|
-
stylize:
|
|
3833
|
+
stylize: d
|
|
3831
3834
|
};
|
|
3832
|
-
return arguments.length >= 3 && (A.depth = arguments[2]), arguments.length >= 4 && (A.colors = arguments[3]), I(v) ? A.showHidden = v : v && t._extend(A, v), k(A.showHidden) && (A.showHidden = !1), k(A.depth) && (A.depth = 2), k(A.colors) && (A.colors = !1), k(A.customInspect) && (A.customInspect = !0), A.colors && (A.stylize = c), g(A,
|
|
3835
|
+
return arguments.length >= 3 && (A.depth = arguments[2]), arguments.length >= 4 && (A.colors = arguments[3]), I(v) ? A.showHidden = v : v && t._extend(A, v), k(A.showHidden) && (A.showHidden = !1), k(A.depth) && (A.depth = 2), k(A.colors) && (A.colors = !1), k(A.customInspect) && (A.customInspect = !0), A.colors && (A.stylize = c), g(A, p, A.depth);
|
|
3833
3836
|
}
|
|
3834
3837
|
t.inspect = l, l.colors = {
|
|
3835
3838
|
bold: [1, 22],
|
|
@@ -3856,41 +3859,41 @@ var qs = ar.exports;
|
|
|
3856
3859
|
// "name": intentionally not styling
|
|
3857
3860
|
regexp: "red"
|
|
3858
3861
|
};
|
|
3859
|
-
function c(
|
|
3862
|
+
function c(p, v) {
|
|
3860
3863
|
var A = l.styles[v];
|
|
3861
|
-
return A ? "\x1B[" + l.colors[A][0] + "m" +
|
|
3864
|
+
return A ? "\x1B[" + l.colors[A][0] + "m" + p + "\x1B[" + l.colors[A][1] + "m" : p;
|
|
3862
3865
|
}
|
|
3863
|
-
function p
|
|
3864
|
-
return
|
|
3866
|
+
function d(p, v) {
|
|
3867
|
+
return p;
|
|
3865
3868
|
}
|
|
3866
|
-
function b(
|
|
3869
|
+
function b(p) {
|
|
3867
3870
|
var v = {};
|
|
3868
|
-
return
|
|
3871
|
+
return p.forEach(function(A, C) {
|
|
3869
3872
|
v[A] = !0;
|
|
3870
3873
|
}), v;
|
|
3871
3874
|
}
|
|
3872
|
-
function g(
|
|
3873
|
-
if (
|
|
3875
|
+
function g(p, v, A) {
|
|
3876
|
+
if (p.customInspect && v && ce(v.inspect) && // Filter out the util module, it's inspect function is special
|
|
3874
3877
|
v.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
|
|
3875
3878
|
!(v.constructor && v.constructor.prototype === v)) {
|
|
3876
|
-
var C = v.inspect(A,
|
|
3877
|
-
return T(C) || (C = g(
|
|
3879
|
+
var C = v.inspect(A, p);
|
|
3880
|
+
return T(C) || (C = g(p, C, A)), C;
|
|
3878
3881
|
}
|
|
3879
|
-
var
|
|
3880
|
-
if (
|
|
3881
|
-
return
|
|
3882
|
+
var D = m(p, v);
|
|
3883
|
+
if (D)
|
|
3884
|
+
return D;
|
|
3882
3885
|
var V = Object.keys(v), B = b(V);
|
|
3883
|
-
if (
|
|
3886
|
+
if (p.showHidden && (V = Object.getOwnPropertyNames(v)), Se(v) && (V.indexOf("message") >= 0 || V.indexOf("description") >= 0))
|
|
3884
3887
|
return E(v);
|
|
3885
3888
|
if (V.length === 0) {
|
|
3886
3889
|
if (ce(v)) {
|
|
3887
3890
|
var N = v.name ? ": " + v.name : "";
|
|
3888
|
-
return
|
|
3891
|
+
return p.stylize("[Function" + N + "]", "special");
|
|
3889
3892
|
}
|
|
3890
3893
|
if (G(v))
|
|
3891
|
-
return
|
|
3894
|
+
return p.stylize(RegExp.prototype.toString.call(v), "regexp");
|
|
3892
3895
|
if (Oe(v))
|
|
3893
|
-
return
|
|
3896
|
+
return p.stylize(Date.prototype.toString.call(v), "date");
|
|
3894
3897
|
if (Se(v))
|
|
3895
3898
|
return E(v);
|
|
3896
3899
|
}
|
|
@@ -3902,43 +3905,43 @@ var qs = ar.exports;
|
|
|
3902
3905
|
if (G(v) && (M = " " + RegExp.prototype.toString.call(v)), Oe(v) && (M = " " + Date.prototype.toUTCString.call(v)), Se(v) && (M = " " + E(v)), V.length === 0 && (!te || v.length == 0))
|
|
3903
3906
|
return ye[0] + M + ye[1];
|
|
3904
3907
|
if (A < 0)
|
|
3905
|
-
return G(v) ?
|
|
3906
|
-
|
|
3908
|
+
return G(v) ? p.stylize(RegExp.prototype.toString.call(v), "regexp") : p.stylize("[Object]", "special");
|
|
3909
|
+
p.seen.push(v);
|
|
3907
3910
|
var oe;
|
|
3908
|
-
return te ? oe = F(
|
|
3909
|
-
return L(
|
|
3910
|
-
}),
|
|
3911
|
+
return te ? oe = F(p, v, A, B, V) : oe = V.map(function(Me) {
|
|
3912
|
+
return L(p, v, A, B, Me, te);
|
|
3913
|
+
}), p.seen.pop(), P(oe, M, ye);
|
|
3911
3914
|
}
|
|
3912
|
-
function m(
|
|
3915
|
+
function m(p, v) {
|
|
3913
3916
|
if (k(v))
|
|
3914
|
-
return
|
|
3917
|
+
return p.stylize("undefined", "undefined");
|
|
3915
3918
|
if (T(v)) {
|
|
3916
3919
|
var A = "'" + JSON.stringify(v).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
3917
|
-
return
|
|
3920
|
+
return p.stylize(A, "string");
|
|
3918
3921
|
}
|
|
3919
3922
|
if (U(v))
|
|
3920
|
-
return
|
|
3923
|
+
return p.stylize("" + v, "number");
|
|
3921
3924
|
if (I(v))
|
|
3922
|
-
return
|
|
3925
|
+
return p.stylize("" + v, "boolean");
|
|
3923
3926
|
if (_(v))
|
|
3924
|
-
return
|
|
3927
|
+
return p.stylize("null", "null");
|
|
3925
3928
|
}
|
|
3926
|
-
function E(
|
|
3927
|
-
return "[" + Error.prototype.toString.call(
|
|
3929
|
+
function E(p) {
|
|
3930
|
+
return "[" + Error.prototype.toString.call(p) + "]";
|
|
3928
3931
|
}
|
|
3929
|
-
function F(
|
|
3932
|
+
function F(p, v, A, C, D) {
|
|
3930
3933
|
for (var V = [], B = 0, N = v.length; B < N; ++B)
|
|
3931
3934
|
ke(v, String(B)) ? V.push(L(
|
|
3932
|
-
|
|
3935
|
+
p,
|
|
3933
3936
|
v,
|
|
3934
3937
|
A,
|
|
3935
3938
|
C,
|
|
3936
3939
|
String(B),
|
|
3937
3940
|
!0
|
|
3938
3941
|
)) : V.push("");
|
|
3939
|
-
return
|
|
3942
|
+
return D.forEach(function(M) {
|
|
3940
3943
|
M.match(/^\d+$/) || V.push(L(
|
|
3941
|
-
|
|
3944
|
+
p,
|
|
3942
3945
|
v,
|
|
3943
3946
|
A,
|
|
3944
3947
|
C,
|
|
@@ -3947,9 +3950,9 @@ var qs = ar.exports;
|
|
|
3947
3950
|
));
|
|
3948
3951
|
}), V;
|
|
3949
3952
|
}
|
|
3950
|
-
function L(
|
|
3953
|
+
function L(p, v, A, C, D, V) {
|
|
3951
3954
|
var B, N, M;
|
|
3952
|
-
if (M = Object.getOwnPropertyDescriptor(v,
|
|
3955
|
+
if (M = Object.getOwnPropertyDescriptor(v, D) || { value: v[D] }, M.get ? M.set ? N = p.stylize("[Getter/Setter]", "special") : N = p.stylize("[Getter]", "special") : M.set && (N = p.stylize("[Setter]", "special")), ke(C, D) || (B = "[" + D + "]"), N || (p.seen.indexOf(M.value) < 0 ? (_(A) ? N = g(p, M.value, null) : N = g(p, M.value, A - 1), N.indexOf(`
|
|
3953
3956
|
`) > -1 && (V ? N = N.split(`
|
|
3954
3957
|
`).map(function(te) {
|
|
3955
3958
|
return " " + te;
|
|
@@ -3959,85 +3962,85 @@ var qs = ar.exports;
|
|
|
3959
3962
|
`).map(function(te) {
|
|
3960
3963
|
return " " + te;
|
|
3961
3964
|
}).join(`
|
|
3962
|
-
`))) : N =
|
|
3963
|
-
if (V &&
|
|
3965
|
+
`))) : N = p.stylize("[Circular]", "special")), k(B)) {
|
|
3966
|
+
if (V && D.match(/^\d+$/))
|
|
3964
3967
|
return N;
|
|
3965
|
-
B = JSON.stringify("" +
|
|
3968
|
+
B = JSON.stringify("" + D), B.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (B = B.slice(1, -1), B = p.stylize(B, "name")) : (B = B.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), B = p.stylize(B, "string"));
|
|
3966
3969
|
}
|
|
3967
3970
|
return B + ": " + N;
|
|
3968
3971
|
}
|
|
3969
|
-
function P(
|
|
3970
|
-
var C =
|
|
3972
|
+
function P(p, v, A) {
|
|
3973
|
+
var C = p.reduce(function(D, V) {
|
|
3971
3974
|
return V.indexOf(`
|
|
3972
|
-
`) >= 0,
|
|
3975
|
+
`) >= 0, D + V.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
3973
3976
|
}, 0);
|
|
3974
3977
|
return C > 60 ? A[0] + (v === "" ? "" : v + `
|
|
3975
|
-
`) + " " +
|
|
3976
|
-
`) + " " + A[1] : A[0] + v + " " +
|
|
3978
|
+
`) + " " + p.join(`,
|
|
3979
|
+
`) + " " + A[1] : A[0] + v + " " + p.join(", ") + " " + A[1];
|
|
3977
3980
|
}
|
|
3978
3981
|
t.types = vn;
|
|
3979
|
-
function K(
|
|
3980
|
-
return Array.isArray(
|
|
3982
|
+
function K(p) {
|
|
3983
|
+
return Array.isArray(p);
|
|
3981
3984
|
}
|
|
3982
3985
|
t.isArray = K;
|
|
3983
|
-
function I(
|
|
3984
|
-
return typeof
|
|
3986
|
+
function I(p) {
|
|
3987
|
+
return typeof p == "boolean";
|
|
3985
3988
|
}
|
|
3986
3989
|
t.isBoolean = I;
|
|
3987
|
-
function _(
|
|
3988
|
-
return
|
|
3990
|
+
function _(p) {
|
|
3991
|
+
return p === null;
|
|
3989
3992
|
}
|
|
3990
3993
|
t.isNull = _;
|
|
3991
|
-
function
|
|
3992
|
-
return
|
|
3994
|
+
function j(p) {
|
|
3995
|
+
return p == null;
|
|
3993
3996
|
}
|
|
3994
|
-
t.isNullOrUndefined =
|
|
3995
|
-
function U(
|
|
3996
|
-
return typeof
|
|
3997
|
+
t.isNullOrUndefined = j;
|
|
3998
|
+
function U(p) {
|
|
3999
|
+
return typeof p == "number";
|
|
3997
4000
|
}
|
|
3998
4001
|
t.isNumber = U;
|
|
3999
|
-
function T(
|
|
4000
|
-
return typeof
|
|
4002
|
+
function T(p) {
|
|
4003
|
+
return typeof p == "string";
|
|
4001
4004
|
}
|
|
4002
4005
|
t.isString = T;
|
|
4003
|
-
function x(
|
|
4004
|
-
return typeof
|
|
4006
|
+
function x(p) {
|
|
4007
|
+
return typeof p == "symbol";
|
|
4005
4008
|
}
|
|
4006
4009
|
t.isSymbol = x;
|
|
4007
|
-
function k(
|
|
4008
|
-
return
|
|
4010
|
+
function k(p) {
|
|
4011
|
+
return p === void 0;
|
|
4009
4012
|
}
|
|
4010
4013
|
t.isUndefined = k;
|
|
4011
|
-
function G(
|
|
4012
|
-
return ie(
|
|
4014
|
+
function G(p) {
|
|
4015
|
+
return ie(p) && fe(p) === "[object RegExp]";
|
|
4013
4016
|
}
|
|
4014
4017
|
t.isRegExp = G, t.types.isRegExp = G;
|
|
4015
|
-
function ie(
|
|
4016
|
-
return typeof
|
|
4018
|
+
function ie(p) {
|
|
4019
|
+
return typeof p == "object" && p !== null;
|
|
4017
4020
|
}
|
|
4018
4021
|
t.isObject = ie;
|
|
4019
|
-
function Oe(
|
|
4020
|
-
return ie(
|
|
4022
|
+
function Oe(p) {
|
|
4023
|
+
return ie(p) && fe(p) === "[object Date]";
|
|
4021
4024
|
}
|
|
4022
4025
|
t.isDate = Oe, t.types.isDate = Oe;
|
|
4023
|
-
function Se(
|
|
4024
|
-
return ie(
|
|
4026
|
+
function Se(p) {
|
|
4027
|
+
return ie(p) && (fe(p) === "[object Error]" || p instanceof Error);
|
|
4025
4028
|
}
|
|
4026
4029
|
t.isError = Se, t.types.isNativeError = Se;
|
|
4027
|
-
function ce(
|
|
4028
|
-
return typeof
|
|
4030
|
+
function ce(p) {
|
|
4031
|
+
return typeof p == "function";
|
|
4029
4032
|
}
|
|
4030
4033
|
t.isFunction = ce;
|
|
4031
|
-
function nt(
|
|
4032
|
-
return
|
|
4033
|
-
typeof
|
|
4034
|
+
function nt(p) {
|
|
4035
|
+
return p === null || typeof p == "boolean" || typeof p == "number" || typeof p == "string" || typeof p == "symbol" || // ES6 symbol
|
|
4036
|
+
typeof p > "u";
|
|
4034
4037
|
}
|
|
4035
4038
|
t.isPrimitive = nt, t.isBuffer = Ms;
|
|
4036
|
-
function fe(
|
|
4037
|
-
return Object.prototype.toString.call(
|
|
4039
|
+
function fe(p) {
|
|
4040
|
+
return Object.prototype.toString.call(p);
|
|
4038
4041
|
}
|
|
4039
|
-
function xe(
|
|
4040
|
-
return
|
|
4042
|
+
function xe(p) {
|
|
4043
|
+
return p < 10 ? "0" + p.toString(10) : p.toString(10);
|
|
4041
4044
|
}
|
|
4042
4045
|
var Be = [
|
|
4043
4046
|
"Jan",
|
|
@@ -4054,24 +4057,24 @@ var qs = ar.exports;
|
|
|
4054
4057
|
"Dec"
|
|
4055
4058
|
];
|
|
4056
4059
|
function it() {
|
|
4057
|
-
var
|
|
4058
|
-
xe(
|
|
4059
|
-
xe(
|
|
4060
|
-
xe(
|
|
4060
|
+
var p = /* @__PURE__ */ new Date(), v = [
|
|
4061
|
+
xe(p.getHours()),
|
|
4062
|
+
xe(p.getMinutes()),
|
|
4063
|
+
xe(p.getSeconds())
|
|
4061
4064
|
].join(":");
|
|
4062
|
-
return [
|
|
4065
|
+
return [p.getDate(), Be[p.getMonth()], v].join(" ");
|
|
4063
4066
|
}
|
|
4064
4067
|
t.log = function() {
|
|
4065
4068
|
console.log("%s - %s", it(), t.format.apply(t, arguments));
|
|
4066
|
-
}, t.inherits = qs, t._extend = function(
|
|
4069
|
+
}, t.inherits = qs, t._extend = function(p, v) {
|
|
4067
4070
|
if (!v || !ie(v))
|
|
4068
|
-
return
|
|
4071
|
+
return p;
|
|
4069
4072
|
for (var A = Object.keys(v), C = A.length; C--; )
|
|
4070
|
-
|
|
4071
|
-
return
|
|
4073
|
+
p[A[C]] = v[A[C]];
|
|
4074
|
+
return p;
|
|
4072
4075
|
};
|
|
4073
|
-
function ke(
|
|
4074
|
-
return Object.prototype.hasOwnProperty.call(
|
|
4076
|
+
function ke(p, v) {
|
|
4077
|
+
return Object.prototype.hasOwnProperty.call(p, v);
|
|
4075
4078
|
}
|
|
4076
4079
|
var le = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
4077
4080
|
t.promisify = function(v) {
|
|
@@ -4089,17 +4092,17 @@ var qs = ar.exports;
|
|
|
4089
4092
|
}), A;
|
|
4090
4093
|
}
|
|
4091
4094
|
function A() {
|
|
4092
|
-
for (var C,
|
|
4093
|
-
C = M,
|
|
4095
|
+
for (var C, D, V = new Promise(function(M, te) {
|
|
4096
|
+
C = M, D = te;
|
|
4094
4097
|
}), B = [], N = 0; N < arguments.length; N++)
|
|
4095
4098
|
B.push(arguments[N]);
|
|
4096
4099
|
B.push(function(M, te) {
|
|
4097
|
-
M ?
|
|
4100
|
+
M ? D(M) : C(te);
|
|
4098
4101
|
});
|
|
4099
4102
|
try {
|
|
4100
4103
|
v.apply(this, B);
|
|
4101
4104
|
} catch (M) {
|
|
4102
|
-
|
|
4105
|
+
D(M);
|
|
4103
4106
|
}
|
|
4104
4107
|
return V;
|
|
4105
4108
|
}
|
|
@@ -4113,26 +4116,26 @@ var qs = ar.exports;
|
|
|
4113
4116
|
e(v)
|
|
4114
4117
|
);
|
|
4115
4118
|
}, t.promisify.custom = le;
|
|
4116
|
-
function Pe(
|
|
4117
|
-
if (!
|
|
4119
|
+
function Pe(p, v) {
|
|
4120
|
+
if (!p) {
|
|
4118
4121
|
var A = new Error("Promise was rejected with a falsy value");
|
|
4119
|
-
A.reason =
|
|
4122
|
+
A.reason = p, p = A;
|
|
4120
4123
|
}
|
|
4121
|
-
return v(
|
|
4124
|
+
return v(p);
|
|
4122
4125
|
}
|
|
4123
|
-
function H(
|
|
4124
|
-
if (typeof
|
|
4126
|
+
function H(p) {
|
|
4127
|
+
if (typeof p != "function")
|
|
4125
4128
|
throw new TypeError('The "original" argument must be of type Function');
|
|
4126
4129
|
function v() {
|
|
4127
4130
|
for (var A = [], C = 0; C < arguments.length; C++)
|
|
4128
4131
|
A.push(arguments[C]);
|
|
4129
|
-
var
|
|
4130
|
-
if (typeof
|
|
4132
|
+
var D = A.pop();
|
|
4133
|
+
if (typeof D != "function")
|
|
4131
4134
|
throw new TypeError("The last argument must be of type Function");
|
|
4132
4135
|
var V = this, B = function() {
|
|
4133
|
-
return
|
|
4136
|
+
return D.apply(V, arguments);
|
|
4134
4137
|
};
|
|
4135
|
-
|
|
4138
|
+
p.apply(this, A).then(
|
|
4136
4139
|
function(N) {
|
|
4137
4140
|
O.process.nextTick(B.bind(null, null, N));
|
|
4138
4141
|
},
|
|
@@ -4141,9 +4144,9 @@ var qs = ar.exports;
|
|
|
4141
4144
|
}
|
|
4142
4145
|
);
|
|
4143
4146
|
}
|
|
4144
|
-
return Object.setPrototypeOf(v, Object.getPrototypeOf(
|
|
4147
|
+
return Object.setPrototypeOf(v, Object.getPrototypeOf(p)), Object.defineProperties(
|
|
4145
4148
|
v,
|
|
4146
|
-
e(
|
|
4149
|
+
e(p)
|
|
4147
4150
|
), v;
|
|
4148
4151
|
}
|
|
4149
4152
|
t.callbackify = H;
|
|
@@ -4191,7 +4194,7 @@ var Un = {
|
|
|
4191
4194
|
)
|
|
4192
4195
|
}, Gs = function t(e, r, o) {
|
|
4193
4196
|
r === void 0 && (r = ""), o || (o = {});
|
|
4194
|
-
var s = function(
|
|
4197
|
+
var s = function(d) {
|
|
4195
4198
|
var b = {
|
|
4196
4199
|
"│": "|",
|
|
4197
4200
|
"└": "`",
|
|
@@ -4199,19 +4202,19 @@ var Un = {
|
|
|
4199
4202
|
"─": "-",
|
|
4200
4203
|
"┬": "-"
|
|
4201
4204
|
};
|
|
4202
|
-
return o.unicode === !1 ? b[
|
|
4205
|
+
return o.unicode === !1 ? b[d] : d;
|
|
4203
4206
|
};
|
|
4204
4207
|
typeof e == "string" && (e = { label: e });
|
|
4205
4208
|
var u = e.nodes || [], l = (e.label || "").split(`
|
|
4206
4209
|
`), c = `
|
|
4207
4210
|
` + r + (u.length ? s("│") : " ") + " ";
|
|
4208
4211
|
return r + l.join(c) + `
|
|
4209
|
-
` + u.map(function(
|
|
4210
|
-
var g = b === u.length - 1, m =
|
|
4211
|
-
return r + s(g ? "└" : "├") + s("─") + s(m ? "┬" : "─") + " " + t(
|
|
4212
|
+
` + u.map(function(d, b) {
|
|
4213
|
+
var g = b === u.length - 1, m = d.nodes && d.nodes.length, E = r + (g ? " " : s("│")) + " ";
|
|
4214
|
+
return r + s(g ? "└" : "├") + s("─") + s(m ? "┬" : "─") + " " + t(d, E, o).slice(r.length + 2);
|
|
4212
4215
|
}).join("");
|
|
4213
4216
|
};
|
|
4214
|
-
const zs = Gs,
|
|
4217
|
+
const zs = Gs, Dr = Symbol("avvio.TimeTree.untrackNode"), zt = Symbol("avvio.TimeTree.trackNode"), Vr = Symbol("avvio.TimeTree.getParent"), Mr = Symbol("avvio.TimeTree.getNode"), qr = Symbol("avvio.TimeTree.addNode");
|
|
4215
4218
|
let Ks = class {
|
|
4216
4219
|
constructor() {
|
|
4217
4220
|
this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
|
|
@@ -4219,7 +4222,7 @@ let Ks = class {
|
|
|
4219
4222
|
[zt](e) {
|
|
4220
4223
|
this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
|
|
4221
4224
|
}
|
|
4222
|
-
[
|
|
4225
|
+
[Dr](e) {
|
|
4223
4226
|
this.tableId.delete(e.id);
|
|
4224
4227
|
const r = this.tableLabel.get(e.label);
|
|
4225
4228
|
if (r.id) {
|
|
@@ -4259,7 +4262,7 @@ let Ks = class {
|
|
|
4259
4262
|
}
|
|
4260
4263
|
stop(e, r = Date.now()) {
|
|
4261
4264
|
const o = this[Mr](e);
|
|
4262
|
-
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[
|
|
4265
|
+
o && (o.stop = r, o.diff = o.stop - o.start || 0, this[Dr](o));
|
|
4263
4266
|
}
|
|
4264
4267
|
toJSON() {
|
|
4265
4268
|
return Object.assign({}, this.root);
|
|
@@ -4281,7 +4284,7 @@ function Ws() {
|
|
|
4281
4284
|
if (E === "string" && g.length > 0)
|
|
4282
4285
|
return l(g);
|
|
4283
4286
|
if (E === "number" && isFinite(g))
|
|
4284
|
-
return m.long ?
|
|
4287
|
+
return m.long ? d(g) : c(g);
|
|
4285
4288
|
throw new Error(
|
|
4286
4289
|
"val is not a non-empty string or a valid number. val=" + JSON.stringify(g)
|
|
4287
4290
|
);
|
|
@@ -4342,7 +4345,7 @@ function Ws() {
|
|
|
4342
4345
|
var m = Math.abs(g);
|
|
4343
4346
|
return m >= o ? Math.round(g / o) + "d" : m >= r ? Math.round(g / r) + "h" : m >= e ? Math.round(g / e) + "m" : m >= t ? Math.round(g / t) + "s" : g + "ms";
|
|
4344
4347
|
}
|
|
4345
|
-
function
|
|
4348
|
+
function d(g) {
|
|
4346
4349
|
var m = Math.abs(g);
|
|
4347
4350
|
return m >= o ? b(g, m, o, "day") : m >= r ? b(g, m, r, "hour") : m >= e ? b(g, m, e, "minute") : m >= t ? b(g, m, t, "second") : g + " ms";
|
|
4348
4351
|
}
|
|
@@ -4353,7 +4356,7 @@ function Ws() {
|
|
|
4353
4356
|
return Kt;
|
|
4354
4357
|
}
|
|
4355
4358
|
function Js(t) {
|
|
4356
|
-
r.debug = r, r.default = r, r.coerce =
|
|
4359
|
+
r.debug = r, r.default = r, r.coerce = d, r.disable = u, r.enable = s, r.enabled = l, r.humanize = Ws(), r.destroy = b, Object.keys(t).forEach((g) => {
|
|
4357
4360
|
r[g] = t[g];
|
|
4358
4361
|
}), r.names = [], r.skips = [], r.formatters = {};
|
|
4359
4362
|
function e(g) {
|
|
@@ -4368,8 +4371,8 @@ function Js(t) {
|
|
|
4368
4371
|
function P(...K) {
|
|
4369
4372
|
if (!P.enabled)
|
|
4370
4373
|
return;
|
|
4371
|
-
const I = P, _ = Number(/* @__PURE__ */ new Date()),
|
|
4372
|
-
I.diff =
|
|
4374
|
+
const I = P, _ = Number(/* @__PURE__ */ new Date()), j = _ - (m || _);
|
|
4375
|
+
I.diff = j, I.prev = m, I.curr = _, m = _, K[0] = r.coerce(K[0]), typeof K[0] != "string" && K.unshift("%O");
|
|
4373
4376
|
let U = 0;
|
|
4374
4377
|
K[0] = K[0].replace(/%([a-zA-Z%])/g, (x, k) => {
|
|
4375
4378
|
if (x === "%%")
|
|
@@ -4425,7 +4428,7 @@ function Js(t) {
|
|
|
4425
4428
|
function c(g) {
|
|
4426
4429
|
return g.toString().substring(2, g.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
4427
4430
|
}
|
|
4428
|
-
function
|
|
4431
|
+
function d(g) {
|
|
4429
4432
|
return g instanceof Error ? g.stack || g.message : g;
|
|
4430
4433
|
}
|
|
4431
4434
|
function b() {
|
|
@@ -4436,9 +4439,9 @@ function Js(t) {
|
|
|
4436
4439
|
var Ys = Js;
|
|
4437
4440
|
(function(t, e) {
|
|
4438
4441
|
e.formatArgs = o, e.save = s, e.load = u, e.useColors = r, e.storage = l(), e.destroy = (() => {
|
|
4439
|
-
let
|
|
4442
|
+
let d = !1;
|
|
4440
4443
|
return () => {
|
|
4441
|
-
|
|
4444
|
+
d || (d = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
|
|
4442
4445
|
};
|
|
4443
4446
|
})(), e.colors = [
|
|
4444
4447
|
"#0000CC",
|
|
@@ -4525,31 +4528,31 @@ var Ys = Js;
|
|
|
4525
4528
|
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
4526
4529
|
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
4527
4530
|
}
|
|
4528
|
-
function o(
|
|
4529
|
-
if (
|
|
4531
|
+
function o(d) {
|
|
4532
|
+
if (d[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + d[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors)
|
|
4530
4533
|
return;
|
|
4531
4534
|
const b = "color: " + this.color;
|
|
4532
|
-
|
|
4535
|
+
d.splice(1, 0, b, "color: inherit");
|
|
4533
4536
|
let g = 0, m = 0;
|
|
4534
|
-
|
|
4537
|
+
d[0].replace(/%[a-zA-Z%]/g, (E) => {
|
|
4535
4538
|
E !== "%%" && (g++, E === "%c" && (m = g));
|
|
4536
|
-
}),
|
|
4539
|
+
}), d.splice(m, 0, b);
|
|
4537
4540
|
}
|
|
4538
4541
|
e.log = console.debug || console.log || (() => {
|
|
4539
4542
|
});
|
|
4540
|
-
function s(
|
|
4543
|
+
function s(d) {
|
|
4541
4544
|
try {
|
|
4542
|
-
|
|
4545
|
+
d ? e.storage.setItem("debug", d) : e.storage.removeItem("debug");
|
|
4543
4546
|
} catch {
|
|
4544
4547
|
}
|
|
4545
4548
|
}
|
|
4546
4549
|
function u() {
|
|
4547
|
-
let
|
|
4550
|
+
let d;
|
|
4548
4551
|
try {
|
|
4549
|
-
|
|
4552
|
+
d = e.storage.getItem("debug");
|
|
4550
4553
|
} catch {
|
|
4551
4554
|
}
|
|
4552
|
-
return !
|
|
4555
|
+
return !d && typeof O.process < "u" && "env" in O.process && (d = O.process.env.DEBUG), d;
|
|
4553
4556
|
}
|
|
4554
4557
|
function l() {
|
|
4555
4558
|
try {
|
|
@@ -4559,9 +4562,9 @@ var Ys = Js;
|
|
|
4559
4562
|
}
|
|
4560
4563
|
t.exports = Ys(e);
|
|
4561
4564
|
const { formatters: c } = t.exports;
|
|
4562
|
-
c.j = function(
|
|
4565
|
+
c.j = function(d) {
|
|
4563
4566
|
try {
|
|
4564
|
-
return JSON.stringify(
|
|
4567
|
+
return JSON.stringify(d);
|
|
4565
4568
|
} catch (b) {
|
|
4566
4569
|
return "[UnexpectedJSONParseError]: " + b.message;
|
|
4567
4570
|
}
|
|
@@ -4596,27 +4599,27 @@ rt.prototype.exec = function(t, e) {
|
|
|
4596
4599
|
else
|
|
4597
4600
|
try {
|
|
4598
4601
|
this.server = this.parent.override(t, r, this.opts);
|
|
4599
|
-
} catch (
|
|
4600
|
-
return Z("override errored", s), e(
|
|
4602
|
+
} catch (d) {
|
|
4603
|
+
return Z("override errored", s), e(d);
|
|
4601
4604
|
}
|
|
4602
4605
|
this.opts = typeof this.opts == "function" ? this.opts(this.server) : this.opts, Z("exec", s);
|
|
4603
4606
|
let u;
|
|
4604
|
-
const l = (
|
|
4607
|
+
const l = (d) => {
|
|
4605
4608
|
if (o) {
|
|
4606
4609
|
Z("loading complete", s);
|
|
4607
4610
|
return;
|
|
4608
4611
|
}
|
|
4609
|
-
this._error =
|
|
4612
|
+
this._error = d, Z(d ? "exec errored" : "exec completed", s), o = !0, u && clearTimeout(u), e(d);
|
|
4610
4613
|
};
|
|
4611
4614
|
this.timeout > 0 && (Z("setting up timeout", s, this.timeout), u = setTimeout(function() {
|
|
4612
4615
|
Z("timed out", s), u = null;
|
|
4613
|
-
const
|
|
4614
|
-
|
|
4616
|
+
const d = new ta(s);
|
|
4617
|
+
d.fn = r, l(d);
|
|
4615
4618
|
}, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
|
|
4616
4619
|
const c = r(this.server, this.opts, l);
|
|
4617
4620
|
c && typeof c.then == "function" && (Z("exec: resolving promise", s), c.then(
|
|
4618
4621
|
() => O.process.nextTick(l),
|
|
4619
|
-
(
|
|
4622
|
+
(d) => O.process.nextTick(l, d)
|
|
4620
4623
|
));
|
|
4621
4624
|
};
|
|
4622
4625
|
rt.prototype.loadedSoFar = function() {
|
|
@@ -4688,8 +4691,8 @@ const Gr = fn, aa = bn.EventEmitter, ua = kt.inherits, {
|
|
|
4688
4691
|
AVV_ERR_ROOT_PLG_BOOTED: fa,
|
|
4689
4692
|
AVV_ERR_READY_TIMEOUT: la
|
|
4690
4693
|
} = Un, ha = Hs, cr = sa, et = $n("avvio"), _t = Symbol("kAvvio"), Jt = Symbol("kThenifyDoNotWrap");
|
|
4691
|
-
function
|
|
4692
|
-
const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", c = o.onClose || "onClose",
|
|
4694
|
+
function da(t, e, r) {
|
|
4695
|
+
const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", c = o.onClose || "onClose", d = o.close || "close";
|
|
4693
4696
|
if (t[s])
|
|
4694
4697
|
throw new Wt(s);
|
|
4695
4698
|
if (t[u])
|
|
@@ -4698,7 +4701,7 @@ function pa(t, e, r) {
|
|
|
4698
4701
|
throw new Wt(l);
|
|
4699
4702
|
t[s] = function(b, g) {
|
|
4700
4703
|
return r.use(b, g), this;
|
|
4701
|
-
}, Object.defineProperty(t, "then", { get:
|
|
4704
|
+
}, Object.defineProperty(t, "then", { get: jn.bind(r) }), t[_t] = !0, t[u] = function(b) {
|
|
4702
4705
|
return typeof b != "function" ? r._loadRegistered() : (r.after(Yt(b, this)), this);
|
|
4703
4706
|
}, t[l] = function(b) {
|
|
4704
4707
|
if (b && typeof b != "function")
|
|
@@ -4708,24 +4711,24 @@ function pa(t, e, r) {
|
|
|
4708
4711
|
if (typeof b != "function")
|
|
4709
4712
|
throw new ft(c, typeof b);
|
|
4710
4713
|
return r.onClose(wa(b, this)), this;
|
|
4711
|
-
}, t[
|
|
4714
|
+
}, t[d] = function(b) {
|
|
4712
4715
|
if (b && typeof b != "function")
|
|
4713
|
-
throw new ft(
|
|
4716
|
+
throw new ft(d, typeof b);
|
|
4714
4717
|
return b ? (r.close(Yt(b, this)), this) : r.close();
|
|
4715
4718
|
};
|
|
4716
4719
|
}
|
|
4717
4720
|
function ee(t, e, r) {
|
|
4718
4721
|
if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof ee)) {
|
|
4719
4722
|
const o = new ee(t, e, r);
|
|
4720
|
-
return t &&
|
|
4723
|
+
return t && da(t, e, o), o;
|
|
4721
4724
|
}
|
|
4722
|
-
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 ha(), this._readyQ = Gr(this,
|
|
4725
|
+
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 ha(), this._readyQ = Gr(this, Dn, 1), this._readyQ.pause(), this._readyQ.drain = () => {
|
|
4723
4726
|
this.emit("start"), this._readyQ.drain = zr;
|
|
4724
4727
|
}, this._closeQ = Gr(this, ma, 1), this._closeQ.pause(), this._closeQ.drain = () => {
|
|
4725
4728
|
this.emit("close"), this._closeQ.drain = zr;
|
|
4726
|
-
}, this._doStart = null, this._root = new cr(this,
|
|
4729
|
+
}, this._doStart = null, this._root = new cr(this, pa.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
|
|
4727
4730
|
const l = this.pluginTree.start(null, s, u);
|
|
4728
|
-
this._root.once("loaded", (c,
|
|
4731
|
+
this._root.once("loaded", (c, d, b) => {
|
|
4729
4732
|
this.pluginTree.stop(l, b);
|
|
4730
4733
|
});
|
|
4731
4734
|
}), cr.loadPlugin.call(this, this._root, (o) => {
|
|
@@ -4743,7 +4746,7 @@ function ee(t, e, r) {
|
|
|
4743
4746
|
this._readyQ.resume();
|
|
4744
4747
|
});
|
|
4745
4748
|
}
|
|
4746
|
-
function
|
|
4749
|
+
function pa(t, e, r) {
|
|
4747
4750
|
this._doStart = r, e.autostart && this.start();
|
|
4748
4751
|
}
|
|
4749
4752
|
ua(ee, aa);
|
|
@@ -4766,15 +4769,15 @@ ee.prototype._loadRegistered = function() {
|
|
|
4766
4769
|
const t = this._current[0];
|
|
4767
4770
|
return !this.started && !this.booted && O.process.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
|
|
4768
4771
|
};
|
|
4769
|
-
Object.defineProperty(ee.prototype, "then", { get:
|
|
4772
|
+
Object.defineProperty(ee.prototype, "then", { get: jn });
|
|
4770
4773
|
ee.prototype._addPlugin = function(t, e, r) {
|
|
4771
4774
|
if (t = ya(t), e = e || {}, this.booted)
|
|
4772
4775
|
throw new fa();
|
|
4773
4776
|
const o = this._current[0], s = new cr(this, t, e, r);
|
|
4774
4777
|
if (s.once("start", (u, l, c) => {
|
|
4775
|
-
const
|
|
4778
|
+
const d = this.pluginTree.start(o.name, l, c);
|
|
4776
4779
|
s.once("loaded", (b, g, m) => {
|
|
4777
|
-
this.pluginTree.stop(
|
|
4780
|
+
this.pluginTree.stop(d, m);
|
|
4778
4781
|
});
|
|
4779
4782
|
}), o.loaded)
|
|
4780
4783
|
throw new Error(s.name, o.name);
|
|
@@ -4787,7 +4790,7 @@ ee.prototype.after = function(t) {
|
|
|
4787
4790
|
return this._loadRegistered();
|
|
4788
4791
|
this._addPlugin(e.bind(this), {}, !0);
|
|
4789
4792
|
function e(r, o, s) {
|
|
4790
|
-
|
|
4793
|
+
Dn.call(this, t, s);
|
|
4791
4794
|
}
|
|
4792
4795
|
return this;
|
|
4793
4796
|
};
|
|
@@ -4840,7 +4843,7 @@ ee.prototype.toJSON = function() {
|
|
|
4840
4843
|
};
|
|
4841
4844
|
function zr() {
|
|
4842
4845
|
}
|
|
4843
|
-
function
|
|
4846
|
+
function jn() {
|
|
4844
4847
|
if (this.booted) {
|
|
4845
4848
|
et("thenify returning null because we are already booted");
|
|
4846
4849
|
return;
|
|
@@ -4851,7 +4854,7 @@ function Dn() {
|
|
|
4851
4854
|
}
|
|
4852
4855
|
return et("thenify"), (t, e) => this._loadRegistered().then(() => (this[Jt] = !0, t(this._server)), e);
|
|
4853
4856
|
}
|
|
4854
|
-
function
|
|
4857
|
+
function Dn(t, e) {
|
|
4855
4858
|
const r = this._server, o = this._error;
|
|
4856
4859
|
let s;
|
|
4857
4860
|
if (this._error = null, t.length === 0)
|
|
@@ -4922,7 +4925,7 @@ yr.exports.express = function(t) {
|
|
|
4922
4925
|
};
|
|
4923
4926
|
var ba = yr.exports;
|
|
4924
4927
|
const va = /* @__PURE__ */ Zn(ba);
|
|
4925
|
-
function
|
|
4928
|
+
function ja(t, e = !0, r = !0) {
|
|
4926
4929
|
const o = e ? "https://grpc-sdk.streamlayer.io:443" : "https://grpc-sdk.next.streamlayer.io:443", s = va(/* @__PURE__ */ Object.create({}), { autostart: !1 });
|
|
4927
4930
|
return s.use(Ri), s.use(Ti, { sdkKey: t, host: o }), s.use(Pi), s.use(ki), s.use(ho), s.use(Zi), r && s.after(async (u, l, c) => {
|
|
4928
4931
|
if (u)
|
|
@@ -4933,5 +4936,5 @@ function Da(t, e = !0, r = !0) {
|
|
|
4933
4936
|
}), s;
|
|
4934
4937
|
}
|
|
4935
4938
|
export {
|
|
4936
|
-
|
|
4939
|
+
ja as StreamLayer
|
|
4937
4940
|
};
|