@everymatrix/casino-tournaments-filter-controller 1.87.26 → 1.87.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,46 +1,46 @@
1
- function P() {
1
+ function C() {
2
2
  }
3
- function Lt(e) {
3
+ function $t(e) {
4
4
  return e();
5
5
  }
6
- function tt() {
6
+ function nt() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function oe(e) {
10
- e.forEach(Lt);
9
+ function ae(e) {
10
+ e.forEach($t);
11
11
  }
12
- function qe(e) {
12
+ function et(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function Rt(e, t) {
15
+ function Ft(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function dr(e) {
18
+ function gr(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function $t(e, ...t) {
21
+ function Ut(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const n of t)
24
24
  n(void 0);
25
- return P;
25
+ return C;
26
26
  }
27
27
  const r = e.subscribe(...t);
28
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function br(e, t, r) {
31
- e.$$.on_destroy.push($t(t, r));
30
+ function yr(e, t, r) {
31
+ e.$$.on_destroy.push(Ut(t, r));
32
32
  }
33
33
  function B(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function gr(e, t, r) {
37
- const n = yr(e);
36
+ function vr(e, t, r) {
37
+ const n = _r(e);
38
38
  if (!n.getElementById(t)) {
39
39
  const i = L("style");
40
- i.id = t, i.textContent = r, vr(n, i);
40
+ i.id = t, i.textContent = r, Er(n, i);
41
41
  }
42
42
  }
43
- function yr(e) {
43
+ function _r(e) {
44
44
  if (!e)
45
45
  return document;
46
46
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -50,7 +50,7 @@ function yr(e) {
50
50
  t
51
51
  ) : e.ownerDocument;
52
52
  }
53
- function vr(e, t) {
53
+ function Er(e, t) {
54
54
  return B(
55
55
  /** @type {Document} */
56
56
  e.head || e,
@@ -63,36 +63,36 @@ function $(e, t, r) {
63
63
  function N(e) {
64
64
  e.parentNode && e.parentNode.removeChild(e);
65
65
  }
66
- function _r(e, t) {
66
+ function xr(e, t) {
67
67
  for (let r = 0; r < e.length; r += 1)
68
68
  e[r] && e[r].d(t);
69
69
  }
70
70
  function L(e) {
71
71
  return document.createElement(e);
72
72
  }
73
- function rt(e) {
73
+ function it(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
76
  function G(e) {
77
77
  return document.createTextNode(e);
78
78
  }
79
- function X() {
79
+ function z() {
80
80
  return G(" ");
81
81
  }
82
- function Er(e, t, r, n) {
82
+ function Sr(e, t, r, n) {
83
83
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
84
84
  }
85
- function x(e, t, r) {
85
+ function E(e, t, r) {
86
86
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
87
87
  }
88
- function xr(e) {
88
+ function wr(e) {
89
89
  return Array.from(e.childNodes);
90
90
  }
91
- function se(e, t) {
91
+ function ue(e, t) {
92
92
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
93
93
  t);
94
94
  }
95
- function Sr(e) {
95
+ function Tr(e) {
96
96
  const t = {};
97
97
  return e.childNodes.forEach(
98
98
  /** @param {Element} node */
@@ -101,98 +101,98 @@ function Sr(e) {
101
101
  }
102
102
  ), t;
103
103
  }
104
- let re;
105
- function te(e) {
106
- re = e;
104
+ let ie;
105
+ function ne(e) {
106
+ ie = e;
107
107
  }
108
- function Tr() {
109
- if (!re)
108
+ function Hr() {
109
+ if (!ie)
110
110
  throw new Error("Function called outside component initialization");
111
- return re;
111
+ return ie;
112
112
  }
113
- function wr(e) {
114
- Tr().$$.on_mount.push(e);
113
+ function Ar(e) {
114
+ Hr().$$.on_mount.push(e);
115
115
  }
116
- const z = [], Me = [];
117
- let W = [];
118
- const nt = [], Hr = /* @__PURE__ */ Promise.resolve();
119
- let Le = !1;
120
- function Ar() {
121
- Le || (Le = !0, Hr.then(U));
116
+ const W = [], Re = [];
117
+ let Q = [];
118
+ const ot = [], Br = /* @__PURE__ */ Promise.resolve();
119
+ let $e = !1;
120
+ function Or() {
121
+ $e || ($e = !0, Br.then(U));
122
122
  }
123
- function Re(e) {
124
- W.push(e);
123
+ function Fe(e) {
124
+ Q.push(e);
125
125
  }
126
- const He = /* @__PURE__ */ new Set();
127
- let k = 0;
126
+ const Be = /* @__PURE__ */ new Set();
127
+ let V = 0;
128
128
  function U() {
129
- if (k !== 0)
129
+ if (V !== 0)
130
130
  return;
131
- const e = re;
131
+ const e = ie;
132
132
  do {
133
133
  try {
134
- for (; k < z.length; ) {
135
- const t = z[k];
136
- k++, te(t), Br(t.$$);
134
+ for (; V < W.length; ) {
135
+ const t = W[V];
136
+ V++, ne(t), Pr(t.$$);
137
137
  }
138
138
  } catch (t) {
139
- throw z.length = 0, k = 0, t;
139
+ throw W.length = 0, V = 0, t;
140
140
  }
141
- for (te(null), z.length = 0, k = 0; Me.length; )
142
- Me.pop()();
143
- for (let t = 0; t < W.length; t += 1) {
144
- const r = W[t];
145
- He.has(r) || (He.add(r), r());
141
+ for (ne(null), W.length = 0, V = 0; Re.length; )
142
+ Re.pop()();
143
+ for (let t = 0; t < Q.length; t += 1) {
144
+ const r = Q[t];
145
+ Be.has(r) || (Be.add(r), r());
146
146
  }
147
- W.length = 0;
148
- } while (z.length);
149
- for (; nt.length; )
150
- nt.pop()();
151
- Le = !1, He.clear(), te(e);
147
+ Q.length = 0;
148
+ } while (W.length);
149
+ for (; ot.length; )
150
+ ot.pop()();
151
+ $e = !1, Be.clear(), ne(e);
152
152
  }
153
- function Br(e) {
153
+ function Pr(e) {
154
154
  if (e.fragment !== null) {
155
- e.update(), oe(e.before_update);
155
+ e.update(), ae(e.before_update);
156
156
  const t = e.dirty;
157
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
157
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
158
158
  }
159
159
  }
160
- function Or(e) {
160
+ function Cr(e) {
161
161
  const t = [], r = [];
162
- W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
162
+ Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
163
163
  }
164
- const Pr = /* @__PURE__ */ new Set();
165
- function Cr(e, t) {
166
- e && e.i && (Pr.delete(e), e.i(t));
164
+ const Ir = /* @__PURE__ */ new Set();
165
+ function Nr(e, t) {
166
+ e && e.i && (Ir.delete(e), e.i(t));
167
167
  }
168
- function it(e) {
168
+ function st(e) {
169
169
  return e?.length !== void 0 ? e : Array.from(e);
170
170
  }
171
- function Ir(e, t, r) {
171
+ function Mr(e, t, r) {
172
172
  const { fragment: n, after_update: i } = e.$$;
173
- n && n.m(t, r), Re(() => {
174
- const o = e.$$.on_mount.map(Lt).filter(qe);
175
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
176
- }), i.forEach(Re);
173
+ n && n.m(t, r), Fe(() => {
174
+ const o = e.$$.on_mount.map($t).filter(et);
175
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ae(o), e.$$.on_mount = [];
176
+ }), i.forEach(Fe);
177
177
  }
178
- function Nr(e, t) {
178
+ function Lr(e, t) {
179
179
  const r = e.$$;
180
- r.fragment !== null && (Or(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
180
+ r.fragment !== null && (Cr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
181
181
  }
182
- function Mr(e, t) {
183
- e.$$.dirty[0] === -1 && (z.push(e), Ar(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
182
+ function Rr(e, t) {
183
+ e.$$.dirty[0] === -1 && (W.push(e), Or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
184
184
  }
185
- function Lr(e, t, r, n, i, o, s = null, a = [-1]) {
186
- const h = re;
187
- te(e);
185
+ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
186
+ const h = ie;
187
+ ne(e);
188
188
  const u = e.$$ = {
189
189
  fragment: null,
190
190
  ctx: [],
191
191
  // state
192
192
  props: o,
193
- update: P,
193
+ update: C,
194
194
  not_equal: i,
195
- bound: tt(),
195
+ bound: nt(),
196
196
  // lifecycle
197
197
  on_mount: [],
198
198
  on_destroy: [],
@@ -201,28 +201,28 @@ function Lr(e, t, r, n, i, o, s = null, a = [-1]) {
201
201
  after_update: [],
202
202
  context: new Map(t.context || (h ? h.$$.context : [])),
203
203
  // everything else
204
- callbacks: tt(),
204
+ callbacks: nt(),
205
205
  dirty: a,
206
206
  skip_bound: !1,
207
207
  root: t.target || h.$$.root
208
208
  };
209
209
  s && s(u.root);
210
210
  let l = !1;
211
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
212
- const m = p.length ? p[0] : f;
213
- return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l && Mr(e, c)), f;
214
- }) : [], u.update(), l = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
211
+ if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
212
+ const p = d.length ? d[0] : f;
213
+ return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), l && Rr(e, c)), f;
214
+ }) : [], u.update(), l = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
215
215
  if (t.hydrate) {
216
- const c = xr(t.target);
216
+ const c = wr(t.target);
217
217
  u.fragment && u.fragment.l(c), c.forEach(N);
218
218
  } else
219
219
  u.fragment && u.fragment.c();
220
- t.intro && Cr(e.$$.fragment), Ir(e, t.target, t.anchor), U();
220
+ t.intro && Nr(e.$$.fragment), Mr(e, t.target, t.anchor), U();
221
221
  }
222
- te(h);
222
+ ne(h);
223
223
  }
224
- let Ft;
225
- typeof HTMLElement == "function" && (Ft = class extends HTMLElement {
224
+ let Dt;
225
+ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
226
226
  /** The Svelte component constructor */
227
227
  $$ctor;
228
228
  /** Slots */
@@ -264,7 +264,7 @@ typeof HTMLElement == "function" && (Ft = class extends HTMLElement {
264
264
  let o;
265
265
  return {
266
266
  c: function() {
267
- o = L("slot"), i !== "default" && x(o, "name", i);
267
+ o = L("slot"), i !== "default" && E(o, "name", i);
268
268
  },
269
269
  /**
270
270
  * @param {HTMLElement} target
@@ -281,12 +281,12 @@ typeof HTMLElement == "function" && (Ft = class extends HTMLElement {
281
281
  };
282
282
  if (await Promise.resolve(), !this.$$cn || this.$$c)
283
283
  return;
284
- const t = {}, r = Sr(this);
284
+ const t = {}, r = Tr(this);
285
285
  for (const i of this.$$s)
286
286
  i in r && (t[i] = [e(i)]);
287
287
  for (const i of this.attributes) {
288
288
  const o = this.$$g_p(i.name);
289
- o in this.$$d || (this.$$d[o] = pe(o, i.value, this.$$p_d, "toProp"));
289
+ o in this.$$d || (this.$$d[o] = me(o, i.value, this.$$p_d, "toProp"));
290
290
  }
291
291
  for (const i in this.$$p_d)
292
292
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -304,7 +304,7 @@ typeof HTMLElement == "function" && (Ft = class extends HTMLElement {
304
304
  this.$$r = !0;
305
305
  for (const i in this.$$p_d)
306
306
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
307
- const o = pe(
307
+ const o = me(
308
308
  i,
309
309
  this.$$d[i],
310
310
  this.$$p_d,
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (Ft = class extends HTMLElement {
326
326
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
327
327
  // and setting attributes through setAttribute etc, this is helpful
328
328
  attributeChangedCallback(e, t, r) {
329
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = pe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
329
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = me(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
330
330
  }
331
331
  disconnectedCallback() {
332
332
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -339,7 +339,7 @@ typeof HTMLElement == "function" && (Ft = class extends HTMLElement {
339
339
  ) || e;
340
340
  }
341
341
  });
342
- function pe(e, t, r, n) {
342
+ function me(e, t, r, n) {
343
343
  const i = r[e]?.type;
344
344
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
345
345
  return t;
@@ -368,8 +368,8 @@ function pe(e, t, r, n) {
368
368
  return t;
369
369
  }
370
370
  }
371
- function Rr(e, t, r, n, i, o) {
372
- let s = class extends Ft {
371
+ function Fr(e, t, r, n, i, o) {
372
+ let s = class extends Dt {
373
373
  constructor() {
374
374
  super(e, r, i), this.$$p_d = t;
375
375
  }
@@ -385,7 +385,7 @@ function Rr(e, t, r, n, i, o) {
385
385
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
386
386
  },
387
387
  set(h) {
388
- h = pe(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
388
+ h = me(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
389
389
  }
390
390
  });
391
391
  }), n.forEach((a) => {
@@ -397,7 +397,7 @@ function Rr(e, t, r, n, i, o) {
397
397
  }), e.element = /** @type {any} */
398
398
  s, s;
399
399
  }
400
- class $r {
400
+ class Ur {
401
401
  /**
402
402
  * ### PRIVATE API
403
403
  *
@@ -416,7 +416,7 @@ class $r {
416
416
  $$set = void 0;
417
417
  /** @returns {void} */
418
418
  $destroy() {
419
- Nr(this, 1), this.$destroy = P;
419
+ Lr(this, 1), this.$destroy = C;
420
420
  }
421
421
  /**
422
422
  * @template {Extract<keyof Events, string>} K
@@ -425,8 +425,8 @@ class $r {
425
425
  * @returns {() => void}
426
426
  */
427
427
  $on(t, r) {
428
- if (!qe(r))
429
- return P;
428
+ if (!et(r))
429
+ return C;
430
430
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
431
431
  return n.push(r), () => {
432
432
  const i = n.indexOf(r);
@@ -438,11 +438,11 @@ class $r {
438
438
  * @returns {void}
439
439
  */
440
440
  $set(t) {
441
- this.$$set && !dr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
441
+ this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
442
442
  }
443
443
  }
444
- const Fr = "4";
445
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
444
+ const Dr = "4";
445
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dr);
446
446
  /*! *****************************************************************************
447
447
  Copyright (c) Microsoft Corporation.
448
448
 
@@ -457,24 +457,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
457
457
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
458
458
  PERFORMANCE OF THIS SOFTWARE.
459
459
  ***************************************************************************** */
460
- var $e = function(e, t) {
461
- return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
460
+ var Ue = function(e, t) {
461
+ return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
462
462
  r.__proto__ = n;
463
463
  } || function(r, n) {
464
464
  for (var i in n)
465
465
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
466
- }, $e(e, t);
466
+ }, Ue(e, t);
467
467
  };
468
- function ae(e, t) {
468
+ function le(e, t) {
469
469
  if (typeof t != "function" && t !== null)
470
470
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
471
- $e(e, t);
471
+ Ue(e, t);
472
472
  function r() {
473
473
  this.constructor = e;
474
474
  }
475
475
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
476
476
  }
477
- function Fe(e) {
477
+ function De(e) {
478
478
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
479
479
  if (r)
480
480
  return r.call(e);
@@ -486,7 +486,7 @@ function Fe(e) {
486
486
  };
487
487
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
488
488
  }
489
- function Ue(e, t) {
489
+ function Ge(e, t) {
490
490
  var r = typeof Symbol == "function" && e[Symbol.iterator];
491
491
  if (!r)
492
492
  return e;
@@ -506,7 +506,7 @@ function Ue(e, t) {
506
506
  }
507
507
  return o;
508
508
  }
509
- function De(e, t, r) {
509
+ function je(e, t, r) {
510
510
  if (arguments.length === 2)
511
511
  for (var n = 0, i = t.length, o; n < i; n++)
512
512
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
@@ -515,13 +515,13 @@ function De(e, t, r) {
515
515
  function R(e) {
516
516
  return typeof e == "function";
517
517
  }
518
- function Ut(e) {
518
+ function Gt(e) {
519
519
  var t = function(n) {
520
520
  Error.call(n), n.stack = new Error().stack;
521
521
  }, r = e(t);
522
522
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
523
523
  }
524
- var Ae = Ut(function(e) {
524
+ var Oe = Gt(function(e) {
525
525
  return function(r) {
526
526
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
527
527
  ` + r.map(function(n, i) {
@@ -530,13 +530,13 @@ var Ae = Ut(function(e) {
530
530
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
531
531
  };
532
532
  });
533
- function Ge(e, t) {
533
+ function ke(e, t) {
534
534
  if (e) {
535
535
  var r = e.indexOf(t);
536
536
  0 <= r && e.splice(r, 1);
537
537
  }
538
538
  }
539
- var _e = function() {
539
+ var xe = function() {
540
540
  function e(t) {
541
541
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
542
542
  }
@@ -548,12 +548,12 @@ var _e = function() {
548
548
  if (s)
549
549
  if (this._parentage = null, Array.isArray(s))
550
550
  try {
551
- for (var a = Fe(s), h = a.next(); !h.done; h = a.next()) {
551
+ for (var a = De(s), h = a.next(); !h.done; h = a.next()) {
552
552
  var u = h.value;
553
553
  u.remove(this);
554
554
  }
555
- } catch (d) {
556
- t = { error: d };
555
+ } catch (m) {
556
+ t = { error: m };
557
557
  } finally {
558
558
  try {
559
559
  h && !h.done && (r = a.return) && r.call(a);
@@ -568,26 +568,26 @@ var _e = function() {
568
568
  if (R(l))
569
569
  try {
570
570
  l();
571
- } catch (d) {
572
- o = d instanceof Ae ? d.errors : [d];
571
+ } catch (m) {
572
+ o = m instanceof Oe ? m.errors : [m];
573
573
  }
574
574
  var c = this._finalizers;
575
575
  if (c) {
576
576
  this._finalizers = null;
577
577
  try {
578
- for (var f = Fe(c), p = f.next(); !p.done; p = f.next()) {
579
- var m = p.value;
578
+ for (var f = De(c), d = f.next(); !d.done; d = f.next()) {
579
+ var p = d.value;
580
580
  try {
581
- ot(m);
582
- } catch (d) {
583
- o = o ?? [], d instanceof Ae ? o = De(De([], Ue(o)), Ue(d.errors)) : o.push(d);
581
+ at(p);
582
+ } catch (m) {
583
+ o = o ?? [], m instanceof Oe ? o = je(je([], Ge(o)), Ge(m.errors)) : o.push(m);
584
584
  }
585
585
  }
586
- } catch (d) {
587
- n = { error: d };
586
+ } catch (m) {
587
+ n = { error: m };
588
588
  } finally {
589
589
  try {
590
- p && !p.done && (i = f.return) && i.call(f);
590
+ d && !d.done && (i = f.return) && i.call(f);
591
591
  } finally {
592
592
  if (n)
593
593
  throw n.error;
@@ -595,13 +595,13 @@ var _e = function() {
595
595
  }
596
596
  }
597
597
  if (o)
598
- throw new Ae(o);
598
+ throw new Oe(o);
599
599
  }
600
600
  }, e.prototype.add = function(t) {
601
601
  var r;
602
602
  if (t && t !== this)
603
603
  if (this.closed)
604
- ot(t);
604
+ at(t);
605
605
  else {
606
606
  if (t instanceof e) {
607
607
  if (t.closed || t._hasParent(this))
@@ -618,52 +618,52 @@ var _e = function() {
618
618
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
619
619
  }, e.prototype._removeParent = function(t) {
620
620
  var r = this._parentage;
621
- r === t ? this._parentage = null : Array.isArray(r) && Ge(r, t);
621
+ r === t ? this._parentage = null : Array.isArray(r) && ke(r, t);
622
622
  }, e.prototype.remove = function(t) {
623
623
  var r = this._finalizers;
624
- r && Ge(r, t), t instanceof e && t._removeParent(this);
624
+ r && ke(r, t), t instanceof e && t._removeParent(this);
625
625
  }, e.EMPTY = function() {
626
626
  var t = new e();
627
627
  return t.closed = !0, t;
628
628
  }(), e;
629
- }(), Dt = _e.EMPTY;
630
- function Gt(e) {
631
- return e instanceof _e || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
629
+ }(), jt = xe.EMPTY;
630
+ function kt(e) {
631
+ return e instanceof xe || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
632
632
  }
633
- function ot(e) {
633
+ function at(e) {
634
634
  R(e) ? e() : e.unsubscribe();
635
635
  }
636
- var Ur = {
636
+ var Gr = {
637
637
  Promise: void 0
638
- }, Dr = {
638
+ }, jr = {
639
639
  setTimeout: function(e, t) {
640
640
  for (var r = [], n = 2; n < arguments.length; n++)
641
641
  r[n - 2] = arguments[n];
642
- return setTimeout.apply(void 0, De([e, t], Ue(r)));
642
+ return setTimeout.apply(void 0, je([e, t], Ge(r)));
643
643
  },
644
644
  clearTimeout: function(e) {
645
645
  return clearTimeout(e);
646
646
  },
647
647
  delegate: void 0
648
648
  };
649
- function Gr(e) {
650
- Dr.setTimeout(function() {
649
+ function kr(e) {
650
+ jr.setTimeout(function() {
651
651
  throw e;
652
652
  });
653
653
  }
654
- function st() {
654
+ function ut() {
655
655
  }
656
- function me(e) {
656
+ function be(e) {
657
657
  e();
658
658
  }
659
- var jt = function(e) {
660
- ae(t, e);
659
+ var Vt = function(e) {
660
+ le(t, e);
661
661
  function t(r) {
662
662
  var n = e.call(this) || this;
663
- return n.isStopped = !1, r ? (n.destination = r, Gt(r) && r.add(n)) : n.destination = Vr, n;
663
+ return n.isStopped = !1, r ? (n.destination = r, kt(r) && r.add(n)) : n.destination = zr, n;
664
664
  }
665
665
  return t.create = function(r, n, i) {
666
- return new je(r, n, i);
666
+ return new Ve(r, n, i);
667
667
  }, t.prototype.next = function(r) {
668
668
  this.isStopped || this._next(r);
669
669
  }, t.prototype.error = function(r) {
@@ -687,7 +687,7 @@ var jt = function(e) {
687
687
  this.unsubscribe();
688
688
  }
689
689
  }, t;
690
- }(_e), jr = function() {
690
+ }(xe), Vr = function() {
691
691
  function e(t) {
692
692
  this.partialObserver = t;
693
693
  }
@@ -697,7 +697,7 @@ var jt = function(e) {
697
697
  try {
698
698
  r.next(t);
699
699
  } catch (n) {
700
- fe(n);
700
+ pe(n);
701
701
  }
702
702
  }, e.prototype.error = function(t) {
703
703
  var r = this.partialObserver;
@@ -705,56 +705,56 @@ var jt = function(e) {
705
705
  try {
706
706
  r.error(t);
707
707
  } catch (n) {
708
- fe(n);
708
+ pe(n);
709
709
  }
710
710
  else
711
- fe(t);
711
+ pe(t);
712
712
  }, e.prototype.complete = function() {
713
713
  var t = this.partialObserver;
714
714
  if (t.complete)
715
715
  try {
716
716
  t.complete();
717
717
  } catch (r) {
718
- fe(r);
718
+ pe(r);
719
719
  }
720
720
  }, e;
721
- }(), je = function(e) {
722
- ae(t, e);
721
+ }(), Ve = function(e) {
722
+ le(t, e);
723
723
  function t(r, n, i) {
724
724
  var o = e.call(this) || this, s;
725
725
  return R(r) || !r ? s = {
726
726
  next: r ?? void 0,
727
727
  error: n ?? void 0,
728
728
  complete: i ?? void 0
729
- } : s = r, o.destination = new jr(s), o;
729
+ } : s = r, o.destination = new Vr(s), o;
730
730
  }
731
731
  return t;
732
- }(jt);
733
- function fe(e) {
734
- Gr(e);
732
+ }(Vt);
733
+ function pe(e) {
734
+ kr(e);
735
735
  }
736
- function kr(e) {
736
+ function Xr(e) {
737
737
  throw e;
738
738
  }
739
- var Vr = {
739
+ var zr = {
740
740
  closed: !0,
741
- next: st,
742
- error: kr,
743
- complete: st
744
- }, Xr = function() {
741
+ next: ut,
742
+ error: Xr,
743
+ complete: ut
744
+ }, Wr = function() {
745
745
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
746
746
  }();
747
- function zr(e) {
747
+ function Zr(e) {
748
748
  return e;
749
749
  }
750
- function Wr(e) {
751
- return e.length === 0 ? zr : e.length === 1 ? e[0] : function(r) {
750
+ function Qr(e) {
751
+ return e.length === 0 ? Zr : e.length === 1 ? e[0] : function(r) {
752
752
  return e.reduce(function(n, i) {
753
753
  return i(n);
754
754
  }, r);
755
755
  };
756
756
  }
757
- var at = function() {
757
+ var lt = function() {
758
758
  function e(t) {
759
759
  t && (this._subscribe = t);
760
760
  }
@@ -762,8 +762,8 @@ var at = function() {
762
762
  var r = new e();
763
763
  return r.source = this, r.operator = t, r;
764
764
  }, e.prototype.subscribe = function(t, r, n) {
765
- var i = this, o = Qr(t) ? t : new je(t, r, n);
766
- return me(function() {
765
+ var i = this, o = Yr(t) ? t : new Ve(t, r, n);
766
+ return be(function() {
767
767
  var s = i, a = s.operator, h = s.source;
768
768
  o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
769
769
  }), o;
@@ -775,8 +775,8 @@ var at = function() {
775
775
  }
776
776
  }, e.prototype.forEach = function(t, r) {
777
777
  var n = this;
778
- return r = ut(r), new r(function(i, o) {
779
- var s = new je({
778
+ return r = ht(r), new r(function(i, o) {
779
+ var s = new Ve({
780
780
  next: function(a) {
781
781
  try {
782
782
  t(a);
@@ -792,15 +792,15 @@ var at = function() {
792
792
  }, e.prototype._subscribe = function(t) {
793
793
  var r;
794
794
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
795
- }, e.prototype[Xr] = function() {
795
+ }, e.prototype[Wr] = function() {
796
796
  return this;
797
797
  }, e.prototype.pipe = function() {
798
798
  for (var t = [], r = 0; r < arguments.length; r++)
799
799
  t[r] = arguments[r];
800
- return Wr(t)(this);
800
+ return Qr(t)(this);
801
801
  }, e.prototype.toPromise = function(t) {
802
802
  var r = this;
803
- return t = ut(t), new t(function(n, i) {
803
+ return t = ht(t), new t(function(n, i) {
804
804
  var o;
805
805
  r.subscribe(function(s) {
806
806
  return o = s;
@@ -814,40 +814,40 @@ var at = function() {
814
814
  return new e(t);
815
815
  }, e;
816
816
  }();
817
- function ut(e) {
817
+ function ht(e) {
818
818
  var t;
819
- return (t = e ?? Ur.Promise) !== null && t !== void 0 ? t : Promise;
819
+ return (t = e ?? Gr.Promise) !== null && t !== void 0 ? t : Promise;
820
820
  }
821
- function Zr(e) {
821
+ function Jr(e) {
822
822
  return e && R(e.next) && R(e.error) && R(e.complete);
823
823
  }
824
- function Qr(e) {
825
- return e && e instanceof jt || Zr(e) && Gt(e);
824
+ function Yr(e) {
825
+ return e && e instanceof Vt || Jr(e) && kt(e);
826
826
  }
827
- var Jr = Ut(function(e) {
827
+ var qr = Gt(function(e) {
828
828
  return function() {
829
829
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
830
830
  };
831
- }), kt = function(e) {
832
- ae(t, e);
831
+ }), Xt = function(e) {
832
+ le(t, e);
833
833
  function t() {
834
834
  var r = e.call(this) || this;
835
835
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
836
836
  }
837
837
  return t.prototype.lift = function(r) {
838
- var n = new lt(this, this);
838
+ var n = new ft(this, this);
839
839
  return n.operator = r, n;
840
840
  }, t.prototype._throwIfClosed = function() {
841
841
  if (this.closed)
842
- throw new Jr();
842
+ throw new qr();
843
843
  }, t.prototype.next = function(r) {
844
844
  var n = this;
845
- me(function() {
845
+ be(function() {
846
846
  var i, o;
847
847
  if (n._throwIfClosed(), !n.isStopped) {
848
848
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
849
849
  try {
850
- for (var s = Fe(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
850
+ for (var s = De(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
851
851
  var h = a.value;
852
852
  h.next(r);
853
853
  }
@@ -865,7 +865,7 @@ var Jr = Ut(function(e) {
865
865
  });
866
866
  }, t.prototype.error = function(r) {
867
867
  var n = this;
868
- me(function() {
868
+ be(function() {
869
869
  if (n._throwIfClosed(), !n.isStopped) {
870
870
  n.hasError = n.isStopped = !0, n.thrownError = r;
871
871
  for (var i = n.observers; i.length; )
@@ -874,7 +874,7 @@ var Jr = Ut(function(e) {
874
874
  });
875
875
  }, t.prototype.complete = function() {
876
876
  var r = this;
877
- me(function() {
877
+ be(function() {
878
878
  if (r._throwIfClosed(), !r.isStopped) {
879
879
  r.isStopped = !0;
880
880
  for (var n = r.observers; n.length; )
@@ -896,20 +896,20 @@ var Jr = Ut(function(e) {
896
896
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
897
897
  }, t.prototype._innerSubscribe = function(r) {
898
898
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
899
- return o || s ? Dt : (this.currentObservers = null, a.push(r), new _e(function() {
900
- n.currentObservers = null, Ge(a, r);
899
+ return o || s ? jt : (this.currentObservers = null, a.push(r), new xe(function() {
900
+ n.currentObservers = null, ke(a, r);
901
901
  }));
902
902
  }, t.prototype._checkFinalizedStatuses = function(r) {
903
903
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
904
904
  i ? r.error(o) : s && r.complete();
905
905
  }, t.prototype.asObservable = function() {
906
- var r = new at();
906
+ var r = new lt();
907
907
  return r.source = this, r;
908
908
  }, t.create = function(r, n) {
909
- return new lt(r, n);
909
+ return new ft(r, n);
910
910
  }, t;
911
- }(at), lt = function(e) {
912
- ae(t, e);
911
+ }(lt), ft = function(e) {
912
+ le(t, e);
913
913
  function t(r, n) {
914
914
  var i = e.call(this) || this;
915
915
  return i.destination = r, i.source = n, i;
@@ -925,17 +925,17 @@ var Jr = Ut(function(e) {
925
925
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
926
926
  }, t.prototype._subscribe = function(r) {
927
927
  var n, i;
928
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Dt;
928
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : jt;
929
929
  }, t;
930
- }(kt), Vt = {
930
+ }(Xt), zt = {
931
931
  now: function() {
932
- return (Vt.delegate || Date).now();
932
+ return (zt.delegate || Date).now();
933
933
  },
934
934
  delegate: void 0
935
- }, Yr = function(e) {
936
- ae(t, e);
935
+ }, Kr = function(e) {
936
+ le(t, e);
937
937
  function t(r, n, i) {
938
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Vt);
938
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = zt);
939
939
  var o = e.call(this) || this;
940
940
  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;
941
941
  }
@@ -955,162 +955,162 @@ var Jr = Ut(function(e) {
955
955
  u && o.splice(0, u + 1);
956
956
  }
957
957
  }, t;
958
- }(kt);
959
- const ht = [], ft = {}, qr = (e, t = 0) => {
960
- if (ht.indexOf(e) == -1) {
961
- const r = new Yr(t);
962
- ft[e] = r, ht.push(e);
958
+ }(Xt);
959
+ const ct = [], pt = {}, en = (e, t = 0) => {
960
+ if (ct.indexOf(e) == -1) {
961
+ const r = new Kr(t);
962
+ pt[e] = r, ct.push(e);
963
963
  }
964
- return ft[e];
965
- }, V = [];
966
- function Kr(e, t) {
964
+ return pt[e];
965
+ }, X = [];
966
+ function tn(e, t) {
967
967
  return {
968
- subscribe: Ee(e, t).subscribe
968
+ subscribe: Se(e, t).subscribe
969
969
  };
970
970
  }
971
- function Ee(e, t = P) {
971
+ function Se(e, t = C) {
972
972
  let r;
973
973
  const n = /* @__PURE__ */ new Set();
974
974
  function i(a) {
975
- if (Rt(e, a) && (e = a, r)) {
976
- const h = !V.length;
975
+ if (Ft(e, a) && (e = a, r)) {
976
+ const h = !X.length;
977
977
  for (const u of n)
978
- u[1](), V.push(u, e);
978
+ u[1](), X.push(u, e);
979
979
  if (h) {
980
- for (let u = 0; u < V.length; u += 2)
981
- V[u][0](V[u + 1]);
982
- V.length = 0;
980
+ for (let u = 0; u < X.length; u += 2)
981
+ X[u][0](X[u + 1]);
982
+ X.length = 0;
983
983
  }
984
984
  }
985
985
  }
986
986
  function o(a) {
987
987
  i(a(e));
988
988
  }
989
- function s(a, h = P) {
989
+ function s(a, h = C) {
990
990
  const u = [a, h];
991
- return n.add(u), n.size === 1 && (r = t(i, o) || P), a(e), () => {
991
+ return n.add(u), n.size === 1 && (r = t(i, o) || C), a(e), () => {
992
992
  n.delete(u), n.size === 0 && r && (r(), r = null);
993
993
  };
994
994
  }
995
995
  return { set: i, update: o, subscribe: s };
996
996
  }
997
- function q(e, t, r) {
997
+ function ee(e, t, r) {
998
998
  const n = !Array.isArray(e), i = n ? [e] : e;
999
999
  if (!i.every(Boolean))
1000
1000
  throw new Error("derived() expects stores as input, got a falsy value");
1001
1001
  const o = t.length < 2;
1002
- return Kr(r, (s, a) => {
1002
+ return tn(r, (s, a) => {
1003
1003
  let h = !1;
1004
1004
  const u = [];
1005
- let l = 0, c = P;
1005
+ let l = 0, c = C;
1006
1006
  const f = () => {
1007
1007
  if (l)
1008
1008
  return;
1009
1009
  c();
1010
- const m = t(n ? u[0] : u, s, a);
1011
- o ? s(m) : c = qe(m) ? m : P;
1012
- }, p = i.map(
1013
- (m, d) => $t(
1014
- m,
1010
+ const p = t(n ? u[0] : u, s, a);
1011
+ o ? s(p) : c = et(p) ? p : C;
1012
+ }, d = i.map(
1013
+ (p, m) => Ut(
1014
+ p,
1015
1015
  (v) => {
1016
- u[d] = v, l &= ~(1 << d), h && f();
1016
+ u[m] = v, l &= ~(1 << m), h && f();
1017
1017
  },
1018
1018
  () => {
1019
- l |= 1 << d;
1019
+ l |= 1 << m;
1020
1020
  }
1021
1021
  )
1022
1022
  );
1023
1023
  return h = !0, f(), function() {
1024
- oe(p), c(), h = !1;
1024
+ ae(d), c(), h = !1;
1025
1025
  };
1026
1026
  });
1027
1027
  }
1028
- function en(e) {
1028
+ function rn(e) {
1029
1029
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1030
1030
  }
1031
- var tn = function(t) {
1032
- return rn(t) && !nn(t);
1031
+ var nn = function(t) {
1032
+ return on(t) && !sn(t);
1033
1033
  };
1034
- function rn(e) {
1034
+ function on(e) {
1035
1035
  return !!e && typeof e == "object";
1036
1036
  }
1037
- function nn(e) {
1037
+ function sn(e) {
1038
1038
  var t = Object.prototype.toString.call(e);
1039
- return t === "[object RegExp]" || t === "[object Date]" || an(e);
1039
+ return t === "[object RegExp]" || t === "[object Date]" || ln(e);
1040
1040
  }
1041
- var on = typeof Symbol == "function" && Symbol.for, sn = on ? Symbol.for("react.element") : 60103;
1042
- function an(e) {
1043
- return e.$$typeof === sn;
1041
+ var an = typeof Symbol == "function" && Symbol.for, un = an ? Symbol.for("react.element") : 60103;
1042
+ function ln(e) {
1043
+ return e.$$typeof === un;
1044
1044
  }
1045
- function un(e) {
1045
+ function hn(e) {
1046
1046
  return Array.isArray(e) ? [] : {};
1047
1047
  }
1048
- function ne(e, t) {
1049
- return t.clone !== !1 && t.isMergeableObject(e) ? Z(un(e), e, t) : e;
1048
+ function oe(e, t) {
1049
+ return t.clone !== !1 && t.isMergeableObject(e) ? J(hn(e), e, t) : e;
1050
1050
  }
1051
- function ln(e, t, r) {
1051
+ function fn(e, t, r) {
1052
1052
  return e.concat(t).map(function(n) {
1053
- return ne(n, r);
1053
+ return oe(n, r);
1054
1054
  });
1055
1055
  }
1056
- function hn(e, t) {
1056
+ function cn(e, t) {
1057
1057
  if (!t.customMerge)
1058
- return Z;
1058
+ return J;
1059
1059
  var r = t.customMerge(e);
1060
- return typeof r == "function" ? r : Z;
1060
+ return typeof r == "function" ? r : J;
1061
1061
  }
1062
- function fn(e) {
1062
+ function pn(e) {
1063
1063
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1064
1064
  return Object.propertyIsEnumerable.call(e, t);
1065
1065
  }) : [];
1066
1066
  }
1067
- function ct(e) {
1068
- return Object.keys(e).concat(fn(e));
1067
+ function dt(e) {
1068
+ return Object.keys(e).concat(pn(e));
1069
1069
  }
1070
- function Xt(e, t) {
1070
+ function Wt(e, t) {
1071
1071
  try {
1072
1072
  return t in e;
1073
1073
  } catch {
1074
1074
  return !1;
1075
1075
  }
1076
1076
  }
1077
- function cn(e, t) {
1078
- return Xt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1077
+ function dn(e, t) {
1078
+ return Wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1079
1079
  }
1080
- function pn(e, t, r) {
1080
+ function mn(e, t, r) {
1081
1081
  var n = {};
1082
- return r.isMergeableObject(e) && ct(e).forEach(function(i) {
1083
- n[i] = ne(e[i], r);
1084
- }), ct(t).forEach(function(i) {
1085
- cn(e, i) || (Xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = hn(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
1082
+ return r.isMergeableObject(e) && dt(e).forEach(function(i) {
1083
+ n[i] = oe(e[i], r);
1084
+ }), dt(t).forEach(function(i) {
1085
+ dn(e, i) || (Wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = cn(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
1086
1086
  }), n;
1087
1087
  }
1088
- function Z(e, t, r) {
1089
- r = r || {}, r.arrayMerge = r.arrayMerge || ln, r.isMergeableObject = r.isMergeableObject || tn, r.cloneUnlessOtherwiseSpecified = ne;
1088
+ function J(e, t, r) {
1089
+ r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = oe;
1090
1090
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1091
- return o ? n ? r.arrayMerge(e, t, r) : pn(e, t, r) : ne(t, r);
1091
+ return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : oe(t, r);
1092
1092
  }
1093
- Z.all = function(t, r) {
1093
+ J.all = function(t, r) {
1094
1094
  if (!Array.isArray(t))
1095
1095
  throw new Error("first argument should be an array");
1096
1096
  return t.reduce(function(n, i) {
1097
- return Z(n, i, r);
1097
+ return J(n, i, r);
1098
1098
  }, {});
1099
1099
  };
1100
- var mn = Z, dn = mn;
1101
- const bn = /* @__PURE__ */ en(dn);
1102
- var ke = function(e, t) {
1103
- return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1100
+ var bn = J, gn = bn;
1101
+ const yn = /* @__PURE__ */ rn(gn);
1102
+ var Xe = function(e, t) {
1103
+ return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1104
1104
  r.__proto__ = n;
1105
1105
  } || function(r, n) {
1106
1106
  for (var i in n)
1107
1107
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1108
- }, ke(e, t);
1108
+ }, Xe(e, t);
1109
1109
  };
1110
- function xe(e, t) {
1110
+ function we(e, t) {
1111
1111
  if (typeof t != "function" && t !== null)
1112
1112
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1113
- ke(e, t);
1113
+ Xe(e, t);
1114
1114
  function r() {
1115
1115
  this.constructor = e;
1116
1116
  }
@@ -1126,7 +1126,7 @@ var I = function() {
1126
1126
  return t;
1127
1127
  }, I.apply(this, arguments);
1128
1128
  };
1129
- function gn(e, t) {
1129
+ function vn(e, t) {
1130
1130
  var r = {};
1131
1131
  for (var n in e)
1132
1132
  Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
@@ -1135,43 +1135,43 @@ function gn(e, t) {
1135
1135
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1136
1136
  return r;
1137
1137
  }
1138
- function Be(e, t, r) {
1138
+ function Pe(e, t, r) {
1139
1139
  if (r || arguments.length === 2)
1140
1140
  for (var n = 0, i = t.length, o; n < i; n++)
1141
1141
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1142
1142
  return e.concat(o || Array.prototype.slice.call(t));
1143
1143
  }
1144
- function Oe(e, t) {
1145
- var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : xn, i = t && t.strategy ? t.strategy : _n;
1144
+ function Ce(e, t) {
1145
+ var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : wn, i = t && t.strategy ? t.strategy : xn;
1146
1146
  return i(e, {
1147
1147
  cache: r,
1148
1148
  serializer: n
1149
1149
  });
1150
1150
  }
1151
- function yn(e) {
1151
+ function _n(e) {
1152
1152
  return e == null || typeof e == "number" || typeof e == "boolean";
1153
1153
  }
1154
- function vn(e, t, r, n) {
1155
- var i = yn(n) ? n : r(n), o = t.get(i);
1154
+ function En(e, t, r, n) {
1155
+ var i = _n(n) ? n : r(n), o = t.get(i);
1156
1156
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1157
1157
  }
1158
- function zt(e, t, r) {
1158
+ function Zt(e, t, r) {
1159
1159
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1160
1160
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1161
1161
  }
1162
- function Wt(e, t, r, n, i) {
1162
+ function Qt(e, t, r, n, i) {
1163
1163
  return r.bind(t, e, n, i);
1164
1164
  }
1165
- function _n(e, t) {
1166
- var r = e.length === 1 ? vn : zt;
1167
- return Wt(e, this, r, t.cache.create(), t.serializer);
1165
+ function xn(e, t) {
1166
+ var r = e.length === 1 ? En : Zt;
1167
+ return Qt(e, this, r, t.cache.create(), t.serializer);
1168
1168
  }
1169
- function En(e, t) {
1170
- return Wt(e, this, zt, t.cache.create(), t.serializer);
1169
+ function Sn(e, t) {
1170
+ return Qt(e, this, Zt, t.cache.create(), t.serializer);
1171
1171
  }
1172
- var xn = function() {
1172
+ var wn = function() {
1173
1173
  return JSON.stringify(arguments);
1174
- }, Sn = (
1174
+ }, Tn = (
1175
1175
  /** @class */
1176
1176
  function() {
1177
1177
  function e() {
@@ -1183,21 +1183,21 @@ var xn = function() {
1183
1183
  this.cache[t] = r;
1184
1184
  }, e;
1185
1185
  }()
1186
- ), Tn = {
1186
+ ), Hn = {
1187
1187
  create: function() {
1188
- return new Sn();
1188
+ return new Tn();
1189
1189
  }
1190
- }, Pe = {
1191
- variadic: En
1192
- }, ge = function() {
1193
- return ge = Object.assign || function(t) {
1190
+ }, Ie = {
1191
+ variadic: Sn
1192
+ }, ve = function() {
1193
+ return ve = Object.assign || function(t) {
1194
1194
  for (var r, n = 1, i = arguments.length; n < i; n++) {
1195
1195
  r = arguments[n];
1196
1196
  for (var o in r)
1197
1197
  Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1198
1198
  }
1199
1199
  return t;
1200
- }, ge.apply(this, arguments);
1200
+ }, ve.apply(this, arguments);
1201
1201
  };
1202
1202
  var b;
1203
1203
  (function(e) {
@@ -1207,47 +1207,47 @@ var _;
1207
1207
  (function(e) {
1208
1208
  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";
1209
1209
  })(_ || (_ = {}));
1210
- var Q;
1210
+ var Y;
1211
1211
  (function(e) {
1212
1212
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1213
- })(Q || (Q = {}));
1214
- function pt(e) {
1213
+ })(Y || (Y = {}));
1214
+ function mt(e) {
1215
1215
  return e.type === _.literal;
1216
1216
  }
1217
- function wn(e) {
1217
+ function An(e) {
1218
1218
  return e.type === _.argument;
1219
1219
  }
1220
- function Zt(e) {
1220
+ function Jt(e) {
1221
1221
  return e.type === _.number;
1222
1222
  }
1223
- function Qt(e) {
1223
+ function Yt(e) {
1224
1224
  return e.type === _.date;
1225
1225
  }
1226
- function Jt(e) {
1226
+ function qt(e) {
1227
1227
  return e.type === _.time;
1228
1228
  }
1229
- function Yt(e) {
1229
+ function Kt(e) {
1230
1230
  return e.type === _.select;
1231
1231
  }
1232
- function qt(e) {
1232
+ function er(e) {
1233
1233
  return e.type === _.plural;
1234
1234
  }
1235
- function Hn(e) {
1235
+ function Bn(e) {
1236
1236
  return e.type === _.pound;
1237
1237
  }
1238
- function Kt(e) {
1238
+ function tr(e) {
1239
1239
  return e.type === _.tag;
1240
1240
  }
1241
- function er(e) {
1242
- return !!(e && typeof e == "object" && e.type === Q.number);
1241
+ function rr(e) {
1242
+ return !!(e && typeof e == "object" && e.type === Y.number);
1243
1243
  }
1244
- function Ve(e) {
1245
- return !!(e && typeof e == "object" && e.type === Q.dateTime);
1244
+ function ze(e) {
1245
+ return !!(e && typeof e == "object" && e.type === Y.dateTime);
1246
1246
  }
1247
- var tr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, An = /(?:[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;
1248
- function Bn(e) {
1247
+ var nr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[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;
1248
+ function Pn(e) {
1249
1249
  var t = {};
1250
- return e.replace(An, function(r) {
1250
+ return e.replace(On, function(r) {
1251
1251
  var n = r.length;
1252
1252
  switch (r[0]) {
1253
1253
  case "G":
@@ -1346,11 +1346,11 @@ var S = function() {
1346
1346
  return t;
1347
1347
  }, S.apply(this, arguments);
1348
1348
  };
1349
- var On = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1350
- function Pn(e) {
1349
+ var Cn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1350
+ function In(e) {
1351
1351
  if (e.length === 0)
1352
1352
  throw new Error("Number skeleton cannot be empty");
1353
- for (var t = e.split(On).filter(function(f) {
1353
+ for (var t = e.split(Cn).filter(function(f) {
1354
1354
  return f.length > 0;
1355
1355
  }), r = [], n = 0, i = t; n < i.length; n++) {
1356
1356
  var o = i[n], s = o.split("/");
@@ -1365,17 +1365,17 @@ function Pn(e) {
1365
1365
  }
1366
1366
  return r;
1367
1367
  }
1368
- function Cn(e) {
1368
+ function Nn(e) {
1369
1369
  return e.replace(/^(.*?)-/, "");
1370
1370
  }
1371
- var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, rr = /^(@+)?(\+|#+)?[rs]?$/g, In = /(\*)(0+)|(#+)(0+)|(0+)/g, nr = /^(0+)$/;
1372
- function dt(e) {
1371
+ var bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, or = /^(0+)$/;
1372
+ function gt(e) {
1373
1373
  var t = {};
1374
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(rr, function(r, n, i) {
1374
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ir, function(r, n, i) {
1375
1375
  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)), "";
1376
1376
  }), t;
1377
1377
  }
1378
- function ir(e) {
1378
+ function sr(e) {
1379
1379
  switch (e) {
1380
1380
  case "sign-auto":
1381
1381
  return {
@@ -1415,7 +1415,7 @@ function ir(e) {
1415
1415
  };
1416
1416
  }
1417
1417
  }
1418
- function Nn(e) {
1418
+ function Ln(e) {
1419
1419
  var t;
1420
1420
  if (e[0] === "E" && e[1] === "E" ? (t = {
1421
1421
  notation: "engineering"
@@ -1423,17 +1423,17 @@ function Nn(e) {
1423
1423
  notation: "scientific"
1424
1424
  }, e = e.slice(1)), t) {
1425
1425
  var r = e.slice(0, 2);
1426
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !nr.test(e))
1426
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !or.test(e))
1427
1427
  throw new Error("Malformed concise eng/scientific notation");
1428
1428
  t.minimumIntegerDigits = e.length;
1429
1429
  }
1430
1430
  return t;
1431
1431
  }
1432
- function bt(e) {
1433
- var t = {}, r = ir(e);
1432
+ function yt(e) {
1433
+ var t = {}, r = sr(e);
1434
1434
  return r || t;
1435
1435
  }
1436
- function Mn(e) {
1436
+ function Rn(e) {
1437
1437
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1438
1438
  var i = n[r];
1439
1439
  switch (i.stem) {
@@ -1457,7 +1457,7 @@ function Mn(e) {
1457
1457
  continue;
1458
1458
  case "measure-unit":
1459
1459
  case "unit":
1460
- t.style = "unit", t.unit = Cn(i.options[0]);
1460
+ t.style = "unit", t.unit = Nn(i.options[0]);
1461
1461
  continue;
1462
1462
  case "compact-short":
1463
1463
  case "K":
@@ -1469,12 +1469,12 @@ function Mn(e) {
1469
1469
  continue;
1470
1470
  case "scientific":
1471
1471
  t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1472
- return S(S({}, h), bt(u));
1472
+ return S(S({}, h), yt(u));
1473
1473
  }, {}));
1474
1474
  continue;
1475
1475
  case "engineering":
1476
1476
  t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1477
- return S(S({}, h), bt(u));
1477
+ return S(S({}, h), yt(u));
1478
1478
  }, {}));
1479
1479
  continue;
1480
1480
  case "notation-simple":
@@ -1519,45 +1519,45 @@ function Mn(e) {
1519
1519
  case "integer-width":
1520
1520
  if (i.options.length > 1)
1521
1521
  throw new RangeError("integer-width stems only accept a single optional option");
1522
- i.options[0].replace(In, function(h, u, l, c, f, p) {
1522
+ i.options[0].replace(Mn, function(h, u, l, c, f, d) {
1523
1523
  if (u)
1524
1524
  t.minimumIntegerDigits = l.length;
1525
1525
  else {
1526
1526
  if (c && f)
1527
1527
  throw new Error("We currently do not support maximum integer digits");
1528
- if (p)
1528
+ if (d)
1529
1529
  throw new Error("We currently do not support exact integer digits");
1530
1530
  }
1531
1531
  return "";
1532
1532
  });
1533
1533
  continue;
1534
1534
  }
1535
- if (nr.test(i.stem)) {
1535
+ if (or.test(i.stem)) {
1536
1536
  t.minimumIntegerDigits = i.stem.length;
1537
1537
  continue;
1538
1538
  }
1539
- if (mt.test(i.stem)) {
1539
+ if (bt.test(i.stem)) {
1540
1540
  if (i.options.length > 1)
1541
1541
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1542
- i.stem.replace(mt, function(h, u, l, c, f, p) {
1543
- return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1542
+ i.stem.replace(bt, function(h, u, l, c, f, d) {
1543
+ return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1544
1544
  });
1545
1545
  var o = i.options[0];
1546
- o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), dt(o)));
1546
+ o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), gt(o)));
1547
1547
  continue;
1548
1548
  }
1549
- if (rr.test(i.stem)) {
1550
- t = S(S({}, t), dt(i.stem));
1549
+ if (ir.test(i.stem)) {
1550
+ t = S(S({}, t), gt(i.stem));
1551
1551
  continue;
1552
1552
  }
1553
- var s = ir(i.stem);
1553
+ var s = sr(i.stem);
1554
1554
  s && (t = S(S({}, t), s));
1555
- var a = Nn(i.stem);
1555
+ var a = Ln(i.stem);
1556
1556
  a && (t = S(S({}, t), a));
1557
1557
  }
1558
1558
  return t;
1559
1559
  }
1560
- var ce = {
1560
+ var de = {
1561
1561
  "001": [
1562
1562
  "H",
1563
1563
  "h"
@@ -2972,13 +2972,13 @@ var ce = {
2972
2972
  "h"
2973
2973
  ]
2974
2974
  };
2975
- function Ln(e, t) {
2975
+ function $n(e, t) {
2976
2976
  for (var r = "", n = 0; n < e.length; n++) {
2977
2977
  var i = e.charAt(n);
2978
2978
  if (i === "j") {
2979
2979
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2980
2980
  o++, n++;
2981
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Rn(t);
2981
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Fn(t);
2982
2982
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2983
2983
  r += h;
2984
2984
  for (; s-- > 0; )
@@ -2988,7 +2988,7 @@ function Ln(e, t) {
2988
2988
  }
2989
2989
  return r;
2990
2990
  }
2991
- function Rn(e) {
2991
+ function Fn(e) {
2992
2992
  var t = e.hourCycle;
2993
2993
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2994
2994
  e.hourCycles && // @ts-ignore
@@ -3007,23 +3007,23 @@ function Rn(e) {
3007
3007
  }
3008
3008
  var r = e.language, n;
3009
3009
  r !== "root" && (n = e.maximize().region);
3010
- var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
3010
+ var i = de[n || ""] || de[r || ""] || de["".concat(r, "-001")] || de["001"];
3011
3011
  return i[0];
3012
3012
  }
3013
- var Ce, $n = new RegExp("^".concat(tr.source, "*")), Fn = new RegExp("".concat(tr.source, "*$"));
3013
+ var Ne, Un = new RegExp("^".concat(nr.source, "*")), Dn = new RegExp("".concat(nr.source, "*$"));
3014
3014
  function g(e, t) {
3015
3015
  return { start: e, end: t };
3016
3016
  }
3017
- var Un = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dn = !!String.fromCodePoint, Gn = !!Object.fromEntries, jn = !!String.prototype.codePointAt, kn = !!String.prototype.trimStart, Vn = !!String.prototype.trimEnd, Xn = !!Number.isSafeInteger, zn = Xn ? Number.isSafeInteger : function(e) {
3017
+ var Gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, kn = !!Object.fromEntries, Vn = !!String.prototype.codePointAt, Xn = !!String.prototype.trimStart, zn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, Zn = Wn ? Number.isSafeInteger : function(e) {
3018
3018
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3019
- }, Xe = !0;
3019
+ }, We = !0;
3020
3020
  try {
3021
- var Wn = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3022
- Xe = ((Ce = Wn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
3021
+ var Qn = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3022
+ We = ((Ne = Qn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
3023
3023
  } catch {
3024
- Xe = !1;
3024
+ We = !1;
3025
3025
  }
3026
- var gt = Un ? (
3026
+ var vt = Gn ? (
3027
3027
  // Native
3028
3028
  function(t, r, n) {
3029
3029
  return t.startsWith(r, n);
@@ -3033,7 +3033,7 @@ var gt = Un ? (
3033
3033
  function(t, r, n) {
3034
3034
  return t.slice(n, n + r.length) === r;
3035
3035
  }
3036
- ), ze = Dn ? String.fromCodePoint : (
3036
+ ), Ze = jn ? String.fromCodePoint : (
3037
3037
  // IE11
3038
3038
  function() {
3039
3039
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3045,9 +3045,9 @@ var gt = Un ? (
3045
3045
  }
3046
3046
  return n;
3047
3047
  }
3048
- ), yt = (
3048
+ ), _t = (
3049
3049
  // native
3050
- Gn ? Object.fromEntries : (
3050
+ kn ? Object.fromEntries : (
3051
3051
  // Ponyfill
3052
3052
  function(t) {
3053
3053
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3057,7 +3057,7 @@ var gt = Un ? (
3057
3057
  return r;
3058
3058
  }
3059
3059
  )
3060
- ), or = jn ? (
3060
+ ), ar = Vn ? (
3061
3061
  // Native
3062
3062
  function(t, r) {
3063
3063
  return t.codePointAt(r);
@@ -3071,7 +3071,7 @@ var gt = Un ? (
3071
3071
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3072
3072
  }
3073
3073
  }
3074
- ), Zn = kn ? (
3074
+ ), Jn = Xn ? (
3075
3075
  // Native
3076
3076
  function(t) {
3077
3077
  return t.trimStart();
@@ -3079,9 +3079,9 @@ var gt = Un ? (
3079
3079
  ) : (
3080
3080
  // Ponyfill
3081
3081
  function(t) {
3082
- return t.replace($n, "");
3082
+ return t.replace(Un, "");
3083
3083
  }
3084
- ), Qn = Vn ? (
3084
+ ), Yn = zn ? (
3085
3085
  // Native
3086
3086
  function(t) {
3087
3087
  return t.trimEnd();
@@ -3089,32 +3089,32 @@ var gt = Un ? (
3089
3089
  ) : (
3090
3090
  // Ponyfill
3091
3091
  function(t) {
3092
- return t.replace(Fn, "");
3092
+ return t.replace(Dn, "");
3093
3093
  }
3094
3094
  );
3095
- function sr(e, t) {
3095
+ function ur(e, t) {
3096
3096
  return new RegExp(e, t);
3097
3097
  }
3098
- var We;
3099
- if (Xe) {
3100
- var vt = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3101
- We = function(t, r) {
3098
+ var Qe;
3099
+ if (We) {
3100
+ var Et = ur("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3101
+ Qe = function(t, r) {
3102
3102
  var n;
3103
- vt.lastIndex = r;
3104
- var i = vt.exec(t);
3103
+ Et.lastIndex = r;
3104
+ var i = Et.exec(t);
3105
3105
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3106
3106
  };
3107
3107
  } else
3108
- We = function(t, r) {
3108
+ Qe = function(t, r) {
3109
3109
  for (var n = []; ; ) {
3110
- var i = or(t, r);
3111
- if (i === void 0 || ar(i) || Kn(i))
3110
+ var i = ar(t, r);
3111
+ if (i === void 0 || lr(i) || ti(i))
3112
3112
  break;
3113
3113
  n.push(i), r += i >= 65536 ? 2 : 1;
3114
3114
  }
3115
- return ze.apply(void 0, n);
3115
+ return Ze.apply(void 0, n);
3116
3116
  };
3117
- var Jn = (
3117
+ var qn = (
3118
3118
  /** @class */
3119
3119
  function() {
3120
3120
  function e(t, r) {
@@ -3145,7 +3145,7 @@ var Jn = (
3145
3145
  if (n)
3146
3146
  break;
3147
3147
  return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
3148
- } else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
3148
+ } else if (o === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
3149
3149
  var s = this.parseTag(t, r);
3150
3150
  if (s.err)
3151
3151
  return s;
@@ -3178,7 +3178,7 @@ var Jn = (
3178
3178
  return o;
3179
3179
  var s = o.val, a = this.clonePosition();
3180
3180
  if (this.bumpIf("</")) {
3181
- if (this.isEOF() || !Ze(this.char()))
3181
+ if (this.isEOF() || !Je(this.char()))
3182
3182
  return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
3183
3183
  var h = this.clonePosition(), u = this.parseTagName();
3184
3184
  return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -3196,7 +3196,7 @@ var Jn = (
3196
3196
  return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
3197
3197
  }, e.prototype.parseTagName = function() {
3198
3198
  var t = this.offset();
3199
- for (this.bump(); !this.isEOF() && qn(this.char()); )
3199
+ for (this.bump(); !this.isEOF() && ei(this.char()); )
3200
3200
  this.bump();
3201
3201
  return this.message.slice(t, this.offset());
3202
3202
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3225,7 +3225,7 @@ var Jn = (
3225
3225
  };
3226
3226
  }, e.prototype.tryParseLeftAngleBracket = function() {
3227
3227
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3228
- !Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
3228
+ !Kn(this.peek() || 0)) ? (this.bump(), "<") : null;
3229
3229
  }, e.prototype.tryParseQuote = function(t) {
3230
3230
  if (this.isEOF() || this.char() !== 39)
3231
3231
  return null;
@@ -3259,12 +3259,12 @@ var Jn = (
3259
3259
  r.push(n);
3260
3260
  this.bump();
3261
3261
  }
3262
- return ze.apply(void 0, r);
3262
+ return Ze.apply(void 0, r);
3263
3263
  }, e.prototype.tryParseUnquoted = function(t, r) {
3264
3264
  if (this.isEOF())
3265
3265
  return null;
3266
3266
  var n = this.char();
3267
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
3267
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
3268
3268
  }, e.prototype.parseArgument = function(t, r) {
3269
3269
  var n = this.clonePosition();
3270
3270
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3293,7 +3293,7 @@ var Jn = (
3293
3293
  return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3294
3294
  }
3295
3295
  }, e.prototype.parseIdentifierIfPossible = function() {
3296
- var t = this.clonePosition(), r = this.offset(), n = We(this.message, r), i = r + n.length;
3296
+ var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
3297
3297
  this.bumpTo(i);
3298
3298
  var o = this.clonePosition(), s = g(t, o);
3299
3299
  return { value: n, location: s };
@@ -3312,37 +3312,37 @@ var Jn = (
3312
3312
  var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3313
3313
  if (c.err)
3314
3314
  return c;
3315
- var f = Qn(c.val);
3315
+ var f = Yn(c.val);
3316
3316
  if (f.length === 0)
3317
3317
  return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
3318
- var p = g(l, this.clonePosition());
3319
- u = { style: f, styleLocation: p };
3318
+ var d = g(l, this.clonePosition());
3319
+ u = { style: f, styleLocation: d };
3320
3320
  }
3321
- var m = this.tryParseArgumentClose(i);
3322
- if (m.err)
3323
- return m;
3324
- var d = g(i, this.clonePosition());
3325
- if (u && gt(u?.style, "::", 0)) {
3326
- var v = Zn(u.style.slice(2));
3321
+ var p = this.tryParseArgumentClose(i);
3322
+ if (p.err)
3323
+ return p;
3324
+ var m = g(i, this.clonePosition());
3325
+ if (u && vt(u?.style, "::", 0)) {
3326
+ var v = Jn(u.style.slice(2));
3327
3327
  if (a === "number") {
3328
3328
  var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
3329
3329
  return c.err ? c : {
3330
- val: { type: _.number, value: n, location: d, style: c.val },
3330
+ val: { type: _.number, value: n, location: m, style: c.val },
3331
3331
  err: null
3332
3332
  };
3333
3333
  } else {
3334
3334
  if (v.length === 0)
3335
- return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
3336
- var E = v;
3337
- this.locale && (E = Ln(v, this.locale));
3335
+ return this.error(b.EXPECT_DATE_TIME_SKELETON, m);
3336
+ var x = v;
3337
+ this.locale && (x = $n(v, this.locale));
3338
3338
  var f = {
3339
- type: Q.dateTime,
3340
- pattern: E,
3339
+ type: Y.dateTime,
3340
+ pattern: x,
3341
3341
  location: u.styleLocation,
3342
- parsedOptions: this.shouldParseSkeletons ? Bn(E) : {}
3343
- }, C = a === "date" ? _.date : _.time;
3342
+ parsedOptions: this.shouldParseSkeletons ? Pn(x) : {}
3343
+ }, P = a === "date" ? _.date : _.time;
3344
3344
  return {
3345
- val: { type: C, value: n, location: d, style: f },
3345
+ val: { type: P, value: n, location: m, style: f },
3346
3346
  err: null
3347
3347
  };
3348
3348
  }
@@ -3351,7 +3351,7 @@ var Jn = (
3351
3351
  val: {
3352
3352
  type: a === "number" ? _.number : a === "date" ? _.date : _.time,
3353
3353
  value: n,
3354
- location: d,
3354
+ location: m,
3355
3355
  style: (o = u?.style) !== null && o !== void 0 ? o : null
3356
3356
  },
3357
3357
  err: null
@@ -3360,43 +3360,43 @@ var Jn = (
3360
3360
  case "plural":
3361
3361
  case "selectordinal":
3362
3362
  case "select": {
3363
- var T = this.clonePosition();
3363
+ var w = this.clonePosition();
3364
3364
  if (this.bumpSpace(), !this.bumpIf(","))
3365
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(T, ge({}, T)));
3365
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(w, ve({}, w)));
3366
3366
  this.bumpSpace();
3367
- var H = this.parseIdentifierIfPossible(), M = 0;
3368
- if (a !== "select" && H.value === "offset") {
3367
+ var T = this.parseIdentifierIfPossible(), M = 0;
3368
+ if (a !== "select" && T.value === "offset") {
3369
3369
  if (!this.bumpIf(":"))
3370
3370
  return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
3371
3371
  this.bumpSpace();
3372
3372
  var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3373
3373
  if (c.err)
3374
3374
  return c;
3375
- this.bumpSpace(), H = this.parseIdentifierIfPossible(), M = c.val;
3375
+ this.bumpSpace(), T = this.parseIdentifierIfPossible(), M = c.val;
3376
3376
  }
3377
- var y = this.tryParsePluralOrSelectOptions(t, a, r, H);
3378
- if (y.err)
3379
- return y;
3380
- var m = this.tryParseArgumentClose(i);
3381
- if (m.err)
3382
- return m;
3383
- var w = g(i, this.clonePosition());
3377
+ var k = this.tryParsePluralOrSelectOptions(t, a, r, T);
3378
+ if (k.err)
3379
+ return k;
3380
+ var p = this.tryParseArgumentClose(i);
3381
+ if (p.err)
3382
+ return p;
3383
+ var y = g(i, this.clonePosition());
3384
3384
  return a === "select" ? {
3385
3385
  val: {
3386
3386
  type: _.select,
3387
3387
  value: n,
3388
- options: yt(y.val),
3389
- location: w
3388
+ options: _t(k.val),
3389
+ location: y
3390
3390
  },
3391
3391
  err: null
3392
3392
  } : {
3393
3393
  val: {
3394
3394
  type: _.plural,
3395
3395
  value: n,
3396
- options: yt(y.val),
3396
+ options: _t(k.val),
3397
3397
  offset: M,
3398
3398
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3399
- location: w
3399
+ location: y
3400
3400
  },
3401
3401
  err: null
3402
3402
  };
@@ -3444,16 +3444,16 @@ var Jn = (
3444
3444
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3445
3445
  var n = [];
3446
3446
  try {
3447
- n = Pn(t);
3447
+ n = In(t);
3448
3448
  } catch {
3449
3449
  return this.error(b.INVALID_NUMBER_SKELETON, r);
3450
3450
  }
3451
3451
  return {
3452
3452
  val: {
3453
- type: Q.number,
3453
+ type: Y.number,
3454
3454
  tokens: n,
3455
3455
  location: r,
3456
- parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
3456
+ parsedOptions: this.shouldParseSkeletons ? Rn(n) : {}
3457
3457
  },
3458
3458
  err: null
3459
3459
  };
@@ -3472,20 +3472,20 @@ var Jn = (
3472
3472
  if (h.has(u))
3473
3473
  return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3474
3474
  u === "other" && (s = !0), this.bumpSpace();
3475
- var p = this.clonePosition();
3475
+ var d = this.clonePosition();
3476
3476
  if (!this.bumpIf("{"))
3477
3477
  return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
3478
- var m = this.parseMessage(t + 1, r, n);
3478
+ var p = this.parseMessage(t + 1, r, n);
3479
+ if (p.err)
3480
+ return p;
3481
+ var m = this.tryParseArgumentClose(d);
3479
3482
  if (m.err)
3480
3483
  return m;
3481
- var d = this.tryParseArgumentClose(p);
3482
- if (d.err)
3483
- return d;
3484
3484
  a.push([
3485
3485
  u,
3486
3486
  {
3487
- value: m.val,
3488
- location: g(p, this.clonePosition())
3487
+ value: p.val,
3488
+ location: g(d, this.clonePosition())
3489
3489
  }
3490
3490
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3491
3491
  }
@@ -3501,7 +3501,7 @@ var Jn = (
3501
3501
  break;
3502
3502
  }
3503
3503
  var h = g(i, this.clonePosition());
3504
- return o ? (s *= n, zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3504
+ return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3505
3505
  }, e.prototype.offset = function() {
3506
3506
  return this.position.offset;
3507
3507
  }, e.prototype.isEOF = function() {
@@ -3516,7 +3516,7 @@ var Jn = (
3516
3516
  var t = this.position.offset;
3517
3517
  if (t >= this.message.length)
3518
3518
  throw Error("out of bound");
3519
- var r = or(this.message, t);
3519
+ var r = ar(this.message, t);
3520
3520
  if (r === void 0)
3521
3521
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3522
3522
  return r;
@@ -3535,7 +3535,7 @@ var Jn = (
3535
3535
  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);
3536
3536
  }
3537
3537
  }, e.prototype.bumpIf = function(t) {
3538
- if (gt(this.message, t, this.offset())) {
3538
+ if (vt(this.message, t, this.offset())) {
3539
3539
  for (var r = 0; r < t.length; r++)
3540
3540
  this.bump();
3541
3541
  return !0;
@@ -3557,7 +3557,7 @@ var Jn = (
3557
3557
  break;
3558
3558
  }
3559
3559
  }, e.prototype.bumpSpace = function() {
3560
- for (; !this.isEOF() && ar(this.char()); )
3560
+ for (; !this.isEOF() && lr(this.char()); )
3561
3561
  this.bump();
3562
3562
  }, e.prototype.peek = function() {
3563
3563
  if (this.isEOF())
@@ -3567,47 +3567,47 @@ var Jn = (
3567
3567
  }, e;
3568
3568
  }()
3569
3569
  );
3570
- function Ze(e) {
3570
+ function Je(e) {
3571
3571
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3572
3572
  }
3573
- function Yn(e) {
3574
- return Ze(e) || e === 47;
3573
+ function Kn(e) {
3574
+ return Je(e) || e === 47;
3575
3575
  }
3576
- function qn(e) {
3576
+ function ei(e) {
3577
3577
  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;
3578
3578
  }
3579
- function ar(e) {
3579
+ function lr(e) {
3580
3580
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3581
3581
  }
3582
- function Kn(e) {
3582
+ function ti(e) {
3583
3583
  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;
3584
3584
  }
3585
- function Qe(e) {
3585
+ function Ye(e) {
3586
3586
  e.forEach(function(t) {
3587
- if (delete t.location, Yt(t) || qt(t))
3587
+ if (delete t.location, Kt(t) || er(t))
3588
3588
  for (var r in t.options)
3589
- delete t.options[r].location, Qe(t.options[r].value);
3589
+ delete t.options[r].location, Ye(t.options[r].value);
3590
3590
  else
3591
- Zt(t) && er(t.style) || (Qt(t) || Jt(t)) && Ve(t.style) ? delete t.style.location : Kt(t) && Qe(t.children);
3591
+ Jt(t) && rr(t.style) || (Yt(t) || qt(t)) && ze(t.style) ? delete t.style.location : tr(t) && Ye(t.children);
3592
3592
  });
3593
3593
  }
3594
- function ei(e, t) {
3595
- t === void 0 && (t = {}), t = ge({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3596
- var r = new Jn(e, t).parse();
3594
+ function ri(e, t) {
3595
+ t === void 0 && (t = {}), t = ve({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3596
+ var r = new qn(e, t).parse();
3597
3597
  if (r.err) {
3598
3598
  var n = SyntaxError(b[r.err.kind]);
3599
3599
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3600
3600
  }
3601
- return t?.captureLocation || Qe(r.val), r.val;
3601
+ return t?.captureLocation || Ye(r.val), r.val;
3602
3602
  }
3603
- var J;
3603
+ var q;
3604
3604
  (function(e) {
3605
3605
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3606
- })(J || (J = {}));
3607
- var Se = (
3606
+ })(q || (q = {}));
3607
+ var Te = (
3608
3608
  /** @class */
3609
3609
  function(e) {
3610
- xe(t, e);
3610
+ we(t, e);
3611
3611
  function t(r, n, i) {
3612
3612
  var o = e.call(this, r) || this;
3613
3613
  return o.code = n, o.originalMessage = i, o;
@@ -3616,48 +3616,48 @@ var Se = (
3616
3616
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3617
3617
  }, t;
3618
3618
  }(Error)
3619
- ), _t = (
3619
+ ), xt = (
3620
3620
  /** @class */
3621
3621
  function(e) {
3622
- xe(t, e);
3622
+ we(t, e);
3623
3623
  function t(r, n, i, o) {
3624
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, o) || this;
3624
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
3625
3625
  }
3626
3626
  return t;
3627
- }(Se)
3628
- ), ti = (
3627
+ }(Te)
3628
+ ), ni = (
3629
3629
  /** @class */
3630
3630
  function(e) {
3631
- xe(t, e);
3631
+ we(t, e);
3632
3632
  function t(r, n, i) {
3633
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
3633
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
3634
3634
  }
3635
3635
  return t;
3636
- }(Se)
3637
- ), ri = (
3636
+ }(Te)
3637
+ ), ii = (
3638
3638
  /** @class */
3639
3639
  function(e) {
3640
- xe(t, e);
3640
+ we(t, e);
3641
3641
  function t(r, n) {
3642
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
3642
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
3643
3643
  }
3644
3644
  return t;
3645
- }(Se)
3645
+ }(Te)
3646
3646
  ), A;
3647
3647
  (function(e) {
3648
3648
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3649
3649
  })(A || (A = {}));
3650
- function ni(e) {
3650
+ function oi(e) {
3651
3651
  return e.length < 2 ? e : e.reduce(function(t, r) {
3652
3652
  var n = t[t.length - 1];
3653
3653
  return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
3654
3654
  }, []);
3655
3655
  }
3656
- function ii(e) {
3656
+ function si(e) {
3657
3657
  return typeof e == "function";
3658
3658
  }
3659
- function de(e, t, r, n, i, o, s) {
3660
- if (e.length === 1 && pt(e[0]))
3659
+ function ge(e, t, r, n, i, o, s) {
3660
+ if (e.length === 1 && mt(e[0]))
3661
3661
  return [
3662
3662
  {
3663
3663
  type: A.literal,
@@ -3666,14 +3666,14 @@ function de(e, t, r, n, i, o, s) {
3666
3666
  ];
3667
3667
  for (var a = [], h = 0, u = e; h < u.length; h++) {
3668
3668
  var l = u[h];
3669
- if (pt(l)) {
3669
+ if (mt(l)) {
3670
3670
  a.push({
3671
3671
  type: A.literal,
3672
3672
  value: l.value
3673
3673
  });
3674
3674
  continue;
3675
3675
  }
3676
- if (Hn(l)) {
3676
+ if (Bn(l)) {
3677
3677
  typeof o == "number" && a.push({
3678
3678
  type: A.literal,
3679
3679
  value: r.getNumberFormat(t).format(o)
@@ -3682,89 +3682,89 @@ function de(e, t, r, n, i, o, s) {
3682
3682
  }
3683
3683
  var c = l.value;
3684
3684
  if (!(i && c in i))
3685
- throw new ri(c, s);
3685
+ throw new ii(c, s);
3686
3686
  var f = i[c];
3687
- if (wn(l)) {
3687
+ if (An(l)) {
3688
3688
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3689
3689
  type: typeof f == "string" ? A.literal : A.object,
3690
3690
  value: f
3691
3691
  });
3692
3692
  continue;
3693
3693
  }
3694
- if (Qt(l)) {
3695
- var p = typeof l.style == "string" ? n.date[l.style] : Ve(l.style) ? l.style.parsedOptions : void 0;
3694
+ if (Yt(l)) {
3695
+ var d = typeof l.style == "string" ? n.date[l.style] : ze(l.style) ? l.style.parsedOptions : void 0;
3696
3696
  a.push({
3697
3697
  type: A.literal,
3698
- value: r.getDateTimeFormat(t, p).format(f)
3698
+ value: r.getDateTimeFormat(t, d).format(f)
3699
3699
  });
3700
3700
  continue;
3701
3701
  }
3702
- if (Jt(l)) {
3703
- var p = typeof l.style == "string" ? n.time[l.style] : Ve(l.style) ? l.style.parsedOptions : n.time.medium;
3702
+ if (qt(l)) {
3703
+ var d = typeof l.style == "string" ? n.time[l.style] : ze(l.style) ? l.style.parsedOptions : n.time.medium;
3704
3704
  a.push({
3705
3705
  type: A.literal,
3706
- value: r.getDateTimeFormat(t, p).format(f)
3706
+ value: r.getDateTimeFormat(t, d).format(f)
3707
3707
  });
3708
3708
  continue;
3709
3709
  }
3710
- if (Zt(l)) {
3711
- var p = typeof l.style == "string" ? n.number[l.style] : er(l.style) ? l.style.parsedOptions : void 0;
3712
- p && p.scale && (f = f * (p.scale || 1)), a.push({
3710
+ if (Jt(l)) {
3711
+ var d = typeof l.style == "string" ? n.number[l.style] : rr(l.style) ? l.style.parsedOptions : void 0;
3712
+ d && d.scale && (f = f * (d.scale || 1)), a.push({
3713
3713
  type: A.literal,
3714
- value: r.getNumberFormat(t, p).format(f)
3714
+ value: r.getNumberFormat(t, d).format(f)
3715
3715
  });
3716
3716
  continue;
3717
3717
  }
3718
- if (Kt(l)) {
3719
- var m = l.children, d = l.value, v = i[d];
3720
- if (!ii(v))
3721
- throw new ti(d, "function", s);
3722
- var E = de(m, t, r, n, i, o), C = v(E.map(function(M) {
3718
+ if (tr(l)) {
3719
+ var p = l.children, m = l.value, v = i[m];
3720
+ if (!si(v))
3721
+ throw new ni(m, "function", s);
3722
+ var x = ge(p, t, r, n, i, o), P = v(x.map(function(M) {
3723
3723
  return M.value;
3724
3724
  }));
3725
- Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(M) {
3725
+ Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(M) {
3726
3726
  return {
3727
3727
  type: typeof M == "string" ? A.literal : A.object,
3728
3728
  value: M
3729
3729
  };
3730
3730
  }));
3731
3731
  }
3732
- if (Yt(l)) {
3733
- var T = l.options[f] || l.options.other;
3734
- if (!T)
3735
- throw new _t(l.value, f, Object.keys(l.options), s);
3736
- a.push.apply(a, de(T.value, t, r, n, i));
3732
+ if (Kt(l)) {
3733
+ var w = l.options[f] || l.options.other;
3734
+ if (!w)
3735
+ throw new xt(l.value, f, Object.keys(l.options), s);
3736
+ a.push.apply(a, ge(w.value, t, r, n, i));
3737
3737
  continue;
3738
3738
  }
3739
- if (qt(l)) {
3740
- var T = l.options["=".concat(f)];
3741
- if (!T) {
3739
+ if (er(l)) {
3740
+ var w = l.options["=".concat(f)];
3741
+ if (!w) {
3742
3742
  if (!Intl.PluralRules)
3743
- throw new Se(`Intl.PluralRules is not available in this environment.
3743
+ throw new Te(`Intl.PluralRules is not available in this environment.
3744
3744
  Try polyfilling it using "@formatjs/intl-pluralrules"
3745
- `, J.MISSING_INTL_API, s);
3746
- var H = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3747
- T = l.options[H] || l.options.other;
3745
+ `, q.MISSING_INTL_API, s);
3746
+ var T = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3747
+ w = l.options[T] || l.options.other;
3748
3748
  }
3749
- if (!T)
3750
- throw new _t(l.value, f, Object.keys(l.options), s);
3751
- a.push.apply(a, de(T.value, t, r, n, i, f - (l.offset || 0)));
3749
+ if (!w)
3750
+ throw new xt(l.value, f, Object.keys(l.options), s);
3751
+ a.push.apply(a, ge(w.value, t, r, n, i, f - (l.offset || 0)));
3752
3752
  continue;
3753
3753
  }
3754
3754
  }
3755
- return ni(a);
3755
+ return oi(a);
3756
3756
  }
3757
- function oi(e, t) {
3757
+ function ai(e, t) {
3758
3758
  return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3759
3759
  return r[n] = I(I({}, e[n]), t[n] || {}), r;
3760
3760
  }, {})) : e;
3761
3761
  }
3762
- function si(e, t) {
3762
+ function ui(e, t) {
3763
3763
  return t ? Object.keys(e).reduce(function(r, n) {
3764
- return r[n] = oi(e[n], t[n]), r;
3764
+ return r[n] = ai(e[n], t[n]), r;
3765
3765
  }, I({}, e)) : e;
3766
3766
  }
3767
- function Ie(e) {
3767
+ function Me(e) {
3768
3768
  return {
3769
3769
  create: function() {
3770
3770
  return {
@@ -3778,39 +3778,39 @@ function Ie(e) {
3778
3778
  }
3779
3779
  };
3780
3780
  }
3781
- function ai(e) {
3781
+ function li(e) {
3782
3782
  return e === void 0 && (e = {
3783
3783
  number: {},
3784
3784
  dateTime: {},
3785
3785
  pluralRules: {}
3786
3786
  }), {
3787
- getNumberFormat: Oe(function() {
3787
+ getNumberFormat: Ce(function() {
3788
3788
  for (var t, r = [], n = 0; n < arguments.length; n++)
3789
3789
  r[n] = arguments[n];
3790
- return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
3790
+ return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
3791
3791
  }, {
3792
- cache: Ie(e.number),
3793
- strategy: Pe.variadic
3792
+ cache: Me(e.number),
3793
+ strategy: Ie.variadic
3794
3794
  }),
3795
- getDateTimeFormat: Oe(function() {
3795
+ getDateTimeFormat: Ce(function() {
3796
3796
  for (var t, r = [], n = 0; n < arguments.length; n++)
3797
3797
  r[n] = arguments[n];
3798
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
3798
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
3799
3799
  }, {
3800
- cache: Ie(e.dateTime),
3801
- strategy: Pe.variadic
3800
+ cache: Me(e.dateTime),
3801
+ strategy: Ie.variadic
3802
3802
  }),
3803
- getPluralRules: Oe(function() {
3803
+ getPluralRules: Ce(function() {
3804
3804
  for (var t, r = [], n = 0; n < arguments.length; n++)
3805
3805
  r[n] = arguments[n];
3806
- return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
3806
+ return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
3807
3807
  }, {
3808
- cache: Ie(e.pluralRules),
3809
- strategy: Pe.variadic
3808
+ cache: Me(e.pluralRules),
3809
+ strategy: Ie.variadic
3810
3810
  })
3811
3811
  };
3812
3812
  }
3813
- var ui = (
3813
+ var hi = (
3814
3814
  /** @class */
3815
3815
  function() {
3816
3816
  function e(t, r, n, i) {
@@ -3829,7 +3829,7 @@ var ui = (
3829
3829
  }, []);
3830
3830
  return l.length <= 1 ? l[0] || "" : l;
3831
3831
  }, this.formatToParts = function(h) {
3832
- return de(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3832
+ return ge(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3833
3833
  }, this.resolvedOptions = function() {
3834
3834
  var h;
3835
3835
  return {
@@ -3842,13 +3842,13 @@ var ui = (
3842
3842
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3843
3843
  var s = i || {};
3844
3844
  s.formatters;
3845
- var a = gn(s, ["formatters"]);
3845
+ var a = vn(s, ["formatters"]);
3846
3846
  this.ast = e.__parse(t, I(I({}, a), { locale: this.resolvedLocale }));
3847
3847
  } else
3848
3848
  this.ast = t;
3849
3849
  if (!Array.isArray(this.ast))
3850
3850
  throw new TypeError("A message must be provided as a String or AST.");
3851
- this.formats = si(e.formats, n), this.formatters = i && i.formatters || ai(this.formatterCache);
3851
+ this.formats = ui(e.formats, n), this.formatters = i && i.formatters || li(this.formatterCache);
3852
3852
  }
3853
3853
  return Object.defineProperty(e, "defaultLocale", {
3854
3854
  get: function() {
@@ -3861,7 +3861,7 @@ var ui = (
3861
3861
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3862
3862
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3863
3863
  }
3864
- }, e.__parse = ei, e.formats = {
3864
+ }, e.__parse = ri, e.formats = {
3865
3865
  number: {
3866
3866
  integer: {
3867
3867
  maximumFractionDigits: 0
@@ -3922,7 +3922,7 @@ var ui = (
3922
3922
  }, e;
3923
3923
  }()
3924
3924
  );
3925
- function li(e, t) {
3925
+ function fi(e, t) {
3926
3926
  if (t == null)
3927
3927
  return;
3928
3928
  if (t in e)
@@ -3943,92 +3943,92 @@ function li(e, t) {
3943
3943
  n = void 0;
3944
3944
  return n;
3945
3945
  }
3946
- const D = {}, hi = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), ur = (e, t) => {
3946
+ const D = {}, ci = (e, t, r) => r && (t in D || (D[t] = {}), e in D[t] || (D[t][e] = r), r), hr = (e, t) => {
3947
3947
  if (t == null)
3948
3948
  return;
3949
3949
  if (t in D && e in D[t])
3950
3950
  return D[t][e];
3951
- const r = Te(t);
3951
+ const r = He(t);
3952
3952
  for (let n = 0; n < r.length; n++) {
3953
- const i = r[n], o = ci(i, e);
3953
+ const i = r[n], o = di(i, e);
3954
3954
  if (o)
3955
- return hi(e, t, o);
3955
+ return ci(e, t, o);
3956
3956
  }
3957
3957
  };
3958
- let Ke;
3959
- const ue = Ee({});
3960
- function fi(e) {
3961
- return Ke[e] || null;
3958
+ let tt;
3959
+ const he = Se({});
3960
+ function pi(e) {
3961
+ return tt[e] || null;
3962
3962
  }
3963
- function lr(e) {
3964
- return e in Ke;
3963
+ function fr(e) {
3964
+ return e in tt;
3965
3965
  }
3966
- function ci(e, t) {
3967
- if (!lr(e))
3966
+ function di(e, t) {
3967
+ if (!fr(e))
3968
3968
  return null;
3969
- const r = fi(e);
3970
- return li(r, t);
3969
+ const r = pi(e);
3970
+ return fi(r, t);
3971
3971
  }
3972
- function pi(e) {
3972
+ function mi(e) {
3973
3973
  if (e == null)
3974
3974
  return;
3975
- const t = Te(e);
3975
+ const t = He(e);
3976
3976
  for (let r = 0; r < t.length; r++) {
3977
3977
  const n = t[r];
3978
- if (lr(n))
3978
+ if (fr(n))
3979
3979
  return n;
3980
3980
  }
3981
3981
  }
3982
- function hr(e, ...t) {
3983
- delete D[e], ue.update((r) => (r[e] = bn.all([r[e] || {}, ...t]), r));
3982
+ function cr(e, ...t) {
3983
+ delete D[e], he.update((r) => (r[e] = yn.all([r[e] || {}, ...t]), r));
3984
3984
  }
3985
- q(
3986
- [ue],
3985
+ ee(
3986
+ [he],
3987
3987
  ([e]) => Object.keys(e)
3988
3988
  );
3989
- ue.subscribe((e) => Ke = e);
3990
- const be = {};
3991
- function mi(e, t) {
3992
- be[e].delete(t), be[e].size === 0 && delete be[e];
3989
+ he.subscribe((e) => tt = e);
3990
+ const ye = {};
3991
+ function bi(e, t) {
3992
+ ye[e].delete(t), ye[e].size === 0 && delete ye[e];
3993
3993
  }
3994
- function fr(e) {
3995
- return be[e];
3994
+ function pr(e) {
3995
+ return ye[e];
3996
3996
  }
3997
- function di(e) {
3998
- return Te(e).map((t) => {
3999
- const r = fr(t);
3997
+ function gi(e) {
3998
+ return He(e).map((t) => {
3999
+ const r = pr(t);
4000
4000
  return [t, r ? [...r] : []];
4001
4001
  }).filter(([, t]) => t.length > 0);
4002
4002
  }
4003
- function Je(e) {
4004
- return e == null ? !1 : Te(e).some(
4003
+ function qe(e) {
4004
+ return e == null ? !1 : He(e).some(
4005
4005
  (t) => {
4006
4006
  var r;
4007
- return (r = fr(t)) == null ? void 0 : r.size;
4007
+ return (r = pr(t)) == null ? void 0 : r.size;
4008
4008
  }
4009
4009
  );
4010
4010
  }
4011
- function bi(e, t) {
4011
+ function yi(e, t) {
4012
4012
  return Promise.all(
4013
- t.map((n) => (mi(e, n), n().then((i) => i.default || i)))
4014
- ).then((n) => hr(e, ...n));
4015
- }
4016
- const ee = {};
4017
- function cr(e) {
4018
- if (!Je(e))
4019
- return e in ee ? ee[e] : Promise.resolve();
4020
- const t = di(e);
4021
- return ee[e] = Promise.all(
4013
+ t.map((n) => (bi(e, n), n().then((i) => i.default || i)))
4014
+ ).then((n) => cr(e, ...n));
4015
+ }
4016
+ const re = {};
4017
+ function dr(e) {
4018
+ if (!qe(e))
4019
+ return e in re ? re[e] : Promise.resolve();
4020
+ const t = gi(e);
4021
+ return re[e] = Promise.all(
4022
4022
  t.map(
4023
- ([r, n]) => bi(r, n)
4023
+ ([r, n]) => yi(r, n)
4024
4024
  )
4025
4025
  ).then(() => {
4026
- if (Je(e))
4027
- return cr(e);
4028
- delete ee[e];
4029
- }), ee[e];
4026
+ if (qe(e))
4027
+ return dr(e);
4028
+ delete re[e];
4029
+ }), re[e];
4030
4030
  }
4031
- const gi = {
4031
+ const vi = {
4032
4032
  number: {
4033
4033
  scientific: { notation: "scientific" },
4034
4034
  engineering: { notation: "engineering" },
@@ -4057,135 +4057,135 @@ const gi = {
4057
4057
  timeZoneName: "short"
4058
4058
  }
4059
4059
  }
4060
- }, yi = {
4060
+ }, _i = {
4061
4061
  fallbackLocale: null,
4062
4062
  loadingDelay: 200,
4063
- formats: gi,
4063
+ formats: vi,
4064
4064
  warnOnMissingMessages: !0,
4065
4065
  handleMissingMessage: void 0,
4066
4066
  ignoreTag: !0
4067
- }, vi = yi;
4068
- function Y() {
4069
- return vi;
4067
+ }, Ei = _i;
4068
+ function K() {
4069
+ return Ei;
4070
4070
  }
4071
- const Ne = Ee(!1);
4072
- var _i = Object.defineProperty, Ei = Object.defineProperties, xi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wi = (e, t) => {
4071
+ const Le = Se(!1);
4072
+ var xi = Object.defineProperty, Si = Object.defineProperties, wi = Object.getOwnPropertyDescriptors, St = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ai = (e, t) => {
4073
4073
  for (var r in t || (t = {}))
4074
- Si.call(t, r) && xt(e, r, t[r]);
4075
- if (Et)
4076
- for (var r of Et(t))
4077
- Ti.call(t, r) && xt(e, r, t[r]);
4074
+ Ti.call(t, r) && wt(e, r, t[r]);
4075
+ if (St)
4076
+ for (var r of St(t))
4077
+ Hi.call(t, r) && wt(e, r, t[r]);
4078
4078
  return e;
4079
- }, Hi = (e, t) => Ei(e, xi(t));
4080
- let Ye;
4081
- const ye = Ee(null);
4082
- function St(e) {
4079
+ }, Bi = (e, t) => Si(e, wi(t));
4080
+ let Ke;
4081
+ const _e = Se(null);
4082
+ function Tt(e) {
4083
4083
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4084
4084
  }
4085
- function Te(e, t = Y().fallbackLocale) {
4086
- const r = St(e);
4087
- return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
4085
+ function He(e, t = K().fallbackLocale) {
4086
+ const r = Tt(e);
4087
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
4088
4088
  }
4089
4089
  function j() {
4090
- return Ye ?? void 0;
4090
+ return Ke ?? void 0;
4091
4091
  }
4092
- ye.subscribe((e) => {
4093
- Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4092
+ _e.subscribe((e) => {
4093
+ Ke = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4094
4094
  });
4095
- const Ai = (e) => {
4096
- if (e && pi(e) && Je(e)) {
4097
- const { loadingDelay: t } = Y();
4095
+ const Oi = (e) => {
4096
+ if (e && mi(e) && qe(e)) {
4097
+ const { loadingDelay: t } = K();
4098
4098
  let r;
4099
4099
  return typeof window < "u" && j() != null && t ? r = window.setTimeout(
4100
- () => Ne.set(!0),
4100
+ () => Le.set(!0),
4101
4101
  t
4102
- ) : Ne.set(!0), cr(e).then(() => {
4103
- ye.set(e);
4102
+ ) : Le.set(!0), dr(e).then(() => {
4103
+ _e.set(e);
4104
4104
  }).finally(() => {
4105
- clearTimeout(r), Ne.set(!1);
4105
+ clearTimeout(r), Le.set(!1);
4106
4106
  });
4107
4107
  }
4108
- return ye.set(e);
4109
- }, le = Hi(wi({}, ye), {
4110
- set: Ai
4111
- }), we = (e) => {
4108
+ return _e.set(e);
4109
+ }, fe = Bi(Ai({}, _e), {
4110
+ set: Oi
4111
+ }), Ae = (e) => {
4112
4112
  const t = /* @__PURE__ */ Object.create(null);
4113
4113
  return (n) => {
4114
4114
  const i = JSON.stringify(n);
4115
4115
  return i in t ? t[i] : t[i] = e(n);
4116
4116
  };
4117
4117
  };
4118
- var Bi = Object.defineProperty, ve = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
4118
+ var Pi = Object.defineProperty, Ee = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
4119
4119
  for (var r in t || (t = {}))
4120
- pr.call(t, r) && Tt(e, r, t[r]);
4121
- if (ve)
4122
- for (var r of ve(t))
4123
- mr.call(t, r) && Tt(e, r, t[r]);
4120
+ mr.call(t, r) && Ht(e, r, t[r]);
4121
+ if (Ee)
4122
+ for (var r of Ee(t))
4123
+ br.call(t, r) && Ht(e, r, t[r]);
4124
4124
  return e;
4125
- }, K = (e, t) => {
4125
+ }, te = (e, t) => {
4126
4126
  var r = {};
4127
4127
  for (var n in e)
4128
- pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4129
- if (e != null && ve)
4130
- for (var n of ve(e))
4131
- t.indexOf(n) < 0 && mr.call(e, n) && (r[n] = e[n]);
4128
+ mr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4129
+ if (e != null && Ee)
4130
+ for (var n of Ee(e))
4131
+ t.indexOf(n) < 0 && br.call(e, n) && (r[n] = e[n]);
4132
4132
  return r;
4133
4133
  };
4134
- const ie = (e, t) => {
4135
- const { formats: r } = Y();
4134
+ const se = (e, t) => {
4135
+ const { formats: r } = K();
4136
4136
  if (e in r && t in r[e])
4137
4137
  return r[e][t];
4138
4138
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4139
- }, Oi = we(
4139
+ }, Ci = Ae(
4140
4140
  (e) => {
4141
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4141
+ var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
4142
4142
  if (r == null)
4143
4143
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4144
- return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
4144
+ return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
4145
4145
  }
4146
- ), Pi = we(
4146
+ ), Ii = Ae(
4147
4147
  (e) => {
4148
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4148
+ var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
4149
4149
  if (r == null)
4150
4150
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4151
- return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
4151
+ return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
4152
4152
  }
4153
- ), Ci = we(
4153
+ ), Ni = Ae(
4154
4154
  (e) => {
4155
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4155
+ var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
4156
4156
  if (r == null)
4157
4157
  throw new Error(
4158
4158
  '[svelte-i18n] A "locale" must be set to format time values'
4159
4159
  );
4160
- return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
4160
+ return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
4161
4161
  }
4162
- ), Ii = (e = {}) => {
4162
+ ), Mi = (e = {}) => {
4163
4163
  var t = e, {
4164
4164
  locale: r = j()
4165
- } = t, n = K(t, [
4165
+ } = t, n = te(t, [
4166
4166
  "locale"
4167
4167
  ]);
4168
- return Oi(et({ locale: r }, n));
4169
- }, Ni = (e = {}) => {
4168
+ return Ci(rt({ locale: r }, n));
4169
+ }, Li = (e = {}) => {
4170
4170
  var t = e, {
4171
4171
  locale: r = j()
4172
- } = t, n = K(t, [
4172
+ } = t, n = te(t, [
4173
4173
  "locale"
4174
4174
  ]);
4175
- return Pi(et({ locale: r }, n));
4176
- }, Mi = (e = {}) => {
4175
+ return Ii(rt({ locale: r }, n));
4176
+ }, Ri = (e = {}) => {
4177
4177
  var t = e, {
4178
4178
  locale: r = j()
4179
- } = t, n = K(t, [
4179
+ } = t, n = te(t, [
4180
4180
  "locale"
4181
4181
  ]);
4182
- return Ci(et({ locale: r }, n));
4183
- }, Li = we(
4182
+ return Ni(rt({ locale: r }, n));
4183
+ }, $i = Ae(
4184
4184
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4185
- (e, t = j()) => new ui(e, t, Y().formats, {
4186
- ignoreTag: Y().ignoreTag
4185
+ (e, t = j()) => new hi(e, t, K().formats, {
4186
+ ignoreTag: K().ignoreTag
4187
4187
  })
4188
- ), Ri = (e, t = {}) => {
4188
+ ), Fi = (e, t = {}) => {
4189
4189
  var r, n, i, o;
4190
4190
  let s = t;
4191
4191
  typeof e == "object" && (s = e, e = s.id);
@@ -4198,9 +4198,9 @@ const ie = (e, t) => {
4198
4198
  throw new Error(
4199
4199
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4200
4200
  );
4201
- let l = ur(e, h);
4201
+ let l = hr(e, h);
4202
4202
  if (!l)
4203
- l = (o = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4203
+ l = (o = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4204
4204
  else if (typeof l != "string")
4205
4205
  return console.warn(
4206
4206
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -4209,7 +4209,7 @@ const ie = (e, t) => {
4209
4209
  return l;
4210
4210
  let c = l;
4211
4211
  try {
4212
- c = Li(l, h).format(a);
4212
+ c = $i(l, h).format(a);
4213
4213
  } catch (f) {
4214
4214
  f instanceof Error && console.warn(
4215
4215
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4217,18 +4217,18 @@ const ie = (e, t) => {
4217
4217
  );
4218
4218
  }
4219
4219
  return c;
4220
- }, $i = (e, t) => Mi(t).format(e), Fi = (e, t) => Ni(t).format(e), Ui = (e, t) => Ii(t).format(e), Di = (e, t = j()) => ur(e, t), Gi = q([le, ue], () => Ri);
4221
- q([le], () => $i);
4222
- q([le], () => Fi);
4223
- q([le], () => Ui);
4224
- q([le, ue], () => Di);
4225
- window.emWidgets = { topic: qr };
4220
+ }, Ui = (e, t) => Ri(t).format(e), Di = (e, t) => Li(t).format(e), Gi = (e, t) => Mi(t).format(e), ji = (e, t = j()) => hr(e, t), ki = ee([fe, he], () => Fi);
4221
+ ee([fe], () => Ui);
4222
+ ee([fe], () => Di);
4223
+ ee([fe], () => Gi);
4224
+ ee([fe, he], () => ji);
4225
+ window.emWidgets = { topic: en };
4226
4226
  const O = (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));
4227
4227
  String(Number.MAX_SAFE_INTEGER).length;
4228
- function wt(e, t) {
4229
- hr(e, t);
4228
+ function At(e, t) {
4229
+ cr(e, t);
4230
4230
  }
4231
- const Ht = {
4231
+ const Bt = {
4232
4232
  en: {
4233
4233
  tournaments: "Tournaments",
4234
4234
  all: "All",
@@ -4306,14 +4306,14 @@ const Ht = {
4306
4306
  ongoing: "Ongoing",
4307
4307
  finished: "Finished"
4308
4308
  }
4309
- };
4310
- function ji(e, t) {
4309
+ }, Z = "__WIDGET_GLOBAL_STYLE_CACHE__";
4310
+ function Vi(e, t) {
4311
4311
  if (e) {
4312
4312
  const r = document.createElement("style");
4313
4313
  r.innerHTML = t, e.appendChild(r);
4314
4314
  }
4315
4315
  }
4316
- function ki(e, t) {
4316
+ function Xi(e, t) {
4317
4317
  if (!e || !t)
4318
4318
  return;
4319
4319
  const r = new URL(t);
@@ -4324,46 +4324,73 @@ function ki(e, t) {
4324
4324
  console.error("There was an error while trying to load client styling from URL", n);
4325
4325
  });
4326
4326
  }
4327
- function Vi(e, t, r) {
4328
- if (window.emMessageBus) {
4329
- const n = document.createElement("style");
4330
- window.emMessageBus.subscribe(t, (i) => {
4331
- n.innerHTML = i, e && e.appendChild(n);
4327
+ function zi(e, t, r, n = !1) {
4328
+ if (!window.emMessageBus)
4329
+ return;
4330
+ if (!("adoptedStyleSheets" in Document.prototype) || !n)
4331
+ return r = Wi(e, t), r;
4332
+ window[Z] || (window[Z] = {}), r = Zi(e, t);
4333
+ const o = r.unsubscribe.bind(r), s = () => {
4334
+ if (window[Z][t]) {
4335
+ const a = window[Z][t];
4336
+ a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[Z][t];
4337
+ }
4338
+ o();
4339
+ };
4340
+ return r.unsubscribe = s, r;
4341
+ }
4342
+ function Wi(e, t) {
4343
+ const r = document.createElement("style");
4344
+ return window.emMessageBus.subscribe(t, (n) => {
4345
+ e && (r.innerHTML = n, e.appendChild(r));
4346
+ });
4347
+ }
4348
+ function Zi(e, t) {
4349
+ return window.emMessageBus.subscribe(t, (r) => {
4350
+ if (!e)
4351
+ return;
4352
+ const n = e.getRootNode(), i = window[Z];
4353
+ let o = i[t]?.sheet;
4354
+ o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
4355
+ sheet: o,
4356
+ refCount: 1
4332
4357
  });
4333
- }
4358
+ const s = n.adoptedStyleSheets || [];
4359
+ s.includes(o) || (n.adoptedStyleSheets = [...s, o]);
4360
+ });
4334
4361
  }
4335
- function Xi(e) {
4336
- gr(e, "svelte-f5g69n", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}ul{display:flex;gap:10px;overflow-x:auto;min-height:max-content}ul.MobileClass{padding-top:21px}li:first-child{position:relative;padding:0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emw--color-white, #FFFFFF);opacity:1}.FiltersList.MobileClass{flex-direction:column}.FiltersTitle{width:min-content;display:flex;align-items:center}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emw--color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emw--color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);cursor:pointer}.FiltersController{color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B)}");
4362
+ function Qi(e) {
4363
+ vr(e, "svelte-f5g69n", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}ul{display:flex;gap:10px;overflow-x:auto;min-height:max-content}ul.MobileClass{padding-top:21px}li:first-child{position:relative;padding:0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emw--color-white, #FFFFFF);opacity:1}.FiltersList.MobileClass{flex-direction:column}.FiltersTitle{width:min-content;display:flex;align-items:center}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emw--color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emw--color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);cursor:pointer}.FiltersController{color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B)}");
4337
4364
  }
4338
- function At(e, t, r) {
4365
+ function Ot(e, t, r) {
4339
4366
  const n = e.slice();
4340
4367
  return n[21] = t[r], n[23] = r, n;
4341
4368
  }
4342
- function Bt(e) {
4369
+ function Pt(e) {
4343
4370
  let t, r, n = (
4344
4371
  /*$_*/
4345
4372
  e[4]("tournaments") + ""
4346
- ), i, o, s, a, h = it(
4373
+ ), i, o, s, a, h = st(
4347
4374
  /*filterItems*/
4348
4375
  e[1]
4349
4376
  ), u = [];
4350
4377
  for (let l = 0; l < h.length; l += 1)
4351
- u[l] = Mt(At(e, h, l));
4378
+ u[l] = Rt(Ot(e, h, l));
4352
4379
  return {
4353
4380
  c() {
4354
- t = L("ul"), r = L("li"), i = G(n), o = G(":"), s = X(), a = L("ul");
4381
+ t = L("ul"), r = L("li"), i = G(n), o = G(":"), s = z(), a = L("ul");
4355
4382
  for (let l = 0; l < u.length; l += 1)
4356
4383
  u[l].c();
4357
- x(r, "class", "FiltersTitle " + (O(
4384
+ E(r, "class", "FiltersTitle " + (O(
4358
4385
  /*userAgent*/
4359
4386
  e[5]
4360
- ) ? "MobileClass" : "Non-MobileClass/empty")), x(r, "part", "FiltersTitle " + (O(
4387
+ ) ? "MobileClass" : "Non-MobileClass/empty")), E(r, "part", "FiltersTitle " + (O(
4361
4388
  /*userAgent*/
4362
4389
  e[5]
4363
- ) ? "MobileClass" : "Non-MobileClass/empty")), x(t, "class", "FiltersList " + (O(
4390
+ ) ? "MobileClass" : "Non-MobileClass/empty")), E(t, "class", "FiltersList " + (O(
4364
4391
  /*userAgent*/
4365
4392
  e[5]
4366
- ) ? "MobileClass" : "Non-MobileClass/empty")), x(t, "part", "FiltersList " + (O(
4393
+ ) ? "MobileClass" : "Non-MobileClass/empty")), E(t, "part", "FiltersList " + (O(
4367
4394
  /*userAgent*/
4368
4395
  e[5]
4369
4396
  ) ? "MobileClass" : "Non-MobileClass/empty"));
@@ -4376,16 +4403,16 @@ function Bt(e) {
4376
4403
  p(l, c) {
4377
4404
  if (c & /*$_*/
4378
4405
  16 && n !== (n = /*$_*/
4379
- l[4]("tournaments") + "") && se(i, n), c & /*makeButtonActive, filterItems, activeIndexes, allActive, userAgent, $_*/
4406
+ l[4]("tournaments") + "") && ue(i, n), c & /*makeButtonActive, filterItems, activeIndexes, allActive, userAgent, $_*/
4380
4407
  126) {
4381
- h = it(
4408
+ h = st(
4382
4409
  /*filterItems*/
4383
4410
  l[1]
4384
4411
  );
4385
4412
  let f;
4386
4413
  for (f = 0; f < h.length; f += 1) {
4387
- const p = At(l, h, f);
4388
- u[f] ? u[f].p(p, c) : (u[f] = Mt(p), u[f].c(), u[f].m(a, null));
4414
+ const d = Ot(l, h, f);
4415
+ u[f] ? u[f].p(d, c) : (u[f] = Rt(d), u[f].c(), u[f].m(a, null));
4389
4416
  }
4390
4417
  for (; f < u.length; f += 1)
4391
4418
  u[f].d(1);
@@ -4393,15 +4420,15 @@ function Bt(e) {
4393
4420
  }
4394
4421
  },
4395
4422
  d(l) {
4396
- l && N(t), _r(u, l);
4423
+ l && N(t), xr(u, l);
4397
4424
  }
4398
4425
  };
4399
4426
  }
4400
- function Ot(e) {
4427
+ function Ct(e) {
4401
4428
  let t, r;
4402
4429
  return {
4403
4430
  c() {
4404
- t = rt("svg"), r = rt("path"), x(r, "d", "M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"), x(t, "xmlns", "http://www.w3.org/2000/svg"), x(t, "width", "16"), x(t, "height", "16"), x(t, "fill", "currentColor"), x(t, "class", "bi bi-check"), x(t, "part", "bi bi-check"), x(t, "viewBox", "0 0 16 16");
4431
+ t = it("svg"), r = it("path"), E(r, "d", "M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"), E(t, "xmlns", "http://www.w3.org/2000/svg"), E(t, "width", "16"), E(t, "height", "16"), E(t, "fill", "currentColor"), E(t, "class", "bi bi-check"), E(t, "part", "bi bi-check"), E(t, "viewBox", "0 0 16 16");
4405
4432
  },
4406
4433
  m(n, i) {
4407
4434
  $(n, t, i), B(t, r);
@@ -4411,7 +4438,7 @@ function Ot(e) {
4411
4438
  }
4412
4439
  };
4413
4440
  }
4414
- function Pt(e) {
4441
+ function It(e) {
4415
4442
  let t = (
4416
4443
  /*$_*/
4417
4444
  e[4]("scheduled") + ""
@@ -4426,14 +4453,14 @@ function Pt(e) {
4426
4453
  p(n, i) {
4427
4454
  i & /*$_*/
4428
4455
  16 && t !== (t = /*$_*/
4429
- n[4]("scheduled") + "") && se(r, t);
4456
+ n[4]("scheduled") + "") && ue(r, t);
4430
4457
  },
4431
4458
  d(n) {
4432
4459
  n && N(r);
4433
4460
  }
4434
4461
  };
4435
4462
  }
4436
- function Ct(e) {
4463
+ function Nt(e) {
4437
4464
  let t = (
4438
4465
  /*$_*/
4439
4466
  e[4]("ongoing") + ""
@@ -4448,14 +4475,14 @@ function Ct(e) {
4448
4475
  p(n, i) {
4449
4476
  i & /*$_*/
4450
4477
  16 && t !== (t = /*$_*/
4451
- n[4]("ongoing") + "") && se(r, t);
4478
+ n[4]("ongoing") + "") && ue(r, t);
4452
4479
  },
4453
4480
  d(n) {
4454
4481
  n && N(r);
4455
4482
  }
4456
4483
  };
4457
4484
  }
4458
- function It(e) {
4485
+ function Mt(e) {
4459
4486
  let t = (
4460
4487
  /*$_*/
4461
4488
  e[4]("finished") + ""
@@ -4470,14 +4497,14 @@ function It(e) {
4470
4497
  p(n, i) {
4471
4498
  i & /*$_*/
4472
4499
  16 && t !== (t = /*$_*/
4473
- n[4]("finished") + "") && se(r, t);
4500
+ n[4]("finished") + "") && ue(r, t);
4474
4501
  },
4475
4502
  d(n) {
4476
4503
  n && N(r);
4477
4504
  }
4478
4505
  };
4479
4506
  }
4480
- function Nt(e) {
4507
+ function Lt(e) {
4481
4508
  let t = (
4482
4509
  /*$_*/
4483
4510
  e[4]("all") + ""
@@ -4492,36 +4519,36 @@ function Nt(e) {
4492
4519
  p(n, i) {
4493
4520
  i & /*$_*/
4494
4521
  16 && t !== (t = /*$_*/
4495
- n[4]("all") + "") && se(r, t);
4522
+ n[4]("all") + "") && ue(r, t);
4496
4523
  },
4497
4524
  d(n) {
4498
4525
  n && N(r);
4499
4526
  }
4500
4527
  };
4501
4528
  }
4502
- function Mt(e) {
4503
- let t, r, n, i, o, s, a, h, u, l, c, f, p = (
4529
+ function Rt(e) {
4530
+ let t, r, n, i, o, s, a, h, u, l, c, f, d = (
4504
4531
  /*activeIndexes*/
4505
4532
  (e[2][
4506
4533
  /*index*/
4507
4534
  e[23]
4508
4535
  ] == 1 || /*allActive*/
4509
4536
  e[3] && /*index*/
4510
- e[23] == 0) && Ot()
4511
- ), m = (
4537
+ e[23] == 0) && Ct()
4538
+ ), p = (
4512
4539
  /*filter*/
4513
- e[21] == "Scheduled" && Pt(e)
4514
- ), d = (
4540
+ e[21] == "Scheduled" && It(e)
4541
+ ), m = (
4515
4542
  /*filter*/
4516
- e[21] == "Ongoing" && Ct(e)
4543
+ e[21] == "Ongoing" && Nt(e)
4517
4544
  ), v = (
4518
4545
  /*filter*/
4519
- e[21] == "Finished" && It(e)
4520
- ), E = (
4546
+ e[21] == "Finished" && Mt(e)
4547
+ ), x = (
4521
4548
  /*filter*/
4522
- e[21] == "All" && Nt(e)
4549
+ e[21] == "All" && Lt(e)
4523
4550
  );
4524
- function C() {
4551
+ function P() {
4525
4552
  return (
4526
4553
  /*click_handler*/
4527
4554
  e[13](
@@ -4534,13 +4561,13 @@ function Mt(e) {
4534
4561
  }
4535
4562
  return {
4536
4563
  c() {
4537
- t = L("li"), r = L("button"), p && p.c(), n = X(), i = L("div"), m && m.c(), o = X(), d && d.c(), s = X(), v && v.c(), a = X(), E && E.c(), l = X(), x(i, "class", "FilterButton " + (O(
4564
+ t = L("li"), r = L("button"), d && d.c(), n = z(), i = L("div"), p && p.c(), o = z(), m && m.c(), s = z(), v && v.c(), a = z(), x && x.c(), l = z(), E(i, "class", "FilterButton " + (O(
4538
4565
  /*userAgent*/
4539
4566
  e[5]
4540
- ) ? "MobileClass" : "Non-MobileClass/empty")), x(i, "part", "FilterButton " + (O(
4567
+ ) ? "MobileClass" : "Non-MobileClass/empty")), E(i, "part", "FilterButton " + (O(
4541
4568
  /*userAgent*/
4542
4569
  e[5]
4543
- ) ? "MobileClass" : "Non-MobileClass/empty")), x(r, "class", h = /*activeIndexes*/
4570
+ ) ? "MobileClass" : "Non-MobileClass/empty")), E(r, "class", h = /*activeIndexes*/
4544
4571
  (e[2][
4545
4572
  /*index*/
4546
4573
  e[23]
@@ -4549,7 +4576,7 @@ function Mt(e) {
4549
4576
  e[23] == 0 ? "Active" : "") + " " + (O(
4550
4577
  /*userAgent*/
4551
4578
  e[5]
4552
- ) ? "MobileClass" : "Non-MobileClass/empty")), x(r, "part", u = /*activeIndexes*/
4579
+ ) ? "MobileClass" : "Non-MobileClass/empty")), E(r, "part", u = /*activeIndexes*/
4553
4580
  (e[2][
4554
4581
  /*index*/
4555
4582
  e[23]
@@ -4558,23 +4585,23 @@ function Mt(e) {
4558
4585
  e[23] == 0 ? "Active" : "") + " " + (O(
4559
4586
  /*userAgent*/
4560
4587
  e[5]
4561
- ) ? "MobileClass" : "Non-MobileClass/empty")), x(t, "class", "FiltersItem"), x(t, "part", "FiltersItem");
4588
+ ) ? "MobileClass" : "Non-MobileClass/empty")), E(t, "class", "FiltersItem"), E(t, "part", "FiltersItem");
4562
4589
  },
4563
- m(T, H) {
4564
- $(T, t, H), B(t, r), p && p.m(r, null), B(r, n), B(r, i), m && m.m(i, null), B(i, o), d && d.m(i, null), B(i, s), v && v.m(i, null), B(i, a), E && E.m(i, null), B(t, l), c || (f = Er(t, "click", C), c = !0);
4590
+ m(w, T) {
4591
+ $(w, t, T), B(t, r), d && d.m(r, null), B(r, n), B(r, i), p && p.m(i, null), B(i, o), m && m.m(i, null), B(i, s), v && v.m(i, null), B(i, a), x && x.m(i, null), B(t, l), c || (f = Sr(t, "click", P), c = !0);
4565
4592
  },
4566
- p(T, H) {
4567
- e = T, /*activeIndexes*/
4593
+ p(w, T) {
4594
+ e = w, /*activeIndexes*/
4568
4595
  e[2][
4569
4596
  /*index*/
4570
4597
  e[23]
4571
4598
  ] == 1 || /*allActive*/
4572
4599
  e[3] && /*index*/
4573
- e[23] == 0 ? p || (p = Ot(), p.c(), p.m(r, n)) : p && (p.d(1), p = null), /*filter*/
4574
- e[21] == "Scheduled" ? m ? m.p(e, H) : (m = Pt(e), m.c(), m.m(i, o)) : m && (m.d(1), m = null), /*filter*/
4575
- e[21] == "Ongoing" ? d ? d.p(e, H) : (d = Ct(e), d.c(), d.m(i, s)) : d && (d.d(1), d = null), /*filter*/
4576
- e[21] == "Finished" ? v ? v.p(e, H) : (v = It(e), v.c(), v.m(i, a)) : v && (v.d(1), v = null), /*filter*/
4577
- e[21] == "All" ? E ? E.p(e, H) : (E = Nt(e), E.c(), E.m(i, null)) : E && (E.d(1), E = null), H & /*activeIndexes, allActive*/
4600
+ e[23] == 0 ? d || (d = Ct(), d.c(), d.m(r, n)) : d && (d.d(1), d = null), /*filter*/
4601
+ e[21] == "Scheduled" ? p ? p.p(e, T) : (p = It(e), p.c(), p.m(i, o)) : p && (p.d(1), p = null), /*filter*/
4602
+ e[21] == "Ongoing" ? m ? m.p(e, T) : (m = Nt(e), m.c(), m.m(i, s)) : m && (m.d(1), m = null), /*filter*/
4603
+ e[21] == "Finished" ? v ? v.p(e, T) : (v = Mt(e), v.c(), v.m(i, a)) : v && (v.d(1), v = null), /*filter*/
4604
+ e[21] == "All" ? x ? x.p(e, T) : (x = Lt(e), x.c(), x.m(i, null)) : x && (x.d(1), x = null), T & /*activeIndexes, allActive*/
4578
4605
  12 && h !== (h = /*activeIndexes*/
4579
4606
  (e[2][
4580
4607
  /*index*/
@@ -4584,7 +4611,7 @@ function Mt(e) {
4584
4611
  e[23] == 0 ? "Active" : "") + " " + (O(
4585
4612
  /*userAgent*/
4586
4613
  e[5]
4587
- ) ? "MobileClass" : "Non-MobileClass/empty")) && x(r, "class", h), H & /*activeIndexes, allActive*/
4614
+ ) ? "MobileClass" : "Non-MobileClass/empty")) && E(r, "class", h), T & /*activeIndexes, allActive*/
4588
4615
  12 && u !== (u = /*activeIndexes*/
4589
4616
  (e[2][
4590
4617
  /*index*/
@@ -4594,24 +4621,24 @@ function Mt(e) {
4594
4621
  e[23] == 0 ? "Active" : "") + " " + (O(
4595
4622
  /*userAgent*/
4596
4623
  e[5]
4597
- ) ? "MobileClass" : "Non-MobileClass/empty")) && x(r, "part", u);
4624
+ ) ? "MobileClass" : "Non-MobileClass/empty")) && E(r, "part", u);
4598
4625
  },
4599
- d(T) {
4600
- T && N(t), p && p.d(), m && m.d(), d && d.d(), v && v.d(), E && E.d(), c = !1, f();
4626
+ d(w) {
4627
+ w && N(t), d && d.d(), p && p.d(), m && m.d(), v && v.d(), x && x.d(), c = !1, f();
4601
4628
  }
4602
4629
  };
4603
4630
  }
4604
- function zi(e) {
4631
+ function Ji(e) {
4605
4632
  let t, r = (
4606
4633
  /*filterItems*/
4607
- e[1].length > 0 && Bt(e)
4634
+ e[1].length > 0 && Pt(e)
4608
4635
  );
4609
4636
  return {
4610
4637
  c() {
4611
- t = L("div"), r && r.c(), x(t, "class", "FiltersController " + (O(
4638
+ t = L("div"), r && r.c(), E(t, "class", "FiltersController " + (O(
4612
4639
  /*userAgent*/
4613
4640
  e[5]
4614
- ) ? "MobileClass" : "Non-MobileClass/empty")), x(t, "part", "FiltersController " + (O(
4641
+ ) ? "MobileClass" : "Non-MobileClass/empty")), E(t, "part", "FiltersController " + (O(
4615
4642
  /*userAgent*/
4616
4643
  e[5]
4617
4644
  ) ? "MobileClass" : "Non-MobileClass/empty"));
@@ -4621,41 +4648,41 @@ function zi(e) {
4621
4648
  },
4622
4649
  p(n, [i]) {
4623
4650
  /*filterItems*/
4624
- n[1].length > 0 ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
4651
+ n[1].length > 0 ? r ? r.p(n, i) : (r = Pt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
4625
4652
  },
4626
- i: P,
4627
- o: P,
4653
+ i: C,
4654
+ o: C,
4628
4655
  d(n) {
4629
4656
  n && N(t), r && r.d(), e[14](null);
4630
4657
  }
4631
4658
  };
4632
4659
  }
4633
- function Wi(e, t, r) {
4660
+ function Yi(e, t, r) {
4634
4661
  let n;
4635
- br(e, Gi, (y) => r(4, n = y));
4636
- let { filters: i = "" } = t, { activefilters: o = "" } = t, { translationurl: s = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, l, c = [], f = 0, p = new Array(100), m = !0, d = window.navigator.userAgent;
4637
- const v = () => {
4638
- fetch(s).then((w) => w.json()).then((w) => {
4639
- Object.keys(w).forEach((F) => {
4640
- wt(F, w[F]);
4662
+ yr(e, ki, (y) => r(4, n = y));
4663
+ let { filters: i = "" } = t, { activefilters: o = "" } = t, { translationurl: s = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: u } = t, l, c, f = [], d = 0, p = new Array(100), m = !0, v = window.navigator.userAgent;
4664
+ const x = () => {
4665
+ fetch(s).then((H) => H.json()).then((H) => {
4666
+ Object.keys(H).forEach((F) => {
4667
+ At(F, H[F]);
4641
4668
  });
4642
- }).catch((w) => {
4643
- console.log(w);
4669
+ }).catch((H) => {
4670
+ console.log(H);
4644
4671
  });
4645
4672
  };
4646
- Object.keys(Ht).forEach((y) => {
4647
- wt(y, Ht[y]);
4673
+ Object.keys(Bt).forEach((y) => {
4674
+ At(y, Bt[y]);
4648
4675
  });
4649
- const E = (y, w) => {
4650
- if (w == 0)
4651
- r(3, m = !0), r(2, p = new Array(f)), window.postMessage(
4676
+ const P = (y, H) => {
4677
+ if (H == 0)
4678
+ r(3, m = !0), r(2, p = new Array(d)), window.postMessage(
4652
4679
  {
4653
4680
  type: "TournamentsFiltersSelected",
4654
4681
  filters: ["All"]
4655
4682
  },
4656
4683
  window.location.href
4657
4684
  );
4658
- else if (r(3, m = !1), p[w] == 1 ? (r(2, p[w] = 0, p), p.indexOf(1) == -1 && r(3, m = !0)) : r(2, p[w] = 1, p), p.indexOf(1) == -1)
4685
+ else if (r(3, m = !1), p[H] == 1 ? (r(2, p[H] = 0, p), p.indexOf(1) == -1 && r(3, m = !0)) : r(2, p[H] = 1, p), p.indexOf(1) == -1)
4659
4686
  window.postMessage(
4660
4687
  {
4661
4688
  type: "TournamentsFiltersSelected",
@@ -4665,8 +4692,8 @@ function Wi(e, t, r) {
4665
4692
  );
4666
4693
  else {
4667
4694
  let F = [];
4668
- for (let he = 0; he < c.length; he++)
4669
- p[he] == 1 && F.push(c[he]);
4695
+ for (let ce = 0; ce < f.length; ce++)
4696
+ p[ce] == 1 && F.push(f[ce]);
4670
4697
  window.postMessage(
4671
4698
  {
4672
4699
  type: "TournamentsFiltersSelected",
@@ -4675,20 +4702,20 @@ function Wi(e, t, r) {
4675
4702
  window.location.href
4676
4703
  );
4677
4704
  }
4678
- }, C = () => {
4679
- r(1, c = i.split(",")), f = c.length;
4705
+ }, w = () => {
4706
+ r(1, f = i.split(",")), d = f.length;
4680
4707
  }, T = () => {
4681
4708
  let y = o.split(",");
4682
- r(2, p = new Array(f)), y.indexOf("All") != -1 ? r(3, m = !0) : (r(3, m = !1), y.forEach((w) => {
4683
- let F = c.indexOf(w);
4709
+ r(2, p = new Array(d)), y.indexOf("All") != -1 ? r(3, m = !0) : (r(3, m = !1), y.forEach((H) => {
4710
+ let F = f.indexOf(H);
4684
4711
  F > 0 && r(2, p[F] = 1, p);
4685
4712
  }));
4686
4713
  };
4687
- wr(() => () => {
4714
+ Ar(() => () => {
4688
4715
  });
4689
- const H = (y, w) => E(y, w);
4690
- function M(y) {
4691
- Me[y ? "unshift" : "push"](() => {
4716
+ const M = (y, H) => P(y, H);
4717
+ function k(y) {
4718
+ Re[y ? "unshift" : "push"](() => {
4692
4719
  l = y, r(0, l);
4693
4720
  });
4694
4721
  }
@@ -4696,38 +4723,38 @@ function Wi(e, t, r) {
4696
4723
  "filters" in y && r(7, i = y.filters), "activefilters" in y && r(8, o = y.activefilters), "translationurl" in y && r(9, s = y.translationurl), "clientstyling" in y && r(10, a = y.clientstyling), "clientstylingurl" in y && r(11, h = y.clientstylingurl), "mbsource" in y && r(12, u = y.mbsource);
4697
4724
  }, e.$$.update = () => {
4698
4725
  e.$$.dirty & /*translationurl*/
4699
- 512 && s && v(), e.$$.dirty & /*filters*/
4700
- 128 && i && C(), e.$$.dirty & /*activefilters*/
4726
+ 512 && s && x(), e.$$.dirty & /*filters*/
4727
+ 128 && i && w(), e.$$.dirty & /*activefilters*/
4701
4728
  256 && o && T(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4702
- 1025 && a && l && ji(l, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4703
- 2049 && h && l && ki(l, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4704
- 4097 && u && l && Vi(l, `${u}.Style`);
4729
+ 1025 && a && l && Vi(l, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4730
+ 2049 && h && l && Xi(l, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4731
+ 4097 && u && l && zi(l, `${u}.Style`, c);
4705
4732
  }, [
4706
4733
  l,
4707
- c,
4734
+ f,
4708
4735
  p,
4709
4736
  m,
4710
4737
  n,
4711
- d,
4712
- E,
4738
+ v,
4739
+ P,
4713
4740
  i,
4714
4741
  o,
4715
4742
  s,
4716
4743
  a,
4717
4744
  h,
4718
4745
  u,
4719
- H,
4720
- M
4746
+ M,
4747
+ k
4721
4748
  ];
4722
4749
  }
4723
- class Zi extends $r {
4750
+ class qi extends Ur {
4724
4751
  constructor(t) {
4725
- super(), Lr(
4752
+ super(), $r(
4726
4753
  this,
4727
4754
  t,
4728
- Wi,
4729
- zi,
4730
- Rt,
4755
+ Yi,
4756
+ Ji,
4757
+ Ft,
4731
4758
  {
4732
4759
  filters: 7,
4733
4760
  activefilters: 8,
@@ -4736,7 +4763,7 @@ class Zi extends $r {
4736
4763
  clientstylingurl: 11,
4737
4764
  mbsource: 12
4738
4765
  },
4739
- Xi
4766
+ Qi
4740
4767
  );
4741
4768
  }
4742
4769
  get filters() {
@@ -4776,7 +4803,7 @@ class Zi extends $r {
4776
4803
  this.$$set({ mbsource: t }), U();
4777
4804
  }
4778
4805
  }
4779
- Rr(Zi, { filters: {}, activefilters: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
4806
+ Fr(qi, { filters: {}, activefilters: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
4780
4807
  export {
4781
- Zi as C
4808
+ qi as C
4782
4809
  };