@everymatrix/player-account-balance-modal-nd 1.53.12 → 1.54.0

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