@everymatrix/player-account-balance-modal 1.73.2 → 1.74.0

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.
@@ -1,4 +1,4 @@
1
- function ae() {
1
+ function oe() {
2
2
  }
3
3
  function Bn(e) {
4
4
  return e();
@@ -6,7 +6,7 @@ function Bn(e) {
6
6
  function en() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function ke(e) {
9
+ function je(e) {
10
10
  e.forEach(Bn);
11
11
  }
12
12
  function Qt(e) {
@@ -22,7 +22,7 @@ function wn(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const r of t)
24
24
  r(void 0);
25
- return ae;
25
+ return oe;
26
26
  }
27
27
  const n = e.subscribe(...t);
28
28
  return n.unsubscribe ? () => n.unsubscribe() : n;
@@ -30,13 +30,13 @@ function wn(e, ...t) {
30
30
  function nr(e, t, n) {
31
31
  e.$$.on_destroy.push(wn(t, n));
32
32
  }
33
- function P(e, t) {
33
+ function M(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
36
  function rr(e, t, n) {
37
37
  const r = ir(e);
38
38
  if (!r.getElementById(t)) {
39
- const i = j("style");
39
+ const i = $("style");
40
40
  i.id = t, i.textContent = n, or(r, i);
41
41
  }
42
42
  }
@@ -51,44 +51,44 @@ function ir(e) {
51
51
  ) : e.ownerDocument;
52
52
  }
53
53
  function or(e, t) {
54
- return P(
54
+ return M(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function fe(e, t, n) {
60
+ function ce(e, t, n) {
61
61
  e.insertBefore(t, n || null);
62
62
  }
63
- function ue(e) {
63
+ function se(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
66
  function An(e, t) {
67
67
  for (let n = 0; n < e.length; n += 1)
68
68
  e[n] && e[n].d(t);
69
69
  }
70
- function j(e) {
70
+ function $(e) {
71
71
  return document.createElement(e);
72
72
  }
73
- function Ee(e) {
73
+ function ve(e) {
74
74
  return document.createTextNode(e);
75
75
  }
76
- function xe() {
77
- return Ee(" ");
76
+ function Ee() {
77
+ return ve(" ");
78
78
  }
79
79
  function ar() {
80
- return Ee("");
80
+ return ve("");
81
81
  }
82
- function dt(e, t, n, r) {
82
+ function ft(e, t, n, r) {
83
83
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
84
84
  }
85
- function q(e, t, n) {
85
+ function Z(e, t, n) {
86
86
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
87
87
  }
88
88
  function sr(e) {
89
89
  return Array.from(e.childNodes);
90
90
  }
91
- function He(e, t) {
91
+ function Ce(e, t) {
92
92
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
93
93
  t);
94
94
  }
@@ -101,96 +101,96 @@ function ur(e) {
101
101
  }
102
102
  ), t;
103
103
  }
104
- let tt;
105
- function et(e) {
106
- tt = e;
104
+ let et;
105
+ function Ke(e) {
106
+ et = e;
107
107
  }
108
108
  function lr() {
109
- if (!tt)
109
+ if (!et)
110
110
  throw new Error("Function called outside component initialization");
111
- return tt;
111
+ return et;
112
112
  }
113
113
  function hr(e) {
114
114
  lr().$$.on_mount.push(e);
115
115
  }
116
- const De = [], Dt = [];
117
- let Fe = [];
116
+ const Ie = [], Dt = [];
117
+ let De = [];
118
118
  const tn = [], cr = /* @__PURE__ */ Promise.resolve();
119
119
  let Ft = !1;
120
120
  function fr() {
121
- Ft || (Ft = !0, cr.then(z));
121
+ Ft || (Ft = !0, cr.then(X));
122
122
  }
123
123
  function Ut(e) {
124
- Fe.push(e);
124
+ De.push(e);
125
125
  }
126
126
  const Ot = /* @__PURE__ */ new Set();
127
127
  let Me = 0;
128
- function z() {
128
+ function X() {
129
129
  if (Me !== 0)
130
130
  return;
131
- const e = tt;
131
+ const e = et;
132
132
  do {
133
133
  try {
134
- for (; Me < De.length; ) {
135
- const t = De[Me];
136
- Me++, et(t), dr(t.$$);
134
+ for (; Me < Ie.length; ) {
135
+ const t = Ie[Me];
136
+ Me++, Ke(t), dr(t.$$);
137
137
  }
138
138
  } catch (t) {
139
- throw De.length = 0, Me = 0, t;
139
+ throw Ie.length = 0, Me = 0, t;
140
140
  }
141
- for (et(null), De.length = 0, Me = 0; Dt.length; )
141
+ for (Ke(null), Ie.length = 0, Me = 0; Dt.length; )
142
142
  Dt.pop()();
143
- for (let t = 0; t < Fe.length; t += 1) {
144
- const n = Fe[t];
143
+ for (let t = 0; t < De.length; t += 1) {
144
+ const n = De[t];
145
145
  Ot.has(n) || (Ot.add(n), n());
146
146
  }
147
- Fe.length = 0;
148
- } while (De.length);
147
+ De.length = 0;
148
+ } while (Ie.length);
149
149
  for (; tn.length; )
150
150
  tn.pop()();
151
- Ft = !1, Ot.clear(), et(e);
151
+ Ft = !1, Ot.clear(), Ke(e);
152
152
  }
153
153
  function dr(e) {
154
154
  if (e.fragment !== null) {
155
- e.update(), ke(e.before_update);
155
+ e.update(), je(e.before_update);
156
156
  const t = e.dirty;
157
157
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ut);
158
158
  }
159
159
  }
160
160
  function pr(e) {
161
161
  const t = [], n = [];
162
- Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
162
+ De.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), De = t;
163
163
  }
164
164
  const mr = /* @__PURE__ */ new Set();
165
165
  function gr(e, t) {
166
166
  e && e.i && (mr.delete(e), e.i(t));
167
167
  }
168
- function pt(e) {
168
+ function dt(e) {
169
169
  return e?.length !== void 0 ? e : Array.from(e);
170
170
  }
171
171
  function br(e, t, n) {
172
172
  const { fragment: r, after_update: i } = e.$$;
173
173
  r && r.m(t, n), Ut(() => {
174
174
  const o = e.$$.on_mount.map(Bn).filter(Qt);
175
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ke(o), e.$$.on_mount = [];
175
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : je(o), e.$$.on_mount = [];
176
176
  }), i.forEach(Ut);
177
177
  }
178
178
  function yr(e, t) {
179
179
  const n = e.$$;
180
- n.fragment !== null && (pr(n.after_update), ke(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
180
+ n.fragment !== null && (pr(n.after_update), je(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
181
181
  }
182
182
  function vr(e, t) {
183
- e.$$.dirty[0] === -1 && (De.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
183
+ e.$$.dirty[0] === -1 && (Ie.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
184
184
  }
185
185
  function Er(e, t, n, r, i, o, u = null, s = [-1]) {
186
- const f = tt;
187
- et(e);
188
- const l = e.$$ = {
186
+ const d = et;
187
+ Ke(e);
188
+ const h = e.$$ = {
189
189
  fragment: null,
190
190
  ctx: [],
191
191
  // state
192
192
  props: o,
193
- update: ae,
193
+ update: oe,
194
194
  not_equal: i,
195
195
  bound: en(),
196
196
  // lifecycle
@@ -199,27 +199,27 @@ function Er(e, t, n, r, i, o, u = null, s = [-1]) {
199
199
  on_disconnect: [],
200
200
  before_update: [],
201
201
  after_update: [],
202
- context: new Map(t.context || (f ? f.$$.context : [])),
202
+ context: new Map(t.context || (d ? d.$$.context : [])),
203
203
  // everything else
204
204
  callbacks: en(),
205
205
  dirty: s,
206
206
  skip_bound: !1,
207
- root: t.target || f.$$.root
207
+ root: t.target || d.$$.root
208
208
  };
209
- u && u(l.root);
209
+ u && u(h.root);
210
210
  let c = !1;
211
- if (l.ctx = n ? n(e, t.props || {}, (m, g, ...x) => {
212
- const _ = x.length ? x[0] : g;
213
- return l.ctx && i(l.ctx[m], l.ctx[m] = _) && (!l.skip_bound && l.bound[m] && l.bound[m](_), c && vr(e, m)), g;
214
- }) : [], l.update(), c = !0, ke(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
211
+ if (h.ctx = n ? n(e, t.props || {}, (g, y, ...x) => {
212
+ const T = x.length ? x[0] : y;
213
+ return h.ctx && i(h.ctx[g], h.ctx[g] = T) && (!h.skip_bound && h.bound[g] && h.bound[g](T), c && vr(e, g)), y;
214
+ }) : [], h.update(), c = !0, je(h.before_update), h.fragment = r ? r(h.ctx) : !1, t.target) {
215
215
  if (t.hydrate) {
216
- const m = sr(t.target);
217
- l.fragment && l.fragment.l(m), m.forEach(ue);
216
+ const g = sr(t.target);
217
+ h.fragment && h.fragment.l(g), g.forEach(se);
218
218
  } else
219
- l.fragment && l.fragment.c();
220
- t.intro && gr(e.$$.fragment), br(e, t.target, t.anchor), z();
219
+ h.fragment && h.fragment.c();
220
+ t.intro && gr(e.$$.fragment), br(e, t.target, t.anchor), X();
221
221
  }
222
- et(f);
222
+ Ke(d);
223
223
  }
224
224
  let Cn;
225
225
  typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
@@ -264,17 +264,17 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
264
264
  let o;
265
265
  return {
266
266
  c: function() {
267
- o = j("slot"), i !== "default" && q(o, "name", i);
267
+ o = $("slot"), i !== "default" && Z(o, "name", i);
268
268
  },
269
269
  /**
270
270
  * @param {HTMLElement} target
271
271
  * @param {HTMLElement} [anchor]
272
272
  */
273
- m: function(f, l) {
274
- fe(f, o, l);
273
+ m: function(d, h) {
274
+ ce(d, o, h);
275
275
  },
276
- d: function(f) {
277
- f && ue(o);
276
+ d: function(d) {
277
+ d && se(o);
278
278
  }
279
279
  };
280
280
  };
@@ -286,7 +286,7 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
286
286
  i in n && (t[i] = [e(i)]);
287
287
  for (const i of this.attributes) {
288
288
  const o = this.$$g_p(i.name);
289
- o in this.$$d || (this.$$d[o] = ht(o, i.value, this.$$p_d, "toProp"));
289
+ o in this.$$d || (this.$$d[o] = lt(o, i.value, this.$$p_d, "toProp"));
290
290
  }
291
291
  for (const i in this.$$p_d)
292
292
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -304,7 +304,7 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
304
304
  this.$$r = !0;
305
305
  for (const i in this.$$p_d)
306
306
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
307
- const o = ht(
307
+ const o = lt(
308
308
  i,
309
309
  this.$$d[i],
310
310
  this.$$p_d,
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
326
326
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
327
327
  // and setting attributes through setAttribute etc, this is helpful
328
328
  attributeChangedCallback(e, t, n) {
329
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ht(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
329
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = lt(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
330
330
  }
331
331
  disconnectedCallback() {
332
332
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -339,7 +339,7 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
339
339
  ) || e;
340
340
  }
341
341
  });
342
- function ht(e, t, n, r) {
342
+ function lt(e, t, n, r) {
343
343
  const i = n[e]?.type;
344
344
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
345
345
  return t;
@@ -384,8 +384,8 @@ function xr(e, t, n, r, i, o) {
384
384
  get() {
385
385
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
386
386
  },
387
- set(f) {
388
- f = ht(s, f, t), this.$$d[s] = f, this.$$c?.$set({ [s]: f });
387
+ set(d) {
388
+ d = lt(s, d, t), this.$$d[s] = d, this.$$c?.$set({ [s]: d });
389
389
  }
390
390
  });
391
391
  }), r.forEach((s) => {
@@ -416,7 +416,7 @@ class _r {
416
416
  $$set = void 0;
417
417
  /** @returns {void} */
418
418
  $destroy() {
419
- yr(this, 1), this.$destroy = ae;
419
+ yr(this, 1), this.$destroy = oe;
420
420
  }
421
421
  /**
422
422
  * @template {Extract<keyof Events, string>} K
@@ -426,7 +426,7 @@ class _r {
426
426
  */
427
427
  $on(t, n) {
428
428
  if (!Qt(n))
429
- return ae;
429
+ return oe;
430
430
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
431
431
  return r.push(n), () => {
432
432
  const i = r.indexOf(n);
@@ -466,66 +466,66 @@ function wr(e, t, n) {
466
466
  });
467
467
  }
468
468
  }
469
- const Ie = [];
469
+ const Pe = [];
470
470
  function Ar(e, t) {
471
471
  return {
472
- subscribe: yt(e, t).subscribe
472
+ subscribe: bt(e, t).subscribe
473
473
  };
474
474
  }
475
- function yt(e, t = ae) {
475
+ function bt(e, t = oe) {
476
476
  let n;
477
477
  const r = /* @__PURE__ */ new Set();
478
478
  function i(s) {
479
479
  if (Sn(e, s) && (e = s, n)) {
480
- const f = !Ie.length;
481
- for (const l of r)
482
- l[1](), Ie.push(l, e);
483
- if (f) {
484
- for (let l = 0; l < Ie.length; l += 2)
485
- Ie[l][0](Ie[l + 1]);
486
- Ie.length = 0;
480
+ const d = !Pe.length;
481
+ for (const h of r)
482
+ h[1](), Pe.push(h, e);
483
+ if (d) {
484
+ for (let h = 0; h < Pe.length; h += 2)
485
+ Pe[h][0](Pe[h + 1]);
486
+ Pe.length = 0;
487
487
  }
488
488
  }
489
489
  }
490
490
  function o(s) {
491
491
  i(s(e));
492
492
  }
493
- function u(s, f = ae) {
494
- const l = [s, f];
495
- return r.add(l), r.size === 1 && (n = t(i, o) || ae), s(e), () => {
496
- r.delete(l), r.size === 0 && n && (n(), n = null);
493
+ function u(s, d = oe) {
494
+ const h = [s, d];
495
+ return r.add(h), r.size === 1 && (n = t(i, o) || oe), s(e), () => {
496
+ r.delete(h), r.size === 0 && n && (n(), n = null);
497
497
  };
498
498
  }
499
499
  return { set: i, update: o, subscribe: u };
500
500
  }
501
- function Ve(e, t, n) {
501
+ function ke(e, t, n) {
502
502
  const r = !Array.isArray(e), i = r ? [e] : e;
503
503
  if (!i.every(Boolean))
504
504
  throw new Error("derived() expects stores as input, got a falsy value");
505
505
  const o = t.length < 2;
506
506
  return Ar(n, (u, s) => {
507
- let f = !1;
508
- const l = [];
509
- let c = 0, m = ae;
510
- const g = () => {
507
+ let d = !1;
508
+ const h = [];
509
+ let c = 0, g = oe;
510
+ const y = () => {
511
511
  if (c)
512
512
  return;
513
- m();
514
- const _ = t(r ? l[0] : l, u, s);
515
- o ? u(_) : m = Qt(_) ? _ : ae;
513
+ g();
514
+ const T = t(r ? h[0] : h, u, s);
515
+ o ? u(T) : g = Qt(T) ? T : oe;
516
516
  }, x = i.map(
517
- (_, M) => wn(
518
- _,
519
- (k) => {
520
- l[M] = k, c &= ~(1 << M), f && g();
517
+ (T, P) => wn(
518
+ T,
519
+ (j) => {
520
+ h[P] = j, c &= ~(1 << P), d && y();
521
521
  },
522
522
  () => {
523
- c |= 1 << M;
523
+ c |= 1 << P;
524
524
  }
525
525
  )
526
526
  );
527
- return f = !0, g(), function() {
528
- ke(x), m(), f = !1;
527
+ return d = !0, y(), function() {
528
+ je(x), g(), d = !1;
529
529
  };
530
530
  });
531
531
  }
@@ -541,28 +541,28 @@ function Lr(e) {
541
541
  }
542
542
  function Rr(e) {
543
543
  var t = Object.prototype.toString.call(e);
544
- return t === "[object RegExp]" || t === "[object Date]" || Mr(e);
544
+ return t === "[object RegExp]" || t === "[object Date]" || Pr(e);
545
545
  }
546
- var Nr = typeof Symbol == "function" && Symbol.for, Pr = Nr ? Symbol.for("react.element") : 60103;
547
- function Mr(e) {
548
- return e.$$typeof === Pr;
546
+ var Nr = typeof Symbol == "function" && Symbol.for, Mr = Nr ? Symbol.for("react.element") : 60103;
547
+ function Pr(e) {
548
+ return e.$$typeof === Mr;
549
549
  }
550
550
  function Ir(e) {
551
551
  return Array.isArray(e) ? [] : {};
552
552
  }
553
- function nt(e, t) {
554
- return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Ir(e), e, t) : e;
553
+ function tt(e, t) {
554
+ return t.clone !== !1 && t.isMergeableObject(e) ? Fe(Ir(e), e, t) : e;
555
555
  }
556
556
  function Dr(e, t, n) {
557
557
  return e.concat(t).map(function(r) {
558
- return nt(r, n);
558
+ return tt(r, n);
559
559
  });
560
560
  }
561
561
  function Fr(e, t) {
562
562
  if (!t.customMerge)
563
- return Ue;
563
+ return Fe;
564
564
  var n = t.customMerge(e);
565
- return typeof n == "function" ? n : Ue;
565
+ return typeof n == "function" ? n : Fe;
566
566
  }
567
567
  function Ur(e) {
568
568
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
@@ -585,24 +585,24 @@ function Gr(e, t) {
585
585
  function $r(e, t, n) {
586
586
  var r = {};
587
587
  return n.isMergeableObject(e) && nn(e).forEach(function(i) {
588
- r[i] = nt(e[i], n);
588
+ r[i] = tt(e[i], n);
589
589
  }), nn(t).forEach(function(i) {
590
- Gr(e, i) || (Hn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
590
+ Gr(e, i) || (Hn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fr(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
591
591
  }), r;
592
592
  }
593
- function Ue(e, t, n) {
594
- n = n || {}, n.arrayMerge = n.arrayMerge || Dr, n.isMergeableObject = n.isMergeableObject || Or, n.cloneUnlessOtherwiseSpecified = nt;
593
+ function Fe(e, t, n) {
594
+ n = n || {}, n.arrayMerge = n.arrayMerge || Dr, n.isMergeableObject = n.isMergeableObject || Or, n.cloneUnlessOtherwiseSpecified = tt;
595
595
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
596
- return o ? r ? n.arrayMerge(e, t, n) : $r(e, t, n) : nt(t, n);
596
+ return o ? r ? n.arrayMerge(e, t, n) : $r(e, t, n) : tt(t, n);
597
597
  }
598
- Ue.all = function(t, n) {
598
+ Fe.all = function(t, n) {
599
599
  if (!Array.isArray(t))
600
600
  throw new Error("first argument should be an array");
601
601
  return t.reduce(function(r, i) {
602
- return Ue(r, i, n);
602
+ return Fe(r, i, n);
603
603
  }, {});
604
604
  };
605
- var jr = Ue, kr = jr;
605
+ var jr = Fe, kr = jr;
606
606
  const Vr = /* @__PURE__ */ Hr(kr);
607
607
  var Gt = function(e, t) {
608
608
  return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
@@ -612,7 +612,7 @@ var Gt = function(e, t) {
612
612
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
613
613
  }, Gt(e, t);
614
614
  };
615
- function vt(e, t) {
615
+ function yt(e, t) {
616
616
  if (typeof t != "function" && t !== null)
617
617
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
618
618
  Gt(e, t);
@@ -621,15 +621,15 @@ function vt(e, t) {
621
621
  }
622
622
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
623
623
  }
624
- var ce = function() {
625
- return ce = Object.assign || function(t) {
624
+ var he = function() {
625
+ return he = Object.assign || function(t) {
626
626
  for (var n, r = 1, i = arguments.length; r < i; r++) {
627
627
  n = arguments[r];
628
628
  for (var o in n)
629
629
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
630
630
  }
631
631
  return t;
632
- }, ce.apply(this, arguments);
632
+ }, he.apply(this, arguments);
633
633
  };
634
634
  function Xr(e, t) {
635
635
  var n = {};
@@ -694,60 +694,60 @@ var Qr = function() {
694
694
  }
695
695
  }, Nt = {
696
696
  variadic: qr
697
- }, mt = function() {
698
- return mt = Object.assign || function(t) {
697
+ }, pt = function() {
698
+ return pt = Object.assign || function(t) {
699
699
  for (var n, r = 1, i = arguments.length; r < i; r++) {
700
700
  n = arguments[r];
701
701
  for (var o in n)
702
702
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
703
703
  }
704
704
  return t;
705
- }, mt.apply(this, arguments);
705
+ }, pt.apply(this, arguments);
706
706
  };
707
- var O;
707
+ var C;
708
708
  (function(e) {
709
709
  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";
710
- })(O || (O = {}));
711
- var F;
710
+ })(C || (C = {}));
711
+ var D;
712
712
  (function(e) {
713
713
  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";
714
- })(F || (F = {}));
715
- var Ge;
714
+ })(D || (D = {}));
715
+ var Ue;
716
716
  (function(e) {
717
717
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
718
- })(Ge || (Ge = {}));
718
+ })(Ue || (Ue = {}));
719
719
  function rn(e) {
720
- return e.type === F.literal;
720
+ return e.type === D.literal;
721
721
  }
722
722
  function Kr(e) {
723
- return e.type === F.argument;
723
+ return e.type === D.argument;
724
724
  }
725
725
  function Rn(e) {
726
- return e.type === F.number;
726
+ return e.type === D.number;
727
727
  }
728
728
  function Nn(e) {
729
- return e.type === F.date;
730
- }
731
- function Pn(e) {
732
- return e.type === F.time;
729
+ return e.type === D.date;
733
730
  }
734
731
  function Mn(e) {
735
- return e.type === F.select;
732
+ return e.type === D.time;
733
+ }
734
+ function Pn(e) {
735
+ return e.type === D.select;
736
736
  }
737
737
  function In(e) {
738
- return e.type === F.plural;
738
+ return e.type === D.plural;
739
739
  }
740
740
  function ei(e) {
741
- return e.type === F.pound;
741
+ return e.type === D.pound;
742
742
  }
743
743
  function Dn(e) {
744
- return e.type === F.tag;
744
+ return e.type === D.tag;
745
745
  }
746
746
  function Fn(e) {
747
- return !!(e && typeof e == "object" && e.type === Ge.number);
747
+ return !!(e && typeof e == "object" && e.type === Ue.number);
748
748
  }
749
749
  function $t(e) {
750
- return !!(e && typeof e == "object" && e.type === Ge.dateTime);
750
+ return !!(e && typeof e == "object" && e.type === Ue.dateTime);
751
751
  }
752
752
  var Un = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ti = /(?:[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;
753
753
  function ni(e) {
@@ -841,32 +841,32 @@ function ni(e) {
841
841
  return "";
842
842
  }), t;
843
843
  }
844
- var G = function() {
845
- return G = Object.assign || function(t) {
844
+ var U = function() {
845
+ return U = Object.assign || function(t) {
846
846
  for (var n, r = 1, i = arguments.length; r < i; r++) {
847
847
  n = arguments[r];
848
848
  for (var o in n)
849
849
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
850
850
  }
851
851
  return t;
852
- }, G.apply(this, arguments);
852
+ }, U.apply(this, arguments);
853
853
  };
854
854
  var ri = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
855
855
  function ii(e) {
856
856
  if (e.length === 0)
857
857
  throw new Error("Number skeleton cannot be empty");
858
- for (var t = e.split(ri).filter(function(g) {
859
- return g.length > 0;
858
+ for (var t = e.split(ri).filter(function(y) {
859
+ return y.length > 0;
860
860
  }), n = [], r = 0, i = t; r < i.length; r++) {
861
861
  var o = i[r], u = o.split("/");
862
862
  if (u.length === 0)
863
863
  throw new Error("Invalid number skeleton");
864
- for (var s = u[0], f = u.slice(1), l = 0, c = f; l < c.length; l++) {
865
- var m = c[l];
866
- if (m.length === 0)
864
+ for (var s = u[0], d = u.slice(1), h = 0, c = d; h < c.length; h++) {
865
+ var g = c[h];
866
+ if (g.length === 0)
867
867
  throw new Error("Invalid number skeleton");
868
868
  }
869
- n.push({ stem: s, options: f });
869
+ n.push({ stem: s, options: d });
870
870
  }
871
871
  return n;
872
872
  }
@@ -973,13 +973,13 @@ function ui(e) {
973
973
  t.notation = "compact", t.compactDisplay = "long";
974
974
  continue;
975
975
  case "scientific":
976
- t = G(G(G({}, t), { notation: "scientific" }), i.options.reduce(function(f, l) {
977
- return G(G({}, f), sn(l));
976
+ t = U(U(U({}, t), { notation: "scientific" }), i.options.reduce(function(d, h) {
977
+ return U(U({}, d), sn(h));
978
978
  }, {}));
979
979
  continue;
980
980
  case "engineering":
981
- t = G(G(G({}, t), { notation: "engineering" }), i.options.reduce(function(f, l) {
982
- return G(G({}, f), sn(l));
981
+ t = U(U(U({}, t), { notation: "engineering" }), i.options.reduce(function(d, h) {
982
+ return U(U({}, d), sn(h));
983
983
  }, {}));
984
984
  continue;
985
985
  case "notation-simple":
@@ -1024,11 +1024,11 @@ function ui(e) {
1024
1024
  case "integer-width":
1025
1025
  if (i.options.length > 1)
1026
1026
  throw new RangeError("integer-width stems only accept a single optional option");
1027
- i.options[0].replace(ai, function(f, l, c, m, g, x) {
1028
- if (l)
1027
+ i.options[0].replace(ai, function(d, h, c, g, y, x) {
1028
+ if (h)
1029
1029
  t.minimumIntegerDigits = c.length;
1030
1030
  else {
1031
- if (m && g)
1031
+ if (g && y)
1032
1032
  throw new Error("We currently do not support maximum integer digits");
1033
1033
  if (x)
1034
1034
  throw new Error("We currently do not support exact integer digits");
@@ -1044,25 +1044,25 @@ function ui(e) {
1044
1044
  if (on.test(i.stem)) {
1045
1045
  if (i.options.length > 1)
1046
1046
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1047
- i.stem.replace(on, function(f, l, c, m, g, x) {
1048
- return c === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : g && x ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + x.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1047
+ i.stem.replace(on, function(d, h, c, g, y, x) {
1048
+ return c === "*" ? t.minimumFractionDigits = h.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : y && x ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + x.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1049
1049
  });
1050
1050
  var o = i.options[0];
1051
- o === "w" ? t = G(G({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = G(G({}, t), an(o)));
1051
+ o === "w" ? t = U(U({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = U(U({}, t), an(o)));
1052
1052
  continue;
1053
1053
  }
1054
1054
  if (Gn.test(i.stem)) {
1055
- t = G(G({}, t), an(i.stem));
1055
+ t = U(U({}, t), an(i.stem));
1056
1056
  continue;
1057
1057
  }
1058
1058
  var u = jn(i.stem);
1059
- u && (t = G(G({}, t), u));
1059
+ u && (t = U(U({}, t), u));
1060
1060
  var s = si(i.stem);
1061
- s && (t = G(G({}, t), s));
1061
+ s && (t = U(U({}, t), s));
1062
1062
  }
1063
1063
  return t;
1064
1064
  }
1065
- var lt = {
1065
+ var ut = {
1066
1066
  "001": [
1067
1067
  "H",
1068
1068
  "h"
@@ -2483,11 +2483,11 @@ function li(e, t) {
2483
2483
  if (i === "j") {
2484
2484
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2485
2485
  o++, r++;
2486
- var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), f = "a", l = hi(t);
2487
- for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2488
- n += f;
2486
+ var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), d = "a", h = hi(t);
2487
+ for ((h == "H" || h == "k") && (s = 0); s-- > 0; )
2488
+ n += d;
2489
2489
  for (; u-- > 0; )
2490
- n = l + n;
2490
+ n = h + n;
2491
2491
  } else
2492
2492
  i === "J" ? n += "H" : n += i;
2493
2493
  }
@@ -2512,11 +2512,11 @@ function hi(e) {
2512
2512
  }
2513
2513
  var n = e.language, r;
2514
2514
  n !== "root" && (r = e.maximize().region);
2515
- var i = lt[r || ""] || lt[n || ""] || lt["".concat(n, "-001")] || lt["001"];
2515
+ var i = ut[r || ""] || ut[n || ""] || ut["".concat(n, "-001")] || ut["001"];
2516
2516
  return i[0];
2517
2517
  }
2518
- var Pt, ci = new RegExp("^".concat(Un.source, "*")), fi = new RegExp("".concat(Un.source, "*$"));
2519
- function L(e, t) {
2518
+ var Mt, ci = new RegExp("^".concat(Un.source, "*")), fi = new RegExp("".concat(Un.source, "*$"));
2519
+ function H(e, t) {
2520
2520
  return { start: e, end: t };
2521
2521
  }
2522
2522
  var di = !!String.prototype.startsWith && "_a".startsWith("a", 1), pi = !!String.fromCodePoint, mi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, yi = !!String.prototype.trimEnd, vi = !!Number.isSafeInteger, Ei = vi ? Number.isSafeInteger : function(e) {
@@ -2524,7 +2524,7 @@ var di = !!String.prototype.startsWith && "_a".startsWith("a", 1), pi = !!String
2524
2524
  }, jt = !0;
2525
2525
  try {
2526
2526
  var xi = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2527
- jt = ((Pt = xi.exec("a")) === null || Pt === void 0 ? void 0 : Pt[0]) === "a";
2527
+ jt = ((Mt = xi.exec("a")) === null || Mt === void 0 ? void 0 : Mt[0]) === "a";
2528
2528
  } catch {
2529
2529
  jt = !1;
2530
2530
  }
@@ -2643,13 +2643,13 @@ var Bi = (
2643
2643
  if (o === 35 && (n === "plural" || n === "selectordinal")) {
2644
2644
  var s = this.clonePosition();
2645
2645
  this.bump(), i.push({
2646
- type: F.pound,
2647
- location: L(s, this.clonePosition())
2646
+ type: D.pound,
2647
+ location: H(s, this.clonePosition())
2648
2648
  });
2649
2649
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2650
2650
  if (r)
2651
2651
  break;
2652
- return this.error(O.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2652
+ return this.error(C.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
2653
2653
  } else if (o === 60 && !this.ignoreTag && Xt(this.peek() || 0)) {
2654
2654
  var u = this.parseTag(t, n);
2655
2655
  if (u.err)
@@ -2671,9 +2671,9 @@ var Bi = (
2671
2671
  if (this.bumpSpace(), this.bumpIf("/>"))
2672
2672
  return {
2673
2673
  val: {
2674
- type: F.literal,
2674
+ type: D.literal,
2675
2675
  value: "<".concat(i, "/>"),
2676
- location: L(r, this.clonePosition())
2676
+ location: H(r, this.clonePosition())
2677
2677
  },
2678
2678
  err: null
2679
2679
  };
@@ -2684,21 +2684,21 @@ var Bi = (
2684
2684
  var u = o.val, s = this.clonePosition();
2685
2685
  if (this.bumpIf("</")) {
2686
2686
  if (this.isEOF() || !Xt(this.char()))
2687
- return this.error(O.INVALID_TAG, L(s, this.clonePosition()));
2688
- var f = this.clonePosition(), l = this.parseTagName();
2689
- return i !== l ? this.error(O.UNMATCHED_CLOSING_TAG, L(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2687
+ return this.error(C.INVALID_TAG, H(s, this.clonePosition()));
2688
+ var d = this.clonePosition(), h = this.parseTagName();
2689
+ return i !== h ? this.error(C.UNMATCHED_CLOSING_TAG, H(d, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2690
2690
  val: {
2691
- type: F.tag,
2691
+ type: D.tag,
2692
2692
  value: i,
2693
2693
  children: u,
2694
- location: L(r, this.clonePosition())
2694
+ location: H(r, this.clonePosition())
2695
2695
  },
2696
2696
  err: null
2697
- } : this.error(O.INVALID_TAG, L(s, this.clonePosition())));
2697
+ } : this.error(C.INVALID_TAG, H(s, this.clonePosition())));
2698
2698
  } else
2699
- return this.error(O.UNCLOSED_TAG, L(r, this.clonePosition()));
2699
+ return this.error(C.UNCLOSED_TAG, H(r, this.clonePosition()));
2700
2700
  } else
2701
- return this.error(O.INVALID_TAG, L(r, this.clonePosition()));
2701
+ return this.error(C.INVALID_TAG, H(r, this.clonePosition()));
2702
2702
  }, e.prototype.parseTagName = function() {
2703
2703
  var t = this.offset();
2704
2704
  for (this.bump(); !this.isEOF() && wi(this.char()); )
@@ -2723,9 +2723,9 @@ var Bi = (
2723
2723
  }
2724
2724
  break;
2725
2725
  }
2726
- var f = L(r, this.clonePosition());
2726
+ var d = H(r, this.clonePosition());
2727
2727
  return {
2728
- val: { type: F.literal, value: i, location: f },
2728
+ val: { type: D.literal, value: i, location: d },
2729
2729
  err: null
2730
2730
  };
2731
2731
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -2773,91 +2773,91 @@ var Bi = (
2773
2773
  }, e.prototype.parseArgument = function(t, n) {
2774
2774
  var r = this.clonePosition();
2775
2775
  if (this.bump(), this.bumpSpace(), this.isEOF())
2776
- return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2776
+ return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
2777
2777
  if (this.char() === 125)
2778
- return this.bump(), this.error(O.EMPTY_ARGUMENT, L(r, this.clonePosition()));
2778
+ return this.bump(), this.error(C.EMPTY_ARGUMENT, H(r, this.clonePosition()));
2779
2779
  var i = this.parseIdentifierIfPossible().value;
2780
2780
  if (!i)
2781
- return this.error(O.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2781
+ return this.error(C.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
2782
2782
  if (this.bumpSpace(), this.isEOF())
2783
- return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2783
+ return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
2784
2784
  switch (this.char()) {
2785
2785
  case 125:
2786
2786
  return this.bump(), {
2787
2787
  val: {
2788
- type: F.argument,
2788
+ type: D.argument,
2789
2789
  // value does not include the opening and closing braces.
2790
2790
  value: i,
2791
- location: L(r, this.clonePosition())
2791
+ location: H(r, this.clonePosition())
2792
2792
  },
2793
2793
  err: null
2794
2794
  };
2795
2795
  case 44:
2796
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2796
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2797
2797
  default:
2798
- return this.error(O.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2798
+ return this.error(C.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
2799
2799
  }
2800
2800
  }, e.prototype.parseIdentifierIfPossible = function() {
2801
2801
  var t = this.clonePosition(), n = this.offset(), r = Vt(this.message, n), i = n + r.length;
2802
2802
  this.bumpTo(i);
2803
- var o = this.clonePosition(), u = L(t, o);
2803
+ var o = this.clonePosition(), u = H(t, o);
2804
2804
  return { value: r, location: u };
2805
2805
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2806
- var o, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value, f = this.clonePosition();
2806
+ var o, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value, d = this.clonePosition();
2807
2807
  switch (s) {
2808
2808
  case "":
2809
- return this.error(O.EXPECT_ARGUMENT_TYPE, L(u, f));
2809
+ return this.error(C.EXPECT_ARGUMENT_TYPE, H(u, d));
2810
2810
  case "number":
2811
2811
  case "date":
2812
2812
  case "time": {
2813
2813
  this.bumpSpace();
2814
- var l = null;
2814
+ var h = null;
2815
2815
  if (this.bumpIf(",")) {
2816
2816
  this.bumpSpace();
2817
- var c = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2818
- if (m.err)
2819
- return m;
2820
- var g = Ti(m.val);
2821
- if (g.length === 0)
2822
- return this.error(O.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2823
- var x = L(c, this.clonePosition());
2824
- l = { style: g, styleLocation: x };
2817
+ var c = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2818
+ if (g.err)
2819
+ return g;
2820
+ var y = Ti(g.val);
2821
+ if (y.length === 0)
2822
+ return this.error(C.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
2823
+ var x = H(c, this.clonePosition());
2824
+ h = { style: y, styleLocation: x };
2825
2825
  }
2826
- var _ = this.tryParseArgumentClose(i);
2827
- if (_.err)
2828
- return _;
2829
- var M = L(i, this.clonePosition());
2830
- if (l && un(l?.style, "::", 0)) {
2831
- var k = _i(l.style.slice(2));
2826
+ var T = this.tryParseArgumentClose(i);
2827
+ if (T.err)
2828
+ return T;
2829
+ var P = H(i, this.clonePosition());
2830
+ if (h && un(h?.style, "::", 0)) {
2831
+ var j = _i(h.style.slice(2));
2832
2832
  if (s === "number") {
2833
- var m = this.parseNumberSkeletonFromString(k, l.styleLocation);
2834
- return m.err ? m : {
2835
- val: { type: F.number, value: r, location: M, style: m.val },
2833
+ var g = this.parseNumberSkeletonFromString(j, h.styleLocation);
2834
+ return g.err ? g : {
2835
+ val: { type: D.number, value: r, location: P, style: g.val },
2836
2836
  err: null
2837
2837
  };
2838
2838
  } else {
2839
- if (k.length === 0)
2840
- return this.error(O.EXPECT_DATE_TIME_SKELETON, M);
2841
- var W = k;
2842
- this.locale && (W = li(k, this.locale));
2843
- var g = {
2844
- type: Ge.dateTime,
2845
- pattern: W,
2846
- location: l.styleLocation,
2847
- parsedOptions: this.shouldParseSkeletons ? ni(W) : {}
2848
- }, $ = s === "date" ? F.date : F.time;
2839
+ if (j.length === 0)
2840
+ return this.error(C.EXPECT_DATE_TIME_SKELETON, P);
2841
+ var z = j;
2842
+ this.locale && (z = li(j, this.locale));
2843
+ var y = {
2844
+ type: Ue.dateTime,
2845
+ pattern: z,
2846
+ location: h.styleLocation,
2847
+ parsedOptions: this.shouldParseSkeletons ? ni(z) : {}
2848
+ }, G = s === "date" ? D.date : D.time;
2849
2849
  return {
2850
- val: { type: $, value: r, location: M, style: g },
2850
+ val: { type: G, value: r, location: P, style: y },
2851
2851
  err: null
2852
2852
  };
2853
2853
  }
2854
2854
  }
2855
2855
  return {
2856
2856
  val: {
2857
- type: s === "number" ? F.number : s === "date" ? F.date : F.time,
2857
+ type: s === "number" ? D.number : s === "date" ? D.date : D.time,
2858
2858
  value: r,
2859
- location: M,
2860
- style: (o = l?.style) !== null && o !== void 0 ? o : null
2859
+ location: P,
2860
+ style: (o = h?.style) !== null && o !== void 0 ? o : null
2861
2861
  },
2862
2862
  err: null
2863
2863
  };
@@ -2865,52 +2865,52 @@ var Bi = (
2865
2865
  case "plural":
2866
2866
  case "selectordinal":
2867
2867
  case "select": {
2868
- var S = this.clonePosition();
2868
+ var B = this.clonePosition();
2869
2869
  if (this.bumpSpace(), !this.bumpIf(","))
2870
- return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, L(S, mt({}, S)));
2870
+ return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS, H(B, pt({}, B)));
2871
2871
  this.bumpSpace();
2872
- var A = this.parseIdentifierIfPossible(), D = 0;
2873
- if (s !== "select" && A.value === "offset") {
2872
+ var w = this.parseIdentifierIfPossible(), I = 0;
2873
+ if (s !== "select" && w.value === "offset") {
2874
2874
  if (!this.bumpIf(":"))
2875
- return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2875
+ return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
2876
2876
  this.bumpSpace();
2877
- var m = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2878
- if (m.err)
2879
- return m;
2880
- this.bumpSpace(), A = this.parseIdentifierIfPossible(), D = m.val;
2877
+ var g = this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2878
+ if (g.err)
2879
+ return g;
2880
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), I = g.val;
2881
2881
  }
2882
- var R = this.tryParsePluralOrSelectOptions(t, s, n, A);
2882
+ var R = this.tryParsePluralOrSelectOptions(t, s, n, w);
2883
2883
  if (R.err)
2884
2884
  return R;
2885
- var _ = this.tryParseArgumentClose(i);
2886
- if (_.err)
2887
- return _;
2888
- var ee = L(i, this.clonePosition());
2885
+ var T = this.tryParseArgumentClose(i);
2886
+ if (T.err)
2887
+ return T;
2888
+ var K = H(i, this.clonePosition());
2889
2889
  return s === "select" ? {
2890
2890
  val: {
2891
- type: F.select,
2891
+ type: D.select,
2892
2892
  value: r,
2893
2893
  options: ln(R.val),
2894
- location: ee
2894
+ location: K
2895
2895
  },
2896
2896
  err: null
2897
2897
  } : {
2898
2898
  val: {
2899
- type: F.plural,
2899
+ type: D.plural,
2900
2900
  value: r,
2901
2901
  options: ln(R.val),
2902
- offset: D,
2902
+ offset: I,
2903
2903
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2904
- location: ee
2904
+ location: K
2905
2905
  },
2906
2906
  err: null
2907
2907
  };
2908
2908
  }
2909
2909
  default:
2910
- return this.error(O.INVALID_ARGUMENT_TYPE, L(u, f));
2910
+ return this.error(C.INVALID_ARGUMENT_TYPE, H(u, d));
2911
2911
  }
2912
2912
  }, e.prototype.tryParseArgumentClose = function(t) {
2913
- return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2913
+ return this.isEOF() || this.char() !== 125 ? this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2914
2914
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2915
2915
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2916
2916
  var r = this.char();
@@ -2919,7 +2919,7 @@ var Bi = (
2919
2919
  this.bump();
2920
2920
  var i = this.clonePosition();
2921
2921
  if (!this.bumpUntil("'"))
2922
- return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
2922
+ return this.error(C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, H(i, this.clonePosition()));
2923
2923
  this.bump();
2924
2924
  break;
2925
2925
  }
@@ -2951,11 +2951,11 @@ var Bi = (
2951
2951
  try {
2952
2952
  r = ii(t);
2953
2953
  } catch {
2954
- return this.error(O.INVALID_NUMBER_SKELETON, n);
2954
+ return this.error(C.INVALID_NUMBER_SKELETON, n);
2955
2955
  }
2956
2956
  return {
2957
2957
  val: {
2958
- type: Ge.number,
2958
+ type: Ue.number,
2959
2959
  tokens: r,
2960
2960
  location: n,
2961
2961
  parsedOptions: this.shouldParseSkeletons ? ui(r) : {}
@@ -2963,38 +2963,38 @@ var Bi = (
2963
2963
  err: null
2964
2964
  };
2965
2965
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2966
- for (var o, u = !1, s = [], f = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
2967
- if (l.length === 0) {
2968
- var m = this.clonePosition();
2966
+ for (var o, u = !1, s = [], d = /* @__PURE__ */ new Set(), h = i.value, c = i.location; ; ) {
2967
+ if (h.length === 0) {
2968
+ var g = this.clonePosition();
2969
2969
  if (n !== "select" && this.bumpIf("=")) {
2970
- var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
2971
- if (g.err)
2972
- return g;
2973
- c = L(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
2970
+ var y = this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_SELECTOR, C.INVALID_PLURAL_ARGUMENT_SELECTOR);
2971
+ if (y.err)
2972
+ return y;
2973
+ c = H(g, this.clonePosition()), h = this.message.slice(g.offset, this.offset());
2974
2974
  } else
2975
2975
  break;
2976
2976
  }
2977
- if (f.has(l))
2978
- return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
2979
- l === "other" && (u = !0), this.bumpSpace();
2977
+ if (d.has(h))
2978
+ return this.error(n === "select" ? C.DUPLICATE_SELECT_ARGUMENT_SELECTOR : C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
2979
+ h === "other" && (u = !0), this.bumpSpace();
2980
2980
  var x = this.clonePosition();
2981
2981
  if (!this.bumpIf("{"))
2982
- return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
2983
- var _ = this.parseMessage(t + 1, n, r);
2984
- if (_.err)
2985
- return _;
2986
- var M = this.tryParseArgumentClose(x);
2987
- if (M.err)
2988
- return M;
2982
+ return this.error(n === "select" ? C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
2983
+ var T = this.parseMessage(t + 1, n, r);
2984
+ if (T.err)
2985
+ return T;
2986
+ var P = this.tryParseArgumentClose(x);
2987
+ if (P.err)
2988
+ return P;
2989
2989
  s.push([
2990
- l,
2990
+ h,
2991
2991
  {
2992
- value: _.val,
2993
- location: L(x, this.clonePosition())
2992
+ value: T.val,
2993
+ location: H(x, this.clonePosition())
2994
2994
  }
2995
- ]), f.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
2995
+ ]), d.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, c = o.location;
2996
2996
  }
2997
- return s.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(O.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2997
+ return s.length === 0 ? this.error(n === "select" ? C.EXPECT_SELECT_ARGUMENT_SELECTOR : C.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(C.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2998
2998
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
2999
2999
  var r = 1, i = this.clonePosition();
3000
3000
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -3005,8 +3005,8 @@ var Bi = (
3005
3005
  else
3006
3006
  break;
3007
3007
  }
3008
- var f = L(i, this.clonePosition());
3009
- return o ? (u *= r, Ei(u) ? { val: u, err: null } : this.error(n, f)) : this.error(t, f);
3008
+ var d = H(i, this.clonePosition());
3009
+ return o ? (u *= r, Ei(u) ? { val: u, err: null } : this.error(n, d)) : this.error(t, d);
3010
3010
  }, e.prototype.offset = function() {
3011
3011
  return this.position.offset;
3012
3012
  }, e.prototype.isEOF = function() {
@@ -3089,30 +3089,30 @@ function Ai(e) {
3089
3089
  }
3090
3090
  function zt(e) {
3091
3091
  e.forEach(function(t) {
3092
- if (delete t.location, Mn(t) || In(t))
3092
+ if (delete t.location, Pn(t) || In(t))
3093
3093
  for (var n in t.options)
3094
3094
  delete t.options[n].location, zt(t.options[n].value);
3095
3095
  else
3096
- Rn(t) && Fn(t.style) || (Nn(t) || Pn(t)) && $t(t.style) ? delete t.style.location : Dn(t) && zt(t.children);
3096
+ Rn(t) && Fn(t.style) || (Nn(t) || Mn(t)) && $t(t.style) ? delete t.style.location : Dn(t) && zt(t.children);
3097
3097
  });
3098
3098
  }
3099
3099
  function Ci(e, t) {
3100
- t === void 0 && (t = {}), t = mt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3100
+ t === void 0 && (t = {}), t = pt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3101
3101
  var n = new Bi(e, t).parse();
3102
3102
  if (n.err) {
3103
- var r = SyntaxError(O[n.err.kind]);
3103
+ var r = SyntaxError(C[n.err.kind]);
3104
3104
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3105
3105
  }
3106
3106
  return t?.captureLocation || zt(n.val), n.val;
3107
3107
  }
3108
- var $e;
3108
+ var Ge;
3109
3109
  (function(e) {
3110
3110
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3111
- })($e || ($e = {}));
3112
- var Et = (
3111
+ })(Ge || (Ge = {}));
3112
+ var vt = (
3113
3113
  /** @class */
3114
3114
  function(e) {
3115
- vt(t, e);
3115
+ yt(t, e);
3116
3116
  function t(n, r, i) {
3117
3117
  var o = e.call(this, n) || this;
3118
3118
  return o.code = r, o.originalMessage = i, o;
@@ -3124,152 +3124,152 @@ var Et = (
3124
3124
  ), cn = (
3125
3125
  /** @class */
3126
3126
  function(e) {
3127
- vt(t, e);
3127
+ yt(t, e);
3128
3128
  function t(n, r, i, o) {
3129
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
3129
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, o) || this;
3130
3130
  }
3131
3131
  return t;
3132
- }(Et)
3132
+ }(vt)
3133
3133
  ), Hi = (
3134
3134
  /** @class */
3135
3135
  function(e) {
3136
- vt(t, e);
3136
+ yt(t, e);
3137
3137
  function t(n, r, i) {
3138
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), $e.INVALID_VALUE, i) || this;
3138
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ge.INVALID_VALUE, i) || this;
3139
3139
  }
3140
3140
  return t;
3141
- }(Et)
3141
+ }(vt)
3142
3142
  ), Oi = (
3143
3143
  /** @class */
3144
3144
  function(e) {
3145
- vt(t, e);
3145
+ yt(t, e);
3146
3146
  function t(n, r) {
3147
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), $e.MISSING_VALUE, r) || this;
3147
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ge.MISSING_VALUE, r) || this;
3148
3148
  }
3149
3149
  return t;
3150
- }(Et)
3151
- ), K;
3150
+ }(vt)
3151
+ ), Y;
3152
3152
  (function(e) {
3153
3153
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3154
- })(K || (K = {}));
3154
+ })(Y || (Y = {}));
3155
3155
  function Li(e) {
3156
3156
  return e.length < 2 ? e : e.reduce(function(t, n) {
3157
3157
  var r = t[t.length - 1];
3158
- return !r || r.type !== K.literal || n.type !== K.literal ? t.push(n) : r.value += n.value, t;
3158
+ return !r || r.type !== Y.literal || n.type !== Y.literal ? t.push(n) : r.value += n.value, t;
3159
3159
  }, []);
3160
3160
  }
3161
3161
  function Ri(e) {
3162
3162
  return typeof e == "function";
3163
3163
  }
3164
- function ct(e, t, n, r, i, o, u) {
3164
+ function ht(e, t, n, r, i, o, u) {
3165
3165
  if (e.length === 1 && rn(e[0]))
3166
3166
  return [
3167
3167
  {
3168
- type: K.literal,
3168
+ type: Y.literal,
3169
3169
  value: e[0].value
3170
3170
  }
3171
3171
  ];
3172
- for (var s = [], f = 0, l = e; f < l.length; f++) {
3173
- var c = l[f];
3172
+ for (var s = [], d = 0, h = e; d < h.length; d++) {
3173
+ var c = h[d];
3174
3174
  if (rn(c)) {
3175
3175
  s.push({
3176
- type: K.literal,
3176
+ type: Y.literal,
3177
3177
  value: c.value
3178
3178
  });
3179
3179
  continue;
3180
3180
  }
3181
3181
  if (ei(c)) {
3182
3182
  typeof o == "number" && s.push({
3183
- type: K.literal,
3183
+ type: Y.literal,
3184
3184
  value: n.getNumberFormat(t).format(o)
3185
3185
  });
3186
3186
  continue;
3187
3187
  }
3188
- var m = c.value;
3189
- if (!(i && m in i))
3190
- throw new Oi(m, u);
3191
- var g = i[m];
3188
+ var g = c.value;
3189
+ if (!(i && g in i))
3190
+ throw new Oi(g, u);
3191
+ var y = i[g];
3192
3192
  if (Kr(c)) {
3193
- (!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), s.push({
3194
- type: typeof g == "string" ? K.literal : K.object,
3195
- value: g
3193
+ (!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), s.push({
3194
+ type: typeof y == "string" ? Y.literal : Y.object,
3195
+ value: y
3196
3196
  });
3197
3197
  continue;
3198
3198
  }
3199
3199
  if (Nn(c)) {
3200
3200
  var x = typeof c.style == "string" ? r.date[c.style] : $t(c.style) ? c.style.parsedOptions : void 0;
3201
3201
  s.push({
3202
- type: K.literal,
3203
- value: n.getDateTimeFormat(t, x).format(g)
3202
+ type: Y.literal,
3203
+ value: n.getDateTimeFormat(t, x).format(y)
3204
3204
  });
3205
3205
  continue;
3206
3206
  }
3207
- if (Pn(c)) {
3207
+ if (Mn(c)) {
3208
3208
  var x = typeof c.style == "string" ? r.time[c.style] : $t(c.style) ? c.style.parsedOptions : r.time.medium;
3209
3209
  s.push({
3210
- type: K.literal,
3211
- value: n.getDateTimeFormat(t, x).format(g)
3210
+ type: Y.literal,
3211
+ value: n.getDateTimeFormat(t, x).format(y)
3212
3212
  });
3213
3213
  continue;
3214
3214
  }
3215
3215
  if (Rn(c)) {
3216
3216
  var x = typeof c.style == "string" ? r.number[c.style] : Fn(c.style) ? c.style.parsedOptions : void 0;
3217
- x && x.scale && (g = g * (x.scale || 1)), s.push({
3218
- type: K.literal,
3219
- value: n.getNumberFormat(t, x).format(g)
3217
+ x && x.scale && (y = y * (x.scale || 1)), s.push({
3218
+ type: Y.literal,
3219
+ value: n.getNumberFormat(t, x).format(y)
3220
3220
  });
3221
3221
  continue;
3222
3222
  }
3223
3223
  if (Dn(c)) {
3224
- var _ = c.children, M = c.value, k = i[M];
3225
- if (!Ri(k))
3226
- throw new Hi(M, "function", u);
3227
- var W = ct(_, t, n, r, i, o), $ = k(W.map(function(D) {
3228
- return D.value;
3224
+ var T = c.children, P = c.value, j = i[P];
3225
+ if (!Ri(j))
3226
+ throw new Hi(P, "function", u);
3227
+ var z = ht(T, t, n, r, i, o), G = j(z.map(function(I) {
3228
+ return I.value;
3229
3229
  }));
3230
- Array.isArray($) || ($ = [$]), s.push.apply(s, $.map(function(D) {
3230
+ Array.isArray(G) || (G = [G]), s.push.apply(s, G.map(function(I) {
3231
3231
  return {
3232
- type: typeof D == "string" ? K.literal : K.object,
3233
- value: D
3232
+ type: typeof I == "string" ? Y.literal : Y.object,
3233
+ value: I
3234
3234
  };
3235
3235
  }));
3236
3236
  }
3237
- if (Mn(c)) {
3238
- var S = c.options[g] || c.options.other;
3239
- if (!S)
3240
- throw new cn(c.value, g, Object.keys(c.options), u);
3241
- s.push.apply(s, ct(S.value, t, n, r, i));
3237
+ if (Pn(c)) {
3238
+ var B = c.options[y] || c.options.other;
3239
+ if (!B)
3240
+ throw new cn(c.value, y, Object.keys(c.options), u);
3241
+ s.push.apply(s, ht(B.value, t, n, r, i));
3242
3242
  continue;
3243
3243
  }
3244
3244
  if (In(c)) {
3245
- var S = c.options["=".concat(g)];
3246
- if (!S) {
3245
+ var B = c.options["=".concat(y)];
3246
+ if (!B) {
3247
3247
  if (!Intl.PluralRules)
3248
- throw new Et(`Intl.PluralRules is not available in this environment.
3248
+ throw new vt(`Intl.PluralRules is not available in this environment.
3249
3249
  Try polyfilling it using "@formatjs/intl-pluralrules"
3250
- `, $e.MISSING_INTL_API, u);
3251
- var A = n.getPluralRules(t, { type: c.pluralType }).select(g - (c.offset || 0));
3252
- S = c.options[A] || c.options.other;
3250
+ `, Ge.MISSING_INTL_API, u);
3251
+ var w = n.getPluralRules(t, { type: c.pluralType }).select(y - (c.offset || 0));
3252
+ B = c.options[w] || c.options.other;
3253
3253
  }
3254
- if (!S)
3255
- throw new cn(c.value, g, Object.keys(c.options), u);
3256
- s.push.apply(s, ct(S.value, t, n, r, i, g - (c.offset || 0)));
3254
+ if (!B)
3255
+ throw new cn(c.value, y, Object.keys(c.options), u);
3256
+ s.push.apply(s, ht(B.value, t, n, r, i, y - (c.offset || 0)));
3257
3257
  continue;
3258
3258
  }
3259
3259
  }
3260
3260
  return Li(s);
3261
3261
  }
3262
3262
  function Ni(e, t) {
3263
- return t ? ce(ce(ce({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3264
- return n[r] = ce(ce({}, e[r]), t[r] || {}), n;
3263
+ return t ? he(he(he({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3264
+ return n[r] = he(he({}, e[r]), t[r] || {}), n;
3265
3265
  }, {})) : e;
3266
3266
  }
3267
- function Pi(e, t) {
3267
+ function Mi(e, t) {
3268
3268
  return t ? Object.keys(e).reduce(function(n, r) {
3269
3269
  return n[r] = Ni(e[r], t[r]), n;
3270
- }, ce({}, e)) : e;
3270
+ }, he({}, e)) : e;
3271
3271
  }
3272
- function Mt(e) {
3272
+ function Pt(e) {
3273
3273
  return {
3274
3274
  create: function() {
3275
3275
  return {
@@ -3283,7 +3283,7 @@ function Mt(e) {
3283
3283
  }
3284
3284
  };
3285
3285
  }
3286
- function Mi(e) {
3286
+ function Pi(e) {
3287
3287
  return e === void 0 && (e = {
3288
3288
  number: {},
3289
3289
  dateTime: {},
@@ -3294,7 +3294,7 @@ function Mi(e) {
3294
3294
  n[r] = arguments[r];
3295
3295
  return new ((t = Intl.NumberFormat).bind.apply(t, Lt([void 0], n, !1)))();
3296
3296
  }, {
3297
- cache: Mt(e.number),
3297
+ cache: Pt(e.number),
3298
3298
  strategy: Nt.variadic
3299
3299
  }),
3300
3300
  getDateTimeFormat: Rt(function() {
@@ -3302,7 +3302,7 @@ function Mi(e) {
3302
3302
  n[r] = arguments[r];
3303
3303
  return new ((t = Intl.DateTimeFormat).bind.apply(t, Lt([void 0], n, !1)))();
3304
3304
  }, {
3305
- cache: Mt(e.dateTime),
3305
+ cache: Pt(e.dateTime),
3306
3306
  strategy: Nt.variadic
3307
3307
  }),
3308
3308
  getPluralRules: Rt(function() {
@@ -3310,7 +3310,7 @@ function Mi(e) {
3310
3310
  n[r] = arguments[r];
3311
3311
  return new ((t = Intl.PluralRules).bind.apply(t, Lt([void 0], n, !1)))();
3312
3312
  }, {
3313
- cache: Mt(e.pluralRules),
3313
+ cache: Pt(e.pluralRules),
3314
3314
  strategy: Nt.variadic
3315
3315
  })
3316
3316
  };
@@ -3325,20 +3325,20 @@ var Ii = (
3325
3325
  number: {},
3326
3326
  dateTime: {},
3327
3327
  pluralRules: {}
3328
- }, this.format = function(f) {
3329
- var l = o.formatToParts(f);
3330
- if (l.length === 1)
3331
- return l[0].value;
3332
- var c = l.reduce(function(m, g) {
3333
- return !m.length || g.type !== K.literal || typeof m[m.length - 1] != "string" ? m.push(g.value) : m[m.length - 1] += g.value, m;
3328
+ }, this.format = function(d) {
3329
+ var h = o.formatToParts(d);
3330
+ if (h.length === 1)
3331
+ return h[0].value;
3332
+ var c = h.reduce(function(g, y) {
3333
+ return !g.length || y.type !== Y.literal || typeof g[g.length - 1] != "string" ? g.push(y.value) : g[g.length - 1] += y.value, g;
3334
3334
  }, []);
3335
3335
  return c.length <= 1 ? c[0] || "" : c;
3336
- }, this.formatToParts = function(f) {
3337
- return ct(o.ast, o.locales, o.formatters, o.formats, f, void 0, o.message);
3336
+ }, this.formatToParts = function(d) {
3337
+ return ht(o.ast, o.locales, o.formatters, o.formats, d, void 0, o.message);
3338
3338
  }, this.resolvedOptions = function() {
3339
- var f;
3339
+ var d;
3340
3340
  return {
3341
- locale: ((f = o.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3341
+ locale: ((d = o.resolvedLocale) === null || d === void 0 ? void 0 : d.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3342
3342
  };
3343
3343
  }, this.getAst = function() {
3344
3344
  return o.ast;
@@ -3348,12 +3348,12 @@ var Ii = (
3348
3348
  var u = i || {};
3349
3349
  u.formatters;
3350
3350
  var s = Xr(u, ["formatters"]);
3351
- this.ast = e.__parse(t, ce(ce({}, s), { locale: this.resolvedLocale }));
3351
+ this.ast = e.__parse(t, he(he({}, s), { locale: this.resolvedLocale }));
3352
3352
  } else
3353
3353
  this.ast = t;
3354
3354
  if (!Array.isArray(this.ast))
3355
3355
  throw new TypeError("A message must be provided as a String or AST.");
3356
- this.formats = Pi(e.formats, r), this.formatters = i && i.formatters || Mi(this.formatterCache);
3356
+ this.formats = Mi(e.formats, r), this.formatters = i && i.formatters || Pi(this.formatterCache);
3357
3357
  }
3358
3358
  return Object.defineProperty(e, "defaultLocale", {
3359
3359
  get: function() {
@@ -3448,12 +3448,12 @@ function Di(e, t) {
3448
3448
  r = void 0;
3449
3449
  return r;
3450
3450
  }
3451
- const we = {}, Fi = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), zn = (e, t) => {
3451
+ const Se = {}, Fi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), zn = (e, t) => {
3452
3452
  if (t == null)
3453
3453
  return;
3454
- if (t in we && e in we[t])
3455
- return we[t][e];
3456
- const n = xt(t);
3454
+ if (t in Se && e in Se[t])
3455
+ return Se[t][e];
3456
+ const n = Et(t);
3457
3457
  for (let r = 0; r < n.length; r++) {
3458
3458
  const i = n[r], o = Gi(i, e);
3459
3459
  if (o)
@@ -3461,7 +3461,7 @@ const we = {}, Fi = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (w
3461
3461
  }
3462
3462
  };
3463
3463
  let Jt;
3464
- const it = yt({});
3464
+ const rt = bt({});
3465
3465
  function Ui(e) {
3466
3466
  return Jt[e] || null;
3467
3467
  }
@@ -3477,7 +3477,7 @@ function Gi(e, t) {
3477
3477
  function $i(e) {
3478
3478
  if (e == null)
3479
3479
  return;
3480
- const t = xt(e);
3480
+ const t = Et(e);
3481
3481
  for (let n = 0; n < t.length; n++) {
3482
3482
  const r = t[n];
3483
3483
  if (Wn(r))
@@ -3485,28 +3485,28 @@ function $i(e) {
3485
3485
  }
3486
3486
  }
3487
3487
  function Zn(e, ...t) {
3488
- delete we[e], it.update((n) => (n[e] = Vr.all([n[e] || {}, ...t]), n));
3488
+ delete Se[e], rt.update((n) => (n[e] = Vr.all([n[e] || {}, ...t]), n));
3489
3489
  }
3490
- Ve(
3491
- [it],
3490
+ ke(
3491
+ [rt],
3492
3492
  ([e]) => Object.keys(e)
3493
3493
  );
3494
- it.subscribe((e) => Jt = e);
3495
- const ft = {};
3494
+ rt.subscribe((e) => Jt = e);
3495
+ const ct = {};
3496
3496
  function ji(e, t) {
3497
- ft[e].delete(t), ft[e].size === 0 && delete ft[e];
3497
+ ct[e].delete(t), ct[e].size === 0 && delete ct[e];
3498
3498
  }
3499
3499
  function qn(e) {
3500
- return ft[e];
3500
+ return ct[e];
3501
3501
  }
3502
3502
  function ki(e) {
3503
- return xt(e).map((t) => {
3503
+ return Et(e).map((t) => {
3504
3504
  const n = qn(t);
3505
3505
  return [t, n ? [...n] : []];
3506
3506
  }).filter(([, t]) => t.length > 0);
3507
3507
  }
3508
3508
  function Wt(e) {
3509
- return e == null ? !1 : xt(e).some(
3509
+ return e == null ? !1 : Et(e).some(
3510
3510
  (t) => {
3511
3511
  var n;
3512
3512
  return (n = qn(t)) == null ? void 0 : n.size;
@@ -3518,20 +3518,20 @@ function Vi(e, t) {
3518
3518
  t.map((r) => (ji(e, r), r().then((i) => i.default || i)))
3519
3519
  ).then((r) => Zn(e, ...r));
3520
3520
  }
3521
- const Ke = {};
3521
+ const Ye = {};
3522
3522
  function Qn(e) {
3523
3523
  if (!Wt(e))
3524
- return e in Ke ? Ke[e] : Promise.resolve();
3524
+ return e in Ye ? Ye[e] : Promise.resolve();
3525
3525
  const t = ki(e);
3526
- return Ke[e] = Promise.all(
3526
+ return Ye[e] = Promise.all(
3527
3527
  t.map(
3528
3528
  ([n, r]) => Vi(n, r)
3529
3529
  )
3530
3530
  ).then(() => {
3531
3531
  if (Wt(e))
3532
3532
  return Qn(e);
3533
- delete Ke[e];
3534
- }), Ke[e];
3533
+ delete Ye[e];
3534
+ }), Ye[e];
3535
3535
  }
3536
3536
  const Xi = {
3537
3537
  number: {
@@ -3570,10 +3570,10 @@ const Xi = {
3570
3570
  handleMissingMessage: void 0,
3571
3571
  ignoreTag: !0
3572
3572
  }, Wi = zi;
3573
- function je() {
3573
+ function $e() {
3574
3574
  return Wi;
3575
3575
  }
3576
- const It = yt(!1);
3576
+ const It = bt(!1);
3577
3577
  var Zi = Object.defineProperty, qi = Object.defineProperties, Qi = Object.getOwnPropertyDescriptors, fn = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, dn = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ki = (e, t) => {
3578
3578
  for (var n in t || (t = {}))
3579
3579
  Ji.call(t, n) && dn(e, n, t[n]);
@@ -3583,112 +3583,112 @@ var Zi = Object.defineProperty, qi = Object.defineProperties, Qi = Object.getOwn
3583
3583
  return e;
3584
3584
  }, eo = (e, t) => qi(e, Qi(t));
3585
3585
  let Zt;
3586
- const gt = yt(null);
3586
+ const mt = bt(null);
3587
3587
  function pn(e) {
3588
3588
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3589
3589
  }
3590
- function xt(e, t = je().fallbackLocale) {
3590
+ function Et(e, t = $e().fallbackLocale) {
3591
3591
  const n = pn(e);
3592
3592
  return t ? [.../* @__PURE__ */ new Set([...n, ...pn(t)])] : n;
3593
3593
  }
3594
- function Oe() {
3594
+ function He() {
3595
3595
  return Zt ?? void 0;
3596
3596
  }
3597
- gt.subscribe((e) => {
3597
+ mt.subscribe((e) => {
3598
3598
  Zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3599
3599
  });
3600
3600
  const to = (e) => {
3601
3601
  if (e && $i(e) && Wt(e)) {
3602
- const { loadingDelay: t } = je();
3602
+ const { loadingDelay: t } = $e();
3603
3603
  let n;
3604
- return typeof window < "u" && Oe() != null && t ? n = window.setTimeout(
3604
+ return typeof window < "u" && He() != null && t ? n = window.setTimeout(
3605
3605
  () => It.set(!0),
3606
3606
  t
3607
3607
  ) : It.set(!0), Qn(e).then(() => {
3608
- gt.set(e);
3608
+ mt.set(e);
3609
3609
  }).finally(() => {
3610
3610
  clearTimeout(n), It.set(!1);
3611
3611
  });
3612
3612
  }
3613
- return gt.set(e);
3614
- }, Xe = eo(Ki({}, gt), {
3613
+ return mt.set(e);
3614
+ }, Ve = eo(Ki({}, mt), {
3615
3615
  set: to
3616
- }), _t = (e) => {
3616
+ }), xt = (e) => {
3617
3617
  const t = /* @__PURE__ */ Object.create(null);
3618
3618
  return (r) => {
3619
3619
  const i = JSON.stringify(r);
3620
3620
  return i in t ? t[i] : t[i] = e(r);
3621
3621
  };
3622
3622
  };
3623
- var no = Object.defineProperty, bt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, mn = (e, t, n) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
3623
+ var no = Object.defineProperty, gt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, mn = (e, t, n) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
3624
3624
  for (var n in t || (t = {}))
3625
3625
  Jn.call(t, n) && mn(e, n, t[n]);
3626
- if (bt)
3627
- for (var n of bt(t))
3626
+ if (gt)
3627
+ for (var n of gt(t))
3628
3628
  Yn.call(t, n) && mn(e, n, t[n]);
3629
3629
  return e;
3630
- }, ze = (e, t) => {
3630
+ }, Xe = (e, t) => {
3631
3631
  var n = {};
3632
3632
  for (var r in e)
3633
3633
  Jn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3634
- if (e != null && bt)
3635
- for (var r of bt(e))
3634
+ if (e != null && gt)
3635
+ for (var r of gt(e))
3636
3636
  t.indexOf(r) < 0 && Yn.call(e, r) && (n[r] = e[r]);
3637
3637
  return n;
3638
3638
  };
3639
- const rt = (e, t) => {
3640
- const { formats: n } = je();
3639
+ const nt = (e, t) => {
3640
+ const { formats: n } = $e();
3641
3641
  if (e in n && t in n[e])
3642
3642
  return n[e][t];
3643
3643
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3644
- }, ro = _t(
3644
+ }, ro = xt(
3645
3645
  (e) => {
3646
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3646
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3647
3647
  if (n == null)
3648
3648
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3649
- return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
3649
+ return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
3650
3650
  }
3651
- ), io = _t(
3651
+ ), io = xt(
3652
3652
  (e) => {
3653
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3653
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3654
3654
  if (n == null)
3655
3655
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3656
- return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
3656
+ return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
3657
3657
  }
3658
- ), oo = _t(
3658
+ ), oo = xt(
3659
3659
  (e) => {
3660
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3660
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3661
3661
  if (n == null)
3662
3662
  throw new Error(
3663
3663
  '[svelte-i18n] A "locale" must be set to format time values'
3664
3664
  );
3665
- return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
3665
+ return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
3666
3666
  }
3667
3667
  ), ao = (e = {}) => {
3668
3668
  var t = e, {
3669
- locale: n = Oe()
3670
- } = t, r = ze(t, [
3669
+ locale: n = He()
3670
+ } = t, r = Xe(t, [
3671
3671
  "locale"
3672
3672
  ]);
3673
3673
  return ro(Yt({ locale: n }, r));
3674
3674
  }, so = (e = {}) => {
3675
3675
  var t = e, {
3676
- locale: n = Oe()
3677
- } = t, r = ze(t, [
3676
+ locale: n = He()
3677
+ } = t, r = Xe(t, [
3678
3678
  "locale"
3679
3679
  ]);
3680
3680
  return io(Yt({ locale: n }, r));
3681
3681
  }, uo = (e = {}) => {
3682
3682
  var t = e, {
3683
- locale: n = Oe()
3684
- } = t, r = ze(t, [
3683
+ locale: n = He()
3684
+ } = t, r = Xe(t, [
3685
3685
  "locale"
3686
3686
  ]);
3687
3687
  return oo(Yt({ locale: n }, r));
3688
- }, lo = _t(
3688
+ }, lo = xt(
3689
3689
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3690
- (e, t = Oe()) => new Ii(e, t, je().formats, {
3691
- ignoreTag: je().ignoreTag
3690
+ (e, t = He()) => new Ii(e, t, $e().formats, {
3691
+ ignoreTag: $e().ignoreTag
3692
3692
  })
3693
3693
  ), ho = (e, t = {}) => {
3694
3694
  var n, r, i, o;
@@ -3696,42 +3696,42 @@ const rt = (e, t) => {
3696
3696
  typeof e == "object" && (u = e, e = u.id);
3697
3697
  const {
3698
3698
  values: s,
3699
- locale: f = Oe(),
3700
- default: l
3699
+ locale: d = He(),
3700
+ default: h
3701
3701
  } = u;
3702
- if (f == null)
3702
+ if (d == null)
3703
3703
  throw new Error(
3704
3704
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3705
3705
  );
3706
- let c = zn(e, f);
3706
+ let c = zn(e, d);
3707
3707
  if (!c)
3708
- c = (o = (i = (r = (n = je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: f, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
3708
+ c = (o = (i = (r = (n = $e()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: d, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
3709
3709
  else if (typeof c != "string")
3710
3710
  return console.warn(
3711
3711
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3712
3712
  ), c;
3713
3713
  if (!s)
3714
3714
  return c;
3715
- let m = c;
3715
+ let g = c;
3716
3716
  try {
3717
- m = lo(c, f).format(s);
3718
- } catch (g) {
3719
- g instanceof Error && console.warn(
3717
+ g = lo(c, d).format(s);
3718
+ } catch (y) {
3719
+ y instanceof Error && console.warn(
3720
3720
  `[svelte-i18n] Message "${e}" has syntax error:`,
3721
- g.message
3721
+ y.message
3722
3722
  );
3723
3723
  }
3724
- return m;
3725
- }, co = (e, t) => uo(t).format(e), fo = (e, t) => so(t).format(e), po = (e, t) => ao(t).format(e), mo = (e, t = Oe()) => zn(e, t), go = Ve([Xe, it], () => ho);
3726
- Ve([Xe], () => co);
3727
- Ve([Xe], () => fo);
3728
- Ve([Xe], () => po);
3729
- Ve([Xe, it], () => mo);
3724
+ return g;
3725
+ }, co = (e, t) => uo(t).format(e), fo = (e, t) => so(t).format(e), po = (e, t) => ao(t).format(e), mo = (e, t = He()) => zn(e, t), go = ke([Ve, rt], () => ho);
3726
+ ke([Ve], () => co);
3727
+ ke([Ve], () => fo);
3728
+ ke([Ve], () => po);
3729
+ ke([Ve, rt], () => mo);
3730
3730
  function gn(e, t) {
3731
3731
  Zn(e, t);
3732
3732
  }
3733
3733
  function bo(e) {
3734
- Xe.set(e);
3734
+ Ve.set(e);
3735
3735
  }
3736
3736
  const bn = {
3737
3737
  en: {
@@ -3941,35 +3941,35 @@ var qt = { exports: {} };
3941
3941
  */
3942
3942
  (function(e, t) {
3943
3943
  (function(n) {
3944
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, f = n.EventSource, l = n.document, c = n.Promise, m = n.fetch, g = n.Response, x = n.TextDecoder, _ = n.TextEncoder, M = n.AbortController;
3945
- if (typeof window < "u" && typeof l < "u" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(a) {
3946
- l.readyState = "complete";
3944
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, d = n.EventSource, h = n.document, c = n.Promise, g = n.fetch, y = n.Response, x = n.TextDecoder, T = n.TextEncoder, P = n.AbortController;
3945
+ if (typeof window < "u" && typeof h < "u" && !("readyState" in h) && h.body == null && (h.readyState = "loading", window.addEventListener("load", function(a) {
3946
+ h.readyState = "complete";
3947
3947
  }, !1)), o == null && s != null && (o = function() {
3948
3948
  return new s("Microsoft.XMLHTTP");
3949
3949
  }), Object.create == null && (Object.create = function(a) {
3950
- function h() {
3950
+ function l() {
3951
3951
  }
3952
- return h.prototype = a, new h();
3952
+ return l.prototype = a, new l();
3953
3953
  }), Date.now || (Date.now = function() {
3954
3954
  return (/* @__PURE__ */ new Date()).getTime();
3955
- }), M == null) {
3956
- var k = m;
3957
- m = function(a, h) {
3958
- var p = h.signal;
3959
- return k(a, { headers: h.headers, credentials: h.credentials, cache: h.cache }).then(function(d) {
3960
- var y = d.body.getReader();
3961
- return p._reader = y, p._aborted && p._reader.cancel(), {
3962
- status: d.status,
3963
- statusText: d.statusText,
3964
- headers: d.headers,
3955
+ }), P == null) {
3956
+ var j = g;
3957
+ g = function(a, l) {
3958
+ var f = l.signal;
3959
+ return j(a, { headers: l.headers, credentials: l.credentials, cache: l.cache }).then(function(p) {
3960
+ var E = p.body.getReader();
3961
+ return f._reader = E, f._aborted && f._reader.cancel(), {
3962
+ status: p.status,
3963
+ statusText: p.statusText,
3964
+ headers: p.headers,
3965
3965
  body: {
3966
3966
  getReader: function() {
3967
- return y;
3967
+ return E;
3968
3968
  }
3969
3969
  }
3970
3970
  };
3971
3971
  });
3972
- }, M = function() {
3972
+ }, P = function() {
3973
3973
  this.signal = {
3974
3974
  _reader: null,
3975
3975
  _aborted: !1
@@ -3978,403 +3978,403 @@ var qt = { exports: {} };
3978
3978
  };
3979
3979
  };
3980
3980
  }
3981
- function W() {
3981
+ function z() {
3982
3982
  this.bitsNeeded = 0, this.codePoint = 0;
3983
3983
  }
3984
- W.prototype.decode = function(a) {
3985
- function h(H, I, w) {
3986
- if (w === 1)
3987
- return H >= 128 >> I && H << I <= 2047;
3988
- if (w === 2)
3989
- return H >= 2048 >> I && H << I <= 55295 || H >= 57344 >> I && H << I <= 65535;
3990
- if (w === 3)
3991
- return H >= 65536 >> I && H << I <= 1114111;
3984
+ z.prototype.decode = function(a) {
3985
+ function l(O, L, S) {
3986
+ if (S === 1)
3987
+ return O >= 128 >> L && O << L <= 2047;
3988
+ if (S === 2)
3989
+ return O >= 2048 >> L && O << L <= 55295 || O >= 57344 >> L && O << L <= 65535;
3990
+ if (S === 3)
3991
+ return O >= 65536 >> L && O << L <= 1114111;
3992
3992
  throw new Error();
3993
3993
  }
3994
- function p(H, I) {
3995
- if (H === 6 * 1)
3996
- return I >> 6 > 15 ? 3 : I > 31 ? 2 : 1;
3997
- if (H === 6 * 2)
3998
- return I > 15 ? 3 : 2;
3999
- if (H === 6 * 3)
3994
+ function f(O, L) {
3995
+ if (O === 6 * 1)
3996
+ return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
3997
+ if (O === 6 * 2)
3998
+ return L > 15 ? 3 : 2;
3999
+ if (O === 6 * 3)
4000
4000
  return 3;
4001
4001
  throw new Error();
4002
4002
  }
4003
- for (var d = 65533, y = "", v = this.bitsNeeded, T = this.codePoint, N = 0; N < a.length; N += 1) {
4004
- var C = a[N];
4005
- v !== 0 && (C < 128 || C > 191 || !h(T << 6 | C & 63, v - 6, p(v, T))) && (v = 0, T = d, y += String.fromCharCode(T)), v === 0 ? (C >= 0 && C <= 127 ? (v = 0, T = C) : C >= 192 && C <= 223 ? (v = 6 * 1, T = C & 31) : C >= 224 && C <= 239 ? (v = 6 * 2, T = C & 15) : C >= 240 && C <= 247 ? (v = 6 * 3, T = C & 7) : (v = 0, T = d), v !== 0 && !h(T, v, p(v, T)) && (v = 0, T = d)) : (v -= 6, T = T << 6 | C & 63), v === 0 && (T <= 65535 ? y += String.fromCharCode(T) : (y += String.fromCharCode(55296 + (T - 65535 - 1 >> 10)), y += String.fromCharCode(56320 + (T - 65535 - 1 & 1023))));
4003
+ for (var p = 65533, E = "", m = this.bitsNeeded, _ = this.codePoint, N = 0; N < a.length; N += 1) {
4004
+ var A = a[N];
4005
+ m !== 0 && (A < 128 || A > 191 || !l(_ << 6 | A & 63, m - 6, f(m, _))) && (m = 0, _ = p, E += String.fromCharCode(_)), m === 0 ? (A >= 0 && A <= 127 ? (m = 0, _ = A) : A >= 192 && A <= 223 ? (m = 6 * 1, _ = A & 31) : A >= 224 && A <= 239 ? (m = 6 * 2, _ = A & 15) : A >= 240 && A <= 247 ? (m = 6 * 3, _ = A & 7) : (m = 0, _ = p), m !== 0 && !l(_, m, f(m, _)) && (m = 0, _ = p)) : (m -= 6, _ = _ << 6 | A & 63), m === 0 && (_ <= 65535 ? E += String.fromCharCode(_) : (E += String.fromCharCode(55296 + (_ - 65535 - 1 >> 10)), E += String.fromCharCode(56320 + (_ - 65535 - 1 & 1023))));
4006
4006
  }
4007
- return this.bitsNeeded = v, this.codePoint = T, y;
4007
+ return this.bitsNeeded = m, this.codePoint = _, E;
4008
4008
  };
4009
- var $ = function() {
4009
+ var G = function() {
4010
4010
  try {
4011
- return new x().decode(new _().encode("test"), { stream: !0 }) === "test";
4011
+ return new x().decode(new T().encode("test"), { stream: !0 }) === "test";
4012
4012
  } catch (a) {
4013
4013
  console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
4014
4014
  }
4015
4015
  return !1;
4016
4016
  };
4017
- (x == null || _ == null || !$()) && (x = W);
4018
- var S = function() {
4017
+ (x == null || T == null || !G()) && (x = z);
4018
+ var B = function() {
4019
4019
  };
4020
- function A(a) {
4021
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = S, this.onload = S, this.onerror = S, this.onreadystatechange = S, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = S;
4020
+ function w(a) {
4021
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = B, this.onload = B, this.onerror = B, this.onreadystatechange = B, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = B;
4022
4022
  }
4023
- A.prototype.open = function(a, h) {
4023
+ w.prototype.open = function(a, l) {
4024
4024
  this._abort(!0);
4025
- var p = this, d = this._xhr, y = 1, v = 0;
4026
- this._abort = function(w) {
4027
- p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (y === 1 || y === 2 || y === 3) && (y = 4, d.onload = S, d.onerror = S, d.onabort = S, d.onprogress = S, d.onreadystatechange = S, d.abort(), v !== 0 && (i(v), v = 0), w || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), y = 0;
4025
+ var f = this, p = this._xhr, E = 1, m = 0;
4026
+ this._abort = function(S) {
4027
+ f._sendTimeout !== 0 && (i(f._sendTimeout), f._sendTimeout = 0), (E === 1 || E === 2 || E === 3) && (E = 4, p.onload = B, p.onerror = B, p.onabort = B, p.onprogress = B, p.onreadystatechange = B, p.abort(), m !== 0 && (i(m), m = 0), S || (f.readyState = 4, f.onabort(null), f.onreadystatechange())), E = 0;
4028
4028
  };
4029
- var T = function() {
4030
- if (y === 1) {
4031
- var w = 0, U = "", ge = void 0;
4032
- if ("contentType" in d)
4033
- w = 200, U = "OK", ge = d.contentType;
4029
+ var _ = function() {
4030
+ if (E === 1) {
4031
+ var S = 0, F = "", me = void 0;
4032
+ if ("contentType" in p)
4033
+ S = 200, F = "OK", me = p.contentType;
4034
4034
  else
4035
4035
  try {
4036
- w = d.status, U = d.statusText, ge = d.getResponseHeader("Content-Type");
4036
+ S = p.status, F = p.statusText, me = p.getResponseHeader("Content-Type");
4037
4037
  } catch {
4038
- w = 0, U = "", ge = void 0;
4038
+ S = 0, F = "", me = void 0;
4039
4039
  }
4040
- w !== 0 && (y = 2, p.readyState = 2, p.status = w, p.statusText = U, p._contentType = ge, p.onreadystatechange());
4040
+ S !== 0 && (E = 2, f.readyState = 2, f.status = S, f.statusText = F, f._contentType = me, f.onreadystatechange());
4041
4041
  }
4042
4042
  }, N = function() {
4043
- if (T(), y === 2 || y === 3) {
4044
- y = 3;
4045
- var w = "";
4043
+ if (_(), E === 2 || E === 3) {
4044
+ E = 3;
4045
+ var S = "";
4046
4046
  try {
4047
- w = d.responseText;
4047
+ S = p.responseText;
4048
4048
  } catch {
4049
4049
  }
4050
- p.readyState = 3, p.responseText = w, p.onprogress();
4050
+ f.readyState = 3, f.responseText = S, f.onprogress();
4051
4051
  }
4052
- }, C = function(w, U) {
4053
- if ((U == null || U.preventDefault == null) && (U = {
4054
- preventDefault: S
4055
- }), N(), y === 1 || y === 2 || y === 3) {
4056
- if (y = 4, v !== 0 && (i(v), v = 0), p.readyState = 4, w === "load")
4057
- p.onload(U);
4058
- else if (w === "error")
4059
- p.onerror(U);
4060
- else if (w === "abort")
4061
- p.onabort(U);
4052
+ }, A = function(S, F) {
4053
+ if ((F == null || F.preventDefault == null) && (F = {
4054
+ preventDefault: B
4055
+ }), N(), E === 1 || E === 2 || E === 3) {
4056
+ if (E = 4, m !== 0 && (i(m), m = 0), f.readyState = 4, S === "load")
4057
+ f.onload(F);
4058
+ else if (S === "error")
4059
+ f.onerror(F);
4060
+ else if (S === "abort")
4061
+ f.onabort(F);
4062
4062
  else
4063
4063
  throw new TypeError();
4064
- p.onreadystatechange();
4064
+ f.onreadystatechange();
4065
4065
  }
4066
- }, H = function(w) {
4067
- d != null && (d.readyState === 4 ? (!("onload" in d) || !("onerror" in d) || !("onabort" in d)) && C(d.responseText === "" ? "error" : "load", w) : d.readyState === 3 ? "onprogress" in d || N() : d.readyState === 2 && T());
4068
- }, I = function() {
4069
- v = r(function() {
4070
- I();
4071
- }, 500), d.readyState === 3 && N();
4066
+ }, O = function(S) {
4067
+ p != null && (p.readyState === 4 ? (!("onload" in p) || !("onerror" in p) || !("onabort" in p)) && A(p.responseText === "" ? "error" : "load", S) : p.readyState === 3 ? "onprogress" in p || N() : p.readyState === 2 && _());
4068
+ }, L = function() {
4069
+ m = r(function() {
4070
+ L();
4071
+ }, 500), p.readyState === 3 && N();
4072
4072
  };
4073
- "onload" in d && (d.onload = function(w) {
4074
- C("load", w);
4075
- }), "onerror" in d && (d.onerror = function(w) {
4076
- C("error", w);
4077
- }), "onabort" in d && (d.onabort = function(w) {
4078
- C("abort", w);
4079
- }), "onprogress" in d && (d.onprogress = N), "onreadystatechange" in d && (d.onreadystatechange = function(w) {
4080
- H(w);
4081
- }), ("contentType" in d || !("ontimeout" in o.prototype)) && (h += (h.indexOf("?") === -1 ? "?" : "&") + "padding=true"), d.open(a, h, !0), "readyState" in d && (v = r(function() {
4082
- I();
4073
+ "onload" in p && (p.onload = function(S) {
4074
+ A("load", S);
4075
+ }), "onerror" in p && (p.onerror = function(S) {
4076
+ A("error", S);
4077
+ }), "onabort" in p && (p.onabort = function(S) {
4078
+ A("abort", S);
4079
+ }), "onprogress" in p && (p.onprogress = N), "onreadystatechange" in p && (p.onreadystatechange = function(S) {
4080
+ O(S);
4081
+ }), ("contentType" in p || !("ontimeout" in o.prototype)) && (l += (l.indexOf("?") === -1 ? "?" : "&") + "padding=true"), p.open(a, l, !0), "readyState" in p && (m = r(function() {
4082
+ L();
4083
4083
  }, 0));
4084
- }, A.prototype.abort = function() {
4084
+ }, w.prototype.abort = function() {
4085
4085
  this._abort(!1);
4086
- }, A.prototype.getResponseHeader = function(a) {
4086
+ }, w.prototype.getResponseHeader = function(a) {
4087
4087
  return this._contentType;
4088
- }, A.prototype.setRequestHeader = function(a, h) {
4089
- var p = this._xhr;
4090
- "setRequestHeader" in p && p.setRequestHeader(a, h);
4091
- }, A.prototype.getAllResponseHeaders = function() {
4088
+ }, w.prototype.setRequestHeader = function(a, l) {
4089
+ var f = this._xhr;
4090
+ "setRequestHeader" in f && f.setRequestHeader(a, l);
4091
+ }, w.prototype.getAllResponseHeaders = function() {
4092
4092
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4093
- }, A.prototype.send = function() {
4094
- if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
4093
+ }, w.prototype.send = function() {
4094
+ if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && h != null && h.readyState != null && h.readyState !== "complete") {
4095
4095
  var a = this;
4096
4096
  a._sendTimeout = r(function() {
4097
4097
  a._sendTimeout = 0, a.send();
4098
4098
  }, 4);
4099
4099
  return;
4100
4100
  }
4101
- var h = this._xhr;
4102
- "withCredentials" in h && (h.withCredentials = this.withCredentials);
4101
+ var l = this._xhr;
4102
+ "withCredentials" in l && (l.withCredentials = this.withCredentials);
4103
4103
  try {
4104
- h.send(void 0);
4105
- } catch (p) {
4106
- throw p;
4104
+ l.send(void 0);
4105
+ } catch (f) {
4106
+ throw f;
4107
4107
  }
4108
4108
  };
4109
- function D(a) {
4110
- return a.replace(/[A-Z]/g, function(h) {
4111
- return String.fromCharCode(h.charCodeAt(0) + 32);
4109
+ function I(a) {
4110
+ return a.replace(/[A-Z]/g, function(l) {
4111
+ return String.fromCharCode(l.charCodeAt(0) + 32);
4112
4112
  });
4113
4113
  }
4114
4114
  function R(a) {
4115
- for (var h = /* @__PURE__ */ Object.create(null), p = a.split(`\r
4116
- `), d = 0; d < p.length; d += 1) {
4117
- var y = p[d], v = y.split(": "), T = v.shift(), N = v.join(": ");
4118
- h[D(T)] = N;
4115
+ for (var l = /* @__PURE__ */ Object.create(null), f = a.split(`\r
4116
+ `), p = 0; p < f.length; p += 1) {
4117
+ var E = f[p], m = E.split(": "), _ = m.shift(), N = m.join(": ");
4118
+ l[I(_)] = N;
4119
4119
  }
4120
- this._map = h;
4120
+ this._map = l;
4121
4121
  }
4122
4122
  R.prototype.get = function(a) {
4123
- return this._map[D(a)];
4123
+ return this._map[I(a)];
4124
4124
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4125
- function ee() {
4125
+ function K() {
4126
4126
  }
4127
- ee.prototype.open = function(a, h, p, d, y, v, T) {
4128
- a.open("GET", y);
4127
+ K.prototype.open = function(a, l, f, p, E, m, _) {
4128
+ a.open("GET", E);
4129
4129
  var N = 0;
4130
4130
  a.onprogress = function() {
4131
- var H = a.responseText, I = H.slice(N);
4132
- N += I.length, p(I);
4133
- }, a.onerror = function(H) {
4134
- H.preventDefault(), d(new Error("NetworkError"));
4131
+ var O = a.responseText, L = O.slice(N);
4132
+ N += L.length, f(L);
4133
+ }, a.onerror = function(O) {
4134
+ O.preventDefault(), p(new Error("NetworkError"));
4135
4135
  }, a.onload = function() {
4136
- d(null);
4136
+ p(null);
4137
4137
  }, a.onabort = function() {
4138
- d(null);
4138
+ p(null);
4139
4139
  }, a.onreadystatechange = function() {
4140
4140
  if (a.readyState === o.HEADERS_RECEIVED) {
4141
- var H = a.status, I = a.statusText, w = a.getResponseHeader("Content-Type"), U = a.getAllResponseHeaders();
4142
- h(H, I, w, new R(U));
4141
+ var O = a.status, L = a.statusText, S = a.getResponseHeader("Content-Type"), F = a.getAllResponseHeaders();
4142
+ l(O, L, S, new R(F));
4143
4143
  }
4144
- }, a.withCredentials = v;
4145
- for (var C in T)
4146
- Object.prototype.hasOwnProperty.call(T, C) && a.setRequestHeader(C, T[C]);
4144
+ }, a.withCredentials = m;
4145
+ for (var A in _)
4146
+ Object.prototype.hasOwnProperty.call(_, A) && a.setRequestHeader(A, _[A]);
4147
4147
  return a.send(), a;
4148
4148
  };
4149
- function de(a) {
4149
+ function fe(a) {
4150
4150
  this._headers = a;
4151
4151
  }
4152
- de.prototype.get = function(a) {
4152
+ fe.prototype.get = function(a) {
4153
4153
  return this._headers.get(a);
4154
4154
  };
4155
- function pe() {
4155
+ function de() {
4156
4156
  }
4157
- pe.prototype.open = function(a, h, p, d, y, v, T) {
4158
- var N = null, C = new M(), H = C.signal, I = new x();
4159
- return m(y, {
4160
- headers: T,
4161
- credentials: v ? "include" : "same-origin",
4162
- signal: H,
4157
+ de.prototype.open = function(a, l, f, p, E, m, _) {
4158
+ var N = null, A = new P(), O = A.signal, L = new x();
4159
+ return g(E, {
4160
+ headers: _,
4161
+ credentials: m ? "include" : "same-origin",
4162
+ signal: O,
4163
4163
  cache: "no-store"
4164
- }).then(function(w) {
4165
- return N = w.body.getReader(), h(w.status, w.statusText, w.headers.get("Content-Type"), new de(w.headers)), new c(function(U, ge) {
4166
- var Je = function() {
4167
- N.read().then(function(re) {
4168
- if (re.done)
4169
- U(void 0);
4164
+ }).then(function(S) {
4165
+ return N = S.body.getReader(), l(S.status, S.statusText, S.headers.get("Content-Type"), new fe(S.headers)), new c(function(F, me) {
4166
+ var Qe = function() {
4167
+ N.read().then(function(ne) {
4168
+ if (ne.done)
4169
+ F(void 0);
4170
4170
  else {
4171
- var Q = I.decode(re.value, { stream: !0 });
4172
- p(Q), Je();
4171
+ var q = L.decode(ne.value, { stream: !0 });
4172
+ f(q), Qe();
4173
4173
  }
4174
- }).catch(function(re) {
4175
- ge(re);
4174
+ }).catch(function(ne) {
4175
+ me(ne);
4176
4176
  });
4177
4177
  };
4178
- Je();
4178
+ Qe();
4179
4179
  });
4180
- }).catch(function(w) {
4181
- if (w.name !== "AbortError")
4182
- return w;
4183
- }).then(function(w) {
4184
- d(w);
4180
+ }).catch(function(S) {
4181
+ if (S.name !== "AbortError")
4182
+ return S;
4183
+ }).then(function(S) {
4184
+ p(S);
4185
4185
  }), {
4186
4186
  abort: function() {
4187
- N?.cancel(), C.abort();
4187
+ N?.cancel(), A.abort();
4188
4188
  }
4189
4189
  };
4190
4190
  };
4191
- function te() {
4191
+ function ee() {
4192
4192
  this._listeners = /* @__PURE__ */ Object.create(null);
4193
4193
  }
4194
- function _e(a) {
4194
+ function xe(a) {
4195
4195
  r(function() {
4196
4196
  throw a;
4197
4197
  }, 0);
4198
4198
  }
4199
- te.prototype.dispatchEvent = function(a) {
4199
+ ee.prototype.dispatchEvent = function(a) {
4200
4200
  a.target = this;
4201
- var h = this._listeners[a.type];
4202
- if (h != null)
4203
- for (var p = h.length, d = 0; d < p; d += 1) {
4204
- var y = h[d];
4201
+ var l = this._listeners[a.type];
4202
+ if (l != null)
4203
+ for (var f = l.length, p = 0; p < f; p += 1) {
4204
+ var E = l[p];
4205
4205
  try {
4206
- typeof y.handleEvent == "function" ? y.handleEvent(a) : y.call(this, a);
4207
- } catch (v) {
4208
- _e(v);
4206
+ typeof E.handleEvent == "function" ? E.handleEvent(a) : E.call(this, a);
4207
+ } catch (m) {
4208
+ xe(m);
4209
4209
  }
4210
4210
  }
4211
- }, te.prototype.addEventListener = function(a, h) {
4211
+ }, ee.prototype.addEventListener = function(a, l) {
4212
4212
  a = String(a);
4213
- var p = this._listeners, d = p[a];
4214
- d == null && (d = [], p[a] = d);
4215
- for (var y = !1, v = 0; v < d.length; v += 1)
4216
- d[v] === h && (y = !0);
4217
- y || d.push(h);
4218
- }, te.prototype.removeEventListener = function(a, h) {
4213
+ var f = this._listeners, p = f[a];
4214
+ p == null && (p = [], f[a] = p);
4215
+ for (var E = !1, m = 0; m < p.length; m += 1)
4216
+ p[m] === l && (E = !0);
4217
+ E || p.push(l);
4218
+ }, ee.prototype.removeEventListener = function(a, l) {
4219
4219
  a = String(a);
4220
- var p = this._listeners, d = p[a];
4221
- if (d != null) {
4222
- for (var y = [], v = 0; v < d.length; v += 1)
4223
- d[v] !== h && y.push(d[v]);
4224
- y.length === 0 ? delete p[a] : p[a] = y;
4220
+ var f = this._listeners, p = f[a];
4221
+ if (p != null) {
4222
+ for (var E = [], m = 0; m < p.length; m += 1)
4223
+ p[m] !== l && E.push(p[m]);
4224
+ E.length === 0 ? delete f[a] : f[a] = E;
4225
4225
  }
4226
4226
  };
4227
- function E(a) {
4227
+ function v(a) {
4228
4228
  this.type = a, this.target = void 0;
4229
4229
  }
4230
- function Te(a, h) {
4231
- E.call(this, a), this.data = h.data, this.lastEventId = h.lastEventId;
4230
+ function _e(a, l) {
4231
+ v.call(this, a), this.data = l.data, this.lastEventId = l.lastEventId;
4232
4232
  }
4233
- Te.prototype = Object.create(E.prototype);
4234
- function We(a, h) {
4235
- E.call(this, a), this.status = h.status, this.statusText = h.statusText, this.headers = h.headers;
4233
+ _e.prototype = Object.create(v.prototype);
4234
+ function ze(a, l) {
4235
+ v.call(this, a), this.status = l.status, this.statusText = l.statusText, this.headers = l.headers;
4236
4236
  }
4237
- We.prototype = Object.create(E.prototype);
4238
- function ot(a, h) {
4239
- E.call(this, a), this.error = h.error;
4237
+ ze.prototype = Object.create(v.prototype);
4238
+ function it(a, l) {
4239
+ v.call(this, a), this.error = l.error;
4240
4240
  }
4241
- ot.prototype = Object.create(E.prototype);
4242
- var Ze = -1, le = 0, Be = 1, me = 2, Le = -1, he = 0, Ae = 1, qe = 2, Tt = 3, at = /^text\/event\-stream(;.*)?$/i, Bt = 1e3, St = 18e6, Re = function(a, h) {
4243
- var p = a == null ? h : parseInt(a, 10);
4244
- return p !== p && (p = h), Qe(p);
4245
- }, Qe = function(a) {
4246
- return Math.min(Math.max(a, Bt), St);
4247
- }, Se = function(a, h, p) {
4241
+ it.prototype = Object.create(v.prototype);
4242
+ var We = -1, ue = 0, Te = 1, pe = 2, Oe = -1, le = 0, we = 1, Ze = 2, _t = 3, ot = /^text\/event\-stream(;.*)?$/i, Tt = 1e3, Bt = 18e6, qe = function(a, l) {
4243
+ var f = a == null ? l : parseInt(a, 10);
4244
+ return f !== f && (f = l), Le(f);
4245
+ }, Le = function(a) {
4246
+ return Math.min(Math.max(a, Tt), Bt);
4247
+ }, Be = function(a, l, f) {
4248
4248
  try {
4249
- typeof h == "function" && h.call(a, p);
4250
- } catch (d) {
4251
- _e(d);
4249
+ typeof l == "function" && l.call(a, f);
4250
+ } catch (p) {
4251
+ xe(p);
4252
4252
  }
4253
4253
  };
4254
- function ne(a, h) {
4255
- te.call(this), h = h || {}, 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, b(this, a, h);
4254
+ function te(a, l) {
4255
+ ee.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, At(this, a, l);
4256
4256
  }
4257
- function wt() {
4257
+ function St() {
4258
4258
  return o != null && "withCredentials" in o.prototype || u == null ? new o() : new u();
4259
4259
  }
4260
- var At = m != null && g != null && "body" in g.prototype;
4261
- function b(a, h, p) {
4262
- h = String(h);
4263
- var d = !!p.withCredentials, y = p.lastEventIdQueryParameterName || "lastEventId", v = Qe(1e3), T = Re(p.heartbeatTimeout, 45e3), N = "", C = v, H = !1, I = 0, w = p.headers || {}, U = p.Transport, ge = At && U == null ? void 0 : new A(U != null ? new U() : wt()), Je = U != null && typeof U != "string" ? new U() : ge == null ? new pe() : new ee(), re = void 0, Q = 0, se = Ze, Ne = "", st = "", be = "", ut = "", J = he, Ct = 0, Ce = 0, Kn = function(X, V, ie, oe) {
4264
- if (se === le)
4265
- if (X === 200 && ie != null && at.test(ie)) {
4266
- se = Be, H = Date.now(), C = v, a.readyState = Be;
4267
- var Y = new We("open", {
4268
- status: X,
4269
- statusText: V,
4270
- headers: oe
4260
+ var wt = g != null && y != null && "body" in y.prototype;
4261
+ function At(a, l, f) {
4262
+ l = String(l);
4263
+ var p = !!f.withCredentials, E = f.lastEventIdQueryParameterName || "lastEventId", m = Le(1e3), _ = qe(f.heartbeatTimeout, 45e3), N = "", A = m, O = !1, L = 0, S = f.headers || {}, F = f.Transport, me = wt && F == null ? void 0 : new w(F != null ? new F() : St()), Qe = F != null && typeof F != "string" ? new F() : me == null ? new de() : new K(), ne = void 0, q = 0, ae = We, Re = "", at = "", ge = "", st = "", Q = le, Ct = 0, Ae = 0, Kn = function(V, k, re, ie) {
4264
+ if (ae === ue)
4265
+ if (V === 200 && re != null && ot.test(re)) {
4266
+ ae = Te, O = Date.now(), A = m, a.readyState = Te;
4267
+ var J = new ze("open", {
4268
+ status: V,
4269
+ statusText: k,
4270
+ headers: ie
4271
4271
  });
4272
- a.dispatchEvent(Y), Se(a, a.onopen, Y);
4272
+ a.dispatchEvent(J), Be(a, a.onopen, J);
4273
4273
  } else {
4274
- var Z = "";
4275
- X !== 200 ? (V && (V = V.replace(/\s+/g, " ")), Z = "EventSource's response has a status " + X + " " + V + " that is not 200. Aborting the connection.") : Z = "EventSource's response has a Content-Type specifying an unsupported type: " + (ie == null ? "-" : ie.replace(/\s+/g, " ")) + ". Aborting the connection.", Ht();
4276
- var Y = new We("error", {
4277
- status: X,
4278
- statusText: V,
4279
- headers: oe
4274
+ var W = "";
4275
+ V !== 200 ? (k && (k = k.replace(/\s+/g, " ")), W = "EventSource's response has a status " + V + " " + k + " that is not 200. Aborting the connection.") : W = "EventSource's response has a Content-Type specifying an unsupported type: " + (re == null ? "-" : re.replace(/\s+/g, " ")) + ". Aborting the connection.", Ht();
4276
+ var J = new ze("error", {
4277
+ status: V,
4278
+ statusText: k,
4279
+ headers: ie
4280
4280
  });
4281
- a.dispatchEvent(Y), Se(a, a.onerror, Y), console.error(Z);
4281
+ a.dispatchEvent(J), Be(a, a.onerror, J), console.error(W);
4282
4282
  }
4283
- }, er = function(X) {
4284
- if (se === Be) {
4285
- for (var V = -1, ie = 0; ie < X.length; ie += 1) {
4286
- var oe = X.charCodeAt(ie);
4287
- (oe === 10 || oe === 13) && (V = ie);
4283
+ }, er = function(V) {
4284
+ if (ae === Te) {
4285
+ for (var k = -1, re = 0; re < V.length; re += 1) {
4286
+ var ie = V.charCodeAt(re);
4287
+ (ie === 10 || ie === 13) && (k = re);
4288
4288
  }
4289
- var Y = (V !== -1 ? ut : "") + X.slice(0, V + 1);
4290
- ut = (V === -1 ? ut : "") + X.slice(V + 1), X !== "" && (H = Date.now(), I += X.length);
4291
- for (var Z = 0; Z < Y.length; Z += 1) {
4292
- var oe = Y.charCodeAt(Z);
4293
- if (J === Le && oe === 10)
4294
- J = he;
4295
- else if (J === Le && (J = he), oe === 13 || oe === 10) {
4296
- if (J !== he) {
4297
- J === Ae && (Ce = Z + 1);
4298
- var ye = Y.slice(Ct, Ce - 1), ve = Y.slice(Ce + (Ce < Z && Y.charCodeAt(Ce) === 32 ? 1 : 0), Z);
4299
- ye === "data" ? (Ne += `
4300
- `, Ne += ve) : ye === "id" ? st = ve : ye === "event" ? be = ve : ye === "retry" ? (v = Re(ve, v), C = v) : ye === "heartbeatTimeout" && (T = Re(ve, T), Q !== 0 && (i(Q), Q = r(function() {
4301
- Ye();
4302
- }, T)));
4289
+ var J = (k !== -1 ? st : "") + V.slice(0, k + 1);
4290
+ st = (k === -1 ? st : "") + V.slice(k + 1), V !== "" && (O = Date.now(), L += V.length);
4291
+ for (var W = 0; W < J.length; W += 1) {
4292
+ var ie = J.charCodeAt(W);
4293
+ if (Q === Oe && ie === 10)
4294
+ Q = le;
4295
+ else if (Q === Oe && (Q = le), ie === 13 || ie === 10) {
4296
+ if (Q !== le) {
4297
+ Q === we && (Ae = W + 1);
4298
+ var be = J.slice(Ct, Ae - 1), ye = J.slice(Ae + (Ae < W && J.charCodeAt(Ae) === 32 ? 1 : 0), W);
4299
+ be === "data" ? (Re += `
4300
+ `, Re += ye) : be === "id" ? at = ye : be === "event" ? ge = ye : be === "retry" ? (m = qe(ye, m), A = m) : be === "heartbeatTimeout" && (_ = qe(ye, _), q !== 0 && (i(q), q = r(function() {
4301
+ Je();
4302
+ }, _)));
4303
4303
  }
4304
- if (J === he) {
4305
- if (Ne !== "") {
4306
- N = st, be === "" && (be = "message");
4307
- var Pe = new Te(be, {
4308
- data: Ne.slice(1),
4309
- lastEventId: st
4304
+ if (Q === le) {
4305
+ if (Re !== "") {
4306
+ N = at, ge === "" && (ge = "message");
4307
+ var Ne = new _e(ge, {
4308
+ data: Re.slice(1),
4309
+ lastEventId: at
4310
4310
  });
4311
- if (a.dispatchEvent(Pe), be === "open" ? Se(a, a.onopen, Pe) : be === "message" ? Se(a, a.onmessage, Pe) : be === "error" && Se(a, a.onerror, Pe), se === me)
4311
+ if (a.dispatchEvent(Ne), ge === "open" ? Be(a, a.onopen, Ne) : ge === "message" ? Be(a, a.onmessage, Ne) : ge === "error" && Be(a, a.onerror, Ne), ae === pe)
4312
4312
  return;
4313
4313
  }
4314
- Ne = "", be = "";
4314
+ Re = "", ge = "";
4315
4315
  }
4316
- J = oe === 13 ? Le : he;
4316
+ Q = ie === 13 ? Oe : le;
4317
4317
  } else
4318
- J === he && (Ct = Z, J = Ae), J === Ae ? oe === 58 && (Ce = Z + 1, J = qe) : J === qe && (J = Tt);
4318
+ Q === le && (Ct = W, Q = we), Q === we ? ie === 58 && (Ae = W + 1, Q = Ze) : Q === Ze && (Q = _t);
4319
4319
  }
4320
4320
  }
4321
- }, Kt = function(X) {
4322
- if (se === Be || se === le) {
4323
- se = Ze, Q !== 0 && (i(Q), Q = 0), Q = r(function() {
4324
- Ye();
4325
- }, C), C = Qe(Math.min(v * 16, C * 2)), a.readyState = le;
4326
- var V = new ot("error", { error: X });
4327
- a.dispatchEvent(V), Se(a, a.onerror, V), X != null && console.error(X);
4321
+ }, Kt = function(V) {
4322
+ if (ae === Te || ae === ue) {
4323
+ ae = We, q !== 0 && (i(q), q = 0), q = r(function() {
4324
+ Je();
4325
+ }, A), A = Le(Math.min(m * 16, A * 2)), a.readyState = ue;
4326
+ var k = new it("error", { error: V });
4327
+ a.dispatchEvent(k), Be(a, a.onerror, k), V != null && console.error(V);
4328
4328
  }
4329
4329
  }, Ht = function() {
4330
- se = me, re != null && (re.abort(), re = void 0), Q !== 0 && (i(Q), Q = 0), a.readyState = me;
4331
- }, Ye = function() {
4332
- if (Q = 0, se !== Ze) {
4333
- if (!H && re != null)
4334
- Kt(new Error("No activity within " + T + " milliseconds. " + (se === le ? "No response received." : I + " chars received.") + " Reconnecting.")), re != null && (re.abort(), re = void 0);
4330
+ ae = pe, ne != null && (ne.abort(), ne = void 0), q !== 0 && (i(q), q = 0), a.readyState = pe;
4331
+ }, Je = function() {
4332
+ if (q = 0, ae !== We) {
4333
+ if (!O && ne != null)
4334
+ Kt(new Error("No activity within " + _ + " milliseconds. " + (ae === ue ? "No response received." : L + " chars received.") + " Reconnecting.")), ne != null && (ne.abort(), ne = void 0);
4335
4335
  else {
4336
- var X = Math.max((H || Date.now()) + T - Date.now(), 1);
4337
- H = !1, Q = r(function() {
4338
- Ye();
4339
- }, X);
4336
+ var V = Math.max((O || Date.now()) + _ - Date.now(), 1);
4337
+ O = !1, q = r(function() {
4338
+ Je();
4339
+ }, V);
4340
4340
  }
4341
4341
  return;
4342
4342
  }
4343
- H = !1, I = 0, Q = r(function() {
4344
- Ye();
4345
- }, T), se = le, Ne = "", be = "", st = N, ut = "", Ct = 0, Ce = 0, J = he;
4346
- var V = h;
4347
- if (h.slice(0, 5) !== "data:" && h.slice(0, 5) !== "blob:" && N !== "") {
4348
- var ie = h.indexOf("?");
4349
- V = ie === -1 ? h : h.slice(0, ie + 1) + h.slice(ie + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Pe) {
4350
- return Pe === y ? "" : ve;
4351
- }), V += (h.indexOf("?") === -1 ? "?" : "&") + y + "=" + encodeURIComponent(N);
4343
+ O = !1, L = 0, q = r(function() {
4344
+ Je();
4345
+ }, _), ae = ue, Re = "", ge = "", at = N, st = "", Ct = 0, Ae = 0, Q = le;
4346
+ var k = l;
4347
+ if (l.slice(0, 5) !== "data:" && l.slice(0, 5) !== "blob:" && N !== "") {
4348
+ var re = l.indexOf("?");
4349
+ k = re === -1 ? l : l.slice(0, re + 1) + l.slice(re + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ye, Ne) {
4350
+ return Ne === E ? "" : ye;
4351
+ }), k += (l.indexOf("?") === -1 ? "?" : "&") + E + "=" + encodeURIComponent(N);
4352
4352
  }
4353
- var oe = a.withCredentials, Y = {};
4354
- Y.Accept = "text/event-stream";
4355
- var Z = a.headers;
4356
- if (Z != null)
4357
- for (var ye in Z)
4358
- Object.prototype.hasOwnProperty.call(Z, ye) && (Y[ye] = Z[ye]);
4353
+ var ie = a.withCredentials, J = {};
4354
+ J.Accept = "text/event-stream";
4355
+ var W = a.headers;
4356
+ if (W != null)
4357
+ for (var be in W)
4358
+ Object.prototype.hasOwnProperty.call(W, be) && (J[be] = W[be]);
4359
4359
  try {
4360
- re = Je.open(ge, Kn, er, Kt, V, oe, Y);
4361
- } catch (ve) {
4362
- throw Ht(), ve;
4360
+ ne = Qe.open(me, Kn, er, Kt, k, ie, J);
4361
+ } catch (ye) {
4362
+ throw Ht(), ye;
4363
4363
  }
4364
4364
  };
4365
- a.url = h, a.readyState = le, a.withCredentials = d, a.headers = w, a._close = Ht, Ye();
4365
+ a.url = l, a.readyState = ue, a.withCredentials = p, a.headers = S, a._close = Ht, Je();
4366
4366
  }
4367
- ne.prototype = Object.create(te.prototype), ne.prototype.CONNECTING = le, ne.prototype.OPEN = Be, ne.prototype.CLOSED = me, ne.prototype.close = function() {
4367
+ te.prototype = Object.create(ee.prototype), te.prototype.CONNECTING = ue, te.prototype.OPEN = Te, te.prototype.CLOSED = pe, te.prototype.close = function() {
4368
4368
  this._close();
4369
- }, ne.CONNECTING = le, ne.OPEN = Be, ne.CLOSED = me, ne.prototype.withCredentials = void 0;
4370
- var B = f;
4371
- o != null && (f == null || !("withCredentials" in f.prototype)) && (B = ne), function(a) {
4369
+ }, te.CONNECTING = ue, te.OPEN = Te, te.CLOSED = pe, te.prototype.withCredentials = void 0;
4370
+ var b = d;
4371
+ o != null && (d == null || !("withCredentials" in d.prototype)) && (b = te), function(a) {
4372
4372
  {
4373
- var h = a(t);
4374
- h !== void 0 && (e.exports = h);
4373
+ var l = a(t);
4374
+ l !== void 0 && (e.exports = l);
4375
4375
  }
4376
4376
  }(function(a) {
4377
- a.EventSourcePolyfill = ne, a.NativeEventSource = f, a.EventSource = B;
4377
+ a.EventSourcePolyfill = te, a.NativeEventSource = d, a.EventSource = b;
4378
4378
  });
4379
4379
  })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Cr : globalThis);
4380
4380
  })(qt, qt.exports);
@@ -4384,11 +4384,11 @@ function vo(e) {
4384
4384
  }
4385
4385
  function yn(e, t, n) {
4386
4386
  const r = e.slice();
4387
- return r[48] = t[n], r;
4387
+ return r[49] = t[n], r;
4388
4388
  }
4389
4389
  function vn(e, t, n) {
4390
4390
  const r = e.slice();
4391
- return r[51] = t[n], r;
4391
+ return r[52] = t[n], r;
4392
4392
  }
4393
4393
  function Eo(e) {
4394
4394
  let t, n = (
@@ -4400,36 +4400,36 @@ function Eo(e) {
4400
4400
  e[3].Total[0].amount
4401
4401
  )
4402
4402
  ) : "0") + ""
4403
- ), r, i, o, u, s, f, l, c = (
4403
+ ), r, i, o, u, s, d, h, c = (
4404
4404
  /*isModalDisplayed*/
4405
4405
  e[2] && En(e)
4406
4406
  );
4407
4407
  return {
4408
4408
  c() {
4409
- t = j("button"), r = Ee(n), i = xe(), o = j("span"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', u = xe(), c && c.c(), s = ar(), q(t, "class", "BalanceValue");
4409
+ t = $("button"), r = ve(n), i = Ee(), o = $("span"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', u = Ee(), c && c.c(), s = ar(), Z(t, "class", "BalanceValue");
4410
4410
  },
4411
- m(m, g) {
4412
- fe(m, t, g), P(t, r), P(t, i), P(t, o), fe(m, u, g), c && c.m(m, g), fe(m, s, g), f || (l = dt(
4411
+ m(g, y) {
4412
+ ce(g, t, y), M(t, r), M(t, i), M(t, o), ce(g, u, y), c && c.m(g, y), ce(g, s, y), d || (h = ft(
4413
4413
  t,
4414
4414
  "click",
4415
4415
  /*click_handler*/
4416
4416
  e[23]
4417
- ), f = !0);
4417
+ ), d = !0);
4418
4418
  },
4419
- p(m, g) {
4420
- g[0] & /*balances*/
4419
+ p(g, y) {
4420
+ y[0] & /*balances*/
4421
4421
  8 && n !== (n = /*balances*/
4422
- (m[3].Total ? (
4422
+ (g[3].Total ? (
4423
4423
  /*formatBalance*/
4424
- m[5](
4424
+ g[5](
4425
4425
  /*balances*/
4426
- m[3].Total[0].amount
4426
+ g[3].Total[0].amount
4427
4427
  )
4428
- ) : "0") + "") && He(r, n), /*isModalDisplayed*/
4429
- m[2] ? c ? c.p(m, g) : (c = En(m), c.c(), c.m(s.parentNode, s)) : c && (c.d(1), c = null);
4428
+ ) : "0") + "") && Ce(r, n), /*isModalDisplayed*/
4429
+ g[2] ? c ? c.p(g, y) : (c = En(g), c.c(), c.m(s.parentNode, s)) : c && (c.d(1), c = null);
4430
4430
  },
4431
- d(m) {
4432
- m && (ue(t), ue(u), ue(s)), c && c.d(m), f = !1, l();
4431
+ d(g) {
4432
+ g && (se(t), se(u), se(s)), c && c.d(g), d = !1, h();
4433
4433
  }
4434
4434
  };
4435
4435
  }
@@ -4440,18 +4440,18 @@ function xo(e) {
4440
4440
  ), r;
4441
4441
  return {
4442
4442
  c() {
4443
- t = j("p"), r = Ee(n);
4443
+ t = $("p"), r = ve(n);
4444
4444
  },
4445
4445
  m(i, o) {
4446
- fe(i, t, o), P(t, r);
4446
+ ce(i, t, o), M(t, r);
4447
4447
  },
4448
4448
  p(i, o) {
4449
4449
  o[0] & /*$_*/
4450
4450
  16 && n !== (n = /*$_*/
4451
- i[4]("Loading") + "") && He(r, n);
4451
+ i[4]("Loading") + "") && Ce(r, n);
4452
4452
  },
4453
4453
  d(i) {
4454
- i && ue(t);
4454
+ i && se(t);
4455
4455
  }
4456
4456
  };
4457
4457
  }
@@ -4459,65 +4459,65 @@ function En(e) {
4459
4459
  let t, n, r, i, o, u, s = (
4460
4460
  /*$_*/
4461
4461
  e[4]("Title") + ""
4462
- ), f, l, c, m, g, x, _ = (
4462
+ ), d, h, c, g, y, x, T = (
4463
4463
  /*$_*/
4464
4464
  e[4]("DepositButton") + ""
4465
- ), M, k, W, $ = pt(Object.keys(
4465
+ ), P, j, z, G = dt(Object.keys(
4466
4466
  /*balances*/
4467
4467
  e[3]
4468
- )), S = [];
4469
- for (let A = 0; A < $.length; A += 1)
4470
- S[A] = _n(yn(e, $, A));
4468
+ )), B = [];
4469
+ for (let w = 0; w < G.length; w += 1)
4470
+ B[w] = _n(yn(e, G, w));
4471
4471
  return {
4472
4472
  c() {
4473
- t = j("div"), n = j("button"), r = xe(), i = j("div"), o = j("div"), u = j("p"), f = Ee(s), l = xe(), c = j("div");
4474
- for (let A = 0; A < S.length; A += 1)
4475
- S[A].c();
4476
- m = xe(), g = j("div"), x = j("button"), M = Ee(_), q(n, "class", "BalanceModalClose"), q(u, "class", "BalanceModalTitle"), q(o, "class", "BalanceModalHeader"), q(c, "class", "BalanceModalBody"), q(x, "class", "BalanceModalAction"), q(g, "class", "BalanceModalFooter"), q(i, "class", "BalanceModal"), q(t, "class", "BalanceModalWrapper");
4473
+ t = $("div"), n = $("button"), r = Ee(), i = $("div"), o = $("div"), u = $("p"), d = ve(s), h = Ee(), c = $("div");
4474
+ for (let w = 0; w < B.length; w += 1)
4475
+ B[w].c();
4476
+ g = Ee(), y = $("div"), x = $("button"), P = ve(T), Z(n, "class", "BalanceModalClose"), Z(u, "class", "BalanceModalTitle"), Z(o, "class", "BalanceModalHeader"), Z(c, "class", "BalanceModalBody"), Z(x, "class", "BalanceModalAction"), Z(y, "class", "BalanceModalFooter"), Z(i, "class", "BalanceModal"), Z(t, "class", "BalanceModalWrapper");
4477
4477
  },
4478
- m(A, D) {
4479
- fe(A, t, D), P(t, n), P(t, r), P(t, i), P(i, o), P(o, u), P(u, f), P(i, l), P(i, c);
4480
- for (let R = 0; R < S.length; R += 1)
4481
- S[R] && S[R].m(c, null);
4482
- P(i, m), P(i, g), P(g, x), P(x, M), k || (W = [
4483
- dt(
4478
+ m(w, I) {
4479
+ ce(w, t, I), M(t, n), M(t, r), M(t, i), M(i, o), M(o, u), M(u, d), M(i, h), M(i, c);
4480
+ for (let R = 0; R < B.length; R += 1)
4481
+ B[R] && B[R].m(c, null);
4482
+ M(i, g), M(i, y), M(y, x), M(x, P), j || (z = [
4483
+ ft(
4484
4484
  n,
4485
4485
  "click",
4486
4486
  /*click_handler_1*/
4487
4487
  e[24]
4488
4488
  ),
4489
- dt(
4489
+ ft(
4490
4490
  x,
4491
4491
  "click",
4492
4492
  /*click_handler_2*/
4493
4493
  e[25]
4494
4494
  )
4495
- ], k = !0);
4495
+ ], j = !0);
4496
4496
  },
4497
- p(A, D) {
4498
- if (D[0] & /*$_*/
4497
+ p(w, I) {
4498
+ if (I[0] & /*$_*/
4499
4499
  16 && s !== (s = /*$_*/
4500
- A[4]("Title") + "") && He(f, s), D[0] & /*balances, formatBalance, $_*/
4500
+ w[4]("Title") + "") && Ce(d, s), I[0] & /*balances, formatBalance, $_*/
4501
4501
  56) {
4502
- $ = pt(Object.keys(
4502
+ G = dt(Object.keys(
4503
4503
  /*balances*/
4504
- A[3]
4504
+ w[3]
4505
4505
  ));
4506
4506
  let R;
4507
- for (R = 0; R < $.length; R += 1) {
4508
- const ee = yn(A, $, R);
4509
- S[R] ? S[R].p(ee, D) : (S[R] = _n(ee), S[R].c(), S[R].m(c, null));
4507
+ for (R = 0; R < G.length; R += 1) {
4508
+ const K = yn(w, G, R);
4509
+ B[R] ? B[R].p(K, I) : (B[R] = _n(K), B[R].c(), B[R].m(c, null));
4510
4510
  }
4511
- for (; R < S.length; R += 1)
4512
- S[R].d(1);
4513
- S.length = $.length;
4511
+ for (; R < B.length; R += 1)
4512
+ B[R].d(1);
4513
+ B.length = G.length;
4514
4514
  }
4515
- D[0] & /*$_*/
4516
- 16 && _ !== (_ = /*$_*/
4517
- A[4]("DepositButton") + "") && He(M, _);
4515
+ I[0] & /*$_*/
4516
+ 16 && T !== (T = /*$_*/
4517
+ w[4]("DepositButton") + "") && Ce(P, T);
4518
4518
  },
4519
- d(A) {
4520
- A && ue(t), An(S, A), k = !1, ke(W);
4519
+ d(w) {
4520
+ w && se(t), An(B, w), j = !1, je(z);
4521
4521
  }
4522
4522
  };
4523
4523
  }
@@ -4526,94 +4526,94 @@ function xn(e) {
4526
4526
  /*$_*/
4527
4527
  e[4](
4528
4528
  /*k*/
4529
- e[48]
4529
+ e[49]
4530
4530
  ) + ""
4531
4531
  ), i, o, u = (
4532
4532
  /*b*/
4533
- (e[51].productType ? (
4533
+ (e[52].productType ? (
4534
4534
  /*$_*/
4535
4535
  e[4](
4536
4536
  /*b*/
4537
- e[51].productType
4537
+ e[52].productType
4538
4538
  )
4539
4539
  ) : "") + ""
4540
- ), s, f, l, c, m = (
4540
+ ), s, d, h, c, g = (
4541
4541
  /*formatBalance*/
4542
4542
  e[5](
4543
4543
  /*b*/
4544
- e[51].amount
4544
+ e[52].amount
4545
4545
  ) + ""
4546
- ), g;
4546
+ ), y;
4547
4547
  return {
4548
4548
  c() {
4549
- t = j("div"), n = j("p"), i = Ee(r), o = xe(), s = Ee(u), f = xe(), l = j("p"), c = j("span"), g = Ee(m), q(n, "class", "BalanceModalText"), q(c, "class", "BalanceModalAmount"), q(l, "class", "BalanceModalValue"), q(t, "class", "BalanceModalRowLine");
4549
+ t = $("div"), n = $("p"), i = ve(r), o = Ee(), s = ve(u), d = Ee(), h = $("p"), c = $("span"), y = ve(g), Z(n, "class", "BalanceModalText"), Z(c, "class", "BalanceModalAmount"), Z(h, "class", "BalanceModalValue"), Z(t, "class", "BalanceModalRowLine");
4550
4550
  },
4551
- m(x, _) {
4552
- fe(x, t, _), P(t, n), P(n, i), P(n, o), P(n, s), P(t, f), P(t, l), P(l, c), P(c, g);
4551
+ m(x, T) {
4552
+ ce(x, t, T), M(t, n), M(n, i), M(n, o), M(n, s), M(t, d), M(t, h), M(h, c), M(c, y);
4553
4553
  },
4554
- p(x, _) {
4555
- _[0] & /*$_, balances*/
4554
+ p(x, T) {
4555
+ T[0] & /*$_, balances*/
4556
4556
  24 && r !== (r = /*$_*/
4557
4557
  x[4](
4558
4558
  /*k*/
4559
- x[48]
4560
- ) + "") && He(i, r), _[0] & /*balances, $_*/
4559
+ x[49]
4560
+ ) + "") && Ce(i, r), T[0] & /*balances, $_*/
4561
4561
  24 && u !== (u = /*b*/
4562
- (x[51].productType ? (
4562
+ (x[52].productType ? (
4563
4563
  /*$_*/
4564
4564
  x[4](
4565
4565
  /*b*/
4566
- x[51].productType
4566
+ x[52].productType
4567
4567
  )
4568
- ) : "") + "") && He(s, u), _[0] & /*balances*/
4569
- 8 && m !== (m = /*formatBalance*/
4568
+ ) : "") + "") && Ce(s, u), T[0] & /*balances*/
4569
+ 8 && g !== (g = /*formatBalance*/
4570
4570
  x[5](
4571
4571
  /*b*/
4572
- x[51].amount
4573
- ) + "") && He(g, m);
4572
+ x[52].amount
4573
+ ) + "") && Ce(y, g);
4574
4574
  },
4575
4575
  d(x) {
4576
- x && ue(t);
4576
+ x && se(t);
4577
4577
  }
4578
4578
  };
4579
4579
  }
4580
4580
  function _n(e) {
4581
- let t, n, r = pt(
4581
+ let t, n, r = dt(
4582
4582
  /*balances*/
4583
4583
  e[3][
4584
4584
  /*k*/
4585
- e[48]
4585
+ e[49]
4586
4586
  ]
4587
4587
  ), i = [];
4588
4588
  for (let o = 0; o < r.length; o += 1)
4589
4589
  i[o] = xn(vn(e, r, o));
4590
4590
  return {
4591
4591
  c() {
4592
- t = j("div");
4592
+ t = $("div");
4593
4593
  for (let o = 0; o < i.length; o += 1)
4594
4594
  i[o].c();
4595
- n = xe(), q(t, "class", "BalanceModalRowBoth");
4595
+ n = Ee(), Z(t, "class", "BalanceModalRowBoth");
4596
4596
  },
4597
4597
  m(o, u) {
4598
- fe(o, t, u);
4598
+ ce(o, t, u);
4599
4599
  for (let s = 0; s < i.length; s += 1)
4600
4600
  i[s] && i[s].m(t, null);
4601
- P(t, n);
4601
+ M(t, n);
4602
4602
  },
4603
4603
  p(o, u) {
4604
4604
  if (u[0] & /*formatBalance, balances, $_*/
4605
4605
  56) {
4606
- r = pt(
4606
+ r = dt(
4607
4607
  /*balances*/
4608
4608
  o[3][
4609
4609
  /*k*/
4610
- o[48]
4610
+ o[49]
4611
4611
  ]
4612
4612
  );
4613
4613
  let s;
4614
4614
  for (s = 0; s < r.length; s += 1) {
4615
- const f = vn(o, r, s);
4616
- i[s] ? i[s].p(f, u) : (i[s] = xn(f), i[s].c(), i[s].m(t, n));
4615
+ const d = vn(o, r, s);
4616
+ i[s] ? i[s].p(d, u) : (i[s] = xn(d), i[s].c(), i[s].m(t, n));
4617
4617
  }
4618
4618
  for (; s < i.length; s += 1)
4619
4619
  i[s].d(1);
@@ -4621,7 +4621,7 @@ function _n(e) {
4621
4621
  }
4622
4622
  },
4623
4623
  d(o) {
4624
- o && ue(t), An(i, o);
4624
+ o && se(t), An(i, o);
4625
4625
  }
4626
4626
  };
4627
4627
  }
@@ -4629,28 +4629,28 @@ function Tn(e) {
4629
4629
  let t, n, r;
4630
4630
  return {
4631
4631
  c() {
4632
- t = j("button"), q(t, "class", "ShowBalanceModalOverlay");
4632
+ t = $("button"), Z(t, "class", "ShowBalanceModalOverlay");
4633
4633
  },
4634
4634
  m(i, o) {
4635
- fe(i, t, o), n || (r = dt(
4635
+ ce(i, t, o), n || (r = ft(
4636
4636
  t,
4637
4637
  "click",
4638
4638
  /*click_handler_3*/
4639
4639
  e[26]
4640
4640
  ), n = !0);
4641
4641
  },
4642
- p: ae,
4642
+ p: oe,
4643
4643
  d(i) {
4644
- i && ue(t), n = !1, r();
4644
+ i && se(t), n = !1, r();
4645
4645
  }
4646
4646
  };
4647
4647
  }
4648
4648
  function _o(e) {
4649
4649
  let t, n, r;
4650
- function i(f, l) {
4650
+ function i(d, h) {
4651
4651
  return (
4652
4652
  /*isLoading*/
4653
- f[1] ? xo : Eo
4653
+ d[1] ? xo : Eo
4654
4654
  );
4655
4655
  }
4656
4656
  let o = i(e), u = o(e), s = (
@@ -4659,131 +4659,131 @@ function _o(e) {
4659
4659
  );
4660
4660
  return {
4661
4661
  c() {
4662
- t = j("div"), n = j("div"), u.c(), r = xe(), s && s.c(), q(n, "class", "ShowBalance");
4662
+ t = $("div"), n = $("div"), u.c(), r = Ee(), s && s.c(), Z(n, "class", "ShowBalance");
4663
4663
  },
4664
- m(f, l) {
4665
- fe(f, t, l), P(t, n), u.m(n, null), P(t, r), s && s.m(t, null), e[27](t);
4664
+ m(d, h) {
4665
+ ce(d, t, h), M(t, n), u.m(n, null), M(t, r), s && s.m(t, null), e[27](t);
4666
4666
  },
4667
- p(f, l) {
4668
- o === (o = i(f)) && u ? u.p(f, l) : (u.d(1), u = o(f), u && (u.c(), u.m(n, null))), /*isModalDisplayed*/
4669
- f[2] ? s ? s.p(f, l) : (s = Tn(f), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4667
+ p(d, h) {
4668
+ o === (o = i(d)) && u ? u.p(d, h) : (u.d(1), u = o(d), u && (u.c(), u.m(n, null))), /*isModalDisplayed*/
4669
+ d[2] ? s ? s.p(d, h) : (s = Tn(d), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4670
4670
  },
4671
- i: ae,
4672
- o: ae,
4673
- d(f) {
4674
- f && ue(t), u.d(), s && s.d(), e[27](null);
4671
+ i: oe,
4672
+ o: oe,
4673
+ d(d) {
4674
+ d && se(t), u.d(), s && s.d(), e[27](null);
4675
4675
  }
4676
4676
  };
4677
4677
  }
4678
4678
  function To(e, t, n) {
4679
4679
  let r;
4680
4680
  nr(e, go, (b) => n(4, r = b));
4681
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { mbsource: f } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: m = "" } = t, { gmversion: g = "gm16" } = t, { displaybalanceoption: x = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencylocale: M = "en" } = t, { currencydisplay: k = "symbol" } = t, { maximumfractiondigits: W = "2" } = t, { minimumfractiondigits: $ = "0" } = t, { customdisplayformat: S = "" } = t, A, D = !0, R = !1, ee = !1, de, pe = "", te = [], _e;
4682
- const E = {}, Te = ["totalCashAmount", "totalRealAmount"], We = () => {
4683
- fetch(m).then((b) => b.json()).then((b) => Object.keys(b).forEach((B) => gn(B, b[B]))).catch((b) => console.log(b));
4681
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { mbsource: d } = t, { clientstyling: h = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: g = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: x = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencylocale: P = "en" } = t, { currencydisplay: j = "symbol" } = t, { maximumfractiondigits: z = "2" } = t, { minimumfractiondigits: G = "0" } = t, { customdisplayformat: B = "" } = t, w, I = !0, R = !1, K = !1, fe, de = "", ee = [], xe;
4682
+ const v = {}, _e = ["totalCashAmount", "totalRealAmount"], ze = () => {
4683
+ fetch(g).then((b) => b.json()).then((b) => Object.keys(b).forEach((a) => gn(a, b[a]))).catch((b) => console.log(b));
4684
4684
  };
4685
4685
  Object.keys(bn).forEach((b) => gn(b, bn[b]));
4686
- const ot = (b) => {
4687
- if (S)
4688
- return Ze(b);
4689
- const B = M || s, a = {
4686
+ const it = (b) => {
4687
+ if (B)
4688
+ return We(b);
4689
+ const a = P || s, l = {
4690
4690
  style: "currency",
4691
- currency: pe,
4691
+ currency: de,
4692
4692
  useGrouping: !0,
4693
- currencyDisplay: k || "code",
4694
- maximumFractionDigits: W === "" || isNaN(Number(W)) ? 2 : Number(W),
4695
- minimumFractionDigits: $ === "" || isNaN(Number($)) ? 0 : Number($)
4693
+ currencyDisplay: j || "code",
4694
+ maximumFractionDigits: z === "" || isNaN(Number(z)) ? 2 : Number(z),
4695
+ minimumFractionDigits: G === "" || isNaN(Number(G)) ? 0 : Number(G)
4696
4696
  };
4697
- return new Intl.NumberFormat(B, a).format(b);
4698
- }, Ze = (b) => {
4699
- const B = [];
4700
- let a = "";
4701
- for (const h of S)
4702
- switch (h) {
4697
+ return new Intl.NumberFormat(a, l).format(b);
4698
+ }, We = (b) => {
4699
+ const a = [];
4700
+ let l = "";
4701
+ for (const f of B)
4702
+ switch (f) {
4703
4703
  default:
4704
- a += h;
4704
+ l += f;
4705
4705
  break;
4706
4706
  case "{":
4707
- a && B.push(a), a = "";
4707
+ l && a.push(l), l = "";
4708
4708
  break;
4709
4709
  case "}":
4710
- const [p, d] = a.split("|");
4711
- if (a = "", p.toLowerCase() === "currency")
4712
- a = pe;
4710
+ const [p, E] = l.split("|");
4711
+ if (l = "", p.toLowerCase() === "currency")
4712
+ l = de;
4713
4713
  else if (p.toLowerCase() === "amount") {
4714
- let y = ",", v = ".", T = 2;
4715
- d && (d[0] !== " " && (y = d[0]), d[1] !== " " && (v = d[1]), d[2] !== " " && !isNaN(Number(d[2])) && (T = Number(d[2])));
4716
- let [N, C] = String(Math.floor(b * 10 ** T) / 10 ** T).split(".");
4717
- a += N[0];
4718
- for (let H = 1; H < N.length; ++H)
4719
- (N.length - H) % 3 === 0 ? a += y + N[H] : a += N[H];
4720
- C && (a += v + C);
4714
+ let m = ",", _ = ".", N = 2;
4715
+ E && (E[0] !== " " && (m = E[0]), E[1] !== " " && (_ = E[1]), E[2] !== " " && !isNaN(Number(E[2])) && (N = Number(E[2])));
4716
+ let [A, O] = String(Math.floor(b * 10 ** N) / 10 ** N).split(".");
4717
+ l += A[0];
4718
+ for (let L = 1; L < A.length; ++L)
4719
+ (A.length - L) % 3 === 0 ? l += m + A[L] : l += A[L];
4720
+ O && (l += _ + O);
4721
4721
  }
4722
- a && B.push(a), a = "";
4722
+ l && a.push(l), l = "";
4723
4723
  break;
4724
4724
  }
4725
- return B.push(a), B.join("");
4726
- }, le = async () => {
4727
- n(1, D = !0);
4725
+ return a.push(l), a.join("");
4726
+ }, ue = async () => {
4727
+ n(1, I = !0);
4728
4728
  const b = new URL(`${u}/v1/player/${i}/account`);
4729
4729
  try {
4730
- const B = await fetch(b, {
4730
+ const a = await fetch(b, {
4731
4731
  method: "GET",
4732
4732
  headers: { "X-SessionID": o }
4733
- }), a = await B.json();
4734
- if (B.ok)
4735
- te = a.items, pe = te.find((h) => h.displayName === "Casino")?.currency, n(3, E.Total = [{ amount: a.totalAmount[pe] }], E), n(
4733
+ }), l = await a.json();
4734
+ if (a.ok)
4735
+ ee = l.items, de = ee.find((f) => f.displayName === "Casino")?.currency, n(3, v.Total = [{ amount: l.totalAmount[de] }], v), n(
4736
4736
  3,
4737
- E.Real = [
4737
+ v.Real = [
4738
4738
  {
4739
- amount: te.find((h) => h.displayName === "Casino")?.balanceAmount
4739
+ amount: ee.find((f) => f.displayName === "Casino")?.balanceAmount
4740
4740
  }
4741
4741
  ],
4742
- E
4742
+ v
4743
4743
  ), n(
4744
4744
  3,
4745
- E.Bonus = [
4745
+ v.Bonus = [
4746
4746
  {
4747
- amount: te.find((h) => h.displayName === "UBS")?.balanceAmount
4747
+ amount: ee.find((f) => f.displayName === "UBS")?.balanceAmount
4748
4748
  }
4749
4749
  ],
4750
- E
4750
+ v
4751
4751
  );
4752
4752
  else
4753
4753
  throw new Error("Failed to fetch balance data !");
4754
- } catch (B) {
4755
- console.log("Balance error: ", B);
4754
+ } catch (a) {
4755
+ console.log("Balance error: ", a);
4756
4756
  } finally {
4757
- n(1, D = !1);
4757
+ n(1, I = !1);
4758
4758
  }
4759
- }, Be = () => {
4760
- n(1, D = !0);
4761
- const b = new URL(`${u}/v2/player/${i}/balance`), B = new Headers();
4762
- B.append("X-SessionID", o), fetch(b, { method: "GET", headers: B }).then((h) => h.json()).then((h) => {
4763
- h[_] || n(7, _ = Te[0]);
4764
- const p = h.items.find((y) => y.type === "Real" && y.walletAccountType === "Ordinary");
4765
- if (pe = p.currency, ee = !!p.productType, n(3, E.Total = [{ amount: 0 }], E), n(3, E.Real = [], E), n(3, E.Bonus = [], E), n(3, E.Credit = [], E), !ee) {
4766
- _e = {
4759
+ }, Te = () => {
4760
+ n(1, I = !0);
4761
+ const b = new URL(`${u}/v2/player/${i}/balance`), a = new Headers();
4762
+ a.append("X-SessionID", o), fetch(b, { method: "GET", headers: a }).then((f) => f.json()).then((f) => {
4763
+ f[T] || n(7, T = _e[0]);
4764
+ const p = f.items.find((m) => m.type === "Real" && m.walletAccountType === "Ordinary");
4765
+ if (de = p.currency, K = !!p.productType, n(3, v.Total = [{ amount: 0 }], v), n(3, v.Real = [], v), n(3, v.Bonus = [], v), n(3, v.Credit = [], v), !K) {
4766
+ xe = {
4767
4767
  lastOrdinaryAfterAmount: 0,
4768
4768
  showCreditLineAfterAmount: !1
4769
- }, n(3, E.Total[0].amount = h[_][pe], E);
4770
- for (const y of h.items)
4771
- switch (y.type) {
4769
+ }, n(3, v.Total[0].amount = f[T][de], v);
4770
+ for (const m of f.items)
4771
+ switch (m.type) {
4772
4772
  case "Bonus":
4773
- E.Bonus.length === 0 ? E.Bonus.push({ amount: y.amount }) : n(3, E.Bonus[0].amount += y.amount, E);
4773
+ v.Bonus.length === 0 ? v.Bonus.push({ amount: m.amount }) : n(3, v.Bonus[0].amount += m.amount, v);
4774
4774
  break;
4775
4775
  case "Real":
4776
- if (y.creditLine && E.Credit.length === 0 && E.Credit.push({ amount: y.creditLine }), _ === "totalRealAmount")
4776
+ if (m.creditLine && v.Credit.length === 0 && v.Credit.push({ amount: m.creditLine }), T === "totalRealAmount")
4777
4777
  continue;
4778
- E.Real.length === 0 ? E.Real.push({ amount: y.amount }) : n(3, E.Real[0].amount += y.amount, E);
4778
+ v.Real.length === 0 ? v.Real.push({ amount: m.amount }) : n(3, v.Real[0].amount += m.amount, v);
4779
4779
  break;
4780
4780
  }
4781
- for (const [y, v] of Object.entries(E))
4782
- v.length < 1 && delete E[y];
4783
- n(1, D = !1);
4781
+ for (const [m, _] of Object.entries(v))
4782
+ _.length < 1 && delete v[m];
4783
+ n(1, I = !1);
4784
4784
  return;
4785
4785
  }
4786
- _e = {
4786
+ xe = {
4787
4787
  Casino: {
4788
4788
  lastOrdinaryAfterAmount: 0,
4789
4789
  showCreditLineAfterAmount: !1
@@ -4793,184 +4793,184 @@ function To(e, t, n) {
4793
4793
  showCreditLineAfterAmount: !1
4794
4794
  }
4795
4795
  };
4796
- let d = h.items;
4797
- x && x !== "All" && (d = h.items.filter((y) => y.productType === x));
4798
- for (const y of d) {
4799
- let v;
4800
- switch (y.type) {
4796
+ let E = f.items;
4797
+ x && x !== "All" && (E = f.items.filter((m) => m.productType === x));
4798
+ for (const m of E) {
4799
+ let _;
4800
+ switch (m.type) {
4801
4801
  case "Bonus":
4802
- v = E.Bonus.findIndex((T) => T.productType === y.productType), v > 0 ? n(3, E.Bonus[v].amount += y.amount, E) : E.Bonus.push({
4803
- amount: y.amount,
4804
- productType: y.productType
4802
+ _ = v.Bonus.findIndex((N) => N.productType === m.productType), _ > 0 ? n(3, v.Bonus[_].amount += m.amount, v) : v.Bonus.push({
4803
+ amount: m.amount,
4804
+ productType: m.productType
4805
4805
  });
4806
4806
  break;
4807
4807
  case "Real":
4808
- y.creditLine && E.Credit.push({
4809
- amount: y.creditLine,
4810
- productType: y.productType
4811
- }), v = E.Real.findIndex((T) => T.productType === y.productType), v > 0 ? n(3, E.Real[v].amount += y.amount, E) : E.Real.push({
4812
- amount: y.amount,
4813
- productType: y.productType
4808
+ m.creditLine && v.Credit.push({
4809
+ amount: m.creditLine,
4810
+ productType: m.productType
4811
+ }), _ = v.Real.findIndex((N) => N.productType === m.productType), _ > 0 ? n(3, v.Real[_].amount += m.amount, v) : v.Real.push({
4812
+ amount: m.amount,
4813
+ productType: m.productType
4814
4814
  });
4815
4815
  break;
4816
4816
  }
4817
4817
  }
4818
- qe();
4819
- for (const [y, v] of Object.entries(E))
4820
- v.length < 1 && delete E[y];
4821
- n(1, D = !1);
4818
+ Ze();
4819
+ for (const [m, _] of Object.entries(v))
4820
+ _.length < 1 && delete v[m];
4821
+ n(1, I = !1);
4822
4822
  }).catch(() => {
4823
- throw n(1, D = !1), new Error("Failed to fetch balance data !");
4823
+ throw n(1, I = !1), new Error("Failed to fetch balance data !");
4824
4824
  });
4825
- }, me = () => {
4826
- if (de && de.close(), o.length < 1)
4825
+ }, pe = () => {
4826
+ if (fe && fe.close(), o.length < 1)
4827
4827
  return;
4828
- let b, B;
4829
- switch (g) {
4828
+ let b, a;
4829
+ switch (y) {
4830
4830
  case "gm16":
4831
- b = new URL(`${u}/v2/player/${i}/information/updates`), B = (p) => Tt(p);
4831
+ b = new URL(`${u}/v2/player/${i}/information/updates`), a = (p) => _t(p);
4832
4832
  break;
4833
4833
  case "gmcore":
4834
- b = new URL(`${u}/v1/player/${i}/balance/updates`), B = (p) => he(p);
4834
+ b = new URL(`${u}/v1/player/${i}/balance/updates`), a = (p) => le(p);
4835
4835
  break;
4836
4836
  }
4837
- const a = {
4837
+ const l = {
4838
4838
  accept: "text/event-stream",
4839
4839
  "X-SessionId": o
4840
- }, h = new yo.EventSourcePolyfill(b, { headers: a });
4841
- de = h, h.addEventListener("message", B);
4842
- }, Le = (b) => {
4843
- let B;
4840
+ }, f = new yo.EventSourcePolyfill(b, { headers: l });
4841
+ fe = f, f.addEventListener("message", a);
4842
+ }, Oe = (b) => {
4843
+ let a;
4844
4844
  try {
4845
- B = JSON.parse(b);
4846
- } catch (a) {
4847
- console.log("Balance stream failed: ", a);
4845
+ a = JSON.parse(b);
4846
+ } catch (l) {
4847
+ console.log("Balance stream failed: ", l);
4848
4848
  return;
4849
4849
  }
4850
- return B;
4851
- }, he = (b) => {
4852
- const B = Le(b.data);
4853
- if (!B) {
4854
- me();
4850
+ return a;
4851
+ }, le = (b) => {
4852
+ const a = Oe(b.data);
4853
+ if (!a) {
4854
+ pe();
4855
4855
  return;
4856
4856
  }
4857
- let a = "0";
4858
- const h = B.balanceChange;
4859
- te = te.map((p) => (h && h[p.id] && (p = {
4857
+ let l = "0";
4858
+ const f = a.balanceChange;
4859
+ ee = ee.map((p) => (f && f[p.id] && (p = {
4860
4860
  ...p,
4861
- balanceAmount: h[p.id].afterAmount
4862
- }), a = (parseFloat(p?.balanceAmount) + parseFloat(a)).toString(), p)), n(3, E.Real = [{ amount: te[0]?.balanceAmount }], E), n(3, E.Bonus = [{ amount: te[1]?.balanceAmount }], E), n(3, E.Total = [{ amount: Number(a) }], E);
4863
- }, Ae = (b, B, a) => {
4864
- let h = null;
4865
- switch (a.walletAccountType) {
4861
+ balanceAmount: f[p.id].afterAmount
4862
+ }), l = (parseFloat(p?.balanceAmount) + parseFloat(l)).toString(), p)), n(3, v.Real = [{ amount: ee[0]?.balanceAmount }], v), n(3, v.Bonus = [{ amount: ee[1]?.balanceAmount }], v), n(3, v.Total = [{ amount: Number(l) }], v);
4863
+ }, we = (b, a, l) => {
4864
+ let f = null;
4865
+ switch (l.walletAccountType) {
4866
4866
  case "Ordinary":
4867
- (a.afterAmount !== a.affectedAmount || B.lastOrdinaryAfterAmount === 0) && (B.lastOrdinaryAfterAmount = a.afterAmount, B.showCreditLineAfterAmount || (h = a.afterAmount));
4867
+ (l.afterAmount !== l.affectedAmount || a.lastOrdinaryAfterAmount === 0) && (a.lastOrdinaryAfterAmount = l.afterAmount, a.showCreditLineAfterAmount || (f = l.afterAmount));
4868
4868
  break;
4869
4869
  case "CreditLine":
4870
- a.afterAmount !== 0 ? (h = a.afterAmount, B.showCreditLineAfterAmount = !0) : (h = B.lastOrdinaryAfterAmount, B.showCreditLineAfterAmount = !1);
4870
+ l.afterAmount !== 0 ? (f = l.afterAmount, a.showCreditLineAfterAmount = !0) : (f = a.lastOrdinaryAfterAmount, a.showCreditLineAfterAmount = !1);
4871
4871
  break;
4872
4872
  default:
4873
- h = a.afterAmount;
4873
+ f = l.afterAmount;
4874
4874
  }
4875
- return h === null ? b : h;
4876
- }, qe = () => {
4877
- switch (_) {
4875
+ return f === null ? b : f;
4876
+ }, Ze = () => {
4877
+ switch (T) {
4878
4878
  case "totalCashAmount":
4879
4879
  let b = 0;
4880
- for (const a of ["Real", "Bonus"])
4881
- for (const h of E[a])
4882
- b += Math.max(h.amount, 0);
4883
- n(3, E.Total[0].amount = b, E);
4880
+ for (const l of ["Real", "Bonus"])
4881
+ for (const f of v[l])
4882
+ b += Math.max(f.amount, 0);
4883
+ n(3, v.Total[0].amount = b, v);
4884
4884
  break;
4885
4885
  case "totalRealAmount":
4886
- if (!ee)
4886
+ if (!K)
4887
4887
  return;
4888
- let B = 0;
4889
- for (const a of E.Real)
4890
- B += a.amount;
4891
- n(3, E.Total[0].amount = B, E);
4888
+ let a = 0;
4889
+ for (const l of v.Real)
4890
+ a += l.amount;
4891
+ n(3, v.Total[0].amount = a, v);
4892
4892
  }
4893
- }, Tt = (b) => {
4894
- const B = Le(b.data);
4895
- if (!B) {
4896
- me();
4893
+ }, _t = (b) => {
4894
+ const a = Oe(b.data);
4895
+ if (!a) {
4896
+ pe();
4897
4897
  return;
4898
4898
  }
4899
- if (B.type !== "BALANCE_UPDATE_V2")
4899
+ if (Tt(a?.type) || a.type !== "BALANCE_UPDATE_V2")
4900
4900
  return;
4901
- const a = B.body.balanceChange;
4902
- for (const [h, p] of Object.entries(a))
4903
- if (_ === "totalRealAmount" && h === "Real" && !ee && n(3, E.Total[0].amount = Ae(E.Total[0].amount, _e, p), E), !!E[h])
4904
- for (const d of E[h]) {
4905
- if (!ee) {
4906
- d.amount = h === "Real" ? Ae(d.amount, _e, p) : p.afterAmount;
4901
+ const l = a.body.balanceChange;
4902
+ for (const [f, p] of Object.entries(l))
4903
+ if (T === "totalRealAmount" && f === "Real" && !K && n(3, v.Total[0].amount = we(v.Total[0].amount, xe, p), v), !!v[f])
4904
+ for (const E of v[f]) {
4905
+ if (!K) {
4906
+ E.amount = f === "Real" ? we(E.amount, xe, p) : p.afterAmount;
4907
4907
  continue;
4908
4908
  }
4909
- p.productType === d.productType && (d.amount = h === "Real" ? Ae(d.amount, _e[d.productType], p) : p.afterAmount);
4909
+ p.productType === E.productType && (E.amount = f === "Real" ? we(E.amount, xe[E.productType], p) : p.afterAmount);
4910
4910
  }
4911
- qe();
4912
- }, at = () => {
4911
+ Ze();
4912
+ }, ot = () => {
4913
4913
  n(2, R = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
4914
- }, Bt = () => {
4915
- Te.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${Te}. Using default value ('${Te[0]}').`), n(7, _ = Te[0]));
4916
- }, St = () => {
4917
- switch (bo(s), Bt(), g) {
4914
+ }, Tt = (b) => b === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Bt = () => {
4915
+ _e.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${_e}. Using default value ('${_e[0]}').`), n(7, T = _e[0]));
4916
+ }, qe = () => {
4917
+ switch (bo(s), Bt(), y) {
4918
4918
  case "gmcore":
4919
- le();
4919
+ ue();
4920
4920
  break;
4921
4921
  case "gm16":
4922
- Be();
4922
+ Te();
4923
4923
  break;
4924
4924
  default:
4925
- throw Error(`Invalid apiversion attribute: ${g}`);
4925
+ throw Error(`Invalid apiversion attribute: ${y}`);
4926
4926
  }
4927
- }, Re = (b) => b.data && b.data.type === "LogoutSuccessfull" && de.close();
4928
- hr(() => (window.addEventListener("message", Re, !1), () => {
4929
- window.removeEventListener("message", Re), de && de.close();
4927
+ }, Le = (b) => b.data && b.data.type === "LogoutSuccessfull" && fe.close();
4928
+ hr(() => (window.addEventListener("message", Le, !1), () => {
4929
+ window.removeEventListener("message", Le), fe && fe.close();
4930
4930
  }));
4931
- const Qe = () => n(2, R = !0), Se = () => n(2, R = !1), ne = () => at(), wt = () => n(2, R = !1);
4931
+ const Be = () => n(2, R = !0), te = () => n(2, R = !1), St = () => ot(), wt = () => n(2, R = !1);
4932
4932
  function At(b) {
4933
4933
  Dt[b ? "unshift" : "push"](() => {
4934
- A = b, n(0, A);
4934
+ w = b, n(0, w);
4935
4935
  });
4936
4936
  }
4937
4937
  return e.$$set = (b) => {
4938
- "userid" in b && n(8, i = b.userid), "session" in b && n(9, o = b.session), "endpoint" in b && n(10, u = b.endpoint), "lang" in b && n(11, s = b.lang), "mbsource" in b && n(12, f = b.mbsource), "clientstyling" in b && n(13, l = b.clientstyling), "clientstylingurl" in b && n(14, c = b.clientstylingurl), "translationurl" in b && n(15, m = b.translationurl), "gmversion" in b && n(16, g = b.gmversion), "displaybalanceoption" in b && n(17, x = b.displaybalanceoption), "totalcalculationmode" in b && n(7, _ = b.totalcalculationmode), "currencylocale" in b && n(18, M = b.currencylocale), "currencydisplay" in b && n(19, k = b.currencydisplay), "maximumfractiondigits" in b && n(20, W = b.maximumfractiondigits), "minimumfractiondigits" in b && n(21, $ = b.minimumfractiondigits), "customdisplayformat" in b && n(22, S = b.customdisplayformat);
4938
+ "userid" in b && n(8, i = b.userid), "session" in b && n(9, o = b.session), "endpoint" in b && n(10, u = b.endpoint), "lang" in b && n(11, s = b.lang), "mbsource" in b && n(12, d = b.mbsource), "clientstyling" in b && n(13, h = b.clientstyling), "clientstylingurl" in b && n(14, c = b.clientstylingurl), "translationurl" in b && n(15, g = b.translationurl), "gmversion" in b && n(16, y = b.gmversion), "displaybalanceoption" in b && n(17, x = b.displaybalanceoption), "totalcalculationmode" in b && n(7, T = b.totalcalculationmode), "currencylocale" in b && n(18, P = b.currencylocale), "currencydisplay" in b && n(19, j = b.currencydisplay), "maximumfractiondigits" in b && n(20, z = b.maximumfractiondigits), "minimumfractiondigits" in b && n(21, G = b.minimumfractiondigits), "customdisplayformat" in b && n(22, B = b.customdisplayformat);
4939
4939
  }, e.$$.update = () => {
4940
4940
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
4941
- 200448 && u && i && o && s && g && x && St(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
4942
- 67328 && u && i && o && g && me(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4943
- 8193 && l && A && Br(A, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4944
- 16385 && c && A && Sr(A, c), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4945
- 4097 && A && wr(A, `${f}.Style`), e.$$.dirty[0] & /*translationurl*/
4946
- 32768 && m && We();
4941
+ 200448 && u && i && o && s && y && x && qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
4942
+ 67328 && u && i && o && y && pe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4943
+ 8193 && h && w && Br(w, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4944
+ 16385 && c && w && Sr(w, c), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4945
+ 4097 && w && wr(w, `${d}.Style`), e.$$.dirty[0] & /*translationurl*/
4946
+ 32768 && g && ze();
4947
4947
  }, [
4948
- A,
4949
- D,
4948
+ w,
4949
+ I,
4950
4950
  R,
4951
- E,
4951
+ v,
4952
4952
  r,
4953
+ it,
4953
4954
  ot,
4954
- at,
4955
- _,
4955
+ T,
4956
4956
  i,
4957
4957
  o,
4958
4958
  u,
4959
4959
  s,
4960
- f,
4961
- l,
4960
+ d,
4961
+ h,
4962
4962
  c,
4963
- m,
4964
4963
  g,
4964
+ y,
4965
4965
  x,
4966
- M,
4967
- k,
4968
- W,
4969
- $,
4970
- S,
4971
- Qe,
4972
- Se,
4973
- ne,
4966
+ P,
4967
+ j,
4968
+ z,
4969
+ G,
4970
+ B,
4971
+ Be,
4972
+ te,
4973
+ St,
4974
4974
  wt,
4975
4975
  At
4976
4976
  ];
@@ -5009,97 +5009,97 @@ class Bo extends _r {
5009
5009
  return this.$$.ctx[8];
5010
5010
  }
5011
5011
  set userid(t) {
5012
- this.$$set({ userid: t }), z();
5012
+ this.$$set({ userid: t }), X();
5013
5013
  }
5014
5014
  get session() {
5015
5015
  return this.$$.ctx[9];
5016
5016
  }
5017
5017
  set session(t) {
5018
- this.$$set({ session: t }), z();
5018
+ this.$$set({ session: t }), X();
5019
5019
  }
5020
5020
  get endpoint() {
5021
5021
  return this.$$.ctx[10];
5022
5022
  }
5023
5023
  set endpoint(t) {
5024
- this.$$set({ endpoint: t }), z();
5024
+ this.$$set({ endpoint: t }), X();
5025
5025
  }
5026
5026
  get lang() {
5027
5027
  return this.$$.ctx[11];
5028
5028
  }
5029
5029
  set lang(t) {
5030
- this.$$set({ lang: t }), z();
5030
+ this.$$set({ lang: t }), X();
5031
5031
  }
5032
5032
  get mbsource() {
5033
5033
  return this.$$.ctx[12];
5034
5034
  }
5035
5035
  set mbsource(t) {
5036
- this.$$set({ mbsource: t }), z();
5036
+ this.$$set({ mbsource: t }), X();
5037
5037
  }
5038
5038
  get clientstyling() {
5039
5039
  return this.$$.ctx[13];
5040
5040
  }
5041
5041
  set clientstyling(t) {
5042
- this.$$set({ clientstyling: t }), z();
5042
+ this.$$set({ clientstyling: t }), X();
5043
5043
  }
5044
5044
  get clientstylingurl() {
5045
5045
  return this.$$.ctx[14];
5046
5046
  }
5047
5047
  set clientstylingurl(t) {
5048
- this.$$set({ clientstylingurl: t }), z();
5048
+ this.$$set({ clientstylingurl: t }), X();
5049
5049
  }
5050
5050
  get translationurl() {
5051
5051
  return this.$$.ctx[15];
5052
5052
  }
5053
5053
  set translationurl(t) {
5054
- this.$$set({ translationurl: t }), z();
5054
+ this.$$set({ translationurl: t }), X();
5055
5055
  }
5056
5056
  get gmversion() {
5057
5057
  return this.$$.ctx[16];
5058
5058
  }
5059
5059
  set gmversion(t) {
5060
- this.$$set({ gmversion: t }), z();
5060
+ this.$$set({ gmversion: t }), X();
5061
5061
  }
5062
5062
  get displaybalanceoption() {
5063
5063
  return this.$$.ctx[17];
5064
5064
  }
5065
5065
  set displaybalanceoption(t) {
5066
- this.$$set({ displaybalanceoption: t }), z();
5066
+ this.$$set({ displaybalanceoption: t }), X();
5067
5067
  }
5068
5068
  get totalcalculationmode() {
5069
5069
  return this.$$.ctx[7];
5070
5070
  }
5071
5071
  set totalcalculationmode(t) {
5072
- this.$$set({ totalcalculationmode: t }), z();
5072
+ this.$$set({ totalcalculationmode: t }), X();
5073
5073
  }
5074
5074
  get currencylocale() {
5075
5075
  return this.$$.ctx[18];
5076
5076
  }
5077
5077
  set currencylocale(t) {
5078
- this.$$set({ currencylocale: t }), z();
5078
+ this.$$set({ currencylocale: t }), X();
5079
5079
  }
5080
5080
  get currencydisplay() {
5081
5081
  return this.$$.ctx[19];
5082
5082
  }
5083
5083
  set currencydisplay(t) {
5084
- this.$$set({ currencydisplay: t }), z();
5084
+ this.$$set({ currencydisplay: t }), X();
5085
5085
  }
5086
5086
  get maximumfractiondigits() {
5087
5087
  return this.$$.ctx[20];
5088
5088
  }
5089
5089
  set maximumfractiondigits(t) {
5090
- this.$$set({ maximumfractiondigits: t }), z();
5090
+ this.$$set({ maximumfractiondigits: t }), X();
5091
5091
  }
5092
5092
  get minimumfractiondigits() {
5093
5093
  return this.$$.ctx[21];
5094
5094
  }
5095
5095
  set minimumfractiondigits(t) {
5096
- this.$$set({ minimumfractiondigits: t }), z();
5096
+ this.$$set({ minimumfractiondigits: t }), X();
5097
5097
  }
5098
5098
  get customdisplayformat() {
5099
5099
  return this.$$.ctx[22];
5100
5100
  }
5101
5101
  set customdisplayformat(t) {
5102
- this.$$set({ customdisplayformat: t }), z();
5102
+ this.$$set({ customdisplayformat: t }), X();
5103
5103
  }
5104
5104
  }
5105
5105
  xr(Bo, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);