@everymatrix/player-account-balance-modal-nd 1.53.0 → 1.53.11

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