@everymatrix/player-reality-check 1.55.0 → 1.56.2

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,47 +1,49 @@
1
- function M() {
1
+ import "../stencil/ui-skeleton-C5gPr5Xv.js";
2
+ function N() {
2
3
  }
3
- function Rt(e) {
4
+ function Nt(e) {
4
5
  return e();
5
6
  }
6
- function rt() {
7
+ function lt() {
7
8
  return /* @__PURE__ */ Object.create(null);
8
9
  }
9
- function re(e) {
10
- e.forEach(Rt);
10
+ function ue(e) {
11
+ e.forEach(Nt);
11
12
  }
12
- function Qe(e) {
13
+ function it(e) {
13
14
  return typeof e == "function";
14
15
  }
15
- function Mt(e, t) {
16
+ function $t(e, t) {
16
17
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
18
  }
18
19
  function _r(e) {
19
20
  return Object.keys(e).length === 0;
20
21
  }
21
- function Ot(e, ...t) {
22
+ function Ut(e, ...t) {
22
23
  if (e == null) {
23
24
  for (const n of t)
24
25
  n(void 0);
25
- return M;
26
+ return N;
26
27
  }
27
28
  const r = e.subscribe(...t);
28
29
  return r.unsubscribe ? () => r.unsubscribe() : r;
29
30
  }
30
- function xr(e, t, r) {
31
- e.$$.on_destroy.push(Ot(t, r));
31
+ function Er(e, t, r) {
32
+ e.$$.on_destroy.push(Ut(t, r));
32
33
  }
33
- function w(e, t) {
34
+ function b(e, t) {
34
35
  e.appendChild(t);
35
36
  }
36
- function Er(e, t, r) {
37
- const n = Sr(e);
37
+ function Sr(e, t, r) {
38
+ const n = wr(e);
38
39
  if (!n.getElementById(t)) {
39
- const i = B("style");
40
- i.id = t, i.textContent = r, wr(n, i);
40
+ const i = T("style");
41
+ i.id = t, i.textContent = r, Tr(n, i);
41
42
  }
42
43
  }
43
- function Sr(e) {
44
- if (!e) return document;
44
+ function wr(e) {
45
+ if (!e)
46
+ return document;
45
47
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
46
48
  return t && /** @type {ShadowRoot} */
47
49
  t.host ? (
@@ -49,41 +51,45 @@ function Sr(e) {
49
51
  t
50
52
  ) : e.ownerDocument;
51
53
  }
52
- function wr(e, t) {
53
- return w(
54
+ function Tr(e, t) {
55
+ return b(
54
56
  /** @type {Document} */
55
57
  e.head || e,
56
58
  t
57
59
  ), t.sheet;
58
60
  }
59
- function k(e, t, r) {
61
+ function D(e, t, r) {
60
62
  e.insertBefore(t, r || null);
61
63
  }
62
- function O(e) {
64
+ function $(e) {
63
65
  e.parentNode && e.parentNode.removeChild(e);
64
66
  }
65
- function Tr(e, t) {
67
+ function Dt(e, t) {
66
68
  for (let r = 0; r < e.length; r += 1)
67
69
  e[r] && e[r].d(t);
68
70
  }
69
- function B(e) {
71
+ function T(e) {
70
72
  return document.createElement(e);
71
73
  }
72
- function z(e) {
74
+ function J(e) {
73
75
  return document.createElementNS("http://www.w3.org/2000/svg", e);
74
76
  }
75
- function I(e) {
77
+ function z(e) {
76
78
  return document.createTextNode(e);
77
79
  }
78
- function D() {
79
- return I(" ");
80
+ function U() {
81
+ return z(" ");
80
82
  }
81
- function ge(e, t, r, n) {
83
+ function Te(e, t, r, n) {
82
84
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
83
85
  }
84
- function H(e, t, r) {
86
+ function w(e, t, r) {
85
87
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
86
88
  }
89
+ function A(e, t, r) {
90
+ const n = t.toLowerCase();
91
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : w(e, t, r);
92
+ }
87
93
  function Hr(e) {
88
94
  let t;
89
95
  return {
@@ -100,7 +106,7 @@ function Hr(e) {
100
106
  function Cr(e) {
101
107
  return Array.from(e.childNodes);
102
108
  }
103
- function j(e, t) {
109
+ function te(e, t) {
104
110
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
105
111
  t);
106
112
  }
@@ -116,119 +122,128 @@ function Pr(e) {
116
122
  }
117
123
  ), t;
118
124
  }
119
- let Je;
120
- function ue(e) {
121
- Je = e;
125
+ let de;
126
+ function pe(e) {
127
+ de = e;
122
128
  }
123
- const Z = [], Ie = [];
124
- let Q = [];
125
- const nt = [], Ar = /* @__PURE__ */ Promise.resolve();
126
- let Le = !1;
127
- function Rr() {
128
- Le || (Le = !0, Ar.then(N));
129
+ function Ar() {
130
+ if (!de)
131
+ throw new Error("Function called outside component initialization");
132
+ return de;
129
133
  }
130
- function Ne(e) {
131
- Q.push(e);
134
+ function Rr(e) {
135
+ Ar().$$.on_mount.push(e);
132
136
  }
133
- const He = /* @__PURE__ */ new Set();
134
- let q = 0;
135
- function N() {
136
- if (q !== 0)
137
+ const ee = [], Fe = [];
138
+ let re = [];
139
+ const ct = [], Mr = /* @__PURE__ */ Promise.resolve();
140
+ let Ge = !1;
141
+ function Or() {
142
+ Ge || (Ge = !0, Mr.then(V));
143
+ }
144
+ function je(e) {
145
+ re.push(e);
146
+ }
147
+ const Oe = /* @__PURE__ */ new Set();
148
+ let Y = 0;
149
+ function V() {
150
+ if (Y !== 0)
137
151
  return;
138
- const e = Je;
152
+ const e = de;
139
153
  do {
140
154
  try {
141
- for (; q < Z.length; ) {
142
- const t = Z[q];
143
- q++, ue(t), Mr(t.$$);
155
+ for (; Y < ee.length; ) {
156
+ const t = ee[Y];
157
+ Y++, pe(t), Ir(t.$$);
144
158
  }
145
159
  } catch (t) {
146
- throw Z.length = 0, q = 0, t;
160
+ throw ee.length = 0, Y = 0, t;
147
161
  }
148
- for (ue(null), Z.length = 0, q = 0; Ie.length; ) Ie.pop()();
149
- for (let t = 0; t < Q.length; t += 1) {
150
- const r = Q[t];
151
- He.has(r) || (He.add(r), r());
162
+ for (pe(null), ee.length = 0, Y = 0; Fe.length; )
163
+ Fe.pop()();
164
+ for (let t = 0; t < re.length; t += 1) {
165
+ const r = re[t];
166
+ Oe.has(r) || (Oe.add(r), r());
152
167
  }
153
- Q.length = 0;
154
- } while (Z.length);
155
- for (; nt.length; )
156
- nt.pop()();
157
- Le = !1, He.clear(), ue(e);
168
+ re.length = 0;
169
+ } while (ee.length);
170
+ for (; ct.length; )
171
+ ct.pop()();
172
+ Ge = !1, Oe.clear(), pe(e);
158
173
  }
159
- function Mr(e) {
174
+ function Ir(e) {
160
175
  if (e.fragment !== null) {
161
- e.update(), re(e.before_update);
176
+ e.update(), ue(e.before_update);
162
177
  const t = e.dirty;
163
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
178
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(je);
164
179
  }
165
180
  }
166
- function Or(e) {
181
+ function Lr(e) {
167
182
  const t = [], r = [];
168
- Q.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Q = t;
183
+ re.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), re = t;
169
184
  }
170
- const Ir = /* @__PURE__ */ new Set();
171
- function Lr(e, t) {
172
- e && e.i && (Ir.delete(e), e.i(t));
185
+ const kr = /* @__PURE__ */ new Set();
186
+ function Nr(e, t) {
187
+ e && e.i && (kr.delete(e), e.i(t));
173
188
  }
174
- function it(e) {
189
+ function Ve(e) {
175
190
  return e?.length !== void 0 ? e : Array.from(e);
176
191
  }
177
- function Nr(e, t, r) {
192
+ function $r(e, t, r) {
178
193
  const { fragment: n, after_update: i } = e.$$;
179
- n && n.m(t, r), Ne(() => {
180
- const o = e.$$.on_mount.map(Rt).filter(Qe);
181
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
182
- }), i.forEach(Ne);
194
+ n && n.m(t, r), je(() => {
195
+ const o = e.$$.on_mount.map(Nt).filter(it);
196
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
197
+ }), i.forEach(je);
183
198
  }
184
- function $r(e, t) {
199
+ function Ur(e, t) {
185
200
  const r = e.$$;
186
- r.fragment !== null && (Or(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
201
+ r.fragment !== null && (Lr(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
187
202
  }
188
- function kr(e, t) {
189
- e.$$.dirty[0] === -1 && (Z.push(e), Rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
203
+ function Dr(e, t) {
204
+ e.$$.dirty[0] === -1 && (ee.push(e), Or(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
190
205
  }
191
- function Ur(e, t, r, n, i, o, s = null, a = [-1]) {
192
- const h = Je;
193
- ue(e);
206
+ function Fr(e, t, r, n, i, o, s = null, a = [-1]) {
207
+ const l = de;
208
+ pe(e);
194
209
  const u = e.$$ = {
195
210
  fragment: null,
196
211
  ctx: [],
197
212
  // state
198
213
  props: o,
199
- update: M,
214
+ update: N,
200
215
  not_equal: i,
201
- bound: rt(),
216
+ bound: lt(),
202
217
  // lifecycle
203
218
  on_mount: [],
204
219
  on_destroy: [],
205
220
  on_disconnect: [],
206
221
  before_update: [],
207
222
  after_update: [],
208
- context: new Map(t.context || (h ? h.$$.context : [])),
223
+ context: new Map(t.context || (l ? l.$$.context : [])),
209
224
  // everything else
210
- callbacks: rt(),
225
+ callbacks: lt(),
211
226
  dirty: a,
212
227
  skip_bound: !1,
213
- root: t.target || h.$$.root
228
+ root: t.target || l.$$.root
214
229
  };
215
230
  s && s(u.root);
216
- let l = !1;
217
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
218
- const d = p.length ? p[0] : f;
219
- return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), l && kr(e, c)), f;
220
- }) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
231
+ let c = !1;
232
+ if (u.ctx = r ? r(e, t.props || {}, (f, h, ...d) => {
233
+ const m = d.length ? d[0] : h;
234
+ return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), c && Dr(e, f)), h;
235
+ }) : [], u.update(), c = !0, ue(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
221
236
  if (t.hydrate) {
222
- const c = Cr(t.target);
223
- u.fragment && u.fragment.l(c), c.forEach(O);
237
+ const f = Cr(t.target);
238
+ u.fragment && u.fragment.l(f), f.forEach($);
224
239
  } else
225
240
  u.fragment && u.fragment.c();
226
- t.intro && Lr(e.$$.fragment), Nr(e, t.target, t.anchor), N();
241
+ t.intro && Nr(e.$$.fragment), $r(e, t.target, t.anchor), V();
227
242
  }
228
- ue(h);
243
+ pe(l);
229
244
  }
230
- let It;
231
- typeof HTMLElement == "function" && (It = class extends HTMLElement {
245
+ let Ft;
246
+ typeof HTMLElement == "function" && (Ft = class extends HTMLElement {
232
247
  /** The Svelte component constructor */
233
248
  $$ctor;
234
249
  /** Slots */
@@ -270,17 +285,17 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
270
285
  let o;
271
286
  return {
272
287
  c: function() {
273
- o = B("slot"), i !== "default" && H(o, "name", i);
288
+ o = T("slot"), i !== "default" && w(o, "name", i);
274
289
  },
275
290
  /**
276
291
  * @param {HTMLElement} target
277
292
  * @param {HTMLElement} [anchor]
278
293
  */
279
- m: function(h, u) {
280
- k(h, o, u);
294
+ m: function(l, u) {
295
+ D(l, o, u);
281
296
  },
282
- d: function(h) {
283
- h && O(o);
297
+ d: function(l) {
298
+ l && $(o);
284
299
  }
285
300
  };
286
301
  };
@@ -292,7 +307,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
292
307
  i in r && (t[i] = [e(i)]);
293
308
  for (const i of this.attributes) {
294
309
  const o = this.$$g_p(i.name);
295
- o in this.$$d || (this.$$d[o] = de(o, i.value, this.$$p_d, "toProp"));
310
+ o in this.$$d || (this.$$d[o] = _e(o, i.value, this.$$p_d, "toProp"));
296
311
  }
297
312
  for (const i in this.$$p_d)
298
313
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -310,7 +325,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
310
325
  this.$$r = !0;
311
326
  for (const i in this.$$p_d)
312
327
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
313
- const o = de(
328
+ const o = _e(
314
329
  i,
315
330
  this.$$d[i],
316
331
  this.$$p_d,
@@ -332,7 +347,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
332
347
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
333
348
  // and setting attributes through setAttribute etc, this is helpful
334
349
  attributeChangedCallback(e, t, r) {
335
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = de(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
350
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = _e(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
336
351
  }
337
352
  disconnectedCallback() {
338
353
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -345,7 +360,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
345
360
  ) || e;
346
361
  }
347
362
  });
348
- function de(e, t, r, n) {
363
+ function _e(e, t, r, n) {
349
364
  const i = r[e]?.type;
350
365
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
351
366
  return t;
@@ -374,8 +389,8 @@ function de(e, t, r, n) {
374
389
  return t;
375
390
  }
376
391
  }
377
- function Dr(e, t, r, n, i, o) {
378
- let s = class extends It {
392
+ function Gr(e, t, r, n, i, o) {
393
+ let s = class extends Ft {
379
394
  constructor() {
380
395
  super(e, r, i), this.$$p_d = t;
381
396
  }
@@ -390,8 +405,8 @@ function Dr(e, t, r, n, i, o) {
390
405
  get() {
391
406
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
392
407
  },
393
- set(h) {
394
- h = de(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
408
+ set(l) {
409
+ l = _e(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
395
410
  }
396
411
  });
397
412
  }), n.forEach((a) => {
@@ -403,7 +418,7 @@ function Dr(e, t, r, n, i, o) {
403
418
  }), e.element = /** @type {any} */
404
419
  s, s;
405
420
  }
406
- class Fr {
421
+ class jr {
407
422
  /**
408
423
  * ### PRIVATE API
409
424
  *
@@ -422,7 +437,7 @@ class Fr {
422
437
  $$set = void 0;
423
438
  /** @returns {void} */
424
439
  $destroy() {
425
- $r(this, 1), this.$destroy = M;
440
+ Ur(this, 1), this.$destroy = N;
426
441
  }
427
442
  /**
428
443
  * @template {Extract<keyof Events, string>} K
@@ -431,8 +446,8 @@ class Fr {
431
446
  * @returns {() => void}
432
447
  */
433
448
  $on(t, r) {
434
- if (!Qe(r))
435
- return M;
449
+ if (!it(r))
450
+ return N;
436
451
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
437
452
  return n.push(r), () => {
438
453
  const i = n.indexOf(r);
@@ -447,83 +462,106 @@ class Fr {
447
462
  this.$$set && !_r(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
448
463
  }
449
464
  }
450
- const Gr = "4";
451
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gr);
452
- var $e = function(e, t) {
453
- return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
465
+ const Vr = "4";
466
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vr);
467
+ /*! *****************************************************************************
468
+ Copyright (c) Microsoft Corporation.
469
+
470
+ Permission to use, copy, modify, and/or distribute this software for any
471
+ purpose with or without fee is hereby granted.
472
+
473
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
474
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
475
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
476
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
477
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
478
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
479
+ PERFORMANCE OF THIS SOFTWARE.
480
+ ***************************************************************************** */
481
+ var ze = function(e, t) {
482
+ return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
454
483
  r.__proto__ = n;
455
484
  } || function(r, n) {
456
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
457
- }, $e(e, t);
485
+ for (var i in n)
486
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
487
+ }, ze(e, t);
458
488
  };
459
- function U(e, t) {
489
+ function q(e, t) {
460
490
  if (typeof t != "function" && t !== null)
461
491
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
462
- $e(e, t);
492
+ ze(e, t);
463
493
  function r() {
464
494
  this.constructor = e;
465
495
  }
466
496
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
467
497
  }
468
- var E = function() {
469
- return E = Object.assign || function(t) {
498
+ var S = function() {
499
+ return S = Object.assign || function(t) {
470
500
  for (var r, n = 1, i = arguments.length; n < i; n++) {
471
501
  r = arguments[n];
472
- for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
502
+ for (var o in r)
503
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
473
504
  }
474
505
  return t;
475
- }, E.apply(this, arguments);
506
+ }, S.apply(this, arguments);
476
507
  };
477
- function jr(e, t) {
508
+ function zr(e, t) {
478
509
  var r = {};
479
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
510
+ for (var n in e)
511
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
480
512
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
481
513
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
482
514
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
483
515
  return r;
484
516
  }
485
- function ke(e) {
517
+ function Xe(e) {
486
518
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
487
- if (r) return r.call(e);
488
- if (e && typeof e.length == "number") return {
489
- next: function() {
490
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
491
- }
492
- };
519
+ if (r)
520
+ return r.call(e);
521
+ if (e && typeof e.length == "number")
522
+ return {
523
+ next: function() {
524
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
525
+ }
526
+ };
493
527
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
494
528
  }
495
- function Ue(e, t) {
529
+ function qe(e, t) {
496
530
  var r = typeof Symbol == "function" && e[Symbol.iterator];
497
- if (!r) return e;
531
+ if (!r)
532
+ return e;
498
533
  var n = r.call(e), i, o = [], s;
499
534
  try {
500
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) o.push(i.value);
535
+ for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
536
+ o.push(i.value);
501
537
  } catch (a) {
502
538
  s = { error: a };
503
539
  } finally {
504
540
  try {
505
541
  i && !i.done && (r = n.return) && r.call(n);
506
542
  } finally {
507
- if (s) throw s.error;
543
+ if (s)
544
+ throw s.error;
508
545
  }
509
546
  }
510
547
  return o;
511
548
  }
512
- function J(e, t, r) {
513
- if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
514
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
515
- return e.concat(o || Array.prototype.slice.call(t));
549
+ function ne(e, t, r) {
550
+ if (r || arguments.length === 2)
551
+ for (var n = 0, i = t.length, o; n < i; n++)
552
+ (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
553
+ return e.concat(o || t);
516
554
  }
517
- function $(e) {
555
+ function X(e) {
518
556
  return typeof e == "function";
519
557
  }
520
- function Lt(e) {
558
+ function Gt(e) {
521
559
  var t = function(n) {
522
560
  Error.call(n), n.stack = new Error().stack;
523
561
  }, r = e(t);
524
562
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
525
563
  }
526
- var Ce = Lt(function(e) {
564
+ var Ie = Gt(function(e) {
527
565
  return function(r) {
528
566
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
529
567
  ` + r.map(function(n, i) {
@@ -532,13 +570,13 @@ var Ce = Lt(function(e) {
532
570
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
533
571
  };
534
572
  });
535
- function De(e, t) {
573
+ function We(e, t) {
536
574
  if (e) {
537
575
  var r = e.indexOf(t);
538
576
  0 <= r && e.splice(r, 1);
539
577
  }
540
578
  }
541
- var xe = function() {
579
+ var Be = function() {
542
580
  function e(t) {
543
581
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
544
582
  }
@@ -550,58 +588,60 @@ var xe = function() {
550
588
  if (s)
551
589
  if (this._parentage = null, Array.isArray(s))
552
590
  try {
553
- for (var a = ke(s), h = a.next(); !h.done; h = a.next()) {
554
- var u = h.value;
591
+ for (var a = Xe(s), l = a.next(); !l.done; l = a.next()) {
592
+ var u = l.value;
555
593
  u.remove(this);
556
594
  }
557
- } catch (b) {
558
- t = { error: b };
595
+ } catch (p) {
596
+ t = { error: p };
559
597
  } finally {
560
598
  try {
561
- h && !h.done && (r = a.return) && r.call(a);
599
+ l && !l.done && (r = a.return) && r.call(a);
562
600
  } finally {
563
- if (t) throw t.error;
601
+ if (t)
602
+ throw t.error;
564
603
  }
565
604
  }
566
605
  else
567
606
  s.remove(this);
568
- var l = this.initialTeardown;
569
- if ($(l))
607
+ var c = this.initialTeardown;
608
+ if (X(c))
570
609
  try {
571
- l();
572
- } catch (b) {
573
- o = b instanceof Ce ? b.errors : [b];
610
+ c();
611
+ } catch (p) {
612
+ o = p instanceof Ie ? p.errors : [p];
574
613
  }
575
- var c = this._finalizers;
576
- if (c) {
614
+ var f = this._finalizers;
615
+ if (f) {
577
616
  this._finalizers = null;
578
617
  try {
579
- for (var f = ke(c), p = f.next(); !p.done; p = f.next()) {
580
- var d = p.value;
618
+ for (var h = Xe(f), d = h.next(); !d.done; d = h.next()) {
619
+ var m = d.value;
581
620
  try {
582
- ot(d);
583
- } catch (b) {
584
- o = o ?? [], b instanceof Ce ? o = J(J([], Ue(o)), Ue(b.errors)) : o.push(b);
621
+ ht(m);
622
+ } catch (p) {
623
+ o = o ?? [], p instanceof Ie ? o = ne(ne([], qe(o)), qe(p.errors)) : o.push(p);
585
624
  }
586
625
  }
587
- } catch (b) {
588
- n = { error: b };
626
+ } catch (p) {
627
+ n = { error: p };
589
628
  } finally {
590
629
  try {
591
- p && !p.done && (i = f.return) && i.call(f);
630
+ d && !d.done && (i = h.return) && i.call(h);
592
631
  } finally {
593
- if (n) throw n.error;
632
+ if (n)
633
+ throw n.error;
594
634
  }
595
635
  }
596
636
  }
597
637
  if (o)
598
- throw new Ce(o);
638
+ throw new Ie(o);
599
639
  }
600
640
  }, e.prototype.add = function(t) {
601
641
  var r;
602
642
  if (t && t !== this)
603
643
  if (this.closed)
604
- ot(t);
644
+ ht(t);
605
645
  else {
606
646
  if (t instanceof e) {
607
647
  if (t.closed || t._hasParent(this))
@@ -618,56 +658,56 @@ var xe = function() {
618
658
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
619
659
  }, e.prototype._removeParent = function(t) {
620
660
  var r = this._parentage;
621
- r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
661
+ r === t ? this._parentage = null : Array.isArray(r) && We(r, t);
622
662
  }, e.prototype.remove = function(t) {
623
663
  var r = this._finalizers;
624
- r && De(r, t), t instanceof e && t._removeParent(this);
664
+ r && We(r, t), t instanceof e && t._removeParent(this);
625
665
  }, e.EMPTY = function() {
626
666
  var t = new e();
627
667
  return t.closed = !0, t;
628
668
  }(), e;
629
- }(), Nt = xe.EMPTY;
630
- function $t(e) {
631
- return e instanceof xe || e && "closed" in e && $(e.remove) && $(e.add) && $(e.unsubscribe);
669
+ }(), jt = Be.EMPTY;
670
+ function Vt(e) {
671
+ return e instanceof Be || e && "closed" in e && X(e.remove) && X(e.add) && X(e.unsubscribe);
632
672
  }
633
- function ot(e) {
634
- $(e) ? e() : e.unsubscribe();
673
+ function ht(e) {
674
+ X(e) ? e() : e.unsubscribe();
635
675
  }
636
- var kt = {
676
+ var zt = {
637
677
  onUnhandledError: null,
638
678
  onStoppedNotification: null,
639
679
  Promise: void 0,
640
680
  useDeprecatedSynchronousErrorHandling: !1,
641
681
  useDeprecatedNextContext: !1
642
- }, Vr = {
682
+ }, Xr = {
643
683
  setTimeout: function(e, t) {
644
684
  for (var r = [], n = 2; n < arguments.length; n++)
645
685
  r[n - 2] = arguments[n];
646
- return setTimeout.apply(void 0, J([e, t], Ue(r)));
686
+ return setTimeout.apply(void 0, ne([e, t], qe(r)));
647
687
  },
648
688
  clearTimeout: function(e) {
649
689
  return clearTimeout(e);
650
690
  },
651
691
  delegate: void 0
652
692
  };
653
- function Xr(e) {
654
- Vr.setTimeout(function() {
693
+ function qr(e) {
694
+ Xr.setTimeout(function() {
655
695
  throw e;
656
696
  });
657
697
  }
658
- function st() {
698
+ function ft() {
659
699
  }
660
- function me(e) {
700
+ function Ee(e) {
661
701
  e();
662
702
  }
663
- var Ut = function(e) {
664
- U(t, e);
703
+ var Xt = function(e) {
704
+ q(t, e);
665
705
  function t(r) {
666
706
  var n = e.call(this) || this;
667
- return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination = Zr, n;
707
+ return n.isStopped = !1, r ? (n.destination = r, Vt(r) && r.add(n)) : n.destination = Jr, n;
668
708
  }
669
709
  return t.create = function(r, n, i) {
670
- return new Fe(r, n, i);
710
+ return new Ze(r, n, i);
671
711
  }, t.prototype.next = function(r) {
672
712
  this.isStopped || this._next(r);
673
713
  }, t.prototype.error = function(r) {
@@ -691,11 +731,11 @@ var Ut = function(e) {
691
731
  this.unsubscribe();
692
732
  }
693
733
  }, t;
694
- }(xe), zr = Function.prototype.bind;
695
- function Be(e, t) {
696
- return zr.call(e, t);
734
+ }(Be), Wr = Function.prototype.bind;
735
+ function Le(e, t) {
736
+ return Wr.call(e, t);
697
737
  }
698
- var qr = function() {
738
+ var Zr = function() {
699
739
  function e(t) {
700
740
  this.partialObserver = t;
701
741
  }
@@ -705,7 +745,7 @@ var qr = function() {
705
745
  try {
706
746
  r.next(t);
707
747
  } catch (n) {
708
- fe(n);
748
+ ve(n);
709
749
  }
710
750
  }, e.prototype.error = function(t) {
711
751
  var r = this.partialObserver;
@@ -713,24 +753,24 @@ var qr = function() {
713
753
  try {
714
754
  r.error(t);
715
755
  } catch (n) {
716
- fe(n);
756
+ ve(n);
717
757
  }
718
758
  else
719
- fe(t);
759
+ ve(t);
720
760
  }, e.prototype.complete = function() {
721
761
  var t = this.partialObserver;
722
762
  if (t.complete)
723
763
  try {
724
764
  t.complete();
725
765
  } catch (r) {
726
- fe(r);
766
+ ve(r);
727
767
  }
728
768
  }, e;
729
- }(), Fe = function(e) {
730
- U(t, e);
769
+ }(), Ze = function(e) {
770
+ q(t, e);
731
771
  function t(r, n, i) {
732
772
  var o = e.call(this) || this, s;
733
- if ($(r) || !r)
773
+ if (X(r) || !r)
734
774
  s = {
735
775
  next: r ?? void 0,
736
776
  error: n ?? void 0,
@@ -738,43 +778,43 @@ var qr = function() {
738
778
  };
739
779
  else {
740
780
  var a;
741
- o && kt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
781
+ o && zt.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
742
782
  return o.unsubscribe();
743
783
  }, s = {
744
- next: r.next && Be(r.next, a),
745
- error: r.error && Be(r.error, a),
746
- complete: r.complete && Be(r.complete, a)
784
+ next: r.next && Le(r.next, a),
785
+ error: r.error && Le(r.error, a),
786
+ complete: r.complete && Le(r.complete, a)
747
787
  }) : s = r;
748
788
  }
749
- return o.destination = new qr(s), o;
789
+ return o.destination = new Zr(s), o;
750
790
  }
751
791
  return t;
752
- }(Ut);
753
- function fe(e) {
754
- Xr(e);
792
+ }(Xt);
793
+ function ve(e) {
794
+ qr(e);
755
795
  }
756
- function Wr(e) {
796
+ function Qr(e) {
757
797
  throw e;
758
798
  }
759
- var Zr = {
799
+ var Jr = {
760
800
  closed: !0,
761
- next: st,
762
- error: Wr,
763
- complete: st
764
- }, Qr = function() {
801
+ next: ft,
802
+ error: Qr,
803
+ complete: ft
804
+ }, Yr = function() {
765
805
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
766
806
  }();
767
- function Jr(e) {
807
+ function Kr(e) {
768
808
  return e;
769
809
  }
770
- function Yr(e) {
771
- return e.length === 0 ? Jr : e.length === 1 ? e[0] : function(r) {
810
+ function en(e) {
811
+ return e.length === 0 ? Kr : e.length === 1 ? e[0] : function(r) {
772
812
  return e.reduce(function(n, i) {
773
813
  return i(n);
774
814
  }, r);
775
815
  };
776
816
  }
777
- var at = function() {
817
+ var pt = function() {
778
818
  function e(t) {
779
819
  t && (this._subscribe = t);
780
820
  }
@@ -782,10 +822,10 @@ var at = function() {
782
822
  var r = new e();
783
823
  return r.source = this, r.operator = t, r;
784
824
  }, e.prototype.subscribe = function(t, r, n) {
785
- var i = this, o = en(t) ? t : new Fe(t, r, n);
786
- return me(function() {
787
- var s = i, a = s.operator, h = s.source;
788
- o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
825
+ var i = this, o = rn(t) ? t : new Ze(t, r, n);
826
+ return Ee(function() {
827
+ var s = i, a = s.operator, l = s.source;
828
+ o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
789
829
  }), o;
790
830
  }, e.prototype._trySubscribe = function(t) {
791
831
  try {
@@ -795,13 +835,13 @@ var at = function() {
795
835
  }
796
836
  }, e.prototype.forEach = function(t, r) {
797
837
  var n = this;
798
- return r = ut(r), new r(function(i, o) {
799
- var s = new Fe({
838
+ return r = dt(r), new r(function(i, o) {
839
+ var s = new Ze({
800
840
  next: function(a) {
801
841
  try {
802
842
  t(a);
803
- } catch (h) {
804
- o(h), s.unsubscribe();
843
+ } catch (l) {
844
+ o(l), s.unsubscribe();
805
845
  }
806
846
  },
807
847
  error: o,
@@ -812,15 +852,15 @@ var at = function() {
812
852
  }, e.prototype._subscribe = function(t) {
813
853
  var r;
814
854
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
815
- }, e.prototype[Qr] = function() {
855
+ }, e.prototype[Yr] = function() {
816
856
  return this;
817
857
  }, e.prototype.pipe = function() {
818
858
  for (var t = [], r = 0; r < arguments.length; r++)
819
859
  t[r] = arguments[r];
820
- return Yr(t)(this);
860
+ return en(t)(this);
821
861
  }, e.prototype.toPromise = function(t) {
822
862
  var r = this;
823
- return t = ut(t), new t(function(n, i) {
863
+ return t = dt(t), new t(function(n, i) {
824
864
  var o;
825
865
  r.subscribe(function(s) {
826
866
  return o = s;
@@ -834,42 +874,42 @@ var at = function() {
834
874
  return new e(t);
835
875
  }, e;
836
876
  }();
837
- function ut(e) {
877
+ function dt(e) {
838
878
  var t;
839
- return (t = e ?? kt.Promise) !== null && t !== void 0 ? t : Promise;
879
+ return (t = e ?? zt.Promise) !== null && t !== void 0 ? t : Promise;
840
880
  }
841
- function Kr(e) {
842
- return e && $(e.next) && $(e.error) && $(e.complete);
881
+ function tn(e) {
882
+ return e && X(e.next) && X(e.error) && X(e.complete);
843
883
  }
844
- function en(e) {
845
- return e && e instanceof Ut || Kr(e) && $t(e);
884
+ function rn(e) {
885
+ return e && e instanceof Xt || tn(e) && Vt(e);
846
886
  }
847
- var tn = Lt(function(e) {
887
+ var nn = Gt(function(e) {
848
888
  return function() {
849
889
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
850
890
  };
851
- }), Dt = function(e) {
852
- U(t, e);
891
+ }), qt = function(e) {
892
+ q(t, e);
853
893
  function t() {
854
894
  var r = e.call(this) || this;
855
895
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
856
896
  }
857
897
  return t.prototype.lift = function(r) {
858
- var n = new lt(this, this);
898
+ var n = new mt(this, this);
859
899
  return n.operator = r, n;
860
900
  }, t.prototype._throwIfClosed = function() {
861
901
  if (this.closed)
862
- throw new tn();
902
+ throw new nn();
863
903
  }, t.prototype.next = function(r) {
864
904
  var n = this;
865
- me(function() {
905
+ Ee(function() {
866
906
  var i, o;
867
907
  if (n._throwIfClosed(), !n.isStopped) {
868
908
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
869
909
  try {
870
- for (var s = ke(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
871
- var h = a.value;
872
- h.next(r);
910
+ for (var s = Xe(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
911
+ var l = a.value;
912
+ l.next(r);
873
913
  }
874
914
  } catch (u) {
875
915
  i = { error: u };
@@ -877,14 +917,15 @@ var tn = Lt(function(e) {
877
917
  try {
878
918
  a && !a.done && (o = s.return) && o.call(s);
879
919
  } finally {
880
- if (i) throw i.error;
920
+ if (i)
921
+ throw i.error;
881
922
  }
882
923
  }
883
924
  }
884
925
  });
885
926
  }, t.prototype.error = function(r) {
886
927
  var n = this;
887
- me(function() {
928
+ Ee(function() {
888
929
  if (n._throwIfClosed(), !n.isStopped) {
889
930
  n.hasError = n.isStopped = !0, n.thrownError = r;
890
931
  for (var i = n.observers; i.length; )
@@ -893,7 +934,7 @@ var tn = Lt(function(e) {
893
934
  });
894
935
  }, t.prototype.complete = function() {
895
936
  var r = this;
896
- me(function() {
937
+ Ee(function() {
897
938
  if (r._throwIfClosed(), !r.isStopped) {
898
939
  r.isStopped = !0;
899
940
  for (var n = r.observers; n.length; )
@@ -915,20 +956,20 @@ var tn = Lt(function(e) {
915
956
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
916
957
  }, t.prototype._innerSubscribe = function(r) {
917
958
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
918
- return o || s ? Nt : (this.currentObservers = null, a.push(r), new xe(function() {
919
- n.currentObservers = null, De(a, r);
959
+ return o || s ? jt : (this.currentObservers = null, a.push(r), new Be(function() {
960
+ n.currentObservers = null, We(a, r);
920
961
  }));
921
962
  }, t.prototype._checkFinalizedStatuses = function(r) {
922
963
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
923
964
  i ? r.error(o) : s && r.complete();
924
965
  }, t.prototype.asObservable = function() {
925
- var r = new at();
966
+ var r = new pt();
926
967
  return r.source = this, r;
927
968
  }, t.create = function(r, n) {
928
- return new lt(r, n);
969
+ return new mt(r, n);
929
970
  }, t;
930
- }(at), lt = function(e) {
931
- U(t, e);
971
+ }(pt), mt = function(e) {
972
+ q(t, e);
932
973
  function t(r, n) {
933
974
  var i = e.call(this) || this;
934
975
  return i.destination = r, i.source = n, i;
@@ -944,279 +985,279 @@ var tn = Lt(function(e) {
944
985
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
945
986
  }, t.prototype._subscribe = function(r) {
946
987
  var n, i;
947
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Nt;
988
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : jt;
948
989
  }, t;
949
- }(Dt), Ft = {
990
+ }(qt), Wt = {
950
991
  now: function() {
951
- return (Ft.delegate || Date).now();
992
+ return (Wt.delegate || Date).now();
952
993
  },
953
994
  delegate: void 0
954
- }, rn = function(e) {
955
- U(t, e);
995
+ }, on = function(e) {
996
+ q(t, e);
956
997
  function t(r, n, i) {
957
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ft);
998
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Wt);
958
999
  var o = e.call(this) || this;
959
1000
  return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
960
1001
  }
961
1002
  return t.prototype.next = function(r) {
962
- var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, h = n._windowTime;
963
- i || (o.push(r), !s && o.push(a.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
1003
+ var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
1004
+ i || (o.push(r), !s && o.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
964
1005
  }, t.prototype._subscribe = function(r) {
965
1006
  this._throwIfClosed(), this._trimBuffer();
966
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), h = 0; h < a.length && !r.closed; h += o ? 1 : 2)
967
- r.next(a[h]);
1007
+ for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), l = 0; l < a.length && !r.closed; l += o ? 1 : 2)
1008
+ r.next(a[l]);
968
1009
  return this._checkFinalizedStatuses(r), n;
969
1010
  }, t.prototype._trimBuffer = function() {
970
1011
  var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
971
1012
  if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
972
- for (var h = i.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
973
- u = l;
1013
+ for (var l = i.now(), u = 0, c = 1; c < o.length && o[c] <= l; c += 2)
1014
+ u = c;
974
1015
  u && o.splice(0, u + 1);
975
1016
  }
976
1017
  }, t;
977
- }(Dt);
978
- const ht = [], ct = {}, nn = (e, t = 0) => {
979
- if (ht.indexOf(e) == -1) {
980
- const r = new rn(t);
981
- ct[e] = r, ht.push(e);
1018
+ }(qt);
1019
+ const bt = [], yt = {}, sn = (e, t = 0) => {
1020
+ if (bt.indexOf(e) == -1) {
1021
+ const r = new on(t);
1022
+ yt[e] = r, bt.push(e);
982
1023
  }
983
- return ct[e];
984
- }, W = [];
985
- function on(e, t) {
1024
+ return yt[e];
1025
+ }, K = [];
1026
+ function an(e, t) {
986
1027
  return {
987
- subscribe: Ee(e, t).subscribe
1028
+ subscribe: Pe(e, t).subscribe
988
1029
  };
989
1030
  }
990
- function Ee(e, t = M) {
1031
+ function Pe(e, t = N) {
991
1032
  let r;
992
1033
  const n = /* @__PURE__ */ new Set();
993
1034
  function i(a) {
994
- if (Mt(e, a) && (e = a, r)) {
995
- const h = !W.length;
1035
+ if ($t(e, a) && (e = a, r)) {
1036
+ const l = !K.length;
996
1037
  for (const u of n)
997
- u[1](), W.push(u, e);
998
- if (h) {
999
- for (let u = 0; u < W.length; u += 2)
1000
- W[u][0](W[u + 1]);
1001
- W.length = 0;
1038
+ u[1](), K.push(u, e);
1039
+ if (l) {
1040
+ for (let u = 0; u < K.length; u += 2)
1041
+ K[u][0](K[u + 1]);
1042
+ K.length = 0;
1002
1043
  }
1003
1044
  }
1004
1045
  }
1005
1046
  function o(a) {
1006
1047
  i(a(e));
1007
1048
  }
1008
- function s(a, h = M) {
1009
- const u = [a, h];
1010
- return n.add(u), n.size === 1 && (r = t(i, o) || M), a(e), () => {
1049
+ function s(a, l = N) {
1050
+ const u = [a, l];
1051
+ return n.add(u), n.size === 1 && (r = t(i, o) || N), a(e), () => {
1011
1052
  n.delete(u), n.size === 0 && r && (r(), r = null);
1012
1053
  };
1013
1054
  }
1014
1055
  return { set: i, update: o, subscribe: s };
1015
1056
  }
1016
- function ne(e, t, r) {
1057
+ function le(e, t, r) {
1017
1058
  const n = !Array.isArray(e), i = n ? [e] : e;
1018
1059
  if (!i.every(Boolean))
1019
1060
  throw new Error("derived() expects stores as input, got a falsy value");
1020
1061
  const o = t.length < 2;
1021
- return on(r, (s, a) => {
1022
- let h = !1;
1062
+ return an(r, (s, a) => {
1063
+ let l = !1;
1023
1064
  const u = [];
1024
- let l = 0, c = M;
1025
- const f = () => {
1026
- if (l)
1065
+ let c = 0, f = N;
1066
+ const h = () => {
1067
+ if (c)
1027
1068
  return;
1028
- c();
1029
- const d = t(n ? u[0] : u, s, a);
1030
- o ? s(d) : c = Qe(d) ? d : M;
1031
- }, p = i.map(
1032
- (d, b) => Ot(
1033
- d,
1069
+ f();
1070
+ const m = t(n ? u[0] : u, s, a);
1071
+ o ? s(m) : f = it(m) ? m : N;
1072
+ }, d = i.map(
1073
+ (m, p) => Ut(
1074
+ m,
1034
1075
  (y) => {
1035
- u[b] = y, l &= ~(1 << b), h && f();
1076
+ u[p] = y, c &= ~(1 << p), l && h();
1036
1077
  },
1037
1078
  () => {
1038
- l |= 1 << b;
1079
+ c |= 1 << p;
1039
1080
  }
1040
1081
  )
1041
1082
  );
1042
- return h = !0, f(), function() {
1043
- re(p), c(), h = !1;
1083
+ return l = !0, h(), function() {
1084
+ ue(d), f(), l = !1;
1044
1085
  };
1045
1086
  });
1046
1087
  }
1047
- function sn(e) {
1088
+ function un(e) {
1048
1089
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1049
1090
  }
1050
- var an = function(t) {
1051
- return un(t) && !ln(t);
1091
+ var ln = function(t) {
1092
+ return cn(t) && !hn(t);
1052
1093
  };
1053
- function un(e) {
1094
+ function cn(e) {
1054
1095
  return !!e && typeof e == "object";
1055
1096
  }
1056
- function ln(e) {
1097
+ function hn(e) {
1057
1098
  var t = Object.prototype.toString.call(e);
1058
- return t === "[object RegExp]" || t === "[object Date]" || fn(e);
1099
+ return t === "[object RegExp]" || t === "[object Date]" || dn(e);
1059
1100
  }
1060
- var hn = typeof Symbol == "function" && Symbol.for, cn = hn ? Symbol.for("react.element") : 60103;
1061
- function fn(e) {
1062
- return e.$$typeof === cn;
1101
+ var fn = typeof Symbol == "function" && Symbol.for, pn = fn ? Symbol.for("react.element") : 60103;
1102
+ function dn(e) {
1103
+ return e.$$typeof === pn;
1063
1104
  }
1064
- function pn(e) {
1105
+ function mn(e) {
1065
1106
  return Array.isArray(e) ? [] : {};
1066
1107
  }
1067
- function le(e, t) {
1068
- return t.clone !== !1 && t.isMergeableObject(e) ? Y(pn(e), e, t) : e;
1108
+ function me(e, t) {
1109
+ return t.clone !== !1 && t.isMergeableObject(e) ? ie(mn(e), e, t) : e;
1069
1110
  }
1070
- function dn(e, t, r) {
1111
+ function bn(e, t, r) {
1071
1112
  return e.concat(t).map(function(n) {
1072
- return le(n, r);
1113
+ return me(n, r);
1073
1114
  });
1074
1115
  }
1075
- function mn(e, t) {
1116
+ function yn(e, t) {
1076
1117
  if (!t.customMerge)
1077
- return Y;
1118
+ return ie;
1078
1119
  var r = t.customMerge(e);
1079
- return typeof r == "function" ? r : Y;
1120
+ return typeof r == "function" ? r : ie;
1080
1121
  }
1081
- function bn(e) {
1122
+ function gn(e) {
1082
1123
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1083
1124
  return Object.propertyIsEnumerable.call(e, t);
1084
1125
  }) : [];
1085
1126
  }
1086
- function ft(e) {
1087
- return Object.keys(e).concat(bn(e));
1127
+ function gt(e) {
1128
+ return Object.keys(e).concat(gn(e));
1088
1129
  }
1089
- function Gt(e, t) {
1130
+ function Zt(e, t) {
1090
1131
  try {
1091
1132
  return t in e;
1092
1133
  } catch {
1093
1134
  return !1;
1094
1135
  }
1095
1136
  }
1096
- function yn(e, t) {
1097
- return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1137
+ function vn(e, t) {
1138
+ return Zt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1098
1139
  }
1099
- function gn(e, t, r) {
1140
+ function xn(e, t, r) {
1100
1141
  var n = {};
1101
- return r.isMergeableObject(e) && ft(e).forEach(function(i) {
1102
- n[i] = le(e[i], r);
1103
- }), ft(t).forEach(function(i) {
1104
- yn(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = mn(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
1142
+ return r.isMergeableObject(e) && gt(e).forEach(function(i) {
1143
+ n[i] = me(e[i], r);
1144
+ }), gt(t).forEach(function(i) {
1145
+ vn(e, i) || (Zt(e, i) && r.isMergeableObject(t[i]) ? n[i] = yn(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
1105
1146
  }), n;
1106
1147
  }
1107
- function Y(e, t, r) {
1108
- r = r || {}, r.arrayMerge = r.arrayMerge || dn, r.isMergeableObject = r.isMergeableObject || an, r.cloneUnlessOtherwiseSpecified = le;
1148
+ function ie(e, t, r) {
1149
+ r = r || {}, r.arrayMerge = r.arrayMerge || bn, r.isMergeableObject = r.isMergeableObject || ln, r.cloneUnlessOtherwiseSpecified = me;
1109
1150
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1110
- return o ? n ? r.arrayMerge(e, t, r) : gn(e, t, r) : le(t, r);
1151
+ return o ? n ? r.arrayMerge(e, t, r) : xn(e, t, r) : me(t, r);
1111
1152
  }
1112
- Y.all = function(t, r) {
1153
+ ie.all = function(t, r) {
1113
1154
  if (!Array.isArray(t))
1114
1155
  throw new Error("first argument should be an array");
1115
1156
  return t.reduce(function(n, i) {
1116
- return Y(n, i, r);
1157
+ return ie(n, i, r);
1117
1158
  }, {});
1118
1159
  };
1119
- var vn = Y, _n = vn;
1120
- const xn = /* @__PURE__ */ sn(_n);
1121
- function Pe(e, t) {
1122
- var r = t && t.cache ? t.cache : Cn, n = t && t.serializer ? t.serializer : Hn, i = t && t.strategy ? t.strategy : Sn;
1160
+ var _n = ie, En = _n;
1161
+ const Sn = /* @__PURE__ */ un(En);
1162
+ function ke(e, t) {
1163
+ var r = t && t.cache ? t.cache : Pn, n = t && t.serializer ? t.serializer : Bn, i = t && t.strategy ? t.strategy : Tn;
1123
1164
  return i(e, {
1124
1165
  cache: r,
1125
1166
  serializer: n
1126
1167
  });
1127
1168
  }
1128
- function En(e) {
1169
+ function wn(e) {
1129
1170
  return e == null || typeof e == "number" || typeof e == "boolean";
1130
1171
  }
1131
- function jt(e, t, r, n) {
1132
- var i = En(n) ? n : r(n), o = t.get(i);
1172
+ function Qt(e, t, r, n) {
1173
+ var i = wn(n) ? n : r(n), o = t.get(i);
1133
1174
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1134
1175
  }
1135
- function Vt(e, t, r) {
1176
+ function Jt(e, t, r) {
1136
1177
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1137
1178
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1138
1179
  }
1139
- function Ye(e, t, r, n, i) {
1180
+ function ot(e, t, r, n, i) {
1140
1181
  return r.bind(t, e, n, i);
1141
1182
  }
1142
- function Sn(e, t) {
1143
- var r = e.length === 1 ? jt : Vt;
1144
- return Ye(e, this, r, t.cache.create(), t.serializer);
1183
+ function Tn(e, t) {
1184
+ var r = e.length === 1 ? Qt : Jt;
1185
+ return ot(e, this, r, t.cache.create(), t.serializer);
1145
1186
  }
1146
- function wn(e, t) {
1147
- return Ye(e, this, Vt, t.cache.create(), t.serializer);
1187
+ function Hn(e, t) {
1188
+ return ot(e, this, Jt, t.cache.create(), t.serializer);
1148
1189
  }
1149
- function Tn(e, t) {
1150
- return Ye(e, this, jt, t.cache.create(), t.serializer);
1190
+ function Cn(e, t) {
1191
+ return ot(e, this, Qt, t.cache.create(), t.serializer);
1151
1192
  }
1152
- var Hn = function() {
1193
+ var Bn = function() {
1153
1194
  return JSON.stringify(arguments);
1154
1195
  };
1155
- function Ke() {
1196
+ function st() {
1156
1197
  this.cache = /* @__PURE__ */ Object.create(null);
1157
1198
  }
1158
- Ke.prototype.get = function(e) {
1199
+ st.prototype.get = function(e) {
1159
1200
  return this.cache[e];
1160
1201
  };
1161
- Ke.prototype.set = function(e, t) {
1202
+ st.prototype.set = function(e, t) {
1162
1203
  this.cache[e] = t;
1163
1204
  };
1164
- var Cn = {
1205
+ var Pn = {
1165
1206
  create: function() {
1166
- return new Ke();
1207
+ return new st();
1167
1208
  }
1168
- }, Ae = {
1169
- variadic: wn,
1170
- monadic: Tn
1209
+ }, Ne = {
1210
+ variadic: Hn,
1211
+ monadic: Cn
1171
1212
  }, v;
1172
1213
  (function(e) {
1173
1214
  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";
1174
1215
  })(v || (v = {}));
1175
- var T;
1216
+ var C;
1176
1217
  (function(e) {
1177
1218
  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";
1178
- })(T || (T = {}));
1179
- var K;
1219
+ })(C || (C = {}));
1220
+ var oe;
1180
1221
  (function(e) {
1181
1222
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1182
- })(K || (K = {}));
1183
- function pt(e) {
1184
- return e.type === T.literal;
1223
+ })(oe || (oe = {}));
1224
+ function vt(e) {
1225
+ return e.type === C.literal;
1185
1226
  }
1186
- function Bn(e) {
1187
- return e.type === T.argument;
1227
+ function An(e) {
1228
+ return e.type === C.argument;
1188
1229
  }
1189
- function Xt(e) {
1190
- return e.type === T.number;
1230
+ function Yt(e) {
1231
+ return e.type === C.number;
1191
1232
  }
1192
- function zt(e) {
1193
- return e.type === T.date;
1233
+ function Kt(e) {
1234
+ return e.type === C.date;
1194
1235
  }
1195
- function qt(e) {
1196
- return e.type === T.time;
1236
+ function er(e) {
1237
+ return e.type === C.time;
1197
1238
  }
1198
- function Wt(e) {
1199
- return e.type === T.select;
1239
+ function tr(e) {
1240
+ return e.type === C.select;
1200
1241
  }
1201
- function Zt(e) {
1202
- return e.type === T.plural;
1242
+ function rr(e) {
1243
+ return e.type === C.plural;
1203
1244
  }
1204
- function Pn(e) {
1205
- return e.type === T.pound;
1245
+ function Rn(e) {
1246
+ return e.type === C.pound;
1206
1247
  }
1207
- function Qt(e) {
1208
- return e.type === T.tag;
1248
+ function nr(e) {
1249
+ return e.type === C.tag;
1209
1250
  }
1210
- function Jt(e) {
1211
- return !!(e && typeof e == "object" && e.type === K.number);
1251
+ function ir(e) {
1252
+ return !!(e && typeof e == "object" && e.type === oe.number);
1212
1253
  }
1213
- function Ge(e) {
1214
- return !!(e && typeof e == "object" && e.type === K.dateTime);
1254
+ function Qe(e) {
1255
+ return !!(e && typeof e == "object" && e.type === oe.dateTime);
1215
1256
  }
1216
- var Yt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, An = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1217
- function Rn(e) {
1257
+ var or = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Mn = /(?:[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;
1258
+ function On(e) {
1218
1259
  var t = {};
1219
- return e.replace(An, function(r) {
1260
+ return e.replace(Mn, function(r) {
1220
1261
  var n = r.length;
1221
1262
  switch (r[0]) {
1222
1263
  case "G":
@@ -1305,36 +1346,36 @@ function Rn(e) {
1305
1346
  return "";
1306
1347
  }), t;
1307
1348
  }
1308
- var Mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1309
- function On(e) {
1349
+ var In = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1350
+ function Ln(e) {
1310
1351
  if (e.length === 0)
1311
1352
  throw new Error("Number skeleton cannot be empty");
1312
- for (var t = e.split(Mn).filter(function(f) {
1313
- return f.length > 0;
1353
+ for (var t = e.split(In).filter(function(h) {
1354
+ return h.length > 0;
1314
1355
  }), r = [], n = 0, i = t; n < i.length; n++) {
1315
1356
  var o = i[n], s = o.split("/");
1316
1357
  if (s.length === 0)
1317
1358
  throw new Error("Invalid number skeleton");
1318
- for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
1319
- var c = l[u];
1320
- if (c.length === 0)
1359
+ for (var a = s[0], l = s.slice(1), u = 0, c = l; u < c.length; u++) {
1360
+ var f = c[u];
1361
+ if (f.length === 0)
1321
1362
  throw new Error("Invalid number skeleton");
1322
1363
  }
1323
- r.push({ stem: a, options: h });
1364
+ r.push({ stem: a, options: l });
1324
1365
  }
1325
1366
  return r;
1326
1367
  }
1327
- function In(e) {
1368
+ function kn(e) {
1328
1369
  return e.replace(/^(.*?)-/, "");
1329
1370
  }
1330
- var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, er = /^(0+)$/;
1331
- function mt(e) {
1371
+ var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, sr = /^(@+)?(\+|#+)?[rs]?$/g, Nn = /(\*)(0+)|(#+)(0+)|(0+)/g, ar = /^(0+)$/;
1372
+ function _t(e) {
1332
1373
  var t = {};
1333
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(r, n, i) {
1374
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(sr, function(r, n, i) {
1334
1375
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1335
1376
  }), t;
1336
1377
  }
1337
- function tr(e) {
1378
+ function ur(e) {
1338
1379
  switch (e) {
1339
1380
  case "sign-auto":
1340
1381
  return {
@@ -1374,7 +1415,7 @@ function tr(e) {
1374
1415
  };
1375
1416
  }
1376
1417
  }
1377
- function Nn(e) {
1418
+ function $n(e) {
1378
1419
  var t;
1379
1420
  if (e[0] === "E" && e[1] === "E" ? (t = {
1380
1421
  notation: "engineering"
@@ -1382,17 +1423,17 @@ function Nn(e) {
1382
1423
  notation: "scientific"
1383
1424
  }, e = e.slice(1)), t) {
1384
1425
  var r = e.slice(0, 2);
1385
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !er.test(e))
1426
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ar.test(e))
1386
1427
  throw new Error("Malformed concise eng/scientific notation");
1387
1428
  t.minimumIntegerDigits = e.length;
1388
1429
  }
1389
1430
  return t;
1390
1431
  }
1391
- function bt(e) {
1392
- var t = {}, r = tr(e);
1432
+ function Et(e) {
1433
+ var t = {}, r = ur(e);
1393
1434
  return r || t;
1394
1435
  }
1395
- function $n(e) {
1436
+ function Un(e) {
1396
1437
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1397
1438
  var i = n[r];
1398
1439
  switch (i.stem) {
@@ -1416,7 +1457,7 @@ function $n(e) {
1416
1457
  continue;
1417
1458
  case "measure-unit":
1418
1459
  case "unit":
1419
- t.style = "unit", t.unit = In(i.options[0]);
1460
+ t.style = "unit", t.unit = kn(i.options[0]);
1420
1461
  continue;
1421
1462
  case "compact-short":
1422
1463
  case "K":
@@ -1427,13 +1468,13 @@ function $n(e) {
1427
1468
  t.notation = "compact", t.compactDisplay = "long";
1428
1469
  continue;
1429
1470
  case "scientific":
1430
- t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1431
- return E(E({}, h), bt(u));
1471
+ t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1472
+ return S(S({}, l), Et(u));
1432
1473
  }, {}));
1433
1474
  continue;
1434
1475
  case "engineering":
1435
- t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1436
- return E(E({}, h), bt(u));
1476
+ t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1477
+ return S(S({}, l), Et(u));
1437
1478
  }, {}));
1438
1479
  continue;
1439
1480
  case "notation-simple":
@@ -1478,45 +1519,45 @@ function $n(e) {
1478
1519
  case "integer-width":
1479
1520
  if (i.options.length > 1)
1480
1521
  throw new RangeError("integer-width stems only accept a single optional option");
1481
- i.options[0].replace(Ln, function(h, u, l, c, f, p) {
1522
+ i.options[0].replace(Nn, function(l, u, c, f, h, d) {
1482
1523
  if (u)
1483
- t.minimumIntegerDigits = l.length;
1524
+ t.minimumIntegerDigits = c.length;
1484
1525
  else {
1485
- if (c && f)
1526
+ if (f && h)
1486
1527
  throw new Error("We currently do not support maximum integer digits");
1487
- if (p)
1528
+ if (d)
1488
1529
  throw new Error("We currently do not support exact integer digits");
1489
1530
  }
1490
1531
  return "";
1491
1532
  });
1492
1533
  continue;
1493
1534
  }
1494
- if (er.test(i.stem)) {
1535
+ if (ar.test(i.stem)) {
1495
1536
  t.minimumIntegerDigits = i.stem.length;
1496
1537
  continue;
1497
1538
  }
1498
- if (dt.test(i.stem)) {
1539
+ if (xt.test(i.stem)) {
1499
1540
  if (i.options.length > 1)
1500
1541
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1501
- i.stem.replace(dt, function(h, u, l, c, f, p) {
1502
- return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1542
+ i.stem.replace(xt, function(l, u, c, f, h, d) {
1543
+ return c === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1503
1544
  });
1504
1545
  var o = i.options[0];
1505
- o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), mt(o)));
1546
+ o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), _t(o)));
1506
1547
  continue;
1507
1548
  }
1508
- if (Kt.test(i.stem)) {
1509
- t = E(E({}, t), mt(i.stem));
1549
+ if (sr.test(i.stem)) {
1550
+ t = S(S({}, t), _t(i.stem));
1510
1551
  continue;
1511
1552
  }
1512
- var s = tr(i.stem);
1513
- s && (t = E(E({}, t), s));
1514
- var a = Nn(i.stem);
1515
- a && (t = E(E({}, t), a));
1553
+ var s = ur(i.stem);
1554
+ s && (t = S(S({}, t), s));
1555
+ var a = $n(i.stem);
1556
+ a && (t = S(S({}, t), a));
1516
1557
  }
1517
1558
  return t;
1518
1559
  }
1519
- var pe = {
1560
+ var xe = {
1520
1561
  "001": [
1521
1562
  "H",
1522
1563
  "h"
@@ -2931,22 +2972,23 @@ var pe = {
2931
2972
  "h"
2932
2973
  ]
2933
2974
  };
2934
- function kn(e, t) {
2975
+ function Dn(e, t) {
2935
2976
  for (var r = "", n = 0; n < e.length; n++) {
2936
2977
  var i = e.charAt(n);
2937
2978
  if (i === "j") {
2938
2979
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2939
2980
  o++, n++;
2940
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Un(t);
2981
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Fn(t);
2941
2982
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2942
- r += h;
2983
+ r += l;
2943
2984
  for (; s-- > 0; )
2944
2985
  r = u + r;
2945
- } else i === "J" ? r += "H" : r += i;
2986
+ } else
2987
+ i === "J" ? r += "H" : r += i;
2946
2988
  }
2947
2989
  return r;
2948
2990
  }
2949
- function Un(e) {
2991
+ function Fn(e) {
2950
2992
  var t = e.hourCycle;
2951
2993
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2952
2994
  e.hourCycles && // @ts-ignore
@@ -2965,23 +3007,23 @@ function Un(e) {
2965
3007
  }
2966
3008
  var r = e.language, n;
2967
3009
  r !== "root" && (n = e.maximize().region);
2968
- var i = pe[n || ""] || pe[r || ""] || pe["".concat(r, "-001")] || pe["001"];
3010
+ var i = xe[n || ""] || xe[r || ""] || xe["".concat(r, "-001")] || xe["001"];
2969
3011
  return i[0];
2970
3012
  }
2971
- var Re, Dn = new RegExp("^".concat(Yt.source, "*")), Fn = new RegExp("".concat(Yt.source, "*$"));
2972
- function _(e, t) {
3013
+ var $e, Gn = new RegExp("^".concat(or.source, "*")), jn = new RegExp("".concat(or.source, "*$"));
3014
+ function x(e, t) {
2973
3015
  return { start: e, end: t };
2974
3016
  }
2975
- var Gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, Vn = !!Object.fromEntries, Xn = !!String.prototype.codePointAt, zn = !!String.prototype.trimStart, qn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, Zn = Wn ? Number.isSafeInteger : function(e) {
3017
+ var Vn = !!String.prototype.startsWith && "_a".startsWith("a", 1), zn = !!String.fromCodePoint, Xn = !!Object.fromEntries, qn = !!String.prototype.codePointAt, Wn = !!String.prototype.trimStart, Zn = !!String.prototype.trimEnd, Qn = !!Number.isSafeInteger, Jn = Qn ? Number.isSafeInteger : function(e) {
2976
3018
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2977
- }, je = !0;
3019
+ }, Je = !0;
2978
3020
  try {
2979
- var Qn = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2980
- je = ((Re = Qn.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
3021
+ var Yn = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3022
+ Je = (($e = Yn.exec("a")) === null || $e === void 0 ? void 0 : $e[0]) === "a";
2981
3023
  } catch {
2982
- je = !1;
3024
+ Je = !1;
2983
3025
  }
2984
- var yt = Gn ? (
3026
+ var St = Vn ? (
2985
3027
  // Native
2986
3028
  function(t, r, n) {
2987
3029
  return t.startsWith(r, n);
@@ -2991,7 +3033,7 @@ var yt = Gn ? (
2991
3033
  function(t, r, n) {
2992
3034
  return t.slice(n, n + r.length) === r;
2993
3035
  }
2994
- ), Ve = jn ? String.fromCodePoint : (
3036
+ ), Ye = zn ? String.fromCodePoint : (
2995
3037
  // IE11
2996
3038
  function() {
2997
3039
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3003,9 +3045,9 @@ var yt = Gn ? (
3003
3045
  }
3004
3046
  return n;
3005
3047
  }
3006
- ), gt = (
3048
+ ), wt = (
3007
3049
  // native
3008
- Vn ? Object.fromEntries : (
3050
+ Xn ? Object.fromEntries : (
3009
3051
  // Ponyfill
3010
3052
  function(t) {
3011
3053
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3015,7 +3057,7 @@ var yt = Gn ? (
3015
3057
  return r;
3016
3058
  }
3017
3059
  )
3018
- ), rr = Xn ? (
3060
+ ), lr = qn ? (
3019
3061
  // Native
3020
3062
  function(t, r) {
3021
3063
  return t.codePointAt(r);
@@ -3029,7 +3071,7 @@ var yt = Gn ? (
3029
3071
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3030
3072
  }
3031
3073
  }
3032
- ), Jn = zn ? (
3074
+ ), Kn = Wn ? (
3033
3075
  // Native
3034
3076
  function(t) {
3035
3077
  return t.trimStart();
@@ -3037,9 +3079,9 @@ var yt = Gn ? (
3037
3079
  ) : (
3038
3080
  // Ponyfill
3039
3081
  function(t) {
3040
- return t.replace(Dn, "");
3082
+ return t.replace(Gn, "");
3041
3083
  }
3042
- ), Yn = qn ? (
3084
+ ), ei = Zn ? (
3043
3085
  // Native
3044
3086
  function(t) {
3045
3087
  return t.trimEnd();
@@ -3047,32 +3089,32 @@ var yt = Gn ? (
3047
3089
  ) : (
3048
3090
  // Ponyfill
3049
3091
  function(t) {
3050
- return t.replace(Fn, "");
3092
+ return t.replace(jn, "");
3051
3093
  }
3052
3094
  );
3053
- function nr(e, t) {
3095
+ function cr(e, t) {
3054
3096
  return new RegExp(e, t);
3055
3097
  }
3056
- var Xe;
3057
- if (je) {
3058
- var vt = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3059
- Xe = function(t, r) {
3098
+ var Ke;
3099
+ if (Je) {
3100
+ var Tt = cr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3101
+ Ke = function(t, r) {
3060
3102
  var n;
3061
- vt.lastIndex = r;
3062
- var i = vt.exec(t);
3103
+ Tt.lastIndex = r;
3104
+ var i = Tt.exec(t);
3063
3105
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3064
3106
  };
3065
3107
  } else
3066
- Xe = function(t, r) {
3108
+ Ke = function(t, r) {
3067
3109
  for (var n = []; ; ) {
3068
- var i = rr(t, r);
3069
- if (i === void 0 || ir(i) || ri(i))
3110
+ var i = lr(t, r);
3111
+ if (i === void 0 || hr(i) || ii(i))
3070
3112
  break;
3071
3113
  n.push(i), r += i >= 65536 ? 2 : 1;
3072
3114
  }
3073
- return Ve.apply(void 0, n);
3115
+ return Ye.apply(void 0, n);
3074
3116
  };
3075
- var Kn = (
3117
+ var ti = (
3076
3118
  /** @class */
3077
3119
  function() {
3078
3120
  function e(t, r) {
@@ -3096,14 +3138,14 @@ var Kn = (
3096
3138
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3097
3139
  var a = this.clonePosition();
3098
3140
  this.bump(), i.push({
3099
- type: T.pound,
3100
- location: _(a, this.clonePosition())
3141
+ type: C.pound,
3142
+ location: x(a, this.clonePosition())
3101
3143
  });
3102
3144
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3103
3145
  if (n)
3104
3146
  break;
3105
- return this.error(v.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
3106
- } else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
3147
+ return this.error(v.UNMATCHED_CLOSING_TAG, x(this.clonePosition(), this.clonePosition()));
3148
+ } else if (o === 60 && !this.ignoreTag && et(this.peek() || 0)) {
3107
3149
  var s = this.parseTag(t, r);
3108
3150
  if (s.err)
3109
3151
  return s;
@@ -3124,9 +3166,9 @@ var Kn = (
3124
3166
  if (this.bumpSpace(), this.bumpIf("/>"))
3125
3167
  return {
3126
3168
  val: {
3127
- type: T.literal,
3169
+ type: C.literal,
3128
3170
  value: "<".concat(i, "/>"),
3129
- location: _(n, this.clonePosition())
3171
+ location: x(n, this.clonePosition())
3130
3172
  },
3131
3173
  err: null
3132
3174
  };
@@ -3136,25 +3178,25 @@ var Kn = (
3136
3178
  return o;
3137
3179
  var s = o.val, a = this.clonePosition();
3138
3180
  if (this.bumpIf("</")) {
3139
- if (this.isEOF() || !ze(this.char()))
3140
- return this.error(v.INVALID_TAG, _(a, this.clonePosition()));
3141
- var h = this.clonePosition(), u = this.parseTagName();
3142
- return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3181
+ if (this.isEOF() || !et(this.char()))
3182
+ return this.error(v.INVALID_TAG, x(a, this.clonePosition()));
3183
+ var l = this.clonePosition(), u = this.parseTagName();
3184
+ return i !== u ? this.error(v.UNMATCHED_CLOSING_TAG, x(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3143
3185
  val: {
3144
- type: T.tag,
3186
+ type: C.tag,
3145
3187
  value: i,
3146
3188
  children: s,
3147
- location: _(n, this.clonePosition())
3189
+ location: x(n, this.clonePosition())
3148
3190
  },
3149
3191
  err: null
3150
- } : this.error(v.INVALID_TAG, _(a, this.clonePosition())));
3192
+ } : this.error(v.INVALID_TAG, x(a, this.clonePosition())));
3151
3193
  } else
3152
- return this.error(v.UNCLOSED_TAG, _(n, this.clonePosition()));
3194
+ return this.error(v.UNCLOSED_TAG, x(n, this.clonePosition()));
3153
3195
  } else
3154
- return this.error(v.INVALID_TAG, _(n, this.clonePosition()));
3196
+ return this.error(v.INVALID_TAG, x(n, this.clonePosition()));
3155
3197
  }, e.prototype.parseTagName = function() {
3156
3198
  var t = this.offset();
3157
- for (this.bump(); !this.isEOF() && ti(this.char()); )
3199
+ for (this.bump(); !this.isEOF() && ni(this.char()); )
3158
3200
  this.bump();
3159
3201
  return this.message.slice(t, this.offset());
3160
3202
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3176,14 +3218,14 @@ var Kn = (
3176
3218
  }
3177
3219
  break;
3178
3220
  }
3179
- var h = _(n, this.clonePosition());
3221
+ var l = x(n, this.clonePosition());
3180
3222
  return {
3181
- val: { type: T.literal, value: i, location: h },
3223
+ val: { type: C.literal, value: i, location: l },
3182
3224
  err: null
3183
3225
  };
3184
3226
  }, e.prototype.tryParseLeftAngleBracket = function() {
3185
3227
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3186
- !ei(this.peek() || 0)) ? (this.bump(), "<") : null;
3228
+ !ri(this.peek() || 0)) ? (this.bump(), "<") : null;
3187
3229
  }, e.prototype.tryParseQuote = function(t) {
3188
3230
  if (this.isEOF() || this.char() !== 39)
3189
3231
  return null;
@@ -3217,49 +3259,49 @@ var Kn = (
3217
3259
  r.push(n);
3218
3260
  this.bump();
3219
3261
  }
3220
- return Ve.apply(void 0, r);
3262
+ return Ye.apply(void 0, r);
3221
3263
  }, e.prototype.tryParseUnquoted = function(t, r) {
3222
3264
  if (this.isEOF())
3223
3265
  return null;
3224
3266
  var n = this.char();
3225
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ve(n));
3267
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ye(n));
3226
3268
  }, e.prototype.parseArgument = function(t, r) {
3227
3269
  var n = this.clonePosition();
3228
3270
  if (this.bump(), this.bumpSpace(), this.isEOF())
3229
- return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
3271
+ return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
3230
3272
  if (this.char() === 125)
3231
- return this.bump(), this.error(v.EMPTY_ARGUMENT, _(n, this.clonePosition()));
3273
+ return this.bump(), this.error(v.EMPTY_ARGUMENT, x(n, this.clonePosition()));
3232
3274
  var i = this.parseIdentifierIfPossible().value;
3233
3275
  if (!i)
3234
- return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3276
+ return this.error(v.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
3235
3277
  if (this.bumpSpace(), this.isEOF())
3236
- return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
3278
+ return this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition()));
3237
3279
  switch (this.char()) {
3238
3280
  case 125:
3239
3281
  return this.bump(), {
3240
3282
  val: {
3241
- type: T.argument,
3283
+ type: C.argument,
3242
3284
  // value does not include the opening and closing braces.
3243
3285
  value: i,
3244
- location: _(n, this.clonePosition())
3286
+ location: x(n, this.clonePosition())
3245
3287
  },
3246
3288
  err: null
3247
3289
  };
3248
3290
  case 44:
3249
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3291
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, x(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3250
3292
  default:
3251
- return this.error(v.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3293
+ return this.error(v.MALFORMED_ARGUMENT, x(n, this.clonePosition()));
3252
3294
  }
3253
3295
  }, e.prototype.parseIdentifierIfPossible = function() {
3254
- var t = this.clonePosition(), r = this.offset(), n = Xe(this.message, r), i = r + n.length;
3296
+ var t = this.clonePosition(), r = this.offset(), n = Ke(this.message, r), i = r + n.length;
3255
3297
  this.bumpTo(i);
3256
- var o = this.clonePosition(), s = _(t, o);
3298
+ var o = this.clonePosition(), s = x(t, o);
3257
3299
  return { value: n, location: s };
3258
3300
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3259
- var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
3301
+ var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3260
3302
  switch (a) {
3261
3303
  case "":
3262
- return this.error(v.EXPECT_ARGUMENT_TYPE, _(s, h));
3304
+ return this.error(v.EXPECT_ARGUMENT_TYPE, x(s, l));
3263
3305
  case "number":
3264
3306
  case "date":
3265
3307
  case "time": {
@@ -3267,49 +3309,49 @@ var Kn = (
3267
3309
  var u = null;
3268
3310
  if (this.bumpIf(",")) {
3269
3311
  this.bumpSpace();
3270
- var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3271
- if (c.err)
3272
- return c;
3273
- var f = Yn(c.val);
3274
- if (f.length === 0)
3275
- return this.error(v.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
3276
- var p = _(l, this.clonePosition());
3277
- u = { style: f, styleLocation: p };
3312
+ var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3313
+ if (f.err)
3314
+ return f;
3315
+ var h = ei(f.val);
3316
+ if (h.length === 0)
3317
+ return this.error(v.EXPECT_ARGUMENT_STYLE, x(this.clonePosition(), this.clonePosition()));
3318
+ var d = x(c, this.clonePosition());
3319
+ u = { style: h, styleLocation: d };
3278
3320
  }
3279
- var d = this.tryParseArgumentClose(i);
3280
- if (d.err)
3281
- return d;
3282
- var b = _(i, this.clonePosition());
3283
- if (u && yt(u?.style, "::", 0)) {
3284
- var y = Jn(u.style.slice(2));
3321
+ var m = this.tryParseArgumentClose(i);
3322
+ if (m.err)
3323
+ return m;
3324
+ var p = x(i, this.clonePosition());
3325
+ if (u && St(u?.style, "::", 0)) {
3326
+ var y = Kn(u.style.slice(2));
3285
3327
  if (a === "number") {
3286
- var c = this.parseNumberSkeletonFromString(y, u.styleLocation);
3287
- return c.err ? c : {
3288
- val: { type: T.number, value: n, location: b, style: c.val },
3328
+ var f = this.parseNumberSkeletonFromString(y, u.styleLocation);
3329
+ return f.err ? f : {
3330
+ val: { type: C.number, value: n, location: p, style: f.val },
3289
3331
  err: null
3290
3332
  };
3291
3333
  } else {
3292
3334
  if (y.length === 0)
3293
- return this.error(v.EXPECT_DATE_TIME_SKELETON, b);
3294
- var S = y;
3295
- this.locale && (S = kn(y, this.locale));
3296
- var f = {
3297
- type: K.dateTime,
3298
- pattern: S,
3335
+ return this.error(v.EXPECT_DATE_TIME_SKELETON, p);
3336
+ var _ = y;
3337
+ this.locale && (_ = Dn(y, this.locale));
3338
+ var h = {
3339
+ type: oe.dateTime,
3340
+ pattern: _,
3299
3341
  location: u.styleLocation,
3300
- parsedOptions: this.shouldParseSkeletons ? Rn(S) : {}
3301
- }, x = a === "date" ? T.date : T.time;
3342
+ parsedOptions: this.shouldParseSkeletons ? On(_) : {}
3343
+ }, P = a === "date" ? C.date : C.time;
3302
3344
  return {
3303
- val: { type: x, value: n, location: b, style: f },
3345
+ val: { type: P, value: n, location: p, style: h },
3304
3346
  err: null
3305
3347
  };
3306
3348
  }
3307
3349
  }
3308
3350
  return {
3309
3351
  val: {
3310
- type: a === "number" ? T.number : a === "date" ? T.date : T.time,
3352
+ type: a === "number" ? C.number : a === "date" ? C.date : C.time,
3311
3353
  value: n,
3312
- location: b,
3354
+ location: p,
3313
3355
  style: (o = u?.style) !== null && o !== void 0 ? o : null
3314
3356
  },
3315
3357
  err: null
@@ -3318,52 +3360,52 @@ var Kn = (
3318
3360
  case "plural":
3319
3361
  case "selectordinal":
3320
3362
  case "select": {
3321
- var C = this.clonePosition();
3363
+ var I = this.clonePosition();
3322
3364
  if (this.bumpSpace(), !this.bumpIf(","))
3323
- return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, _(C, E({}, C)));
3365
+ return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, x(I, S({}, I)));
3324
3366
  this.bumpSpace();
3325
- var G = this.parseIdentifierIfPossible(), L = 0;
3326
- if (a !== "select" && G.value === "offset") {
3367
+ var j = this.parseIdentifierIfPossible(), O = 0;
3368
+ if (a !== "select" && j.value === "offset") {
3327
3369
  if (!this.bumpIf(":"))
3328
- return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
3370
+ return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, x(this.clonePosition(), this.clonePosition()));
3329
3371
  this.bumpSpace();
3330
- var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3331
- if (c.err)
3332
- return c;
3333
- this.bumpSpace(), G = this.parseIdentifierIfPossible(), L = c.val;
3372
+ var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3373
+ if (f.err)
3374
+ return f;
3375
+ this.bumpSpace(), j = this.parseIdentifierIfPossible(), O = f.val;
3334
3376
  }
3335
- var X = this.tryParsePluralOrSelectOptions(t, a, r, G);
3336
- if (X.err)
3337
- return X;
3338
- var d = this.tryParseArgumentClose(i);
3339
- if (d.err)
3340
- return d;
3341
- var se = _(i, this.clonePosition());
3377
+ var B = this.tryParsePluralOrSelectOptions(t, a, r, j);
3378
+ if (B.err)
3379
+ return B;
3380
+ var m = this.tryParseArgumentClose(i);
3381
+ if (m.err)
3382
+ return m;
3383
+ var F = x(i, this.clonePosition());
3342
3384
  return a === "select" ? {
3343
3385
  val: {
3344
- type: T.select,
3386
+ type: C.select,
3345
3387
  value: n,
3346
- options: gt(X.val),
3347
- location: se
3388
+ options: wt(B.val),
3389
+ location: F
3348
3390
  },
3349
3391
  err: null
3350
3392
  } : {
3351
3393
  val: {
3352
- type: T.plural,
3394
+ type: C.plural,
3353
3395
  value: n,
3354
- options: gt(X.val),
3355
- offset: L,
3396
+ options: wt(B.val),
3397
+ offset: O,
3356
3398
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3357
- location: se
3399
+ location: F
3358
3400
  },
3359
3401
  err: null
3360
3402
  };
3361
3403
  }
3362
3404
  default:
3363
- return this.error(v.INVALID_ARGUMENT_TYPE, _(s, h));
3405
+ return this.error(v.INVALID_ARGUMENT_TYPE, x(s, l));
3364
3406
  }
3365
3407
  }, e.prototype.tryParseArgumentClose = function(t) {
3366
- return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3408
+ return this.isEOF() || this.char() !== 125 ? this.error(v.EXPECT_ARGUMENT_CLOSING_BRACE, x(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3367
3409
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3368
3410
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3369
3411
  var n = this.char();
@@ -3372,7 +3414,7 @@ var Kn = (
3372
3414
  this.bump();
3373
3415
  var i = this.clonePosition();
3374
3416
  if (!this.bumpUntil("'"))
3375
- return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
3417
+ return this.error(v.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, x(i, this.clonePosition()));
3376
3418
  this.bump();
3377
3419
  break;
3378
3420
  }
@@ -3402,52 +3444,52 @@ var Kn = (
3402
3444
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3403
3445
  var n = [];
3404
3446
  try {
3405
- n = On(t);
3447
+ n = Ln(t);
3406
3448
  } catch {
3407
3449
  return this.error(v.INVALID_NUMBER_SKELETON, r);
3408
3450
  }
3409
3451
  return {
3410
3452
  val: {
3411
- type: K.number,
3453
+ type: oe.number,
3412
3454
  tokens: n,
3413
3455
  location: r,
3414
- parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
3456
+ parsedOptions: this.shouldParseSkeletons ? Un(n) : {}
3415
3457
  },
3416
3458
  err: null
3417
3459
  };
3418
3460
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3419
- for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3461
+ for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
3420
3462
  if (u.length === 0) {
3421
- var c = this.clonePosition();
3463
+ var f = this.clonePosition();
3422
3464
  if (r !== "select" && this.bumpIf("=")) {
3423
- var f = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
3424
- if (f.err)
3425
- return f;
3426
- l = _(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3465
+ var h = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_SELECTOR, v.INVALID_PLURAL_ARGUMENT_SELECTOR);
3466
+ if (h.err)
3467
+ return h;
3468
+ c = x(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3427
3469
  } else
3428
3470
  break;
3429
3471
  }
3430
- if (h.has(u))
3431
- return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3472
+ if (l.has(u))
3473
+ return this.error(r === "select" ? v.DUPLICATE_SELECT_ARGUMENT_SELECTOR : v.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
3432
3474
  u === "other" && (s = !0), this.bumpSpace();
3433
- var p = this.clonePosition();
3475
+ var d = this.clonePosition();
3434
3476
  if (!this.bumpIf("{"))
3435
- return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
3436
- var d = this.parseMessage(t + 1, r, n);
3437
- if (d.err)
3438
- return d;
3439
- var b = this.tryParseArgumentClose(p);
3440
- if (b.err)
3441
- return b;
3477
+ return this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : v.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, x(this.clonePosition(), this.clonePosition()));
3478
+ var m = this.parseMessage(t + 1, r, n);
3479
+ if (m.err)
3480
+ return m;
3481
+ var p = this.tryParseArgumentClose(d);
3482
+ if (p.err)
3483
+ return p;
3442
3484
  a.push([
3443
3485
  u,
3444
3486
  {
3445
- value: d.val,
3446
- location: _(p, this.clonePosition())
3487
+ value: m.val,
3488
+ location: x(d, this.clonePosition())
3447
3489
  }
3448
- ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3490
+ ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
3449
3491
  }
3450
- return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3492
+ return a.length === 0 ? this.error(r === "select" ? v.EXPECT_SELECT_ARGUMENT_SELECTOR : v.EXPECT_PLURAL_ARGUMENT_SELECTOR, x(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(v.MISSING_OTHER_CLAUSE, x(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3451
3493
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3452
3494
  var n = 1, i = this.clonePosition();
3453
3495
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3458,8 +3500,8 @@ var Kn = (
3458
3500
  else
3459
3501
  break;
3460
3502
  }
3461
- var h = _(i, this.clonePosition());
3462
- return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3503
+ var l = x(i, this.clonePosition());
3504
+ return o ? (s *= n, Jn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
3463
3505
  }, e.prototype.offset = function() {
3464
3506
  return this.position.offset;
3465
3507
  }, e.prototype.isEOF = function() {
@@ -3474,7 +3516,7 @@ var Kn = (
3474
3516
  var t = this.position.offset;
3475
3517
  if (t >= this.message.length)
3476
3518
  throw Error("out of bound");
3477
- var r = rr(this.message, t);
3519
+ var r = lr(this.message, t);
3478
3520
  if (r === void 0)
3479
3521
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3480
3522
  return r;
@@ -3493,7 +3535,7 @@ var Kn = (
3493
3535
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3494
3536
  }
3495
3537
  }, e.prototype.bumpIf = function(t) {
3496
- if (yt(this.message, t, this.offset())) {
3538
+ if (St(this.message, t, this.offset())) {
3497
3539
  for (var r = 0; r < t.length; r++)
3498
3540
  this.bump();
3499
3541
  return !0;
@@ -3515,7 +3557,7 @@ var Kn = (
3515
3557
  break;
3516
3558
  }
3517
3559
  }, e.prototype.bumpSpace = function() {
3518
- for (; !this.isEOF() && ir(this.char()); )
3560
+ for (; !this.isEOF() && hr(this.char()); )
3519
3561
  this.bump();
3520
3562
  }, e.prototype.peek = function() {
3521
3563
  if (this.isEOF())
@@ -3525,46 +3567,47 @@ var Kn = (
3525
3567
  }, e;
3526
3568
  }()
3527
3569
  );
3528
- function ze(e) {
3570
+ function et(e) {
3529
3571
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3530
3572
  }
3531
- function ei(e) {
3532
- return ze(e) || e === 47;
3573
+ function ri(e) {
3574
+ return et(e) || e === 47;
3533
3575
  }
3534
- function ti(e) {
3576
+ function ni(e) {
3535
3577
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3536
3578
  }
3537
- function ir(e) {
3579
+ function hr(e) {
3538
3580
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3539
3581
  }
3540
- function ri(e) {
3582
+ function ii(e) {
3541
3583
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3542
3584
  }
3543
- function qe(e) {
3585
+ function tt(e) {
3544
3586
  e.forEach(function(t) {
3545
- if (delete t.location, Wt(t) || Zt(t))
3587
+ if (delete t.location, tr(t) || rr(t))
3546
3588
  for (var r in t.options)
3547
- delete t.options[r].location, qe(t.options[r].value);
3548
- else Xt(t) && Jt(t.style) || (zt(t) || qt(t)) && Ge(t.style) ? delete t.style.location : Qt(t) && qe(t.children);
3589
+ delete t.options[r].location, tt(t.options[r].value);
3590
+ else
3591
+ Yt(t) && ir(t.style) || (Kt(t) || er(t)) && Qe(t.style) ? delete t.style.location : nr(t) && tt(t.children);
3549
3592
  });
3550
3593
  }
3551
- function ni(e, t) {
3552
- t === void 0 && (t = {}), t = E({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3553
- var r = new Kn(e, t).parse();
3594
+ function oi(e, t) {
3595
+ t === void 0 && (t = {}), t = S({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3596
+ var r = new ti(e, t).parse();
3554
3597
  if (r.err) {
3555
3598
  var n = SyntaxError(v[r.err.kind]);
3556
3599
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3557
3600
  }
3558
- return t?.captureLocation || qe(r.val), r.val;
3601
+ return t?.captureLocation || tt(r.val), r.val;
3559
3602
  }
3560
- var ee;
3603
+ var se;
3561
3604
  (function(e) {
3562
3605
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3563
- })(ee || (ee = {}));
3564
- var Se = (
3606
+ })(se || (se = {}));
3607
+ var Ae = (
3565
3608
  /** @class */
3566
3609
  function(e) {
3567
- U(t, e);
3610
+ q(t, e);
3568
3611
  function t(r, n, i) {
3569
3612
  var o = e.call(this, r) || this;
3570
3613
  return o.code = n, o.originalMessage = i, o;
@@ -3573,155 +3616,155 @@ var Se = (
3573
3616
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3574
3617
  }, t;
3575
3618
  }(Error)
3576
- ), _t = (
3619
+ ), Ht = (
3577
3620
  /** @class */
3578
3621
  function(e) {
3579
- U(t, e);
3622
+ q(t, e);
3580
3623
  function t(r, n, i, o) {
3581
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
3624
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), se.INVALID_VALUE, o) || this;
3582
3625
  }
3583
3626
  return t;
3584
- }(Se)
3585
- ), ii = (
3627
+ }(Ae)
3628
+ ), si = (
3586
3629
  /** @class */
3587
3630
  function(e) {
3588
- U(t, e);
3631
+ q(t, e);
3589
3632
  function t(r, n, i) {
3590
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
3633
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), se.INVALID_VALUE, i) || this;
3591
3634
  }
3592
3635
  return t;
3593
- }(Se)
3594
- ), oi = (
3636
+ }(Ae)
3637
+ ), ai = (
3595
3638
  /** @class */
3596
3639
  function(e) {
3597
- U(t, e);
3640
+ q(t, e);
3598
3641
  function t(r, n) {
3599
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
3642
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), se.MISSING_VALUE, n) || this;
3600
3643
  }
3601
3644
  return t;
3602
- }(Se)
3603
- ), A;
3645
+ }(Ae)
3646
+ ), k;
3604
3647
  (function(e) {
3605
3648
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3606
- })(A || (A = {}));
3607
- function si(e) {
3649
+ })(k || (k = {}));
3650
+ function ui(e) {
3608
3651
  return e.length < 2 ? e : e.reduce(function(t, r) {
3609
3652
  var n = t[t.length - 1];
3610
- return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
3653
+ return !n || n.type !== k.literal || r.type !== k.literal ? t.push(r) : n.value += r.value, t;
3611
3654
  }, []);
3612
3655
  }
3613
- function ai(e) {
3656
+ function li(e) {
3614
3657
  return typeof e == "function";
3615
3658
  }
3616
- function be(e, t, r, n, i, o, s) {
3617
- if (e.length === 1 && pt(e[0]))
3659
+ function Se(e, t, r, n, i, o, s) {
3660
+ if (e.length === 1 && vt(e[0]))
3618
3661
  return [
3619
3662
  {
3620
- type: A.literal,
3663
+ type: k.literal,
3621
3664
  value: e[0].value
3622
3665
  }
3623
3666
  ];
3624
- for (var a = [], h = 0, u = e; h < u.length; h++) {
3625
- var l = u[h];
3626
- if (pt(l)) {
3667
+ for (var a = [], l = 0, u = e; l < u.length; l++) {
3668
+ var c = u[l];
3669
+ if (vt(c)) {
3627
3670
  a.push({
3628
- type: A.literal,
3629
- value: l.value
3671
+ type: k.literal,
3672
+ value: c.value
3630
3673
  });
3631
3674
  continue;
3632
3675
  }
3633
- if (Pn(l)) {
3676
+ if (Rn(c)) {
3634
3677
  typeof o == "number" && a.push({
3635
- type: A.literal,
3678
+ type: k.literal,
3636
3679
  value: r.getNumberFormat(t).format(o)
3637
3680
  });
3638
3681
  continue;
3639
3682
  }
3640
- var c = l.value;
3641
- if (!(i && c in i))
3642
- throw new oi(c, s);
3643
- var f = i[c];
3644
- if (Bn(l)) {
3645
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3646
- type: typeof f == "string" ? A.literal : A.object,
3647
- value: f
3683
+ var f = c.value;
3684
+ if (!(i && f in i))
3685
+ throw new ai(f, s);
3686
+ var h = i[f];
3687
+ if (An(c)) {
3688
+ (!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
3689
+ type: typeof h == "string" ? k.literal : k.object,
3690
+ value: h
3648
3691
  });
3649
3692
  continue;
3650
3693
  }
3651
- if (zt(l)) {
3652
- var p = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
3694
+ if (Kt(c)) {
3695
+ var d = typeof c.style == "string" ? n.date[c.style] : Qe(c.style) ? c.style.parsedOptions : void 0;
3653
3696
  a.push({
3654
- type: A.literal,
3655
- value: r.getDateTimeFormat(t, p).format(f)
3697
+ type: k.literal,
3698
+ value: r.getDateTimeFormat(t, d).format(h)
3656
3699
  });
3657
3700
  continue;
3658
3701
  }
3659
- if (qt(l)) {
3660
- var p = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
3702
+ if (er(c)) {
3703
+ var d = typeof c.style == "string" ? n.time[c.style] : Qe(c.style) ? c.style.parsedOptions : n.time.medium;
3661
3704
  a.push({
3662
- type: A.literal,
3663
- value: r.getDateTimeFormat(t, p).format(f)
3705
+ type: k.literal,
3706
+ value: r.getDateTimeFormat(t, d).format(h)
3664
3707
  });
3665
3708
  continue;
3666
3709
  }
3667
- if (Xt(l)) {
3668
- var p = typeof l.style == "string" ? n.number[l.style] : Jt(l.style) ? l.style.parsedOptions : void 0;
3669
- p && p.scale && (f = f * (p.scale || 1)), a.push({
3670
- type: A.literal,
3671
- value: r.getNumberFormat(t, p).format(f)
3710
+ if (Yt(c)) {
3711
+ var d = typeof c.style == "string" ? n.number[c.style] : ir(c.style) ? c.style.parsedOptions : void 0;
3712
+ d && d.scale && (h = h * (d.scale || 1)), a.push({
3713
+ type: k.literal,
3714
+ value: r.getNumberFormat(t, d).format(h)
3672
3715
  });
3673
3716
  continue;
3674
3717
  }
3675
- if (Qt(l)) {
3676
- var d = l.children, b = l.value, y = i[b];
3677
- if (!ai(y))
3678
- throw new ii(b, "function", s);
3679
- var S = be(d, t, r, n, i, o), x = y(S.map(function(L) {
3680
- return L.value;
3718
+ if (nr(c)) {
3719
+ var m = c.children, p = c.value, y = i[p];
3720
+ if (!li(y))
3721
+ throw new si(p, "function", s);
3722
+ var _ = Se(m, t, r, n, i, o), P = y(_.map(function(O) {
3723
+ return O.value;
3681
3724
  }));
3682
- Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(L) {
3725
+ Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(O) {
3683
3726
  return {
3684
- type: typeof L == "string" ? A.literal : A.object,
3685
- value: L
3727
+ type: typeof O == "string" ? k.literal : k.object,
3728
+ value: O
3686
3729
  };
3687
3730
  }));
3688
3731
  }
3689
- if (Wt(l)) {
3690
- var C = l.options[f] || l.options.other;
3691
- if (!C)
3692
- throw new _t(l.value, f, Object.keys(l.options), s);
3693
- a.push.apply(a, be(C.value, t, r, n, i));
3732
+ if (tr(c)) {
3733
+ var I = c.options[h] || c.options.other;
3734
+ if (!I)
3735
+ throw new Ht(c.value, h, Object.keys(c.options), s);
3736
+ a.push.apply(a, Se(I.value, t, r, n, i));
3694
3737
  continue;
3695
3738
  }
3696
- if (Zt(l)) {
3697
- var C = l.options["=".concat(f)];
3698
- if (!C) {
3739
+ if (rr(c)) {
3740
+ var I = c.options["=".concat(h)];
3741
+ if (!I) {
3699
3742
  if (!Intl.PluralRules)
3700
- throw new Se(`Intl.PluralRules is not available in this environment.
3743
+ throw new Ae(`Intl.PluralRules is not available in this environment.
3701
3744
  Try polyfilling it using "@formatjs/intl-pluralrules"
3702
- `, ee.MISSING_INTL_API, s);
3703
- var G = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3704
- C = l.options[G] || l.options.other;
3745
+ `, se.MISSING_INTL_API, s);
3746
+ var j = r.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
3747
+ I = c.options[j] || c.options.other;
3705
3748
  }
3706
- if (!C)
3707
- throw new _t(l.value, f, Object.keys(l.options), s);
3708
- a.push.apply(a, be(C.value, t, r, n, i, f - (l.offset || 0)));
3749
+ if (!I)
3750
+ throw new Ht(c.value, h, Object.keys(c.options), s);
3751
+ a.push.apply(a, Se(I.value, t, r, n, i, h - (c.offset || 0)));
3709
3752
  continue;
3710
3753
  }
3711
3754
  }
3712
- return si(a);
3755
+ return ui(a);
3713
3756
  }
3714
- function ui(e, t) {
3715
- return t ? E(E(E({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3716
- return r[n] = E(E({}, e[n]), t[n] || {}), r;
3757
+ function ci(e, t) {
3758
+ return t ? S(S(S({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3759
+ return r[n] = S(S({}, e[n]), t[n] || {}), r;
3717
3760
  }, {})) : e;
3718
3761
  }
3719
- function li(e, t) {
3762
+ function hi(e, t) {
3720
3763
  return t ? Object.keys(e).reduce(function(r, n) {
3721
- return r[n] = ui(e[n], t[n]), r;
3722
- }, E({}, e)) : e;
3764
+ return r[n] = ci(e[n], t[n]), r;
3765
+ }, S({}, e)) : e;
3723
3766
  }
3724
- function Me(e) {
3767
+ function Ue(e) {
3725
3768
  return {
3726
3769
  create: function() {
3727
3770
  return {
@@ -3735,39 +3778,39 @@ function Me(e) {
3735
3778
  }
3736
3779
  };
3737
3780
  }
3738
- function hi(e) {
3781
+ function fi(e) {
3739
3782
  return e === void 0 && (e = {
3740
3783
  number: {},
3741
3784
  dateTime: {},
3742
3785
  pluralRules: {}
3743
3786
  }), {
3744
- getNumberFormat: Pe(function() {
3787
+ getNumberFormat: ke(function() {
3745
3788
  for (var t, r = [], n = 0; n < arguments.length; n++)
3746
3789
  r[n] = arguments[n];
3747
- return new ((t = Intl.NumberFormat).bind.apply(t, J([void 0], r, !1)))();
3790
+ return new ((t = Intl.NumberFormat).bind.apply(t, ne([void 0], r, !1)))();
3748
3791
  }, {
3749
- cache: Me(e.number),
3750
- strategy: Ae.variadic
3792
+ cache: Ue(e.number),
3793
+ strategy: Ne.variadic
3751
3794
  }),
3752
- getDateTimeFormat: Pe(function() {
3795
+ getDateTimeFormat: ke(function() {
3753
3796
  for (var t, r = [], n = 0; n < arguments.length; n++)
3754
3797
  r[n] = arguments[n];
3755
- return new ((t = Intl.DateTimeFormat).bind.apply(t, J([void 0], r, !1)))();
3798
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, ne([void 0], r, !1)))();
3756
3799
  }, {
3757
- cache: Me(e.dateTime),
3758
- strategy: Ae.variadic
3800
+ cache: Ue(e.dateTime),
3801
+ strategy: Ne.variadic
3759
3802
  }),
3760
- getPluralRules: Pe(function() {
3803
+ getPluralRules: ke(function() {
3761
3804
  for (var t, r = [], n = 0; n < arguments.length; n++)
3762
3805
  r[n] = arguments[n];
3763
- return new ((t = Intl.PluralRules).bind.apply(t, J([void 0], r, !1)))();
3806
+ return new ((t = Intl.PluralRules).bind.apply(t, ne([void 0], r, !1)))();
3764
3807
  }, {
3765
- cache: Me(e.pluralRules),
3766
- strategy: Ae.variadic
3808
+ cache: Ue(e.pluralRules),
3809
+ strategy: Ne.variadic
3767
3810
  })
3768
3811
  };
3769
3812
  }
3770
- var ci = (
3813
+ var pi = (
3771
3814
  /** @class */
3772
3815
  function() {
3773
3816
  function e(t, r, n, i) {
@@ -3777,20 +3820,20 @@ var ci = (
3777
3820
  number: {},
3778
3821
  dateTime: {},
3779
3822
  pluralRules: {}
3780
- }, this.format = function(h) {
3781
- var u = o.formatToParts(h);
3823
+ }, this.format = function(l) {
3824
+ var u = o.formatToParts(l);
3782
3825
  if (u.length === 1)
3783
3826
  return u[0].value;
3784
- var l = u.reduce(function(c, f) {
3785
- return !c.length || f.type !== A.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3827
+ var c = u.reduce(function(f, h) {
3828
+ return !f.length || h.type !== k.literal || typeof f[f.length - 1] != "string" ? f.push(h.value) : f[f.length - 1] += h.value, f;
3786
3829
  }, []);
3787
- return l.length <= 1 ? l[0] || "" : l;
3788
- }, this.formatToParts = function(h) {
3789
- return be(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3830
+ return c.length <= 1 ? c[0] || "" : c;
3831
+ }, this.formatToParts = function(l) {
3832
+ return Se(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3790
3833
  }, this.resolvedOptions = function() {
3791
- var h;
3834
+ var l;
3792
3835
  return {
3793
- locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3836
+ locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
3794
3837
  };
3795
3838
  }, this.getAst = function() {
3796
3839
  return o.ast;
@@ -3799,13 +3842,13 @@ var ci = (
3799
3842
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3800
3843
  var s = i || {};
3801
3844
  s.formatters;
3802
- var a = jr(s, ["formatters"]);
3803
- this.ast = e.__parse(t, E(E({}, a), { locale: this.resolvedLocale }));
3845
+ var a = zr(s, ["formatters"]);
3846
+ this.ast = e.__parse(t, S(S({}, a), { locale: this.resolvedLocale }));
3804
3847
  } else
3805
3848
  this.ast = t;
3806
3849
  if (!Array.isArray(this.ast))
3807
3850
  throw new TypeError("A message must be provided as a String or AST.");
3808
- this.formats = li(e.formats, n), this.formatters = i && i.formatters || hi(this.formatterCache);
3851
+ this.formats = hi(e.formats, n), this.formatters = i && i.formatters || fi(this.formatterCache);
3809
3852
  }
3810
3853
  return Object.defineProperty(e, "defaultLocale", {
3811
3854
  get: function() {
@@ -3818,7 +3861,7 @@ var ci = (
3818
3861
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3819
3862
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3820
3863
  }
3821
- }, e.__parse = ni, e.formats = {
3864
+ }, e.__parse = oi, e.formats = {
3822
3865
  number: {
3823
3866
  integer: {
3824
3867
  maximumFractionDigits: 0
@@ -3879,7 +3922,7 @@ var ci = (
3879
3922
  }, e;
3880
3923
  }()
3881
3924
  );
3882
- function fi(e, t) {
3925
+ function di(e, t) {
3883
3926
  if (t == null)
3884
3927
  return;
3885
3928
  if (t in e)
@@ -3900,92 +3943,92 @@ function fi(e, t) {
3900
3943
  n = void 0;
3901
3944
  return n;
3902
3945
  }
3903
- const F = {}, pi = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), or = (e, t) => {
3946
+ const Z = {}, mi = (e, t, r) => r && (t in Z || (Z[t] = {}), e in Z[t] || (Z[t][e] = r), r), fr = (e, t) => {
3904
3947
  if (t == null)
3905
3948
  return;
3906
- if (t in F && e in F[t])
3907
- return F[t][e];
3908
- const r = we(t);
3949
+ if (t in Z && e in Z[t])
3950
+ return Z[t][e];
3951
+ const r = Re(t);
3909
3952
  for (let n = 0; n < r.length; n++) {
3910
- const i = r[n], o = mi(i, e);
3953
+ const i = r[n], o = yi(i, e);
3911
3954
  if (o)
3912
- return pi(e, t, o);
3955
+ return mi(e, t, o);
3913
3956
  }
3914
3957
  };
3915
- let et;
3916
- const ce = Ee({});
3917
- function di(e) {
3918
- return et[e] || null;
3958
+ let at;
3959
+ const ye = Pe({});
3960
+ function bi(e) {
3961
+ return at[e] || null;
3919
3962
  }
3920
- function sr(e) {
3921
- return e in et;
3963
+ function pr(e) {
3964
+ return e in at;
3922
3965
  }
3923
- function mi(e, t) {
3924
- if (!sr(e))
3966
+ function yi(e, t) {
3967
+ if (!pr(e))
3925
3968
  return null;
3926
- const r = di(e);
3927
- return fi(r, t);
3969
+ const r = bi(e);
3970
+ return di(r, t);
3928
3971
  }
3929
- function bi(e) {
3972
+ function gi(e) {
3930
3973
  if (e == null)
3931
3974
  return;
3932
- const t = we(e);
3975
+ const t = Re(e);
3933
3976
  for (let r = 0; r < t.length; r++) {
3934
3977
  const n = t[r];
3935
- if (sr(n))
3978
+ if (pr(n))
3936
3979
  return n;
3937
3980
  }
3938
3981
  }
3939
- function ar(e, ...t) {
3940
- delete F[e], ce.update((r) => (r[e] = xn.all([r[e] || {}, ...t]), r));
3982
+ function dr(e, ...t) {
3983
+ delete Z[e], ye.update((r) => (r[e] = Sn.all([r[e] || {}, ...t]), r));
3941
3984
  }
3942
- ne(
3943
- [ce],
3985
+ le(
3986
+ [ye],
3944
3987
  ([e]) => Object.keys(e)
3945
3988
  );
3946
- ce.subscribe((e) => et = e);
3947
- const ye = {};
3948
- function yi(e, t) {
3949
- ye[e].delete(t), ye[e].size === 0 && delete ye[e];
3989
+ ye.subscribe((e) => at = e);
3990
+ const we = {};
3991
+ function vi(e, t) {
3992
+ we[e].delete(t), we[e].size === 0 && delete we[e];
3950
3993
  }
3951
- function ur(e) {
3952
- return ye[e];
3994
+ function mr(e) {
3995
+ return we[e];
3953
3996
  }
3954
- function gi(e) {
3955
- return we(e).map((t) => {
3956
- const r = ur(t);
3997
+ function xi(e) {
3998
+ return Re(e).map((t) => {
3999
+ const r = mr(t);
3957
4000
  return [t, r ? [...r] : []];
3958
4001
  }).filter(([, t]) => t.length > 0);
3959
4002
  }
3960
- function We(e) {
3961
- return e == null ? !1 : we(e).some(
4003
+ function rt(e) {
4004
+ return e == null ? !1 : Re(e).some(
3962
4005
  (t) => {
3963
4006
  var r;
3964
- return (r = ur(t)) == null ? void 0 : r.size;
4007
+ return (r = mr(t)) == null ? void 0 : r.size;
3965
4008
  }
3966
4009
  );
3967
4010
  }
3968
- function vi(e, t) {
4011
+ function _i(e, t) {
3969
4012
  return Promise.all(
3970
- t.map((n) => (yi(e, n), n().then((i) => i.default || i)))
3971
- ).then((n) => ar(e, ...n));
3972
- }
3973
- const ae = {};
3974
- function lr(e) {
3975
- if (!We(e))
3976
- return e in ae ? ae[e] : Promise.resolve();
3977
- const t = gi(e);
3978
- return ae[e] = Promise.all(
4013
+ t.map((n) => (vi(e, n), n().then((i) => i.default || i)))
4014
+ ).then((n) => dr(e, ...n));
4015
+ }
4016
+ const fe = {};
4017
+ function br(e) {
4018
+ if (!rt(e))
4019
+ return e in fe ? fe[e] : Promise.resolve();
4020
+ const t = xi(e);
4021
+ return fe[e] = Promise.all(
3979
4022
  t.map(
3980
- ([r, n]) => vi(r, n)
4023
+ ([r, n]) => _i(r, n)
3981
4024
  )
3982
4025
  ).then(() => {
3983
- if (We(e))
3984
- return lr(e);
3985
- delete ae[e];
3986
- }), ae[e];
4026
+ if (rt(e))
4027
+ return br(e);
4028
+ delete fe[e];
4029
+ }), fe[e];
3987
4030
  }
3988
- const _i = {
4031
+ const Ei = {
3989
4032
  number: {
3990
4033
  scientific: { notation: "scientific" },
3991
4034
  engineering: { notation: "engineering" },
@@ -4014,180 +4057,180 @@ const _i = {
4014
4057
  timeZoneName: "short"
4015
4058
  }
4016
4059
  }
4017
- }, xi = {
4060
+ }, Si = {
4018
4061
  fallbackLocale: null,
4019
4062
  loadingDelay: 200,
4020
- formats: _i,
4063
+ formats: Ei,
4021
4064
  warnOnMissingMessages: !0,
4022
4065
  handleMissingMessage: void 0,
4023
4066
  ignoreTag: !0
4024
- }, Ei = xi;
4025
- function te() {
4026
- return Ei;
4067
+ }, wi = Si;
4068
+ function ae() {
4069
+ return wi;
4027
4070
  }
4028
- const Oe = Ee(!1);
4029
- var Si = Object.defineProperty, wi = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Ci = Object.prototype.propertyIsEnumerable, Et = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
4071
+ const De = Pe(!1);
4072
+ var Ti = Object.defineProperty, Hi = Object.defineProperties, Ci = Object.getOwnPropertyDescriptors, Ct = Object.getOwnPropertySymbols, Bi = Object.prototype.hasOwnProperty, Pi = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ai = (e, t) => {
4030
4073
  for (var r in t || (t = {}))
4031
- Hi.call(t, r) && Et(e, r, t[r]);
4032
- if (xt)
4033
- for (var r of xt(t))
4034
- Ci.call(t, r) && Et(e, r, t[r]);
4074
+ Bi.call(t, r) && Bt(e, r, t[r]);
4075
+ if (Ct)
4076
+ for (var r of Ct(t))
4077
+ Pi.call(t, r) && Bt(e, r, t[r]);
4035
4078
  return e;
4036
- }, Pi = (e, t) => wi(e, Ti(t));
4037
- let Ze;
4038
- const ve = Ee(null);
4039
- function St(e) {
4079
+ }, Ri = (e, t) => Hi(e, Ci(t));
4080
+ let nt;
4081
+ const He = Pe(null);
4082
+ function Pt(e) {
4040
4083
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4041
4084
  }
4042
- function we(e, t = te().fallbackLocale) {
4043
- const r = St(e);
4044
- return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
4085
+ function Re(e, t = ae().fallbackLocale) {
4086
+ const r = Pt(e);
4087
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Pt(t)])] : r;
4045
4088
  }
4046
- function V() {
4047
- return Ze ?? void 0;
4089
+ function Q() {
4090
+ return nt ?? void 0;
4048
4091
  }
4049
- ve.subscribe((e) => {
4050
- Ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4092
+ He.subscribe((e) => {
4093
+ nt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4051
4094
  });
4052
- const Ai = (e) => {
4053
- if (e && bi(e) && We(e)) {
4054
- const { loadingDelay: t } = te();
4095
+ const Mi = (e) => {
4096
+ if (e && gi(e) && rt(e)) {
4097
+ const { loadingDelay: t } = ae();
4055
4098
  let r;
4056
- return typeof window < "u" && V() != null && t ? r = window.setTimeout(
4057
- () => Oe.set(!0),
4099
+ return typeof window < "u" && Q() != null && t ? r = window.setTimeout(
4100
+ () => De.set(!0),
4058
4101
  t
4059
- ) : Oe.set(!0), lr(e).then(() => {
4060
- ve.set(e);
4102
+ ) : De.set(!0), br(e).then(() => {
4103
+ He.set(e);
4061
4104
  }).finally(() => {
4062
- clearTimeout(r), Oe.set(!1);
4105
+ clearTimeout(r), De.set(!1);
4063
4106
  });
4064
4107
  }
4065
- return ve.set(e);
4066
- }, ie = Pi(Bi({}, ve), {
4067
- set: Ai
4068
- }), Te = (e) => {
4108
+ return He.set(e);
4109
+ }, ce = Ri(Ai({}, He), {
4110
+ set: Mi
4111
+ }), Me = (e) => {
4069
4112
  const t = /* @__PURE__ */ Object.create(null);
4070
4113
  return (n) => {
4071
4114
  const i = JSON.stringify(n);
4072
4115
  return i in t ? t[i] : t[i] = e(n);
4073
4116
  };
4074
4117
  };
4075
- var Ri = Object.defineProperty, _e = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
4118
+ var Oi = Object.defineProperty, Ce = Object.getOwnPropertySymbols, yr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ut = (e, t) => {
4076
4119
  for (var r in t || (t = {}))
4077
- hr.call(t, r) && wt(e, r, t[r]);
4078
- if (_e)
4079
- for (var r of _e(t))
4080
- cr.call(t, r) && wt(e, r, t[r]);
4120
+ yr.call(t, r) && At(e, r, t[r]);
4121
+ if (Ce)
4122
+ for (var r of Ce(t))
4123
+ gr.call(t, r) && At(e, r, t[r]);
4081
4124
  return e;
4082
- }, oe = (e, t) => {
4125
+ }, he = (e, t) => {
4083
4126
  var r = {};
4084
4127
  for (var n in e)
4085
- hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4086
- if (e != null && _e)
4087
- for (var n of _e(e))
4088
- t.indexOf(n) < 0 && cr.call(e, n) && (r[n] = e[n]);
4128
+ yr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4129
+ if (e != null && Ce)
4130
+ for (var n of Ce(e))
4131
+ t.indexOf(n) < 0 && gr.call(e, n) && (r[n] = e[n]);
4089
4132
  return r;
4090
4133
  };
4091
- const he = (e, t) => {
4092
- const { formats: r } = te();
4134
+ const be = (e, t) => {
4135
+ const { formats: r } = ae();
4093
4136
  if (e in r && t in r[e])
4094
4137
  return r[e][t];
4095
4138
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4096
- }, Mi = Te(
4139
+ }, Ii = Me(
4097
4140
  (e) => {
4098
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4141
+ var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
4099
4142
  if (r == null)
4100
4143
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4101
- return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
4144
+ return n && (i = be("number", n)), new Intl.NumberFormat(r, i);
4102
4145
  }
4103
- ), Oi = Te(
4146
+ ), Li = Me(
4104
4147
  (e) => {
4105
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4148
+ var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
4106
4149
  if (r == null)
4107
4150
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4108
- return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
4151
+ return n ? i = be("date", n) : Object.keys(i).length === 0 && (i = be("date", "short")), new Intl.DateTimeFormat(r, i);
4109
4152
  }
4110
- ), Ii = Te(
4153
+ ), ki = Me(
4111
4154
  (e) => {
4112
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4155
+ var t = e, { locale: r, format: n } = t, i = he(t, ["locale", "format"]);
4113
4156
  if (r == null)
4114
4157
  throw new Error(
4115
4158
  '[svelte-i18n] A "locale" must be set to format time values'
4116
4159
  );
4117
- return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
4160
+ return n ? i = be("time", n) : Object.keys(i).length === 0 && (i = be("time", "short")), new Intl.DateTimeFormat(r, i);
4118
4161
  }
4119
- ), Li = (e = {}) => {
4162
+ ), Ni = (e = {}) => {
4120
4163
  var t = e, {
4121
- locale: r = V()
4122
- } = t, n = oe(t, [
4164
+ locale: r = Q()
4165
+ } = t, n = he(t, [
4123
4166
  "locale"
4124
4167
  ]);
4125
- return Mi(tt({ locale: r }, n));
4126
- }, Ni = (e = {}) => {
4168
+ return Ii(ut({ locale: r }, n));
4169
+ }, $i = (e = {}) => {
4127
4170
  var t = e, {
4128
- locale: r = V()
4129
- } = t, n = oe(t, [
4171
+ locale: r = Q()
4172
+ } = t, n = he(t, [
4130
4173
  "locale"
4131
4174
  ]);
4132
- return Oi(tt({ locale: r }, n));
4133
- }, $i = (e = {}) => {
4175
+ return Li(ut({ locale: r }, n));
4176
+ }, Ui = (e = {}) => {
4134
4177
  var t = e, {
4135
- locale: r = V()
4136
- } = t, n = oe(t, [
4178
+ locale: r = Q()
4179
+ } = t, n = he(t, [
4137
4180
  "locale"
4138
4181
  ]);
4139
- return Ii(tt({ locale: r }, n));
4140
- }, ki = Te(
4182
+ return ki(ut({ locale: r }, n));
4183
+ }, Di = Me(
4141
4184
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4142
- (e, t = V()) => new ci(e, t, te().formats, {
4143
- ignoreTag: te().ignoreTag
4185
+ (e, t = Q()) => new pi(e, t, ae().formats, {
4186
+ ignoreTag: ae().ignoreTag
4144
4187
  })
4145
- ), Ui = (e, t = {}) => {
4188
+ ), Fi = (e, t = {}) => {
4146
4189
  var r, n, i, o;
4147
4190
  let s = t;
4148
4191
  typeof e == "object" && (s = e, e = s.id);
4149
4192
  const {
4150
4193
  values: a,
4151
- locale: h = V(),
4194
+ locale: l = Q(),
4152
4195
  default: u
4153
4196
  } = s;
4154
- if (h == null)
4197
+ if (l == null)
4155
4198
  throw new Error(
4156
4199
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4157
4200
  );
4158
- let l = or(e, h);
4159
- if (!l)
4160
- l = (o = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4161
- else if (typeof l != "string")
4201
+ let c = fr(e, l);
4202
+ if (!c)
4203
+ c = (o = (i = (n = (r = ae()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4204
+ else if (typeof c != "string")
4162
4205
  return console.warn(
4163
- `[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.`
4164
- ), l;
4206
+ `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4207
+ ), c;
4165
4208
  if (!a)
4166
- return l;
4167
- let c = l;
4209
+ return c;
4210
+ let f = c;
4168
4211
  try {
4169
- c = ki(l, h).format(a);
4170
- } catch (f) {
4171
- f instanceof Error && console.warn(
4212
+ f = Di(c, l).format(a);
4213
+ } catch (h) {
4214
+ h instanceof Error && console.warn(
4172
4215
  `[svelte-i18n] Message "${e}" has syntax error:`,
4173
- f.message
4216
+ h.message
4174
4217
  );
4175
4218
  }
4176
- return c;
4177
- }, Di = (e, t) => $i(t).format(e), Fi = (e, t) => Ni(t).format(e), Gi = (e, t) => Li(t).format(e), ji = (e, t = V()) => or(e, t), Vi = ne([ie, ce], () => Ui);
4178
- ne([ie], () => Di);
4179
- ne([ie], () => Fi);
4180
- ne([ie], () => Gi);
4181
- ne([ie, ce], () => ji);
4182
- window.emWidgets = { topic: nn };
4183
- const Xi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4184
- function Tt(e, t) {
4185
- ar(e, t);
4186
- }
4187
- function zi(e) {
4188
- ie.set(e);
4189
- }
4190
- const Ht = {
4219
+ return f;
4220
+ }, Gi = (e, t) => Ui(t).format(e), ji = (e, t) => $i(t).format(e), Vi = (e, t) => Ni(t).format(e), zi = (e, t = Q()) => fr(e, t), Xi = le([ce, ye], () => Fi);
4221
+ le([ce], () => Gi);
4222
+ le([ce], () => ji);
4223
+ le([ce], () => Vi);
4224
+ le([ce, ye], () => zi);
4225
+ window.emWidgets = { topic: sn };
4226
+ const qi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4227
+ function Rt(e, t) {
4228
+ dr(e, t);
4229
+ }
4230
+ function Wi(e) {
4231
+ ce.set(e);
4232
+ }
4233
+ const Mt = {
4191
4234
  en: {
4192
4235
  titleRealityCheck: "Reality Check",
4193
4236
  never: "Never",
@@ -4299,314 +4342,409 @@ const Ht = {
4299
4342
  setFrequency: "Set frequency"
4300
4343
  }
4301
4344
  };
4302
- function qi(e) {
4303
- Er(e, "svelte-z1hv9", '.successMessage{position:absolute;display:block;top:25px;left:50px;background:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emw--color-white, #FFFFFF)}.successMessage.successMessageMobile{display:none}.successMessageMobile{display:block;background:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emw--color-white, #FFFFFF)}.successMessageMobile.successMessage{display:none}.TextContainer{display:flex;flex-direction:column;padding:10px 20px}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-300, #58586B);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.RealityCheckDescription{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));line-height:24px}.RealityCheckDescription.RealityChecktionMobile{font-size:12px;line-height:18px}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerRealityCheckWrapper{position:relative;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px}.PlayerRealityCheckWrapper.PlayerRealityCheckWrapperMobile{padding:20px 15px;max-width:unset}.RealityCheckTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.RealityCheckTitleNone{display:none}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton.ButtonInactive{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);cursor:not-allowed;opacity:0.6}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B)}.PlayerRealityCheckButton{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerDetailsContent{grid-template-columns:1fr}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerRealityCheckWrapperTablet{padding:40px 25% 100% 25%}.PlayerRealityCheckWrapperTablet .PlayerRealityCheckContent{grid-row-gap:40px}.PlayerRealityCheckWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerRealityCheckWrapperTablet .MenuReturnButton span{font-size:20px}');
4345
+ function Zi(e, t) {
4346
+ if (e) {
4347
+ const r = document.createElement("style");
4348
+ r.innerHTML = t, e.appendChild(r);
4349
+ }
4304
4350
  }
4305
- function Ct(e, t, r) {
4351
+ function Qi(e, t) {
4352
+ const r = new URL(t);
4353
+ fetch(r.href).then((n) => n.text()).then((n) => {
4354
+ const i = document.createElement("style");
4355
+ i.innerHTML = n, e && e.appendChild(i);
4356
+ }).catch((n) => {
4357
+ console.error("There was an error while trying to load client styling from URL", n);
4358
+ });
4359
+ }
4360
+ function Ji(e, t, r) {
4361
+ if (window.emMessageBus) {
4362
+ const n = document.createElement("style");
4363
+ window.emMessageBus.subscribe(t, (i) => {
4364
+ n.innerHTML = i, e && e.appendChild(n);
4365
+ });
4366
+ }
4367
+ }
4368
+ function Yi(e) {
4369
+ Sr(e, "svelte-1nvaky6", '.SkeletonContainer{width:100%;display:flex;flex-direction:column;gap:17px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SkeletonContainer .SkeletonMenuButton{display:flex;gap:20px;width:100%}.SkeletonContainer .SkeletonMenuButton.Mobile{margin-top:10px}.SkeletonContainer .SkeletonTextContainer{width:100%;min-height:140px}.SkeletonContainer .SkeletonOptionContainer{display:flex;flex-direction:column;width:100%;min-height:200px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption{display:flex;flex-direction:row;align-items:center;gap:10px;width:100%;margin:0 0 13px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption .SkeletonOptionText{width:20%;margin-top:10px}.SkeletonContainer .SkeletonOptionContainer .Button{margin-top:5px}.successMessage{position:absolute;display:block;top:25px;left:50px;background:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emw--color-white, #FFFFFF)}.successMessage.successMessageMobile{display:none}.successMessageMobile{display:block;background:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emw--color-white, #FFFFFF)}.successMessageMobile.successMessage{display:none}.TextContainer{display:flex;flex-direction:column;padding:10px 20px}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-300, #58586B);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.RealityCheckDescription{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));line-height:24px}.RealityCheckDescription p{min-height:140px}.RealityCheckDescription.RealityChecktionMobile{font-size:12px;line-height:18px}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerRealityCheckWrapper{position:relative;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px}.PlayerRealityCheckWrapper.PlayerRealityCheckWrapperMobile{padding:20px 15px;max-width:unset}.RealityCheckTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.RealityCheckTitleNone{display:none}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton.ButtonInactive{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);cursor:not-allowed;opacity:0.6}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B)}.PlayerRealityCheckButton{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerDetailsContent{grid-template-columns:1fr}.containerTimeout{animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerRealityCheckWrapperTablet{padding:40px 25% 100% 25%}.PlayerRealityCheckWrapperTablet .PlayerRealityCheckContent{grid-row-gap:40px}.PlayerRealityCheckWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerRealityCheckWrapperTablet .MenuReturnButton span{font-size:20px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
4370
+ }
4371
+ function Ot(e, t, r) {
4306
4372
  const n = e.slice();
4307
- return n[29] = t[r].value, n[30] = t[r].text, n[32] = r, n;
4373
+ return n[32] = t[r].value, n[33] = t[r].text, n[35] = r, n;
4308
4374
  }
4309
- function Wi(e) {
4310
- let t, r, n, i, o, s, a, h, u, l, c, f = (
4375
+ function Ki(e, t, r) {
4376
+ const n = e.slice();
4377
+ return n[29] = t[r], n;
4378
+ }
4379
+ function eo(e) {
4380
+ let t, r, n, i, o = (
4311
4381
  /*$_*/
4312
4382
  e[4]("titleRealityCheck") + ""
4313
- ), p, d, b, y = (
4383
+ ), s, a, l, u, c = (
4384
+ /*$_*/
4385
+ e[4]("realityCheckText") + ""
4386
+ ), f, h, d, m, p, y, _ = (
4387
+ /*$_*/
4388
+ e[4]("setFrequency") + ""
4389
+ ), P, I, j, O = (
4390
+ /*isMobile*/
4391
+ e[5] && ro(e)
4392
+ ), B = (
4314
4393
  /*realityCheckSuccess*/
4315
- e[3] && Bt(e)
4316
- );
4394
+ e[3] && Lt(e)
4395
+ ), F = Ve(
4396
+ /*realityCheckOptions*/
4397
+ e[6]
4398
+ ), M = [];
4399
+ for (let H = 0; H < F.length; H += 1)
4400
+ M[H] = kt(Ot(e, F, H));
4317
4401
  return {
4318
4402
  c() {
4319
- y && y.c(), t = D(), r = B("div"), n = z("svg"), i = z("defs"), o = z("style"), s = I(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"), a = z("g"), h = z("g"), u = z("path"), l = D(), c = B("h2"), p = I(f), H(u, "class", "aaa"), H(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), H(u, "transform", "translate(15 15) rotate(180)"), H(h, "transform", "translate(20 158)"), H(a, "transform", "translate(-20 -158)"), H(n, "xmlns", "http://www.w3.org/2000/svg"), H(n, "width", "15"), H(n, "height", "15"), H(n, "viewBox", "0 0 15 15"), H(c, "class", "RealityCheckTitleMobile"), H(r, "class", "MenuReturnButton");
4403
+ t = T("div"), O && O.c(), r = U(), B && B.c(), n = U(), i = T("h2"), s = z(o), a = U(), l = T("div"), u = T("p"), f = z(c), h = U(), d = T("form");
4404
+ for (let H = 0; H < M.length; H += 1)
4405
+ M[H].c();
4406
+ m = U(), p = T("div"), y = T("button"), P = z(_), w(i, "class", "RealityCheckTitle " + /*isMobile*/
4407
+ (e[5] ? "RealityCheckTitleNone" : "")), w(l, "class", "RealityCheckDescription " + /*isMobile*/
4408
+ (e[5] ? "RealityCheckDescriptionMobile" : "")), w(y, "class", "PlayerRealityCheckButton"), w(p, "class", "BottomButtonsArea " + /*isMobile*/
4409
+ (e[5] ? "BottomButtonsAreaMobile" : "")), w(d, "class", "customRadio"), w(t, "class", "containerTimeout");
4320
4410
  },
4321
- m(S, x) {
4322
- y && y.m(S, x), k(S, t, x), k(S, r, x), w(r, n), w(n, i), w(i, o), w(o, s), w(n, a), w(a, h), w(h, u), w(r, l), w(r, c), w(c, p), d || (b = [
4323
- ge(
4324
- r,
4325
- "click",
4326
- /*click_handler*/
4327
- e[16]
4328
- ),
4329
- ge(r, "keydown", null)
4330
- ], d = !0);
4411
+ m(H, G) {
4412
+ D(H, t, G), O && O.m(t, null), b(t, r), B && B.m(t, null), b(t, n), b(t, i), b(i, s), b(t, a), b(t, l), b(l, u), b(u, f), b(t, h), b(t, d);
4413
+ for (let R = 0; R < M.length; R += 1)
4414
+ M[R] && M[R].m(d, null);
4415
+ b(d, m), b(d, p), b(p, y), b(y, P), I || (j = Te(
4416
+ y,
4417
+ "click",
4418
+ /*submitRealityCheckValue*/
4419
+ e[7]
4420
+ ), I = !0);
4331
4421
  },
4332
- p(S, x) {
4333
- /*realityCheckSuccess*/
4334
- S[3] ? y ? y.p(S, x) : (y = Bt(S), y.c(), y.m(t.parentNode, t)) : y && (y.d(1), y = null), x[0] & /*$_*/
4335
- 16 && f !== (f = /*$_*/
4336
- S[4]("titleRealityCheck") + "") && j(p, f);
4422
+ p(H, G) {
4423
+ if (
4424
+ /*isMobile*/
4425
+ H[5] && O.p(H, G), /*realityCheckSuccess*/
4426
+ H[3] ? B ? B.p(H, G) : (B = Lt(H), B.c(), B.m(t, n)) : B && (B.d(1), B = null), G[0] & /*$_*/
4427
+ 16 && o !== (o = /*$_*/
4428
+ H[4]("titleRealityCheck") + "") && te(s, o), G[0] & /*$_*/
4429
+ 16 && c !== (c = /*$_*/
4430
+ H[4]("realityCheckText") + "") && te(f, c), G[0] & /*realityCheckOptions, realityCheckValue*/
4431
+ 68
4432
+ ) {
4433
+ F = Ve(
4434
+ /*realityCheckOptions*/
4435
+ H[6]
4436
+ );
4437
+ let R;
4438
+ for (R = 0; R < F.length; R += 1) {
4439
+ const ge = Ot(H, F, R);
4440
+ M[R] ? M[R].p(ge, G) : (M[R] = kt(ge), M[R].c(), M[R].m(d, m));
4441
+ }
4442
+ for (; R < M.length; R += 1)
4443
+ M[R].d(1);
4444
+ M.length = F.length;
4445
+ }
4446
+ G[0] & /*$_*/
4447
+ 16 && _ !== (_ = /*$_*/
4448
+ H[4]("setFrequency") + "") && te(P, _);
4337
4449
  },
4338
- d(S) {
4339
- S && (O(t), O(r)), y && y.d(S), d = !1, re(b);
4450
+ d(H) {
4451
+ H && $(t), O && O.d(), B && B.d(), Dt(M, H), I = !1, j();
4340
4452
  }
4341
4453
  };
4342
4454
  }
4343
- function Bt(e) {
4344
- let t, r = (
4345
- /*$_*/
4346
- e[4]("successMessage") + ""
4347
- ), n;
4455
+ function to(e) {
4456
+ let t, r, n, i, o, s, a, l, u;
4457
+ function c(p, y) {
4458
+ return (
4459
+ /*isMobile*/
4460
+ p[5] ? io : no
4461
+ );
4462
+ }
4463
+ let h = c(e)(e), d = Ve({ length: 6 }), m = [];
4464
+ for (let p = 0; p < d.length; p += 1)
4465
+ m[p] = oo(Ki(e, d, p));
4348
4466
  return {
4349
4467
  c() {
4350
- t = B("div"), n = I(r), H(t, "class", "successMessageMobile");
4468
+ t = T("div"), h.c(), r = U(), n = T("div"), i = T("ui-skeleton"), o = U(), s = T("div");
4469
+ for (let p = 0; p < m.length; p += 1)
4470
+ m[p].c();
4471
+ a = U(), l = T("div"), u = T("ui-skeleton"), A(i, "structure", "text"), A(i, "height", "15px"), A(i, "width", "100%"), A(i, "margin-bottom", "7px"), A(
4472
+ i,
4473
+ "rows",
4474
+ /*isMobile*/
4475
+ e[5] ? "5" : "3"
4476
+ ), w(n, "class", "SkeletonTextContainer"), A(u, "structure", "rectangle"), A(u, "height", "50px"), A(u, "margin-bottom", "0"), A(u, "borderRadius", "5px"), A(
4477
+ u,
4478
+ "width",
4479
+ /*isMobile*/
4480
+ e[5] ? "100%" : "350px"
4481
+ ), w(l, "class", "Button"), w(s, "class", "SkeletonOptionContainer"), w(t, "class", "SkeletonContainer");
4351
4482
  },
4352
- m(i, o) {
4353
- k(i, t, o), w(t, n);
4483
+ m(p, y) {
4484
+ D(p, t, y), h.m(t, null), b(t, r), b(t, n), b(n, i), b(t, o), b(t, s);
4485
+ for (let _ = 0; _ < m.length; _ += 1)
4486
+ m[_] && m[_].m(s, null);
4487
+ b(s, a), b(s, l), b(l, u);
4354
4488
  },
4355
- p(i, o) {
4356
- o[0] & /*$_*/
4357
- 16 && r !== (r = /*$_*/
4358
- i[4]("successMessage") + "") && j(n, r);
4489
+ p(p, y) {
4490
+ h.p(p, y);
4359
4491
  },
4360
- d(i) {
4361
- i && O(t);
4492
+ d(p) {
4493
+ p && $(t), h.d(), Dt(m, p);
4362
4494
  }
4363
4495
  };
4364
4496
  }
4365
- function Pt(e) {
4366
- let t, r = (
4497
+ function ro(e) {
4498
+ let t, r, n, i, o, s, a, l, u, c, f, h = (
4367
4499
  /*$_*/
4368
- e[4]("successMessage") + ""
4369
- ), n;
4500
+ e[4]("titleRealityCheck") + ""
4501
+ ), d, m, p, y = (
4502
+ /*realityCheckSuccess*/
4503
+ e[3] && It(e)
4504
+ );
4370
4505
  return {
4371
4506
  c() {
4372
- t = B("div"), n = I(r), H(t, "class", "successMessage " + /*isMobile*/
4373
- (e[5] ? "successMessageMobile" : ""));
4507
+ y && y.c(), t = U(), r = T("div"), n = J("svg"), i = J("defs"), o = J("style"), s = z(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));}"), a = J("g"), l = J("g"), u = J("path"), c = U(), f = T("h2"), d = z(h), w(u, "class", "aaa"), w(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), w(u, "transform", "translate(15 15) rotate(180)"), w(l, "transform", "translate(20 158)"), w(a, "transform", "translate(-20 -158)"), w(n, "xmlns", "http://www.w3.org/2000/svg"), w(n, "width", "15"), w(n, "height", "15"), w(n, "viewBox", "0 0 15 15"), w(f, "class", "RealityCheckTitleMobile"), w(r, "class", "MenuReturnButton");
4374
4508
  },
4375
- m(i, o) {
4376
- k(i, t, o), w(t, n);
4509
+ m(_, P) {
4510
+ y && y.m(_, P), D(_, t, P), D(_, r, P), b(r, n), b(n, i), b(i, o), b(o, s), b(n, a), b(a, l), b(l, u), b(r, c), b(r, f), b(f, d), m || (p = [
4511
+ Te(
4512
+ r,
4513
+ "click",
4514
+ /*click_handler*/
4515
+ e[17]
4516
+ ),
4517
+ Te(r, "keydown", null)
4518
+ ], m = !0);
4377
4519
  },
4378
- p(i, o) {
4379
- o[0] & /*$_*/
4380
- 16 && r !== (r = /*$_*/
4381
- i[4]("successMessage") + "") && j(n, r);
4520
+ p(_, P) {
4521
+ /*realityCheckSuccess*/
4522
+ _[3] ? y ? y.p(_, P) : (y = It(_), y.c(), y.m(t.parentNode, t)) : y && (y.d(1), y = null), P[0] & /*$_*/
4523
+ 16 && h !== (h = /*$_*/
4524
+ _[4]("titleRealityCheck") + "") && te(d, h);
4382
4525
  },
4383
- d(i) {
4384
- i && O(t);
4526
+ d(_) {
4527
+ _ && ($(t), $(r)), y && y.d(_), m = !1, ue(p);
4385
4528
  }
4386
4529
  };
4387
4530
  }
4388
- function Zi(e) {
4389
- let t, r, n, i, o = (
4531
+ function It(e) {
4532
+ let t, r = (
4390
4533
  /*$_*/
4391
- e[4]("setFrequency") + ""
4392
- ), s, a, h, u = it(
4393
- /*realityCheckOptions*/
4394
- e[6]
4395
- ), l = [];
4396
- for (let c = 0; c < u.length; c += 1)
4397
- l[c] = At(Ct(e, u, c));
4534
+ e[4]("successMessage") + ""
4535
+ ), n;
4398
4536
  return {
4399
4537
  c() {
4400
- t = B("form");
4401
- for (let c = 0; c < l.length; c += 1)
4402
- l[c].c();
4403
- r = D(), n = B("div"), i = B("button"), s = I(o), H(i, "class", "PlayerRealityCheckButton"), H(n, "class", "BottomButtonsArea " + /*isMobile*/
4404
- (e[5] ? "BottomButtonsAreaMobile" : "")), H(t, "class", "customRadio");
4538
+ t = T("div"), n = z(r), w(t, "class", "successMessageMobile");
4405
4539
  },
4406
- m(c, f) {
4407
- k(c, t, f);
4408
- for (let p = 0; p < l.length; p += 1)
4409
- l[p] && l[p].m(t, null);
4410
- w(t, r), w(t, n), w(n, i), w(i, s), a || (h = ge(
4411
- i,
4412
- "click",
4413
- /*submitRealityCheckValue*/
4414
- e[7]
4415
- ), a = !0);
4540
+ m(i, o) {
4541
+ D(i, t, o), b(t, n);
4416
4542
  },
4417
- p(c, f) {
4418
- if (f[0] & /*realityCheckOptions, realityCheckValue*/
4419
- 68) {
4420
- u = it(
4421
- /*realityCheckOptions*/
4422
- c[6]
4423
- );
4424
- let p;
4425
- for (p = 0; p < u.length; p += 1) {
4426
- const d = Ct(c, u, p);
4427
- l[p] ? l[p].p(d, f) : (l[p] = At(d), l[p].c(), l[p].m(t, r));
4428
- }
4429
- for (; p < l.length; p += 1)
4430
- l[p].d(1);
4431
- l.length = u.length;
4432
- }
4433
- f[0] & /*$_*/
4434
- 16 && o !== (o = /*$_*/
4435
- c[4]("setFrequency") + "") && j(s, o);
4543
+ p(i, o) {
4544
+ o[0] & /*$_*/
4545
+ 16 && r !== (r = /*$_*/
4546
+ i[4]("successMessage") + "") && te(n, r);
4436
4547
  },
4437
- d(c) {
4438
- c && O(t), Tr(l, c), a = !1, h();
4548
+ d(i) {
4549
+ i && $(t);
4439
4550
  }
4440
4551
  };
4441
4552
  }
4442
- function Qi(e) {
4553
+ function Lt(e) {
4443
4554
  let t, r = (
4444
4555
  /*$_*/
4445
- e[4]("realityCheckLoading") + ""
4556
+ e[4]("successMessage") + ""
4446
4557
  ), n;
4447
4558
  return {
4448
4559
  c() {
4449
- t = B("p"), n = I(r);
4560
+ t = T("div"), n = z(r), w(t, "class", "successMessage " + /*isMobile*/
4561
+ (e[5] ? "successMessageMobile" : ""));
4450
4562
  },
4451
4563
  m(i, o) {
4452
- k(i, t, o), w(t, n);
4564
+ D(i, t, o), b(t, n);
4453
4565
  },
4454
4566
  p(i, o) {
4455
4567
  o[0] & /*$_*/
4456
4568
  16 && r !== (r = /*$_*/
4457
- i[4]("realityCheckLoading") + "") && j(n, r);
4569
+ i[4]("successMessage") + "") && te(n, r);
4458
4570
  },
4459
4571
  d(i) {
4460
- i && O(t);
4572
+ i && $(t);
4461
4573
  }
4462
4574
  };
4463
4575
  }
4464
- function At(e) {
4576
+ function kt(e) {
4465
4577
  let t, r, n, i, o = (
4466
4578
  /*text*/
4467
- e[30] + ""
4468
- ), s, a, h, u;
4579
+ e[33] + ""
4580
+ ), s, a, l, u;
4469
4581
  return a = Hr(
4470
4582
  /*$$binding_groups*/
4471
- e[18][0]
4583
+ e[19][0]
4472
4584
  ), {
4473
4585
  c() {
4474
- t = B("div"), r = B("input"), n = D(), i = B("label"), s = I(o), H(r, "type", "radio"), H(
4586
+ t = T("div"), r = T("input"), n = U(), i = T("label"), s = z(o), w(r, "type", "radio"), w(
4475
4587
  r,
4476
4588
  "id",
4477
4589
  /*value*/
4478
- e[29]
4590
+ e[32]
4479
4591
  ), r.__value = /*value*/
4480
- e[29], Br(r, r.__value), H(
4592
+ e[32], Br(r, r.__value), w(
4481
4593
  i,
4482
4594
  "for",
4483
4595
  /*value*/
4484
- e[29]
4596
+ e[32]
4485
4597
  ), a.p(r);
4486
4598
  },
4487
- m(l, c) {
4488
- k(l, t, c), w(t, r), r.checked = r.__value === /*realityCheckValue*/
4489
- e[2], w(t, n), w(t, i), w(i, s), h || (u = ge(
4599
+ m(c, f) {
4600
+ D(c, t, f), b(t, r), r.checked = r.__value === /*realityCheckValue*/
4601
+ e[2], b(t, n), b(t, i), b(i, s), l || (u = Te(
4490
4602
  r,
4491
4603
  "change",
4492
4604
  /*input_change_handler*/
4493
- e[17]
4494
- ), h = !0);
4605
+ e[18]
4606
+ ), l = !0);
4495
4607
  },
4496
- p(l, c) {
4497
- c[0] & /*realityCheckValue*/
4608
+ p(c, f) {
4609
+ f[0] & /*realityCheckValue*/
4498
4610
  4 && (r.checked = r.__value === /*realityCheckValue*/
4499
- l[2]);
4611
+ c[2]);
4500
4612
  },
4501
- d(l) {
4502
- l && O(t), a.r(), h = !1, u();
4613
+ d(c) {
4614
+ c && $(t), a.r(), l = !1, u();
4503
4615
  }
4504
4616
  };
4505
4617
  }
4506
- function Ji(e) {
4507
- let t, r, n, i, o = (
4508
- /*$_*/
4509
- e[4]("titleRealityCheck") + ""
4510
- ), s, a, h, u, l = (
4511
- /*$_*/
4512
- e[4]("realityCheckText") + ""
4513
- ), c, f, p = (
4514
- /*isMobile*/
4515
- e[5] && Wi(e)
4516
- ), d = (
4517
- /*realityCheckSuccess*/
4518
- e[3] && Pt(e)
4519
- );
4520
- function b(x, C) {
4618
+ function no(e) {
4619
+ let t;
4620
+ return {
4621
+ c() {
4622
+ t = T("div"), t.innerHTML = '<ui-skeleton structure="title" width="200px" margin-top="20px"></ui-skeleton>', w(t, "class", "SkeletonHeaderText");
4623
+ },
4624
+ m(r, n) {
4625
+ D(r, t, n);
4626
+ },
4627
+ p: N,
4628
+ d(r) {
4629
+ r && $(t);
4630
+ }
4631
+ };
4632
+ }
4633
+ function io(e) {
4634
+ let t, r, n, i;
4635
+ return {
4636
+ c() {
4637
+ t = T("div"), r = T("ui-skeleton"), n = U(), i = T("ui-skeleton"), A(r, "structure", "title"), A(r, "width", "20px"), A(r, "height", "20px"), A(r, "margin-top", "5px"), A(r, "margin-bottom", "15px"), A(i, "structure", "title"), A(i, "width", "100px"), A(i, "height", "20px"), A(i, "margin-top", "5px"), A(i, "margin-bottom", "15px"), w(t, "class", "SkeletonMenuButton " + /*isMobile*/
4638
+ (e[5] ? "Mobile" : ""));
4639
+ },
4640
+ m(o, s) {
4641
+ D(o, t, s), b(t, r), b(t, n), b(t, i);
4642
+ },
4643
+ p: N,
4644
+ d(o) {
4645
+ o && $(t);
4646
+ }
4647
+ };
4648
+ }
4649
+ function oo(e) {
4650
+ let t;
4651
+ return {
4652
+ c() {
4653
+ t = T("div"), t.innerHTML = '<div class="SkeletonOptionCircle"><ui-skeleton structure="circle" size="20px"></ui-skeleton></div> <div class="SkeletonOptionText"><ui-skeleton structure="text" height="10px" width="auto"></ui-skeleton></div>', w(t, "class", "SkeletonOption");
4654
+ },
4655
+ m(r, n) {
4656
+ D(r, t, n);
4657
+ },
4658
+ p: N,
4659
+ d(r) {
4660
+ r && $(t);
4661
+ }
4662
+ };
4663
+ }
4664
+ function so(e) {
4665
+ let t;
4666
+ function r(o, s) {
4521
4667
  return (
4522
- /*isLoading*/
4523
- x[1] ? Qi : Zi
4668
+ /*skeletonLoading*/
4669
+ o[1] ? to : eo
4524
4670
  );
4525
4671
  }
4526
- let y = b(e), S = y(e);
4672
+ let n = r(e), i = n(e);
4527
4673
  return {
4528
4674
  c() {
4529
- t = B("div"), p && p.c(), r = D(), d && d.c(), n = D(), i = B("h2"), s = I(o), a = D(), h = B("div"), u = B("p"), c = I(l), f = D(), S.c(), H(i, "class", "RealityCheckTitle " + /*isMobile*/
4530
- (e[5] ? "RealityCheckTitleNone" : "")), H(h, "class", "RealityCheckDescription " + /*isMobile*/
4531
- (e[5] ? "RealityCheckDescriptionMobile" : "")), H(t, "class", "PlayerRealityCheckWrapper " + /*isMobile*/
4675
+ t = T("div"), i.c(), w(t, "class", "PlayerRealityCheckWrapper " + /*isMobile*/
4532
4676
  (e[5] ? "PlayerRealityCheckWrapperMobile" : ""));
4533
4677
  },
4534
- m(x, C) {
4535
- k(x, t, C), p && p.m(t, null), w(t, r), d && d.m(t, null), w(t, n), w(t, i), w(i, s), w(t, a), w(t, h), w(h, u), w(u, c), w(h, f), S.m(h, null), e[19](t);
4678
+ m(o, s) {
4679
+ D(o, t, s), i.m(t, null), e[20](t);
4536
4680
  },
4537
- p(x, C) {
4538
- /*isMobile*/
4539
- x[5] && p.p(x, C), /*realityCheckSuccess*/
4540
- x[3] ? d ? d.p(x, C) : (d = Pt(x), d.c(), d.m(t, n)) : d && (d.d(1), d = null), C[0] & /*$_*/
4541
- 16 && o !== (o = /*$_*/
4542
- x[4]("titleRealityCheck") + "") && j(s, o), C[0] & /*$_*/
4543
- 16 && l !== (l = /*$_*/
4544
- x[4]("realityCheckText") + "") && j(c, l), y === (y = b(x)) && S ? S.p(x, C) : (S.d(1), S = y(x), S && (S.c(), S.m(h, null)));
4681
+ p(o, s) {
4682
+ n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4545
4683
  },
4546
- i: M,
4547
- o: M,
4548
- d(x) {
4549
- x && O(t), p && p.d(), d && d.d(), S.d(), e[19](null);
4684
+ i: N,
4685
+ o: N,
4686
+ d(o) {
4687
+ o && $(t), i.d(), e[20](null);
4550
4688
  }
4551
4689
  };
4552
4690
  }
4553
- function Yi(e, t, r) {
4691
+ function ao(e, t, r) {
4554
4692
  let n;
4555
- xr(e, Vi, (m) => r(4, n = m));
4556
- let { endpoint: i = "" } = t, { playerid: o = "" } = t, { session: s = "" } = t, { lang: a = "en" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: l = "" } = t, c, f = Xi(window.navigator.userAgent) !== "PC", p = !0, d, b = !1, y = [];
4557
- const S = () => {
4558
- const m = new URL(`${i}/v1/player/${o}/realitycheck`), g = new Headers();
4559
- g.append("X-SessionID", s);
4560
- const R = { method: "GET", headers: g };
4561
- fetch(m.href, R).then((P) => P.json()).then(
4562
- (P) => {
4563
- r(2, d = P.UserRealityCheckValue);
4693
+ Er(e, Xi, (g) => r(4, n = g));
4694
+ let { endpoint: i = "" } = t, { playerid: o = "" } = t, { session: s = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t, h, d = qi(window.navigator.userAgent) !== "PC", m = !0, p, y = !1, _ = [];
4695
+ const P = () => {
4696
+ const g = new URL(`${i}/v1/player/${o}/realitycheck`), E = new Headers();
4697
+ E.append("X-SessionID", s);
4698
+ const W = { method: "GET", headers: E };
4699
+ fetch(g.href, W).then((L) => L.json()).then(
4700
+ (L) => {
4701
+ r(2, p = L.UserRealityCheckValue);
4564
4702
  },
4565
- (P) => {
4566
- console.error(P);
4703
+ (L) => {
4704
+ console.error(L);
4567
4705
  }
4568
4706
  );
4569
- }, x = () => {
4570
- const m = new URL(`${i}/v1/player/${o}/availablerealityvalues`), g = new Headers();
4571
- g.append("X-SessionID", s), g.append("accept", "application/json");
4572
- const R = { method: "GET", headers: g };
4573
- fetch(m.href, R).then((P) => P.json()).then(
4574
- (P) => {
4575
- C(P.AvailableRealityCheckValues), r(1, p = !1);
4707
+ }, I = () => {
4708
+ const g = new URL(`${i}/v1/player/${o}/availablerealityvalues`), E = new Headers();
4709
+ E.append("X-SessionID", s), E.append("accept", "application/json");
4710
+ const W = { method: "GET", headers: E };
4711
+ fetch(g.href, W).then((L) => L.json()).then(
4712
+ (L) => {
4713
+ j(L.AvailableRealityCheckValues), r(1, m = !1);
4576
4714
  },
4577
- (P) => {
4578
- console.error(P);
4715
+ (L) => {
4716
+ console.error(L);
4579
4717
  }
4580
4718
  );
4581
- }, C = (m) => {
4582
- m.forEach((g) => {
4583
- g == 0 ? y.push({
4584
- value: g.toString(),
4719
+ }, j = (g) => {
4720
+ g.forEach((E) => {
4721
+ E == 0 ? _.push({
4722
+ value: E.toString(),
4585
4723
  text: n("never")
4586
- }) : g < 60 ? y.push({
4587
- value: g.toString(),
4588
- text: g + " " + n("minutes")
4589
- }) : g == 60 ? y.push({
4590
- value: g.toString(),
4724
+ }) : E < 60 ? _.push({
4725
+ value: E.toString(),
4726
+ text: E + " " + n("minutes")
4727
+ }) : E == 60 ? _.push({
4728
+ value: E.toString(),
4591
4729
  text: n("oneHour")
4592
- }) : g > 60 && y.push({
4593
- value: g.toString(),
4594
- text: g / 60 + " " + n("hours")
4730
+ }) : E > 60 && _.push({
4731
+ value: E.toString(),
4732
+ text: E / 60 + " " + n("hours")
4595
4733
  });
4596
4734
  });
4597
- }, G = async () => {
4598
- const m = new URL(`${i}/v1/player/${o}/realitycheck`), g = new Headers();
4599
- g.append("X-SessionID", s), g.append("Content-Type", "application/json"), g.append("Accept", "application/json"), g.append("realityCheckValue", `${parseInt(d, 10)}`);
4600
- const R = { method: "POST", headers: g };
4601
- return await fetch(m.href, R).then(
4602
- (P) => P.status == 200,
4603
- (P) => (console.error(P), !1)
4735
+ }, O = async () => {
4736
+ const g = new URL(`${i}/v1/player/${o}/realitycheck`), E = new Headers();
4737
+ E.append("X-SessionID", s), E.append("Content-Type", "application/json"), E.append("Accept", "application/json"), E.append("realityCheckValue", `${parseInt(p, 10)}`);
4738
+ const W = { method: "POST", headers: E };
4739
+ return await fetch(g.href, W).then(
4740
+ (L) => L.status == 200,
4741
+ (L) => (console.error(L), !1)
4604
4742
  );
4605
- }, L = (m) => {
4606
- m.preventDefault(), G().then((g) => {
4607
- g && (X(), S());
4743
+ }, B = (g) => {
4744
+ g.preventDefault(), O().then((E) => {
4745
+ E && (F(), P());
4608
4746
  });
4609
- }, X = () => {
4747
+ }, F = () => {
4610
4748
  window.postMessage(
4611
4749
  {
4612
4750
  type: "WidgetNotification",
@@ -4616,92 +4754,82 @@ function Yi(e, t, r) {
4616
4754
  }
4617
4755
  },
4618
4756
  window.location.href
4619
- ), r(3, b = !0), setTimeout(() => r(3, b = !1), 2e3);
4620
- }, se = () => {
4757
+ ), r(3, y = !0), setTimeout(() => r(3, y = !1), 2e3);
4758
+ }, M = () => {
4621
4759
  window.postMessage(
4622
4760
  {
4623
4761
  type: "PlayerAccountMenuActive",
4624
- isMobile: f
4762
+ isMobile: d
4625
4763
  },
4626
4764
  window.location.href
4627
4765
  );
4628
- }, fr = () => {
4629
- zi(a);
4630
- }, pr = () => {
4631
- fetch(l).then((g) => g.json()).then((g) => {
4632
- Object.keys(g).forEach((R) => {
4633
- Tt(R, g[R]);
4766
+ }, H = () => {
4767
+ Wi(a);
4768
+ }, G = () => {
4769
+ fetch(f).then((E) => E.json()).then((E) => {
4770
+ Object.keys(E).forEach((W) => {
4771
+ Rt(W, E[W]);
4634
4772
  });
4635
- }).catch((g) => {
4636
- console.log(g);
4773
+ }).catch((E) => {
4774
+ console.log(E);
4637
4775
  });
4638
4776
  };
4639
- Object.keys(Ht).forEach((m) => {
4640
- Tt(m, Ht[m]);
4777
+ Object.keys(Mt).forEach((g) => {
4778
+ Rt(g, Mt[g]);
4779
+ }), Rr(() => () => {
4641
4780
  });
4642
- const dr = () => {
4643
- let m = document.createElement("style");
4644
- m.innerHTML = h, c.appendChild(m);
4645
- }, mr = () => {
4646
- let m = new URL(u), g = document.createElement("style");
4647
- fetch(m.href).then((R) => R.text()).then((R) => {
4648
- g.innerHTML = R, setTimeout(
4649
- () => {
4650
- c.appendChild(g);
4651
- },
4652
- 1
4653
- );
4654
- });
4655
- }, br = [[]], yr = () => se();
4656
- function gr() {
4657
- d = this.__value, r(2, d);
4781
+ const R = [[]], ge = () => M();
4782
+ function vr() {
4783
+ p = this.__value, r(2, p);
4658
4784
  }
4659
- function vr(m) {
4660
- Ie[m ? "unshift" : "push"](() => {
4661
- c = m, r(0, c);
4785
+ function xr(g) {
4786
+ Fe[g ? "unshift" : "push"](() => {
4787
+ h = g, r(0, h);
4662
4788
  });
4663
4789
  }
4664
- return e.$$set = (m) => {
4665
- "endpoint" in m && r(9, i = m.endpoint), "playerid" in m && r(10, o = m.playerid), "session" in m && r(11, s = m.session), "lang" in m && r(12, a = m.lang), "clientstyling" in m && r(13, h = m.clientstyling), "clientstylingurl" in m && r(14, u = m.clientstylingurl), "translationurl" in m && r(15, l = m.translationurl);
4790
+ return e.$$set = (g) => {
4791
+ "endpoint" in g && r(9, i = g.endpoint), "playerid" in g && r(10, o = g.playerid), "session" in g && r(11, s = g.session), "lang" in g && r(12, a = g.lang), "clientstyling" in g && r(13, l = g.clientstyling), "clientstylingurl" in g && r(14, u = g.clientstylingurl), "mbsource" in g && r(15, c = g.mbsource), "translationurl" in g && r(16, f = g.translationurl);
4666
4792
  }, e.$$.update = () => {
4667
4793
  e.$$.dirty[0] & /*lang*/
4668
- 4096 && a && fr(), e.$$.dirty[0] & /*endpoint, playerid, session*/
4669
- 3584 && i && o && s && S(), e.$$.dirty[0] & /*endpoint, playerid, session*/
4670
- 3584 && i && o && s && x(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4671
- 16385 && u && c && mr(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4672
- 8193 && h && c && dr(), e.$$.dirty[0] & /*translationurl*/
4673
- 32768 && l && pr();
4794
+ 4096 && a && H(), e.$$.dirty[0] & /*endpoint, playerid, session*/
4795
+ 3584 && i && o && s && P(), e.$$.dirty[0] & /*endpoint, playerid, session*/
4796
+ 3584 && i && o && s && I(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
4797
+ 8193 && l && h && Zi(h, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
4798
+ 16385 && u && h && Qi(h, u), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
4799
+ 32769 && c && h && Ji(h, `${c}.Style`), e.$$.dirty[0] & /*translationurl*/
4800
+ 65536 && f && G();
4674
4801
  }, [
4675
- c,
4802
+ h,
4803
+ m,
4676
4804
  p,
4677
- d,
4678
- b,
4679
- n,
4680
- f,
4681
4805
  y,
4682
- L,
4683
- se,
4806
+ n,
4807
+ d,
4808
+ _,
4809
+ B,
4810
+ M,
4684
4811
  i,
4685
4812
  o,
4686
4813
  s,
4687
4814
  a,
4688
- h,
4689
- u,
4690
4815
  l,
4691
- yr,
4692
- gr,
4693
- br,
4694
- vr
4816
+ u,
4817
+ c,
4818
+ f,
4819
+ ge,
4820
+ vr,
4821
+ R,
4822
+ xr
4695
4823
  ];
4696
4824
  }
4697
- class Ki extends Fr {
4825
+ class uo extends jr {
4698
4826
  constructor(t) {
4699
- super(), Ur(
4827
+ super(), Fr(
4700
4828
  this,
4701
4829
  t,
4702
- Yi,
4703
- Ji,
4704
- Mt,
4830
+ ao,
4831
+ so,
4832
+ $t,
4705
4833
  {
4706
4834
  endpoint: 9,
4707
4835
  playerid: 10,
@@ -4709,9 +4837,10 @@ class Ki extends Fr {
4709
4837
  lang: 12,
4710
4838
  clientstyling: 13,
4711
4839
  clientstylingurl: 14,
4712
- translationurl: 15
4840
+ mbsource: 15,
4841
+ translationurl: 16
4713
4842
  },
4714
- qi,
4843
+ Yi,
4715
4844
  [-1, -1]
4716
4845
  );
4717
4846
  }
@@ -4719,46 +4848,52 @@ class Ki extends Fr {
4719
4848
  return this.$$.ctx[9];
4720
4849
  }
4721
4850
  set endpoint(t) {
4722
- this.$$set({ endpoint: t }), N();
4851
+ this.$$set({ endpoint: t }), V();
4723
4852
  }
4724
4853
  get playerid() {
4725
4854
  return this.$$.ctx[10];
4726
4855
  }
4727
4856
  set playerid(t) {
4728
- this.$$set({ playerid: t }), N();
4857
+ this.$$set({ playerid: t }), V();
4729
4858
  }
4730
4859
  get session() {
4731
4860
  return this.$$.ctx[11];
4732
4861
  }
4733
4862
  set session(t) {
4734
- this.$$set({ session: t }), N();
4863
+ this.$$set({ session: t }), V();
4735
4864
  }
4736
4865
  get lang() {
4737
4866
  return this.$$.ctx[12];
4738
4867
  }
4739
4868
  set lang(t) {
4740
- this.$$set({ lang: t }), N();
4869
+ this.$$set({ lang: t }), V();
4741
4870
  }
4742
4871
  get clientstyling() {
4743
4872
  return this.$$.ctx[13];
4744
4873
  }
4745
4874
  set clientstyling(t) {
4746
- this.$$set({ clientstyling: t }), N();
4875
+ this.$$set({ clientstyling: t }), V();
4747
4876
  }
4748
4877
  get clientstylingurl() {
4749
4878
  return this.$$.ctx[14];
4750
4879
  }
4751
4880
  set clientstylingurl(t) {
4752
- this.$$set({ clientstylingurl: t }), N();
4881
+ this.$$set({ clientstylingurl: t }), V();
4753
4882
  }
4754
- get translationurl() {
4883
+ get mbsource() {
4755
4884
  return this.$$.ctx[15];
4756
4885
  }
4886
+ set mbsource(t) {
4887
+ this.$$set({ mbsource: t }), V();
4888
+ }
4889
+ get translationurl() {
4890
+ return this.$$.ctx[16];
4891
+ }
4757
4892
  set translationurl(t) {
4758
- this.$$set({ translationurl: t }), N();
4893
+ this.$$set({ translationurl: t }), V();
4759
4894
  }
4760
4895
  }
4761
- Dr(Ki, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4896
+ Gr(uo, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
4762
4897
  export {
4763
- Ki as P
4898
+ uo as P
4764
4899
  };