@everymatrix/general-player-sms-verification-form 1.54.12 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,46 +1,46 @@
1
- function $() {
1
+ function U() {
2
2
  }
3
- function gt(e) {
3
+ function bt(e) {
4
4
  return e();
5
5
  }
6
- function Qe() {
6
+ function Je() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function oe(e) {
10
- e.forEach(gt);
9
+ function ne(e) {
10
+ e.forEach(bt);
11
11
  }
12
- function We(e) {
12
+ function ze(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function vt(e, t) {
15
+ function gt(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
- function Xt(e) {
18
+ function Vt(e) {
19
19
  return Object.keys(e).length === 0;
20
20
  }
21
- function yt(e, ...t) {
21
+ function vt(e, ...t) {
22
22
  if (e == null) {
23
23
  for (const n of t)
24
24
  n(void 0);
25
- return $;
25
+ return U;
26
26
  }
27
27
  const r = e.subscribe(...t);
28
28
  return r.unsubscribe ? () => r.unsubscribe() : r;
29
29
  }
30
- function zt(e, t, r) {
31
- e.$$.on_destroy.push(yt(t, r));
30
+ function Xt(e, t, r) {
31
+ e.$$.on_destroy.push(vt(t, r));
32
32
  }
33
33
  function E(e, t) {
34
34
  e.appendChild(t);
35
35
  }
36
- function Wt(e, t, r) {
37
- const n = Zt(e);
36
+ function zt(e, t, r) {
37
+ const n = Wt(e);
38
38
  if (!n.getElementById(t)) {
39
- const i = M("style");
40
- i.id = t, i.textContent = r, Jt(n, i);
39
+ const i = O("style");
40
+ i.id = t, i.textContent = r, Zt(n, i);
41
41
  }
42
42
  }
43
- function Zt(e) {
43
+ function Wt(e) {
44
44
  if (!e) return document;
45
45
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
46
46
  return t && /** @type {ShadowRoot} */
@@ -49,7 +49,7 @@ function Zt(e) {
49
49
  t
50
50
  ) : e.ownerDocument;
51
51
  }
52
- function Jt(e, t) {
52
+ function Zt(e, t) {
53
53
  return E(
54
54
  /** @type {Document} */
55
55
  e.head || e,
@@ -62,32 +62,32 @@ function W(e, t, r) {
62
62
  function k(e) {
63
63
  e.parentNode && e.parentNode.removeChild(e);
64
64
  }
65
- function M(e) {
65
+ function O(e) {
66
66
  return document.createElement(e);
67
67
  }
68
- function L(e) {
68
+ function M(e) {
69
69
  return document.createTextNode(e);
70
70
  }
71
71
  function X() {
72
- return L(" ");
72
+ return M(" ");
73
73
  }
74
- function be(e, t, r, n) {
74
+ function pe(e, t, r, n) {
75
75
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
76
76
  }
77
77
  function A(e, t, r) {
78
78
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
79
79
  }
80
- function Qt(e) {
80
+ function Jt(e) {
81
81
  return Array.from(e.childNodes);
82
82
  }
83
83
  function F(e, t) {
84
84
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
85
85
  t);
86
86
  }
87
- function qe(e, t) {
87
+ function Qe(e, t) {
88
88
  e.value = t ?? "";
89
89
  }
90
- function qt(e) {
90
+ function Qt(e) {
91
91
  const t = {};
92
92
  return e.childNodes.forEach(
93
93
  /** @param {Element} node */
@@ -96,93 +96,93 @@ function qt(e) {
96
96
  }
97
97
  ), t;
98
98
  }
99
- let ce;
100
- function he(e) {
101
- ce = e;
99
+ let fe;
100
+ function ce(e) {
101
+ fe = e;
102
102
  }
103
- function Yt() {
104
- if (!ce) throw new Error("Function called outside component initialization");
105
- return ce;
103
+ function qt() {
104
+ if (!fe) throw new Error("Function called outside component initialization");
105
+ return fe;
106
106
  }
107
- function Kt(e) {
108
- Yt().$$.on_mount.push(e);
107
+ function Yt(e) {
108
+ qt().$$.on_mount.push(e);
109
109
  }
110
- const K = [], Le = [];
111
- let ee = [];
112
- const Ye = [], er = /* @__PURE__ */ Promise.resolve();
113
- let Re = !1;
114
- function tr() {
115
- Re || (Re = !0, er.then(D));
110
+ const q = [], Me = [];
111
+ let Y = [];
112
+ const qe = [], Kt = /* @__PURE__ */ Promise.resolve();
113
+ let Le = !1;
114
+ function er() {
115
+ Le || (Le = !0, Kt.then($));
116
116
  }
117
- function $e(e) {
118
- ee.push(e);
117
+ function Re(e) {
118
+ Y.push(e);
119
119
  }
120
- const we = /* @__PURE__ */ new Set();
121
- let q = 0;
122
- function D() {
123
- if (q !== 0)
120
+ const Be = /* @__PURE__ */ new Set();
121
+ let J = 0;
122
+ function $() {
123
+ if (J !== 0)
124
124
  return;
125
- const e = ce;
125
+ const e = fe;
126
126
  do {
127
127
  try {
128
- for (; q < K.length; ) {
129
- const t = K[q];
130
- q++, he(t), rr(t.$$);
128
+ for (; J < q.length; ) {
129
+ const t = q[J];
130
+ J++, ce(t), tr(t.$$);
131
131
  }
132
132
  } catch (t) {
133
- throw K.length = 0, q = 0, t;
133
+ throw q.length = 0, J = 0, t;
134
134
  }
135
- for (he(null), K.length = 0, q = 0; Le.length; ) Le.pop()();
136
- for (let t = 0; t < ee.length; t += 1) {
137
- const r = ee[t];
138
- we.has(r) || (we.add(r), r());
135
+ for (ce(null), q.length = 0, J = 0; Me.length; ) Me.pop()();
136
+ for (let t = 0; t < Y.length; t += 1) {
137
+ const r = Y[t];
138
+ Be.has(r) || (Be.add(r), r());
139
139
  }
140
- ee.length = 0;
141
- } while (K.length);
142
- for (; Ye.length; )
143
- Ye.pop()();
144
- Re = !1, we.clear(), he(e);
140
+ Y.length = 0;
141
+ } while (q.length);
142
+ for (; qe.length; )
143
+ qe.pop()();
144
+ Le = !1, Be.clear(), ce(e);
145
145
  }
146
- function rr(e) {
146
+ function tr(e) {
147
147
  if (e.fragment !== null) {
148
- e.update(), oe(e.before_update);
148
+ e.update(), ne(e.before_update);
149
149
  const t = e.dirty;
150
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
150
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
151
151
  }
152
152
  }
153
- function nr(e) {
153
+ function rr(e) {
154
154
  const t = [], r = [];
155
- ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
155
+ Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
156
156
  }
157
- const ir = /* @__PURE__ */ new Set();
158
- function or(e, t) {
159
- e && e.i && (ir.delete(e), e.i(t));
157
+ const nr = /* @__PURE__ */ new Set();
158
+ function ir(e, t) {
159
+ e && e.i && (nr.delete(e), e.i(t));
160
160
  }
161
- function sr(e, t, r) {
161
+ function or(e, t, r) {
162
162
  const { fragment: n, after_update: i } = e.$$;
163
- n && n.m(t, r), $e(() => {
164
- const o = e.$$.on_mount.map(gt).filter(We);
165
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
166
- }), i.forEach($e);
163
+ n && n.m(t, r), Re(() => {
164
+ const o = e.$$.on_mount.map(bt).filter(ze);
165
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ne(o), e.$$.on_mount = [];
166
+ }), i.forEach(Re);
167
167
  }
168
- function ar(e, t) {
168
+ function sr(e, t) {
169
169
  const r = e.$$;
170
- r.fragment !== null && (nr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
170
+ r.fragment !== null && (rr(r.after_update), ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
171
171
  }
172
- function ur(e, t) {
173
- e.$$.dirty[0] === -1 && (K.push(e), tr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
172
+ function ar(e, t) {
173
+ e.$$.dirty[0] === -1 && (q.push(e), er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
174
174
  }
175
- function lr(e, t, r, n, i, o, a = null, s = [-1]) {
176
- const h = ce;
177
- he(e);
175
+ function ur(e, t, r, n, i, o, a = null, s = [-1]) {
176
+ const h = fe;
177
+ ce(e);
178
178
  const u = e.$$ = {
179
179
  fragment: null,
180
180
  ctx: [],
181
181
  // state
182
182
  props: o,
183
- update: $,
183
+ update: U,
184
184
  not_equal: i,
185
- bound: Qe(),
185
+ bound: Je(),
186
186
  // lifecycle
187
187
  on_mount: [],
188
188
  on_destroy: [],
@@ -191,28 +191,28 @@ function lr(e, t, r, n, i, o, a = null, s = [-1]) {
191
191
  after_update: [],
192
192
  context: new Map(t.context || (h ? h.$$.context : [])),
193
193
  // everything else
194
- callbacks: Qe(),
194
+ callbacks: Je(),
195
195
  dirty: s,
196
196
  skip_bound: !1,
197
197
  root: t.target || h.$$.root
198
198
  };
199
199
  a && a(u.root);
200
200
  let l = !1;
201
- if (u.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
202
- const v = b.length ? b[0] : d;
203
- return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), l && ur(e, f)), d;
204
- }) : [], u.update(), l = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
201
+ if (u.ctx = r ? r(e, t.props || {}, (c, d, ...g) => {
202
+ const y = g.length ? g[0] : d;
203
+ return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && ar(e, c)), d;
204
+ }) : [], u.update(), l = !0, ne(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
205
205
  if (t.hydrate) {
206
- const f = Qt(t.target);
207
- u.fragment && u.fragment.l(f), f.forEach(k);
206
+ const c = Jt(t.target);
207
+ u.fragment && u.fragment.l(c), c.forEach(k);
208
208
  } else
209
209
  u.fragment && u.fragment.c();
210
- t.intro && or(e.$$.fragment), sr(e, t.target, t.anchor), D();
210
+ t.intro && ir(e.$$.fragment), or(e, t.target, t.anchor), $();
211
211
  }
212
- he(h);
212
+ ce(h);
213
213
  }
214
- let Et;
215
- typeof HTMLElement == "function" && (Et = class extends HTMLElement {
214
+ let yt;
215
+ typeof HTMLElement == "function" && (yt = class extends HTMLElement {
216
216
  /** The Svelte component constructor */
217
217
  $$ctor;
218
218
  /** Slots */
@@ -254,7 +254,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
254
254
  let o;
255
255
  return {
256
256
  c: function() {
257
- o = M("slot"), i !== "default" && A(o, "name", i);
257
+ o = O("slot"), i !== "default" && A(o, "name", i);
258
258
  },
259
259
  /**
260
260
  * @param {HTMLElement} target
@@ -271,12 +271,12 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
271
271
  };
272
272
  if (await Promise.resolve(), !this.$$cn || this.$$c)
273
273
  return;
274
- const t = {}, r = qt(this);
274
+ const t = {}, r = Qt(this);
275
275
  for (const i of this.$$s)
276
276
  i in r && (t[i] = [e(i)]);
277
277
  for (const i of this.attributes) {
278
278
  const o = this.$$g_p(i.name);
279
- o in this.$$d || (this.$$d[o] = ve(o, i.value, this.$$p_d, "toProp"));
279
+ o in this.$$d || (this.$$d[o] = ge(o, i.value, this.$$p_d, "toProp"));
280
280
  }
281
281
  for (const i in this.$$p_d)
282
282
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -294,7 +294,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
294
294
  this.$$r = !0;
295
295
  for (const i in this.$$p_d)
296
296
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
297
- const o = ve(
297
+ const o = ge(
298
298
  i,
299
299
  this.$$d[i],
300
300
  this.$$p_d,
@@ -316,7 +316,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
316
316
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
317
317
  // and setting attributes through setAttribute etc, this is helpful
318
318
  attributeChangedCallback(e, t, r) {
319
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ve(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
319
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ge(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
320
320
  }
321
321
  disconnectedCallback() {
322
322
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -329,7 +329,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
329
329
  ) || e;
330
330
  }
331
331
  });
332
- function ve(e, t, r, n) {
332
+ function ge(e, t, r, n) {
333
333
  const i = r[e]?.type;
334
334
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
335
335
  return t;
@@ -358,8 +358,8 @@ function ve(e, t, r, n) {
358
358
  return t;
359
359
  }
360
360
  }
361
- function hr(e, t, r, n, i, o) {
362
- let a = class extends Et {
361
+ function lr(e, t, r, n, i, o) {
362
+ let a = class extends yt {
363
363
  constructor() {
364
364
  super(e, r, i), this.$$p_d = t;
365
365
  }
@@ -375,7 +375,7 @@ function hr(e, t, r, n, i, o) {
375
375
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
376
376
  },
377
377
  set(h) {
378
- h = ve(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
378
+ h = ge(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
379
379
  }
380
380
  });
381
381
  }), n.forEach((s) => {
@@ -387,7 +387,7 @@ function hr(e, t, r, n, i, o) {
387
387
  }), e.element = /** @type {any} */
388
388
  a, a;
389
389
  }
390
- class cr {
390
+ class hr {
391
391
  /**
392
392
  * ### PRIVATE API
393
393
  *
@@ -406,7 +406,7 @@ class cr {
406
406
  $$set = void 0;
407
407
  /** @returns {void} */
408
408
  $destroy() {
409
- ar(this, 1), this.$destroy = $;
409
+ sr(this, 1), this.$destroy = U;
410
410
  }
411
411
  /**
412
412
  * @template {Extract<keyof Events, string>} K
@@ -415,8 +415,8 @@ class cr {
415
415
  * @returns {() => void}
416
416
  */
417
417
  $on(t, r) {
418
- if (!We(r))
419
- return $;
418
+ if (!ze(r))
419
+ return U;
420
420
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
421
421
  return n.push(r), () => {
422
422
  const i = n.indexOf(r);
@@ -428,63 +428,63 @@ class cr {
428
428
  * @returns {void}
429
429
  */
430
430
  $set(t) {
431
- this.$$set && !Xt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
431
+ this.$$set && !Vt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
432
432
  }
433
433
  }
434
- const fr = "4";
435
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fr);
436
- const Y = [];
437
- function dr(e, t) {
434
+ const cr = "4";
435
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cr);
436
+ const Q = [];
437
+ function fr(e, t) {
438
438
  return {
439
- subscribe: Se(e, t).subscribe
439
+ subscribe: _e(e, t).subscribe
440
440
  };
441
441
  }
442
- function Se(e, t = $) {
442
+ function _e(e, t = U) {
443
443
  let r;
444
444
  const n = /* @__PURE__ */ new Set();
445
445
  function i(s) {
446
- if (vt(e, s) && (e = s, r)) {
447
- const h = !Y.length;
446
+ if (gt(e, s) && (e = s, r)) {
447
+ const h = !Q.length;
448
448
  for (const u of n)
449
- u[1](), Y.push(u, e);
449
+ u[1](), Q.push(u, e);
450
450
  if (h) {
451
- for (let u = 0; u < Y.length; u += 2)
452
- Y[u][0](Y[u + 1]);
453
- Y.length = 0;
451
+ for (let u = 0; u < Q.length; u += 2)
452
+ Q[u][0](Q[u + 1]);
453
+ Q.length = 0;
454
454
  }
455
455
  }
456
456
  }
457
457
  function o(s) {
458
458
  i(s(e));
459
459
  }
460
- function a(s, h = $) {
460
+ function a(s, h = U) {
461
461
  const u = [s, h];
462
- return n.add(u), n.size === 1 && (r = t(i, o) || $), s(e), () => {
462
+ return n.add(u), n.size === 1 && (r = t(i, o) || U), s(e), () => {
463
463
  n.delete(u), n.size === 0 && r && (r(), r = null);
464
464
  };
465
465
  }
466
466
  return { set: i, update: o, subscribe: a };
467
467
  }
468
- function se(e, t, r) {
468
+ function ie(e, t, r) {
469
469
  const n = !Array.isArray(e), i = n ? [e] : e;
470
470
  if (!i.every(Boolean))
471
471
  throw new Error("derived() expects stores as input, got a falsy value");
472
472
  const o = t.length < 2;
473
- return dr(r, (a, s) => {
473
+ return fr(r, (a, s) => {
474
474
  let h = !1;
475
475
  const u = [];
476
- let l = 0, f = $;
476
+ let l = 0, c = U;
477
477
  const d = () => {
478
478
  if (l)
479
479
  return;
480
- f();
481
- const v = t(n ? u[0] : u, a, s);
482
- o ? a(v) : f = We(v) ? v : $;
483
- }, b = i.map(
484
- (v, _) => yt(
485
- v,
486
- (S) => {
487
- u[_] = S, l &= ~(1 << _), h && d();
480
+ c();
481
+ const y = t(n ? u[0] : u, a, s);
482
+ o ? a(y) : c = ze(y) ? y : U;
483
+ }, g = i.map(
484
+ (y, _) => vt(
485
+ y,
486
+ (T) => {
487
+ u[_] = T, l &= ~(1 << _), h && d();
488
488
  },
489
489
  () => {
490
490
  l |= 1 << _;
@@ -492,110 +492,110 @@ function se(e, t, r) {
492
492
  )
493
493
  );
494
494
  return h = !0, d(), function() {
495
- oe(b), f(), h = !1;
495
+ ne(g), c(), h = !1;
496
496
  };
497
497
  });
498
498
  }
499
- function mr(e) {
499
+ function dr(e) {
500
500
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
501
501
  }
502
- var pr = function(t) {
503
- return br(t) && !gr(t);
502
+ var mr = function(t) {
503
+ return pr(t) && !br(t);
504
504
  };
505
- function br(e) {
505
+ function pr(e) {
506
506
  return !!e && typeof e == "object";
507
507
  }
508
- function gr(e) {
508
+ function br(e) {
509
509
  var t = Object.prototype.toString.call(e);
510
- return t === "[object RegExp]" || t === "[object Date]" || Er(e);
510
+ return t === "[object RegExp]" || t === "[object Date]" || yr(e);
511
511
  }
512
- var vr = typeof Symbol == "function" && Symbol.for, yr = vr ? Symbol.for("react.element") : 60103;
513
- function Er(e) {
514
- return e.$$typeof === yr;
512
+ var gr = typeof Symbol == "function" && Symbol.for, vr = gr ? Symbol.for("react.element") : 60103;
513
+ function yr(e) {
514
+ return e.$$typeof === vr;
515
515
  }
516
- function xr(e) {
516
+ function Er(e) {
517
517
  return Array.isArray(e) ? [] : {};
518
518
  }
519
- function fe(e, t) {
520
- return t.clone !== !1 && t.isMergeableObject(e) ? te(xr(e), e, t) : e;
519
+ function de(e, t) {
520
+ return t.clone !== !1 && t.isMergeableObject(e) ? K(Er(e), e, t) : e;
521
521
  }
522
- function _r(e, t, r) {
522
+ function xr(e, t, r) {
523
523
  return e.concat(t).map(function(n) {
524
- return fe(n, r);
524
+ return de(n, r);
525
525
  });
526
526
  }
527
- function Sr(e, t) {
527
+ function _r(e, t) {
528
528
  if (!t.customMerge)
529
- return te;
529
+ return K;
530
530
  var r = t.customMerge(e);
531
- return typeof r == "function" ? r : te;
531
+ return typeof r == "function" ? r : K;
532
532
  }
533
- function Tr(e) {
533
+ function Sr(e) {
534
534
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
535
535
  return Object.propertyIsEnumerable.call(e, t);
536
536
  }) : [];
537
537
  }
538
- function Ke(e) {
539
- return Object.keys(e).concat(Tr(e));
538
+ function Ye(e) {
539
+ return Object.keys(e).concat(Sr(e));
540
540
  }
541
- function xt(e, t) {
541
+ function Et(e, t) {
542
542
  try {
543
543
  return t in e;
544
544
  } catch {
545
545
  return !1;
546
546
  }
547
547
  }
548
- function Hr(e, t) {
549
- return xt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
548
+ function Tr(e, t) {
549
+ return Et(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
550
550
  }
551
- function Ar(e, t, r) {
551
+ function Hr(e, t, r) {
552
552
  var n = {};
553
- return r.isMergeableObject(e) && Ke(e).forEach(function(i) {
554
- n[i] = fe(e[i], r);
555
- }), Ke(t).forEach(function(i) {
556
- Hr(e, i) || (xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Sr(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
553
+ return r.isMergeableObject(e) && Ye(e).forEach(function(i) {
554
+ n[i] = de(e[i], r);
555
+ }), Ye(t).forEach(function(i) {
556
+ Tr(e, i) || (Et(e, i) && r.isMergeableObject(t[i]) ? n[i] = _r(i, r)(e[i], t[i], r) : n[i] = de(t[i], r));
557
557
  }), n;
558
558
  }
559
- function te(e, t, r) {
560
- r = r || {}, r.arrayMerge = r.arrayMerge || _r, r.isMergeableObject = r.isMergeableObject || pr, r.cloneUnlessOtherwiseSpecified = fe;
559
+ function K(e, t, r) {
560
+ r = r || {}, r.arrayMerge = r.arrayMerge || xr, r.isMergeableObject = r.isMergeableObject || mr, r.cloneUnlessOtherwiseSpecified = de;
561
561
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
562
- return o ? n ? r.arrayMerge(e, t, r) : Ar(e, t, r) : fe(t, r);
562
+ return o ? n ? r.arrayMerge(e, t, r) : Hr(e, t, r) : de(t, r);
563
563
  }
564
- te.all = function(t, r) {
564
+ K.all = function(t, r) {
565
565
  if (!Array.isArray(t))
566
566
  throw new Error("first argument should be an array");
567
567
  return t.reduce(function(n, i) {
568
- return te(n, i, r);
568
+ return K(n, i, r);
569
569
  }, {});
570
570
  };
571
- var Br = te, wr = Br;
572
- const Pr = /* @__PURE__ */ mr(wr);
573
- var Ue = function(e, t) {
574
- return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
571
+ var Ar = K, Br = Ar;
572
+ const wr = /* @__PURE__ */ dr(Br);
573
+ var $e = function(e, t) {
574
+ return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
575
575
  r.__proto__ = n;
576
576
  } || function(r, n) {
577
577
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
578
- }, Ue(e, t);
578
+ }, $e(e, t);
579
579
  };
580
- function Te(e, t) {
580
+ function Se(e, t) {
581
581
  if (typeof t != "function" && t !== null)
582
582
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
583
- Ue(e, t);
583
+ $e(e, t);
584
584
  function r() {
585
585
  this.constructor = e;
586
586
  }
587
587
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
588
588
  }
589
- var g = function() {
590
- return g = Object.assign || function(t) {
589
+ var v = function() {
590
+ return v = Object.assign || function(t) {
591
591
  for (var r, n = 1, i = arguments.length; n < i; n++) {
592
592
  r = arguments[n];
593
593
  for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
594
594
  }
595
595
  return t;
596
- }, g.apply(this, arguments);
596
+ }, v.apply(this, arguments);
597
597
  };
598
- function Cr(e, t) {
598
+ function Pr(e, t) {
599
599
  var r = {};
600
600
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
601
601
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -603,42 +603,42 @@ function Cr(e, t) {
603
603
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
604
604
  return r;
605
605
  }
606
- function Pe(e, t, r) {
606
+ function we(e, t, r) {
607
607
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
608
608
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
609
609
  return e.concat(o || Array.prototype.slice.call(t));
610
610
  }
611
- function Ce(e, t) {
612
- var r = t && t.cache ? t.cache : $r, n = t && t.serializer ? t.serializer : Lr, i = t && t.strategy ? t.strategy : Or;
611
+ function Pe(e, t) {
612
+ var r = t && t.cache ? t.cache : Rr, n = t && t.serializer ? t.serializer : Mr, i = t && t.strategy ? t.strategy : Nr;
613
613
  return i(e, {
614
614
  cache: r,
615
615
  serializer: n
616
616
  });
617
617
  }
618
- function Ir(e) {
618
+ function Cr(e) {
619
619
  return e == null || typeof e == "number" || typeof e == "boolean";
620
620
  }
621
- function Nr(e, t, r, n) {
622
- var i = Ir(n) ? n : r(n), o = t.get(i);
621
+ function Ir(e, t, r, n) {
622
+ var i = Cr(n) ? n : r(n), o = t.get(i);
623
623
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
624
624
  }
625
- function _t(e, t, r) {
625
+ function xt(e, t, r) {
626
626
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
627
627
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
628
628
  }
629
- function St(e, t, r, n, i) {
629
+ function _t(e, t, r, n, i) {
630
630
  return r.bind(t, e, n, i);
631
631
  }
632
- function Or(e, t) {
633
- var r = e.length === 1 ? Nr : _t;
634
- return St(e, this, r, t.cache.create(), t.serializer);
632
+ function Nr(e, t) {
633
+ var r = e.length === 1 ? Ir : xt;
634
+ return _t(e, this, r, t.cache.create(), t.serializer);
635
635
  }
636
- function Mr(e, t) {
637
- return St(e, this, _t, t.cache.create(), t.serializer);
636
+ function Or(e, t) {
637
+ return _t(e, this, xt, t.cache.create(), t.serializer);
638
638
  }
639
- var Lr = function() {
639
+ var Mr = function() {
640
640
  return JSON.stringify(arguments);
641
- }, Rr = (
641
+ }, Lr = (
642
642
  /** @class */
643
643
  function() {
644
644
  function e() {
@@ -650,12 +650,12 @@ var Lr = function() {
650
650
  this.cache[t] = r;
651
651
  }, e;
652
652
  }()
653
- ), $r = {
653
+ ), Rr = {
654
654
  create: function() {
655
- return new Rr();
655
+ return new Lr();
656
656
  }
657
- }, Ie = {
658
- variadic: Mr
657
+ }, Ce = {
658
+ variadic: Or
659
659
  }, m;
660
660
  (function(e) {
661
661
  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";
@@ -664,47 +664,47 @@ var x;
664
664
  (function(e) {
665
665
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
666
666
  })(x || (x = {}));
667
- var re;
667
+ var ee;
668
668
  (function(e) {
669
669
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
670
- })(re || (re = {}));
671
- function et(e) {
670
+ })(ee || (ee = {}));
671
+ function Ke(e) {
672
672
  return e.type === x.literal;
673
673
  }
674
- function Ur(e) {
674
+ function $r(e) {
675
675
  return e.type === x.argument;
676
676
  }
677
- function Tt(e) {
677
+ function St(e) {
678
678
  return e.type === x.number;
679
679
  }
680
- function Ht(e) {
680
+ function Tt(e) {
681
681
  return e.type === x.date;
682
682
  }
683
- function At(e) {
683
+ function Ht(e) {
684
684
  return e.type === x.time;
685
685
  }
686
- function Bt(e) {
686
+ function At(e) {
687
687
  return e.type === x.select;
688
688
  }
689
- function wt(e) {
689
+ function Bt(e) {
690
690
  return e.type === x.plural;
691
691
  }
692
- function Dr(e) {
692
+ function Ur(e) {
693
693
  return e.type === x.pound;
694
694
  }
695
- function Pt(e) {
695
+ function wt(e) {
696
696
  return e.type === x.tag;
697
697
  }
698
- function Ct(e) {
699
- return !!(e && typeof e == "object" && e.type === re.number);
698
+ function Pt(e) {
699
+ return !!(e && typeof e == "object" && e.type === ee.number);
700
700
  }
701
- function De(e) {
702
- return !!(e && typeof e == "object" && e.type === re.dateTime);
701
+ function Ue(e) {
702
+ return !!(e && typeof e == "object" && e.type === ee.dateTime);
703
703
  }
704
- var It = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fr = /(?:[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;
705
- function Gr(e) {
704
+ var Ct = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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;
705
+ function Fr(e) {
706
706
  var t = {};
707
- return e.replace(Fr, function(r) {
707
+ return e.replace(Dr, function(r) {
708
708
  var n = r.length;
709
709
  switch (r[0]) {
710
710
  case "G":
@@ -793,36 +793,36 @@ function Gr(e) {
793
793
  return "";
794
794
  }), t;
795
795
  }
796
- var kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
797
- function jr(e) {
796
+ var Gr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
797
+ function kr(e) {
798
798
  if (e.length === 0)
799
799
  throw new Error("Number skeleton cannot be empty");
800
- for (var t = e.split(kr).filter(function(d) {
800
+ for (var t = e.split(Gr).filter(function(d) {
801
801
  return d.length > 0;
802
802
  }), r = [], n = 0, i = t; n < i.length; n++) {
803
803
  var o = i[n], a = o.split("/");
804
804
  if (a.length === 0)
805
805
  throw new Error("Invalid number skeleton");
806
806
  for (var s = a[0], h = a.slice(1), u = 0, l = h; u < l.length; u++) {
807
- var f = l[u];
808
- if (f.length === 0)
807
+ var c = l[u];
808
+ if (c.length === 0)
809
809
  throw new Error("Invalid number skeleton");
810
810
  }
811
811
  r.push({ stem: s, options: h });
812
812
  }
813
813
  return r;
814
814
  }
815
- function Vr(e) {
815
+ function jr(e) {
816
816
  return e.replace(/^(.*?)-/, "");
817
817
  }
818
- var tt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ot = /^(0+)$/;
819
- function rt(e) {
818
+ var et = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, It = /^(@+)?(\+|#+)?[rs]?$/g, Vr = /(\*)(0+)|(#+)(0+)|(0+)/g, Nt = /^(0+)$/;
819
+ function tt(e) {
820
820
  var t = {};
821
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nt, function(r, n, i) {
821
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(It, function(r, n, i) {
822
822
  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)), "";
823
823
  }), t;
824
824
  }
825
- function Mt(e) {
825
+ function Ot(e) {
826
826
  switch (e) {
827
827
  case "sign-auto":
828
828
  return {
@@ -862,7 +862,7 @@ function Mt(e) {
862
862
  };
863
863
  }
864
864
  }
865
- function zr(e) {
865
+ function Xr(e) {
866
866
  var t;
867
867
  if (e[0] === "E" && e[1] === "E" ? (t = {
868
868
  notation: "engineering"
@@ -870,17 +870,17 @@ function zr(e) {
870
870
  notation: "scientific"
871
871
  }, e = e.slice(1)), t) {
872
872
  var r = e.slice(0, 2);
873
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ot.test(e))
873
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Nt.test(e))
874
874
  throw new Error("Malformed concise eng/scientific notation");
875
875
  t.minimumIntegerDigits = e.length;
876
876
  }
877
877
  return t;
878
878
  }
879
- function nt(e) {
880
- var t = {}, r = Mt(e);
879
+ function rt(e) {
880
+ var t = {}, r = Ot(e);
881
881
  return r || t;
882
882
  }
883
- function Wr(e) {
883
+ function zr(e) {
884
884
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
885
885
  var i = n[r];
886
886
  switch (i.stem) {
@@ -904,7 +904,7 @@ function Wr(e) {
904
904
  continue;
905
905
  case "measure-unit":
906
906
  case "unit":
907
- t.style = "unit", t.unit = Vr(i.options[0]);
907
+ t.style = "unit", t.unit = jr(i.options[0]);
908
908
  continue;
909
909
  case "compact-short":
910
910
  case "K":
@@ -915,13 +915,13 @@ function Wr(e) {
915
915
  t.notation = "compact", t.compactDisplay = "long";
916
916
  continue;
917
917
  case "scientific":
918
- t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
919
- return g(g({}, h), nt(u));
918
+ t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
919
+ return v(v({}, h), rt(u));
920
920
  }, {}));
921
921
  continue;
922
922
  case "engineering":
923
- t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
924
- return g(g({}, h), nt(u));
923
+ t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
924
+ return v(v({}, h), rt(u));
925
925
  }, {}));
926
926
  continue;
927
927
  case "notation-simple":
@@ -966,45 +966,45 @@ function Wr(e) {
966
966
  case "integer-width":
967
967
  if (i.options.length > 1)
968
968
  throw new RangeError("integer-width stems only accept a single optional option");
969
- i.options[0].replace(Xr, function(h, u, l, f, d, b) {
969
+ i.options[0].replace(Vr, function(h, u, l, c, d, g) {
970
970
  if (u)
971
971
  t.minimumIntegerDigits = l.length;
972
972
  else {
973
- if (f && d)
973
+ if (c && d)
974
974
  throw new Error("We currently do not support maximum integer digits");
975
- if (b)
975
+ if (g)
976
976
  throw new Error("We currently do not support exact integer digits");
977
977
  }
978
978
  return "";
979
979
  });
980
980
  continue;
981
981
  }
982
- if (Ot.test(i.stem)) {
982
+ if (Nt.test(i.stem)) {
983
983
  t.minimumIntegerDigits = i.stem.length;
984
984
  continue;
985
985
  }
986
- if (tt.test(i.stem)) {
986
+ if (et.test(i.stem)) {
987
987
  if (i.options.length > 1)
988
988
  throw new RangeError("Fraction-precision stems only accept a single optional option");
989
- i.stem.replace(tt, function(h, u, l, f, d, b) {
990
- return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
989
+ i.stem.replace(et, function(h, u, l, c, d, g) {
990
+ return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && g ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
991
991
  });
992
992
  var o = i.options[0];
993
- o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), rt(o)));
993
+ o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), tt(o)));
994
994
  continue;
995
995
  }
996
- if (Nt.test(i.stem)) {
997
- t = g(g({}, t), rt(i.stem));
996
+ if (It.test(i.stem)) {
997
+ t = v(v({}, t), tt(i.stem));
998
998
  continue;
999
999
  }
1000
- var a = Mt(i.stem);
1001
- a && (t = g(g({}, t), a));
1002
- var s = zr(i.stem);
1003
- s && (t = g(g({}, t), s));
1000
+ var a = Ot(i.stem);
1001
+ a && (t = v(v({}, t), a));
1002
+ var s = Xr(i.stem);
1003
+ s && (t = v(v({}, t), s));
1004
1004
  }
1005
1005
  return t;
1006
1006
  }
1007
- var ge = {
1007
+ var be = {
1008
1008
  "001": [
1009
1009
  "H",
1010
1010
  "h"
@@ -2419,13 +2419,13 @@ var ge = {
2419
2419
  "h"
2420
2420
  ]
2421
2421
  };
2422
- function Zr(e, t) {
2422
+ function Wr(e, t) {
2423
2423
  for (var r = "", n = 0; n < e.length; n++) {
2424
2424
  var i = e.charAt(n);
2425
2425
  if (i === "j") {
2426
2426
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2427
2427
  o++, n++;
2428
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Jr(t);
2428
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Zr(t);
2429
2429
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2430
2430
  r += h;
2431
2431
  for (; a-- > 0; )
@@ -2434,7 +2434,7 @@ function Zr(e, t) {
2434
2434
  }
2435
2435
  return r;
2436
2436
  }
2437
- function Jr(e) {
2437
+ function Zr(e) {
2438
2438
  var t = e.hourCycle;
2439
2439
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2440
2440
  e.hourCycles && // @ts-ignore
@@ -2453,23 +2453,23 @@ function Jr(e) {
2453
2453
  }
2454
2454
  var r = e.language, n;
2455
2455
  r !== "root" && (n = e.maximize().region);
2456
- var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
2456
+ var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
2457
2457
  return i[0];
2458
2458
  }
2459
- var Ne, Qr = new RegExp("^".concat(It.source, "*")), qr = new RegExp("".concat(It.source, "*$"));
2460
- function p(e, t) {
2459
+ var Ie, Jr = new RegExp("^".concat(Ct.source, "*")), Qr = new RegExp("".concat(Ct.source, "*$"));
2460
+ function b(e, t) {
2461
2461
  return { start: e, end: t };
2462
2462
  }
2463
- var Yr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Kr = !!String.fromCodePoint, en = !!Object.fromEntries, tn = !!String.prototype.codePointAt, rn = !!String.prototype.trimStart, nn = !!String.prototype.trimEnd, on = !!Number.isSafeInteger, sn = on ? Number.isSafeInteger : function(e) {
2463
+ var qr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yr = !!String.fromCodePoint, Kr = !!Object.fromEntries, en = !!String.prototype.codePointAt, tn = !!String.prototype.trimStart, rn = !!String.prototype.trimEnd, nn = !!Number.isSafeInteger, on = nn ? Number.isSafeInteger : function(e) {
2464
2464
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2465
- }, Fe = !0;
2465
+ }, De = !0;
2466
2466
  try {
2467
- var an = Rt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2468
- Fe = ((Ne = an.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
2467
+ var sn = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2468
+ De = ((Ie = sn.exec("a")) === null || Ie === void 0 ? void 0 : Ie[0]) === "a";
2469
2469
  } catch {
2470
- Fe = !1;
2470
+ De = !1;
2471
2471
  }
2472
- var it = Yr ? (
2472
+ var nt = qr ? (
2473
2473
  // Native
2474
2474
  function(t, r, n) {
2475
2475
  return t.startsWith(r, n);
@@ -2479,7 +2479,7 @@ var it = Yr ? (
2479
2479
  function(t, r, n) {
2480
2480
  return t.slice(n, n + r.length) === r;
2481
2481
  }
2482
- ), Ge = Kr ? String.fromCodePoint : (
2482
+ ), Fe = Yr ? String.fromCodePoint : (
2483
2483
  // IE11
2484
2484
  function() {
2485
2485
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -2491,9 +2491,9 @@ var it = Yr ? (
2491
2491
  }
2492
2492
  return n;
2493
2493
  }
2494
- ), ot = (
2494
+ ), it = (
2495
2495
  // native
2496
- en ? Object.fromEntries : (
2496
+ Kr ? Object.fromEntries : (
2497
2497
  // Ponyfill
2498
2498
  function(t) {
2499
2499
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -2503,7 +2503,7 @@ var it = Yr ? (
2503
2503
  return r;
2504
2504
  }
2505
2505
  )
2506
- ), Lt = tn ? (
2506
+ ), Mt = en ? (
2507
2507
  // Native
2508
2508
  function(t, r) {
2509
2509
  return t.codePointAt(r);
@@ -2517,7 +2517,7 @@ var it = Yr ? (
2517
2517
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2518
2518
  }
2519
2519
  }
2520
- ), un = rn ? (
2520
+ ), an = tn ? (
2521
2521
  // Native
2522
2522
  function(t) {
2523
2523
  return t.trimStart();
@@ -2525,9 +2525,9 @@ var it = Yr ? (
2525
2525
  ) : (
2526
2526
  // Ponyfill
2527
2527
  function(t) {
2528
- return t.replace(Qr, "");
2528
+ return t.replace(Jr, "");
2529
2529
  }
2530
- ), ln = nn ? (
2530
+ ), un = rn ? (
2531
2531
  // Native
2532
2532
  function(t) {
2533
2533
  return t.trimEnd();
@@ -2535,32 +2535,32 @@ var it = Yr ? (
2535
2535
  ) : (
2536
2536
  // Ponyfill
2537
2537
  function(t) {
2538
- return t.replace(qr, "");
2538
+ return t.replace(Qr, "");
2539
2539
  }
2540
2540
  );
2541
- function Rt(e, t) {
2541
+ function Lt(e, t) {
2542
2542
  return new RegExp(e, t);
2543
2543
  }
2544
- var ke;
2545
- if (Fe) {
2546
- var st = Rt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2547
- ke = function(t, r) {
2544
+ var Ge;
2545
+ if (De) {
2546
+ var ot = Lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2547
+ Ge = function(t, r) {
2548
2548
  var n;
2549
- st.lastIndex = r;
2550
- var i = st.exec(t);
2549
+ ot.lastIndex = r;
2550
+ var i = ot.exec(t);
2551
2551
  return (n = i[1]) !== null && n !== void 0 ? n : "";
2552
2552
  };
2553
2553
  } else
2554
- ke = function(t, r) {
2554
+ Ge = function(t, r) {
2555
2555
  for (var n = []; ; ) {
2556
- var i = Lt(t, r);
2557
- if (i === void 0 || $t(i) || dn(i))
2556
+ var i = Mt(t, r);
2557
+ if (i === void 0 || Rt(i) || fn(i))
2558
2558
  break;
2559
2559
  n.push(i), r += i >= 65536 ? 2 : 1;
2560
2560
  }
2561
- return Ge.apply(void 0, n);
2561
+ return Fe.apply(void 0, n);
2562
2562
  };
2563
- var hn = (
2563
+ var ln = (
2564
2564
  /** @class */
2565
2565
  function() {
2566
2566
  function e(t, r) {
@@ -2585,13 +2585,13 @@ var hn = (
2585
2585
  var s = this.clonePosition();
2586
2586
  this.bump(), i.push({
2587
2587
  type: x.pound,
2588
- location: p(s, this.clonePosition())
2588
+ location: b(s, this.clonePosition())
2589
2589
  });
2590
2590
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2591
2591
  if (n)
2592
2592
  break;
2593
- return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
2594
- } else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
2593
+ return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
2594
+ } else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
2595
2595
  var a = this.parseTag(t, r);
2596
2596
  if (a.err)
2597
2597
  return a;
@@ -2614,7 +2614,7 @@ var hn = (
2614
2614
  val: {
2615
2615
  type: x.literal,
2616
2616
  value: "<".concat(i, "/>"),
2617
- location: p(n, this.clonePosition())
2617
+ location: b(n, this.clonePosition())
2618
2618
  },
2619
2619
  err: null
2620
2620
  };
@@ -2624,25 +2624,25 @@ var hn = (
2624
2624
  return o;
2625
2625
  var a = o.val, s = this.clonePosition();
2626
2626
  if (this.bumpIf("</")) {
2627
- if (this.isEOF() || !je(this.char()))
2628
- return this.error(m.INVALID_TAG, p(s, this.clonePosition()));
2627
+ if (this.isEOF() || !ke(this.char()))
2628
+ return this.error(m.INVALID_TAG, b(s, this.clonePosition()));
2629
2629
  var h = this.clonePosition(), u = this.parseTagName();
2630
- return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, p(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2630
+ return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2631
2631
  val: {
2632
2632
  type: x.tag,
2633
2633
  value: i,
2634
2634
  children: a,
2635
- location: p(n, this.clonePosition())
2635
+ location: b(n, this.clonePosition())
2636
2636
  },
2637
2637
  err: null
2638
- } : this.error(m.INVALID_TAG, p(s, this.clonePosition())));
2638
+ } : this.error(m.INVALID_TAG, b(s, this.clonePosition())));
2639
2639
  } else
2640
- return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
2640
+ return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
2641
2641
  } else
2642
- return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
2642
+ return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
2643
2643
  }, e.prototype.parseTagName = function() {
2644
2644
  var t = this.offset();
2645
- for (this.bump(); !this.isEOF() && fn(this.char()); )
2645
+ for (this.bump(); !this.isEOF() && cn(this.char()); )
2646
2646
  this.bump();
2647
2647
  return this.message.slice(t, this.offset());
2648
2648
  }, e.prototype.parseLiteral = function(t, r) {
@@ -2664,14 +2664,14 @@ var hn = (
2664
2664
  }
2665
2665
  break;
2666
2666
  }
2667
- var h = p(n, this.clonePosition());
2667
+ var h = b(n, this.clonePosition());
2668
2668
  return {
2669
2669
  val: { type: x.literal, value: i, location: h },
2670
2670
  err: null
2671
2671
  };
2672
2672
  }, e.prototype.tryParseLeftAngleBracket = function() {
2673
2673
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2674
- !cn(this.peek() || 0)) ? (this.bump(), "<") : null;
2674
+ !hn(this.peek() || 0)) ? (this.bump(), "<") : null;
2675
2675
  }, e.prototype.tryParseQuote = function(t) {
2676
2676
  if (this.isEOF() || this.char() !== 39)
2677
2677
  return null;
@@ -2705,23 +2705,23 @@ var hn = (
2705
2705
  r.push(n);
2706
2706
  this.bump();
2707
2707
  }
2708
- return Ge.apply(void 0, r);
2708
+ return Fe.apply(void 0, r);
2709
2709
  }, e.prototype.tryParseUnquoted = function(t, r) {
2710
2710
  if (this.isEOF())
2711
2711
  return null;
2712
2712
  var n = this.char();
2713
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
2713
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
2714
2714
  }, e.prototype.parseArgument = function(t, r) {
2715
2715
  var n = this.clonePosition();
2716
2716
  if (this.bump(), this.bumpSpace(), this.isEOF())
2717
- return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2717
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2718
2718
  if (this.char() === 125)
2719
- return this.bump(), this.error(m.EMPTY_ARGUMENT, p(n, this.clonePosition()));
2719
+ return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
2720
2720
  var i = this.parseIdentifierIfPossible().value;
2721
2721
  if (!i)
2722
- return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2722
+ return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2723
2723
  if (this.bumpSpace(), this.isEOF())
2724
- return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
2724
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
2725
2725
  switch (this.char()) {
2726
2726
  case 125:
2727
2727
  return this.bump(), {
@@ -2729,25 +2729,25 @@ var hn = (
2729
2729
  type: x.argument,
2730
2730
  // value does not include the opening and closing braces.
2731
2731
  value: i,
2732
- location: p(n, this.clonePosition())
2732
+ location: b(n, this.clonePosition())
2733
2733
  },
2734
2734
  err: null
2735
2735
  };
2736
2736
  case 44:
2737
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2737
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
2738
2738
  default:
2739
- return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
2739
+ return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
2740
2740
  }
2741
2741
  }, e.prototype.parseIdentifierIfPossible = function() {
2742
- var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
2742
+ var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
2743
2743
  this.bumpTo(i);
2744
- var o = this.clonePosition(), a = p(t, o);
2744
+ var o = this.clonePosition(), a = b(t, o);
2745
2745
  return { value: n, location: a };
2746
2746
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
2747
2747
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
2748
2748
  switch (s) {
2749
2749
  case "":
2750
- return this.error(m.EXPECT_ARGUMENT_TYPE, p(a, h));
2750
+ return this.error(m.EXPECT_ARGUMENT_TYPE, b(a, h));
2751
2751
  case "number":
2752
2752
  case "date":
2753
2753
  case "time": {
@@ -2755,40 +2755,40 @@ var hn = (
2755
2755
  var u = null;
2756
2756
  if (this.bumpIf(",")) {
2757
2757
  this.bumpSpace();
2758
- var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2759
- if (f.err)
2760
- return f;
2761
- var d = ln(f.val);
2758
+ var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
2759
+ if (c.err)
2760
+ return c;
2761
+ var d = un(c.val);
2762
2762
  if (d.length === 0)
2763
- return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
2764
- var b = p(l, this.clonePosition());
2765
- u = { style: d, styleLocation: b };
2763
+ return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
2764
+ var g = b(l, this.clonePosition());
2765
+ u = { style: d, styleLocation: g };
2766
2766
  }
2767
- var v = this.tryParseArgumentClose(i);
2768
- if (v.err)
2769
- return v;
2770
- var _ = p(i, this.clonePosition());
2771
- if (u && it(u?.style, "::", 0)) {
2772
- var S = un(u.style.slice(2));
2767
+ var y = this.tryParseArgumentClose(i);
2768
+ if (y.err)
2769
+ return y;
2770
+ var _ = b(i, this.clonePosition());
2771
+ if (u && nt(u?.style, "::", 0)) {
2772
+ var T = an(u.style.slice(2));
2773
2773
  if (s === "number") {
2774
- var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
2775
- return f.err ? f : {
2776
- val: { type: x.number, value: n, location: _, style: f.val },
2774
+ var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
2775
+ return c.err ? c : {
2776
+ val: { type: x.number, value: n, location: _, style: c.val },
2777
2777
  err: null
2778
2778
  };
2779
2779
  } else {
2780
- if (S.length === 0)
2780
+ if (T.length === 0)
2781
2781
  return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
2782
- var R = S;
2783
- this.locale && (R = Zr(S, this.locale));
2782
+ var H = T;
2783
+ this.locale && (H = Wr(T, this.locale));
2784
2784
  var d = {
2785
- type: re.dateTime,
2786
- pattern: R,
2785
+ type: ee.dateTime,
2786
+ pattern: H,
2787
2787
  location: u.styleLocation,
2788
- parsedOptions: this.shouldParseSkeletons ? Gr(R) : {}
2789
- }, N = s === "date" ? x.date : x.time;
2788
+ parsedOptions: this.shouldParseSkeletons ? Fr(H) : {}
2789
+ }, L = s === "date" ? x.date : x.time;
2790
2790
  return {
2791
- val: { type: N, value: n, location: _, style: d },
2791
+ val: { type: L, value: n, location: _, style: d },
2792
2792
  err: null
2793
2793
  };
2794
2794
  }
@@ -2806,32 +2806,32 @@ var hn = (
2806
2806
  case "plural":
2807
2807
  case "selectordinal":
2808
2808
  case "select": {
2809
- var T = this.clonePosition();
2809
+ var B = this.clonePosition();
2810
2810
  if (this.bumpSpace(), !this.bumpIf(","))
2811
- return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(T, g({}, T)));
2811
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(B, v({}, B)));
2812
2812
  this.bumpSpace();
2813
- var H = this.parseIdentifierIfPossible(), I = 0;
2814
- if (s !== "select" && H.value === "offset") {
2813
+ var S = this.parseIdentifierIfPossible(), N = 0;
2814
+ if (s !== "select" && S.value === "offset") {
2815
2815
  if (!this.bumpIf(":"))
2816
- return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
2816
+ return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
2817
2817
  this.bumpSpace();
2818
- var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2819
- if (f.err)
2820
- return f;
2821
- this.bumpSpace(), H = this.parseIdentifierIfPossible(), I = f.val;
2818
+ var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2819
+ if (c.err)
2820
+ return c;
2821
+ this.bumpSpace(), S = this.parseIdentifierIfPossible(), N = c.val;
2822
2822
  }
2823
- var U = this.tryParsePluralOrSelectOptions(t, s, r, H);
2824
- if (U.err)
2825
- return U;
2826
- var v = this.tryParseArgumentClose(i);
2827
- if (v.err)
2828
- return v;
2829
- var j = p(i, this.clonePosition());
2823
+ var D = this.tryParsePluralOrSelectOptions(t, s, r, S);
2824
+ if (D.err)
2825
+ return D;
2826
+ var y = this.tryParseArgumentClose(i);
2827
+ if (y.err)
2828
+ return y;
2829
+ var j = b(i, this.clonePosition());
2830
2830
  return s === "select" ? {
2831
2831
  val: {
2832
2832
  type: x.select,
2833
2833
  value: n,
2834
- options: ot(U.val),
2834
+ options: it(D.val),
2835
2835
  location: j
2836
2836
  },
2837
2837
  err: null
@@ -2839,8 +2839,8 @@ var hn = (
2839
2839
  val: {
2840
2840
  type: x.plural,
2841
2841
  value: n,
2842
- options: ot(U.val),
2843
- offset: I,
2842
+ options: it(D.val),
2843
+ offset: N,
2844
2844
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2845
2845
  location: j
2846
2846
  },
@@ -2848,10 +2848,10 @@ var hn = (
2848
2848
  };
2849
2849
  }
2850
2850
  default:
2851
- return this.error(m.INVALID_ARGUMENT_TYPE, p(a, h));
2851
+ return this.error(m.INVALID_ARGUMENT_TYPE, b(a, h));
2852
2852
  }
2853
2853
  }, e.prototype.tryParseArgumentClose = function(t) {
2854
- return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2854
+ return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2855
2855
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2856
2856
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2857
2857
  var n = this.char();
@@ -2860,7 +2860,7 @@ var hn = (
2860
2860
  this.bump();
2861
2861
  var i = this.clonePosition();
2862
2862
  if (!this.bumpUntil("'"))
2863
- return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
2863
+ return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
2864
2864
  this.bump();
2865
2865
  break;
2866
2866
  }
@@ -2890,52 +2890,52 @@ var hn = (
2890
2890
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2891
2891
  var n = [];
2892
2892
  try {
2893
- n = jr(t);
2893
+ n = kr(t);
2894
2894
  } catch {
2895
2895
  return this.error(m.INVALID_NUMBER_SKELETON, r);
2896
2896
  }
2897
2897
  return {
2898
2898
  val: {
2899
- type: re.number,
2899
+ type: ee.number,
2900
2900
  tokens: n,
2901
2901
  location: r,
2902
- parsedOptions: this.shouldParseSkeletons ? Wr(n) : {}
2902
+ parsedOptions: this.shouldParseSkeletons ? zr(n) : {}
2903
2903
  },
2904
2904
  err: null
2905
2905
  };
2906
2906
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
2907
2907
  for (var o, a = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
2908
2908
  if (u.length === 0) {
2909
- var f = this.clonePosition();
2909
+ var c = this.clonePosition();
2910
2910
  if (r !== "select" && this.bumpIf("=")) {
2911
2911
  var d = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
2912
2912
  if (d.err)
2913
2913
  return d;
2914
- l = p(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
2914
+ l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
2915
2915
  } else
2916
2916
  break;
2917
2917
  }
2918
2918
  if (h.has(u))
2919
2919
  return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
2920
2920
  u === "other" && (a = !0), this.bumpSpace();
2921
- var b = this.clonePosition();
2921
+ var g = this.clonePosition();
2922
2922
  if (!this.bumpIf("{"))
2923
- return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
2924
- var v = this.parseMessage(t + 1, r, n);
2925
- if (v.err)
2926
- return v;
2927
- var _ = this.tryParseArgumentClose(b);
2923
+ return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
2924
+ var y = this.parseMessage(t + 1, r, n);
2925
+ if (y.err)
2926
+ return y;
2927
+ var _ = this.tryParseArgumentClose(g);
2928
2928
  if (_.err)
2929
2929
  return _;
2930
2930
  s.push([
2931
2931
  u,
2932
2932
  {
2933
- value: v.val,
2934
- location: p(b, this.clonePosition())
2933
+ value: y.val,
2934
+ location: b(g, this.clonePosition())
2935
2935
  }
2936
2936
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
2937
2937
  }
2938
- return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2938
+ return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2939
2939
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
2940
2940
  var n = 1, i = this.clonePosition();
2941
2941
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -2946,8 +2946,8 @@ var hn = (
2946
2946
  else
2947
2947
  break;
2948
2948
  }
2949
- var h = p(i, this.clonePosition());
2950
- return o ? (a *= n, sn(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2949
+ var h = b(i, this.clonePosition());
2950
+ return o ? (a *= n, on(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
2951
2951
  }, e.prototype.offset = function() {
2952
2952
  return this.position.offset;
2953
2953
  }, e.prototype.isEOF = function() {
@@ -2962,7 +2962,7 @@ var hn = (
2962
2962
  var t = this.position.offset;
2963
2963
  if (t >= this.message.length)
2964
2964
  throw Error("out of bound");
2965
- var r = Lt(this.message, t);
2965
+ var r = Mt(this.message, t);
2966
2966
  if (r === void 0)
2967
2967
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2968
2968
  return r;
@@ -2981,7 +2981,7 @@ var hn = (
2981
2981
  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);
2982
2982
  }
2983
2983
  }, e.prototype.bumpIf = function(t) {
2984
- if (it(this.message, t, this.offset())) {
2984
+ if (nt(this.message, t, this.offset())) {
2985
2985
  for (var r = 0; r < t.length; r++)
2986
2986
  this.bump();
2987
2987
  return !0;
@@ -3003,7 +3003,7 @@ var hn = (
3003
3003
  break;
3004
3004
  }
3005
3005
  }, e.prototype.bumpSpace = function() {
3006
- for (; !this.isEOF() && $t(this.char()); )
3006
+ for (; !this.isEOF() && Rt(this.char()); )
3007
3007
  this.bump();
3008
3008
  }, e.prototype.peek = function() {
3009
3009
  if (this.isEOF())
@@ -3013,46 +3013,46 @@ var hn = (
3013
3013
  }, e;
3014
3014
  }()
3015
3015
  );
3016
- function je(e) {
3016
+ function ke(e) {
3017
3017
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3018
3018
  }
3019
- function cn(e) {
3020
- return je(e) || e === 47;
3019
+ function hn(e) {
3020
+ return ke(e) || e === 47;
3021
3021
  }
3022
- function fn(e) {
3022
+ function cn(e) {
3023
3023
  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;
3024
3024
  }
3025
- function $t(e) {
3025
+ function Rt(e) {
3026
3026
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3027
3027
  }
3028
- function dn(e) {
3028
+ function fn(e) {
3029
3029
  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;
3030
3030
  }
3031
- function Ve(e) {
3031
+ function je(e) {
3032
3032
  e.forEach(function(t) {
3033
- if (delete t.location, Bt(t) || wt(t))
3033
+ if (delete t.location, At(t) || Bt(t))
3034
3034
  for (var r in t.options)
3035
- delete t.options[r].location, Ve(t.options[r].value);
3036
- else Tt(t) && Ct(t.style) || (Ht(t) || At(t)) && De(t.style) ? delete t.style.location : Pt(t) && Ve(t.children);
3035
+ delete t.options[r].location, je(t.options[r].value);
3036
+ else St(t) && Pt(t.style) || (Tt(t) || Ht(t)) && Ue(t.style) ? delete t.style.location : wt(t) && je(t.children);
3037
3037
  });
3038
3038
  }
3039
- function mn(e, t) {
3040
- t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3041
- var r = new hn(e, t).parse();
3039
+ function dn(e, t) {
3040
+ t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3041
+ var r = new ln(e, t).parse();
3042
3042
  if (r.err) {
3043
3043
  var n = SyntaxError(m[r.err.kind]);
3044
3044
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3045
3045
  }
3046
- return t?.captureLocation || Ve(r.val), r.val;
3046
+ return t?.captureLocation || je(r.val), r.val;
3047
3047
  }
3048
- var ne;
3048
+ var te;
3049
3049
  (function(e) {
3050
3050
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3051
- })(ne || (ne = {}));
3052
- var He = (
3051
+ })(te || (te = {}));
3052
+ var Te = (
3053
3053
  /** @class */
3054
3054
  function(e) {
3055
- Te(t, e);
3055
+ Se(t, e);
3056
3056
  function t(r, n, i) {
3057
3057
  var o = e.call(this, r) || this;
3058
3058
  return o.code = n, o.originalMessage = i, o;
@@ -3061,155 +3061,155 @@ var He = (
3061
3061
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3062
3062
  }, t;
3063
3063
  }(Error)
3064
- ), at = (
3064
+ ), st = (
3065
3065
  /** @class */
3066
3066
  function(e) {
3067
- Te(t, e);
3067
+ Se(t, e);
3068
3068
  function t(r, n, i, o) {
3069
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, o) || this;
3069
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
3070
3070
  }
3071
3071
  return t;
3072
- }(He)
3073
- ), pn = (
3072
+ }(Te)
3073
+ ), mn = (
3074
3074
  /** @class */
3075
3075
  function(e) {
3076
- Te(t, e);
3076
+ Se(t, e);
3077
3077
  function t(r, n, i) {
3078
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
3078
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
3079
3079
  }
3080
3080
  return t;
3081
- }(He)
3082
- ), bn = (
3081
+ }(Te)
3082
+ ), pn = (
3083
3083
  /** @class */
3084
3084
  function(e) {
3085
- Te(t, e);
3085
+ Se(t, e);
3086
3086
  function t(r, n) {
3087
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
3087
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
3088
3088
  }
3089
3089
  return t;
3090
- }(He)
3091
- ), C;
3090
+ }(Te)
3091
+ ), I;
3092
3092
  (function(e) {
3093
3093
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3094
- })(C || (C = {}));
3095
- function gn(e) {
3094
+ })(I || (I = {}));
3095
+ function bn(e) {
3096
3096
  return e.length < 2 ? e : e.reduce(function(t, r) {
3097
3097
  var n = t[t.length - 1];
3098
- return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
3098
+ return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
3099
3099
  }, []);
3100
3100
  }
3101
- function vn(e) {
3101
+ function gn(e) {
3102
3102
  return typeof e == "function";
3103
3103
  }
3104
- function ye(e, t, r, n, i, o, a) {
3105
- if (e.length === 1 && et(e[0]))
3104
+ function ve(e, t, r, n, i, o, a) {
3105
+ if (e.length === 1 && Ke(e[0]))
3106
3106
  return [
3107
3107
  {
3108
- type: C.literal,
3108
+ type: I.literal,
3109
3109
  value: e[0].value
3110
3110
  }
3111
3111
  ];
3112
3112
  for (var s = [], h = 0, u = e; h < u.length; h++) {
3113
3113
  var l = u[h];
3114
- if (et(l)) {
3114
+ if (Ke(l)) {
3115
3115
  s.push({
3116
- type: C.literal,
3116
+ type: I.literal,
3117
3117
  value: l.value
3118
3118
  });
3119
3119
  continue;
3120
3120
  }
3121
- if (Dr(l)) {
3121
+ if (Ur(l)) {
3122
3122
  typeof o == "number" && s.push({
3123
- type: C.literal,
3123
+ type: I.literal,
3124
3124
  value: r.getNumberFormat(t).format(o)
3125
3125
  });
3126
3126
  continue;
3127
3127
  }
3128
- var f = l.value;
3129
- if (!(i && f in i))
3130
- throw new bn(f, a);
3131
- var d = i[f];
3132
- if (Ur(l)) {
3128
+ var c = l.value;
3129
+ if (!(i && c in i))
3130
+ throw new pn(c, a);
3131
+ var d = i[c];
3132
+ if ($r(l)) {
3133
3133
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3134
- type: typeof d == "string" ? C.literal : C.object,
3134
+ type: typeof d == "string" ? I.literal : I.object,
3135
3135
  value: d
3136
3136
  });
3137
3137
  continue;
3138
3138
  }
3139
- if (Ht(l)) {
3140
- var b = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
3139
+ if (Tt(l)) {
3140
+ var g = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
3141
3141
  s.push({
3142
- type: C.literal,
3143
- value: r.getDateTimeFormat(t, b).format(d)
3142
+ type: I.literal,
3143
+ value: r.getDateTimeFormat(t, g).format(d)
3144
3144
  });
3145
3145
  continue;
3146
3146
  }
3147
- if (At(l)) {
3148
- var b = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
3147
+ if (Ht(l)) {
3148
+ var g = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
3149
3149
  s.push({
3150
- type: C.literal,
3151
- value: r.getDateTimeFormat(t, b).format(d)
3150
+ type: I.literal,
3151
+ value: r.getDateTimeFormat(t, g).format(d)
3152
3152
  });
3153
3153
  continue;
3154
3154
  }
3155
- if (Tt(l)) {
3156
- var b = typeof l.style == "string" ? n.number[l.style] : Ct(l.style) ? l.style.parsedOptions : void 0;
3157
- b && b.scale && (d = d * (b.scale || 1)), s.push({
3158
- type: C.literal,
3159
- value: r.getNumberFormat(t, b).format(d)
3155
+ if (St(l)) {
3156
+ var g = typeof l.style == "string" ? n.number[l.style] : Pt(l.style) ? l.style.parsedOptions : void 0;
3157
+ g && g.scale && (d = d * (g.scale || 1)), s.push({
3158
+ type: I.literal,
3159
+ value: r.getNumberFormat(t, g).format(d)
3160
3160
  });
3161
3161
  continue;
3162
3162
  }
3163
- if (Pt(l)) {
3164
- var v = l.children, _ = l.value, S = i[_];
3165
- if (!vn(S))
3166
- throw new pn(_, "function", a);
3167
- var R = ye(v, t, r, n, i, o), N = S(R.map(function(I) {
3168
- return I.value;
3163
+ if (wt(l)) {
3164
+ var y = l.children, _ = l.value, T = i[_];
3165
+ if (!gn(T))
3166
+ throw new mn(_, "function", a);
3167
+ var H = ve(y, t, r, n, i, o), L = T(H.map(function(N) {
3168
+ return N.value;
3169
3169
  }));
3170
- Array.isArray(N) || (N = [N]), s.push.apply(s, N.map(function(I) {
3170
+ Array.isArray(L) || (L = [L]), s.push.apply(s, L.map(function(N) {
3171
3171
  return {
3172
- type: typeof I == "string" ? C.literal : C.object,
3173
- value: I
3172
+ type: typeof N == "string" ? I.literal : I.object,
3173
+ value: N
3174
3174
  };
3175
3175
  }));
3176
3176
  }
3177
- if (Bt(l)) {
3178
- var T = l.options[d] || l.options.other;
3179
- if (!T)
3180
- throw new at(l.value, d, Object.keys(l.options), a);
3181
- s.push.apply(s, ye(T.value, t, r, n, i));
3177
+ if (At(l)) {
3178
+ var B = l.options[d] || l.options.other;
3179
+ if (!B)
3180
+ throw new st(l.value, d, Object.keys(l.options), a);
3181
+ s.push.apply(s, ve(B.value, t, r, n, i));
3182
3182
  continue;
3183
3183
  }
3184
- if (wt(l)) {
3185
- var T = l.options["=".concat(d)];
3186
- if (!T) {
3184
+ if (Bt(l)) {
3185
+ var B = l.options["=".concat(d)];
3186
+ if (!B) {
3187
3187
  if (!Intl.PluralRules)
3188
- throw new He(`Intl.PluralRules is not available in this environment.
3188
+ throw new Te(`Intl.PluralRules is not available in this environment.
3189
3189
  Try polyfilling it using "@formatjs/intl-pluralrules"
3190
- `, ne.MISSING_INTL_API, a);
3191
- var H = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
3192
- T = l.options[H] || l.options.other;
3190
+ `, te.MISSING_INTL_API, a);
3191
+ var S = r.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
3192
+ B = l.options[S] || l.options.other;
3193
3193
  }
3194
- if (!T)
3195
- throw new at(l.value, d, Object.keys(l.options), a);
3196
- s.push.apply(s, ye(T.value, t, r, n, i, d - (l.offset || 0)));
3194
+ if (!B)
3195
+ throw new st(l.value, d, Object.keys(l.options), a);
3196
+ s.push.apply(s, ve(B.value, t, r, n, i, d - (l.offset || 0)));
3197
3197
  continue;
3198
3198
  }
3199
3199
  }
3200
- return gn(s);
3200
+ return bn(s);
3201
3201
  }
3202
- function yn(e, t) {
3203
- return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3204
- return r[n] = g(g({}, e[n]), t[n] || {}), r;
3202
+ function vn(e, t) {
3203
+ return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3204
+ return r[n] = v(v({}, e[n]), t[n] || {}), r;
3205
3205
  }, {})) : e;
3206
3206
  }
3207
- function En(e, t) {
3207
+ function yn(e, t) {
3208
3208
  return t ? Object.keys(e).reduce(function(r, n) {
3209
- return r[n] = yn(e[n], t[n]), r;
3210
- }, g({}, e)) : e;
3209
+ return r[n] = vn(e[n], t[n]), r;
3210
+ }, v({}, e)) : e;
3211
3211
  }
3212
- function Oe(e) {
3212
+ function Ne(e) {
3213
3213
  return {
3214
3214
  create: function() {
3215
3215
  return {
@@ -3223,39 +3223,39 @@ function Oe(e) {
3223
3223
  }
3224
3224
  };
3225
3225
  }
3226
- function xn(e) {
3226
+ function En(e) {
3227
3227
  return e === void 0 && (e = {
3228
3228
  number: {},
3229
3229
  dateTime: {},
3230
3230
  pluralRules: {}
3231
3231
  }), {
3232
- getNumberFormat: Ce(function() {
3232
+ getNumberFormat: Pe(function() {
3233
3233
  for (var t, r = [], n = 0; n < arguments.length; n++)
3234
3234
  r[n] = arguments[n];
3235
- return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
3235
+ return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
3236
3236
  }, {
3237
- cache: Oe(e.number),
3238
- strategy: Ie.variadic
3237
+ cache: Ne(e.number),
3238
+ strategy: Ce.variadic
3239
3239
  }),
3240
- getDateTimeFormat: Ce(function() {
3240
+ getDateTimeFormat: Pe(function() {
3241
3241
  for (var t, r = [], n = 0; n < arguments.length; n++)
3242
3242
  r[n] = arguments[n];
3243
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
3243
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
3244
3244
  }, {
3245
- cache: Oe(e.dateTime),
3246
- strategy: Ie.variadic
3245
+ cache: Ne(e.dateTime),
3246
+ strategy: Ce.variadic
3247
3247
  }),
3248
- getPluralRules: Ce(function() {
3248
+ getPluralRules: Pe(function() {
3249
3249
  for (var t, r = [], n = 0; n < arguments.length; n++)
3250
3250
  r[n] = arguments[n];
3251
- return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
3251
+ return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
3252
3252
  }, {
3253
- cache: Oe(e.pluralRules),
3254
- strategy: Ie.variadic
3253
+ cache: Ne(e.pluralRules),
3254
+ strategy: Ce.variadic
3255
3255
  })
3256
3256
  };
3257
3257
  }
3258
- var _n = (
3258
+ var xn = (
3259
3259
  /** @class */
3260
3260
  function() {
3261
3261
  function e(t, r, n, i) {
@@ -3269,12 +3269,12 @@ var _n = (
3269
3269
  var u = o.formatToParts(h);
3270
3270
  if (u.length === 1)
3271
3271
  return u[0].value;
3272
- var l = u.reduce(function(f, d) {
3273
- return !f.length || d.type !== C.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
3272
+ var l = u.reduce(function(c, d) {
3273
+ return !c.length || d.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(d.value) : c[c.length - 1] += d.value, c;
3274
3274
  }, []);
3275
3275
  return l.length <= 1 ? l[0] || "" : l;
3276
3276
  }, this.formatToParts = function(h) {
3277
- return ye(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3277
+ return ve(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3278
3278
  }, this.resolvedOptions = function() {
3279
3279
  var h;
3280
3280
  return {
@@ -3287,13 +3287,13 @@ var _n = (
3287
3287
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3288
3288
  var a = i || {};
3289
3289
  a.formatters;
3290
- var s = Cr(a, ["formatters"]);
3291
- this.ast = e.__parse(t, g(g({}, s), { locale: this.resolvedLocale }));
3290
+ var s = Pr(a, ["formatters"]);
3291
+ this.ast = e.__parse(t, v(v({}, s), { locale: this.resolvedLocale }));
3292
3292
  } else
3293
3293
  this.ast = t;
3294
3294
  if (!Array.isArray(this.ast))
3295
3295
  throw new TypeError("A message must be provided as a String or AST.");
3296
- this.formats = En(e.formats, n), this.formatters = i && i.formatters || xn(this.formatterCache);
3296
+ this.formats = yn(e.formats, n), this.formatters = i && i.formatters || En(this.formatterCache);
3297
3297
  }
3298
3298
  return Object.defineProperty(e, "defaultLocale", {
3299
3299
  get: function() {
@@ -3306,7 +3306,7 @@ var _n = (
3306
3306
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3307
3307
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3308
3308
  }
3309
- }, e.__parse = mn, e.formats = {
3309
+ }, e.__parse = dn, e.formats = {
3310
3310
  number: {
3311
3311
  integer: {
3312
3312
  maximumFractionDigits: 0
@@ -3367,7 +3367,7 @@ var _n = (
3367
3367
  }, e;
3368
3368
  }()
3369
3369
  );
3370
- function Sn(e, t) {
3370
+ function _n(e, t) {
3371
3371
  if (t == null)
3372
3372
  return;
3373
3373
  if (t in e)
@@ -3388,92 +3388,92 @@ function Sn(e, t) {
3388
3388
  n = void 0;
3389
3389
  return n;
3390
3390
  }
3391
- const G = {}, Tn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Ut = (e, t) => {
3391
+ const G = {}, Sn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), $t = (e, t) => {
3392
3392
  if (t == null)
3393
3393
  return;
3394
3394
  if (t in G && e in G[t])
3395
3395
  return G[t][e];
3396
- const r = Ae(t);
3396
+ const r = He(t);
3397
3397
  for (let n = 0; n < r.length; n++) {
3398
- const i = r[n], o = An(i, e);
3398
+ const i = r[n], o = Hn(i, e);
3399
3399
  if (o)
3400
- return Tn(e, t, o);
3400
+ return Sn(e, t, o);
3401
3401
  }
3402
3402
  };
3403
- let Ze;
3404
- const ae = Se({});
3405
- function Hn(e) {
3406
- return Ze[e] || null;
3403
+ let We;
3404
+ const oe = _e({});
3405
+ function Tn(e) {
3406
+ return We[e] || null;
3407
3407
  }
3408
- function Dt(e) {
3409
- return e in Ze;
3408
+ function Ut(e) {
3409
+ return e in We;
3410
3410
  }
3411
- function An(e, t) {
3412
- if (!Dt(e))
3411
+ function Hn(e, t) {
3412
+ if (!Ut(e))
3413
3413
  return null;
3414
- const r = Hn(e);
3415
- return Sn(r, t);
3414
+ const r = Tn(e);
3415
+ return _n(r, t);
3416
3416
  }
3417
- function Bn(e) {
3417
+ function An(e) {
3418
3418
  if (e == null)
3419
3419
  return;
3420
- const t = Ae(e);
3420
+ const t = He(e);
3421
3421
  for (let r = 0; r < t.length; r++) {
3422
3422
  const n = t[r];
3423
- if (Dt(n))
3423
+ if (Ut(n))
3424
3424
  return n;
3425
3425
  }
3426
3426
  }
3427
- function Ft(e, ...t) {
3428
- delete G[e], ae.update((r) => (r[e] = Pr.all([r[e] || {}, ...t]), r));
3427
+ function Dt(e, ...t) {
3428
+ delete G[e], oe.update((r) => (r[e] = wr.all([r[e] || {}, ...t]), r));
3429
3429
  }
3430
- se(
3431
- [ae],
3430
+ ie(
3431
+ [oe],
3432
3432
  ([e]) => Object.keys(e)
3433
3433
  );
3434
- ae.subscribe((e) => Ze = e);
3435
- const Ee = {};
3436
- function wn(e, t) {
3437
- Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
3434
+ oe.subscribe((e) => We = e);
3435
+ const ye = {};
3436
+ function Bn(e, t) {
3437
+ ye[e].delete(t), ye[e].size === 0 && delete ye[e];
3438
3438
  }
3439
- function Gt(e) {
3440
- return Ee[e];
3439
+ function Ft(e) {
3440
+ return ye[e];
3441
3441
  }
3442
- function Pn(e) {
3443
- return Ae(e).map((t) => {
3444
- const r = Gt(t);
3442
+ function wn(e) {
3443
+ return He(e).map((t) => {
3444
+ const r = Ft(t);
3445
3445
  return [t, r ? [...r] : []];
3446
3446
  }).filter(([, t]) => t.length > 0);
3447
3447
  }
3448
- function Xe(e) {
3449
- return e == null ? !1 : Ae(e).some(
3448
+ function Ve(e) {
3449
+ return e == null ? !1 : He(e).some(
3450
3450
  (t) => {
3451
3451
  var r;
3452
- return (r = Gt(t)) == null ? void 0 : r.size;
3452
+ return (r = Ft(t)) == null ? void 0 : r.size;
3453
3453
  }
3454
3454
  );
3455
3455
  }
3456
- function Cn(e, t) {
3456
+ function Pn(e, t) {
3457
3457
  return Promise.all(
3458
- t.map((n) => (wn(e, n), n().then((i) => i.default || i)))
3459
- ).then((n) => Ft(e, ...n));
3460
- }
3461
- const le = {};
3462
- function kt(e) {
3463
- if (!Xe(e))
3464
- return e in le ? le[e] : Promise.resolve();
3465
- const t = Pn(e);
3466
- return le[e] = Promise.all(
3458
+ t.map((n) => (Bn(e, n), n().then((i) => i.default || i)))
3459
+ ).then((n) => Dt(e, ...n));
3460
+ }
3461
+ const he = {};
3462
+ function Gt(e) {
3463
+ if (!Ve(e))
3464
+ return e in he ? he[e] : Promise.resolve();
3465
+ const t = wn(e);
3466
+ return he[e] = Promise.all(
3467
3467
  t.map(
3468
- ([r, n]) => Cn(r, n)
3468
+ ([r, n]) => Pn(r, n)
3469
3469
  )
3470
3470
  ).then(() => {
3471
- if (Xe(e))
3472
- return kt(e);
3473
- delete le[e];
3474
- }), le[e];
3471
+ if (Ve(e))
3472
+ return Gt(e);
3473
+ delete he[e];
3474
+ }), he[e];
3475
3475
  }
3476
- const In = {
3476
+ const Cn = {
3477
3477
  number: {
3478
3478
  scientific: { notation: "scientific" },
3479
3479
  engineering: { notation: "engineering" },
@@ -3502,135 +3502,135 @@ const In = {
3502
3502
  timeZoneName: "short"
3503
3503
  }
3504
3504
  }
3505
- }, Nn = {
3505
+ }, In = {
3506
3506
  fallbackLocale: null,
3507
3507
  loadingDelay: 200,
3508
- formats: In,
3508
+ formats: Cn,
3509
3509
  warnOnMissingMessages: !0,
3510
3510
  handleMissingMessage: void 0,
3511
3511
  ignoreTag: !0
3512
- }, On = Nn;
3513
- function ie() {
3514
- return On;
3512
+ }, Nn = In;
3513
+ function re() {
3514
+ return Nn;
3515
3515
  }
3516
- const Me = Se(!1);
3517
- var Mn = Object.defineProperty, Ln = Object.defineProperties, Rn = Object.getOwnPropertyDescriptors, ut = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Dn = (e, t) => {
3516
+ const Oe = _e(!1);
3517
+ var On = Object.defineProperty, Mn = Object.defineProperties, Ln = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Un = (e, t) => {
3518
3518
  for (var r in t || (t = {}))
3519
- $n.call(t, r) && lt(e, r, t[r]);
3520
- if (ut)
3521
- for (var r of ut(t))
3522
- Un.call(t, r) && lt(e, r, t[r]);
3519
+ Rn.call(t, r) && ut(e, r, t[r]);
3520
+ if (at)
3521
+ for (var r of at(t))
3522
+ $n.call(t, r) && ut(e, r, t[r]);
3523
3523
  return e;
3524
- }, Fn = (e, t) => Ln(e, Rn(t));
3525
- let ze;
3526
- const xe = Se(null);
3527
- function ht(e) {
3524
+ }, Dn = (e, t) => Mn(e, Ln(t));
3525
+ let Xe;
3526
+ const Ee = _e(null);
3527
+ function lt(e) {
3528
3528
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
3529
3529
  }
3530
- function Ae(e, t = ie().fallbackLocale) {
3531
- const r = ht(e);
3532
- return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
3530
+ function He(e, t = re().fallbackLocale) {
3531
+ const r = lt(e);
3532
+ return t ? [.../* @__PURE__ */ new Set([...r, ...lt(t)])] : r;
3533
3533
  }
3534
3534
  function Z() {
3535
- return ze ?? void 0;
3535
+ return Xe ?? void 0;
3536
3536
  }
3537
- xe.subscribe((e) => {
3538
- ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3537
+ Ee.subscribe((e) => {
3538
+ Xe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
3539
3539
  });
3540
- const Gn = (e) => {
3541
- if (e && Bn(e) && Xe(e)) {
3542
- const { loadingDelay: t } = ie();
3540
+ const Fn = (e) => {
3541
+ if (e && An(e) && Ve(e)) {
3542
+ const { loadingDelay: t } = re();
3543
3543
  let r;
3544
3544
  return typeof window < "u" && Z() != null && t ? r = window.setTimeout(
3545
- () => Me.set(!0),
3545
+ () => Oe.set(!0),
3546
3546
  t
3547
- ) : Me.set(!0), kt(e).then(() => {
3548
- xe.set(e);
3547
+ ) : Oe.set(!0), Gt(e).then(() => {
3548
+ Ee.set(e);
3549
3549
  }).finally(() => {
3550
- clearTimeout(r), Me.set(!1);
3550
+ clearTimeout(r), Oe.set(!1);
3551
3551
  });
3552
3552
  }
3553
- return xe.set(e);
3554
- }, z = Fn(Dn({}, xe), {
3555
- set: Gn
3556
- }), Be = (e) => {
3553
+ return Ee.set(e);
3554
+ }, z = Dn(Un({}, Ee), {
3555
+ set: Fn
3556
+ }), Ae = (e) => {
3557
3557
  const t = /* @__PURE__ */ Object.create(null);
3558
3558
  return (n) => {
3559
3559
  const i = JSON.stringify(n);
3560
3560
  return i in t ? t[i] : t[i] = e(n);
3561
3561
  };
3562
3562
  };
3563
- var kn = Object.defineProperty, _e = Object.getOwnPropertySymbols, jt = Object.prototype.hasOwnProperty, Vt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
3563
+ var Gn = Object.defineProperty, xe = Object.getOwnPropertySymbols, kt = Object.prototype.hasOwnProperty, jt = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
3564
3564
  for (var r in t || (t = {}))
3565
- jt.call(t, r) && ct(e, r, t[r]);
3566
- if (_e)
3567
- for (var r of _e(t))
3568
- Vt.call(t, r) && ct(e, r, t[r]);
3565
+ kt.call(t, r) && ht(e, r, t[r]);
3566
+ if (xe)
3567
+ for (var r of xe(t))
3568
+ jt.call(t, r) && ht(e, r, t[r]);
3569
3569
  return e;
3570
- }, ue = (e, t) => {
3570
+ }, se = (e, t) => {
3571
3571
  var r = {};
3572
3572
  for (var n in e)
3573
- jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3574
- if (e != null && _e)
3575
- for (var n of _e(e))
3576
- t.indexOf(n) < 0 && Vt.call(e, n) && (r[n] = e[n]);
3573
+ kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
3574
+ if (e != null && xe)
3575
+ for (var n of xe(e))
3576
+ t.indexOf(n) < 0 && jt.call(e, n) && (r[n] = e[n]);
3577
3577
  return r;
3578
3578
  };
3579
- const de = (e, t) => {
3580
- const { formats: r } = ie();
3579
+ const me = (e, t) => {
3580
+ const { formats: r } = re();
3581
3581
  if (e in r && t in r[e])
3582
3582
  return r[e][t];
3583
3583
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3584
- }, jn = Be(
3584
+ }, kn = Ae(
3585
3585
  (e) => {
3586
- var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3586
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3587
3587
  if (r == null)
3588
3588
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3589
- return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
3589
+ return n && (i = me("number", n)), new Intl.NumberFormat(r, i);
3590
3590
  }
3591
- ), Vn = Be(
3591
+ ), jn = Ae(
3592
3592
  (e) => {
3593
- var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3593
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3594
3594
  if (r == null)
3595
3595
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3596
- return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
3596
+ return n ? i = me("date", n) : Object.keys(i).length === 0 && (i = me("date", "short")), new Intl.DateTimeFormat(r, i);
3597
3597
  }
3598
- ), Xn = Be(
3598
+ ), Vn = Ae(
3599
3599
  (e) => {
3600
- var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3600
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
3601
3601
  if (r == null)
3602
3602
  throw new Error(
3603
3603
  '[svelte-i18n] A "locale" must be set to format time values'
3604
3604
  );
3605
- return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
3605
+ return n ? i = me("time", n) : Object.keys(i).length === 0 && (i = me("time", "short")), new Intl.DateTimeFormat(r, i);
3606
3606
  }
3607
- ), zn = (e = {}) => {
3607
+ ), Xn = (e = {}) => {
3608
3608
  var t = e, {
3609
3609
  locale: r = Z()
3610
- } = t, n = ue(t, [
3610
+ } = t, n = se(t, [
3611
3611
  "locale"
3612
3612
  ]);
3613
- return jn(Je({ locale: r }, n));
3614
- }, Wn = (e = {}) => {
3613
+ return kn(Ze({ locale: r }, n));
3614
+ }, zn = (e = {}) => {
3615
3615
  var t = e, {
3616
3616
  locale: r = Z()
3617
- } = t, n = ue(t, [
3617
+ } = t, n = se(t, [
3618
3618
  "locale"
3619
3619
  ]);
3620
- return Vn(Je({ locale: r }, n));
3621
- }, Zn = (e = {}) => {
3620
+ return jn(Ze({ locale: r }, n));
3621
+ }, Wn = (e = {}) => {
3622
3622
  var t = e, {
3623
3623
  locale: r = Z()
3624
- } = t, n = ue(t, [
3624
+ } = t, n = se(t, [
3625
3625
  "locale"
3626
3626
  ]);
3627
- return Xn(Je({ locale: r }, n));
3628
- }, Jn = Be(
3627
+ return Vn(Ze({ locale: r }, n));
3628
+ }, Zn = Ae(
3629
3629
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3630
- (e, t = Z()) => new _n(e, t, ie().formats, {
3631
- ignoreTag: ie().ignoreTag
3630
+ (e, t = Z()) => new xn(e, t, re().formats, {
3631
+ ignoreTag: re().ignoreTag
3632
3632
  })
3633
- ), Qn = (e, t = {}) => {
3633
+ ), Jn = (e, t = {}) => {
3634
3634
  var r, n, i, o;
3635
3635
  let a = t;
3636
3636
  typeof e == "object" && (a = e, e = a.id);
@@ -3643,39 +3643,39 @@ const de = (e, t) => {
3643
3643
  throw new Error(
3644
3644
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3645
3645
  );
3646
- let l = Ut(e, h);
3646
+ let l = $t(e, h);
3647
3647
  if (!l)
3648
- l = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3648
+ l = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3649
3649
  else if (typeof l != "string")
3650
3650
  return console.warn(
3651
3651
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3652
3652
  ), l;
3653
3653
  if (!s)
3654
3654
  return l;
3655
- let f = l;
3655
+ let c = l;
3656
3656
  try {
3657
- f = Jn(l, h).format(s);
3657
+ c = Zn(l, h).format(s);
3658
3658
  } catch (d) {
3659
3659
  d instanceof Error && console.warn(
3660
3660
  `[svelte-i18n] Message "${e}" has syntax error:`,
3661
3661
  d.message
3662
3662
  );
3663
3663
  }
3664
- return f;
3665
- }, qn = (e, t) => Zn(t).format(e), Yn = (e, t) => Wn(t).format(e), Kn = (e, t) => zn(t).format(e), ei = (e, t = Z()) => Ut(e, t), ti = se([z, ae], () => Qn);
3666
- se([z], () => qn);
3667
- se([z], () => Yn);
3668
- se([z], () => Kn);
3669
- se([z, ae], () => ei);
3670
- function ri({ withLocale: e, translations: t }) {
3664
+ return c;
3665
+ }, Qn = (e, t) => Wn(t).format(e), qn = (e, t) => zn(t).format(e), Yn = (e, t) => Xn(t).format(e), Kn = (e, t = Z()) => $t(e, t), ei = ie([z, oe], () => Jn);
3666
+ ie([z], () => Qn);
3667
+ ie([z], () => qn);
3668
+ ie([z], () => Yn);
3669
+ ie([z, oe], () => Kn);
3670
+ function ti({ withLocale: e, translations: t }) {
3671
3671
  z.subscribe((r) => {
3672
- r == null && (ae.set(t), z.set(e));
3672
+ r == null && (oe.set(t), z.set(e));
3673
3673
  });
3674
3674
  }
3675
- function ft(e, t) {
3676
- Ft(e, t);
3675
+ function ct(e, t) {
3676
+ Dt(e, t);
3677
3677
  }
3678
- const dt = {
3678
+ const ft = {
3679
3679
  en: {
3680
3680
  title: "Please enter the verification code you received on your number",
3681
3681
  errorTitle: "Your code was invalid, you can resend the code and try again",
@@ -3782,17 +3782,40 @@ const dt = {
3782
3782
  loginSMSHint: "A new verification code has been sent to your phone number"
3783
3783
  }
3784
3784
  };
3785
- function ni(e) {
3786
- Wt(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{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}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
3785
+ function ri(e, t) {
3786
+ if (e) {
3787
+ const r = document.createElement("style");
3788
+ r.innerHTML = t, e.appendChild(r);
3789
+ }
3787
3790
  }
3788
- function ii(e) {
3791
+ function ni(e, t) {
3792
+ const r = new URL(t);
3793
+ fetch(r.href).then((n) => n.text()).then((n) => {
3794
+ const i = document.createElement("style");
3795
+ i.innerHTML = n, e && e.appendChild(i);
3796
+ }).catch((n) => {
3797
+ console.error("There was an error while trying to load client styling from URL", n);
3798
+ });
3799
+ }
3800
+ function ii(e, t, r) {
3801
+ if (window.emMessageBus) {
3802
+ const n = document.createElement("style");
3803
+ window.emMessageBus.subscribe(t, (i) => {
3804
+ n.innerHTML = i, e && e.appendChild(n);
3805
+ });
3806
+ }
3807
+ }
3808
+ function oi(e) {
3809
+ zt(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{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}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
3810
+ }
3811
+ function si(e) {
3789
3812
  let t = (
3790
3813
  /*$_*/
3791
3814
  e[5]("errorTitle") + ""
3792
3815
  ), r;
3793
3816
  return {
3794
3817
  c() {
3795
- r = L(t);
3818
+ r = M(t);
3796
3819
  },
3797
3820
  m(n, i) {
3798
3821
  W(n, r, i);
@@ -3807,14 +3830,14 @@ function ii(e) {
3807
3830
  }
3808
3831
  };
3809
3832
  }
3810
- function oi(e) {
3833
+ function ai(e) {
3811
3834
  let t = (
3812
3835
  /*$_*/
3813
3836
  e[5]("title") + ""
3814
3837
  ), r;
3815
3838
  return {
3816
3839
  c() {
3817
- r = L(t);
3840
+ r = M(t);
3818
3841
  },
3819
3842
  m(n, i) {
3820
3843
  W(n, r, i);
@@ -3829,14 +3852,14 @@ function oi(e) {
3829
3852
  }
3830
3853
  };
3831
3854
  }
3832
- function mt(e) {
3855
+ function dt(e) {
3833
3856
  let t, r = (
3834
3857
  /*$_*/
3835
3858
  e[5]("smsCodeError") + ""
3836
3859
  ), n;
3837
3860
  return {
3838
3861
  c() {
3839
- t = M("p"), n = L(r), A(t, "class", "InvalidInput");
3862
+ t = O("p"), n = M(r), A(t, "class", "InvalidInput");
3840
3863
  },
3841
3864
  m(i, o) {
3842
3865
  W(i, t, o), E(t, n);
@@ -3851,14 +3874,14 @@ function mt(e) {
3851
3874
  }
3852
3875
  };
3853
3876
  }
3854
- function pt(e) {
3877
+ function mt(e) {
3855
3878
  let t, r = (
3856
3879
  /*$_*/
3857
3880
  e[5]("resendMessage") + ""
3858
3881
  ), n;
3859
3882
  return {
3860
3883
  c() {
3861
- t = M("p"), n = L(r), A(t, "class", "SmsVerificationResendMessage");
3884
+ t = O("p"), n = M(r), A(t, "class", "SmsVerificationResendMessage");
3862
3885
  },
3863
3886
  m(i, o) {
3864
3887
  W(i, t, o), E(t, n);
@@ -3873,17 +3896,17 @@ function pt(e) {
3873
3896
  }
3874
3897
  };
3875
3898
  }
3876
- function bt(e) {
3899
+ function pt(e) {
3877
3900
  let t, r, n = (
3878
3901
  /*secondsLeft*/
3879
3902
  e[4] < 10 ? "0" : ""
3880
3903
  ), i, o, a;
3881
3904
  return {
3882
3905
  c() {
3883
- t = M("span"), r = L("(0:"), i = L(n), o = L(
3906
+ t = O("span"), r = M("(0:"), i = M(n), o = M(
3884
3907
  /*secondsLeft*/
3885
3908
  e[4]
3886
- ), a = L(")"), A(t, "class", "SmsVerificationResendTimer");
3909
+ ), a = M(")"), A(t, "class", "SmsVerificationResendTimer");
3887
3910
  },
3888
3911
  m(s, h) {
3889
3912
  W(s, t, h), E(t, r), E(t, i), E(t, o), E(t, a);
@@ -3903,125 +3926,125 @@ function bt(e) {
3903
3926
  }
3904
3927
  };
3905
3928
  }
3906
- function si(e) {
3929
+ function ui(e) {
3907
3930
  let t, r, n, i, o, a = (
3908
3931
  /*$_*/
3909
3932
  e[5]("code") + ""
3910
- ), s, h, u, l, f, d, b, v, _, S, R = (
3933
+ ), s, h, u, l, c, d, g, y, _, T, H = (
3911
3934
  /*$_*/
3912
3935
  e[5]("activate") + ""
3913
- ), N, T, H, I = (
3936
+ ), L, B, S, N = (
3914
3937
  /*$_*/
3915
3938
  e[5]("resend") + ""
3916
- ), U, j, J, me;
3917
- function pe(c, y) {
3939
+ ), D, j, ae, ue;
3940
+ function le(p, C) {
3918
3941
  return (
3919
3942
  /*isSmsValid*/
3920
- c[2] ? oi : ii
3943
+ p[2] ? ai : si
3921
3944
  );
3922
3945
  }
3923
- let V = pe(e), O = V(e), B = !/*isSmsValid*/
3924
- e[2] && mt(e), w = (
3946
+ let V = le(e), R = V(e), w = !/*isSmsValid*/
3947
+ e[2] && dt(e), P = (
3925
3948
  /*timer*/
3926
- e[3] && pt(e)
3927
- ), P = (
3949
+ e[3] && mt(e)
3950
+ ), f = (
3928
3951
  /*timer*/
3929
- e[3] && bt(e)
3952
+ e[3] && pt(e)
3930
3953
  );
3931
3954
  return {
3932
3955
  c() {
3933
- t = M("div"), r = M("h3"), O.c(), n = X(), i = M("div"), o = M("label"), s = L(a), h = L(":"), u = M("span"), u.textContent = "*", l = X(), f = M("input"), d = X(), B && B.c(), v = X(), w && w.c(), _ = X(), S = M("button"), N = L(R), T = X(), H = M("button"), U = L(I), j = X(), P && P.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(f, "type", "text"), A(f, "id", "SmsCode"), A(f, "inputmode", "numeric"), A(f, "pattern", "[0-9]*"), A(f, "maxlength", "6"), A(i, "class", b = "Field SmsVerificationField " + (/*isSmsValid*/
3934
- e[2] ? "" : "InvalidField")), A(S, "class", "Button SmsVerificationValidate"), A(H, "class", "Button SmsVerificationResend"), H.disabled = /*timer*/
3956
+ t = O("div"), r = O("h3"), R.c(), n = X(), i = O("div"), o = O("label"), s = M(a), h = M(":"), u = O("span"), u.textContent = "*", l = X(), c = O("input"), d = X(), w && w.c(), y = X(), P && P.c(), _ = X(), T = O("button"), L = M(H), B = X(), S = O("button"), D = M(N), j = X(), f && f.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(c, "type", "text"), A(c, "id", "SmsCode"), A(c, "inputmode", "numeric"), A(c, "pattern", "[0-9]*"), A(c, "maxlength", "6"), A(i, "class", g = "Field SmsVerificationField " + (/*isSmsValid*/
3957
+ e[2] ? "" : "InvalidField")), A(T, "class", "Button SmsVerificationValidate"), A(S, "class", "Button SmsVerificationResend"), S.disabled = /*timer*/
3935
3958
  e[3], A(t, "class", "Container SmsVerificationContainer");
3936
3959
  },
3937
- m(c, y) {
3938
- W(c, t, y), E(t, r), O.m(r, null), E(t, n), E(t, i), E(i, o), E(o, s), E(o, h), E(o, u), E(i, l), E(i, f), qe(
3939
- f,
3960
+ m(p, C) {
3961
+ W(p, t, C), E(t, r), R.m(r, null), E(t, n), E(t, i), E(i, o), E(o, s), E(o, h), E(o, u), E(i, l), E(i, c), Qe(
3962
+ c,
3940
3963
  /*smsCode*/
3941
3964
  e[1]
3942
- ), E(i, d), B && B.m(i, null), E(t, v), w && w.m(t, null), E(t, _), E(t, S), E(S, N), E(t, T), E(t, H), E(H, U), E(H, j), P && P.m(H, null), e[19](t), J || (me = [
3943
- be(
3944
- f,
3965
+ ), E(i, d), w && w.m(i, null), E(t, y), P && P.m(t, null), E(t, _), E(t, T), E(T, L), E(t, B), E(t, S), E(S, D), E(S, j), f && f.m(S, null), e[20](t), ae || (ue = [
3966
+ pe(
3967
+ c,
3945
3968
  "input",
3946
3969
  /*input_input_handler*/
3947
- e[17]
3970
+ e[18]
3948
3971
  ),
3949
- be(
3950
- f,
3972
+ pe(
3973
+ c,
3951
3974
  "keydown",
3952
3975
  /*keydown_handler*/
3953
- e[18]
3976
+ e[19]
3954
3977
  ),
3955
- be(
3956
- S,
3978
+ pe(
3979
+ T,
3957
3980
  "click",
3958
3981
  /*activateUser*/
3959
3982
  e[6]
3960
3983
  ),
3961
- be(
3962
- H,
3984
+ pe(
3985
+ S,
3963
3986
  "click",
3964
3987
  /*resendCode*/
3965
3988
  e[7]
3966
3989
  )
3967
- ], J = !0);
3990
+ ], ae = !0);
3968
3991
  },
3969
- p(c, [y]) {
3970
- V === (V = pe(c)) && O ? O.p(c, y) : (O.d(1), O = V(c), O && (O.c(), O.m(r, null))), y & /*$_*/
3992
+ p(p, [C]) {
3993
+ V === (V = le(p)) && R ? R.p(p, C) : (R.d(1), R = V(p), R && (R.c(), R.m(r, null))), C & /*$_*/
3971
3994
  32 && a !== (a = /*$_*/
3972
- c[5]("code") + "") && F(s, a), y & /*smsCode*/
3973
- 2 && f.value !== /*smsCode*/
3974
- c[1] && qe(
3975
- f,
3995
+ p[5]("code") + "") && F(s, a), C & /*smsCode*/
3996
+ 2 && c.value !== /*smsCode*/
3997
+ p[1] && Qe(
3998
+ c,
3976
3999
  /*smsCode*/
3977
- c[1]
4000
+ p[1]
3978
4001
  ), /*isSmsValid*/
3979
- c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B = mt(c), B.c(), B.m(i, null)), y & /*isSmsValid*/
3980
- 4 && b !== (b = "Field SmsVerificationField " + (/*isSmsValid*/
3981
- c[2] ? "" : "InvalidField")) && A(i, "class", b), /*timer*/
3982
- c[3] ? w ? w.p(c, y) : (w = pt(c), w.c(), w.m(t, _)) : w && (w.d(1), w = null), y & /*$_*/
3983
- 32 && R !== (R = /*$_*/
3984
- c[5]("activate") + "") && F(N, R), y & /*$_*/
3985
- 32 && I !== (I = /*$_*/
3986
- c[5]("resend") + "") && F(U, I), /*timer*/
3987
- c[3] ? P ? P.p(c, y) : (P = bt(c), P.c(), P.m(H, null)) : P && (P.d(1), P = null), y & /*timer*/
3988
- 8 && (H.disabled = /*timer*/
3989
- c[3]);
4002
+ p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w = dt(p), w.c(), w.m(i, null)), C & /*isSmsValid*/
4003
+ 4 && g !== (g = "Field SmsVerificationField " + (/*isSmsValid*/
4004
+ p[2] ? "" : "InvalidField")) && A(i, "class", g), /*timer*/
4005
+ p[3] ? P ? P.p(p, C) : (P = mt(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), C & /*$_*/
4006
+ 32 && H !== (H = /*$_*/
4007
+ p[5]("activate") + "") && F(L, H), C & /*$_*/
4008
+ 32 && N !== (N = /*$_*/
4009
+ p[5]("resend") + "") && F(D, N), /*timer*/
4010
+ p[3] ? f ? f.p(p, C) : (f = pt(p), f.c(), f.m(S, null)) : f && (f.d(1), f = null), C & /*timer*/
4011
+ 8 && (S.disabled = /*timer*/
4012
+ p[3]);
3990
4013
  },
3991
- i: $,
3992
- o: $,
3993
- d(c) {
3994
- c && k(t), O.d(), B && B.d(), w && w.d(), P && P.d(), e[19](null), J = !1, oe(me);
4014
+ i: U,
4015
+ o: U,
4016
+ d(p) {
4017
+ p && k(t), R.d(), w && w.d(), P && P.d(), f && f.d(), e[20](null), ae = !1, ne(ue);
3995
4018
  }
3996
4019
  };
3997
4020
  }
3998
- function ai(e, t, r) {
4021
+ function li(e, t, r) {
3999
4022
  let n;
4000
- zt(e, ti, (c) => r(5, n = c));
4001
- let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: a = "" } = t, { smstemplate: s = "Please use this code {0} to activate your accout" } = t, { number: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, d, b = !0, v = !1, _, S, R = +localStorage.getItem("smsTimer") || 0, N = Date.now() / 1e3 - R, T = 60 - Math.floor(N);
4002
- const H = { numeric: /^[0-9]{0,6}$/ };
4003
- ri({ withLocale: "en", translations: {} });
4004
- const I = () => {
4005
- fetch(f).then((y) => y.json()).then((y) => {
4006
- Object.keys(y).forEach((Q) => {
4007
- ft(Q, y[Q]);
4023
+ Xt(e, ei, (f) => r(5, n = f));
4024
+ let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: a = "" } = t, { smstemplate: s = "Please use this code {0} to activate your accout" } = t, { number: h = "" } = t, { mbsource: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: d = "" } = t, g, y = !0, _ = !1, T, H, L = +localStorage.getItem("smsTimer") || 0, B = Date.now() / 1e3 - L, S = 60 - Math.floor(B);
4025
+ const N = { numeric: /^[0-9]{0,6}$/ };
4026
+ ti({ withLocale: "en", translations: {} });
4027
+ const D = () => {
4028
+ fetch(d).then((p) => p.json()).then((p) => {
4029
+ Object.keys(p).forEach((C) => {
4030
+ ct(C, p[C]);
4008
4031
  });
4009
- }).catch((y) => {
4010
- console.log(y);
4032
+ }).catch((p) => {
4033
+ console.log(p);
4011
4034
  });
4012
4035
  };
4013
- Object.keys(dt).forEach((c) => {
4014
- ft(c, dt[c]);
4036
+ Object.keys(ft).forEach((f) => {
4037
+ ct(f, ft[f]);
4015
4038
  });
4016
- const U = async () => {
4039
+ const j = async () => {
4017
4040
  try {
4018
- if ((await fetch(`${i}/v1/player/${a}/activateSMS?tokenId=${o}&validationCode=${d}`, {
4041
+ if ((await fetch(`${i}/v1/player/${a}/activateSMS?tokenId=${o}&validationCode=${g}`, {
4019
4042
  headers: {
4020
4043
  "Content-Type": "application/json",
4021
4044
  accept: "application/json"
4022
4045
  }
4023
4046
  })).ok)
4024
- r(2, b = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
4047
+ r(2, y = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
4025
4048
  else
4026
4049
  throw window.postMessage(
4027
4050
  {
@@ -4032,14 +4055,14 @@ function ai(e, t, r) {
4032
4055
  }
4033
4056
  },
4034
4057
  window.location.href
4035
- ), r(2, b = !1), new Error("Could not activate user");
4036
- } catch (c) {
4037
- console.log(c);
4058
+ ), r(2, y = !1), new Error("Could not activate user");
4059
+ } catch (f) {
4060
+ console.log(f);
4038
4061
  }
4039
- }, j = async () => {
4040
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), V();
4062
+ }, ae = async () => {
4063
+ localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), le();
4041
4064
  try {
4042
- const c = await fetch(`${i}/v1/player/sms/token`, {
4065
+ const f = await fetch(`${i}/v1/player/sms/token`, {
4043
4066
  method: "POST",
4044
4067
  headers: {
4045
4068
  "Content-Type": "application/json",
@@ -4050,77 +4073,62 @@ function ai(e, t, r) {
4050
4073
  messageTemplate: s,
4051
4074
  destination: h
4052
4075
  })
4053
- }), y = await c.json();
4054
- if (c.ok)
4055
- r(9, o = y.id), v = !1, J();
4076
+ }), p = await f.json();
4077
+ if (f.ok)
4078
+ r(9, o = p.id), _ = !1, ue();
4056
4079
  else
4057
- throw v = !0, new Error("Failed to fetch");
4058
- } catch (c) {
4059
- v = !0, console.error(c);
4080
+ throw _ = !0, new Error("Failed to fetch");
4081
+ } catch (f) {
4082
+ _ = !0, console.error(f);
4060
4083
  }
4061
- }, J = () => {
4062
- T > 0 ? r(4, T--, T) : (clearInterval(_), r(3, _ = !1), r(4, T = 60));
4063
- }, me = () => {
4064
- let c = document.createElement("style");
4065
- c.innerHTML = u, S.appendChild(c);
4066
- }, pe = () => {
4067
- let c = new URL(l), y = document.createElement("style");
4068
- fetch(c.href).then((Q) => Q.text()).then((Q) => {
4069
- y.innerHTML = Q, setTimeout(
4070
- () => {
4071
- S.appendChild(y);
4072
- },
4073
- 1
4074
- ), setTimeout(
4075
- () => {
4076
- },
4077
- 500
4078
- );
4079
- });
4080
- }, V = () => {
4081
- N < 60 && r(3, _ = setInterval(
4084
+ }, ue = () => {
4085
+ S > 0 ? r(4, S--, S) : (clearInterval(T), r(3, T = !1), r(4, S = 60));
4086
+ }, le = () => {
4087
+ B < 60 && r(3, T = setInterval(
4082
4088
  () => {
4083
- J();
4089
+ ue();
4084
4090
  },
4085
4091
  1e3
4086
4092
  ));
4087
- }, O = (c) => {
4088
- !H.numeric.test(c.key) && c.keyCode !== 8 && c.keyCode !== 9 && c.keyCode !== 46 && c.preventDefault();
4093
+ }, V = (f) => {
4094
+ !N.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
4089
4095
  };
4090
- Kt(() => {
4096
+ Yt(() => {
4091
4097
  if (!a || !h) {
4092
- let c = JSON.parse(localStorage.getItem("playerData"));
4093
- r(10, a = c.playerid), r(11, h = c.number);
4098
+ let f = JSON.parse(localStorage.getItem("playerData"));
4099
+ r(10, a = f.playerid), r(11, h = f.number);
4094
4100
  }
4095
- V();
4101
+ return le(), () => {
4102
+ };
4096
4103
  });
4097
- function B() {
4098
- d = this.value, r(1, d);
4104
+ function R() {
4105
+ g = this.value, r(1, g);
4099
4106
  }
4100
- const w = (c) => O(c);
4101
- function P(c) {
4102
- Le[c ? "unshift" : "push"](() => {
4103
- S = c, r(0, S);
4107
+ const w = (f) => V(f);
4108
+ function P(f) {
4109
+ Me[f ? "unshift" : "push"](() => {
4110
+ H = f, r(0, H);
4104
4111
  });
4105
4112
  }
4106
- return e.$$set = (c) => {
4107
- "endpoint" in c && r(12, i = c.endpoint), "tokenid" in c && r(9, o = c.tokenid), "playerid" in c && r(10, a = c.playerid), "smstemplate" in c && r(13, s = c.smstemplate), "number" in c && r(11, h = c.number), "clientstyling" in c && r(14, u = c.clientstyling), "clientstylingurl" in c && r(15, l = c.clientstylingurl), "translationurl" in c && r(16, f = c.translationurl);
4113
+ return e.$$set = (f) => {
4114
+ "endpoint" in f && r(12, i = f.endpoint), "tokenid" in f && r(9, o = f.tokenid), "playerid" in f && r(10, a = f.playerid), "smstemplate" in f && r(13, s = f.smstemplate), "number" in f && r(11, h = f.number), "mbsource" in f && r(14, u = f.mbsource), "clientstyling" in f && r(15, l = f.clientstyling), "clientstylingurl" in f && r(16, c = f.clientstylingurl), "translationurl" in f && r(17, d = f.translationurl);
4108
4115
  }, e.$$.update = () => {
4109
4116
  e.$$.dirty & /*tokenid, playerid, endpoint*/
4110
4117
  5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
4111
- 16385 && u && S && me(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4112
- 32769 && l && S && pe(), e.$$.dirty & /*translationurl*/
4113
- 65536 && f && I();
4118
+ 32769 && l && H && ri(H, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4119
+ 65537 && c && H && ni(H, c), e.$$.dirty & /*mbsource, customStylingContainer*/
4120
+ 16385 && u && H && ii(H, `${u}.Style`), e.$$.dirty & /*translationurl*/
4121
+ 131072 && d && D();
4114
4122
  }, [
4115
- S,
4116
- d,
4117
- b,
4118
- _,
4123
+ H,
4124
+ g,
4125
+ y,
4119
4126
  T,
4127
+ S,
4120
4128
  n,
4121
- U,
4122
4129
  j,
4123
- O,
4130
+ ae,
4131
+ V,
4124
4132
  o,
4125
4133
  a,
4126
4134
  h,
@@ -4128,83 +4136,91 @@ function ai(e, t, r) {
4128
4136
  s,
4129
4137
  u,
4130
4138
  l,
4131
- f,
4132
- B,
4139
+ c,
4140
+ d,
4141
+ R,
4133
4142
  w,
4134
4143
  P
4135
4144
  ];
4136
4145
  }
4137
- class ui extends cr {
4146
+ class hi extends hr {
4138
4147
  constructor(t) {
4139
- super(), lr(
4148
+ super(), ur(
4140
4149
  this,
4141
4150
  t,
4142
- ai,
4143
- si,
4144
- vt,
4151
+ li,
4152
+ ui,
4153
+ gt,
4145
4154
  {
4146
4155
  endpoint: 12,
4147
4156
  tokenid: 9,
4148
4157
  playerid: 10,
4149
4158
  smstemplate: 13,
4150
4159
  number: 11,
4151
- clientstyling: 14,
4152
- clientstylingurl: 15,
4153
- translationurl: 16
4160
+ mbsource: 14,
4161
+ clientstyling: 15,
4162
+ clientstylingurl: 16,
4163
+ translationurl: 17
4154
4164
  },
4155
- ni
4165
+ oi
4156
4166
  );
4157
4167
  }
4158
4168
  get endpoint() {
4159
4169
  return this.$$.ctx[12];
4160
4170
  }
4161
4171
  set endpoint(t) {
4162
- this.$$set({ endpoint: t }), D();
4172
+ this.$$set({ endpoint: t }), $();
4163
4173
  }
4164
4174
  get tokenid() {
4165
4175
  return this.$$.ctx[9];
4166
4176
  }
4167
4177
  set tokenid(t) {
4168
- this.$$set({ tokenid: t }), D();
4178
+ this.$$set({ tokenid: t }), $();
4169
4179
  }
4170
4180
  get playerid() {
4171
4181
  return this.$$.ctx[10];
4172
4182
  }
4173
4183
  set playerid(t) {
4174
- this.$$set({ playerid: t }), D();
4184
+ this.$$set({ playerid: t }), $();
4175
4185
  }
4176
4186
  get smstemplate() {
4177
4187
  return this.$$.ctx[13];
4178
4188
  }
4179
4189
  set smstemplate(t) {
4180
- this.$$set({ smstemplate: t }), D();
4190
+ this.$$set({ smstemplate: t }), $();
4181
4191
  }
4182
4192
  get number() {
4183
4193
  return this.$$.ctx[11];
4184
4194
  }
4185
4195
  set number(t) {
4186
- this.$$set({ number: t }), D();
4196
+ this.$$set({ number: t }), $();
4187
4197
  }
4188
- get clientstyling() {
4198
+ get mbsource() {
4189
4199
  return this.$$.ctx[14];
4190
4200
  }
4201
+ set mbsource(t) {
4202
+ this.$$set({ mbsource: t }), $();
4203
+ }
4204
+ get clientstyling() {
4205
+ return this.$$.ctx[15];
4206
+ }
4191
4207
  set clientstyling(t) {
4192
- this.$$set({ clientstyling: t }), D();
4208
+ this.$$set({ clientstyling: t }), $();
4193
4209
  }
4194
4210
  get clientstylingurl() {
4195
- return this.$$.ctx[15];
4211
+ return this.$$.ctx[16];
4196
4212
  }
4197
4213
  set clientstylingurl(t) {
4198
- this.$$set({ clientstylingurl: t }), D();
4214
+ this.$$set({ clientstylingurl: t }), $();
4199
4215
  }
4200
4216
  get translationurl() {
4201
- return this.$$.ctx[16];
4217
+ return this.$$.ctx[17];
4202
4218
  }
4203
4219
  set translationurl(t) {
4204
- this.$$set({ translationurl: t }), D();
4220
+ this.$$set({ translationurl: t }), $();
4205
4221
  }
4206
4222
  }
4207
- hr(ui, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4223
+ lr(hi, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4208
4224
  export {
4209
- ui as G
4225
+ hi as G
4210
4226
  };