@everymatrix/casino-tournaments-thumbnail-games 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,29 +1,29 @@
1
1
  import "../stencil/ui-image-CHeV8e9p.js";
2
2
  function I() {
3
3
  }
4
- function Lt(e) {
4
+ function It(e) {
5
5
  return e();
6
6
  }
7
7
  function rt() {
8
8
  return /* @__PURE__ */ Object.create(null);
9
9
  }
10
- function ie(e) {
11
- e.forEach(Lt);
10
+ function se(e) {
11
+ e.forEach(It);
12
12
  }
13
- function ve(e) {
13
+ function _e(e) {
14
14
  return typeof e == "function";
15
15
  }
16
- function Ct(e, t) {
16
+ function Lt(e, t) {
17
17
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
18
18
  }
19
- let ae;
19
+ let ue;
20
20
  function nt(e, t) {
21
- return e === t ? !0 : (ae || (ae = document.createElement("a")), ae.href = t, e === ae.href);
21
+ return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
22
22
  }
23
23
  function pr(e) {
24
24
  return Object.keys(e).length === 0;
25
25
  }
26
- function Mt(e, ...t) {
26
+ function Ct(e, ...t) {
27
27
  if (e == null) {
28
28
  for (const n of t)
29
29
  n(void 0);
@@ -33,9 +33,9 @@ function Mt(e, ...t) {
33
33
  return r.unsubscribe ? () => r.unsubscribe() : r;
34
34
  }
35
35
  function mr(e, t, r) {
36
- e.$$.on_destroy.push(Mt(t, r));
36
+ e.$$.on_destroy.push(Ct(t, r));
37
37
  }
38
- function B(e, t) {
38
+ function A(e, t) {
39
39
  e.appendChild(t);
40
40
  }
41
41
  function dr(e, t, r) {
@@ -56,32 +56,35 @@ function br(e) {
56
56
  ) : e.ownerDocument;
57
57
  }
58
58
  function gr(e, t) {
59
- return B(
59
+ return A(
60
60
  /** @type {Document} */
61
61
  e.head || e,
62
62
  t
63
63
  ), t.sheet;
64
64
  }
65
- function oe(e, t, r) {
65
+ function D(e, t, r) {
66
66
  e.insertBefore(t, r || null);
67
67
  }
68
- function Z(e) {
68
+ function G(e) {
69
69
  e.parentNode && e.parentNode.removeChild(e);
70
70
  }
71
- function it(e, t) {
71
+ function Mt(e, t) {
72
72
  for (let r = 0; r < e.length; r += 1)
73
73
  e[r] && e[r].d(t);
74
74
  }
75
75
  function P(e) {
76
76
  return document.createElement(e);
77
77
  }
78
- function de(e) {
78
+ function W(e) {
79
79
  return document.createTextNode(e);
80
80
  }
81
- function ee() {
82
- return de(" ");
81
+ function re() {
82
+ return W(" ");
83
+ }
84
+ function yr() {
85
+ return W("");
83
86
  }
84
- function yr(e, t, r, n) {
87
+ function vr(e, t, r, n) {
85
88
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
86
89
  }
87
90
  function H(e, t, r) {
@@ -91,14 +94,14 @@ function w(e, t, r) {
91
94
  const n = t.toLowerCase();
92
95
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : H(e, t, r);
93
96
  }
94
- function vr(e) {
97
+ function _r(e) {
95
98
  return Array.from(e.childNodes);
96
99
  }
97
- function Ce(e, t) {
100
+ function de(e, t) {
98
101
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
99
102
  t);
100
103
  }
101
- function _r(e) {
104
+ function Er(e) {
102
105
  const t = {};
103
106
  return e.childNodes.forEach(
104
107
  /** @param {Element} node */
@@ -107,90 +110,90 @@ function _r(e) {
107
110
  }
108
111
  ), t;
109
112
  }
110
- let te;
111
- function K(e) {
112
- te = e;
113
+ let ne;
114
+ function te(e) {
115
+ ne = e;
113
116
  }
114
- function Er() {
115
- if (!te)
117
+ function xr() {
118
+ if (!ne)
116
119
  throw new Error("Function called outside component initialization");
117
- return te;
120
+ return ne;
118
121
  }
119
- function xr(e) {
120
- Er().$$.on_mount.push(e);
122
+ function Sr(e) {
123
+ xr().$$.on_mount.push(e);
121
124
  }
122
- const j = [], Me = [];
123
- let k = [];
124
- const ot = [], Sr = /* @__PURE__ */ Promise.resolve();
125
+ const V = [], Me = [];
126
+ let X = [];
127
+ const it = [], Tr = /* @__PURE__ */ Promise.resolve();
125
128
  let $e = !1;
126
- function Tr() {
127
- $e || ($e = !0, Sr.then(G));
129
+ function wr() {
130
+ $e || ($e = !0, Tr.then(U));
128
131
  }
129
132
  function Re(e) {
130
- k.push(e);
133
+ X.push(e);
131
134
  }
132
- const He = /* @__PURE__ */ new Set();
133
- let D = 0;
134
- function G() {
135
- if (D !== 0)
135
+ const Ae = /* @__PURE__ */ new Set();
136
+ let j = 0;
137
+ function U() {
138
+ if (j !== 0)
136
139
  return;
137
- const e = te;
140
+ const e = ne;
138
141
  do {
139
142
  try {
140
- for (; D < j.length; ) {
141
- const t = j[D];
142
- D++, K(t), wr(t.$$);
143
+ for (; j < V.length; ) {
144
+ const t = V[j];
145
+ j++, te(t), Hr(t.$$);
143
146
  }
144
147
  } catch (t) {
145
- throw j.length = 0, D = 0, t;
148
+ throw V.length = 0, j = 0, t;
146
149
  }
147
- for (K(null), j.length = 0, D = 0; Me.length; )
150
+ for (te(null), V.length = 0, j = 0; Me.length; )
148
151
  Me.pop()();
149
- for (let t = 0; t < k.length; t += 1) {
150
- const r = k[t];
151
- He.has(r) || (He.add(r), r());
152
+ for (let t = 0; t < X.length; t += 1) {
153
+ const r = X[t];
154
+ Ae.has(r) || (Ae.add(r), r());
152
155
  }
153
- k.length = 0;
154
- } while (j.length);
155
- for (; ot.length; )
156
- ot.pop()();
157
- $e = !1, He.clear(), K(e);
156
+ X.length = 0;
157
+ } while (V.length);
158
+ for (; it.length; )
159
+ it.pop()();
160
+ $e = !1, Ae.clear(), te(e);
158
161
  }
159
- function wr(e) {
162
+ function Hr(e) {
160
163
  if (e.fragment !== null) {
161
- e.update(), ie(e.before_update);
164
+ e.update(), se(e.before_update);
162
165
  const t = e.dirty;
163
166
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
164
167
  }
165
168
  }
166
- function Hr(e) {
169
+ function Ar(e) {
167
170
  const t = [], r = [];
168
- k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
171
+ X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
169
172
  }
170
173
  const Br = /* @__PURE__ */ new Set();
171
- function Ar(e, t) {
174
+ function Pr(e, t) {
172
175
  e && e.i && (Br.delete(e), e.i(t));
173
176
  }
174
- function ue(e) {
177
+ function be(e) {
175
178
  return e?.length !== void 0 ? e : Array.from(e);
176
179
  }
177
- function Pr(e, t, r) {
180
+ function Or(e, t, r) {
178
181
  const { fragment: n, after_update: i } = e.$$;
179
182
  n && n.m(t, r), Re(() => {
180
- const o = e.$$.on_mount.map(Lt).filter(ve);
181
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
183
+ const o = e.$$.on_mount.map(It).filter(_e);
184
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
182
185
  }), i.forEach(Re);
183
186
  }
184
- function Or(e, t) {
187
+ function Nr(e, t) {
185
188
  const r = e.$$;
186
- r.fragment !== null && (Hr(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
189
+ r.fragment !== null && (Ar(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
187
190
  }
188
191
  function Ir(e, t) {
189
- e.$$.dirty[0] === -1 && (j.push(e), Tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
192
+ e.$$.dirty[0] === -1 && (V.push(e), wr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
190
193
  }
191
- function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
192
- const h = te;
193
- K(e);
194
+ function Lr(e, t, r, n, i, o, s = null, a = [-1]) {
195
+ const h = ne;
196
+ te(e);
194
197
  const u = e.$$ = {
195
198
  fragment: null,
196
199
  ctx: [],
@@ -214,18 +217,18 @@ function Nr(e, t, r, n, i, o, s = null, a = [-1]) {
214
217
  };
215
218
  s && s(u.root);
216
219
  let l = !1;
217
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
218
- const m = p.length ? p[0] : f;
219
- return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l && Ir(e, c)), f;
220
- }) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
220
+ if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
221
+ const p = d.length ? d[0] : f;
222
+ return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), l && Ir(e, c)), f;
223
+ }) : [], u.update(), l = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
221
224
  if (t.hydrate) {
222
- const c = vr(t.target);
223
- u.fragment && u.fragment.l(c), c.forEach(Z);
225
+ const c = _r(t.target);
226
+ u.fragment && u.fragment.l(c), c.forEach(G);
224
227
  } else
225
228
  u.fragment && u.fragment.c();
226
- t.intro && Ar(e.$$.fragment), Pr(e, t.target, t.anchor), G();
229
+ t.intro && Pr(e.$$.fragment), Or(e, t.target, t.anchor), U();
227
230
  }
228
- K(h);
231
+ te(h);
229
232
  }
230
233
  let $t;
231
234
  typeof HTMLElement == "function" && ($t = class extends HTMLElement {
@@ -277,17 +280,17 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
277
280
  * @param {HTMLElement} [anchor]
278
281
  */
279
282
  m: function(h, u) {
280
- oe(h, o, u);
283
+ D(h, o, u);
281
284
  },
282
285
  d: function(h) {
283
- h && Z(o);
286
+ h && G(o);
284
287
  }
285
288
  };
286
289
  };
287
290
  };
288
291
  if (await Promise.resolve(), !this.$$cn || this.$$c)
289
292
  return;
290
- const t = {}, r = _r(this);
293
+ const t = {}, r = Er(this);
291
294
  for (const i of this.$$s)
292
295
  i in r && (t[i] = [e(i)]);
293
296
  for (const i of this.attributes) {
@@ -374,7 +377,7 @@ function ce(e, t, r, n) {
374
377
  return t;
375
378
  }
376
379
  }
377
- function Lr(e, t, r, n, i, o) {
380
+ function Cr(e, t, r, n, i, o) {
378
381
  let s = class extends $t {
379
382
  constructor() {
380
383
  super(e, r, i), this.$$p_d = t;
@@ -403,7 +406,7 @@ function Lr(e, t, r, n, i, o) {
403
406
  }), e.element = /** @type {any} */
404
407
  s, s;
405
408
  }
406
- class Cr {
409
+ class Mr {
407
410
  /**
408
411
  * ### PRIVATE API
409
412
  *
@@ -422,7 +425,7 @@ class Cr {
422
425
  $$set = void 0;
423
426
  /** @returns {void} */
424
427
  $destroy() {
425
- Or(this, 1), this.$destroy = I;
428
+ Nr(this, 1), this.$destroy = I;
426
429
  }
427
430
  /**
428
431
  * @template {Extract<keyof Events, string>} K
@@ -431,7 +434,7 @@ class Cr {
431
434
  * @returns {() => void}
432
435
  */
433
436
  $on(t, r) {
434
- if (!ve(r))
437
+ if (!_e(r))
435
438
  return I;
436
439
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
437
440
  return n.push(r), () => {
@@ -447,15 +450,15 @@ class Cr {
447
450
  this.$$set && !pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
448
451
  }
449
452
  }
450
- const Mr = "4";
451
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Mr);
452
- function $r(e, t) {
453
+ const $r = "4";
454
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add($r);
455
+ function Rr(e, t) {
453
456
  if (e) {
454
457
  const r = document.createElement("style");
455
458
  r.innerHTML = t, e.appendChild(r);
456
459
  }
457
460
  }
458
- function Rr(e, t) {
461
+ function Gr(e, t) {
459
462
  const r = new URL(t);
460
463
  fetch(r.href).then((n) => n.text()).then((n) => {
461
464
  const i = document.createElement("style");
@@ -464,7 +467,7 @@ function Rr(e, t) {
464
467
  console.error("There was an error while trying to load client styling from URL", n);
465
468
  });
466
469
  }
467
- function Gr(e, t, r) {
470
+ function Ur(e, t, r) {
468
471
  if (window.emMessageBus) {
469
472
  const n = document.createElement("style");
470
473
  window.emMessageBus.subscribe(t, (i) => {
@@ -494,7 +497,7 @@ var Ge = function(e, t) {
494
497
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
495
498
  }, Ge(e, t);
496
499
  };
497
- function se(e, t) {
500
+ function ae(e, t) {
498
501
  if (typeof t != "function" && t !== null)
499
502
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
500
503
  Ge(e, t);
@@ -541,7 +544,7 @@ function Fe(e, t, r) {
541
544
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
542
545
  return e.concat(o || t);
543
546
  }
544
- function C(e) {
547
+ function M(e) {
545
548
  return typeof e == "function";
546
549
  }
547
550
  function Rt(e) {
@@ -565,7 +568,7 @@ function je(e, t) {
565
568
  0 <= r && e.splice(r, 1);
566
569
  }
567
570
  }
568
- var _e = function() {
571
+ var Ee = function() {
569
572
  function e(t) {
570
573
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
571
574
  }
@@ -594,7 +597,7 @@ var _e = function() {
594
597
  else
595
598
  s.remove(this);
596
599
  var l = this.initialTeardown;
597
- if (C(l))
600
+ if (M(l))
598
601
  try {
599
602
  l();
600
603
  } catch (g) {
@@ -604,10 +607,10 @@ var _e = function() {
604
607
  if (c) {
605
608
  this._finalizers = null;
606
609
  try {
607
- for (var f = Ue(c), p = f.next(); !p.done; p = f.next()) {
608
- var m = p.value;
610
+ for (var f = Ue(c), d = f.next(); !d.done; d = f.next()) {
611
+ var p = d.value;
609
612
  try {
610
- st(m);
613
+ ot(p);
611
614
  } catch (g) {
612
615
  o = o ?? [], g instanceof Be ? o = Fe(Fe([], De(o)), De(g.errors)) : o.push(g);
613
616
  }
@@ -616,7 +619,7 @@ var _e = function() {
616
619
  n = { error: g };
617
620
  } finally {
618
621
  try {
619
- p && !p.done && (i = f.return) && i.call(f);
622
+ d && !d.done && (i = f.return) && i.call(f);
620
623
  } finally {
621
624
  if (n)
622
625
  throw n.error;
@@ -630,7 +633,7 @@ var _e = function() {
630
633
  var r;
631
634
  if (t && t !== this)
632
635
  if (this.closed)
633
- st(t);
636
+ ot(t);
634
637
  else {
635
638
  if (t instanceof e) {
636
639
  if (t.closed || t._hasParent(this))
@@ -655,16 +658,16 @@ var _e = function() {
655
658
  var t = new e();
656
659
  return t.closed = !0, t;
657
660
  }(), e;
658
- }(), Gt = _e.EMPTY;
661
+ }(), Gt = Ee.EMPTY;
659
662
  function Ut(e) {
660
- return e instanceof _e || e && "closed" in e && C(e.remove) && C(e.add) && C(e.unsubscribe);
663
+ return e instanceof Ee || e && "closed" in e && M(e.remove) && M(e.add) && M(e.unsubscribe);
661
664
  }
662
- function st(e) {
663
- C(e) ? e() : e.unsubscribe();
665
+ function ot(e) {
666
+ M(e) ? e() : e.unsubscribe();
664
667
  }
665
- var Ur = {
668
+ var Dr = {
666
669
  Promise: void 0
667
- }, Dr = {
670
+ }, Fr = {
668
671
  setTimeout: function(e, t) {
669
672
  for (var r = [], n = 2; n < arguments.length; n++)
670
673
  r[n - 2] = arguments[n];
@@ -675,21 +678,21 @@ var Ur = {
675
678
  },
676
679
  delegate: void 0
677
680
  };
678
- function Fr(e) {
679
- Dr.setTimeout(function() {
681
+ function jr(e) {
682
+ Fr.setTimeout(function() {
680
683
  throw e;
681
684
  });
682
685
  }
683
- function at() {
686
+ function st() {
684
687
  }
685
688
  function fe(e) {
686
689
  e();
687
690
  }
688
691
  var Dt = function(e) {
689
- se(t, e);
692
+ ae(t, e);
690
693
  function t(r) {
691
694
  var n = e.call(this) || this;
692
- return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = Vr, n;
695
+ return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = Xr, n;
693
696
  }
694
697
  return t.create = function(r, n, i) {
695
698
  return new ke(r, n, i);
@@ -716,7 +719,7 @@ var Dt = function(e) {
716
719
  this.unsubscribe();
717
720
  }
718
721
  }, t;
719
- }(_e), jr = function() {
722
+ }(Ee), kr = function() {
720
723
  function e(t) {
721
724
  this.partialObserver = t;
722
725
  }
@@ -748,42 +751,42 @@ var Dt = function(e) {
748
751
  }
749
752
  }, e;
750
753
  }(), ke = function(e) {
751
- se(t, e);
754
+ ae(t, e);
752
755
  function t(r, n, i) {
753
756
  var o = e.call(this) || this, s;
754
- return C(r) || !r ? s = {
757
+ return M(r) || !r ? s = {
755
758
  next: r ?? void 0,
756
759
  error: n ?? void 0,
757
760
  complete: i ?? void 0
758
- } : s = r, o.destination = new jr(s), o;
761
+ } : s = r, o.destination = new kr(s), o;
759
762
  }
760
763
  return t;
761
764
  }(Dt);
762
765
  function he(e) {
763
- Fr(e);
766
+ jr(e);
764
767
  }
765
- function kr(e) {
768
+ function Vr(e) {
766
769
  throw e;
767
770
  }
768
- var Vr = {
771
+ var Xr = {
769
772
  closed: !0,
770
- next: at,
771
- error: kr,
772
- complete: at
773
- }, Xr = function() {
773
+ next: st,
774
+ error: Vr,
775
+ complete: st
776
+ }, Wr = function() {
774
777
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
775
778
  }();
776
- function Wr(e) {
779
+ function zr(e) {
777
780
  return e;
778
781
  }
779
- function zr(e) {
780
- return e.length === 0 ? Wr : e.length === 1 ? e[0] : function(r) {
782
+ function Zr(e) {
783
+ return e.length === 0 ? zr : e.length === 1 ? e[0] : function(r) {
781
784
  return e.reduce(function(n, i) {
782
785
  return i(n);
783
786
  }, r);
784
787
  };
785
788
  }
786
- var ut = function() {
789
+ var at = function() {
787
790
  function e(t) {
788
791
  t && (this._subscribe = t);
789
792
  }
@@ -791,7 +794,7 @@ var ut = function() {
791
794
  var r = new e();
792
795
  return r.source = this, r.operator = t, r;
793
796
  }, e.prototype.subscribe = function(t, r, n) {
794
- var i = this, o = Qr(t) ? t : new ke(t, r, n);
797
+ var i = this, o = Jr(t) ? t : new ke(t, r, n);
795
798
  return fe(function() {
796
799
  var s = i, a = s.operator, h = s.source;
797
800
  o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
@@ -804,7 +807,7 @@ var ut = function() {
804
807
  }
805
808
  }, e.prototype.forEach = function(t, r) {
806
809
  var n = this;
807
- return r = ht(r), new r(function(i, o) {
810
+ return r = ut(r), new r(function(i, o) {
808
811
  var s = new ke({
809
812
  next: function(a) {
810
813
  try {
@@ -821,15 +824,15 @@ var ut = function() {
821
824
  }, e.prototype._subscribe = function(t) {
822
825
  var r;
823
826
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
824
- }, e.prototype[Xr] = function() {
827
+ }, e.prototype[Wr] = function() {
825
828
  return this;
826
829
  }, e.prototype.pipe = function() {
827
830
  for (var t = [], r = 0; r < arguments.length; r++)
828
831
  t[r] = arguments[r];
829
- return zr(t)(this);
832
+ return Zr(t)(this);
830
833
  }, e.prototype.toPromise = function(t) {
831
834
  var r = this;
832
- return t = ht(t), new t(function(n, i) {
835
+ return t = ut(t), new t(function(n, i) {
833
836
  var o;
834
837
  r.subscribe(function(s) {
835
838
  return o = s;
@@ -843,32 +846,32 @@ var ut = function() {
843
846
  return new e(t);
844
847
  }, e;
845
848
  }();
846
- function ht(e) {
849
+ function ut(e) {
847
850
  var t;
848
- return (t = e ?? Ur.Promise) !== null && t !== void 0 ? t : Promise;
849
- }
850
- function Zr(e) {
851
- return e && C(e.next) && C(e.error) && C(e.complete);
851
+ return (t = e ?? Dr.Promise) !== null && t !== void 0 ? t : Promise;
852
852
  }
853
853
  function Qr(e) {
854
- return e && e instanceof Dt || Zr(e) && Ut(e);
854
+ return e && M(e.next) && M(e.error) && M(e.complete);
855
+ }
856
+ function Jr(e) {
857
+ return e && e instanceof Dt || Qr(e) && Ut(e);
855
858
  }
856
- var Jr = Rt(function(e) {
859
+ var qr = Rt(function(e) {
857
860
  return function() {
858
861
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
859
862
  };
860
863
  }), Ft = function(e) {
861
- se(t, e);
864
+ ae(t, e);
862
865
  function t() {
863
866
  var r = e.call(this) || this;
864
867
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
865
868
  }
866
869
  return t.prototype.lift = function(r) {
867
- var n = new lt(this, this);
870
+ var n = new ht(this, this);
868
871
  return n.operator = r, n;
869
872
  }, t.prototype._throwIfClosed = function() {
870
873
  if (this.closed)
871
- throw new Jr();
874
+ throw new qr();
872
875
  }, t.prototype.next = function(r) {
873
876
  var n = this;
874
877
  fe(function() {
@@ -925,20 +928,20 @@ var Jr = Rt(function(e) {
925
928
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
926
929
  }, t.prototype._innerSubscribe = function(r) {
927
930
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
928
- return o || s ? Gt : (this.currentObservers = null, a.push(r), new _e(function() {
931
+ return o || s ? Gt : (this.currentObservers = null, a.push(r), new Ee(function() {
929
932
  n.currentObservers = null, je(a, r);
930
933
  }));
931
934
  }, t.prototype._checkFinalizedStatuses = function(r) {
932
935
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
933
936
  i ? r.error(o) : s && r.complete();
934
937
  }, t.prototype.asObservable = function() {
935
- var r = new ut();
938
+ var r = new at();
936
939
  return r.source = this, r;
937
940
  }, t.create = function(r, n) {
938
- return new lt(r, n);
941
+ return new ht(r, n);
939
942
  }, t;
940
- }(ut), lt = function(e) {
941
- se(t, e);
943
+ }(at), ht = function(e) {
944
+ ae(t, e);
942
945
  function t(r, n) {
943
946
  var i = e.call(this) || this;
944
947
  return i.destination = r, i.source = n, i;
@@ -961,8 +964,8 @@ var Jr = Rt(function(e) {
961
964
  return (jt.delegate || Date).now();
962
965
  },
963
966
  delegate: void 0
964
- }, qr = function(e) {
965
- se(t, e);
967
+ }, Yr = function(e) {
968
+ ae(t, e);
966
969
  function t(r, n, i) {
967
970
  r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
968
971
  var o = e.call(this) || this;
@@ -985,30 +988,30 @@ var Jr = Rt(function(e) {
985
988
  }
986
989
  }, t;
987
990
  }(Ft);
988
- const ct = [], ft = {}, Yr = (e, t = 0) => {
989
- if (ct.indexOf(e) == -1) {
990
- const r = new qr(t);
991
- ft[e] = r, ct.push(e);
991
+ const lt = [], ct = {}, Kr = (e, t = 0) => {
992
+ if (lt.indexOf(e) == -1) {
993
+ const r = new Yr(t);
994
+ ct[e] = r, lt.push(e);
992
995
  }
993
- return ft[e];
994
- }, F = [];
995
- function Kr(e, t) {
996
+ return ct[e];
997
+ }, k = [];
998
+ function en(e, t) {
996
999
  return {
997
- subscribe: Ee(e, t).subscribe
1000
+ subscribe: xe(e, t).subscribe
998
1001
  };
999
1002
  }
1000
- function Ee(e, t = I) {
1003
+ function xe(e, t = I) {
1001
1004
  let r;
1002
1005
  const n = /* @__PURE__ */ new Set();
1003
1006
  function i(a) {
1004
- if (Ct(e, a) && (e = a, r)) {
1005
- const h = !F.length;
1007
+ if (Lt(e, a) && (e = a, r)) {
1008
+ const h = !k.length;
1006
1009
  for (const u of n)
1007
- u[1](), F.push(u, e);
1010
+ u[1](), k.push(u, e);
1008
1011
  if (h) {
1009
- for (let u = 0; u < F.length; u += 2)
1010
- F[u][0](F[u + 1]);
1011
- F.length = 0;
1012
+ for (let u = 0; u < k.length; u += 2)
1013
+ k[u][0](k[u + 1]);
1014
+ k.length = 0;
1012
1015
  }
1013
1016
  }
1014
1017
  }
@@ -1023,12 +1026,12 @@ function Ee(e, t = I) {
1023
1026
  }
1024
1027
  return { set: i, update: o, subscribe: s };
1025
1028
  }
1026
- function Q(e, t, r) {
1029
+ function q(e, t, r) {
1027
1030
  const n = !Array.isArray(e), i = n ? [e] : e;
1028
1031
  if (!i.every(Boolean))
1029
1032
  throw new Error("derived() expects stores as input, got a falsy value");
1030
1033
  const o = t.length < 2;
1031
- return Kr(r, (s, a) => {
1034
+ return en(r, (s, a) => {
1032
1035
  let h = !1;
1033
1036
  const u = [];
1034
1037
  let l = 0, c = I;
@@ -1036,13 +1039,13 @@ function Q(e, t, r) {
1036
1039
  if (l)
1037
1040
  return;
1038
1041
  c();
1039
- const m = t(n ? u[0] : u, s, a);
1040
- o ? s(m) : c = ve(m) ? m : I;
1041
- }, p = i.map(
1042
- (m, g) => Mt(
1043
- m,
1044
- (d) => {
1045
- u[g] = d, l &= ~(1 << g), h && f();
1042
+ const p = t(n ? u[0] : u, s, a);
1043
+ o ? s(p) : c = _e(p) ? p : I;
1044
+ }, d = i.map(
1045
+ (p, g) => Ct(
1046
+ p,
1047
+ (E) => {
1048
+ u[g] = E, l &= ~(1 << g), h && f();
1046
1049
  },
1047
1050
  () => {
1048
1051
  l |= 1 << g;
@@ -1050,51 +1053,51 @@ function Q(e, t, r) {
1050
1053
  )
1051
1054
  );
1052
1055
  return h = !0, f(), function() {
1053
- ie(p), c(), h = !1;
1056
+ se(d), c(), h = !1;
1054
1057
  };
1055
1058
  });
1056
1059
  }
1057
- function en(e) {
1060
+ function tn(e) {
1058
1061
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1059
1062
  }
1060
- var tn = function(t) {
1061
- return rn(t) && !nn(t);
1063
+ var rn = function(t) {
1064
+ return nn(t) && !on(t);
1062
1065
  };
1063
- function rn(e) {
1066
+ function nn(e) {
1064
1067
  return !!e && typeof e == "object";
1065
1068
  }
1066
- function nn(e) {
1069
+ function on(e) {
1067
1070
  var t = Object.prototype.toString.call(e);
1068
- return t === "[object RegExp]" || t === "[object Date]" || an(e);
1069
- }
1070
- var on = typeof Symbol == "function" && Symbol.for, sn = on ? Symbol.for("react.element") : 60103;
1071
- function an(e) {
1072
- return e.$$typeof === sn;
1071
+ return t === "[object RegExp]" || t === "[object Date]" || un(e);
1073
1072
  }
1073
+ var sn = typeof Symbol == "function" && Symbol.for, an = sn ? Symbol.for("react.element") : 60103;
1074
1074
  function un(e) {
1075
+ return e.$$typeof === an;
1076
+ }
1077
+ function hn(e) {
1075
1078
  return Array.isArray(e) ? [] : {};
1076
1079
  }
1077
- function re(e, t) {
1078
- return t.clone !== !1 && t.isMergeableObject(e) ? V(un(e), e, t) : e;
1080
+ function ie(e, t) {
1081
+ return t.clone !== !1 && t.isMergeableObject(e) ? z(hn(e), e, t) : e;
1079
1082
  }
1080
- function hn(e, t, r) {
1083
+ function ln(e, t, r) {
1081
1084
  return e.concat(t).map(function(n) {
1082
- return re(n, r);
1085
+ return ie(n, r);
1083
1086
  });
1084
1087
  }
1085
- function ln(e, t) {
1088
+ function cn(e, t) {
1086
1089
  if (!t.customMerge)
1087
- return V;
1090
+ return z;
1088
1091
  var r = t.customMerge(e);
1089
- return typeof r == "function" ? r : V;
1092
+ return typeof r == "function" ? r : z;
1090
1093
  }
1091
- function cn(e) {
1094
+ function fn(e) {
1092
1095
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1093
1096
  return Object.propertyIsEnumerable.call(e, t);
1094
1097
  }) : [];
1095
1098
  }
1096
- function pt(e) {
1097
- return Object.keys(e).concat(cn(e));
1099
+ function ft(e) {
1100
+ return Object.keys(e).concat(fn(e));
1098
1101
  }
1099
1102
  function kt(e, t) {
1100
1103
  try {
@@ -1103,31 +1106,31 @@ function kt(e, t) {
1103
1106
  return !1;
1104
1107
  }
1105
1108
  }
1106
- function fn(e, t) {
1109
+ function pn(e, t) {
1107
1110
  return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1108
1111
  }
1109
- function pn(e, t, r) {
1112
+ function mn(e, t, r) {
1110
1113
  var n = {};
1111
- return r.isMergeableObject(e) && pt(e).forEach(function(i) {
1112
- n[i] = re(e[i], r);
1113
- }), pt(t).forEach(function(i) {
1114
- fn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = ln(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
1114
+ return r.isMergeableObject(e) && ft(e).forEach(function(i) {
1115
+ n[i] = ie(e[i], r);
1116
+ }), ft(t).forEach(function(i) {
1117
+ pn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = cn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
1115
1118
  }), n;
1116
1119
  }
1117
- function V(e, t, r) {
1118
- r = r || {}, r.arrayMerge = r.arrayMerge || hn, r.isMergeableObject = r.isMergeableObject || tn, r.cloneUnlessOtherwiseSpecified = re;
1120
+ function z(e, t, r) {
1121
+ r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || rn, r.cloneUnlessOtherwiseSpecified = ie;
1119
1122
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1120
- return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) : re(t, r);
1123
+ return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : ie(t, r);
1121
1124
  }
1122
- V.all = function(t, r) {
1125
+ z.all = function(t, r) {
1123
1126
  if (!Array.isArray(t))
1124
1127
  throw new Error("first argument should be an array");
1125
1128
  return t.reduce(function(n, i) {
1126
- return V(n, i, r);
1129
+ return z(n, i, r);
1127
1130
  }, {});
1128
1131
  };
1129
- var mn = V, dn = mn;
1130
- const bn = /* @__PURE__ */ en(dn);
1132
+ var dn = z, bn = dn;
1133
+ const gn = /* @__PURE__ */ tn(bn);
1131
1134
  var Ve = function(e, t) {
1132
1135
  return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1133
1136
  r.__proto__ = n;
@@ -1136,7 +1139,7 @@ var Ve = function(e, t) {
1136
1139
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1137
1140
  }, Ve(e, t);
1138
1141
  };
1139
- function xe(e, t) {
1142
+ function Se(e, t) {
1140
1143
  if (typeof t != "function" && t !== null)
1141
1144
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1142
1145
  Ve(e, t);
@@ -1145,17 +1148,17 @@ function xe(e, t) {
1145
1148
  }
1146
1149
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1147
1150
  }
1148
- var N = function() {
1149
- return N = Object.assign || function(t) {
1151
+ var L = function() {
1152
+ return L = Object.assign || function(t) {
1150
1153
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1151
1154
  r = arguments[n];
1152
1155
  for (var o in r)
1153
1156
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1154
1157
  }
1155
1158
  return t;
1156
- }, N.apply(this, arguments);
1159
+ }, L.apply(this, arguments);
1157
1160
  };
1158
- function gn(e, t) {
1161
+ function yn(e, t) {
1159
1162
  var r = {};
1160
1163
  for (var n in e)
1161
1164
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -1164,24 +1167,24 @@ function gn(e, t) {
1164
1167
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1165
1168
  return r;
1166
1169
  }
1167
- function Ae(e, t, r) {
1170
+ function Pe(e, t, r) {
1168
1171
  if (r || arguments.length === 2)
1169
1172
  for (var n = 0, i = t.length, o; n < i; n++)
1170
1173
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1171
1174
  return e.concat(o || Array.prototype.slice.call(t));
1172
1175
  }
1173
- function Pe(e, t) {
1174
- var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : xn, i = t && t.strategy ? t.strategy : _n;
1176
+ function Oe(e, t) {
1177
+ var r = t && t.cache ? t.cache : wn, n = t && t.serializer ? t.serializer : Sn, i = t && t.strategy ? t.strategy : En;
1175
1178
  return i(e, {
1176
1179
  cache: r,
1177
1180
  serializer: n
1178
1181
  });
1179
1182
  }
1180
- function yn(e) {
1183
+ function vn(e) {
1181
1184
  return e == null || typeof e == "number" || typeof e == "boolean";
1182
1185
  }
1183
- function vn(e, t, r, n) {
1184
- var i = yn(n) ? n : r(n), o = t.get(i);
1186
+ function _n(e, t, r, n) {
1187
+ var i = vn(n) ? n : r(n), o = t.get(i);
1185
1188
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1186
1189
  }
1187
1190
  function Vt(e, t, r) {
@@ -1191,16 +1194,16 @@ function Vt(e, t, r) {
1191
1194
  function Xt(e, t, r, n, i) {
1192
1195
  return r.bind(t, e, n, i);
1193
1196
  }
1194
- function _n(e, t) {
1195
- var r = e.length === 1 ? vn : Vt;
1197
+ function En(e, t) {
1198
+ var r = e.length === 1 ? _n : Vt;
1196
1199
  return Xt(e, this, r, t.cache.create(), t.serializer);
1197
1200
  }
1198
- function En(e, t) {
1201
+ function xn(e, t) {
1199
1202
  return Xt(e, this, Vt, t.cache.create(), t.serializer);
1200
1203
  }
1201
- var xn = function() {
1204
+ var Sn = function() {
1202
1205
  return JSON.stringify(arguments);
1203
- }, Sn = (
1206
+ }, Tn = (
1204
1207
  /** @class */
1205
1208
  function() {
1206
1209
  function e() {
@@ -1212,69 +1215,69 @@ var xn = function() {
1212
1215
  this.cache[t] = r;
1213
1216
  }, e;
1214
1217
  }()
1215
- ), Tn = {
1218
+ ), wn = {
1216
1219
  create: function() {
1217
- return new Sn();
1220
+ return new Tn();
1218
1221
  }
1219
- }, Oe = {
1220
- variadic: En
1221
- }, be = function() {
1222
- return be = Object.assign || function(t) {
1222
+ }, Ne = {
1223
+ variadic: xn
1224
+ }, ge = function() {
1225
+ return ge = Object.assign || function(t) {
1223
1226
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1224
1227
  r = arguments[n];
1225
1228
  for (var o in r)
1226
1229
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1227
1230
  }
1228
1231
  return t;
1229
- }, be.apply(this, arguments);
1232
+ }, ge.apply(this, arguments);
1230
1233
  };
1231
- var v;
1234
+ var y;
1232
1235
  (function(e) {
1233
1236
  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";
1234
- })(v || (v = {}));
1235
- var E;
1237
+ })(y || (y = {}));
1238
+ var x;
1236
1239
  (function(e) {
1237
1240
  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";
1238
- })(E || (E = {}));
1239
- var X;
1241
+ })(x || (x = {}));
1242
+ var Z;
1240
1243
  (function(e) {
1241
1244
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1242
- })(X || (X = {}));
1243
- function mt(e) {
1244
- return e.type === E.literal;
1245
+ })(Z || (Z = {}));
1246
+ function pt(e) {
1247
+ return e.type === x.literal;
1245
1248
  }
1246
- function wn(e) {
1247
- return e.type === E.argument;
1249
+ function Hn(e) {
1250
+ return e.type === x.argument;
1248
1251
  }
1249
1252
  function Wt(e) {
1250
- return e.type === E.number;
1253
+ return e.type === x.number;
1251
1254
  }
1252
1255
  function zt(e) {
1253
- return e.type === E.date;
1256
+ return e.type === x.date;
1254
1257
  }
1255
1258
  function Zt(e) {
1256
- return e.type === E.time;
1259
+ return e.type === x.time;
1257
1260
  }
1258
1261
  function Qt(e) {
1259
- return e.type === E.select;
1262
+ return e.type === x.select;
1260
1263
  }
1261
1264
  function Jt(e) {
1262
- return e.type === E.plural;
1265
+ return e.type === x.plural;
1263
1266
  }
1264
- function Hn(e) {
1265
- return e.type === E.pound;
1267
+ function An(e) {
1268
+ return e.type === x.pound;
1266
1269
  }
1267
1270
  function qt(e) {
1268
- return e.type === E.tag;
1271
+ return e.type === x.tag;
1269
1272
  }
1270
1273
  function Yt(e) {
1271
- return !!(e && typeof e == "object" && e.type === X.number);
1274
+ return !!(e && typeof e == "object" && e.type === Z.number);
1272
1275
  }
1273
1276
  function Xe(e) {
1274
- return !!(e && typeof e == "object" && e.type === X.dateTime);
1277
+ return !!(e && typeof e == "object" && e.type === Z.dateTime);
1275
1278
  }
1276
1279
  var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Bn = /(?:[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;
1277
- function An(e) {
1280
+ function Pn(e) {
1278
1281
  var t = {};
1279
1282
  return e.replace(Bn, function(r) {
1280
1283
  var n = r.length;
@@ -1365,21 +1368,21 @@ function An(e) {
1365
1368
  return "";
1366
1369
  }), t;
1367
1370
  }
1368
- var x = function() {
1369
- return x = Object.assign || function(t) {
1371
+ var S = function() {
1372
+ return S = Object.assign || function(t) {
1370
1373
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1371
1374
  r = arguments[n];
1372
1375
  for (var o in r)
1373
1376
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1374
1377
  }
1375
1378
  return t;
1376
- }, x.apply(this, arguments);
1379
+ }, S.apply(this, arguments);
1377
1380
  };
1378
- var Pn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1379
- function On(e) {
1381
+ var On = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1382
+ function Nn(e) {
1380
1383
  if (e.length === 0)
1381
1384
  throw new Error("Number skeleton cannot be empty");
1382
- for (var t = e.split(Pn).filter(function(f) {
1385
+ for (var t = e.split(On).filter(function(f) {
1383
1386
  return f.length > 0;
1384
1387
  }), r = [], n = 0, i = t; n < i.length; n++) {
1385
1388
  var o = i[n], s = o.split("/");
@@ -1397,8 +1400,8 @@ function On(e) {
1397
1400
  function In(e) {
1398
1401
  return e.replace(/^(.*?)-/, "");
1399
1402
  }
1400
- var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Nn = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
1401
- function bt(e) {
1403
+ var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
1404
+ function dt(e) {
1402
1405
  var t = {};
1403
1406
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
1404
1407
  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)), "";
@@ -1444,7 +1447,7 @@ function rr(e) {
1444
1447
  };
1445
1448
  }
1446
1449
  }
1447
- function Ln(e) {
1450
+ function Cn(e) {
1448
1451
  var t;
1449
1452
  if (e[0] === "E" && e[1] === "E" ? (t = {
1450
1453
  notation: "engineering"
@@ -1458,11 +1461,11 @@ function Ln(e) {
1458
1461
  }
1459
1462
  return t;
1460
1463
  }
1461
- function gt(e) {
1464
+ function bt(e) {
1462
1465
  var t = {}, r = rr(e);
1463
1466
  return r || t;
1464
1467
  }
1465
- function Cn(e) {
1468
+ function Mn(e) {
1466
1469
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1467
1470
  var i = n[r];
1468
1471
  switch (i.stem) {
@@ -1497,13 +1500,13 @@ function Cn(e) {
1497
1500
  t.notation = "compact", t.compactDisplay = "long";
1498
1501
  continue;
1499
1502
  case "scientific":
1500
- t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1501
- return x(x({}, h), gt(u));
1503
+ t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1504
+ return S(S({}, h), bt(u));
1502
1505
  }, {}));
1503
1506
  continue;
1504
1507
  case "engineering":
1505
- t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1506
- return x(x({}, h), gt(u));
1508
+ t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1509
+ return S(S({}, h), bt(u));
1507
1510
  }, {}));
1508
1511
  continue;
1509
1512
  case "notation-simple":
@@ -1548,13 +1551,13 @@ function Cn(e) {
1548
1551
  case "integer-width":
1549
1552
  if (i.options.length > 1)
1550
1553
  throw new RangeError("integer-width stems only accept a single optional option");
1551
- i.options[0].replace(Nn, function(h, u, l, c, f, p) {
1554
+ i.options[0].replace(Ln, function(h, u, l, c, f, d) {
1552
1555
  if (u)
1553
1556
  t.minimumIntegerDigits = l.length;
1554
1557
  else {
1555
1558
  if (c && f)
1556
1559
  throw new Error("We currently do not support maximum integer digits");
1557
- if (p)
1560
+ if (d)
1558
1561
  throw new Error("We currently do not support exact integer digits");
1559
1562
  }
1560
1563
  return "";
@@ -1565,24 +1568,24 @@ function Cn(e) {
1565
1568
  t.minimumIntegerDigits = i.stem.length;
1566
1569
  continue;
1567
1570
  }
1568
- if (dt.test(i.stem)) {
1571
+ if (mt.test(i.stem)) {
1569
1572
  if (i.options.length > 1)
1570
1573
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1571
- i.stem.replace(dt, function(h, u, l, c, f, p) {
1572
- return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1574
+ i.stem.replace(mt, function(h, u, l, c, f, d) {
1575
+ return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1573
1576
  });
1574
1577
  var o = i.options[0];
1575
- o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), bt(o)));
1578
+ o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), dt(o)));
1576
1579
  continue;
1577
1580
  }
1578
1581
  if (er.test(i.stem)) {
1579
- t = x(x({}, t), bt(i.stem));
1582
+ t = S(S({}, t), dt(i.stem));
1580
1583
  continue;
1581
1584
  }
1582
1585
  var s = rr(i.stem);
1583
- s && (t = x(x({}, t), s));
1584
- var a = Ln(i.stem);
1585
- a && (t = x(x({}, t), a));
1586
+ s && (t = S(S({}, t), s));
1587
+ var a = Cn(i.stem);
1588
+ a && (t = S(S({}, t), a));
1586
1589
  }
1587
1590
  return t;
1588
1591
  }
@@ -3001,13 +3004,13 @@ var le = {
3001
3004
  "h"
3002
3005
  ]
3003
3006
  };
3004
- function Mn(e, t) {
3007
+ function $n(e, t) {
3005
3008
  for (var r = "", n = 0; n < e.length; n++) {
3006
3009
  var i = e.charAt(n);
3007
3010
  if (i === "j") {
3008
3011
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3009
3012
  o++, n++;
3010
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = $n(t);
3013
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Rn(t);
3011
3014
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
3012
3015
  r += h;
3013
3016
  for (; s-- > 0; )
@@ -3017,7 +3020,7 @@ function Mn(e, t) {
3017
3020
  }
3018
3021
  return r;
3019
3022
  }
3020
- function $n(e) {
3023
+ function Rn(e) {
3021
3024
  var t = e.hourCycle;
3022
3025
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3023
3026
  e.hourCycles && // @ts-ignore
@@ -3039,20 +3042,20 @@ function $n(e) {
3039
3042
  var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
3040
3043
  return i[0];
3041
3044
  }
3042
- var Ie, Rn = new RegExp("^".concat(Kt.source, "*")), Gn = new RegExp("".concat(Kt.source, "*$"));
3043
- function _(e, t) {
3045
+ var Ie, Gn = new RegExp("^".concat(Kt.source, "*")), Un = new RegExp("".concat(Kt.source, "*$"));
3046
+ function v(e, t) {
3044
3047
  return { start: e, end: t };
3045
3048
  }
3046
- var Un = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dn = !!String.fromCodePoint, Fn = !!Object.fromEntries, jn = !!String.prototype.codePointAt, kn = !!String.prototype.trimStart, Vn = !!String.prototype.trimEnd, Xn = !!Number.isSafeInteger, Wn = Xn ? Number.isSafeInteger : function(e) {
3049
+ var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, jn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, zn = Wn ? Number.isSafeInteger : function(e) {
3047
3050
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3048
3051
  }, We = !0;
3049
3052
  try {
3050
- var zn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3051
- We = ((Ie = zn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
3053
+ var Zn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3054
+ We = ((Ie = Zn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
3052
3055
  } catch {
3053
3056
  We = !1;
3054
3057
  }
3055
- var yt = Un ? (
3058
+ var gt = Dn ? (
3056
3059
  // Native
3057
3060
  function(t, r, n) {
3058
3061
  return t.startsWith(r, n);
@@ -3062,7 +3065,7 @@ var yt = Un ? (
3062
3065
  function(t, r, n) {
3063
3066
  return t.slice(n, n + r.length) === r;
3064
3067
  }
3065
- ), ze = Dn ? String.fromCodePoint : (
3068
+ ), ze = Fn ? String.fromCodePoint : (
3066
3069
  // IE11
3067
3070
  function() {
3068
3071
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3074,9 +3077,9 @@ var yt = Un ? (
3074
3077
  }
3075
3078
  return n;
3076
3079
  }
3077
- ), vt = (
3080
+ ), yt = (
3078
3081
  // native
3079
- Fn ? Object.fromEntries : (
3082
+ jn ? Object.fromEntries : (
3080
3083
  // Ponyfill
3081
3084
  function(t) {
3082
3085
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3086,7 +3089,7 @@ var yt = Un ? (
3086
3089
  return r;
3087
3090
  }
3088
3091
  )
3089
- ), nr = jn ? (
3092
+ ), nr = kn ? (
3090
3093
  // Native
3091
3094
  function(t, r) {
3092
3095
  return t.codePointAt(r);
@@ -3100,7 +3103,7 @@ var yt = Un ? (
3100
3103
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3101
3104
  }
3102
3105
  }
3103
- ), Zn = kn ? (
3106
+ ), Qn = Vn ? (
3104
3107
  // Native
3105
3108
  function(t) {
3106
3109
  return t.trimStart();
@@ -3108,9 +3111,9 @@ var yt = Un ? (
3108
3111
  ) : (
3109
3112
  // Ponyfill
3110
3113
  function(t) {
3111
- return t.replace(Rn, "");
3114
+ return t.replace(Gn, "");
3112
3115
  }
3113
- ), Qn = Vn ? (
3116
+ ), Jn = Xn ? (
3114
3117
  // Native
3115
3118
  function(t) {
3116
3119
  return t.trimEnd();
@@ -3118,7 +3121,7 @@ var yt = Un ? (
3118
3121
  ) : (
3119
3122
  // Ponyfill
3120
3123
  function(t) {
3121
- return t.replace(Gn, "");
3124
+ return t.replace(Un, "");
3122
3125
  }
3123
3126
  );
3124
3127
  function ir(e, t) {
@@ -3126,24 +3129,24 @@ function ir(e, t) {
3126
3129
  }
3127
3130
  var Ze;
3128
3131
  if (We) {
3129
- var _t = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3132
+ var vt = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3130
3133
  Ze = function(t, r) {
3131
3134
  var n;
3132
- _t.lastIndex = r;
3133
- var i = _t.exec(t);
3135
+ vt.lastIndex = r;
3136
+ var i = vt.exec(t);
3134
3137
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3135
3138
  };
3136
3139
  } else
3137
3140
  Ze = function(t, r) {
3138
3141
  for (var n = []; ; ) {
3139
3142
  var i = nr(t, r);
3140
- if (i === void 0 || or(i) || Kn(i))
3143
+ if (i === void 0 || or(i) || ei(i))
3141
3144
  break;
3142
3145
  n.push(i), r += i >= 65536 ? 2 : 1;
3143
3146
  }
3144
3147
  return ze.apply(void 0, n);
3145
3148
  };
3146
- var Jn = (
3149
+ var qn = (
3147
3150
  /** @class */
3148
3151
  function() {
3149
3152
  function e(t, r) {
@@ -3167,13 +3170,13 @@ var Jn = (
3167
3170
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3168
3171
  var a = this.clonePosition();
3169
3172
  this.bump(), i.push({
3170
- type: E.pound,
3171
- location: _(a, this.clonePosition())
3173
+ type: x.pound,
3174
+ location: v(a, this.clonePosition())
3172
3175
  });
3173
3176
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3174
3177
  if (n)
3175
3178
  break;
3176
- return this.error(v.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
3179
+ return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
3177
3180
  } else if (o === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
3178
3181
  var s = this.parseTag(t, r);
3179
3182
  if (s.err)
@@ -3195,9 +3198,9 @@ var Jn = (
3195
3198
  if (this.bumpSpace(), this.bumpIf("/>"))
3196
3199
  return {
3197
3200
  val: {
3198
- type: E.literal,
3201
+ type: x.literal,
3199
3202
  value: "<".concat(i, "/>"),
3200
- location: _(n, this.clonePosition())
3203
+ location: v(n, this.clonePosition())
3201
3204
  },
3202
3205
  err: null
3203
3206
  };
@@ -3208,24 +3211,24 @@ var Jn = (
3208
3211
  var s = o.val, a = this.clonePosition();
3209
3212
  if (this.bumpIf("</")) {
3210
3213
  if (this.isEOF() || !Qe(this.char()))
3211
- return this.error(v.INVALID_TAG, _(a, this.clonePosition()));
3214
+ return this.error(y.INVALID_TAG, v(a, this.clonePosition()));
3212
3215
  var h = this.clonePosition(), u = this.parseTagName();
3213
- return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3216
+ return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, v(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3214
3217
  val: {
3215
- type: E.tag,
3218
+ type: x.tag,
3216
3219
  value: i,
3217
3220
  children: s,
3218
- location: _(n, this.clonePosition())
3221
+ location: v(n, this.clonePosition())
3219
3222
  },
3220
3223
  err: null
3221
- } : this.error(v.INVALID_TAG, _(a, this.clonePosition())));
3224
+ } : this.error(y.INVALID_TAG, v(a, this.clonePosition())));
3222
3225
  } else
3223
- return this.error(v.UNCLOSED_TAG, _(n, this.clonePosition()));
3226
+ return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
3224
3227
  } else
3225
- return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
3228
+ return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
3226
3229
  }, e.prototype.parseTagName = function() {
3227
3230
  var t = this.offset();
3228
- for (this.bump(); !this.isEOF() && Yn(this.char()); )
3231
+ for (this.bump(); !this.isEOF() && Kn(this.char()); )
3229
3232
  this.bump();
3230
3233
  return this.message.slice(t, this.offset());
3231
3234
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3247,14 +3250,14 @@ var Jn = (
3247
3250
  }
3248
3251
  break;
3249
3252
  }
3250
- var h = _(n, this.clonePosition());
3253
+ var h = v(n, this.clonePosition());
3251
3254
  return {
3252
- val: { type: E.literal, value: i, location: h },
3255
+ val: { type: x.literal, value: i, location: h },
3253
3256
  err: null
3254
3257
  };
3255
3258
  }, e.prototype.tryParseLeftAngleBracket = function() {
3256
3259
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3257
- !qn(this.peek() || 0)) ? (this.bump(), "<") : null;
3260
+ !Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
3258
3261
  }, e.prototype.tryParseQuote = function(t) {
3259
3262
  if (this.isEOF() || this.char() !== 39)
3260
3263
  return null;
@@ -3297,40 +3300,40 @@ var Jn = (
3297
3300
  }, e.prototype.parseArgument = function(t, r) {
3298
3301
  var n = this.clonePosition();
3299
3302
  if (this.bump(), this.bumpSpace(), this.isEOF())
3300
- return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
3303
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3301
3304
  if (this.char() === 125)
3302
- return this.bump(), this.error(v.EMPTY_ARGUMENT, _(n, this.clonePosition()));
3305
+ return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
3303
3306
  var i = this.parseIdentifierIfPossible().value;
3304
3307
  if (!i)
3305
- return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3308
+ return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3306
3309
  if (this.bumpSpace(), this.isEOF())
3307
- return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
3310
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3308
3311
  switch (this.char()) {
3309
3312
  case 125:
3310
3313
  return this.bump(), {
3311
3314
  val: {
3312
- type: E.argument,
3315
+ type: x.argument,
3313
3316
  // value does not include the opening and closing braces.
3314
3317
  value: i,
3315
- location: _(n, this.clonePosition())
3318
+ location: v(n, this.clonePosition())
3316
3319
  },
3317
3320
  err: null
3318
3321
  };
3319
3322
  case 44:
3320
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3323
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3321
3324
  default:
3322
- return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3325
+ return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3323
3326
  }
3324
3327
  }, e.prototype.parseIdentifierIfPossible = function() {
3325
3328
  var t = this.clonePosition(), r = this.offset(), n = Ze(this.message, r), i = r + n.length;
3326
3329
  this.bumpTo(i);
3327
- var o = this.clonePosition(), s = _(t, o);
3330
+ var o = this.clonePosition(), s = v(t, o);
3328
3331
  return { value: n, location: s };
3329
3332
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3330
3333
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
3331
3334
  switch (a) {
3332
3335
  case "":
3333
- return this.error(v.EXPECT_ARGUMENT_TYPE, _(s, h));
3336
+ return this.error(y.EXPECT_ARGUMENT_TYPE, v(s, h));
3334
3337
  case "number":
3335
3338
  case "date":
3336
3339
  case "time": {
@@ -3341,44 +3344,44 @@ var Jn = (
3341
3344
  var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3342
3345
  if (c.err)
3343
3346
  return c;
3344
- var f = Qn(c.val);
3347
+ var f = Jn(c.val);
3345
3348
  if (f.length === 0)
3346
- return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
3347
- var p = _(l, this.clonePosition());
3348
- u = { style: f, styleLocation: p };
3349
+ return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
3350
+ var d = v(l, this.clonePosition());
3351
+ u = { style: f, styleLocation: d };
3349
3352
  }
3350
- var m = this.tryParseArgumentClose(i);
3351
- if (m.err)
3352
- return m;
3353
- var g = _(i, this.clonePosition());
3354
- if (u && yt(u?.style, "::", 0)) {
3355
- var d = Zn(u.style.slice(2));
3353
+ var p = this.tryParseArgumentClose(i);
3354
+ if (p.err)
3355
+ return p;
3356
+ var g = v(i, this.clonePosition());
3357
+ if (u && gt(u?.style, "::", 0)) {
3358
+ var E = Qn(u.style.slice(2));
3356
3359
  if (a === "number") {
3357
- var c = this.parseNumberSkeletonFromString(d, u.styleLocation);
3360
+ var c = this.parseNumberSkeletonFromString(E, u.styleLocation);
3358
3361
  return c.err ? c : {
3359
- val: { type: E.number, value: n, location: g, style: c.val },
3362
+ val: { type: x.number, value: n, location: g, style: c.val },
3360
3363
  err: null
3361
3364
  };
3362
3365
  } else {
3363
- if (d.length === 0)
3364
- return this.error(v.EXPECT_DATE_TIME_SKELETON, g);
3365
- var T = d;
3366
- this.locale && (T = Mn(d, this.locale));
3366
+ if (E.length === 0)
3367
+ return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
3368
+ var b = E;
3369
+ this.locale && (b = $n(E, this.locale));
3367
3370
  var f = {
3368
- type: X.dateTime,
3369
- pattern: T,
3371
+ type: Z.dateTime,
3372
+ pattern: b,
3370
3373
  location: u.styleLocation,
3371
- parsedOptions: this.shouldParseSkeletons ? An(T) : {}
3372
- }, y = a === "date" ? E.date : E.time;
3374
+ parsedOptions: this.shouldParseSkeletons ? Pn(b) : {}
3375
+ }, T = a === "date" ? x.date : x.time;
3373
3376
  return {
3374
- val: { type: y, value: n, location: g, style: f },
3377
+ val: { type: T, value: n, location: g, style: f },
3375
3378
  err: null
3376
3379
  };
3377
3380
  }
3378
3381
  }
3379
3382
  return {
3380
3383
  val: {
3381
- type: a === "number" ? E.number : a === "date" ? E.date : E.time,
3384
+ type: a === "number" ? x.number : a === "date" ? x.date : x.time,
3382
3385
  value: n,
3383
3386
  location: g,
3384
3387
  style: (o = u?.style) !== null && o !== void 0 ? o : null
@@ -3389,41 +3392,41 @@ var Jn = (
3389
3392
  case "plural":
3390
3393
  case "selectordinal":
3391
3394
  case "select": {
3392
- var S = this.clonePosition();
3395
+ var _ = this.clonePosition();
3393
3396
  if (this.bumpSpace(), !this.bumpIf(","))
3394
- return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(S, be({}, S)));
3397
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(_, ge({}, _)));
3395
3398
  this.bumpSpace();
3396
- var M = this.parseIdentifierIfPossible(), L = 0;
3397
- if (a !== "select" && M.value === "offset") {
3399
+ var N = this.parseIdentifierIfPossible(), C = 0;
3400
+ if (a !== "select" && N.value === "offset") {
3398
3401
  if (!this.bumpIf(":"))
3399
- return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
3402
+ return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
3400
3403
  this.bumpSpace();
3401
- var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3404
+ var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3402
3405
  if (c.err)
3403
3406
  return c;
3404
- this.bumpSpace(), M = this.parseIdentifierIfPossible(), L = c.val;
3407
+ this.bumpSpace(), N = this.parseIdentifierIfPossible(), C = c.val;
3405
3408
  }
3406
- var b = this.tryParsePluralOrSelectOptions(t, a, r, M);
3407
- if (b.err)
3408
- return b;
3409
- var m = this.tryParseArgumentClose(i);
3409
+ var m = this.tryParsePluralOrSelectOptions(t, a, r, N);
3410
3410
  if (m.err)
3411
3411
  return m;
3412
- var O = _(i, this.clonePosition());
3412
+ var p = this.tryParseArgumentClose(i);
3413
+ if (p.err)
3414
+ return p;
3415
+ var O = v(i, this.clonePosition());
3413
3416
  return a === "select" ? {
3414
3417
  val: {
3415
- type: E.select,
3418
+ type: x.select,
3416
3419
  value: n,
3417
- options: vt(b.val),
3420
+ options: yt(m.val),
3418
3421
  location: O
3419
3422
  },
3420
3423
  err: null
3421
3424
  } : {
3422
3425
  val: {
3423
- type: E.plural,
3426
+ type: x.plural,
3424
3427
  value: n,
3425
- options: vt(b.val),
3426
- offset: L,
3428
+ options: yt(m.val),
3429
+ offset: C,
3427
3430
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3428
3431
  location: O
3429
3432
  },
@@ -3431,10 +3434,10 @@ var Jn = (
3431
3434
  };
3432
3435
  }
3433
3436
  default:
3434
- return this.error(v.INVALID_ARGUMENT_TYPE, _(s, h));
3437
+ return this.error(y.INVALID_ARGUMENT_TYPE, v(s, h));
3435
3438
  }
3436
3439
  }, e.prototype.tryParseArgumentClose = function(t) {
3437
- return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3440
+ return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3438
3441
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3439
3442
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3440
3443
  var n = this.char();
@@ -3443,7 +3446,7 @@ var Jn = (
3443
3446
  this.bump();
3444
3447
  var i = this.clonePosition();
3445
3448
  if (!this.bumpUntil("'"))
3446
- return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
3449
+ return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
3447
3450
  this.bump();
3448
3451
  break;
3449
3452
  }
@@ -3473,16 +3476,16 @@ var Jn = (
3473
3476
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3474
3477
  var n = [];
3475
3478
  try {
3476
- n = On(t);
3479
+ n = Nn(t);
3477
3480
  } catch {
3478
- return this.error(v.INVALID_NUMBER_SKELETON, r);
3481
+ return this.error(y.INVALID_NUMBER_SKELETON, r);
3479
3482
  }
3480
3483
  return {
3481
3484
  val: {
3482
- type: X.number,
3485
+ type: Z.number,
3483
3486
  tokens: n,
3484
3487
  location: r,
3485
- parsedOptions: this.shouldParseSkeletons ? Cn(n) : {}
3488
+ parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
3486
3489
  },
3487
3490
  err: null
3488
3491
  };
@@ -3491,34 +3494,34 @@ var Jn = (
3491
3494
  if (u.length === 0) {
3492
3495
  var c = this.clonePosition();
3493
3496
  if (r !== "select" && this.bumpIf("=")) {
3494
- var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
3497
+ var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
3495
3498
  if (f.err)
3496
3499
  return f;
3497
- l = _(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3500
+ l = v(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3498
3501
  } else
3499
3502
  break;
3500
3503
  }
3501
3504
  if (h.has(u))
3502
- return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3505
+ return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3503
3506
  u === "other" && (s = !0), this.bumpSpace();
3504
- var p = this.clonePosition();
3507
+ var d = this.clonePosition();
3505
3508
  if (!this.bumpIf("{"))
3506
- return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
3507
- var m = this.parseMessage(t + 1, r, n);
3508
- if (m.err)
3509
- return m;
3510
- var g = this.tryParseArgumentClose(p);
3509
+ return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
3510
+ var p = this.parseMessage(t + 1, r, n);
3511
+ if (p.err)
3512
+ return p;
3513
+ var g = this.tryParseArgumentClose(d);
3511
3514
  if (g.err)
3512
3515
  return g;
3513
3516
  a.push([
3514
3517
  u,
3515
3518
  {
3516
- value: m.val,
3517
- location: _(p, this.clonePosition())
3519
+ value: p.val,
3520
+ location: v(d, this.clonePosition())
3518
3521
  }
3519
3522
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3520
3523
  }
3521
- return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3524
+ return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3522
3525
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3523
3526
  var n = 1, i = this.clonePosition();
3524
3527
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3529,8 +3532,8 @@ var Jn = (
3529
3532
  else
3530
3533
  break;
3531
3534
  }
3532
- var h = _(i, this.clonePosition());
3533
- return o ? (s *= n, Wn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3535
+ var h = v(i, this.clonePosition());
3536
+ return o ? (s *= n, zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3534
3537
  }, e.prototype.offset = function() {
3535
3538
  return this.position.offset;
3536
3539
  }, e.prototype.isEOF = function() {
@@ -3564,7 +3567,7 @@ var Jn = (
3564
3567
  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);
3565
3568
  }
3566
3569
  }, e.prototype.bumpIf = function(t) {
3567
- if (yt(this.message, t, this.offset())) {
3570
+ if (gt(this.message, t, this.offset())) {
3568
3571
  for (var r = 0; r < t.length; r++)
3569
3572
  this.bump();
3570
3573
  return !0;
@@ -3599,16 +3602,16 @@ var Jn = (
3599
3602
  function Qe(e) {
3600
3603
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3601
3604
  }
3602
- function qn(e) {
3605
+ function Yn(e) {
3603
3606
  return Qe(e) || e === 47;
3604
3607
  }
3605
- function Yn(e) {
3608
+ function Kn(e) {
3606
3609
  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;
3607
3610
  }
3608
3611
  function or(e) {
3609
3612
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3610
3613
  }
3611
- function Kn(e) {
3614
+ function ei(e) {
3612
3615
  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;
3613
3616
  }
3614
3617
  function Je(e) {
@@ -3620,23 +3623,23 @@ function Je(e) {
3620
3623
  Wt(t) && Yt(t.style) || (zt(t) || Zt(t)) && Xe(t.style) ? delete t.style.location : qt(t) && Je(t.children);
3621
3624
  });
3622
3625
  }
3623
- function ei(e, t) {
3624
- t === void 0 && (t = {}), t = be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3625
- var r = new Jn(e, t).parse();
3626
+ function ti(e, t) {
3627
+ t === void 0 && (t = {}), t = ge({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3628
+ var r = new qn(e, t).parse();
3626
3629
  if (r.err) {
3627
- var n = SyntaxError(v[r.err.kind]);
3630
+ var n = SyntaxError(y[r.err.kind]);
3628
3631
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3629
3632
  }
3630
3633
  return t?.captureLocation || Je(r.val), r.val;
3631
3634
  }
3632
- var W;
3635
+ var Q;
3633
3636
  (function(e) {
3634
3637
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3635
- })(W || (W = {}));
3636
- var Se = (
3638
+ })(Q || (Q = {}));
3639
+ var Te = (
3637
3640
  /** @class */
3638
3641
  function(e) {
3639
- xe(t, e);
3642
+ Se(t, e);
3640
3643
  function t(r, n, i) {
3641
3644
  var o = e.call(this, r) || this;
3642
3645
  return o.code = n, o.originalMessage = i, o;
@@ -3645,155 +3648,155 @@ var Se = (
3645
3648
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3646
3649
  }, t;
3647
3650
  }(Error)
3648
- ), Et = (
3651
+ ), _t = (
3649
3652
  /** @class */
3650
3653
  function(e) {
3651
- xe(t, e);
3654
+ Se(t, e);
3652
3655
  function t(r, n, i, o) {
3653
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
3656
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Q.INVALID_VALUE, o) || this;
3654
3657
  }
3655
3658
  return t;
3656
- }(Se)
3657
- ), ti = (
3659
+ }(Te)
3660
+ ), ri = (
3658
3661
  /** @class */
3659
3662
  function(e) {
3660
- xe(t, e);
3663
+ Se(t, e);
3661
3664
  function t(r, n, i) {
3662
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
3665
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Q.INVALID_VALUE, i) || this;
3663
3666
  }
3664
3667
  return t;
3665
- }(Se)
3666
- ), ri = (
3668
+ }(Te)
3669
+ ), ni = (
3667
3670
  /** @class */
3668
3671
  function(e) {
3669
- xe(t, e);
3672
+ Se(t, e);
3670
3673
  function t(r, n) {
3671
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
3674
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Q.MISSING_VALUE, n) || this;
3672
3675
  }
3673
3676
  return t;
3674
- }(Se)
3675
- ), A;
3677
+ }(Te)
3678
+ ), B;
3676
3679
  (function(e) {
3677
3680
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3678
- })(A || (A = {}));
3679
- function ni(e) {
3681
+ })(B || (B = {}));
3682
+ function ii(e) {
3680
3683
  return e.length < 2 ? e : e.reduce(function(t, r) {
3681
3684
  var n = t[t.length - 1];
3682
- return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
3685
+ return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
3683
3686
  }, []);
3684
3687
  }
3685
- function ii(e) {
3688
+ function oi(e) {
3686
3689
  return typeof e == "function";
3687
3690
  }
3688
3691
  function pe(e, t, r, n, i, o, s) {
3689
- if (e.length === 1 && mt(e[0]))
3692
+ if (e.length === 1 && pt(e[0]))
3690
3693
  return [
3691
3694
  {
3692
- type: A.literal,
3695
+ type: B.literal,
3693
3696
  value: e[0].value
3694
3697
  }
3695
3698
  ];
3696
3699
  for (var a = [], h = 0, u = e; h < u.length; h++) {
3697
3700
  var l = u[h];
3698
- if (mt(l)) {
3701
+ if (pt(l)) {
3699
3702
  a.push({
3700
- type: A.literal,
3703
+ type: B.literal,
3701
3704
  value: l.value
3702
3705
  });
3703
3706
  continue;
3704
3707
  }
3705
- if (Hn(l)) {
3708
+ if (An(l)) {
3706
3709
  typeof o == "number" && a.push({
3707
- type: A.literal,
3710
+ type: B.literal,
3708
3711
  value: r.getNumberFormat(t).format(o)
3709
3712
  });
3710
3713
  continue;
3711
3714
  }
3712
3715
  var c = l.value;
3713
3716
  if (!(i && c in i))
3714
- throw new ri(c, s);
3717
+ throw new ni(c, s);
3715
3718
  var f = i[c];
3716
- if (wn(l)) {
3719
+ if (Hn(l)) {
3717
3720
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3718
- type: typeof f == "string" ? A.literal : A.object,
3721
+ type: typeof f == "string" ? B.literal : B.object,
3719
3722
  value: f
3720
3723
  });
3721
3724
  continue;
3722
3725
  }
3723
3726
  if (zt(l)) {
3724
- var p = typeof l.style == "string" ? n.date[l.style] : Xe(l.style) ? l.style.parsedOptions : void 0;
3727
+ var d = typeof l.style == "string" ? n.date[l.style] : Xe(l.style) ? l.style.parsedOptions : void 0;
3725
3728
  a.push({
3726
- type: A.literal,
3727
- value: r.getDateTimeFormat(t, p).format(f)
3729
+ type: B.literal,
3730
+ value: r.getDateTimeFormat(t, d).format(f)
3728
3731
  });
3729
3732
  continue;
3730
3733
  }
3731
3734
  if (Zt(l)) {
3732
- var p = typeof l.style == "string" ? n.time[l.style] : Xe(l.style) ? l.style.parsedOptions : n.time.medium;
3735
+ var d = typeof l.style == "string" ? n.time[l.style] : Xe(l.style) ? l.style.parsedOptions : n.time.medium;
3733
3736
  a.push({
3734
- type: A.literal,
3735
- value: r.getDateTimeFormat(t, p).format(f)
3737
+ type: B.literal,
3738
+ value: r.getDateTimeFormat(t, d).format(f)
3736
3739
  });
3737
3740
  continue;
3738
3741
  }
3739
3742
  if (Wt(l)) {
3740
- var p = typeof l.style == "string" ? n.number[l.style] : Yt(l.style) ? l.style.parsedOptions : void 0;
3741
- p && p.scale && (f = f * (p.scale || 1)), a.push({
3742
- type: A.literal,
3743
- value: r.getNumberFormat(t, p).format(f)
3743
+ var d = typeof l.style == "string" ? n.number[l.style] : Yt(l.style) ? l.style.parsedOptions : void 0;
3744
+ d && d.scale && (f = f * (d.scale || 1)), a.push({
3745
+ type: B.literal,
3746
+ value: r.getNumberFormat(t, d).format(f)
3744
3747
  });
3745
3748
  continue;
3746
3749
  }
3747
3750
  if (qt(l)) {
3748
- var m = l.children, g = l.value, d = i[g];
3749
- if (!ii(d))
3750
- throw new ti(g, "function", s);
3751
- var T = pe(m, t, r, n, i, o), y = d(T.map(function(L) {
3752
- return L.value;
3751
+ var p = l.children, g = l.value, E = i[g];
3752
+ if (!oi(E))
3753
+ throw new ri(g, "function", s);
3754
+ var b = pe(p, t, r, n, i, o), T = E(b.map(function(C) {
3755
+ return C.value;
3753
3756
  }));
3754
- Array.isArray(y) || (y = [y]), a.push.apply(a, y.map(function(L) {
3757
+ Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(C) {
3755
3758
  return {
3756
- type: typeof L == "string" ? A.literal : A.object,
3757
- value: L
3759
+ type: typeof C == "string" ? B.literal : B.object,
3760
+ value: C
3758
3761
  };
3759
3762
  }));
3760
3763
  }
3761
3764
  if (Qt(l)) {
3762
- var S = l.options[f] || l.options.other;
3763
- if (!S)
3764
- throw new Et(l.value, f, Object.keys(l.options), s);
3765
- a.push.apply(a, pe(S.value, t, r, n, i));
3765
+ var _ = l.options[f] || l.options.other;
3766
+ if (!_)
3767
+ throw new _t(l.value, f, Object.keys(l.options), s);
3768
+ a.push.apply(a, pe(_.value, t, r, n, i));
3766
3769
  continue;
3767
3770
  }
3768
3771
  if (Jt(l)) {
3769
- var S = l.options["=".concat(f)];
3770
- if (!S) {
3772
+ var _ = l.options["=".concat(f)];
3773
+ if (!_) {
3771
3774
  if (!Intl.PluralRules)
3772
- throw new Se(`Intl.PluralRules is not available in this environment.
3775
+ throw new Te(`Intl.PluralRules is not available in this environment.
3773
3776
  Try polyfilling it using "@formatjs/intl-pluralrules"
3774
- `, W.MISSING_INTL_API, s);
3775
- var M = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3776
- S = l.options[M] || l.options.other;
3777
+ `, Q.MISSING_INTL_API, s);
3778
+ var N = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3779
+ _ = l.options[N] || l.options.other;
3777
3780
  }
3778
- if (!S)
3779
- throw new Et(l.value, f, Object.keys(l.options), s);
3780
- a.push.apply(a, pe(S.value, t, r, n, i, f - (l.offset || 0)));
3781
+ if (!_)
3782
+ throw new _t(l.value, f, Object.keys(l.options), s);
3783
+ a.push.apply(a, pe(_.value, t, r, n, i, f - (l.offset || 0)));
3781
3784
  continue;
3782
3785
  }
3783
3786
  }
3784
- return ni(a);
3787
+ return ii(a);
3785
3788
  }
3786
- function oi(e, t) {
3787
- return t ? N(N(N({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3788
- return r[n] = N(N({}, e[n]), t[n] || {}), r;
3789
+ function si(e, t) {
3790
+ return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3791
+ return r[n] = L(L({}, e[n]), t[n] || {}), r;
3789
3792
  }, {})) : e;
3790
3793
  }
3791
- function si(e, t) {
3794
+ function ai(e, t) {
3792
3795
  return t ? Object.keys(e).reduce(function(r, n) {
3793
- return r[n] = oi(e[n], t[n]), r;
3794
- }, N({}, e)) : e;
3796
+ return r[n] = si(e[n], t[n]), r;
3797
+ }, L({}, e)) : e;
3795
3798
  }
3796
- function Ne(e) {
3799
+ function Le(e) {
3797
3800
  return {
3798
3801
  create: function() {
3799
3802
  return {
@@ -3807,39 +3810,39 @@ function Ne(e) {
3807
3810
  }
3808
3811
  };
3809
3812
  }
3810
- function ai(e) {
3813
+ function ui(e) {
3811
3814
  return e === void 0 && (e = {
3812
3815
  number: {},
3813
3816
  dateTime: {},
3814
3817
  pluralRules: {}
3815
3818
  }), {
3816
- getNumberFormat: Pe(function() {
3819
+ getNumberFormat: Oe(function() {
3817
3820
  for (var t, r = [], n = 0; n < arguments.length; n++)
3818
3821
  r[n] = arguments[n];
3819
- return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
3822
+ return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
3820
3823
  }, {
3821
- cache: Ne(e.number),
3822
- strategy: Oe.variadic
3824
+ cache: Le(e.number),
3825
+ strategy: Ne.variadic
3823
3826
  }),
3824
- getDateTimeFormat: Pe(function() {
3827
+ getDateTimeFormat: Oe(function() {
3825
3828
  for (var t, r = [], n = 0; n < arguments.length; n++)
3826
3829
  r[n] = arguments[n];
3827
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
3830
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
3828
3831
  }, {
3829
- cache: Ne(e.dateTime),
3830
- strategy: Oe.variadic
3832
+ cache: Le(e.dateTime),
3833
+ strategy: Ne.variadic
3831
3834
  }),
3832
- getPluralRules: Pe(function() {
3835
+ getPluralRules: Oe(function() {
3833
3836
  for (var t, r = [], n = 0; n < arguments.length; n++)
3834
3837
  r[n] = arguments[n];
3835
- return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
3838
+ return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
3836
3839
  }, {
3837
- cache: Ne(e.pluralRules),
3838
- strategy: Oe.variadic
3840
+ cache: Le(e.pluralRules),
3841
+ strategy: Ne.variadic
3839
3842
  })
3840
3843
  };
3841
3844
  }
3842
- var ui = (
3845
+ var hi = (
3843
3846
  /** @class */
3844
3847
  function() {
3845
3848
  function e(t, r, n, i) {
@@ -3854,7 +3857,7 @@ var ui = (
3854
3857
  if (u.length === 1)
3855
3858
  return u[0].value;
3856
3859
  var l = u.reduce(function(c, f) {
3857
- return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3860
+ return !c.length || f.type !== B.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3858
3861
  }, []);
3859
3862
  return l.length <= 1 ? l[0] || "" : l;
3860
3863
  }, this.formatToParts = function(h) {
@@ -3871,13 +3874,13 @@ var ui = (
3871
3874
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3872
3875
  var s = i || {};
3873
3876
  s.formatters;
3874
- var a = gn(s, ["formatters"]);
3875
- this.ast = e.__parse(t, N(N({}, a), { locale: this.resolvedLocale }));
3877
+ var a = yn(s, ["formatters"]);
3878
+ this.ast = e.__parse(t, L(L({}, a), { locale: this.resolvedLocale }));
3876
3879
  } else
3877
3880
  this.ast = t;
3878
3881
  if (!Array.isArray(this.ast))
3879
3882
  throw new TypeError("A message must be provided as a String or AST.");
3880
- this.formats = si(e.formats, n), this.formatters = i && i.formatters || ai(this.formatterCache);
3883
+ this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
3881
3884
  }
3882
3885
  return Object.defineProperty(e, "defaultLocale", {
3883
3886
  get: function() {
@@ -3890,7 +3893,7 @@ var ui = (
3890
3893
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3891
3894
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3892
3895
  }
3893
- }, e.__parse = ei, e.formats = {
3896
+ }, e.__parse = ti, e.formats = {
3894
3897
  number: {
3895
3898
  integer: {
3896
3899
  maximumFractionDigits: 0
@@ -3951,7 +3954,7 @@ var ui = (
3951
3954
  }, e;
3952
3955
  }()
3953
3956
  );
3954
- function hi(e, t) {
3957
+ function li(e, t) {
3955
3958
  if (t == null)
3956
3959
  return;
3957
3960
  if (t in e)
@@ -3972,36 +3975,36 @@ function hi(e, t) {
3972
3975
  n = void 0;
3973
3976
  return n;
3974
3977
  }
3975
- const $ = {}, li = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), sr = (e, t) => {
3978
+ const $ = {}, ci = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), sr = (e, t) => {
3976
3979
  if (t == null)
3977
3980
  return;
3978
3981
  if (t in $ && e in $[t])
3979
3982
  return $[t][e];
3980
- const r = Te(t);
3983
+ const r = we(t);
3981
3984
  for (let n = 0; n < r.length; n++) {
3982
- const i = r[n], o = fi(i, e);
3985
+ const i = r[n], o = pi(i, e);
3983
3986
  if (o)
3984
- return li(e, t, o);
3987
+ return ci(e, t, o);
3985
3988
  }
3986
3989
  };
3987
3990
  let et;
3988
- const J = Ee({});
3989
- function ci(e) {
3991
+ const Y = xe({});
3992
+ function fi(e) {
3990
3993
  return et[e] || null;
3991
3994
  }
3992
3995
  function ar(e) {
3993
3996
  return e in et;
3994
3997
  }
3995
- function fi(e, t) {
3998
+ function pi(e, t) {
3996
3999
  if (!ar(e))
3997
4000
  return null;
3998
- const r = ci(e);
3999
- return hi(r, t);
4001
+ const r = fi(e);
4002
+ return li(r, t);
4000
4003
  }
4001
- function pi(e) {
4004
+ function mi(e) {
4002
4005
  if (e == null)
4003
4006
  return;
4004
- const t = Te(e);
4007
+ const t = we(e);
4005
4008
  for (let r = 0; r < t.length; r++) {
4006
4009
  const n = t[r];
4007
4010
  if (ar(n))
@@ -4009,55 +4012,55 @@ function pi(e) {
4009
4012
  }
4010
4013
  }
4011
4014
  function ur(e, ...t) {
4012
- delete $[e], J.update((r) => (r[e] = bn.all([r[e] || {}, ...t]), r));
4015
+ delete $[e], Y.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
4013
4016
  }
4014
- Q(
4015
- [J],
4017
+ q(
4018
+ [Y],
4016
4019
  ([e]) => Object.keys(e)
4017
4020
  );
4018
- J.subscribe((e) => et = e);
4021
+ Y.subscribe((e) => et = e);
4019
4022
  const me = {};
4020
- function mi(e, t) {
4023
+ function di(e, t) {
4021
4024
  me[e].delete(t), me[e].size === 0 && delete me[e];
4022
4025
  }
4023
4026
  function hr(e) {
4024
4027
  return me[e];
4025
4028
  }
4026
- function di(e) {
4027
- return Te(e).map((t) => {
4029
+ function bi(e) {
4030
+ return we(e).map((t) => {
4028
4031
  const r = hr(t);
4029
4032
  return [t, r ? [...r] : []];
4030
4033
  }).filter(([, t]) => t.length > 0);
4031
4034
  }
4032
4035
  function qe(e) {
4033
- return e == null ? !1 : Te(e).some(
4036
+ return e == null ? !1 : we(e).some(
4034
4037
  (t) => {
4035
4038
  var r;
4036
4039
  return (r = hr(t)) == null ? void 0 : r.size;
4037
4040
  }
4038
4041
  );
4039
4042
  }
4040
- function bi(e, t) {
4043
+ function gi(e, t) {
4041
4044
  return Promise.all(
4042
- t.map((n) => (mi(e, n), n().then((i) => i.default || i)))
4045
+ t.map((n) => (di(e, n), n().then((i) => i.default || i)))
4043
4046
  ).then((n) => ur(e, ...n));
4044
4047
  }
4045
- const Y = {};
4048
+ const ee = {};
4046
4049
  function lr(e) {
4047
4050
  if (!qe(e))
4048
- return e in Y ? Y[e] : Promise.resolve();
4049
- const t = di(e);
4050
- return Y[e] = Promise.all(
4051
+ return e in ee ? ee[e] : Promise.resolve();
4052
+ const t = bi(e);
4053
+ return ee[e] = Promise.all(
4051
4054
  t.map(
4052
- ([r, n]) => bi(r, n)
4055
+ ([r, n]) => gi(r, n)
4053
4056
  )
4054
4057
  ).then(() => {
4055
4058
  if (qe(e))
4056
4059
  return lr(e);
4057
- delete Y[e];
4058
- }), Y[e];
4060
+ delete ee[e];
4061
+ }), ee[e];
4059
4062
  }
4060
- const gi = {
4063
+ const yi = {
4061
4064
  number: {
4062
4065
  scientific: { notation: "scientific" },
4063
4066
  engineering: { notation: "engineering" },
@@ -4086,141 +4089,141 @@ const gi = {
4086
4089
  timeZoneName: "short"
4087
4090
  }
4088
4091
  }
4089
- }, yi = {
4092
+ }, vi = {
4090
4093
  fallbackLocale: null,
4091
4094
  loadingDelay: 200,
4092
- formats: gi,
4095
+ formats: yi,
4093
4096
  warnOnMissingMessages: !0,
4094
4097
  handleMissingMessage: void 0,
4095
4098
  ignoreTag: !0
4096
- }, vi = yi;
4097
- function z() {
4098
- return vi;
4099
+ }, _i = vi;
4100
+ function J() {
4101
+ return _i;
4099
4102
  }
4100
- const Le = Ee(!1);
4101
- var _i = Object.defineProperty, Ei = Object.defineProperties, xi = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wi = (e, t) => {
4103
+ const Ce = xe(!1);
4104
+ var Ei = Object.defineProperty, xi = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, wi = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
4102
4105
  for (var r in t || (t = {}))
4103
- Si.call(t, r) && St(e, r, t[r]);
4104
- if (xt)
4105
- for (var r of xt(t))
4106
- Ti.call(t, r) && St(e, r, t[r]);
4106
+ Ti.call(t, r) && xt(e, r, t[r]);
4107
+ if (Et)
4108
+ for (var r of Et(t))
4109
+ wi.call(t, r) && xt(e, r, t[r]);
4107
4110
  return e;
4108
- }, Hi = (e, t) => Ei(e, xi(t));
4111
+ }, Ai = (e, t) => xi(e, Si(t));
4109
4112
  let Ye;
4110
- const ge = Ee(null);
4111
- function Tt(e) {
4113
+ const ye = xe(null);
4114
+ function St(e) {
4112
4115
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4113
4116
  }
4114
- function Te(e, t = z().fallbackLocale) {
4115
- const r = Tt(e);
4116
- return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
4117
+ function we(e, t = J().fallbackLocale) {
4118
+ const r = St(e);
4119
+ return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
4117
4120
  }
4118
- function U() {
4121
+ function F() {
4119
4122
  return Ye ?? void 0;
4120
4123
  }
4121
- ge.subscribe((e) => {
4124
+ ye.subscribe((e) => {
4122
4125
  Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4123
4126
  });
4124
4127
  const Bi = (e) => {
4125
- if (e && pi(e) && qe(e)) {
4126
- const { loadingDelay: t } = z();
4128
+ if (e && mi(e) && qe(e)) {
4129
+ const { loadingDelay: t } = J();
4127
4130
  let r;
4128
- return typeof window < "u" && U() != null && t ? r = window.setTimeout(
4129
- () => Le.set(!0),
4131
+ return typeof window < "u" && F() != null && t ? r = window.setTimeout(
4132
+ () => Ce.set(!0),
4130
4133
  t
4131
- ) : Le.set(!0), lr(e).then(() => {
4132
- ge.set(e);
4134
+ ) : Ce.set(!0), lr(e).then(() => {
4135
+ ye.set(e);
4133
4136
  }).finally(() => {
4134
- clearTimeout(r), Le.set(!1);
4137
+ clearTimeout(r), Ce.set(!1);
4135
4138
  });
4136
4139
  }
4137
- return ge.set(e);
4138
- }, R = Hi(wi({}, ge), {
4140
+ return ye.set(e);
4141
+ }, R = Ai(Hi({}, ye), {
4139
4142
  set: Bi
4140
- }), we = (e) => {
4143
+ }), He = (e) => {
4141
4144
  const t = /* @__PURE__ */ Object.create(null);
4142
4145
  return (n) => {
4143
4146
  const i = JSON.stringify(n);
4144
4147
  return i in t ? t[i] : t[i] = e(n);
4145
4148
  };
4146
4149
  };
4147
- var Ai = Object.defineProperty, ye = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
4150
+ var Pi = Object.defineProperty, ve = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
4148
4151
  for (var r in t || (t = {}))
4149
- cr.call(t, r) && wt(e, r, t[r]);
4150
- if (ye)
4151
- for (var r of ye(t))
4152
- fr.call(t, r) && wt(e, r, t[r]);
4152
+ cr.call(t, r) && Tt(e, r, t[r]);
4153
+ if (ve)
4154
+ for (var r of ve(t))
4155
+ fr.call(t, r) && Tt(e, r, t[r]);
4153
4156
  return e;
4154
- }, q = (e, t) => {
4157
+ }, K = (e, t) => {
4155
4158
  var r = {};
4156
4159
  for (var n in e)
4157
4160
  cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4158
- if (e != null && ye)
4159
- for (var n of ye(e))
4161
+ if (e != null && ve)
4162
+ for (var n of ve(e))
4160
4163
  t.indexOf(n) < 0 && fr.call(e, n) && (r[n] = e[n]);
4161
4164
  return r;
4162
4165
  };
4163
- const ne = (e, t) => {
4164
- const { formats: r } = z();
4166
+ const oe = (e, t) => {
4167
+ const { formats: r } = J();
4165
4168
  if (e in r && t in r[e])
4166
4169
  return r[e][t];
4167
4170
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4168
- }, Pi = we(
4171
+ }, Oi = He(
4169
4172
  (e) => {
4170
- var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
4173
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4171
4174
  if (r == null)
4172
4175
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4173
- return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
4176
+ return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
4174
4177
  }
4175
- ), Oi = we(
4178
+ ), Ni = He(
4176
4179
  (e) => {
4177
- var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
4180
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4178
4181
  if (r == null)
4179
4182
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4180
- return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
4183
+ return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
4181
4184
  }
4182
- ), Ii = we(
4185
+ ), Ii = He(
4183
4186
  (e) => {
4184
- var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
4187
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4185
4188
  if (r == null)
4186
4189
  throw new Error(
4187
4190
  '[svelte-i18n] A "locale" must be set to format time values'
4188
4191
  );
4189
- return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
4192
+ return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
4190
4193
  }
4191
- ), Ni = (e = {}) => {
4194
+ ), Li = (e = {}) => {
4192
4195
  var t = e, {
4193
- locale: r = U()
4194
- } = t, n = q(t, [
4196
+ locale: r = F()
4197
+ } = t, n = K(t, [
4195
4198
  "locale"
4196
4199
  ]);
4197
- return Pi(tt({ locale: r }, n));
4198
- }, Li = (e = {}) => {
4200
+ return Oi(tt({ locale: r }, n));
4201
+ }, Ci = (e = {}) => {
4199
4202
  var t = e, {
4200
- locale: r = U()
4201
- } = t, n = q(t, [
4203
+ locale: r = F()
4204
+ } = t, n = K(t, [
4202
4205
  "locale"
4203
4206
  ]);
4204
- return Oi(tt({ locale: r }, n));
4205
- }, Ci = (e = {}) => {
4207
+ return Ni(tt({ locale: r }, n));
4208
+ }, Mi = (e = {}) => {
4206
4209
  var t = e, {
4207
- locale: r = U()
4208
- } = t, n = q(t, [
4210
+ locale: r = F()
4211
+ } = t, n = K(t, [
4209
4212
  "locale"
4210
4213
  ]);
4211
4214
  return Ii(tt({ locale: r }, n));
4212
- }, Mi = we(
4215
+ }, $i = He(
4213
4216
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4214
- (e, t = U()) => new ui(e, t, z().formats, {
4215
- ignoreTag: z().ignoreTag
4217
+ (e, t = F()) => new hi(e, t, J().formats, {
4218
+ ignoreTag: J().ignoreTag
4216
4219
  })
4217
- ), $i = (e, t = {}) => {
4220
+ ), Ri = (e, t = {}) => {
4218
4221
  var r, n, i, o;
4219
4222
  let s = t;
4220
4223
  typeof e == "object" && (s = e, e = s.id);
4221
4224
  const {
4222
4225
  values: a,
4223
- locale: h = U(),
4226
+ locale: h = F(),
4224
4227
  default: u
4225
4228
  } = s;
4226
4229
  if (h == null)
@@ -4229,7 +4232,7 @@ const ne = (e, t) => {
4229
4232
  );
4230
4233
  let l = sr(e, h);
4231
4234
  if (!l)
4232
- l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4235
+ l = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4233
4236
  else if (typeof l != "string")
4234
4237
  return console.warn(
4235
4238
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -4238,7 +4241,7 @@ const ne = (e, t) => {
4238
4241
  return l;
4239
4242
  let c = l;
4240
4243
  try {
4241
- c = Mi(l, h).format(a);
4244
+ c = $i(l, h).format(a);
4242
4245
  } catch (f) {
4243
4246
  f instanceof Error && console.warn(
4244
4247
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4246,45 +4249,46 @@ const ne = (e, t) => {
4246
4249
  );
4247
4250
  }
4248
4251
  return c;
4249
- }, Ri = (e, t) => Ci(t).format(e), Gi = (e, t) => Li(t).format(e), Ui = (e, t) => Ni(t).format(e), Di = (e, t = U()) => sr(e, t), Fi = Q([R, J], () => $i);
4250
- Q([R], () => Ri);
4251
- Q([R], () => Gi);
4252
- Q([R], () => Ui);
4253
- Q([R, J], () => Di);
4254
- window.emWidgets = { topic: Yr };
4255
- const ji = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4256
- function ki({ withLocale: e, translations: t }) {
4252
+ }, Gi = (e, t) => Mi(t).format(e), Ui = (e, t) => Ci(t).format(e), Di = (e, t) => Li(t).format(e), Fi = (e, t = F()) => sr(e, t), ji = q([R, Y], () => Ri);
4253
+ q([R], () => Gi);
4254
+ q([R], () => Ui);
4255
+ q([R], () => Di);
4256
+ q([R, Y], () => Fi);
4257
+ window.emWidgets = { topic: Kr };
4258
+ const ki = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4259
+ function Vi({ withLocale: e, translations: t }) {
4257
4260
  R.subscribe((r) => {
4258
- r == null && (J.set(t), R.set(e));
4261
+ r == null && (Y.set(t), R.set(e));
4259
4262
  });
4260
4263
  }
4261
- function Ht(e, t) {
4264
+ function wt(e, t) {
4262
4265
  ur(e, t);
4263
4266
  }
4264
- function Vi(e) {
4267
+ function Xi(e) {
4265
4268
  R.set(e);
4266
4269
  }
4267
- const Bt = {
4270
+ const Ht = {
4268
4271
  en: {
4269
4272
  loading: "Loading, please wait ...",
4270
4273
  playNow: "Play Now",
4271
4274
  casino: "CASINO",
4272
4275
  sports: "SPORTSBOOK",
4273
- contribution: "Contribution"
4276
+ contribution: "Contribution",
4277
+ noGamesAvailable: "No games have been configured yet!"
4274
4278
  }
4275
4279
  };
4276
- function Xi(e) {
4277
- dr(e, "svelte-1wi4vit", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .SportsPage{padding:30px 30px;color:var(--emw--color-gray-100, #B5B5B5)}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}");
4280
+ function Wi(e) {
4281
+ dr(e, "svelte-grpqez", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .NoGames,.GamesWrapper .SportsPage{color:var(--emw--color-gray-100, #B5B5B5);font-size:var(--emw--font-size-small, 12px);padding:30px 30px}.GamesWrapper .NoGames{margin-top:var(--emw--spacing-medium, 20px)}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}");
4278
4282
  }
4279
4283
  function At(e, t, r) {
4280
4284
  const n = e.slice();
4281
4285
  return n[20] = t[r], n;
4282
4286
  }
4283
- function Pt(e, t, r) {
4287
+ function Bt(e, t, r) {
4284
4288
  const n = e.slice();
4285
4289
  return n[20] = t[r], n;
4286
4290
  }
4287
- function Ot(e) {
4291
+ function Pt(e) {
4288
4292
  let t, r;
4289
4293
  return {
4290
4294
  c() {
@@ -4306,7 +4310,7 @@ function Ot(e) {
4306
4310
  ), H(t, "class", "GamesTabNav");
4307
4311
  },
4308
4312
  m(n, i) {
4309
- oe(n, t, i), B(t, r);
4313
+ D(n, t, i), A(t, r);
4310
4314
  },
4311
4315
  p(n, i) {
4312
4316
  i & /*clientstyling*/
@@ -4330,25 +4334,87 @@ function Ot(e) {
4330
4334
  );
4331
4335
  },
4332
4336
  d(n) {
4333
- n && Z(t);
4337
+ n && G(t);
4334
4338
  }
4335
4339
  };
4336
4340
  }
4337
- function It(e) {
4341
+ function zi(e) {
4342
+ let t, r = (
4343
+ /*$_*/
4344
+ e[8]("noGamesAvailable") + ""
4345
+ ), n;
4346
+ return {
4347
+ c() {
4348
+ t = P("div"), n = W(r), H(t, "class", "NoGames");
4349
+ },
4350
+ m(i, o) {
4351
+ D(i, t, o), A(t, n);
4352
+ },
4353
+ p(i, o) {
4354
+ o & /*$_*/
4355
+ 256 && r !== (r = /*$_*/
4356
+ i[8]("noGamesAvailable") + "") && de(n, r);
4357
+ },
4358
+ d(i) {
4359
+ i && G(t);
4360
+ }
4361
+ };
4362
+ }
4363
+ function Zi(e) {
4364
+ let t, r = be(
4365
+ /*casinoGames*/
4366
+ e[7]
4367
+ ), n = [];
4368
+ for (let i = 0; i < r.length; i += 1)
4369
+ n[i] = Ot(Bt(e, r, i));
4370
+ return {
4371
+ c() {
4372
+ for (let i = 0; i < n.length; i += 1)
4373
+ n[i].c();
4374
+ t = yr();
4375
+ },
4376
+ m(i, o) {
4377
+ for (let s = 0; s < n.length; s += 1)
4378
+ n[s] && n[s].m(i, o);
4379
+ D(i, t, o);
4380
+ },
4381
+ p(i, o) {
4382
+ if (o & /*gameClicked, casinoGames, $_*/
4383
+ 1408) {
4384
+ r = be(
4385
+ /*casinoGames*/
4386
+ i[7]
4387
+ );
4388
+ let s;
4389
+ for (s = 0; s < r.length; s += 1) {
4390
+ const a = Bt(i, r, s);
4391
+ n[s] ? n[s].p(a, o) : (n[s] = Ot(a), n[s].c(), n[s].m(t.parentNode, t));
4392
+ }
4393
+ for (; s < n.length; s += 1)
4394
+ n[s].d(1);
4395
+ n.length = r.length;
4396
+ }
4397
+ },
4398
+ d(i) {
4399
+ i && G(t), Mt(n, i);
4400
+ }
4401
+ };
4402
+ }
4403
+ function Ot(e) {
4338
4404
  let t, r, n = (
4339
4405
  /*$_*/
4340
4406
  e[8]("playNow") + ""
4341
4407
  ), i, o, s, a, h, u, l, c, f;
4342
4408
  return {
4343
4409
  c() {
4344
- t = P("div"), r = P("span"), i = de(n), o = ee(), s = P("ui-image"), l = ee(), H(r, "class", "PlayNowButton"), nt(s.src, a = /*item*/
4410
+ t = P("div"), r = P("span"), i = W(n), o = re(), s = P("ui-image"), l = re(), H(r, "class", "PlayNowButton"), nt(s.src, a = /*item*/
4345
4411
  e[20].thumbnail) || w(s, "src", a), w(s, "width", "132px"), w(s, "height", "100px"), w(s, "alt", h = /*item*/
4346
4412
  e[20].name), w(s, "title", u = /*item*/
4347
4413
  e[20].name), H(t, "class", "item"), H(t, "role", "button"), H(t, "tabindex", "0");
4348
4414
  },
4349
- m(p, m) {
4350
- oe(p, t, m), B(t, r), B(r, i), B(t, o), B(t, s), B(t, l), c || (f = yr(t, "click", function() {
4351
- ve(
4415
+ m(d, p) {
4416
+ D(d, t, p), A(t, r), A(r, i), A(t, o), A(t, s), A(t, l), c || (f = vr(t, "click", function() {
4417
+ _e(
4352
4418
  /*gameClicked*/
4353
4419
  e[10](
4354
4420
  /*item*/
@@ -4360,19 +4426,19 @@ function It(e) {
4360
4426
  ).apply(this, arguments);
4361
4427
  }), c = !0);
4362
4428
  },
4363
- p(p, m) {
4364
- e = p, m & /*$_*/
4429
+ p(d, p) {
4430
+ e = d, p & /*$_*/
4365
4431
  256 && n !== (n = /*$_*/
4366
- e[8]("playNow") + "") && Ce(i, n), m & /*casinoGames*/
4432
+ e[8]("playNow") + "") && de(i, n), p & /*casinoGames*/
4367
4433
  128 && !nt(s.src, a = /*item*/
4368
- e[20].thumbnail) && w(s, "src", a), m & /*casinoGames*/
4434
+ e[20].thumbnail) && w(s, "src", a), p & /*casinoGames*/
4369
4435
  128 && h !== (h = /*item*/
4370
- e[20].name) && w(s, "alt", h), m & /*casinoGames*/
4436
+ e[20].name) && w(s, "alt", h), p & /*casinoGames*/
4371
4437
  128 && u !== (u = /*item*/
4372
4438
  e[20].name) && w(s, "title", u);
4373
4439
  },
4374
- d(p) {
4375
- p && Z(t), c = !1, f();
4440
+ d(d) {
4441
+ d && G(t), c = !1, f();
4376
4442
  }
4377
4443
  };
4378
4444
  }
@@ -4386,138 +4452,118 @@ function Nt(e) {
4386
4452
  ), s;
4387
4453
  return {
4388
4454
  c() {
4389
- t = P("li"), n = de(r), i = ee(), s = de(o), H(t, "part", "li"), H(t, "class", "Market");
4455
+ t = P("li"), n = W(r), i = re(), s = W(o), H(t, "part", "li"), H(t, "class", "Market");
4390
4456
  },
4391
4457
  m(a, h) {
4392
- oe(a, t, h), B(t, n), B(t, i), B(t, s);
4458
+ D(a, t, h), A(t, n), A(t, i), A(t, s);
4393
4459
  },
4394
4460
  p(a, h) {
4395
4461
  h & /*sportsRules*/
4396
4462
  64 && r !== (r = /*item*/
4397
- a[20].rule + "") && Ce(n, r), h & /*$_*/
4463
+ a[20].rule + "") && de(n, r), h & /*$_*/
4398
4464
  256 && o !== (o = /*$_*/
4399
- a[8]("contribution") + "") && Ce(s, o);
4465
+ a[8]("contribution") + "") && de(s, o);
4400
4466
  },
4401
4467
  d(a) {
4402
- a && Z(t);
4468
+ a && G(t);
4403
4469
  }
4404
4470
  };
4405
4471
  }
4406
- function Wi(e) {
4472
+ function Qi(e) {
4407
4473
  let t, r, n, i, o, s, a, h, u, l, c = (
4408
4474
  /*tournamentdetails*/
4409
4475
  e[3] && /*tournamentdetails*/
4410
4476
  e[3].wallet?.sports && /*tournamentdetails*/
4411
- e[3].wallet?.casino && Ot(e)
4412
- ), f = ue(
4413
- /*casinoGames*/
4414
- e[7]
4415
- ), p = [];
4416
- for (let d = 0; d < f.length; d += 1)
4417
- p[d] = It(Pt(e, f, d));
4418
- let m = ue(
4477
+ e[3].wallet?.casino && Pt(e)
4478
+ );
4479
+ function f(b, T) {
4480
+ return (
4481
+ /*casinoGames*/
4482
+ b[7]?.length ? Zi : zi
4483
+ );
4484
+ }
4485
+ let d = f(e), p = d(e), g = be(
4419
4486
  /*sportsRules*/
4420
4487
  e[6]
4421
- ), g = [];
4422
- for (let d = 0; d < m.length; d += 1)
4423
- g[d] = Nt(At(e, m, d));
4488
+ ), E = [];
4489
+ for (let b = 0; b < g.length; b += 1)
4490
+ E[b] = Nt(At(e, g, b));
4424
4491
  return {
4425
4492
  c() {
4426
- t = P("div"), c && c.c(), r = ee(), n = P("div"), i = P("div"), o = P("div");
4427
- for (let d = 0; d < p.length; d += 1)
4428
- p[d].c();
4429
- a = ee(), h = P("div"), u = P("ul");
4430
- for (let d = 0; d < g.length; d += 1)
4431
- g[d].c();
4493
+ t = P("div"), c && c.c(), r = re(), n = P("div"), i = P("div"), o = P("div"), p.c(), a = re(), h = P("div"), u = P("ul");
4494
+ for (let b = 0; b < E.length; b += 1)
4495
+ E[b].c();
4432
4496
  H(o, "class", "GameList items"), H(i, "class", s = "TabContent GamesContent " + /*activeTab*/
4433
4497
  (e[5] != "casino" ? "hidden" : "")), H(u, "class", "SportsPage"), H(h, "class", l = "TabContent GamesContent " + /*activeTab*/
4434
- (e[5] != "sports" ? "hidden" : "")), H(n, "class", "GamesWrapper"), H(t, "class", ji(
4498
+ (e[5] != "sports" ? "hidden" : "")), H(n, "class", "GamesWrapper"), H(t, "class", ki(
4435
4499
  /*userAgent*/
4436
4500
  e[9]
4437
4501
  ) ? "MobileClass" : "");
4438
4502
  },
4439
- m(d, T) {
4440
- oe(d, t, T), c && c.m(t, null), B(t, r), B(t, n), B(n, i), B(i, o);
4441
- for (let y = 0; y < p.length; y += 1)
4442
- p[y] && p[y].m(o, null);
4443
- B(n, a), B(n, h), B(h, u);
4444
- for (let y = 0; y < g.length; y += 1)
4445
- g[y] && g[y].m(u, null);
4503
+ m(b, T) {
4504
+ D(b, t, T), c && c.m(t, null), A(t, r), A(t, n), A(n, i), A(i, o), p.m(o, null), A(n, a), A(n, h), A(h, u);
4505
+ for (let _ = 0; _ < E.length; _ += 1)
4506
+ E[_] && E[_].m(u, null);
4446
4507
  e[13](t);
4447
4508
  },
4448
- p(d, [T]) {
4509
+ p(b, [T]) {
4449
4510
  if (/*tournamentdetails*/
4450
- d[3] && /*tournamentdetails*/
4451
- d[3].wallet?.sports && /*tournamentdetails*/
4452
- d[3].wallet?.casino ? c ? c.p(d, T) : (c = Ot(d), c.c(), c.m(t, r)) : c && (c.d(1), c = null), T & /*gameClicked, casinoGames, $_*/
4453
- 1408) {
4454
- f = ue(
4455
- /*casinoGames*/
4456
- d[7]
4457
- );
4458
- let y;
4459
- for (y = 0; y < f.length; y += 1) {
4460
- const S = Pt(d, f, y);
4461
- p[y] ? p[y].p(S, T) : (p[y] = It(S), p[y].c(), p[y].m(o, null));
4462
- }
4463
- for (; y < p.length; y += 1)
4464
- p[y].d(1);
4465
- p.length = f.length;
4466
- }
4467
- if (T & /*activeTab*/
4511
+ b[3] && /*tournamentdetails*/
4512
+ b[3].wallet?.sports && /*tournamentdetails*/
4513
+ b[3].wallet?.casino ? c ? c.p(b, T) : (c = Pt(b), c.c(), c.m(t, r)) : c && (c.d(1), c = null), d === (d = f(b)) && p ? p.p(b, T) : (p.d(1), p = d(b), p && (p.c(), p.m(o, null))), T & /*activeTab*/
4468
4514
  32 && s !== (s = "TabContent GamesContent " + /*activeTab*/
4469
- (d[5] != "casino" ? "hidden" : "")) && H(i, "class", s), T & /*$_, sportsRules*/
4515
+ (b[5] != "casino" ? "hidden" : "")) && H(i, "class", s), T & /*$_, sportsRules*/
4470
4516
  320) {
4471
- m = ue(
4517
+ g = be(
4472
4518
  /*sportsRules*/
4473
- d[6]
4519
+ b[6]
4474
4520
  );
4475
- let y;
4476
- for (y = 0; y < m.length; y += 1) {
4477
- const S = At(d, m, y);
4478
- g[y] ? g[y].p(S, T) : (g[y] = Nt(S), g[y].c(), g[y].m(u, null));
4521
+ let _;
4522
+ for (_ = 0; _ < g.length; _ += 1) {
4523
+ const N = At(b, g, _);
4524
+ E[_] ? E[_].p(N, T) : (E[_] = Nt(N), E[_].c(), E[_].m(u, null));
4479
4525
  }
4480
- for (; y < g.length; y += 1)
4481
- g[y].d(1);
4482
- g.length = m.length;
4526
+ for (; _ < E.length; _ += 1)
4527
+ E[_].d(1);
4528
+ E.length = g.length;
4483
4529
  }
4484
4530
  T & /*activeTab*/
4485
4531
  32 && l !== (l = "TabContent GamesContent " + /*activeTab*/
4486
- (d[5] != "sports" ? "hidden" : "")) && H(h, "class", l);
4532
+ (b[5] != "sports" ? "hidden" : "")) && H(h, "class", l);
4487
4533
  },
4488
4534
  i: I,
4489
4535
  o: I,
4490
- d(d) {
4491
- d && Z(t), c && c.d(), it(p, d), it(g, d), e[13](null);
4536
+ d(b) {
4537
+ b && G(t), c && c.d(), p.d(), Mt(E, b), e[13](null);
4492
4538
  }
4493
4539
  };
4494
4540
  }
4495
4541
  let Ke = "gameTab";
4496
- function zi(e, t, r) {
4542
+ function Ji(e, t, r) {
4497
4543
  let n;
4498
- mr(e, Fi, (b) => r(8, n = b));
4499
- let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: h = "en" } = t, u = "casino", l = [], c = [], f, p = window.navigator.userAgent, m;
4500
- ki({ withLocale: "en", translations: {} });
4544
+ mr(e, ji, (m) => r(8, n = m));
4545
+ let { clientstyling: i = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: s } = t, { translationurl: a } = t, { lang: h = "en" } = t, u = "casino", l = [], c = [], f, d = window.navigator.userAgent, p;
4546
+ Vi({ withLocale: "en", translations: {} });
4501
4547
  const g = () => {
4502
- fetch(a).then((b) => b.json()).then((b) => {
4503
- Object.keys(b).forEach((O) => {
4504
- Ht(O, b[O]);
4548
+ fetch(a).then((m) => m.json()).then((m) => {
4549
+ Object.keys(m).forEach((O) => {
4550
+ wt(O, m[O]);
4505
4551
  });
4506
- }).catch((b) => {
4507
- console.log(b);
4552
+ }).catch((m) => {
4553
+ console.log(m);
4508
4554
  });
4509
4555
  };
4510
- Object.keys(Bt).forEach((b) => {
4511
- Ht(b, Bt[b]);
4556
+ Object.keys(Ht).forEach((m) => {
4557
+ wt(m, Ht[m]);
4512
4558
  });
4513
- const d = () => {
4514
- Vi(h), setTimeout(
4559
+ const E = () => {
4560
+ Xi(h), setTimeout(
4515
4561
  () => {
4516
- T();
4562
+ b();
4517
4563
  },
4518
4564
  10
4519
4565
  );
4520
- }, T = () => {
4566
+ }, b = () => {
4521
4567
  window.postMessage(
4522
4568
  {
4523
4569
  type: "TournamentsTabsLocalize",
@@ -4528,96 +4574,96 @@ function zi(e, t, r) {
4528
4574
  },
4529
4575
  window.location.href
4530
4576
  );
4531
- }, y = (b) => {
4577
+ }, T = (m) => {
4532
4578
  window.postMessage(
4533
4579
  {
4534
4580
  type: "TournamentGameAction",
4535
- gameId: b.id,
4536
- name: b.name,
4537
- launchUrl: b.launchUrl
4581
+ gameId: m.id,
4582
+ name: m.name,
4583
+ launchUrl: m.launchUrl
4538
4584
  },
4539
4585
  window.location.href
4540
4586
  );
4541
- }, S = () => {
4587
+ }, _ = () => {
4542
4588
  r(7, c = f.games?.items || []);
4543
- const b = f.metadata?.sports?.rules;
4544
- if (b) {
4589
+ const m = f.metadata?.sports?.rules;
4590
+ if (m) {
4545
4591
  r(5, u = f.wallet.casino ? "casino" : "sports");
4546
4592
  try {
4547
- const O = JSON.parse(b);
4593
+ const O = JSON.parse(m);
4548
4594
  r(6, l = O[h] || O["*"]);
4549
4595
  } catch (O) {
4550
4596
  console.error("Error parsing tournament rules", O);
4551
4597
  }
4552
4598
  }
4553
- }, M = (b) => {
4554
- if (!b.data || !b.data.type)
4599
+ }, N = (m) => {
4600
+ if (!m.data || !m.data.type)
4555
4601
  return;
4556
- const O = b.data.tid || "";
4557
- switch (b.data.type) {
4602
+ const O = m.data.tid || "";
4603
+ switch (m.data.type) {
4558
4604
  case "TournamentsTabSwitch":
4559
- O === Ke && r(5, u = b.data.tab);
4605
+ O === Ke && r(5, u = m.data.tab);
4560
4606
  break;
4561
4607
  case "TournamentsTabListenerLoaded":
4562
- T();
4608
+ b();
4563
4609
  break;
4564
4610
  case "TournamentsGamesUpdate":
4565
- r(3, f = b.data.details), S();
4611
+ r(3, f = m.data.details), _();
4566
4612
  break;
4567
4613
  default:
4568
- console.warn(`Unhandled message type: ${b.data.type}`);
4614
+ console.warn(`Unhandled message type: ${m.data.type}`);
4569
4615
  break;
4570
4616
  }
4571
4617
  };
4572
- xr(() => (window.postMessage(
4618
+ Sr(() => (window.postMessage(
4573
4619
  {
4574
4620
  type: "TournamentsGamesListenerLoaded",
4575
4621
  gamesTabTid: Ke
4576
4622
  },
4577
4623
  window.location.href
4578
- ), window.addEventListener("message", M, !1), () => {
4579
- window.removeEventListener("message", M);
4624
+ ), window.addEventListener("message", N, !1), () => {
4625
+ window.removeEventListener("message", N);
4580
4626
  }));
4581
- function L(b) {
4582
- Me[b ? "unshift" : "push"](() => {
4583
- m = b, r(4, m);
4627
+ function C(m) {
4628
+ Me[m ? "unshift" : "push"](() => {
4629
+ p = m, r(4, p);
4584
4630
  });
4585
4631
  }
4586
- return e.$$set = (b) => {
4587
- "clientstyling" in b && r(0, i = b.clientstyling), "clientstylingurl" in b && r(1, o = b.clientstylingurl), "mbsource" in b && r(2, s = b.mbsource), "translationurl" in b && r(11, a = b.translationurl), "lang" in b && r(12, h = b.lang);
4632
+ return e.$$set = (m) => {
4633
+ "clientstyling" in m && r(0, i = m.clientstyling), "clientstylingurl" in m && r(1, o = m.clientstylingurl), "mbsource" in m && r(2, s = m.mbsource), "translationurl" in m && r(11, a = m.translationurl), "lang" in m && r(12, h = m.lang);
4588
4634
  }, e.$$.update = () => {
4589
4635
  e.$$.dirty & /*tournamentdetails*/
4590
- 8 && f && S(), e.$$.dirty & /*lang*/
4591
- 4096 && h && d(), e.$$.dirty & /*translationurl*/
4636
+ 8 && f && _(), e.$$.dirty & /*lang*/
4637
+ 4096 && h && E(), e.$$.dirty & /*translationurl*/
4592
4638
  2048 && a && g(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4593
- 17 && i && m && $r(m, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4594
- 18 && o && m && Rr(m, o), e.$$.dirty & /*mbsource, customStylingContainer*/
4595
- 20 && s && m && Gr(m, `${s}.Style`);
4639
+ 17 && i && p && Rr(p, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4640
+ 18 && o && p && Gr(p, o), e.$$.dirty & /*mbsource, customStylingContainer*/
4641
+ 20 && s && p && Ur(p, `${s}.Style`);
4596
4642
  }, [
4597
4643
  i,
4598
4644
  o,
4599
4645
  s,
4600
4646
  f,
4601
- m,
4647
+ p,
4602
4648
  u,
4603
4649
  l,
4604
4650
  c,
4605
4651
  n,
4606
- p,
4607
- y,
4652
+ d,
4653
+ T,
4608
4654
  a,
4609
4655
  h,
4610
- L
4656
+ C
4611
4657
  ];
4612
4658
  }
4613
- class Zi extends Cr {
4659
+ class qi extends Mr {
4614
4660
  constructor(t) {
4615
- super(), Nr(
4661
+ super(), Lr(
4616
4662
  this,
4617
4663
  t,
4618
- zi,
4619
- Wi,
4620
- Ct,
4664
+ Ji,
4665
+ Qi,
4666
+ Lt,
4621
4667
  {
4622
4668
  clientstyling: 0,
4623
4669
  clientstylingurl: 1,
@@ -4625,41 +4671,41 @@ class Zi extends Cr {
4625
4671
  translationurl: 11,
4626
4672
  lang: 12
4627
4673
  },
4628
- Xi
4674
+ Wi
4629
4675
  );
4630
4676
  }
4631
4677
  get clientstyling() {
4632
4678
  return this.$$.ctx[0];
4633
4679
  }
4634
4680
  set clientstyling(t) {
4635
- this.$$set({ clientstyling: t }), G();
4681
+ this.$$set({ clientstyling: t }), U();
4636
4682
  }
4637
4683
  get clientstylingurl() {
4638
4684
  return this.$$.ctx[1];
4639
4685
  }
4640
4686
  set clientstylingurl(t) {
4641
- this.$$set({ clientstylingurl: t }), G();
4687
+ this.$$set({ clientstylingurl: t }), U();
4642
4688
  }
4643
4689
  get mbsource() {
4644
4690
  return this.$$.ctx[2];
4645
4691
  }
4646
4692
  set mbsource(t) {
4647
- this.$$set({ mbsource: t }), G();
4693
+ this.$$set({ mbsource: t }), U();
4648
4694
  }
4649
4695
  get translationurl() {
4650
4696
  return this.$$.ctx[11];
4651
4697
  }
4652
4698
  set translationurl(t) {
4653
- this.$$set({ translationurl: t }), G();
4699
+ this.$$set({ translationurl: t }), U();
4654
4700
  }
4655
4701
  get lang() {
4656
4702
  return this.$$.ctx[12];
4657
4703
  }
4658
4704
  set lang(t) {
4659
- this.$$set({ lang: t }), G();
4705
+ this.$$set({ lang: t }), U();
4660
4706
  }
4661
4707
  }
4662
- Lr(Zi, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
4708
+ Cr(qi, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, lang: {} }, [], [], !0);
4663
4709
  export {
4664
- Zi as C
4710
+ qi as C
4665
4711
  };