@everymatrix/player-account-balance-modal-nd 1.61.1 → 1.62.1

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,17 +1,17 @@
1
- var cr = Object.defineProperty, hr = Object.defineProperties;
2
- var fr = Object.getOwnPropertyDescriptors;
3
- var sn = Object.getOwnPropertySymbols;
4
- var dr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable;
5
- var Rt = (e, t, n) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lt = (e, t) => {
1
+ var fr = Object.defineProperty, dr = Object.defineProperties;
2
+ var pr = Object.getOwnPropertyDescriptors;
3
+ var un = Object.getOwnPropertySymbols;
4
+ var mr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable;
5
+ var Mt = (e, t, n) => t in e ? fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nt = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- dr.call(t, n) && Rt(e, n, t[n]);
8
- if (sn)
9
- for (var n of sn(t))
10
- pr.call(t, n) && Rt(e, n, t[n]);
7
+ mr.call(t, n) && Mt(e, n, t[n]);
8
+ if (un)
9
+ for (var n of un(t))
10
+ gr.call(t, n) && Mt(e, n, t[n]);
11
11
  return e;
12
- }, Mt = (e, t) => hr(e, fr(t));
13
- var se = (e, t, n) => (Rt(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var Nt = (e, t, n) => new Promise((r, i) => {
12
+ }, It = (e, t) => dr(e, pr(t));
13
+ var se = (e, t, n) => (Mt(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var Pt = (e, t, n) => new Promise((r, i) => {
15
15
  var o = (c) => {
16
16
  try {
17
17
  s(n.next(c));
@@ -29,25 +29,25 @@ var Nt = (e, t, n) => new Promise((r, i) => {
29
29
  });
30
30
  function le() {
31
31
  }
32
- function Ln(e) {
32
+ function Nn(e) {
33
33
  return e();
34
34
  }
35
- function ln() {
35
+ function cn() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function Ve(e) {
39
- e.forEach(Ln);
38
+ function Xe(e) {
39
+ e.forEach(Nn);
40
40
  }
41
- function tn(e) {
41
+ function rn(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Mn(e, t) {
44
+ function In(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function mr(e) {
47
+ function br(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function Nn(e, ...t) {
50
+ function Pn(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const r of t)
53
53
  r(void 0);
@@ -56,20 +56,20 @@ function Nn(e, ...t) {
56
56
  const n = e.subscribe(...t);
57
57
  return n.unsubscribe ? () => n.unsubscribe() : n;
58
58
  }
59
- function gr(e, t, n) {
60
- e.$$.on_destroy.push(Nn(t, n));
59
+ function yr(e, t, n) {
60
+ e.$$.on_destroy.push(Pn(t, n));
61
61
  }
62
62
  function C(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function br(e, t, n) {
66
- const r = yr(e);
65
+ function vr(e, t, n) {
66
+ const r = Er(e);
67
67
  if (!r.getElementById(t)) {
68
- const i = k("style");
69
- i.id = t, i.textContent = n, vr(r, i);
68
+ const i = j("style");
69
+ i.id = t, i.textContent = n, xr(r, i);
70
70
  }
71
71
  }
72
- function yr(e) {
72
+ function Er(e) {
73
73
  if (!e)
74
74
  return document;
75
75
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -79,27 +79,27 @@ function yr(e) {
79
79
  t
80
80
  ) : e.ownerDocument;
81
81
  }
82
- function vr(e, t) {
82
+ function xr(e, t) {
83
83
  return C(
84
84
  /** @type {Document} */
85
85
  e.head || e,
86
86
  t
87
87
  ), t.sheet;
88
88
  }
89
- function ge(e, t, n) {
89
+ function be(e, t, n) {
90
90
  e.insertBefore(t, n || null);
91
91
  }
92
92
  function de(e) {
93
93
  e.parentNode && e.parentNode.removeChild(e);
94
94
  }
95
- function In(e, t) {
95
+ function Dn(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 k(e) {
99
+ function j(e) {
100
100
  return document.createElement(e);
101
101
  }
102
- function un(e) {
102
+ function hn(e) {
103
103
  return document.createElementNS("http://www.w3.org/2000/svg", e);
104
104
  }
105
105
  function fe(e) {
@@ -108,23 +108,23 @@ function fe(e) {
108
108
  function pe() {
109
109
  return fe(" ");
110
110
  }
111
- function Er() {
111
+ function _r() {
112
112
  return fe("");
113
113
  }
114
- function mt(e, t, n, r) {
114
+ function gt(e, t, n, r) {
115
115
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
116
116
  }
117
117
  function N(e, t, n) {
118
118
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
119
119
  }
120
- function xr(e) {
120
+ function Br(e) {
121
121
  return Array.from(e.childNodes);
122
122
  }
123
- function xe(e, t) {
123
+ function _e(e, t) {
124
124
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
125
125
  t);
126
126
  }
127
- function _r(e) {
127
+ function Tr(e) {
128
128
  const t = {};
129
129
  return e.childNodes.forEach(
130
130
  /** @param {Element} node */
@@ -133,90 +133,90 @@ function _r(e) {
133
133
  }
134
134
  ), t;
135
135
  }
136
- let tt;
137
- function et(e) {
138
- tt = e;
136
+ let nt;
137
+ function tt(e) {
138
+ nt = e;
139
139
  }
140
- function Br() {
141
- if (!tt)
140
+ function wr() {
141
+ if (!nt)
142
142
  throw new Error("Function called outside component initialization");
143
- return tt;
143
+ return nt;
144
144
  }
145
- function Tr(e) {
146
- Br().$$.on_mount.push(e);
145
+ function Sr(e) {
146
+ wr().$$.on_mount.push(e);
147
147
  }
148
- const Ue = [], jt = [];
149
- let Fe = [];
150
- const cn = [], wr = /* @__PURE__ */ Promise.resolve();
151
- let kt = !1;
152
- function Sr() {
153
- kt || (kt = !0, wr.then(J));
148
+ const Fe = [], Vt = [];
149
+ let Ge = [];
150
+ const fn = [], Ar = /* @__PURE__ */ Promise.resolve();
151
+ let Xt = !1;
152
+ function Cr() {
153
+ Xt || (Xt = !0, Ar.then(J));
154
154
  }
155
- function Vt(e) {
156
- Fe.push(e);
155
+ function zt(e) {
156
+ Ge.push(e);
157
157
  }
158
- const It = /* @__PURE__ */ new Set();
159
- let Pe = 0;
158
+ const Dt = /* @__PURE__ */ new Set();
159
+ let De = 0;
160
160
  function J() {
161
- if (Pe !== 0)
161
+ if (De !== 0)
162
162
  return;
163
- const e = tt;
163
+ const e = nt;
164
164
  do {
165
165
  try {
166
- for (; Pe < Ue.length; ) {
167
- const t = Ue[Pe];
168
- Pe++, et(t), Ar(t.$$);
166
+ for (; De < Fe.length; ) {
167
+ const t = Fe[De];
168
+ De++, tt(t), Hr(t.$$);
169
169
  }
170
170
  } catch (t) {
171
- throw Ue.length = 0, Pe = 0, t;
171
+ throw Fe.length = 0, De = 0, t;
172
172
  }
173
- for (et(null), Ue.length = 0, Pe = 0; jt.length; )
174
- jt.pop()();
175
- for (let t = 0; t < Fe.length; t += 1) {
176
- const n = Fe[t];
177
- It.has(n) || (It.add(n), n());
173
+ for (tt(null), Fe.length = 0, De = 0; Vt.length; )
174
+ Vt.pop()();
175
+ for (let t = 0; t < Ge.length; t += 1) {
176
+ const n = Ge[t];
177
+ Dt.has(n) || (Dt.add(n), n());
178
178
  }
179
- Fe.length = 0;
180
- } while (Ue.length);
181
- for (; cn.length; )
182
- cn.pop()();
183
- kt = !1, It.clear(), et(e);
179
+ Ge.length = 0;
180
+ } while (Fe.length);
181
+ for (; fn.length; )
182
+ fn.pop()();
183
+ Xt = !1, Dt.clear(), tt(e);
184
184
  }
185
- function Ar(e) {
185
+ function Hr(e) {
186
186
  if (e.fragment !== null) {
187
- e.update(), Ve(e.before_update);
187
+ e.update(), Xe(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(Vt);
189
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(zt);
190
190
  }
191
191
  }
192
- function Cr(e) {
192
+ function Or(e) {
193
193
  const t = [], n = [];
194
- Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
194
+ Ge.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ge = t;
195
195
  }
196
- const Hr = /* @__PURE__ */ new Set();
197
- function Or(e, t) {
198
- e && e.i && (Hr.delete(e), e.i(t));
196
+ const Rr = /* @__PURE__ */ new Set();
197
+ function Lr(e, t) {
198
+ e && e.i && (Rr.delete(e), e.i(t));
199
199
  }
200
- function gt(e) {
200
+ function bt(e) {
201
201
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
202
202
  }
203
- function Rr(e, t, n) {
203
+ function Mr(e, t, n) {
204
204
  const { fragment: r, after_update: i } = e.$$;
205
- r && r.m(t, n), Vt(() => {
206
- const o = e.$$.on_mount.map(Ln).filter(tn);
207
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ve(o), e.$$.on_mount = [];
208
- }), i.forEach(Vt);
205
+ r && r.m(t, n), zt(() => {
206
+ const o = e.$$.on_mount.map(Nn).filter(rn);
207
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Xe(o), e.$$.on_mount = [];
208
+ }), i.forEach(zt);
209
209
  }
210
- function Lr(e, t) {
210
+ function Nr(e, t) {
211
211
  const n = e.$$;
212
- n.fragment !== null && (Cr(n.after_update), Ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
212
+ n.fragment !== null && (Or(n.after_update), Xe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
213
213
  }
214
- function Mr(e, t) {
215
- e.$$.dirty[0] === -1 && (Ue.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
214
+ function Ir(e, t) {
215
+ e.$$.dirty[0] === -1 && (Fe.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
216
216
  }
217
- function Nr(e, t, n, r, i, o, l = null, s = [-1]) {
218
- const c = tt;
219
- et(e);
217
+ function Pr(e, t, n, r, i, o, l = null, s = [-1]) {
218
+ const c = nt;
219
+ tt(e);
220
220
  const u = e.$$ = {
221
221
  fragment: null,
222
222
  ctx: [],
@@ -224,7 +224,7 @@ function Nr(e, t, n, r, i, o, l = null, s = [-1]) {
224
224
  props: o,
225
225
  update: le,
226
226
  not_equal: i,
227
- bound: ln(),
227
+ bound: cn(),
228
228
  // lifecycle
229
229
  on_mount: [],
230
230
  on_destroy: [],
@@ -233,7 +233,7 @@ function Nr(e, t, n, r, i, o, l = null, s = [-1]) {
233
233
  after_update: [],
234
234
  context: new Map(t.context || (c ? c.$$.context : [])),
235
235
  // everything else
236
- callbacks: ln(),
236
+ callbacks: cn(),
237
237
  dirty: s,
238
238
  skip_bound: !1,
239
239
  root: t.target || c.$$.root
@@ -242,19 +242,19 @@ function Nr(e, t, n, r, i, o, l = null, s = [-1]) {
242
242
  let d = !1;
243
243
  if (u.ctx = n ? n(e, t.props || {}, (g, b, ..._) => {
244
244
  const B = _.length ? _[0] : b;
245
- return u.ctx && i(u.ctx[g], u.ctx[g] = B) && (!u.skip_bound && u.bound[g] && u.bound[g](B), d && Mr(e, g)), b;
246
- }) : [], u.update(), d = !0, Ve(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
245
+ return u.ctx && i(u.ctx[g], u.ctx[g] = B) && (!u.skip_bound && u.bound[g] && u.bound[g](B), d && Ir(e, g)), b;
246
+ }) : [], u.update(), d = !0, Xe(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
247
247
  if (t.hydrate) {
248
- const g = xr(t.target);
248
+ const g = Br(t.target);
249
249
  u.fragment && u.fragment.l(g), g.forEach(de);
250
250
  } else
251
251
  u.fragment && u.fragment.c();
252
- t.intro && Or(e.$$.fragment), Rr(e, t.target, t.anchor), J();
252
+ t.intro && Lr(e.$$.fragment), Mr(e, t.target, t.anchor), J();
253
253
  }
254
- et(c);
254
+ tt(c);
255
255
  }
256
- let Pn;
257
- typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
256
+ let Un;
257
+ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
258
258
  constructor(t, n, r) {
259
259
  super();
260
260
  /** The Svelte component constructor */
@@ -291,21 +291,21 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
291
291
  }
292
292
  }
293
293
  connectedCallback() {
294
- return Nt(this, null, function* () {
294
+ return Pt(this, null, function* () {
295
295
  if (this.$$cn = !0, !this.$$c) {
296
296
  let t = function(o) {
297
297
  return () => {
298
298
  let l;
299
299
  return {
300
300
  c: function() {
301
- l = k("slot"), o !== "default" && N(l, "name", o);
301
+ l = j("slot"), o !== "default" && N(l, "name", o);
302
302
  },
303
303
  /**
304
304
  * @param {HTMLElement} target
305
305
  * @param {HTMLElement} [anchor]
306
306
  */
307
307
  m: function(u, d) {
308
- ge(u, l, d);
308
+ be(u, l, d);
309
309
  },
310
310
  d: function(u) {
311
311
  u && de(l);
@@ -315,18 +315,18 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
315
315
  };
316
316
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
317
317
  return;
318
- const n = {}, r = _r(this);
318
+ const n = {}, r = Tr(this);
319
319
  for (const o of this.$$s)
320
320
  o in r && (n[o] = [t(o)]);
321
321
  for (const o of this.attributes) {
322
322
  const l = this.$$g_p(o.name);
323
- l in this.$$d || (this.$$d[l] = ht(l, o.value, this.$$p_d, "toProp"));
323
+ l in this.$$d || (this.$$d[l] = ft(l, 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: Mt(Lt({}, this.$$d), {
329
+ props: It(Nt({}, this.$$d), {
330
330
  $$slots: n,
331
331
  $$scope: {
332
332
  ctx: []
@@ -337,7 +337,7 @@ typeof HTMLElement == "function" && (Pn = 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 l = ht(
340
+ const l = ft(
341
341
  o,
342
342
  this.$$d[o],
343
343
  this.$$p_d,
@@ -361,7 +361,7 @@ typeof HTMLElement == "function" && (Pn = 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] = ht(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
364
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ft(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
365
365
  }
366
366
  disconnectedCallback() {
367
367
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -374,7 +374,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
374
374
  ) || t;
375
375
  }
376
376
  });
377
- function ht(e, t, n, r) {
377
+ function ft(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])
@@ -404,8 +404,8 @@ function ht(e, t, n, r) {
404
404
  return t;
405
405
  }
406
406
  }
407
- function Ir(e, t, n, r, i, o) {
408
- let l = class extends Pn {
407
+ function Dr(e, t, n, r, i, o) {
408
+ let l = class extends Un {
409
409
  constructor() {
410
410
  super(e, n, i), this.$$p_d = t;
411
411
  }
@@ -422,7 +422,7 @@ function Ir(e, t, n, r, i, o) {
422
422
  },
423
423
  set(c) {
424
424
  var u;
425
- c = ht(s, c, t), this.$$d[s] = c, (u = this.$$c) == null || u.$set({ [s]: c });
425
+ c = ft(s, c, t), this.$$d[s] = c, (u = this.$$c) == null || u.$set({ [s]: c });
426
426
  }
427
427
  });
428
428
  }), r.forEach((s) => {
@@ -435,7 +435,7 @@ function Ir(e, t, n, r, i, o) {
435
435
  }), e.element = /** @type {any} */
436
436
  l, l;
437
437
  }
438
- class Pr {
438
+ class Ur {
439
439
  constructor() {
440
440
  /**
441
441
  * ### PRIVATE API
@@ -456,7 +456,7 @@ class Pr {
456
456
  }
457
457
  /** @returns {void} */
458
458
  $destroy() {
459
- Lr(this, 1), this.$destroy = le;
459
+ Nr(this, 1), this.$destroy = le;
460
460
  }
461
461
  /**
462
462
  * @template {Extract<keyof Events, string>} K
@@ -465,7 +465,7 @@ class Pr {
465
465
  * @returns {() => void}
466
466
  */
467
467
  $on(t, n) {
468
- if (!tn(n))
468
+ if (!rn(n))
469
469
  return le;
470
470
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
471
471
  return r.push(n), () => {
@@ -478,18 +478,18 @@ class Pr {
478
478
  * @returns {void}
479
479
  */
480
480
  $set(t) {
481
- this.$$set && !mr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
481
+ this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
482
482
  }
483
483
  }
484
- const Dr = "4";
485
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dr);
486
- function Ur(e, t) {
484
+ const Fr = "4";
485
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
486
+ function Gr(e, t) {
487
487
  if (e) {
488
488
  const n = document.createElement("style");
489
489
  n.innerHTML = t, e.appendChild(n);
490
490
  }
491
491
  }
492
- function Fr(e, t) {
492
+ function $r(e, t) {
493
493
  const n = new URL(t);
494
494
  fetch(n.href).then((r) => r.text()).then((r) => {
495
495
  const i = document.createElement("style");
@@ -498,7 +498,7 @@ function Fr(e, t) {
498
498
  console.error("There was an error while trying to load client styling from URL", r);
499
499
  });
500
500
  }
501
- function Gr(e, t, n) {
501
+ function jr(e, t, n) {
502
502
  if (window.emMessageBus) {
503
503
  const r = document.createElement("style");
504
504
  window.emMessageBus.subscribe(t, (i) => {
@@ -506,24 +506,24 @@ function Gr(e, t, n) {
506
506
  });
507
507
  }
508
508
  }
509
- const De = [];
510
- function $r(e, t) {
509
+ const Ue = [];
510
+ function kr(e, t) {
511
511
  return {
512
- subscribe: vt(e, t).subscribe
512
+ subscribe: xt(e, t).subscribe
513
513
  };
514
514
  }
515
- function vt(e, t = le) {
515
+ function xt(e, t = le) {
516
516
  let n;
517
517
  const r = /* @__PURE__ */ new Set();
518
518
  function i(s) {
519
- if (Mn(e, s) && (e = s, n)) {
520
- const c = !De.length;
519
+ if (In(e, s) && (e = s, n)) {
520
+ const c = !Ue.length;
521
521
  for (const u of r)
522
- u[1](), De.push(u, e);
522
+ u[1](), Ue.push(u, e);
523
523
  if (c) {
524
- for (let u = 0; u < De.length; u += 2)
525
- De[u][0](De[u + 1]);
526
- De.length = 0;
524
+ for (let u = 0; u < Ue.length; u += 2)
525
+ Ue[u][0](Ue[u + 1]);
526
+ Ue.length = 0;
527
527
  }
528
528
  }
529
529
  }
@@ -538,12 +538,12 @@ function vt(e, t = le) {
538
538
  }
539
539
  return { set: i, update: o, subscribe: l };
540
540
  }
541
- function Xe(e, t, n) {
541
+ function ze(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
- return $r(n, (l, s) => {
546
+ return kr(n, (l, s) => {
547
547
  let c = !1;
548
548
  const u = [];
549
549
  let d = 0, g = le;
@@ -552,9 +552,9 @@ function Xe(e, t, n) {
552
552
  return;
553
553
  g();
554
554
  const B = t(r ? u[0] : u, l, s);
555
- o ? l(B) : g = tn(B) ? B : le;
555
+ o ? l(B) : g = rn(B) ? B : le;
556
556
  }, _ = i.map(
557
- (B, T) => Nn(
557
+ (B, T) => Pn(
558
558
  B,
559
559
  (x) => {
560
560
  u[T] = x, d &= ~(1 << T), c && b();
@@ -565,127 +565,113 @@ function Xe(e, t, n) {
565
565
  )
566
566
  );
567
567
  return c = !0, b(), function() {
568
- Ve(_), g(), c = !1;
568
+ Xe(_), g(), c = !1;
569
569
  };
570
570
  });
571
571
  }
572
- var jr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
573
- function kr(e) {
572
+ var Vr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
573
+ function Xr(e) {
574
574
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
575
575
  }
576
- var Vr = function(t) {
577
- return Xr(t) && !zr(t);
576
+ var zr = function(t) {
577
+ return Wr(t) && !Zr(t);
578
578
  };
579
- function Xr(e) {
579
+ function Wr(e) {
580
580
  return !!e && typeof e == "object";
581
581
  }
582
- function zr(e) {
582
+ function Zr(e) {
583
583
  var t = Object.prototype.toString.call(e);
584
- return t === "[object RegExp]" || t === "[object Date]" || qr(e);
584
+ return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
585
585
  }
586
- var Wr = typeof Symbol == "function" && Symbol.for, Zr = Wr ? Symbol.for("react.element") : 60103;
587
- function qr(e) {
588
- return e.$$typeof === Zr;
586
+ var qr = typeof Symbol == "function" && Symbol.for, Qr = qr ? Symbol.for("react.element") : 60103;
587
+ function Jr(e) {
588
+ return e.$$typeof === Qr;
589
589
  }
590
- function Qr(e) {
590
+ function Yr(e) {
591
591
  return Array.isArray(e) ? [] : {};
592
592
  }
593
- function nt(e, t) {
594
- return t.clone !== !1 && t.isMergeableObject(e) ? Ge(Qr(e), e, t) : e;
593
+ function rt(e, t) {
594
+ return t.clone !== !1 && t.isMergeableObject(e) ? $e(Yr(e), e, t) : e;
595
595
  }
596
- function Jr(e, t, n) {
596
+ function Kr(e, t, n) {
597
597
  return e.concat(t).map(function(r) {
598
- return nt(r, n);
598
+ return rt(r, n);
599
599
  });
600
600
  }
601
- function Yr(e, t) {
601
+ function ei(e, t) {
602
602
  if (!t.customMerge)
603
- return Ge;
603
+ return $e;
604
604
  var n = t.customMerge(e);
605
- return typeof n == "function" ? n : Ge;
605
+ return typeof n == "function" ? n : $e;
606
606
  }
607
- function Kr(e) {
607
+ function ti(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 hn(e) {
613
- return Object.keys(e).concat(Kr(e));
612
+ function dn(e) {
613
+ return Object.keys(e).concat(ti(e));
614
614
  }
615
- function Dn(e, t) {
615
+ function Fn(e, t) {
616
616
  try {
617
617
  return t in e;
618
618
  } catch (n) {
619
619
  return !1;
620
620
  }
621
621
  }
622
- function ei(e, t) {
623
- return Dn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
622
+ function ni(e, t) {
623
+ return Fn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
624
624
  }
625
- function ti(e, t, n) {
625
+ function ri(e, t, n) {
626
626
  var r = {};
627
- return n.isMergeableObject(e) && hn(e).forEach(function(i) {
628
- r[i] = nt(e[i], n);
629
- }), hn(t).forEach(function(i) {
630
- ei(e, i) || (Dn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Yr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
627
+ return n.isMergeableObject(e) && dn(e).forEach(function(i) {
628
+ r[i] = rt(e[i], n);
629
+ }), dn(t).forEach(function(i) {
630
+ ni(e, i) || (Fn(e, i) && n.isMergeableObject(t[i]) ? r[i] = ei(i, n)(e[i], t[i], n) : r[i] = rt(t[i], n));
631
631
  }), r;
632
632
  }
633
- function Ge(e, t, n) {
634
- n = n || {}, n.arrayMerge = n.arrayMerge || Jr, n.isMergeableObject = n.isMergeableObject || Vr, n.cloneUnlessOtherwiseSpecified = nt;
633
+ function $e(e, t, n) {
634
+ n = n || {}, n.arrayMerge = n.arrayMerge || Kr, n.isMergeableObject = n.isMergeableObject || zr, n.cloneUnlessOtherwiseSpecified = rt;
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) : nt(t, n);
636
+ return o ? r ? n.arrayMerge(e, t, n) : ri(e, t, n) : rt(t, n);
637
637
  }
638
- Ge.all = function(t, n) {
638
+ $e.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 Ge(r, i, n);
642
+ return $e(r, i, n);
643
643
  }, {});
644
644
  };
645
- var ni = Ge, ri = ni;
646
- const ii = /* @__PURE__ */ kr(ri);
647
- /*! *****************************************************************************
648
- Copyright (c) Microsoft Corporation.
649
-
650
- Permission to use, copy, modify, and/or distribute this software for any
651
- purpose with or without fee is hereby granted.
652
-
653
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
654
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
655
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
656
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
657
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
658
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
659
- PERFORMANCE OF THIS SOFTWARE.
660
- ***************************************************************************** */
661
- var Xt = function(e, t) {
662
- return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
645
+ var ii = $e, oi = ii;
646
+ const ai = /* @__PURE__ */ Xr(oi);
647
+ var Wt = function(e, t) {
648
+ return Wt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
663
649
  n.__proto__ = r;
664
650
  } || function(n, r) {
665
651
  for (var i in r)
666
652
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
667
- }, Xt(e, t);
653
+ }, Wt(e, t);
668
654
  };
669
- function Et(e, t) {
655
+ function _t(e, t) {
670
656
  if (typeof t != "function" && t !== null)
671
657
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
672
- Xt(e, t);
658
+ Wt(e, t);
673
659
  function n() {
674
660
  this.constructor = e;
675
661
  }
676
662
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
677
663
  }
678
- var I = function() {
679
- return I = Object.assign || function(t) {
664
+ var ge = function() {
665
+ return ge = Object.assign || function(t) {
680
666
  for (var n, r = 1, i = arguments.length; r < i; r++) {
681
667
  n = arguments[r];
682
668
  for (var o in n)
683
669
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
684
670
  }
685
671
  return t;
686
- }, I.apply(this, arguments);
672
+ }, ge.apply(this, arguments);
687
673
  };
688
- function oi(e, t) {
674
+ function si(e, t) {
689
675
  var n = {};
690
676
  for (var r in e)
691
677
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -694,43 +680,43 @@ function oi(e, t) {
694
680
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
695
681
  return n;
696
682
  }
697
- function Pt(e, t, n) {
698
- if (arguments.length === 2)
683
+ function Ut(e, t, n) {
684
+ if (n || arguments.length === 2)
699
685
  for (var r = 0, i = t.length, o; r < i; r++)
700
686
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
701
- return e.concat(o || t);
687
+ return e.concat(o || Array.prototype.slice.call(t));
702
688
  }
703
- function Dt(e, t) {
704
- var n = t && t.cache ? t.cache : fi, r = t && t.serializer ? t.serializer : ci, i = t && t.strategy ? t.strategy : li;
689
+ function Ft(e, t) {
690
+ var n = t && t.cache ? t.cache : pi, r = t && t.serializer ? t.serializer : fi, i = t && t.strategy ? t.strategy : ci;
705
691
  return i(e, {
706
692
  cache: n,
707
693
  serializer: r
708
694
  });
709
695
  }
710
- function ai(e) {
696
+ function li(e) {
711
697
  return e == null || typeof e == "number" || typeof e == "boolean";
712
698
  }
713
- function si(e, t, n, r) {
714
- var i = ai(r) ? r : n(r), o = t.get(i);
699
+ function ui(e, t, n, r) {
700
+ var i = li(r) ? r : n(r), o = t.get(i);
715
701
  return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
716
702
  }
717
- function Un(e, t, n) {
703
+ function Gn(e, t, n) {
718
704
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
719
705
  return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
720
706
  }
721
- function Fn(e, t, n, r, i) {
707
+ function $n(e, t, n, r, i) {
722
708
  return n.bind(t, e, r, i);
723
709
  }
724
- function li(e, t) {
725
- var n = e.length === 1 ? si : Un;
726
- return Fn(e, this, n, t.cache.create(), t.serializer);
710
+ function ci(e, t) {
711
+ var n = e.length === 1 ? ui : Gn;
712
+ return $n(e, this, n, t.cache.create(), t.serializer);
727
713
  }
728
- function ui(e, t) {
729
- return Fn(e, this, Un, t.cache.create(), t.serializer);
714
+ function hi(e, t) {
715
+ return $n(e, this, Gn, t.cache.create(), t.serializer);
730
716
  }
731
- var ci = function() {
717
+ var fi = function() {
732
718
  return JSON.stringify(arguments);
733
- }, hi = (
719
+ }, di = (
734
720
  /** @class */
735
721
  function() {
736
722
  function e() {
@@ -742,61 +728,71 @@ var ci = function() {
742
728
  this.cache[t] = n;
743
729
  }, e;
744
730
  }()
745
- ), fi = {
731
+ ), pi = {
746
732
  create: function() {
747
- return new hi();
733
+ return new di();
748
734
  }
749
- }, Ut = {
750
- variadic: ui
751
- }, O;
735
+ }, Gt = {
736
+ variadic: hi
737
+ }, yt = function() {
738
+ return yt = Object.assign || function(t) {
739
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
740
+ n = arguments[r];
741
+ for (var o in n)
742
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
743
+ }
744
+ return t;
745
+ }, yt.apply(this, arguments);
746
+ };
747
+ var O;
752
748
  (function(e) {
753
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";
754
750
  })(O || (O = {}));
755
- var j;
751
+ var $;
756
752
  (function(e) {
757
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";
758
- })(j || (j = {}));
759
- var $e;
754
+ })($ || ($ = {}));
755
+ var je;
760
756
  (function(e) {
761
757
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
762
- })($e || ($e = {}));
763
- function fn(e) {
764
- return e.type === j.literal;
765
- }
766
- function di(e) {
767
- return e.type === j.argument;
768
- }
769
- function Gn(e) {
770
- return e.type === j.number;
758
+ })(je || (je = {}));
759
+ function pn(e) {
760
+ return e.type === $.literal;
771
761
  }
772
- function $n(e) {
773
- return e.type === j.date;
762
+ function mi(e) {
763
+ return e.type === $.argument;
774
764
  }
775
765
  function jn(e) {
776
- return e.type === j.time;
766
+ return e.type === $.number;
777
767
  }
778
768
  function kn(e) {
779
- return e.type === j.select;
769
+ return e.type === $.date;
780
770
  }
781
771
  function Vn(e) {
782
- return e.type === j.plural;
783
- }
784
- function pi(e) {
785
- return e.type === j.pound;
772
+ return e.type === $.time;
786
773
  }
787
774
  function Xn(e) {
788
- return e.type === j.tag;
775
+ return e.type === $.select;
789
776
  }
790
777
  function zn(e) {
791
- return !!(e && typeof e == "object" && e.type === $e.number);
778
+ return e.type === $.plural;
792
779
  }
793
- function zt(e) {
794
- return !!(e && typeof e == "object" && e.type === $e.dateTime);
795
- }
796
- var Wn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mi = /(?:[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;
797
780
  function gi(e) {
781
+ return e.type === $.pound;
782
+ }
783
+ function Wn(e) {
784
+ return e.type === $.tag;
785
+ }
786
+ function Zn(e) {
787
+ return !!(e && typeof e == "object" && e.type === je.number);
788
+ }
789
+ function Zt(e) {
790
+ return !!(e && typeof e == "object" && e.type === je.dateTime);
791
+ }
792
+ var qn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bi = /(?:[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
+ function yi(e) {
798
794
  var t = {};
799
- return e.replace(mi, function(n) {
795
+ return e.replace(bi, function(n) {
800
796
  var r = n.length;
801
797
  switch (n[0]) {
802
798
  case "G":
@@ -885,11 +881,21 @@ function gi(e) {
885
881
  return "";
886
882
  }), t;
887
883
  }
888
- var bi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
889
- function yi(e) {
884
+ var X = function() {
885
+ return X = Object.assign || function(t) {
886
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
887
+ n = arguments[r];
888
+ for (var o in n)
889
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
890
+ }
891
+ return t;
892
+ }, X.apply(this, arguments);
893
+ };
894
+ var vi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
895
+ function Ei(e) {
890
896
  if (e.length === 0)
891
897
  throw new Error("Number skeleton cannot be empty");
892
- for (var t = e.split(bi).filter(function(b) {
898
+ for (var t = e.split(vi).filter(function(b) {
893
899
  return b.length > 0;
894
900
  }), n = [], r = 0, i = t; r < i.length; r++) {
895
901
  var o = i[r], l = o.split("/");
@@ -904,17 +910,17 @@ function yi(e) {
904
910
  }
905
911
  return n;
906
912
  }
907
- function vi(e) {
913
+ function xi(e) {
908
914
  return e.replace(/^(.*?)-/, "");
909
915
  }
910
- var dn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zn = /^(@+)?(\+|#+)?[rs]?$/g, Ei = /(\*)(0+)|(#+)(0+)|(0+)/g, qn = /^(0+)$/;
911
- function pn(e) {
916
+ var mn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qn = /^(@+)?(\+|#+)?[rs]?$/g, _i = /(\*)(0+)|(#+)(0+)|(0+)/g, Jn = /^(0+)$/;
917
+ function gn(e) {
912
918
  var t = {};
913
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zn, function(n, r, i) {
919
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qn, function(n, r, i) {
914
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)), "";
915
921
  }), t;
916
922
  }
917
- function Qn(e) {
923
+ function Yn(e) {
918
924
  switch (e) {
919
925
  case "sign-auto":
920
926
  return {
@@ -954,7 +960,7 @@ function Qn(e) {
954
960
  };
955
961
  }
956
962
  }
957
- function xi(e) {
963
+ function Bi(e) {
958
964
  var t;
959
965
  if (e[0] === "E" && e[1] === "E" ? (t = {
960
966
  notation: "engineering"
@@ -962,17 +968,17 @@ function xi(e) {
962
968
  notation: "scientific"
963
969
  }, e = e.slice(1)), t) {
964
970
  var n = e.slice(0, 2);
965
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qn.test(e))
971
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jn.test(e))
966
972
  throw new Error("Malformed concise eng/scientific notation");
967
973
  t.minimumIntegerDigits = e.length;
968
974
  }
969
975
  return t;
970
976
  }
971
- function mn(e) {
972
- var t = {}, n = Qn(e);
977
+ function bn(e) {
978
+ var t = {}, n = Yn(e);
973
979
  return n || t;
974
980
  }
975
- function _i(e) {
981
+ function Ti(e) {
976
982
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
977
983
  var i = r[n];
978
984
  switch (i.stem) {
@@ -996,7 +1002,7 @@ function _i(e) {
996
1002
  continue;
997
1003
  case "measure-unit":
998
1004
  case "unit":
999
- t.style = "unit", t.unit = vi(i.options[0]);
1005
+ t.style = "unit", t.unit = xi(i.options[0]);
1000
1006
  continue;
1001
1007
  case "compact-short":
1002
1008
  case "K":
@@ -1007,13 +1013,13 @@ function _i(e) {
1007
1013
  t.notation = "compact", t.compactDisplay = "long";
1008
1014
  continue;
1009
1015
  case "scientific":
1010
- t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
1011
- return I(I({}, c), mn(u));
1016
+ t = X(X(X({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
1017
+ return X(X({}, c), bn(u));
1012
1018
  }, {}));
1013
1019
  continue;
1014
1020
  case "engineering":
1015
- t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
1016
- return I(I({}, c), mn(u));
1021
+ t = X(X(X({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
1022
+ return X(X({}, c), bn(u));
1017
1023
  }, {}));
1018
1024
  continue;
1019
1025
  case "notation-simple":
@@ -1058,7 +1064,7 @@ function _i(e) {
1058
1064
  case "integer-width":
1059
1065
  if (i.options.length > 1)
1060
1066
  throw new RangeError("integer-width stems only accept a single optional option");
1061
- i.options[0].replace(Ei, function(c, u, d, g, b, _) {
1067
+ i.options[0].replace(_i, function(c, u, d, g, b, _) {
1062
1068
  if (u)
1063
1069
  t.minimumIntegerDigits = d.length;
1064
1070
  else {
@@ -1071,32 +1077,32 @@ function _i(e) {
1071
1077
  });
1072
1078
  continue;
1073
1079
  }
1074
- if (qn.test(i.stem)) {
1080
+ if (Jn.test(i.stem)) {
1075
1081
  t.minimumIntegerDigits = i.stem.length;
1076
1082
  continue;
1077
1083
  }
1078
- if (dn.test(i.stem)) {
1084
+ if (mn.test(i.stem)) {
1079
1085
  if (i.options.length > 1)
1080
1086
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1081
- i.stem.replace(dn, function(c, u, d, g, b, _) {
1087
+ i.stem.replace(mn, function(c, u, d, g, b, _) {
1082
1088
  return d === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1083
1089
  });
1084
1090
  var o = i.options[0];
1085
- o === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = I(I({}, t), pn(o)));
1091
+ o === "w" ? t = X(X({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = X(X({}, t), gn(o)));
1086
1092
  continue;
1087
1093
  }
1088
- if (Zn.test(i.stem)) {
1089
- t = I(I({}, t), pn(i.stem));
1094
+ if (Qn.test(i.stem)) {
1095
+ t = X(X({}, t), gn(i.stem));
1090
1096
  continue;
1091
1097
  }
1092
- var l = Qn(i.stem);
1093
- l && (t = I(I({}, t), l));
1094
- var s = xi(i.stem);
1095
- s && (t = I(I({}, t), s));
1098
+ var l = Yn(i.stem);
1099
+ l && (t = X(X({}, t), l));
1100
+ var s = Bi(i.stem);
1101
+ s && (t = X(X({}, t), s));
1096
1102
  }
1097
1103
  return t;
1098
1104
  }
1099
- var ct = {
1105
+ var ht = {
1100
1106
  "001": [
1101
1107
  "H",
1102
1108
  "h"
@@ -2511,13 +2517,13 @@ var ct = {
2511
2517
  "h"
2512
2518
  ]
2513
2519
  };
2514
- function Bi(e, t) {
2520
+ function wi(e, t) {
2515
2521
  for (var n = "", r = 0; r < e.length; r++) {
2516
2522
  var i = e.charAt(r);
2517
2523
  if (i === "j") {
2518
2524
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2519
2525
  o++, r++;
2520
- var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = Ti(t);
2526
+ var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = Si(t);
2521
2527
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2522
2528
  n += c;
2523
2529
  for (; l-- > 0; )
@@ -2527,7 +2533,7 @@ function Bi(e, t) {
2527
2533
  }
2528
2534
  return n;
2529
2535
  }
2530
- function Ti(e) {
2536
+ function Si(e) {
2531
2537
  var t = e.hourCycle;
2532
2538
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2533
2539
  e.hourCycles && // @ts-ignore
@@ -2546,23 +2552,23 @@ function Ti(e) {
2546
2552
  }
2547
2553
  var n = e.language, r;
2548
2554
  n !== "root" && (r = e.maximize().region);
2549
- var i = ct[r || ""] || ct[n || ""] || ct["".concat(n, "-001")] || ct["001"];
2555
+ var i = ht[r || ""] || ht[n || ""] || ht["".concat(n, "-001")] || ht["001"];
2550
2556
  return i[0];
2551
2557
  }
2552
- var Ft, wi = new RegExp("^".concat(Wn.source, "*")), Si = new RegExp("".concat(Wn.source, "*$"));
2558
+ var $t, Ai = new RegExp("^".concat(qn.source, "*")), Ci = new RegExp("".concat(qn.source, "*$"));
2553
2559
  function M(e, t) {
2554
2560
  return { start: e, end: t };
2555
2561
  }
2556
- var Ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ci = !!String.fromCodePoint, Hi = !!Object.fromEntries, Oi = !!String.prototype.codePointAt, Ri = !!String.prototype.trimStart, Li = !!String.prototype.trimEnd, Mi = !!Number.isSafeInteger, Ni = Mi ? Number.isSafeInteger : function(e) {
2562
+ var Hi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Oi = !!String.fromCodePoint, Ri = !!Object.fromEntries, Li = !!String.prototype.codePointAt, Mi = !!String.prototype.trimStart, Ni = !!String.prototype.trimEnd, Ii = !!Number.isSafeInteger, Pi = Ii ? Number.isSafeInteger : function(e) {
2557
2563
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2558
- }, Wt = !0;
2564
+ }, qt = !0;
2559
2565
  try {
2560
- var Ii = Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2561
- Wt = ((Ft = Ii.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
2566
+ var Di = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2567
+ qt = (($t = Di.exec("a")) === null || $t === void 0 ? void 0 : $t[0]) === "a";
2562
2568
  } catch (e) {
2563
- Wt = !1;
2569
+ qt = !1;
2564
2570
  }
2565
- var gn = Ai ? (
2571
+ var yn = Hi ? (
2566
2572
  // Native
2567
2573
  function(t, n, r) {
2568
2574
  return t.startsWith(n, r);
@@ -2572,7 +2578,7 @@ var gn = Ai ? (
2572
2578
  function(t, n, r) {
2573
2579
  return t.slice(r, r + n.length) === n;
2574
2580
  }
2575
- ), Zt = Ci ? String.fromCodePoint : (
2581
+ ), Qt = Oi ? String.fromCodePoint : (
2576
2582
  // IE11
2577
2583
  function() {
2578
2584
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2584,9 +2590,9 @@ var gn = Ai ? (
2584
2590
  }
2585
2591
  return r;
2586
2592
  }
2587
- ), bn = (
2593
+ ), vn = (
2588
2594
  // native
2589
- Hi ? Object.fromEntries : (
2595
+ Ri ? Object.fromEntries : (
2590
2596
  // Ponyfill
2591
2597
  function(t) {
2592
2598
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2596,7 +2602,7 @@ var gn = Ai ? (
2596
2602
  return n;
2597
2603
  }
2598
2604
  )
2599
- ), Jn = Oi ? (
2605
+ ), Kn = Li ? (
2600
2606
  // Native
2601
2607
  function(t, n) {
2602
2608
  return t.codePointAt(n);
@@ -2610,7 +2616,7 @@ var gn = Ai ? (
2610
2616
  return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2611
2617
  }
2612
2618
  }
2613
- ), Pi = Ri ? (
2619
+ ), Ui = Mi ? (
2614
2620
  // Native
2615
2621
  function(t) {
2616
2622
  return t.trimStart();
@@ -2618,9 +2624,9 @@ var gn = Ai ? (
2618
2624
  ) : (
2619
2625
  // Ponyfill
2620
2626
  function(t) {
2621
- return t.replace(wi, "");
2627
+ return t.replace(Ai, "");
2622
2628
  }
2623
- ), Di = Li ? (
2629
+ ), Fi = Ni ? (
2624
2630
  // Native
2625
2631
  function(t) {
2626
2632
  return t.trimEnd();
@@ -2628,32 +2634,32 @@ var gn = Ai ? (
2628
2634
  ) : (
2629
2635
  // Ponyfill
2630
2636
  function(t) {
2631
- return t.replace(Si, "");
2637
+ return t.replace(Ci, "");
2632
2638
  }
2633
2639
  );
2634
- function Yn(e, t) {
2640
+ function er(e, t) {
2635
2641
  return new RegExp(e, t);
2636
2642
  }
2637
- var qt;
2638
- if (Wt) {
2639
- var yn = Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2640
- qt = function(t, n) {
2643
+ var Jt;
2644
+ if (qt) {
2645
+ var En = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2646
+ Jt = function(t, n) {
2641
2647
  var r;
2642
- yn.lastIndex = n;
2643
- var i = yn.exec(t);
2648
+ En.lastIndex = n;
2649
+ var i = En.exec(t);
2644
2650
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2645
2651
  };
2646
2652
  } else
2647
- qt = function(t, n) {
2653
+ Jt = function(t, n) {
2648
2654
  for (var r = []; ; ) {
2649
- var i = Jn(t, n);
2650
- if (i === void 0 || Kn(i) || $i(i))
2655
+ var i = Kn(t, n);
2656
+ if (i === void 0 || tr(i) || ki(i))
2651
2657
  break;
2652
2658
  r.push(i), n += i >= 65536 ? 2 : 1;
2653
2659
  }
2654
- return Zt.apply(void 0, r);
2660
+ return Qt.apply(void 0, r);
2655
2661
  };
2656
- var Ui = (
2662
+ var Gi = (
2657
2663
  /** @class */
2658
2664
  function() {
2659
2665
  function e(t, n) {
@@ -2677,14 +2683,14 @@ var Ui = (
2677
2683
  if (o === 35 && (n === "plural" || n === "selectordinal")) {
2678
2684
  var s = this.clonePosition();
2679
2685
  this.bump(), i.push({
2680
- type: j.pound,
2686
+ type: $.pound,
2681
2687
  location: M(s, this.clonePosition())
2682
2688
  });
2683
2689
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2684
2690
  if (r)
2685
2691
  break;
2686
2692
  return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
2687
- } else if (o === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
2693
+ } else if (o === 60 && !this.ignoreTag && Yt(this.peek() || 0)) {
2688
2694
  var l = this.parseTag(t, n);
2689
2695
  if (l.err)
2690
2696
  return l;
@@ -2705,7 +2711,7 @@ var Ui = (
2705
2711
  if (this.bumpSpace(), this.bumpIf("/>"))
2706
2712
  return {
2707
2713
  val: {
2708
- type: j.literal,
2714
+ type: $.literal,
2709
2715
  value: "<".concat(i, "/>"),
2710
2716
  location: M(r, this.clonePosition())
2711
2717
  },
@@ -2717,12 +2723,12 @@ var Ui = (
2717
2723
  return o;
2718
2724
  var l = o.val, s = this.clonePosition();
2719
2725
  if (this.bumpIf("</")) {
2720
- if (this.isEOF() || !Qt(this.char()))
2726
+ if (this.isEOF() || !Yt(this.char()))
2721
2727
  return this.error(O.INVALID_TAG, M(s, this.clonePosition()));
2722
2728
  var c = this.clonePosition(), u = this.parseTagName();
2723
2729
  return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, M(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2724
2730
  val: {
2725
- type: j.tag,
2731
+ type: $.tag,
2726
2732
  value: i,
2727
2733
  children: l,
2728
2734
  location: M(r, this.clonePosition())
@@ -2735,7 +2741,7 @@ var Ui = (
2735
2741
  return this.error(O.INVALID_TAG, M(r, this.clonePosition()));
2736
2742
  }, e.prototype.parseTagName = function() {
2737
2743
  var t = this.offset();
2738
- for (this.bump(); !this.isEOF() && Gi(this.char()); )
2744
+ for (this.bump(); !this.isEOF() && ji(this.char()); )
2739
2745
  this.bump();
2740
2746
  return this.message.slice(t, this.offset());
2741
2747
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2759,12 +2765,12 @@ var Ui = (
2759
2765
  }
2760
2766
  var c = M(r, this.clonePosition());
2761
2767
  return {
2762
- val: { type: j.literal, value: i, location: c },
2768
+ val: { type: $.literal, value: i, location: c },
2763
2769
  err: null
2764
2770
  };
2765
2771
  }, e.prototype.tryParseLeftAngleBracket = function() {
2766
2772
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2767
- !Fi(this.peek() || 0)) ? (this.bump(), "<") : null;
2773
+ !$i(this.peek() || 0)) ? (this.bump(), "<") : null;
2768
2774
  }, e.prototype.tryParseQuote = function(t) {
2769
2775
  if (this.isEOF() || this.char() !== 39)
2770
2776
  return null;
@@ -2798,12 +2804,12 @@ var Ui = (
2798
2804
  n.push(r);
2799
2805
  this.bump();
2800
2806
  }
2801
- return Zt.apply(void 0, n);
2807
+ return Qt.apply(void 0, n);
2802
2808
  }, e.prototype.tryParseUnquoted = function(t, n) {
2803
2809
  if (this.isEOF())
2804
2810
  return null;
2805
2811
  var r = this.char();
2806
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Zt(r));
2812
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Qt(r));
2807
2813
  }, e.prototype.parseArgument = function(t, n) {
2808
2814
  var r = this.clonePosition();
2809
2815
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -2819,7 +2825,7 @@ var Ui = (
2819
2825
  case 125:
2820
2826
  return this.bump(), {
2821
2827
  val: {
2822
- type: j.argument,
2828
+ type: $.argument,
2823
2829
  // value does not include the opening and closing braces.
2824
2830
  value: i,
2825
2831
  location: M(r, this.clonePosition())
@@ -2832,7 +2838,7 @@ var Ui = (
2832
2838
  return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
2833
2839
  }
2834
2840
  }, e.prototype.parseIdentifierIfPossible = function() {
2835
- var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
2841
+ var t = this.clonePosition(), n = this.offset(), r = Jt(this.message, n), i = n + r.length;
2836
2842
  this.bumpTo(i);
2837
2843
  var o = this.clonePosition(), l = M(t, o);
2838
2844
  return { value: r, location: l };
@@ -2851,7 +2857,7 @@ var Ui = (
2851
2857
  var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2852
2858
  if (g.err)
2853
2859
  return g;
2854
- var b = Di(g.val);
2860
+ var b = Fi(g.val);
2855
2861
  if (b.length === 0)
2856
2862
  return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
2857
2863
  var _ = M(d, this.clonePosition());
@@ -2861,34 +2867,34 @@ var Ui = (
2861
2867
  if (B.err)
2862
2868
  return B;
2863
2869
  var T = M(i, this.clonePosition());
2864
- if (u && gn(u == null ? void 0 : u.style, "::", 0)) {
2865
- var x = Pi(u.style.slice(2));
2870
+ if (u && yn(u == null ? void 0 : u.style, "::", 0)) {
2871
+ var x = Ui(u.style.slice(2));
2866
2872
  if (s === "number") {
2867
2873
  var g = this.parseNumberSkeletonFromString(x, u.styleLocation);
2868
2874
  return g.err ? g : {
2869
- val: { type: j.number, value: r, location: T, style: g.val },
2875
+ val: { type: $.number, value: r, location: T, style: g.val },
2870
2876
  err: null
2871
2877
  };
2872
2878
  } else {
2873
2879
  if (x.length === 0)
2874
2880
  return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
2875
2881
  var S = x;
2876
- this.locale && (S = Bi(x, this.locale));
2882
+ this.locale && (S = wi(x, this.locale));
2877
2883
  var b = {
2878
- type: $e.dateTime,
2884
+ type: je.dateTime,
2879
2885
  pattern: S,
2880
2886
  location: u.styleLocation,
2881
- parsedOptions: this.shouldParseSkeletons ? gi(S) : {}
2882
- }, D = s === "date" ? j.date : j.time;
2887
+ parsedOptions: this.shouldParseSkeletons ? yi(S) : {}
2888
+ }, P = s === "date" ? $.date : $.time;
2883
2889
  return {
2884
- val: { type: D, value: r, location: T, style: b },
2890
+ val: { type: P, value: r, location: T, style: b },
2885
2891
  err: null
2886
2892
  };
2887
2893
  }
2888
2894
  }
2889
2895
  return {
2890
2896
  val: {
2891
- type: s === "number" ? j.number : s === "date" ? j.date : j.time,
2897
+ type: s === "number" ? $.number : s === "date" ? $.date : $.time,
2892
2898
  value: r,
2893
2899
  location: T,
2894
2900
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
@@ -2901,19 +2907,19 @@ var Ui = (
2901
2907
  case "select": {
2902
2908
  var H = this.clonePosition();
2903
2909
  if (this.bumpSpace(), !this.bumpIf(","))
2904
- return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(H, I({}, H)));
2910
+ return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(H, yt({}, H)));
2905
2911
  this.bumpSpace();
2906
- var U = this.parseIdentifierIfPossible(), W = 0;
2907
- if (s !== "select" && U.value === "offset") {
2912
+ var D = this.parseIdentifierIfPossible(), W = 0;
2913
+ if (s !== "select" && D.value === "offset") {
2908
2914
  if (!this.bumpIf(":"))
2909
2915
  return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
2910
2916
  this.bumpSpace();
2911
2917
  var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2912
2918
  if (g.err)
2913
2919
  return g;
2914
- this.bumpSpace(), U = this.parseIdentifierIfPossible(), W = g.val;
2920
+ this.bumpSpace(), D = this.parseIdentifierIfPossible(), W = g.val;
2915
2921
  }
2916
- var q = this.tryParsePluralOrSelectOptions(t, s, n, U);
2922
+ var q = this.tryParsePluralOrSelectOptions(t, s, n, D);
2917
2923
  if (q.err)
2918
2924
  return q;
2919
2925
  var B = this.tryParseArgumentClose(i);
@@ -2922,17 +2928,17 @@ var Ui = (
2922
2928
  var Y = M(i, this.clonePosition());
2923
2929
  return s === "select" ? {
2924
2930
  val: {
2925
- type: j.select,
2931
+ type: $.select,
2926
2932
  value: r,
2927
- options: bn(q.val),
2933
+ options: vn(q.val),
2928
2934
  location: Y
2929
2935
  },
2930
2936
  err: null
2931
2937
  } : {
2932
2938
  val: {
2933
- type: j.plural,
2939
+ type: $.plural,
2934
2940
  value: r,
2935
- options: bn(q.val),
2941
+ options: vn(q.val),
2936
2942
  offset: W,
2937
2943
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2938
2944
  location: Y
@@ -2983,16 +2989,16 @@ var Ui = (
2983
2989
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2984
2990
  var r = [];
2985
2991
  try {
2986
- r = yi(t);
2992
+ r = Ei(t);
2987
2993
  } catch (i) {
2988
2994
  return this.error(O.INVALID_NUMBER_SKELETON, n);
2989
2995
  }
2990
2996
  return {
2991
2997
  val: {
2992
- type: $e.number,
2998
+ type: je.number,
2993
2999
  tokens: r,
2994
3000
  location: n,
2995
- parsedOptions: this.shouldParseSkeletons ? _i(r) : {}
3001
+ parsedOptions: this.shouldParseSkeletons ? Ti(r) : {}
2996
3002
  },
2997
3003
  err: null
2998
3004
  };
@@ -3040,7 +3046,7 @@ var Ui = (
3040
3046
  break;
3041
3047
  }
3042
3048
  var c = M(i, this.clonePosition());
3043
- return o ? (l *= r, Ni(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
3049
+ return o ? (l *= r, Pi(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
3044
3050
  }, e.prototype.offset = function() {
3045
3051
  return this.position.offset;
3046
3052
  }, e.prototype.isEOF = function() {
@@ -3055,7 +3061,7 @@ var Ui = (
3055
3061
  var t = this.position.offset;
3056
3062
  if (t >= this.message.length)
3057
3063
  throw Error("out of bound");
3058
- var n = Jn(this.message, t);
3064
+ var n = Kn(this.message, t);
3059
3065
  if (n === void 0)
3060
3066
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3061
3067
  return n;
@@ -3074,7 +3080,7 @@ var Ui = (
3074
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);
3075
3081
  }
3076
3082
  }, e.prototype.bumpIf = function(t) {
3077
- if (gn(this.message, t, this.offset())) {
3083
+ if (yn(this.message, t, this.offset())) {
3078
3084
  for (var n = 0; n < t.length; n++)
3079
3085
  this.bump();
3080
3086
  return !0;
@@ -3096,7 +3102,7 @@ var Ui = (
3096
3102
  break;
3097
3103
  }
3098
3104
  }, e.prototype.bumpSpace = function() {
3099
- for (; !this.isEOF() && Kn(this.char()); )
3105
+ for (; !this.isEOF() && tr(this.char()); )
3100
3106
  this.bump();
3101
3107
  }, e.prototype.peek = function() {
3102
3108
  if (this.isEOF())
@@ -3106,47 +3112,47 @@ var Ui = (
3106
3112
  }, e;
3107
3113
  }()
3108
3114
  );
3109
- function Qt(e) {
3115
+ function Yt(e) {
3110
3116
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3111
3117
  }
3112
- function Fi(e) {
3113
- return Qt(e) || e === 47;
3118
+ function $i(e) {
3119
+ return Yt(e) || e === 47;
3114
3120
  }
3115
- function Gi(e) {
3121
+ function ji(e) {
3116
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;
3117
3123
  }
3118
- function Kn(e) {
3124
+ function tr(e) {
3119
3125
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3120
3126
  }
3121
- function $i(e) {
3127
+ function ki(e) {
3122
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;
3123
3129
  }
3124
- function Jt(e) {
3130
+ function Kt(e) {
3125
3131
  e.forEach(function(t) {
3126
- if (delete t.location, kn(t) || Vn(t))
3132
+ if (delete t.location, Xn(t) || zn(t))
3127
3133
  for (var n in t.options)
3128
- delete t.options[n].location, Jt(t.options[n].value);
3134
+ delete t.options[n].location, Kt(t.options[n].value);
3129
3135
  else
3130
- Gn(t) && zn(t.style) || ($n(t) || jn(t)) && zt(t.style) ? delete t.style.location : Xn(t) && Jt(t.children);
3136
+ jn(t) && Zn(t.style) || (kn(t) || Vn(t)) && Zt(t.style) ? delete t.style.location : Wn(t) && Kt(t.children);
3131
3137
  });
3132
3138
  }
3133
- function ji(e, t) {
3134
- t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3135
- var n = new Ui(e, t).parse();
3139
+ function Vi(e, t) {
3140
+ t === void 0 && (t = {}), t = yt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3141
+ var n = new Gi(e, t).parse();
3136
3142
  if (n.err) {
3137
3143
  var r = SyntaxError(O[n.err.kind]);
3138
3144
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3139
3145
  }
3140
- return t != null && t.captureLocation || Jt(n.val), n.val;
3146
+ return t != null && t.captureLocation || Kt(n.val), n.val;
3141
3147
  }
3142
- var je;
3148
+ var ke;
3143
3149
  (function(e) {
3144
3150
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3145
- })(je || (je = {}));
3146
- var xt = (
3151
+ })(ke || (ke = {}));
3152
+ var Bt = (
3147
3153
  /** @class */
3148
3154
  function(e) {
3149
- Et(t, e);
3155
+ _t(t, e);
3150
3156
  function t(n, r, i) {
3151
3157
  var o = e.call(this, n) || this;
3152
3158
  return o.code = r, o.originalMessage = i, o;
@@ -3155,48 +3161,48 @@ var xt = (
3155
3161
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3156
3162
  }, t;
3157
3163
  }(Error)
3158
- ), vn = (
3164
+ ), xn = (
3159
3165
  /** @class */
3160
3166
  function(e) {
3161
- Et(t, e);
3167
+ _t(t, e);
3162
3168
  function t(n, r, i, o) {
3163
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), je.INVALID_VALUE, o) || this;
3169
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ke.INVALID_VALUE, o) || this;
3164
3170
  }
3165
3171
  return t;
3166
- }(xt)
3167
- ), ki = (
3172
+ }(Bt)
3173
+ ), Xi = (
3168
3174
  /** @class */
3169
3175
  function(e) {
3170
- Et(t, e);
3176
+ _t(t, e);
3171
3177
  function t(n, r, i) {
3172
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), je.INVALID_VALUE, i) || this;
3178
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ke.INVALID_VALUE, i) || this;
3173
3179
  }
3174
3180
  return t;
3175
- }(xt)
3176
- ), Vi = (
3181
+ }(Bt)
3182
+ ), zi = (
3177
3183
  /** @class */
3178
3184
  function(e) {
3179
- Et(t, e);
3185
+ _t(t, e);
3180
3186
  function t(n, r) {
3181
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), je.MISSING_VALUE, r) || this;
3187
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ke.MISSING_VALUE, r) || this;
3182
3188
  }
3183
3189
  return t;
3184
- }(xt)
3190
+ }(Bt)
3185
3191
  ), ne;
3186
3192
  (function(e) {
3187
3193
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3188
3194
  })(ne || (ne = {}));
3189
- function Xi(e) {
3195
+ function Wi(e) {
3190
3196
  return e.length < 2 ? e : e.reduce(function(t, n) {
3191
3197
  var r = t[t.length - 1];
3192
3198
  return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
3193
3199
  }, []);
3194
3200
  }
3195
- function zi(e) {
3201
+ function Zi(e) {
3196
3202
  return typeof e == "function";
3197
3203
  }
3198
- function ft(e, t, n, r, i, o, l) {
3199
- if (e.length === 1 && fn(e[0]))
3204
+ function dt(e, t, n, r, i, o, l) {
3205
+ if (e.length === 1 && pn(e[0]))
3200
3206
  return [
3201
3207
  {
3202
3208
  type: ne.literal,
@@ -3205,14 +3211,14 @@ function ft(e, t, n, r, i, o, l) {
3205
3211
  ];
3206
3212
  for (var s = [], c = 0, u = e; c < u.length; c++) {
3207
3213
  var d = u[c];
3208
- if (fn(d)) {
3214
+ if (pn(d)) {
3209
3215
  s.push({
3210
3216
  type: ne.literal,
3211
3217
  value: d.value
3212
3218
  });
3213
3219
  continue;
3214
3220
  }
3215
- if (pi(d)) {
3221
+ if (gi(d)) {
3216
3222
  typeof o == "number" && s.push({
3217
3223
  type: ne.literal,
3218
3224
  value: n.getNumberFormat(t).format(o)
@@ -3221,89 +3227,89 @@ function ft(e, t, n, r, i, o, l) {
3221
3227
  }
3222
3228
  var g = d.value;
3223
3229
  if (!(i && g in i))
3224
- throw new Vi(g, l);
3230
+ throw new zi(g, l);
3225
3231
  var b = i[g];
3226
- if (di(d)) {
3232
+ if (mi(d)) {
3227
3233
  (!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
3228
3234
  type: typeof b == "string" ? ne.literal : ne.object,
3229
3235
  value: b
3230
3236
  });
3231
3237
  continue;
3232
3238
  }
3233
- if ($n(d)) {
3234
- var _ = typeof d.style == "string" ? r.date[d.style] : zt(d.style) ? d.style.parsedOptions : void 0;
3239
+ if (kn(d)) {
3240
+ var _ = typeof d.style == "string" ? r.date[d.style] : Zt(d.style) ? d.style.parsedOptions : void 0;
3235
3241
  s.push({
3236
3242
  type: ne.literal,
3237
3243
  value: n.getDateTimeFormat(t, _).format(b)
3238
3244
  });
3239
3245
  continue;
3240
3246
  }
3241
- if (jn(d)) {
3242
- var _ = typeof d.style == "string" ? r.time[d.style] : zt(d.style) ? d.style.parsedOptions : r.time.medium;
3247
+ if (Vn(d)) {
3248
+ var _ = typeof d.style == "string" ? r.time[d.style] : Zt(d.style) ? d.style.parsedOptions : r.time.medium;
3243
3249
  s.push({
3244
3250
  type: ne.literal,
3245
3251
  value: n.getDateTimeFormat(t, _).format(b)
3246
3252
  });
3247
3253
  continue;
3248
3254
  }
3249
- if (Gn(d)) {
3250
- var _ = typeof d.style == "string" ? r.number[d.style] : zn(d.style) ? d.style.parsedOptions : void 0;
3255
+ if (jn(d)) {
3256
+ var _ = typeof d.style == "string" ? r.number[d.style] : Zn(d.style) ? d.style.parsedOptions : void 0;
3251
3257
  _ && _.scale && (b = b * (_.scale || 1)), s.push({
3252
3258
  type: ne.literal,
3253
3259
  value: n.getNumberFormat(t, _).format(b)
3254
3260
  });
3255
3261
  continue;
3256
3262
  }
3257
- if (Xn(d)) {
3263
+ if (Wn(d)) {
3258
3264
  var B = d.children, T = d.value, x = i[T];
3259
- if (!zi(x))
3260
- throw new ki(T, "function", l);
3261
- var S = ft(B, t, n, r, i, o), D = x(S.map(function(W) {
3265
+ if (!Zi(x))
3266
+ throw new Xi(T, "function", l);
3267
+ var S = dt(B, t, n, r, i, o), P = x(S.map(function(W) {
3262
3268
  return W.value;
3263
3269
  }));
3264
- Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(W) {
3270
+ Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(W) {
3265
3271
  return {
3266
3272
  type: typeof W == "string" ? ne.literal : ne.object,
3267
3273
  value: W
3268
3274
  };
3269
3275
  }));
3270
3276
  }
3271
- if (kn(d)) {
3277
+ if (Xn(d)) {
3272
3278
  var H = d.options[b] || d.options.other;
3273
3279
  if (!H)
3274
- throw new vn(d.value, b, Object.keys(d.options), l);
3275
- s.push.apply(s, ft(H.value, t, n, r, i));
3280
+ throw new xn(d.value, b, Object.keys(d.options), l);
3281
+ s.push.apply(s, dt(H.value, t, n, r, i));
3276
3282
  continue;
3277
3283
  }
3278
- if (Vn(d)) {
3284
+ if (zn(d)) {
3279
3285
  var H = d.options["=".concat(b)];
3280
3286
  if (!H) {
3281
3287
  if (!Intl.PluralRules)
3282
- throw new xt(`Intl.PluralRules is not available in this environment.
3288
+ throw new Bt(`Intl.PluralRules is not available in this environment.
3283
3289
  Try polyfilling it using "@formatjs/intl-pluralrules"
3284
- `, je.MISSING_INTL_API, l);
3285
- var U = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
3286
- H = d.options[U] || d.options.other;
3290
+ `, ke.MISSING_INTL_API, l);
3291
+ var D = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
3292
+ H = d.options[D] || d.options.other;
3287
3293
  }
3288
3294
  if (!H)
3289
- throw new vn(d.value, b, Object.keys(d.options), l);
3290
- s.push.apply(s, ft(H.value, t, n, r, i, b - (d.offset || 0)));
3295
+ throw new xn(d.value, b, Object.keys(d.options), l);
3296
+ s.push.apply(s, dt(H.value, t, n, r, i, b - (d.offset || 0)));
3291
3297
  continue;
3292
3298
  }
3293
3299
  }
3294
- return Xi(s);
3300
+ return Wi(s);
3295
3301
  }
3296
- function Wi(e, t) {
3297
- return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3298
- return n[r] = I(I({}, e[r]), t[r] || {}), n;
3302
+ function qi(e, t) {
3303
+ return t ? ge(ge(ge({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3304
+ return n[r] = ge(ge({}, e[r]), t[r] || {}), n;
3299
3305
  }, {})) : e;
3300
3306
  }
3301
- function Zi(e, t) {
3307
+ function Qi(e, t) {
3302
3308
  return t ? Object.keys(e).reduce(function(n, r) {
3303
- return n[r] = Wi(e[r], t[r]), n;
3304
- }, I({}, e)) : e;
3309
+ return n[r] = qi(e[r], t[r]), n;
3310
+ }, ge({}, e)) : e;
3305
3311
  }
3306
- function Gt(e) {
3312
+ function jt(e) {
3307
3313
  return {
3308
3314
  create: function() {
3309
3315
  return {
@@ -3317,39 +3323,39 @@ function Gt(e) {
3317
3323
  }
3318
3324
  };
3319
3325
  }
3320
- function qi(e) {
3326
+ function Ji(e) {
3321
3327
  return e === void 0 && (e = {
3322
3328
  number: {},
3323
3329
  dateTime: {},
3324
3330
  pluralRules: {}
3325
3331
  }), {
3326
- getNumberFormat: Dt(function() {
3332
+ getNumberFormat: Ft(function() {
3327
3333
  for (var t, n = [], r = 0; r < arguments.length; r++)
3328
3334
  n[r] = arguments[r];
3329
- return new ((t = Intl.NumberFormat).bind.apply(t, Pt([void 0], n, !1)))();
3335
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ut([void 0], n, !1)))();
3330
3336
  }, {
3331
- cache: Gt(e.number),
3332
- strategy: Ut.variadic
3337
+ cache: jt(e.number),
3338
+ strategy: Gt.variadic
3333
3339
  }),
3334
- getDateTimeFormat: Dt(function() {
3340
+ getDateTimeFormat: Ft(function() {
3335
3341
  for (var t, n = [], r = 0; r < arguments.length; r++)
3336
3342
  n[r] = arguments[r];
3337
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Pt([void 0], n, !1)))();
3343
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ut([void 0], n, !1)))();
3338
3344
  }, {
3339
- cache: Gt(e.dateTime),
3340
- strategy: Ut.variadic
3345
+ cache: jt(e.dateTime),
3346
+ strategy: Gt.variadic
3341
3347
  }),
3342
- getPluralRules: Dt(function() {
3348
+ getPluralRules: Ft(function() {
3343
3349
  for (var t, n = [], r = 0; r < arguments.length; r++)
3344
3350
  n[r] = arguments[r];
3345
- return new ((t = Intl.PluralRules).bind.apply(t, Pt([void 0], n, !1)))();
3351
+ return new ((t = Intl.PluralRules).bind.apply(t, Ut([void 0], n, !1)))();
3346
3352
  }, {
3347
- cache: Gt(e.pluralRules),
3348
- strategy: Ut.variadic
3353
+ cache: jt(e.pluralRules),
3354
+ strategy: Gt.variadic
3349
3355
  })
3350
3356
  };
3351
3357
  }
3352
- var Qi = (
3358
+ var Yi = (
3353
3359
  /** @class */
3354
3360
  function() {
3355
3361
  function e(t, n, r, i) {
@@ -3368,7 +3374,7 @@ var Qi = (
3368
3374
  }, []);
3369
3375
  return d.length <= 1 ? d[0] || "" : d;
3370
3376
  }, this.formatToParts = function(c) {
3371
- return ft(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3377
+ return dt(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
3372
3378
  }, this.resolvedOptions = function() {
3373
3379
  var c;
3374
3380
  return {
@@ -3381,13 +3387,13 @@ var Qi = (
3381
3387
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3382
3388
  var l = i || {};
3383
3389
  l.formatters;
3384
- var s = oi(l, ["formatters"]);
3385
- this.ast = e.__parse(t, I(I({}, s), { locale: this.resolvedLocale }));
3390
+ var s = si(l, ["formatters"]);
3391
+ this.ast = e.__parse(t, ge(ge({}, s), { locale: this.resolvedLocale }));
3386
3392
  } else
3387
3393
  this.ast = t;
3388
3394
  if (!Array.isArray(this.ast))
3389
3395
  throw new TypeError("A message must be provided as a String or AST.");
3390
- this.formats = Zi(e.formats, r), this.formatters = i && i.formatters || qi(this.formatterCache);
3396
+ this.formats = Qi(e.formats, r), this.formatters = i && i.formatters || Ji(this.formatterCache);
3391
3397
  }
3392
3398
  return Object.defineProperty(e, "defaultLocale", {
3393
3399
  get: function() {
@@ -3400,7 +3406,7 @@ var Qi = (
3400
3406
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3401
3407
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3402
3408
  }
3403
- }, e.__parse = ji, e.formats = {
3409
+ }, e.__parse = Vi, e.formats = {
3404
3410
  number: {
3405
3411
  integer: {
3406
3412
  maximumFractionDigits: 0
@@ -3461,7 +3467,7 @@ var Qi = (
3461
3467
  }, e;
3462
3468
  }()
3463
3469
  );
3464
- function Ji(e, t) {
3470
+ function Ki(e, t) {
3465
3471
  if (t == null)
3466
3472
  return;
3467
3473
  if (t in e)
@@ -3482,92 +3488,92 @@ function Ji(e, t) {
3482
3488
  r = void 0;
3483
3489
  return r;
3484
3490
  }
3485
- const Se = {}, Yi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), er = (e, t) => {
3491
+ const Ae = {}, eo = (e, t, n) => n && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = n), n), nr = (e, t) => {
3486
3492
  if (t == null)
3487
3493
  return;
3488
- if (t in Se && e in Se[t])
3489
- return Se[t][e];
3490
- const n = _t(t);
3494
+ if (t in Ae && e in Ae[t])
3495
+ return Ae[t][e];
3496
+ const n = Tt(t);
3491
3497
  for (let r = 0; r < n.length; r++) {
3492
- const i = n[r], o = eo(i, e);
3498
+ const i = n[r], o = no(i, e);
3493
3499
  if (o)
3494
- return Yi(e, t, o);
3500
+ return eo(e, t, o);
3495
3501
  }
3496
3502
  };
3497
- let nn;
3498
- const it = vt({});
3499
- function Ki(e) {
3500
- return nn[e] || null;
3503
+ let on;
3504
+ const ot = xt({});
3505
+ function to(e) {
3506
+ return on[e] || null;
3501
3507
  }
3502
- function tr(e) {
3503
- return e in nn;
3508
+ function rr(e) {
3509
+ return e in on;
3504
3510
  }
3505
- function eo(e, t) {
3506
- if (!tr(e))
3511
+ function no(e, t) {
3512
+ if (!rr(e))
3507
3513
  return null;
3508
- const n = Ki(e);
3509
- return Ji(n, t);
3514
+ const n = to(e);
3515
+ return Ki(n, t);
3510
3516
  }
3511
- function to(e) {
3517
+ function ro(e) {
3512
3518
  if (e == null)
3513
3519
  return;
3514
- const t = _t(e);
3520
+ const t = Tt(e);
3515
3521
  for (let n = 0; n < t.length; n++) {
3516
3522
  const r = t[n];
3517
- if (tr(r))
3523
+ if (rr(r))
3518
3524
  return r;
3519
3525
  }
3520
3526
  }
3521
- function nr(e, ...t) {
3522
- delete Se[e], it.update((n) => (n[e] = ii.all([n[e] || {}, ...t]), n));
3527
+ function ir(e, ...t) {
3528
+ delete Ae[e], ot.update((n) => (n[e] = ai.all([n[e] || {}, ...t]), n));
3523
3529
  }
3524
- Xe(
3525
- [it],
3530
+ ze(
3531
+ [ot],
3526
3532
  ([e]) => Object.keys(e)
3527
3533
  );
3528
- it.subscribe((e) => nn = e);
3529
- const dt = {};
3530
- function no(e, t) {
3531
- dt[e].delete(t), dt[e].size === 0 && delete dt[e];
3534
+ ot.subscribe((e) => on = e);
3535
+ const pt = {};
3536
+ function io(e, t) {
3537
+ pt[e].delete(t), pt[e].size === 0 && delete pt[e];
3532
3538
  }
3533
- function rr(e) {
3534
- return dt[e];
3539
+ function or(e) {
3540
+ return pt[e];
3535
3541
  }
3536
- function ro(e) {
3537
- return _t(e).map((t) => {
3538
- const n = rr(t);
3542
+ function oo(e) {
3543
+ return Tt(e).map((t) => {
3544
+ const n = or(t);
3539
3545
  return [t, n ? [...n] : []];
3540
3546
  }).filter(([, t]) => t.length > 0);
3541
3547
  }
3542
- function Yt(e) {
3543
- return e == null ? !1 : _t(e).some(
3548
+ function en(e) {
3549
+ return e == null ? !1 : Tt(e).some(
3544
3550
  (t) => {
3545
3551
  var n;
3546
- return (n = rr(t)) == null ? void 0 : n.size;
3552
+ return (n = or(t)) == null ? void 0 : n.size;
3547
3553
  }
3548
3554
  );
3549
3555
  }
3550
- function io(e, t) {
3556
+ function ao(e, t) {
3551
3557
  return Promise.all(
3552
- t.map((r) => (no(e, r), r().then((i) => i.default || i)))
3553
- ).then((r) => nr(e, ...r));
3554
- }
3555
- const Ke = {};
3556
- function ir(e) {
3557
- if (!Yt(e))
3558
- return e in Ke ? Ke[e] : Promise.resolve();
3559
- const t = ro(e);
3560
- return Ke[e] = Promise.all(
3558
+ t.map((r) => (io(e, r), r().then((i) => i.default || i)))
3559
+ ).then((r) => ir(e, ...r));
3560
+ }
3561
+ const et = {};
3562
+ function ar(e) {
3563
+ if (!en(e))
3564
+ return e in et ? et[e] : Promise.resolve();
3565
+ const t = oo(e);
3566
+ return et[e] = Promise.all(
3561
3567
  t.map(
3562
- ([n, r]) => io(n, r)
3568
+ ([n, r]) => ao(n, r)
3563
3569
  )
3564
3570
  ).then(() => {
3565
- if (Yt(e))
3566
- return ir(e);
3567
- delete Ke[e];
3568
- }), Ke[e];
3571
+ if (en(e))
3572
+ return ar(e);
3573
+ delete et[e];
3574
+ }), et[e];
3569
3575
  }
3570
- const oo = {
3576
+ const so = {
3571
3577
  number: {
3572
3578
  scientific: { notation: "scientific" },
3573
3579
  engineering: { notation: "engineering" },
@@ -3596,150 +3602,150 @@ const oo = {
3596
3602
  timeZoneName: "short"
3597
3603
  }
3598
3604
  }
3599
- }, ao = {
3605
+ }, lo = {
3600
3606
  fallbackLocale: null,
3601
3607
  loadingDelay: 200,
3602
- formats: oo,
3608
+ formats: so,
3603
3609
  warnOnMissingMessages: !0,
3604
3610
  handleMissingMessage: void 0,
3605
3611
  ignoreTag: !0
3606
- }, so = ao;
3607
- function ke() {
3608
- return so;
3612
+ }, uo = lo;
3613
+ function Ve() {
3614
+ return uo;
3609
3615
  }
3610
- const $t = vt(!1);
3611
- var lo = Object.defineProperty, uo = Object.defineProperties, co = Object.getOwnPropertyDescriptors, En = Object.getOwnPropertySymbols, ho = Object.prototype.hasOwnProperty, fo = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, po = (e, t) => {
3616
+ const kt = xt(!1);
3617
+ var co = Object.defineProperty, ho = Object.defineProperties, fo = Object.getOwnPropertyDescriptors, _n = Object.getOwnPropertySymbols, po = Object.prototype.hasOwnProperty, mo = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, go = (e, t) => {
3612
3618
  for (var n in t || (t = {}))
3613
- ho.call(t, n) && xn(e, n, t[n]);
3614
- if (En)
3615
- for (var n of En(t))
3616
- fo.call(t, n) && xn(e, n, t[n]);
3619
+ po.call(t, n) && Bn(e, n, t[n]);
3620
+ if (_n)
3621
+ for (var n of _n(t))
3622
+ mo.call(t, n) && Bn(e, n, t[n]);
3617
3623
  return e;
3618
- }, mo = (e, t) => uo(e, co(t));
3619
- let Kt;
3620
- const bt = vt(null);
3621
- function _n(e) {
3624
+ }, bo = (e, t) => ho(e, fo(t));
3625
+ let tn;
3626
+ const vt = xt(null);
3627
+ function Tn(e) {
3622
3628
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3623
3629
  }
3624
- function _t(e, t = ke().fallbackLocale) {
3625
- const n = _n(e);
3626
- return t ? [.../* @__PURE__ */ new Set([...n, ..._n(t)])] : n;
3630
+ function Tt(e, t = Ve().fallbackLocale) {
3631
+ const n = Tn(e);
3632
+ return t ? [.../* @__PURE__ */ new Set([...n, ...Tn(t)])] : n;
3627
3633
  }
3628
- function Oe() {
3629
- return Kt != null ? Kt : void 0;
3634
+ function Re() {
3635
+ return tn != null ? tn : void 0;
3630
3636
  }
3631
- bt.subscribe((e) => {
3632
- Kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3637
+ vt.subscribe((e) => {
3638
+ tn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3633
3639
  });
3634
- const go = (e) => {
3635
- if (e && to(e) && Yt(e)) {
3636
- const { loadingDelay: t } = ke();
3640
+ const yo = (e) => {
3641
+ if (e && ro(e) && en(e)) {
3642
+ const { loadingDelay: t } = Ve();
3637
3643
  let n;
3638
- return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
3639
- () => $t.set(!0),
3644
+ return typeof window != "undefined" && Re() != null && t ? n = window.setTimeout(
3645
+ () => kt.set(!0),
3640
3646
  t
3641
- ) : $t.set(!0), ir(e).then(() => {
3642
- bt.set(e);
3647
+ ) : kt.set(!0), ar(e).then(() => {
3648
+ vt.set(e);
3643
3649
  }).finally(() => {
3644
- clearTimeout(n), $t.set(!1);
3650
+ clearTimeout(n), kt.set(!1);
3645
3651
  });
3646
3652
  }
3647
- return bt.set(e);
3648
- }, ze = mo(po({}, bt), {
3649
- set: go
3650
- }), Bt = (e) => {
3653
+ return vt.set(e);
3654
+ }, We = bo(go({}, vt), {
3655
+ set: yo
3656
+ }), wt = (e) => {
3651
3657
  const t = /* @__PURE__ */ Object.create(null);
3652
3658
  return (r) => {
3653
3659
  const i = JSON.stringify(r);
3654
3660
  return i in t ? t[i] : t[i] = e(r);
3655
3661
  };
3656
3662
  };
3657
- var bo = Object.defineProperty, yt = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rn = (e, t) => {
3663
+ var vo = Object.defineProperty, Et = Object.getOwnPropertySymbols, sr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, wn = (e, t, n) => t in e ? vo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, an = (e, t) => {
3658
3664
  for (var n in t || (t = {}))
3659
- or.call(t, n) && Bn(e, n, t[n]);
3660
- if (yt)
3661
- for (var n of yt(t))
3662
- ar.call(t, n) && Bn(e, n, t[n]);
3665
+ sr.call(t, n) && wn(e, n, t[n]);
3666
+ if (Et)
3667
+ for (var n of Et(t))
3668
+ lr.call(t, n) && wn(e, n, t[n]);
3663
3669
  return e;
3664
- }, We = (e, t) => {
3670
+ }, Ze = (e, t) => {
3665
3671
  var n = {};
3666
3672
  for (var r in e)
3667
- or.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3668
- if (e != null && yt)
3669
- for (var r of yt(e))
3670
- t.indexOf(r) < 0 && ar.call(e, r) && (n[r] = e[r]);
3673
+ sr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3674
+ if (e != null && Et)
3675
+ for (var r of Et(e))
3676
+ t.indexOf(r) < 0 && lr.call(e, r) && (n[r] = e[r]);
3671
3677
  return n;
3672
3678
  };
3673
- const rt = (e, t) => {
3674
- const { formats: n } = ke();
3679
+ const it = (e, t) => {
3680
+ const { formats: n } = Ve();
3675
3681
  if (e in n && t in n[e])
3676
3682
  return n[e][t];
3677
3683
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3678
- }, yo = Bt(
3684
+ }, Eo = wt(
3679
3685
  (e) => {
3680
- var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3686
+ var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3681
3687
  if (n == null)
3682
3688
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3683
- return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
3689
+ return r && (i = it("number", r)), new Intl.NumberFormat(n, i);
3684
3690
  }
3685
- ), vo = Bt(
3691
+ ), xo = wt(
3686
3692
  (e) => {
3687
- var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3693
+ var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3688
3694
  if (n == null)
3689
3695
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3690
- return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
3696
+ return r ? i = it("date", r) : Object.keys(i).length === 0 && (i = it("date", "short")), new Intl.DateTimeFormat(n, i);
3691
3697
  }
3692
- ), Eo = Bt(
3698
+ ), _o = wt(
3693
3699
  (e) => {
3694
- var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
3700
+ var t = e, { locale: n, format: r } = t, i = Ze(t, ["locale", "format"]);
3695
3701
  if (n == null)
3696
3702
  throw new Error(
3697
3703
  '[svelte-i18n] A "locale" must be set to format time values'
3698
3704
  );
3699
- return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
3705
+ return r ? i = it("time", r) : Object.keys(i).length === 0 && (i = it("time", "short")), new Intl.DateTimeFormat(n, i);
3700
3706
  }
3701
- ), xo = (e = {}) => {
3707
+ ), Bo = (e = {}) => {
3702
3708
  var t = e, {
3703
- locale: n = Oe()
3704
- } = t, r = We(t, [
3709
+ locale: n = Re()
3710
+ } = t, r = Ze(t, [
3705
3711
  "locale"
3706
3712
  ]);
3707
- return yo(rn({ locale: n }, r));
3708
- }, _o = (e = {}) => {
3713
+ return Eo(an({ locale: n }, r));
3714
+ }, To = (e = {}) => {
3709
3715
  var t = e, {
3710
- locale: n = Oe()
3711
- } = t, r = We(t, [
3716
+ locale: n = Re()
3717
+ } = t, r = Ze(t, [
3712
3718
  "locale"
3713
3719
  ]);
3714
- return vo(rn({ locale: n }, r));
3715
- }, Bo = (e = {}) => {
3720
+ return xo(an({ locale: n }, r));
3721
+ }, wo = (e = {}) => {
3716
3722
  var t = e, {
3717
- locale: n = Oe()
3718
- } = t, r = We(t, [
3723
+ locale: n = Re()
3724
+ } = t, r = Ze(t, [
3719
3725
  "locale"
3720
3726
  ]);
3721
- return Eo(rn({ locale: n }, r));
3722
- }, To = Bt(
3727
+ return _o(an({ locale: n }, r));
3728
+ }, So = wt(
3723
3729
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3724
- (e, t = Oe()) => new Qi(e, t, ke().formats, {
3725
- ignoreTag: ke().ignoreTag
3730
+ (e, t = Re()) => new Yi(e, t, Ve().formats, {
3731
+ ignoreTag: Ve().ignoreTag
3726
3732
  })
3727
- ), wo = (e, t = {}) => {
3733
+ ), Ao = (e, t = {}) => {
3728
3734
  var n, r, i, o;
3729
3735
  let l = t;
3730
3736
  typeof e == "object" && (l = e, e = l.id);
3731
3737
  const {
3732
3738
  values: s,
3733
- locale: c = Oe(),
3739
+ locale: c = Re(),
3734
3740
  default: u
3735
3741
  } = l;
3736
3742
  if (c == null)
3737
3743
  throw new Error(
3738
3744
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3739
3745
  );
3740
- let d = er(e, c);
3746
+ let d = nr(e, c);
3741
3747
  if (!d)
3742
- d = (o = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3748
+ d = (o = (i = (r = (n = Ve()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3743
3749
  else if (typeof d != "string")
3744
3750
  return console.warn(
3745
3751
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3748,7 +3754,7 @@ const rt = (e, t) => {
3748
3754
  return d;
3749
3755
  let g = d;
3750
3756
  try {
3751
- g = To(d, c).format(s);
3757
+ g = So(d, c).format(s);
3752
3758
  } catch (b) {
3753
3759
  b instanceof Error && console.warn(
3754
3760
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3756,18 +3762,18 @@ const rt = (e, t) => {
3756
3762
  );
3757
3763
  }
3758
3764
  return g;
3759
- }, So = (e, t) => Bo(t).format(e), Ao = (e, t) => _o(t).format(e), Co = (e, t) => xo(t).format(e), Ho = (e, t = Oe()) => er(e, t), Oo = Xe([ze, it], () => wo);
3760
- Xe([ze], () => So);
3761
- Xe([ze], () => Ao);
3762
- Xe([ze], () => Co);
3763
- Xe([ze, it], () => Ho);
3764
- function Tn(e, t) {
3765
- nr(e, t);
3766
- }
3767
- function Ro(e) {
3768
- ze.set(e);
3769
- }
3770
- const wn = {
3765
+ }, Co = (e, t) => wo(t).format(e), Ho = (e, t) => To(t).format(e), Oo = (e, t) => Bo(t).format(e), Ro = (e, t = Re()) => nr(e, t), Lo = ze([We, ot], () => Ao);
3766
+ ze([We], () => Co);
3767
+ ze([We], () => Ho);
3768
+ ze([We], () => Oo);
3769
+ ze([We, ot], () => Ro);
3770
+ function Sn(e, t) {
3771
+ ir(e, t);
3772
+ }
3773
+ function Mo(e) {
3774
+ We.set(e);
3775
+ }
3776
+ const An = {
3771
3777
  en: {
3772
3778
  Title: "Your Balance",
3773
3779
  Total: "Total Balance",
@@ -3967,7 +3973,7 @@ const wn = {
3967
3973
  Loading: "Loading ..."
3968
3974
  }
3969
3975
  };
3970
- var en = { exports: {} };
3976
+ var nn = { exports: {} };
3971
3977
  /** @license
3972
3978
  * eventsource.js
3973
3979
  * Available under MIT License (MIT)
@@ -4016,21 +4022,21 @@ var en = { exports: {} };
4016
4022
  this.bitsNeeded = 0, this.codePoint = 0;
4017
4023
  }
4018
4024
  S.prototype.decode = function(a) {
4019
- function f(P, G, w) {
4025
+ function f(I, F, w) {
4020
4026
  if (w === 1)
4021
- return P >= 128 >> G && P << G <= 2047;
4027
+ return I >= 128 >> F && I << F <= 2047;
4022
4028
  if (w === 2)
4023
- return P >= 2048 >> G && P << G <= 55295 || P >= 57344 >> G && P << G <= 65535;
4029
+ return I >= 2048 >> F && I << F <= 55295 || I >= 57344 >> F && I << F <= 65535;
4024
4030
  if (w === 3)
4025
- return P >= 65536 >> G && P << G <= 1114111;
4031
+ return I >= 65536 >> F && I << F <= 1114111;
4026
4032
  throw new Error();
4027
4033
  }
4028
- function p(P, G) {
4029
- if (P === 6 * 1)
4030
- return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
4031
- if (P === 6 * 2)
4032
- return G > 15 ? 3 : 2;
4033
- if (P === 6 * 3)
4034
+ function p(I, F) {
4035
+ if (I === 6 * 1)
4036
+ return F >> 6 > 15 ? 3 : F > 31 ? 2 : 1;
4037
+ if (I === 6 * 2)
4038
+ return F > 15 ? 3 : 2;
4039
+ if (I === 6 * 3)
4034
4040
  return 3;
4035
4041
  throw new Error();
4036
4042
  }
@@ -4040,7 +4046,7 @@ var en = { exports: {} };
4040
4046
  }
4041
4047
  return this.bitsNeeded = v, this.codePoint = m, E;
4042
4048
  };
4043
- var D = function() {
4049
+ var P = function() {
4044
4050
  try {
4045
4051
  return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
4046
4052
  } catch (a) {
@@ -4048,13 +4054,13 @@ var en = { exports: {} };
4048
4054
  }
4049
4055
  return !1;
4050
4056
  };
4051
- (_ == null || B == null || !D()) && (_ = S);
4057
+ (_ == null || B == null || !P()) && (_ = S);
4052
4058
  var H = function() {
4053
4059
  };
4054
- function U(a) {
4060
+ function D(a) {
4055
4061
  this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = H, this.onload = H, this.onerror = H, this.onreadystatechange = H, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = H;
4056
4062
  }
4057
- U.prototype.open = function(a, f) {
4063
+ D.prototype.open = function(a, f) {
4058
4064
  this._abort(!0);
4059
4065
  var p = this, h = this._xhr, E = 1, v = 0;
4060
4066
  this._abort = function(w) {
@@ -4062,16 +4068,16 @@ var en = { exports: {} };
4062
4068
  };
4063
4069
  var m = function() {
4064
4070
  if (E === 1) {
4065
- var w = 0, V = "", be = void 0;
4071
+ var w = 0, k = "", ye = void 0;
4066
4072
  if ("contentType" in h)
4067
- w = 200, V = "OK", be = h.contentType;
4073
+ w = 200, k = "OK", ye = h.contentType;
4068
4074
  else
4069
4075
  try {
4070
- w = h.status, V = h.statusText, be = h.getResponseHeader("Content-Type");
4071
- } catch (Je) {
4072
- w = 0, V = "", be = void 0;
4076
+ w = h.status, k = h.statusText, ye = h.getResponseHeader("Content-Type");
4077
+ } catch (Ye) {
4078
+ w = 0, k = "", ye = void 0;
4073
4079
  }
4074
- w !== 0 && (E = 2, p.readyState = 2, p.status = w, p.statusText = V, p._contentType = be, p.onreadystatechange());
4080
+ w !== 0 && (E = 2, p.readyState = 2, p.status = w, p.statusText = k, p._contentType = ye, p.onreadystatechange());
4075
4081
  }
4076
4082
  }, L = function() {
4077
4083
  if (m(), E === 2 || E === 3) {
@@ -4079,29 +4085,29 @@ var en = { exports: {} };
4079
4085
  var w = "";
4080
4086
  try {
4081
4087
  w = h.responseText;
4082
- } catch (V) {
4088
+ } catch (k) {
4083
4089
  }
4084
4090
  p.readyState = 3, p.responseText = w, p.onprogress();
4085
4091
  }
4086
- }, A = function(w, V) {
4087
- if ((V == null || V.preventDefault == null) && (V = {
4092
+ }, A = function(w, k) {
4093
+ if ((k == null || k.preventDefault == null) && (k = {
4088
4094
  preventDefault: H
4089
4095
  }), L(), E === 1 || E === 2 || E === 3) {
4090
4096
  if (E = 4, v !== 0 && (i(v), v = 0), p.readyState = 4, w === "load")
4091
- p.onload(V);
4097
+ p.onload(k);
4092
4098
  else if (w === "error")
4093
- p.onerror(V);
4099
+ p.onerror(k);
4094
4100
  else if (w === "abort")
4095
- p.onabort(V);
4101
+ p.onabort(k);
4096
4102
  else
4097
4103
  throw new TypeError();
4098
4104
  p.onreadystatechange();
4099
4105
  }
4100
- }, P = function(w) {
4106
+ }, I = function(w) {
4101
4107
  h != null && (h.readyState === 4 ? (!("onload" in h) || !("onerror" in h) || !("onabort" in h)) && A(h.responseText === "" ? "error" : "load", w) : h.readyState === 3 ? "onprogress" in h || L() : h.readyState === 2 && m());
4102
- }, G = function() {
4108
+ }, F = function() {
4103
4109
  v = r(function() {
4104
- G();
4110
+ F();
4105
4111
  }, 500), h.readyState === 3 && L();
4106
4112
  };
4107
4113
  "onload" in h && (h.onload = function(w) {
@@ -4111,20 +4117,20 @@ var en = { exports: {} };
4111
4117
  }), "onabort" in h && (h.onabort = function(w) {
4112
4118
  A("abort", w);
4113
4119
  }), "onprogress" in h && (h.onprogress = L), "onreadystatechange" in h && (h.onreadystatechange = function(w) {
4114
- P(w);
4120
+ I(w);
4115
4121
  }), ("contentType" in h || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(a, f, !0), "readyState" in h && (v = r(function() {
4116
- G();
4122
+ F();
4117
4123
  }, 0));
4118
- }, U.prototype.abort = function() {
4124
+ }, D.prototype.abort = function() {
4119
4125
  this._abort(!1);
4120
- }, U.prototype.getResponseHeader = function(a) {
4126
+ }, D.prototype.getResponseHeader = function(a) {
4121
4127
  return this._contentType;
4122
- }, U.prototype.setRequestHeader = function(a, f) {
4128
+ }, D.prototype.setRequestHeader = function(a, f) {
4123
4129
  var p = this._xhr;
4124
4130
  "setRequestHeader" in p && p.setRequestHeader(a, f);
4125
- }, U.prototype.getAllResponseHeaders = function() {
4131
+ }, D.prototype.getAllResponseHeaders = function() {
4126
4132
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4127
- }, U.prototype.send = function() {
4133
+ }, D.prototype.send = function() {
4128
4134
  if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4129
4135
  var a = this;
4130
4136
  a._sendTimeout = r(function() {
@@ -4162,54 +4168,54 @@ var en = { exports: {} };
4162
4168
  a.open("GET", E);
4163
4169
  var L = 0;
4164
4170
  a.onprogress = function() {
4165
- var P = a.responseText, G = P.slice(L);
4166
- L += G.length, p(G);
4167
- }, a.onerror = function(P) {
4168
- P.preventDefault(), h(new Error("NetworkError"));
4171
+ var I = a.responseText, F = I.slice(L);
4172
+ L += F.length, p(F);
4173
+ }, a.onerror = function(I) {
4174
+ I.preventDefault(), h(new Error("NetworkError"));
4169
4175
  }, a.onload = function() {
4170
4176
  h(null);
4171
4177
  }, a.onabort = function() {
4172
4178
  h(null);
4173
4179
  }, a.onreadystatechange = function() {
4174
4180
  if (a.readyState === o.HEADERS_RECEIVED) {
4175
- var P = a.status, G = a.statusText, w = a.getResponseHeader("Content-Type"), V = a.getAllResponseHeaders();
4176
- f(P, G, w, new q(V));
4181
+ var I = a.status, F = a.statusText, w = a.getResponseHeader("Content-Type"), k = a.getAllResponseHeaders();
4182
+ f(I, F, w, new q(k));
4177
4183
  }
4178
4184
  }, a.withCredentials = v;
4179
4185
  for (var A in m)
4180
4186
  Object.prototype.hasOwnProperty.call(m, A) && a.setRequestHeader(A, m[A]);
4181
4187
  return a.send(), a;
4182
4188
  };
4183
- function $(a) {
4189
+ function G(a) {
4184
4190
  this._headers = a;
4185
4191
  }
4186
- $.prototype.get = function(a) {
4192
+ G.prototype.get = function(a) {
4187
4193
  return this._headers.get(a);
4188
4194
  };
4189
4195
  function R() {
4190
4196
  }
4191
4197
  R.prototype.open = function(a, f, p, h, E, v, m) {
4192
- var L = null, A = new T(), P = A.signal, G = new _();
4198
+ var L = null, A = new T(), I = A.signal, F = new _();
4193
4199
  return g(E, {
4194
4200
  headers: m,
4195
4201
  credentials: v ? "include" : "same-origin",
4196
- signal: P,
4202
+ signal: I,
4197
4203
  cache: "no-store"
4198
4204
  }).then(function(w) {
4199
- return L = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new $(w.headers)), new d(function(V, be) {
4200
- var Je = function() {
4205
+ return L = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new G(w.headers)), new d(function(k, ye) {
4206
+ var Ye = function() {
4201
4207
  L.read().then(function(ie) {
4202
4208
  if (ie.done)
4203
- V(void 0);
4209
+ k(void 0);
4204
4210
  else {
4205
- var K = G.decode(ie.value, { stream: !0 });
4206
- p(K), Je();
4211
+ var K = F.decode(ie.value, { stream: !0 });
4212
+ p(K), Ye();
4207
4213
  }
4208
4214
  }).catch(function(ie) {
4209
- be(ie);
4215
+ ye(ie);
4210
4216
  });
4211
4217
  };
4212
- Je();
4218
+ Ye();
4213
4219
  });
4214
4220
  }).catch(function(w) {
4215
4221
  if (w.name !== "AbortError")
@@ -4222,15 +4228,15 @@ var en = { exports: {} };
4222
4228
  }
4223
4229
  };
4224
4230
  };
4225
- function X() {
4231
+ function V() {
4226
4232
  this._listeners = /* @__PURE__ */ Object.create(null);
4227
4233
  }
4228
- function F(a) {
4234
+ function U(a) {
4229
4235
  r(function() {
4230
4236
  throw a;
4231
4237
  }, 0);
4232
4238
  }
4233
- X.prototype.dispatchEvent = function(a) {
4239
+ V.prototype.dispatchEvent = function(a) {
4234
4240
  a.target = this;
4235
4241
  var f = this._listeners[a.type];
4236
4242
  if (f != null)
@@ -4239,17 +4245,17 @@ var en = { exports: {} };
4239
4245
  try {
4240
4246
  typeof E.handleEvent == "function" ? E.handleEvent(a) : E.call(this, a);
4241
4247
  } catch (v) {
4242
- F(v);
4248
+ U(v);
4243
4249
  }
4244
4250
  }
4245
- }, X.prototype.addEventListener = function(a, f) {
4251
+ }, V.prototype.addEventListener = function(a, f) {
4246
4252
  a = String(a);
4247
4253
  var p = this._listeners, h = p[a];
4248
4254
  h == null && (h = [], p[a] = h);
4249
4255
  for (var E = !1, v = 0; v < h.length; v += 1)
4250
4256
  h[v] === f && (E = !0);
4251
4257
  E || h.push(f);
4252
- }, X.prototype.removeEventListener = function(a, f) {
4258
+ }, V.prototype.removeEventListener = function(a, f) {
4253
4259
  a = String(a);
4254
4260
  var p = this._listeners, h = p[a];
4255
4261
  if (h != null) {
@@ -4261,158 +4267,158 @@ var en = { exports: {} };
4261
4267
  function y(a) {
4262
4268
  this.type = a, this.target = void 0;
4263
4269
  }
4264
- function _e(a, f) {
4270
+ function Be(a, f) {
4265
4271
  y.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
4266
4272
  }
4267
- _e.prototype = Object.create(y.prototype);
4268
- function Ze(a, f) {
4273
+ Be.prototype = Object.create(y.prototype);
4274
+ function qe(a, f) {
4269
4275
  y.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
4270
4276
  }
4271
- Ze.prototype = Object.create(y.prototype);
4272
- function Be(a, f) {
4277
+ qe.prototype = Object.create(y.prototype);
4278
+ function Te(a, f) {
4273
4279
  y.call(this, a), this.error = f.error;
4274
4280
  }
4275
- Be.prototype = Object.create(y.prototype);
4276
- var Re = -1, me = 0, Te = 1, Ae = 2, Ce = -1, ue = 0, qe = 1, Le = 2, ot = 3, Tt = /^text\/event\-stream(;.*)?$/i, at = 1e3, wt = 18e6, Qe = function(a, f) {
4281
+ Te.prototype = Object.create(y.prototype);
4282
+ var Le = -1, me = 0, we = 1, Ce = 2, He = -1, ue = 0, Qe = 1, Me = 2, at = 3, St = /^text\/event\-stream(;.*)?$/i, st = 1e3, At = 18e6, Je = function(a, f) {
4277
4283
  var p = a == null ? f : parseInt(a, 10);
4278
- return p !== p && (p = f), Me(p);
4279
- }, Me = function(a) {
4280
- return Math.min(Math.max(a, at), wt);
4281
- }, we = function(a, f, p) {
4284
+ return p !== p && (p = f), Ne(p);
4285
+ }, Ne = function(a) {
4286
+ return Math.min(Math.max(a, st), At);
4287
+ }, Se = function(a, f, p) {
4282
4288
  try {
4283
4289
  typeof f == "function" && f.call(a, p);
4284
4290
  } catch (h) {
4285
- F(h);
4291
+ U(h);
4286
4292
  }
4287
4293
  };
4288
4294
  function re(a, f) {
4289
- X.call(this), f = f || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Ct(this, a, f);
4295
+ V.call(this), f = f || {}, 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, Ot(this, a, f);
4290
4296
  }
4291
- function St() {
4297
+ function Ct() {
4292
4298
  return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
4293
4299
  }
4294
- var At = g != null && b != null && "body" in b.prototype;
4295
- function Ct(a, f, p) {
4300
+ var Ht = g != null && b != null && "body" in b.prototype;
4301
+ function Ot(a, f, p) {
4296
4302
  f = String(f);
4297
- var h = !!p.withCredentials, E = p.lastEventIdQueryParameterName || "lastEventId", v = Me(1e3), m = Qe(p.heartbeatTimeout, 45e3), L = "", A = v, P = !1, G = 0, w = p.headers || {}, V = p.Transport, be = At && V == null ? void 0 : new U(V != null ? new V() : St()), Je = V != null && typeof V != "string" ? new V() : be == null ? new R() : new Y(), ie = void 0, K = 0, ce = Re, Ne = "", lt = "", ye = "", ut = "", ee = ue, Ht = 0, He = 0, lr = function(Z, z, oe, ae) {
4303
+ var h = !!p.withCredentials, E = p.lastEventIdQueryParameterName || "lastEventId", v = Ne(1e3), m = Je(p.heartbeatTimeout, 45e3), L = "", A = v, I = !1, F = 0, w = p.headers || {}, k = p.Transport, ye = Ht && k == null ? void 0 : new D(k != null ? new k() : Ct()), Ye = k != null && typeof k != "string" ? new k() : ye == null ? new R() : new Y(), ie = void 0, K = 0, ce = Le, Ie = "", ut = "", ve = "", ct = "", ee = ue, Rt = 0, Oe = 0, cr = function(Z, z, oe, ae) {
4298
4304
  if (ce === me)
4299
- if (Z === 200 && oe != null && Tt.test(oe)) {
4300
- ce = Te, P = Date.now(), A = v, a.readyState = Te;
4301
- var te = new Ze("open", {
4305
+ if (Z === 200 && oe != null && St.test(oe)) {
4306
+ ce = we, I = Date.now(), A = v, a.readyState = we;
4307
+ var te = new qe("open", {
4302
4308
  status: Z,
4303
4309
  statusText: z,
4304
4310
  headers: ae
4305
4311
  });
4306
- a.dispatchEvent(te), we(a, a.onopen, te);
4312
+ a.dispatchEvent(te), Se(a, a.onopen, te);
4307
4313
  } else {
4308
4314
  var Q = "";
4309
- Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : Q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
4310
- var te = new Ze("error", {
4315
+ Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : Q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Lt();
4316
+ var te = new qe("error", {
4311
4317
  status: Z,
4312
4318
  statusText: z,
4313
4319
  headers: ae
4314
4320
  });
4315
- a.dispatchEvent(te), we(a, a.onerror, te), console.error(Q);
4321
+ a.dispatchEvent(te), Se(a, a.onerror, te), console.error(Q);
4316
4322
  }
4317
- }, ur = function(Z) {
4318
- if (ce === Te) {
4323
+ }, hr = function(Z) {
4324
+ if (ce === we) {
4319
4325
  for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
4320
4326
  var ae = Z.charCodeAt(oe);
4321
4327
  (ae === 10 || ae === 13) && (z = oe);
4322
4328
  }
4323
- var te = (z !== -1 ? ut : "") + Z.slice(0, z + 1);
4324
- ut = (z === -1 ? ut : "") + Z.slice(z + 1), Z !== "" && (P = Date.now(), G += Z.length);
4329
+ var te = (z !== -1 ? ct : "") + Z.slice(0, z + 1);
4330
+ ct = (z === -1 ? ct : "") + Z.slice(z + 1), Z !== "" && (I = Date.now(), F += Z.length);
4325
4331
  for (var Q = 0; Q < te.length; Q += 1) {
4326
4332
  var ae = te.charCodeAt(Q);
4327
- if (ee === Ce && ae === 10)
4333
+ if (ee === He && ae === 10)
4328
4334
  ee = ue;
4329
- else if (ee === Ce && (ee = ue), ae === 13 || ae === 10) {
4335
+ else if (ee === He && (ee = ue), ae === 13 || ae === 10) {
4330
4336
  if (ee !== ue) {
4331
- ee === qe && (He = Q + 1);
4332
- var ve = te.slice(Ht, He - 1), Ee = te.slice(He + (He < Q && te.charCodeAt(He) === 32 ? 1 : 0), Q);
4333
- ve === "data" ? (Ne += `
4334
- `, Ne += Ee) : ve === "id" ? lt = Ee : ve === "event" ? ye = Ee : ve === "retry" ? (v = Qe(Ee, v), A = v) : ve === "heartbeatTimeout" && (m = Qe(Ee, m), K !== 0 && (i(K), K = r(function() {
4335
- Ye();
4337
+ ee === Qe && (Oe = Q + 1);
4338
+ var Ee = te.slice(Rt, Oe - 1), xe = te.slice(Oe + (Oe < Q && te.charCodeAt(Oe) === 32 ? 1 : 0), Q);
4339
+ Ee === "data" ? (Ie += `
4340
+ `, Ie += xe) : Ee === "id" ? ut = xe : Ee === "event" ? ve = xe : Ee === "retry" ? (v = Je(xe, v), A = v) : Ee === "heartbeatTimeout" && (m = Je(xe, m), K !== 0 && (i(K), K = r(function() {
4341
+ Ke();
4336
4342
  }, m)));
4337
4343
  }
4338
4344
  if (ee === ue) {
4339
- if (Ne !== "") {
4340
- L = lt, ye === "" && (ye = "message");
4341
- var Ie = new _e(ye, {
4342
- data: Ne.slice(1),
4343
- lastEventId: lt
4345
+ if (Ie !== "") {
4346
+ L = ut, ve === "" && (ve = "message");
4347
+ var Pe = new Be(ve, {
4348
+ data: Ie.slice(1),
4349
+ lastEventId: ut
4344
4350
  });
4345
- if (a.dispatchEvent(Ie), ye === "open" ? we(a, a.onopen, Ie) : ye === "message" ? we(a, a.onmessage, Ie) : ye === "error" && we(a, a.onerror, Ie), ce === Ae)
4351
+ if (a.dispatchEvent(Pe), ve === "open" ? Se(a, a.onopen, Pe) : ve === "message" ? Se(a, a.onmessage, Pe) : ve === "error" && Se(a, a.onerror, Pe), ce === Ce)
4346
4352
  return;
4347
4353
  }
4348
- Ne = "", ye = "";
4354
+ Ie = "", ve = "";
4349
4355
  }
4350
- ee = ae === 13 ? Ce : ue;
4356
+ ee = ae === 13 ? He : ue;
4351
4357
  } else
4352
- ee === ue && (Ht = Q, ee = qe), ee === qe ? ae === 58 && (He = Q + 1, ee = Le) : ee === Le && (ee = ot);
4358
+ ee === ue && (Rt = Q, ee = Qe), ee === Qe ? ae === 58 && (Oe = Q + 1, ee = Me) : ee === Me && (ee = at);
4353
4359
  }
4354
4360
  }
4355
- }, an = function(Z) {
4356
- if (ce === Te || ce === me) {
4357
- ce = Re, K !== 0 && (i(K), K = 0), K = r(function() {
4358
- Ye();
4359
- }, A), A = Me(Math.min(v * 16, A * 2)), a.readyState = me;
4360
- var z = new Be("error", { error: Z });
4361
- a.dispatchEvent(z), we(a, a.onerror, z), Z != null && console.error(Z);
4361
+ }, ln = function(Z) {
4362
+ if (ce === we || ce === me) {
4363
+ ce = Le, K !== 0 && (i(K), K = 0), K = r(function() {
4364
+ Ke();
4365
+ }, A), A = Ne(Math.min(v * 16, A * 2)), a.readyState = me;
4366
+ var z = new Te("error", { error: Z });
4367
+ a.dispatchEvent(z), Se(a, a.onerror, z), Z != null && console.error(Z);
4362
4368
  }
4363
- }, Ot = function() {
4364
- ce = Ae, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Ae;
4365
- }, Ye = function() {
4366
- if (K = 0, ce !== Re) {
4367
- if (!P && ie != null)
4368
- an(new Error("No activity within " + m + " milliseconds. " + (ce === me ? "No response received." : G + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4369
+ }, Lt = function() {
4370
+ ce = Ce, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Ce;
4371
+ }, Ke = function() {
4372
+ if (K = 0, ce !== Le) {
4373
+ if (!I && ie != null)
4374
+ ln(new Error("No activity within " + m + " milliseconds. " + (ce === me ? "No response received." : F + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
4369
4375
  else {
4370
- var Z = Math.max((P || Date.now()) + m - Date.now(), 1);
4371
- P = !1, K = r(function() {
4372
- Ye();
4376
+ var Z = Math.max((I || Date.now()) + m - Date.now(), 1);
4377
+ I = !1, K = r(function() {
4378
+ Ke();
4373
4379
  }, Z);
4374
4380
  }
4375
4381
  return;
4376
4382
  }
4377
- P = !1, G = 0, K = r(function() {
4378
- Ye();
4379
- }, m), ce = me, Ne = "", ye = "", lt = L, ut = "", Ht = 0, He = 0, ee = ue;
4383
+ I = !1, F = 0, K = r(function() {
4384
+ Ke();
4385
+ }, m), ce = me, Ie = "", ve = "", ut = L, ct = "", Rt = 0, Oe = 0, ee = ue;
4380
4386
  var z = f;
4381
4387
  if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && L !== "") {
4382
4388
  var oe = f.indexOf("?");
4383
- z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Ie) {
4384
- return Ie === E ? "" : Ee;
4389
+ z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(xe, Pe) {
4390
+ return Pe === E ? "" : xe;
4385
4391
  }), z += (f.indexOf("?") === -1 ? "?" : "&") + E + "=" + encodeURIComponent(L);
4386
4392
  }
4387
4393
  var ae = a.withCredentials, te = {};
4388
4394
  te.Accept = "text/event-stream";
4389
4395
  var Q = a.headers;
4390
4396
  if (Q != null)
4391
- for (var ve in Q)
4392
- Object.prototype.hasOwnProperty.call(Q, ve) && (te[ve] = Q[ve]);
4397
+ for (var Ee in Q)
4398
+ Object.prototype.hasOwnProperty.call(Q, Ee) && (te[Ee] = Q[Ee]);
4393
4399
  try {
4394
- ie = Je.open(be, lr, ur, an, z, ae, te);
4395
- } catch (Ee) {
4396
- throw Ot(), Ee;
4400
+ ie = Ye.open(ye, cr, hr, ln, z, ae, te);
4401
+ } catch (xe) {
4402
+ throw Lt(), xe;
4397
4403
  }
4398
4404
  };
4399
- a.url = f, a.readyState = me, a.withCredentials = h, a.headers = w, a._close = Ot, Ye();
4405
+ a.url = f, a.readyState = me, a.withCredentials = h, a.headers = w, a._close = Lt, Ke();
4400
4406
  }
4401
- re.prototype = Object.create(X.prototype), re.prototype.CONNECTING = me, re.prototype.OPEN = Te, re.prototype.CLOSED = Ae, re.prototype.close = function() {
4407
+ re.prototype = Object.create(V.prototype), re.prototype.CONNECTING = me, re.prototype.OPEN = we, re.prototype.CLOSED = Ce, re.prototype.close = function() {
4402
4408
  this._close();
4403
- }, re.CONNECTING = me, re.OPEN = Te, re.CLOSED = Ae, re.prototype.withCredentials = void 0;
4404
- var st = c;
4405
- o != null && (c == null || !("withCredentials" in c.prototype)) && (st = re), function(a) {
4409
+ }, re.CONNECTING = me, re.OPEN = we, re.CLOSED = Ce, re.prototype.withCredentials = void 0;
4410
+ var lt = c;
4411
+ o != null && (c == null || !("withCredentials" in c.prototype)) && (lt = re), function(a) {
4406
4412
  {
4407
4413
  var f = a(t);
4408
4414
  f !== void 0 && (e.exports = f);
4409
4415
  }
4410
4416
  }(function(a) {
4411
- a.EventSourcePolyfill = re, a.NativeEventSource = c, a.EventSource = st;
4417
+ a.EventSourcePolyfill = re, a.NativeEventSource = c, a.EventSource = lt;
4412
4418
  });
4413
- })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : jr : globalThis);
4414
- })(en, en.exports);
4415
- var Lo = en.exports;
4419
+ })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Vr : globalThis);
4420
+ })(nn, nn.exports);
4421
+ var No = nn.exports;
4416
4422
  /*!
4417
4423
  * currency.js - v2.0.4
4418
4424
  * http://scurker.github.io/currency.js
@@ -4420,7 +4426,7 @@ var Lo = en.exports;
4420
4426
  * Copyright (c) 2021 Jason Wilson
4421
4427
  * Released under MIT license
4422
4428
  */
4423
- var Mo = {
4429
+ var Io = {
4424
4430
  symbol: "$",
4425
4431
  separator: ",",
4426
4432
  decimal: ".",
@@ -4428,24 +4434,24 @@ var Mo = {
4428
4434
  precision: 2,
4429
4435
  pattern: "!#",
4430
4436
  negativePattern: "-!#",
4431
- format: Do,
4437
+ format: Fo,
4432
4438
  fromCents: !1
4433
- }, sr = function(t) {
4439
+ }, ur = function(t) {
4434
4440
  return Math.round(t);
4435
- }, on = function(t) {
4441
+ }, sn = function(t) {
4436
4442
  return Math.pow(10, t);
4437
- }, No = function(t, n) {
4438
- return sr(t / n) * n;
4439
- }, Io = /(\d)(?=(\d{3})+\b)/g, Po = /(\d)(?=(\d\d)+\d\b)/g;
4443
+ }, Po = function(t, n) {
4444
+ return ur(t / n) * n;
4445
+ }, Do = /(\d)(?=(\d{3})+\b)/g, Uo = /(\d)(?=(\d\d)+\d\b)/g;
4440
4446
  function he(e, t) {
4441
4447
  var n = this;
4442
4448
  if (!(n instanceof he))
4443
4449
  return new he(e, t);
4444
- var r = Object.assign({}, Mo, t), i = on(r.precision), o = pt(e, r);
4445
- n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Po : r.groups = Io, this.s = r, this.p = i;
4450
+ var r = Object.assign({}, Io, t), i = sn(r.precision), o = mt(e, r);
4451
+ n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Uo : r.groups = Do, this.s = r, this.p = i;
4446
4452
  }
4447
- function pt(e, t) {
4448
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, c = on(l), u = typeof e == "number", d = e instanceof he;
4453
+ function mt(e, t) {
4454
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, c = sn(l), u = typeof e == "number", d = e instanceof he;
4449
4455
  if (d && s)
4450
4456
  return e.intValue;
4451
4457
  if (u || d)
@@ -4458,9 +4464,9 @@ function pt(e, t) {
4458
4464
  throw Error("Invalid Input");
4459
4465
  r = 0;
4460
4466
  }
4461
- return s || (r *= c, r = r.toFixed(4)), n ? sr(r) : r;
4467
+ return s || (r *= c, r = r.toFixed(4)), n ? ur(r) : r;
4462
4468
  }
4463
- function Do(e, t) {
4469
+ function Fo(e, t) {
4464
4470
  var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, s = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], d = c[1];
4465
4471
  return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
4466
4472
  }
@@ -4472,7 +4478,7 @@ he.prototype = {
4472
4478
  */
4473
4479
  add: function(t) {
4474
4480
  var n = this.intValue, r = this.s, i = this.p;
4475
- return he((n += pt(t, r)) / (r.fromCents ? 1 : i), r);
4481
+ return he((n += mt(t, r)) / (r.fromCents ? 1 : i), r);
4476
4482
  },
4477
4483
  /**
4478
4484
  * Subtracts value.
@@ -4481,7 +4487,7 @@ he.prototype = {
4481
4487
  */
4482
4488
  subtract: function(t) {
4483
4489
  var n = this.intValue, r = this.s, i = this.p;
4484
- return he((n -= pt(t, r)) / (r.fromCents ? 1 : i), r);
4490
+ return he((n -= mt(t, r)) / (r.fromCents ? 1 : i), r);
4485
4491
  },
4486
4492
  /**
4487
4493
  * Multiplies values.
@@ -4490,7 +4496,7 @@ he.prototype = {
4490
4496
  */
4491
4497
  multiply: function(t) {
4492
4498
  var n = this.intValue, r = this.s;
4493
- return he((n *= t) / (r.fromCents ? 1 : on(r.precision)), r);
4499
+ return he((n *= t) / (r.fromCents ? 1 : sn(r.precision)), r);
4494
4500
  },
4495
4501
  /**
4496
4502
  * Divides value.
@@ -4499,7 +4505,7 @@ he.prototype = {
4499
4505
  */
4500
4506
  divide: function(t) {
4501
4507
  var n = this.intValue, r = this.s;
4502
- return he(n /= pt(t, r, !1), r);
4508
+ return he(n /= mt(t, r, !1), r);
4503
4509
  },
4504
4510
  /**
4505
4511
  * Takes the currency amount and distributes the values evenly. Any extra pennies
@@ -4544,7 +4550,7 @@ he.prototype = {
4544
4550
  */
4545
4551
  toString: function() {
4546
4552
  var t = this.intValue, n = this.p, r = this.s;
4547
- return No(t / n, r.increment).toFixed(r.precision);
4553
+ return Po(t / n, r.increment).toFixed(r.precision);
4548
4554
  },
4549
4555
  /**
4550
4556
  * Value for JSON serialization.
@@ -4554,18 +4560,18 @@ he.prototype = {
4554
4560
  return this.value;
4555
4561
  }
4556
4562
  };
4557
- function Uo(e) {
4558
- br(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4563
+ function Go(e) {
4564
+ vr(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
4559
4565
  }
4560
- function Sn(e, t, n) {
4566
+ function Cn(e, t, n) {
4561
4567
  const r = e.slice();
4562
4568
  return r[50] = t[n], r;
4563
4569
  }
4564
- function An(e, t, n) {
4570
+ function Hn(e, t, n) {
4565
4571
  const r = e.slice();
4566
4572
  return r[53] = t[n], r;
4567
4573
  }
4568
- function Fo(e) {
4574
+ function $o(e) {
4569
4575
  let t, n, r = (
4570
4576
  /*balances*/
4571
4577
  (e[1].Total ? (
@@ -4577,26 +4583,26 @@ function Fo(e) {
4577
4583
  ) : "0") + ""
4578
4584
  ), i, o, l, s, c, u, d, g, b, _, B, T, x = (
4579
4585
  /*showBalance*/
4580
- e[4] && Cn(e)
4586
+ e[4] && On(e)
4581
4587
  );
4582
4588
  return {
4583
4589
  c() {
4584
- t = k("div"), n = k("p"), i = fe(r), o = pe(), l = fe(
4590
+ t = j("div"), n = j("p"), i = fe(r), o = pe(), l = fe(
4585
4591
  /*currency*/
4586
4592
  e[5]
4587
- ), s = pe(), c = k("span"), u = un("svg"), d = un("path"), b = pe(), x && x.c(), _ = Er(), N(d, "id", "arrow"), N(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), N(d, "transform", "translate(-274.511 -441.088)"), N(d, "fill", "#d1d1d1"), N(u, "xmlns", "http://www.w3.org/2000/svg"), N(u, "width", "14"), N(u, "height", "6.835"), N(u, "viewBox", "0 0 14 6.835"), N(c, "class", g = /*modalOpened*/
4593
+ ), s = pe(), c = j("span"), u = hn("svg"), d = hn("path"), b = pe(), x && x.c(), _ = _r(), N(d, "id", "arrow"), N(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), N(d, "transform", "translate(-274.511 -441.088)"), N(d, "fill", "#d1d1d1"), N(u, "xmlns", "http://www.w3.org/2000/svg"), N(u, "width", "14"), N(u, "height", "6.835"), N(u, "viewBox", "0 0 14 6.835"), N(c, "class", g = /*modalOpened*/
4588
4594
  e[3] ? "TriangleActive" : "TriangleInactive"), N(t, "class", "BalanceValue");
4589
4595
  },
4590
- m(S, D) {
4591
- ge(S, t, D), C(t, n), C(n, i), C(n, o), C(n, l), C(t, s), C(t, c), C(c, u), C(u, d), ge(S, b, D), x && x.m(S, D), ge(S, _, D), B || (T = mt(
4596
+ m(S, P) {
4597
+ be(S, t, P), C(t, n), C(n, i), C(n, o), C(n, l), C(t, s), C(t, c), C(c, u), C(u, d), be(S, b, P), x && x.m(S, P), be(S, _, P), B || (T = gt(
4592
4598
  t,
4593
4599
  "click",
4594
4600
  /*click_handler*/
4595
4601
  e[25]
4596
4602
  ), B = !0);
4597
4603
  },
4598
- p(S, D) {
4599
- D[0] & /*balances*/
4604
+ p(S, P) {
4605
+ P[0] & /*balances*/
4600
4606
  2 && r !== (r = /*balances*/
4601
4607
  (S[1].Total ? (
4602
4608
  /*formatBalance*/
@@ -4604,79 +4610,79 @@ function Fo(e) {
4604
4610
  /*balances*/
4605
4611
  S[1].Total[0].amount
4606
4612
  )
4607
- ) : "0") + "") && xe(i, r), D[0] & /*currency*/
4608
- 32 && xe(
4613
+ ) : "0") + "") && _e(i, r), P[0] & /*currency*/
4614
+ 32 && _e(
4609
4615
  l,
4610
4616
  /*currency*/
4611
4617
  S[5]
4612
- ), D[0] & /*modalOpened*/
4618
+ ), P[0] & /*modalOpened*/
4613
4619
  8 && g !== (g = /*modalOpened*/
4614
4620
  S[3] ? "TriangleActive" : "TriangleInactive") && N(c, "class", g), /*showBalance*/
4615
- S[4] ? x ? x.p(S, D) : (x = Cn(S), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
4621
+ S[4] ? x ? x.p(S, P) : (x = On(S), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
4616
4622
  },
4617
4623
  d(S) {
4618
4624
  S && (de(t), de(b), de(_)), x && x.d(S), B = !1, T();
4619
4625
  }
4620
4626
  };
4621
4627
  }
4622
- function Go(e) {
4628
+ function jo(e) {
4623
4629
  let t, n = (
4624
4630
  /*$_*/
4625
4631
  e[6]("Loading") + ""
4626
4632
  ), r;
4627
4633
  return {
4628
4634
  c() {
4629
- t = k("p"), r = fe(n), N(t, "class", "Loading");
4635
+ t = j("p"), r = fe(n), N(t, "class", "Loading");
4630
4636
  },
4631
4637
  m(i, o) {
4632
- ge(i, t, o), C(t, r);
4638
+ be(i, t, o), C(t, r);
4633
4639
  },
4634
4640
  p(i, o) {
4635
4641
  o[0] & /*$_*/
4636
4642
  64 && n !== (n = /*$_*/
4637
- i[6]("Loading") + "") && xe(r, n);
4643
+ i[6]("Loading") + "") && _e(r, n);
4638
4644
  },
4639
4645
  d(i) {
4640
4646
  i && de(t);
4641
4647
  }
4642
4648
  };
4643
4649
  }
4644
- function Cn(e) {
4650
+ function On(e) {
4645
4651
  let t, n, r, i, o, l, s, c, u = (
4646
4652
  /*$_*/
4647
4653
  e[6]("Title") + ""
4648
4654
  ), d, g, b, _, B, T, x = (
4649
4655
  /*$_*/
4650
4656
  e[6]("DepositButton") + ""
4651
- ), S, D, H, U, W, q, Y = gt(Object.keys(
4657
+ ), S, P, H, D, W, q, Y = bt(Object.keys(
4652
4658
  /*balances*/
4653
4659
  e[1]
4654
- )), $ = [];
4660
+ )), G = [];
4655
4661
  for (let R = 0; R < Y.length; R += 1)
4656
- $[R] = On(Sn(e, Y, R));
4662
+ G[R] = Ln(Cn(e, Y, R));
4657
4663
  return {
4658
4664
  c() {
4659
- t = k("div"), n = k("div"), i = pe(), o = k("div"), l = k("div"), s = k("div"), c = k("p"), d = fe(u), g = pe(), b = k("div");
4660
- for (let R = 0; R < $.length; R += 1)
4661
- $[R].c();
4662
- _ = pe(), B = k("div"), T = k("button"), S = fe(x), N(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4663
- (e[3] ? "Open" : "")), N(c, "class", "BalanceModalTitle"), N(s, "class", "BalanceModalHeader"), N(b, "class", "BalanceModalBody"), N(T, "class", "BalanceModalAction"), N(B, "class", "BalanceModalFooter"), N(l, "class", D = "ModalContent " + /*modalOpened*/
4665
+ t = j("div"), n = j("div"), i = pe(), o = j("div"), l = j("div"), s = j("div"), c = j("p"), d = fe(u), g = pe(), b = j("div");
4666
+ for (let R = 0; R < G.length; R += 1)
4667
+ G[R].c();
4668
+ _ = pe(), B = j("div"), T = j("button"), S = fe(x), N(n, "class", r = "BalanceModalClose " + /*modalOpened*/
4669
+ (e[3] ? "Open" : "")), N(c, "class", "BalanceModalTitle"), N(s, "class", "BalanceModalHeader"), N(b, "class", "BalanceModalBody"), N(T, "class", "BalanceModalAction"), N(B, "class", "BalanceModalFooter"), N(l, "class", P = "ModalContent " + /*modalOpened*/
4664
4670
  (e[3] ? "Open" : "")), N(o, "class", H = "BalanceModal " + /*modalOpened*/
4665
- (e[3] ? "Open" : "")), N(t, "class", U = "BalanceModalWrapper " + /*modalOpened*/
4671
+ (e[3] ? "Open" : "")), N(t, "class", D = "BalanceModalWrapper " + /*modalOpened*/
4666
4672
  (e[3] ? "Open" : ""));
4667
4673
  },
4668
- m(R, X) {
4669
- ge(R, t, X), C(t, n), C(t, i), C(t, o), C(o, l), C(l, s), C(s, c), C(c, d), C(l, g), C(l, b);
4670
- for (let F = 0; F < $.length; F += 1)
4671
- $[F] && $[F].m(b, null);
4674
+ m(R, V) {
4675
+ be(R, t, V), C(t, n), C(t, i), C(t, o), C(o, l), C(l, s), C(s, c), C(c, d), C(l, g), C(l, b);
4676
+ for (let U = 0; U < G.length; U += 1)
4677
+ G[U] && G[U].m(b, null);
4672
4678
  C(l, _), C(l, B), C(B, T), C(T, S), W || (q = [
4673
- mt(
4679
+ gt(
4674
4680
  n,
4675
4681
  "click",
4676
4682
  /*click_handler_1*/
4677
4683
  e[26]
4678
4684
  ),
4679
- mt(
4685
+ gt(
4680
4686
  T,
4681
4687
  "click",
4682
4688
  /*click_handler_2*/
@@ -4684,42 +4690,42 @@ function Cn(e) {
4684
4690
  )
4685
4691
  ], W = !0);
4686
4692
  },
4687
- p(R, X) {
4688
- if (X[0] & /*modalOpened*/
4693
+ p(R, V) {
4694
+ if (V[0] & /*modalOpened*/
4689
4695
  8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
4690
- (R[3] ? "Open" : "")) && N(n, "class", r), X[0] & /*$_*/
4696
+ (R[3] ? "Open" : "")) && N(n, "class", r), V[0] & /*$_*/
4691
4697
  64 && u !== (u = /*$_*/
4692
- R[6]("Title") + "") && xe(d, u), X[0] & /*balances, currency, formatBalance, $_*/
4698
+ R[6]("Title") + "") && _e(d, u), V[0] & /*balances, currency, formatBalance, $_*/
4693
4699
  354) {
4694
- Y = gt(Object.keys(
4700
+ Y = bt(Object.keys(
4695
4701
  /*balances*/
4696
4702
  R[1]
4697
4703
  ));
4698
- let F;
4699
- for (F = 0; F < Y.length; F += 1) {
4700
- const y = Sn(R, Y, F);
4701
- $[F] ? $[F].p(y, X) : ($[F] = On(y), $[F].c(), $[F].m(b, null));
4704
+ let U;
4705
+ for (U = 0; U < Y.length; U += 1) {
4706
+ const y = Cn(R, Y, U);
4707
+ G[U] ? G[U].p(y, V) : (G[U] = Ln(y), G[U].c(), G[U].m(b, null));
4702
4708
  }
4703
- for (; F < $.length; F += 1)
4704
- $[F].d(1);
4705
- $.length = Y.length;
4709
+ for (; U < G.length; U += 1)
4710
+ G[U].d(1);
4711
+ G.length = Y.length;
4706
4712
  }
4707
- X[0] & /*$_*/
4713
+ V[0] & /*$_*/
4708
4714
  64 && x !== (x = /*$_*/
4709
- R[6]("DepositButton") + "") && xe(S, x), X[0] & /*modalOpened*/
4710
- 8 && D !== (D = "ModalContent " + /*modalOpened*/
4711
- (R[3] ? "Open" : "")) && N(l, "class", D), X[0] & /*modalOpened*/
4715
+ R[6]("DepositButton") + "") && _e(S, x), V[0] & /*modalOpened*/
4716
+ 8 && P !== (P = "ModalContent " + /*modalOpened*/
4717
+ (R[3] ? "Open" : "")) && N(l, "class", P), V[0] & /*modalOpened*/
4712
4718
  8 && H !== (H = "BalanceModal " + /*modalOpened*/
4713
- (R[3] ? "Open" : "")) && N(o, "class", H), X[0] & /*modalOpened*/
4714
- 8 && U !== (U = "BalanceModalWrapper " + /*modalOpened*/
4715
- (R[3] ? "Open" : "")) && N(t, "class", U);
4719
+ (R[3] ? "Open" : "")) && N(o, "class", H), V[0] & /*modalOpened*/
4720
+ 8 && D !== (D = "BalanceModalWrapper " + /*modalOpened*/
4721
+ (R[3] ? "Open" : "")) && N(t, "class", D);
4716
4722
  },
4717
4723
  d(R) {
4718
- R && de(t), In($, R), W = !1, Ve(q);
4724
+ R && de(t), Dn(G, R), W = !1, Xe(q);
4719
4725
  }
4720
4726
  };
4721
4727
  }
4722
- function Hn(e) {
4728
+ function Rn(e) {
4723
4729
  let t, n, r = (
4724
4730
  /*$_*/
4725
4731
  e[6](
@@ -4747,13 +4753,13 @@ function Hn(e) {
4747
4753
  ), b, _, B, T;
4748
4754
  return {
4749
4755
  c() {
4750
- t = k("div"), n = k("p"), i = fe(r), o = pe(), s = fe(l), c = pe(), u = k("p"), d = k("span"), b = fe(g), _ = pe(), B = k("span"), T = fe(
4756
+ t = j("div"), n = j("p"), i = fe(r), o = pe(), s = fe(l), c = pe(), u = j("p"), d = j("span"), b = fe(g), _ = pe(), B = j("span"), T = fe(
4751
4757
  /*currency*/
4752
4758
  e[5]
4753
4759
  ), N(n, "class", "BalanceModalText"), N(d, "class", "BalanceModalAmount"), N(B, "class", "BalanceModalCurrency"), N(u, "class", "BalanceModalValue"), N(t, "class", "BalanceModalRowLine");
4754
4760
  },
4755
4761
  m(x, S) {
4756
- ge(x, t, S), C(t, n), C(n, i), C(n, o), C(n, s), C(t, c), C(t, u), C(u, d), C(d, b), C(u, _), C(u, B), C(B, T);
4762
+ be(x, t, S), C(t, n), C(n, i), C(n, o), C(n, s), C(t, c), C(t, u), C(u, d), C(d, b), C(u, _), C(u, B), C(B, T);
4757
4763
  },
4758
4764
  p(x, S) {
4759
4765
  S[0] & /*$_, balances*/
@@ -4761,7 +4767,7 @@ function Hn(e) {
4761
4767
  x[6](
4762
4768
  /*k*/
4763
4769
  x[50]
4764
- ) + "") && xe(i, r), S[0] & /*balances, $_*/
4770
+ ) + "") && _e(i, r), S[0] & /*balances, $_*/
4765
4771
  66 && l !== (l = /*b*/
4766
4772
  (x[53].productType ? (
4767
4773
  /*$_*/
@@ -4769,7 +4775,7 @@ function Hn(e) {
4769
4775
  /*b*/
4770
4776
  x[53].productType
4771
4777
  )
4772
- ) : "") + "") && xe(s, l), S[0] & /*balances*/
4778
+ ) : "") + "") && _e(s, l), S[0] & /*balances*/
4773
4779
  2 && g !== (g = /*b*/
4774
4780
  (x[53].amount ? (
4775
4781
  /*formatBalance*/
@@ -4777,8 +4783,8 @@ function Hn(e) {
4777
4783
  /*b*/
4778
4784
  x[53].amount
4779
4785
  )
4780
- ) : "0") + "") && xe(b, g), S[0] & /*currency*/
4781
- 32 && xe(
4786
+ ) : "0") + "") && _e(b, g), S[0] & /*currency*/
4787
+ 32 && _e(
4782
4788
  T,
4783
4789
  /*currency*/
4784
4790
  x[5]
@@ -4789,8 +4795,8 @@ function Hn(e) {
4789
4795
  }
4790
4796
  };
4791
4797
  }
4792
- function On(e) {
4793
- let t, n, r = gt(
4798
+ function Ln(e) {
4799
+ let t, n, r = bt(
4794
4800
  /*balances*/
4795
4801
  e[1][
4796
4802
  /*k*/
@@ -4798,16 +4804,16 @@ function On(e) {
4798
4804
  ]
4799
4805
  ), i = [];
4800
4806
  for (let o = 0; o < r.length; o += 1)
4801
- i[o] = Hn(An(e, r, o));
4807
+ i[o] = Rn(Hn(e, r, o));
4802
4808
  return {
4803
4809
  c() {
4804
- t = k("div");
4810
+ t = j("div");
4805
4811
  for (let o = 0; o < i.length; o += 1)
4806
4812
  i[o].c();
4807
4813
  n = pe(), N(t, "class", "BalanceModalRowBoth");
4808
4814
  },
4809
4815
  m(o, l) {
4810
- ge(o, t, l);
4816
+ be(o, t, l);
4811
4817
  for (let s = 0; s < i.length; s += 1)
4812
4818
  i[s] && i[s].m(t, null);
4813
4819
  C(t, n);
@@ -4815,7 +4821,7 @@ function On(e) {
4815
4821
  p(o, l) {
4816
4822
  if (l[0] & /*currency, balances, formatBalance, $_*/
4817
4823
  354) {
4818
- r = gt(
4824
+ r = bt(
4819
4825
  /*balances*/
4820
4826
  o[1][
4821
4827
  /*k*/
@@ -4824,8 +4830,8 @@ function On(e) {
4824
4830
  );
4825
4831
  let s;
4826
4832
  for (s = 0; s < r.length; s += 1) {
4827
- const c = An(o, r, s);
4828
- i[s] ? i[s].p(c, l) : (i[s] = Hn(c), i[s].c(), i[s].m(t, n));
4833
+ const c = Hn(o, r, s);
4834
+ i[s] ? i[s].p(c, l) : (i[s] = Rn(c), i[s].c(), i[s].m(t, n));
4829
4835
  }
4830
4836
  for (; s < i.length; s += 1)
4831
4837
  i[s].d(1);
@@ -4833,18 +4839,18 @@ function On(e) {
4833
4839
  }
4834
4840
  },
4835
4841
  d(o) {
4836
- o && de(t), In(i, o);
4842
+ o && de(t), Dn(i, o);
4837
4843
  }
4838
4844
  };
4839
4845
  }
4840
- function Rn(e) {
4846
+ function Mn(e) {
4841
4847
  let t, n, r;
4842
4848
  return {
4843
4849
  c() {
4844
- t = k("div"), N(t, "class", "ShowBalanceModalOverlay");
4850
+ t = j("div"), N(t, "class", "ShowBalanceModalOverlay");
4845
4851
  },
4846
4852
  m(i, o) {
4847
- ge(i, t, o), n || (r = mt(
4853
+ be(i, t, o), n || (r = gt(
4848
4854
  t,
4849
4855
  "click",
4850
4856
  /*click_handler_3*/
@@ -4857,28 +4863,28 @@ function Rn(e) {
4857
4863
  }
4858
4864
  };
4859
4865
  }
4860
- function $o(e) {
4866
+ function ko(e) {
4861
4867
  let t, n, r;
4862
4868
  function i(c, u) {
4863
4869
  return (
4864
4870
  /*isLoading*/
4865
- c[2] ? Go : Fo
4871
+ c[2] ? jo : $o
4866
4872
  );
4867
4873
  }
4868
4874
  let o = i(e), l = o(e), s = (
4869
4875
  /*showBalance*/
4870
- e[4] && Rn(e)
4876
+ e[4] && Mn(e)
4871
4877
  );
4872
4878
  return {
4873
4879
  c() {
4874
- t = k("div"), n = k("div"), l.c(), r = pe(), s && s.c(), N(n, "class", "ShowBalance");
4880
+ t = j("div"), n = j("div"), l.c(), r = pe(), s && s.c(), N(n, "class", "ShowBalance");
4875
4881
  },
4876
4882
  m(c, u) {
4877
- ge(c, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[29](t);
4883
+ be(c, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[29](t);
4878
4884
  },
4879
4885
  p(c, u) {
4880
4886
  o === (o = i(c)) && l ? l.p(c, u) : (l.d(1), l = o(c), l && (l.c(), l.m(n, null))), /*showBalance*/
4881
- c[4] ? s ? s.p(c, u) : (s = Rn(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4887
+ c[4] ? s ? s.p(c, u) : (s = Mn(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4882
4888
  },
4883
4889
  i: le,
4884
4890
  o: le,
@@ -4887,15 +4893,15 @@ function $o(e) {
4887
4893
  }
4888
4894
  };
4889
4895
  }
4890
- function jo(e, t, n) {
4896
+ function Vo(e, t, n) {
4891
4897
  let r;
4892
- gr(e, Oo, (a) => n(6, r = a));
4893
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: c } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: D = "" } = t, H, U, W, q, Y = !1, $ = "", R = [], X, F = !1;
4894
- const y = {}, _e = ["totalCashAmount", "totalRealAmount"], Ze = () => {
4895
- fetch(g).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => Tn(f, a[f]))).catch((a) => console.log(a));
4898
+ yr(e, Lo, (a) => n(6, r = a));
4899
+ let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: c } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: P = "" } = t, H, D, W, q, Y = !1, G = "", R = [], V, U = !1;
4900
+ const y = {}, Be = ["totalCashAmount", "totalRealAmount"], qe = () => {
4901
+ fetch(g).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => Sn(f, a[f]))).catch((a) => console.log(a));
4896
4902
  };
4897
- Object.keys(wn).forEach((a) => Tn(a, wn[a]));
4898
- const Be = (a) => {
4903
+ Object.keys(An).forEach((a) => Sn(a, An[a]));
4904
+ const Te = (a) => {
4899
4905
  switch (a) {
4900
4906
  case "balance":
4901
4907
  window.postMessage(
@@ -4921,20 +4927,20 @@ function jo(e, t, n) {
4921
4927
  );
4922
4928
  break;
4923
4929
  }
4924
- }, Re = () => {
4930
+ }, Le = () => {
4925
4931
  if (b.includes(s))
4926
4932
  return b;
4927
- }, me = (a) => b ? new Intl.NumberFormat(Re(), { useGrouping: !0 }).format(a) : x && S ? he(a, {
4933
+ }, me = (a) => b ? new Intl.NumberFormat(Le(), { useGrouping: !0 }).format(a) : x && S ? he(a, {
4928
4934
  separator: x,
4929
4935
  decimal: S,
4930
4936
  symbol: "",
4931
- precision: parseInt(D || "2", 10)
4937
+ precision: parseInt(P || "2", 10)
4932
4938
  }).format() : he(a, {
4933
4939
  separator: ".",
4934
4940
  decimal: ",",
4935
4941
  symbol: "",
4936
- precision: parseInt(D || "2", 10)
4937
- }).format(), Te = () => Nt(this, null, function* () {
4942
+ precision: parseInt(P || "2", 10)
4943
+ }).format(), we = () => Pt(this, null, function* () {
4938
4944
  var f, p, h;
4939
4945
  n(2, H = !0);
4940
4946
  const a = new URL(`${l}/v1/player/${i}/account`);
@@ -4944,7 +4950,7 @@ function jo(e, t, n) {
4944
4950
  headers: { "X-SessionID": o }
4945
4951
  }), v = yield E.json();
4946
4952
  if (E.ok)
4947
- window.postMessage({ type: "BalancedFetched" }, window.location.href), R = v.items, n(5, $ = (f = R.find((m) => m.displayName === "Casino")) == null ? void 0 : f.currency), n(1, y.Total = [{ amount: v.totalAmount[$] }], y), n(
4953
+ window.postMessage({ type: "BalancedFetched" }, window.location.href), R = v.items, n(5, G = (f = R.find((m) => m.displayName === "Casino")) == null ? void 0 : f.currency), n(1, y.Total = [{ amount: v.totalAmount[G] }], y), n(
4948
4954
  1,
4949
4955
  y.Real = [
4950
4956
  {
@@ -4968,17 +4974,17 @@ function jo(e, t, n) {
4968
4974
  } finally {
4969
4975
  n(2, H = !1);
4970
4976
  }
4971
- }), Ae = () => {
4977
+ }), Ce = () => {
4972
4978
  n(2, H = !0);
4973
4979
  const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
4974
4980
  f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((h) => h.json()).then((h) => {
4975
- h[T] || n(10, T = _e[0]);
4981
+ h[T] || n(10, T = Be[0]);
4976
4982
  const E = h.items.find((m) => m.type === "Real" && m.walletAccountType === "Ordinary");
4977
- if (n(5, $ = E.currency), F = !!E.productType, n(1, y.Total = [{ amount: 0 }], y), n(1, y.Real = [], y), n(1, y.Bonus = [], y), n(1, y.Credit = [], y), !F) {
4978
- X = {
4983
+ if (n(5, G = E.currency), U = !!E.productType, n(1, y.Total = [{ amount: 0 }], y), n(1, y.Real = [], y), n(1, y.Bonus = [], y), n(1, y.Credit = [], y), !U) {
4984
+ V = {
4979
4985
  lastOrdinaryAfterAmount: 0,
4980
4986
  showCreditLineAfterAmount: !1
4981
- }, n(1, y.Total[0].amount = h[T][$], y);
4987
+ }, n(1, y.Total[0].amount = h[T][G], y);
4982
4988
  for (const m of h.items)
4983
4989
  switch (m.type) {
4984
4990
  case "Bonus":
@@ -4995,7 +5001,7 @@ function jo(e, t, n) {
4995
5001
  n(2, H = !1);
4996
5002
  return;
4997
5003
  }
4998
- X = {
5004
+ V = {
4999
5005
  Casino: {
5000
5006
  lastOrdinaryAfterAmount: 0,
5001
5007
  showCreditLineAfterAmount: !1
@@ -5027,29 +5033,29 @@ function jo(e, t, n) {
5027
5033
  break;
5028
5034
  }
5029
5035
  }
5030
- ot();
5036
+ at();
5031
5037
  for (const [m, L] of Object.entries(y))
5032
5038
  L.length < 1 && delete y[m];
5033
5039
  n(2, H = !1);
5034
5040
  }).catch((h) => {
5035
5041
  throw n(2, H = !1), new Error("Failed to fetch balance data !");
5036
5042
  });
5037
- }, Ce = () => {
5043
+ }, He = () => {
5038
5044
  if (q && q.close(), o.length < 1)
5039
5045
  return;
5040
5046
  let a, f;
5041
5047
  switch (_) {
5042
5048
  case "gm16":
5043
- a = new URL(`${l}/v2/player/${i}/information/updates`), f = (E) => Tt(E);
5049
+ a = new URL(`${l}/v2/player/${i}/information/updates`), f = (E) => St(E);
5044
5050
  break;
5045
5051
  case "gmcore":
5046
- a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (E) => qe(E);
5052
+ a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (E) => Qe(E);
5047
5053
  break;
5048
5054
  }
5049
5055
  const p = {
5050
5056
  accept: "text/event-stream",
5051
5057
  "X-SessionId": o
5052
- }, h = new Lo.EventSourcePolyfill(a, { headers: p });
5058
+ }, h = new No.EventSourcePolyfill(a, { headers: p });
5053
5059
  q = h, h.addEventListener("message", f);
5054
5060
  }, ue = (a) => {
5055
5061
  let f;
@@ -5060,19 +5066,19 @@ function jo(e, t, n) {
5060
5066
  return;
5061
5067
  }
5062
5068
  return f;
5063
- }, qe = (a) => {
5069
+ }, Qe = (a) => {
5064
5070
  var E, v;
5065
5071
  const f = ue(a.data);
5066
5072
  if (!f) {
5067
- Ce();
5073
+ He();
5068
5074
  return;
5069
5075
  }
5070
5076
  let p = "0";
5071
5077
  const h = f.balanceChange;
5072
- R = R.map((m) => (h && h[m.id] && (m = Mt(Lt({}, m), {
5078
+ R = R.map((m) => (h && h[m.id] && (m = It(Nt({}, m), {
5073
5079
  balanceAmount: h[m.id].afterAmount
5074
5080
  })), p = (parseFloat(m == null ? void 0 : m.balanceAmount) + parseFloat(p)).toString(), m)), n(1, y.Real = [{ amount: (E = R[0]) == null ? void 0 : E.balanceAmount }], y), n(1, y.Bonus = [{ amount: (v = R[1]) == null ? void 0 : v.balanceAmount }], y), n(1, y.Total = [{ amount: Number(p) }], y);
5075
- }, Le = (a, f, p) => {
5081
+ }, Me = (a, f, p) => {
5076
5082
  let h = null;
5077
5083
  switch (p.walletAccountType) {
5078
5084
  case "Ordinary":
@@ -5085,7 +5091,7 @@ function jo(e, t, n) {
5085
5091
  h = p.afterAmount;
5086
5092
  }
5087
5093
  return h === null ? a : h;
5088
- }, ot = () => {
5094
+ }, at = () => {
5089
5095
  switch (T) {
5090
5096
  case "totalCashAmount":
5091
5097
  let a = 0;
@@ -5095,82 +5101,82 @@ function jo(e, t, n) {
5095
5101
  n(1, y.Total[0].amount = a, y);
5096
5102
  break;
5097
5103
  case "totalRealAmount":
5098
- if (!F)
5104
+ if (!U)
5099
5105
  return;
5100
5106
  let f = 0;
5101
5107
  for (const p of y.Real)
5102
5108
  f += p.amount;
5103
5109
  n(1, y.Total[0].amount = f, y);
5104
5110
  }
5105
- }, Tt = (a) => {
5111
+ }, St = (a) => {
5106
5112
  const f = ue(a.data);
5107
5113
  if (!f) {
5108
- Ce();
5114
+ He();
5109
5115
  return;
5110
5116
  }
5111
5117
  if (f.type !== "BALANCE_UPDATE_V2")
5112
5118
  return;
5113
5119
  const p = f.body.balanceChange;
5114
5120
  for (const [h, E] of Object.entries(p))
5115
- if (T === "totalRealAmount" && h === "Real" && !F && n(1, y.Total[0].amount = Le(y.Total[0].amount, X, E), y), !!y[h])
5121
+ if (T === "totalRealAmount" && h === "Real" && !U && n(1, y.Total[0].amount = Me(y.Total[0].amount, V, E), y), !!y[h])
5116
5122
  for (const v of y[h]) {
5117
- if (!F) {
5118
- v.amount = h === "Real" ? Le(v.amount, X, E) : E.afterAmount;
5123
+ if (!U) {
5124
+ v.amount = h === "Real" ? Me(v.amount, V, E) : E.afterAmount;
5119
5125
  continue;
5120
5126
  }
5121
- E.productType === v.productType && (v.amount = h === "Real" ? Le(v.amount, X[v.productType], E) : E.afterAmount);
5127
+ E.productType === v.productType && (v.amount = h === "Real" ? Me(v.amount, V[v.productType], E) : E.afterAmount);
5122
5128
  }
5123
- ot();
5124
- }, at = () => {
5125
- Be("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5126
- }, wt = () => {
5127
- _e.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${_e}. Using default value ('${_e[0]}').`), n(10, T = _e[0]));
5128
- }, Qe = () => {
5129
- switch (Ro(s), wt(), _) {
5129
+ at();
5130
+ }, st = () => {
5131
+ Te("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
5132
+ }, At = () => {
5133
+ Be.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${Be}. Using default value ('${Be[0]}').`), n(10, T = Be[0]));
5134
+ }, Je = () => {
5135
+ switch (Mo(s), At(), _) {
5130
5136
  case "gmcore":
5131
- Te();
5137
+ we();
5132
5138
  break;
5133
5139
  case "gm16":
5134
- Ae();
5140
+ Ce();
5135
5141
  break;
5136
5142
  default:
5137
5143
  throw Error(`Invalid apiversion attribute: ${_}`);
5138
5144
  }
5139
- }, Me = (a) => a.data && a.data.type === "LogoutSuccessfull" && q.close(), we = () => {
5145
+ }, Ne = (a) => a.data && a.data.type === "LogoutSuccessfull" && q.close(), Se = () => {
5140
5146
  window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
5141
5147
  };
5142
- Tr(() => (window.addEventListener("message", Me, !1), () => {
5143
- window.removeEventListener("message", Me), q && q.close();
5148
+ Sr(() => (window.addEventListener("message", Ne, !1), () => {
5149
+ window.removeEventListener("message", Ne), q && q.close();
5144
5150
  }));
5145
- const re = () => Be("balance"), St = () => Be("closebalance"), At = () => at(), Ct = () => Be("closeBalance");
5146
- function st(a) {
5147
- jt[a ? "unshift" : "push"](() => {
5148
- U = a, n(0, U);
5151
+ const re = () => Te("balance"), Ct = () => Te("closebalance"), Ht = () => st(), Ot = () => Te("closeBalance");
5152
+ function lt(a) {
5153
+ Vt[a ? "unshift" : "push"](() => {
5154
+ D = a, n(0, D);
5149
5155
  });
5150
5156
  }
5151
5157
  return e.$$set = (a) => {
5152
- "userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, c = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, g = a.translationurl), "customlocaleidentifier" in a && n(19, b = a.customlocaleidentifier), "gmversion" in a && n(20, _ = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, x = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, D = a.currencyprecision);
5158
+ "userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, c = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, g = a.translationurl), "customlocaleidentifier" in a && n(19, b = a.customlocaleidentifier), "gmversion" in a && n(20, _ = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, x = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, P = a.currencyprecision);
5153
5159
  }, e.$$.update = () => {
5154
5160
  e.$$.dirty[0] & /*lang*/
5155
- 16384 && s && Re(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5156
- 3176448 && l && i && o && s && _ && B && Qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5157
- 1062912 && l && i && o && _ && Ce(), e.$$.dirty[0] & /*translationurl*/
5158
- 262144 && g && Ze(), e.$$.dirty[0] & /*balances*/
5159
- 2 && y.Total && we(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5160
- 65537 && u && U && Ur(U, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5161
- 131073 && d && U && Fr(U, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5162
- 32769 && c && U && Gr(U, `${c}.Style`);
5161
+ 16384 && s && Le(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
5162
+ 3176448 && l && i && o && s && _ && B && Je(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
5163
+ 1062912 && l && i && o && _ && He(), e.$$.dirty[0] & /*translationurl*/
5164
+ 262144 && g && qe(), e.$$.dirty[0] & /*balances*/
5165
+ 2 && y.Total && Se(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5166
+ 65537 && u && D && Gr(D, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5167
+ 131073 && d && D && $r(D, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5168
+ 32769 && c && D && jr(D, `${c}.Style`);
5163
5169
  }, [
5164
- U,
5170
+ D,
5165
5171
  y,
5166
5172
  H,
5167
5173
  W,
5168
5174
  Y,
5169
- $,
5175
+ G,
5170
5176
  r,
5171
- Be,
5177
+ Te,
5172
5178
  me,
5173
- at,
5179
+ st,
5174
5180
  T,
5175
5181
  i,
5176
5182
  o,
@@ -5185,22 +5191,22 @@ function jo(e, t, n) {
5185
5191
  B,
5186
5192
  x,
5187
5193
  S,
5188
- D,
5194
+ P,
5189
5195
  re,
5190
- St,
5191
- At,
5192
5196
  Ct,
5193
- st
5197
+ Ht,
5198
+ Ot,
5199
+ lt
5194
5200
  ];
5195
5201
  }
5196
- class ko extends Pr {
5202
+ class Xo extends Ur {
5197
5203
  constructor(t) {
5198
- super(), Nr(
5204
+ super(), Pr(
5199
5205
  this,
5200
5206
  t,
5201
- jo,
5202
- $o,
5203
- Mn,
5207
+ Vo,
5208
+ ko,
5209
+ In,
5204
5210
  {
5205
5211
  userid: 11,
5206
5212
  session: 12,
@@ -5218,7 +5224,7 @@ class ko extends Pr {
5218
5224
  currencydecimal: 23,
5219
5225
  currencyprecision: 24
5220
5226
  },
5221
- Uo,
5227
+ Go,
5222
5228
  [-1, -1]
5223
5229
  );
5224
5230
  }
@@ -5313,7 +5319,7 @@ class ko extends Pr {
5313
5319
  this.$$set({ currencyprecision: t }), J();
5314
5320
  }
5315
5321
  }
5316
- Ir(ko, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5322
+ Dr(Xo, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
5317
5323
  export {
5318
- ko as default
5324
+ Xo as default
5319
5325
  };