@everymatrix/player-account-balance-modal-nd 1.85.15 → 1.85.17

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,71 +1,71 @@
1
1
  var Nr = Object.defineProperty, Ir = Object.defineProperties;
2
2
  var Dr = Object.getOwnPropertyDescriptors;
3
- var vn = Object.getOwnPropertySymbols;
3
+ var _n = Object.getOwnPropertySymbols;
4
4
  var Ur = Object.prototype.hasOwnProperty, Fr = Object.prototype.propertyIsEnumerable;
5
- var Dt = Math.pow, It = (e, t, n) => t in e ? Nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ut = (e, t) => {
5
+ var Ut = Math.pow, Dt = (e, t, n) => t in e ? Nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ft = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- Ur.call(t, n) && It(e, n, t[n]);
8
- if (vn)
9
- for (var n of vn(t))
10
- Fr.call(t, n) && It(e, n, t[n]);
7
+ Ur.call(t, n) && Dt(e, n, t[n]);
8
+ if (_n)
9
+ for (var n of _n(t))
10
+ Fr.call(t, n) && Dt(e, n, t[n]);
11
11
  return e;
12
- }, Ft = (e, t) => Ir(e, Dr(t));
13
- var ge = (e, t, n) => (It(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var Gt = (e, t, n) => new Promise((r, i) => {
15
- var o = (l) => {
12
+ }, Gt = (e, t) => Ir(e, Dr(t));
13
+ var ye = (e, t, n) => (Dt(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var jt = (e, t, n) => new Promise((r, i) => {
15
+ var o = (c) => {
16
16
  try {
17
- s(n.next(l));
17
+ s(n.next(c));
18
18
  } catch (u) {
19
19
  i(u);
20
20
  }
21
- }, a = (l) => {
21
+ }, a = (c) => {
22
22
  try {
23
- s(n.throw(l));
23
+ s(n.throw(c));
24
24
  } catch (u) {
25
25
  i(u);
26
26
  }
27
- }, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, a);
27
+ }, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, a);
28
28
  s((n = n.apply(e, t)).next());
29
29
  });
30
- function ye() {
30
+ function ve() {
31
31
  }
32
- function Jn(e) {
32
+ function Kn(e) {
33
33
  return e();
34
34
  }
35
- function _n() {
35
+ function En() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function Ye(e) {
39
- e.forEach(Jn);
38
+ function Qe(e) {
39
+ e.forEach(Kn);
40
40
  }
41
- function mn(e) {
41
+ function bn(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Kn(e, t) {
44
+ function er(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
47
  function Gr(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function er(e, ...t) {
50
+ function tr(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const r of t)
53
53
  r(void 0);
54
- return ye;
54
+ return ve;
55
55
  }
56
56
  const n = e.subscribe(...t);
57
57
  return n.unsubscribe ? () => n.unsubscribe() : n;
58
58
  }
59
59
  function jr(e, t, n) {
60
- e.$$.on_destroy.push(er(t, n));
60
+ e.$$.on_destroy.push(tr(t, n));
61
61
  }
62
- function P(e, t) {
62
+ function I(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
65
  function kr(e, t, n) {
66
66
  const r = $r(e);
67
67
  if (!r.getElementById(t)) {
68
- const i = V("style");
68
+ const i = X("style");
69
69
  i.id = t, i.textContent = n, Vr(r, i);
70
70
  }
71
71
  }
@@ -80,41 +80,41 @@ function $r(e) {
80
80
  ) : e.ownerDocument;
81
81
  }
82
82
  function Vr(e, t) {
83
- return P(
83
+ return I(
84
84
  /** @type {Document} */
85
85
  e.head || e,
86
86
  t
87
87
  ), t.sheet;
88
88
  }
89
- function _e(e, t, n) {
89
+ function Ee(e, t, n) {
90
90
  e.insertBefore(t, n || null);
91
91
  }
92
- function ve(e) {
92
+ function _e(e) {
93
93
  e.parentNode && e.parentNode.removeChild(e);
94
94
  }
95
- function tr(e, t) {
95
+ function nr(e, t) {
96
96
  for (let n = 0; n < e.length; n += 1)
97
97
  e[n] && e[n].d(t);
98
98
  }
99
- function V(e) {
99
+ function X(e) {
100
100
  return document.createElement(e);
101
101
  }
102
- function En(e) {
102
+ function xn(e) {
103
103
  return document.createElementNS("http://www.w3.org/2000/svg", e);
104
104
  }
105
- function Ce(e) {
105
+ function Te(e) {
106
106
  return document.createTextNode(e);
107
107
  }
108
- function Ae() {
109
- return Ce(" ");
108
+ function Be() {
109
+ return Te(" ");
110
110
  }
111
111
  function Xr() {
112
- return Ce("");
112
+ return Te("");
113
113
  }
114
- function at(e, t, n, r) {
114
+ function ut(e, t, n, r) {
115
115
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
116
116
  }
117
- function R(e, t, n) {
117
+ function M(e, t, n) {
118
118
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
119
119
  }
120
120
  function zr(e) {
@@ -133,148 +133,148 @@ function Wr(e) {
133
133
  }
134
134
  ), t;
135
135
  }
136
- let st;
137
- function ot(e) {
138
- st = e;
136
+ let lt;
137
+ function st(e) {
138
+ lt = e;
139
139
  }
140
140
  function Zr() {
141
- if (!st)
141
+ if (!lt)
142
142
  throw new Error("Function called outside component initialization");
143
- return st;
143
+ return lt;
144
144
  }
145
145
  function qr(e) {
146
146
  Zr().$$.on_mount.push(e);
147
147
  }
148
- const Ve = [], qt = [];
149
- let Xe = [];
150
- const xn = [], Yr = /* @__PURE__ */ Promise.resolve();
151
- let Yt = !1;
148
+ const Xe = [], Yt = [];
149
+ let ze = [];
150
+ const wn = [], Yr = /* @__PURE__ */ Promise.resolve();
151
+ let Qt = !1;
152
152
  function Qr() {
153
- Yt || (Yt = !0, Yr.then(Y));
153
+ Qt || (Qt = !0, Yr.then(Z));
154
154
  }
155
- function Qt(e) {
156
- Xe.push(e);
155
+ function Jt(e) {
156
+ ze.push(e);
157
157
  }
158
- const jt = /* @__PURE__ */ new Set();
159
- let ke = 0;
160
- function Y() {
161
- if (ke !== 0)
158
+ const kt = /* @__PURE__ */ new Set();
159
+ let $e = 0;
160
+ function Z() {
161
+ if ($e !== 0)
162
162
  return;
163
- const e = st;
163
+ const e = lt;
164
164
  do {
165
165
  try {
166
- for (; ke < Ve.length; ) {
167
- const t = Ve[ke];
168
- ke++, ot(t), Jr(t.$$);
166
+ for (; $e < Xe.length; ) {
167
+ const t = Xe[$e];
168
+ $e++, st(t), Jr(t.$$);
169
169
  }
170
170
  } catch (t) {
171
- throw Ve.length = 0, ke = 0, t;
171
+ throw Xe.length = 0, $e = 0, t;
172
172
  }
173
- for (ot(null), Ve.length = 0, ke = 0; qt.length; )
174
- qt.pop()();
175
- for (let t = 0; t < Xe.length; t += 1) {
176
- const n = Xe[t];
177
- jt.has(n) || (jt.add(n), n());
173
+ for (st(null), Xe.length = 0, $e = 0; Yt.length; )
174
+ Yt.pop()();
175
+ for (let t = 0; t < ze.length; t += 1) {
176
+ const n = ze[t];
177
+ kt.has(n) || (kt.add(n), n());
178
178
  }
179
- Xe.length = 0;
180
- } while (Ve.length);
181
- for (; xn.length; )
182
- xn.pop()();
183
- Yt = !1, jt.clear(), ot(e);
179
+ ze.length = 0;
180
+ } while (Xe.length);
181
+ for (; wn.length; )
182
+ wn.pop()();
183
+ Qt = !1, kt.clear(), st(e);
184
184
  }
185
185
  function Jr(e) {
186
186
  if (e.fragment !== null) {
187
- e.update(), Ye(e.before_update);
187
+ e.update(), Qe(e.before_update);
188
188
  const t = e.dirty;
189
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Qt);
189
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Jt);
190
190
  }
191
191
  }
192
192
  function Kr(e) {
193
193
  const t = [], n = [];
194
- Xe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Xe = t;
194
+ ze.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), ze = t;
195
195
  }
196
196
  const ei = /* @__PURE__ */ new Set();
197
197
  function ti(e, t) {
198
198
  e && e.i && (ei.delete(e), e.i(t));
199
199
  }
200
- function vt(e) {
200
+ function xt(e) {
201
201
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
202
202
  }
203
203
  function ni(e, t, n) {
204
204
  const { fragment: r, after_update: i } = e.$$;
205
- r && r.m(t, n), Qt(() => {
206
- const o = e.$$.on_mount.map(Jn).filter(mn);
207
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ye(o), e.$$.on_mount = [];
208
- }), i.forEach(Qt);
205
+ r && r.m(t, n), Jt(() => {
206
+ const o = e.$$.on_mount.map(Kn).filter(bn);
207
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Qe(o), e.$$.on_mount = [];
208
+ }), i.forEach(Jt);
209
209
  }
210
210
  function ri(e, t) {
211
211
  const n = e.$$;
212
- n.fragment !== null && (Kr(n.after_update), Ye(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
212
+ n.fragment !== null && (Kr(n.after_update), Qe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
213
213
  }
214
214
  function ii(e, t) {
215
- e.$$.dirty[0] === -1 && (Ve.push(e), Qr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
215
+ e.$$.dirty[0] === -1 && (Xe.push(e), Qr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
216
216
  }
217
217
  function oi(e, t, n, r, i, o, a = null, s = [-1]) {
218
- const l = st;
219
- ot(e);
218
+ const c = lt;
219
+ st(e);
220
220
  const u = e.$$ = {
221
221
  fragment: null,
222
222
  ctx: [],
223
223
  // state
224
224
  props: o,
225
- update: ye,
225
+ update: ve,
226
226
  not_equal: i,
227
- bound: _n(),
227
+ bound: En(),
228
228
  // lifecycle
229
229
  on_mount: [],
230
230
  on_destroy: [],
231
231
  on_disconnect: [],
232
232
  before_update: [],
233
233
  after_update: [],
234
- context: new Map(t.context || (l ? l.$$.context : [])),
234
+ context: new Map(t.context || (c ? c.$$.context : [])),
235
235
  // everything else
236
- callbacks: _n(),
236
+ callbacks: En(),
237
237
  dirty: s,
238
238
  skip_bound: !1,
239
- root: t.target || l.$$.root
239
+ root: t.target || c.$$.root
240
240
  };
241
241
  a && a(u.root);
242
242
  let f = !1;
243
- if (u.ctx = n ? n(e, t.props || {}, (b, p, ...y) => {
244
- const E = y.length ? y[0] : p;
245
- return u.ctx && i(u.ctx[b], u.ctx[b] = E) && (!u.skip_bound && u.bound[b] && u.bound[b](E), f && ii(e, b)), p;
246
- }) : [], u.update(), f = !0, Ye(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
243
+ if (u.ctx = n ? n(e, t.props || {}, (m, d, ...g) => {
244
+ const v = g.length ? g[0] : d;
245
+ return u.ctx && i(u.ctx[m], u.ctx[m] = v) && (!u.skip_bound && u.bound[m] && u.bound[m](v), f && ii(e, m)), d;
246
+ }) : [], u.update(), f = !0, Qe(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
247
247
  if (t.hydrate) {
248
- const b = zr(t.target);
249
- u.fragment && u.fragment.l(b), b.forEach(ve);
248
+ const m = zr(t.target);
249
+ u.fragment && u.fragment.l(m), m.forEach(_e);
250
250
  } else
251
251
  u.fragment && u.fragment.c();
252
- t.intro && ti(e.$$.fragment), ni(e, t.target, t.anchor), Y();
252
+ t.intro && ti(e.$$.fragment), ni(e, t.target, t.anchor), Z();
253
253
  }
254
- ot(l);
254
+ st(c);
255
255
  }
256
- let nr;
257
- typeof HTMLElement == "function" && (nr = class extends HTMLElement {
256
+ let rr;
257
+ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
258
258
  constructor(t, n, r) {
259
259
  super();
260
260
  /** The Svelte component constructor */
261
- ge(this, "$$ctor");
261
+ ye(this, "$$ctor");
262
262
  /** Slots */
263
- ge(this, "$$s");
263
+ ye(this, "$$s");
264
264
  /** The Svelte component instance */
265
- ge(this, "$$c");
265
+ ye(this, "$$c");
266
266
  /** Whether or not the custom element is connected */
267
- ge(this, "$$cn", !1);
267
+ ye(this, "$$cn", !1);
268
268
  /** Component props data */
269
- ge(this, "$$d", {});
269
+ ye(this, "$$d", {});
270
270
  /** `true` if currently in the process of reflecting component props back to attributes */
271
- ge(this, "$$r", !1);
271
+ ye(this, "$$r", !1);
272
272
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
273
- ge(this, "$$p_d", {});
273
+ ye(this, "$$p_d", {});
274
274
  /** @type {Record<string, Function[]>} Event listeners */
275
- ge(this, "$$l", {});
275
+ ye(this, "$$l", {});
276
276
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
277
- ge(this, "$$l_u", /* @__PURE__ */ new Map());
277
+ ye(this, "$$l_u", /* @__PURE__ */ new Map());
278
278
  this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
279
279
  }
280
280
  addEventListener(t, n, r) {
@@ -291,24 +291,24 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
291
291
  }
292
292
  }
293
293
  connectedCallback() {
294
- return Gt(this, null, function* () {
294
+ return jt(this, null, function* () {
295
295
  if (this.$$cn = !0, !this.$$c) {
296
296
  let t = function(o) {
297
297
  return () => {
298
298
  let a;
299
299
  return {
300
300
  c: function() {
301
- a = V("slot"), o !== "default" && R(a, "name", o);
301
+ a = X("slot"), o !== "default" && M(a, "name", o);
302
302
  },
303
303
  /**
304
304
  * @param {HTMLElement} target
305
305
  * @param {HTMLElement} [anchor]
306
306
  */
307
307
  m: function(u, f) {
308
- _e(u, a, f);
308
+ Ee(u, a, f);
309
309
  },
310
310
  d: function(u) {
311
- u && ve(a);
311
+ u && _e(a);
312
312
  }
313
313
  };
314
314
  };
@@ -320,13 +320,13 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
320
320
  o in r && (n[o] = [t(o)]);
321
321
  for (const o of this.attributes) {
322
322
  const a = this.$$g_p(o.name);
323
- a in this.$$d || (this.$$d[a] = mt(a, o.value, this.$$p_d, "toProp"));
323
+ a in this.$$d || (this.$$d[a] = yt(a, o.value, this.$$p_d, "toProp"));
324
324
  }
325
325
  for (const o in this.$$p_d)
326
326
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
327
327
  this.$$c = new this.$$ctor({
328
328
  target: this.shadowRoot || this,
329
- props: Ft(Ut({}, this.$$d), {
329
+ props: Gt(Ft({}, this.$$d), {
330
330
  $$slots: n,
331
331
  $$scope: {
332
332
  ctx: []
@@ -337,7 +337,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
337
337
  this.$$r = !0;
338
338
  for (const o in this.$$p_d)
339
339
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
340
- const a = mt(
340
+ const a = yt(
341
341
  o,
342
342
  this.$$d[o],
343
343
  this.$$p_d,
@@ -361,7 +361,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
361
361
  // and setting attributes through setAttribute etc, this is helpful
362
362
  attributeChangedCallback(t, n, r) {
363
363
  var i;
364
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = mt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
364
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = yt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
365
365
  }
366
366
  disconnectedCallback() {
367
367
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -374,7 +374,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
374
374
  ) || t;
375
375
  }
376
376
  });
377
- function mt(e, t, n, r) {
377
+ function yt(e, t, n, r) {
378
378
  var o;
379
379
  const i = (o = n[e]) == null ? void 0 : o.type;
380
380
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -405,7 +405,7 @@ function mt(e, t, n, r) {
405
405
  }
406
406
  }
407
407
  function ai(e, t, n, r, i, o) {
408
- let a = class extends nr {
408
+ let a = class extends rr {
409
409
  constructor() {
410
410
  super(e, n, i), this.$$p_d = t;
411
411
  }
@@ -420,16 +420,16 @@ function ai(e, t, n, r, i, o) {
420
420
  get() {
421
421
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
422
422
  },
423
- set(l) {
423
+ set(c) {
424
424
  var u;
425
- l = mt(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
425
+ c = yt(s, c, t), this.$$d[s] = c, (u = this.$$c) == null || u.$set({ [s]: c });
426
426
  }
427
427
  });
428
428
  }), r.forEach((s) => {
429
429
  Object.defineProperty(a.prototype, s, {
430
430
  get() {
431
- var l;
432
- return (l = this.$$c) == null ? void 0 : l[s];
431
+ var c;
432
+ return (c = this.$$c) == null ? void 0 : c[s];
433
433
  }
434
434
  });
435
435
  }), e.element = /** @type {any} */
@@ -444,7 +444,7 @@ class si {
444
444
  *
445
445
  * @type {any}
446
446
  */
447
- ge(this, "$$");
447
+ ye(this, "$$");
448
448
  /**
449
449
  * ### PRIVATE API
450
450
  *
@@ -452,11 +452,11 @@ class si {
452
452
  *
453
453
  * @type {any}
454
454
  */
455
- ge(this, "$$set");
455
+ ye(this, "$$set");
456
456
  }
457
457
  /** @returns {void} */
458
458
  $destroy() {
459
- ri(this, 1), this.$destroy = ye;
459
+ ri(this, 1), this.$destroy = ve;
460
460
  }
461
461
  /**
462
462
  * @template {Extract<keyof Events, string>} K
@@ -465,8 +465,8 @@ class si {
465
465
  * @returns {() => void}
466
466
  */
467
467
  $on(t, n) {
468
- if (!mn(n))
469
- return ye;
468
+ if (!bn(n))
469
+ return ve;
470
470
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
471
471
  return r.push(n), () => {
472
472
  const i = r.indexOf(n);
@@ -506,66 +506,66 @@ function hi(e, t, n) {
506
506
  });
507
507
  }
508
508
  }
509
- const $e = [];
509
+ const Ve = [];
510
510
  function fi(e, t) {
511
511
  return {
512
- subscribe: wt(e, t).subscribe
512
+ subscribe: Tt(e, t).subscribe
513
513
  };
514
514
  }
515
- function wt(e, t = ye) {
515
+ function Tt(e, t = ve) {
516
516
  let n;
517
517
  const r = /* @__PURE__ */ new Set();
518
518
  function i(s) {
519
- if (Kn(e, s) && (e = s, n)) {
520
- const l = !$e.length;
519
+ if (er(e, s) && (e = s, n)) {
520
+ const c = !Ve.length;
521
521
  for (const u of r)
522
- u[1](), $e.push(u, e);
523
- if (l) {
524
- for (let u = 0; u < $e.length; u += 2)
525
- $e[u][0]($e[u + 1]);
526
- $e.length = 0;
522
+ u[1](), Ve.push(u, e);
523
+ if (c) {
524
+ for (let u = 0; u < Ve.length; u += 2)
525
+ Ve[u][0](Ve[u + 1]);
526
+ Ve.length = 0;
527
527
  }
528
528
  }
529
529
  }
530
530
  function o(s) {
531
531
  i(s(e));
532
532
  }
533
- function a(s, l = ye) {
534
- const u = [s, l];
535
- return r.add(u), r.size === 1 && (n = t(i, o) || ye), s(e), () => {
533
+ function a(s, c = ve) {
534
+ const u = [s, c];
535
+ return r.add(u), r.size === 1 && (n = t(i, o) || ve), s(e), () => {
536
536
  r.delete(u), r.size === 0 && n && (n(), n = null);
537
537
  };
538
538
  }
539
539
  return { set: i, update: o, subscribe: a };
540
540
  }
541
- function Qe(e, t, n) {
541
+ function Je(e, t, n) {
542
542
  const r = !Array.isArray(e), i = r ? [e] : e;
543
543
  if (!i.every(Boolean))
544
544
  throw new Error("derived() expects stores as input, got a falsy value");
545
545
  const o = t.length < 2;
546
546
  return fi(n, (a, s) => {
547
- let l = !1;
547
+ let c = !1;
548
548
  const u = [];
549
- let f = 0, b = ye;
550
- const p = () => {
549
+ let f = 0, m = ve;
550
+ const d = () => {
551
551
  if (f)
552
552
  return;
553
- b();
554
- const E = t(r ? u[0] : u, a, s);
555
- o ? a(E) : b = mn(E) ? E : ye;
556
- }, y = i.map(
557
- (E, B) => er(
558
- E,
559
- (Q) => {
560
- u[B] = Q, f &= ~(1 << B), l && p();
553
+ m();
554
+ const v = t(r ? u[0] : u, a, s);
555
+ o ? a(v) : m = bn(v) ? v : ve;
556
+ }, g = i.map(
557
+ (v, B) => tr(
558
+ v,
559
+ (K) => {
560
+ u[B] = K, f &= ~(1 << B), c && d();
561
561
  },
562
562
  () => {
563
563
  f |= 1 << B;
564
564
  }
565
565
  )
566
566
  );
567
- return l = !0, p(), function() {
568
- Ye(y), b(), l = !1;
567
+ return c = !0, d(), function() {
568
+ Qe(g), m(), c = !1;
569
569
  };
570
570
  });
571
571
  }
@@ -590,29 +590,29 @@ function _i(e) {
590
590
  function Ei(e) {
591
591
  return Array.isArray(e) ? [] : {};
592
592
  }
593
- function ut(e, t) {
594
- return t.clone !== !1 && t.isMergeableObject(e) ? ze(Ei(e), e, t) : e;
593
+ function ct(e, t) {
594
+ return t.clone !== !1 && t.isMergeableObject(e) ? We(Ei(e), e, t) : e;
595
595
  }
596
596
  function xi(e, t, n) {
597
597
  return e.concat(t).map(function(r) {
598
- return ut(r, n);
598
+ return ct(r, n);
599
599
  });
600
600
  }
601
601
  function wi(e, t) {
602
602
  if (!t.customMerge)
603
- return ze;
603
+ return We;
604
604
  var n = t.customMerge(e);
605
- return typeof n == "function" ? n : ze;
605
+ return typeof n == "function" ? n : We;
606
606
  }
607
607
  function Si(e) {
608
608
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
609
609
  return Object.propertyIsEnumerable.call(e, t);
610
610
  }) : [];
611
611
  }
612
- function wn(e) {
612
+ function Sn(e) {
613
613
  return Object.keys(e).concat(Si(e));
614
614
  }
615
- function rr(e, t) {
615
+ function ir(e, t) {
616
616
  try {
617
617
  return t in e;
618
618
  } catch (n) {
@@ -620,56 +620,56 @@ function rr(e, t) {
620
620
  }
621
621
  }
622
622
  function Bi(e, t) {
623
- return rr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
623
+ return ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
624
624
  }
625
625
  function Ti(e, t, n) {
626
626
  var r = {};
627
- return n.isMergeableObject(e) && wn(e).forEach(function(i) {
628
- r[i] = ut(e[i], n);
629
- }), wn(t).forEach(function(i) {
630
- Bi(e, i) || (rr(e, i) && n.isMergeableObject(t[i]) ? r[i] = wi(i, n)(e[i], t[i], n) : r[i] = ut(t[i], n));
627
+ return n.isMergeableObject(e) && Sn(e).forEach(function(i) {
628
+ r[i] = ct(e[i], n);
629
+ }), Sn(t).forEach(function(i) {
630
+ Bi(e, i) || (ir(e, i) && n.isMergeableObject(t[i]) ? r[i] = wi(i, n)(e[i], t[i], n) : r[i] = ct(t[i], n));
631
631
  }), r;
632
632
  }
633
- function ze(e, t, n) {
634
- n = n || {}, n.arrayMerge = n.arrayMerge || xi, n.isMergeableObject = n.isMergeableObject || mi, n.cloneUnlessOtherwiseSpecified = ut;
633
+ function We(e, t, n) {
634
+ n = n || {}, n.arrayMerge = n.arrayMerge || xi, n.isMergeableObject = n.isMergeableObject || mi, n.cloneUnlessOtherwiseSpecified = ct;
635
635
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
636
- return o ? r ? n.arrayMerge(e, t, n) : Ti(e, t, n) : ut(t, n);
636
+ return o ? r ? n.arrayMerge(e, t, n) : Ti(e, t, n) : ct(t, n);
637
637
  }
638
- ze.all = function(t, n) {
638
+ We.all = function(t, n) {
639
639
  if (!Array.isArray(t))
640
640
  throw new Error("first argument should be an array");
641
641
  return t.reduce(function(r, i) {
642
- return ze(r, i, n);
642
+ return We(r, i, n);
643
643
  }, {});
644
644
  };
645
- var Ai = ze, Ci = Ai;
645
+ var Ai = We, Ci = Ai;
646
646
  const Hi = /* @__PURE__ */ pi(Ci);
647
- var Jt = function(e, t) {
648
- return Jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
647
+ var Kt = function(e, t) {
648
+ return Kt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
649
649
  n.__proto__ = r;
650
650
  } || function(n, r) {
651
651
  for (var i in r)
652
652
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
653
- }, Jt(e, t);
653
+ }, Kt(e, t);
654
654
  };
655
- function St(e, t) {
655
+ function At(e, t) {
656
656
  if (typeof t != "function" && t !== null)
657
657
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
658
- Jt(e, t);
658
+ Kt(e, t);
659
659
  function n() {
660
660
  this.constructor = e;
661
661
  }
662
662
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
663
663
  }
664
- var Te = function() {
665
- return Te = Object.assign || function(t) {
664
+ var Se = function() {
665
+ return Se = Object.assign || function(t) {
666
666
  for (var n, r = 1, i = arguments.length; r < i; r++) {
667
667
  n = arguments[r];
668
668
  for (var o in n)
669
669
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
670
670
  }
671
671
  return t;
672
- }, Te.apply(this, arguments);
672
+ }, Se.apply(this, arguments);
673
673
  };
674
674
  function Oi(e, t) {
675
675
  var n = {};
@@ -680,13 +680,13 @@ function Oi(e, t) {
680
680
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
681
681
  return n;
682
682
  }
683
- function kt(e, t, n) {
683
+ function $t(e, t, n) {
684
684
  if (n || arguments.length === 2)
685
685
  for (var r = 0, i = t.length, o; r < i; r++)
686
686
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
687
687
  return e.concat(o || Array.prototype.slice.call(t));
688
688
  }
689
- function $t(e, t) {
689
+ function Vt(e, t) {
690
690
  var n = t && t.cache ? t.cache : Di, r = t && t.serializer ? t.serializer : Ni, i = t && t.strategy ? t.strategy : Mi;
691
691
  return i(e, {
692
692
  cache: n,
@@ -700,19 +700,19 @@ function Ri(e, t, n, r) {
700
700
  var i = Li(r) ? r : n(r), o = t.get(i);
701
701
  return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
702
702
  }
703
- function ir(e, t, n) {
703
+ function or(e, t, n) {
704
704
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
705
705
  return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
706
706
  }
707
- function or(e, t, n, r, i) {
707
+ function ar(e, t, n, r, i) {
708
708
  return n.bind(t, e, r, i);
709
709
  }
710
710
  function Mi(e, t) {
711
- var n = e.length === 1 ? Ri : ir;
712
- return or(e, this, n, t.cache.create(), t.serializer);
711
+ var n = e.length === 1 ? Ri : or;
712
+ return ar(e, this, n, t.cache.create(), t.serializer);
713
713
  }
714
714
  function Pi(e, t) {
715
- return or(e, this, ir, t.cache.create(), t.serializer);
715
+ return ar(e, this, or, t.cache.create(), t.serializer);
716
716
  }
717
717
  var Ni = function() {
718
718
  return JSON.stringify(arguments);
@@ -732,64 +732,64 @@ var Ni = function() {
732
732
  create: function() {
733
733
  return new Ii();
734
734
  }
735
- }, Vt = {
735
+ }, Xt = {
736
736
  variadic: Pi
737
- }, _t = function() {
738
- return _t = Object.assign || function(t) {
737
+ }, wt = function() {
738
+ return wt = Object.assign || function(t) {
739
739
  for (var n, r = 1, i = arguments.length; r < i; r++) {
740
740
  n = arguments[r];
741
741
  for (var o in n)
742
742
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
743
743
  }
744
744
  return t;
745
- }, _t.apply(this, arguments);
745
+ }, wt.apply(this, arguments);
746
746
  };
747
- var L;
747
+ var R;
748
748
  (function(e) {
749
749
  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";
750
- })(L || (L = {}));
751
- var $;
750
+ })(R || (R = {}));
751
+ var V;
752
752
  (function(e) {
753
753
  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";
754
- })($ || ($ = {}));
755
- var We;
754
+ })(V || (V = {}));
755
+ var Ze;
756
756
  (function(e) {
757
757
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
758
- })(We || (We = {}));
759
- function Sn(e) {
760
- return e.type === $.literal;
758
+ })(Ze || (Ze = {}));
759
+ function Bn(e) {
760
+ return e.type === V.literal;
761
761
  }
762
762
  function Ui(e) {
763
- return e.type === $.argument;
764
- }
765
- function ar(e) {
766
- return e.type === $.number;
763
+ return e.type === V.argument;
767
764
  }
768
765
  function sr(e) {
769
- return e.type === $.date;
766
+ return e.type === V.number;
770
767
  }
771
768
  function ur(e) {
772
- return e.type === $.time;
769
+ return e.type === V.date;
773
770
  }
774
771
  function lr(e) {
775
- return e.type === $.select;
772
+ return e.type === V.time;
776
773
  }
777
774
  function cr(e) {
778
- return e.type === $.plural;
779
- }
780
- function Fi(e) {
781
- return e.type === $.pound;
775
+ return e.type === V.select;
782
776
  }
783
777
  function hr(e) {
784
- return e.type === $.tag;
778
+ return e.type === V.plural;
779
+ }
780
+ function Fi(e) {
781
+ return e.type === V.pound;
785
782
  }
786
783
  function fr(e) {
787
- return !!(e && typeof e == "object" && e.type === We.number);
784
+ return e.type === V.tag;
788
785
  }
789
- function Kt(e) {
790
- return !!(e && typeof e == "object" && e.type === We.dateTime);
786
+ function dr(e) {
787
+ return !!(e && typeof e == "object" && e.type === Ze.number);
791
788
  }
792
- var dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
789
+ function en(e) {
790
+ return !!(e && typeof e == "object" && e.type === Ze.dateTime);
791
+ }
792
+ var pr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
793
793
  function ji(e) {
794
794
  var t = {};
795
795
  return e.replace(Gi, function(n) {
@@ -881,46 +881,46 @@ function ji(e) {
881
881
  return "";
882
882
  }), t;
883
883
  }
884
- var W = function() {
885
- return W = Object.assign || function(t) {
884
+ var q = function() {
885
+ return q = Object.assign || function(t) {
886
886
  for (var n, r = 1, i = arguments.length; r < i; r++) {
887
887
  n = arguments[r];
888
888
  for (var o in n)
889
889
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
890
890
  }
891
891
  return t;
892
- }, W.apply(this, arguments);
892
+ }, q.apply(this, arguments);
893
893
  };
894
894
  var ki = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
895
895
  function $i(e) {
896
896
  if (e.length === 0)
897
897
  throw new Error("Number skeleton cannot be empty");
898
- for (var t = e.split(ki).filter(function(p) {
899
- return p.length > 0;
898
+ for (var t = e.split(ki).filter(function(d) {
899
+ return d.length > 0;
900
900
  }), n = [], r = 0, i = t; r < i.length; r++) {
901
901
  var o = i[r], a = o.split("/");
902
902
  if (a.length === 0)
903
903
  throw new Error("Invalid number skeleton");
904
- for (var s = a[0], l = a.slice(1), u = 0, f = l; u < f.length; u++) {
905
- var b = f[u];
906
- if (b.length === 0)
904
+ for (var s = a[0], c = a.slice(1), u = 0, f = c; u < f.length; u++) {
905
+ var m = f[u];
906
+ if (m.length === 0)
907
907
  throw new Error("Invalid number skeleton");
908
908
  }
909
- n.push({ stem: s, options: l });
909
+ n.push({ stem: s, options: c });
910
910
  }
911
911
  return n;
912
912
  }
913
913
  function Vi(e) {
914
914
  return e.replace(/^(.*?)-/, "");
915
915
  }
916
- var Bn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, pr = /^(@+)?(\+|#+)?[rs]?$/g, Xi = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
917
- function Tn(e) {
916
+ var Tn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mr = /^(@+)?(\+|#+)?[rs]?$/g, Xi = /(\*)(0+)|(#+)(0+)|(0+)/g, br = /^(0+)$/;
917
+ function An(e) {
918
918
  var t = {};
919
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(pr, function(n, r, i) {
919
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mr, function(n, r, i) {
920
920
  return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
921
921
  }), t;
922
922
  }
923
- function br(e) {
923
+ function gr(e) {
924
924
  switch (e) {
925
925
  case "sign-auto":
926
926
  return {
@@ -968,14 +968,14 @@ function zi(e) {
968
968
  notation: "scientific"
969
969
  }, e = e.slice(1)), t) {
970
970
  var n = e.slice(0, 2);
971
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
971
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !br.test(e))
972
972
  throw new Error("Malformed concise eng/scientific notation");
973
973
  t.minimumIntegerDigits = e.length;
974
974
  }
975
975
  return t;
976
976
  }
977
- function An(e) {
978
- var t = {}, n = br(e);
977
+ function Cn(e) {
978
+ var t = {}, n = gr(e);
979
979
  return n || t;
980
980
  }
981
981
  function Wi(e) {
@@ -1013,13 +1013,13 @@ function Wi(e) {
1013
1013
  t.notation = "compact", t.compactDisplay = "long";
1014
1014
  continue;
1015
1015
  case "scientific":
1016
- t = W(W(W({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1017
- return W(W({}, l), An(u));
1016
+ t = q(q(q({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
1017
+ return q(q({}, c), Cn(u));
1018
1018
  }, {}));
1019
1019
  continue;
1020
1020
  case "engineering":
1021
- t = W(W(W({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1022
- return W(W({}, l), An(u));
1021
+ t = q(q(q({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
1022
+ return q(q({}, c), Cn(u));
1023
1023
  }, {}));
1024
1024
  continue;
1025
1025
  case "notation-simple":
@@ -1064,45 +1064,45 @@ function Wi(e) {
1064
1064
  case "integer-width":
1065
1065
  if (i.options.length > 1)
1066
1066
  throw new RangeError("integer-width stems only accept a single optional option");
1067
- i.options[0].replace(Xi, function(l, u, f, b, p, y) {
1067
+ i.options[0].replace(Xi, function(c, u, f, m, d, g) {
1068
1068
  if (u)
1069
1069
  t.minimumIntegerDigits = f.length;
1070
1070
  else {
1071
- if (b && p)
1071
+ if (m && d)
1072
1072
  throw new Error("We currently do not support maximum integer digits");
1073
- if (y)
1073
+ if (g)
1074
1074
  throw new Error("We currently do not support exact integer digits");
1075
1075
  }
1076
1076
  return "";
1077
1077
  });
1078
1078
  continue;
1079
1079
  }
1080
- if (mr.test(i.stem)) {
1080
+ if (br.test(i.stem)) {
1081
1081
  t.minimumIntegerDigits = i.stem.length;
1082
1082
  continue;
1083
1083
  }
1084
- if (Bn.test(i.stem)) {
1084
+ if (Tn.test(i.stem)) {
1085
1085
  if (i.options.length > 1)
1086
1086
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1087
- i.stem.replace(Bn, function(l, u, f, b, p, y) {
1088
- return f === "*" ? t.minimumFractionDigits = u.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : p && y ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1087
+ i.stem.replace(Tn, function(c, u, f, m, d, g) {
1088
+ return f === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : d && g ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1089
1089
  });
1090
1090
  var o = i.options[0];
1091
- o === "w" ? t = W(W({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = W(W({}, t), Tn(o)));
1091
+ o === "w" ? t = q(q({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = q(q({}, t), An(o)));
1092
1092
  continue;
1093
1093
  }
1094
- if (pr.test(i.stem)) {
1095
- t = W(W({}, t), Tn(i.stem));
1094
+ if (mr.test(i.stem)) {
1095
+ t = q(q({}, t), An(i.stem));
1096
1096
  continue;
1097
1097
  }
1098
- var a = br(i.stem);
1099
- a && (t = W(W({}, t), a));
1098
+ var a = gr(i.stem);
1099
+ a && (t = q(q({}, t), a));
1100
1100
  var s = zi(i.stem);
1101
- s && (t = W(W({}, t), s));
1101
+ s && (t = q(q({}, t), s));
1102
1102
  }
1103
1103
  return t;
1104
1104
  }
1105
- var dt = {
1105
+ var bt = {
1106
1106
  "001": [
1107
1107
  "H",
1108
1108
  "h"
@@ -2523,9 +2523,9 @@ function Zi(e, t) {
2523
2523
  if (i === "j") {
2524
2524
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2525
2525
  o++, r++;
2526
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = qi(t);
2526
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = qi(t);
2527
2527
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2528
- n += l;
2528
+ n += c;
2529
2529
  for (; a-- > 0; )
2530
2530
  n = u + n;
2531
2531
  } else
@@ -2552,23 +2552,23 @@ function qi(e) {
2552
2552
  }
2553
2553
  var n = e.language, r;
2554
2554
  n !== "root" && (r = e.maximize().region);
2555
- var i = dt[r || ""] || dt[n || ""] || dt["".concat(n, "-001")] || dt["001"];
2555
+ var i = bt[r || ""] || bt[n || ""] || bt["".concat(n, "-001")] || bt["001"];
2556
2556
  return i[0];
2557
2557
  }
2558
- var Xt, Yi = new RegExp("^".concat(dr.source, "*")), Qi = new RegExp("".concat(dr.source, "*$"));
2559
- function M(e, t) {
2558
+ var zt, Yi = new RegExp("^".concat(pr.source, "*")), Qi = new RegExp("".concat(pr.source, "*$"));
2559
+ function N(e, t) {
2560
2560
  return { start: e, end: t };
2561
2561
  }
2562
2562
  var Ji = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ki = !!String.fromCodePoint, eo = !!Object.fromEntries, to = !!String.prototype.codePointAt, no = !!String.prototype.trimStart, ro = !!String.prototype.trimEnd, io = !!Number.isSafeInteger, oo = io ? Number.isSafeInteger : function(e) {
2563
2563
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2564
- }, en = !0;
2564
+ }, tn = !0;
2565
2565
  try {
2566
- var ao = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2567
- en = ((Xt = ao.exec("a")) === null || Xt === void 0 ? void 0 : Xt[0]) === "a";
2566
+ var ao = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2567
+ tn = ((zt = ao.exec("a")) === null || zt === void 0 ? void 0 : zt[0]) === "a";
2568
2568
  } catch (e) {
2569
- en = !1;
2569
+ tn = !1;
2570
2570
  }
2571
- var Cn = Ji ? (
2571
+ var Hn = Ji ? (
2572
2572
  // Native
2573
2573
  function(t, n, r) {
2574
2574
  return t.startsWith(n, r);
@@ -2578,7 +2578,7 @@ var Cn = Ji ? (
2578
2578
  function(t, n, r) {
2579
2579
  return t.slice(r, r + n.length) === n;
2580
2580
  }
2581
- ), tn = Ki ? String.fromCodePoint : (
2581
+ ), nn = Ki ? String.fromCodePoint : (
2582
2582
  // IE11
2583
2583
  function() {
2584
2584
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2590,7 +2590,7 @@ var Cn = Ji ? (
2590
2590
  }
2591
2591
  return r;
2592
2592
  }
2593
- ), Hn = (
2593
+ ), On = (
2594
2594
  // native
2595
2595
  eo ? Object.fromEntries : (
2596
2596
  // Ponyfill
@@ -2602,7 +2602,7 @@ var Cn = Ji ? (
2602
2602
  return n;
2603
2603
  }
2604
2604
  )
2605
- ), gr = to ? (
2605
+ ), yr = to ? (
2606
2606
  // Native
2607
2607
  function(t, n) {
2608
2608
  return t.codePointAt(n);
@@ -2637,27 +2637,27 @@ var Cn = Ji ? (
2637
2637
  return t.replace(Qi, "");
2638
2638
  }
2639
2639
  );
2640
- function yr(e, t) {
2640
+ function vr(e, t) {
2641
2641
  return new RegExp(e, t);
2642
2642
  }
2643
- var nn;
2644
- if (en) {
2645
- var On = yr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2646
- nn = function(t, n) {
2643
+ var rn;
2644
+ if (tn) {
2645
+ var Ln = vr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2646
+ rn = function(t, n) {
2647
2647
  var r;
2648
- On.lastIndex = n;
2649
- var i = On.exec(t);
2648
+ Ln.lastIndex = n;
2649
+ var i = Ln.exec(t);
2650
2650
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2651
2651
  };
2652
2652
  } else
2653
- nn = function(t, n) {
2653
+ rn = function(t, n) {
2654
2654
  for (var r = []; ; ) {
2655
- var i = gr(t, n);
2656
- if (i === void 0 || vr(i) || fo(i))
2655
+ var i = yr(t, n);
2656
+ if (i === void 0 || _r(i) || fo(i))
2657
2657
  break;
2658
2658
  r.push(i), n += i >= 65536 ? 2 : 1;
2659
2659
  }
2660
- return tn.apply(void 0, r);
2660
+ return nn.apply(void 0, r);
2661
2661
  };
2662
2662
  var lo = (
2663
2663
  /** @class */
@@ -2683,14 +2683,14 @@ var lo = (
2683
2683
  if (o === 35 && (n === "plural" || n === "selectordinal")) {
2684
2684
  var s = this.clonePosition();
2685
2685
  this.bump(), i.push({
2686
- type: $.pound,
2687
- location: M(s, this.clonePosition())
2686
+ type: V.pound,
2687
+ location: N(s, this.clonePosition())
2688
2688
  });
2689
2689
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2690
2690
  if (r)
2691
2691
  break;
2692
- return this.error(L.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
2693
- } else if (o === 60 && !this.ignoreTag && rn(this.peek() || 0)) {
2692
+ return this.error(R.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
2693
+ } else if (o === 60 && !this.ignoreTag && on(this.peek() || 0)) {
2694
2694
  var a = this.parseTag(t, n);
2695
2695
  if (a.err)
2696
2696
  return a;
@@ -2711,9 +2711,9 @@ var lo = (
2711
2711
  if (this.bumpSpace(), this.bumpIf("/>"))
2712
2712
  return {
2713
2713
  val: {
2714
- type: $.literal,
2714
+ type: V.literal,
2715
2715
  value: "<".concat(i, "/>"),
2716
- location: M(r, this.clonePosition())
2716
+ location: N(r, this.clonePosition())
2717
2717
  },
2718
2718
  err: null
2719
2719
  };
@@ -2723,22 +2723,22 @@ var lo = (
2723
2723
  return o;
2724
2724
  var a = o.val, s = this.clonePosition();
2725
2725
  if (this.bumpIf("</")) {
2726
- if (this.isEOF() || !rn(this.char()))
2727
- return this.error(L.INVALID_TAG, M(s, this.clonePosition()));
2728
- var l = this.clonePosition(), u = this.parseTagName();
2729
- return i !== u ? this.error(L.UNMATCHED_CLOSING_TAG, M(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2726
+ if (this.isEOF() || !on(this.char()))
2727
+ return this.error(R.INVALID_TAG, N(s, this.clonePosition()));
2728
+ var c = this.clonePosition(), u = this.parseTagName();
2729
+ return i !== u ? this.error(R.UNMATCHED_CLOSING_TAG, N(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2730
2730
  val: {
2731
- type: $.tag,
2731
+ type: V.tag,
2732
2732
  value: i,
2733
2733
  children: a,
2734
- location: M(r, this.clonePosition())
2734
+ location: N(r, this.clonePosition())
2735
2735
  },
2736
2736
  err: null
2737
- } : this.error(L.INVALID_TAG, M(s, this.clonePosition())));
2737
+ } : this.error(R.INVALID_TAG, N(s, this.clonePosition())));
2738
2738
  } else
2739
- return this.error(L.UNCLOSED_TAG, M(r, this.clonePosition()));
2739
+ return this.error(R.UNCLOSED_TAG, N(r, this.clonePosition()));
2740
2740
  } else
2741
- return this.error(L.INVALID_TAG, M(r, this.clonePosition()));
2741
+ return this.error(R.INVALID_TAG, N(r, this.clonePosition()));
2742
2742
  }, e.prototype.parseTagName = function() {
2743
2743
  var t = this.offset();
2744
2744
  for (this.bump(); !this.isEOF() && ho(this.char()); )
@@ -2763,9 +2763,9 @@ var lo = (
2763
2763
  }
2764
2764
  break;
2765
2765
  }
2766
- var l = M(r, this.clonePosition());
2766
+ var c = N(r, this.clonePosition());
2767
2767
  return {
2768
- val: { type: $.literal, value: i, location: l },
2768
+ val: { type: V.literal, value: i, location: c },
2769
2769
  err: null
2770
2770
  };
2771
2771
  }, e.prototype.tryParseLeftAngleBracket = function() {
@@ -2804,49 +2804,49 @@ var lo = (
2804
2804
  n.push(r);
2805
2805
  this.bump();
2806
2806
  }
2807
- return tn.apply(void 0, n);
2807
+ return nn.apply(void 0, n);
2808
2808
  }, e.prototype.tryParseUnquoted = function(t, n) {
2809
2809
  if (this.isEOF())
2810
2810
  return null;
2811
2811
  var r = this.char();
2812
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), tn(r));
2812
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), nn(r));
2813
2813
  }, e.prototype.parseArgument = function(t, n) {
2814
2814
  var r = this.clonePosition();
2815
2815
  if (this.bump(), this.bumpSpace(), this.isEOF())
2816
- return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2816
+ return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(r, this.clonePosition()));
2817
2817
  if (this.char() === 125)
2818
- return this.bump(), this.error(L.EMPTY_ARGUMENT, M(r, this.clonePosition()));
2818
+ return this.bump(), this.error(R.EMPTY_ARGUMENT, N(r, this.clonePosition()));
2819
2819
  var i = this.parseIdentifierIfPossible().value;
2820
2820
  if (!i)
2821
- return this.error(L.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2821
+ return this.error(R.MALFORMED_ARGUMENT, N(r, this.clonePosition()));
2822
2822
  if (this.bumpSpace(), this.isEOF())
2823
- return this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
2823
+ return this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(r, this.clonePosition()));
2824
2824
  switch (this.char()) {
2825
2825
  case 125:
2826
2826
  return this.bump(), {
2827
2827
  val: {
2828
- type: $.argument,
2828
+ type: V.argument,
2829
2829
  // value does not include the opening and closing braces.
2830
2830
  value: i,
2831
- location: M(r, this.clonePosition())
2831
+ location: N(r, this.clonePosition())
2832
2832
  },
2833
2833
  err: null
2834
2834
  };
2835
2835
  case 44:
2836
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2836
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2837
2837
  default:
2838
- return this.error(L.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2838
+ return this.error(R.MALFORMED_ARGUMENT, N(r, this.clonePosition()));
2839
2839
  }
2840
2840
  }, e.prototype.parseIdentifierIfPossible = function() {
2841
- var t = this.clonePosition(), n = this.offset(), r = nn(this.message, n), i = n + r.length;
2841
+ var t = this.clonePosition(), n = this.offset(), r = rn(this.message, n), i = n + r.length;
2842
2842
  this.bumpTo(i);
2843
- var o = this.clonePosition(), a = M(t, o);
2843
+ var o = this.clonePosition(), a = N(t, o);
2844
2844
  return { value: r, location: a };
2845
2845
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2846
- var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2846
+ var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2847
2847
  switch (s) {
2848
2848
  case "":
2849
- return this.error(L.EXPECT_ARGUMENT_TYPE, M(a, l));
2849
+ return this.error(R.EXPECT_ARGUMENT_TYPE, N(a, c));
2850
2850
  case "number":
2851
2851
  case "date":
2852
2852
  case "time": {
@@ -2854,47 +2854,47 @@ var lo = (
2854
2854
  var u = null;
2855
2855
  if (this.bumpIf(",")) {
2856
2856
  this.bumpSpace();
2857
- var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
2858
- if (b.err)
2859
- return b;
2860
- var p = uo(b.val);
2861
- if (p.length === 0)
2862
- return this.error(L.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
2863
- var y = M(f, this.clonePosition());
2864
- u = { style: p, styleLocation: y };
2857
+ var f = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2858
+ if (m.err)
2859
+ return m;
2860
+ var d = uo(m.val);
2861
+ if (d.length === 0)
2862
+ return this.error(R.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
2863
+ var g = N(f, this.clonePosition());
2864
+ u = { style: d, styleLocation: g };
2865
2865
  }
2866
- var E = this.tryParseArgumentClose(i);
2867
- if (E.err)
2868
- return E;
2869
- var B = M(i, this.clonePosition());
2870
- if (u && Cn(u == null ? void 0 : u.style, "::", 0)) {
2871
- var Q = so(u.style.slice(2));
2866
+ var v = this.tryParseArgumentClose(i);
2867
+ if (v.err)
2868
+ return v;
2869
+ var B = N(i, this.clonePosition());
2870
+ if (u && Hn(u == null ? void 0 : u.style, "::", 0)) {
2871
+ var K = so(u.style.slice(2));
2872
2872
  if (s === "number") {
2873
- var b = this.parseNumberSkeletonFromString(Q, u.styleLocation);
2874
- return b.err ? b : {
2875
- val: { type: $.number, value: r, location: B, style: b.val },
2873
+ var m = this.parseNumberSkeletonFromString(K, u.styleLocation);
2874
+ return m.err ? m : {
2875
+ val: { type: V.number, value: r, location: B, style: m.val },
2876
2876
  err: null
2877
2877
  };
2878
2878
  } else {
2879
- if (Q.length === 0)
2880
- return this.error(L.EXPECT_DATE_TIME_SKELETON, B);
2881
- var re = Q;
2882
- this.locale && (re = Zi(Q, this.locale));
2883
- var p = {
2884
- type: We.dateTime,
2885
- pattern: re,
2879
+ if (K.length === 0)
2880
+ return this.error(R.EXPECT_DATE_TIME_SKELETON, B);
2881
+ var oe = K;
2882
+ this.locale && (oe = Zi(K, this.locale));
2883
+ var d = {
2884
+ type: Ze.dateTime,
2885
+ pattern: oe,
2886
2886
  location: u.styleLocation,
2887
- parsedOptions: this.shouldParseSkeletons ? ji(re) : {}
2888
- }, oe = s === "date" ? $.date : $.time;
2887
+ parsedOptions: this.shouldParseSkeletons ? ji(oe) : {}
2888
+ }, se = s === "date" ? V.date : V.time;
2889
2889
  return {
2890
- val: { type: oe, value: r, location: B, style: p },
2890
+ val: { type: se, value: r, location: B, style: d },
2891
2891
  err: null
2892
2892
  };
2893
2893
  }
2894
2894
  }
2895
2895
  return {
2896
2896
  val: {
2897
- type: s === "number" ? $.number : s === "date" ? $.date : $.time,
2897
+ type: s === "number" ? V.number : s === "date" ? V.date : V.time,
2898
2898
  value: r,
2899
2899
  location: B,
2900
2900
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
@@ -2905,52 +2905,52 @@ var lo = (
2905
2905
  case "plural":
2906
2906
  case "selectordinal":
2907
2907
  case "select": {
2908
- var I = this.clonePosition();
2908
+ var D = this.clonePosition();
2909
2909
  if (this.bumpSpace(), !this.bumpIf(","))
2910
- return this.error(L.EXPECT_SELECT_ARGUMENT_OPTIONS, M(I, _t({}, I)));
2910
+ return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS, N(D, wt({}, D)));
2911
2911
  this.bumpSpace();
2912
- var k = this.parseIdentifierIfPossible(), Z = 0;
2913
- if (s !== "select" && k.value === "offset") {
2912
+ var j = this.parseIdentifierIfPossible(), Y = 0;
2913
+ if (s !== "select" && j.value === "offset") {
2914
2914
  if (!this.bumpIf(":"))
2915
- return this.error(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
2915
+ return this.error(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
2916
2916
  this.bumpSpace();
2917
- var b = this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2918
- if (b.err)
2919
- return b;
2920
- this.bumpSpace(), k = this.parseIdentifierIfPossible(), Z = b.val;
2917
+ var m = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2918
+ if (m.err)
2919
+ return m;
2920
+ this.bumpSpace(), j = this.parseIdentifierIfPossible(), Y = m.val;
2921
2921
  }
2922
- var ie = this.tryParsePluralOrSelectOptions(t, s, n, k);
2923
- if (ie.err)
2924
- return ie;
2925
- var E = this.tryParseArgumentClose(i);
2926
- if (E.err)
2927
- return E;
2928
- var K = M(i, this.clonePosition());
2922
+ var ae = this.tryParsePluralOrSelectOptions(t, s, n, j);
2923
+ if (ae.err)
2924
+ return ae;
2925
+ var v = this.tryParseArgumentClose(i);
2926
+ if (v.err)
2927
+ return v;
2928
+ var me = N(i, this.clonePosition());
2929
2929
  return s === "select" ? {
2930
2930
  val: {
2931
- type: $.select,
2931
+ type: V.select,
2932
2932
  value: r,
2933
- options: Hn(ie.val),
2934
- location: K
2933
+ options: On(ae.val),
2934
+ location: me
2935
2935
  },
2936
2936
  err: null
2937
2937
  } : {
2938
2938
  val: {
2939
- type: $.plural,
2939
+ type: V.plural,
2940
2940
  value: r,
2941
- options: Hn(ie.val),
2942
- offset: Z,
2941
+ options: On(ae.val),
2942
+ offset: Y,
2943
2943
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2944
- location: K
2944
+ location: me
2945
2945
  },
2946
2946
  err: null
2947
2947
  };
2948
2948
  }
2949
2949
  default:
2950
- return this.error(L.INVALID_ARGUMENT_TYPE, M(a, l));
2950
+ return this.error(R.INVALID_ARGUMENT_TYPE, N(a, c));
2951
2951
  }
2952
2952
  }, e.prototype.tryParseArgumentClose = function(t) {
2953
- return this.isEOF() || this.char() !== 125 ? this.error(L.EXPECT_ARGUMENT_CLOSING_BRACE, M(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2953
+ return this.isEOF() || this.char() !== 125 ? this.error(R.EXPECT_ARGUMENT_CLOSING_BRACE, N(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2954
2954
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2955
2955
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2956
2956
  var r = this.char();
@@ -2959,7 +2959,7 @@ var lo = (
2959
2959
  this.bump();
2960
2960
  var i = this.clonePosition();
2961
2961
  if (!this.bumpUntil("'"))
2962
- return this.error(L.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, M(i, this.clonePosition()));
2962
+ return this.error(R.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, N(i, this.clonePosition()));
2963
2963
  this.bump();
2964
2964
  break;
2965
2965
  }
@@ -2991,11 +2991,11 @@ var lo = (
2991
2991
  try {
2992
2992
  r = $i(t);
2993
2993
  } catch (i) {
2994
- return this.error(L.INVALID_NUMBER_SKELETON, n);
2994
+ return this.error(R.INVALID_NUMBER_SKELETON, n);
2995
2995
  }
2996
2996
  return {
2997
2997
  val: {
2998
- type: We.number,
2998
+ type: Ze.number,
2999
2999
  tokens: r,
3000
3000
  location: n,
3001
3001
  parsedOptions: this.shouldParseSkeletons ? Wi(r) : {}
@@ -3003,38 +3003,38 @@ var lo = (
3003
3003
  err: null
3004
3004
  };
3005
3005
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
3006
- for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
3006
+ for (var o, a = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, f = i.location; ; ) {
3007
3007
  if (u.length === 0) {
3008
- var b = this.clonePosition();
3008
+ var m = this.clonePosition();
3009
3009
  if (n !== "select" && this.bumpIf("=")) {
3010
- var p = this.tryParseDecimalInteger(L.EXPECT_PLURAL_ARGUMENT_SELECTOR, L.INVALID_PLURAL_ARGUMENT_SELECTOR);
3011
- if (p.err)
3012
- return p;
3013
- f = M(b, this.clonePosition()), u = this.message.slice(b.offset, this.offset());
3010
+ var d = this.tryParseDecimalInteger(R.EXPECT_PLURAL_ARGUMENT_SELECTOR, R.INVALID_PLURAL_ARGUMENT_SELECTOR);
3011
+ if (d.err)
3012
+ return d;
3013
+ f = N(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
3014
3014
  } else
3015
3015
  break;
3016
3016
  }
3017
- if (l.has(u))
3018
- return this.error(n === "select" ? L.DUPLICATE_SELECT_ARGUMENT_SELECTOR : L.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3017
+ if (c.has(u))
3018
+ return this.error(n === "select" ? R.DUPLICATE_SELECT_ARGUMENT_SELECTOR : R.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3019
3019
  u === "other" && (a = !0), this.bumpSpace();
3020
- var y = this.clonePosition();
3020
+ var g = this.clonePosition();
3021
3021
  if (!this.bumpIf("{"))
3022
- return this.error(n === "select" ? L.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : L.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
3023
- var E = this.parseMessage(t + 1, n, r);
3024
- if (E.err)
3025
- return E;
3026
- var B = this.tryParseArgumentClose(y);
3022
+ return this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : R.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
3023
+ var v = this.parseMessage(t + 1, n, r);
3024
+ if (v.err)
3025
+ return v;
3026
+ var B = this.tryParseArgumentClose(g);
3027
3027
  if (B.err)
3028
3028
  return B;
3029
3029
  s.push([
3030
3030
  u,
3031
3031
  {
3032
- value: E.val,
3033
- location: M(y, this.clonePosition())
3032
+ value: v.val,
3033
+ location: N(g, this.clonePosition())
3034
3034
  }
3035
- ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
3035
+ ]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, f = o.location;
3036
3036
  }
3037
- return s.length === 0 ? this.error(n === "select" ? L.EXPECT_SELECT_ARGUMENT_SELECTOR : L.EXPECT_PLURAL_ARGUMENT_SELECTOR, M(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(L.MISSING_OTHER_CLAUSE, M(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3037
+ return s.length === 0 ? this.error(n === "select" ? R.EXPECT_SELECT_ARGUMENT_SELECTOR : R.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(R.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3038
3038
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3039
3039
  var r = 1, i = this.clonePosition();
3040
3040
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -3045,8 +3045,8 @@ var lo = (
3045
3045
  else
3046
3046
  break;
3047
3047
  }
3048
- var l = M(i, this.clonePosition());
3049
- return o ? (a *= r, oo(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
3048
+ var c = N(i, this.clonePosition());
3049
+ return o ? (a *= r, oo(a) ? { val: a, err: null } : this.error(n, c)) : this.error(t, c);
3050
3050
  }, e.prototype.offset = function() {
3051
3051
  return this.position.offset;
3052
3052
  }, e.prototype.isEOF = function() {
@@ -3061,7 +3061,7 @@ var lo = (
3061
3061
  var t = this.position.offset;
3062
3062
  if (t >= this.message.length)
3063
3063
  throw Error("out of bound");
3064
- var n = gr(this.message, t);
3064
+ var n = yr(this.message, t);
3065
3065
  if (n === void 0)
3066
3066
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3067
3067
  return n;
@@ -3080,7 +3080,7 @@ var lo = (
3080
3080
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3081
3081
  }
3082
3082
  }, e.prototype.bumpIf = function(t) {
3083
- if (Cn(this.message, t, this.offset())) {
3083
+ if (Hn(this.message, t, this.offset())) {
3084
3084
  for (var n = 0; n < t.length; n++)
3085
3085
  this.bump();
3086
3086
  return !0;
@@ -3102,7 +3102,7 @@ var lo = (
3102
3102
  break;
3103
3103
  }
3104
3104
  }, e.prototype.bumpSpace = function() {
3105
- for (; !this.isEOF() && vr(this.char()); )
3105
+ for (; !this.isEOF() && _r(this.char()); )
3106
3106
  this.bump();
3107
3107
  }, e.prototype.peek = function() {
3108
3108
  if (this.isEOF())
@@ -3112,47 +3112,47 @@ var lo = (
3112
3112
  }, e;
3113
3113
  }()
3114
3114
  );
3115
- function rn(e) {
3115
+ function on(e) {
3116
3116
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3117
3117
  }
3118
3118
  function co(e) {
3119
- return rn(e) || e === 47;
3119
+ return on(e) || e === 47;
3120
3120
  }
3121
3121
  function ho(e) {
3122
3122
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3123
3123
  }
3124
- function vr(e) {
3124
+ function _r(e) {
3125
3125
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3126
3126
  }
3127
3127
  function fo(e) {
3128
3128
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3129
3129
  }
3130
- function on(e) {
3130
+ function an(e) {
3131
3131
  e.forEach(function(t) {
3132
- if (delete t.location, lr(t) || cr(t))
3132
+ if (delete t.location, cr(t) || hr(t))
3133
3133
  for (var n in t.options)
3134
- delete t.options[n].location, on(t.options[n].value);
3134
+ delete t.options[n].location, an(t.options[n].value);
3135
3135
  else
3136
- ar(t) && fr(t.style) || (sr(t) || ur(t)) && Kt(t.style) ? delete t.style.location : hr(t) && on(t.children);
3136
+ sr(t) && dr(t.style) || (ur(t) || lr(t)) && en(t.style) ? delete t.style.location : fr(t) && an(t.children);
3137
3137
  });
3138
3138
  }
3139
3139
  function po(e, t) {
3140
- t === void 0 && (t = {}), t = _t({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3140
+ t === void 0 && (t = {}), t = wt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3141
3141
  var n = new lo(e, t).parse();
3142
3142
  if (n.err) {
3143
- var r = SyntaxError(L[n.err.kind]);
3143
+ var r = SyntaxError(R[n.err.kind]);
3144
3144
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3145
3145
  }
3146
- return t != null && t.captureLocation || on(n.val), n.val;
3146
+ return t != null && t.captureLocation || an(n.val), n.val;
3147
3147
  }
3148
- var Ze;
3148
+ var qe;
3149
3149
  (function(e) {
3150
3150
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3151
- })(Ze || (Ze = {}));
3152
- var Bt = (
3151
+ })(qe || (qe = {}));
3152
+ var Ct = (
3153
3153
  /** @class */
3154
3154
  function(e) {
3155
- St(t, e);
3155
+ At(t, e);
3156
3156
  function t(n, r, i) {
3157
3157
  var o = e.call(this, n) || this;
3158
3158
  return o.code = r, o.originalMessage = i, o;
@@ -3161,155 +3161,155 @@ var Bt = (
3161
3161
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3162
3162
  }, t;
3163
3163
  }(Error)
3164
- ), Ln = (
3164
+ ), Rn = (
3165
3165
  /** @class */
3166
3166
  function(e) {
3167
- St(t, e);
3167
+ At(t, e);
3168
3168
  function t(n, r, i, o) {
3169
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ze.INVALID_VALUE, o) || this;
3169
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), qe.INVALID_VALUE, o) || this;
3170
3170
  }
3171
3171
  return t;
3172
- }(Bt)
3172
+ }(Ct)
3173
3173
  ), mo = (
3174
3174
  /** @class */
3175
3175
  function(e) {
3176
- St(t, e);
3176
+ At(t, e);
3177
3177
  function t(n, r, i) {
3178
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ze.INVALID_VALUE, i) || this;
3178
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), qe.INVALID_VALUE, i) || this;
3179
3179
  }
3180
3180
  return t;
3181
- }(Bt)
3181
+ }(Ct)
3182
3182
  ), bo = (
3183
3183
  /** @class */
3184
3184
  function(e) {
3185
- St(t, e);
3185
+ At(t, e);
3186
3186
  function t(n, r) {
3187
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ze.MISSING_VALUE, r) || this;
3187
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), qe.MISSING_VALUE, r) || this;
3188
3188
  }
3189
3189
  return t;
3190
- }(Bt)
3191
- ), ue;
3190
+ }(Ct)
3191
+ ), he;
3192
3192
  (function(e) {
3193
3193
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3194
- })(ue || (ue = {}));
3194
+ })(he || (he = {}));
3195
3195
  function go(e) {
3196
3196
  return e.length < 2 ? e : e.reduce(function(t, n) {
3197
3197
  var r = t[t.length - 1];
3198
- return !r || r.type !== ue.literal || n.type !== ue.literal ? t.push(n) : r.value += n.value, t;
3198
+ return !r || r.type !== he.literal || n.type !== he.literal ? t.push(n) : r.value += n.value, t;
3199
3199
  }, []);
3200
3200
  }
3201
3201
  function yo(e) {
3202
3202
  return typeof e == "function";
3203
3203
  }
3204
- function bt(e, t, n, r, i, o, a) {
3205
- if (e.length === 1 && Sn(e[0]))
3204
+ function vt(e, t, n, r, i, o, a) {
3205
+ if (e.length === 1 && Bn(e[0]))
3206
3206
  return [
3207
3207
  {
3208
- type: ue.literal,
3208
+ type: he.literal,
3209
3209
  value: e[0].value
3210
3210
  }
3211
3211
  ];
3212
- for (var s = [], l = 0, u = e; l < u.length; l++) {
3213
- var f = u[l];
3214
- if (Sn(f)) {
3212
+ for (var s = [], c = 0, u = e; c < u.length; c++) {
3213
+ var f = u[c];
3214
+ if (Bn(f)) {
3215
3215
  s.push({
3216
- type: ue.literal,
3216
+ type: he.literal,
3217
3217
  value: f.value
3218
3218
  });
3219
3219
  continue;
3220
3220
  }
3221
3221
  if (Fi(f)) {
3222
3222
  typeof o == "number" && s.push({
3223
- type: ue.literal,
3223
+ type: he.literal,
3224
3224
  value: n.getNumberFormat(t).format(o)
3225
3225
  });
3226
3226
  continue;
3227
3227
  }
3228
- var b = f.value;
3229
- if (!(i && b in i))
3230
- throw new bo(b, a);
3231
- var p = i[b];
3228
+ var m = f.value;
3229
+ if (!(i && m in i))
3230
+ throw new bo(m, a);
3231
+ var d = i[m];
3232
3232
  if (Ui(f)) {
3233
- (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), s.push({
3234
- type: typeof p == "string" ? ue.literal : ue.object,
3235
- value: p
3233
+ (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3234
+ type: typeof d == "string" ? he.literal : he.object,
3235
+ value: d
3236
3236
  });
3237
3237
  continue;
3238
3238
  }
3239
- if (sr(f)) {
3240
- var y = typeof f.style == "string" ? r.date[f.style] : Kt(f.style) ? f.style.parsedOptions : void 0;
3239
+ if (ur(f)) {
3240
+ var g = typeof f.style == "string" ? r.date[f.style] : en(f.style) ? f.style.parsedOptions : void 0;
3241
3241
  s.push({
3242
- type: ue.literal,
3243
- value: n.getDateTimeFormat(t, y).format(p)
3242
+ type: he.literal,
3243
+ value: n.getDateTimeFormat(t, g).format(d)
3244
3244
  });
3245
3245
  continue;
3246
3246
  }
3247
- if (ur(f)) {
3248
- var y = typeof f.style == "string" ? r.time[f.style] : Kt(f.style) ? f.style.parsedOptions : r.time.medium;
3247
+ if (lr(f)) {
3248
+ var g = typeof f.style == "string" ? r.time[f.style] : en(f.style) ? f.style.parsedOptions : r.time.medium;
3249
3249
  s.push({
3250
- type: ue.literal,
3251
- value: n.getDateTimeFormat(t, y).format(p)
3250
+ type: he.literal,
3251
+ value: n.getDateTimeFormat(t, g).format(d)
3252
3252
  });
3253
3253
  continue;
3254
3254
  }
3255
- if (ar(f)) {
3256
- var y = typeof f.style == "string" ? r.number[f.style] : fr(f.style) ? f.style.parsedOptions : void 0;
3257
- y && y.scale && (p = p * (y.scale || 1)), s.push({
3258
- type: ue.literal,
3259
- value: n.getNumberFormat(t, y).format(p)
3255
+ if (sr(f)) {
3256
+ var g = typeof f.style == "string" ? r.number[f.style] : dr(f.style) ? f.style.parsedOptions : void 0;
3257
+ g && g.scale && (d = d * (g.scale || 1)), s.push({
3258
+ type: he.literal,
3259
+ value: n.getNumberFormat(t, g).format(d)
3260
3260
  });
3261
3261
  continue;
3262
3262
  }
3263
- if (hr(f)) {
3264
- var E = f.children, B = f.value, Q = i[B];
3265
- if (!yo(Q))
3263
+ if (fr(f)) {
3264
+ var v = f.children, B = f.value, K = i[B];
3265
+ if (!yo(K))
3266
3266
  throw new mo(B, "function", a);
3267
- var re = bt(E, t, n, r, i, o), oe = Q(re.map(function(Z) {
3268
- return Z.value;
3267
+ var oe = vt(v, t, n, r, i, o), se = K(oe.map(function(Y) {
3268
+ return Y.value;
3269
3269
  }));
3270
- Array.isArray(oe) || (oe = [oe]), s.push.apply(s, oe.map(function(Z) {
3270
+ Array.isArray(se) || (se = [se]), s.push.apply(s, se.map(function(Y) {
3271
3271
  return {
3272
- type: typeof Z == "string" ? ue.literal : ue.object,
3273
- value: Z
3272
+ type: typeof Y == "string" ? he.literal : he.object,
3273
+ value: Y
3274
3274
  };
3275
3275
  }));
3276
3276
  }
3277
- if (lr(f)) {
3278
- var I = f.options[p] || f.options.other;
3279
- if (!I)
3280
- throw new Ln(f.value, p, Object.keys(f.options), a);
3281
- s.push.apply(s, bt(I.value, t, n, r, i));
3277
+ if (cr(f)) {
3278
+ var D = f.options[d] || f.options.other;
3279
+ if (!D)
3280
+ throw new Rn(f.value, d, Object.keys(f.options), a);
3281
+ s.push.apply(s, vt(D.value, t, n, r, i));
3282
3282
  continue;
3283
3283
  }
3284
- if (cr(f)) {
3285
- var I = f.options["=".concat(p)];
3286
- if (!I) {
3284
+ if (hr(f)) {
3285
+ var D = f.options["=".concat(d)];
3286
+ if (!D) {
3287
3287
  if (!Intl.PluralRules)
3288
- throw new Bt(`Intl.PluralRules is not available in this environment.
3288
+ throw new Ct(`Intl.PluralRules is not available in this environment.
3289
3289
  Try polyfilling it using "@formatjs/intl-pluralrules"
3290
- `, Ze.MISSING_INTL_API, a);
3291
- var k = n.getPluralRules(t, { type: f.pluralType }).select(p - (f.offset || 0));
3292
- I = f.options[k] || f.options.other;
3290
+ `, qe.MISSING_INTL_API, a);
3291
+ var j = n.getPluralRules(t, { type: f.pluralType }).select(d - (f.offset || 0));
3292
+ D = f.options[j] || f.options.other;
3293
3293
  }
3294
- if (!I)
3295
- throw new Ln(f.value, p, Object.keys(f.options), a);
3296
- s.push.apply(s, bt(I.value, t, n, r, i, p - (f.offset || 0)));
3294
+ if (!D)
3295
+ throw new Rn(f.value, d, Object.keys(f.options), a);
3296
+ s.push.apply(s, vt(D.value, t, n, r, i, d - (f.offset || 0)));
3297
3297
  continue;
3298
3298
  }
3299
3299
  }
3300
3300
  return go(s);
3301
3301
  }
3302
3302
  function vo(e, t) {
3303
- return t ? Te(Te(Te({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3304
- return n[r] = Te(Te({}, e[r]), t[r] || {}), n;
3303
+ return t ? Se(Se(Se({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3304
+ return n[r] = Se(Se({}, e[r]), t[r] || {}), n;
3305
3305
  }, {})) : e;
3306
3306
  }
3307
3307
  function _o(e, t) {
3308
3308
  return t ? Object.keys(e).reduce(function(n, r) {
3309
3309
  return n[r] = vo(e[r], t[r]), n;
3310
- }, Te({}, e)) : e;
3310
+ }, Se({}, e)) : e;
3311
3311
  }
3312
- function zt(e) {
3312
+ function Wt(e) {
3313
3313
  return {
3314
3314
  create: function() {
3315
3315
  return {
@@ -3329,29 +3329,29 @@ function Eo(e) {
3329
3329
  dateTime: {},
3330
3330
  pluralRules: {}
3331
3331
  }), {
3332
- getNumberFormat: $t(function() {
3332
+ getNumberFormat: Vt(function() {
3333
3333
  for (var t, n = [], r = 0; r < arguments.length; r++)
3334
3334
  n[r] = arguments[r];
3335
- return new ((t = Intl.NumberFormat).bind.apply(t, kt([void 0], n, !1)))();
3335
+ return new ((t = Intl.NumberFormat).bind.apply(t, $t([void 0], n, !1)))();
3336
3336
  }, {
3337
- cache: zt(e.number),
3338
- strategy: Vt.variadic
3337
+ cache: Wt(e.number),
3338
+ strategy: Xt.variadic
3339
3339
  }),
3340
- getDateTimeFormat: $t(function() {
3340
+ getDateTimeFormat: Vt(function() {
3341
3341
  for (var t, n = [], r = 0; r < arguments.length; r++)
3342
3342
  n[r] = arguments[r];
3343
- return new ((t = Intl.DateTimeFormat).bind.apply(t, kt([void 0], n, !1)))();
3343
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, $t([void 0], n, !1)))();
3344
3344
  }, {
3345
- cache: zt(e.dateTime),
3346
- strategy: Vt.variadic
3345
+ cache: Wt(e.dateTime),
3346
+ strategy: Xt.variadic
3347
3347
  }),
3348
- getPluralRules: $t(function() {
3348
+ getPluralRules: Vt(function() {
3349
3349
  for (var t, n = [], r = 0; r < arguments.length; r++)
3350
3350
  n[r] = arguments[r];
3351
- return new ((t = Intl.PluralRules).bind.apply(t, kt([void 0], n, !1)))();
3351
+ return new ((t = Intl.PluralRules).bind.apply(t, $t([void 0], n, !1)))();
3352
3352
  }, {
3353
- cache: zt(e.pluralRules),
3354
- strategy: Vt.variadic
3353
+ cache: Wt(e.pluralRules),
3354
+ strategy: Xt.variadic
3355
3355
  })
3356
3356
  };
3357
3357
  }
@@ -3365,20 +3365,20 @@ var xo = (
3365
3365
  number: {},
3366
3366
  dateTime: {},
3367
3367
  pluralRules: {}
3368
- }, this.format = function(l) {
3369
- var u = o.formatToParts(l);
3368
+ }, this.format = function(c) {
3369
+ var u = o.formatToParts(c);
3370
3370
  if (u.length === 1)
3371
3371
  return u[0].value;
3372
- var f = u.reduce(function(b, p) {
3373
- return !b.length || p.type !== ue.literal || typeof b[b.length - 1] != "string" ? b.push(p.value) : b[b.length - 1] += p.value, b;
3372
+ var f = u.reduce(function(m, d) {
3373
+ return !m.length || d.type !== he.literal || typeof m[m.length - 1] != "string" ? m.push(d.value) : m[m.length - 1] += d.value, m;
3374
3374
  }, []);
3375
3375
  return f.length <= 1 ? f[0] || "" : f;
3376
- }, this.formatToParts = function(l) {
3377
- return bt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3376
+ }, this.formatToParts = function(c) {
3377
+ return vt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3378
3378
  }, this.resolvedOptions = function() {
3379
- var l;
3379
+ var c;
3380
3380
  return {
3381
- locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3381
+ locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3382
3382
  };
3383
3383
  }, this.getAst = function() {
3384
3384
  return o.ast;
@@ -3388,7 +3388,7 @@ var xo = (
3388
3388
  var a = i || {};
3389
3389
  a.formatters;
3390
3390
  var s = Oi(a, ["formatters"]);
3391
- this.ast = e.__parse(t, Te(Te({}, s), { locale: this.resolvedLocale }));
3391
+ this.ast = e.__parse(t, Se(Se({}, s), { locale: this.resolvedLocale }));
3392
3392
  } else
3393
3393
  this.ast = t;
3394
3394
  if (!Array.isArray(this.ast))
@@ -3488,28 +3488,28 @@ function wo(e, t) {
3488
3488
  r = void 0;
3489
3489
  return r;
3490
3490
  }
3491
- const Ne = {}, So = (e, t, n) => n && (t in Ne || (Ne[t] = {}), e in Ne[t] || (Ne[t][e] = n), n), _r = (e, t) => {
3491
+ const Ne = {}, So = (e, t, n) => n && (t in Ne || (Ne[t] = {}), e in Ne[t] || (Ne[t][e] = n), n), Er = (e, t) => {
3492
3492
  if (t == null)
3493
3493
  return;
3494
3494
  if (t in Ne && e in Ne[t])
3495
3495
  return Ne[t][e];
3496
- const n = Tt(t);
3496
+ const n = Ht(t);
3497
3497
  for (let r = 0; r < n.length; r++) {
3498
3498
  const i = n[r], o = To(i, e);
3499
3499
  if (o)
3500
3500
  return So(e, t, o);
3501
3501
  }
3502
3502
  };
3503
- let bn;
3504
- const ct = wt({});
3503
+ let gn;
3504
+ const ft = Tt({});
3505
3505
  function Bo(e) {
3506
- return bn[e] || null;
3506
+ return gn[e] || null;
3507
3507
  }
3508
- function Er(e) {
3509
- return e in bn;
3508
+ function xr(e) {
3509
+ return e in gn;
3510
3510
  }
3511
3511
  function To(e, t) {
3512
- if (!Er(e))
3512
+ if (!xr(e))
3513
3513
  return null;
3514
3514
  const n = Bo(e);
3515
3515
  return wo(n, t);
@@ -3517,61 +3517,61 @@ function To(e, t) {
3517
3517
  function Ao(e) {
3518
3518
  if (e == null)
3519
3519
  return;
3520
- const t = Tt(e);
3520
+ const t = Ht(e);
3521
3521
  for (let n = 0; n < t.length; n++) {
3522
3522
  const r = t[n];
3523
- if (Er(r))
3523
+ if (xr(r))
3524
3524
  return r;
3525
3525
  }
3526
3526
  }
3527
- function xr(e, ...t) {
3528
- delete Ne[e], ct.update((n) => (n[e] = Hi.all([n[e] || {}, ...t]), n));
3527
+ function wr(e, ...t) {
3528
+ delete Ne[e], ft.update((n) => (n[e] = Hi.all([n[e] || {}, ...t]), n));
3529
3529
  }
3530
- Qe(
3531
- [ct],
3530
+ Je(
3531
+ [ft],
3532
3532
  ([e]) => Object.keys(e)
3533
3533
  );
3534
- ct.subscribe((e) => bn = e);
3535
- const gt = {};
3534
+ ft.subscribe((e) => gn = e);
3535
+ const _t = {};
3536
3536
  function Co(e, t) {
3537
- gt[e].delete(t), gt[e].size === 0 && delete gt[e];
3537
+ _t[e].delete(t), _t[e].size === 0 && delete _t[e];
3538
3538
  }
3539
- function wr(e) {
3540
- return gt[e];
3539
+ function Sr(e) {
3540
+ return _t[e];
3541
3541
  }
3542
3542
  function Ho(e) {
3543
- return Tt(e).map((t) => {
3544
- const n = wr(t);
3543
+ return Ht(e).map((t) => {
3544
+ const n = Sr(t);
3545
3545
  return [t, n ? [...n] : []];
3546
3546
  }).filter(([, t]) => t.length > 0);
3547
3547
  }
3548
- function an(e) {
3549
- return e == null ? !1 : Tt(e).some(
3548
+ function sn(e) {
3549
+ return e == null ? !1 : Ht(e).some(
3550
3550
  (t) => {
3551
3551
  var n;
3552
- return (n = wr(t)) == null ? void 0 : n.size;
3552
+ return (n = Sr(t)) == null ? void 0 : n.size;
3553
3553
  }
3554
3554
  );
3555
3555
  }
3556
3556
  function Oo(e, t) {
3557
3557
  return Promise.all(
3558
3558
  t.map((r) => (Co(e, r), r().then((i) => i.default || i)))
3559
- ).then((r) => xr(e, ...r));
3559
+ ).then((r) => wr(e, ...r));
3560
3560
  }
3561
- const it = {};
3562
- function Sr(e) {
3563
- if (!an(e))
3564
- return e in it ? it[e] : Promise.resolve();
3561
+ const at = {};
3562
+ function Br(e) {
3563
+ if (!sn(e))
3564
+ return e in at ? at[e] : Promise.resolve();
3565
3565
  const t = Ho(e);
3566
- return it[e] = Promise.all(
3566
+ return at[e] = Promise.all(
3567
3567
  t.map(
3568
3568
  ([n, r]) => Oo(n, r)
3569
3569
  )
3570
3570
  ).then(() => {
3571
- if (an(e))
3572
- return Sr(e);
3573
- delete it[e];
3574
- }), it[e];
3571
+ if (sn(e))
3572
+ return Br(e);
3573
+ delete at[e];
3574
+ }), at[e];
3575
3575
  }
3576
3576
  const Lo = {
3577
3577
  number: {
@@ -3610,125 +3610,125 @@ const Lo = {
3610
3610
  handleMissingMessage: void 0,
3611
3611
  ignoreTag: !0
3612
3612
  }, Mo = Ro;
3613
- function qe() {
3613
+ function Ye() {
3614
3614
  return Mo;
3615
3615
  }
3616
- const Wt = wt(!1);
3617
- var Po = Object.defineProperty, No = Object.defineProperties, Io = Object.getOwnPropertyDescriptors, Rn = Object.getOwnPropertySymbols, Do = Object.prototype.hasOwnProperty, Uo = Object.prototype.propertyIsEnumerable, Mn = (e, t, n) => t in e ? Po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fo = (e, t) => {
3616
+ const Zt = Tt(!1);
3617
+ var Po = Object.defineProperty, No = Object.defineProperties, Io = Object.getOwnPropertyDescriptors, Mn = Object.getOwnPropertySymbols, Do = Object.prototype.hasOwnProperty, Uo = Object.prototype.propertyIsEnumerable, Pn = (e, t, n) => t in e ? Po(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fo = (e, t) => {
3618
3618
  for (var n in t || (t = {}))
3619
- Do.call(t, n) && Mn(e, n, t[n]);
3620
- if (Rn)
3621
- for (var n of Rn(t))
3622
- Uo.call(t, n) && Mn(e, n, t[n]);
3619
+ Do.call(t, n) && Pn(e, n, t[n]);
3620
+ if (Mn)
3621
+ for (var n of Mn(t))
3622
+ Uo.call(t, n) && Pn(e, n, t[n]);
3623
3623
  return e;
3624
3624
  }, Go = (e, t) => No(e, Io(t));
3625
- let sn;
3626
- const Et = wt(null);
3627
- function Pn(e) {
3625
+ let un;
3626
+ const St = Tt(null);
3627
+ function Nn(e) {
3628
3628
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3629
3629
  }
3630
- function Tt(e, t = qe().fallbackLocale) {
3631
- const n = Pn(e);
3632
- return t ? [.../* @__PURE__ */ new Set([...n, ...Pn(t)])] : n;
3630
+ function Ht(e, t = Ye().fallbackLocale) {
3631
+ const n = Nn(e);
3632
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Nn(t)])] : n;
3633
3633
  }
3634
- function Ue() {
3635
- return sn != null ? sn : void 0;
3634
+ function Fe() {
3635
+ return un != null ? un : void 0;
3636
3636
  }
3637
- Et.subscribe((e) => {
3638
- sn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3637
+ St.subscribe((e) => {
3638
+ un = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3639
3639
  });
3640
3640
  const jo = (e) => {
3641
- if (e && Ao(e) && an(e)) {
3642
- const { loadingDelay: t } = qe();
3641
+ if (e && Ao(e) && sn(e)) {
3642
+ const { loadingDelay: t } = Ye();
3643
3643
  let n;
3644
- return typeof window != "undefined" && Ue() != null && t ? n = window.setTimeout(
3645
- () => Wt.set(!0),
3644
+ return typeof window != "undefined" && Fe() != null && t ? n = window.setTimeout(
3645
+ () => Zt.set(!0),
3646
3646
  t
3647
- ) : Wt.set(!0), Sr(e).then(() => {
3648
- Et.set(e);
3647
+ ) : Zt.set(!0), Br(e).then(() => {
3648
+ St.set(e);
3649
3649
  }).finally(() => {
3650
- clearTimeout(n), Wt.set(!1);
3650
+ clearTimeout(n), Zt.set(!1);
3651
3651
  });
3652
3652
  }
3653
- return Et.set(e);
3654
- }, Je = Go(Fo({}, Et), {
3653
+ return St.set(e);
3654
+ }, Ke = Go(Fo({}, St), {
3655
3655
  set: jo
3656
- }), At = (e) => {
3656
+ }), Ot = (e) => {
3657
3657
  const t = /* @__PURE__ */ Object.create(null);
3658
3658
  return (r) => {
3659
3659
  const i = JSON.stringify(r);
3660
3660
  return i in t ? t[i] : t[i] = e(r);
3661
3661
  };
3662
3662
  };
3663
- var ko = Object.defineProperty, xt = Object.getOwnPropertySymbols, Br = Object.prototype.hasOwnProperty, Tr = Object.prototype.propertyIsEnumerable, Nn = (e, t, n) => t in e ? ko(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, gn = (e, t) => {
3663
+ var ko = Object.defineProperty, Bt = Object.getOwnPropertySymbols, Tr = Object.prototype.hasOwnProperty, Ar = Object.prototype.propertyIsEnumerable, In = (e, t, n) => t in e ? ko(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, yn = (e, t) => {
3664
3664
  for (var n in t || (t = {}))
3665
- Br.call(t, n) && Nn(e, n, t[n]);
3666
- if (xt)
3667
- for (var n of xt(t))
3668
- Tr.call(t, n) && Nn(e, n, t[n]);
3665
+ Tr.call(t, n) && In(e, n, t[n]);
3666
+ if (Bt)
3667
+ for (var n of Bt(t))
3668
+ Ar.call(t, n) && In(e, n, t[n]);
3669
3669
  return e;
3670
- }, Ke = (e, t) => {
3670
+ }, et = (e, t) => {
3671
3671
  var n = {};
3672
3672
  for (var r in e)
3673
- Br.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3674
- if (e != null && xt)
3675
- for (var r of xt(e))
3676
- t.indexOf(r) < 0 && Tr.call(e, r) && (n[r] = e[r]);
3673
+ Tr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3674
+ if (e != null && Bt)
3675
+ for (var r of Bt(e))
3676
+ t.indexOf(r) < 0 && Ar.call(e, r) && (n[r] = e[r]);
3677
3677
  return n;
3678
3678
  };
3679
- const lt = (e, t) => {
3680
- const { formats: n } = qe();
3679
+ const ht = (e, t) => {
3680
+ const { formats: n } = Ye();
3681
3681
  if (e in n && t in n[e])
3682
3682
  return n[e][t];
3683
3683
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3684
- }, $o = At(
3684
+ }, $o = Ot(
3685
3685
  (e) => {
3686
- var t = e, { locale: n, format: r } = t, i = Ke(t, ["locale", "format"]);
3686
+ var t = e, { locale: n, format: r } = t, i = et(t, ["locale", "format"]);
3687
3687
  if (n == null)
3688
3688
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3689
- return r && (i = lt("number", r)), new Intl.NumberFormat(n, i);
3689
+ return r && (i = ht("number", r)), new Intl.NumberFormat(n, i);
3690
3690
  }
3691
- ), Vo = At(
3691
+ ), Vo = Ot(
3692
3692
  (e) => {
3693
- var t = e, { locale: n, format: r } = t, i = Ke(t, ["locale", "format"]);
3693
+ var t = e, { locale: n, format: r } = t, i = et(t, ["locale", "format"]);
3694
3694
  if (n == null)
3695
3695
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3696
- return r ? i = lt("date", r) : Object.keys(i).length === 0 && (i = lt("date", "short")), new Intl.DateTimeFormat(n, i);
3696
+ return r ? i = ht("date", r) : Object.keys(i).length === 0 && (i = ht("date", "short")), new Intl.DateTimeFormat(n, i);
3697
3697
  }
3698
- ), Xo = At(
3698
+ ), Xo = Ot(
3699
3699
  (e) => {
3700
- var t = e, { locale: n, format: r } = t, i = Ke(t, ["locale", "format"]);
3700
+ var t = e, { locale: n, format: r } = t, i = et(t, ["locale", "format"]);
3701
3701
  if (n == null)
3702
3702
  throw new Error(
3703
3703
  '[svelte-i18n] A "locale" must be set to format time values'
3704
3704
  );
3705
- return r ? i = lt("time", r) : Object.keys(i).length === 0 && (i = lt("time", "short")), new Intl.DateTimeFormat(n, i);
3705
+ return r ? i = ht("time", r) : Object.keys(i).length === 0 && (i = ht("time", "short")), new Intl.DateTimeFormat(n, i);
3706
3706
  }
3707
3707
  ), zo = (e = {}) => {
3708
3708
  var t = e, {
3709
- locale: n = Ue()
3710
- } = t, r = Ke(t, [
3709
+ locale: n = Fe()
3710
+ } = t, r = et(t, [
3711
3711
  "locale"
3712
3712
  ]);
3713
- return $o(gn({ locale: n }, r));
3713
+ return $o(yn({ locale: n }, r));
3714
3714
  }, Wo = (e = {}) => {
3715
3715
  var t = e, {
3716
- locale: n = Ue()
3717
- } = t, r = Ke(t, [
3716
+ locale: n = Fe()
3717
+ } = t, r = et(t, [
3718
3718
  "locale"
3719
3719
  ]);
3720
- return Vo(gn({ locale: n }, r));
3720
+ return Vo(yn({ locale: n }, r));
3721
3721
  }, Zo = (e = {}) => {
3722
3722
  var t = e, {
3723
- locale: n = Ue()
3724
- } = t, r = Ke(t, [
3723
+ locale: n = Fe()
3724
+ } = t, r = et(t, [
3725
3725
  "locale"
3726
3726
  ]);
3727
- return Xo(gn({ locale: n }, r));
3728
- }, qo = At(
3727
+ return Xo(yn({ locale: n }, r));
3728
+ }, qo = Ot(
3729
3729
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3730
- (e, t = Ue()) => new xo(e, t, qe().formats, {
3731
- ignoreTag: qe().ignoreTag
3730
+ (e, t = Fe()) => new xo(e, t, Ye().formats, {
3731
+ ignoreTag: Ye().ignoreTag
3732
3732
  })
3733
3733
  ), Yo = (e, t = {}) => {
3734
3734
  var n, r, i, o;
@@ -3736,44 +3736,44 @@ const lt = (e, t) => {
3736
3736
  typeof e == "object" && (a = e, e = a.id);
3737
3737
  const {
3738
3738
  values: s,
3739
- locale: l = Ue(),
3739
+ locale: c = Fe(),
3740
3740
  default: u
3741
3741
  } = a;
3742
- if (l == null)
3742
+ if (c == null)
3743
3743
  throw new Error(
3744
3744
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3745
3745
  );
3746
- let f = _r(e, l);
3746
+ let f = Er(e, c);
3747
3747
  if (!f)
3748
- f = (o = (i = (r = (n = qe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3748
+ f = (o = (i = (r = (n = Ye()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3749
3749
  else if (typeof f != "string")
3750
3750
  return console.warn(
3751
3751
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3752
3752
  ), f;
3753
3753
  if (!s)
3754
3754
  return f;
3755
- let b = f;
3755
+ let m = f;
3756
3756
  try {
3757
- b = qo(f, l).format(s);
3758
- } catch (p) {
3759
- p instanceof Error && console.warn(
3757
+ m = qo(f, c).format(s);
3758
+ } catch (d) {
3759
+ d instanceof Error && console.warn(
3760
3760
  `[svelte-i18n] Message "${e}" has syntax error:`,
3761
- p.message
3761
+ d.message
3762
3762
  );
3763
3763
  }
3764
- return b;
3765
- }, Qo = (e, t) => Zo(t).format(e), Jo = (e, t) => Wo(t).format(e), Ko = (e, t) => zo(t).format(e), ea = (e, t = Ue()) => _r(e, t), ta = Qe([Je, ct], () => Yo);
3766
- Qe([Je], () => Qo);
3767
- Qe([Je], () => Jo);
3768
- Qe([Je], () => Ko);
3769
- Qe([Je, ct], () => ea);
3770
- function In(e, t) {
3771
- xr(e, t);
3764
+ return m;
3765
+ }, Qo = (e, t) => Zo(t).format(e), Jo = (e, t) => Wo(t).format(e), Ko = (e, t) => zo(t).format(e), ea = (e, t = Fe()) => Er(e, t), ta = Je([Ke, ft], () => Yo);
3766
+ Je([Ke], () => Qo);
3767
+ Je([Ke], () => Jo);
3768
+ Je([Ke], () => Ko);
3769
+ Je([Ke, ft], () => ea);
3770
+ function Dn(e, t) {
3771
+ wr(e, t);
3772
3772
  }
3773
3773
  function na(e) {
3774
- Je.set(e);
3774
+ Ke.set(e);
3775
3775
  }
3776
- const Dn = {
3776
+ const Un = {
3777
3777
  en: {
3778
3778
  Title: "Your Balance",
3779
3779
  Total: "Total Balance",
@@ -3991,7 +3991,7 @@ const Dn = {
3991
3991
  Loading: "Loading ..."
3992
3992
  }
3993
3993
  };
3994
- var un = { exports: {} };
3994
+ var ln = { exports: {} };
3995
3995
  /** @license
3996
3996
  * eventsource.js
3997
3997
  * Available under MIT License (MIT)
@@ -3999,30 +3999,30 @@ var un = { exports: {} };
3999
3999
  */
4000
4000
  (function(e, t) {
4001
4001
  (function(n) {
4002
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, a = n.XDomainRequest, s = n.ActiveXObject, l = n.EventSource, u = n.document, f = n.Promise, b = n.fetch, p = n.Response, y = n.TextDecoder, E = n.TextEncoder, B = n.AbortController;
4003
- if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(c) {
4002
+ var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, a = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, u = n.document, f = n.Promise, m = n.fetch, d = n.Response, g = n.TextDecoder, v = n.TextEncoder, B = n.AbortController;
4003
+ if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
4004
4004
  u.readyState = "complete";
4005
4005
  }, !1)), o == null && s != null && (o = function() {
4006
4006
  return new s("Microsoft.XMLHTTP");
4007
- }), Object.create == null && (Object.create = function(c) {
4008
- function g() {
4007
+ }), Object.create == null && (Object.create = function(h) {
4008
+ function b() {
4009
4009
  }
4010
- return g.prototype = c, new g();
4010
+ return b.prototype = h, new b();
4011
4011
  }), Date.now || (Date.now = function() {
4012
4012
  return (/* @__PURE__ */ new Date()).getTime();
4013
4013
  }), B == null) {
4014
- var Q = b;
4015
- b = function(c, g) {
4016
- var w = g.signal;
4017
- return Q(c, { headers: g.headers, credentials: g.credentials, cache: g.cache }).then(function(m) {
4018
- var A = m.body.getReader();
4019
- return w._reader = A, w._aborted && w._reader.cancel(), {
4020
- status: m.status,
4021
- statusText: m.statusText,
4022
- headers: m.headers,
4014
+ var K = m;
4015
+ m = function(h, b) {
4016
+ var E = b.signal;
4017
+ return K(h, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(p) {
4018
+ var T = p.body.getReader();
4019
+ return E._reader = T, E._aborted && E._reader.cancel(), {
4020
+ status: p.status,
4021
+ statusText: p.statusText,
4022
+ headers: p.headers,
4023
4023
  body: {
4024
4024
  getReader: function() {
4025
- return A;
4025
+ return T;
4026
4026
  }
4027
4027
  }
4028
4028
  };
@@ -4036,407 +4036,407 @@ var un = { exports: {} };
4036
4036
  };
4037
4037
  };
4038
4038
  }
4039
- function re() {
4039
+ function oe() {
4040
4040
  this.bitsNeeded = 0, this.codePoint = 0;
4041
4041
  }
4042
- re.prototype.decode = function(c) {
4043
- function g(D, h, d) {
4044
- if (d === 1)
4045
- return D >= 128 >> h && D << h <= 2047;
4046
- if (d === 2)
4047
- return D >= 2048 >> h && D << h <= 55295 || D >= 57344 >> h && D << h <= 65535;
4048
- if (d === 3)
4049
- return D >= 65536 >> h && D << h <= 1114111;
4042
+ oe.prototype.decode = function(h) {
4043
+ function b(U, F, l) {
4044
+ if (l === 1)
4045
+ return U >= 128 >> F && U << F <= 2047;
4046
+ if (l === 2)
4047
+ return U >= 2048 >> F && U << F <= 55295 || U >= 57344 >> F && U << F <= 65535;
4048
+ if (l === 3)
4049
+ return U >= 65536 >> F && U << F <= 1114111;
4050
4050
  throw new Error();
4051
4051
  }
4052
- function w(D, h) {
4053
- if (D === 6 * 1)
4054
- return h >> 6 > 15 ? 3 : h > 31 ? 2 : 1;
4055
- if (D === 6 * 2)
4056
- return h > 15 ? 3 : 2;
4057
- if (D === 6 * 3)
4052
+ function E(U, F) {
4053
+ if (U === 6 * 1)
4054
+ return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
4055
+ if (U === 6 * 2)
4056
+ return F > 15 ? 3 : 2;
4057
+ if (U === 6 * 3)
4058
4058
  return 3;
4059
4059
  throw new Error();
4060
4060
  }
4061
- for (var m = 65533, A = "", S = this.bitsNeeded, C = this.codePoint, G = 0; G < c.length; G += 1) {
4062
- var O = c[G];
4063
- S !== 0 && (O < 128 || O > 191 || !g(C << 6 | O & 63, S - 6, w(S, C))) && (S = 0, C = m, A += String.fromCharCode(C)), S === 0 ? (O >= 0 && O <= 127 ? (S = 0, C = O) : O >= 192 && O <= 223 ? (S = 6 * 1, C = O & 31) : O >= 224 && O <= 239 ? (S = 6 * 2, C = O & 15) : O >= 240 && O <= 247 ? (S = 6 * 3, C = O & 7) : (S = 0, C = m), S !== 0 && !g(C, S, w(S, C)) && (S = 0, C = m)) : (S -= 6, C = C << 6 | O & 63), S === 0 && (C <= 65535 ? A += String.fromCharCode(C) : (A += String.fromCharCode(55296 + (C - 65535 - 1 >> 10)), A += String.fromCharCode(56320 + (C - 65535 - 1 & 1023))));
4061
+ for (var p = 65533, T = "", S = this.bitsNeeded, H = this.codePoint, k = 0; k < h.length; k += 1) {
4062
+ var L = h[k];
4063
+ S !== 0 && (L < 128 || L > 191 || !b(H << 6 | L & 63, S - 6, E(S, H))) && (S = 0, H = p, T += String.fromCharCode(H)), S === 0 ? (L >= 0 && L <= 127 ? (S = 0, H = L) : L >= 192 && L <= 223 ? (S = 6 * 1, H = L & 31) : L >= 224 && L <= 239 ? (S = 6 * 2, H = L & 15) : L >= 240 && L <= 247 ? (S = 6 * 3, H = L & 7) : (S = 0, H = p), S !== 0 && !b(H, S, E(S, H)) && (S = 0, H = p)) : (S -= 6, H = H << 6 | L & 63), S === 0 && (H <= 65535 ? T += String.fromCharCode(H) : (T += String.fromCharCode(55296 + (H - 65535 - 1 >> 10)), T += String.fromCharCode(56320 + (H - 65535 - 1 & 1023))));
4064
4064
  }
4065
- return this.bitsNeeded = S, this.codePoint = C, A;
4065
+ return this.bitsNeeded = S, this.codePoint = H, T;
4066
4066
  };
4067
- var oe = function() {
4067
+ var se = function() {
4068
4068
  try {
4069
- return new y().decode(new E().encode("test"), { stream: !0 }) === "test";
4070
- } catch (c) {
4071
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + c);
4069
+ return new g().decode(new v().encode("test"), { stream: !0 }) === "test";
4070
+ } catch (h) {
4071
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
4072
4072
  }
4073
4073
  return !1;
4074
4074
  };
4075
- (y == null || E == null || !oe()) && (y = re);
4076
- var I = function() {
4075
+ (g == null || v == null || !se()) && (g = oe);
4076
+ var D = function() {
4077
4077
  };
4078
- function k(c) {
4079
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = I, this.onload = I, this.onerror = I, this.onreadystatechange = I, this._contentType = "", this._xhr = c, this._sendTimeout = 0, this._abort = I;
4078
+ function j(h) {
4079
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = D, this.onload = D, this.onerror = D, this.onreadystatechange = D, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = D;
4080
4080
  }
4081
- k.prototype.open = function(c, g) {
4081
+ j.prototype.open = function(h, b) {
4082
4082
  this._abort(!0);
4083
- var w = this, m = this._xhr, A = 1, S = 0;
4084
- this._abort = function(d) {
4085
- w._sendTimeout !== 0 && (i(w._sendTimeout), w._sendTimeout = 0), (A === 1 || A === 2 || A === 3) && (A = 4, m.onload = I, m.onerror = I, m.onabort = I, m.onprogress = I, m.onreadystatechange = I, m.abort(), S !== 0 && (i(S), S = 0), d || (w.readyState = 4, w.onabort(null), w.onreadystatechange())), A = 0;
4083
+ var E = this, p = this._xhr, T = 1, S = 0;
4084
+ this._abort = function(l) {
4085
+ E._sendTimeout !== 0 && (i(E._sendTimeout), E._sendTimeout = 0), (T === 1 || T === 2 || T === 3) && (T = 4, p.onload = D, p.onerror = D, p.onabort = D, p.onprogress = D, p.onreadystatechange = D, p.abort(), S !== 0 && (i(S), S = 0), l || (E.readyState = 4, E.onabort(null), E.onreadystatechange())), T = 0;
4086
4086
  };
4087
- var C = function() {
4088
- if (A === 1) {
4089
- var d = 0, v = "", T = void 0;
4090
- if ("contentType" in m)
4091
- d = 200, v = "OK", T = m.contentType;
4087
+ var H = function() {
4088
+ if (T === 1) {
4089
+ var l = 0, y = "", w = void 0;
4090
+ if ("contentType" in p)
4091
+ l = 200, y = "OK", w = p.contentType;
4092
4092
  else
4093
4093
  try {
4094
- d = m.status, v = m.statusText, T = m.getResponseHeader("Content-Type");
4095
- } catch (U) {
4096
- d = 0, v = "", T = void 0;
4094
+ l = p.status, y = p.statusText, w = p.getResponseHeader("Content-Type");
4095
+ } catch (A) {
4096
+ l = 0, y = "", w = void 0;
4097
4097
  }
4098
- d !== 0 && (A = 2, w.readyState = 2, w.status = d, w.statusText = v, w._contentType = T, w.onreadystatechange());
4098
+ l !== 0 && (T = 2, E.readyState = 2, E.status = l, E.statusText = y, E._contentType = w, E.onreadystatechange());
4099
4099
  }
4100
- }, G = function() {
4101
- if (C(), A === 2 || A === 3) {
4102
- A = 3;
4103
- var d = "";
4100
+ }, k = function() {
4101
+ if (H(), T === 2 || T === 3) {
4102
+ T = 3;
4103
+ var l = "";
4104
4104
  try {
4105
- d = m.responseText;
4106
- } catch (v) {
4105
+ l = p.responseText;
4106
+ } catch (y) {
4107
4107
  }
4108
- w.readyState = 3, w.responseText = d, w.onprogress();
4108
+ E.readyState = 3, E.responseText = l, E.onprogress();
4109
4109
  }
4110
- }, O = function(d, v) {
4111
- if ((v == null || v.preventDefault == null) && (v = {
4112
- preventDefault: I
4113
- }), G(), A === 1 || A === 2 || A === 3) {
4114
- if (A = 4, S !== 0 && (i(S), S = 0), w.readyState = 4, d === "load")
4115
- w.onload(v);
4116
- else if (d === "error")
4117
- w.onerror(v);
4118
- else if (d === "abort")
4119
- w.onabort(v);
4110
+ }, L = function(l, y) {
4111
+ if ((y == null || y.preventDefault == null) && (y = {
4112
+ preventDefault: D
4113
+ }), k(), T === 1 || T === 2 || T === 3) {
4114
+ if (T = 4, S !== 0 && (i(S), S = 0), E.readyState = 4, l === "load")
4115
+ E.onload(y);
4116
+ else if (l === "error")
4117
+ E.onerror(y);
4118
+ else if (l === "abort")
4119
+ E.onabort(y);
4120
4120
  else
4121
4121
  throw new TypeError();
4122
- w.onreadystatechange();
4122
+ E.onreadystatechange();
4123
4123
  }
4124
- }, D = function(d) {
4125
- m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && O(m.responseText === "" ? "error" : "load", d) : m.readyState === 3 ? "onprogress" in m || G() : m.readyState === 2 && C());
4126
- }, h = function() {
4124
+ }, U = function(l) {
4125
+ p != null && (p.readyState === 4 ? (!("onload" in p) || !("onerror" in p) || !("onabort" in p)) && L(p.responseText === "" ? "error" : "load", l) : p.readyState === 3 ? "onprogress" in p || k() : p.readyState === 2 && H());
4126
+ }, F = function() {
4127
4127
  S = r(function() {
4128
- h();
4129
- }, 500), m.readyState === 3 && G();
4128
+ F();
4129
+ }, 500), p.readyState === 3 && k();
4130
4130
  };
4131
- "onload" in m && (m.onload = function(d) {
4132
- O("load", d);
4133
- }), "onerror" in m && (m.onerror = function(d) {
4134
- O("error", d);
4135
- }), "onabort" in m && (m.onabort = function(d) {
4136
- O("abort", d);
4137
- }), "onprogress" in m && (m.onprogress = G), "onreadystatechange" in m && (m.onreadystatechange = function(d) {
4138
- D(d);
4139
- }), ("contentType" in m || !("ontimeout" in o.prototype)) && (g += (g.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(c, g, !0), "readyState" in m && (S = r(function() {
4140
- h();
4131
+ "onload" in p && (p.onload = function(l) {
4132
+ L("load", l);
4133
+ }), "onerror" in p && (p.onerror = function(l) {
4134
+ L("error", l);
4135
+ }), "onabort" in p && (p.onabort = function(l) {
4136
+ L("abort", l);
4137
+ }), "onprogress" in p && (p.onprogress = k), "onreadystatechange" in p && (p.onreadystatechange = function(l) {
4138
+ U(l);
4139
+ }), ("contentType" in p || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), p.open(h, b, !0), "readyState" in p && (S = r(function() {
4140
+ F();
4141
4141
  }, 0));
4142
- }, k.prototype.abort = function() {
4142
+ }, j.prototype.abort = function() {
4143
4143
  this._abort(!1);
4144
- }, k.prototype.getResponseHeader = function(c) {
4144
+ }, j.prototype.getResponseHeader = function(h) {
4145
4145
  return this._contentType;
4146
- }, k.prototype.setRequestHeader = function(c, g) {
4147
- var w = this._xhr;
4148
- "setRequestHeader" in w && w.setRequestHeader(c, g);
4149
- }, k.prototype.getAllResponseHeaders = function() {
4146
+ }, j.prototype.setRequestHeader = function(h, b) {
4147
+ var E = this._xhr;
4148
+ "setRequestHeader" in E && E.setRequestHeader(h, b);
4149
+ }, j.prototype.getAllResponseHeaders = function() {
4150
4150
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4151
- }, k.prototype.send = function() {
4151
+ }, j.prototype.send = function() {
4152
4152
  if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4153
- var c = this;
4154
- c._sendTimeout = r(function() {
4155
- c._sendTimeout = 0, c.send();
4153
+ var h = this;
4154
+ h._sendTimeout = r(function() {
4155
+ h._sendTimeout = 0, h.send();
4156
4156
  }, 4);
4157
4157
  return;
4158
4158
  }
4159
- var g = this._xhr;
4160
- "withCredentials" in g && (g.withCredentials = this.withCredentials);
4159
+ var b = this._xhr;
4160
+ "withCredentials" in b && (b.withCredentials = this.withCredentials);
4161
4161
  try {
4162
- g.send(void 0);
4163
- } catch (w) {
4164
- throw w;
4162
+ b.send(void 0);
4163
+ } catch (E) {
4164
+ throw E;
4165
4165
  }
4166
4166
  };
4167
- function Z(c) {
4168
- return c.replace(/[A-Z]/g, function(g) {
4169
- return String.fromCharCode(g.charCodeAt(0) + 32);
4167
+ function Y(h) {
4168
+ return h.replace(/[A-Z]/g, function(b) {
4169
+ return String.fromCharCode(b.charCodeAt(0) + 32);
4170
4170
  });
4171
4171
  }
4172
- function ie(c) {
4173
- for (var g = /* @__PURE__ */ Object.create(null), w = c.split(`\r
4174
- `), m = 0; m < w.length; m += 1) {
4175
- var A = w[m], S = A.split(": "), C = S.shift(), G = S.join(": ");
4176
- g[Z(C)] = G;
4172
+ function ae(h) {
4173
+ for (var b = /* @__PURE__ */ Object.create(null), E = h.split(`\r
4174
+ `), p = 0; p < E.length; p += 1) {
4175
+ var T = E[p], S = T.split(": "), H = S.shift(), k = S.join(": ");
4176
+ b[Y(H)] = k;
4177
4177
  }
4178
- this._map = g;
4178
+ this._map = b;
4179
4179
  }
4180
- ie.prototype.get = function(c) {
4181
- return this._map[Z(c)];
4180
+ ae.prototype.get = function(h) {
4181
+ return this._map[Y(h)];
4182
4182
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4183
- function K() {
4183
+ function me() {
4184
4184
  }
4185
- K.prototype.open = function(c, g, w, m, A, S, C) {
4186
- c.open("GET", A);
4187
- var G = 0;
4188
- c.onprogress = function() {
4189
- var D = c.responseText, h = D.slice(G);
4190
- G += h.length, w(h);
4191
- }, c.onerror = function(D) {
4192
- D.preventDefault(), m(new Error("NetworkError"));
4193
- }, c.onload = function() {
4194
- m(null);
4195
- }, c.onabort = function() {
4196
- m(null);
4197
- }, c.onreadystatechange = function() {
4198
- if (c.readyState === o.HEADERS_RECEIVED) {
4199
- var D = c.status, h = c.statusText, d = c.getResponseHeader("Content-Type"), v = c.getAllResponseHeaders();
4200
- g(D, h, d, new ie(v));
4185
+ me.prototype.open = function(h, b, E, p, T, S, H) {
4186
+ h.open("GET", T);
4187
+ var k = 0;
4188
+ h.onprogress = function() {
4189
+ var U = h.responseText, F = U.slice(k);
4190
+ k += F.length, E(F);
4191
+ }, h.onerror = function(U) {
4192
+ U.preventDefault(), p(new Error("NetworkError"));
4193
+ }, h.onload = function() {
4194
+ p(null);
4195
+ }, h.onabort = function() {
4196
+ p(null);
4197
+ }, h.onreadystatechange = function() {
4198
+ if (h.readyState === o.HEADERS_RECEIVED) {
4199
+ var U = h.status, F = h.statusText, l = h.getResponseHeader("Content-Type"), y = h.getAllResponseHeaders();
4200
+ b(U, F, l, new ae(y));
4201
4201
  }
4202
- }, c.withCredentials = S;
4203
- for (var O in C)
4204
- Object.prototype.hasOwnProperty.call(C, O) && c.setRequestHeader(O, C[O]);
4205
- return c.send(), c;
4202
+ }, h.withCredentials = S;
4203
+ for (var L in H)
4204
+ Object.prototype.hasOwnProperty.call(H, L) && h.setRequestHeader(L, H[L]);
4205
+ return h.send(), h;
4206
4206
  };
4207
- function te(c) {
4208
- this._headers = c;
4207
+ function ee(h) {
4208
+ this._headers = h;
4209
4209
  }
4210
- te.prototype.get = function(c) {
4211
- return this._headers.get(c);
4210
+ ee.prototype.get = function(h) {
4211
+ return this._headers.get(h);
4212
4212
  };
4213
- function X() {
4213
+ function G() {
4214
4214
  }
4215
- X.prototype.open = function(c, g, w, m, A, S, C) {
4216
- var G = null, O = new B(), D = O.signal, h = new y();
4217
- return b(A, {
4218
- headers: C,
4215
+ G.prototype.open = function(h, b, E, p, T, S, H) {
4216
+ var k = null, L = new B(), U = L.signal, F = new g();
4217
+ return m(T, {
4218
+ headers: H,
4219
4219
  credentials: S ? "include" : "same-origin",
4220
- signal: D,
4220
+ signal: U,
4221
4221
  cache: "no-store"
4222
- }).then(function(d) {
4223
- return G = d.body.getReader(), g(d.status, d.statusText, d.headers.get("Content-Type"), new te(d.headers)), new f(function(v, T) {
4224
- var U = function() {
4225
- G.read().then(function(H) {
4226
- if (H.done)
4227
- v(void 0);
4222
+ }).then(function(l) {
4223
+ return k = l.body.getReader(), b(l.status, l.statusText, l.headers.get("Content-Type"), new ee(l.headers)), new f(function(y, w) {
4224
+ var A = function() {
4225
+ k.read().then(function(O) {
4226
+ if (O.done)
4227
+ y(void 0);
4228
4228
  else {
4229
- var x = h.decode(H.value, { stream: !0 });
4230
- w(x), U();
4229
+ var C = F.decode(O.value, { stream: !0 });
4230
+ E(C), A();
4231
4231
  }
4232
- }).catch(function(H) {
4233
- T(H);
4232
+ }).catch(function(O) {
4233
+ w(O);
4234
4234
  });
4235
4235
  };
4236
- U();
4236
+ A();
4237
4237
  });
4238
- }).catch(function(d) {
4239
- if (d.name !== "AbortError")
4240
- return d;
4241
- }).then(function(d) {
4242
- m(d);
4238
+ }).catch(function(l) {
4239
+ if (l.name !== "AbortError")
4240
+ return l;
4241
+ }).then(function(l) {
4242
+ p(l);
4243
4243
  }), {
4244
4244
  abort: function() {
4245
- G != null && G.cancel(), O.abort();
4245
+ k != null && k.cancel(), L.abort();
4246
4246
  }
4247
4247
  };
4248
4248
  };
4249
- function F() {
4249
+ function $() {
4250
4250
  this._listeners = /* @__PURE__ */ Object.create(null);
4251
4251
  }
4252
- function N(c) {
4252
+ function P(h) {
4253
4253
  r(function() {
4254
- throw c;
4254
+ throw h;
4255
4255
  }, 0);
4256
4256
  }
4257
- F.prototype.dispatchEvent = function(c) {
4258
- c.target = this;
4259
- var g = this._listeners[c.type];
4260
- if (g != null)
4261
- for (var w = g.length, m = 0; m < w; m += 1) {
4262
- var A = g[m];
4257
+ $.prototype.dispatchEvent = function(h) {
4258
+ h.target = this;
4259
+ var b = this._listeners[h.type];
4260
+ if (b != null)
4261
+ for (var E = b.length, p = 0; p < E; p += 1) {
4262
+ var T = b[p];
4263
4263
  try {
4264
- typeof A.handleEvent == "function" ? A.handleEvent(c) : A.call(this, c);
4264
+ typeof T.handleEvent == "function" ? T.handleEvent(h) : T.call(this, h);
4265
4265
  } catch (S) {
4266
- N(S);
4266
+ P(S);
4267
4267
  }
4268
4268
  }
4269
- }, F.prototype.addEventListener = function(c, g) {
4270
- c = String(c);
4271
- var w = this._listeners, m = w[c];
4272
- m == null && (m = [], w[c] = m);
4273
- for (var A = !1, S = 0; S < m.length; S += 1)
4274
- m[S] === g && (A = !0);
4275
- A || m.push(g);
4276
- }, F.prototype.removeEventListener = function(c, g) {
4277
- c = String(c);
4278
- var w = this._listeners, m = w[c];
4279
- if (m != null) {
4280
- for (var A = [], S = 0; S < m.length; S += 1)
4281
- m[S] !== g && A.push(m[S]);
4282
- A.length === 0 ? delete w[c] : w[c] = A;
4269
+ }, $.prototype.addEventListener = function(h, b) {
4270
+ h = String(h);
4271
+ var E = this._listeners, p = E[h];
4272
+ p == null && (p = [], E[h] = p);
4273
+ for (var T = !1, S = 0; S < p.length; S += 1)
4274
+ p[S] === b && (T = !0);
4275
+ T || p.push(b);
4276
+ }, $.prototype.removeEventListener = function(h, b) {
4277
+ h = String(h);
4278
+ var E = this._listeners, p = E[h];
4279
+ if (p != null) {
4280
+ for (var T = [], S = 0; S < p.length; S += 1)
4281
+ p[S] !== b && T.push(p[S]);
4282
+ T.length === 0 ? delete E[h] : E[h] = T;
4283
4283
  }
4284
4284
  };
4285
- function q(c) {
4286
- this.type = c, this.target = void 0;
4285
+ function W(h) {
4286
+ this.type = h, this.target = void 0;
4287
4287
  }
4288
- function z(c, g) {
4289
- q.call(this, c), this.data = g.data, this.lastEventId = g.lastEventId;
4288
+ function z(h, b) {
4289
+ W.call(this, h), this.data = b.data, this.lastEventId = b.lastEventId;
4290
4290
  }
4291
- z.prototype = Object.create(q.prototype);
4292
- function fe(c, g) {
4293
- q.call(this, c), this.status = g.status, this.statusText = g.statusText, this.headers = g.headers;
4291
+ z.prototype = Object.create(W.prototype);
4292
+ function Re(h, b) {
4293
+ W.call(this, h), this.status = b.status, this.statusText = b.statusText, this.headers = b.headers;
4294
4294
  }
4295
- fe.prototype = Object.create(q.prototype);
4296
- function He(c, g) {
4297
- q.call(this, c), this.error = g.error;
4295
+ Re.prototype = Object.create(W.prototype);
4296
+ function Ae(h, b) {
4297
+ W.call(this, h), this.error = b.error;
4298
4298
  }
4299
- He.prototype = Object.create(q.prototype);
4300
- var me = -1, le = 0, Oe = 1, _ = 2, Le = -1, Ee = 0, xe = 1, Fe = 2, Ht = 3, Ot = /^text\/event\-stream(;.*)?$/i, Lt = 1e3, et = 18e6, Ge = function(c, g) {
4301
- var w = c == null ? g : parseInt(c, 10);
4302
- return w !== w && (w = g), tt(w);
4303
- }, tt = function(c) {
4304
- return Math.min(Math.max(c, Lt), et);
4305
- }, we = function(c, g, w) {
4299
+ Ae.prototype = Object.create(W.prototype);
4300
+ var xe = -1, re = 0, be = 1, Me = 2, _ = -1, fe = 0, tt = 1, Ce = 2, nt = 3, Rt = /^text\/event\-stream(;.*)?$/i, Mt = 1e3, Pt = 18e6, De = function(h, b) {
4301
+ var E = h == null ? b : parseInt(h, 10);
4302
+ return E !== E && (E = b), Ge(E);
4303
+ }, Ge = function(h) {
4304
+ return Math.min(Math.max(h, Mt), Pt);
4305
+ }, Pe = function(h, b, E) {
4306
4306
  try {
4307
- typeof g == "function" && g.call(c, w);
4308
- } catch (m) {
4309
- N(m);
4307
+ typeof b == "function" && b.call(h, E);
4308
+ } catch (p) {
4309
+ P(p);
4310
4310
  }
4311
4311
  };
4312
- function ce(c, g) {
4313
- F.call(this), g = g || {}, 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, Mt(this, c, g);
4312
+ function ue(h, b) {
4313
+ $.call(this), b = b || {}, 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, rt(this, h, b);
4314
4314
  }
4315
- function Rt() {
4315
+ function pt() {
4316
4316
  return o != null && "withCredentials" in o.prototype || a == null ? new o() : new a();
4317
4317
  }
4318
- var nt = b != null && p != null && "body" in p.prototype;
4319
- function Mt(c, g, w) {
4320
- g = String(g);
4321
- var m = !!w.withCredentials, A = w.lastEventIdQueryParameterName || "lastEventId", S = tt(1e3), C = Ge(w.heartbeatTimeout, 45e3), G = "", O = S, D = !1, h = 0, d = w.headers || {}, v = w.Transport, T = nt && v == null ? void 0 : new k(v != null ? new v() : Rt()), U = v != null && typeof v != "string" ? new v() : T == null ? new X() : new K(), H = void 0, x = 0, j = me, he = "", Se = "", be = "", Be = "", ae = Ee, Pt = 0, De = 0, Mr = function(ee, J, de, pe) {
4322
- if (j === le)
4323
- if (ee === 200 && de != null && Ot.test(de)) {
4324
- j = Oe, D = Date.now(), O = S, c.readyState = Oe;
4325
- var se = new fe("open", {
4326
- status: ee,
4327
- statusText: J,
4318
+ var Nt = m != null && d != null && "body" in d.prototype;
4319
+ function rt(h, b, E) {
4320
+ b = String(b);
4321
+ var p = !!E.withCredentials, T = E.lastEventIdQueryParameterName || "lastEventId", S = Ge(1e3), H = De(E.heartbeatTimeout, 45e3), k = "", L = S, U = !1, F = 0, l = E.headers || {}, y = E.Transport, w = Nt && y == null ? void 0 : new j(y != null ? new y() : pt()), A = y != null && typeof y != "string" ? new y() : w == null ? new G() : new me(), O = void 0, C = 0, x = xe, Q = "", ge = "", le = "", je = "", J = fe, it = 0, we = 0, Ue = function(ne, te, de, pe) {
4322
+ if (x === re)
4323
+ if (ne === 200 && de != null && Rt.test(de)) {
4324
+ x = be, U = Date.now(), L = S, h.readyState = be;
4325
+ var ce = new Re("open", {
4326
+ status: ne,
4327
+ statusText: te,
4328
4328
  headers: pe
4329
4329
  });
4330
- c.dispatchEvent(se), we(c, c.onopen, se);
4330
+ h.dispatchEvent(ce), Pe(h, h.onopen, ce);
4331
4331
  } else {
4332
- var ne = "";
4333
- ee !== 200 ? (J && (J = J.replace(/\s+/g, " ")), ne = "EventSource's response has a status " + ee + " " + J + " that is not 200. Aborting the connection.") : ne = "EventSource's response has a Content-Type specifying an unsupported type: " + (de == null ? "-" : de.replace(/\s+/g, " ")) + ". Aborting the connection.", Nt();
4334
- var se = new fe("error", {
4335
- status: ee,
4336
- statusText: J,
4332
+ var ie = "";
4333
+ ne !== 200 ? (te && (te = te.replace(/\s+/g, " ")), ie = "EventSource's response has a status " + ne + " " + te + " that is not 200. Aborting the connection.") : ie = "EventSource's response has a Content-Type specifying an unsupported type: " + (de == null ? "-" : de.replace(/\s+/g, " ")) + ". Aborting the connection.", It();
4334
+ var ce = new Re("error", {
4335
+ status: ne,
4336
+ statusText: te,
4337
4337
  headers: pe
4338
4338
  });
4339
- c.dispatchEvent(se), we(c, c.onerror, se), console.error(ne);
4339
+ h.dispatchEvent(ce), Pe(h, h.onerror, ce), console.error(ie);
4340
4340
  }
4341
- }, Pr = function(ee) {
4342
- if (j === Oe) {
4343
- for (var J = -1, de = 0; de < ee.length; de += 1) {
4344
- var pe = ee.charCodeAt(de);
4345
- (pe === 10 || pe === 13) && (J = de);
4341
+ }, Pr = function(ne) {
4342
+ if (x === be) {
4343
+ for (var te = -1, de = 0; de < ne.length; de += 1) {
4344
+ var pe = ne.charCodeAt(de);
4345
+ (pe === 10 || pe === 13) && (te = de);
4346
4346
  }
4347
- var se = (J !== -1 ? Be : "") + ee.slice(0, J + 1);
4348
- Be = (J === -1 ? Be : "") + ee.slice(J + 1), ee !== "" && (D = Date.now(), h += ee.length);
4349
- for (var ne = 0; ne < se.length; ne += 1) {
4350
- var pe = se.charCodeAt(ne);
4351
- if (ae === Le && pe === 10)
4352
- ae = Ee;
4353
- else if (ae === Le && (ae = Ee), pe === 13 || pe === 10) {
4354
- if (ae !== Ee) {
4355
- ae === xe && (De = ne + 1);
4356
- var Re = se.slice(Pt, De - 1), Me = se.slice(De + (De < ne && se.charCodeAt(De) === 32 ? 1 : 0), ne);
4357
- Re === "data" ? (he += `
4358
- `, he += Me) : Re === "id" ? Se = Me : Re === "event" ? be = Me : Re === "retry" ? (S = Ge(Me, S), O = S) : Re === "heartbeatTimeout" && (C = Ge(Me, C), x !== 0 && (i(x), x = r(function() {
4359
- rt();
4360
- }, C)));
4347
+ var ce = (te !== -1 ? je : "") + ne.slice(0, te + 1);
4348
+ je = (te === -1 ? je : "") + ne.slice(te + 1), ne !== "" && (U = Date.now(), F += ne.length);
4349
+ for (var ie = 0; ie < ce.length; ie += 1) {
4350
+ var pe = ce.charCodeAt(ie);
4351
+ if (J === _ && pe === 10)
4352
+ J = fe;
4353
+ else if (J === _ && (J = fe), pe === 13 || pe === 10) {
4354
+ if (J !== fe) {
4355
+ J === tt && (we = ie + 1);
4356
+ var He = ce.slice(it, we - 1), Oe = ce.slice(we + (we < ie && ce.charCodeAt(we) === 32 ? 1 : 0), ie);
4357
+ He === "data" ? (Q += `
4358
+ `, Q += Oe) : He === "id" ? ge = Oe : He === "event" ? le = Oe : He === "retry" ? (S = De(Oe, S), L = S) : He === "heartbeatTimeout" && (H = De(Oe, H), C !== 0 && (i(C), C = r(function() {
4359
+ ot();
4360
+ }, H)));
4361
4361
  }
4362
- if (ae === Ee) {
4363
- if (he !== "") {
4364
- G = Se, be === "" && (be = "message");
4365
- var je = new z(be, {
4366
- data: he.slice(1),
4367
- lastEventId: Se
4362
+ if (J === fe) {
4363
+ if (Q !== "") {
4364
+ k = ge, le === "" && (le = "message");
4365
+ var ke = new z(le, {
4366
+ data: Q.slice(1),
4367
+ lastEventId: ge
4368
4368
  });
4369
- if (c.dispatchEvent(je), be === "open" ? we(c, c.onopen, je) : be === "message" ? we(c, c.onmessage, je) : be === "error" && we(c, c.onerror, je), j === _)
4369
+ if (h.dispatchEvent(ke), le === "open" ? Pe(h, h.onopen, ke) : le === "message" ? Pe(h, h.onmessage, ke) : le === "error" && Pe(h, h.onerror, ke), x === Me)
4370
4370
  return;
4371
4371
  }
4372
- he = "", be = "";
4372
+ Q = "", le = "";
4373
4373
  }
4374
- ae = pe === 13 ? Le : Ee;
4374
+ J = pe === 13 ? _ : fe;
4375
4375
  } else
4376
- ae === Ee && (Pt = ne, ae = xe), ae === xe ? pe === 58 && (De = ne + 1, ae = Fe) : ae === Fe && (ae = Ht);
4376
+ J === fe && (it = ie, J = tt), J === tt ? pe === 58 && (we = ie + 1, J = Ce) : J === Ce && (J = nt);
4377
4377
  }
4378
4378
  }
4379
- }, yn = function(ee) {
4380
- if (j === Oe || j === le) {
4381
- j = me, x !== 0 && (i(x), x = 0), x = r(function() {
4382
- rt();
4383
- }, O), O = tt(Math.min(S * 16, O * 2)), c.readyState = le;
4384
- var J = new He("error", { error: ee });
4385
- c.dispatchEvent(J), we(c, c.onerror, J), ee != null && console.error(ee);
4379
+ }, vn = function(ne) {
4380
+ if (x === be || x === re) {
4381
+ x = xe, C !== 0 && (i(C), C = 0), C = r(function() {
4382
+ ot();
4383
+ }, L), L = Ge(Math.min(S * 16, L * 2)), h.readyState = re;
4384
+ var te = new Ae("error", { error: ne });
4385
+ h.dispatchEvent(te), Pe(h, h.onerror, te), ne != null && console.error(ne);
4386
4386
  }
4387
- }, Nt = function() {
4388
- j = _, H != null && (H.abort(), H = void 0), x !== 0 && (i(x), x = 0), c.readyState = _;
4389
- }, rt = function() {
4390
- if (x = 0, j !== me) {
4391
- if (!D && H != null)
4392
- yn(new Error("No activity within " + C + " milliseconds. " + (j === le ? "No response received." : h + " chars received.") + " Reconnecting.")), H != null && (H.abort(), H = void 0);
4387
+ }, It = function() {
4388
+ x = Me, O != null && (O.abort(), O = void 0), C !== 0 && (i(C), C = 0), h.readyState = Me;
4389
+ }, ot = function() {
4390
+ if (C = 0, x !== xe) {
4391
+ if (!U && O != null)
4392
+ vn(new Error("No activity within " + H + " milliseconds. " + (x === re ? "No response received." : F + " chars received.") + " Reconnecting.")), O != null && (O.abort(), O = void 0);
4393
4393
  else {
4394
- var ee = Math.max((D || Date.now()) + C - Date.now(), 1);
4395
- D = !1, x = r(function() {
4396
- rt();
4397
- }, ee);
4394
+ var ne = Math.max((U || Date.now()) + H - Date.now(), 1);
4395
+ U = !1, C = r(function() {
4396
+ ot();
4397
+ }, ne);
4398
4398
  }
4399
4399
  return;
4400
4400
  }
4401
- D = !1, h = 0, x = r(function() {
4402
- rt();
4403
- }, C), j = le, he = "", be = "", Se = G, Be = "", Pt = 0, De = 0, ae = Ee;
4404
- var J = g;
4405
- if (g.slice(0, 5) !== "data:" && g.slice(0, 5) !== "blob:" && G !== "") {
4406
- var de = g.indexOf("?");
4407
- J = de === -1 ? g : g.slice(0, de + 1) + g.slice(de + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Me, je) {
4408
- return je === A ? "" : Me;
4409
- }), J += (g.indexOf("?") === -1 ? "?" : "&") + A + "=" + encodeURIComponent(G);
4401
+ U = !1, F = 0, C = r(function() {
4402
+ ot();
4403
+ }, H), x = re, Q = "", le = "", ge = k, je = "", it = 0, we = 0, J = fe;
4404
+ var te = b;
4405
+ if (b.slice(0, 5) !== "data:" && b.slice(0, 5) !== "blob:" && k !== "") {
4406
+ var de = b.indexOf("?");
4407
+ te = de === -1 ? b : b.slice(0, de + 1) + b.slice(de + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Oe, ke) {
4408
+ return ke === T ? "" : Oe;
4409
+ }), te += (b.indexOf("?") === -1 ? "?" : "&") + T + "=" + encodeURIComponent(k);
4410
4410
  }
4411
- var pe = c.withCredentials, se = {};
4412
- se.Accept = "text/event-stream";
4413
- var ne = c.headers;
4414
- if (ne != null)
4415
- for (var Re in ne)
4416
- Object.prototype.hasOwnProperty.call(ne, Re) && (se[Re] = ne[Re]);
4411
+ var pe = h.withCredentials, ce = {};
4412
+ ce.Accept = "text/event-stream";
4413
+ var ie = h.headers;
4414
+ if (ie != null)
4415
+ for (var He in ie)
4416
+ Object.prototype.hasOwnProperty.call(ie, He) && (ce[He] = ie[He]);
4417
4417
  try {
4418
- H = U.open(T, Mr, Pr, yn, J, pe, se);
4419
- } catch (Me) {
4420
- throw Nt(), Me;
4418
+ O = A.open(w, Ue, Pr, vn, te, pe, ce);
4419
+ } catch (Oe) {
4420
+ throw It(), Oe;
4421
4421
  }
4422
4422
  };
4423
- c.url = g, c.readyState = le, c.withCredentials = m, c.headers = d, c._close = Nt, rt();
4423
+ h.url = b, h.readyState = re, h.withCredentials = p, h.headers = l, h._close = It, ot();
4424
4424
  }
4425
- ce.prototype = Object.create(F.prototype), ce.prototype.CONNECTING = le, ce.prototype.OPEN = Oe, ce.prototype.CLOSED = _, ce.prototype.close = function() {
4425
+ ue.prototype = Object.create($.prototype), ue.prototype.CONNECTING = re, ue.prototype.OPEN = be, ue.prototype.CLOSED = Me, ue.prototype.close = function() {
4426
4426
  this._close();
4427
- }, ce.CONNECTING = le, ce.OPEN = Oe, ce.CLOSED = _, ce.prototype.withCredentials = void 0;
4428
- var ft = l;
4429
- o != null && (l == null || !("withCredentials" in l.prototype)) && (ft = ce), function(c) {
4427
+ }, ue.CONNECTING = re, ue.OPEN = be, ue.CLOSED = Me, ue.prototype.withCredentials = void 0;
4428
+ var mt = c;
4429
+ o != null && (c == null || !("withCredentials" in c.prototype)) && (mt = ue), function(h) {
4430
4430
  {
4431
- var g = c(t);
4432
- g !== void 0 && (e.exports = g);
4431
+ var b = h(t);
4432
+ b !== void 0 && (e.exports = b);
4433
4433
  }
4434
- }(function(c) {
4435
- c.EventSourcePolyfill = ce, c.NativeEventSource = l, c.EventSource = ft;
4434
+ }(function(h) {
4435
+ h.EventSourcePolyfill = ue, h.NativeEventSource = c, h.EventSource = mt;
4436
4436
  });
4437
4437
  })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : di : globalThis);
4438
- })(un, un.exports);
4439
- var ra = un.exports;
4438
+ })(ln, ln.exports);
4439
+ var ra = ln.exports;
4440
4440
  /*! *****************************************************************************
4441
4441
  Copyright (c) Microsoft Corporation.
4442
4442
 
@@ -4451,24 +4451,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4451
4451
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4452
4452
  PERFORMANCE OF THIS SOFTWARE.
4453
4453
  ***************************************************************************** */
4454
- var ln = function(e, t) {
4455
- return ln = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
4454
+ var cn = function(e, t) {
4455
+ return cn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
4456
4456
  n.__proto__ = r;
4457
4457
  } || function(n, r) {
4458
4458
  for (var i in r)
4459
4459
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
4460
- }, ln(e, t);
4460
+ }, cn(e, t);
4461
4461
  };
4462
- function ht(e, t) {
4462
+ function dt(e, t) {
4463
4463
  if (typeof t != "function" && t !== null)
4464
4464
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
4465
- ln(e, t);
4465
+ cn(e, t);
4466
4466
  function n() {
4467
4467
  this.constructor = e;
4468
4468
  }
4469
4469
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
4470
4470
  }
4471
- function cn(e) {
4471
+ function hn(e) {
4472
4472
  var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
4473
4473
  if (n)
4474
4474
  return n.call(e);
@@ -4480,7 +4480,7 @@ function cn(e) {
4480
4480
  };
4481
4481
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
4482
4482
  }
4483
- function hn(e, t) {
4483
+ function fn(e, t) {
4484
4484
  var n = typeof Symbol == "function" && e[Symbol.iterator];
4485
4485
  if (!n)
4486
4486
  return e;
@@ -4500,22 +4500,22 @@ function hn(e, t) {
4500
4500
  }
4501
4501
  return o;
4502
4502
  }
4503
- function fn(e, t, n) {
4503
+ function dn(e, t, n) {
4504
4504
  if (arguments.length === 2)
4505
4505
  for (var r = 0, i = t.length, o; r < i; r++)
4506
4506
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
4507
4507
  return e.concat(o || t);
4508
4508
  }
4509
- function Pe(e) {
4509
+ function Le(e) {
4510
4510
  return typeof e == "function";
4511
4511
  }
4512
- function Ar(e) {
4512
+ function Cr(e) {
4513
4513
  var t = function(r) {
4514
4514
  Error.call(r), r.stack = new Error().stack;
4515
4515
  }, n = e(t);
4516
4516
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
4517
4517
  }
4518
- var Zt = Ar(function(e) {
4518
+ var qt = Cr(function(e) {
4519
4519
  return function(n) {
4520
4520
  e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
4521
4521
  ` + n.map(function(r, i) {
@@ -4524,13 +4524,13 @@ var Zt = Ar(function(e) {
4524
4524
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
4525
4525
  };
4526
4526
  });
4527
- function dn(e, t) {
4527
+ function pn(e, t) {
4528
4528
  if (e) {
4529
4529
  var n = e.indexOf(t);
4530
4530
  0 <= n && e.splice(n, 1);
4531
4531
  }
4532
4532
  }
4533
- var Ct = function() {
4533
+ var Lt = function() {
4534
4534
  function e(t) {
4535
4535
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
4536
4536
  }
@@ -4542,15 +4542,15 @@ var Ct = function() {
4542
4542
  if (a)
4543
4543
  if (this._parentage = null, Array.isArray(a))
4544
4544
  try {
4545
- for (var s = cn(a), l = s.next(); !l.done; l = s.next()) {
4546
- var u = l.value;
4545
+ for (var s = hn(a), c = s.next(); !c.done; c = s.next()) {
4546
+ var u = c.value;
4547
4547
  u.remove(this);
4548
4548
  }
4549
4549
  } catch (B) {
4550
4550
  t = { error: B };
4551
4551
  } finally {
4552
4552
  try {
4553
- l && !l.done && (n = s.return) && n.call(s);
4553
+ c && !c.done && (n = s.return) && n.call(s);
4554
4554
  } finally {
4555
4555
  if (t)
4556
4556
  throw t.error;
@@ -4559,29 +4559,29 @@ var Ct = function() {
4559
4559
  else
4560
4560
  a.remove(this);
4561
4561
  var f = this.initialTeardown;
4562
- if (Pe(f))
4562
+ if (Le(f))
4563
4563
  try {
4564
4564
  f();
4565
4565
  } catch (B) {
4566
- o = B instanceof Zt ? B.errors : [B];
4566
+ o = B instanceof qt ? B.errors : [B];
4567
4567
  }
4568
- var b = this._finalizers;
4569
- if (b) {
4568
+ var m = this._finalizers;
4569
+ if (m) {
4570
4570
  this._finalizers = null;
4571
4571
  try {
4572
- for (var p = cn(b), y = p.next(); !y.done; y = p.next()) {
4573
- var E = y.value;
4572
+ for (var d = hn(m), g = d.next(); !g.done; g = d.next()) {
4573
+ var v = g.value;
4574
4574
  try {
4575
- Un(E);
4575
+ Fn(v);
4576
4576
  } catch (B) {
4577
- o = o != null ? o : [], B instanceof Zt ? o = fn(fn([], hn(o)), hn(B.errors)) : o.push(B);
4577
+ o = o != null ? o : [], B instanceof qt ? o = dn(dn([], fn(o)), fn(B.errors)) : o.push(B);
4578
4578
  }
4579
4579
  }
4580
4580
  } catch (B) {
4581
4581
  r = { error: B };
4582
4582
  } finally {
4583
4583
  try {
4584
- y && !y.done && (i = p.return) && i.call(p);
4584
+ g && !g.done && (i = d.return) && i.call(d);
4585
4585
  } finally {
4586
4586
  if (r)
4587
4587
  throw r.error;
@@ -4589,13 +4589,13 @@ var Ct = function() {
4589
4589
  }
4590
4590
  }
4591
4591
  if (o)
4592
- throw new Zt(o);
4592
+ throw new qt(o);
4593
4593
  }
4594
4594
  }, e.prototype.add = function(t) {
4595
4595
  var n;
4596
4596
  if (t && t !== this)
4597
4597
  if (this.closed)
4598
- Un(t);
4598
+ Fn(t);
4599
4599
  else {
4600
4600
  if (t instanceof e) {
4601
4601
  if (t.closed || t._hasParent(this))
@@ -4612,20 +4612,20 @@ var Ct = function() {
4612
4612
  this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
4613
4613
  }, e.prototype._removeParent = function(t) {
4614
4614
  var n = this._parentage;
4615
- n === t ? this._parentage = null : Array.isArray(n) && dn(n, t);
4615
+ n === t ? this._parentage = null : Array.isArray(n) && pn(n, t);
4616
4616
  }, e.prototype.remove = function(t) {
4617
4617
  var n = this._finalizers;
4618
- n && dn(n, t), t instanceof e && t._removeParent(this);
4618
+ n && pn(n, t), t instanceof e && t._removeParent(this);
4619
4619
  }, e.EMPTY = function() {
4620
4620
  var t = new e();
4621
4621
  return t.closed = !0, t;
4622
4622
  }(), e;
4623
- }(), Cr = Ct.EMPTY;
4624
- function Hr(e) {
4625
- return e instanceof Ct || e && "closed" in e && Pe(e.remove) && Pe(e.add) && Pe(e.unsubscribe);
4623
+ }(), Hr = Lt.EMPTY;
4624
+ function Or(e) {
4625
+ return e instanceof Lt || e && "closed" in e && Le(e.remove) && Le(e.add) && Le(e.unsubscribe);
4626
4626
  }
4627
- function Un(e) {
4628
- Pe(e) ? e() : e.unsubscribe();
4627
+ function Fn(e) {
4628
+ Le(e) ? e() : e.unsubscribe();
4629
4629
  }
4630
4630
  var ia = {
4631
4631
  Promise: void 0
@@ -4633,7 +4633,7 @@ var ia = {
4633
4633
  setTimeout: function(e, t) {
4634
4634
  for (var n = [], r = 2; r < arguments.length; r++)
4635
4635
  n[r - 2] = arguments[r];
4636
- return setTimeout.apply(void 0, fn([e, t], hn(n)));
4636
+ return setTimeout.apply(void 0, dn([e, t], fn(n)));
4637
4637
  },
4638
4638
  clearTimeout: function(e) {
4639
4639
  return clearTimeout(e);
@@ -4645,19 +4645,19 @@ function aa(e) {
4645
4645
  throw e;
4646
4646
  });
4647
4647
  }
4648
- function Fn() {
4648
+ function Gn() {
4649
4649
  }
4650
- function yt(e) {
4650
+ function Et(e) {
4651
4651
  e();
4652
4652
  }
4653
- var Or = function(e) {
4654
- ht(t, e);
4653
+ var Lr = function(e) {
4654
+ dt(t, e);
4655
4655
  function t(n) {
4656
4656
  var r = e.call(this) || this;
4657
- return r.isStopped = !1, n ? (r.destination = n, Hr(n) && n.add(r)) : r.destination = la, r;
4657
+ return r.isStopped = !1, n ? (r.destination = n, Or(n) && n.add(r)) : r.destination = la, r;
4658
4658
  }
4659
4659
  return t.create = function(n, r, i) {
4660
- return new pn(n, r, i);
4660
+ return new mn(n, r, i);
4661
4661
  }, t.prototype.next = function(n) {
4662
4662
  this.isStopped || this._next(n);
4663
4663
  }, t.prototype.error = function(n) {
@@ -4681,7 +4681,7 @@ var Or = function(e) {
4681
4681
  this.unsubscribe();
4682
4682
  }
4683
4683
  }, t;
4684
- }(Ct), sa = function() {
4684
+ }(Lt), sa = function() {
4685
4685
  function e(t) {
4686
4686
  this.partialObserver = t;
4687
4687
  }
@@ -4691,7 +4691,7 @@ var Or = function(e) {
4691
4691
  try {
4692
4692
  n.next(t);
4693
4693
  } catch (r) {
4694
- pt(r);
4694
+ gt(r);
4695
4695
  }
4696
4696
  }, e.prototype.error = function(t) {
4697
4697
  var n = this.partialObserver;
@@ -4699,32 +4699,32 @@ var Or = function(e) {
4699
4699
  try {
4700
4700
  n.error(t);
4701
4701
  } catch (r) {
4702
- pt(r);
4702
+ gt(r);
4703
4703
  }
4704
4704
  else
4705
- pt(t);
4705
+ gt(t);
4706
4706
  }, e.prototype.complete = function() {
4707
4707
  var t = this.partialObserver;
4708
4708
  if (t.complete)
4709
4709
  try {
4710
4710
  t.complete();
4711
4711
  } catch (n) {
4712
- pt(n);
4712
+ gt(n);
4713
4713
  }
4714
4714
  }, e;
4715
- }(), pn = function(e) {
4716
- ht(t, e);
4715
+ }(), mn = function(e) {
4716
+ dt(t, e);
4717
4717
  function t(n, r, i) {
4718
4718
  var o = e.call(this) || this, a;
4719
- return Pe(n) || !n ? a = {
4719
+ return Le(n) || !n ? a = {
4720
4720
  next: n != null ? n : void 0,
4721
4721
  error: r != null ? r : void 0,
4722
4722
  complete: i != null ? i : void 0
4723
4723
  } : a = n, o.destination = new sa(a), o;
4724
4724
  }
4725
4725
  return t;
4726
- }(Or);
4727
- function pt(e) {
4726
+ }(Lr);
4727
+ function gt(e) {
4728
4728
  aa(e);
4729
4729
  }
4730
4730
  function ua(e) {
@@ -4732,9 +4732,9 @@ function ua(e) {
4732
4732
  }
4733
4733
  var la = {
4734
4734
  closed: !0,
4735
- next: Fn,
4735
+ next: Gn,
4736
4736
  error: ua,
4737
- complete: Fn
4737
+ complete: Gn
4738
4738
  }, ca = function() {
4739
4739
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
4740
4740
  }();
@@ -4748,7 +4748,7 @@ function fa(e) {
4748
4748
  }, n);
4749
4749
  };
4750
4750
  }
4751
- var Gn = function() {
4751
+ var jn = function() {
4752
4752
  function e(t) {
4753
4753
  t && (this._subscribe = t);
4754
4754
  }
@@ -4756,10 +4756,10 @@ var Gn = function() {
4756
4756
  var n = new e();
4757
4757
  return n.source = this, n.operator = t, n;
4758
4758
  }, e.prototype.subscribe = function(t, n, r) {
4759
- var i = this, o = pa(t) ? t : new pn(t, n, r);
4760
- return yt(function() {
4761
- var a = i, s = a.operator, l = a.source;
4762
- o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
4759
+ var i = this, o = pa(t) ? t : new mn(t, n, r);
4760
+ return Et(function() {
4761
+ var a = i, s = a.operator, c = a.source;
4762
+ o.add(s ? s.call(o, c) : c ? i._subscribe(o) : i._trySubscribe(o));
4763
4763
  }), o;
4764
4764
  }, e.prototype._trySubscribe = function(t) {
4765
4765
  try {
@@ -4769,13 +4769,13 @@ var Gn = function() {
4769
4769
  }
4770
4770
  }, e.prototype.forEach = function(t, n) {
4771
4771
  var r = this;
4772
- return n = jn(n), new n(function(i, o) {
4773
- var a = new pn({
4772
+ return n = kn(n), new n(function(i, o) {
4773
+ var a = new mn({
4774
4774
  next: function(s) {
4775
4775
  try {
4776
4776
  t(s);
4777
- } catch (l) {
4778
- o(l), a.unsubscribe();
4777
+ } catch (c) {
4778
+ o(c), a.unsubscribe();
4779
4779
  }
4780
4780
  },
4781
4781
  error: o,
@@ -4794,7 +4794,7 @@ var Gn = function() {
4794
4794
  return fa(t)(this);
4795
4795
  }, e.prototype.toPromise = function(t) {
4796
4796
  var n = this;
4797
- return t = jn(t), new t(function(r, i) {
4797
+ return t = kn(t), new t(function(r, i) {
4798
4798
  var o;
4799
4799
  n.subscribe(function(a) {
4800
4800
  return o = a;
@@ -4808,42 +4808,42 @@ var Gn = function() {
4808
4808
  return new e(t);
4809
4809
  }, e;
4810
4810
  }();
4811
- function jn(e) {
4811
+ function kn(e) {
4812
4812
  var t;
4813
4813
  return (t = e != null ? e : ia.Promise) !== null && t !== void 0 ? t : Promise;
4814
4814
  }
4815
4815
  function da(e) {
4816
- return e && Pe(e.next) && Pe(e.error) && Pe(e.complete);
4816
+ return e && Le(e.next) && Le(e.error) && Le(e.complete);
4817
4817
  }
4818
4818
  function pa(e) {
4819
- return e && e instanceof Or || da(e) && Hr(e);
4819
+ return e && e instanceof Lr || da(e) && Or(e);
4820
4820
  }
4821
- var ma = Ar(function(e) {
4821
+ var ma = Cr(function(e) {
4822
4822
  return function() {
4823
4823
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4824
4824
  };
4825
- }), Lr = function(e) {
4826
- ht(t, e);
4825
+ }), Rr = function(e) {
4826
+ dt(t, e);
4827
4827
  function t() {
4828
4828
  var n = e.call(this) || this;
4829
4829
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
4830
4830
  }
4831
4831
  return t.prototype.lift = function(n) {
4832
- var r = new kn(this, this);
4832
+ var r = new $n(this, this);
4833
4833
  return r.operator = n, r;
4834
4834
  }, t.prototype._throwIfClosed = function() {
4835
4835
  if (this.closed)
4836
4836
  throw new ma();
4837
4837
  }, t.prototype.next = function(n) {
4838
4838
  var r = this;
4839
- yt(function() {
4839
+ Et(function() {
4840
4840
  var i, o;
4841
4841
  if (r._throwIfClosed(), !r.isStopped) {
4842
4842
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
4843
4843
  try {
4844
- for (var a = cn(r.currentObservers), s = a.next(); !s.done; s = a.next()) {
4845
- var l = s.value;
4846
- l.next(n);
4844
+ for (var a = hn(r.currentObservers), s = a.next(); !s.done; s = a.next()) {
4845
+ var c = s.value;
4846
+ c.next(n);
4847
4847
  }
4848
4848
  } catch (u) {
4849
4849
  i = { error: u };
@@ -4859,7 +4859,7 @@ var ma = Ar(function(e) {
4859
4859
  });
4860
4860
  }, t.prototype.error = function(n) {
4861
4861
  var r = this;
4862
- yt(function() {
4862
+ Et(function() {
4863
4863
  if (r._throwIfClosed(), !r.isStopped) {
4864
4864
  r.hasError = r.isStopped = !0, r.thrownError = n;
4865
4865
  for (var i = r.observers; i.length; )
@@ -4868,7 +4868,7 @@ var ma = Ar(function(e) {
4868
4868
  });
4869
4869
  }, t.prototype.complete = function() {
4870
4870
  var n = this;
4871
- yt(function() {
4871
+ Et(function() {
4872
4872
  if (n._throwIfClosed(), !n.isStopped) {
4873
4873
  n.isStopped = !0;
4874
4874
  for (var r = n.observers; r.length; )
@@ -4890,20 +4890,20 @@ var ma = Ar(function(e) {
4890
4890
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
4891
4891
  }, t.prototype._innerSubscribe = function(n) {
4892
4892
  var r = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
4893
- return o || a ? Cr : (this.currentObservers = null, s.push(n), new Ct(function() {
4894
- r.currentObservers = null, dn(s, n);
4893
+ return o || a ? Hr : (this.currentObservers = null, s.push(n), new Lt(function() {
4894
+ r.currentObservers = null, pn(s, n);
4895
4895
  }));
4896
4896
  }, t.prototype._checkFinalizedStatuses = function(n) {
4897
4897
  var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
4898
4898
  i ? n.error(o) : a && n.complete();
4899
4899
  }, t.prototype.asObservable = function() {
4900
- var n = new Gn();
4900
+ var n = new jn();
4901
4901
  return n.source = this, n;
4902
4902
  }, t.create = function(n, r) {
4903
- return new kn(n, r);
4903
+ return new $n(n, r);
4904
4904
  }, t;
4905
- }(Gn), kn = function(e) {
4906
- ht(t, e);
4905
+ }(jn), $n = function(e) {
4906
+ dt(t, e);
4907
4907
  function t(n, r) {
4908
4908
  var i = e.call(this) || this;
4909
4909
  return i.destination = n, i.source = r, i;
@@ -4919,91 +4919,91 @@ var ma = Ar(function(e) {
4919
4919
  (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
4920
4920
  }, t.prototype._subscribe = function(n) {
4921
4921
  var r, i;
4922
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Cr;
4922
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Hr;
4923
4923
  }, t;
4924
- }(Lr), Rr = {
4924
+ }(Rr), Mr = {
4925
4925
  now: function() {
4926
- return (Rr.delegate || Date).now();
4926
+ return (Mr.delegate || Date).now();
4927
4927
  },
4928
4928
  delegate: void 0
4929
4929
  }, ba = function(e) {
4930
- ht(t, e);
4930
+ dt(t, e);
4931
4931
  function t(n, r, i) {
4932
- n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = Rr);
4932
+ n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = Mr);
4933
4933
  var o = e.call(this) || this;
4934
4934
  return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
4935
4935
  }
4936
4936
  return t.prototype.next = function(n) {
4937
- var r = this, i = r.isStopped, o = r._buffer, a = r._infiniteTimeWindow, s = r._timestampProvider, l = r._windowTime;
4938
- i || (o.push(n), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, n);
4937
+ var r = this, i = r.isStopped, o = r._buffer, a = r._infiniteTimeWindow, s = r._timestampProvider, c = r._windowTime;
4938
+ i || (o.push(n), !a && o.push(s.now() + c)), this._trimBuffer(), e.prototype.next.call(this, n);
4939
4939
  }, t.prototype._subscribe = function(n) {
4940
4940
  this._throwIfClosed(), this._trimBuffer();
4941
- for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !n.closed; l += o ? 1 : 2)
4942
- n.next(s[l]);
4941
+ for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), c = 0; c < s.length && !n.closed; c += o ? 1 : 2)
4942
+ n.next(s[c]);
4943
4943
  return this._checkFinalizedStatuses(n), r;
4944
4944
  }, t.prototype._trimBuffer = function() {
4945
4945
  var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, a = n._infiniteTimeWindow, s = (a ? 1 : 2) * r;
4946
4946
  if (r < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
4947
- for (var l = i.now(), u = 0, f = 1; f < o.length && o[f] <= l; f += 2)
4947
+ for (var c = i.now(), u = 0, f = 1; f < o.length && o[f] <= c; f += 2)
4948
4948
  u = f;
4949
4949
  u && o.splice(0, u + 1);
4950
4950
  }
4951
4951
  }, t;
4952
- }(Lr);
4953
- const $n = [], Vn = {}, ga = (e, t = 0) => {
4954
- if ($n.indexOf(e) == -1) {
4952
+ }(Rr);
4953
+ const Vn = [], Xn = {}, ga = (e, t = 0) => {
4954
+ if (Vn.indexOf(e) == -1) {
4955
4955
  const n = new ba(t);
4956
- Vn[e] = n, $n.push(e);
4956
+ Xn[e] = n, Vn.push(e);
4957
4957
  }
4958
- return Vn[e];
4958
+ return Xn[e];
4959
4959
  };
4960
4960
  window.emWidgets = { topic: ga };
4961
4961
  const ya = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4962
4962
  function va(e) {
4963
4963
  kr(e, "svelte-15fwckg", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px;gap:5px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4964
4964
  }
4965
- function Xn(e, t, n) {
4965
+ function zn(e, t, n) {
4966
4966
  const r = e.slice();
4967
- return r[60] = t[n], r;
4967
+ return r[61] = t[n], r;
4968
4968
  }
4969
- function zn(e, t, n) {
4969
+ function Wn(e, t, n) {
4970
4970
  const r = e.slice();
4971
- return r[63] = t[n], r;
4971
+ return r[64] = t[n], r;
4972
4972
  }
4973
4973
  function _a(e) {
4974
- let t, n, r, i, o, a, s, l, u, f, b, p, y = (
4974
+ let t, n, r, i, o, a, s, c, u, f, m, d, g = (
4975
4975
  /*showBalance*/
4976
- e[5] && Wn(e)
4976
+ e[5] && Zn(e)
4977
4977
  );
4978
4978
  return {
4979
4979
  c() {
4980
- t = V("button"), n = V("p"), r = Ce(
4980
+ t = X("button"), n = X("p"), r = Te(
4981
4981
  /*displayBalance*/
4982
4982
  e[7]
4983
- ), i = Ae(), o = V("span"), a = En("svg"), s = En("path"), u = Ae(), y && y.c(), f = Xr(), R(s, "id", "arrow"), R(s, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), R(s, "transform", "translate(-274.511 -441.088)"), R(s, "fill", "#d1d1d1"), R(a, "xmlns", "http://www.w3.org/2000/svg"), R(a, "width", "14"), R(a, "height", "6.835"), R(a, "viewBox", "0 0 14 6.835"), R(o, "class", l = /*isModalDisplayed*/
4984
- e[4] ? "TriangleActive" : "TriangleInactive"), R(t, "class", "BalanceValue");
4983
+ ), i = Be(), o = X("span"), a = xn("svg"), s = xn("path"), u = Be(), g && g.c(), f = Xr(), M(s, "id", "arrow"), M(s, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), M(s, "transform", "translate(-274.511 -441.088)"), M(s, "fill", "#d1d1d1"), M(a, "xmlns", "http://www.w3.org/2000/svg"), M(a, "width", "14"), M(a, "height", "6.835"), M(a, "viewBox", "0 0 14 6.835"), M(o, "class", c = /*isModalDisplayed*/
4984
+ e[4] ? "TriangleActive" : "TriangleInactive"), M(t, "class", "BalanceValue");
4985
4985
  },
4986
- m(E, B) {
4987
- _e(E, t, B), P(t, n), P(n, r), P(t, i), P(t, o), P(o, a), P(a, s), _e(E, u, B), y && y.m(E, B), _e(E, f, B), b || (p = at(
4986
+ m(v, B) {
4987
+ Ee(v, t, B), I(t, n), I(n, r), I(t, i), I(t, o), I(o, a), I(a, s), Ee(v, u, B), g && g.m(v, B), Ee(v, f, B), m || (d = ut(
4988
4988
  t,
4989
4989
  "click",
4990
4990
  /*click_handler*/
4991
- e[31]
4992
- ), b = !0);
4991
+ e[32]
4992
+ ), m = !0);
4993
4993
  },
4994
- p(E, B) {
4994
+ p(v, B) {
4995
4995
  B[0] & /*displayBalance*/
4996
4996
  128 && Ie(
4997
4997
  r,
4998
4998
  /*displayBalance*/
4999
- E[7]
4999
+ v[7]
5000
5000
  ), B[0] & /*isModalDisplayed*/
5001
- 16 && l !== (l = /*isModalDisplayed*/
5002
- E[4] ? "TriangleActive" : "TriangleInactive") && R(o, "class", l), /*showBalance*/
5003
- E[5] ? y ? y.p(E, B) : (y = Wn(E), y.c(), y.m(f.parentNode, f)) : y && (y.d(1), y = null);
5001
+ 16 && c !== (c = /*isModalDisplayed*/
5002
+ v[4] ? "TriangleActive" : "TriangleInactive") && M(o, "class", c), /*showBalance*/
5003
+ v[5] ? g ? g.p(v, B) : (g = Zn(v), g.c(), g.m(f.parentNode, f)) : g && (g.d(1), g = null);
5004
5004
  },
5005
- d(E) {
5006
- E && (ve(t), ve(u), ve(f)), y && y.d(E), b = !1, p();
5005
+ d(v) {
5006
+ v && (_e(t), _e(u), _e(f)), g && g.d(v), m = !1, d();
5007
5007
  }
5008
5008
  };
5009
5009
  }
@@ -5014,10 +5014,10 @@ function Ea(e) {
5014
5014
  ), r;
5015
5015
  return {
5016
5016
  c() {
5017
- t = V("p"), r = Ce(n), R(t, "class", "Loading");
5017
+ t = X("p"), r = Te(n), M(t, "class", "Loading");
5018
5018
  },
5019
5019
  m(i, o) {
5020
- _e(i, t, o), P(t, r);
5020
+ Ee(i, t, o), I(t, r);
5021
5021
  },
5022
5022
  p(i, o) {
5023
5023
  o[0] & /*$_*/
@@ -5025,180 +5025,180 @@ function Ea(e) {
5025
5025
  i[8]("Loading") + "") && Ie(r, n);
5026
5026
  },
5027
5027
  d(i) {
5028
- i && ve(t);
5028
+ i && _e(t);
5029
5029
  }
5030
5030
  };
5031
5031
  }
5032
- function Wn(e) {
5033
- let t, n, r, i, o, a, s, l, u = (
5032
+ function Zn(e) {
5033
+ let t, n, r, i, o, a, s, c, u = (
5034
5034
  /*$_*/
5035
5035
  e[8]("Title") + ""
5036
- ), f, b, p, y, E, B, Q = (
5036
+ ), f, m, d, g, v, B, K = (
5037
5037
  /*$_*/
5038
5038
  e[8]("DepositButton") + ""
5039
- ), re, oe, I, k, Z, ie, K, te = vt(Object.keys(
5039
+ ), oe, se, D, j, Y, ae, me, ee = xt(Object.keys(
5040
5040
  /*balances*/
5041
5041
  e[2]
5042
- )), X = [];
5043
- for (let N = 0; N < te.length; N += 1)
5044
- X[N] = qn(Xn(e, te, N));
5045
- let F = (
5042
+ )), G = [];
5043
+ for (let P = 0; P < ee.length; P += 1)
5044
+ G[P] = Yn(zn(e, ee, P));
5045
+ let $ = (
5046
5046
  /*balancelimitsbutton*/
5047
- e[0] === "true" && Yn(e)
5047
+ e[0] === "true" && Qn(e)
5048
5048
  );
5049
5049
  return {
5050
5050
  c() {
5051
- t = V("div"), n = V("button"), i = Ae(), o = V("div"), a = V("div"), s = V("div"), l = V("p"), f = Ce(u), b = Ae(), p = V("div");
5052
- for (let N = 0; N < X.length; N += 1)
5053
- X[N].c();
5054
- y = Ae(), E = V("div"), B = V("button"), re = Ce(Q), oe = Ae(), F && F.c(), R(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
5055
- (e[4] ? "Open" : "")), R(l, "class", "BalanceModalTitle"), R(s, "class", "BalanceModalHeader"), R(p, "class", "BalanceModalBody"), R(B, "class", "BalanceModalAction DepositButton"), R(E, "class", "BalanceModalFooter"), R(a, "class", I = "ModalContent " + /*isModalDisplayed*/
5056
- (e[4] ? "Open" : "")), R(o, "class", k = "BalanceModal " + /*isModalDisplayed*/
5057
- (e[4] ? "Open" : "")), R(t, "class", Z = "BalanceModalWrapper " + /*isModalDisplayed*/
5051
+ t = X("div"), n = X("button"), i = Be(), o = X("div"), a = X("div"), s = X("div"), c = X("p"), f = Te(u), m = Be(), d = X("div");
5052
+ for (let P = 0; P < G.length; P += 1)
5053
+ G[P].c();
5054
+ g = Be(), v = X("div"), B = X("button"), oe = Te(K), se = Be(), $ && $.c(), M(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
5055
+ (e[4] ? "Open" : "")), M(c, "class", "BalanceModalTitle"), M(s, "class", "BalanceModalHeader"), M(d, "class", "BalanceModalBody"), M(B, "class", "BalanceModalAction DepositButton"), M(v, "class", "BalanceModalFooter"), M(a, "class", D = "ModalContent " + /*isModalDisplayed*/
5056
+ (e[4] ? "Open" : "")), M(o, "class", j = "BalanceModal " + /*isModalDisplayed*/
5057
+ (e[4] ? "Open" : "")), M(t, "class", Y = "BalanceModalWrapper " + /*isModalDisplayed*/
5058
5058
  (e[4] ? "Open" : ""));
5059
5059
  },
5060
- m(N, q) {
5061
- _e(N, t, q), P(t, n), P(t, i), P(t, o), P(o, a), P(a, s), P(s, l), P(l, f), P(a, b), P(a, p);
5062
- for (let z = 0; z < X.length; z += 1)
5063
- X[z] && X[z].m(p, null);
5064
- P(a, y), P(a, E), P(E, B), P(B, re), P(E, oe), F && F.m(E, null), ie || (K = [
5065
- at(
5060
+ m(P, W) {
5061
+ Ee(P, t, W), I(t, n), I(t, i), I(t, o), I(o, a), I(a, s), I(s, c), I(c, f), I(a, m), I(a, d);
5062
+ for (let z = 0; z < G.length; z += 1)
5063
+ G[z] && G[z].m(d, null);
5064
+ I(a, g), I(a, v), I(v, B), I(B, oe), I(v, se), $ && $.m(v, null), ae || (me = [
5065
+ ut(
5066
5066
  n,
5067
5067
  "click",
5068
5068
  /*click_handler_1*/
5069
- e[32]
5069
+ e[33]
5070
5070
  ),
5071
- at(
5071
+ ut(
5072
5072
  B,
5073
5073
  "click",
5074
5074
  /*click_handler_2*/
5075
- e[33]
5075
+ e[34]
5076
5076
  )
5077
- ], ie = !0);
5077
+ ], ae = !0);
5078
5078
  },
5079
- p(N, q) {
5080
- if (q[0] & /*isModalDisplayed*/
5079
+ p(P, W) {
5080
+ if (W[0] & /*isModalDisplayed*/
5081
5081
  16 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
5082
- (N[4] ? "Open" : "")) && R(n, "class", r), q[0] & /*$_*/
5082
+ (P[4] ? "Open" : "")) && M(n, "class", r), W[0] & /*$_*/
5083
5083
  256 && u !== (u = /*$_*/
5084
- N[8]("Title") + "") && Ie(f, u), q[0] & /*balances, formatBalance, getProductType, $_*/
5084
+ P[8]("Title") + "") && Ie(f, u), W[0] & /*balances, formatBalance, getProductType, $_*/
5085
5085
  5380) {
5086
- te = vt(Object.keys(
5086
+ ee = xt(Object.keys(
5087
5087
  /*balances*/
5088
- N[2]
5088
+ P[2]
5089
5089
  ));
5090
5090
  let z;
5091
- for (z = 0; z < te.length; z += 1) {
5092
- const fe = Xn(N, te, z);
5093
- X[z] ? X[z].p(fe, q) : (X[z] = qn(fe), X[z].c(), X[z].m(p, null));
5091
+ for (z = 0; z < ee.length; z += 1) {
5092
+ const Re = zn(P, ee, z);
5093
+ G[z] ? G[z].p(Re, W) : (G[z] = Yn(Re), G[z].c(), G[z].m(d, null));
5094
5094
  }
5095
- for (; z < X.length; z += 1)
5096
- X[z].d(1);
5097
- X.length = te.length;
5095
+ for (; z < G.length; z += 1)
5096
+ G[z].d(1);
5097
+ G.length = ee.length;
5098
5098
  }
5099
- q[0] & /*$_*/
5100
- 256 && Q !== (Q = /*$_*/
5101
- N[8]("DepositButton") + "") && Ie(re, Q), /*balancelimitsbutton*/
5102
- N[0] === "true" ? F ? F.p(N, q) : (F = Yn(N), F.c(), F.m(E, null)) : F && (F.d(1), F = null), q[0] & /*isModalDisplayed*/
5103
- 16 && I !== (I = "ModalContent " + /*isModalDisplayed*/
5104
- (N[4] ? "Open" : "")) && R(a, "class", I), q[0] & /*isModalDisplayed*/
5105
- 16 && k !== (k = "BalanceModal " + /*isModalDisplayed*/
5106
- (N[4] ? "Open" : "")) && R(o, "class", k), q[0] & /*isModalDisplayed*/
5107
- 16 && Z !== (Z = "BalanceModalWrapper " + /*isModalDisplayed*/
5108
- (N[4] ? "Open" : "")) && R(t, "class", Z);
5099
+ W[0] & /*$_*/
5100
+ 256 && K !== (K = /*$_*/
5101
+ P[8]("DepositButton") + "") && Ie(oe, K), /*balancelimitsbutton*/
5102
+ P[0] === "true" ? $ ? $.p(P, W) : ($ = Qn(P), $.c(), $.m(v, null)) : $ && ($.d(1), $ = null), W[0] & /*isModalDisplayed*/
5103
+ 16 && D !== (D = "ModalContent " + /*isModalDisplayed*/
5104
+ (P[4] ? "Open" : "")) && M(a, "class", D), W[0] & /*isModalDisplayed*/
5105
+ 16 && j !== (j = "BalanceModal " + /*isModalDisplayed*/
5106
+ (P[4] ? "Open" : "")) && M(o, "class", j), W[0] & /*isModalDisplayed*/
5107
+ 16 && Y !== (Y = "BalanceModalWrapper " + /*isModalDisplayed*/
5108
+ (P[4] ? "Open" : "")) && M(t, "class", Y);
5109
5109
  },
5110
- d(N) {
5111
- N && ve(t), tr(X, N), F && F.d(), ie = !1, Ye(K);
5110
+ d(P) {
5111
+ P && _e(t), nr(G, P), $ && $.d(), ae = !1, Qe(me);
5112
5112
  }
5113
5113
  };
5114
5114
  }
5115
- function Zn(e) {
5115
+ function qn(e) {
5116
5116
  let t, n, r = (
5117
5117
  /*$_*/
5118
5118
  e[8](
5119
5119
  /*k*/
5120
- e[60]
5120
+ e[61]
5121
5121
  ) + ""
5122
5122
  ), i, o, a = (
5123
5123
  /*getProductType*/
5124
5124
  e[12](
5125
5125
  /*balance*/
5126
- e[63]
5126
+ e[64]
5127
5127
  ) + ""
5128
- ), s, l, u, f, b = (
5128
+ ), s, c, u, f, m = (
5129
5129
  /*formatBalance*/
5130
5130
  e[10](
5131
5131
  /*balance*/
5132
- e[63].amount
5132
+ e[64].amount
5133
5133
  ) + ""
5134
- ), p;
5134
+ ), d;
5135
5135
  return {
5136
5136
  c() {
5137
- t = V("div"), n = V("p"), i = Ce(r), o = Ae(), s = Ce(a), l = Ae(), u = V("p"), f = V("span"), p = Ce(b), R(n, "class", "BalanceModalText"), R(f, "class", "BalanceModalAmount"), R(u, "class", "BalanceModalValue"), R(t, "class", "BalanceModalRowLine");
5137
+ t = X("div"), n = X("p"), i = Te(r), o = Be(), s = Te(a), c = Be(), u = X("p"), f = X("span"), d = Te(m), M(n, "class", "BalanceModalText"), M(f, "class", "BalanceModalAmount"), M(u, "class", "BalanceModalValue"), M(t, "class", "BalanceModalRowLine");
5138
5138
  },
5139
- m(y, E) {
5140
- _e(y, t, E), P(t, n), P(n, i), P(n, o), P(n, s), P(t, l), P(t, u), P(u, f), P(f, p);
5139
+ m(g, v) {
5140
+ Ee(g, t, v), I(t, n), I(n, i), I(n, o), I(n, s), I(t, c), I(t, u), I(u, f), I(f, d);
5141
5141
  },
5142
- p(y, E) {
5143
- E[0] & /*$_, balances*/
5142
+ p(g, v) {
5143
+ v[0] & /*$_, balances*/
5144
5144
  260 && r !== (r = /*$_*/
5145
- y[8](
5145
+ g[8](
5146
5146
  /*k*/
5147
- y[60]
5148
- ) + "") && Ie(i, r), E[0] & /*balances*/
5147
+ g[61]
5148
+ ) + "") && Ie(i, r), v[0] & /*balances*/
5149
5149
  4 && a !== (a = /*getProductType*/
5150
- y[12](
5150
+ g[12](
5151
5151
  /*balance*/
5152
- y[63]
5153
- ) + "") && Ie(s, a), E[0] & /*balances*/
5154
- 4 && b !== (b = /*formatBalance*/
5155
- y[10](
5152
+ g[64]
5153
+ ) + "") && Ie(s, a), v[0] & /*balances*/
5154
+ 4 && m !== (m = /*formatBalance*/
5155
+ g[10](
5156
5156
  /*balance*/
5157
- y[63].amount
5158
- ) + "") && Ie(p, b);
5157
+ g[64].amount
5158
+ ) + "") && Ie(d, m);
5159
5159
  },
5160
- d(y) {
5161
- y && ve(t);
5160
+ d(g) {
5161
+ g && _e(t);
5162
5162
  }
5163
5163
  };
5164
5164
  }
5165
- function qn(e) {
5166
- let t, n, r = vt(
5165
+ function Yn(e) {
5166
+ let t, n, r = xt(
5167
5167
  /*balances*/
5168
5168
  e[2][
5169
5169
  /*k*/
5170
- e[60]
5170
+ e[61]
5171
5171
  ]
5172
5172
  ), i = [];
5173
5173
  for (let o = 0; o < r.length; o += 1)
5174
- i[o] = Zn(zn(e, r, o));
5174
+ i[o] = qn(Wn(e, r, o));
5175
5175
  return {
5176
5176
  c() {
5177
- t = V("div");
5177
+ t = X("div");
5178
5178
  for (let o = 0; o < i.length; o += 1)
5179
5179
  i[o].c();
5180
- n = Ae(), R(t, "class", "BalanceModalRowBoth");
5180
+ n = Be(), M(t, "class", "BalanceModalRowBoth");
5181
5181
  },
5182
5182
  m(o, a) {
5183
- _e(o, t, a);
5183
+ Ee(o, t, a);
5184
5184
  for (let s = 0; s < i.length; s += 1)
5185
5185
  i[s] && i[s].m(t, null);
5186
- P(t, n);
5186
+ I(t, n);
5187
5187
  },
5188
5188
  p(o, a) {
5189
5189
  if (a[0] & /*formatBalance, balances, getProductType, $_*/
5190
5190
  5380) {
5191
- r = vt(
5191
+ r = xt(
5192
5192
  /*balances*/
5193
5193
  o[2][
5194
5194
  /*k*/
5195
- o[60]
5195
+ o[61]
5196
5196
  ]
5197
5197
  );
5198
5198
  let s;
5199
5199
  for (s = 0; s < r.length; s += 1) {
5200
- const l = zn(o, r, s);
5201
- i[s] ? i[s].p(l, a) : (i[s] = Zn(l), i[s].c(), i[s].m(t, n));
5200
+ const c = Wn(o, r, s);
5201
+ i[s] ? i[s].p(c, a) : (i[s] = qn(c), i[s].c(), i[s].m(t, n));
5202
5202
  }
5203
5203
  for (; s < i.length; s += 1)
5204
5204
  i[s].d(1);
@@ -5206,25 +5206,25 @@ function qn(e) {
5206
5206
  }
5207
5207
  },
5208
5208
  d(o) {
5209
- o && ve(t), tr(i, o);
5209
+ o && _e(t), nr(i, o);
5210
5210
  }
5211
5211
  };
5212
5212
  }
5213
- function Yn(e) {
5213
+ function Qn(e) {
5214
5214
  let t, n = (
5215
5215
  /*$_*/
5216
5216
  e[8]("LimitsButton") + ""
5217
5217
  ), r, i, o;
5218
5218
  return {
5219
5219
  c() {
5220
- t = V("button"), r = Ce(n), R(t, "class", "BalanceModalAction LimitsButton");
5220
+ t = X("button"), r = Te(n), M(t, "class", "BalanceModalAction LimitsButton");
5221
5221
  },
5222
5222
  m(a, s) {
5223
- _e(a, t, s), P(t, r), i || (o = at(
5223
+ Ee(a, t, s), I(t, r), i || (o = ut(
5224
5224
  t,
5225
5225
  "click",
5226
5226
  /*click_handler_3*/
5227
- e[34]
5227
+ e[35]
5228
5228
  ), i = !0);
5229
5229
  },
5230
5230
  p(a, s) {
@@ -5233,27 +5233,27 @@ function Yn(e) {
5233
5233
  a[8]("LimitsButton") + "") && Ie(r, n);
5234
5234
  },
5235
5235
  d(a) {
5236
- a && ve(t), i = !1, o();
5236
+ a && _e(t), i = !1, o();
5237
5237
  }
5238
5238
  };
5239
5239
  }
5240
- function Qn(e) {
5240
+ function Jn(e) {
5241
5241
  let t, n, r;
5242
5242
  return {
5243
5243
  c() {
5244
- t = V("button"), R(t, "class", "ShowBalanceModalOverlay");
5244
+ t = X("button"), M(t, "class", "ShowBalanceModalOverlay");
5245
5245
  },
5246
5246
  m(i, o) {
5247
- _e(i, t, o), n || (r = at(
5247
+ Ee(i, t, o), n || (r = ut(
5248
5248
  t,
5249
5249
  "click",
5250
5250
  /*click_handler_4*/
5251
- e[35]
5251
+ e[36]
5252
5252
  ), n = !0);
5253
5253
  },
5254
- p: ye,
5254
+ p: ve,
5255
5255
  d(i) {
5256
- i && ve(t), n = !1, r();
5256
+ i && _e(t), n = !1, r();
5257
5257
  }
5258
5258
  };
5259
5259
  }
@@ -5265,41 +5265,41 @@ function xa(e) {
5265
5265
  u[3] ? Ea : _a
5266
5266
  );
5267
5267
  }
5268
- let a = o(e), s = a(e), l = (
5268
+ let a = o(e), s = a(e), c = (
5269
5269
  /*showBalance*/
5270
- e[5] && Qn(e)
5270
+ e[5] && Jn(e)
5271
5271
  );
5272
5272
  return {
5273
5273
  c() {
5274
- t = V("div"), n = V("div"), s.c(), i = Ae(), l && l.c(), R(n, "class", r = "ShowBalance " + /*mobileView*/
5274
+ t = X("div"), n = X("div"), s.c(), i = Be(), c && c.c(), M(n, "class", r = "ShowBalance " + /*mobileView*/
5275
5275
  (e[6] ? "Mobile" : ""));
5276
5276
  },
5277
5277
  m(u, f) {
5278
- _e(u, t, f), P(t, n), s.m(n, null), P(t, i), l && l.m(t, null), e[36](t);
5278
+ Ee(u, t, f), I(t, n), s.m(n, null), I(t, i), c && c.m(t, null), e[37](t);
5279
5279
  },
5280
5280
  p(u, f) {
5281
5281
  a === (a = o(u)) && s ? s.p(u, f) : (s.d(1), s = a(u), s && (s.c(), s.m(n, null))), f[0] & /*mobileView*/
5282
5282
  64 && r !== (r = "ShowBalance " + /*mobileView*/
5283
- (u[6] ? "Mobile" : "")) && R(n, "class", r), /*showBalance*/
5284
- u[5] ? l ? l.p(u, f) : (l = Qn(u), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
5283
+ (u[6] ? "Mobile" : "")) && M(n, "class", r), /*showBalance*/
5284
+ u[5] ? c ? c.p(u, f) : (c = Jn(u), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
5285
5285
  },
5286
- i: ye,
5287
- o: ye,
5286
+ i: ve,
5287
+ o: ve,
5288
5288
  d(u) {
5289
- u && ve(t), s.d(), l && l.d(), e[36](null);
5289
+ u && _e(t), s.d(), c && c.d(), e[37](null);
5290
5290
  }
5291
5291
  };
5292
5292
  }
5293
5293
  function wa(e, t, n) {
5294
5294
  let r;
5295
- jr(e, ta, (h) => n(8, r = h));
5296
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { lang: s = "en" } = t, { mbsource: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: p = "gm16" } = t, { displaybalanceoption: y = "All" } = t, { totalcalculationmode: E = "totalCashAmount" } = t, { primarybalancemode: B } = t, { balancelimitsbutton: Q = "false" } = t, { hideproducttype: re = "" } = t, { currencylocale: oe = "en" } = t, { currencydisplay: I = "symbol" } = t, { maximumfractiondigits: k = "2" } = t, { minimumfractiondigits: Z = "0" } = t, { customdisplayformat: ie = "" } = t, K, te = !0, X = !1, F = !1, N = !1, q = !1, z = window.navigator.userAgent, fe, He = "", me = [], le, Oe = "0";
5297
- const _ = {}, Le = ["totalCashAmount", "totalRealAmount"], Ee = () => {
5298
- fetch(b).then((h) => h.json()).then((h) => Object.keys(h).forEach((d) => In(d, h[d]))).catch((h) => console.log(h));
5295
+ jr(e, ta, (l) => n(8, r = l));
5296
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: a = "" } = t, { lang: s = "en" } = t, { mbsource: c = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: m = "" } = t, { gmversion: d = "gm16" } = t, { displaybalanceoption: g = "All" } = t, { totalcalculationmode: v = "totalCashAmount" } = t, { primarybalancemode: B } = t, { balancelimitsbutton: K = "false" } = t, { hideproducttype: oe = "" } = t, { currencylocale: se = "en" } = t, { currencydisplay: D = "symbol" } = t, { maximumfractiondigits: j = "2" } = t, { minimumfractiondigits: Y = "0" } = t, { customdisplayformat: ae = "" } = t, { alwaysshowdecimals: me = "true" } = t, ee, G = !0, $ = !1, P = !1, W = !1, z = !1, Re = window.navigator.userAgent, Ae, xe = "", re = [], be, Me = "0";
5297
+ const _ = {}, fe = ["totalCashAmount", "totalRealAmount"], tt = () => {
5298
+ fetch(m).then((l) => l.json()).then((l) => Object.keys(l).forEach((y) => Dn(y, l[y]))).catch((l) => console.log(l));
5299
5299
  };
5300
- Object.keys(Dn).forEach((h) => In(h, Dn[h]));
5301
- const xe = (h) => {
5302
- switch (h) {
5300
+ Object.keys(Un).forEach((l) => Dn(l, Un[l]));
5301
+ const Ce = (l) => {
5302
+ switch (l) {
5303
5303
  case "balance":
5304
5304
  window.postMessage(
5305
5305
  {
@@ -5307,10 +5307,10 @@ function wa(e, t, n) {
5307
5307
  status: "open"
5308
5308
  },
5309
5309
  window.location.href
5310
- ), n(5, N = !0), setTimeout(() => n(4, X = !0), 150);
5310
+ ), n(5, W = !0), setTimeout(() => n(4, $ = !0), 150);
5311
5311
  break;
5312
5312
  case "closebalance":
5313
- n(4, X = !1), window.postMessage(
5313
+ n(4, $ = !1), window.postMessage(
5314
5314
  {
5315
5315
  type: "BalanceModalStatus",
5316
5316
  status: "close"
@@ -5318,67 +5318,73 @@ function wa(e, t, n) {
5318
5318
  window.location.href
5319
5319
  ), setTimeout(
5320
5320
  () => {
5321
- n(5, N = !1);
5321
+ n(5, W = !1);
5322
5322
  },
5323
5323
  150
5324
5324
  );
5325
5325
  break;
5326
5326
  }
5327
- }, Fe = (h) => {
5328
- if (ie)
5329
- return Ht(h);
5330
- const d = oe || s, v = {
5327
+ }, nt = (l) => {
5328
+ if (ae)
5329
+ return Rt(l);
5330
+ const y = se || s, w = {
5331
5331
  style: "currency",
5332
- currency: He,
5332
+ currency: xe,
5333
5333
  useGrouping: !0,
5334
- currencyDisplay: I || "code",
5335
- maximumFractionDigits: k === "" || isNaN(Number(k)) ? 2 : Number(k),
5336
- minimumFractionDigits: Z === "" || isNaN(Number(Z)) ? 0 : Number(Z)
5334
+ currencyDisplay: D || "code",
5335
+ maximumFractionDigits: j === "" || isNaN(Number(j)) ? 2 : Number(j),
5336
+ minimumFractionDigits: Y === "" || isNaN(Number(Y)) ? 0 : Number(Y)
5337
5337
  };
5338
- return new Intl.NumberFormat(d, v).format(h);
5339
- }, Ht = (h) => {
5340
- const d = [];
5341
- let v = "";
5342
- for (const T of ie)
5343
- switch (T) {
5338
+ return new Intl.NumberFormat(y, w).format(l);
5339
+ }, Rt = (l) => {
5340
+ const y = [];
5341
+ let w = "";
5342
+ for (const A of ae)
5343
+ switch (A) {
5344
5344
  default:
5345
- v += T;
5345
+ w += A;
5346
5346
  break;
5347
5347
  case "{":
5348
- v && d.push(v), v = "";
5348
+ w && y.push(w), w = "";
5349
5349
  break;
5350
5350
  case "}":
5351
- const [U, H] = v.split("|");
5352
- if (v = "", U.toLowerCase() === "currency")
5353
- v = He;
5354
- else if (U.toLowerCase() === "amount") {
5355
- let x = ",", j = ".", he = 2;
5356
- H && (H[0] !== " " && (x = H[0]), H[1] !== " " && (j = H[1]), H[2] !== " " && !isNaN(Number(H[2])) && (he = Number(H[2])));
5357
- let [Se, be] = String(Math.floor(h * Dt(10, he)) / Dt(10, he)).split(".");
5358
- v += Se[0];
5359
- for (let Be = 1; Be < Se.length; ++Be)
5360
- (Se.length - Be) % 3 === 0 ? v += x + Se[Be] : v += Se[Be];
5361
- be && (v += j + be);
5351
+ const [O, C] = w.split("|");
5352
+ if (w = "", O.toLowerCase() === "currency")
5353
+ w = xe;
5354
+ else if (O.toLowerCase() === "amount") {
5355
+ let x = ",", Q = ".", ge = 2;
5356
+ C && (C[0] !== " " && (x = C[0]), C[1] !== " " && (Q = C[1]), C[2] !== " " && !isNaN(Number(C[2])) && (ge = Number(C[2])));
5357
+ let [le, je] = String(Math.floor(l * Ut(10, ge)) / Ut(10, ge)).split(".");
5358
+ w += le[0];
5359
+ for (let Ue = 1; Ue < le.length; ++Ue)
5360
+ (le.length - Ue) % 3 === 0 ? w += x + le[Ue] : w += le[Ue];
5361
+ let J = je || "";
5362
+ const it = me === "true", we = Number(j);
5363
+ if (it)
5364
+ J = J.padEnd(we || 2, "0").substring(0, we);
5365
+ else if (!J)
5366
+ break;
5367
+ w += Q + J;
5362
5368
  }
5363
- v && d.push(v), v = "";
5369
+ w && y.push(w), w = "";
5364
5370
  break;
5365
5371
  }
5366
- return d.push(v), d.join("");
5367
- }, Ot = () => Gt(this, null, function* () {
5368
- var d, v, T;
5369
- n(3, te = !0);
5370
- const h = new URL(`${a}/v1/player/${i}/account`);
5372
+ return y.push(w), y.join("");
5373
+ }, Mt = () => jt(this, null, function* () {
5374
+ var y, w, A;
5375
+ n(3, G = !0);
5376
+ const l = new URL(`${a}/v1/player/${i}/account`);
5371
5377
  try {
5372
- const U = yield fetch(h, {
5378
+ const O = yield fetch(l, {
5373
5379
  method: "GET",
5374
5380
  headers: { "X-SessionID": o }
5375
- }), H = yield U.json();
5376
- if (U.ok)
5377
- window.postMessage({ type: "BalancedFetched" }, window.location.href), me = H.items, He = (d = me.find((x) => x.displayName === "Casino")) == null ? void 0 : d.currency, n(2, _.Total = [{ amount: H.totalAmount[He] }], _), n(
5381
+ }), C = yield O.json();
5382
+ if (O.ok)
5383
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), re = C.items, xe = (y = re.find((x) => x.displayName === "Casino")) == null ? void 0 : y.currency, n(2, _.Total = [{ amount: C.totalAmount[xe] }], _), n(
5378
5384
  2,
5379
5385
  _.Real = [
5380
5386
  {
5381
- amount: (v = me.find((x) => x.displayName === "Casino")) == null ? void 0 : v.balanceAmount
5387
+ amount: (w = re.find((x) => x.displayName === "Casino")) == null ? void 0 : w.balanceAmount
5382
5388
  }
5383
5389
  ],
5384
5390
  _
@@ -5386,46 +5392,46 @@ function wa(e, t, n) {
5386
5392
  2,
5387
5393
  _.Bonus = [
5388
5394
  {
5389
- amount: (T = me.find((x) => x.displayName === "UBS")) == null ? void 0 : T.balanceAmount
5395
+ amount: (A = re.find((x) => x.displayName === "UBS")) == null ? void 0 : A.balanceAmount
5390
5396
  }
5391
5397
  ],
5392
5398
  _
5393
5399
  );
5394
5400
  else
5395
5401
  throw new Error("Failed to fetch balance data !");
5396
- } catch (U) {
5397
- console.log("Balance error: ", U);
5402
+ } catch (O) {
5403
+ console.log("Balance error: ", O);
5398
5404
  } finally {
5399
- n(3, te = !1);
5405
+ n(3, G = !1);
5400
5406
  }
5401
- }), Lt = () => {
5402
- n(3, te = !0);
5403
- const h = new URL(`${a}/v2/player/${i}/balance`), d = new Headers();
5404
- d.append("X-SessionID", o), fetch(h, { method: "GET", headers: d }).then((T) => T.json()).then((T) => {
5405
- T[E] || n(13, E = Le[0]);
5406
- const U = T.items.find((x) => x.type === "Real" && x.walletAccountType === "Ordinary");
5407
- if (He = U.currency, F = !!U.productType, n(2, _.Total = [{ amount: 0 }], _), n(2, _.Real = [], _), n(2, _.Bonus = [], _), n(2, _.Credit = [], _), !F) {
5408
- le = {
5407
+ }), Pt = () => {
5408
+ n(3, G = !0);
5409
+ const l = new URL(`${a}/v2/player/${i}/balance`), y = new Headers();
5410
+ y.append("X-SessionID", o), fetch(l, { method: "GET", headers: y }).then((A) => A.json()).then((A) => {
5411
+ A[v] || n(13, v = fe[0]);
5412
+ const O = A.items.find((x) => x.type === "Real" && x.walletAccountType === "Ordinary");
5413
+ if (xe = O.currency, P = !!O.productType, n(2, _.Total = [{ amount: 0 }], _), n(2, _.Real = [], _), n(2, _.Bonus = [], _), n(2, _.Credit = [], _), !P) {
5414
+ be = {
5409
5415
  lastOrdinaryAfterAmount: 0,
5410
5416
  showCreditLineAfterAmount: !1
5411
- }, n(2, _.Total[0].amount = T[E][He], _);
5412
- for (const x of T.items)
5417
+ }, n(2, _.Total[0].amount = A[v][xe], _);
5418
+ for (const x of A.items)
5413
5419
  switch (x.type) {
5414
5420
  case "Bonus":
5415
5421
  _.Bonus.length === 0 ? _.Bonus.push({ amount: x.amount }) : n(2, _.Bonus[0].amount += x.amount, _);
5416
5422
  break;
5417
5423
  case "Real":
5418
- if (x.creditLine && _.Credit.length === 0 && _.Credit.push({ amount: x.creditLine }), E === "totalRealAmount")
5424
+ if (x.creditLine && _.Credit.length === 0 && _.Credit.push({ amount: x.creditLine }), v === "totalRealAmount")
5419
5425
  continue;
5420
5426
  _.Real.length === 0 ? _.Real.push({ amount: x.amount }) : n(2, _.Real[0].amount += x.amount, _);
5421
5427
  break;
5422
5428
  }
5423
- for (const [x, j] of Object.entries(_))
5424
- j.length < 1 && delete _[x];
5425
- n(3, te = !1);
5429
+ for (const [x, Q] of Object.entries(_))
5430
+ Q.length < 1 && delete _[x];
5431
+ n(3, G = !1);
5426
5432
  return;
5427
5433
  }
5428
- le = {
5434
+ be = {
5429
5435
  Casino: {
5430
5436
  lastOrdinaryAfterAmount: 0,
5431
5437
  showCreditLineAfterAmount: !1
@@ -5435,13 +5441,13 @@ function wa(e, t, n) {
5435
5441
  showCreditLineAfterAmount: !1
5436
5442
  }
5437
5443
  };
5438
- let H = T.items;
5439
- y && y !== "All" && (H = T.items.filter((x) => x.productType === y));
5440
- for (const x of H) {
5441
- let j;
5444
+ let C = A.items;
5445
+ g && g !== "All" && (C = A.items.filter((x) => x.productType === g));
5446
+ for (const x of C) {
5447
+ let Q;
5442
5448
  switch (x.type) {
5443
5449
  case "Bonus":
5444
- j = _.Bonus.findIndex((he) => he.productType === x.productType), j > 0 ? n(2, _.Bonus[j].amount += x.amount, _) : _.Bonus.push({
5450
+ Q = _.Bonus.findIndex((ge) => ge.productType === x.productType), Q > 0 ? n(2, _.Bonus[Q].amount += x.amount, _) : _.Bonus.push({
5445
5451
  amount: x.amount,
5446
5452
  productType: x.productType
5447
5453
  });
@@ -5450,109 +5456,109 @@ function wa(e, t, n) {
5450
5456
  x.creditLine && _.Credit.push({
5451
5457
  amount: x.creditLine,
5452
5458
  productType: x.productType
5453
- }), j = _.Real.findIndex((he) => he.productType === x.productType), j > 0 ? n(2, _.Real[j].amount += x.amount, _) : _.Real.push({
5459
+ }), Q = _.Real.findIndex((ge) => ge.productType === x.productType), Q > 0 ? n(2, _.Real[Q].amount += x.amount, _) : _.Real.push({
5454
5460
  amount: x.amount,
5455
5461
  productType: x.productType
5456
5462
  });
5457
5463
  break;
5458
5464
  }
5459
5465
  }
5460
- ce();
5461
- for (const [x, j] of Object.entries(_))
5462
- j.length < 1 && delete _[x];
5463
- window.postMessage({ type: "playerBalanceInfo", balance: T }, window.location.href), n(3, te = !1);
5464
- }).catch((T) => {
5465
- throw n(3, te = !1), console.log("Balance fetch error", T), new Error("Failed to fetch balance data!");
5466
+ pt();
5467
+ for (const [x, Q] of Object.entries(_))
5468
+ Q.length < 1 && delete _[x];
5469
+ window.postMessage({ type: "playerBalanceInfo", balance: A }, window.location.href), n(3, G = !1);
5470
+ }).catch((A) => {
5471
+ throw n(3, G = !1), console.log("Balance fetch error", A), new Error("Failed to fetch balance data!");
5466
5472
  });
5467
- }, et = () => {
5468
- if (fe && fe.close(), o.length < 1)
5473
+ }, De = () => {
5474
+ if (Ae && Ae.close(), o.length < 1)
5469
5475
  return;
5470
- let h, d;
5471
- switch (p) {
5476
+ let l, y;
5477
+ switch (d) {
5472
5478
  case "gm16":
5473
- h = new URL(`${a}/v2/player/${i}/information/updates`), d = (U) => Rt(U);
5479
+ l = new URL(`${a}/v2/player/${i}/information/updates`), y = (O) => Nt(O);
5474
5480
  break;
5475
5481
  case "gmcore":
5476
- h = new URL(`${a}/v1/player/${i}/balance/updates`), d = (U) => tt(U);
5482
+ l = new URL(`${a}/v1/player/${i}/balance/updates`), y = (O) => Pe(O);
5477
5483
  break;
5478
5484
  }
5479
- const v = {
5485
+ const w = {
5480
5486
  accept: "text/event-stream",
5481
5487
  "X-SessionId": o
5482
- }, T = new ra.EventSourcePolyfill(h, { headers: v });
5483
- fe = T, T.addEventListener("message", d);
5484
- }, Ge = (h) => {
5485
- let d;
5488
+ }, A = new ra.EventSourcePolyfill(l, { headers: w });
5489
+ Ae = A, A.addEventListener("message", y);
5490
+ }, Ge = (l) => {
5491
+ let y;
5486
5492
  try {
5487
- d = JSON.parse(h);
5488
- } catch (v) {
5489
- console.log("Balance stream failed: ", v);
5493
+ y = JSON.parse(l);
5494
+ } catch (w) {
5495
+ console.log("Balance stream failed: ", w);
5490
5496
  return;
5491
5497
  }
5492
- return d;
5493
- }, tt = (h) => {
5494
- var U, H;
5495
- const d = Ge(h.data);
5496
- if (!d) {
5497
- et();
5498
+ return y;
5499
+ }, Pe = (l) => {
5500
+ var O, C;
5501
+ const y = Ge(l.data);
5502
+ if (!y) {
5503
+ De();
5498
5504
  return;
5499
5505
  }
5500
- let v = "0";
5501
- const T = d.balanceChange;
5502
- me = me.map((x) => (T && T[x.id] && (x = Ft(Ut({}, x), {
5503
- balanceAmount: T[x.id].afterAmount
5504
- })), v = (parseFloat(x == null ? void 0 : x.balanceAmount) + parseFloat(v)).toString(), x)), n(2, _.Real = [{ amount: (U = me[0]) == null ? void 0 : U.balanceAmount }], _), n(2, _.Bonus = [{ amount: (H = me[1]) == null ? void 0 : H.balanceAmount }], _), n(2, _.Total = [{ amount: Number(v) }], _);
5505
- }, we = (h, d, v) => {
5506
- let T = null;
5507
- switch (v.walletAccountType) {
5506
+ let w = "0";
5507
+ const A = y.balanceChange;
5508
+ re = re.map((x) => (A && A[x.id] && (x = Gt(Ft({}, x), {
5509
+ balanceAmount: A[x.id].afterAmount
5510
+ })), w = (parseFloat(x == null ? void 0 : x.balanceAmount) + parseFloat(w)).toString(), x)), n(2, _.Real = [{ amount: (O = re[0]) == null ? void 0 : O.balanceAmount }], _), n(2, _.Bonus = [{ amount: (C = re[1]) == null ? void 0 : C.balanceAmount }], _), n(2, _.Total = [{ amount: Number(w) }], _);
5511
+ }, ue = (l, y, w) => {
5512
+ let A = null;
5513
+ switch (w.walletAccountType) {
5508
5514
  case "Ordinary":
5509
- (v.afterAmount !== v.affectedAmount || d.lastOrdinaryAfterAmount === 0) && (d.lastOrdinaryAfterAmount = v.afterAmount, d.showCreditLineAfterAmount || (T = v.afterAmount));
5515
+ (w.afterAmount !== w.affectedAmount || y.lastOrdinaryAfterAmount === 0) && (y.lastOrdinaryAfterAmount = w.afterAmount, y.showCreditLineAfterAmount || (A = w.afterAmount));
5510
5516
  break;
5511
5517
  case "CreditLine":
5512
- v.afterAmount !== 0 ? (T = v.afterAmount, d.showCreditLineAfterAmount = !0) : (T = d.lastOrdinaryAfterAmount, d.showCreditLineAfterAmount = !1);
5518
+ w.afterAmount !== 0 ? (A = w.afterAmount, y.showCreditLineAfterAmount = !0) : (A = y.lastOrdinaryAfterAmount, y.showCreditLineAfterAmount = !1);
5513
5519
  break;
5514
5520
  default:
5515
- T = v.afterAmount;
5521
+ A = w.afterAmount;
5516
5522
  }
5517
- return T === null ? h : T;
5518
- }, ce = () => {
5519
- switch (E) {
5523
+ return A === null ? l : A;
5524
+ }, pt = () => {
5525
+ switch (v) {
5520
5526
  case "totalCashAmount":
5521
- let h = 0;
5522
- for (const v of ["Real", "Bonus"])
5523
- for (const T of _[v])
5524
- h += Math.max(T.amount, 0);
5525
- n(2, _.Total[0].amount = h, _);
5527
+ let l = 0;
5528
+ for (const w of ["Real", "Bonus"])
5529
+ for (const A of _[w])
5530
+ l += Math.max(A.amount, 0);
5531
+ n(2, _.Total[0].amount = l, _);
5526
5532
  break;
5527
5533
  case "totalRealAmount":
5528
- if (!F)
5534
+ if (!P)
5529
5535
  return;
5530
- let d = 0;
5531
- for (const v of _.Real)
5532
- d += v.amount;
5533
- n(2, _.Total[0].amount = d, _);
5536
+ let y = 0;
5537
+ for (const w of _.Real)
5538
+ y += w.amount;
5539
+ n(2, _.Total[0].amount = y, _);
5534
5540
  }
5535
- }, Rt = (h) => {
5536
- const d = Ge(h.data);
5537
- if (!d) {
5538
- et();
5541
+ }, Nt = (l) => {
5542
+ const y = Ge(l.data);
5543
+ if (!y) {
5544
+ De();
5539
5545
  return;
5540
5546
  }
5541
- if (Mt(d == null ? void 0 : d.type) || d.type !== "BALANCE_UPDATE_V2")
5547
+ if (mt(y == null ? void 0 : y.type) || y.type !== "BALANCE_UPDATE_V2")
5542
5548
  return;
5543
- const v = d.body.balanceChange;
5544
- for (const [T, U] of Object.entries(v))
5545
- if (E === "totalRealAmount" && T === "Real" && !F && n(2, _.Total[0].amount = we(_.Total[0].amount, le, U), _), !!_[T])
5546
- for (const H of _[T]) {
5547
- if (!F) {
5548
- H.amount = T === "Real" ? we(H.amount, le, U) : U.afterAmount;
5549
+ const w = y.body.balanceChange;
5550
+ for (const [A, O] of Object.entries(w))
5551
+ if (v === "totalRealAmount" && A === "Real" && !P && n(2, _.Total[0].amount = ue(_.Total[0].amount, be, O), _), !!_[A])
5552
+ for (const C of _[A]) {
5553
+ if (!P) {
5554
+ C.amount = A === "Real" ? ue(C.amount, be, O) : O.afterAmount;
5549
5555
  continue;
5550
5556
  }
5551
- U.productType === H.productType && (H.amount = T === "Real" ? we(H.amount, le[H.productType], U) : U.afterAmount);
5557
+ O.productType === C.productType && (C.amount = A === "Real" ? ue(C.amount, be[C.productType], O) : O.afterAmount);
5552
5558
  }
5553
- ce();
5554
- }, nt = (h) => {
5555
- switch (xe("closebalance"), h) {
5559
+ pt();
5560
+ }, rt = (l) => {
5561
+ switch (Ce("closebalance"), l) {
5556
5562
  case "deposit":
5557
5563
  window.postMessage({ type: "GoToDeposit" }, window.location.href);
5558
5564
  break;
@@ -5561,101 +5567,102 @@ function wa(e, t, n) {
5561
5567
  break;
5562
5568
  }
5563
5569
  typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5564
- }, Mt = (h) => h === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, ft = () => {
5565
- Le.includes(E) || (console.error(`Unsupported value ('${E}') for totalcalculationmode parameter. Only the following values are supported ${Le}. Using default value ('${Le[0]}').`), n(13, E = Le[0]));
5566
- }, c = () => {
5567
- switch (na(s), ft(), p) {
5570
+ }, mt = (l) => l === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, h = () => {
5571
+ fe.includes(v) || (console.error(`Unsupported value ('${v}') for totalcalculationmode parameter. Only the following values are supported ${fe}. Using default value ('${fe[0]}').`), n(13, v = fe[0]));
5572
+ }, b = () => {
5573
+ switch (na(s), h(), d) {
5568
5574
  case "gmcore":
5569
- Ot();
5575
+ Mt();
5570
5576
  break;
5571
5577
  case "gm16":
5572
- Lt();
5578
+ Pt();
5573
5579
  break;
5574
5580
  default:
5575
- throw Error(`Invalid apiversion attribute: ${p}`);
5581
+ throw Error(`Invalid apiversion attribute: ${d}`);
5576
5582
  }
5577
- }, g = (h) => {
5578
- const { data: { type: d } = {} } = h || {};
5579
- switch (d) {
5583
+ }, E = (l) => {
5584
+ const { data: { type: y } = {} } = l || {};
5585
+ switch (y) {
5580
5586
  case "LogoutSuccessfull":
5581
- fe.close();
5587
+ Ae.close();
5582
5588
  break;
5583
5589
  case "CloseBalance":
5584
- xe("closebalance");
5590
+ Ce("closebalance");
5585
5591
  break;
5586
5592
  }
5587
- }, w = () => {
5593
+ }, p = () => {
5588
5594
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5589
- }, m = (h) => {
5590
- const d = re.split(",").map((v) => v.trim());
5591
- return !h.productType || d.includes(h.productType) ? "" : r(h.productType);
5595
+ }, T = (l) => {
5596
+ const y = oe.split(",").map((w) => w.trim());
5597
+ return !l.productType || y.includes(l.productType) ? "" : r(l.productType);
5592
5598
  };
5593
- qr(() => (window.addEventListener("message", g, !1), n(6, q = ya(z)), () => {
5594
- window.removeEventListener("message", g), fe && fe.close();
5599
+ qr(() => (window.addEventListener("message", E, !1), n(6, z = ya(Re)), () => {
5600
+ window.removeEventListener("message", E), Ae && Ae.close();
5595
5601
  }));
5596
- const A = () => xe("balance"), S = () => xe("closebalance"), C = () => nt("deposit"), G = () => nt("limits"), O = () => xe("closebalance");
5597
- function D(h) {
5598
- qt[h ? "unshift" : "push"](() => {
5599
- K = h, n(1, K);
5602
+ const S = () => Ce("balance"), H = () => Ce("closebalance"), k = () => rt("deposit"), L = () => rt("limits"), U = () => Ce("closebalance");
5603
+ function F(l) {
5604
+ Yt[l ? "unshift" : "push"](() => {
5605
+ ee = l, n(1, ee);
5600
5606
  });
5601
5607
  }
5602
- return e.$$set = (h) => {
5603
- "userid" in h && n(14, i = h.userid), "session" in h && n(15, o = h.session), "endpoint" in h && n(16, a = h.endpoint), "lang" in h && n(17, s = h.lang), "mbsource" in h && n(18, l = h.mbsource), "clientstyling" in h && n(19, u = h.clientstyling), "clientstylingurl" in h && n(20, f = h.clientstylingurl), "translationurl" in h && n(21, b = h.translationurl), "gmversion" in h && n(22, p = h.gmversion), "displaybalanceoption" in h && n(23, y = h.displaybalanceoption), "totalcalculationmode" in h && n(13, E = h.totalcalculationmode), "primarybalancemode" in h && n(24, B = h.primarybalancemode), "balancelimitsbutton" in h && n(0, Q = h.balancelimitsbutton), "hideproducttype" in h && n(25, re = h.hideproducttype), "currencylocale" in h && n(26, oe = h.currencylocale), "currencydisplay" in h && n(27, I = h.currencydisplay), "maximumfractiondigits" in h && n(28, k = h.maximumfractiondigits), "minimumfractiondigits" in h && n(29, Z = h.minimumfractiondigits), "customdisplayformat" in h && n(30, ie = h.customdisplayformat);
5608
+ return e.$$set = (l) => {
5609
+ "userid" in l && n(14, i = l.userid), "session" in l && n(15, o = l.session), "endpoint" in l && n(16, a = l.endpoint), "lang" in l && n(17, s = l.lang), "mbsource" in l && n(18, c = l.mbsource), "clientstyling" in l && n(19, u = l.clientstyling), "clientstylingurl" in l && n(20, f = l.clientstylingurl), "translationurl" in l && n(21, m = l.translationurl), "gmversion" in l && n(22, d = l.gmversion), "displaybalanceoption" in l && n(23, g = l.displaybalanceoption), "totalcalculationmode" in l && n(13, v = l.totalcalculationmode), "primarybalancemode" in l && n(24, B = l.primarybalancemode), "balancelimitsbutton" in l && n(0, K = l.balancelimitsbutton), "hideproducttype" in l && n(25, oe = l.hideproducttype), "currencylocale" in l && n(26, se = l.currencylocale), "currencydisplay" in l && n(27, D = l.currencydisplay), "maximumfractiondigits" in l && n(28, j = l.maximumfractiondigits), "minimumfractiondigits" in l && n(29, Y = l.minimumfractiondigits), "customdisplayformat" in l && n(30, ae = l.customdisplayformat), "alwaysshowdecimals" in l && n(31, me = l.alwaysshowdecimals);
5604
5610
  }, e.$$.update = () => {
5605
5611
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5606
- 12828672 && a && i && o && s && p && y && c(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5607
- 4308992 && a && i && o && p && et(), e.$$.dirty[0] & /*translationurl*/
5608
- 2097152 && b && Ee(), e.$$.dirty[0] & /*balances*/
5609
- 4 && _.Total && w(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5610
- 524290 && u && K && li(K, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5611
- 1048578 && f && K && ci(K, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5612
- 262146 && l && K && hi(K, `${l}.Style`), e.$$.dirty[0] & /*primarybalancemode, balances*/
5613
- 16777220 && n(7, Oe = (() => {
5612
+ 12828672 && a && i && o && s && d && g && b(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5613
+ 4308992 && a && i && o && d && De(), e.$$.dirty[0] & /*translationurl*/
5614
+ 2097152 && m && tt(), e.$$.dirty[0] & /*balances*/
5615
+ 4 && _.Total && p(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5616
+ 524290 && u && ee && li(ee, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5617
+ 1048578 && f && ee && ci(ee, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5618
+ 262146 && c && ee && hi(ee, `${c}.Style`), e.$$.dirty[0] & /*primarybalancemode, balances*/
5619
+ 16777220 && n(7, Me = (() => {
5614
5620
  switch (B) {
5615
5621
  case "Real":
5616
- return _.Real ? Fe(_.Real[0].amount) : "0";
5622
+ return _.Real ? nt(_.Real[0].amount) : "0";
5617
5623
  default:
5618
- return _.Total ? Fe(_.Total[0].amount) : "0";
5624
+ return _.Total ? nt(_.Total[0].amount) : "0";
5619
5625
  }
5620
5626
  })());
5621
5627
  }, [
5622
- Q,
5623
5628
  K,
5629
+ ee,
5624
5630
  _,
5625
- te,
5626
- X,
5627
- N,
5628
- q,
5629
- Oe,
5631
+ G,
5632
+ $,
5633
+ W,
5634
+ z,
5635
+ Me,
5630
5636
  r,
5631
- xe,
5632
- Fe,
5637
+ Ce,
5633
5638
  nt,
5634
- m,
5635
- E,
5639
+ rt,
5640
+ T,
5641
+ v,
5636
5642
  i,
5637
5643
  o,
5638
5644
  a,
5639
5645
  s,
5640
- l,
5646
+ c,
5641
5647
  u,
5642
5648
  f,
5643
- b,
5644
- p,
5645
- y,
5649
+ m,
5650
+ d,
5651
+ g,
5646
5652
  B,
5647
- re,
5648
5653
  oe,
5649
- I,
5650
- k,
5651
- Z,
5652
- ie,
5653
- A,
5654
+ se,
5655
+ D,
5656
+ j,
5657
+ Y,
5658
+ ae,
5659
+ me,
5654
5660
  S,
5655
- C,
5656
- G,
5657
- O,
5658
- D
5661
+ H,
5662
+ k,
5663
+ L,
5664
+ U,
5665
+ F
5659
5666
  ];
5660
5667
  }
5661
5668
  class Sa extends si {
@@ -5665,7 +5672,7 @@ class Sa extends si {
5665
5672
  t,
5666
5673
  wa,
5667
5674
  xa,
5668
- Kn,
5675
+ er,
5669
5676
  {
5670
5677
  userid: 14,
5671
5678
  session: 15,
@@ -5685,7 +5692,8 @@ class Sa extends si {
5685
5692
  currencydisplay: 27,
5686
5693
  maximumfractiondigits: 28,
5687
5694
  minimumfractiondigits: 29,
5688
- customdisplayformat: 30
5695
+ customdisplayformat: 30,
5696
+ alwaysshowdecimals: 31
5689
5697
  },
5690
5698
  va,
5691
5699
  [-1, -1, -1]
@@ -5695,118 +5703,124 @@ class Sa extends si {
5695
5703
  return this.$$.ctx[14];
5696
5704
  }
5697
5705
  set userid(t) {
5698
- this.$$set({ userid: t }), Y();
5706
+ this.$$set({ userid: t }), Z();
5699
5707
  }
5700
5708
  get session() {
5701
5709
  return this.$$.ctx[15];
5702
5710
  }
5703
5711
  set session(t) {
5704
- this.$$set({ session: t }), Y();
5712
+ this.$$set({ session: t }), Z();
5705
5713
  }
5706
5714
  get endpoint() {
5707
5715
  return this.$$.ctx[16];
5708
5716
  }
5709
5717
  set endpoint(t) {
5710
- this.$$set({ endpoint: t }), Y();
5718
+ this.$$set({ endpoint: t }), Z();
5711
5719
  }
5712
5720
  get lang() {
5713
5721
  return this.$$.ctx[17];
5714
5722
  }
5715
5723
  set lang(t) {
5716
- this.$$set({ lang: t }), Y();
5724
+ this.$$set({ lang: t }), Z();
5717
5725
  }
5718
5726
  get mbsource() {
5719
5727
  return this.$$.ctx[18];
5720
5728
  }
5721
5729
  set mbsource(t) {
5722
- this.$$set({ mbsource: t }), Y();
5730
+ this.$$set({ mbsource: t }), Z();
5723
5731
  }
5724
5732
  get clientstyling() {
5725
5733
  return this.$$.ctx[19];
5726
5734
  }
5727
5735
  set clientstyling(t) {
5728
- this.$$set({ clientstyling: t }), Y();
5736
+ this.$$set({ clientstyling: t }), Z();
5729
5737
  }
5730
5738
  get clientstylingurl() {
5731
5739
  return this.$$.ctx[20];
5732
5740
  }
5733
5741
  set clientstylingurl(t) {
5734
- this.$$set({ clientstylingurl: t }), Y();
5742
+ this.$$set({ clientstylingurl: t }), Z();
5735
5743
  }
5736
5744
  get translationurl() {
5737
5745
  return this.$$.ctx[21];
5738
5746
  }
5739
5747
  set translationurl(t) {
5740
- this.$$set({ translationurl: t }), Y();
5748
+ this.$$set({ translationurl: t }), Z();
5741
5749
  }
5742
5750
  get gmversion() {
5743
5751
  return this.$$.ctx[22];
5744
5752
  }
5745
5753
  set gmversion(t) {
5746
- this.$$set({ gmversion: t }), Y();
5754
+ this.$$set({ gmversion: t }), Z();
5747
5755
  }
5748
5756
  get displaybalanceoption() {
5749
5757
  return this.$$.ctx[23];
5750
5758
  }
5751
5759
  set displaybalanceoption(t) {
5752
- this.$$set({ displaybalanceoption: t }), Y();
5760
+ this.$$set({ displaybalanceoption: t }), Z();
5753
5761
  }
5754
5762
  get totalcalculationmode() {
5755
5763
  return this.$$.ctx[13];
5756
5764
  }
5757
5765
  set totalcalculationmode(t) {
5758
- this.$$set({ totalcalculationmode: t }), Y();
5766
+ this.$$set({ totalcalculationmode: t }), Z();
5759
5767
  }
5760
5768
  get primarybalancemode() {
5761
5769
  return this.$$.ctx[24];
5762
5770
  }
5763
5771
  set primarybalancemode(t) {
5764
- this.$$set({ primarybalancemode: t }), Y();
5772
+ this.$$set({ primarybalancemode: t }), Z();
5765
5773
  }
5766
5774
  get balancelimitsbutton() {
5767
5775
  return this.$$.ctx[0];
5768
5776
  }
5769
5777
  set balancelimitsbutton(t) {
5770
- this.$$set({ balancelimitsbutton: t }), Y();
5778
+ this.$$set({ balancelimitsbutton: t }), Z();
5771
5779
  }
5772
5780
  get hideproducttype() {
5773
5781
  return this.$$.ctx[25];
5774
5782
  }
5775
5783
  set hideproducttype(t) {
5776
- this.$$set({ hideproducttype: t }), Y();
5784
+ this.$$set({ hideproducttype: t }), Z();
5777
5785
  }
5778
5786
  get currencylocale() {
5779
5787
  return this.$$.ctx[26];
5780
5788
  }
5781
5789
  set currencylocale(t) {
5782
- this.$$set({ currencylocale: t }), Y();
5790
+ this.$$set({ currencylocale: t }), Z();
5783
5791
  }
5784
5792
  get currencydisplay() {
5785
5793
  return this.$$.ctx[27];
5786
5794
  }
5787
5795
  set currencydisplay(t) {
5788
- this.$$set({ currencydisplay: t }), Y();
5796
+ this.$$set({ currencydisplay: t }), Z();
5789
5797
  }
5790
5798
  get maximumfractiondigits() {
5791
5799
  return this.$$.ctx[28];
5792
5800
  }
5793
5801
  set maximumfractiondigits(t) {
5794
- this.$$set({ maximumfractiondigits: t }), Y();
5802
+ this.$$set({ maximumfractiondigits: t }), Z();
5795
5803
  }
5796
5804
  get minimumfractiondigits() {
5797
5805
  return this.$$.ctx[29];
5798
5806
  }
5799
5807
  set minimumfractiondigits(t) {
5800
- this.$$set({ minimumfractiondigits: t }), Y();
5808
+ this.$$set({ minimumfractiondigits: t }), Z();
5801
5809
  }
5802
5810
  get customdisplayformat() {
5803
5811
  return this.$$.ctx[30];
5804
5812
  }
5805
5813
  set customdisplayformat(t) {
5806
- this.$$set({ customdisplayformat: t }), Y();
5814
+ this.$$set({ customdisplayformat: t }), Z();
5815
+ }
5816
+ get alwaysshowdecimals() {
5817
+ return this.$$.ctx[31];
5818
+ }
5819
+ set alwaysshowdecimals(t) {
5820
+ this.$$set({ alwaysshowdecimals: t }), Z();
5807
5821
  }
5808
5822
  }
5809
- ai(Sa, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, primarybalancemode: {}, balancelimitsbutton: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5823
+ ai(Sa, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, primarybalancemode: {}, balancelimitsbutton: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {}, alwaysshowdecimals: {} }, [], [], !0);
5810
5824
  export {
5811
5825
  Sa as default
5812
5826
  };