@streamlayer/sdk-web 0.28.14 → 0.28.15

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.
Files changed (3) hide show
  1. package/lib/cjs/index.js +13 -13
  2. package/lib/es/index.js +1418 -1323
  3. package/package.json +9 -9
package/lib/es/index.js CHANGED
@@ -1,33 +1,33 @@
1
- import { QuestionType as st, SilenceSetting as zr, QuestionStatus as Yt } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
1
+ import { QuestionType as st, SilenceSetting as Hr, QuestionStatus as Yt } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
2
2
  import "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
3
- import { SdkOverlayType as ae } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
4
- import { computed as fr, map as jn, atom as Ct } from "nanostores";
3
+ import { SdkOverlayType as ue } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
4
+ import { computed as fr, map as Vn, atom as _t } from "nanostores";
5
5
  import "@nanostores/logger";
6
6
  import "microdiff";
7
- import { Code as Mn, createPromiseClient as Vn, createCallbackClient as qn } from "@connectrpc/connect";
8
- import { createGrpcWebTransport as Gn } from "@connectrpc/connect-web";
9
- import { nanoquery as Qn } from "@nanostores/query";
10
- import { Events as zn } from "@streamlayer/sl-eslib/sports/events/events_connect";
11
- import { Client as Tt } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
12
- import { Users as Kr } from "@streamlayer/sl-eslib/users/users_connect";
13
- import { pino as Kn } from "pino";
7
+ import { Code as qn, createPromiseClient as Qn, createCallbackClient as Gn } from "@connectrpc/connect";
8
+ import { createGrpcWebTransport as zn } from "@connectrpc/connect-web";
9
+ import { nanoquery as Kn } from "@nanostores/query";
10
+ import { Events as Hn } from "@streamlayer/sl-eslib/sports/events/events_connect";
11
+ import { Client as Ct } from "@streamlayer/sl-eslib/sdkSettings/client/client_connect";
12
+ import { Users as Wr } from "@streamlayer/sl-eslib/users/users_connect";
13
+ import { pino as Wn } from "pino";
14
14
  import { Feed as ve } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_connect";
15
- import { Leaderboard as Hr } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
15
+ import { Leaderboard as Jr } from "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_connect";
16
16
  import "@streamlayer/sl-eslib/interactive/leaderboard/interactive.leaderboard_pb";
17
- var Wr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
- function Hn(t) {
17
+ var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
+ function Jn(t) {
19
19
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
20
20
  }
21
- var T = {}, Jr = {}, _t = {};
22
- _t.byteLength = Yn;
23
- _t.toByteArray = Zn;
24
- _t.fromByteArray = ri;
25
- var we = [], oe = [], Wn = typeof Uint8Array < "u" ? Uint8Array : Array, Nt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
26
- for (var Me = 0, Jn = Nt.length; Me < Jn; ++Me)
27
- we[Me] = Nt[Me], oe[Nt.charCodeAt(Me)] = Me;
28
- oe["-".charCodeAt(0)] = 62;
29
- oe["_".charCodeAt(0)] = 63;
30
- function Yr(t) {
21
+ var O = {}, Xr = {}, Tt = {};
22
+ Tt.byteLength = Zn;
23
+ Tt.toByteArray = ti;
24
+ Tt.fromByteArray = ii;
25
+ var we = [], se = [], Yn = typeof Uint8Array < "u" ? Uint8Array : Array, Nt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
26
+ for (var Me = 0, Xn = Nt.length; Me < Xn; ++Me)
27
+ we[Me] = Nt[Me], se[Nt.charCodeAt(Me)] = Me;
28
+ se["-".charCodeAt(0)] = 62;
29
+ se["_".charCodeAt(0)] = 63;
30
+ function Zr(t) {
31
31
  var e = t.length;
32
32
  if (e % 4 > 0)
33
33
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -36,30 +36,30 @@ function Yr(t) {
36
36
  var o = r === e ? 0 : 4 - r % 4;
37
37
  return [r, o];
38
38
  }
39
- function Yn(t) {
40
- var e = Yr(t), r = e[0], o = e[1];
39
+ function Zn(t) {
40
+ var e = Zr(t), r = e[0], o = e[1];
41
41
  return (r + o) * 3 / 4 - o;
42
42
  }
43
- function Xn(t, e, r) {
43
+ function ei(t, e, r) {
44
44
  return (e + r) * 3 / 4 - r;
45
45
  }
46
- function Zn(t) {
47
- var e, r = Yr(t), o = r[0], s = r[1], u = new Wn(Xn(t, o, s)), l = 0, f = s > 0 ? o - 4 : o, d;
48
- for (d = 0; d < f; d += 4)
49
- e = oe[t.charCodeAt(d)] << 18 | oe[t.charCodeAt(d + 1)] << 12 | oe[t.charCodeAt(d + 2)] << 6 | oe[t.charCodeAt(d + 3)], u[l++] = e >> 16 & 255, u[l++] = e >> 8 & 255, u[l++] = e & 255;
50
- return s === 2 && (e = oe[t.charCodeAt(d)] << 2 | oe[t.charCodeAt(d + 1)] >> 4, u[l++] = e & 255), s === 1 && (e = oe[t.charCodeAt(d)] << 10 | oe[t.charCodeAt(d + 1)] << 4 | oe[t.charCodeAt(d + 2)] >> 2, u[l++] = e >> 8 & 255, u[l++] = e & 255), u;
46
+ function ti(t) {
47
+ var e, r = Zr(t), o = r[0], s = r[1], u = new Yn(ei(t, o, s)), l = 0, f = s > 0 ? o - 4 : o, p;
48
+ for (p = 0; p < f; p += 4)
49
+ e = se[t.charCodeAt(p)] << 18 | se[t.charCodeAt(p + 1)] << 12 | se[t.charCodeAt(p + 2)] << 6 | se[t.charCodeAt(p + 3)], u[l++] = e >> 16 & 255, u[l++] = e >> 8 & 255, u[l++] = e & 255;
50
+ return s === 2 && (e = se[t.charCodeAt(p)] << 2 | se[t.charCodeAt(p + 1)] >> 4, u[l++] = e & 255), s === 1 && (e = se[t.charCodeAt(p)] << 10 | se[t.charCodeAt(p + 1)] << 4 | se[t.charCodeAt(p + 2)] >> 2, u[l++] = e >> 8 & 255, u[l++] = e & 255), u;
51
51
  }
52
- function ei(t) {
52
+ function ri(t) {
53
53
  return we[t >> 18 & 63] + we[t >> 12 & 63] + we[t >> 6 & 63] + we[t & 63];
54
54
  }
55
- function ti(t, e, r) {
55
+ function ni(t, e, r) {
56
56
  for (var o, s = [], u = e; u < r; u += 3)
57
- o = (t[u] << 16 & 16711680) + (t[u + 1] << 8 & 65280) + (t[u + 2] & 255), s.push(ei(o));
57
+ o = (t[u] << 16 & 16711680) + (t[u + 1] << 8 & 65280) + (t[u + 2] & 255), s.push(ri(o));
58
58
  return s.join("");
59
59
  }
60
- function ri(t) {
60
+ function ii(t) {
61
61
  for (var e, r = t.length, o = r % 3, s = [], u = 16383, l = 0, f = r - o; l < f; l += u)
62
- s.push(ti(t, l, l + u > f ? f : l + u));
62
+ s.push(ni(t, l, l + u > f ? f : l + u));
63
63
  return o === 1 ? (e = t[r - 1], s.push(
64
64
  we[e >> 2] + we[e << 4 & 63] + "=="
65
65
  )) : o === 2 && (e = (t[r - 2] << 8) + t[r - 1], s.push(
@@ -69,27 +69,27 @@ function ri(t) {
69
69
  var lr = {};
70
70
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
71
71
  lr.read = function(t, e, r, o, s) {
72
- var u, l, f = s * 8 - o - 1, d = (1 << f) - 1, A = d >> 1, g = -7, w = r ? s - 1 : 0, E = r ? -1 : 1, C = t[e + w];
73
- for (w += E, u = C & (1 << -g) - 1, C >>= -g, g += f; g > 0; u = u * 256 + t[e + w], w += E, g -= 8)
72
+ var u, l, f = s * 8 - o - 1, p = (1 << f) - 1, S = p >> 1, g = -7, b = r ? s - 1 : 0, E = r ? -1 : 1, _ = t[e + b];
73
+ for (b += E, u = _ & (1 << -g) - 1, _ >>= -g, g += f; g > 0; u = u * 256 + t[e + b], b += E, g -= 8)
74
74
  ;
75
- for (l = u & (1 << -g) - 1, u >>= -g, g += o; g > 0; l = l * 256 + t[e + w], w += E, g -= 8)
75
+ for (l = u & (1 << -g) - 1, u >>= -g, g += o; g > 0; l = l * 256 + t[e + b], b += E, g -= 8)
76
76
  ;
77
77
  if (u === 0)
78
- u = 1 - A;
78
+ u = 1 - S;
79
79
  else {
80
- if (u === d)
81
- return l ? NaN : (C ? -1 : 1) * (1 / 0);
82
- l = l + Math.pow(2, o), u = u - A;
80
+ if (u === p)
81
+ return l ? NaN : (_ ? -1 : 1) * (1 / 0);
82
+ l = l + Math.pow(2, o), u = u - S;
83
83
  }
84
- return (C ? -1 : 1) * l * Math.pow(2, u - o);
84
+ return (_ ? -1 : 1) * l * Math.pow(2, u - o);
85
85
  };
86
86
  lr.write = function(t, e, r, o, s, u) {
87
- var l, f, d, A = u * 8 - s - 1, g = (1 << A) - 1, w = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, C = o ? 0 : u - 1, P = o ? 1 : -1, N = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
88
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, l = g) : (l = Math.floor(Math.log(e) / Math.LN2), e * (d = Math.pow(2, -l)) < 1 && (l--, d *= 2), l + w >= 1 ? e += E / d : e += E * Math.pow(2, 1 - w), e * d >= 2 && (l++, d /= 2), l + w >= g ? (f = 0, l = g) : l + w >= 1 ? (f = (e * d - 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 + C] = f & 255, C += P, f /= 256, s -= 8)
87
+ var l, f, p, S = u * 8 - s - 1, g = (1 << S) - 1, b = g >> 1, E = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, _ = o ? 0 : u - 1, N = o ? 1 : -1, P = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
88
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, l = g) : (l = Math.floor(Math.log(e) / Math.LN2), e * (p = Math.pow(2, -l)) < 1 && (l--, p *= 2), l + b >= 1 ? e += E / p : e += E * Math.pow(2, 1 - b), e * p >= 2 && (l++, p /= 2), l + b >= g ? (f = 0, l = g) : l + b >= 1 ? (f = (e * p - 1) * Math.pow(2, s), l = l + b) : (f = e * Math.pow(2, b - 1) * Math.pow(2, s), l = 0)); s >= 8; t[r + _] = f & 255, _ += N, f /= 256, s -= 8)
89
89
  ;
90
- for (l = l << s | f, A += s; A > 0; t[r + C] = l & 255, C += P, l /= 256, A -= 8)
90
+ for (l = l << s | f, S += s; S > 0; t[r + _] = l & 255, _ += N, l /= 256, S -= 8)
91
91
  ;
92
- t[r + C - P] |= N * 128;
92
+ t[r + _ - N] |= P * 128;
93
93
  };
94
94
  /*!
95
95
  * The buffer module from node.js, for the browser.
@@ -98,8 +98,8 @@ lr.write = function(t, e, r, o, s, u) {
98
98
  * @license MIT
99
99
  */
100
100
  (function(t) {
101
- const e = _t, r = lr, o = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
102
- t.Buffer = f, t.SlowBuffer = X, t.INSPECT_MAX_BYTES = 50;
101
+ const e = Tt, r = lr, o = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
102
+ t.Buffer = f, t.SlowBuffer = C, t.INSPECT_MAX_BYTES = 50;
103
103
  const s = 2147483647;
104
104
  t.kMaxLength = s, f.TYPED_ARRAY_SUPPORT = u(), !f.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
105
105
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
@@ -139,22 +139,22 @@ lr.write = function(t, e, r, o, s, u) {
139
139
  throw new TypeError(
140
140
  'The "string" argument must be of type string. Received type number'
141
141
  );
142
- return w(a);
142
+ return b(a);
143
143
  }
144
- return d(a, n, i);
144
+ return p(a, n, i);
145
145
  }
146
146
  f.poolSize = 8192;
147
- function d(a, n, i) {
147
+ function p(a, n, i) {
148
148
  if (typeof a == "string")
149
149
  return E(a, n);
150
150
  if (ArrayBuffer.isView(a))
151
- return P(a);
151
+ return N(a);
152
152
  if (a == null)
153
153
  throw new TypeError(
154
154
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof a
155
155
  );
156
156
  if (ge(a, ArrayBuffer) || a && ge(a.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ge(a, SharedArrayBuffer) || a && ge(a.buffer, SharedArrayBuffer)))
157
- return N(a, n, i);
157
+ return P(a, n, i);
158
158
  if (typeof a == "number")
159
159
  throw new TypeError(
160
160
  'The "value" argument must not be of type number. Received type number'
@@ -162,7 +162,7 @@ lr.write = function(t, e, r, o, s, u) {
162
162
  const c = a.valueOf && a.valueOf();
163
163
  if (c != null && c !== a)
164
164
  return f.from(c, n, i);
165
- const h = Q(a);
165
+ const h = K(a);
166
166
  if (h)
167
167
  return h;
168
168
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof a[Symbol.toPrimitive] == "function")
@@ -172,50 +172,50 @@ lr.write = function(t, e, r, o, s, u) {
172
172
  );
173
173
  }
174
174
  f.from = function(a, n, i) {
175
- return d(a, n, i);
175
+ return p(a, n, i);
176
176
  }, Object.setPrototypeOf(f.prototype, Uint8Array.prototype), Object.setPrototypeOf(f, Uint8Array);
177
- function A(a) {
177
+ function S(a) {
178
178
  if (typeof a != "number")
179
179
  throw new TypeError('"size" argument must be of type number');
180
180
  if (a < 0)
181
181
  throw new RangeError('The value "' + a + '" is invalid for option "size"');
182
182
  }
183
183
  function g(a, n, i) {
184
- return A(a), a <= 0 ? l(a) : n !== void 0 ? typeof i == "string" ? l(a).fill(n, i) : l(a).fill(n) : l(a);
184
+ return S(a), a <= 0 ? l(a) : n !== void 0 ? typeof i == "string" ? l(a).fill(n, i) : l(a).fill(n) : l(a);
185
185
  }
186
186
  f.alloc = function(a, n, i) {
187
187
  return g(a, n, i);
188
188
  };
189
- function w(a) {
190
- return A(a), l(a < 0 ? 0 : z(a) | 0);
189
+ function b(a) {
190
+ return S(a), l(a < 0 ? 0 : I(a) | 0);
191
191
  }
192
192
  f.allocUnsafe = function(a) {
193
- return w(a);
193
+ return b(a);
194
194
  }, f.allocUnsafeSlow = function(a) {
195
- return w(a);
195
+ return b(a);
196
196
  };
197
197
  function E(a, n) {
198
198
  if ((typeof n != "string" || n === "") && (n = "utf8"), !f.isEncoding(n))
199
199
  throw new TypeError("Unknown encoding: " + n);
200
- const i = de(a, n) | 0;
200
+ const i = j(a, n) | 0;
201
201
  let c = l(i);
202
202
  const h = c.write(a, n);
203
203
  return h !== i && (c = c.slice(0, h)), c;
204
204
  }
205
- function C(a) {
206
- const n = a.length < 0 ? 0 : z(a.length) | 0, i = l(n);
205
+ function _(a) {
206
+ const n = a.length < 0 ? 0 : I(a.length) | 0, i = l(n);
207
207
  for (let c = 0; c < n; c += 1)
208
208
  i[c] = a[c] & 255;
209
209
  return i;
210
210
  }
211
- function P(a) {
211
+ function N(a) {
212
212
  if (ge(a, Uint8Array)) {
213
213
  const n = new Uint8Array(a);
214
- return N(n.buffer, n.byteOffset, n.byteLength);
214
+ return P(n.buffer, n.byteOffset, n.byteLength);
215
215
  }
216
- return C(a);
216
+ return _(a);
217
217
  }
218
- function N(a, n, i) {
218
+ function P(a, n, i) {
219
219
  if (n < 0 || a.byteLength < n)
220
220
  throw new RangeError('"offset" is outside of buffer bounds');
221
221
  if (a.byteLength < n + (i || 0))
@@ -223,22 +223,22 @@ lr.write = function(t, e, r, o, s, u) {
223
223
  let c;
224
224
  return n === void 0 && i === void 0 ? c = new Uint8Array(a) : i === void 0 ? c = new Uint8Array(a, n) : c = new Uint8Array(a, n, i), Object.setPrototypeOf(c, f.prototype), c;
225
225
  }
226
- function Q(a) {
226
+ function K(a) {
227
227
  if (f.isBuffer(a)) {
228
- const n = z(a.length) | 0, i = l(n);
228
+ const n = I(a.length) | 0, i = l(n);
229
229
  return i.length === 0 || a.copy(i, 0, 0, n), i;
230
230
  }
231
231
  if (a.length !== void 0)
232
- return typeof a.length != "number" || Rt(a.length) ? l(0) : C(a);
232
+ return typeof a.length != "number" || Rt(a.length) ? l(0) : _(a);
233
233
  if (a.type === "Buffer" && Array.isArray(a.data))
234
- return C(a.data);
234
+ return _(a.data);
235
235
  }
236
- function z(a) {
236
+ function I(a) {
237
237
  if (a >= s)
238
238
  throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + s.toString(16) + " bytes");
239
239
  return a | 0;
240
240
  }
241
- function X(a) {
241
+ function C(a) {
242
242
  return +a != a && (a = 0), f.alloc(+a);
243
243
  }
244
244
  f.isBuffer = function(n) {
@@ -301,7 +301,7 @@ lr.write = function(t, e, r, o, s, u) {
301
301
  }
302
302
  return h;
303
303
  };
304
- function de(a, n) {
304
+ function j(a, n) {
305
305
  if (f.isBuffer(a))
306
306
  return a.length;
307
307
  if (ArrayBuffer.isView(a) || ge(a, ArrayBuffer))
@@ -338,18 +338,18 @@ lr.write = function(t, e, r, o, s, u) {
338
338
  n = ("" + n).toLowerCase(), h = !0;
339
339
  }
340
340
  }
341
- f.byteLength = de;
342
- function te(a, n, i) {
341
+ f.byteLength = j;
342
+ function U(a, n, i) {
343
343
  let c = !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))
345
345
  return "";
346
346
  for (a || (a = "utf8"); ; )
347
347
  switch (a) {
348
348
  case "hex":
349
- return le(this, n, i);
349
+ return he(this, n, i);
350
350
  case "utf8":
351
351
  case "utf-8":
352
- return fe(this, n, i);
352
+ return le(this, n, i);
353
353
  case "ascii":
354
354
  return rt(this, n, i);
355
355
  case "latin1":
@@ -369,7 +369,7 @@ lr.write = function(t, e, r, o, s, u) {
369
369
  }
370
370
  }
371
371
  f.prototype._isBuffer = !0;
372
- function B(a, n, i) {
372
+ function F(a, n, i) {
373
373
  const c = a[n];
374
374
  a[n] = a[i], a[i] = c;
375
375
  }
@@ -378,25 +378,25 @@ lr.write = function(t, e, r, o, s, u) {
378
378
  if (n % 2 !== 0)
379
379
  throw new RangeError("Buffer size must be a multiple of 16-bits");
380
380
  for (let i = 0; i < n; i += 2)
381
- B(this, i, i + 1);
381
+ F(this, i, i + 1);
382
382
  return this;
383
383
  }, f.prototype.swap32 = function() {
384
384
  const n = this.length;
385
385
  if (n % 4 !== 0)
386
386
  throw new RangeError("Buffer size must be a multiple of 32-bits");
387
387
  for (let i = 0; i < n; i += 4)
388
- B(this, i, i + 3), B(this, i + 1, i + 2);
388
+ F(this, i, i + 3), F(this, i + 1, i + 2);
389
389
  return this;
390
390
  }, f.prototype.swap64 = function() {
391
391
  const n = this.length;
392
392
  if (n % 8 !== 0)
393
393
  throw new RangeError("Buffer size must be a multiple of 64-bits");
394
394
  for (let i = 0; i < n; i += 8)
395
- B(this, i, i + 7), B(this, i + 1, i + 6), B(this, i + 2, i + 5), B(this, i + 3, i + 4);
395
+ F(this, i, i + 7), F(this, i + 1, i + 6), F(this, i + 2, i + 5), F(this, i + 3, i + 4);
396
396
  return this;
397
397
  }, f.prototype.toString = function() {
398
398
  const n = this.length;
399
- return n === 0 ? "" : arguments.length === 0 ? fe(this, 0, n) : te.apply(this, arguments);
399
+ return n === 0 ? "" : arguments.length === 0 ? le(this, 0, n) : U.apply(this, arguments);
400
400
  }, f.prototype.toLocaleString = f.prototype.toString, f.prototype.equals = function(n) {
401
401
  if (!f.isBuffer(n))
402
402
  throw new TypeError("Argument must be a Buffer");
@@ -420,16 +420,16 @@ lr.write = function(t, e, r, o, s, u) {
420
420
  return 1;
421
421
  if (i >>>= 0, c >>>= 0, h >>>= 0, y >>>= 0, this === n)
422
422
  return 0;
423
- let m = y - h, _ = c - i;
424
- const q = Math.min(m, _), M = this.slice(h, y), G = n.slice(i, c);
425
- for (let D = 0; D < q; ++D)
426
- if (M[D] !== G[D]) {
427
- m = M[D], _ = G[D];
423
+ let m = y - h, R = c - i;
424
+ const W = Math.min(m, R), z = this.slice(h, y), J = n.slice(i, c);
425
+ for (let Q = 0; Q < W; ++Q)
426
+ if (z[Q] !== J[Q]) {
427
+ m = z[Q], R = J[Q];
428
428
  break;
429
429
  }
430
- return m < _ ? -1 : _ < m ? 1 : 0;
430
+ return m < R ? -1 : R < m ? 1 : 0;
431
431
  };
432
- function j(a, n, i, c, h) {
432
+ function x(a, n, i, c, h) {
433
433
  if (a.length === 0)
434
434
  return -1;
435
435
  if (typeof i == "string" ? (c = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i, Rt(i) && (i = h ? 0 : a.length - 1), i < 0 && (i = a.length + i), i >= a.length) {
@@ -442,51 +442,51 @@ lr.write = function(t, e, r, o, s, u) {
442
442
  else
443
443
  return -1;
444
444
  if (typeof n == "string" && (n = f.from(n, c)), f.isBuffer(n))
445
- return n.length === 0 ? -1 : O(a, n, i, c, h);
445
+ return n.length === 0 ? -1 : k(a, n, i, c, h);
446
446
  if (typeof n == "number")
447
- return n = n & 255, typeof Uint8Array.prototype.indexOf == "function" ? h ? Uint8Array.prototype.indexOf.call(a, n, i) : Uint8Array.prototype.lastIndexOf.call(a, n, i) : O(a, [n], i, c, h);
447
+ return n = n & 255, typeof Uint8Array.prototype.indexOf == "function" ? h ? Uint8Array.prototype.indexOf.call(a, n, i) : Uint8Array.prototype.lastIndexOf.call(a, n, i) : k(a, [n], i, c, h);
448
448
  throw new TypeError("val must be string, number or Buffer");
449
449
  }
450
- function O(a, n, i, c, h) {
451
- let y = 1, m = a.length, _ = n.length;
450
+ function k(a, n, i, c, h) {
451
+ let y = 1, m = a.length, R = n.length;
452
452
  if (c !== void 0 && (c = String(c).toLowerCase(), c === "ucs2" || c === "ucs-2" || c === "utf16le" || c === "utf-16le")) {
453
453
  if (a.length < 2 || n.length < 2)
454
454
  return -1;
455
- y = 2, m /= 2, _ /= 2, i /= 2;
455
+ y = 2, m /= 2, R /= 2, i /= 2;
456
456
  }
457
- function q(G, D) {
458
- return y === 1 ? G[D] : G.readUInt16BE(D * y);
457
+ function W(J, Q) {
458
+ return y === 1 ? J[Q] : J.readUInt16BE(Q * y);
459
459
  }
460
- let M;
460
+ let z;
461
461
  if (h) {
462
- let G = -1;
463
- for (M = i; M < m; M++)
464
- if (q(a, M) === q(n, G === -1 ? 0 : M - G)) {
465
- if (G === -1 && (G = M), M - G + 1 === _)
466
- return G * y;
462
+ let J = -1;
463
+ for (z = i; z < m; z++)
464
+ if (W(a, z) === W(n, J === -1 ? 0 : z - J)) {
465
+ if (J === -1 && (J = z), z - J + 1 === R)
466
+ return J * y;
467
467
  } else
468
- G !== -1 && (M -= M - G), G = -1;
468
+ J !== -1 && (z -= z - J), J = -1;
469
469
  } else
470
- for (i + _ > m && (i = m - _), M = i; M >= 0; M--) {
471
- let G = !0;
472
- for (let D = 0; D < _; D++)
473
- if (q(a, M + D) !== q(n, D)) {
474
- G = !1;
470
+ for (i + R > m && (i = m - R), z = i; z >= 0; z--) {
471
+ let J = !0;
472
+ for (let Q = 0; Q < R; Q++)
473
+ if (W(a, z + Q) !== W(n, Q)) {
474
+ J = !1;
475
475
  break;
476
476
  }
477
- if (G)
478
- return M;
477
+ if (J)
478
+ return z;
479
479
  }
480
480
  return -1;
481
481
  }
482
482
  f.prototype.includes = function(n, i, c) {
483
483
  return this.indexOf(n, i, c) !== -1;
484
484
  }, f.prototype.indexOf = function(n, i, c) {
485
- return j(this, n, i, c, !0);
485
+ return x(this, n, i, c, !0);
486
486
  }, f.prototype.lastIndexOf = function(n, i, c) {
487
- return j(this, n, i, c, !1);
487
+ return x(this, n, i, c, !1);
488
488
  };
489
- function re(a, n, i, c) {
489
+ function G(a, n, i, c) {
490
490
  i = Number(i) || 0;
491
491
  const h = a.length - i;
492
492
  c ? (c = Number(c), c > h && (c = h)) : c = h;
@@ -494,23 +494,23 @@ lr.write = function(t, e, r, o, s, u) {
494
494
  c > y / 2 && (c = y / 2);
495
495
  let m;
496
496
  for (m = 0; m < c; ++m) {
497
- const _ = parseInt(n.substr(m * 2, 2), 16);
498
- if (Rt(_))
497
+ const R = parseInt(n.substr(m * 2, 2), 16);
498
+ if (Rt(R))
499
499
  return m;
500
- a[i + m] = _;
500
+ a[i + m] = R;
501
501
  }
502
502
  return m;
503
503
  }
504
- function ne(a, n, i, c) {
504
+ function ie(a, n, i, c) {
505
505
  return it(nt(n, a.length - i), a, i, c);
506
506
  }
507
- function _e(a, n, i, c) {
507
+ function Te(a, n, i, c) {
508
508
  return it(Pt(n), a, i, c);
509
509
  }
510
510
  function Se(a, n, i, c) {
511
511
  return it(ht(n), a, i, c);
512
512
  }
513
- function ce(a, n, i, c) {
513
+ function fe(a, n, i, c) {
514
514
  return it(v(n, a.length - i), a, i, c);
515
515
  }
516
516
  f.prototype.write = function(n, i, c, h) {
@@ -532,21 +532,21 @@ lr.write = function(t, e, r, o, s, u) {
532
532
  for (; ; )
533
533
  switch (h) {
534
534
  case "hex":
535
- return re(this, n, i, c);
535
+ return G(this, n, i, c);
536
536
  case "utf8":
537
537
  case "utf-8":
538
- return ne(this, n, i, c);
538
+ return ie(this, n, i, c);
539
539
  case "ascii":
540
540
  case "latin1":
541
541
  case "binary":
542
- return _e(this, n, i, c);
542
+ return Te(this, n, i, c);
543
543
  case "base64":
544
544
  return Se(this, n, i, c);
545
545
  case "ucs2":
546
546
  case "ucs-2":
547
547
  case "utf16le":
548
548
  case "utf-16le":
549
- return ce(this, n, i, c);
549
+ return fe(this, n, i, c);
550
550
  default:
551
551
  if (m)
552
552
  throw new TypeError("Unknown encoding: " + h);
@@ -561,30 +561,30 @@ lr.write = function(t, e, r, o, s, u) {
561
561
  function tt(a, n, i) {
562
562
  return n === 0 && i === a.length ? e.fromByteArray(a) : e.fromByteArray(a.slice(n, i));
563
563
  }
564
- function fe(a, n, i) {
564
+ function le(a, n, i) {
565
565
  i = Math.min(a.length, i);
566
566
  const c = [];
567
567
  let h = n;
568
568
  for (; h < i; ) {
569
569
  const y = a[h];
570
- let m = null, _ = y > 239 ? 4 : y > 223 ? 3 : y > 191 ? 2 : 1;
571
- if (h + _ <= i) {
572
- let q, M, G, D;
573
- switch (_) {
570
+ let m = null, R = y > 239 ? 4 : y > 223 ? 3 : y > 191 ? 2 : 1;
571
+ if (h + R <= i) {
572
+ let W, z, J, Q;
573
+ switch (R) {
574
574
  case 1:
575
575
  y < 128 && (m = y);
576
576
  break;
577
577
  case 2:
578
- q = a[h + 1], (q & 192) === 128 && (D = (y & 31) << 6 | q & 63, D > 127 && (m = D));
578
+ W = a[h + 1], (W & 192) === 128 && (Q = (y & 31) << 6 | W & 63, Q > 127 && (m = Q));
579
579
  break;
580
580
  case 3:
581
- q = a[h + 1], M = a[h + 2], (q & 192) === 128 && (M & 192) === 128 && (D = (y & 15) << 12 | (q & 63) << 6 | M & 63, D > 2047 && (D < 55296 || D > 57343) && (m = D));
581
+ W = a[h + 1], z = a[h + 2], (W & 192) === 128 && (z & 192) === 128 && (Q = (y & 15) << 12 | (W & 63) << 6 | z & 63, Q > 2047 && (Q < 55296 || Q > 57343) && (m = Q));
582
582
  break;
583
583
  case 4:
584
- q = a[h + 1], M = a[h + 2], G = a[h + 3], (q & 192) === 128 && (M & 192) === 128 && (G & 192) === 128 && (D = (y & 15) << 18 | (q & 63) << 12 | (M & 63) << 6 | G & 63, D > 65535 && D < 1114112 && (m = D));
584
+ W = a[h + 1], z = a[h + 2], J = a[h + 3], (W & 192) === 128 && (z & 192) === 128 && (J & 192) === 128 && (Q = (y & 15) << 18 | (W & 63) << 12 | (z & 63) << 6 | J & 63, Q > 65535 && Q < 1114112 && (m = Q));
585
585
  }
586
586
  }
587
- m === null ? (m = 65533, _ = 1) : m > 65535 && (m -= 65536, c.push(m >>> 10 & 1023 | 55296), m = 56320 | m & 1023), c.push(m), h += _;
587
+ m === null ? (m = 65533, R = 1) : m > 65535 && (m -= 65536, c.push(m >>> 10 & 1023 | 55296), m = 56320 | m & 1023), c.push(m), h += R;
588
588
  }
589
589
  return xe(c);
590
590
  }
@@ -615,12 +615,12 @@ lr.write = function(t, e, r, o, s, u) {
615
615
  c += String.fromCharCode(a[h]);
616
616
  return c;
617
617
  }
618
- function le(a, n, i) {
618
+ function he(a, n, i) {
619
619
  const c = a.length;
620
620
  (!n || n < 0) && (n = 0), (!i || i < 0 || i > c) && (i = c);
621
621
  let h = "";
622
622
  for (let y = n; y < i; ++y)
623
- h += $n[a[y]];
623
+ h += Dn[a[y]];
624
624
  return h;
625
625
  }
626
626
  function ke(a, n, i) {
@@ -636,95 +636,95 @@ lr.write = function(t, e, r, o, s, u) {
636
636
  const h = this.subarray(n, i);
637
637
  return Object.setPrototypeOf(h, f.prototype), h;
638
638
  };
639
- function V(a, n, i) {
639
+ function H(a, n, i) {
640
640
  if (a % 1 !== 0 || a < 0)
641
641
  throw new RangeError("offset is not uint");
642
642
  if (a + n > i)
643
643
  throw new RangeError("Trying to access beyond buffer length");
644
644
  }
645
645
  f.prototype.readUintLE = f.prototype.readUIntLE = function(n, i, c) {
646
- n = n >>> 0, i = i >>> 0, c || V(n, i, this.length);
646
+ n = n >>> 0, i = i >>> 0, c || H(n, i, this.length);
647
647
  let h = this[n], y = 1, m = 0;
648
648
  for (; ++m < i && (y *= 256); )
649
649
  h += this[n + m] * y;
650
650
  return h;
651
651
  }, f.prototype.readUintBE = f.prototype.readUIntBE = function(n, i, c) {
652
- n = n >>> 0, i = i >>> 0, c || V(n, i, this.length);
652
+ n = n >>> 0, i = i >>> 0, c || H(n, i, this.length);
653
653
  let h = this[n + --i], y = 1;
654
654
  for (; i > 0 && (y *= 256); )
655
655
  h += this[n + --i] * y;
656
656
  return h;
657
657
  }, f.prototype.readUint8 = f.prototype.readUInt8 = function(n, i) {
658
- return n = n >>> 0, i || V(n, 1, this.length), this[n];
658
+ return n = n >>> 0, i || H(n, 1, this.length), this[n];
659
659
  }, f.prototype.readUint16LE = f.prototype.readUInt16LE = function(n, i) {
660
- return n = n >>> 0, i || V(n, 2, this.length), this[n] | this[n + 1] << 8;
660
+ return n = n >>> 0, i || H(n, 2, this.length), this[n] | this[n + 1] << 8;
661
661
  }, f.prototype.readUint16BE = f.prototype.readUInt16BE = function(n, i) {
662
- return n = n >>> 0, i || V(n, 2, this.length), this[n] << 8 | this[n + 1];
662
+ return n = n >>> 0, i || H(n, 2, this.length), this[n] << 8 | this[n + 1];
663
663
  }, f.prototype.readUint32LE = f.prototype.readUInt32LE = function(n, i) {
664
- return n = n >>> 0, i || V(n, 4, this.length), (this[n] | this[n + 1] << 8 | this[n + 2] << 16) + this[n + 3] * 16777216;
664
+ return n = n >>> 0, i || H(n, 4, this.length), (this[n] | this[n + 1] << 8 | this[n + 2] << 16) + this[n + 3] * 16777216;
665
665
  }, f.prototype.readUint32BE = f.prototype.readUInt32BE = function(n, i) {
666
- 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
+ return n = n >>> 0, i || H(n, 4, this.length), this[n] * 16777216 + (this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3]);
667
667
  }, f.prototype.readBigUInt64LE = Pe(function(n) {
668
- n = n >>> 0, he(n, "offset");
668
+ n = n >>> 0, pe(n, "offset");
669
669
  const i = this[n], c = this[n + 7];
670
- (i === void 0 || c === void 0) && ie(n, this.length - 8);
670
+ (i === void 0 || c === void 0) && oe(n, this.length - 8);
671
671
  const h = i + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24, y = this[++n] + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + c * 2 ** 24;
672
672
  return BigInt(h) + (BigInt(y) << BigInt(32));
673
673
  }), f.prototype.readBigUInt64BE = Pe(function(n) {
674
- n = n >>> 0, he(n, "offset");
674
+ n = n >>> 0, pe(n, "offset");
675
675
  const i = this[n], c = this[n + 7];
676
- (i === void 0 || c === void 0) && ie(n, this.length - 8);
676
+ (i === void 0 || c === void 0) && oe(n, this.length - 8);
677
677
  const h = i * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + this[++n], y = this[++n] * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + c;
678
678
  return (BigInt(h) << BigInt(32)) + BigInt(y);
679
679
  }), f.prototype.readIntLE = function(n, i, c) {
680
- n = n >>> 0, i = i >>> 0, c || V(n, i, this.length);
680
+ n = n >>> 0, i = i >>> 0, c || H(n, i, this.length);
681
681
  let h = this[n], y = 1, m = 0;
682
682
  for (; ++m < i && (y *= 256); )
683
683
  h += this[n + m] * y;
684
684
  return y *= 128, h >= y && (h -= Math.pow(2, 8 * i)), h;
685
685
  }, f.prototype.readIntBE = function(n, i, c) {
686
- n = n >>> 0, i = i >>> 0, c || V(n, i, this.length);
686
+ n = n >>> 0, i = i >>> 0, c || H(n, i, this.length);
687
687
  let h = i, y = 1, m = this[n + --h];
688
688
  for (; h > 0 && (y *= 256); )
689
689
  m += this[n + --h] * y;
690
690
  return y *= 128, m >= y && (m -= Math.pow(2, 8 * i)), m;
691
691
  }, f.prototype.readInt8 = function(n, i) {
692
- return n = n >>> 0, i || V(n, 1, this.length), this[n] & 128 ? (255 - this[n] + 1) * -1 : this[n];
692
+ return n = n >>> 0, i || H(n, 1, this.length), this[n] & 128 ? (255 - this[n] + 1) * -1 : this[n];
693
693
  }, f.prototype.readInt16LE = function(n, i) {
694
- n = n >>> 0, i || V(n, 2, this.length);
694
+ n = n >>> 0, i || H(n, 2, this.length);
695
695
  const c = this[n] | this[n + 1] << 8;
696
696
  return c & 32768 ? c | 4294901760 : c;
697
697
  }, f.prototype.readInt16BE = function(n, i) {
698
- n = n >>> 0, i || V(n, 2, this.length);
698
+ n = n >>> 0, i || H(n, 2, this.length);
699
699
  const c = this[n + 1] | this[n] << 8;
700
700
  return c & 32768 ? c | 4294901760 : c;
701
701
  }, f.prototype.readInt32LE = function(n, i) {
702
- return n = n >>> 0, i || V(n, 4, this.length), this[n] | this[n + 1] << 8 | this[n + 2] << 16 | this[n + 3] << 24;
702
+ return n = n >>> 0, i || H(n, 4, this.length), this[n] | this[n + 1] << 8 | this[n + 2] << 16 | this[n + 3] << 24;
703
703
  }, f.prototype.readInt32BE = function(n, i) {
704
- 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
+ return n = n >>> 0, i || H(n, 4, this.length), this[n] << 24 | this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3];
705
705
  }, f.prototype.readBigInt64LE = Pe(function(n) {
706
- n = n >>> 0, he(n, "offset");
706
+ n = n >>> 0, pe(n, "offset");
707
707
  const i = this[n], c = this[n + 7];
708
- (i === void 0 || c === void 0) && ie(n, this.length - 8);
708
+ (i === void 0 || c === void 0) && oe(n, this.length - 8);
709
709
  const h = this[n + 4] + this[n + 5] * 2 ** 8 + this[n + 6] * 2 ** 16 + (c << 24);
710
710
  return (BigInt(h) << BigInt(32)) + BigInt(i + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24);
711
711
  }), f.prototype.readBigInt64BE = Pe(function(n) {
712
- n = n >>> 0, he(n, "offset");
712
+ n = n >>> 0, pe(n, "offset");
713
713
  const i = this[n], c = this[n + 7];
714
- (i === void 0 || c === void 0) && ie(n, this.length - 8);
714
+ (i === void 0 || c === void 0) && oe(n, this.length - 8);
715
715
  const h = (i << 24) + // Overflow
716
716
  this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + this[++n];
717
717
  return (BigInt(h) << BigInt(32)) + BigInt(this[++n] * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + c);
718
718
  }), f.prototype.readFloatLE = function(n, i) {
719
- return n = n >>> 0, i || V(n, 4, this.length), r.read(this, n, !0, 23, 4);
719
+ return n = n >>> 0, i || H(n, 4, this.length), r.read(this, n, !0, 23, 4);
720
720
  }, f.prototype.readFloatBE = function(n, i) {
721
- return n = n >>> 0, i || V(n, 4, this.length), r.read(this, n, !1, 23, 4);
721
+ return n = n >>> 0, i || H(n, 4, this.length), r.read(this, n, !1, 23, 4);
722
722
  }, f.prototype.readDoubleLE = function(n, i) {
723
- return n = n >>> 0, i || V(n, 8, this.length), r.read(this, n, !0, 52, 8);
723
+ return n = n >>> 0, i || H(n, 8, this.length), r.read(this, n, !0, 52, 8);
724
724
  }, f.prototype.readDoubleBE = function(n, i) {
725
- return n = n >>> 0, i || V(n, 8, this.length), r.read(this, n, !1, 52, 8);
725
+ return n = n >>> 0, i || H(n, 8, this.length), r.read(this, n, !1, 52, 8);
726
726
  };
727
- function p(a, n, i, c, h, y) {
727
+ function d(a, n, i, c, h, y) {
728
728
  if (!f.isBuffer(a))
729
729
  throw new TypeError('"buffer" argument must be a Buffer instance');
730
730
  if (n > h || n < y)
@@ -734,8 +734,8 @@ lr.write = function(t, e, r, o, s, u) {
734
734
  }
735
735
  f.prototype.writeUintLE = f.prototype.writeUIntLE = function(n, i, c, h) {
736
736
  if (n = +n, i = i >>> 0, c = c >>> 0, !h) {
737
- const _ = Math.pow(2, 8 * c) - 1;
738
- p(this, n, i, c, _, 0);
737
+ const R = Math.pow(2, 8 * c) - 1;
738
+ d(this, n, i, c, R, 0);
739
739
  }
740
740
  let y = 1, m = 0;
741
741
  for (this[i] = n & 255; ++m < c && (y *= 256); )
@@ -743,32 +743,32 @@ lr.write = function(t, e, r, o, s, u) {
743
743
  return i + c;
744
744
  }, f.prototype.writeUintBE = f.prototype.writeUIntBE = function(n, i, c, h) {
745
745
  if (n = +n, i = i >>> 0, c = c >>> 0, !h) {
746
- const _ = Math.pow(2, 8 * c) - 1;
747
- p(this, n, i, c, _, 0);
746
+ const R = Math.pow(2, 8 * c) - 1;
747
+ d(this, n, i, c, R, 0);
748
748
  }
749
749
  let y = c - 1, m = 1;
750
750
  for (this[i + y] = n & 255; --y >= 0 && (m *= 256); )
751
751
  this[i + y] = n / m & 255;
752
752
  return i + c;
753
753
  }, f.prototype.writeUint8 = f.prototype.writeUInt8 = function(n, i, c) {
754
- return n = +n, i = i >>> 0, c || p(this, n, i, 1, 255, 0), this[i] = n & 255, i + 1;
754
+ return n = +n, i = i >>> 0, c || d(this, n, i, 1, 255, 0), this[i] = n & 255, i + 1;
755
755
  }, f.prototype.writeUint16LE = f.prototype.writeUInt16LE = function(n, i, c) {
756
- return n = +n, i = i >>> 0, c || p(this, n, i, 2, 65535, 0), this[i] = n & 255, this[i + 1] = n >>> 8, i + 2;
756
+ return n = +n, i = i >>> 0, c || d(this, n, i, 2, 65535, 0), this[i] = n & 255, this[i + 1] = n >>> 8, i + 2;
757
757
  }, f.prototype.writeUint16BE = f.prototype.writeUInt16BE = function(n, i, c) {
758
- return n = +n, i = i >>> 0, c || p(this, n, i, 2, 65535, 0), this[i] = n >>> 8, this[i + 1] = n & 255, i + 2;
758
+ return n = +n, i = i >>> 0, c || d(this, n, i, 2, 65535, 0), this[i] = n >>> 8, this[i + 1] = n & 255, i + 2;
759
759
  }, f.prototype.writeUint32LE = f.prototype.writeUInt32LE = function(n, i, c) {
760
- return n = +n, i = i >>> 0, c || 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;
760
+ return n = +n, i = i >>> 0, c || d(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
  }, f.prototype.writeUint32BE = f.prototype.writeUInt32BE = function(n, i, c) {
762
- return n = +n, i = i >>> 0, c || 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;
762
+ 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;
763
763
  };
764
- function b(a, n, i, c, h) {
764
+ function w(a, n, i, c, h) {
765
765
  ye(n, c, h, a, i, 7);
766
766
  let y = Number(n & BigInt(4294967295));
767
767
  a[i++] = y, y = y >> 8, a[i++] = y, y = y >> 8, a[i++] = y, y = y >> 8, a[i++] = y;
768
768
  let m = Number(n >> BigInt(32) & BigInt(4294967295));
769
769
  return a[i++] = m, m = m >> 8, a[i++] = m, m = m >> 8, a[i++] = m, m = m >> 8, a[i++] = m, i;
770
770
  }
771
- function S(a, n, i, c, h) {
771
+ function A(a, n, i, c, h) {
772
772
  ye(n, c, h, a, i, 7);
773
773
  let y = Number(n & BigInt(4294967295));
774
774
  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;
@@ -776,63 +776,63 @@ lr.write = function(t, e, r, o, s, u) {
776
776
  return a[i + 3] = m, m = m >> 8, a[i + 2] = m, m = m >> 8, a[i + 1] = m, m = m >> 8, a[i] = m, i + 8;
777
777
  }
778
778
  f.prototype.writeBigUInt64LE = Pe(function(n, i = 0) {
779
- return b(this, n, i, BigInt(0), BigInt("0xffffffffffffffff"));
779
+ return w(this, n, i, BigInt(0), BigInt("0xffffffffffffffff"));
780
780
  }), f.prototype.writeBigUInt64BE = Pe(function(n, i = 0) {
781
- return S(this, n, i, BigInt(0), BigInt("0xffffffffffffffff"));
781
+ return A(this, n, i, BigInt(0), BigInt("0xffffffffffffffff"));
782
782
  }), f.prototype.writeIntLE = function(n, i, c, h) {
783
783
  if (n = +n, i = i >>> 0, !h) {
784
- const q = Math.pow(2, 8 * c - 1);
785
- p(this, n, i, c, q - 1, -q);
784
+ const W = Math.pow(2, 8 * c - 1);
785
+ d(this, n, i, c, W - 1, -W);
786
786
  }
787
- let y = 0, m = 1, _ = 0;
787
+ let y = 0, m = 1, R = 0;
788
788
  for (this[i] = n & 255; ++y < c && (m *= 256); )
789
- n < 0 && _ === 0 && this[i + y - 1] !== 0 && (_ = 1), this[i + y] = (n / m >> 0) - _ & 255;
789
+ n < 0 && R === 0 && this[i + y - 1] !== 0 && (R = 1), this[i + y] = (n / m >> 0) - R & 255;
790
790
  return i + c;
791
791
  }, f.prototype.writeIntBE = function(n, i, c, h) {
792
792
  if (n = +n, i = i >>> 0, !h) {
793
- const q = Math.pow(2, 8 * c - 1);
794
- p(this, n, i, c, q - 1, -q);
793
+ const W = Math.pow(2, 8 * c - 1);
794
+ d(this, n, i, c, W - 1, -W);
795
795
  }
796
- let y = c - 1, m = 1, _ = 0;
796
+ let y = c - 1, m = 1, R = 0;
797
797
  for (this[i + y] = n & 255; --y >= 0 && (m *= 256); )
798
- n < 0 && _ === 0 && this[i + y + 1] !== 0 && (_ = 1), this[i + y] = (n / m >> 0) - _ & 255;
798
+ n < 0 && R === 0 && this[i + y + 1] !== 0 && (R = 1), this[i + y] = (n / m >> 0) - R & 255;
799
799
  return i + c;
800
800
  }, f.prototype.writeInt8 = function(n, i, c) {
801
- return n = +n, i = i >>> 0, c || p(this, n, i, 1, 127, -128), n < 0 && (n = 255 + n + 1), this[i] = n & 255, i + 1;
801
+ return n = +n, i = i >>> 0, c || d(this, n, i, 1, 127, -128), n < 0 && (n = 255 + n + 1), this[i] = n & 255, i + 1;
802
802
  }, f.prototype.writeInt16LE = function(n, i, c) {
803
- return n = +n, i = i >>> 0, c || p(this, n, i, 2, 32767, -32768), this[i] = n & 255, this[i + 1] = n >>> 8, i + 2;
803
+ return n = +n, i = i >>> 0, c || d(this, n, i, 2, 32767, -32768), this[i] = n & 255, this[i + 1] = n >>> 8, i + 2;
804
804
  }, f.prototype.writeInt16BE = function(n, i, c) {
805
- return n = +n, i = i >>> 0, c || p(this, n, i, 2, 32767, -32768), this[i] = n >>> 8, this[i + 1] = n & 255, i + 2;
805
+ return n = +n, i = i >>> 0, c || d(this, n, i, 2, 32767, -32768), this[i] = n >>> 8, this[i + 1] = n & 255, i + 2;
806
806
  }, f.prototype.writeInt32LE = function(n, i, c) {
807
- return n = +n, i = i >>> 0, c || 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;
807
+ return n = +n, i = i >>> 0, c || d(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
  }, f.prototype.writeInt32BE = function(n, i, c) {
809
- return n = +n, i = i >>> 0, c || 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;
809
+ return n = +n, i = i >>> 0, c || d(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
  }, f.prototype.writeBigInt64LE = Pe(function(n, i = 0) {
811
- return b(this, n, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
811
+ return w(this, n, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
812
812
  }), f.prototype.writeBigInt64BE = Pe(function(n, i = 0) {
813
- return S(this, n, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
813
+ return A(this, n, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
814
814
  });
815
- function I(a, n, i, c, h, y) {
815
+ function T(a, n, i, c, h, y) {
816
816
  if (i + c > a.length)
817
817
  throw new RangeError("Index out of range");
818
818
  if (i < 0)
819
819
  throw new RangeError("Index out of range");
820
820
  }
821
- function R(a, n, i, c, h) {
822
- return n = +n, i = i >>> 0, h || I(a, n, i, 4), r.write(a, n, i, c, 23, 4), i + 4;
821
+ function D(a, n, i, c, h) {
822
+ return n = +n, i = i >>> 0, h || T(a, n, i, 4), r.write(a, n, i, c, 23, 4), i + 4;
823
823
  }
824
824
  f.prototype.writeFloatLE = function(n, i, c) {
825
- return R(this, n, i, !0, c);
825
+ return D(this, n, i, !0, c);
826
826
  }, f.prototype.writeFloatBE = function(n, i, c) {
827
- return R(this, n, i, !1, c);
827
+ return D(this, n, i, !1, c);
828
828
  };
829
- function L(a, n, i, c, h) {
830
- return n = +n, i = i >>> 0, h || I(a, n, i, 8), r.write(a, n, i, c, 52, 8), i + 8;
829
+ function M(a, n, i, c, h) {
830
+ return n = +n, i = i >>> 0, h || T(a, n, i, 8), r.write(a, n, i, c, 52, 8), i + 8;
831
831
  }
832
832
  f.prototype.writeDoubleLE = function(n, i, c) {
833
- return L(this, n, i, !0, c);
833
+ return M(this, n, i, !0, c);
834
834
  }, f.prototype.writeDoubleBE = function(n, i, c) {
835
- return L(this, n, i, !1, c);
835
+ return M(this, n, i, !1, c);
836
836
  }, f.prototype.copy = function(n, i, c, h) {
837
837
  if (!f.isBuffer(n))
838
838
  throw new TypeError("argument should be a Buffer");
@@ -873,17 +873,17 @@ lr.write = function(t, e, r, o, s, u) {
873
873
  for (y = i; y < c; ++y)
874
874
  this[y] = n;
875
875
  else {
876
- const m = f.isBuffer(n) ? n : f.from(n, h), _ = m.length;
877
- if (_ === 0)
876
+ const m = f.isBuffer(n) ? n : f.from(n, h), R = m.length;
877
+ if (R === 0)
878
878
  throw new TypeError('The value "' + n + '" is invalid for argument "value"');
879
879
  for (y = 0; y < c - i; ++y)
880
- this[y + i] = m[y % _];
880
+ this[y + i] = m[y % R];
881
881
  }
882
882
  return this;
883
883
  };
884
- const F = {};
885
- function x(a, n, i) {
886
- F[a] = class extends i {
884
+ const B = {};
885
+ function L(a, n, i) {
886
+ B[a] = class extends i {
887
887
  constructor() {
888
888
  super(), Object.defineProperty(this, "message", {
889
889
  value: n.apply(this, arguments),
@@ -907,58 +907,58 @@ lr.write = function(t, e, r, o, s, u) {
907
907
  }
908
908
  };
909
909
  }
910
- x(
910
+ L(
911
911
  "ERR_BUFFER_OUT_OF_BOUNDS",
912
912
  function(a) {
913
913
  return a ? `${a} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
914
914
  },
915
915
  RangeError
916
- ), x(
916
+ ), L(
917
917
  "ERR_INVALID_ARG_TYPE",
918
918
  function(a, n) {
919
919
  return `The "${a}" argument must be of type number. Received type ${typeof n}`;
920
920
  },
921
921
  TypeError
922
- ), x(
922
+ ), L(
923
923
  "ERR_OUT_OF_RANGE",
924
924
  function(a, n, i) {
925
925
  let c = `The value of "${a}" is out of range.`, h = i;
926
- return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? h = U(String(i)) : typeof i == "bigint" && (h = String(i), (i > BigInt(2) ** BigInt(32) || i < -(BigInt(2) ** BigInt(32))) && (h = U(h)), h += "n"), c += ` It must be ${n}. Received ${h}`, c;
926
+ return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? h = V(String(i)) : typeof i == "bigint" && (h = String(i), (i > BigInt(2) ** BigInt(32) || i < -(BigInt(2) ** BigInt(32))) && (h = V(h)), h += "n"), c += ` It must be ${n}. Received ${h}`, c;
927
927
  },
928
928
  RangeError
929
929
  );
930
- function U(a) {
930
+ function V(a) {
931
931
  let n = "", i = a.length;
932
932
  const c = a[0] === "-" ? 1 : 0;
933
933
  for (; i >= c + 4; i -= 3)
934
934
  n = `_${a.slice(i - 3, i)}${n}`;
935
935
  return `${a.slice(0, i)}${n}`;
936
936
  }
937
- function Y(a, n, i) {
938
- he(n, "offset"), (a[n] === void 0 || a[n + i] === void 0) && ie(n, a.length - (i + 1));
937
+ function te(a, n, i) {
938
+ pe(n, "offset"), (a[n] === void 0 || a[n + i] === void 0) && oe(n, a.length - (i + 1));
939
939
  }
940
940
  function ye(a, n, i, c, h, y) {
941
941
  if (a > i || a < n) {
942
942
  const m = typeof n == "bigint" ? "n" : "";
943
- let _;
944
- throw y > 3 ? n === 0 || n === BigInt(0) ? _ = `>= 0${m} and < 2${m} ** ${(y + 1) * 8}${m}` : _ = `>= -(2${m} ** ${(y + 1) * 8 - 1}${m}) and < 2 ** ${(y + 1) * 8 - 1}${m}` : _ = `>= ${n}${m} and <= ${i}${m}`, new F.ERR_OUT_OF_RANGE("value", _, a);
943
+ let R;
944
+ throw y > 3 ? n === 0 || n === BigInt(0) ? R = `>= 0${m} and < 2${m} ** ${(y + 1) * 8}${m}` : R = `>= -(2${m} ** ${(y + 1) * 8 - 1}${m}) and < 2 ** ${(y + 1) * 8 - 1}${m}` : R = `>= ${n}${m} and <= ${i}${m}`, new B.ERR_OUT_OF_RANGE("value", R, a);
945
945
  }
946
- Y(c, h, y);
946
+ te(c, h, y);
947
947
  }
948
- function he(a, n) {
948
+ function pe(a, n) {
949
949
  if (typeof a != "number")
950
- throw new F.ERR_INVALID_ARG_TYPE(n, "number", a);
950
+ throw new B.ERR_INVALID_ARG_TYPE(n, "number", a);
951
951
  }
952
- function ie(a, n, i) {
953
- throw Math.floor(a) !== a ? (he(a, i), new F.ERR_OUT_OF_RANGE(i || "offset", "an integer", a)) : n < 0 ? new F.ERR_BUFFER_OUT_OF_BOUNDS() : new F.ERR_OUT_OF_RANGE(
952
+ function oe(a, n, i) {
953
+ throw Math.floor(a) !== a ? (pe(a, i), new B.ERR_OUT_OF_RANGE(i || "offset", "an integer", a)) : n < 0 ? new B.ERR_BUFFER_OUT_OF_BOUNDS() : new B.ERR_OUT_OF_RANGE(
954
954
  i || "offset",
955
955
  `>= ${i ? 1 : 0} and <= ${n}`,
956
956
  a
957
957
  );
958
958
  }
959
- const je = /[^+/0-9A-Za-z-_]/g;
959
+ const De = /[^+/0-9A-Za-z-_]/g;
960
960
  function lt(a) {
961
- if (a = a.split("=")[0], a = a.trim().replace(je, ""), a.length < 2)
961
+ if (a = a.split("=")[0], a = a.trim().replace(De, ""), a.length < 2)
962
962
  return "";
963
963
  for (; a.length % 4 !== 0; )
964
964
  a = a + "=";
@@ -1051,7 +1051,7 @@ lr.write = function(t, e, r, o, s, u) {
1051
1051
  function Rt(a) {
1052
1052
  return a !== a;
1053
1053
  }
1054
- const $n = function() {
1054
+ const Dn = function() {
1055
1055
  const a = "0123456789abcdef", n = new Array(256);
1056
1056
  for (let i = 0; i < 16; ++i) {
1057
1057
  const c = i * 16;
@@ -1061,13 +1061,13 @@ lr.write = function(t, e, r, o, s, u) {
1061
1061
  return n;
1062
1062
  }();
1063
1063
  function Pe(a) {
1064
- return typeof BigInt > "u" ? Dn : a;
1064
+ return typeof BigInt > "u" ? Mn : a;
1065
1065
  }
1066
- function Dn() {
1066
+ function Mn() {
1067
1067
  throw new Error("BigInt not supported");
1068
1068
  }
1069
- })(Jr);
1070
- var Xr = { exports: {} }, K = Xr.exports = {}, me, be;
1069
+ })(Xr);
1070
+ var en = { exports: {} }, Y = en.exports = {}, me, be;
1071
1071
  function Xt() {
1072
1072
  throw new Error("setTimeout has not been defined");
1073
1073
  }
@@ -1086,7 +1086,7 @@ function Zt() {
1086
1086
  be = Zt;
1087
1087
  }
1088
1088
  })();
1089
- function Zr(t) {
1089
+ function tn(t) {
1090
1090
  if (me === setTimeout)
1091
1091
  return setTimeout(t, 0);
1092
1092
  if ((me === Xt || !me) && setTimeout)
@@ -1101,7 +1101,7 @@ function Zr(t) {
1101
1101
  }
1102
1102
  }
1103
1103
  }
1104
- function ni(t) {
1104
+ function oi(t) {
1105
1105
  if (be === clearTimeout)
1106
1106
  return clearTimeout(t);
1107
1107
  if ((be === Zt || !be) && clearTimeout)
@@ -1116,74 +1116,74 @@ function ni(t) {
1116
1116
  }
1117
1117
  }
1118
1118
  }
1119
- var Ce = [], Ke = !1, Ne, pt = -1;
1120
- function ii() {
1121
- !Ke || !Ne || (Ke = !1, Ne.length ? Ce = Ne.concat(Ce) : pt = -1, Ce.length && en());
1119
+ var _e = [], Ke = !1, Ne, pt = -1;
1120
+ function si() {
1121
+ !Ke || !Ne || (Ke = !1, Ne.length ? _e = Ne.concat(_e) : pt = -1, _e.length && rn());
1122
1122
  }
1123
- function en() {
1123
+ function rn() {
1124
1124
  if (!Ke) {
1125
- var t = Zr(ii);
1125
+ var t = tn(si);
1126
1126
  Ke = !0;
1127
- for (var e = Ce.length; e; ) {
1128
- for (Ne = Ce, Ce = []; ++pt < e; )
1127
+ for (var e = _e.length; e; ) {
1128
+ for (Ne = _e, _e = []; ++pt < e; )
1129
1129
  Ne && Ne[pt].run();
1130
- pt = -1, e = Ce.length;
1130
+ pt = -1, e = _e.length;
1131
1131
  }
1132
- Ne = null, Ke = !1, ni(t);
1132
+ Ne = null, Ke = !1, oi(t);
1133
1133
  }
1134
1134
  }
1135
- K.nextTick = function(t) {
1135
+ Y.nextTick = function(t) {
1136
1136
  var e = new Array(arguments.length - 1);
1137
1137
  if (arguments.length > 1)
1138
1138
  for (var r = 1; r < arguments.length; r++)
1139
1139
  e[r - 1] = arguments[r];
1140
- Ce.push(new tn(t, e)), Ce.length === 1 && !Ke && Zr(en);
1140
+ _e.push(new nn(t, e)), _e.length === 1 && !Ke && tn(rn);
1141
1141
  };
1142
- function tn(t, e) {
1142
+ function nn(t, e) {
1143
1143
  this.fun = t, this.array = e;
1144
1144
  }
1145
- tn.prototype.run = function() {
1145
+ nn.prototype.run = function() {
1146
1146
  this.fun.apply(null, this.array);
1147
1147
  };
1148
- K.title = "browser";
1149
- K.browser = !0;
1150
- K.env = {};
1151
- K.argv = [];
1152
- K.version = "";
1153
- K.versions = {};
1154
- function Te() {
1148
+ Y.title = "browser";
1149
+ Y.browser = !0;
1150
+ Y.env = {};
1151
+ Y.argv = [];
1152
+ Y.version = "";
1153
+ Y.versions = {};
1154
+ function Ce() {
1155
1155
  }
1156
- K.on = Te;
1157
- K.addListener = Te;
1158
- K.once = Te;
1159
- K.off = Te;
1160
- K.removeListener = Te;
1161
- K.removeAllListeners = Te;
1162
- K.emit = Te;
1163
- K.prependListener = Te;
1164
- K.prependOnceListener = Te;
1165
- K.listeners = function(t) {
1156
+ Y.on = Ce;
1157
+ Y.addListener = Ce;
1158
+ Y.once = Ce;
1159
+ Y.off = Ce;
1160
+ Y.removeListener = Ce;
1161
+ Y.removeAllListeners = Ce;
1162
+ Y.emit = Ce;
1163
+ Y.prependListener = Ce;
1164
+ Y.prependOnceListener = Ce;
1165
+ Y.listeners = function(t) {
1166
1166
  return [];
1167
1167
  };
1168
- K.binding = function(t) {
1168
+ Y.binding = function(t) {
1169
1169
  throw new Error("process.binding is not supported");
1170
1170
  };
1171
- K.cwd = function() {
1171
+ Y.cwd = function() {
1172
1172
  return "/";
1173
1173
  };
1174
- K.chdir = function(t) {
1174
+ Y.chdir = function(t) {
1175
1175
  throw new Error("process.chdir is not supported");
1176
1176
  };
1177
- K.umask = function() {
1177
+ Y.umask = function() {
1178
1178
  return 0;
1179
1179
  };
1180
- var oi = Xr.exports;
1180
+ var ai = en.exports;
1181
1181
  (function(t) {
1182
1182
  Object.defineProperty(t, Symbol.toStringTag, { value: "Module" });
1183
- const e = Jr, r = oi, o = (l) => l && l.__esModule ? l : { default: l }, s = o(r), u = globalThis || void 0 || self;
1183
+ const e = Xr, r = ai, o = (l) => l && l.__esModule ? l : { default: l }, s = o(r), u = globalThis || void 0 || self;
1184
1184
  Object.defineProperty(t, "Buffer", { enumerable: !0, get: () => e.Buffer }), Object.defineProperty(t, "process", { enumerable: !0, get: () => s.default }), t.global = u;
1185
- })(T);
1186
- class si {
1185
+ })(O);
1186
+ class ui {
1187
1187
  }
1188
1188
  window.slStore = /* @__PURE__ */ Object.create(null);
1189
1189
  class Ot {
@@ -1202,7 +1202,7 @@ class Ot {
1202
1202
  return this.store;
1203
1203
  }
1204
1204
  }
1205
- const ai = (t) => {
1205
+ const ci = (t) => {
1206
1206
  const e = Object.keys(t);
1207
1207
  return fr(e.map((r) => t[r].getStore()), (...r) => Object.fromEntries(e.map((o, s) => [o, r[s]])));
1208
1208
  };
@@ -1213,16 +1213,16 @@ class at extends Ot {
1213
1213
  subscribe = (...e) => this.getStore().subscribe(...e);
1214
1214
  unsubscribe = () => this.getStore().off();
1215
1215
  }
1216
- const Le = (t) => jn(t);
1216
+ const Le = (t) => Vn(t);
1217
1217
  var Ie;
1218
1218
  (function(t) {
1219
1219
  t.ORGANIZATION = "ORGANIZATION", t.STREAM = "STREAM";
1220
1220
  })(Ie || (Ie = {}));
1221
- const ui = {
1222
- [ae.BETTING]: "betting",
1223
- [ae.GAMES]: "games",
1224
- [ae.PUBLIC_CHAT]: "publicChat",
1225
- [ae.TWITTER]: "twitter"
1221
+ const fi = {
1222
+ [ue.BETTING]: "betting",
1223
+ [ue.GAMES]: "games",
1224
+ [ue.PUBLIC_CHAT]: "publicChat",
1225
+ [ue.TWITTER]: "twitter"
1226
1226
  };
1227
1227
  var Ue;
1228
1228
  (function(t) {
@@ -1236,7 +1236,7 @@ class hr {
1236
1236
  listeners = /* @__PURE__ */ new Set();
1237
1237
  settingsKey;
1238
1238
  constructor({ settings: e, ...r }, o) {
1239
- this.settingsKey = ui[r.type], this.status = Ct(Ue.Suspended), this.config = new at(Le(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new at(Le(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new at(Le({}), `feature:settings:${this.settingsKey}`), this.source = o;
1239
+ this.settingsKey = fi[r.type], this.status = _t(Ue.Suspended), this.config = new at(Le(r), `feature:config:${this.settingsKey}`), this.settingsKey !== void 0 && e?.overlaySettings.case === this.settingsKey ? this.settings = new at(Le(e.overlaySettings.value), `feature:settings:${this.settingsKey}`) : this.settings = new at(Le({}), `feature:settings:${this.settingsKey}`), this.source = o;
1240
1240
  }
1241
1241
  get featureConfig() {
1242
1242
  return this.config.getStore();
@@ -1278,7 +1278,7 @@ class hr {
1278
1278
  }
1279
1279
  }
1280
1280
  }
1281
- class ue extends Ot {
1281
+ class ce extends Ot {
1282
1282
  getValue = () => this.getStore().get();
1283
1283
  getValues() {
1284
1284
  throw new Error("not implemented");
@@ -1293,11 +1293,11 @@ class ue extends Ot {
1293
1293
  return this.getStore().get();
1294
1294
  }
1295
1295
  }
1296
- const ee = (t) => Ct(t), ci = (t, e) => fr(t, e);
1297
- class pe extends Ot {
1296
+ const ne = (t) => _t(t), li = (t, e) => fr(t, e);
1297
+ class de extends Ot {
1298
1298
  atomStore;
1299
1299
  constructor(e, r, o) {
1300
- super(e, `api:${r}`), this.atomStore = Ct(), o && e.subscribe((s) => {
1300
+ super(e, `api:${r}`), this.atomStore = _t(), o && e.subscribe((s) => {
1301
1301
  this.atomStore.set(o(s));
1302
1302
  });
1303
1303
  }
@@ -1326,7 +1326,7 @@ class pe extends Ot {
1326
1326
  key = () => this.getStore().key;
1327
1327
  off = () => this.getStore().off();
1328
1328
  }
1329
- async function* fi(t, e) {
1329
+ async function* hi(t, e) {
1330
1330
  for await (const r of e) {
1331
1331
  t.response.message = r, t.received_at = Date.now();
1332
1332
  const o = {
@@ -1336,7 +1336,7 @@ async function* fi(t, e) {
1336
1336
  window.postMessage(o), yield r;
1337
1337
  }
1338
1338
  }
1339
- const li = () => (t) => async (e) => {
1339
+ const pi = () => (t) => async (e) => {
1340
1340
  const r = {
1341
1341
  name: e.url,
1342
1342
  request: {},
@@ -1348,7 +1348,7 @@ const li = () => (t) => async (e) => {
1348
1348
  if (r.received_at = Date.now(), r.stream = o.stream, r.response.header = Object.fromEntries(o.header.entries()), r.response.trailer = Object.fromEntries(o.trailer.entries()), o.stream)
1349
1349
  return {
1350
1350
  ...o,
1351
- message: fi(r, o.message)
1351
+ message: hi(r, o.message)
1352
1352
  };
1353
1353
  {
1354
1354
  r.request.message = e.message, r.response.message = o.message, r.latency = r.received_at - r.sent_at;
@@ -1376,7 +1376,7 @@ var Ae;
1376
1376
  (function(t) {
1377
1377
  t.Init = "init", t.Ready = "ready", t.Connecting = "connecting", t.Connected = "connected", t.Disconnected = "disconnected", t.Failed = "failed", t.Reconnecting = "reconnecting";
1378
1378
  })(Ae || (Ae = {}));
1379
- class hi {
1379
+ class di {
1380
1380
  params;
1381
1381
  stream;
1382
1382
  method;
@@ -1391,7 +1391,7 @@ class hi {
1391
1391
  ts: /* @__PURE__ */ new Date(),
1392
1392
  log: []
1393
1393
  };
1394
- this.state = new at(Le(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 ue(ee(null), `subscription:${s.name}:store`)), "subscribe" in o && typeof o.subscribe == "function" && o.subscribe(() => {
1394
+ this.state = new at(Le(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 ce(ne(null), `subscription:${s.name}:store`)), "subscribe" in o && typeof o.subscribe == "function" && o.subscribe(() => {
1395
1395
  this.reconnect();
1396
1396
  }), this.updateState(Ae.Ready);
1397
1397
  }
@@ -1433,10 +1433,10 @@ class hi {
1433
1433
  this.addStateLog(`data routed to ${this.listeners.size} listeners`);
1434
1434
  };
1435
1435
  onStreamError = (e) => {
1436
- e !== void 0 && (e.code !== Mn.Canceled && e.rawMessage !== "[canceled] BodyStreamBuffer was aborted" ? (this.updateState(Ae.Failed), this.state.setValue("error", e)) : this.disconnect());
1436
+ e !== void 0 && (e.code !== qn.Canceled && e.rawMessage !== "[canceled] BodyStreamBuffer was aborted" ? (this.updateState(Ae.Failed), this.state.setValue("error", e)) : this.disconnect());
1437
1437
  };
1438
1438
  }
1439
- class pi {
1439
+ class yi {
1440
1440
  toJsonOptions = {
1441
1441
  emitDefaultValues: !1,
1442
1442
  enumAsInteger: !0,
@@ -1452,10 +1452,10 @@ class pi {
1452
1452
  subscriptions;
1453
1453
  constructor(e) {
1454
1454
  this.host = e, this.$headers = new at(Le({
1455
- "sl-device-id": T.process?.env?.NX_DEVICE_ID || "sdk-web-dev"
1455
+ "sl-device-id": O.process?.env?.NX_DEVICE_ID || "sdk-web-dev"
1456
1456
  }), "transport:headers"), this.initInterceptors(), this.clients = /* @__PURE__ */ new Map(), this.callbackClients = /* @__PURE__ */ new Map(), this.subscriptions = /* @__PURE__ */ new Map();
1457
- const [r, o, s] = Qn();
1458
- this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport = Gn({
1457
+ const [r, o, s] = Kn();
1458
+ this.nanoquery = { createFetcherStore: r, createMutatorStore: o, utils: s }, this.transport = zn({
1459
1459
  baseUrl: e,
1460
1460
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
1461
1461
  // @ts-ignore
@@ -1470,7 +1470,7 @@ class pi {
1470
1470
  const s = this.subscriptions.get(r);
1471
1471
  if (s)
1472
1472
  return s;
1473
- const u = new hi(this.$headers, e, r, o);
1473
+ const u = new di(this.$headers, e, r, o);
1474
1474
  return this.subscriptions.set(r, u), u;
1475
1475
  };
1476
1476
  removeSubscription = (e) => {
@@ -1491,14 +1491,14 @@ class pi {
1491
1491
  const r = e.typeName;
1492
1492
  if (this.clients.has(r))
1493
1493
  return this.clients.get(r);
1494
- const o = Vn(e, this.transport);
1494
+ const o = Qn(e, this.transport);
1495
1495
  return this.clients.set(r, o), o;
1496
1496
  };
1497
1497
  getCallbackClient = (e) => {
1498
1498
  const r = e.typeName;
1499
1499
  if (this.callbackClients.has(r))
1500
1500
  return this.callbackClients.get(r);
1501
- const o = qn(e, this.transport);
1501
+ const o = Gn(e, this.transport);
1502
1502
  return this.callbackClients.set(r, o), o;
1503
1503
  };
1504
1504
  // create unary client, used for query request
@@ -1530,11 +1530,11 @@ class pi {
1530
1530
  o.header.set(u, s[u]);
1531
1531
  return r(o);
1532
1532
  };
1533
- this.interceptors.push(e), this.interceptors.push(li());
1533
+ this.interceptors.push(e), this.interceptors.push(pi());
1534
1534
  };
1535
1535
  }
1536
- const di = (t, e) => {
1537
- const { client: r, queryKey: o } = e.createPromiseClient(zn, {
1536
+ const gi = (t, e) => {
1537
+ const { client: r, queryKey: o } = e.createPromiseClient(Hn, {
1538
1538
  method: "retrieveEventId",
1539
1539
  params: [t]
1540
1540
  });
@@ -1551,29 +1551,29 @@ const di = (t, e) => {
1551
1551
  }
1552
1552
  }
1553
1553
  });
1554
- }, yi = (t, e) => {
1555
- const { client: r, queryKey: o } = e.createPromiseClient(Tt, { method: "getStream", params: [t] });
1554
+ }, mi = (t, e) => {
1555
+ const { client: r, queryKey: o } = e.createPromiseClient(Ct, { method: "getStream", params: [t] });
1556
1556
  return e.nanoquery.createFetcherStore(o, {
1557
1557
  fetcher: async (s, u, l) => l ? (await r.getStream({
1558
1558
  id: l
1559
1559
  // we are sure that id is a string
1560
1560
  })).data?.attributes : void 0
1561
1561
  });
1562
- }, gi = (t, e) => {
1563
- const { queryKey: r, client: o } = e.createPromiseClient(Kr, { method: "me", params: [t] });
1562
+ }, bi = (t, e) => {
1563
+ const { queryKey: r, client: o } = e.createPromiseClient(Wr, { method: "me", params: [t] });
1564
1564
  return e.nanoquery.createFetcherStore(r, {
1565
1565
  fetcher: () => o.me({})
1566
1566
  });
1567
- }, mi = (t) => {
1568
- const { client: e } = t.createPromiseClient(Kr, { method: "bypassAuth" });
1567
+ }, wi = (t) => {
1568
+ const { client: e } = t.createPromiseClient(Wr, { method: "bypassAuth" });
1569
1569
  return ({ userKey: r, schema: o, init: s }) => e.bypassAuth({ userKey: r, schema: o, init: s });
1570
- }, bi = (t, e) => {
1571
- const { client: r, queryKey: o } = e.createPromiseClient(Tt, { method: "get", params: [t] });
1570
+ }, vi = (t, e) => {
1571
+ const { client: r, queryKey: o } = e.createPromiseClient(Ct, { method: "get", params: [t] });
1572
1572
  return e.nanoquery.createFetcherStore(o, {
1573
1573
  fetcher: async () => (await r.get({})).data?.attributes
1574
1574
  });
1575
- }, wi = (t, e) => {
1576
- const { client: r, queryKey: o } = e.createPromiseClient(Tt, { method: "getOrganization", params: [t] });
1575
+ }, Si = (t, e) => {
1576
+ const { client: r, queryKey: o } = e.createPromiseClient(Ct, { method: "getOrganization", params: [t] });
1577
1577
  return e.nanoquery.createFetcherStore(o, {
1578
1578
  fetcher: async () => {
1579
1579
  const s = await r.getOrganization({});
@@ -1583,16 +1583,16 @@ const di = (t, e) => {
1583
1583
  } : void 0;
1584
1584
  }
1585
1585
  });
1586
- }, vi = (t, e) => {
1587
- const { client: r, queryKey: o } = e.createPromiseClient(Tt, {
1586
+ }, Ai = (t, e) => {
1587
+ const { client: r, queryKey: o } = e.createPromiseClient(Ct, {
1588
1588
  method: "getOrganizationAdvertising",
1589
1589
  params: [t]
1590
1590
  });
1591
1591
  return e.nanoquery.createFetcherStore(o, {
1592
1592
  fetcher: async () => (await r.getOrganizationAdvertising({})).data?.attributes
1593
1593
  });
1594
- }, Si = (t, e, r) => {
1595
- t.transport = new pi(e.host), t.sdk.host = t.transport.host, t.transport.setSdkKey(e.sdkKey), r();
1594
+ }, Ei = (t, e, r) => {
1595
+ t.transport = new yi(e.host), t.sdk.host = t.transport.host, t.transport.setSdkKey(e.sdkKey), r();
1596
1596
  };
1597
1597
  class pr {
1598
1598
  delimiter = ":";
@@ -1621,7 +1621,7 @@ var Ee;
1621
1621
  (function(t) {
1622
1622
  t.SCHEMA = "schema", t.EXTERNAL_TOKEN = "eToken", t.TOKEN = "token";
1623
1623
  })(Ee || (Ee = {}));
1624
- class Qe extends pr {
1624
+ class Ge extends pr {
1625
1625
  constructor() {
1626
1626
  super("user");
1627
1627
  }
@@ -1648,16 +1648,16 @@ var Fe;
1648
1648
  (function(t) {
1649
1649
  t.DISABLED = "disabled", t.INITIALIZATION = "initialization", t.READY = "ready", t.FAILED = "failed", t.SUSPENDED = "suspended";
1650
1650
  })(Fe || (Fe = {}));
1651
- const Ai = (t) => {
1652
- const e = new Qe(), r = new ue(ee(e.getExternalToken()), "userKey"), o = new ue(ee(e.getToken()), "userToken"), s = new pe(gi(o.getStore(), t), "user", (l) => l?.data?.data?.id), u = new pe(bi(o.getStore(), t), "userSettings");
1651
+ const Ii = (t) => {
1652
+ const e = new Ge(), r = new ce(ne(e.getExternalToken()), "userKey"), o = new ce(ne(e.getToken()), "userToken"), s = new de(bi(o.getStore(), t), "user", (l) => l?.data?.data?.id), u = new de(vi(o.getStore(), t), "userSettings");
1653
1653
  return {
1654
1654
  userKey: r,
1655
1655
  userToken: o,
1656
1656
  user: s,
1657
1657
  userSettings: u
1658
1658
  };
1659
- }, Ei = (t) => {
1660
- const e = new ue(ee(void 0), "providerStreamId"), r = new pe(di(e.getStore(), t), "slStreamId", (s) => s?.data), o = new pe(yi(r.getAtomStore(), t), "streamSettings");
1659
+ }, Fi = (t) => {
1660
+ const e = new ce(ne(void 0), "providerStreamId"), r = new de(gi(e.getStore(), t), "slStreamId", (s) => s?.data), o = new de(mi(r.getAtomStore(), t), "streamSettings");
1661
1661
  return r.getAtomStore().listen((s) => {
1662
1662
  (s === "" || s === void 0) && o.getStore().mutate(void 0);
1663
1663
  }), {
@@ -1665,8 +1665,8 @@ const Ai = (t) => {
1665
1665
  slStreamId: r,
1666
1666
  streamSettings: o
1667
1667
  };
1668
- }, Ii = (t) => {
1669
- const e = new ue(ee(void 0), "enabled"), r = new ue(ee(Fe.DISABLED), "status"), o = new pe(wi(e.getStore(), t), "organizationSettings", (f) => f?.data?.id), s = new pe(vi(o.getAtomStore(), t), "organizationAdvertising"), u = Ai(t), l = Ei(t);
1668
+ }, _i = (t) => {
1669
+ const e = new ce(ne(void 0), "enabled"), r = new ce(ne(Fe.DISABLED), "status"), o = new de(Si(e.getStore(), t), "organizationSettings", (f) => f?.data?.id), s = new de(Ai(o.getAtomStore(), t), "organizationAdvertising"), u = Ii(t), l = Fi(t);
1670
1670
  return {
1671
1671
  enabled: e,
1672
1672
  status: r,
@@ -1681,10 +1681,10 @@ const Ai = (t) => {
1681
1681
  organizationAdvertising: s
1682
1682
  };
1683
1683
  };
1684
- class Fi extends Ot {
1684
+ class Ci extends Ot {
1685
1685
  stores;
1686
1686
  constructor(e) {
1687
- const r = Ii(e), o = ai(r);
1687
+ const r = _i(e), o = ci(r);
1688
1688
  super(o, "core"), this.stores = r;
1689
1689
  }
1690
1690
  getValue() {
@@ -1705,12 +1705,12 @@ class Fi extends Ot {
1705
1705
  };
1706
1706
  unsubscribe = () => this.getStore().off();
1707
1707
  }
1708
- class Ci extends si {
1708
+ class Ti extends ui {
1709
1709
  $coreStore;
1710
1710
  transport;
1711
1711
  bypassLogin;
1712
1712
  constructor(e, r) {
1713
- super(), this.$coreStore = e, this.transport = r, this.bypassLogin = mi(this.transport), this.connect();
1713
+ super(), this.$coreStore = e, this.transport = r, this.bypassLogin = wi(this.transport), this.connect();
1714
1714
  }
1715
1715
  me = async () => (this.$coreStore.getValues().user.invalidate(), (await this.$coreStore.getValues().user.getValue())?.data);
1716
1716
  /**
@@ -1731,14 +1731,14 @@ class Ci extends si {
1731
1731
  * Logout user. Clears the all user data from the store.
1732
1732
  */
1733
1733
  logout = () => {
1734
- this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), new Qe().clear();
1734
+ this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userKey.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), new Ge().clear();
1735
1735
  };
1736
1736
  /**
1737
1737
  * Soft logout, only clears the StreamLayer user data from the store.
1738
1738
  * Does not clear the external token. And automatically tries to re-login by external token.
1739
1739
  */
1740
1740
  softLogout = () => {
1741
- const e = new Qe();
1741
+ const e = new Ge();
1742
1742
  this.$coreStore.getValues().user.setValue(), this.$coreStore.getValues().userToken.setValue(), this.transport.setAuth("", ""), e.setToken(""), this.reLogin();
1743
1743
  };
1744
1744
  /**
@@ -1749,7 +1749,7 @@ class Ci extends si {
1749
1749
  * - If no one of the above is true, then logout.
1750
1750
  */
1751
1751
  reLogin = () => {
1752
- const e = new Qe(), r = e.getToken(), o = e.getExternalToken();
1752
+ const e = new Ge(), r = e.getToken(), o = e.getExternalToken();
1753
1753
  if (this.$coreStore.getValues().userKey.setValue(o), this.$coreStore.getValues().userToken.setValue(r), r)
1754
1754
  return this.saveUser(r, ""), this.me().then((s) => {
1755
1755
  if (console.log("user", s), s?.id) {
@@ -1768,7 +1768,7 @@ class Ci extends si {
1768
1768
  * Write token to the Transport and UserStore
1769
1769
  */
1770
1770
  saveUser = (e, r) => {
1771
- this.transport.setAuth(e, r), this.$coreStore.getValues().userToken.setValue(e), new Qe().setToken(e);
1771
+ this.transport.setAuth(e, r), this.$coreStore.getValues().userToken.setValue(e), new Ge().setToken(e);
1772
1772
  };
1773
1773
  /**
1774
1774
  * Add interceptor to the Transport to handle 401 and 403 errors.
@@ -1784,19 +1784,19 @@ class Ci extends si {
1784
1784
  });
1785
1785
  };
1786
1786
  }
1787
- const ot = new Qe(), Ti = (t, e, r) => {
1788
- t.auth = new Ci(t.store, t.transport), t.stores.status.listen((o) => {
1787
+ const ot = new Ge(), Oi = (t, e, r) => {
1788
+ t.auth = new Ti(t.store, t.transport), t.stores.status.listen((o) => {
1789
1789
  o === Fe.READY && t.auth.reLogin();
1790
1790
  }), t.sdk.authorizationBypass = async (o, s) => {
1791
1791
  ot.getSchema() === o && ot.getExternalToken() === s && t.transport.getHeader("authorization") || (await t.auth.login(o, s), ot.setSchema(o), ot.setExternalToken(s));
1792
1792
  }, t.sdk.logout = () => {
1793
1793
  t.auth.logout(), ot.clear();
1794
1794
  }, t.sdk.getUserStore = () => t.stores.user.getStore(), t.sdk.isUserAuthorized = () => t.auth.isAuthenticated(), r();
1795
- }, _i = (t, e, r) => {
1796
- t.store = new Fi(t.transport), t.stores = t.store.getValues(), t.sdk.enabled = t.stores.enabled.getStore(), t.sdk.status = t.stores.status.getStore(), t.sdk.sdkStore = t.store.getStore(), t.sdk.organizationStore = () => t.stores.organizationSettings.getStore(), t.storeUnsubscribe = () => {
1795
+ }, xi = (t, e, r) => {
1796
+ t.store = new Ci(t.transport), t.stores = t.store.getValues(), t.sdk.enabled = t.stores.enabled.getStore(), t.sdk.status = t.stores.status.getStore(), t.sdk.sdkStore = t.store.getStore(), t.sdk.organizationStore = () => t.stores.organizationSettings.getStore(), t.sdk.streamStore = () => t.stores.streamSettings.getStore(), t.storeUnsubscribe = () => {
1797
1797
  t.store.unsubscribe();
1798
1798
  }, r();
1799
- }, Oi = (t, e, r) => {
1799
+ }, Bi = (t, e, r) => {
1800
1800
  t.sdk = /* @__PURE__ */ Object.create(null), t.sdk.initializeApp = async () => {
1801
1801
  if (t.stores.enabled.get() === "on")
1802
1802
  return { enabled: !0 };
@@ -1812,30 +1812,30 @@ const ot = new Qe(), Ti = (t, e, r) => {
1812
1812
  }, t.sdk.createEventSession = (o) => {
1813
1813
  t.stores.providerStreamId.setValue(o);
1814
1814
  }, r();
1815
- }, xi = Kn({
1815
+ }, ki = Wn({
1816
1816
  level: "trace"
1817
- }), rn = (t, e) => xi.child({ name: t }, e), Bi = (t, e, r) => {
1818
- const { client: o, queryKey: s } = r.createPromiseClient(Hr, {
1817
+ }), on = (t, e) => ki.child({ name: t }, e), Pi = (t, e, r) => {
1818
+ const { client: o, queryKey: s } = r.createPromiseClient(Jr, {
1819
1819
  method: "summary",
1820
1820
  params: [t, e]
1821
1821
  });
1822
1822
  return r.nanoquery.createFetcherStore(s, {
1823
- fetcher: async (u, l, f, d) => (await o.summary({
1823
+ fetcher: async (u, l, f, p) => (await o.summary({
1824
1824
  eventId: f,
1825
- userId: d
1825
+ userId: p
1826
1826
  })).data?.attributes
1827
1827
  });
1828
- }, ki = (t) => {
1829
- const { client: e } = t.createPromiseClient(Hr, { method: "list" });
1828
+ }, Ri = (t) => {
1829
+ const { client: e } = t.createPromiseClient(Jr, { method: "list" });
1830
1830
  return (r) => e.list(r);
1831
- }, Pi = (t, e) => {
1831
+ }, Ni = (t, e) => {
1832
1832
  const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "get", params: [t] });
1833
1833
  return e.nanoquery.createFetcherStore(o, {
1834
1834
  fetcher: async (s, u, l) => (await r.get({
1835
1835
  eventId: l
1836
1836
  })).data?.attributes
1837
1837
  });
1838
- }, Ri = (t, e) => {
1838
+ }, Li = (t, e) => {
1839
1839
  const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "syncQuestion", params: [t] });
1840
1840
  return e.nanoquery.createFetcherStore(o, {
1841
1841
  fetcher: async (s, u, l) => l ? (await r.syncQuestion({
@@ -1844,37 +1844,128 @@ const ot = new Qe(), Ti = (t, e, r) => {
1844
1844
  }
1845
1845
  })).data?.attributes : void 0
1846
1846
  });
1847
- }, Ni = (t, e) => {
1848
- const { client: r } = e.createCallbackClient(ve), o = Ct({ eventId: t.get() || "", feedId: "" });
1847
+ }, Ui = (t, e) => {
1848
+ const { client: r } = e.createCallbackClient(ve), o = _t({ eventId: t.get() || "", feedId: "" });
1849
1849
  return t.subscribe((u = "") => {
1850
1850
  o.set({ eventId: u, feedId: "" });
1851
1851
  }), e.addSubscription(r.subscription, o, { name: "feedSubscription" });
1852
- }, Li = (t, e) => {
1852
+ }, $i = (t, e) => {
1853
1853
  const { client: r } = e.createCallbackClient(ve);
1854
1854
  return e.addSubscription(r.questionSubscription, { questionId: t }, { name: "questionSubscription" });
1855
- }, nn = async (t, e) => {
1855
+ }, sn = async (t, e) => {
1856
1856
  const { client: r } = e.createPromiseClient(ve, { method: "questionByUser", params: [t] });
1857
1857
  return (await r.questionByUser({
1858
1858
  questionId: t
1859
1859
  })).data?.attributes?.question;
1860
- }, Ui = (t, e) => {
1860
+ }, ji = (t, e) => {
1861
1861
  const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "list", params: [t] });
1862
1862
  return e.nanoquery.createFetcherStore(o, {
1863
1863
  fetcher: async (s, u, l) => l ? (await r.list({
1864
1864
  eventId: l
1865
1865
  })).data : []
1866
1866
  });
1867
- }, $i = (t, e) => {
1867
+ }, Di = (t, e) => {
1868
1868
  const { client: r, queryKey: o } = e.createPromiseClient(ve, { method: "insightHistory", params: [t] });
1869
1869
  return e.nanoquery.createFetcherStore(o, {
1870
1870
  fetcher: async (s, u, l) => l ? (await r.insightHistory({
1871
1871
  eventId: l
1872
- })).data?.map(({ attributes: d }) => d) : void 0
1872
+ })).data?.map(({ attributes: p }) => p) : void 0
1873
1873
  });
1874
- }, Di = (t, e, r) => {
1874
+ };
1875
+ var dr = { exports: {} };
1876
+ const Mi = Object.getPrototypeOf({});
1877
+ function yr(t) {
1878
+ function e(I) {
1879
+ return I !== "constructor" && I !== "prototype" && I !== "__proto__";
1880
+ }
1881
+ function r(I) {
1882
+ let C = 0;
1883
+ const j = I.length, U = new Array(j);
1884
+ for (C = 0; C < j; ++C)
1885
+ U[C] = _(I[C]);
1886
+ return U;
1887
+ }
1888
+ function o(I) {
1889
+ const C = {};
1890
+ if (p && Object.getPrototypeOf(I) !== Mi)
1891
+ return p(I);
1892
+ const j = f(I);
1893
+ let U, F, x;
1894
+ for (U = 0, F = j.length; U < F; ++U)
1895
+ e(x = j[U]) && (C[x] = _(I[x]));
1896
+ return C;
1897
+ }
1898
+ function s(I, C) {
1899
+ const j = I.length, U = C.length;
1900
+ let F = 0;
1901
+ const x = new Array(j + U);
1902
+ for (F = 0; F < j; ++F)
1903
+ x[F] = _(I[F]);
1904
+ for (F = 0; F < U; ++F)
1905
+ x[F + j] = _(C[F]);
1906
+ return x;
1907
+ }
1908
+ const u = Object.prototype.propertyIsEnumerable;
1909
+ function l(I) {
1910
+ const C = Object.keys(I), j = Object.getOwnPropertySymbols(I);
1911
+ for (let U = 0, F = j.length; U < F; ++U)
1912
+ u.call(I, j[U]) && C.push(j[U]);
1913
+ return C;
1914
+ }
1915
+ const f = t && t.symbols ? l : Object.keys, p = typeof t?.cloneProtoObject == "function" ? t.cloneProtoObject : void 0;
1916
+ function S(I) {
1917
+ return typeof I == "object" && I !== null && !(I instanceof RegExp) && !(I instanceof Date);
1918
+ }
1919
+ function g(I) {
1920
+ return typeof I != "object" || I === null;
1921
+ }
1922
+ const b = typeof O.Buffer < "u" ? (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date || I instanceof O.Buffer : (I) => typeof I != "object" || I === null || I instanceof RegExp || I instanceof Date, E = t && typeof t.mergeArray == "function" ? t.mergeArray({ clone: _, deepmerge: P, getKeys: f, isMergeableObject: S }) : s;
1923
+ function _(I) {
1924
+ return S(I) ? Array.isArray(I) ? r(I) : o(I) : I;
1925
+ }
1926
+ function N(I, C) {
1927
+ const j = {}, U = f(I), F = f(C);
1928
+ let x, k, G;
1929
+ for (x = 0, k = U.length; x < k; ++x)
1930
+ e(G = U[x]) && F.indexOf(G) === -1 && (j[G] = _(I[G]));
1931
+ for (x = 0, k = F.length; x < k; ++x)
1932
+ e(G = F[x]) && (G in I && (U.indexOf(G) !== -1 && (j[G] = P(I[G], C[G])), !0) || // eslint-disable-line no-mixed-operators
1933
+ (j[G] = _(C[G])));
1934
+ return j;
1935
+ }
1936
+ function P(I, C) {
1937
+ const j = Array.isArray(C), U = Array.isArray(I);
1938
+ return g(C) ? C : b(I) ? _(C) : j && U ? E(I, C) : j !== U ? _(C) : N(I, C);
1939
+ }
1940
+ function K() {
1941
+ switch (arguments.length) {
1942
+ case 0:
1943
+ return {};
1944
+ case 1:
1945
+ return _(arguments[0]);
1946
+ case 2:
1947
+ return P(arguments[0], arguments[1]);
1948
+ }
1949
+ let I;
1950
+ for (let C = 0, j = arguments.length; C < j; ++C)
1951
+ I = P(I, arguments[C]);
1952
+ return I;
1953
+ }
1954
+ return t && t.all ? K : P;
1955
+ }
1956
+ dr.exports = yr;
1957
+ dr.exports.default = yr;
1958
+ var Vi = dr.exports.deepmerge = yr;
1959
+ const qi = (t) => (e, r) => {
1960
+ let o = 0;
1961
+ const s = e.length, u = r.length, l = Math.max(s, u), f = new Array(l);
1962
+ for (o = 0; o < l; ++o)
1963
+ o < u ? f[o] = t.deepmerge(e[o], r[o]) : f[o] = t.clone(e[o]);
1964
+ return f;
1965
+ }, Qi = Vi({ mergeArray: qi }), Gi = (t, e, r) => {
1875
1966
  const o = fr([e, r], (l, f) => {
1876
1967
  if (l && f.data)
1877
- return f.data.find((d) => d.id === l);
1968
+ return f.data.find((p) => p.id === l);
1878
1969
  }), s = Le({
1879
1970
  data: void 0,
1880
1971
  loading: void 0,
@@ -1883,16 +1974,20 @@ const ot = new Qe(), Ti = (t, e, r) => {
1883
1974
  return o.subscribe(async (l) => {
1884
1975
  if (l && l.type === "question") {
1885
1976
  s.setKey("loading", !0);
1886
- const f = await nn(l.id, t);
1977
+ const f = await sn(l.id, t);
1887
1978
  s.set({ data: f, loading: !1 });
1888
1979
  return;
1889
1980
  }
1890
1981
  s.set({ data: void 0, loading: !1 });
1891
1982
  }), { $store: o, $extendedStore: s, updateExtendedQuestion: (l) => {
1892
- s.set({ data: l });
1983
+ const f = s.get().data;
1984
+ if (f)
1985
+ for (const p of l?.answers || [])
1986
+ p.youVoted !== !0 && delete p.youVoted;
1987
+ s.set({ data: Qi(f, l) });
1893
1988
  } };
1894
- }, on = (t) => (t.gamification || (t.gamification = new ji(t)), t.gamification);
1895
- class ji {
1989
+ }, an = (t) => (t.gamification || (t.gamification = new zi(t)), t.gamification);
1990
+ class zi {
1896
1991
  /** sl event id */
1897
1992
  slStreamId;
1898
1993
  /** organization id */
@@ -1919,13 +2014,13 @@ class ji {
1919
2014
  constructor(e) {
1920
2015
  if (e.gamification)
1921
2016
  throw new Error("GamificationBackground Singleton error");
1922
- this.log = rn("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new ue(ee(void 0), "moderationId").getStore(), this.openedQuestionId = new ue(ee(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new pe(Pi(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new pe(Ui(this.slStreamId, e.transport), "gamification:feedList"), this.activeQuestionId = new pe(Ri(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = Di(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
1923
- this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = Li(r, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (o) => {
2017
+ this.log = on("gamification-background"), this.slStreamId = e.stores.slStreamId.getAtomStore(), this.organizationId = e.stores.organizationSettings.getAtomStore(), this.userId = e.stores.user.getAtomStore(), this.moderationId = new ce(ne(void 0), "moderationId").getStore(), this.openedQuestionId = new ce(ne(void 0), "openedQuestionId").getStore(), this.notifications = e.notifications, this.moderation = new de(Ni(this.slStreamId, e.transport), "gamification:moderation"), this.feedList = new de(ji(this.slStreamId, e.transport), "gamification:feedList"), this.activeQuestionId = new de(Li(this.slStreamId, e.transport), "gamification:activeQuestionId"), this.openedQuestion = Gi(e.transport, this.openedQuestionId, this.feedList.getStore()), this.openedQuestionId.listen((r) => {
2018
+ this.log.debug({ questionId: r }, "received question"), r ? (this.questionSubscription = $i(r, e.transport), this.questionSubscription.addListener("feed-subscription-opened-question", (o) => {
1924
2019
  window.requestAnimationFrame(() => {
1925
2020
  this.openedQuestion.updateExtendedQuestion(o.data?.attributes?.question);
1926
2021
  });
1927
2022
  }), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
1928
- }), this.feedSubscription = Ni(this.slStreamId, e.transport), this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
2023
+ }), this.feedSubscription = Ui(this.slStreamId, e.transport), this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
1929
2024
  window.requestAnimationFrame(() => {
1930
2025
  const o = this.activeQuestionId.getStore();
1931
2026
  o && o.mutate(r.data?.attributes);
@@ -1960,7 +2055,7 @@ class ji {
1960
2055
  this.openedQuestionId.set(void 0), e && this.notifications.markAsViewed(this.getCurrentSessionId({ prefix: "notification", entity: e }));
1961
2056
  };
1962
2057
  }
1963
- class Mi {
2058
+ class Ki {
1964
2059
  notificationsList;
1965
2060
  notifications;
1966
2061
  store;
@@ -1970,7 +2065,7 @@ class Mi {
1970
2065
  options;
1971
2066
  logger;
1972
2067
  constructor(e) {
1973
- this.options = e, this.logger = rn("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notifications = new ue(ee(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = ci(this.notifications.getStore(), (r) => r ? [...r.values()] : []);
2068
+ this.options = e, this.logger = on("notifications"), this.store = /* @__PURE__ */ new Map(), this.timeouts = /* @__PURE__ */ new Map(), this.waitingQueue = /* @__PURE__ */ new Set(), this.activeQueue = /* @__PURE__ */ new Set(), this.notifications = new ce(ne(/* @__PURE__ */ new Map()), "notifications-queue"), this.notificationsList = li(this.notifications.getStore(), (r) => r ? [...r.values()] : []);
1974
2069
  }
1975
2070
  addToQueue = (e) => {
1976
2071
  if (this.store.has(e.id)) {
@@ -2034,7 +2129,7 @@ var wt;
2034
2129
  (function(t) {
2035
2130
  t.OPENED = "opened";
2036
2131
  })(wt || (wt = {}));
2037
- class Vi extends pr {
2132
+ class Hi extends pr {
2038
2133
  constructor() {
2039
2134
  super("notification");
2040
2135
  }
@@ -2050,11 +2145,11 @@ var He;
2050
2145
  (function(t) {
2051
2146
  t[t.ONBOARDING = 1] = "ONBOARDING", t[t.QUESTION = 2] = "QUESTION";
2052
2147
  })(He || (He = {}));
2053
- class qi {
2148
+ class Wi {
2054
2149
  queue;
2055
2150
  storage;
2056
2151
  constructor(e = {}) {
2057
- this.storage = new Vi(), this.queue = new Mi({ concurrency: 1, animationDelay: 300, ...e });
2152
+ this.storage = new Hi(), this.queue = new Ki({ concurrency: 1, animationDelay: 300, ...e });
2058
2153
  }
2059
2154
  add = (e) => {
2060
2155
  this.storage.isOpened(e.id) || this.queue.addToQueue(e);
@@ -2067,15 +2162,15 @@ class qi {
2067
2162
  this.storage.setOpened(e);
2068
2163
  };
2069
2164
  }
2070
- const Gi = (t, e, r) => {
2071
- t.notifications = new qi(), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), r();
2072
- }, Qi = (t, e) => {
2165
+ const Ji = (t, e, r) => {
2166
+ t.notifications = new Wi(), t.addNotification = t.notifications.add, t.sdk.getNotificationsStore = () => t.notifications.getQueueStore(), r();
2167
+ }, Yi = (t, e) => {
2073
2168
  const { client: r } = t.createPromiseClient(ve, { method: "submitAnswer" });
2074
2169
  return r.submitAnswer({ data: e });
2075
- }, zi = (t, e) => {
2170
+ }, Xi = (t, e) => {
2076
2171
  const { client: r } = t.createPromiseClient(ve, { method: "submitInplay" });
2077
2172
  return r.submitInplay({ data: { eventId: +e } });
2078
- }, Ki = (t, e) => {
2173
+ }, Zi = (t, e) => {
2079
2174
  const { client: r } = t.createPromiseClient(ve, { method: "skipQuestion" });
2080
2175
  return r.skipQuestion({ data: { id: e } });
2081
2176
  };
@@ -2083,7 +2178,7 @@ var vt;
2083
2178
  (function(t) {
2084
2179
  t.ONBOARDING = "onboarding";
2085
2180
  })(vt || (vt = {}));
2086
- class Hi extends pr {
2181
+ class eo extends pr {
2087
2182
  constructor() {
2088
2183
  super("gamification");
2089
2184
  }
@@ -2092,46 +2187,46 @@ class Hi extends pr {
2092
2187
  };
2093
2188
  getOnboardingStatus = ({ userId: e, eventId: r, organizationId: o }) => this.read(vt.ONBOARDING, o, e, r);
2094
2189
  }
2095
- const Ir = {
2190
+ const _r = {
2096
2191
  pageSize: 10
2097
- }, Wi = (t, e, r) => {
2098
- const o = ee({ pageSize: r?.pageSize || Ir.pageSize, page: 0 }), s = Le({ data: [], loading: void 0, error: void 0 }), u = ki(t), l = async (A) => {
2099
- if (A) {
2192
+ }, to = (t, e, r) => {
2193
+ const o = ne({ pageSize: r?.pageSize || _r.pageSize, page: 0 }), s = Le({ data: [], loading: void 0, error: void 0 }), u = Ri(t), l = async (S) => {
2194
+ if (S) {
2100
2195
  s.setKey("loading", !0);
2101
2196
  const g = {
2102
- eventId: A,
2103
- pagination: { page: 0, pageSize: r?.pageSize || Ir.pageSize }
2104
- }, w = await u(g);
2105
- s.set({ data: w.data.map((E) => E.attributes), loading: !1 }), o.set(g.pagination);
2197
+ eventId: S,
2198
+ pagination: { page: 0, pageSize: r?.pageSize || _r.pageSize }
2199
+ }, b = await u(g);
2200
+ s.set({ data: b.data.map((E) => E.attributes), loading: !1 }), o.set(g.pagination);
2106
2201
  }
2107
2202
  };
2108
2203
  e.listen(l);
2109
2204
  const f = () => {
2110
2205
  l(e.get());
2111
2206
  };
2112
- return o.listen(async (A) => {
2113
- const g = e.get(), w = s.get().data?.length || 0;
2114
- if (A.page > 0 && g && w >= A.page * A.pageSize) {
2207
+ return o.listen(async (S) => {
2208
+ const g = e.get(), b = s.get().data?.length || 0;
2209
+ if (S.page > 0 && g && b >= S.page * S.pageSize) {
2115
2210
  s.setKey("loading", !0);
2116
- const C = await u({
2211
+ const _ = await u({
2117
2212
  eventId: g,
2118
- pagination: A
2119
- }), P = s.get().data || [];
2213
+ pagination: S
2214
+ }), N = s.get().data || [];
2120
2215
  s.set({
2121
- data: [...P, ...C.data.map((N) => N.attributes)],
2216
+ data: [...N, ..._.data.map((P) => P.attributes)],
2122
2217
  loading: !1
2123
2218
  });
2124
2219
  }
2125
2220
  }), { $store: s, fetchMore: () => {
2126
- const A = o.get();
2127
- o.set({ ...A, page: A.page + 1 });
2221
+ const S = o.get();
2222
+ o.set({ ...S, page: S.page + 1 });
2128
2223
  }, invalidate: f };
2129
- }, Ji = /* @__PURE__ */ new Set([st.POLL, st.PREDICTION, st.TRIVIA]);
2130
- var Z;
2224
+ }, ro = /* @__PURE__ */ new Set([st.POLL, st.PREDICTION, st.TRIVIA]);
2225
+ var re;
2131
2226
  (function(t) {
2132
2227
  t.Unset = "unset", t.Required = "required", t.Optional = "optional", t.Completed = "completed", t.Disabled = "disabled", t.Unavailable = "unavailable";
2133
- })(Z || (Z = {}));
2134
- class Yi extends hr {
2228
+ })(re || (re = {}));
2229
+ class no extends hr {
2135
2230
  /** user statistics (leaderboard panel) */
2136
2231
  userSummary;
2137
2232
  /** feed list (pick history) */
@@ -2155,14 +2250,14 @@ class Yi extends hr {
2155
2250
  /** Browser cache */
2156
2251
  storage;
2157
2252
  constructor(e, r, o) {
2158
- super(e, r), this.background = on(o), this.storage = new Hi(), this.userSummary = new pe(Bi(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.openedUser = ee(void 0), this.leaderboardId = new ue(ee(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = new ue(ee(Z.Unset), "onboardingStatus").getStore(), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ae.GAMES), this.openedQuestion = this.background.openedQuestion, this.leaderboardList = Wi(this.transport, this.background.slStreamId), this.onboardingStatus.subscribe((s) => {
2159
- (s === Z.Optional || Z.Required) && this.showOnboardingInApp();
2253
+ super(e, r), this.background = an(o), this.storage = new eo(), this.userSummary = new de(Pi(this.background.slStreamId, this.background.userId, o.transport), "gamification:userSummary"), this.feedList = this.background.feedList, this.openedUser = ne(void 0), this.leaderboardId = new ce(ne(this.settings.getValue("pinnedLeaderboardId")), "pinnedLeaderboardId").getStore(), this.onboardingStatus = new ce(ne(re.Unset), "onboardingStatus").getStore(), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ue.GAMES), this.openedQuestion = this.background.openedQuestion, this.leaderboardList = to(this.transport, this.background.slStreamId), this.onboardingStatus.subscribe((s) => {
2254
+ (s === re.Optional || re.Required) && this.showOnboardingInApp();
2160
2255
  }), this.status.subscribe((s) => {
2161
2256
  s === Ue.Ready ? (this.notifications.close(this.background.getCurrentSessionId({ prefix: "onboarding" })), this.connect(o.transport)) : this.disconnect();
2162
2257
  }), this.onboardingStatus.subscribe((s) => {
2163
2258
  s && this.background.activeQuestionId.invalidate();
2164
2259
  }), this.background.activeQuestionId.listen((s) => {
2165
- s && s.data && this.onboardingStatus.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !== zr.ON && Ji.has(s.data.question.type) && s.data.question.status === Yt.ACTIVE && this.notifications.add({
2260
+ s && s.data && this.onboardingStatus.get() && s.data.question?.id !== void 0 && s.data.question.notification !== void 0 && s.data.moderation?.bypassNotifications?.inAppSilence !== Hr.ON && ro.has(s.data.question.type) && s.data.question.status === Yt.ACTIVE && this.notifications.add({
2166
2261
  type: He.QUESTION,
2167
2262
  action: () => s.data?.question && this.openQuestion(s.data.question.id),
2168
2263
  close: () => s.data?.question && this.closeQuestion(s.data.question.id),
@@ -2194,12 +2289,12 @@ class Yi extends hr {
2194
2289
  userId: e,
2195
2290
  organizationId: this.background.organizationId.get() || "",
2196
2291
  eventId: this.background.slStreamId.get() || ""
2197
- }) === Z.Completed && this.onboardingStatus.set(Z.Completed);
2292
+ }) === re.Completed && this.onboardingStatus.set(re.Completed);
2198
2293
  const o = await this.background.moderation.getValue();
2199
- if (this.onboardingStatus.get() === Z.Completed)
2294
+ if (this.onboardingStatus.get() === re.Completed)
2200
2295
  return;
2201
2296
  const s = !!(o?.options?.onboardingEnabled && this.featureSettings.get().inplayGame?.onboarding?.completed), u = !!this.featureSettings.get().inplayGame?.titleCard?.optIn;
2202
- s ? u ? this.onboardingStatus.set(Z.Required) : this.onboardingStatus.set(Z.Optional) : u ? this.onboardingStatus.set(Z.Unavailable) : this.onboardingStatus.set(Z.Disabled);
2297
+ s ? u ? this.onboardingStatus.set(re.Required) : this.onboardingStatus.set(re.Optional) : u ? this.onboardingStatus.set(re.Unavailable) : this.onboardingStatus.set(re.Disabled);
2203
2298
  };
2204
2299
  showOnboardingInApp = () => {
2205
2300
  const { inplayGame: e } = this.featureSettings.get();
@@ -2233,7 +2328,7 @@ class Yi extends hr {
2233
2328
  if (s === Yt.RESOLVED && u === st.PREDICTION) {
2234
2329
  const f = this.background.getCurrentSessionId({
2235
2330
  prefix: `notification-id:${l}`
2236
- }), A = (await nn(l, e))?.answers.find(({ correct: g }) => g);
2331
+ }), S = (await sn(l, e))?.answers.find(({ correct: g }) => g);
2237
2332
  this.notifications.add({
2238
2333
  type: He.ONBOARDING,
2239
2334
  action: () => this.openQuestion(l),
@@ -2241,7 +2336,7 @@ class Yi extends hr {
2241
2336
  autoHideDuration: 5e3,
2242
2337
  id: f,
2243
2338
  data: {
2244
- title: A?.youVoted ? `Congratulations! You answered correctly! You won ${A.points} pts!` : `Better luck next time! Correct: ${A?.text}!`
2339
+ title: S?.youVoted ? `Congratulations! You answered correctly! You won ${S.points} pts!` : `Better luck next time! Correct: ${S?.text}!`
2245
2340
  }
2246
2341
  });
2247
2342
  }
@@ -2258,17 +2353,17 @@ class Yi extends hr {
2258
2353
  // onboarding
2259
2354
  submitInplay = async () => {
2260
2355
  const e = this.background.slStreamId.get();
2261
- e && (await zi(this.transport, e), this.onboardingStatus.set(Z.Completed), this.storage.saveOnboardingStatus({
2356
+ e && (await Xi(this.transport, e), this.onboardingStatus.set(re.Completed), this.storage.saveOnboardingStatus({
2262
2357
  organizationId: this.background.organizationId.get() || "",
2263
2358
  userId: this.background.userId.get() || "",
2264
2359
  eventId: e
2265
- }, Z.Completed));
2360
+ }, re.Completed));
2266
2361
  };
2267
2362
  submitAnswer = async (e, r) => {
2268
- await Qi(this.transport, { questionId: e, answerId: r }), this.feedList?.invalidate();
2363
+ await Yi(this.transport, { questionId: e, answerId: r }), this.feedList?.invalidate();
2269
2364
  };
2270
2365
  skipQuestion = async (e) => {
2271
- await Ki(this.transport, e), this.feedList?.invalidate();
2366
+ await Zi(this.transport, e), this.feedList?.invalidate();
2272
2367
  };
2273
2368
  openQuestion = (e) => (this.openFeature(), this.background.openQuestion(e));
2274
2369
  closeQuestion = (e) => this.background.closeQuestion(e);
@@ -2280,7 +2375,7 @@ class Yi extends hr {
2280
2375
  this.openedUser.set(void 0);
2281
2376
  };
2282
2377
  }
2283
- class Xi extends hr {
2378
+ class io extends hr {
2284
2379
  insights;
2285
2380
  closeFeature;
2286
2381
  openFeature;
@@ -2289,10 +2384,10 @@ class Xi extends hr {
2289
2384
  transport;
2290
2385
  background;
2291
2386
  constructor(e, r, o) {
2292
- super(e, r), this.background = on(o), this.notifications = o.notifications, this.transport = o.transport, this.closeFeature = o.sdk.closeFeature, this.openFeature = () => o.sdk.openFeature(ae.HIGHLIGHTS), this.status.subscribe((s) => {
2387
+ 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) => {
2293
2388
  s === Ue.Ready ? this.connect() : this.disconnect();
2294
2389
  }), this.background.activeQuestionId.listen((s) => {
2295
- s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== zr.ON && s.data.question.type === st.FACTOID && s.data.question.status === Yt.ACTIVE && this.notifications.add({
2390
+ s?.data?.question?.id && s?.data?.question?.notification && s.data.moderation?.bypassNotifications?.inAppSilence !== Hr.ON && s.data.question.type === st.FACTOID && s.data.question.status === Yt.ACTIVE && this.notifications.add({
2296
2391
  type: He.QUESTION,
2297
2392
  action: () => s.data?.question && this.openHighlight(s.data.question.id),
2298
2393
  close: () => s.data?.question && this.closeHighlight(s.data.question.id),
@@ -2309,7 +2404,7 @@ class Xi extends hr {
2309
2404
  }), this.openedInsight = this.background.openedQuestion;
2310
2405
  }
2311
2406
  connect = () => {
2312
- this.insights ? this.insights.invalidate() : this.insights = new pe($i(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
2407
+ this.insights ? this.insights.invalidate() : this.insights = new de(Di(this.background.slStreamId, this.transport), "gamification:insights"), this.background.feedSubscription.addListener("feed-subscription-insights-list", () => {
2313
2408
  window.requestAnimationFrame(() => {
2314
2409
  this.insights?.invalidate();
2315
2410
  });
@@ -2321,19 +2416,19 @@ class Xi extends hr {
2321
2416
  openHighlight = (e) => (this.openFeature(), this.background.openQuestion(e));
2322
2417
  closeHighlight = (e) => this.background.closeQuestion(e);
2323
2418
  }
2324
- ae.GAMES + "", ae.HIGHLIGHTS + "";
2325
- class Zi extends hr {
2419
+ ue.GAMES + "", ue.HIGHLIGHTS + "";
2420
+ class oo extends hr {
2326
2421
  constructor(e, r) {
2327
2422
  super(e, r);
2328
2423
  }
2329
2424
  }
2330
- const eo = (t, e, r) => t.type === ae.GAMES ? new Yi(t, e, r) : t.type === ae.HIGHLIGHTS ? new Xi(t, e, r) : new Zi(t, e), to = (t, e, r) => {
2331
- t.features = /* @__PURE__ */ new Map(), t.activeFeature = new ue(ee(ae.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) => {
2425
+ const so = (t, e, r) => t.type === ue.GAMES ? new no(t, e, r) : t.type === ue.HIGHLIGHTS ? new io(t, e, r) : new oo(t, e), ao = (t, e, r) => {
2426
+ t.features = /* @__PURE__ */ new Map(), t.activeFeature = new ce(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) => {
2332
2427
  t.activeFeature.setValue(o);
2333
2428
  }, t.sdk.closeFeature = () => {
2334
- t.activeFeature.setValue(ae.UNSET);
2429
+ t.activeFeature.setValue(ue.UNSET);
2335
2430
  }, t.initFeature = (o, s = Ie.ORGANIZATION) => {
2336
- const u = eo(o, s, t);
2431
+ const u = so(o, s, t);
2337
2432
  t.features.set(o.type, u);
2338
2433
  }, t.updateFeature = (o, s) => {
2339
2434
  t.features.get(o.type)?.update(o, s);
@@ -2383,8 +2478,8 @@ const eo = (t, e, r) => t.type === ae.GAMES ? new Yi(t, e, r) : t.type === ae.HI
2383
2478
  t.store.subscribe(s);
2384
2479
  }, r();
2385
2480
  };
2386
- var dr = { exports: {} }, yr = { exports: {} };
2387
- function ro(t) {
2481
+ var gr = { exports: {} }, mr = { exports: {} };
2482
+ function uo(t) {
2388
2483
  var e = new t(), r = e;
2389
2484
  function o() {
2390
2485
  var u = e;
@@ -2398,137 +2493,137 @@ function ro(t) {
2398
2493
  release: s
2399
2494
  };
2400
2495
  }
2401
- var no = ro, io = no;
2402
- function sn(t, e, r) {
2496
+ var co = uo, fo = co;
2497
+ function un(t, e, r) {
2403
2498
  if (typeof t == "function" && (r = e, e = t, t = null), r < 1)
2404
2499
  throw new Error("fastqueue concurrency must be greater than 1");
2405
- var o = io(oo), s = null, u = null, l = 0, f = null, d = {
2406
- push: N,
2407
- drain: se,
2408
- saturated: se,
2500
+ var o = fo(lo), s = null, u = null, l = 0, f = null, p = {
2501
+ push: P,
2502
+ drain: ae,
2503
+ saturated: ae,
2409
2504
  pause: g,
2410
2505
  paused: !1,
2411
2506
  concurrency: r,
2412
- running: A,
2413
- resume: C,
2414
- idle: P,
2415
- length: w,
2507
+ running: S,
2508
+ resume: _,
2509
+ idle: N,
2510
+ length: b,
2416
2511
  getQueue: E,
2417
- unshift: Q,
2418
- empty: se,
2419
- kill: X,
2420
- killAndDrain: de,
2421
- error: te
2512
+ unshift: K,
2513
+ empty: ae,
2514
+ kill: C,
2515
+ killAndDrain: j,
2516
+ error: U
2422
2517
  };
2423
- return d;
2424
- function A() {
2518
+ return p;
2519
+ function S() {
2425
2520
  return l;
2426
2521
  }
2427
2522
  function g() {
2428
- d.paused = !0;
2523
+ p.paused = !0;
2429
2524
  }
2430
- function w() {
2431
- for (var B = s, j = 0; B; )
2432
- B = B.next, j++;
2433
- return j;
2525
+ function b() {
2526
+ for (var F = s, x = 0; F; )
2527
+ F = F.next, x++;
2528
+ return x;
2434
2529
  }
2435
2530
  function E() {
2436
- for (var B = s, j = []; B; )
2437
- j.push(B.value), B = B.next;
2438
- return j;
2439
- }
2440
- function C() {
2441
- if (d.paused) {
2442
- d.paused = !1;
2443
- for (var B = 0; B < d.concurrency; B++)
2444
- l++, z();
2531
+ for (var F = s, x = []; F; )
2532
+ x.push(F.value), F = F.next;
2533
+ return x;
2534
+ }
2535
+ function _() {
2536
+ if (p.paused) {
2537
+ p.paused = !1;
2538
+ for (var F = 0; F < p.concurrency; F++)
2539
+ l++, I();
2445
2540
  }
2446
2541
  }
2447
- function P() {
2448
- return l === 0 && d.length() === 0;
2542
+ function N() {
2543
+ return l === 0 && p.length() === 0;
2449
2544
  }
2450
- function N(B, j) {
2451
- var O = o.get();
2452
- O.context = t, O.release = z, O.value = B, O.callback = j || se, O.errorHandler = f, l === d.concurrency || d.paused ? u ? (u.next = O, u = O) : (s = O, u = O, d.saturated()) : (l++, e.call(t, O.value, O.worked));
2545
+ function P(F, x) {
2546
+ var k = o.get();
2547
+ k.context = t, k.release = I, k.value = F, k.callback = x || ae, k.errorHandler = f, l === p.concurrency || p.paused ? u ? (u.next = k, u = k) : (s = k, u = k, p.saturated()) : (l++, e.call(t, k.value, k.worked));
2453
2548
  }
2454
- function Q(B, j) {
2455
- var O = o.get();
2456
- O.context = t, O.release = z, O.value = B, O.callback = j || se, l === d.concurrency || d.paused ? s ? (O.next = s, s = O) : (s = O, u = O, d.saturated()) : (l++, e.call(t, O.value, O.worked));
2549
+ function K(F, x) {
2550
+ var k = o.get();
2551
+ k.context = t, k.release = I, k.value = F, k.callback = x || ae, l === p.concurrency || p.paused ? s ? (k.next = s, s = k) : (s = k, u = k, p.saturated()) : (l++, e.call(t, k.value, k.worked));
2457
2552
  }
2458
- function z(B) {
2459
- B && o.release(B);
2460
- var j = s;
2461
- j ? d.paused ? l-- : (u === s && (u = null), s = j.next, j.next = null, e.call(t, j.value, j.worked), u === null && d.empty()) : --l === 0 && d.drain();
2553
+ function I(F) {
2554
+ F && o.release(F);
2555
+ var x = s;
2556
+ x ? p.paused ? l-- : (u === s && (u = null), s = x.next, x.next = null, e.call(t, x.value, x.worked), u === null && p.empty()) : --l === 0 && p.drain();
2462
2557
  }
2463
- function X() {
2464
- s = null, u = null, d.drain = se;
2558
+ function C() {
2559
+ s = null, u = null, p.drain = ae;
2465
2560
  }
2466
- function de() {
2467
- s = null, u = null, d.drain(), d.drain = se;
2561
+ function j() {
2562
+ s = null, u = null, p.drain(), p.drain = ae;
2468
2563
  }
2469
- function te(B) {
2470
- f = B;
2564
+ function U(F) {
2565
+ f = F;
2471
2566
  }
2472
2567
  }
2473
- function se() {
2568
+ function ae() {
2474
2569
  }
2475
- function oo() {
2476
- this.value = null, this.callback = se, this.next = null, this.release = se, this.context = null, this.errorHandler = null;
2570
+ function lo() {
2571
+ this.value = null, this.callback = ae, this.next = null, this.release = ae, this.context = null, this.errorHandler = null;
2477
2572
  var t = this;
2478
2573
  this.worked = function(r, o) {
2479
2574
  var s = t.callback, u = t.errorHandler, l = t.value;
2480
- t.value = null, t.callback = se, t.errorHandler && u(r, l), s.call(t.context, r, o), t.release(t);
2575
+ t.value = null, t.callback = ae, t.errorHandler && u(r, l), s.call(t.context, r, o), t.release(t);
2481
2576
  };
2482
2577
  }
2483
- function so(t, e, r) {
2578
+ function ho(t, e, r) {
2484
2579
  typeof t == "function" && (r = e, e = t, t = null);
2485
- function o(g, w) {
2580
+ function o(g, b) {
2486
2581
  e.call(this, g).then(function(E) {
2487
- w(null, E);
2488
- }, w);
2582
+ b(null, E);
2583
+ }, b);
2489
2584
  }
2490
- var s = sn(t, o, r), u = s.push, l = s.unshift;
2491
- return s.push = f, s.unshift = d, s.drained = A, s;
2585
+ var s = un(t, o, r), u = s.push, l = s.unshift;
2586
+ return s.push = f, s.unshift = p, s.drained = S, s;
2492
2587
  function f(g) {
2493
- var w = new Promise(function(E, C) {
2494
- u(g, function(P, N) {
2495
- if (P) {
2496
- C(P);
2588
+ var b = new Promise(function(E, _) {
2589
+ u(g, function(N, P) {
2590
+ if (N) {
2591
+ _(N);
2497
2592
  return;
2498
2593
  }
2499
- E(N);
2594
+ E(P);
2500
2595
  });
2501
2596
  });
2502
- return w.catch(se), w;
2597
+ return b.catch(ae), b;
2503
2598
  }
2504
- function d(g) {
2505
- var w = new Promise(function(E, C) {
2506
- l(g, function(P, N) {
2507
- if (P) {
2508
- C(P);
2599
+ function p(g) {
2600
+ var b = new Promise(function(E, _) {
2601
+ l(g, function(N, P) {
2602
+ if (N) {
2603
+ _(N);
2509
2604
  return;
2510
2605
  }
2511
- E(N);
2606
+ E(P);
2512
2607
  });
2513
2608
  });
2514
- return w.catch(se), w;
2609
+ return b.catch(ae), b;
2515
2610
  }
2516
- function A() {
2611
+ function S() {
2517
2612
  if (s.idle())
2518
2613
  return new Promise(function(E) {
2519
2614
  E();
2520
2615
  });
2521
- var g = s.drain, w = new Promise(function(E) {
2616
+ var g = s.drain, b = new Promise(function(E) {
2522
2617
  s.drain = function() {
2523
2618
  g(), E();
2524
2619
  };
2525
2620
  });
2526
- return w;
2621
+ return b;
2527
2622
  }
2528
2623
  }
2529
- yr.exports = sn;
2530
- yr.exports.promise = so;
2531
- var an = yr.exports, gr = { exports: {} }, We = typeof Reflect == "object" ? Reflect : null, Fr = We && typeof We.apply == "function" ? We.apply : function(e, r, o) {
2624
+ mr.exports = un;
2625
+ mr.exports.promise = ho;
2626
+ var cn = mr.exports, br = { exports: {} }, We = typeof Reflect == "object" ? Reflect : null, Cr = We && typeof We.apply == "function" ? We.apply : function(e, r, o) {
2532
2627
  return Function.prototype.apply.call(e, r, o);
2533
2628
  }, dt;
2534
2629
  We && typeof We.ownKeys == "function" ? dt = We.ownKeys : Object.getOwnPropertySymbols ? dt = function(e) {
@@ -2536,52 +2631,52 @@ We && typeof We.ownKeys == "function" ? dt = We.ownKeys : Object.getOwnPropertyS
2536
2631
  } : dt = function(e) {
2537
2632
  return Object.getOwnPropertyNames(e);
2538
2633
  };
2539
- function ao(t) {
2634
+ function po(t) {
2540
2635
  console && console.warn && console.warn(t);
2541
2636
  }
2542
- var un = Number.isNaN || function(e) {
2637
+ var fn = Number.isNaN || function(e) {
2543
2638
  return e !== e;
2544
2639
  };
2545
- function $() {
2546
- $.init.call(this);
2640
+ function q() {
2641
+ q.init.call(this);
2547
2642
  }
2548
- gr.exports = $;
2549
- gr.exports.once = lo;
2550
- $.EventEmitter = $;
2551
- $.prototype._events = void 0;
2552
- $.prototype._eventsCount = 0;
2553
- $.prototype._maxListeners = void 0;
2554
- var Cr = 10;
2643
+ br.exports = q;
2644
+ br.exports.once = bo;
2645
+ q.EventEmitter = q;
2646
+ q.prototype._events = void 0;
2647
+ q.prototype._eventsCount = 0;
2648
+ q.prototype._maxListeners = void 0;
2649
+ var Tr = 10;
2555
2650
  function xt(t) {
2556
2651
  if (typeof t != "function")
2557
2652
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
2558
2653
  }
2559
- Object.defineProperty($, "defaultMaxListeners", {
2654
+ Object.defineProperty(q, "defaultMaxListeners", {
2560
2655
  enumerable: !0,
2561
2656
  get: function() {
2562
- return Cr;
2657
+ return Tr;
2563
2658
  },
2564
2659
  set: function(t) {
2565
- if (typeof t != "number" || t < 0 || un(t))
2660
+ if (typeof t != "number" || t < 0 || fn(t))
2566
2661
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
2567
- Cr = t;
2662
+ Tr = t;
2568
2663
  }
2569
2664
  });
2570
- $.init = function() {
2665
+ q.init = function() {
2571
2666
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
2572
2667
  };
2573
- $.prototype.setMaxListeners = function(e) {
2574
- if (typeof e != "number" || e < 0 || un(e))
2668
+ q.prototype.setMaxListeners = function(e) {
2669
+ if (typeof e != "number" || e < 0 || fn(e))
2575
2670
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
2576
2671
  return this._maxListeners = e, this;
2577
2672
  };
2578
- function cn(t) {
2579
- return t._maxListeners === void 0 ? $.defaultMaxListeners : t._maxListeners;
2673
+ function ln(t) {
2674
+ return t._maxListeners === void 0 ? q.defaultMaxListeners : t._maxListeners;
2580
2675
  }
2581
- $.prototype.getMaxListeners = function() {
2582
- return cn(this);
2676
+ q.prototype.getMaxListeners = function() {
2677
+ return ln(this);
2583
2678
  };
2584
- $.prototype.emit = function(e) {
2679
+ q.prototype.emit = function(e) {
2585
2680
  for (var r = [], o = 1; o < arguments.length; o++)
2586
2681
  r.push(arguments[o]);
2587
2682
  var s = e === "error", u = this._events;
@@ -2596,17 +2691,17 @@ $.prototype.emit = function(e) {
2596
2691
  var f = new Error("Unhandled error." + (l ? " (" + l.message + ")" : ""));
2597
2692
  throw f.context = l, f;
2598
2693
  }
2599
- var d = u[e];
2600
- if (d === void 0)
2694
+ var p = u[e];
2695
+ if (p === void 0)
2601
2696
  return !1;
2602
- if (typeof d == "function")
2603
- Fr(d, this, r);
2697
+ if (typeof p == "function")
2698
+ Cr(p, this, r);
2604
2699
  else
2605
- for (var A = d.length, g = dn(d, A), o = 0; o < A; ++o)
2606
- Fr(g[o], this, r);
2700
+ for (var S = p.length, g = gn(p, S), o = 0; o < S; ++o)
2701
+ Cr(g[o], this, r);
2607
2702
  return !0;
2608
2703
  };
2609
- function fn(t, e, r, o) {
2704
+ function hn(t, e, r, o) {
2610
2705
  var s, u, l;
2611
2706
  if (xt(r), u = t._events, u === void 0 ? (u = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (u.newListener !== void 0 && (t.emit(
2612
2707
  "newListener",
@@ -2614,35 +2709,35 @@ function fn(t, e, r, o) {
2614
2709
  r.listener ? r.listener : r
2615
2710
  ), u = t._events), l = u[e]), l === void 0)
2616
2711
  l = u[e] = r, ++t._eventsCount;
2617
- else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s = cn(t), s > 0 && l.length > s && !l.warned) {
2712
+ else if (typeof l == "function" ? l = u[e] = o ? [r, l] : [l, r] : o ? l.unshift(r) : l.push(r), s = ln(t), s > 0 && l.length > s && !l.warned) {
2618
2713
  l.warned = !0;
2619
2714
  var f = new Error("Possible EventEmitter memory leak detected. " + l.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
2620
- f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length, ao(f);
2715
+ f.name = "MaxListenersExceededWarning", f.emitter = t, f.type = e, f.count = l.length, po(f);
2621
2716
  }
2622
2717
  return t;
2623
2718
  }
2624
- $.prototype.addListener = function(e, r) {
2625
- return fn(this, e, r, !1);
2719
+ q.prototype.addListener = function(e, r) {
2720
+ return hn(this, e, r, !1);
2626
2721
  };
2627
- $.prototype.on = $.prototype.addListener;
2628
- $.prototype.prependListener = function(e, r) {
2629
- return fn(this, e, r, !0);
2722
+ q.prototype.on = q.prototype.addListener;
2723
+ q.prototype.prependListener = function(e, r) {
2724
+ return hn(this, e, r, !0);
2630
2725
  };
2631
- function uo() {
2726
+ function yo() {
2632
2727
  if (!this.fired)
2633
2728
  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);
2634
2729
  }
2635
- function ln(t, e, r) {
2636
- var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = uo.bind(o);
2730
+ function pn(t, e, r) {
2731
+ var o = { fired: !1, wrapFn: void 0, target: t, type: e, listener: r }, s = yo.bind(o);
2637
2732
  return s.listener = r, o.wrapFn = s, s;
2638
2733
  }
2639
- $.prototype.once = function(e, r) {
2640
- return xt(r), this.on(e, ln(this, e, r)), this;
2734
+ q.prototype.once = function(e, r) {
2735
+ return xt(r), this.on(e, pn(this, e, r)), this;
2641
2736
  };
2642
- $.prototype.prependOnceListener = function(e, r) {
2643
- return xt(r), this.prependListener(e, ln(this, e, r)), this;
2737
+ q.prototype.prependOnceListener = function(e, r) {
2738
+ return xt(r), this.prependListener(e, pn(this, e, r)), this;
2644
2739
  };
2645
- $.prototype.removeListener = function(e, r) {
2740
+ q.prototype.removeListener = function(e, r) {
2646
2741
  var o, s, u, l, f;
2647
2742
  if (xt(r), s = this._events, s === void 0)
2648
2743
  return this;
@@ -2658,12 +2753,12 @@ $.prototype.removeListener = function(e, r) {
2658
2753
  }
2659
2754
  if (u < 0)
2660
2755
  return this;
2661
- u === 0 ? o.shift() : co(o, u), o.length === 1 && (s[e] = o[0]), s.removeListener !== void 0 && this.emit("removeListener", e, f || r);
2756
+ u === 0 ? o.shift() : go(o, u), o.length === 1 && (s[e] = o[0]), s.removeListener !== void 0 && this.emit("removeListener", e, f || r);
2662
2757
  }
2663
2758
  return this;
2664
2759
  };
2665
- $.prototype.off = $.prototype.removeListener;
2666
- $.prototype.removeAllListeners = function(e) {
2760
+ q.prototype.off = q.prototype.removeListener;
2761
+ q.prototype.removeAllListeners = function(e) {
2667
2762
  var r, o, s;
2668
2763
  if (o = this._events, o === void 0)
2669
2764
  return this;
@@ -2682,24 +2777,24 @@ $.prototype.removeAllListeners = function(e) {
2682
2777
  this.removeListener(e, r[s]);
2683
2778
  return this;
2684
2779
  };
2685
- function hn(t, e, r) {
2780
+ function dn(t, e, r) {
2686
2781
  var o = t._events;
2687
2782
  if (o === void 0)
2688
2783
  return [];
2689
2784
  var s = o[e];
2690
- return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? fo(s) : dn(s, s.length);
2785
+ return s === void 0 ? [] : typeof s == "function" ? r ? [s.listener || s] : [s] : r ? mo(s) : gn(s, s.length);
2691
2786
  }
2692
- $.prototype.listeners = function(e) {
2693
- return hn(this, e, !0);
2787
+ q.prototype.listeners = function(e) {
2788
+ return dn(this, e, !0);
2694
2789
  };
2695
- $.prototype.rawListeners = function(e) {
2696
- return hn(this, e, !1);
2790
+ q.prototype.rawListeners = function(e) {
2791
+ return dn(this, e, !1);
2697
2792
  };
2698
- $.listenerCount = function(t, e) {
2699
- return typeof t.listenerCount == "function" ? t.listenerCount(e) : pn.call(t, e);
2793
+ q.listenerCount = function(t, e) {
2794
+ return typeof t.listenerCount == "function" ? t.listenerCount(e) : yn.call(t, e);
2700
2795
  };
2701
- $.prototype.listenerCount = pn;
2702
- function pn(t) {
2796
+ q.prototype.listenerCount = yn;
2797
+ function yn(t) {
2703
2798
  var e = this._events;
2704
2799
  if (e !== void 0) {
2705
2800
  var r = e[t];
@@ -2710,25 +2805,25 @@ function pn(t) {
2710
2805
  }
2711
2806
  return 0;
2712
2807
  }
2713
- $.prototype.eventNames = function() {
2808
+ q.prototype.eventNames = function() {
2714
2809
  return this._eventsCount > 0 ? dt(this._events) : [];
2715
2810
  };
2716
- function dn(t, e) {
2811
+ function gn(t, e) {
2717
2812
  for (var r = new Array(e), o = 0; o < e; ++o)
2718
2813
  r[o] = t[o];
2719
2814
  return r;
2720
2815
  }
2721
- function co(t, e) {
2816
+ function go(t, e) {
2722
2817
  for (; e + 1 < t.length; e++)
2723
2818
  t[e] = t[e + 1];
2724
2819
  t.pop();
2725
2820
  }
2726
- function fo(t) {
2821
+ function mo(t) {
2727
2822
  for (var e = new Array(t.length), r = 0; r < e.length; ++r)
2728
2823
  e[r] = t[r].listener || t[r];
2729
2824
  return e;
2730
2825
  }
2731
- function lo(t, e) {
2826
+ function bo(t, e) {
2732
2827
  return new Promise(function(r, o) {
2733
2828
  function s(l) {
2734
2829
  t.removeListener(e, u), o(l);
@@ -2736,13 +2831,13 @@ function lo(t, e) {
2736
2831
  function u() {
2737
2832
  typeof t.removeListener == "function" && t.removeListener("error", s), r([].slice.call(arguments));
2738
2833
  }
2739
- yn(t, e, u, { once: !0 }), e !== "error" && ho(t, s, { once: !0 });
2834
+ mn(t, e, u, { once: !0 }), e !== "error" && wo(t, s, { once: !0 });
2740
2835
  });
2741
2836
  }
2742
- function ho(t, e, r) {
2743
- typeof t.on == "function" && yn(t, "error", e, r);
2837
+ function wo(t, e, r) {
2838
+ typeof t.on == "function" && mn(t, "error", e, r);
2744
2839
  }
2745
- function yn(t, e, r, o) {
2840
+ function mn(t, e, r, o) {
2746
2841
  if (typeof t.on == "function")
2747
2842
  o.once ? t.once(e, r) : t.on(e, r);
2748
2843
  else if (typeof t.addEventListener == "function")
@@ -2752,7 +2847,7 @@ function yn(t, e, r, o) {
2752
2847
  else
2753
2848
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
2754
2849
  }
2755
- var gn = gr.exports, Bt = {}, mn = {}, bn = function() {
2850
+ var bn = br.exports, Bt = {}, wn = {}, vn = function() {
2756
2851
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2757
2852
  return !1;
2758
2853
  if (typeof Symbol.iterator == "symbol")
@@ -2775,57 +2870,57 @@ var gn = gr.exports, Bt = {}, mn = {}, bn = function() {
2775
2870
  return !1;
2776
2871
  }
2777
2872
  return !0;
2778
- }, po = bn, mr = function() {
2779
- return po() && !!Symbol.toStringTag;
2780
- }, Tr = typeof Symbol < "u" && Symbol, yo = bn, go = function() {
2781
- return typeof Tr != "function" || typeof Symbol != "function" || typeof Tr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : yo();
2782
- }, _r = {
2873
+ }, vo = vn, wr = function() {
2874
+ return vo() && !!Symbol.toStringTag;
2875
+ }, Or = typeof Symbol < "u" && Symbol, So = vn, Ao = function() {
2876
+ return typeof Or != "function" || typeof Symbol != "function" || typeof Or("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : So();
2877
+ }, xr = {
2783
2878
  foo: {}
2784
- }, mo = Object, bo = function() {
2785
- return { __proto__: _r }.foo === _r.foo && !({ __proto__: null } instanceof mo);
2786
- }, wo = "Function.prototype.bind called on incompatible ", vo = Object.prototype.toString, So = Math.max, Ao = "[object Function]", Or = function(e, r) {
2879
+ }, Eo = Object, Io = function() {
2880
+ return { __proto__: xr }.foo === xr.foo && !({ __proto__: null } instanceof Eo);
2881
+ }, Fo = "Function.prototype.bind called on incompatible ", _o = Object.prototype.toString, Co = Math.max, To = "[object Function]", Br = function(e, r) {
2787
2882
  for (var o = [], s = 0; s < e.length; s += 1)
2788
2883
  o[s] = e[s];
2789
2884
  for (var u = 0; u < r.length; u += 1)
2790
2885
  o[u + e.length] = r[u];
2791
2886
  return o;
2792
- }, Eo = function(e, r) {
2887
+ }, Oo = function(e, r) {
2793
2888
  for (var o = [], s = r || 0, u = 0; s < e.length; s += 1, u += 1)
2794
2889
  o[u] = e[s];
2795
2890
  return o;
2796
- }, Io = function(t, e) {
2891
+ }, xo = function(t, e) {
2797
2892
  for (var r = "", o = 0; o < t.length; o += 1)
2798
2893
  r += t[o], o + 1 < t.length && (r += e);
2799
2894
  return r;
2800
- }, Fo = function(e) {
2895
+ }, Bo = function(e) {
2801
2896
  var r = this;
2802
- if (typeof r != "function" || vo.apply(r) !== Ao)
2803
- throw new TypeError(wo + r);
2804
- for (var o = Eo(arguments, 1), s, u = function() {
2897
+ if (typeof r != "function" || _o.apply(r) !== To)
2898
+ throw new TypeError(Fo + r);
2899
+ for (var o = Oo(arguments, 1), s, u = function() {
2805
2900
  if (this instanceof s) {
2806
2901
  var g = r.apply(
2807
2902
  this,
2808
- Or(o, arguments)
2903
+ Br(o, arguments)
2809
2904
  );
2810
2905
  return Object(g) === g ? g : this;
2811
2906
  }
2812
2907
  return r.apply(
2813
2908
  e,
2814
- Or(o, arguments)
2909
+ Br(o, arguments)
2815
2910
  );
2816
- }, l = So(0, r.length - o.length), f = [], d = 0; d < l; d++)
2817
- f[d] = "$" + d;
2818
- if (s = Function("binder", "return function (" + Io(f, ",") + "){ return binder.apply(this,arguments); }")(u), r.prototype) {
2819
- var A = function() {
2911
+ }, l = Co(0, r.length - o.length), f = [], p = 0; p < l; p++)
2912
+ f[p] = "$" + p;
2913
+ if (s = Function("binder", "return function (" + xo(f, ",") + "){ return binder.apply(this,arguments); }")(u), r.prototype) {
2914
+ var S = function() {
2820
2915
  };
2821
- A.prototype = r.prototype, s.prototype = new A(), A.prototype = null;
2916
+ S.prototype = r.prototype, s.prototype = new S(), S.prototype = null;
2822
2917
  }
2823
2918
  return s;
2824
- }, Co = Fo, wn = Function.prototype.bind || Co, xr = {}.hasOwnProperty, Lt = Function.prototype.call, To = Lt.bind ? Lt.bind(xr) : function(t, e) {
2825
- return Lt.call(xr, t, e);
2826
- }, k, Ye = SyntaxError, vn = Function, Je = TypeError, Ut = function(t) {
2919
+ }, ko = Bo, Sn = Function.prototype.bind || ko, kr = {}.hasOwnProperty, Lt = Function.prototype.call, Po = Lt.bind ? Lt.bind(kr) : function(t, e) {
2920
+ return Lt.call(kr, t, e);
2921
+ }, $, Ye = SyntaxError, An = Function, Je = TypeError, Ut = function(t) {
2827
2922
  try {
2828
- return vn('"use strict"; return (' + t + ").constructor;")();
2923
+ return An('"use strict"; return (' + t + ").constructor;")();
2829
2924
  } catch {
2830
2925
  }
2831
2926
  }, $e = Object.getOwnPropertyDescriptor;
@@ -2837,7 +2932,7 @@ if ($e)
2837
2932
  }
2838
2933
  var $t = function() {
2839
2934
  throw new Je();
2840
- }, _o = $e ? function() {
2935
+ }, Ro = $e ? function() {
2841
2936
  try {
2842
2937
  return arguments.callee, $t;
2843
2938
  } catch {
@@ -2847,24 +2942,24 @@ var $t = function() {
2847
2942
  return $t;
2848
2943
  }
2849
2944
  }
2850
- }() : $t, Ve = go(), Oo = bo(), H = Object.getPrototypeOf || (Oo ? function(t) {
2945
+ }() : $t, Ve = Ao(), No = Io(), X = Object.getPrototypeOf || (No ? function(t) {
2851
2946
  return t.__proto__;
2852
- } : null), Ge = {}, xo = typeof Uint8Array > "u" || !H ? k : H(Uint8Array), De = {
2853
- "%AggregateError%": typeof AggregateError > "u" ? k : AggregateError,
2947
+ } : null), Qe = {}, Lo = typeof Uint8Array > "u" || !X ? $ : X(Uint8Array), je = {
2948
+ "%AggregateError%": typeof AggregateError > "u" ? $ : AggregateError,
2854
2949
  "%Array%": Array,
2855
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? k : ArrayBuffer,
2856
- "%ArrayIteratorPrototype%": Ve && H ? H([][Symbol.iterator]()) : k,
2857
- "%AsyncFromSyncIteratorPrototype%": k,
2858
- "%AsyncFunction%": Ge,
2859
- "%AsyncGenerator%": Ge,
2860
- "%AsyncGeneratorFunction%": Ge,
2861
- "%AsyncIteratorPrototype%": Ge,
2862
- "%Atomics%": typeof Atomics > "u" ? k : Atomics,
2863
- "%BigInt%": typeof BigInt > "u" ? k : BigInt,
2864
- "%BigInt64Array%": typeof BigInt64Array > "u" ? k : BigInt64Array,
2865
- "%BigUint64Array%": typeof BigUint64Array > "u" ? k : BigUint64Array,
2950
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? $ : ArrayBuffer,
2951
+ "%ArrayIteratorPrototype%": Ve && X ? X([][Symbol.iterator]()) : $,
2952
+ "%AsyncFromSyncIteratorPrototype%": $,
2953
+ "%AsyncFunction%": Qe,
2954
+ "%AsyncGenerator%": Qe,
2955
+ "%AsyncGeneratorFunction%": Qe,
2956
+ "%AsyncIteratorPrototype%": Qe,
2957
+ "%Atomics%": typeof Atomics > "u" ? $ : Atomics,
2958
+ "%BigInt%": typeof BigInt > "u" ? $ : BigInt,
2959
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? $ : BigInt64Array,
2960
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? $ : BigUint64Array,
2866
2961
  "%Boolean%": Boolean,
2867
- "%DataView%": typeof DataView > "u" ? k : DataView,
2962
+ "%DataView%": typeof DataView > "u" ? $ : DataView,
2868
2963
  "%Date%": Date,
2869
2964
  "%decodeURI%": decodeURI,
2870
2965
  "%decodeURIComponent%": decodeURIComponent,
@@ -2874,58 +2969,58 @@ var $t = function() {
2874
2969
  "%eval%": eval,
2875
2970
  // eslint-disable-line no-eval
2876
2971
  "%EvalError%": EvalError,
2877
- "%Float32Array%": typeof Float32Array > "u" ? k : Float32Array,
2878
- "%Float64Array%": typeof Float64Array > "u" ? k : Float64Array,
2879
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? k : FinalizationRegistry,
2880
- "%Function%": vn,
2881
- "%GeneratorFunction%": Ge,
2882
- "%Int8Array%": typeof Int8Array > "u" ? k : Int8Array,
2883
- "%Int16Array%": typeof Int16Array > "u" ? k : Int16Array,
2884
- "%Int32Array%": typeof Int32Array > "u" ? k : Int32Array,
2972
+ "%Float32Array%": typeof Float32Array > "u" ? $ : Float32Array,
2973
+ "%Float64Array%": typeof Float64Array > "u" ? $ : Float64Array,
2974
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? $ : FinalizationRegistry,
2975
+ "%Function%": An,
2976
+ "%GeneratorFunction%": Qe,
2977
+ "%Int8Array%": typeof Int8Array > "u" ? $ : Int8Array,
2978
+ "%Int16Array%": typeof Int16Array > "u" ? $ : Int16Array,
2979
+ "%Int32Array%": typeof Int32Array > "u" ? $ : Int32Array,
2885
2980
  "%isFinite%": isFinite,
2886
2981
  "%isNaN%": isNaN,
2887
- "%IteratorPrototype%": Ve && H ? H(H([][Symbol.iterator]())) : k,
2888
- "%JSON%": typeof JSON == "object" ? JSON : k,
2889
- "%Map%": typeof Map > "u" ? k : Map,
2890
- "%MapIteratorPrototype%": typeof Map > "u" || !Ve || !H ? k : H((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2982
+ "%IteratorPrototype%": Ve && X ? X(X([][Symbol.iterator]())) : $,
2983
+ "%JSON%": typeof JSON == "object" ? JSON : $,
2984
+ "%Map%": typeof Map > "u" ? $ : Map,
2985
+ "%MapIteratorPrototype%": typeof Map > "u" || !Ve || !X ? $ : X((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2891
2986
  "%Math%": Math,
2892
2987
  "%Number%": Number,
2893
2988
  "%Object%": Object,
2894
2989
  "%parseFloat%": parseFloat,
2895
2990
  "%parseInt%": parseInt,
2896
- "%Promise%": typeof Promise > "u" ? k : Promise,
2897
- "%Proxy%": typeof Proxy > "u" ? k : Proxy,
2991
+ "%Promise%": typeof Promise > "u" ? $ : Promise,
2992
+ "%Proxy%": typeof Proxy > "u" ? $ : Proxy,
2898
2993
  "%RangeError%": RangeError,
2899
2994
  "%ReferenceError%": ReferenceError,
2900
- "%Reflect%": typeof Reflect > "u" ? k : Reflect,
2995
+ "%Reflect%": typeof Reflect > "u" ? $ : Reflect,
2901
2996
  "%RegExp%": RegExp,
2902
- "%Set%": typeof Set > "u" ? k : Set,
2903
- "%SetIteratorPrototype%": typeof Set > "u" || !Ve || !H ? k : H((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2904
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? k : SharedArrayBuffer,
2997
+ "%Set%": typeof Set > "u" ? $ : Set,
2998
+ "%SetIteratorPrototype%": typeof Set > "u" || !Ve || !X ? $ : X((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2999
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? $ : SharedArrayBuffer,
2905
3000
  "%String%": String,
2906
- "%StringIteratorPrototype%": Ve && H ? H(""[Symbol.iterator]()) : k,
2907
- "%Symbol%": Ve ? Symbol : k,
3001
+ "%StringIteratorPrototype%": Ve && X ? X(""[Symbol.iterator]()) : $,
3002
+ "%Symbol%": Ve ? Symbol : $,
2908
3003
  "%SyntaxError%": Ye,
2909
- "%ThrowTypeError%": _o,
2910
- "%TypedArray%": xo,
3004
+ "%ThrowTypeError%": Ro,
3005
+ "%TypedArray%": Lo,
2911
3006
  "%TypeError%": Je,
2912
- "%Uint8Array%": typeof Uint8Array > "u" ? k : Uint8Array,
2913
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? k : Uint8ClampedArray,
2914
- "%Uint16Array%": typeof Uint16Array > "u" ? k : Uint16Array,
2915
- "%Uint32Array%": typeof Uint32Array > "u" ? k : Uint32Array,
3007
+ "%Uint8Array%": typeof Uint8Array > "u" ? $ : Uint8Array,
3008
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? $ : Uint8ClampedArray,
3009
+ "%Uint16Array%": typeof Uint16Array > "u" ? $ : Uint16Array,
3010
+ "%Uint32Array%": typeof Uint32Array > "u" ? $ : Uint32Array,
2916
3011
  "%URIError%": URIError,
2917
- "%WeakMap%": typeof WeakMap > "u" ? k : WeakMap,
2918
- "%WeakRef%": typeof WeakRef > "u" ? k : WeakRef,
2919
- "%WeakSet%": typeof WeakSet > "u" ? k : WeakSet
3012
+ "%WeakMap%": typeof WeakMap > "u" ? $ : WeakMap,
3013
+ "%WeakRef%": typeof WeakRef > "u" ? $ : WeakRef,
3014
+ "%WeakSet%": typeof WeakSet > "u" ? $ : WeakSet
2920
3015
  };
2921
- if (H)
3016
+ if (X)
2922
3017
  try {
2923
3018
  null.error;
2924
3019
  } catch (t) {
2925
- var Bo = H(H(t));
2926
- De["%Error.prototype%"] = Bo;
3020
+ var Uo = X(X(t));
3021
+ je["%Error.prototype%"] = Uo;
2927
3022
  }
2928
- var ko = function t(e) {
3023
+ var $o = function t(e) {
2929
3024
  var r;
2930
3025
  if (e === "%AsyncFunction%")
2931
3026
  r = Ut("async function () {}");
@@ -2938,10 +3033,10 @@ var ko = function t(e) {
2938
3033
  o && (r = o.prototype);
2939
3034
  } else if (e === "%AsyncIteratorPrototype%") {
2940
3035
  var s = t("%AsyncGenerator%");
2941
- s && H && (r = H(s.prototype));
3036
+ s && X && (r = X(s.prototype));
2942
3037
  }
2943
- return De[e] = r, r;
2944
- }, Br = {
3038
+ return je[e] = r, r;
3039
+ }, Pr = {
2945
3040
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
2946
3041
  "%ArrayPrototype%": ["Array", "prototype"],
2947
3042
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -2993,21 +3088,21 @@ var ko = function t(e) {
2993
3088
  "%URIErrorPrototype%": ["URIError", "prototype"],
2994
3089
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2995
3090
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2996
- }, ft = wn, St = To, Po = ft.call(Function.call, Array.prototype.concat), Ro = ft.call(Function.apply, Array.prototype.splice), kr = ft.call(Function.call, String.prototype.replace), At = ft.call(Function.call, String.prototype.slice), No = ft.call(Function.call, RegExp.prototype.exec), Lo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Uo = /\\(\\)?/g, $o = function(e) {
3091
+ }, ft = Sn, St = Po, jo = ft.call(Function.call, Array.prototype.concat), Do = ft.call(Function.apply, Array.prototype.splice), Rr = ft.call(Function.call, String.prototype.replace), At = ft.call(Function.call, String.prototype.slice), Mo = ft.call(Function.call, RegExp.prototype.exec), Vo = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, qo = /\\(\\)?/g, Qo = function(e) {
2997
3092
  var r = At(e, 0, 1), o = At(e, -1);
2998
3093
  if (r === "%" && o !== "%")
2999
3094
  throw new Ye("invalid intrinsic syntax, expected closing `%`");
3000
3095
  if (o === "%" && r !== "%")
3001
3096
  throw new Ye("invalid intrinsic syntax, expected opening `%`");
3002
3097
  var s = [];
3003
- return kr(e, Lo, function(u, l, f, d) {
3004
- s[s.length] = f ? kr(d, Uo, "$1") : l || u;
3098
+ return Rr(e, Vo, function(u, l, f, p) {
3099
+ s[s.length] = f ? Rr(p, qo, "$1") : l || u;
3005
3100
  }), s;
3006
- }, Do = function(e, r) {
3101
+ }, Go = function(e, r) {
3007
3102
  var o = e, s;
3008
- if (St(Br, o) && (s = Br[o], o = "%" + s[0] + "%"), St(De, o)) {
3009
- var u = De[o];
3010
- if (u === Ge && (u = ko(o)), typeof u > "u" && !r)
3103
+ if (St(Pr, o) && (s = Pr[o], o = "%" + s[0] + "%"), St(je, o)) {
3104
+ var u = je[o];
3105
+ if (u === Qe && (u = $o(o)), typeof u > "u" && !r)
3011
3106
  throw new Je("intrinsic " + e + " exists, but is not available. Please file an issue!");
3012
3107
  return {
3013
3108
  alias: s,
@@ -3021,16 +3116,16 @@ var ko = function t(e) {
3021
3116
  throw new Je("intrinsic name must be a non-empty string");
3022
3117
  if (arguments.length > 1 && typeof r != "boolean")
3023
3118
  throw new Je('"allowMissing" argument must be a boolean');
3024
- if (No(/^%?[^%]*%?$/, e) === null)
3119
+ if (Mo(/^%?[^%]*%?$/, e) === null)
3025
3120
  throw new Ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3026
- var o = $o(e), s = o.length > 0 ? o[0] : "", u = Do("%" + s + "%", r), l = u.name, f = u.value, d = !1, A = u.alias;
3027
- A && (s = A[0], Ro(o, Po([0, 1], A)));
3028
- for (var g = 1, w = !0; g < o.length; g += 1) {
3029
- var E = o[g], C = At(E, 0, 1), P = At(E, -1);
3030
- if ((C === '"' || C === "'" || C === "`" || P === '"' || P === "'" || P === "`") && C !== P)
3121
+ var o = Qo(e), s = o.length > 0 ? o[0] : "", u = Go("%" + s + "%", r), l = u.name, f = u.value, p = !1, S = u.alias;
3122
+ S && (s = S[0], Do(o, jo([0, 1], S)));
3123
+ for (var g = 1, b = !0; g < o.length; g += 1) {
3124
+ var E = o[g], _ = At(E, 0, 1), N = At(E, -1);
3125
+ if ((_ === '"' || _ === "'" || _ === "`" || N === '"' || N === "'" || N === "`") && _ !== N)
3031
3126
  throw new Ye("property names with quotes must have matching quotes");
3032
- if ((E === "constructor" || !w) && (d = !0), s += "." + E, l = "%" + s + "%", St(De, l))
3033
- f = De[l];
3127
+ if ((E === "constructor" || !b) && (p = !0), s += "." + E, l = "%" + s + "%", St(je, l))
3128
+ f = je[l];
3034
3129
  else if (f != null) {
3035
3130
  if (!(E in f)) {
3036
3131
  if (!r)
@@ -3038,15 +3133,15 @@ var ko = function t(e) {
3038
3133
  return;
3039
3134
  }
3040
3135
  if ($e && g + 1 >= o.length) {
3041
- var N = $e(f, E);
3042
- w = !!N, w && "get" in N && !("originalValue" in N.get) ? f = N.get : f = f[E];
3136
+ var P = $e(f, E);
3137
+ b = !!P, b && "get" in P && !("originalValue" in P.get) ? f = P.get : f = f[E];
3043
3138
  } else
3044
- w = St(f, E), f = f[E];
3045
- w && !d && (De[l] = f);
3139
+ b = St(f, E), f = f[E];
3140
+ b && !p && (je[l] = f);
3046
3141
  }
3047
3142
  }
3048
3143
  return f;
3049
- }, Sn = { exports: {} }, jo = Ze, er = jo("%Object.defineProperty%", !0), tr = function() {
3144
+ }, En = { exports: {} }, zo = Ze, er = zo("%Object.defineProperty%", !0), tr = function() {
3050
3145
  if (er)
3051
3146
  try {
3052
3147
  return er({}, "a", { value: 1 }), !0;
@@ -3064,21 +3159,21 @@ tr.hasArrayLengthDefineBug = function() {
3064
3159
  return !0;
3065
3160
  }
3066
3161
  };
3067
- var An = tr, Mo = Ze, yt = Mo("%Object.getOwnPropertyDescriptor%", !0);
3162
+ var In = tr, Ko = Ze, yt = Ko("%Object.getOwnPropertyDescriptor%", !0);
3068
3163
  if (yt)
3069
3164
  try {
3070
3165
  yt([], "length");
3071
3166
  } catch {
3072
3167
  yt = null;
3073
3168
  }
3074
- var br = yt, Vo = An(), wr = Ze, ut = Vo && wr("%Object.defineProperty%", !0);
3169
+ var vr = yt, Ho = In(), Sr = Ze, ut = Ho && Sr("%Object.defineProperty%", !0);
3075
3170
  if (ut)
3076
3171
  try {
3077
3172
  ut({}, "a", { value: 1 });
3078
3173
  } catch {
3079
3174
  ut = !1;
3080
3175
  }
3081
- var qo = wr("%SyntaxError%"), qe = wr("%TypeError%"), Pr = br, Go = function(e, r, o) {
3176
+ var Wo = Sr("%SyntaxError%"), qe = Sr("%TypeError%"), Nr = vr, Jo = function(e, r, o) {
3082
3177
  if (!e || typeof e != "object" && typeof e != "function")
3083
3178
  throw new qe("`obj` must be an object or a function`");
3084
3179
  if (typeof r != "string" && typeof r != "symbol")
@@ -3091,88 +3186,88 @@ var qo = wr("%SyntaxError%"), qe = wr("%TypeError%"), Pr = br, Go = function(e,
3091
3186
  throw new qe("`nonConfigurable`, if provided, must be a boolean or null");
3092
3187
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
3093
3188
  throw new qe("`loose`, if provided, must be a boolean");
3094
- var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, d = !!Pr && Pr(e, r);
3189
+ var s = arguments.length > 3 ? arguments[3] : null, u = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, p = !!Nr && Nr(e, r);
3095
3190
  if (ut)
3096
3191
  ut(e, r, {
3097
- configurable: l === null && d ? d.configurable : !l,
3098
- enumerable: s === null && d ? d.enumerable : !s,
3192
+ configurable: l === null && p ? p.configurable : !l,
3193
+ enumerable: s === null && p ? p.enumerable : !s,
3099
3194
  value: o,
3100
- writable: u === null && d ? d.writable : !u
3195
+ writable: u === null && p ? p.writable : !u
3101
3196
  });
3102
3197
  else if (f || !s && !u && !l)
3103
3198
  e[r] = o;
3104
3199
  else
3105
- throw new qo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3106
- }, En = Ze, Rr = Go, Qo = An(), Nr = br, Lr = En("%TypeError%"), zo = En("%Math.floor%"), Ko = function(e, r) {
3200
+ throw new Wo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
3201
+ }, Fn = Ze, Lr = Jo, Yo = In(), Ur = vr, $r = Fn("%TypeError%"), Xo = Fn("%Math.floor%"), Zo = function(e, r) {
3107
3202
  if (typeof e != "function")
3108
- throw new Lr("`fn` is not a function");
3109
- if (typeof r != "number" || r < 0 || r > 4294967295 || zo(r) !== r)
3110
- throw new Lr("`length` must be a positive 32-bit integer");
3203
+ throw new $r("`fn` is not a function");
3204
+ if (typeof r != "number" || r < 0 || r > 4294967295 || Xo(r) !== r)
3205
+ throw new $r("`length` must be a positive 32-bit integer");
3111
3206
  var o = arguments.length > 2 && !!arguments[2], s = !0, u = !0;
3112
- if ("length" in e && Nr) {
3113
- var l = Nr(e, "length");
3207
+ if ("length" in e && Ur) {
3208
+ var l = Ur(e, "length");
3114
3209
  l && !l.configurable && (s = !1), l && !l.writable && (u = !1);
3115
3210
  }
3116
- return (s || u || !o) && (Qo ? Rr(e, "length", r, !0, !0) : Rr(e, "length", r)), e;
3211
+ return (s || u || !o) && (Yo ? Lr(e, "length", r, !0, !0) : Lr(e, "length", r)), e;
3117
3212
  };
3118
3213
  (function(t) {
3119
- var e = wn, r = Ze, o = Ko, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), f = r("%Reflect.apply%", !0) || e.call(l, u), d = r("%Object.defineProperty%", !0), A = r("%Math.max%");
3120
- if (d)
3214
+ var e = Sn, r = Ze, o = Zo, s = r("%TypeError%"), u = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), f = r("%Reflect.apply%", !0) || e.call(l, u), p = r("%Object.defineProperty%", !0), S = r("%Math.max%");
3215
+ if (p)
3121
3216
  try {
3122
- d({}, "a", { value: 1 });
3217
+ p({}, "a", { value: 1 });
3123
3218
  } catch {
3124
- d = null;
3219
+ p = null;
3125
3220
  }
3126
3221
  t.exports = function(E) {
3127
3222
  if (typeof E != "function")
3128
3223
  throw new s("a function is required");
3129
- var C = f(e, l, arguments);
3224
+ var _ = f(e, l, arguments);
3130
3225
  return o(
3131
- C,
3132
- 1 + A(0, E.length - (arguments.length - 1)),
3226
+ _,
3227
+ 1 + S(0, E.length - (arguments.length - 1)),
3133
3228
  !0
3134
3229
  );
3135
3230
  };
3136
3231
  var g = function() {
3137
3232
  return f(e, u, arguments);
3138
3233
  };
3139
- d ? d(t.exports, "apply", { value: g }) : t.exports.apply = g;
3140
- })(Sn);
3141
- var In = Sn.exports, Fn = Ze, Cn = In, Ho = Cn(Fn("String.prototype.indexOf")), Tn = function(e, r) {
3142
- var o = Fn(e, !!r);
3143
- return typeof o == "function" && Ho(e, ".prototype.") > -1 ? Cn(o) : o;
3144
- }, Wo = mr(), Jo = Tn, rr = Jo("Object.prototype.toString"), kt = function(e) {
3145
- return Wo && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : rr(e) === "[object Arguments]";
3146
- }, _n = function(e) {
3234
+ p ? p(t.exports, "apply", { value: g }) : t.exports.apply = g;
3235
+ })(En);
3236
+ var _n = En.exports, Cn = Ze, Tn = _n, es = Tn(Cn("String.prototype.indexOf")), On = function(e, r) {
3237
+ var o = Cn(e, !!r);
3238
+ return typeof o == "function" && es(e, ".prototype.") > -1 ? Tn(o) : o;
3239
+ }, ts = wr(), rs = On, rr = rs("Object.prototype.toString"), kt = function(e) {
3240
+ return ts && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : rr(e) === "[object Arguments]";
3241
+ }, xn = function(e) {
3147
3242
  return kt(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && rr(e) !== "[object Array]" && rr(e.callee) === "[object Function]";
3148
- }, Yo = function() {
3243
+ }, ns = function() {
3149
3244
  return kt(arguments);
3150
3245
  }();
3151
- kt.isLegacyArguments = _n;
3152
- var Xo = Yo ? kt : _n, Zo = Object.prototype.toString, es = Function.prototype.toString, ts = /^\s*(?:function)?\*/, On = mr(), Dt = Object.getPrototypeOf, rs = function() {
3153
- if (!On)
3246
+ kt.isLegacyArguments = xn;
3247
+ var is = ns ? kt : xn, os = Object.prototype.toString, ss = Function.prototype.toString, as = /^\s*(?:function)?\*/, Bn = wr(), jt = Object.getPrototypeOf, us = function() {
3248
+ if (!Bn)
3154
3249
  return !1;
3155
3250
  try {
3156
3251
  return Function("return function*() {}")();
3157
3252
  } catch {
3158
3253
  }
3159
- }, jt, ns = function(e) {
3254
+ }, Dt, cs = function(e) {
3160
3255
  if (typeof e != "function")
3161
3256
  return !1;
3162
- if (ts.test(es.call(e)))
3257
+ if (as.test(ss.call(e)))
3163
3258
  return !0;
3164
- if (!On) {
3165
- var r = Zo.call(e);
3259
+ if (!Bn) {
3260
+ var r = os.call(e);
3166
3261
  return r === "[object GeneratorFunction]";
3167
3262
  }
3168
- if (!Dt)
3263
+ if (!jt)
3169
3264
  return !1;
3170
- if (typeof jt > "u") {
3171
- var o = rs();
3172
- jt = o ? Dt(o) : !1;
3265
+ if (typeof Dt > "u") {
3266
+ var o = us();
3267
+ Dt = o ? jt(o) : !1;
3173
3268
  }
3174
- return Dt(e) === jt;
3175
- }, xn = Function.prototype.toString, ze = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, gt;
3269
+ return jt(e) === Dt;
3270
+ }, kn = Function.prototype.toString, ze = typeof Reflect == "object" && Reflect !== null && Reflect.apply, nr, gt;
3176
3271
  if (typeof ze == "function" && typeof Object.defineProperty == "function")
3177
3272
  try {
3178
3273
  nr = Object.defineProperty({}, "length", {
@@ -3187,35 +3282,35 @@ if (typeof ze == "function" && typeof Object.defineProperty == "function")
3187
3282
  }
3188
3283
  else
3189
3284
  ze = null;
3190
- var is = /^\s*class\b/, ir = function(e) {
3285
+ var fs = /^\s*class\b/, ir = function(e) {
3191
3286
  try {
3192
- var r = xn.call(e);
3193
- return is.test(r);
3287
+ var r = kn.call(e);
3288
+ return fs.test(r);
3194
3289
  } catch {
3195
3290
  return !1;
3196
3291
  }
3197
3292
  }, Mt = function(e) {
3198
3293
  try {
3199
- return ir(e) ? !1 : (xn.call(e), !0);
3294
+ return ir(e) ? !1 : (kn.call(e), !0);
3200
3295
  } catch {
3201
3296
  return !1;
3202
3297
  }
3203
- }, mt = Object.prototype.toString, os = "[object Object]", ss = "[object Function]", as = "[object GeneratorFunction]", us = "[object HTMLAllCollection]", cs = "[object HTML document.all class]", fs = "[object HTMLCollection]", ls = typeof Symbol == "function" && !!Symbol.toStringTag, hs = !(0 in [,]), or = function() {
3298
+ }, mt = Object.prototype.toString, ls = "[object Object]", hs = "[object Function]", ps = "[object GeneratorFunction]", ds = "[object HTMLAllCollection]", ys = "[object HTML document.all class]", gs = "[object HTMLCollection]", ms = typeof Symbol == "function" && !!Symbol.toStringTag, bs = !(0 in [,]), or = function() {
3204
3299
  return !1;
3205
3300
  };
3206
3301
  if (typeof document == "object") {
3207
- var ps = document.all;
3208
- mt.call(ps) === mt.call(document.all) && (or = function(e) {
3209
- if ((hs || !e) && (typeof e > "u" || typeof e == "object"))
3302
+ var ws = document.all;
3303
+ mt.call(ws) === mt.call(document.all) && (or = function(e) {
3304
+ if ((bs || !e) && (typeof e > "u" || typeof e == "object"))
3210
3305
  try {
3211
3306
  var r = mt.call(e);
3212
- return (r === us || r === cs || r === fs || r === os) && e("") == null;
3307
+ return (r === ds || r === ys || r === gs || r === ls) && e("") == null;
3213
3308
  } catch {
3214
3309
  }
3215
3310
  return !1;
3216
3311
  });
3217
3312
  }
3218
- var ds = ze ? function(e) {
3313
+ var vs = ze ? function(e) {
3219
3314
  if (or(e))
3220
3315
  return !0;
3221
3316
  if (!e || typeof e != "function" && typeof e != "object")
@@ -3232,27 +3327,27 @@ var ds = ze ? function(e) {
3232
3327
  return !0;
3233
3328
  if (!e || typeof e != "function" && typeof e != "object")
3234
3329
  return !1;
3235
- if (ls)
3330
+ if (ms)
3236
3331
  return Mt(e);
3237
3332
  if (ir(e))
3238
3333
  return !1;
3239
3334
  var r = mt.call(e);
3240
- return r !== ss && r !== as && !/^\[object HTML/.test(r) ? !1 : Mt(e);
3241
- }, ys = ds, gs = Object.prototype.toString, Bn = Object.prototype.hasOwnProperty, ms = function(e, r, o) {
3335
+ return r !== hs && r !== ps && !/^\[object HTML/.test(r) ? !1 : Mt(e);
3336
+ }, Ss = vs, As = Object.prototype.toString, Pn = Object.prototype.hasOwnProperty, Es = function(e, r, o) {
3242
3337
  for (var s = 0, u = e.length; s < u; s++)
3243
- Bn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3244
- }, bs = function(e, r, o) {
3338
+ Pn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3339
+ }, Is = function(e, r, o) {
3245
3340
  for (var s = 0, u = e.length; s < u; s++)
3246
3341
  o == null ? r(e.charAt(s), s, e) : r.call(o, e.charAt(s), s, e);
3247
- }, ws = function(e, r, o) {
3342
+ }, Fs = function(e, r, o) {
3248
3343
  for (var s in e)
3249
- Bn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3250
- }, vs = function(e, r, o) {
3251
- if (!ys(r))
3344
+ Pn.call(e, s) && (o == null ? r(e[s], s, e) : r.call(o, e[s], s, e));
3345
+ }, _s = function(e, r, o) {
3346
+ if (!Ss(r))
3252
3347
  throw new TypeError("iterator must be a function");
3253
3348
  var s;
3254
- arguments.length >= 3 && (s = o), gs.call(e) === "[object Array]" ? ms(e, r, s) : typeof e == "string" ? bs(e, r, s) : ws(e, r, s);
3255
- }, Ss = vs, Vt = [
3349
+ arguments.length >= 3 && (s = o), As.call(e) === "[object Array]" ? Es(e, r, s) : typeof e == "string" ? Is(e, r, s) : Fs(e, r, s);
3350
+ }, Cs = _s, Vt = [
3256
3351
  "BigInt64Array",
3257
3352
  "BigUint64Array",
3258
3353
  "Float32Array",
@@ -3264,70 +3359,70 @@ var ds = ze ? function(e) {
3264
3359
  "Uint32Array",
3265
3360
  "Uint8Array",
3266
3361
  "Uint8ClampedArray"
3267
- ], As = typeof globalThis > "u" ? Wr : globalThis, Es = function() {
3362
+ ], Ts = typeof globalThis > "u" ? Yr : globalThis, Os = function() {
3268
3363
  for (var e = [], r = 0; r < Vt.length; r++)
3269
- typeof As[Vt[r]] == "function" && (e[e.length] = Vt[r]);
3364
+ typeof Ts[Vt[r]] == "function" && (e[e.length] = Vt[r]);
3270
3365
  return e;
3271
- }, Et = Ss, Is = Es, Ur = In, vr = Tn, bt = br, Fs = vr("Object.prototype.toString"), kn = mr(), $r = typeof globalThis > "u" ? Wr : globalThis, sr = Is(), Sr = vr("String.prototype.slice"), qt = Object.getPrototypeOf, Cs = vr("Array.prototype.indexOf", !0) || function(e, r) {
3366
+ }, Et = Cs, xs = Os, jr = _n, Ar = On, bt = vr, Bs = Ar("Object.prototype.toString"), Rn = wr(), Dr = typeof globalThis > "u" ? Yr : globalThis, sr = xs(), Er = Ar("String.prototype.slice"), qt = Object.getPrototypeOf, ks = Ar("Array.prototype.indexOf", !0) || function(e, r) {
3272
3367
  for (var o = 0; o < e.length; o += 1)
3273
3368
  if (e[o] === r)
3274
3369
  return o;
3275
3370
  return -1;
3276
3371
  }, It = { __proto__: null };
3277
- kn && bt && qt ? Et(sr, function(t) {
3278
- var e = new $r[t]();
3372
+ Rn && bt && qt ? Et(sr, function(t) {
3373
+ var e = new Dr[t]();
3279
3374
  if (Symbol.toStringTag in e) {
3280
3375
  var r = qt(e), o = bt(r, Symbol.toStringTag);
3281
3376
  if (!o) {
3282
3377
  var s = qt(r);
3283
3378
  o = bt(s, Symbol.toStringTag);
3284
3379
  }
3285
- It["$" + t] = Ur(o.get);
3380
+ It["$" + t] = jr(o.get);
3286
3381
  }
3287
3382
  }) : Et(sr, function(t) {
3288
- var e = new $r[t](), r = e.slice || e.set;
3289
- r && (It["$" + t] = Ur(r));
3383
+ var e = new Dr[t](), r = e.slice || e.set;
3384
+ r && (It["$" + t] = jr(r));
3290
3385
  });
3291
- var Ts = function(e) {
3386
+ var Ps = function(e) {
3292
3387
  var r = !1;
3293
3388
  return Et(It, function(o, s) {
3294
3389
  if (!r)
3295
3390
  try {
3296
- "$" + o(e) === s && (r = Sr(s, 1));
3391
+ "$" + o(e) === s && (r = Er(s, 1));
3297
3392
  } catch {
3298
3393
  }
3299
3394
  }), r;
3300
- }, _s = function(e) {
3395
+ }, Rs = function(e) {
3301
3396
  var r = !1;
3302
3397
  return Et(It, function(o, s) {
3303
3398
  if (!r)
3304
3399
  try {
3305
- o(e), r = Sr(s, 1);
3400
+ o(e), r = Er(s, 1);
3306
3401
  } catch {
3307
3402
  }
3308
3403
  }), r;
3309
- }, Pn = function(e) {
3404
+ }, Nn = function(e) {
3310
3405
  if (!e || typeof e != "object")
3311
3406
  return !1;
3312
- if (!kn) {
3313
- var r = Sr(Fs(e), 8, -1);
3314
- return Cs(sr, r) > -1 ? r : r !== "Object" ? !1 : _s(e);
3407
+ if (!Rn) {
3408
+ var r = Er(Bs(e), 8, -1);
3409
+ return ks(sr, r) > -1 ? r : r !== "Object" ? !1 : Rs(e);
3315
3410
  }
3316
- return bt ? Ts(e) : null;
3317
- }, Os = Pn, xs = function(e) {
3318
- return !!Os(e);
3411
+ return bt ? Ps(e) : null;
3412
+ }, Ns = Nn, Ls = function(e) {
3413
+ return !!Ns(e);
3319
3414
  };
3320
3415
  (function(t) {
3321
- var e = Xo, r = ns, o = Pn, s = xs;
3416
+ var e = is, r = cs, o = Nn, s = Ls;
3322
3417
  function u(v) {
3323
3418
  return v.call.bind(v);
3324
3419
  }
3325
- var l = typeof BigInt < "u", f = typeof Symbol < "u", d = u(Object.prototype.toString), A = u(Number.prototype.valueOf), g = u(String.prototype.valueOf), w = u(Boolean.prototype.valueOf);
3420
+ var l = typeof BigInt < "u", f = typeof Symbol < "u", p = u(Object.prototype.toString), S = u(Number.prototype.valueOf), g = u(String.prototype.valueOf), b = u(Boolean.prototype.valueOf);
3326
3421
  if (l)
3327
3422
  var E = u(BigInt.prototype.valueOf);
3328
3423
  if (f)
3329
- var C = u(Symbol.prototype.valueOf);
3330
- function P(v, ht) {
3424
+ var _ = u(Symbol.prototype.valueOf);
3425
+ function N(v, ht) {
3331
3426
  if (typeof v != "object")
3332
3427
  return !1;
3333
3428
  try {
@@ -3337,76 +3432,76 @@ var Ts = function(e) {
3337
3432
  }
3338
3433
  }
3339
3434
  t.isArgumentsObject = e, t.isGeneratorFunction = r, t.isTypedArray = s;
3340
- function N(v) {
3435
+ function P(v) {
3341
3436
  return typeof Promise < "u" && v instanceof Promise || v !== null && typeof v == "object" && typeof v.then == "function" && typeof v.catch == "function";
3342
3437
  }
3343
- t.isPromise = N;
3344
- function Q(v) {
3345
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(v) : s(v) || b(v);
3438
+ t.isPromise = P;
3439
+ function K(v) {
3440
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(v) : s(v) || w(v);
3346
3441
  }
3347
- t.isArrayBufferView = Q;
3348
- function z(v) {
3442
+ t.isArrayBufferView = K;
3443
+ function I(v) {
3349
3444
  return o(v) === "Uint8Array";
3350
3445
  }
3351
- t.isUint8Array = z;
3352
- function X(v) {
3446
+ t.isUint8Array = I;
3447
+ function C(v) {
3353
3448
  return o(v) === "Uint8ClampedArray";
3354
3449
  }
3355
- t.isUint8ClampedArray = X;
3356
- function de(v) {
3450
+ t.isUint8ClampedArray = C;
3451
+ function j(v) {
3357
3452
  return o(v) === "Uint16Array";
3358
3453
  }
3359
- t.isUint16Array = de;
3360
- function te(v) {
3454
+ t.isUint16Array = j;
3455
+ function U(v) {
3361
3456
  return o(v) === "Uint32Array";
3362
3457
  }
3363
- t.isUint32Array = te;
3364
- function B(v) {
3458
+ t.isUint32Array = U;
3459
+ function F(v) {
3365
3460
  return o(v) === "Int8Array";
3366
3461
  }
3367
- t.isInt8Array = B;
3368
- function j(v) {
3462
+ t.isInt8Array = F;
3463
+ function x(v) {
3369
3464
  return o(v) === "Int16Array";
3370
3465
  }
3371
- t.isInt16Array = j;
3372
- function O(v) {
3466
+ t.isInt16Array = x;
3467
+ function k(v) {
3373
3468
  return o(v) === "Int32Array";
3374
3469
  }
3375
- t.isInt32Array = O;
3376
- function re(v) {
3470
+ t.isInt32Array = k;
3471
+ function G(v) {
3377
3472
  return o(v) === "Float32Array";
3378
3473
  }
3379
- t.isFloat32Array = re;
3380
- function ne(v) {
3474
+ t.isFloat32Array = G;
3475
+ function ie(v) {
3381
3476
  return o(v) === "Float64Array";
3382
3477
  }
3383
- t.isFloat64Array = ne;
3384
- function _e(v) {
3478
+ t.isFloat64Array = ie;
3479
+ function Te(v) {
3385
3480
  return o(v) === "BigInt64Array";
3386
3481
  }
3387
- t.isBigInt64Array = _e;
3482
+ t.isBigInt64Array = Te;
3388
3483
  function Se(v) {
3389
3484
  return o(v) === "BigUint64Array";
3390
3485
  }
3391
3486
  t.isBigUint64Array = Se;
3392
- function ce(v) {
3393
- return d(v) === "[object Map]";
3487
+ function fe(v) {
3488
+ return p(v) === "[object Map]";
3394
3489
  }
3395
- ce.working = typeof Map < "u" && ce(/* @__PURE__ */ new Map());
3490
+ fe.working = typeof Map < "u" && fe(/* @__PURE__ */ new Map());
3396
3491
  function tt(v) {
3397
- return typeof Map > "u" ? !1 : ce.working ? ce(v) : v instanceof Map;
3492
+ return typeof Map > "u" ? !1 : fe.working ? fe(v) : v instanceof Map;
3398
3493
  }
3399
3494
  t.isMap = tt;
3400
- function fe(v) {
3401
- return d(v) === "[object Set]";
3495
+ function le(v) {
3496
+ return p(v) === "[object Set]";
3402
3497
  }
3403
- fe.working = typeof Set < "u" && fe(/* @__PURE__ */ new Set());
3498
+ le.working = typeof Set < "u" && le(/* @__PURE__ */ new Set());
3404
3499
  function Oe(v) {
3405
- return typeof Set > "u" ? !1 : fe.working ? fe(v) : v instanceof Set;
3500
+ return typeof Set > "u" ? !1 : le.working ? le(v) : v instanceof Set;
3406
3501
  }
3407
3502
  t.isSet = Oe;
3408
3503
  function xe(v) {
3409
- return d(v) === "[object WeakMap]";
3504
+ return p(v) === "[object WeakMap]";
3410
3505
  }
3411
3506
  xe.working = typeof WeakMap < "u" && xe(/* @__PURE__ */ new WeakMap());
3412
3507
  function rt(v) {
@@ -3414,83 +3509,83 @@ var Ts = function(e) {
3414
3509
  }
3415
3510
  t.isWeakMap = rt;
3416
3511
  function Be(v) {
3417
- return d(v) === "[object WeakSet]";
3512
+ return p(v) === "[object WeakSet]";
3418
3513
  }
3419
3514
  Be.working = typeof WeakSet < "u" && Be(/* @__PURE__ */ new WeakSet());
3420
- function le(v) {
3515
+ function he(v) {
3421
3516
  return Be(v);
3422
3517
  }
3423
- t.isWeakSet = le;
3518
+ t.isWeakSet = he;
3424
3519
  function ke(v) {
3425
- return d(v) === "[object ArrayBuffer]";
3520
+ return p(v) === "[object ArrayBuffer]";
3426
3521
  }
3427
3522
  ke.working = typeof ArrayBuffer < "u" && ke(new ArrayBuffer());
3428
- function V(v) {
3523
+ function H(v) {
3429
3524
  return typeof ArrayBuffer > "u" ? !1 : ke.working ? ke(v) : v instanceof ArrayBuffer;
3430
3525
  }
3431
- t.isArrayBuffer = V;
3432
- function p(v) {
3433
- return d(v) === "[object DataView]";
3526
+ t.isArrayBuffer = H;
3527
+ function d(v) {
3528
+ return p(v) === "[object DataView]";
3434
3529
  }
3435
- p.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && p(new DataView(new ArrayBuffer(1), 0, 1));
3436
- function b(v) {
3437
- return typeof DataView > "u" ? !1 : p.working ? p(v) : v instanceof DataView;
3530
+ d.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && d(new DataView(new ArrayBuffer(1), 0, 1));
3531
+ function w(v) {
3532
+ return typeof DataView > "u" ? !1 : d.working ? d(v) : v instanceof DataView;
3438
3533
  }
3439
- t.isDataView = b;
3440
- var S = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
3441
- function I(v) {
3442
- return d(v) === "[object SharedArrayBuffer]";
3534
+ t.isDataView = w;
3535
+ var A = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
3536
+ function T(v) {
3537
+ return p(v) === "[object SharedArrayBuffer]";
3443
3538
  }
3444
- function R(v) {
3445
- return typeof S > "u" ? !1 : (typeof I.working > "u" && (I.working = I(new S())), I.working ? I(v) : v instanceof S);
3539
+ function D(v) {
3540
+ return typeof A > "u" ? !1 : (typeof T.working > "u" && (T.working = T(new A())), T.working ? T(v) : v instanceof A);
3446
3541
  }
3447
- t.isSharedArrayBuffer = R;
3448
- function L(v) {
3449
- return d(v) === "[object AsyncFunction]";
3542
+ t.isSharedArrayBuffer = D;
3543
+ function M(v) {
3544
+ return p(v) === "[object AsyncFunction]";
3450
3545
  }
3451
- t.isAsyncFunction = L;
3452
- function F(v) {
3453
- return d(v) === "[object Map Iterator]";
3546
+ t.isAsyncFunction = M;
3547
+ function B(v) {
3548
+ return p(v) === "[object Map Iterator]";
3454
3549
  }
3455
- t.isMapIterator = F;
3456
- function x(v) {
3457
- return d(v) === "[object Set Iterator]";
3550
+ t.isMapIterator = B;
3551
+ function L(v) {
3552
+ return p(v) === "[object Set Iterator]";
3458
3553
  }
3459
- t.isSetIterator = x;
3460
- function U(v) {
3461
- return d(v) === "[object Generator]";
3554
+ t.isSetIterator = L;
3555
+ function V(v) {
3556
+ return p(v) === "[object Generator]";
3462
3557
  }
3463
- t.isGeneratorObject = U;
3464
- function Y(v) {
3465
- return d(v) === "[object WebAssembly.Module]";
3558
+ t.isGeneratorObject = V;
3559
+ function te(v) {
3560
+ return p(v) === "[object WebAssembly.Module]";
3466
3561
  }
3467
- t.isWebAssemblyCompiledModule = Y;
3562
+ t.isWebAssemblyCompiledModule = te;
3468
3563
  function ye(v) {
3469
- return P(v, A);
3564
+ return N(v, S);
3470
3565
  }
3471
3566
  t.isNumberObject = ye;
3472
- function he(v) {
3473
- return P(v, g);
3567
+ function pe(v) {
3568
+ return N(v, g);
3474
3569
  }
3475
- t.isStringObject = he;
3476
- function ie(v) {
3477
- return P(v, w);
3570
+ t.isStringObject = pe;
3571
+ function oe(v) {
3572
+ return N(v, b);
3478
3573
  }
3479
- t.isBooleanObject = ie;
3480
- function je(v) {
3481
- return l && P(v, E);
3574
+ t.isBooleanObject = oe;
3575
+ function De(v) {
3576
+ return l && N(v, E);
3482
3577
  }
3483
- t.isBigIntObject = je;
3578
+ t.isBigIntObject = De;
3484
3579
  function lt(v) {
3485
- return f && P(v, C);
3580
+ return f && N(v, _);
3486
3581
  }
3487
3582
  t.isSymbolObject = lt;
3488
3583
  function nt(v) {
3489
- return ye(v) || he(v) || ie(v) || je(v) || lt(v);
3584
+ return ye(v) || pe(v) || oe(v) || De(v) || lt(v);
3490
3585
  }
3491
3586
  t.isBoxedPrimitive = nt;
3492
3587
  function Pt(v) {
3493
- return typeof Uint8Array < "u" && (V(v) || R(v));
3588
+ return typeof Uint8Array < "u" && (H(v) || D(v));
3494
3589
  }
3495
3590
  t.isAnyArrayBuffer = Pt, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(v) {
3496
3591
  Object.defineProperty(t, v, {
@@ -3500,8 +3595,8 @@ var Ts = function(e) {
3500
3595
  }
3501
3596
  });
3502
3597
  });
3503
- })(mn);
3504
- var Bs = function(e) {
3598
+ })(wn);
3599
+ var Us = function(e) {
3505
3600
  return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
3506
3601
  }, ar = { exports: {} };
3507
3602
  typeof Object.create == "function" ? ar.exports = function(e, r) {
@@ -3521,83 +3616,83 @@ typeof Object.create == "function" ? ar.exports = function(e, r) {
3521
3616
  o.prototype = r.prototype, e.prototype = new o(), e.prototype.constructor = e;
3522
3617
  }
3523
3618
  };
3524
- var ks = ar.exports;
3619
+ var $s = ar.exports;
3525
3620
  (function(t) {
3526
- var e = Object.getOwnPropertyDescriptors || function(b) {
3527
- for (var S = Object.keys(b), I = {}, R = 0; R < S.length; R++)
3528
- I[S[R]] = Object.getOwnPropertyDescriptor(b, S[R]);
3529
- return I;
3621
+ var e = Object.getOwnPropertyDescriptors || function(w) {
3622
+ for (var A = Object.keys(w), T = {}, D = 0; D < A.length; D++)
3623
+ T[A[D]] = Object.getOwnPropertyDescriptor(w, A[D]);
3624
+ return T;
3530
3625
  }, r = /%[sdj%]/g;
3531
- t.format = function(p) {
3532
- if (!B(p)) {
3533
- for (var b = [], S = 0; S < arguments.length; S++)
3534
- b.push(l(arguments[S]));
3535
- return b.join(" ");
3626
+ t.format = function(d) {
3627
+ if (!F(d)) {
3628
+ for (var w = [], A = 0; A < arguments.length; A++)
3629
+ w.push(l(arguments[A]));
3630
+ return w.join(" ");
3536
3631
  }
3537
- for (var S = 1, I = arguments, R = I.length, L = String(p).replace(r, function(x) {
3538
- if (x === "%%")
3632
+ for (var A = 1, T = arguments, D = T.length, M = String(d).replace(r, function(L) {
3633
+ if (L === "%%")
3539
3634
  return "%";
3540
- if (S >= R)
3541
- return x;
3542
- switch (x) {
3635
+ if (A >= D)
3636
+ return L;
3637
+ switch (L) {
3543
3638
  case "%s":
3544
- return String(I[S++]);
3639
+ return String(T[A++]);
3545
3640
  case "%d":
3546
- return Number(I[S++]);
3641
+ return Number(T[A++]);
3547
3642
  case "%j":
3548
3643
  try {
3549
- return JSON.stringify(I[S++]);
3644
+ return JSON.stringify(T[A++]);
3550
3645
  } catch {
3551
3646
  return "[Circular]";
3552
3647
  }
3553
3648
  default:
3554
- return x;
3649
+ return L;
3555
3650
  }
3556
- }), F = I[S]; S < R; F = I[++S])
3557
- X(F) || !ne(F) ? L += " " + F : L += " " + l(F);
3558
- return L;
3559
- }, t.deprecate = function(p, b) {
3560
- if (typeof T.process < "u" && T.process.noDeprecation === !0)
3561
- return p;
3562
- if (typeof T.process > "u")
3651
+ }), B = T[A]; A < D; B = T[++A])
3652
+ C(B) || !ie(B) ? M += " " + B : M += " " + l(B);
3653
+ return M;
3654
+ }, t.deprecate = function(d, w) {
3655
+ if (typeof O.process < "u" && O.process.noDeprecation === !0)
3656
+ return d;
3657
+ if (typeof O.process > "u")
3563
3658
  return function() {
3564
- return t.deprecate(p, b).apply(this, arguments);
3659
+ return t.deprecate(d, w).apply(this, arguments);
3565
3660
  };
3566
- var S = !1;
3567
- function I() {
3568
- if (!S) {
3569
- if (T.process.throwDeprecation)
3570
- throw new Error(b);
3571
- T.process.traceDeprecation ? console.trace(b) : console.error(b), S = !0;
3661
+ var A = !1;
3662
+ function T() {
3663
+ if (!A) {
3664
+ if (O.process.throwDeprecation)
3665
+ throw new Error(w);
3666
+ O.process.traceDeprecation ? console.trace(w) : console.error(w), A = !0;
3572
3667
  }
3573
- return p.apply(this, arguments);
3668
+ return d.apply(this, arguments);
3574
3669
  }
3575
- return I;
3670
+ return T;
3576
3671
  };
3577
3672
  var o = {}, s = /^$/;
3578
- if (T.process.env.NODE_DEBUG) {
3579
- var u = T.process.env.NODE_DEBUG;
3673
+ if (O.process.env.NODE_DEBUG) {
3674
+ var u = O.process.env.NODE_DEBUG;
3580
3675
  u = u.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), s = new RegExp("^" + u + "$", "i");
3581
3676
  }
3582
- t.debuglog = function(p) {
3583
- if (p = p.toUpperCase(), !o[p])
3584
- if (s.test(p)) {
3585
- var b = T.process.pid;
3586
- o[p] = function() {
3587
- var S = t.format.apply(t, arguments);
3588
- console.error("%s %d: %s", p, b, S);
3677
+ t.debuglog = function(d) {
3678
+ if (d = d.toUpperCase(), !o[d])
3679
+ if (s.test(d)) {
3680
+ var w = O.process.pid;
3681
+ o[d] = function() {
3682
+ var A = t.format.apply(t, arguments);
3683
+ console.error("%s %d: %s", d, w, A);
3589
3684
  };
3590
3685
  } else
3591
- o[p] = function() {
3686
+ o[d] = function() {
3592
3687
  };
3593
- return o[p];
3688
+ return o[d];
3594
3689
  };
3595
- function l(p, b) {
3596
- var S = {
3690
+ function l(d, w) {
3691
+ var A = {
3597
3692
  seen: [],
3598
- stylize: d
3693
+ stylize: p
3599
3694
  };
3600
- return arguments.length >= 3 && (S.depth = arguments[2]), arguments.length >= 4 && (S.colors = arguments[3]), z(b) ? S.showHidden = b : b && t._extend(S, b), O(S.showHidden) && (S.showHidden = !1), O(S.depth) && (S.depth = 2), O(S.colors) && (S.colors = !1), O(S.customInspect) && (S.customInspect = !0), S.colors && (S.stylize = f), g(S, p, S.depth);
3695
+ return arguments.length >= 3 && (A.depth = arguments[2]), arguments.length >= 4 && (A.colors = arguments[3]), I(w) ? A.showHidden = w : w && t._extend(A, w), 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 = f), g(A, d, A.depth);
3601
3696
  }
3602
3697
  t.inspect = l, l.colors = {
3603
3698
  bold: [1, 22],
@@ -3624,188 +3719,188 @@ var ks = ar.exports;
3624
3719
  // "name": intentionally not styling
3625
3720
  regexp: "red"
3626
3721
  };
3627
- function f(p, b) {
3628
- var S = l.styles[b];
3629
- return S ? "\x1B[" + l.colors[S][0] + "m" + p + "\x1B[" + l.colors[S][1] + "m" : p;
3630
- }
3631
- function d(p, b) {
3632
- return p;
3633
- }
3634
- function A(p) {
3635
- var b = {};
3636
- return p.forEach(function(S, I) {
3637
- b[S] = !0;
3638
- }), b;
3639
- }
3640
- function g(p, b, S) {
3641
- if (p.customInspect && b && ce(b.inspect) && // Filter out the util module, it's inspect function is special
3642
- b.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
3643
- !(b.constructor && b.constructor.prototype === b)) {
3644
- var I = b.inspect(S, p);
3645
- return B(I) || (I = g(p, I, S)), I;
3722
+ function f(d, w) {
3723
+ var A = l.styles[w];
3724
+ return A ? "\x1B[" + l.colors[A][0] + "m" + d + "\x1B[" + l.colors[A][1] + "m" : d;
3725
+ }
3726
+ function p(d, w) {
3727
+ return d;
3728
+ }
3729
+ function S(d) {
3730
+ var w = {};
3731
+ return d.forEach(function(A, T) {
3732
+ w[A] = !0;
3733
+ }), w;
3734
+ }
3735
+ function g(d, w, A) {
3736
+ if (d.customInspect && w && fe(w.inspect) && // Filter out the util module, it's inspect function is special
3737
+ w.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
3738
+ !(w.constructor && w.constructor.prototype === w)) {
3739
+ var T = w.inspect(A, d);
3740
+ return F(T) || (T = g(d, T, A)), T;
3646
3741
  }
3647
- var R = w(p, b);
3648
- if (R)
3649
- return R;
3650
- var L = Object.keys(b), F = A(L);
3651
- if (p.showHidden && (L = Object.getOwnPropertyNames(b)), Se(b) && (L.indexOf("message") >= 0 || L.indexOf("description") >= 0))
3652
- return E(b);
3653
- if (L.length === 0) {
3654
- if (ce(b)) {
3655
- var x = b.name ? ": " + b.name : "";
3656
- return p.stylize("[Function" + x + "]", "special");
3742
+ var D = b(d, w);
3743
+ if (D)
3744
+ return D;
3745
+ var M = Object.keys(w), B = S(M);
3746
+ if (d.showHidden && (M = Object.getOwnPropertyNames(w)), Se(w) && (M.indexOf("message") >= 0 || M.indexOf("description") >= 0))
3747
+ return E(w);
3748
+ if (M.length === 0) {
3749
+ if (fe(w)) {
3750
+ var L = w.name ? ": " + w.name : "";
3751
+ return d.stylize("[Function" + L + "]", "special");
3657
3752
  }
3658
- if (re(b))
3659
- return p.stylize(RegExp.prototype.toString.call(b), "regexp");
3660
- if (_e(b))
3661
- return p.stylize(Date.prototype.toString.call(b), "date");
3662
- if (Se(b))
3663
- return E(b);
3753
+ if (G(w))
3754
+ return d.stylize(RegExp.prototype.toString.call(w), "regexp");
3755
+ if (Te(w))
3756
+ return d.stylize(Date.prototype.toString.call(w), "date");
3757
+ if (Se(w))
3758
+ return E(w);
3664
3759
  }
3665
- var U = "", Y = !1, ye = ["{", "}"];
3666
- if (Q(b) && (Y = !0, ye = ["[", "]"]), ce(b)) {
3667
- var he = b.name ? ": " + b.name : "";
3668
- U = " [Function" + he + "]";
3760
+ var V = "", te = !1, ye = ["{", "}"];
3761
+ if (K(w) && (te = !0, ye = ["[", "]"]), fe(w)) {
3762
+ var pe = w.name ? ": " + w.name : "";
3763
+ V = " [Function" + pe + "]";
3669
3764
  }
3670
- if (re(b) && (U = " " + RegExp.prototype.toString.call(b)), _e(b) && (U = " " + Date.prototype.toUTCString.call(b)), Se(b) && (U = " " + E(b)), L.length === 0 && (!Y || b.length == 0))
3671
- return ye[0] + U + ye[1];
3672
- if (S < 0)
3673
- return re(b) ? p.stylize(RegExp.prototype.toString.call(b), "regexp") : p.stylize("[Object]", "special");
3674
- p.seen.push(b);
3675
- var ie;
3676
- return Y ? ie = C(p, b, S, F, L) : ie = L.map(function(je) {
3677
- return P(p, b, S, F, je, Y);
3678
- }), p.seen.pop(), N(ie, U, ye);
3679
- }
3680
- function w(p, b) {
3681
- if (O(b))
3682
- return p.stylize("undefined", "undefined");
3683
- if (B(b)) {
3684
- var S = "'" + JSON.stringify(b).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
3685
- return p.stylize(S, "string");
3765
+ if (G(w) && (V = " " + RegExp.prototype.toString.call(w)), Te(w) && (V = " " + Date.prototype.toUTCString.call(w)), Se(w) && (V = " " + E(w)), M.length === 0 && (!te || w.length == 0))
3766
+ return ye[0] + V + ye[1];
3767
+ if (A < 0)
3768
+ return G(w) ? d.stylize(RegExp.prototype.toString.call(w), "regexp") : d.stylize("[Object]", "special");
3769
+ d.seen.push(w);
3770
+ var oe;
3771
+ return te ? oe = _(d, w, A, B, M) : oe = M.map(function(De) {
3772
+ return N(d, w, A, B, De, te);
3773
+ }), d.seen.pop(), P(oe, V, ye);
3774
+ }
3775
+ function b(d, w) {
3776
+ if (k(w))
3777
+ return d.stylize("undefined", "undefined");
3778
+ if (F(w)) {
3779
+ var A = "'" + JSON.stringify(w).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
3780
+ return d.stylize(A, "string");
3686
3781
  }
3687
- if (te(b))
3688
- return p.stylize("" + b, "number");
3689
- if (z(b))
3690
- return p.stylize("" + b, "boolean");
3691
- if (X(b))
3692
- return p.stylize("null", "null");
3693
- }
3694
- function E(p) {
3695
- return "[" + Error.prototype.toString.call(p) + "]";
3696
- }
3697
- function C(p, b, S, I, R) {
3698
- for (var L = [], F = 0, x = b.length; F < x; ++F)
3699
- Be(b, String(F)) ? L.push(P(
3700
- p,
3701
- b,
3702
- S,
3703
- I,
3704
- String(F),
3782
+ if (U(w))
3783
+ return d.stylize("" + w, "number");
3784
+ if (I(w))
3785
+ return d.stylize("" + w, "boolean");
3786
+ if (C(w))
3787
+ return d.stylize("null", "null");
3788
+ }
3789
+ function E(d) {
3790
+ return "[" + Error.prototype.toString.call(d) + "]";
3791
+ }
3792
+ function _(d, w, A, T, D) {
3793
+ for (var M = [], B = 0, L = w.length; B < L; ++B)
3794
+ Be(w, String(B)) ? M.push(N(
3795
+ d,
3796
+ w,
3797
+ A,
3798
+ T,
3799
+ String(B),
3705
3800
  !0
3706
- )) : L.push("");
3707
- return R.forEach(function(U) {
3708
- U.match(/^\d+$/) || L.push(P(
3709
- p,
3710
- b,
3711
- S,
3712
- I,
3713
- U,
3801
+ )) : M.push("");
3802
+ return D.forEach(function(V) {
3803
+ V.match(/^\d+$/) || M.push(N(
3804
+ d,
3805
+ w,
3806
+ A,
3807
+ T,
3808
+ V,
3714
3809
  !0
3715
3810
  ));
3716
- }), L;
3717
- }
3718
- function P(p, b, S, I, R, L) {
3719
- var F, x, U;
3720
- if (U = Object.getOwnPropertyDescriptor(b, R) || { value: b[R] }, U.get ? U.set ? x = p.stylize("[Getter/Setter]", "special") : x = p.stylize("[Getter]", "special") : U.set && (x = p.stylize("[Setter]", "special")), Be(I, R) || (F = "[" + R + "]"), x || (p.seen.indexOf(U.value) < 0 ? (X(S) ? x = g(p, U.value, null) : x = g(p, U.value, S - 1), x.indexOf(`
3721
- `) > -1 && (L ? x = x.split(`
3722
- `).map(function(Y) {
3723
- return " " + Y;
3811
+ }), M;
3812
+ }
3813
+ function N(d, w, A, T, D, M) {
3814
+ var B, L, V;
3815
+ if (V = Object.getOwnPropertyDescriptor(w, D) || { value: w[D] }, V.get ? V.set ? L = d.stylize("[Getter/Setter]", "special") : L = d.stylize("[Getter]", "special") : V.set && (L = d.stylize("[Setter]", "special")), Be(T, D) || (B = "[" + D + "]"), L || (d.seen.indexOf(V.value) < 0 ? (C(A) ? L = g(d, V.value, null) : L = g(d, V.value, A - 1), L.indexOf(`
3816
+ `) > -1 && (M ? L = L.split(`
3817
+ `).map(function(te) {
3818
+ return " " + te;
3724
3819
  }).join(`
3725
- `).slice(2) : x = `
3726
- ` + x.split(`
3727
- `).map(function(Y) {
3728
- return " " + Y;
3820
+ `).slice(2) : L = `
3821
+ ` + L.split(`
3822
+ `).map(function(te) {
3823
+ return " " + te;
3729
3824
  }).join(`
3730
- `))) : x = p.stylize("[Circular]", "special")), O(F)) {
3731
- if (L && R.match(/^\d+$/))
3732
- return x;
3733
- F = JSON.stringify("" + R), F.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (F = F.slice(1, -1), F = p.stylize(F, "name")) : (F = F.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), F = p.stylize(F, "string"));
3825
+ `))) : L = d.stylize("[Circular]", "special")), k(B)) {
3826
+ if (M && D.match(/^\d+$/))
3827
+ return L;
3828
+ B = JSON.stringify("" + D), B.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (B = B.slice(1, -1), B = d.stylize(B, "name")) : (B = B.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), B = d.stylize(B, "string"));
3734
3829
  }
3735
- return F + ": " + x;
3830
+ return B + ": " + L;
3736
3831
  }
3737
- function N(p, b, S) {
3738
- var I = p.reduce(function(R, L) {
3739
- return L.indexOf(`
3740
- `) >= 0, R + L.replace(/\u001b\[\d\d?m/g, "").length + 1;
3832
+ function P(d, w, A) {
3833
+ var T = d.reduce(function(D, M) {
3834
+ return M.indexOf(`
3835
+ `) >= 0, D + M.replace(/\u001b\[\d\d?m/g, "").length + 1;
3741
3836
  }, 0);
3742
- return I > 60 ? S[0] + (b === "" ? "" : b + `
3743
- `) + " " + p.join(`,
3744
- `) + " " + S[1] : S[0] + b + " " + p.join(", ") + " " + S[1];
3837
+ return T > 60 ? A[0] + (w === "" ? "" : w + `
3838
+ `) + " " + d.join(`,
3839
+ `) + " " + A[1] : A[0] + w + " " + d.join(", ") + " " + A[1];
3745
3840
  }
3746
- t.types = mn;
3747
- function Q(p) {
3748
- return Array.isArray(p);
3841
+ t.types = wn;
3842
+ function K(d) {
3843
+ return Array.isArray(d);
3749
3844
  }
3750
- t.isArray = Q;
3751
- function z(p) {
3752
- return typeof p == "boolean";
3845
+ t.isArray = K;
3846
+ function I(d) {
3847
+ return typeof d == "boolean";
3753
3848
  }
3754
- t.isBoolean = z;
3755
- function X(p) {
3756
- return p === null;
3849
+ t.isBoolean = I;
3850
+ function C(d) {
3851
+ return d === null;
3757
3852
  }
3758
- t.isNull = X;
3759
- function de(p) {
3760
- return p == null;
3853
+ t.isNull = C;
3854
+ function j(d) {
3855
+ return d == null;
3761
3856
  }
3762
- t.isNullOrUndefined = de;
3763
- function te(p) {
3764
- return typeof p == "number";
3857
+ t.isNullOrUndefined = j;
3858
+ function U(d) {
3859
+ return typeof d == "number";
3765
3860
  }
3766
- t.isNumber = te;
3767
- function B(p) {
3768
- return typeof p == "string";
3861
+ t.isNumber = U;
3862
+ function F(d) {
3863
+ return typeof d == "string";
3769
3864
  }
3770
- t.isString = B;
3771
- function j(p) {
3772
- return typeof p == "symbol";
3865
+ t.isString = F;
3866
+ function x(d) {
3867
+ return typeof d == "symbol";
3773
3868
  }
3774
- t.isSymbol = j;
3775
- function O(p) {
3776
- return p === void 0;
3869
+ t.isSymbol = x;
3870
+ function k(d) {
3871
+ return d === void 0;
3777
3872
  }
3778
- t.isUndefined = O;
3779
- function re(p) {
3780
- return ne(p) && fe(p) === "[object RegExp]";
3873
+ t.isUndefined = k;
3874
+ function G(d) {
3875
+ return ie(d) && le(d) === "[object RegExp]";
3781
3876
  }
3782
- t.isRegExp = re, t.types.isRegExp = re;
3783
- function ne(p) {
3784
- return typeof p == "object" && p !== null;
3877
+ t.isRegExp = G, t.types.isRegExp = G;
3878
+ function ie(d) {
3879
+ return typeof d == "object" && d !== null;
3785
3880
  }
3786
- t.isObject = ne;
3787
- function _e(p) {
3788
- return ne(p) && fe(p) === "[object Date]";
3881
+ t.isObject = ie;
3882
+ function Te(d) {
3883
+ return ie(d) && le(d) === "[object Date]";
3789
3884
  }
3790
- t.isDate = _e, t.types.isDate = _e;
3791
- function Se(p) {
3792
- return ne(p) && (fe(p) === "[object Error]" || p instanceof Error);
3885
+ t.isDate = Te, t.types.isDate = Te;
3886
+ function Se(d) {
3887
+ return ie(d) && (le(d) === "[object Error]" || d instanceof Error);
3793
3888
  }
3794
3889
  t.isError = Se, t.types.isNativeError = Se;
3795
- function ce(p) {
3796
- return typeof p == "function";
3890
+ function fe(d) {
3891
+ return typeof d == "function";
3797
3892
  }
3798
- t.isFunction = ce;
3799
- function tt(p) {
3800
- return p === null || typeof p == "boolean" || typeof p == "number" || typeof p == "string" || typeof p == "symbol" || // ES6 symbol
3801
- typeof p > "u";
3893
+ t.isFunction = fe;
3894
+ function tt(d) {
3895
+ return d === null || typeof d == "boolean" || typeof d == "number" || typeof d == "string" || typeof d == "symbol" || // ES6 symbol
3896
+ typeof d > "u";
3802
3897
  }
3803
- t.isPrimitive = tt, t.isBuffer = Bs;
3804
- function fe(p) {
3805
- return Object.prototype.toString.call(p);
3898
+ t.isPrimitive = tt, t.isBuffer = Us;
3899
+ function le(d) {
3900
+ return Object.prototype.toString.call(d);
3806
3901
  }
3807
- function Oe(p) {
3808
- return p < 10 ? "0" + p.toString(10) : p.toString(10);
3902
+ function Oe(d) {
3903
+ return d < 10 ? "0" + d.toString(10) : d.toString(10);
3809
3904
  }
3810
3905
  var xe = [
3811
3906
  "Jan",
@@ -3822,101 +3917,101 @@ var ks = ar.exports;
3822
3917
  "Dec"
3823
3918
  ];
3824
3919
  function rt() {
3825
- var p = /* @__PURE__ */ new Date(), b = [
3826
- Oe(p.getHours()),
3827
- Oe(p.getMinutes()),
3828
- Oe(p.getSeconds())
3920
+ var d = /* @__PURE__ */ new Date(), w = [
3921
+ Oe(d.getHours()),
3922
+ Oe(d.getMinutes()),
3923
+ Oe(d.getSeconds())
3829
3924
  ].join(":");
3830
- return [p.getDate(), xe[p.getMonth()], b].join(" ");
3925
+ return [d.getDate(), xe[d.getMonth()], w].join(" ");
3831
3926
  }
3832
3927
  t.log = function() {
3833
3928
  console.log("%s - %s", rt(), t.format.apply(t, arguments));
3834
- }, t.inherits = ks, t._extend = function(p, b) {
3835
- if (!b || !ne(b))
3836
- return p;
3837
- for (var S = Object.keys(b), I = S.length; I--; )
3838
- p[S[I]] = b[S[I]];
3839
- return p;
3929
+ }, t.inherits = $s, t._extend = function(d, w) {
3930
+ if (!w || !ie(w))
3931
+ return d;
3932
+ for (var A = Object.keys(w), T = A.length; T--; )
3933
+ d[A[T]] = w[A[T]];
3934
+ return d;
3840
3935
  };
3841
- function Be(p, b) {
3842
- return Object.prototype.hasOwnProperty.call(p, b);
3936
+ function Be(d, w) {
3937
+ return Object.prototype.hasOwnProperty.call(d, w);
3843
3938
  }
3844
- var le = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
3845
- t.promisify = function(b) {
3846
- if (typeof b != "function")
3939
+ var he = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
3940
+ t.promisify = function(w) {
3941
+ if (typeof w != "function")
3847
3942
  throw new TypeError('The "original" argument must be of type Function');
3848
- if (le && b[le]) {
3849
- var S = b[le];
3850
- if (typeof S != "function")
3943
+ if (he && w[he]) {
3944
+ var A = w[he];
3945
+ if (typeof A != "function")
3851
3946
  throw new TypeError('The "util.promisify.custom" argument must be of type Function');
3852
- return Object.defineProperty(S, le, {
3853
- value: S,
3947
+ return Object.defineProperty(A, he, {
3948
+ value: A,
3854
3949
  enumerable: !1,
3855
3950
  writable: !1,
3856
3951
  configurable: !0
3857
- }), S;
3952
+ }), A;
3858
3953
  }
3859
- function S() {
3860
- for (var I, R, L = new Promise(function(U, Y) {
3861
- I = U, R = Y;
3862
- }), F = [], x = 0; x < arguments.length; x++)
3863
- F.push(arguments[x]);
3864
- F.push(function(U, Y) {
3865
- U ? R(U) : I(Y);
3954
+ function A() {
3955
+ for (var T, D, M = new Promise(function(V, te) {
3956
+ T = V, D = te;
3957
+ }), B = [], L = 0; L < arguments.length; L++)
3958
+ B.push(arguments[L]);
3959
+ B.push(function(V, te) {
3960
+ V ? D(V) : T(te);
3866
3961
  });
3867
3962
  try {
3868
- b.apply(this, F);
3869
- } catch (U) {
3870
- R(U);
3963
+ w.apply(this, B);
3964
+ } catch (V) {
3965
+ D(V);
3871
3966
  }
3872
- return L;
3967
+ return M;
3873
3968
  }
3874
- return Object.setPrototypeOf(S, Object.getPrototypeOf(b)), le && Object.defineProperty(S, le, {
3875
- value: S,
3969
+ return Object.setPrototypeOf(A, Object.getPrototypeOf(w)), he && Object.defineProperty(A, he, {
3970
+ value: A,
3876
3971
  enumerable: !1,
3877
3972
  writable: !1,
3878
3973
  configurable: !0
3879
3974
  }), Object.defineProperties(
3880
- S,
3881
- e(b)
3975
+ A,
3976
+ e(w)
3882
3977
  );
3883
- }, t.promisify.custom = le;
3884
- function ke(p, b) {
3885
- if (!p) {
3886
- var S = new Error("Promise was rejected with a falsy value");
3887
- S.reason = p, p = S;
3978
+ }, t.promisify.custom = he;
3979
+ function ke(d, w) {
3980
+ if (!d) {
3981
+ var A = new Error("Promise was rejected with a falsy value");
3982
+ A.reason = d, d = A;
3888
3983
  }
3889
- return b(p);
3984
+ return w(d);
3890
3985
  }
3891
- function V(p) {
3892
- if (typeof p != "function")
3986
+ function H(d) {
3987
+ if (typeof d != "function")
3893
3988
  throw new TypeError('The "original" argument must be of type Function');
3894
- function b() {
3895
- for (var S = [], I = 0; I < arguments.length; I++)
3896
- S.push(arguments[I]);
3897
- var R = S.pop();
3898
- if (typeof R != "function")
3989
+ function w() {
3990
+ for (var A = [], T = 0; T < arguments.length; T++)
3991
+ A.push(arguments[T]);
3992
+ var D = A.pop();
3993
+ if (typeof D != "function")
3899
3994
  throw new TypeError("The last argument must be of type Function");
3900
- var L = this, F = function() {
3901
- return R.apply(L, arguments);
3995
+ var M = this, B = function() {
3996
+ return D.apply(M, arguments);
3902
3997
  };
3903
- p.apply(this, S).then(
3904
- function(x) {
3905
- T.process.nextTick(F.bind(null, null, x));
3998
+ d.apply(this, A).then(
3999
+ function(L) {
4000
+ O.process.nextTick(B.bind(null, null, L));
3906
4001
  },
3907
- function(x) {
3908
- T.process.nextTick(ke.bind(null, x, F));
4002
+ function(L) {
4003
+ O.process.nextTick(ke.bind(null, L, B));
3909
4004
  }
3910
4005
  );
3911
4006
  }
3912
- return Object.setPrototypeOf(b, Object.getPrototypeOf(p)), Object.defineProperties(
3913
- b,
3914
- e(p)
3915
- ), b;
4007
+ return Object.setPrototypeOf(w, Object.getPrototypeOf(d)), Object.defineProperties(
4008
+ w,
4009
+ e(d)
4010
+ ), w;
3916
4011
  }
3917
- t.callbackify = V;
4012
+ t.callbackify = H;
3918
4013
  })(Bt);
3919
- const { inherits: Ps, format: Gt } = Bt;
4014
+ const { inherits: js, format: Qt } = Bt;
3920
4015
  function Re(t, e, r = Error) {
3921
4016
  if (!t)
3922
4017
  throw new Error("Avvio error code must not be empty");
@@ -3925,13 +4020,13 @@ function Re(t, e, r = Error) {
3925
4020
  function o(s, u, l) {
3926
4021
  if (!new.target)
3927
4022
  return new o(s, u, l);
3928
- Error.captureStackTrace(this, o), this.code = t, this.message = e, this.name = "AvvioError", s && u && l ? this.message = Gt(e, s, u, l) : s && u ? this.message = Gt(e, s, u) : s ? this.message = Gt(e, s) : this.message = e;
4023
+ Error.captureStackTrace(this, o), this.code = t, this.message = e, this.name = "AvvioError", s && u && l ? this.message = Qt(e, s, u, l) : s && u ? this.message = Qt(e, s, u) : s ? this.message = Qt(e, s) : this.message = e;
3929
4024
  }
3930
4025
  return o.prototype[Symbol.toStringTag] = "Error", o.prototype.toString = function() {
3931
4026
  return `${this.name} [${this.code}]: ${this.message}`;
3932
- }, Ps(o, r), o;
4027
+ }, js(o, r), o;
3933
4028
  }
3934
- var Rn = {
4029
+ var Ln = {
3935
4030
  createError: Re,
3936
4031
  AVV_ERR_EXPOSE_ALREADY_DEFINED: Re(
3937
4032
  "AVV_ERR_EXPOSE_ALREADY_DEFINED",
@@ -3957,37 +4052,37 @@ var Rn = {
3957
4052
  "AVV_ERR_READY_TIMEOUT",
3958
4053
  "Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise"
3959
4054
  )
3960
- }, Rs = function t(e, r, o) {
4055
+ }, Ds = function t(e, r, o) {
3961
4056
  r === void 0 && (r = ""), o || (o = {});
3962
- var s = function(d) {
3963
- var A = {
4057
+ var s = function(p) {
4058
+ var S = {
3964
4059
  "│": "|",
3965
4060
  "└": "`",
3966
4061
  "├": "+",
3967
4062
  "─": "-",
3968
4063
  "┬": "-"
3969
4064
  };
3970
- return o.unicode === !1 ? A[d] : d;
4065
+ return o.unicode === !1 ? S[p] : p;
3971
4066
  };
3972
4067
  typeof e == "string" && (e = { label: e });
3973
4068
  var u = e.nodes || [], l = (e.label || "").split(`
3974
4069
  `), f = `
3975
4070
  ` + r + (u.length ? s("│") : " ") + " ";
3976
4071
  return r + l.join(f) + `
3977
- ` + u.map(function(d, A) {
3978
- var g = A === u.length - 1, w = d.nodes && d.nodes.length, E = r + (g ? " " : s("│")) + " ";
3979
- return r + s(g ? "└" : "├") + s("─") + s(w ? "┬" : "─") + " " + t(d, E, o).slice(r.length + 2);
4072
+ ` + u.map(function(p, S) {
4073
+ var g = S === u.length - 1, b = p.nodes && p.nodes.length, E = r + (g ? " " : s("│")) + " ";
4074
+ return r + s(g ? "└" : "├") + s("─") + s(b ? "┬" : "─") + " " + t(p, E, o).slice(r.length + 2);
3980
4075
  }).join("");
3981
4076
  };
3982
- const Ns = Rs, Dr = Symbol("avvio.TimeTree.untrackNode"), Qt = Symbol("avvio.TimeTree.trackNode"), jr = Symbol("avvio.TimeTree.getParent"), Mr = Symbol("avvio.TimeTree.getNode"), Vr = Symbol("avvio.TimeTree.addNode");
3983
- let Ls = class {
4077
+ const Ms = Ds, Mr = Symbol("avvio.TimeTree.untrackNode"), Gt = Symbol("avvio.TimeTree.trackNode"), Vr = Symbol("avvio.TimeTree.getParent"), qr = Symbol("avvio.TimeTree.getNode"), Qr = Symbol("avvio.TimeTree.addNode");
4078
+ let Vs = class {
3984
4079
  constructor() {
3985
4080
  this.root = null, this.tableId = /* @__PURE__ */ new Map(), this.tableLabel = /* @__PURE__ */ new Map();
3986
4081
  }
3987
- [Qt](e) {
4082
+ [Gt](e) {
3988
4083
  this.tableId.set(e.id, e), this.tableLabel.has(e.label) ? this.tableLabel.get(e.label).push(e) : this.tableLabel.set(e.label, [e]);
3989
4084
  }
3990
- [Dr](e) {
4085
+ [Mr](e) {
3991
4086
  this.tableId.delete(e.id);
3992
4087
  const r = this.tableLabel.get(e.label);
3993
4088
  if (r.id) {
@@ -3996,72 +4091,72 @@ let Ls = class {
3996
4091
  }
3997
4092
  r.pop(), r.length === 0 && this.tableLabel.delete(e.label);
3998
4093
  }
3999
- [jr](e) {
4094
+ [Vr](e) {
4000
4095
  if (e === null)
4001
4096
  return this.root;
4002
4097
  const r = this.tableLabel.get(e);
4003
4098
  return r.id ? r : r[r.length - 1];
4004
4099
  }
4005
- [Mr](e) {
4100
+ [qr](e) {
4006
4101
  return this.tableId.get(e);
4007
4102
  }
4008
- [Vr](e, r, o) {
4103
+ [Qr](e, r, o) {
4009
4104
  if (e === null)
4010
4105
  return this.root = {
4011
4106
  id: "root",
4012
4107
  label: r,
4013
4108
  start: o,
4014
4109
  nodes: []
4015
- }, this[Qt](this.root), this.root.id;
4016
- const u = this[jr](e), l = `${r}-${Math.random()}`, f = {
4110
+ }, this[Gt](this.root), this.root.id;
4111
+ const u = this[Vr](e), l = `${r}-${Math.random()}`, f = {
4017
4112
  id: l,
4018
4113
  parent: e,
4019
4114
  start: o,
4020
4115
  label: r,
4021
4116
  nodes: []
4022
4117
  };
4023
- return u.nodes.push(f), this[Qt](f), l;
4118
+ return u.nodes.push(f), this[Gt](f), l;
4024
4119
  }
4025
4120
  start(e, r, o = Date.now()) {
4026
- return this[Vr](e, r, o);
4121
+ return this[Qr](e, r, o);
4027
4122
  }
4028
4123
  stop(e, r = Date.now()) {
4029
- const o = this[Mr](e);
4030
- o && (o.stop = r, o.diff = o.stop - o.start || 0, this[Dr](o));
4124
+ const o = this[qr](e);
4125
+ o && (o.stop = r, o.diff = o.stop - o.start || 0, this[Mr](o));
4031
4126
  }
4032
4127
  toJSON() {
4033
4128
  return Object.assign({}, this.root);
4034
4129
  }
4035
4130
  prittyPrint() {
4036
4131
  const e = (o) => (o.label = `${o.label} ${o.diff} ms`, o.nodes.length > 0 && (o.nodes = o.nodes.map((s) => e(s))), o), r = e(this.toJSON());
4037
- return Ns(r);
4132
+ return Ms(r);
4038
4133
  }
4039
4134
  };
4040
- var Us = Ls, Ar = { exports: {} }, ur = { exports: {} }, zt, qr;
4041
- function $s() {
4042
- if (qr)
4135
+ var qs = Vs, Ir = { exports: {} }, ur = { exports: {} }, zt, Gr;
4136
+ function Qs() {
4137
+ if (Gr)
4043
4138
  return zt;
4044
- qr = 1;
4139
+ Gr = 1;
4045
4140
  var t = 1e3, e = t * 60, r = e * 60, o = r * 24, s = o * 7, u = o * 365.25;
4046
- zt = function(g, w) {
4047
- w = w || {};
4141
+ zt = function(g, b) {
4142
+ b = b || {};
4048
4143
  var E = typeof g;
4049
4144
  if (E === "string" && g.length > 0)
4050
4145
  return l(g);
4051
4146
  if (E === "number" && isFinite(g))
4052
- return w.long ? d(g) : f(g);
4147
+ return b.long ? p(g) : f(g);
4053
4148
  throw new Error(
4054
4149
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(g)
4055
4150
  );
4056
4151
  };
4057
4152
  function l(g) {
4058
4153
  if (g = String(g), !(g.length > 100)) {
4059
- var w = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
4154
+ var b = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
4060
4155
  g
4061
4156
  );
4062
- if (w) {
4063
- var E = parseFloat(w[1]), C = (w[2] || "ms").toLowerCase();
4064
- switch (C) {
4157
+ if (b) {
4158
+ var E = parseFloat(b[1]), _ = (b[2] || "ms").toLowerCase();
4159
+ switch (_) {
4065
4160
  case "years":
4066
4161
  case "year":
4067
4162
  case "yrs":
@@ -4107,106 +4202,106 @@ function $s() {
4107
4202
  }
4108
4203
  }
4109
4204
  function f(g) {
4110
- var w = Math.abs(g);
4111
- return w >= o ? Math.round(g / o) + "d" : w >= r ? Math.round(g / r) + "h" : w >= e ? Math.round(g / e) + "m" : w >= t ? Math.round(g / t) + "s" : g + "ms";
4205
+ var b = Math.abs(g);
4206
+ return b >= o ? Math.round(g / o) + "d" : b >= r ? Math.round(g / r) + "h" : b >= e ? Math.round(g / e) + "m" : b >= t ? Math.round(g / t) + "s" : g + "ms";
4112
4207
  }
4113
- function d(g) {
4114
- var w = Math.abs(g);
4115
- return w >= o ? A(g, w, o, "day") : w >= r ? A(g, w, r, "hour") : w >= e ? A(g, w, e, "minute") : w >= t ? A(g, w, t, "second") : g + " ms";
4208
+ function p(g) {
4209
+ var b = Math.abs(g);
4210
+ return b >= o ? S(g, b, o, "day") : b >= r ? S(g, b, r, "hour") : b >= e ? S(g, b, e, "minute") : b >= t ? S(g, b, t, "second") : g + " ms";
4116
4211
  }
4117
- function A(g, w, E, C) {
4118
- var P = w >= E * 1.5;
4119
- return Math.round(g / E) + " " + C + (P ? "s" : "");
4212
+ function S(g, b, E, _) {
4213
+ var N = b >= E * 1.5;
4214
+ return Math.round(g / E) + " " + _ + (N ? "s" : "");
4120
4215
  }
4121
4216
  return zt;
4122
4217
  }
4123
- function Ds(t) {
4124
- r.debug = r, r.default = r, r.coerce = d, r.disable = u, r.enable = s, r.enabled = l, r.humanize = $s(), r.destroy = A, Object.keys(t).forEach((g) => {
4218
+ function Gs(t) {
4219
+ r.debug = r, r.default = r, r.coerce = p, r.disable = u, r.enable = s, r.enabled = l, r.humanize = Qs(), r.destroy = S, Object.keys(t).forEach((g) => {
4125
4220
  r[g] = t[g];
4126
4221
  }), r.names = [], r.skips = [], r.formatters = {};
4127
4222
  function e(g) {
4128
- let w = 0;
4223
+ let b = 0;
4129
4224
  for (let E = 0; E < g.length; E++)
4130
- w = (w << 5) - w + g.charCodeAt(E), w |= 0;
4131
- return r.colors[Math.abs(w) % r.colors.length];
4225
+ b = (b << 5) - b + g.charCodeAt(E), b |= 0;
4226
+ return r.colors[Math.abs(b) % r.colors.length];
4132
4227
  }
4133
4228
  r.selectColor = e;
4134
4229
  function r(g) {
4135
- let w, E = null, C, P;
4136
- function N(...Q) {
4137
- if (!N.enabled)
4230
+ let b, E = null, _, N;
4231
+ function P(...K) {
4232
+ if (!P.enabled)
4138
4233
  return;
4139
- const z = N, X = Number(/* @__PURE__ */ new Date()), de = X - (w || X);
4140
- z.diff = de, z.prev = w, z.curr = X, w = X, Q[0] = r.coerce(Q[0]), typeof Q[0] != "string" && Q.unshift("%O");
4141
- let te = 0;
4142
- Q[0] = Q[0].replace(/%([a-zA-Z%])/g, (j, O) => {
4143
- if (j === "%%")
4234
+ const I = P, C = Number(/* @__PURE__ */ new Date()), j = C - (b || C);
4235
+ I.diff = j, I.prev = b, I.curr = C, b = C, K[0] = r.coerce(K[0]), typeof K[0] != "string" && K.unshift("%O");
4236
+ let U = 0;
4237
+ K[0] = K[0].replace(/%([a-zA-Z%])/g, (x, k) => {
4238
+ if (x === "%%")
4144
4239
  return "%";
4145
- te++;
4146
- const re = r.formatters[O];
4147
- if (typeof re == "function") {
4148
- const ne = Q[te];
4149
- j = re.call(z, ne), Q.splice(te, 1), te--;
4240
+ U++;
4241
+ const G = r.formatters[k];
4242
+ if (typeof G == "function") {
4243
+ const ie = K[U];
4244
+ x = G.call(I, ie), K.splice(U, 1), U--;
4150
4245
  }
4151
- return j;
4152
- }), r.formatArgs.call(z, Q), (z.log || r.log).apply(z, Q);
4246
+ return x;
4247
+ }), r.formatArgs.call(I, K), (I.log || r.log).apply(I, K);
4153
4248
  }
4154
- return N.namespace = g, N.useColors = r.useColors(), N.color = r.selectColor(g), N.extend = o, N.destroy = r.destroy, Object.defineProperty(N, "enabled", {
4249
+ return P.namespace = g, P.useColors = r.useColors(), P.color = r.selectColor(g), P.extend = o, P.destroy = r.destroy, Object.defineProperty(P, "enabled", {
4155
4250
  enumerable: !0,
4156
4251
  configurable: !1,
4157
- get: () => E !== null ? E : (C !== r.namespaces && (C = r.namespaces, P = r.enabled(g)), P),
4158
- set: (Q) => {
4159
- E = Q;
4252
+ get: () => E !== null ? E : (_ !== r.namespaces && (_ = r.namespaces, N = r.enabled(g)), N),
4253
+ set: (K) => {
4254
+ E = K;
4160
4255
  }
4161
- }), typeof r.init == "function" && r.init(N), N;
4256
+ }), typeof r.init == "function" && r.init(P), P;
4162
4257
  }
4163
- function o(g, w) {
4164
- const E = r(this.namespace + (typeof w > "u" ? ":" : w) + g);
4258
+ function o(g, b) {
4259
+ const E = r(this.namespace + (typeof b > "u" ? ":" : b) + g);
4165
4260
  return E.log = this.log, E;
4166
4261
  }
4167
4262
  function s(g) {
4168
4263
  r.save(g), r.namespaces = g, r.names = [], r.skips = [];
4169
- let w;
4170
- const E = (typeof g == "string" ? g : "").split(/[\s,]+/), C = E.length;
4171
- for (w = 0; w < C; w++)
4172
- E[w] && (g = E[w].replace(/\*/g, ".*?"), g[0] === "-" ? r.skips.push(new RegExp("^" + g.slice(1) + "$")) : r.names.push(new RegExp("^" + g + "$")));
4264
+ let b;
4265
+ const E = (typeof g == "string" ? g : "").split(/[\s,]+/), _ = E.length;
4266
+ for (b = 0; b < _; b++)
4267
+ E[b] && (g = E[b].replace(/\*/g, ".*?"), g[0] === "-" ? r.skips.push(new RegExp("^" + g.slice(1) + "$")) : r.names.push(new RegExp("^" + g + "$")));
4173
4268
  }
4174
4269
  function u() {
4175
4270
  const g = [
4176
4271
  ...r.names.map(f),
4177
- ...r.skips.map(f).map((w) => "-" + w)
4272
+ ...r.skips.map(f).map((b) => "-" + b)
4178
4273
  ].join(",");
4179
4274
  return r.enable(""), g;
4180
4275
  }
4181
4276
  function l(g) {
4182
4277
  if (g[g.length - 1] === "*")
4183
4278
  return !0;
4184
- let w, E;
4185
- for (w = 0, E = r.skips.length; w < E; w++)
4186
- if (r.skips[w].test(g))
4279
+ let b, E;
4280
+ for (b = 0, E = r.skips.length; b < E; b++)
4281
+ if (r.skips[b].test(g))
4187
4282
  return !1;
4188
- for (w = 0, E = r.names.length; w < E; w++)
4189
- if (r.names[w].test(g))
4283
+ for (b = 0, E = r.names.length; b < E; b++)
4284
+ if (r.names[b].test(g))
4190
4285
  return !0;
4191
4286
  return !1;
4192
4287
  }
4193
4288
  function f(g) {
4194
4289
  return g.toString().substring(2, g.toString().length - 2).replace(/\.\*\?$/, "*");
4195
4290
  }
4196
- function d(g) {
4291
+ function p(g) {
4197
4292
  return g instanceof Error ? g.stack || g.message : g;
4198
4293
  }
4199
- function A() {
4294
+ function S() {
4200
4295
  console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
4201
4296
  }
4202
4297
  return r.enable(r.load()), r;
4203
4298
  }
4204
- var js = Ds;
4299
+ var zs = Gs;
4205
4300
  (function(t, e) {
4206
4301
  e.formatArgs = o, e.save = s, e.load = u, e.useColors = r, e.storage = l(), e.destroy = (() => {
4207
- let d = !1;
4302
+ let p = !1;
4208
4303
  return () => {
4209
- 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`."));
4304
+ p || (p = !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`."));
4210
4305
  };
4211
4306
  })(), e.colors = [
4212
4307
  "#0000CC",
@@ -4293,31 +4388,31 @@ var js = Ds;
4293
4388
  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
4294
4389
  typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
4295
4390
  }
4296
- function o(d) {
4297
- if (d[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + d[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors)
4391
+ function o(p) {
4392
+ if (p[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + p[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors)
4298
4393
  return;
4299
- const A = "color: " + this.color;
4300
- d.splice(1, 0, A, "color: inherit");
4301
- let g = 0, w = 0;
4302
- d[0].replace(/%[a-zA-Z%]/g, (E) => {
4303
- E !== "%%" && (g++, E === "%c" && (w = g));
4304
- }), d.splice(w, 0, A);
4394
+ const S = "color: " + this.color;
4395
+ p.splice(1, 0, S, "color: inherit");
4396
+ let g = 0, b = 0;
4397
+ p[0].replace(/%[a-zA-Z%]/g, (E) => {
4398
+ E !== "%%" && (g++, E === "%c" && (b = g));
4399
+ }), p.splice(b, 0, S);
4305
4400
  }
4306
4401
  e.log = console.debug || console.log || (() => {
4307
4402
  });
4308
- function s(d) {
4403
+ function s(p) {
4309
4404
  try {
4310
- d ? e.storage.setItem("debug", d) : e.storage.removeItem("debug");
4405
+ p ? e.storage.setItem("debug", p) : e.storage.removeItem("debug");
4311
4406
  } catch {
4312
4407
  }
4313
4408
  }
4314
4409
  function u() {
4315
- let d;
4410
+ let p;
4316
4411
  try {
4317
- d = e.storage.getItem("debug");
4412
+ p = e.storage.getItem("debug");
4318
4413
  } catch {
4319
4414
  }
4320
- return !d && typeof T.process < "u" && "env" in T.process && (d = T.process.env.DEBUG), d;
4415
+ return !p && typeof O.process < "u" && "env" in O.process && (p = O.process.env.DEBUG), p;
4321
4416
  }
4322
4417
  function l() {
4323
4418
  try {
@@ -4325,38 +4420,38 @@ var js = Ds;
4325
4420
  } catch {
4326
4421
  }
4327
4422
  }
4328
- t.exports = js(e);
4423
+ t.exports = zs(e);
4329
4424
  const { formatters: f } = t.exports;
4330
- f.j = function(d) {
4425
+ f.j = function(p) {
4331
4426
  try {
4332
- return JSON.stringify(d);
4333
- } catch (A) {
4334
- return "[UnexpectedJSONParseError]: " + A.message;
4427
+ return JSON.stringify(p);
4428
+ } catch (S) {
4429
+ return "[UnexpectedJSONParseError]: " + S.message;
4335
4430
  }
4336
4431
  };
4337
4432
  })(ur, ur.exports);
4338
- var Nn = ur.exports;
4339
- const Ms = an, Vs = gn.EventEmitter, qs = Bt.inherits, W = Nn("avvio"), { AVV_ERR_READY_TIMEOUT: Gs } = Rn, Kt = Symbol.for("plugin-meta");
4340
- function Qs(t, e) {
4433
+ var Un = ur.exports;
4434
+ const Ks = cn, Hs = bn.EventEmitter, Ws = Bt.inherits, Z = Un("avvio"), { AVV_ERR_READY_TIMEOUT: Js } = Ln, Kt = Symbol.for("plugin-meta");
4435
+ function Ys(t, e) {
4341
4436
  return t[Kt] && t[Kt].name ? t[Kt].name : typeof e < "u" && typeof e != "function" && e.name ? e.name : t.name ? t.name : t.toString().split(`
4342
4437
  `).slice(0, 2).map((r) => r.trim()).join(" -- ");
4343
4438
  }
4344
- function zs() {
4439
+ function Xs() {
4345
4440
  const t = {};
4346
4441
  return t.promise = new Promise((e, r) => {
4347
4442
  t.resolve = e, t.reject = r;
4348
4443
  }), t;
4349
4444
  }
4350
4445
  function et(t, e, r, o, s) {
4351
- 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 = Qs(e, r), this.isAfter = o, this.q = Ms(t, Ks, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
4446
+ this.started = !1, this.func = e, this.opts = r, this.onFinish = null, this.parent = t, this.timeout = s === void 0 ? t._timeout : s, this.name = Ys(e, r), this.isAfter = o, this.q = Ks(t, Zs, 1), this.q.pause(), this._error = null, this.loaded = !1, this._promise = null;
4352
4447
  }
4353
- qs(et, Vs);
4448
+ Ws(et, Hs);
4354
4449
  et.prototype.exec = function(t, e) {
4355
4450
  const r = this.func;
4356
4451
  let o = !1;
4357
4452
  const s = this.name;
4358
4453
  if (this.parent._error && !this.isAfter) {
4359
- W("skipping loading of plugin as parent errored and it is not an after", s), T.process.nextTick(e);
4454
+ Z("skipping loading of plugin as parent errored and it is not an after", s), O.process.nextTick(e);
4360
4455
  return;
4361
4456
  }
4362
4457
  if (this.isAfter)
@@ -4364,27 +4459,27 @@ et.prototype.exec = function(t, e) {
4364
4459
  else
4365
4460
  try {
4366
4461
  this.server = this.parent.override(t, r, this.opts);
4367
- } catch (d) {
4368
- return W("override errored", s), e(d);
4462
+ } catch (p) {
4463
+ return Z("override errored", s), e(p);
4369
4464
  }
4370
- this.opts = typeof this.opts == "function" ? this.opts(this.server) : this.opts, W("exec", s);
4465
+ this.opts = typeof this.opts == "function" ? this.opts(this.server) : this.opts, Z("exec", s);
4371
4466
  let u;
4372
- const l = (d) => {
4467
+ const l = (p) => {
4373
4468
  if (o) {
4374
- W("loading complete", s);
4469
+ Z("loading complete", s);
4375
4470
  return;
4376
4471
  }
4377
- this._error = d, W(d ? "exec errored" : "exec completed", s), o = !0, u && clearTimeout(u), e(d);
4472
+ this._error = p, Z(p ? "exec errored" : "exec completed", s), o = !0, u && clearTimeout(u), e(p);
4378
4473
  };
4379
- this.timeout > 0 && (W("setting up timeout", s, this.timeout), u = setTimeout(function() {
4380
- W("timed out", s), u = null;
4381
- const d = new Gs(s);
4382
- d.fn = r, l(d);
4474
+ this.timeout > 0 && (Z("setting up timeout", s, this.timeout), u = setTimeout(function() {
4475
+ Z("timed out", s), u = null;
4476
+ const p = new Js(s);
4477
+ p.fn = r, l(p);
4383
4478
  }, this.timeout)), this.started = !0, this.emit("start", this.server ? this.server.name : null, this.name, Date.now());
4384
4479
  const f = r(this.server, this.opts, l);
4385
- f && typeof f.then == "function" && (W("exec: resolving promise", s), f.then(
4386
- () => T.process.nextTick(l),
4387
- (d) => T.process.nextTick(l, d)
4480
+ f && typeof f.then == "function" && (Z("exec: resolving promise", s), f.then(
4481
+ () => O.process.nextTick(l),
4482
+ (p) => O.process.nextTick(l, p)
4388
4483
  ));
4389
4484
  };
4390
4485
  et.prototype.loadedSoFar = function() {
@@ -4392,48 +4487,48 @@ et.prototype.loadedSoFar = function() {
4392
4487
  return Promise.resolve();
4393
4488
  const t = () => {
4394
4489
  this.server.after((r, o) => {
4395
- this._error = r, this.q.pause(), r ? (W("rejecting promise", this.name, r), this._promise.reject(r)) : (W("resolving promise", this.name), this._promise.resolve()), this._promise = null, T.process.nextTick(o, r);
4490
+ this._error = r, this.q.pause(), r ? (Z("rejecting promise", this.name, r), this._promise.reject(r)) : (Z("resolving promise", this.name), this._promise.resolve()), this._promise = null, O.process.nextTick(o, r);
4396
4491
  }), this.q.resume();
4397
4492
  };
4398
4493
  let e;
4399
- return this._promise ? e = Promise.resolve() : (this._promise = zs(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
4494
+ return this._promise ? e = Promise.resolve() : (this._promise = Xs(), e = this._promise.promise, this.server ? t() : this.on("start", t)), e;
4400
4495
  };
4401
4496
  et.prototype.enqueue = function(t, e) {
4402
- W("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
4497
+ Z("enqueue", this.name, t.name), this.emit("enqueue", this.server ? this.server.name : null, this.name, Date.now()), this.q.push(t, e);
4403
4498
  };
4404
4499
  et.prototype.finish = function(t, e) {
4405
- W("finish", this.name, t);
4500
+ Z("finish", this.name, t);
4406
4501
  const r = () => {
4407
- this.loaded || (W("loaded", this.name), this.emit("loaded", this.server ? this.server.name : null, this.name, Date.now()), this.loaded = !0, e(t));
4502
+ this.loaded || (Z("loaded", this.name), this.emit("loaded", this.server ? this.server.name : null, this.name, Date.now()), this.loaded = !0, e(t));
4408
4503
  };
4409
4504
  if (t) {
4410
4505
  this._promise && (this._promise.reject(t), this._promise = null), r();
4411
4506
  return;
4412
4507
  }
4413
4508
  const o = () => {
4414
- if (W("check", this.name, this.q.length(), this.q.running(), this._promise), this.q.length() === 0 && this.q.running() === 0)
4509
+ if (Z("check", this.name, this.q.length(), this.q.running(), this._promise), this.q.length() === 0 && this.q.running() === 0)
4415
4510
  if (this._promise) {
4416
4511
  const s = () => {
4417
- W("wrap"), queueMicrotask(o);
4512
+ Z("wrap"), queueMicrotask(o);
4418
4513
  };
4419
4514
  this._promise.resolve(), this._promise.promise.then(s, s), this._promise = null;
4420
4515
  } else
4421
4516
  r();
4422
4517
  else
4423
- W("delayed", this.name), this.q.drain = () => {
4424
- W("drain", this.name), this.q.drain = Hs, queueMicrotask(o);
4518
+ Z("delayed", this.name), this.q.drain = () => {
4519
+ Z("drain", this.name), this.q.drain = ea, queueMicrotask(o);
4425
4520
  };
4426
4521
  };
4427
4522
  queueMicrotask(o), this.q.resume();
4428
4523
  };
4429
- function Ks(t, e) {
4524
+ function Zs(t, e) {
4430
4525
  const r = this;
4431
- T.process.nextTick(Er.bind(r), t, e);
4526
+ O.process.nextTick(Fr.bind(r), t, e);
4432
4527
  }
4433
- function Er(t, e) {
4528
+ function Fr(t, e) {
4434
4529
  if (typeof t.func.then == "function") {
4435
4530
  t.func.then((o) => {
4436
- typeof o.default == "function" && (o = o.default), t.func = o, Er.call(this, t, e);
4531
+ typeof o.default == "function" && (o = o.default), t.func = o, Fr.call(this, t, e);
4437
4532
  }, e);
4438
4533
  return;
4439
4534
  }
@@ -4444,57 +4539,57 @@ function Er(t, e) {
4444
4539
  });
4445
4540
  });
4446
4541
  }
4447
- function Hs() {
4542
+ function ea() {
4448
4543
  }
4449
- Ar.exports = et;
4450
- Ar.exports.loadPlugin = Er;
4451
- var Ws = Ar.exports;
4452
- const Gr = an, Js = gn.EventEmitter, Ys = Bt.inherits, {
4544
+ Ir.exports = et;
4545
+ Ir.exports.loadPlugin = Fr;
4546
+ var ta = Ir.exports;
4547
+ const zr = cn, ra = bn.EventEmitter, na = Bt.inherits, {
4453
4548
  AVV_ERR_EXPOSE_ALREADY_DEFINED: Ht,
4454
4549
  AVV_ERR_CALLBACK_NOT_FN: ct,
4455
- AVV_ERR_PLUGIN_NOT_VALID: Xs,
4456
- AVV_ERR_ROOT_PLG_BOOTED: Zs,
4457
- AVV_ERR_READY_TIMEOUT: ea
4458
- } = Rn, ta = Us, cr = Ws, Xe = Nn("avvio"), Ft = Symbol("kAvvio"), Wt = Symbol("kThenifyDoNotWrap");
4459
- function ra(t, e, r) {
4460
- const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", f = o.onClose || "onClose", d = o.close || "close";
4550
+ AVV_ERR_PLUGIN_NOT_VALID: ia,
4551
+ AVV_ERR_ROOT_PLG_BOOTED: oa,
4552
+ AVV_ERR_READY_TIMEOUT: sa
4553
+ } = Ln, aa = qs, cr = ta, Xe = Un("avvio"), Ft = Symbol("kAvvio"), Wt = Symbol("kThenifyDoNotWrap");
4554
+ function ua(t, e, r) {
4555
+ const o = e.expose || {}, s = o.use || "use", u = o.after || "after", l = o.ready || "ready", f = o.onClose || "onClose", p = o.close || "close";
4461
4556
  if (t[s])
4462
4557
  throw new Ht(s);
4463
4558
  if (t[u])
4464
4559
  throw new Ht(u);
4465
4560
  if (t[l])
4466
4561
  throw new Ht(l);
4467
- t[s] = function(A, g) {
4468
- return r.use(A, g), this;
4469
- }, Object.defineProperty(t, "then", { get: Ln.bind(r) }), t[Ft] = !0, t[u] = function(A) {
4470
- return typeof A != "function" ? r._loadRegistered() : (r.after(Jt(A, this)), this);
4471
- }, t[l] = function(A) {
4472
- if (A && typeof A != "function")
4473
- throw new ct(l, typeof A);
4474
- return r.ready(A ? Jt(A, this) : void 0);
4475
- }, t[f] = function(A) {
4476
- if (typeof A != "function")
4477
- throw new ct(f, typeof A);
4478
- return r.onClose(aa(A, this)), this;
4479
- }, t[d] = function(A) {
4480
- if (A && typeof A != "function")
4481
- throw new ct(d, typeof A);
4482
- return A ? (r.close(Jt(A, this)), this) : r.close();
4562
+ t[s] = function(S, g) {
4563
+ return r.use(S, g), this;
4564
+ }, Object.defineProperty(t, "then", { get: $n.bind(r) }), t[Ft] = !0, t[u] = function(S) {
4565
+ return typeof S != "function" ? r._loadRegistered() : (r.after(Jt(S, this)), this);
4566
+ }, t[l] = function(S) {
4567
+ if (S && typeof S != "function")
4568
+ throw new ct(l, typeof S);
4569
+ return r.ready(S ? Jt(S, this) : void 0);
4570
+ }, t[f] = function(S) {
4571
+ if (typeof S != "function")
4572
+ throw new ct(f, typeof S);
4573
+ return r.onClose(pa(S, this)), this;
4574
+ }, t[p] = function(S) {
4575
+ if (S && typeof S != "function")
4576
+ throw new ct(p, typeof S);
4577
+ return S ? (r.close(Jt(S, this)), this) : r.close();
4483
4578
  };
4484
4579
  }
4485
- function J(t, e, r) {
4486
- if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof J)) {
4487
- const o = new J(t, e, r);
4488
- return t && ra(t, e, o), o;
4489
- }
4490
- 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 ta(), this._readyQ = Gr(this, Un, 1), this._readyQ.pause(), this._readyQ.drain = () => {
4491
- this.emit("start"), this._readyQ.drain = Qr;
4492
- }, this._closeQ = Gr(this, sa, 1), this._closeQ.pause(), this._closeQ.drain = () => {
4493
- this.emit("close"), this._closeQ.drain = Qr;
4494
- }, this._doStart = null, this._root = new cr(this, na.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
4580
+ function ee(t, e, r) {
4581
+ if (typeof t == "function" && arguments.length === 1 && (r = t, e = {}, t = null), typeof e == "function" && (r = e, e = {}), e = e || {}, !(this instanceof ee)) {
4582
+ const o = new ee(t, e, r);
4583
+ return t && ua(t, e, o), o;
4584
+ }
4585
+ e.autostart !== !1 && (e.autostart = !0), t = t || this, this._timeout = Number(e.timeout) || 0, this._server = t, this._current = [], this._error = null, this._isOnCloseHandlerKey = Symbol("isOnCloseHandler"), this._lastUsed = null, this.setMaxListeners(0), r && this.once("start", r), this.started = !1, this.booted = !1, this.pluginTree = new aa(), this._readyQ = zr(this, jn, 1), this._readyQ.pause(), this._readyQ.drain = () => {
4586
+ this.emit("start"), this._readyQ.drain = Kr;
4587
+ }, this._closeQ = zr(this, ha, 1), this._closeQ.pause(), this._closeQ.drain = () => {
4588
+ this.emit("close"), this._closeQ.drain = Kr;
4589
+ }, this._doStart = null, this._root = new cr(this, ca.bind(this), e, !1, 0), this._root.once("start", (o, s, u) => {
4495
4590
  const l = this.pluginTree.start(null, s, u);
4496
- this._root.once("loaded", (f, d, A) => {
4497
- this.pluginTree.stop(l, A);
4591
+ this._root.once("loaded", (f, p, S) => {
4592
+ this.pluginTree.stop(l, S);
4498
4593
  });
4499
4594
  }), cr.loadPlugin.call(this, this._root, (o) => {
4500
4595
  Xe("root plugin ready");
@@ -4511,38 +4606,38 @@ function J(t, e, r) {
4511
4606
  this._readyQ.resume();
4512
4607
  });
4513
4608
  }
4514
- function na(t, e, r) {
4609
+ function ca(t, e, r) {
4515
4610
  this._doStart = r, e.autostart && this.start();
4516
4611
  }
4517
- Ys(J, Js);
4518
- J.prototype.start = function() {
4519
- return this.started = !0, T.process.nextTick(this._doStart), this;
4612
+ na(ee, ra);
4613
+ ee.prototype.start = function() {
4614
+ return this.started = !0, O.process.nextTick(this._doStart), this;
4520
4615
  };
4521
- J.prototype.override = function(t, e, r) {
4616
+ ee.prototype.override = function(t, e, r) {
4522
4617
  return t;
4523
4618
  };
4524
- function ia(t) {
4619
+ function fa(t) {
4525
4620
  if (t && typeof t == "object" && typeof t.default == "function" && (t = t.default), !(t && (typeof t == "function" || typeof t.then == "function")))
4526
- throw new Xs(typeof t);
4621
+ throw new ia(typeof t);
4527
4622
  return t;
4528
4623
  }
4529
- J.prototype[Ft] = !0;
4530
- J.prototype.use = function(t, e) {
4624
+ ee.prototype[Ft] = !0;
4625
+ ee.prototype.use = function(t, e) {
4531
4626
  return this._lastUsed = this._addPlugin(t, e, !1), this;
4532
4627
  };
4533
- J.prototype._loadRegistered = function() {
4628
+ ee.prototype._loadRegistered = function() {
4534
4629
  const t = this._current[0];
4535
- return !this.started && !this.booted && T.process.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
4630
+ return !this.started && !this.booted && O.process.nextTick(() => this._root.q.resume()), t ? t.loadedSoFar() : Promise.resolve();
4536
4631
  };
4537
- Object.defineProperty(J.prototype, "then", { get: Ln });
4538
- J.prototype._addPlugin = function(t, e, r) {
4539
- if (t = ia(t), e = e || {}, this.booted)
4540
- throw new Zs();
4632
+ Object.defineProperty(ee.prototype, "then", { get: $n });
4633
+ ee.prototype._addPlugin = function(t, e, r) {
4634
+ if (t = fa(t), e = e || {}, this.booted)
4635
+ throw new oa();
4541
4636
  const o = this._current[0], s = new cr(this, t, e, r);
4542
4637
  if (s.once("start", (u, l, f) => {
4543
- const d = this.pluginTree.start(o.name, l, f);
4544
- s.once("loaded", (A, g, w) => {
4545
- this.pluginTree.stop(d, w);
4638
+ const p = this.pluginTree.start(o.name, l, f);
4639
+ s.once("loaded", (S, g, b) => {
4640
+ this.pluginTree.stop(p, b);
4546
4641
  });
4547
4642
  }), o.loaded)
4548
4643
  throw new Error(s.name, o.name);
@@ -4550,16 +4645,16 @@ J.prototype._addPlugin = function(t, e, r) {
4550
4645
  u && (this._error = u);
4551
4646
  }), s;
4552
4647
  };
4553
- J.prototype.after = function(t) {
4648
+ ee.prototype.after = function(t) {
4554
4649
  if (!t)
4555
4650
  return this._loadRegistered();
4556
4651
  this._addPlugin(e.bind(this), {}, !0);
4557
4652
  function e(r, o, s) {
4558
- Un.call(this, t, s);
4653
+ jn.call(this, t, s);
4559
4654
  }
4560
4655
  return this;
4561
4656
  };
4562
- J.prototype.onClose = function(t) {
4657
+ ee.prototype.onClose = function(t) {
4563
4658
  if (typeof t != "function")
4564
4659
  throw new Error("not a function");
4565
4660
  t[this._isOnCloseHandlerKey] = !0, this._closeQ.unshift(t, e.bind(this));
@@ -4568,7 +4663,7 @@ J.prototype.onClose = function(t) {
4568
4663
  }
4569
4664
  return this;
4570
4665
  };
4571
- J.prototype.close = function(t) {
4666
+ ee.prototype.close = function(t) {
4572
4667
  let e;
4573
4668
  if (t) {
4574
4669
  if (typeof t != "function")
@@ -4582,10 +4677,10 @@ J.prototype.close = function(t) {
4582
4677
  };
4583
4678
  });
4584
4679
  return this.ready(() => {
4585
- this._error = null, this._closeQ.push(t), T.process.nextTick(this._closeQ.resume.bind(this._closeQ));
4680
+ this._error = null, this._closeQ.push(t), O.process.nextTick(this._closeQ.resume.bind(this._closeQ));
4586
4681
  }), e;
4587
4682
  };
4588
- J.prototype.ready = function(t) {
4683
+ ee.prototype.ready = function(t) {
4589
4684
  if (t) {
4590
4685
  if (typeof t != "function")
4591
4686
  throw new ct("ready", typeof t);
@@ -4596,19 +4691,19 @@ J.prototype.ready = function(t) {
4596
4691
  this._readyQ.push(s), this.start();
4597
4692
  const o = this._current[0].server;
4598
4693
  function s(u, l, f) {
4599
- u ? r(u) : e(o), T.process.nextTick(f);
4694
+ u ? r(u) : e(o), O.process.nextTick(f);
4600
4695
  }
4601
4696
  });
4602
4697
  };
4603
- J.prototype.prettyPrint = function() {
4698
+ ee.prototype.prettyPrint = function() {
4604
4699
  return this.pluginTree.prittyPrint();
4605
4700
  };
4606
- J.prototype.toJSON = function() {
4701
+ ee.prototype.toJSON = function() {
4607
4702
  return this.pluginTree.toJSON();
4608
4703
  };
4609
- function Qr() {
4704
+ function Kr() {
4610
4705
  }
4611
- function Ln() {
4706
+ function $n() {
4612
4707
  if (this.booted) {
4613
4708
  Xe("thenify returning null because we are already booted");
4614
4709
  return;
@@ -4619,27 +4714,27 @@ function Ln() {
4619
4714
  }
4620
4715
  return Xe("thenify"), (t, e) => this._loadRegistered().then(() => (this[Wt] = !0, t(this._server)), e);
4621
4716
  }
4622
- function Un(t, e) {
4717
+ function jn(t, e) {
4623
4718
  const r = this._server, o = this._error;
4624
4719
  let s;
4625
4720
  if (this._error = null, t.length === 0)
4626
- this._error = o, s = t(), s && !s[Ft] && typeof s.then == "function" ? s.then(() => T.process.nextTick(e), (u) => T.process.nextTick(e, u)) : T.process.nextTick(e);
4721
+ this._error = o, s = t(), s && !s[Ft] && typeof s.then == "function" ? s.then(() => O.process.nextTick(e), (u) => O.process.nextTick(e, u)) : O.process.nextTick(e);
4627
4722
  else if (t.length === 1)
4628
- s = t(o), s && !s[Ft] && typeof s.then == "function" ? s.then(() => T.process.nextTick(e), (u) => T.process.nextTick(e, u)) : T.process.nextTick(e);
4723
+ s = t(o), s && !s[Ft] && typeof s.then == "function" ? s.then(() => O.process.nextTick(e), (u) => O.process.nextTick(e, u)) : O.process.nextTick(e);
4629
4724
  else if (this._timeout === 0) {
4630
4725
  const u = (l) => {
4631
4726
  this._error = l, e(this._error);
4632
4727
  };
4633
4728
  t.length === 2 ? t(o, u) : t(o, r, u);
4634
4729
  } else
4635
- oa.call(this, t, o, r, e);
4730
+ la.call(this, t, o, r, e);
4636
4731
  }
4637
- function oa(t, e, r, o) {
4732
+ function la(t, e, r, o) {
4638
4733
  const s = t.name;
4639
4734
  Xe("setting up ready timeout", s, this._timeout);
4640
4735
  let u = setTimeout(() => {
4641
4736
  Xe("timed out", s), u = null;
4642
- const f = new ea(s);
4737
+ const f = new sa(s);
4643
4738
  f.fn = t, this._error = f, o(f);
4644
4739
  }, this._timeout);
4645
4740
  t.length === 2 ? t(e, l.bind(this)) : t(e, r, l.bind(this));
@@ -4647,26 +4742,26 @@ function oa(t, e, r, o) {
4647
4742
  u && (clearTimeout(u), this._error = f, o(this._error));
4648
4743
  }
4649
4744
  }
4650
- function sa(t, e) {
4745
+ function ha(t, e) {
4651
4746
  const r = this._server, o = t[this._isOnCloseHandlerKey];
4652
4747
  if (t.length === 0 || t.length === 1) {
4653
4748
  let s;
4654
4749
  o ? s = t(r) : s = t(this._error), s && typeof s.then == "function" ? (Xe("resolving close/onClose promise"), s.then(
4655
- () => T.process.nextTick(e),
4656
- (u) => T.process.nextTick(e, u)
4657
- )) : T.process.nextTick(e);
4750
+ () => O.process.nextTick(e),
4751
+ (u) => O.process.nextTick(e, u)
4752
+ )) : O.process.nextTick(e);
4658
4753
  } else
4659
4754
  t.length === 2 ? t(o ? r : this._error, e) : o ? t(r, e) : t(this._error, r, e);
4660
4755
  }
4661
- function aa(t, e) {
4756
+ function pa(t, e) {
4662
4757
  return r.bind(e);
4663
4758
  function r(o, s) {
4664
4759
  let u;
4665
4760
  t.length === 0 ? (u = t(), u && u.then ? u.then(function() {
4666
- T.process.nextTick(s);
4667
- }, s) : T.process.nextTick(s)) : t.length === 1 ? (u = t(this), u && u.then ? u.then(function() {
4668
- T.process.nextTick(s);
4669
- }, s) : T.process.nextTick(s)) : t(this, s);
4761
+ O.process.nextTick(s);
4762
+ }, s) : O.process.nextTick(s)) : t.length === 1 ? (u = t(this), u && u.then ? u.then(function() {
4763
+ O.process.nextTick(s);
4764
+ }, s) : O.process.nextTick(s)) : t(this, s);
4670
4765
  }
4671
4766
  }
4672
4767
  function Jt(t, e) {
@@ -4674,25 +4769,25 @@ function Jt(t, e) {
4674
4769
  function r(o, s) {
4675
4770
  let u;
4676
4771
  t ? t.length === 0 ? (u = t(), u && u.then ? u.then(function() {
4677
- T.process.nextTick(s, o);
4678
- }, s) : T.process.nextTick(s, o)) : t.length === 1 ? (u = t(o), u && u.then ? u.then(function() {
4679
- T.process.nextTick(s);
4680
- }, s) : T.process.nextTick(s)) : t.length === 2 ? t(o, s) : t(o, this, s) : T.process.nextTick(s);
4772
+ O.process.nextTick(s, o);
4773
+ }, s) : O.process.nextTick(s, o)) : t.length === 1 ? (u = t(o), u && u.then ? u.then(function() {
4774
+ O.process.nextTick(s);
4775
+ }, s) : O.process.nextTick(s)) : t.length === 2 ? t(o, s) : t(o, this, s) : O.process.nextTick(s);
4681
4776
  }
4682
4777
  }
4683
- dr.exports = J;
4684
- dr.exports.express = function(t) {
4685
- return J(t, {
4778
+ gr.exports = ee;
4779
+ gr.exports.express = function(t) {
4780
+ return ee(t, {
4686
4781
  expose: {
4687
4782
  use: "load"
4688
4783
  }
4689
4784
  });
4690
4785
  };
4691
- var ua = dr.exports;
4692
- const ca = /* @__PURE__ */ Hn(ua);
4693
- function _a(t, e = !0, r = !0) {
4694
- const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s = ca(/* @__PURE__ */ Object.create({}), { autostart: !1 });
4695
- return s.use(Oi), s.use(Si, { sdkKey: t, host: o }), s.use(_i), s.use(Ti), s.use(to), s.use(Gi), r && s.after(async (u, l, f) => {
4786
+ var da = gr.exports;
4787
+ const ya = /* @__PURE__ */ Jn(da);
4788
+ function Ra(t, e = !0, r = !0) {
4789
+ const o = e ? "https://grpc-web.streamlayer.io:443" : "https://grpc-web.next.streamlayer.io:443", s = ya(/* @__PURE__ */ Object.create({}), { autostart: !1 });
4790
+ return s.use(Bi), s.use(Ei, { sdkKey: t, host: o }), s.use(xi), s.use(Oi), s.use(ao), s.use(Ji), r && s.after(async (u, l, f) => {
4696
4791
  if (u)
4697
4792
  throw u;
4698
4793
  await l.sdk.initializeApp(), f();
@@ -4701,5 +4796,5 @@ function _a(t, e = !0, r = !0) {
4701
4796
  }), s;
4702
4797
  }
4703
4798
  export {
4704
- _a as StreamLayer
4799
+ Ra as StreamLayer
4705
4800
  };