@everymatrix/player-account-vault 0.19.0 → 0.19.3

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,46 @@
1
1
  function ae() {
2
2
  }
3
- function vr(e) {
3
+ function xn(e) {
4
4
  return e();
5
5
  }
6
- function zt() {
6
+ function Vt() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function we(e) {
10
- e.forEach(vr);
9
+ function _e(e) {
10
+ e.forEach(xn);
11
11
  }
12
- function Gt(e) {
12
+ function Ut(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function xr(e, t) {
15
+ function vn(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function Zr(e) {
18
+ function Zn(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function Er(e, ...t) {
21
+ function En(e, ...t) {
22
22
  if (e == null) {
23
- for (const n of t)
24
- n(void 0);
23
+ for (const r of t)
24
+ r(void 0);
25
25
  return ae;
26
26
  }
27
- const r = e.subscribe(...t);
28
- return r.unsubscribe ? () => r.unsubscribe() : r;
27
+ const n = e.subscribe(...t);
28
+ return n.unsubscribe ? () => n.unsubscribe() : n;
29
29
  }
30
- function qr(e, t, r) {
31
- e.$$.on_destroy.push(Er(t, r));
30
+ function qn(e, t, n) {
31
+ e.$$.on_destroy.push(En(t, n));
32
32
  }
33
33
  function m(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function Jr(e, t, r) {
37
- const n = Qr(e);
38
- if (!n.getElementById(t)) {
36
+ function Jn(e, t, n) {
37
+ const r = Qn(e);
38
+ if (!r.getElementById(t)) {
39
39
  const i = E("style");
40
- i.id = t, i.textContent = r, Yr(n, i);
40
+ i.id = t, i.textContent = n, Yn(r, i);
41
41
  }
42
42
  }
43
- function Qr(e) {
43
+ function Qn(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,48 +50,48 @@ function Qr(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function Yr(e, t) {
53
+ function Yn(e, t) {
54
54
  return m(
55
55
  /** @type {Document} */
56
56
  e.head || e,
57
57
  t
58
58
  ), t.sheet;
59
59
  }
60
- function Q(e, t, r) {
61
- e.insertBefore(t, r || null);
60
+ function Q(e, t, n) {
61
+ e.insertBefore(t, n || null);
62
62
  }
63
63
  function Z(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function _t(e, t) {
67
- for (let r = 0; r < e.length; r += 1)
68
- e[r] && e[r].d(t);
66
+ function vt(e, t) {
67
+ for (let n = 0; n < e.length; n += 1)
68
+ e[n] && e[n].d(t);
69
69
  }
70
70
  function E(e) {
71
71
  return document.createElement(e);
72
72
  }
73
- function Xt(e) {
73
+ function zt(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
- function $(e) {
76
+ function j(e) {
77
77
  return document.createTextNode(e);
78
78
  }
79
79
  function R() {
80
- return $(" ");
80
+ return j(" ");
81
81
  }
82
- function _r() {
83
- return $("");
82
+ function _n() {
83
+ return j("");
84
84
  }
85
- function ee(e, t, r, n) {
86
- return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
85
+ function ee(e, t, n, r) {
86
+ return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
87
87
  }
88
- function T(e, t, r) {
89
- r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
88
+ function T(e, t, n) {
89
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
90
90
  }
91
- function ft(e) {
91
+ function ht(e) {
92
92
  return e === "" ? null : +e;
93
93
  }
94
- function Kr(e) {
94
+ function Kn(e) {
95
95
  return Array.from(e.childNodes);
96
96
  }
97
97
  function W(e, t) {
@@ -101,111 +101,111 @@ function W(e, t) {
101
101
  function xe(e, t) {
102
102
  e.value = t ?? "";
103
103
  }
104
- function Wt(e, t, r, n) {
105
- r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
104
+ function Xt(e, t, n, r) {
105
+ n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
106
106
  }
107
- function st(e, t, r) {
108
- for (let n = 0; n < e.options.length; n += 1) {
109
- const i = e.options[n];
107
+ function ot(e, t, n) {
108
+ for (let r = 0; r < e.options.length; r += 1) {
109
+ const i = e.options[r];
110
110
  if (i.__value === t) {
111
111
  i.selected = !0;
112
112
  return;
113
113
  }
114
114
  }
115
- (!r || t !== void 0) && (e.selectedIndex = -1);
115
+ (!n || t !== void 0) && (e.selectedIndex = -1);
116
116
  }
117
- function Zt(e) {
117
+ function Wt(e) {
118
118
  const t = e.querySelector(":checked");
119
119
  return t && t.__value;
120
120
  }
121
- function j(e, t, r) {
122
- e.classList.toggle(t, !!r);
121
+ function $(e, t, n) {
122
+ e.classList.toggle(t, !!n);
123
123
  }
124
- function en(e) {
124
+ function er(e) {
125
125
  const t = {};
126
126
  return e.childNodes.forEach(
127
127
  /** @param {Element} node */
128
- (r) => {
129
- t[r.slot || "default"] = !0;
128
+ (n) => {
129
+ t[n.slot || "default"] = !0;
130
130
  }
131
131
  ), t;
132
132
  }
133
- let kt;
134
- function Ke(e) {
135
- kt = e;
133
+ let Ft;
134
+ function Ye(e) {
135
+ Ft = e;
136
136
  }
137
- const De = [], pt = [];
138
- let Ue = [];
139
- const qt = [], tn = /* @__PURE__ */ Promise.resolve();
140
- let Pt = !1;
141
- function rn() {
142
- Pt || (Pt = !0, tn.then(le));
137
+ const Re = [], ft = [];
138
+ let De = [];
139
+ const Zt = [], tr = /* @__PURE__ */ Promise.resolve();
140
+ let St = !1;
141
+ function nr() {
142
+ St || (St = !0, tr.then(le));
143
143
  }
144
- function et(e) {
145
- Ue.push(e);
144
+ function Ke(e) {
145
+ De.push(e);
146
146
  }
147
- const wt = /* @__PURE__ */ new Set();
148
- let Le = 0;
147
+ const Et = /* @__PURE__ */ new Set();
148
+ let Oe = 0;
149
149
  function le() {
150
- if (Le !== 0)
150
+ if (Oe !== 0)
151
151
  return;
152
- const e = kt;
152
+ const e = Ft;
153
153
  do {
154
154
  try {
155
- for (; Le < De.length; ) {
156
- const t = De[Le];
157
- Le++, Ke(t), nn(t.$$);
155
+ for (; Oe < Re.length; ) {
156
+ const t = Re[Oe];
157
+ Oe++, Ye(t), rr(t.$$);
158
158
  }
159
159
  } catch (t) {
160
- throw De.length = 0, Le = 0, t;
160
+ throw Re.length = 0, Oe = 0, t;
161
161
  }
162
- for (Ke(null), De.length = 0, Le = 0; pt.length; )
163
- pt.pop()();
164
- for (let t = 0; t < Ue.length; t += 1) {
165
- const r = Ue[t];
166
- wt.has(r) || (wt.add(r), r());
162
+ for (Ye(null), Re.length = 0, Oe = 0; ft.length; )
163
+ ft.pop()();
164
+ for (let t = 0; t < De.length; t += 1) {
165
+ const n = De[t];
166
+ Et.has(n) || (Et.add(n), n());
167
167
  }
168
- Ue.length = 0;
169
- } while (De.length);
170
- for (; qt.length; )
171
- qt.pop()();
172
- Pt = !1, wt.clear(), Ke(e);
168
+ De.length = 0;
169
+ } while (Re.length);
170
+ for (; Zt.length; )
171
+ Zt.pop()();
172
+ St = !1, Et.clear(), Ye(e);
173
173
  }
174
- function nn(e) {
174
+ function rr(e) {
175
175
  if (e.fragment !== null) {
176
- e.update(), we(e.before_update);
176
+ e.update(), _e(e.before_update);
177
177
  const t = e.dirty;
178
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(et);
178
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ke);
179
179
  }
180
180
  }
181
- function an(e) {
182
- const t = [], r = [];
183
- Ue.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Ue = t;
181
+ function ir(e) {
182
+ const t = [], n = [];
183
+ De.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), De = t;
184
184
  }
185
- const on = /* @__PURE__ */ new Set();
186
- function sn(e, t) {
187
- e && e.i && (on.delete(e), e.i(t));
185
+ const ar = /* @__PURE__ */ new Set();
186
+ function or(e, t) {
187
+ e && e.i && (ar.delete(e), e.i(t));
188
188
  }
189
- function Me(e) {
189
+ function Le(e) {
190
190
  return e?.length !== void 0 ? e : Array.from(e);
191
191
  }
192
- function un(e, t, r) {
193
- const { fragment: n, after_update: i } = e.$$;
194
- n && n.m(t, r), et(() => {
195
- const a = e.$$.on_mount.map(vr).filter(Gt);
196
- e.$$.on_destroy ? e.$$.on_destroy.push(...a) : we(a), e.$$.on_mount = [];
197
- }), i.forEach(et);
192
+ function sr(e, t, n) {
193
+ const { fragment: r, after_update: i } = e.$$;
194
+ r && r.m(t, n), Ke(() => {
195
+ const a = e.$$.on_mount.map(xn).filter(Ut);
196
+ e.$$.on_destroy ? e.$$.on_destroy.push(...a) : _e(a), e.$$.on_mount = [];
197
+ }), i.forEach(Ke);
198
198
  }
199
- function ln(e, t) {
200
- const r = e.$$;
201
- r.fragment !== null && (an(r.after_update), we(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
199
+ function ur(e, t) {
200
+ const n = e.$$;
201
+ n.fragment !== null && (ir(n.after_update), _e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
202
202
  }
203
- function cn(e, t) {
204
- e.$$.dirty[0] === -1 && (De.push(e), rn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
203
+ function lr(e, t) {
204
+ e.$$.dirty[0] === -1 && (Re.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
205
205
  }
206
- function hn(e, t, r, n, i, a, o = null, s = [-1]) {
207
- const c = kt;
208
- Ke(e);
206
+ function cr(e, t, n, r, i, a, o = null, s = [-1]) {
207
+ const c = Ft;
208
+ Ye(e);
209
209
  const l = e.$$ = {
210
210
  fragment: null,
211
211
  ctx: [],
@@ -213,7 +213,7 @@ function hn(e, t, r, n, i, a, o = null, s = [-1]) {
213
213
  props: a,
214
214
  update: ae,
215
215
  not_equal: i,
216
- bound: zt(),
216
+ bound: Vt(),
217
217
  // lifecycle
218
218
  on_mount: [],
219
219
  on_destroy: [],
@@ -222,28 +222,28 @@ function hn(e, t, r, n, i, a, o = null, s = [-1]) {
222
222
  after_update: [],
223
223
  context: new Map(t.context || (c ? c.$$.context : [])),
224
224
  // everything else
225
- callbacks: zt(),
225
+ callbacks: Vt(),
226
226
  dirty: s,
227
227
  skip_bound: !1,
228
228
  root: t.target || c.$$.root
229
229
  };
230
230
  o && o(l.root);
231
231
  let u = !1;
232
- if (l.ctx = r ? r(e, t.props || {}, (h, d, ...b) => {
233
- const v = b.length ? b[0] : d;
234
- return l.ctx && i(l.ctx[h], l.ctx[h] = v) && (!l.skip_bound && l.bound[h] && l.bound[h](v), u && cn(e, h)), d;
235
- }) : [], l.update(), u = !0, we(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
232
+ if (l.ctx = n(e, t.props || {}, (h, d, ...b) => {
233
+ const x = b.length ? b[0] : d;
234
+ return l.ctx && i(l.ctx[h], l.ctx[h] = x) && (!l.skip_bound && l.bound[h] && l.bound[h](x), u && lr(e, h)), d;
235
+ }), l.update(), u = !0, _e(l.before_update), l.fragment = r(l.ctx), t.target) {
236
236
  if (t.hydrate) {
237
- const h = Kr(t.target);
237
+ const h = Kn(t.target);
238
238
  l.fragment && l.fragment.l(h), h.forEach(Z);
239
239
  } else
240
240
  l.fragment && l.fragment.c();
241
- t.intro && sn(e.$$.fragment), un(e, t.target, t.anchor), le();
241
+ t.intro && or(e.$$.fragment), sr(e, t.target, t.anchor), le();
242
242
  }
243
- Ke(c);
243
+ Ye(c);
244
244
  }
245
- let wr;
246
- typeof HTMLElement == "function" && (wr = class extends HTMLElement {
245
+ let wn;
246
+ typeof HTMLElement == "function" && (wn = class extends HTMLElement {
247
247
  /** The Svelte component constructor */
248
248
  $$ctor;
249
249
  /** Slots */
@@ -262,20 +262,20 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
262
262
  $$l = {};
263
263
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
264
264
  $$l_u = /* @__PURE__ */ new Map();
265
- constructor(e, t, r) {
266
- super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
265
+ constructor(e, t, n) {
266
+ super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
267
267
  }
268
- addEventListener(e, t, r) {
268
+ addEventListener(e, t, n) {
269
269
  if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
270
- const n = this.$$c.$on(e, t);
271
- this.$$l_u.set(t, n);
270
+ const r = this.$$c.$on(e, t);
271
+ this.$$l_u.set(t, r);
272
272
  }
273
- super.addEventListener(e, t, r);
273
+ super.addEventListener(e, t, n);
274
274
  }
275
- removeEventListener(e, t, r) {
276
- if (super.removeEventListener(e, t, r), this.$$c) {
277
- const n = this.$$l_u.get(t);
278
- n && (n(), this.$$l_u.delete(t));
275
+ removeEventListener(e, t, n) {
276
+ if (super.removeEventListener(e, t, n), this.$$c) {
277
+ const r = this.$$l_u.get(t);
278
+ r && (r(), this.$$l_u.delete(t));
279
279
  }
280
280
  }
281
281
  async connectedCallback() {
@@ -302,12 +302,12 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
302
302
  };
303
303
  if (await Promise.resolve(), !this.$$cn || this.$$c)
304
304
  return;
305
- const t = {}, r = en(this);
305
+ const t = {}, n = er(this);
306
306
  for (const i of this.$$s)
307
- i in r && (t[i] = [e(i)]);
307
+ i in n && (t[i] = [e(i)]);
308
308
  for (const i of this.attributes) {
309
309
  const a = this.$$g_p(i.name);
310
- a in this.$$d || (this.$$d[a] = lt(a, i.value, this.$$p_d, "toProp"));
310
+ a in this.$$d || (this.$$d[a] = ut(a, i.value, this.$$p_d, "toProp"));
311
311
  }
312
312
  for (const i in this.$$p_d)
313
313
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -321,11 +321,11 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
321
321
  }
322
322
  }
323
323
  });
324
- const n = () => {
324
+ const r = () => {
325
325
  this.$$r = !0;
326
326
  for (const i in this.$$p_d)
327
327
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
328
- const a = lt(
328
+ const a = ut(
329
329
  i,
330
330
  this.$$d[i],
331
331
  this.$$p_d,
@@ -335,7 +335,7 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
335
335
  }
336
336
  this.$$r = !1;
337
337
  };
338
- this.$$c.$$.after_update.push(n), n();
338
+ this.$$c.$$.after_update.push(r), r();
339
339
  for (const i in this.$$l)
340
340
  for (const a of this.$$l[i]) {
341
341
  const o = this.$$c.$on(i, a);
@@ -346,8 +346,8 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
346
346
  }
347
347
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
348
348
  // and setting attributes through setAttribute etc, this is helpful
349
- attributeChangedCallback(e, t, r) {
350
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = lt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
349
+ attributeChangedCallback(e, t, n) {
350
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ut(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
351
351
  }
352
352
  disconnectedCallback() {
353
353
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -360,11 +360,11 @@ typeof HTMLElement == "function" && (wr = class extends HTMLElement {
360
360
  ) || e;
361
361
  }
362
362
  });
363
- function lt(e, t, r, n) {
364
- const i = r[e]?.type;
365
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
363
+ function ut(e, t, n, r) {
364
+ const i = n[e]?.type;
365
+ if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
366
366
  return t;
367
- if (n === "toAttribute")
367
+ if (r === "toAttribute")
368
368
  switch (i) {
369
369
  case "Object":
370
370
  case "Array":
@@ -389,10 +389,10 @@ function lt(e, t, r, n) {
389
389
  return t;
390
390
  }
391
391
  }
392
- function fn(e, t, r, n, i, a) {
393
- let o = class extends wr {
392
+ function hr(e, t, n, r, i, a) {
393
+ let o = class extends wn {
394
394
  constructor() {
395
- super(e, r, i), this.$$p_d = t;
395
+ super(e, n, i), this.$$p_d = t;
396
396
  }
397
397
  static get observedAttributes() {
398
398
  return Object.keys(t).map(
@@ -406,10 +406,10 @@ function fn(e, t, r, n, i, a) {
406
406
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
407
407
  },
408
408
  set(c) {
409
- c = lt(s, c, t), this.$$d[s] = c, this.$$c?.$set({ [s]: c });
409
+ c = ut(s, c, t), this.$$d[s] = c, this.$$c?.$set({ [s]: c });
410
410
  }
411
411
  });
412
- }), n.forEach((s) => {
412
+ }), r.forEach((s) => {
413
413
  Object.defineProperty(o.prototype, s, {
414
414
  get() {
415
415
  return this.$$c?.[s];
@@ -418,7 +418,7 @@ function fn(e, t, r, n, i, a) {
418
418
  }), e.element = /** @type {any} */
419
419
  o, o;
420
420
  }
421
- class pn {
421
+ class fr {
422
422
  /**
423
423
  * ### PRIVATE API
424
424
  *
@@ -437,7 +437,7 @@ class pn {
437
437
  $$set = void 0;
438
438
  /** @returns {void} */
439
439
  $destroy() {
440
- ln(this, 1), this.$destroy = ae;
440
+ ur(this, 1), this.$destroy = ae;
441
441
  }
442
442
  /**
443
443
  * @template {Extract<keyof Events, string>} K
@@ -445,13 +445,13 @@ class pn {
445
445
  * @param {((e: Events[K]) => void) | null | undefined} callback
446
446
  * @returns {() => void}
447
447
  */
448
- $on(t, r) {
449
- if (!Gt(r))
448
+ $on(t, n) {
449
+ if (!Ut(n))
450
450
  return ae;
451
- const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
452
- return n.push(r), () => {
453
- const i = n.indexOf(r);
454
- i !== -1 && n.splice(i, 1);
451
+ const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
452
+ return r.push(n), () => {
453
+ const i = r.indexOf(n);
454
+ i !== -1 && r.splice(i, 1);
455
455
  };
456
456
  }
457
457
  /**
@@ -459,29 +459,29 @@ class pn {
459
459
  * @returns {void}
460
460
  */
461
461
  $set(t) {
462
- this.$$set && !Zr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
462
+ this.$$set && !Zn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
463
463
  }
464
464
  }
465
- const mn = "4";
466
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mn);
467
- const Re = [];
468
- function dn(e, t) {
465
+ const pr = "4";
466
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pr);
467
+ const Me = [];
468
+ function mr(e, t) {
469
469
  return {
470
- subscribe: bt(e, t).subscribe
470
+ subscribe: dt(e, t).subscribe
471
471
  };
472
472
  }
473
- function bt(e, t = ae) {
474
- let r;
475
- const n = /* @__PURE__ */ new Set();
473
+ function dt(e, t = ae) {
474
+ let n;
475
+ const r = /* @__PURE__ */ new Set();
476
476
  function i(s) {
477
- if (xr(e, s) && (e = s, r)) {
478
- const c = !Re.length;
479
- for (const l of n)
480
- l[1](), Re.push(l, e);
477
+ if (vn(e, s) && (e = s, n)) {
478
+ const c = !Me.length;
479
+ for (const l of r)
480
+ l[1](), Me.push(l, e);
481
481
  if (c) {
482
- for (let l = 0; l < Re.length; l += 2)
483
- Re[l][0](Re[l + 1]);
484
- Re.length = 0;
482
+ for (let l = 0; l < Me.length; l += 2)
483
+ Me[l][0](Me[l + 1]);
484
+ Me.length = 0;
485
485
  }
486
486
  }
487
487
  }
@@ -490,18 +490,18 @@ function bt(e, t = ae) {
490
490
  }
491
491
  function o(s, c = ae) {
492
492
  const l = [s, c];
493
- return n.add(l), n.size === 1 && (r = t(i, a) || ae), s(e), () => {
494
- n.delete(l), n.size === 0 && r && (r(), r = null);
493
+ return r.add(l), r.size === 1 && (n = t(i, a) || ae), s(e), () => {
494
+ r.delete(l), r.size === 0 && n && (n(), n = null);
495
495
  };
496
496
  }
497
497
  return { set: i, update: a, subscribe: o };
498
498
  }
499
- function $e(e, t, r) {
500
- const n = !Array.isArray(e), i = n ? [e] : e;
499
+ function $e(e, t, n) {
500
+ const r = !Array.isArray(e), i = r ? [e] : e;
501
501
  if (!i.every(Boolean))
502
502
  throw new Error("derived() expects stores as input, got a falsy value");
503
503
  const a = t.length < 2;
504
- return dn(r, (o, s) => {
504
+ return mr(n, (o, s) => {
505
505
  let c = !1;
506
506
  const l = [];
507
507
  let u = 0, h = ae;
@@ -509,171 +509,188 @@ function $e(e, t, r) {
509
509
  if (u)
510
510
  return;
511
511
  h();
512
- const v = t(n ? l[0] : l, o, s);
513
- a ? o(v) : h = Gt(v) ? v : ae;
512
+ const x = t(r ? l[0] : l, o, s);
513
+ a ? o(x) : h = Ut(x) ? x : ae;
514
514
  }, b = i.map(
515
- (v, P) => Er(
516
- v,
515
+ (x, I) => En(
516
+ x,
517
517
  (F) => {
518
- l[P] = F, u &= ~(1 << P), c && d();
518
+ l[I] = F, u &= ~(1 << I), c && d();
519
519
  },
520
520
  () => {
521
- u |= 1 << P;
521
+ u |= 1 << I;
522
522
  }
523
523
  )
524
524
  );
525
525
  return c = !0, d(), function() {
526
- we(b), h(), c = !1;
526
+ _e(b), h(), c = !1;
527
527
  };
528
528
  });
529
529
  }
530
- function gn(e) {
531
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
530
+ function dr(e) {
531
+ return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
532
532
  }
533
- var bn = function(t) {
534
- return yn(t) && !vn(t);
533
+ var gr = function(t) {
534
+ return br(t) && !yr(t);
535
535
  };
536
- function yn(e) {
536
+ function br(e) {
537
537
  return !!e && typeof e == "object";
538
538
  }
539
- function vn(e) {
539
+ function yr(e) {
540
540
  var t = Object.prototype.toString.call(e);
541
- return t === "[object RegExp]" || t === "[object Date]" || _n(e);
541
+ return t === "[object RegExp]" || t === "[object Date]" || Er(e);
542
542
  }
543
- var xn = typeof Symbol == "function" && Symbol.for, En = xn ? Symbol.for("react.element") : 60103;
544
- function _n(e) {
545
- return e.$$typeof === En;
543
+ var xr = typeof Symbol == "function" && Symbol.for, vr = xr ? Symbol.for("react.element") : 60103;
544
+ function Er(e) {
545
+ return e.$$typeof === vr;
546
546
  }
547
- function wn(e) {
547
+ function _r(e) {
548
548
  return Array.isArray(e) ? [] : {};
549
549
  }
550
- function tt(e, t) {
551
- return t.clone !== !1 && t.isMergeableObject(e) ? Fe(wn(e), e, t) : e;
550
+ function et(e, t) {
551
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ue(_r(e), e, t) : e;
552
552
  }
553
- function Tn(e, t, r) {
554
- return e.concat(t).map(function(n) {
555
- return tt(n, r);
553
+ function wr(e, t, n) {
554
+ return e.concat(t).map(function(r) {
555
+ return et(r, n);
556
556
  });
557
557
  }
558
- function Hn(e, t) {
558
+ function Tr(e, t) {
559
559
  if (!t.customMerge)
560
- return Fe;
561
- var r = t.customMerge(e);
562
- return typeof r == "function" ? r : Fe;
560
+ return Ue;
561
+ var n = t.customMerge(e);
562
+ return typeof n == "function" ? n : Ue;
563
563
  }
564
- function An(e) {
564
+ function Hr(e) {
565
565
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
566
566
  return Object.propertyIsEnumerable.call(e, t);
567
567
  }) : [];
568
568
  }
569
- function Jt(e) {
570
- return Object.keys(e).concat(An(e));
569
+ function qt(e) {
570
+ return Object.keys(e).concat(Hr(e));
571
571
  }
572
- function Tr(e, t) {
572
+ function Tn(e, t) {
573
573
  try {
574
574
  return t in e;
575
575
  } catch {
576
576
  return !1;
577
577
  }
578
578
  }
579
- function Bn(e, t) {
580
- return Tr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
579
+ function Ar(e, t) {
580
+ return Tn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
581
581
  }
582
- function Sn(e, t, r) {
583
- var n = {};
584
- return r.isMergeableObject(e) && Jt(e).forEach(function(i) {
585
- n[i] = tt(e[i], r);
586
- }), Jt(t).forEach(function(i) {
587
- Bn(e, i) || (Tr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = tt(t[i], r));
588
- }), n;
589
- }
590
- function Fe(e, t, r) {
591
- r = r || {}, r.arrayMerge = r.arrayMerge || Tn, r.isMergeableObject = r.isMergeableObject || bn, r.cloneUnlessOtherwiseSpecified = tt;
592
- var n = Array.isArray(t), i = Array.isArray(e), a = n === i;
593
- return a ? n ? r.arrayMerge(e, t, r) : Sn(e, t, r) : tt(t, r);
594
- }
595
- Fe.all = function(t, r) {
582
+ function Br(e, t, n) {
583
+ var r = {};
584
+ return n.isMergeableObject(e) && qt(e).forEach(function(i) {
585
+ r[i] = et(e[i], n);
586
+ }), qt(t).forEach(function(i) {
587
+ Ar(e, i) || (Tn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Tr(i, n)(e[i], t[i], n) : r[i] = et(t[i], n));
588
+ }), r;
589
+ }
590
+ function Ue(e, t, n) {
591
+ n = n || {}, n.arrayMerge = n.arrayMerge || wr, n.isMergeableObject = n.isMergeableObject || gr, n.cloneUnlessOtherwiseSpecified = et;
592
+ var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
593
+ return a ? r ? n.arrayMerge(e, t, n) : Br(e, t, n) : et(t, n);
594
+ }
595
+ Ue.all = function(t, n) {
596
596
  if (!Array.isArray(t))
597
597
  throw new Error("first argument should be an array");
598
- return t.reduce(function(n, i) {
599
- return Fe(n, i, r);
598
+ return t.reduce(function(r, i) {
599
+ return Ue(r, i, n);
600
600
  }, {});
601
601
  };
602
- var Cn = Fe, Pn = Cn;
603
- const In = /* @__PURE__ */ gn(Pn);
604
- var It = function(e, t) {
605
- return It = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
606
- r.__proto__ = n;
607
- } || function(r, n) {
608
- for (var i in n)
609
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
610
- }, It(e, t);
602
+ var Sr = Ue, Cr = Sr;
603
+ const Pr = /* @__PURE__ */ dr(Cr);
604
+ /*! *****************************************************************************
605
+ Copyright (c) Microsoft Corporation.
606
+
607
+ Permission to use, copy, modify, and/or distribute this software for any
608
+ purpose with or without fee is hereby granted.
609
+
610
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
611
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
612
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
613
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
614
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
615
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
616
+ PERFORMANCE OF THIS SOFTWARE.
617
+ ***************************************************************************** */
618
+ var Ct = function(e, t) {
619
+ return Ct = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
620
+ n.__proto__ = r;
621
+ } || function(n, r) {
622
+ for (var i in r)
623
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
624
+ }, Ct(e, t);
611
625
  };
612
- function yt(e, t) {
626
+ function gt(e, t) {
613
627
  if (typeof t != "function" && t !== null)
614
628
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
615
- It(e, t);
616
- function r() {
629
+ Ct(e, t);
630
+ function n() {
617
631
  this.constructor = e;
618
632
  }
619
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
620
- }
621
- var ce = function() {
622
- return ce = Object.assign || function(t) {
623
- for (var r, n = 1, i = arguments.length; n < i; n++) {
624
- r = arguments[n];
625
- for (var a in r)
626
- Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
633
+ e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
634
+ }
635
+ var A = function() {
636
+ return A = Object.assign || function(t) {
637
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
638
+ n = arguments[r];
639
+ for (var a in n)
640
+ Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
627
641
  }
628
642
  return t;
629
- }, ce.apply(this, arguments);
643
+ }, A.apply(this, arguments);
630
644
  };
631
- function Nn(e, t) {
632
- var r = {};
633
- for (var n in e)
634
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
645
+ function Ir(e, t) {
646
+ var n = {};
647
+ for (var r in e)
648
+ Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
635
649
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
636
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
637
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
638
- return r;
650
+ for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
651
+ t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
652
+ return n;
639
653
  }
640
- function Tt(e, t, r) {
641
- if (r || arguments.length === 2)
642
- for (var n = 0, i = t.length, a; n < i; n++)
643
- (a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
644
- return e.concat(a || Array.prototype.slice.call(t));
654
+ function _t(e, t, n) {
655
+ if (arguments.length === 2)
656
+ for (var r = 0, i = t.length, a; r < i; r++)
657
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
658
+ return e.concat(a || t);
645
659
  }
646
- function Ht(e, t) {
647
- var r = t && t.cache ? t.cache : Fn, n = t && t.serializer ? t.serializer : Dn, i = t && t.strategy ? t.strategy : Mn;
660
+ function wt(e, t) {
661
+ var n = t && t.cache ? t.cache : Ur, r = t && t.serializer ? t.serializer : Rr, i = t && t.strategy ? t.strategy : Or;
648
662
  return i(e, {
649
- cache: r,
650
- serializer: n
663
+ cache: n,
664
+ serializer: r
651
665
  });
652
666
  }
653
- function On(e) {
667
+ function Nr(e) {
654
668
  return e == null || typeof e == "number" || typeof e == "boolean";
655
669
  }
656
- function Ln(e, t, r, n) {
657
- var i = On(n) ? n : r(n), a = t.get(i);
658
- return typeof a > "u" && (a = e.call(this, n), t.set(i, a)), a;
670
+ function Hn(e, t, n, r) {
671
+ var i = Nr(r) ? r : n(r), a = t.get(i);
672
+ return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
673
+ }
674
+ function An(e, t, n) {
675
+ var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
676
+ return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
659
677
  }
660
- function Hr(e, t, r) {
661
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), a = t.get(i);
662
- return typeof a > "u" && (a = e.apply(this, n), t.set(i, a)), a;
678
+ function Gt(e, t, n, r, i) {
679
+ return n.bind(t, e, r, i);
663
680
  }
664
- function Ar(e, t, r, n, i) {
665
- return r.bind(t, e, n, i);
681
+ function Or(e, t) {
682
+ var n = e.length === 1 ? Hn : An;
683
+ return Gt(e, this, n, t.cache.create(), t.serializer);
666
684
  }
667
- function Mn(e, t) {
668
- var r = e.length === 1 ? Ln : Hr;
669
- return Ar(e, this, r, t.cache.create(), t.serializer);
685
+ function Lr(e, t) {
686
+ return Gt(e, this, An, t.cache.create(), t.serializer);
670
687
  }
671
- function Rn(e, t) {
672
- return Ar(e, this, Hr, t.cache.create(), t.serializer);
688
+ function Mr(e, t) {
689
+ return Gt(e, this, Hn, t.cache.create(), t.serializer);
673
690
  }
674
- var Dn = function() {
691
+ var Rr = function() {
675
692
  return JSON.stringify(arguments);
676
- }, Un = (
693
+ }, Dr = (
677
694
  /** @class */
678
695
  function() {
679
696
  function e() {
@@ -681,82 +698,73 @@ var Dn = function() {
681
698
  }
682
699
  return e.prototype.get = function(t) {
683
700
  return this.cache[t];
684
- }, e.prototype.set = function(t, r) {
685
- this.cache[t] = r;
701
+ }, e.prototype.set = function(t, n) {
702
+ this.cache[t] = n;
686
703
  }, e;
687
704
  }()
688
- ), Fn = {
705
+ ), Ur = {
689
706
  create: function() {
690
- return new Un();
707
+ return new Dr();
691
708
  }
692
- }, At = {
693
- variadic: Rn
694
- }, mt = function() {
695
- return mt = Object.assign || function(t) {
696
- for (var r, n = 1, i = arguments.length; n < i; n++) {
697
- r = arguments[n];
698
- for (var a in r)
699
- Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
700
- }
701
- return t;
702
- }, mt.apply(this, arguments);
703
- };
704
- var _;
709
+ }, Tt = {
710
+ variadic: Lr,
711
+ monadic: Mr
712
+ }, _;
705
713
  (function(e) {
706
714
  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";
707
715
  })(_ || (_ = {}));
708
- var S;
716
+ var C;
709
717
  (function(e) {
710
718
  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";
711
- })(S || (S = {}));
712
- var Ge;
719
+ })(C || (C = {}));
720
+ var Fe;
713
721
  (function(e) {
714
722
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
715
- })(Ge || (Ge = {}));
716
- function Qt(e) {
717
- return e.type === S.literal;
723
+ })(Fe || (Fe = {}));
724
+ function Jt(e) {
725
+ return e.type === C.literal;
718
726
  }
719
- function Gn(e) {
720
- return e.type === S.argument;
727
+ function Fr(e) {
728
+ return e.type === C.argument;
721
729
  }
722
- function Br(e) {
723
- return e.type === S.number;
730
+ function Bn(e) {
731
+ return e.type === C.number;
724
732
  }
725
- function Sr(e) {
726
- return e.type === S.date;
733
+ function Sn(e) {
734
+ return e.type === C.date;
727
735
  }
728
- function Cr(e) {
729
- return e.type === S.time;
736
+ function Cn(e) {
737
+ return e.type === C.time;
730
738
  }
731
- function Pr(e) {
732
- return e.type === S.select;
739
+ function Pn(e) {
740
+ return e.type === C.select;
733
741
  }
734
- function Ir(e) {
735
- return e.type === S.plural;
742
+ function In(e) {
743
+ return e.type === C.plural;
736
744
  }
737
- function kn(e) {
738
- return e.type === S.pound;
745
+ function Gr(e) {
746
+ return e.type === C.pound;
739
747
  }
740
- function Nr(e) {
741
- return e.type === S.tag;
748
+ function Nn(e) {
749
+ return e.type === C.tag;
742
750
  }
743
- function Or(e) {
744
- return !!(e && typeof e == "object" && e.type === Ge.number);
751
+ function On(e) {
752
+ return !!(e && typeof e == "object" && e.type === Fe.number);
745
753
  }
746
- function Nt(e) {
747
- return !!(e && typeof e == "object" && e.type === Ge.dateTime);
754
+ function Pt(e) {
755
+ return !!(e && typeof e == "object" && e.type === Fe.dateTime);
748
756
  }
749
- var Lr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, jn = /(?:[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;
750
- function $n(e) {
757
+ var Ln = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kr = /(?:[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;
758
+ function $r(e) {
751
759
  var t = {};
752
- return e.replace(jn, function(r) {
753
- var n = r.length;
754
- switch (r[0]) {
760
+ return e.replace(kr, function(n) {
761
+ var r = n.length;
762
+ switch (n[0]) {
755
763
  case "G":
756
- t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
764
+ t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
757
765
  break;
758
766
  case "y":
759
- t.year = n === 2 ? "2-digit" : "numeric";
767
+ t.year = r === 2 ? "2-digit" : "numeric";
760
768
  break;
761
769
  case "Y":
762
770
  case "u":
@@ -768,30 +776,30 @@ function $n(e) {
768
776
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
769
777
  case "M":
770
778
  case "L":
771
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
779
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
772
780
  break;
773
781
  case "w":
774
782
  case "W":
775
783
  throw new RangeError("`w/W` (week) patterns are not supported");
776
784
  case "d":
777
- t.day = ["numeric", "2-digit"][n - 1];
785
+ t.day = ["numeric", "2-digit"][r - 1];
778
786
  break;
779
787
  case "D":
780
788
  case "F":
781
789
  case "g":
782
790
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
783
791
  case "E":
784
- t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
792
+ t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
785
793
  break;
786
794
  case "e":
787
- if (n < 4)
795
+ if (r < 4)
788
796
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
789
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
797
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
790
798
  break;
791
799
  case "c":
792
- if (n < 4)
800
+ if (r < 4)
793
801
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
794
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
802
+ t.weekday = ["short", "long", "narrow", "short"][r - 4];
795
803
  break;
796
804
  case "a":
797
805
  t.hour12 = !0;
@@ -800,32 +808,32 @@ function $n(e) {
800
808
  case "B":
801
809
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
802
810
  case "h":
803
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
811
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
804
812
  break;
805
813
  case "H":
806
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
814
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
807
815
  break;
808
816
  case "K":
809
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
817
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
810
818
  break;
811
819
  case "k":
812
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
820
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
813
821
  break;
814
822
  case "j":
815
823
  case "J":
816
824
  case "C":
817
825
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
818
826
  case "m":
819
- t.minute = ["numeric", "2-digit"][n - 1];
827
+ t.minute = ["numeric", "2-digit"][r - 1];
820
828
  break;
821
829
  case "s":
822
- t.second = ["numeric", "2-digit"][n - 1];
830
+ t.second = ["numeric", "2-digit"][r - 1];
823
831
  break;
824
832
  case "S":
825
833
  case "A":
826
834
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
827
835
  case "z":
828
- t.timeZoneName = n < 4 ? "short" : "long";
836
+ t.timeZoneName = r < 4 ? "short" : "long";
829
837
  break;
830
838
  case "Z":
831
839
  case "O":
@@ -838,24 +846,14 @@ function $n(e) {
838
846
  return "";
839
847
  }), t;
840
848
  }
841
- var N = function() {
842
- return N = Object.assign || function(t) {
843
- for (var r, n = 1, i = arguments.length; n < i; n++) {
844
- r = arguments[n];
845
- for (var a in r)
846
- Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
847
- }
848
- return t;
849
- }, N.apply(this, arguments);
850
- };
851
- var Vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
852
- function zn(e) {
849
+ var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
850
+ function Vr(e) {
853
851
  if (e.length === 0)
854
852
  throw new Error("Number skeleton cannot be empty");
855
- for (var t = e.split(Vn).filter(function(d) {
853
+ for (var t = e.split(jr).filter(function(d) {
856
854
  return d.length > 0;
857
- }), r = [], n = 0, i = t; n < i.length; n++) {
858
- var a = i[n], o = a.split("/");
855
+ }), n = [], r = 0, i = t; r < i.length; r++) {
856
+ var a = i[r], o = a.split("/");
859
857
  if (o.length === 0)
860
858
  throw new Error("Invalid number skeleton");
861
859
  for (var s = o[0], c = o.slice(1), l = 0, u = c; l < u.length; l++) {
@@ -863,21 +861,21 @@ function zn(e) {
863
861
  if (h.length === 0)
864
862
  throw new Error("Invalid number skeleton");
865
863
  }
866
- r.push({ stem: s, options: c });
864
+ n.push({ stem: s, options: c });
867
865
  }
868
- return r;
866
+ return n;
869
867
  }
870
- function Xn(e) {
868
+ function zr(e) {
871
869
  return e.replace(/^(.*?)-/, "");
872
870
  }
873
- var Yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mr = /^(@+)?(\+|#+)?[rs]?$/g, Wn = /(\*)(0+)|(#+)(0+)|(0+)/g, Rr = /^(0+)$/;
874
- function Kt(e) {
871
+ var Qt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mn = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rn = /^(0+)$/;
872
+ function Yt(e) {
875
873
  var t = {};
876
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Mr, function(r, n, i) {
877
- return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
874
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Mn, function(n, r, i) {
875
+ 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)), "";
878
876
  }), t;
879
877
  }
880
- function Dr(e) {
878
+ function Dn(e) {
881
879
  switch (e) {
882
880
  case "sign-auto":
883
881
  return {
@@ -917,27 +915,27 @@ function Dr(e) {
917
915
  };
918
916
  }
919
917
  }
920
- function Zn(e) {
918
+ function Wr(e) {
921
919
  var t;
922
920
  if (e[0] === "E" && e[1] === "E" ? (t = {
923
921
  notation: "engineering"
924
922
  }, e = e.slice(2)) : e[0] === "E" && (t = {
925
923
  notation: "scientific"
926
924
  }, e = e.slice(1)), t) {
927
- var r = e.slice(0, 2);
928
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rr.test(e))
925
+ var n = e.slice(0, 2);
926
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rn.test(e))
929
927
  throw new Error("Malformed concise eng/scientific notation");
930
928
  t.minimumIntegerDigits = e.length;
931
929
  }
932
930
  return t;
933
931
  }
934
- function er(e) {
935
- var t = {}, r = Dr(e);
936
- return r || t;
932
+ function Kt(e) {
933
+ var t = {}, n = Dn(e);
934
+ return n || t;
937
935
  }
938
- function qn(e) {
939
- for (var t = {}, r = 0, n = e; r < n.length; r++) {
940
- var i = n[r];
936
+ function Zr(e) {
937
+ for (var t = {}, n = 0, r = e; n < r.length; n++) {
938
+ var i = r[n];
941
939
  switch (i.stem) {
942
940
  case "percent":
943
941
  case "%":
@@ -959,7 +957,7 @@ function qn(e) {
959
957
  continue;
960
958
  case "measure-unit":
961
959
  case "unit":
962
- t.style = "unit", t.unit = Xn(i.options[0]);
960
+ t.style = "unit", t.unit = zr(i.options[0]);
963
961
  continue;
964
962
  case "compact-short":
965
963
  case "K":
@@ -970,13 +968,13 @@ function qn(e) {
970
968
  t.notation = "compact", t.compactDisplay = "long";
971
969
  continue;
972
970
  case "scientific":
973
- t = N(N(N({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
974
- return N(N({}, c), er(l));
971
+ t = A(A(A({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
972
+ return A(A({}, c), Kt(l));
975
973
  }, {}));
976
974
  continue;
977
975
  case "engineering":
978
- t = N(N(N({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
979
- return N(N({}, c), er(l));
976
+ t = A(A(A({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
977
+ return A(A({}, c), Kt(l));
980
978
  }, {}));
981
979
  continue;
982
980
  case "notation-simple":
@@ -1021,7 +1019,7 @@ function qn(e) {
1021
1019
  case "integer-width":
1022
1020
  if (i.options.length > 1)
1023
1021
  throw new RangeError("integer-width stems only accept a single optional option");
1024
- i.options[0].replace(Wn, function(c, l, u, h, d, b) {
1022
+ i.options[0].replace(Xr, function(c, l, u, h, d, b) {
1025
1023
  if (l)
1026
1024
  t.minimumIntegerDigits = u.length;
1027
1025
  else {
@@ -1034,32 +1032,32 @@ function qn(e) {
1034
1032
  });
1035
1033
  continue;
1036
1034
  }
1037
- if (Rr.test(i.stem)) {
1035
+ if (Rn.test(i.stem)) {
1038
1036
  t.minimumIntegerDigits = i.stem.length;
1039
1037
  continue;
1040
1038
  }
1041
- if (Yt.test(i.stem)) {
1039
+ if (Qt.test(i.stem)) {
1042
1040
  if (i.options.length > 1)
1043
1041
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1044
- i.stem.replace(Yt, function(c, l, u, h, d, b) {
1042
+ i.stem.replace(Qt, function(c, l, u, h, d, b) {
1045
1043
  return u === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1046
1044
  });
1047
1045
  var a = i.options[0];
1048
- a === "w" ? t = N(N({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = N(N({}, t), Kt(a)));
1046
+ a === "w" ? t = A(A({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = A(A({}, t), Yt(a)));
1049
1047
  continue;
1050
1048
  }
1051
- if (Mr.test(i.stem)) {
1052
- t = N(N({}, t), Kt(i.stem));
1049
+ if (Mn.test(i.stem)) {
1050
+ t = A(A({}, t), Yt(i.stem));
1053
1051
  continue;
1054
1052
  }
1055
- var o = Dr(i.stem);
1056
- o && (t = N(N({}, t), o));
1057
- var s = Zn(i.stem);
1058
- s && (t = N(N({}, t), s));
1053
+ var o = Dn(i.stem);
1054
+ o && (t = A(A({}, t), o));
1055
+ var s = Wr(i.stem);
1056
+ s && (t = A(A({}, t), s));
1059
1057
  }
1060
1058
  return t;
1061
1059
  }
1062
- var ut = {
1060
+ var st = {
1063
1061
  "001": [
1064
1062
  "H",
1065
1063
  "h"
@@ -2474,23 +2472,23 @@ var ut = {
2474
2472
  "h"
2475
2473
  ]
2476
2474
  };
2477
- function Jn(e, t) {
2478
- for (var r = "", n = 0; n < e.length; n++) {
2479
- var i = e.charAt(n);
2475
+ function qr(e, t) {
2476
+ for (var n = "", r = 0; r < e.length; r++) {
2477
+ var i = e.charAt(r);
2480
2478
  if (i === "j") {
2481
- for (var a = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2482
- a++, n++;
2483
- var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = "a", l = Qn(t);
2479
+ for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2480
+ a++, r++;
2481
+ var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = "a", l = Jr(t);
2484
2482
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2485
- r += c;
2483
+ n += c;
2486
2484
  for (; o-- > 0; )
2487
- r = l + r;
2485
+ n = l + n;
2488
2486
  } else
2489
- i === "J" ? r += "H" : r += i;
2487
+ i === "J" ? n += "H" : n += i;
2490
2488
  }
2491
- return r;
2489
+ return n;
2492
2490
  }
2493
- function Qn(e) {
2491
+ function Jr(e) {
2494
2492
  var t = e.hourCycle;
2495
2493
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2496
2494
  e.hourCycles && // @ts-ignore
@@ -2507,73 +2505,73 @@ function Qn(e) {
2507
2505
  default:
2508
2506
  throw new Error("Invalid hourCycle");
2509
2507
  }
2510
- var r = e.language, n;
2511
- r !== "root" && (n = e.maximize().region);
2512
- var i = ut[n || ""] || ut[r || ""] || ut["".concat(r, "-001")] || ut["001"];
2508
+ var n = e.language, r;
2509
+ n !== "root" && (r = e.maximize().region);
2510
+ var i = st[r || ""] || st[n || ""] || st["".concat(n, "-001")] || st["001"];
2513
2511
  return i[0];
2514
2512
  }
2515
- var Bt, Yn = new RegExp("^".concat(Lr.source, "*")), Kn = new RegExp("".concat(Lr.source, "*$"));
2513
+ var Ht, Qr = new RegExp("^".concat(Ln.source, "*")), Yr = new RegExp("".concat(Ln.source, "*$"));
2516
2514
  function w(e, t) {
2517
2515
  return { start: e, end: t };
2518
2516
  }
2519
- var ei = !!String.prototype.startsWith && "_a".startsWith("a", 1), ti = !!String.fromCodePoint, ri = !!Object.fromEntries, ni = !!String.prototype.codePointAt, ii = !!String.prototype.trimStart, ai = !!String.prototype.trimEnd, oi = !!Number.isSafeInteger, si = oi ? Number.isSafeInteger : function(e) {
2517
+ var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ni = !!String.prototype.codePointAt, ri = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, ai = !!Number.isSafeInteger, oi = ai ? Number.isSafeInteger : function(e) {
2520
2518
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2521
- }, Ot = !0;
2519
+ }, It = !0;
2522
2520
  try {
2523
- var ui = Fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2524
- Ot = ((Bt = ui.exec("a")) === null || Bt === void 0 ? void 0 : Bt[0]) === "a";
2521
+ var si = Fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2522
+ It = ((Ht = si.exec("a")) === null || Ht === void 0 ? void 0 : Ht[0]) === "a";
2525
2523
  } catch {
2526
- Ot = !1;
2524
+ It = !1;
2527
2525
  }
2528
- var tr = ei ? (
2526
+ var en = Kr ? (
2529
2527
  // Native
2530
- function(t, r, n) {
2531
- return t.startsWith(r, n);
2528
+ function(t, n, r) {
2529
+ return t.startsWith(n, r);
2532
2530
  }
2533
2531
  ) : (
2534
2532
  // For IE11
2535
- function(t, r, n) {
2536
- return t.slice(n, n + r.length) === r;
2533
+ function(t, n, r) {
2534
+ return t.slice(r, r + n.length) === n;
2537
2535
  }
2538
- ), Lt = ti ? String.fromCodePoint : (
2536
+ ), Nt = ei ? String.fromCodePoint : (
2539
2537
  // IE11
2540
2538
  function() {
2541
- for (var t = [], r = 0; r < arguments.length; r++)
2542
- t[r] = arguments[r];
2543
- for (var n = "", i = t.length, a = 0, o; i > a; ) {
2539
+ for (var t = [], n = 0; n < arguments.length; n++)
2540
+ t[n] = arguments[n];
2541
+ for (var r = "", i = t.length, a = 0, o; i > a; ) {
2544
2542
  if (o = t[a++], o > 1114111)
2545
2543
  throw RangeError(o + " is not a valid code point");
2546
- n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2544
+ r += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
2547
2545
  }
2548
- return n;
2546
+ return r;
2549
2547
  }
2550
- ), rr = (
2548
+ ), tn = (
2551
2549
  // native
2552
- ri ? Object.fromEntries : (
2550
+ ti ? Object.fromEntries : (
2553
2551
  // Ponyfill
2554
2552
  function(t) {
2555
- for (var r = {}, n = 0, i = t; n < i.length; n++) {
2556
- var a = i[n], o = a[0], s = a[1];
2557
- r[o] = s;
2553
+ for (var n = {}, r = 0, i = t; r < i.length; r++) {
2554
+ var a = i[r], o = a[0], s = a[1];
2555
+ n[o] = s;
2558
2556
  }
2559
- return r;
2557
+ return n;
2560
2558
  }
2561
2559
  )
2562
- ), Ur = ni ? (
2560
+ ), Un = ni ? (
2563
2561
  // Native
2564
- function(t, r) {
2565
- return t.codePointAt(r);
2562
+ function(t, n) {
2563
+ return t.codePointAt(n);
2566
2564
  }
2567
2565
  ) : (
2568
2566
  // IE 11
2569
- function(t, r) {
2570
- var n = t.length;
2571
- if (!(r < 0 || r >= n)) {
2572
- var i = t.charCodeAt(r), a;
2573
- return i < 55296 || i > 56319 || r + 1 === n || (a = t.charCodeAt(r + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2567
+ function(t, n) {
2568
+ var r = t.length;
2569
+ if (!(n < 0 || n >= r)) {
2570
+ var i = t.charCodeAt(n), a;
2571
+ return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2574
2572
  }
2575
2573
  }
2576
- ), li = ii ? (
2574
+ ), ui = ri ? (
2577
2575
  // Native
2578
2576
  function(t) {
2579
2577
  return t.trimStart();
@@ -2581,9 +2579,9 @@ var tr = ei ? (
2581
2579
  ) : (
2582
2580
  // Ponyfill
2583
2581
  function(t) {
2584
- return t.replace(Yn, "");
2582
+ return t.replace(Qr, "");
2585
2583
  }
2586
- ), ci = ai ? (
2584
+ ), li = ii ? (
2587
2585
  // Native
2588
2586
  function(t) {
2589
2587
  return t.trimEnd();
@@ -2591,69 +2589,69 @@ var tr = ei ? (
2591
2589
  ) : (
2592
2590
  // Ponyfill
2593
2591
  function(t) {
2594
- return t.replace(Kn, "");
2592
+ return t.replace(Yr, "");
2595
2593
  }
2596
2594
  );
2597
- function Fr(e, t) {
2595
+ function Fn(e, t) {
2598
2596
  return new RegExp(e, t);
2599
2597
  }
2600
- var Mt;
2601
- if (Ot) {
2602
- var nr = Fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2603
- Mt = function(t, r) {
2604
- var n;
2605
- nr.lastIndex = r;
2606
- var i = nr.exec(t);
2607
- return (n = i[1]) !== null && n !== void 0 ? n : "";
2598
+ var Ot;
2599
+ if (It) {
2600
+ var nn = Fn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2601
+ Ot = function(t, n) {
2602
+ var r;
2603
+ nn.lastIndex = n;
2604
+ var i = nn.exec(t);
2605
+ return (r = i[1]) !== null && r !== void 0 ? r : "";
2608
2606
  };
2609
2607
  } else
2610
- Mt = function(t, r) {
2611
- for (var n = []; ; ) {
2612
- var i = Ur(t, r);
2613
- if (i === void 0 || Gr(i) || mi(i))
2608
+ Ot = function(t, n) {
2609
+ for (var r = []; ; ) {
2610
+ var i = Un(t, n);
2611
+ if (i === void 0 || Gn(i) || pi(i))
2614
2612
  break;
2615
- n.push(i), r += i >= 65536 ? 2 : 1;
2613
+ r.push(i), n += i >= 65536 ? 2 : 1;
2616
2614
  }
2617
- return Lt.apply(void 0, n);
2615
+ return Nt.apply(void 0, r);
2618
2616
  };
2619
- var hi = (
2617
+ var ci = (
2620
2618
  /** @class */
2621
2619
  function() {
2622
- function e(t, r) {
2623
- r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
2620
+ function e(t, n) {
2621
+ n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
2624
2622
  }
2625
2623
  return e.prototype.parse = function() {
2626
2624
  if (this.offset() !== 0)
2627
2625
  throw Error("parser can only be used once");
2628
2626
  return this.parseMessage(0, "", !1);
2629
- }, e.prototype.parseMessage = function(t, r, n) {
2627
+ }, e.prototype.parseMessage = function(t, n, r) {
2630
2628
  for (var i = []; !this.isEOF(); ) {
2631
2629
  var a = this.char();
2632
2630
  if (a === 123) {
2633
- var o = this.parseArgument(t, n);
2631
+ var o = this.parseArgument(t, r);
2634
2632
  if (o.err)
2635
2633
  return o;
2636
2634
  i.push(o.val);
2637
2635
  } else {
2638
2636
  if (a === 125 && t > 0)
2639
2637
  break;
2640
- if (a === 35 && (r === "plural" || r === "selectordinal")) {
2638
+ if (a === 35 && (n === "plural" || n === "selectordinal")) {
2641
2639
  var s = this.clonePosition();
2642
2640
  this.bump(), i.push({
2643
- type: S.pound,
2641
+ type: C.pound,
2644
2642
  location: w(s, this.clonePosition())
2645
2643
  });
2646
2644
  } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2647
- if (n)
2645
+ if (r)
2648
2646
  break;
2649
2647
  return this.error(_.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
2650
- } else if (a === 60 && !this.ignoreTag && Rt(this.peek() || 0)) {
2651
- var o = this.parseTag(t, r);
2648
+ } else if (a === 60 && !this.ignoreTag && Lt(this.peek() || 0)) {
2649
+ var o = this.parseTag(t, n);
2652
2650
  if (o.err)
2653
2651
  return o;
2654
2652
  i.push(o.val);
2655
2653
  } else {
2656
- var o = this.parseLiteral(t, r);
2654
+ var o = this.parseLiteral(t, n);
2657
2655
  if (o.err)
2658
2656
  return o;
2659
2657
  i.push(o.val);
@@ -2661,54 +2659,54 @@ var hi = (
2661
2659
  }
2662
2660
  }
2663
2661
  return { val: i, err: null };
2664
- }, e.prototype.parseTag = function(t, r) {
2665
- var n = this.clonePosition();
2662
+ }, e.prototype.parseTag = function(t, n) {
2663
+ var r = this.clonePosition();
2666
2664
  this.bump();
2667
2665
  var i = this.parseTagName();
2668
2666
  if (this.bumpSpace(), this.bumpIf("/>"))
2669
2667
  return {
2670
2668
  val: {
2671
- type: S.literal,
2669
+ type: C.literal,
2672
2670
  value: "<".concat(i, "/>"),
2673
- location: w(n, this.clonePosition())
2671
+ location: w(r, this.clonePosition())
2674
2672
  },
2675
2673
  err: null
2676
2674
  };
2677
2675
  if (this.bumpIf(">")) {
2678
- var a = this.parseMessage(t + 1, r, !0);
2676
+ var a = this.parseMessage(t + 1, n, !0);
2679
2677
  if (a.err)
2680
2678
  return a;
2681
2679
  var o = a.val, s = this.clonePosition();
2682
2680
  if (this.bumpIf("</")) {
2683
- if (this.isEOF() || !Rt(this.char()))
2681
+ if (this.isEOF() || !Lt(this.char()))
2684
2682
  return this.error(_.INVALID_TAG, w(s, this.clonePosition()));
2685
2683
  var c = this.clonePosition(), l = this.parseTagName();
2686
2684
  return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, w(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2687
2685
  val: {
2688
- type: S.tag,
2686
+ type: C.tag,
2689
2687
  value: i,
2690
2688
  children: o,
2691
- location: w(n, this.clonePosition())
2689
+ location: w(r, this.clonePosition())
2692
2690
  },
2693
2691
  err: null
2694
2692
  } : this.error(_.INVALID_TAG, w(s, this.clonePosition())));
2695
2693
  } else
2696
- return this.error(_.UNCLOSED_TAG, w(n, this.clonePosition()));
2694
+ return this.error(_.UNCLOSED_TAG, w(r, this.clonePosition()));
2697
2695
  } else
2698
- return this.error(_.INVALID_TAG, w(n, this.clonePosition()));
2696
+ return this.error(_.INVALID_TAG, w(r, this.clonePosition()));
2699
2697
  }, e.prototype.parseTagName = function() {
2700
2698
  var t = this.offset();
2701
- for (this.bump(); !this.isEOF() && pi(this.char()); )
2699
+ for (this.bump(); !this.isEOF() && fi(this.char()); )
2702
2700
  this.bump();
2703
2701
  return this.message.slice(t, this.offset());
2704
- }, e.prototype.parseLiteral = function(t, r) {
2705
- for (var n = this.clonePosition(), i = ""; ; ) {
2706
- var a = this.tryParseQuote(r);
2702
+ }, e.prototype.parseLiteral = function(t, n) {
2703
+ for (var r = this.clonePosition(), i = ""; ; ) {
2704
+ var a = this.tryParseQuote(n);
2707
2705
  if (a) {
2708
2706
  i += a;
2709
2707
  continue;
2710
2708
  }
2711
- var o = this.tryParseUnquoted(t, r);
2709
+ var o = this.tryParseUnquoted(t, n);
2712
2710
  if (o) {
2713
2711
  i += o;
2714
2712
  continue;
@@ -2720,14 +2718,14 @@ var hi = (
2720
2718
  }
2721
2719
  break;
2722
2720
  }
2723
- var c = w(n, this.clonePosition());
2721
+ var c = w(r, this.clonePosition());
2724
2722
  return {
2725
- val: { type: S.literal, value: i, location: c },
2723
+ val: { type: C.literal, value: i, location: c },
2726
2724
  err: null
2727
2725
  };
2728
2726
  }, e.prototype.tryParseLeftAngleBracket = function() {
2729
2727
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2730
- !fi(this.peek() || 0)) ? (this.bump(), "<") : null;
2728
+ !hi(this.peek() || 0)) ? (this.bump(), "<") : null;
2731
2729
  }, e.prototype.tryParseQuote = function(t) {
2732
2730
  if (this.isEOF() || this.char() !== 39)
2733
2731
  return null;
@@ -2747,59 +2745,59 @@ var hi = (
2747
2745
  return null;
2748
2746
  }
2749
2747
  this.bump();
2750
- var r = [this.char()];
2748
+ var n = [this.char()];
2751
2749
  for (this.bump(); !this.isEOF(); ) {
2752
- var n = this.char();
2753
- if (n === 39)
2750
+ var r = this.char();
2751
+ if (r === 39)
2754
2752
  if (this.peek() === 39)
2755
- r.push(39), this.bump();
2753
+ n.push(39), this.bump();
2756
2754
  else {
2757
2755
  this.bump();
2758
2756
  break;
2759
2757
  }
2760
2758
  else
2761
- r.push(n);
2759
+ n.push(r);
2762
2760
  this.bump();
2763
2761
  }
2764
- return Lt.apply(void 0, r);
2765
- }, e.prototype.tryParseUnquoted = function(t, r) {
2762
+ return Nt.apply(void 0, n);
2763
+ }, e.prototype.tryParseUnquoted = function(t, n) {
2766
2764
  if (this.isEOF())
2767
2765
  return null;
2768
- var n = this.char();
2769
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Lt(n));
2770
- }, e.prototype.parseArgument = function(t, r) {
2771
- var n = this.clonePosition();
2766
+ var r = this.char();
2767
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Nt(r));
2768
+ }, e.prototype.parseArgument = function(t, n) {
2769
+ var r = this.clonePosition();
2772
2770
  if (this.bump(), this.bumpSpace(), this.isEOF())
2773
- return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
2771
+ return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition()));
2774
2772
  if (this.char() === 125)
2775
- return this.bump(), this.error(_.EMPTY_ARGUMENT, w(n, this.clonePosition()));
2773
+ return this.bump(), this.error(_.EMPTY_ARGUMENT, w(r, this.clonePosition()));
2776
2774
  var i = this.parseIdentifierIfPossible().value;
2777
2775
  if (!i)
2778
- return this.error(_.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
2776
+ return this.error(_.MALFORMED_ARGUMENT, w(r, this.clonePosition()));
2779
2777
  if (this.bumpSpace(), this.isEOF())
2780
- return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition()));
2778
+ return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition()));
2781
2779
  switch (this.char()) {
2782
2780
  case 125:
2783
2781
  return this.bump(), {
2784
2782
  val: {
2785
- type: S.argument,
2783
+ type: C.argument,
2786
2784
  // value does not include the opening and closing braces.
2787
2785
  value: i,
2788
- location: w(n, this.clonePosition())
2786
+ location: w(r, this.clonePosition())
2789
2787
  },
2790
2788
  err: null
2791
2789
  };
2792
2790
  case 44:
2793
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2791
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2794
2792
  default:
2795
- return this.error(_.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
2793
+ return this.error(_.MALFORMED_ARGUMENT, w(r, this.clonePosition()));
2796
2794
  }
2797
2795
  }, e.prototype.parseIdentifierIfPossible = function() {
2798
- var t = this.clonePosition(), r = this.offset(), n = Mt(this.message, r), i = r + n.length;
2796
+ var t = this.clonePosition(), n = this.offset(), r = Ot(this.message, n), i = n + r.length;
2799
2797
  this.bumpTo(i);
2800
2798
  var a = this.clonePosition(), o = w(t, a);
2801
- return { value: n, location: o };
2802
- }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2799
+ return { value: r, location: o };
2800
+ }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2803
2801
  var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2804
2802
  switch (s) {
2805
2803
  case "":
@@ -2814,46 +2812,46 @@ var hi = (
2814
2812
  var u = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
2815
2813
  if (h.err)
2816
2814
  return h;
2817
- var d = ci(h.val);
2815
+ var d = li(h.val);
2818
2816
  if (d.length === 0)
2819
2817
  return this.error(_.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
2820
2818
  var b = w(u, this.clonePosition());
2821
2819
  l = { style: d, styleLocation: b };
2822
2820
  }
2823
- var v = this.tryParseArgumentClose(i);
2824
- if (v.err)
2825
- return v;
2826
- var P = w(i, this.clonePosition());
2827
- if (l && tr(l?.style, "::", 0)) {
2828
- var F = li(l.style.slice(2));
2821
+ var x = this.tryParseArgumentClose(i);
2822
+ if (x.err)
2823
+ return x;
2824
+ var I = w(i, this.clonePosition());
2825
+ if (l && en(l?.style, "::", 0)) {
2826
+ var F = ui(l.style.slice(2));
2829
2827
  if (s === "number") {
2830
2828
  var h = this.parseNumberSkeletonFromString(F, l.styleLocation);
2831
2829
  return h.err ? h : {
2832
- val: { type: S.number, value: n, location: P, style: h.val },
2830
+ val: { type: C.number, value: r, location: I, style: h.val },
2833
2831
  err: null
2834
2832
  };
2835
2833
  } else {
2836
2834
  if (F.length === 0)
2837
- return this.error(_.EXPECT_DATE_TIME_SKELETON, P);
2838
- var I = F;
2839
- this.locale && (I = Jn(F, this.locale));
2835
+ return this.error(_.EXPECT_DATE_TIME_SKELETON, I);
2836
+ var N = F;
2837
+ this.locale && (N = qr(F, this.locale));
2840
2838
  var d = {
2841
- type: Ge.dateTime,
2842
- pattern: I,
2839
+ type: Fe.dateTime,
2840
+ pattern: N,
2843
2841
  location: l.styleLocation,
2844
- parsedOptions: this.shouldParseSkeletons ? $n(I) : {}
2845
- }, D = s === "date" ? S.date : S.time;
2842
+ parsedOptions: this.shouldParseSkeletons ? $r(N) : {}
2843
+ }, D = s === "date" ? C.date : C.time;
2846
2844
  return {
2847
- val: { type: D, value: n, location: P, style: d },
2845
+ val: { type: D, value: r, location: I, style: d },
2848
2846
  err: null
2849
2847
  };
2850
2848
  }
2851
2849
  }
2852
2850
  return {
2853
2851
  val: {
2854
- type: s === "number" ? S.number : s === "date" ? S.date : S.time,
2855
- value: n,
2856
- location: P,
2852
+ type: s === "number" ? C.number : s === "date" ? C.date : C.time,
2853
+ value: r,
2854
+ location: I,
2857
2855
  style: (a = l?.style) !== null && a !== void 0 ? a : null
2858
2856
  },
2859
2857
  err: null
@@ -2864,38 +2862,38 @@ var hi = (
2864
2862
  case "select": {
2865
2863
  var U = this.clonePosition();
2866
2864
  if (this.bumpSpace(), !this.bumpIf(","))
2867
- return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(U, mt({}, U)));
2865
+ return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(U, A({}, U)));
2868
2866
  this.bumpSpace();
2869
- var C = this.parseIdentifierIfPossible(), O = 0;
2870
- if (s !== "select" && C.value === "offset") {
2867
+ var P = this.parseIdentifierIfPossible(), O = 0;
2868
+ if (s !== "select" && P.value === "offset") {
2871
2869
  if (!this.bumpIf(":"))
2872
2870
  return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w(this.clonePosition(), this.clonePosition()));
2873
2871
  this.bumpSpace();
2874
2872
  var h = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2875
2873
  if (h.err)
2876
2874
  return h;
2877
- this.bumpSpace(), C = this.parseIdentifierIfPossible(), O = h.val;
2875
+ this.bumpSpace(), P = this.parseIdentifierIfPossible(), O = h.val;
2878
2876
  }
2879
- var q = this.tryParsePluralOrSelectOptions(t, s, r, C);
2877
+ var q = this.tryParsePluralOrSelectOptions(t, s, n, P);
2880
2878
  if (q.err)
2881
2879
  return q;
2882
- var v = this.tryParseArgumentClose(i);
2883
- if (v.err)
2884
- return v;
2880
+ var x = this.tryParseArgumentClose(i);
2881
+ if (x.err)
2882
+ return x;
2885
2883
  var te = w(i, this.clonePosition());
2886
2884
  return s === "select" ? {
2887
2885
  val: {
2888
- type: S.select,
2889
- value: n,
2890
- options: rr(q.val),
2886
+ type: C.select,
2887
+ value: r,
2888
+ options: tn(q.val),
2891
2889
  location: te
2892
2890
  },
2893
2891
  err: null
2894
2892
  } : {
2895
2893
  val: {
2896
- type: S.plural,
2897
- value: n,
2898
- options: rr(q.val),
2894
+ type: C.plural,
2895
+ value: r,
2896
+ options: tn(q.val),
2899
2897
  offset: O,
2900
2898
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2901
2899
  location: te
@@ -2909,9 +2907,9 @@ var hi = (
2909
2907
  }, e.prototype.tryParseArgumentClose = function(t) {
2910
2908
  return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, w(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2911
2909
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2912
- for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2913
- var n = this.char();
2914
- switch (n) {
2910
+ for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2911
+ var r = this.char();
2912
+ switch (r) {
2915
2913
  case 39: {
2916
2914
  this.bump();
2917
2915
  var i = this.clonePosition();
@@ -2929,7 +2927,7 @@ var hi = (
2929
2927
  t -= 1;
2930
2928
  else
2931
2929
  return {
2932
- val: this.message.slice(r.offset, this.offset()),
2930
+ val: this.message.slice(n.offset, this.offset()),
2933
2931
  err: null
2934
2932
  };
2935
2933
  break;
@@ -2940,30 +2938,30 @@ var hi = (
2940
2938
  }
2941
2939
  }
2942
2940
  return {
2943
- val: this.message.slice(r.offset, this.offset()),
2941
+ val: this.message.slice(n.offset, this.offset()),
2944
2942
  err: null
2945
2943
  };
2946
- }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2947
- var n = [];
2944
+ }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2945
+ var r = [];
2948
2946
  try {
2949
- n = zn(t);
2947
+ r = Vr(t);
2950
2948
  } catch {
2951
- return this.error(_.INVALID_NUMBER_SKELETON, r);
2949
+ return this.error(_.INVALID_NUMBER_SKELETON, n);
2952
2950
  }
2953
2951
  return {
2954
2952
  val: {
2955
- type: Ge.number,
2956
- tokens: n,
2957
- location: r,
2958
- parsedOptions: this.shouldParseSkeletons ? qn(n) : {}
2953
+ type: Fe.number,
2954
+ tokens: r,
2955
+ location: n,
2956
+ parsedOptions: this.shouldParseSkeletons ? Zr(r) : {}
2959
2957
  },
2960
2958
  err: null
2961
2959
  };
2962
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2960
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2963
2961
  for (var a, o = !1, s = [], c = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
2964
2962
  if (l.length === 0) {
2965
2963
  var h = this.clonePosition();
2966
- if (r !== "select" && this.bumpIf("=")) {
2964
+ if (n !== "select" && this.bumpIf("=")) {
2967
2965
  var d = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
2968
2966
  if (d.err)
2969
2967
  return d;
@@ -2972,29 +2970,29 @@ var hi = (
2972
2970
  break;
2973
2971
  }
2974
2972
  if (c.has(l))
2975
- return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2973
+ return this.error(n === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2976
2974
  l === "other" && (o = !0), this.bumpSpace();
2977
2975
  var b = this.clonePosition();
2978
2976
  if (!this.bumpIf("{"))
2979
- return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
2980
- var v = this.parseMessage(t + 1, r, n);
2981
- if (v.err)
2982
- return v;
2983
- var P = this.tryParseArgumentClose(b);
2984
- if (P.err)
2985
- return P;
2977
+ return this.error(n === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, w(this.clonePosition(), this.clonePosition()));
2978
+ var x = this.parseMessage(t + 1, n, r);
2979
+ if (x.err)
2980
+ return x;
2981
+ var I = this.tryParseArgumentClose(b);
2982
+ if (I.err)
2983
+ return I;
2986
2984
  s.push([
2987
2985
  l,
2988
2986
  {
2989
- value: v.val,
2987
+ value: x.val,
2990
2988
  location: w(b, this.clonePosition())
2991
2989
  }
2992
2990
  ]), c.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, u = a.location;
2993
2991
  }
2994
- return s.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2995
- }, e.prototype.tryParseDecimalInteger = function(t, r) {
2996
- var n = 1, i = this.clonePosition();
2997
- this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2992
+ return s.length === 0 ? this.error(n === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, w(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, w(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2993
+ }, e.prototype.tryParseDecimalInteger = function(t, n) {
2994
+ var r = 1, i = this.clonePosition();
2995
+ this.bumpIf("+") || this.bumpIf("-") && (r = -1);
2998
2996
  for (var a = !1, o = 0; !this.isEOF(); ) {
2999
2997
  var s = this.char();
3000
2998
  if (s >= 48 && s <= 57)
@@ -3003,7 +3001,7 @@ var hi = (
3003
3001
  break;
3004
3002
  }
3005
3003
  var c = w(i, this.clonePosition());
3006
- return a ? (o *= n, si(o) ? { val: o, err: null } : this.error(r, c)) : this.error(t, c);
3004
+ return a ? (o *= r, oi(o) ? { val: o, err: null } : this.error(n, c)) : this.error(t, c);
3007
3005
  }, e.prototype.offset = function() {
3008
3006
  return this.position.offset;
3009
3007
  }, e.prototype.isEOF = function() {
@@ -3018,17 +3016,17 @@ var hi = (
3018
3016
  var t = this.position.offset;
3019
3017
  if (t >= this.message.length)
3020
3018
  throw Error("out of bound");
3021
- var r = Ur(this.message, t);
3022
- if (r === void 0)
3019
+ var n = Un(this.message, t);
3020
+ if (n === void 0)
3023
3021
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3024
- return r;
3025
- }, e.prototype.error = function(t, r) {
3022
+ return n;
3023
+ }, e.prototype.error = function(t, n) {
3026
3024
  return {
3027
3025
  val: null,
3028
3026
  err: {
3029
3027
  kind: t,
3030
3028
  message: this.message,
3031
- location: r
3029
+ location: n
3032
3030
  }
3033
3031
  };
3034
3032
  }, e.prototype.bump = function() {
@@ -3037,129 +3035,129 @@ var hi = (
3037
3035
  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);
3038
3036
  }
3039
3037
  }, e.prototype.bumpIf = function(t) {
3040
- if (tr(this.message, t, this.offset())) {
3041
- for (var r = 0; r < t.length; r++)
3038
+ if (en(this.message, t, this.offset())) {
3039
+ for (var n = 0; n < t.length; n++)
3042
3040
  this.bump();
3043
3041
  return !0;
3044
3042
  }
3045
3043
  return !1;
3046
3044
  }, e.prototype.bumpUntil = function(t) {
3047
- var r = this.offset(), n = this.message.indexOf(t, r);
3048
- return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3045
+ var n = this.offset(), r = this.message.indexOf(t, n);
3046
+ return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
3049
3047
  }, e.prototype.bumpTo = function(t) {
3050
3048
  if (this.offset() > t)
3051
3049
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3052
3050
  for (t = Math.min(t, this.message.length); ; ) {
3053
- var r = this.offset();
3054
- if (r === t)
3051
+ var n = this.offset();
3052
+ if (n === t)
3055
3053
  break;
3056
- if (r > t)
3054
+ if (n > t)
3057
3055
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3058
3056
  if (this.bump(), this.isEOF())
3059
3057
  break;
3060
3058
  }
3061
3059
  }, e.prototype.bumpSpace = function() {
3062
- for (; !this.isEOF() && Gr(this.char()); )
3060
+ for (; !this.isEOF() && Gn(this.char()); )
3063
3061
  this.bump();
3064
3062
  }, e.prototype.peek = function() {
3065
3063
  if (this.isEOF())
3066
3064
  return null;
3067
- var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3068
- return n ?? null;
3065
+ var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
3066
+ return r ?? null;
3069
3067
  }, e;
3070
3068
  }()
3071
3069
  );
3072
- function Rt(e) {
3070
+ function Lt(e) {
3073
3071
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3074
3072
  }
3075
- function fi(e) {
3076
- return Rt(e) || e === 47;
3073
+ function hi(e) {
3074
+ return Lt(e) || e === 47;
3077
3075
  }
3078
- function pi(e) {
3076
+ function fi(e) {
3079
3077
  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;
3080
3078
  }
3081
- function Gr(e) {
3079
+ function Gn(e) {
3082
3080
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3083
3081
  }
3084
- function mi(e) {
3082
+ function pi(e) {
3085
3083
  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;
3086
3084
  }
3087
- function Dt(e) {
3085
+ function Mt(e) {
3088
3086
  e.forEach(function(t) {
3089
- if (delete t.location, Pr(t) || Ir(t))
3090
- for (var r in t.options)
3091
- delete t.options[r].location, Dt(t.options[r].value);
3087
+ if (delete t.location, Pn(t) || In(t))
3088
+ for (var n in t.options)
3089
+ delete t.options[n].location, Mt(t.options[n].value);
3092
3090
  else
3093
- Br(t) && Or(t.style) || (Sr(t) || Cr(t)) && Nt(t.style) ? delete t.style.location : Nr(t) && Dt(t.children);
3091
+ Bn(t) && On(t.style) || (Sn(t) || Cn(t)) && Pt(t.style) ? delete t.style.location : Nn(t) && Mt(t.children);
3094
3092
  });
3095
3093
  }
3096
- function di(e, t) {
3097
- t === void 0 && (t = {}), t = mt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3098
- var r = new hi(e, t).parse();
3099
- if (r.err) {
3100
- var n = SyntaxError(_[r.err.kind]);
3101
- throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3094
+ function mi(e, t) {
3095
+ t === void 0 && (t = {}), t = A({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3096
+ var n = new ci(e, t).parse();
3097
+ if (n.err) {
3098
+ var r = SyntaxError(_[n.err.kind]);
3099
+ throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3102
3100
  }
3103
- return t?.captureLocation || Dt(r.val), r.val;
3101
+ return t?.captureLocation || Mt(n.val), n.val;
3104
3102
  }
3105
- var ke;
3103
+ var Ge;
3106
3104
  (function(e) {
3107
3105
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3108
- })(ke || (ke = {}));
3109
- var vt = (
3106
+ })(Ge || (Ge = {}));
3107
+ var bt = (
3110
3108
  /** @class */
3111
3109
  function(e) {
3112
- yt(t, e);
3113
- function t(r, n, i) {
3114
- var a = e.call(this, r) || this;
3115
- return a.code = n, a.originalMessage = i, a;
3110
+ gt(t, e);
3111
+ function t(n, r, i) {
3112
+ var a = e.call(this, n) || this;
3113
+ return a.code = r, a.originalMessage = i, a;
3116
3114
  }
3117
3115
  return t.prototype.toString = function() {
3118
3116
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3119
3117
  }, t;
3120
3118
  }(Error)
3121
- ), ir = (
3119
+ ), rn = (
3122
3120
  /** @class */
3123
3121
  function(e) {
3124
- yt(t, e);
3125
- function t(r, n, i, a) {
3126
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ke.INVALID_VALUE, a) || this;
3122
+ gt(t, e);
3123
+ function t(n, r, i, a) {
3124
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, a) || this;
3127
3125
  }
3128
3126
  return t;
3129
- }(vt)
3130
- ), gi = (
3127
+ }(bt)
3128
+ ), di = (
3131
3129
  /** @class */
3132
3130
  function(e) {
3133
- yt(t, e);
3134
- function t(r, n, i) {
3135
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ke.INVALID_VALUE, i) || this;
3131
+ gt(t, e);
3132
+ function t(n, r, i) {
3133
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ge.INVALID_VALUE, i) || this;
3136
3134
  }
3137
3135
  return t;
3138
- }(vt)
3139
- ), bi = (
3136
+ }(bt)
3137
+ ), gi = (
3140
3138
  /** @class */
3141
3139
  function(e) {
3142
- yt(t, e);
3143
- function t(r, n) {
3144
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ke.MISSING_VALUE, n) || this;
3140
+ gt(t, e);
3141
+ function t(n, r) {
3142
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ge.MISSING_VALUE, r) || this;
3145
3143
  }
3146
3144
  return t;
3147
- }(vt)
3145
+ }(bt)
3148
3146
  ), X;
3149
3147
  (function(e) {
3150
3148
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3151
3149
  })(X || (X = {}));
3152
- function yi(e) {
3153
- return e.length < 2 ? e : e.reduce(function(t, r) {
3154
- var n = t[t.length - 1];
3155
- return !n || n.type !== X.literal || r.type !== X.literal ? t.push(r) : n.value += r.value, t;
3150
+ function bi(e) {
3151
+ return e.length < 2 ? e : e.reduce(function(t, n) {
3152
+ var r = t[t.length - 1];
3153
+ return !r || r.type !== X.literal || n.type !== X.literal ? t.push(n) : r.value += n.value, t;
3156
3154
  }, []);
3157
3155
  }
3158
- function vi(e) {
3156
+ function yi(e) {
3159
3157
  return typeof e == "function";
3160
3158
  }
3161
- function ct(e, t, r, n, i, a, o) {
3162
- if (e.length === 1 && Qt(e[0]))
3159
+ function lt(e, t, n, r, i, a, o) {
3160
+ if (e.length === 1 && Jt(e[0]))
3163
3161
  return [
3164
3162
  {
3165
3163
  type: X.literal,
@@ -3168,60 +3166,60 @@ function ct(e, t, r, n, i, a, o) {
3168
3166
  ];
3169
3167
  for (var s = [], c = 0, l = e; c < l.length; c++) {
3170
3168
  var u = l[c];
3171
- if (Qt(u)) {
3169
+ if (Jt(u)) {
3172
3170
  s.push({
3173
3171
  type: X.literal,
3174
3172
  value: u.value
3175
3173
  });
3176
3174
  continue;
3177
3175
  }
3178
- if (kn(u)) {
3176
+ if (Gr(u)) {
3179
3177
  typeof a == "number" && s.push({
3180
3178
  type: X.literal,
3181
- value: r.getNumberFormat(t).format(a)
3179
+ value: n.getNumberFormat(t).format(a)
3182
3180
  });
3183
3181
  continue;
3184
3182
  }
3185
3183
  var h = u.value;
3186
3184
  if (!(i && h in i))
3187
- throw new bi(h, o);
3185
+ throw new gi(h, o);
3188
3186
  var d = i[h];
3189
- if (Gn(u)) {
3187
+ if (Fr(u)) {
3190
3188
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3191
3189
  type: typeof d == "string" ? X.literal : X.object,
3192
3190
  value: d
3193
3191
  });
3194
3192
  continue;
3195
3193
  }
3196
- if (Sr(u)) {
3197
- var b = typeof u.style == "string" ? n.date[u.style] : Nt(u.style) ? u.style.parsedOptions : void 0;
3194
+ if (Sn(u)) {
3195
+ var b = typeof u.style == "string" ? r.date[u.style] : Pt(u.style) ? u.style.parsedOptions : void 0;
3198
3196
  s.push({
3199
3197
  type: X.literal,
3200
- value: r.getDateTimeFormat(t, b).format(d)
3198
+ value: n.getDateTimeFormat(t, b).format(d)
3201
3199
  });
3202
3200
  continue;
3203
3201
  }
3204
- if (Cr(u)) {
3205
- var b = typeof u.style == "string" ? n.time[u.style] : Nt(u.style) ? u.style.parsedOptions : n.time.medium;
3202
+ if (Cn(u)) {
3203
+ var b = typeof u.style == "string" ? r.time[u.style] : Pt(u.style) ? u.style.parsedOptions : r.time.medium;
3206
3204
  s.push({
3207
3205
  type: X.literal,
3208
- value: r.getDateTimeFormat(t, b).format(d)
3206
+ value: n.getDateTimeFormat(t, b).format(d)
3209
3207
  });
3210
3208
  continue;
3211
3209
  }
3212
- if (Br(u)) {
3213
- var b = typeof u.style == "string" ? n.number[u.style] : Or(u.style) ? u.style.parsedOptions : void 0;
3210
+ if (Bn(u)) {
3211
+ var b = typeof u.style == "string" ? r.number[u.style] : On(u.style) ? u.style.parsedOptions : void 0;
3214
3212
  b && b.scale && (d = d * (b.scale || 1)), s.push({
3215
3213
  type: X.literal,
3216
- value: r.getNumberFormat(t, b).format(d)
3214
+ value: n.getNumberFormat(t, b).format(d)
3217
3215
  });
3218
3216
  continue;
3219
3217
  }
3220
- if (Nr(u)) {
3221
- var v = u.children, P = u.value, F = i[P];
3222
- if (!vi(F))
3223
- throw new gi(P, "function", o);
3224
- var I = ct(v, t, r, n, i, a), D = F(I.map(function(O) {
3218
+ if (Nn(u)) {
3219
+ var x = u.children, I = u.value, F = i[I];
3220
+ if (!yi(F))
3221
+ throw new di(I, "function", o);
3222
+ var N = lt(x, t, n, r, i, a), D = F(N.map(function(O) {
3225
3223
  return O.value;
3226
3224
  }));
3227
3225
  Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(O) {
@@ -3231,92 +3229,92 @@ function ct(e, t, r, n, i, a, o) {
3231
3229
  };
3232
3230
  }));
3233
3231
  }
3234
- if (Pr(u)) {
3232
+ if (Pn(u)) {
3235
3233
  var U = u.options[d] || u.options.other;
3236
3234
  if (!U)
3237
- throw new ir(u.value, d, Object.keys(u.options), o);
3238
- s.push.apply(s, ct(U.value, t, r, n, i));
3235
+ throw new rn(u.value, d, Object.keys(u.options), o);
3236
+ s.push.apply(s, lt(U.value, t, n, r, i));
3239
3237
  continue;
3240
3238
  }
3241
- if (Ir(u)) {
3239
+ if (In(u)) {
3242
3240
  var U = u.options["=".concat(d)];
3243
3241
  if (!U) {
3244
3242
  if (!Intl.PluralRules)
3245
- throw new vt(`Intl.PluralRules is not available in this environment.
3243
+ throw new bt(`Intl.PluralRules is not available in this environment.
3246
3244
  Try polyfilling it using "@formatjs/intl-pluralrules"
3247
- `, ke.MISSING_INTL_API, o);
3248
- var C = r.getPluralRules(t, { type: u.pluralType }).select(d - (u.offset || 0));
3249
- U = u.options[C] || u.options.other;
3245
+ `, Ge.MISSING_INTL_API, o);
3246
+ var P = n.getPluralRules(t, { type: u.pluralType }).select(d - (u.offset || 0));
3247
+ U = u.options[P] || u.options.other;
3250
3248
  }
3251
3249
  if (!U)
3252
- throw new ir(u.value, d, Object.keys(u.options), o);
3253
- s.push.apply(s, ct(U.value, t, r, n, i, d - (u.offset || 0)));
3250
+ throw new rn(u.value, d, Object.keys(u.options), o);
3251
+ s.push.apply(s, lt(U.value, t, n, r, i, d - (u.offset || 0)));
3254
3252
  continue;
3255
3253
  }
3256
3254
  }
3257
- return yi(s);
3255
+ return bi(s);
3258
3256
  }
3259
3257
  function xi(e, t) {
3260
- return t ? ce(ce(ce({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3261
- return r[n] = ce(ce({}, e[n]), t[n] || {}), r;
3258
+ return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3259
+ return n[r] = A(A({}, e[r]), t[r] || {}), n;
3262
3260
  }, {})) : e;
3263
3261
  }
3264
- function Ei(e, t) {
3265
- return t ? Object.keys(e).reduce(function(r, n) {
3266
- return r[n] = xi(e[n], t[n]), r;
3267
- }, ce({}, e)) : e;
3262
+ function vi(e, t) {
3263
+ return t ? Object.keys(e).reduce(function(n, r) {
3264
+ return n[r] = xi(e[r], t[r]), n;
3265
+ }, A({}, e)) : e;
3268
3266
  }
3269
- function St(e) {
3267
+ function At(e) {
3270
3268
  return {
3271
3269
  create: function() {
3272
3270
  return {
3273
3271
  get: function(t) {
3274
3272
  return e[t];
3275
3273
  },
3276
- set: function(t, r) {
3277
- e[t] = r;
3274
+ set: function(t, n) {
3275
+ e[t] = n;
3278
3276
  }
3279
3277
  };
3280
3278
  }
3281
3279
  };
3282
3280
  }
3283
- function _i(e) {
3281
+ function Ei(e) {
3284
3282
  return e === void 0 && (e = {
3285
3283
  number: {},
3286
3284
  dateTime: {},
3287
3285
  pluralRules: {}
3288
3286
  }), {
3289
- getNumberFormat: Ht(function() {
3290
- for (var t, r = [], n = 0; n < arguments.length; n++)
3291
- r[n] = arguments[n];
3292
- return new ((t = Intl.NumberFormat).bind.apply(t, Tt([void 0], r, !1)))();
3287
+ getNumberFormat: wt(function() {
3288
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3289
+ n[r] = arguments[r];
3290
+ return new ((t = Intl.NumberFormat).bind.apply(t, _t([void 0], n, !1)))();
3293
3291
  }, {
3294
- cache: St(e.number),
3295
- strategy: At.variadic
3292
+ cache: At(e.number),
3293
+ strategy: Tt.variadic
3296
3294
  }),
3297
- getDateTimeFormat: Ht(function() {
3298
- for (var t, r = [], n = 0; n < arguments.length; n++)
3299
- r[n] = arguments[n];
3300
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Tt([void 0], r, !1)))();
3295
+ getDateTimeFormat: wt(function() {
3296
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3297
+ n[r] = arguments[r];
3298
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, _t([void 0], n, !1)))();
3301
3299
  }, {
3302
- cache: St(e.dateTime),
3303
- strategy: At.variadic
3300
+ cache: At(e.dateTime),
3301
+ strategy: Tt.variadic
3304
3302
  }),
3305
- getPluralRules: Ht(function() {
3306
- for (var t, r = [], n = 0; n < arguments.length; n++)
3307
- r[n] = arguments[n];
3308
- return new ((t = Intl.PluralRules).bind.apply(t, Tt([void 0], r, !1)))();
3303
+ getPluralRules: wt(function() {
3304
+ for (var t, n = [], r = 0; r < arguments.length; r++)
3305
+ n[r] = arguments[r];
3306
+ return new ((t = Intl.PluralRules).bind.apply(t, _t([void 0], n, !1)))();
3309
3307
  }, {
3310
- cache: St(e.pluralRules),
3311
- strategy: At.variadic
3308
+ cache: At(e.pluralRules),
3309
+ strategy: Tt.variadic
3312
3310
  })
3313
3311
  };
3314
3312
  }
3315
- var wi = (
3313
+ var _i = (
3316
3314
  /** @class */
3317
3315
  function() {
3318
- function e(t, r, n, i) {
3319
- r === void 0 && (r = e.defaultLocale);
3316
+ function e(t, n, r, i) {
3317
+ n === void 0 && (n = e.defaultLocale);
3320
3318
  var a = this;
3321
3319
  if (this.formatterCache = {
3322
3320
  number: {},
@@ -3331,7 +3329,7 @@ var wi = (
3331
3329
  }, []);
3332
3330
  return u.length <= 1 ? u[0] || "" : u;
3333
3331
  }, this.formatToParts = function(c) {
3334
- return ct(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
3332
+ return lt(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
3335
3333
  }, this.resolvedOptions = function() {
3336
3334
  var c;
3337
3335
  return {
@@ -3339,18 +3337,18 @@ var wi = (
3339
3337
  };
3340
3338
  }, this.getAst = function() {
3341
3339
  return a.ast;
3342
- }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
3340
+ }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3343
3341
  if (this.message = t, !e.__parse)
3344
3342
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3345
3343
  var o = i || {};
3346
3344
  o.formatters;
3347
- var s = Nn(o, ["formatters"]);
3348
- this.ast = e.__parse(t, ce(ce({}, s), { locale: this.resolvedLocale }));
3345
+ var s = Ir(o, ["formatters"]);
3346
+ this.ast = e.__parse(t, A(A({}, s), { locale: this.resolvedLocale }));
3349
3347
  } else
3350
3348
  this.ast = t;
3351
3349
  if (!Array.isArray(this.ast))
3352
3350
  throw new TypeError("A message must be provided as a String or AST.");
3353
- this.formats = Ei(e.formats, n), this.formatters = i && i.formatters || _i(this.formatterCache);
3351
+ this.formats = vi(e.formats, r), this.formatters = i && i.formatters || Ei(this.formatterCache);
3354
3352
  }
3355
3353
  return Object.defineProperty(e, "defaultLocale", {
3356
3354
  get: function() {
@@ -3360,10 +3358,10 @@ var wi = (
3360
3358
  configurable: !0
3361
3359
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3362
3360
  if (!(typeof Intl.Locale > "u")) {
3363
- var r = Intl.NumberFormat.supportedLocalesOf(t);
3364
- return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3361
+ var n = Intl.NumberFormat.supportedLocalesOf(t);
3362
+ return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3365
3363
  }
3366
- }, e.__parse = di, e.formats = {
3364
+ }, e.__parse = mi, e.formats = {
3367
3365
  number: {
3368
3366
  integer: {
3369
3367
  maximumFractionDigits: 0
@@ -3424,113 +3422,113 @@ var wi = (
3424
3422
  }, e;
3425
3423
  }()
3426
3424
  );
3427
- function Ti(e, t) {
3425
+ function wi(e, t) {
3428
3426
  if (t == null)
3429
3427
  return;
3430
3428
  if (t in e)
3431
3429
  return e[t];
3432
- const r = t.split(".");
3433
- let n = e;
3434
- for (let i = 0; i < r.length; i++)
3435
- if (typeof n == "object") {
3430
+ const n = t.split(".");
3431
+ let r = e;
3432
+ for (let i = 0; i < n.length; i++)
3433
+ if (typeof r == "object") {
3436
3434
  if (i > 0) {
3437
- const a = r.slice(i, r.length).join(".");
3438
- if (a in n) {
3439
- n = n[a];
3435
+ const a = n.slice(i, n.length).join(".");
3436
+ if (a in r) {
3437
+ r = r[a];
3440
3438
  break;
3441
3439
  }
3442
3440
  }
3443
- n = n[r[i]];
3441
+ r = r[n[i]];
3444
3442
  } else
3445
- n = void 0;
3446
- return n;
3443
+ r = void 0;
3444
+ return r;
3447
3445
  }
3448
- const Ee = {}, Hi = (e, t, r) => r && (t in Ee || (Ee[t] = {}), e in Ee[t] || (Ee[t][e] = r), r), kr = (e, t) => {
3446
+ const ve = {}, Ti = (e, t, n) => n && (t in ve || (ve[t] = {}), e in ve[t] || (ve[t][e] = n), n), kn = (e, t) => {
3449
3447
  if (t == null)
3450
3448
  return;
3451
- if (t in Ee && e in Ee[t])
3452
- return Ee[t][e];
3453
- const r = xt(t);
3454
- for (let n = 0; n < r.length; n++) {
3455
- const i = r[n], a = Bi(i, e);
3449
+ if (t in ve && e in ve[t])
3450
+ return ve[t][e];
3451
+ const n = yt(t);
3452
+ for (let r = 0; r < n.length; r++) {
3453
+ const i = n[r], a = Ai(i, e);
3456
3454
  if (a)
3457
- return Hi(e, t, a);
3455
+ return Ti(e, t, a);
3458
3456
  }
3459
3457
  };
3460
- let jt;
3461
- const Ve = bt({});
3462
- function Ai(e) {
3463
- return jt[e] || null;
3458
+ let kt;
3459
+ const je = dt({});
3460
+ function Hi(e) {
3461
+ return kt[e] || null;
3464
3462
  }
3465
- function jr(e) {
3466
- return e in jt;
3463
+ function $n(e) {
3464
+ return e in kt;
3467
3465
  }
3468
- function Bi(e, t) {
3469
- if (!jr(e))
3466
+ function Ai(e, t) {
3467
+ if (!$n(e))
3470
3468
  return null;
3471
- const r = Ai(e);
3472
- return Ti(r, t);
3469
+ const n = Hi(e);
3470
+ return wi(n, t);
3473
3471
  }
3474
- function Si(e) {
3472
+ function Bi(e) {
3475
3473
  if (e == null)
3476
3474
  return;
3477
- const t = xt(e);
3478
- for (let r = 0; r < t.length; r++) {
3479
- const n = t[r];
3480
- if (jr(n))
3481
- return n;
3475
+ const t = yt(e);
3476
+ for (let n = 0; n < t.length; n++) {
3477
+ const r = t[n];
3478
+ if ($n(r))
3479
+ return r;
3482
3480
  }
3483
3481
  }
3484
- function $r(e, ...t) {
3485
- delete Ee[e], Ve.update((r) => (r[e] = In.all([r[e] || {}, ...t]), r));
3482
+ function jn(e, ...t) {
3483
+ delete ve[e], je.update((n) => (n[e] = Pr.all([n[e] || {}, ...t]), n));
3486
3484
  }
3487
3485
  $e(
3488
- [Ve],
3486
+ [je],
3489
3487
  ([e]) => Object.keys(e)
3490
3488
  );
3491
- Ve.subscribe((e) => jt = e);
3492
- const ht = {};
3493
- function Ci(e, t) {
3494
- ht[e].delete(t), ht[e].size === 0 && delete ht[e];
3495
- }
3496
- function Vr(e) {
3497
- return ht[e];
3498
- }
3499
- function Pi(e) {
3500
- return xt(e).map((t) => {
3501
- const r = Vr(t);
3502
- return [t, r ? [...r] : []];
3489
+ je.subscribe((e) => kt = e);
3490
+ const ct = {};
3491
+ function Si(e, t) {
3492
+ ct[e].delete(t), ct[e].size === 0 && delete ct[e];
3493
+ }
3494
+ function Vn(e) {
3495
+ return ct[e];
3496
+ }
3497
+ function Ci(e) {
3498
+ return yt(e).map((t) => {
3499
+ const n = Vn(t);
3500
+ return [t, n ? [...n] : []];
3503
3501
  }).filter(([, t]) => t.length > 0);
3504
3502
  }
3505
- function Ut(e) {
3506
- return e == null ? !1 : xt(e).some(
3503
+ function Rt(e) {
3504
+ return e == null ? !1 : yt(e).some(
3507
3505
  (t) => {
3508
- var r;
3509
- return (r = Vr(t)) == null ? void 0 : r.size;
3506
+ var n;
3507
+ return (n = Vn(t)) == null ? void 0 : n.size;
3510
3508
  }
3511
3509
  );
3512
3510
  }
3513
- function Ii(e, t) {
3511
+ function Pi(e, t) {
3514
3512
  return Promise.all(
3515
- t.map((n) => (Ci(e, n), n().then((i) => i.default || i)))
3516
- ).then((n) => $r(e, ...n));
3513
+ t.map((r) => (Si(e, r), r().then((i) => i.default || i)))
3514
+ ).then((r) => jn(e, ...r));
3517
3515
  }
3518
- const Ye = {};
3519
- function zr(e) {
3520
- if (!Ut(e))
3521
- return e in Ye ? Ye[e] : Promise.resolve();
3522
- const t = Pi(e);
3523
- return Ye[e] = Promise.all(
3516
+ const Qe = {};
3517
+ function zn(e) {
3518
+ if (!Rt(e))
3519
+ return e in Qe ? Qe[e] : Promise.resolve();
3520
+ const t = Ci(e);
3521
+ return Qe[e] = Promise.all(
3524
3522
  t.map(
3525
- ([r, n]) => Ii(r, n)
3523
+ ([n, r]) => Pi(n, r)
3526
3524
  )
3527
3525
  ).then(() => {
3528
- if (Ut(e))
3529
- return zr(e);
3530
- delete Ye[e];
3531
- }), Ye[e];
3526
+ if (Rt(e))
3527
+ return zn(e);
3528
+ delete Qe[e];
3529
+ }), Qe[e];
3532
3530
  }
3533
- const Ni = {
3531
+ const Ii = {
3534
3532
  number: {
3535
3533
  scientific: { notation: "scientific" },
3536
3534
  engineering: { notation: "engineering" },
@@ -3559,150 +3557,150 @@ const Ni = {
3559
3557
  timeZoneName: "short"
3560
3558
  }
3561
3559
  }
3562
- }, Oi = {
3560
+ }, Ni = {
3563
3561
  fallbackLocale: null,
3564
3562
  loadingDelay: 200,
3565
- formats: Ni,
3563
+ formats: Ii,
3566
3564
  warnOnMissingMessages: !0,
3567
3565
  handleMissingMessage: void 0,
3568
3566
  ignoreTag: !0
3569
- }, Li = Oi;
3570
- function je() {
3571
- return Li;
3572
- }
3573
- const Ct = bt(!1);
3574
- var Mi = Object.defineProperty, Ri = Object.defineProperties, Di = Object.getOwnPropertyDescriptors, ar = Object.getOwnPropertySymbols, Ui = Object.prototype.hasOwnProperty, Fi = Object.prototype.propertyIsEnumerable, or = (e, t, r) => t in e ? Mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Gi = (e, t) => {
3575
- for (var r in t || (t = {}))
3576
- Ui.call(t, r) && or(e, r, t[r]);
3577
- if (ar)
3578
- for (var r of ar(t))
3579
- Fi.call(t, r) && or(e, r, t[r]);
3567
+ }, Oi = Ni;
3568
+ function ke() {
3569
+ return Oi;
3570
+ }
3571
+ const Bt = dt(!1);
3572
+ var Li = Object.defineProperty, Mi = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, an = Object.getOwnPropertySymbols, Di = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, on = (e, t, n) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fi = (e, t) => {
3573
+ for (var n in t)
3574
+ Di.call(t, n) && on(e, n, t[n]);
3575
+ if (an)
3576
+ for (var n of an(t))
3577
+ Ui.call(t, n) && on(e, n, t[n]);
3580
3578
  return e;
3581
- }, ki = (e, t) => Ri(e, Di(t));
3582
- let Ft;
3583
- const dt = bt(null);
3584
- function sr(e) {
3585
- return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3579
+ }, Gi = (e, t) => Mi(e, Ri(t));
3580
+ let Dt;
3581
+ const pt = dt(null);
3582
+ function sn(e) {
3583
+ return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3586
3584
  }
3587
- function xt(e, t = je().fallbackLocale) {
3588
- const r = sr(e);
3589
- return t ? [.../* @__PURE__ */ new Set([...r, ...sr(t)])] : r;
3585
+ function yt(e, t = ke().fallbackLocale) {
3586
+ const n = sn(e);
3587
+ return t ? [.../* @__PURE__ */ new Set([...n, ...sn(t)])] : n;
3590
3588
  }
3591
- function Ae() {
3592
- return Ft ?? void 0;
3589
+ function He() {
3590
+ return Dt ?? void 0;
3593
3591
  }
3594
- dt.subscribe((e) => {
3595
- Ft = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3592
+ pt.subscribe((e) => {
3593
+ Dt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3596
3594
  });
3597
- const ji = (e) => {
3598
- if (e && Si(e) && Ut(e)) {
3599
- const { loadingDelay: t } = je();
3600
- let r;
3601
- return typeof window < "u" && Ae() != null && t ? r = window.setTimeout(
3602
- () => Ct.set(!0),
3595
+ const ki = (e) => {
3596
+ if (e && Bi(e) && Rt(e)) {
3597
+ const { loadingDelay: t } = ke();
3598
+ let n;
3599
+ return typeof window < "u" && He() != null && t ? n = window.setTimeout(
3600
+ () => Bt.set(!0),
3603
3601
  t
3604
- ) : Ct.set(!0), zr(e).then(() => {
3605
- dt.set(e);
3602
+ ) : Bt.set(!0), zn(e).then(() => {
3603
+ pt.set(e);
3606
3604
  }).finally(() => {
3607
- clearTimeout(r), Ct.set(!1);
3605
+ clearTimeout(n), Bt.set(!1);
3608
3606
  });
3609
3607
  }
3610
- return dt.set(e);
3611
- }, _e = ki(Gi({}, dt), {
3612
- set: ji
3613
- }), Et = (e) => {
3608
+ return pt.set(e);
3609
+ }, Ee = Gi(Fi({}, pt), {
3610
+ set: ki
3611
+ }), xt = (e) => {
3614
3612
  const t = /* @__PURE__ */ Object.create(null);
3615
- return (n) => {
3616
- const i = JSON.stringify(n);
3617
- return i in t ? t[i] : t[i] = e(n);
3613
+ return (r) => {
3614
+ const i = JSON.stringify(r);
3615
+ return i in t ? t[i] : t[i] = e(r);
3618
3616
  };
3619
3617
  };
3620
- var $i = Object.defineProperty, gt = Object.getOwnPropertySymbols, Xr = Object.prototype.hasOwnProperty, Wr = Object.prototype.propertyIsEnumerable, ur = (e, t, r) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $t = (e, t) => {
3621
- for (var r in t || (t = {}))
3622
- Xr.call(t, r) && ur(e, r, t[r]);
3623
- if (gt)
3624
- for (var r of gt(t))
3625
- Wr.call(t, r) && ur(e, r, t[r]);
3618
+ var $i = Object.defineProperty, mt = Object.getOwnPropertySymbols, Xn = Object.prototype.hasOwnProperty, Wn = Object.prototype.propertyIsEnumerable, un = (e, t, n) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, $t = (e, t) => {
3619
+ for (var n in t || (t = {}))
3620
+ Xn.call(t, n) && un(e, n, t[n]);
3621
+ if (mt)
3622
+ for (var n of mt(t))
3623
+ Wn.call(t, n) && un(e, n, t[n]);
3626
3624
  return e;
3627
- }, ze = (e, t) => {
3628
- var r = {};
3629
- for (var n in e)
3630
- Xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3631
- if (e != null && gt)
3632
- for (var n of gt(e))
3633
- t.indexOf(n) < 0 && Wr.call(e, n) && (r[n] = e[n]);
3634
- return r;
3625
+ }, Ve = (e, t) => {
3626
+ var n = {};
3627
+ for (var r in e)
3628
+ Xn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3629
+ if (e != null && mt)
3630
+ for (var r of mt(e))
3631
+ t.indexOf(r) < 0 && Wn.call(e, r) && (n[r] = e[r]);
3632
+ return n;
3635
3633
  };
3636
- const rt = (e, t) => {
3637
- const { formats: r } = je();
3638
- if (e in r && t in r[e])
3639
- return r[e][t];
3634
+ const tt = (e, t) => {
3635
+ const { formats: n } = ke();
3636
+ if (e in n && t in n[e])
3637
+ return n[e][t];
3640
3638
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3641
- }, Vi = Et(
3639
+ }, ji = xt(
3642
3640
  (e) => {
3643
- var t = e, { locale: r, format: n } = t, i = ze(t, ["locale", "format"]);
3644
- if (r == null)
3641
+ var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3642
+ if (n == null)
3645
3643
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3646
- return n && (i = rt("number", n)), new Intl.NumberFormat(r, i);
3644
+ return r && (i = tt("number", r)), new Intl.NumberFormat(n, i);
3647
3645
  }
3648
- ), zi = Et(
3646
+ ), Vi = xt(
3649
3647
  (e) => {
3650
- var t = e, { locale: r, format: n } = t, i = ze(t, ["locale", "format"]);
3651
- if (r == null)
3648
+ var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3649
+ if (n == null)
3652
3650
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3653
- return n ? i = rt("date", n) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(r, i);
3651
+ return r ? i = tt("date", r) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(n, i);
3654
3652
  }
3655
- ), Xi = Et(
3653
+ ), zi = xt(
3656
3654
  (e) => {
3657
- var t = e, { locale: r, format: n } = t, i = ze(t, ["locale", "format"]);
3658
- if (r == null)
3655
+ var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
3656
+ if (n == null)
3659
3657
  throw new Error(
3660
3658
  '[svelte-i18n] A "locale" must be set to format time values'
3661
3659
  );
3662
- return n ? i = rt("time", n) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(r, i);
3660
+ return r ? i = tt("time", r) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(n, i);
3663
3661
  }
3664
- ), Wi = (e = {}) => {
3662
+ ), Xi = (e = {}) => {
3665
3663
  var t = e, {
3666
- locale: r = Ae()
3667
- } = t, n = ze(t, [
3664
+ locale: n = He()
3665
+ } = t, r = Ve(t, [
3668
3666
  "locale"
3669
3667
  ]);
3670
- return Vi($t({ locale: r }, n));
3671
- }, Zi = (e = {}) => {
3668
+ return ji($t({ locale: n }, r));
3669
+ }, Wi = (e = {}) => {
3672
3670
  var t = e, {
3673
- locale: r = Ae()
3674
- } = t, n = ze(t, [
3671
+ locale: n = He()
3672
+ } = t, r = Ve(t, [
3675
3673
  "locale"
3676
3674
  ]);
3677
- return zi($t({ locale: r }, n));
3678
- }, qi = (e = {}) => {
3675
+ return Vi($t({ locale: n }, r));
3676
+ }, Zi = (e = {}) => {
3679
3677
  var t = e, {
3680
- locale: r = Ae()
3681
- } = t, n = ze(t, [
3678
+ locale: n = He()
3679
+ } = t, r = Ve(t, [
3682
3680
  "locale"
3683
3681
  ]);
3684
- return Xi($t({ locale: r }, n));
3685
- }, Ji = Et(
3682
+ return zi($t({ locale: n }, r));
3683
+ }, qi = xt(
3686
3684
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3687
- (e, t = Ae()) => new wi(e, t, je().formats, {
3688
- ignoreTag: je().ignoreTag
3685
+ (e, t = He()) => new _i(e, t, ke().formats, {
3686
+ ignoreTag: ke().ignoreTag
3689
3687
  })
3690
- ), Qi = (e, t = {}) => {
3691
- var r, n, i, a;
3688
+ ), Ji = (e, t = {}) => {
3689
+ var n, r, i, a;
3692
3690
  let o = t;
3693
3691
  typeof e == "object" && (o = e, e = o.id);
3694
3692
  const {
3695
3693
  values: s,
3696
- locale: c = Ae(),
3694
+ locale: c = He(),
3697
3695
  default: l
3698
3696
  } = o;
3699
3697
  if (c == null)
3700
3698
  throw new Error(
3701
3699
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3702
3700
  );
3703
- let u = kr(e, c);
3701
+ let u = kn(e, c);
3704
3702
  if (!u)
3705
- u = (a = (i = (n = (r = je()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3703
+ u = (a = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3706
3704
  else if (typeof u != "string")
3707
3705
  return console.warn(
3708
3706
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3711,7 +3709,7 @@ const rt = (e, t) => {
3711
3709
  return u;
3712
3710
  let h = u;
3713
3711
  try {
3714
- h = Ji(u, c).format(s);
3712
+ h = qi(u, c).format(s);
3715
3713
  } catch (d) {
3716
3714
  d instanceof Error && console.warn(
3717
3715
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3719,23 +3717,23 @@ const rt = (e, t) => {
3719
3717
  );
3720
3718
  }
3721
3719
  return h;
3722
- }, Yi = (e, t) => qi(t).format(e), Ki = (e, t) => Zi(t).format(e), ea = (e, t) => Wi(t).format(e), ta = (e, t = Ae()) => kr(e, t), ra = $e([_e, Ve], () => Qi);
3723
- $e([_e], () => Yi);
3724
- $e([_e], () => Ki);
3725
- $e([_e], () => ea);
3726
- $e([_e, Ve], () => ta);
3720
+ }, Qi = (e, t) => Zi(t).format(e), Yi = (e, t) => Wi(t).format(e), Ki = (e, t) => Xi(t).format(e), ea = (e, t = He()) => kn(e, t), ta = $e([Ee, je], () => Ji);
3721
+ $e([Ee], () => Qi);
3722
+ $e([Ee], () => Yi);
3723
+ $e([Ee], () => Ki);
3724
+ $e([Ee, je], () => ea);
3727
3725
  function na({ withLocale: e, translations: t }) {
3728
- _e.subscribe((r) => {
3729
- r == null && (Ve.set(t), _e.set(e));
3726
+ Ee.subscribe((n) => {
3727
+ n == null && (je.set(t), Ee.set(e));
3730
3728
  });
3731
3729
  }
3732
- function lr(e, t) {
3733
- $r(e, t);
3730
+ function ln(e, t) {
3731
+ jn(e, t);
3734
3732
  }
3735
- function ia(e) {
3736
- _e.set(e);
3733
+ function ra(e) {
3734
+ Ee.set(e);
3737
3735
  }
3738
- const cr = {
3736
+ const cn = {
3739
3737
  en: {
3740
3738
  vaultExchange: "Vault Exchange",
3741
3739
  debitPlaceHolder: "Debit amount",
@@ -3784,38 +3782,38 @@ const cr = {
3784
3782
  "gm.payments.internal_server_error": "Cüzdan değişiminde bir hata oluştu"
3785
3783
  }
3786
3784
  };
3787
- function aa(e) {
3788
- Jr(e, "svelte-y4tbuy", "*{margin:0;padding:0}.player-account-vault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;border:1px solid var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #22B04E) 0px 0px 10px;gap:var(--emw--spacing-medium, 15px)}.player-account-vault .playerVaultContainer{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-small, 5px);padding:var(--emw--spacing-medium, 10px);box-sizing:border-box}.player-account-vault .playerVaultContainer .balanceContainer{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400);gap:var(--emw--spacing-small, 10px);font-family:inherit}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-large, 25px)}.player-account-vault .playerVaultContainer .headerContainer{margin-right:auto;margin-bottom:auto}.player-account-vault .playerVaultContainer .headerContainer h1{width:100%;text-align:center;font-family:inherit;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400)}.player-account-vault .containerExchanges{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;position:relative;gap:var(--emw--spacing-small, 10px);background:var(--emfe-w-color-primary, #22B04E);padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom,.player-account-vault .containerExchanges .containerExchangeTo{width:inherit;height:inherit;display:flex;flex-direction:column;justify-content:center;align-self:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .exchangeHeader,.player-account-vault .containerExchanges .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;color:var(--emfe-w-color-white, #fff);font-family:inherit}.player-account-vault .containerExchanges .containerExchangeFrom .flexingContainerRow,.player-account-vault .containerExchanges .containerExchangeTo .flexingContainerRow{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:var(--emw--spacing-small, 10px);max-width:200px}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{text-align:center;padding:5px 0px;margin:0;border:2px solid var(--emw--button-border-color, #22B04E);color:var(--emfe-w-color-black, #000000)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input{width:100%}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{width:100%}.player-account-vault .containerExchanges .exchangeDetailsWrapper{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerIconExchange{margin:auto;padding-top:20px}.player-account-vault .containerExchanges .containerIconExchange .iconExchange{width:20px;height:20px;transform:rotateZ(-90deg)}.player-account-vault .containerExchanges .containerIconExchange .iconExchange path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault{width:15px;height:15px;position:absolute;top:85%;right:5%;padding:var(--emw--spacing-medium, 10px);background:var(--emfe-w-color-primary, #22B04E);border:3px solid var(--emfe-w-color-white, #fff);border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault.active .iconToggleVault{transform:rotateZ(180deg)}.player-account-vault .vaultDropDown{width:100%;height:0px;margin:0px;display:flex;flex-direction:column;box-sizing:border-box;overflow:auto;scrollbar-width:none;transition:all 0.5s ease-in-out;opacity:0;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 15px);color:var(--emw--color-white, #fff);font-family:inherit}.player-account-vault .vaultDropDown div{display:inherit;flex-direction:row;justify-content:space-between;padding:var(--emw--spacing-medium, 15px) var(--emw--spacing-large, 30px);background:var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px}.player-account-vault .vaultDropDown.active{padding:var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 10px);opacity:1}.player-account-vault .notificationsContainer{width:100%;max-height:0px;padding:0px;box-sizing:border-box;transition:all 0.5s ease-in-out}.player-account-vault .notificationsContainer div{text-align:center;padding:var(--emw--spacing-medium, 15px);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px;color:var(--emfe-w-color-white, #fff);opacity:0;transform:scale(0);transition:inherit;box-sizing:inherit;font-family:inherit}.player-account-vault .notificationsContainer .error{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.player-account-vault .notificationsContainer .success{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #22B04E))}.player-account-vault .notificationsContainer .action{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #abb022))}.player-account-vault .notificationsContainer.error,.player-account-vault .notificationsContainer.success,.player-account-vault .notificationsContainer.action{max-height:200px;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer button{width:100px;height:30px;border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--font-size-medium, 15px);border-radius:var(--emw--button-border-radius, 5px);background:var(--emfe-w-color-primary, #22B04E);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF))}.player-account-vault .actionsContainer .disabled{cursor:default;background:var(--emfe-w-color-gray-150, #828282)}@media only screen and (max-width: 300px){.player-account-vault .playerVaultContainer .headerContainer h1{text-align:left;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer p{text-align:right;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-medium, 20px)}}");
3785
+ function ia(e) {
3786
+ Jn(e, "svelte-y4tbuy", "*{margin:0;padding:0}.player-account-vault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;border:1px solid var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #22B04E) 0px 0px 10px;gap:var(--emw--spacing-medium, 15px)}.player-account-vault .playerVaultContainer{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-small, 5px);padding:var(--emw--spacing-medium, 10px);box-sizing:border-box}.player-account-vault .playerVaultContainer .balanceContainer{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400);gap:var(--emw--spacing-small, 10px);font-family:inherit}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-large, 25px)}.player-account-vault .playerVaultContainer .headerContainer{margin-right:auto;margin-bottom:auto}.player-account-vault .playerVaultContainer .headerContainer h1{width:100%;text-align:center;font-family:inherit;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400)}.player-account-vault .containerExchanges{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;position:relative;gap:var(--emw--spacing-small, 10px);background:var(--emfe-w-color-primary, #22B04E);padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom,.player-account-vault .containerExchanges .containerExchangeTo{width:inherit;height:inherit;display:flex;flex-direction:column;justify-content:center;align-self:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .exchangeHeader,.player-account-vault .containerExchanges .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;color:var(--emfe-w-color-white, #fff);font-family:inherit}.player-account-vault .containerExchanges .containerExchangeFrom .flexingContainerRow,.player-account-vault .containerExchanges .containerExchangeTo .flexingContainerRow{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:var(--emw--spacing-small, 10px);max-width:200px}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{text-align:center;padding:5px 0px;margin:0;border:2px solid var(--emw--button-border-color, #22B04E);color:var(--emfe-w-color-black, #000000)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input{width:100%}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{width:100%}.player-account-vault .containerExchanges .exchangeDetailsWrapper{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerIconExchange{margin:auto;padding-top:20px}.player-account-vault .containerExchanges .containerIconExchange .iconExchange{width:20px;height:20px;transform:rotateZ(-90deg)}.player-account-vault .containerExchanges .containerIconExchange .iconExchange path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault{width:15px;height:15px;position:absolute;top:85%;right:5%;padding:var(--emw--spacing-medium, 10px);background:var(--emfe-w-color-primary, #22B04E);border:3px solid var(--emfe-w-color-white, #fff);border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault.active .iconToggleVault{transform:rotateZ(180deg)}.player-account-vault .vaultDropDown{width:100%;height:0px;margin:0px;display:flex;flex-direction:column;box-sizing:border-box;overflow:auto;scrollbar-width:none;transition:all 0.5s ease-in-out;opacity:0;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 15px);color:var(--emw--color-white, #fff);font-family:inherit}.player-account-vault .vaultDropDown div{display:inherit;flex-direction:row;justify-content:space-between;padding:var(--emw--spacing-medium, 15px) var(--emw--spacing-large, 30px);background:var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px}.player-account-vault .vaultDropDown.active{padding:var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 10px);opacity:1}.player-account-vault .notificationsContainer{width:100%;max-height:0px;padding:0px;box-sizing:border-box;transition:all 0.5s ease-in-out}.player-account-vault .notificationsContainer div{text-align:center;padding:var(--emw--spacing-medium, 15px);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px;color:var(--emfe-w-color-white, #fff);opacity:0;transform:scale(0);transition:inherit;box-sizing:inherit;font-family:inherit}.player-account-vault .notificationsContainer .error{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.player-account-vault .notificationsContainer .success{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #22B04E))}.player-account-vault .notificationsContainer .action{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #abb022))}.player-account-vault .notificationsContainer.error,.player-account-vault .notificationsContainer.success,.player-account-vault .notificationsContainer.action{max-height:200px;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer button{width:100px;height:30px;border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--font-size-medium, 15px);border-radius:var(--emw--button-border-radius, 5px);background:var(--emfe-w-color-primary, #22B04E);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF))}.player-account-vault .actionsContainer .disabled{cursor:default;background:var(--emfe-w-color-gray-150, #828282)}@media only screen and (max-width: 300px){.player-account-vault .playerVaultContainer .headerContainer h1{text-align:left;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer p{text-align:right;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-medium, 20px)}}");
3789
3787
  }
3790
- function hr(e, t, r) {
3791
- const n = e.slice();
3792
- return n[64] = t[r], n[65] = t, n[66] = r, n;
3788
+ function hn(e, t, n) {
3789
+ const r = e.slice();
3790
+ return r[64] = t[n], r[65] = t, r[66] = n, r;
3793
3791
  }
3794
- function fr(e, t, r) {
3795
- const n = e.slice();
3796
- return n[67] = t[r], n;
3792
+ function fn(e, t, n) {
3793
+ const r = e.slice();
3794
+ return r[67] = t[n], r;
3797
3795
  }
3798
- function pr(e, t, r) {
3799
- const n = e.slice();
3800
- return n[67] = t[r], n;
3796
+ function pn(e, t, n) {
3797
+ const r = e.slice();
3798
+ return r[67] = t[n], r;
3801
3799
  }
3802
- function mr(e) {
3803
- let t, r = (
3800
+ function mn(e) {
3801
+ let t, n = (
3804
3802
  /*balance*/
3805
3803
  e[67].currency + ""
3806
- ), n, i, a;
3804
+ ), r, i, a;
3807
3805
  return {
3808
3806
  c() {
3809
- t = E("option"), n = $(r), i = R(), t.__value = a = /*balance*/
3807
+ t = E("option"), r = j(n), i = R(), t.__value = a = /*balance*/
3810
3808
  e[67].currency, xe(t, t.__value);
3811
3809
  },
3812
3810
  m(o, s) {
3813
- Q(o, t, s), m(t, n), m(t, i);
3811
+ Q(o, t, s), m(t, r), m(t, i);
3814
3812
  },
3815
3813
  p(o, s) {
3816
3814
  s[0] & /*playerFilteredBalances*/
3817
- 8192 && r !== (r = /*balance*/
3818
- o[67].currency + "") && W(n, r), s[0] & /*playerFilteredBalances*/
3815
+ 8192 && n !== (n = /*balance*/
3816
+ o[67].currency + "") && W(r, n), s[0] & /*playerFilteredBalances*/
3819
3817
  8192 && a !== (a = /*balance*/
3820
3818
  o[67].currency) && (t.__value = a, xe(t, t.__value));
3821
3819
  },
@@ -3824,44 +3822,44 @@ function mr(e) {
3824
3822
  }
3825
3823
  };
3826
3824
  }
3827
- function dr(e) {
3828
- let t, r = (
3825
+ function dn(e) {
3826
+ let t, n = (
3829
3827
  /*balance*/
3830
- e[67].amount > 0 && mr(e)
3828
+ e[67].amount > 0 && mn(e)
3831
3829
  );
3832
3830
  return {
3833
3831
  c() {
3834
- r && r.c(), t = _r();
3832
+ n && n.c(), t = _n();
3835
3833
  },
3836
- m(n, i) {
3837
- r && r.m(n, i), Q(n, t, i);
3834
+ m(r, i) {
3835
+ n && n.m(r, i), Q(r, t, i);
3838
3836
  },
3839
- p(n, i) {
3837
+ p(r, i) {
3840
3838
  /*balance*/
3841
- n[67].amount > 0 ? r ? r.p(n, i) : (r = mr(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3839
+ r[67].amount > 0 ? n ? n.p(r, i) : (n = mn(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
3842
3840
  },
3843
- d(n) {
3844
- n && Z(t), r && r.d(n);
3841
+ d(r) {
3842
+ r && Z(t), n && n.d(r);
3845
3843
  }
3846
3844
  };
3847
3845
  }
3848
- function gr(e) {
3849
- let t, r = (
3846
+ function gn(e) {
3847
+ let t, n = (
3850
3848
  /*balance*/
3851
3849
  e[67].currency + ""
3852
- ), n, i, a;
3850
+ ), r, i, a;
3853
3851
  return {
3854
3852
  c() {
3855
- t = E("option"), n = $(r), i = R(), t.__value = a = /*balance*/
3853
+ t = E("option"), r = j(n), i = R(), t.__value = a = /*balance*/
3856
3854
  e[67].currency, xe(t, t.__value);
3857
3855
  },
3858
3856
  m(o, s) {
3859
- Q(o, t, s), m(t, n), m(t, i);
3857
+ Q(o, t, s), m(t, r), m(t, i);
3860
3858
  },
3861
3859
  p(o, s) {
3862
3860
  s[0] & /*playerFilteredBalances*/
3863
- 8192 && r !== (r = /*balance*/
3864
- o[67].currency + "") && W(n, r), s[0] & /*playerFilteredBalances*/
3861
+ 8192 && n !== (n = /*balance*/
3862
+ o[67].currency + "") && W(r, n), s[0] & /*playerFilteredBalances*/
3865
3863
  8192 && a !== (a = /*balance*/
3866
3864
  o[67].currency) && (t.__value = a, xe(t, t.__value));
3867
3865
  },
@@ -3870,31 +3868,31 @@ function gr(e) {
3870
3868
  }
3871
3869
  };
3872
3870
  }
3873
- function br(e) {
3874
- let t, r = (
3871
+ function bn(e) {
3872
+ let t, n = (
3875
3873
  /*selectedCurrencyFrom*/
3876
3874
  e[1] !== /*balance*/
3877
- e[67].currency && gr(e)
3875
+ e[67].currency && gn(e)
3878
3876
  );
3879
3877
  return {
3880
3878
  c() {
3881
- r && r.c(), t = _r();
3879
+ n && n.c(), t = _n();
3882
3880
  },
3883
- m(n, i) {
3884
- r && r.m(n, i), Q(n, t, i);
3881
+ m(r, i) {
3882
+ n && n.m(r, i), Q(r, t, i);
3885
3883
  },
3886
- p(n, i) {
3884
+ p(r, i) {
3887
3885
  /*selectedCurrencyFrom*/
3888
- n[1] !== /*balance*/
3889
- n[67].currency ? r ? r.p(n, i) : (r = gr(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
3886
+ r[1] !== /*balance*/
3887
+ r[67].currency ? n ? n.p(r, i) : (n = gn(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
3890
3888
  },
3891
- d(n) {
3892
- n && Z(t), r && r.d(n);
3889
+ d(r) {
3890
+ r && Z(t), n && n.d(r);
3893
3891
  }
3894
3892
  };
3895
3893
  }
3896
- function yr(e) {
3897
- let t, r, n = (
3894
+ function yn(e) {
3895
+ let t, n, r = (
3898
3896
  /*vault*/
3899
3897
  e[64].currency + ""
3900
3898
  ), i, a, o, s = (
@@ -3913,15 +3911,15 @@ function yr(e) {
3913
3911
  );
3914
3912
  return {
3915
3913
  c() {
3916
- t = E("div"), r = E("p"), i = $(n), a = R(), o = E("p"), c = $(s), l = R(), T(t, "class", "vaultItem");
3914
+ t = E("div"), n = E("p"), i = j(r), a = R(), o = E("p"), c = j(s), l = R(), T(t, "class", "vaultItem");
3917
3915
  },
3918
- m(b, v) {
3919
- Q(b, t, v), m(t, r), m(r, i), m(t, a), m(t, o), m(o, c), m(t, l), h();
3916
+ m(b, x) {
3917
+ Q(b, t, x), m(t, n), m(n, i), m(t, a), m(t, o), m(o, c), m(t, l), h();
3920
3918
  },
3921
- p(b, v) {
3922
- e = b, v[0] & /*dropDownVaults*/
3923
- 16384 && n !== (n = /*vault*/
3924
- e[64].currency + "") && W(i, n), v[0] & /*dropDownVaults*/
3919
+ p(b, x) {
3920
+ e = b, x[0] & /*dropDownVaults*/
3921
+ 16384 && r !== (r = /*vault*/
3922
+ e[64].currency + "") && W(i, r), x[0] & /*dropDownVaults*/
3925
3923
  16384 && s !== (s = /*vault*/
3926
3924
  e[64].amount + "") && W(c, s), u !== /*index*/
3927
3925
  e[66] && (d(), u = /*index*/
@@ -3932,24 +3930,24 @@ function yr(e) {
3932
3930
  }
3933
3931
  };
3934
3932
  }
3935
- function oa(e) {
3936
- let t, r = (
3933
+ function aa(e) {
3934
+ let t, n = (
3937
3935
  /*$_*/
3938
3936
  e[18]("Exchange") + ""
3939
- ), n, i, a, o = (
3937
+ ), r, i, a, o = (
3940
3938
  /*$_*/
3941
3939
  e[18]("Reset") + ""
3942
3940
  ), s, c, l;
3943
3941
  return {
3944
3942
  c() {
3945
- t = E("button"), n = $(r), i = R(), a = E("button"), s = $(o), t.disabled = /*exchangeDisabled*/
3946
- e[6], j(
3943
+ t = E("button"), r = j(n), i = R(), a = E("button"), s = j(o), t.disabled = /*exchangeDisabled*/
3944
+ e[6], $(
3947
3945
  t,
3948
3946
  "disabled",
3949
3947
  /*exchangeDisabled*/
3950
3948
  e[6]
3951
3949
  ), a.disabled = /*exchangeDisabled*/
3952
- e[6], j(
3950
+ e[6], $(
3953
3951
  a,
3954
3952
  "disabled",
3955
3953
  /*exchangeDisabled*/
@@ -3957,7 +3955,7 @@ function oa(e) {
3957
3955
  );
3958
3956
  },
3959
3957
  m(u, h) {
3960
- Q(u, t, h), m(t, n), Q(u, i, h), Q(u, a, h), m(a, s), c || (l = [
3958
+ Q(u, t, h), m(t, r), Q(u, i, h), Q(u, a, h), m(a, s), c || (l = [
3961
3959
  ee(
3962
3960
  t,
3963
3961
  "click",
@@ -3974,11 +3972,11 @@ function oa(e) {
3974
3972
  },
3975
3973
  p(u, h) {
3976
3974
  h[0] & /*$_*/
3977
- 262144 && r !== (r = /*$_*/
3978
- u[18]("Exchange") + "") && W(n, r), h[0] & /*exchangeDisabled*/
3975
+ 262144 && n !== (n = /*$_*/
3976
+ u[18]("Exchange") + "") && W(r, n), h[0] & /*exchangeDisabled*/
3979
3977
  64 && (t.disabled = /*exchangeDisabled*/
3980
3978
  u[6]), h[0] & /*exchangeDisabled*/
3981
- 64 && j(
3979
+ 64 && $(
3982
3980
  t,
3983
3981
  "disabled",
3984
3982
  /*exchangeDisabled*/
@@ -3988,7 +3986,7 @@ function oa(e) {
3988
3986
  u[18]("Reset") + "") && W(s, o), h[0] & /*exchangeDisabled*/
3989
3987
  64 && (a.disabled = /*exchangeDisabled*/
3990
3988
  u[6]), h[0] & /*exchangeDisabled*/
3991
- 64 && j(
3989
+ 64 && $(
3992
3990
  a,
3993
3991
  "disabled",
3994
3992
  /*exchangeDisabled*/
@@ -3996,24 +3994,24 @@ function oa(e) {
3996
3994
  );
3997
3995
  },
3998
3996
  d(u) {
3999
- u && (Z(t), Z(i), Z(a)), c = !1, we(l);
3997
+ u && (Z(t), Z(i), Z(a)), c = !1, _e(l);
4000
3998
  }
4001
3999
  };
4002
4000
  }
4003
- function sa(e) {
4004
- let t, r = (
4001
+ function oa(e) {
4002
+ let t, n = (
4005
4003
  /*$_*/
4006
4004
  e[18]("Accept") + ""
4007
- ), n, i, a, o = (
4005
+ ), r, i, a, o = (
4008
4006
  /*$_*/
4009
4007
  e[18]("Decline") + ""
4010
4008
  ), s, c, l;
4011
4009
  return {
4012
4010
  c() {
4013
- t = E("button"), n = $(r), i = R(), a = E("button"), s = $(o);
4011
+ t = E("button"), r = j(n), i = R(), a = E("button"), s = j(o);
4014
4012
  },
4015
4013
  m(u, h) {
4016
- Q(u, t, h), m(t, n), Q(u, i, h), Q(u, a, h), m(a, s), c || (l = [
4014
+ Q(u, t, h), m(t, r), Q(u, i, h), Q(u, a, h), m(a, s), c || (l = [
4017
4015
  ee(
4018
4016
  t,
4019
4017
  "click",
@@ -4030,159 +4028,159 @@ function sa(e) {
4030
4028
  },
4031
4029
  p(u, h) {
4032
4030
  h[0] & /*$_*/
4033
- 262144 && r !== (r = /*$_*/
4034
- u[18]("Accept") + "") && W(n, r), h[0] & /*$_*/
4031
+ 262144 && n !== (n = /*$_*/
4032
+ u[18]("Accept") + "") && W(r, n), h[0] & /*$_*/
4035
4033
  262144 && o !== (o = /*$_*/
4036
4034
  u[18]("Decline") + "") && W(s, o);
4037
4035
  },
4038
4036
  d(u) {
4039
- u && (Z(t), Z(i), Z(a)), c = !1, we(l);
4037
+ u && (Z(t), Z(i), Z(a)), c = !1, _e(l);
4040
4038
  }
4041
4039
  };
4042
4040
  }
4043
- function ua(e) {
4044
- let t, r, n, i, a = (
4041
+ function sa(e) {
4042
+ let t, n, r, i, a = (
4045
4043
  /*$_*/
4046
4044
  e[18]("vaultExchange") + ""
4047
4045
  ), o, s, c, l, u = (
4048
4046
  /*$_*/
4049
4047
  e[18]("currentBalance") + ""
4050
- ), h, d, b, v = (
4048
+ ), h, d, b, x = (
4051
4049
  /*playerBalance*/
4052
4050
  e[15].amount + ""
4053
- ), P, F, I = (
4051
+ ), I, F, N = (
4054
4052
  /*playerBalance*/
4055
4053
  e[15].currency + ""
4056
- ), D, U, C, O, q, te = (
4054
+ ), D, U, P, O, q, te = (
4057
4055
  /*$_*/
4058
4056
  e[18]("exchangeFrom") + ""
4059
- ), oe, Te, he, fe, V, J, pe, G, Be, Y, Xe, re, me, Se = (
4057
+ ), oe, we, ce, he, V, J, fe, G, Ae, Y, ze, ne, pe, Be = (
4060
4058
  /*$_*/
4061
4059
  e[18]("exchangeTo") + ""
4062
- ), We, Ze, de, k, Ce, Pe, nt, ne, qe, be, ye, Je, Ie, Qe, M, ge, it, K, ie, Ne, Oe = (
4060
+ ), Xe, We, me, k, Se, Ce, nt, re, Ze, ge, be, qe, Pe, Je, M, de, rt, K, ie, Ie, Ne = (
4063
4061
  /*$_*/
4064
4062
  e[18](
4065
4063
  /*errorCode*/
4066
4064
  e[3]
4067
4065
  ) + ""
4068
- ), at, He, p, y, B = Me(
4066
+ ), it, Te, p, y, S = Le(
4069
4067
  /*playerFilteredBalances*/
4070
4068
  e[13]
4071
- ), x = [];
4072
- for (let f = 0; f < B.length; f += 1)
4073
- x[f] = dr(pr(e, B, f));
4074
- let A = Me(
4069
+ ), v = [];
4070
+ for (let f = 0; f < S.length; f += 1)
4071
+ v[f] = dn(pn(e, S, f));
4072
+ let B = Le(
4075
4073
  /*playerFilteredBalances*/
4076
4074
  e[13]
4077
4075
  ), L = [];
4078
- for (let f = 0; f < A.length; f += 1)
4079
- L[f] = br(fr(e, A, f));
4080
- let se = Me(
4076
+ for (let f = 0; f < B.length; f += 1)
4077
+ L[f] = bn(fn(e, B, f));
4078
+ let se = Le(
4081
4079
  /*dropDownVaults*/
4082
4080
  e[14]
4083
4081
  ), z = [];
4084
4082
  for (let f = 0; f < se.length; f += 1)
4085
- z[f] = yr(hr(e, se, f));
4086
- function Vt(f, H) {
4083
+ z[f] = yn(hn(e, se, f));
4084
+ function jt(f, H) {
4087
4085
  return (
4088
4086
  /*hasTransactionFee*/
4089
4087
  f[12] && !/*isFeeAccepted*/
4090
- f[11] ? sa : oa
4088
+ f[11] ? oa : aa
4091
4089
  );
4092
4090
  }
4093
- let ot = Vt(e), ue = ot(e);
4091
+ let at = jt(e), ue = at(e);
4094
4092
  return {
4095
4093
  c() {
4096
- t = E("div"), r = E("div"), n = E("div"), i = E("h1"), o = $(a), s = R(), c = E("div"), l = E("p"), h = $(u), d = R(), b = E("p"), P = $(v), F = R(), D = $(I), U = R(), C = E("div"), O = E("div"), q = E("p"), oe = $(te), Te = R(), he = E("div"), fe = E("div"), V = E("input"), pe = R(), G = E("select");
4097
- for (let f = 0; f < x.length; f += 1)
4098
- x[f].c();
4099
- Be = R(), Y = E("div"), Y.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="6 5 20 20" class="iconExchange"><path d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"></path></svg>', Xe = R(), re = E("div"), me = E("p"), We = $(Se), Ze = R(), de = E("div"), k = E("input"), nt = R(), ne = E("select");
4094
+ t = E("div"), n = E("div"), r = E("div"), i = E("h1"), o = j(a), s = R(), c = E("div"), l = E("p"), h = j(u), d = R(), b = E("p"), I = j(x), F = R(), D = j(N), U = R(), P = E("div"), O = E("div"), q = E("p"), oe = j(te), we = R(), ce = E("div"), he = E("div"), V = E("input"), fe = R(), G = E("select");
4095
+ for (let f = 0; f < v.length; f += 1)
4096
+ v[f].c();
4097
+ Ae = R(), Y = E("div"), Y.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="6 5 20 20" class="iconExchange"><path d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"></path></svg>', ze = R(), ne = E("div"), pe = E("p"), Xe = j(Be), We = R(), me = E("div"), k = E("input"), nt = R(), re = E("select");
4100
4098
  for (let f = 0; f < L.length; f += 1)
4101
4099
  L[f].c();
4102
- qe = R(), be = E("div"), ye = Xt("svg"), Je = Xt("path"), Qe = R(), M = E("div");
4100
+ Ze = R(), ge = E("div"), be = zt("svg"), qe = zt("path"), Je = R(), M = E("div");
4103
4101
  for (let f = 0; f < z.length; f += 1)
4104
4102
  z[f].c();
4105
- it = R(), K = E("div"), ie = E("div"), Ne = E("p"), at = R(), He = E("div"), ue.c(), T(n, "class", "headerContainer"), T(b, "class", "playerBalance"), T(c, "class", "balanceContainer"), T(r, "class", "playerVaultContainer"), T(q, "class", "exchangeHeader"), T(V, "placeholder", J = /*$_*/
4103
+ rt = R(), K = E("div"), ie = E("div"), Ie = E("p"), it = R(), Te = E("div"), ue.c(), T(r, "class", "headerContainer"), T(b, "class", "playerBalance"), T(c, "class", "balanceContainer"), T(n, "class", "playerVaultContainer"), T(q, "class", "exchangeHeader"), T(V, "placeholder", J = /*$_*/
4106
4104
  e[18]("debitPlaceHolder")), T(V, "type", "number"), T(V, "min", "0"), /*selectedCurrencyFrom*/
4107
- e[1] === void 0 && et(() => (
4105
+ e[1] === void 0 && Ke(() => (
4108
4106
  /*select0_change_handler*/
4109
4107
  e[33].call(G)
4110
- )), T(fe, "class", "containerInputSelect"), T(he, "class", "flexingContainerRow"), T(O, "class", "containerExchangeFrom"), T(Y, "class", "containerIconExchange"), T(me, "class", "exchangeHeader"), k.disabled = Ce = /*inputExchangeFrom*/
4111
- e[4] === 0, T(k, "placeholder", Pe = /*$_*/
4108
+ )), T(he, "class", "containerInputSelect"), T(ce, "class", "flexingContainerRow"), T(O, "class", "containerExchangeFrom"), T(Y, "class", "containerIconExchange"), T(pe, "class", "exchangeHeader"), k.disabled = Se = /*inputExchangeFrom*/
4109
+ e[4] === 0, T(k, "placeholder", Ce = /*$_*/
4112
4110
  e[18]("creditPlaceHolder")), T(k, "type", "number"), T(k, "min", "0"), k.readOnly = !0, /*selectedCurrencyTo*/
4113
- e[2] === void 0 && et(() => (
4111
+ e[2] === void 0 && Ke(() => (
4114
4112
  /*select1_change_handler*/
4115
- e[35].call(ne)
4116
- )), T(de, "class", "containerInputSelect"), T(re, "class", "containerExchangeTo"), T(Je, "d", "M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"), T(ye, "xmlns", "http://www.w3.org/2000/svg"), T(ye, "viewBox", "6 5 20 20"), T(ye, "class", "iconToggleVault"), T(be, "class", Ie = "containerIconVault " + /*isVaultDropDownToggled*/
4113
+ e[35].call(re)
4114
+ )), T(me, "class", "containerInputSelect"), T(ne, "class", "containerExchangeTo"), T(qe, "d", "M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"), T(be, "xmlns", "http://www.w3.org/2000/svg"), T(be, "viewBox", "6 5 20 20"), T(be, "class", "iconToggleVault"), T(ge, "class", Pe = "containerIconVault " + /*isVaultDropDownToggled*/
4117
4115
  (e[7] && /*dropDownVaults*/
4118
- e[14].length > 0 ? "active" : "")), T(C, "class", "containerExchanges"), T(M, "class", ge = "vaultDropDown " + /*isVaultDropDownToggled*/
4116
+ e[14].length > 0 ? "active" : "")), T(P, "class", "containerExchanges"), T(M, "class", de = "vaultDropDown " + /*isVaultDropDownToggled*/
4119
4117
  (e[7] && /*dropDownVaults*/
4120
- e[14].length > 0 ? "active" : "")), Wt(
4118
+ e[14].length > 0 ? "active" : "")), Xt(
4121
4119
  M,
4122
4120
  "height",
4123
4121
  /*calculateHeight*/
4124
4122
  e[0]
4125
- ), j(
4123
+ ), $(
4126
4124
  ie,
4127
4125
  "error",
4128
4126
  /*isError*/
4129
4127
  e[8]
4130
- ), j(
4128
+ ), $(
4131
4129
  ie,
4132
4130
  "success",
4133
4131
  /*isSuccess*/
4134
4132
  e[9]
4135
- ), j(
4133
+ ), $(
4136
4134
  ie,
4137
4135
  "action",
4138
4136
  /*isAction*/
4139
4137
  e[10]
4140
- ), T(K, "class", "notificationsContainer"), j(
4138
+ ), T(K, "class", "notificationsContainer"), $(
4141
4139
  K,
4142
4140
  "error",
4143
4141
  /*isError*/
4144
4142
  e[8]
4145
- ), j(
4143
+ ), $(
4146
4144
  K,
4147
4145
  "success",
4148
4146
  /*isSuccess*/
4149
4147
  e[9]
4150
- ), j(
4148
+ ), $(
4151
4149
  K,
4152
4150
  "action",
4153
4151
  /*isAction*/
4154
4152
  e[10]
4155
- ), T(He, "class", "actionsContainer"), T(t, "class", "player-account-vault");
4153
+ ), T(Te, "class", "actionsContainer"), T(t, "class", "player-account-vault");
4156
4154
  },
4157
4155
  m(f, H) {
4158
- Q(f, t, H), m(t, r), m(r, n), m(n, i), m(i, o), m(r, s), m(r, c), m(c, l), m(l, h), m(c, d), m(c, b), m(b, P), m(b, F), m(b, D), m(t, U), m(t, C), m(C, O), m(O, q), m(q, oe), m(O, Te), m(O, he), m(he, fe), m(fe, V), xe(
4156
+ Q(f, t, H), m(t, n), m(n, r), m(r, i), m(i, o), m(n, s), m(n, c), m(c, l), m(l, h), m(c, d), m(c, b), m(b, I), m(b, F), m(b, D), m(t, U), m(t, P), m(P, O), m(O, q), m(q, oe), m(O, we), m(O, ce), m(ce, he), m(he, V), xe(
4159
4157
  V,
4160
4158
  /*inputExchangeFrom*/
4161
4159
  e[4]
4162
- ), m(fe, pe), m(fe, G);
4163
- for (let g = 0; g < x.length; g += 1)
4164
- x[g] && x[g].m(G, null);
4165
- st(
4160
+ ), m(he, fe), m(he, G);
4161
+ for (let g = 0; g < v.length; g += 1)
4162
+ v[g] && v[g].m(G, null);
4163
+ ot(
4166
4164
  G,
4167
4165
  /*selectedCurrencyFrom*/
4168
4166
  e[1],
4169
4167
  !0
4170
- ), m(C, Be), m(C, Y), m(C, Xe), m(C, re), m(re, me), m(me, We), m(re, Ze), m(re, de), m(de, k), xe(
4168
+ ), m(P, Ae), m(P, Y), m(P, ze), m(P, ne), m(ne, pe), m(pe, Xe), m(ne, We), m(ne, me), m(me, k), xe(
4171
4169
  k,
4172
4170
  /*inputExchangeTo*/
4173
4171
  e[5]
4174
- ), m(de, nt), m(de, ne);
4172
+ ), m(me, nt), m(me, re);
4175
4173
  for (let g = 0; g < L.length; g += 1)
4176
- L[g] && L[g].m(ne, null);
4177
- st(
4178
- ne,
4174
+ L[g] && L[g].m(re, null);
4175
+ ot(
4176
+ re,
4179
4177
  /*selectedCurrencyTo*/
4180
4178
  e[2],
4181
4179
  !0
4182
- ), m(C, qe), m(C, be), m(be, ye), m(ye, Je), m(t, Qe), m(t, M);
4180
+ ), m(P, Ze), m(P, ge), m(ge, be), m(be, qe), m(t, Je), m(t, M);
4183
4181
  for (let g = 0; g < z.length; g += 1)
4184
4182
  z[g] && z[g].m(M, null);
4185
- e[38](M), m(t, it), m(t, K), m(K, ie), m(ie, Ne), Ne.innerHTML = Oe, m(t, at), m(t, He), ue.m(He, null), p || (y = [
4183
+ e[38](M), m(t, rt), m(t, K), m(K, ie), m(ie, Ie), Ie.innerHTML = Ne, m(t, it), m(t, Te), ue.m(Te, null), p || (y = [
4186
4184
  ee(
4187
4185
  V,
4188
4186
  "input",
@@ -4214,19 +4212,19 @@ function ua(e) {
4214
4212
  e[34]
4215
4213
  ),
4216
4214
  ee(
4217
- ne,
4215
+ re,
4218
4216
  "change",
4219
4217
  /*select1_change_handler*/
4220
4218
  e[35]
4221
4219
  ),
4222
4220
  ee(
4223
- ne,
4221
+ re,
4224
4222
  "change",
4225
4223
  /*debouncedExchangeInterogation*/
4226
4224
  e[20]
4227
4225
  ),
4228
4226
  ee(
4229
- be,
4227
+ ge,
4230
4228
  "click",
4231
4229
  /*click_handler*/
4232
4230
  e[36]
@@ -4239,241 +4237,241 @@ function ua(e) {
4239
4237
  f[18]("vaultExchange") + "") && W(o, a), H[0] & /*$_*/
4240
4238
  262144 && u !== (u = /*$_*/
4241
4239
  f[18]("currentBalance") + "") && W(h, u), H[0] & /*playerBalance*/
4242
- 32768 && v !== (v = /*playerBalance*/
4243
- f[15].amount + "") && W(P, v), H[0] & /*playerBalance*/
4244
- 32768 && I !== (I = /*playerBalance*/
4245
- f[15].currency + "") && W(D, I), H[0] & /*$_*/
4240
+ 32768 && x !== (x = /*playerBalance*/
4241
+ f[15].amount + "") && W(I, x), H[0] & /*playerBalance*/
4242
+ 32768 && N !== (N = /*playerBalance*/
4243
+ f[15].currency + "") && W(D, N), H[0] & /*$_*/
4246
4244
  262144 && te !== (te = /*$_*/
4247
4245
  f[18]("exchangeFrom") + "") && W(oe, te), H[0] & /*$_*/
4248
4246
  262144 && J !== (J = /*$_*/
4249
4247
  f[18]("debitPlaceHolder")) && T(V, "placeholder", J), H[0] & /*inputExchangeFrom*/
4250
- 16 && ft(V.value) !== /*inputExchangeFrom*/
4248
+ 16 && ht(V.value) !== /*inputExchangeFrom*/
4251
4249
  f[4] && xe(
4252
4250
  V,
4253
4251
  /*inputExchangeFrom*/
4254
4252
  f[4]
4255
4253
  ), H[0] & /*playerFilteredBalances*/
4256
4254
  8192) {
4257
- B = Me(
4255
+ S = Le(
4258
4256
  /*playerFilteredBalances*/
4259
4257
  f[13]
4260
4258
  );
4261
4259
  let g;
4262
- for (g = 0; g < B.length; g += 1) {
4263
- const ve = pr(f, B, g);
4264
- x[g] ? x[g].p(ve, H) : (x[g] = dr(ve), x[g].c(), x[g].m(G, null));
4260
+ for (g = 0; g < S.length; g += 1) {
4261
+ const ye = pn(f, S, g);
4262
+ v[g] ? v[g].p(ye, H) : (v[g] = dn(ye), v[g].c(), v[g].m(G, null));
4265
4263
  }
4266
- for (; g < x.length; g += 1)
4267
- x[g].d(1);
4268
- x.length = B.length;
4264
+ for (; g < v.length; g += 1)
4265
+ v[g].d(1);
4266
+ v.length = S.length;
4269
4267
  }
4270
4268
  if (H[0] & /*selectedCurrencyFrom, playerFilteredBalances*/
4271
- 8194 && st(
4269
+ 8194 && ot(
4272
4270
  G,
4273
4271
  /*selectedCurrencyFrom*/
4274
4272
  f[1]
4275
4273
  ), H[0] & /*$_*/
4276
- 262144 && Se !== (Se = /*$_*/
4277
- f[18]("exchangeTo") + "") && W(We, Se), H[0] & /*inputExchangeFrom*/
4278
- 16 && Ce !== (Ce = /*inputExchangeFrom*/
4279
- f[4] === 0) && (k.disabled = Ce), H[0] & /*$_*/
4280
- 262144 && Pe !== (Pe = /*$_*/
4281
- f[18]("creditPlaceHolder")) && T(k, "placeholder", Pe), H[0] & /*inputExchangeTo*/
4282
- 32 && ft(k.value) !== /*inputExchangeTo*/
4274
+ 262144 && Be !== (Be = /*$_*/
4275
+ f[18]("exchangeTo") + "") && W(Xe, Be), H[0] & /*inputExchangeFrom*/
4276
+ 16 && Se !== (Se = /*inputExchangeFrom*/
4277
+ f[4] === 0) && (k.disabled = Se), H[0] & /*$_*/
4278
+ 262144 && Ce !== (Ce = /*$_*/
4279
+ f[18]("creditPlaceHolder")) && T(k, "placeholder", Ce), H[0] & /*inputExchangeTo*/
4280
+ 32 && ht(k.value) !== /*inputExchangeTo*/
4283
4281
  f[5] && xe(
4284
4282
  k,
4285
4283
  /*inputExchangeTo*/
4286
4284
  f[5]
4287
4285
  ), H[0] & /*playerFilteredBalances, selectedCurrencyFrom*/
4288
4286
  8194) {
4289
- A = Me(
4287
+ B = Le(
4290
4288
  /*playerFilteredBalances*/
4291
4289
  f[13]
4292
4290
  );
4293
4291
  let g;
4294
- for (g = 0; g < A.length; g += 1) {
4295
- const ve = fr(f, A, g);
4296
- L[g] ? L[g].p(ve, H) : (L[g] = br(ve), L[g].c(), L[g].m(ne, null));
4292
+ for (g = 0; g < B.length; g += 1) {
4293
+ const ye = fn(f, B, g);
4294
+ L[g] ? L[g].p(ye, H) : (L[g] = bn(ye), L[g].c(), L[g].m(re, null));
4297
4295
  }
4298
4296
  for (; g < L.length; g += 1)
4299
4297
  L[g].d(1);
4300
- L.length = A.length;
4298
+ L.length = B.length;
4301
4299
  }
4302
4300
  if (H[0] & /*selectedCurrencyTo, playerFilteredBalances*/
4303
- 8196 && st(
4304
- ne,
4301
+ 8196 && ot(
4302
+ re,
4305
4303
  /*selectedCurrencyTo*/
4306
4304
  f[2]
4307
4305
  ), H[0] & /*isVaultDropDownToggled, dropDownVaults*/
4308
- 16512 && Ie !== (Ie = "containerIconVault " + /*isVaultDropDownToggled*/
4306
+ 16512 && Pe !== (Pe = "containerIconVault " + /*isVaultDropDownToggled*/
4309
4307
  (f[7] && /*dropDownVaults*/
4310
- f[14].length > 0 ? "active" : "")) && T(be, "class", Ie), H[0] & /*elements, dropDownVaults*/
4308
+ f[14].length > 0 ? "active" : "")) && T(ge, "class", Pe), H[0] & /*elements, dropDownVaults*/
4311
4309
  147456) {
4312
- se = Me(
4310
+ se = Le(
4313
4311
  /*dropDownVaults*/
4314
4312
  f[14]
4315
4313
  );
4316
4314
  let g;
4317
4315
  for (g = 0; g < se.length; g += 1) {
4318
- const ve = hr(f, se, g);
4319
- z[g] ? z[g].p(ve, H) : (z[g] = yr(ve), z[g].c(), z[g].m(M, null));
4316
+ const ye = hn(f, se, g);
4317
+ z[g] ? z[g].p(ye, H) : (z[g] = yn(ye), z[g].c(), z[g].m(M, null));
4320
4318
  }
4321
4319
  for (; g < z.length; g += 1)
4322
4320
  z[g].d(1);
4323
4321
  z.length = se.length;
4324
4322
  }
4325
4323
  H[0] & /*isVaultDropDownToggled, dropDownVaults*/
4326
- 16512 && ge !== (ge = "vaultDropDown " + /*isVaultDropDownToggled*/
4324
+ 16512 && de !== (de = "vaultDropDown " + /*isVaultDropDownToggled*/
4327
4325
  (f[7] && /*dropDownVaults*/
4328
- f[14].length > 0 ? "active" : "")) && T(M, "class", ge), H[0] & /*calculateHeight*/
4329
- 1 && Wt(
4326
+ f[14].length > 0 ? "active" : "")) && T(M, "class", de), H[0] & /*calculateHeight*/
4327
+ 1 && Xt(
4330
4328
  M,
4331
4329
  "height",
4332
4330
  /*calculateHeight*/
4333
4331
  f[0]
4334
4332
  ), H[0] & /*$_, errorCode*/
4335
- 262152 && Oe !== (Oe = /*$_*/
4333
+ 262152 && Ne !== (Ne = /*$_*/
4336
4334
  f[18](
4337
4335
  /*errorCode*/
4338
4336
  f[3]
4339
- ) + "") && (Ne.innerHTML = Oe), H[0] & /*isError*/
4340
- 256 && j(
4337
+ ) + "") && (Ie.innerHTML = Ne), H[0] & /*isError*/
4338
+ 256 && $(
4341
4339
  ie,
4342
4340
  "error",
4343
4341
  /*isError*/
4344
4342
  f[8]
4345
4343
  ), H[0] & /*isSuccess*/
4346
- 512 && j(
4344
+ 512 && $(
4347
4345
  ie,
4348
4346
  "success",
4349
4347
  /*isSuccess*/
4350
4348
  f[9]
4351
4349
  ), H[0] & /*isAction*/
4352
- 1024 && j(
4350
+ 1024 && $(
4353
4351
  ie,
4354
4352
  "action",
4355
4353
  /*isAction*/
4356
4354
  f[10]
4357
4355
  ), H[0] & /*isError*/
4358
- 256 && j(
4356
+ 256 && $(
4359
4357
  K,
4360
4358
  "error",
4361
4359
  /*isError*/
4362
4360
  f[8]
4363
4361
  ), H[0] & /*isSuccess*/
4364
- 512 && j(
4362
+ 512 && $(
4365
4363
  K,
4366
4364
  "success",
4367
4365
  /*isSuccess*/
4368
4366
  f[9]
4369
4367
  ), H[0] & /*isAction*/
4370
- 1024 && j(
4368
+ 1024 && $(
4371
4369
  K,
4372
4370
  "action",
4373
4371
  /*isAction*/
4374
4372
  f[10]
4375
- ), ot === (ot = Vt(f)) && ue ? ue.p(f, H) : (ue.d(1), ue = ot(f), ue && (ue.c(), ue.m(He, null)));
4373
+ ), at === (at = jt(f)) && ue ? ue.p(f, H) : (ue.d(1), ue = at(f), ue && (ue.c(), ue.m(Te, null)));
4376
4374
  },
4377
4375
  i: ae,
4378
4376
  o: ae,
4379
4377
  d(f) {
4380
- f && Z(t), _t(x, f), _t(L, f), _t(z, f), e[38](null), ue.d(), p = !1, we(y);
4378
+ f && Z(t), vt(v, f), vt(L, f), vt(z, f), e[38](null), ue.d(), p = !1, _e(y);
4381
4379
  }
4382
4380
  };
4383
4381
  }
4384
- function la(e, t) {
4385
- let r;
4386
- return function(...n) {
4387
- r && clearTimeout(r), r = setTimeout(
4382
+ function ua(e, t) {
4383
+ let n;
4384
+ return function(...r) {
4385
+ n && clearTimeout(n), n = setTimeout(
4388
4386
  () => {
4389
- e.apply(n);
4387
+ e.apply(r);
4390
4388
  },
4391
4389
  t
4392
4390
  );
4393
4391
  };
4394
4392
  }
4395
- function ca(e, t, r) {
4396
- let n;
4397
- qr(e, ra, (p) => r(18, n = p));
4398
- let { session: i = "" } = t, { userid: a = "" } = t, { endpoint: o = "" } = t, { lang: s = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { playercurrency: h = "" } = t, d = "", b = "", v = "", P = "", F = "", I = 0, D = 0, U = 0, C = !0, O = !1, q = !1, te = !1, oe = !1, Te = !0, he = !1, fe = [], V = [], J = [], pe = [], G = [], Be = [], Y = {}, Xe = {}, re = null, me = [];
4399
- const Se = () => {
4400
- ia(s);
4393
+ function la(e, t, n) {
4394
+ let r;
4395
+ qn(e, ta, (p) => n(18, r = p));
4396
+ let { session: i = "" } = t, { userid: a = "" } = t, { endpoint: o = "" } = t, { lang: s = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { playercurrency: h = "" } = t, d = "", b = "", x = "", I = "", F = "", N = 0, D = 0, U = 0, P = !0, O = !1, q = !1, te = !1, oe = !1, we = !0, ce = !1, he = [], V = [], J = [], fe = [], G = [], Ae = [], Y = {}, ze = {}, ne = null, pe = [];
4397
+ const Be = () => {
4398
+ ra(s);
4401
4399
  };
4402
4400
  na({ withLocale: "en", translations: {} });
4403
- const We = () => {
4401
+ const Xe = () => {
4404
4402
  fetch(u).then((y) => y.json()).then((y) => {
4405
- Object.keys(y).forEach((B) => {
4406
- lr(B, y[B]);
4403
+ Object.keys(y).forEach((S) => {
4404
+ ln(S, y[S]);
4407
4405
  });
4408
4406
  }).catch((y) => {
4409
4407
  console.error("There was a problem with the translations request.", y);
4410
4408
  });
4411
4409
  };
4412
- Object.keys(cr).forEach((p) => {
4413
- lr(p, cr[p]);
4410
+ Object.keys(cn).forEach((p) => {
4411
+ ln(p, cn[p]);
4414
4412
  });
4415
- const Ze = (p) => {
4416
- O && G.length === 0 || (p.preventDefault(), r(7, O = !O), r(0, d = O ? de() : "0px"));
4417
- }, de = () => {
4413
+ const We = (p) => {
4414
+ O && G.length === 0 || (p.preventDefault(), n(7, O = !O), n(0, d = O ? me() : "0px"));
4415
+ }, me = () => {
4418
4416
  if (G.length === 0)
4419
- return r(0, d = "0px");
4420
- const p = me[0]?.clientHeight, y = G.length, B = 30, x = parseFloat(getComputedStyle(re).getPropertyValue("gap"));
4421
- return r(0, d = `${y * p + y * x + B}px`);
4417
+ return n(0, d = "0px");
4418
+ const p = pe[0]?.clientHeight, y = G.length, S = 30, v = parseFloat(getComputedStyle(ne).getPropertyValue("gap"));
4419
+ return n(0, d = `${y * p + y * v + S}px`);
4422
4420
  }, k = () => new Promise((p, y) => {
4423
- let B = new URL(`${o}/v2/player/${a}/balance`);
4424
- fetch(B, {
4421
+ let S = new URL(`${o}/v2/player/${a}/balance`);
4422
+ fetch(S, {
4425
4423
  method: "GET",
4426
4424
  headers: {
4427
4425
  "X-SessionID": i,
4428
4426
  "Content-Type": "application/json",
4429
4427
  Accept: "application/json"
4430
4428
  }
4431
- }).then((A) => ge(A)).then((A) => {
4432
- A && (r(13, J = []), V = [], pe = [], r(14, G = []), fe = A.items, Pe().then((L) => {
4429
+ }).then((B) => de(B)).then((B) => {
4430
+ B && (n(13, J = []), V = [], fe = [], n(14, G = []), he = B.items, Ce().then((L) => {
4433
4431
  L.forEach((se) => {
4434
- Be.push(se.code);
4435
- }), Ce(A), p();
4432
+ Ae.push(se.code);
4433
+ }), Se(B), p();
4436
4434
  }));
4437
- }).catch((A) => {
4438
- y(), M("error", n("generalError")), console.error("There was an error with the player balance request.", A);
4435
+ }).catch((B) => {
4436
+ y(), M("error", r("generalError")), console.error("There was an error with the player balance request.", B);
4439
4437
  });
4440
- }), Ce = (p) => {
4441
- if (fe.forEach((y) => {
4442
- if (y.type === "Real" && !(!Be.includes(y.currency) && Be.length > 0))
4443
- switch (r(13, J = J.concat(y)), y.walletAccountType) {
4438
+ }), Se = (p) => {
4439
+ if (he.forEach((y) => {
4440
+ if (y.type === "Real" && !(!Ae.includes(y.currency) && Ae.length > 0))
4441
+ switch (n(13, J = J.concat(y)), y.walletAccountType) {
4444
4442
  case "Ordinary":
4445
4443
  V = V.concat(y);
4446
4444
  break;
4447
4445
  case "Vault":
4448
- if (pe = pe.concat(y), y.amount === 0)
4446
+ if (fe = fe.concat(y), y.amount === 0)
4449
4447
  return;
4450
- r(14, G = G.concat(y));
4448
+ n(14, G = G.concat(y));
4451
4449
  break;
4452
4450
  }
4453
- }), r(15, Y = Object.entries(p.totalCashAmount).map(([y, B]) => ({ currency: y, amount: B }))[0]), Y.amount === 0 && !pe.find((y) => y.amount > 0))
4454
- return M("error", n("userHasNoBalances"));
4455
- r(1, b = Y.amount === 0 ? pe.find((y) => y.amount > 0).currency : Y.currency), r(2, v = Y.amount === 0 ? Y.currency : pe.find((y) => y.type === "Real").currency);
4456
- }, Pe = () => new Promise((p, y) => {
4457
- let B = new URL(`${o}/v1/player/${a}/wallet-exchange/currencies`);
4458
- fetch(B, {
4451
+ }), n(15, Y = Object.entries(p.totalCashAmount).map(([y, S]) => ({ currency: y, amount: S }))[0]), Y.amount === 0 && !fe.find((y) => y.amount > 0))
4452
+ return M("error", r("userHasNoBalances"));
4453
+ n(1, b = Y.amount === 0 ? fe.find((y) => y.amount > 0).currency : Y.currency), n(2, x = Y.amount === 0 ? Y.currency : fe.find((y) => y.type === "Real").currency);
4454
+ }, Ce = () => new Promise((p, y) => {
4455
+ let S = new URL(`${o}/v1/player/${a}/wallet-exchange/currencies`);
4456
+ fetch(S, {
4459
4457
  method: "GET",
4460
4458
  headers: {
4461
4459
  "X-SessionId": i,
4462
4460
  "Content-Type": "application/json",
4463
4461
  Accept: "application/json"
4464
4462
  }
4465
- }).then((A) => ge(A)).then((A) => {
4466
- A.length !== 0 && p(A.currencies);
4467
- }).catch((A) => {
4468
- y(), M("error", n("generalError")), console.error("There was an error on the allowed currencies request.", A);
4463
+ }).then((B) => de(B)).then((B) => {
4464
+ B.length !== 0 && p(B.currencies);
4465
+ }).catch((B) => {
4466
+ y(), M("error", r("generalError")), console.error("There was an error on the allowed currencies request.", B);
4469
4467
  });
4470
4468
  }), nt = () => new Promise((p, y) => {
4471
- b === v && r(2, v = J.find((x) => x.currency !== b)?.currency), I <= 0 && (Qe(), y());
4472
- const B = J.find((x) => x.currency === b);
4473
- I > B.amount && r(4, I = B.amount), p();
4474
- }), ne = () => {
4469
+ b === x && n(2, x = J.find((v) => v.currency !== b)?.currency), N <= 0 && (Je(), y());
4470
+ const S = J.find((v) => v.currency === b);
4471
+ N > S.amount && n(4, N = S.amount), p();
4472
+ }), re = () => {
4475
4473
  nt().then(() => {
4476
- let p = new URL(`${o}/v2/player/${a}/check/wallet-exchange`), B = {
4474
+ let p = new URL(`${o}/v2/player/${a}/check/wallet-exchange`), S = {
4477
4475
  method: "POST",
4478
4476
  headers: {
4479
4477
  "X-SessionID": i,
@@ -4482,32 +4480,32 @@ function ca(e, t, r) {
4482
4480
  },
4483
4481
  body: JSON.stringify({
4484
4482
  userId: a,
4485
- amount: I,
4483
+ amount: N,
4486
4484
  currency: b,
4487
4485
  fromCurrency: b,
4488
- toCurrency: v,
4486
+ toCurrency: x,
4489
4487
  payload: { PlayerCurrency: h }
4490
4488
  })
4491
4489
  };
4492
- fetch(p, B).then((x) => ge(x)).then((x) => {
4493
- if (!x)
4490
+ fetch(p, S).then((v) => de(v)).then((v) => {
4491
+ if (!v)
4494
4492
  return;
4495
- if (r(12, he = !1), r(11, Te = !1), r(10, oe = !1), x.feeDetails && x.feeDetails.fees.length > 0) {
4496
- r(12, he = !0);
4497
- let L = x.feeDetails.fees.find((se) => se.id);
4498
- Je(L);
4493
+ if (n(12, ce = !1), n(11, we = !1), n(10, oe = !1), v.feeDetails && v.feeDetails.fees.length > 0) {
4494
+ n(12, ce = !0);
4495
+ let L = v.feeDetails.fees.find((se) => se.id);
4496
+ qe(L);
4499
4497
  } else
4500
- r(6, C = !1);
4501
- const A = x.walletActions.find((L) => L.directionName === "Credit").amount;
4502
- r(5, D = qe(A));
4503
- }).catch((x) => {
4504
- M("error", n("generalError")), console.error("There was a problem with the wallet exchange request.", x);
4498
+ n(6, P = !1);
4499
+ const B = v.walletActions.find((L) => L.directionName === "Credit").amount;
4500
+ n(5, D = Ze(B));
4501
+ }).catch((v) => {
4502
+ M("error", r("generalError")), console.error("There was a problem with the wallet exchange request.", v);
4505
4503
  });
4506
4504
  }).catch((p) => {
4507
- M("error", n("walletExchangeError"));
4505
+ M("error", r("walletExchangeError"));
4508
4506
  });
4509
- }, qe = (p) => Math.abs(p) < 1e-6 || Math.abs(p) >= 1e6 ? p.toFixed(12).replace(/\.?0+$/, "") : p.toString(), be = la(ne, 500), ye = () => {
4510
- let p = new URL(`${o}/v2/player/${a}/wallet-exchange`), B = {
4507
+ }, Ze = (p) => Math.abs(p) < 1e-6 || Math.abs(p) >= 1e6 ? p.toFixed(12).replace(/\.?0+$/, "") : p.toString(), ge = ua(re, 500), be = () => {
4508
+ let p = new URL(`${o}/v2/player/${a}/wallet-exchange`), S = {
4511
4509
  method: "PUT",
4512
4510
  headers: {
4513
4511
  "X-SessionID": i,
@@ -4516,43 +4514,43 @@ function ca(e, t, r) {
4516
4514
  },
4517
4515
  body: JSON.stringify({
4518
4516
  userId: a,
4519
- amount: I,
4517
+ amount: N,
4520
4518
  currency: b,
4521
4519
  fromCurrency: b,
4522
- toCurrency: v,
4520
+ toCurrency: x,
4523
4521
  payload: { PlayerCurrency: h }
4524
4522
  })
4525
4523
  };
4526
- fetch(p, B).then((x) => ge(x)).then((x) => {
4527
- x && (r(10, oe = !1), r(4, I = 0), r(5, D = 0), M("success", "exchangeSuccess"), k().then((A) => {
4528
- !A || !O || de();
4529
- }).catch((A) => {
4530
- console.error("There was an error with fetching the players balance.", A);
4524
+ fetch(p, S).then((v) => de(v)).then((v) => {
4525
+ v && (n(10, oe = !1), n(4, N = 0), n(5, D = 0), M("success", "exchangeSuccess"), k().then((B) => {
4526
+ !B || !O || me();
4527
+ }).catch((B) => {
4528
+ console.error("There was an error with fetching the players balance.", B);
4531
4529
  }));
4532
- }).catch((x) => {
4533
- M("error", n("generalError")), console.error("There was an error with the wallet exchange request.", x);
4530
+ }).catch((v) => {
4531
+ M("error", r("generalError")), console.error("There was an error with the wallet exchange request.", v);
4534
4532
  });
4535
- }, Je = (p) => {
4536
- U = p.amount, P = p.currency, r(11, Te = !1), M("action", n("feeAcceptNotification", {
4537
- values: { amount: U, currency: P }
4533
+ }, qe = (p) => {
4534
+ U = p.amount, I = p.currency, n(11, we = !1), M("action", r("feeAcceptNotification", {
4535
+ values: { amount: U, currency: I }
4538
4536
  }));
4539
- }, Ie = () => {
4540
- r(10, oe = !1), r(6, C = !1), r(11, Te = !0);
4537
+ }, Pe = () => {
4538
+ n(10, oe = !1), n(6, P = !1), n(11, we = !0);
4541
4539
  let y = {
4542
- exchageAmount: qe(I - U),
4540
+ exchageAmount: Ze(N - U),
4543
4541
  exchageCurrency: b,
4544
4542
  exchangedAmount: D,
4545
- exchangedCurrency: v,
4543
+ exchangedCurrency: x,
4546
4544
  feeAmount: U,
4547
- feeCurrency: P
4545
+ feeCurrency: I
4548
4546
  };
4549
- M("action", n("feeExchangeNotification", { values: y }));
4550
- }, Qe = () => {
4551
- r(10, oe = !1), r(12, he = !1), r(6, C = !0), r(5, D = 0), r(4, I = 0);
4547
+ M("action", r("feeExchangeNotification", { values: y }));
4548
+ }, Je = () => {
4549
+ n(10, oe = !1), n(12, ce = !1), n(6, P = !0), n(5, D = 0), n(4, N = 0);
4552
4550
  }, M = (p, y) => {
4553
4551
  switch (p) {
4554
4552
  case "error":
4555
- r(8, q = !0), r(6, C = !0), window.postMessage(
4553
+ n(8, q = !0), n(6, P = !0), window.postMessage(
4556
4554
  {
4557
4555
  type: "WidgetNotification",
4558
4556
  data: { type: "error", message: y }
@@ -4560,13 +4558,13 @@ function ca(e, t, r) {
4560
4558
  window.location.href
4561
4559
  ), setTimeout(
4562
4560
  () => {
4563
- r(8, q = !1);
4561
+ n(8, q = !1);
4564
4562
  },
4565
4563
  2e3
4566
4564
  );
4567
4565
  break;
4568
4566
  case "success":
4569
- r(9, te = !0), r(6, C = !0), window.postMessage(
4567
+ n(9, te = !0), n(6, P = !0), window.postMessage(
4570
4568
  {
4571
4569
  type: "WidgetNotification",
4572
4570
  data: { type: "success", message: y }
@@ -4574,78 +4572,78 @@ function ca(e, t, r) {
4574
4572
  window.location.href
4575
4573
  ), setTimeout(
4576
4574
  () => {
4577
- r(9, te = !1);
4575
+ n(9, te = !1);
4578
4576
  },
4579
4577
  2e3
4580
4578
  );
4581
4579
  break;
4582
4580
  case "action":
4583
- r(10, oe = !0);
4581
+ n(10, oe = !0);
4584
4582
  break;
4585
4583
  }
4586
- r(3, F = y);
4587
- }, ge = async (p) => p.status >= 300 ? (Xe = await p.json(), r(3, F = Xe.thirdPartyResponse.errorCode), M("error", F || "generalError")) : p.json();
4588
- function it() {
4589
- I = ft(this.value), r(4, I);
4584
+ n(3, F = y);
4585
+ }, de = async (p) => p.status >= 300 ? (ze = await p.json(), n(3, F = ze.thirdPartyResponse.errorCode), M("error", F || "generalError")) : p.json();
4586
+ function rt() {
4587
+ N = ht(this.value), n(4, N);
4590
4588
  }
4591
4589
  function K() {
4592
- b = Zt(this), r(1, b), r(13, J);
4590
+ b = Wt(this), n(1, b), n(13, J);
4593
4591
  }
4594
4592
  function ie() {
4595
- D = ft(this.value), r(5, D);
4593
+ D = ht(this.value), n(5, D);
4596
4594
  }
4597
- function Ne() {
4598
- v = Zt(this), r(2, v), r(13, J);
4595
+ function Ie() {
4596
+ x = Wt(this), n(2, x), n(13, J);
4599
4597
  }
4600
- const Oe = (p) => {
4601
- Ze(p);
4598
+ const Ne = (p) => {
4599
+ We(p);
4602
4600
  };
4603
- function at(p, y) {
4604
- pt[p ? "unshift" : "push"](() => {
4605
- me[y] = p, r(17, me);
4601
+ function it(p, y) {
4602
+ ft[p ? "unshift" : "push"](() => {
4603
+ pe[y] = p, n(17, pe);
4606
4604
  });
4607
4605
  }
4608
- function He(p) {
4609
- pt[p ? "unshift" : "push"](() => {
4610
- re = p, r(16, re);
4606
+ function Te(p) {
4607
+ ft[p ? "unshift" : "push"](() => {
4608
+ ne = p, n(16, ne);
4611
4609
  });
4612
4610
  }
4613
4611
  return e.$$set = (p) => {
4614
- "session" in p && r(24, i = p.session), "userid" in p && r(25, a = p.userid), "endpoint" in p && r(26, o = p.endpoint), "lang" in p && r(27, s = p.lang), "clientstyling" in p && r(28, c = p.clientstyling), "clientstylingurl" in p && r(29, l = p.clientstylingurl), "translationurl" in p && r(30, u = p.translationurl), "playercurrency" in p && r(31, h = p.playercurrency);
4612
+ "session" in p && n(24, i = p.session), "userid" in p && n(25, a = p.userid), "endpoint" in p && n(26, o = p.endpoint), "lang" in p && n(27, s = p.lang), "clientstyling" in p && n(28, c = p.clientstyling), "clientstylingurl" in p && n(29, l = p.clientstylingurl), "translationurl" in p && n(30, u = p.translationurl), "playercurrency" in p && n(31, h = p.playercurrency);
4615
4613
  }, e.$$.update = () => {
4616
4614
  e.$$.dirty[0] & /*session*/
4617
4615
  16777216, e.$$.dirty[0] & /*lang*/
4618
- 134217728 && s && Se(), e.$$.dirty[0] & /*session, userid, endpoint*/
4616
+ 134217728 && s && Be(), e.$$.dirty[0] & /*session, userid, endpoint*/
4619
4617
  117440512 | e.$$.dirty[1] & /*playercurrency*/
4620
4618
  1 && i && a && o && h && k(), e.$$.dirty[0] & /*clientstyling*/
4621
4619
  268435456, e.$$.dirty[0] & /*clientstylingurl*/
4622
4620
  536870912, e.$$.dirty[0] & /*translationurl*/
4623
- 1073741824 && u && We();
4621
+ 1073741824 && u && Xe();
4624
4622
  }, [
4625
4623
  d,
4626
4624
  b,
4627
- v,
4625
+ x,
4628
4626
  F,
4629
- I,
4627
+ N,
4630
4628
  D,
4631
- C,
4629
+ P,
4632
4630
  O,
4633
4631
  q,
4634
4632
  te,
4635
4633
  oe,
4636
- Te,
4637
- he,
4634
+ we,
4635
+ ce,
4638
4636
  J,
4639
4637
  G,
4640
4638
  Y,
4641
- re,
4642
- me,
4643
- n,
4644
- Ze,
4639
+ ne,
4640
+ pe,
4641
+ r,
4642
+ We,
4643
+ ge,
4645
4644
  be,
4646
- ye,
4647
- Ie,
4648
- Qe,
4645
+ Pe,
4646
+ Je,
4649
4647
  i,
4650
4648
  a,
4651
4649
  o,
@@ -4654,23 +4652,23 @@ function ca(e, t, r) {
4654
4652
  l,
4655
4653
  u,
4656
4654
  h,
4657
- it,
4655
+ rt,
4658
4656
  K,
4659
4657
  ie,
4658
+ Ie,
4660
4659
  Ne,
4661
- Oe,
4662
- at,
4663
- He
4660
+ it,
4661
+ Te
4664
4662
  ];
4665
4663
  }
4666
- class ha extends pn {
4664
+ class ca extends fr {
4667
4665
  constructor(t) {
4668
- super(), hn(
4666
+ super(), cr(
4669
4667
  this,
4670
4668
  t,
4671
- ca,
4672
- ua,
4673
- xr,
4669
+ la,
4670
+ sa,
4671
+ vn,
4674
4672
  {
4675
4673
  session: 24,
4676
4674
  userid: 25,
@@ -4681,7 +4679,7 @@ class ha extends pn {
4681
4679
  translationurl: 30,
4682
4680
  playercurrency: 31
4683
4681
  },
4684
- aa,
4682
+ ia,
4685
4683
  [-1, -1, -1]
4686
4684
  );
4687
4685
  }
@@ -4734,7 +4732,7 @@ class ha extends pn {
4734
4732
  this.$$set({ playercurrency: t }), le();
4735
4733
  }
4736
4734
  }
4737
- fn(ha, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {} }, [], [], !0);
4735
+ hr(ca, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {} }, [], [], !0);
4738
4736
  export {
4739
- ha as P
4737
+ ca as P
4740
4738
  };