@everymatrix/player-transaction-history 1.76.0 → 1.76.3

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,28 +1,28 @@
1
1
  function w() {
2
2
  }
3
- function Bt(e) {
3
+ function Tt(e) {
4
4
  return e();
5
5
  }
6
- function rt() {
6
+ function Ye() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
- function oe(e) {
10
- e.forEach(Bt);
9
+ function se(e) {
10
+ e.forEach(Tt);
11
11
  }
12
- function Ye(e) {
12
+ function ze(e) {
13
13
  return typeof e == "function";
14
14
  }
15
- function At(e, t) {
15
+ function Ht(e, t) {
16
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
17
17
  }
18
18
  let he;
19
- function nt(e, t) {
19
+ function Ke(e, t) {
20
20
  return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
21
21
  }
22
- function ar(e) {
22
+ function nr(e) {
23
23
  return Object.keys(e).length === 0;
24
24
  }
25
- function Pt(e, ...t) {
25
+ function St(e, ...t) {
26
26
  if (e == null) {
27
27
  for (const n of t)
28
28
  n(void 0);
@@ -31,20 +31,20 @@ function Pt(e, ...t) {
31
31
  const r = e.subscribe(...t);
32
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
33
33
  }
34
- function ur(e, t, r) {
35
- e.$$.on_destroy.push(Pt(t, r));
34
+ function ir(e, t, r) {
35
+ e.$$.on_destroy.push(St(t, r));
36
36
  }
37
37
  function x(e, t) {
38
38
  e.appendChild(t);
39
39
  }
40
- function hr(e, t, r) {
41
- const n = lr(e);
40
+ function or(e, t, r) {
41
+ const n = sr(e);
42
42
  if (!n.getElementById(t)) {
43
- const i = N("style");
44
- i.id = t, i.textContent = r, cr(n, i);
43
+ const i = I("style");
44
+ i.id = t, i.textContent = r, ar(n, i);
45
45
  }
46
46
  }
47
- function lr(e) {
47
+ function sr(e) {
48
48
  if (!e)
49
49
  return document;
50
50
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -54,45 +54,45 @@ function lr(e) {
54
54
  t
55
55
  ) : e.ownerDocument;
56
56
  }
57
- function cr(e, t) {
57
+ function ar(e, t) {
58
58
  return x(
59
59
  /** @type {Document} */
60
60
  e.head || e,
61
61
  t
62
62
  ), t.sheet;
63
63
  }
64
- function se(e, t, r) {
64
+ function ae(e, t, r) {
65
65
  e.insertBefore(t, r || null);
66
66
  }
67
- function Q(e) {
67
+ function q(e) {
68
68
  e.parentNode && e.parentNode.removeChild(e);
69
69
  }
70
- function N(e) {
70
+ function I(e) {
71
71
  return document.createElement(e);
72
72
  }
73
73
  function G(e) {
74
74
  return document.createElementNS("http://www.w3.org/2000/svg", e);
75
75
  }
76
- function te(e) {
76
+ function re(e) {
77
77
  return document.createTextNode(e);
78
78
  }
79
- function Le() {
80
- return te(" ");
79
+ function Oe() {
80
+ return re(" ");
81
81
  }
82
- function fr(e, t, r, n) {
82
+ function ur(e, t, r, n) {
83
83
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
84
84
  }
85
85
  function E(e, t, r) {
86
86
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
87
87
  }
88
- function pr(e) {
88
+ function hr(e) {
89
89
  return Array.from(e.childNodes);
90
90
  }
91
- function Ke(e, t) {
91
+ function Ze(e, t) {
92
92
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
93
93
  t);
94
94
  }
95
- function mr(e) {
95
+ function lr(e) {
96
96
  const t = {};
97
97
  return e.childNodes.forEach(
98
98
  /** @param {Element} node */
@@ -101,87 +101,87 @@ function mr(e) {
101
101
  }
102
102
  ), t;
103
103
  }
104
- let re;
105
- function ee(e) {
106
- re = e;
104
+ let ne;
105
+ function te(e) {
106
+ ne = e;
107
107
  }
108
- function dr() {
109
- if (!re)
108
+ function fr() {
109
+ if (!ne)
110
110
  throw new Error("Function called outside component initialization");
111
- return re;
111
+ return ne;
112
112
  }
113
- function br(e) {
114
- dr().$$.on_mount.push(e);
113
+ function cr(e) {
114
+ fr().$$.on_mount.push(e);
115
115
  }
116
- const k = [], Ce = [];
116
+ const k = [], Ie = [];
117
117
  let V = [];
118
- const it = [], yr = /* @__PURE__ */ Promise.resolve();
119
- let Me = !1;
120
- function gr() {
121
- Me || (Me = !0, yr.then(B));
118
+ const et = [], dr = /* @__PURE__ */ Promise.resolve();
119
+ let Ne = !1;
120
+ function pr() {
121
+ Ne || (Ne = !0, dr.then(B));
122
122
  }
123
- function $e(e) {
123
+ function Le(e) {
124
124
  V.push(e);
125
125
  }
126
- const Se = /* @__PURE__ */ new Set();
126
+ const Te = /* @__PURE__ */ new Set();
127
127
  let F = 0;
128
128
  function B() {
129
129
  if (F !== 0)
130
130
  return;
131
- const e = re;
131
+ const e = ne;
132
132
  do {
133
133
  try {
134
134
  for (; F < k.length; ) {
135
135
  const t = k[F];
136
- F++, ee(t), vr(t.$$);
136
+ F++, te(t), mr(t.$$);
137
137
  }
138
138
  } catch (t) {
139
139
  throw k.length = 0, F = 0, t;
140
140
  }
141
- for (ee(null), k.length = 0, F = 0; Ce.length; )
142
- Ce.pop()();
141
+ for (te(null), k.length = 0, F = 0; Ie.length; )
142
+ Ie.pop()();
143
143
  for (let t = 0; t < V.length; t += 1) {
144
144
  const r = V[t];
145
- Se.has(r) || (Se.add(r), r());
145
+ Te.has(r) || (Te.add(r), r());
146
146
  }
147
147
  V.length = 0;
148
148
  } while (k.length);
149
- for (; it.length; )
150
- it.pop()();
151
- Me = !1, Se.clear(), ee(e);
149
+ for (; et.length; )
150
+ et.pop()();
151
+ Ne = !1, Te.clear(), te(e);
152
152
  }
153
- function vr(e) {
153
+ function mr(e) {
154
154
  if (e.fragment !== null) {
155
- e.update(), oe(e.before_update);
155
+ e.update(), se(e.before_update);
156
156
  const t = e.dirty;
157
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
157
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
158
158
  }
159
159
  }
160
- function _r(e) {
160
+ function br(e) {
161
161
  const t = [], r = [];
162
162
  V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
163
163
  }
164
- const Er = /* @__PURE__ */ new Set();
165
- function xr(e, t) {
166
- e && e.i && (Er.delete(e), e.i(t));
164
+ const yr = /* @__PURE__ */ new Set();
165
+ function gr(e, t) {
166
+ e && e.i && (yr.delete(e), e.i(t));
167
167
  }
168
- function Tr(e, t, r) {
168
+ function vr(e, t, r) {
169
169
  const { fragment: n, after_update: i } = e.$$;
170
- n && n.m(t, r), $e(() => {
171
- const o = e.$$.on_mount.map(Bt).filter(Ye);
172
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
173
- }), i.forEach($e);
170
+ n && n.m(t, r), Le(() => {
171
+ const o = e.$$.on_mount.map(Tt).filter(ze);
172
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
173
+ }), i.forEach(Le);
174
174
  }
175
- function Hr(e, t) {
175
+ function _r(e, t) {
176
176
  const r = e.$$;
177
- r.fragment !== null && (_r(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
177
+ r.fragment !== null && (br(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
178
178
  }
179
- function Sr(e, t) {
180
- e.$$.dirty[0] === -1 && (k.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
179
+ function Er(e, t) {
180
+ e.$$.dirty[0] === -1 && (k.push(e), pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
181
181
  }
182
- function wr(e, t, r, n, i, o, a = null, s = [-1]) {
183
- const l = re;
184
- ee(e);
182
+ function xr(e, t, r, n, i, o, a = null, s = [-1]) {
183
+ const l = ne;
184
+ te(e);
185
185
  const u = e.$$ = {
186
186
  fragment: null,
187
187
  ctx: [],
@@ -189,7 +189,7 @@ function wr(e, t, r, n, i, o, a = null, s = [-1]) {
189
189
  props: o,
190
190
  update: w,
191
191
  not_equal: i,
192
- bound: rt(),
192
+ bound: Ye(),
193
193
  // lifecycle
194
194
  on_mount: [],
195
195
  on_destroy: [],
@@ -198,28 +198,28 @@ function wr(e, t, r, n, i, o, a = null, s = [-1]) {
198
198
  after_update: [],
199
199
  context: new Map(t.context || (l ? l.$$.context : [])),
200
200
  // everything else
201
- callbacks: rt(),
201
+ callbacks: Ye(),
202
202
  dirty: s,
203
203
  skip_bound: !1,
204
204
  root: t.target || l.$$.root
205
205
  };
206
206
  a && a(u.root);
207
207
  let h = !1;
208
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
209
- const g = p.length ? p[0] : f;
210
- return u.ctx && i(u.ctx[c], u.ctx[c] = g) && (!u.skip_bound && u.bound[c] && u.bound[c](g), h && Sr(e, c)), f;
211
- }) : [], u.update(), h = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
208
+ if (u.ctx = r(e, t.props || {}, (f, c, ...d) => {
209
+ const v = d.length ? d[0] : c;
210
+ return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), h && Er(e, f)), c;
211
+ }), u.update(), h = !0, se(u.before_update), u.fragment = n(u.ctx), t.target) {
212
212
  if (t.hydrate) {
213
- const c = pr(t.target);
214
- u.fragment && u.fragment.l(c), c.forEach(Q);
213
+ const f = hr(t.target);
214
+ u.fragment && u.fragment.l(f), f.forEach(q);
215
215
  } else
216
216
  u.fragment && u.fragment.c();
217
- t.intro && xr(e.$$.fragment), Tr(e, t.target, t.anchor), B();
217
+ t.intro && gr(e.$$.fragment), vr(e, t.target, t.anchor), B();
218
218
  }
219
- ee(l);
219
+ te(l);
220
220
  }
221
- let Ot;
222
- typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
221
+ let wt;
222
+ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
223
223
  /** The Svelte component constructor */
224
224
  $$ctor;
225
225
  /** Slots */
@@ -261,29 +261,29 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
261
261
  let o;
262
262
  return {
263
263
  c: function() {
264
- o = N("slot"), i !== "default" && E(o, "name", i);
264
+ o = I("slot"), i !== "default" && E(o, "name", i);
265
265
  },
266
266
  /**
267
267
  * @param {HTMLElement} target
268
268
  * @param {HTMLElement} [anchor]
269
269
  */
270
270
  m: function(l, u) {
271
- se(l, o, u);
271
+ ae(l, o, u);
272
272
  },
273
273
  d: function(l) {
274
- l && Q(o);
274
+ l && q(o);
275
275
  }
276
276
  };
277
277
  };
278
278
  };
279
279
  if (await Promise.resolve(), !this.$$cn || this.$$c)
280
280
  return;
281
- const t = {}, r = mr(this);
281
+ const t = {}, r = lr(this);
282
282
  for (const i of this.$$s)
283
283
  i in r && (t[i] = [e(i)]);
284
284
  for (const i of this.attributes) {
285
285
  const o = this.$$g_p(i.name);
286
- o in this.$$d || (this.$$d[o] = fe(o, i.value, this.$$p_d, "toProp"));
286
+ o in this.$$d || (this.$$d[o] = ce(o, i.value, this.$$p_d, "toProp"));
287
287
  }
288
288
  for (const i in this.$$p_d)
289
289
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -301,7 +301,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
301
301
  this.$$r = !0;
302
302
  for (const i in this.$$p_d)
303
303
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
304
- const o = fe(
304
+ const o = ce(
305
305
  i,
306
306
  this.$$d[i],
307
307
  this.$$p_d,
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
323
323
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
324
324
  // and setting attributes through setAttribute etc, this is helpful
325
325
  attributeChangedCallback(e, t, r) {
326
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
326
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ce(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
327
327
  }
328
328
  disconnectedCallback() {
329
329
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -336,7 +336,7 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
336
336
  ) || e;
337
337
  }
338
338
  });
339
- function fe(e, t, r, n) {
339
+ function ce(e, t, r, n) {
340
340
  const i = r[e]?.type;
341
341
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
342
342
  return t;
@@ -365,8 +365,8 @@ function fe(e, t, r, n) {
365
365
  return t;
366
366
  }
367
367
  }
368
- function Br(e, t, r, n, i, o) {
369
- let a = class extends Ot {
368
+ function Tr(e, t, r, n, i, o) {
369
+ let a = class extends wt {
370
370
  constructor() {
371
371
  super(e, r, i), this.$$p_d = t;
372
372
  }
@@ -382,7 +382,7 @@ function Br(e, t, r, n, i, o) {
382
382
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
383
383
  },
384
384
  set(l) {
385
- l = fe(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
385
+ l = ce(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
386
386
  }
387
387
  });
388
388
  }), n.forEach((s) => {
@@ -394,7 +394,7 @@ function Br(e, t, r, n, i, o) {
394
394
  }), e.element = /** @type {any} */
395
395
  a, a;
396
396
  }
397
- class Ar {
397
+ class Hr {
398
398
  /**
399
399
  * ### PRIVATE API
400
400
  *
@@ -413,7 +413,7 @@ class Ar {
413
413
  $$set = void 0;
414
414
  /** @returns {void} */
415
415
  $destroy() {
416
- Hr(this, 1), this.$destroy = w;
416
+ _r(this, 1), this.$destroy = w;
417
417
  }
418
418
  /**
419
419
  * @template {Extract<keyof Events, string>} K
@@ -422,7 +422,7 @@ class Ar {
422
422
  * @returns {() => void}
423
423
  */
424
424
  $on(t, r) {
425
- if (!Ye(r))
425
+ if (!ze(r))
426
426
  return w;
427
427
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
428
428
  return n.push(r), () => {
@@ -435,11 +435,11 @@ class Ar {
435
435
  * @returns {void}
436
436
  */
437
437
  $set(t) {
438
- this.$$set && !ar(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
438
+ this.$$set && !nr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
439
439
  }
440
440
  }
441
- const Pr = "4";
442
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
441
+ const Sr = "4";
442
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
443
443
  /*! *****************************************************************************
444
444
  Copyright (c) Microsoft Corporation.
445
445
 
@@ -454,24 +454,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
454
454
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
455
455
  PERFORMANCE OF THIS SOFTWARE.
456
456
  ***************************************************************************** */
457
- var Re = function(e, t) {
458
- return Re = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
457
+ var Ce = function(e, t) {
458
+ return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
459
459
  r.__proto__ = n;
460
460
  } || function(r, n) {
461
461
  for (var i in n)
462
462
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
463
- }, Re(e, t);
463
+ }, Ce(e, t);
464
464
  };
465
- function ae(e, t) {
465
+ function N(e, t) {
466
466
  if (typeof t != "function" && t !== null)
467
467
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
468
- Re(e, t);
468
+ Ce(e, t);
469
469
  function r() {
470
470
  this.constructor = e;
471
471
  }
472
472
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
473
473
  }
474
- function Ue(e) {
474
+ var y = function() {
475
+ return y = Object.assign || function(t) {
476
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
477
+ r = arguments[n];
478
+ for (var o in r)
479
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
480
+ }
481
+ return t;
482
+ }, y.apply(this, arguments);
483
+ };
484
+ function wr(e, t) {
485
+ var r = {};
486
+ for (var n in e)
487
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
488
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
489
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
490
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
491
+ return r;
492
+ }
493
+ function Me(e) {
475
494
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
476
495
  if (r)
477
496
  return r.call(e);
@@ -483,7 +502,7 @@ function Ue(e) {
483
502
  };
484
503
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
485
504
  }
486
- function De(e, t) {
505
+ function $e(e, t) {
487
506
  var r = typeof Symbol == "function" && e[Symbol.iterator];
488
507
  if (!r)
489
508
  return e;
@@ -503,22 +522,22 @@ function De(e, t) {
503
522
  }
504
523
  return o;
505
524
  }
506
- function Ge(e, t, r) {
507
- if (arguments.length === 2)
525
+ function X(e, t, r) {
526
+ if (r || arguments.length === 2)
508
527
  for (var n = 0, i = t.length, o; n < i; n++)
509
528
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
510
529
  return e.concat(o || t);
511
530
  }
512
- function I(e) {
531
+ function O(e) {
513
532
  return typeof e == "function";
514
533
  }
515
- function It(e) {
534
+ function Bt(e) {
516
535
  var t = function(n) {
517
536
  Error.call(n), n.stack = new Error().stack;
518
537
  }, r = e(t);
519
538
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
520
539
  }
521
- var we = It(function(e) {
540
+ var He = Bt(function(e) {
522
541
  return function(r) {
523
542
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
524
543
  ` + r.map(function(n, i) {
@@ -527,13 +546,13 @@ var we = It(function(e) {
527
546
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
528
547
  };
529
548
  });
530
- function Fe(e, t) {
549
+ function Re(e, t) {
531
550
  if (e) {
532
551
  var r = e.indexOf(t);
533
552
  0 <= r && e.splice(r, 1);
534
553
  }
535
554
  }
536
- var ve = function() {
555
+ var ge = function() {
537
556
  function e(t) {
538
557
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
539
558
  }
@@ -545,12 +564,12 @@ var ve = function() {
545
564
  if (a)
546
565
  if (this._parentage = null, Array.isArray(a))
547
566
  try {
548
- for (var s = Ue(a), l = s.next(); !l.done; l = s.next()) {
567
+ for (var s = Me(a), l = s.next(); !l.done; l = s.next()) {
549
568
  var u = l.value;
550
569
  u.remove(this);
551
570
  }
552
- } catch (m) {
553
- t = { error: m };
571
+ } catch (p) {
572
+ t = { error: p };
554
573
  } finally {
555
574
  try {
556
575
  l && !l.done && (r = s.return) && r.call(s);
@@ -562,29 +581,29 @@ var ve = function() {
562
581
  else
563
582
  a.remove(this);
564
583
  var h = this.initialTeardown;
565
- if (I(h))
584
+ if (O(h))
566
585
  try {
567
586
  h();
568
- } catch (m) {
569
- o = m instanceof we ? m.errors : [m];
587
+ } catch (p) {
588
+ o = p instanceof He ? p.errors : [p];
570
589
  }
571
- var c = this._finalizers;
572
- if (c) {
590
+ var f = this._finalizers;
591
+ if (f) {
573
592
  this._finalizers = null;
574
593
  try {
575
- for (var f = Ue(c), p = f.next(); !p.done; p = f.next()) {
576
- var g = p.value;
594
+ for (var c = Me(f), d = c.next(); !d.done; d = c.next()) {
595
+ var v = d.value;
577
596
  try {
578
- ot(g);
579
- } catch (m) {
580
- o = o ?? [], m instanceof we ? o = Ge(Ge([], De(o)), De(m.errors)) : o.push(m);
597
+ tt(v);
598
+ } catch (p) {
599
+ o = o ?? [], p instanceof He ? o = X(X([], $e(o)), $e(p.errors)) : o.push(p);
581
600
  }
582
601
  }
583
- } catch (m) {
584
- n = { error: m };
602
+ } catch (p) {
603
+ n = { error: p };
585
604
  } finally {
586
605
  try {
587
- p && !p.done && (i = f.return) && i.call(f);
606
+ d && !d.done && (i = c.return) && i.call(c);
588
607
  } finally {
589
608
  if (n)
590
609
  throw n.error;
@@ -592,13 +611,13 @@ var ve = function() {
592
611
  }
593
612
  }
594
613
  if (o)
595
- throw new we(o);
614
+ throw new He(o);
596
615
  }
597
616
  }, e.prototype.add = function(t) {
598
617
  var r;
599
618
  if (t && t !== this)
600
619
  if (this.closed)
601
- ot(t);
620
+ tt(t);
602
621
  else {
603
622
  if (t instanceof e) {
604
623
  if (t.closed || t._hasParent(this))
@@ -615,52 +634,56 @@ var ve = function() {
615
634
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
616
635
  }, e.prototype._removeParent = function(t) {
617
636
  var r = this._parentage;
618
- r === t ? this._parentage = null : Array.isArray(r) && Fe(r, t);
637
+ r === t ? this._parentage = null : Array.isArray(r) && Re(r, t);
619
638
  }, e.prototype.remove = function(t) {
620
639
  var r = this._finalizers;
621
- r && Fe(r, t), t instanceof e && t._removeParent(this);
640
+ r && Re(r, t), t instanceof e && t._removeParent(this);
622
641
  }, e.EMPTY = function() {
623
642
  var t = new e();
624
643
  return t.closed = !0, t;
625
644
  }(), e;
626
- }(), Nt = ve.EMPTY;
627
- function Lt(e) {
628
- return e instanceof ve || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
629
- }
630
- function ot(e) {
631
- I(e) ? e() : e.unsubscribe();
632
- }
633
- var Or = {
634
- Promise: void 0
635
- }, Ir = {
645
+ }(), At = ge.EMPTY;
646
+ function Pt(e) {
647
+ return e instanceof ge || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
648
+ }
649
+ function tt(e) {
650
+ O(e) ? e() : e.unsubscribe();
651
+ }
652
+ var Br = {
653
+ onUnhandledError: null,
654
+ onStoppedNotification: null,
655
+ Promise: void 0,
656
+ useDeprecatedSynchronousErrorHandling: !1,
657
+ useDeprecatedNextContext: !1
658
+ }, Ar = {
636
659
  setTimeout: function(e, t) {
637
660
  for (var r = [], n = 2; n < arguments.length; n++)
638
661
  r[n - 2] = arguments[n];
639
- return setTimeout.apply(void 0, Ge([e, t], De(r)));
662
+ return setTimeout.apply(void 0, X([e, t], $e(r)));
640
663
  },
641
664
  clearTimeout: function(e) {
642
665
  return clearTimeout(e);
643
666
  },
644
667
  delegate: void 0
645
668
  };
646
- function Nr(e) {
647
- Ir.setTimeout(function() {
669
+ function Pr(e) {
670
+ Ar.setTimeout(function() {
648
671
  throw e;
649
672
  });
650
673
  }
651
- function st() {
674
+ function rt() {
652
675
  }
653
- function pe(e) {
676
+ function de(e) {
654
677
  e();
655
678
  }
656
- var Ct = function(e) {
657
- ae(t, e);
679
+ var Ot = function(e) {
680
+ N(t, e);
658
681
  function t(r) {
659
682
  var n = e.call(this) || this;
660
- return n.isStopped = !1, r ? (n.destination = r, Lt(r) && r.add(n)) : n.destination = Mr, n;
683
+ return n.isStopped = !1, r ? (n.destination = r, Pt(r) && r.add(n)) : n.destination = Nr, n;
661
684
  }
662
685
  return t.create = function(r, n, i) {
663
- return new je(r, n, i);
686
+ return new Ue(r, n, i);
664
687
  }, t.prototype.next = function(r) {
665
688
  this.isStopped || this._next(r);
666
689
  }, t.prototype.error = function(r) {
@@ -684,7 +707,7 @@ var Ct = function(e) {
684
707
  this.unsubscribe();
685
708
  }
686
709
  }, t;
687
- }(ve), Lr = function() {
710
+ }(ge), Or = function() {
688
711
  function e(t) {
689
712
  this.partialObserver = t;
690
713
  }
@@ -715,43 +738,43 @@ var Ct = function(e) {
715
738
  le(r);
716
739
  }
717
740
  }, e;
718
- }(), je = function(e) {
719
- ae(t, e);
741
+ }(), Ue = function(e) {
742
+ N(t, e);
720
743
  function t(r, n, i) {
721
744
  var o = e.call(this) || this, a;
722
- return I(r) || !r ? a = {
745
+ return O(r) || !r ? a = {
723
746
  next: r ?? void 0,
724
747
  error: n ?? void 0,
725
748
  complete: i ?? void 0
726
- } : a = r, o.destination = new Lr(a), o;
749
+ } : a = r, o.destination = new Or(a), o;
727
750
  }
728
751
  return t;
729
- }(Ct);
752
+ }(Ot);
730
753
  function le(e) {
731
- Nr(e);
754
+ Pr(e);
732
755
  }
733
- function Cr(e) {
756
+ function Ir(e) {
734
757
  throw e;
735
758
  }
736
- var Mr = {
759
+ var Nr = {
737
760
  closed: !0,
738
- next: st,
739
- error: Cr,
740
- complete: st
741
- }, $r = function() {
761
+ next: rt,
762
+ error: Ir,
763
+ complete: rt
764
+ }, Lr = function() {
742
765
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
743
766
  }();
744
- function Rr(e) {
767
+ function Cr(e) {
745
768
  return e;
746
769
  }
747
- function Ur(e) {
748
- return e.length === 0 ? Rr : e.length === 1 ? e[0] : function(r) {
770
+ function Mr(e) {
771
+ return e.length === 0 ? Cr : e.length === 1 ? e[0] : function(r) {
749
772
  return e.reduce(function(n, i) {
750
773
  return i(n);
751
774
  }, r);
752
775
  };
753
776
  }
754
- var at = function() {
777
+ var nt = function() {
755
778
  function e(t) {
756
779
  t && (this._subscribe = t);
757
780
  }
@@ -759,8 +782,8 @@ var at = function() {
759
782
  var r = new e();
760
783
  return r.source = this, r.operator = t, r;
761
784
  }, e.prototype.subscribe = function(t, r, n) {
762
- var i = this, o = Gr(t) ? t : new je(t, r, n);
763
- return pe(function() {
785
+ var i = this, o = Rr(t) ? t : new Ue(t, r, n);
786
+ return de(function() {
764
787
  var a = i, s = a.operator, l = a.source;
765
788
  o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
766
789
  }), o;
@@ -772,8 +795,8 @@ var at = function() {
772
795
  }
773
796
  }, e.prototype.forEach = function(t, r) {
774
797
  var n = this;
775
- return r = ut(r), new r(function(i, o) {
776
- var a = new je({
798
+ return r = it(r), new r(function(i, o) {
799
+ var a = new Ue({
777
800
  next: function(s) {
778
801
  try {
779
802
  t(s);
@@ -789,15 +812,15 @@ var at = function() {
789
812
  }, e.prototype._subscribe = function(t) {
790
813
  var r;
791
814
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
792
- }, e.prototype[$r] = function() {
815
+ }, e.prototype[Lr] = function() {
793
816
  return this;
794
817
  }, e.prototype.pipe = function() {
795
818
  for (var t = [], r = 0; r < arguments.length; r++)
796
819
  t[r] = arguments[r];
797
- return Ur(t)(this);
820
+ return Mr(t)(this);
798
821
  }, e.prototype.toPromise = function(t) {
799
822
  var r = this;
800
- return t = ut(t), new t(function(n, i) {
823
+ return t = it(t), new t(function(n, i) {
801
824
  var o;
802
825
  r.subscribe(function(a) {
803
826
  return o = a;
@@ -811,40 +834,40 @@ var at = function() {
811
834
  return new e(t);
812
835
  }, e;
813
836
  }();
814
- function ut(e) {
837
+ function it(e) {
815
838
  var t;
816
- return (t = e ?? Or.Promise) !== null && t !== void 0 ? t : Promise;
839
+ return (t = e ?? Br.Promise) !== null && t !== void 0 ? t : Promise;
817
840
  }
818
- function Dr(e) {
819
- return e && I(e.next) && I(e.error) && I(e.complete);
841
+ function $r(e) {
842
+ return e && O(e.next) && O(e.error) && O(e.complete);
820
843
  }
821
- function Gr(e) {
822
- return e && e instanceof Ct || Dr(e) && Lt(e);
844
+ function Rr(e) {
845
+ return e && e instanceof Ot || $r(e) && Pt(e);
823
846
  }
824
- var Fr = It(function(e) {
847
+ var Ur = Bt(function(e) {
825
848
  return function() {
826
849
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
827
850
  };
828
- }), Mt = function(e) {
829
- ae(t, e);
851
+ }), It = function(e) {
852
+ N(t, e);
830
853
  function t() {
831
854
  var r = e.call(this) || this;
832
855
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
833
856
  }
834
857
  return t.prototype.lift = function(r) {
835
- var n = new ht(this, this);
858
+ var n = new ot(this, this);
836
859
  return n.operator = r, n;
837
860
  }, t.prototype._throwIfClosed = function() {
838
861
  if (this.closed)
839
- throw new Fr();
862
+ throw new Ur();
840
863
  }, t.prototype.next = function(r) {
841
864
  var n = this;
842
- pe(function() {
865
+ de(function() {
843
866
  var i, o;
844
867
  if (n._throwIfClosed(), !n.isStopped) {
845
868
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
846
869
  try {
847
- for (var a = Ue(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
870
+ for (var a = Me(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
848
871
  var l = s.value;
849
872
  l.next(r);
850
873
  }
@@ -862,7 +885,7 @@ var Fr = It(function(e) {
862
885
  });
863
886
  }, t.prototype.error = function(r) {
864
887
  var n = this;
865
- pe(function() {
888
+ de(function() {
866
889
  if (n._throwIfClosed(), !n.isStopped) {
867
890
  n.hasError = n.isStopped = !0, n.thrownError = r;
868
891
  for (var i = n.observers; i.length; )
@@ -871,7 +894,7 @@ var Fr = It(function(e) {
871
894
  });
872
895
  }, t.prototype.complete = function() {
873
896
  var r = this;
874
- pe(function() {
897
+ de(function() {
875
898
  if (r._throwIfClosed(), !r.isStopped) {
876
899
  r.isStopped = !0;
877
900
  for (var n = r.observers; n.length; )
@@ -893,20 +916,20 @@ var Fr = It(function(e) {
893
916
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
894
917
  }, t.prototype._innerSubscribe = function(r) {
895
918
  var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
896
- return o || a ? Nt : (this.currentObservers = null, s.push(r), new ve(function() {
897
- n.currentObservers = null, Fe(s, r);
919
+ return o || a ? At : (this.currentObservers = null, s.push(r), new ge(function() {
920
+ n.currentObservers = null, Re(s, r);
898
921
  }));
899
922
  }, t.prototype._checkFinalizedStatuses = function(r) {
900
923
  var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
901
924
  i ? r.error(o) : a && r.complete();
902
925
  }, t.prototype.asObservable = function() {
903
- var r = new at();
926
+ var r = new nt();
904
927
  return r.source = this, r;
905
928
  }, t.create = function(r, n) {
906
- return new ht(r, n);
929
+ return new ot(r, n);
907
930
  }, t;
908
- }(at), ht = function(e) {
909
- ae(t, e);
931
+ }(nt), ot = function(e) {
932
+ N(t, e);
910
933
  function t(r, n) {
911
934
  var i = e.call(this) || this;
912
935
  return i.destination = r, i.source = n, i;
@@ -922,17 +945,17 @@ var Fr = It(function(e) {
922
945
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
923
946
  }, t.prototype._subscribe = function(r) {
924
947
  var n, i;
925
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Nt;
948
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : At;
926
949
  }, t;
927
- }(Mt), $t = {
950
+ }(It), Nt = {
928
951
  now: function() {
929
- return ($t.delegate || Date).now();
952
+ return (Nt.delegate || Date).now();
930
953
  },
931
954
  delegate: void 0
932
- }, jr = function(e) {
933
- ae(t, e);
955
+ }, Dr = function(e) {
956
+ N(t, e);
934
957
  function t(r, n, i) {
935
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = $t);
958
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Nt);
936
959
  var o = e.call(this) || this;
937
960
  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;
938
961
  }
@@ -952,24 +975,24 @@ var Fr = It(function(e) {
952
975
  u && o.splice(0, u + 1);
953
976
  }
954
977
  }, t;
955
- }(Mt);
956
- const lt = [], ct = {}, kr = (e, t = 0) => {
957
- if (lt.indexOf(e) == -1) {
958
- const r = new jr(t);
959
- ct[e] = r, lt.push(e);
978
+ }(It);
979
+ const st = [], at = {}, Gr = (e, t = 0) => {
980
+ if (st.indexOf(e) == -1) {
981
+ const r = new Dr(t);
982
+ at[e] = r, st.push(e);
960
983
  }
961
- return ct[e];
984
+ return at[e];
962
985
  }, j = [];
963
- function Vr(e, t) {
986
+ function Fr(e, t) {
964
987
  return {
965
- subscribe: _e(e, t).subscribe
988
+ subscribe: ve(e, t).subscribe
966
989
  };
967
990
  }
968
- function _e(e, t = w) {
991
+ function ve(e, t = w) {
969
992
  let r;
970
993
  const n = /* @__PURE__ */ new Set();
971
994
  function i(s) {
972
- if (At(e, s) && (e = s, r)) {
995
+ if (Ht(e, s) && (e = s, r)) {
973
996
  const l = !j.length;
974
997
  for (const u of n)
975
998
  u[1](), j.push(u, e);
@@ -991,184 +1014,145 @@ function _e(e, t = w) {
991
1014
  }
992
1015
  return { set: i, update: o, subscribe: a };
993
1016
  }
994
- function q(e, t, r) {
1017
+ function J(e, t, r) {
995
1018
  const n = !Array.isArray(e), i = n ? [e] : e;
996
1019
  if (!i.every(Boolean))
997
1020
  throw new Error("derived() expects stores as input, got a falsy value");
998
1021
  const o = t.length < 2;
999
- return Vr(r, (a, s) => {
1022
+ return Fr(r, (a, s) => {
1000
1023
  let l = !1;
1001
1024
  const u = [];
1002
- let h = 0, c = w;
1003
- const f = () => {
1025
+ let h = 0, f = w;
1026
+ const c = () => {
1004
1027
  if (h)
1005
1028
  return;
1006
- c();
1007
- const g = t(n ? u[0] : u, a, s);
1008
- o ? a(g) : c = Ye(g) ? g : w;
1009
- }, p = i.map(
1010
- (g, m) => Pt(
1011
- g,
1029
+ f();
1030
+ const v = t(n ? u[0] : u, a, s);
1031
+ o ? a(v) : f = ze(v) ? v : w;
1032
+ }, d = i.map(
1033
+ (v, p) => St(
1034
+ v,
1012
1035
  (T) => {
1013
- u[m] = T, h &= ~(1 << m), l && f();
1036
+ u[p] = T, h &= ~(1 << p), l && c();
1014
1037
  },
1015
1038
  () => {
1016
- h |= 1 << m;
1039
+ h |= 1 << p;
1017
1040
  }
1018
1041
  )
1019
1042
  );
1020
- return l = !0, f(), function() {
1021
- oe(p), c(), l = !1;
1043
+ return l = !0, c(), function() {
1044
+ se(d), f(), l = !1;
1022
1045
  };
1023
1046
  });
1024
1047
  }
1025
- function Xr(e) {
1026
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1048
+ function jr(e) {
1049
+ return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1027
1050
  }
1028
- var Wr = function(t) {
1029
- return zr(t) && !Zr(t);
1051
+ var kr = function(t) {
1052
+ return Vr(t) && !Xr(t);
1030
1053
  };
1031
- function zr(e) {
1054
+ function Vr(e) {
1032
1055
  return !!e && typeof e == "object";
1033
1056
  }
1034
- function Zr(e) {
1057
+ function Xr(e) {
1035
1058
  var t = Object.prototype.toString.call(e);
1036
- return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
1059
+ return t === "[object RegExp]" || t === "[object Date]" || Zr(e);
1037
1060
  }
1038
- var Qr = typeof Symbol == "function" && Symbol.for, qr = Qr ? Symbol.for("react.element") : 60103;
1039
- function Jr(e) {
1040
- return e.$$typeof === qr;
1061
+ var Wr = typeof Symbol == "function" && Symbol.for, zr = Wr ? Symbol.for("react.element") : 60103;
1062
+ function Zr(e) {
1063
+ return e.$$typeof === zr;
1041
1064
  }
1042
- function Yr(e) {
1065
+ function Qr(e) {
1043
1066
  return Array.isArray(e) ? [] : {};
1044
1067
  }
1045
- function ne(e, t) {
1046
- return t.clone !== !1 && t.isMergeableObject(e) ? X(Yr(e), e, t) : e;
1068
+ function ie(e, t) {
1069
+ return t.clone !== !1 && t.isMergeableObject(e) ? W(Qr(e), e, t) : e;
1047
1070
  }
1048
- function Kr(e, t, r) {
1071
+ function qr(e, t, r) {
1049
1072
  return e.concat(t).map(function(n) {
1050
- return ne(n, r);
1073
+ return ie(n, r);
1051
1074
  });
1052
1075
  }
1053
- function en(e, t) {
1076
+ function Jr(e, t) {
1054
1077
  if (!t.customMerge)
1055
- return X;
1078
+ return W;
1056
1079
  var r = t.customMerge(e);
1057
- return typeof r == "function" ? r : X;
1080
+ return typeof r == "function" ? r : W;
1058
1081
  }
1059
- function tn(e) {
1082
+ function Yr(e) {
1060
1083
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1061
1084
  return Object.propertyIsEnumerable.call(e, t);
1062
1085
  }) : [];
1063
1086
  }
1064
- function ft(e) {
1065
- return Object.keys(e).concat(tn(e));
1087
+ function ut(e) {
1088
+ return Object.keys(e).concat(Yr(e));
1066
1089
  }
1067
- function Rt(e, t) {
1090
+ function Lt(e, t) {
1068
1091
  try {
1069
1092
  return t in e;
1070
1093
  } catch {
1071
1094
  return !1;
1072
1095
  }
1073
1096
  }
1074
- function rn(e, t) {
1075
- return Rt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1097
+ function Kr(e, t) {
1098
+ return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1076
1099
  }
1077
- function nn(e, t, r) {
1100
+ function en(e, t, r) {
1078
1101
  var n = {};
1079
- return r.isMergeableObject(e) && ft(e).forEach(function(i) {
1080
- n[i] = ne(e[i], r);
1081
- }), ft(t).forEach(function(i) {
1082
- rn(e, i) || (Rt(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
1102
+ return r.isMergeableObject(e) && ut(e).forEach(function(i) {
1103
+ n[i] = ie(e[i], r);
1104
+ }), ut(t).forEach(function(i) {
1105
+ Kr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Jr(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
1083
1106
  }), n;
1084
1107
  }
1085
- function X(e, t, r) {
1086
- r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = ne;
1108
+ function W(e, t, r) {
1109
+ r = r || {}, r.arrayMerge = r.arrayMerge || qr, r.isMergeableObject = r.isMergeableObject || kr, r.cloneUnlessOtherwiseSpecified = ie;
1087
1110
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1088
- return o ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : ne(t, r);
1111
+ return o ? n ? r.arrayMerge(e, t, r) : en(e, t, r) : ie(t, r);
1089
1112
  }
1090
- X.all = function(t, r) {
1113
+ W.all = function(t, r) {
1091
1114
  if (!Array.isArray(t))
1092
1115
  throw new Error("first argument should be an array");
1093
1116
  return t.reduce(function(n, i) {
1094
- return X(n, i, r);
1117
+ return W(n, i, r);
1095
1118
  }, {});
1096
1119
  };
1097
- var on = X, sn = on;
1098
- const an = /* @__PURE__ */ Xr(sn);
1099
- var ke = function(e, t) {
1100
- return ke = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1101
- r.__proto__ = n;
1102
- } || function(r, n) {
1103
- for (var i in n)
1104
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1105
- }, ke(e, t);
1106
- };
1107
- function Ee(e, t) {
1108
- if (typeof t != "function" && t !== null)
1109
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1110
- ke(e, t);
1111
- function r() {
1112
- this.constructor = e;
1113
- }
1114
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1115
- }
1116
- var A = function() {
1117
- return A = Object.assign || function(t) {
1118
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1119
- r = arguments[n];
1120
- for (var o in r)
1121
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1122
- }
1123
- return t;
1124
- }, A.apply(this, arguments);
1125
- };
1126
- function un(e, t) {
1127
- var r = {};
1128
- for (var n in e)
1129
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1130
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1131
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1132
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1133
- return r;
1134
- }
1135
- function Be(e, t, r) {
1136
- if (r || arguments.length === 2)
1137
- for (var n = 0, i = t.length, o; n < i; n++)
1138
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1139
- return e.concat(o || Array.prototype.slice.call(t));
1140
- }
1141
- function Ae(e, t) {
1142
- var r = t && t.cache ? t.cache : dn, n = t && t.serializer ? t.serializer : pn, i = t && t.strategy ? t.strategy : cn;
1120
+ var tn = W, rn = tn;
1121
+ const nn = /* @__PURE__ */ jr(rn);
1122
+ function Se(e, t) {
1123
+ var r = t && t.cache ? t.cache : fn, n = t && t.serializer ? t.serializer : hn, i = t && t.strategy ? t.strategy : sn;
1143
1124
  return i(e, {
1144
1125
  cache: r,
1145
1126
  serializer: n
1146
1127
  });
1147
1128
  }
1148
- function hn(e) {
1129
+ function on(e) {
1149
1130
  return e == null || typeof e == "number" || typeof e == "boolean";
1150
1131
  }
1151
- function ln(e, t, r, n) {
1152
- var i = hn(n) ? n : r(n), o = t.get(i);
1132
+ function Ct(e, t, r, n) {
1133
+ var i = on(n) ? n : r(n), o = t.get(i);
1153
1134
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1154
1135
  }
1155
- function Ut(e, t, r) {
1136
+ function Mt(e, t, r) {
1156
1137
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1157
1138
  return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1158
1139
  }
1159
- function Dt(e, t, r, n, i) {
1140
+ function Qe(e, t, r, n, i) {
1160
1141
  return r.bind(t, e, n, i);
1161
1142
  }
1162
- function cn(e, t) {
1163
- var r = e.length === 1 ? ln : Ut;
1164
- return Dt(e, this, r, t.cache.create(), t.serializer);
1143
+ function sn(e, t) {
1144
+ var r = e.length === 1 ? Ct : Mt;
1145
+ return Qe(e, this, r, t.cache.create(), t.serializer);
1146
+ }
1147
+ function an(e, t) {
1148
+ return Qe(e, this, Mt, t.cache.create(), t.serializer);
1165
1149
  }
1166
- function fn(e, t) {
1167
- return Dt(e, this, Ut, t.cache.create(), t.serializer);
1150
+ function un(e, t) {
1151
+ return Qe(e, this, Ct, t.cache.create(), t.serializer);
1168
1152
  }
1169
- var pn = function() {
1153
+ var hn = function() {
1170
1154
  return JSON.stringify(arguments);
1171
- }, mn = (
1155
+ }, ln = (
1172
1156
  /** @class */
1173
1157
  function() {
1174
1158
  function e() {
@@ -1180,71 +1164,62 @@ var pn = function() {
1180
1164
  this.cache[t] = r;
1181
1165
  }, e;
1182
1166
  }()
1183
- ), dn = {
1167
+ ), fn = {
1184
1168
  create: function() {
1185
- return new mn();
1169
+ return new ln();
1186
1170
  }
1187
- }, Pe = {
1188
- variadic: fn
1189
- }, be = function() {
1190
- return be = Object.assign || function(t) {
1191
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1192
- r = arguments[n];
1193
- for (var o in r)
1194
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1195
- }
1196
- return t;
1197
- }, be.apply(this, arguments);
1198
- };
1199
- var d;
1171
+ }, we = {
1172
+ variadic: an,
1173
+ monadic: un
1174
+ }, m;
1200
1175
  (function(e) {
1201
1176
  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";
1202
- })(d || (d = {}));
1203
- var v;
1177
+ })(m || (m = {}));
1178
+ var _;
1204
1179
  (function(e) {
1205
1180
  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";
1206
- })(v || (v = {}));
1207
- var W;
1181
+ })(_ || (_ = {}));
1182
+ var z;
1208
1183
  (function(e) {
1209
1184
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1210
- })(W || (W = {}));
1211
- function pt(e) {
1212
- return e.type === v.literal;
1185
+ })(z || (z = {}));
1186
+ function ht(e) {
1187
+ return e.type === _.literal;
1213
1188
  }
1214
- function bn(e) {
1215
- return e.type === v.argument;
1189
+ function cn(e) {
1190
+ return e.type === _.argument;
1216
1191
  }
1217
- function Gt(e) {
1218
- return e.type === v.number;
1192
+ function $t(e) {
1193
+ return e.type === _.number;
1219
1194
  }
1220
- function Ft(e) {
1221
- return e.type === v.date;
1195
+ function Rt(e) {
1196
+ return e.type === _.date;
1222
1197
  }
1223
- function jt(e) {
1224
- return e.type === v.time;
1198
+ function Ut(e) {
1199
+ return e.type === _.time;
1225
1200
  }
1226
- function kt(e) {
1227
- return e.type === v.select;
1201
+ function Dt(e) {
1202
+ return e.type === _.select;
1228
1203
  }
1229
- function Vt(e) {
1230
- return e.type === v.plural;
1204
+ function Gt(e) {
1205
+ return e.type === _.plural;
1231
1206
  }
1232
- function yn(e) {
1233
- return e.type === v.pound;
1207
+ function dn(e) {
1208
+ return e.type === _.pound;
1234
1209
  }
1235
- function Xt(e) {
1236
- return e.type === v.tag;
1210
+ function Ft(e) {
1211
+ return e.type === _.tag;
1237
1212
  }
1238
- function Wt(e) {
1239
- return !!(e && typeof e == "object" && e.type === W.number);
1213
+ function jt(e) {
1214
+ return !!(e && typeof e == "object" && e.type === z.number);
1240
1215
  }
1241
- function Ve(e) {
1242
- return !!(e && typeof e == "object" && e.type === W.dateTime);
1216
+ function De(e) {
1217
+ return !!(e && typeof e == "object" && e.type === z.dateTime);
1243
1218
  }
1244
- var zt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[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;
1245
- function vn(e) {
1219
+ var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pn = /(?:[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;
1220
+ function mn(e) {
1246
1221
  var t = {};
1247
- return e.replace(gn, function(r) {
1222
+ return e.replace(pn, function(r) {
1248
1223
  var n = r.length;
1249
1224
  switch (r[0]) {
1250
1225
  case "G":
@@ -1333,46 +1308,36 @@ function vn(e) {
1333
1308
  return "";
1334
1309
  }), t;
1335
1310
  }
1336
- var _ = function() {
1337
- return _ = Object.assign || function(t) {
1338
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1339
- r = arguments[n];
1340
- for (var o in r)
1341
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1342
- }
1343
- return t;
1344
- }, _.apply(this, arguments);
1345
- };
1346
- var _n = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1347
- function En(e) {
1311
+ var bn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1312
+ function yn(e) {
1348
1313
  if (e.length === 0)
1349
1314
  throw new Error("Number skeleton cannot be empty");
1350
- for (var t = e.split(_n).filter(function(f) {
1351
- return f.length > 0;
1315
+ for (var t = e.split(bn).filter(function(c) {
1316
+ return c.length > 0;
1352
1317
  }), r = [], n = 0, i = t; n < i.length; n++) {
1353
1318
  var o = i[n], a = o.split("/");
1354
1319
  if (a.length === 0)
1355
1320
  throw new Error("Invalid number skeleton");
1356
1321
  for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
1357
- var c = h[u];
1358
- if (c.length === 0)
1322
+ var f = h[u];
1323
+ if (f.length === 0)
1359
1324
  throw new Error("Invalid number skeleton");
1360
1325
  }
1361
1326
  r.push({ stem: s, options: l });
1362
1327
  }
1363
1328
  return r;
1364
1329
  }
1365
- function xn(e) {
1330
+ function gn(e) {
1366
1331
  return e.replace(/^(.*?)-/, "");
1367
1332
  }
1368
- var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zt = /^(@+)?(\+|#+)?[rs]?$/g, Tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Qt = /^(0+)$/;
1369
- function dt(e) {
1333
+ var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, vn = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
1334
+ function ft(e) {
1370
1335
  var t = {};
1371
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zt, function(r, n, i) {
1336
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
1372
1337
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1373
1338
  }), t;
1374
1339
  }
1375
- function qt(e) {
1340
+ function Wt(e) {
1376
1341
  switch (e) {
1377
1342
  case "sign-auto":
1378
1343
  return {
@@ -1412,7 +1377,7 @@ function qt(e) {
1412
1377
  };
1413
1378
  }
1414
1379
  }
1415
- function Hn(e) {
1380
+ function _n(e) {
1416
1381
  var t;
1417
1382
  if (e[0] === "E" && e[1] === "E" ? (t = {
1418
1383
  notation: "engineering"
@@ -1420,17 +1385,17 @@ function Hn(e) {
1420
1385
  notation: "scientific"
1421
1386
  }, e = e.slice(1)), t) {
1422
1387
  var r = e.slice(0, 2);
1423
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Qt.test(e))
1388
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
1424
1389
  throw new Error("Malformed concise eng/scientific notation");
1425
1390
  t.minimumIntegerDigits = e.length;
1426
1391
  }
1427
1392
  return t;
1428
1393
  }
1429
- function bt(e) {
1430
- var t = {}, r = qt(e);
1394
+ function ct(e) {
1395
+ var t = {}, r = Wt(e);
1431
1396
  return r || t;
1432
1397
  }
1433
- function Sn(e) {
1398
+ function En(e) {
1434
1399
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1435
1400
  var i = n[r];
1436
1401
  switch (i.stem) {
@@ -1454,7 +1419,7 @@ function Sn(e) {
1454
1419
  continue;
1455
1420
  case "measure-unit":
1456
1421
  case "unit":
1457
- t.style = "unit", t.unit = xn(i.options[0]);
1422
+ t.style = "unit", t.unit = gn(i.options[0]);
1458
1423
  continue;
1459
1424
  case "compact-short":
1460
1425
  case "K":
@@ -1465,13 +1430,13 @@ function Sn(e) {
1465
1430
  t.notation = "compact", t.compactDisplay = "long";
1466
1431
  continue;
1467
1432
  case "scientific":
1468
- t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1469
- return _(_({}, l), bt(u));
1433
+ t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1434
+ return y(y({}, l), ct(u));
1470
1435
  }, {}));
1471
1436
  continue;
1472
1437
  case "engineering":
1473
- t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1474
- return _(_({}, l), bt(u));
1438
+ t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1439
+ return y(y({}, l), ct(u));
1475
1440
  }, {}));
1476
1441
  continue;
1477
1442
  case "notation-simple":
@@ -1516,45 +1481,45 @@ function Sn(e) {
1516
1481
  case "integer-width":
1517
1482
  if (i.options.length > 1)
1518
1483
  throw new RangeError("integer-width stems only accept a single optional option");
1519
- i.options[0].replace(Tn, function(l, u, h, c, f, p) {
1484
+ i.options[0].replace(vn, function(l, u, h, f, c, d) {
1520
1485
  if (u)
1521
1486
  t.minimumIntegerDigits = h.length;
1522
1487
  else {
1523
- if (c && f)
1488
+ if (f && c)
1524
1489
  throw new Error("We currently do not support maximum integer digits");
1525
- if (p)
1490
+ if (d)
1526
1491
  throw new Error("We currently do not support exact integer digits");
1527
1492
  }
1528
1493
  return "";
1529
1494
  });
1530
1495
  continue;
1531
1496
  }
1532
- if (Qt.test(i.stem)) {
1497
+ if (Xt.test(i.stem)) {
1533
1498
  t.minimumIntegerDigits = i.stem.length;
1534
1499
  continue;
1535
1500
  }
1536
- if (mt.test(i.stem)) {
1501
+ if (lt.test(i.stem)) {
1537
1502
  if (i.options.length > 1)
1538
1503
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1539
- i.stem.replace(mt, function(l, u, h, c, f, p) {
1540
- return h === "*" ? 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), "";
1504
+ i.stem.replace(lt, function(l, u, h, f, c, d) {
1505
+ return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1541
1506
  });
1542
1507
  var o = i.options[0];
1543
- o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), dt(o)));
1508
+ o === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = y(y({}, t), ft(o)));
1544
1509
  continue;
1545
1510
  }
1546
- if (Zt.test(i.stem)) {
1547
- t = _(_({}, t), dt(i.stem));
1511
+ if (Vt.test(i.stem)) {
1512
+ t = y(y({}, t), ft(i.stem));
1548
1513
  continue;
1549
1514
  }
1550
- var a = qt(i.stem);
1551
- a && (t = _(_({}, t), a));
1552
- var s = Hn(i.stem);
1553
- s && (t = _(_({}, t), s));
1515
+ var a = Wt(i.stem);
1516
+ a && (t = y(y({}, t), a));
1517
+ var s = _n(i.stem);
1518
+ s && (t = y(y({}, t), s));
1554
1519
  }
1555
1520
  return t;
1556
1521
  }
1557
- var ce = {
1522
+ var fe = {
1558
1523
  "001": [
1559
1524
  "H",
1560
1525
  "h"
@@ -2969,13 +2934,13 @@ var ce = {
2969
2934
  "h"
2970
2935
  ]
2971
2936
  };
2972
- function wn(e, t) {
2937
+ function xn(e, t) {
2973
2938
  for (var r = "", n = 0; n < e.length; n++) {
2974
2939
  var i = e.charAt(n);
2975
2940
  if (i === "j") {
2976
2941
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2977
2942
  o++, n++;
2978
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Bn(t);
2943
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Tn(t);
2979
2944
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2980
2945
  r += l;
2981
2946
  for (; a-- > 0; )
@@ -2985,7 +2950,7 @@ function wn(e, t) {
2985
2950
  }
2986
2951
  return r;
2987
2952
  }
2988
- function Bn(e) {
2953
+ function Tn(e) {
2989
2954
  var t = e.hourCycle;
2990
2955
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2991
2956
  e.hourCycles && // @ts-ignore
@@ -3004,23 +2969,23 @@ function Bn(e) {
3004
2969
  }
3005
2970
  var r = e.language, n;
3006
2971
  r !== "root" && (n = e.maximize().region);
3007
- var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
2972
+ var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
3008
2973
  return i[0];
3009
2974
  }
3010
- var Oe, An = new RegExp("^".concat(zt.source, "*")), Pn = new RegExp("".concat(zt.source, "*$"));
2975
+ var Be, Hn = new RegExp("^".concat(kt.source, "*")), Sn = new RegExp("".concat(kt.source, "*$"));
3011
2976
  function b(e, t) {
3012
2977
  return { start: e, end: t };
3013
2978
  }
3014
- var On = !!String.prototype.startsWith && "_a".startsWith("a", 1), In = !!String.fromCodePoint, Nn = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, Cn = !!String.prototype.trimStart, Mn = !!String.prototype.trimEnd, $n = !!Number.isSafeInteger, Rn = $n ? Number.isSafeInteger : function(e) {
2979
+ var wn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Bn = !!String.fromCodePoint, An = !!Object.fromEntries, Pn = !!String.prototype.codePointAt, On = !!String.prototype.trimStart, In = !!String.prototype.trimEnd, Nn = !!Number.isSafeInteger, Ln = Nn ? Number.isSafeInteger : function(e) {
3015
2980
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3016
- }, Xe = !0;
2981
+ }, Ge = !0;
3017
2982
  try {
3018
- var Un = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3019
- Xe = ((Oe = Un.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
2983
+ var Cn = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2984
+ Ge = ((Be = Cn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
3020
2985
  } catch {
3021
- Xe = !1;
2986
+ Ge = !1;
3022
2987
  }
3023
- var yt = On ? (
2988
+ var dt = wn ? (
3024
2989
  // Native
3025
2990
  function(t, r, n) {
3026
2991
  return t.startsWith(r, n);
@@ -3030,7 +2995,7 @@ var yt = On ? (
3030
2995
  function(t, r, n) {
3031
2996
  return t.slice(n, n + r.length) === r;
3032
2997
  }
3033
- ), We = In ? String.fromCodePoint : (
2998
+ ), Fe = Bn ? String.fromCodePoint : (
3034
2999
  // IE11
3035
3000
  function() {
3036
3001
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3042,9 +3007,9 @@ var yt = On ? (
3042
3007
  }
3043
3008
  return n;
3044
3009
  }
3045
- ), gt = (
3010
+ ), pt = (
3046
3011
  // native
3047
- Nn ? Object.fromEntries : (
3012
+ An ? Object.fromEntries : (
3048
3013
  // Ponyfill
3049
3014
  function(t) {
3050
3015
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3054,7 +3019,7 @@ var yt = On ? (
3054
3019
  return r;
3055
3020
  }
3056
3021
  )
3057
- ), Jt = Ln ? (
3022
+ ), zt = Pn ? (
3058
3023
  // Native
3059
3024
  function(t, r) {
3060
3025
  return t.codePointAt(r);
@@ -3068,7 +3033,7 @@ var yt = On ? (
3068
3033
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3069
3034
  }
3070
3035
  }
3071
- ), Dn = Cn ? (
3036
+ ), Mn = On ? (
3072
3037
  // Native
3073
3038
  function(t) {
3074
3039
  return t.trimStart();
@@ -3076,9 +3041,9 @@ var yt = On ? (
3076
3041
  ) : (
3077
3042
  // Ponyfill
3078
3043
  function(t) {
3079
- return t.replace(An, "");
3044
+ return t.replace(Hn, "");
3080
3045
  }
3081
- ), Gn = Mn ? (
3046
+ ), $n = In ? (
3082
3047
  // Native
3083
3048
  function(t) {
3084
3049
  return t.trimEnd();
@@ -3086,32 +3051,32 @@ var yt = On ? (
3086
3051
  ) : (
3087
3052
  // Ponyfill
3088
3053
  function(t) {
3089
- return t.replace(Pn, "");
3054
+ return t.replace(Sn, "");
3090
3055
  }
3091
3056
  );
3092
- function Yt(e, t) {
3057
+ function Zt(e, t) {
3093
3058
  return new RegExp(e, t);
3094
3059
  }
3095
- var ze;
3096
- if (Xe) {
3097
- var vt = Yt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3098
- ze = function(t, r) {
3060
+ var je;
3061
+ if (Ge) {
3062
+ var mt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3063
+ je = function(t, r) {
3099
3064
  var n;
3100
- vt.lastIndex = r;
3101
- var i = vt.exec(t);
3065
+ mt.lastIndex = r;
3066
+ var i = mt.exec(t);
3102
3067
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3103
3068
  };
3104
3069
  } else
3105
- ze = function(t, r) {
3070
+ je = function(t, r) {
3106
3071
  for (var n = []; ; ) {
3107
- var i = Jt(t, r);
3108
- if (i === void 0 || Kt(i) || Vn(i))
3072
+ var i = zt(t, r);
3073
+ if (i === void 0 || Qt(i) || Gn(i))
3109
3074
  break;
3110
3075
  n.push(i), r += i >= 65536 ? 2 : 1;
3111
3076
  }
3112
- return We.apply(void 0, n);
3077
+ return Fe.apply(void 0, n);
3113
3078
  };
3114
- var Fn = (
3079
+ var Rn = (
3115
3080
  /** @class */
3116
3081
  function() {
3117
3082
  function e(t, r) {
@@ -3135,14 +3100,14 @@ var Fn = (
3135
3100
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3136
3101
  var s = this.clonePosition();
3137
3102
  this.bump(), i.push({
3138
- type: v.pound,
3103
+ type: _.pound,
3139
3104
  location: b(s, this.clonePosition())
3140
3105
  });
3141
3106
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3142
3107
  if (n)
3143
3108
  break;
3144
- return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
3145
- } else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
3109
+ return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
3110
+ } else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
3146
3111
  var a = this.parseTag(t, r);
3147
3112
  if (a.err)
3148
3113
  return a;
@@ -3163,7 +3128,7 @@ var Fn = (
3163
3128
  if (this.bumpSpace(), this.bumpIf("/>"))
3164
3129
  return {
3165
3130
  val: {
3166
- type: v.literal,
3131
+ type: _.literal,
3167
3132
  value: "<".concat(i, "/>"),
3168
3133
  location: b(n, this.clonePosition())
3169
3134
  },
@@ -3175,25 +3140,25 @@ var Fn = (
3175
3140
  return o;
3176
3141
  var a = o.val, s = this.clonePosition();
3177
3142
  if (this.bumpIf("</")) {
3178
- if (this.isEOF() || !Ze(this.char()))
3179
- return this.error(d.INVALID_TAG, b(s, this.clonePosition()));
3143
+ if (this.isEOF() || !ke(this.char()))
3144
+ return this.error(m.INVALID_TAG, b(s, this.clonePosition()));
3180
3145
  var l = this.clonePosition(), u = this.parseTagName();
3181
- return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3146
+ return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3182
3147
  val: {
3183
- type: v.tag,
3148
+ type: _.tag,
3184
3149
  value: i,
3185
3150
  children: a,
3186
3151
  location: b(n, this.clonePosition())
3187
3152
  },
3188
3153
  err: null
3189
- } : this.error(d.INVALID_TAG, b(s, this.clonePosition())));
3154
+ } : this.error(m.INVALID_TAG, b(s, this.clonePosition())));
3190
3155
  } else
3191
- return this.error(d.UNCLOSED_TAG, b(n, this.clonePosition()));
3156
+ return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
3192
3157
  } else
3193
- return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
3158
+ return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
3194
3159
  }, e.prototype.parseTagName = function() {
3195
3160
  var t = this.offset();
3196
- for (this.bump(); !this.isEOF() && kn(this.char()); )
3161
+ for (this.bump(); !this.isEOF() && Dn(this.char()); )
3197
3162
  this.bump();
3198
3163
  return this.message.slice(t, this.offset());
3199
3164
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3217,12 +3182,12 @@ var Fn = (
3217
3182
  }
3218
3183
  var l = b(n, this.clonePosition());
3219
3184
  return {
3220
- val: { type: v.literal, value: i, location: l },
3185
+ val: { type: _.literal, value: i, location: l },
3221
3186
  err: null
3222
3187
  };
3223
3188
  }, e.prototype.tryParseLeftAngleBracket = function() {
3224
3189
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3225
- !jn(this.peek() || 0)) ? (this.bump(), "<") : null;
3190
+ !Un(this.peek() || 0)) ? (this.bump(), "<") : null;
3226
3191
  }, e.prototype.tryParseQuote = function(t) {
3227
3192
  if (this.isEOF() || this.char() !== 39)
3228
3193
  return null;
@@ -3256,28 +3221,28 @@ var Fn = (
3256
3221
  r.push(n);
3257
3222
  this.bump();
3258
3223
  }
3259
- return We.apply(void 0, r);
3224
+ return Fe.apply(void 0, r);
3260
3225
  }, e.prototype.tryParseUnquoted = function(t, r) {
3261
3226
  if (this.isEOF())
3262
3227
  return null;
3263
3228
  var n = this.char();
3264
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
3229
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
3265
3230
  }, e.prototype.parseArgument = function(t, r) {
3266
3231
  var n = this.clonePosition();
3267
3232
  if (this.bump(), this.bumpSpace(), this.isEOF())
3268
- return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3233
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3269
3234
  if (this.char() === 125)
3270
- return this.bump(), this.error(d.EMPTY_ARGUMENT, b(n, this.clonePosition()));
3235
+ return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
3271
3236
  var i = this.parseIdentifierIfPossible().value;
3272
3237
  if (!i)
3273
- return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3238
+ return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3274
3239
  if (this.bumpSpace(), this.isEOF())
3275
- return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3240
+ return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
3276
3241
  switch (this.char()) {
3277
3242
  case 125:
3278
3243
  return this.bump(), {
3279
3244
  val: {
3280
- type: v.argument,
3245
+ type: _.argument,
3281
3246
  // value does not include the opening and closing braces.
3282
3247
  value: i,
3283
3248
  location: b(n, this.clonePosition())
@@ -3285,12 +3250,12 @@ var Fn = (
3285
3250
  err: null
3286
3251
  };
3287
3252
  case 44:
3288
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3253
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3289
3254
  default:
3290
- return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3255
+ return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3291
3256
  }
3292
3257
  }, e.prototype.parseIdentifierIfPossible = function() {
3293
- var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
3258
+ var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
3294
3259
  this.bumpTo(i);
3295
3260
  var o = this.clonePosition(), a = b(t, o);
3296
3261
  return { value: n, location: a };
@@ -3298,7 +3263,7 @@ var Fn = (
3298
3263
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3299
3264
  switch (s) {
3300
3265
  case "":
3301
- return this.error(d.EXPECT_ARGUMENT_TYPE, b(a, l));
3266
+ return this.error(m.EXPECT_ARGUMENT_TYPE, b(a, l));
3302
3267
  case "number":
3303
3268
  case "date":
3304
3269
  case "time": {
@@ -3306,49 +3271,49 @@ var Fn = (
3306
3271
  var u = null;
3307
3272
  if (this.bumpIf(",")) {
3308
3273
  this.bumpSpace();
3309
- var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3310
- if (c.err)
3311
- return c;
3312
- var f = Gn(c.val);
3313
- if (f.length === 0)
3314
- return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
3315
- var p = b(h, this.clonePosition());
3316
- u = { style: f, styleLocation: p };
3274
+ var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3275
+ if (f.err)
3276
+ return f;
3277
+ var c = $n(f.val);
3278
+ if (c.length === 0)
3279
+ return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
3280
+ var d = b(h, this.clonePosition());
3281
+ u = { style: c, styleLocation: d };
3317
3282
  }
3318
- var g = this.tryParseArgumentClose(i);
3319
- if (g.err)
3320
- return g;
3321
- var m = b(i, this.clonePosition());
3322
- if (u && yt(u?.style, "::", 0)) {
3323
- var T = Dn(u.style.slice(2));
3283
+ var v = this.tryParseArgumentClose(i);
3284
+ if (v.err)
3285
+ return v;
3286
+ var p = b(i, this.clonePosition());
3287
+ if (u && dt(u?.style, "::", 0)) {
3288
+ var T = Mn(u.style.slice(2));
3324
3289
  if (s === "number") {
3325
- var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
3326
- return c.err ? c : {
3327
- val: { type: v.number, value: n, location: m, style: c.val },
3290
+ var f = this.parseNumberSkeletonFromString(T, u.styleLocation);
3291
+ return f.err ? f : {
3292
+ val: { type: _.number, value: n, location: p, style: f.val },
3328
3293
  err: null
3329
3294
  };
3330
3295
  } else {
3331
3296
  if (T.length === 0)
3332
- return this.error(d.EXPECT_DATE_TIME_SKELETON, m);
3297
+ return this.error(m.EXPECT_DATE_TIME_SKELETON, p);
3333
3298
  var $ = T;
3334
- this.locale && ($ = wn(T, this.locale));
3335
- var f = {
3336
- type: W.dateTime,
3299
+ this.locale && ($ = xn(T, this.locale));
3300
+ var c = {
3301
+ type: z.dateTime,
3337
3302
  pattern: $,
3338
3303
  location: u.styleLocation,
3339
- parsedOptions: this.shouldParseSkeletons ? vn($) : {}
3340
- }, P = s === "date" ? v.date : v.time;
3304
+ parsedOptions: this.shouldParseSkeletons ? mn($) : {}
3305
+ }, A = s === "date" ? _.date : _.time;
3341
3306
  return {
3342
- val: { type: P, value: n, location: m, style: f },
3307
+ val: { type: A, value: n, location: p, style: c },
3343
3308
  err: null
3344
3309
  };
3345
3310
  }
3346
3311
  }
3347
3312
  return {
3348
3313
  val: {
3349
- type: s === "number" ? v.number : s === "date" ? v.date : v.time,
3314
+ type: s === "number" ? _.number : s === "date" ? _.date : _.time,
3350
3315
  value: n,
3351
- location: m,
3316
+ location: p,
3352
3317
  style: (o = u?.style) !== null && o !== void 0 ? o : null
3353
3318
  },
3354
3319
  err: null
@@ -3359,50 +3324,50 @@ var Fn = (
3359
3324
  case "select": {
3360
3325
  var S = this.clonePosition();
3361
3326
  if (this.bumpSpace(), !this.bumpIf(","))
3362
- return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, be({}, S)));
3327
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, y({}, S)));
3363
3328
  this.bumpSpace();
3364
- var R = this.parseIdentifierIfPossible(), O = 0;
3329
+ var R = this.parseIdentifierIfPossible(), P = 0;
3365
3330
  if (s !== "select" && R.value === "offset") {
3366
3331
  if (!this.bumpIf(":"))
3367
- return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
3332
+ return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
3368
3333
  this.bumpSpace();
3369
- var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3370
- if (c.err)
3371
- return c;
3372
- this.bumpSpace(), R = this.parseIdentifierIfPossible(), O = c.val;
3334
+ var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3335
+ if (f.err)
3336
+ return f;
3337
+ this.bumpSpace(), R = this.parseIdentifierIfPossible(), P = f.val;
3373
3338
  }
3374
3339
  var D = this.tryParsePluralOrSelectOptions(t, s, r, R);
3375
3340
  if (D.err)
3376
3341
  return D;
3377
- var g = this.tryParseArgumentClose(i);
3378
- if (g.err)
3379
- return g;
3380
- var y = b(i, this.clonePosition());
3342
+ var v = this.tryParseArgumentClose(i);
3343
+ if (v.err)
3344
+ return v;
3345
+ var g = b(i, this.clonePosition());
3381
3346
  return s === "select" ? {
3382
3347
  val: {
3383
- type: v.select,
3348
+ type: _.select,
3384
3349
  value: n,
3385
- options: gt(D.val),
3386
- location: y
3350
+ options: pt(D.val),
3351
+ location: g
3387
3352
  },
3388
3353
  err: null
3389
3354
  } : {
3390
3355
  val: {
3391
- type: v.plural,
3356
+ type: _.plural,
3392
3357
  value: n,
3393
- options: gt(D.val),
3394
- offset: O,
3358
+ options: pt(D.val),
3359
+ offset: P,
3395
3360
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3396
- location: y
3361
+ location: g
3397
3362
  },
3398
3363
  err: null
3399
3364
  };
3400
3365
  }
3401
3366
  default:
3402
- return this.error(d.INVALID_ARGUMENT_TYPE, b(a, l));
3367
+ return this.error(m.INVALID_ARGUMENT_TYPE, b(a, l));
3403
3368
  }
3404
3369
  }, e.prototype.tryParseArgumentClose = function(t) {
3405
- return this.isEOF() || this.char() !== 125 ? this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3370
+ return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3406
3371
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3407
3372
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3408
3373
  var n = this.char();
@@ -3411,7 +3376,7 @@ var Fn = (
3411
3376
  this.bump();
3412
3377
  var i = this.clonePosition();
3413
3378
  if (!this.bumpUntil("'"))
3414
- return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
3379
+ return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
3415
3380
  this.bump();
3416
3381
  break;
3417
3382
  }
@@ -3441,52 +3406,52 @@ var Fn = (
3441
3406
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3442
3407
  var n = [];
3443
3408
  try {
3444
- n = En(t);
3409
+ n = yn(t);
3445
3410
  } catch {
3446
- return this.error(d.INVALID_NUMBER_SKELETON, r);
3411
+ return this.error(m.INVALID_NUMBER_SKELETON, r);
3447
3412
  }
3448
3413
  return {
3449
3414
  val: {
3450
- type: W.number,
3415
+ type: z.number,
3451
3416
  tokens: n,
3452
3417
  location: r,
3453
- parsedOptions: this.shouldParseSkeletons ? Sn(n) : {}
3418
+ parsedOptions: this.shouldParseSkeletons ? En(n) : {}
3454
3419
  },
3455
3420
  err: null
3456
3421
  };
3457
3422
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3458
3423
  for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3459
3424
  if (u.length === 0) {
3460
- var c = this.clonePosition();
3425
+ var f = this.clonePosition();
3461
3426
  if (r !== "select" && this.bumpIf("=")) {
3462
- var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
3463
- if (f.err)
3464
- return f;
3465
- h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3427
+ var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
3428
+ if (c.err)
3429
+ return c;
3430
+ h = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3466
3431
  } else
3467
3432
  break;
3468
3433
  }
3469
3434
  if (l.has(u))
3470
- return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3435
+ return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3471
3436
  u === "other" && (a = !0), this.bumpSpace();
3472
- var p = this.clonePosition();
3437
+ var d = this.clonePosition();
3473
3438
  if (!this.bumpIf("{"))
3474
- return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3475
- var g = this.parseMessage(t + 1, r, n);
3476
- if (g.err)
3477
- return g;
3478
- var m = this.tryParseArgumentClose(p);
3479
- if (m.err)
3480
- return m;
3439
+ return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3440
+ var v = this.parseMessage(t + 1, r, n);
3441
+ if (v.err)
3442
+ return v;
3443
+ var p = this.tryParseArgumentClose(d);
3444
+ if (p.err)
3445
+ return p;
3481
3446
  s.push([
3482
3447
  u,
3483
3448
  {
3484
- value: g.val,
3485
- location: b(p, this.clonePosition())
3449
+ value: v.val,
3450
+ location: b(d, this.clonePosition())
3486
3451
  }
3487
3452
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3488
3453
  }
3489
- return s.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3454
+ return s.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3490
3455
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3491
3456
  var n = 1, i = this.clonePosition();
3492
3457
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3498,7 +3463,7 @@ var Fn = (
3498
3463
  break;
3499
3464
  }
3500
3465
  var l = b(i, this.clonePosition());
3501
- return o ? (a *= n, Rn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3466
+ return o ? (a *= n, Ln(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3502
3467
  }, e.prototype.offset = function() {
3503
3468
  return this.position.offset;
3504
3469
  }, e.prototype.isEOF = function() {
@@ -3513,7 +3478,7 @@ var Fn = (
3513
3478
  var t = this.position.offset;
3514
3479
  if (t >= this.message.length)
3515
3480
  throw Error("out of bound");
3516
- var r = Jt(this.message, t);
3481
+ var r = zt(this.message, t);
3517
3482
  if (r === void 0)
3518
3483
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3519
3484
  return r;
@@ -3532,7 +3497,7 @@ var Fn = (
3532
3497
  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);
3533
3498
  }
3534
3499
  }, e.prototype.bumpIf = function(t) {
3535
- if (yt(this.message, t, this.offset())) {
3500
+ if (dt(this.message, t, this.offset())) {
3536
3501
  for (var r = 0; r < t.length; r++)
3537
3502
  this.bump();
3538
3503
  return !0;
@@ -3554,7 +3519,7 @@ var Fn = (
3554
3519
  break;
3555
3520
  }
3556
3521
  }, e.prototype.bumpSpace = function() {
3557
- for (; !this.isEOF() && Kt(this.char()); )
3522
+ for (; !this.isEOF() && Qt(this.char()); )
3558
3523
  this.bump();
3559
3524
  }, e.prototype.peek = function() {
3560
3525
  if (this.isEOF())
@@ -3564,47 +3529,47 @@ var Fn = (
3564
3529
  }, e;
3565
3530
  }()
3566
3531
  );
3567
- function Ze(e) {
3532
+ function ke(e) {
3568
3533
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3569
3534
  }
3570
- function jn(e) {
3571
- return Ze(e) || e === 47;
3535
+ function Un(e) {
3536
+ return ke(e) || e === 47;
3572
3537
  }
3573
- function kn(e) {
3538
+ function Dn(e) {
3574
3539
  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;
3575
3540
  }
3576
- function Kt(e) {
3541
+ function Qt(e) {
3577
3542
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3578
3543
  }
3579
- function Vn(e) {
3544
+ function Gn(e) {
3580
3545
  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;
3581
3546
  }
3582
- function Qe(e) {
3547
+ function Ve(e) {
3583
3548
  e.forEach(function(t) {
3584
- if (delete t.location, kt(t) || Vt(t))
3549
+ if (delete t.location, Dt(t) || Gt(t))
3585
3550
  for (var r in t.options)
3586
- delete t.options[r].location, Qe(t.options[r].value);
3551
+ delete t.options[r].location, Ve(t.options[r].value);
3587
3552
  else
3588
- Gt(t) && Wt(t.style) || (Ft(t) || jt(t)) && Ve(t.style) ? delete t.style.location : Xt(t) && Qe(t.children);
3553
+ $t(t) && jt(t.style) || (Rt(t) || Ut(t)) && De(t.style) ? delete t.style.location : Ft(t) && Ve(t.children);
3589
3554
  });
3590
3555
  }
3591
- function Xn(e, t) {
3592
- t === void 0 && (t = {}), t = be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3593
- var r = new Fn(e, t).parse();
3556
+ function Fn(e, t) {
3557
+ t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3558
+ var r = new Rn(e, t).parse();
3594
3559
  if (r.err) {
3595
- var n = SyntaxError(d[r.err.kind]);
3560
+ var n = SyntaxError(m[r.err.kind]);
3596
3561
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3597
3562
  }
3598
- return t?.captureLocation || Qe(r.val), r.val;
3563
+ return t?.captureLocation || Ve(r.val), r.val;
3599
3564
  }
3600
- var z;
3565
+ var Z;
3601
3566
  (function(e) {
3602
3567
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3603
- })(z || (z = {}));
3604
- var xe = (
3568
+ })(Z || (Z = {}));
3569
+ var _e = (
3605
3570
  /** @class */
3606
3571
  function(e) {
3607
- Ee(t, e);
3572
+ N(t, e);
3608
3573
  function t(r, n, i) {
3609
3574
  var o = e.call(this, r) || this;
3610
3575
  return o.code = n, o.originalMessage = i, o;
@@ -3613,48 +3578,48 @@ var xe = (
3613
3578
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3614
3579
  }, t;
3615
3580
  }(Error)
3616
- ), _t = (
3581
+ ), bt = (
3617
3582
  /** @class */
3618
3583
  function(e) {
3619
- Ee(t, e);
3584
+ N(t, e);
3620
3585
  function t(r, n, i, o) {
3621
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
3586
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
3622
3587
  }
3623
3588
  return t;
3624
- }(xe)
3625
- ), Wn = (
3589
+ }(_e)
3590
+ ), jn = (
3626
3591
  /** @class */
3627
3592
  function(e) {
3628
- Ee(t, e);
3593
+ N(t, e);
3629
3594
  function t(r, n, i) {
3630
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
3595
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
3631
3596
  }
3632
3597
  return t;
3633
- }(xe)
3634
- ), zn = (
3598
+ }(_e)
3599
+ ), kn = (
3635
3600
  /** @class */
3636
3601
  function(e) {
3637
- Ee(t, e);
3602
+ N(t, e);
3638
3603
  function t(r, n) {
3639
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
3604
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
3640
3605
  }
3641
3606
  return t;
3642
- }(xe)
3607
+ }(_e)
3643
3608
  ), H;
3644
3609
  (function(e) {
3645
3610
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3646
3611
  })(H || (H = {}));
3647
- function Zn(e) {
3612
+ function Vn(e) {
3648
3613
  return e.length < 2 ? e : e.reduce(function(t, r) {
3649
3614
  var n = t[t.length - 1];
3650
3615
  return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
3651
3616
  }, []);
3652
3617
  }
3653
- function Qn(e) {
3618
+ function Xn(e) {
3654
3619
  return typeof e == "function";
3655
3620
  }
3656
- function me(e, t, r, n, i, o, a) {
3657
- if (e.length === 1 && pt(e[0]))
3621
+ function pe(e, t, r, n, i, o, a) {
3622
+ if (e.length === 1 && ht(e[0]))
3658
3623
  return [
3659
3624
  {
3660
3625
  type: H.literal,
@@ -3663,105 +3628,105 @@ function me(e, t, r, n, i, o, a) {
3663
3628
  ];
3664
3629
  for (var s = [], l = 0, u = e; l < u.length; l++) {
3665
3630
  var h = u[l];
3666
- if (pt(h)) {
3631
+ if (ht(h)) {
3667
3632
  s.push({
3668
3633
  type: H.literal,
3669
3634
  value: h.value
3670
3635
  });
3671
3636
  continue;
3672
3637
  }
3673
- if (yn(h)) {
3638
+ if (dn(h)) {
3674
3639
  typeof o == "number" && s.push({
3675
3640
  type: H.literal,
3676
3641
  value: r.getNumberFormat(t).format(o)
3677
3642
  });
3678
3643
  continue;
3679
3644
  }
3680
- var c = h.value;
3681
- if (!(i && c in i))
3682
- throw new zn(c, a);
3683
- var f = i[c];
3684
- if (bn(h)) {
3685
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
3686
- type: typeof f == "string" ? H.literal : H.object,
3687
- value: f
3645
+ var f = h.value;
3646
+ if (!(i && f in i))
3647
+ throw new kn(f, a);
3648
+ var c = i[f];
3649
+ if (cn(h)) {
3650
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3651
+ type: typeof c == "string" ? H.literal : H.object,
3652
+ value: c
3688
3653
  });
3689
3654
  continue;
3690
3655
  }
3691
- if (Ft(h)) {
3692
- var p = typeof h.style == "string" ? n.date[h.style] : Ve(h.style) ? h.style.parsedOptions : void 0;
3656
+ if (Rt(h)) {
3657
+ var d = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
3693
3658
  s.push({
3694
3659
  type: H.literal,
3695
- value: r.getDateTimeFormat(t, p).format(f)
3660
+ value: r.getDateTimeFormat(t, d).format(c)
3696
3661
  });
3697
3662
  continue;
3698
3663
  }
3699
- if (jt(h)) {
3700
- var p = typeof h.style == "string" ? n.time[h.style] : Ve(h.style) ? h.style.parsedOptions : n.time.medium;
3664
+ if (Ut(h)) {
3665
+ var d = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
3701
3666
  s.push({
3702
3667
  type: H.literal,
3703
- value: r.getDateTimeFormat(t, p).format(f)
3668
+ value: r.getDateTimeFormat(t, d).format(c)
3704
3669
  });
3705
3670
  continue;
3706
3671
  }
3707
- if (Gt(h)) {
3708
- var p = typeof h.style == "string" ? n.number[h.style] : Wt(h.style) ? h.style.parsedOptions : void 0;
3709
- p && p.scale && (f = f * (p.scale || 1)), s.push({
3672
+ if ($t(h)) {
3673
+ var d = typeof h.style == "string" ? n.number[h.style] : jt(h.style) ? h.style.parsedOptions : void 0;
3674
+ d && d.scale && (c = c * (d.scale || 1)), s.push({
3710
3675
  type: H.literal,
3711
- value: r.getNumberFormat(t, p).format(f)
3676
+ value: r.getNumberFormat(t, d).format(c)
3712
3677
  });
3713
3678
  continue;
3714
3679
  }
3715
- if (Xt(h)) {
3716
- var g = h.children, m = h.value, T = i[m];
3717
- if (!Qn(T))
3718
- throw new Wn(m, "function", a);
3719
- var $ = me(g, t, r, n, i, o), P = T($.map(function(O) {
3720
- return O.value;
3680
+ if (Ft(h)) {
3681
+ var v = h.children, p = h.value, T = i[p];
3682
+ if (!Xn(T))
3683
+ throw new jn(p, "function", a);
3684
+ var $ = pe(v, t, r, n, i, o), A = T($.map(function(P) {
3685
+ return P.value;
3721
3686
  }));
3722
- Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(O) {
3687
+ Array.isArray(A) || (A = [A]), s.push.apply(s, A.map(function(P) {
3723
3688
  return {
3724
- type: typeof O == "string" ? H.literal : H.object,
3725
- value: O
3689
+ type: typeof P == "string" ? H.literal : H.object,
3690
+ value: P
3726
3691
  };
3727
3692
  }));
3728
3693
  }
3729
- if (kt(h)) {
3730
- var S = h.options[f] || h.options.other;
3694
+ if (Dt(h)) {
3695
+ var S = h.options[c] || h.options.other;
3731
3696
  if (!S)
3732
- throw new _t(h.value, f, Object.keys(h.options), a);
3733
- s.push.apply(s, me(S.value, t, r, n, i));
3697
+ throw new bt(h.value, c, Object.keys(h.options), a);
3698
+ s.push.apply(s, pe(S.value, t, r, n, i));
3734
3699
  continue;
3735
3700
  }
3736
- if (Vt(h)) {
3737
- var S = h.options["=".concat(f)];
3701
+ if (Gt(h)) {
3702
+ var S = h.options["=".concat(c)];
3738
3703
  if (!S) {
3739
3704
  if (!Intl.PluralRules)
3740
- throw new xe(`Intl.PluralRules is not available in this environment.
3705
+ throw new _e(`Intl.PluralRules is not available in this environment.
3741
3706
  Try polyfilling it using "@formatjs/intl-pluralrules"
3742
- `, z.MISSING_INTL_API, a);
3743
- var R = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3707
+ `, Z.MISSING_INTL_API, a);
3708
+ var R = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3744
3709
  S = h.options[R] || h.options.other;
3745
3710
  }
3746
3711
  if (!S)
3747
- throw new _t(h.value, f, Object.keys(h.options), a);
3748
- s.push.apply(s, me(S.value, t, r, n, i, f - (h.offset || 0)));
3712
+ throw new bt(h.value, c, Object.keys(h.options), a);
3713
+ s.push.apply(s, pe(S.value, t, r, n, i, c - (h.offset || 0)));
3749
3714
  continue;
3750
3715
  }
3751
3716
  }
3752
- return Zn(s);
3717
+ return Vn(s);
3753
3718
  }
3754
- function qn(e, t) {
3755
- return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3756
- return r[n] = A(A({}, e[n]), t[n] || {}), r;
3719
+ function Wn(e, t) {
3720
+ return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3721
+ return r[n] = y(y({}, e[n]), t[n] || {}), r;
3757
3722
  }, {})) : e;
3758
3723
  }
3759
- function Jn(e, t) {
3724
+ function zn(e, t) {
3760
3725
  return t ? Object.keys(e).reduce(function(r, n) {
3761
- return r[n] = qn(e[n], t[n]), r;
3762
- }, A({}, e)) : e;
3726
+ return r[n] = Wn(e[n], t[n]), r;
3727
+ }, y({}, e)) : e;
3763
3728
  }
3764
- function Ie(e) {
3729
+ function Ae(e) {
3765
3730
  return {
3766
3731
  create: function() {
3767
3732
  return {
@@ -3775,39 +3740,39 @@ function Ie(e) {
3775
3740
  }
3776
3741
  };
3777
3742
  }
3778
- function Yn(e) {
3743
+ function Zn(e) {
3779
3744
  return e === void 0 && (e = {
3780
3745
  number: {},
3781
3746
  dateTime: {},
3782
3747
  pluralRules: {}
3783
3748
  }), {
3784
- getNumberFormat: Ae(function() {
3749
+ getNumberFormat: Se(function() {
3785
3750
  for (var t, r = [], n = 0; n < arguments.length; n++)
3786
3751
  r[n] = arguments[n];
3787
- return new ((t = Intl.NumberFormat).bind.apply(t, Be([void 0], r, !1)))();
3752
+ return new ((t = Intl.NumberFormat).bind.apply(t, X([void 0], r, !1)))();
3788
3753
  }, {
3789
- cache: Ie(e.number),
3790
- strategy: Pe.variadic
3754
+ cache: Ae(e.number),
3755
+ strategy: we.variadic
3791
3756
  }),
3792
- getDateTimeFormat: Ae(function() {
3757
+ getDateTimeFormat: Se(function() {
3793
3758
  for (var t, r = [], n = 0; n < arguments.length; n++)
3794
3759
  r[n] = arguments[n];
3795
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Be([void 0], r, !1)))();
3760
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, X([void 0], r, !1)))();
3796
3761
  }, {
3797
- cache: Ie(e.dateTime),
3798
- strategy: Pe.variadic
3762
+ cache: Ae(e.dateTime),
3763
+ strategy: we.variadic
3799
3764
  }),
3800
- getPluralRules: Ae(function() {
3765
+ getPluralRules: Se(function() {
3801
3766
  for (var t, r = [], n = 0; n < arguments.length; n++)
3802
3767
  r[n] = arguments[n];
3803
- return new ((t = Intl.PluralRules).bind.apply(t, Be([void 0], r, !1)))();
3768
+ return new ((t = Intl.PluralRules).bind.apply(t, X([void 0], r, !1)))();
3804
3769
  }, {
3805
- cache: Ie(e.pluralRules),
3806
- strategy: Pe.variadic
3770
+ cache: Ae(e.pluralRules),
3771
+ strategy: we.variadic
3807
3772
  })
3808
3773
  };
3809
3774
  }
3810
- var Kn = (
3775
+ var Qn = (
3811
3776
  /** @class */
3812
3777
  function() {
3813
3778
  function e(t, r, n, i) {
@@ -3821,12 +3786,12 @@ var Kn = (
3821
3786
  var u = o.formatToParts(l);
3822
3787
  if (u.length === 1)
3823
3788
  return u[0].value;
3824
- var h = u.reduce(function(c, f) {
3825
- return !c.length || f.type !== H.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3789
+ var h = u.reduce(function(f, c) {
3790
+ return !f.length || c.type !== H.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3826
3791
  }, []);
3827
3792
  return h.length <= 1 ? h[0] || "" : h;
3828
3793
  }, this.formatToParts = function(l) {
3829
- return me(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3794
+ return pe(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3830
3795
  }, this.resolvedOptions = function() {
3831
3796
  var l;
3832
3797
  return {
@@ -3839,13 +3804,13 @@ var Kn = (
3839
3804
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3840
3805
  var a = i || {};
3841
3806
  a.formatters;
3842
- var s = un(a, ["formatters"]);
3843
- this.ast = e.__parse(t, A(A({}, s), { locale: this.resolvedLocale }));
3807
+ var s = wr(a, ["formatters"]);
3808
+ this.ast = e.__parse(t, y(y({}, s), { locale: this.resolvedLocale }));
3844
3809
  } else
3845
3810
  this.ast = t;
3846
3811
  if (!Array.isArray(this.ast))
3847
3812
  throw new TypeError("A message must be provided as a String or AST.");
3848
- this.formats = Jn(e.formats, n), this.formatters = i && i.formatters || Yn(this.formatterCache);
3813
+ this.formats = zn(e.formats, n), this.formatters = i && i.formatters || Zn(this.formatterCache);
3849
3814
  }
3850
3815
  return Object.defineProperty(e, "defaultLocale", {
3851
3816
  get: function() {
@@ -3858,7 +3823,7 @@ var Kn = (
3858
3823
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3859
3824
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3860
3825
  }
3861
- }, e.__parse = Xn, e.formats = {
3826
+ }, e.__parse = Fn, e.formats = {
3862
3827
  number: {
3863
3828
  integer: {
3864
3829
  maximumFractionDigits: 0
@@ -3919,7 +3884,7 @@ var Kn = (
3919
3884
  }, e;
3920
3885
  }()
3921
3886
  );
3922
- function ei(e, t) {
3887
+ function qn(e, t) {
3923
3888
  if (t == null)
3924
3889
  return;
3925
3890
  if (t in e)
@@ -3940,92 +3905,92 @@ function ei(e, t) {
3940
3905
  n = void 0;
3941
3906
  return n;
3942
3907
  }
3943
- const M = {}, ti = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), er = (e, t) => {
3908
+ const M = {}, Jn = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), qt = (e, t) => {
3944
3909
  if (t == null)
3945
3910
  return;
3946
3911
  if (t in M && e in M[t])
3947
3912
  return M[t][e];
3948
- const r = Te(t);
3913
+ const r = Ee(t);
3949
3914
  for (let n = 0; n < r.length; n++) {
3950
- const i = r[n], o = ni(i, e);
3915
+ const i = r[n], o = Kn(i, e);
3951
3916
  if (o)
3952
- return ti(e, t, o);
3917
+ return Jn(e, t, o);
3953
3918
  }
3954
3919
  };
3955
- let et;
3956
- const ue = _e({});
3957
- function ri(e) {
3958
- return et[e] || null;
3920
+ let qe;
3921
+ const ue = ve({});
3922
+ function Yn(e) {
3923
+ return qe[e] || null;
3959
3924
  }
3960
- function tr(e) {
3961
- return e in et;
3925
+ function Jt(e) {
3926
+ return e in qe;
3962
3927
  }
3963
- function ni(e, t) {
3964
- if (!tr(e))
3928
+ function Kn(e, t) {
3929
+ if (!Jt(e))
3965
3930
  return null;
3966
- const r = ri(e);
3967
- return ei(r, t);
3931
+ const r = Yn(e);
3932
+ return qn(r, t);
3968
3933
  }
3969
- function ii(e) {
3934
+ function ei(e) {
3970
3935
  if (e == null)
3971
3936
  return;
3972
- const t = Te(e);
3937
+ const t = Ee(e);
3973
3938
  for (let r = 0; r < t.length; r++) {
3974
3939
  const n = t[r];
3975
- if (tr(n))
3940
+ if (Jt(n))
3976
3941
  return n;
3977
3942
  }
3978
3943
  }
3979
- function rr(e, ...t) {
3980
- delete M[e], ue.update((r) => (r[e] = an.all([r[e] || {}, ...t]), r));
3944
+ function Yt(e, ...t) {
3945
+ delete M[e], ue.update((r) => (r[e] = nn.all([r[e] || {}, ...t]), r));
3981
3946
  }
3982
- q(
3947
+ J(
3983
3948
  [ue],
3984
3949
  ([e]) => Object.keys(e)
3985
3950
  );
3986
- ue.subscribe((e) => et = e);
3987
- const de = {};
3988
- function oi(e, t) {
3989
- de[e].delete(t), de[e].size === 0 && delete de[e];
3951
+ ue.subscribe((e) => qe = e);
3952
+ const me = {};
3953
+ function ti(e, t) {
3954
+ me[e].delete(t), me[e].size === 0 && delete me[e];
3990
3955
  }
3991
- function nr(e) {
3992
- return de[e];
3956
+ function Kt(e) {
3957
+ return me[e];
3993
3958
  }
3994
- function si(e) {
3995
- return Te(e).map((t) => {
3996
- const r = nr(t);
3959
+ function ri(e) {
3960
+ return Ee(e).map((t) => {
3961
+ const r = Kt(t);
3997
3962
  return [t, r ? [...r] : []];
3998
3963
  }).filter(([, t]) => t.length > 0);
3999
3964
  }
4000
- function qe(e) {
4001
- return e == null ? !1 : Te(e).some(
3965
+ function Xe(e) {
3966
+ return e == null ? !1 : Ee(e).some(
4002
3967
  (t) => {
4003
3968
  var r;
4004
- return (r = nr(t)) == null ? void 0 : r.size;
3969
+ return (r = Kt(t)) == null ? void 0 : r.size;
4005
3970
  }
4006
3971
  );
4007
3972
  }
4008
- function ai(e, t) {
3973
+ function ni(e, t) {
4009
3974
  return Promise.all(
4010
- t.map((n) => (oi(e, n), n().then((i) => i.default || i)))
4011
- ).then((n) => rr(e, ...n));
4012
- }
4013
- const K = {};
4014
- function ir(e) {
4015
- if (!qe(e))
4016
- return e in K ? K[e] : Promise.resolve();
4017
- const t = si(e);
4018
- return K[e] = Promise.all(
3975
+ t.map((n) => (ti(e, n), n().then((i) => i.default || i)))
3976
+ ).then((n) => Yt(e, ...n));
3977
+ }
3978
+ const ee = {};
3979
+ function er(e) {
3980
+ if (!Xe(e))
3981
+ return e in ee ? ee[e] : Promise.resolve();
3982
+ const t = ri(e);
3983
+ return ee[e] = Promise.all(
4019
3984
  t.map(
4020
- ([r, n]) => ai(r, n)
3985
+ ([r, n]) => ni(r, n)
4021
3986
  )
4022
3987
  ).then(() => {
4023
- if (qe(e))
4024
- return ir(e);
4025
- delete K[e];
4026
- }), K[e];
3988
+ if (Xe(e))
3989
+ return er(e);
3990
+ delete ee[e];
3991
+ }), ee[e];
4027
3992
  }
4028
- const ui = {
3993
+ const ii = {
4029
3994
  number: {
4030
3995
  scientific: { notation: "scientific" },
4031
3996
  engineering: { notation: "engineering" },
@@ -4054,135 +4019,135 @@ const ui = {
4054
4019
  timeZoneName: "short"
4055
4020
  }
4056
4021
  }
4057
- }, hi = {
4022
+ }, oi = {
4058
4023
  fallbackLocale: null,
4059
4024
  loadingDelay: 200,
4060
- formats: ui,
4025
+ formats: ii,
4061
4026
  warnOnMissingMessages: !0,
4062
4027
  handleMissingMessage: void 0,
4063
4028
  ignoreTag: !0
4064
- }, li = hi;
4065
- function Z() {
4066
- return li;
4067
- }
4068
- const Ne = _e(!1);
4069
- var ci = Object.defineProperty, fi = Object.defineProperties, pi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, mi = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, bi = (e, t) => {
4070
- for (var r in t || (t = {}))
4071
- mi.call(t, r) && xt(e, r, t[r]);
4072
- if (Et)
4073
- for (var r of Et(t))
4074
- di.call(t, r) && xt(e, r, t[r]);
4029
+ }, si = oi;
4030
+ function Q() {
4031
+ return si;
4032
+ }
4033
+ const Pe = ve(!1);
4034
+ var ai = Object.defineProperty, ui = Object.defineProperties, hi = Object.getOwnPropertyDescriptors, yt = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, fi = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ci = (e, t) => {
4035
+ for (var r in t)
4036
+ li.call(t, r) && gt(e, r, t[r]);
4037
+ if (yt)
4038
+ for (var r of yt(t))
4039
+ fi.call(t, r) && gt(e, r, t[r]);
4075
4040
  return e;
4076
- }, yi = (e, t) => fi(e, pi(t));
4077
- let Je;
4078
- const ye = _e(null);
4079
- function Tt(e) {
4041
+ }, di = (e, t) => ui(e, hi(t));
4042
+ let We;
4043
+ const be = ve(null);
4044
+ function vt(e) {
4080
4045
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4081
4046
  }
4082
- function Te(e, t = Z().fallbackLocale) {
4083
- const r = Tt(e);
4084
- return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
4047
+ function Ee(e, t = Q().fallbackLocale) {
4048
+ const r = vt(e);
4049
+ return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
4085
4050
  }
4086
4051
  function U() {
4087
- return Je ?? void 0;
4052
+ return We ?? void 0;
4088
4053
  }
4089
- ye.subscribe((e) => {
4090
- Je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4054
+ be.subscribe((e) => {
4055
+ We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4091
4056
  });
4092
- const gi = (e) => {
4093
- if (e && ii(e) && qe(e)) {
4094
- const { loadingDelay: t } = Z();
4057
+ const pi = (e) => {
4058
+ if (e && ei(e) && Xe(e)) {
4059
+ const { loadingDelay: t } = Q();
4095
4060
  let r;
4096
4061
  return typeof window < "u" && U() != null && t ? r = window.setTimeout(
4097
- () => Ne.set(!0),
4062
+ () => Pe.set(!0),
4098
4063
  t
4099
- ) : Ne.set(!0), ir(e).then(() => {
4100
- ye.set(e);
4064
+ ) : Pe.set(!0), er(e).then(() => {
4065
+ be.set(e);
4101
4066
  }).finally(() => {
4102
- clearTimeout(r), Ne.set(!1);
4067
+ clearTimeout(r), Pe.set(!1);
4103
4068
  });
4104
4069
  }
4105
- return ye.set(e);
4106
- }, J = yi(bi({}, ye), {
4107
- set: gi
4108
- }), He = (e) => {
4070
+ return be.set(e);
4071
+ }, Y = di(ci({}, be), {
4072
+ set: pi
4073
+ }), xe = (e) => {
4109
4074
  const t = /* @__PURE__ */ Object.create(null);
4110
4075
  return (n) => {
4111
4076
  const i = JSON.stringify(n);
4112
4077
  return i in t ? t[i] : t[i] = e(n);
4113
4078
  };
4114
4079
  };
4115
- var vi = Object.defineProperty, ge = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
4080
+ var mi = Object.defineProperty, ye = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
4116
4081
  for (var r in t || (t = {}))
4117
- or.call(t, r) && Ht(e, r, t[r]);
4118
- if (ge)
4119
- for (var r of ge(t))
4120
- sr.call(t, r) && Ht(e, r, t[r]);
4082
+ tr.call(t, r) && _t(e, r, t[r]);
4083
+ if (ye)
4084
+ for (var r of ye(t))
4085
+ rr.call(t, r) && _t(e, r, t[r]);
4121
4086
  return e;
4122
- }, Y = (e, t) => {
4087
+ }, K = (e, t) => {
4123
4088
  var r = {};
4124
4089
  for (var n in e)
4125
- or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4126
- if (e != null && ge)
4127
- for (var n of ge(e))
4128
- t.indexOf(n) < 0 && sr.call(e, n) && (r[n] = e[n]);
4090
+ tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4091
+ if (e != null && ye)
4092
+ for (var n of ye(e))
4093
+ t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
4129
4094
  return r;
4130
4095
  };
4131
- const ie = (e, t) => {
4132
- const { formats: r } = Z();
4096
+ const oe = (e, t) => {
4097
+ const { formats: r } = Q();
4133
4098
  if (e in r && t in r[e])
4134
4099
  return r[e][t];
4135
4100
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4136
- }, _i = He(
4101
+ }, bi = xe(
4137
4102
  (e) => {
4138
- var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4103
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4139
4104
  if (r == null)
4140
4105
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4141
- return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
4106
+ return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
4142
4107
  }
4143
- ), Ei = He(
4108
+ ), yi = xe(
4144
4109
  (e) => {
4145
- var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4110
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4146
4111
  if (r == null)
4147
4112
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4148
- return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
4113
+ return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
4149
4114
  }
4150
- ), xi = He(
4115
+ ), gi = xe(
4151
4116
  (e) => {
4152
- var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4117
+ var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4153
4118
  if (r == null)
4154
4119
  throw new Error(
4155
4120
  '[svelte-i18n] A "locale" must be set to format time values'
4156
4121
  );
4157
- return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
4122
+ return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
4158
4123
  }
4159
- ), Ti = (e = {}) => {
4124
+ ), vi = (e = {}) => {
4160
4125
  var t = e, {
4161
4126
  locale: r = U()
4162
- } = t, n = Y(t, [
4127
+ } = t, n = K(t, [
4163
4128
  "locale"
4164
4129
  ]);
4165
- return _i(tt({ locale: r }, n));
4166
- }, Hi = (e = {}) => {
4130
+ return bi(Je({ locale: r }, n));
4131
+ }, _i = (e = {}) => {
4167
4132
  var t = e, {
4168
4133
  locale: r = U()
4169
- } = t, n = Y(t, [
4134
+ } = t, n = K(t, [
4170
4135
  "locale"
4171
4136
  ]);
4172
- return Ei(tt({ locale: r }, n));
4173
- }, Si = (e = {}) => {
4137
+ return yi(Je({ locale: r }, n));
4138
+ }, Ei = (e = {}) => {
4174
4139
  var t = e, {
4175
4140
  locale: r = U()
4176
- } = t, n = Y(t, [
4141
+ } = t, n = K(t, [
4177
4142
  "locale"
4178
4143
  ]);
4179
- return xi(tt({ locale: r }, n));
4180
- }, wi = He(
4144
+ return gi(Je({ locale: r }, n));
4145
+ }, xi = xe(
4181
4146
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4182
- (e, t = U()) => new Kn(e, t, Z().formats, {
4183
- ignoreTag: Z().ignoreTag
4147
+ (e, t = U()) => new Qn(e, t, Q().formats, {
4148
+ ignoreTag: Q().ignoreTag
4184
4149
  })
4185
- ), Bi = (e, t = {}) => {
4150
+ ), Ti = (e, t = {}) => {
4186
4151
  var r, n, i, o;
4187
4152
  let a = t;
4188
4153
  typeof e == "object" && (a = e, e = a.id);
@@ -4195,39 +4160,39 @@ const ie = (e, t) => {
4195
4160
  throw new Error(
4196
4161
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4197
4162
  );
4198
- let h = er(e, l);
4163
+ let h = qt(e, l);
4199
4164
  if (!h)
4200
- h = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4165
+ h = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4201
4166
  else if (typeof h != "string")
4202
4167
  return console.warn(
4203
4168
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4204
4169
  ), h;
4205
4170
  if (!s)
4206
4171
  return h;
4207
- let c = h;
4172
+ let f = h;
4208
4173
  try {
4209
- c = wi(h, l).format(s);
4210
- } catch (f) {
4211
- f instanceof Error && console.warn(
4174
+ f = xi(h, l).format(s);
4175
+ } catch (c) {
4176
+ c instanceof Error && console.warn(
4212
4177
  `[svelte-i18n] Message "${e}" has syntax error:`,
4213
- f.message
4178
+ c.message
4214
4179
  );
4215
4180
  }
4216
- return c;
4217
- }, Ai = (e, t) => Si(t).format(e), Pi = (e, t) => Hi(t).format(e), Oi = (e, t) => Ti(t).format(e), Ii = (e, t = U()) => er(e, t), Ni = q([J, ue], () => Bi);
4218
- q([J], () => Ai);
4219
- q([J], () => Pi);
4220
- q([J], () => Oi);
4221
- q([J, ue], () => Ii);
4222
- window.emWidgets = { topic: kr };
4223
- const Li = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4224
- function St(e, t) {
4225
- rr(e, t);
4226
- }
4227
- function Ci(e) {
4228
- J.set(e);
4229
- }
4230
- const wt = {
4181
+ return f;
4182
+ }, Hi = (e, t) => Ei(t).format(e), Si = (e, t) => _i(t).format(e), wi = (e, t) => vi(t).format(e), Bi = (e, t = U()) => qt(e, t), Ai = J([Y, ue], () => Ti);
4183
+ J([Y], () => Hi);
4184
+ J([Y], () => Si);
4185
+ J([Y], () => wi);
4186
+ J([Y, ue], () => Bi);
4187
+ window.emWidgets = { topic: Gr };
4188
+ const Pi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4189
+ function Et(e, t) {
4190
+ Yt(e, t);
4191
+ }
4192
+ function Oi(e) {
4193
+ Y.set(e);
4194
+ }
4195
+ const xt = {
4231
4196
  en: {
4232
4197
  titleTransactionHistory: "Transaction History",
4233
4198
  loading: "Loading, please wait ..."
@@ -4269,13 +4234,13 @@ const wt = {
4269
4234
  loading: "Loading, please wait ..."
4270
4235
  }
4271
4236
  };
4272
- function Mi(e, t) {
4237
+ function Ii(e, t) {
4273
4238
  if (e) {
4274
4239
  const r = document.createElement("style");
4275
4240
  r.innerHTML = t, e.appendChild(r);
4276
4241
  }
4277
4242
  }
4278
- function $i(e, t) {
4243
+ function Ni(e, t) {
4279
4244
  const r = new URL(t);
4280
4245
  fetch(r.href).then((n) => n.text()).then((n) => {
4281
4246
  const i = document.createElement("style");
@@ -4284,7 +4249,7 @@ function $i(e, t) {
4284
4249
  console.error("There was an error while trying to load client styling from URL", n);
4285
4250
  });
4286
4251
  }
4287
- function Ri(e, t, r) {
4252
+ function Li(e, t, r) {
4288
4253
  if (window.emMessageBus) {
4289
4254
  const n = document.createElement("style");
4290
4255
  window.emMessageBus.subscribe(t, (i) => {
@@ -4292,142 +4257,142 @@ function Ri(e, t, r) {
4292
4257
  });
4293
4258
  }
4294
4259
  }
4295
- function Ui(e) {
4296
- hr(e, "svelte-1v10tii", ".TransactionHistoryWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TransactionHistoryTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.TransactionHistoryTitleMobile{font-size:var(--emw--size-standard, 16px)}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}");
4260
+ function Ci(e) {
4261
+ or(e, "svelte-1v10tii", ".TransactionHistoryWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.TransactionHistoryWrapper.TransactionHistoryWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TransactionHistoryTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.TransactionHistoryTitleMobile{font-size:var(--emw--size-standard, 16px)}.TransactionHistoryTitleNone{display:none}.TransactionHistoryIframeWrapper iframe{border:none;width:100%;height:85vh}");
4297
4262
  }
4298
- function Di(e) {
4299
- let t, r, n, i, o, a, s, l, u, h, c = (
4263
+ function Mi(e) {
4264
+ let t, r, n, i, o, a, s, l, u, h, f = (
4300
4265
  /*$_*/
4301
4266
  e[3]("titleTransactionHistory") + ""
4302
- ), f, p, g;
4267
+ ), c, d, v;
4303
4268
  return {
4304
4269
  c() {
4305
- t = N("div"), r = G("svg"), n = G("defs"), i = G("style"), o = te(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Le(), h = N("h2"), f = te(c), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(s, "transform", "translate(20 158)"), E(a, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(h, "class", "TransactionHistoryTitleMobile"), E(t, "class", "MenuReturnButton");
4270
+ t = I("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Oe(), h = I("h2"), c = re(f), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(s, "transform", "translate(20 158)"), E(a, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(h, "class", "TransactionHistoryTitleMobile"), E(t, "class", "MenuReturnButton");
4306
4271
  },
4307
- m(m, T) {
4308
- se(m, t, T), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, f), p || (g = fr(
4272
+ m(p, T) {
4273
+ ae(p, t, T), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, c), d || (v = ur(
4309
4274
  t,
4310
4275
  "click",
4311
4276
  /*click_handler*/
4312
4277
  e[14]
4313
- ), p = !0);
4278
+ ), d = !0);
4314
4279
  },
4315
- p(m, T) {
4280
+ p(p, T) {
4316
4281
  T & /*$_*/
4317
- 8 && c !== (c = /*$_*/
4318
- m[3]("titleTransactionHistory") + "") && Ke(f, c);
4282
+ 8 && f !== (f = /*$_*/
4283
+ p[3]("titleTransactionHistory") + "") && Ze(c, f);
4319
4284
  },
4320
- d(m) {
4321
- m && Q(t), p = !1, g();
4285
+ d(p) {
4286
+ p && q(t), d = !1, v();
4322
4287
  }
4323
4288
  };
4324
4289
  }
4325
- function Gi(e) {
4290
+ function $i(e) {
4326
4291
  let t, r, n;
4327
4292
  return {
4328
4293
  c() {
4329
- t = N("div"), r = N("iframe"), nt(r.src, n = /*iframeUrl*/
4294
+ t = I("div"), r = I("iframe"), Ke(r.src, n = /*iframeUrl*/
4330
4295
  e[2]) || E(r, "src", n), E(r, "title", "Transaction History Iframe"), E(t, "class", "TransactionHistoryIframeWrapper");
4331
4296
  },
4332
4297
  m(i, o) {
4333
- se(i, t, o), x(t, r);
4298
+ ae(i, t, o), x(t, r);
4334
4299
  },
4335
4300
  p(i, o) {
4336
4301
  o & /*iframeUrl*/
4337
- 4 && !nt(r.src, n = /*iframeUrl*/
4302
+ 4 && !Ke(r.src, n = /*iframeUrl*/
4338
4303
  i[2]) && E(r, "src", n);
4339
4304
  },
4340
4305
  d(i) {
4341
- i && Q(t);
4306
+ i && q(t);
4342
4307
  }
4343
4308
  };
4344
4309
  }
4345
- function Fi(e) {
4310
+ function Ri(e) {
4346
4311
  let t, r = (
4347
4312
  /*$_*/
4348
4313
  e[3]("loading") + ""
4349
4314
  ), n;
4350
4315
  return {
4351
4316
  c() {
4352
- t = N("p"), n = te(r);
4317
+ t = I("p"), n = re(r);
4353
4318
  },
4354
4319
  m(i, o) {
4355
- se(i, t, o), x(t, n);
4320
+ ae(i, t, o), x(t, n);
4356
4321
  },
4357
4322
  p(i, o) {
4358
4323
  o & /*$_*/
4359
4324
  8 && r !== (r = /*$_*/
4360
- i[3]("loading") + "") && Ke(n, r);
4325
+ i[3]("loading") + "") && Ze(n, r);
4361
4326
  },
4362
4327
  d(i) {
4363
- i && Q(t);
4328
+ i && q(t);
4364
4329
  }
4365
4330
  };
4366
4331
  }
4367
- function ji(e) {
4332
+ function Ui(e) {
4368
4333
  let t, r, n, i = (
4369
4334
  /*$_*/
4370
4335
  e[3]("titleTransactionHistory") + ""
4371
4336
  ), o, a, s = (
4372
4337
  /*isMobile*/
4373
- e[4] && Di(e)
4338
+ e[4] && Mi(e)
4374
4339
  );
4375
- function l(c, f) {
4340
+ function l(f, c) {
4376
4341
  return (
4377
4342
  /*isLoading*/
4378
- c[1] ? Fi : Gi
4343
+ f[1] ? Ri : $i
4379
4344
  );
4380
4345
  }
4381
4346
  let u = l(e), h = u(e);
4382
4347
  return {
4383
4348
  c() {
4384
- t = N("div"), s && s.c(), r = Le(), n = N("h2"), o = te(i), a = Le(), h.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
4349
+ t = I("div"), s && s.c(), r = Oe(), n = I("h2"), o = re(i), a = Oe(), h.c(), E(n, "class", "TransactionHistoryTitle " + /*isMobile*/
4385
4350
  (e[4] ? "TransactionHistoryTitleNone" : "")), E(t, "class", "TransactionHistoryWrapper " + /*isMobile*/
4386
4351
  (e[4] ? "TransactionHistoryWrapperMobile" : ""));
4387
4352
  },
4388
- m(c, f) {
4389
- se(c, t, f), s && s.m(t, null), x(t, r), x(t, n), x(n, o), x(t, a), h.m(t, null), e[15](t);
4353
+ m(f, c) {
4354
+ ae(f, t, c), s && s.m(t, null), x(t, r), x(t, n), x(n, o), x(t, a), h.m(t, null), e[15](t);
4390
4355
  },
4391
- p(c, [f]) {
4356
+ p(f, [c]) {
4392
4357
  /*isMobile*/
4393
- c[4] && s.p(c, f), f & /*$_*/
4358
+ f[4] && s.p(f, c), c & /*$_*/
4394
4359
  8 && i !== (i = /*$_*/
4395
- c[3]("titleTransactionHistory") + "") && Ke(o, i), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(t, null)));
4360
+ f[3]("titleTransactionHistory") + "") && Ze(o, i), u === (u = l(f)) && h ? h.p(f, c) : (h.d(1), h = u(f), h && (h.c(), h.m(t, null)));
4396
4361
  },
4397
4362
  i: w,
4398
4363
  o: w,
4399
- d(c) {
4400
- c && Q(t), s && s.d(), h.d(), e[15](null);
4364
+ d(f) {
4365
+ f && q(t), s && s.d(), h.d(), e[15](null);
4401
4366
  }
4402
4367
  };
4403
4368
  }
4404
- function ki(e, t, r) {
4369
+ function Di(e, t, r) {
4405
4370
  let n;
4406
- ur(e, Ni, (y) => r(3, n = y));
4407
- let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: h } = t, { translationurl: c = "" } = t, f, p = window.navigator.userAgent, g = Li(p) !== "PC", m = !0, T = "";
4371
+ ir(e, Ai, (g) => r(3, n = g));
4372
+ let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: h } = t, { translationurl: f = "" } = t, c, d = window.navigator.userAgent, v = Pi(d) !== "PC", p = !0, T = "";
4408
4373
  const $ = () => {
4409
- fetch(c).then((L) => L.json()).then((L) => {
4374
+ fetch(f).then((L) => L.json()).then((L) => {
4410
4375
  Object.keys(L).forEach((C) => {
4411
- St(C, L[C]);
4376
+ Et(C, L[C]);
4412
4377
  });
4413
4378
  }).catch((L) => {
4414
4379
  console.log(L);
4415
4380
  });
4416
4381
  };
4417
- Object.keys(wt).forEach((y) => {
4418
- St(y, wt[y]);
4382
+ Object.keys(xt).forEach((g) => {
4383
+ Et(g, xt[g]);
4419
4384
  });
4420
- const P = () => {
4385
+ const A = () => {
4421
4386
  window.postMessage(
4422
4387
  {
4423
4388
  type: "PlayerAccountMenuActive",
4424
- isMobile: g
4389
+ isMobile: v
4425
4390
  },
4426
4391
  window.location.href
4427
4392
  );
4428
4393
  }, S = () => {
4429
- let y = new URL(`${i}/v1/player/${a}/hostedcashier/customertransactionhistoryurl`);
4430
- y.searchParams.append("language", s);
4394
+ let g = new URL(`${i}/v1/player/${a}/hostedcashier/customertransactionhistoryurl`);
4395
+ g.searchParams.append("language", s);
4431
4396
  let L = {
4432
4397
  method: "GET",
4433
4398
  headers: {
@@ -4435,42 +4400,42 @@ function ki(e, t, r) {
4435
4400
  accept: "application/json"
4436
4401
  }
4437
4402
  };
4438
- fetch(y.href, L).then((C) => C.json()).then(
4403
+ fetch(g.href, L).then((C) => C.json()).then(
4439
4404
  (C) => {
4440
- r(1, m = !1), r(2, T = C.CashierUrl);
4405
+ r(1, p = !1), r(2, T = C.CashierUrl);
4441
4406
  },
4442
4407
  (C) => {
4443
4408
  console.error(C);
4444
4409
  }
4445
4410
  );
4446
4411
  }, R = () => {
4447
- Ci(s);
4412
+ Oi(s);
4448
4413
  };
4449
- br(() => () => {
4414
+ cr(() => () => {
4450
4415
  });
4451
- const O = () => P();
4452
- function D(y) {
4453
- Ce[y ? "unshift" : "push"](() => {
4454
- f = y, r(0, f);
4416
+ const P = () => A();
4417
+ function D(g) {
4418
+ Ie[g ? "unshift" : "push"](() => {
4419
+ c = g, r(0, c);
4455
4420
  });
4456
4421
  }
4457
- return e.$$set = (y) => {
4458
- "endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "playerid" in y && r(8, a = y.playerid), "lang" in y && r(9, s = y.lang), "clientstyling" in y && r(10, l = y.clientstyling), "clientstylingurl" in y && r(11, u = y.clientstylingurl), "mbsource" in y && r(12, h = y.mbsource), "translationurl" in y && r(13, c = y.translationurl);
4422
+ return e.$$set = (g) => {
4423
+ "endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "playerid" in g && r(8, a = g.playerid), "lang" in g && r(9, s = g.lang), "clientstyling" in g && r(10, l = g.clientstyling), "clientstylingurl" in g && r(11, u = g.clientstylingurl), "mbsource" in g && r(12, h = g.mbsource), "translationurl" in g && r(13, f = g.translationurl);
4459
4424
  }, e.$$.update = () => {
4460
4425
  e.$$.dirty & /*lang*/
4461
4426
  512 && s && R(), e.$$.dirty & /*session, playerid, endpoint, lang*/
4462
4427
  960 && o && a && i && s && S(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4463
- 1025 && l && f && Mi(f, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4464
- 2049 && u && f && $i(f, u), e.$$.dirty & /*mbsource, customStylingContainer*/
4465
- 4097 && h && f && Ri(f, `${h}.Style`), e.$$.dirty & /*translationurl*/
4466
- 8192 && c && $();
4428
+ 1025 && l && c && Ii(c, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4429
+ 2049 && u && c && Ni(c, u), e.$$.dirty & /*mbsource, customStylingContainer*/
4430
+ 4097 && h && c && Li(c, `${h}.Style`), e.$$.dirty & /*translationurl*/
4431
+ 8192 && f && $();
4467
4432
  }, [
4468
- f,
4469
- m,
4433
+ c,
4434
+ p,
4470
4435
  T,
4471
4436
  n,
4472
- g,
4473
- P,
4437
+ v,
4438
+ A,
4474
4439
  i,
4475
4440
  o,
4476
4441
  a,
@@ -4478,19 +4443,19 @@ function ki(e, t, r) {
4478
4443
  l,
4479
4444
  u,
4480
4445
  h,
4481
- c,
4482
- O,
4446
+ f,
4447
+ P,
4483
4448
  D
4484
4449
  ];
4485
4450
  }
4486
- class Vi extends Ar {
4451
+ class Gi extends Hr {
4487
4452
  constructor(t) {
4488
- super(), wr(
4453
+ super(), xr(
4489
4454
  this,
4490
4455
  t,
4491
- ki,
4492
- ji,
4493
- At,
4456
+ Di,
4457
+ Ui,
4458
+ Ht,
4494
4459
  {
4495
4460
  endpoint: 6,
4496
4461
  session: 7,
@@ -4501,7 +4466,7 @@ class Vi extends Ar {
4501
4466
  mbsource: 12,
4502
4467
  translationurl: 13
4503
4468
  },
4504
- Ui
4469
+ Ci
4505
4470
  );
4506
4471
  }
4507
4472
  get endpoint() {
@@ -4553,7 +4518,7 @@ class Vi extends Ar {
4553
4518
  this.$$set({ translationurl: t }), B();
4554
4519
  }
4555
4520
  }
4556
- Br(Vi, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
4521
+ Tr(Gi, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
4557
4522
  export {
4558
- Vi as P
4523
+ Gi as P
4559
4524
  };