@everymatrix/player-account-balance-modal 1.87.26 → 1.87.28

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,43 +1,43 @@
1
- function oe() {
1
+ function se() {
2
2
  }
3
3
  function Bn(e) {
4
4
  return e();
5
5
  }
6
- function en() {
6
+ function tn() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function je(e) {
9
+ function ke(e) {
10
10
  e.forEach(Bn);
11
11
  }
12
- function Qt(e) {
12
+ function Jt(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Sn(e, t) {
15
+ function wn(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function tr(e) {
18
+ function nr(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function wn(e, ...t) {
21
+ function An(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const r of t)
24
24
  r(void 0);
25
- return oe;
25
+ return se;
26
26
  }
27
27
  const n = e.subscribe(...t);
28
28
  return n.unsubscribe ? () => n.unsubscribe() : n;
29
29
  }
30
- function nr(e, t, n) {
31
- e.$$.on_destroy.push(wn(t, n));
30
+ function rr(e, t, n) {
31
+ e.$$.on_destroy.push(An(t, n));
32
32
  }
33
- function M(e, t) {
33
+ function R(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function rr(e, t, n) {
36
+ function or(e, t, n) {
37
37
  const r = ir(e);
38
38
  if (!r.getElementById(t)) {
39
- const i = G("style");
40
- i.id = t, i.textContent = n, or(r, i);
39
+ const o = G("style");
40
+ o.id = t, o.textContent = n, ar(r, o);
41
41
  }
42
42
  }
43
43
  function ir(e) {
@@ -50,8 +50,8 @@ function ir(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function or(e, t) {
54
- return M(
53
+ function ar(e, t) {
54
+ return R(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
@@ -63,36 +63,36 @@ function fe(e, t, n) {
63
63
  function le(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function An(e, t) {
66
+ function Cn(e, t) {
67
67
  for (let n = 0; n < e.length; n += 1)
68
68
  e[n] && e[n].d(t);
69
69
  }
70
70
  function G(e) {
71
71
  return document.createElement(e);
72
72
  }
73
- function ve(e) {
73
+ function be(e) {
74
74
  return document.createTextNode(e);
75
75
  }
76
- function Ee() {
77
- return ve(" ");
76
+ function ye() {
77
+ return be(" ");
78
78
  }
79
- function ar() {
80
- return ve("");
79
+ function sr() {
80
+ return be("");
81
81
  }
82
- function dt(e, t, n, r) {
82
+ function gt(e, t, n, r) {
83
83
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
84
84
  }
85
85
  function z(e, t, n) {
86
86
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
87
87
  }
88
- function sr(e) {
88
+ function ur(e) {
89
89
  return Array.from(e.childNodes);
90
90
  }
91
91
  function Ce(e, t) {
92
92
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
93
93
  t);
94
94
  }
95
- function ur(e) {
95
+ function lr(e) {
96
96
  const t = {};
97
97
  return e.childNodes.forEach(
98
98
  /** @param {Element} node */
@@ -101,128 +101,128 @@ function ur(e) {
101
101
  }
102
102
  ), t;
103
103
  }
104
- let Ke;
105
- function Ye(e) {
106
- Ke = e;
104
+ let tt;
105
+ function et(e) {
106
+ tt = e;
107
107
  }
108
- function lr() {
109
- if (!Ke)
108
+ function hr() {
109
+ if (!tt)
110
110
  throw new Error("Function called outside component initialization");
111
- return Ke;
111
+ return tt;
112
112
  }
113
- function hr(e) {
114
- lr().$$.on_mount.push(e);
113
+ function cr(e) {
114
+ hr().$$.on_mount.push(e);
115
115
  }
116
- const Pe = [], Dt = [];
117
- let Ie = [];
118
- const tn = [], cr = /* @__PURE__ */ Promise.resolve();
119
- let Ft = !1;
120
- function fr() {
121
- Ft || (Ft = !0, cr.then($));
116
+ const Pe = [], Ft = [];
117
+ let De = [];
118
+ const nn = [], fr = /* @__PURE__ */ Promise.resolve();
119
+ let Ut = !1;
120
+ function dr() {
121
+ Ut || (Ut = !0, fr.then($));
122
122
  }
123
- function Ut(e) {
124
- Ie.push(e);
123
+ function Gt(e) {
124
+ De.push(e);
125
125
  }
126
- const Ot = /* @__PURE__ */ new Set();
126
+ const Lt = /* @__PURE__ */ new Set();
127
127
  let Ne = 0;
128
128
  function $() {
129
129
  if (Ne !== 0)
130
130
  return;
131
- const e = Ke;
131
+ const e = tt;
132
132
  do {
133
133
  try {
134
134
  for (; Ne < Pe.length; ) {
135
135
  const t = Pe[Ne];
136
- Ne++, Ye(t), dr(t.$$);
136
+ Ne++, et(t), pr(t.$$);
137
137
  }
138
138
  } catch (t) {
139
139
  throw Pe.length = 0, Ne = 0, t;
140
140
  }
141
- for (Ye(null), Pe.length = 0, Ne = 0; Dt.length; )
142
- Dt.pop()();
143
- for (let t = 0; t < Ie.length; t += 1) {
144
- const n = Ie[t];
145
- Ot.has(n) || (Ot.add(n), n());
141
+ for (et(null), Pe.length = 0, Ne = 0; Ft.length; )
142
+ Ft.pop()();
143
+ for (let t = 0; t < De.length; t += 1) {
144
+ const n = De[t];
145
+ Lt.has(n) || (Lt.add(n), n());
146
146
  }
147
- Ie.length = 0;
147
+ De.length = 0;
148
148
  } while (Pe.length);
149
- for (; tn.length; )
150
- tn.pop()();
151
- Ft = !1, Ot.clear(), Ye(e);
149
+ for (; nn.length; )
150
+ nn.pop()();
151
+ Ut = !1, Lt.clear(), et(e);
152
152
  }
153
- function dr(e) {
153
+ function pr(e) {
154
154
  if (e.fragment !== null) {
155
- e.update(), je(e.before_update);
155
+ e.update(), ke(e.before_update);
156
156
  const t = e.dirty;
157
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ut);
157
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Gt);
158
158
  }
159
159
  }
160
- function pr(e) {
160
+ function mr(e) {
161
161
  const t = [], n = [];
162
- Ie.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ie = t;
162
+ De.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), De = t;
163
163
  }
164
- const mr = /* @__PURE__ */ new Set();
165
- function gr(e, t) {
166
- e && e.i && (mr.delete(e), e.i(t));
164
+ const gr = /* @__PURE__ */ new Set();
165
+ function br(e, t) {
166
+ e && e.i && (gr.delete(e), e.i(t));
167
167
  }
168
- function pt(e) {
168
+ function bt(e) {
169
169
  return e?.length !== void 0 ? e : Array.from(e);
170
170
  }
171
- function br(e, t, n) {
172
- const { fragment: r, after_update: i } = e.$$;
173
- r && r.m(t, n), Ut(() => {
174
- const o = e.$$.on_mount.map(Bn).filter(Qt);
175
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : je(o), e.$$.on_mount = [];
176
- }), i.forEach(Ut);
171
+ function yr(e, t, n) {
172
+ const { fragment: r, after_update: o } = e.$$;
173
+ r && r.m(t, n), Gt(() => {
174
+ const i = e.$$.on_mount.map(Bn).filter(Jt);
175
+ e.$$.on_destroy ? e.$$.on_destroy.push(...i) : ke(i), e.$$.on_mount = [];
176
+ }), o.forEach(Gt);
177
177
  }
178
- function yr(e, t) {
178
+ function vr(e, t) {
179
179
  const n = e.$$;
180
- n.fragment !== null && (pr(n.after_update), je(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
180
+ n.fragment !== null && (mr(n.after_update), ke(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
181
181
  }
182
- function vr(e, t) {
183
- e.$$.dirty[0] === -1 && (Pe.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
182
+ function Er(e, t) {
183
+ e.$$.dirty[0] === -1 && (Pe.push(e), dr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
184
184
  }
185
- function Er(e, t, n, r, i, o, l = null, s = [-1]) {
186
- const p = Ke;
187
- Ye(e);
185
+ function xr(e, t, n, r, o, i, u = null, a = [-1]) {
186
+ const d = tt;
187
+ et(e);
188
188
  const c = e.$$ = {
189
189
  fragment: null,
190
190
  ctx: [],
191
191
  // state
192
- props: o,
193
- update: oe,
194
- not_equal: i,
195
- bound: en(),
192
+ props: i,
193
+ update: se,
194
+ not_equal: o,
195
+ bound: tn(),
196
196
  // lifecycle
197
197
  on_mount: [],
198
198
  on_destroy: [],
199
199
  on_disconnect: [],
200
200
  before_update: [],
201
201
  after_update: [],
202
- context: new Map(t.context || (p ? p.$$.context : [])),
202
+ context: new Map(t.context || (d ? d.$$.context : [])),
203
203
  // everything else
204
- callbacks: en(),
205
- dirty: s,
204
+ callbacks: tn(),
205
+ dirty: a,
206
206
  skip_bound: !1,
207
- root: t.target || p.$$.root
207
+ root: t.target || d.$$.root
208
208
  };
209
- l && l(c.root);
210
- let d = !1;
209
+ u && u(c.root);
210
+ let f = !1;
211
211
  if (c.ctx = n ? n(e, t.props || {}, (g, b, ..._) => {
212
- const B = _.length ? _[0] : b;
213
- return c.ctx && i(c.ctx[g], c.ctx[g] = B) && (!c.skip_bound && c.bound[g] && c.bound[g](B), d && vr(e, g)), b;
214
- }) : [], c.update(), d = !0, je(c.before_update), c.fragment = r ? r(c.ctx) : !1, t.target) {
212
+ const S = _.length ? _[0] : b;
213
+ return c.ctx && o(c.ctx[g], c.ctx[g] = S) && (!c.skip_bound && c.bound[g] && c.bound[g](S), f && Er(e, g)), b;
214
+ }) : [], c.update(), f = !0, ke(c.before_update), c.fragment = r ? r(c.ctx) : !1, t.target) {
215
215
  if (t.hydrate) {
216
- const g = sr(t.target);
216
+ const g = ur(t.target);
217
217
  c.fragment && c.fragment.l(g), g.forEach(le);
218
218
  } else
219
219
  c.fragment && c.fragment.c();
220
- t.intro && gr(e.$$.fragment), br(e, t.target, t.anchor), $();
220
+ t.intro && br(e.$$.fragment), yr(e, t.target, t.anchor), $();
221
221
  }
222
- Ye(p);
222
+ et(d);
223
223
  }
224
- let Cn;
225
- typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
224
+ let Hn;
225
+ typeof HTMLElement == "function" && (Hn = class extends HTMLElement {
226
226
  /** The Svelte component constructor */
227
227
  $$ctor;
228
228
  /** Slots */
@@ -259,37 +259,37 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
259
259
  }
260
260
  async connectedCallback() {
261
261
  if (this.$$cn = !0, !this.$$c) {
262
- let e = function(i) {
262
+ let e = function(o) {
263
263
  return () => {
264
- let o;
264
+ let i;
265
265
  return {
266
266
  c: function() {
267
- o = G("slot"), i !== "default" && z(o, "name", i);
267
+ i = G("slot"), o !== "default" && z(i, "name", o);
268
268
  },
269
269
  /**
270
270
  * @param {HTMLElement} target
271
271
  * @param {HTMLElement} [anchor]
272
272
  */
273
- m: function(p, c) {
274
- fe(p, o, c);
273
+ m: function(d, c) {
274
+ fe(d, i, c);
275
275
  },
276
- d: function(p) {
277
- p && le(o);
276
+ d: function(d) {
277
+ d && le(i);
278
278
  }
279
279
  };
280
280
  };
281
281
  };
282
282
  if (await Promise.resolve(), !this.$$cn || this.$$c)
283
283
  return;
284
- const t = {}, n = ur(this);
285
- for (const i of this.$$s)
286
- i in n && (t[i] = [e(i)]);
287
- for (const i of this.attributes) {
288
- const o = this.$$g_p(i.name);
289
- o in this.$$d || (this.$$d[o] = ht(o, i.value, this.$$p_d, "toProp"));
284
+ const t = {}, n = lr(this);
285
+ for (const o of this.$$s)
286
+ o in n && (t[o] = [e(o)]);
287
+ for (const o of this.attributes) {
288
+ const i = this.$$g_p(o.name);
289
+ i in this.$$d || (this.$$d[i] = dt(i, o.value, this.$$p_d, "toProp"));
290
290
  }
291
- for (const i in this.$$p_d)
292
- !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
291
+ for (const o in this.$$p_d)
292
+ !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
293
293
  this.$$c = new this.$$ctor({
294
294
  target: this.shadowRoot || this,
295
295
  props: {
@@ -302,23 +302,23 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
302
302
  });
303
303
  const r = () => {
304
304
  this.$$r = !0;
305
- for (const i in this.$$p_d)
306
- if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
307
- const o = ht(
308
- i,
309
- this.$$d[i],
305
+ for (const o in this.$$p_d)
306
+ if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
307
+ const i = dt(
308
+ o,
309
+ this.$$d[o],
310
310
  this.$$p_d,
311
311
  "toAttribute"
312
312
  );
313
- o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
313
+ i == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, i);
314
314
  }
315
315
  this.$$r = !1;
316
316
  };
317
317
  this.$$c.$$.after_update.push(r), r();
318
- for (const i in this.$$l)
319
- for (const o of this.$$l[i]) {
320
- const l = this.$$c.$on(i, o);
321
- this.$$l_u.set(o, l);
318
+ for (const o in this.$$l)
319
+ for (const i of this.$$l[o]) {
320
+ const u = this.$$c.$on(o, i);
321
+ this.$$l_u.set(i, u);
322
322
  }
323
323
  this.$$l = {};
324
324
  }
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
326
326
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
327
327
  // and setting attributes through setAttribute etc, this is helpful
328
328
  attributeChangedCallback(e, t, n) {
329
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ht(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
329
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = dt(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
330
330
  }
331
331
  disconnectedCallback() {
332
332
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -339,12 +339,12 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
339
339
  ) || e;
340
340
  }
341
341
  });
342
- function ht(e, t, n, r) {
343
- const i = n[e]?.type;
344
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
342
+ function dt(e, t, n, r) {
343
+ const o = n[e]?.type;
344
+ if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
345
345
  return t;
346
346
  if (r === "toAttribute")
347
- switch (i) {
347
+ switch (o) {
348
348
  case "Object":
349
349
  case "Array":
350
350
  return t == null ? null : JSON.stringify(t);
@@ -356,7 +356,7 @@ function ht(e, t, n, r) {
356
356
  return t;
357
357
  }
358
358
  else
359
- switch (i) {
359
+ switch (o) {
360
360
  case "Object":
361
361
  case "Array":
362
362
  return t && JSON.parse(t);
@@ -368,36 +368,36 @@ function ht(e, t, n, r) {
368
368
  return t;
369
369
  }
370
370
  }
371
- function xr(e, t, n, r, i, o) {
372
- let l = class extends Cn {
371
+ function _r(e, t, n, r, o, i) {
372
+ let u = class extends Hn {
373
373
  constructor() {
374
- super(e, n, i), this.$$p_d = t;
374
+ super(e, n, o), this.$$p_d = t;
375
375
  }
376
376
  static get observedAttributes() {
377
377
  return Object.keys(t).map(
378
- (s) => (t[s].attribute || s).toLowerCase()
378
+ (a) => (t[a].attribute || a).toLowerCase()
379
379
  );
380
380
  }
381
381
  };
382
- return Object.keys(t).forEach((s) => {
383
- Object.defineProperty(l.prototype, s, {
382
+ return Object.keys(t).forEach((a) => {
383
+ Object.defineProperty(u.prototype, a, {
384
384
  get() {
385
- return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
385
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
386
386
  },
387
- set(p) {
388
- p = ht(s, p, t), this.$$d[s] = p, this.$$c?.$set({ [s]: p });
387
+ set(d) {
388
+ d = dt(a, d, t), this.$$d[a] = d, this.$$c?.$set({ [a]: d });
389
389
  }
390
390
  });
391
- }), r.forEach((s) => {
392
- Object.defineProperty(l.prototype, s, {
391
+ }), r.forEach((a) => {
392
+ Object.defineProperty(u.prototype, a, {
393
393
  get() {
394
- return this.$$c?.[s];
394
+ return this.$$c?.[a];
395
395
  }
396
396
  });
397
397
  }), e.element = /** @type {any} */
398
- l, l;
398
+ u, u;
399
399
  }
400
- class _r {
400
+ class Tr {
401
401
  /**
402
402
  * ### PRIVATE API
403
403
  *
@@ -416,7 +416,7 @@ class _r {
416
416
  $$set = void 0;
417
417
  /** @returns {void} */
418
418
  $destroy() {
419
- yr(this, 1), this.$destroy = oe;
419
+ vr(this, 1), this.$destroy = se;
420
420
  }
421
421
  /**
422
422
  * @template {Extract<keyof Events, string>} K
@@ -425,12 +425,12 @@ class _r {
425
425
  * @returns {() => void}
426
426
  */
427
427
  $on(t, n) {
428
- if (!Qt(n))
429
- return oe;
428
+ if (!Jt(n))
429
+ return se;
430
430
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
431
431
  return r.push(n), () => {
432
- const i = r.indexOf(n);
433
- i !== -1 && r.splice(i, 1);
432
+ const o = r.indexOf(n);
433
+ o !== -1 && r.splice(o, 1);
434
434
  };
435
435
  }
436
436
  /**
@@ -438,186 +438,214 @@ class _r {
438
438
  * @returns {void}
439
439
  */
440
440
  $set(t) {
441
- this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
441
+ this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
442
442
  }
443
443
  }
444
- const Tr = "4";
445
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tr);
444
+ const Sr = "4";
445
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
446
+ const Ie = "__WIDGET_GLOBAL_STYLE_CACHE__";
446
447
  function Br(e, t) {
447
448
  if (e) {
448
449
  const n = document.createElement("style");
449
450
  n.innerHTML = t, e.appendChild(n);
450
451
  }
451
452
  }
452
- function Sr(e, t) {
453
+ function wr(e, t) {
453
454
  if (!e || !t)
454
455
  return;
455
456
  const n = new URL(t);
456
457
  fetch(n.href).then((r) => r.text()).then((r) => {
457
- const i = document.createElement("style");
458
- i.innerHTML = r, e && e.appendChild(i);
458
+ const o = document.createElement("style");
459
+ o.innerHTML = r, e && e.appendChild(o);
459
460
  }).catch((r) => {
460
461
  console.error("There was an error while trying to load client styling from URL", r);
461
462
  });
462
463
  }
463
- function wr(e, t, n) {
464
- if (window.emMessageBus) {
465
- const r = document.createElement("style");
466
- window.emMessageBus.subscribe(t, (i) => {
467
- r.innerHTML = i, e && e.appendChild(r);
464
+ function Ar(e, t, n, r = !1) {
465
+ if (!window.emMessageBus)
466
+ return;
467
+ if (!("adoptedStyleSheets" in Document.prototype) || !r)
468
+ return n = Cr(e, t), n;
469
+ window[Ie] || (window[Ie] = {}), n = Hr(e, t);
470
+ const i = n.unsubscribe.bind(n), u = () => {
471
+ if (window[Ie][t]) {
472
+ const a = window[Ie][t];
473
+ a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[Ie][t];
474
+ }
475
+ i();
476
+ };
477
+ return n.unsubscribe = u, n;
478
+ }
479
+ function Cr(e, t) {
480
+ const n = document.createElement("style");
481
+ return window.emMessageBus.subscribe(t, (r) => {
482
+ e && (n.innerHTML = r, e.appendChild(n));
483
+ });
484
+ }
485
+ function Hr(e, t) {
486
+ return window.emMessageBus.subscribe(t, (n) => {
487
+ if (!e)
488
+ return;
489
+ const r = e.getRootNode(), o = window[Ie];
490
+ let i = o[t]?.sheet;
491
+ i ? o[t].refCount = o[t].refCount + 1 : (i = new CSSStyleSheet(), i.replaceSync(n), o[t] = {
492
+ sheet: i,
493
+ refCount: 1
468
494
  });
469
- }
495
+ const u = r.adoptedStyleSheets || [];
496
+ u.includes(i) || (r.adoptedStyleSheets = [...u, i]);
497
+ });
470
498
  }
471
499
  const Me = [];
472
- function Ar(e, t) {
500
+ function Or(e, t) {
473
501
  return {
474
- subscribe: yt(e, t).subscribe
502
+ subscribe: xt(e, t).subscribe
475
503
  };
476
504
  }
477
- function yt(e, t = oe) {
505
+ function xt(e, t = se) {
478
506
  let n;
479
507
  const r = /* @__PURE__ */ new Set();
480
- function i(s) {
481
- if (Sn(e, s) && (e = s, n)) {
482
- const p = !Me.length;
508
+ function o(a) {
509
+ if (wn(e, a) && (e = a, n)) {
510
+ const d = !Me.length;
483
511
  for (const c of r)
484
512
  c[1](), Me.push(c, e);
485
- if (p) {
513
+ if (d) {
486
514
  for (let c = 0; c < Me.length; c += 2)
487
515
  Me[c][0](Me[c + 1]);
488
516
  Me.length = 0;
489
517
  }
490
518
  }
491
519
  }
492
- function o(s) {
493
- i(s(e));
520
+ function i(a) {
521
+ o(a(e));
494
522
  }
495
- function l(s, p = oe) {
496
- const c = [s, p];
497
- return r.add(c), r.size === 1 && (n = t(i, o) || oe), s(e), () => {
523
+ function u(a, d = se) {
524
+ const c = [a, d];
525
+ return r.add(c), r.size === 1 && (n = t(o, i) || se), a(e), () => {
498
526
  r.delete(c), r.size === 0 && n && (n(), n = null);
499
527
  };
500
528
  }
501
- return { set: i, update: o, subscribe: l };
529
+ return { set: o, update: i, subscribe: u };
502
530
  }
503
- function ke(e, t, n) {
504
- const r = !Array.isArray(e), i = r ? [e] : e;
505
- if (!i.every(Boolean))
531
+ function $e(e, t, n) {
532
+ const r = !Array.isArray(e), o = r ? [e] : e;
533
+ if (!o.every(Boolean))
506
534
  throw new Error("derived() expects stores as input, got a falsy value");
507
- const o = t.length < 2;
508
- return Ar(n, (l, s) => {
509
- let p = !1;
535
+ const i = t.length < 2;
536
+ return Or(n, (u, a) => {
537
+ let d = !1;
510
538
  const c = [];
511
- let d = 0, g = oe;
539
+ let f = 0, g = se;
512
540
  const b = () => {
513
- if (d)
541
+ if (f)
514
542
  return;
515
543
  g();
516
- const B = t(r ? c[0] : c, l, s);
517
- o ? l(B) : g = Qt(B) ? B : oe;
518
- }, _ = i.map(
519
- (B, I) => wn(
520
- B,
544
+ const S = t(r ? c[0] : c, u, a);
545
+ i ? u(S) : g = Jt(S) ? S : se;
546
+ }, _ = o.map(
547
+ (S, P) => An(
548
+ S,
521
549
  (j) => {
522
- c[I] = j, d &= ~(1 << I), p && b();
550
+ c[P] = j, f &= ~(1 << P), d && b();
523
551
  },
524
552
  () => {
525
- d |= 1 << I;
553
+ f |= 1 << P;
526
554
  }
527
555
  )
528
556
  );
529
- return p = !0, b(), function() {
530
- je(_), g(), p = !1;
557
+ return d = !0, b(), function() {
558
+ ke(_), g(), d = !1;
531
559
  };
532
560
  });
533
561
  }
534
- var Cr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
535
- function Hr(e) {
562
+ var Lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
563
+ function Rr(e) {
536
564
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
537
565
  }
538
- var Or = function(t) {
539
- return Lr(t) && !Rr(t);
566
+ var Nr = function(t) {
567
+ return Mr(t) && !Pr(t);
540
568
  };
541
- function Lr(e) {
569
+ function Mr(e) {
542
570
  return !!e && typeof e == "object";
543
571
  }
544
- function Rr(e) {
572
+ function Pr(e) {
545
573
  var t = Object.prototype.toString.call(e);
546
- return t === "[object RegExp]" || t === "[object Date]" || Pr(e);
574
+ return t === "[object RegExp]" || t === "[object Date]" || Fr(e);
547
575
  }
548
- var Nr = typeof Symbol == "function" && Symbol.for, Mr = Nr ? Symbol.for("react.element") : 60103;
549
- function Pr(e) {
550
- return e.$$typeof === Mr;
576
+ var Ir = typeof Symbol == "function" && Symbol.for, Dr = Ir ? Symbol.for("react.element") : 60103;
577
+ function Fr(e) {
578
+ return e.$$typeof === Dr;
551
579
  }
552
- function Ir(e) {
580
+ function Ur(e) {
553
581
  return Array.isArray(e) ? [] : {};
554
582
  }
555
- function et(e, t) {
556
- return t.clone !== !1 && t.isMergeableObject(e) ? De(Ir(e), e, t) : e;
583
+ function nt(e, t) {
584
+ return t.clone !== !1 && t.isMergeableObject(e) ? Fe(Ur(e), e, t) : e;
557
585
  }
558
- function Dr(e, t, n) {
586
+ function Gr(e, t, n) {
559
587
  return e.concat(t).map(function(r) {
560
- return et(r, n);
588
+ return nt(r, n);
561
589
  });
562
590
  }
563
- function Fr(e, t) {
591
+ function jr(e, t) {
564
592
  if (!t.customMerge)
565
- return De;
593
+ return Fe;
566
594
  var n = t.customMerge(e);
567
- return typeof n == "function" ? n : De;
595
+ return typeof n == "function" ? n : Fe;
568
596
  }
569
- function Ur(e) {
597
+ function kr(e) {
570
598
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
571
599
  return Object.propertyIsEnumerable.call(e, t);
572
600
  }) : [];
573
601
  }
574
- function nn(e) {
575
- return Object.keys(e).concat(Ur(e));
602
+ function rn(e) {
603
+ return Object.keys(e).concat(kr(e));
576
604
  }
577
- function Hn(e, t) {
605
+ function On(e, t) {
578
606
  try {
579
607
  return t in e;
580
608
  } catch {
581
609
  return !1;
582
610
  }
583
611
  }
584
- function Gr(e, t) {
585
- return Hn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
612
+ function $r(e, t) {
613
+ return On(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
586
614
  }
587
- function jr(e, t, n) {
615
+ function Vr(e, t, n) {
588
616
  var r = {};
589
- return n.isMergeableObject(e) && nn(e).forEach(function(i) {
590
- r[i] = et(e[i], n);
591
- }), nn(t).forEach(function(i) {
592
- Gr(e, i) || (Hn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fr(i, n)(e[i], t[i], n) : r[i] = et(t[i], n));
617
+ return n.isMergeableObject(e) && rn(e).forEach(function(o) {
618
+ r[o] = nt(e[o], n);
619
+ }), rn(t).forEach(function(o) {
620
+ $r(e, o) || (On(e, o) && n.isMergeableObject(t[o]) ? r[o] = jr(o, n)(e[o], t[o], n) : r[o] = nt(t[o], n));
593
621
  }), r;
594
622
  }
595
- function De(e, t, n) {
596
- n = n || {}, n.arrayMerge = n.arrayMerge || Dr, n.isMergeableObject = n.isMergeableObject || Or, n.cloneUnlessOtherwiseSpecified = et;
597
- var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
598
- return o ? r ? n.arrayMerge(e, t, n) : jr(e, t, n) : et(t, n);
623
+ function Fe(e, t, n) {
624
+ n = n || {}, n.arrayMerge = n.arrayMerge || Gr, n.isMergeableObject = n.isMergeableObject || Nr, n.cloneUnlessOtherwiseSpecified = nt;
625
+ var r = Array.isArray(t), o = Array.isArray(e), i = r === o;
626
+ return i ? r ? n.arrayMerge(e, t, n) : Vr(e, t, n) : nt(t, n);
599
627
  }
600
- De.all = function(t, n) {
628
+ Fe.all = function(t, n) {
601
629
  if (!Array.isArray(t))
602
630
  throw new Error("first argument should be an array");
603
- return t.reduce(function(r, i) {
604
- return De(r, i, n);
631
+ return t.reduce(function(r, o) {
632
+ return Fe(r, o, n);
605
633
  }, {});
606
634
  };
607
- var kr = De, $r = kr;
608
- const Vr = /* @__PURE__ */ Hr($r);
609
- var Gt = function(e, t) {
610
- return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
635
+ var Xr = Fe, zr = Xr;
636
+ const Wr = /* @__PURE__ */ Rr(zr);
637
+ var jt = function(e, t) {
638
+ return jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
611
639
  n.__proto__ = r;
612
640
  } || function(n, r) {
613
- for (var i in r)
614
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
615
- }, Gt(e, t);
641
+ for (var o in r)
642
+ Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
643
+ }, jt(e, t);
616
644
  };
617
- function vt(e, t) {
645
+ function _t(e, t) {
618
646
  if (typeof t != "function" && t !== null)
619
647
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
620
- Gt(e, t);
648
+ jt(e, t);
621
649
  function n() {
622
650
  this.constructor = e;
623
651
  }
@@ -625,60 +653,60 @@ function vt(e, t) {
625
653
  }
626
654
  var ce = function() {
627
655
  return ce = Object.assign || function(t) {
628
- for (var n, r = 1, i = arguments.length; r < i; r++) {
656
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
629
657
  n = arguments[r];
630
- for (var o in n)
631
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
658
+ for (var i in n)
659
+ Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
632
660
  }
633
661
  return t;
634
662
  }, ce.apply(this, arguments);
635
663
  };
636
- function Xr(e, t) {
664
+ function Zr(e, t) {
637
665
  var n = {};
638
666
  for (var r in e)
639
667
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
640
668
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
641
- for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
642
- t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
669
+ for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
670
+ t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
643
671
  return n;
644
672
  }
645
- function Lt(e, t, n) {
673
+ function Rt(e, t, n) {
646
674
  if (n || arguments.length === 2)
647
- for (var r = 0, i = t.length, o; r < i; r++)
648
- (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
649
- return e.concat(o || Array.prototype.slice.call(t));
675
+ for (var r = 0, o = t.length, i; r < o; r++)
676
+ (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
677
+ return e.concat(i || Array.prototype.slice.call(t));
650
678
  }
651
- function Rt(e, t) {
652
- var n = t && t.cache ? t.cache : Yr, r = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Zr;
653
- return i(e, {
679
+ function Nt(e, t) {
680
+ var n = t && t.cache ? t.cache : to, r = t && t.serializer ? t.serializer : Kr, o = t && t.strategy ? t.strategy : Jr;
681
+ return o(e, {
654
682
  cache: n,
655
683
  serializer: r
656
684
  });
657
685
  }
658
- function zr(e) {
686
+ function qr(e) {
659
687
  return e == null || typeof e == "number" || typeof e == "boolean";
660
688
  }
661
- function Wr(e, t, n, r) {
662
- var i = zr(r) ? r : n(r), o = t.get(i);
663
- return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
689
+ function Qr(e, t, n, r) {
690
+ var o = qr(r) ? r : n(r), i = t.get(o);
691
+ return typeof i > "u" && (i = e.call(this, r), t.set(o, i)), i;
664
692
  }
665
- function On(e, t, n) {
666
- var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
667
- return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
693
+ function Ln(e, t, n) {
694
+ var r = Array.prototype.slice.call(arguments, 3), o = n(r), i = t.get(o);
695
+ return typeof i > "u" && (i = e.apply(this, r), t.set(o, i)), i;
668
696
  }
669
- function Ln(e, t, n, r, i) {
670
- return n.bind(t, e, r, i);
697
+ function Rn(e, t, n, r, o) {
698
+ return n.bind(t, e, r, o);
671
699
  }
672
- function Zr(e, t) {
673
- var n = e.length === 1 ? Wr : On;
674
- return Ln(e, this, n, t.cache.create(), t.serializer);
700
+ function Jr(e, t) {
701
+ var n = e.length === 1 ? Qr : Ln;
702
+ return Rn(e, this, n, t.cache.create(), t.serializer);
675
703
  }
676
- function qr(e, t) {
677
- return Ln(e, this, On, t.cache.create(), t.serializer);
704
+ function Yr(e, t) {
705
+ return Rn(e, this, Ln, t.cache.create(), t.serializer);
678
706
  }
679
- var Qr = function() {
707
+ var Kr = function() {
680
708
  return JSON.stringify(arguments);
681
- }, Jr = (
709
+ }, eo = (
682
710
  /** @class */
683
711
  function() {
684
712
  function e() {
@@ -690,21 +718,21 @@ var Qr = function() {
690
718
  this.cache[t] = n;
691
719
  }, e;
692
720
  }()
693
- ), Yr = {
721
+ ), to = {
694
722
  create: function() {
695
- return new Jr();
723
+ return new eo();
696
724
  }
697
- }, Nt = {
698
- variadic: qr
699
- }, mt = function() {
700
- return mt = Object.assign || function(t) {
701
- for (var n, r = 1, i = arguments.length; r < i; r++) {
725
+ }, Mt = {
726
+ variadic: Yr
727
+ }, yt = function() {
728
+ return yt = Object.assign || function(t) {
729
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
702
730
  n = arguments[r];
703
- for (var o in n)
704
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
731
+ for (var i in n)
732
+ Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
705
733
  }
706
734
  return t;
707
- }, mt.apply(this, arguments);
735
+ }, yt.apply(this, arguments);
708
736
  };
709
737
  var H;
710
738
  (function(e) {
@@ -714,47 +742,47 @@ var D;
714
742
  (function(e) {
715
743
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
716
744
  })(D || (D = {}));
717
- var Fe;
745
+ var Ue;
718
746
  (function(e) {
719
747
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
720
- })(Fe || (Fe = {}));
721
- function rn(e) {
748
+ })(Ue || (Ue = {}));
749
+ function on(e) {
722
750
  return e.type === D.literal;
723
751
  }
724
- function Kr(e) {
752
+ function no(e) {
725
753
  return e.type === D.argument;
726
754
  }
727
- function Rn(e) {
755
+ function Nn(e) {
728
756
  return e.type === D.number;
729
757
  }
730
- function Nn(e) {
758
+ function Mn(e) {
731
759
  return e.type === D.date;
732
760
  }
733
- function Mn(e) {
761
+ function Pn(e) {
734
762
  return e.type === D.time;
735
763
  }
736
- function Pn(e) {
764
+ function In(e) {
737
765
  return e.type === D.select;
738
766
  }
739
- function In(e) {
767
+ function Dn(e) {
740
768
  return e.type === D.plural;
741
769
  }
742
- function ei(e) {
770
+ function ro(e) {
743
771
  return e.type === D.pound;
744
772
  }
745
- function Dn(e) {
773
+ function Fn(e) {
746
774
  return e.type === D.tag;
747
775
  }
748
- function Fn(e) {
749
- return !!(e && typeof e == "object" && e.type === Fe.number);
776
+ function Un(e) {
777
+ return !!(e && typeof e == "object" && e.type === Ue.number);
750
778
  }
751
- function jt(e) {
752
- return !!(e && typeof e == "object" && e.type === Fe.dateTime);
779
+ function kt(e) {
780
+ return !!(e && typeof e == "object" && e.type === Ue.dateTime);
753
781
  }
754
- var Un = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ti = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
755
- function ni(e) {
782
+ var Gn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, oo = /(?:[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;
783
+ function io(e) {
756
784
  var t = {};
757
- return e.replace(ti, function(n) {
785
+ return e.replace(oo, function(n) {
758
786
  var r = n.length;
759
787
  switch (n[0]) {
760
788
  case "G":
@@ -845,44 +873,44 @@ function ni(e) {
845
873
  }
846
874
  var F = function() {
847
875
  return F = Object.assign || function(t) {
848
- for (var n, r = 1, i = arguments.length; r < i; r++) {
876
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
849
877
  n = arguments[r];
850
- for (var o in n)
851
- Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
878
+ for (var i in n)
879
+ Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
852
880
  }
853
881
  return t;
854
882
  }, F.apply(this, arguments);
855
883
  };
856
- var ri = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
857
- function ii(e) {
884
+ var ao = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
885
+ function so(e) {
858
886
  if (e.length === 0)
859
887
  throw new Error("Number skeleton cannot be empty");
860
- for (var t = e.split(ri).filter(function(b) {
888
+ for (var t = e.split(ao).filter(function(b) {
861
889
  return b.length > 0;
862
- }), n = [], r = 0, i = t; r < i.length; r++) {
863
- var o = i[r], l = o.split("/");
864
- if (l.length === 0)
890
+ }), n = [], r = 0, o = t; r < o.length; r++) {
891
+ var i = o[r], u = i.split("/");
892
+ if (u.length === 0)
865
893
  throw new Error("Invalid number skeleton");
866
- for (var s = l[0], p = l.slice(1), c = 0, d = p; c < d.length; c++) {
867
- var g = d[c];
894
+ for (var a = u[0], d = u.slice(1), c = 0, f = d; c < f.length; c++) {
895
+ var g = f[c];
868
896
  if (g.length === 0)
869
897
  throw new Error("Invalid number skeleton");
870
898
  }
871
- n.push({ stem: s, options: p });
899
+ n.push({ stem: a, options: d });
872
900
  }
873
901
  return n;
874
902
  }
875
- function oi(e) {
903
+ function uo(e) {
876
904
  return e.replace(/^(.*?)-/, "");
877
905
  }
878
- var on = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gn = /^(@+)?(\+|#+)?[rs]?$/g, ai = /(\*)(0+)|(#+)(0+)|(0+)/g, jn = /^(0+)$/;
879
- function an(e) {
906
+ var an = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jn = /^(@+)?(\+|#+)?[rs]?$/g, lo = /(\*)(0+)|(#+)(0+)|(0+)/g, kn = /^(0+)$/;
907
+ function sn(e) {
880
908
  var t = {};
881
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gn, function(n, r, i) {
882
- 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)), "";
909
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jn, function(n, r, o) {
910
+ return typeof o != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : o === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof o == "string" ? o.length : 0)), "";
883
911
  }), t;
884
912
  }
885
- function kn(e) {
913
+ function $n(e) {
886
914
  switch (e) {
887
915
  case "sign-auto":
888
916
  return {
@@ -922,7 +950,7 @@ function kn(e) {
922
950
  };
923
951
  }
924
952
  }
925
- function si(e) {
953
+ function ho(e) {
926
954
  var t;
927
955
  if (e[0] === "E" && e[1] === "E" ? (t = {
928
956
  notation: "engineering"
@@ -930,20 +958,20 @@ function si(e) {
930
958
  notation: "scientific"
931
959
  }, e = e.slice(1)), t) {
932
960
  var n = e.slice(0, 2);
933
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jn.test(e))
961
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kn.test(e))
934
962
  throw new Error("Malformed concise eng/scientific notation");
935
963
  t.minimumIntegerDigits = e.length;
936
964
  }
937
965
  return t;
938
966
  }
939
- function sn(e) {
940
- var t = {}, n = kn(e);
967
+ function un(e) {
968
+ var t = {}, n = $n(e);
941
969
  return n || t;
942
970
  }
943
- function ui(e) {
971
+ function co(e) {
944
972
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
945
- var i = r[n];
946
- switch (i.stem) {
973
+ var o = r[n];
974
+ switch (o.stem) {
947
975
  case "percent":
948
976
  case "%":
949
977
  t.style = "percent";
@@ -952,7 +980,7 @@ function ui(e) {
952
980
  t.style = "percent", t.scale = 100;
953
981
  continue;
954
982
  case "currency":
955
- t.style = "currency", t.currency = i.options[0];
983
+ t.style = "currency", t.currency = o.options[0];
956
984
  continue;
957
985
  case "group-off":
958
986
  case ",_":
@@ -964,7 +992,7 @@ function ui(e) {
964
992
  continue;
965
993
  case "measure-unit":
966
994
  case "unit":
967
- t.style = "unit", t.unit = oi(i.options[0]);
995
+ t.style = "unit", t.unit = uo(o.options[0]);
968
996
  continue;
969
997
  case "compact-short":
970
998
  case "K":
@@ -975,13 +1003,13 @@ function ui(e) {
975
1003
  t.notation = "compact", t.compactDisplay = "long";
976
1004
  continue;
977
1005
  case "scientific":
978
- t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(p, c) {
979
- return F(F({}, p), sn(c));
1006
+ t = F(F(F({}, t), { notation: "scientific" }), o.options.reduce(function(d, c) {
1007
+ return F(F({}, d), un(c));
980
1008
  }, {}));
981
1009
  continue;
982
1010
  case "engineering":
983
- t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(p, c) {
984
- return F(F({}, p), sn(c));
1011
+ t = F(F(F({}, t), { notation: "engineering" }), o.options.reduce(function(d, c) {
1012
+ return F(F({}, d), un(c));
985
1013
  }, {}));
986
1014
  continue;
987
1015
  case "notation-simple":
@@ -1000,7 +1028,7 @@ function ui(e) {
1000
1028
  t.currencyDisplay = "symbol";
1001
1029
  continue;
1002
1030
  case "scale":
1003
- t.scale = parseFloat(i.options[0]);
1031
+ t.scale = parseFloat(o.options[0]);
1004
1032
  continue;
1005
1033
  case "rounding-mode-floor":
1006
1034
  t.roundingMode = "floor";
@@ -1024,11 +1052,11 @@ function ui(e) {
1024
1052
  t.roundingMode = "halfExpand";
1025
1053
  continue;
1026
1054
  case "integer-width":
1027
- if (i.options.length > 1)
1055
+ if (o.options.length > 1)
1028
1056
  throw new RangeError("integer-width stems only accept a single optional option");
1029
- i.options[0].replace(ai, function(p, c, d, g, b, _) {
1057
+ o.options[0].replace(lo, function(d, c, f, g, b, _) {
1030
1058
  if (c)
1031
- t.minimumIntegerDigits = d.length;
1059
+ t.minimumIntegerDigits = f.length;
1032
1060
  else {
1033
1061
  if (g && b)
1034
1062
  throw new Error("We currently do not support maximum integer digits");
@@ -1039,32 +1067,32 @@ function ui(e) {
1039
1067
  });
1040
1068
  continue;
1041
1069
  }
1042
- if (jn.test(i.stem)) {
1043
- t.minimumIntegerDigits = i.stem.length;
1070
+ if (kn.test(o.stem)) {
1071
+ t.minimumIntegerDigits = o.stem.length;
1044
1072
  continue;
1045
1073
  }
1046
- if (on.test(i.stem)) {
1047
- if (i.options.length > 1)
1074
+ if (an.test(o.stem)) {
1075
+ if (o.options.length > 1)
1048
1076
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1049
- i.stem.replace(on, function(p, c, d, g, b, _) {
1050
- return d === "*" ? t.minimumFractionDigits = c.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length), "";
1077
+ o.stem.replace(an, function(d, c, f, g, b, _) {
1078
+ return f === "*" ? t.minimumFractionDigits = c.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length), "";
1051
1079
  });
1052
- var o = i.options[0];
1053
- o === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = F(F({}, t), an(o)));
1080
+ var i = o.options[0];
1081
+ i === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = F(F({}, t), sn(i)));
1054
1082
  continue;
1055
1083
  }
1056
- if (Gn.test(i.stem)) {
1057
- t = F(F({}, t), an(i.stem));
1084
+ if (jn.test(o.stem)) {
1085
+ t = F(F({}, t), sn(o.stem));
1058
1086
  continue;
1059
1087
  }
1060
- var l = kn(i.stem);
1061
- l && (t = F(F({}, t), l));
1062
- var s = si(i.stem);
1063
- s && (t = F(F({}, t), s));
1088
+ var u = $n(o.stem);
1089
+ u && (t = F(F({}, t), u));
1090
+ var a = ho(o.stem);
1091
+ a && (t = F(F({}, t), a));
1064
1092
  }
1065
1093
  return t;
1066
1094
  }
1067
- var lt = {
1095
+ var ft = {
1068
1096
  "001": [
1069
1097
  "H",
1070
1098
  "h"
@@ -2479,23 +2507,23 @@ var lt = {
2479
2507
  "h"
2480
2508
  ]
2481
2509
  };
2482
- function li(e, t) {
2510
+ function fo(e, t) {
2483
2511
  for (var n = "", r = 0; r < e.length; r++) {
2484
- var i = e.charAt(r);
2485
- if (i === "j") {
2486
- for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2487
- o++, r++;
2488
- var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), p = "a", c = hi(t);
2489
- for ((c == "H" || c == "k") && (s = 0); s-- > 0; )
2490
- n += p;
2491
- for (; l-- > 0; )
2512
+ var o = e.charAt(r);
2513
+ if (o === "j") {
2514
+ for (var i = 0; r + 1 < e.length && e.charAt(r + 1) === o; )
2515
+ i++, r++;
2516
+ var u = 1 + (i & 1), a = i < 2 ? 1 : 3 + (i >> 1), d = "a", c = po(t);
2517
+ for ((c == "H" || c == "k") && (a = 0); a-- > 0; )
2518
+ n += d;
2519
+ for (; u-- > 0; )
2492
2520
  n = c + n;
2493
2521
  } else
2494
- i === "J" ? n += "H" : n += i;
2522
+ o === "J" ? n += "H" : n += o;
2495
2523
  }
2496
2524
  return n;
2497
2525
  }
2498
- function hi(e) {
2526
+ function po(e) {
2499
2527
  var t = e.hourCycle;
2500
2528
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2501
2529
  e.hourCycles && // @ts-ignore
@@ -2514,23 +2542,23 @@ function hi(e) {
2514
2542
  }
2515
2543
  var n = e.language, r;
2516
2544
  n !== "root" && (r = e.maximize().region);
2517
- var i = lt[r || ""] || lt[n || ""] || lt["".concat(n, "-001")] || lt["001"];
2518
- return i[0];
2545
+ var o = ft[r || ""] || ft[n || ""] || ft["".concat(n, "-001")] || ft["001"];
2546
+ return o[0];
2519
2547
  }
2520
- var Mt, ci = new RegExp("^".concat(Un.source, "*")), fi = new RegExp("".concat(Un.source, "*$"));
2521
- function O(e, t) {
2548
+ var Pt, mo = new RegExp("^".concat(Gn.source, "*")), go = new RegExp("".concat(Gn.source, "*$"));
2549
+ function L(e, t) {
2522
2550
  return { start: e, end: t };
2523
2551
  }
2524
- var di = !!String.prototype.startsWith && "_a".startsWith("a", 1), pi = !!String.fromCodePoint, mi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, yi = !!String.prototype.trimEnd, vi = !!Number.isSafeInteger, Ei = vi ? Number.isSafeInteger : function(e) {
2552
+ var bo = !!String.prototype.startsWith && "_a".startsWith("a", 1), yo = !!String.fromCodePoint, vo = !!Object.fromEntries, Eo = !!String.prototype.codePointAt, xo = !!String.prototype.trimStart, _o = !!String.prototype.trimEnd, To = !!Number.isSafeInteger, So = To ? Number.isSafeInteger : function(e) {
2525
2553
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2526
- }, kt = !0;
2554
+ }, $t = !0;
2527
2555
  try {
2528
- var xi = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2529
- kt = ((Mt = xi.exec("a")) === null || Mt === void 0 ? void 0 : Mt[0]) === "a";
2556
+ var Bo = Xn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2557
+ $t = ((Pt = Bo.exec("a")) === null || Pt === void 0 ? void 0 : Pt[0]) === "a";
2530
2558
  } catch {
2531
- kt = !1;
2559
+ $t = !1;
2532
2560
  }
2533
- var un = di ? (
2561
+ var ln = bo ? (
2534
2562
  // Native
2535
2563
  function(t, n, r) {
2536
2564
  return t.startsWith(n, r);
@@ -2540,31 +2568,31 @@ var un = di ? (
2540
2568
  function(t, n, r) {
2541
2569
  return t.slice(r, r + n.length) === n;
2542
2570
  }
2543
- ), $t = pi ? String.fromCodePoint : (
2571
+ ), Vt = yo ? String.fromCodePoint : (
2544
2572
  // IE11
2545
2573
  function() {
2546
2574
  for (var t = [], n = 0; n < arguments.length; n++)
2547
2575
  t[n] = arguments[n];
2548
- for (var r = "", i = t.length, o = 0, l; i > o; ) {
2549
- if (l = t[o++], l > 1114111)
2550
- throw RangeError(l + " is not a valid code point");
2551
- r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
2576
+ for (var r = "", o = t.length, i = 0, u; o > i; ) {
2577
+ if (u = t[i++], u > 1114111)
2578
+ throw RangeError(u + " is not a valid code point");
2579
+ r += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
2552
2580
  }
2553
2581
  return r;
2554
2582
  }
2555
- ), ln = (
2583
+ ), hn = (
2556
2584
  // native
2557
- mi ? Object.fromEntries : (
2585
+ vo ? Object.fromEntries : (
2558
2586
  // Ponyfill
2559
2587
  function(t) {
2560
- for (var n = {}, r = 0, i = t; r < i.length; r++) {
2561
- var o = i[r], l = o[0], s = o[1];
2562
- n[l] = s;
2588
+ for (var n = {}, r = 0, o = t; r < o.length; r++) {
2589
+ var i = o[r], u = i[0], a = i[1];
2590
+ n[u] = a;
2563
2591
  }
2564
2592
  return n;
2565
2593
  }
2566
2594
  )
2567
- ), $n = gi ? (
2595
+ ), Vn = Eo ? (
2568
2596
  // Native
2569
2597
  function(t, n) {
2570
2598
  return t.codePointAt(n);
@@ -2574,11 +2602,11 @@ var un = di ? (
2574
2602
  function(t, n) {
2575
2603
  var r = t.length;
2576
2604
  if (!(n < 0 || n >= r)) {
2577
- var i = t.charCodeAt(n), o;
2578
- return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2605
+ var o = t.charCodeAt(n), i;
2606
+ return o < 55296 || o > 56319 || n + 1 === r || (i = t.charCodeAt(n + 1)) < 56320 || i > 57343 ? o : (o - 55296 << 10) + (i - 56320) + 65536;
2579
2607
  }
2580
2608
  }
2581
- ), _i = bi ? (
2609
+ ), wo = xo ? (
2582
2610
  // Native
2583
2611
  function(t) {
2584
2612
  return t.trimStart();
@@ -2586,9 +2614,9 @@ var un = di ? (
2586
2614
  ) : (
2587
2615
  // Ponyfill
2588
2616
  function(t) {
2589
- return t.replace(ci, "");
2617
+ return t.replace(mo, "");
2590
2618
  }
2591
- ), Ti = yi ? (
2619
+ ), Ao = _o ? (
2592
2620
  // Native
2593
2621
  function(t) {
2594
2622
  return t.trimEnd();
@@ -2596,32 +2624,32 @@ var un = di ? (
2596
2624
  ) : (
2597
2625
  // Ponyfill
2598
2626
  function(t) {
2599
- return t.replace(fi, "");
2627
+ return t.replace(go, "");
2600
2628
  }
2601
2629
  );
2602
- function Vn(e, t) {
2630
+ function Xn(e, t) {
2603
2631
  return new RegExp(e, t);
2604
2632
  }
2605
- var Vt;
2606
- if (kt) {
2607
- var hn = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2608
- Vt = function(t, n) {
2633
+ var Xt;
2634
+ if ($t) {
2635
+ var cn = Xn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2636
+ Xt = function(t, n) {
2609
2637
  var r;
2610
- hn.lastIndex = n;
2611
- var i = hn.exec(t);
2612
- return (r = i[1]) !== null && r !== void 0 ? r : "";
2638
+ cn.lastIndex = n;
2639
+ var o = cn.exec(t);
2640
+ return (r = o[1]) !== null && r !== void 0 ? r : "";
2613
2641
  };
2614
2642
  } else
2615
- Vt = function(t, n) {
2643
+ Xt = function(t, n) {
2616
2644
  for (var r = []; ; ) {
2617
- var i = $n(t, n);
2618
- if (i === void 0 || Xn(i) || Ai(i))
2645
+ var o = Vn(t, n);
2646
+ if (o === void 0 || zn(o) || Lo(o))
2619
2647
  break;
2620
- r.push(i), n += i >= 65536 ? 2 : 1;
2648
+ r.push(o), n += o >= 65536 ? 2 : 1;
2621
2649
  }
2622
- return $t.apply(void 0, r);
2650
+ return Vt.apply(void 0, r);
2623
2651
  };
2624
- var Bi = (
2652
+ var Co = (
2625
2653
  /** @class */
2626
2654
  function() {
2627
2655
  function e(t, n) {
@@ -2632,107 +2660,107 @@ var Bi = (
2632
2660
  throw Error("parser can only be used once");
2633
2661
  return this.parseMessage(0, "", !1);
2634
2662
  }, e.prototype.parseMessage = function(t, n, r) {
2635
- for (var i = []; !this.isEOF(); ) {
2636
- var o = this.char();
2637
- if (o === 123) {
2638
- var l = this.parseArgument(t, r);
2639
- if (l.err)
2640
- return l;
2641
- i.push(l.val);
2663
+ for (var o = []; !this.isEOF(); ) {
2664
+ var i = this.char();
2665
+ if (i === 123) {
2666
+ var u = this.parseArgument(t, r);
2667
+ if (u.err)
2668
+ return u;
2669
+ o.push(u.val);
2642
2670
  } else {
2643
- if (o === 125 && t > 0)
2671
+ if (i === 125 && t > 0)
2644
2672
  break;
2645
- if (o === 35 && (n === "plural" || n === "selectordinal")) {
2646
- var s = this.clonePosition();
2647
- this.bump(), i.push({
2673
+ if (i === 35 && (n === "plural" || n === "selectordinal")) {
2674
+ var a = this.clonePosition();
2675
+ this.bump(), o.push({
2648
2676
  type: D.pound,
2649
- location: O(s, this.clonePosition())
2677
+ location: L(a, this.clonePosition())
2650
2678
  });
2651
- } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2679
+ } else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
2652
2680
  if (r)
2653
2681
  break;
2654
- return this.error(H.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
2655
- } else if (o === 60 && !this.ignoreTag && Xt(this.peek() || 0)) {
2656
- var l = this.parseTag(t, n);
2657
- if (l.err)
2658
- return l;
2659
- i.push(l.val);
2682
+ return this.error(H.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2683
+ } else if (i === 60 && !this.ignoreTag && zt(this.peek() || 0)) {
2684
+ var u = this.parseTag(t, n);
2685
+ if (u.err)
2686
+ return u;
2687
+ o.push(u.val);
2660
2688
  } else {
2661
- var l = this.parseLiteral(t, n);
2662
- if (l.err)
2663
- return l;
2664
- i.push(l.val);
2689
+ var u = this.parseLiteral(t, n);
2690
+ if (u.err)
2691
+ return u;
2692
+ o.push(u.val);
2665
2693
  }
2666
2694
  }
2667
2695
  }
2668
- return { val: i, err: null };
2696
+ return { val: o, err: null };
2669
2697
  }, e.prototype.parseTag = function(t, n) {
2670
2698
  var r = this.clonePosition();
2671
2699
  this.bump();
2672
- var i = this.parseTagName();
2700
+ var o = this.parseTagName();
2673
2701
  if (this.bumpSpace(), this.bumpIf("/>"))
2674
2702
  return {
2675
2703
  val: {
2676
2704
  type: D.literal,
2677
- value: "<".concat(i, "/>"),
2678
- location: O(r, this.clonePosition())
2705
+ value: "<".concat(o, "/>"),
2706
+ location: L(r, this.clonePosition())
2679
2707
  },
2680
2708
  err: null
2681
2709
  };
2682
2710
  if (this.bumpIf(">")) {
2683
- var o = this.parseMessage(t + 1, n, !0);
2684
- if (o.err)
2685
- return o;
2686
- var l = o.val, s = this.clonePosition();
2711
+ var i = this.parseMessage(t + 1, n, !0);
2712
+ if (i.err)
2713
+ return i;
2714
+ var u = i.val, a = this.clonePosition();
2687
2715
  if (this.bumpIf("</")) {
2688
- if (this.isEOF() || !Xt(this.char()))
2689
- return this.error(H.INVALID_TAG, O(s, this.clonePosition()));
2690
- var p = this.clonePosition(), c = this.parseTagName();
2691
- return i !== c ? this.error(H.UNMATCHED_CLOSING_TAG, O(p, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2716
+ if (this.isEOF() || !zt(this.char()))
2717
+ return this.error(H.INVALID_TAG, L(a, this.clonePosition()));
2718
+ var d = this.clonePosition(), c = this.parseTagName();
2719
+ return o !== c ? this.error(H.UNMATCHED_CLOSING_TAG, L(d, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2692
2720
  val: {
2693
2721
  type: D.tag,
2694
- value: i,
2695
- children: l,
2696
- location: O(r, this.clonePosition())
2722
+ value: o,
2723
+ children: u,
2724
+ location: L(r, this.clonePosition())
2697
2725
  },
2698
2726
  err: null
2699
- } : this.error(H.INVALID_TAG, O(s, this.clonePosition())));
2727
+ } : this.error(H.INVALID_TAG, L(a, this.clonePosition())));
2700
2728
  } else
2701
- return this.error(H.UNCLOSED_TAG, O(r, this.clonePosition()));
2729
+ return this.error(H.UNCLOSED_TAG, L(r, this.clonePosition()));
2702
2730
  } else
2703
- return this.error(H.INVALID_TAG, O(r, this.clonePosition()));
2731
+ return this.error(H.INVALID_TAG, L(r, this.clonePosition()));
2704
2732
  }, e.prototype.parseTagName = function() {
2705
2733
  var t = this.offset();
2706
- for (this.bump(); !this.isEOF() && wi(this.char()); )
2734
+ for (this.bump(); !this.isEOF() && Oo(this.char()); )
2707
2735
  this.bump();
2708
2736
  return this.message.slice(t, this.offset());
2709
2737
  }, e.prototype.parseLiteral = function(t, n) {
2710
- for (var r = this.clonePosition(), i = ""; ; ) {
2711
- var o = this.tryParseQuote(n);
2712
- if (o) {
2713
- i += o;
2738
+ for (var r = this.clonePosition(), o = ""; ; ) {
2739
+ var i = this.tryParseQuote(n);
2740
+ if (i) {
2741
+ o += i;
2714
2742
  continue;
2715
2743
  }
2716
- var l = this.tryParseUnquoted(t, n);
2717
- if (l) {
2718
- i += l;
2744
+ var u = this.tryParseUnquoted(t, n);
2745
+ if (u) {
2746
+ o += u;
2719
2747
  continue;
2720
2748
  }
2721
- var s = this.tryParseLeftAngleBracket();
2722
- if (s) {
2723
- i += s;
2749
+ var a = this.tryParseLeftAngleBracket();
2750
+ if (a) {
2751
+ o += a;
2724
2752
  continue;
2725
2753
  }
2726
2754
  break;
2727
2755
  }
2728
- var p = O(r, this.clonePosition());
2756
+ var d = L(r, this.clonePosition());
2729
2757
  return {
2730
- val: { type: D.literal, value: i, location: p },
2758
+ val: { type: D.literal, value: o, location: d },
2731
2759
  err: null
2732
2760
  };
2733
2761
  }, e.prototype.tryParseLeftAngleBracket = function() {
2734
2762
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2735
- !Si(this.peek() || 0)) ? (this.bump(), "<") : null;
2763
+ !Ho(this.peek() || 0)) ? (this.bump(), "<") : null;
2736
2764
  }, e.prototype.tryParseQuote = function(t) {
2737
2765
  if (this.isEOF() || this.char() !== 39)
2738
2766
  return null;
@@ -2766,49 +2794,49 @@ var Bi = (
2766
2794
  n.push(r);
2767
2795
  this.bump();
2768
2796
  }
2769
- return $t.apply(void 0, n);
2797
+ return Vt.apply(void 0, n);
2770
2798
  }, e.prototype.tryParseUnquoted = function(t, n) {
2771
2799
  if (this.isEOF())
2772
2800
  return null;
2773
2801
  var r = this.char();
2774
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), $t(r));
2802
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Vt(r));
2775
2803
  }, e.prototype.parseArgument = function(t, n) {
2776
2804
  var r = this.clonePosition();
2777
2805
  if (this.bump(), this.bumpSpace(), this.isEOF())
2778
- return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
2806
+ return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2779
2807
  if (this.char() === 125)
2780
- return this.bump(), this.error(H.EMPTY_ARGUMENT, O(r, this.clonePosition()));
2781
- var i = this.parseIdentifierIfPossible().value;
2782
- if (!i)
2783
- return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
2808
+ return this.bump(), this.error(H.EMPTY_ARGUMENT, L(r, this.clonePosition()));
2809
+ var o = this.parseIdentifierIfPossible().value;
2810
+ if (!o)
2811
+ return this.error(H.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2784
2812
  if (this.bumpSpace(), this.isEOF())
2785
- return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
2813
+ return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2786
2814
  switch (this.char()) {
2787
2815
  case 125:
2788
2816
  return this.bump(), {
2789
2817
  val: {
2790
2818
  type: D.argument,
2791
2819
  // value does not include the opening and closing braces.
2792
- value: i,
2793
- location: O(r, this.clonePosition())
2820
+ value: o,
2821
+ location: L(r, this.clonePosition())
2794
2822
  },
2795
2823
  err: null
2796
2824
  };
2797
2825
  case 44:
2798
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2826
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, o, r);
2799
2827
  default:
2800
- return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
2828
+ return this.error(H.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2801
2829
  }
2802
2830
  }, e.prototype.parseIdentifierIfPossible = function() {
2803
- var t = this.clonePosition(), n = this.offset(), r = Vt(this.message, n), i = n + r.length;
2804
- this.bumpTo(i);
2805
- var o = this.clonePosition(), l = O(t, o);
2806
- return { value: r, location: l };
2807
- }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2808
- var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, p = this.clonePosition();
2809
- switch (s) {
2831
+ var t = this.clonePosition(), n = this.offset(), r = Xt(this.message, n), o = n + r.length;
2832
+ this.bumpTo(o);
2833
+ var i = this.clonePosition(), u = L(t, i);
2834
+ return { value: r, location: u };
2835
+ }, e.prototype.parseArgumentOptions = function(t, n, r, o) {
2836
+ var i, u = this.clonePosition(), a = this.parseIdentifierIfPossible().value, d = this.clonePosition();
2837
+ switch (a) {
2810
2838
  case "":
2811
- return this.error(H.EXPECT_ARGUMENT_TYPE, O(l, p));
2839
+ return this.error(H.EXPECT_ARGUMENT_TYPE, L(u, d));
2812
2840
  case "number":
2813
2841
  case "date":
2814
2842
  case "time": {
@@ -2816,50 +2844,50 @@ var Bi = (
2816
2844
  var c = null;
2817
2845
  if (this.bumpIf(",")) {
2818
2846
  this.bumpSpace();
2819
- var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2847
+ var f = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
2820
2848
  if (g.err)
2821
2849
  return g;
2822
- var b = Ti(g.val);
2850
+ var b = Ao(g.val);
2823
2851
  if (b.length === 0)
2824
- return this.error(H.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
2825
- var _ = O(d, this.clonePosition());
2852
+ return this.error(H.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2853
+ var _ = L(f, this.clonePosition());
2826
2854
  c = { style: b, styleLocation: _ };
2827
2855
  }
2828
- var B = this.tryParseArgumentClose(i);
2829
- if (B.err)
2830
- return B;
2831
- var I = O(i, this.clonePosition());
2832
- if (c && un(c?.style, "::", 0)) {
2833
- var j = _i(c.style.slice(2));
2834
- if (s === "number") {
2856
+ var S = this.tryParseArgumentClose(o);
2857
+ if (S.err)
2858
+ return S;
2859
+ var P = L(o, this.clonePosition());
2860
+ if (c && ln(c?.style, "::", 0)) {
2861
+ var j = wo(c.style.slice(2));
2862
+ if (a === "number") {
2835
2863
  var g = this.parseNumberSkeletonFromString(j, c.styleLocation);
2836
2864
  return g.err ? g : {
2837
- val: { type: D.number, value: r, location: I, style: g.val },
2865
+ val: { type: D.number, value: r, location: P, style: g.val },
2838
2866
  err: null
2839
2867
  };
2840
2868
  } else {
2841
2869
  if (j.length === 0)
2842
- return this.error(H.EXPECT_DATE_TIME_SKELETON, I);
2843
- var W = j;
2844
- this.locale && (W = li(j, this.locale));
2870
+ return this.error(H.EXPECT_DATE_TIME_SKELETON, P);
2871
+ var Z = j;
2872
+ this.locale && (Z = fo(j, this.locale));
2845
2873
  var b = {
2846
- type: Fe.dateTime,
2847
- pattern: W,
2874
+ type: Ue.dateTime,
2875
+ pattern: Z,
2848
2876
  location: c.styleLocation,
2849
- parsedOptions: this.shouldParseSkeletons ? ni(W) : {}
2850
- }, U = s === "date" ? D.date : D.time;
2877
+ parsedOptions: this.shouldParseSkeletons ? io(Z) : {}
2878
+ }, U = a === "date" ? D.date : D.time;
2851
2879
  return {
2852
- val: { type: U, value: r, location: I, style: b },
2880
+ val: { type: U, value: r, location: P, style: b },
2853
2881
  err: null
2854
2882
  };
2855
2883
  }
2856
2884
  }
2857
2885
  return {
2858
2886
  val: {
2859
- type: s === "number" ? D.number : s === "date" ? D.date : D.time,
2887
+ type: a === "number" ? D.number : a === "date" ? D.date : D.time,
2860
2888
  value: r,
2861
- location: I,
2862
- style: (o = c?.style) !== null && o !== void 0 ? o : null
2889
+ location: P,
2890
+ style: (i = c?.style) !== null && i !== void 0 ? i : null
2863
2891
  },
2864
2892
  err: null
2865
2893
  };
@@ -2867,61 +2895,61 @@ var Bi = (
2867
2895
  case "plural":
2868
2896
  case "selectordinal":
2869
2897
  case "select": {
2870
- var w = this.clonePosition();
2898
+ var B = this.clonePosition();
2871
2899
  if (this.bumpSpace(), !this.bumpIf(","))
2872
- return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(w, mt({}, w)));
2900
+ return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, L(B, yt({}, B)));
2873
2901
  this.bumpSpace();
2874
- var A = this.parseIdentifierIfPossible(), P = 0;
2875
- if (s !== "select" && A.value === "offset") {
2902
+ var C = this.parseIdentifierIfPossible(), N = 0;
2903
+ if (a !== "select" && C.value === "offset") {
2876
2904
  if (!this.bumpIf(":"))
2877
- return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
2905
+ return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2878
2906
  this.bumpSpace();
2879
2907
  var g = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2880
2908
  if (g.err)
2881
2909
  return g;
2882
- this.bumpSpace(), A = this.parseIdentifierIfPossible(), P = g.val;
2910
+ this.bumpSpace(), C = this.parseIdentifierIfPossible(), N = g.val;
2883
2911
  }
2884
- var L = this.tryParsePluralOrSelectOptions(t, s, n, A);
2885
- if (L.err)
2886
- return L;
2887
- var B = this.tryParseArgumentClose(i);
2888
- if (B.err)
2889
- return B;
2890
- var Y = O(i, this.clonePosition());
2891
- return s === "select" ? {
2912
+ var M = this.tryParsePluralOrSelectOptions(t, a, n, C);
2913
+ if (M.err)
2914
+ return M;
2915
+ var S = this.tryParseArgumentClose(o);
2916
+ if (S.err)
2917
+ return S;
2918
+ var W = L(o, this.clonePosition());
2919
+ return a === "select" ? {
2892
2920
  val: {
2893
2921
  type: D.select,
2894
2922
  value: r,
2895
- options: ln(L.val),
2896
- location: Y
2923
+ options: hn(M.val),
2924
+ location: W
2897
2925
  },
2898
2926
  err: null
2899
2927
  } : {
2900
2928
  val: {
2901
2929
  type: D.plural,
2902
2930
  value: r,
2903
- options: ln(L.val),
2904
- offset: P,
2905
- pluralType: s === "plural" ? "cardinal" : "ordinal",
2906
- location: Y
2931
+ options: hn(M.val),
2932
+ offset: N,
2933
+ pluralType: a === "plural" ? "cardinal" : "ordinal",
2934
+ location: W
2907
2935
  },
2908
2936
  err: null
2909
2937
  };
2910
2938
  }
2911
2939
  default:
2912
- return this.error(H.INVALID_ARGUMENT_TYPE, O(l, p));
2940
+ return this.error(H.INVALID_ARGUMENT_TYPE, L(u, d));
2913
2941
  }
2914
2942
  }, e.prototype.tryParseArgumentClose = function(t) {
2915
- return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2943
+ return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2916
2944
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2917
2945
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2918
2946
  var r = this.char();
2919
2947
  switch (r) {
2920
2948
  case 39: {
2921
2949
  this.bump();
2922
- var i = this.clonePosition();
2950
+ var o = this.clonePosition();
2923
2951
  if (!this.bumpUntil("'"))
2924
- return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, O(i, this.clonePosition()));
2952
+ return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(o, this.clonePosition()));
2925
2953
  this.bump();
2926
2954
  break;
2927
2955
  }
@@ -2951,64 +2979,64 @@ var Bi = (
2951
2979
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2952
2980
  var r = [];
2953
2981
  try {
2954
- r = ii(t);
2982
+ r = so(t);
2955
2983
  } catch {
2956
2984
  return this.error(H.INVALID_NUMBER_SKELETON, n);
2957
2985
  }
2958
2986
  return {
2959
2987
  val: {
2960
- type: Fe.number,
2988
+ type: Ue.number,
2961
2989
  tokens: r,
2962
2990
  location: n,
2963
- parsedOptions: this.shouldParseSkeletons ? ui(r) : {}
2991
+ parsedOptions: this.shouldParseSkeletons ? co(r) : {}
2964
2992
  },
2965
2993
  err: null
2966
2994
  };
2967
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2968
- for (var o, l = !1, s = [], p = /* @__PURE__ */ new Set(), c = i.value, d = i.location; ; ) {
2995
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, o) {
2996
+ for (var i, u = !1, a = [], d = /* @__PURE__ */ new Set(), c = o.value, f = o.location; ; ) {
2969
2997
  if (c.length === 0) {
2970
2998
  var g = this.clonePosition();
2971
2999
  if (n !== "select" && this.bumpIf("=")) {
2972
3000
  var b = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
2973
3001
  if (b.err)
2974
3002
  return b;
2975
- d = O(g, this.clonePosition()), c = this.message.slice(g.offset, this.offset());
3003
+ f = L(g, this.clonePosition()), c = this.message.slice(g.offset, this.offset());
2976
3004
  } else
2977
3005
  break;
2978
3006
  }
2979
- if (p.has(c))
2980
- return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
2981
- c === "other" && (l = !0), this.bumpSpace();
3007
+ if (d.has(c))
3008
+ return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
3009
+ c === "other" && (u = !0), this.bumpSpace();
2982
3010
  var _ = this.clonePosition();
2983
3011
  if (!this.bumpIf("{"))
2984
- return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
2985
- var B = this.parseMessage(t + 1, n, r);
2986
- if (B.err)
2987
- return B;
2988
- var I = this.tryParseArgumentClose(_);
2989
- if (I.err)
2990
- return I;
2991
- s.push([
3012
+ return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
3013
+ var S = this.parseMessage(t + 1, n, r);
3014
+ if (S.err)
3015
+ return S;
3016
+ var P = this.tryParseArgumentClose(_);
3017
+ if (P.err)
3018
+ return P;
3019
+ a.push([
2992
3020
  c,
2993
3021
  {
2994
- value: B.val,
2995
- location: O(_, this.clonePosition())
3022
+ value: S.val,
3023
+ location: L(_, this.clonePosition())
2996
3024
  }
2997
- ]), p.add(c), this.bumpSpace(), o = this.parseIdentifierIfPossible(), c = o.value, d = o.location;
3025
+ ]), d.add(c), this.bumpSpace(), i = this.parseIdentifierIfPossible(), c = i.value, f = i.location;
2998
3026
  }
2999
- return s.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(H.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3027
+ return a.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(H.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3000
3028
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3001
- var r = 1, i = this.clonePosition();
3029
+ var r = 1, o = this.clonePosition();
3002
3030
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
3003
- for (var o = !1, l = 0; !this.isEOF(); ) {
3004
- var s = this.char();
3005
- if (s >= 48 && s <= 57)
3006
- o = !0, l = l * 10 + (s - 48), this.bump();
3031
+ for (var i = !1, u = 0; !this.isEOF(); ) {
3032
+ var a = this.char();
3033
+ if (a >= 48 && a <= 57)
3034
+ i = !0, u = u * 10 + (a - 48), this.bump();
3007
3035
  else
3008
3036
  break;
3009
3037
  }
3010
- var p = O(i, this.clonePosition());
3011
- return o ? (l *= r, Ei(l) ? { val: l, err: null } : this.error(n, p)) : this.error(t, p);
3038
+ var d = L(o, this.clonePosition());
3039
+ return i ? (u *= r, So(u) ? { val: u, err: null } : this.error(n, d)) : this.error(t, d);
3012
3040
  }, e.prototype.offset = function() {
3013
3041
  return this.position.offset;
3014
3042
  }, e.prototype.isEOF = function() {
@@ -3023,7 +3051,7 @@ var Bi = (
3023
3051
  var t = this.position.offset;
3024
3052
  if (t >= this.message.length)
3025
3053
  throw Error("out of bound");
3026
- var n = $n(this.message, t);
3054
+ var n = Vn(this.message, t);
3027
3055
  if (n === void 0)
3028
3056
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3029
3057
  return n;
@@ -3042,7 +3070,7 @@ var Bi = (
3042
3070
  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);
3043
3071
  }
3044
3072
  }, e.prototype.bumpIf = function(t) {
3045
- if (un(this.message, t, this.offset())) {
3073
+ if (ln(this.message, t, this.offset())) {
3046
3074
  for (var n = 0; n < t.length; n++)
3047
3075
  this.bump();
3048
3076
  return !0;
@@ -3064,7 +3092,7 @@ var Bi = (
3064
3092
  break;
3065
3093
  }
3066
3094
  }, e.prototype.bumpSpace = function() {
3067
- for (; !this.isEOF() && Xn(this.char()); )
3095
+ for (; !this.isEOF() && zn(this.char()); )
3068
3096
  this.bump();
3069
3097
  }, e.prototype.peek = function() {
3070
3098
  if (this.isEOF())
@@ -3074,204 +3102,204 @@ var Bi = (
3074
3102
  }, e;
3075
3103
  }()
3076
3104
  );
3077
- function Xt(e) {
3105
+ function zt(e) {
3078
3106
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3079
3107
  }
3080
- function Si(e) {
3081
- return Xt(e) || e === 47;
3108
+ function Ho(e) {
3109
+ return zt(e) || e === 47;
3082
3110
  }
3083
- function wi(e) {
3111
+ function Oo(e) {
3084
3112
  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;
3085
3113
  }
3086
- function Xn(e) {
3114
+ function zn(e) {
3087
3115
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3088
3116
  }
3089
- function Ai(e) {
3117
+ function Lo(e) {
3090
3118
  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;
3091
3119
  }
3092
- function zt(e) {
3120
+ function Wt(e) {
3093
3121
  e.forEach(function(t) {
3094
- if (delete t.location, Pn(t) || In(t))
3122
+ if (delete t.location, In(t) || Dn(t))
3095
3123
  for (var n in t.options)
3096
- delete t.options[n].location, zt(t.options[n].value);
3124
+ delete t.options[n].location, Wt(t.options[n].value);
3097
3125
  else
3098
- Rn(t) && Fn(t.style) || (Nn(t) || Mn(t)) && jt(t.style) ? delete t.style.location : Dn(t) && zt(t.children);
3126
+ Nn(t) && Un(t.style) || (Mn(t) || Pn(t)) && kt(t.style) ? delete t.style.location : Fn(t) && Wt(t.children);
3099
3127
  });
3100
3128
  }
3101
- function Ci(e, t) {
3102
- t === void 0 && (t = {}), t = mt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3103
- var n = new Bi(e, t).parse();
3129
+ function Ro(e, t) {
3130
+ t === void 0 && (t = {}), t = yt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3131
+ var n = new Co(e, t).parse();
3104
3132
  if (n.err) {
3105
3133
  var r = SyntaxError(H[n.err.kind]);
3106
3134
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3107
3135
  }
3108
- return t?.captureLocation || zt(n.val), n.val;
3136
+ return t?.captureLocation || Wt(n.val), n.val;
3109
3137
  }
3110
- var Ue;
3138
+ var Ge;
3111
3139
  (function(e) {
3112
3140
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3113
- })(Ue || (Ue = {}));
3114
- var Et = (
3141
+ })(Ge || (Ge = {}));
3142
+ var Tt = (
3115
3143
  /** @class */
3116
3144
  function(e) {
3117
- vt(t, e);
3118
- function t(n, r, i) {
3119
- var o = e.call(this, n) || this;
3120
- return o.code = r, o.originalMessage = i, o;
3145
+ _t(t, e);
3146
+ function t(n, r, o) {
3147
+ var i = e.call(this, n) || this;
3148
+ return i.code = r, i.originalMessage = o, i;
3121
3149
  }
3122
3150
  return t.prototype.toString = function() {
3123
3151
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3124
3152
  }, t;
3125
3153
  }(Error)
3126
- ), cn = (
3154
+ ), fn = (
3127
3155
  /** @class */
3128
3156
  function(e) {
3129
- vt(t, e);
3130
- function t(n, r, i, o) {
3131
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ue.INVALID_VALUE, o) || this;
3157
+ _t(t, e);
3158
+ function t(n, r, o, i) {
3159
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(o).join('", "'), '"'), Ge.INVALID_VALUE, i) || this;
3132
3160
  }
3133
3161
  return t;
3134
- }(Et)
3135
- ), Hi = (
3162
+ }(Tt)
3163
+ ), No = (
3136
3164
  /** @class */
3137
3165
  function(e) {
3138
- vt(t, e);
3139
- function t(n, r, i) {
3140
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ue.INVALID_VALUE, i) || this;
3166
+ _t(t, e);
3167
+ function t(n, r, o) {
3168
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ge.INVALID_VALUE, o) || this;
3141
3169
  }
3142
3170
  return t;
3143
- }(Et)
3144
- ), Oi = (
3171
+ }(Tt)
3172
+ ), Mo = (
3145
3173
  /** @class */
3146
3174
  function(e) {
3147
- vt(t, e);
3175
+ _t(t, e);
3148
3176
  function t(n, r) {
3149
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ue.MISSING_VALUE, r) || this;
3177
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ge.MISSING_VALUE, r) || this;
3150
3178
  }
3151
3179
  return t;
3152
- }(Et)
3153
- ), J;
3180
+ }(Tt)
3181
+ ), ee;
3154
3182
  (function(e) {
3155
3183
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3156
- })(J || (J = {}));
3157
- function Li(e) {
3184
+ })(ee || (ee = {}));
3185
+ function Po(e) {
3158
3186
  return e.length < 2 ? e : e.reduce(function(t, n) {
3159
3187
  var r = t[t.length - 1];
3160
- return !r || r.type !== J.literal || n.type !== J.literal ? t.push(n) : r.value += n.value, t;
3188
+ return !r || r.type !== ee.literal || n.type !== ee.literal ? t.push(n) : r.value += n.value, t;
3161
3189
  }, []);
3162
3190
  }
3163
- function Ri(e) {
3191
+ function Io(e) {
3164
3192
  return typeof e == "function";
3165
3193
  }
3166
- function ct(e, t, n, r, i, o, l) {
3167
- if (e.length === 1 && rn(e[0]))
3194
+ function pt(e, t, n, r, o, i, u) {
3195
+ if (e.length === 1 && on(e[0]))
3168
3196
  return [
3169
3197
  {
3170
- type: J.literal,
3198
+ type: ee.literal,
3171
3199
  value: e[0].value
3172
3200
  }
3173
3201
  ];
3174
- for (var s = [], p = 0, c = e; p < c.length; p++) {
3175
- var d = c[p];
3176
- if (rn(d)) {
3177
- s.push({
3178
- type: J.literal,
3179
- value: d.value
3202
+ for (var a = [], d = 0, c = e; d < c.length; d++) {
3203
+ var f = c[d];
3204
+ if (on(f)) {
3205
+ a.push({
3206
+ type: ee.literal,
3207
+ value: f.value
3180
3208
  });
3181
3209
  continue;
3182
3210
  }
3183
- if (ei(d)) {
3184
- typeof o == "number" && s.push({
3185
- type: J.literal,
3186
- value: n.getNumberFormat(t).format(o)
3211
+ if (ro(f)) {
3212
+ typeof i == "number" && a.push({
3213
+ type: ee.literal,
3214
+ value: n.getNumberFormat(t).format(i)
3187
3215
  });
3188
3216
  continue;
3189
3217
  }
3190
- var g = d.value;
3191
- if (!(i && g in i))
3192
- throw new Oi(g, l);
3193
- var b = i[g];
3194
- if (Kr(d)) {
3195
- (!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
3196
- type: typeof b == "string" ? J.literal : J.object,
3218
+ var g = f.value;
3219
+ if (!(o && g in o))
3220
+ throw new Mo(g, u);
3221
+ var b = o[g];
3222
+ if (no(f)) {
3223
+ (!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), a.push({
3224
+ type: typeof b == "string" ? ee.literal : ee.object,
3197
3225
  value: b
3198
3226
  });
3199
3227
  continue;
3200
3228
  }
3201
- if (Nn(d)) {
3202
- var _ = typeof d.style == "string" ? r.date[d.style] : jt(d.style) ? d.style.parsedOptions : void 0;
3203
- s.push({
3204
- type: J.literal,
3229
+ if (Mn(f)) {
3230
+ var _ = typeof f.style == "string" ? r.date[f.style] : kt(f.style) ? f.style.parsedOptions : void 0;
3231
+ a.push({
3232
+ type: ee.literal,
3205
3233
  value: n.getDateTimeFormat(t, _).format(b)
3206
3234
  });
3207
3235
  continue;
3208
3236
  }
3209
- if (Mn(d)) {
3210
- var _ = typeof d.style == "string" ? r.time[d.style] : jt(d.style) ? d.style.parsedOptions : r.time.medium;
3211
- s.push({
3212
- type: J.literal,
3237
+ if (Pn(f)) {
3238
+ var _ = typeof f.style == "string" ? r.time[f.style] : kt(f.style) ? f.style.parsedOptions : r.time.medium;
3239
+ a.push({
3240
+ type: ee.literal,
3213
3241
  value: n.getDateTimeFormat(t, _).format(b)
3214
3242
  });
3215
3243
  continue;
3216
3244
  }
3217
- if (Rn(d)) {
3218
- var _ = typeof d.style == "string" ? r.number[d.style] : Fn(d.style) ? d.style.parsedOptions : void 0;
3219
- _ && _.scale && (b = b * (_.scale || 1)), s.push({
3220
- type: J.literal,
3245
+ if (Nn(f)) {
3246
+ var _ = typeof f.style == "string" ? r.number[f.style] : Un(f.style) ? f.style.parsedOptions : void 0;
3247
+ _ && _.scale && (b = b * (_.scale || 1)), a.push({
3248
+ type: ee.literal,
3221
3249
  value: n.getNumberFormat(t, _).format(b)
3222
3250
  });
3223
3251
  continue;
3224
3252
  }
3225
- if (Dn(d)) {
3226
- var B = d.children, I = d.value, j = i[I];
3227
- if (!Ri(j))
3228
- throw new Hi(I, "function", l);
3229
- var W = ct(B, t, n, r, i, o), U = j(W.map(function(P) {
3230
- return P.value;
3253
+ if (Fn(f)) {
3254
+ var S = f.children, P = f.value, j = o[P];
3255
+ if (!Io(j))
3256
+ throw new No(P, "function", u);
3257
+ var Z = pt(S, t, n, r, o, i), U = j(Z.map(function(N) {
3258
+ return N.value;
3231
3259
  }));
3232
- Array.isArray(U) || (U = [U]), s.push.apply(s, U.map(function(P) {
3260
+ Array.isArray(U) || (U = [U]), a.push.apply(a, U.map(function(N) {
3233
3261
  return {
3234
- type: typeof P == "string" ? J.literal : J.object,
3235
- value: P
3262
+ type: typeof N == "string" ? ee.literal : ee.object,
3263
+ value: N
3236
3264
  };
3237
3265
  }));
3238
3266
  }
3239
- if (Pn(d)) {
3240
- var w = d.options[b] || d.options.other;
3241
- if (!w)
3242
- throw new cn(d.value, b, Object.keys(d.options), l);
3243
- s.push.apply(s, ct(w.value, t, n, r, i));
3267
+ if (In(f)) {
3268
+ var B = f.options[b] || f.options.other;
3269
+ if (!B)
3270
+ throw new fn(f.value, b, Object.keys(f.options), u);
3271
+ a.push.apply(a, pt(B.value, t, n, r, o));
3244
3272
  continue;
3245
3273
  }
3246
- if (In(d)) {
3247
- var w = d.options["=".concat(b)];
3248
- if (!w) {
3274
+ if (Dn(f)) {
3275
+ var B = f.options["=".concat(b)];
3276
+ if (!B) {
3249
3277
  if (!Intl.PluralRules)
3250
- throw new Et(`Intl.PluralRules is not available in this environment.
3278
+ throw new Tt(`Intl.PluralRules is not available in this environment.
3251
3279
  Try polyfilling it using "@formatjs/intl-pluralrules"
3252
- `, Ue.MISSING_INTL_API, l);
3253
- var A = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
3254
- w = d.options[A] || d.options.other;
3280
+ `, Ge.MISSING_INTL_API, u);
3281
+ var C = n.getPluralRules(t, { type: f.pluralType }).select(b - (f.offset || 0));
3282
+ B = f.options[C] || f.options.other;
3255
3283
  }
3256
- if (!w)
3257
- throw new cn(d.value, b, Object.keys(d.options), l);
3258
- s.push.apply(s, ct(w.value, t, n, r, i, b - (d.offset || 0)));
3284
+ if (!B)
3285
+ throw new fn(f.value, b, Object.keys(f.options), u);
3286
+ a.push.apply(a, pt(B.value, t, n, r, o, b - (f.offset || 0)));
3259
3287
  continue;
3260
3288
  }
3261
3289
  }
3262
- return Li(s);
3290
+ return Po(a);
3263
3291
  }
3264
- function Ni(e, t) {
3292
+ function Do(e, t) {
3265
3293
  return t ? ce(ce(ce({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3266
3294
  return n[r] = ce(ce({}, e[r]), t[r] || {}), n;
3267
3295
  }, {})) : e;
3268
3296
  }
3269
- function Mi(e, t) {
3297
+ function Fo(e, t) {
3270
3298
  return t ? Object.keys(e).reduce(function(n, r) {
3271
- return n[r] = Ni(e[r], t[r]), n;
3299
+ return n[r] = Do(e[r], t[r]), n;
3272
3300
  }, ce({}, e)) : e;
3273
3301
  }
3274
- function Pt(e) {
3302
+ function It(e) {
3275
3303
  return {
3276
3304
  create: function() {
3277
3305
  return {
@@ -3285,77 +3313,77 @@ function Pt(e) {
3285
3313
  }
3286
3314
  };
3287
3315
  }
3288
- function Pi(e) {
3316
+ function Uo(e) {
3289
3317
  return e === void 0 && (e = {
3290
3318
  number: {},
3291
3319
  dateTime: {},
3292
3320
  pluralRules: {}
3293
3321
  }), {
3294
- getNumberFormat: Rt(function() {
3322
+ getNumberFormat: Nt(function() {
3295
3323
  for (var t, n = [], r = 0; r < arguments.length; r++)
3296
3324
  n[r] = arguments[r];
3297
- return new ((t = Intl.NumberFormat).bind.apply(t, Lt([void 0], n, !1)))();
3325
+ return new ((t = Intl.NumberFormat).bind.apply(t, Rt([void 0], n, !1)))();
3298
3326
  }, {
3299
- cache: Pt(e.number),
3300
- strategy: Nt.variadic
3327
+ cache: It(e.number),
3328
+ strategy: Mt.variadic
3301
3329
  }),
3302
- getDateTimeFormat: Rt(function() {
3330
+ getDateTimeFormat: Nt(function() {
3303
3331
  for (var t, n = [], r = 0; r < arguments.length; r++)
3304
3332
  n[r] = arguments[r];
3305
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Lt([void 0], n, !1)))();
3333
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Rt([void 0], n, !1)))();
3306
3334
  }, {
3307
- cache: Pt(e.dateTime),
3308
- strategy: Nt.variadic
3335
+ cache: It(e.dateTime),
3336
+ strategy: Mt.variadic
3309
3337
  }),
3310
- getPluralRules: Rt(function() {
3338
+ getPluralRules: Nt(function() {
3311
3339
  for (var t, n = [], r = 0; r < arguments.length; r++)
3312
3340
  n[r] = arguments[r];
3313
- return new ((t = Intl.PluralRules).bind.apply(t, Lt([void 0], n, !1)))();
3341
+ return new ((t = Intl.PluralRules).bind.apply(t, Rt([void 0], n, !1)))();
3314
3342
  }, {
3315
- cache: Pt(e.pluralRules),
3316
- strategy: Nt.variadic
3343
+ cache: It(e.pluralRules),
3344
+ strategy: Mt.variadic
3317
3345
  })
3318
3346
  };
3319
3347
  }
3320
- var Ii = (
3348
+ var Go = (
3321
3349
  /** @class */
3322
3350
  function() {
3323
- function e(t, n, r, i) {
3351
+ function e(t, n, r, o) {
3324
3352
  n === void 0 && (n = e.defaultLocale);
3325
- var o = this;
3353
+ var i = this;
3326
3354
  if (this.formatterCache = {
3327
3355
  number: {},
3328
3356
  dateTime: {},
3329
3357
  pluralRules: {}
3330
- }, this.format = function(p) {
3331
- var c = o.formatToParts(p);
3358
+ }, this.format = function(d) {
3359
+ var c = i.formatToParts(d);
3332
3360
  if (c.length === 1)
3333
3361
  return c[0].value;
3334
- var d = c.reduce(function(g, b) {
3335
- return !g.length || b.type !== J.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
3362
+ var f = c.reduce(function(g, b) {
3363
+ return !g.length || b.type !== ee.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
3336
3364
  }, []);
3337
- return d.length <= 1 ? d[0] || "" : d;
3338
- }, this.formatToParts = function(p) {
3339
- return ct(o.ast, o.locales, o.formatters, o.formats, p, void 0, o.message);
3365
+ return f.length <= 1 ? f[0] || "" : f;
3366
+ }, this.formatToParts = function(d) {
3367
+ return pt(i.ast, i.locales, i.formatters, i.formats, d, void 0, i.message);
3340
3368
  }, this.resolvedOptions = function() {
3341
- var p;
3369
+ var d;
3342
3370
  return {
3343
- locale: ((p = o.resolvedLocale) === null || p === void 0 ? void 0 : p.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3371
+ locale: ((d = i.resolvedLocale) === null || d === void 0 ? void 0 : d.toString()) || Intl.NumberFormat.supportedLocalesOf(i.locales)[0]
3344
3372
  };
3345
3373
  }, this.getAst = function() {
3346
- return o.ast;
3374
+ return i.ast;
3347
3375
  }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3348
3376
  if (this.message = t, !e.__parse)
3349
3377
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3350
- var l = i || {};
3351
- l.formatters;
3352
- var s = Xr(l, ["formatters"]);
3353
- this.ast = e.__parse(t, ce(ce({}, s), { locale: this.resolvedLocale }));
3378
+ var u = o || {};
3379
+ u.formatters;
3380
+ var a = Zr(u, ["formatters"]);
3381
+ this.ast = e.__parse(t, ce(ce({}, a), { locale: this.resolvedLocale }));
3354
3382
  } else
3355
3383
  this.ast = t;
3356
3384
  if (!Array.isArray(this.ast))
3357
3385
  throw new TypeError("A message must be provided as a String or AST.");
3358
- this.formats = Mi(e.formats, r), this.formatters = i && i.formatters || Pi(this.formatterCache);
3386
+ this.formats = Fo(e.formats, r), this.formatters = o && o.formatters || Uo(this.formatterCache);
3359
3387
  }
3360
3388
  return Object.defineProperty(e, "defaultLocale", {
3361
3389
  get: function() {
@@ -3368,7 +3396,7 @@ var Ii = (
3368
3396
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3369
3397
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3370
3398
  }
3371
- }, e.__parse = Ci, e.formats = {
3399
+ }, e.__parse = Ro, e.formats = {
3372
3400
  number: {
3373
3401
  integer: {
3374
3402
  maximumFractionDigits: 0
@@ -3429,113 +3457,113 @@ var Ii = (
3429
3457
  }, e;
3430
3458
  }()
3431
3459
  );
3432
- function Di(e, t) {
3460
+ function jo(e, t) {
3433
3461
  if (t == null)
3434
3462
  return;
3435
3463
  if (t in e)
3436
3464
  return e[t];
3437
3465
  const n = t.split(".");
3438
3466
  let r = e;
3439
- for (let i = 0; i < n.length; i++)
3467
+ for (let o = 0; o < n.length; o++)
3440
3468
  if (typeof r == "object") {
3441
- if (i > 0) {
3442
- const o = n.slice(i, n.length).join(".");
3443
- if (o in r) {
3444
- r = r[o];
3469
+ if (o > 0) {
3470
+ const i = n.slice(o, n.length).join(".");
3471
+ if (i in r) {
3472
+ r = r[i];
3445
3473
  break;
3446
3474
  }
3447
3475
  }
3448
- r = r[n[i]];
3476
+ r = r[n[o]];
3449
3477
  } else
3450
3478
  r = void 0;
3451
3479
  return r;
3452
3480
  }
3453
- const Be = {}, Fi = (e, t, n) => n && (t in Be || (Be[t] = {}), e in Be[t] || (Be[t][e] = n), n), zn = (e, t) => {
3481
+ const Be = {}, ko = (e, t, n) => n && (t in Be || (Be[t] = {}), e in Be[t] || (Be[t][e] = n), n), Wn = (e, t) => {
3454
3482
  if (t == null)
3455
3483
  return;
3456
3484
  if (t in Be && e in Be[t])
3457
3485
  return Be[t][e];
3458
- const n = xt(t);
3486
+ const n = St(t);
3459
3487
  for (let r = 0; r < n.length; r++) {
3460
- const i = n[r], o = Gi(i, e);
3461
- if (o)
3462
- return Fi(e, t, o);
3488
+ const o = n[r], i = Vo(o, e);
3489
+ if (i)
3490
+ return ko(e, t, i);
3463
3491
  }
3464
3492
  };
3465
- let Jt;
3466
- const nt = yt({});
3467
- function Ui(e) {
3468
- return Jt[e] || null;
3493
+ let Yt;
3494
+ const ot = xt({});
3495
+ function $o(e) {
3496
+ return Yt[e] || null;
3469
3497
  }
3470
- function Wn(e) {
3471
- return e in Jt;
3498
+ function Zn(e) {
3499
+ return e in Yt;
3472
3500
  }
3473
- function Gi(e, t) {
3474
- if (!Wn(e))
3501
+ function Vo(e, t) {
3502
+ if (!Zn(e))
3475
3503
  return null;
3476
- const n = Ui(e);
3477
- return Di(n, t);
3504
+ const n = $o(e);
3505
+ return jo(n, t);
3478
3506
  }
3479
- function ji(e) {
3507
+ function Xo(e) {
3480
3508
  if (e == null)
3481
3509
  return;
3482
- const t = xt(e);
3510
+ const t = St(e);
3483
3511
  for (let n = 0; n < t.length; n++) {
3484
3512
  const r = t[n];
3485
- if (Wn(r))
3513
+ if (Zn(r))
3486
3514
  return r;
3487
3515
  }
3488
3516
  }
3489
- function Zn(e, ...t) {
3490
- delete Be[e], nt.update((n) => (n[e] = Vr.all([n[e] || {}, ...t]), n));
3517
+ function qn(e, ...t) {
3518
+ delete Be[e], ot.update((n) => (n[e] = Wr.all([n[e] || {}, ...t]), n));
3491
3519
  }
3492
- ke(
3493
- [nt],
3520
+ $e(
3521
+ [ot],
3494
3522
  ([e]) => Object.keys(e)
3495
3523
  );
3496
- nt.subscribe((e) => Jt = e);
3497
- const ft = {};
3498
- function ki(e, t) {
3499
- ft[e].delete(t), ft[e].size === 0 && delete ft[e];
3524
+ ot.subscribe((e) => Yt = e);
3525
+ const mt = {};
3526
+ function zo(e, t) {
3527
+ mt[e].delete(t), mt[e].size === 0 && delete mt[e];
3500
3528
  }
3501
- function qn(e) {
3502
- return ft[e];
3529
+ function Qn(e) {
3530
+ return mt[e];
3503
3531
  }
3504
- function $i(e) {
3505
- return xt(e).map((t) => {
3506
- const n = qn(t);
3532
+ function Wo(e) {
3533
+ return St(e).map((t) => {
3534
+ const n = Qn(t);
3507
3535
  return [t, n ? [...n] : []];
3508
3536
  }).filter(([, t]) => t.length > 0);
3509
3537
  }
3510
- function Wt(e) {
3511
- return e == null ? !1 : xt(e).some(
3538
+ function Zt(e) {
3539
+ return e == null ? !1 : St(e).some(
3512
3540
  (t) => {
3513
3541
  var n;
3514
- return (n = qn(t)) == null ? void 0 : n.size;
3542
+ return (n = Qn(t)) == null ? void 0 : n.size;
3515
3543
  }
3516
3544
  );
3517
3545
  }
3518
- function Vi(e, t) {
3546
+ function Zo(e, t) {
3519
3547
  return Promise.all(
3520
- t.map((r) => (ki(e, r), r().then((i) => i.default || i)))
3521
- ).then((r) => Zn(e, ...r));
3522
- }
3523
- const Je = {};
3524
- function Qn(e) {
3525
- if (!Wt(e))
3526
- return e in Je ? Je[e] : Promise.resolve();
3527
- const t = $i(e);
3528
- return Je[e] = Promise.all(
3548
+ t.map((r) => (zo(e, r), r().then((o) => o.default || o)))
3549
+ ).then((r) => qn(e, ...r));
3550
+ }
3551
+ const Ke = {};
3552
+ function Jn(e) {
3553
+ if (!Zt(e))
3554
+ return e in Ke ? Ke[e] : Promise.resolve();
3555
+ const t = Wo(e);
3556
+ return Ke[e] = Promise.all(
3529
3557
  t.map(
3530
- ([n, r]) => Vi(n, r)
3558
+ ([n, r]) => Zo(n, r)
3531
3559
  )
3532
3560
  ).then(() => {
3533
- if (Wt(e))
3534
- return Qn(e);
3535
- delete Je[e];
3536
- }), Je[e];
3561
+ if (Zt(e))
3562
+ return Jn(e);
3563
+ delete Ke[e];
3564
+ }), Ke[e];
3537
3565
  }
3538
- const Xi = {
3566
+ const qo = {
3539
3567
  number: {
3540
3568
  scientific: { notation: "scientific" },
3541
3569
  engineering: { notation: "engineering" },
@@ -3564,159 +3592,159 @@ const Xi = {
3564
3592
  timeZoneName: "short"
3565
3593
  }
3566
3594
  }
3567
- }, zi = {
3595
+ }, Qo = {
3568
3596
  fallbackLocale: null,
3569
3597
  loadingDelay: 200,
3570
- formats: Xi,
3598
+ formats: qo,
3571
3599
  warnOnMissingMessages: !0,
3572
3600
  handleMissingMessage: void 0,
3573
3601
  ignoreTag: !0
3574
- }, Wi = zi;
3575
- function Ge() {
3576
- return Wi;
3602
+ }, Jo = Qo;
3603
+ function je() {
3604
+ return Jo;
3577
3605
  }
3578
- const It = yt(!1);
3579
- var Zi = Object.defineProperty, qi = Object.defineProperties, Qi = Object.getOwnPropertyDescriptors, fn = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, dn = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ki = (e, t) => {
3606
+ const Dt = xt(!1);
3607
+ var Yo = Object.defineProperty, Ko = Object.defineProperties, ei = Object.getOwnPropertyDescriptors, dn = Object.getOwnPropertySymbols, ti = Object.prototype.hasOwnProperty, ni = Object.prototype.propertyIsEnumerable, pn = (e, t, n) => t in e ? Yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ri = (e, t) => {
3580
3608
  for (var n in t || (t = {}))
3581
- Ji.call(t, n) && dn(e, n, t[n]);
3582
- if (fn)
3583
- for (var n of fn(t))
3584
- Yi.call(t, n) && dn(e, n, t[n]);
3609
+ ti.call(t, n) && pn(e, n, t[n]);
3610
+ if (dn)
3611
+ for (var n of dn(t))
3612
+ ni.call(t, n) && pn(e, n, t[n]);
3585
3613
  return e;
3586
- }, eo = (e, t) => qi(e, Qi(t));
3587
- let Zt;
3588
- const gt = yt(null);
3589
- function pn(e) {
3614
+ }, oi = (e, t) => Ko(e, ei(t));
3615
+ let qt;
3616
+ const vt = xt(null);
3617
+ function mn(e) {
3590
3618
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3591
3619
  }
3592
- function xt(e, t = Ge().fallbackLocale) {
3593
- const n = pn(e);
3594
- return t ? [.../* @__PURE__ */ new Set([...n, ...pn(t)])] : n;
3620
+ function St(e, t = je().fallbackLocale) {
3621
+ const n = mn(e);
3622
+ return t ? [.../* @__PURE__ */ new Set([...n, ...mn(t)])] : n;
3595
3623
  }
3596
3624
  function He() {
3597
- return Zt ?? void 0;
3625
+ return qt ?? void 0;
3598
3626
  }
3599
- gt.subscribe((e) => {
3600
- Zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3627
+ vt.subscribe((e) => {
3628
+ qt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3601
3629
  });
3602
- const to = (e) => {
3603
- if (e && ji(e) && Wt(e)) {
3604
- const { loadingDelay: t } = Ge();
3630
+ const ii = (e) => {
3631
+ if (e && Xo(e) && Zt(e)) {
3632
+ const { loadingDelay: t } = je();
3605
3633
  let n;
3606
3634
  return typeof window < "u" && He() != null && t ? n = window.setTimeout(
3607
- () => It.set(!0),
3635
+ () => Dt.set(!0),
3608
3636
  t
3609
- ) : It.set(!0), Qn(e).then(() => {
3610
- gt.set(e);
3637
+ ) : Dt.set(!0), Jn(e).then(() => {
3638
+ vt.set(e);
3611
3639
  }).finally(() => {
3612
- clearTimeout(n), It.set(!1);
3640
+ clearTimeout(n), Dt.set(!1);
3613
3641
  });
3614
3642
  }
3615
- return gt.set(e);
3616
- }, $e = eo(Ki({}, gt), {
3617
- set: to
3618
- }), _t = (e) => {
3643
+ return vt.set(e);
3644
+ }, Ve = oi(ri({}, vt), {
3645
+ set: ii
3646
+ }), Bt = (e) => {
3619
3647
  const t = /* @__PURE__ */ Object.create(null);
3620
3648
  return (r) => {
3621
- const i = JSON.stringify(r);
3622
- return i in t ? t[i] : t[i] = e(r);
3649
+ const o = JSON.stringify(r);
3650
+ return o in t ? t[o] : t[o] = e(r);
3623
3651
  };
3624
3652
  };
3625
- var no = Object.defineProperty, bt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, mn = (e, t, n) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
3653
+ var ai = Object.defineProperty, Et = Object.getOwnPropertySymbols, Yn = Object.prototype.hasOwnProperty, Kn = Object.prototype.propertyIsEnumerable, gn = (e, t, n) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Kt = (e, t) => {
3626
3654
  for (var n in t || (t = {}))
3627
- Jn.call(t, n) && mn(e, n, t[n]);
3628
- if (bt)
3629
- for (var n of bt(t))
3630
- Yn.call(t, n) && mn(e, n, t[n]);
3655
+ Yn.call(t, n) && gn(e, n, t[n]);
3656
+ if (Et)
3657
+ for (var n of Et(t))
3658
+ Kn.call(t, n) && gn(e, n, t[n]);
3631
3659
  return e;
3632
- }, Ve = (e, t) => {
3660
+ }, Xe = (e, t) => {
3633
3661
  var n = {};
3634
3662
  for (var r in e)
3635
- Jn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3636
- if (e != null && bt)
3637
- for (var r of bt(e))
3638
- t.indexOf(r) < 0 && Yn.call(e, r) && (n[r] = e[r]);
3663
+ Yn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3664
+ if (e != null && Et)
3665
+ for (var r of Et(e))
3666
+ t.indexOf(r) < 0 && Kn.call(e, r) && (n[r] = e[r]);
3639
3667
  return n;
3640
3668
  };
3641
- const tt = (e, t) => {
3642
- const { formats: n } = Ge();
3669
+ const rt = (e, t) => {
3670
+ const { formats: n } = je();
3643
3671
  if (e in n && t in n[e])
3644
3672
  return n[e][t];
3645
3673
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3646
- }, ro = _t(
3674
+ }, si = Bt(
3647
3675
  (e) => {
3648
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3676
+ var t = e, { locale: n, format: r } = t, o = Xe(t, ["locale", "format"]);
3649
3677
  if (n == null)
3650
3678
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3651
- return r && (i = tt("number", r)), new Intl.NumberFormat(n, i);
3679
+ return r && (o = rt("number", r)), new Intl.NumberFormat(n, o);
3652
3680
  }
3653
- ), io = _t(
3681
+ ), ui = Bt(
3654
3682
  (e) => {
3655
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3683
+ var t = e, { locale: n, format: r } = t, o = Xe(t, ["locale", "format"]);
3656
3684
  if (n == null)
3657
3685
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3658
- return r ? i = tt("date", r) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(n, i);
3686
+ return r ? o = rt("date", r) : Object.keys(o).length === 0 && (o = rt("date", "short")), new Intl.DateTimeFormat(n, o);
3659
3687
  }
3660
- ), oo = _t(
3688
+ ), li = Bt(
3661
3689
  (e) => {
3662
- var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3690
+ var t = e, { locale: n, format: r } = t, o = Xe(t, ["locale", "format"]);
3663
3691
  if (n == null)
3664
3692
  throw new Error(
3665
3693
  '[svelte-i18n] A "locale" must be set to format time values'
3666
3694
  );
3667
- return r ? i = tt("time", r) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(n, i);
3695
+ return r ? o = rt("time", r) : Object.keys(o).length === 0 && (o = rt("time", "short")), new Intl.DateTimeFormat(n, o);
3668
3696
  }
3669
- ), ao = (e = {}) => {
3697
+ ), hi = (e = {}) => {
3670
3698
  var t = e, {
3671
3699
  locale: n = He()
3672
- } = t, r = Ve(t, [
3700
+ } = t, r = Xe(t, [
3673
3701
  "locale"
3674
3702
  ]);
3675
- return ro(Yt({ locale: n }, r));
3676
- }, so = (e = {}) => {
3703
+ return si(Kt({ locale: n }, r));
3704
+ }, ci = (e = {}) => {
3677
3705
  var t = e, {
3678
3706
  locale: n = He()
3679
- } = t, r = Ve(t, [
3707
+ } = t, r = Xe(t, [
3680
3708
  "locale"
3681
3709
  ]);
3682
- return io(Yt({ locale: n }, r));
3683
- }, uo = (e = {}) => {
3710
+ return ui(Kt({ locale: n }, r));
3711
+ }, fi = (e = {}) => {
3684
3712
  var t = e, {
3685
3713
  locale: n = He()
3686
- } = t, r = Ve(t, [
3714
+ } = t, r = Xe(t, [
3687
3715
  "locale"
3688
3716
  ]);
3689
- return oo(Yt({ locale: n }, r));
3690
- }, lo = _t(
3717
+ return li(Kt({ locale: n }, r));
3718
+ }, di = Bt(
3691
3719
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3692
- (e, t = He()) => new Ii(e, t, Ge().formats, {
3693
- ignoreTag: Ge().ignoreTag
3720
+ (e, t = He()) => new Go(e, t, je().formats, {
3721
+ ignoreTag: je().ignoreTag
3694
3722
  })
3695
- ), ho = (e, t = {}) => {
3696
- var n, r, i, o;
3697
- let l = t;
3698
- typeof e == "object" && (l = e, e = l.id);
3723
+ ), pi = (e, t = {}) => {
3724
+ var n, r, o, i;
3725
+ let u = t;
3726
+ typeof e == "object" && (u = e, e = u.id);
3699
3727
  const {
3700
- values: s,
3701
- locale: p = He(),
3728
+ values: a,
3729
+ locale: d = He(),
3702
3730
  default: c
3703
- } = l;
3704
- if (p == null)
3731
+ } = u;
3732
+ if (d == null)
3705
3733
  throw new Error(
3706
3734
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3707
3735
  );
3708
- let d = zn(e, p);
3709
- if (!d)
3710
- d = (o = (i = (r = (n = Ge()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: p, id: e, defaultValue: c })) != null ? i : c) != null ? o : e;
3711
- else if (typeof d != "string")
3736
+ let f = Wn(e, d);
3737
+ if (!f)
3738
+ f = (i = (o = (r = (n = je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: d, id: e, defaultValue: c })) != null ? o : c) != null ? i : e;
3739
+ else if (typeof f != "string")
3712
3740
  return console.warn(
3713
- `[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.`
3714
- ), d;
3715
- if (!s)
3716
- return d;
3717
- let g = d;
3741
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3742
+ ), f;
3743
+ if (!a)
3744
+ return f;
3745
+ let g = f;
3718
3746
  try {
3719
- g = lo(d, p).format(s);
3747
+ g = di(f, d).format(a);
3720
3748
  } catch (b) {
3721
3749
  b instanceof Error && console.warn(
3722
3750
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3724,18 +3752,18 @@ const tt = (e, t) => {
3724
3752
  );
3725
3753
  }
3726
3754
  return g;
3727
- }, co = (e, t) => uo(t).format(e), fo = (e, t) => so(t).format(e), po = (e, t) => ao(t).format(e), mo = (e, t = He()) => zn(e, t), go = ke([$e, nt], () => ho);
3728
- ke([$e], () => co);
3729
- ke([$e], () => fo);
3730
- ke([$e], () => po);
3731
- ke([$e, nt], () => mo);
3732
- function gn(e, t) {
3733
- Zn(e, t);
3734
- }
3735
- function bo(e) {
3736
- $e.set(e);
3737
- }
3738
- const bn = {
3755
+ }, mi = (e, t) => fi(t).format(e), gi = (e, t) => ci(t).format(e), bi = (e, t) => hi(t).format(e), yi = (e, t = He()) => Wn(e, t), vi = $e([Ve, ot], () => pi);
3756
+ $e([Ve], () => mi);
3757
+ $e([Ve], () => gi);
3758
+ $e([Ve], () => bi);
3759
+ $e([Ve, ot], () => yi);
3760
+ function bn(e, t) {
3761
+ qn(e, t);
3762
+ }
3763
+ function Ei(e) {
3764
+ Ve.set(e);
3765
+ }
3766
+ const yn = {
3739
3767
  en: {
3740
3768
  Title: "Your Balance",
3741
3769
  Total: "Total Balance",
@@ -3935,7 +3963,7 @@ const bn = {
3935
3963
  Loading: "Loading ..."
3936
3964
  }
3937
3965
  };
3938
- var qt = { exports: {} };
3966
+ var Qt = { exports: {} };
3939
3967
  /** @license
3940
3968
  * eventsource.js
3941
3969
  * Available under MIT License (MIT)
@@ -3943,27 +3971,27 @@ var qt = { exports: {} };
3943
3971
  */
3944
3972
  (function(e, t) {
3945
3973
  (function(n) {
3946
- var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, p = n.EventSource, c = n.document, d = n.Promise, g = n.fetch, b = n.Response, _ = n.TextDecoder, B = n.TextEncoder, I = n.AbortController;
3947
- if (typeof window < "u" && typeof c < "u" && !("readyState" in c) && c.body == null && (c.readyState = "loading", window.addEventListener("load", function(h) {
3974
+ var r = n.setTimeout, o = n.clearTimeout, i = n.XMLHttpRequest, u = n.XDomainRequest, a = n.ActiveXObject, d = n.EventSource, c = n.document, f = n.Promise, g = n.fetch, b = n.Response, _ = n.TextDecoder, S = n.TextEncoder, P = n.AbortController;
3975
+ if (typeof window < "u" && typeof c < "u" && !("readyState" in c) && c.body == null && (c.readyState = "loading", window.addEventListener("load", function(l) {
3948
3976
  c.readyState = "complete";
3949
- }, !1)), o == null && s != null && (o = function() {
3950
- return new s("Microsoft.XMLHTTP");
3951
- }), Object.create == null && (Object.create = function(h) {
3952
- function a() {
3977
+ }, !1)), i == null && a != null && (i = function() {
3978
+ return new a("Microsoft.XMLHTTP");
3979
+ }), Object.create == null && (Object.create = function(l) {
3980
+ function y() {
3953
3981
  }
3954
- return a.prototype = h, new a();
3982
+ return y.prototype = l, new y();
3955
3983
  }), Date.now || (Date.now = function() {
3956
3984
  return (/* @__PURE__ */ new Date()).getTime();
3957
- }), I == null) {
3985
+ }), P == null) {
3958
3986
  var j = g;
3959
- g = function(h, a) {
3960
- var f = a.signal;
3961
- return j(h, { headers: a.headers, credentials: a.credentials, cache: a.cache }).then(function(u) {
3962
- var m = u.body.getReader();
3963
- return f._reader = m, f._aborted && f._reader.cancel(), {
3964
- status: u.status,
3965
- statusText: u.statusText,
3966
- headers: u.headers,
3987
+ g = function(l, y) {
3988
+ var s = y.signal;
3989
+ return j(l, { headers: y.headers, credentials: y.credentials, cache: y.cache }).then(function(h) {
3990
+ var m = h.body.getReader();
3991
+ return s._reader = m, s._aborted && s._reader.cancel(), {
3992
+ status: h.status,
3993
+ statusText: h.statusText,
3994
+ headers: h.headers,
3967
3995
  body: {
3968
3996
  getReader: function() {
3969
3997
  return m;
@@ -3971,7 +3999,7 @@ var qt = { exports: {} };
3971
3999
  }
3972
4000
  };
3973
4001
  });
3974
- }, I = function() {
4002
+ }, P = function() {
3975
4003
  this.signal = {
3976
4004
  _reader: null,
3977
4005
  _aborted: !1
@@ -3980,419 +4008,419 @@ var qt = { exports: {} };
3980
4008
  };
3981
4009
  };
3982
4010
  }
3983
- function W() {
4011
+ function Z() {
3984
4012
  this.bitsNeeded = 0, this.codePoint = 0;
3985
4013
  }
3986
- W.prototype.decode = function(h) {
3987
- function a(C, R, S) {
3988
- if (S === 1)
3989
- return C >= 128 >> R && C << R <= 2047;
3990
- if (S === 2)
3991
- return C >= 2048 >> R && C << R <= 55295 || C >= 57344 >> R && C << R <= 65535;
3992
- if (S === 3)
3993
- return C >= 65536 >> R && C << R <= 1114111;
4014
+ Z.prototype.decode = function(l) {
4015
+ function y(w, O, T) {
4016
+ if (T === 1)
4017
+ return w >= 128 >> O && w << O <= 2047;
4018
+ if (T === 2)
4019
+ return w >= 2048 >> O && w << O <= 55295 || w >= 57344 >> O && w << O <= 65535;
4020
+ if (T === 3)
4021
+ return w >= 65536 >> O && w << O <= 1114111;
3994
4022
  throw new Error();
3995
4023
  }
3996
- function f(C, R) {
3997
- if (C === 6 * 1)
3998
- return R >> 6 > 15 ? 3 : R > 31 ? 2 : 1;
3999
- if (C === 6 * 2)
4000
- return R > 15 ? 3 : 2;
4001
- if (C === 6 * 3)
4024
+ function s(w, O) {
4025
+ if (w === 6 * 1)
4026
+ return O >> 6 > 15 ? 3 : O > 31 ? 2 : 1;
4027
+ if (w === 6 * 2)
4028
+ return O > 15 ? 3 : 2;
4029
+ if (w === 6 * 3)
4002
4030
  return 3;
4003
4031
  throw new Error();
4004
4032
  }
4005
- for (var u = 65533, m = "", y = this.bitsNeeded, E = this.codePoint, x = 0; x < h.length; x += 1) {
4006
- var T = h[x];
4007
- y !== 0 && (T < 128 || T > 191 || !a(E << 6 | T & 63, y - 6, f(y, E))) && (y = 0, E = u, m += String.fromCharCode(E)), y === 0 ? (T >= 0 && T <= 127 ? (y = 0, E = T) : T >= 192 && T <= 223 ? (y = 6 * 1, E = T & 31) : T >= 224 && T <= 239 ? (y = 6 * 2, E = T & 15) : T >= 240 && T <= 247 ? (y = 6 * 3, E = T & 7) : (y = 0, E = u), y !== 0 && !a(E, y, f(y, E)) && (y = 0, E = u)) : (y -= 6, E = E << 6 | T & 63), y === 0 && (E <= 65535 ? m += String.fromCharCode(E) : (m += String.fromCharCode(55296 + (E - 65535 - 1 >> 10)), m += String.fromCharCode(56320 + (E - 65535 - 1 & 1023))));
4033
+ for (var h = 65533, m = "", p = this.bitsNeeded, x = this.codePoint, A = 0; A < l.length; A += 1) {
4034
+ var v = l[A];
4035
+ p !== 0 && (v < 128 || v > 191 || !y(x << 6 | v & 63, p - 6, s(p, x))) && (p = 0, x = h, m += String.fromCharCode(x)), p === 0 ? (v >= 0 && v <= 127 ? (p = 0, x = v) : v >= 192 && v <= 223 ? (p = 6 * 1, x = v & 31) : v >= 224 && v <= 239 ? (p = 6 * 2, x = v & 15) : v >= 240 && v <= 247 ? (p = 6 * 3, x = v & 7) : (p = 0, x = h), p !== 0 && !y(x, p, s(p, x)) && (p = 0, x = h)) : (p -= 6, x = x << 6 | v & 63), p === 0 && (x <= 65535 ? m += String.fromCharCode(x) : (m += String.fromCharCode(55296 + (x - 65535 - 1 >> 10)), m += String.fromCharCode(56320 + (x - 65535 - 1 & 1023))));
4008
4036
  }
4009
- return this.bitsNeeded = y, this.codePoint = E, m;
4037
+ return this.bitsNeeded = p, this.codePoint = x, m;
4010
4038
  };
4011
4039
  var U = function() {
4012
4040
  try {
4013
- return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
4014
- } catch (h) {
4015
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
4041
+ return new _().decode(new S().encode("test"), { stream: !0 }) === "test";
4042
+ } catch (l) {
4043
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + l);
4016
4044
  }
4017
4045
  return !1;
4018
4046
  };
4019
- (_ == null || B == null || !U()) && (_ = W);
4020
- var w = function() {
4047
+ (_ == null || S == null || !U()) && (_ = Z);
4048
+ var B = function() {
4021
4049
  };
4022
- function A(h) {
4023
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = w, this.onload = w, this.onerror = w, this.onreadystatechange = w, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = w;
4050
+ function C(l) {
4051
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = B, this.onload = B, this.onerror = B, this.onreadystatechange = B, this._contentType = "", this._xhr = l, this._sendTimeout = 0, this._abort = B;
4024
4052
  }
4025
- A.prototype.open = function(h, a) {
4053
+ C.prototype.open = function(l, y) {
4026
4054
  this._abort(!0);
4027
- var f = this, u = this._xhr, m = 1, y = 0;
4028
- this._abort = function(S) {
4029
- f._sendTimeout !== 0 && (i(f._sendTimeout), f._sendTimeout = 0), (m === 1 || m === 2 || m === 3) && (m = 4, u.onload = w, u.onerror = w, u.onabort = w, u.onprogress = w, u.onreadystatechange = w, u.abort(), y !== 0 && (i(y), y = 0), S || (f.readyState = 4, f.onabort(null), f.onreadystatechange())), m = 0;
4055
+ var s = this, h = this._xhr, m = 1, p = 0;
4056
+ this._abort = function(T) {
4057
+ s._sendTimeout !== 0 && (o(s._sendTimeout), s._sendTimeout = 0), (m === 1 || m === 2 || m === 3) && (m = 4, h.onload = B, h.onerror = B, h.onabort = B, h.onprogress = B, h.onreadystatechange = B, h.abort(), p !== 0 && (o(p), p = 0), T || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), m = 0;
4030
4058
  };
4031
- var E = function() {
4059
+ var x = function() {
4032
4060
  if (m === 1) {
4033
- var S = 0, N = "", me = void 0;
4034
- if ("contentType" in u)
4035
- S = 200, N = "OK", me = u.contentType;
4061
+ var T = 0, I = "", Q = void 0;
4062
+ if ("contentType" in h)
4063
+ T = 200, I = "OK", Q = h.contentType;
4036
4064
  else
4037
4065
  try {
4038
- S = u.status, N = u.statusText, me = u.getResponseHeader("Content-Type");
4066
+ T = h.status, I = h.statusText, Q = h.getResponseHeader("Content-Type");
4039
4067
  } catch {
4040
- S = 0, N = "", me = void 0;
4068
+ T = 0, I = "", Q = void 0;
4041
4069
  }
4042
- S !== 0 && (m = 2, f.readyState = 2, f.status = S, f.statusText = N, f._contentType = me, f.onreadystatechange());
4070
+ T !== 0 && (m = 2, s.readyState = 2, s.status = T, s.statusText = I, s._contentType = Q, s.onreadystatechange());
4043
4071
  }
4044
- }, x = function() {
4045
- if (E(), m === 2 || m === 3) {
4072
+ }, A = function() {
4073
+ if (x(), m === 2 || m === 3) {
4046
4074
  m = 3;
4047
- var S = "";
4075
+ var T = "";
4048
4076
  try {
4049
- S = u.responseText;
4077
+ T = h.responseText;
4050
4078
  } catch {
4051
4079
  }
4052
- f.readyState = 3, f.responseText = S, f.onprogress();
4080
+ s.readyState = 3, s.responseText = T, s.onprogress();
4053
4081
  }
4054
- }, T = function(S, N) {
4055
- if ((N == null || N.preventDefault == null) && (N = {
4056
- preventDefault: w
4057
- }), x(), m === 1 || m === 2 || m === 3) {
4058
- if (m = 4, y !== 0 && (i(y), y = 0), f.readyState = 4, S === "load")
4059
- f.onload(N);
4060
- else if (S === "error")
4061
- f.onerror(N);
4062
- else if (S === "abort")
4063
- f.onabort(N);
4082
+ }, v = function(T, I) {
4083
+ if ((I == null || I.preventDefault == null) && (I = {
4084
+ preventDefault: B
4085
+ }), A(), m === 1 || m === 2 || m === 3) {
4086
+ if (m = 4, p !== 0 && (o(p), p = 0), s.readyState = 4, T === "load")
4087
+ s.onload(I);
4088
+ else if (T === "error")
4089
+ s.onerror(I);
4090
+ else if (T === "abort")
4091
+ s.onabort(I);
4064
4092
  else
4065
4093
  throw new TypeError();
4066
- f.onreadystatechange();
4094
+ s.onreadystatechange();
4067
4095
  }
4068
- }, C = function(S) {
4069
- u != null && (u.readyState === 4 ? (!("onload" in u) || !("onerror" in u) || !("onabort" in u)) && T(u.responseText === "" ? "error" : "load", S) : u.readyState === 3 ? "onprogress" in u || x() : u.readyState === 2 && E());
4070
- }, R = function() {
4071
- y = r(function() {
4072
- R();
4073
- }, 500), u.readyState === 3 && x();
4096
+ }, w = function(T) {
4097
+ h != null && (h.readyState === 4 ? (!("onload" in h) || !("onerror" in h) || !("onabort" in h)) && v(h.responseText === "" ? "error" : "load", T) : h.readyState === 3 ? "onprogress" in h || A() : h.readyState === 2 && x());
4098
+ }, O = function() {
4099
+ p = r(function() {
4100
+ O();
4101
+ }, 500), h.readyState === 3 && A();
4074
4102
  };
4075
- "onload" in u && (u.onload = function(S) {
4076
- T("load", S);
4077
- }), "onerror" in u && (u.onerror = function(S) {
4078
- T("error", S);
4079
- }), "onabort" in u && (u.onabort = function(S) {
4080
- T("abort", S);
4081
- }), "onprogress" in u && (u.onprogress = x), "onreadystatechange" in u && (u.onreadystatechange = function(S) {
4082
- C(S);
4083
- }), ("contentType" in u || !("ontimeout" in o.prototype)) && (a += (a.indexOf("?") === -1 ? "?" : "&") + "padding=true"), u.open(h, a, !0), "readyState" in u && (y = r(function() {
4084
- R();
4103
+ "onload" in h && (h.onload = function(T) {
4104
+ v("load", T);
4105
+ }), "onerror" in h && (h.onerror = function(T) {
4106
+ v("error", T);
4107
+ }), "onabort" in h && (h.onabort = function(T) {
4108
+ v("abort", T);
4109
+ }), "onprogress" in h && (h.onprogress = A), "onreadystatechange" in h && (h.onreadystatechange = function(T) {
4110
+ w(T);
4111
+ }), ("contentType" in h || !("ontimeout" in i.prototype)) && (y += (y.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(l, y, !0), "readyState" in h && (p = r(function() {
4112
+ O();
4085
4113
  }, 0));
4086
- }, A.prototype.abort = function() {
4114
+ }, C.prototype.abort = function() {
4087
4115
  this._abort(!1);
4088
- }, A.prototype.getResponseHeader = function(h) {
4116
+ }, C.prototype.getResponseHeader = function(l) {
4089
4117
  return this._contentType;
4090
- }, A.prototype.setRequestHeader = function(h, a) {
4091
- var f = this._xhr;
4092
- "setRequestHeader" in f && f.setRequestHeader(h, a);
4093
- }, A.prototype.getAllResponseHeaders = function() {
4118
+ }, C.prototype.setRequestHeader = function(l, y) {
4119
+ var s = this._xhr;
4120
+ "setRequestHeader" in s && s.setRequestHeader(l, y);
4121
+ }, C.prototype.getAllResponseHeaders = function() {
4094
4122
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4095
- }, A.prototype.send = function() {
4096
- if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && c != null && c.readyState != null && c.readyState !== "complete") {
4097
- var h = this;
4098
- h._sendTimeout = r(function() {
4099
- h._sendTimeout = 0, h.send();
4123
+ }, C.prototype.send = function() {
4124
+ if ((!("ontimeout" in i.prototype) || !("sendAsBinary" in i.prototype) && !("mozAnon" in i.prototype)) && c != null && c.readyState != null && c.readyState !== "complete") {
4125
+ var l = this;
4126
+ l._sendTimeout = r(function() {
4127
+ l._sendTimeout = 0, l.send();
4100
4128
  }, 4);
4101
4129
  return;
4102
4130
  }
4103
- var a = this._xhr;
4104
- "withCredentials" in a && (a.withCredentials = this.withCredentials);
4131
+ var y = this._xhr;
4132
+ "withCredentials" in y && (y.withCredentials = this.withCredentials);
4105
4133
  try {
4106
- a.send(void 0);
4107
- } catch (f) {
4108
- throw f;
4134
+ y.send(void 0);
4135
+ } catch (s) {
4136
+ throw s;
4109
4137
  }
4110
4138
  };
4111
- function P(h) {
4112
- return h.replace(/[A-Z]/g, function(a) {
4113
- return String.fromCharCode(a.charCodeAt(0) + 32);
4139
+ function N(l) {
4140
+ return l.replace(/[A-Z]/g, function(y) {
4141
+ return String.fromCharCode(y.charCodeAt(0) + 32);
4114
4142
  });
4115
4143
  }
4116
- function L(h) {
4117
- for (var a = /* @__PURE__ */ Object.create(null), f = h.split(`\r
4118
- `), u = 0; u < f.length; u += 1) {
4119
- var m = f[u], y = m.split(": "), E = y.shift(), x = y.join(": ");
4120
- a[P(E)] = x;
4144
+ function M(l) {
4145
+ for (var y = /* @__PURE__ */ Object.create(null), s = l.split(`\r
4146
+ `), h = 0; h < s.length; h += 1) {
4147
+ var m = s[h], p = m.split(": "), x = p.shift(), A = p.join(": ");
4148
+ y[N(x)] = A;
4121
4149
  }
4122
- this._map = a;
4150
+ this._map = y;
4123
4151
  }
4124
- L.prototype.get = function(h) {
4125
- return this._map[P(h)];
4126
- }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4127
- function Y() {
4152
+ M.prototype.get = function(l) {
4153
+ return this._map[N(l)];
4154
+ }, i != null && i.HEADERS_RECEIVED == null && (i.HEADERS_RECEIVED = 2);
4155
+ function W() {
4128
4156
  }
4129
- Y.prototype.open = function(h, a, f, u, m, y, E) {
4130
- h.open("GET", m);
4131
- var x = 0;
4132
- h.onprogress = function() {
4133
- var C = h.responseText, R = C.slice(x);
4134
- x += R.length, f(R);
4135
- }, h.onerror = function(C) {
4136
- C.preventDefault(), u(new Error("NetworkError"));
4137
- }, h.onload = function() {
4138
- u(null);
4139
- }, h.onabort = function() {
4140
- u(null);
4141
- }, h.onreadystatechange = function() {
4142
- if (h.readyState === o.HEADERS_RECEIVED) {
4143
- var C = h.status, R = h.statusText, S = h.getResponseHeader("Content-Type"), N = h.getAllResponseHeaders();
4144
- a(C, R, S, new L(N));
4157
+ W.prototype.open = function(l, y, s, h, m, p, x) {
4158
+ l.open("GET", m);
4159
+ var A = 0;
4160
+ l.onprogress = function() {
4161
+ var w = l.responseText, O = w.slice(A);
4162
+ A += O.length, s(O);
4163
+ }, l.onerror = function(w) {
4164
+ w.preventDefault(), h(new Error("NetworkError"));
4165
+ }, l.onload = function() {
4166
+ h(null);
4167
+ }, l.onabort = function() {
4168
+ h(null);
4169
+ }, l.onreadystatechange = function() {
4170
+ if (l.readyState === i.HEADERS_RECEIVED) {
4171
+ var w = l.status, O = l.statusText, T = l.getResponseHeader("Content-Type"), I = l.getAllResponseHeaders();
4172
+ y(w, O, T, new M(I));
4145
4173
  }
4146
- }, h.withCredentials = y;
4147
- for (var T in E)
4148
- Object.prototype.hasOwnProperty.call(E, T) && h.setRequestHeader(T, E[T]);
4149
- return h.send(), h;
4174
+ }, l.withCredentials = p;
4175
+ for (var v in x)
4176
+ Object.prototype.hasOwnProperty.call(x, v) && l.setRequestHeader(v, x[v]);
4177
+ return l.send(), l;
4150
4178
  };
4151
- function xe(h) {
4152
- this._headers = h;
4179
+ function ve(l) {
4180
+ this._headers = l;
4153
4181
  }
4154
- xe.prototype.get = function(h) {
4155
- return this._headers.get(h);
4182
+ ve.prototype.get = function(l) {
4183
+ return this._headers.get(l);
4156
4184
  };
4157
- function de() {
4185
+ function Ee() {
4158
4186
  }
4159
- de.prototype.open = function(h, a, f, u, m, y, E) {
4160
- var x = null, T = new I(), C = T.signal, R = new _();
4187
+ Ee.prototype.open = function(l, y, s, h, m, p, x) {
4188
+ var A = null, v = new P(), w = v.signal, O = new _();
4161
4189
  return g(m, {
4162
- headers: E,
4163
- credentials: y ? "include" : "same-origin",
4164
- signal: C,
4190
+ headers: x,
4191
+ credentials: p ? "include" : "same-origin",
4192
+ signal: w,
4165
4193
  cache: "no-store"
4166
- }).then(function(S) {
4167
- return x = S.body.getReader(), a(S.status, S.statusText, S.headers.get("Content-Type"), new xe(S.headers)), new d(function(N, me) {
4168
- var qe = function() {
4169
- x.read().then(function(ee) {
4170
- if (ee.done)
4171
- N(void 0);
4194
+ }).then(function(T) {
4195
+ return A = T.body.getReader(), y(T.status, T.statusText, T.headers.get("Content-Type"), new ve(T.headers)), new f(function(I, Q) {
4196
+ var Je = function() {
4197
+ A.read().then(function(ne) {
4198
+ if (ne.done)
4199
+ I(void 0);
4172
4200
  else {
4173
- var Z = R.decode(ee.value, { stream: !0 });
4174
- f(Z), qe();
4201
+ var J = O.decode(ne.value, { stream: !0 });
4202
+ s(J), Je();
4175
4203
  }
4176
- }).catch(function(ee) {
4177
- me(ee);
4204
+ }).catch(function(ne) {
4205
+ Q(ne);
4178
4206
  });
4179
4207
  };
4180
- qe();
4208
+ Je();
4181
4209
  });
4182
- }).catch(function(S) {
4183
- if (S.name !== "AbortError")
4184
- return S;
4185
- }).then(function(S) {
4186
- u(S);
4210
+ }).catch(function(T) {
4211
+ if (T.name !== "AbortError")
4212
+ return T;
4213
+ }).then(function(T) {
4214
+ h(T);
4187
4215
  }), {
4188
4216
  abort: function() {
4189
- x?.cancel(), T.abort();
4217
+ A?.cancel(), v.abort();
4190
4218
  }
4191
4219
  };
4192
4220
  };
4193
- function re() {
4221
+ function ie() {
4194
4222
  this._listeners = /* @__PURE__ */ Object.create(null);
4195
4223
  }
4196
- function ae(h) {
4224
+ function de(l) {
4197
4225
  r(function() {
4198
- throw h;
4226
+ throw l;
4199
4227
  }, 0);
4200
4228
  }
4201
- re.prototype.dispatchEvent = function(h) {
4202
- h.target = this;
4203
- var a = this._listeners[h.type];
4204
- if (a != null)
4205
- for (var f = a.length, u = 0; u < f; u += 1) {
4206
- var m = a[u];
4229
+ ie.prototype.dispatchEvent = function(l) {
4230
+ l.target = this;
4231
+ var y = this._listeners[l.type];
4232
+ if (y != null)
4233
+ for (var s = y.length, h = 0; h < s; h += 1) {
4234
+ var m = y[h];
4207
4235
  try {
4208
- typeof m.handleEvent == "function" ? m.handleEvent(h) : m.call(this, h);
4209
- } catch (y) {
4210
- ae(y);
4236
+ typeof m.handleEvent == "function" ? m.handleEvent(l) : m.call(this, l);
4237
+ } catch (p) {
4238
+ de(p);
4211
4239
  }
4212
4240
  }
4213
- }, re.prototype.addEventListener = function(h, a) {
4214
- h = String(h);
4215
- var f = this._listeners, u = f[h];
4216
- u == null && (u = [], f[h] = u);
4217
- for (var m = !1, y = 0; y < u.length; y += 1)
4218
- u[y] === a && (m = !0);
4219
- m || u.push(a);
4220
- }, re.prototype.removeEventListener = function(h, a) {
4221
- h = String(h);
4222
- var f = this._listeners, u = f[h];
4223
- if (u != null) {
4224
- for (var m = [], y = 0; y < u.length; y += 1)
4225
- u[y] !== a && m.push(u[y]);
4226
- m.length === 0 ? delete f[h] : f[h] = m;
4241
+ }, ie.prototype.addEventListener = function(l, y) {
4242
+ l = String(l);
4243
+ var s = this._listeners, h = s[l];
4244
+ h == null && (h = [], s[l] = h);
4245
+ for (var m = !1, p = 0; p < h.length; p += 1)
4246
+ h[p] === y && (m = !0);
4247
+ m || h.push(y);
4248
+ }, ie.prototype.removeEventListener = function(l, y) {
4249
+ l = String(l);
4250
+ var s = this._listeners, h = s[l];
4251
+ if (h != null) {
4252
+ for (var m = [], p = 0; p < h.length; p += 1)
4253
+ h[p] !== y && m.push(h[p]);
4254
+ m.length === 0 ? delete s[l] : s[l] = m;
4227
4255
  }
4228
4256
  };
4229
- function ie(h) {
4230
- this.type = h, this.target = void 0;
4257
+ function q(l) {
4258
+ this.type = l, this.target = void 0;
4231
4259
  }
4232
- function v(h, a) {
4233
- ie.call(this, h), this.data = a.data, this.lastEventId = a.lastEventId;
4260
+ function xe(l, y) {
4261
+ q.call(this, l), this.data = y.data, this.lastEventId = y.lastEventId;
4234
4262
  }
4235
- v.prototype = Object.create(ie.prototype);
4236
- function pe(h, a) {
4237
- ie.call(this, h), this.status = a.status, this.statusText = a.statusText, this.headers = a.headers;
4263
+ xe.prototype = Object.create(q.prototype);
4264
+ function E(l, y) {
4265
+ q.call(this, l), this.status = y.status, this.statusText = y.statusText, this.headers = y.headers;
4238
4266
  }
4239
- pe.prototype = Object.create(ie.prototype);
4240
- function rt(h, a) {
4241
- ie.call(this, h), this.error = a.error;
4267
+ E.prototype = Object.create(q.prototype);
4268
+ function _e(l, y) {
4269
+ q.call(this, l), this.error = y.error;
4242
4270
  }
4243
- rt.prototype = Object.create(ie.prototype);
4244
- var Xe = -1, he = 0, _e = 1, Se = 2, we = -1, se = 0, ze = 1, Oe = 2, it = 3, Tt = /^text\/event\-stream(;.*)?$/i, ot = 1e3, Bt = 18e6, We = function(h, a) {
4245
- var f = h == null ? a : parseInt(h, 10);
4246
- return f !== f && (f = a), Ze(f);
4247
- }, Ze = function(h) {
4248
- return Math.min(Math.max(h, ot), Bt);
4249
- }, Te = function(h, a, f) {
4271
+ _e.prototype = Object.create(q.prototype);
4272
+ var ze = -1, he = 0, Te = 1, we = 2, We = -1, ae = 0, Oe = 1, it = 2, Ze = 3, at = /^text\/event\-stream(;.*)?$/i, wt = 1e3, st = 18e6, qe = function(l, y) {
4273
+ var s = l == null ? y : parseInt(l, 10);
4274
+ return s !== s && (s = y), Qe(s);
4275
+ }, Qe = function(l) {
4276
+ return Math.min(Math.max(l, wt), st);
4277
+ }, Se = function(l, y, s) {
4250
4278
  try {
4251
- typeof a == "function" && a.call(h, f);
4252
- } catch (u) {
4253
- ae(u);
4279
+ typeof y == "function" && y.call(l, s);
4280
+ } catch (h) {
4281
+ de(h);
4254
4282
  }
4255
4283
  };
4256
- function K(h, a) {
4257
- re.call(this), a = a || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, At(this, h, a);
4284
+ function te(l, y) {
4285
+ ie.call(this), y = y || {}, 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, l, y);
4258
4286
  }
4259
- function St() {
4260
- return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
4287
+ function ut() {
4288
+ return i != null && "withCredentials" in i.prototype || u == null ? new i() : new u();
4261
4289
  }
4262
- var wt = g != null && b != null && "body" in b.prototype;
4263
- function At(h, a, f) {
4264
- a = String(a);
4265
- var u = !!f.withCredentials, m = f.lastEventIdQueryParameterName || "lastEventId", y = Ze(1e3), E = We(f.heartbeatTimeout, 45e3), x = "", T = y, C = !1, R = 0, S = f.headers || {}, N = f.Transport, me = wt && N == null ? void 0 : new A(N != null ? new N() : St()), qe = N != null && typeof N != "string" ? new N() : me == null ? new de() : new Y(), ee = void 0, Z = 0, ue = Xe, Le = "", st = "", ge = "", ut = "", q = se, Ct = 0, Ae = 0, Kn = function(V, k, te, ne) {
4290
+ var At = g != null && b != null && "body" in b.prototype;
4291
+ function Ct(l, y, s) {
4292
+ y = String(y);
4293
+ var h = !!s.withCredentials, m = s.lastEventIdQueryParameterName || "lastEventId", p = Qe(1e3), x = qe(s.heartbeatTimeout, 45e3), A = "", v = p, w = !1, O = 0, T = s.headers || {}, I = s.Transport, Q = At && I == null ? void 0 : new C(I != null ? new I() : ut()), Je = I != null && typeof I != "string" ? new I() : Q == null ? new Ee() : new W(), ne = void 0, J = 0, ue = ze, Le = "", ht = "", pe = "", ct = "", Y = ae, Ht = 0, Ae = 0, er = function(V, k, re, oe) {
4266
4294
  if (ue === he)
4267
- if (V === 200 && te != null && Tt.test(te)) {
4268
- ue = _e, C = Date.now(), T = y, h.readyState = _e;
4269
- var Q = new pe("open", {
4295
+ if (V === 200 && re != null && at.test(re)) {
4296
+ ue = Te, w = Date.now(), v = p, l.readyState = Te;
4297
+ var K = new E("open", {
4270
4298
  status: V,
4271
4299
  statusText: k,
4272
- headers: ne
4300
+ headers: oe
4273
4301
  });
4274
- h.dispatchEvent(Q), Te(h, h.onopen, Q);
4302
+ l.dispatchEvent(K), Se(l, l.onopen, K);
4275
4303
  } else {
4276
4304
  var X = "";
4277
- V !== 200 ? (k && (k = k.replace(/\s+/g, " ")), X = "EventSource's response has a status " + V + " " + k + " that is not 200. Aborting the connection.") : X = "EventSource's response has a Content-Type specifying an unsupported type: " + (te == null ? "-" : te.replace(/\s+/g, " ")) + ". Aborting the connection.", Ht();
4278
- var Q = new pe("error", {
4305
+ V !== 200 ? (k && (k = k.replace(/\s+/g, " ")), X = "EventSource's response has a status " + V + " " + k + " that is not 200. Aborting the connection.") : X = "EventSource's response has a Content-Type specifying an unsupported type: " + (re == null ? "-" : re.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
4306
+ var K = new E("error", {
4279
4307
  status: V,
4280
4308
  statusText: k,
4281
- headers: ne
4309
+ headers: oe
4282
4310
  });
4283
- h.dispatchEvent(Q), Te(h, h.onerror, Q), console.error(X);
4311
+ l.dispatchEvent(K), Se(l, l.onerror, K), console.error(X);
4284
4312
  }
4285
- }, er = function(V) {
4286
- if (ue === _e) {
4287
- for (var k = -1, te = 0; te < V.length; te += 1) {
4288
- var ne = V.charCodeAt(te);
4289
- (ne === 10 || ne === 13) && (k = te);
4313
+ }, tr = function(V) {
4314
+ if (ue === Te) {
4315
+ for (var k = -1, re = 0; re < V.length; re += 1) {
4316
+ var oe = V.charCodeAt(re);
4317
+ (oe === 10 || oe === 13) && (k = re);
4290
4318
  }
4291
- var Q = (k !== -1 ? ut : "") + V.slice(0, k + 1);
4292
- ut = (k === -1 ? ut : "") + V.slice(k + 1), V !== "" && (C = Date.now(), R += V.length);
4293
- for (var X = 0; X < Q.length; X += 1) {
4294
- var ne = Q.charCodeAt(X);
4295
- if (q === we && ne === 10)
4296
- q = se;
4297
- else if (q === we && (q = se), ne === 13 || ne === 10) {
4298
- if (q !== se) {
4299
- q === ze && (Ae = X + 1);
4300
- var be = Q.slice(Ct, Ae - 1), ye = Q.slice(Ae + (Ae < X && Q.charCodeAt(Ae) === 32 ? 1 : 0), X);
4301
- be === "data" ? (Le += `
4302
- `, Le += ye) : be === "id" ? st = ye : be === "event" ? ge = ye : be === "retry" ? (y = We(ye, y), T = y) : be === "heartbeatTimeout" && (E = We(ye, E), Z !== 0 && (i(Z), Z = r(function() {
4303
- Qe();
4304
- }, E)));
4319
+ var K = (k !== -1 ? ct : "") + V.slice(0, k + 1);
4320
+ ct = (k === -1 ? ct : "") + V.slice(k + 1), V !== "" && (w = Date.now(), O += V.length);
4321
+ for (var X = 0; X < K.length; X += 1) {
4322
+ var oe = K.charCodeAt(X);
4323
+ if (Y === We && oe === 10)
4324
+ Y = ae;
4325
+ else if (Y === We && (Y = ae), oe === 13 || oe === 10) {
4326
+ if (Y !== ae) {
4327
+ Y === Oe && (Ae = X + 1);
4328
+ var me = K.slice(Ht, Ae - 1), ge = K.slice(Ae + (Ae < X && K.charCodeAt(Ae) === 32 ? 1 : 0), X);
4329
+ me === "data" ? (Le += `
4330
+ `, Le += ge) : me === "id" ? ht = ge : me === "event" ? pe = ge : me === "retry" ? (p = qe(ge, p), v = p) : me === "heartbeatTimeout" && (x = qe(ge, x), J !== 0 && (o(J), J = r(function() {
4331
+ Ye();
4332
+ }, x)));
4305
4333
  }
4306
- if (q === se) {
4334
+ if (Y === ae) {
4307
4335
  if (Le !== "") {
4308
- x = st, ge === "" && (ge = "message");
4309
- var Re = new v(ge, {
4336
+ A = ht, pe === "" && (pe = "message");
4337
+ var Re = new xe(pe, {
4310
4338
  data: Le.slice(1),
4311
- lastEventId: st
4339
+ lastEventId: ht
4312
4340
  });
4313
- if (h.dispatchEvent(Re), ge === "open" ? Te(h, h.onopen, Re) : ge === "message" ? Te(h, h.onmessage, Re) : ge === "error" && Te(h, h.onerror, Re), ue === Se)
4341
+ if (l.dispatchEvent(Re), pe === "open" ? Se(l, l.onopen, Re) : pe === "message" ? Se(l, l.onmessage, Re) : pe === "error" && Se(l, l.onerror, Re), ue === we)
4314
4342
  return;
4315
4343
  }
4316
- Le = "", ge = "";
4344
+ Le = "", pe = "";
4317
4345
  }
4318
- q = ne === 13 ? we : se;
4346
+ Y = oe === 13 ? We : ae;
4319
4347
  } else
4320
- q === se && (Ct = X, q = ze), q === ze ? ne === 58 && (Ae = X + 1, q = Oe) : q === Oe && (q = it);
4348
+ Y === ae && (Ht = X, Y = Oe), Y === Oe ? oe === 58 && (Ae = X + 1, Y = it) : Y === it && (Y = Ze);
4321
4349
  }
4322
4350
  }
4323
- }, Kt = function(V) {
4324
- if (ue === _e || ue === he) {
4325
- ue = Xe, Z !== 0 && (i(Z), Z = 0), Z = r(function() {
4326
- Qe();
4327
- }, T), T = Ze(Math.min(y * 16, T * 2)), h.readyState = he;
4328
- var k = new rt("error", { error: V });
4329
- h.dispatchEvent(k), Te(h, h.onerror, k), V != null && console.error(V);
4351
+ }, en = function(V) {
4352
+ if (ue === Te || ue === he) {
4353
+ ue = ze, J !== 0 && (o(J), J = 0), J = r(function() {
4354
+ Ye();
4355
+ }, v), v = Qe(Math.min(p * 16, v * 2)), l.readyState = he;
4356
+ var k = new _e("error", { error: V });
4357
+ l.dispatchEvent(k), Se(l, l.onerror, k), V != null && console.error(V);
4330
4358
  }
4331
- }, Ht = function() {
4332
- ue = Se, ee != null && (ee.abort(), ee = void 0), Z !== 0 && (i(Z), Z = 0), h.readyState = Se;
4333
- }, Qe = function() {
4334
- if (Z = 0, ue !== Xe) {
4335
- if (!C && ee != null)
4336
- Kt(new Error("No activity within " + E + " milliseconds. " + (ue === he ? "No response received." : R + " chars received.") + " Reconnecting.")), ee != null && (ee.abort(), ee = void 0);
4359
+ }, Ot = function() {
4360
+ ue = we, ne != null && (ne.abort(), ne = void 0), J !== 0 && (o(J), J = 0), l.readyState = we;
4361
+ }, Ye = function() {
4362
+ if (J = 0, ue !== ze) {
4363
+ if (!w && ne != null)
4364
+ en(new Error("No activity within " + x + " milliseconds. " + (ue === he ? "No response received." : O + " chars received.") + " Reconnecting.")), ne != null && (ne.abort(), ne = void 0);
4337
4365
  else {
4338
- var V = Math.max((C || Date.now()) + E - Date.now(), 1);
4339
- C = !1, Z = r(function() {
4340
- Qe();
4366
+ var V = Math.max((w || Date.now()) + x - Date.now(), 1);
4367
+ w = !1, J = r(function() {
4368
+ Ye();
4341
4369
  }, V);
4342
4370
  }
4343
4371
  return;
4344
4372
  }
4345
- C = !1, R = 0, Z = r(function() {
4346
- Qe();
4347
- }, E), ue = he, Le = "", ge = "", st = x, ut = "", Ct = 0, Ae = 0, q = se;
4348
- var k = a;
4349
- if (a.slice(0, 5) !== "data:" && a.slice(0, 5) !== "blob:" && x !== "") {
4350
- var te = a.indexOf("?");
4351
- k = te === -1 ? a : a.slice(0, te + 1) + a.slice(te + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ye, Re) {
4352
- return Re === m ? "" : ye;
4353
- }), k += (a.indexOf("?") === -1 ? "?" : "&") + m + "=" + encodeURIComponent(x);
4373
+ w = !1, O = 0, J = r(function() {
4374
+ Ye();
4375
+ }, x), ue = he, Le = "", pe = "", ht = A, ct = "", Ht = 0, Ae = 0, Y = ae;
4376
+ var k = y;
4377
+ if (y.slice(0, 5) !== "data:" && y.slice(0, 5) !== "blob:" && A !== "") {
4378
+ var re = y.indexOf("?");
4379
+ k = re === -1 ? y : y.slice(0, re + 1) + y.slice(re + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ge, Re) {
4380
+ return Re === m ? "" : ge;
4381
+ }), k += (y.indexOf("?") === -1 ? "?" : "&") + m + "=" + encodeURIComponent(A);
4354
4382
  }
4355
- var ne = h.withCredentials, Q = {};
4356
- Q.Accept = "text/event-stream";
4357
- var X = h.headers;
4383
+ var oe = l.withCredentials, K = {};
4384
+ K.Accept = "text/event-stream";
4385
+ var X = l.headers;
4358
4386
  if (X != null)
4359
- for (var be in X)
4360
- Object.prototype.hasOwnProperty.call(X, be) && (Q[be] = X[be]);
4387
+ for (var me in X)
4388
+ Object.prototype.hasOwnProperty.call(X, me) && (K[me] = X[me]);
4361
4389
  try {
4362
- ee = qe.open(me, Kn, er, Kt, k, ne, Q);
4363
- } catch (ye) {
4364
- throw Ht(), ye;
4390
+ ne = Je.open(Q, er, tr, en, k, oe, K);
4391
+ } catch (ge) {
4392
+ throw Ot(), ge;
4365
4393
  }
4366
4394
  };
4367
- h.url = a, h.readyState = he, h.withCredentials = u, h.headers = S, h._close = Ht, Qe();
4395
+ l.url = y, l.readyState = he, l.withCredentials = h, l.headers = T, l._close = Ot, Ye();
4368
4396
  }
4369
- K.prototype = Object.create(re.prototype), K.prototype.CONNECTING = he, K.prototype.OPEN = _e, K.prototype.CLOSED = Se, K.prototype.close = function() {
4397
+ te.prototype = Object.create(ie.prototype), te.prototype.CONNECTING = he, te.prototype.OPEN = Te, te.prototype.CLOSED = we, te.prototype.close = function() {
4370
4398
  this._close();
4371
- }, K.CONNECTING = he, K.OPEN = _e, K.CLOSED = Se, K.prototype.withCredentials = void 0;
4372
- var at = p;
4373
- o != null && (p == null || !("withCredentials" in p.prototype)) && (at = K), function(h) {
4399
+ }, te.CONNECTING = he, te.OPEN = Te, te.CLOSED = we, te.prototype.withCredentials = void 0;
4400
+ var lt = d;
4401
+ i != null && (d == null || !("withCredentials" in d.prototype)) && (lt = te), function(l) {
4374
4402
  {
4375
- var a = h(t);
4376
- a !== void 0 && (e.exports = a);
4403
+ var y = l(t);
4404
+ y !== void 0 && (e.exports = y);
4377
4405
  }
4378
- }(function(h) {
4379
- h.EventSourcePolyfill = K, h.NativeEventSource = p, h.EventSource = at;
4406
+ }(function(l) {
4407
+ l.EventSourcePolyfill = te, l.NativeEventSource = d, l.EventSource = lt;
4380
4408
  });
4381
- })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Cr : globalThis);
4382
- })(qt, qt.exports);
4383
- var yo = qt.exports;
4384
- function vo(e) {
4385
- rr(e, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.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;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
4409
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Lr : globalThis);
4410
+ })(Qt, Qt.exports);
4411
+ var xi = Qt.exports;
4412
+ function _i(e) {
4413
+ or(e, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.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;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
4386
4414
  }
4387
- function yn(e, t, n) {
4415
+ function vn(e, t, n) {
4388
4416
  const r = e.slice();
4389
4417
  return r[51] = t[n], r;
4390
4418
  }
4391
- function vn(e, t, n) {
4419
+ function En(e, t, n) {
4392
4420
  const r = e.slice();
4393
4421
  return r[54] = t[n], r;
4394
4422
  }
4395
- function Eo(e) {
4423
+ function Ti(e) {
4396
4424
  let t, n = (
4397
4425
  /*balances*/
4398
4426
  (e[3].Total ? (
@@ -4402,21 +4430,21 @@ function Eo(e) {
4402
4430
  e[3].Total[0].amount
4403
4431
  )
4404
4432
  ) : "0") + ""
4405
- ), r, i, o, l, s, p, c, d = (
4433
+ ), r, o, i, u, a, d, c, f = (
4406
4434
  /*isModalDisplayed*/
4407
- e[2] && En(e)
4435
+ e[2] && xn(e)
4408
4436
  );
4409
4437
  return {
4410
4438
  c() {
4411
- t = G("button"), r = ve(n), i = Ee(), o = G("span"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', l = Ee(), d && d.c(), s = ar(), z(t, "class", "BalanceValue");
4439
+ t = G("button"), r = be(n), o = ye(), i = G("span"), i.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', u = ye(), f && f.c(), a = sr(), z(t, "class", "BalanceValue");
4412
4440
  },
4413
4441
  m(g, b) {
4414
- fe(g, t, b), M(t, r), M(t, i), M(t, o), fe(g, l, b), d && d.m(g, b), fe(g, s, b), p || (c = dt(
4442
+ fe(g, t, b), R(t, r), R(t, o), R(t, i), fe(g, u, b), f && f.m(g, b), fe(g, a, b), d || (c = gt(
4415
4443
  t,
4416
4444
  "click",
4417
4445
  /*click_handler*/
4418
4446
  e[25]
4419
- ), p = !0);
4447
+ ), d = !0);
4420
4448
  },
4421
4449
  p(g, b) {
4422
4450
  b[0] & /*balances*/
@@ -4428,67 +4456,67 @@ function Eo(e) {
4428
4456
  g[3].Total[0].amount
4429
4457
  )
4430
4458
  ) : "0") + "") && Ce(r, n), /*isModalDisplayed*/
4431
- g[2] ? d ? d.p(g, b) : (d = En(g), d.c(), d.m(s.parentNode, s)) : d && (d.d(1), d = null);
4459
+ g[2] ? f ? f.p(g, b) : (f = xn(g), f.c(), f.m(a.parentNode, a)) : f && (f.d(1), f = null);
4432
4460
  },
4433
4461
  d(g) {
4434
- g && (le(t), le(l), le(s)), d && d.d(g), p = !1, c();
4462
+ g && (le(t), le(u), le(a)), f && f.d(g), d = !1, c();
4435
4463
  }
4436
4464
  };
4437
4465
  }
4438
- function xo(e) {
4466
+ function Si(e) {
4439
4467
  let t, n = (
4440
4468
  /*$_*/
4441
4469
  e[4]("Loading") + ""
4442
4470
  ), r;
4443
4471
  return {
4444
4472
  c() {
4445
- t = G("p"), r = ve(n);
4473
+ t = G("p"), r = be(n);
4446
4474
  },
4447
- m(i, o) {
4448
- fe(i, t, o), M(t, r);
4475
+ m(o, i) {
4476
+ fe(o, t, i), R(t, r);
4449
4477
  },
4450
- p(i, o) {
4451
- o[0] & /*$_*/
4478
+ p(o, i) {
4479
+ i[0] & /*$_*/
4452
4480
  16 && n !== (n = /*$_*/
4453
- i[4]("Loading") + "") && Ce(r, n);
4481
+ o[4]("Loading") + "") && Ce(r, n);
4454
4482
  },
4455
- d(i) {
4456
- i && le(t);
4483
+ d(o) {
4484
+ o && le(t);
4457
4485
  }
4458
4486
  };
4459
4487
  }
4460
- function En(e) {
4461
- let t, n, r, i, o, l, s = (
4488
+ function xn(e) {
4489
+ let t, n, r, o, i, u, a = (
4462
4490
  /*$_*/
4463
4491
  e[4]("Title") + ""
4464
- ), p, c, d, g, b, _, B = (
4492
+ ), d, c, f, g, b, _, S = (
4465
4493
  /*$_*/
4466
4494
  e[4]("DepositButton") + ""
4467
- ), I, j, W, U = pt(Object.keys(
4495
+ ), P, j, Z, U = bt(Object.keys(
4468
4496
  /*balances*/
4469
4497
  e[3]
4470
- )), w = [];
4471
- for (let A = 0; A < U.length; A += 1)
4472
- w[A] = _n(yn(e, U, A));
4498
+ )), B = [];
4499
+ for (let C = 0; C < U.length; C += 1)
4500
+ B[C] = Tn(vn(e, U, C));
4473
4501
  return {
4474
4502
  c() {
4475
- t = G("div"), n = G("button"), r = Ee(), i = G("div"), o = G("div"), l = G("p"), p = ve(s), c = Ee(), d = G("div");
4476
- for (let A = 0; A < w.length; A += 1)
4477
- w[A].c();
4478
- g = Ee(), b = G("div"), _ = G("button"), I = ve(B), z(n, "class", "BalanceModalClose"), z(l, "class", "BalanceModalTitle"), z(o, "class", "BalanceModalHeader"), z(d, "class", "BalanceModalBody"), z(_, "class", "BalanceModalAction"), z(b, "class", "BalanceModalFooter"), z(i, "class", "BalanceModal"), z(t, "class", "BalanceModalWrapper");
4503
+ t = G("div"), n = G("button"), r = ye(), o = G("div"), i = G("div"), u = G("p"), d = be(a), c = ye(), f = G("div");
4504
+ for (let C = 0; C < B.length; C += 1)
4505
+ B[C].c();
4506
+ g = ye(), b = G("div"), _ = G("button"), P = be(S), z(n, "class", "BalanceModalClose"), z(u, "class", "BalanceModalTitle"), z(i, "class", "BalanceModalHeader"), z(f, "class", "BalanceModalBody"), z(_, "class", "BalanceModalAction"), z(b, "class", "BalanceModalFooter"), z(o, "class", "BalanceModal"), z(t, "class", "BalanceModalWrapper");
4479
4507
  },
4480
- m(A, P) {
4481
- fe(A, t, P), M(t, n), M(t, r), M(t, i), M(i, o), M(o, l), M(l, p), M(i, c), M(i, d);
4482
- for (let L = 0; L < w.length; L += 1)
4483
- w[L] && w[L].m(d, null);
4484
- M(i, g), M(i, b), M(b, _), M(_, I), j || (W = [
4485
- dt(
4508
+ m(C, N) {
4509
+ fe(C, t, N), R(t, n), R(t, r), R(t, o), R(o, i), R(i, u), R(u, d), R(o, c), R(o, f);
4510
+ for (let M = 0; M < B.length; M += 1)
4511
+ B[M] && B[M].m(f, null);
4512
+ R(o, g), R(o, b), R(b, _), R(_, P), j || (Z = [
4513
+ gt(
4486
4514
  n,
4487
4515
  "click",
4488
4516
  /*click_handler_1*/
4489
4517
  e[26]
4490
4518
  ),
4491
- dt(
4519
+ gt(
4492
4520
  _,
4493
4521
  "click",
4494
4522
  /*click_handler_2*/
@@ -4496,47 +4524,47 @@ function En(e) {
4496
4524
  )
4497
4525
  ], j = !0);
4498
4526
  },
4499
- p(A, P) {
4500
- if (P[0] & /*$_*/
4501
- 16 && s !== (s = /*$_*/
4502
- A[4]("Title") + "") && Ce(p, s), P[0] & /*balances, formatBalance, getProductType, $_*/
4527
+ p(C, N) {
4528
+ if (N[0] & /*$_*/
4529
+ 16 && a !== (a = /*$_*/
4530
+ C[4]("Title") + "") && Ce(d, a), N[0] & /*balances, formatBalance, getProductType, $_*/
4503
4531
  184) {
4504
- U = pt(Object.keys(
4532
+ U = bt(Object.keys(
4505
4533
  /*balances*/
4506
- A[3]
4534
+ C[3]
4507
4535
  ));
4508
- let L;
4509
- for (L = 0; L < U.length; L += 1) {
4510
- const Y = yn(A, U, L);
4511
- w[L] ? w[L].p(Y, P) : (w[L] = _n(Y), w[L].c(), w[L].m(d, null));
4536
+ let M;
4537
+ for (M = 0; M < U.length; M += 1) {
4538
+ const W = vn(C, U, M);
4539
+ B[M] ? B[M].p(W, N) : (B[M] = Tn(W), B[M].c(), B[M].m(f, null));
4512
4540
  }
4513
- for (; L < w.length; L += 1)
4514
- w[L].d(1);
4515
- w.length = U.length;
4541
+ for (; M < B.length; M += 1)
4542
+ B[M].d(1);
4543
+ B.length = U.length;
4516
4544
  }
4517
- P[0] & /*$_*/
4518
- 16 && B !== (B = /*$_*/
4519
- A[4]("DepositButton") + "") && Ce(I, B);
4545
+ N[0] & /*$_*/
4546
+ 16 && S !== (S = /*$_*/
4547
+ C[4]("DepositButton") + "") && Ce(P, S);
4520
4548
  },
4521
- d(A) {
4522
- A && le(t), An(w, A), j = !1, je(W);
4549
+ d(C) {
4550
+ C && le(t), Cn(B, C), j = !1, ke(Z);
4523
4551
  }
4524
4552
  };
4525
4553
  }
4526
- function xn(e) {
4554
+ function _n(e) {
4527
4555
  let t, n, r = (
4528
4556
  /*$_*/
4529
4557
  e[4](
4530
4558
  /*k*/
4531
4559
  e[51]
4532
4560
  ) + ""
4533
- ), i, o, l = (
4561
+ ), o, i, u = (
4534
4562
  /*getProductType*/
4535
4563
  e[7](
4536
4564
  /*balance*/
4537
4565
  e[54]
4538
4566
  ) + ""
4539
- ), s, p, c, d, g = (
4567
+ ), a, d, c, f, g = (
4540
4568
  /*formatBalance*/
4541
4569
  e[5](
4542
4570
  /*balance*/
@@ -4545,23 +4573,23 @@ function xn(e) {
4545
4573
  ), b;
4546
4574
  return {
4547
4575
  c() {
4548
- t = G("div"), n = G("p"), i = ve(r), o = Ee(), s = ve(l), p = Ee(), c = G("p"), d = G("span"), b = ve(g), z(n, "class", "BalanceModalText"), z(d, "class", "BalanceModalAmount"), z(c, "class", "BalanceModalValue"), z(t, "class", "BalanceModalRowLine");
4576
+ t = G("div"), n = G("p"), o = be(r), i = ye(), a = be(u), d = ye(), c = G("p"), f = G("span"), b = be(g), z(n, "class", "BalanceModalText"), z(f, "class", "BalanceModalAmount"), z(c, "class", "BalanceModalValue"), z(t, "class", "BalanceModalRowLine");
4549
4577
  },
4550
- m(_, B) {
4551
- fe(_, t, B), M(t, n), M(n, i), M(n, o), M(n, s), M(t, p), M(t, c), M(c, d), M(d, b);
4578
+ m(_, S) {
4579
+ fe(_, t, S), R(t, n), R(n, o), R(n, i), R(n, a), R(t, d), R(t, c), R(c, f), R(f, b);
4552
4580
  },
4553
- p(_, B) {
4554
- B[0] & /*$_, balances*/
4581
+ p(_, S) {
4582
+ S[0] & /*$_, balances*/
4555
4583
  24 && r !== (r = /*$_*/
4556
4584
  _[4](
4557
4585
  /*k*/
4558
4586
  _[51]
4559
- ) + "") && Ce(i, r), B[0] & /*balances*/
4560
- 8 && l !== (l = /*getProductType*/
4587
+ ) + "") && Ce(o, r), S[0] & /*balances*/
4588
+ 8 && u !== (u = /*getProductType*/
4561
4589
  _[7](
4562
4590
  /*balance*/
4563
4591
  _[54]
4564
- ) + "") && Ce(s, l), B[0] & /*balances*/
4592
+ ) + "") && Ce(a, u), S[0] & /*balances*/
4565
4593
  8 && g !== (g = /*formatBalance*/
4566
4594
  _[5](
4567
4595
  /*balance*/
@@ -4573,213 +4601,213 @@ function xn(e) {
4573
4601
  }
4574
4602
  };
4575
4603
  }
4576
- function _n(e) {
4577
- let t, n, r = pt(
4604
+ function Tn(e) {
4605
+ let t, n, r = bt(
4578
4606
  /*balances*/
4579
4607
  e[3][
4580
4608
  /*k*/
4581
4609
  e[51]
4582
4610
  ]
4583
- ), i = [];
4584
- for (let o = 0; o < r.length; o += 1)
4585
- i[o] = xn(vn(e, r, o));
4611
+ ), o = [];
4612
+ for (let i = 0; i < r.length; i += 1)
4613
+ o[i] = _n(En(e, r, i));
4586
4614
  return {
4587
4615
  c() {
4588
4616
  t = G("div");
4589
- for (let o = 0; o < i.length; o += 1)
4590
- i[o].c();
4591
- n = Ee(), z(t, "class", "BalanceModalRowBoth");
4617
+ for (let i = 0; i < o.length; i += 1)
4618
+ o[i].c();
4619
+ n = ye(), z(t, "class", "BalanceModalRowBoth");
4592
4620
  },
4593
- m(o, l) {
4594
- fe(o, t, l);
4595
- for (let s = 0; s < i.length; s += 1)
4596
- i[s] && i[s].m(t, null);
4597
- M(t, n);
4621
+ m(i, u) {
4622
+ fe(i, t, u);
4623
+ for (let a = 0; a < o.length; a += 1)
4624
+ o[a] && o[a].m(t, null);
4625
+ R(t, n);
4598
4626
  },
4599
- p(o, l) {
4600
- if (l[0] & /*formatBalance, balances, getProductType, $_*/
4627
+ p(i, u) {
4628
+ if (u[0] & /*formatBalance, balances, getProductType, $_*/
4601
4629
  184) {
4602
- r = pt(
4630
+ r = bt(
4603
4631
  /*balances*/
4604
- o[3][
4632
+ i[3][
4605
4633
  /*k*/
4606
- o[51]
4634
+ i[51]
4607
4635
  ]
4608
4636
  );
4609
- let s;
4610
- for (s = 0; s < r.length; s += 1) {
4611
- const p = vn(o, r, s);
4612
- i[s] ? i[s].p(p, l) : (i[s] = xn(p), i[s].c(), i[s].m(t, n));
4637
+ let a;
4638
+ for (a = 0; a < r.length; a += 1) {
4639
+ const d = En(i, r, a);
4640
+ o[a] ? o[a].p(d, u) : (o[a] = _n(d), o[a].c(), o[a].m(t, n));
4613
4641
  }
4614
- for (; s < i.length; s += 1)
4615
- i[s].d(1);
4616
- i.length = r.length;
4642
+ for (; a < o.length; a += 1)
4643
+ o[a].d(1);
4644
+ o.length = r.length;
4617
4645
  }
4618
4646
  },
4619
- d(o) {
4620
- o && le(t), An(i, o);
4647
+ d(i) {
4648
+ i && le(t), Cn(o, i);
4621
4649
  }
4622
4650
  };
4623
4651
  }
4624
- function Tn(e) {
4652
+ function Sn(e) {
4625
4653
  let t, n, r;
4626
4654
  return {
4627
4655
  c() {
4628
4656
  t = G("button"), z(t, "class", "ShowBalanceModalOverlay");
4629
4657
  },
4630
- m(i, o) {
4631
- fe(i, t, o), n || (r = dt(
4658
+ m(o, i) {
4659
+ fe(o, t, i), n || (r = gt(
4632
4660
  t,
4633
4661
  "click",
4634
4662
  /*click_handler_3*/
4635
4663
  e[28]
4636
4664
  ), n = !0);
4637
4665
  },
4638
- p: oe,
4639
- d(i) {
4640
- i && le(t), n = !1, r();
4666
+ p: se,
4667
+ d(o) {
4668
+ o && le(t), n = !1, r();
4641
4669
  }
4642
4670
  };
4643
4671
  }
4644
- function _o(e) {
4672
+ function Bi(e) {
4645
4673
  let t, n, r;
4646
- function i(p, c) {
4674
+ function o(d, c) {
4647
4675
  return (
4648
4676
  /*isLoading*/
4649
- p[1] ? xo : Eo
4677
+ d[1] ? Si : Ti
4650
4678
  );
4651
4679
  }
4652
- let o = i(e), l = o(e), s = (
4680
+ let i = o(e), u = i(e), a = (
4653
4681
  /*isModalDisplayed*/
4654
- e[2] && Tn(e)
4682
+ e[2] && Sn(e)
4655
4683
  );
4656
4684
  return {
4657
4685
  c() {
4658
- t = G("div"), n = G("div"), l.c(), r = Ee(), s && s.c(), z(n, "class", "ShowBalance");
4686
+ t = G("div"), n = G("div"), u.c(), r = ye(), a && a.c(), z(n, "class", "ShowBalance");
4659
4687
  },
4660
- m(p, c) {
4661
- fe(p, t, c), M(t, n), l.m(n, null), M(t, r), s && s.m(t, null), e[29](t);
4688
+ m(d, c) {
4689
+ fe(d, t, c), R(t, n), u.m(n, null), R(t, r), a && a.m(t, null), e[29](t);
4662
4690
  },
4663
- p(p, c) {
4664
- o === (o = i(p)) && l ? l.p(p, c) : (l.d(1), l = o(p), l && (l.c(), l.m(n, null))), /*isModalDisplayed*/
4665
- p[2] ? s ? s.p(p, c) : (s = Tn(p), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
4691
+ p(d, c) {
4692
+ i === (i = o(d)) && u ? u.p(d, c) : (u.d(1), u = i(d), u && (u.c(), u.m(n, null))), /*isModalDisplayed*/
4693
+ d[2] ? a ? a.p(d, c) : (a = Sn(d), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
4666
4694
  },
4667
- i: oe,
4668
- o: oe,
4669
- d(p) {
4670
- p && le(t), l.d(), s && s.d(), e[29](null);
4695
+ i: se,
4696
+ o: se,
4697
+ d(d) {
4698
+ d && le(t), u.d(), a && a.d(), e[29](null);
4671
4699
  }
4672
4700
  };
4673
4701
  }
4674
- function To(e, t, n) {
4702
+ function wi(e, t, n) {
4675
4703
  let r;
4676
- nr(e, go, (a) => n(4, r = a));
4677
- let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: p = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { gmversion: b = "gm16" } = t, { displaybalanceoption: _ = "All" } = t, { totalcalculationmode: B = "totalCashAmount" } = t, { hideproducttype: I = "" } = t, { currencylocale: j = "en" } = t, { currencydisplay: W = "symbol" } = t, { maximumfractiondigits: U = "2" } = t, { minimumfractiondigits: w = "0" } = t, { customdisplayformat: A = "" } = t, P, L = !0, Y = !1, xe = !1, de, re = "", ae = [], ie;
4678
- const v = {}, pe = ["totalCashAmount", "totalRealAmount"], rt = () => {
4679
- fetch(g).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => gn(f, a[f]))).catch((a) => console.log(a));
4704
+ rr(e, vi, (s) => n(4, r = s));
4705
+ let { userid: o = "" } = t, { session: i = "" } = t, { endpoint: u = "" } = t, { lang: a = "en" } = t, { mbsource: d = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: g = "" } = t, { gmversion: b = "gm16" } = t, { displaybalanceoption: _ = "All" } = t, { totalcalculationmode: S = "totalCashAmount" } = t, { hideproducttype: P = "" } = t, { currencylocale: j = "en" } = t, { currencydisplay: Z = "symbol" } = t, { maximumfractiondigits: U = "2" } = t, { minimumfractiondigits: B = "0" } = t, { customdisplayformat: C = "" } = t, N, M, W = !0, ve = !1, Ee = !1, ie, de = "", q = [], xe;
4706
+ const E = {}, _e = ["totalCashAmount", "totalRealAmount"], ze = () => {
4707
+ fetch(g).then((s) => s.json()).then((s) => Object.keys(s).forEach((h) => bn(h, s[h]))).catch((s) => console.log(s));
4680
4708
  };
4681
- Object.keys(bn).forEach((a) => gn(a, bn[a]));
4682
- const Xe = (a) => {
4683
- if (A)
4684
- return he(a);
4685
- const f = j || s, u = {
4709
+ Object.keys(yn).forEach((s) => bn(s, yn[s]));
4710
+ const he = (s) => {
4711
+ if (C)
4712
+ return Te(s);
4713
+ const h = j || a, m = {
4686
4714
  style: "currency",
4687
- currency: re,
4715
+ currency: de,
4688
4716
  useGrouping: !0,
4689
- currencyDisplay: W || "code",
4717
+ currencyDisplay: Z || "code",
4690
4718
  maximumFractionDigits: U === "" || isNaN(Number(U)) ? 2 : Number(U),
4691
- minimumFractionDigits: w === "" || isNaN(Number(w)) ? 0 : Number(w)
4719
+ minimumFractionDigits: B === "" || isNaN(Number(B)) ? 0 : Number(B)
4692
4720
  };
4693
- return new Intl.NumberFormat(f, u).format(a);
4694
- }, he = (a) => {
4695
- const f = [];
4696
- let u = "";
4697
- for (const m of A)
4698
- switch (m) {
4721
+ return new Intl.NumberFormat(h, m).format(s);
4722
+ }, Te = (s) => {
4723
+ const h = [];
4724
+ let m = "";
4725
+ for (const p of C)
4726
+ switch (p) {
4699
4727
  default:
4700
- u += m;
4728
+ m += p;
4701
4729
  break;
4702
4730
  case "{":
4703
- u && f.push(u), u = "";
4731
+ m && h.push(m), m = "";
4704
4732
  break;
4705
4733
  case "}":
4706
- const [y, E] = u.split("|");
4707
- if (u = "", y.toLowerCase() === "currency")
4708
- u = re;
4709
- else if (y.toLowerCase() === "amount") {
4710
- let x = ",", T = ".", C = 2;
4711
- E && (E[0] !== " " && (x = E[0]), E[1] !== " " && (T = E[1]), E[2] !== " " && !isNaN(Number(E[2])) && (C = Number(E[2])));
4712
- let [R, S] = String(Math.floor(a * 10 ** C) / 10 ** C).split(".");
4713
- u += R[0];
4714
- for (let N = 1; N < R.length; ++N)
4715
- (R.length - N) % 3 === 0 ? u += x + R[N] : u += R[N];
4716
- S && (u += T + S);
4734
+ const [x, A] = m.split("|");
4735
+ if (m = "", x.toLowerCase() === "currency")
4736
+ m = de;
4737
+ else if (x.toLowerCase() === "amount") {
4738
+ let v = ",", w = ".", O = 2;
4739
+ A && (A[0] !== " " && (v = A[0]), A[1] !== " " && (w = A[1]), A[2] !== " " && !isNaN(Number(A[2])) && (O = Number(A[2])));
4740
+ let [T, I] = String(Math.floor(s * 10 ** O) / 10 ** O).split(".");
4741
+ m += T[0];
4742
+ for (let Q = 1; Q < T.length; ++Q)
4743
+ (T.length - Q) % 3 === 0 ? m += v + T[Q] : m += T[Q];
4744
+ I && (m += w + I);
4717
4745
  }
4718
- u && f.push(u), u = "";
4746
+ m && h.push(m), m = "";
4719
4747
  break;
4720
4748
  }
4721
- return f.push(u), f.join("");
4722
- }, _e = async () => {
4723
- n(1, L = !0);
4724
- const a = new URL(`${l}/v1/player/${i}/account`);
4749
+ return h.push(m), h.join("");
4750
+ }, we = async () => {
4751
+ n(1, W = !0);
4752
+ const s = new URL(`${u}/v1/player/${o}/account`);
4725
4753
  try {
4726
- const f = await fetch(a, {
4754
+ const h = await fetch(s, {
4727
4755
  method: "GET",
4728
- headers: { "X-SessionID": o }
4729
- }), u = await f.json();
4730
- if (f.ok)
4731
- ae = u.items, re = ae.find((m) => m.displayName === "Casino")?.currency, n(3, v.Total = [{ amount: u.totalAmount[re] }], v), n(
4756
+ headers: { "X-SessionID": i }
4757
+ }), m = await h.json();
4758
+ if (h.ok)
4759
+ q = m.items, de = q.find((p) => p.displayName === "Casino")?.currency, n(3, E.Total = [{ amount: m.totalAmount[de] }], E), n(
4732
4760
  3,
4733
- v.Real = [
4761
+ E.Real = [
4734
4762
  {
4735
- amount: ae.find((m) => m.displayName === "Casino")?.balanceAmount
4763
+ amount: q.find((p) => p.displayName === "Casino")?.balanceAmount
4736
4764
  }
4737
4765
  ],
4738
- v
4766
+ E
4739
4767
  ), n(
4740
4768
  3,
4741
- v.Bonus = [
4769
+ E.Bonus = [
4742
4770
  {
4743
- amount: ae.find((m) => m.displayName === "UBS")?.balanceAmount
4771
+ amount: q.find((p) => p.displayName === "UBS")?.balanceAmount
4744
4772
  }
4745
4773
  ],
4746
- v
4774
+ E
4747
4775
  );
4748
4776
  else
4749
4777
  throw new Error("Failed to fetch balance data !");
4750
- } catch (f) {
4751
- console.log("Balance error: ", f);
4778
+ } catch (h) {
4779
+ console.log("Balance error: ", h);
4752
4780
  } finally {
4753
- n(1, L = !1);
4781
+ n(1, W = !1);
4754
4782
  }
4755
- }, Se = () => {
4756
- n(1, L = !0);
4757
- const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
4758
- f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((m) => m.json()).then((m) => {
4759
- m[B] || n(8, B = pe[0]);
4760
- const y = m.items.find((x) => x.type === "Real" && x.walletAccountType === "Ordinary");
4761
- if (re = y.currency, xe = !!y.productType, n(3, v.Total = [{ amount: 0 }], v), n(3, v.Real = [], v), n(3, v.Bonus = [], v), n(3, v.Credit = [], v), !xe) {
4762
- ie = {
4783
+ }, We = () => {
4784
+ n(1, W = !0);
4785
+ const s = new URL(`${u}/v2/player/${o}/balance`), h = new Headers();
4786
+ h.append("X-SessionID", i), fetch(s, { method: "GET", headers: h }).then((p) => p.json()).then((p) => {
4787
+ p[S] || n(8, S = _e[0]);
4788
+ const x = p.items.find((v) => v.type === "Real" && v.walletAccountType === "Ordinary");
4789
+ if (de = x.currency, Ee = !!x.productType, n(3, E.Total = [{ amount: 0 }], E), n(3, E.Real = [], E), n(3, E.Bonus = [], E), n(3, E.Credit = [], E), !Ee) {
4790
+ xe = {
4763
4791
  lastOrdinaryAfterAmount: 0,
4764
4792
  showCreditLineAfterAmount: !1
4765
- }, n(3, v.Total[0].amount = m[B][re], v);
4766
- for (const x of m.items)
4767
- switch (x.type) {
4793
+ }, n(3, E.Total[0].amount = p[S][de], E);
4794
+ for (const v of p.items)
4795
+ switch (v.type) {
4768
4796
  case "Bonus":
4769
- v.Bonus.length === 0 ? v.Bonus.push({ amount: x.amount }) : n(3, v.Bonus[0].amount += x.amount, v);
4797
+ E.Bonus.length === 0 ? E.Bonus.push({ amount: v.amount }) : n(3, E.Bonus[0].amount += v.amount, E);
4770
4798
  break;
4771
4799
  case "Real":
4772
- if (x.creditLine && v.Credit.length === 0 && v.Credit.push({ amount: x.creditLine }), B === "totalRealAmount")
4800
+ if (v.creditLine && E.Credit.length === 0 && E.Credit.push({ amount: v.creditLine }), S === "totalRealAmount")
4773
4801
  continue;
4774
- v.Real.length === 0 ? v.Real.push({ amount: x.amount }) : n(3, v.Real[0].amount += x.amount, v);
4802
+ E.Real.length === 0 ? E.Real.push({ amount: v.amount }) : n(3, E.Real[0].amount += v.amount, E);
4775
4803
  break;
4776
4804
  }
4777
- for (const [x, T] of Object.entries(v))
4778
- T.length < 1 && delete v[x];
4779
- n(1, L = !1);
4805
+ for (const [v, w] of Object.entries(E))
4806
+ w.length < 1 && delete E[v];
4807
+ n(1, W = !1);
4780
4808
  return;
4781
4809
  }
4782
- ie = {
4810
+ xe = {
4783
4811
  Casino: {
4784
4812
  lastOrdinaryAfterAmount: 0,
4785
4813
  showCreditLineAfterAmount: !1
@@ -4789,201 +4817,201 @@ function To(e, t, n) {
4789
4817
  showCreditLineAfterAmount: !1
4790
4818
  }
4791
4819
  };
4792
- let E = m.items;
4793
- _ && _ !== "All" && (E = m.items.filter((x) => x.productType === _));
4794
- for (const x of E) {
4795
- let T;
4796
- switch (x.type) {
4820
+ let A = p.items;
4821
+ _ && _ !== "All" && (A = p.items.filter((v) => v.productType === _));
4822
+ for (const v of A) {
4823
+ let w;
4824
+ switch (v.type) {
4797
4825
  case "Bonus":
4798
- T = v.Bonus.findIndex((C) => C.productType === x.productType), T > 0 ? n(3, v.Bonus[T].amount += x.amount, v) : v.Bonus.push({
4799
- amount: x.amount,
4800
- productType: x.productType
4826
+ w = E.Bonus.findIndex((O) => O.productType === v.productType), w > 0 ? n(3, E.Bonus[w].amount += v.amount, E) : E.Bonus.push({
4827
+ amount: v.amount,
4828
+ productType: v.productType
4801
4829
  });
4802
4830
  break;
4803
4831
  case "Real":
4804
- x.creditLine && v.Credit.push({
4805
- amount: x.creditLine,
4806
- productType: x.productType
4807
- }), T = v.Real.findIndex((C) => C.productType === x.productType), T > 0 ? n(3, v.Real[T].amount += x.amount, v) : v.Real.push({
4808
- amount: x.amount,
4809
- productType: x.productType
4832
+ v.creditLine && E.Credit.push({
4833
+ amount: v.creditLine,
4834
+ productType: v.productType
4835
+ }), w = E.Real.findIndex((O) => O.productType === v.productType), w > 0 ? n(3, E.Real[w].amount += v.amount, E) : E.Real.push({
4836
+ amount: v.amount,
4837
+ productType: v.productType
4810
4838
  });
4811
4839
  break;
4812
4840
  }
4813
4841
  }
4814
- it();
4815
- for (const [x, T] of Object.entries(v))
4816
- T.length < 1 && delete v[x];
4817
- window.postMessage({ type: "playerBalanceInfo", balance: m }, window.location.href), n(1, L = !1);
4842
+ at();
4843
+ for (const [v, w] of Object.entries(E))
4844
+ w.length < 1 && delete E[v];
4845
+ window.postMessage({ type: "playerBalanceInfo", balance: p }, window.location.href), n(1, W = !1);
4818
4846
  }).catch(() => {
4819
- throw n(1, L = !1), new Error("Failed to fetch balance data !");
4847
+ throw n(1, W = !1), new Error("Failed to fetch balance data !");
4820
4848
  });
4821
- }, we = () => {
4822
- if (de && de.close(), o.length < 1)
4849
+ }, ae = () => {
4850
+ if (ie && ie.close(), i.length < 1)
4823
4851
  return;
4824
- let a, f;
4852
+ let s, h;
4825
4853
  switch (b) {
4826
4854
  case "gm16":
4827
- a = new URL(`${l}/v2/player/${i}/information/updates`), f = (y) => Tt(y);
4855
+ s = new URL(`${u}/v2/player/${o}/information/updates`), h = (x) => wt(x);
4828
4856
  break;
4829
4857
  case "gmcore":
4830
- a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (y) => ze(y);
4858
+ s = new URL(`${u}/v1/player/${o}/balance/updates`), h = (x) => it(x);
4831
4859
  break;
4832
4860
  }
4833
- const u = {
4861
+ const m = {
4834
4862
  accept: "text/event-stream",
4835
- "X-SessionId": o
4836
- }, m = new yo.EventSourcePolyfill(a, { headers: u });
4837
- de = m, m.addEventListener("message", f);
4838
- }, se = (a) => {
4839
- let f;
4863
+ "X-SessionId": i
4864
+ }, p = new xi.EventSourcePolyfill(s, { headers: m });
4865
+ ie = p, p.addEventListener("message", h);
4866
+ }, Oe = (s) => {
4867
+ let h;
4840
4868
  try {
4841
- f = JSON.parse(a);
4842
- } catch (u) {
4843
- console.log("Balance stream failed: ", u);
4869
+ h = JSON.parse(s);
4870
+ } catch (m) {
4871
+ console.log("Balance stream failed: ", m);
4844
4872
  return;
4845
4873
  }
4846
- return f;
4847
- }, ze = (a) => {
4848
- const f = se(a.data);
4849
- if (!f) {
4850
- we();
4874
+ return h;
4875
+ }, it = (s) => {
4876
+ const h = Oe(s.data);
4877
+ if (!h) {
4878
+ ae();
4851
4879
  return;
4852
4880
  }
4853
- let u = "0";
4854
- const m = f.balanceChange;
4855
- ae = ae.map((y) => (m && m[y.id] && (y = {
4856
- ...y,
4857
- balanceAmount: m[y.id].afterAmount
4858
- }), u = (parseFloat(y?.balanceAmount) + parseFloat(u)).toString(), y)), n(3, v.Real = [{ amount: ae[0]?.balanceAmount }], v), n(3, v.Bonus = [{ amount: ae[1]?.balanceAmount }], v), n(3, v.Total = [{ amount: Number(u) }], v);
4859
- }, Oe = (a, f, u) => {
4860
- let m = null;
4861
- switch (u.walletAccountType) {
4881
+ let m = "0";
4882
+ const p = h.balanceChange;
4883
+ q = q.map((x) => (p && p[x.id] && (x = {
4884
+ ...x,
4885
+ balanceAmount: p[x.id].afterAmount
4886
+ }), m = (parseFloat(x?.balanceAmount) + parseFloat(m)).toString(), x)), n(3, E.Real = [{ amount: q[0]?.balanceAmount }], E), n(3, E.Bonus = [{ amount: q[1]?.balanceAmount }], E), n(3, E.Total = [{ amount: Number(m) }], E);
4887
+ }, Ze = (s, h, m) => {
4888
+ let p = null;
4889
+ switch (m.walletAccountType) {
4862
4890
  case "Ordinary":
4863
- (u.afterAmount !== u.affectedAmount || f.lastOrdinaryAfterAmount === 0) && (f.lastOrdinaryAfterAmount = u.afterAmount, f.showCreditLineAfterAmount || (m = u.afterAmount));
4891
+ (m.afterAmount !== m.affectedAmount || h.lastOrdinaryAfterAmount === 0) && (h.lastOrdinaryAfterAmount = m.afterAmount, h.showCreditLineAfterAmount || (p = m.afterAmount));
4864
4892
  break;
4865
4893
  case "CreditLine":
4866
- u.afterAmount !== 0 ? (m = u.afterAmount, f.showCreditLineAfterAmount = !0) : (m = f.lastOrdinaryAfterAmount, f.showCreditLineAfterAmount = !1);
4894
+ m.afterAmount !== 0 ? (p = m.afterAmount, h.showCreditLineAfterAmount = !0) : (p = h.lastOrdinaryAfterAmount, h.showCreditLineAfterAmount = !1);
4867
4895
  break;
4868
4896
  default:
4869
- m = u.afterAmount;
4897
+ p = m.afterAmount;
4870
4898
  }
4871
- return m === null ? a : m;
4872
- }, it = () => {
4873
- switch (B) {
4899
+ return p === null ? s : p;
4900
+ }, at = () => {
4901
+ switch (S) {
4874
4902
  case "totalCashAmount":
4875
- let a = 0;
4876
- for (const u of ["Real", "Bonus"])
4877
- for (const m of v[u])
4878
- a += Math.max(m.amount, 0);
4879
- n(3, v.Total[0].amount = a, v);
4903
+ let s = 0;
4904
+ for (const m of ["Real", "Bonus"])
4905
+ for (const p of E[m])
4906
+ s += Math.max(p.amount, 0);
4907
+ n(3, E.Total[0].amount = s, E);
4880
4908
  break;
4881
4909
  case "totalRealAmount":
4882
- if (!xe)
4910
+ if (!Ee)
4883
4911
  return;
4884
- let f = 0;
4885
- for (const u of v.Real)
4886
- f += u.amount;
4887
- n(3, v.Total[0].amount = f, v);
4912
+ let h = 0;
4913
+ for (const m of E.Real)
4914
+ h += m.amount;
4915
+ n(3, E.Total[0].amount = h, E);
4888
4916
  }
4889
- }, Tt = (a) => {
4890
- const f = se(a.data);
4891
- if (!f) {
4892
- we();
4917
+ }, wt = (s) => {
4918
+ const h = Oe(s.data);
4919
+ if (!h) {
4920
+ ae();
4893
4921
  return;
4894
4922
  }
4895
- if (Bt(f?.type) || f.type !== "BALANCE_UPDATE_V2")
4923
+ if (qe(h?.type) || h.type !== "BALANCE_UPDATE_V2")
4896
4924
  return;
4897
- const u = f.body.balanceChange;
4898
- for (const [m, y] of Object.entries(u))
4899
- if (B === "totalRealAmount" && m === "Real" && !xe && n(3, v.Total[0].amount = Oe(v.Total[0].amount, ie, y), v), !!v[m])
4900
- for (const E of v[m]) {
4901
- if (!xe) {
4902
- E.amount = m === "Real" ? Oe(E.amount, ie, y) : y.afterAmount;
4925
+ const m = h.body.balanceChange;
4926
+ for (const [p, x] of Object.entries(m))
4927
+ if (S === "totalRealAmount" && p === "Real" && !Ee && n(3, E.Total[0].amount = Ze(E.Total[0].amount, xe, x), E), !!E[p])
4928
+ for (const A of E[p]) {
4929
+ if (!Ee) {
4930
+ A.amount = p === "Real" ? Ze(A.amount, xe, x) : x.afterAmount;
4903
4931
  continue;
4904
4932
  }
4905
- y.productType === E.productType && (E.amount = m === "Real" ? Oe(E.amount, ie[E.productType], y) : y.afterAmount);
4933
+ x.productType === A.productType && (A.amount = p === "Real" ? Ze(A.amount, xe[A.productType], x) : x.afterAmount);
4906
4934
  }
4907
- it();
4908
- }, ot = () => {
4909
- n(2, Y = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
4910
- }, Bt = (a) => a === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, We = () => {
4911
- pe.includes(B) || (console.error(`Unsupported value ('${B}') for totalcalculationmode parameter. Only the following values are supported ${pe}. Using default value ('${pe[0]}').`), n(8, B = pe[0]));
4912
- }, Ze = (a) => {
4913
- const f = I.split(",").map((u) => u.trim());
4914
- return !a.productType || f.includes(a.productType) ? "" : r(a.productType);
4915
- }, Te = () => {
4916
- switch (bo(s), We(), b) {
4935
+ at();
4936
+ }, st = () => {
4937
+ n(2, ve = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
4938
+ }, qe = (s) => s === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Qe = () => {
4939
+ _e.includes(S) || (console.error(`Unsupported value ('${S}') for totalcalculationmode parameter. Only the following values are supported ${_e}. Using default value ('${_e[0]}').`), n(8, S = _e[0]));
4940
+ }, Se = (s) => {
4941
+ const h = P.split(",").map((m) => m.trim());
4942
+ return !s.productType || h.includes(s.productType) ? "" : r(s.productType);
4943
+ }, te = () => {
4944
+ switch (Ei(a), Qe(), b) {
4917
4945
  case "gmcore":
4918
- _e();
4946
+ we();
4919
4947
  break;
4920
4948
  case "gm16":
4921
- Se();
4949
+ We();
4922
4950
  break;
4923
4951
  default:
4924
4952
  throw Error(`Invalid apiversion attribute: ${b}`);
4925
4953
  }
4926
- }, K = (a) => a.data && a.data.type === "LogoutSuccessfull" && de.close();
4927
- hr(() => (window.addEventListener("message", K, !1), () => {
4928
- window.removeEventListener("message", K), de && de.close();
4954
+ }, ut = (s) => s.data && s.data.type === "LogoutSuccessfull" && ie.close();
4955
+ cr(() => (window.addEventListener("message", ut, !1), () => {
4956
+ window.removeEventListener("message", ut), ie && ie.close();
4929
4957
  }));
4930
- const St = () => n(2, Y = !0), wt = () => n(2, Y = !1), At = () => ot(), at = () => n(2, Y = !1);
4931
- function h(a) {
4932
- Dt[a ? "unshift" : "push"](() => {
4933
- P = a, n(0, P);
4958
+ const At = () => n(2, ve = !0), Ct = () => n(2, ve = !1), lt = () => st(), l = () => n(2, ve = !1);
4959
+ function y(s) {
4960
+ Ft[s ? "unshift" : "push"](() => {
4961
+ N = s, n(0, N);
4934
4962
  });
4935
4963
  }
4936
- return e.$$set = (a) => {
4937
- "userid" in a && n(9, i = a.userid), "session" in a && n(10, o = a.session), "endpoint" in a && n(11, l = a.endpoint), "lang" in a && n(12, s = a.lang), "mbsource" in a && n(13, p = a.mbsource), "clientstyling" in a && n(14, c = a.clientstyling), "clientstylingurl" in a && n(15, d = a.clientstylingurl), "translationurl" in a && n(16, g = a.translationurl), "gmversion" in a && n(17, b = a.gmversion), "displaybalanceoption" in a && n(18, _ = a.displaybalanceoption), "totalcalculationmode" in a && n(8, B = a.totalcalculationmode), "hideproducttype" in a && n(19, I = a.hideproducttype), "currencylocale" in a && n(20, j = a.currencylocale), "currencydisplay" in a && n(21, W = a.currencydisplay), "maximumfractiondigits" in a && n(22, U = a.maximumfractiondigits), "minimumfractiondigits" in a && n(23, w = a.minimumfractiondigits), "customdisplayformat" in a && n(24, A = a.customdisplayformat);
4964
+ return e.$$set = (s) => {
4965
+ "userid" in s && n(9, o = s.userid), "session" in s && n(10, i = s.session), "endpoint" in s && n(11, u = s.endpoint), "lang" in s && n(12, a = s.lang), "mbsource" in s && n(13, d = s.mbsource), "clientstyling" in s && n(14, c = s.clientstyling), "clientstylingurl" in s && n(15, f = s.clientstylingurl), "translationurl" in s && n(16, g = s.translationurl), "gmversion" in s && n(17, b = s.gmversion), "displaybalanceoption" in s && n(18, _ = s.displaybalanceoption), "totalcalculationmode" in s && n(8, S = s.totalcalculationmode), "hideproducttype" in s && n(19, P = s.hideproducttype), "currencylocale" in s && n(20, j = s.currencylocale), "currencydisplay" in s && n(21, Z = s.currencydisplay), "maximumfractiondigits" in s && n(22, U = s.maximumfractiondigits), "minimumfractiondigits" in s && n(23, B = s.minimumfractiondigits), "customdisplayformat" in s && n(24, C = s.customdisplayformat);
4938
4966
  }, e.$$.update = () => {
4939
4967
  e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
4940
- 400896 && l && i && o && s && b && _ && Te(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
4941
- 134656 && l && i && o && b && we(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4942
- 16385 && c && P && Br(P, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4943
- 32769 && d && P && Sr(P, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4944
- 8193 && P && wr(P, `${p}.Style`), e.$$.dirty[0] & /*translationurl*/
4945
- 65536 && g && rt();
4968
+ 400896 && u && o && i && a && b && _ && te(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
4969
+ 134656 && u && o && i && b && ae(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4970
+ 16385 && c && N && Br(N, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4971
+ 32769 && f && N && wr(N, f), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
4972
+ 8193 && N && Ar(N, `${d}.Style`, M), e.$$.dirty[0] & /*translationurl*/
4973
+ 65536 && g && ze();
4946
4974
  }, [
4947
- P,
4948
- L,
4949
- Y,
4950
- v,
4975
+ N,
4976
+ W,
4977
+ ve,
4978
+ E,
4951
4979
  r,
4952
- Xe,
4953
- ot,
4954
- Ze,
4955
- B,
4956
- i,
4980
+ he,
4981
+ st,
4982
+ Se,
4983
+ S,
4957
4984
  o,
4958
- l,
4959
- s,
4960
- p,
4961
- c,
4985
+ i,
4986
+ u,
4987
+ a,
4962
4988
  d,
4989
+ c,
4990
+ f,
4963
4991
  g,
4964
4992
  b,
4965
4993
  _,
4966
- I,
4994
+ P,
4967
4995
  j,
4968
- W,
4996
+ Z,
4969
4997
  U,
4970
- w,
4971
- A,
4972
- St,
4973
- wt,
4998
+ B,
4999
+ C,
4974
5000
  At,
4975
- at,
4976
- h
5001
+ Ct,
5002
+ lt,
5003
+ l,
5004
+ y
4977
5005
  ];
4978
5006
  }
4979
- class Bo extends _r {
5007
+ class Ai extends Tr {
4980
5008
  constructor(t) {
4981
- super(), Er(
5009
+ super(), xr(
4982
5010
  this,
4983
5011
  t,
4984
- To,
4985
- _o,
4986
- Sn,
5012
+ wi,
5013
+ Bi,
5014
+ wn,
4987
5015
  {
4988
5016
  userid: 9,
4989
5017
  session: 10,
@@ -5003,7 +5031,7 @@ class Bo extends _r {
5003
5031
  minimumfractiondigits: 23,
5004
5032
  customdisplayformat: 24
5005
5033
  },
5006
- vo,
5034
+ _i,
5007
5035
  [-1, -1]
5008
5036
  );
5009
5037
  }
@@ -5110,7 +5138,7 @@ class Bo extends _r {
5110
5138
  this.$$set({ customdisplayformat: t }), $();
5111
5139
  }
5112
5140
  }
5113
- xr(Bo, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5141
+ _r(Ai, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
5114
5142
  export {
5115
- Bo as P
5143
+ Ai as P
5116
5144
  };