@everymatrix/player-account-balance-modal-nd 1.55.0 → 1.56.2

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.
@@ -10,7 +10,7 @@ var Rt = (e, t, n) => t in e ? fr(e, t, { enumerable: !0, configurable: !0, writ
10
10
  gr.call(t, n) && Rt(e, n, t[n]);
11
11
  return e;
12
12
  }, Mt = (e, t) => dr(e, pr(t));
13
- var se = (e, t, n) => Rt(e, typeof t != "symbol" ? t + "" : t, n);
13
+ var ue = (e, t, n) => (Rt(e, typeof t != "symbol" ? t + "" : t, n), n);
14
14
  var Nt = (e, t, n) => new Promise((r, i) => {
15
15
  var a = (c) => {
16
16
  try {
@@ -18,16 +18,16 @@ var Nt = (e, t, n) => new Promise((r, i) => {
18
18
  } catch (u) {
19
19
  i(u);
20
20
  }
21
- }, l = (c) => {
21
+ }, s = (c) => {
22
22
  try {
23
23
  o(n.throw(c));
24
24
  } catch (u) {
25
25
  i(u);
26
26
  }
27
- }, o = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(a, l);
27
+ }, o = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(a, s);
28
28
  o((n = n.apply(e, t)).next());
29
29
  });
30
- function le() {
30
+ function ce() {
31
31
  }
32
32
  function Nn(e) {
33
33
  return e();
@@ -51,7 +51,7 @@ function Pn(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const r of t)
53
53
  r(void 0);
54
- return le;
54
+ return ce;
55
55
  }
56
56
  const n = e.subscribe(...t);
57
57
  return n.unsubscribe ? () => n.unsubscribe() : n;
@@ -59,18 +59,19 @@ function Pn(e, ...t) {
59
59
  function yr(e, t, n) {
60
60
  e.$$.on_destroy.push(Pn(t, n));
61
61
  }
62
- function C(e, t) {
62
+ function H(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
65
  function vr(e, t, n) {
66
66
  const r = Er(e);
67
67
  if (!r.getElementById(t)) {
68
- const i = $("style");
68
+ const i = k("style");
69
69
  i.id = t, i.textContent = n, xr(r, i);
70
70
  }
71
71
  }
72
72
  function Er(e) {
73
- if (!e) return document;
73
+ if (!e)
74
+ return document;
74
75
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
76
  return t && /** @type {ShadowRoot} */
76
77
  t.host ? (
@@ -79,38 +80,38 @@ function Er(e) {
79
80
  ) : e.ownerDocument;
80
81
  }
81
82
  function xr(e, t) {
82
- return C(
83
+ return H(
83
84
  /** @type {Document} */
84
85
  e.head || e,
85
86
  t
86
87
  ), t.sheet;
87
88
  }
88
- function ge(e, t, n) {
89
+ function be(e, t, n) {
89
90
  e.insertBefore(t, n || null);
90
91
  }
91
- function fe(e) {
92
+ function me(e) {
92
93
  e.parentNode && e.parentNode.removeChild(e);
93
94
  }
94
95
  function Dn(e, t) {
95
96
  for (let n = 0; n < e.length; n += 1)
96
97
  e[n] && e[n].d(t);
97
98
  }
98
- function $(e) {
99
+ function k(e) {
99
100
  return document.createElement(e);
100
101
  }
101
102
  function hn(e) {
102
103
  return document.createElementNS("http://www.w3.org/2000/svg", e);
103
104
  }
104
- function he(e) {
105
+ function pe(e) {
105
106
  return document.createTextNode(e);
106
107
  }
107
- function de() {
108
- return he(" ");
108
+ function ge() {
109
+ return pe(" ");
109
110
  }
110
111
  function _r() {
111
- return he("");
112
+ return pe("");
112
113
  }
113
- function pt(e, t, n, r) {
114
+ function gt(e, t, n, r) {
114
115
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
115
116
  }
116
117
  function M(e, t, n) {
@@ -119,7 +120,7 @@ function M(e, t, n) {
119
120
  function Br(e) {
120
121
  return Array.from(e.childNodes);
121
122
  }
122
- function Be(e, t) {
123
+ function we(e, t) {
123
124
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
124
125
  t);
125
126
  }
@@ -137,7 +138,8 @@ function Ke(e) {
137
138
  et = e;
138
139
  }
139
140
  function wr() {
140
- if (!et) throw new Error("Function called outside component initialization");
141
+ if (!et)
142
+ throw new Error("Function called outside component initialization");
141
143
  return et;
142
144
  }
143
145
  function Sr(e) {
@@ -148,14 +150,14 @@ let De = [];
148
150
  const fn = [], Ar = /* @__PURE__ */ Promise.resolve();
149
151
  let kt = !1;
150
152
  function Cr() {
151
- kt || (kt = !0, Ar.then(Q));
153
+ kt || (kt = !0, Ar.then(J));
152
154
  }
153
155
  function Vt(e) {
154
156
  De.push(e);
155
157
  }
156
158
  const It = /* @__PURE__ */ new Set();
157
159
  let Ne = 0;
158
- function Q() {
160
+ function J() {
159
161
  if (Ne !== 0)
160
162
  return;
161
163
  const e = et;
@@ -168,7 +170,8 @@ function Q() {
168
170
  } catch (t) {
169
171
  throw Pe.length = 0, Ne = 0, t;
170
172
  }
171
- for (Ke(null), Pe.length = 0, Ne = 0; jt.length; ) jt.pop()();
173
+ for (Ke(null), Pe.length = 0, Ne = 0; jt.length; )
174
+ jt.pop()();
172
175
  for (let t = 0; t < De.length; t += 1) {
173
176
  const n = De[t];
174
177
  It.has(n) || (It.add(n), n());
@@ -194,7 +197,7 @@ const Rr = /* @__PURE__ */ new Set();
194
197
  function Lr(e, t) {
195
198
  e && e.i && (Rr.delete(e), e.i(t));
196
199
  }
197
- function mt(e) {
200
+ function bt(e) {
198
201
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
199
202
  }
200
203
  function Mr(e, t, n) {
@@ -211,7 +214,7 @@ function Nr(e, t) {
211
214
  function Ir(e, t) {
212
215
  e.$$.dirty[0] === -1 && (Pe.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
213
216
  }
214
- function Pr(e, t, n, r, i, a, l = null, o = [-1]) {
217
+ function Pr(e, t, n, r, i, a, s = null, o = [-1]) {
215
218
  const c = et;
216
219
  Ke(e);
217
220
  const u = e.$$ = {
@@ -219,7 +222,7 @@ function Pr(e, t, n, r, i, a, l = null, o = [-1]) {
219
222
  ctx: [],
220
223
  // state
221
224
  props: a,
222
- update: le,
225
+ update: ce,
223
226
  not_equal: i,
224
227
  bound: cn(),
225
228
  // lifecycle
@@ -235,18 +238,18 @@ function Pr(e, t, n, r, i, a, l = null, o = [-1]) {
235
238
  skip_bound: !1,
236
239
  root: t.target || c.$$.root
237
240
  };
238
- l && l(u.root);
239
- let d = !1;
240
- if (u.ctx = n ? n(e, t.props || {}, (b, y, ...T) => {
241
- const _ = T.length ? T[0] : y;
242
- return u.ctx && i(u.ctx[b], u.ctx[b] = _) && (!u.skip_bound && u.bound[b] && u.bound[b](_), d && Ir(e, b)), y;
243
- }) : [], u.update(), d = !0, je(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
241
+ s && s(u.root);
242
+ let f = !1;
243
+ if (u.ctx = n ? n(e, t.props || {}, (g, b, ...B) => {
244
+ const T = B.length ? B[0] : b;
245
+ return u.ctx && i(u.ctx[g], u.ctx[g] = T) && (!u.skip_bound && u.bound[g] && u.bound[g](T), f && Ir(e, g)), b;
246
+ }) : [], u.update(), f = !0, je(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
244
247
  if (t.hydrate) {
245
- const b = Br(t.target);
246
- u.fragment && u.fragment.l(b), b.forEach(fe);
248
+ const g = Br(t.target);
249
+ u.fragment && u.fragment.l(g), g.forEach(me);
247
250
  } else
248
251
  u.fragment && u.fragment.c();
249
- t.intro && Lr(e.$$.fragment), Mr(e, t.target, t.anchor), Q();
252
+ t.intro && Lr(e.$$.fragment), Mr(e, t.target, t.anchor), J();
250
253
  }
251
254
  Ke(c);
252
255
  }
@@ -255,23 +258,23 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
255
258
  constructor(t, n, r) {
256
259
  super();
257
260
  /** The Svelte component constructor */
258
- se(this, "$$ctor");
261
+ ue(this, "$$ctor");
259
262
  /** Slots */
260
- se(this, "$$s");
263
+ ue(this, "$$s");
261
264
  /** The Svelte component instance */
262
- se(this, "$$c");
265
+ ue(this, "$$c");
263
266
  /** Whether or not the custom element is connected */
264
- se(this, "$$cn", !1);
267
+ ue(this, "$$cn", !1);
265
268
  /** Component props data */
266
- se(this, "$$d", {});
269
+ ue(this, "$$d", {});
267
270
  /** `true` if currently in the process of reflecting component props back to attributes */
268
- se(this, "$$r", !1);
271
+ ue(this, "$$r", !1);
269
272
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
270
- se(this, "$$p_d", {});
273
+ ue(this, "$$p_d", {});
271
274
  /** @type {Record<string, Function[]>} Event listeners */
272
- se(this, "$$l", {});
275
+ ue(this, "$$l", {});
273
276
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
274
- se(this, "$$l_u", /* @__PURE__ */ new Map());
277
+ ue(this, "$$l_u", /* @__PURE__ */ new Map());
275
278
  this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
276
279
  }
277
280
  addEventListener(t, n, r) {
@@ -292,20 +295,20 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
292
295
  if (this.$$cn = !0, !this.$$c) {
293
296
  let t = function(a) {
294
297
  return () => {
295
- let l;
298
+ let s;
296
299
  return {
297
300
  c: function() {
298
- l = $("slot"), a !== "default" && M(l, "name", a);
301
+ s = k("slot"), a !== "default" && M(s, "name", a);
299
302
  },
300
303
  /**
301
304
  * @param {HTMLElement} target
302
305
  * @param {HTMLElement} [anchor]
303
306
  */
304
- m: function(u, d) {
305
- ge(u, l, d);
307
+ m: function(u, f) {
308
+ be(u, s, f);
306
309
  },
307
310
  d: function(u) {
308
- u && fe(l);
311
+ u && me(s);
309
312
  }
310
313
  };
311
314
  };
@@ -316,8 +319,8 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
316
319
  for (const a of this.$$s)
317
320
  a in r && (n[a] = [t(a)]);
318
321
  for (const a of this.attributes) {
319
- const l = this.$$g_p(a.name);
320
- l in this.$$d || (this.$$d[l] = ct(l, a.value, this.$$p_d, "toProp"));
322
+ const s = this.$$g_p(a.name);
323
+ s in this.$$d || (this.$$d[s] = ft(s, a.value, this.$$p_d, "toProp"));
321
324
  }
322
325
  for (const a in this.$$p_d)
323
326
  !(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
@@ -334,21 +337,21 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
334
337
  this.$$r = !0;
335
338
  for (const a in this.$$p_d)
336
339
  if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
337
- const l = ct(
340
+ const s = ft(
338
341
  a,
339
342
  this.$$d[a],
340
343
  this.$$p_d,
341
344
  "toAttribute"
342
345
  );
343
- l == null ? this.removeAttribute(this.$$p_d[a].attribute || a) : this.setAttribute(this.$$p_d[a].attribute || a, l);
346
+ s == null ? this.removeAttribute(this.$$p_d[a].attribute || a) : this.setAttribute(this.$$p_d[a].attribute || a, s);
344
347
  }
345
348
  this.$$r = !1;
346
349
  };
347
350
  this.$$c.$$.after_update.push(i), i();
348
351
  for (const a in this.$$l)
349
- for (const l of this.$$l[a]) {
350
- const o = this.$$c.$on(a, l);
351
- this.$$l_u.set(l, o);
352
+ for (const s of this.$$l[a]) {
353
+ const o = this.$$c.$on(a, s);
354
+ this.$$l_u.set(s, o);
352
355
  }
353
356
  this.$$l = {};
354
357
  }
@@ -358,7 +361,7 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
358
361
  // and setting attributes through setAttribute etc, this is helpful
359
362
  attributeChangedCallback(t, n, r) {
360
363
  var i;
361
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ct(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
364
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ft(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
362
365
  }
363
366
  disconnectedCallback() {
364
367
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -371,7 +374,7 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
371
374
  ) || t;
372
375
  }
373
376
  });
374
- function ct(e, t, n, r) {
377
+ function ft(e, t, n, r) {
375
378
  var a;
376
379
  const i = (a = n[e]) == null ? void 0 : a.type;
377
380
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -402,7 +405,7 @@ function ct(e, t, n, r) {
402
405
  }
403
406
  }
404
407
  function Dr(e, t, n, r, i, a) {
405
- let l = class extends Un {
408
+ let s = class extends Un {
406
409
  constructor() {
407
410
  super(e, n, i), this.$$p_d = t;
408
411
  }
@@ -413,24 +416,24 @@ function Dr(e, t, n, r, i, a) {
413
416
  }
414
417
  };
415
418
  return Object.keys(t).forEach((o) => {
416
- Object.defineProperty(l.prototype, o, {
419
+ Object.defineProperty(s.prototype, o, {
417
420
  get() {
418
421
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
419
422
  },
420
423
  set(c) {
421
424
  var u;
422
- c = ct(o, c, t), this.$$d[o] = c, (u = this.$$c) == null || u.$set({ [o]: c });
425
+ c = ft(o, c, t), this.$$d[o] = c, (u = this.$$c) == null || u.$set({ [o]: c });
423
426
  }
424
427
  });
425
428
  }), r.forEach((o) => {
426
- Object.defineProperty(l.prototype, o, {
429
+ Object.defineProperty(s.prototype, o, {
427
430
  get() {
428
431
  var c;
429
432
  return (c = this.$$c) == null ? void 0 : c[o];
430
433
  }
431
434
  });
432
435
  }), e.element = /** @type {any} */
433
- l, l;
436
+ s, s;
434
437
  }
435
438
  class Ur {
436
439
  constructor() {
@@ -441,7 +444,7 @@ class Ur {
441
444
  *
442
445
  * @type {any}
443
446
  */
444
- se(this, "$$");
447
+ ue(this, "$$");
445
448
  /**
446
449
  * ### PRIVATE API
447
450
  *
@@ -449,11 +452,11 @@ class Ur {
449
452
  *
450
453
  * @type {any}
451
454
  */
452
- se(this, "$$set");
455
+ ue(this, "$$set");
453
456
  }
454
457
  /** @returns {void} */
455
458
  $destroy() {
456
- Nr(this, 1), this.$destroy = le;
459
+ Nr(this, 1), this.$destroy = ce;
457
460
  }
458
461
  /**
459
462
  * @template {Extract<keyof Events, string>} K
@@ -463,7 +466,7 @@ class Ur {
463
466
  */
464
467
  $on(t, n) {
465
468
  if (!tn(n))
466
- return le;
469
+ return ce;
467
470
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
468
471
  return r.push(n), () => {
469
472
  const i = r.indexOf(n);
@@ -480,13 +483,36 @@ class Ur {
480
483
  }
481
484
  const Fr = "4";
482
485
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
483
- const Ie = [];
484
486
  function Gr(e, t) {
487
+ if (e) {
488
+ const n = document.createElement("style");
489
+ n.innerHTML = t, e.appendChild(n);
490
+ }
491
+ }
492
+ function $r(e, t) {
493
+ const n = new URL(t);
494
+ fetch(n.href).then((r) => r.text()).then((r) => {
495
+ const i = document.createElement("style");
496
+ i.innerHTML = r, e && e.appendChild(i);
497
+ }).catch((r) => {
498
+ console.error("There was an error while trying to load client styling from URL", r);
499
+ });
500
+ }
501
+ function jr(e, t, n) {
502
+ if (window.emMessageBus) {
503
+ const r = document.createElement("style");
504
+ window.emMessageBus.subscribe(t, (i) => {
505
+ r.innerHTML = i, e && e.appendChild(r);
506
+ });
507
+ }
508
+ }
509
+ const Ie = [];
510
+ function kr(e, t) {
485
511
  return {
486
- subscribe: yt(e, t).subscribe
512
+ subscribe: Et(e, t).subscribe
487
513
  };
488
514
  }
489
- function yt(e, t = le) {
515
+ function Et(e, t = ce) {
490
516
  let n;
491
517
  const r = /* @__PURE__ */ new Set();
492
518
  function i(o) {
@@ -504,87 +530,87 @@ function yt(e, t = le) {
504
530
  function a(o) {
505
531
  i(o(e));
506
532
  }
507
- function l(o, c = le) {
533
+ function s(o, c = ce) {
508
534
  const u = [o, c];
509
- return r.add(u), r.size === 1 && (n = t(i, a) || le), o(e), () => {
535
+ return r.add(u), r.size === 1 && (n = t(i, a) || ce), o(e), () => {
510
536
  r.delete(u), r.size === 0 && n && (n(), n = null);
511
537
  };
512
538
  }
513
- return { set: i, update: a, subscribe: l };
539
+ return { set: i, update: a, subscribe: s };
514
540
  }
515
541
  function ke(e, t, n) {
516
542
  const r = !Array.isArray(e), i = r ? [e] : e;
517
543
  if (!i.every(Boolean))
518
544
  throw new Error("derived() expects stores as input, got a falsy value");
519
545
  const a = t.length < 2;
520
- return Gr(n, (l, o) => {
546
+ return kr(n, (s, o) => {
521
547
  let c = !1;
522
548
  const u = [];
523
- let d = 0, b = le;
524
- const y = () => {
525
- if (d)
549
+ let f = 0, g = ce;
550
+ const b = () => {
551
+ if (f)
526
552
  return;
527
- b();
528
- const _ = t(r ? u[0] : u, l, o);
529
- a ? l(_) : b = tn(_) ? _ : le;
530
- }, T = i.map(
531
- (_, H) => Pn(
532
- _,
533
- (B) => {
534
- u[H] = B, d &= ~(1 << H), c && y();
553
+ g();
554
+ const T = t(r ? u[0] : u, s, o);
555
+ a ? s(T) : g = tn(T) ? T : ce;
556
+ }, B = i.map(
557
+ (T, S) => Pn(
558
+ T,
559
+ (_) => {
560
+ u[S] = _, f &= ~(1 << S), c && b();
535
561
  },
536
562
  () => {
537
- d |= 1 << H;
563
+ f |= 1 << S;
538
564
  }
539
565
  )
540
566
  );
541
- return c = !0, y(), function() {
542
- je(T), b(), c = !1;
567
+ return c = !0, b(), function() {
568
+ je(B), g(), c = !1;
543
569
  };
544
570
  });
545
571
  }
546
- var $r = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
547
- function jr(e) {
572
+ var Vr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
573
+ function Xr(e) {
548
574
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
549
575
  }
550
- var kr = function(t) {
551
- return Vr(t) && !Xr(t);
576
+ var zr = function(t) {
577
+ return Wr(t) && !Zr(t);
552
578
  };
553
- function Vr(e) {
579
+ function Wr(e) {
554
580
  return !!e && typeof e == "object";
555
581
  }
556
- function Xr(e) {
582
+ function Zr(e) {
557
583
  var t = Object.prototype.toString.call(e);
558
- return t === "[object RegExp]" || t === "[object Date]" || Zr(e);
584
+ return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
559
585
  }
560
- var zr = typeof Symbol == "function" && Symbol.for, Wr = zr ? Symbol.for("react.element") : 60103;
561
- function Zr(e) {
562
- return e.$$typeof === Wr;
586
+ var qr = typeof Symbol == "function" && Symbol.for, Qr = qr ? Symbol.for("react.element") : 60103;
587
+ function Jr(e) {
588
+ return e.$$typeof === Qr;
563
589
  }
564
- function qr(e) {
590
+ function Yr(e) {
565
591
  return Array.isArray(e) ? [] : {};
566
592
  }
567
593
  function tt(e, t) {
568
- return t.clone !== !1 && t.isMergeableObject(e) ? Ue(qr(e), e, t) : e;
594
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Yr(e), e, t) : e;
569
595
  }
570
- function Qr(e, t, n) {
596
+ function Kr(e, t, n) {
571
597
  return e.concat(t).map(function(r) {
572
598
  return tt(r, n);
573
599
  });
574
600
  }
575
- function Jr(e, t) {
601
+ function ei(e, t) {
576
602
  if (!t.customMerge)
577
603
  return Ue;
578
604
  var n = t.customMerge(e);
579
605
  return typeof n == "function" ? n : Ue;
580
606
  }
581
- function Yr(e) {
607
+ function ti(e) {
582
608
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
583
609
  return Object.propertyIsEnumerable.call(e, t);
584
610
  }) : [];
585
611
  }
586
612
  function dn(e) {
587
- return Object.keys(e).concat(Yr(e));
613
+ return Object.keys(e).concat(ti(e));
588
614
  }
589
615
  function Fn(e, t) {
590
616
  try {
@@ -593,21 +619,21 @@ function Fn(e, t) {
593
619
  return !1;
594
620
  }
595
621
  }
596
- function Kr(e, t) {
622
+ function ni(e, t) {
597
623
  return Fn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
598
624
  }
599
- function ei(e, t, n) {
625
+ function ri(e, t, n) {
600
626
  var r = {};
601
627
  return n.isMergeableObject(e) && dn(e).forEach(function(i) {
602
628
  r[i] = tt(e[i], n);
603
629
  }), dn(t).forEach(function(i) {
604
- Kr(e, i) || (Fn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Jr(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
630
+ ni(e, i) || (Fn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ei(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
605
631
  }), r;
606
632
  }
607
633
  function Ue(e, t, n) {
608
- n = n || {}, n.arrayMerge = n.arrayMerge || Qr, n.isMergeableObject = n.isMergeableObject || kr, n.cloneUnlessOtherwiseSpecified = tt;
634
+ n = n || {}, n.arrayMerge = n.arrayMerge || Kr, n.isMergeableObject = n.isMergeableObject || zr, n.cloneUnlessOtherwiseSpecified = tt;
609
635
  var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
610
- return a ? r ? n.arrayMerge(e, t, n) : ei(e, t, n) : tt(t, n);
636
+ return a ? r ? n.arrayMerge(e, t, n) : ri(e, t, n) : tt(t, n);
611
637
  }
612
638
  Ue.all = function(t, n) {
613
639
  if (!Array.isArray(t))
@@ -616,16 +642,31 @@ Ue.all = function(t, n) {
616
642
  return Ue(r, i, n);
617
643
  }, {});
618
644
  };
619
- var ti = Ue, ni = ti;
620
- const ri = /* @__PURE__ */ jr(ni);
645
+ var ii = Ue, ai = ii;
646
+ const oi = /* @__PURE__ */ Xr(ai);
647
+ /*! *****************************************************************************
648
+ Copyright (c) Microsoft Corporation.
649
+
650
+ Permission to use, copy, modify, and/or distribute this software for any
651
+ purpose with or without fee is hereby granted.
652
+
653
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
654
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
655
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
656
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
657
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
658
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
659
+ PERFORMANCE OF THIS SOFTWARE.
660
+ ***************************************************************************** */
621
661
  var Xt = function(e, t) {
622
662
  return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
623
663
  n.__proto__ = r;
624
664
  } || function(n, r) {
625
- for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
665
+ for (var i in r)
666
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
626
667
  }, Xt(e, t);
627
668
  };
628
- function vt(e, t) {
669
+ function xt(e, t) {
629
670
  if (typeof t != "function" && t !== null)
630
671
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
631
672
  Xt(e, t);
@@ -638,36 +679,39 @@ var I = function() {
638
679
  return I = Object.assign || function(t) {
639
680
  for (var n, r = 1, i = arguments.length; r < i; r++) {
640
681
  n = arguments[r];
641
- for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
682
+ for (var a in n)
683
+ Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
642
684
  }
643
685
  return t;
644
686
  }, I.apply(this, arguments);
645
687
  };
646
- function ii(e, t) {
688
+ function si(e, t) {
647
689
  var n = {};
648
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
690
+ for (var r in e)
691
+ Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
649
692
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
650
693
  for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
651
694
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
652
695
  return n;
653
696
  }
654
697
  function Pt(e, t, n) {
655
- if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++)
656
- (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
657
- return e.concat(a || Array.prototype.slice.call(t));
698
+ if (arguments.length === 2)
699
+ for (var r = 0, i = t.length, a; r < i; r++)
700
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
701
+ return e.concat(a || t);
658
702
  }
659
703
  function Dt(e, t) {
660
- var n = t && t.cache ? t.cache : ci, r = t && t.serializer ? t.serializer : ui, i = t && t.strategy ? t.strategy : oi;
704
+ var n = t && t.cache ? t.cache : di, r = t && t.serializer ? t.serializer : fi, i = t && t.strategy ? t.strategy : ui;
661
705
  return i(e, {
662
706
  cache: n,
663
707
  serializer: r
664
708
  });
665
709
  }
666
- function ai(e) {
710
+ function li(e) {
667
711
  return e == null || typeof e == "number" || typeof e == "boolean";
668
712
  }
669
713
  function Gn(e, t, n, r) {
670
- var i = ai(r) ? r : n(r), a = t.get(i);
714
+ var i = li(r) ? r : n(r), a = t.get(i);
671
715
  return typeof a == "undefined" && (a = e.call(this, r), t.set(i, a)), a;
672
716
  }
673
717
  function $n(e, t, n) {
@@ -677,17 +721,17 @@ function $n(e, t, n) {
677
721
  function nn(e, t, n, r, i) {
678
722
  return n.bind(t, e, r, i);
679
723
  }
680
- function oi(e, t) {
724
+ function ui(e, t) {
681
725
  var n = e.length === 1 ? Gn : $n;
682
726
  return nn(e, this, n, t.cache.create(), t.serializer);
683
727
  }
684
- function si(e, t) {
728
+ function ci(e, t) {
685
729
  return nn(e, this, $n, t.cache.create(), t.serializer);
686
730
  }
687
- function li(e, t) {
731
+ function hi(e, t) {
688
732
  return nn(e, this, Gn, t.cache.create(), t.serializer);
689
733
  }
690
- var ui = function() {
734
+ var fi = function() {
691
735
  return JSON.stringify(arguments);
692
736
  };
693
737
  function rn() {
@@ -699,51 +743,51 @@ rn.prototype.get = function(e) {
699
743
  rn.prototype.set = function(e, t) {
700
744
  this.cache[e] = t;
701
745
  };
702
- var ci = {
746
+ var di = {
703
747
  create: function() {
704
748
  return new rn();
705
749
  }
706
750
  }, Ut = {
707
- variadic: si,
708
- monadic: li
751
+ variadic: ci,
752
+ monadic: hi
709
753
  }, R;
710
754
  (function(e) {
711
755
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
712
756
  })(R || (R = {}));
713
- var G;
757
+ var j;
714
758
  (function(e) {
715
759
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
716
- })(G || (G = {}));
760
+ })(j || (j = {}));
717
761
  var Fe;
718
762
  (function(e) {
719
763
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
720
764
  })(Fe || (Fe = {}));
721
765
  function pn(e) {
722
- return e.type === G.literal;
766
+ return e.type === j.literal;
723
767
  }
724
- function hi(e) {
725
- return e.type === G.argument;
768
+ function pi(e) {
769
+ return e.type === j.argument;
726
770
  }
727
771
  function jn(e) {
728
- return e.type === G.number;
772
+ return e.type === j.number;
729
773
  }
730
774
  function kn(e) {
731
- return e.type === G.date;
775
+ return e.type === j.date;
732
776
  }
733
777
  function Vn(e) {
734
- return e.type === G.time;
778
+ return e.type === j.time;
735
779
  }
736
780
  function Xn(e) {
737
- return e.type === G.select;
781
+ return e.type === j.select;
738
782
  }
739
783
  function zn(e) {
740
- return e.type === G.plural;
784
+ return e.type === j.plural;
741
785
  }
742
- function fi(e) {
743
- return e.type === G.pound;
786
+ function mi(e) {
787
+ return e.type === j.pound;
744
788
  }
745
789
  function Wn(e) {
746
- return e.type === G.tag;
790
+ return e.type === j.tag;
747
791
  }
748
792
  function Zn(e) {
749
793
  return !!(e && typeof e == "object" && e.type === Fe.number);
@@ -751,10 +795,10 @@ function Zn(e) {
751
795
  function zt(e) {
752
796
  return !!(e && typeof e == "object" && e.type === Fe.dateTime);
753
797
  }
754
- var qn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, di = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
755
- function pi(e) {
798
+ var qn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
799
+ function bi(e) {
756
800
  var t = {};
757
- return e.replace(di, function(n) {
801
+ return e.replace(gi, function(n) {
758
802
  var r = n.length;
759
803
  switch (n[0]) {
760
804
  case "G":
@@ -843,29 +887,29 @@ function pi(e) {
843
887
  return "";
844
888
  }), t;
845
889
  }
846
- var mi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
847
- function gi(e) {
890
+ var yi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
891
+ function vi(e) {
848
892
  if (e.length === 0)
849
893
  throw new Error("Number skeleton cannot be empty");
850
- for (var t = e.split(mi).filter(function(y) {
851
- return y.length > 0;
894
+ for (var t = e.split(yi).filter(function(b) {
895
+ return b.length > 0;
852
896
  }), n = [], r = 0, i = t; r < i.length; r++) {
853
- var a = i[r], l = a.split("/");
854
- if (l.length === 0)
897
+ var a = i[r], s = a.split("/");
898
+ if (s.length === 0)
855
899
  throw new Error("Invalid number skeleton");
856
- for (var o = l[0], c = l.slice(1), u = 0, d = c; u < d.length; u++) {
857
- var b = d[u];
858
- if (b.length === 0)
900
+ for (var o = s[0], c = s.slice(1), u = 0, f = c; u < f.length; u++) {
901
+ var g = f[u];
902
+ if (g.length === 0)
859
903
  throw new Error("Invalid number skeleton");
860
904
  }
861
905
  n.push({ stem: o, options: c });
862
906
  }
863
907
  return n;
864
908
  }
865
- function bi(e) {
909
+ function Ei(e) {
866
910
  return e.replace(/^(.*?)-/, "");
867
911
  }
868
- var mn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qn = /^(@+)?(\+|#+)?[rs]?$/g, yi = /(\*)(0+)|(#+)(0+)|(0+)/g, Jn = /^(0+)$/;
912
+ var mn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qn = /^(@+)?(\+|#+)?[rs]?$/g, xi = /(\*)(0+)|(#+)(0+)|(0+)/g, Jn = /^(0+)$/;
869
913
  function gn(e) {
870
914
  var t = {};
871
915
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qn, function(n, r, i) {
@@ -912,7 +956,7 @@ function Yn(e) {
912
956
  };
913
957
  }
914
958
  }
915
- function vi(e) {
959
+ function _i(e) {
916
960
  var t;
917
961
  if (e[0] === "E" && e[1] === "E" ? (t = {
918
962
  notation: "engineering"
@@ -930,7 +974,7 @@ function bn(e) {
930
974
  var t = {}, n = Yn(e);
931
975
  return n || t;
932
976
  }
933
- function Ei(e) {
977
+ function Bi(e) {
934
978
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
935
979
  var i = r[n];
936
980
  switch (i.stem) {
@@ -954,7 +998,7 @@ function Ei(e) {
954
998
  continue;
955
999
  case "measure-unit":
956
1000
  case "unit":
957
- t.style = "unit", t.unit = bi(i.options[0]);
1001
+ t.style = "unit", t.unit = Ei(i.options[0]);
958
1002
  continue;
959
1003
  case "compact-short":
960
1004
  case "K":
@@ -1016,13 +1060,13 @@ function Ei(e) {
1016
1060
  case "integer-width":
1017
1061
  if (i.options.length > 1)
1018
1062
  throw new RangeError("integer-width stems only accept a single optional option");
1019
- i.options[0].replace(yi, function(c, u, d, b, y, T) {
1063
+ i.options[0].replace(xi, function(c, u, f, g, b, B) {
1020
1064
  if (u)
1021
- t.minimumIntegerDigits = d.length;
1065
+ t.minimumIntegerDigits = f.length;
1022
1066
  else {
1023
- if (b && y)
1067
+ if (g && b)
1024
1068
  throw new Error("We currently do not support maximum integer digits");
1025
- if (T)
1069
+ if (B)
1026
1070
  throw new Error("We currently do not support exact integer digits");
1027
1071
  }
1028
1072
  return "";
@@ -1036,8 +1080,8 @@ function Ei(e) {
1036
1080
  if (mn.test(i.stem)) {
1037
1081
  if (i.options.length > 1)
1038
1082
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1039
- i.stem.replace(mn, function(c, u, d, b, y, T) {
1040
- return d === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : y && T ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + T.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1083
+ i.stem.replace(mn, function(c, u, f, g, b, B) {
1084
+ return f === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && B ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + B.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1041
1085
  });
1042
1086
  var a = i.options[0];
1043
1087
  a === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = I(I({}, t), gn(a)));
@@ -1047,14 +1091,14 @@ function Ei(e) {
1047
1091
  t = I(I({}, t), gn(i.stem));
1048
1092
  continue;
1049
1093
  }
1050
- var l = Yn(i.stem);
1051
- l && (t = I(I({}, t), l));
1052
- var o = vi(i.stem);
1094
+ var s = Yn(i.stem);
1095
+ s && (t = I(I({}, t), s));
1096
+ var o = _i(i.stem);
1053
1097
  o && (t = I(I({}, t), o));
1054
1098
  }
1055
1099
  return t;
1056
1100
  }
1057
- var ut = {
1101
+ var ht = {
1058
1102
  "001": [
1059
1103
  "H",
1060
1104
  "h"
@@ -2469,22 +2513,23 @@ var ut = {
2469
2513
  "h"
2470
2514
  ]
2471
2515
  };
2472
- function xi(e, t) {
2516
+ function Ti(e, t) {
2473
2517
  for (var n = "", r = 0; r < e.length; r++) {
2474
2518
  var i = e.charAt(r);
2475
2519
  if (i === "j") {
2476
2520
  for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2477
2521
  a++, r++;
2478
- var l = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), c = "a", u = _i(t);
2522
+ var s = 1 + (a & 1), o = a < 2 ? 1 : 3 + (a >> 1), c = "a", u = wi(t);
2479
2523
  for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
2480
2524
  n += c;
2481
- for (; l-- > 0; )
2525
+ for (; s-- > 0; )
2482
2526
  n = u + n;
2483
- } else i === "J" ? n += "H" : n += i;
2527
+ } else
2528
+ i === "J" ? n += "H" : n += i;
2484
2529
  }
2485
2530
  return n;
2486
2531
  }
2487
- function _i(e) {
2532
+ function wi(e) {
2488
2533
  var t = e.hourCycle;
2489
2534
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2490
2535
  e.hourCycles && // @ts-ignore
@@ -2503,23 +2548,23 @@ function _i(e) {
2503
2548
  }
2504
2549
  var n = e.language, r;
2505
2550
  n !== "root" && (r = e.maximize().region);
2506
- var i = ut[r || ""] || ut[n || ""] || ut["".concat(n, "-001")] || ut["001"];
2551
+ var i = ht[r || ""] || ht[n || ""] || ht["".concat(n, "-001")] || ht["001"];
2507
2552
  return i[0];
2508
2553
  }
2509
- var Ft, Bi = new RegExp("^".concat(qn.source, "*")), Ti = new RegExp("".concat(qn.source, "*$"));
2554
+ var Ft, Si = new RegExp("^".concat(qn.source, "*")), Ai = new RegExp("".concat(qn.source, "*$"));
2510
2555
  function L(e, t) {
2511
2556
  return { start: e, end: t };
2512
2557
  }
2513
- var wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Si = !!String.fromCodePoint, Ai = !!Object.fromEntries, Ci = !!String.prototype.codePointAt, Hi = !!String.prototype.trimStart, Oi = !!String.prototype.trimEnd, Ri = !!Number.isSafeInteger, Li = Ri ? Number.isSafeInteger : function(e) {
2558
+ var Ci = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hi = !!String.fromCodePoint, Oi = !!Object.fromEntries, Ri = !!String.prototype.codePointAt, Li = !!String.prototype.trimStart, Mi = !!String.prototype.trimEnd, Ni = !!Number.isSafeInteger, Ii = Ni ? Number.isSafeInteger : function(e) {
2514
2559
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2515
2560
  }, Wt = !0;
2516
2561
  try {
2517
- var Mi = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2518
- Wt = ((Ft = Mi.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
2562
+ var Pi = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2563
+ Wt = ((Ft = Pi.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
2519
2564
  } catch (e) {
2520
2565
  Wt = !1;
2521
2566
  }
2522
- var yn = wi ? (
2567
+ var yn = Ci ? (
2523
2568
  // Native
2524
2569
  function(t, n, r) {
2525
2570
  return t.startsWith(n, r);
@@ -2529,31 +2574,31 @@ var yn = wi ? (
2529
2574
  function(t, n, r) {
2530
2575
  return t.slice(r, r + n.length) === n;
2531
2576
  }
2532
- ), Zt = Si ? String.fromCodePoint : (
2577
+ ), Zt = Hi ? String.fromCodePoint : (
2533
2578
  // IE11
2534
2579
  function() {
2535
2580
  for (var t = [], n = 0; n < arguments.length; n++)
2536
2581
  t[n] = arguments[n];
2537
- for (var r = "", i = t.length, a = 0, l; i > a; ) {
2538
- if (l = t[a++], l > 1114111)
2539
- throw RangeError(l + " is not a valid code point");
2540
- r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
2582
+ for (var r = "", i = t.length, a = 0, s; i > a; ) {
2583
+ if (s = t[a++], s > 1114111)
2584
+ throw RangeError(s + " is not a valid code point");
2585
+ r += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
2541
2586
  }
2542
2587
  return r;
2543
2588
  }
2544
2589
  ), vn = (
2545
2590
  // native
2546
- Ai ? Object.fromEntries : (
2591
+ Oi ? Object.fromEntries : (
2547
2592
  // Ponyfill
2548
2593
  function(t) {
2549
2594
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
2550
- var a = i[r], l = a[0], o = a[1];
2551
- n[l] = o;
2595
+ var a = i[r], s = a[0], o = a[1];
2596
+ n[s] = o;
2552
2597
  }
2553
2598
  return n;
2554
2599
  }
2555
2600
  )
2556
- ), Kn = Ci ? (
2601
+ ), Kn = Ri ? (
2557
2602
  // Native
2558
2603
  function(t, n) {
2559
2604
  return t.codePointAt(n);
@@ -2567,7 +2612,7 @@ var yn = wi ? (
2567
2612
  return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2568
2613
  }
2569
2614
  }
2570
- ), Ni = Hi ? (
2615
+ ), Di = Li ? (
2571
2616
  // Native
2572
2617
  function(t) {
2573
2618
  return t.trimStart();
@@ -2575,9 +2620,9 @@ var yn = wi ? (
2575
2620
  ) : (
2576
2621
  // Ponyfill
2577
2622
  function(t) {
2578
- return t.replace(Bi, "");
2623
+ return t.replace(Si, "");
2579
2624
  }
2580
- ), Ii = Oi ? (
2625
+ ), Ui = Mi ? (
2581
2626
  // Native
2582
2627
  function(t) {
2583
2628
  return t.trimEnd();
@@ -2585,7 +2630,7 @@ var yn = wi ? (
2585
2630
  ) : (
2586
2631
  // Ponyfill
2587
2632
  function(t) {
2588
- return t.replace(Ti, "");
2633
+ return t.replace(Ai, "");
2589
2634
  }
2590
2635
  );
2591
2636
  function er(e, t) {
@@ -2604,13 +2649,13 @@ if (Wt) {
2604
2649
  qt = function(t, n) {
2605
2650
  for (var r = []; ; ) {
2606
2651
  var i = Kn(t, n);
2607
- if (i === void 0 || tr(i) || Fi(i))
2652
+ if (i === void 0 || tr(i) || ji(i))
2608
2653
  break;
2609
2654
  r.push(i), n += i >= 65536 ? 2 : 1;
2610
2655
  }
2611
2656
  return Zt.apply(void 0, r);
2612
2657
  };
2613
- var Pi = (
2658
+ var Fi = (
2614
2659
  /** @class */
2615
2660
  function() {
2616
2661
  function e(t, n) {
@@ -2624,17 +2669,17 @@ var Pi = (
2624
2669
  for (var i = []; !this.isEOF(); ) {
2625
2670
  var a = this.char();
2626
2671
  if (a === 123) {
2627
- var l = this.parseArgument(t, r);
2628
- if (l.err)
2629
- return l;
2630
- i.push(l.val);
2672
+ var s = this.parseArgument(t, r);
2673
+ if (s.err)
2674
+ return s;
2675
+ i.push(s.val);
2631
2676
  } else {
2632
2677
  if (a === 125 && t > 0)
2633
2678
  break;
2634
2679
  if (a === 35 && (n === "plural" || n === "selectordinal")) {
2635
2680
  var o = this.clonePosition();
2636
2681
  this.bump(), i.push({
2637
- type: G.pound,
2682
+ type: j.pound,
2638
2683
  location: L(o, this.clonePosition())
2639
2684
  });
2640
2685
  } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
@@ -2642,15 +2687,15 @@ var Pi = (
2642
2687
  break;
2643
2688
  return this.error(R.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2644
2689
  } else if (a === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
2645
- var l = this.parseTag(t, n);
2646
- if (l.err)
2647
- return l;
2648
- i.push(l.val);
2690
+ var s = this.parseTag(t, n);
2691
+ if (s.err)
2692
+ return s;
2693
+ i.push(s.val);
2649
2694
  } else {
2650
- var l = this.parseLiteral(t, n);
2651
- if (l.err)
2652
- return l;
2653
- i.push(l.val);
2695
+ var s = this.parseLiteral(t, n);
2696
+ if (s.err)
2697
+ return s;
2698
+ i.push(s.val);
2654
2699
  }
2655
2700
  }
2656
2701
  }
@@ -2662,7 +2707,7 @@ var Pi = (
2662
2707
  if (this.bumpSpace(), this.bumpIf("/>"))
2663
2708
  return {
2664
2709
  val: {
2665
- type: G.literal,
2710
+ type: j.literal,
2666
2711
  value: "<".concat(i, "/>"),
2667
2712
  location: L(r, this.clonePosition())
2668
2713
  },
@@ -2672,16 +2717,16 @@ var Pi = (
2672
2717
  var a = this.parseMessage(t + 1, n, !0);
2673
2718
  if (a.err)
2674
2719
  return a;
2675
- var l = a.val, o = this.clonePosition();
2720
+ var s = a.val, o = this.clonePosition();
2676
2721
  if (this.bumpIf("</")) {
2677
2722
  if (this.isEOF() || !Qt(this.char()))
2678
2723
  return this.error(R.INVALID_TAG, L(o, this.clonePosition()));
2679
2724
  var c = this.clonePosition(), u = this.parseTagName();
2680
2725
  return i !== u ? this.error(R.UNMATCHED_CLOSING_TAG, L(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2681
2726
  val: {
2682
- type: G.tag,
2727
+ type: j.tag,
2683
2728
  value: i,
2684
- children: l,
2729
+ children: s,
2685
2730
  location: L(r, this.clonePosition())
2686
2731
  },
2687
2732
  err: null
@@ -2692,7 +2737,7 @@ var Pi = (
2692
2737
  return this.error(R.INVALID_TAG, L(r, this.clonePosition()));
2693
2738
  }, e.prototype.parseTagName = function() {
2694
2739
  var t = this.offset();
2695
- for (this.bump(); !this.isEOF() && Ui(this.char()); )
2740
+ for (this.bump(); !this.isEOF() && $i(this.char()); )
2696
2741
  this.bump();
2697
2742
  return this.message.slice(t, this.offset());
2698
2743
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2702,9 +2747,9 @@ var Pi = (
2702
2747
  i += a;
2703
2748
  continue;
2704
2749
  }
2705
- var l = this.tryParseUnquoted(t, n);
2706
- if (l) {
2707
- i += l;
2750
+ var s = this.tryParseUnquoted(t, n);
2751
+ if (s) {
2752
+ i += s;
2708
2753
  continue;
2709
2754
  }
2710
2755
  var o = this.tryParseLeftAngleBracket();
@@ -2716,12 +2761,12 @@ var Pi = (
2716
2761
  }
2717
2762
  var c = L(r, this.clonePosition());
2718
2763
  return {
2719
- val: { type: G.literal, value: i, location: c },
2764
+ val: { type: j.literal, value: i, location: c },
2720
2765
  err: null
2721
2766
  };
2722
2767
  }, e.prototype.tryParseLeftAngleBracket = function() {
2723
2768
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2724
- !Di(this.peek() || 0)) ? (this.bump(), "<") : null;
2769
+ !Gi(this.peek() || 0)) ? (this.bump(), "<") : null;
2725
2770
  }, e.prototype.tryParseQuote = function(t) {
2726
2771
  if (this.isEOF() || this.char() !== 39)
2727
2772
  return null;
@@ -2776,7 +2821,7 @@ var Pi = (
2776
2821
  case 125:
2777
2822
  return this.bump(), {
2778
2823
  val: {
2779
- type: G.argument,
2824
+ type: j.argument,
2780
2825
  // value does not include the opening and closing braces.
2781
2826
  value: i,
2782
2827
  location: L(r, this.clonePosition())
@@ -2791,13 +2836,13 @@ var Pi = (
2791
2836
  }, e.prototype.parseIdentifierIfPossible = function() {
2792
2837
  var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
2793
2838
  this.bumpTo(i);
2794
- var a = this.clonePosition(), l = L(t, a);
2795
- return { value: r, location: l };
2839
+ var a = this.clonePosition(), s = L(t, a);
2840
+ return { value: r, location: s };
2796
2841
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2797
- var a, l = this.clonePosition(), o = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2842
+ var a, s = this.clonePosition(), o = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2798
2843
  switch (o) {
2799
2844
  case "":
2800
- return this.error(R.EXPECT_ARGUMENT_TYPE, L(l, c));
2845
+ return this.error(R.EXPECT_ARGUMENT_TYPE, L(s, c));
2801
2846
  case "number":
2802
2847
  case "date":
2803
2848
  case "time": {
@@ -2805,49 +2850,49 @@ var Pi = (
2805
2850
  var u = null;
2806
2851
  if (this.bumpIf(",")) {
2807
2852
  this.bumpSpace();
2808
- var d = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
2809
- if (b.err)
2810
- return b;
2811
- var y = Ii(b.val);
2812
- if (y.length === 0)
2853
+ var f = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2854
+ if (g.err)
2855
+ return g;
2856
+ var b = Ui(g.val);
2857
+ if (b.length === 0)
2813
2858
  return this.error(R.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2814
- var T = L(d, this.clonePosition());
2815
- u = { style: y, styleLocation: T };
2859
+ var B = L(f, this.clonePosition());
2860
+ u = { style: b, styleLocation: B };
2816
2861
  }
2817
- var _ = this.tryParseArgumentClose(i);
2818
- if (_.err)
2819
- return _;
2820
- var H = L(i, this.clonePosition());
2862
+ var T = this.tryParseArgumentClose(i);
2863
+ if (T.err)
2864
+ return T;
2865
+ var S = L(i, this.clonePosition());
2821
2866
  if (u && yn(u == null ? void 0 : u.style, "::", 0)) {
2822
- var B = Ni(u.style.slice(2));
2867
+ var _ = Di(u.style.slice(2));
2823
2868
  if (o === "number") {
2824
- var b = this.parseNumberSkeletonFromString(B, u.styleLocation);
2825
- return b.err ? b : {
2826
- val: { type: G.number, value: r, location: H, style: b.val },
2869
+ var g = this.parseNumberSkeletonFromString(_, u.styleLocation);
2870
+ return g.err ? g : {
2871
+ val: { type: j.number, value: r, location: S, style: g.val },
2827
2872
  err: null
2828
2873
  };
2829
2874
  } else {
2830
- if (B.length === 0)
2831
- return this.error(R.EXPECT_DATE_TIME_SKELETON, H);
2832
- var A = B;
2833
- this.locale && (A = xi(B, this.locale));
2834
- var y = {
2875
+ if (_.length === 0)
2876
+ return this.error(R.EXPECT_DATE_TIME_SKELETON, S);
2877
+ var C = _;
2878
+ this.locale && (C = Ti(_, this.locale));
2879
+ var b = {
2835
2880
  type: Fe.dateTime,
2836
- pattern: A,
2881
+ pattern: C,
2837
2882
  location: u.styleLocation,
2838
- parsedOptions: this.shouldParseSkeletons ? pi(A) : {}
2839
- }, P = o === "date" ? G.date : G.time;
2883
+ parsedOptions: this.shouldParseSkeletons ? bi(C) : {}
2884
+ }, D = o === "date" ? j.date : j.time;
2840
2885
  return {
2841
- val: { type: P, value: r, location: H, style: y },
2886
+ val: { type: D, value: r, location: S, style: b },
2842
2887
  err: null
2843
2888
  };
2844
2889
  }
2845
2890
  }
2846
2891
  return {
2847
2892
  val: {
2848
- type: o === "number" ? G.number : o === "date" ? G.date : G.time,
2893
+ type: o === "number" ? j.number : o === "date" ? j.date : j.time,
2849
2894
  value: r,
2850
- location: H,
2895
+ location: S,
2851
2896
  style: (a = u == null ? void 0 : u.style) !== null && a !== void 0 ? a : null
2852
2897
  },
2853
2898
  err: null
@@ -2860,45 +2905,45 @@ var Pi = (
2860
2905
  if (this.bumpSpace(), !this.bumpIf(","))
2861
2906
  return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS, L(O, I({}, O)));
2862
2907
  this.bumpSpace();
2863
- var k = this.parseIdentifierIfPossible(), X = 0;
2864
- if (o !== "select" && k.value === "offset") {
2908
+ var U = this.parseIdentifierIfPossible(), q = 0;
2909
+ if (o !== "select" && U.value === "offset") {
2865
2910
  if (!this.bumpIf(":"))
2866
2911
  return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2867
2912
  this.bumpSpace();
2868
- var b = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2869
- if (b.err)
2870
- return b;
2871
- this.bumpSpace(), k = this.parseIdentifierIfPossible(), X = b.val;
2913
+ var g = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2914
+ if (g.err)
2915
+ return g;
2916
+ this.bumpSpace(), U = this.parseIdentifierIfPossible(), q = g.val;
2872
2917
  }
2873
- var ne = this.tryParsePluralOrSelectOptions(t, o, n, k);
2874
- if (ne.err)
2875
- return ne;
2876
- var _ = this.tryParseArgumentClose(i);
2877
- if (_.err)
2878
- return _;
2879
- var W = L(i, this.clonePosition());
2918
+ var re = this.tryParsePluralOrSelectOptions(t, o, n, U);
2919
+ if (re.err)
2920
+ return re;
2921
+ var T = this.tryParseArgumentClose(i);
2922
+ if (T.err)
2923
+ return T;
2924
+ var z = L(i, this.clonePosition());
2880
2925
  return o === "select" ? {
2881
2926
  val: {
2882
- type: G.select,
2927
+ type: j.select,
2883
2928
  value: r,
2884
- options: vn(ne.val),
2885
- location: W
2929
+ options: vn(re.val),
2930
+ location: z
2886
2931
  },
2887
2932
  err: null
2888
2933
  } : {
2889
2934
  val: {
2890
- type: G.plural,
2935
+ type: j.plural,
2891
2936
  value: r,
2892
- options: vn(ne.val),
2893
- offset: X,
2937
+ options: vn(re.val),
2938
+ offset: q,
2894
2939
  pluralType: o === "plural" ? "cardinal" : "ordinal",
2895
- location: W
2940
+ location: z
2896
2941
  },
2897
2942
  err: null
2898
2943
  };
2899
2944
  }
2900
2945
  default:
2901
- return this.error(R.INVALID_ARGUMENT_TYPE, L(l, c));
2946
+ return this.error(R.INVALID_ARGUMENT_TYPE, L(s, c));
2902
2947
  }
2903
2948
  }, e.prototype.tryParseArgumentClose = function(t) {
2904
2949
  return this.isEOF() || this.char() !== 125 ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -2940,7 +2985,7 @@ var Pi = (
2940
2985
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2941
2986
  var r = [];
2942
2987
  try {
2943
- r = gi(t);
2988
+ r = vi(t);
2944
2989
  } catch (i) {
2945
2990
  return this.error(R.INVALID_NUMBER_SKELETON, n);
2946
2991
  }
@@ -2949,55 +2994,55 @@ var Pi = (
2949
2994
  type: Fe.number,
2950
2995
  tokens: r,
2951
2996
  location: n,
2952
- parsedOptions: this.shouldParseSkeletons ? Ei(r) : {}
2997
+ parsedOptions: this.shouldParseSkeletons ? Bi(r) : {}
2953
2998
  },
2954
2999
  err: null
2955
3000
  };
2956
3001
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2957
- for (var a, l = !1, o = [], c = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
3002
+ for (var a, s = !1, o = [], c = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
2958
3003
  if (u.length === 0) {
2959
- var b = this.clonePosition();
3004
+ var g = this.clonePosition();
2960
3005
  if (n !== "select" && this.bumpIf("=")) {
2961
- var y = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR, R.INVALID_PLURAL_ARGUMENT_SELECTOR);
2962
- if (y.err)
2963
- return y;
2964
- d = L(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
3006
+ var b = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR, R.INVALID_PLURAL_ARGUMENT_SELECTOR);
3007
+ if (b.err)
3008
+ return b;
3009
+ f = L(g, this.clonePosition()), u = this.message.slice(g.offset, this.offset());
2965
3010
  } else
2966
3011
  break;
2967
3012
  }
2968
3013
  if (c.has(u))
2969
- return this.error(n === "select" ? R.DUPLICATE_SELECT_ARGUMENT_SELECTOR : R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
2970
- u === "other" && (l = !0), this.bumpSpace();
2971
- var T = this.clonePosition();
3014
+ return this.error(n === "select" ? R.DUPLICATE_SELECT_ARGUMENT_SELECTOR : R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3015
+ u === "other" && (s = !0), this.bumpSpace();
3016
+ var B = this.clonePosition();
2972
3017
  if (!this.bumpIf("{"))
2973
3018
  return this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
2974
- var _ = this.parseMessage(t + 1, n, r);
2975
- if (_.err)
2976
- return _;
2977
- var H = this.tryParseArgumentClose(T);
2978
- if (H.err)
2979
- return H;
3019
+ var T = this.parseMessage(t + 1, n, r);
3020
+ if (T.err)
3021
+ return T;
3022
+ var S = this.tryParseArgumentClose(B);
3023
+ if (S.err)
3024
+ return S;
2980
3025
  o.push([
2981
3026
  u,
2982
3027
  {
2983
- value: _.val,
2984
- location: L(T, this.clonePosition())
3028
+ value: T.val,
3029
+ location: L(B, this.clonePosition())
2985
3030
  }
2986
- ]), c.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, d = a.location;
3031
+ ]), c.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, f = a.location;
2987
3032
  }
2988
- return o.length === 0 ? this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR : R.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(R.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3033
+ return o.length === 0 ? this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR : R.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(R.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
2989
3034
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
2990
3035
  var r = 1, i = this.clonePosition();
2991
3036
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
2992
- for (var a = !1, l = 0; !this.isEOF(); ) {
3037
+ for (var a = !1, s = 0; !this.isEOF(); ) {
2993
3038
  var o = this.char();
2994
3039
  if (o >= 48 && o <= 57)
2995
- a = !0, l = l * 10 + (o - 48), this.bump();
3040
+ a = !0, s = s * 10 + (o - 48), this.bump();
2996
3041
  else
2997
3042
  break;
2998
3043
  }
2999
3044
  var c = L(i, this.clonePosition());
3000
- return a ? (l *= r, Li(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
3045
+ return a ? (s *= r, Ii(s) ? { val: s, err: null } : this.error(n, c)) : this.error(t, c);
3001
3046
  }, e.prototype.offset = function() {
3002
3047
  return this.position.offset;
3003
3048
  }, e.prototype.isEOF = function() {
@@ -3066,16 +3111,16 @@ var Pi = (
3066
3111
  function Qt(e) {
3067
3112
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3068
3113
  }
3069
- function Di(e) {
3114
+ function Gi(e) {
3070
3115
  return Qt(e) || e === 47;
3071
3116
  }
3072
- function Ui(e) {
3117
+ function $i(e) {
3073
3118
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3074
3119
  }
3075
3120
  function tr(e) {
3076
3121
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3077
3122
  }
3078
- function Fi(e) {
3123
+ function ji(e) {
3079
3124
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3080
3125
  }
3081
3126
  function Jt(e) {
@@ -3083,12 +3128,13 @@ function Jt(e) {
3083
3128
  if (delete t.location, Xn(t) || zn(t))
3084
3129
  for (var n in t.options)
3085
3130
  delete t.options[n].location, Jt(t.options[n].value);
3086
- else jn(t) && Zn(t.style) || (kn(t) || Vn(t)) && zt(t.style) ? delete t.style.location : Wn(t) && Jt(t.children);
3131
+ else
3132
+ jn(t) && Zn(t.style) || (kn(t) || Vn(t)) && zt(t.style) ? delete t.style.location : Wn(t) && Jt(t.children);
3087
3133
  });
3088
3134
  }
3089
- function Gi(e, t) {
3135
+ function ki(e, t) {
3090
3136
  t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3091
- var n = new Pi(e, t).parse();
3137
+ var n = new Fi(e, t).parse();
3092
3138
  if (n.err) {
3093
3139
  var r = SyntaxError(R[n.err.kind]);
3094
3140
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
@@ -3099,10 +3145,10 @@ var Ge;
3099
3145
  (function(e) {
3100
3146
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3101
3147
  })(Ge || (Ge = {}));
3102
- var Et = (
3148
+ var _t = (
3103
3149
  /** @class */
3104
3150
  function(e) {
3105
- vt(t, e);
3151
+ xt(t, e);
3106
3152
  function t(n, r, i) {
3107
3153
  var a = e.call(this, n) || this;
3108
3154
  return a.code = r, a.originalMessage = i, a;
@@ -3114,149 +3160,149 @@ var Et = (
3114
3160
  ), xn = (
3115
3161
  /** @class */
3116
3162
  function(e) {
3117
- vt(t, e);
3163
+ xt(t, e);
3118
3164
  function t(n, r, i, a) {
3119
3165
  return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, a) || this;
3120
3166
  }
3121
3167
  return t;
3122
- }(Et)
3123
- ), $i = (
3168
+ }(_t)
3169
+ ), Vi = (
3124
3170
  /** @class */
3125
3171
  function(e) {
3126
- vt(t, e);
3172
+ xt(t, e);
3127
3173
  function t(n, r, i) {
3128
3174
  return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ge.INVALID_VALUE, i) || this;
3129
3175
  }
3130
3176
  return t;
3131
- }(Et)
3132
- ), ji = (
3177
+ }(_t)
3178
+ ), Xi = (
3133
3179
  /** @class */
3134
3180
  function(e) {
3135
- vt(t, e);
3181
+ xt(t, e);
3136
3182
  function t(n, r) {
3137
3183
  return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ge.MISSING_VALUE, r) || this;
3138
3184
  }
3139
3185
  return t;
3140
- }(Et)
3141
- ), te;
3186
+ }(_t)
3187
+ ), ne;
3142
3188
  (function(e) {
3143
3189
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3144
- })(te || (te = {}));
3145
- function ki(e) {
3190
+ })(ne || (ne = {}));
3191
+ function zi(e) {
3146
3192
  return e.length < 2 ? e : e.reduce(function(t, n) {
3147
3193
  var r = t[t.length - 1];
3148
- return !r || r.type !== te.literal || n.type !== te.literal ? t.push(n) : r.value += n.value, t;
3194
+ return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
3149
3195
  }, []);
3150
3196
  }
3151
- function Vi(e) {
3197
+ function Wi(e) {
3152
3198
  return typeof e == "function";
3153
3199
  }
3154
- function ht(e, t, n, r, i, a, l) {
3200
+ function dt(e, t, n, r, i, a, s) {
3155
3201
  if (e.length === 1 && pn(e[0]))
3156
3202
  return [
3157
3203
  {
3158
- type: te.literal,
3204
+ type: ne.literal,
3159
3205
  value: e[0].value
3160
3206
  }
3161
3207
  ];
3162
3208
  for (var o = [], c = 0, u = e; c < u.length; c++) {
3163
- var d = u[c];
3164
- if (pn(d)) {
3209
+ var f = u[c];
3210
+ if (pn(f)) {
3165
3211
  o.push({
3166
- type: te.literal,
3167
- value: d.value
3212
+ type: ne.literal,
3213
+ value: f.value
3168
3214
  });
3169
3215
  continue;
3170
3216
  }
3171
- if (fi(d)) {
3217
+ if (mi(f)) {
3172
3218
  typeof a == "number" && o.push({
3173
- type: te.literal,
3219
+ type: ne.literal,
3174
3220
  value: n.getNumberFormat(t).format(a)
3175
3221
  });
3176
3222
  continue;
3177
3223
  }
3178
- var b = d.value;
3179
- if (!(i && b in i))
3180
- throw new ji(b, l);
3181
- var y = i[b];
3182
- if (hi(d)) {
3183
- (!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), o.push({
3184
- type: typeof y == "string" ? te.literal : te.object,
3185
- value: y
3224
+ var g = f.value;
3225
+ if (!(i && g in i))
3226
+ throw new Xi(g, s);
3227
+ var b = i[g];
3228
+ if (pi(f)) {
3229
+ (!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), o.push({
3230
+ type: typeof b == "string" ? ne.literal : ne.object,
3231
+ value: b
3186
3232
  });
3187
3233
  continue;
3188
3234
  }
3189
- if (kn(d)) {
3190
- var T = typeof d.style == "string" ? r.date[d.style] : zt(d.style) ? d.style.parsedOptions : void 0;
3235
+ if (kn(f)) {
3236
+ var B = typeof f.style == "string" ? r.date[f.style] : zt(f.style) ? f.style.parsedOptions : void 0;
3191
3237
  o.push({
3192
- type: te.literal,
3193
- value: n.getDateTimeFormat(t, T).format(y)
3238
+ type: ne.literal,
3239
+ value: n.getDateTimeFormat(t, B).format(b)
3194
3240
  });
3195
3241
  continue;
3196
3242
  }
3197
- if (Vn(d)) {
3198
- var T = typeof d.style == "string" ? r.time[d.style] : zt(d.style) ? d.style.parsedOptions : r.time.medium;
3243
+ if (Vn(f)) {
3244
+ var B = typeof f.style == "string" ? r.time[f.style] : zt(f.style) ? f.style.parsedOptions : r.time.medium;
3199
3245
  o.push({
3200
- type: te.literal,
3201
- value: n.getDateTimeFormat(t, T).format(y)
3246
+ type: ne.literal,
3247
+ value: n.getDateTimeFormat(t, B).format(b)
3202
3248
  });
3203
3249
  continue;
3204
3250
  }
3205
- if (jn(d)) {
3206
- var T = typeof d.style == "string" ? r.number[d.style] : Zn(d.style) ? d.style.parsedOptions : void 0;
3207
- T && T.scale && (y = y * (T.scale || 1)), o.push({
3208
- type: te.literal,
3209
- value: n.getNumberFormat(t, T).format(y)
3251
+ if (jn(f)) {
3252
+ var B = typeof f.style == "string" ? r.number[f.style] : Zn(f.style) ? f.style.parsedOptions : void 0;
3253
+ B && B.scale && (b = b * (B.scale || 1)), o.push({
3254
+ type: ne.literal,
3255
+ value: n.getNumberFormat(t, B).format(b)
3210
3256
  });
3211
3257
  continue;
3212
3258
  }
3213
- if (Wn(d)) {
3214
- var _ = d.children, H = d.value, B = i[H];
3215
- if (!Vi(B))
3216
- throw new $i(H, "function", l);
3217
- var A = ht(_, t, n, r, i, a), P = B(A.map(function(X) {
3218
- return X.value;
3259
+ if (Wn(f)) {
3260
+ var T = f.children, S = f.value, _ = i[S];
3261
+ if (!Wi(_))
3262
+ throw new Vi(S, "function", s);
3263
+ var C = dt(T, t, n, r, i, a), D = _(C.map(function(q) {
3264
+ return q.value;
3219
3265
  }));
3220
- Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(X) {
3266
+ Array.isArray(D) || (D = [D]), o.push.apply(o, D.map(function(q) {
3221
3267
  return {
3222
- type: typeof X == "string" ? te.literal : te.object,
3223
- value: X
3268
+ type: typeof q == "string" ? ne.literal : ne.object,
3269
+ value: q
3224
3270
  };
3225
3271
  }));
3226
3272
  }
3227
- if (Xn(d)) {
3228
- var O = d.options[y] || d.options.other;
3273
+ if (Xn(f)) {
3274
+ var O = f.options[b] || f.options.other;
3229
3275
  if (!O)
3230
- throw new xn(d.value, y, Object.keys(d.options), l);
3231
- o.push.apply(o, ht(O.value, t, n, r, i));
3276
+ throw new xn(f.value, b, Object.keys(f.options), s);
3277
+ o.push.apply(o, dt(O.value, t, n, r, i));
3232
3278
  continue;
3233
3279
  }
3234
- if (zn(d)) {
3235
- var O = d.options["=".concat(y)];
3280
+ if (zn(f)) {
3281
+ var O = f.options["=".concat(b)];
3236
3282
  if (!O) {
3237
3283
  if (!Intl.PluralRules)
3238
- throw new Et(`Intl.PluralRules is not available in this environment.
3284
+ throw new _t(`Intl.PluralRules is not available in this environment.
3239
3285
  Try polyfilling it using "@formatjs/intl-pluralrules"
3240
- `, Ge.MISSING_INTL_API, l);
3241
- var k = n.getPluralRules(t, { type: d.pluralType }).select(y - (d.offset || 0));
3242
- O = d.options[k] || d.options.other;
3286
+ `, Ge.MISSING_INTL_API, s);
3287
+ var U = n.getPluralRules(t, { type: f.pluralType }).select(b - (f.offset || 0));
3288
+ O = f.options[U] || f.options.other;
3243
3289
  }
3244
3290
  if (!O)
3245
- throw new xn(d.value, y, Object.keys(d.options), l);
3246
- o.push.apply(o, ht(O.value, t, n, r, i, y - (d.offset || 0)));
3291
+ throw new xn(f.value, b, Object.keys(f.options), s);
3292
+ o.push.apply(o, dt(O.value, t, n, r, i, b - (f.offset || 0)));
3247
3293
  continue;
3248
3294
  }
3249
3295
  }
3250
- return ki(o);
3296
+ return zi(o);
3251
3297
  }
3252
- function Xi(e, t) {
3298
+ function Zi(e, t) {
3253
3299
  return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3254
3300
  return n[r] = I(I({}, e[r]), t[r] || {}), n;
3255
3301
  }, {})) : e;
3256
3302
  }
3257
- function zi(e, t) {
3303
+ function qi(e, t) {
3258
3304
  return t ? Object.keys(e).reduce(function(n, r) {
3259
- return n[r] = Xi(e[r], t[r]), n;
3305
+ return n[r] = Zi(e[r], t[r]), n;
3260
3306
  }, I({}, e)) : e;
3261
3307
  }
3262
3308
  function Gt(e) {
@@ -3273,7 +3319,7 @@ function Gt(e) {
3273
3319
  }
3274
3320
  };
3275
3321
  }
3276
- function Wi(e) {
3322
+ function Qi(e) {
3277
3323
  return e === void 0 && (e = {
3278
3324
  number: {},
3279
3325
  dateTime: {},
@@ -3305,7 +3351,7 @@ function Wi(e) {
3305
3351
  })
3306
3352
  };
3307
3353
  }
3308
- var Zi = (
3354
+ var Ji = (
3309
3355
  /** @class */
3310
3356
  function() {
3311
3357
  function e(t, n, r, i) {
@@ -3319,12 +3365,12 @@ var Zi = (
3319
3365
  var u = a.formatToParts(c);
3320
3366
  if (u.length === 1)
3321
3367
  return u[0].value;
3322
- var d = u.reduce(function(b, y) {
3323
- return !b.length || y.type !== te.literal || typeof b[b.length - 1] != "string" ? b.push(y.value) : b[b.length - 1] += y.value, b;
3368
+ var f = u.reduce(function(g, b) {
3369
+ return !g.length || b.type !== ne.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
3324
3370
  }, []);
3325
- return d.length <= 1 ? d[0] || "" : d;
3371
+ return f.length <= 1 ? f[0] || "" : f;
3326
3372
  }, this.formatToParts = function(c) {
3327
- return ht(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
3373
+ return dt(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
3328
3374
  }, this.resolvedOptions = function() {
3329
3375
  var c;
3330
3376
  return {
@@ -3335,15 +3381,15 @@ var Zi = (
3335
3381
  }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3336
3382
  if (this.message = t, !e.__parse)
3337
3383
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3338
- var l = i || {};
3339
- l.formatters;
3340
- var o = ii(l, ["formatters"]);
3384
+ var s = i || {};
3385
+ s.formatters;
3386
+ var o = si(s, ["formatters"]);
3341
3387
  this.ast = e.__parse(t, I(I({}, o), { locale: this.resolvedLocale }));
3342
3388
  } else
3343
3389
  this.ast = t;
3344
3390
  if (!Array.isArray(this.ast))
3345
3391
  throw new TypeError("A message must be provided as a String or AST.");
3346
- this.formats = zi(e.formats, r), this.formatters = i && i.formatters || Wi(this.formatterCache);
3392
+ this.formats = qi(e.formats, r), this.formatters = i && i.formatters || Qi(this.formatterCache);
3347
3393
  }
3348
3394
  return Object.defineProperty(e, "defaultLocale", {
3349
3395
  get: function() {
@@ -3356,7 +3402,7 @@ var Zi = (
3356
3402
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3357
3403
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3358
3404
  }
3359
- }, e.__parse = Gi, e.formats = {
3405
+ }, e.__parse = ki, e.formats = {
3360
3406
  number: {
3361
3407
  integer: {
3362
3408
  maximumFractionDigits: 0
@@ -3417,7 +3463,7 @@ var Zi = (
3417
3463
  }, e;
3418
3464
  }()
3419
3465
  );
3420
- function qi(e, t) {
3466
+ function Yi(e, t) {
3421
3467
  if (t == null)
3422
3468
  return;
3423
3469
  if (t in e)
@@ -3438,36 +3484,36 @@ function qi(e, t) {
3438
3484
  r = void 0;
3439
3485
  return r;
3440
3486
  }
3441
- const Se = {}, Qi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), nr = (e, t) => {
3487
+ const Ae = {}, Ki = (e, t, n) => n && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = n), n), nr = (e, t) => {
3442
3488
  if (t == null)
3443
3489
  return;
3444
- if (t in Se && e in Se[t])
3445
- return Se[t][e];
3446
- const n = xt(t);
3490
+ if (t in Ae && e in Ae[t])
3491
+ return Ae[t][e];
3492
+ const n = Bt(t);
3447
3493
  for (let r = 0; r < n.length; r++) {
3448
- const i = n[r], a = Yi(i, e);
3494
+ const i = n[r], a = ta(i, e);
3449
3495
  if (a)
3450
- return Qi(e, t, a);
3496
+ return Ki(e, t, a);
3451
3497
  }
3452
3498
  };
3453
3499
  let an;
3454
- const rt = yt({});
3455
- function Ji(e) {
3500
+ const rt = Et({});
3501
+ function ea(e) {
3456
3502
  return an[e] || null;
3457
3503
  }
3458
3504
  function rr(e) {
3459
3505
  return e in an;
3460
3506
  }
3461
- function Yi(e, t) {
3507
+ function ta(e, t) {
3462
3508
  if (!rr(e))
3463
3509
  return null;
3464
- const n = Ji(e);
3465
- return qi(n, t);
3510
+ const n = ea(e);
3511
+ return Yi(n, t);
3466
3512
  }
3467
- function Ki(e) {
3513
+ function na(e) {
3468
3514
  if (e == null)
3469
3515
  return;
3470
- const t = xt(e);
3516
+ const t = Bt(e);
3471
3517
  for (let n = 0; n < t.length; n++) {
3472
3518
  const r = t[n];
3473
3519
  if (rr(r))
@@ -3475,47 +3521,47 @@ function Ki(e) {
3475
3521
  }
3476
3522
  }
3477
3523
  function ir(e, ...t) {
3478
- delete Se[e], rt.update((n) => (n[e] = ri.all([n[e] || {}, ...t]), n));
3524
+ delete Ae[e], rt.update((n) => (n[e] = oi.all([n[e] || {}, ...t]), n));
3479
3525
  }
3480
3526
  ke(
3481
3527
  [rt],
3482
3528
  ([e]) => Object.keys(e)
3483
3529
  );
3484
3530
  rt.subscribe((e) => an = e);
3485
- const ft = {};
3486
- function ea(e, t) {
3487
- ft[e].delete(t), ft[e].size === 0 && delete ft[e];
3531
+ const pt = {};
3532
+ function ra(e, t) {
3533
+ pt[e].delete(t), pt[e].size === 0 && delete pt[e];
3488
3534
  }
3489
3535
  function ar(e) {
3490
- return ft[e];
3536
+ return pt[e];
3491
3537
  }
3492
- function ta(e) {
3493
- return xt(e).map((t) => {
3538
+ function ia(e) {
3539
+ return Bt(e).map((t) => {
3494
3540
  const n = ar(t);
3495
3541
  return [t, n ? [...n] : []];
3496
3542
  }).filter(([, t]) => t.length > 0);
3497
3543
  }
3498
3544
  function Yt(e) {
3499
- return e == null ? !1 : xt(e).some(
3545
+ return e == null ? !1 : Bt(e).some(
3500
3546
  (t) => {
3501
3547
  var n;
3502
3548
  return (n = ar(t)) == null ? void 0 : n.size;
3503
3549
  }
3504
3550
  );
3505
3551
  }
3506
- function na(e, t) {
3552
+ function aa(e, t) {
3507
3553
  return Promise.all(
3508
- t.map((r) => (ea(e, r), r().then((i) => i.default || i)))
3554
+ t.map((r) => (ra(e, r), r().then((i) => i.default || i)))
3509
3555
  ).then((r) => ir(e, ...r));
3510
3556
  }
3511
3557
  const Ye = {};
3512
3558
  function or(e) {
3513
3559
  if (!Yt(e))
3514
3560
  return e in Ye ? Ye[e] : Promise.resolve();
3515
- const t = ta(e);
3561
+ const t = ia(e);
3516
3562
  return Ye[e] = Promise.all(
3517
3563
  t.map(
3518
- ([n, r]) => na(n, r)
3564
+ ([n, r]) => aa(n, r)
3519
3565
  )
3520
3566
  ).then(() => {
3521
3567
  if (Yt(e))
@@ -3523,7 +3569,7 @@ function or(e) {
3523
3569
  delete Ye[e];
3524
3570
  }), Ye[e];
3525
3571
  }
3526
- const ra = {
3572
+ const oa = {
3527
3573
  number: {
3528
3574
  scientific: { notation: "scientific" },
3529
3575
  engineering: { notation: "engineering" },
@@ -3552,77 +3598,77 @@ const ra = {
3552
3598
  timeZoneName: "short"
3553
3599
  }
3554
3600
  }
3555
- }, ia = {
3601
+ }, sa = {
3556
3602
  fallbackLocale: null,
3557
3603
  loadingDelay: 200,
3558
- formats: ra,
3604
+ formats: oa,
3559
3605
  warnOnMissingMessages: !0,
3560
3606
  handleMissingMessage: void 0,
3561
3607
  ignoreTag: !0
3562
- }, aa = ia;
3608
+ }, la = sa;
3563
3609
  function $e() {
3564
- return aa;
3610
+ return la;
3565
3611
  }
3566
- const $t = yt(!1);
3567
- var oa = Object.defineProperty, sa = Object.defineProperties, la = Object.getOwnPropertyDescriptors, _n = Object.getOwnPropertySymbols, ua = Object.prototype.hasOwnProperty, ca = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? oa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ha = (e, t) => {
3612
+ const $t = Et(!1);
3613
+ var ua = Object.defineProperty, ca = Object.defineProperties, ha = Object.getOwnPropertyDescriptors, _n = Object.getOwnPropertySymbols, fa = Object.prototype.hasOwnProperty, da = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? ua(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, pa = (e, t) => {
3568
3614
  for (var n in t || (t = {}))
3569
- ua.call(t, n) && Bn(e, n, t[n]);
3615
+ fa.call(t, n) && Bn(e, n, t[n]);
3570
3616
  if (_n)
3571
3617
  for (var n of _n(t))
3572
- ca.call(t, n) && Bn(e, n, t[n]);
3618
+ da.call(t, n) && Bn(e, n, t[n]);
3573
3619
  return e;
3574
- }, fa = (e, t) => sa(e, la(t));
3620
+ }, ma = (e, t) => ca(e, ha(t));
3575
3621
  let Kt;
3576
- const gt = yt(null);
3622
+ const yt = Et(null);
3577
3623
  function Tn(e) {
3578
3624
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3579
3625
  }
3580
- function xt(e, t = $e().fallbackLocale) {
3626
+ function Bt(e, t = $e().fallbackLocale) {
3581
3627
  const n = Tn(e);
3582
3628
  return t ? [.../* @__PURE__ */ new Set([...n, ...Tn(t)])] : n;
3583
3629
  }
3584
- function He() {
3630
+ function Oe() {
3585
3631
  return Kt != null ? Kt : void 0;
3586
3632
  }
3587
- gt.subscribe((e) => {
3633
+ yt.subscribe((e) => {
3588
3634
  Kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3589
3635
  });
3590
- const da = (e) => {
3591
- if (e && Ki(e) && Yt(e)) {
3636
+ const ga = (e) => {
3637
+ if (e && na(e) && Yt(e)) {
3592
3638
  const { loadingDelay: t } = $e();
3593
3639
  let n;
3594
- return typeof window != "undefined" && He() != null && t ? n = window.setTimeout(
3640
+ return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
3595
3641
  () => $t.set(!0),
3596
3642
  t
3597
3643
  ) : $t.set(!0), or(e).then(() => {
3598
- gt.set(e);
3644
+ yt.set(e);
3599
3645
  }).finally(() => {
3600
3646
  clearTimeout(n), $t.set(!1);
3601
3647
  });
3602
3648
  }
3603
- return gt.set(e);
3604
- }, Ve = fa(ha({}, gt), {
3605
- set: da
3606
- }), _t = (e) => {
3649
+ return yt.set(e);
3650
+ }, Ve = ma(pa({}, yt), {
3651
+ set: ga
3652
+ }), Tt = (e) => {
3607
3653
  const t = /* @__PURE__ */ Object.create(null);
3608
3654
  return (r) => {
3609
3655
  const i = JSON.stringify(r);
3610
3656
  return i in t ? t[i] : t[i] = e(r);
3611
3657
  };
3612
3658
  };
3613
- var pa = Object.defineProperty, bt = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, wn = (e, t, n) => t in e ? pa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, on = (e, t) => {
3659
+ var ba = Object.defineProperty, vt = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, wn = (e, t, n) => t in e ? ba(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, on = (e, t) => {
3614
3660
  for (var n in t || (t = {}))
3615
3661
  sr.call(t, n) && wn(e, n, t[n]);
3616
- if (bt)
3617
- for (var n of bt(t))
3662
+ if (vt)
3663
+ for (var n of vt(t))
3618
3664
  lr.call(t, n) && wn(e, n, t[n]);
3619
3665
  return e;
3620
3666
  }, Xe = (e, t) => {
3621
3667
  var n = {};
3622
3668
  for (var r in e)
3623
3669
  sr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3624
- if (e != null && bt)
3625
- for (var r of bt(e))
3670
+ if (e != null && vt)
3671
+ for (var r of vt(e))
3626
3672
  t.indexOf(r) < 0 && lr.call(e, r) && (n[r] = e[r]);
3627
3673
  return n;
3628
3674
  };
@@ -3631,21 +3677,21 @@ const nt = (e, t) => {
3631
3677
  if (e in n && t in n[e])
3632
3678
  return n[e][t];
3633
3679
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3634
- }, ma = _t(
3680
+ }, ya = Tt(
3635
3681
  (e) => {
3636
3682
  var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3637
3683
  if (n == null)
3638
3684
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3639
3685
  return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
3640
3686
  }
3641
- ), ga = _t(
3687
+ ), va = Tt(
3642
3688
  (e) => {
3643
3689
  var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3644
3690
  if (n == null)
3645
3691
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3646
3692
  return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
3647
3693
  }
3648
- ), ba = _t(
3694
+ ), Ea = Tt(
3649
3695
  (e) => {
3650
3696
  var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3651
3697
  if (n == null)
@@ -3654,73 +3700,73 @@ const nt = (e, t) => {
3654
3700
  );
3655
3701
  return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
3656
3702
  }
3657
- ), ya = (e = {}) => {
3703
+ ), xa = (e = {}) => {
3658
3704
  var t = e, {
3659
- locale: n = He()
3705
+ locale: n = Oe()
3660
3706
  } = t, r = Xe(t, [
3661
3707
  "locale"
3662
3708
  ]);
3663
- return ma(on({ locale: n }, r));
3664
- }, va = (e = {}) => {
3709
+ return ya(on({ locale: n }, r));
3710
+ }, _a = (e = {}) => {
3665
3711
  var t = e, {
3666
- locale: n = He()
3712
+ locale: n = Oe()
3667
3713
  } = t, r = Xe(t, [
3668
3714
  "locale"
3669
3715
  ]);
3670
- return ga(on({ locale: n }, r));
3671
- }, Ea = (e = {}) => {
3716
+ return va(on({ locale: n }, r));
3717
+ }, Ba = (e = {}) => {
3672
3718
  var t = e, {
3673
- locale: n = He()
3719
+ locale: n = Oe()
3674
3720
  } = t, r = Xe(t, [
3675
3721
  "locale"
3676
3722
  ]);
3677
- return ba(on({ locale: n }, r));
3678
- }, xa = _t(
3723
+ return Ea(on({ locale: n }, r));
3724
+ }, Ta = Tt(
3679
3725
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3680
- (e, t = He()) => new Zi(e, t, $e().formats, {
3726
+ (e, t = Oe()) => new Ji(e, t, $e().formats, {
3681
3727
  ignoreTag: $e().ignoreTag
3682
3728
  })
3683
- ), _a = (e, t = {}) => {
3729
+ ), wa = (e, t = {}) => {
3684
3730
  var n, r, i, a;
3685
- let l = t;
3686
- typeof e == "object" && (l = e, e = l.id);
3731
+ let s = t;
3732
+ typeof e == "object" && (s = e, e = s.id);
3687
3733
  const {
3688
3734
  values: o,
3689
- locale: c = He(),
3735
+ locale: c = Oe(),
3690
3736
  default: u
3691
- } = l;
3737
+ } = s;
3692
3738
  if (c == null)
3693
3739
  throw new Error(
3694
3740
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3695
3741
  );
3696
- let d = nr(e, c);
3697
- if (!d)
3698
- d = (a = (i = (r = (n = $e()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3699
- else if (typeof d != "string")
3742
+ let f = nr(e, c);
3743
+ if (!f)
3744
+ f = (a = (i = (r = (n = $e()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
3745
+ else if (typeof f != "string")
3700
3746
  return console.warn(
3701
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3702
- ), d;
3747
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3748
+ ), f;
3703
3749
  if (!o)
3704
- return d;
3705
- let b = d;
3750
+ return f;
3751
+ let g = f;
3706
3752
  try {
3707
- b = xa(d, c).format(o);
3708
- } catch (y) {
3709
- y instanceof Error && console.warn(
3753
+ g = Ta(f, c).format(o);
3754
+ } catch (b) {
3755
+ b instanceof Error && console.warn(
3710
3756
  `[svelte-i18n] Message "${e}" has syntax error:`,
3711
- y.message
3757
+ b.message
3712
3758
  );
3713
3759
  }
3714
- return b;
3715
- }, Ba = (e, t) => Ea(t).format(e), Ta = (e, t) => va(t).format(e), wa = (e, t) => ya(t).format(e), Sa = (e, t = He()) => nr(e, t), Aa = ke([Ve, rt], () => _a);
3716
- ke([Ve], () => Ba);
3717
- ke([Ve], () => Ta);
3718
- ke([Ve], () => wa);
3719
- ke([Ve, rt], () => Sa);
3760
+ return g;
3761
+ }, Sa = (e, t) => Ba(t).format(e), Aa = (e, t) => _a(t).format(e), Ca = (e, t) => xa(t).format(e), Ha = (e, t = Oe()) => nr(e, t), Oa = ke([Ve, rt], () => wa);
3762
+ ke([Ve], () => Sa);
3763
+ ke([Ve], () => Aa);
3764
+ ke([Ve], () => Ca);
3765
+ ke([Ve, rt], () => Ha);
3720
3766
  function Sn(e, t) {
3721
3767
  ir(e, t);
3722
3768
  }
3723
- function Ca(e) {
3769
+ function Ra(e) {
3724
3770
  Ve.set(e);
3725
3771
  }
3726
3772
  const An = {
@@ -3931,35 +3977,35 @@ var en = { exports: {} };
3931
3977
  */
3932
3978
  (function(e, t) {
3933
3979
  (function(n) {
3934
- var r = n.setTimeout, i = n.clearTimeout, a = n.XMLHttpRequest, l = n.XDomainRequest, o = n.ActiveXObject, c = n.EventSource, u = n.document, d = n.Promise, b = n.fetch, y = n.Response, T = n.TextDecoder, _ = n.TextEncoder, H = n.AbortController;
3980
+ var r = n.setTimeout, i = n.clearTimeout, a = n.XMLHttpRequest, s = n.XDomainRequest, o = n.ActiveXObject, c = n.EventSource, u = n.document, f = n.Promise, g = n.fetch, b = n.Response, B = n.TextDecoder, T = n.TextEncoder, S = n.AbortController;
3935
3981
  if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
3936
3982
  u.readyState = "complete";
3937
3983
  }, !1)), a == null && o != null && (a = function() {
3938
3984
  return new o("Microsoft.XMLHTTP");
3939
3985
  }), Object.create == null && (Object.create = function(h) {
3940
- function s() {
3986
+ function l() {
3941
3987
  }
3942
- return s.prototype = h, new s();
3988
+ return l.prototype = h, new l();
3943
3989
  }), Date.now || (Date.now = function() {
3944
3990
  return (/* @__PURE__ */ new Date()).getTime();
3945
- }), H == null) {
3946
- var B = b;
3947
- b = function(h, s) {
3948
- var p = s.signal;
3949
- return B(h, { headers: s.headers, credentials: s.credentials, cache: s.cache }).then(function(f) {
3950
- var g = f.body.getReader();
3951
- return p._reader = g, p._aborted && p._reader.cancel(), {
3952
- status: f.status,
3953
- statusText: f.statusText,
3954
- headers: f.headers,
3991
+ }), S == null) {
3992
+ var _ = g;
3993
+ g = function(h, l) {
3994
+ var p = l.signal;
3995
+ return _(h, { headers: l.headers, credentials: l.credentials, cache: l.cache }).then(function(d) {
3996
+ var m = d.body.getReader();
3997
+ return p._reader = m, p._aborted && p._reader.cancel(), {
3998
+ status: d.status,
3999
+ statusText: d.statusText,
4000
+ headers: d.headers,
3955
4001
  body: {
3956
4002
  getReader: function() {
3957
- return g;
4003
+ return m;
3958
4004
  }
3959
4005
  }
3960
4006
  };
3961
4007
  });
3962
- }, H = function() {
4008
+ }, S = function() {
3963
4009
  this.signal = {
3964
4010
  _reader: null,
3965
4011
  _aborted: !1
@@ -3968,119 +4014,119 @@ var en = { exports: {} };
3968
4014
  };
3969
4015
  };
3970
4016
  }
3971
- function A() {
4017
+ function C() {
3972
4018
  this.bitsNeeded = 0, this.codePoint = 0;
3973
4019
  }
3974
- A.prototype.decode = function(h) {
3975
- function s(N, F, S) {
3976
- if (S === 1)
3977
- return N >= 128 >> F && N << F <= 2047;
3978
- if (S === 2)
3979
- return N >= 2048 >> F && N << F <= 55295 || N >= 57344 >> F && N << F <= 65535;
3980
- if (S === 3)
3981
- return N >= 65536 >> F && N << F <= 1114111;
4020
+ C.prototype.decode = function(h) {
4021
+ function l(N, G, A) {
4022
+ if (A === 1)
4023
+ return N >= 128 >> G && N << G <= 2047;
4024
+ if (A === 2)
4025
+ return N >= 2048 >> G && N << G <= 55295 || N >= 57344 >> G && N << G <= 65535;
4026
+ if (A === 3)
4027
+ return N >= 65536 >> G && N << G <= 1114111;
3982
4028
  throw new Error();
3983
4029
  }
3984
- function p(N, F) {
4030
+ function p(N, G) {
3985
4031
  if (N === 6 * 1)
3986
- return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
4032
+ return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
3987
4033
  if (N === 6 * 2)
3988
- return F > 15 ? 3 : 2;
4034
+ return G > 15 ? 3 : 2;
3989
4035
  if (N === 6 * 3)
3990
4036
  return 3;
3991
4037
  throw new Error();
3992
4038
  }
3993
- for (var f = 65533, g = "", v = this.bitsNeeded, x = this.codePoint, E = 0; E < h.length; E += 1) {
3994
- var w = h[E];
3995
- v !== 0 && (w < 128 || w > 191 || !s(x << 6 | w & 63, v - 6, p(v, x))) && (v = 0, x = f, g += String.fromCharCode(x)), v === 0 ? (w >= 0 && w <= 127 ? (v = 0, x = w) : w >= 192 && w <= 223 ? (v = 6 * 1, x = w & 31) : w >= 224 && w <= 239 ? (v = 6 * 2, x = w & 15) : w >= 240 && w <= 247 ? (v = 6 * 3, x = w & 7) : (v = 0, x = f), v !== 0 && !s(x, v, p(v, x)) && (v = 0, x = f)) : (v -= 6, x = x << 6 | w & 63), v === 0 && (x <= 65535 ? g += String.fromCharCode(x) : (g += String.fromCharCode(55296 + (x - 65535 - 1 >> 10)), g += String.fromCharCode(56320 + (x - 65535 - 1 & 1023))));
4039
+ for (var d = 65533, m = "", y = this.bitsNeeded, x = this.codePoint, v = 0; v < h.length; v += 1) {
4040
+ var w = h[v];
4041
+ y !== 0 && (w < 128 || w > 191 || !l(x << 6 | w & 63, y - 6, p(y, x))) && (y = 0, x = d, m += String.fromCharCode(x)), y === 0 ? (w >= 0 && w <= 127 ? (y = 0, x = w) : w >= 192 && w <= 223 ? (y = 6 * 1, x = w & 31) : w >= 224 && w <= 239 ? (y = 6 * 2, x = w & 15) : w >= 240 && w <= 247 ? (y = 6 * 3, x = w & 7) : (y = 0, x = d), y !== 0 && !l(x, y, p(y, x)) && (y = 0, x = d)) : (y -= 6, x = x << 6 | w & 63), y === 0 && (x <= 65535 ? m += String.fromCharCode(x) : (m += String.fromCharCode(55296 + (x - 65535 - 1 >> 10)), m += String.fromCharCode(56320 + (x - 65535 - 1 & 1023))));
3996
4042
  }
3997
- return this.bitsNeeded = v, this.codePoint = x, g;
4043
+ return this.bitsNeeded = y, this.codePoint = x, m;
3998
4044
  };
3999
- var P = function() {
4045
+ var D = function() {
4000
4046
  try {
4001
- return new T().decode(new _().encode("test"), { stream: !0 }) === "test";
4047
+ return new B().decode(new T().encode("test"), { stream: !0 }) === "test";
4002
4048
  } catch (h) {
4003
4049
  console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
4004
4050
  }
4005
4051
  return !1;
4006
4052
  };
4007
- (T == null || _ == null || !P()) && (T = A);
4053
+ (B == null || T == null || !D()) && (B = C);
4008
4054
  var O = function() {
4009
4055
  };
4010
- function k(h) {
4056
+ function U(h) {
4011
4057
  this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = O, this.onload = O, this.onerror = O, this.onreadystatechange = O, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = O;
4012
4058
  }
4013
- k.prototype.open = function(h, s) {
4059
+ U.prototype.open = function(h, l) {
4014
4060
  this._abort(!0);
4015
- var p = this, f = this._xhr, g = 1, v = 0;
4016
- this._abort = function(S) {
4017
- p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (g === 1 || g === 2 || g === 3) && (g = 4, f.onload = O, f.onerror = O, f.onabort = O, f.onprogress = O, f.onreadystatechange = O, f.abort(), v !== 0 && (i(v), v = 0), S || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), g = 0;
4061
+ var p = this, d = this._xhr, m = 1, y = 0;
4062
+ this._abort = function(A) {
4063
+ p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (m === 1 || m === 2 || m === 3) && (m = 4, d.onload = O, d.onerror = O, d.onabort = O, d.onprogress = O, d.onreadystatechange = O, d.abort(), y !== 0 && (i(y), y = 0), A || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), m = 0;
4018
4064
  };
4019
4065
  var x = function() {
4020
- if (g === 1) {
4021
- var S = 0, j = "", ve = void 0;
4022
- if ("contentType" in f)
4023
- S = 200, j = "OK", ve = f.contentType;
4066
+ if (m === 1) {
4067
+ var A = 0, V = "", xe = void 0;
4068
+ if ("contentType" in d)
4069
+ A = 200, V = "OK", xe = d.contentType;
4024
4070
  else
4025
4071
  try {
4026
- S = f.status, j = f.statusText, ve = f.getResponseHeader("Content-Type");
4072
+ A = d.status, V = d.statusText, xe = d.getResponseHeader("Content-Type");
4027
4073
  } catch (Qe) {
4028
- S = 0, j = "", ve = void 0;
4074
+ A = 0, V = "", xe = void 0;
4029
4075
  }
4030
- S !== 0 && (g = 2, p.readyState = 2, p.status = S, p.statusText = j, p._contentType = ve, p.onreadystatechange());
4076
+ A !== 0 && (m = 2, p.readyState = 2, p.status = A, p.statusText = V, p._contentType = xe, p.onreadystatechange());
4031
4077
  }
4032
- }, E = function() {
4033
- if (x(), g === 2 || g === 3) {
4034
- g = 3;
4035
- var S = "";
4078
+ }, v = function() {
4079
+ if (x(), m === 2 || m === 3) {
4080
+ m = 3;
4081
+ var A = "";
4036
4082
  try {
4037
- S = f.responseText;
4038
- } catch (j) {
4083
+ A = d.responseText;
4084
+ } catch (V) {
4039
4085
  }
4040
- p.readyState = 3, p.responseText = S, p.onprogress();
4086
+ p.readyState = 3, p.responseText = A, p.onprogress();
4041
4087
  }
4042
- }, w = function(S, j) {
4043
- if ((j == null || j.preventDefault == null) && (j = {
4088
+ }, w = function(A, V) {
4089
+ if ((V == null || V.preventDefault == null) && (V = {
4044
4090
  preventDefault: O
4045
- }), E(), g === 1 || g === 2 || g === 3) {
4046
- if (g = 4, v !== 0 && (i(v), v = 0), p.readyState = 4, S === "load")
4047
- p.onload(j);
4048
- else if (S === "error")
4049
- p.onerror(j);
4050
- else if (S === "abort")
4051
- p.onabort(j);
4091
+ }), v(), m === 1 || m === 2 || m === 3) {
4092
+ if (m = 4, y !== 0 && (i(y), y = 0), p.readyState = 4, A === "load")
4093
+ p.onload(V);
4094
+ else if (A === "error")
4095
+ p.onerror(V);
4096
+ else if (A === "abort")
4097
+ p.onabort(V);
4052
4098
  else
4053
4099
  throw new TypeError();
4054
4100
  p.onreadystatechange();
4055
4101
  }
4056
- }, N = function(S) {
4057
- f != null && (f.readyState === 4 ? (!("onload" in f) || !("onerror" in f) || !("onabort" in f)) && w(f.responseText === "" ? "error" : "load", S) : f.readyState === 3 ? "onprogress" in f || E() : f.readyState === 2 && x());
4058
- }, F = function() {
4059
- v = r(function() {
4060
- F();
4061
- }, 500), f.readyState === 3 && E();
4102
+ }, N = function(A) {
4103
+ d != null && (d.readyState === 4 ? (!("onload" in d) || !("onerror" in d) || !("onabort" in d)) && w(d.responseText === "" ? "error" : "load", A) : d.readyState === 3 ? "onprogress" in d || v() : d.readyState === 2 && x());
4104
+ }, G = function() {
4105
+ y = r(function() {
4106
+ G();
4107
+ }, 500), d.readyState === 3 && v();
4062
4108
  };
4063
- "onload" in f && (f.onload = function(S) {
4064
- w("load", S);
4065
- }), "onerror" in f && (f.onerror = function(S) {
4066
- w("error", S);
4067
- }), "onabort" in f && (f.onabort = function(S) {
4068
- w("abort", S);
4069
- }), "onprogress" in f && (f.onprogress = E), "onreadystatechange" in f && (f.onreadystatechange = function(S) {
4070
- N(S);
4071
- }), ("contentType" in f || !("ontimeout" in a.prototype)) && (s += (s.indexOf("?") === -1 ? "?" : "&") + "padding=true"), f.open(h, s, !0), "readyState" in f && (v = r(function() {
4072
- F();
4109
+ "onload" in d && (d.onload = function(A) {
4110
+ w("load", A);
4111
+ }), "onerror" in d && (d.onerror = function(A) {
4112
+ w("error", A);
4113
+ }), "onabort" in d && (d.onabort = function(A) {
4114
+ w("abort", A);
4115
+ }), "onprogress" in d && (d.onprogress = v), "onreadystatechange" in d && (d.onreadystatechange = function(A) {
4116
+ N(A);
4117
+ }), ("contentType" in d || !("ontimeout" in a.prototype)) && (l += (l.indexOf("?") === -1 ? "?" : "&") + "padding=true"), d.open(h, l, !0), "readyState" in d && (y = r(function() {
4118
+ G();
4073
4119
  }, 0));
4074
- }, k.prototype.abort = function() {
4120
+ }, U.prototype.abort = function() {
4075
4121
  this._abort(!1);
4076
- }, k.prototype.getResponseHeader = function(h) {
4122
+ }, U.prototype.getResponseHeader = function(h) {
4077
4123
  return this._contentType;
4078
- }, k.prototype.setRequestHeader = function(h, s) {
4124
+ }, U.prototype.setRequestHeader = function(h, l) {
4079
4125
  var p = this._xhr;
4080
- "setRequestHeader" in p && p.setRequestHeader(h, s);
4081
- }, k.prototype.getAllResponseHeaders = function() {
4126
+ "setRequestHeader" in p && p.setRequestHeader(h, l);
4127
+ }, U.prototype.getAllResponseHeaders = function() {
4082
4128
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4083
- }, k.prototype.send = function() {
4129
+ }, U.prototype.send = function() {
4084
4130
  if ((!("ontimeout" in a.prototype) || !("sendAsBinary" in a.prototype) && !("mozAnon" in a.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4085
4131
  var h = this;
4086
4132
  h._sendTimeout = r(function() {
@@ -4088,287 +4134,287 @@ var en = { exports: {} };
4088
4134
  }, 4);
4089
4135
  return;
4090
4136
  }
4091
- var s = this._xhr;
4092
- "withCredentials" in s && (s.withCredentials = this.withCredentials);
4137
+ var l = this._xhr;
4138
+ "withCredentials" in l && (l.withCredentials = this.withCredentials);
4093
4139
  try {
4094
- s.send(void 0);
4140
+ l.send(void 0);
4095
4141
  } catch (p) {
4096
4142
  throw p;
4097
4143
  }
4098
4144
  };
4099
- function X(h) {
4100
- return h.replace(/[A-Z]/g, function(s) {
4101
- return String.fromCharCode(s.charCodeAt(0) + 32);
4145
+ function q(h) {
4146
+ return h.replace(/[A-Z]/g, function(l) {
4147
+ return String.fromCharCode(l.charCodeAt(0) + 32);
4102
4148
  });
4103
4149
  }
4104
- function ne(h) {
4105
- for (var s = /* @__PURE__ */ Object.create(null), p = h.split(`\r
4106
- `), f = 0; f < p.length; f += 1) {
4107
- var g = p[f], v = g.split(": "), x = v.shift(), E = v.join(": ");
4108
- s[X(x)] = E;
4150
+ function re(h) {
4151
+ for (var l = /* @__PURE__ */ Object.create(null), p = h.split(`\r
4152
+ `), d = 0; d < p.length; d += 1) {
4153
+ var m = p[d], y = m.split(": "), x = y.shift(), v = y.join(": ");
4154
+ l[q(x)] = v;
4109
4155
  }
4110
- this._map = s;
4156
+ this._map = l;
4111
4157
  }
4112
- ne.prototype.get = function(h) {
4113
- return this._map[X(h)];
4158
+ re.prototype.get = function(h) {
4159
+ return this._map[q(h)];
4114
4160
  }, a != null && a.HEADERS_RECEIVED == null && (a.HEADERS_RECEIVED = 2);
4115
- function W() {
4161
+ function z() {
4116
4162
  }
4117
- W.prototype.open = function(h, s, p, f, g, v, x) {
4118
- h.open("GET", g);
4119
- var E = 0;
4163
+ z.prototype.open = function(h, l, p, d, m, y, x) {
4164
+ h.open("GET", m);
4165
+ var v = 0;
4120
4166
  h.onprogress = function() {
4121
- var N = h.responseText, F = N.slice(E);
4122
- E += F.length, p(F);
4167
+ var N = h.responseText, G = N.slice(v);
4168
+ v += G.length, p(G);
4123
4169
  }, h.onerror = function(N) {
4124
- N.preventDefault(), f(new Error("NetworkError"));
4170
+ N.preventDefault(), d(new Error("NetworkError"));
4125
4171
  }, h.onload = function() {
4126
- f(null);
4172
+ d(null);
4127
4173
  }, h.onabort = function() {
4128
- f(null);
4174
+ d(null);
4129
4175
  }, h.onreadystatechange = function() {
4130
4176
  if (h.readyState === a.HEADERS_RECEIVED) {
4131
- var N = h.status, F = h.statusText, S = h.getResponseHeader("Content-Type"), j = h.getAllResponseHeaders();
4132
- s(N, F, S, new ne(j));
4177
+ var N = h.status, G = h.statusText, A = h.getResponseHeader("Content-Type"), V = h.getAllResponseHeaders();
4178
+ l(N, G, A, new re(V));
4133
4179
  }
4134
- }, h.withCredentials = v;
4180
+ }, h.withCredentials = y;
4135
4181
  for (var w in x)
4136
4182
  Object.prototype.hasOwnProperty.call(x, w) && h.setRequestHeader(w, x[w]);
4137
4183
  return h.send(), h;
4138
4184
  };
4139
- function U(h) {
4185
+ function X(h) {
4140
4186
  this._headers = h;
4141
4187
  }
4142
- U.prototype.get = function(h) {
4188
+ X.prototype.get = function(h) {
4143
4189
  return this._headers.get(h);
4144
4190
  };
4145
- function D() {
4191
+ function P() {
4146
4192
  }
4147
- D.prototype.open = function(h, s, p, f, g, v, x) {
4148
- var E = null, w = new H(), N = w.signal, F = new T();
4149
- return b(g, {
4193
+ P.prototype.open = function(h, l, p, d, m, y, x) {
4194
+ var v = null, w = new S(), N = w.signal, G = new B();
4195
+ return g(m, {
4150
4196
  headers: x,
4151
- credentials: v ? "include" : "same-origin",
4197
+ credentials: y ? "include" : "same-origin",
4152
4198
  signal: N,
4153
4199
  cache: "no-store"
4154
- }).then(function(S) {
4155
- return E = S.body.getReader(), s(S.status, S.statusText, S.headers.get("Content-Type"), new U(S.headers)), new d(function(j, ve) {
4200
+ }).then(function(A) {
4201
+ return v = A.body.getReader(), l(A.status, A.statusText, A.headers.get("Content-Type"), new X(A.headers)), new f(function(V, xe) {
4156
4202
  var Qe = function() {
4157
- E.read().then(function(ie) {
4158
- if (ie.done)
4159
- j(void 0);
4203
+ v.read().then(function(ae) {
4204
+ if (ae.done)
4205
+ V(void 0);
4160
4206
  else {
4161
- var Y = F.decode(ie.value, { stream: !0 });
4162
- p(Y), Qe();
4207
+ var K = G.decode(ae.value, { stream: !0 });
4208
+ p(K), Qe();
4163
4209
  }
4164
- }).catch(function(ie) {
4165
- ve(ie);
4210
+ }).catch(function(ae) {
4211
+ xe(ae);
4166
4212
  });
4167
4213
  };
4168
4214
  Qe();
4169
4215
  });
4170
- }).catch(function(S) {
4171
- if (S.name !== "AbortError")
4172
- return S;
4173
- }).then(function(S) {
4174
- f(S);
4216
+ }).catch(function(A) {
4217
+ if (A.name !== "AbortError")
4218
+ return A;
4219
+ }).then(function(A) {
4220
+ d(A);
4175
4221
  }), {
4176
4222
  abort: function() {
4177
- E != null && E.cancel(), w.abort();
4223
+ v != null && v.cancel(), w.abort();
4178
4224
  }
4179
4225
  };
4180
4226
  };
4181
- function V() {
4227
+ function $() {
4182
4228
  this._listeners = /* @__PURE__ */ Object.create(null);
4183
4229
  }
4184
- function m(h) {
4230
+ function F(h) {
4185
4231
  r(function() {
4186
4232
  throw h;
4187
4233
  }, 0);
4188
4234
  }
4189
- V.prototype.dispatchEvent = function(h) {
4235
+ $.prototype.dispatchEvent = function(h) {
4190
4236
  h.target = this;
4191
- var s = this._listeners[h.type];
4192
- if (s != null)
4193
- for (var p = s.length, f = 0; f < p; f += 1) {
4194
- var g = s[f];
4237
+ var l = this._listeners[h.type];
4238
+ if (l != null)
4239
+ for (var p = l.length, d = 0; d < p; d += 1) {
4240
+ var m = l[d];
4195
4241
  try {
4196
- typeof g.handleEvent == "function" ? g.handleEvent(h) : g.call(this, h);
4197
- } catch (v) {
4198
- m(v);
4242
+ typeof m.handleEvent == "function" ? m.handleEvent(h) : m.call(this, h);
4243
+ } catch (y) {
4244
+ F(y);
4199
4245
  }
4200
4246
  }
4201
- }, V.prototype.addEventListener = function(h, s) {
4247
+ }, $.prototype.addEventListener = function(h, l) {
4202
4248
  h = String(h);
4203
- var p = this._listeners, f = p[h];
4204
- f == null && (f = [], p[h] = f);
4205
- for (var g = !1, v = 0; v < f.length; v += 1)
4206
- f[v] === s && (g = !0);
4207
- g || f.push(s);
4208
- }, V.prototype.removeEventListener = function(h, s) {
4249
+ var p = this._listeners, d = p[h];
4250
+ d == null && (d = [], p[h] = d);
4251
+ for (var m = !1, y = 0; y < d.length; y += 1)
4252
+ d[y] === l && (m = !0);
4253
+ m || d.push(l);
4254
+ }, $.prototype.removeEventListener = function(h, l) {
4209
4255
  h = String(h);
4210
- var p = this._listeners, f = p[h];
4211
- if (f != null) {
4212
- for (var g = [], v = 0; v < f.length; v += 1)
4213
- f[v] !== s && g.push(f[v]);
4214
- g.length === 0 ? delete p[h] : p[h] = g;
4256
+ var p = this._listeners, d = p[h];
4257
+ if (d != null) {
4258
+ for (var m = [], y = 0; y < d.length; y += 1)
4259
+ d[y] !== l && m.push(d[y]);
4260
+ m.length === 0 ? delete p[h] : p[h] = m;
4215
4261
  }
4216
4262
  };
4217
- function J(h) {
4263
+ function Y(h) {
4218
4264
  this.type = h, this.target = void 0;
4219
4265
  }
4220
- function it(h, s) {
4221
- J.call(this, h), this.data = s.data, this.lastEventId = s.lastEventId;
4266
+ function E(h, l) {
4267
+ Y.call(this, h), this.data = l.data, this.lastEventId = l.lastEventId;
4222
4268
  }
4223
- it.prototype = Object.create(J.prototype);
4224
- function be(h, s) {
4225
- J.call(this, h), this.status = s.status, this.statusText = s.statusText, this.headers = s.headers;
4269
+ E.prototype = Object.create(Y.prototype);
4270
+ function ye(h, l) {
4271
+ Y.call(this, h), this.status = l.status, this.statusText = l.statusText, this.headers = l.headers;
4226
4272
  }
4227
- be.prototype = Object.create(J.prototype);
4228
- function ze(h, s) {
4229
- J.call(this, h), this.error = s.error;
4273
+ ye.prototype = Object.create(Y.prototype);
4274
+ function it(h, l) {
4275
+ Y.call(this, h), this.error = l.error;
4230
4276
  }
4231
- ze.prototype = Object.create(J.prototype);
4232
- var We = -1, pe = 0, Te = 1, ye = 2, Oe = -1, me = 0, Ae = 1, Ze = 2, Bt = 3, at = /^text\/event\-stream(;.*)?$/i, Tt = 1e3, wt = 18e6, Re = function(h, s) {
4233
- var p = h == null ? s : parseInt(h, 10);
4234
- return p !== p && (p = s), qe(p);
4277
+ it.prototype = Object.create(Y.prototype);
4278
+ var ve = -1, he = 0, Se = 1, Ce = 2, ze = -1, le = 0, Re = 1, at = 2, We = 3, ot = /^text\/event\-stream(;.*)?$/i, wt = 1e3, st = 18e6, Ze = function(h, l) {
4279
+ var p = h == null ? l : parseInt(h, 10);
4280
+ return p !== p && (p = l), qe(p);
4235
4281
  }, qe = function(h) {
4236
- return Math.min(Math.max(h, Tt), wt);
4237
- }, we = function(h, s, p) {
4282
+ return Math.min(Math.max(h, wt), st);
4283
+ }, Ee = function(h, l, p) {
4238
4284
  try {
4239
- typeof s == "function" && s.call(h, p);
4240
- } catch (f) {
4241
- m(f);
4285
+ typeof l == "function" && l.call(h, p);
4286
+ } catch (d) {
4287
+ F(d);
4242
4288
  }
4243
4289
  };
4244
- function re(h, s) {
4245
- V.call(this), s = s || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ct(this, h, s);
4290
+ function ie(h, l) {
4291
+ $.call(this), l = l || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ct(this, h, l);
4246
4292
  }
4247
4293
  function St() {
4248
- return a != null && "withCredentials" in a.prototype || l == null ? new a() : new l();
4294
+ return a != null && "withCredentials" in a.prototype || s == null ? new a() : new s();
4249
4295
  }
4250
- var At = b != null && y != null && "body" in y.prototype;
4251
- function Ct(h, s, p) {
4252
- s = String(s);
4253
- var f = !!p.withCredentials, g = p.lastEventIdQueryParameterName || "lastEventId", v = qe(1e3), x = Re(p.heartbeatTimeout, 45e3), E = "", w = v, N = !1, F = 0, S = p.headers || {}, j = p.Transport, ve = At && j == null ? void 0 : new k(j != null ? new j() : St()), Qe = j != null && typeof j != "string" ? new j() : ve == null ? new D() : new W(), ie = void 0, Y = 0, ue = We, Le = "", st = "", Ee = "", lt = "", K = me, Ht = 0, Ce = 0, cr = function(Z, z, ae, oe) {
4254
- if (ue === pe)
4255
- if (Z === 200 && ae != null && at.test(ae)) {
4256
- ue = Te, N = Date.now(), w = v, h.readyState = Te;
4257
- var ee = new be("open", {
4296
+ var At = g != null && b != null && "body" in b.prototype;
4297
+ function Ct(h, l, p) {
4298
+ l = String(l);
4299
+ var d = !!p.withCredentials, m = p.lastEventIdQueryParameterName || "lastEventId", y = qe(1e3), x = Ze(p.heartbeatTimeout, 45e3), v = "", w = y, N = !1, G = 0, A = p.headers || {}, V = p.Transport, xe = At && V == null ? void 0 : new U(V != null ? new V() : St()), Qe = V != null && typeof V != "string" ? new V() : xe == null ? new P() : new z(), ae = void 0, K = 0, fe = ve, Le = "", ut = "", _e = "", ct = "", ee = le, Ht = 0, He = 0, cr = function(Z, W, oe, se) {
4300
+ if (fe === he)
4301
+ if (Z === 200 && oe != null && ot.test(oe)) {
4302
+ fe = Se, N = Date.now(), w = y, h.readyState = Se;
4303
+ var te = new ye("open", {
4258
4304
  status: Z,
4259
- statusText: z,
4260
- headers: oe
4305
+ statusText: W,
4306
+ headers: se
4261
4307
  });
4262
- h.dispatchEvent(ee), we(h, h.onopen, ee);
4308
+ h.dispatchEvent(te), Ee(h, h.onopen, te);
4263
4309
  } else {
4264
- var q = "";
4265
- Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : q = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
4266
- var ee = new be("error", {
4310
+ var Q = "";
4311
+ Z !== 200 ? (W && (W = W.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + W + " that is not 200. Aborting the connection.") : Q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
4312
+ var te = new ye("error", {
4267
4313
  status: Z,
4268
- statusText: z,
4269
- headers: oe
4314
+ statusText: W,
4315
+ headers: se
4270
4316
  });
4271
- h.dispatchEvent(ee), we(h, h.onerror, ee), console.error(q);
4317
+ h.dispatchEvent(te), Ee(h, h.onerror, te), console.error(Q);
4272
4318
  }
4273
4319
  }, hr = function(Z) {
4274
- if (ue === Te) {
4275
- for (var z = -1, ae = 0; ae < Z.length; ae += 1) {
4276
- var oe = Z.charCodeAt(ae);
4277
- (oe === 10 || oe === 13) && (z = ae);
4320
+ if (fe === Se) {
4321
+ for (var W = -1, oe = 0; oe < Z.length; oe += 1) {
4322
+ var se = Z.charCodeAt(oe);
4323
+ (se === 10 || se === 13) && (W = oe);
4278
4324
  }
4279
- var ee = (z !== -1 ? lt : "") + Z.slice(0, z + 1);
4280
- lt = (z === -1 ? lt : "") + Z.slice(z + 1), Z !== "" && (N = Date.now(), F += Z.length);
4281
- for (var q = 0; q < ee.length; q += 1) {
4282
- var oe = ee.charCodeAt(q);
4283
- if (K === Oe && oe === 10)
4284
- K = me;
4285
- else if (K === Oe && (K = me), oe === 13 || oe === 10) {
4286
- if (K !== me) {
4287
- K === Ae && (Ce = q + 1);
4288
- var xe = ee.slice(Ht, Ce - 1), _e = ee.slice(Ce + (Ce < q && ee.charCodeAt(Ce) === 32 ? 1 : 0), q);
4289
- xe === "data" ? (Le += `
4290
- `, Le += _e) : xe === "id" ? st = _e : xe === "event" ? Ee = _e : xe === "retry" ? (v = Re(_e, v), w = v) : xe === "heartbeatTimeout" && (x = Re(_e, x), Y !== 0 && (i(Y), Y = r(function() {
4325
+ var te = (W !== -1 ? ct : "") + Z.slice(0, W + 1);
4326
+ ct = (W === -1 ? ct : "") + Z.slice(W + 1), Z !== "" && (N = Date.now(), G += Z.length);
4327
+ for (var Q = 0; Q < te.length; Q += 1) {
4328
+ var se = te.charCodeAt(Q);
4329
+ if (ee === ze && se === 10)
4330
+ ee = le;
4331
+ else if (ee === ze && (ee = le), se === 13 || se === 10) {
4332
+ if (ee !== le) {
4333
+ ee === Re && (He = Q + 1);
4334
+ var Be = te.slice(Ht, He - 1), Te = te.slice(He + (He < Q && te.charCodeAt(He) === 32 ? 1 : 0), Q);
4335
+ Be === "data" ? (Le += `
4336
+ `, Le += Te) : Be === "id" ? ut = Te : Be === "event" ? _e = Te : Be === "retry" ? (y = Ze(Te, y), w = y) : Be === "heartbeatTimeout" && (x = Ze(Te, x), K !== 0 && (i(K), K = r(function() {
4291
4337
  Je();
4292
4338
  }, x)));
4293
4339
  }
4294
- if (K === me) {
4340
+ if (ee === le) {
4295
4341
  if (Le !== "") {
4296
- E = st, Ee === "" && (Ee = "message");
4297
- var Me = new it(Ee, {
4342
+ v = ut, _e === "" && (_e = "message");
4343
+ var Me = new E(_e, {
4298
4344
  data: Le.slice(1),
4299
- lastEventId: st
4345
+ lastEventId: ut
4300
4346
  });
4301
- if (h.dispatchEvent(Me), Ee === "open" ? we(h, h.onopen, Me) : Ee === "message" ? we(h, h.onmessage, Me) : Ee === "error" && we(h, h.onerror, Me), ue === ye)
4347
+ if (h.dispatchEvent(Me), _e === "open" ? Ee(h, h.onopen, Me) : _e === "message" ? Ee(h, h.onmessage, Me) : _e === "error" && Ee(h, h.onerror, Me), fe === Ce)
4302
4348
  return;
4303
4349
  }
4304
- Le = "", Ee = "";
4350
+ Le = "", _e = "";
4305
4351
  }
4306
- K = oe === 13 ? Oe : me;
4352
+ ee = se === 13 ? ze : le;
4307
4353
  } else
4308
- K === me && (Ht = q, K = Ae), K === Ae ? oe === 58 && (Ce = q + 1, K = Ze) : K === Ze && (K = Bt);
4354
+ ee === le && (Ht = Q, ee = Re), ee === Re ? se === 58 && (He = Q + 1, ee = at) : ee === at && (ee = We);
4309
4355
  }
4310
4356
  }
4311
4357
  }, ln = function(Z) {
4312
- if (ue === Te || ue === pe) {
4313
- ue = We, Y !== 0 && (i(Y), Y = 0), Y = r(function() {
4358
+ if (fe === Se || fe === he) {
4359
+ fe = ve, K !== 0 && (i(K), K = 0), K = r(function() {
4314
4360
  Je();
4315
- }, w), w = qe(Math.min(v * 16, w * 2)), h.readyState = pe;
4316
- var z = new ze("error", { error: Z });
4317
- h.dispatchEvent(z), we(h, h.onerror, z), Z != null && console.error(Z);
4361
+ }, w), w = qe(Math.min(y * 16, w * 2)), h.readyState = he;
4362
+ var W = new it("error", { error: Z });
4363
+ h.dispatchEvent(W), Ee(h, h.onerror, W), Z != null && console.error(Z);
4318
4364
  }
4319
4365
  }, Ot = function() {
4320
- ue = ye, ie != null && (ie.abort(), ie = void 0), Y !== 0 && (i(Y), Y = 0), h.readyState = ye;
4366
+ fe = Ce, ae != null && (ae.abort(), ae = void 0), K !== 0 && (i(K), K = 0), h.readyState = Ce;
4321
4367
  }, Je = function() {
4322
- if (Y = 0, ue !== We) {
4323
- if (!N && ie != null)
4324
- ln(new Error("No activity within " + x + " milliseconds. " + (ue === pe ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4368
+ if (K = 0, fe !== ve) {
4369
+ if (!N && ae != null)
4370
+ ln(new Error("No activity within " + x + " milliseconds. " + (fe === he ? "No response received." : G + " chars received.") + " Reconnecting.")), ae != null && (ae.abort(), ae = void 0);
4325
4371
  else {
4326
4372
  var Z = Math.max((N || Date.now()) + x - Date.now(), 1);
4327
- N = !1, Y = r(function() {
4373
+ N = !1, K = r(function() {
4328
4374
  Je();
4329
4375
  }, Z);
4330
4376
  }
4331
4377
  return;
4332
4378
  }
4333
- N = !1, F = 0, Y = r(function() {
4379
+ N = !1, G = 0, K = r(function() {
4334
4380
  Je();
4335
- }, x), ue = pe, Le = "", Ee = "", st = E, lt = "", Ht = 0, Ce = 0, K = me;
4336
- var z = s;
4337
- if (s.slice(0, 5) !== "data:" && s.slice(0, 5) !== "blob:" && E !== "") {
4338
- var ae = s.indexOf("?");
4339
- z = ae === -1 ? s : s.slice(0, ae + 1) + s.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(_e, Me) {
4340
- return Me === g ? "" : _e;
4341
- }), z += (s.indexOf("?") === -1 ? "?" : "&") + g + "=" + encodeURIComponent(E);
4381
+ }, x), fe = he, Le = "", _e = "", ut = v, ct = "", Ht = 0, He = 0, ee = le;
4382
+ var W = l;
4383
+ if (l.slice(0, 5) !== "data:" && l.slice(0, 5) !== "blob:" && v !== "") {
4384
+ var oe = l.indexOf("?");
4385
+ W = oe === -1 ? l : l.slice(0, oe + 1) + l.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Te, Me) {
4386
+ return Me === m ? "" : Te;
4387
+ }), W += (l.indexOf("?") === -1 ? "?" : "&") + m + "=" + encodeURIComponent(v);
4342
4388
  }
4343
- var oe = h.withCredentials, ee = {};
4344
- ee.Accept = "text/event-stream";
4345
- var q = h.headers;
4346
- if (q != null)
4347
- for (var xe in q)
4348
- Object.prototype.hasOwnProperty.call(q, xe) && (ee[xe] = q[xe]);
4389
+ var se = h.withCredentials, te = {};
4390
+ te.Accept = "text/event-stream";
4391
+ var Q = h.headers;
4392
+ if (Q != null)
4393
+ for (var Be in Q)
4394
+ Object.prototype.hasOwnProperty.call(Q, Be) && (te[Be] = Q[Be]);
4349
4395
  try {
4350
- ie = Qe.open(ve, cr, hr, ln, z, oe, ee);
4351
- } catch (_e) {
4352
- throw Ot(), _e;
4396
+ ae = Qe.open(xe, cr, hr, ln, W, se, te);
4397
+ } catch (Te) {
4398
+ throw Ot(), Te;
4353
4399
  }
4354
4400
  };
4355
- h.url = s, h.readyState = pe, h.withCredentials = f, h.headers = S, h._close = Ot, Je();
4401
+ h.url = l, h.readyState = he, h.withCredentials = d, h.headers = A, h._close = Ot, Je();
4356
4402
  }
4357
- re.prototype = Object.create(V.prototype), re.prototype.CONNECTING = pe, re.prototype.OPEN = Te, re.prototype.CLOSED = ye, re.prototype.close = function() {
4403
+ ie.prototype = Object.create($.prototype), ie.prototype.CONNECTING = he, ie.prototype.OPEN = Se, ie.prototype.CLOSED = Ce, ie.prototype.close = function() {
4358
4404
  this._close();
4359
- }, re.CONNECTING = pe, re.OPEN = Te, re.CLOSED = ye, re.prototype.withCredentials = void 0;
4360
- var ot = c;
4361
- a != null && (c == null || !("withCredentials" in c.prototype)) && (ot = re), function(h) {
4405
+ }, ie.CONNECTING = he, ie.OPEN = Se, ie.CLOSED = Ce, ie.prototype.withCredentials = void 0;
4406
+ var lt = c;
4407
+ a != null && (c == null || !("withCredentials" in c.prototype)) && (lt = ie), function(h) {
4362
4408
  {
4363
- var s = h(t);
4364
- s !== void 0 && (e.exports = s);
4409
+ var l = h(t);
4410
+ l !== void 0 && (e.exports = l);
4365
4411
  }
4366
4412
  }(function(h) {
4367
- h.EventSourcePolyfill = re, h.NativeEventSource = c, h.EventSource = ot;
4413
+ h.EventSourcePolyfill = ie, h.NativeEventSource = c, h.EventSource = lt;
4368
4414
  });
4369
- })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : $r : globalThis);
4415
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Vr : globalThis);
4370
4416
  })(en, en.exports);
4371
- var Ha = en.exports;
4417
+ var La = en.exports;
4372
4418
  /*!
4373
4419
  * currency.js - v2.0.4
4374
4420
  * http://scurker.github.io/currency.js
@@ -4376,7 +4422,7 @@ var Ha = en.exports;
4376
4422
  * Copyright (c) 2021 Jason Wilson
4377
4423
  * Released under MIT license
4378
4424
  */
4379
- var Oa = {
4425
+ var Ma = {
4380
4426
  symbol: "$",
4381
4427
  separator: ",",
4382
4428
  decimal: ".",
@@ -4384,31 +4430,31 @@ var Oa = {
4384
4430
  precision: 2,
4385
4431
  pattern: "!#",
4386
4432
  negativePattern: "-!#",
4387
- format: Na,
4433
+ format: Da,
4388
4434
  fromCents: !1
4389
4435
  }, ur = function(t) {
4390
4436
  return Math.round(t);
4391
4437
  }, sn = function(t) {
4392
4438
  return Math.pow(10, t);
4393
- }, Ra = function(t, n) {
4439
+ }, Na = function(t, n) {
4394
4440
  return ur(t / n) * n;
4395
- }, La = /(\d)(?=(\d{3})+\b)/g, Ma = /(\d)(?=(\d\d)+\d\b)/g;
4396
- function ce(e, t) {
4441
+ }, Ia = /(\d)(?=(\d{3})+\b)/g, Pa = /(\d)(?=(\d\d)+\d\b)/g;
4442
+ function de(e, t) {
4397
4443
  var n = this;
4398
- if (!(n instanceof ce))
4399
- return new ce(e, t);
4400
- var r = Object.assign({}, Oa, t), i = sn(r.precision), a = dt(e, r);
4401
- n.intValue = a, n.value = a / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Ma : r.groups = La, this.s = r, this.p = i;
4402
- }
4403
- function dt(e, t) {
4404
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, a = t.errorOnInvalid, l = t.precision, o = t.fromCents, c = sn(l), u = typeof e == "number", d = e instanceof ce;
4405
- if (d && o)
4444
+ if (!(n instanceof de))
4445
+ return new de(e, t);
4446
+ var r = Object.assign({}, Ma, t), i = sn(r.precision), a = mt(e, r);
4447
+ n.intValue = a, n.value = a / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Pa : r.groups = Ia, this.s = r, this.p = i;
4448
+ }
4449
+ function mt(e, t) {
4450
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, a = t.errorOnInvalid, s = t.precision, o = t.fromCents, c = sn(s), u = typeof e == "number", f = e instanceof de;
4451
+ if (f && o)
4406
4452
  return e.intValue;
4407
- if (u || d)
4408
- r = d ? e.value : e;
4453
+ if (u || f)
4454
+ r = f ? e.value : e;
4409
4455
  else if (typeof e == "string") {
4410
- var b = new RegExp("[^-\\d" + i + "]", "g"), y = new RegExp("\\" + i, "g");
4411
- r = e.replace(/\((.*)\)/, "-$1").replace(b, "").replace(y, "."), r = r || 0;
4456
+ var g = new RegExp("[^-\\d" + i + "]", "g"), b = new RegExp("\\" + i, "g");
4457
+ r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(b, "."), r = r || 0;
4412
4458
  } else {
4413
4459
  if (a)
4414
4460
  throw Error("Invalid Input");
@@ -4416,11 +4462,11 @@ function dt(e, t) {
4416
4462
  }
4417
4463
  return o || (r *= c, r = r.toFixed(4)), n ? ur(r) : r;
4418
4464
  }
4419
- function Na(e, t) {
4420
- var n = t.pattern, r = t.negativePattern, i = t.symbol, a = t.separator, l = t.decimal, o = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], d = c[1];
4421
- return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(o, "$1" + a) + (d ? l + d : ""));
4465
+ function Da(e, t) {
4466
+ var n = t.pattern, r = t.negativePattern, i = t.symbol, a = t.separator, s = t.decimal, o = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], f = c[1];
4467
+ return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(o, "$1" + a) + (f ? s + f : ""));
4422
4468
  }
4423
- ce.prototype = {
4469
+ de.prototype = {
4424
4470
  /**
4425
4471
  * Adds values together.
4426
4472
  * @param {number} number
@@ -4428,7 +4474,7 @@ ce.prototype = {
4428
4474
  */
4429
4475
  add: function(t) {
4430
4476
  var n = this.intValue, r = this.s, i = this.p;
4431
- return ce((n += dt(t, r)) / (r.fromCents ? 1 : i), r);
4477
+ return de((n += mt(t, r)) / (r.fromCents ? 1 : i), r);
4432
4478
  },
4433
4479
  /**
4434
4480
  * Subtracts value.
@@ -4437,7 +4483,7 @@ ce.prototype = {
4437
4483
  */
4438
4484
  subtract: function(t) {
4439
4485
  var n = this.intValue, r = this.s, i = this.p;
4440
- return ce((n -= dt(t, r)) / (r.fromCents ? 1 : i), r);
4486
+ return de((n -= mt(t, r)) / (r.fromCents ? 1 : i), r);
4441
4487
  },
4442
4488
  /**
4443
4489
  * Multiplies values.
@@ -4446,7 +4492,7 @@ ce.prototype = {
4446
4492
  */
4447
4493
  multiply: function(t) {
4448
4494
  var n = this.intValue, r = this.s;
4449
- return ce((n *= t) / (r.fromCents ? 1 : sn(r.precision)), r);
4495
+ return de((n *= t) / (r.fromCents ? 1 : sn(r.precision)), r);
4450
4496
  },
4451
4497
  /**
4452
4498
  * Divides value.
@@ -4455,7 +4501,7 @@ ce.prototype = {
4455
4501
  */
4456
4502
  divide: function(t) {
4457
4503
  var n = this.intValue, r = this.s;
4458
- return ce(n /= dt(t, r, !1), r);
4504
+ return de(n /= mt(t, r, !1), r);
4459
4505
  },
4460
4506
  /**
4461
4507
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -4464,8 +4510,8 @@ ce.prototype = {
4464
4510
  * @returns {array}
4465
4511
  */
4466
4512
  distribute: function(t) {
4467
- for (var n = this.intValue, r = this.p, i = this.s, a = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), o = Math.abs(n - l * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
4468
- var u = ce(l / c, i);
4513
+ for (var n = this.intValue, r = this.p, i = this.s, a = [], s = Math[n >= 0 ? "floor" : "ceil"](n / t), o = Math.abs(n - s * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
4514
+ var u = de(s / c, i);
4469
4515
  o-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / c)), a.push(u);
4470
4516
  }
4471
4517
  return a;
@@ -4500,7 +4546,7 @@ ce.prototype = {
4500
4546
  */
4501
4547
  toString: function() {
4502
4548
  var t = this.intValue, n = this.p, r = this.s;
4503
- return Ra(t / n, r.increment).toFixed(r.precision);
4549
+ return Na(t / n, r.increment).toFixed(r.precision);
4504
4550
  },
4505
4551
  /**
4506
4552
  * Value for JSON serialization.
@@ -4510,7 +4556,7 @@ ce.prototype = {
4510
4556
  return this.value;
4511
4557
  }
4512
4558
  };
4513
- function Ia(e) {
4559
+ function Ua(e) {
4514
4560
  vr(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4515
4561
  }
4516
4562
  function Cn(e, t, n) {
@@ -4521,7 +4567,7 @@ function Hn(e, t, n) {
4521
4567
  const r = e.slice();
4522
4568
  return r[53] = t[n], r;
4523
4569
  }
4524
- function Pa(e) {
4570
+ function Fa(e) {
4525
4571
  let t, n, r = (
4526
4572
  /*balances*/
4527
4573
  (e[1].Total ? (
@@ -4531,147 +4577,147 @@ function Pa(e) {
4531
4577
  e[1].Total[0].amount
4532
4578
  )
4533
4579
  ) : "0") + ""
4534
- ), i, a, l, o, c, u, d, b, y, T, _, H, B = (
4580
+ ), i, a, s, o, c, u, f, g, b, B, T, S, _ = (
4535
4581
  /*showBalance*/
4536
4582
  e[4] && On(e)
4537
4583
  );
4538
4584
  return {
4539
4585
  c() {
4540
- t = $("div"), n = $("p"), i = he(r), a = de(), l = he(
4586
+ t = k("div"), n = k("p"), i = pe(r), a = ge(), s = pe(
4541
4587
  /*currency*/
4542
4588
  e[5]
4543
- ), o = de(), c = $("span"), u = hn("svg"), d = hn("path"), y = de(), B && B.c(), T = _r(), M(d, "id", "arrow"), M(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(d, "transform", "translate(-274.511 -441.088)"), M(d, "fill", "#d1d1d1"), M(u, "xmlns", "http://www.w3.org/2000/svg"), M(u, "width", "14"), M(u, "height", "6.835"), M(u, "viewBox", "0 0 14 6.835"), M(c, "class", b = /*modalOpened*/
4589
+ ), o = ge(), c = k("span"), u = hn("svg"), f = hn("path"), b = ge(), _ && _.c(), B = _r(), M(f, "id", "arrow"), M(f, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(f, "transform", "translate(-274.511 -441.088)"), M(f, "fill", "#d1d1d1"), M(u, "xmlns", "http://www.w3.org/2000/svg"), M(u, "width", "14"), M(u, "height", "6.835"), M(u, "viewBox", "0 0 14 6.835"), M(c, "class", g = /*modalOpened*/
4544
4590
  e[3] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
4545
4591
  },
4546
- m(A, P) {
4547
- ge(A, t, P), C(t, n), C(n, i), C(n, a), C(n, l), C(t, o), C(t, c), C(c, u), C(u, d), ge(A, y, P), B && B.m(A, P), ge(A, T, P), _ || (H = pt(
4592
+ m(C, D) {
4593
+ be(C, t, D), H(t, n), H(n, i), H(n, a), H(n, s), H(t, o), H(t, c), H(c, u), H(u, f), be(C, b, D), _ && _.m(C, D), be(C, B, D), T || (S = gt(
4548
4594
  t,
4549
4595
  "click",
4550
4596
  /*click_handler*/
4551
- e[24]
4552
- ), _ = !0);
4597
+ e[25]
4598
+ ), T = !0);
4553
4599
  },
4554
- p(A, P) {
4555
- P[0] & /*balances*/
4600
+ p(C, D) {
4601
+ D[0] & /*balances*/
4556
4602
  2 && r !== (r = /*balances*/
4557
- (A[1].Total ? (
4603
+ (C[1].Total ? (
4558
4604
  /*formatBalance*/
4559
- A[8](
4605
+ C[8](
4560
4606
  /*balances*/
4561
- A[1].Total[0].amount
4607
+ C[1].Total[0].amount
4562
4608
  )
4563
- ) : "0") + "") && Be(i, r), P[0] & /*currency*/
4564
- 32 && Be(
4565
- l,
4609
+ ) : "0") + "") && we(i, r), D[0] & /*currency*/
4610
+ 32 && we(
4611
+ s,
4566
4612
  /*currency*/
4567
- A[5]
4568
- ), P[0] & /*modalOpened*/
4569
- 8 && b !== (b = /*modalOpened*/
4570
- A[3] ? "TriangleActive" : "TriangleInactive") && M(c, "class", b), /*showBalance*/
4571
- A[4] ? B ? B.p(A, P) : (B = On(A), B.c(), B.m(T.parentNode, T)) : B && (B.d(1), B = null);
4613
+ C[5]
4614
+ ), D[0] & /*modalOpened*/
4615
+ 8 && g !== (g = /*modalOpened*/
4616
+ C[3] ? "TriangleActive" : "TriangleInactive") && M(c, "class", g), /*showBalance*/
4617
+ C[4] ? _ ? _.p(C, D) : (_ = On(C), _.c(), _.m(B.parentNode, B)) : _ && (_.d(1), _ = null);
4572
4618
  },
4573
- d(A) {
4574
- A && (fe(t), fe(y), fe(T)), B && B.d(A), _ = !1, H();
4619
+ d(C) {
4620
+ C && (me(t), me(b), me(B)), _ && _.d(C), T = !1, S();
4575
4621
  }
4576
4622
  };
4577
4623
  }
4578
- function Da(e) {
4624
+ function Ga(e) {
4579
4625
  let t, n = (
4580
4626
  /*$_*/
4581
4627
  e[6]("Loading") + ""
4582
4628
  ), r;
4583
4629
  return {
4584
4630
  c() {
4585
- t = $("p"), r = he(n), M(t, "class", "Loading");
4631
+ t = k("p"), r = pe(n), M(t, "class", "Loading");
4586
4632
  },
4587
4633
  m(i, a) {
4588
- ge(i, t, a), C(t, r);
4634
+ be(i, t, a), H(t, r);
4589
4635
  },
4590
4636
  p(i, a) {
4591
4637
  a[0] & /*$_*/
4592
4638
  64 && n !== (n = /*$_*/
4593
- i[6]("Loading") + "") && Be(r, n);
4639
+ i[6]("Loading") + "") && we(r, n);
4594
4640
  },
4595
4641
  d(i) {
4596
- i && fe(t);
4642
+ i && me(t);
4597
4643
  }
4598
4644
  };
4599
4645
  }
4600
4646
  function On(e) {
4601
- let t, n, r, i, a, l, o, c, u = (
4647
+ let t, n, r, i, a, s, o, c, u = (
4602
4648
  /*$_*/
4603
4649
  e[6]("Title") + ""
4604
- ), d, b, y, T, _, H, B = (
4650
+ ), f, g, b, B, T, S, _ = (
4605
4651
  /*$_*/
4606
4652
  e[6]("DepositButton") + ""
4607
- ), A, P, O, k, X, ne, W = mt(Object.keys(
4653
+ ), C, D, O, U, q, re, z = bt(Object.keys(
4608
4654
  /*balances*/
4609
4655
  e[1]
4610
- )), U = [];
4611
- for (let D = 0; D < W.length; D += 1)
4612
- U[D] = Ln(Cn(e, W, D));
4656
+ )), X = [];
4657
+ for (let P = 0; P < z.length; P += 1)
4658
+ X[P] = Ln(Cn(e, z, P));
4613
4659
  return {
4614
4660
  c() {
4615
- t = $("div"), n = $("div"), i = de(), a = $("div"), l = $("div"), o = $("div"), c = $("p"), d = he(u), b = de(), y = $("div");
4616
- for (let D = 0; D < U.length; D += 1)
4617
- U[D].c();
4618
- T = de(), _ = $("div"), H = $("button"), A = he(B), M(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4619
- (e[3] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(o, "class", "BalanceModalHeader"), M(y, "class", "BalanceModalBody"), M(H, "class", "BalanceModalAction"), M(_, "class", "BalanceModalFooter"), M(l, "class", P = "ModalContent " + /*modalOpened*/
4661
+ t = k("div"), n = k("div"), i = ge(), a = k("div"), s = k("div"), o = k("div"), c = k("p"), f = pe(u), g = ge(), b = k("div");
4662
+ for (let P = 0; P < X.length; P += 1)
4663
+ X[P].c();
4664
+ B = ge(), T = k("div"), S = k("button"), C = pe(_), M(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4665
+ (e[3] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(o, "class", "BalanceModalHeader"), M(b, "class", "BalanceModalBody"), M(S, "class", "BalanceModalAction"), M(T, "class", "BalanceModalFooter"), M(s, "class", D = "ModalContent " + /*modalOpened*/
4620
4666
  (e[3] ? "Open" : "")), M(a, "class", O = "BalanceModal " + /*modalOpened*/
4621
- (e[3] ? "Open" : "")), M(t, "class", k = "BalanceModalWrapper " + /*modalOpened*/
4667
+ (e[3] ? "Open" : "")), M(t, "class", U = "BalanceModalWrapper " + /*modalOpened*/
4622
4668
  (e[3] ? "Open" : ""));
4623
4669
  },
4624
- m(D, V) {
4625
- ge(D, t, V), C(t, n), C(t, i), C(t, a), C(a, l), C(l, o), C(o, c), C(c, d), C(l, b), C(l, y);
4626
- for (let m = 0; m < U.length; m += 1)
4627
- U[m] && U[m].m(y, null);
4628
- C(l, T), C(l, _), C(_, H), C(H, A), X || (ne = [
4629
- pt(
4670
+ m(P, $) {
4671
+ be(P, t, $), H(t, n), H(t, i), H(t, a), H(a, s), H(s, o), H(o, c), H(c, f), H(s, g), H(s, b);
4672
+ for (let F = 0; F < X.length; F += 1)
4673
+ X[F] && X[F].m(b, null);
4674
+ H(s, B), H(s, T), H(T, S), H(S, C), q || (re = [
4675
+ gt(
4630
4676
  n,
4631
4677
  "click",
4632
4678
  /*click_handler_1*/
4633
- e[25]
4679
+ e[26]
4634
4680
  ),
4635
- pt(
4636
- H,
4681
+ gt(
4682
+ S,
4637
4683
  "click",
4638
4684
  /*click_handler_2*/
4639
- e[26]
4685
+ e[27]
4640
4686
  )
4641
- ], X = !0);
4687
+ ], q = !0);
4642
4688
  },
4643
- p(D, V) {
4644
- if (V[0] & /*modalOpened*/
4689
+ p(P, $) {
4690
+ if ($[0] & /*modalOpened*/
4645
4691
  8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
4646
- (D[3] ? "Open" : "")) && M(n, "class", r), V[0] & /*$_*/
4692
+ (P[3] ? "Open" : "")) && M(n, "class", r), $[0] & /*$_*/
4647
4693
  64 && u !== (u = /*$_*/
4648
- D[6]("Title") + "") && Be(d, u), V[0] & /*balances, currency, formatBalance, $_*/
4694
+ P[6]("Title") + "") && we(f, u), $[0] & /*balances, currency, formatBalance, $_*/
4649
4695
  354) {
4650
- W = mt(Object.keys(
4696
+ z = bt(Object.keys(
4651
4697
  /*balances*/
4652
- D[1]
4698
+ P[1]
4653
4699
  ));
4654
- let m;
4655
- for (m = 0; m < W.length; m += 1) {
4656
- const J = Cn(D, W, m);
4657
- U[m] ? U[m].p(J, V) : (U[m] = Ln(J), U[m].c(), U[m].m(y, null));
4700
+ let F;
4701
+ for (F = 0; F < z.length; F += 1) {
4702
+ const Y = Cn(P, z, F);
4703
+ X[F] ? X[F].p(Y, $) : (X[F] = Ln(Y), X[F].c(), X[F].m(b, null));
4658
4704
  }
4659
- for (; m < U.length; m += 1)
4660
- U[m].d(1);
4661
- U.length = W.length;
4705
+ for (; F < X.length; F += 1)
4706
+ X[F].d(1);
4707
+ X.length = z.length;
4662
4708
  }
4663
- V[0] & /*$_*/
4664
- 64 && B !== (B = /*$_*/
4665
- D[6]("DepositButton") + "") && Be(A, B), V[0] & /*modalOpened*/
4666
- 8 && P !== (P = "ModalContent " + /*modalOpened*/
4667
- (D[3] ? "Open" : "")) && M(l, "class", P), V[0] & /*modalOpened*/
4709
+ $[0] & /*$_*/
4710
+ 64 && _ !== (_ = /*$_*/
4711
+ P[6]("DepositButton") + "") && we(C, _), $[0] & /*modalOpened*/
4712
+ 8 && D !== (D = "ModalContent " + /*modalOpened*/
4713
+ (P[3] ? "Open" : "")) && M(s, "class", D), $[0] & /*modalOpened*/
4668
4714
  8 && O !== (O = "BalanceModal " + /*modalOpened*/
4669
- (D[3] ? "Open" : "")) && M(a, "class", O), V[0] & /*modalOpened*/
4670
- 8 && k !== (k = "BalanceModalWrapper " + /*modalOpened*/
4671
- (D[3] ? "Open" : "")) && M(t, "class", k);
4715
+ (P[3] ? "Open" : "")) && M(a, "class", O), $[0] & /*modalOpened*/
4716
+ 8 && U !== (U = "BalanceModalWrapper " + /*modalOpened*/
4717
+ (P[3] ? "Open" : "")) && M(t, "class", U);
4672
4718
  },
4673
- d(D) {
4674
- D && fe(t), Dn(U, D), X = !1, je(ne);
4719
+ d(P) {
4720
+ P && me(t), Dn(X, P), q = !1, je(re);
4675
4721
  }
4676
4722
  };
4677
4723
  }
@@ -4682,7 +4728,7 @@ function Rn(e) {
4682
4728
  /*k*/
4683
4729
  e[50]
4684
4730
  ) + ""
4685
- ), i, a, l = (
4731
+ ), i, a, s = (
4686
4732
  /*b*/
4687
4733
  (e[53].productType ? (
4688
4734
  /*$_*/
@@ -4691,7 +4737,7 @@ function Rn(e) {
4691
4737
  e[53].productType
4692
4738
  )
4693
4739
  ) : "") + ""
4694
- ), o, c, u, d, b = (
4740
+ ), o, c, u, f, g = (
4695
4741
  /*b*/
4696
4742
  (e[53].amount ? (
4697
4743
  /*formatBalance*/
@@ -4700,53 +4746,53 @@ function Rn(e) {
4700
4746
  e[53].amount
4701
4747
  )
4702
4748
  ) : "0") + ""
4703
- ), y, T, _, H;
4749
+ ), b, B, T, S;
4704
4750
  return {
4705
4751
  c() {
4706
- t = $("div"), n = $("p"), i = he(r), a = de(), o = he(l), c = de(), u = $("p"), d = $("span"), y = he(b), T = de(), _ = $("span"), H = he(
4752
+ t = k("div"), n = k("p"), i = pe(r), a = ge(), o = pe(s), c = ge(), u = k("p"), f = k("span"), b = pe(g), B = ge(), T = k("span"), S = pe(
4707
4753
  /*currency*/
4708
4754
  e[5]
4709
- ), M(n, "class", "BalanceModalText"), M(d, "class", "BalanceModalAmount"), M(_, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
4755
+ ), M(n, "class", "BalanceModalText"), M(f, "class", "BalanceModalAmount"), M(T, "class", "BalanceModalCurrency"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
4710
4756
  },
4711
- m(B, A) {
4712
- ge(B, t, A), C(t, n), C(n, i), C(n, a), C(n, o), C(t, c), C(t, u), C(u, d), C(d, y), C(u, T), C(u, _), C(_, H);
4757
+ m(_, C) {
4758
+ be(_, t, C), H(t, n), H(n, i), H(n, a), H(n, o), H(t, c), H(t, u), H(u, f), H(f, b), H(u, B), H(u, T), H(T, S);
4713
4759
  },
4714
- p(B, A) {
4715
- A[0] & /*$_, balances*/
4760
+ p(_, C) {
4761
+ C[0] & /*$_, balances*/
4716
4762
  66 && r !== (r = /*$_*/
4717
- B[6](
4763
+ _[6](
4718
4764
  /*k*/
4719
- B[50]
4720
- ) + "") && Be(i, r), A[0] & /*balances, $_*/
4721
- 66 && l !== (l = /*b*/
4722
- (B[53].productType ? (
4765
+ _[50]
4766
+ ) + "") && we(i, r), C[0] & /*balances, $_*/
4767
+ 66 && s !== (s = /*b*/
4768
+ (_[53].productType ? (
4723
4769
  /*$_*/
4724
- B[6](
4770
+ _[6](
4725
4771
  /*b*/
4726
- B[53].productType
4772
+ _[53].productType
4727
4773
  )
4728
- ) : "") + "") && Be(o, l), A[0] & /*balances*/
4729
- 2 && b !== (b = /*b*/
4730
- (B[53].amount ? (
4774
+ ) : "") + "") && we(o, s), C[0] & /*balances*/
4775
+ 2 && g !== (g = /*b*/
4776
+ (_[53].amount ? (
4731
4777
  /*formatBalance*/
4732
- B[8](
4778
+ _[8](
4733
4779
  /*b*/
4734
- B[53].amount
4780
+ _[53].amount
4735
4781
  )
4736
- ) : "0") + "") && Be(y, b), A[0] & /*currency*/
4737
- 32 && Be(
4738
- H,
4782
+ ) : "0") + "") && we(b, g), C[0] & /*currency*/
4783
+ 32 && we(
4784
+ S,
4739
4785
  /*currency*/
4740
- B[5]
4786
+ _[5]
4741
4787
  );
4742
4788
  },
4743
- d(B) {
4744
- B && fe(t);
4789
+ d(_) {
4790
+ _ && me(t);
4745
4791
  }
4746
4792
  };
4747
4793
  }
4748
4794
  function Ln(e) {
4749
- let t, n, r = mt(
4795
+ let t, n, r = bt(
4750
4796
  /*balances*/
4751
4797
  e[1][
4752
4798
  /*k*/
@@ -4757,21 +4803,21 @@ function Ln(e) {
4757
4803
  i[a] = Rn(Hn(e, r, a));
4758
4804
  return {
4759
4805
  c() {
4760
- t = $("div");
4806
+ t = k("div");
4761
4807
  for (let a = 0; a < i.length; a += 1)
4762
4808
  i[a].c();
4763
- n = de(), M(t, "class", "BalanceModalRowBoth");
4809
+ n = ge(), M(t, "class", "BalanceModalRowBoth");
4764
4810
  },
4765
- m(a, l) {
4766
- ge(a, t, l);
4811
+ m(a, s) {
4812
+ be(a, t, s);
4767
4813
  for (let o = 0; o < i.length; o += 1)
4768
4814
  i[o] && i[o].m(t, null);
4769
- C(t, n);
4815
+ H(t, n);
4770
4816
  },
4771
- p(a, l) {
4772
- if (l[0] & /*currency, balances, formatBalance, $_*/
4817
+ p(a, s) {
4818
+ if (s[0] & /*currency, balances, formatBalance, $_*/
4773
4819
  354) {
4774
- r = mt(
4820
+ r = bt(
4775
4821
  /*balances*/
4776
4822
  a[1][
4777
4823
  /*k*/
@@ -4781,7 +4827,7 @@ function Ln(e) {
4781
4827
  let o;
4782
4828
  for (o = 0; o < r.length; o += 1) {
4783
4829
  const c = Hn(a, r, o);
4784
- i[o] ? i[o].p(c, l) : (i[o] = Rn(c), i[o].c(), i[o].m(t, n));
4830
+ i[o] ? i[o].p(c, s) : (i[o] = Rn(c), i[o].c(), i[o].m(t, n));
4785
4831
  }
4786
4832
  for (; o < i.length; o += 1)
4787
4833
  i[o].d(1);
@@ -4789,7 +4835,7 @@ function Ln(e) {
4789
4835
  }
4790
4836
  },
4791
4837
  d(a) {
4792
- a && fe(t), Dn(i, a);
4838
+ a && me(t), Dn(i, a);
4793
4839
  }
4794
4840
  };
4795
4841
  }
@@ -4797,62 +4843,62 @@ function Mn(e) {
4797
4843
  let t, n, r;
4798
4844
  return {
4799
4845
  c() {
4800
- t = $("div"), M(t, "class", "ShowBalanceModalOverlay");
4846
+ t = k("div"), M(t, "class", "ShowBalanceModalOverlay");
4801
4847
  },
4802
4848
  m(i, a) {
4803
- ge(i, t, a), n || (r = pt(
4849
+ be(i, t, a), n || (r = gt(
4804
4850
  t,
4805
4851
  "click",
4806
4852
  /*click_handler_3*/
4807
- e[27]
4853
+ e[28]
4808
4854
  ), n = !0);
4809
4855
  },
4810
- p: le,
4856
+ p: ce,
4811
4857
  d(i) {
4812
- i && fe(t), n = !1, r();
4858
+ i && me(t), n = !1, r();
4813
4859
  }
4814
4860
  };
4815
4861
  }
4816
- function Ua(e) {
4862
+ function $a(e) {
4817
4863
  let t, n, r;
4818
4864
  function i(c, u) {
4819
4865
  return (
4820
4866
  /*isLoading*/
4821
- c[2] ? Da : Pa
4867
+ c[2] ? Ga : Fa
4822
4868
  );
4823
4869
  }
4824
- let a = i(e), l = a(e), o = (
4870
+ let a = i(e), s = a(e), o = (
4825
4871
  /*showBalance*/
4826
4872
  e[4] && Mn(e)
4827
4873
  );
4828
4874
  return {
4829
4875
  c() {
4830
- t = $("div"), n = $("div"), l.c(), r = de(), o && o.c(), M(n, "class", "ShowBalance");
4876
+ t = k("div"), n = k("div"), s.c(), r = ge(), o && o.c(), M(n, "class", "ShowBalance");
4831
4877
  },
4832
4878
  m(c, u) {
4833
- ge(c, t, u), C(t, n), l.m(n, null), C(t, r), o && o.m(t, null), e[28](t);
4879
+ be(c, t, u), H(t, n), s.m(n, null), H(t, r), o && o.m(t, null), e[29](t);
4834
4880
  },
4835
4881
  p(c, u) {
4836
- a === (a = i(c)) && l ? l.p(c, u) : (l.d(1), l = a(c), l && (l.c(), l.m(n, null))), /*showBalance*/
4882
+ a === (a = i(c)) && s ? s.p(c, u) : (s.d(1), s = a(c), s && (s.c(), s.m(n, null))), /*showBalance*/
4837
4883
  c[4] ? o ? o.p(c, u) : (o = Mn(c), o.c(), o.m(t, null)) : o && (o.d(1), o = null);
4838
4884
  },
4839
- i: le,
4840
- o: le,
4885
+ i: ce,
4886
+ o: ce,
4841
4887
  d(c) {
4842
- c && fe(t), l.d(), o && o.d(), e[28](null);
4888
+ c && me(t), s.d(), o && o.d(), e[29](null);
4843
4889
  }
4844
4890
  };
4845
4891
  }
4846
- function Fa(e, t, n) {
4892
+ function ja(e, t, n) {
4847
4893
  let r;
4848
- yr(e, Aa, (s) => n(6, r = s));
4849
- let { userid: i = "" } = t, { session: a = "" } = t, { endpoint: l = "" } = t, { lang: o = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: d = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: T = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencyseparator: H = "" } = t, { currencydecimal: B = "" } = t, { currencyprecision: A = "" } = t, P, O, k, X, ne = !1, W = "", U = [], D, V = !1;
4850
- const m = {}, J = ["totalCashAmount", "totalRealAmount"], it = () => {
4851
- fetch(d).then((s) => s.json()).then((s) => Object.keys(s).forEach((p) => Sn(p, s[p]))).catch((s) => console.log(s));
4894
+ yr(e, Oa, (l) => n(6, r = l));
4895
+ let { userid: i = "" } = t, { session: a = "" } = t, { endpoint: s = "" } = t, { lang: o = "en" } = t, { mbsource: c } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: g = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: B = "gm16" } = t, { displaybalanceoption: T = "All" } = t, { totalcalculationmode: S = "totalCashAmount" } = t, { currencyseparator: _ = "" } = t, { currencydecimal: C = "" } = t, { currencyprecision: D = "" } = t, O, U, q, re, z, X = !1, P = "", $ = [], F, Y = !1;
4896
+ const E = {}, ye = ["totalCashAmount", "totalRealAmount"], it = () => {
4897
+ fetch(g).then((l) => l.json()).then((l) => Object.keys(l).forEach((p) => Sn(p, l[p]))).catch((l) => console.log(l));
4852
4898
  };
4853
- Object.keys(An).forEach((s) => Sn(s, An[s]));
4854
- const be = (s) => {
4855
- switch (s) {
4899
+ Object.keys(An).forEach((l) => Sn(l, An[l]));
4900
+ const ve = (l) => {
4901
+ switch (l) {
4856
4902
  case "balance":
4857
4903
  window.postMessage(
4858
4904
  {
@@ -4860,10 +4906,10 @@ function Fa(e, t, n) {
4860
4906
  status: "open"
4861
4907
  },
4862
4908
  window.location.href
4863
- ), n(4, ne = !0), setTimeout(() => n(3, k = !0), 150);
4909
+ ), n(4, X = !0), setTimeout(() => n(3, re = !0), 150);
4864
4910
  break;
4865
4911
  case "closebalance":
4866
- n(3, k = !1), window.postMessage(
4912
+ n(3, re = !1), window.postMessage(
4867
4913
  {
4868
4914
  type: "BalanceModalStatus",
4869
4915
  status: "close"
@@ -4871,86 +4917,87 @@ function Fa(e, t, n) {
4871
4917
  window.location.href
4872
4918
  ), setTimeout(
4873
4919
  () => {
4874
- n(4, ne = !1);
4920
+ n(4, X = !1);
4875
4921
  },
4876
4922
  150
4877
4923
  );
4878
4924
  break;
4879
4925
  }
4880
- }, ze = () => {
4926
+ }, he = () => {
4881
4927
  if (b.includes(o))
4882
4928
  return b;
4883
- }, We = (s) => b ? new Intl.NumberFormat(ze(), { useGrouping: !0 }).format(s) : H && B ? ce(s, {
4884
- separator: H,
4885
- decimal: B,
4929
+ }, Se = (l) => b ? new Intl.NumberFormat(he(), { useGrouping: !0 }).format(l) : _ && C ? de(l, {
4930
+ separator: _,
4931
+ decimal: C,
4886
4932
  symbol: "",
4887
- precision: parseInt(A || "2", 10)
4888
- }).format() : ce(s, {
4933
+ precision: parseInt(D || "2", 10)
4934
+ }).format() : de(l, {
4889
4935
  separator: ".",
4890
4936
  decimal: ",",
4891
4937
  symbol: "",
4892
- precision: parseInt(A || "2", 10)
4893
- }).format(), pe = () => Nt(this, null, function* () {
4894
- var p, f, g;
4895
- n(2, P = !0);
4896
- const s = new URL(`${l}/v1/player/${i}/account`);
4938
+ precision: parseInt(D || "2", 10)
4939
+ }).format(), Ce = () => Nt(this, null, function* () {
4940
+ var p, d, m;
4941
+ n(2, O = !0);
4942
+ const l = new URL(`${s}/v1/player/${i}/account`);
4897
4943
  try {
4898
- const v = yield fetch(s, {
4944
+ const y = yield fetch(l, {
4899
4945
  method: "GET",
4900
4946
  headers: { "X-SessionID": a }
4901
- }), x = yield v.json();
4902
- if (v.ok)
4903
- window.postMessage({ type: "BalancedFetched" }, window.location.href), U = x.items, n(5, W = (p = U.find((E) => E.displayName === "Casino")) == null ? void 0 : p.currency), n(1, m.Total = [{ amount: x.totalAmount[W] }], m), n(
4947
+ }), x = yield y.json();
4948
+ if (y.ok)
4949
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), $ = x.items, n(5, P = (p = $.find((v) => v.displayName === "Casino")) == null ? void 0 : p.currency), n(1, E.Total = [{ amount: x.totalAmount[P] }], E), n(
4904
4950
  1,
4905
- m.Real = [
4951
+ E.Real = [
4906
4952
  {
4907
- amount: (f = U.find((E) => E.displayName === "Casino")) == null ? void 0 : f.balanceAmount
4953
+ amount: (d = $.find((v) => v.displayName === "Casino")) == null ? void 0 : d.balanceAmount
4908
4954
  }
4909
4955
  ],
4910
- m
4956
+ E
4911
4957
  ), n(
4912
4958
  1,
4913
- m.Bonus = [
4959
+ E.Bonus = [
4914
4960
  {
4915
- amount: (g = U.find((E) => E.displayName === "UBS")) == null ? void 0 : g.balanceAmount
4961
+ amount: (m = $.find((v) => v.displayName === "UBS")) == null ? void 0 : m.balanceAmount
4916
4962
  }
4917
4963
  ],
4918
- m
4964
+ E
4919
4965
  );
4920
4966
  else
4921
4967
  throw new Error("Failed to fetch balance data !");
4922
- } catch (v) {
4923
- console.log("Balance error: ", v);
4968
+ } catch (y) {
4969
+ console.log("Balance error: ", y);
4924
4970
  } finally {
4925
- n(2, P = !1);
4971
+ n(2, O = !1);
4926
4972
  }
4927
- }), Te = () => {
4928
- n(2, P = !0);
4929
- const s = new URL(`${l}/v2/player/${i}/balance`), p = new Headers();
4930
- p.append("X-SessionID", a), fetch(s, { method: "GET", headers: p }).then((g) => g.json()).then((g) => {
4931
- g[_] || n(10, _ = J[0]);
4932
- const v = g.items.find((E) => E.type === "Real" && E.walletAccountType === "Ordinary");
4933
- if (n(5, W = v.currency), V = !!v.productType, n(1, m.Total = [{ amount: 0 }], m), n(1, m.Real = [], m), n(1, m.Bonus = [], m), n(1, m.Credit = [], m), !V) {
4934
- D = {
4973
+ }), ze = () => {
4974
+ n(2, O = !0);
4975
+ const l = new URL(`${s}/v2/player/${i}/balance`), p = new Headers();
4976
+ p.append("X-SessionID", a), fetch(l, { method: "GET", headers: p }).then((m) => m.json()).then((m) => {
4977
+ m[S] || n(10, S = ye[0]);
4978
+ const y = m.items.find((v) => v.type === "Real" && v.walletAccountType === "Ordinary");
4979
+ if (n(5, P = y.currency), Y = !!y.productType, n(1, E.Total = [{ amount: 0 }], E), n(1, E.Real = [], E), n(1, E.Bonus = [], E), n(1, E.Credit = [], E), !Y) {
4980
+ F = {
4935
4981
  lastOrdinaryAfterAmount: 0,
4936
4982
  showCreditLineAfterAmount: !1
4937
- }, n(1, m.Total[0].amount = g[_][W], m);
4938
- for (const E of g.items)
4939
- switch (E.type) {
4983
+ }, n(1, E.Total[0].amount = m[S][P], E);
4984
+ for (const v of m.items)
4985
+ switch (v.type) {
4940
4986
  case "Bonus":
4941
- m.Bonus.length === 0 ? m.Bonus.push({ amount: E.amount }) : n(1, m.Bonus[0].amount += E.amount, m);
4987
+ E.Bonus.length === 0 ? E.Bonus.push({ amount: v.amount }) : n(1, E.Bonus[0].amount += v.amount, E);
4942
4988
  break;
4943
4989
  case "Real":
4944
- if (E.creditLine && m.Credit.length === 0 && m.Credit.push({ amount: E.creditLine }), _ === "totalRealAmount") continue;
4945
- m.Real.length === 0 ? m.Real.push({ amount: E.amount }) : n(1, m.Real[0].amount += E.amount, m);
4990
+ if (v.creditLine && E.Credit.length === 0 && E.Credit.push({ amount: v.creditLine }), S === "totalRealAmount")
4991
+ continue;
4992
+ E.Real.length === 0 ? E.Real.push({ amount: v.amount }) : n(1, E.Real[0].amount += v.amount, E);
4946
4993
  break;
4947
4994
  }
4948
- for (const [E, w] of Object.entries(m))
4949
- w.length < 1 && delete m[E];
4950
- n(2, P = !1);
4995
+ for (const [v, w] of Object.entries(E))
4996
+ w.length < 1 && delete E[v];
4997
+ n(2, O = !1);
4951
4998
  return;
4952
4999
  }
4953
- D = {
5000
+ F = {
4954
5001
  Casino: {
4955
5002
  lastOrdinaryAfterAmount: 0,
4956
5003
  showCreditLineAfterAmount: !1
@@ -4960,228 +5007,220 @@ function Fa(e, t, n) {
4960
5007
  showCreditLineAfterAmount: !1
4961
5008
  }
4962
5009
  };
4963
- let x = g.items;
4964
- T && T !== "All" && (x = g.items.filter((E) => E.productType === T));
4965
- for (const E of x) {
5010
+ let x = m.items;
5011
+ T && T !== "All" && (x = m.items.filter((v) => v.productType === T));
5012
+ for (const v of x) {
4966
5013
  let w;
4967
- switch (E.type) {
5014
+ switch (v.type) {
4968
5015
  case "Bonus":
4969
- w = m.Bonus.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, m.Bonus[w].amount += E.amount, m) : m.Bonus.push({
4970
- amount: E.amount,
4971
- productType: E.productType
5016
+ w = E.Bonus.findIndex((N) => N.productType === v.productType), w > 0 ? n(1, E.Bonus[w].amount += v.amount, E) : E.Bonus.push({
5017
+ amount: v.amount,
5018
+ productType: v.productType
4972
5019
  });
4973
5020
  break;
4974
5021
  case "Real":
4975
- E.creditLine && m.Credit.push({
4976
- amount: E.creditLine,
4977
- productType: E.productType
4978
- }), w = m.Real.findIndex((N) => N.productType === E.productType), w > 0 ? n(1, m.Real[w].amount += E.amount, m) : m.Real.push({
4979
- amount: E.amount,
4980
- productType: E.productType
5022
+ v.creditLine && E.Credit.push({
5023
+ amount: v.creditLine,
5024
+ productType: v.productType
5025
+ }), w = E.Real.findIndex((N) => N.productType === v.productType), w > 0 ? n(1, E.Real[w].amount += v.amount, E) : E.Real.push({
5026
+ amount: v.amount,
5027
+ productType: v.productType
4981
5028
  });
4982
5029
  break;
4983
5030
  }
4984
5031
  }
4985
- Ze();
4986
- for (const [E, w] of Object.entries(m))
4987
- w.length < 1 && delete m[E];
4988
- n(2, P = !1);
4989
- }).catch((g) => {
4990
- throw n(2, P = !1), new Error("Failed to fetch balance data !");
5032
+ ot();
5033
+ for (const [v, w] of Object.entries(E))
5034
+ w.length < 1 && delete E[v];
5035
+ n(2, O = !1);
5036
+ }).catch((m) => {
5037
+ throw n(2, O = !1), new Error("Failed to fetch balance data !");
4991
5038
  });
4992
- }, ye = () => {
4993
- if (X && X.close(), a.length < 1) return;
4994
- let s, p;
4995
- switch (y) {
5039
+ }, le = () => {
5040
+ if (z && z.close(), a.length < 1)
5041
+ return;
5042
+ let l, p;
5043
+ switch (B) {
4996
5044
  case "gm16":
4997
- s = new URL(`${l}/v2/player/${i}/information/updates`), p = (v) => Bt(v);
5045
+ l = new URL(`${s}/v2/player/${i}/information/updates`), p = (y) => wt(y);
4998
5046
  break;
4999
5047
  case "gmcore":
5000
- s = new URL(`${l}/v1/player/${i}/balance/updates`), p = (v) => me(v);
5048
+ l = new URL(`${s}/v1/player/${i}/balance/updates`), p = (y) => at(y);
5001
5049
  break;
5002
5050
  }
5003
- const f = {
5051
+ const d = {
5004
5052
  accept: "text/event-stream",
5005
5053
  "X-SessionId": a
5006
- }, g = new Ha.EventSourcePolyfill(s, { headers: f });
5007
- X = g, g.addEventListener("message", p);
5008
- }, Oe = (s) => {
5054
+ }, m = new La.EventSourcePolyfill(l, { headers: d });
5055
+ z = m, m.addEventListener("message", p);
5056
+ }, Re = (l) => {
5009
5057
  let p;
5010
5058
  try {
5011
- p = JSON.parse(s);
5012
- } catch (f) {
5013
- console.log("Balance stream failed: ", f);
5059
+ p = JSON.parse(l);
5060
+ } catch (d) {
5061
+ console.log("Balance stream failed: ", d);
5014
5062
  return;
5015
5063
  }
5016
5064
  return p;
5017
- }, me = (s) => {
5018
- var v, x;
5019
- const p = Oe(s.data);
5065
+ }, at = (l) => {
5066
+ var y, x;
5067
+ const p = Re(l.data);
5020
5068
  if (!p) {
5021
- ye();
5069
+ le();
5022
5070
  return;
5023
5071
  }
5024
- let f = "0";
5025
- const g = p.balanceChange;
5026
- U = U.map((E) => (g && g[E.id] && (E = Mt(Lt({}, E), {
5027
- balanceAmount: g[E.id].afterAmount
5028
- })), f = (parseFloat(E == null ? void 0 : E.balanceAmount) + parseFloat(f)).toString(), E)), n(1, m.Real = [{ amount: (v = U[0]) == null ? void 0 : v.balanceAmount }], m), n(1, m.Bonus = [{ amount: (x = U[1]) == null ? void 0 : x.balanceAmount }], m), n(1, m.Total = [{ amount: Number(f) }], m);
5029
- }, Ae = (s, p, f) => {
5030
- let g = null;
5031
- switch (f.walletAccountType) {
5072
+ let d = "0";
5073
+ const m = p.balanceChange;
5074
+ $ = $.map((v) => (m && m[v.id] && (v = Mt(Lt({}, v), {
5075
+ balanceAmount: m[v.id].afterAmount
5076
+ })), d = (parseFloat(v == null ? void 0 : v.balanceAmount) + parseFloat(d)).toString(), v)), n(1, E.Real = [{ amount: (y = $[0]) == null ? void 0 : y.balanceAmount }], E), n(1, E.Bonus = [{ amount: (x = $[1]) == null ? void 0 : x.balanceAmount }], E), n(1, E.Total = [{ amount: Number(d) }], E);
5077
+ }, We = (l, p, d) => {
5078
+ let m = null;
5079
+ switch (d.walletAccountType) {
5032
5080
  case "Ordinary":
5033
- f.afterAmount !== f.affectedAmount && (p.lastOrdinaryAfterAmount = f.afterAmount, p.showCreditLineAfterAmount || (g = f.afterAmount));
5081
+ d.afterAmount !== d.affectedAmount && (p.lastOrdinaryAfterAmount = d.afterAmount, p.showCreditLineAfterAmount || (m = d.afterAmount));
5034
5082
  break;
5035
5083
  case "CreditLine":
5036
- f.afterAmount !== 0 ? (g = f.afterAmount, p.showCreditLineAfterAmount = !0) : (g = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
5084
+ d.afterAmount !== 0 ? (m = d.afterAmount, p.showCreditLineAfterAmount = !0) : (m = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
5037
5085
  break;
5038
5086
  default:
5039
- g = f.afterAmount;
5087
+ m = d.afterAmount;
5040
5088
  }
5041
- return g === null ? s : g;
5042
- }, Ze = () => {
5043
- switch (_) {
5089
+ return m === null ? l : m;
5090
+ }, ot = () => {
5091
+ switch (S) {
5044
5092
  case "totalCashAmount":
5045
- let s = 0;
5046
- for (const f of ["Real", "Bonus"])
5047
- for (const g of m[f])
5048
- s += Math.max(g.amount, 0);
5049
- n(1, m.Total[0].amount = s, m);
5093
+ let l = 0;
5094
+ for (const d of ["Real", "Bonus"])
5095
+ for (const m of E[d])
5096
+ l += Math.max(m.amount, 0);
5097
+ n(1, E.Total[0].amount = l, E);
5050
5098
  break;
5051
5099
  case "totalRealAmount":
5052
- if (!V) return;
5100
+ if (!Y)
5101
+ return;
5053
5102
  let p = 0;
5054
- for (const f of m.Real)
5055
- p += f.amount;
5056
- n(1, m.Total[0].amount = p, m);
5103
+ for (const d of E.Real)
5104
+ p += d.amount;
5105
+ n(1, E.Total[0].amount = p, E);
5057
5106
  }
5058
- }, Bt = (s) => {
5059
- const p = Oe(s.data);
5107
+ }, wt = (l) => {
5108
+ const p = Re(l.data);
5060
5109
  if (!p) {
5061
- ye();
5110
+ le();
5062
5111
  return;
5063
5112
  }
5064
5113
  if (p.type !== "BALANCE_UPDATE_V2")
5065
5114
  return;
5066
- const f = p.body.balanceChange;
5067
- for (const [g, v] of Object.entries(f))
5068
- if (_ === "totalRealAmount" && g === "Real" && !V && n(1, m.Total[0].amount = Ae(m.Total[0].amount, D, v), m), !!m[g])
5069
- for (const x of m[g]) {
5070
- if (!V) {
5071
- x.amount = g === "Real" ? Ae(x.amount, D, v) : v.afterAmount;
5115
+ const d = p.body.balanceChange;
5116
+ for (const [m, y] of Object.entries(d))
5117
+ if (S === "totalRealAmount" && m === "Real" && !Y && n(1, E.Total[0].amount = We(E.Total[0].amount, F, y), E), !!E[m])
5118
+ for (const x of E[m]) {
5119
+ if (!Y) {
5120
+ x.amount = m === "Real" ? We(x.amount, F, y) : y.afterAmount;
5072
5121
  continue;
5073
5122
  }
5074
- v.productType === x.productType && (x.amount = g === "Real" ? Ae(x.amount, D[x.productType], v) : v.afterAmount);
5123
+ y.productType === x.productType && (x.amount = m === "Real" ? We(x.amount, F[x.productType], y) : y.afterAmount);
5075
5124
  }
5076
- Ze();
5077
- }, at = () => {
5078
- be("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5079
- }, Tt = () => {
5080
- J.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${J}. Using default value ('${J[0]}').`), n(10, _ = J[0]));
5081
- }, wt = () => {
5082
- switch (Ca(o), Tt(), y) {
5125
+ ot();
5126
+ }, st = () => {
5127
+ ve("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5128
+ }, Ze = () => {
5129
+ ye.includes(S) || (console.error(`Unsupported value ('${S}') for totalcalculationmode parameter. Only the following values are supported ${ye}. Using default value ('${ye[0]}').`), n(10, S = ye[0]));
5130
+ }, qe = () => {
5131
+ switch (Ra(o), Ze(), B) {
5083
5132
  case "gmcore":
5084
- pe();
5133
+ Ce();
5085
5134
  break;
5086
5135
  case "gm16":
5087
- Te();
5136
+ ze();
5088
5137
  break;
5089
5138
  default:
5090
- throw Error(`Invalid apiversion attribute: ${y}`);
5139
+ throw Error(`Invalid apiversion attribute: ${B}`);
5091
5140
  }
5092
- }, Re = (s) => s.data && s.data.type === "LogoutSuccessfull" && X.close(), qe = () => {
5093
- const s = document.createElement("style");
5094
- s.innerHTML = c, O.appendChild(s);
5095
- }, we = () => {
5096
- const s = new URL(u), p = document.createElement("style");
5097
- fetch(s.href).then((f) => f.text()).then((f) => {
5098
- p.innerHTML = f, setTimeout(
5099
- () => {
5100
- O.appendChild(p);
5101
- },
5102
- 1
5103
- );
5104
- });
5105
- }, re = () => {
5141
+ }, Ee = (l) => l.data && l.data.type === "LogoutSuccessfull" && z.close(), ie = () => {
5106
5142
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5107
5143
  };
5108
- Sr(() => (window.addEventListener("message", Re, !1), () => {
5109
- window.removeEventListener("message", Re), X && X.close();
5144
+ Sr(() => (window.addEventListener("message", Ee, !1), () => {
5145
+ window.emMessageBus && q && q.unsubscribe(), window.removeEventListener("message", Ee), z && z.close();
5110
5146
  }));
5111
- const St = () => be("balance"), At = () => be("closebalance"), Ct = () => at(), ot = () => be("closeBalance");
5112
- function h(s) {
5113
- jt[s ? "unshift" : "push"](() => {
5114
- O = s, n(0, O);
5147
+ const St = () => ve("balance"), At = () => ve("closebalance"), Ct = () => st(), lt = () => ve("closeBalance");
5148
+ function h(l) {
5149
+ jt[l ? "unshift" : "push"](() => {
5150
+ U = l, n(0, U);
5115
5151
  });
5116
5152
  }
5117
- return e.$$set = (s) => {
5118
- "userid" in s && n(11, i = s.userid), "session" in s && n(12, a = s.session), "endpoint" in s && n(13, l = s.endpoint), "lang" in s && n(14, o = s.lang), "clientstyling" in s && n(15, c = s.clientstyling), "clientstylingurl" in s && n(16, u = s.clientstylingurl), "translationurl" in s && n(17, d = s.translationurl), "customlocaleidentifier" in s && n(18, b = s.customlocaleidentifier), "gmversion" in s && n(19, y = s.gmversion), "displaybalanceoption" in s && n(20, T = s.displaybalanceoption), "totalcalculationmode" in s && n(10, _ = s.totalcalculationmode), "currencyseparator" in s && n(21, H = s.currencyseparator), "currencydecimal" in s && n(22, B = s.currencydecimal), "currencyprecision" in s && n(23, A = s.currencyprecision);
5153
+ return e.$$set = (l) => {
5154
+ "userid" in l && n(11, i = l.userid), "session" in l && n(12, a = l.session), "endpoint" in l && n(13, s = l.endpoint), "lang" in l && n(14, o = l.lang), "mbsource" in l && n(15, c = l.mbsource), "clientstyling" in l && n(16, u = l.clientstyling), "clientstylingurl" in l && n(17, f = l.clientstylingurl), "translationurl" in l && n(18, g = l.translationurl), "customlocaleidentifier" in l && n(19, b = l.customlocaleidentifier), "gmversion" in l && n(20, B = l.gmversion), "displaybalanceoption" in l && n(21, T = l.displaybalanceoption), "totalcalculationmode" in l && n(10, S = l.totalcalculationmode), "currencyseparator" in l && n(22, _ = l.currencyseparator), "currencydecimal" in l && n(23, C = l.currencydecimal), "currencyprecision" in l && n(24, D = l.currencyprecision);
5119
5155
  }, e.$$.update = () => {
5120
5156
  e.$$.dirty[0] & /*lang*/
5121
- 16384 && o && ze(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5122
- 1603584 && l && i && a && o && y && T && wt(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5123
- 538624 && l && i && a && y && ye(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5124
- 32769 && c && O && qe(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5125
- 65537 && u && O && we(), e.$$.dirty[0] & /*translationurl*/
5126
- 131072 && d && it(), e.$$.dirty[0] & /*balances*/
5127
- 2 && m.Total && re();
5157
+ 16384 && o && he(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5158
+ 3176448 && s && i && a && o && B && T && qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5159
+ 1062912 && s && i && a && B && le(), e.$$.dirty[0] & /*translationurl*/
5160
+ 262144 && g && it(), e.$$.dirty[0] & /*balances*/
5161
+ 2 && E.Total && ie(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5162
+ 65537 && u && U && Gr(U, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5163
+ 131073 && f && U && $r(U, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5164
+ 32769 && c && U && jr(U, `${c}.Style`);
5128
5165
  }, [
5166
+ U,
5167
+ E,
5129
5168
  O,
5130
- m,
5169
+ re,
5170
+ X,
5131
5171
  P,
5132
- k,
5133
- ne,
5134
- W,
5135
5172
  r,
5136
- be,
5137
- We,
5138
- at,
5139
- _,
5173
+ ve,
5174
+ Se,
5175
+ st,
5176
+ S,
5140
5177
  i,
5141
5178
  a,
5142
- l,
5179
+ s,
5143
5180
  o,
5144
5181
  c,
5145
5182
  u,
5146
- d,
5183
+ f,
5184
+ g,
5147
5185
  b,
5148
- y,
5149
- T,
5150
- H,
5151
5186
  B,
5152
- A,
5187
+ T,
5188
+ _,
5189
+ C,
5190
+ D,
5153
5191
  St,
5154
5192
  At,
5155
5193
  Ct,
5156
- ot,
5194
+ lt,
5157
5195
  h
5158
5196
  ];
5159
5197
  }
5160
- class Ga extends Ur {
5198
+ class ka extends Ur {
5161
5199
  constructor(t) {
5162
5200
  super(), Pr(
5163
5201
  this,
5164
5202
  t,
5165
- Fa,
5166
- Ua,
5203
+ ja,
5204
+ $a,
5167
5205
  In,
5168
5206
  {
5169
5207
  userid: 11,
5170
5208
  session: 12,
5171
5209
  endpoint: 13,
5172
5210
  lang: 14,
5173
- clientstyling: 15,
5174
- clientstylingurl: 16,
5175
- translationurl: 17,
5176
- customlocaleidentifier: 18,
5177
- gmversion: 19,
5178
- displaybalanceoption: 20,
5211
+ mbsource: 15,
5212
+ clientstyling: 16,
5213
+ clientstylingurl: 17,
5214
+ translationurl: 18,
5215
+ customlocaleidentifier: 19,
5216
+ gmversion: 20,
5217
+ displaybalanceoption: 21,
5179
5218
  totalcalculationmode: 10,
5180
- currencyseparator: 21,
5181
- currencydecimal: 22,
5182
- currencyprecision: 23
5219
+ currencyseparator: 22,
5220
+ currencydecimal: 23,
5221
+ currencyprecision: 24
5183
5222
  },
5184
- Ia,
5223
+ Ua,
5185
5224
  [-1, -1]
5186
5225
  );
5187
5226
  }
@@ -5189,88 +5228,94 @@ class Ga extends Ur {
5189
5228
  return this.$$.ctx[11];
5190
5229
  }
5191
5230
  set userid(t) {
5192
- this.$$set({ userid: t }), Q();
5231
+ this.$$set({ userid: t }), J();
5193
5232
  }
5194
5233
  get session() {
5195
5234
  return this.$$.ctx[12];
5196
5235
  }
5197
5236
  set session(t) {
5198
- this.$$set({ session: t }), Q();
5237
+ this.$$set({ session: t }), J();
5199
5238
  }
5200
5239
  get endpoint() {
5201
5240
  return this.$$.ctx[13];
5202
5241
  }
5203
5242
  set endpoint(t) {
5204
- this.$$set({ endpoint: t }), Q();
5243
+ this.$$set({ endpoint: t }), J();
5205
5244
  }
5206
5245
  get lang() {
5207
5246
  return this.$$.ctx[14];
5208
5247
  }
5209
5248
  set lang(t) {
5210
- this.$$set({ lang: t }), Q();
5249
+ this.$$set({ lang: t }), J();
5211
5250
  }
5212
- get clientstyling() {
5251
+ get mbsource() {
5213
5252
  return this.$$.ctx[15];
5214
5253
  }
5254
+ set mbsource(t) {
5255
+ this.$$set({ mbsource: t }), J();
5256
+ }
5257
+ get clientstyling() {
5258
+ return this.$$.ctx[16];
5259
+ }
5215
5260
  set clientstyling(t) {
5216
- this.$$set({ clientstyling: t }), Q();
5261
+ this.$$set({ clientstyling: t }), J();
5217
5262
  }
5218
5263
  get clientstylingurl() {
5219
- return this.$$.ctx[16];
5264
+ return this.$$.ctx[17];
5220
5265
  }
5221
5266
  set clientstylingurl(t) {
5222
- this.$$set({ clientstylingurl: t }), Q();
5267
+ this.$$set({ clientstylingurl: t }), J();
5223
5268
  }
5224
5269
  get translationurl() {
5225
- return this.$$.ctx[17];
5270
+ return this.$$.ctx[18];
5226
5271
  }
5227
5272
  set translationurl(t) {
5228
- this.$$set({ translationurl: t }), Q();
5273
+ this.$$set({ translationurl: t }), J();
5229
5274
  }
5230
5275
  get customlocaleidentifier() {
5231
- return this.$$.ctx[18];
5276
+ return this.$$.ctx[19];
5232
5277
  }
5233
5278
  set customlocaleidentifier(t) {
5234
- this.$$set({ customlocaleidentifier: t }), Q();
5279
+ this.$$set({ customlocaleidentifier: t }), J();
5235
5280
  }
5236
5281
  get gmversion() {
5237
- return this.$$.ctx[19];
5282
+ return this.$$.ctx[20];
5238
5283
  }
5239
5284
  set gmversion(t) {
5240
- this.$$set({ gmversion: t }), Q();
5285
+ this.$$set({ gmversion: t }), J();
5241
5286
  }
5242
5287
  get displaybalanceoption() {
5243
- return this.$$.ctx[20];
5288
+ return this.$$.ctx[21];
5244
5289
  }
5245
5290
  set displaybalanceoption(t) {
5246
- this.$$set({ displaybalanceoption: t }), Q();
5291
+ this.$$set({ displaybalanceoption: t }), J();
5247
5292
  }
5248
5293
  get totalcalculationmode() {
5249
5294
  return this.$$.ctx[10];
5250
5295
  }
5251
5296
  set totalcalculationmode(t) {
5252
- this.$$set({ totalcalculationmode: t }), Q();
5297
+ this.$$set({ totalcalculationmode: t }), J();
5253
5298
  }
5254
5299
  get currencyseparator() {
5255
- return this.$$.ctx[21];
5300
+ return this.$$.ctx[22];
5256
5301
  }
5257
5302
  set currencyseparator(t) {
5258
- this.$$set({ currencyseparator: t }), Q();
5303
+ this.$$set({ currencyseparator: t }), J();
5259
5304
  }
5260
5305
  get currencydecimal() {
5261
- return this.$$.ctx[22];
5306
+ return this.$$.ctx[23];
5262
5307
  }
5263
5308
  set currencydecimal(t) {
5264
- this.$$set({ currencydecimal: t }), Q();
5309
+ this.$$set({ currencydecimal: t }), J();
5265
5310
  }
5266
5311
  get currencyprecision() {
5267
- return this.$$.ctx[23];
5312
+ return this.$$.ctx[24];
5268
5313
  }
5269
5314
  set currencyprecision(t) {
5270
- this.$$set({ currencyprecision: t }), Q();
5315
+ this.$$set({ currencyprecision: t }), J();
5271
5316
  }
5272
5317
  }
5273
- Dr(Ga, { userid: {}, session: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5318
+ Dr(ka, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5274
5319
  export {
5275
- Ga as default
5320
+ ka as default
5276
5321
  };