@everymatrix/casino-tournaments-controller 1.67.3 → 1.69.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.
Files changed (65) hide show
  1. package/components/CasinoTournamentsController-C99E3MCm.cjs +27 -0
  2. package/components/{CasinoTournamentsController-7AKjDr-2.js → CasinoTournamentsController-CtQ0SbZ1.js} +1411 -1336
  3. package/components/{CasinoTournamentsController-CVqp7a_8.js → CasinoTournamentsController-Dv0w6uxv.js} +1503 -1428
  4. package/components/CasinoTournamentsFilterController-CA_x2Klb.js +531 -0
  5. package/components/CasinoTournamentsFilterController-D8z30hIO.cjs +1 -0
  6. package/components/{CasinoTournamentsFilterController-DgpPT6gm.js → CasinoTournamentsFilterController-ZPodzMjS.js} +170 -175
  7. package/components/{CasinoTournamentsListController-DMd3vYND.js → CasinoTournamentsListController-BYjVebPq.js} +960 -958
  8. package/components/CasinoTournamentsListController-CMsPWeSH.cjs +13 -0
  9. package/components/{CasinoTournamentsListController-oZgCph3g.js → CasinoTournamentsListController-CWtG_Kjm.js} +960 -958
  10. package/components/{CasinoTournamentsThumbnail-BJ9-GP8X.js → CasinoTournamentsThumbnail-DIFGhQrc.js} +180 -188
  11. package/components/{CasinoTournamentsThumbnail-O3FpkA6K.js → CasinoTournamentsThumbnail-Dtfyse7r.js} +180 -188
  12. package/components/{CasinoTournamentsThumbnail-BfhLke2H.cjs → CasinoTournamentsThumbnail-zXFGDGG1.cjs} +2 -2
  13. package/components/CasinoTournamentsThumbnailController-Cjehrx7D.cjs +1 -0
  14. package/components/{CasinoTournamentsThumbnailController-8tUPae_-.js → CasinoTournamentsThumbnailController-DChZllZ4.js} +467 -431
  15. package/components/{CasinoTournamentsThumbnailController-zdo20CEm.js → CasinoTournamentsThumbnailController-cPtKiglf.js} +396 -360
  16. package/components/{CasinoTournamentsThumbnailDuration-CMlv4ox4.js → CasinoTournamentsThumbnailDuration-CRqfmGfU.js} +155 -161
  17. package/components/{CasinoTournamentsThumbnailDuration-QeZBsYjk.js → CasinoTournamentsThumbnailDuration-DFTngt18.js} +154 -160
  18. package/components/CasinoTournamentsThumbnailDuration-kjnnyoM_.cjs +1 -0
  19. package/components/CasinoTournamentsThumbnailGamesSlider-CrfM0zwZ.js +434 -0
  20. package/components/CasinoTournamentsThumbnailGamesSlider-K4TlIiKZ.cjs +1 -0
  21. package/components/CasinoTournamentsThumbnailGamesSlider-cZ5Ks8Mw.js +434 -0
  22. package/components/CasinoTournamentsThumbnailPrizes-Ba3SYovQ.js +307 -0
  23. package/components/CasinoTournamentsThumbnailPrizes-C1nsvr3R.js +307 -0
  24. package/components/CasinoTournamentsThumbnailPrizes-DnyppL-K.cjs +1 -0
  25. package/es2015/casino-tournaments-controller.cjs +1 -1
  26. package/es2015/casino-tournaments-controller.js +1 -1
  27. package/esnext/casino-tournaments-controller.js +1 -1
  28. package/package.json +1 -1
  29. package/stencil/{index-97d17652-ChRvzjAp.js → index-97d17652-BEnqZAxL.js} +186 -186
  30. package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
  31. package/stencil/{index-97d17652-DKsTmN3Z.js → index-97d17652-WK_DbPS4.js} +175 -175
  32. package/stencil/index-b2193545-BOMvxBzV.js +519 -0
  33. package/stencil/index-b2193545-CFn9dM-v.js +503 -0
  34. package/stencil/index-b2193545-DPygl1Qn.cjs +1 -0
  35. package/stencil/{ui-image-ClXqMGwp.js → ui-image-3hy4ZvUC.js} +1 -1
  36. package/stencil/{ui-image-YphrYZtA.js → ui-image-D0wxuPze.js} +1 -1
  37. package/stencil/{ui-image-Db5QCSmt.cjs → ui-image-DE8MJHCZ.cjs} +1 -1
  38. package/stencil/{ui-image-b7b48fe5-B43lELFk.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +1 -1
  39. package/stencil/{ui-image-b7b48fe5-CRQDt62Z.cjs → ui-image-b7b48fe5-DCck2kk1.cjs} +1 -1
  40. package/stencil/{ui-image-b7b48fe5-DVcK_myk.js → ui-image-b7b48fe5-V9vp4faA.js} +1 -1
  41. package/stencil/{ui-image_2-Df0q0jE8.js → ui-image_2-B56t6kXT.js} +2 -2
  42. package/stencil/{ui-image_2-EP2dwjfi.js → ui-image_2-BncuYpLi.js} +2 -2
  43. package/stencil/{ui-image_2-CyHaM9Na.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
  44. package/stencil/{ui-skeleton-1cb75d00-bf7NJcVF.js → ui-skeleton-1cb75d00-B-R8GbLJ.js} +1 -1
  45. package/stencil/{ui-skeleton-1cb75d00-nmwFu55Y.cjs → ui-skeleton-1cb75d00-BTnhspbc.cjs} +1 -1
  46. package/stencil/{ui-skeleton-1cb75d00-U47XWOV2.js → ui-skeleton-1cb75d00-Dy30RNE6.js} +1 -1
  47. package/stencil/{ui-skeleton-DSlZCsjK.js → ui-skeleton-CVBjRUvi.js} +2 -2
  48. package/stencil/{ui-skeleton-P9Vv-0Vy.js → ui-skeleton-RkXNxPG1.js} +2 -2
  49. package/stencil/{ui-skeleton-DXCQ8Yoq.cjs → ui-skeleton-se83zfWh.cjs} +1 -1
  50. package/components/CasinoTournamentsController-Coh7cPDO.cjs +0 -27
  51. package/components/CasinoTournamentsFilterController-BsmnMKtv.cjs +0 -1
  52. package/components/CasinoTournamentsFilterController-rPR6a4OA.js +0 -536
  53. package/components/CasinoTournamentsListController-zT0eUIB7.cjs +0 -13
  54. package/components/CasinoTournamentsThumbnailController-BEMM0P7L.cjs +0 -1
  55. package/components/CasinoTournamentsThumbnailDuration-C9R9OaYe.cjs +0 -1
  56. package/components/CasinoTournamentsThumbnailGamesSlider-DC9AU0N8.js +0 -442
  57. package/components/CasinoTournamentsThumbnailGamesSlider-KexMuwyu.js +0 -442
  58. package/components/CasinoTournamentsThumbnailGamesSlider-O0SVU50O.cjs +0 -1
  59. package/components/CasinoTournamentsThumbnailPrizes-B4Am-AyF.js +0 -315
  60. package/components/CasinoTournamentsThumbnailPrizes-DuHPFshm.js +0 -315
  61. package/components/CasinoTournamentsThumbnailPrizes-DwsTRQPD.cjs +0 -1
  62. package/stencil/index-97d17652-qWThG1U9.cjs +0 -1
  63. package/stencil/index-b2193545-C1ayEiG4.js +0 -503
  64. package/stencil/index-b2193545-CyidmLE0.cjs +0 -1
  65. package/stencil/index-b2193545-s3PsNboB.js +0 -519
@@ -1,53 +1,53 @@
1
- function fe() {
1
+ function he() {
2
2
  }
3
- function Fr(e) {
3
+ function $r(e) {
4
4
  return e();
5
5
  }
6
- function fr() {
6
+ function mr() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function ut(e) {
10
- e.forEach(Fr);
10
+ e.forEach($r);
11
11
  }
12
- function wt(e) {
12
+ function St(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Ur(e, t) {
15
+ function kr(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- let dt;
19
- function ls(e, t) {
20
- return e === t ? !0 : (dt || (dt = document.createElement("a")), dt.href = t, e === dt.href);
18
+ let pt;
19
+ function bs(e, t) {
20
+ return e === t ? !0 : (pt || (pt = document.createElement("a")), pt.href = t, e === pt.href);
21
21
  }
22
- function _n(e) {
22
+ function Sn(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function Gr(e, ...t) {
25
+ function Vr(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
29
- return fe;
29
+ return he;
30
30
  }
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function xn(e, t, r) {
35
- e.$$.on_destroy.push(Gr(t, r));
34
+ function An(e, t, r) {
35
+ e.$$.on_destroy.push(Vr(t, r));
36
36
  }
37
- function hs(e) {
38
- return e && wt(e.destroy) ? e.destroy : fe;
37
+ function gs(e) {
38
+ return e && St(e.destroy) ? e.destroy : he;
39
39
  }
40
- function re(e, t) {
40
+ function te(e, t) {
41
41
  e.appendChild(t);
42
42
  }
43
- function wn(e, t, r) {
44
- const n = Tn(e);
43
+ function Hn(e, t, r) {
44
+ const n = Pn(e);
45
45
  if (!n.getElementById(t)) {
46
- const i = z("style");
47
- i.id = t, i.textContent = r, Sn(n, i);
46
+ const i = X("style");
47
+ i.id = t, i.textContent = r, Bn(n, i);
48
48
  }
49
49
  }
50
- function Tn(e) {
50
+ function Pn(e) {
51
51
  if (!e)
52
52
  return document;
53
53
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -57,60 +57,60 @@ function Tn(e) {
57
57
  t
58
58
  ) : e.ownerDocument;
59
59
  }
60
- function Sn(e, t) {
61
- return re(
60
+ function Bn(e, t) {
61
+ return te(
62
62
  /** @type {Document} */
63
63
  e.head || e,
64
64
  t
65
65
  ), t.sheet;
66
66
  }
67
- function ce(e, t, r) {
67
+ function fe(e, t, r) {
68
68
  e.insertBefore(t, r || null);
69
69
  }
70
- function ne(e) {
70
+ function re(e) {
71
71
  e.parentNode && e.parentNode.removeChild(e);
72
72
  }
73
- function fs(e, t) {
73
+ function vs(e, t) {
74
74
  for (let r = 0; r < e.length; r += 1)
75
75
  e[r] && e[r].d(t);
76
76
  }
77
- function z(e) {
77
+ function X(e) {
78
78
  return document.createElement(e);
79
79
  }
80
- function cs(e) {
80
+ function ys(e) {
81
81
  return document.createElementNS("http://www.w3.org/2000/svg", e);
82
82
  }
83
- function Ie(e) {
83
+ function Ne(e) {
84
84
  return document.createTextNode(e);
85
85
  }
86
- function $t() {
87
- return Ie(" ");
86
+ function Xt() {
87
+ return Ne(" ");
88
88
  }
89
- function An() {
90
- return Ie("");
89
+ function On() {
90
+ return Ne("");
91
91
  }
92
- function kt(e, t, r, n) {
92
+ function zt(e, t, r, n) {
93
93
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
94
94
  }
95
- function U(e, t, r) {
95
+ function F(e, t, r) {
96
96
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
97
97
  }
98
- function w(e, t, r) {
98
+ function x(e, t, r) {
99
99
  const n = t.toLowerCase();
100
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : U(e, t, r);
100
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : F(e, t, r);
101
101
  }
102
- function Hn(e) {
102
+ function Cn(e) {
103
103
  return Array.from(e.childNodes);
104
104
  }
105
105
  function it(e, t) {
106
106
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
107
107
  t);
108
108
  }
109
- function ds(e, t, r, n) {
109
+ function _s(e, t, r, n) {
110
110
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
111
111
  }
112
112
  let mt;
113
- function Bn() {
113
+ function In() {
114
114
  if (mt === void 0) {
115
115
  mt = !1;
116
116
  try {
@@ -121,16 +121,16 @@ function Bn() {
121
121
  }
122
122
  return mt;
123
123
  }
124
- function ms(e, t) {
124
+ function Es(e, t) {
125
125
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
126
- const n = z("iframe");
126
+ const n = X("iframe");
127
127
  n.setAttribute(
128
128
  "style",
129
129
  "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
130
130
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
131
- const i = Bn();
131
+ const i = In();
132
132
  let o;
133
- return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = kt(
133
+ return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = zt(
134
134
  window,
135
135
  "message",
136
136
  /** @param {MessageEvent} event */
@@ -138,15 +138,15 @@ function ms(e, t) {
138
138
  s.source === n.contentWindow && t();
139
139
  }
140
140
  )) : (n.src = "about:blank", n.onload = () => {
141
- o = kt(n.contentWindow, "resize", t), t();
142
- }), re(e, n), () => {
143
- (i || o && n.contentWindow) && o(), ne(n);
141
+ o = zt(n.contentWindow, "resize", t), t();
142
+ }), te(e, n), () => {
143
+ (i || o && n.contentWindow) && o(), re(n);
144
144
  };
145
145
  }
146
- function ps(e, t, r) {
146
+ function xs(e, t, r) {
147
147
  e.classList.toggle(t, !!r);
148
148
  }
149
- function Pn(e) {
149
+ function Ln(e) {
150
150
  const t = {};
151
151
  return e.childNodes.forEach(
152
152
  /** @param {Element} node */
@@ -159,27 +159,27 @@ let ot;
159
159
  function nt(e) {
160
160
  ot = e;
161
161
  }
162
- function Cn() {
162
+ function Nn() {
163
163
  if (!ot)
164
164
  throw new Error("Function called outside component initialization");
165
165
  return ot;
166
166
  }
167
- function On(e) {
168
- Cn().$$.on_mount.push(e);
167
+ function Mn(e) {
168
+ Nn().$$.on_mount.push(e);
169
169
  }
170
- const Ge = [], Vt = [];
170
+ const Ge = [], Wt = [];
171
171
  let je = [];
172
- const cr = [], In = /* @__PURE__ */ Promise.resolve();
173
- let Xt = !1;
174
- function Ln() {
175
- Xt || (Xt = !0, In.then(F));
172
+ const br = [], Rn = /* @__PURE__ */ Promise.resolve();
173
+ let qt = !1;
174
+ function Dn() {
175
+ qt || (qt = !0, Rn.then(N));
176
176
  }
177
- function zt(e) {
177
+ function Zt(e) {
178
178
  je.push(e);
179
179
  }
180
- const Nt = /* @__PURE__ */ new Set();
180
+ const Rt = /* @__PURE__ */ new Set();
181
181
  let Fe = 0;
182
- function F() {
182
+ function N() {
183
183
  if (Fe !== 0)
184
184
  return;
185
185
  const e = ot;
@@ -187,56 +187,56 @@ function F() {
187
187
  try {
188
188
  for (; Fe < Ge.length; ) {
189
189
  const t = Ge[Fe];
190
- Fe++, nt(t), Nn(t.$$);
190
+ Fe++, nt(t), Fn(t.$$);
191
191
  }
192
192
  } catch (t) {
193
193
  throw Ge.length = 0, Fe = 0, t;
194
194
  }
195
- for (nt(null), Ge.length = 0, Fe = 0; Vt.length; )
196
- Vt.pop()();
195
+ for (nt(null), Ge.length = 0, Fe = 0; Wt.length; )
196
+ Wt.pop()();
197
197
  for (let t = 0; t < je.length; t += 1) {
198
198
  const r = je[t];
199
- Nt.has(r) || (Nt.add(r), r());
199
+ Rt.has(r) || (Rt.add(r), r());
200
200
  }
201
201
  je.length = 0;
202
202
  } while (Ge.length);
203
- for (; cr.length; )
204
- cr.pop()();
205
- Xt = !1, Nt.clear(), nt(e);
203
+ for (; br.length; )
204
+ br.pop()();
205
+ qt = !1, Rt.clear(), nt(e);
206
206
  }
207
- function Nn(e) {
207
+ function Fn(e) {
208
208
  if (e.fragment !== null) {
209
209
  e.update(), ut(e.before_update);
210
210
  const t = e.dirty;
211
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(zt);
211
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Zt);
212
212
  }
213
213
  }
214
- function Mn(e) {
214
+ function Un(e) {
215
215
  const t = [], r = [];
216
216
  je.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), je = t;
217
217
  }
218
- const Rn = /* @__PURE__ */ new Set();
219
- function Dn(e, t) {
220
- e && e.i && (Rn.delete(e), e.i(t));
218
+ const Gn = /* @__PURE__ */ new Set();
219
+ function jn(e, t) {
220
+ e && e.i && (Gn.delete(e), e.i(t));
221
221
  }
222
- function bs(e) {
222
+ function ws(e) {
223
223
  return e?.length !== void 0 ? e : Array.from(e);
224
224
  }
225
- function Fn(e, t, r) {
225
+ function $n(e, t, r) {
226
226
  const { fragment: n, after_update: i } = e.$$;
227
- n && n.m(t, r), zt(() => {
228
- const o = e.$$.on_mount.map(Fr).filter(wt);
227
+ n && n.m(t, r), Zt(() => {
228
+ const o = e.$$.on_mount.map($r).filter(St);
229
229
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ut(o), e.$$.on_mount = [];
230
- }), i.forEach(zt);
230
+ }), i.forEach(Zt);
231
231
  }
232
- function Un(e, t) {
232
+ function kn(e, t) {
233
233
  const r = e.$$;
234
- r.fragment !== null && (Mn(r.after_update), ut(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
234
+ r.fragment !== null && (Un(r.after_update), ut(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
235
235
  }
236
- function Gn(e, t) {
237
- e.$$.dirty[0] === -1 && (Ge.push(e), Ln(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
236
+ function Vn(e, t) {
237
+ e.$$.dirty[0] === -1 && (Ge.push(e), Dn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
238
238
  }
239
- function jn(e, t, r, n, i, o, s = null, a = [-1]) {
239
+ function Xn(e, t, r, n, i, o, s = null, a = [-1]) {
240
240
  const f = ot;
241
241
  nt(e);
242
242
  const h = e.$$ = {
@@ -244,9 +244,9 @@ function jn(e, t, r, n, i, o, s = null, a = [-1]) {
244
244
  ctx: [],
245
245
  // state
246
246
  props: o,
247
- update: fe,
247
+ update: he,
248
248
  not_equal: i,
249
- bound: fr(),
249
+ bound: mr(),
250
250
  // lifecycle
251
251
  on_mount: [],
252
252
  on_destroy: [],
@@ -255,28 +255,28 @@ function jn(e, t, r, n, i, o, s = null, a = [-1]) {
255
255
  after_update: [],
256
256
  context: new Map(t.context || (f ? f.$$.context : [])),
257
257
  // everything else
258
- callbacks: fr(),
258
+ callbacks: mr(),
259
259
  dirty: a,
260
260
  skip_bound: !1,
261
261
  root: t.target || f.$$.root
262
262
  };
263
263
  s && s(h.root);
264
264
  let c = !1;
265
- if (h.ctx = r ? r(e, t.props || {}, (d, p, ..._) => {
266
- const O = _.length ? _[0] : p;
267
- return h.ctx && i(h.ctx[d], h.ctx[d] = O) && (!h.skip_bound && h.bound[d] && h.bound[d](O), c && Gn(e, d)), p;
265
+ if (h.ctx = r ? r(e, t.props || {}, (d, p, ...E) => {
266
+ const B = E.length ? E[0] : p;
267
+ return h.ctx && i(h.ctx[d], h.ctx[d] = B) && (!h.skip_bound && h.bound[d] && h.bound[d](B), c && Vn(e, d)), p;
268
268
  }) : [], h.update(), c = !0, ut(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
269
269
  if (t.hydrate) {
270
- const d = Hn(t.target);
271
- h.fragment && h.fragment.l(d), d.forEach(ne);
270
+ const d = Cn(t.target);
271
+ h.fragment && h.fragment.l(d), d.forEach(re);
272
272
  } else
273
273
  h.fragment && h.fragment.c();
274
- t.intro && Dn(e.$$.fragment), Fn(e, t.target, t.anchor), F();
274
+ t.intro && jn(e.$$.fragment), $n(e, t.target, t.anchor), N();
275
275
  }
276
276
  nt(f);
277
277
  }
278
- let jr;
279
- typeof HTMLElement == "function" && (jr = class extends HTMLElement {
278
+ let Xr;
279
+ typeof HTMLElement == "function" && (Xr = class extends HTMLElement {
280
280
  /** The Svelte component constructor */
281
281
  $$ctor;
282
282
  /** Slots */
@@ -318,29 +318,29 @@ typeof HTMLElement == "function" && (jr = class extends HTMLElement {
318
318
  let o;
319
319
  return {
320
320
  c: function() {
321
- o = z("slot"), i !== "default" && U(o, "name", i);
321
+ o = X("slot"), i !== "default" && F(o, "name", i);
322
322
  },
323
323
  /**
324
324
  * @param {HTMLElement} target
325
325
  * @param {HTMLElement} [anchor]
326
326
  */
327
327
  m: function(f, h) {
328
- ce(f, o, h);
328
+ fe(f, o, h);
329
329
  },
330
330
  d: function(f) {
331
- f && ne(o);
331
+ f && re(o);
332
332
  }
333
333
  };
334
334
  };
335
335
  };
336
336
  if (await Promise.resolve(), !this.$$cn || this.$$c)
337
337
  return;
338
- const t = {}, r = Pn(this);
338
+ const t = {}, r = Ln(this);
339
339
  for (const i of this.$$s)
340
340
  i in r && (t[i] = [e(i)]);
341
341
  for (const i of this.attributes) {
342
342
  const o = this.$$g_p(i.name);
343
- o in this.$$d || (this.$$d[o] = gt(o, i.value, this.$$p_d, "toProp"));
343
+ o in this.$$d || (this.$$d[o] = vt(o, i.value, this.$$p_d, "toProp"));
344
344
  }
345
345
  for (const i in this.$$p_d)
346
346
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -358,7 +358,7 @@ typeof HTMLElement == "function" && (jr = class extends HTMLElement {
358
358
  this.$$r = !0;
359
359
  for (const i in this.$$p_d)
360
360
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
361
- const o = gt(
361
+ const o = vt(
362
362
  i,
363
363
  this.$$d[i],
364
364
  this.$$p_d,
@@ -380,7 +380,7 @@ typeof HTMLElement == "function" && (jr = class extends HTMLElement {
380
380
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
381
381
  // and setting attributes through setAttribute etc, this is helpful
382
382
  attributeChangedCallback(e, t, r) {
383
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = gt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
383
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = vt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
384
384
  }
385
385
  disconnectedCallback() {
386
386
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -393,7 +393,7 @@ typeof HTMLElement == "function" && (jr = class extends HTMLElement {
393
393
  ) || e;
394
394
  }
395
395
  });
396
- function gt(e, t, r, n) {
396
+ function vt(e, t, r, n) {
397
397
  const i = r[e]?.type;
398
398
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
399
399
  return t;
@@ -422,8 +422,8 @@ function gt(e, t, r, n) {
422
422
  return t;
423
423
  }
424
424
  }
425
- function $n(e, t, r, n, i, o) {
426
- let s = class extends jr {
425
+ function zn(e, t, r, n, i, o) {
426
+ let s = class extends Xr {
427
427
  constructor() {
428
428
  super(e, r, i), this.$$p_d = t;
429
429
  }
@@ -439,7 +439,7 @@ function $n(e, t, r, n, i, o) {
439
439
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
440
440
  },
441
441
  set(f) {
442
- f = gt(a, f, t), this.$$d[a] = f, this.$$c?.$set({ [a]: f });
442
+ f = vt(a, f, t), this.$$d[a] = f, this.$$c?.$set({ [a]: f });
443
443
  }
444
444
  });
445
445
  }), n.forEach((a) => {
@@ -451,7 +451,7 @@ function $n(e, t, r, n, i, o) {
451
451
  }), e.element = /** @type {any} */
452
452
  s, s;
453
453
  }
454
- class kn {
454
+ class Wn {
455
455
  /**
456
456
  * ### PRIVATE API
457
457
  *
@@ -470,7 +470,7 @@ class kn {
470
470
  $$set = void 0;
471
471
  /** @returns {void} */
472
472
  $destroy() {
473
- Un(this, 1), this.$destroy = fe;
473
+ kn(this, 1), this.$destroy = he;
474
474
  }
475
475
  /**
476
476
  * @template {Extract<keyof Events, string>} K
@@ -479,8 +479,8 @@ class kn {
479
479
  * @returns {() => void}
480
480
  */
481
481
  $on(t, r) {
482
- if (!wt(r))
483
- return fe;
482
+ if (!St(r))
483
+ return he;
484
484
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
485
485
  return n.push(r), () => {
486
486
  const i = n.indexOf(r);
@@ -492,11 +492,11 @@ class kn {
492
492
  * @returns {void}
493
493
  */
494
494
  $set(t) {
495
- this.$$set && !_n(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
495
+ this.$$set && !Sn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
496
496
  }
497
497
  }
498
- const Vn = "4";
499
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vn);
498
+ const qn = "4";
499
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(qn);
500
500
  /*! *****************************************************************************
501
501
  Copyright (c) Microsoft Corporation.
502
502
 
@@ -511,43 +511,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
511
511
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
512
512
  PERFORMANCE OF THIS SOFTWARE.
513
513
  ***************************************************************************** */
514
- var Wt = function(e, t) {
515
- return Wt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
514
+ var Jt = function(e, t) {
515
+ return Jt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
516
516
  r.__proto__ = n;
517
517
  } || function(r, n) {
518
518
  for (var i in n)
519
519
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
520
- }, Wt(e, t);
520
+ }, Jt(e, t);
521
521
  };
522
- function xe(e, t) {
522
+ function lt(e, t) {
523
523
  if (typeof t != "function" && t !== null)
524
524
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
525
- Wt(e, t);
525
+ Jt(e, t);
526
526
  function r() {
527
527
  this.constructor = e;
528
528
  }
529
529
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
530
530
  }
531
- var P = function() {
532
- return P = Object.assign || function(t) {
533
- for (var r, n = 1, i = arguments.length; n < i; n++) {
534
- r = arguments[n];
535
- for (var o in r)
536
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
537
- }
538
- return t;
539
- }, P.apply(this, arguments);
540
- };
541
- function Xn(e, t) {
542
- var r = {};
543
- for (var n in e)
544
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
545
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
546
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
547
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
548
- return r;
549
- }
550
- function qt(e) {
531
+ function Qt(e) {
551
532
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
552
533
  if (r)
553
534
  return r.call(e);
@@ -559,7 +540,7 @@ function qt(e) {
559
540
  };
560
541
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
561
542
  }
562
- function Zt(e, t) {
543
+ function Yt(e, t) {
563
544
  var r = typeof Symbol == "function" && e[Symbol.iterator];
564
545
  if (!r)
565
546
  return e;
@@ -579,22 +560,22 @@ function Zt(e, t) {
579
560
  }
580
561
  return o;
581
562
  }
582
- function $e(e, t, r) {
583
- if (r || arguments.length === 2)
563
+ function Kt(e, t, r) {
564
+ if (arguments.length === 2)
584
565
  for (var n = 0, i = t.length, o; n < i; n++)
585
566
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
586
567
  return e.concat(o || t);
587
568
  }
588
- function _e(e) {
569
+ function xe(e) {
589
570
  return typeof e == "function";
590
571
  }
591
- function $r(e) {
572
+ function zr(e) {
592
573
  var t = function(n) {
593
574
  Error.call(n), n.stack = new Error().stack;
594
575
  }, r = e(t);
595
576
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
596
577
  }
597
- var Mt = $r(function(e) {
578
+ var Dt = zr(function(e) {
598
579
  return function(r) {
599
580
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
600
581
  ` + r.map(function(n, i) {
@@ -603,13 +584,13 @@ var Mt = $r(function(e) {
603
584
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
604
585
  };
605
586
  });
606
- function Jt(e, t) {
587
+ function er(e, t) {
607
588
  if (e) {
608
589
  var r = e.indexOf(t);
609
590
  0 <= r && e.splice(r, 1);
610
591
  }
611
592
  }
612
- var Tt = function() {
593
+ var At = function() {
613
594
  function e(t) {
614
595
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
615
596
  }
@@ -621,12 +602,12 @@ var Tt = function() {
621
602
  if (s)
622
603
  if (this._parentage = null, Array.isArray(s))
623
604
  try {
624
- for (var a = qt(s), f = a.next(); !f.done; f = a.next()) {
605
+ for (var a = Qt(s), f = a.next(); !f.done; f = a.next()) {
625
606
  var h = f.value;
626
607
  h.remove(this);
627
608
  }
628
- } catch (B) {
629
- t = { error: B };
609
+ } catch (H) {
610
+ t = { error: H };
630
611
  } finally {
631
612
  try {
632
613
  f && !f.done && (r = a.return) && r.call(a);
@@ -638,29 +619,29 @@ var Tt = function() {
638
619
  else
639
620
  s.remove(this);
640
621
  var c = this.initialTeardown;
641
- if (_e(c))
622
+ if (xe(c))
642
623
  try {
643
624
  c();
644
- } catch (B) {
645
- o = B instanceof Mt ? B.errors : [B];
625
+ } catch (H) {
626
+ o = H instanceof Dt ? H.errors : [H];
646
627
  }
647
628
  var d = this._finalizers;
648
629
  if (d) {
649
630
  this._finalizers = null;
650
631
  try {
651
- for (var p = qt(d), _ = p.next(); !_.done; _ = p.next()) {
652
- var O = _.value;
632
+ for (var p = Qt(d), E = p.next(); !E.done; E = p.next()) {
633
+ var B = E.value;
653
634
  try {
654
- dr(O);
655
- } catch (B) {
656
- o = o ?? [], B instanceof Mt ? o = $e($e([], Zt(o)), Zt(B.errors)) : o.push(B);
635
+ gr(B);
636
+ } catch (H) {
637
+ o = o ?? [], H instanceof Dt ? o = Kt(Kt([], Yt(o)), Yt(H.errors)) : o.push(H);
657
638
  }
658
639
  }
659
- } catch (B) {
660
- n = { error: B };
640
+ } catch (H) {
641
+ n = { error: H };
661
642
  } finally {
662
643
  try {
663
- _ && !_.done && (i = p.return) && i.call(p);
644
+ E && !E.done && (i = p.return) && i.call(p);
664
645
  } finally {
665
646
  if (n)
666
647
  throw n.error;
@@ -668,13 +649,13 @@ var Tt = function() {
668
649
  }
669
650
  }
670
651
  if (o)
671
- throw new Mt(o);
652
+ throw new Dt(o);
672
653
  }
673
654
  }, e.prototype.add = function(t) {
674
655
  var r;
675
656
  if (t && t !== this)
676
657
  if (this.closed)
677
- dr(t);
658
+ gr(t);
678
659
  else {
679
660
  if (t instanceof e) {
680
661
  if (t.closed || t._hasParent(this))
@@ -691,56 +672,52 @@ var Tt = function() {
691
672
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
692
673
  }, e.prototype._removeParent = function(t) {
693
674
  var r = this._parentage;
694
- r === t ? this._parentage = null : Array.isArray(r) && Jt(r, t);
675
+ r === t ? this._parentage = null : Array.isArray(r) && er(r, t);
695
676
  }, e.prototype.remove = function(t) {
696
677
  var r = this._finalizers;
697
- r && Jt(r, t), t instanceof e && t._removeParent(this);
678
+ r && er(r, t), t instanceof e && t._removeParent(this);
698
679
  }, e.EMPTY = function() {
699
680
  var t = new e();
700
681
  return t.closed = !0, t;
701
682
  }(), e;
702
- }(), kr = Tt.EMPTY;
703
- function Vr(e) {
704
- return e instanceof Tt || e && "closed" in e && _e(e.remove) && _e(e.add) && _e(e.unsubscribe);
705
- }
706
- function dr(e) {
707
- _e(e) ? e() : e.unsubscribe();
708
- }
709
- var zn = {
710
- onUnhandledError: null,
711
- onStoppedNotification: null,
712
- Promise: void 0,
713
- useDeprecatedSynchronousErrorHandling: !1,
714
- useDeprecatedNextContext: !1
715
- }, Wn = {
683
+ }(), Wr = At.EMPTY;
684
+ function qr(e) {
685
+ return e instanceof At || e && "closed" in e && xe(e.remove) && xe(e.add) && xe(e.unsubscribe);
686
+ }
687
+ function gr(e) {
688
+ xe(e) ? e() : e.unsubscribe();
689
+ }
690
+ var Zn = {
691
+ Promise: void 0
692
+ }, Jn = {
716
693
  setTimeout: function(e, t) {
717
694
  for (var r = [], n = 2; n < arguments.length; n++)
718
695
  r[n - 2] = arguments[n];
719
- return setTimeout.apply(void 0, $e([e, t], Zt(r)));
696
+ return setTimeout.apply(void 0, Kt([e, t], Yt(r)));
720
697
  },
721
698
  clearTimeout: function(e) {
722
699
  return clearTimeout(e);
723
700
  },
724
701
  delegate: void 0
725
702
  };
726
- function qn(e) {
727
- Wn.setTimeout(function() {
703
+ function Qn(e) {
704
+ Jn.setTimeout(function() {
728
705
  throw e;
729
706
  });
730
707
  }
731
- function mr() {
708
+ function vr() {
732
709
  }
733
710
  function yt(e) {
734
711
  e();
735
712
  }
736
- var Xr = function(e) {
737
- xe(t, e);
713
+ var Zr = function(e) {
714
+ lt(t, e);
738
715
  function t(r) {
739
716
  var n = e.call(this) || this;
740
- return n.isStopped = !1, r ? (n.destination = r, Vr(r) && r.add(n)) : n.destination = Qn, n;
717
+ return n.isStopped = !1, r ? (n.destination = r, qr(r) && r.add(n)) : n.destination = ei, n;
741
718
  }
742
719
  return t.create = function(r, n, i) {
743
- return new Qt(r, n, i);
720
+ return new tr(r, n, i);
744
721
  }, t.prototype.next = function(r) {
745
722
  this.isStopped || this._next(r);
746
723
  }, t.prototype.error = function(r) {
@@ -764,7 +741,7 @@ var Xr = function(e) {
764
741
  this.unsubscribe();
765
742
  }
766
743
  }, t;
767
- }(Tt), Zn = function() {
744
+ }(At), Yn = function() {
768
745
  function e(t) {
769
746
  this.partialObserver = t;
770
747
  }
@@ -774,7 +751,7 @@ var Xr = function(e) {
774
751
  try {
775
752
  r.next(t);
776
753
  } catch (n) {
777
- pt(n);
754
+ bt(n);
778
755
  }
779
756
  }, e.prototype.error = function(t) {
780
757
  var r = this.partialObserver;
@@ -782,56 +759,56 @@ var Xr = function(e) {
782
759
  try {
783
760
  r.error(t);
784
761
  } catch (n) {
785
- pt(n);
762
+ bt(n);
786
763
  }
787
764
  else
788
- pt(t);
765
+ bt(t);
789
766
  }, e.prototype.complete = function() {
790
767
  var t = this.partialObserver;
791
768
  if (t.complete)
792
769
  try {
793
770
  t.complete();
794
771
  } catch (r) {
795
- pt(r);
772
+ bt(r);
796
773
  }
797
774
  }, e;
798
- }(), Qt = function(e) {
799
- xe(t, e);
775
+ }(), tr = function(e) {
776
+ lt(t, e);
800
777
  function t(r, n, i) {
801
778
  var o = e.call(this) || this, s;
802
- return _e(r) || !r ? s = {
779
+ return xe(r) || !r ? s = {
803
780
  next: r ?? void 0,
804
781
  error: n ?? void 0,
805
782
  complete: i ?? void 0
806
- } : s = r, o.destination = new Zn(s), o;
783
+ } : s = r, o.destination = new Yn(s), o;
807
784
  }
808
785
  return t;
809
- }(Xr);
810
- function pt(e) {
811
- qn(e);
786
+ }(Zr);
787
+ function bt(e) {
788
+ Qn(e);
812
789
  }
813
- function Jn(e) {
790
+ function Kn(e) {
814
791
  throw e;
815
792
  }
816
- var Qn = {
793
+ var ei = {
817
794
  closed: !0,
818
- next: mr,
819
- error: Jn,
820
- complete: mr
821
- }, Yn = function() {
795
+ next: vr,
796
+ error: Kn,
797
+ complete: vr
798
+ }, ti = function() {
822
799
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
823
800
  }();
824
- function Kn(e) {
801
+ function ri(e) {
825
802
  return e;
826
803
  }
827
- function ei(e) {
828
- return e.length === 0 ? Kn : e.length === 1 ? e[0] : function(r) {
804
+ function ni(e) {
805
+ return e.length === 0 ? ri : e.length === 1 ? e[0] : function(r) {
829
806
  return e.reduce(function(n, i) {
830
807
  return i(n);
831
808
  }, r);
832
809
  };
833
810
  }
834
- var pr = function() {
811
+ var yr = function() {
835
812
  function e(t) {
836
813
  t && (this._subscribe = t);
837
814
  }
@@ -839,7 +816,7 @@ var pr = function() {
839
816
  var r = new e();
840
817
  return r.source = this, r.operator = t, r;
841
818
  }, e.prototype.subscribe = function(t, r, n) {
842
- var i = this, o = ri(t) ? t : new Qt(t, r, n);
819
+ var i = this, o = oi(t) ? t : new tr(t, r, n);
843
820
  return yt(function() {
844
821
  var s = i, a = s.operator, f = s.source;
845
822
  o.add(a ? a.call(o, f) : f ? i._subscribe(o) : i._trySubscribe(o));
@@ -852,8 +829,8 @@ var pr = function() {
852
829
  }
853
830
  }, e.prototype.forEach = function(t, r) {
854
831
  var n = this;
855
- return r = br(r), new r(function(i, o) {
856
- var s = new Qt({
832
+ return r = _r(r), new r(function(i, o) {
833
+ var s = new tr({
857
834
  next: function(a) {
858
835
  try {
859
836
  t(a);
@@ -869,15 +846,15 @@ var pr = function() {
869
846
  }, e.prototype._subscribe = function(t) {
870
847
  var r;
871
848
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
872
- }, e.prototype[Yn] = function() {
849
+ }, e.prototype[ti] = function() {
873
850
  return this;
874
851
  }, e.prototype.pipe = function() {
875
852
  for (var t = [], r = 0; r < arguments.length; r++)
876
853
  t[r] = arguments[r];
877
- return ei(t)(this);
854
+ return ni(t)(this);
878
855
  }, e.prototype.toPromise = function(t) {
879
856
  var r = this;
880
- return t = br(t), new t(function(n, i) {
857
+ return t = _r(t), new t(function(n, i) {
881
858
  var o;
882
859
  r.subscribe(function(s) {
883
860
  return o = s;
@@ -891,32 +868,32 @@ var pr = function() {
891
868
  return new e(t);
892
869
  }, e;
893
870
  }();
894
- function br(e) {
871
+ function _r(e) {
895
872
  var t;
896
- return (t = e ?? zn.Promise) !== null && t !== void 0 ? t : Promise;
873
+ return (t = e ?? Zn.Promise) !== null && t !== void 0 ? t : Promise;
897
874
  }
898
- function ti(e) {
899
- return e && _e(e.next) && _e(e.error) && _e(e.complete);
875
+ function ii(e) {
876
+ return e && xe(e.next) && xe(e.error) && xe(e.complete);
900
877
  }
901
- function ri(e) {
902
- return e && e instanceof Xr || ti(e) && Vr(e);
878
+ function oi(e) {
879
+ return e && e instanceof Zr || ii(e) && qr(e);
903
880
  }
904
- var ni = $r(function(e) {
881
+ var si = zr(function(e) {
905
882
  return function() {
906
883
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
907
884
  };
908
- }), zr = function(e) {
909
- xe(t, e);
885
+ }), Jr = function(e) {
886
+ lt(t, e);
910
887
  function t() {
911
888
  var r = e.call(this) || this;
912
889
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
913
890
  }
914
891
  return t.prototype.lift = function(r) {
915
- var n = new gr(this, this);
892
+ var n = new Er(this, this);
916
893
  return n.operator = r, n;
917
894
  }, t.prototype._throwIfClosed = function() {
918
895
  if (this.closed)
919
- throw new ni();
896
+ throw new si();
920
897
  }, t.prototype.next = function(r) {
921
898
  var n = this;
922
899
  yt(function() {
@@ -924,7 +901,7 @@ var ni = $r(function(e) {
924
901
  if (n._throwIfClosed(), !n.isStopped) {
925
902
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
926
903
  try {
927
- for (var s = qt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
904
+ for (var s = Qt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
928
905
  var f = a.value;
929
906
  f.next(r);
930
907
  }
@@ -973,20 +950,20 @@ var ni = $r(function(e) {
973
950
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
974
951
  }, t.prototype._innerSubscribe = function(r) {
975
952
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
976
- return o || s ? kr : (this.currentObservers = null, a.push(r), new Tt(function() {
977
- n.currentObservers = null, Jt(a, r);
953
+ return o || s ? Wr : (this.currentObservers = null, a.push(r), new At(function() {
954
+ n.currentObservers = null, er(a, r);
978
955
  }));
979
956
  }, t.prototype._checkFinalizedStatuses = function(r) {
980
957
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
981
958
  i ? r.error(o) : s && r.complete();
982
959
  }, t.prototype.asObservable = function() {
983
- var r = new pr();
960
+ var r = new yr();
984
961
  return r.source = this, r;
985
962
  }, t.create = function(r, n) {
986
- return new gr(r, n);
963
+ return new Er(r, n);
987
964
  }, t;
988
- }(pr), gr = function(e) {
989
- xe(t, e);
965
+ }(yr), Er = function(e) {
966
+ lt(t, e);
990
967
  function t(r, n) {
991
968
  var i = e.call(this) || this;
992
969
  return i.destination = r, i.source = n, i;
@@ -1002,17 +979,17 @@ var ni = $r(function(e) {
1002
979
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1003
980
  }, t.prototype._subscribe = function(r) {
1004
981
  var n, i;
1005
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : kr;
982
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Wr;
1006
983
  }, t;
1007
- }(zr), Wr = {
984
+ }(Jr), Qr = {
1008
985
  now: function() {
1009
- return (Wr.delegate || Date).now();
986
+ return (Qr.delegate || Date).now();
1010
987
  },
1011
988
  delegate: void 0
1012
- }, ii = function(e) {
1013
- xe(t, e);
989
+ }, ai = function(e) {
990
+ lt(t, e);
1014
991
  function t(r, n, i) {
1015
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Wr);
992
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Qr);
1016
993
  var o = e.call(this) || this;
1017
994
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
1018
995
  }
@@ -1032,24 +1009,24 @@ var ni = $r(function(e) {
1032
1009
  h && o.splice(0, h + 1);
1033
1010
  }
1034
1011
  }, t;
1035
- }(zr);
1036
- const yr = [], vr = {}, oi = (e, t = 0) => {
1037
- if (yr.indexOf(e) == -1) {
1038
- const r = new ii(t);
1039
- vr[e] = r, yr.push(e);
1012
+ }(Jr);
1013
+ const xr = [], wr = {}, ui = (e, t = 0) => {
1014
+ if (xr.indexOf(e) == -1) {
1015
+ const r = new ai(t);
1016
+ wr[e] = r, xr.push(e);
1040
1017
  }
1041
- return vr[e];
1018
+ return wr[e];
1042
1019
  }, Ue = [];
1043
- function si(e, t) {
1020
+ function li(e, t) {
1044
1021
  return {
1045
- subscribe: St(e, t).subscribe
1022
+ subscribe: Ht(e, t).subscribe
1046
1023
  };
1047
1024
  }
1048
- function St(e, t = fe) {
1025
+ function Ht(e, t = he) {
1049
1026
  let r;
1050
1027
  const n = /* @__PURE__ */ new Set();
1051
1028
  function i(a) {
1052
- if (Ur(e, a) && (e = a, r)) {
1029
+ if (kr(e, a) && (e = a, r)) {
1053
1030
  const f = !Ue.length;
1054
1031
  for (const h of n)
1055
1032
  h[1](), Ue.push(h, e);
@@ -1063,154 +1040,193 @@ function St(e, t = fe) {
1063
1040
  function o(a) {
1064
1041
  i(a(e));
1065
1042
  }
1066
- function s(a, f = fe) {
1043
+ function s(a, f = he) {
1067
1044
  const h = [a, f];
1068
- return n.add(h), n.size === 1 && (r = t(i, o) || fe), a(e), () => {
1045
+ return n.add(h), n.size === 1 && (r = t(i, o) || he), a(e), () => {
1069
1046
  n.delete(h), n.size === 0 && r && (r(), r = null);
1070
1047
  };
1071
1048
  }
1072
1049
  return { set: i, update: o, subscribe: s };
1073
1050
  }
1074
- function We(e, t, r) {
1051
+ function ze(e, t, r) {
1075
1052
  const n = !Array.isArray(e), i = n ? [e] : e;
1076
1053
  if (!i.every(Boolean))
1077
1054
  throw new Error("derived() expects stores as input, got a falsy value");
1078
1055
  const o = t.length < 2;
1079
- return si(r, (s, a) => {
1056
+ return li(r, (s, a) => {
1080
1057
  let f = !1;
1081
1058
  const h = [];
1082
- let c = 0, d = fe;
1059
+ let c = 0, d = he;
1083
1060
  const p = () => {
1084
1061
  if (c)
1085
1062
  return;
1086
1063
  d();
1087
- const O = t(n ? h[0] : h, s, a);
1088
- o ? s(O) : d = wt(O) ? O : fe;
1089
- }, _ = i.map(
1090
- (O, B) => Gr(
1091
- O,
1092
- (ee) => {
1093
- h[B] = ee, c &= ~(1 << B), f && p();
1064
+ const B = t(n ? h[0] : h, s, a);
1065
+ o ? s(B) : d = St(B) ? B : he;
1066
+ }, E = i.map(
1067
+ (B, H) => Vr(
1068
+ B,
1069
+ (Y) => {
1070
+ h[H] = Y, c &= ~(1 << H), f && p();
1094
1071
  },
1095
1072
  () => {
1096
- c |= 1 << B;
1073
+ c |= 1 << H;
1097
1074
  }
1098
1075
  )
1099
1076
  );
1100
1077
  return f = !0, p(), function() {
1101
- ut(_), d(), f = !1;
1078
+ ut(E), d(), f = !1;
1102
1079
  };
1103
1080
  });
1104
1081
  }
1105
- var ai = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1106
- function ui(e) {
1082
+ var hi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1083
+ function fi(e) {
1107
1084
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1108
1085
  }
1109
- var li = function(t) {
1110
- return hi(t) && !fi(t);
1086
+ var ci = function(t) {
1087
+ return di(t) && !pi(t);
1111
1088
  };
1112
- function hi(e) {
1089
+ function di(e) {
1113
1090
  return !!e && typeof e == "object";
1114
1091
  }
1115
- function fi(e) {
1092
+ function pi(e) {
1116
1093
  var t = Object.prototype.toString.call(e);
1117
- return t === "[object RegExp]" || t === "[object Date]" || mi(e);
1094
+ return t === "[object RegExp]" || t === "[object Date]" || gi(e);
1118
1095
  }
1119
- var ci = typeof Symbol == "function" && Symbol.for, di = ci ? Symbol.for("react.element") : 60103;
1120
- function mi(e) {
1121
- return e.$$typeof === di;
1096
+ var mi = typeof Symbol == "function" && Symbol.for, bi = mi ? Symbol.for("react.element") : 60103;
1097
+ function gi(e) {
1098
+ return e.$$typeof === bi;
1122
1099
  }
1123
- function pi(e) {
1100
+ function vi(e) {
1124
1101
  return Array.isArray(e) ? [] : {};
1125
1102
  }
1126
1103
  function st(e, t) {
1127
- return t.clone !== !1 && t.isMergeableObject(e) ? ke(pi(e), e, t) : e;
1104
+ return t.clone !== !1 && t.isMergeableObject(e) ? $e(vi(e), e, t) : e;
1128
1105
  }
1129
- function bi(e, t, r) {
1106
+ function yi(e, t, r) {
1130
1107
  return e.concat(t).map(function(n) {
1131
1108
  return st(n, r);
1132
1109
  });
1133
1110
  }
1134
- function gi(e, t) {
1111
+ function _i(e, t) {
1135
1112
  if (!t.customMerge)
1136
- return ke;
1113
+ return $e;
1137
1114
  var r = t.customMerge(e);
1138
- return typeof r == "function" ? r : ke;
1115
+ return typeof r == "function" ? r : $e;
1139
1116
  }
1140
- function yi(e) {
1117
+ function Ei(e) {
1141
1118
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1142
1119
  return Object.propertyIsEnumerable.call(e, t);
1143
1120
  }) : [];
1144
1121
  }
1145
- function Er(e) {
1146
- return Object.keys(e).concat(yi(e));
1122
+ function Tr(e) {
1123
+ return Object.keys(e).concat(Ei(e));
1147
1124
  }
1148
- function qr(e, t) {
1125
+ function Yr(e, t) {
1149
1126
  try {
1150
1127
  return t in e;
1151
1128
  } catch {
1152
1129
  return !1;
1153
1130
  }
1154
1131
  }
1155
- function vi(e, t) {
1156
- return qr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1132
+ function xi(e, t) {
1133
+ return Yr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1157
1134
  }
1158
- function Ei(e, t, r) {
1135
+ function wi(e, t, r) {
1159
1136
  var n = {};
1160
- return r.isMergeableObject(e) && Er(e).forEach(function(i) {
1137
+ return r.isMergeableObject(e) && Tr(e).forEach(function(i) {
1161
1138
  n[i] = st(e[i], r);
1162
- }), Er(t).forEach(function(i) {
1163
- vi(e, i) || (qr(e, i) && r.isMergeableObject(t[i]) ? n[i] = gi(i, r)(e[i], t[i], r) : n[i] = st(t[i], r));
1139
+ }), Tr(t).forEach(function(i) {
1140
+ xi(e, i) || (Yr(e, i) && r.isMergeableObject(t[i]) ? n[i] = _i(i, r)(e[i], t[i], r) : n[i] = st(t[i], r));
1164
1141
  }), n;
1165
1142
  }
1166
- function ke(e, t, r) {
1167
- r = r || {}, r.arrayMerge = r.arrayMerge || bi, r.isMergeableObject = r.isMergeableObject || li, r.cloneUnlessOtherwiseSpecified = st;
1143
+ function $e(e, t, r) {
1144
+ r = r || {}, r.arrayMerge = r.arrayMerge || yi, r.isMergeableObject = r.isMergeableObject || ci, r.cloneUnlessOtherwiseSpecified = st;
1168
1145
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1169
- return o ? n ? r.arrayMerge(e, t, r) : Ei(e, t, r) : st(t, r);
1146
+ return o ? n ? r.arrayMerge(e, t, r) : wi(e, t, r) : st(t, r);
1170
1147
  }
1171
- ke.all = function(t, r) {
1148
+ $e.all = function(t, r) {
1172
1149
  if (!Array.isArray(t))
1173
1150
  throw new Error("first argument should be an array");
1174
1151
  return t.reduce(function(n, i) {
1175
- return ke(n, i, r);
1152
+ return $e(n, i, r);
1176
1153
  }, {});
1177
1154
  };
1178
- var _i = ke, xi = _i;
1179
- const wi = /* @__PURE__ */ ui(xi);
1180
- function Rt(e, t) {
1181
- var r = t && t.cache ? t.cache : Ci, n = t && t.serializer ? t.serializer : Bi, i = t && t.strategy ? t.strategy : Si;
1155
+ var Ti = $e, Si = Ti;
1156
+ const Ai = /* @__PURE__ */ fi(Si);
1157
+ var rr = function(e, t) {
1158
+ return rr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1159
+ r.__proto__ = n;
1160
+ } || function(r, n) {
1161
+ for (var i in n)
1162
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1163
+ }, rr(e, t);
1164
+ };
1165
+ function Pt(e, t) {
1166
+ if (typeof t != "function" && t !== null)
1167
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1168
+ rr(e, t);
1169
+ function r() {
1170
+ this.constructor = e;
1171
+ }
1172
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1173
+ }
1174
+ var ge = function() {
1175
+ return ge = Object.assign || function(t) {
1176
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1177
+ r = arguments[n];
1178
+ for (var o in r)
1179
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1180
+ }
1181
+ return t;
1182
+ }, ge.apply(this, arguments);
1183
+ };
1184
+ function Hi(e, t) {
1185
+ var r = {};
1186
+ for (var n in e)
1187
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1188
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
1189
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1190
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1191
+ return r;
1192
+ }
1193
+ function Ft(e, t, r) {
1194
+ if (r || arguments.length === 2)
1195
+ for (var n = 0, i = t.length, o; n < i; n++)
1196
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1197
+ return e.concat(o || Array.prototype.slice.call(t));
1198
+ }
1199
+ function Ut(e, t) {
1200
+ var r = t && t.cache ? t.cache : Ni, n = t && t.serializer ? t.serializer : Ii, i = t && t.strategy ? t.strategy : Oi;
1182
1201
  return i(e, {
1183
1202
  cache: r,
1184
1203
  serializer: n
1185
1204
  });
1186
1205
  }
1187
- function Ti(e) {
1206
+ function Pi(e) {
1188
1207
  return e == null || typeof e == "number" || typeof e == "boolean";
1189
1208
  }
1190
- function Zr(e, t, r, n) {
1191
- var i = Ti(n) ? n : r(n), o = t.get(i);
1209
+ function Bi(e, t, r, n) {
1210
+ var i = Pi(n) ? n : r(n), o = t.get(i);
1192
1211
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1193
1212
  }
1194
- function Jr(e, t, r) {
1213
+ function Kr(e, t, r) {
1195
1214
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1196
1215
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1197
1216
  }
1198
- function ar(e, t, r, n, i) {
1217
+ function en(e, t, r, n, i) {
1199
1218
  return r.bind(t, e, n, i);
1200
1219
  }
1201
- function Si(e, t) {
1202
- var r = e.length === 1 ? Zr : Jr;
1203
- return ar(e, this, r, t.cache.create(), t.serializer);
1220
+ function Oi(e, t) {
1221
+ var r = e.length === 1 ? Bi : Kr;
1222
+ return en(e, this, r, t.cache.create(), t.serializer);
1204
1223
  }
1205
- function Ai(e, t) {
1206
- return ar(e, this, Jr, t.cache.create(), t.serializer);
1224
+ function Ci(e, t) {
1225
+ return en(e, this, Kr, t.cache.create(), t.serializer);
1207
1226
  }
1208
- function Hi(e, t) {
1209
- return ar(e, this, Zr, t.cache.create(), t.serializer);
1210
- }
1211
- var Bi = function() {
1227
+ var Ii = function() {
1212
1228
  return JSON.stringify(arguments);
1213
- }, Pi = (
1229
+ }, Li = (
1214
1230
  /** @class */
1215
1231
  function() {
1216
1232
  function e() {
@@ -1222,62 +1238,71 @@ var Bi = function() {
1222
1238
  this.cache[t] = r;
1223
1239
  }, e;
1224
1240
  }()
1225
- ), Ci = {
1241
+ ), Ni = {
1226
1242
  create: function() {
1227
- return new Pi();
1243
+ return new Li();
1228
1244
  }
1229
- }, Dt = {
1230
- variadic: Ai,
1231
- monadic: Hi
1232
- }, A;
1245
+ }, Gt = {
1246
+ variadic: Ci
1247
+ }, xt = function() {
1248
+ return xt = Object.assign || function(t) {
1249
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1250
+ r = arguments[n];
1251
+ for (var o in r)
1252
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1253
+ }
1254
+ return t;
1255
+ }, xt.apply(this, arguments);
1256
+ };
1257
+ var S;
1233
1258
  (function(e) {
1234
1259
  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";
1235
- })(A || (A = {}));
1236
- var D;
1260
+ })(S || (S = {}));
1261
+ var M;
1237
1262
  (function(e) {
1238
1263
  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";
1239
- })(D || (D = {}));
1240
- var Ve;
1264
+ })(M || (M = {}));
1265
+ var ke;
1241
1266
  (function(e) {
1242
1267
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1243
- })(Ve || (Ve = {}));
1244
- function _r(e) {
1245
- return e.type === D.literal;
1268
+ })(ke || (ke = {}));
1269
+ function Sr(e) {
1270
+ return e.type === M.literal;
1246
1271
  }
1247
- function Oi(e) {
1248
- return e.type === D.argument;
1272
+ function Mi(e) {
1273
+ return e.type === M.argument;
1249
1274
  }
1250
- function Qr(e) {
1251
- return e.type === D.number;
1275
+ function tn(e) {
1276
+ return e.type === M.number;
1252
1277
  }
1253
- function Yr(e) {
1254
- return e.type === D.date;
1278
+ function rn(e) {
1279
+ return e.type === M.date;
1255
1280
  }
1256
- function Kr(e) {
1257
- return e.type === D.time;
1281
+ function nn(e) {
1282
+ return e.type === M.time;
1258
1283
  }
1259
- function en(e) {
1260
- return e.type === D.select;
1284
+ function on(e) {
1285
+ return e.type === M.select;
1261
1286
  }
1262
- function tn(e) {
1263
- return e.type === D.plural;
1287
+ function sn(e) {
1288
+ return e.type === M.plural;
1264
1289
  }
1265
- function Ii(e) {
1266
- return e.type === D.pound;
1290
+ function Ri(e) {
1291
+ return e.type === M.pound;
1267
1292
  }
1268
- function rn(e) {
1269
- return e.type === D.tag;
1293
+ function an(e) {
1294
+ return e.type === M.tag;
1270
1295
  }
1271
- function nn(e) {
1272
- return !!(e && typeof e == "object" && e.type === Ve.number);
1296
+ function un(e) {
1297
+ return !!(e && typeof e == "object" && e.type === ke.number);
1273
1298
  }
1274
- function Yt(e) {
1275
- return !!(e && typeof e == "object" && e.type === Ve.dateTime);
1299
+ function nr(e) {
1300
+ return !!(e && typeof e == "object" && e.type === ke.dateTime);
1276
1301
  }
1277
- var on = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Li = /(?:[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;
1278
- function Ni(e) {
1302
+ var ln = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Di = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1303
+ function Fi(e) {
1279
1304
  var t = {};
1280
- return e.replace(Li, function(r) {
1305
+ return e.replace(Di, function(r) {
1281
1306
  var n = r.length;
1282
1307
  switch (r[0]) {
1283
1308
  case "G":
@@ -1366,11 +1391,21 @@ function Ni(e) {
1366
1391
  return "";
1367
1392
  }), t;
1368
1393
  }
1369
- var Mi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1370
- function Ri(e) {
1394
+ var R = function() {
1395
+ return R = Object.assign || function(t) {
1396
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
1397
+ r = arguments[n];
1398
+ for (var o in r)
1399
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1400
+ }
1401
+ return t;
1402
+ }, R.apply(this, arguments);
1403
+ };
1404
+ var Ui = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1405
+ function Gi(e) {
1371
1406
  if (e.length === 0)
1372
1407
  throw new Error("Number skeleton cannot be empty");
1373
- for (var t = e.split(Mi).filter(function(p) {
1408
+ for (var t = e.split(Ui).filter(function(p) {
1374
1409
  return p.length > 0;
1375
1410
  }), r = [], n = 0, i = t; n < i.length; n++) {
1376
1411
  var o = i[n], s = o.split("/");
@@ -1385,17 +1420,17 @@ function Ri(e) {
1385
1420
  }
1386
1421
  return r;
1387
1422
  }
1388
- function Di(e) {
1423
+ function ji(e) {
1389
1424
  return e.replace(/^(.*?)-/, "");
1390
1425
  }
1391
- var xr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, sn = /^(@+)?(\+|#+)?[rs]?$/g, Fi = /(\*)(0+)|(#+)(0+)|(0+)/g, an = /^(0+)$/;
1392
- function wr(e) {
1426
+ var Ar = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hn = /^(@+)?(\+|#+)?[rs]?$/g, $i = /(\*)(0+)|(#+)(0+)|(0+)/g, fn = /^(0+)$/;
1427
+ function Hr(e) {
1393
1428
  var t = {};
1394
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(sn, function(r, n, i) {
1429
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hn, function(r, n, i) {
1395
1430
  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)), "";
1396
1431
  }), t;
1397
1432
  }
1398
- function un(e) {
1433
+ function cn(e) {
1399
1434
  switch (e) {
1400
1435
  case "sign-auto":
1401
1436
  return {
@@ -1435,7 +1470,7 @@ function un(e) {
1435
1470
  };
1436
1471
  }
1437
1472
  }
1438
- function Ui(e) {
1473
+ function ki(e) {
1439
1474
  var t;
1440
1475
  if (e[0] === "E" && e[1] === "E" ? (t = {
1441
1476
  notation: "engineering"
@@ -1443,17 +1478,17 @@ function Ui(e) {
1443
1478
  notation: "scientific"
1444
1479
  }, e = e.slice(1)), t) {
1445
1480
  var r = e.slice(0, 2);
1446
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !an.test(e))
1481
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !fn.test(e))
1447
1482
  throw new Error("Malformed concise eng/scientific notation");
1448
1483
  t.minimumIntegerDigits = e.length;
1449
1484
  }
1450
1485
  return t;
1451
1486
  }
1452
- function Tr(e) {
1453
- var t = {}, r = un(e);
1487
+ function Pr(e) {
1488
+ var t = {}, r = cn(e);
1454
1489
  return r || t;
1455
1490
  }
1456
- function Gi(e) {
1491
+ function Vi(e) {
1457
1492
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1458
1493
  var i = n[r];
1459
1494
  switch (i.stem) {
@@ -1477,7 +1512,7 @@ function Gi(e) {
1477
1512
  continue;
1478
1513
  case "measure-unit":
1479
1514
  case "unit":
1480
- t.style = "unit", t.unit = Di(i.options[0]);
1515
+ t.style = "unit", t.unit = ji(i.options[0]);
1481
1516
  continue;
1482
1517
  case "compact-short":
1483
1518
  case "K":
@@ -1488,13 +1523,13 @@ function Gi(e) {
1488
1523
  t.notation = "compact", t.compactDisplay = "long";
1489
1524
  continue;
1490
1525
  case "scientific":
1491
- t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(f, h) {
1492
- return P(P({}, f), Tr(h));
1526
+ t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(f, h) {
1527
+ return R(R({}, f), Pr(h));
1493
1528
  }, {}));
1494
1529
  continue;
1495
1530
  case "engineering":
1496
- t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(f, h) {
1497
- return P(P({}, f), Tr(h));
1531
+ t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(f, h) {
1532
+ return R(R({}, f), Pr(h));
1498
1533
  }, {}));
1499
1534
  continue;
1500
1535
  case "notation-simple":
@@ -1539,45 +1574,45 @@ function Gi(e) {
1539
1574
  case "integer-width":
1540
1575
  if (i.options.length > 1)
1541
1576
  throw new RangeError("integer-width stems only accept a single optional option");
1542
- i.options[0].replace(Fi, function(f, h, c, d, p, _) {
1577
+ i.options[0].replace($i, function(f, h, c, d, p, E) {
1543
1578
  if (h)
1544
1579
  t.minimumIntegerDigits = c.length;
1545
1580
  else {
1546
1581
  if (d && p)
1547
1582
  throw new Error("We currently do not support maximum integer digits");
1548
- if (_)
1583
+ if (E)
1549
1584
  throw new Error("We currently do not support exact integer digits");
1550
1585
  }
1551
1586
  return "";
1552
1587
  });
1553
1588
  continue;
1554
1589
  }
1555
- if (an.test(i.stem)) {
1590
+ if (fn.test(i.stem)) {
1556
1591
  t.minimumIntegerDigits = i.stem.length;
1557
1592
  continue;
1558
1593
  }
1559
- if (xr.test(i.stem)) {
1594
+ if (Ar.test(i.stem)) {
1560
1595
  if (i.options.length > 1)
1561
1596
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1562
- i.stem.replace(xr, function(f, h, c, d, p, _) {
1563
- return c === "*" ? t.minimumFractionDigits = h.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : p && _ ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + _.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1597
+ i.stem.replace(Ar, function(f, h, c, d, p, E) {
1598
+ return c === "*" ? t.minimumFractionDigits = h.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : p && E ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + E.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
1564
1599
  });
1565
1600
  var o = i.options[0];
1566
- o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), wr(o)));
1601
+ o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), Hr(o)));
1567
1602
  continue;
1568
1603
  }
1569
- if (sn.test(i.stem)) {
1570
- t = P(P({}, t), wr(i.stem));
1604
+ if (hn.test(i.stem)) {
1605
+ t = R(R({}, t), Hr(i.stem));
1571
1606
  continue;
1572
1607
  }
1573
- var s = un(i.stem);
1574
- s && (t = P(P({}, t), s));
1575
- var a = Ui(i.stem);
1576
- a && (t = P(P({}, t), a));
1608
+ var s = cn(i.stem);
1609
+ s && (t = R(R({}, t), s));
1610
+ var a = ki(i.stem);
1611
+ a && (t = R(R({}, t), a));
1577
1612
  }
1578
1613
  return t;
1579
1614
  }
1580
- var bt = {
1615
+ var gt = {
1581
1616
  "001": [
1582
1617
  "H",
1583
1618
  "h"
@@ -2992,13 +3027,13 @@ var bt = {
2992
3027
  "h"
2993
3028
  ]
2994
3029
  };
2995
- function ji(e, t) {
3030
+ function Xi(e, t) {
2996
3031
  for (var r = "", n = 0; n < e.length; n++) {
2997
3032
  var i = e.charAt(n);
2998
3033
  if (i === "j") {
2999
3034
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3000
3035
  o++, n++;
3001
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), f = "a", h = $i(t);
3036
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), f = "a", h = zi(t);
3002
3037
  for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
3003
3038
  r += f;
3004
3039
  for (; s-- > 0; )
@@ -3008,7 +3043,7 @@ function ji(e, t) {
3008
3043
  }
3009
3044
  return r;
3010
3045
  }
3011
- function $i(e) {
3046
+ function zi(e) {
3012
3047
  var t = e.hourCycle;
3013
3048
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3014
3049
  e.hourCycles && // @ts-ignore
@@ -3027,23 +3062,23 @@ function $i(e) {
3027
3062
  }
3028
3063
  var r = e.language, n;
3029
3064
  r !== "root" && (n = e.maximize().region);
3030
- var i = bt[n || ""] || bt[r || ""] || bt["".concat(r, "-001")] || bt["001"];
3065
+ var i = gt[n || ""] || gt[r || ""] || gt["".concat(r, "-001")] || gt["001"];
3031
3066
  return i[0];
3032
3067
  }
3033
- var Ft, ki = new RegExp("^".concat(on.source, "*")), Vi = new RegExp("".concat(on.source, "*$"));
3034
- function H(e, t) {
3068
+ var jt, Wi = new RegExp("^".concat(ln.source, "*")), qi = new RegExp("".concat(ln.source, "*$"));
3069
+ function A(e, t) {
3035
3070
  return { start: e, end: t };
3036
3071
  }
3037
- var Xi = !!String.prototype.startsWith && "_a".startsWith("a", 1), zi = !!String.fromCodePoint, Wi = !!Object.fromEntries, qi = !!String.prototype.codePointAt, Zi = !!String.prototype.trimStart, Ji = !!String.prototype.trimEnd, Qi = !!Number.isSafeInteger, Yi = Qi ? Number.isSafeInteger : function(e) {
3072
+ var Zi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ji = !!String.fromCodePoint, Qi = !!Object.fromEntries, Yi = !!String.prototype.codePointAt, Ki = !!String.prototype.trimStart, eo = !!String.prototype.trimEnd, to = !!Number.isSafeInteger, ro = to ? Number.isSafeInteger : function(e) {
3038
3073
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3039
- }, Kt = !0;
3074
+ }, ir = !0;
3040
3075
  try {
3041
- var Ki = hn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3042
- Kt = ((Ft = Ki.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
3076
+ var no = pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3077
+ ir = ((jt = no.exec("a")) === null || jt === void 0 ? void 0 : jt[0]) === "a";
3043
3078
  } catch {
3044
- Kt = !1;
3079
+ ir = !1;
3045
3080
  }
3046
- var Sr = Xi ? (
3081
+ var Br = Zi ? (
3047
3082
  // Native
3048
3083
  function(t, r, n) {
3049
3084
  return t.startsWith(r, n);
@@ -3053,7 +3088,7 @@ var Sr = Xi ? (
3053
3088
  function(t, r, n) {
3054
3089
  return t.slice(n, n + r.length) === r;
3055
3090
  }
3056
- ), er = zi ? String.fromCodePoint : (
3091
+ ), or = Ji ? String.fromCodePoint : (
3057
3092
  // IE11
3058
3093
  function() {
3059
3094
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3065,9 +3100,9 @@ var Sr = Xi ? (
3065
3100
  }
3066
3101
  return n;
3067
3102
  }
3068
- ), Ar = (
3103
+ ), Or = (
3069
3104
  // native
3070
- Wi ? Object.fromEntries : (
3105
+ Qi ? Object.fromEntries : (
3071
3106
  // Ponyfill
3072
3107
  function(t) {
3073
3108
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3077,7 +3112,7 @@ var Sr = Xi ? (
3077
3112
  return r;
3078
3113
  }
3079
3114
  )
3080
- ), ln = qi ? (
3115
+ ), dn = Yi ? (
3081
3116
  // Native
3082
3117
  function(t, r) {
3083
3118
  return t.codePointAt(r);
@@ -3091,7 +3126,7 @@ var Sr = Xi ? (
3091
3126
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3092
3127
  }
3093
3128
  }
3094
- ), eo = Zi ? (
3129
+ ), io = Ki ? (
3095
3130
  // Native
3096
3131
  function(t) {
3097
3132
  return t.trimStart();
@@ -3099,9 +3134,9 @@ var Sr = Xi ? (
3099
3134
  ) : (
3100
3135
  // Ponyfill
3101
3136
  function(t) {
3102
- return t.replace(ki, "");
3137
+ return t.replace(Wi, "");
3103
3138
  }
3104
- ), to = Ji ? (
3139
+ ), oo = eo ? (
3105
3140
  // Native
3106
3141
  function(t) {
3107
3142
  return t.trimEnd();
@@ -3109,32 +3144,32 @@ var Sr = Xi ? (
3109
3144
  ) : (
3110
3145
  // Ponyfill
3111
3146
  function(t) {
3112
- return t.replace(Vi, "");
3147
+ return t.replace(qi, "");
3113
3148
  }
3114
3149
  );
3115
- function hn(e, t) {
3150
+ function pn(e, t) {
3116
3151
  return new RegExp(e, t);
3117
3152
  }
3118
- var tr;
3119
- if (Kt) {
3120
- var Hr = hn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3121
- tr = function(t, r) {
3153
+ var sr;
3154
+ if (ir) {
3155
+ var Cr = pn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3156
+ sr = function(t, r) {
3122
3157
  var n;
3123
- Hr.lastIndex = r;
3124
- var i = Hr.exec(t);
3158
+ Cr.lastIndex = r;
3159
+ var i = Cr.exec(t);
3125
3160
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3126
3161
  };
3127
3162
  } else
3128
- tr = function(t, r) {
3163
+ sr = function(t, r) {
3129
3164
  for (var n = []; ; ) {
3130
- var i = ln(t, r);
3131
- if (i === void 0 || fn(i) || oo(i))
3165
+ var i = dn(t, r);
3166
+ if (i === void 0 || mn(i) || lo(i))
3132
3167
  break;
3133
3168
  n.push(i), r += i >= 65536 ? 2 : 1;
3134
3169
  }
3135
- return er.apply(void 0, n);
3170
+ return or.apply(void 0, n);
3136
3171
  };
3137
- var ro = (
3172
+ var so = (
3138
3173
  /** @class */
3139
3174
  function() {
3140
3175
  function e(t, r) {
@@ -3158,14 +3193,14 @@ var ro = (
3158
3193
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3159
3194
  var a = this.clonePosition();
3160
3195
  this.bump(), i.push({
3161
- type: D.pound,
3162
- location: H(a, this.clonePosition())
3196
+ type: M.pound,
3197
+ location: A(a, this.clonePosition())
3163
3198
  });
3164
3199
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3165
3200
  if (n)
3166
3201
  break;
3167
- return this.error(A.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
3168
- } else if (o === 60 && !this.ignoreTag && rr(this.peek() || 0)) {
3202
+ return this.error(S.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
3203
+ } else if (o === 60 && !this.ignoreTag && ar(this.peek() || 0)) {
3169
3204
  var s = this.parseTag(t, r);
3170
3205
  if (s.err)
3171
3206
  return s;
@@ -3186,9 +3221,9 @@ var ro = (
3186
3221
  if (this.bumpSpace(), this.bumpIf("/>"))
3187
3222
  return {
3188
3223
  val: {
3189
- type: D.literal,
3224
+ type: M.literal,
3190
3225
  value: "<".concat(i, "/>"),
3191
- location: H(n, this.clonePosition())
3226
+ location: A(n, this.clonePosition())
3192
3227
  },
3193
3228
  err: null
3194
3229
  };
@@ -3198,25 +3233,25 @@ var ro = (
3198
3233
  return o;
3199
3234
  var s = o.val, a = this.clonePosition();
3200
3235
  if (this.bumpIf("</")) {
3201
- if (this.isEOF() || !rr(this.char()))
3202
- return this.error(A.INVALID_TAG, H(a, this.clonePosition()));
3236
+ if (this.isEOF() || !ar(this.char()))
3237
+ return this.error(S.INVALID_TAG, A(a, this.clonePosition()));
3203
3238
  var f = this.clonePosition(), h = this.parseTagName();
3204
- return i !== h ? this.error(A.UNMATCHED_CLOSING_TAG, H(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3239
+ return i !== h ? this.error(S.UNMATCHED_CLOSING_TAG, A(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3205
3240
  val: {
3206
- type: D.tag,
3241
+ type: M.tag,
3207
3242
  value: i,
3208
3243
  children: s,
3209
- location: H(n, this.clonePosition())
3244
+ location: A(n, this.clonePosition())
3210
3245
  },
3211
3246
  err: null
3212
- } : this.error(A.INVALID_TAG, H(a, this.clonePosition())));
3247
+ } : this.error(S.INVALID_TAG, A(a, this.clonePosition())));
3213
3248
  } else
3214
- return this.error(A.UNCLOSED_TAG, H(n, this.clonePosition()));
3249
+ return this.error(S.UNCLOSED_TAG, A(n, this.clonePosition()));
3215
3250
  } else
3216
- return this.error(A.INVALID_TAG, H(n, this.clonePosition()));
3251
+ return this.error(S.INVALID_TAG, A(n, this.clonePosition()));
3217
3252
  }, e.prototype.parseTagName = function() {
3218
3253
  var t = this.offset();
3219
- for (this.bump(); !this.isEOF() && io(this.char()); )
3254
+ for (this.bump(); !this.isEOF() && uo(this.char()); )
3220
3255
  this.bump();
3221
3256
  return this.message.slice(t, this.offset());
3222
3257
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3238,14 +3273,14 @@ var ro = (
3238
3273
  }
3239
3274
  break;
3240
3275
  }
3241
- var f = H(n, this.clonePosition());
3276
+ var f = A(n, this.clonePosition());
3242
3277
  return {
3243
- val: { type: D.literal, value: i, location: f },
3278
+ val: { type: M.literal, value: i, location: f },
3244
3279
  err: null
3245
3280
  };
3246
3281
  }, e.prototype.tryParseLeftAngleBracket = function() {
3247
3282
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3248
- !no(this.peek() || 0)) ? (this.bump(), "<") : null;
3283
+ !ao(this.peek() || 0)) ? (this.bump(), "<") : null;
3249
3284
  }, e.prototype.tryParseQuote = function(t) {
3250
3285
  if (this.isEOF() || this.char() !== 39)
3251
3286
  return null;
@@ -3279,49 +3314,49 @@ var ro = (
3279
3314
  r.push(n);
3280
3315
  this.bump();
3281
3316
  }
3282
- return er.apply(void 0, r);
3317
+ return or.apply(void 0, r);
3283
3318
  }, e.prototype.tryParseUnquoted = function(t, r) {
3284
3319
  if (this.isEOF())
3285
3320
  return null;
3286
3321
  var n = this.char();
3287
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), er(n));
3322
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), or(n));
3288
3323
  }, e.prototype.parseArgument = function(t, r) {
3289
3324
  var n = this.clonePosition();
3290
3325
  if (this.bump(), this.bumpSpace(), this.isEOF())
3291
- return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, H(n, this.clonePosition()));
3326
+ return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
3292
3327
  if (this.char() === 125)
3293
- return this.bump(), this.error(A.EMPTY_ARGUMENT, H(n, this.clonePosition()));
3328
+ return this.bump(), this.error(S.EMPTY_ARGUMENT, A(n, this.clonePosition()));
3294
3329
  var i = this.parseIdentifierIfPossible().value;
3295
3330
  if (!i)
3296
- return this.error(A.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
3331
+ return this.error(S.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
3297
3332
  if (this.bumpSpace(), this.isEOF())
3298
- return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, H(n, this.clonePosition()));
3333
+ return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
3299
3334
  switch (this.char()) {
3300
3335
  case 125:
3301
3336
  return this.bump(), {
3302
3337
  val: {
3303
- type: D.argument,
3338
+ type: M.argument,
3304
3339
  // value does not include the opening and closing braces.
3305
3340
  value: i,
3306
- location: H(n, this.clonePosition())
3341
+ location: A(n, this.clonePosition())
3307
3342
  },
3308
3343
  err: null
3309
3344
  };
3310
3345
  case 44:
3311
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, H(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3346
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3312
3347
  default:
3313
- return this.error(A.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
3348
+ return this.error(S.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
3314
3349
  }
3315
3350
  }, e.prototype.parseIdentifierIfPossible = function() {
3316
- var t = this.clonePosition(), r = this.offset(), n = tr(this.message, r), i = r + n.length;
3351
+ var t = this.clonePosition(), r = this.offset(), n = sr(this.message, r), i = r + n.length;
3317
3352
  this.bumpTo(i);
3318
- var o = this.clonePosition(), s = H(t, o);
3353
+ var o = this.clonePosition(), s = A(t, o);
3319
3354
  return { value: n, location: s };
3320
3355
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3321
3356
  var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, f = this.clonePosition();
3322
3357
  switch (a) {
3323
3358
  case "":
3324
- return this.error(A.EXPECT_ARGUMENT_TYPE, H(s, f));
3359
+ return this.error(S.EXPECT_ARGUMENT_TYPE, A(s, f));
3325
3360
  case "number":
3326
3361
  case "date":
3327
3362
  case "time": {
@@ -3332,46 +3367,46 @@ var ro = (
3332
3367
  var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
3333
3368
  if (d.err)
3334
3369
  return d;
3335
- var p = to(d.val);
3370
+ var p = oo(d.val);
3336
3371
  if (p.length === 0)
3337
- return this.error(A.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
3338
- var _ = H(c, this.clonePosition());
3339
- h = { style: p, styleLocation: _ };
3372
+ return this.error(S.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
3373
+ var E = A(c, this.clonePosition());
3374
+ h = { style: p, styleLocation: E };
3340
3375
  }
3341
- var O = this.tryParseArgumentClose(i);
3342
- if (O.err)
3343
- return O;
3344
- var B = H(i, this.clonePosition());
3345
- if (h && Sr(h?.style, "::", 0)) {
3346
- var ee = eo(h.style.slice(2));
3376
+ var B = this.tryParseArgumentClose(i);
3377
+ if (B.err)
3378
+ return B;
3379
+ var H = A(i, this.clonePosition());
3380
+ if (h && Br(h?.style, "::", 0)) {
3381
+ var Y = io(h.style.slice(2));
3347
3382
  if (a === "number") {
3348
- var d = this.parseNumberSkeletonFromString(ee, h.styleLocation);
3383
+ var d = this.parseNumberSkeletonFromString(Y, h.styleLocation);
3349
3384
  return d.err ? d : {
3350
- val: { type: D.number, value: n, location: B, style: d.val },
3385
+ val: { type: M.number, value: n, location: H, style: d.val },
3351
3386
  err: null
3352
3387
  };
3353
3388
  } else {
3354
- if (ee.length === 0)
3355
- return this.error(A.EXPECT_DATE_TIME_SKELETON, B);
3356
- var de = ee;
3357
- this.locale && (de = ji(ee, this.locale));
3389
+ if (Y.length === 0)
3390
+ return this.error(S.EXPECT_DATE_TIME_SKELETON, H);
3391
+ var ce = Y;
3392
+ this.locale && (ce = Xi(Y, this.locale));
3358
3393
  var p = {
3359
- type: Ve.dateTime,
3360
- pattern: de,
3394
+ type: ke.dateTime,
3395
+ pattern: ce,
3361
3396
  location: h.styleLocation,
3362
- parsedOptions: this.shouldParseSkeletons ? Ni(de) : {}
3363
- }, ie = a === "date" ? D.date : D.time;
3397
+ parsedOptions: this.shouldParseSkeletons ? Fi(ce) : {}
3398
+ }, ne = a === "date" ? M.date : M.time;
3364
3399
  return {
3365
- val: { type: ie, value: n, location: B, style: p },
3400
+ val: { type: ne, value: n, location: H, style: p },
3366
3401
  err: null
3367
3402
  };
3368
3403
  }
3369
3404
  }
3370
3405
  return {
3371
3406
  val: {
3372
- type: a === "number" ? D.number : a === "date" ? D.date : D.time,
3407
+ type: a === "number" ? M.number : a === "date" ? M.date : M.time,
3373
3408
  value: n,
3374
- location: B,
3409
+ location: H,
3375
3410
  style: (o = h?.style) !== null && o !== void 0 ? o : null
3376
3411
  },
3377
3412
  err: null
@@ -3380,41 +3415,41 @@ var ro = (
3380
3415
  case "plural":
3381
3416
  case "selectordinal":
3382
3417
  case "select": {
3383
- var M = this.clonePosition();
3418
+ var I = this.clonePosition();
3384
3419
  if (this.bumpSpace(), !this.bumpIf(","))
3385
- return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, H(M, P({}, M)));
3420
+ return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS, A(I, xt({}, I)));
3386
3421
  this.bumpSpace();
3387
- var $ = this.parseIdentifierIfPossible(), Z = 0;
3388
- if (a !== "select" && $.value === "offset") {
3422
+ var j = this.parseIdentifierIfPossible(), q = 0;
3423
+ if (a !== "select" && j.value === "offset") {
3389
3424
  if (!this.bumpIf(":"))
3390
- return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
3425
+ return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A(this.clonePosition(), this.clonePosition()));
3391
3426
  this.bumpSpace();
3392
- var d = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3427
+ var d = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3393
3428
  if (d.err)
3394
3429
  return d;
3395
- this.bumpSpace(), $ = this.parseIdentifierIfPossible(), Z = d.val;
3430
+ this.bumpSpace(), j = this.parseIdentifierIfPossible(), q = d.val;
3396
3431
  }
3397
- var le = this.tryParsePluralOrSelectOptions(t, a, r, $);
3432
+ var le = this.tryParsePluralOrSelectOptions(t, a, r, j);
3398
3433
  if (le.err)
3399
3434
  return le;
3400
- var O = this.tryParseArgumentClose(i);
3401
- if (O.err)
3402
- return O;
3403
- var be = H(i, this.clonePosition());
3435
+ var B = this.tryParseArgumentClose(i);
3436
+ if (B.err)
3437
+ return B;
3438
+ var be = A(i, this.clonePosition());
3404
3439
  return a === "select" ? {
3405
3440
  val: {
3406
- type: D.select,
3441
+ type: M.select,
3407
3442
  value: n,
3408
- options: Ar(le.val),
3443
+ options: Or(le.val),
3409
3444
  location: be
3410
3445
  },
3411
3446
  err: null
3412
3447
  } : {
3413
3448
  val: {
3414
- type: D.plural,
3449
+ type: M.plural,
3415
3450
  value: n,
3416
- options: Ar(le.val),
3417
- offset: Z,
3451
+ options: Or(le.val),
3452
+ offset: q,
3418
3453
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3419
3454
  location: be
3420
3455
  },
@@ -3422,10 +3457,10 @@ var ro = (
3422
3457
  };
3423
3458
  }
3424
3459
  default:
3425
- return this.error(A.INVALID_ARGUMENT_TYPE, H(s, f));
3460
+ return this.error(S.INVALID_ARGUMENT_TYPE, A(s, f));
3426
3461
  }
3427
3462
  }, e.prototype.tryParseArgumentClose = function(t) {
3428
- return this.isEOF() || this.char() !== 125 ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3463
+ return this.isEOF() || this.char() !== 125 ? this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, A(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3429
3464
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3430
3465
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3431
3466
  var n = this.char();
@@ -3434,7 +3469,7 @@ var ro = (
3434
3469
  this.bump();
3435
3470
  var i = this.clonePosition();
3436
3471
  if (!this.bumpUntil("'"))
3437
- return this.error(A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, H(i, this.clonePosition()));
3472
+ return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, A(i, this.clonePosition()));
3438
3473
  this.bump();
3439
3474
  break;
3440
3475
  }
@@ -3464,16 +3499,16 @@ var ro = (
3464
3499
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3465
3500
  var n = [];
3466
3501
  try {
3467
- n = Ri(t);
3502
+ n = Gi(t);
3468
3503
  } catch {
3469
- return this.error(A.INVALID_NUMBER_SKELETON, r);
3504
+ return this.error(S.INVALID_NUMBER_SKELETON, r);
3470
3505
  }
3471
3506
  return {
3472
3507
  val: {
3473
- type: Ve.number,
3508
+ type: ke.number,
3474
3509
  tokens: n,
3475
3510
  location: r,
3476
- parsedOptions: this.shouldParseSkeletons ? Gi(n) : {}
3511
+ parsedOptions: this.shouldParseSkeletons ? Vi(n) : {}
3477
3512
  },
3478
3513
  err: null
3479
3514
  };
@@ -3482,34 +3517,34 @@ var ro = (
3482
3517
  if (h.length === 0) {
3483
3518
  var d = this.clonePosition();
3484
3519
  if (r !== "select" && this.bumpIf("=")) {
3485
- var p = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
3520
+ var p = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR, S.INVALID_PLURAL_ARGUMENT_SELECTOR);
3486
3521
  if (p.err)
3487
3522
  return p;
3488
- c = H(d, this.clonePosition()), h = this.message.slice(d.offset, this.offset());
3523
+ c = A(d, this.clonePosition()), h = this.message.slice(d.offset, this.offset());
3489
3524
  } else
3490
3525
  break;
3491
3526
  }
3492
3527
  if (f.has(h))
3493
- return this.error(r === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3528
+ return this.error(r === "select" ? S.DUPLICATE_SELECT_ARGUMENT_SELECTOR : S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3494
3529
  h === "other" && (s = !0), this.bumpSpace();
3495
- var _ = this.clonePosition();
3530
+ var E = this.clonePosition();
3496
3531
  if (!this.bumpIf("{"))
3497
- return this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
3498
- var O = this.parseMessage(t + 1, r, n);
3499
- if (O.err)
3500
- return O;
3501
- var B = this.tryParseArgumentClose(_);
3532
+ return this.error(r === "select" ? S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, A(this.clonePosition(), this.clonePosition()));
3533
+ var B = this.parseMessage(t + 1, r, n);
3502
3534
  if (B.err)
3503
3535
  return B;
3536
+ var H = this.tryParseArgumentClose(E);
3537
+ if (H.err)
3538
+ return H;
3504
3539
  a.push([
3505
3540
  h,
3506
3541
  {
3507
- value: O.val,
3508
- location: H(_, this.clonePosition())
3542
+ value: B.val,
3543
+ location: A(E, this.clonePosition())
3509
3544
  }
3510
3545
  ]), f.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, c = o.location;
3511
3546
  }
3512
- return a.length === 0 ? this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR : A.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(A.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3547
+ return a.length === 0 ? this.error(r === "select" ? S.EXPECT_SELECT_ARGUMENT_SELECTOR : S.EXPECT_PLURAL_ARGUMENT_SELECTOR, A(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(S.MISSING_OTHER_CLAUSE, A(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3513
3548
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3514
3549
  var n = 1, i = this.clonePosition();
3515
3550
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3520,8 +3555,8 @@ var ro = (
3520
3555
  else
3521
3556
  break;
3522
3557
  }
3523
- var f = H(i, this.clonePosition());
3524
- return o ? (s *= n, Yi(s) ? { val: s, err: null } : this.error(r, f)) : this.error(t, f);
3558
+ var f = A(i, this.clonePosition());
3559
+ return o ? (s *= n, ro(s) ? { val: s, err: null } : this.error(r, f)) : this.error(t, f);
3525
3560
  }, e.prototype.offset = function() {
3526
3561
  return this.position.offset;
3527
3562
  }, e.prototype.isEOF = function() {
@@ -3536,7 +3571,7 @@ var ro = (
3536
3571
  var t = this.position.offset;
3537
3572
  if (t >= this.message.length)
3538
3573
  throw Error("out of bound");
3539
- var r = ln(this.message, t);
3574
+ var r = dn(this.message, t);
3540
3575
  if (r === void 0)
3541
3576
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3542
3577
  return r;
@@ -3555,7 +3590,7 @@ var ro = (
3555
3590
  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);
3556
3591
  }
3557
3592
  }, e.prototype.bumpIf = function(t) {
3558
- if (Sr(this.message, t, this.offset())) {
3593
+ if (Br(this.message, t, this.offset())) {
3559
3594
  for (var r = 0; r < t.length; r++)
3560
3595
  this.bump();
3561
3596
  return !0;
@@ -3577,7 +3612,7 @@ var ro = (
3577
3612
  break;
3578
3613
  }
3579
3614
  }, e.prototype.bumpSpace = function() {
3580
- for (; !this.isEOF() && fn(this.char()); )
3615
+ for (; !this.isEOF() && mn(this.char()); )
3581
3616
  this.bump();
3582
3617
  }, e.prototype.peek = function() {
3583
3618
  if (this.isEOF())
@@ -3587,47 +3622,47 @@ var ro = (
3587
3622
  }, e;
3588
3623
  }()
3589
3624
  );
3590
- function rr(e) {
3625
+ function ar(e) {
3591
3626
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3592
3627
  }
3593
- function no(e) {
3594
- return rr(e) || e === 47;
3628
+ function ao(e) {
3629
+ return ar(e) || e === 47;
3595
3630
  }
3596
- function io(e) {
3631
+ function uo(e) {
3597
3632
  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;
3598
3633
  }
3599
- function fn(e) {
3634
+ function mn(e) {
3600
3635
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3601
3636
  }
3602
- function oo(e) {
3637
+ function lo(e) {
3603
3638
  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;
3604
3639
  }
3605
- function nr(e) {
3640
+ function ur(e) {
3606
3641
  e.forEach(function(t) {
3607
- if (delete t.location, en(t) || tn(t))
3642
+ if (delete t.location, on(t) || sn(t))
3608
3643
  for (var r in t.options)
3609
- delete t.options[r].location, nr(t.options[r].value);
3644
+ delete t.options[r].location, ur(t.options[r].value);
3610
3645
  else
3611
- Qr(t) && nn(t.style) || (Yr(t) || Kr(t)) && Yt(t.style) ? delete t.style.location : rn(t) && nr(t.children);
3646
+ tn(t) && un(t.style) || (rn(t) || nn(t)) && nr(t.style) ? delete t.style.location : an(t) && ur(t.children);
3612
3647
  });
3613
3648
  }
3614
- function so(e, t) {
3615
- t === void 0 && (t = {}), t = P({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3616
- var r = new ro(e, t).parse();
3649
+ function ho(e, t) {
3650
+ t === void 0 && (t = {}), t = xt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3651
+ var r = new so(e, t).parse();
3617
3652
  if (r.err) {
3618
- var n = SyntaxError(A[r.err.kind]);
3653
+ var n = SyntaxError(S[r.err.kind]);
3619
3654
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3620
3655
  }
3621
- return t?.captureLocation || nr(r.val), r.val;
3656
+ return t?.captureLocation || ur(r.val), r.val;
3622
3657
  }
3623
- var Xe;
3658
+ var Ve;
3624
3659
  (function(e) {
3625
3660
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3626
- })(Xe || (Xe = {}));
3627
- var At = (
3661
+ })(Ve || (Ve = {}));
3662
+ var Bt = (
3628
3663
  /** @class */
3629
3664
  function(e) {
3630
- xe(t, e);
3665
+ Pt(t, e);
3631
3666
  function t(r, n, i) {
3632
3667
  var o = e.call(this, r) || this;
3633
3668
  return o.code = n, o.originalMessage = i, o;
@@ -3636,155 +3671,155 @@ var At = (
3636
3671
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3637
3672
  }, t;
3638
3673
  }(Error)
3639
- ), Br = (
3674
+ ), Ir = (
3640
3675
  /** @class */
3641
3676
  function(e) {
3642
- xe(t, e);
3677
+ Pt(t, e);
3643
3678
  function t(r, n, i, o) {
3644
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Xe.INVALID_VALUE, o) || this;
3679
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ve.INVALID_VALUE, o) || this;
3645
3680
  }
3646
3681
  return t;
3647
- }(At)
3648
- ), ao = (
3682
+ }(Bt)
3683
+ ), fo = (
3649
3684
  /** @class */
3650
3685
  function(e) {
3651
- xe(t, e);
3686
+ Pt(t, e);
3652
3687
  function t(r, n, i) {
3653
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Xe.INVALID_VALUE, i) || this;
3688
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ve.INVALID_VALUE, i) || this;
3654
3689
  }
3655
3690
  return t;
3656
- }(At)
3657
- ), uo = (
3691
+ }(Bt)
3692
+ ), co = (
3658
3693
  /** @class */
3659
3694
  function(e) {
3660
- xe(t, e);
3695
+ Pt(t, e);
3661
3696
  function t(r, n) {
3662
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Xe.MISSING_VALUE, n) || this;
3697
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ve.MISSING_VALUE, n) || this;
3663
3698
  }
3664
3699
  return t;
3665
- }(At)
3666
- ), K;
3700
+ }(Bt)
3701
+ ), Q;
3667
3702
  (function(e) {
3668
3703
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3669
- })(K || (K = {}));
3670
- function lo(e) {
3704
+ })(Q || (Q = {}));
3705
+ function po(e) {
3671
3706
  return e.length < 2 ? e : e.reduce(function(t, r) {
3672
3707
  var n = t[t.length - 1];
3673
- return !n || n.type !== K.literal || r.type !== K.literal ? t.push(r) : n.value += r.value, t;
3708
+ return !n || n.type !== Q.literal || r.type !== Q.literal ? t.push(r) : n.value += r.value, t;
3674
3709
  }, []);
3675
3710
  }
3676
- function ho(e) {
3711
+ function mo(e) {
3677
3712
  return typeof e == "function";
3678
3713
  }
3679
- function vt(e, t, r, n, i, o, s) {
3680
- if (e.length === 1 && _r(e[0]))
3714
+ function _t(e, t, r, n, i, o, s) {
3715
+ if (e.length === 1 && Sr(e[0]))
3681
3716
  return [
3682
3717
  {
3683
- type: K.literal,
3718
+ type: Q.literal,
3684
3719
  value: e[0].value
3685
3720
  }
3686
3721
  ];
3687
3722
  for (var a = [], f = 0, h = e; f < h.length; f++) {
3688
3723
  var c = h[f];
3689
- if (_r(c)) {
3724
+ if (Sr(c)) {
3690
3725
  a.push({
3691
- type: K.literal,
3726
+ type: Q.literal,
3692
3727
  value: c.value
3693
3728
  });
3694
3729
  continue;
3695
3730
  }
3696
- if (Ii(c)) {
3731
+ if (Ri(c)) {
3697
3732
  typeof o == "number" && a.push({
3698
- type: K.literal,
3733
+ type: Q.literal,
3699
3734
  value: r.getNumberFormat(t).format(o)
3700
3735
  });
3701
3736
  continue;
3702
3737
  }
3703
3738
  var d = c.value;
3704
3739
  if (!(i && d in i))
3705
- throw new uo(d, s);
3740
+ throw new co(d, s);
3706
3741
  var p = i[d];
3707
- if (Oi(c)) {
3742
+ if (Mi(c)) {
3708
3743
  (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
3709
- type: typeof p == "string" ? K.literal : K.object,
3744
+ type: typeof p == "string" ? Q.literal : Q.object,
3710
3745
  value: p
3711
3746
  });
3712
3747
  continue;
3713
3748
  }
3714
- if (Yr(c)) {
3715
- var _ = typeof c.style == "string" ? n.date[c.style] : Yt(c.style) ? c.style.parsedOptions : void 0;
3749
+ if (rn(c)) {
3750
+ var E = typeof c.style == "string" ? n.date[c.style] : nr(c.style) ? c.style.parsedOptions : void 0;
3716
3751
  a.push({
3717
- type: K.literal,
3718
- value: r.getDateTimeFormat(t, _).format(p)
3752
+ type: Q.literal,
3753
+ value: r.getDateTimeFormat(t, E).format(p)
3719
3754
  });
3720
3755
  continue;
3721
3756
  }
3722
- if (Kr(c)) {
3723
- var _ = typeof c.style == "string" ? n.time[c.style] : Yt(c.style) ? c.style.parsedOptions : n.time.medium;
3757
+ if (nn(c)) {
3758
+ var E = typeof c.style == "string" ? n.time[c.style] : nr(c.style) ? c.style.parsedOptions : n.time.medium;
3724
3759
  a.push({
3725
- type: K.literal,
3726
- value: r.getDateTimeFormat(t, _).format(p)
3760
+ type: Q.literal,
3761
+ value: r.getDateTimeFormat(t, E).format(p)
3727
3762
  });
3728
3763
  continue;
3729
3764
  }
3730
- if (Qr(c)) {
3731
- var _ = typeof c.style == "string" ? n.number[c.style] : nn(c.style) ? c.style.parsedOptions : void 0;
3732
- _ && _.scale && (p = p * (_.scale || 1)), a.push({
3733
- type: K.literal,
3734
- value: r.getNumberFormat(t, _).format(p)
3765
+ if (tn(c)) {
3766
+ var E = typeof c.style == "string" ? n.number[c.style] : un(c.style) ? c.style.parsedOptions : void 0;
3767
+ E && E.scale && (p = p * (E.scale || 1)), a.push({
3768
+ type: Q.literal,
3769
+ value: r.getNumberFormat(t, E).format(p)
3735
3770
  });
3736
3771
  continue;
3737
3772
  }
3738
- if (rn(c)) {
3739
- var O = c.children, B = c.value, ee = i[B];
3740
- if (!ho(ee))
3741
- throw new ao(B, "function", s);
3742
- var de = vt(O, t, r, n, i, o), ie = ee(de.map(function(Z) {
3743
- return Z.value;
3773
+ if (an(c)) {
3774
+ var B = c.children, H = c.value, Y = i[H];
3775
+ if (!mo(Y))
3776
+ throw new fo(H, "function", s);
3777
+ var ce = _t(B, t, r, n, i, o), ne = Y(ce.map(function(q) {
3778
+ return q.value;
3744
3779
  }));
3745
- Array.isArray(ie) || (ie = [ie]), a.push.apply(a, ie.map(function(Z) {
3780
+ Array.isArray(ne) || (ne = [ne]), a.push.apply(a, ne.map(function(q) {
3746
3781
  return {
3747
- type: typeof Z == "string" ? K.literal : K.object,
3748
- value: Z
3782
+ type: typeof q == "string" ? Q.literal : Q.object,
3783
+ value: q
3749
3784
  };
3750
3785
  }));
3751
3786
  }
3752
- if (en(c)) {
3753
- var M = c.options[p] || c.options.other;
3754
- if (!M)
3755
- throw new Br(c.value, p, Object.keys(c.options), s);
3756
- a.push.apply(a, vt(M.value, t, r, n, i));
3787
+ if (on(c)) {
3788
+ var I = c.options[p] || c.options.other;
3789
+ if (!I)
3790
+ throw new Ir(c.value, p, Object.keys(c.options), s);
3791
+ a.push.apply(a, _t(I.value, t, r, n, i));
3757
3792
  continue;
3758
3793
  }
3759
- if (tn(c)) {
3760
- var M = c.options["=".concat(p)];
3761
- if (!M) {
3794
+ if (sn(c)) {
3795
+ var I = c.options["=".concat(p)];
3796
+ if (!I) {
3762
3797
  if (!Intl.PluralRules)
3763
- throw new At(`Intl.PluralRules is not available in this environment.
3798
+ throw new Bt(`Intl.PluralRules is not available in this environment.
3764
3799
  Try polyfilling it using "@formatjs/intl-pluralrules"
3765
- `, Xe.MISSING_INTL_API, s);
3766
- var $ = r.getPluralRules(t, { type: c.pluralType }).select(p - (c.offset || 0));
3767
- M = c.options[$] || c.options.other;
3800
+ `, Ve.MISSING_INTL_API, s);
3801
+ var j = r.getPluralRules(t, { type: c.pluralType }).select(p - (c.offset || 0));
3802
+ I = c.options[j] || c.options.other;
3768
3803
  }
3769
- if (!M)
3770
- throw new Br(c.value, p, Object.keys(c.options), s);
3771
- a.push.apply(a, vt(M.value, t, r, n, i, p - (c.offset || 0)));
3804
+ if (!I)
3805
+ throw new Ir(c.value, p, Object.keys(c.options), s);
3806
+ a.push.apply(a, _t(I.value, t, r, n, i, p - (c.offset || 0)));
3772
3807
  continue;
3773
3808
  }
3774
3809
  }
3775
- return lo(a);
3810
+ return po(a);
3776
3811
  }
3777
- function fo(e, t) {
3778
- return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3779
- return r[n] = P(P({}, e[n]), t[n] || {}), r;
3812
+ function bo(e, t) {
3813
+ return t ? ge(ge(ge({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3814
+ return r[n] = ge(ge({}, e[n]), t[n] || {}), r;
3780
3815
  }, {})) : e;
3781
3816
  }
3782
- function co(e, t) {
3817
+ function go(e, t) {
3783
3818
  return t ? Object.keys(e).reduce(function(r, n) {
3784
- return r[n] = fo(e[n], t[n]), r;
3785
- }, P({}, e)) : e;
3819
+ return r[n] = bo(e[n], t[n]), r;
3820
+ }, ge({}, e)) : e;
3786
3821
  }
3787
- function Ut(e) {
3822
+ function $t(e) {
3788
3823
  return {
3789
3824
  create: function() {
3790
3825
  return {
@@ -3798,39 +3833,39 @@ function Ut(e) {
3798
3833
  }
3799
3834
  };
3800
3835
  }
3801
- function mo(e) {
3836
+ function vo(e) {
3802
3837
  return e === void 0 && (e = {
3803
3838
  number: {},
3804
3839
  dateTime: {},
3805
3840
  pluralRules: {}
3806
3841
  }), {
3807
- getNumberFormat: Rt(function() {
3842
+ getNumberFormat: Ut(function() {
3808
3843
  for (var t, r = [], n = 0; n < arguments.length; n++)
3809
3844
  r[n] = arguments[n];
3810
- return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
3845
+ return new ((t = Intl.NumberFormat).bind.apply(t, Ft([void 0], r, !1)))();
3811
3846
  }, {
3812
- cache: Ut(e.number),
3813
- strategy: Dt.variadic
3847
+ cache: $t(e.number),
3848
+ strategy: Gt.variadic
3814
3849
  }),
3815
- getDateTimeFormat: Rt(function() {
3850
+ getDateTimeFormat: Ut(function() {
3816
3851
  for (var t, r = [], n = 0; n < arguments.length; n++)
3817
3852
  r[n] = arguments[n];
3818
- return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
3853
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Ft([void 0], r, !1)))();
3819
3854
  }, {
3820
- cache: Ut(e.dateTime),
3821
- strategy: Dt.variadic
3855
+ cache: $t(e.dateTime),
3856
+ strategy: Gt.variadic
3822
3857
  }),
3823
- getPluralRules: Rt(function() {
3858
+ getPluralRules: Ut(function() {
3824
3859
  for (var t, r = [], n = 0; n < arguments.length; n++)
3825
3860
  r[n] = arguments[n];
3826
- return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
3861
+ return new ((t = Intl.PluralRules).bind.apply(t, Ft([void 0], r, !1)))();
3827
3862
  }, {
3828
- cache: Ut(e.pluralRules),
3829
- strategy: Dt.variadic
3863
+ cache: $t(e.pluralRules),
3864
+ strategy: Gt.variadic
3830
3865
  })
3831
3866
  };
3832
3867
  }
3833
- var po = (
3868
+ var yo = (
3834
3869
  /** @class */
3835
3870
  function() {
3836
3871
  function e(t, r, n, i) {
@@ -3845,11 +3880,11 @@ var po = (
3845
3880
  if (h.length === 1)
3846
3881
  return h[0].value;
3847
3882
  var c = h.reduce(function(d, p) {
3848
- return !d.length || p.type !== K.literal || typeof d[d.length - 1] != "string" ? d.push(p.value) : d[d.length - 1] += p.value, d;
3883
+ return !d.length || p.type !== Q.literal || typeof d[d.length - 1] != "string" ? d.push(p.value) : d[d.length - 1] += p.value, d;
3849
3884
  }, []);
3850
3885
  return c.length <= 1 ? c[0] || "" : c;
3851
3886
  }, this.formatToParts = function(f) {
3852
- return vt(o.ast, o.locales, o.formatters, o.formats, f, void 0, o.message);
3887
+ return _t(o.ast, o.locales, o.formatters, o.formats, f, void 0, o.message);
3853
3888
  }, this.resolvedOptions = function() {
3854
3889
  var f;
3855
3890
  return {
@@ -3862,13 +3897,13 @@ var po = (
3862
3897
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3863
3898
  var s = i || {};
3864
3899
  s.formatters;
3865
- var a = Xn(s, ["formatters"]);
3866
- this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
3900
+ var a = Hi(s, ["formatters"]);
3901
+ this.ast = e.__parse(t, ge(ge({}, a), { locale: this.resolvedLocale }));
3867
3902
  } else
3868
3903
  this.ast = t;
3869
3904
  if (!Array.isArray(this.ast))
3870
3905
  throw new TypeError("A message must be provided as a String or AST.");
3871
- this.formats = co(e.formats, n), this.formatters = i && i.formatters || mo(this.formatterCache);
3906
+ this.formats = go(e.formats, n), this.formatters = i && i.formatters || vo(this.formatterCache);
3872
3907
  }
3873
3908
  return Object.defineProperty(e, "defaultLocale", {
3874
3909
  get: function() {
@@ -3881,7 +3916,7 @@ var po = (
3881
3916
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3882
3917
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3883
3918
  }
3884
- }, e.__parse = so, e.formats = {
3919
+ }, e.__parse = ho, e.formats = {
3885
3920
  number: {
3886
3921
  integer: {
3887
3922
  maximumFractionDigits: 0
@@ -3942,7 +3977,7 @@ var po = (
3942
3977
  }, e;
3943
3978
  }()
3944
3979
  );
3945
- function bo(e, t) {
3980
+ function _o(e, t) {
3946
3981
  if (t == null)
3947
3982
  return;
3948
3983
  if (t in e)
@@ -3963,92 +3998,92 @@ function bo(e, t) {
3963
3998
  n = void 0;
3964
3999
  return n;
3965
4000
  }
3966
- const Se = {}, go = (e, t, r) => r && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = r), r), cn = (e, t) => {
4001
+ const Ae = {}, Eo = (e, t, r) => r && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = r), r), bn = (e, t) => {
3967
4002
  if (t == null)
3968
4003
  return;
3969
- if (t in Se && e in Se[t])
3970
- return Se[t][e];
3971
- const r = Ht(t);
4004
+ if (t in Ae && e in Ae[t])
4005
+ return Ae[t][e];
4006
+ const r = Ot(t);
3972
4007
  for (let n = 0; n < r.length; n++) {
3973
- const i = r[n], o = vo(i, e);
4008
+ const i = r[n], o = wo(i, e);
3974
4009
  if (o)
3975
- return go(e, t, o);
4010
+ return Eo(e, t, o);
3976
4011
  }
3977
4012
  };
3978
- let ur;
3979
- const qe = St({});
3980
- function yo(e) {
3981
- return ur[e] || null;
4013
+ let cr;
4014
+ const We = Ht({});
4015
+ function xo(e) {
4016
+ return cr[e] || null;
3982
4017
  }
3983
- function dn(e) {
3984
- return e in ur;
4018
+ function gn(e) {
4019
+ return e in cr;
3985
4020
  }
3986
- function vo(e, t) {
3987
- if (!dn(e))
4021
+ function wo(e, t) {
4022
+ if (!gn(e))
3988
4023
  return null;
3989
- const r = yo(e);
3990
- return bo(r, t);
4024
+ const r = xo(e);
4025
+ return _o(r, t);
3991
4026
  }
3992
- function Eo(e) {
4027
+ function To(e) {
3993
4028
  if (e == null)
3994
4029
  return;
3995
- const t = Ht(e);
4030
+ const t = Ot(e);
3996
4031
  for (let r = 0; r < t.length; r++) {
3997
4032
  const n = t[r];
3998
- if (dn(n))
4033
+ if (gn(n))
3999
4034
  return n;
4000
4035
  }
4001
4036
  }
4002
- function mn(e, ...t) {
4003
- delete Se[e], qe.update((r) => (r[e] = wi.all([r[e] || {}, ...t]), r));
4037
+ function vn(e, ...t) {
4038
+ delete Ae[e], We.update((r) => (r[e] = Ai.all([r[e] || {}, ...t]), r));
4004
4039
  }
4005
- We(
4006
- [qe],
4040
+ ze(
4041
+ [We],
4007
4042
  ([e]) => Object.keys(e)
4008
4043
  );
4009
- qe.subscribe((e) => ur = e);
4044
+ We.subscribe((e) => cr = e);
4010
4045
  const Et = {};
4011
- function _o(e, t) {
4046
+ function So(e, t) {
4012
4047
  Et[e].delete(t), Et[e].size === 0 && delete Et[e];
4013
4048
  }
4014
- function pn(e) {
4049
+ function yn(e) {
4015
4050
  return Et[e];
4016
4051
  }
4017
- function xo(e) {
4018
- return Ht(e).map((t) => {
4019
- const r = pn(t);
4052
+ function Ao(e) {
4053
+ return Ot(e).map((t) => {
4054
+ const r = yn(t);
4020
4055
  return [t, r ? [...r] : []];
4021
4056
  }).filter(([, t]) => t.length > 0);
4022
4057
  }
4023
- function ir(e) {
4024
- return e == null ? !1 : Ht(e).some(
4058
+ function lr(e) {
4059
+ return e == null ? !1 : Ot(e).some(
4025
4060
  (t) => {
4026
4061
  var r;
4027
- return (r = pn(t)) == null ? void 0 : r.size;
4062
+ return (r = yn(t)) == null ? void 0 : r.size;
4028
4063
  }
4029
4064
  );
4030
4065
  }
4031
- function wo(e, t) {
4066
+ function Ho(e, t) {
4032
4067
  return Promise.all(
4033
- t.map((n) => (_o(e, n), n().then((i) => i.default || i)))
4034
- ).then((n) => mn(e, ...n));
4068
+ t.map((n) => (So(e, n), n().then((i) => i.default || i)))
4069
+ ).then((n) => vn(e, ...n));
4035
4070
  }
4036
4071
  const rt = {};
4037
- function bn(e) {
4038
- if (!ir(e))
4072
+ function _n(e) {
4073
+ if (!lr(e))
4039
4074
  return e in rt ? rt[e] : Promise.resolve();
4040
- const t = xo(e);
4075
+ const t = Ao(e);
4041
4076
  return rt[e] = Promise.all(
4042
4077
  t.map(
4043
- ([r, n]) => wo(r, n)
4078
+ ([r, n]) => Ho(r, n)
4044
4079
  )
4045
4080
  ).then(() => {
4046
- if (ir(e))
4047
- return bn(e);
4081
+ if (lr(e))
4082
+ return _n(e);
4048
4083
  delete rt[e];
4049
4084
  }), rt[e];
4050
4085
  }
4051
- const To = {
4086
+ const Po = {
4052
4087
  number: {
4053
4088
  scientific: { notation: "scientific" },
4054
4089
  engineering: { notation: "engineering" },
@@ -4077,150 +4112,150 @@ const To = {
4077
4112
  timeZoneName: "short"
4078
4113
  }
4079
4114
  }
4080
- }, So = {
4115
+ }, Bo = {
4081
4116
  fallbackLocale: null,
4082
4117
  loadingDelay: 200,
4083
- formats: To,
4118
+ formats: Po,
4084
4119
  warnOnMissingMessages: !0,
4085
4120
  handleMissingMessage: void 0,
4086
4121
  ignoreTag: !0
4087
- }, Ao = So;
4088
- function ze() {
4089
- return Ao;
4090
- }
4091
- const Gt = St(!1);
4092
- var Ho = Object.defineProperty, Bo = Object.defineProperties, Po = Object.getOwnPropertyDescriptors, Pr = Object.getOwnPropertySymbols, Co = Object.prototype.hasOwnProperty, Oo = Object.prototype.propertyIsEnumerable, Cr = (e, t, r) => t in e ? Ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Io = (e, t) => {
4093
- for (var r in t)
4094
- Co.call(t, r) && Cr(e, r, t[r]);
4095
- if (Pr)
4096
- for (var r of Pr(t))
4097
- Oo.call(t, r) && Cr(e, r, t[r]);
4122
+ }, Oo = Bo;
4123
+ function Xe() {
4124
+ return Oo;
4125
+ }
4126
+ const kt = Ht(!1);
4127
+ var Co = Object.defineProperty, Io = Object.defineProperties, Lo = Object.getOwnPropertyDescriptors, Lr = Object.getOwnPropertySymbols, No = Object.prototype.hasOwnProperty, Mo = Object.prototype.propertyIsEnumerable, Nr = (e, t, r) => t in e ? Co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ro = (e, t) => {
4128
+ for (var r in t || (t = {}))
4129
+ No.call(t, r) && Nr(e, r, t[r]);
4130
+ if (Lr)
4131
+ for (var r of Lr(t))
4132
+ Mo.call(t, r) && Nr(e, r, t[r]);
4098
4133
  return e;
4099
- }, Lo = (e, t) => Bo(e, Po(t));
4100
- let or;
4101
- const _t = St(null);
4102
- function Or(e) {
4134
+ }, Do = (e, t) => Io(e, Lo(t));
4135
+ let hr;
4136
+ const wt = Ht(null);
4137
+ function Mr(e) {
4103
4138
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4104
4139
  }
4105
- function Ht(e, t = ze().fallbackLocale) {
4106
- const r = Or(e);
4107
- return t ? [.../* @__PURE__ */ new Set([...r, ...Or(t)])] : r;
4140
+ function Ot(e, t = Xe().fallbackLocale) {
4141
+ const r = Mr(e);
4142
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Mr(t)])] : r;
4108
4143
  }
4109
- function Le() {
4110
- return or ?? void 0;
4144
+ function Me() {
4145
+ return hr ?? void 0;
4111
4146
  }
4112
- _t.subscribe((e) => {
4113
- or = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4147
+ wt.subscribe((e) => {
4148
+ hr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4114
4149
  });
4115
- const No = (e) => {
4116
- if (e && Eo(e) && ir(e)) {
4117
- const { loadingDelay: t } = ze();
4150
+ const Fo = (e) => {
4151
+ if (e && To(e) && lr(e)) {
4152
+ const { loadingDelay: t } = Xe();
4118
4153
  let r;
4119
- return typeof window < "u" && Le() != null && t ? r = window.setTimeout(
4120
- () => Gt.set(!0),
4154
+ return typeof window < "u" && Me() != null && t ? r = window.setTimeout(
4155
+ () => kt.set(!0),
4121
4156
  t
4122
- ) : Gt.set(!0), bn(e).then(() => {
4123
- _t.set(e);
4157
+ ) : kt.set(!0), _n(e).then(() => {
4158
+ wt.set(e);
4124
4159
  }).finally(() => {
4125
- clearTimeout(r), Gt.set(!1);
4160
+ clearTimeout(r), kt.set(!1);
4126
4161
  });
4127
4162
  }
4128
- return _t.set(e);
4129
- }, Ae = Lo(Io({}, _t), {
4130
- set: No
4131
- }), Bt = (e) => {
4163
+ return wt.set(e);
4164
+ }, He = Do(Ro({}, wt), {
4165
+ set: Fo
4166
+ }), Ct = (e) => {
4132
4167
  const t = /* @__PURE__ */ Object.create(null);
4133
4168
  return (n) => {
4134
4169
  const i = JSON.stringify(n);
4135
4170
  return i in t ? t[i] : t[i] = e(n);
4136
4171
  };
4137
4172
  };
4138
- var Mo = Object.defineProperty, xt = Object.getOwnPropertySymbols, gn = Object.prototype.hasOwnProperty, yn = Object.prototype.propertyIsEnumerable, Ir = (e, t, r) => t in e ? Mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lr = (e, t) => {
4173
+ var Uo = Object.defineProperty, Tt = Object.getOwnPropertySymbols, En = Object.prototype.hasOwnProperty, xn = Object.prototype.propertyIsEnumerable, Rr = (e, t, r) => t in e ? Uo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dr = (e, t) => {
4139
4174
  for (var r in t || (t = {}))
4140
- gn.call(t, r) && Ir(e, r, t[r]);
4141
- if (xt)
4142
- for (var r of xt(t))
4143
- yn.call(t, r) && Ir(e, r, t[r]);
4175
+ En.call(t, r) && Rr(e, r, t[r]);
4176
+ if (Tt)
4177
+ for (var r of Tt(t))
4178
+ xn.call(t, r) && Rr(e, r, t[r]);
4144
4179
  return e;
4145
- }, Ze = (e, t) => {
4180
+ }, qe = (e, t) => {
4146
4181
  var r = {};
4147
4182
  for (var n in e)
4148
- gn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4149
- if (e != null && xt)
4150
- for (var n of xt(e))
4151
- t.indexOf(n) < 0 && yn.call(e, n) && (r[n] = e[n]);
4183
+ En.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4184
+ if (e != null && Tt)
4185
+ for (var n of Tt(e))
4186
+ t.indexOf(n) < 0 && xn.call(e, n) && (r[n] = e[n]);
4152
4187
  return r;
4153
4188
  };
4154
4189
  const at = (e, t) => {
4155
- const { formats: r } = ze();
4190
+ const { formats: r } = Xe();
4156
4191
  if (e in r && t in r[e])
4157
4192
  return r[e][t];
4158
4193
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4159
- }, Ro = Bt(
4194
+ }, Go = Ct(
4160
4195
  (e) => {
4161
- var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
4196
+ var t = e, { locale: r, format: n } = t, i = qe(t, ["locale", "format"]);
4162
4197
  if (r == null)
4163
4198
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4164
4199
  return n && (i = at("number", n)), new Intl.NumberFormat(r, i);
4165
4200
  }
4166
- ), Do = Bt(
4201
+ ), jo = Ct(
4167
4202
  (e) => {
4168
- var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
4203
+ var t = e, { locale: r, format: n } = t, i = qe(t, ["locale", "format"]);
4169
4204
  if (r == null)
4170
4205
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4171
4206
  return n ? i = at("date", n) : Object.keys(i).length === 0 && (i = at("date", "short")), new Intl.DateTimeFormat(r, i);
4172
4207
  }
4173
- ), Fo = Bt(
4208
+ ), $o = Ct(
4174
4209
  (e) => {
4175
- var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
4210
+ var t = e, { locale: r, format: n } = t, i = qe(t, ["locale", "format"]);
4176
4211
  if (r == null)
4177
4212
  throw new Error(
4178
4213
  '[svelte-i18n] A "locale" must be set to format time values'
4179
4214
  );
4180
4215
  return n ? i = at("time", n) : Object.keys(i).length === 0 && (i = at("time", "short")), new Intl.DateTimeFormat(r, i);
4181
4216
  }
4182
- ), Uo = (e = {}) => {
4217
+ ), ko = (e = {}) => {
4183
4218
  var t = e, {
4184
- locale: r = Le()
4185
- } = t, n = Ze(t, [
4219
+ locale: r = Me()
4220
+ } = t, n = qe(t, [
4186
4221
  "locale"
4187
4222
  ]);
4188
- return Ro(lr({ locale: r }, n));
4189
- }, Go = (e = {}) => {
4223
+ return Go(dr({ locale: r }, n));
4224
+ }, Vo = (e = {}) => {
4190
4225
  var t = e, {
4191
- locale: r = Le()
4192
- } = t, n = Ze(t, [
4226
+ locale: r = Me()
4227
+ } = t, n = qe(t, [
4193
4228
  "locale"
4194
4229
  ]);
4195
- return Do(lr({ locale: r }, n));
4196
- }, jo = (e = {}) => {
4230
+ return jo(dr({ locale: r }, n));
4231
+ }, Xo = (e = {}) => {
4197
4232
  var t = e, {
4198
- locale: r = Le()
4199
- } = t, n = Ze(t, [
4233
+ locale: r = Me()
4234
+ } = t, n = qe(t, [
4200
4235
  "locale"
4201
4236
  ]);
4202
- return Fo(lr({ locale: r }, n));
4203
- }, $o = Bt(
4237
+ return $o(dr({ locale: r }, n));
4238
+ }, zo = Ct(
4204
4239
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4205
- (e, t = Le()) => new po(e, t, ze().formats, {
4206
- ignoreTag: ze().ignoreTag
4240
+ (e, t = Me()) => new yo(e, t, Xe().formats, {
4241
+ ignoreTag: Xe().ignoreTag
4207
4242
  })
4208
- ), ko = (e, t = {}) => {
4243
+ ), Wo = (e, t = {}) => {
4209
4244
  var r, n, i, o;
4210
4245
  let s = t;
4211
4246
  typeof e == "object" && (s = e, e = s.id);
4212
4247
  const {
4213
4248
  values: a,
4214
- locale: f = Le(),
4249
+ locale: f = Me(),
4215
4250
  default: h
4216
4251
  } = s;
4217
4252
  if (f == null)
4218
4253
  throw new Error(
4219
4254
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4220
4255
  );
4221
- let c = cn(e, f);
4256
+ let c = bn(e, f);
4222
4257
  if (!c)
4223
- c = (o = (i = (n = (r = ze()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
4258
+ c = (o = (i = (n = (r = Xe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
4224
4259
  else if (typeof c != "string")
4225
4260
  return console.warn(
4226
4261
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -4229,7 +4264,7 @@ const at = (e, t) => {
4229
4264
  return c;
4230
4265
  let d = c;
4231
4266
  try {
4232
- d = $o(c, f).format(a);
4267
+ d = zo(c, f).format(a);
4233
4268
  } catch (p) {
4234
4269
  p instanceof Error && console.warn(
4235
4270
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4237,25 +4272,25 @@ const at = (e, t) => {
4237
4272
  );
4238
4273
  }
4239
4274
  return d;
4240
- }, Vo = (e, t) => jo(t).format(e), Xo = (e, t) => Go(t).format(e), zo = (e, t) => Uo(t).format(e), Wo = (e, t = Le()) => cn(e, t), qo = We([Ae, qe], () => ko);
4241
- We([Ae], () => Vo);
4242
- We([Ae], () => Xo);
4243
- We([Ae], () => zo);
4244
- We([Ae, qe], () => Wo);
4245
- window.emWidgets = { topic: oi };
4246
- const gs = (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)), Zo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4247
- function Jo({ withLocale: e, translations: t }) {
4248
- Ae.subscribe((r) => {
4249
- r == null && (qe.set(t), Ae.set(e));
4275
+ }, qo = (e, t) => Xo(t).format(e), Zo = (e, t) => Vo(t).format(e), Jo = (e, t) => ko(t).format(e), Qo = (e, t = Me()) => bn(e, t), Yo = ze([He, We], () => Wo);
4276
+ ze([He], () => qo);
4277
+ ze([He], () => Zo);
4278
+ ze([He], () => Jo);
4279
+ ze([He, We], () => Qo);
4280
+ window.emWidgets = { topic: ui };
4281
+ const Ts = (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)), Ko = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4282
+ function es({ withLocale: e, translations: t }) {
4283
+ He.subscribe((r) => {
4284
+ r == null && (We.set(t), He.set(e));
4250
4285
  });
4251
4286
  }
4252
- function jt(e, t) {
4253
- mn(e, t);
4287
+ function Vt(e, t) {
4288
+ vn(e, t);
4254
4289
  }
4255
- function Lr(e) {
4256
- Ae.set(e);
4290
+ function Dr(e) {
4291
+ He.set(e);
4257
4292
  }
4258
- const Nr = {
4293
+ const Fr = {
4259
4294
  en: {
4260
4295
  500: "500 - Internal server error",
4261
4296
  showMore: "Show more",
@@ -4323,7 +4358,7 @@ const Nr = {
4323
4358
  noTournaments: "No tournaments found"
4324
4359
  }
4325
4360
  };
4326
- var sr = { exports: {} };
4361
+ var fr = { exports: {} };
4327
4362
  /** @license
4328
4363
  * eventsource.js
4329
4364
  * Available under MIT License (MIT)
@@ -4331,35 +4366,35 @@ var sr = { exports: {} };
4331
4366
  */
4332
4367
  (function(e, t) {
4333
4368
  (function(r) {
4334
- var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, f = r.EventSource, h = r.document, c = r.Promise, d = r.fetch, p = r.Response, _ = r.TextDecoder, O = r.TextEncoder, B = r.AbortController;
4335
- if (typeof window < "u" && typeof h < "u" && !("readyState" in h) && h.body == null && (h.readyState = "loading", window.addEventListener("load", function(u) {
4369
+ var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, f = r.EventSource, h = r.document, c = r.Promise, d = r.fetch, p = r.Response, E = r.TextDecoder, B = r.TextEncoder, H = r.AbortController;
4370
+ if (typeof window < "u" && typeof h < "u" && !("readyState" in h) && h.body == null && (h.readyState = "loading", window.addEventListener("load", function(l) {
4336
4371
  h.readyState = "complete";
4337
4372
  }, !1)), o == null && a != null && (o = function() {
4338
4373
  return new a("Microsoft.XMLHTTP");
4339
- }), Object.create == null && (Object.create = function(u) {
4374
+ }), Object.create == null && (Object.create = function(l) {
4340
4375
  function b() {
4341
4376
  }
4342
- return b.prototype = u, new b();
4377
+ return b.prototype = l, new b();
4343
4378
  }), Date.now || (Date.now = function() {
4344
4379
  return (/* @__PURE__ */ new Date()).getTime();
4345
- }), B == null) {
4346
- var ee = d;
4347
- d = function(u, b) {
4380
+ }), H == null) {
4381
+ var Y = d;
4382
+ d = function(l, b) {
4348
4383
  var g = b.signal;
4349
- return ee(u, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(m) {
4350
- var v = m.body.getReader();
4351
- return g._reader = v, g._aborted && g._reader.cancel(), {
4384
+ return Y(l, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(m) {
4385
+ var y = m.body.getReader();
4386
+ return g._reader = y, g._aborted && g._reader.cancel(), {
4352
4387
  status: m.status,
4353
4388
  statusText: m.statusText,
4354
4389
  headers: m.headers,
4355
4390
  body: {
4356
4391
  getReader: function() {
4357
- return v;
4392
+ return y;
4358
4393
  }
4359
4394
  }
4360
4395
  };
4361
4396
  });
4362
- }, B = function() {
4397
+ }, H = function() {
4363
4398
  this.signal = {
4364
4399
  _reader: null,
4365
4400
  _aborted: !1
@@ -4368,123 +4403,123 @@ var sr = { exports: {} };
4368
4403
  };
4369
4404
  };
4370
4405
  }
4371
- function de() {
4406
+ function ce() {
4372
4407
  this.bitsNeeded = 0, this.codePoint = 0;
4373
4408
  }
4374
- de.prototype.decode = function(u) {
4375
- function b(C, L, E) {
4376
- if (E === 1)
4377
- return C >= 128 >> L && C << L <= 2047;
4378
- if (E === 2)
4379
- return C >= 2048 >> L && C << L <= 55295 || C >= 57344 >> L && C << L <= 65535;
4380
- if (E === 3)
4381
- return C >= 65536 >> L && C << L <= 1114111;
4409
+ ce.prototype.decode = function(l) {
4410
+ function b(P, O, u) {
4411
+ if (u === 1)
4412
+ return P >= 128 >> O && P << O <= 2047;
4413
+ if (u === 2)
4414
+ return P >= 2048 >> O && P << O <= 55295 || P >= 57344 >> O && P << O <= 65535;
4415
+ if (u === 3)
4416
+ return P >= 65536 >> O && P << O <= 1114111;
4382
4417
  throw new Error();
4383
4418
  }
4384
- function g(C, L) {
4385
- if (C === 6 * 1)
4386
- return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
4387
- if (C === 6 * 2)
4388
- return L > 15 ? 3 : 2;
4389
- if (C === 6 * 3)
4419
+ function g(P, O) {
4420
+ if (P === 6 * 1)
4421
+ return O >> 6 > 15 ? 3 : O > 31 ? 2 : 1;
4422
+ if (P === 6 * 2)
4423
+ return O > 15 ? 3 : 2;
4424
+ if (P === 6 * 3)
4390
4425
  return 3;
4391
4426
  throw new Error();
4392
4427
  }
4393
- for (var m = 65533, v = "", y = this.bitsNeeded, x = this.codePoint, R = 0; R < u.length; R += 1) {
4394
- var T = u[R];
4395
- y !== 0 && (T < 128 || T > 191 || !b(x << 6 | T & 63, y - 6, g(y, x))) && (y = 0, x = m, v += String.fromCharCode(x)), y === 0 ? (T >= 0 && T <= 127 ? (y = 0, x = T) : T >= 192 && T <= 223 ? (y = 6 * 1, x = T & 31) : T >= 224 && T <= 239 ? (y = 6 * 2, x = T & 15) : T >= 240 && T <= 247 ? (y = 6 * 3, x = T & 7) : (y = 0, x = m), y !== 0 && !b(x, y, g(y, x)) && (y = 0, x = m)) : (y -= 6, x = x << 6 | T & 63), y === 0 && (x <= 65535 ? v += String.fromCharCode(x) : (v += String.fromCharCode(55296 + (x - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (x - 65535 - 1 & 1023))));
4428
+ for (var m = 65533, y = "", v = this.bitsNeeded, w = this.codePoint, L = 0; L < l.length; L += 1) {
4429
+ var T = l[L];
4430
+ v !== 0 && (T < 128 || T > 191 || !b(w << 6 | T & 63, v - 6, g(v, w))) && (v = 0, w = m, y += String.fromCharCode(w)), v === 0 ? (T >= 0 && T <= 127 ? (v = 0, w = T) : T >= 192 && T <= 223 ? (v = 6 * 1, w = T & 31) : T >= 224 && T <= 239 ? (v = 6 * 2, w = T & 15) : T >= 240 && T <= 247 ? (v = 6 * 3, w = T & 7) : (v = 0, w = m), v !== 0 && !b(w, v, g(v, w)) && (v = 0, w = m)) : (v -= 6, w = w << 6 | T & 63), v === 0 && (w <= 65535 ? y += String.fromCharCode(w) : (y += String.fromCharCode(55296 + (w - 65535 - 1 >> 10)), y += String.fromCharCode(56320 + (w - 65535 - 1 & 1023))));
4396
4431
  }
4397
- return this.bitsNeeded = y, this.codePoint = x, v;
4432
+ return this.bitsNeeded = v, this.codePoint = w, y;
4398
4433
  };
4399
- var ie = function() {
4434
+ var ne = function() {
4400
4435
  try {
4401
- return new _().decode(new O().encode("test"), { stream: !0 }) === "test";
4402
- } catch (u) {
4403
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + u);
4436
+ return new E().decode(new B().encode("test"), { stream: !0 }) === "test";
4437
+ } catch (l) {
4438
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + l);
4404
4439
  }
4405
4440
  return !1;
4406
4441
  };
4407
- (_ == null || O == null || !ie()) && (_ = de);
4408
- var M = function() {
4442
+ (E == null || B == null || !ne()) && (E = ce);
4443
+ var I = function() {
4409
4444
  };
4410
- function $(u) {
4411
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = M, this.onload = M, this.onerror = M, this.onreadystatechange = M, this._contentType = "", this._xhr = u, this._sendTimeout = 0, this._abort = M;
4445
+ function j(l) {
4446
+ this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = I, this.onload = I, this.onerror = I, this.onreadystatechange = I, this._contentType = "", this._xhr = l, this._sendTimeout = 0, this._abort = I;
4412
4447
  }
4413
- $.prototype.open = function(u, b) {
4448
+ j.prototype.open = function(l, b) {
4414
4449
  this._abort(!0);
4415
- var g = this, m = this._xhr, v = 1, y = 0;
4416
- this._abort = function(E) {
4417
- g._sendTimeout !== 0 && (i(g._sendTimeout), g._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, m.onload = M, m.onerror = M, m.onabort = M, m.onprogress = M, m.onreadystatechange = M, m.abort(), y !== 0 && (i(y), y = 0), E || (g.readyState = 4, g.onabort(null), g.onreadystatechange())), v = 0;
4450
+ var g = this, m = this._xhr, y = 1, v = 0;
4451
+ this._abort = function(u) {
4452
+ g._sendTimeout !== 0 && (i(g._sendTimeout), g._sendTimeout = 0), (y === 1 || y === 2 || y === 3) && (y = 4, m.onload = I, m.onerror = I, m.onabort = I, m.onprogress = I, m.onreadystatechange = I, m.abort(), v !== 0 && (i(v), v = 0), u || (g.readyState = 4, g.onabort(null), g.onreadystatechange())), y = 0;
4418
4453
  };
4419
- var x = function() {
4420
- if (v === 1) {
4421
- var E = 0, l = "", S = void 0;
4454
+ var w = function() {
4455
+ if (y === 1) {
4456
+ var u = 0, _ = "", C = void 0;
4422
4457
  if ("contentType" in m)
4423
- E = 200, l = "OK", S = m.contentType;
4458
+ u = 200, _ = "OK", C = m.contentType;
4424
4459
  else
4425
4460
  try {
4426
- E = m.status, l = m.statusText, S = m.getResponseHeader("Content-Type");
4461
+ u = m.status, _ = m.statusText, C = m.getResponseHeader("Content-Type");
4427
4462
  } catch {
4428
- E = 0, l = "", S = void 0;
4463
+ u = 0, _ = "", C = void 0;
4429
4464
  }
4430
- E !== 0 && (v = 2, g.readyState = 2, g.status = E, g.statusText = l, g._contentType = S, g.onreadystatechange());
4465
+ u !== 0 && (y = 2, g.readyState = 2, g.status = u, g.statusText = _, g._contentType = C, g.onreadystatechange());
4431
4466
  }
4432
- }, R = function() {
4433
- if (x(), v === 2 || v === 3) {
4434
- v = 3;
4435
- var E = "";
4467
+ }, L = function() {
4468
+ if (w(), y === 2 || y === 3) {
4469
+ y = 3;
4470
+ var u = "";
4436
4471
  try {
4437
- E = m.responseText;
4472
+ u = m.responseText;
4438
4473
  } catch {
4439
4474
  }
4440
- g.readyState = 3, g.responseText = E, g.onprogress();
4475
+ g.readyState = 3, g.responseText = u, g.onprogress();
4441
4476
  }
4442
- }, T = function(E, l) {
4443
- if ((l == null || l.preventDefault == null) && (l = {
4444
- preventDefault: M
4445
- }), R(), v === 1 || v === 2 || v === 3) {
4446
- if (v = 4, y !== 0 && (i(y), y = 0), g.readyState = 4, E === "load")
4447
- g.onload(l);
4448
- else if (E === "error")
4449
- g.onerror(l);
4450
- else if (E === "abort")
4451
- g.onabort(l);
4477
+ }, T = function(u, _) {
4478
+ if ((_ == null || _.preventDefault == null) && (_ = {
4479
+ preventDefault: I
4480
+ }), L(), y === 1 || y === 2 || y === 3) {
4481
+ if (y = 4, v !== 0 && (i(v), v = 0), g.readyState = 4, u === "load")
4482
+ g.onload(_);
4483
+ else if (u === "error")
4484
+ g.onerror(_);
4485
+ else if (u === "abort")
4486
+ g.onabort(_);
4452
4487
  else
4453
4488
  throw new TypeError();
4454
4489
  g.onreadystatechange();
4455
4490
  }
4456
- }, C = function(E) {
4457
- m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && T(m.responseText === "" ? "error" : "load", E) : m.readyState === 3 ? "onprogress" in m || R() : m.readyState === 2 && x());
4458
- }, L = function() {
4459
- y = n(function() {
4460
- L();
4461
- }, 500), m.readyState === 3 && R();
4491
+ }, P = function(u) {
4492
+ m != null && (m.readyState === 4 ? (!("onload" in m) || !("onerror" in m) || !("onabort" in m)) && T(m.responseText === "" ? "error" : "load", u) : m.readyState === 3 ? "onprogress" in m || L() : m.readyState === 2 && w());
4493
+ }, O = function() {
4494
+ v = n(function() {
4495
+ O();
4496
+ }, 500), m.readyState === 3 && L();
4462
4497
  };
4463
- "onload" in m && (m.onload = function(E) {
4464
- T("load", E);
4465
- }), "onerror" in m && (m.onerror = function(E) {
4466
- T("error", E);
4467
- }), "onabort" in m && (m.onabort = function(E) {
4468
- T("abort", E);
4469
- }), "onprogress" in m && (m.onprogress = R), "onreadystatechange" in m && (m.onreadystatechange = function(E) {
4470
- C(E);
4471
- }), ("contentType" in m || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(u, b, !0), "readyState" in m && (y = n(function() {
4472
- L();
4498
+ "onload" in m && (m.onload = function(u) {
4499
+ T("load", u);
4500
+ }), "onerror" in m && (m.onerror = function(u) {
4501
+ T("error", u);
4502
+ }), "onabort" in m && (m.onabort = function(u) {
4503
+ T("abort", u);
4504
+ }), "onprogress" in m && (m.onprogress = L), "onreadystatechange" in m && (m.onreadystatechange = function(u) {
4505
+ P(u);
4506
+ }), ("contentType" in m || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(l, b, !0), "readyState" in m && (v = n(function() {
4507
+ O();
4473
4508
  }, 0));
4474
- }, $.prototype.abort = function() {
4509
+ }, j.prototype.abort = function() {
4475
4510
  this._abort(!1);
4476
- }, $.prototype.getResponseHeader = function(u) {
4511
+ }, j.prototype.getResponseHeader = function(l) {
4477
4512
  return this._contentType;
4478
- }, $.prototype.setRequestHeader = function(u, b) {
4513
+ }, j.prototype.setRequestHeader = function(l, b) {
4479
4514
  var g = this._xhr;
4480
- "setRequestHeader" in g && g.setRequestHeader(u, b);
4481
- }, $.prototype.getAllResponseHeaders = function() {
4515
+ "setRequestHeader" in g && g.setRequestHeader(l, b);
4516
+ }, j.prototype.getAllResponseHeaders = function() {
4482
4517
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4483
- }, $.prototype.send = function() {
4518
+ }, j.prototype.send = function() {
4484
4519
  if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && h != null && h.readyState != null && h.readyState !== "complete") {
4485
- var u = this;
4486
- u._sendTimeout = n(function() {
4487
- u._sendTimeout = 0, u.send();
4520
+ var l = this;
4521
+ l._sendTimeout = n(function() {
4522
+ l._sendTimeout = 0, l.send();
4488
4523
  }, 4);
4489
4524
  return;
4490
4525
  }
@@ -4496,279 +4531,302 @@ var sr = { exports: {} };
4496
4531
  throw g;
4497
4532
  }
4498
4533
  };
4499
- function Z(u) {
4500
- return u.replace(/[A-Z]/g, function(b) {
4534
+ function q(l) {
4535
+ return l.replace(/[A-Z]/g, function(b) {
4501
4536
  return String.fromCharCode(b.charCodeAt(0) + 32);
4502
4537
  });
4503
4538
  }
4504
- function le(u) {
4505
- for (var b = /* @__PURE__ */ Object.create(null), g = u.split(`\r
4539
+ function le(l) {
4540
+ for (var b = /* @__PURE__ */ Object.create(null), g = l.split(`\r
4506
4541
  `), m = 0; m < g.length; m += 1) {
4507
- var v = g[m], y = v.split(": "), x = y.shift(), R = y.join(": ");
4508
- b[Z(x)] = R;
4542
+ var y = g[m], v = y.split(": "), w = v.shift(), L = v.join(": ");
4543
+ b[q(w)] = L;
4509
4544
  }
4510
4545
  this._map = b;
4511
4546
  }
4512
- le.prototype.get = function(u) {
4513
- return this._map[Z(u)];
4547
+ le.prototype.get = function(l) {
4548
+ return this._map[q(l)];
4514
4549
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4515
4550
  function be() {
4516
4551
  }
4517
- be.prototype.open = function(u, b, g, m, v, y, x) {
4518
- u.open("GET", v);
4519
- var R = 0;
4520
- u.onprogress = function() {
4521
- var C = u.responseText, L = C.slice(R);
4522
- R += L.length, g(L);
4523
- }, u.onerror = function(C) {
4524
- C.preventDefault(), m(new Error("NetworkError"));
4525
- }, u.onload = function() {
4552
+ be.prototype.open = function(l, b, g, m, y, v, w) {
4553
+ l.open("GET", y);
4554
+ var L = 0;
4555
+ l.onprogress = function() {
4556
+ var P = l.responseText, O = P.slice(L);
4557
+ L += O.length, g(O);
4558
+ }, l.onerror = function(P) {
4559
+ P.preventDefault(), m(new Error("NetworkError"));
4560
+ }, l.onload = function() {
4526
4561
  m(null);
4527
- }, u.onabort = function() {
4562
+ }, l.onabort = function() {
4528
4563
  m(null);
4529
- }, u.onreadystatechange = function() {
4530
- if (u.readyState === o.HEADERS_RECEIVED) {
4531
- var C = u.status, L = u.statusText, E = u.getResponseHeader("Content-Type"), l = u.getAllResponseHeaders();
4532
- b(C, L, E, new le(l));
4564
+ }, l.onreadystatechange = function() {
4565
+ if (l.readyState === o.HEADERS_RECEIVED) {
4566
+ var P = l.status, O = l.statusText, u = l.getResponseHeader("Content-Type"), _ = l.getAllResponseHeaders();
4567
+ b(P, O, u, new le(_));
4533
4568
  }
4534
- }, u.withCredentials = y;
4535
- for (var T in x)
4536
- Object.prototype.hasOwnProperty.call(x, T) && u.setRequestHeader(T, x[T]);
4537
- return u.send(), u;
4569
+ }, l.withCredentials = v;
4570
+ for (var T in w)
4571
+ Object.prototype.hasOwnProperty.call(w, T) && l.setRequestHeader(T, w[T]);
4572
+ return l.send(), l;
4538
4573
  };
4539
- function Ne(u) {
4540
- this._headers = u;
4574
+ function Re(l) {
4575
+ this._headers = l;
4541
4576
  }
4542
- Ne.prototype.get = function(u) {
4543
- return this._headers.get(u);
4577
+ Re.prototype.get = function(l) {
4578
+ return this._headers.get(l);
4544
4579
  };
4545
- function He() {
4580
+ function Pe() {
4546
4581
  }
4547
- He.prototype.open = function(u, b, g, m, v, y, x) {
4548
- var R = null, T = new B(), C = T.signal, L = new _();
4549
- return d(v, {
4550
- headers: x,
4551
- credentials: y ? "include" : "same-origin",
4552
- signal: C,
4582
+ Pe.prototype.open = function(l, b, g, m, y, v, w) {
4583
+ var L = null, T = new H(), P = T.signal, O = new E();
4584
+ return d(y, {
4585
+ headers: w,
4586
+ credentials: v ? "include" : "same-origin",
4587
+ signal: P,
4553
4588
  cache: "no-store"
4554
- }).then(function(E) {
4555
- return R = E.body.getReader(), b(E.status, E.statusText, E.headers.get("Content-Type"), new Ne(E.headers)), new c(function(l, S) {
4556
- var N = function() {
4557
- R.read().then(function(I) {
4558
- if (I.done)
4559
- l(void 0);
4589
+ }).then(function(u) {
4590
+ return L = u.body.getReader(), b(u.status, u.statusText, u.headers.get("Content-Type"), new Re(u.headers)), new c(function(_, C) {
4591
+ var D = function() {
4592
+ L.read().then(function(W) {
4593
+ if (W.done)
4594
+ _(void 0);
4560
4595
  else {
4561
- var k = L.decode(I.value, { stream: !0 });
4562
- g(k), N();
4596
+ var U = O.decode(W.value, { stream: !0 });
4597
+ g(U), D();
4563
4598
  }
4564
- }).catch(function(I) {
4565
- S(I);
4599
+ }).catch(function(W) {
4600
+ C(W);
4566
4601
  });
4567
4602
  };
4568
- N();
4603
+ D();
4569
4604
  });
4570
- }).catch(function(E) {
4571
- if (E.name !== "AbortError")
4572
- return E;
4573
- }).then(function(E) {
4574
- m(E);
4605
+ }).catch(function(u) {
4606
+ if (u.name !== "AbortError")
4607
+ return u;
4608
+ }).then(function(u) {
4609
+ m(u);
4575
4610
  }), {
4576
4611
  abort: function() {
4577
- R?.cancel(), T.abort();
4612
+ L?.cancel(), T.abort();
4578
4613
  }
4579
4614
  };
4580
4615
  };
4581
- function me() {
4616
+ function de() {
4582
4617
  this._listeners = /* @__PURE__ */ Object.create(null);
4583
4618
  }
4584
- function Be(u) {
4619
+ function Be(l) {
4585
4620
  n(function() {
4586
- throw u;
4621
+ throw l;
4587
4622
  }, 0);
4588
4623
  }
4589
- me.prototype.dispatchEvent = function(u) {
4590
- u.target = this;
4591
- var b = this._listeners[u.type];
4624
+ de.prototype.dispatchEvent = function(l) {
4625
+ l.target = this;
4626
+ var b = this._listeners[l.type];
4592
4627
  if (b != null)
4593
4628
  for (var g = b.length, m = 0; m < g; m += 1) {
4594
- var v = b[m];
4629
+ var y = b[m];
4595
4630
  try {
4596
- typeof v.handleEvent == "function" ? v.handleEvent(u) : v.call(this, u);
4597
- } catch (y) {
4598
- Be(y);
4631
+ typeof y.handleEvent == "function" ? y.handleEvent(l) : y.call(this, l);
4632
+ } catch (v) {
4633
+ Be(v);
4599
4634
  }
4600
4635
  }
4601
- }, me.prototype.addEventListener = function(u, b) {
4602
- u = String(u);
4603
- var g = this._listeners, m = g[u];
4604
- m == null && (m = [], g[u] = m);
4605
- for (var v = !1, y = 0; y < m.length; y += 1)
4606
- m[y] === b && (v = !0);
4607
- v || m.push(b);
4608
- }, me.prototype.removeEventListener = function(u, b) {
4609
- u = String(u);
4610
- var g = this._listeners, m = g[u];
4636
+ }, de.prototype.addEventListener = function(l, b) {
4637
+ l = String(l);
4638
+ var g = this._listeners, m = g[l];
4639
+ m == null && (m = [], g[l] = m);
4640
+ for (var y = !1, v = 0; v < m.length; v += 1)
4641
+ m[v] === b && (y = !0);
4642
+ y || m.push(b);
4643
+ }, de.prototype.removeEventListener = function(l, b) {
4644
+ l = String(l);
4645
+ var g = this._listeners, m = g[l];
4611
4646
  if (m != null) {
4612
- for (var v = [], y = 0; y < m.length; y += 1)
4613
- m[y] !== b && v.push(m[y]);
4614
- v.length === 0 ? delete g[u] : g[u] = v;
4647
+ for (var y = [], v = 0; v < m.length; v += 1)
4648
+ m[v] !== b && y.push(m[v]);
4649
+ y.length === 0 ? delete g[l] : g[l] = y;
4615
4650
  }
4616
4651
  };
4617
- function te(u) {
4618
- this.type = u, this.target = void 0;
4652
+ function K(l) {
4653
+ this.type = l, this.target = void 0;
4619
4654
  }
4620
- function lt(u, b) {
4621
- te.call(this, u), this.data = b.data, this.lastEventId = b.lastEventId;
4655
+ function ht(l, b) {
4656
+ K.call(this, l), this.data = b.data, this.lastEventId = b.lastEventId;
4622
4657
  }
4623
- lt.prototype = Object.create(te.prototype);
4624
- function Pe(u, b) {
4625
- te.call(this, u), this.status = b.status, this.statusText = b.statusText, this.headers = b.headers;
4658
+ ht.prototype = Object.create(K.prototype);
4659
+ function Oe(l, b) {
4660
+ K.call(this, l), this.status = b.status, this.statusText = b.statusText, this.headers = b.headers;
4626
4661
  }
4627
- Pe.prototype = Object.create(te.prototype);
4628
- function Je(u, b) {
4629
- te.call(this, u), this.error = b.error;
4662
+ Oe.prototype = Object.create(K.prototype);
4663
+ function Ze(l, b) {
4664
+ K.call(this, l), this.error = b.error;
4630
4665
  }
4631
- Je.prototype = Object.create(te.prototype);
4632
- var Ce = -1, W = 0, he = 1, ge = 2, oe = -1, se = 0, ye = 1, Qe = 2, pe = 3, Ye = /^text\/event\-stream(;.*)?$/i, ht = 1e3, Pt = 18e6, Ke = function(u, b) {
4633
- var g = u == null ? b : parseInt(u, 10);
4634
- return g !== g && (g = b), Me(g);
4635
- }, Me = function(u) {
4636
- return Math.min(Math.max(u, ht), Pt);
4637
- }, we = function(u, b, g) {
4666
+ Ze.prototype = Object.create(K.prototype);
4667
+ var Ce = -1, ie = 0, z = 1, pe = 2, we = -1, $ = 0, Te = 1, Se = 2, ft = 3, me = /^text\/event\-stream(;.*)?$/i, Je = 1e3, ct = 18e6, Qe = function(l, b) {
4668
+ var g = l == null ? b : parseInt(l, 10);
4669
+ return g !== g && (g = b), Ye(g);
4670
+ }, Ye = function(l) {
4671
+ return Math.min(Math.max(l, Je), ct);
4672
+ }, ve = function(l, b, g) {
4638
4673
  try {
4639
- typeof b == "function" && b.call(u, g);
4674
+ typeof b == "function" && b.call(l, g);
4640
4675
  } catch (m) {
4641
4676
  Be(m);
4642
4677
  }
4643
4678
  };
4644
- function J(u, b) {
4645
- me.call(this), b = b || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, ft(this, u, b);
4679
+ function oe(l, b) {
4680
+ de.call(this), b = b || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, Lt(this, l, b);
4646
4681
  }
4647
- function Ct() {
4682
+ function Ke() {
4648
4683
  return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
4649
4684
  }
4650
- var Ot = d != null && p != null && "body" in p.prototype;
4651
- function ft(u, b, g) {
4685
+ var It = d != null && p != null && "body" in p.prototype;
4686
+ function Lt(l, b, g) {
4652
4687
  b = String(b);
4653
- var m = !!g.withCredentials, v = g.lastEventIdQueryParameterName || "lastEventId", y = Me(1e3), x = Ke(g.heartbeatTimeout, 45e3), R = "", T = y, C = !1, L = 0, E = g.headers || {}, l = g.Transport, S = Ot && l == null ? void 0 : new $(l != null ? new l() : Ct()), N = l != null && typeof l != "string" ? new l() : S == null ? new He() : new be(), I = void 0, k = 0, q = Ce, Te = "", et = "", G = "", ct = "", Q = se, It = 0, Oe = 0, vn = function(V, j, ae, ue) {
4654
- if (q === W)
4655
- if (V === 200 && ae != null && Ye.test(ae)) {
4656
- q = he, C = Date.now(), T = y, u.readyState = he;
4657
- var Y = new Pe("open", {
4658
- status: V,
4659
- statusText: j,
4688
+ var m = !!g.withCredentials, y = g.lastEventIdQueryParameterName || "lastEventId", v = Ye(1e3), w = Qe(g.heartbeatTimeout, 45e3), L = "", T = v, P = !1, O = 0, u = g.headers || {}, _ = g.Transport, C = It && _ == null ? void 0 : new j(_ != null ? new _() : Ke()), D = _ != null && typeof _ != "string" ? new _() : C == null ? new Pe() : new be(), W = void 0, U = 0, se = Ce, Ie = "", ee = "", ye = "", dt = "", Z = $, Nt = 0, Le = 0, wn = function(k, G, ae, ue) {
4689
+ if (se === ie)
4690
+ if (k === 200 && ae != null && me.test(ae)) {
4691
+ se = z, P = Date.now(), T = v, l.readyState = z;
4692
+ var J = new Oe("open", {
4693
+ status: k,
4694
+ statusText: G,
4660
4695
  headers: ue
4661
4696
  });
4662
- u.dispatchEvent(Y), we(u, u.onopen, Y);
4697
+ l.dispatchEvent(J), ve(l, l.onopen, J);
4663
4698
  } else {
4664
- var X = "";
4665
- V !== 200 ? (j && (j = j.replace(/\s+/g, " ")), X = "EventSource's response has a status " + V + " " + j + " that is not 200. Aborting the connection.") : X = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Lt();
4666
- var Y = new Pe("error", {
4667
- status: V,
4668
- statusText: j,
4699
+ var V = "";
4700
+ k !== 200 ? (G && (G = G.replace(/\s+/g, " ")), V = "EventSource's response has a status " + k + " " + G + " that is not 200. Aborting the connection.") : V = "EventSource's response has a Content-Type specifying an unsupported type: " + (ae == null ? "-" : ae.replace(/\s+/g, " ")) + ". Aborting the connection.", Mt();
4701
+ var J = new Oe("error", {
4702
+ status: k,
4703
+ statusText: G,
4669
4704
  headers: ue
4670
4705
  });
4671
- u.dispatchEvent(Y), we(u, u.onerror, Y), console.error(X);
4706
+ l.dispatchEvent(J), ve(l, l.onerror, J), console.error(V);
4672
4707
  }
4673
- }, En = function(V) {
4674
- if (q === he) {
4675
- for (var j = -1, ae = 0; ae < V.length; ae += 1) {
4676
- var ue = V.charCodeAt(ae);
4677
- (ue === 10 || ue === 13) && (j = ae);
4708
+ }, Tn = function(k) {
4709
+ if (se === z) {
4710
+ for (var G = -1, ae = 0; ae < k.length; ae += 1) {
4711
+ var ue = k.charCodeAt(ae);
4712
+ (ue === 10 || ue === 13) && (G = ae);
4678
4713
  }
4679
- var Y = (j !== -1 ? ct : "") + V.slice(0, j + 1);
4680
- ct = (j === -1 ? ct : "") + V.slice(j + 1), V !== "" && (C = Date.now(), L += V.length);
4681
- for (var X = 0; X < Y.length; X += 1) {
4682
- var ue = Y.charCodeAt(X);
4683
- if (Q === oe && ue === 10)
4684
- Q = se;
4685
- else if (Q === oe && (Q = se), ue === 13 || ue === 10) {
4686
- if (Q !== se) {
4687
- Q === ye && (Oe = X + 1);
4688
- var ve = Y.slice(It, Oe - 1), Ee = Y.slice(Oe + (Oe < X && Y.charCodeAt(Oe) === 32 ? 1 : 0), X);
4689
- ve === "data" ? (Te += `
4690
- `, Te += Ee) : ve === "id" ? et = Ee : ve === "event" ? G = Ee : ve === "retry" ? (y = Ke(Ee, y), T = y) : ve === "heartbeatTimeout" && (x = Ke(Ee, x), k !== 0 && (i(k), k = n(function() {
4714
+ var J = (G !== -1 ? dt : "") + k.slice(0, G + 1);
4715
+ dt = (G === -1 ? dt : "") + k.slice(G + 1), k !== "" && (P = Date.now(), O += k.length);
4716
+ for (var V = 0; V < J.length; V += 1) {
4717
+ var ue = J.charCodeAt(V);
4718
+ if (Z === we && ue === 10)
4719
+ Z = $;
4720
+ else if (Z === we && (Z = $), ue === 13 || ue === 10) {
4721
+ if (Z !== $) {
4722
+ Z === Te && (Le = V + 1);
4723
+ var _e = J.slice(Nt, Le - 1), Ee = J.slice(Le + (Le < V && J.charCodeAt(Le) === 32 ? 1 : 0), V);
4724
+ _e === "data" ? (Ie += `
4725
+ `, Ie += Ee) : _e === "id" ? ee = Ee : _e === "event" ? ye = Ee : _e === "retry" ? (v = Qe(Ee, v), T = v) : _e === "heartbeatTimeout" && (w = Qe(Ee, w), U !== 0 && (i(U), U = n(function() {
4691
4726
  tt();
4692
- }, x)));
4727
+ }, w)));
4693
4728
  }
4694
- if (Q === se) {
4695
- if (Te !== "") {
4696
- R = et, G === "" && (G = "message");
4697
- var De = new lt(G, {
4698
- data: Te.slice(1),
4699
- lastEventId: et
4729
+ if (Z === $) {
4730
+ if (Ie !== "") {
4731
+ L = ee, ye === "" && (ye = "message");
4732
+ var De = new ht(ye, {
4733
+ data: Ie.slice(1),
4734
+ lastEventId: ee
4700
4735
  });
4701
- if (u.dispatchEvent(De), G === "open" ? we(u, u.onopen, De) : G === "message" ? we(u, u.onmessage, De) : G === "error" && we(u, u.onerror, De), q === ge)
4736
+ if (l.dispatchEvent(De), ye === "open" ? ve(l, l.onopen, De) : ye === "message" ? ve(l, l.onmessage, De) : ye === "error" && ve(l, l.onerror, De), se === pe)
4702
4737
  return;
4703
4738
  }
4704
- Te = "", G = "";
4739
+ Ie = "", ye = "";
4705
4740
  }
4706
- Q = ue === 13 ? oe : se;
4741
+ Z = ue === 13 ? we : $;
4707
4742
  } else
4708
- Q === se && (It = X, Q = ye), Q === ye ? ue === 58 && (Oe = X + 1, Q = Qe) : Q === Qe && (Q = pe);
4743
+ Z === $ && (Nt = V, Z = Te), Z === Te ? ue === 58 && (Le = V + 1, Z = Se) : Z === Se && (Z = ft);
4709
4744
  }
4710
4745
  }
4711
- }, hr = function(V) {
4712
- if (q === he || q === W) {
4713
- q = Ce, k !== 0 && (i(k), k = 0), k = n(function() {
4746
+ }, pr = function(k) {
4747
+ if (se === z || se === ie) {
4748
+ se = Ce, U !== 0 && (i(U), U = 0), U = n(function() {
4714
4749
  tt();
4715
- }, T), T = Me(Math.min(y * 16, T * 2)), u.readyState = W;
4716
- var j = new Je("error", { error: V });
4717
- u.dispatchEvent(j), we(u, u.onerror, j), V != null && console.error(V);
4750
+ }, T), T = Ye(Math.min(v * 16, T * 2)), l.readyState = ie;
4751
+ var G = new Ze("error", { error: k });
4752
+ l.dispatchEvent(G), ve(l, l.onerror, G), k != null && console.error(k);
4718
4753
  }
4719
- }, Lt = function() {
4720
- q = ge, I != null && (I.abort(), I = void 0), k !== 0 && (i(k), k = 0), u.readyState = ge;
4754
+ }, Mt = function() {
4755
+ se = pe, W != null && (W.abort(), W = void 0), U !== 0 && (i(U), U = 0), l.readyState = pe;
4721
4756
  }, tt = function() {
4722
- if (k = 0, q !== Ce) {
4723
- if (!C && I != null)
4724
- hr(new Error("No activity within " + x + " milliseconds. " + (q === W ? "No response received." : L + " chars received.") + " Reconnecting.")), I != null && (I.abort(), I = void 0);
4757
+ if (U = 0, se !== Ce) {
4758
+ if (!P && W != null)
4759
+ pr(new Error("No activity within " + w + " milliseconds. " + (se === ie ? "No response received." : O + " chars received.") + " Reconnecting.")), W != null && (W.abort(), W = void 0);
4725
4760
  else {
4726
- var V = Math.max((C || Date.now()) + x - Date.now(), 1);
4727
- C = !1, k = n(function() {
4761
+ var k = Math.max((P || Date.now()) + w - Date.now(), 1);
4762
+ P = !1, U = n(function() {
4728
4763
  tt();
4729
- }, V);
4764
+ }, k);
4730
4765
  }
4731
4766
  return;
4732
4767
  }
4733
- C = !1, L = 0, k = n(function() {
4768
+ P = !1, O = 0, U = n(function() {
4734
4769
  tt();
4735
- }, x), q = W, Te = "", G = "", et = R, ct = "", It = 0, Oe = 0, Q = se;
4736
- var j = b;
4737
- if (b.slice(0, 5) !== "data:" && b.slice(0, 5) !== "blob:" && R !== "") {
4770
+ }, w), se = ie, Ie = "", ye = "", ee = L, dt = "", Nt = 0, Le = 0, Z = $;
4771
+ var G = b;
4772
+ if (b.slice(0, 5) !== "data:" && b.slice(0, 5) !== "blob:" && L !== "") {
4738
4773
  var ae = b.indexOf("?");
4739
- j = ae === -1 ? b : b.slice(0, ae + 1) + b.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, De) {
4740
- return De === v ? "" : Ee;
4741
- }), j += (b.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(R);
4774
+ G = ae === -1 ? b : b.slice(0, ae + 1) + b.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, De) {
4775
+ return De === y ? "" : Ee;
4776
+ }), G += (b.indexOf("?") === -1 ? "?" : "&") + y + "=" + encodeURIComponent(L);
4742
4777
  }
4743
- var ue = u.withCredentials, Y = {};
4744
- Y.Accept = "text/event-stream";
4745
- var X = u.headers;
4746
- if (X != null)
4747
- for (var ve in X)
4748
- Object.prototype.hasOwnProperty.call(X, ve) && (Y[ve] = X[ve]);
4778
+ var ue = l.withCredentials, J = {};
4779
+ J.Accept = "text/event-stream";
4780
+ var V = l.headers;
4781
+ if (V != null)
4782
+ for (var _e in V)
4783
+ Object.prototype.hasOwnProperty.call(V, _e) && (J[_e] = V[_e]);
4749
4784
  try {
4750
- I = N.open(S, vn, En, hr, j, ue, Y);
4785
+ W = D.open(C, wn, Tn, pr, G, ue, J);
4751
4786
  } catch (Ee) {
4752
- throw Lt(), Ee;
4787
+ throw Mt(), Ee;
4753
4788
  }
4754
4789
  };
4755
- u.url = b, u.readyState = W, u.withCredentials = m, u.headers = E, u._close = Lt, tt();
4790
+ l.url = b, l.readyState = ie, l.withCredentials = m, l.headers = u, l._close = Mt, tt();
4756
4791
  }
4757
- J.prototype = Object.create(me.prototype), J.prototype.CONNECTING = W, J.prototype.OPEN = he, J.prototype.CLOSED = ge, J.prototype.close = function() {
4792
+ oe.prototype = Object.create(de.prototype), oe.prototype.CONNECTING = ie, oe.prototype.OPEN = z, oe.prototype.CLOSED = pe, oe.prototype.close = function() {
4758
4793
  this._close();
4759
- }, J.CONNECTING = W, J.OPEN = he, J.CLOSED = ge, J.prototype.withCredentials = void 0;
4760
- var Re = f;
4761
- o != null && (f == null || !("withCredentials" in f.prototype)) && (Re = J), function(u) {
4794
+ }, oe.CONNECTING = ie, oe.OPEN = z, oe.CLOSED = pe, oe.prototype.withCredentials = void 0;
4795
+ var et = f;
4796
+ o != null && (f == null || !("withCredentials" in f.prototype)) && (et = oe), function(l) {
4762
4797
  {
4763
- var b = u(t);
4798
+ var b = l(t);
4764
4799
  b !== void 0 && (e.exports = b);
4765
4800
  }
4766
- }(function(u) {
4767
- u.EventSourcePolyfill = J, u.NativeEventSource = f, u.EventSource = Re;
4801
+ }(function(l) {
4802
+ l.EventSourcePolyfill = oe, l.NativeEventSource = f, l.EventSource = et;
4768
4803
  });
4769
- })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : ai : globalThis);
4770
- })(sr, sr.exports);
4771
- var Qo = sr.exports;
4804
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : hi : globalThis);
4805
+ })(fr, fr.exports);
4806
+ var ts = fr.exports;
4807
+ function rs(e, t) {
4808
+ if (e) {
4809
+ const r = document.createElement("style");
4810
+ r.innerHTML = t, e.appendChild(r);
4811
+ }
4812
+ }
4813
+ function ns(e, t) {
4814
+ const r = new URL(t);
4815
+ fetch(r.href).then((n) => n.text()).then((n) => {
4816
+ const i = document.createElement("style");
4817
+ i.innerHTML = n, e && e.appendChild(i);
4818
+ }).catch((n) => {
4819
+ console.error("There was an error while trying to load client styling from URL", n);
4820
+ });
4821
+ }
4822
+ function is(e, t, r) {
4823
+ if (window.emMessageBus) {
4824
+ const n = document.createElement("style");
4825
+ window.emMessageBus.subscribe(t, (i) => {
4826
+ n.innerHTML = i, e && e.appendChild(n);
4827
+ });
4828
+ }
4829
+ }
4772
4830
  if (typeof window < "u") {
4773
4831
  let e = function(t) {
4774
4832
  return function(...r) {
@@ -4781,7 +4839,7 @@ if (typeof window < "u") {
4781
4839
  }
4782
4840
  };
4783
4841
  };
4784
- customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-rPR6a4OA.js").then(({ default: t }) => {
4842
+ customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-ZPodzMjS.js").then(({ default: t }) => {
4785
4843
  !customElements.get("casino-tournaments-filter-controller") && customElements.define("casino-tournaments-filter-controller", t.element);
4786
4844
  });
4787
4845
  }
@@ -4797,124 +4855,135 @@ if (typeof window < "u") {
4797
4855
  }
4798
4856
  };
4799
4857
  };
4800
- customElements.define = e(customElements.define), import("./CasinoTournamentsListController-DMd3vYND.js").then(({ default: t }) => {
4858
+ customElements.define = e(customElements.define), import("./CasinoTournamentsListController-BYjVebPq.js").then(({ default: t }) => {
4801
4859
  !customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", t.element);
4802
4860
  });
4803
4861
  }
4804
- const Mr = (e) => e.length > 0 && e != "false";
4805
- function Yo(e) {
4806
- wn(e, "svelte-v0e19m", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emw--color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emw--color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}");
4862
+ const Ur = (e) => e.length > 0 && e != "false";
4863
+ function os(e) {
4864
+ Hn(e, "svelte-v0e19m", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emw--color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emw--color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emw--color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}");
4807
4865
  }
4808
- function Ko(e) {
4866
+ function ss(e) {
4809
4867
  let t, r, n, i, o, s, a = (
4810
4868
  /*filtersLoaded*/
4811
- e[19] && Rr(e)
4869
+ e[20] && Gr(e)
4812
4870
  );
4813
- function f(p, _) {
4871
+ function f(p, E) {
4814
4872
  return (
4815
4873
  /*tournamentsNumber*/
4816
- p[20] == 0 ? rs : ts
4874
+ p[21] == 0 ? ls : us
4817
4875
  );
4818
4876
  }
4819
4877
  let h = f(e), c = h(e), d = !/*allTournamentsShown*/
4820
- e[21] && Dr(e);
4878
+ e[22] && jr(e);
4821
4879
  return {
4822
4880
  c() {
4823
- t = z("div"), r = z("div"), n = z("div"), a && a.c(), i = $t(), o = z("div"), c.c(), s = $t(), d && d.c(), U(n, "class", "FirstRow"), U(n, "part", "FirstRow"), U(o, "class", "SecondRow"), U(o, "part", "SecondRow"), U(r, "class", "Tournaments"), U(r, "part", "Tournaments"), U(t, "class", "TournamentsWrapper"), U(t, "part", "TournamentsWrapper");
4881
+ t = X("div"), r = X("div"), n = X("div"), a && a.c(), i = Xt(), o = X("div"), c.c(), s = Xt(), d && d.c(), F(n, "class", "FirstRow"), F(n, "part", "FirstRow"), F(o, "class", "SecondRow"), F(o, "part", "SecondRow"), F(r, "class", "Tournaments"), F(r, "part", "Tournaments"), F(t, "class", "TournamentsWrapper"), F(t, "part", "TournamentsWrapper");
4824
4882
  },
4825
- m(p, _) {
4826
- ce(p, t, _), re(t, r), re(r, n), a && a.m(n, null), re(r, i), re(r, o), c.m(o, null), re(r, s), d && d.m(r, null);
4883
+ m(p, E) {
4884
+ fe(p, t, E), te(t, r), te(r, n), a && a.m(n, null), te(r, i), te(r, o), c.m(o, null), te(r, s), d && d.m(r, null);
4827
4885
  },
4828
- p(p, _) {
4886
+ p(p, E) {
4829
4887
  /*filtersLoaded*/
4830
- p[19] ? a ? a.p(p, _) : (a = Rr(p), a.c(), a.m(n, null)) : a && (a.d(1), a = null), h === (h = f(p)) && c ? c.p(p, _) : (c.d(1), c = h(p), c && (c.c(), c.m(o, null))), /*allTournamentsShown*/
4831
- p[21] ? d && (d.d(1), d = null) : d ? d.p(p, _) : (d = Dr(p), d.c(), d.m(r, null));
4888
+ p[20] ? a ? a.p(p, E) : (a = Gr(p), a.c(), a.m(n, null)) : a && (a.d(1), a = null), h === (h = f(p)) && c ? c.p(p, E) : (c.d(1), c = h(p), c && (c.c(), c.m(o, null))), /*allTournamentsShown*/
4889
+ p[22] ? d && (d.d(1), d = null) : d ? d.p(p, E) : (d = jr(p), d.c(), d.m(r, null));
4832
4890
  },
4833
4891
  d(p) {
4834
- p && ne(t), a && a.d(), c.d(), d && d.d();
4892
+ p && re(t), a && a.d(), c.d(), d && d.d();
4835
4893
  }
4836
4894
  };
4837
4895
  }
4838
- function es(e) {
4896
+ function as(e) {
4839
4897
  let t, r = (
4840
4898
  /*$_*/
4841
- e[22]("500") + ""
4899
+ e[23]("500") + ""
4842
4900
  ), n, i, o, s;
4843
4901
  return {
4844
4902
  c() {
4845
- t = z("p"), n = Ie(r), i = $t(), o = z("p"), s = Ie(
4903
+ t = X("p"), n = Ne(r), i = Xt(), o = X("p"), s = Ne(
4846
4904
  /*error*/
4847
- e[17]
4905
+ e[18]
4848
4906
  );
4849
4907
  },
4850
4908
  m(a, f) {
4851
- ce(a, t, f), re(t, n), ce(a, i, f), ce(a, o, f), re(o, s);
4909
+ fe(a, t, f), te(t, n), fe(a, i, f), fe(a, o, f), te(o, s);
4852
4910
  },
4853
4911
  p(a, f) {
4854
4912
  f[0] & /*$_*/
4855
- 4194304 && r !== (r = /*$_*/
4856
- a[22]("500") + "") && it(n, r), f[0] & /*error*/
4857
- 131072 && it(
4913
+ 8388608 && r !== (r = /*$_*/
4914
+ a[23]("500") + "") && it(n, r), f[0] & /*error*/
4915
+ 262144 && it(
4858
4916
  s,
4859
4917
  /*error*/
4860
- a[17]
4918
+ a[18]
4861
4919
  );
4862
4920
  },
4863
4921
  d(a) {
4864
- a && (ne(t), ne(i), ne(o));
4922
+ a && (re(t), re(i), re(o));
4865
4923
  }
4866
4924
  };
4867
4925
  }
4868
- function Rr(e) {
4926
+ function Gr(e) {
4869
4927
  let t;
4870
4928
  return {
4871
4929
  c() {
4872
- t = z("casino-tournaments-filter-controller"), w(
4930
+ t = X("casino-tournaments-filter-controller"), x(
4873
4931
  t,
4874
4932
  "clientstyling",
4875
4933
  /*clientstyling*/
4876
4934
  e[13]
4877
- ), w(
4935
+ ), x(
4878
4936
  t,
4879
4937
  "clientstylingurl",
4880
4938
  /*clientstylingurl*/
4881
4939
  e[14]
4882
- ), w(
4940
+ ), x(
4883
4941
  t,
4884
4942
  "translationurl",
4885
4943
  /*translationurl*/
4886
4944
  e[4]
4887
- ), w(t, "filters", ss), w(
4945
+ ), x(
4946
+ t,
4947
+ "mbsource",
4948
+ /*mbsource*/
4949
+ e[15]
4950
+ ), x(t, "filters", ds), x(
4888
4951
  t,
4889
4952
  "activefilters",
4890
4953
  /*filters*/
4891
4954
  e[6]
4892
- ), w(t, "exportparts", "FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem");
4955
+ ), x(t, "exportparts", "FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem");
4893
4956
  },
4894
4957
  m(r, n) {
4895
- ce(r, t, n);
4958
+ fe(r, t, n);
4896
4959
  },
4897
4960
  p(r, n) {
4898
4961
  n[0] & /*clientstyling*/
4899
- 8192 && w(
4962
+ 8192 && x(
4900
4963
  t,
4901
4964
  "clientstyling",
4902
4965
  /*clientstyling*/
4903
4966
  r[13]
4904
4967
  ), n[0] & /*clientstylingurl*/
4905
- 16384 && w(
4968
+ 16384 && x(
4906
4969
  t,
4907
4970
  "clientstylingurl",
4908
4971
  /*clientstylingurl*/
4909
4972
  r[14]
4910
4973
  ), n[0] & /*translationurl*/
4911
- 16 && w(
4974
+ 16 && x(
4912
4975
  t,
4913
4976
  "translationurl",
4914
4977
  /*translationurl*/
4915
4978
  r[4]
4979
+ ), n[0] & /*mbsource*/
4980
+ 32768 && x(
4981
+ t,
4982
+ "mbsource",
4983
+ /*mbsource*/
4984
+ r[15]
4916
4985
  ), n[0] & /*filters*/
4917
- 64 && w(
4986
+ 64 && x(
4918
4987
  t,
4919
4988
  "activefilters",
4920
4989
  /*filters*/
@@ -4922,173 +4991,184 @@ function Rr(e) {
4922
4991
  );
4923
4992
  },
4924
4993
  d(r) {
4925
- r && ne(t);
4994
+ r && re(t);
4926
4995
  }
4927
4996
  };
4928
4997
  }
4929
- function ts(e) {
4998
+ function us(e) {
4930
4999
  let t;
4931
5000
  return {
4932
5001
  c() {
4933
- t = z("casino-tournaments-list-controller"), w(
5002
+ t = X("casino-tournaments-list-controller"), x(
4934
5003
  t,
4935
5004
  "clientstyling",
4936
5005
  /*clientstyling*/
4937
5006
  e[13]
4938
- ), w(
5007
+ ), x(
4939
5008
  t,
4940
5009
  "clientstylingurl",
4941
5010
  /*clientstylingurl*/
4942
5011
  e[14]
4943
- ), w(
5012
+ ), x(
4944
5013
  t,
4945
5014
  "translationurl",
4946
5015
  /*translationurl*/
4947
5016
  e[4]
4948
- ), w(
5017
+ ), x(
4949
5018
  t,
4950
5019
  "userid",
4951
5020
  /*userid*/
4952
5021
  e[1]
4953
- ), w(
5022
+ ), x(
4954
5023
  t,
4955
5024
  "numberoftournaments",
4956
5025
  /*numberoftournaments*/
4957
5026
  e[5]
4958
- ), w(
5027
+ ), x(
4959
5028
  t,
4960
5029
  "loginurl",
4961
5030
  /*loginurl*/
4962
5031
  e[9]
4963
- ), w(
5032
+ ), x(
4964
5033
  t,
4965
5034
  "loginevent",
4966
5035
  /*loginevent*/
4967
5036
  e[7]
4968
- ), w(
5037
+ ), x(
4969
5038
  t,
4970
5039
  "registerurl",
4971
5040
  /*registerurl*/
4972
5041
  e[10]
4973
- ), w(
5042
+ ), x(
4974
5043
  t,
4975
5044
  "registerevent",
4976
5045
  /*registerevent*/
4977
5046
  e[8]
4978
- ), w(
5047
+ ), x(
4979
5048
  t,
4980
5049
  "lang",
4981
5050
  /*lang*/
4982
5051
  e[3]
4983
- ), w(
5052
+ ), x(
4984
5053
  t,
4985
5054
  "currency",
4986
5055
  /*currency*/
4987
5056
  e[11]
4988
- ), w(
5057
+ ), x(
4989
5058
  t,
4990
5059
  "keepbrowsercontext",
4991
5060
  /*keepbrowsercontext*/
4992
5061
  e[12]
4993
- ), w(
5062
+ ), x(
5063
+ t,
5064
+ "mbsource",
5065
+ /*mbsource*/
5066
+ e[15]
5067
+ ), x(
4994
5068
  t,
4995
5069
  "session",
4996
5070
  /*session*/
4997
5071
  e[0]
4998
- ), w(
5072
+ ), x(
4999
5073
  t,
5000
5074
  "endpoint",
5001
5075
  /*endpoint*/
5002
5076
  e[2]
5003
- ), w(t, "exportparts", `Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
5077
+ ), x(t, "exportparts", `Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
5004
5078
  TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
5005
5079
  TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
5006
5080
  TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, TournamentList, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper`);
5007
5081
  },
5008
5082
  m(r, n) {
5009
- ce(r, t, n);
5083
+ fe(r, t, n);
5010
5084
  },
5011
5085
  p(r, n) {
5012
5086
  n[0] & /*clientstyling*/
5013
- 8192 && w(
5087
+ 8192 && x(
5014
5088
  t,
5015
5089
  "clientstyling",
5016
5090
  /*clientstyling*/
5017
5091
  r[13]
5018
5092
  ), n[0] & /*clientstylingurl*/
5019
- 16384 && w(
5093
+ 16384 && x(
5020
5094
  t,
5021
5095
  "clientstylingurl",
5022
5096
  /*clientstylingurl*/
5023
5097
  r[14]
5024
5098
  ), n[0] & /*translationurl*/
5025
- 16 && w(
5099
+ 16 && x(
5026
5100
  t,
5027
5101
  "translationurl",
5028
5102
  /*translationurl*/
5029
5103
  r[4]
5030
5104
  ), n[0] & /*userid*/
5031
- 2 && w(
5105
+ 2 && x(
5032
5106
  t,
5033
5107
  "userid",
5034
5108
  /*userid*/
5035
5109
  r[1]
5036
5110
  ), n[0] & /*numberoftournaments*/
5037
- 32 && w(
5111
+ 32 && x(
5038
5112
  t,
5039
5113
  "numberoftournaments",
5040
5114
  /*numberoftournaments*/
5041
5115
  r[5]
5042
5116
  ), n[0] & /*loginurl*/
5043
- 512 && w(
5117
+ 512 && x(
5044
5118
  t,
5045
5119
  "loginurl",
5046
5120
  /*loginurl*/
5047
5121
  r[9]
5048
5122
  ), n[0] & /*loginevent*/
5049
- 128 && w(
5123
+ 128 && x(
5050
5124
  t,
5051
5125
  "loginevent",
5052
5126
  /*loginevent*/
5053
5127
  r[7]
5054
5128
  ), n[0] & /*registerurl*/
5055
- 1024 && w(
5129
+ 1024 && x(
5056
5130
  t,
5057
5131
  "registerurl",
5058
5132
  /*registerurl*/
5059
5133
  r[10]
5060
5134
  ), n[0] & /*registerevent*/
5061
- 256 && w(
5135
+ 256 && x(
5062
5136
  t,
5063
5137
  "registerevent",
5064
5138
  /*registerevent*/
5065
5139
  r[8]
5066
5140
  ), n[0] & /*lang*/
5067
- 8 && w(
5141
+ 8 && x(
5068
5142
  t,
5069
5143
  "lang",
5070
5144
  /*lang*/
5071
5145
  r[3]
5072
5146
  ), n[0] & /*currency*/
5073
- 2048 && w(
5147
+ 2048 && x(
5074
5148
  t,
5075
5149
  "currency",
5076
5150
  /*currency*/
5077
5151
  r[11]
5078
5152
  ), n[0] & /*keepbrowsercontext*/
5079
- 4096 && w(
5153
+ 4096 && x(
5080
5154
  t,
5081
5155
  "keepbrowsercontext",
5082
5156
  /*keepbrowsercontext*/
5083
5157
  r[12]
5158
+ ), n[0] & /*mbsource*/
5159
+ 32768 && x(
5160
+ t,
5161
+ "mbsource",
5162
+ /*mbsource*/
5163
+ r[15]
5084
5164
  ), n[0] & /*session*/
5085
- 1 && w(
5165
+ 1 && x(
5086
5166
  t,
5087
5167
  "session",
5088
5168
  /*session*/
5089
5169
  r[0]
5090
5170
  ), n[0] & /*endpoint*/
5091
- 4 && w(
5171
+ 4 && x(
5092
5172
  t,
5093
5173
  "endpoint",
5094
5174
  /*endpoint*/
@@ -5096,305 +5176,289 @@ function ts(e) {
5096
5176
  );
5097
5177
  },
5098
5178
  d(r) {
5099
- r && ne(t);
5179
+ r && re(t);
5100
5180
  }
5101
5181
  };
5102
5182
  }
5103
- function rs(e) {
5183
+ function ls(e) {
5104
5184
  let t;
5105
5185
  function r(o, s) {
5106
5186
  return (
5107
5187
  /*isLoading*/
5108
- o[18] ? is : ns
5188
+ o[19] ? fs : hs
5109
5189
  );
5110
5190
  }
5111
5191
  let n = r(e), i = n(e);
5112
5192
  return {
5113
5193
  c() {
5114
- i.c(), t = An();
5194
+ i.c(), t = On();
5115
5195
  },
5116
5196
  m(o, s) {
5117
- i.m(o, s), ce(o, t, s);
5197
+ i.m(o, s), fe(o, t, s);
5118
5198
  },
5119
5199
  p(o, s) {
5120
5200
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t.parentNode, t)));
5121
5201
  },
5122
5202
  d(o) {
5123
- o && ne(t), i.d(o);
5203
+ o && re(t), i.d(o);
5124
5204
  }
5125
5205
  };
5126
5206
  }
5127
- function ns(e) {
5207
+ function hs(e) {
5128
5208
  let t, r = (
5129
5209
  /*$_*/
5130
- e[22]("noTournaments") + ""
5210
+ e[23]("noTournaments") + ""
5131
5211
  ), n;
5132
5212
  return {
5133
5213
  c() {
5134
- t = z("p"), n = Ie(r), U(t, "class", "NoTournaments"), U(t, "part", "NoTournaments");
5214
+ t = X("p"), n = Ne(r), F(t, "class", "NoTournaments"), F(t, "part", "NoTournaments");
5135
5215
  },
5136
5216
  m(i, o) {
5137
- ce(i, t, o), re(t, n);
5217
+ fe(i, t, o), te(t, n);
5138
5218
  },
5139
5219
  p(i, o) {
5140
5220
  o[0] & /*$_*/
5141
- 4194304 && r !== (r = /*$_*/
5142
- i[22]("noTournaments") + "") && it(n, r);
5221
+ 8388608 && r !== (r = /*$_*/
5222
+ i[23]("noTournaments") + "") && it(n, r);
5143
5223
  },
5144
5224
  d(i) {
5145
- i && ne(t);
5225
+ i && re(t);
5146
5226
  }
5147
5227
  };
5148
5228
  }
5149
- function is(e) {
5229
+ function fs(e) {
5150
5230
  let t, r = (
5151
5231
  /*$_*/
5152
- e[22]("loading") + ""
5232
+ e[23]("loading") + ""
5153
5233
  ), n;
5154
5234
  return {
5155
5235
  c() {
5156
- t = z("p"), n = Ie(r), U(t, "class", "LoadingMessage"), U(t, "part", "LoadingMessage");
5236
+ t = X("p"), n = Ne(r), F(t, "class", "LoadingMessage"), F(t, "part", "LoadingMessage");
5157
5237
  },
5158
5238
  m(i, o) {
5159
- ce(i, t, o), re(t, n);
5239
+ fe(i, t, o), te(t, n);
5160
5240
  },
5161
5241
  p(i, o) {
5162
5242
  o[0] & /*$_*/
5163
- 4194304 && r !== (r = /*$_*/
5164
- i[22]("loading") + "") && it(n, r);
5243
+ 8388608 && r !== (r = /*$_*/
5244
+ i[23]("loading") + "") && it(n, r);
5165
5245
  },
5166
5246
  d(i) {
5167
- i && ne(t);
5247
+ i && re(t);
5168
5248
  }
5169
5249
  };
5170
5250
  }
5171
- function Dr(e) {
5251
+ function jr(e) {
5172
5252
  let t, r, n, i = (
5173
5253
  /*$_*/
5174
- e[22]("showMore") + ""
5254
+ e[23]("showMore") + ""
5175
5255
  ), o, s, a;
5176
5256
  return {
5177
5257
  c() {
5178
- t = z("div"), r = z("div"), n = z("button"), o = Ie(i), U(n, "class", "ShowMoreButton"), U(n, "part", "ShowMoreButton"), U(n, "title", "Show More"), U(r, "class", "CenterButton"), U(r, "part", "CenterButton"), U(t, "class", "ThirdRow"), U(t, "part", "ThirdRow");
5258
+ t = X("div"), r = X("div"), n = X("button"), o = Ne(i), F(n, "class", "ShowMoreButton"), F(n, "part", "ShowMoreButton"), F(n, "title", "Show More"), F(r, "class", "CenterButton"), F(r, "part", "CenterButton"), F(t, "class", "ThirdRow"), F(t, "part", "ThirdRow");
5179
5259
  },
5180
5260
  m(f, h) {
5181
- ce(f, t, h), re(t, r), re(r, n), re(n, o), s || (a = kt(
5261
+ fe(f, t, h), te(t, r), te(r, n), te(n, o), s || (a = zt(
5182
5262
  n,
5183
5263
  "click",
5184
5264
  /*click_handler*/
5185
- e[32]
5265
+ e[33]
5186
5266
  ), s = !0);
5187
5267
  },
5188
5268
  p(f, h) {
5189
5269
  h[0] & /*$_*/
5190
- 4194304 && i !== (i = /*$_*/
5191
- f[22]("showMore") + "") && it(o, i);
5270
+ 8388608 && i !== (i = /*$_*/
5271
+ f[23]("showMore") + "") && it(o, i);
5192
5272
  },
5193
5273
  d(f) {
5194
- f && ne(t), s = !1, a();
5274
+ f && re(t), s = !1, a();
5195
5275
  }
5196
5276
  };
5197
5277
  }
5198
- function os(e) {
5278
+ function cs(e) {
5199
5279
  let t;
5200
5280
  function r(o, s) {
5201
5281
  return (
5202
5282
  /*hasErrors*/
5203
- o[16] ? es : Ko
5283
+ o[17] ? as : ss
5204
5284
  );
5205
5285
  }
5206
5286
  let n = r(e), i = n(e);
5207
5287
  return {
5208
5288
  c() {
5209
- t = z("div"), i.c();
5289
+ t = X("div"), i.c();
5210
5290
  },
5211
5291
  m(o, s) {
5212
- ce(o, t, s), i.m(t, null), e[33](t);
5292
+ fe(o, t, s), i.m(t, null), e[34](t);
5213
5293
  },
5214
5294
  p(o, s) {
5215
5295
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
5216
5296
  },
5217
- i: fe,
5218
- o: fe,
5297
+ i: he,
5298
+ o: he,
5219
5299
  d(o) {
5220
- o && ne(t), i.d(), e[33](null);
5300
+ o && re(t), i.d(), e[34](null);
5221
5301
  }
5222
5302
  };
5223
5303
  }
5224
- let ss = "All,Scheduled,Ongoing,Finished";
5225
- function as(e, t, r) {
5304
+ let ds = "All,Scheduled,Ongoing,Finished";
5305
+ function ps(e, t, r) {
5226
5306
  let n;
5227
- xn(e, qo, (l) => r(22, n = l));
5228
- let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { translationurl: f = "" } = t, { numberoftournaments: h = "6" } = t, { showmorestep: c = "2" } = t, { filters: d = "All" } = t, { loginevent: p = "" } = t, { registerevent: _ = "" } = t, { loginurl: O = "" } = t, { registerurl: B = "" } = t, { currency: ee = "EUR" } = t, { keepbrowsercontext: de = "false" } = t, { sorttype: ie = "" } = t, { sortorder: M = "" } = t, { starttimeafter: $ = "" } = t, { showanonymoustournaments: Z = "true" } = t, { clientstyling: le = "" } = t, { clientstylingurl: be = "" } = t, { delaybeforeload: Ne = 1e3 } = t, He = !1, me = "", Be = !1, te = "", lt = window.navigator.userAgent, Pe = !0, Je = !1, Ce = !1, W, he = 0, ge = !1, oe = 6, se = !0, ye = [], Qe, pe, Ye = !1, ht;
5229
- Jo({ withLocale: "en", translations: {} });
5230
- const Pt = () => {
5231
- fetch(f).then((S) => S.json()).then((S) => {
5232
- ht = S, Object.keys(S).forEach((N) => {
5233
- jt(N, S[N]);
5307
+ An(e, Yo, (u) => r(23, n = u));
5308
+ let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { translationurl: f = "" } = t, { numberoftournaments: h = "6" } = t, { showmorestep: c = "2" } = t, { filters: d = "All" } = t, { loginevent: p = "" } = t, { registerevent: E = "" } = t, { loginurl: B = "" } = t, { registerurl: H = "" } = t, { currency: Y = "EUR" } = t, { keepbrowsercontext: ce = "false" } = t, { sorttype: ne = "" } = t, { sortorder: I = "" } = t, { starttimeafter: j = "" } = t, { showanonymoustournaments: q = "true" } = t, { clientstyling: le = "" } = t, { clientstylingurl: be = "" } = t, { delaybeforeload: Re = 1e3 } = t, Pe = !1, de = "", Be = !1, K = "", ht = window.navigator.userAgent, Oe = !0, Ze = !1, Ce = !1, { mbsource: ie } = t, z, pe = 0, we = !1, $ = 6, Te = !0, Se = [], ft, me, Je = !1, ct;
5309
+ es({ withLocale: "en", translations: {} });
5310
+ const Qe = () => {
5311
+ fetch(f).then((_) => _.json()).then((_) => {
5312
+ ct = _, Object.keys(_).forEach((C) => {
5313
+ Vt(C, _[C]);
5234
5314
  });
5235
- }).catch((S) => {
5236
- console.log(S);
5315
+ }).catch((_) => {
5316
+ console.log(_);
5237
5317
  });
5238
- }, Ke = (l) => {
5239
- l && Object.keys(l).forEach((S) => {
5240
- jt(S, l[S]);
5318
+ }, Ye = (u) => {
5319
+ u && Object.keys(u).forEach((_) => {
5320
+ Vt(_, u[_]);
5241
5321
  });
5242
5322
  };
5243
- Object.keys(Nr).forEach((l) => {
5244
- jt(l, Nr[l]);
5323
+ Object.keys(Fr).forEach((u) => {
5324
+ Vt(u, Fr[u]);
5245
5325
  });
5246
- const Me = (l) => {
5247
- l.data && l.data.type === "UserSessionID" && (Be = !0, r(30, te = l.data.session), l.data.userid, J(s, 0, oe)), l.data && l.data.type === "TournamentsFiltersSelected" && (ye = l.data.filters, J(s, 0, oe)), l.data && l.data.type === "TournamentThumbnailMounted" && Ke(ht);
5248
- }, we = (l) => l == "Scheduled" ? "Unstarted" : l == "Ongoing" ? "Running" : "Closing|Closed", J = async (l, S, N) => {
5249
- r(18, Pe = !0), r(20, he = 0);
5250
- const I = await ft(l, S, N);
5326
+ const ve = (u) => {
5327
+ u.data && u.data.type === "UserSessionID" && (Be = !0, r(31, K = u.data.session), u.data.userid, Ke(s, 0, $)), u.data && u.data.type === "TournamentsFiltersSelected" && (Se = u.data.filters, Ke(s, 0, $)), u.data && u.data.type === "TournamentThumbnailMounted" && Ye(ct);
5328
+ }, oe = (u) => u == "Scheduled" ? "Unstarted" : u == "Ongoing" ? "Running" : "Closing|Closed", Ke = async (u, _, C) => {
5329
+ r(19, Oe = !0), r(21, pe = 0);
5330
+ const D = await et(u, _, C);
5251
5331
  setTimeout(
5252
5332
  () => {
5253
5333
  window.postMessage(
5254
5334
  {
5255
5335
  type: "TournamentList",
5256
- tournamentList: I.items
5336
+ tournamentList: D.items
5257
5337
  },
5258
5338
  window.location.href
5259
5339
  );
5260
5340
  },
5261
5341
  50
5262
- ), r(18, Pe = !1);
5263
- }, Ct = async (l, S, N) => {
5264
- const I = await ft(l, S, N);
5342
+ ), r(19, Oe = !1);
5343
+ }, It = async (u, _, C) => {
5344
+ const D = await et(u, _, C);
5265
5345
  window.postMessage(
5266
5346
  {
5267
5347
  type: "TournamentListShowMore",
5268
- tournamentList: I.items
5348
+ tournamentList: D.items
5269
5349
  },
5270
5350
  window.location.href
5271
5351
  );
5272
- }, Ot = () => {
5273
- const l = /* @__PURE__ */ new Date();
5274
- return $ ? l.setDate(l.getDate() - Number($)) : l.setMonth(l.getMonth() - 1), l.toISOString().substring(0, 10);
5275
- }, ft = async (l, S, N) => {
5276
- let I = new URL(`${l}/v1/tournaments`), k = new Headers();
5277
- I.searchParams.append("pagination", `offset=${S},limit=${N}`), I.searchParams.append("sortField", "StartTime"), I.searchParams.append("sortOrder", M || "desc"), I.searchParams.append("language", a);
5278
- const q = { StartTimeAfter: Ot() };
5279
- !Mr(i) && Z === "false" && (q.tags = "no-role-set"), ye.length > 0 && ye[0] != "All" && (q.state = ye.map((G) => we(G)).join("|"));
5280
- const Te = Object.keys(q).map((G) => `${G}=${q[G]}`).join(",");
5281
- return I.searchParams.append("filter", Te), I.searchParams.append("platform", Zo(lt)), ie && I.searchParams.append("sortType", ie), Be && k.append("X-SessionID", te), fetch(I, {
5352
+ }, Lt = () => {
5353
+ const u = /* @__PURE__ */ new Date();
5354
+ return j ? u.setDate(u.getDate() - Number(j)) : u.setMonth(u.getMonth() - 1), u.toISOString().substring(0, 10);
5355
+ }, et = async (u, _, C) => {
5356
+ let D = new URL(`${u}/v1/tournaments`), W = new Headers();
5357
+ D.searchParams.append("pagination", `offset=${_},limit=${C}`), D.searchParams.append("sortField", "StartTime"), D.searchParams.append("sortOrder", I || "desc"), D.searchParams.append("language", a);
5358
+ const U = { StartTimeAfter: Lt() };
5359
+ !Ur(i) && q === "false" && (U.tags = "no-role-set"), Se.length > 0 && Se[0] != "All" && (U.state = Se.map((ee) => oe(ee)).join("|"));
5360
+ const se = Object.keys(U).map((ee) => `${ee}=${U[ee]}`).join(",");
5361
+ return D.searchParams.append("filter", se), D.searchParams.append("platform", Ko(ht)), ne && D.searchParams.append("sortType", ne), Be && W.append("X-SessionID", K), fetch(D, {
5282
5362
  method: "GET",
5283
- headers: k,
5363
+ headers: W,
5284
5364
  cache: "no-cache"
5285
- }).then((G) => G.json()).then((G) => (Qe = I.searchParams.toString(), r(20, he = G.total), oe >= he ? r(21, se = !0) : r(21, se = !1), Ce || u(), G));
5286
- }, Re = (l) => {
5287
- if (l.type != "message")
5365
+ }).then((ee) => ee.json()).then((ee) => (ft = D.searchParams.toString(), r(21, pe = ee.total), $ >= pe ? r(22, Te = !0) : r(22, Te = !1), Ce || b(), ee));
5366
+ }, l = (u) => {
5367
+ if (u.type != "message")
5288
5368
  return;
5289
- let S = l.data;
5290
- if (S)
5369
+ let _ = u.data;
5370
+ if (_)
5291
5371
  try {
5292
- let N = JSON.parse(S);
5293
- if (!N || !N.item)
5372
+ let C = JSON.parse(_);
5373
+ if (!C || !C.item)
5294
5374
  return;
5295
- let I = N.item;
5296
- N.messageType == "TournamentUpdate" && window.postMessage(
5375
+ let D = C.item;
5376
+ C.messageType == "TournamentUpdate" && window.postMessage(
5297
5377
  {
5298
5378
  type: "UpdateTournamentView",
5299
- tournamentData: I
5379
+ tournamentData: D
5300
5380
  },
5301
5381
  window.location.href
5302
- ), N.messageType == "TournamentRemove" && window.postMessage(
5382
+ ), C.messageType == "TournamentRemove" && window.postMessage(
5303
5383
  {
5304
5384
  type: "TournamentList",
5305
- tournamentList: N.items
5385
+ tournamentList: C.items
5306
5386
  },
5307
5387
  window.location.href
5308
5388
  );
5309
- } catch (N) {
5310
- console.error(N);
5389
+ } catch (C) {
5390
+ console.error(C);
5311
5391
  }
5312
- }, u = () => {
5392
+ }, b = () => {
5313
5393
  Ce = !0, setTimeout(
5314
5394
  () => {
5315
5395
  Ce = !1;
5316
5396
  },
5317
5397
  1e3
5318
- ), pe && (pe.removeEventListener("message", Re), pe.close());
5319
- let l = `${s}/v1/tournaments/updates?${Qe}`;
5320
- pe = new Qo.EventSourcePolyfill(
5321
- l,
5398
+ ), me && (me.removeEventListener("message", l), me.close());
5399
+ let u = `${s}/v1/tournaments/updates?${ft}`;
5400
+ me = new ts.EventSourcePolyfill(
5401
+ u,
5322
5402
  {
5323
5403
  headers: {
5324
5404
  accept: "text/event-stream",
5325
5405
  "X-SessionId": i
5326
5406
  }
5327
5407
  }
5328
- ), typeof pe < "u" && pe.addEventListener("message", Re);
5329
- }, b = async () => {
5330
- let l = oe;
5331
- const S = parseInt(c, 10);
5332
- oe += S, window.postMessage(
5408
+ ), typeof me < "u" && me.addEventListener("message", l);
5409
+ }, g = async () => {
5410
+ let u = $;
5411
+ const _ = parseInt(c, 10);
5412
+ $ += _, window.postMessage(
5333
5413
  {
5334
5414
  type: "TournamentsPagination",
5335
5415
  offset: 0,
5336
- limit: oe
5416
+ limit: $
5337
5417
  },
5338
5418
  window.location.href
5339
- ), await Ct(s, l, S), oe >= he && r(21, se = !0);
5340
- }, g = () => (s || (r(17, me = "Endpoint is missing! Please provide a valid endpointURL."), r(16, He = !0), console.error(me)), (!a || a.length != 2) && (r(17, me = "Language is missing! Please provide a valid language (alpha2code)"), r(16, He = !0), console.error(me)), He), m = () => {
5341
- if (!ge)
5419
+ ), await It(s, u, _), $ >= pe && r(22, Te = !0);
5420
+ }, m = () => (s || (r(18, de = "Endpoint is missing! Please provide a valid endpointURL."), r(17, Pe = !0), console.error(de)), (!a || a.length != 2) && (r(18, de = "Language is missing! Please provide a valid language (alpha2code)"), r(17, Pe = !0), console.error(de)), Pe), y = () => {
5421
+ if (!we)
5342
5422
  return !1;
5343
- g() || (oe = parseInt(h, 10), Lr(a), J(s, 0, oe));
5423
+ m() || ($ = parseInt(h, 10), Dr(a), Ke(s, 0, $));
5344
5424
  }, v = () => {
5345
- Lr(a);
5346
- }, y = () => {
5347
- ye = d.split(","), r(19, Je = !0);
5348
- }, x = () => {
5349
- Mr(i) ? (Be = !0, r(30, te = i)) : (Be = !1, r(30, te = ""));
5350
- }, R = async () => {
5351
- Ye || (Ye = !0, await m(), Ye = !1);
5352
- }, T = () => {
5353
- let l = document.createElement("style");
5354
- l.innerHTML = le, W.appendChild(l);
5355
- }, C = () => {
5356
- let l = new URL(be), S = document.createElement("style");
5357
- fetch(l.href).then((N) => N.text()).then((N) => {
5358
- S.innerHTML = N, setTimeout(
5359
- () => {
5360
- W.appendChild(S);
5361
- },
5362
- 1
5363
- ), setTimeout(
5364
- () => {
5365
- },
5366
- 500
5367
- );
5368
- });
5425
+ Dr(a);
5426
+ }, w = () => {
5427
+ Se = d.split(","), r(20, Ze = !0);
5428
+ }, L = () => {
5429
+ Ur(i) ? (Be = !0, r(31, K = i)) : (Be = !1, r(31, K = ""));
5430
+ }, T = async () => {
5431
+ Je || (Je = !0, await y(), Je = !1);
5369
5432
  };
5370
- On(() => (setTimeout(
5433
+ Mn(() => (setTimeout(
5371
5434
  () => {
5372
- r(31, ge = !0);
5435
+ r(32, we = !0);
5373
5436
  },
5374
- Ne
5375
- ), window.addEventListener("message", Me, !1), () => {
5376
- window.removeEventListener("message", Me), pe && (pe.removeEventListener("message", Re), pe.close());
5437
+ Re
5438
+ ), window.addEventListener("message", ve, !1), () => {
5439
+ window.removeEventListener("message", ve), me && (me.removeEventListener("message", l), me.close());
5377
5440
  }));
5378
- const L = () => b();
5379
- function E(l) {
5380
- Vt[l ? "unshift" : "push"](() => {
5381
- W = l, r(15, W);
5441
+ const P = () => g();
5442
+ function O(u) {
5443
+ Wt[u ? "unshift" : "push"](() => {
5444
+ z = u, r(16, z);
5382
5445
  });
5383
5446
  }
5384
- return e.$$set = (l) => {
5385
- "session" in l && r(0, i = l.session), "userid" in l && r(1, o = l.userid), "endpoint" in l && r(2, s = l.endpoint), "lang" in l && r(3, a = l.lang), "translationurl" in l && r(4, f = l.translationurl), "numberoftournaments" in l && r(5, h = l.numberoftournaments), "showmorestep" in l && r(24, c = l.showmorestep), "filters" in l && r(6, d = l.filters), "loginevent" in l && r(7, p = l.loginevent), "registerevent" in l && r(8, _ = l.registerevent), "loginurl" in l && r(9, O = l.loginurl), "registerurl" in l && r(10, B = l.registerurl), "currency" in l && r(11, ee = l.currency), "keepbrowsercontext" in l && r(12, de = l.keepbrowsercontext), "sorttype" in l && r(25, ie = l.sorttype), "sortorder" in l && r(26, M = l.sortorder), "starttimeafter" in l && r(27, $ = l.starttimeafter), "showanonymoustournaments" in l && r(28, Z = l.showanonymoustournaments), "clientstyling" in l && r(13, le = l.clientstyling), "clientstylingurl" in l && r(14, be = l.clientstylingurl), "delaybeforeload" in l && r(29, Ne = l.delaybeforeload);
5447
+ return e.$$set = (u) => {
5448
+ "session" in u && r(0, i = u.session), "userid" in u && r(1, o = u.userid), "endpoint" in u && r(2, s = u.endpoint), "lang" in u && r(3, a = u.lang), "translationurl" in u && r(4, f = u.translationurl), "numberoftournaments" in u && r(5, h = u.numberoftournaments), "showmorestep" in u && r(25, c = u.showmorestep), "filters" in u && r(6, d = u.filters), "loginevent" in u && r(7, p = u.loginevent), "registerevent" in u && r(8, E = u.registerevent), "loginurl" in u && r(9, B = u.loginurl), "registerurl" in u && r(10, H = u.registerurl), "currency" in u && r(11, Y = u.currency), "keepbrowsercontext" in u && r(12, ce = u.keepbrowsercontext), "sorttype" in u && r(26, ne = u.sorttype), "sortorder" in u && r(27, I = u.sortorder), "starttimeafter" in u && r(28, j = u.starttimeafter), "showanonymoustournaments" in u && r(29, q = u.showanonymoustournaments), "clientstyling" in u && r(13, le = u.clientstyling), "clientstylingurl" in u && r(14, be = u.clientstylingurl), "delaybeforeload" in u && r(30, Re = u.delaybeforeload), "mbsource" in u && r(15, ie = u.mbsource);
5386
5449
  }, e.$$.update = () => {
5387
- e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
5388
- 40960 && W && le && T(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
5389
- 49152 && W && be && C(), e.$$.dirty[0] & /*userid*/
5450
+ e.$$.dirty[0] & /*userid*/
5390
5451
  2, e.$$.dirty[0] & /*filters*/
5391
- 64 && d && y(), e.$$.dirty[0] & /*lang*/
5452
+ 64 && d && w(), e.$$.dirty[0] & /*lang*/
5392
5453
  8 && a && v(), e.$$.dirty[0] & /*translationurl*/
5393
- 16 && f && Pt(), e.$$.dirty[1] & /*isMounted*/
5394
- 1 && ge && m(), e.$$.dirty[0] & /*session*/
5395
- 1 && (i === "" || i) && x(), e.$$.dirty[0] & /*sessionID*/
5396
- 1073741824 && (te === "" || te) && R(), e.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, showanonymoustournaments*/
5397
- 285212716 && s && h && c && a && Z && R();
5454
+ 16 && f && Qe(), e.$$.dirty[1] & /*isMounted*/
5455
+ 2 && we && y(), e.$$.dirty[0] & /*session*/
5456
+ 1 && (i === "" || i) && L(), e.$$.dirty[1] & /*sessionID*/
5457
+ 1 && (K === "" || K) && T(), e.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, showanonymoustournaments*/
5458
+ 570425388 && s && h && c && a && q && T(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5459
+ 73728 && le && z && rs(z, le), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5460
+ 81920 && be && z && ns(z, be), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5461
+ 98304 && ie && z && is(z, `${ie}.Style`);
5398
5462
  }, [
5399
5463
  i,
5400
5464
  o,
@@ -5404,42 +5468,43 @@ function as(e, t, r) {
5404
5468
  h,
5405
5469
  d,
5406
5470
  p,
5407
- _,
5408
- O,
5471
+ E,
5409
5472
  B,
5410
- ee,
5411
- de,
5473
+ H,
5474
+ Y,
5475
+ ce,
5412
5476
  le,
5413
5477
  be,
5414
- W,
5415
- He,
5416
- me,
5478
+ ie,
5479
+ z,
5417
5480
  Pe,
5418
- Je,
5419
- he,
5420
- se,
5481
+ de,
5482
+ Oe,
5483
+ Ze,
5484
+ pe,
5485
+ Te,
5421
5486
  n,
5422
- b,
5487
+ g,
5423
5488
  c,
5424
- ie,
5425
- M,
5426
- $,
5427
- Z,
5428
- Ne,
5429
- te,
5430
- ge,
5431
- L,
5432
- E
5489
+ ne,
5490
+ I,
5491
+ j,
5492
+ q,
5493
+ Re,
5494
+ K,
5495
+ we,
5496
+ P,
5497
+ O
5433
5498
  ];
5434
5499
  }
5435
- class us extends kn {
5500
+ class ms extends Wn {
5436
5501
  constructor(t) {
5437
- super(), jn(
5502
+ super(), Xn(
5438
5503
  this,
5439
5504
  t,
5440
- as,
5441
- os,
5442
- Ur,
5505
+ ps,
5506
+ cs,
5507
+ kr,
5443
5508
  {
5444
5509
  session: 0,
5445
5510
  userid: 1,
@@ -5447,7 +5512,7 @@ class us extends kn {
5447
5512
  lang: 3,
5448
5513
  translationurl: 4,
5449
5514
  numberoftournaments: 5,
5450
- showmorestep: 24,
5515
+ showmorestep: 25,
5451
5516
  filters: 6,
5452
5517
  loginevent: 7,
5453
5518
  registerevent: 8,
@@ -5455,15 +5520,16 @@ class us extends kn {
5455
5520
  registerurl: 10,
5456
5521
  currency: 11,
5457
5522
  keepbrowsercontext: 12,
5458
- sorttype: 25,
5459
- sortorder: 26,
5460
- starttimeafter: 27,
5461
- showanonymoustournaments: 28,
5523
+ sorttype: 26,
5524
+ sortorder: 27,
5525
+ starttimeafter: 28,
5526
+ showanonymoustournaments: 29,
5462
5527
  clientstyling: 13,
5463
5528
  clientstylingurl: 14,
5464
- delaybeforeload: 29
5529
+ delaybeforeload: 30,
5530
+ mbsource: 15
5465
5531
  },
5466
- Yo,
5532
+ os,
5467
5533
  [-1, -1, -1]
5468
5534
  );
5469
5535
  }
@@ -5471,168 +5537,177 @@ class us extends kn {
5471
5537
  return this.$$.ctx[0];
5472
5538
  }
5473
5539
  set session(t) {
5474
- this.$$set({ session: t }), F();
5540
+ this.$$set({ session: t }), N();
5475
5541
  }
5476
5542
  get userid() {
5477
5543
  return this.$$.ctx[1];
5478
5544
  }
5479
5545
  set userid(t) {
5480
- this.$$set({ userid: t }), F();
5546
+ this.$$set({ userid: t }), N();
5481
5547
  }
5482
5548
  get endpoint() {
5483
5549
  return this.$$.ctx[2];
5484
5550
  }
5485
5551
  set endpoint(t) {
5486
- this.$$set({ endpoint: t }), F();
5552
+ this.$$set({ endpoint: t }), N();
5487
5553
  }
5488
5554
  get lang() {
5489
5555
  return this.$$.ctx[3];
5490
5556
  }
5491
5557
  set lang(t) {
5492
- this.$$set({ lang: t }), F();
5558
+ this.$$set({ lang: t }), N();
5493
5559
  }
5494
5560
  get translationurl() {
5495
5561
  return this.$$.ctx[4];
5496
5562
  }
5497
5563
  set translationurl(t) {
5498
- this.$$set({ translationurl: t }), F();
5564
+ this.$$set({ translationurl: t }), N();
5499
5565
  }
5500
5566
  get numberoftournaments() {
5501
5567
  return this.$$.ctx[5];
5502
5568
  }
5503
5569
  set numberoftournaments(t) {
5504
- this.$$set({ numberoftournaments: t }), F();
5570
+ this.$$set({ numberoftournaments: t }), N();
5505
5571
  }
5506
5572
  get showmorestep() {
5507
- return this.$$.ctx[24];
5573
+ return this.$$.ctx[25];
5508
5574
  }
5509
5575
  set showmorestep(t) {
5510
- this.$$set({ showmorestep: t }), F();
5576
+ this.$$set({ showmorestep: t }), N();
5511
5577
  }
5512
5578
  get filters() {
5513
5579
  return this.$$.ctx[6];
5514
5580
  }
5515
5581
  set filters(t) {
5516
- this.$$set({ filters: t }), F();
5582
+ this.$$set({ filters: t }), N();
5517
5583
  }
5518
5584
  get loginevent() {
5519
5585
  return this.$$.ctx[7];
5520
5586
  }
5521
5587
  set loginevent(t) {
5522
- this.$$set({ loginevent: t }), F();
5588
+ this.$$set({ loginevent: t }), N();
5523
5589
  }
5524
5590
  get registerevent() {
5525
5591
  return this.$$.ctx[8];
5526
5592
  }
5527
5593
  set registerevent(t) {
5528
- this.$$set({ registerevent: t }), F();
5594
+ this.$$set({ registerevent: t }), N();
5529
5595
  }
5530
5596
  get loginurl() {
5531
5597
  return this.$$.ctx[9];
5532
5598
  }
5533
5599
  set loginurl(t) {
5534
- this.$$set({ loginurl: t }), F();
5600
+ this.$$set({ loginurl: t }), N();
5535
5601
  }
5536
5602
  get registerurl() {
5537
5603
  return this.$$.ctx[10];
5538
5604
  }
5539
5605
  set registerurl(t) {
5540
- this.$$set({ registerurl: t }), F();
5606
+ this.$$set({ registerurl: t }), N();
5541
5607
  }
5542
5608
  get currency() {
5543
5609
  return this.$$.ctx[11];
5544
5610
  }
5545
5611
  set currency(t) {
5546
- this.$$set({ currency: t }), F();
5612
+ this.$$set({ currency: t }), N();
5547
5613
  }
5548
5614
  get keepbrowsercontext() {
5549
5615
  return this.$$.ctx[12];
5550
5616
  }
5551
5617
  set keepbrowsercontext(t) {
5552
- this.$$set({ keepbrowsercontext: t }), F();
5618
+ this.$$set({ keepbrowsercontext: t }), N();
5553
5619
  }
5554
5620
  get sorttype() {
5555
- return this.$$.ctx[25];
5621
+ return this.$$.ctx[26];
5556
5622
  }
5557
5623
  set sorttype(t) {
5558
- this.$$set({ sorttype: t }), F();
5624
+ this.$$set({ sorttype: t }), N();
5559
5625
  }
5560
5626
  get sortorder() {
5561
- return this.$$.ctx[26];
5627
+ return this.$$.ctx[27];
5562
5628
  }
5563
5629
  set sortorder(t) {
5564
- this.$$set({ sortorder: t }), F();
5630
+ this.$$set({ sortorder: t }), N();
5565
5631
  }
5566
5632
  get starttimeafter() {
5567
- return this.$$.ctx[27];
5633
+ return this.$$.ctx[28];
5568
5634
  }
5569
5635
  set starttimeafter(t) {
5570
- this.$$set({ starttimeafter: t }), F();
5636
+ this.$$set({ starttimeafter: t }), N();
5571
5637
  }
5572
5638
  get showanonymoustournaments() {
5573
- return this.$$.ctx[28];
5639
+ return this.$$.ctx[29];
5574
5640
  }
5575
5641
  set showanonymoustournaments(t) {
5576
- this.$$set({ showanonymoustournaments: t }), F();
5642
+ this.$$set({ showanonymoustournaments: t }), N();
5577
5643
  }
5578
5644
  get clientstyling() {
5579
5645
  return this.$$.ctx[13];
5580
5646
  }
5581
5647
  set clientstyling(t) {
5582
- this.$$set({ clientstyling: t }), F();
5648
+ this.$$set({ clientstyling: t }), N();
5583
5649
  }
5584
5650
  get clientstylingurl() {
5585
5651
  return this.$$.ctx[14];
5586
5652
  }
5587
5653
  set clientstylingurl(t) {
5588
- this.$$set({ clientstylingurl: t }), F();
5654
+ this.$$set({ clientstylingurl: t }), N();
5589
5655
  }
5590
5656
  get delaybeforeload() {
5591
- return this.$$.ctx[29];
5657
+ return this.$$.ctx[30];
5592
5658
  }
5593
5659
  set delaybeforeload(t) {
5594
- this.$$set({ delaybeforeload: t }), F();
5660
+ this.$$set({ delaybeforeload: t }), N();
5661
+ }
5662
+ get mbsource() {
5663
+ return this.$$.ctx[15];
5664
+ }
5665
+ set mbsource(t) {
5666
+ this.$$set({ mbsource: t }), N();
5595
5667
  }
5596
5668
  }
5597
- $n(us, { session: {}, userid: {}, endpoint: {}, lang: {}, translationurl: {}, numberoftournaments: {}, showmorestep: {}, filters: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, sorttype: {}, sortorder: {}, starttimeafter: {}, showanonymoustournaments: {}, clientstyling: {}, clientstylingurl: {}, delaybeforeload: {} }, [], [], !0);
5669
+ zn(ms, { session: {}, userid: {}, endpoint: {}, lang: {}, translationurl: {}, numberoftournaments: {}, showmorestep: {}, filters: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, sorttype: {}, sortorder: {}, starttimeafter: {}, showanonymoustournaments: {}, clientstyling: {}, clientstylingurl: {}, delaybeforeload: {}, mbsource: {} }, [], [], !0);
5598
5670
  export {
5599
- qo as $,
5600
- qe as A,
5601
- hs as B,
5602
- wt as C,
5603
- ut as D,
5604
- ls as E,
5605
- Zo as F,
5606
- ds as G,
5607
- ps as H,
5608
- zt as I,
5609
- ms as J,
5610
- us as K,
5611
- kn as S,
5612
- mn as a,
5613
- wn as b,
5614
- $n as c,
5615
- U as d,
5616
- z as e,
5617
- F as f,
5618
- gs as g,
5619
- ce as h,
5620
- jn as i,
5621
- ne as j,
5622
- xn as k,
5623
- bs as l,
5624
- $t as m,
5625
- fe as n,
5626
- re as o,
5671
+ Yo as $,
5672
+ On as A,
5673
+ x as B,
5674
+ He as C,
5675
+ We as D,
5676
+ gs as E,
5677
+ ut as F,
5678
+ bs as G,
5679
+ St as H,
5680
+ Ko as I,
5681
+ _s as J,
5682
+ xs as K,
5683
+ Es as L,
5684
+ Zt as M,
5685
+ ms as N,
5686
+ Wn as S,
5687
+ vn as a,
5688
+ Hn as b,
5689
+ zn as c,
5690
+ re as d,
5691
+ fe as e,
5692
+ N as f,
5693
+ X as g,
5694
+ F as h,
5695
+ Xn as i,
5696
+ Ts as j,
5697
+ An as k,
5698
+ ws as l,
5699
+ vs as m,
5700
+ he as n,
5701
+ Mn as o,
5627
5702
  it as p,
5628
- fs as q,
5629
- kt as r,
5630
- Ur as s,
5631
- Ie as t,
5632
- Vt as u,
5633
- cs as v,
5634
- On as w,
5635
- An as x,
5636
- w as y,
5637
- Ae as z
5703
+ te as q,
5704
+ Xt as r,
5705
+ kr as s,
5706
+ Ne as t,
5707
+ Wt as u,
5708
+ zt as v,
5709
+ ys as w,
5710
+ rs as x,
5711
+ ns as y,
5712
+ is as z
5638
5713
  };