@everymatrix/casino-tournaments-filter-controller 1.64.8 → 1.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- var xr = Object.defineProperty, Sr = Object.defineProperties;
2
- var Tr = Object.getOwnPropertyDescriptors;
3
- var it = Object.getOwnPropertySymbols;
4
- var wr = Object.prototype.hasOwnProperty, Hr = Object.prototype.propertyIsEnumerable;
5
- var Ae = (e, t, r) => t in e ? xr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
1
+ var Er = Object.defineProperty, xr = Object.defineProperties;
2
+ var Sr = Object.getOwnPropertyDescriptors;
3
+ var rt = Object.getOwnPropertySymbols;
4
+ var Tr = Object.prototype.hasOwnProperty, Hr = Object.prototype.propertyIsEnumerable;
5
+ var He = (e, t, r) => t in e ? Er(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- wr.call(t, r) && Ae(e, r, t[r]);
8
- if (it)
9
- for (var r of it(t))
10
- Hr.call(t, r) && Ae(e, r, t[r]);
7
+ Tr.call(t, r) && He(e, r, t[r]);
8
+ if (rt)
9
+ for (var r of rt(t))
10
+ Hr.call(t, r) && He(e, r, t[r]);
11
11
  return e;
12
- }, st = (e, t) => Sr(e, Tr(t));
13
- var P = (e, t, r) => (Ae(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var at = (e, t, r) => new Promise((n, i) => {
12
+ }, it = (e, t) => xr(e, Sr(t));
13
+ var O = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var ot = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (l) => {
16
16
  try {
17
17
  a(r.next(l));
@@ -29,25 +29,25 @@ var at = (e, t, r) => new Promise((n, i) => {
29
29
  });
30
30
  function I() {
31
31
  }
32
- function jt(e) {
32
+ function Dt(e) {
33
33
  return e();
34
34
  }
35
- function ut() {
35
+ function st() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function se(e) {
39
- e.forEach(jt);
38
+ function ae(e) {
39
+ e.forEach(Dt);
40
40
  }
41
- function et(e) {
41
+ function Je(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function kt(e, t) {
44
+ function Gt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function Ar(e) {
47
+ function wr(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function Vt(e, ...t) {
50
+ function jt(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const n of t)
53
53
  n(void 0);
@@ -56,17 +56,17 @@ function Vt(e, ...t) {
56
56
  const r = e.subscribe(...t);
57
57
  return r.unsubscribe ? () => r.unsubscribe() : r;
58
58
  }
59
- function Br(e, t, r) {
60
- e.$$.on_destroy.push(Vt(t, r));
59
+ function Ar(e, t, r) {
60
+ e.$$.on_destroy.push(jt(t, r));
61
61
  }
62
62
  function B(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function Or(e, t, r) {
65
+ function Br(e, t, r) {
66
66
  const n = Pr(e);
67
67
  if (!n.getElementById(t)) {
68
68
  const i = D("style");
69
- i.id = t, i.textContent = r, Cr(n, i);
69
+ i.id = t, i.textContent = r, Or(n, i);
70
70
  }
71
71
  }
72
72
  function Pr(e) {
@@ -79,27 +79,27 @@ function Pr(e) {
79
79
  t
80
80
  ) : e.ownerDocument;
81
81
  }
82
- function Cr(e, t) {
82
+ function Or(e, t) {
83
83
  return B(
84
84
  /** @type {Document} */
85
85
  e.head || e,
86
86
  t
87
87
  ), t.sheet;
88
88
  }
89
- function F(e, t, r) {
89
+ function $(e, t, r) {
90
90
  e.insertBefore(t, r || null);
91
91
  }
92
- function L(e) {
92
+ function M(e) {
93
93
  e.parentNode && e.parentNode.removeChild(e);
94
94
  }
95
- function Ir(e, t) {
95
+ function Cr(e, t) {
96
96
  for (let r = 0; r < e.length; r += 1)
97
97
  e[r] && e[r].d(t);
98
98
  }
99
99
  function D(e) {
100
100
  return document.createElement(e);
101
101
  }
102
- function lt(e) {
102
+ function at(e) {
103
103
  return document.createElementNS("http://www.w3.org/2000/svg", e);
104
104
  }
105
105
  function j(e) {
@@ -108,20 +108,20 @@ function j(e) {
108
108
  function W() {
109
109
  return j(" ");
110
110
  }
111
- function Nr(e, t, r, n) {
111
+ function Ir(e, t, r, n) {
112
112
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
113
113
  }
114
- function E(e, t, r) {
114
+ function x(e, t, r) {
115
115
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
116
116
  }
117
- function Mr(e) {
117
+ function Nr(e) {
118
118
  return Array.from(e.childNodes);
119
119
  }
120
- function ae(e, t) {
120
+ function ue(e, t) {
121
121
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
122
122
  t);
123
123
  }
124
- function Lr(e) {
124
+ function Mr(e) {
125
125
  const t = {};
126
126
  return e.childNodes.forEach(
127
127
  /** @param {Element} node */
@@ -130,82 +130,82 @@ function Lr(e) {
130
130
  }
131
131
  ), t;
132
132
  }
133
- let tt;
134
- function ne(e) {
135
- tt = e;
133
+ let Ye;
134
+ function ie(e) {
135
+ Ye = e;
136
136
  }
137
- const Z = [], Re = [];
137
+ const Z = [], Me = [];
138
138
  let Q = [];
139
- const ht = [], Rr = /* @__PURE__ */ Promise.resolve();
140
- let $e = !1;
141
- function $r() {
142
- $e || ($e = !0, Rr.then(G));
139
+ const ut = [], Lr = /* @__PURE__ */ Promise.resolve();
140
+ let Le = !1;
141
+ function Rr() {
142
+ Le || (Le = !0, Lr.then(G));
143
143
  }
144
- function Fe(e) {
144
+ function Re(e) {
145
145
  Q.push(e);
146
146
  }
147
- const Be = /* @__PURE__ */ new Set();
147
+ const we = /* @__PURE__ */ new Set();
148
148
  let X = 0;
149
149
  function G() {
150
150
  if (X !== 0)
151
151
  return;
152
- const e = tt;
152
+ const e = Ye;
153
153
  do {
154
154
  try {
155
155
  for (; X < Z.length; ) {
156
156
  const t = Z[X];
157
- X++, ne(t), Fr(t.$$);
157
+ X++, ie(t), $r(t.$$);
158
158
  }
159
159
  } catch (t) {
160
160
  throw Z.length = 0, X = 0, t;
161
161
  }
162
- for (ne(null), Z.length = 0, X = 0; Re.length; )
163
- Re.pop()();
162
+ for (ie(null), Z.length = 0, X = 0; Me.length; )
163
+ Me.pop()();
164
164
  for (let t = 0; t < Q.length; t += 1) {
165
165
  const r = Q[t];
166
- Be.has(r) || (Be.add(r), r());
166
+ we.has(r) || (we.add(r), r());
167
167
  }
168
168
  Q.length = 0;
169
169
  } while (Z.length);
170
- for (; ht.length; )
171
- ht.pop()();
172
- $e = !1, Be.clear(), ne(e);
170
+ for (; ut.length; )
171
+ ut.pop()();
172
+ Le = !1, we.clear(), ie(e);
173
173
  }
174
- function Fr(e) {
174
+ function $r(e) {
175
175
  if (e.fragment !== null) {
176
- e.update(), se(e.before_update);
176
+ e.update(), ae(e.before_update);
177
177
  const t = e.dirty;
178
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
178
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
179
179
  }
180
180
  }
181
- function Ur(e) {
181
+ function Fr(e) {
182
182
  const t = [], r = [];
183
183
  Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
184
184
  }
185
- const Dr = /* @__PURE__ */ new Set();
186
- function Gr(e, t) {
187
- e && e.i && (Dr.delete(e), e.i(t));
185
+ const Ur = /* @__PURE__ */ new Set();
186
+ function Dr(e, t) {
187
+ e && e.i && (Ur.delete(e), e.i(t));
188
188
  }
189
- function ft(e) {
189
+ function lt(e) {
190
190
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
191
191
  }
192
- function jr(e, t, r) {
192
+ function Gr(e, t, r) {
193
193
  const { fragment: n, after_update: i } = e.$$;
194
- n && n.m(t, r), Fe(() => {
195
- const o = e.$$.on_mount.map(jt).filter(et);
196
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
197
- }), i.forEach(Fe);
194
+ n && n.m(t, r), Re(() => {
195
+ const o = e.$$.on_mount.map(Dt).filter(Je);
196
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ae(o), e.$$.on_mount = [];
197
+ }), i.forEach(Re);
198
198
  }
199
- function kr(e, t) {
199
+ function jr(e, t) {
200
200
  const r = e.$$;
201
- r.fragment !== null && (Ur(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
201
+ r.fragment !== null && (Fr(r.after_update), ae(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
202
202
  }
203
- function Vr(e, t) {
204
- e.$$.dirty[0] === -1 && (Z.push(e), $r(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
203
+ function kr(e, t) {
204
+ e.$$.dirty[0] === -1 && (Z.push(e), Rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
205
205
  }
206
- function Xr(e, t, r, n, i, o, s = null, a = [-1]) {
207
- const l = tt;
208
- ne(e);
206
+ function Vr(e, t, r, n, i, o, s = null, a = [-1]) {
207
+ const l = Ye;
208
+ ie(e);
209
209
  const u = e.$$ = {
210
210
  fragment: null,
211
211
  ctx: [],
@@ -213,7 +213,7 @@ function Xr(e, t, r, n, i, o, s = null, a = [-1]) {
213
213
  props: o,
214
214
  update: I,
215
215
  not_equal: i,
216
- bound: ut(),
216
+ bound: st(),
217
217
  // lifecycle
218
218
  on_mount: [],
219
219
  on_destroy: [],
@@ -222,7 +222,7 @@ function Xr(e, t, r, n, i, o, s = null, a = [-1]) {
222
222
  after_update: [],
223
223
  context: new Map(t.context || (l ? l.$$.context : [])),
224
224
  // everything else
225
- callbacks: ut(),
225
+ callbacks: st(),
226
226
  dirty: a,
227
227
  skip_bound: !1,
228
228
  root: t.target || l.$$.root
@@ -231,39 +231,39 @@ function Xr(e, t, r, n, i, o, s = null, a = [-1]) {
231
231
  let h = !1;
232
232
  if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
233
233
  const m = p.length ? p[0] : c;
234
- return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && Vr(e, f)), c;
235
- }) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
234
+ return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && kr(e, f)), c;
235
+ }) : [], u.update(), h = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
236
236
  if (t.hydrate) {
237
- const f = Mr(t.target);
238
- u.fragment && u.fragment.l(f), f.forEach(L);
237
+ const f = Nr(t.target);
238
+ u.fragment && u.fragment.l(f), f.forEach(M);
239
239
  } else
240
240
  u.fragment && u.fragment.c();
241
- t.intro && Gr(e.$$.fragment), jr(e, t.target, t.anchor), G();
241
+ t.intro && Dr(e.$$.fragment), Gr(e, t.target, t.anchor), G();
242
242
  }
243
- ne(l);
243
+ ie(l);
244
244
  }
245
- let Xt;
246
- typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
245
+ let kt;
246
+ typeof HTMLElement == "function" && (kt = class extends HTMLElement {
247
247
  constructor(t, r, n) {
248
248
  super();
249
249
  /** The Svelte component constructor */
250
- P(this, "$$ctor");
250
+ O(this, "$$ctor");
251
251
  /** Slots */
252
- P(this, "$$s");
252
+ O(this, "$$s");
253
253
  /** The Svelte component instance */
254
- P(this, "$$c");
254
+ O(this, "$$c");
255
255
  /** Whether or not the custom element is connected */
256
- P(this, "$$cn", !1);
256
+ O(this, "$$cn", !1);
257
257
  /** Component props data */
258
- P(this, "$$d", {});
258
+ O(this, "$$d", {});
259
259
  /** `true` if currently in the process of reflecting component props back to attributes */
260
- P(this, "$$r", !1);
260
+ O(this, "$$r", !1);
261
261
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
262
- P(this, "$$p_d", {});
262
+ O(this, "$$p_d", {});
263
263
  /** @type {Record<string, Function[]>} Event listeners */
264
- P(this, "$$l", {});
264
+ O(this, "$$l", {});
265
265
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
266
- P(this, "$$l_u", /* @__PURE__ */ new Map());
266
+ O(this, "$$l_u", /* @__PURE__ */ new Map());
267
267
  this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
268
268
  }
269
269
  addEventListener(t, r, n) {
@@ -280,31 +280,31 @@ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
280
280
  }
281
281
  }
282
282
  connectedCallback() {
283
- return at(this, null, function* () {
283
+ return ot(this, null, function* () {
284
284
  if (this.$$cn = !0, !this.$$c) {
285
285
  let t = function(o) {
286
286
  return () => {
287
287
  let s;
288
288
  return {
289
289
  c: function() {
290
- s = D("slot"), o !== "default" && E(s, "name", o);
290
+ s = D("slot"), o !== "default" && x(s, "name", o);
291
291
  },
292
292
  /**
293
293
  * @param {HTMLElement} target
294
294
  * @param {HTMLElement} [anchor]
295
295
  */
296
296
  m: function(u, h) {
297
- F(u, s, h);
297
+ $(u, s, h);
298
298
  },
299
299
  d: function(u) {
300
- u && L(s);
300
+ u && M(s);
301
301
  }
302
302
  };
303
303
  };
304
304
  };
305
305
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
306
306
  return;
307
- const r = {}, n = Lr(this);
307
+ const r = {}, n = Mr(this);
308
308
  for (const o of this.$$s)
309
309
  o in n && (r[o] = [t(o)]);
310
310
  for (const o of this.attributes) {
@@ -315,7 +315,7 @@ typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
315
315
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
316
316
  this.$$c = new this.$$ctor({
317
317
  target: this.shadowRoot || this,
318
- props: st(ot({}, this.$$d), {
318
+ props: it(nt({}, this.$$d), {
319
319
  $$slots: r,
320
320
  $$scope: {
321
321
  ctx: []
@@ -393,8 +393,8 @@ function de(e, t, r, n) {
393
393
  return t;
394
394
  }
395
395
  }
396
- function zr(e, t, r, n, i, o) {
397
- let s = class extends Xt {
396
+ function Xr(e, t, r, n, i, o) {
397
+ let s = class extends kt {
398
398
  constructor() {
399
399
  super(e, r, i), this.$$p_d = t;
400
400
  }
@@ -424,7 +424,7 @@ function zr(e, t, r, n, i, o) {
424
424
  }), e.element = /** @type {any} */
425
425
  s, s;
426
426
  }
427
- class Wr {
427
+ class zr {
428
428
  constructor() {
429
429
  /**
430
430
  * ### PRIVATE API
@@ -433,7 +433,7 @@ class Wr {
433
433
  *
434
434
  * @type {any}
435
435
  */
436
- P(this, "$$");
436
+ O(this, "$$");
437
437
  /**
438
438
  * ### PRIVATE API
439
439
  *
@@ -441,11 +441,11 @@ class Wr {
441
441
  *
442
442
  * @type {any}
443
443
  */
444
- P(this, "$$set");
444
+ O(this, "$$set");
445
445
  }
446
446
  /** @returns {void} */
447
447
  $destroy() {
448
- kr(this, 1), this.$destroy = I;
448
+ jr(this, 1), this.$destroy = I;
449
449
  }
450
450
  /**
451
451
  * @template {Extract<keyof Events, string>} K
@@ -454,7 +454,7 @@ class Wr {
454
454
  * @returns {() => void}
455
455
  */
456
456
  $on(t, r) {
457
- if (!et(r))
457
+ if (!Je(r))
458
458
  return I;
459
459
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
460
460
  return n.push(r), () => {
@@ -467,11 +467,11 @@ class Wr {
467
467
  * @returns {void}
468
468
  */
469
469
  $set(t) {
470
- this.$$set && !Ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
470
+ this.$$set && !wr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
471
471
  }
472
472
  }
473
- const Zr = "4";
474
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Zr);
473
+ const Wr = "4";
474
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Wr);
475
475
  /*! *****************************************************************************
476
476
  Copyright (c) Microsoft Corporation.
477
477
 
@@ -486,24 +486,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
486
486
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
487
487
  PERFORMANCE OF THIS SOFTWARE.
488
488
  ***************************************************************************** */
489
- var Ue = function(e, t) {
490
- return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
489
+ var $e = function(e, t) {
490
+ return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
491
491
  r.__proto__ = n;
492
492
  } || function(r, n) {
493
493
  for (var i in n)
494
494
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
495
- }, Ue(e, t);
495
+ }, $e(e, t);
496
496
  };
497
- function ue(e, t) {
497
+ function F(e, t) {
498
498
  if (typeof t != "function" && t !== null)
499
499
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
500
- Ue(e, t);
500
+ $e(e, t);
501
501
  function r() {
502
502
  this.constructor = e;
503
503
  }
504
504
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
505
505
  }
506
- function De(e) {
506
+ var y = function() {
507
+ return y = Object.assign || function(t) {
508
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
509
+ r = arguments[n];
510
+ for (var o in r)
511
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
512
+ }
513
+ return t;
514
+ }, y.apply(this, arguments);
515
+ };
516
+ function Zr(e, t) {
517
+ var r = {};
518
+ for (var n in e)
519
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
520
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
521
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
522
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
523
+ return r;
524
+ }
525
+ function Fe(e) {
507
526
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
508
527
  if (r)
509
528
  return r.call(e);
@@ -515,7 +534,7 @@ function De(e) {
515
534
  };
516
535
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
517
536
  }
518
- function Ge(e, t) {
537
+ function Ue(e, t) {
519
538
  var r = typeof Symbol == "function" && e[Symbol.iterator];
520
539
  if (!r)
521
540
  return e;
@@ -535,22 +554,22 @@ function Ge(e, t) {
535
554
  }
536
555
  return o;
537
556
  }
538
- function je(e, t, r) {
539
- if (arguments.length === 2)
557
+ function J(e, t, r) {
558
+ if (r || arguments.length === 2)
540
559
  for (var n = 0, i = t.length, o; n < i; n++)
541
560
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
542
561
  return e.concat(o || t);
543
562
  }
544
- function $(e) {
563
+ function R(e) {
545
564
  return typeof e == "function";
546
565
  }
547
- function zt(e) {
566
+ function Vt(e) {
548
567
  var t = function(n) {
549
568
  Error.call(n), n.stack = new Error().stack;
550
569
  }, r = e(t);
551
570
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
552
571
  }
553
- var Oe = zt(function(e) {
572
+ var Ae = Vt(function(e) {
554
573
  return function(r) {
555
574
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
556
575
  ` + r.map(function(n, i) {
@@ -559,13 +578,13 @@ var Oe = zt(function(e) {
559
578
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
560
579
  };
561
580
  });
562
- function ke(e, t) {
581
+ function De(e, t) {
563
582
  if (e) {
564
583
  var r = e.indexOf(t);
565
584
  0 <= r && e.splice(r, 1);
566
585
  }
567
586
  }
568
- var Ee = function() {
587
+ var _e = function() {
569
588
  function e(t) {
570
589
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
571
590
  }
@@ -577,7 +596,7 @@ var Ee = function() {
577
596
  if (s)
578
597
  if (this._parentage = null, Array.isArray(s))
579
598
  try {
580
- for (var a = De(s), l = a.next(); !l.done; l = a.next()) {
599
+ for (var a = Fe(s), l = a.next(); !l.done; l = a.next()) {
581
600
  var u = l.value;
582
601
  u.remove(this);
583
602
  }
@@ -594,22 +613,22 @@ var Ee = function() {
594
613
  else
595
614
  s.remove(this);
596
615
  var h = this.initialTeardown;
597
- if ($(h))
616
+ if (R(h))
598
617
  try {
599
618
  h();
600
619
  } catch (d) {
601
- o = d instanceof Oe ? d.errors : [d];
620
+ o = d instanceof Ae ? d.errors : [d];
602
621
  }
603
622
  var f = this._finalizers;
604
623
  if (f) {
605
624
  this._finalizers = null;
606
625
  try {
607
- for (var c = De(f), p = c.next(); !p.done; p = c.next()) {
626
+ for (var c = Fe(f), p = c.next(); !p.done; p = c.next()) {
608
627
  var m = p.value;
609
628
  try {
610
- ct(m);
629
+ ht(m);
611
630
  } catch (d) {
612
- o = o != null ? o : [], d instanceof Oe ? o = je(je([], Ge(o)), Ge(d.errors)) : o.push(d);
631
+ o = o != null ? o : [], d instanceof Ae ? o = J(J([], Ue(o)), Ue(d.errors)) : o.push(d);
613
632
  }
614
633
  }
615
634
  } catch (d) {
@@ -624,13 +643,13 @@ var Ee = function() {
624
643
  }
625
644
  }
626
645
  if (o)
627
- throw new Oe(o);
646
+ throw new Ae(o);
628
647
  }
629
648
  }, e.prototype.add = function(t) {
630
649
  var r;
631
650
  if (t && t !== this)
632
651
  if (this.closed)
633
- ct(t);
652
+ ht(t);
634
653
  else {
635
654
  if (t instanceof e) {
636
655
  if (t.closed || t._hasParent(this))
@@ -647,52 +666,56 @@ var Ee = function() {
647
666
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
648
667
  }, e.prototype._removeParent = function(t) {
649
668
  var r = this._parentage;
650
- r === t ? this._parentage = null : Array.isArray(r) && ke(r, t);
669
+ r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
651
670
  }, e.prototype.remove = function(t) {
652
671
  var r = this._finalizers;
653
- r && ke(r, t), t instanceof e && t._removeParent(this);
672
+ r && De(r, t), t instanceof e && t._removeParent(this);
654
673
  }, e.EMPTY = function() {
655
674
  var t = new e();
656
675
  return t.closed = !0, t;
657
676
  }(), e;
658
- }(), Wt = Ee.EMPTY;
659
- function Zt(e) {
660
- return e instanceof Ee || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
661
- }
662
- function ct(e) {
663
- $(e) ? e() : e.unsubscribe();
664
- }
665
- var Qr = {
666
- Promise: void 0
667
- }, Jr = {
677
+ }(), Xt = _e.EMPTY;
678
+ function zt(e) {
679
+ return e instanceof _e || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
680
+ }
681
+ function ht(e) {
682
+ R(e) ? e() : e.unsubscribe();
683
+ }
684
+ var Wt = {
685
+ onUnhandledError: null,
686
+ onStoppedNotification: null,
687
+ Promise: void 0,
688
+ useDeprecatedSynchronousErrorHandling: !1,
689
+ useDeprecatedNextContext: !1
690
+ }, Qr = {
668
691
  setTimeout: function(e, t) {
669
692
  for (var r = [], n = 2; n < arguments.length; n++)
670
693
  r[n - 2] = arguments[n];
671
- return setTimeout.apply(void 0, je([e, t], Ge(r)));
694
+ return setTimeout.apply(void 0, J([e, t], Ue(r)));
672
695
  },
673
696
  clearTimeout: function(e) {
674
697
  return clearTimeout(e);
675
698
  },
676
699
  delegate: void 0
677
700
  };
678
- function Yr(e) {
679
- Jr.setTimeout(function() {
701
+ function Jr(e) {
702
+ Qr.setTimeout(function() {
680
703
  throw e;
681
704
  });
682
705
  }
683
- function pt() {
706
+ function ft() {
684
707
  }
685
708
  function me(e) {
686
709
  e();
687
710
  }
688
- var Qt = function(e) {
689
- ue(t, e);
711
+ var Zt = function(e) {
712
+ F(t, e);
690
713
  function t(r) {
691
714
  var n = e.call(this) || this;
692
- return n.isStopped = !1, r ? (n.destination = r, Zt(r) && r.add(n)) : n.destination = en, n;
715
+ return n.isStopped = !1, r ? (n.destination = r, zt(r) && r.add(n)) : n.destination = en, n;
693
716
  }
694
717
  return t.create = function(r, n, i) {
695
- return new Ve(r, n, i);
718
+ return new Ge(r, n, i);
696
719
  }, t.prototype.next = function(r) {
697
720
  this.isStopped || this._next(r);
698
721
  }, t.prototype.error = function(r) {
@@ -716,7 +739,11 @@ var Qt = function(e) {
716
739
  this.unsubscribe();
717
740
  }
718
741
  }, t;
719
- }(Ee), qr = function() {
742
+ }(_e), Yr = Function.prototype.bind;
743
+ function Be(e, t) {
744
+ return Yr.call(e, t);
745
+ }
746
+ var qr = function() {
720
747
  function e(t) {
721
748
  this.partialObserver = t;
722
749
  }
@@ -747,29 +774,41 @@ var Qt = function(e) {
747
774
  ce(r);
748
775
  }
749
776
  }, e;
750
- }(), Ve = function(e) {
751
- ue(t, e);
777
+ }(), Ge = function(e) {
778
+ F(t, e);
752
779
  function t(r, n, i) {
753
780
  var o = e.call(this) || this, s;
754
- return $(r) || !r ? s = {
755
- next: r != null ? r : void 0,
756
- error: n != null ? n : void 0,
757
- complete: i != null ? i : void 0
758
- } : s = r, o.destination = new qr(s), o;
781
+ if (R(r) || !r)
782
+ s = {
783
+ next: r != null ? r : void 0,
784
+ error: n != null ? n : void 0,
785
+ complete: i != null ? i : void 0
786
+ };
787
+ else {
788
+ var a;
789
+ o && Wt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
790
+ return o.unsubscribe();
791
+ }, s = {
792
+ next: r.next && Be(r.next, a),
793
+ error: r.error && Be(r.error, a),
794
+ complete: r.complete && Be(r.complete, a)
795
+ }) : s = r;
796
+ }
797
+ return o.destination = new qr(s), o;
759
798
  }
760
799
  return t;
761
- }(Qt);
800
+ }(Zt);
762
801
  function ce(e) {
763
- Yr(e);
802
+ Jr(e);
764
803
  }
765
804
  function Kr(e) {
766
805
  throw e;
767
806
  }
768
807
  var en = {
769
808
  closed: !0,
770
- next: pt,
809
+ next: ft,
771
810
  error: Kr,
772
- complete: pt
811
+ complete: ft
773
812
  }, tn = function() {
774
813
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
775
814
  }();
@@ -783,7 +822,7 @@ function nn(e) {
783
822
  }, r);
784
823
  };
785
824
  }
786
- var dt = function() {
825
+ var ct = function() {
787
826
  function e(t) {
788
827
  t && (this._subscribe = t);
789
828
  }
@@ -791,7 +830,7 @@ var dt = function() {
791
830
  var r = new e();
792
831
  return r.source = this, r.operator = t, r;
793
832
  }, e.prototype.subscribe = function(t, r, n) {
794
- var i = this, o = sn(t) ? t : new Ve(t, r, n);
833
+ var i = this, o = sn(t) ? t : new Ge(t, r, n);
795
834
  return me(function() {
796
835
  var s = i, a = s.operator, l = s.source;
797
836
  o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
@@ -804,8 +843,8 @@ var dt = function() {
804
843
  }
805
844
  }, e.prototype.forEach = function(t, r) {
806
845
  var n = this;
807
- return r = mt(r), new r(function(i, o) {
808
- var s = new Ve({
846
+ return r = pt(r), new r(function(i, o) {
847
+ var s = new Ge({
809
848
  next: function(a) {
810
849
  try {
811
850
  t(a);
@@ -829,7 +868,7 @@ var dt = function() {
829
868
  return nn(t)(this);
830
869
  }, e.prototype.toPromise = function(t) {
831
870
  var r = this;
832
- return t = mt(t), new t(function(n, i) {
871
+ return t = pt(t), new t(function(n, i) {
833
872
  var o;
834
873
  r.subscribe(function(s) {
835
874
  return o = s;
@@ -843,28 +882,28 @@ var dt = function() {
843
882
  return new e(t);
844
883
  }, e;
845
884
  }();
846
- function mt(e) {
885
+ function pt(e) {
847
886
  var t;
848
- return (t = e != null ? e : Qr.Promise) !== null && t !== void 0 ? t : Promise;
887
+ return (t = e != null ? e : Wt.Promise) !== null && t !== void 0 ? t : Promise;
849
888
  }
850
889
  function on(e) {
851
- return e && $(e.next) && $(e.error) && $(e.complete);
890
+ return e && R(e.next) && R(e.error) && R(e.complete);
852
891
  }
853
892
  function sn(e) {
854
- return e && e instanceof Qt || on(e) && Zt(e);
893
+ return e && e instanceof Zt || on(e) && zt(e);
855
894
  }
856
- var an = zt(function(e) {
895
+ var an = Vt(function(e) {
857
896
  return function() {
858
897
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
859
898
  };
860
- }), Jt = function(e) {
861
- ue(t, e);
899
+ }), Qt = function(e) {
900
+ F(t, e);
862
901
  function t() {
863
902
  var r = e.call(this) || this;
864
903
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
865
904
  }
866
905
  return t.prototype.lift = function(r) {
867
- var n = new bt(this, this);
906
+ var n = new dt(this, this);
868
907
  return n.operator = r, n;
869
908
  }, t.prototype._throwIfClosed = function() {
870
909
  if (this.closed)
@@ -876,7 +915,7 @@ var an = zt(function(e) {
876
915
  if (n._throwIfClosed(), !n.isStopped) {
877
916
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
878
917
  try {
879
- for (var s = De(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
918
+ for (var s = Fe(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
880
919
  var l = a.value;
881
920
  l.next(r);
882
921
  }
@@ -925,20 +964,20 @@ var an = zt(function(e) {
925
964
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
926
965
  }, t.prototype._innerSubscribe = function(r) {
927
966
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
928
- return o || s ? Wt : (this.currentObservers = null, a.push(r), new Ee(function() {
929
- n.currentObservers = null, ke(a, r);
967
+ return o || s ? Xt : (this.currentObservers = null, a.push(r), new _e(function() {
968
+ n.currentObservers = null, De(a, r);
930
969
  }));
931
970
  }, t.prototype._checkFinalizedStatuses = function(r) {
932
971
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
933
972
  i ? r.error(o) : s && r.complete();
934
973
  }, t.prototype.asObservable = function() {
935
- var r = new dt();
974
+ var r = new ct();
936
975
  return r.source = this, r;
937
976
  }, t.create = function(r, n) {
938
- return new bt(r, n);
977
+ return new dt(r, n);
939
978
  }, t;
940
- }(dt), bt = function(e) {
941
- ue(t, e);
979
+ }(ct), dt = function(e) {
980
+ F(t, e);
942
981
  function t(r, n) {
943
982
  var i = e.call(this) || this;
944
983
  return i.destination = r, i.source = n, i;
@@ -954,17 +993,17 @@ var an = zt(function(e) {
954
993
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
955
994
  }, t.prototype._subscribe = function(r) {
956
995
  var n, i;
957
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Wt;
996
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Xt;
958
997
  }, t;
959
- }(Jt), Yt = {
998
+ }(Qt), Jt = {
960
999
  now: function() {
961
- return (Yt.delegate || Date).now();
1000
+ return (Jt.delegate || Date).now();
962
1001
  },
963
1002
  delegate: void 0
964
1003
  }, un = function(e) {
965
- ue(t, e);
1004
+ F(t, e);
966
1005
  function t(r, n, i) {
967
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Yt);
1006
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Jt);
968
1007
  var o = e.call(this) || this;
969
1008
  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;
970
1009
  }
@@ -984,24 +1023,24 @@ var an = zt(function(e) {
984
1023
  u && o.splice(0, u + 1);
985
1024
  }
986
1025
  }, t;
987
- }(Jt);
988
- const gt = [], vt = {}, ln = (e, t = 0) => {
989
- if (gt.indexOf(e) == -1) {
1026
+ }(Qt);
1027
+ const mt = [], bt = {}, ln = (e, t = 0) => {
1028
+ if (mt.indexOf(e) == -1) {
990
1029
  const r = new un(t);
991
- vt[e] = r, gt.push(e);
1030
+ bt[e] = r, mt.push(e);
992
1031
  }
993
- return vt[e];
1032
+ return bt[e];
994
1033
  }, z = [];
995
1034
  function hn(e, t) {
996
1035
  return {
997
- subscribe: xe(e, t).subscribe
1036
+ subscribe: Ee(e, t).subscribe
998
1037
  };
999
1038
  }
1000
- function xe(e, t = I) {
1039
+ function Ee(e, t = I) {
1001
1040
  let r;
1002
1041
  const n = /* @__PURE__ */ new Set();
1003
1042
  function i(a) {
1004
- if (kt(e, a) && (e = a, r)) {
1043
+ if (Gt(e, a) && (e = a, r)) {
1005
1044
  const l = !z.length;
1006
1045
  for (const u of n)
1007
1046
  u[1](), z.push(u, e);
@@ -1023,7 +1062,7 @@ function xe(e, t = I) {
1023
1062
  }
1024
1063
  return { set: i, update: o, subscribe: s };
1025
1064
  }
1026
- function ee(e, t, r) {
1065
+ function te(e, t, r) {
1027
1066
  const n = !Array.isArray(e), i = n ? [e] : e;
1028
1067
  if (!i.every(Boolean))
1029
1068
  throw new Error("derived() expects stores as input, got a falsy value");
@@ -1037,12 +1076,12 @@ function ee(e, t, r) {
1037
1076
  return;
1038
1077
  f();
1039
1078
  const m = t(n ? u[0] : u, s, a);
1040
- o ? s(m) : f = et(m) ? m : I;
1079
+ o ? s(m) : f = Je(m) ? m : I;
1041
1080
  }, p = i.map(
1042
- (m, d) => Vt(
1081
+ (m, d) => jt(
1043
1082
  m,
1044
- (y) => {
1045
- u[d] = y, h &= ~(1 << d), l && c();
1083
+ (_) => {
1084
+ u[d] = _, h &= ~(1 << d), l && c();
1046
1085
  },
1047
1086
  () => {
1048
1087
  h |= 1 << d;
@@ -1050,7 +1089,7 @@ function ee(e, t, r) {
1050
1089
  )
1051
1090
  );
1052
1091
  return l = !0, c(), function() {
1053
- se(p), f(), l = !1;
1092
+ ae(p), f(), l = !1;
1054
1093
  };
1055
1094
  });
1056
1095
  }
@@ -1074,29 +1113,29 @@ function gn(e) {
1074
1113
  function vn(e) {
1075
1114
  return Array.isArray(e) ? [] : {};
1076
1115
  }
1077
- function ie(e, t) {
1078
- return t.clone !== !1 && t.isMergeableObject(e) ? J(vn(e), e, t) : e;
1116
+ function oe(e, t) {
1117
+ return t.clone !== !1 && t.isMergeableObject(e) ? Y(vn(e), e, t) : e;
1079
1118
  }
1080
1119
  function yn(e, t, r) {
1081
1120
  return e.concat(t).map(function(n) {
1082
- return ie(n, r);
1121
+ return oe(n, r);
1083
1122
  });
1084
1123
  }
1085
1124
  function _n(e, t) {
1086
1125
  if (!t.customMerge)
1087
- return J;
1126
+ return Y;
1088
1127
  var r = t.customMerge(e);
1089
- return typeof r == "function" ? r : J;
1128
+ return typeof r == "function" ? r : Y;
1090
1129
  }
1091
1130
  function En(e) {
1092
1131
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1093
1132
  return Object.propertyIsEnumerable.call(e, t);
1094
1133
  }) : [];
1095
1134
  }
1096
- function yt(e) {
1135
+ function gt(e) {
1097
1136
  return Object.keys(e).concat(En(e));
1098
1137
  }
1099
- function qt(e, t) {
1138
+ function Yt(e, t) {
1100
1139
  try {
1101
1140
  return t in e;
1102
1141
  } catch (r) {
@@ -1104,179 +1143,129 @@ function qt(e, t) {
1104
1143
  }
1105
1144
  }
1106
1145
  function xn(e, t) {
1107
- return qt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1146
+ return Yt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1108
1147
  }
1109
1148
  function Sn(e, t, r) {
1110
1149
  var n = {};
1111
- return r.isMergeableObject(e) && yt(e).forEach(function(i) {
1112
- n[i] = ie(e[i], r);
1113
- }), yt(t).forEach(function(i) {
1114
- xn(e, i) || (qt(e, i) && r.isMergeableObject(t[i]) ? n[i] = _n(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
1150
+ return r.isMergeableObject(e) && gt(e).forEach(function(i) {
1151
+ n[i] = oe(e[i], r);
1152
+ }), gt(t).forEach(function(i) {
1153
+ xn(e, i) || (Yt(e, i) && r.isMergeableObject(t[i]) ? n[i] = _n(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
1115
1154
  }), n;
1116
1155
  }
1117
- function J(e, t, r) {
1118
- r = r || {}, r.arrayMerge = r.arrayMerge || yn, r.isMergeableObject = r.isMergeableObject || cn, r.cloneUnlessOtherwiseSpecified = ie;
1156
+ function Y(e, t, r) {
1157
+ r = r || {}, r.arrayMerge = r.arrayMerge || yn, r.isMergeableObject = r.isMergeableObject || cn, r.cloneUnlessOtherwiseSpecified = oe;
1119
1158
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1120
- return o ? n ? r.arrayMerge(e, t, r) : Sn(e, t, r) : ie(t, r);
1159
+ return o ? n ? r.arrayMerge(e, t, r) : Sn(e, t, r) : oe(t, r);
1121
1160
  }
1122
- J.all = function(t, r) {
1161
+ Y.all = function(t, r) {
1123
1162
  if (!Array.isArray(t))
1124
1163
  throw new Error("first argument should be an array");
1125
1164
  return t.reduce(function(n, i) {
1126
- return J(n, i, r);
1165
+ return Y(n, i, r);
1127
1166
  }, {});
1128
1167
  };
1129
- var Tn = J, wn = Tn;
1130
- const Hn = /* @__PURE__ */ fn(wn);
1131
- var Xe = function(e, t) {
1132
- return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1133
- r.__proto__ = n;
1134
- } || function(r, n) {
1135
- for (var i in n)
1136
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1137
- }, Xe(e, t);
1138
- };
1139
- function Se(e, t) {
1140
- if (typeof t != "function" && t !== null)
1141
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1142
- Xe(e, t);
1143
- function r() {
1144
- this.constructor = e;
1145
- }
1146
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1147
- }
1148
- var M = function() {
1149
- return M = Object.assign || function(t) {
1150
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1151
- r = arguments[n];
1152
- for (var o in r)
1153
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1154
- }
1155
- return t;
1156
- }, M.apply(this, arguments);
1157
- };
1158
- function An(e, t) {
1159
- var r = {};
1160
- for (var n in e)
1161
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1162
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1163
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1164
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1165
- return r;
1166
- }
1167
- function Pe(e, t, r) {
1168
- if (r || arguments.length === 2)
1169
- for (var n = 0, i = t.length, o; n < i; n++)
1170
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1171
- return e.concat(o || Array.prototype.slice.call(t));
1172
- }
1173
- function Ce(e, t) {
1174
- var r = t && t.cache ? t.cache : Mn, n = t && t.serializer ? t.serializer : In, i = t && t.strategy ? t.strategy : Pn;
1168
+ var Tn = Y, Hn = Tn;
1169
+ const wn = /* @__PURE__ */ fn(Hn);
1170
+ function Pe(e, t) {
1171
+ var r = t && t.cache ? t.cache : In, n = t && t.serializer ? t.serializer : Cn, i = t && t.strategy ? t.strategy : Bn;
1175
1172
  return i(e, {
1176
1173
  cache: r,
1177
1174
  serializer: n
1178
1175
  });
1179
1176
  }
1180
- function Bn(e) {
1177
+ function An(e) {
1181
1178
  return e == null || typeof e == "number" || typeof e == "boolean";
1182
1179
  }
1183
- function On(e, t, r, n) {
1184
- var i = Bn(n) ? n : r(n), o = t.get(i);
1180
+ function qt(e, t, r, n) {
1181
+ var i = An(n) ? n : r(n), o = t.get(i);
1185
1182
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1186
1183
  }
1187
1184
  function Kt(e, t, r) {
1188
1185
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1189
1186
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1190
1187
  }
1191
- function er(e, t, r, n, i) {
1188
+ function qe(e, t, r, n, i) {
1192
1189
  return r.bind(t, e, n, i);
1193
1190
  }
1191
+ function Bn(e, t) {
1192
+ var r = e.length === 1 ? qt : Kt;
1193
+ return qe(e, this, r, t.cache.create(), t.serializer);
1194
+ }
1194
1195
  function Pn(e, t) {
1195
- var r = e.length === 1 ? On : Kt;
1196
- return er(e, this, r, t.cache.create(), t.serializer);
1196
+ return qe(e, this, Kt, t.cache.create(), t.serializer);
1197
1197
  }
1198
- function Cn(e, t) {
1199
- return er(e, this, Kt, t.cache.create(), t.serializer);
1198
+ function On(e, t) {
1199
+ return qe(e, this, qt, t.cache.create(), t.serializer);
1200
1200
  }
1201
- var In = function() {
1201
+ var Cn = function() {
1202
1202
  return JSON.stringify(arguments);
1203
- }, Nn = (
1204
- /** @class */
1205
- function() {
1206
- function e() {
1207
- this.cache = /* @__PURE__ */ Object.create(null);
1208
- }
1209
- return e.prototype.get = function(t) {
1210
- return this.cache[t];
1211
- }, e.prototype.set = function(t, r) {
1212
- this.cache[t] = r;
1213
- }, e;
1214
- }()
1215
- ), Mn = {
1203
+ };
1204
+ function Ke() {
1205
+ this.cache = /* @__PURE__ */ Object.create(null);
1206
+ }
1207
+ Ke.prototype.get = function(e) {
1208
+ return this.cache[e];
1209
+ };
1210
+ Ke.prototype.set = function(e, t) {
1211
+ this.cache[e] = t;
1212
+ };
1213
+ var In = {
1216
1214
  create: function() {
1217
- return new Nn();
1215
+ return new Ke();
1218
1216
  }
1219
- }, Ie = {
1220
- variadic: Cn
1221
- }, ve = function() {
1222
- return ve = Object.assign || function(t) {
1223
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1224
- r = arguments[n];
1225
- for (var o in r)
1226
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1227
- }
1228
- return t;
1229
- }, ve.apply(this, arguments);
1230
- };
1231
- var b;
1217
+ }, Oe = {
1218
+ variadic: Pn,
1219
+ monadic: On
1220
+ }, b;
1232
1221
  (function(e) {
1233
1222
  e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
1234
1223
  })(b || (b = {}));
1235
- var _;
1224
+ var E;
1236
1225
  (function(e) {
1237
1226
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
1238
- })(_ || (_ = {}));
1239
- var Y;
1227
+ })(E || (E = {}));
1228
+ var q;
1240
1229
  (function(e) {
1241
1230
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1242
- })(Y || (Y = {}));
1243
- function _t(e) {
1244
- return e.type === _.literal;
1231
+ })(q || (q = {}));
1232
+ function vt(e) {
1233
+ return e.type === E.literal;
1245
1234
  }
1246
- function Ln(e) {
1247
- return e.type === _.argument;
1235
+ function Nn(e) {
1236
+ return e.type === E.argument;
1237
+ }
1238
+ function er(e) {
1239
+ return e.type === E.number;
1248
1240
  }
1249
1241
  function tr(e) {
1250
- return e.type === _.number;
1242
+ return e.type === E.date;
1251
1243
  }
1252
1244
  function rr(e) {
1253
- return e.type === _.date;
1245
+ return e.type === E.time;
1254
1246
  }
1255
1247
  function nr(e) {
1256
- return e.type === _.time;
1248
+ return e.type === E.select;
1257
1249
  }
1258
1250
  function ir(e) {
1259
- return e.type === _.select;
1251
+ return e.type === E.plural;
1260
1252
  }
1261
- function or(e) {
1262
- return e.type === _.plural;
1253
+ function Mn(e) {
1254
+ return e.type === E.pound;
1263
1255
  }
1264
- function Rn(e) {
1265
- return e.type === _.pound;
1256
+ function or(e) {
1257
+ return e.type === E.tag;
1266
1258
  }
1267
1259
  function sr(e) {
1268
- return e.type === _.tag;
1260
+ return !!(e && typeof e == "object" && e.type === q.number);
1269
1261
  }
1270
- function ar(e) {
1271
- return !!(e && typeof e == "object" && e.type === Y.number);
1262
+ function je(e) {
1263
+ return !!(e && typeof e == "object" && e.type === q.dateTime);
1272
1264
  }
1273
- function ze(e) {
1274
- return !!(e && typeof e == "object" && e.type === Y.dateTime);
1275
- }
1276
- var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, $n = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1277
- function Fn(e) {
1265
+ var ar = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ln = /(?:[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;
1266
+ function Rn(e) {
1278
1267
  var t = {};
1279
- return e.replace($n, function(r) {
1268
+ return e.replace(Ln, function(r) {
1280
1269
  var n = r.length;
1281
1270
  switch (r[0]) {
1282
1271
  case "G":
@@ -1365,21 +1354,11 @@ function Fn(e) {
1365
1354
  return "";
1366
1355
  }), t;
1367
1356
  }
1368
- var S = function() {
1369
- return S = Object.assign || function(t) {
1370
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1371
- r = arguments[n];
1372
- for (var o in r)
1373
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1374
- }
1375
- return t;
1376
- }, S.apply(this, arguments);
1377
- };
1378
- var Un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1379
- function Dn(e) {
1357
+ var $n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1358
+ function Fn(e) {
1380
1359
  if (e.length === 0)
1381
1360
  throw new Error("Number skeleton cannot be empty");
1382
- for (var t = e.split(Un).filter(function(c) {
1361
+ for (var t = e.split($n).filter(function(c) {
1383
1362
  return c.length > 0;
1384
1363
  }), r = [], n = 0, i = t; n < i.length; n++) {
1385
1364
  var o = i[n], s = o.split("/");
@@ -1394,17 +1373,17 @@ function Dn(e) {
1394
1373
  }
1395
1374
  return r;
1396
1375
  }
1397
- function Gn(e) {
1376
+ function Un(e) {
1398
1377
  return e.replace(/^(.*?)-/, "");
1399
1378
  }
1400
- var Et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, lr = /^(@+)?(\+|#+)?[rs]?$/g, jn = /(\*)(0+)|(#+)(0+)|(0+)/g, hr = /^(0+)$/;
1401
- function xt(e) {
1379
+ var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ur = /^(@+)?(\+|#+)?[rs]?$/g, Dn = /(\*)(0+)|(#+)(0+)|(0+)/g, lr = /^(0+)$/;
1380
+ function _t(e) {
1402
1381
  var t = {};
1403
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(lr, function(r, n, i) {
1382
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ur, function(r, n, i) {
1404
1383
  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)), "";
1405
1384
  }), t;
1406
1385
  }
1407
- function fr(e) {
1386
+ function hr(e) {
1408
1387
  switch (e) {
1409
1388
  case "sign-auto":
1410
1389
  return {
@@ -1444,7 +1423,7 @@ function fr(e) {
1444
1423
  };
1445
1424
  }
1446
1425
  }
1447
- function kn(e) {
1426
+ function Gn(e) {
1448
1427
  var t;
1449
1428
  if (e[0] === "E" && e[1] === "E" ? (t = {
1450
1429
  notation: "engineering"
@@ -1452,17 +1431,17 @@ function kn(e) {
1452
1431
  notation: "scientific"
1453
1432
  }, e = e.slice(1)), t) {
1454
1433
  var r = e.slice(0, 2);
1455
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !hr.test(e))
1434
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !lr.test(e))
1456
1435
  throw new Error("Malformed concise eng/scientific notation");
1457
1436
  t.minimumIntegerDigits = e.length;
1458
1437
  }
1459
1438
  return t;
1460
1439
  }
1461
- function St(e) {
1462
- var t = {}, r = fr(e);
1440
+ function Et(e) {
1441
+ var t = {}, r = hr(e);
1463
1442
  return r || t;
1464
1443
  }
1465
- function Vn(e) {
1444
+ function jn(e) {
1466
1445
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1467
1446
  var i = n[r];
1468
1447
  switch (i.stem) {
@@ -1486,7 +1465,7 @@ function Vn(e) {
1486
1465
  continue;
1487
1466
  case "measure-unit":
1488
1467
  case "unit":
1489
- t.style = "unit", t.unit = Gn(i.options[0]);
1468
+ t.style = "unit", t.unit = Un(i.options[0]);
1490
1469
  continue;
1491
1470
  case "compact-short":
1492
1471
  case "K":
@@ -1497,13 +1476,13 @@ function Vn(e) {
1497
1476
  t.notation = "compact", t.compactDisplay = "long";
1498
1477
  continue;
1499
1478
  case "scientific":
1500
- t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1501
- return S(S({}, l), St(u));
1479
+ t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1480
+ return y(y({}, l), Et(u));
1502
1481
  }, {}));
1503
1482
  continue;
1504
1483
  case "engineering":
1505
- t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1506
- return S(S({}, l), St(u));
1484
+ t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1485
+ return y(y({}, l), Et(u));
1507
1486
  }, {}));
1508
1487
  continue;
1509
1488
  case "notation-simple":
@@ -1548,7 +1527,7 @@ function Vn(e) {
1548
1527
  case "integer-width":
1549
1528
  if (i.options.length > 1)
1550
1529
  throw new RangeError("integer-width stems only accept a single optional option");
1551
- i.options[0].replace(jn, function(l, u, h, f, c, p) {
1530
+ i.options[0].replace(Dn, function(l, u, h, f, c, p) {
1552
1531
  if (u)
1553
1532
  t.minimumIntegerDigits = h.length;
1554
1533
  else {
@@ -1561,28 +1540,28 @@ function Vn(e) {
1561
1540
  });
1562
1541
  continue;
1563
1542
  }
1564
- if (hr.test(i.stem)) {
1543
+ if (lr.test(i.stem)) {
1565
1544
  t.minimumIntegerDigits = i.stem.length;
1566
1545
  continue;
1567
1546
  }
1568
- if (Et.test(i.stem)) {
1547
+ if (yt.test(i.stem)) {
1569
1548
  if (i.options.length > 1)
1570
1549
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1571
- i.stem.replace(Et, function(l, u, h, f, c, p) {
1550
+ i.stem.replace(yt, function(l, u, h, f, c, p) {
1572
1551
  return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1573
1552
  });
1574
1553
  var o = i.options[0];
1575
- o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), xt(o)));
1554
+ o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), _t(o)));
1576
1555
  continue;
1577
1556
  }
1578
- if (lr.test(i.stem)) {
1579
- t = S(S({}, t), xt(i.stem));
1557
+ if (ur.test(i.stem)) {
1558
+ t = y(y({}, t), _t(i.stem));
1580
1559
  continue;
1581
1560
  }
1582
- var s = fr(i.stem);
1583
- s && (t = S(S({}, t), s));
1584
- var a = kn(i.stem);
1585
- a && (t = S(S({}, t), a));
1561
+ var s = hr(i.stem);
1562
+ s && (t = y(y({}, t), s));
1563
+ var a = Gn(i.stem);
1564
+ a && (t = y(y({}, t), a));
1586
1565
  }
1587
1566
  return t;
1588
1567
  }
@@ -3001,13 +2980,13 @@ var pe = {
3001
2980
  "h"
3002
2981
  ]
3003
2982
  };
3004
- function Xn(e, t) {
2983
+ function kn(e, t) {
3005
2984
  for (var r = "", n = 0; n < e.length; n++) {
3006
2985
  var i = e.charAt(n);
3007
2986
  if (i === "j") {
3008
2987
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3009
2988
  o++, n++;
3010
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = zn(t);
2989
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Vn(t);
3011
2990
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
3012
2991
  r += l;
3013
2992
  for (; s-- > 0; )
@@ -3017,7 +2996,7 @@ function Xn(e, t) {
3017
2996
  }
3018
2997
  return r;
3019
2998
  }
3020
- function zn(e) {
2999
+ function Vn(e) {
3021
3000
  var t = e.hourCycle;
3022
3001
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3023
3002
  e.hourCycles && // @ts-ignore
@@ -3039,20 +3018,20 @@ function zn(e) {
3039
3018
  var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
3040
3019
  return i[0];
3041
3020
  }
3042
- var Ne, Wn = new RegExp("^".concat(ur.source, "*")), Zn = new RegExp("".concat(ur.source, "*$"));
3021
+ var Ce, Xn = new RegExp("^".concat(ar.source, "*")), zn = new RegExp("".concat(ar.source, "*$"));
3043
3022
  function g(e, t) {
3044
3023
  return { start: e, end: t };
3045
3024
  }
3046
- var Qn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Jn = !!String.fromCodePoint, Yn = !!Object.fromEntries, qn = !!String.prototype.codePointAt, Kn = !!String.prototype.trimStart, ei = !!String.prototype.trimEnd, ti = !!Number.isSafeInteger, ri = ti ? Number.isSafeInteger : function(e) {
3025
+ var Wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Zn = !!String.fromCodePoint, Qn = !!Object.fromEntries, Jn = !!String.prototype.codePointAt, Yn = !!String.prototype.trimStart, qn = !!String.prototype.trimEnd, Kn = !!Number.isSafeInteger, ei = Kn ? Number.isSafeInteger : function(e) {
3047
3026
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3048
- }, We = !0;
3027
+ }, ke = !0;
3049
3028
  try {
3050
- var ni = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3051
- We = ((Ne = ni.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
3029
+ var ti = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3030
+ ke = ((Ce = ti.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
3052
3031
  } catch (e) {
3053
- We = !1;
3032
+ ke = !1;
3054
3033
  }
3055
- var Tt = Qn ? (
3034
+ var xt = Wn ? (
3056
3035
  // Native
3057
3036
  function(t, r, n) {
3058
3037
  return t.startsWith(r, n);
@@ -3062,7 +3041,7 @@ var Tt = Qn ? (
3062
3041
  function(t, r, n) {
3063
3042
  return t.slice(n, n + r.length) === r;
3064
3043
  }
3065
- ), Ze = Jn ? String.fromCodePoint : (
3044
+ ), Ve = Zn ? String.fromCodePoint : (
3066
3045
  // IE11
3067
3046
  function() {
3068
3047
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3074,9 +3053,9 @@ var Tt = Qn ? (
3074
3053
  }
3075
3054
  return n;
3076
3055
  }
3077
- ), wt = (
3056
+ ), St = (
3078
3057
  // native
3079
- Yn ? Object.fromEntries : (
3058
+ Qn ? Object.fromEntries : (
3080
3059
  // Ponyfill
3081
3060
  function(t) {
3082
3061
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3086,7 +3065,7 @@ var Tt = Qn ? (
3086
3065
  return r;
3087
3066
  }
3088
3067
  )
3089
- ), cr = qn ? (
3068
+ ), fr = Jn ? (
3090
3069
  // Native
3091
3070
  function(t, r) {
3092
3071
  return t.codePointAt(r);
@@ -3100,7 +3079,7 @@ var Tt = Qn ? (
3100
3079
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3101
3080
  }
3102
3081
  }
3103
- ), ii = Kn ? (
3082
+ ), ri = Yn ? (
3104
3083
  // Native
3105
3084
  function(t) {
3106
3085
  return t.trimStart();
@@ -3108,9 +3087,9 @@ var Tt = Qn ? (
3108
3087
  ) : (
3109
3088
  // Ponyfill
3110
3089
  function(t) {
3111
- return t.replace(Wn, "");
3090
+ return t.replace(Xn, "");
3112
3091
  }
3113
- ), oi = ei ? (
3092
+ ), ni = qn ? (
3114
3093
  // Native
3115
3094
  function(t) {
3116
3095
  return t.trimEnd();
@@ -3118,32 +3097,32 @@ var Tt = Qn ? (
3118
3097
  ) : (
3119
3098
  // Ponyfill
3120
3099
  function(t) {
3121
- return t.replace(Zn, "");
3100
+ return t.replace(zn, "");
3122
3101
  }
3123
3102
  );
3124
- function pr(e, t) {
3103
+ function cr(e, t) {
3125
3104
  return new RegExp(e, t);
3126
3105
  }
3127
- var Qe;
3128
- if (We) {
3129
- var Ht = pr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3130
- Qe = function(t, r) {
3106
+ var Xe;
3107
+ if (ke) {
3108
+ var Tt = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3109
+ Xe = function(t, r) {
3131
3110
  var n;
3132
- Ht.lastIndex = r;
3133
- var i = Ht.exec(t);
3111
+ Tt.lastIndex = r;
3112
+ var i = Tt.exec(t);
3134
3113
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3135
3114
  };
3136
3115
  } else
3137
- Qe = function(t, r) {
3116
+ Xe = function(t, r) {
3138
3117
  for (var n = []; ; ) {
3139
- var i = cr(t, r);
3140
- if (i === void 0 || dr(i) || li(i))
3118
+ var i = fr(t, r);
3119
+ if (i === void 0 || pr(i) || ai(i))
3141
3120
  break;
3142
3121
  n.push(i), r += i >= 65536 ? 2 : 1;
3143
3122
  }
3144
- return Ze.apply(void 0, n);
3123
+ return Ve.apply(void 0, n);
3145
3124
  };
3146
- var si = (
3125
+ var ii = (
3147
3126
  /** @class */
3148
3127
  function() {
3149
3128
  function e(t, r) {
@@ -3167,14 +3146,14 @@ var si = (
3167
3146
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3168
3147
  var a = this.clonePosition();
3169
3148
  this.bump(), i.push({
3170
- type: _.pound,
3149
+ type: E.pound,
3171
3150
  location: g(a, this.clonePosition())
3172
3151
  });
3173
3152
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3174
3153
  if (n)
3175
3154
  break;
3176
3155
  return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
3177
- } else if (o === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
3156
+ } else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
3178
3157
  var s = this.parseTag(t, r);
3179
3158
  if (s.err)
3180
3159
  return s;
@@ -3195,7 +3174,7 @@ var si = (
3195
3174
  if (this.bumpSpace(), this.bumpIf("/>"))
3196
3175
  return {
3197
3176
  val: {
3198
- type: _.literal,
3177
+ type: E.literal,
3199
3178
  value: "<".concat(i, "/>"),
3200
3179
  location: g(n, this.clonePosition())
3201
3180
  },
@@ -3207,12 +3186,12 @@ var si = (
3207
3186
  return o;
3208
3187
  var s = o.val, a = this.clonePosition();
3209
3188
  if (this.bumpIf("</")) {
3210
- if (this.isEOF() || !Je(this.char()))
3189
+ if (this.isEOF() || !ze(this.char()))
3211
3190
  return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
3212
3191
  var l = this.clonePosition(), u = this.parseTagName();
3213
3192
  return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3214
3193
  val: {
3215
- type: _.tag,
3194
+ type: E.tag,
3216
3195
  value: i,
3217
3196
  children: s,
3218
3197
  location: g(n, this.clonePosition())
@@ -3225,7 +3204,7 @@ var si = (
3225
3204
  return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
3226
3205
  }, e.prototype.parseTagName = function() {
3227
3206
  var t = this.offset();
3228
- for (this.bump(); !this.isEOF() && ui(this.char()); )
3207
+ for (this.bump(); !this.isEOF() && si(this.char()); )
3229
3208
  this.bump();
3230
3209
  return this.message.slice(t, this.offset());
3231
3210
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3249,12 +3228,12 @@ var si = (
3249
3228
  }
3250
3229
  var l = g(n, this.clonePosition());
3251
3230
  return {
3252
- val: { type: _.literal, value: i, location: l },
3231
+ val: { type: E.literal, value: i, location: l },
3253
3232
  err: null
3254
3233
  };
3255
3234
  }, e.prototype.tryParseLeftAngleBracket = function() {
3256
3235
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3257
- !ai(this.peek() || 0)) ? (this.bump(), "<") : null;
3236
+ !oi(this.peek() || 0)) ? (this.bump(), "<") : null;
3258
3237
  }, e.prototype.tryParseQuote = function(t) {
3259
3238
  if (this.isEOF() || this.char() !== 39)
3260
3239
  return null;
@@ -3288,12 +3267,12 @@ var si = (
3288
3267
  r.push(n);
3289
3268
  this.bump();
3290
3269
  }
3291
- return Ze.apply(void 0, r);
3270
+ return Ve.apply(void 0, r);
3292
3271
  }, e.prototype.tryParseUnquoted = function(t, r) {
3293
3272
  if (this.isEOF())
3294
3273
  return null;
3295
3274
  var n = this.char();
3296
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
3275
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
3297
3276
  }, e.prototype.parseArgument = function(t, r) {
3298
3277
  var n = this.clonePosition();
3299
3278
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3309,7 +3288,7 @@ var si = (
3309
3288
  case 125:
3310
3289
  return this.bump(), {
3311
3290
  val: {
3312
- type: _.argument,
3291
+ type: E.argument,
3313
3292
  // value does not include the opening and closing braces.
3314
3293
  value: i,
3315
3294
  location: g(n, this.clonePosition())
@@ -3322,7 +3301,7 @@ var si = (
3322
3301
  return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3323
3302
  }
3324
3303
  }, e.prototype.parseIdentifierIfPossible = function() {
3325
- var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
3304
+ var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
3326
3305
  this.bumpTo(i);
3327
3306
  var o = this.clonePosition(), s = g(t, o);
3328
3307
  return { value: n, location: s };
@@ -3341,7 +3320,7 @@ var si = (
3341
3320
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3342
3321
  if (f.err)
3343
3322
  return f;
3344
- var c = oi(f.val);
3323
+ var c = ni(f.val);
3345
3324
  if (c.length === 0)
3346
3325
  return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
3347
3326
  var p = g(h, this.clonePosition());
@@ -3351,25 +3330,25 @@ var si = (
3351
3330
  if (m.err)
3352
3331
  return m;
3353
3332
  var d = g(i, this.clonePosition());
3354
- if (u && Tt(u == null ? void 0 : u.style, "::", 0)) {
3355
- var y = ii(u.style.slice(2));
3333
+ if (u && xt(u == null ? void 0 : u.style, "::", 0)) {
3334
+ var _ = ri(u.style.slice(2));
3356
3335
  if (a === "number") {
3357
- var f = this.parseNumberSkeletonFromString(y, u.styleLocation);
3336
+ var f = this.parseNumberSkeletonFromString(_, u.styleLocation);
3358
3337
  return f.err ? f : {
3359
- val: { type: _.number, value: n, location: d, style: f.val },
3338
+ val: { type: E.number, value: n, location: d, style: f.val },
3360
3339
  err: null
3361
3340
  };
3362
3341
  } else {
3363
- if (y.length === 0)
3342
+ if (_.length === 0)
3364
3343
  return this.error(b.EXPECT_DATE_TIME_SKELETON, d);
3365
- var x = y;
3366
- this.locale && (x = Xn(y, this.locale));
3344
+ var S = _;
3345
+ this.locale && (S = kn(_, this.locale));
3367
3346
  var c = {
3368
- type: Y.dateTime,
3369
- pattern: x,
3347
+ type: q.dateTime,
3348
+ pattern: S,
3370
3349
  location: u.styleLocation,
3371
- parsedOptions: this.shouldParseSkeletons ? Fn(x) : {}
3372
- }, N = a === "date" ? _.date : _.time;
3350
+ parsedOptions: this.shouldParseSkeletons ? Rn(S) : {}
3351
+ }, N = a === "date" ? E.date : E.time;
3373
3352
  return {
3374
3353
  val: { type: N, value: n, location: d, style: c },
3375
3354
  err: null
@@ -3378,7 +3357,7 @@ var si = (
3378
3357
  }
3379
3358
  return {
3380
3359
  val: {
3381
- type: a === "number" ? _.number : a === "date" ? _.date : _.time,
3360
+ type: a === "number" ? E.number : a === "date" ? E.date : E.time,
3382
3361
  value: n,
3383
3362
  location: d,
3384
3363
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
@@ -3391,19 +3370,19 @@ var si = (
3391
3370
  case "select": {
3392
3371
  var T = this.clonePosition();
3393
3372
  if (this.bumpSpace(), !this.bumpIf(","))
3394
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(T, ve({}, T)));
3373
+ return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(T, y({}, T)));
3395
3374
  this.bumpSpace();
3396
- var H = this.parseIdentifierIfPossible(), R = 0;
3397
- if (a !== "select" && H.value === "offset") {
3375
+ var w = this.parseIdentifierIfPossible(), L = 0;
3376
+ if (a !== "select" && w.value === "offset") {
3398
3377
  if (!this.bumpIf(":"))
3399
3378
  return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
3400
3379
  this.bumpSpace();
3401
3380
  var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3402
3381
  if (f.err)
3403
3382
  return f;
3404
- this.bumpSpace(), H = this.parseIdentifierIfPossible(), R = f.val;
3383
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), L = f.val;
3405
3384
  }
3406
- var V = this.tryParsePluralOrSelectOptions(t, a, r, H);
3385
+ var V = this.tryParsePluralOrSelectOptions(t, a, r, w);
3407
3386
  if (V.err)
3408
3387
  return V;
3409
3388
  var m = this.tryParseArgumentClose(i);
@@ -3412,18 +3391,18 @@ var si = (
3412
3391
  var v = g(i, this.clonePosition());
3413
3392
  return a === "select" ? {
3414
3393
  val: {
3415
- type: _.select,
3394
+ type: E.select,
3416
3395
  value: n,
3417
- options: wt(V.val),
3396
+ options: St(V.val),
3418
3397
  location: v
3419
3398
  },
3420
3399
  err: null
3421
3400
  } : {
3422
3401
  val: {
3423
- type: _.plural,
3402
+ type: E.plural,
3424
3403
  value: n,
3425
- options: wt(V.val),
3426
- offset: R,
3404
+ options: St(V.val),
3405
+ offset: L,
3427
3406
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3428
3407
  location: v
3429
3408
  },
@@ -3473,16 +3452,16 @@ var si = (
3473
3452
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3474
3453
  var n = [];
3475
3454
  try {
3476
- n = Dn(t);
3455
+ n = Fn(t);
3477
3456
  } catch (i) {
3478
3457
  return this.error(b.INVALID_NUMBER_SKELETON, r);
3479
3458
  }
3480
3459
  return {
3481
3460
  val: {
3482
- type: Y.number,
3461
+ type: q.number,
3483
3462
  tokens: n,
3484
3463
  location: r,
3485
- parsedOptions: this.shouldParseSkeletons ? Vn(n) : {}
3464
+ parsedOptions: this.shouldParseSkeletons ? jn(n) : {}
3486
3465
  },
3487
3466
  err: null
3488
3467
  };
@@ -3530,7 +3509,7 @@ var si = (
3530
3509
  break;
3531
3510
  }
3532
3511
  var l = g(i, this.clonePosition());
3533
- return o ? (s *= n, ri(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3512
+ return o ? (s *= n, ei(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3534
3513
  }, e.prototype.offset = function() {
3535
3514
  return this.position.offset;
3536
3515
  }, e.prototype.isEOF = function() {
@@ -3545,7 +3524,7 @@ var si = (
3545
3524
  var t = this.position.offset;
3546
3525
  if (t >= this.message.length)
3547
3526
  throw Error("out of bound");
3548
- var r = cr(this.message, t);
3527
+ var r = fr(this.message, t);
3549
3528
  if (r === void 0)
3550
3529
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3551
3530
  return r;
@@ -3564,7 +3543,7 @@ var si = (
3564
3543
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3565
3544
  }
3566
3545
  }, e.prototype.bumpIf = function(t) {
3567
- if (Tt(this.message, t, this.offset())) {
3546
+ if (xt(this.message, t, this.offset())) {
3568
3547
  for (var r = 0; r < t.length; r++)
3569
3548
  this.bump();
3570
3549
  return !0;
@@ -3586,7 +3565,7 @@ var si = (
3586
3565
  break;
3587
3566
  }
3588
3567
  }, e.prototype.bumpSpace = function() {
3589
- for (; !this.isEOF() && dr(this.char()); )
3568
+ for (; !this.isEOF() && pr(this.char()); )
3590
3569
  this.bump();
3591
3570
  }, e.prototype.peek = function() {
3592
3571
  if (this.isEOF())
@@ -3596,47 +3575,47 @@ var si = (
3596
3575
  }, e;
3597
3576
  }()
3598
3577
  );
3599
- function Je(e) {
3578
+ function ze(e) {
3600
3579
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3601
3580
  }
3602
- function ai(e) {
3603
- return Je(e) || e === 47;
3581
+ function oi(e) {
3582
+ return ze(e) || e === 47;
3604
3583
  }
3605
- function ui(e) {
3584
+ function si(e) {
3606
3585
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3607
3586
  }
3608
- function dr(e) {
3587
+ function pr(e) {
3609
3588
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3610
3589
  }
3611
- function li(e) {
3590
+ function ai(e) {
3612
3591
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3613
3592
  }
3614
- function Ye(e) {
3593
+ function We(e) {
3615
3594
  e.forEach(function(t) {
3616
- if (delete t.location, ir(t) || or(t))
3595
+ if (delete t.location, nr(t) || ir(t))
3617
3596
  for (var r in t.options)
3618
- delete t.options[r].location, Ye(t.options[r].value);
3597
+ delete t.options[r].location, We(t.options[r].value);
3619
3598
  else
3620
- tr(t) && ar(t.style) || (rr(t) || nr(t)) && ze(t.style) ? delete t.style.location : sr(t) && Ye(t.children);
3599
+ er(t) && sr(t.style) || (tr(t) || rr(t)) && je(t.style) ? delete t.style.location : or(t) && We(t.children);
3621
3600
  });
3622
3601
  }
3623
- function hi(e, t) {
3624
- t === void 0 && (t = {}), t = ve({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3625
- var r = new si(e, t).parse();
3602
+ function ui(e, t) {
3603
+ t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3604
+ var r = new ii(e, t).parse();
3626
3605
  if (r.err) {
3627
3606
  var n = SyntaxError(b[r.err.kind]);
3628
3607
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3629
3608
  }
3630
- return t != null && t.captureLocation || Ye(r.val), r.val;
3609
+ return t != null && t.captureLocation || We(r.val), r.val;
3631
3610
  }
3632
- var q;
3611
+ var K;
3633
3612
  (function(e) {
3634
3613
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3635
- })(q || (q = {}));
3636
- var Te = (
3614
+ })(K || (K = {}));
3615
+ var xe = (
3637
3616
  /** @class */
3638
3617
  function(e) {
3639
- Se(t, e);
3618
+ F(t, e);
3640
3619
  function t(r, n, i) {
3641
3620
  var o = e.call(this, r) || this;
3642
3621
  return o.code = n, o.originalMessage = i, o;
@@ -3645,48 +3624,48 @@ var Te = (
3645
3624
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3646
3625
  }, t;
3647
3626
  }(Error)
3648
- ), At = (
3627
+ ), Ht = (
3649
3628
  /** @class */
3650
3629
  function(e) {
3651
- Se(t, e);
3630
+ F(t, e);
3652
3631
  function t(r, n, i, o) {
3653
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
3632
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), K.INVALID_VALUE, o) || this;
3654
3633
  }
3655
3634
  return t;
3656
- }(Te)
3657
- ), fi = (
3635
+ }(xe)
3636
+ ), li = (
3658
3637
  /** @class */
3659
3638
  function(e) {
3660
- Se(t, e);
3639
+ F(t, e);
3661
3640
  function t(r, n, i) {
3662
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
3641
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), K.INVALID_VALUE, i) || this;
3663
3642
  }
3664
3643
  return t;
3665
- }(Te)
3666
- ), ci = (
3644
+ }(xe)
3645
+ ), hi = (
3667
3646
  /** @class */
3668
3647
  function(e) {
3669
- Se(t, e);
3648
+ F(t, e);
3670
3649
  function t(r, n) {
3671
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
3650
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), K.MISSING_VALUE, n) || this;
3672
3651
  }
3673
3652
  return t;
3674
- }(Te)
3653
+ }(xe)
3675
3654
  ), A;
3676
3655
  (function(e) {
3677
3656
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3678
3657
  })(A || (A = {}));
3679
- function pi(e) {
3658
+ function fi(e) {
3680
3659
  return e.length < 2 ? e : e.reduce(function(t, r) {
3681
3660
  var n = t[t.length - 1];
3682
3661
  return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
3683
3662
  }, []);
3684
3663
  }
3685
- function di(e) {
3664
+ function ci(e) {
3686
3665
  return typeof e == "function";
3687
3666
  }
3688
3667
  function be(e, t, r, n, i, o, s) {
3689
- if (e.length === 1 && _t(e[0]))
3668
+ if (e.length === 1 && vt(e[0]))
3690
3669
  return [
3691
3670
  {
3692
3671
  type: A.literal,
@@ -3695,14 +3674,14 @@ function be(e, t, r, n, i, o, s) {
3695
3674
  ];
3696
3675
  for (var a = [], l = 0, u = e; l < u.length; l++) {
3697
3676
  var h = u[l];
3698
- if (_t(h)) {
3677
+ if (vt(h)) {
3699
3678
  a.push({
3700
3679
  type: A.literal,
3701
3680
  value: h.value
3702
3681
  });
3703
3682
  continue;
3704
3683
  }
3705
- if (Rn(h)) {
3684
+ if (Mn(h)) {
3706
3685
  typeof o == "number" && a.push({
3707
3686
  type: A.literal,
3708
3687
  value: r.getNumberFormat(t).format(o)
@@ -3711,89 +3690,89 @@ function be(e, t, r, n, i, o, s) {
3711
3690
  }
3712
3691
  var f = h.value;
3713
3692
  if (!(i && f in i))
3714
- throw new ci(f, s);
3693
+ throw new hi(f, s);
3715
3694
  var c = i[f];
3716
- if (Ln(h)) {
3695
+ if (Nn(h)) {
3717
3696
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3718
3697
  type: typeof c == "string" ? A.literal : A.object,
3719
3698
  value: c
3720
3699
  });
3721
3700
  continue;
3722
3701
  }
3723
- if (rr(h)) {
3724
- var p = typeof h.style == "string" ? n.date[h.style] : ze(h.style) ? h.style.parsedOptions : void 0;
3702
+ if (tr(h)) {
3703
+ var p = typeof h.style == "string" ? n.date[h.style] : je(h.style) ? h.style.parsedOptions : void 0;
3725
3704
  a.push({
3726
3705
  type: A.literal,
3727
3706
  value: r.getDateTimeFormat(t, p).format(c)
3728
3707
  });
3729
3708
  continue;
3730
3709
  }
3731
- if (nr(h)) {
3732
- var p = typeof h.style == "string" ? n.time[h.style] : ze(h.style) ? h.style.parsedOptions : n.time.medium;
3710
+ if (rr(h)) {
3711
+ var p = typeof h.style == "string" ? n.time[h.style] : je(h.style) ? h.style.parsedOptions : n.time.medium;
3733
3712
  a.push({
3734
3713
  type: A.literal,
3735
3714
  value: r.getDateTimeFormat(t, p).format(c)
3736
3715
  });
3737
3716
  continue;
3738
3717
  }
3739
- if (tr(h)) {
3740
- var p = typeof h.style == "string" ? n.number[h.style] : ar(h.style) ? h.style.parsedOptions : void 0;
3718
+ if (er(h)) {
3719
+ var p = typeof h.style == "string" ? n.number[h.style] : sr(h.style) ? h.style.parsedOptions : void 0;
3741
3720
  p && p.scale && (c = c * (p.scale || 1)), a.push({
3742
3721
  type: A.literal,
3743
3722
  value: r.getNumberFormat(t, p).format(c)
3744
3723
  });
3745
3724
  continue;
3746
3725
  }
3747
- if (sr(h)) {
3748
- var m = h.children, d = h.value, y = i[d];
3749
- if (!di(y))
3750
- throw new fi(d, "function", s);
3751
- var x = be(m, t, r, n, i, o), N = y(x.map(function(R) {
3752
- return R.value;
3726
+ if (or(h)) {
3727
+ var m = h.children, d = h.value, _ = i[d];
3728
+ if (!ci(_))
3729
+ throw new li(d, "function", s);
3730
+ var S = be(m, t, r, n, i, o), N = _(S.map(function(L) {
3731
+ return L.value;
3753
3732
  }));
3754
- Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(R) {
3733
+ Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(L) {
3755
3734
  return {
3756
- type: typeof R == "string" ? A.literal : A.object,
3757
- value: R
3735
+ type: typeof L == "string" ? A.literal : A.object,
3736
+ value: L
3758
3737
  };
3759
3738
  }));
3760
3739
  }
3761
- if (ir(h)) {
3740
+ if (nr(h)) {
3762
3741
  var T = h.options[c] || h.options.other;
3763
3742
  if (!T)
3764
- throw new At(h.value, c, Object.keys(h.options), s);
3743
+ throw new Ht(h.value, c, Object.keys(h.options), s);
3765
3744
  a.push.apply(a, be(T.value, t, r, n, i));
3766
3745
  continue;
3767
3746
  }
3768
- if (or(h)) {
3747
+ if (ir(h)) {
3769
3748
  var T = h.options["=".concat(c)];
3770
3749
  if (!T) {
3771
3750
  if (!Intl.PluralRules)
3772
- throw new Te(`Intl.PluralRules is not available in this environment.
3751
+ throw new xe(`Intl.PluralRules is not available in this environment.
3773
3752
  Try polyfilling it using "@formatjs/intl-pluralrules"
3774
- `, q.MISSING_INTL_API, s);
3775
- var H = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3776
- T = h.options[H] || h.options.other;
3753
+ `, K.MISSING_INTL_API, s);
3754
+ var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3755
+ T = h.options[w] || h.options.other;
3777
3756
  }
3778
3757
  if (!T)
3779
- throw new At(h.value, c, Object.keys(h.options), s);
3758
+ throw new Ht(h.value, c, Object.keys(h.options), s);
3780
3759
  a.push.apply(a, be(T.value, t, r, n, i, c - (h.offset || 0)));
3781
3760
  continue;
3782
3761
  }
3783
3762
  }
3784
- return pi(a);
3763
+ return fi(a);
3785
3764
  }
3786
- function mi(e, t) {
3787
- return t ? M(M(M({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3788
- return r[n] = M(M({}, e[n]), t[n] || {}), r;
3765
+ function pi(e, t) {
3766
+ return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3767
+ return r[n] = y(y({}, e[n]), t[n] || {}), r;
3789
3768
  }, {})) : e;
3790
3769
  }
3791
- function bi(e, t) {
3770
+ function di(e, t) {
3792
3771
  return t ? Object.keys(e).reduce(function(r, n) {
3793
- return r[n] = mi(e[n], t[n]), r;
3794
- }, M({}, e)) : e;
3772
+ return r[n] = pi(e[n], t[n]), r;
3773
+ }, y({}, e)) : e;
3795
3774
  }
3796
- function Me(e) {
3775
+ function Ie(e) {
3797
3776
  return {
3798
3777
  create: function() {
3799
3778
  return {
@@ -3807,39 +3786,39 @@ function Me(e) {
3807
3786
  }
3808
3787
  };
3809
3788
  }
3810
- function gi(e) {
3789
+ function mi(e) {
3811
3790
  return e === void 0 && (e = {
3812
3791
  number: {},
3813
3792
  dateTime: {},
3814
3793
  pluralRules: {}
3815
3794
  }), {
3816
- getNumberFormat: Ce(function() {
3795
+ getNumberFormat: Pe(function() {
3817
3796
  for (var t, r = [], n = 0; n < arguments.length; n++)
3818
3797
  r[n] = arguments[n];
3819
- return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
3798
+ return new ((t = Intl.NumberFormat).bind.apply(t, J([void 0], r, !1)))();
3820
3799
  }, {
3821
- cache: Me(e.number),
3822
- strategy: Ie.variadic
3800
+ cache: Ie(e.number),
3801
+ strategy: Oe.variadic
3823
3802
  }),
3824
- getDateTimeFormat: Ce(function() {
3803
+ getDateTimeFormat: Pe(function() {
3825
3804
  for (var t, r = [], n = 0; n < arguments.length; n++)
3826
3805
  r[n] = arguments[n];
3827
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
3806
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, J([void 0], r, !1)))();
3828
3807
  }, {
3829
- cache: Me(e.dateTime),
3830
- strategy: Ie.variadic
3808
+ cache: Ie(e.dateTime),
3809
+ strategy: Oe.variadic
3831
3810
  }),
3832
- getPluralRules: Ce(function() {
3811
+ getPluralRules: Pe(function() {
3833
3812
  for (var t, r = [], n = 0; n < arguments.length; n++)
3834
3813
  r[n] = arguments[n];
3835
- return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
3814
+ return new ((t = Intl.PluralRules).bind.apply(t, J([void 0], r, !1)))();
3836
3815
  }, {
3837
- cache: Me(e.pluralRules),
3838
- strategy: Ie.variadic
3816
+ cache: Ie(e.pluralRules),
3817
+ strategy: Oe.variadic
3839
3818
  })
3840
3819
  };
3841
3820
  }
3842
- var vi = (
3821
+ var bi = (
3843
3822
  /** @class */
3844
3823
  function() {
3845
3824
  function e(t, r, n, i) {
@@ -3871,13 +3850,13 @@ var vi = (
3871
3850
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3872
3851
  var s = i || {};
3873
3852
  s.formatters;
3874
- var a = An(s, ["formatters"]);
3875
- this.ast = e.__parse(t, M(M({}, a), { locale: this.resolvedLocale }));
3853
+ var a = Zr(s, ["formatters"]);
3854
+ this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
3876
3855
  } else
3877
3856
  this.ast = t;
3878
3857
  if (!Array.isArray(this.ast))
3879
3858
  throw new TypeError("A message must be provided as a String or AST.");
3880
- this.formats = bi(e.formats, n), this.formatters = i && i.formatters || gi(this.formatterCache);
3859
+ this.formats = di(e.formats, n), this.formatters = i && i.formatters || mi(this.formatterCache);
3881
3860
  }
3882
3861
  return Object.defineProperty(e, "defaultLocale", {
3883
3862
  get: function() {
@@ -3890,7 +3869,7 @@ var vi = (
3890
3869
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3891
3870
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3892
3871
  }
3893
- }, e.__parse = hi, e.formats = {
3872
+ }, e.__parse = ui, e.formats = {
3894
3873
  number: {
3895
3874
  integer: {
3896
3875
  maximumFractionDigits: 0
@@ -3951,7 +3930,7 @@ var vi = (
3951
3930
  }, e;
3952
3931
  }()
3953
3932
  );
3954
- function yi(e, t) {
3933
+ function gi(e, t) {
3955
3934
  if (t == null)
3956
3935
  return;
3957
3936
  if (t in e)
@@ -3972,92 +3951,92 @@ function yi(e, t) {
3972
3951
  n = void 0;
3973
3952
  return n;
3974
3953
  }
3975
- const U = {}, _i = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), mr = (e, t) => {
3954
+ const U = {}, vi = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), dr = (e, t) => {
3976
3955
  if (t == null)
3977
3956
  return;
3978
3957
  if (t in U && e in U[t])
3979
3958
  return U[t][e];
3980
- const r = we(t);
3959
+ const r = Se(t);
3981
3960
  for (let n = 0; n < r.length; n++) {
3982
- const i = r[n], o = xi(i, e);
3961
+ const i = r[n], o = _i(i, e);
3983
3962
  if (o)
3984
- return _i(e, t, o);
3963
+ return vi(e, t, o);
3985
3964
  }
3986
3965
  };
3987
- let rt;
3988
- const le = xe({});
3989
- function Ei(e) {
3990
- return rt[e] || null;
3966
+ let et;
3967
+ const le = Ee({});
3968
+ function yi(e) {
3969
+ return et[e] || null;
3991
3970
  }
3992
- function br(e) {
3993
- return e in rt;
3971
+ function mr(e) {
3972
+ return e in et;
3994
3973
  }
3995
- function xi(e, t) {
3996
- if (!br(e))
3974
+ function _i(e, t) {
3975
+ if (!mr(e))
3997
3976
  return null;
3998
- const r = Ei(e);
3999
- return yi(r, t);
3977
+ const r = yi(e);
3978
+ return gi(r, t);
4000
3979
  }
4001
- function Si(e) {
3980
+ function Ei(e) {
4002
3981
  if (e == null)
4003
3982
  return;
4004
- const t = we(e);
3983
+ const t = Se(e);
4005
3984
  for (let r = 0; r < t.length; r++) {
4006
3985
  const n = t[r];
4007
- if (br(n))
3986
+ if (mr(n))
4008
3987
  return n;
4009
3988
  }
4010
3989
  }
4011
- function gr(e, ...t) {
4012
- delete U[e], le.update((r) => (r[e] = Hn.all([r[e] || {}, ...t]), r));
3990
+ function br(e, ...t) {
3991
+ delete U[e], le.update((r) => (r[e] = wn.all([r[e] || {}, ...t]), r));
4013
3992
  }
4014
- ee(
3993
+ te(
4015
3994
  [le],
4016
3995
  ([e]) => Object.keys(e)
4017
3996
  );
4018
- le.subscribe((e) => rt = e);
3997
+ le.subscribe((e) => et = e);
4019
3998
  const ge = {};
4020
- function Ti(e, t) {
3999
+ function xi(e, t) {
4021
4000
  ge[e].delete(t), ge[e].size === 0 && delete ge[e];
4022
4001
  }
4023
- function vr(e) {
4002
+ function gr(e) {
4024
4003
  return ge[e];
4025
4004
  }
4026
- function wi(e) {
4027
- return we(e).map((t) => {
4028
- const r = vr(t);
4005
+ function Si(e) {
4006
+ return Se(e).map((t) => {
4007
+ const r = gr(t);
4029
4008
  return [t, r ? [...r] : []];
4030
4009
  }).filter(([, t]) => t.length > 0);
4031
4010
  }
4032
- function qe(e) {
4033
- return e == null ? !1 : we(e).some(
4011
+ function Ze(e) {
4012
+ return e == null ? !1 : Se(e).some(
4034
4013
  (t) => {
4035
4014
  var r;
4036
- return (r = vr(t)) == null ? void 0 : r.size;
4015
+ return (r = gr(t)) == null ? void 0 : r.size;
4037
4016
  }
4038
4017
  );
4039
4018
  }
4040
- function Hi(e, t) {
4019
+ function Ti(e, t) {
4041
4020
  return Promise.all(
4042
- t.map((n) => (Ti(e, n), n().then((i) => i.default || i)))
4043
- ).then((n) => gr(e, ...n));
4044
- }
4045
- const re = {};
4046
- function yr(e) {
4047
- if (!qe(e))
4048
- return e in re ? re[e] : Promise.resolve();
4049
- const t = wi(e);
4050
- return re[e] = Promise.all(
4021
+ t.map((n) => (xi(e, n), n().then((i) => i.default || i)))
4022
+ ).then((n) => br(e, ...n));
4023
+ }
4024
+ const ne = {};
4025
+ function vr(e) {
4026
+ if (!Ze(e))
4027
+ return e in ne ? ne[e] : Promise.resolve();
4028
+ const t = Si(e);
4029
+ return ne[e] = Promise.all(
4051
4030
  t.map(
4052
- ([r, n]) => Hi(r, n)
4031
+ ([r, n]) => Ti(r, n)
4053
4032
  )
4054
4033
  ).then(() => {
4055
- if (qe(e))
4056
- return yr(e);
4057
- delete re[e];
4058
- }), re[e];
4034
+ if (Ze(e))
4035
+ return vr(e);
4036
+ delete ne[e];
4037
+ }), ne[e];
4059
4038
  }
4060
- const Ai = {
4039
+ const Hi = {
4061
4040
  number: {
4062
4041
  scientific: { notation: "scientific" },
4063
4042
  engineering: { notation: "engineering" },
@@ -4086,135 +4065,135 @@ const Ai = {
4086
4065
  timeZoneName: "short"
4087
4066
  }
4088
4067
  }
4089
- }, Bi = {
4068
+ }, wi = {
4090
4069
  fallbackLocale: null,
4091
4070
  loadingDelay: 200,
4092
- formats: Ai,
4071
+ formats: Hi,
4093
4072
  warnOnMissingMessages: !0,
4094
4073
  handleMissingMessage: void 0,
4095
4074
  ignoreTag: !0
4096
- }, Oi = Bi;
4097
- function K() {
4098
- return Oi;
4075
+ }, Ai = wi;
4076
+ function ee() {
4077
+ return Ai;
4099
4078
  }
4100
- const Le = xe(!1);
4101
- var Pi = Object.defineProperty, Ci = Object.defineProperties, Ii = Object.getOwnPropertyDescriptors, Bt = Object.getOwnPropertySymbols, Ni = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Li = (e, t) => {
4079
+ const Ne = Ee(!1);
4080
+ var Bi = Object.defineProperty, Pi = Object.defineProperties, Oi = Object.getOwnPropertyDescriptors, wt = Object.getOwnPropertySymbols, Ci = Object.prototype.hasOwnProperty, Ii = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ni = (e, t) => {
4102
4081
  for (var r in t || (t = {}))
4103
- Ni.call(t, r) && Ot(e, r, t[r]);
4104
- if (Bt)
4105
- for (var r of Bt(t))
4106
- Mi.call(t, r) && Ot(e, r, t[r]);
4082
+ Ci.call(t, r) && At(e, r, t[r]);
4083
+ if (wt)
4084
+ for (var r of wt(t))
4085
+ Ii.call(t, r) && At(e, r, t[r]);
4107
4086
  return e;
4108
- }, Ri = (e, t) => Ci(e, Ii(t));
4109
- let Ke;
4110
- const ye = xe(null);
4111
- function Pt(e) {
4087
+ }, Mi = (e, t) => Pi(e, Oi(t));
4088
+ let Qe;
4089
+ const ve = Ee(null);
4090
+ function Bt(e) {
4112
4091
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4113
4092
  }
4114
- function we(e, t = K().fallbackLocale) {
4115
- const r = Pt(e);
4116
- return t ? [.../* @__PURE__ */ new Set([...r, ...Pt(t)])] : r;
4093
+ function Se(e, t = ee().fallbackLocale) {
4094
+ const r = Bt(e);
4095
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Bt(t)])] : r;
4117
4096
  }
4118
4097
  function k() {
4119
- return Ke != null ? Ke : void 0;
4098
+ return Qe != null ? Qe : void 0;
4120
4099
  }
4121
- ye.subscribe((e) => {
4122
- Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4100
+ ve.subscribe((e) => {
4101
+ Qe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4123
4102
  });
4124
- const $i = (e) => {
4125
- if (e && Si(e) && qe(e)) {
4126
- const { loadingDelay: t } = K();
4103
+ const Li = (e) => {
4104
+ if (e && Ei(e) && Ze(e)) {
4105
+ const { loadingDelay: t } = ee();
4127
4106
  let r;
4128
4107
  return typeof window != "undefined" && k() != null && t ? r = window.setTimeout(
4129
- () => Le.set(!0),
4108
+ () => Ne.set(!0),
4130
4109
  t
4131
- ) : Le.set(!0), yr(e).then(() => {
4132
- ye.set(e);
4110
+ ) : Ne.set(!0), vr(e).then(() => {
4111
+ ve.set(e);
4133
4112
  }).finally(() => {
4134
- clearTimeout(r), Le.set(!1);
4113
+ clearTimeout(r), Ne.set(!1);
4135
4114
  });
4136
4115
  }
4137
- return ye.set(e);
4138
- }, he = Ri(Li({}, ye), {
4139
- set: $i
4140
- }), He = (e) => {
4116
+ return ve.set(e);
4117
+ }, he = Mi(Ni({}, ve), {
4118
+ set: Li
4119
+ }), Te = (e) => {
4141
4120
  const t = /* @__PURE__ */ Object.create(null);
4142
4121
  return (n) => {
4143
4122
  const i = JSON.stringify(n);
4144
4123
  return i in t ? t[i] : t[i] = e(n);
4145
4124
  };
4146
4125
  };
4147
- var Fi = Object.defineProperty, _e = Object.getOwnPropertySymbols, _r = Object.prototype.hasOwnProperty, Er = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nt = (e, t) => {
4126
+ var Ri = Object.defineProperty, ye = Object.getOwnPropertySymbols, yr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable, Pt = (e, t, r) => t in e ? Ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
4148
4127
  for (var r in t || (t = {}))
4149
- _r.call(t, r) && Ct(e, r, t[r]);
4150
- if (_e)
4151
- for (var r of _e(t))
4152
- Er.call(t, r) && Ct(e, r, t[r]);
4128
+ yr.call(t, r) && Pt(e, r, t[r]);
4129
+ if (ye)
4130
+ for (var r of ye(t))
4131
+ _r.call(t, r) && Pt(e, r, t[r]);
4153
4132
  return e;
4154
- }, te = (e, t) => {
4133
+ }, re = (e, t) => {
4155
4134
  var r = {};
4156
4135
  for (var n in e)
4157
- _r.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4158
- if (e != null && _e)
4159
- for (var n of _e(e))
4160
- t.indexOf(n) < 0 && Er.call(e, n) && (r[n] = e[n]);
4136
+ yr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4137
+ if (e != null && ye)
4138
+ for (var n of ye(e))
4139
+ t.indexOf(n) < 0 && _r.call(e, n) && (r[n] = e[n]);
4161
4140
  return r;
4162
4141
  };
4163
- const oe = (e, t) => {
4164
- const { formats: r } = K();
4142
+ const se = (e, t) => {
4143
+ const { formats: r } = ee();
4165
4144
  if (e in r && t in r[e])
4166
4145
  return r[e][t];
4167
4146
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4168
- }, Ui = He(
4147
+ }, $i = Te(
4169
4148
  (e) => {
4170
- var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
4149
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4171
4150
  if (r == null)
4172
4151
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4173
- return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
4152
+ return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
4174
4153
  }
4175
- ), Di = He(
4154
+ ), Fi = Te(
4176
4155
  (e) => {
4177
- var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
4156
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4178
4157
  if (r == null)
4179
4158
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4180
- return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
4159
+ return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
4181
4160
  }
4182
- ), Gi = He(
4161
+ ), Ui = Te(
4183
4162
  (e) => {
4184
- var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
4163
+ var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
4185
4164
  if (r == null)
4186
4165
  throw new Error(
4187
4166
  '[svelte-i18n] A "locale" must be set to format time values'
4188
4167
  );
4189
- return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
4168
+ return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
4190
4169
  }
4191
- ), ji = (e = {}) => {
4170
+ ), Di = (e = {}) => {
4192
4171
  var t = e, {
4193
4172
  locale: r = k()
4194
- } = t, n = te(t, [
4173
+ } = t, n = re(t, [
4195
4174
  "locale"
4196
4175
  ]);
4197
- return Ui(nt({ locale: r }, n));
4198
- }, ki = (e = {}) => {
4176
+ return $i(tt({ locale: r }, n));
4177
+ }, Gi = (e = {}) => {
4199
4178
  var t = e, {
4200
4179
  locale: r = k()
4201
- } = t, n = te(t, [
4180
+ } = t, n = re(t, [
4202
4181
  "locale"
4203
4182
  ]);
4204
- return Di(nt({ locale: r }, n));
4205
- }, Vi = (e = {}) => {
4183
+ return Fi(tt({ locale: r }, n));
4184
+ }, ji = (e = {}) => {
4206
4185
  var t = e, {
4207
4186
  locale: r = k()
4208
- } = t, n = te(t, [
4187
+ } = t, n = re(t, [
4209
4188
  "locale"
4210
4189
  ]);
4211
- return Gi(nt({ locale: r }, n));
4212
- }, Xi = He(
4190
+ return Ui(tt({ locale: r }, n));
4191
+ }, ki = Te(
4213
4192
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4214
- (e, t = k()) => new vi(e, t, K().formats, {
4215
- ignoreTag: K().ignoreTag
4193
+ (e, t = k()) => new bi(e, t, ee().formats, {
4194
+ ignoreTag: ee().ignoreTag
4216
4195
  })
4217
- ), zi = (e, t = {}) => {
4196
+ ), Vi = (e, t = {}) => {
4218
4197
  var r, n, i, o;
4219
4198
  let s = t;
4220
4199
  typeof e == "object" && (s = e, e = s.id);
@@ -4227,9 +4206,9 @@ const oe = (e, t) => {
4227
4206
  throw new Error(
4228
4207
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4229
4208
  );
4230
- let h = mr(e, l);
4209
+ let h = dr(e, l);
4231
4210
  if (!h)
4232
- h = (o = (i = (n = (r = K()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4211
+ h = (o = (i = (n = (r = ee()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4233
4212
  else if (typeof h != "string")
4234
4213
  return console.warn(
4235
4214
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -4238,7 +4217,7 @@ const oe = (e, t) => {
4238
4217
  return h;
4239
4218
  let f = h;
4240
4219
  try {
4241
- f = Xi(h, l).format(a);
4220
+ f = ki(h, l).format(a);
4242
4221
  } catch (c) {
4243
4222
  c instanceof Error && console.warn(
4244
4223
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4246,17 +4225,17 @@ const oe = (e, t) => {
4246
4225
  );
4247
4226
  }
4248
4227
  return f;
4249
- }, Wi = (e, t) => Vi(t).format(e), Zi = (e, t) => ki(t).format(e), Qi = (e, t) => ji(t).format(e), Ji = (e, t = k()) => mr(e, t), Yi = ee([he, le], () => zi);
4250
- ee([he], () => Wi);
4251
- ee([he], () => Zi);
4252
- ee([he], () => Qi);
4253
- ee([he, le], () => Ji);
4228
+ }, Xi = (e, t) => ji(t).format(e), zi = (e, t) => Gi(t).format(e), Wi = (e, t) => Di(t).format(e), Zi = (e, t = k()) => dr(e, t), Qi = te([he, le], () => Vi);
4229
+ te([he], () => Xi);
4230
+ te([he], () => zi);
4231
+ te([he], () => Wi);
4232
+ te([he, le], () => Zi);
4254
4233
  window.emWidgets = { topic: ln };
4255
4234
  const C = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
4256
- function It(e, t) {
4257
- gr(e, t);
4235
+ function Ot(e, t) {
4236
+ br(e, t);
4258
4237
  }
4259
- const Nt = {
4238
+ const Ct = {
4260
4239
  en: {
4261
4240
  tournaments: "Tournaments",
4262
4241
  all: "All",
@@ -4335,60 +4314,60 @@ const Nt = {
4335
4314
  finished: "Finished"
4336
4315
  }
4337
4316
  };
4338
- function qi(e) {
4339
- Or(e, "svelte-szp116", "*,*::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}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emw--color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}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)}");
4317
+ function Ji(e) {
4318
+ Br(e, "svelte-szp116", "*,*::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}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emw--color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}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)}");
4340
4319
  }
4341
- function Mt(e, t, r) {
4320
+ function It(e, t, r) {
4342
4321
  const n = e.slice();
4343
4322
  return n[22] = t[r], n[24] = r, n;
4344
4323
  }
4345
- function Lt(e) {
4324
+ function Nt(e) {
4346
4325
  let t, r, n = (
4347
4326
  /*$_*/
4348
4327
  e[4]("tournaments") + ""
4349
- ), i, o, s, a = ft(
4328
+ ), i, o, s, a = lt(
4350
4329
  /*filterItems*/
4351
4330
  e[1]
4352
4331
  ), l = [];
4353
4332
  for (let u = 0; u < a.length; u += 1)
4354
- l[u] = Gt(Mt(e, a, u));
4333
+ l[u] = Ut(It(e, a, u));
4355
4334
  return {
4356
4335
  c() {
4357
4336
  t = D("ul"), r = D("li"), i = j(n), o = j(":"), s = W();
4358
4337
  for (let u = 0; u < l.length; u += 1)
4359
4338
  l[u].c();
4360
- E(r, "class", "FiltersTitle " + (C(
4339
+ x(r, "class", "FiltersTitle " + (C(
4361
4340
  /*userAgent*/
4362
4341
  e[5]
4363
- ) ? "MobileClass" : "Non-MobileClass/empty")), E(r, "part", "FiltersTitle " + (C(
4342
+ ) ? "MobileClass" : "Non-MobileClass/empty")), x(r, "part", "FiltersTitle " + (C(
4364
4343
  /*userAgent*/
4365
4344
  e[5]
4366
- ) ? "MobileClass" : "Non-MobileClass/empty")), E(t, "class", "FiltersList " + (C(
4345
+ ) ? "MobileClass" : "Non-MobileClass/empty")), x(t, "class", "FiltersList " + (C(
4367
4346
  /*userAgent*/
4368
4347
  e[5]
4369
- ) ? "MobileClass" : "Non-MobileClass/empty")), E(t, "part", "FiltersList " + (C(
4348
+ ) ? "MobileClass" : "Non-MobileClass/empty")), x(t, "part", "FiltersList " + (C(
4370
4349
  /*userAgent*/
4371
4350
  e[5]
4372
4351
  ) ? "MobileClass" : "Non-MobileClass/empty"));
4373
4352
  },
4374
4353
  m(u, h) {
4375
- F(u, t, h), B(t, r), B(r, i), B(r, o), B(t, s);
4354
+ $(u, t, h), B(t, r), B(r, i), B(r, o), B(t, s);
4376
4355
  for (let f = 0; f < l.length; f += 1)
4377
4356
  l[f] && l[f].m(t, null);
4378
4357
  },
4379
4358
  p(u, h) {
4380
4359
  if (h & /*$_*/
4381
4360
  16 && n !== (n = /*$_*/
4382
- u[4]("tournaments") + "") && ae(i, n), h & /*makeButtonActive, filterItems, activeIndexes, allActive, userAgent, $_*/
4361
+ u[4]("tournaments") + "") && ue(i, n), h & /*makeButtonActive, filterItems, activeIndexes, allActive, userAgent, $_*/
4383
4362
  126) {
4384
- a = ft(
4363
+ a = lt(
4385
4364
  /*filterItems*/
4386
4365
  u[1]
4387
4366
  );
4388
4367
  let f;
4389
4368
  for (f = 0; f < a.length; f += 1) {
4390
- const c = Mt(u, a, f);
4391
- l[f] ? l[f].p(c, h) : (l[f] = Gt(c), l[f].c(), l[f].m(t, null));
4369
+ const c = It(u, a, f);
4370
+ l[f] ? l[f].p(c, h) : (l[f] = Ut(c), l[f].c(), l[f].m(t, null));
4392
4371
  }
4393
4372
  for (; f < l.length; f += 1)
4394
4373
  l[f].d(1);
@@ -4396,25 +4375,25 @@ function Lt(e) {
4396
4375
  }
4397
4376
  },
4398
4377
  d(u) {
4399
- u && L(t), Ir(l, u);
4378
+ u && M(t), Cr(l, u);
4400
4379
  }
4401
4380
  };
4402
4381
  }
4403
- function Rt(e) {
4382
+ function Mt(e) {
4404
4383
  let t, r;
4405
4384
  return {
4406
4385
  c() {
4407
- t = lt("svg"), r = lt("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");
4386
+ t = at("svg"), r = at("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");
4408
4387
  },
4409
4388
  m(n, i) {
4410
- F(n, t, i), B(t, r);
4389
+ $(n, t, i), B(t, r);
4411
4390
  },
4412
4391
  d(n) {
4413
- n && L(t);
4392
+ n && M(t);
4414
4393
  }
4415
4394
  };
4416
4395
  }
4417
- function $t(e) {
4396
+ function Lt(e) {
4418
4397
  let t = (
4419
4398
  /*$_*/
4420
4399
  e[4]("scheduled") + ""
@@ -4424,19 +4403,19 @@ function $t(e) {
4424
4403
  r = j(t);
4425
4404
  },
4426
4405
  m(n, i) {
4427
- F(n, r, i);
4406
+ $(n, r, i);
4428
4407
  },
4429
4408
  p(n, i) {
4430
4409
  i & /*$_*/
4431
4410
  16 && t !== (t = /*$_*/
4432
- n[4]("scheduled") + "") && ae(r, t);
4411
+ n[4]("scheduled") + "") && ue(r, t);
4433
4412
  },
4434
4413
  d(n) {
4435
- n && L(r);
4414
+ n && M(r);
4436
4415
  }
4437
4416
  };
4438
4417
  }
4439
- function Ft(e) {
4418
+ function Rt(e) {
4440
4419
  let t = (
4441
4420
  /*$_*/
4442
4421
  e[4]("ongoing") + ""
@@ -4446,19 +4425,19 @@ function Ft(e) {
4446
4425
  r = j(t);
4447
4426
  },
4448
4427
  m(n, i) {
4449
- F(n, r, i);
4428
+ $(n, r, i);
4450
4429
  },
4451
4430
  p(n, i) {
4452
4431
  i & /*$_*/
4453
4432
  16 && t !== (t = /*$_*/
4454
- n[4]("ongoing") + "") && ae(r, t);
4433
+ n[4]("ongoing") + "") && ue(r, t);
4455
4434
  },
4456
4435
  d(n) {
4457
- n && L(r);
4436
+ n && M(r);
4458
4437
  }
4459
4438
  };
4460
4439
  }
4461
- function Ut(e) {
4440
+ function $t(e) {
4462
4441
  let t = (
4463
4442
  /*$_*/
4464
4443
  e[4]("finished") + ""
@@ -4468,19 +4447,19 @@ function Ut(e) {
4468
4447
  r = j(t);
4469
4448
  },
4470
4449
  m(n, i) {
4471
- F(n, r, i);
4450
+ $(n, r, i);
4472
4451
  },
4473
4452
  p(n, i) {
4474
4453
  i & /*$_*/
4475
4454
  16 && t !== (t = /*$_*/
4476
- n[4]("finished") + "") && ae(r, t);
4455
+ n[4]("finished") + "") && ue(r, t);
4477
4456
  },
4478
4457
  d(n) {
4479
- n && L(r);
4458
+ n && M(r);
4480
4459
  }
4481
4460
  };
4482
4461
  }
4483
- function Dt(e) {
4462
+ function Ft(e) {
4484
4463
  let t = (
4485
4464
  /*$_*/
4486
4465
  e[4]("all") + ""
@@ -4490,19 +4469,19 @@ function Dt(e) {
4490
4469
  r = j(t);
4491
4470
  },
4492
4471
  m(n, i) {
4493
- F(n, r, i);
4472
+ $(n, r, i);
4494
4473
  },
4495
4474
  p(n, i) {
4496
4475
  i & /*$_*/
4497
4476
  16 && t !== (t = /*$_*/
4498
- n[4]("all") + "") && ae(r, t);
4477
+ n[4]("all") + "") && ue(r, t);
4499
4478
  },
4500
4479
  d(n) {
4501
- n && L(r);
4480
+ n && M(r);
4502
4481
  }
4503
4482
  };
4504
4483
  }
4505
- function Gt(e) {
4484
+ function Ut(e) {
4506
4485
  let t, r, n, i, o, s, a, l, u, h, f, c, p = (
4507
4486
  /*activeIndexes*/
4508
4487
  (e[2][
@@ -4510,19 +4489,19 @@ function Gt(e) {
4510
4489
  e[24]
4511
4490
  ] == 1 || /*allActive*/
4512
4491
  e[3] && /*index*/
4513
- e[24] == 0) && Rt()
4492
+ e[24] == 0) && Mt()
4514
4493
  ), m = (
4515
4494
  /*filter*/
4516
- e[22] == "Scheduled" && $t(e)
4495
+ e[22] == "Scheduled" && Lt(e)
4517
4496
  ), d = (
4518
4497
  /*filter*/
4519
- e[22] == "Ongoing" && Ft(e)
4520
- ), y = (
4498
+ e[22] == "Ongoing" && Rt(e)
4499
+ ), _ = (
4521
4500
  /*filter*/
4522
- e[22] == "Finished" && Ut(e)
4523
- ), x = (
4501
+ e[22] == "Finished" && $t(e)
4502
+ ), S = (
4524
4503
  /*filter*/
4525
- e[22] == "All" && Dt(e)
4504
+ e[22] == "All" && Ft(e)
4526
4505
  );
4527
4506
  function N() {
4528
4507
  return (
@@ -4537,13 +4516,13 @@ function Gt(e) {
4537
4516
  }
4538
4517
  return {
4539
4518
  c() {
4540
- t = D("li"), r = D("button"), p && p.c(), n = W(), i = D("div"), m && m.c(), o = W(), d && d.c(), s = W(), y && y.c(), a = W(), x && x.c(), h = W(), E(i, "class", "FilterButton " + (C(
4519
+ t = D("li"), r = D("button"), p && p.c(), n = W(), i = D("div"), m && m.c(), o = W(), d && d.c(), s = W(), _ && _.c(), a = W(), S && S.c(), h = W(), x(i, "class", "FilterButton " + (C(
4541
4520
  /*userAgent*/
4542
4521
  e[5]
4543
- ) ? "MobileClass" : "Non-MobileClass/empty")), E(i, "part", "FilterButton " + (C(
4522
+ ) ? "MobileClass" : "Non-MobileClass/empty")), x(i, "part", "FilterButton " + (C(
4544
4523
  /*userAgent*/
4545
4524
  e[5]
4546
- ) ? "MobileClass" : "Non-MobileClass/empty")), E(r, "class", l = /*activeIndexes*/
4525
+ ) ? "MobileClass" : "Non-MobileClass/empty")), x(r, "class", l = /*activeIndexes*/
4547
4526
  (e[2][
4548
4527
  /*index*/
4549
4528
  e[24]
@@ -4552,7 +4531,7 @@ function Gt(e) {
4552
4531
  e[24] == 0 ? "Active" : "") + " " + (C(
4553
4532
  /*userAgent*/
4554
4533
  e[5]
4555
- ) ? "MobileClass" : "Non-MobileClass/empty")), E(r, "part", u = /*activeIndexes*/
4534
+ ) ? "MobileClass" : "Non-MobileClass/empty")), x(r, "part", u = /*activeIndexes*/
4556
4535
  (e[2][
4557
4536
  /*index*/
4558
4537
  e[24]
@@ -4561,23 +4540,23 @@ function Gt(e) {
4561
4540
  e[24] == 0 ? "Active" : "") + " " + (C(
4562
4541
  /*userAgent*/
4563
4542
  e[5]
4564
- ) ? "MobileClass" : "Non-MobileClass/empty")), E(t, "class", "FiltersItem"), E(t, "part", "FiltersItem");
4543
+ ) ? "MobileClass" : "Non-MobileClass/empty")), x(t, "class", "FiltersItem"), x(t, "part", "FiltersItem");
4565
4544
  },
4566
- m(T, H) {
4567
- F(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), y && y.m(i, null), B(i, a), x && x.m(i, null), B(t, h), f || (c = Nr(t, "click", N), f = !0);
4545
+ m(T, w) {
4546
+ $(T, t, w), 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), _ && _.m(i, null), B(i, a), S && S.m(i, null), B(t, h), f || (c = Ir(t, "click", N), f = !0);
4568
4547
  },
4569
- p(T, H) {
4548
+ p(T, w) {
4570
4549
  e = T, /*activeIndexes*/
4571
4550
  e[2][
4572
4551
  /*index*/
4573
4552
  e[24]
4574
4553
  ] == 1 || /*allActive*/
4575
4554
  e[3] && /*index*/
4576
- e[24] == 0 ? p || (p = Rt(), p.c(), p.m(r, n)) : p && (p.d(1), p = null), /*filter*/
4577
- e[22] == "Scheduled" ? m ? m.p(e, H) : (m = $t(e), m.c(), m.m(i, o)) : m && (m.d(1), m = null), /*filter*/
4578
- e[22] == "Ongoing" ? d ? d.p(e, H) : (d = Ft(e), d.c(), d.m(i, s)) : d && (d.d(1), d = null), /*filter*/
4579
- e[22] == "Finished" ? y ? y.p(e, H) : (y = Ut(e), y.c(), y.m(i, a)) : y && (y.d(1), y = null), /*filter*/
4580
- e[22] == "All" ? x ? x.p(e, H) : (x = Dt(e), x.c(), x.m(i, null)) : x && (x.d(1), x = null), H & /*activeIndexes, allActive*/
4555
+ e[24] == 0 ? p || (p = Mt(), p.c(), p.m(r, n)) : p && (p.d(1), p = null), /*filter*/
4556
+ e[22] == "Scheduled" ? m ? m.p(e, w) : (m = Lt(e), m.c(), m.m(i, o)) : m && (m.d(1), m = null), /*filter*/
4557
+ e[22] == "Ongoing" ? d ? d.p(e, w) : (d = Rt(e), d.c(), d.m(i, s)) : d && (d.d(1), d = null), /*filter*/
4558
+ e[22] == "Finished" ? _ ? _.p(e, w) : (_ = $t(e), _.c(), _.m(i, a)) : _ && (_.d(1), _ = null), /*filter*/
4559
+ e[22] == "All" ? S ? S.p(e, w) : (S = Ft(e), S.c(), S.m(i, null)) : S && (S.d(1), S = null), w & /*activeIndexes, allActive*/
4581
4560
  12 && l !== (l = /*activeIndexes*/
4582
4561
  (e[2][
4583
4562
  /*index*/
@@ -4587,7 +4566,7 @@ function Gt(e) {
4587
4566
  e[24] == 0 ? "Active" : "") + " " + (C(
4588
4567
  /*userAgent*/
4589
4568
  e[5]
4590
- ) ? "MobileClass" : "Non-MobileClass/empty")) && E(r, "class", l), H & /*activeIndexes, allActive*/
4569
+ ) ? "MobileClass" : "Non-MobileClass/empty")) && x(r, "class", l), w & /*activeIndexes, allActive*/
4591
4570
  12 && u !== (u = /*activeIndexes*/
4592
4571
  (e[2][
4593
4572
  /*index*/
@@ -4597,60 +4576,60 @@ function Gt(e) {
4597
4576
  e[24] == 0 ? "Active" : "") + " " + (C(
4598
4577
  /*userAgent*/
4599
4578
  e[5]
4600
- ) ? "MobileClass" : "Non-MobileClass/empty")) && E(r, "part", u);
4579
+ ) ? "MobileClass" : "Non-MobileClass/empty")) && x(r, "part", u);
4601
4580
  },
4602
4581
  d(T) {
4603
- T && L(t), p && p.d(), m && m.d(), d && d.d(), y && y.d(), x && x.d(), f = !1, c();
4582
+ T && M(t), p && p.d(), m && m.d(), d && d.d(), _ && _.d(), S && S.d(), f = !1, c();
4604
4583
  }
4605
4584
  };
4606
4585
  }
4607
- function Ki(e) {
4586
+ function Yi(e) {
4608
4587
  let t, r = (
4609
4588
  /*filterItems*/
4610
- e[1].length > 0 && Lt(e)
4589
+ e[1].length > 0 && Nt(e)
4611
4590
  );
4612
4591
  return {
4613
4592
  c() {
4614
- t = D("div"), r && r.c(), E(t, "class", "FiltersController " + (C(
4593
+ t = D("div"), r && r.c(), x(t, "class", "FiltersController " + (C(
4615
4594
  /*userAgent*/
4616
4595
  e[5]
4617
- ) ? "MobileClass" : "Non-MobileClass/empty")), E(t, "part", "FiltersController " + (C(
4596
+ ) ? "MobileClass" : "Non-MobileClass/empty")), x(t, "part", "FiltersController " + (C(
4618
4597
  /*userAgent*/
4619
4598
  e[5]
4620
4599
  ) ? "MobileClass" : "Non-MobileClass/empty"));
4621
4600
  },
4622
4601
  m(n, i) {
4623
- F(n, t, i), r && r.m(t, null), e[13](t);
4602
+ $(n, t, i), r && r.m(t, null), e[13](t);
4624
4603
  },
4625
4604
  p(n, [i]) {
4626
4605
  /*filterItems*/
4627
- n[1].length > 0 ? r ? r.p(n, i) : (r = Lt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
4606
+ n[1].length > 0 ? r ? r.p(n, i) : (r = Nt(n), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
4628
4607
  },
4629
4608
  i: I,
4630
4609
  o: I,
4631
4610
  d(n) {
4632
- n && L(t), r && r.d(), e[13](null);
4611
+ n && M(t), r && r.d(), e[13](null);
4633
4612
  }
4634
4613
  };
4635
4614
  }
4636
- function eo(e, t, r) {
4615
+ function qi(e, t, r) {
4637
4616
  let n;
4638
- Br(e, Yi, (v) => r(4, n = v));
4617
+ Ar(e, Qi, (v) => r(4, n = v));
4639
4618
  let { filters: i = "" } = t, { activefilters: o = "" } = t, { translationurl: s = "" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, u, h = [], f = 0, c = new Array(100), p = !0, m = window.navigator.userAgent;
4640
4619
  const d = () => {
4641
- fetch(s).then((w) => w.json()).then((w) => {
4642
- Object.keys(w).forEach((O) => {
4643
- It(O, w[O]);
4620
+ fetch(s).then((H) => H.json()).then((H) => {
4621
+ Object.keys(H).forEach((P) => {
4622
+ Ot(P, H[P]);
4644
4623
  });
4645
- }).catch((w) => {
4646
- console.log(w);
4624
+ }).catch((H) => {
4625
+ console.log(H);
4647
4626
  });
4648
4627
  };
4649
- Object.keys(Nt).forEach((v) => {
4650
- It(v, Nt[v]);
4628
+ Object.keys(Ct).forEach((v) => {
4629
+ Ot(v, Ct[v]);
4651
4630
  });
4652
- const y = (v, w) => {
4653
- if (w == 0)
4631
+ const _ = (v, H) => {
4632
+ if (H == 0)
4654
4633
  r(3, p = !0), r(2, c = new Array(f)), window.postMessage(
4655
4634
  {
4656
4635
  type: "TournamentsFiltersSelected",
@@ -4658,7 +4637,7 @@ function eo(e, t, r) {
4658
4637
  },
4659
4638
  window.location.href
4660
4639
  );
4661
- else if (r(3, p = !1), c[w] == 1 ? (r(2, c[w] = 0, c), c.indexOf(1) == -1 && r(3, p = !0)) : r(2, c[w] = 1, c), c.indexOf(1) == -1)
4640
+ else if (r(3, p = !1), c[H] == 1 ? (r(2, c[H] = 0, c), c.indexOf(1) == -1 && r(3, p = !0)) : r(2, c[H] = 1, c), c.indexOf(1) == -1)
4662
4641
  window.postMessage(
4663
4642
  {
4664
4643
  type: "TournamentsFiltersSelected",
@@ -4667,34 +4646,34 @@ function eo(e, t, r) {
4667
4646
  window.location.href
4668
4647
  );
4669
4648
  else {
4670
- let O = [];
4649
+ let P = [];
4671
4650
  for (let fe = 0; fe < h.length; fe++)
4672
- c[fe] == 1 && O.push(h[fe]);
4651
+ c[fe] == 1 && P.push(h[fe]);
4673
4652
  window.postMessage(
4674
4653
  {
4675
4654
  type: "TournamentsFiltersSelected",
4676
- filters: O
4655
+ filters: P
4677
4656
  },
4678
4657
  window.location.href
4679
4658
  );
4680
4659
  }
4681
- }, x = () => {
4660
+ }, S = () => {
4682
4661
  r(1, h = i.split(",")), f = h.length;
4683
4662
  }, N = () => {
4684
4663
  let v = o.split(",");
4685
- r(2, c = new Array(f)), v.indexOf("All") != -1 ? r(3, p = !0) : (r(3, p = !1), v.forEach((w) => {
4686
- let O = h.indexOf(w);
4687
- O > 0 && r(2, c[O] = 1, c);
4664
+ r(2, c = new Array(f)), v.indexOf("All") != -1 ? r(3, p = !0) : (r(3, p = !1), v.forEach((H) => {
4665
+ let P = h.indexOf(H);
4666
+ P > 0 && r(2, c[P] = 1, c);
4688
4667
  }));
4689
4668
  }, T = () => {
4690
4669
  let v = document.createElement("style");
4691
4670
  v.innerHTML = a, u.appendChild(v);
4692
- }, H = () => {
4693
- let v = new URL(l), w = document.createElement("style");
4694
- fetch(v.href).then((O) => O.text()).then((O) => {
4695
- w.innerHTML = O, setTimeout(
4671
+ }, w = () => {
4672
+ let v = new URL(l), H = document.createElement("style");
4673
+ fetch(v.href).then((P) => P.text()).then((P) => {
4674
+ H.innerHTML = P, setTimeout(
4696
4675
  () => {
4697
- u.appendChild(w);
4676
+ u.appendChild(H);
4698
4677
  },
4699
4678
  1
4700
4679
  ), setTimeout(
@@ -4703,9 +4682,9 @@ function eo(e, t, r) {
4703
4682
  500
4704
4683
  );
4705
4684
  });
4706
- }, R = (v, w) => y(v, w);
4685
+ }, L = (v, H) => _(v, H);
4707
4686
  function V(v) {
4708
- Re[v ? "unshift" : "push"](() => {
4687
+ Me[v ? "unshift" : "push"](() => {
4709
4688
  u = v, r(0, u);
4710
4689
  });
4711
4690
  }
@@ -4714,9 +4693,9 @@ function eo(e, t, r) {
4714
4693
  }, e.$$.update = () => {
4715
4694
  e.$$.dirty & /*customStylingContainer, clientstyling*/
4716
4695
  1025 && u && a && T(), e.$$.dirty & /*customStylingContainer, clientstylingurl*/
4717
- 2049 && u && l && H(), e.$$.dirty & /*translationurl*/
4696
+ 2049 && u && l && w(), e.$$.dirty & /*translationurl*/
4718
4697
  512 && s && d(), e.$$.dirty & /*filters*/
4719
- 128 && i && x(), e.$$.dirty & /*activefilters*/
4698
+ 128 && i && S(), e.$$.dirty & /*activefilters*/
4720
4699
  256 && o && N();
4721
4700
  }, [
4722
4701
  u,
@@ -4725,24 +4704,24 @@ function eo(e, t, r) {
4725
4704
  p,
4726
4705
  n,
4727
4706
  m,
4728
- y,
4707
+ _,
4729
4708
  i,
4730
4709
  o,
4731
4710
  s,
4732
4711
  a,
4733
4712
  l,
4734
- R,
4713
+ L,
4735
4714
  V
4736
4715
  ];
4737
4716
  }
4738
- class to extends Wr {
4717
+ class Ki extends zr {
4739
4718
  constructor(t) {
4740
- super(), Xr(
4719
+ super(), Vr(
4741
4720
  this,
4742
4721
  t,
4743
- eo,
4744
- Ki,
4745
- kt,
4722
+ qi,
4723
+ Yi,
4724
+ Gt,
4746
4725
  {
4747
4726
  filters: 7,
4748
4727
  activefilters: 8,
@@ -4750,7 +4729,7 @@ class to extends Wr {
4750
4729
  clientstyling: 10,
4751
4730
  clientstylingurl: 11
4752
4731
  },
4753
- qi
4732
+ Ji
4754
4733
  );
4755
4734
  }
4756
4735
  get filters() {
@@ -4784,7 +4763,7 @@ class to extends Wr {
4784
4763
  this.$$set({ clientstylingurl: t }), G();
4785
4764
  }
4786
4765
  }
4787
- zr(to, { filters: {}, activefilters: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
4766
+ Xr(Ki, { filters: {}, activefilters: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
4788
4767
  export {
4789
- to as default
4768
+ Ki as default
4790
4769
  };