@everymatrix/casino-tournaments-controller 1.53.0 → 1.53.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. package/components/{CasinoTournamentsController-D4fqxCja.js → CasinoTournamentsController-B6mh3T8V.js} +1258 -1313
  2. package/components/{CasinoTournamentsFilterController-D9Tidq8w.js → CasinoTournamentsFilterController-crq752J3.js} +1 -1
  3. package/components/{CasinoTournamentsListController-Bj5LNl9h.js → CasinoTournamentsListController-BHaCpLNs.js} +12 -12
  4. package/components/{CasinoTournamentsThumbnail-Dq4yRdNG.js → CasinoTournamentsThumbnail-BpY5tzvh.js} +1 -1
  5. package/components/{CasinoTournamentsThumbnailController-cb4JbcxA.js → CasinoTournamentsThumbnailController-CmauHmt0.js} +369 -386
  6. package/components/{CasinoTournamentsThumbnailDuration-COqsPwJj.js → CasinoTournamentsThumbnailDuration-Bl9YXTWz.js} +1 -1
  7. package/components/{CasinoTournamentsThumbnailGamesSlider--YAPEoXl.js → CasinoTournamentsThumbnailGamesSlider-7LdDhi2Q.js} +1 -1
  8. package/components/{CasinoTournamentsThumbnailPrizes-BbCxQeLs.js → CasinoTournamentsThumbnailPrizes-nDu0SMUv.js} +1 -1
  9. package/esnext/casino-tournaments-controller.js +14 -0
  10. package/package.json +12 -12
  11. package/components/CasinoTournamentsController-WRSyK2QY.cjs +0 -14
  12. package/components/CasinoTournamentsFilterController-D0T7rVhL.cjs +0 -1
  13. package/components/CasinoTournamentsListController-CWi9-FPc.cjs +0 -13
  14. package/components/CasinoTournamentsThumbnail-CXUAscGP.cjs +0 -4
  15. package/components/CasinoTournamentsThumbnailController-BHFgnbwb.cjs +0 -1
  16. package/components/CasinoTournamentsThumbnailDuration-CQkAFLBa.cjs +0 -1
  17. package/components/CasinoTournamentsThumbnailGamesSlider-LY1F0kxk.cjs +0 -1
  18. package/components/CasinoTournamentsThumbnailPrizes-CY5bdmwv.cjs +0 -1
  19. package/es2015/casino-tournaments-controller.cjs +0 -1
  20. package/es2015/casino-tournaments-controller.js +0 -16
@@ -1,82 +1,53 @@
1
- var On = Object.defineProperty, In = Object.defineProperties;
2
- var Ln = Object.getOwnPropertyDescriptors;
3
- var br = Object.getOwnPropertySymbols;
4
- var Nn = Object.prototype.hasOwnProperty, Mn = Object.prototype.propertyIsEnumerable;
5
- var Rt = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, gr = (e, t) => {
6
- for (var r in t || (t = {}))
7
- Nn.call(t, r) && Rt(e, r, t[r]);
8
- if (br)
9
- for (var r of br(t))
10
- Mn.call(t, r) && Rt(e, r, t[r]);
11
- return e;
12
- }, vr = (e, t) => In(e, Ln(t));
13
- var fe = (e, t, r) => Rt(e, typeof t != "symbol" ? t + "" : t, r);
14
- var Le = (e, t, r) => new Promise((n, i) => {
15
- var o = (l) => {
16
- try {
17
- a(r.next(l));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, s = (l) => {
22
- try {
23
- a(r.throw(l));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
28
- a((r = r.apply(e, t)).next());
29
- });
30
- function ce() {
1
+ function fe() {
31
2
  }
32
- function zr(e) {
3
+ function Fr(e) {
33
4
  return e();
34
5
  }
35
- function yr() {
6
+ function fr() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function ht(e) {
39
- e.forEach(zr);
9
+ function ut(e) {
10
+ e.forEach(Fr);
40
11
  }
41
- function St(e) {
12
+ function wt(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function Wr(e, t) {
15
+ function Ur(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- let mt;
48
- function ws(e, t) {
49
- return e === t ? !0 : (mt || (mt = document.createElement("a")), mt.href = t, e === mt.href);
18
+ let dt;
19
+ function ls(e, t) {
20
+ return e === t ? !0 : (dt || (dt = document.createElement("a")), dt.href = t, e === dt.href);
50
21
  }
51
- function Rn(e) {
22
+ function _n(e) {
52
23
  return Object.keys(e).length === 0;
53
24
  }
54
- function qr(e, ...t) {
25
+ function Gr(e, ...t) {
55
26
  if (e == null) {
56
27
  for (const n of t)
57
28
  n(void 0);
58
- return ce;
29
+ return fe;
59
30
  }
60
31
  const r = e.subscribe(...t);
61
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
33
  }
63
- function Dn(e, t, r) {
64
- e.$$.on_destroy.push(qr(t, r));
34
+ function xn(e, t, r) {
35
+ e.$$.on_destroy.push(Gr(t, r));
65
36
  }
66
- function Ts(e) {
67
- return e && St(e.destroy) ? e.destroy : ce;
37
+ function hs(e) {
38
+ return e && wt(e.destroy) ? e.destroy : fe;
68
39
  }
69
40
  function re(e, t) {
70
41
  e.appendChild(t);
71
42
  }
72
- function Fn(e, t, r) {
73
- const n = Un(e);
43
+ function wn(e, t, r) {
44
+ const n = Tn(e);
74
45
  if (!n.getElementById(t)) {
75
46
  const i = z("style");
76
- i.id = t, i.textContent = r, Gn(n, i);
47
+ i.id = t, i.textContent = r, Sn(n, i);
77
48
  }
78
49
  }
79
- function Un(e) {
50
+ function Tn(e) {
80
51
  if (!e) return document;
81
52
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
82
53
  return t && /** @type {ShadowRoot} */
@@ -85,39 +56,39 @@ function Un(e) {
85
56
  t
86
57
  ) : e.ownerDocument;
87
58
  }
88
- function Gn(e, t) {
59
+ function Sn(e, t) {
89
60
  return re(
90
61
  /** @type {Document} */
91
62
  e.head || e,
92
63
  t
93
64
  ), t.sheet;
94
65
  }
95
- function de(e, t, r) {
66
+ function ce(e, t, r) {
96
67
  e.insertBefore(t, r || null);
97
68
  }
98
69
  function ne(e) {
99
70
  e.parentNode && e.parentNode.removeChild(e);
100
71
  }
101
- function Ss(e, t) {
72
+ function fs(e, t) {
102
73
  for (let r = 0; r < e.length; r += 1)
103
74
  e[r] && e[r].d(t);
104
75
  }
105
76
  function z(e) {
106
77
  return document.createElement(e);
107
78
  }
108
- function As(e) {
79
+ function cs(e) {
109
80
  return document.createElementNS("http://www.w3.org/2000/svg", e);
110
81
  }
111
- function Ne(e) {
82
+ function Ie(e) {
112
83
  return document.createTextNode(e);
113
84
  }
114
- function zt() {
115
- return Ne(" ");
85
+ function $t() {
86
+ return Ie(" ");
116
87
  }
117
- function jn() {
118
- return Ne("");
88
+ function An() {
89
+ return Ie("");
119
90
  }
120
- function Wt(e, t, r, n) {
91
+ function kt(e, t, r, n) {
121
92
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
122
93
  }
123
94
  function U(e, t, r) {
@@ -127,38 +98,38 @@ function w(e, t, r) {
127
98
  const n = t.toLowerCase();
128
99
  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);
129
100
  }
130
- function $n(e) {
101
+ function Hn(e) {
131
102
  return Array.from(e.childNodes);
132
103
  }
133
- function st(e, t) {
104
+ function it(e, t) {
134
105
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
135
106
  t);
136
107
  }
137
- function Hs(e, t, r, n) {
108
+ function ds(e, t, r, n) {
138
109
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
139
110
  }
140
- let bt;
141
- function kn() {
142
- if (bt === void 0) {
143
- bt = !1;
111
+ let mt;
112
+ function Bn() {
113
+ if (mt === void 0) {
114
+ mt = !1;
144
115
  try {
145
- typeof window != "undefined" && window.parent && window.parent.document;
146
- } catch (e) {
147
- bt = !0;
116
+ typeof window < "u" && window.parent && window.parent.document;
117
+ } catch {
118
+ mt = !0;
148
119
  }
149
120
  }
150
- return bt;
121
+ return mt;
151
122
  }
152
- function Bs(e, t) {
123
+ function ms(e, t) {
153
124
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
154
125
  const n = z("iframe");
155
126
  n.setAttribute(
156
127
  "style",
157
128
  "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
158
129
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
159
- const i = kn();
130
+ const i = Bn();
160
131
  let o;
161
- return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = Wt(
132
+ return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = kt(
162
133
  window,
163
134
  "message",
164
135
  /** @param {MessageEvent} event */
@@ -166,15 +137,15 @@ function Bs(e, t) {
166
137
  s.source === n.contentWindow && t();
167
138
  }
168
139
  )) : (n.src = "about:blank", n.onload = () => {
169
- o = Wt(n.contentWindow, "resize", t), t();
140
+ o = kt(n.contentWindow, "resize", t), t();
170
141
  }), re(e, n), () => {
171
142
  (i || o && n.contentWindow) && o(), ne(n);
172
143
  };
173
144
  }
174
- function Ps(e, t, r) {
145
+ function ps(e, t, r) {
175
146
  e.classList.toggle(t, !!r);
176
147
  }
177
- function Vn(e) {
148
+ function Pn(e) {
178
149
  const t = {};
179
150
  return e.childNodes.forEach(
180
151
  /** @param {Element} node */
@@ -183,248 +154,244 @@ function Vn(e) {
183
154
  }
184
155
  ), t;
185
156
  }
186
- let at;
187
- function ot(e) {
188
- at = e;
157
+ let ot;
158
+ function nt(e) {
159
+ ot = e;
189
160
  }
190
- function Xn() {
191
- if (!at) throw new Error("Function called outside component initialization");
192
- return at;
161
+ function Cn() {
162
+ if (!ot) throw new Error("Function called outside component initialization");
163
+ return ot;
193
164
  }
194
- function zn(e) {
195
- Xn().$$.on_mount.push(e);
165
+ function On(e) {
166
+ Cn().$$.on_mount.push(e);
196
167
  }
197
- const $e = [], qt = [];
198
- let ke = [];
199
- const Er = [], Wn = /* @__PURE__ */ Promise.resolve();
200
- let Zt = !1;
201
- function qn() {
202
- Zt || (Zt = !0, Wn.then(F));
168
+ const Ge = [], Vt = [];
169
+ let je = [];
170
+ const cr = [], In = /* @__PURE__ */ Promise.resolve();
171
+ let Xt = !1;
172
+ function Ln() {
173
+ Xt || (Xt = !0, In.then(F));
203
174
  }
204
- function Jt(e) {
205
- ke.push(e);
175
+ function zt(e) {
176
+ je.push(e);
206
177
  }
207
- const Dt = /* @__PURE__ */ new Set();
208
- let Ge = 0;
178
+ const Nt = /* @__PURE__ */ new Set();
179
+ let Fe = 0;
209
180
  function F() {
210
- if (Ge !== 0)
181
+ if (Fe !== 0)
211
182
  return;
212
- const e = at;
183
+ const e = ot;
213
184
  do {
214
185
  try {
215
- for (; Ge < $e.length; ) {
216
- const t = $e[Ge];
217
- Ge++, ot(t), Zn(t.$$);
186
+ for (; Fe < Ge.length; ) {
187
+ const t = Ge[Fe];
188
+ Fe++, nt(t), Nn(t.$$);
218
189
  }
219
190
  } catch (t) {
220
- throw $e.length = 0, Ge = 0, t;
191
+ throw Ge.length = 0, Fe = 0, t;
221
192
  }
222
- for (ot(null), $e.length = 0, Ge = 0; qt.length; ) qt.pop()();
223
- for (let t = 0; t < ke.length; t += 1) {
224
- const r = ke[t];
225
- Dt.has(r) || (Dt.add(r), r());
193
+ for (nt(null), Ge.length = 0, Fe = 0; Vt.length; ) Vt.pop()();
194
+ for (let t = 0; t < je.length; t += 1) {
195
+ const r = je[t];
196
+ Nt.has(r) || (Nt.add(r), r());
226
197
  }
227
- ke.length = 0;
228
- } while ($e.length);
229
- for (; Er.length; )
230
- Er.pop()();
231
- Zt = !1, Dt.clear(), ot(e);
198
+ je.length = 0;
199
+ } while (Ge.length);
200
+ for (; cr.length; )
201
+ cr.pop()();
202
+ Xt = !1, Nt.clear(), nt(e);
232
203
  }
233
- function Zn(e) {
204
+ function Nn(e) {
234
205
  if (e.fragment !== null) {
235
- e.update(), ht(e.before_update);
206
+ e.update(), ut(e.before_update);
236
207
  const t = e.dirty;
237
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Jt);
208
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(zt);
238
209
  }
239
210
  }
240
- function Jn(e) {
211
+ function Mn(e) {
241
212
  const t = [], r = [];
242
- ke.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ke = t;
213
+ je.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), je = t;
243
214
  }
244
- const Qn = /* @__PURE__ */ new Set();
245
- function Yn(e, t) {
246
- e && e.i && (Qn.delete(e), e.i(t));
215
+ const Rn = /* @__PURE__ */ new Set();
216
+ function Dn(e, t) {
217
+ e && e.i && (Rn.delete(e), e.i(t));
247
218
  }
248
- function Cs(e) {
249
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
219
+ function bs(e) {
220
+ return e?.length !== void 0 ? e : Array.from(e);
250
221
  }
251
- function Kn(e, t, r) {
222
+ function Fn(e, t, r) {
252
223
  const { fragment: n, after_update: i } = e.$$;
253
- n && n.m(t, r), Jt(() => {
254
- const o = e.$$.on_mount.map(zr).filter(St);
255
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ht(o), e.$$.on_mount = [];
256
- }), i.forEach(Jt);
224
+ n && n.m(t, r), zt(() => {
225
+ const o = e.$$.on_mount.map(Fr).filter(wt);
226
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ut(o), e.$$.on_mount = [];
227
+ }), i.forEach(zt);
257
228
  }
258
- function ei(e, t) {
229
+ function Un(e, t) {
259
230
  const r = e.$$;
260
- r.fragment !== null && (Jn(r.after_update), ht(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
231
+ 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 = []);
261
232
  }
262
- function ti(e, t) {
263
- e.$$.dirty[0] === -1 && ($e.push(e), qn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
233
+ function Gn(e, t) {
234
+ e.$$.dirty[0] === -1 && (Ge.push(e), Ln(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
264
235
  }
265
- function ri(e, t, r, n, i, o, s = null, a = [-1]) {
266
- const l = at;
267
- ot(e);
268
- const u = e.$$ = {
236
+ function jn(e, t, r, n, i, o, s = null, a = [-1]) {
237
+ const f = ot;
238
+ nt(e);
239
+ const h = e.$$ = {
269
240
  fragment: null,
270
241
  ctx: [],
271
242
  // state
272
243
  props: o,
273
- update: ce,
244
+ update: fe,
274
245
  not_equal: i,
275
- bound: yr(),
246
+ bound: fr(),
276
247
  // lifecycle
277
248
  on_mount: [],
278
249
  on_destroy: [],
279
250
  on_disconnect: [],
280
251
  before_update: [],
281
252
  after_update: [],
282
- context: new Map(t.context || (l ? l.$$.context : [])),
253
+ context: new Map(t.context || (f ? f.$$.context : [])),
283
254
  // everything else
284
- callbacks: yr(),
255
+ callbacks: fr(),
285
256
  dirty: a,
286
257
  skip_bound: !1,
287
- root: t.target || l.$$.root
258
+ root: t.target || f.$$.root
288
259
  };
289
- s && s(u.root);
260
+ s && s(h.root);
290
261
  let c = !1;
291
- if (u.ctx = r ? r(e, t.props || {}, (d, m, ..._) => {
292
- const O = _.length ? _[0] : m;
293
- return u.ctx && i(u.ctx[d], u.ctx[d] = O) && (!u.skip_bound && u.bound[d] && u.bound[d](O), c && ti(e, d)), m;
294
- }) : [], u.update(), c = !0, ht(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
262
+ if (h.ctx = r ? r(e, t.props || {}, (d, p, ..._) => {
263
+ const O = _.length ? _[0] : p;
264
+ 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
+ }) : [], h.update(), c = !0, ut(h.before_update), h.fragment = n ? n(h.ctx) : !1, t.target) {
295
266
  if (t.hydrate) {
296
- const d = $n(t.target);
297
- u.fragment && u.fragment.l(d), d.forEach(ne);
267
+ const d = Hn(t.target);
268
+ h.fragment && h.fragment.l(d), d.forEach(ne);
298
269
  } else
299
- u.fragment && u.fragment.c();
300
- t.intro && Yn(e.$$.fragment), Kn(e, t.target, t.anchor), F();
270
+ h.fragment && h.fragment.c();
271
+ t.intro && Dn(e.$$.fragment), Fn(e, t.target, t.anchor), F();
301
272
  }
302
- ot(l);
303
- }
304
- let Zr;
305
- typeof HTMLElement == "function" && (Zr = class extends HTMLElement {
306
- constructor(t, r, n) {
307
- super();
308
- /** The Svelte component constructor */
309
- fe(this, "$$ctor");
310
- /** Slots */
311
- fe(this, "$$s");
312
- /** The Svelte component instance */
313
- fe(this, "$$c");
314
- /** Whether or not the custom element is connected */
315
- fe(this, "$$cn", !1);
316
- /** Component props data */
317
- fe(this, "$$d", {});
318
- /** `true` if currently in the process of reflecting component props back to attributes */
319
- fe(this, "$$r", !1);
320
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
321
- fe(this, "$$p_d", {});
322
- /** @type {Record<string, Function[]>} Event listeners */
323
- fe(this, "$$l", {});
324
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
325
- fe(this, "$$l_u", /* @__PURE__ */ new Map());
326
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
273
+ nt(f);
274
+ }
275
+ let jr;
276
+ typeof HTMLElement == "function" && (jr = class extends HTMLElement {
277
+ /** The Svelte component constructor */
278
+ $$ctor;
279
+ /** Slots */
280
+ $$s;
281
+ /** The Svelte component instance */
282
+ $$c;
283
+ /** Whether or not the custom element is connected */
284
+ $$cn = !1;
285
+ /** Component props data */
286
+ $$d = {};
287
+ /** `true` if currently in the process of reflecting component props back to attributes */
288
+ $$r = !1;
289
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
290
+ $$p_d = {};
291
+ /** @type {Record<string, Function[]>} Event listeners */
292
+ $$l = {};
293
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
294
+ $$l_u = /* @__PURE__ */ new Map();
295
+ constructor(e, t, r) {
296
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
327
297
  }
328
- addEventListener(t, r, n) {
329
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
330
- const i = this.$$c.$on(t, r);
331
- this.$$l_u.set(r, i);
298
+ addEventListener(e, t, r) {
299
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
300
+ const n = this.$$c.$on(e, t);
301
+ this.$$l_u.set(t, n);
332
302
  }
333
- super.addEventListener(t, r, n);
303
+ super.addEventListener(e, t, r);
334
304
  }
335
- removeEventListener(t, r, n) {
336
- if (super.removeEventListener(t, r, n), this.$$c) {
337
- const i = this.$$l_u.get(r);
338
- i && (i(), this.$$l_u.delete(r));
305
+ removeEventListener(e, t, r) {
306
+ if (super.removeEventListener(e, t, r), this.$$c) {
307
+ const n = this.$$l_u.get(t);
308
+ n && (n(), this.$$l_u.delete(t));
339
309
  }
340
310
  }
341
- connectedCallback() {
342
- return Le(this, null, function* () {
343
- if (this.$$cn = !0, !this.$$c) {
344
- let t = function(o) {
345
- return () => {
346
- let s;
347
- return {
348
- c: function() {
349
- s = z("slot"), o !== "default" && U(s, "name", o);
350
- },
351
- /**
352
- * @param {HTMLElement} target
353
- * @param {HTMLElement} [anchor]
354
- */
355
- m: function(u, c) {
356
- de(u, s, c);
357
- },
358
- d: function(u) {
359
- u && ne(s);
360
- }
361
- };
311
+ async connectedCallback() {
312
+ if (this.$$cn = !0, !this.$$c) {
313
+ let e = function(i) {
314
+ return () => {
315
+ let o;
316
+ return {
317
+ c: function() {
318
+ o = z("slot"), i !== "default" && U(o, "name", i);
319
+ },
320
+ /**
321
+ * @param {HTMLElement} target
322
+ * @param {HTMLElement} [anchor]
323
+ */
324
+ m: function(f, h) {
325
+ ce(f, o, h);
326
+ },
327
+ d: function(f) {
328
+ f && ne(o);
329
+ }
362
330
  };
363
331
  };
364
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
365
- return;
366
- const r = {}, n = Vn(this);
367
- for (const o of this.$$s)
368
- o in n && (r[o] = [t(o)]);
369
- for (const o of this.attributes) {
370
- const s = this.$$g_p(o.name);
371
- s in this.$$d || (this.$$d[s] = yt(s, o.value, this.$$p_d, "toProp"));
332
+ };
333
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
334
+ return;
335
+ const t = {}, r = Pn(this);
336
+ for (const i of this.$$s)
337
+ i in r && (t[i] = [e(i)]);
338
+ for (const i of this.attributes) {
339
+ const o = this.$$g_p(i.name);
340
+ o in this.$$d || (this.$$d[o] = gt(o, i.value, this.$$p_d, "toProp"));
341
+ }
342
+ for (const i in this.$$p_d)
343
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
344
+ this.$$c = new this.$$ctor({
345
+ target: this.shadowRoot || this,
346
+ props: {
347
+ ...this.$$d,
348
+ $$slots: t,
349
+ $$scope: {
350
+ ctx: []
351
+ }
372
352
  }
373
- for (const o in this.$$p_d)
374
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
375
- this.$$c = new this.$$ctor({
376
- target: this.shadowRoot || this,
377
- props: vr(gr({}, this.$$d), {
378
- $$slots: r,
379
- $$scope: {
380
- ctx: []
381
- }
382
- })
383
- });
384
- const i = () => {
385
- this.$$r = !0;
386
- for (const o in this.$$p_d)
387
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
388
- const s = yt(
389
- o,
390
- this.$$d[o],
391
- this.$$p_d,
392
- "toAttribute"
393
- );
394
- s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
395
- }
396
- this.$$r = !1;
397
- };
398
- this.$$c.$$.after_update.push(i), i();
399
- for (const o in this.$$l)
400
- for (const s of this.$$l[o]) {
401
- const a = this.$$c.$on(o, s);
402
- this.$$l_u.set(s, a);
353
+ });
354
+ const n = () => {
355
+ this.$$r = !0;
356
+ for (const i in this.$$p_d)
357
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
358
+ const o = gt(
359
+ i,
360
+ this.$$d[i],
361
+ this.$$p_d,
362
+ "toAttribute"
363
+ );
364
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
403
365
  }
404
- this.$$l = {};
405
- }
406
- });
366
+ this.$$r = !1;
367
+ };
368
+ this.$$c.$$.after_update.push(n), n();
369
+ for (const i in this.$$l)
370
+ for (const o of this.$$l[i]) {
371
+ const s = this.$$c.$on(i, o);
372
+ this.$$l_u.set(o, s);
373
+ }
374
+ this.$$l = {};
375
+ }
407
376
  }
408
377
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
409
378
  // and setting attributes through setAttribute etc, this is helpful
410
- attributeChangedCallback(t, r, n) {
411
- var i;
412
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = yt(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
379
+ attributeChangedCallback(e, t, r) {
380
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = gt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
413
381
  }
414
382
  disconnectedCallback() {
415
383
  this.$$cn = !1, Promise.resolve().then(() => {
416
384
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
417
385
  });
418
386
  }
419
- $$g_p(t) {
387
+ $$g_p(e) {
420
388
  return Object.keys(this.$$p_d).find(
421
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
422
- ) || t;
389
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
390
+ ) || e;
423
391
  }
424
392
  });
425
- function yt(e, t, r, n) {
426
- var o;
427
- const i = (o = r[e]) == null ? void 0 : o.type;
393
+ function gt(e, t, r, n) {
394
+ const i = r[e]?.type;
428
395
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
429
396
  return t;
430
397
  if (n === "toAttribute")
@@ -435,7 +402,7 @@ function yt(e, t, r, n) {
435
402
  case "Boolean":
436
403
  return t ? "" : null;
437
404
  case "Number":
438
- return t == null ? null : t;
405
+ return t ?? null;
439
406
  default:
440
407
  return t;
441
408
  }
@@ -452,8 +419,8 @@ function yt(e, t, r, n) {
452
419
  return t;
453
420
  }
454
421
  }
455
- function ni(e, t, r, n, i, o) {
456
- let s = class extends Zr {
422
+ function $n(e, t, r, n, i, o) {
423
+ let s = class extends jr {
457
424
  constructor() {
458
425
  super(e, r, i), this.$$p_d = t;
459
426
  }
@@ -468,43 +435,39 @@ function ni(e, t, r, n, i, o) {
468
435
  get() {
469
436
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
470
437
  },
471
- set(l) {
472
- var u;
473
- l = yt(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
438
+ set(f) {
439
+ f = gt(a, f, t), this.$$d[a] = f, this.$$c?.$set({ [a]: f });
474
440
  }
475
441
  });
476
442
  }), n.forEach((a) => {
477
443
  Object.defineProperty(s.prototype, a, {
478
444
  get() {
479
- var l;
480
- return (l = this.$$c) == null ? void 0 : l[a];
445
+ return this.$$c?.[a];
481
446
  }
482
447
  });
483
448
  }), e.element = /** @type {any} */
484
449
  s, s;
485
450
  }
486
- class ii {
487
- constructor() {
488
- /**
489
- * ### PRIVATE API
490
- *
491
- * Do not use, may change at any time
492
- *
493
- * @type {any}
494
- */
495
- fe(this, "$$");
496
- /**
497
- * ### PRIVATE API
498
- *
499
- * Do not use, may change at any time
500
- *
501
- * @type {any}
502
- */
503
- fe(this, "$$set");
504
- }
451
+ class kn {
452
+ /**
453
+ * ### PRIVATE API
454
+ *
455
+ * Do not use, may change at any time
456
+ *
457
+ * @type {any}
458
+ */
459
+ $$ = void 0;
460
+ /**
461
+ * ### PRIVATE API
462
+ *
463
+ * Do not use, may change at any time
464
+ *
465
+ * @type {any}
466
+ */
467
+ $$set = void 0;
505
468
  /** @returns {void} */
506
469
  $destroy() {
507
- ei(this, 1), this.$destroy = ce;
470
+ Un(this, 1), this.$destroy = fe;
508
471
  }
509
472
  /**
510
473
  * @template {Extract<keyof Events, string>} K
@@ -513,8 +476,8 @@ class ii {
513
476
  * @returns {() => void}
514
477
  */
515
478
  $on(t, r) {
516
- if (!St(r))
517
- return ce;
479
+ if (!wt(r))
480
+ return fe;
518
481
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
519
482
  return n.push(r), () => {
520
483
  const i = n.indexOf(r);
@@ -526,22 +489,22 @@ class ii {
526
489
  * @returns {void}
527
490
  */
528
491
  $set(t) {
529
- this.$$set && !Rn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
492
+ this.$$set && !_n(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
530
493
  }
531
494
  }
532
- const oi = "4";
533
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(oi);
534
- var Qt = function(e, t) {
535
- return Qt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
495
+ const Vn = "4";
496
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vn);
497
+ var Wt = function(e, t) {
498
+ return Wt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
536
499
  r.__proto__ = n;
537
500
  } || function(r, n) {
538
501
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
539
- }, Qt(e, t);
502
+ }, Wt(e, t);
540
503
  };
541
- function we(e, t) {
504
+ function xe(e, t) {
542
505
  if (typeof t != "function" && t !== null)
543
506
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
544
- Qt(e, t);
507
+ Wt(e, t);
545
508
  function r() {
546
509
  this.constructor = e;
547
510
  }
@@ -556,7 +519,7 @@ var P = function() {
556
519
  return t;
557
520
  }, P.apply(this, arguments);
558
521
  };
559
- function si(e, t) {
522
+ function Xn(e, t) {
560
523
  var r = {};
561
524
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
562
525
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -564,7 +527,7 @@ function si(e, t) {
564
527
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
565
528
  return r;
566
529
  }
567
- function Yt(e) {
530
+ function qt(e) {
568
531
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
569
532
  if (r) return r.call(e);
570
533
  if (e && typeof e.length == "number") return {
@@ -574,7 +537,7 @@ function Yt(e) {
574
537
  };
575
538
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
576
539
  }
577
- function Kt(e, t) {
540
+ function Zt(e, t) {
578
541
  var r = typeof Symbol == "function" && e[Symbol.iterator];
579
542
  if (!r) return e;
580
543
  var n = r.call(e), i, o = [], s;
@@ -591,21 +554,21 @@ function Kt(e, t) {
591
554
  }
592
555
  return o;
593
556
  }
594
- function Ve(e, t, r) {
557
+ function $e(e, t, r) {
595
558
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
596
559
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
597
560
  return e.concat(o || Array.prototype.slice.call(t));
598
561
  }
599
- function xe(e) {
562
+ function _e(e) {
600
563
  return typeof e == "function";
601
564
  }
602
- function Jr(e) {
565
+ function $r(e) {
603
566
  var t = function(n) {
604
567
  Error.call(n), n.stack = new Error().stack;
605
568
  }, r = e(t);
606
569
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
607
570
  }
608
- var Ft = Jr(function(e) {
571
+ var Mt = $r(function(e) {
609
572
  return function(r) {
610
573
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
611
574
  ` + r.map(function(n, i) {
@@ -614,13 +577,13 @@ var Ft = Jr(function(e) {
614
577
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
615
578
  };
616
579
  });
617
- function er(e, t) {
580
+ function Jt(e, t) {
618
581
  if (e) {
619
582
  var r = e.indexOf(t);
620
583
  0 <= r && e.splice(r, 1);
621
584
  }
622
585
  }
623
- var At = function() {
586
+ var Tt = function() {
624
587
  function e(t) {
625
588
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
626
589
  }
@@ -632,15 +595,15 @@ var At = function() {
632
595
  if (s)
633
596
  if (this._parentage = null, Array.isArray(s))
634
597
  try {
635
- for (var a = Yt(s), l = a.next(); !l.done; l = a.next()) {
636
- var u = l.value;
637
- u.remove(this);
598
+ for (var a = qt(s), f = a.next(); !f.done; f = a.next()) {
599
+ var h = f.value;
600
+ h.remove(this);
638
601
  }
639
602
  } catch (B) {
640
603
  t = { error: B };
641
604
  } finally {
642
605
  try {
643
- l && !l.done && (r = a.return) && r.call(a);
606
+ f && !f.done && (r = a.return) && r.call(a);
644
607
  } finally {
645
608
  if (t) throw t.error;
646
609
  }
@@ -648,42 +611,42 @@ var At = function() {
648
611
  else
649
612
  s.remove(this);
650
613
  var c = this.initialTeardown;
651
- if (xe(c))
614
+ if (_e(c))
652
615
  try {
653
616
  c();
654
617
  } catch (B) {
655
- o = B instanceof Ft ? B.errors : [B];
618
+ o = B instanceof Mt ? B.errors : [B];
656
619
  }
657
620
  var d = this._finalizers;
658
621
  if (d) {
659
622
  this._finalizers = null;
660
623
  try {
661
- for (var m = Yt(d), _ = m.next(); !_.done; _ = m.next()) {
624
+ for (var p = qt(d), _ = p.next(); !_.done; _ = p.next()) {
662
625
  var O = _.value;
663
626
  try {
664
- _r(O);
627
+ dr(O);
665
628
  } catch (B) {
666
- o = o != null ? o : [], B instanceof Ft ? o = Ve(Ve([], Kt(o)), Kt(B.errors)) : o.push(B);
629
+ o = o ?? [], B instanceof Mt ? o = $e($e([], Zt(o)), Zt(B.errors)) : o.push(B);
667
630
  }
668
631
  }
669
632
  } catch (B) {
670
633
  n = { error: B };
671
634
  } finally {
672
635
  try {
673
- _ && !_.done && (i = m.return) && i.call(m);
636
+ _ && !_.done && (i = p.return) && i.call(p);
674
637
  } finally {
675
638
  if (n) throw n.error;
676
639
  }
677
640
  }
678
641
  }
679
642
  if (o)
680
- throw new Ft(o);
643
+ throw new Mt(o);
681
644
  }
682
645
  }, e.prototype.add = function(t) {
683
646
  var r;
684
647
  if (t && t !== this)
685
648
  if (this.closed)
686
- _r(t);
649
+ dr(t);
687
650
  else {
688
651
  if (t instanceof e) {
689
652
  if (t.closed || t._hasParent(this))
@@ -700,56 +663,56 @@ var At = function() {
700
663
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
701
664
  }, e.prototype._removeParent = function(t) {
702
665
  var r = this._parentage;
703
- r === t ? this._parentage = null : Array.isArray(r) && er(r, t);
666
+ r === t ? this._parentage = null : Array.isArray(r) && Jt(r, t);
704
667
  }, e.prototype.remove = function(t) {
705
668
  var r = this._finalizers;
706
- r && er(r, t), t instanceof e && t._removeParent(this);
669
+ r && Jt(r, t), t instanceof e && t._removeParent(this);
707
670
  }, e.EMPTY = function() {
708
671
  var t = new e();
709
672
  return t.closed = !0, t;
710
673
  }(), e;
711
- }(), Qr = At.EMPTY;
712
- function Yr(e) {
713
- return e instanceof At || e && "closed" in e && xe(e.remove) && xe(e.add) && xe(e.unsubscribe);
674
+ }(), kr = Tt.EMPTY;
675
+ function Vr(e) {
676
+ return e instanceof Tt || e && "closed" in e && _e(e.remove) && _e(e.add) && _e(e.unsubscribe);
714
677
  }
715
- function _r(e) {
716
- xe(e) ? e() : e.unsubscribe();
678
+ function dr(e) {
679
+ _e(e) ? e() : e.unsubscribe();
717
680
  }
718
- var Kr = {
681
+ var zn = {
719
682
  onUnhandledError: null,
720
683
  onStoppedNotification: null,
721
684
  Promise: void 0,
722
685
  useDeprecatedSynchronousErrorHandling: !1,
723
686
  useDeprecatedNextContext: !1
724
- }, ai = {
687
+ }, Wn = {
725
688
  setTimeout: function(e, t) {
726
689
  for (var r = [], n = 2; n < arguments.length; n++)
727
690
  r[n - 2] = arguments[n];
728
- return setTimeout.apply(void 0, Ve([e, t], Kt(r)));
691
+ return setTimeout.apply(void 0, $e([e, t], Zt(r)));
729
692
  },
730
693
  clearTimeout: function(e) {
731
694
  return clearTimeout(e);
732
695
  },
733
696
  delegate: void 0
734
697
  };
735
- function ui(e) {
736
- ai.setTimeout(function() {
698
+ function qn(e) {
699
+ Wn.setTimeout(function() {
737
700
  throw e;
738
701
  });
739
702
  }
740
- function xr() {
703
+ function mr() {
741
704
  }
742
- function Et(e) {
705
+ function yt(e) {
743
706
  e();
744
707
  }
745
- var en = function(e) {
746
- we(t, e);
708
+ var Xr = function(e) {
709
+ xe(t, e);
747
710
  function t(r) {
748
711
  var n = e.call(this) || this;
749
- return n.isStopped = !1, r ? (n.destination = r, Yr(r) && r.add(n)) : n.destination = ci, n;
712
+ return n.isStopped = !1, r ? (n.destination = r, Vr(r) && r.add(n)) : n.destination = Qn, n;
750
713
  }
751
714
  return t.create = function(r, n, i) {
752
- return new tr(r, n, i);
715
+ return new Qt(r, n, i);
753
716
  }, t.prototype.next = function(r) {
754
717
  this.isStopped || this._next(r);
755
718
  }, t.prototype.error = function(r) {
@@ -773,11 +736,7 @@ var en = function(e) {
773
736
  this.unsubscribe();
774
737
  }
775
738
  }, t;
776
- }(At), li = Function.prototype.bind;
777
- function Ut(e, t) {
778
- return li.call(e, t);
779
- }
780
- var hi = function() {
739
+ }(Tt), Zn = function() {
781
740
  function e(t) {
782
741
  this.partialObserver = t;
783
742
  }
@@ -787,7 +746,7 @@ var hi = function() {
787
746
  try {
788
747
  r.next(t);
789
748
  } catch (n) {
790
- gt(n);
749
+ pt(n);
791
750
  }
792
751
  }, e.prototype.error = function(t) {
793
752
  var r = this.partialObserver;
@@ -795,68 +754,56 @@ var hi = function() {
795
754
  try {
796
755
  r.error(t);
797
756
  } catch (n) {
798
- gt(n);
757
+ pt(n);
799
758
  }
800
759
  else
801
- gt(t);
760
+ pt(t);
802
761
  }, e.prototype.complete = function() {
803
762
  var t = this.partialObserver;
804
763
  if (t.complete)
805
764
  try {
806
765
  t.complete();
807
766
  } catch (r) {
808
- gt(r);
767
+ pt(r);
809
768
  }
810
769
  }, e;
811
- }(), tr = function(e) {
812
- we(t, e);
770
+ }(), Qt = function(e) {
771
+ xe(t, e);
813
772
  function t(r, n, i) {
814
773
  var o = e.call(this) || this, s;
815
- if (xe(r) || !r)
816
- s = {
817
- next: r != null ? r : void 0,
818
- error: n != null ? n : void 0,
819
- complete: i != null ? i : void 0
820
- };
821
- else {
822
- var a;
823
- o && Kr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
824
- return o.unsubscribe();
825
- }, s = {
826
- next: r.next && Ut(r.next, a),
827
- error: r.error && Ut(r.error, a),
828
- complete: r.complete && Ut(r.complete, a)
829
- }) : s = r;
830
- }
831
- return o.destination = new hi(s), o;
774
+ return _e(r) || !r ? s = {
775
+ next: r ?? void 0,
776
+ error: n ?? void 0,
777
+ complete: i ?? void 0
778
+ } : s = r, o.destination = new Zn(s), o;
832
779
  }
833
780
  return t;
834
- }(en);
835
- function gt(e) {
836
- ui(e);
781
+ }(Xr);
782
+ function pt(e) {
783
+ qn(e);
837
784
  }
838
- function fi(e) {
785
+ function Jn(e) {
839
786
  throw e;
840
787
  }
841
- var ci = {
788
+ var Qn = {
842
789
  closed: !0,
843
- next: xr,
844
- error: fi,
845
- complete: xr
846
- }, di = function() {
790
+ next: mr,
791
+ error: Jn,
792
+ complete: mr
793
+ }, Yn = function() {
847
794
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
848
795
  }();
849
- function pi(e) {
796
+ function Kn(e) {
850
797
  return e;
851
798
  }
852
- function mi(e) {
853
- return e.length === 0 ? pi : e.length === 1 ? e[0] : function(r) {
799
+ function ei(e) {
800
+ return e.length === 0 ? Kn : e.length === 1 ? e[0] : function(r) {
854
801
  return e.reduce(function(n, i) {
855
802
  return i(n);
856
803
  }, r);
857
804
  };
858
805
  }
859
- var wr = function() {
806
+ var pr = function() {
860
807
  function e(t) {
861
808
  t && (this._subscribe = t);
862
809
  }
@@ -864,10 +811,10 @@ var wr = function() {
864
811
  var r = new e();
865
812
  return r.source = this, r.operator = t, r;
866
813
  }, e.prototype.subscribe = function(t, r, n) {
867
- var i = this, o = gi(t) ? t : new tr(t, r, n);
868
- return Et(function() {
869
- var s = i, a = s.operator, l = s.source;
870
- o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
814
+ var i = this, o = ri(t) ? t : new Qt(t, r, n);
815
+ return yt(function() {
816
+ var s = i, a = s.operator, f = s.source;
817
+ o.add(a ? a.call(o, f) : f ? i._subscribe(o) : i._trySubscribe(o));
871
818
  }), o;
872
819
  }, e.prototype._trySubscribe = function(t) {
873
820
  try {
@@ -877,13 +824,13 @@ var wr = function() {
877
824
  }
878
825
  }, e.prototype.forEach = function(t, r) {
879
826
  var n = this;
880
- return r = Tr(r), new r(function(i, o) {
881
- var s = new tr({
827
+ return r = br(r), new r(function(i, o) {
828
+ var s = new Qt({
882
829
  next: function(a) {
883
830
  try {
884
831
  t(a);
885
- } catch (l) {
886
- o(l), s.unsubscribe();
832
+ } catch (f) {
833
+ o(f), s.unsubscribe();
887
834
  }
888
835
  },
889
836
  error: o,
@@ -894,15 +841,15 @@ var wr = function() {
894
841
  }, e.prototype._subscribe = function(t) {
895
842
  var r;
896
843
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
897
- }, e.prototype[di] = function() {
844
+ }, e.prototype[Yn] = function() {
898
845
  return this;
899
846
  }, e.prototype.pipe = function() {
900
847
  for (var t = [], r = 0; r < arguments.length; r++)
901
848
  t[r] = arguments[r];
902
- return mi(t)(this);
849
+ return ei(t)(this);
903
850
  }, e.prototype.toPromise = function(t) {
904
851
  var r = this;
905
- return t = Tr(t), new t(function(n, i) {
852
+ return t = br(t), new t(function(n, i) {
906
853
  var o;
907
854
  r.subscribe(function(s) {
908
855
  return o = s;
@@ -916,45 +863,45 @@ var wr = function() {
916
863
  return new e(t);
917
864
  }, e;
918
865
  }();
919
- function Tr(e) {
866
+ function br(e) {
920
867
  var t;
921
- return (t = e != null ? e : Kr.Promise) !== null && t !== void 0 ? t : Promise;
868
+ return (t = e ?? zn.Promise) !== null && t !== void 0 ? t : Promise;
922
869
  }
923
- function bi(e) {
924
- return e && xe(e.next) && xe(e.error) && xe(e.complete);
870
+ function ti(e) {
871
+ return e && _e(e.next) && _e(e.error) && _e(e.complete);
925
872
  }
926
- function gi(e) {
927
- return e && e instanceof en || bi(e) && Yr(e);
873
+ function ri(e) {
874
+ return e && e instanceof Xr || ti(e) && Vr(e);
928
875
  }
929
- var vi = Jr(function(e) {
876
+ var ni = $r(function(e) {
930
877
  return function() {
931
878
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
932
879
  };
933
- }), tn = function(e) {
934
- we(t, e);
880
+ }), zr = function(e) {
881
+ xe(t, e);
935
882
  function t() {
936
883
  var r = e.call(this) || this;
937
884
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
938
885
  }
939
886
  return t.prototype.lift = function(r) {
940
- var n = new Sr(this, this);
887
+ var n = new gr(this, this);
941
888
  return n.operator = r, n;
942
889
  }, t.prototype._throwIfClosed = function() {
943
890
  if (this.closed)
944
- throw new vi();
891
+ throw new ni();
945
892
  }, t.prototype.next = function(r) {
946
893
  var n = this;
947
- Et(function() {
894
+ yt(function() {
948
895
  var i, o;
949
896
  if (n._throwIfClosed(), !n.isStopped) {
950
897
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
951
898
  try {
952
- for (var s = Yt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
953
- var l = a.value;
954
- l.next(r);
899
+ for (var s = qt(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
900
+ var f = a.value;
901
+ f.next(r);
955
902
  }
956
- } catch (u) {
957
- i = { error: u };
903
+ } catch (h) {
904
+ i = { error: h };
958
905
  } finally {
959
906
  try {
960
907
  a && !a.done && (o = s.return) && o.call(s);
@@ -966,7 +913,7 @@ var vi = Jr(function(e) {
966
913
  });
967
914
  }, t.prototype.error = function(r) {
968
915
  var n = this;
969
- Et(function() {
916
+ yt(function() {
970
917
  if (n._throwIfClosed(), !n.isStopped) {
971
918
  n.hasError = n.isStopped = !0, n.thrownError = r;
972
919
  for (var i = n.observers; i.length; )
@@ -975,7 +922,7 @@ var vi = Jr(function(e) {
975
922
  });
976
923
  }, t.prototype.complete = function() {
977
924
  var r = this;
978
- Et(function() {
925
+ yt(function() {
979
926
  if (r._throwIfClosed(), !r.isStopped) {
980
927
  r.isStopped = !0;
981
928
  for (var n = r.observers; n.length; )
@@ -997,20 +944,20 @@ var vi = Jr(function(e) {
997
944
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
998
945
  }, t.prototype._innerSubscribe = function(r) {
999
946
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
1000
- return o || s ? Qr : (this.currentObservers = null, a.push(r), new At(function() {
1001
- n.currentObservers = null, er(a, r);
947
+ return o || s ? kr : (this.currentObservers = null, a.push(r), new Tt(function() {
948
+ n.currentObservers = null, Jt(a, r);
1002
949
  }));
1003
950
  }, t.prototype._checkFinalizedStatuses = function(r) {
1004
951
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
1005
952
  i ? r.error(o) : s && r.complete();
1006
953
  }, t.prototype.asObservable = function() {
1007
- var r = new wr();
954
+ var r = new pr();
1008
955
  return r.source = this, r;
1009
956
  }, t.create = function(r, n) {
1010
- return new Sr(r, n);
957
+ return new gr(r, n);
1011
958
  }, t;
1012
- }(wr), Sr = function(e) {
1013
- we(t, e);
959
+ }(pr), gr = function(e) {
960
+ xe(t, e);
1014
961
  function t(r, n) {
1015
962
  var i = e.call(this) || this;
1016
963
  return i.destination = r, i.source = n, i;
@@ -1026,231 +973,233 @@ var vi = Jr(function(e) {
1026
973
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1027
974
  }, t.prototype._subscribe = function(r) {
1028
975
  var n, i;
1029
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Qr;
976
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : kr;
1030
977
  }, t;
1031
- }(tn), rn = {
978
+ }(zr), Wr = {
1032
979
  now: function() {
1033
- return (rn.delegate || Date).now();
980
+ return (Wr.delegate || Date).now();
1034
981
  },
1035
982
  delegate: void 0
1036
- }, yi = function(e) {
1037
- we(t, e);
983
+ }, ii = function(e) {
984
+ xe(t, e);
1038
985
  function t(r, n, i) {
1039
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = rn);
986
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Wr);
1040
987
  var o = e.call(this) || this;
1041
988
  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;
1042
989
  }
1043
990
  return t.prototype.next = function(r) {
1044
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
1045
- i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
991
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, f = n._windowTime;
992
+ i || (o.push(r), !s && o.push(a.now() + f)), this._trimBuffer(), e.prototype.next.call(this, r);
1046
993
  }, t.prototype._subscribe = function(r) {
1047
994
  this._throwIfClosed(), this._trimBuffer();
1048
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
1049
- r.next(a[l]);
995
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), f = 0; f < a.length && !r.closed; f += o ? 1 : 2)
996
+ r.next(a[f]);
1050
997
  return this._checkFinalizedStatuses(r), n;
1051
998
  }, t.prototype._trimBuffer = function() {
1052
999
  var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
1053
1000
  if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
1054
- for (var l = i.now(), u = 0, c = 1; c < o.length && o[c] <= l; c += 2)
1055
- u = c;
1056
- u && o.splice(0, u + 1);
1001
+ for (var f = i.now(), h = 0, c = 1; c < o.length && o[c] <= f; c += 2)
1002
+ h = c;
1003
+ h && o.splice(0, h + 1);
1057
1004
  }
1058
1005
  }, t;
1059
- }(tn);
1060
- const Ar = [], Hr = {}, Ei = (e, t = 0) => {
1061
- if (Ar.indexOf(e) == -1) {
1062
- const r = new yi(t);
1063
- Hr[e] = r, Ar.push(e);
1006
+ }(zr);
1007
+ const yr = [], vr = {}, oi = (e, t = 0) => {
1008
+ if (yr.indexOf(e) == -1) {
1009
+ const r = new ii(t);
1010
+ vr[e] = r, yr.push(e);
1064
1011
  }
1065
- return Hr[e];
1066
- }, je = [];
1067
- function _i(e, t) {
1012
+ return vr[e];
1013
+ }, Ue = [];
1014
+ function si(e, t) {
1068
1015
  return {
1069
- subscribe: Ht(e, t).subscribe
1016
+ subscribe: St(e, t).subscribe
1070
1017
  };
1071
1018
  }
1072
- function Ht(e, t = ce) {
1019
+ function St(e, t = fe) {
1073
1020
  let r;
1074
1021
  const n = /* @__PURE__ */ new Set();
1075
1022
  function i(a) {
1076
- if (Wr(e, a) && (e = a, r)) {
1077
- const l = !je.length;
1078
- for (const u of n)
1079
- u[1](), je.push(u, e);
1080
- if (l) {
1081
- for (let u = 0; u < je.length; u += 2)
1082
- je[u][0](je[u + 1]);
1083
- je.length = 0;
1023
+ if (Ur(e, a) && (e = a, r)) {
1024
+ const f = !Ue.length;
1025
+ for (const h of n)
1026
+ h[1](), Ue.push(h, e);
1027
+ if (f) {
1028
+ for (let h = 0; h < Ue.length; h += 2)
1029
+ Ue[h][0](Ue[h + 1]);
1030
+ Ue.length = 0;
1084
1031
  }
1085
1032
  }
1086
1033
  }
1087
1034
  function o(a) {
1088
1035
  i(a(e));
1089
1036
  }
1090
- function s(a, l = ce) {
1091
- const u = [a, l];
1092
- return n.add(u), n.size === 1 && (r = t(i, o) || ce), a(e), () => {
1093
- n.delete(u), n.size === 0 && r && (r(), r = null);
1037
+ function s(a, f = fe) {
1038
+ const h = [a, f];
1039
+ return n.add(h), n.size === 1 && (r = t(i, o) || fe), a(e), () => {
1040
+ n.delete(h), n.size === 0 && r && (r(), r = null);
1094
1041
  };
1095
1042
  }
1096
1043
  return { set: i, update: o, subscribe: s };
1097
1044
  }
1098
- function Ze(e, t, r) {
1045
+ function We(e, t, r) {
1099
1046
  const n = !Array.isArray(e), i = n ? [e] : e;
1100
1047
  if (!i.every(Boolean))
1101
1048
  throw new Error("derived() expects stores as input, got a falsy value");
1102
1049
  const o = t.length < 2;
1103
- return _i(r, (s, a) => {
1104
- let l = !1;
1105
- const u = [];
1106
- let c = 0, d = ce;
1107
- const m = () => {
1050
+ return si(r, (s, a) => {
1051
+ let f = !1;
1052
+ const h = [];
1053
+ let c = 0, d = fe;
1054
+ const p = () => {
1108
1055
  if (c)
1109
1056
  return;
1110
1057
  d();
1111
- const O = t(n ? u[0] : u, s, a);
1112
- o ? s(O) : d = St(O) ? O : ce;
1058
+ const O = t(n ? h[0] : h, s, a);
1059
+ o ? s(O) : d = wt(O) ? O : fe;
1113
1060
  }, _ = i.map(
1114
- (O, B) => qr(
1061
+ (O, B) => Gr(
1115
1062
  O,
1116
1063
  (ee) => {
1117
- u[B] = ee, c &= ~(1 << B), l && m();
1064
+ h[B] = ee, c &= ~(1 << B), f && p();
1118
1065
  },
1119
1066
  () => {
1120
1067
  c |= 1 << B;
1121
1068
  }
1122
1069
  )
1123
1070
  );
1124
- return l = !0, m(), function() {
1125
- ht(_), d(), l = !1;
1071
+ return f = !0, p(), function() {
1072
+ ut(_), d(), f = !1;
1126
1073
  };
1127
1074
  });
1128
1075
  }
1129
- var xi = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
1130
- function wi(e) {
1076
+ var ai = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1077
+ function ui(e) {
1131
1078
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1132
1079
  }
1133
- var Ti = function(t) {
1134
- return Si(t) && !Ai(t);
1080
+ var li = function(t) {
1081
+ return hi(t) && !fi(t);
1135
1082
  };
1136
- function Si(e) {
1083
+ function hi(e) {
1137
1084
  return !!e && typeof e == "object";
1138
1085
  }
1139
- function Ai(e) {
1086
+ function fi(e) {
1140
1087
  var t = Object.prototype.toString.call(e);
1141
- return t === "[object RegExp]" || t === "[object Date]" || Pi(e);
1088
+ return t === "[object RegExp]" || t === "[object Date]" || mi(e);
1142
1089
  }
1143
- var Hi = typeof Symbol == "function" && Symbol.for, Bi = Hi ? Symbol.for("react.element") : 60103;
1144
- function Pi(e) {
1145
- return e.$$typeof === Bi;
1090
+ var ci = typeof Symbol == "function" && Symbol.for, di = ci ? Symbol.for("react.element") : 60103;
1091
+ function mi(e) {
1092
+ return e.$$typeof === di;
1146
1093
  }
1147
- function Ci(e) {
1094
+ function pi(e) {
1148
1095
  return Array.isArray(e) ? [] : {};
1149
1096
  }
1150
- function ut(e, t) {
1151
- return t.clone !== !1 && t.isMergeableObject(e) ? Xe(Ci(e), e, t) : e;
1097
+ function st(e, t) {
1098
+ return t.clone !== !1 && t.isMergeableObject(e) ? ke(pi(e), e, t) : e;
1152
1099
  }
1153
- function Oi(e, t, r) {
1100
+ function bi(e, t, r) {
1154
1101
  return e.concat(t).map(function(n) {
1155
- return ut(n, r);
1102
+ return st(n, r);
1156
1103
  });
1157
1104
  }
1158
- function Ii(e, t) {
1105
+ function gi(e, t) {
1159
1106
  if (!t.customMerge)
1160
- return Xe;
1107
+ return ke;
1161
1108
  var r = t.customMerge(e);
1162
- return typeof r == "function" ? r : Xe;
1109
+ return typeof r == "function" ? r : ke;
1163
1110
  }
1164
- function Li(e) {
1111
+ function yi(e) {
1165
1112
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1166
1113
  return Object.propertyIsEnumerable.call(e, t);
1167
1114
  }) : [];
1168
1115
  }
1169
- function Br(e) {
1170
- return Object.keys(e).concat(Li(e));
1116
+ function Er(e) {
1117
+ return Object.keys(e).concat(yi(e));
1171
1118
  }
1172
- function nn(e, t) {
1119
+ function qr(e, t) {
1173
1120
  try {
1174
1121
  return t in e;
1175
- } catch (r) {
1122
+ } catch {
1176
1123
  return !1;
1177
1124
  }
1178
1125
  }
1179
- function Ni(e, t) {
1180
- return nn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1126
+ function vi(e, t) {
1127
+ return qr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1181
1128
  }
1182
- function Mi(e, t, r) {
1129
+ function Ei(e, t, r) {
1183
1130
  var n = {};
1184
- return r.isMergeableObject(e) && Br(e).forEach(function(i) {
1185
- n[i] = ut(e[i], r);
1186
- }), Br(t).forEach(function(i) {
1187
- Ni(e, i) || (nn(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ii(i, r)(e[i], t[i], r) : n[i] = ut(t[i], r));
1131
+ return r.isMergeableObject(e) && Er(e).forEach(function(i) {
1132
+ n[i] = st(e[i], r);
1133
+ }), Er(t).forEach(function(i) {
1134
+ 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));
1188
1135
  }), n;
1189
1136
  }
1190
- function Xe(e, t, r) {
1191
- r = r || {}, r.arrayMerge = r.arrayMerge || Oi, r.isMergeableObject = r.isMergeableObject || Ti, r.cloneUnlessOtherwiseSpecified = ut;
1137
+ function ke(e, t, r) {
1138
+ r = r || {}, r.arrayMerge = r.arrayMerge || bi, r.isMergeableObject = r.isMergeableObject || li, r.cloneUnlessOtherwiseSpecified = st;
1192
1139
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1193
- return o ? n ? r.arrayMerge(e, t, r) : Mi(e, t, r) : ut(t, r);
1140
+ return o ? n ? r.arrayMerge(e, t, r) : Ei(e, t, r) : st(t, r);
1194
1141
  }
1195
- Xe.all = function(t, r) {
1142
+ ke.all = function(t, r) {
1196
1143
  if (!Array.isArray(t))
1197
1144
  throw new Error("first argument should be an array");
1198
1145
  return t.reduce(function(n, i) {
1199
- return Xe(n, i, r);
1146
+ return ke(n, i, r);
1200
1147
  }, {});
1201
1148
  };
1202
- var Ri = Xe, Di = Ri;
1203
- const Fi = /* @__PURE__ */ wi(Di);
1204
- function Gt(e, t) {
1205
- var r = t && t.cache ? t.cache : Vi, n = t && t.serializer ? t.serializer : ki, i = t && t.strategy ? t.strategy : Gi;
1149
+ var _i = ke, xi = _i;
1150
+ const wi = /* @__PURE__ */ ui(xi);
1151
+ function Rt(e, t) {
1152
+ var r = t && t.cache ? t.cache : Ci, n = t && t.serializer ? t.serializer : Bi, i = t && t.strategy ? t.strategy : Si;
1206
1153
  return i(e, {
1207
1154
  cache: r,
1208
1155
  serializer: n
1209
1156
  });
1210
1157
  }
1211
- function Ui(e) {
1158
+ function Ti(e) {
1212
1159
  return e == null || typeof e == "number" || typeof e == "boolean";
1213
1160
  }
1214
- function on(e, t, r, n) {
1215
- var i = Ui(n) ? n : r(n), o = t.get(i);
1216
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1161
+ function Zr(e, t, r, n) {
1162
+ var i = Ti(n) ? n : r(n), o = t.get(i);
1163
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1217
1164
  }
1218
- function sn(e, t, r) {
1165
+ function Jr(e, t, r) {
1219
1166
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1220
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1167
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1221
1168
  }
1222
- function fr(e, t, r, n, i) {
1169
+ function ar(e, t, r, n, i) {
1223
1170
  return r.bind(t, e, n, i);
1224
1171
  }
1225
- function Gi(e, t) {
1226
- var r = e.length === 1 ? on : sn;
1227
- return fr(e, this, r, t.cache.create(), t.serializer);
1172
+ function Si(e, t) {
1173
+ var r = e.length === 1 ? Zr : Jr;
1174
+ return ar(e, this, r, t.cache.create(), t.serializer);
1228
1175
  }
1229
- function ji(e, t) {
1230
- return fr(e, this, sn, t.cache.create(), t.serializer);
1176
+ function Ai(e, t) {
1177
+ return ar(e, this, Jr, t.cache.create(), t.serializer);
1231
1178
  }
1232
- function $i(e, t) {
1233
- return fr(e, this, on, t.cache.create(), t.serializer);
1179
+ function Hi(e, t) {
1180
+ return ar(e, this, Zr, t.cache.create(), t.serializer);
1234
1181
  }
1235
- var ki = function() {
1182
+ var Bi = function() {
1236
1183
  return JSON.stringify(arguments);
1237
- };
1238
- function cr() {
1239
- this.cache = /* @__PURE__ */ Object.create(null);
1240
- }
1241
- cr.prototype.get = function(e) {
1242
- return this.cache[e];
1243
- };
1244
- cr.prototype.set = function(e, t) {
1245
- this.cache[e] = t;
1246
- };
1247
- var Vi = {
1184
+ }, Pi = (
1185
+ /** @class */
1186
+ function() {
1187
+ function e() {
1188
+ this.cache = /* @__PURE__ */ Object.create(null);
1189
+ }
1190
+ return e.prototype.get = function(t) {
1191
+ return this.cache[t];
1192
+ }, e.prototype.set = function(t, r) {
1193
+ this.cache[t] = r;
1194
+ }, e;
1195
+ }()
1196
+ ), Ci = {
1248
1197
  create: function() {
1249
- return new cr();
1198
+ return new Pi();
1250
1199
  }
1251
- }, jt = {
1252
- variadic: ji,
1253
- monadic: $i
1200
+ }, Dt = {
1201
+ variadic: Ai,
1202
+ monadic: Hi
1254
1203
  }, A;
1255
1204
  (function(e) {
1256
1205
  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";
@@ -1259,47 +1208,47 @@ var D;
1259
1208
  (function(e) {
1260
1209
  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";
1261
1210
  })(D || (D = {}));
1262
- var ze;
1211
+ var Ve;
1263
1212
  (function(e) {
1264
1213
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1265
- })(ze || (ze = {}));
1266
- function Pr(e) {
1214
+ })(Ve || (Ve = {}));
1215
+ function _r(e) {
1267
1216
  return e.type === D.literal;
1268
1217
  }
1269
- function Xi(e) {
1218
+ function Oi(e) {
1270
1219
  return e.type === D.argument;
1271
1220
  }
1272
- function an(e) {
1221
+ function Qr(e) {
1273
1222
  return e.type === D.number;
1274
1223
  }
1275
- function un(e) {
1224
+ function Yr(e) {
1276
1225
  return e.type === D.date;
1277
1226
  }
1278
- function ln(e) {
1227
+ function Kr(e) {
1279
1228
  return e.type === D.time;
1280
1229
  }
1281
- function hn(e) {
1230
+ function en(e) {
1282
1231
  return e.type === D.select;
1283
1232
  }
1284
- function fn(e) {
1233
+ function tn(e) {
1285
1234
  return e.type === D.plural;
1286
1235
  }
1287
- function zi(e) {
1236
+ function Ii(e) {
1288
1237
  return e.type === D.pound;
1289
1238
  }
1290
- function cn(e) {
1239
+ function rn(e) {
1291
1240
  return e.type === D.tag;
1292
1241
  }
1293
- function dn(e) {
1294
- return !!(e && typeof e == "object" && e.type === ze.number);
1242
+ function nn(e) {
1243
+ return !!(e && typeof e == "object" && e.type === Ve.number);
1295
1244
  }
1296
- function rr(e) {
1297
- return !!(e && typeof e == "object" && e.type === ze.dateTime);
1245
+ function Yt(e) {
1246
+ return !!(e && typeof e == "object" && e.type === Ve.dateTime);
1298
1247
  }
1299
- var pn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wi = /(?:[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;
1300
- function qi(e) {
1248
+ 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;
1249
+ function Ni(e) {
1301
1250
  var t = {};
1302
- return e.replace(Wi, function(r) {
1251
+ return e.replace(Li, function(r) {
1303
1252
  var n = r.length;
1304
1253
  switch (r[0]) {
1305
1254
  case "G":
@@ -1388,36 +1337,36 @@ function qi(e) {
1388
1337
  return "";
1389
1338
  }), t;
1390
1339
  }
1391
- var Zi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1392
- function Ji(e) {
1340
+ var Mi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1341
+ function Ri(e) {
1393
1342
  if (e.length === 0)
1394
1343
  throw new Error("Number skeleton cannot be empty");
1395
- for (var t = e.split(Zi).filter(function(m) {
1396
- return m.length > 0;
1344
+ for (var t = e.split(Mi).filter(function(p) {
1345
+ return p.length > 0;
1397
1346
  }), r = [], n = 0, i = t; n < i.length; n++) {
1398
1347
  var o = i[n], s = o.split("/");
1399
1348
  if (s.length === 0)
1400
1349
  throw new Error("Invalid number skeleton");
1401
- for (var a = s[0], l = s.slice(1), u = 0, c = l; u < c.length; u++) {
1402
- var d = c[u];
1350
+ for (var a = s[0], f = s.slice(1), h = 0, c = f; h < c.length; h++) {
1351
+ var d = c[h];
1403
1352
  if (d.length === 0)
1404
1353
  throw new Error("Invalid number skeleton");
1405
1354
  }
1406
- r.push({ stem: a, options: l });
1355
+ r.push({ stem: a, options: f });
1407
1356
  }
1408
1357
  return r;
1409
1358
  }
1410
- function Qi(e) {
1359
+ function Di(e) {
1411
1360
  return e.replace(/^(.*?)-/, "");
1412
1361
  }
1413
- var Cr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mn = /^(@+)?(\+|#+)?[rs]?$/g, Yi = /(\*)(0+)|(#+)(0+)|(0+)/g, bn = /^(0+)$/;
1414
- function Or(e) {
1362
+ var xr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, sn = /^(@+)?(\+|#+)?[rs]?$/g, Fi = /(\*)(0+)|(#+)(0+)|(0+)/g, an = /^(0+)$/;
1363
+ function wr(e) {
1415
1364
  var t = {};
1416
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mn, function(r, n, i) {
1365
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(sn, function(r, n, i) {
1417
1366
  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)), "";
1418
1367
  }), t;
1419
1368
  }
1420
- function gn(e) {
1369
+ function un(e) {
1421
1370
  switch (e) {
1422
1371
  case "sign-auto":
1423
1372
  return {
@@ -1457,7 +1406,7 @@ function gn(e) {
1457
1406
  };
1458
1407
  }
1459
1408
  }
1460
- function Ki(e) {
1409
+ function Ui(e) {
1461
1410
  var t;
1462
1411
  if (e[0] === "E" && e[1] === "E" ? (t = {
1463
1412
  notation: "engineering"
@@ -1465,17 +1414,17 @@ function Ki(e) {
1465
1414
  notation: "scientific"
1466
1415
  }, e = e.slice(1)), t) {
1467
1416
  var r = e.slice(0, 2);
1468
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !bn.test(e))
1417
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !an.test(e))
1469
1418
  throw new Error("Malformed concise eng/scientific notation");
1470
1419
  t.minimumIntegerDigits = e.length;
1471
1420
  }
1472
1421
  return t;
1473
1422
  }
1474
- function Ir(e) {
1475
- var t = {}, r = gn(e);
1423
+ function Tr(e) {
1424
+ var t = {}, r = un(e);
1476
1425
  return r || t;
1477
1426
  }
1478
- function eo(e) {
1427
+ function Gi(e) {
1479
1428
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1480
1429
  var i = n[r];
1481
1430
  switch (i.stem) {
@@ -1499,7 +1448,7 @@ function eo(e) {
1499
1448
  continue;
1500
1449
  case "measure-unit":
1501
1450
  case "unit":
1502
- t.style = "unit", t.unit = Qi(i.options[0]);
1451
+ t.style = "unit", t.unit = Di(i.options[0]);
1503
1452
  continue;
1504
1453
  case "compact-short":
1505
1454
  case "K":
@@ -1510,13 +1459,13 @@ function eo(e) {
1510
1459
  t.notation = "compact", t.compactDisplay = "long";
1511
1460
  continue;
1512
1461
  case "scientific":
1513
- t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1514
- return P(P({}, l), Ir(u));
1462
+ t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(f, h) {
1463
+ return P(P({}, f), Tr(h));
1515
1464
  }, {}));
1516
1465
  continue;
1517
1466
  case "engineering":
1518
- t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1519
- return P(P({}, l), Ir(u));
1467
+ t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(f, h) {
1468
+ return P(P({}, f), Tr(h));
1520
1469
  }, {}));
1521
1470
  continue;
1522
1471
  case "notation-simple":
@@ -1561,11 +1510,11 @@ function eo(e) {
1561
1510
  case "integer-width":
1562
1511
  if (i.options.length > 1)
1563
1512
  throw new RangeError("integer-width stems only accept a single optional option");
1564
- i.options[0].replace(Yi, function(l, u, c, d, m, _) {
1565
- if (u)
1513
+ i.options[0].replace(Fi, function(f, h, c, d, p, _) {
1514
+ if (h)
1566
1515
  t.minimumIntegerDigits = c.length;
1567
1516
  else {
1568
- if (d && m)
1517
+ if (d && p)
1569
1518
  throw new Error("We currently do not support maximum integer digits");
1570
1519
  if (_)
1571
1520
  throw new Error("We currently do not support exact integer digits");
@@ -1574,32 +1523,32 @@ function eo(e) {
1574
1523
  });
1575
1524
  continue;
1576
1525
  }
1577
- if (bn.test(i.stem)) {
1526
+ if (an.test(i.stem)) {
1578
1527
  t.minimumIntegerDigits = i.stem.length;
1579
1528
  continue;
1580
1529
  }
1581
- if (Cr.test(i.stem)) {
1530
+ if (xr.test(i.stem)) {
1582
1531
  if (i.options.length > 1)
1583
1532
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1584
- i.stem.replace(Cr, function(l, u, c, d, m, _) {
1585
- return c === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && _ ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1533
+ i.stem.replace(xr, function(f, h, c, d, p, _) {
1534
+ 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), "";
1586
1535
  });
1587
1536
  var o = i.options[0];
1588
- o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), Or(o)));
1537
+ o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), wr(o)));
1589
1538
  continue;
1590
1539
  }
1591
- if (mn.test(i.stem)) {
1592
- t = P(P({}, t), Or(i.stem));
1540
+ if (sn.test(i.stem)) {
1541
+ t = P(P({}, t), wr(i.stem));
1593
1542
  continue;
1594
1543
  }
1595
- var s = gn(i.stem);
1544
+ var s = un(i.stem);
1596
1545
  s && (t = P(P({}, t), s));
1597
- var a = Ki(i.stem);
1546
+ var a = Ui(i.stem);
1598
1547
  a && (t = P(P({}, t), a));
1599
1548
  }
1600
1549
  return t;
1601
1550
  }
1602
- var vt = {
1551
+ var bt = {
1603
1552
  "001": [
1604
1553
  "H",
1605
1554
  "h"
@@ -3014,22 +2963,22 @@ var vt = {
3014
2963
  "h"
3015
2964
  ]
3016
2965
  };
3017
- function to(e, t) {
2966
+ function ji(e, t) {
3018
2967
  for (var r = "", n = 0; n < e.length; n++) {
3019
2968
  var i = e.charAt(n);
3020
2969
  if (i === "j") {
3021
2970
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3022
2971
  o++, n++;
3023
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ro(t);
3024
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
3025
- r += l;
2972
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), f = "a", h = $i(t);
2973
+ for ((h == "H" || h == "k") && (a = 0); a-- > 0; )
2974
+ r += f;
3026
2975
  for (; s-- > 0; )
3027
- r = u + r;
2976
+ r = h + r;
3028
2977
  } else i === "J" ? r += "H" : r += i;
3029
2978
  }
3030
2979
  return r;
3031
2980
  }
3032
- function ro(e) {
2981
+ function $i(e) {
3033
2982
  var t = e.hourCycle;
3034
2983
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3035
2984
  e.hourCycles && // @ts-ignore
@@ -3048,23 +2997,23 @@ function ro(e) {
3048
2997
  }
3049
2998
  var r = e.language, n;
3050
2999
  r !== "root" && (n = e.maximize().region);
3051
- var i = vt[n || ""] || vt[r || ""] || vt["".concat(r, "-001")] || vt["001"];
3000
+ var i = bt[n || ""] || bt[r || ""] || bt["".concat(r, "-001")] || bt["001"];
3052
3001
  return i[0];
3053
3002
  }
3054
- var $t, no = new RegExp("^".concat(pn.source, "*")), io = new RegExp("".concat(pn.source, "*$"));
3003
+ var Ft, ki = new RegExp("^".concat(on.source, "*")), Vi = new RegExp("".concat(on.source, "*$"));
3055
3004
  function H(e, t) {
3056
3005
  return { start: e, end: t };
3057
3006
  }
3058
- var oo = !!String.prototype.startsWith && "_a".startsWith("a", 1), so = !!String.fromCodePoint, ao = !!Object.fromEntries, uo = !!String.prototype.codePointAt, lo = !!String.prototype.trimStart, ho = !!String.prototype.trimEnd, fo = !!Number.isSafeInteger, co = fo ? Number.isSafeInteger : function(e) {
3007
+ 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) {
3059
3008
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3060
- }, nr = !0;
3009
+ }, Kt = !0;
3061
3010
  try {
3062
- var po = yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3063
- nr = (($t = po.exec("a")) === null || $t === void 0 ? void 0 : $t[0]) === "a";
3064
- } catch (e) {
3065
- nr = !1;
3011
+ var Ki = hn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3012
+ Kt = ((Ft = Ki.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
3013
+ } catch {
3014
+ Kt = !1;
3066
3015
  }
3067
- var Lr = oo ? (
3016
+ var Sr = Xi ? (
3068
3017
  // Native
3069
3018
  function(t, r, n) {
3070
3019
  return t.startsWith(r, n);
@@ -3074,7 +3023,7 @@ var Lr = oo ? (
3074
3023
  function(t, r, n) {
3075
3024
  return t.slice(n, n + r.length) === r;
3076
3025
  }
3077
- ), ir = so ? String.fromCodePoint : (
3026
+ ), er = zi ? String.fromCodePoint : (
3078
3027
  // IE11
3079
3028
  function() {
3080
3029
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3086,9 +3035,9 @@ var Lr = oo ? (
3086
3035
  }
3087
3036
  return n;
3088
3037
  }
3089
- ), Nr = (
3038
+ ), Ar = (
3090
3039
  // native
3091
- ao ? Object.fromEntries : (
3040
+ Wi ? Object.fromEntries : (
3092
3041
  // Ponyfill
3093
3042
  function(t) {
3094
3043
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3098,7 +3047,7 @@ var Lr = oo ? (
3098
3047
  return r;
3099
3048
  }
3100
3049
  )
3101
- ), vn = uo ? (
3050
+ ), ln = qi ? (
3102
3051
  // Native
3103
3052
  function(t, r) {
3104
3053
  return t.codePointAt(r);
@@ -3112,7 +3061,7 @@ var Lr = oo ? (
3112
3061
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3113
3062
  }
3114
3063
  }
3115
- ), mo = lo ? (
3064
+ ), eo = Zi ? (
3116
3065
  // Native
3117
3066
  function(t) {
3118
3067
  return t.trimStart();
@@ -3120,9 +3069,9 @@ var Lr = oo ? (
3120
3069
  ) : (
3121
3070
  // Ponyfill
3122
3071
  function(t) {
3123
- return t.replace(no, "");
3072
+ return t.replace(ki, "");
3124
3073
  }
3125
- ), bo = ho ? (
3074
+ ), to = Ji ? (
3126
3075
  // Native
3127
3076
  function(t) {
3128
3077
  return t.trimEnd();
@@ -3130,32 +3079,32 @@ var Lr = oo ? (
3130
3079
  ) : (
3131
3080
  // Ponyfill
3132
3081
  function(t) {
3133
- return t.replace(io, "");
3082
+ return t.replace(Vi, "");
3134
3083
  }
3135
3084
  );
3136
- function yn(e, t) {
3085
+ function hn(e, t) {
3137
3086
  return new RegExp(e, t);
3138
3087
  }
3139
- var or;
3140
- if (nr) {
3141
- var Mr = yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3142
- or = function(t, r) {
3088
+ var tr;
3089
+ if (Kt) {
3090
+ var Hr = hn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3091
+ tr = function(t, r) {
3143
3092
  var n;
3144
- Mr.lastIndex = r;
3145
- var i = Mr.exec(t);
3093
+ Hr.lastIndex = r;
3094
+ var i = Hr.exec(t);
3146
3095
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3147
3096
  };
3148
3097
  } else
3149
- or = function(t, r) {
3098
+ tr = function(t, r) {
3150
3099
  for (var n = []; ; ) {
3151
- var i = vn(t, r);
3152
- if (i === void 0 || En(i) || Eo(i))
3100
+ var i = ln(t, r);
3101
+ if (i === void 0 || fn(i) || oo(i))
3153
3102
  break;
3154
3103
  n.push(i), r += i >= 65536 ? 2 : 1;
3155
3104
  }
3156
- return ir.apply(void 0, n);
3105
+ return er.apply(void 0, n);
3157
3106
  };
3158
- var go = (
3107
+ var ro = (
3159
3108
  /** @class */
3160
3109
  function() {
3161
3110
  function e(t, r) {
@@ -3186,7 +3135,7 @@ var go = (
3186
3135
  if (n)
3187
3136
  break;
3188
3137
  return this.error(A.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
3189
- } else if (o === 60 && !this.ignoreTag && sr(this.peek() || 0)) {
3138
+ } else if (o === 60 && !this.ignoreTag && rr(this.peek() || 0)) {
3190
3139
  var s = this.parseTag(t, r);
3191
3140
  if (s.err)
3192
3141
  return s;
@@ -3219,10 +3168,10 @@ var go = (
3219
3168
  return o;
3220
3169
  var s = o.val, a = this.clonePosition();
3221
3170
  if (this.bumpIf("</")) {
3222
- if (this.isEOF() || !sr(this.char()))
3171
+ if (this.isEOF() || !rr(this.char()))
3223
3172
  return this.error(A.INVALID_TAG, H(a, this.clonePosition()));
3224
- var l = this.clonePosition(), u = this.parseTagName();
3225
- return i !== u ? this.error(A.UNMATCHED_CLOSING_TAG, H(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3173
+ var f = this.clonePosition(), h = this.parseTagName();
3174
+ return i !== h ? this.error(A.UNMATCHED_CLOSING_TAG, H(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3226
3175
  val: {
3227
3176
  type: D.tag,
3228
3177
  value: i,
@@ -3237,7 +3186,7 @@ var go = (
3237
3186
  return this.error(A.INVALID_TAG, H(n, this.clonePosition()));
3238
3187
  }, e.prototype.parseTagName = function() {
3239
3188
  var t = this.offset();
3240
- for (this.bump(); !this.isEOF() && yo(this.char()); )
3189
+ for (this.bump(); !this.isEOF() && io(this.char()); )
3241
3190
  this.bump();
3242
3191
  return this.message.slice(t, this.offset());
3243
3192
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3259,14 +3208,14 @@ var go = (
3259
3208
  }
3260
3209
  break;
3261
3210
  }
3262
- var l = H(n, this.clonePosition());
3211
+ var f = H(n, this.clonePosition());
3263
3212
  return {
3264
- val: { type: D.literal, value: i, location: l },
3213
+ val: { type: D.literal, value: i, location: f },
3265
3214
  err: null
3266
3215
  };
3267
3216
  }, e.prototype.tryParseLeftAngleBracket = function() {
3268
3217
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3269
- !vo(this.peek() || 0)) ? (this.bump(), "<") : null;
3218
+ !no(this.peek() || 0)) ? (this.bump(), "<") : null;
3270
3219
  }, e.prototype.tryParseQuote = function(t) {
3271
3220
  if (this.isEOF() || this.char() !== 39)
3272
3221
  return null;
@@ -3300,12 +3249,12 @@ var go = (
3300
3249
  r.push(n);
3301
3250
  this.bump();
3302
3251
  }
3303
- return ir.apply(void 0, r);
3252
+ return er.apply(void 0, r);
3304
3253
  }, e.prototype.tryParseUnquoted = function(t, r) {
3305
3254
  if (this.isEOF())
3306
3255
  return null;
3307
3256
  var n = this.char();
3308
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ir(n));
3257
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), er(n));
3309
3258
  }, e.prototype.parseArgument = function(t, r) {
3310
3259
  var n = this.clonePosition();
3311
3260
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3334,39 +3283,39 @@ var go = (
3334
3283
  return this.error(A.MALFORMED_ARGUMENT, H(n, this.clonePosition()));
3335
3284
  }
3336
3285
  }, e.prototype.parseIdentifierIfPossible = function() {
3337
- var t = this.clonePosition(), r = this.offset(), n = or(this.message, r), i = r + n.length;
3286
+ var t = this.clonePosition(), r = this.offset(), n = tr(this.message, r), i = r + n.length;
3338
3287
  this.bumpTo(i);
3339
3288
  var o = this.clonePosition(), s = H(t, o);
3340
3289
  return { value: n, location: s };
3341
3290
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3342
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3291
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, f = this.clonePosition();
3343
3292
  switch (a) {
3344
3293
  case "":
3345
- return this.error(A.EXPECT_ARGUMENT_TYPE, H(s, l));
3294
+ return this.error(A.EXPECT_ARGUMENT_TYPE, H(s, f));
3346
3295
  case "number":
3347
3296
  case "date":
3348
3297
  case "time": {
3349
3298
  this.bumpSpace();
3350
- var u = null;
3299
+ var h = null;
3351
3300
  if (this.bumpIf(",")) {
3352
3301
  this.bumpSpace();
3353
3302
  var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
3354
3303
  if (d.err)
3355
3304
  return d;
3356
- var m = bo(d.val);
3357
- if (m.length === 0)
3305
+ var p = to(d.val);
3306
+ if (p.length === 0)
3358
3307
  return this.error(A.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
3359
3308
  var _ = H(c, this.clonePosition());
3360
- u = { style: m, styleLocation: _ };
3309
+ h = { style: p, styleLocation: _ };
3361
3310
  }
3362
3311
  var O = this.tryParseArgumentClose(i);
3363
3312
  if (O.err)
3364
3313
  return O;
3365
3314
  var B = H(i, this.clonePosition());
3366
- if (u && Lr(u == null ? void 0 : u.style, "::", 0)) {
3367
- var ee = mo(u.style.slice(2));
3315
+ if (h && Sr(h?.style, "::", 0)) {
3316
+ var ee = eo(h.style.slice(2));
3368
3317
  if (a === "number") {
3369
- var d = this.parseNumberSkeletonFromString(ee, u.styleLocation);
3318
+ var d = this.parseNumberSkeletonFromString(ee, h.styleLocation);
3370
3319
  return d.err ? d : {
3371
3320
  val: { type: D.number, value: n, location: B, style: d.val },
3372
3321
  err: null
@@ -3374,16 +3323,16 @@ var go = (
3374
3323
  } else {
3375
3324
  if (ee.length === 0)
3376
3325
  return this.error(A.EXPECT_DATE_TIME_SKELETON, B);
3377
- var pe = ee;
3378
- this.locale && (pe = to(ee, this.locale));
3379
- var m = {
3380
- type: ze.dateTime,
3381
- pattern: pe,
3382
- location: u.styleLocation,
3383
- parsedOptions: this.shouldParseSkeletons ? qi(pe) : {}
3326
+ var de = ee;
3327
+ this.locale && (de = ji(ee, this.locale));
3328
+ var p = {
3329
+ type: Ve.dateTime,
3330
+ pattern: de,
3331
+ location: h.styleLocation,
3332
+ parsedOptions: this.shouldParseSkeletons ? Ni(de) : {}
3384
3333
  }, ie = a === "date" ? D.date : D.time;
3385
3334
  return {
3386
- val: { type: ie, value: n, location: B, style: m },
3335
+ val: { type: ie, value: n, location: B, style: p },
3387
3336
  err: null
3388
3337
  };
3389
3338
  }
@@ -3393,7 +3342,7 @@ var go = (
3393
3342
  type: a === "number" ? D.number : a === "date" ? D.date : D.time,
3394
3343
  value: n,
3395
3344
  location: B,
3396
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
3345
+ style: (o = h?.style) !== null && o !== void 0 ? o : null
3397
3346
  },
3398
3347
  err: null
3399
3348
  };
@@ -3421,29 +3370,29 @@ var go = (
3421
3370
  var O = this.tryParseArgumentClose(i);
3422
3371
  if (O.err)
3423
3372
  return O;
3424
- var ge = H(i, this.clonePosition());
3373
+ var be = H(i, this.clonePosition());
3425
3374
  return a === "select" ? {
3426
3375
  val: {
3427
3376
  type: D.select,
3428
3377
  value: n,
3429
- options: Nr(le.val),
3430
- location: ge
3378
+ options: Ar(le.val),
3379
+ location: be
3431
3380
  },
3432
3381
  err: null
3433
3382
  } : {
3434
3383
  val: {
3435
3384
  type: D.plural,
3436
3385
  value: n,
3437
- options: Nr(le.val),
3386
+ options: Ar(le.val),
3438
3387
  offset: Z,
3439
3388
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3440
- location: ge
3389
+ location: be
3441
3390
  },
3442
3391
  err: null
3443
3392
  };
3444
3393
  }
3445
3394
  default:
3446
- return this.error(A.INVALID_ARGUMENT_TYPE, H(s, l));
3395
+ return this.error(A.INVALID_ARGUMENT_TYPE, H(s, f));
3447
3396
  }
3448
3397
  }, e.prototype.tryParseArgumentClose = function(t) {
3449
3398
  return this.isEOF() || this.char() !== 125 ? this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3485,34 +3434,34 @@ var go = (
3485
3434
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3486
3435
  var n = [];
3487
3436
  try {
3488
- n = Ji(t);
3489
- } catch (i) {
3437
+ n = Ri(t);
3438
+ } catch {
3490
3439
  return this.error(A.INVALID_NUMBER_SKELETON, r);
3491
3440
  }
3492
3441
  return {
3493
3442
  val: {
3494
- type: ze.number,
3443
+ type: Ve.number,
3495
3444
  tokens: n,
3496
3445
  location: r,
3497
- parsedOptions: this.shouldParseSkeletons ? eo(n) : {}
3446
+ parsedOptions: this.shouldParseSkeletons ? Gi(n) : {}
3498
3447
  },
3499
3448
  err: null
3500
3449
  };
3501
3450
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3502
- for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
3503
- if (u.length === 0) {
3451
+ for (var o, s = !1, a = [], f = /* @__PURE__ */ new Set(), h = i.value, c = i.location; ; ) {
3452
+ if (h.length === 0) {
3504
3453
  var d = this.clonePosition();
3505
3454
  if (r !== "select" && this.bumpIf("=")) {
3506
- var m = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
3507
- if (m.err)
3508
- return m;
3509
- c = H(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
3455
+ var p = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
3456
+ if (p.err)
3457
+ return p;
3458
+ c = H(d, this.clonePosition()), h = this.message.slice(d.offset, this.offset());
3510
3459
  } else
3511
3460
  break;
3512
3461
  }
3513
- if (l.has(u))
3462
+ if (f.has(h))
3514
3463
  return this.error(r === "select" ? A.DUPLICATE_SELECT_ARGUMENT_SELECTOR : A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3515
- u === "other" && (s = !0), this.bumpSpace();
3464
+ h === "other" && (s = !0), this.bumpSpace();
3516
3465
  var _ = this.clonePosition();
3517
3466
  if (!this.bumpIf("{"))
3518
3467
  return this.error(r === "select" ? A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
@@ -3523,12 +3472,12 @@ var go = (
3523
3472
  if (B.err)
3524
3473
  return B;
3525
3474
  a.push([
3526
- u,
3475
+ h,
3527
3476
  {
3528
3477
  value: O.val,
3529
3478
  location: H(_, this.clonePosition())
3530
3479
  }
3531
- ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
3480
+ ]), f.add(h), this.bumpSpace(), o = this.parseIdentifierIfPossible(), h = o.value, c = o.location;
3532
3481
  }
3533
3482
  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 };
3534
3483
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
@@ -3541,8 +3490,8 @@ var go = (
3541
3490
  else
3542
3491
  break;
3543
3492
  }
3544
- var l = H(i, this.clonePosition());
3545
- return o ? (s *= n, co(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3493
+ var f = H(i, this.clonePosition());
3494
+ return o ? (s *= n, Yi(s) ? { val: s, err: null } : this.error(r, f)) : this.error(t, f);
3546
3495
  }, e.prototype.offset = function() {
3547
3496
  return this.position.offset;
3548
3497
  }, e.prototype.isEOF = function() {
@@ -3557,7 +3506,7 @@ var go = (
3557
3506
  var t = this.position.offset;
3558
3507
  if (t >= this.message.length)
3559
3508
  throw Error("out of bound");
3560
- var r = vn(this.message, t);
3509
+ var r = ln(this.message, t);
3561
3510
  if (r === void 0)
3562
3511
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3563
3512
  return r;
@@ -3576,7 +3525,7 @@ var go = (
3576
3525
  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);
3577
3526
  }
3578
3527
  }, e.prototype.bumpIf = function(t) {
3579
- if (Lr(this.message, t, this.offset())) {
3528
+ if (Sr(this.message, t, this.offset())) {
3580
3529
  for (var r = 0; r < t.length; r++)
3581
3530
  this.bump();
3582
3531
  return !0;
@@ -3598,56 +3547,56 @@ var go = (
3598
3547
  break;
3599
3548
  }
3600
3549
  }, e.prototype.bumpSpace = function() {
3601
- for (; !this.isEOF() && En(this.char()); )
3550
+ for (; !this.isEOF() && fn(this.char()); )
3602
3551
  this.bump();
3603
3552
  }, e.prototype.peek = function() {
3604
3553
  if (this.isEOF())
3605
3554
  return null;
3606
3555
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3607
- return n != null ? n : null;
3556
+ return n ?? null;
3608
3557
  }, e;
3609
3558
  }()
3610
3559
  );
3611
- function sr(e) {
3560
+ function rr(e) {
3612
3561
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3613
3562
  }
3614
- function vo(e) {
3615
- return sr(e) || e === 47;
3563
+ function no(e) {
3564
+ return rr(e) || e === 47;
3616
3565
  }
3617
- function yo(e) {
3566
+ function io(e) {
3618
3567
  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;
3619
3568
  }
3620
- function En(e) {
3569
+ function fn(e) {
3621
3570
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3622
3571
  }
3623
- function Eo(e) {
3572
+ function oo(e) {
3624
3573
  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;
3625
3574
  }
3626
- function ar(e) {
3575
+ function nr(e) {
3627
3576
  e.forEach(function(t) {
3628
- if (delete t.location, hn(t) || fn(t))
3577
+ if (delete t.location, en(t) || tn(t))
3629
3578
  for (var r in t.options)
3630
- delete t.options[r].location, ar(t.options[r].value);
3631
- else an(t) && dn(t.style) || (un(t) || ln(t)) && rr(t.style) ? delete t.style.location : cn(t) && ar(t.children);
3579
+ delete t.options[r].location, nr(t.options[r].value);
3580
+ else Qr(t) && nn(t.style) || (Yr(t) || Kr(t)) && Yt(t.style) ? delete t.style.location : rn(t) && nr(t.children);
3632
3581
  });
3633
3582
  }
3634
- function _o(e, t) {
3583
+ function so(e, t) {
3635
3584
  t === void 0 && (t = {}), t = P({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3636
- var r = new go(e, t).parse();
3585
+ var r = new ro(e, t).parse();
3637
3586
  if (r.err) {
3638
3587
  var n = SyntaxError(A[r.err.kind]);
3639
3588
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3640
3589
  }
3641
- return t != null && t.captureLocation || ar(r.val), r.val;
3590
+ return t?.captureLocation || nr(r.val), r.val;
3642
3591
  }
3643
- var We;
3592
+ var Xe;
3644
3593
  (function(e) {
3645
3594
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3646
- })(We || (We = {}));
3647
- var Bt = (
3595
+ })(Xe || (Xe = {}));
3596
+ var At = (
3648
3597
  /** @class */
3649
3598
  function(e) {
3650
- we(t, e);
3599
+ xe(t, e);
3651
3600
  function t(r, n, i) {
3652
3601
  var o = e.call(this, r) || this;
3653
3602
  return o.code = n, o.originalMessage = i, o;
@@ -3656,64 +3605,64 @@ var Bt = (
3656
3605
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3657
3606
  }, t;
3658
3607
  }(Error)
3659
- ), Rr = (
3608
+ ), Br = (
3660
3609
  /** @class */
3661
3610
  function(e) {
3662
- we(t, e);
3611
+ xe(t, e);
3663
3612
  function t(r, n, i, o) {
3664
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), We.INVALID_VALUE, o) || this;
3613
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Xe.INVALID_VALUE, o) || this;
3665
3614
  }
3666
3615
  return t;
3667
- }(Bt)
3668
- ), xo = (
3616
+ }(At)
3617
+ ), ao = (
3669
3618
  /** @class */
3670
3619
  function(e) {
3671
- we(t, e);
3620
+ xe(t, e);
3672
3621
  function t(r, n, i) {
3673
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), We.INVALID_VALUE, i) || this;
3622
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Xe.INVALID_VALUE, i) || this;
3674
3623
  }
3675
3624
  return t;
3676
- }(Bt)
3677
- ), wo = (
3625
+ }(At)
3626
+ ), uo = (
3678
3627
  /** @class */
3679
3628
  function(e) {
3680
- we(t, e);
3629
+ xe(t, e);
3681
3630
  function t(r, n) {
3682
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), We.MISSING_VALUE, n) || this;
3631
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Xe.MISSING_VALUE, n) || this;
3683
3632
  }
3684
3633
  return t;
3685
- }(Bt)
3634
+ }(At)
3686
3635
  ), K;
3687
3636
  (function(e) {
3688
3637
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3689
3638
  })(K || (K = {}));
3690
- function To(e) {
3639
+ function lo(e) {
3691
3640
  return e.length < 2 ? e : e.reduce(function(t, r) {
3692
3641
  var n = t[t.length - 1];
3693
3642
  return !n || n.type !== K.literal || r.type !== K.literal ? t.push(r) : n.value += r.value, t;
3694
3643
  }, []);
3695
3644
  }
3696
- function So(e) {
3645
+ function ho(e) {
3697
3646
  return typeof e == "function";
3698
3647
  }
3699
- function _t(e, t, r, n, i, o, s) {
3700
- if (e.length === 1 && Pr(e[0]))
3648
+ function vt(e, t, r, n, i, o, s) {
3649
+ if (e.length === 1 && _r(e[0]))
3701
3650
  return [
3702
3651
  {
3703
3652
  type: K.literal,
3704
3653
  value: e[0].value
3705
3654
  }
3706
3655
  ];
3707
- for (var a = [], l = 0, u = e; l < u.length; l++) {
3708
- var c = u[l];
3709
- if (Pr(c)) {
3656
+ for (var a = [], f = 0, h = e; f < h.length; f++) {
3657
+ var c = h[f];
3658
+ if (_r(c)) {
3710
3659
  a.push({
3711
3660
  type: K.literal,
3712
3661
  value: c.value
3713
3662
  });
3714
3663
  continue;
3715
3664
  }
3716
- if (zi(c)) {
3665
+ if (Ii(c)) {
3717
3666
  typeof o == "number" && a.push({
3718
3667
  type: K.literal,
3719
3668
  value: r.getNumberFormat(t).format(o)
@@ -3722,44 +3671,44 @@ function _t(e, t, r, n, i, o, s) {
3722
3671
  }
3723
3672
  var d = c.value;
3724
3673
  if (!(i && d in i))
3725
- throw new wo(d, s);
3726
- var m = i[d];
3727
- if (Xi(c)) {
3728
- (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
3729
- type: typeof m == "string" ? K.literal : K.object,
3730
- value: m
3674
+ throw new uo(d, s);
3675
+ var p = i[d];
3676
+ if (Oi(c)) {
3677
+ (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), a.push({
3678
+ type: typeof p == "string" ? K.literal : K.object,
3679
+ value: p
3731
3680
  });
3732
3681
  continue;
3733
3682
  }
3734
- if (un(c)) {
3735
- var _ = typeof c.style == "string" ? n.date[c.style] : rr(c.style) ? c.style.parsedOptions : void 0;
3683
+ if (Yr(c)) {
3684
+ var _ = typeof c.style == "string" ? n.date[c.style] : Yt(c.style) ? c.style.parsedOptions : void 0;
3736
3685
  a.push({
3737
3686
  type: K.literal,
3738
- value: r.getDateTimeFormat(t, _).format(m)
3687
+ value: r.getDateTimeFormat(t, _).format(p)
3739
3688
  });
3740
3689
  continue;
3741
3690
  }
3742
- if (ln(c)) {
3743
- var _ = typeof c.style == "string" ? n.time[c.style] : rr(c.style) ? c.style.parsedOptions : n.time.medium;
3691
+ if (Kr(c)) {
3692
+ var _ = typeof c.style == "string" ? n.time[c.style] : Yt(c.style) ? c.style.parsedOptions : n.time.medium;
3744
3693
  a.push({
3745
3694
  type: K.literal,
3746
- value: r.getDateTimeFormat(t, _).format(m)
3695
+ value: r.getDateTimeFormat(t, _).format(p)
3747
3696
  });
3748
3697
  continue;
3749
3698
  }
3750
- if (an(c)) {
3751
- var _ = typeof c.style == "string" ? n.number[c.style] : dn(c.style) ? c.style.parsedOptions : void 0;
3752
- _ && _.scale && (m = m * (_.scale || 1)), a.push({
3699
+ if (Qr(c)) {
3700
+ var _ = typeof c.style == "string" ? n.number[c.style] : nn(c.style) ? c.style.parsedOptions : void 0;
3701
+ _ && _.scale && (p = p * (_.scale || 1)), a.push({
3753
3702
  type: K.literal,
3754
- value: r.getNumberFormat(t, _).format(m)
3703
+ value: r.getNumberFormat(t, _).format(p)
3755
3704
  });
3756
3705
  continue;
3757
3706
  }
3758
- if (cn(c)) {
3707
+ if (rn(c)) {
3759
3708
  var O = c.children, B = c.value, ee = i[B];
3760
- if (!So(ee))
3761
- throw new xo(B, "function", s);
3762
- var pe = _t(O, t, r, n, i, o), ie = ee(pe.map(function(Z) {
3709
+ if (!ho(ee))
3710
+ throw new ao(B, "function", s);
3711
+ var de = vt(O, t, r, n, i, o), ie = ee(de.map(function(Z) {
3763
3712
  return Z.value;
3764
3713
  }));
3765
3714
  Array.isArray(ie) || (ie = [ie]), a.push.apply(a, ie.map(function(Z) {
@@ -3769,42 +3718,42 @@ function _t(e, t, r, n, i, o, s) {
3769
3718
  };
3770
3719
  }));
3771
3720
  }
3772
- if (hn(c)) {
3773
- var M = c.options[m] || c.options.other;
3721
+ if (en(c)) {
3722
+ var M = c.options[p] || c.options.other;
3774
3723
  if (!M)
3775
- throw new Rr(c.value, m, Object.keys(c.options), s);
3776
- a.push.apply(a, _t(M.value, t, r, n, i));
3724
+ throw new Br(c.value, p, Object.keys(c.options), s);
3725
+ a.push.apply(a, vt(M.value, t, r, n, i));
3777
3726
  continue;
3778
3727
  }
3779
- if (fn(c)) {
3780
- var M = c.options["=".concat(m)];
3728
+ if (tn(c)) {
3729
+ var M = c.options["=".concat(p)];
3781
3730
  if (!M) {
3782
3731
  if (!Intl.PluralRules)
3783
- throw new Bt(`Intl.PluralRules is not available in this environment.
3732
+ throw new At(`Intl.PluralRules is not available in this environment.
3784
3733
  Try polyfilling it using "@formatjs/intl-pluralrules"
3785
- `, We.MISSING_INTL_API, s);
3786
- var $ = r.getPluralRules(t, { type: c.pluralType }).select(m - (c.offset || 0));
3734
+ `, Xe.MISSING_INTL_API, s);
3735
+ var $ = r.getPluralRules(t, { type: c.pluralType }).select(p - (c.offset || 0));
3787
3736
  M = c.options[$] || c.options.other;
3788
3737
  }
3789
3738
  if (!M)
3790
- throw new Rr(c.value, m, Object.keys(c.options), s);
3791
- a.push.apply(a, _t(M.value, t, r, n, i, m - (c.offset || 0)));
3739
+ throw new Br(c.value, p, Object.keys(c.options), s);
3740
+ a.push.apply(a, vt(M.value, t, r, n, i, p - (c.offset || 0)));
3792
3741
  continue;
3793
3742
  }
3794
3743
  }
3795
- return To(a);
3744
+ return lo(a);
3796
3745
  }
3797
- function Ao(e, t) {
3746
+ function fo(e, t) {
3798
3747
  return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3799
3748
  return r[n] = P(P({}, e[n]), t[n] || {}), r;
3800
3749
  }, {})) : e;
3801
3750
  }
3802
- function Ho(e, t) {
3751
+ function co(e, t) {
3803
3752
  return t ? Object.keys(e).reduce(function(r, n) {
3804
- return r[n] = Ao(e[n], t[n]), r;
3753
+ return r[n] = fo(e[n], t[n]), r;
3805
3754
  }, P({}, e)) : e;
3806
3755
  }
3807
- function kt(e) {
3756
+ function Ut(e) {
3808
3757
  return {
3809
3758
  create: function() {
3810
3759
  return {
@@ -3818,39 +3767,39 @@ function kt(e) {
3818
3767
  }
3819
3768
  };
3820
3769
  }
3821
- function Bo(e) {
3770
+ function mo(e) {
3822
3771
  return e === void 0 && (e = {
3823
3772
  number: {},
3824
3773
  dateTime: {},
3825
3774
  pluralRules: {}
3826
3775
  }), {
3827
- getNumberFormat: Gt(function() {
3776
+ getNumberFormat: Rt(function() {
3828
3777
  for (var t, r = [], n = 0; n < arguments.length; n++)
3829
3778
  r[n] = arguments[n];
3830
- return new ((t = Intl.NumberFormat).bind.apply(t, Ve([void 0], r, !1)))();
3779
+ return new ((t = Intl.NumberFormat).bind.apply(t, $e([void 0], r, !1)))();
3831
3780
  }, {
3832
- cache: kt(e.number),
3833
- strategy: jt.variadic
3781
+ cache: Ut(e.number),
3782
+ strategy: Dt.variadic
3834
3783
  }),
3835
- getDateTimeFormat: Gt(function() {
3784
+ getDateTimeFormat: Rt(function() {
3836
3785
  for (var t, r = [], n = 0; n < arguments.length; n++)
3837
3786
  r[n] = arguments[n];
3838
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ve([void 0], r, !1)))();
3787
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, $e([void 0], r, !1)))();
3839
3788
  }, {
3840
- cache: kt(e.dateTime),
3841
- strategy: jt.variadic
3789
+ cache: Ut(e.dateTime),
3790
+ strategy: Dt.variadic
3842
3791
  }),
3843
- getPluralRules: Gt(function() {
3792
+ getPluralRules: Rt(function() {
3844
3793
  for (var t, r = [], n = 0; n < arguments.length; n++)
3845
3794
  r[n] = arguments[n];
3846
- return new ((t = Intl.PluralRules).bind.apply(t, Ve([void 0], r, !1)))();
3795
+ return new ((t = Intl.PluralRules).bind.apply(t, $e([void 0], r, !1)))();
3847
3796
  }, {
3848
- cache: kt(e.pluralRules),
3849
- strategy: jt.variadic
3797
+ cache: Ut(e.pluralRules),
3798
+ strategy: Dt.variadic
3850
3799
  })
3851
3800
  };
3852
3801
  }
3853
- var Po = (
3802
+ var po = (
3854
3803
  /** @class */
3855
3804
  function() {
3856
3805
  function e(t, r, n, i) {
@@ -3860,20 +3809,20 @@ var Po = (
3860
3809
  number: {},
3861
3810
  dateTime: {},
3862
3811
  pluralRules: {}
3863
- }, this.format = function(l) {
3864
- var u = o.formatToParts(l);
3865
- if (u.length === 1)
3866
- return u[0].value;
3867
- var c = u.reduce(function(d, m) {
3868
- return !d.length || m.type !== K.literal || typeof d[d.length - 1] != "string" ? d.push(m.value) : d[d.length - 1] += m.value, d;
3812
+ }, this.format = function(f) {
3813
+ var h = o.formatToParts(f);
3814
+ if (h.length === 1)
3815
+ return h[0].value;
3816
+ var c = h.reduce(function(d, p) {
3817
+ return !d.length || p.type !== K.literal || typeof d[d.length - 1] != "string" ? d.push(p.value) : d[d.length - 1] += p.value, d;
3869
3818
  }, []);
3870
3819
  return c.length <= 1 ? c[0] || "" : c;
3871
- }, this.formatToParts = function(l) {
3872
- return _t(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3820
+ }, this.formatToParts = function(f) {
3821
+ return vt(o.ast, o.locales, o.formatters, o.formats, f, void 0, o.message);
3873
3822
  }, this.resolvedOptions = function() {
3874
- var l;
3823
+ var f;
3875
3824
  return {
3876
- locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3825
+ locale: ((f = o.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3877
3826
  };
3878
3827
  }, this.getAst = function() {
3879
3828
  return o.ast;
@@ -3882,13 +3831,13 @@ var Po = (
3882
3831
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3883
3832
  var s = i || {};
3884
3833
  s.formatters;
3885
- var a = si(s, ["formatters"]);
3834
+ var a = Xn(s, ["formatters"]);
3886
3835
  this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
3887
3836
  } else
3888
3837
  this.ast = t;
3889
3838
  if (!Array.isArray(this.ast))
3890
3839
  throw new TypeError("A message must be provided as a String or AST.");
3891
- this.formats = Ho(e.formats, n), this.formatters = i && i.formatters || Bo(this.formatterCache);
3840
+ this.formats = co(e.formats, n), this.formatters = i && i.formatters || mo(this.formatterCache);
3892
3841
  }
3893
3842
  return Object.defineProperty(e, "defaultLocale", {
3894
3843
  get: function() {
@@ -3897,11 +3846,11 @@ var Po = (
3897
3846
  enumerable: !1,
3898
3847
  configurable: !0
3899
3848
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3900
- if (typeof Intl.Locale != "undefined") {
3849
+ if (!(typeof Intl.Locale > "u")) {
3901
3850
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3902
3851
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3903
3852
  }
3904
- }, e.__parse = _o, e.formats = {
3853
+ }, e.__parse = so, e.formats = {
3905
3854
  number: {
3906
3855
  integer: {
3907
3856
  maximumFractionDigits: 0
@@ -3962,7 +3911,7 @@ var Po = (
3962
3911
  }, e;
3963
3912
  }()
3964
3913
  );
3965
- function Co(e, t) {
3914
+ function bo(e, t) {
3966
3915
  if (t == null)
3967
3916
  return;
3968
3917
  if (t in e)
@@ -3983,92 +3932,92 @@ function Co(e, t) {
3983
3932
  n = void 0;
3984
3933
  return n;
3985
3934
  }
3986
- const Ae = {}, Oo = (e, t, r) => r && (t in Ae || (Ae[t] = {}), e in Ae[t] || (Ae[t][e] = r), r), _n = (e, t) => {
3935
+ const Se = {}, go = (e, t, r) => r && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = r), r), cn = (e, t) => {
3987
3936
  if (t == null)
3988
3937
  return;
3989
- if (t in Ae && e in Ae[t])
3990
- return Ae[t][e];
3991
- const r = Pt(t);
3938
+ if (t in Se && e in Se[t])
3939
+ return Se[t][e];
3940
+ const r = Ht(t);
3992
3941
  for (let n = 0; n < r.length; n++) {
3993
- const i = r[n], o = Lo(i, e);
3942
+ const i = r[n], o = vo(i, e);
3994
3943
  if (o)
3995
- return Oo(e, t, o);
3944
+ return go(e, t, o);
3996
3945
  }
3997
3946
  };
3998
- let dr;
3999
- const Je = Ht({});
4000
- function Io(e) {
4001
- return dr[e] || null;
3947
+ let ur;
3948
+ const qe = St({});
3949
+ function yo(e) {
3950
+ return ur[e] || null;
4002
3951
  }
4003
- function xn(e) {
4004
- return e in dr;
3952
+ function dn(e) {
3953
+ return e in ur;
4005
3954
  }
4006
- function Lo(e, t) {
4007
- if (!xn(e))
3955
+ function vo(e, t) {
3956
+ if (!dn(e))
4008
3957
  return null;
4009
- const r = Io(e);
4010
- return Co(r, t);
3958
+ const r = yo(e);
3959
+ return bo(r, t);
4011
3960
  }
4012
- function No(e) {
3961
+ function Eo(e) {
4013
3962
  if (e == null)
4014
3963
  return;
4015
- const t = Pt(e);
3964
+ const t = Ht(e);
4016
3965
  for (let r = 0; r < t.length; r++) {
4017
3966
  const n = t[r];
4018
- if (xn(n))
3967
+ if (dn(n))
4019
3968
  return n;
4020
3969
  }
4021
3970
  }
4022
- function wn(e, ...t) {
4023
- delete Ae[e], Je.update((r) => (r[e] = Fi.all([r[e] || {}, ...t]), r));
3971
+ function mn(e, ...t) {
3972
+ delete Se[e], qe.update((r) => (r[e] = wi.all([r[e] || {}, ...t]), r));
4024
3973
  }
4025
- Ze(
4026
- [Je],
3974
+ We(
3975
+ [qe],
4027
3976
  ([e]) => Object.keys(e)
4028
3977
  );
4029
- Je.subscribe((e) => dr = e);
4030
- const xt = {};
4031
- function Mo(e, t) {
4032
- xt[e].delete(t), xt[e].size === 0 && delete xt[e];
3978
+ qe.subscribe((e) => ur = e);
3979
+ const Et = {};
3980
+ function _o(e, t) {
3981
+ Et[e].delete(t), Et[e].size === 0 && delete Et[e];
4033
3982
  }
4034
- function Tn(e) {
4035
- return xt[e];
3983
+ function pn(e) {
3984
+ return Et[e];
4036
3985
  }
4037
- function Ro(e) {
4038
- return Pt(e).map((t) => {
4039
- const r = Tn(t);
3986
+ function xo(e) {
3987
+ return Ht(e).map((t) => {
3988
+ const r = pn(t);
4040
3989
  return [t, r ? [...r] : []];
4041
3990
  }).filter(([, t]) => t.length > 0);
4042
3991
  }
4043
- function ur(e) {
4044
- return e == null ? !1 : Pt(e).some(
3992
+ function ir(e) {
3993
+ return e == null ? !1 : Ht(e).some(
4045
3994
  (t) => {
4046
3995
  var r;
4047
- return (r = Tn(t)) == null ? void 0 : r.size;
3996
+ return (r = pn(t)) == null ? void 0 : r.size;
4048
3997
  }
4049
3998
  );
4050
3999
  }
4051
- function Do(e, t) {
4000
+ function wo(e, t) {
4052
4001
  return Promise.all(
4053
- t.map((n) => (Mo(e, n), n().then((i) => i.default || i)))
4054
- ).then((n) => wn(e, ...n));
4055
- }
4056
- const it = {};
4057
- function Sn(e) {
4058
- if (!ur(e))
4059
- return e in it ? it[e] : Promise.resolve();
4060
- const t = Ro(e);
4061
- return it[e] = Promise.all(
4002
+ t.map((n) => (_o(e, n), n().then((i) => i.default || i)))
4003
+ ).then((n) => mn(e, ...n));
4004
+ }
4005
+ const rt = {};
4006
+ function bn(e) {
4007
+ if (!ir(e))
4008
+ return e in rt ? rt[e] : Promise.resolve();
4009
+ const t = xo(e);
4010
+ return rt[e] = Promise.all(
4062
4011
  t.map(
4063
- ([r, n]) => Do(r, n)
4012
+ ([r, n]) => wo(r, n)
4064
4013
  )
4065
4014
  ).then(() => {
4066
- if (ur(e))
4067
- return Sn(e);
4068
- delete it[e];
4069
- }), it[e];
4015
+ if (ir(e))
4016
+ return bn(e);
4017
+ delete rt[e];
4018
+ }), rt[e];
4070
4019
  }
4071
- const Fo = {
4020
+ const To = {
4072
4021
  number: {
4073
4022
  scientific: { notation: "scientific" },
4074
4023
  engineering: { notation: "engineering" },
@@ -4097,150 +4046,150 @@ const Fo = {
4097
4046
  timeZoneName: "short"
4098
4047
  }
4099
4048
  }
4100
- }, Uo = {
4049
+ }, So = {
4101
4050
  fallbackLocale: null,
4102
4051
  loadingDelay: 200,
4103
- formats: Fo,
4052
+ formats: To,
4104
4053
  warnOnMissingMessages: !0,
4105
4054
  handleMissingMessage: void 0,
4106
4055
  ignoreTag: !0
4107
- }, Go = Uo;
4108
- function qe() {
4109
- return Go;
4110
- }
4111
- const Vt = Ht(!1);
4112
- var jo = Object.defineProperty, $o = Object.defineProperties, ko = Object.getOwnPropertyDescriptors, Dr = Object.getOwnPropertySymbols, Vo = Object.prototype.hasOwnProperty, Xo = Object.prototype.propertyIsEnumerable, Fr = (e, t, r) => t in e ? jo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, zo = (e, t) => {
4113
- for (var r in t || (t = {}))
4114
- Vo.call(t, r) && Fr(e, r, t[r]);
4115
- if (Dr)
4116
- for (var r of Dr(t))
4117
- Xo.call(t, r) && Fr(e, r, t[r]);
4056
+ }, Ao = So;
4057
+ function ze() {
4058
+ return Ao;
4059
+ }
4060
+ const Gt = St(!1);
4061
+ 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) => {
4062
+ for (var r in t)
4063
+ Co.call(t, r) && Cr(e, r, t[r]);
4064
+ if (Pr)
4065
+ for (var r of Pr(t))
4066
+ Oo.call(t, r) && Cr(e, r, t[r]);
4118
4067
  return e;
4119
- }, Wo = (e, t) => $o(e, ko(t));
4120
- let lr;
4121
- const wt = Ht(null);
4122
- function Ur(e) {
4068
+ }, Lo = (e, t) => Bo(e, Po(t));
4069
+ let or;
4070
+ const _t = St(null);
4071
+ function Or(e) {
4123
4072
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4124
4073
  }
4125
- function Pt(e, t = qe().fallbackLocale) {
4126
- const r = Ur(e);
4127
- return t ? [.../* @__PURE__ */ new Set([...r, ...Ur(t)])] : r;
4074
+ function Ht(e, t = ze().fallbackLocale) {
4075
+ const r = Or(e);
4076
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Or(t)])] : r;
4128
4077
  }
4129
- function Me() {
4130
- return lr != null ? lr : void 0;
4078
+ function Le() {
4079
+ return or ?? void 0;
4131
4080
  }
4132
- wt.subscribe((e) => {
4133
- lr = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4081
+ _t.subscribe((e) => {
4082
+ or = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4134
4083
  });
4135
- const qo = (e) => {
4136
- if (e && No(e) && ur(e)) {
4137
- const { loadingDelay: t } = qe();
4084
+ const No = (e) => {
4085
+ if (e && Eo(e) && ir(e)) {
4086
+ const { loadingDelay: t } = ze();
4138
4087
  let r;
4139
- return typeof window != "undefined" && Me() != null && t ? r = window.setTimeout(
4140
- () => Vt.set(!0),
4088
+ return typeof window < "u" && Le() != null && t ? r = window.setTimeout(
4089
+ () => Gt.set(!0),
4141
4090
  t
4142
- ) : Vt.set(!0), Sn(e).then(() => {
4143
- wt.set(e);
4091
+ ) : Gt.set(!0), bn(e).then(() => {
4092
+ _t.set(e);
4144
4093
  }).finally(() => {
4145
- clearTimeout(r), Vt.set(!1);
4094
+ clearTimeout(r), Gt.set(!1);
4146
4095
  });
4147
4096
  }
4148
- return wt.set(e);
4149
- }, He = Wo(zo({}, wt), {
4150
- set: qo
4151
- }), Ct = (e) => {
4097
+ return _t.set(e);
4098
+ }, Ae = Lo(Io({}, _t), {
4099
+ set: No
4100
+ }), Bt = (e) => {
4152
4101
  const t = /* @__PURE__ */ Object.create(null);
4153
4102
  return (n) => {
4154
4103
  const i = JSON.stringify(n);
4155
4104
  return i in t ? t[i] : t[i] = e(n);
4156
4105
  };
4157
4106
  };
4158
- var Zo = Object.defineProperty, Tt = Object.getOwnPropertySymbols, An = Object.prototype.hasOwnProperty, Hn = Object.prototype.propertyIsEnumerable, Gr = (e, t, r) => t in e ? Zo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pr = (e, t) => {
4107
+ 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) => {
4159
4108
  for (var r in t || (t = {}))
4160
- An.call(t, r) && Gr(e, r, t[r]);
4161
- if (Tt)
4162
- for (var r of Tt(t))
4163
- Hn.call(t, r) && Gr(e, r, t[r]);
4109
+ gn.call(t, r) && Ir(e, r, t[r]);
4110
+ if (xt)
4111
+ for (var r of xt(t))
4112
+ yn.call(t, r) && Ir(e, r, t[r]);
4164
4113
  return e;
4165
- }, Qe = (e, t) => {
4114
+ }, Ze = (e, t) => {
4166
4115
  var r = {};
4167
4116
  for (var n in e)
4168
- An.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4169
- if (e != null && Tt)
4170
- for (var n of Tt(e))
4171
- t.indexOf(n) < 0 && Hn.call(e, n) && (r[n] = e[n]);
4117
+ gn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4118
+ if (e != null && xt)
4119
+ for (var n of xt(e))
4120
+ t.indexOf(n) < 0 && yn.call(e, n) && (r[n] = e[n]);
4172
4121
  return r;
4173
4122
  };
4174
- const lt = (e, t) => {
4175
- const { formats: r } = qe();
4123
+ const at = (e, t) => {
4124
+ const { formats: r } = ze();
4176
4125
  if (e in r && t in r[e])
4177
4126
  return r[e][t];
4178
4127
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4179
- }, Jo = Ct(
4128
+ }, Ro = Bt(
4180
4129
  (e) => {
4181
- var t = e, { locale: r, format: n } = t, i = Qe(t, ["locale", "format"]);
4130
+ var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
4182
4131
  if (r == null)
4183
4132
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4184
- return n && (i = lt("number", n)), new Intl.NumberFormat(r, i);
4133
+ return n && (i = at("number", n)), new Intl.NumberFormat(r, i);
4185
4134
  }
4186
- ), Qo = Ct(
4135
+ ), Do = Bt(
4187
4136
  (e) => {
4188
- var t = e, { locale: r, format: n } = t, i = Qe(t, ["locale", "format"]);
4137
+ var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
4189
4138
  if (r == null)
4190
4139
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4191
- return n ? i = lt("date", n) : Object.keys(i).length === 0 && (i = lt("date", "short")), new Intl.DateTimeFormat(r, i);
4140
+ return n ? i = at("date", n) : Object.keys(i).length === 0 && (i = at("date", "short")), new Intl.DateTimeFormat(r, i);
4192
4141
  }
4193
- ), Yo = Ct(
4142
+ ), Fo = Bt(
4194
4143
  (e) => {
4195
- var t = e, { locale: r, format: n } = t, i = Qe(t, ["locale", "format"]);
4144
+ var t = e, { locale: r, format: n } = t, i = Ze(t, ["locale", "format"]);
4196
4145
  if (r == null)
4197
4146
  throw new Error(
4198
4147
  '[svelte-i18n] A "locale" must be set to format time values'
4199
4148
  );
4200
- return n ? i = lt("time", n) : Object.keys(i).length === 0 && (i = lt("time", "short")), new Intl.DateTimeFormat(r, i);
4149
+ return n ? i = at("time", n) : Object.keys(i).length === 0 && (i = at("time", "short")), new Intl.DateTimeFormat(r, i);
4201
4150
  }
4202
- ), Ko = (e = {}) => {
4151
+ ), Uo = (e = {}) => {
4203
4152
  var t = e, {
4204
- locale: r = Me()
4205
- } = t, n = Qe(t, [
4153
+ locale: r = Le()
4154
+ } = t, n = Ze(t, [
4206
4155
  "locale"
4207
4156
  ]);
4208
- return Jo(pr({ locale: r }, n));
4209
- }, es = (e = {}) => {
4157
+ return Ro(lr({ locale: r }, n));
4158
+ }, Go = (e = {}) => {
4210
4159
  var t = e, {
4211
- locale: r = Me()
4212
- } = t, n = Qe(t, [
4160
+ locale: r = Le()
4161
+ } = t, n = Ze(t, [
4213
4162
  "locale"
4214
4163
  ]);
4215
- return Qo(pr({ locale: r }, n));
4216
- }, ts = (e = {}) => {
4164
+ return Do(lr({ locale: r }, n));
4165
+ }, jo = (e = {}) => {
4217
4166
  var t = e, {
4218
- locale: r = Me()
4219
- } = t, n = Qe(t, [
4167
+ locale: r = Le()
4168
+ } = t, n = Ze(t, [
4220
4169
  "locale"
4221
4170
  ]);
4222
- return Yo(pr({ locale: r }, n));
4223
- }, rs = Ct(
4171
+ return Fo(lr({ locale: r }, n));
4172
+ }, $o = Bt(
4224
4173
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4225
- (e, t = Me()) => new Po(e, t, qe().formats, {
4226
- ignoreTag: qe().ignoreTag
4174
+ (e, t = Le()) => new po(e, t, ze().formats, {
4175
+ ignoreTag: ze().ignoreTag
4227
4176
  })
4228
- ), ns = (e, t = {}) => {
4177
+ ), ko = (e, t = {}) => {
4229
4178
  var r, n, i, o;
4230
4179
  let s = t;
4231
4180
  typeof e == "object" && (s = e, e = s.id);
4232
4181
  const {
4233
4182
  values: a,
4234
- locale: l = Me(),
4235
- default: u
4183
+ locale: f = Le(),
4184
+ default: h
4236
4185
  } = s;
4237
- if (l == null)
4186
+ if (f == null)
4238
4187
  throw new Error(
4239
4188
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4240
4189
  );
4241
- let c = _n(e, l);
4190
+ let c = cn(e, f);
4242
4191
  if (!c)
4243
- c = (o = (i = (n = (r = qe()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4192
+ 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;
4244
4193
  else if (typeof c != "string")
4245
4194
  return console.warn(
4246
4195
  `[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.`
@@ -4249,33 +4198,33 @@ const lt = (e, t) => {
4249
4198
  return c;
4250
4199
  let d = c;
4251
4200
  try {
4252
- d = rs(c, l).format(a);
4253
- } catch (m) {
4254
- m instanceof Error && console.warn(
4201
+ d = $o(c, f).format(a);
4202
+ } catch (p) {
4203
+ p instanceof Error && console.warn(
4255
4204
  `[svelte-i18n] Message "${e}" has syntax error:`,
4256
- m.message
4205
+ p.message
4257
4206
  );
4258
4207
  }
4259
4208
  return d;
4260
- }, is = (e, t) => ts(t).format(e), os = (e, t) => es(t).format(e), ss = (e, t) => Ko(t).format(e), as = (e, t = Me()) => _n(e, t), us = Ze([He, Je], () => ns);
4261
- Ze([He], () => is);
4262
- Ze([He], () => os);
4263
- Ze([He], () => ss);
4264
- Ze([He, Je], () => as);
4265
- window.emWidgets = { topic: Ei };
4266
- const Os = (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)), ls = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4267
- function hs({ withLocale: e, translations: t }) {
4268
- He.subscribe((r) => {
4269
- r == null && (Je.set(t), He.set(e));
4209
+ }, 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);
4210
+ We([Ae], () => Vo);
4211
+ We([Ae], () => Xo);
4212
+ We([Ae], () => zo);
4213
+ We([Ae, qe], () => Wo);
4214
+ window.emWidgets = { topic: oi };
4215
+ 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";
4216
+ function Jo({ withLocale: e, translations: t }) {
4217
+ Ae.subscribe((r) => {
4218
+ r == null && (qe.set(t), Ae.set(e));
4270
4219
  });
4271
4220
  }
4272
- function Xt(e, t) {
4273
- wn(e, t);
4221
+ function jt(e, t) {
4222
+ mn(e, t);
4274
4223
  }
4275
- function jr(e) {
4276
- He.set(e);
4224
+ function Lr(e) {
4225
+ Ae.set(e);
4277
4226
  }
4278
- const $r = {
4227
+ const Nr = {
4279
4228
  en: {
4280
4229
  500: "500 - Internal server error",
4281
4230
  showMore: "Show more",
@@ -4343,7 +4292,7 @@ const $r = {
4343
4292
  noTournaments: "No tournaments found"
4344
4293
  }
4345
4294
  };
4346
- var hr = { exports: {} };
4295
+ var sr = { exports: {} };
4347
4296
  /** @license
4348
4297
  * eventsource.js
4349
4298
  * Available under MIT License (MIT)
@@ -4351,30 +4300,30 @@ var hr = { exports: {} };
4351
4300
  */
4352
4301
  (function(e, t) {
4353
4302
  (function(r) {
4354
- var n = r.setTimeout, i = r.clearTimeout, o = r.XMLHttpRequest, s = r.XDomainRequest, a = r.ActiveXObject, l = r.EventSource, u = r.document, c = r.Promise, d = r.fetch, m = r.Response, _ = r.TextDecoder, O = r.TextEncoder, B = r.AbortController;
4355
- if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(h) {
4356
- u.readyState = "complete";
4303
+ 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;
4304
+ if (typeof window < "u" && typeof h < "u" && !("readyState" in h) && h.body == null && (h.readyState = "loading", window.addEventListener("load", function(u) {
4305
+ h.readyState = "complete";
4357
4306
  }, !1)), o == null && a != null && (o = function() {
4358
4307
  return new a("Microsoft.XMLHTTP");
4359
- }), Object.create == null && (Object.create = function(h) {
4308
+ }), Object.create == null && (Object.create = function(u) {
4360
4309
  function b() {
4361
4310
  }
4362
- return b.prototype = h, new b();
4311
+ return b.prototype = u, new b();
4363
4312
  }), Date.now || (Date.now = function() {
4364
4313
  return (/* @__PURE__ */ new Date()).getTime();
4365
4314
  }), B == null) {
4366
4315
  var ee = d;
4367
- d = function(h, b) {
4316
+ d = function(u, b) {
4368
4317
  var g = b.signal;
4369
- return ee(h, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(p) {
4370
- var y = p.body.getReader();
4371
- return g._reader = y, g._aborted && g._reader.cancel(), {
4372
- status: p.status,
4373
- statusText: p.statusText,
4374
- headers: p.headers,
4318
+ return ee(u, { headers: b.headers, credentials: b.credentials, cache: b.cache }).then(function(m) {
4319
+ var v = m.body.getReader();
4320
+ return g._reader = v, g._aborted && g._reader.cancel(), {
4321
+ status: m.status,
4322
+ statusText: m.statusText,
4323
+ headers: m.headers,
4375
4324
  body: {
4376
4325
  getReader: function() {
4377
- return y;
4326
+ return v;
4378
4327
  }
4379
4328
  }
4380
4329
  };
@@ -4388,10 +4337,10 @@ var hr = { exports: {} };
4388
4337
  };
4389
4338
  };
4390
4339
  }
4391
- function pe() {
4340
+ function de() {
4392
4341
  this.bitsNeeded = 0, this.codePoint = 0;
4393
4342
  }
4394
- pe.prototype.decode = function(h) {
4343
+ de.prototype.decode = function(u) {
4395
4344
  function b(C, L, E) {
4396
4345
  if (E === 1)
4397
4346
  return C >= 128 >> L && C << L <= 2047;
@@ -4410,101 +4359,101 @@ var hr = { exports: {} };
4410
4359
  return 3;
4411
4360
  throw new Error();
4412
4361
  }
4413
- for (var p = 65533, y = "", v = this.bitsNeeded, x = this.codePoint, R = 0; R < h.length; R += 1) {
4414
- var T = h[R];
4415
- v !== 0 && (T < 128 || T > 191 || !b(x << 6 | T & 63, v - 6, g(v, x))) && (v = 0, x = p, y += String.fromCharCode(x)), v === 0 ? (T >= 0 && T <= 127 ? (v = 0, x = T) : T >= 192 && T <= 223 ? (v = 6 * 1, x = T & 31) : T >= 224 && T <= 239 ? (v = 6 * 2, x = T & 15) : T >= 240 && T <= 247 ? (v = 6 * 3, x = T & 7) : (v = 0, x = p), v !== 0 && !b(x, v, g(v, x)) && (v = 0, x = p)) : (v -= 6, x = x << 6 | T & 63), v === 0 && (x <= 65535 ? y += String.fromCharCode(x) : (y += String.fromCharCode(55296 + (x - 65535 - 1 >> 10)), y += String.fromCharCode(56320 + (x - 65535 - 1 & 1023))));
4362
+ for (var m = 65533, v = "", y = this.bitsNeeded, x = this.codePoint, R = 0; R < u.length; R += 1) {
4363
+ var T = u[R];
4364
+ 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))));
4416
4365
  }
4417
- return this.bitsNeeded = v, this.codePoint = x, y;
4366
+ return this.bitsNeeded = y, this.codePoint = x, v;
4418
4367
  };
4419
4368
  var ie = function() {
4420
4369
  try {
4421
4370
  return new _().decode(new O().encode("test"), { stream: !0 }) === "test";
4422
- } catch (h) {
4423
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
4371
+ } catch (u) {
4372
+ console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + u);
4424
4373
  }
4425
4374
  return !1;
4426
4375
  };
4427
- (_ == null || O == null || !ie()) && (_ = pe);
4376
+ (_ == null || O == null || !ie()) && (_ = de);
4428
4377
  var M = function() {
4429
4378
  };
4430
- function $(h) {
4431
- 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 = h, this._sendTimeout = 0, this._abort = M;
4379
+ function $(u) {
4380
+ 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;
4432
4381
  }
4433
- $.prototype.open = function(h, b) {
4382
+ $.prototype.open = function(u, b) {
4434
4383
  this._abort(!0);
4435
- var g = this, p = this._xhr, y = 1, v = 0;
4384
+ var g = this, m = this._xhr, v = 1, y = 0;
4436
4385
  this._abort = function(E) {
4437
- g._sendTimeout !== 0 && (i(g._sendTimeout), g._sendTimeout = 0), (y === 1 || y === 2 || y === 3) && (y = 4, p.onload = M, p.onerror = M, p.onabort = M, p.onprogress = M, p.onreadystatechange = M, p.abort(), v !== 0 && (i(v), v = 0), E || (g.readyState = 4, g.onabort(null), g.onreadystatechange())), y = 0;
4386
+ 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;
4438
4387
  };
4439
4388
  var x = function() {
4440
- if (y === 1) {
4441
- var E = 0, f = "", S = void 0;
4442
- if ("contentType" in p)
4443
- E = 200, f = "OK", S = p.contentType;
4389
+ if (v === 1) {
4390
+ var E = 0, l = "", S = void 0;
4391
+ if ("contentType" in m)
4392
+ E = 200, l = "OK", S = m.contentType;
4444
4393
  else
4445
4394
  try {
4446
- E = p.status, f = p.statusText, S = p.getResponseHeader("Content-Type");
4447
- } catch (N) {
4448
- E = 0, f = "", S = void 0;
4395
+ E = m.status, l = m.statusText, S = m.getResponseHeader("Content-Type");
4396
+ } catch {
4397
+ E = 0, l = "", S = void 0;
4449
4398
  }
4450
- E !== 0 && (y = 2, g.readyState = 2, g.status = E, g.statusText = f, g._contentType = S, g.onreadystatechange());
4399
+ E !== 0 && (v = 2, g.readyState = 2, g.status = E, g.statusText = l, g._contentType = S, g.onreadystatechange());
4451
4400
  }
4452
4401
  }, R = function() {
4453
- if (x(), y === 2 || y === 3) {
4454
- y = 3;
4402
+ if (x(), v === 2 || v === 3) {
4403
+ v = 3;
4455
4404
  var E = "";
4456
4405
  try {
4457
- E = p.responseText;
4458
- } catch (f) {
4406
+ E = m.responseText;
4407
+ } catch {
4459
4408
  }
4460
4409
  g.readyState = 3, g.responseText = E, g.onprogress();
4461
4410
  }
4462
- }, T = function(E, f) {
4463
- if ((f == null || f.preventDefault == null) && (f = {
4411
+ }, T = function(E, l) {
4412
+ if ((l == null || l.preventDefault == null) && (l = {
4464
4413
  preventDefault: M
4465
- }), R(), y === 1 || y === 2 || y === 3) {
4466
- if (y = 4, v !== 0 && (i(v), v = 0), g.readyState = 4, E === "load")
4467
- g.onload(f);
4414
+ }), R(), v === 1 || v === 2 || v === 3) {
4415
+ if (v = 4, y !== 0 && (i(y), y = 0), g.readyState = 4, E === "load")
4416
+ g.onload(l);
4468
4417
  else if (E === "error")
4469
- g.onerror(f);
4418
+ g.onerror(l);
4470
4419
  else if (E === "abort")
4471
- g.onabort(f);
4420
+ g.onabort(l);
4472
4421
  else
4473
4422
  throw new TypeError();
4474
4423
  g.onreadystatechange();
4475
4424
  }
4476
4425
  }, C = function(E) {
4477
- p != null && (p.readyState === 4 ? (!("onload" in p) || !("onerror" in p) || !("onabort" in p)) && T(p.responseText === "" ? "error" : "load", E) : p.readyState === 3 ? "onprogress" in p || R() : p.readyState === 2 && x());
4426
+ 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());
4478
4427
  }, L = function() {
4479
- v = n(function() {
4428
+ y = n(function() {
4480
4429
  L();
4481
- }, 500), p.readyState === 3 && R();
4430
+ }, 500), m.readyState === 3 && R();
4482
4431
  };
4483
- "onload" in p && (p.onload = function(E) {
4432
+ "onload" in m && (m.onload = function(E) {
4484
4433
  T("load", E);
4485
- }), "onerror" in p && (p.onerror = function(E) {
4434
+ }), "onerror" in m && (m.onerror = function(E) {
4486
4435
  T("error", E);
4487
- }), "onabort" in p && (p.onabort = function(E) {
4436
+ }), "onabort" in m && (m.onabort = function(E) {
4488
4437
  T("abort", E);
4489
- }), "onprogress" in p && (p.onprogress = R), "onreadystatechange" in p && (p.onreadystatechange = function(E) {
4438
+ }), "onprogress" in m && (m.onprogress = R), "onreadystatechange" in m && (m.onreadystatechange = function(E) {
4490
4439
  C(E);
4491
- }), ("contentType" in p || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), p.open(h, b, !0), "readyState" in p && (v = n(function() {
4440
+ }), ("contentType" in m || !("ontimeout" in o.prototype)) && (b += (b.indexOf("?") === -1 ? "?" : "&") + "padding=true"), m.open(u, b, !0), "readyState" in m && (y = n(function() {
4492
4441
  L();
4493
4442
  }, 0));
4494
4443
  }, $.prototype.abort = function() {
4495
4444
  this._abort(!1);
4496
- }, $.prototype.getResponseHeader = function(h) {
4445
+ }, $.prototype.getResponseHeader = function(u) {
4497
4446
  return this._contentType;
4498
- }, $.prototype.setRequestHeader = function(h, b) {
4447
+ }, $.prototype.setRequestHeader = function(u, b) {
4499
4448
  var g = this._xhr;
4500
- "setRequestHeader" in g && g.setRequestHeader(h, b);
4449
+ "setRequestHeader" in g && g.setRequestHeader(u, b);
4501
4450
  }, $.prototype.getAllResponseHeaders = function() {
4502
4451
  return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
4503
4452
  }, $.prototype.send = function() {
4504
- if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
4505
- var h = this;
4506
- h._sendTimeout = n(function() {
4507
- h._sendTimeout = 0, h.send();
4453
+ if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && h != null && h.readyState != null && h.readyState !== "complete") {
4454
+ var u = this;
4455
+ u._sendTimeout = n(function() {
4456
+ u._sendTimeout = 0, u.send();
4508
4457
  }, 4);
4509
4458
  return;
4510
4459
  }
@@ -4516,67 +4465,67 @@ var hr = { exports: {} };
4516
4465
  throw g;
4517
4466
  }
4518
4467
  };
4519
- function Z(h) {
4520
- return h.replace(/[A-Z]/g, function(b) {
4468
+ function Z(u) {
4469
+ return u.replace(/[A-Z]/g, function(b) {
4521
4470
  return String.fromCharCode(b.charCodeAt(0) + 32);
4522
4471
  });
4523
4472
  }
4524
- function le(h) {
4525
- for (var b = /* @__PURE__ */ Object.create(null), g = h.split(`\r
4526
- `), p = 0; p < g.length; p += 1) {
4527
- var y = g[p], v = y.split(": "), x = v.shift(), R = v.join(": ");
4473
+ function le(u) {
4474
+ for (var b = /* @__PURE__ */ Object.create(null), g = u.split(`\r
4475
+ `), m = 0; m < g.length; m += 1) {
4476
+ var v = g[m], y = v.split(": "), x = y.shift(), R = y.join(": ");
4528
4477
  b[Z(x)] = R;
4529
4478
  }
4530
4479
  this._map = b;
4531
4480
  }
4532
- le.prototype.get = function(h) {
4533
- return this._map[Z(h)];
4481
+ le.prototype.get = function(u) {
4482
+ return this._map[Z(u)];
4534
4483
  }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
4535
- function ge() {
4484
+ function be() {
4536
4485
  }
4537
- ge.prototype.open = function(h, b, g, p, y, v, x) {
4538
- h.open("GET", y);
4486
+ be.prototype.open = function(u, b, g, m, v, y, x) {
4487
+ u.open("GET", v);
4539
4488
  var R = 0;
4540
- h.onprogress = function() {
4541
- var C = h.responseText, L = C.slice(R);
4489
+ u.onprogress = function() {
4490
+ var C = u.responseText, L = C.slice(R);
4542
4491
  R += L.length, g(L);
4543
- }, h.onerror = function(C) {
4544
- C.preventDefault(), p(new Error("NetworkError"));
4545
- }, h.onload = function() {
4546
- p(null);
4547
- }, h.onabort = function() {
4548
- p(null);
4549
- }, h.onreadystatechange = function() {
4550
- if (h.readyState === o.HEADERS_RECEIVED) {
4551
- var C = h.status, L = h.statusText, E = h.getResponseHeader("Content-Type"), f = h.getAllResponseHeaders();
4552
- b(C, L, E, new le(f));
4492
+ }, u.onerror = function(C) {
4493
+ C.preventDefault(), m(new Error("NetworkError"));
4494
+ }, u.onload = function() {
4495
+ m(null);
4496
+ }, u.onabort = function() {
4497
+ m(null);
4498
+ }, u.onreadystatechange = function() {
4499
+ if (u.readyState === o.HEADERS_RECEIVED) {
4500
+ var C = u.status, L = u.statusText, E = u.getResponseHeader("Content-Type"), l = u.getAllResponseHeaders();
4501
+ b(C, L, E, new le(l));
4553
4502
  }
4554
- }, h.withCredentials = v;
4503
+ }, u.withCredentials = y;
4555
4504
  for (var T in x)
4556
- Object.prototype.hasOwnProperty.call(x, T) && h.setRequestHeader(T, x[T]);
4557
- return h.send(), h;
4505
+ Object.prototype.hasOwnProperty.call(x, T) && u.setRequestHeader(T, x[T]);
4506
+ return u.send(), u;
4558
4507
  };
4559
- function Re(h) {
4560
- this._headers = h;
4508
+ function Ne(u) {
4509
+ this._headers = u;
4561
4510
  }
4562
- Re.prototype.get = function(h) {
4563
- return this._headers.get(h);
4511
+ Ne.prototype.get = function(u) {
4512
+ return this._headers.get(u);
4564
4513
  };
4565
- function Be() {
4514
+ function He() {
4566
4515
  }
4567
- Be.prototype.open = function(h, b, g, p, y, v, x) {
4516
+ He.prototype.open = function(u, b, g, m, v, y, x) {
4568
4517
  var R = null, T = new B(), C = T.signal, L = new _();
4569
- return d(y, {
4518
+ return d(v, {
4570
4519
  headers: x,
4571
- credentials: v ? "include" : "same-origin",
4520
+ credentials: y ? "include" : "same-origin",
4572
4521
  signal: C,
4573
4522
  cache: "no-store"
4574
4523
  }).then(function(E) {
4575
- return R = E.body.getReader(), b(E.status, E.statusText, E.headers.get("Content-Type"), new Re(E.headers)), new c(function(f, S) {
4524
+ return R = E.body.getReader(), b(E.status, E.statusText, E.headers.get("Content-Type"), new Ne(E.headers)), new c(function(l, S) {
4576
4525
  var N = function() {
4577
4526
  R.read().then(function(I) {
4578
4527
  if (I.done)
4579
- f(void 0);
4528
+ l(void 0);
4580
4529
  else {
4581
4530
  var k = L.decode(I.value, { stream: !0 });
4582
4531
  g(k), N();
@@ -4591,205 +4540,205 @@ var hr = { exports: {} };
4591
4540
  if (E.name !== "AbortError")
4592
4541
  return E;
4593
4542
  }).then(function(E) {
4594
- p(E);
4543
+ m(E);
4595
4544
  }), {
4596
4545
  abort: function() {
4597
- R != null && R.cancel(), T.abort();
4546
+ R?.cancel(), T.abort();
4598
4547
  }
4599
4548
  };
4600
4549
  };
4601
4550
  function me() {
4602
4551
  this._listeners = /* @__PURE__ */ Object.create(null);
4603
4552
  }
4604
- function Pe(h) {
4553
+ function Be(u) {
4605
4554
  n(function() {
4606
- throw h;
4555
+ throw u;
4607
4556
  }, 0);
4608
4557
  }
4609
- me.prototype.dispatchEvent = function(h) {
4610
- h.target = this;
4611
- var b = this._listeners[h.type];
4558
+ me.prototype.dispatchEvent = function(u) {
4559
+ u.target = this;
4560
+ var b = this._listeners[u.type];
4612
4561
  if (b != null)
4613
- for (var g = b.length, p = 0; p < g; p += 1) {
4614
- var y = b[p];
4562
+ for (var g = b.length, m = 0; m < g; m += 1) {
4563
+ var v = b[m];
4615
4564
  try {
4616
- typeof y.handleEvent == "function" ? y.handleEvent(h) : y.call(this, h);
4617
- } catch (v) {
4618
- Pe(v);
4565
+ typeof v.handleEvent == "function" ? v.handleEvent(u) : v.call(this, u);
4566
+ } catch (y) {
4567
+ Be(y);
4619
4568
  }
4620
4569
  }
4621
- }, me.prototype.addEventListener = function(h, b) {
4622
- h = String(h);
4623
- var g = this._listeners, p = g[h];
4624
- p == null && (p = [], g[h] = p);
4625
- for (var y = !1, v = 0; v < p.length; v += 1)
4626
- p[v] === b && (y = !0);
4627
- y || p.push(b);
4628
- }, me.prototype.removeEventListener = function(h, b) {
4629
- h = String(h);
4630
- var g = this._listeners, p = g[h];
4631
- if (p != null) {
4632
- for (var y = [], v = 0; v < p.length; v += 1)
4633
- p[v] !== b && y.push(p[v]);
4634
- y.length === 0 ? delete g[h] : g[h] = y;
4570
+ }, me.prototype.addEventListener = function(u, b) {
4571
+ u = String(u);
4572
+ var g = this._listeners, m = g[u];
4573
+ m == null && (m = [], g[u] = m);
4574
+ for (var v = !1, y = 0; y < m.length; y += 1)
4575
+ m[y] === b && (v = !0);
4576
+ v || m.push(b);
4577
+ }, me.prototype.removeEventListener = function(u, b) {
4578
+ u = String(u);
4579
+ var g = this._listeners, m = g[u];
4580
+ if (m != null) {
4581
+ for (var v = [], y = 0; y < m.length; y += 1)
4582
+ m[y] !== b && v.push(m[y]);
4583
+ v.length === 0 ? delete g[u] : g[u] = v;
4635
4584
  }
4636
4585
  };
4637
- function te(h) {
4638
- this.type = h, this.target = void 0;
4586
+ function te(u) {
4587
+ this.type = u, this.target = void 0;
4639
4588
  }
4640
- function ft(h, b) {
4641
- te.call(this, h), this.data = b.data, this.lastEventId = b.lastEventId;
4589
+ function lt(u, b) {
4590
+ te.call(this, u), this.data = b.data, this.lastEventId = b.lastEventId;
4642
4591
  }
4643
- ft.prototype = Object.create(te.prototype);
4644
- function Ce(h, b) {
4645
- te.call(this, h), this.status = b.status, this.statusText = b.statusText, this.headers = b.headers;
4592
+ lt.prototype = Object.create(te.prototype);
4593
+ function Pe(u, b) {
4594
+ te.call(this, u), this.status = b.status, this.statusText = b.statusText, this.headers = b.headers;
4646
4595
  }
4647
- Ce.prototype = Object.create(te.prototype);
4648
- function Ye(h, b) {
4649
- te.call(this, h), this.error = b.error;
4596
+ Pe.prototype = Object.create(te.prototype);
4597
+ function Je(u, b) {
4598
+ te.call(this, u), this.error = b.error;
4650
4599
  }
4651
- Ye.prototype = Object.create(te.prototype);
4652
- var Oe = -1, W = 0, he = 1, ve = 2, oe = -1, se = 0, ye = 1, Ke = 2, be = 3, et = /^text\/event\-stream(;.*)?$/i, ct = 1e3, Ot = 18e6, tt = function(h, b) {
4653
- var g = h == null ? b : parseInt(h, 10);
4654
- return g !== g && (g = b), De(g);
4655
- }, De = function(h) {
4656
- return Math.min(Math.max(h, ct), Ot);
4657
- }, Te = function(h, b, g) {
4600
+ Je.prototype = Object.create(te.prototype);
4601
+ 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) {
4602
+ var g = u == null ? b : parseInt(u, 10);
4603
+ return g !== g && (g = b), Me(g);
4604
+ }, Me = function(u) {
4605
+ return Math.min(Math.max(u, ht), Pt);
4606
+ }, we = function(u, b, g) {
4658
4607
  try {
4659
- typeof b == "function" && b.call(h, g);
4660
- } catch (p) {
4661
- Pe(p);
4608
+ typeof b == "function" && b.call(u, g);
4609
+ } catch (m) {
4610
+ Be(m);
4662
4611
  }
4663
4612
  };
4664
- function J(h, b) {
4665
- 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, dt(this, h, b);
4613
+ function J(u, b) {
4614
+ 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);
4666
4615
  }
4667
- function It() {
4616
+ function Ct() {
4668
4617
  return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
4669
4618
  }
4670
- var Lt = d != null && m != null && "body" in m.prototype;
4671
- function dt(h, b, g) {
4619
+ var Ot = d != null && p != null && "body" in p.prototype;
4620
+ function ft(u, b, g) {
4672
4621
  b = String(b);
4673
- var p = !!g.withCredentials, y = g.lastEventIdQueryParameterName || "lastEventId", v = De(1e3), x = tt(g.heartbeatTimeout, 45e3), R = "", T = v, C = !1, L = 0, E = g.headers || {}, f = g.Transport, S = Lt && f == null ? void 0 : new $(f != null ? new f() : It()), N = f != null && typeof f != "string" ? new f() : S == null ? new Be() : new ge(), I = void 0, k = 0, q = Oe, Se = "", rt = "", G = "", pt = "", Q = se, Nt = 0, Ie = 0, Pn = function(V, j, ae, ue) {
4622
+ 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) {
4674
4623
  if (q === W)
4675
- if (V === 200 && ae != null && et.test(ae)) {
4676
- q = he, C = Date.now(), T = v, h.readyState = he;
4677
- var Y = new Ce("open", {
4624
+ if (V === 200 && ae != null && Ye.test(ae)) {
4625
+ q = he, C = Date.now(), T = y, u.readyState = he;
4626
+ var Y = new Pe("open", {
4678
4627
  status: V,
4679
4628
  statusText: j,
4680
4629
  headers: ue
4681
4630
  });
4682
- h.dispatchEvent(Y), Te(h, h.onopen, Y);
4631
+ u.dispatchEvent(Y), we(u, u.onopen, Y);
4683
4632
  } else {
4684
4633
  var X = "";
4685
- 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.", Mt();
4686
- var Y = new Ce("error", {
4634
+ 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();
4635
+ var Y = new Pe("error", {
4687
4636
  status: V,
4688
4637
  statusText: j,
4689
4638
  headers: ue
4690
4639
  });
4691
- h.dispatchEvent(Y), Te(h, h.onerror, Y), console.error(X);
4640
+ u.dispatchEvent(Y), we(u, u.onerror, Y), console.error(X);
4692
4641
  }
4693
- }, Cn = function(V) {
4642
+ }, En = function(V) {
4694
4643
  if (q === he) {
4695
4644
  for (var j = -1, ae = 0; ae < V.length; ae += 1) {
4696
4645
  var ue = V.charCodeAt(ae);
4697
4646
  (ue === 10 || ue === 13) && (j = ae);
4698
4647
  }
4699
- var Y = (j !== -1 ? pt : "") + V.slice(0, j + 1);
4700
- pt = (j === -1 ? pt : "") + V.slice(j + 1), V !== "" && (C = Date.now(), L += V.length);
4648
+ var Y = (j !== -1 ? ct : "") + V.slice(0, j + 1);
4649
+ ct = (j === -1 ? ct : "") + V.slice(j + 1), V !== "" && (C = Date.now(), L += V.length);
4701
4650
  for (var X = 0; X < Y.length; X += 1) {
4702
4651
  var ue = Y.charCodeAt(X);
4703
4652
  if (Q === oe && ue === 10)
4704
4653
  Q = se;
4705
4654
  else if (Q === oe && (Q = se), ue === 13 || ue === 10) {
4706
4655
  if (Q !== se) {
4707
- Q === ye && (Ie = X + 1);
4708
- var Ee = Y.slice(Nt, Ie - 1), _e = Y.slice(Ie + (Ie < X && Y.charCodeAt(Ie) === 32 ? 1 : 0), X);
4709
- Ee === "data" ? (Se += `
4710
- `, Se += _e) : Ee === "id" ? rt = _e : Ee === "event" ? G = _e : Ee === "retry" ? (v = tt(_e, v), T = v) : Ee === "heartbeatTimeout" && (x = tt(_e, x), k !== 0 && (i(k), k = n(function() {
4711
- nt();
4656
+ Q === ye && (Oe = X + 1);
4657
+ var ve = Y.slice(It, Oe - 1), Ee = Y.slice(Oe + (Oe < X && Y.charCodeAt(Oe) === 32 ? 1 : 0), X);
4658
+ ve === "data" ? (Te += `
4659
+ `, 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() {
4660
+ tt();
4712
4661
  }, x)));
4713
4662
  }
4714
4663
  if (Q === se) {
4715
- if (Se !== "") {
4716
- R = rt, G === "" && (G = "message");
4717
- var Ue = new ft(G, {
4718
- data: Se.slice(1),
4719
- lastEventId: rt
4664
+ if (Te !== "") {
4665
+ R = et, G === "" && (G = "message");
4666
+ var De = new lt(G, {
4667
+ data: Te.slice(1),
4668
+ lastEventId: et
4720
4669
  });
4721
- if (h.dispatchEvent(Ue), G === "open" ? Te(h, h.onopen, Ue) : G === "message" ? Te(h, h.onmessage, Ue) : G === "error" && Te(h, h.onerror, Ue), q === ve)
4670
+ 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)
4722
4671
  return;
4723
4672
  }
4724
- Se = "", G = "";
4673
+ Te = "", G = "";
4725
4674
  }
4726
4675
  Q = ue === 13 ? oe : se;
4727
4676
  } else
4728
- Q === se && (Nt = X, Q = ye), Q === ye ? ue === 58 && (Ie = X + 1, Q = Ke) : Q === Ke && (Q = be);
4677
+ Q === se && (It = X, Q = ye), Q === ye ? ue === 58 && (Oe = X + 1, Q = Qe) : Q === Qe && (Q = pe);
4729
4678
  }
4730
4679
  }
4731
- }, mr = function(V) {
4680
+ }, hr = function(V) {
4732
4681
  if (q === he || q === W) {
4733
- q = Oe, k !== 0 && (i(k), k = 0), k = n(function() {
4734
- nt();
4735
- }, T), T = De(Math.min(v * 16, T * 2)), h.readyState = W;
4736
- var j = new Ye("error", { error: V });
4737
- h.dispatchEvent(j), Te(h, h.onerror, j), V != null && console.error(V);
4682
+ q = Ce, k !== 0 && (i(k), k = 0), k = n(function() {
4683
+ tt();
4684
+ }, T), T = Me(Math.min(y * 16, T * 2)), u.readyState = W;
4685
+ var j = new Je("error", { error: V });
4686
+ u.dispatchEvent(j), we(u, u.onerror, j), V != null && console.error(V);
4738
4687
  }
4739
- }, Mt = function() {
4740
- q = ve, I != null && (I.abort(), I = void 0), k !== 0 && (i(k), k = 0), h.readyState = ve;
4741
- }, nt = function() {
4742
- if (k = 0, q !== Oe) {
4688
+ }, Lt = function() {
4689
+ q = ge, I != null && (I.abort(), I = void 0), k !== 0 && (i(k), k = 0), u.readyState = ge;
4690
+ }, tt = function() {
4691
+ if (k = 0, q !== Ce) {
4743
4692
  if (!C && I != null)
4744
- mr(new Error("No activity within " + x + " milliseconds. " + (q === W ? "No response received." : L + " chars received.") + " Reconnecting.")), I != null && (I.abort(), I = void 0);
4693
+ hr(new Error("No activity within " + x + " milliseconds. " + (q === W ? "No response received." : L + " chars received.") + " Reconnecting.")), I != null && (I.abort(), I = void 0);
4745
4694
  else {
4746
4695
  var V = Math.max((C || Date.now()) + x - Date.now(), 1);
4747
4696
  C = !1, k = n(function() {
4748
- nt();
4697
+ tt();
4749
4698
  }, V);
4750
4699
  }
4751
4700
  return;
4752
4701
  }
4753
4702
  C = !1, L = 0, k = n(function() {
4754
- nt();
4755
- }, x), q = W, Se = "", G = "", rt = R, pt = "", Nt = 0, Ie = 0, Q = se;
4703
+ tt();
4704
+ }, x), q = W, Te = "", G = "", et = R, ct = "", It = 0, Oe = 0, Q = se;
4756
4705
  var j = b;
4757
4706
  if (b.slice(0, 5) !== "data:" && b.slice(0, 5) !== "blob:" && R !== "") {
4758
4707
  var ae = b.indexOf("?");
4759
- j = ae === -1 ? b : b.slice(0, ae + 1) + b.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(_e, Ue) {
4760
- return Ue === y ? "" : _e;
4761
- }), j += (b.indexOf("?") === -1 ? "?" : "&") + y + "=" + encodeURIComponent(R);
4708
+ j = ae === -1 ? b : b.slice(0, ae + 1) + b.slice(ae + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, De) {
4709
+ return De === v ? "" : Ee;
4710
+ }), j += (b.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(R);
4762
4711
  }
4763
- var ue = h.withCredentials, Y = {};
4712
+ var ue = u.withCredentials, Y = {};
4764
4713
  Y.Accept = "text/event-stream";
4765
- var X = h.headers;
4714
+ var X = u.headers;
4766
4715
  if (X != null)
4767
- for (var Ee in X)
4768
- Object.prototype.hasOwnProperty.call(X, Ee) && (Y[Ee] = X[Ee]);
4716
+ for (var ve in X)
4717
+ Object.prototype.hasOwnProperty.call(X, ve) && (Y[ve] = X[ve]);
4769
4718
  try {
4770
- I = N.open(S, Pn, Cn, mr, j, ue, Y);
4771
- } catch (_e) {
4772
- throw Mt(), _e;
4719
+ I = N.open(S, vn, En, hr, j, ue, Y);
4720
+ } catch (Ee) {
4721
+ throw Lt(), Ee;
4773
4722
  }
4774
4723
  };
4775
- h.url = b, h.readyState = W, h.withCredentials = p, h.headers = E, h._close = Mt, nt();
4724
+ u.url = b, u.readyState = W, u.withCredentials = m, u.headers = E, u._close = Lt, tt();
4776
4725
  }
4777
- J.prototype = Object.create(me.prototype), J.prototype.CONNECTING = W, J.prototype.OPEN = he, J.prototype.CLOSED = ve, J.prototype.close = function() {
4726
+ J.prototype = Object.create(me.prototype), J.prototype.CONNECTING = W, J.prototype.OPEN = he, J.prototype.CLOSED = ge, J.prototype.close = function() {
4778
4727
  this._close();
4779
- }, J.CONNECTING = W, J.OPEN = he, J.CLOSED = ve, J.prototype.withCredentials = void 0;
4780
- var Fe = l;
4781
- o != null && (l == null || !("withCredentials" in l.prototype)) && (Fe = J), function(h) {
4728
+ }, J.CONNECTING = W, J.OPEN = he, J.CLOSED = ge, J.prototype.withCredentials = void 0;
4729
+ var Re = f;
4730
+ o != null && (f == null || !("withCredentials" in f.prototype)) && (Re = J), function(u) {
4782
4731
  {
4783
- var b = h(t);
4732
+ var b = u(t);
4784
4733
  b !== void 0 && (e.exports = b);
4785
4734
  }
4786
- }(function(h) {
4787
- h.EventSourcePolyfill = J, h.NativeEventSource = l, h.EventSource = Fe;
4735
+ }(function(u) {
4736
+ u.EventSourcePolyfill = J, u.NativeEventSource = f, u.EventSource = Re;
4788
4737
  });
4789
- })(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : xi : globalThis);
4790
- })(hr, hr.exports);
4791
- var fs = hr.exports;
4792
- if (typeof window != "undefined") {
4738
+ })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : ai : globalThis);
4739
+ })(sr, sr.exports);
4740
+ var Qo = sr.exports;
4741
+ if (typeof window < "u") {
4793
4742
  let e = function(t) {
4794
4743
  return function(...r) {
4795
4744
  try {
@@ -4801,11 +4750,11 @@ if (typeof window != "undefined") {
4801
4750
  }
4802
4751
  };
4803
4752
  };
4804
- customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-D9Tidq8w.js").then(({ default: t }) => {
4753
+ customElements.define = e(customElements.define), import("./CasinoTournamentsFilterController-crq752J3.js").then(({ default: t }) => {
4805
4754
  !customElements.get("casino-tournaments-filter-controller") && customElements.define("casino-tournaments-filter-controller", t.element);
4806
4755
  });
4807
4756
  }
4808
- if (typeof window != "undefined") {
4757
+ if (typeof window < "u") {
4809
4758
  let e = function(t) {
4810
4759
  return function(...r) {
4811
4760
  try {
@@ -4817,64 +4766,64 @@ if (typeof window != "undefined") {
4817
4766
  }
4818
4767
  };
4819
4768
  };
4820
- customElements.define = e(customElements.define), import("./CasinoTournamentsListController-Bj5LNl9h.js").then(({ default: t }) => {
4769
+ customElements.define = e(customElements.define), import("./CasinoTournamentsListController-BHaCpLNs.js").then(({ default: t }) => {
4821
4770
  !customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", t.element);
4822
4771
  });
4823
4772
  }
4824
- const kr = (e) => e.length > 0 && e != "false";
4825
- function cs(e) {
4826
- Fn(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}");
4773
+ const Mr = (e) => e.length > 0 && e != "false";
4774
+ function Yo(e) {
4775
+ 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}");
4827
4776
  }
4828
- function ds(e) {
4777
+ function Ko(e) {
4829
4778
  let t, r, n, i, o, s, a = (
4830
4779
  /*filtersLoaded*/
4831
- e[19] && Vr(e)
4780
+ e[19] && Rr(e)
4832
4781
  );
4833
- function l(m, _) {
4782
+ function f(p, _) {
4834
4783
  return (
4835
4784
  /*tournamentsNumber*/
4836
- m[20] == 0 ? bs : ms
4785
+ p[20] == 0 ? rs : ts
4837
4786
  );
4838
4787
  }
4839
- let u = l(e), c = u(e), d = !/*allTournamentsShown*/
4840
- e[21] && Xr(e);
4788
+ let h = f(e), c = h(e), d = !/*allTournamentsShown*/
4789
+ e[21] && Dr(e);
4841
4790
  return {
4842
4791
  c() {
4843
- t = z("div"), r = z("div"), n = z("div"), a && a.c(), i = zt(), o = z("div"), c.c(), s = zt(), 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");
4792
+ 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");
4844
4793
  },
4845
- m(m, _) {
4846
- de(m, 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);
4794
+ m(p, _) {
4795
+ 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);
4847
4796
  },
4848
- p(m, _) {
4797
+ p(p, _) {
4849
4798
  /*filtersLoaded*/
4850
- m[19] ? a ? a.p(m, _) : (a = Vr(m), a.c(), a.m(n, null)) : a && (a.d(1), a = null), u === (u = l(m)) && c ? c.p(m, _) : (c.d(1), c = u(m), c && (c.c(), c.m(o, null))), /*allTournamentsShown*/
4851
- m[21] ? d && (d.d(1), d = null) : d ? d.p(m, _) : (d = Xr(m), d.c(), d.m(r, null));
4799
+ 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*/
4800
+ p[21] ? d && (d.d(1), d = null) : d ? d.p(p, _) : (d = Dr(p), d.c(), d.m(r, null));
4852
4801
  },
4853
- d(m) {
4854
- m && ne(t), a && a.d(), c.d(), d && d.d();
4802
+ d(p) {
4803
+ p && ne(t), a && a.d(), c.d(), d && d.d();
4855
4804
  }
4856
4805
  };
4857
4806
  }
4858
- function ps(e) {
4807
+ function es(e) {
4859
4808
  let t, r = (
4860
4809
  /*$_*/
4861
4810
  e[22]("500") + ""
4862
4811
  ), n, i, o, s;
4863
4812
  return {
4864
4813
  c() {
4865
- t = z("p"), n = Ne(r), i = zt(), o = z("p"), s = Ne(
4814
+ t = z("p"), n = Ie(r), i = $t(), o = z("p"), s = Ie(
4866
4815
  /*error*/
4867
4816
  e[17]
4868
4817
  );
4869
4818
  },
4870
- m(a, l) {
4871
- de(a, t, l), re(t, n), de(a, i, l), de(a, o, l), re(o, s);
4819
+ m(a, f) {
4820
+ ce(a, t, f), re(t, n), ce(a, i, f), ce(a, o, f), re(o, s);
4872
4821
  },
4873
- p(a, l) {
4874
- l[0] & /*$_*/
4822
+ p(a, f) {
4823
+ f[0] & /*$_*/
4875
4824
  4194304 && r !== (r = /*$_*/
4876
- a[22]("500") + "") && st(n, r), l[0] & /*error*/
4877
- 131072 && st(
4825
+ a[22]("500") + "") && it(n, r), f[0] & /*error*/
4826
+ 131072 && it(
4878
4827
  s,
4879
4828
  /*error*/
4880
4829
  a[17]
@@ -4885,7 +4834,7 @@ function ps(e) {
4885
4834
  }
4886
4835
  };
4887
4836
  }
4888
- function Vr(e) {
4837
+ function Rr(e) {
4889
4838
  let t;
4890
4839
  return {
4891
4840
  c() {
@@ -4904,7 +4853,7 @@ function Vr(e) {
4904
4853
  "translationurl",
4905
4854
  /*translationurl*/
4906
4855
  e[4]
4907
- ), w(t, "filters", Es), w(
4856
+ ), w(t, "filters", ss), w(
4908
4857
  t,
4909
4858
  "activefilters",
4910
4859
  /*filters*/
@@ -4912,7 +4861,7 @@ function Vr(e) {
4912
4861
  ), w(t, "exportparts", "FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem");
4913
4862
  },
4914
4863
  m(r, n) {
4915
- de(r, t, n);
4864
+ ce(r, t, n);
4916
4865
  },
4917
4866
  p(r, n) {
4918
4867
  n[0] & /*clientstyling*/
@@ -4946,7 +4895,7 @@ function Vr(e) {
4946
4895
  }
4947
4896
  };
4948
4897
  }
4949
- function ms(e) {
4898
+ function ts(e) {
4950
4899
  let t;
4951
4900
  return {
4952
4901
  c() {
@@ -5026,7 +4975,7 @@ function ms(e) {
5026
4975
  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`);
5027
4976
  },
5028
4977
  m(r, n) {
5029
- de(r, t, n);
4978
+ ce(r, t, n);
5030
4979
  },
5031
4980
  p(r, n) {
5032
4981
  n[0] & /*clientstyling*/
@@ -5120,21 +5069,21 @@ function ms(e) {
5120
5069
  }
5121
5070
  };
5122
5071
  }
5123
- function bs(e) {
5072
+ function rs(e) {
5124
5073
  let t;
5125
5074
  function r(o, s) {
5126
5075
  return (
5127
5076
  /*isLoading*/
5128
- o[18] ? vs : gs
5077
+ o[18] ? is : ns
5129
5078
  );
5130
5079
  }
5131
5080
  let n = r(e), i = n(e);
5132
5081
  return {
5133
5082
  c() {
5134
- i.c(), t = jn();
5083
+ i.c(), t = An();
5135
5084
  },
5136
5085
  m(o, s) {
5137
- i.m(o, s), de(o, t, s);
5086
+ i.m(o, s), ce(o, t, s);
5138
5087
  },
5139
5088
  p(o, s) {
5140
5089
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t.parentNode, t)));
@@ -5144,83 +5093,83 @@ function bs(e) {
5144
5093
  }
5145
5094
  };
5146
5095
  }
5147
- function gs(e) {
5096
+ function ns(e) {
5148
5097
  let t, r = (
5149
5098
  /*$_*/
5150
5099
  e[22]("noTournaments") + ""
5151
5100
  ), n;
5152
5101
  return {
5153
5102
  c() {
5154
- t = z("p"), n = Ne(r), U(t, "class", "NoTournaments"), U(t, "part", "NoTournaments");
5103
+ t = z("p"), n = Ie(r), U(t, "class", "NoTournaments"), U(t, "part", "NoTournaments");
5155
5104
  },
5156
5105
  m(i, o) {
5157
- de(i, t, o), re(t, n);
5106
+ ce(i, t, o), re(t, n);
5158
5107
  },
5159
5108
  p(i, o) {
5160
5109
  o[0] & /*$_*/
5161
5110
  4194304 && r !== (r = /*$_*/
5162
- i[22]("noTournaments") + "") && st(n, r);
5111
+ i[22]("noTournaments") + "") && it(n, r);
5163
5112
  },
5164
5113
  d(i) {
5165
5114
  i && ne(t);
5166
5115
  }
5167
5116
  };
5168
5117
  }
5169
- function vs(e) {
5118
+ function is(e) {
5170
5119
  let t, r = (
5171
5120
  /*$_*/
5172
5121
  e[22]("loading") + ""
5173
5122
  ), n;
5174
5123
  return {
5175
5124
  c() {
5176
- t = z("p"), n = Ne(r), U(t, "class", "LoadingMessage"), U(t, "part", "LoadingMessage");
5125
+ t = z("p"), n = Ie(r), U(t, "class", "LoadingMessage"), U(t, "part", "LoadingMessage");
5177
5126
  },
5178
5127
  m(i, o) {
5179
- de(i, t, o), re(t, n);
5128
+ ce(i, t, o), re(t, n);
5180
5129
  },
5181
5130
  p(i, o) {
5182
5131
  o[0] & /*$_*/
5183
5132
  4194304 && r !== (r = /*$_*/
5184
- i[22]("loading") + "") && st(n, r);
5133
+ i[22]("loading") + "") && it(n, r);
5185
5134
  },
5186
5135
  d(i) {
5187
5136
  i && ne(t);
5188
5137
  }
5189
5138
  };
5190
5139
  }
5191
- function Xr(e) {
5140
+ function Dr(e) {
5192
5141
  let t, r, n, i = (
5193
5142
  /*$_*/
5194
5143
  e[22]("showMore") + ""
5195
5144
  ), o, s, a;
5196
5145
  return {
5197
5146
  c() {
5198
- t = z("div"), r = z("div"), n = z("button"), o = Ne(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");
5147
+ 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");
5199
5148
  },
5200
- m(l, u) {
5201
- de(l, t, u), re(t, r), re(r, n), re(n, o), s || (a = Wt(
5149
+ m(f, h) {
5150
+ ce(f, t, h), re(t, r), re(r, n), re(n, o), s || (a = kt(
5202
5151
  n,
5203
5152
  "click",
5204
5153
  /*click_handler*/
5205
5154
  e[32]
5206
5155
  ), s = !0);
5207
5156
  },
5208
- p(l, u) {
5209
- u[0] & /*$_*/
5157
+ p(f, h) {
5158
+ h[0] & /*$_*/
5210
5159
  4194304 && i !== (i = /*$_*/
5211
- l[22]("showMore") + "") && st(o, i);
5160
+ f[22]("showMore") + "") && it(o, i);
5212
5161
  },
5213
- d(l) {
5214
- l && ne(t), s = !1, a();
5162
+ d(f) {
5163
+ f && ne(t), s = !1, a();
5215
5164
  }
5216
5165
  };
5217
5166
  }
5218
- function ys(e) {
5167
+ function os(e) {
5219
5168
  let t;
5220
5169
  function r(o, s) {
5221
5170
  return (
5222
5171
  /*hasErrors*/
5223
- o[16] ? ps : ds
5172
+ o[16] ? es : Ko
5224
5173
  );
5225
5174
  }
5226
5175
  let n = r(e), i = n(e);
@@ -5229,45 +5178,45 @@ function ys(e) {
5229
5178
  t = z("div"), i.c();
5230
5179
  },
5231
5180
  m(o, s) {
5232
- de(o, t, s), i.m(t, null), e[33](t);
5181
+ ce(o, t, s), i.m(t, null), e[33](t);
5233
5182
  },
5234
5183
  p(o, s) {
5235
5184
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
5236
5185
  },
5237
- i: ce,
5238
- o: ce,
5186
+ i: fe,
5187
+ o: fe,
5239
5188
  d(o) {
5240
5189
  o && ne(t), i.d(), e[33](null);
5241
5190
  }
5242
5191
  };
5243
5192
  }
5244
- let Es = "All,Scheduled,Ongoing,Finished";
5245
- function _s(e, t, r) {
5193
+ let ss = "All,Scheduled,Ongoing,Finished";
5194
+ function as(e, t, r) {
5246
5195
  let n;
5247
- Dn(e, us, (f) => r(22, n = f));
5248
- let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { translationurl: l = "" } = t, { numberoftournaments: u = "6" } = t, { showmorestep: c = "2" } = t, { filters: d = "All" } = t, { loginevent: m = "" } = t, { registerevent: _ = "" } = t, { loginurl: O = "" } = t, { registerurl: B = "" } = t, { currency: ee = "EUR" } = t, { keepbrowsercontext: pe = "false" } = t, { sorttype: ie = "" } = t, { sortorder: M = "" } = t, { starttimeafter: $ = "" } = t, { showanonymoustournaments: Z = "true" } = t, { clientstyling: le = "" } = t, { clientstylingurl: ge = "" } = t, { delaybeforeload: Re = 1e3 } = t, Be = !1, me = "", Pe = !1, te = "", ft = window.navigator.userAgent, Ce = !0, Ye = !1, Oe = !1, W, he = 0, ve = !1, oe = 6, se = !0, ye = [], Ke, be, et = !1, ct;
5249
- hs({ withLocale: "en", translations: {} });
5250
- const Ot = () => {
5251
- fetch(l).then((S) => S.json()).then((S) => {
5252
- ct = S, Object.keys(S).forEach((N) => {
5253
- Xt(N, S[N]);
5196
+ xn(e, qo, (l) => r(22, n = l));
5197
+ 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;
5198
+ Jo({ withLocale: "en", translations: {} });
5199
+ const Pt = () => {
5200
+ fetch(f).then((S) => S.json()).then((S) => {
5201
+ ht = S, Object.keys(S).forEach((N) => {
5202
+ jt(N, S[N]);
5254
5203
  });
5255
5204
  }).catch((S) => {
5256
5205
  console.log(S);
5257
5206
  });
5258
- }, tt = (f) => {
5259
- f && Object.keys(f).forEach((S) => {
5260
- Xt(S, f[S]);
5207
+ }, Ke = (l) => {
5208
+ l && Object.keys(l).forEach((S) => {
5209
+ jt(S, l[S]);
5261
5210
  });
5262
5211
  };
5263
- Object.keys($r).forEach((f) => {
5264
- Xt(f, $r[f]);
5212
+ Object.keys(Nr).forEach((l) => {
5213
+ jt(l, Nr[l]);
5265
5214
  });
5266
- const De = (f) => {
5267
- f.data && f.data.type === "UserSessionID" && (Pe = !0, r(30, te = f.data.session), f.data.userid, J(s, 0, oe)), f.data && f.data.type === "TournamentsFiltersSelected" && (ye = f.data.filters, J(s, 0, oe)), f.data && f.data.type === "TournamentThumbnailMounted" && tt(ct);
5268
- }, Te = (f) => f == "Scheduled" ? "Unstarted" : f == "Ongoing" ? "Running" : "Closing|Closed", J = (f, S, N) => Le(this, null, function* () {
5269
- r(18, Ce = !0), r(20, he = 0);
5270
- const I = yield dt(f, S, N);
5215
+ const Me = (l) => {
5216
+ 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);
5217
+ }, we = (l) => l == "Scheduled" ? "Unstarted" : l == "Ongoing" ? "Running" : "Closing|Closed", J = async (l, S, N) => {
5218
+ r(18, Pe = !0), r(20, he = 0);
5219
+ const I = await ft(l, S, N);
5271
5220
  setTimeout(
5272
5221
  () => {
5273
5222
  window.postMessage(
@@ -5279,9 +5228,9 @@ function _s(e, t, r) {
5279
5228
  );
5280
5229
  },
5281
5230
  50
5282
- ), r(18, Ce = !1);
5283
- }), It = (f, S, N) => Le(this, null, function* () {
5284
- const I = yield dt(f, S, N);
5231
+ ), r(18, Pe = !1);
5232
+ }, Ct = async (l, S, N) => {
5233
+ const I = await ft(l, S, N);
5285
5234
  window.postMessage(
5286
5235
  {
5287
5236
  type: "TournamentListShowMore",
@@ -5289,24 +5238,24 @@ function _s(e, t, r) {
5289
5238
  },
5290
5239
  window.location.href
5291
5240
  );
5292
- }), Lt = () => {
5293
- const f = /* @__PURE__ */ new Date();
5294
- return $ ? f.setDate(f.getDate() - Number($)) : f.setMonth(f.getMonth() - 1), f.toISOString().substring(0, 10);
5295
- }, dt = (f, S, N) => Le(this, null, function* () {
5296
- let I = new URL(`${f}/v1/tournaments`), k = new Headers();
5241
+ }, Ot = () => {
5242
+ const l = /* @__PURE__ */ new Date();
5243
+ return $ ? l.setDate(l.getDate() - Number($)) : l.setMonth(l.getMonth() - 1), l.toISOString().substring(0, 10);
5244
+ }, ft = async (l, S, N) => {
5245
+ let I = new URL(`${l}/v1/tournaments`), k = new Headers();
5297
5246
  I.searchParams.append("pagination", `offset=${S},limit=${N}`), I.searchParams.append("sortField", "StartTime"), I.searchParams.append("sortOrder", M || "desc"), I.searchParams.append("language", a);
5298
- const q = { StartTimeAfter: Lt() };
5299
- !kr(i) && Z === "false" && (q.tags = "no-role-set"), ye.length > 0 && ye[0] != "All" && (q.state = ye.map((G) => Te(G)).join("|"));
5300
- const Se = Object.keys(q).map((G) => `${G}=${q[G]}`).join(",");
5301
- return I.searchParams.append("filter", Se), I.searchParams.append("platform", ls(ft)), ie && I.searchParams.append("sortType", ie), Pe && k.append("X-SessionID", te), fetch(I, {
5247
+ const q = { StartTimeAfter: Ot() };
5248
+ !Mr(i) && Z === "false" && (q.tags = "no-role-set"), ye.length > 0 && ye[0] != "All" && (q.state = ye.map((G) => we(G)).join("|"));
5249
+ const Te = Object.keys(q).map((G) => `${G}=${q[G]}`).join(",");
5250
+ 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, {
5302
5251
  method: "GET",
5303
5252
  headers: k,
5304
5253
  cache: "no-cache"
5305
- }).then((G) => G.json()).then((G) => (Ke = I.searchParams.toString(), r(20, he = G.total), oe >= he ? r(21, se = !0) : r(21, se = !1), Oe || h(), G));
5306
- }), Fe = (f) => {
5307
- if (f.type != "message")
5254
+ }).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));
5255
+ }, Re = (l) => {
5256
+ if (l.type != "message")
5308
5257
  return;
5309
- let S = f.data;
5258
+ let S = l.data;
5310
5259
  if (S)
5311
5260
  try {
5312
5261
  let N = JSON.parse(S);
@@ -5329,25 +5278,25 @@ function _s(e, t, r) {
5329
5278
  } catch (N) {
5330
5279
  console.error(N);
5331
5280
  }
5332
- }, h = () => {
5333
- Oe = !0, setTimeout(
5281
+ }, u = () => {
5282
+ Ce = !0, setTimeout(
5334
5283
  () => {
5335
- Oe = !1;
5284
+ Ce = !1;
5336
5285
  },
5337
5286
  1e3
5338
- ), be && (be.removeEventListener("message", Fe), be.close());
5339
- let f = `${s}/v1/tournaments/updates?${Ke}`;
5340
- be = new fs.EventSourcePolyfill(
5341
- f,
5287
+ ), pe && (pe.removeEventListener("message", Re), pe.close());
5288
+ let l = `${s}/v1/tournaments/updates?${Qe}`;
5289
+ pe = new Qo.EventSourcePolyfill(
5290
+ l,
5342
5291
  {
5343
5292
  headers: {
5344
5293
  accept: "text/event-stream",
5345
5294
  "X-SessionId": i
5346
5295
  }
5347
5296
  }
5348
- ), typeof be != "undefined" && be.addEventListener("message", Fe);
5349
- }, b = () => Le(this, null, function* () {
5350
- let f = oe;
5297
+ ), typeof pe < "u" && pe.addEventListener("message", Re);
5298
+ }, b = async () => {
5299
+ let l = oe;
5351
5300
  const S = parseInt(c, 10);
5352
5301
  oe += S, window.postMessage(
5353
5302
  {
@@ -5356,24 +5305,24 @@ function _s(e, t, r) {
5356
5305
  limit: oe
5357
5306
  },
5358
5307
  window.location.href
5359
- ), yield It(s, f, S), oe >= he && r(21, se = !0);
5360
- }), g = () => (s || (r(17, me = "Endpoint is missing! Please provide a valid endpointURL."), r(16, Be = !0), console.error(me)), (!a || a.length != 2) && (r(17, me = "Language is missing! Please provide a valid language (alpha2code)"), r(16, Be = !0), console.error(me)), Be), p = () => {
5361
- if (!ve) return !1;
5362
- g() || (oe = parseInt(u, 10), jr(a), J(s, 0, oe));
5363
- }, y = () => {
5364
- jr(a);
5308
+ ), await Ct(s, l, S), oe >= he && r(21, se = !0);
5309
+ }, 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 = () => {
5310
+ if (!ge) return !1;
5311
+ g() || (oe = parseInt(h, 10), Lr(a), J(s, 0, oe));
5365
5312
  }, v = () => {
5366
- ye = d.split(","), r(19, Ye = !0);
5313
+ Lr(a);
5314
+ }, y = () => {
5315
+ ye = d.split(","), r(19, Je = !0);
5367
5316
  }, x = () => {
5368
- kr(i) ? (Pe = !0, r(30, te = i)) : (Pe = !1, r(30, te = ""));
5369
- }, R = () => Le(this, null, function* () {
5370
- et || (et = !0, yield p(), et = !1);
5371
- }), T = () => {
5372
- let f = document.createElement("style");
5373
- f.innerHTML = le, W.appendChild(f);
5317
+ Mr(i) ? (Be = !0, r(30, te = i)) : (Be = !1, r(30, te = ""));
5318
+ }, R = async () => {
5319
+ Ye || (Ye = !0, await m(), Ye = !1);
5320
+ }, T = () => {
5321
+ let l = document.createElement("style");
5322
+ l.innerHTML = le, W.appendChild(l);
5374
5323
  }, C = () => {
5375
- let f = new URL(ge), S = document.createElement("style");
5376
- fetch(f.href).then((N) => N.text()).then((N) => {
5324
+ let l = new URL(be), S = document.createElement("style");
5325
+ fetch(l.href).then((N) => N.text()).then((N) => {
5377
5326
  S.innerHTML = N, setTimeout(
5378
5327
  () => {
5379
5328
  W.appendChild(S);
@@ -5386,55 +5335,55 @@ function _s(e, t, r) {
5386
5335
  );
5387
5336
  });
5388
5337
  };
5389
- zn(() => (setTimeout(
5338
+ On(() => (setTimeout(
5390
5339
  () => {
5391
- r(31, ve = !0);
5340
+ r(31, ge = !0);
5392
5341
  },
5393
- Re
5394
- ), window.addEventListener("message", De, !1), () => {
5395
- window.removeEventListener("message", De), be && (be.removeEventListener("message", Fe), be.close());
5342
+ Ne
5343
+ ), window.addEventListener("message", Me, !1), () => {
5344
+ window.removeEventListener("message", Me), pe && (pe.removeEventListener("message", Re), pe.close());
5396
5345
  }));
5397
5346
  const L = () => b();
5398
- function E(f) {
5399
- qt[f ? "unshift" : "push"](() => {
5400
- W = f, r(15, W);
5347
+ function E(l) {
5348
+ Vt[l ? "unshift" : "push"](() => {
5349
+ W = l, r(15, W);
5401
5350
  });
5402
5351
  }
5403
- return e.$$set = (f) => {
5404
- "session" in f && r(0, i = f.session), "userid" in f && r(1, o = f.userid), "endpoint" in f && r(2, s = f.endpoint), "lang" in f && r(3, a = f.lang), "translationurl" in f && r(4, l = f.translationurl), "numberoftournaments" in f && r(5, u = f.numberoftournaments), "showmorestep" in f && r(24, c = f.showmorestep), "filters" in f && r(6, d = f.filters), "loginevent" in f && r(7, m = f.loginevent), "registerevent" in f && r(8, _ = f.registerevent), "loginurl" in f && r(9, O = f.loginurl), "registerurl" in f && r(10, B = f.registerurl), "currency" in f && r(11, ee = f.currency), "keepbrowsercontext" in f && r(12, pe = f.keepbrowsercontext), "sorttype" in f && r(25, ie = f.sorttype), "sortorder" in f && r(26, M = f.sortorder), "starttimeafter" in f && r(27, $ = f.starttimeafter), "showanonymoustournaments" in f && r(28, Z = f.showanonymoustournaments), "clientstyling" in f && r(13, le = f.clientstyling), "clientstylingurl" in f && r(14, ge = f.clientstylingurl), "delaybeforeload" in f && r(29, Re = f.delaybeforeload);
5352
+ return e.$$set = (l) => {
5353
+ "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);
5405
5354
  }, e.$$.update = () => {
5406
5355
  e.$$.dirty[0] & /*customStylingContainer, clientstyling*/
5407
5356
  40960 && W && le && T(), e.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
5408
- 49152 && W && ge && C(), e.$$.dirty[0] & /*userid*/
5357
+ 49152 && W && be && C(), e.$$.dirty[0] & /*userid*/
5409
5358
  2, e.$$.dirty[0] & /*filters*/
5410
- 64 && d && v(), e.$$.dirty[0] & /*lang*/
5411
- 8 && a && y(), e.$$.dirty[0] & /*translationurl*/
5412
- 16 && l && Ot(), e.$$.dirty[1] & /*isMounted*/
5413
- 1 && ve && p(), e.$$.dirty[0] & /*session*/
5359
+ 64 && d && y(), e.$$.dirty[0] & /*lang*/
5360
+ 8 && a && v(), e.$$.dirty[0] & /*translationurl*/
5361
+ 16 && f && Pt(), e.$$.dirty[1] & /*isMounted*/
5362
+ 1 && ge && m(), e.$$.dirty[0] & /*session*/
5414
5363
  1 && (i === "" || i) && x(), e.$$.dirty[0] & /*sessionID*/
5415
5364
  1073741824 && (te === "" || te) && R(), e.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, showanonymoustournaments*/
5416
- 285212716 && s && u && c && a && Z && R();
5365
+ 285212716 && s && h && c && a && Z && R();
5417
5366
  }, [
5418
5367
  i,
5419
5368
  o,
5420
5369
  s,
5421
5370
  a,
5422
- l,
5423
- u,
5371
+ f,
5372
+ h,
5424
5373
  d,
5425
- m,
5374
+ p,
5426
5375
  _,
5427
5376
  O,
5428
5377
  B,
5429
5378
  ee,
5430
- pe,
5379
+ de,
5431
5380
  le,
5432
- ge,
5381
+ be,
5433
5382
  W,
5434
- Be,
5383
+ He,
5435
5384
  me,
5436
- Ce,
5437
- Ye,
5385
+ Pe,
5386
+ Je,
5438
5387
  he,
5439
5388
  se,
5440
5389
  n,
@@ -5444,21 +5393,21 @@ function _s(e, t, r) {
5444
5393
  M,
5445
5394
  $,
5446
5395
  Z,
5447
- Re,
5396
+ Ne,
5448
5397
  te,
5449
- ve,
5398
+ ge,
5450
5399
  L,
5451
5400
  E
5452
5401
  ];
5453
5402
  }
5454
- class Bn extends ii {
5403
+ class us extends kn {
5455
5404
  constructor(t) {
5456
- super(), ri(
5405
+ super(), jn(
5457
5406
  this,
5458
5407
  t,
5459
- _s,
5460
- ys,
5461
- Wr,
5408
+ as,
5409
+ os,
5410
+ Ur,
5462
5411
  {
5463
5412
  session: 0,
5464
5413
  userid: 1,
@@ -5482,7 +5431,7 @@ class Bn extends ii {
5482
5431
  clientstylingurl: 14,
5483
5432
  delaybeforeload: 29
5484
5433
  },
5485
- cs,
5434
+ Yo,
5486
5435
  [-1, -1, -1]
5487
5436
  );
5488
5437
  }
@@ -5613,49 +5562,45 @@ class Bn extends ii {
5613
5562
  this.$$set({ delaybeforeload: t }), F();
5614
5563
  }
5615
5564
  }
5616
- ni(Bn, { session: {}, userid: {}, endpoint: {}, lang: {}, translationurl: {}, numberoftournaments: {}, showmorestep: {}, filters: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, sorttype: {}, sortorder: {}, starttimeafter: {}, showanonymoustournaments: {}, clientstyling: {}, clientstylingurl: {}, delaybeforeload: {} }, [], [], !0);
5617
- const Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5618
- __proto__: null,
5619
- default: Bn
5620
- }, Symbol.toStringTag, { value: "Module" }));
5565
+ $n(us, { session: {}, userid: {}, endpoint: {}, lang: {}, translationurl: {}, numberoftournaments: {}, showmorestep: {}, filters: {}, loginevent: {}, registerevent: {}, loginurl: {}, registerurl: {}, currency: {}, keepbrowsercontext: {}, sorttype: {}, sortorder: {}, starttimeafter: {}, showanonymoustournaments: {}, clientstyling: {}, clientstylingurl: {}, delaybeforeload: {} }, [], [], !0);
5621
5566
  export {
5622
- us as $,
5623
- Ts as A,
5624
- St as B,
5625
- ht as C,
5626
- Hs as D,
5627
- Je as E,
5628
- ls as F,
5629
- Ps as G,
5630
- Jt as H,
5631
- Bs as I,
5632
- ws as J,
5633
- Is as K,
5634
- ii as S,
5635
- wn as a,
5636
- Fn as b,
5637
- ni as c,
5567
+ qo as $,
5568
+ hs as A,
5569
+ wt as B,
5570
+ ut as C,
5571
+ ds as D,
5572
+ qe as E,
5573
+ Zo as F,
5574
+ ps as G,
5575
+ zt as H,
5576
+ ms as I,
5577
+ ls as J,
5578
+ us as K,
5579
+ kn as S,
5580
+ mn as a,
5581
+ wn as b,
5582
+ $n as c,
5638
5583
  U as d,
5639
5584
  z as e,
5640
5585
  F as f,
5641
- Os as g,
5642
- de as h,
5643
- ri as i,
5586
+ gs as g,
5587
+ ce as h,
5588
+ jn as i,
5644
5589
  ne as j,
5645
- Dn as k,
5646
- Cs as l,
5647
- zt as m,
5648
- ce as n,
5590
+ xn as k,
5591
+ bs as l,
5592
+ $t as m,
5593
+ fe as n,
5649
5594
  re as o,
5650
- st as p,
5651
- Ss as q,
5652
- Wt as r,
5653
- Wr as s,
5654
- Ne as t,
5655
- qt as u,
5656
- As as v,
5657
- zn as w,
5658
- jn as x,
5595
+ it as p,
5596
+ fs as q,
5597
+ kt as r,
5598
+ Ur as s,
5599
+ Ie as t,
5600
+ Vt as u,
5601
+ cs as v,
5602
+ On as w,
5603
+ An as x,
5659
5604
  w as y,
5660
- He as z
5605
+ Ae as z
5661
5606
  };