@everymatrix/general-player-register-form 1.54.12 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. package/components/{GeneralPlayerRegisterForm-DOv7D3eQ.js → GeneralPlayerRegisterForm-CCoIeenv.js} +671 -649
  2. package/components/{GeneralPlayerRegisterForm-DpAPPNux.js → GeneralPlayerRegisterForm-OYfKg3Gz.js} +700 -678
  3. package/components/GeneralPlayerRegisterForm-t6rLlCV2.cjs +5 -0
  4. package/components/{GeneralPlayerRegisterFormStep1-Cz2CEpeL.cjs → GeneralPlayerRegisterFormStep1-58R7jgfc.cjs} +1 -1
  5. package/components/{GeneralPlayerRegisterFormStep1-DpiASaTA.js → GeneralPlayerRegisterFormStep1-C1h9gv6m.js} +27 -27
  6. package/components/{GeneralPlayerRegisterFormStep1-C83LZgJY.js → GeneralPlayerRegisterFormStep1-DVIa2rjJ.js} +30 -30
  7. package/components/{GeneralPlayerRegisterFormStep2-CubuIiFn.cjs → GeneralPlayerRegisterFormStep2-C4Uvs4-y.cjs} +1 -1
  8. package/components/{GeneralPlayerRegisterFormStep2-lGuI2eRQ.js → GeneralPlayerRegisterFormStep2-Cx3DNcUb.js} +47 -47
  9. package/components/{GeneralPlayerRegisterFormStep2-CXD5CvQf.js → GeneralPlayerRegisterFormStep2-D4TfY_zd.js} +47 -47
  10. package/components/{GeneralPlayerRegisterFormStep3-h7YKZDBr.cjs → GeneralPlayerRegisterFormStep3-B4v67EHk.cjs} +1 -1
  11. package/components/{GeneralPlayerRegisterFormStep3-WqPxnm_y.js → GeneralPlayerRegisterFormStep3-BxpP5Ns-.js} +10 -10
  12. package/components/{GeneralPlayerRegisterFormStep3-19xNp2Ps.js → GeneralPlayerRegisterFormStep3-D1rK9Bf0.js} +10 -10
  13. package/components/{GeneralPlayerSmsVerificationForm-Dpsk97v0.js → GeneralPlayerSmsVerificationForm-CBGEYebq.js} +22 -22
  14. package/components/{GeneralPlayerSmsVerificationForm-yuOyqnMl.cjs → GeneralPlayerSmsVerificationForm-GzoAbila.cjs} +1 -1
  15. package/components/{GeneralPlayerSmsVerificationForm-CU5YheSI.js → GeneralPlayerSmsVerificationForm-aor0cQO-.js} +22 -22
  16. package/es2015/general-player-register-form.cjs +1 -1
  17. package/es2015/general-player-register-form.js +1 -1
  18. package/esnext/general-player-register-form.js +1 -1
  19. package/package.json +1 -1
  20. package/components/GeneralPlayerRegisterForm-D0i-XAyN.cjs +0 -5
@@ -1,15 +1,15 @@
1
- var sn = Object.defineProperty, on = Object.defineProperties;
2
- var an = Object.getOwnPropertyDescriptors;
3
- var Ot = Object.getOwnPropertySymbols;
4
- var un = Object.prototype.hasOwnProperty, ln = Object.prototype.propertyIsEnumerable;
5
- var $e = (e, t, r) => t in e ? sn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ct = (e, t) => {
1
+ var ln = Object.defineProperty, hn = Object.defineProperties;
2
+ var fn = Object.getOwnPropertyDescriptors;
3
+ var Rt = Object.getOwnPropertySymbols;
4
+ var cn = Object.prototype.hasOwnProperty, pn = Object.prototype.propertyIsEnumerable;
5
+ var $e = (e, t, r) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Lt = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- un.call(t, r) && $e(e, r, t[r]);
8
- if (Ot)
9
- for (var r of Ot(t))
10
- ln.call(t, r) && $e(e, r, t[r]);
7
+ cn.call(t, r) && $e(e, r, t[r]);
8
+ if (Rt)
9
+ for (var r of Rt(t))
10
+ pn.call(t, r) && $e(e, r, t[r]);
11
11
  return e;
12
- }, It = (e, t) => on(e, an(t));
12
+ }, Mt = (e, t) => hn(e, fn(t));
13
13
  var F = (e, t, r) => $e(e, typeof t != "symbol" ? t + "" : t, r);
14
14
  var Se = (e, t, r) => new Promise((n, i) => {
15
15
  var s = (l) => {
@@ -29,29 +29,29 @@ var Se = (e, t, r) => new Promise((n, i) => {
29
29
  });
30
30
  function k() {
31
31
  }
32
- function lr(e) {
32
+ function cr(e) {
33
33
  return e();
34
34
  }
35
- function Rt() {
35
+ function Nt() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function ge(e) {
39
- e.forEach(lr);
39
+ e.forEach(cr);
40
40
  }
41
- function ct(e) {
41
+ function pt(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function hr(e, t) {
44
+ function pr(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
47
  let we;
48
- function qs(e, t) {
48
+ function Ys(e, t) {
49
49
  return e === t ? !0 : (we || (we = document.createElement("a")), we.href = t, e === we.href);
50
50
  }
51
- function hn(e) {
51
+ function mn(e) {
52
52
  return Object.keys(e).length === 0;
53
53
  }
54
- function fr(e, ...t) {
54
+ function mr(e, ...t) {
55
55
  if (e == null) {
56
56
  for (const n of t)
57
57
  n(void 0);
@@ -60,24 +60,24 @@ function fr(e, ...t) {
60
60
  const r = e.subscribe(...t);
61
61
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
62
  }
63
- function fn(e, t, r) {
64
- e.$$.on_destroy.push(fr(t, r));
63
+ function dn(e, t, r) {
64
+ e.$$.on_destroy.push(mr(t, r));
65
65
  }
66
- const Js = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : (
66
+ const Ks = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : (
67
67
  // @ts-ignore Node typings have this
68
68
  global
69
69
  );
70
70
  function E(e, t) {
71
71
  e.appendChild(t);
72
72
  }
73
- function cn(e, t, r) {
74
- const n = pn(e);
73
+ function gn(e, t, r) {
74
+ const n = bn(e);
75
75
  if (!n.getElementById(t)) {
76
76
  const i = B("style");
77
- i.id = t, i.textContent = r, mn(n, i);
77
+ i.id = t, i.textContent = r, yn(n, i);
78
78
  }
79
79
  }
80
- function pn(e) {
80
+ function bn(e) {
81
81
  if (!e) return document;
82
82
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
83
83
  return t && /** @type {ShadowRoot} */
@@ -86,7 +86,7 @@ function pn(e) {
86
86
  t
87
87
  ) : e.ownerDocument;
88
88
  }
89
- function mn(e, t) {
89
+ function yn(e, t) {
90
90
  return E(
91
91
  /** @type {Document} */
92
92
  e.head || e,
@@ -96,10 +96,10 @@ function mn(e, t) {
96
96
  function U(e, t, r) {
97
97
  e.insertBefore(t, r || null);
98
98
  }
99
- function M(e) {
99
+ function N(e) {
100
100
  e.parentNode && e.parentNode.removeChild(e);
101
101
  }
102
- function Qs(e, t) {
102
+ function eo(e, t) {
103
103
  for (let r = 0; r < e.length; r += 1)
104
104
  e[r] && e[r].d(t);
105
105
  }
@@ -115,10 +115,10 @@ function $(e) {
115
115
  function G() {
116
116
  return $(" ");
117
117
  }
118
- function dn() {
118
+ function vn() {
119
119
  return $("");
120
120
  }
121
- function gn(e, t, r, n) {
121
+ function _n(e, t, r, n) {
122
122
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
123
123
  }
124
124
  function T(e, t, r) {
@@ -128,17 +128,17 @@ function p(e, t, r) {
128
128
  const n = t.toLowerCase();
129
129
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : T(e, t, r);
130
130
  }
131
- function bn(e) {
131
+ function En(e) {
132
132
  return Array.from(e.childNodes);
133
133
  }
134
134
  function K(e, t) {
135
135
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
136
136
  t);
137
137
  }
138
- function Ys(e, t) {
138
+ function to(e, t) {
139
139
  e.value = t == null ? "" : t;
140
140
  }
141
- function Ks(e, t, r) {
141
+ function ro(e, t, r) {
142
142
  for (let n = 0; n < e.options.length; n += 1) {
143
143
  const i = e.options[n];
144
144
  if (i.__value === t) {
@@ -148,11 +148,11 @@ function Ks(e, t, r) {
148
148
  }
149
149
  (!r || t !== void 0) && (e.selectedIndex = -1);
150
150
  }
151
- function eo(e) {
151
+ function no(e) {
152
152
  const t = e.querySelector(":checked");
153
153
  return t && t.__value;
154
154
  }
155
- function yn(e) {
155
+ function Sn(e) {
156
156
  const t = {};
157
157
  return e.childNodes.forEach(
158
158
  /** @param {Element} node */
@@ -165,21 +165,21 @@ let pe;
165
165
  function ce(e) {
166
166
  pe = e;
167
167
  }
168
- function vn() {
168
+ function wn() {
169
169
  if (!pe) throw new Error("Function called outside component initialization");
170
170
  return pe;
171
171
  }
172
- function _n(e) {
173
- vn().$$.on_mount.push(e);
172
+ function xn(e) {
173
+ wn().$$.on_mount.push(e);
174
174
  }
175
- const Y = [], Ce = [];
175
+ const Y = [], Oe = [];
176
176
  let ee = [];
177
- const Lt = [], En = /* @__PURE__ */ Promise.resolve();
178
- let Qe = !1;
179
- function Sn() {
180
- Qe || (Qe = !0, En.then(A));
177
+ const Dt = [], Tn = /* @__PURE__ */ Promise.resolve();
178
+ let Ye = !1;
179
+ function Hn() {
180
+ Ye || (Ye = !0, Tn.then(A));
181
181
  }
182
- function Ye(e) {
182
+ function Ke(e) {
183
183
  ee.push(e);
184
184
  }
185
185
  const Ve = /* @__PURE__ */ new Set();
@@ -192,55 +192,55 @@ function A() {
192
192
  try {
193
193
  for (; J < Y.length; ) {
194
194
  const t = Y[J];
195
- J++, ce(t), wn(t.$$);
195
+ J++, ce(t), Bn(t.$$);
196
196
  }
197
197
  } catch (t) {
198
198
  throw Y.length = 0, J = 0, t;
199
199
  }
200
- for (ce(null), Y.length = 0, J = 0; Ce.length; ) Ce.pop()();
200
+ for (ce(null), Y.length = 0, J = 0; Oe.length; ) Oe.pop()();
201
201
  for (let t = 0; t < ee.length; t += 1) {
202
202
  const r = ee[t];
203
203
  Ve.has(r) || (Ve.add(r), r());
204
204
  }
205
205
  ee.length = 0;
206
206
  } while (Y.length);
207
- for (; Lt.length; )
208
- Lt.pop()();
209
- Qe = !1, Ve.clear(), ce(e);
207
+ for (; Dt.length; )
208
+ Dt.pop()();
209
+ Ye = !1, Ve.clear(), ce(e);
210
210
  }
211
- function wn(e) {
211
+ function Bn(e) {
212
212
  if (e.fragment !== null) {
213
213
  e.update(), ge(e.before_update);
214
214
  const t = e.dirty;
215
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ye);
215
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ke);
216
216
  }
217
217
  }
218
- function xn(e) {
218
+ function An(e) {
219
219
  const t = [], r = [];
220
220
  ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
221
221
  }
222
- const Tn = /* @__PURE__ */ new Set();
223
- function Hn(e, t) {
224
- e && e.i && (Tn.delete(e), e.i(t));
222
+ const Pn = /* @__PURE__ */ new Set();
223
+ function Cn(e, t) {
224
+ e && e.i && (Pn.delete(e), e.i(t));
225
225
  }
226
- function to(e) {
226
+ function io(e) {
227
227
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
228
228
  }
229
- function Bn(e, t, r) {
229
+ function On(e, t, r) {
230
230
  const { fragment: n, after_update: i } = e.$$;
231
- n && n.m(t, r), Ye(() => {
232
- const s = e.$$.on_mount.map(lr).filter(ct);
231
+ n && n.m(t, r), Ke(() => {
232
+ const s = e.$$.on_mount.map(cr).filter(pt);
233
233
  e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ge(s), e.$$.on_mount = [];
234
- }), i.forEach(Ye);
234
+ }), i.forEach(Ke);
235
235
  }
236
- function An(e, t) {
236
+ function In(e, t) {
237
237
  const r = e.$$;
238
- r.fragment !== null && (xn(r.after_update), ge(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
238
+ r.fragment !== null && (An(r.after_update), ge(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
239
239
  }
240
- function Pn(e, t) {
241
- e.$$.dirty[0] === -1 && (Y.push(e), Sn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
240
+ function Rn(e, t) {
241
+ e.$$.dirty[0] === -1 && (Y.push(e), Hn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
242
242
  }
243
- function On(e, t, r, n, i, s, o = null, a = [-1]) {
243
+ function Ln(e, t, r, n, i, s, o = null, a = [-1]) {
244
244
  const l = pe;
245
245
  ce(e);
246
246
  const u = e.$$ = {
@@ -250,7 +250,7 @@ function On(e, t, r, n, i, s, o = null, a = [-1]) {
250
250
  props: s,
251
251
  update: k,
252
252
  not_equal: i,
253
- bound: Rt(),
253
+ bound: Nt(),
254
254
  // lifecycle
255
255
  on_mount: [],
256
256
  on_destroy: [],
@@ -259,7 +259,7 @@ function On(e, t, r, n, i, s, o = null, a = [-1]) {
259
259
  after_update: [],
260
260
  context: new Map(t.context || (l ? l.$$.context : [])),
261
261
  // everything else
262
- callbacks: Rt(),
262
+ callbacks: Nt(),
263
263
  dirty: a,
264
264
  skip_bound: !1,
265
265
  root: t.target || l.$$.root
@@ -268,19 +268,19 @@ function On(e, t, r, n, i, s, o = null, a = [-1]) {
268
268
  let h = !1;
269
269
  if (u.ctx = r ? r(e, t.props || {}, (c, m, ...y) => {
270
270
  const g = y.length ? y[0] : m;
271
- return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && Pn(e, c)), m;
271
+ return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && Rn(e, c)), m;
272
272
  }) : [], u.update(), h = !0, ge(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
273
273
  if (t.hydrate) {
274
- const c = bn(t.target);
275
- u.fragment && u.fragment.l(c), c.forEach(M);
274
+ const c = En(t.target);
275
+ u.fragment && u.fragment.l(c), c.forEach(N);
276
276
  } else
277
277
  u.fragment && u.fragment.c();
278
- t.intro && Hn(e.$$.fragment), Bn(e, t.target, t.anchor), A();
278
+ t.intro && Cn(e.$$.fragment), On(e, t.target, t.anchor), A();
279
279
  }
280
280
  ce(l);
281
281
  }
282
- let cr;
283
- typeof HTMLElement == "function" && (cr = class extends HTMLElement {
282
+ let dr;
283
+ typeof HTMLElement == "function" && (dr = class extends HTMLElement {
284
284
  constructor(t, r, n) {
285
285
  super();
286
286
  /** The Svelte component constructor */
@@ -334,14 +334,14 @@ typeof HTMLElement == "function" && (cr = class extends HTMLElement {
334
334
  U(u, o, h);
335
335
  },
336
336
  d: function(u) {
337
- u && M(o);
337
+ u && N(o);
338
338
  }
339
339
  };
340
340
  };
341
341
  };
342
342
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
343
343
  return;
344
- const r = {}, n = yn(this);
344
+ const r = {}, n = Sn(this);
345
345
  for (const s of this.$$s)
346
346
  s in n && (r[s] = [t(s)]);
347
347
  for (const s of this.attributes) {
@@ -352,7 +352,7 @@ typeof HTMLElement == "function" && (cr = class extends HTMLElement {
352
352
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
353
353
  this.$$c = new this.$$ctor({
354
354
  target: this.shadowRoot || this,
355
- props: It(Ct({}, this.$$d), {
355
+ props: Mt(Lt({}, this.$$d), {
356
356
  $$slots: r,
357
357
  $$scope: {
358
358
  ctx: []
@@ -430,8 +430,8 @@ function Be(e, t, r, n) {
430
430
  return t;
431
431
  }
432
432
  }
433
- function Cn(e, t, r, n, i, s) {
434
- let o = class extends cr {
433
+ function Mn(e, t, r, n, i, s) {
434
+ let o = class extends dr {
435
435
  constructor() {
436
436
  super(e, r, i), this.$$p_d = t;
437
437
  }
@@ -461,7 +461,7 @@ function Cn(e, t, r, n, i, s) {
461
461
  }), e.element = /** @type {any} */
462
462
  o, o;
463
463
  }
464
- class In {
464
+ class Nn {
465
465
  constructor() {
466
466
  /**
467
467
  * ### PRIVATE API
@@ -482,7 +482,7 @@ class In {
482
482
  }
483
483
  /** @returns {void} */
484
484
  $destroy() {
485
- An(this, 1), this.$destroy = k;
485
+ In(this, 1), this.$destroy = k;
486
486
  }
487
487
  /**
488
488
  * @template {Extract<keyof Events, string>} K
@@ -491,7 +491,7 @@ class In {
491
491
  * @returns {() => void}
492
492
  */
493
493
  $on(t, r) {
494
- if (!ct(r))
494
+ if (!pt(r))
495
495
  return k;
496
496
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
497
497
  return n.push(r), () => {
@@ -504,22 +504,22 @@ class In {
504
504
  * @returns {void}
505
505
  */
506
506
  $set(t) {
507
- this.$$set && !hn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
507
+ this.$$set && !mn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
508
508
  }
509
509
  }
510
- const Rn = "4";
511
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Rn);
512
- var Ke = function(e, t) {
513
- return Ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
510
+ const Dn = "4";
511
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dn);
512
+ var et = function(e, t) {
513
+ return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
514
514
  r.__proto__ = n;
515
515
  } || function(r, n) {
516
516
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
517
- }, Ke(e, t);
517
+ }, et(e, t);
518
518
  };
519
519
  function X(e, t) {
520
520
  if (typeof t != "function" && t !== null)
521
521
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
522
- Ke(e, t);
522
+ et(e, t);
523
523
  function r() {
524
524
  this.constructor = e;
525
525
  }
@@ -534,7 +534,7 @@ var S = function() {
534
534
  return t;
535
535
  }, S.apply(this, arguments);
536
536
  };
537
- function Ln(e, t) {
537
+ function Fn(e, t) {
538
538
  var r = {};
539
539
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
540
540
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -542,7 +542,7 @@ function Ln(e, t) {
542
542
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
543
543
  return r;
544
544
  }
545
- function et(e) {
545
+ function tt(e) {
546
546
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
547
547
  if (r) return r.call(e);
548
548
  if (e && typeof e.length == "number") return {
@@ -552,7 +552,7 @@ function et(e) {
552
552
  };
553
553
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
554
554
  }
555
- function tt(e, t) {
555
+ function rt(e, t) {
556
556
  var r = typeof Symbol == "function" && e[Symbol.iterator];
557
557
  if (!r) return e;
558
558
  var n = r.call(e), i, s = [], o;
@@ -577,13 +577,13 @@ function te(e, t, r) {
577
577
  function V(e) {
578
578
  return typeof e == "function";
579
579
  }
580
- function pr(e) {
580
+ function gr(e) {
581
581
  var t = function(n) {
582
582
  Error.call(n), n.stack = new Error().stack;
583
583
  }, r = e(t);
584
584
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
585
585
  }
586
- var Xe = pr(function(e) {
586
+ var Xe = gr(function(e) {
587
587
  return function(r) {
588
588
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
589
589
  ` + r.map(function(n, i) {
@@ -592,7 +592,7 @@ var Xe = pr(function(e) {
592
592
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
593
593
  };
594
594
  });
595
- function rt(e, t) {
595
+ function nt(e, t) {
596
596
  if (e) {
597
597
  var r = e.indexOf(t);
598
598
  0 <= r && e.splice(r, 1);
@@ -610,7 +610,7 @@ var Le = function() {
610
610
  if (o)
611
611
  if (this._parentage = null, Array.isArray(o))
612
612
  try {
613
- for (var a = et(o), l = a.next(); !l.done; l = a.next()) {
613
+ for (var a = tt(o), l = a.next(); !l.done; l = a.next()) {
614
614
  var u = l.value;
615
615
  u.remove(this);
616
616
  }
@@ -636,12 +636,12 @@ var Le = function() {
636
636
  if (c) {
637
637
  this._finalizers = null;
638
638
  try {
639
- for (var m = et(c), y = m.next(); !y.done; y = m.next()) {
639
+ for (var m = tt(c), y = m.next(); !y.done; y = m.next()) {
640
640
  var g = y.value;
641
641
  try {
642
- Nt(g);
642
+ Ft(g);
643
643
  } catch (d) {
644
- s = s != null ? s : [], d instanceof Xe ? s = te(te([], tt(s)), tt(d.errors)) : s.push(d);
644
+ s = s != null ? s : [], d instanceof Xe ? s = te(te([], rt(s)), rt(d.errors)) : s.push(d);
645
645
  }
646
646
  }
647
647
  } catch (d) {
@@ -661,7 +661,7 @@ var Le = function() {
661
661
  var r;
662
662
  if (t && t !== this)
663
663
  if (this.closed)
664
- Nt(t);
664
+ Ft(t);
665
665
  else {
666
666
  if (t instanceof e) {
667
667
  if (t.closed || t._hasParent(this))
@@ -678,52 +678,56 @@ var Le = function() {
678
678
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
679
679
  }, e.prototype._removeParent = function(t) {
680
680
  var r = this._parentage;
681
- r === t ? this._parentage = null : Array.isArray(r) && rt(r, t);
681
+ r === t ? this._parentage = null : Array.isArray(r) && nt(r, t);
682
682
  }, e.prototype.remove = function(t) {
683
683
  var r = this._finalizers;
684
- r && rt(r, t), t instanceof e && t._removeParent(this);
684
+ r && nt(r, t), t instanceof e && t._removeParent(this);
685
685
  }, e.EMPTY = function() {
686
686
  var t = new e();
687
687
  return t.closed = !0, t;
688
688
  }(), e;
689
- }(), mr = Le.EMPTY;
690
- function dr(e) {
689
+ }(), br = Le.EMPTY;
690
+ function yr(e) {
691
691
  return e instanceof Le || e && "closed" in e && V(e.remove) && V(e.add) && V(e.unsubscribe);
692
692
  }
693
- function Nt(e) {
693
+ function Ft(e) {
694
694
  V(e) ? e() : e.unsubscribe();
695
695
  }
696
- var Nn = {
697
- Promise: void 0
698
- }, Mn = {
696
+ var vr = {
697
+ onUnhandledError: null,
698
+ onStoppedNotification: null,
699
+ Promise: void 0,
700
+ useDeprecatedSynchronousErrorHandling: !1,
701
+ useDeprecatedNextContext: !1
702
+ }, Un = {
699
703
  setTimeout: function(e, t) {
700
704
  for (var r = [], n = 2; n < arguments.length; n++)
701
705
  r[n - 2] = arguments[n];
702
- return setTimeout.apply(void 0, te([e, t], tt(r)));
706
+ return setTimeout.apply(void 0, te([e, t], rt(r)));
703
707
  },
704
708
  clearTimeout: function(e) {
705
709
  return clearTimeout(e);
706
710
  },
707
711
  delegate: void 0
708
712
  };
709
- function Dn(e) {
710
- Mn.setTimeout(function() {
713
+ function Gn(e) {
714
+ Un.setTimeout(function() {
711
715
  throw e;
712
716
  });
713
717
  }
714
- function Mt() {
718
+ function Ut() {
715
719
  }
716
720
  function Ae(e) {
717
721
  e();
718
722
  }
719
- var gr = function(e) {
723
+ var _r = function(e) {
720
724
  X(t, e);
721
725
  function t(r) {
722
726
  var n = e.call(this) || this;
723
- return n.isStopped = !1, r ? (n.destination = r, dr(r) && r.add(n)) : n.destination = Gn, n;
727
+ return n.isStopped = !1, r ? (n.destination = r, yr(r) && r.add(n)) : n.destination = Vn, n;
724
728
  }
725
729
  return t.create = function(r, n, i) {
726
- return new nt(r, n, i);
730
+ return new it(r, n, i);
727
731
  }, t.prototype.next = function(r) {
728
732
  this.isStopped || this._next(r);
729
733
  }, t.prototype.error = function(r) {
@@ -747,7 +751,11 @@ var gr = function(e) {
747
751
  this.unsubscribe();
748
752
  }
749
753
  }, t;
750
- }(Le), Fn = function() {
754
+ }(Le), kn = Function.prototype.bind;
755
+ function We(e, t) {
756
+ return kn.call(e, t);
757
+ }
758
+ var jn = function() {
751
759
  function e(t) {
752
760
  this.partialObserver = t;
753
761
  }
@@ -778,43 +786,55 @@ var gr = function(e) {
778
786
  Te(r);
779
787
  }
780
788
  }, e;
781
- }(), nt = function(e) {
789
+ }(), it = function(e) {
782
790
  X(t, e);
783
791
  function t(r, n, i) {
784
792
  var s = e.call(this) || this, o;
785
- return V(r) || !r ? o = {
786
- next: r != null ? r : void 0,
787
- error: n != null ? n : void 0,
788
- complete: i != null ? i : void 0
789
- } : o = r, s.destination = new Fn(o), s;
793
+ if (V(r) || !r)
794
+ o = {
795
+ next: r != null ? r : void 0,
796
+ error: n != null ? n : void 0,
797
+ complete: i != null ? i : void 0
798
+ };
799
+ else {
800
+ var a;
801
+ s && vr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
802
+ return s.unsubscribe();
803
+ }, o = {
804
+ next: r.next && We(r.next, a),
805
+ error: r.error && We(r.error, a),
806
+ complete: r.complete && We(r.complete, a)
807
+ }) : o = r;
808
+ }
809
+ return s.destination = new jn(o), s;
790
810
  }
791
811
  return t;
792
- }(gr);
812
+ }(_r);
793
813
  function Te(e) {
794
- Dn(e);
814
+ Gn(e);
795
815
  }
796
- function Un(e) {
816
+ function $n(e) {
797
817
  throw e;
798
818
  }
799
- var Gn = {
819
+ var Vn = {
800
820
  closed: !0,
801
- next: Mt,
802
- error: Un,
803
- complete: Mt
804
- }, kn = function() {
821
+ next: Ut,
822
+ error: $n,
823
+ complete: Ut
824
+ }, Xn = function() {
805
825
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
806
826
  }();
807
- function jn(e) {
827
+ function Wn(e) {
808
828
  return e;
809
829
  }
810
- function $n(e) {
811
- return e.length === 0 ? jn : e.length === 1 ? e[0] : function(r) {
830
+ function zn(e) {
831
+ return e.length === 0 ? Wn : e.length === 1 ? e[0] : function(r) {
812
832
  return e.reduce(function(n, i) {
813
833
  return i(n);
814
834
  }, r);
815
835
  };
816
836
  }
817
- var Dt = function() {
837
+ var Gt = function() {
818
838
  function e(t) {
819
839
  t && (this._subscribe = t);
820
840
  }
@@ -822,7 +842,7 @@ var Dt = function() {
822
842
  var r = new e();
823
843
  return r.source = this, r.operator = t, r;
824
844
  }, e.prototype.subscribe = function(t, r, n) {
825
- var i = this, s = Xn(t) ? t : new nt(t, r, n);
845
+ var i = this, s = qn(t) ? t : new it(t, r, n);
826
846
  return Ae(function() {
827
847
  var o = i, a = o.operator, l = o.source;
828
848
  s.add(a ? a.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
@@ -835,8 +855,8 @@ var Dt = function() {
835
855
  }
836
856
  }, e.prototype.forEach = function(t, r) {
837
857
  var n = this;
838
- return r = Ft(r), new r(function(i, s) {
839
- var o = new nt({
858
+ return r = kt(r), new r(function(i, s) {
859
+ var o = new it({
840
860
  next: function(a) {
841
861
  try {
842
862
  t(a);
@@ -852,15 +872,15 @@ var Dt = function() {
852
872
  }, e.prototype._subscribe = function(t) {
853
873
  var r;
854
874
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
855
- }, e.prototype[kn] = function() {
875
+ }, e.prototype[Xn] = function() {
856
876
  return this;
857
877
  }, e.prototype.pipe = function() {
858
878
  for (var t = [], r = 0; r < arguments.length; r++)
859
879
  t[r] = arguments[r];
860
- return $n(t)(this);
880
+ return zn(t)(this);
861
881
  }, e.prototype.toPromise = function(t) {
862
882
  var r = this;
863
- return t = Ft(t), new t(function(n, i) {
883
+ return t = kt(t), new t(function(n, i) {
864
884
  var s;
865
885
  r.subscribe(function(o) {
866
886
  return s = o;
@@ -874,32 +894,32 @@ var Dt = function() {
874
894
  return new e(t);
875
895
  }, e;
876
896
  }();
877
- function Ft(e) {
897
+ function kt(e) {
878
898
  var t;
879
- return (t = e != null ? e : Nn.Promise) !== null && t !== void 0 ? t : Promise;
899
+ return (t = e != null ? e : vr.Promise) !== null && t !== void 0 ? t : Promise;
880
900
  }
881
- function Vn(e) {
901
+ function Zn(e) {
882
902
  return e && V(e.next) && V(e.error) && V(e.complete);
883
903
  }
884
- function Xn(e) {
885
- return e && e instanceof gr || Vn(e) && dr(e);
904
+ function qn(e) {
905
+ return e && e instanceof _r || Zn(e) && yr(e);
886
906
  }
887
- var Wn = pr(function(e) {
907
+ var Jn = gr(function(e) {
888
908
  return function() {
889
909
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
890
910
  };
891
- }), br = function(e) {
911
+ }), Er = function(e) {
892
912
  X(t, e);
893
913
  function t() {
894
914
  var r = e.call(this) || this;
895
915
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
896
916
  }
897
917
  return t.prototype.lift = function(r) {
898
- var n = new Ut(this, this);
918
+ var n = new jt(this, this);
899
919
  return n.operator = r, n;
900
920
  }, t.prototype._throwIfClosed = function() {
901
921
  if (this.closed)
902
- throw new Wn();
922
+ throw new Jn();
903
923
  }, t.prototype.next = function(r) {
904
924
  var n = this;
905
925
  Ae(function() {
@@ -907,7 +927,7 @@ var Wn = pr(function(e) {
907
927
  if (n._throwIfClosed(), !n.isStopped) {
908
928
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
909
929
  try {
910
- for (var o = et(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
930
+ for (var o = tt(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
911
931
  var l = a.value;
912
932
  l.next(r);
913
933
  }
@@ -955,19 +975,19 @@ var Wn = pr(function(e) {
955
975
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
956
976
  }, t.prototype._innerSubscribe = function(r) {
957
977
  var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
958
- return s || o ? mr : (this.currentObservers = null, a.push(r), new Le(function() {
959
- n.currentObservers = null, rt(a, r);
978
+ return s || o ? br : (this.currentObservers = null, a.push(r), new Le(function() {
979
+ n.currentObservers = null, nt(a, r);
960
980
  }));
961
981
  }, t.prototype._checkFinalizedStatuses = function(r) {
962
982
  var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
963
983
  i ? r.error(s) : o && r.complete();
964
984
  }, t.prototype.asObservable = function() {
965
- var r = new Dt();
985
+ var r = new Gt();
966
986
  return r.source = this, r;
967
987
  }, t.create = function(r, n) {
968
- return new Ut(r, n);
988
+ return new jt(r, n);
969
989
  }, t;
970
- }(Dt), Ut = function(e) {
990
+ }(Gt), jt = function(e) {
971
991
  X(t, e);
972
992
  function t(r, n) {
973
993
  var i = e.call(this) || this;
@@ -984,17 +1004,17 @@ var Wn = pr(function(e) {
984
1004
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
985
1005
  }, t.prototype._subscribe = function(r) {
986
1006
  var n, i;
987
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : mr;
1007
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : br;
988
1008
  }, t;
989
- }(br), yr = {
1009
+ }(Er), Sr = {
990
1010
  now: function() {
991
- return (yr.delegate || Date).now();
1011
+ return (Sr.delegate || Date).now();
992
1012
  },
993
1013
  delegate: void 0
994
- }, zn = function(e) {
1014
+ }, Qn = function(e) {
995
1015
  X(t, e);
996
1016
  function t(r, n, i) {
997
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = yr);
1017
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Sr);
998
1018
  var s = e.call(this) || this;
999
1019
  return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
1000
1020
  }
@@ -1014,24 +1034,24 @@ var Wn = pr(function(e) {
1014
1034
  u && s.splice(0, u + 1);
1015
1035
  }
1016
1036
  }, t;
1017
- }(br);
1018
- const Gt = [], kt = {}, Zn = (e, t = 0) => {
1019
- if (Gt.indexOf(e) == -1) {
1020
- const r = new zn(t);
1021
- kt[e] = r, Gt.push(e);
1037
+ }(Er);
1038
+ const $t = [], Vt = {}, Yn = (e, t = 0) => {
1039
+ if ($t.indexOf(e) == -1) {
1040
+ const r = new Qn(t);
1041
+ Vt[e] = r, $t.push(e);
1022
1042
  }
1023
- return kt[e];
1043
+ return Vt[e];
1024
1044
  }, Q = [];
1025
- function qn(e, t) {
1045
+ function Kn(e, t) {
1026
1046
  return {
1027
- subscribe: Ne(e, t).subscribe
1047
+ subscribe: Me(e, t).subscribe
1028
1048
  };
1029
1049
  }
1030
- function Ne(e, t = k) {
1050
+ function Me(e, t = k) {
1031
1051
  let r;
1032
1052
  const n = /* @__PURE__ */ new Set();
1033
1053
  function i(a) {
1034
- if (hr(e, a) && (e = a, r)) {
1054
+ if (pr(e, a) && (e = a, r)) {
1035
1055
  const l = !Q.length;
1036
1056
  for (const u of n)
1037
1057
  u[1](), Q.push(u, e);
@@ -1058,7 +1078,7 @@ function oe(e, t, r) {
1058
1078
  if (!i.every(Boolean))
1059
1079
  throw new Error("derived() expects stores as input, got a falsy value");
1060
1080
  const s = t.length < 2;
1061
- return qn(r, (o, a) => {
1081
+ return Kn(r, (o, a) => {
1062
1082
  let l = !1;
1063
1083
  const u = [];
1064
1084
  let h = 0, c = k;
@@ -1067,9 +1087,9 @@ function oe(e, t, r) {
1067
1087
  return;
1068
1088
  c();
1069
1089
  const g = t(n ? u[0] : u, o, a);
1070
- s ? o(g) : c = ct(g) ? g : k;
1090
+ s ? o(g) : c = pt(g) ? g : k;
1071
1091
  }, y = i.map(
1072
- (g, d) => fr(
1092
+ (g, d) => mr(
1073
1093
  g,
1074
1094
  (b) => {
1075
1095
  u[d] = b, h &= ~(1 << d), l && m();
@@ -1084,70 +1104,70 @@ function oe(e, t, r) {
1084
1104
  };
1085
1105
  });
1086
1106
  }
1087
- function Jn(e) {
1107
+ function ei(e) {
1088
1108
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1089
1109
  }
1090
- var Qn = function(t) {
1091
- return Yn(t) && !Kn(t);
1110
+ var ti = function(t) {
1111
+ return ri(t) && !ni(t);
1092
1112
  };
1093
- function Yn(e) {
1113
+ function ri(e) {
1094
1114
  return !!e && typeof e == "object";
1095
1115
  }
1096
- function Kn(e) {
1116
+ function ni(e) {
1097
1117
  var t = Object.prototype.toString.call(e);
1098
- return t === "[object RegExp]" || t === "[object Date]" || ri(e);
1118
+ return t === "[object RegExp]" || t === "[object Date]" || oi(e);
1099
1119
  }
1100
- var ei = typeof Symbol == "function" && Symbol.for, ti = ei ? Symbol.for("react.element") : 60103;
1101
- function ri(e) {
1102
- return e.$$typeof === ti;
1120
+ var ii = typeof Symbol == "function" && Symbol.for, si = ii ? Symbol.for("react.element") : 60103;
1121
+ function oi(e) {
1122
+ return e.$$typeof === si;
1103
1123
  }
1104
- function ni(e) {
1124
+ function ai(e) {
1105
1125
  return Array.isArray(e) ? [] : {};
1106
1126
  }
1107
1127
  function me(e, t) {
1108
- return t.clone !== !1 && t.isMergeableObject(e) ? re(ni(e), e, t) : e;
1128
+ return t.clone !== !1 && t.isMergeableObject(e) ? re(ai(e), e, t) : e;
1109
1129
  }
1110
- function ii(e, t, r) {
1130
+ function ui(e, t, r) {
1111
1131
  return e.concat(t).map(function(n) {
1112
1132
  return me(n, r);
1113
1133
  });
1114
1134
  }
1115
- function si(e, t) {
1135
+ function li(e, t) {
1116
1136
  if (!t.customMerge)
1117
1137
  return re;
1118
1138
  var r = t.customMerge(e);
1119
1139
  return typeof r == "function" ? r : re;
1120
1140
  }
1121
- function oi(e) {
1141
+ function hi(e) {
1122
1142
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1123
1143
  return Object.propertyIsEnumerable.call(e, t);
1124
1144
  }) : [];
1125
1145
  }
1126
- function jt(e) {
1127
- return Object.keys(e).concat(oi(e));
1146
+ function Xt(e) {
1147
+ return Object.keys(e).concat(hi(e));
1128
1148
  }
1129
- function vr(e, t) {
1149
+ function wr(e, t) {
1130
1150
  try {
1131
1151
  return t in e;
1132
1152
  } catch (r) {
1133
1153
  return !1;
1134
1154
  }
1135
1155
  }
1136
- function ai(e, t) {
1137
- return vr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1156
+ function fi(e, t) {
1157
+ return wr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1138
1158
  }
1139
- function ui(e, t, r) {
1159
+ function ci(e, t, r) {
1140
1160
  var n = {};
1141
- return r.isMergeableObject(e) && jt(e).forEach(function(i) {
1161
+ return r.isMergeableObject(e) && Xt(e).forEach(function(i) {
1142
1162
  n[i] = me(e[i], r);
1143
- }), jt(t).forEach(function(i) {
1144
- ai(e, i) || (vr(e, i) && r.isMergeableObject(t[i]) ? n[i] = si(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
1163
+ }), Xt(t).forEach(function(i) {
1164
+ fi(e, i) || (wr(e, i) && r.isMergeableObject(t[i]) ? n[i] = li(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
1145
1165
  }), n;
1146
1166
  }
1147
1167
  function re(e, t, r) {
1148
- r = r || {}, r.arrayMerge = r.arrayMerge || ii, r.isMergeableObject = r.isMergeableObject || Qn, r.cloneUnlessOtherwiseSpecified = me;
1168
+ r = r || {}, r.arrayMerge = r.arrayMerge || ui, r.isMergeableObject = r.isMergeableObject || ti, r.cloneUnlessOtherwiseSpecified = me;
1149
1169
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
1150
- return s ? n ? r.arrayMerge(e, t, r) : ui(e, t, r) : me(t, r);
1170
+ return s ? n ? r.arrayMerge(e, t, r) : ci(e, t, r) : me(t, r);
1151
1171
  }
1152
1172
  re.all = function(t, r) {
1153
1173
  if (!Array.isArray(t))
@@ -1156,56 +1176,58 @@ re.all = function(t, r) {
1156
1176
  return re(n, i, r);
1157
1177
  }, {});
1158
1178
  };
1159
- var li = re, hi = li;
1160
- const fi = /* @__PURE__ */ Jn(hi);
1161
- function We(e, t) {
1162
- var r = t && t.cache ? t.cache : yi, n = t && t.serializer ? t.serializer : gi, i = t && t.strategy ? t.strategy : mi;
1179
+ var pi = re, mi = pi;
1180
+ const di = /* @__PURE__ */ ei(mi);
1181
+ function ze(e, t) {
1182
+ var r = t && t.cache ? t.cache : Ei, n = t && t.serializer ? t.serializer : _i, i = t && t.strategy ? t.strategy : bi;
1163
1183
  return i(e, {
1164
1184
  cache: r,
1165
1185
  serializer: n
1166
1186
  });
1167
1187
  }
1168
- function ci(e) {
1188
+ function gi(e) {
1169
1189
  return e == null || typeof e == "number" || typeof e == "boolean";
1170
1190
  }
1171
- function pi(e, t, r, n) {
1172
- var i = ci(n) ? n : r(n), s = t.get(i);
1191
+ function xr(e, t, r, n) {
1192
+ var i = gi(n) ? n : r(n), s = t.get(i);
1173
1193
  return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
1174
1194
  }
1175
- function _r(e, t, r) {
1195
+ function Tr(e, t, r) {
1176
1196
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
1177
1197
  return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
1178
1198
  }
1179
- function Er(e, t, r, n, i) {
1199
+ function mt(e, t, r, n, i) {
1180
1200
  return r.bind(t, e, n, i);
1181
1201
  }
1182
- function mi(e, t) {
1183
- var r = e.length === 1 ? pi : _r;
1184
- return Er(e, this, r, t.cache.create(), t.serializer);
1202
+ function bi(e, t) {
1203
+ var r = e.length === 1 ? xr : Tr;
1204
+ return mt(e, this, r, t.cache.create(), t.serializer);
1185
1205
  }
1186
- function di(e, t) {
1187
- return Er(e, this, _r, t.cache.create(), t.serializer);
1206
+ function yi(e, t) {
1207
+ return mt(e, this, Tr, t.cache.create(), t.serializer);
1188
1208
  }
1189
- var gi = function() {
1209
+ function vi(e, t) {
1210
+ return mt(e, this, xr, t.cache.create(), t.serializer);
1211
+ }
1212
+ var _i = function() {
1190
1213
  return JSON.stringify(arguments);
1191
- }, bi = (
1192
- /** @class */
1193
- function() {
1194
- function e() {
1195
- this.cache = /* @__PURE__ */ Object.create(null);
1196
- }
1197
- return e.prototype.get = function(t) {
1198
- return this.cache[t];
1199
- }, e.prototype.set = function(t, r) {
1200
- this.cache[t] = r;
1201
- }, e;
1202
- }()
1203
- ), yi = {
1214
+ };
1215
+ function dt() {
1216
+ this.cache = /* @__PURE__ */ Object.create(null);
1217
+ }
1218
+ dt.prototype.get = function(e) {
1219
+ return this.cache[e];
1220
+ };
1221
+ dt.prototype.set = function(e, t) {
1222
+ this.cache[e] = t;
1223
+ };
1224
+ var Ei = {
1204
1225
  create: function() {
1205
- return new bi();
1226
+ return new dt();
1206
1227
  }
1207
- }, ze = {
1208
- variadic: di
1228
+ }, Ze = {
1229
+ variadic: yi,
1230
+ monadic: vi
1209
1231
  }, v;
1210
1232
  (function(e) {
1211
1233
  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";
@@ -1218,43 +1240,43 @@ var ne;
1218
1240
  (function(e) {
1219
1241
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1220
1242
  })(ne || (ne = {}));
1221
- function $t(e) {
1243
+ function Wt(e) {
1222
1244
  return e.type === H.literal;
1223
1245
  }
1224
- function vi(e) {
1246
+ function Si(e) {
1225
1247
  return e.type === H.argument;
1226
1248
  }
1227
- function Sr(e) {
1249
+ function Hr(e) {
1228
1250
  return e.type === H.number;
1229
1251
  }
1230
- function wr(e) {
1252
+ function Br(e) {
1231
1253
  return e.type === H.date;
1232
1254
  }
1233
- function xr(e) {
1255
+ function Ar(e) {
1234
1256
  return e.type === H.time;
1235
1257
  }
1236
- function Tr(e) {
1258
+ function Pr(e) {
1237
1259
  return e.type === H.select;
1238
1260
  }
1239
- function Hr(e) {
1261
+ function Cr(e) {
1240
1262
  return e.type === H.plural;
1241
1263
  }
1242
- function _i(e) {
1264
+ function wi(e) {
1243
1265
  return e.type === H.pound;
1244
1266
  }
1245
- function Br(e) {
1267
+ function Or(e) {
1246
1268
  return e.type === H.tag;
1247
1269
  }
1248
- function Ar(e) {
1270
+ function Ir(e) {
1249
1271
  return !!(e && typeof e == "object" && e.type === ne.number);
1250
1272
  }
1251
- function it(e) {
1273
+ function st(e) {
1252
1274
  return !!(e && typeof e == "object" && e.type === ne.dateTime);
1253
1275
  }
1254
- var Pr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ei = /(?:[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;
1255
- function Si(e) {
1276
+ var Rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, xi = /(?:[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 Ti(e) {
1256
1278
  var t = {};
1257
- return e.replace(Ei, function(r) {
1279
+ return e.replace(xi, function(r) {
1258
1280
  var n = r.length;
1259
1281
  switch (r[0]) {
1260
1282
  case "G":
@@ -1343,11 +1365,11 @@ function Si(e) {
1343
1365
  return "";
1344
1366
  }), t;
1345
1367
  }
1346
- var wi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1347
- function xi(e) {
1368
+ var Hi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1369
+ function Bi(e) {
1348
1370
  if (e.length === 0)
1349
1371
  throw new Error("Number skeleton cannot be empty");
1350
- for (var t = e.split(wi).filter(function(m) {
1372
+ for (var t = e.split(Hi).filter(function(m) {
1351
1373
  return m.length > 0;
1352
1374
  }), r = [], n = 0, i = t; n < i.length; n++) {
1353
1375
  var s = i[n], o = s.split("/");
@@ -1362,17 +1384,17 @@ function xi(e) {
1362
1384
  }
1363
1385
  return r;
1364
1386
  }
1365
- function Ti(e) {
1387
+ function Ai(e) {
1366
1388
  return e.replace(/^(.*?)-/, "");
1367
1389
  }
1368
- var Vt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Or = /^(@+)?(\+|#+)?[rs]?$/g, Hi = /(\*)(0+)|(#+)(0+)|(0+)/g, Cr = /^(0+)$/;
1369
- function Xt(e) {
1390
+ var zt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Lr = /^(@+)?(\+|#+)?[rs]?$/g, Pi = /(\*)(0+)|(#+)(0+)|(0+)/g, Mr = /^(0+)$/;
1391
+ function Zt(e) {
1370
1392
  var t = {};
1371
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Or, function(r, n, i) {
1393
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Lr, function(r, n, i) {
1372
1394
  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)), "";
1373
1395
  }), t;
1374
1396
  }
1375
- function Ir(e) {
1397
+ function Nr(e) {
1376
1398
  switch (e) {
1377
1399
  case "sign-auto":
1378
1400
  return {
@@ -1412,7 +1434,7 @@ function Ir(e) {
1412
1434
  };
1413
1435
  }
1414
1436
  }
1415
- function Bi(e) {
1437
+ function Ci(e) {
1416
1438
  var t;
1417
1439
  if (e[0] === "E" && e[1] === "E" ? (t = {
1418
1440
  notation: "engineering"
@@ -1420,17 +1442,17 @@ function Bi(e) {
1420
1442
  notation: "scientific"
1421
1443
  }, e = e.slice(1)), t) {
1422
1444
  var r = e.slice(0, 2);
1423
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Cr.test(e))
1445
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Mr.test(e))
1424
1446
  throw new Error("Malformed concise eng/scientific notation");
1425
1447
  t.minimumIntegerDigits = e.length;
1426
1448
  }
1427
1449
  return t;
1428
1450
  }
1429
- function Wt(e) {
1430
- var t = {}, r = Ir(e);
1451
+ function qt(e) {
1452
+ var t = {}, r = Nr(e);
1431
1453
  return r || t;
1432
1454
  }
1433
- function Ai(e) {
1455
+ function Oi(e) {
1434
1456
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1435
1457
  var i = n[r];
1436
1458
  switch (i.stem) {
@@ -1454,7 +1476,7 @@ function Ai(e) {
1454
1476
  continue;
1455
1477
  case "measure-unit":
1456
1478
  case "unit":
1457
- t.style = "unit", t.unit = Ti(i.options[0]);
1479
+ t.style = "unit", t.unit = Ai(i.options[0]);
1458
1480
  continue;
1459
1481
  case "compact-short":
1460
1482
  case "K":
@@ -1466,12 +1488,12 @@ function Ai(e) {
1466
1488
  continue;
1467
1489
  case "scientific":
1468
1490
  t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1469
- return S(S({}, l), Wt(u));
1491
+ return S(S({}, l), qt(u));
1470
1492
  }, {}));
1471
1493
  continue;
1472
1494
  case "engineering":
1473
1495
  t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1474
- return S(S({}, l), Wt(u));
1496
+ return S(S({}, l), qt(u));
1475
1497
  }, {}));
1476
1498
  continue;
1477
1499
  case "notation-simple":
@@ -1516,7 +1538,7 @@ function Ai(e) {
1516
1538
  case "integer-width":
1517
1539
  if (i.options.length > 1)
1518
1540
  throw new RangeError("integer-width stems only accept a single optional option");
1519
- i.options[0].replace(Hi, function(l, u, h, c, m, y) {
1541
+ i.options[0].replace(Pi, function(l, u, h, c, m, y) {
1520
1542
  if (u)
1521
1543
  t.minimumIntegerDigits = h.length;
1522
1544
  else {
@@ -1529,27 +1551,27 @@ function Ai(e) {
1529
1551
  });
1530
1552
  continue;
1531
1553
  }
1532
- if (Cr.test(i.stem)) {
1554
+ if (Mr.test(i.stem)) {
1533
1555
  t.minimumIntegerDigits = i.stem.length;
1534
1556
  continue;
1535
1557
  }
1536
- if (Vt.test(i.stem)) {
1558
+ if (zt.test(i.stem)) {
1537
1559
  if (i.options.length > 1)
1538
1560
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1539
- i.stem.replace(Vt, function(l, u, h, c, m, y) {
1561
+ i.stem.replace(zt, function(l, u, h, c, m, y) {
1540
1562
  return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1541
1563
  });
1542
1564
  var s = i.options[0];
1543
- s === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = S(S({}, t), Xt(s)));
1565
+ s === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = S(S({}, t), Zt(s)));
1544
1566
  continue;
1545
1567
  }
1546
- if (Or.test(i.stem)) {
1547
- t = S(S({}, t), Xt(i.stem));
1568
+ if (Lr.test(i.stem)) {
1569
+ t = S(S({}, t), Zt(i.stem));
1548
1570
  continue;
1549
1571
  }
1550
- var o = Ir(i.stem);
1572
+ var o = Nr(i.stem);
1551
1573
  o && (t = S(S({}, t), o));
1552
- var a = Bi(i.stem);
1574
+ var a = Ci(i.stem);
1553
1575
  a && (t = S(S({}, t), a));
1554
1576
  }
1555
1577
  return t;
@@ -2969,13 +2991,13 @@ var He = {
2969
2991
  "h"
2970
2992
  ]
2971
2993
  };
2972
- function Pi(e, t) {
2994
+ function Ii(e, t) {
2973
2995
  for (var r = "", n = 0; n < e.length; n++) {
2974
2996
  var i = e.charAt(n);
2975
2997
  if (i === "j") {
2976
2998
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2977
2999
  s++, n++;
2978
- var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Oi(t);
3000
+ var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Ri(t);
2979
3001
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2980
3002
  r += l;
2981
3003
  for (; o-- > 0; )
@@ -2984,7 +3006,7 @@ function Pi(e, t) {
2984
3006
  }
2985
3007
  return r;
2986
3008
  }
2987
- function Oi(e) {
3009
+ function Ri(e) {
2988
3010
  var t = e.hourCycle;
2989
3011
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2990
3012
  e.hourCycles && // @ts-ignore
@@ -3006,20 +3028,20 @@ function Oi(e) {
3006
3028
  var i = He[n || ""] || He[r || ""] || He["".concat(r, "-001")] || He["001"];
3007
3029
  return i[0];
3008
3030
  }
3009
- var Ze, Ci = new RegExp("^".concat(Pr.source, "*")), Ii = new RegExp("".concat(Pr.source, "*$"));
3031
+ var qe, Li = new RegExp("^".concat(Rr.source, "*")), Mi = new RegExp("".concat(Rr.source, "*$"));
3010
3032
  function _(e, t) {
3011
3033
  return { start: e, end: t };
3012
3034
  }
3013
- var Ri = !!String.prototype.startsWith && "_a".startsWith("a", 1), Li = !!String.fromCodePoint, Ni = !!Object.fromEntries, Mi = !!String.prototype.codePointAt, Di = !!String.prototype.trimStart, Fi = !!String.prototype.trimEnd, Ui = !!Number.isSafeInteger, Gi = Ui ? Number.isSafeInteger : function(e) {
3035
+ var Ni = !!String.prototype.startsWith && "_a".startsWith("a", 1), Di = !!String.fromCodePoint, Fi = !!Object.fromEntries, Ui = !!String.prototype.codePointAt, Gi = !!String.prototype.trimStart, ki = !!String.prototype.trimEnd, ji = !!Number.isSafeInteger, $i = ji ? Number.isSafeInteger : function(e) {
3014
3036
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3015
- }, st = !0;
3037
+ }, ot = !0;
3016
3038
  try {
3017
- var ki = Lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3018
- st = ((Ze = ki.exec("a")) === null || Ze === void 0 ? void 0 : Ze[0]) === "a";
3039
+ var Vi = Fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3040
+ ot = ((qe = Vi.exec("a")) === null || qe === void 0 ? void 0 : qe[0]) === "a";
3019
3041
  } catch (e) {
3020
- st = !1;
3042
+ ot = !1;
3021
3043
  }
3022
- var zt = Ri ? (
3044
+ var Jt = Ni ? (
3023
3045
  // Native
3024
3046
  function(t, r, n) {
3025
3047
  return t.startsWith(r, n);
@@ -3029,7 +3051,7 @@ var zt = Ri ? (
3029
3051
  function(t, r, n) {
3030
3052
  return t.slice(n, n + r.length) === r;
3031
3053
  }
3032
- ), ot = Li ? String.fromCodePoint : (
3054
+ ), at = Di ? String.fromCodePoint : (
3033
3055
  // IE11
3034
3056
  function() {
3035
3057
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3041,9 +3063,9 @@ var zt = Ri ? (
3041
3063
  }
3042
3064
  return n;
3043
3065
  }
3044
- ), Zt = (
3066
+ ), Qt = (
3045
3067
  // native
3046
- Ni ? Object.fromEntries : (
3068
+ Fi ? Object.fromEntries : (
3047
3069
  // Ponyfill
3048
3070
  function(t) {
3049
3071
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3053,7 +3075,7 @@ var zt = Ri ? (
3053
3075
  return r;
3054
3076
  }
3055
3077
  )
3056
- ), Rr = Mi ? (
3078
+ ), Dr = Ui ? (
3057
3079
  // Native
3058
3080
  function(t, r) {
3059
3081
  return t.codePointAt(r);
@@ -3067,7 +3089,7 @@ var zt = Ri ? (
3067
3089
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
3068
3090
  }
3069
3091
  }
3070
- ), ji = Di ? (
3092
+ ), Xi = Gi ? (
3071
3093
  // Native
3072
3094
  function(t) {
3073
3095
  return t.trimStart();
@@ -3075,9 +3097,9 @@ var zt = Ri ? (
3075
3097
  ) : (
3076
3098
  // Ponyfill
3077
3099
  function(t) {
3078
- return t.replace(Ci, "");
3100
+ return t.replace(Li, "");
3079
3101
  }
3080
- ), $i = Fi ? (
3102
+ ), Wi = ki ? (
3081
3103
  // Native
3082
3104
  function(t) {
3083
3105
  return t.trimEnd();
@@ -3085,32 +3107,32 @@ var zt = Ri ? (
3085
3107
  ) : (
3086
3108
  // Ponyfill
3087
3109
  function(t) {
3088
- return t.replace(Ii, "");
3110
+ return t.replace(Mi, "");
3089
3111
  }
3090
3112
  );
3091
- function Lr(e, t) {
3113
+ function Fr(e, t) {
3092
3114
  return new RegExp(e, t);
3093
3115
  }
3094
- var at;
3095
- if (st) {
3096
- var qt = Lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3097
- at = function(t, r) {
3116
+ var ut;
3117
+ if (ot) {
3118
+ var Yt = Fr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3119
+ ut = function(t, r) {
3098
3120
  var n;
3099
- qt.lastIndex = r;
3100
- var i = qt.exec(t);
3121
+ Yt.lastIndex = r;
3122
+ var i = Yt.exec(t);
3101
3123
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3102
3124
  };
3103
3125
  } else
3104
- at = function(t, r) {
3126
+ ut = function(t, r) {
3105
3127
  for (var n = []; ; ) {
3106
- var i = Rr(t, r);
3107
- if (i === void 0 || Nr(i) || zi(i))
3128
+ var i = Dr(t, r);
3129
+ if (i === void 0 || Ur(i) || Ji(i))
3108
3130
  break;
3109
3131
  n.push(i), r += i >= 65536 ? 2 : 1;
3110
3132
  }
3111
- return ot.apply(void 0, n);
3133
+ return at.apply(void 0, n);
3112
3134
  };
3113
- var Vi = (
3135
+ var zi = (
3114
3136
  /** @class */
3115
3137
  function() {
3116
3138
  function e(t, r) {
@@ -3141,7 +3163,7 @@ var Vi = (
3141
3163
  if (n)
3142
3164
  break;
3143
3165
  return this.error(v.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
3144
- } else if (s === 60 && !this.ignoreTag && ut(this.peek() || 0)) {
3166
+ } else if (s === 60 && !this.ignoreTag && lt(this.peek() || 0)) {
3145
3167
  var o = this.parseTag(t, r);
3146
3168
  if (o.err)
3147
3169
  return o;
@@ -3174,7 +3196,7 @@ var Vi = (
3174
3196
  return s;
3175
3197
  var o = s.val, a = this.clonePosition();
3176
3198
  if (this.bumpIf("</")) {
3177
- if (this.isEOF() || !ut(this.char()))
3199
+ if (this.isEOF() || !lt(this.char()))
3178
3200
  return this.error(v.INVALID_TAG, _(a, this.clonePosition()));
3179
3201
  var l = this.clonePosition(), u = this.parseTagName();
3180
3202
  return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
@@ -3192,7 +3214,7 @@ var Vi = (
3192
3214
  return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
3193
3215
  }, e.prototype.parseTagName = function() {
3194
3216
  var t = this.offset();
3195
- for (this.bump(); !this.isEOF() && Wi(this.char()); )
3217
+ for (this.bump(); !this.isEOF() && qi(this.char()); )
3196
3218
  this.bump();
3197
3219
  return this.message.slice(t, this.offset());
3198
3220
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3221,7 +3243,7 @@ var Vi = (
3221
3243
  };
3222
3244
  }, e.prototype.tryParseLeftAngleBracket = function() {
3223
3245
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3224
- !Xi(this.peek() || 0)) ? (this.bump(), "<") : null;
3246
+ !Zi(this.peek() || 0)) ? (this.bump(), "<") : null;
3225
3247
  }, e.prototype.tryParseQuote = function(t) {
3226
3248
  if (this.isEOF() || this.char() !== 39)
3227
3249
  return null;
@@ -3255,12 +3277,12 @@ var Vi = (
3255
3277
  r.push(n);
3256
3278
  this.bump();
3257
3279
  }
3258
- return ot.apply(void 0, r);
3280
+ return at.apply(void 0, r);
3259
3281
  }, e.prototype.tryParseUnquoted = function(t, r) {
3260
3282
  if (this.isEOF())
3261
3283
  return null;
3262
3284
  var n = this.char();
3263
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ot(n));
3285
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), at(n));
3264
3286
  }, e.prototype.parseArgument = function(t, r) {
3265
3287
  var n = this.clonePosition();
3266
3288
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3289,7 +3311,7 @@ var Vi = (
3289
3311
  return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3290
3312
  }
3291
3313
  }, e.prototype.parseIdentifierIfPossible = function() {
3292
- var t = this.clonePosition(), r = this.offset(), n = at(this.message, r), i = r + n.length;
3314
+ var t = this.clonePosition(), r = this.offset(), n = ut(this.message, r), i = r + n.length;
3293
3315
  this.bumpTo(i);
3294
3316
  var s = this.clonePosition(), o = _(t, s);
3295
3317
  return { value: n, location: o };
@@ -3308,7 +3330,7 @@ var Vi = (
3308
3330
  var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3309
3331
  if (c.err)
3310
3332
  return c;
3311
- var m = $i(c.val);
3333
+ var m = Wi(c.val);
3312
3334
  if (m.length === 0)
3313
3335
  return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
3314
3336
  var y = _(h, this.clonePosition());
@@ -3318,8 +3340,8 @@ var Vi = (
3318
3340
  if (g.err)
3319
3341
  return g;
3320
3342
  var d = _(i, this.clonePosition());
3321
- if (u && zt(u == null ? void 0 : u.style, "::", 0)) {
3322
- var b = ji(u.style.slice(2));
3343
+ if (u && Jt(u == null ? void 0 : u.style, "::", 0)) {
3344
+ var b = Xi(u.style.slice(2));
3323
3345
  if (a === "number") {
3324
3346
  var c = this.parseNumberSkeletonFromString(b, u.styleLocation);
3325
3347
  return c.err ? c : {
@@ -3330,12 +3352,12 @@ var Vi = (
3330
3352
  if (b.length === 0)
3331
3353
  return this.error(v.EXPECT_DATE_TIME_SKELETON, d);
3332
3354
  var w = b;
3333
- this.locale && (w = Pi(b, this.locale));
3355
+ this.locale && (w = Ii(b, this.locale));
3334
3356
  var m = {
3335
3357
  type: ne.dateTime,
3336
3358
  pattern: w,
3337
3359
  location: u.styleLocation,
3338
- parsedOptions: this.shouldParseSkeletons ? Si(w) : {}
3360
+ parsedOptions: this.shouldParseSkeletons ? Ti(w) : {}
3339
3361
  }, I = a === "date" ? H.date : H.time;
3340
3362
  return {
3341
3363
  val: { type: I, value: n, location: d, style: m },
@@ -3356,11 +3378,11 @@ var Vi = (
3356
3378
  case "plural":
3357
3379
  case "selectordinal":
3358
3380
  case "select": {
3359
- var O = this.clonePosition();
3381
+ var C = this.clonePosition();
3360
3382
  if (this.bumpSpace(), !this.bumpIf(","))
3361
- return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(O, S({}, O)));
3383
+ return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(C, S({}, C)));
3362
3384
  this.bumpSpace();
3363
- var D = this.parseIdentifierIfPossible(), N = 0;
3385
+ var D = this.parseIdentifierIfPossible(), M = 0;
3364
3386
  if (a !== "select" && D.value === "offset") {
3365
3387
  if (!this.bumpIf(":"))
3366
3388
  return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
@@ -3368,7 +3390,7 @@ var Vi = (
3368
3390
  var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3369
3391
  if (c.err)
3370
3392
  return c;
3371
- this.bumpSpace(), D = this.parseIdentifierIfPossible(), N = c.val;
3393
+ this.bumpSpace(), D = this.parseIdentifierIfPossible(), M = c.val;
3372
3394
  }
3373
3395
  var R = this.tryParsePluralOrSelectOptions(t, a, r, D);
3374
3396
  if (R.err)
@@ -3376,23 +3398,23 @@ var Vi = (
3376
3398
  var g = this.tryParseArgumentClose(i);
3377
3399
  if (g.err)
3378
3400
  return g;
3379
- var C = _(i, this.clonePosition());
3401
+ var O = _(i, this.clonePosition());
3380
3402
  return a === "select" ? {
3381
3403
  val: {
3382
3404
  type: H.select,
3383
3405
  value: n,
3384
- options: Zt(R.val),
3385
- location: C
3406
+ options: Qt(R.val),
3407
+ location: O
3386
3408
  },
3387
3409
  err: null
3388
3410
  } : {
3389
3411
  val: {
3390
3412
  type: H.plural,
3391
3413
  value: n,
3392
- options: Zt(R.val),
3393
- offset: N,
3414
+ options: Qt(R.val),
3415
+ offset: M,
3394
3416
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3395
- location: C
3417
+ location: O
3396
3418
  },
3397
3419
  err: null
3398
3420
  };
@@ -3440,7 +3462,7 @@ var Vi = (
3440
3462
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3441
3463
  var n = [];
3442
3464
  try {
3443
- n = xi(t);
3465
+ n = Bi(t);
3444
3466
  } catch (i) {
3445
3467
  return this.error(v.INVALID_NUMBER_SKELETON, r);
3446
3468
  }
@@ -3449,7 +3471,7 @@ var Vi = (
3449
3471
  type: ne.number,
3450
3472
  tokens: n,
3451
3473
  location: r,
3452
- parsedOptions: this.shouldParseSkeletons ? Ai(n) : {}
3474
+ parsedOptions: this.shouldParseSkeletons ? Oi(n) : {}
3453
3475
  },
3454
3476
  err: null
3455
3477
  };
@@ -3497,7 +3519,7 @@ var Vi = (
3497
3519
  break;
3498
3520
  }
3499
3521
  var l = _(i, this.clonePosition());
3500
- return s ? (o *= n, Gi(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
3522
+ return s ? (o *= n, $i(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
3501
3523
  }, e.prototype.offset = function() {
3502
3524
  return this.position.offset;
3503
3525
  }, e.prototype.isEOF = function() {
@@ -3512,7 +3534,7 @@ var Vi = (
3512
3534
  var t = this.position.offset;
3513
3535
  if (t >= this.message.length)
3514
3536
  throw Error("out of bound");
3515
- var r = Rr(this.message, t);
3537
+ var r = Dr(this.message, t);
3516
3538
  if (r === void 0)
3517
3539
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3518
3540
  return r;
@@ -3531,7 +3553,7 @@ var Vi = (
3531
3553
  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);
3532
3554
  }
3533
3555
  }, e.prototype.bumpIf = function(t) {
3534
- if (zt(this.message, t, this.offset())) {
3556
+ if (Jt(this.message, t, this.offset())) {
3535
3557
  for (var r = 0; r < t.length; r++)
3536
3558
  this.bump();
3537
3559
  return !0;
@@ -3553,7 +3575,7 @@ var Vi = (
3553
3575
  break;
3554
3576
  }
3555
3577
  }, e.prototype.bumpSpace = function() {
3556
- for (; !this.isEOF() && Nr(this.char()); )
3578
+ for (; !this.isEOF() && Ur(this.char()); )
3557
3579
  this.bump();
3558
3580
  }, e.prototype.peek = function() {
3559
3581
  if (this.isEOF())
@@ -3563,43 +3585,43 @@ var Vi = (
3563
3585
  }, e;
3564
3586
  }()
3565
3587
  );
3566
- function ut(e) {
3588
+ function lt(e) {
3567
3589
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3568
3590
  }
3569
- function Xi(e) {
3570
- return ut(e) || e === 47;
3591
+ function Zi(e) {
3592
+ return lt(e) || e === 47;
3571
3593
  }
3572
- function Wi(e) {
3594
+ function qi(e) {
3573
3595
  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;
3574
3596
  }
3575
- function Nr(e) {
3597
+ function Ur(e) {
3576
3598
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3577
3599
  }
3578
- function zi(e) {
3600
+ function Ji(e) {
3579
3601
  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;
3580
3602
  }
3581
- function lt(e) {
3603
+ function ht(e) {
3582
3604
  e.forEach(function(t) {
3583
- if (delete t.location, Tr(t) || Hr(t))
3605
+ if (delete t.location, Pr(t) || Cr(t))
3584
3606
  for (var r in t.options)
3585
- delete t.options[r].location, lt(t.options[r].value);
3586
- else Sr(t) && Ar(t.style) || (wr(t) || xr(t)) && it(t.style) ? delete t.style.location : Br(t) && lt(t.children);
3607
+ delete t.options[r].location, ht(t.options[r].value);
3608
+ else Hr(t) && Ir(t.style) || (Br(t) || Ar(t)) && st(t.style) ? delete t.style.location : Or(t) && ht(t.children);
3587
3609
  });
3588
3610
  }
3589
- function Zi(e, t) {
3611
+ function Qi(e, t) {
3590
3612
  t === void 0 && (t = {}), t = S({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3591
- var r = new Vi(e, t).parse();
3613
+ var r = new zi(e, t).parse();
3592
3614
  if (r.err) {
3593
3615
  var n = SyntaxError(v[r.err.kind]);
3594
3616
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3595
3617
  }
3596
- return t != null && t.captureLocation || lt(r.val), r.val;
3618
+ return t != null && t.captureLocation || ht(r.val), r.val;
3597
3619
  }
3598
3620
  var ie;
3599
3621
  (function(e) {
3600
3622
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3601
3623
  })(ie || (ie = {}));
3602
- var Me = (
3624
+ var Ne = (
3603
3625
  /** @class */
3604
3626
  function(e) {
3605
3627
  X(t, e);
@@ -3611,7 +3633,7 @@ var Me = (
3611
3633
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3612
3634
  }, t;
3613
3635
  }(Error)
3614
- ), Jt = (
3636
+ ), Kt = (
3615
3637
  /** @class */
3616
3638
  function(e) {
3617
3639
  X(t, e);
@@ -3619,8 +3641,8 @@ var Me = (
3619
3641
  return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ie.INVALID_VALUE, s) || this;
3620
3642
  }
3621
3643
  return t;
3622
- }(Me)
3623
- ), qi = (
3644
+ }(Ne)
3645
+ ), Yi = (
3624
3646
  /** @class */
3625
3647
  function(e) {
3626
3648
  X(t, e);
@@ -3628,8 +3650,8 @@ var Me = (
3628
3650
  return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ie.INVALID_VALUE, i) || this;
3629
3651
  }
3630
3652
  return t;
3631
- }(Me)
3632
- ), Ji = (
3653
+ }(Ne)
3654
+ ), Ki = (
3633
3655
  /** @class */
3634
3656
  function(e) {
3635
3657
  X(t, e);
@@ -3637,22 +3659,22 @@ var Me = (
3637
3659
  return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ie.MISSING_VALUE, n) || this;
3638
3660
  }
3639
3661
  return t;
3640
- }(Me)
3662
+ }(Ne)
3641
3663
  ), L;
3642
3664
  (function(e) {
3643
3665
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3644
3666
  })(L || (L = {}));
3645
- function Qi(e) {
3667
+ function es(e) {
3646
3668
  return e.length < 2 ? e : e.reduce(function(t, r) {
3647
3669
  var n = t[t.length - 1];
3648
3670
  return !n || n.type !== L.literal || r.type !== L.literal ? t.push(r) : n.value += r.value, t;
3649
3671
  }, []);
3650
3672
  }
3651
- function Yi(e) {
3673
+ function ts(e) {
3652
3674
  return typeof e == "function";
3653
3675
  }
3654
3676
  function Pe(e, t, r, n, i, s, o) {
3655
- if (e.length === 1 && $t(e[0]))
3677
+ if (e.length === 1 && Wt(e[0]))
3656
3678
  return [
3657
3679
  {
3658
3680
  type: L.literal,
@@ -3661,14 +3683,14 @@ function Pe(e, t, r, n, i, s, o) {
3661
3683
  ];
3662
3684
  for (var a = [], l = 0, u = e; l < u.length; l++) {
3663
3685
  var h = u[l];
3664
- if ($t(h)) {
3686
+ if (Wt(h)) {
3665
3687
  a.push({
3666
3688
  type: L.literal,
3667
3689
  value: h.value
3668
3690
  });
3669
3691
  continue;
3670
3692
  }
3671
- if (_i(h)) {
3693
+ if (wi(h)) {
3672
3694
  typeof s == "number" && a.push({
3673
3695
  type: L.literal,
3674
3696
  value: r.getNumberFormat(t).format(s)
@@ -3677,89 +3699,89 @@ function Pe(e, t, r, n, i, s, o) {
3677
3699
  }
3678
3700
  var c = h.value;
3679
3701
  if (!(i && c in i))
3680
- throw new Ji(c, o);
3702
+ throw new Ki(c, o);
3681
3703
  var m = i[c];
3682
- if (vi(h)) {
3704
+ if (Si(h)) {
3683
3705
  (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
3684
3706
  type: typeof m == "string" ? L.literal : L.object,
3685
3707
  value: m
3686
3708
  });
3687
3709
  continue;
3688
3710
  }
3689
- if (wr(h)) {
3690
- var y = typeof h.style == "string" ? n.date[h.style] : it(h.style) ? h.style.parsedOptions : void 0;
3711
+ if (Br(h)) {
3712
+ var y = typeof h.style == "string" ? n.date[h.style] : st(h.style) ? h.style.parsedOptions : void 0;
3691
3713
  a.push({
3692
3714
  type: L.literal,
3693
3715
  value: r.getDateTimeFormat(t, y).format(m)
3694
3716
  });
3695
3717
  continue;
3696
3718
  }
3697
- if (xr(h)) {
3698
- var y = typeof h.style == "string" ? n.time[h.style] : it(h.style) ? h.style.parsedOptions : n.time.medium;
3719
+ if (Ar(h)) {
3720
+ var y = typeof h.style == "string" ? n.time[h.style] : st(h.style) ? h.style.parsedOptions : n.time.medium;
3699
3721
  a.push({
3700
3722
  type: L.literal,
3701
3723
  value: r.getDateTimeFormat(t, y).format(m)
3702
3724
  });
3703
3725
  continue;
3704
3726
  }
3705
- if (Sr(h)) {
3706
- var y = typeof h.style == "string" ? n.number[h.style] : Ar(h.style) ? h.style.parsedOptions : void 0;
3727
+ if (Hr(h)) {
3728
+ var y = typeof h.style == "string" ? n.number[h.style] : Ir(h.style) ? h.style.parsedOptions : void 0;
3707
3729
  y && y.scale && (m = m * (y.scale || 1)), a.push({
3708
3730
  type: L.literal,
3709
3731
  value: r.getNumberFormat(t, y).format(m)
3710
3732
  });
3711
3733
  continue;
3712
3734
  }
3713
- if (Br(h)) {
3735
+ if (Or(h)) {
3714
3736
  var g = h.children, d = h.value, b = i[d];
3715
- if (!Yi(b))
3716
- throw new qi(d, "function", o);
3717
- var w = Pe(g, t, r, n, i, s), I = b(w.map(function(N) {
3718
- return N.value;
3737
+ if (!ts(b))
3738
+ throw new Yi(d, "function", o);
3739
+ var w = Pe(g, t, r, n, i, s), I = b(w.map(function(M) {
3740
+ return M.value;
3719
3741
  }));
3720
- Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(N) {
3742
+ Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(M) {
3721
3743
  return {
3722
- type: typeof N == "string" ? L.literal : L.object,
3723
- value: N
3744
+ type: typeof M == "string" ? L.literal : L.object,
3745
+ value: M
3724
3746
  };
3725
3747
  }));
3726
3748
  }
3727
- if (Tr(h)) {
3728
- var O = h.options[m] || h.options.other;
3729
- if (!O)
3730
- throw new Jt(h.value, m, Object.keys(h.options), o);
3731
- a.push.apply(a, Pe(O.value, t, r, n, i));
3749
+ if (Pr(h)) {
3750
+ var C = h.options[m] || h.options.other;
3751
+ if (!C)
3752
+ throw new Kt(h.value, m, Object.keys(h.options), o);
3753
+ a.push.apply(a, Pe(C.value, t, r, n, i));
3732
3754
  continue;
3733
3755
  }
3734
- if (Hr(h)) {
3735
- var O = h.options["=".concat(m)];
3736
- if (!O) {
3756
+ if (Cr(h)) {
3757
+ var C = h.options["=".concat(m)];
3758
+ if (!C) {
3737
3759
  if (!Intl.PluralRules)
3738
- throw new Me(`Intl.PluralRules is not available in this environment.
3760
+ throw new Ne(`Intl.PluralRules is not available in this environment.
3739
3761
  Try polyfilling it using "@formatjs/intl-pluralrules"
3740
3762
  `, ie.MISSING_INTL_API, o);
3741
3763
  var D = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
3742
- O = h.options[D] || h.options.other;
3764
+ C = h.options[D] || h.options.other;
3743
3765
  }
3744
- if (!O)
3745
- throw new Jt(h.value, m, Object.keys(h.options), o);
3746
- a.push.apply(a, Pe(O.value, t, r, n, i, m - (h.offset || 0)));
3766
+ if (!C)
3767
+ throw new Kt(h.value, m, Object.keys(h.options), o);
3768
+ a.push.apply(a, Pe(C.value, t, r, n, i, m - (h.offset || 0)));
3747
3769
  continue;
3748
3770
  }
3749
3771
  }
3750
- return Qi(a);
3772
+ return es(a);
3751
3773
  }
3752
- function Ki(e, t) {
3774
+ function rs(e, t) {
3753
3775
  return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3754
3776
  return r[n] = S(S({}, e[n]), t[n] || {}), r;
3755
3777
  }, {})) : e;
3756
3778
  }
3757
- function es(e, t) {
3779
+ function ns(e, t) {
3758
3780
  return t ? Object.keys(e).reduce(function(r, n) {
3759
- return r[n] = Ki(e[n], t[n]), r;
3781
+ return r[n] = rs(e[n], t[n]), r;
3760
3782
  }, S({}, e)) : e;
3761
3783
  }
3762
- function qe(e) {
3784
+ function Je(e) {
3763
3785
  return {
3764
3786
  create: function() {
3765
3787
  return {
@@ -3773,39 +3795,39 @@ function qe(e) {
3773
3795
  }
3774
3796
  };
3775
3797
  }
3776
- function ts(e) {
3798
+ function is(e) {
3777
3799
  return e === void 0 && (e = {
3778
3800
  number: {},
3779
3801
  dateTime: {},
3780
3802
  pluralRules: {}
3781
3803
  }), {
3782
- getNumberFormat: We(function() {
3804
+ getNumberFormat: ze(function() {
3783
3805
  for (var t, r = [], n = 0; n < arguments.length; n++)
3784
3806
  r[n] = arguments[n];
3785
3807
  return new ((t = Intl.NumberFormat).bind.apply(t, te([void 0], r, !1)))();
3786
3808
  }, {
3787
- cache: qe(e.number),
3788
- strategy: ze.variadic
3809
+ cache: Je(e.number),
3810
+ strategy: Ze.variadic
3789
3811
  }),
3790
- getDateTimeFormat: We(function() {
3812
+ getDateTimeFormat: ze(function() {
3791
3813
  for (var t, r = [], n = 0; n < arguments.length; n++)
3792
3814
  r[n] = arguments[n];
3793
3815
  return new ((t = Intl.DateTimeFormat).bind.apply(t, te([void 0], r, !1)))();
3794
3816
  }, {
3795
- cache: qe(e.dateTime),
3796
- strategy: ze.variadic
3817
+ cache: Je(e.dateTime),
3818
+ strategy: Ze.variadic
3797
3819
  }),
3798
- getPluralRules: We(function() {
3820
+ getPluralRules: ze(function() {
3799
3821
  for (var t, r = [], n = 0; n < arguments.length; n++)
3800
3822
  r[n] = arguments[n];
3801
3823
  return new ((t = Intl.PluralRules).bind.apply(t, te([void 0], r, !1)))();
3802
3824
  }, {
3803
- cache: qe(e.pluralRules),
3804
- strategy: ze.variadic
3825
+ cache: Je(e.pluralRules),
3826
+ strategy: Ze.variadic
3805
3827
  })
3806
3828
  };
3807
3829
  }
3808
- var rs = (
3830
+ var ss = (
3809
3831
  /** @class */
3810
3832
  function() {
3811
3833
  function e(t, r, n, i) {
@@ -3837,13 +3859,13 @@ var rs = (
3837
3859
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3838
3860
  var o = i || {};
3839
3861
  o.formatters;
3840
- var a = Ln(o, ["formatters"]);
3862
+ var a = Fn(o, ["formatters"]);
3841
3863
  this.ast = e.__parse(t, S(S({}, a), { locale: this.resolvedLocale }));
3842
3864
  } else
3843
3865
  this.ast = t;
3844
3866
  if (!Array.isArray(this.ast))
3845
3867
  throw new TypeError("A message must be provided as a String or AST.");
3846
- this.formats = es(e.formats, n), this.formatters = i && i.formatters || ts(this.formatterCache);
3868
+ this.formats = ns(e.formats, n), this.formatters = i && i.formatters || is(this.formatterCache);
3847
3869
  }
3848
3870
  return Object.defineProperty(e, "defaultLocale", {
3849
3871
  get: function() {
@@ -3856,7 +3878,7 @@ var rs = (
3856
3878
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3857
3879
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3858
3880
  }
3859
- }, e.__parse = Zi, e.formats = {
3881
+ }, e.__parse = Qi, e.formats = {
3860
3882
  number: {
3861
3883
  integer: {
3862
3884
  maximumFractionDigits: 0
@@ -3917,7 +3939,7 @@ var rs = (
3917
3939
  }, e;
3918
3940
  }()
3919
3941
  );
3920
- function ns(e, t) {
3942
+ function os(e, t) {
3921
3943
  if (t == null)
3922
3944
  return;
3923
3945
  if (t in e)
@@ -3938,92 +3960,92 @@ function ns(e, t) {
3938
3960
  n = void 0;
3939
3961
  return n;
3940
3962
  }
3941
- const z = {}, is = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), Mr = (e, t) => {
3963
+ const z = {}, as = (e, t, r) => r && (t in z || (z[t] = {}), e in z[t] || (z[t][e] = r), r), Gr = (e, t) => {
3942
3964
  if (t == null)
3943
3965
  return;
3944
3966
  if (t in z && e in z[t])
3945
3967
  return z[t][e];
3946
3968
  const r = De(t);
3947
3969
  for (let n = 0; n < r.length; n++) {
3948
- const i = r[n], s = os(i, e);
3970
+ const i = r[n], s = ls(i, e);
3949
3971
  if (s)
3950
- return is(e, t, s);
3972
+ return as(e, t, s);
3951
3973
  }
3952
3974
  };
3953
- let pt;
3954
- const ae = Ne({});
3955
- function ss(e) {
3956
- return pt[e] || null;
3975
+ let gt;
3976
+ const ae = Me({});
3977
+ function us(e) {
3978
+ return gt[e] || null;
3957
3979
  }
3958
- function Dr(e) {
3959
- return e in pt;
3980
+ function kr(e) {
3981
+ return e in gt;
3960
3982
  }
3961
- function os(e, t) {
3962
- if (!Dr(e))
3983
+ function ls(e, t) {
3984
+ if (!kr(e))
3963
3985
  return null;
3964
- const r = ss(e);
3965
- return ns(r, t);
3986
+ const r = us(e);
3987
+ return os(r, t);
3966
3988
  }
3967
- function as(e) {
3989
+ function hs(e) {
3968
3990
  if (e == null)
3969
3991
  return;
3970
3992
  const t = De(e);
3971
3993
  for (let r = 0; r < t.length; r++) {
3972
3994
  const n = t[r];
3973
- if (Dr(n))
3995
+ if (kr(n))
3974
3996
  return n;
3975
3997
  }
3976
3998
  }
3977
- function Fr(e, ...t) {
3978
- delete z[e], ae.update((r) => (r[e] = fi.all([r[e] || {}, ...t]), r));
3999
+ function jr(e, ...t) {
4000
+ delete z[e], ae.update((r) => (r[e] = di.all([r[e] || {}, ...t]), r));
3979
4001
  }
3980
4002
  oe(
3981
4003
  [ae],
3982
4004
  ([e]) => Object.keys(e)
3983
4005
  );
3984
- ae.subscribe((e) => pt = e);
3985
- const Oe = {};
3986
- function us(e, t) {
3987
- Oe[e].delete(t), Oe[e].size === 0 && delete Oe[e];
4006
+ ae.subscribe((e) => gt = e);
4007
+ const Ce = {};
4008
+ function fs(e, t) {
4009
+ Ce[e].delete(t), Ce[e].size === 0 && delete Ce[e];
3988
4010
  }
3989
- function Ur(e) {
3990
- return Oe[e];
4011
+ function $r(e) {
4012
+ return Ce[e];
3991
4013
  }
3992
- function ls(e) {
4014
+ function cs(e) {
3993
4015
  return De(e).map((t) => {
3994
- const r = Ur(t);
4016
+ const r = $r(t);
3995
4017
  return [t, r ? [...r] : []];
3996
4018
  }).filter(([, t]) => t.length > 0);
3997
4019
  }
3998
- function ht(e) {
4020
+ function ft(e) {
3999
4021
  return e == null ? !1 : De(e).some(
4000
4022
  (t) => {
4001
4023
  var r;
4002
- return (r = Ur(t)) == null ? void 0 : r.size;
4024
+ return (r = $r(t)) == null ? void 0 : r.size;
4003
4025
  }
4004
4026
  );
4005
4027
  }
4006
- function hs(e, t) {
4028
+ function ps(e, t) {
4007
4029
  return Promise.all(
4008
- t.map((n) => (us(e, n), n().then((i) => i.default || i)))
4009
- ).then((n) => Fr(e, ...n));
4030
+ t.map((n) => (fs(e, n), n().then((i) => i.default || i)))
4031
+ ).then((n) => jr(e, ...n));
4010
4032
  }
4011
4033
  const fe = {};
4012
- function Gr(e) {
4013
- if (!ht(e))
4034
+ function Vr(e) {
4035
+ if (!ft(e))
4014
4036
  return e in fe ? fe[e] : Promise.resolve();
4015
- const t = ls(e);
4037
+ const t = cs(e);
4016
4038
  return fe[e] = Promise.all(
4017
4039
  t.map(
4018
- ([r, n]) => hs(r, n)
4040
+ ([r, n]) => ps(r, n)
4019
4041
  )
4020
4042
  ).then(() => {
4021
- if (ht(e))
4022
- return Gr(e);
4043
+ if (ft(e))
4044
+ return Vr(e);
4023
4045
  delete fe[e];
4024
4046
  }), fe[e];
4025
4047
  }
4026
- const fs = {
4048
+ const ms = {
4027
4049
  number: {
4028
4050
  scientific: { notation: "scientific" },
4029
4051
  engineering: { notation: "engineering" },
@@ -4052,57 +4074,57 @@ const fs = {
4052
4074
  timeZoneName: "short"
4053
4075
  }
4054
4076
  }
4055
- }, cs = {
4077
+ }, ds = {
4056
4078
  fallbackLocale: null,
4057
4079
  loadingDelay: 200,
4058
- formats: fs,
4080
+ formats: ms,
4059
4081
  warnOnMissingMessages: !0,
4060
4082
  handleMissingMessage: void 0,
4061
4083
  ignoreTag: !0
4062
- }, ps = cs;
4084
+ }, gs = ds;
4063
4085
  function se() {
4064
- return ps;
4086
+ return gs;
4065
4087
  }
4066
- const Je = Ne(!1);
4067
- var ms = Object.defineProperty, ds = Object.defineProperties, gs = Object.getOwnPropertyDescriptors, Qt = Object.getOwnPropertySymbols, bs = Object.prototype.hasOwnProperty, ys = Object.prototype.propertyIsEnumerable, Yt = (e, t, r) => t in e ? ms(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vs = (e, t) => {
4088
+ const Qe = Me(!1);
4089
+ var bs = Object.defineProperty, ys = Object.defineProperties, vs = Object.getOwnPropertyDescriptors, er = Object.getOwnPropertySymbols, _s = Object.prototype.hasOwnProperty, Es = Object.prototype.propertyIsEnumerable, tr = (e, t, r) => t in e ? bs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ss = (e, t) => {
4068
4090
  for (var r in t || (t = {}))
4069
- bs.call(t, r) && Yt(e, r, t[r]);
4070
- if (Qt)
4071
- for (var r of Qt(t))
4072
- ys.call(t, r) && Yt(e, r, t[r]);
4091
+ _s.call(t, r) && tr(e, r, t[r]);
4092
+ if (er)
4093
+ for (var r of er(t))
4094
+ Es.call(t, r) && tr(e, r, t[r]);
4073
4095
  return e;
4074
- }, _s = (e, t) => ds(e, gs(t));
4075
- let ft;
4076
- const Ie = Ne(null);
4077
- function Kt(e) {
4096
+ }, ws = (e, t) => ys(e, vs(t));
4097
+ let ct;
4098
+ const Ie = Me(null);
4099
+ function rr(e) {
4078
4100
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4079
4101
  }
4080
4102
  function De(e, t = se().fallbackLocale) {
4081
- const r = Kt(e);
4082
- return t ? [.../* @__PURE__ */ new Set([...r, ...Kt(t)])] : r;
4103
+ const r = rr(e);
4104
+ return t ? [.../* @__PURE__ */ new Set([...r, ...rr(t)])] : r;
4083
4105
  }
4084
4106
  function q() {
4085
- return ft != null ? ft : void 0;
4107
+ return ct != null ? ct : void 0;
4086
4108
  }
4087
4109
  Ie.subscribe((e) => {
4088
- ft = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4110
+ ct = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4089
4111
  });
4090
- const Es = (e) => {
4091
- if (e && as(e) && ht(e)) {
4112
+ const xs = (e) => {
4113
+ if (e && hs(e) && ft(e)) {
4092
4114
  const { loadingDelay: t } = se();
4093
4115
  let r;
4094
4116
  return typeof window != "undefined" && q() != null && t ? r = window.setTimeout(
4095
- () => Je.set(!0),
4117
+ () => Qe.set(!0),
4096
4118
  t
4097
- ) : Je.set(!0), Gr(e).then(() => {
4119
+ ) : Qe.set(!0), Vr(e).then(() => {
4098
4120
  Ie.set(e);
4099
4121
  }).finally(() => {
4100
- clearTimeout(r), Je.set(!1);
4122
+ clearTimeout(r), Qe.set(!1);
4101
4123
  });
4102
4124
  }
4103
4125
  return Ie.set(e);
4104
- }, Z = _s(vs({}, Ie), {
4105
- set: Es
4126
+ }, Z = ws(Ss({}, Ie), {
4127
+ set: xs
4106
4128
  }), Fe = (e) => {
4107
4129
  const t = /* @__PURE__ */ Object.create(null);
4108
4130
  return (n) => {
@@ -4110,20 +4132,20 @@ const Es = (e) => {
4110
4132
  return i in t ? t[i] : t[i] = e(n);
4111
4133
  };
4112
4134
  };
4113
- var Ss = Object.defineProperty, Re = Object.getOwnPropertySymbols, kr = Object.prototype.hasOwnProperty, jr = Object.prototype.propertyIsEnumerable, er = (e, t, r) => t in e ? Ss(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mt = (e, t) => {
4135
+ var Ts = Object.defineProperty, Re = Object.getOwnPropertySymbols, Xr = Object.prototype.hasOwnProperty, Wr = Object.prototype.propertyIsEnumerable, nr = (e, t, r) => t in e ? Ts(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bt = (e, t) => {
4114
4136
  for (var r in t || (t = {}))
4115
- kr.call(t, r) && er(e, r, t[r]);
4137
+ Xr.call(t, r) && nr(e, r, t[r]);
4116
4138
  if (Re)
4117
4139
  for (var r of Re(t))
4118
- jr.call(t, r) && er(e, r, t[r]);
4140
+ Wr.call(t, r) && nr(e, r, t[r]);
4119
4141
  return e;
4120
4142
  }, ue = (e, t) => {
4121
4143
  var r = {};
4122
4144
  for (var n in e)
4123
- kr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4145
+ Xr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4124
4146
  if (e != null && Re)
4125
4147
  for (var n of Re(e))
4126
- t.indexOf(n) < 0 && jr.call(e, n) && (r[n] = e[n]);
4148
+ t.indexOf(n) < 0 && Wr.call(e, n) && (r[n] = e[n]);
4127
4149
  return r;
4128
4150
  };
4129
4151
  const de = (e, t) => {
@@ -4131,21 +4153,21 @@ const de = (e, t) => {
4131
4153
  if (e in r && t in r[e])
4132
4154
  return r[e][t];
4133
4155
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4134
- }, ws = Fe(
4156
+ }, Hs = Fe(
4135
4157
  (e) => {
4136
4158
  var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
4137
4159
  if (r == null)
4138
4160
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4139
4161
  return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
4140
4162
  }
4141
- ), xs = Fe(
4163
+ ), Bs = Fe(
4142
4164
  (e) => {
4143
4165
  var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
4144
4166
  if (r == null)
4145
4167
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4146
4168
  return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
4147
4169
  }
4148
- ), Ts = Fe(
4170
+ ), As = Fe(
4149
4171
  (e) => {
4150
4172
  var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
4151
4173
  if (r == null)
@@ -4154,33 +4176,33 @@ const de = (e, t) => {
4154
4176
  );
4155
4177
  return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
4156
4178
  }
4157
- ), Hs = (e = {}) => {
4179
+ ), Ps = (e = {}) => {
4158
4180
  var t = e, {
4159
4181
  locale: r = q()
4160
4182
  } = t, n = ue(t, [
4161
4183
  "locale"
4162
4184
  ]);
4163
- return ws(mt({ locale: r }, n));
4164
- }, Bs = (e = {}) => {
4185
+ return Hs(bt({ locale: r }, n));
4186
+ }, Cs = (e = {}) => {
4165
4187
  var t = e, {
4166
4188
  locale: r = q()
4167
4189
  } = t, n = ue(t, [
4168
4190
  "locale"
4169
4191
  ]);
4170
- return xs(mt({ locale: r }, n));
4171
- }, As = (e = {}) => {
4192
+ return Bs(bt({ locale: r }, n));
4193
+ }, Os = (e = {}) => {
4172
4194
  var t = e, {
4173
4195
  locale: r = q()
4174
4196
  } = t, n = ue(t, [
4175
4197
  "locale"
4176
4198
  ]);
4177
- return Ts(mt({ locale: r }, n));
4178
- }, Ps = Fe(
4199
+ return As(bt({ locale: r }, n));
4200
+ }, Is = Fe(
4179
4201
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4180
- (e, t = q()) => new rs(e, t, se().formats, {
4202
+ (e, t = q()) => new ss(e, t, se().formats, {
4181
4203
  ignoreTag: se().ignoreTag
4182
4204
  })
4183
- ), Os = (e, t = {}) => {
4205
+ ), Rs = (e, t = {}) => {
4184
4206
  var r, n, i, s;
4185
4207
  let o = t;
4186
4208
  typeof e == "object" && (o = e, e = o.id);
@@ -4193,7 +4215,7 @@ const de = (e, t) => {
4193
4215
  throw new Error(
4194
4216
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4195
4217
  );
4196
- let h = Mr(e, l);
4218
+ let h = Gr(e, l);
4197
4219
  if (!h)
4198
4220
  h = (s = (i = (n = (r = se()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4199
4221
  else if (typeof h != "string")
@@ -4204,7 +4226,7 @@ const de = (e, t) => {
4204
4226
  return h;
4205
4227
  let c = h;
4206
4228
  try {
4207
- c = Ps(h, l).format(a);
4229
+ c = Is(h, l).format(a);
4208
4230
  } catch (m) {
4209
4231
  m instanceof Error && console.warn(
4210
4232
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4212,25 +4234,25 @@ const de = (e, t) => {
4212
4234
  );
4213
4235
  }
4214
4236
  return c;
4215
- }, Cs = (e, t) => As(t).format(e), Is = (e, t) => Bs(t).format(e), Rs = (e, t) => Hs(t).format(e), Ls = (e, t = q()) => Mr(e, t), Ns = oe([Z, ae], () => Os);
4216
- oe([Z], () => Cs);
4217
- oe([Z], () => Is);
4218
- oe([Z], () => Rs);
4219
- oe([Z, ae], () => Ls);
4220
- window.emWidgets = { topic: Zn };
4221
- const tr = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4222
- function Ms({ withLocale: e, translations: t }) {
4237
+ }, Ls = (e, t) => Os(t).format(e), Ms = (e, t) => Cs(t).format(e), Ns = (e, t) => Ps(t).format(e), Ds = (e, t = q()) => Gr(e, t), Fs = oe([Z, ae], () => Rs);
4238
+ oe([Z], () => Ls);
4239
+ oe([Z], () => Ms);
4240
+ oe([Z], () => Ns);
4241
+ oe([Z, ae], () => Ds);
4242
+ window.emWidgets = { topic: Yn };
4243
+ const ir = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4244
+ function Us({ withLocale: e, translations: t }) {
4223
4245
  Z.subscribe((r) => {
4224
4246
  r == null && (ae.set(t), Z.set(e));
4225
4247
  });
4226
4248
  }
4227
- function rr(e, t) {
4228
- Fr(e, t);
4249
+ function sr(e, t) {
4250
+ jr(e, t);
4229
4251
  }
4230
- function Ds(e) {
4252
+ function Gs(e) {
4231
4253
  Z.set(e);
4232
4254
  }
4233
- const nr = {
4255
+ const or = {
4234
4256
  en: {
4235
4257
  goToLoginButton: "Go To Login",
4236
4258
  error: "We encountered an issue. Please go to Login to receive your SMS code."
@@ -4288,7 +4310,7 @@ if (typeof window != "undefined") {
4288
4310
  }
4289
4311
  };
4290
4312
  };
4291
- customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep1-C83LZgJY.js").then(({ default: t }) => {
4313
+ customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep1-DVIa2rjJ.js").then(({ default: t }) => {
4292
4314
  !customElements.get("general-player-register-form-step1") && customElements.define("general-player-register-form-step1", t.element);
4293
4315
  });
4294
4316
  }
@@ -4304,7 +4326,7 @@ if (typeof window != "undefined") {
4304
4326
  }
4305
4327
  };
4306
4328
  };
4307
- customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep2-lGuI2eRQ.js").then(({ default: t }) => {
4329
+ customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep2-Cx3DNcUb.js").then(({ default: t }) => {
4308
4330
  !customElements.get("general-player-register-form-step2") && customElements.define("general-player-register-form-step2", t.element);
4309
4331
  });
4310
4332
  }
@@ -4320,7 +4342,7 @@ if (typeof window != "undefined") {
4320
4342
  }
4321
4343
  };
4322
4344
  };
4323
- customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep3-19xNp2Ps.js").then(({ default: t }) => {
4345
+ customElements.define = e(customElements.define), import("./GeneralPlayerRegisterFormStep3-D1rK9Bf0.js").then(({ default: t }) => {
4324
4346
  !customElements.get("general-player-register-form-step3") && customElements.define("general-player-register-form-step3", t.element);
4325
4347
  });
4326
4348
  }
@@ -4336,43 +4358,43 @@ if (typeof window != "undefined") {
4336
4358
  }
4337
4359
  };
4338
4360
  };
4339
- customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-Dpsk97v0.js").then(({ default: t }) => {
4361
+ customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-CBGEYebq.js").then(({ default: t }) => {
4340
4362
  !customElements.get("general-player-sms-verification-form") && customElements.define("general-player-sms-verification-form", t.element);
4341
4363
  });
4342
4364
  }
4343
- function Fs(e) {
4344
- cn(e, "svelte-1scqzon", ".RegisterFormWrapper{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8))}.RegisterFormContainer{padding:25px;height:404px;overflow-y:auto;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-50, #F9F8F8);scrollbar-width:thin}.RegisterFormContainer.RegisterFormContainerMobile{padding:40px 20px;height:65vh;overflow-y:scroll}.RegisterFormContainer::-webkit-scrollbar{width:6px}.RegisterFormContainer::-webkit-scrollbar-track{background:var(--emw--color-gray-50, #F9F8F8)}.RegisterFormContainer::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.RegisterSteps{display:flex;gap:10px;padding:20px 0 30px}.RegisterFirstStepDash,.RegisterSecondStepDash,.RegisterThirdStepDash{width:50px;height:2px;background-color:var(--emw--color-gray-100, #E6E6E6)}.RegisterStepDashColor{background-color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.RegisterStepNext{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.SMSErrorText{height:80%;display:flex;align-items:center}.RegisterConfirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin-top:60px}.RegisterConfirmation svg{width:74px}.RegisterConfirmation .RegisterConfirmationTitle{color:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:24px;font-weight:400;text-transform:uppercase;margin-bottom:0}.RegisterConfirmation .RegisterConfirmationSubtitle{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));font-size:16px;line-height:19px;margin-bottom:24px}.RegisterConfirmation .RegisterConfirmationNote{color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A));font-size:18px;line-height:22px}.RegisterConfirmationGoToLogin{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}");
4365
+ function ks(e) {
4366
+ gn(e, "svelte-1scqzon", ".RegisterFormWrapper{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8))}.RegisterFormContainer{padding:25px;height:404px;overflow-y:auto;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-50, #F9F8F8);scrollbar-width:thin}.RegisterFormContainer.RegisterFormContainerMobile{padding:40px 20px;height:65vh;overflow-y:scroll}.RegisterFormContainer::-webkit-scrollbar{width:6px}.RegisterFormContainer::-webkit-scrollbar-track{background:var(--emw--color-gray-50, #F9F8F8)}.RegisterFormContainer::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.RegisterSteps{display:flex;gap:10px;padding:20px 0 30px}.RegisterFirstStepDash,.RegisterSecondStepDash,.RegisterThirdStepDash{width:50px;height:2px;background-color:var(--emw--color-gray-100, #E6E6E6)}.RegisterStepDashColor{background-color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.RegisterStepNext{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.SMSErrorText{height:80%;display:flex;align-items:center}.RegisterConfirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin-top:60px}.RegisterConfirmation svg{width:74px}.RegisterConfirmation .RegisterConfirmationTitle{color:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:24px;font-weight:400;text-transform:uppercase;margin-bottom:0}.RegisterConfirmation .RegisterConfirmationSubtitle{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));font-size:16px;line-height:19px;margin-bottom:24px}.RegisterConfirmation .RegisterConfirmationNote{color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A));font-size:18px;line-height:22px}.RegisterConfirmationGoToLogin{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}");
4345
4367
  }
4346
- function Us(e) {
4368
+ function js(e) {
4347
4369
  let t, r, n, i, s, o, a, l = (
4348
4370
  /*showRegisterStepOne*/
4349
4371
  (e[17] || /*showRegisterStepTwo*/
4350
4372
  e[18] || /*showRegisterStepThree*/
4351
- e[19]) && ir(e)
4373
+ e[19]) && ar(e)
4352
4374
  ), u = (
4353
4375
  /*showRegisterStepOne*/
4354
- e[17] && sr(e)
4376
+ e[17] && ur(e)
4355
4377
  ), h = (
4356
4378
  /*showRegisterStepTwo*/
4357
- e[18] && or(e)
4379
+ e[18] && lr(e)
4358
4380
  ), c = (
4359
4381
  /*showRegisterStepThree*/
4360
- e[19] && ar(e)
4382
+ e[19] && hr(e)
4361
4383
  );
4362
4384
  function m(b, w) {
4363
4385
  if (
4364
4386
  /*smsverification*/
4365
4387
  b[7] && /*showSmsVerification*/
4366
4388
  b[20]
4367
- ) return ks;
4389
+ ) return Vs;
4368
4390
  if (
4369
4391
  /*smsSendApiFailed*/
4370
4392
  b[30]
4371
- ) return Gs;
4393
+ ) return $s;
4372
4394
  }
4373
4395
  let y = m(e), g = y && y(e), d = (
4374
4396
  /*showConfirmation*/
4375
- e[21] && ur(e)
4397
+ e[21] && fr(e)
4376
4398
  );
4377
4399
  return {
4378
4400
  c() {
@@ -4386,18 +4408,18 @@ function Us(e) {
4386
4408
  /*showRegisterStepOne*/
4387
4409
  b[17] || /*showRegisterStepTwo*/
4388
4410
  b[18] || /*showRegisterStepThree*/
4389
- b[19] ? l ? l.p(b, w) : (l = ir(b), l.c(), l.m(r, n)) : l && (l.d(1), l = null), /*showRegisterStepOne*/
4390
- b[17] ? u ? u.p(b, w) : (u = sr(b), u.c(), u.m(r, i)) : u && (u.d(1), u = null), /*showRegisterStepTwo*/
4391
- b[18] ? h ? h.p(b, w) : (h = or(b), h.c(), h.m(r, s)) : h && (h.d(1), h = null), /*showRegisterStepThree*/
4392
- b[19] ? c ? c.p(b, w) : (c = ar(b), c.c(), c.m(r, o)) : c && (c.d(1), c = null), y === (y = m(b)) && g ? g.p(b, w) : (g && g.d(1), g = y && y(b), g && (g.c(), g.m(r, a))), /*showConfirmation*/
4393
- b[21] ? d ? d.p(b, w) : (d = ur(b), d.c(), d.m(r, null)) : d && (d.d(1), d = null);
4411
+ b[19] ? l ? l.p(b, w) : (l = ar(b), l.c(), l.m(r, n)) : l && (l.d(1), l = null), /*showRegisterStepOne*/
4412
+ b[17] ? u ? u.p(b, w) : (u = ur(b), u.c(), u.m(r, i)) : u && (u.d(1), u = null), /*showRegisterStepTwo*/
4413
+ b[18] ? h ? h.p(b, w) : (h = lr(b), h.c(), h.m(r, s)) : h && (h.d(1), h = null), /*showRegisterStepThree*/
4414
+ b[19] ? c ? c.p(b, w) : (c = hr(b), c.c(), c.m(r, o)) : c && (c.d(1), c = null), y === (y = m(b)) && g ? g.p(b, w) : (g && g.d(1), g = y && y(b), g && (g.c(), g.m(r, a))), /*showConfirmation*/
4415
+ b[21] ? d ? d.p(b, w) : (d = fr(b), d.c(), d.m(r, null)) : d && (d.d(1), d = null);
4394
4416
  },
4395
4417
  d(b) {
4396
- b && M(t), l && l.d(), u && u.d(), h && h.d(), c && c.d(), g && g.d(), d && d.d();
4418
+ b && N(t), l && l.d(), u && u.d(), h && h.d(), c && c.d(), g && g.d(), d && d.d();
4397
4419
  }
4398
4420
  };
4399
4421
  }
4400
- function ir(e) {
4422
+ function ar(e) {
4401
4423
  let t, r, n, i, s, o, a, l, u;
4402
4424
  return {
4403
4425
  c() {
@@ -4435,11 +4457,11 @@ function ir(e) {
4435
4457
  (h[19] ? "RegisterStepDashColor" : "")) && T(l, "class", u);
4436
4458
  },
4437
4459
  d(h) {
4438
- h && M(t), e[40](null);
4460
+ h && N(t), e[40](null);
4439
4461
  }
4440
4462
  };
4441
4463
  }
4442
- function sr(e) {
4464
+ function ur(e) {
4443
4465
  let t, r;
4444
4466
  return {
4445
4467
  c() {
@@ -4551,11 +4573,11 @@ function sr(e) {
4551
4573
  );
4552
4574
  },
4553
4575
  d(n) {
4554
- n && M(t);
4576
+ n && N(t);
4555
4577
  }
4556
4578
  };
4557
4579
  }
4558
- function or(e) {
4580
+ function lr(e) {
4559
4581
  let t, r;
4560
4582
  return {
4561
4583
  c() {
@@ -4667,11 +4689,11 @@ function or(e) {
4667
4689
  );
4668
4690
  },
4669
4691
  d(n) {
4670
- n && M(t);
4692
+ n && N(t);
4671
4693
  }
4672
4694
  };
4673
4695
  }
4674
- function ar(e) {
4696
+ function hr(e) {
4675
4697
  let t, r;
4676
4698
  return {
4677
4699
  c() {
@@ -4816,11 +4838,11 @@ function ar(e) {
4816
4838
  );
4817
4839
  },
4818
4840
  d(n) {
4819
- n && M(t);
4841
+ n && N(t);
4820
4842
  }
4821
4843
  };
4822
4844
  }
4823
- function Gs(e) {
4845
+ function $s(e) {
4824
4846
  let t, r = (
4825
4847
  /*$_*/
4826
4848
  e[33]("error") + ""
@@ -4838,22 +4860,22 @@ function Gs(e) {
4838
4860
  i[33]("error") + "") && K(n, r);
4839
4861
  },
4840
4862
  d(i) {
4841
- i && M(t);
4863
+ i && N(t);
4842
4864
  }
4843
4865
  };
4844
4866
  }
4845
- function ks(e) {
4867
+ function Vs(e) {
4846
4868
  let t;
4847
4869
  function r(s, o) {
4848
4870
  return (
4849
4871
  /*smsSendApiFailed*/
4850
- s[30] ? js : $s
4872
+ s[30] ? Xs : Ws
4851
4873
  );
4852
4874
  }
4853
4875
  let n = r(e), i = n(e);
4854
4876
  return {
4855
4877
  c() {
4856
- i.c(), t = dn();
4878
+ i.c(), t = vn();
4857
4879
  },
4858
4880
  m(s, o) {
4859
4881
  i.m(s, o), U(s, t, o);
@@ -4862,11 +4884,11 @@ function ks(e) {
4862
4884
  n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t.parentNode, t)));
4863
4885
  },
4864
4886
  d(s) {
4865
- s && M(t), i.d(s);
4887
+ s && N(t), i.d(s);
4866
4888
  }
4867
4889
  };
4868
4890
  }
4869
- function js(e) {
4891
+ function Xs(e) {
4870
4892
  let t, r = (
4871
4893
  /*$_*/
4872
4894
  e[33]("error") + ""
@@ -4884,11 +4906,11 @@ function js(e) {
4884
4906
  i[33]("error") + "") && K(n, r);
4885
4907
  },
4886
4908
  d(i) {
4887
- i && M(t);
4909
+ i && N(t);
4888
4910
  }
4889
4911
  };
4890
4912
  }
4891
- function $s(e) {
4913
+ function Ws(e) {
4892
4914
  let t;
4893
4915
  return {
4894
4916
  c() {
@@ -4978,15 +5000,15 @@ function $s(e) {
4978
5000
  );
4979
5001
  },
4980
5002
  d(r) {
4981
- r && M(t);
5003
+ r && N(t);
4982
5004
  }
4983
5005
  };
4984
5006
  }
4985
- function ur(e) {
5007
+ function fr(e) {
4986
5008
  let t, r, n, i, s, o, a, l, u, h, c, m, y, g, d, b, w, I = (
4987
5009
  /*$_*/
4988
5010
  e[33]("goToLoginButton") + ""
4989
- ), O, D, N;
5011
+ ), C, D, M;
4990
5012
  return {
4991
5013
  c() {
4992
5014
  t = B("div"), r = xe("svg"), n = xe("defs"), i = xe("style"), s = $(".a{fill:#var(--emw--color-valid, var(--emw--color-green, #48952a));}"), o = xe("path"), a = G(), l = B("h2"), u = $(
@@ -4998,45 +5020,45 @@ function ur(e) {
4998
5020
  ), y = G(), g = B("p"), d = $(
4999
5021
  /*accountCreationMessage*/
5000
5022
  e[24]
5001
- ), b = G(), w = B("button"), O = $(I), T(o, "class", "a"), T(o, "d", "M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z"), T(r, "xmlns", "http://www.w3.org/2000/svg"), T(r, "viewBox", "0 0 73.95 51"), T(l, "class", "RegisterConfirmationTitle"), T(c, "class", "RegisterConfirmationSubtitle"), T(g, "class", "RegisterConfirmationNote"), T(w, "class", "RegisterConfirmationGoToLogin"), T(t, "class", "RegisterConfirmation");
5023
+ ), b = G(), w = B("button"), C = $(I), T(o, "class", "a"), T(o, "d", "M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z"), T(r, "xmlns", "http://www.w3.org/2000/svg"), T(r, "viewBox", "0 0 73.95 51"), T(l, "class", "RegisterConfirmationTitle"), T(c, "class", "RegisterConfirmationSubtitle"), T(g, "class", "RegisterConfirmationNote"), T(w, "class", "RegisterConfirmationGoToLogin"), T(t, "class", "RegisterConfirmation");
5002
5024
  },
5003
- m(R, C) {
5004
- U(R, t, C), E(t, r), E(r, n), E(n, i), E(i, s), E(r, o), E(t, a), E(t, l), E(l, u), E(t, h), E(t, c), E(c, m), E(t, y), E(t, g), E(g, d), E(t, b), E(t, w), E(w, O), D || (N = gn(
5025
+ m(R, O) {
5026
+ U(R, t, O), E(t, r), E(r, n), E(n, i), E(i, s), E(r, o), E(t, a), E(t, l), E(l, u), E(t, h), E(t, c), E(c, m), E(t, y), E(t, g), E(g, d), E(t, b), E(t, w), E(w, C), D || (M = _n(
5005
5027
  w,
5006
5028
  "click",
5007
5029
  /*switchToLogin*/
5008
5030
  e[35]
5009
5031
  ), D = !0);
5010
5032
  },
5011
- p(R, C) {
5012
- C[0] & /*accountCreationTitle*/
5033
+ p(R, O) {
5034
+ O[0] & /*accountCreationTitle*/
5013
5035
  4194304 && K(
5014
5036
  u,
5015
5037
  /*accountCreationTitle*/
5016
5038
  R[22]
5017
- ), C[0] & /*accountCreationSubTitle*/
5039
+ ), O[0] & /*accountCreationSubTitle*/
5018
5040
  8388608 && K(
5019
5041
  m,
5020
5042
  /*accountCreationSubTitle*/
5021
5043
  R[23]
5022
- ), C[0] & /*accountCreationMessage*/
5044
+ ), O[0] & /*accountCreationMessage*/
5023
5045
  16777216 && K(
5024
5046
  d,
5025
5047
  /*accountCreationMessage*/
5026
5048
  R[24]
5027
- ), C[1] & /*$_*/
5049
+ ), O[1] & /*$_*/
5028
5050
  4 && I !== (I = /*$_*/
5029
- R[33]("goToLoginButton") + "") && K(O, I);
5051
+ R[33]("goToLoginButton") + "") && K(C, I);
5030
5052
  },
5031
5053
  d(R) {
5032
- R && M(t), D = !1, N();
5054
+ R && N(t), D = !1, M();
5033
5055
  }
5034
5056
  };
5035
5057
  }
5036
- function Vs(e) {
5058
+ function zs(e) {
5037
5059
  let t;
5038
5060
  function r(s, o) {
5039
- return Us;
5061
+ return js;
5040
5062
  }
5041
5063
  let i = r()(e);
5042
5064
  return {
@@ -5052,48 +5074,48 @@ function Vs(e) {
5052
5074
  i: k,
5053
5075
  o: k,
5054
5076
  d(s) {
5055
- s && M(t), i.d(), e[41](null);
5077
+ s && N(t), i.d(), e[41](null);
5056
5078
  }
5057
5079
  };
5058
5080
  }
5059
- let Xs = "Please use this code {0} to activate your account";
5060
- function Ws(e, t, r) {
5081
+ let Zs = "Please use this code {0} to activate your account";
5082
+ function qs(e, t, r) {
5061
5083
  let n;
5062
- fn(e, Ns, (f) => r(33, n = f));
5063
- let { endpoint: i = "" } = t, { cmsendpoint: s = "" } = t, { env: o = "" } = t, { session: a = "" } = t, { trackedanalyticsdata: l = "" } = t, { captchakey: u = "" } = t, { lang: h = "en" } = t, { licenseyears: c = "" } = t, { disabledfields: m = "" } = t, { defaultoptions: y = "" } = t, { smsverification: g = "false" } = t, { simplepasswordvalidation: d = "false" } = t, { userroles: b = "" } = t, { clientstyling: w = "" } = t, { clientstylingurl: I = "" } = t, { translationurl: O = "" } = t, { savecredentials: D = "" } = t, { custominputtextswitch: N = "false" } = t, { personalidlength: R = "13" } = t, C, dt = "", Ue = !0, le = !1, be = !1, Ge = !1, ke = !1, ye, gt = !1, bt = "", yt = "", vt = "", _t = window.navigator.userAgent, Vr = tr(_t) !== "PC", j = {}, Et = !1, St = !1, je = "false", wt = "false", xt = "false", Tt = "false", Ht = "", Bt, ve = !1, At, _e;
5064
- Ms({ withLocale: "en", translations: {} });
5065
- const Xr = () => {
5066
- fetch(O).then((x) => x.json()).then((x) => {
5084
+ dn(e, Fs, (f) => r(33, n = f));
5085
+ let { endpoint: i = "" } = t, { cmsendpoint: s = "" } = t, { env: o = "" } = t, { session: a = "" } = t, { trackedanalyticsdata: l = "" } = t, { captchakey: u = "" } = t, { lang: h = "en" } = t, { licenseyears: c = "" } = t, { disabledfields: m = "" } = t, { defaultoptions: y = "" } = t, { smsverification: g = "false" } = t, { simplepasswordvalidation: d = "false" } = t, { userroles: b = "" } = t, { clientstyling: w = "" } = t, { clientstylingurl: I = "" } = t, { translationurl: C = "" } = t, { savecredentials: D = "" } = t, { custominputtextswitch: M = "false" } = t, { personalidlength: R = "13" } = t, O, yt = "", Ue = !0, le = !1, be = !1, Ge = !1, ke = !1, ye, vt = !1, _t = "", Et = "", St = "", wt = window.navigator.userAgent, Zr = ir(wt) !== "PC", j = {}, xt = !1, Tt = !1, je = "false", Ht = "false", Bt = "false", At = "false", Pt = "", Ct, ve = !1, Ot, _e;
5086
+ Us({ withLocale: "en", translations: {} });
5087
+ const qr = () => {
5088
+ fetch(C).then((x) => x.json()).then((x) => {
5067
5089
  Object.keys(x).forEach((P) => {
5068
- rr(P, x[P]);
5090
+ sr(P, x[P]);
5069
5091
  });
5070
5092
  }).catch((x) => {
5071
5093
  console.log(x);
5072
5094
  });
5073
5095
  };
5074
- Object.keys(nr).forEach((f) => {
5075
- rr(f, nr[f]);
5096
+ Object.keys(or).forEach((f) => {
5097
+ sr(f, or[f]);
5076
5098
  });
5077
- const Wr = () => {
5099
+ const Jr = () => {
5078
5100
  fetch(`${i}/v1/player/consentRequirements`).then((f) => f.json()).then((f) => {
5079
5101
  f.items.length > 0 ? (r(25, je = "true"), f.items.forEach((x) => {
5080
5102
  switch (x.tagCode) {
5081
5103
  case "termsandconditions":
5082
- r(26, wt = "true");
5104
+ r(26, Ht = "true");
5083
5105
  break;
5084
5106
  case "sms":
5085
- r(27, xt = "true");
5107
+ r(27, Bt = "true");
5086
5108
  break;
5087
5109
  case "emailmarketing":
5088
- r(28, Tt = "true");
5110
+ r(28, At = "true");
5089
5111
  break;
5090
5112
  }
5091
5113
  })) : r(25, je = "false");
5092
5114
  });
5093
- }, zr = () => {
5094
- let f = new URL(`${s}/${h}/login-register-content?env=${o}`), x = tr(_t);
5115
+ }, Qr = () => {
5116
+ let f = new URL(`${s}/${h}/login-register-content?env=${o}`), x = ir(wt);
5095
5117
  x && (x === "PC" ? f.searchParams.append("device", "dk") : f.searchParams.append("device", "mtWeb")), fetch(f.href).then((P) => P.json()).then((P) => {
5096
- ye = P.registerData, r(22, bt = ye.title), r(23, yt = ye.subtitle), r(24, vt = ye.content);
5118
+ ye = P.registerData, r(22, _t = ye.title), r(23, Et = ye.subtitle), r(24, St = ye.content);
5097
5119
  }).catch((P) => {
5098
5120
  console.error(P);
5099
5121
  });
@@ -5101,19 +5123,19 @@ function Ws(e, t, r) {
5101
5123
  _e.scrollIntoView();
5102
5124
  }, he = (f) => {
5103
5125
  for (const x in f)
5104
- j[x] = f[x], x === "mobile" && r(31, At = `${f[x].prefix}${f[x].number}`);
5126
+ j[x] = f[x], x === "mobile" && r(31, Ot = `${f[x].prefix}${f[x].number}`);
5105
5127
  j.affiliateMarker = j.promoCode ? j.promoCode : l != null ? l : "";
5106
- }, Pt = (f) => {
5128
+ }, It = (f) => {
5107
5129
  if (f.data)
5108
5130
  switch (f.data.type) {
5109
5131
  case "RegisterStepOne":
5110
- he(f.data.registerStepOneData), Ee(), r(17, Ue = !1), r(18, le = !0), Et == !1 ? Et = !0 : window.postMessage({ type: "StepTwoDataBackup", userData: j }, window.location.href);
5132
+ he(f.data.registerStepOneData), Ee(), r(17, Ue = !1), r(18, le = !0), xt == !1 ? xt = !0 : window.postMessage({ type: "StepTwoDataBackup", userData: j }, window.location.href);
5111
5133
  break;
5112
5134
  case "RegisterStepTwo":
5113
- he(f.data.registerStepTwoData), Ee(), r(18, le = !1), r(19, be = !0), St == !1 ? St = !0 : window.postMessage({ type: "StepThreeDataBackup", userData: j }, window.location.href);
5135
+ he(f.data.registerStepTwoData), Ee(), r(18, le = !1), r(19, be = !0), Tt == !1 ? Tt = !0 : window.postMessage({ type: "StepThreeDataBackup", userData: j }, window.location.href);
5114
5136
  break;
5115
5137
  case "RegisterStepThree":
5116
- he(f.data.registerStepThreeData), qr(j);
5138
+ he(f.data.registerStepThreeData), Kr(j);
5117
5139
  break;
5118
5140
  case "SmsHasBeenValidated":
5119
5141
  r(21, ke = !0), r(20, Ge = !1);
@@ -5125,9 +5147,9 @@ function Ws(e, t, r) {
5125
5147
  he(f.data.registerStepThreeData), Ee(), r(18, le = !0), r(19, be = !1), window.postMessage({ type: "StepTwoDataBackup", userData: j }, window.location.href);
5126
5148
  break;
5127
5149
  }
5128
- }, Zr = () => {
5150
+ }, Yr = () => {
5129
5151
  typeof gtag == "function" && gtag("event", "Register", { context: "GeneralPlayerRegisterForm" });
5130
- }, qr = (f) => Se(this, null, function* () {
5152
+ }, Kr = (f) => Se(this, null, function* () {
5131
5153
  f.language = h;
5132
5154
  let x = {
5133
5155
  method: "PUT",
@@ -5138,15 +5160,15 @@ function Ws(e, t, r) {
5138
5160
  },
5139
5161
  body: JSON.stringify(f)
5140
5162
  }, P = yield fetch(`${i}/v1/player/register`, x), W = yield P.json();
5141
- P.ok ? (r(19, be = !1), g === "false" ? r(21, ke = !0) : (r(16, dt = W.id), Jr(f, W.id)), f.username, f.password, Zr()) : (Ht = W.error.substring(W.error.indexOf("errorMessage") + 13, W.error.length), gt = !0, window.postMessage(
5163
+ P.ok ? (r(19, be = !1), g === "false" ? r(21, ke = !0) : (r(16, yt = W.id), en(f, W.id)), f.username, f.password, Yr()) : (Pt = W.error.substring(W.error.indexOf("errorMessage") + 13, W.error.length), vt = !0, window.postMessage(
5142
5164
  {
5143
5165
  type: "ShowRegistrationError",
5144
- showError: gt,
5145
- error: Ht
5166
+ showError: vt,
5167
+ error: Pt
5146
5168
  },
5147
5169
  window.location.href
5148
5170
  ));
5149
- }), Jr = (f, x) => Se(this, null, function* () {
5171
+ }), en = (f, x) => Se(this, null, function* () {
5150
5172
  localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3)));
5151
5173
  try {
5152
5174
  const P = yield fetch(`${i}/v1/player/sms/token`, {
@@ -5157,34 +5179,34 @@ function Ws(e, t, r) {
5157
5179
  },
5158
5180
  body: JSON.stringify({
5159
5181
  userId: x,
5160
- messageTemplate: Xs,
5182
+ messageTemplate: Zs,
5161
5183
  destination: `${f.mobile.prefix}${f.mobile.number}`
5162
5184
  })
5163
5185
  }), W = yield P.json();
5164
5186
  if (P.ok) {
5165
- r(29, Bt = W.id);
5166
- let zs = W.maxValidationAttempts;
5187
+ r(29, Ct = W.id);
5188
+ let Js = W.maxValidationAttempts;
5167
5189
  r(20, Ge = !0), r(30, ve = !1);
5168
5190
  } else
5169
5191
  throw r(30, ve = !0), new Error("Failed to fetch");
5170
5192
  } catch (P) {
5171
5193
  r(30, ve = !0), console.error(P);
5172
5194
  }
5173
- }), Qr = () => {
5195
+ }), tn = () => {
5174
5196
  m.split(",");
5175
- }, Yr = () => {
5197
+ }, rn = () => {
5176
5198
  window.postMessage({ type: "ToLogin" }, window.location.href);
5177
- }, Kr = () => {
5178
- Ds(h);
5179
- }, en = () => {
5199
+ }, nn = () => {
5200
+ Gs(h);
5201
+ }, sn = () => {
5180
5202
  let f = document.createElement("style");
5181
- f.innerHTML = w, C.appendChild(f);
5182
- }, tn = () => {
5203
+ f.innerHTML = w, O.appendChild(f);
5204
+ }, on = () => {
5183
5205
  let f = new URL(I), x = document.createElement("style");
5184
5206
  fetch(f.href).then((P) => P.text()).then((P) => {
5185
5207
  x.innerHTML = P, setTimeout(
5186
5208
  () => {
5187
- C.appendChild(x);
5209
+ O.appendChild(x);
5188
5210
  },
5189
5211
  1
5190
5212
  ), setTimeout(
@@ -5194,32 +5216,32 @@ function Ws(e, t, r) {
5194
5216
  );
5195
5217
  });
5196
5218
  };
5197
- _n(() => (window.addEventListener("message", Pt, !1), () => {
5198
- window.removeEventListener("message", Pt);
5219
+ xn(() => (window.addEventListener("message", It, !1), () => {
5220
+ window.removeEventListener("message", It);
5199
5221
  }));
5200
- function rn(f) {
5201
- Ce[f ? "unshift" : "push"](() => {
5222
+ function an(f) {
5223
+ Oe[f ? "unshift" : "push"](() => {
5202
5224
  _e = f, r(32, _e);
5203
5225
  });
5204
5226
  }
5205
- function nn(f) {
5206
- Ce[f ? "unshift" : "push"](() => {
5207
- C = f, r(15, C);
5227
+ function un(f) {
5228
+ Oe[f ? "unshift" : "push"](() => {
5229
+ O = f, r(15, O);
5208
5230
  });
5209
5231
  }
5210
5232
  return e.$$set = (f) => {
5211
- "endpoint" in f && r(0, i = f.endpoint), "cmsendpoint" in f && r(36, s = f.cmsendpoint), "env" in f && r(37, o = f.env), "session" in f && r(1, a = f.session), "trackedanalyticsdata" in f && r(38, l = f.trackedanalyticsdata), "captchakey" in f && r(2, u = f.captchakey), "lang" in f && r(3, h = f.lang), "licenseyears" in f && r(4, c = f.licenseyears), "disabledfields" in f && r(5, m = f.disabledfields), "defaultoptions" in f && r(6, y = f.defaultoptions), "smsverification" in f && r(7, g = f.smsverification), "simplepasswordvalidation" in f && r(8, d = f.simplepasswordvalidation), "userroles" in f && r(39, b = f.userroles), "clientstyling" in f && r(9, w = f.clientstyling), "clientstylingurl" in f && r(10, I = f.clientstylingurl), "translationurl" in f && r(11, O = f.translationurl), "savecredentials" in f && r(12, D = f.savecredentials), "custominputtextswitch" in f && r(13, N = f.custominputtextswitch), "personalidlength" in f && r(14, R = f.personalidlength);
5233
+ "endpoint" in f && r(0, i = f.endpoint), "cmsendpoint" in f && r(36, s = f.cmsendpoint), "env" in f && r(37, o = f.env), "session" in f && r(1, a = f.session), "trackedanalyticsdata" in f && r(38, l = f.trackedanalyticsdata), "captchakey" in f && r(2, u = f.captchakey), "lang" in f && r(3, h = f.lang), "licenseyears" in f && r(4, c = f.licenseyears), "disabledfields" in f && r(5, m = f.disabledfields), "defaultoptions" in f && r(6, y = f.defaultoptions), "smsverification" in f && r(7, g = f.smsverification), "simplepasswordvalidation" in f && r(8, d = f.simplepasswordvalidation), "userroles" in f && r(39, b = f.userroles), "clientstyling" in f && r(9, w = f.clientstyling), "clientstylingurl" in f && r(10, I = f.clientstylingurl), "translationurl" in f && r(11, C = f.translationurl), "savecredentials" in f && r(12, D = f.savecredentials), "custominputtextswitch" in f && r(13, M = f.custominputtextswitch), "personalidlength" in f && r(14, R = f.personalidlength);
5212
5234
  }, e.$$.update = () => {
5213
5235
  e.$$.dirty[0] & /*endpoint*/
5214
- 1 && i && Wr(), e.$$.dirty[0] & /*lang*/
5236
+ 1 && i && Jr(), e.$$.dirty[0] & /*lang*/
5215
5237
  8 | e.$$.dirty[1] & /*cmsendpoint, env, userroles*/
5216
- 352 && s && h && o && b && zr(), e.$$.dirty[0] & /*playerid, session*/
5238
+ 352 && s && h && o && b && Qr(), e.$$.dirty[0] & /*playerid, session*/
5217
5239
  65538, e.$$.dirty[0] & /*lang*/
5218
- 8 && h && Kr(), e.$$.dirty[0] & /*disabledfields*/
5219
- 32 && m && Qr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5220
- 33280 && w && C && en(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5221
- 33792 && I && C && tn(), e.$$.dirty[0] & /*translationurl*/
5222
- 2048 && O && Xr();
5240
+ 8 && h && nn(), e.$$.dirty[0] & /*disabledfields*/
5241
+ 32 && m && tn(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5242
+ 33280 && w && O && sn(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5243
+ 33792 && I && O && on(), e.$$.dirty[0] & /*translationurl*/
5244
+ 2048 && C && qr();
5223
5245
  }, [
5224
5246
  i,
5225
5247
  a,
@@ -5232,47 +5254,47 @@ function Ws(e, t, r) {
5232
5254
  d,
5233
5255
  w,
5234
5256
  I,
5235
- O,
5257
+ C,
5236
5258
  D,
5237
- N,
5259
+ M,
5238
5260
  R,
5239
- C,
5240
- dt,
5261
+ O,
5262
+ yt,
5241
5263
  Ue,
5242
5264
  le,
5243
5265
  be,
5244
5266
  Ge,
5245
5267
  ke,
5246
- bt,
5247
- yt,
5248
- vt,
5268
+ _t,
5269
+ Et,
5270
+ St,
5249
5271
  je,
5250
- wt,
5251
- xt,
5252
- Tt,
5272
+ Ht,
5253
5273
  Bt,
5254
- ve,
5255
5274
  At,
5275
+ Ct,
5276
+ ve,
5277
+ Ot,
5256
5278
  _e,
5257
5279
  n,
5258
- Vr,
5259
- Yr,
5280
+ Zr,
5281
+ rn,
5260
5282
  s,
5261
5283
  o,
5262
5284
  l,
5263
5285
  b,
5264
- rn,
5265
- nn
5286
+ an,
5287
+ un
5266
5288
  ];
5267
5289
  }
5268
- class $r extends In {
5290
+ class zr extends Nn {
5269
5291
  constructor(t) {
5270
- super(), On(
5292
+ super(), Ln(
5271
5293
  this,
5272
5294
  t,
5273
- Ws,
5274
- Vs,
5275
- hr,
5295
+ qs,
5296
+ zs,
5297
+ pr,
5276
5298
  {
5277
5299
  endpoint: 0,
5278
5300
  cmsendpoint: 36,
@@ -5294,7 +5316,7 @@ class $r extends In {
5294
5316
  custominputtextswitch: 13,
5295
5317
  personalidlength: 14
5296
5318
  },
5297
- Fs,
5319
+ ks,
5298
5320
  [-1, -1, -1]
5299
5321
  );
5300
5322
  }
@@ -5413,45 +5435,45 @@ class $r extends In {
5413
5435
  this.$$set({ personalidlength: t }), A();
5414
5436
  }
5415
5437
  }
5416
- Cn($r, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, trackedanalyticsdata: {}, captchakey: {}, lang: {}, licenseyears: {}, disabledfields: {}, defaultoptions: {}, smsverification: {}, simplepasswordvalidation: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {}, custominputtextswitch: {}, personalidlength: {} }, [], [], !0);
5417
- const ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5438
+ Mn(zr, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, trackedanalyticsdata: {}, captchakey: {}, lang: {}, licenseyears: {}, disabledfields: {}, defaultoptions: {}, smsverification: {}, simplepasswordvalidation: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {}, custominputtextswitch: {}, personalidlength: {} }, [], [], !0);
5439
+ const so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5418
5440
  __proto__: null,
5419
- default: $r
5441
+ default: zr
5420
5442
  }, Symbol.toStringTag, { value: "Module" }));
5421
5443
  export {
5422
5444
  Z as $,
5423
- Qs as A,
5424
- eo as B,
5425
- dn as C,
5445
+ eo as A,
5446
+ vn as B,
5447
+ no as C,
5426
5448
  ae as D,
5427
- Js as E,
5428
- qs as F,
5429
- ro as G,
5430
- In as S,
5431
- Fr as a,
5432
- cn as b,
5433
- K as c,
5434
- M as d,
5435
- Ys as e,
5449
+ Ks as E,
5450
+ Ys as F,
5451
+ so as G,
5452
+ Nn as S,
5453
+ jr as a,
5454
+ gn as b,
5455
+ Mn as c,
5456
+ G as d,
5457
+ B as e,
5436
5458
  A as f,
5437
5459
  T as g,
5438
5460
  U as h,
5439
- On as i,
5461
+ Ln as i,
5440
5462
  E as j,
5441
- B as k,
5442
- gn as l,
5443
- G as m,
5463
+ to as k,
5464
+ _n as l,
5465
+ K as m,
5444
5466
  k as n,
5445
- fn as o,
5446
- _n as p,
5447
- Ce as q,
5467
+ N as o,
5468
+ dn as p,
5469
+ xn as q,
5448
5470
  ge as r,
5449
- hr as s,
5471
+ pr as s,
5450
5472
  $ as t,
5451
- xe as u,
5452
- Cn as v,
5453
- Ns as w,
5454
- Ks as x,
5455
- Ye as y,
5456
- to as z
5473
+ Oe as u,
5474
+ xe as v,
5475
+ Fs as w,
5476
+ Ke as x,
5477
+ ro as y,
5478
+ io as z
5457
5479
  };