@everymatrix/player-account-menu-nd 1.65.2 → 1.65.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.
Files changed (23) hide show
  1. package/components/{GeneralLogout-DAKbZeD9.js → GeneralLogout-C6LtI21m.js} +848 -883
  2. package/components/GeneralLogout-DqlvbXrp.cjs +18 -0
  3. package/components/{GeneralLogout-D307q6JD.js → GeneralLogout-GRuKSPyD.js} +850 -885
  4. package/components/{PlayerAccountMenuNd-Dis1QZcP.js → PlayerAccountMenuNd-Cmnc82NR.js} +29 -29
  5. package/components/{PlayerAccountMenuNd-BB9uzrD8.cjs → PlayerAccountMenuNd-DHoldeGA.cjs} +1 -1
  6. package/components/{PlayerAccountMenuNd-BxxuP6s_.js → PlayerAccountMenuNd-DvxFuhuF.js} +27 -27
  7. package/es2015/player-account-menu-nd.cjs +1 -1
  8. package/es2015/player-account-menu-nd.js +1 -1
  9. package/esnext/player-account-menu-nd.js +1 -1
  10. package/package.json +1 -1
  11. package/stencil/index-b2193545-CayB6jRX.js +519 -0
  12. package/stencil/index-b2193545-DrvOqGyq.js +503 -0
  13. package/stencil/index-b2193545-lC_KoC4p.cjs +1 -0
  14. package/stencil/{ui-skeleton-1cb75d00-CUSs6C3A.cjs → ui-skeleton-1cb75d00-6KKxtHwu.cjs} +1 -1
  15. package/stencil/{ui-skeleton-1cb75d00-CXHx_pAM.js → ui-skeleton-1cb75d00-BAHBT-wb.js} +1 -1
  16. package/stencil/{ui-skeleton-1cb75d00-z2mX3TRi.js → ui-skeleton-1cb75d00-BPfsKHrC.js} +1 -1
  17. package/stencil/{ui-skeleton-CCXvjIzA.cjs → ui-skeleton-CaX4F6ue.cjs} +1 -1
  18. package/stencil/{ui-skeleton-4ifa-7wH.js → ui-skeleton-QVfoKja7.js} +2 -2
  19. package/stencil/{ui-skeleton-Bk5dn5mu.js → ui-skeleton-b2oavT4f.js} +2 -2
  20. package/components/GeneralLogout-B6bRHXkC.cjs +0 -18
  21. package/stencil/index-b2193545-BcYyCldH.js +0 -519
  22. package/stencil/index-b2193545-CPztmidm.js +0 -503
  23. package/stencil/index-b2193545-D1Z0k4-D.cjs +0 -1
@@ -1,17 +1,17 @@
1
- var br = Object.defineProperty, gr = Object.defineProperties;
2
- var yr = Object.getOwnPropertyDescriptors;
3
- var nt = Object.getOwnPropertySymbols;
4
- var vr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable;
5
- var we = (e, t, r) => t in e ? br(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
1
+ var cr = Object.defineProperty, dr = Object.defineProperties;
2
+ var pr = Object.getOwnPropertyDescriptors;
3
+ var Ke = Object.getOwnPropertySymbols;
4
+ var mr = Object.prototype.hasOwnProperty, br = Object.prototype.propertyIsEnumerable;
5
+ var He = (e, t, r) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- vr.call(t, r) && we(e, r, t[r]);
8
- if (nt)
9
- for (var r of nt(t))
10
- _r.call(t, r) && we(e, r, t[r]);
7
+ mr.call(t, r) && He(e, r, t[r]);
8
+ if (Ke)
9
+ for (var r of Ke(t))
10
+ br.call(t, r) && He(e, r, t[r]);
11
11
  return e;
12
- }, ot = (e, t) => gr(e, yr(t));
13
- var H = (e, t, r) => (we(e, typeof t != "symbol" ? t + "" : t, r), r);
14
- var st = (e, t, r) => new Promise((n, i) => {
12
+ }, tt = (e, t) => dr(e, pr(t));
13
+ var H = (e, t, r) => (He(e, typeof t != "symbol" ? t + "" : t, r), r);
14
+ var rt = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (h) => {
16
16
  try {
17
17
  a(r.next(h));
@@ -29,29 +29,29 @@ var st = (e, t, r) => new Promise((n, i) => {
29
29
  });
30
30
  function w() {
31
31
  }
32
- function Lt(e) {
32
+ function At(e) {
33
33
  return e();
34
34
  }
35
- function at() {
35
+ function nt() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function ie(e) {
39
- e.forEach(Lt);
38
+ function oe(e) {
39
+ e.forEach(At);
40
40
  }
41
- function et(e) {
41
+ function Qe(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Nt(e, t) {
44
+ function Pt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
47
  let he;
48
- function so(e, t) {
48
+ function ro(e, t) {
49
49
  return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
50
50
  }
51
- function Er(e) {
51
+ function gr(e) {
52
52
  return Object.keys(e).length === 0;
53
53
  }
54
- function Mt(e, ...t) {
54
+ function Ot(e, ...t) {
55
55
  if (e == null) {
56
56
  for (const n of t)
57
57
  n(void 0);
@@ -60,20 +60,20 @@ function Mt(e, ...t) {
60
60
  const r = e.subscribe(...t);
61
61
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
62
  }
63
- function xr(e, t, r) {
64
- e.$$.on_destroy.push(Mt(t, r));
63
+ function yr(e, t, r) {
64
+ e.$$.on_destroy.push(Ot(t, r));
65
65
  }
66
66
  function T(e, t) {
67
67
  e.appendChild(t);
68
68
  }
69
- function Sr(e, t, r) {
70
- const n = Tr(e);
69
+ function vr(e, t, r) {
70
+ const n = xr(e);
71
71
  if (!n.getElementById(t)) {
72
- const i = I("style");
73
- i.id = t, i.textContent = r, Hr(n, i);
72
+ const i = O("style");
73
+ i.id = t, i.textContent = r, Er(n, i);
74
74
  }
75
75
  }
76
- function Tr(e) {
76
+ function xr(e) {
77
77
  if (!e)
78
78
  return document;
79
79
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
@@ -83,56 +83,56 @@ function Tr(e) {
83
83
  t
84
84
  ) : e.ownerDocument;
85
85
  }
86
- function Hr(e, t) {
86
+ function Er(e, t) {
87
87
  return T(
88
88
  /** @type {Document} */
89
89
  e.head || e,
90
90
  t
91
91
  ), t.sheet;
92
92
  }
93
- function oe(e, t, r) {
93
+ function se(e, t, r) {
94
94
  e.insertBefore(t, r || null);
95
95
  }
96
- function Z(e) {
96
+ function Q(e) {
97
97
  e.parentNode && e.parentNode.removeChild(e);
98
98
  }
99
- function ao(e, t) {
99
+ function no(e, t) {
100
100
  for (let r = 0; r < e.length; r += 1)
101
101
  e[r] && e[r].d(t);
102
102
  }
103
- function I(e) {
103
+ function O(e) {
104
104
  return document.createElement(e);
105
105
  }
106
- function Y(e) {
106
+ function K(e) {
107
107
  return document.createElementNS("http://www.w3.org/2000/svg", e);
108
108
  }
109
- function ve(e) {
109
+ function ye(e) {
110
110
  return document.createTextNode(e);
111
111
  }
112
- function Br() {
113
- return ve(" ");
112
+ function _r() {
113
+ return ye(" ");
114
114
  }
115
- function Ct(e, t, r, n) {
115
+ function It(e, t, r, n) {
116
116
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
117
117
  }
118
118
  function S(e, t, r) {
119
119
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
120
120
  }
121
- function uo(e, t, r) {
121
+ function io(e, t, r) {
122
122
  const n = t.toLowerCase();
123
123
  n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : S(e, t, r);
124
124
  }
125
- function wr(e) {
125
+ function Sr(e) {
126
126
  return Array.from(e.childNodes);
127
127
  }
128
- function $t(e, t) {
128
+ function Lt(e, t) {
129
129
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
130
130
  t);
131
131
  }
132
- function Ar(e, t, r, n) {
132
+ function Tr(e, t, r, n) {
133
133
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
134
134
  }
135
- function Pr(e) {
135
+ function Hr(e) {
136
136
  const t = {};
137
137
  return e.childNodes.forEach(
138
138
  /** @param {Element} node */
@@ -141,90 +141,90 @@ function Pr(e) {
141
141
  }
142
142
  ), t;
143
143
  }
144
- let te;
145
- function ee(e) {
146
- te = e;
144
+ let re;
145
+ function te(e) {
146
+ re = e;
147
147
  }
148
- function Or() {
149
- if (!te)
148
+ function Br() {
149
+ if (!re)
150
150
  throw new Error("Function called outside component initialization");
151
- return te;
151
+ return re;
152
152
  }
153
- function Ir(e) {
154
- Or().$$.on_mount.push(e);
153
+ function wr(e) {
154
+ Br().$$.on_mount.push(e);
155
155
  }
156
- const j = [], $e = [];
156
+ const j = [], Ne = [];
157
157
  let k = [];
158
- const ut = [], Lr = /* @__PURE__ */ Promise.resolve();
159
- let Re = !1;
160
- function Nr() {
161
- Re || (Re = !0, Lr.then(A));
158
+ const it = [], Ar = /* @__PURE__ */ Promise.resolve();
159
+ let Me = !1;
160
+ function Pr() {
161
+ Me || (Me = !0, Ar.then(A));
162
162
  }
163
- function Ue(e) {
163
+ function Ce(e) {
164
164
  k.push(e);
165
165
  }
166
- const Ae = /* @__PURE__ */ new Set();
167
- let D = 0;
166
+ const Be = /* @__PURE__ */ new Set();
167
+ let G = 0;
168
168
  function A() {
169
- if (D !== 0)
169
+ if (G !== 0)
170
170
  return;
171
- const e = te;
171
+ const e = re;
172
172
  do {
173
173
  try {
174
- for (; D < j.length; ) {
175
- const t = j[D];
176
- D++, ee(t), Mr(t.$$);
174
+ for (; G < j.length; ) {
175
+ const t = j[G];
176
+ G++, te(t), Or(t.$$);
177
177
  }
178
178
  } catch (t) {
179
- throw j.length = 0, D = 0, t;
179
+ throw j.length = 0, G = 0, t;
180
180
  }
181
- for (ee(null), j.length = 0, D = 0; $e.length; )
182
- $e.pop()();
181
+ for (te(null), j.length = 0, G = 0; Ne.length; )
182
+ Ne.pop()();
183
183
  for (let t = 0; t < k.length; t += 1) {
184
184
  const r = k[t];
185
- Ae.has(r) || (Ae.add(r), r());
185
+ Be.has(r) || (Be.add(r), r());
186
186
  }
187
187
  k.length = 0;
188
188
  } while (j.length);
189
- for (; ut.length; )
190
- ut.pop()();
191
- Re = !1, Ae.clear(), ee(e);
189
+ for (; it.length; )
190
+ it.pop()();
191
+ Me = !1, Be.clear(), te(e);
192
192
  }
193
- function Mr(e) {
193
+ function Or(e) {
194
194
  if (e.fragment !== null) {
195
- e.update(), ie(e.before_update);
195
+ e.update(), oe(e.before_update);
196
196
  const t = e.dirty;
197
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
197
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
198
198
  }
199
199
  }
200
- function Cr(e) {
200
+ function Ir(e) {
201
201
  const t = [], r = [];
202
202
  k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
203
203
  }
204
- const $r = /* @__PURE__ */ new Set();
205
- function Rr(e, t) {
206
- e && e.i && ($r.delete(e), e.i(t));
204
+ const Lr = /* @__PURE__ */ new Set();
205
+ function Nr(e, t) {
206
+ e && e.i && (Lr.delete(e), e.i(t));
207
207
  }
208
- function ho(e) {
208
+ function oo(e) {
209
209
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
210
210
  }
211
- function Ur(e, t, r) {
211
+ function Mr(e, t, r) {
212
212
  const { fragment: n, after_update: i } = e.$$;
213
- n && n.m(t, r), Ue(() => {
214
- const o = e.$$.on_mount.map(Lt).filter(et);
215
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
216
- }), i.forEach(Ue);
213
+ n && n.m(t, r), Ce(() => {
214
+ const o = e.$$.on_mount.map(At).filter(Qe);
215
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
216
+ }), i.forEach(Ce);
217
217
  }
218
- function Gr(e, t) {
218
+ function Cr(e, t) {
219
219
  const r = e.$$;
220
- r.fragment !== null && (Cr(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
220
+ r.fragment !== null && (Ir(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
221
221
  }
222
- function Dr(e, t) {
223
- e.$$.dirty[0] === -1 && (j.push(e), Nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
222
+ function $r(e, t) {
223
+ e.$$.dirty[0] === -1 && (j.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
224
224
  }
225
- function Fr(e, t, r, n, i, o, s = null, a = [-1]) {
226
- const h = te;
227
- ee(e);
225
+ function Rr(e, t, r, n, i, o, s = null, a = [-1]) {
226
+ const h = re;
227
+ te(e);
228
228
  const u = e.$$ = {
229
229
  fragment: null,
230
230
  ctx: [],
@@ -232,7 +232,7 @@ function Fr(e, t, r, n, i, o, s = null, a = [-1]) {
232
232
  props: o,
233
233
  update: w,
234
234
  not_equal: i,
235
- bound: at(),
235
+ bound: nt(),
236
236
  // lifecycle
237
237
  on_mount: [],
238
238
  on_destroy: [],
@@ -241,28 +241,28 @@ function Fr(e, t, r, n, i, o, s = null, a = [-1]) {
241
241
  after_update: [],
242
242
  context: new Map(t.context || (h ? h.$$.context : [])),
243
243
  // everything else
244
- callbacks: at(),
244
+ callbacks: nt(),
245
245
  dirty: a,
246
246
  skip_bound: !1,
247
247
  root: t.target || h.$$.root
248
248
  };
249
249
  s && s(u.root);
250
250
  let l = !1;
251
- if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
252
- const d = p.length ? p[0] : c;
253
- return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Dr(e, f)), c;
254
- }) : [], u.update(), l = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
251
+ if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
252
+ const p = d.length ? d[0] : f;
253
+ return u.ctx && i(u.ctx[c], u.ctx[c] = p) && (!u.skip_bound && u.bound[c] && u.bound[c](p), l && $r(e, c)), f;
254
+ }) : [], u.update(), l = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
255
255
  if (t.hydrate) {
256
- const f = wr(t.target);
257
- u.fragment && u.fragment.l(f), f.forEach(Z);
256
+ const c = Sr(t.target);
257
+ u.fragment && u.fragment.l(c), c.forEach(Q);
258
258
  } else
259
259
  u.fragment && u.fragment.c();
260
- t.intro && Rr(e.$$.fragment), Ur(e, t.target, t.anchor), A();
260
+ t.intro && Nr(e.$$.fragment), Mr(e, t.target, t.anchor), A();
261
261
  }
262
- ee(h);
262
+ te(h);
263
263
  }
264
- let Rt;
265
- typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
264
+ let Nt;
265
+ typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
266
266
  constructor(t, r, n) {
267
267
  super();
268
268
  /** The Svelte component constructor */
@@ -299,42 +299,42 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
299
299
  }
300
300
  }
301
301
  connectedCallback() {
302
- return st(this, null, function* () {
302
+ return rt(this, null, function* () {
303
303
  if (this.$$cn = !0, !this.$$c) {
304
304
  let t = function(o) {
305
305
  return () => {
306
306
  let s;
307
307
  return {
308
308
  c: function() {
309
- s = I("slot"), o !== "default" && S(s, "name", o);
309
+ s = O("slot"), o !== "default" && S(s, "name", o);
310
310
  },
311
311
  /**
312
312
  * @param {HTMLElement} target
313
313
  * @param {HTMLElement} [anchor]
314
314
  */
315
315
  m: function(u, l) {
316
- oe(u, s, l);
316
+ se(u, s, l);
317
317
  },
318
318
  d: function(u) {
319
- u && Z(s);
319
+ u && Q(s);
320
320
  }
321
321
  };
322
322
  };
323
323
  };
324
324
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
325
325
  return;
326
- const r = {}, n = Pr(this);
326
+ const r = {}, n = Hr(this);
327
327
  for (const o of this.$$s)
328
328
  o in n && (r[o] = [t(o)]);
329
329
  for (const o of this.attributes) {
330
330
  const s = this.$$g_p(o.name);
331
- s in this.$$d || (this.$$d[s] = fe(s, o.value, this.$$p_d, "toProp"));
331
+ s in this.$$d || (this.$$d[s] = ce(s, o.value, this.$$p_d, "toProp"));
332
332
  }
333
333
  for (const o in this.$$p_d)
334
334
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
335
335
  this.$$c = new this.$$ctor({
336
336
  target: this.shadowRoot || this,
337
- props: ot(it({}, this.$$d), {
337
+ props: tt(et({}, this.$$d), {
338
338
  $$slots: r,
339
339
  $$scope: {
340
340
  ctx: []
@@ -345,7 +345,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
345
345
  this.$$r = !0;
346
346
  for (const o in this.$$p_d)
347
347
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
348
- const s = fe(
348
+ const s = ce(
349
349
  o,
350
350
  this.$$d[o],
351
351
  this.$$p_d,
@@ -369,7 +369,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
369
369
  // and setting attributes through setAttribute etc, this is helpful
370
370
  attributeChangedCallback(t, r, n) {
371
371
  var i;
372
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = fe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
372
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ce(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
373
373
  }
374
374
  disconnectedCallback() {
375
375
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -382,7 +382,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
382
382
  ) || t;
383
383
  }
384
384
  });
385
- function fe(e, t, r, n) {
385
+ function ce(e, t, r, n) {
386
386
  var o;
387
387
  const i = (o = r[e]) == null ? void 0 : o.type;
388
388
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -412,8 +412,8 @@ function fe(e, t, r, n) {
412
412
  return t;
413
413
  }
414
414
  }
415
- function jr(e, t, r, n, i, o) {
416
- let s = class extends Rt {
415
+ function Ur(e, t, r, n, i, o) {
416
+ let s = class extends Nt {
417
417
  constructor() {
418
418
  super(e, r, i), this.$$p_d = t;
419
419
  }
@@ -430,7 +430,7 @@ function jr(e, t, r, n, i, o) {
430
430
  },
431
431
  set(h) {
432
432
  var u;
433
- h = fe(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
433
+ h = ce(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
434
434
  }
435
435
  });
436
436
  }), n.forEach((a) => {
@@ -443,7 +443,7 @@ function jr(e, t, r, n, i, o) {
443
443
  }), e.element = /** @type {any} */
444
444
  s, s;
445
445
  }
446
- class kr {
446
+ class Dr {
447
447
  constructor() {
448
448
  /**
449
449
  * ### PRIVATE API
@@ -464,7 +464,7 @@ class kr {
464
464
  }
465
465
  /** @returns {void} */
466
466
  $destroy() {
467
- Gr(this, 1), this.$destroy = w;
467
+ Cr(this, 1), this.$destroy = w;
468
468
  }
469
469
  /**
470
470
  * @template {Extract<keyof Events, string>} K
@@ -473,7 +473,7 @@ class kr {
473
473
  * @returns {() => void}
474
474
  */
475
475
  $on(t, r) {
476
- if (!et(r))
476
+ if (!Qe(r))
477
477
  return w;
478
478
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
479
479
  return n.push(r), () => {
@@ -486,11 +486,11 @@ class kr {
486
486
  * @returns {void}
487
487
  */
488
488
  $set(t) {
489
- this.$$set && !Er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
489
+ this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
490
490
  }
491
491
  }
492
- const Vr = "4";
493
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vr);
492
+ const Gr = "4";
493
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gr);
494
494
  /*! *****************************************************************************
495
495
  Copyright (c) Microsoft Corporation.
496
496
 
@@ -505,24 +505,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
505
505
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
506
506
  PERFORMANCE OF THIS SOFTWARE.
507
507
  ***************************************************************************** */
508
- var Ge = function(e, t) {
509
- return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
508
+ var $e = function(e, t) {
509
+ return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
510
510
  r.__proto__ = n;
511
511
  } || function(r, n) {
512
512
  for (var i in n)
513
513
  Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
514
- }, Ge(e, t);
514
+ }, $e(e, t);
515
515
  };
516
- function se(e, t) {
516
+ function L(e, t) {
517
517
  if (typeof t != "function" && t !== null)
518
518
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
519
- Ge(e, t);
519
+ $e(e, t);
520
520
  function r() {
521
521
  this.constructor = e;
522
522
  }
523
523
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
524
524
  }
525
- function De(e) {
525
+ var g = function() {
526
+ return g = Object.assign || function(t) {
527
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
528
+ r = arguments[n];
529
+ for (var o in r)
530
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
531
+ }
532
+ return t;
533
+ }, g.apply(this, arguments);
534
+ };
535
+ function Fr(e, t) {
536
+ var r = {};
537
+ for (var n in e)
538
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
539
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
540
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
541
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
542
+ return r;
543
+ }
544
+ function Re(e) {
526
545
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
527
546
  if (r)
528
547
  return r.call(e);
@@ -534,7 +553,7 @@ function De(e) {
534
553
  };
535
554
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
536
555
  }
537
- function Fe(e, t) {
556
+ function Ue(e, t) {
538
557
  var r = typeof Symbol == "function" && e[Symbol.iterator];
539
558
  if (!r)
540
559
  return e;
@@ -554,22 +573,22 @@ function Fe(e, t) {
554
573
  }
555
574
  return o;
556
575
  }
557
- function je(e, t, r) {
558
- if (arguments.length === 2)
576
+ function V(e, t, r) {
577
+ if (r || arguments.length === 2)
559
578
  for (var n = 0, i = t.length, o; n < i; n++)
560
579
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
561
580
  return e.concat(o || t);
562
581
  }
563
- function L(e) {
582
+ function I(e) {
564
583
  return typeof e == "function";
565
584
  }
566
- function Ut(e) {
585
+ function Mt(e) {
567
586
  var t = function(n) {
568
587
  Error.call(n), n.stack = new Error().stack;
569
588
  }, r = e(t);
570
589
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
571
590
  }
572
- var Pe = Ut(function(e) {
591
+ var we = Mt(function(e) {
573
592
  return function(r) {
574
593
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
575
594
  ` + r.map(function(n, i) {
@@ -578,13 +597,13 @@ var Pe = Ut(function(e) {
578
597
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
579
598
  };
580
599
  });
581
- function ke(e, t) {
600
+ function De(e, t) {
582
601
  if (e) {
583
602
  var r = e.indexOf(t);
584
603
  0 <= r && e.splice(r, 1);
585
604
  }
586
605
  }
587
- var _e = function() {
606
+ var ve = function() {
588
607
  function e(t) {
589
608
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
590
609
  }
@@ -596,12 +615,12 @@ var _e = function() {
596
615
  if (s)
597
616
  if (this._parentage = null, Array.isArray(s))
598
617
  try {
599
- for (var a = De(s), h = a.next(); !h.done; h = a.next()) {
618
+ for (var a = Re(s), h = a.next(); !h.done; h = a.next()) {
600
619
  var u = h.value;
601
620
  u.remove(this);
602
621
  }
603
- } catch (y) {
604
- t = { error: y };
622
+ } catch (v) {
623
+ t = { error: v };
605
624
  } finally {
606
625
  try {
607
626
  h && !h.done && (r = a.return) && r.call(a);
@@ -613,29 +632,29 @@ var _e = function() {
613
632
  else
614
633
  s.remove(this);
615
634
  var l = this.initialTeardown;
616
- if (L(l))
635
+ if (I(l))
617
636
  try {
618
637
  l();
619
- } catch (y) {
620
- o = y instanceof Pe ? y.errors : [y];
638
+ } catch (v) {
639
+ o = v instanceof we ? v.errors : [v];
621
640
  }
622
- var f = this._finalizers;
623
- if (f) {
641
+ var c = this._finalizers;
642
+ if (c) {
624
643
  this._finalizers = null;
625
644
  try {
626
- for (var c = De(f), p = c.next(); !p.done; p = c.next()) {
627
- var d = p.value;
645
+ for (var f = Re(c), d = f.next(); !d.done; d = f.next()) {
646
+ var p = d.value;
628
647
  try {
629
- ht(d);
630
- } catch (y) {
631
- o = o != null ? o : [], y instanceof Pe ? o = je(je([], Fe(o)), Fe(y.errors)) : o.push(y);
648
+ ot(p);
649
+ } catch (v) {
650
+ o = o != null ? o : [], v instanceof we ? o = V(V([], Ue(o)), Ue(v.errors)) : o.push(v);
632
651
  }
633
652
  }
634
- } catch (y) {
635
- n = { error: y };
653
+ } catch (v) {
654
+ n = { error: v };
636
655
  } finally {
637
656
  try {
638
- p && !p.done && (i = c.return) && i.call(c);
657
+ d && !d.done && (i = f.return) && i.call(f);
639
658
  } finally {
640
659
  if (n)
641
660
  throw n.error;
@@ -643,13 +662,13 @@ var _e = function() {
643
662
  }
644
663
  }
645
664
  if (o)
646
- throw new Pe(o);
665
+ throw new we(o);
647
666
  }
648
667
  }, e.prototype.add = function(t) {
649
668
  var r;
650
669
  if (t && t !== this)
651
670
  if (this.closed)
652
- ht(t);
671
+ ot(t);
653
672
  else {
654
673
  if (t instanceof e) {
655
674
  if (t.closed || t._hasParent(this))
@@ -666,52 +685,56 @@ var _e = function() {
666
685
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
667
686
  }, e.prototype._removeParent = function(t) {
668
687
  var r = this._parentage;
669
- r === t ? this._parentage = null : Array.isArray(r) && ke(r, t);
688
+ r === t ? this._parentage = null : Array.isArray(r) && De(r, t);
670
689
  }, e.prototype.remove = function(t) {
671
690
  var r = this._finalizers;
672
- r && ke(r, t), t instanceof e && t._removeParent(this);
691
+ r && De(r, t), t instanceof e && t._removeParent(this);
673
692
  }, e.EMPTY = function() {
674
693
  var t = new e();
675
694
  return t.closed = !0, t;
676
695
  }(), e;
677
- }(), Gt = _e.EMPTY;
678
- function Dt(e) {
679
- return e instanceof _e || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
680
- }
681
- function ht(e) {
682
- L(e) ? e() : e.unsubscribe();
683
- }
684
- var Xr = {
685
- Promise: void 0
686
- }, Wr = {
696
+ }(), Ct = ve.EMPTY;
697
+ function $t(e) {
698
+ return e instanceof ve || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
699
+ }
700
+ function ot(e) {
701
+ I(e) ? e() : e.unsubscribe();
702
+ }
703
+ var jr = {
704
+ onUnhandledError: null,
705
+ onStoppedNotification: null,
706
+ Promise: void 0,
707
+ useDeprecatedSynchronousErrorHandling: !1,
708
+ useDeprecatedNextContext: !1
709
+ }, kr = {
687
710
  setTimeout: function(e, t) {
688
711
  for (var r = [], n = 2; n < arguments.length; n++)
689
712
  r[n - 2] = arguments[n];
690
- return setTimeout.apply(void 0, je([e, t], Fe(r)));
713
+ return setTimeout.apply(void 0, V([e, t], Ue(r)));
691
714
  },
692
715
  clearTimeout: function(e) {
693
716
  return clearTimeout(e);
694
717
  },
695
718
  delegate: void 0
696
719
  };
697
- function zr(e) {
698
- Wr.setTimeout(function() {
720
+ function Vr(e) {
721
+ kr.setTimeout(function() {
699
722
  throw e;
700
723
  });
701
724
  }
702
- function lt() {
725
+ function st() {
703
726
  }
704
- function pe(e) {
727
+ function de(e) {
705
728
  e();
706
729
  }
707
- var Ft = function(e) {
708
- se(t, e);
730
+ var Rt = function(e) {
731
+ L(t, e);
709
732
  function t(r) {
710
733
  var n = e.call(this) || this;
711
- return n.isStopped = !1, r ? (n.destination = r, Dt(r) && r.add(n)) : n.destination = qr, n;
734
+ return n.isStopped = !1, r ? (n.destination = r, $t(r) && r.add(n)) : n.destination = zr, n;
712
735
  }
713
736
  return t.create = function(r, n, i) {
714
- return new Ve(r, n, i);
737
+ return new Ge(r, n, i);
715
738
  }, t.prototype.next = function(r) {
716
739
  this.isStopped || this._next(r);
717
740
  }, t.prototype.error = function(r) {
@@ -735,7 +758,7 @@ var Ft = function(e) {
735
758
  this.unsubscribe();
736
759
  }
737
760
  }, t;
738
- }(_e), Zr = function() {
761
+ }(ve), Xr = function() {
739
762
  function e(t) {
740
763
  this.partialObserver = t;
741
764
  }
@@ -766,43 +789,43 @@ var Ft = function(e) {
766
789
  le(r);
767
790
  }
768
791
  }, e;
769
- }(), Ve = function(e) {
770
- se(t, e);
792
+ }(), Ge = function(e) {
793
+ L(t, e);
771
794
  function t(r, n, i) {
772
795
  var o = e.call(this) || this, s;
773
- return L(r) || !r ? s = {
796
+ return I(r) || !r ? s = {
774
797
  next: r != null ? r : void 0,
775
798
  error: n != null ? n : void 0,
776
799
  complete: i != null ? i : void 0
777
- } : s = r, o.destination = new Zr(s), o;
800
+ } : s = r, o.destination = new Xr(s), o;
778
801
  }
779
802
  return t;
780
- }(Ft);
803
+ }(Rt);
781
804
  function le(e) {
782
- zr(e);
805
+ Vr(e);
783
806
  }
784
- function Qr(e) {
807
+ function Wr(e) {
785
808
  throw e;
786
809
  }
787
- var qr = {
810
+ var zr = {
788
811
  closed: !0,
789
- next: lt,
790
- error: Qr,
791
- complete: lt
792
- }, Jr = function() {
812
+ next: st,
813
+ error: Wr,
814
+ complete: st
815
+ }, Zr = function() {
793
816
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
794
817
  }();
795
- function Yr(e) {
818
+ function Qr(e) {
796
819
  return e;
797
820
  }
798
- function Kr(e) {
799
- return e.length === 0 ? Yr : e.length === 1 ? e[0] : function(r) {
821
+ function qr(e) {
822
+ return e.length === 0 ? Qr : e.length === 1 ? e[0] : function(r) {
800
823
  return e.reduce(function(n, i) {
801
824
  return i(n);
802
825
  }, r);
803
826
  };
804
827
  }
805
- var ct = function() {
828
+ var at = function() {
806
829
  function e(t) {
807
830
  t && (this._subscribe = t);
808
831
  }
@@ -810,8 +833,8 @@ var ct = function() {
810
833
  var r = new e();
811
834
  return r.source = this, r.operator = t, r;
812
835
  }, e.prototype.subscribe = function(t, r, n) {
813
- var i = this, o = tn(t) ? t : new Ve(t, r, n);
814
- return pe(function() {
836
+ var i = this, o = Yr(t) ? t : new Ge(t, r, n);
837
+ return de(function() {
815
838
  var s = i, a = s.operator, h = s.source;
816
839
  o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
817
840
  }), o;
@@ -823,8 +846,8 @@ var ct = function() {
823
846
  }
824
847
  }, e.prototype.forEach = function(t, r) {
825
848
  var n = this;
826
- return r = ft(r), new r(function(i, o) {
827
- var s = new Ve({
849
+ return r = ut(r), new r(function(i, o) {
850
+ var s = new Ge({
828
851
  next: function(a) {
829
852
  try {
830
853
  t(a);
@@ -840,15 +863,15 @@ var ct = function() {
840
863
  }, e.prototype._subscribe = function(t) {
841
864
  var r;
842
865
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
843
- }, e.prototype[Jr] = function() {
866
+ }, e.prototype[Zr] = function() {
844
867
  return this;
845
868
  }, e.prototype.pipe = function() {
846
869
  for (var t = [], r = 0; r < arguments.length; r++)
847
870
  t[r] = arguments[r];
848
- return Kr(t)(this);
871
+ return qr(t)(this);
849
872
  }, e.prototype.toPromise = function(t) {
850
873
  var r = this;
851
- return t = ft(t), new t(function(n, i) {
874
+ return t = ut(t), new t(function(n, i) {
852
875
  var o;
853
876
  r.subscribe(function(s) {
854
877
  return o = s;
@@ -862,40 +885,40 @@ var ct = function() {
862
885
  return new e(t);
863
886
  }, e;
864
887
  }();
865
- function ft(e) {
888
+ function ut(e) {
866
889
  var t;
867
- return (t = e != null ? e : Xr.Promise) !== null && t !== void 0 ? t : Promise;
890
+ return (t = e != null ? e : jr.Promise) !== null && t !== void 0 ? t : Promise;
868
891
  }
869
- function en(e) {
870
- return e && L(e.next) && L(e.error) && L(e.complete);
892
+ function Jr(e) {
893
+ return e && I(e.next) && I(e.error) && I(e.complete);
871
894
  }
872
- function tn(e) {
873
- return e && e instanceof Ft || en(e) && Dt(e);
895
+ function Yr(e) {
896
+ return e && e instanceof Rt || Jr(e) && $t(e);
874
897
  }
875
- var rn = Ut(function(e) {
898
+ var Kr = Mt(function(e) {
876
899
  return function() {
877
900
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
878
901
  };
879
- }), jt = function(e) {
880
- se(t, e);
902
+ }), Ut = function(e) {
903
+ L(t, e);
881
904
  function t() {
882
905
  var r = e.call(this) || this;
883
906
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
884
907
  }
885
908
  return t.prototype.lift = function(r) {
886
- var n = new pt(this, this);
909
+ var n = new ht(this, this);
887
910
  return n.operator = r, n;
888
911
  }, t.prototype._throwIfClosed = function() {
889
912
  if (this.closed)
890
- throw new rn();
913
+ throw new Kr();
891
914
  }, t.prototype.next = function(r) {
892
915
  var n = this;
893
- pe(function() {
916
+ de(function() {
894
917
  var i, o;
895
918
  if (n._throwIfClosed(), !n.isStopped) {
896
919
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
897
920
  try {
898
- for (var s = De(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
921
+ for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
899
922
  var h = a.value;
900
923
  h.next(r);
901
924
  }
@@ -913,7 +936,7 @@ var rn = Ut(function(e) {
913
936
  });
914
937
  }, t.prototype.error = function(r) {
915
938
  var n = this;
916
- pe(function() {
939
+ de(function() {
917
940
  if (n._throwIfClosed(), !n.isStopped) {
918
941
  n.hasError = n.isStopped = !0, n.thrownError = r;
919
942
  for (var i = n.observers; i.length; )
@@ -922,7 +945,7 @@ var rn = Ut(function(e) {
922
945
  });
923
946
  }, t.prototype.complete = function() {
924
947
  var r = this;
925
- pe(function() {
948
+ de(function() {
926
949
  if (r._throwIfClosed(), !r.isStopped) {
927
950
  r.isStopped = !0;
928
951
  for (var n = r.observers; n.length; )
@@ -944,20 +967,20 @@ var rn = Ut(function(e) {
944
967
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
945
968
  }, t.prototype._innerSubscribe = function(r) {
946
969
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
947
- return o || s ? Gt : (this.currentObservers = null, a.push(r), new _e(function() {
948
- n.currentObservers = null, ke(a, r);
970
+ return o || s ? Ct : (this.currentObservers = null, a.push(r), new ve(function() {
971
+ n.currentObservers = null, De(a, r);
949
972
  }));
950
973
  }, t.prototype._checkFinalizedStatuses = function(r) {
951
974
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
952
975
  i ? r.error(o) : s && r.complete();
953
976
  }, t.prototype.asObservable = function() {
954
- var r = new ct();
977
+ var r = new at();
955
978
  return r.source = this, r;
956
979
  }, t.create = function(r, n) {
957
- return new pt(r, n);
980
+ return new ht(r, n);
958
981
  }, t;
959
- }(ct), pt = function(e) {
960
- se(t, e);
982
+ }(at), ht = function(e) {
983
+ L(t, e);
961
984
  function t(r, n) {
962
985
  var i = e.call(this) || this;
963
986
  return i.destination = r, i.source = n, i;
@@ -973,17 +996,17 @@ var rn = Ut(function(e) {
973
996
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
974
997
  }, t.prototype._subscribe = function(r) {
975
998
  var n, i;
976
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Gt;
999
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ct;
977
1000
  }, t;
978
- }(jt), kt = {
1001
+ }(Ut), Dt = {
979
1002
  now: function() {
980
- return (kt.delegate || Date).now();
1003
+ return (Dt.delegate || Date).now();
981
1004
  },
982
1005
  delegate: void 0
983
- }, nn = function(e) {
984
- se(t, e);
1006
+ }, en = function(e) {
1007
+ L(t, e);
985
1008
  function t(r, n, i) {
986
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = kt);
1009
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dt);
987
1010
  var o = e.call(this) || this;
988
1011
  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;
989
1012
  }
@@ -1003,24 +1026,24 @@ var rn = Ut(function(e) {
1003
1026
  u && o.splice(0, u + 1);
1004
1027
  }
1005
1028
  }, t;
1006
- }(jt);
1007
- const dt = [], mt = {}, on = (e, t = 0) => {
1008
- if (dt.indexOf(e) == -1) {
1009
- const r = new nn(t);
1010
- mt[e] = r, dt.push(e);
1029
+ }(Ut);
1030
+ const lt = [], ft = {}, tn = (e, t = 0) => {
1031
+ if (lt.indexOf(e) == -1) {
1032
+ const r = new en(t);
1033
+ ft[e] = r, lt.push(e);
1011
1034
  }
1012
- return mt[e];
1035
+ return ft[e];
1013
1036
  }, F = [];
1014
- function sn(e, t) {
1037
+ function rn(e, t) {
1015
1038
  return {
1016
- subscribe: Ee(e, t).subscribe
1039
+ subscribe: xe(e, t).subscribe
1017
1040
  };
1018
1041
  }
1019
- function Ee(e, t = w) {
1042
+ function xe(e, t = w) {
1020
1043
  let r;
1021
1044
  const n = /* @__PURE__ */ new Set();
1022
1045
  function i(a) {
1023
- if (Nt(e, a) && (e = a, r)) {
1046
+ if (Pt(e, a) && (e = a, r)) {
1024
1047
  const h = !F.length;
1025
1048
  for (const u of n)
1026
1049
  u[1](), F.push(u, e);
@@ -1042,184 +1065,145 @@ function Ee(e, t = w) {
1042
1065
  }
1043
1066
  return { set: i, update: o, subscribe: s };
1044
1067
  }
1045
- function Q(e, t, r) {
1068
+ function q(e, t, r) {
1046
1069
  const n = !Array.isArray(e), i = n ? [e] : e;
1047
1070
  if (!i.every(Boolean))
1048
1071
  throw new Error("derived() expects stores as input, got a falsy value");
1049
1072
  const o = t.length < 2;
1050
- return sn(r, (s, a) => {
1073
+ return rn(r, (s, a) => {
1051
1074
  let h = !1;
1052
1075
  const u = [];
1053
- let l = 0, f = w;
1054
- const c = () => {
1076
+ let l = 0, c = w;
1077
+ const f = () => {
1055
1078
  if (l)
1056
1079
  return;
1057
- f();
1058
- const d = t(n ? u[0] : u, s, a);
1059
- o ? s(d) : f = et(d) ? d : w;
1060
- }, p = i.map(
1061
- (d, y) => Mt(
1062
- d,
1080
+ c();
1081
+ const p = t(n ? u[0] : u, s, a);
1082
+ o ? s(p) : c = Qe(p) ? p : w;
1083
+ }, d = i.map(
1084
+ (p, v) => Ot(
1085
+ p,
1063
1086
  (B) => {
1064
- u[y] = B, l &= ~(1 << y), h && c();
1087
+ u[v] = B, l &= ~(1 << v), h && f();
1065
1088
  },
1066
1089
  () => {
1067
- l |= 1 << y;
1090
+ l |= 1 << v;
1068
1091
  }
1069
1092
  )
1070
1093
  );
1071
- return h = !0, c(), function() {
1072
- ie(p), f(), h = !1;
1094
+ return h = !0, f(), function() {
1095
+ oe(d), c(), h = !1;
1073
1096
  };
1074
1097
  });
1075
1098
  }
1076
- function an(e) {
1077
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1099
+ function nn(e) {
1100
+ return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1078
1101
  }
1079
- var un = function(t) {
1080
- return hn(t) && !ln(t);
1102
+ var on = function(t) {
1103
+ return sn(t) && !an(t);
1081
1104
  };
1082
- function hn(e) {
1105
+ function sn(e) {
1083
1106
  return !!e && typeof e == "object";
1084
1107
  }
1085
- function ln(e) {
1108
+ function an(e) {
1086
1109
  var t = Object.prototype.toString.call(e);
1087
- return t === "[object RegExp]" || t === "[object Date]" || pn(e);
1110
+ return t === "[object RegExp]" || t === "[object Date]" || ln(e);
1088
1111
  }
1089
- var cn = typeof Symbol == "function" && Symbol.for, fn = cn ? Symbol.for("react.element") : 60103;
1090
- function pn(e) {
1091
- return e.$$typeof === fn;
1112
+ var un = typeof Symbol == "function" && Symbol.for, hn = un ? Symbol.for("react.element") : 60103;
1113
+ function ln(e) {
1114
+ return e.$$typeof === hn;
1092
1115
  }
1093
- function dn(e) {
1116
+ function fn(e) {
1094
1117
  return Array.isArray(e) ? [] : {};
1095
1118
  }
1096
- function re(e, t) {
1097
- return t.clone !== !1 && t.isMergeableObject(e) ? V(dn(e), e, t) : e;
1119
+ function ne(e, t) {
1120
+ return t.clone !== !1 && t.isMergeableObject(e) ? X(fn(e), e, t) : e;
1098
1121
  }
1099
- function mn(e, t, r) {
1122
+ function cn(e, t, r) {
1100
1123
  return e.concat(t).map(function(n) {
1101
- return re(n, r);
1124
+ return ne(n, r);
1102
1125
  });
1103
1126
  }
1104
- function bn(e, t) {
1127
+ function dn(e, t) {
1105
1128
  if (!t.customMerge)
1106
- return V;
1129
+ return X;
1107
1130
  var r = t.customMerge(e);
1108
- return typeof r == "function" ? r : V;
1131
+ return typeof r == "function" ? r : X;
1109
1132
  }
1110
- function gn(e) {
1133
+ function pn(e) {
1111
1134
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1112
1135
  return Object.propertyIsEnumerable.call(e, t);
1113
1136
  }) : [];
1114
1137
  }
1115
- function bt(e) {
1116
- return Object.keys(e).concat(gn(e));
1138
+ function ct(e) {
1139
+ return Object.keys(e).concat(pn(e));
1117
1140
  }
1118
- function Vt(e, t) {
1141
+ function Gt(e, t) {
1119
1142
  try {
1120
1143
  return t in e;
1121
1144
  } catch (r) {
1122
1145
  return !1;
1123
1146
  }
1124
1147
  }
1125
- function yn(e, t) {
1126
- return Vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1148
+ function mn(e, t) {
1149
+ return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1127
1150
  }
1128
- function vn(e, t, r) {
1151
+ function bn(e, t, r) {
1129
1152
  var n = {};
1130
- return r.isMergeableObject(e) && bt(e).forEach(function(i) {
1131
- n[i] = re(e[i], r);
1132
- }), bt(t).forEach(function(i) {
1133
- yn(e, i) || (Vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = bn(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
1153
+ return r.isMergeableObject(e) && ct(e).forEach(function(i) {
1154
+ n[i] = ne(e[i], r);
1155
+ }), ct(t).forEach(function(i) {
1156
+ mn(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = dn(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
1134
1157
  }), n;
1135
1158
  }
1136
- function V(e, t, r) {
1137
- r = r || {}, r.arrayMerge = r.arrayMerge || mn, r.isMergeableObject = r.isMergeableObject || un, r.cloneUnlessOtherwiseSpecified = re;
1159
+ function X(e, t, r) {
1160
+ r = r || {}, r.arrayMerge = r.arrayMerge || cn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = ne;
1138
1161
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1139
- return o ? n ? r.arrayMerge(e, t, r) : vn(e, t, r) : re(t, r);
1162
+ return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) : ne(t, r);
1140
1163
  }
1141
- V.all = function(t, r) {
1164
+ X.all = function(t, r) {
1142
1165
  if (!Array.isArray(t))
1143
1166
  throw new Error("first argument should be an array");
1144
1167
  return t.reduce(function(n, i) {
1145
- return V(n, i, r);
1168
+ return X(n, i, r);
1146
1169
  }, {});
1147
1170
  };
1148
- var _n = V, En = _n;
1149
- const xn = /* @__PURE__ */ an(En);
1150
- var Xe = function(e, t) {
1151
- return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1152
- r.__proto__ = n;
1153
- } || function(r, n) {
1154
- for (var i in n)
1155
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1156
- }, Xe(e, t);
1157
- };
1158
- function xe(e, t) {
1159
- if (typeof t != "function" && t !== null)
1160
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1161
- Xe(e, t);
1162
- function r() {
1163
- this.constructor = e;
1164
- }
1165
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1166
- }
1167
- var P = function() {
1168
- return P = Object.assign || function(t) {
1169
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1170
- r = arguments[n];
1171
- for (var o in r)
1172
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1173
- }
1174
- return t;
1175
- }, P.apply(this, arguments);
1176
- };
1177
- function Sn(e, t) {
1178
- var r = {};
1179
- for (var n in e)
1180
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1181
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1182
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1183
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1184
- return r;
1185
- }
1186
- function Oe(e, t, r) {
1187
- if (r || arguments.length === 2)
1188
- for (var n = 0, i = t.length, o; n < i; n++)
1189
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1190
- return e.concat(o || Array.prototype.slice.call(t));
1191
- }
1192
- function Ie(e, t) {
1193
- var r = t && t.cache ? t.cache : On, n = t && t.serializer ? t.serializer : An, i = t && t.strategy ? t.strategy : Bn;
1171
+ var gn = X, yn = gn;
1172
+ const vn = /* @__PURE__ */ nn(yn);
1173
+ function Ae(e, t) {
1174
+ var r = t && t.cache ? t.cache : Bn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : En;
1194
1175
  return i(e, {
1195
1176
  cache: r,
1196
1177
  serializer: n
1197
1178
  });
1198
1179
  }
1199
- function Tn(e) {
1180
+ function xn(e) {
1200
1181
  return e == null || typeof e == "number" || typeof e == "boolean";
1201
1182
  }
1202
- function Hn(e, t, r, n) {
1203
- var i = Tn(n) ? n : r(n), o = t.get(i);
1183
+ function Ft(e, t, r, n) {
1184
+ var i = xn(n) ? n : r(n), o = t.get(i);
1204
1185
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1205
1186
  }
1206
- function Xt(e, t, r) {
1187
+ function jt(e, t, r) {
1207
1188
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1208
1189
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1209
1190
  }
1210
- function Wt(e, t, r, n, i) {
1191
+ function qe(e, t, r, n, i) {
1211
1192
  return r.bind(t, e, n, i);
1212
1193
  }
1213
- function Bn(e, t) {
1214
- var r = e.length === 1 ? Hn : Xt;
1215
- return Wt(e, this, r, t.cache.create(), t.serializer);
1194
+ function En(e, t) {
1195
+ var r = e.length === 1 ? Ft : jt;
1196
+ return qe(e, this, r, t.cache.create(), t.serializer);
1216
1197
  }
1217
- function wn(e, t) {
1218
- return Wt(e, this, Xt, t.cache.create(), t.serializer);
1198
+ function _n(e, t) {
1199
+ return qe(e, this, jt, t.cache.create(), t.serializer);
1219
1200
  }
1220
- var An = function() {
1201
+ function Sn(e, t) {
1202
+ return qe(e, this, Ft, t.cache.create(), t.serializer);
1203
+ }
1204
+ var Tn = function() {
1221
1205
  return JSON.stringify(arguments);
1222
- }, Pn = (
1206
+ }, Hn = (
1223
1207
  /** @class */
1224
1208
  function() {
1225
1209
  function e() {
@@ -1231,71 +1215,62 @@ var An = function() {
1231
1215
  this.cache[t] = r;
1232
1216
  }, e;
1233
1217
  }()
1234
- ), On = {
1218
+ ), Bn = {
1235
1219
  create: function() {
1236
- return new Pn();
1220
+ return new Hn();
1237
1221
  }
1238
- }, Le = {
1239
- variadic: wn
1240
- }, be = function() {
1241
- return be = Object.assign || function(t) {
1242
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1243
- r = arguments[n];
1244
- for (var o in r)
1245
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1246
- }
1247
- return t;
1248
- }, be.apply(this, arguments);
1249
- };
1250
- var m;
1222
+ }, Pe = {
1223
+ variadic: _n,
1224
+ monadic: Sn
1225
+ }, m;
1251
1226
  (function(e) {
1252
1227
  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";
1253
1228
  })(m || (m = {}));
1254
- var v;
1229
+ var x;
1255
1230
  (function(e) {
1256
1231
  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";
1257
- })(v || (v = {}));
1258
- var X;
1232
+ })(x || (x = {}));
1233
+ var W;
1259
1234
  (function(e) {
1260
1235
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1261
- })(X || (X = {}));
1262
- function gt(e) {
1263
- return e.type === v.literal;
1236
+ })(W || (W = {}));
1237
+ function dt(e) {
1238
+ return e.type === x.literal;
1264
1239
  }
1265
- function In(e) {
1266
- return e.type === v.argument;
1240
+ function wn(e) {
1241
+ return e.type === x.argument;
1267
1242
  }
1268
- function zt(e) {
1269
- return e.type === v.number;
1243
+ function kt(e) {
1244
+ return e.type === x.number;
1270
1245
  }
1271
- function Zt(e) {
1272
- return e.type === v.date;
1246
+ function Vt(e) {
1247
+ return e.type === x.date;
1273
1248
  }
1274
- function Qt(e) {
1275
- return e.type === v.time;
1249
+ function Xt(e) {
1250
+ return e.type === x.time;
1276
1251
  }
1277
- function qt(e) {
1278
- return e.type === v.select;
1252
+ function Wt(e) {
1253
+ return e.type === x.select;
1279
1254
  }
1280
- function Jt(e) {
1281
- return e.type === v.plural;
1255
+ function zt(e) {
1256
+ return e.type === x.plural;
1282
1257
  }
1283
- function Ln(e) {
1284
- return e.type === v.pound;
1258
+ function An(e) {
1259
+ return e.type === x.pound;
1285
1260
  }
1286
- function Yt(e) {
1287
- return e.type === v.tag;
1261
+ function Zt(e) {
1262
+ return e.type === x.tag;
1288
1263
  }
1289
- function Kt(e) {
1290
- return !!(e && typeof e == "object" && e.type === X.number);
1264
+ function Qt(e) {
1265
+ return !!(e && typeof e == "object" && e.type === W.number);
1291
1266
  }
1292
- function We(e) {
1293
- return !!(e && typeof e == "object" && e.type === X.dateTime);
1267
+ function Fe(e) {
1268
+ return !!(e && typeof e == "object" && e.type === W.dateTime);
1294
1269
  }
1295
- var er = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Nn = /(?:[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;
1296
- function Mn(e) {
1270
+ var qt = /[ \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;
1271
+ function On(e) {
1297
1272
  var t = {};
1298
- return e.replace(Nn, function(r) {
1273
+ return e.replace(Pn, function(r) {
1299
1274
  var n = r.length;
1300
1275
  switch (r[0]) {
1301
1276
  case "G":
@@ -1384,46 +1359,36 @@ function Mn(e) {
1384
1359
  return "";
1385
1360
  }), t;
1386
1361
  }
1387
- var _ = function() {
1388
- return _ = Object.assign || function(t) {
1389
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1390
- r = arguments[n];
1391
- for (var o in r)
1392
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1393
- }
1394
- return t;
1395
- }, _.apply(this, arguments);
1396
- };
1397
- var Cn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1398
- function $n(e) {
1362
+ var In = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1363
+ function Ln(e) {
1399
1364
  if (e.length === 0)
1400
1365
  throw new Error("Number skeleton cannot be empty");
1401
- for (var t = e.split(Cn).filter(function(c) {
1402
- return c.length > 0;
1366
+ for (var t = e.split(In).filter(function(f) {
1367
+ return f.length > 0;
1403
1368
  }), r = [], n = 0, i = t; n < i.length; n++) {
1404
1369
  var o = i[n], s = o.split("/");
1405
1370
  if (s.length === 0)
1406
1371
  throw new Error("Invalid number skeleton");
1407
1372
  for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
1408
- var f = l[u];
1409
- if (f.length === 0)
1373
+ var c = l[u];
1374
+ if (c.length === 0)
1410
1375
  throw new Error("Invalid number skeleton");
1411
1376
  }
1412
1377
  r.push({ stem: a, options: h });
1413
1378
  }
1414
1379
  return r;
1415
1380
  }
1416
- function Rn(e) {
1381
+ function Nn(e) {
1417
1382
  return e.replace(/^(.*?)-/, "");
1418
1383
  }
1419
- var yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, tr = /^(@+)?(\+|#+)?[rs]?$/g, Un = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
1420
- function vt(e) {
1384
+ var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Jt = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
1385
+ function mt(e) {
1421
1386
  var t = {};
1422
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(tr, function(r, n, i) {
1387
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Jt, function(r, n, i) {
1423
1388
  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)), "";
1424
1389
  }), t;
1425
1390
  }
1426
- function nr(e) {
1391
+ function Kt(e) {
1427
1392
  switch (e) {
1428
1393
  case "sign-auto":
1429
1394
  return {
@@ -1463,7 +1428,7 @@ function nr(e) {
1463
1428
  };
1464
1429
  }
1465
1430
  }
1466
- function Gn(e) {
1431
+ function Cn(e) {
1467
1432
  var t;
1468
1433
  if (e[0] === "E" && e[1] === "E" ? (t = {
1469
1434
  notation: "engineering"
@@ -1471,17 +1436,17 @@ function Gn(e) {
1471
1436
  notation: "scientific"
1472
1437
  }, e = e.slice(1)), t) {
1473
1438
  var r = e.slice(0, 2);
1474
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !rr.test(e))
1439
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
1475
1440
  throw new Error("Malformed concise eng/scientific notation");
1476
1441
  t.minimumIntegerDigits = e.length;
1477
1442
  }
1478
1443
  return t;
1479
1444
  }
1480
- function _t(e) {
1481
- var t = {}, r = nr(e);
1445
+ function bt(e) {
1446
+ var t = {}, r = Kt(e);
1482
1447
  return r || t;
1483
1448
  }
1484
- function Dn(e) {
1449
+ function $n(e) {
1485
1450
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1486
1451
  var i = n[r];
1487
1452
  switch (i.stem) {
@@ -1505,7 +1470,7 @@ function Dn(e) {
1505
1470
  continue;
1506
1471
  case "measure-unit":
1507
1472
  case "unit":
1508
- t.style = "unit", t.unit = Rn(i.options[0]);
1473
+ t.style = "unit", t.unit = Nn(i.options[0]);
1509
1474
  continue;
1510
1475
  case "compact-short":
1511
1476
  case "K":
@@ -1516,13 +1481,13 @@ function Dn(e) {
1516
1481
  t.notation = "compact", t.compactDisplay = "long";
1517
1482
  continue;
1518
1483
  case "scientific":
1519
- t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1520
- return _(_({}, h), _t(u));
1484
+ t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1485
+ return g(g({}, h), bt(u));
1521
1486
  }, {}));
1522
1487
  continue;
1523
1488
  case "engineering":
1524
- t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1525
- return _(_({}, h), _t(u));
1489
+ t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1490
+ return g(g({}, h), bt(u));
1526
1491
  }, {}));
1527
1492
  continue;
1528
1493
  case "notation-simple":
@@ -1567,45 +1532,45 @@ function Dn(e) {
1567
1532
  case "integer-width":
1568
1533
  if (i.options.length > 1)
1569
1534
  throw new RangeError("integer-width stems only accept a single optional option");
1570
- i.options[0].replace(Un, function(h, u, l, f, c, p) {
1535
+ i.options[0].replace(Mn, function(h, u, l, c, f, d) {
1571
1536
  if (u)
1572
1537
  t.minimumIntegerDigits = l.length;
1573
1538
  else {
1574
- if (f && c)
1539
+ if (c && f)
1575
1540
  throw new Error("We currently do not support maximum integer digits");
1576
- if (p)
1541
+ if (d)
1577
1542
  throw new Error("We currently do not support exact integer digits");
1578
1543
  }
1579
1544
  return "";
1580
1545
  });
1581
1546
  continue;
1582
1547
  }
1583
- if (rr.test(i.stem)) {
1548
+ if (Yt.test(i.stem)) {
1584
1549
  t.minimumIntegerDigits = i.stem.length;
1585
1550
  continue;
1586
1551
  }
1587
- if (yt.test(i.stem)) {
1552
+ if (pt.test(i.stem)) {
1588
1553
  if (i.options.length > 1)
1589
1554
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1590
- i.stem.replace(yt, function(h, u, l, f, c, p) {
1591
- return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1555
+ i.stem.replace(pt, function(h, u, l, c, f, d) {
1556
+ return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && d ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1592
1557
  });
1593
1558
  var o = i.options[0];
1594
- o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), vt(o)));
1559
+ o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), mt(o)));
1595
1560
  continue;
1596
1561
  }
1597
- if (tr.test(i.stem)) {
1598
- t = _(_({}, t), vt(i.stem));
1562
+ if (Jt.test(i.stem)) {
1563
+ t = g(g({}, t), mt(i.stem));
1599
1564
  continue;
1600
1565
  }
1601
- var s = nr(i.stem);
1602
- s && (t = _(_({}, t), s));
1603
- var a = Gn(i.stem);
1604
- a && (t = _(_({}, t), a));
1566
+ var s = Kt(i.stem);
1567
+ s && (t = g(g({}, t), s));
1568
+ var a = Cn(i.stem);
1569
+ a && (t = g(g({}, t), a));
1605
1570
  }
1606
1571
  return t;
1607
1572
  }
1608
- var ce = {
1573
+ var fe = {
1609
1574
  "001": [
1610
1575
  "H",
1611
1576
  "h"
@@ -3020,13 +2985,13 @@ var ce = {
3020
2985
  "h"
3021
2986
  ]
3022
2987
  };
3023
- function Fn(e, t) {
2988
+ function Rn(e, t) {
3024
2989
  for (var r = "", n = 0; n < e.length; n++) {
3025
2990
  var i = e.charAt(n);
3026
2991
  if (i === "j") {
3027
2992
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3028
2993
  o++, n++;
3029
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = jn(t);
2994
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Un(t);
3030
2995
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
3031
2996
  r += h;
3032
2997
  for (; s-- > 0; )
@@ -3036,7 +3001,7 @@ function Fn(e, t) {
3036
3001
  }
3037
3002
  return r;
3038
3003
  }
3039
- function jn(e) {
3004
+ function Un(e) {
3040
3005
  var t = e.hourCycle;
3041
3006
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3042
3007
  e.hourCycles && // @ts-ignore
@@ -3055,23 +3020,23 @@ function jn(e) {
3055
3020
  }
3056
3021
  var r = e.language, n;
3057
3022
  r !== "root" && (n = e.maximize().region);
3058
- var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
3023
+ var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
3059
3024
  return i[0];
3060
3025
  }
3061
- var Ne, kn = new RegExp("^".concat(er.source, "*")), Vn = new RegExp("".concat(er.source, "*$"));
3026
+ var Oe, Dn = new RegExp("^".concat(qt.source, "*")), Gn = new RegExp("".concat(qt.source, "*$"));
3062
3027
  function b(e, t) {
3063
3028
  return { start: e, end: t };
3064
3029
  }
3065
- var Xn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Wn = !!String.fromCodePoint, zn = !!Object.fromEntries, Zn = !!String.prototype.codePointAt, Qn = !!String.prototype.trimStart, qn = !!String.prototype.trimEnd, Jn = !!Number.isSafeInteger, Yn = Jn ? Number.isSafeInteger : function(e) {
3030
+ var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, kn = !!Object.fromEntries, Vn = !!String.prototype.codePointAt, Xn = !!String.prototype.trimStart, Wn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Zn = zn ? Number.isSafeInteger : function(e) {
3066
3031
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3067
- }, ze = !0;
3032
+ }, je = !0;
3068
3033
  try {
3069
- var Kn = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3070
- ze = ((Ne = Kn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
3034
+ var Qn = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3035
+ je = ((Oe = Qn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
3071
3036
  } catch (e) {
3072
- ze = !1;
3037
+ je = !1;
3073
3038
  }
3074
- var Et = Xn ? (
3039
+ var gt = Fn ? (
3075
3040
  // Native
3076
3041
  function(t, r, n) {
3077
3042
  return t.startsWith(r, n);
@@ -3081,7 +3046,7 @@ var Et = Xn ? (
3081
3046
  function(t, r, n) {
3082
3047
  return t.slice(n, n + r.length) === r;
3083
3048
  }
3084
- ), Ze = Wn ? String.fromCodePoint : (
3049
+ ), ke = jn ? String.fromCodePoint : (
3085
3050
  // IE11
3086
3051
  function() {
3087
3052
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3093,9 +3058,9 @@ var Et = Xn ? (
3093
3058
  }
3094
3059
  return n;
3095
3060
  }
3096
- ), xt = (
3061
+ ), yt = (
3097
3062
  // native
3098
- zn ? Object.fromEntries : (
3063
+ kn ? Object.fromEntries : (
3099
3064
  // Ponyfill
3100
3065
  function(t) {
3101
3066
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3105,7 +3070,7 @@ var Et = Xn ? (
3105
3070
  return r;
3106
3071
  }
3107
3072
  )
3108
- ), ir = Zn ? (
3073
+ ), er = Vn ? (
3109
3074
  // Native
3110
3075
  function(t, r) {
3111
3076
  return t.codePointAt(r);
@@ -3119,7 +3084,7 @@ var Et = Xn ? (
3119
3084
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3120
3085
  }
3121
3086
  }
3122
- ), ei = Qn ? (
3087
+ ), qn = Xn ? (
3123
3088
  // Native
3124
3089
  function(t) {
3125
3090
  return t.trimStart();
@@ -3127,9 +3092,9 @@ var Et = Xn ? (
3127
3092
  ) : (
3128
3093
  // Ponyfill
3129
3094
  function(t) {
3130
- return t.replace(kn, "");
3095
+ return t.replace(Dn, "");
3131
3096
  }
3132
- ), ti = qn ? (
3097
+ ), Jn = Wn ? (
3133
3098
  // Native
3134
3099
  function(t) {
3135
3100
  return t.trimEnd();
@@ -3137,32 +3102,32 @@ var Et = Xn ? (
3137
3102
  ) : (
3138
3103
  // Ponyfill
3139
3104
  function(t) {
3140
- return t.replace(Vn, "");
3105
+ return t.replace(Gn, "");
3141
3106
  }
3142
3107
  );
3143
- function or(e, t) {
3108
+ function tr(e, t) {
3144
3109
  return new RegExp(e, t);
3145
3110
  }
3146
- var Qe;
3147
- if (ze) {
3148
- var St = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3149
- Qe = function(t, r) {
3111
+ var Ve;
3112
+ if (je) {
3113
+ var vt = tr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3114
+ Ve = function(t, r) {
3150
3115
  var n;
3151
- St.lastIndex = r;
3152
- var i = St.exec(t);
3116
+ vt.lastIndex = r;
3117
+ var i = vt.exec(t);
3153
3118
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3154
3119
  };
3155
3120
  } else
3156
- Qe = function(t, r) {
3121
+ Ve = function(t, r) {
3157
3122
  for (var n = []; ; ) {
3158
- var i = ir(t, r);
3159
- if (i === void 0 || sr(i) || oi(i))
3123
+ var i = er(t, r);
3124
+ if (i === void 0 || rr(i) || ti(i))
3160
3125
  break;
3161
3126
  n.push(i), r += i >= 65536 ? 2 : 1;
3162
3127
  }
3163
- return Ze.apply(void 0, n);
3128
+ return ke.apply(void 0, n);
3164
3129
  };
3165
- var ri = (
3130
+ var Yn = (
3166
3131
  /** @class */
3167
3132
  function() {
3168
3133
  function e(t, r) {
@@ -3186,14 +3151,14 @@ var ri = (
3186
3151
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3187
3152
  var a = this.clonePosition();
3188
3153
  this.bump(), i.push({
3189
- type: v.pound,
3154
+ type: x.pound,
3190
3155
  location: b(a, this.clonePosition())
3191
3156
  });
3192
3157
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3193
3158
  if (n)
3194
3159
  break;
3195
3160
  return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
3196
- } else if (o === 60 && !this.ignoreTag && qe(this.peek() || 0)) {
3161
+ } else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
3197
3162
  var s = this.parseTag(t, r);
3198
3163
  if (s.err)
3199
3164
  return s;
@@ -3214,7 +3179,7 @@ var ri = (
3214
3179
  if (this.bumpSpace(), this.bumpIf("/>"))
3215
3180
  return {
3216
3181
  val: {
3217
- type: v.literal,
3182
+ type: x.literal,
3218
3183
  value: "<".concat(i, "/>"),
3219
3184
  location: b(n, this.clonePosition())
3220
3185
  },
@@ -3226,12 +3191,12 @@ var ri = (
3226
3191
  return o;
3227
3192
  var s = o.val, a = this.clonePosition();
3228
3193
  if (this.bumpIf("</")) {
3229
- if (this.isEOF() || !qe(this.char()))
3194
+ if (this.isEOF() || !Xe(this.char()))
3230
3195
  return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
3231
3196
  var h = this.clonePosition(), u = this.parseTagName();
3232
3197
  return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3233
3198
  val: {
3234
- type: v.tag,
3199
+ type: x.tag,
3235
3200
  value: i,
3236
3201
  children: s,
3237
3202
  location: b(n, this.clonePosition())
@@ -3244,7 +3209,7 @@ var ri = (
3244
3209
  return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
3245
3210
  }, e.prototype.parseTagName = function() {
3246
3211
  var t = this.offset();
3247
- for (this.bump(); !this.isEOF() && ii(this.char()); )
3212
+ for (this.bump(); !this.isEOF() && ei(this.char()); )
3248
3213
  this.bump();
3249
3214
  return this.message.slice(t, this.offset());
3250
3215
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3268,12 +3233,12 @@ var ri = (
3268
3233
  }
3269
3234
  var h = b(n, this.clonePosition());
3270
3235
  return {
3271
- val: { type: v.literal, value: i, location: h },
3236
+ val: { type: x.literal, value: i, location: h },
3272
3237
  err: null
3273
3238
  };
3274
3239
  }, e.prototype.tryParseLeftAngleBracket = function() {
3275
3240
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3276
- !ni(this.peek() || 0)) ? (this.bump(), "<") : null;
3241
+ !Kn(this.peek() || 0)) ? (this.bump(), "<") : null;
3277
3242
  }, e.prototype.tryParseQuote = function(t) {
3278
3243
  if (this.isEOF() || this.char() !== 39)
3279
3244
  return null;
@@ -3307,12 +3272,12 @@ var ri = (
3307
3272
  r.push(n);
3308
3273
  this.bump();
3309
3274
  }
3310
- return Ze.apply(void 0, r);
3275
+ return ke.apply(void 0, r);
3311
3276
  }, e.prototype.tryParseUnquoted = function(t, r) {
3312
3277
  if (this.isEOF())
3313
3278
  return null;
3314
3279
  var n = this.char();
3315
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
3280
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
3316
3281
  }, e.prototype.parseArgument = function(t, r) {
3317
3282
  var n = this.clonePosition();
3318
3283
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3328,7 +3293,7 @@ var ri = (
3328
3293
  case 125:
3329
3294
  return this.bump(), {
3330
3295
  val: {
3331
- type: v.argument,
3296
+ type: x.argument,
3332
3297
  // value does not include the opening and closing braces.
3333
3298
  value: i,
3334
3299
  location: b(n, this.clonePosition())
@@ -3341,7 +3306,7 @@ var ri = (
3341
3306
  return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
3342
3307
  }
3343
3308
  }, e.prototype.parseIdentifierIfPossible = function() {
3344
- var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
3309
+ var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
3345
3310
  this.bumpTo(i);
3346
3311
  var o = this.clonePosition(), s = b(t, o);
3347
3312
  return { value: n, location: s };
@@ -3357,49 +3322,49 @@ var ri = (
3357
3322
  var u = null;
3358
3323
  if (this.bumpIf(",")) {
3359
3324
  this.bumpSpace();
3360
- var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3361
- if (f.err)
3362
- return f;
3363
- var c = ti(f.val);
3364
- if (c.length === 0)
3325
+ var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3326
+ if (c.err)
3327
+ return c;
3328
+ var f = Jn(c.val);
3329
+ if (f.length === 0)
3365
3330
  return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
3366
- var p = b(l, this.clonePosition());
3367
- u = { style: c, styleLocation: p };
3331
+ var d = b(l, this.clonePosition());
3332
+ u = { style: f, styleLocation: d };
3368
3333
  }
3369
- var d = this.tryParseArgumentClose(i);
3370
- if (d.err)
3371
- return d;
3372
- var y = b(i, this.clonePosition());
3373
- if (u && Et(u == null ? void 0 : u.style, "::", 0)) {
3374
- var B = ei(u.style.slice(2));
3334
+ var p = this.tryParseArgumentClose(i);
3335
+ if (p.err)
3336
+ return p;
3337
+ var v = b(i, this.clonePosition());
3338
+ if (u && gt(u == null ? void 0 : u.style, "::", 0)) {
3339
+ var B = qn(u.style.slice(2));
3375
3340
  if (a === "number") {
3376
- var f = this.parseNumberSkeletonFromString(B, u.styleLocation);
3377
- return f.err ? f : {
3378
- val: { type: v.number, value: n, location: y, style: f.val },
3341
+ var c = this.parseNumberSkeletonFromString(B, u.styleLocation);
3342
+ return c.err ? c : {
3343
+ val: { type: x.number, value: n, location: v, style: c.val },
3379
3344
  err: null
3380
3345
  };
3381
3346
  } else {
3382
3347
  if (B.length === 0)
3383
- return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
3348
+ return this.error(m.EXPECT_DATE_TIME_SKELETON, v);
3384
3349
  var $ = B;
3385
- this.locale && ($ = Fn(B, this.locale));
3386
- var c = {
3387
- type: X.dateTime,
3350
+ this.locale && ($ = Rn(B, this.locale));
3351
+ var f = {
3352
+ type: W.dateTime,
3388
3353
  pattern: $,
3389
3354
  location: u.styleLocation,
3390
- parsedOptions: this.shouldParseSkeletons ? Mn($) : {}
3391
- }, N = a === "date" ? v.date : v.time;
3355
+ parsedOptions: this.shouldParseSkeletons ? On($) : {}
3356
+ }, N = a === "date" ? x.date : x.time;
3392
3357
  return {
3393
- val: { type: N, value: n, location: y, style: c },
3358
+ val: { type: N, value: n, location: v, style: f },
3394
3359
  err: null
3395
3360
  };
3396
3361
  }
3397
3362
  }
3398
3363
  return {
3399
3364
  val: {
3400
- type: a === "number" ? v.number : a === "date" ? v.date : v.time,
3365
+ type: a === "number" ? x.number : a === "date" ? x.date : x.time,
3401
3366
  value: n,
3402
- location: y,
3367
+ location: v,
3403
3368
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
3404
3369
  },
3405
3370
  err: null
@@ -3408,41 +3373,41 @@ var ri = (
3408
3373
  case "plural":
3409
3374
  case "selectordinal":
3410
3375
  case "select": {
3411
- var x = this.clonePosition();
3376
+ var _ = this.clonePosition();
3412
3377
  if (this.bumpSpace(), !this.bumpIf(","))
3413
- return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(x, be({}, x)));
3378
+ return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(_, g({}, _)));
3414
3379
  this.bumpSpace();
3415
- var R = this.parseIdentifierIfPossible(), O = 0;
3380
+ var R = this.parseIdentifierIfPossible(), P = 0;
3416
3381
  if (a !== "select" && R.value === "offset") {
3417
3382
  if (!this.bumpIf(":"))
3418
3383
  return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
3419
3384
  this.bumpSpace();
3420
- var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3421
- if (f.err)
3422
- return f;
3423
- this.bumpSpace(), R = this.parseIdentifierIfPossible(), O = f.val;
3385
+ var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3386
+ if (c.err)
3387
+ return c;
3388
+ this.bumpSpace(), R = this.parseIdentifierIfPossible(), P = c.val;
3424
3389
  }
3425
- var G = this.tryParsePluralOrSelectOptions(t, a, r, R);
3426
- if (G.err)
3427
- return G;
3428
- var d = this.tryParseArgumentClose(i);
3429
- if (d.err)
3430
- return d;
3390
+ var D = this.tryParsePluralOrSelectOptions(t, a, r, R);
3391
+ if (D.err)
3392
+ return D;
3393
+ var p = this.tryParseArgumentClose(i);
3394
+ if (p.err)
3395
+ return p;
3431
3396
  var ue = b(i, this.clonePosition());
3432
3397
  return a === "select" ? {
3433
3398
  val: {
3434
- type: v.select,
3399
+ type: x.select,
3435
3400
  value: n,
3436
- options: xt(G.val),
3401
+ options: yt(D.val),
3437
3402
  location: ue
3438
3403
  },
3439
3404
  err: null
3440
3405
  } : {
3441
3406
  val: {
3442
- type: v.plural,
3407
+ type: x.plural,
3443
3408
  value: n,
3444
- options: xt(G.val),
3445
- offset: O,
3409
+ options: yt(D.val),
3410
+ offset: P,
3446
3411
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3447
3412
  location: ue
3448
3413
  },
@@ -3492,48 +3457,48 @@ var ri = (
3492
3457
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3493
3458
  var n = [];
3494
3459
  try {
3495
- n = $n(t);
3460
+ n = Ln(t);
3496
3461
  } catch (i) {
3497
3462
  return this.error(m.INVALID_NUMBER_SKELETON, r);
3498
3463
  }
3499
3464
  return {
3500
3465
  val: {
3501
- type: X.number,
3466
+ type: W.number,
3502
3467
  tokens: n,
3503
3468
  location: r,
3504
- parsedOptions: this.shouldParseSkeletons ? Dn(n) : {}
3469
+ parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
3505
3470
  },
3506
3471
  err: null
3507
3472
  };
3508
3473
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3509
3474
  for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
3510
3475
  if (u.length === 0) {
3511
- var f = this.clonePosition();
3476
+ var c = this.clonePosition();
3512
3477
  if (r !== "select" && this.bumpIf("=")) {
3513
- var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
3514
- if (c.err)
3515
- return c;
3516
- l = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3478
+ var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
3479
+ if (f.err)
3480
+ return f;
3481
+ l = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3517
3482
  } else
3518
3483
  break;
3519
3484
  }
3520
3485
  if (h.has(u))
3521
3486
  return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
3522
3487
  u === "other" && (s = !0), this.bumpSpace();
3523
- var p = this.clonePosition();
3488
+ var d = this.clonePosition();
3524
3489
  if (!this.bumpIf("{"))
3525
3490
  return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
3526
- var d = this.parseMessage(t + 1, r, n);
3527
- if (d.err)
3528
- return d;
3529
- var y = this.tryParseArgumentClose(p);
3530
- if (y.err)
3531
- return y;
3491
+ var p = this.parseMessage(t + 1, r, n);
3492
+ if (p.err)
3493
+ return p;
3494
+ var v = this.tryParseArgumentClose(d);
3495
+ if (v.err)
3496
+ return v;
3532
3497
  a.push([
3533
3498
  u,
3534
3499
  {
3535
- value: d.val,
3536
- location: b(p, this.clonePosition())
3500
+ value: p.val,
3501
+ location: b(d, this.clonePosition())
3537
3502
  }
3538
3503
  ]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
3539
3504
  }
@@ -3549,7 +3514,7 @@ var ri = (
3549
3514
  break;
3550
3515
  }
3551
3516
  var h = b(i, this.clonePosition());
3552
- return o ? (s *= n, Yn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3517
+ return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3553
3518
  }, e.prototype.offset = function() {
3554
3519
  return this.position.offset;
3555
3520
  }, e.prototype.isEOF = function() {
@@ -3564,7 +3529,7 @@ var ri = (
3564
3529
  var t = this.position.offset;
3565
3530
  if (t >= this.message.length)
3566
3531
  throw Error("out of bound");
3567
- var r = ir(this.message, t);
3532
+ var r = er(this.message, t);
3568
3533
  if (r === void 0)
3569
3534
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3570
3535
  return r;
@@ -3583,7 +3548,7 @@ var ri = (
3583
3548
  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);
3584
3549
  }
3585
3550
  }, e.prototype.bumpIf = function(t) {
3586
- if (Et(this.message, t, this.offset())) {
3551
+ if (gt(this.message, t, this.offset())) {
3587
3552
  for (var r = 0; r < t.length; r++)
3588
3553
  this.bump();
3589
3554
  return !0;
@@ -3605,7 +3570,7 @@ var ri = (
3605
3570
  break;
3606
3571
  }
3607
3572
  }, e.prototype.bumpSpace = function() {
3608
- for (; !this.isEOF() && sr(this.char()); )
3573
+ for (; !this.isEOF() && rr(this.char()); )
3609
3574
  this.bump();
3610
3575
  }, e.prototype.peek = function() {
3611
3576
  if (this.isEOF())
@@ -3615,47 +3580,47 @@ var ri = (
3615
3580
  }, e;
3616
3581
  }()
3617
3582
  );
3618
- function qe(e) {
3583
+ function Xe(e) {
3619
3584
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3620
3585
  }
3621
- function ni(e) {
3622
- return qe(e) || e === 47;
3586
+ function Kn(e) {
3587
+ return Xe(e) || e === 47;
3623
3588
  }
3624
- function ii(e) {
3589
+ function ei(e) {
3625
3590
  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;
3626
3591
  }
3627
- function sr(e) {
3592
+ function rr(e) {
3628
3593
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3629
3594
  }
3630
- function oi(e) {
3595
+ function ti(e) {
3631
3596
  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;
3632
3597
  }
3633
- function Je(e) {
3598
+ function We(e) {
3634
3599
  e.forEach(function(t) {
3635
- if (delete t.location, qt(t) || Jt(t))
3600
+ if (delete t.location, Wt(t) || zt(t))
3636
3601
  for (var r in t.options)
3637
- delete t.options[r].location, Je(t.options[r].value);
3602
+ delete t.options[r].location, We(t.options[r].value);
3638
3603
  else
3639
- zt(t) && Kt(t.style) || (Zt(t) || Qt(t)) && We(t.style) ? delete t.style.location : Yt(t) && Je(t.children);
3604
+ kt(t) && Qt(t.style) || (Vt(t) || Xt(t)) && Fe(t.style) ? delete t.style.location : Zt(t) && We(t.children);
3640
3605
  });
3641
3606
  }
3642
- function si(e, t) {
3643
- t === void 0 && (t = {}), t = be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3644
- var r = new ri(e, t).parse();
3607
+ function ri(e, t) {
3608
+ t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3609
+ var r = new Yn(e, t).parse();
3645
3610
  if (r.err) {
3646
3611
  var n = SyntaxError(m[r.err.kind]);
3647
3612
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3648
3613
  }
3649
- return t != null && t.captureLocation || Je(r.val), r.val;
3614
+ return t != null && t.captureLocation || We(r.val), r.val;
3650
3615
  }
3651
- var W;
3616
+ var z;
3652
3617
  (function(e) {
3653
3618
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3654
- })(W || (W = {}));
3655
- var Se = (
3619
+ })(z || (z = {}));
3620
+ var Ee = (
3656
3621
  /** @class */
3657
3622
  function(e) {
3658
- xe(t, e);
3623
+ L(t, e);
3659
3624
  function t(r, n, i) {
3660
3625
  var o = e.call(this, r) || this;
3661
3626
  return o.code = n, o.originalMessage = i, o;
@@ -3664,48 +3629,48 @@ var Se = (
3664
3629
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3665
3630
  }, t;
3666
3631
  }(Error)
3667
- ), Tt = (
3632
+ ), xt = (
3668
3633
  /** @class */
3669
3634
  function(e) {
3670
- xe(t, e);
3635
+ L(t, e);
3671
3636
  function t(r, n, i, o) {
3672
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
3637
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
3673
3638
  }
3674
3639
  return t;
3675
- }(Se)
3676
- ), ai = (
3640
+ }(Ee)
3641
+ ), ni = (
3677
3642
  /** @class */
3678
3643
  function(e) {
3679
- xe(t, e);
3644
+ L(t, e);
3680
3645
  function t(r, n, i) {
3681
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
3646
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
3682
3647
  }
3683
3648
  return t;
3684
- }(Se)
3685
- ), ui = (
3649
+ }(Ee)
3650
+ ), ii = (
3686
3651
  /** @class */
3687
3652
  function(e) {
3688
- xe(t, e);
3653
+ L(t, e);
3689
3654
  function t(r, n) {
3690
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
3655
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
3691
3656
  }
3692
3657
  return t;
3693
- }(Se)
3658
+ }(Ee)
3694
3659
  ), E;
3695
3660
  (function(e) {
3696
3661
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3697
3662
  })(E || (E = {}));
3698
- function hi(e) {
3663
+ function oi(e) {
3699
3664
  return e.length < 2 ? e : e.reduce(function(t, r) {
3700
3665
  var n = t[t.length - 1];
3701
3666
  return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
3702
3667
  }, []);
3703
3668
  }
3704
- function li(e) {
3669
+ function si(e) {
3705
3670
  return typeof e == "function";
3706
3671
  }
3707
- function de(e, t, r, n, i, o, s) {
3708
- if (e.length === 1 && gt(e[0]))
3672
+ function pe(e, t, r, n, i, o, s) {
3673
+ if (e.length === 1 && dt(e[0]))
3709
3674
  return [
3710
3675
  {
3711
3676
  type: E.literal,
@@ -3714,105 +3679,105 @@ function de(e, t, r, n, i, o, s) {
3714
3679
  ];
3715
3680
  for (var a = [], h = 0, u = e; h < u.length; h++) {
3716
3681
  var l = u[h];
3717
- if (gt(l)) {
3682
+ if (dt(l)) {
3718
3683
  a.push({
3719
3684
  type: E.literal,
3720
3685
  value: l.value
3721
3686
  });
3722
3687
  continue;
3723
3688
  }
3724
- if (Ln(l)) {
3689
+ if (An(l)) {
3725
3690
  typeof o == "number" && a.push({
3726
3691
  type: E.literal,
3727
3692
  value: r.getNumberFormat(t).format(o)
3728
3693
  });
3729
3694
  continue;
3730
3695
  }
3731
- var f = l.value;
3732
- if (!(i && f in i))
3733
- throw new ui(f, s);
3734
- var c = i[f];
3735
- if (In(l)) {
3736
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
3737
- type: typeof c == "string" ? E.literal : E.object,
3738
- value: c
3696
+ var c = l.value;
3697
+ if (!(i && c in i))
3698
+ throw new ii(c, s);
3699
+ var f = i[c];
3700
+ if (wn(l)) {
3701
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3702
+ type: typeof f == "string" ? E.literal : E.object,
3703
+ value: f
3739
3704
  });
3740
3705
  continue;
3741
3706
  }
3742
- if (Zt(l)) {
3743
- var p = typeof l.style == "string" ? n.date[l.style] : We(l.style) ? l.style.parsedOptions : void 0;
3707
+ if (Vt(l)) {
3708
+ var d = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
3744
3709
  a.push({
3745
3710
  type: E.literal,
3746
- value: r.getDateTimeFormat(t, p).format(c)
3711
+ value: r.getDateTimeFormat(t, d).format(f)
3747
3712
  });
3748
3713
  continue;
3749
3714
  }
3750
- if (Qt(l)) {
3751
- var p = typeof l.style == "string" ? n.time[l.style] : We(l.style) ? l.style.parsedOptions : n.time.medium;
3715
+ if (Xt(l)) {
3716
+ var d = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
3752
3717
  a.push({
3753
3718
  type: E.literal,
3754
- value: r.getDateTimeFormat(t, p).format(c)
3719
+ value: r.getDateTimeFormat(t, d).format(f)
3755
3720
  });
3756
3721
  continue;
3757
3722
  }
3758
- if (zt(l)) {
3759
- var p = typeof l.style == "string" ? n.number[l.style] : Kt(l.style) ? l.style.parsedOptions : void 0;
3760
- p && p.scale && (c = c * (p.scale || 1)), a.push({
3723
+ if (kt(l)) {
3724
+ var d = typeof l.style == "string" ? n.number[l.style] : Qt(l.style) ? l.style.parsedOptions : void 0;
3725
+ d && d.scale && (f = f * (d.scale || 1)), a.push({
3761
3726
  type: E.literal,
3762
- value: r.getNumberFormat(t, p).format(c)
3727
+ value: r.getNumberFormat(t, d).format(f)
3763
3728
  });
3764
3729
  continue;
3765
3730
  }
3766
- if (Yt(l)) {
3767
- var d = l.children, y = l.value, B = i[y];
3768
- if (!li(B))
3769
- throw new ai(y, "function", s);
3770
- var $ = de(d, t, r, n, i, o), N = B($.map(function(O) {
3771
- return O.value;
3731
+ if (Zt(l)) {
3732
+ var p = l.children, v = l.value, B = i[v];
3733
+ if (!si(B))
3734
+ throw new ni(v, "function", s);
3735
+ var $ = pe(p, t, r, n, i, o), N = B($.map(function(P) {
3736
+ return P.value;
3772
3737
  }));
3773
- Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(O) {
3738
+ Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(P) {
3774
3739
  return {
3775
- type: typeof O == "string" ? E.literal : E.object,
3776
- value: O
3740
+ type: typeof P == "string" ? E.literal : E.object,
3741
+ value: P
3777
3742
  };
3778
3743
  }));
3779
3744
  }
3780
- if (qt(l)) {
3781
- var x = l.options[c] || l.options.other;
3782
- if (!x)
3783
- throw new Tt(l.value, c, Object.keys(l.options), s);
3784
- a.push.apply(a, de(x.value, t, r, n, i));
3745
+ if (Wt(l)) {
3746
+ var _ = l.options[f] || l.options.other;
3747
+ if (!_)
3748
+ throw new xt(l.value, f, Object.keys(l.options), s);
3749
+ a.push.apply(a, pe(_.value, t, r, n, i));
3785
3750
  continue;
3786
3751
  }
3787
- if (Jt(l)) {
3788
- var x = l.options["=".concat(c)];
3789
- if (!x) {
3752
+ if (zt(l)) {
3753
+ var _ = l.options["=".concat(f)];
3754
+ if (!_) {
3790
3755
  if (!Intl.PluralRules)
3791
- throw new Se(`Intl.PluralRules is not available in this environment.
3756
+ throw new Ee(`Intl.PluralRules is not available in this environment.
3792
3757
  Try polyfilling it using "@formatjs/intl-pluralrules"
3793
- `, W.MISSING_INTL_API, s);
3794
- var R = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
3795
- x = l.options[R] || l.options.other;
3758
+ `, z.MISSING_INTL_API, s);
3759
+ var R = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3760
+ _ = l.options[R] || l.options.other;
3796
3761
  }
3797
- if (!x)
3798
- throw new Tt(l.value, c, Object.keys(l.options), s);
3799
- a.push.apply(a, de(x.value, t, r, n, i, c - (l.offset || 0)));
3762
+ if (!_)
3763
+ throw new xt(l.value, f, Object.keys(l.options), s);
3764
+ a.push.apply(a, pe(_.value, t, r, n, i, f - (l.offset || 0)));
3800
3765
  continue;
3801
3766
  }
3802
3767
  }
3803
- return hi(a);
3768
+ return oi(a);
3804
3769
  }
3805
- function ci(e, t) {
3806
- return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3807
- return r[n] = P(P({}, e[n]), t[n] || {}), r;
3770
+ function ai(e, t) {
3771
+ return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3772
+ return r[n] = g(g({}, e[n]), t[n] || {}), r;
3808
3773
  }, {})) : e;
3809
3774
  }
3810
- function fi(e, t) {
3775
+ function ui(e, t) {
3811
3776
  return t ? Object.keys(e).reduce(function(r, n) {
3812
- return r[n] = ci(e[n], t[n]), r;
3813
- }, P({}, e)) : e;
3777
+ return r[n] = ai(e[n], t[n]), r;
3778
+ }, g({}, e)) : e;
3814
3779
  }
3815
- function Me(e) {
3780
+ function Ie(e) {
3816
3781
  return {
3817
3782
  create: function() {
3818
3783
  return {
@@ -3826,39 +3791,39 @@ function Me(e) {
3826
3791
  }
3827
3792
  };
3828
3793
  }
3829
- function pi(e) {
3794
+ function hi(e) {
3830
3795
  return e === void 0 && (e = {
3831
3796
  number: {},
3832
3797
  dateTime: {},
3833
3798
  pluralRules: {}
3834
3799
  }), {
3835
- getNumberFormat: Ie(function() {
3800
+ getNumberFormat: Ae(function() {
3836
3801
  for (var t, r = [], n = 0; n < arguments.length; n++)
3837
3802
  r[n] = arguments[n];
3838
- return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
3803
+ return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
3839
3804
  }, {
3840
- cache: Me(e.number),
3841
- strategy: Le.variadic
3805
+ cache: Ie(e.number),
3806
+ strategy: Pe.variadic
3842
3807
  }),
3843
- getDateTimeFormat: Ie(function() {
3808
+ getDateTimeFormat: Ae(function() {
3844
3809
  for (var t, r = [], n = 0; n < arguments.length; n++)
3845
3810
  r[n] = arguments[n];
3846
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
3811
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
3847
3812
  }, {
3848
- cache: Me(e.dateTime),
3849
- strategy: Le.variadic
3813
+ cache: Ie(e.dateTime),
3814
+ strategy: Pe.variadic
3850
3815
  }),
3851
- getPluralRules: Ie(function() {
3816
+ getPluralRules: Ae(function() {
3852
3817
  for (var t, r = [], n = 0; n < arguments.length; n++)
3853
3818
  r[n] = arguments[n];
3854
- return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
3819
+ return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
3855
3820
  }, {
3856
- cache: Me(e.pluralRules),
3857
- strategy: Le.variadic
3821
+ cache: Ie(e.pluralRules),
3822
+ strategy: Pe.variadic
3858
3823
  })
3859
3824
  };
3860
3825
  }
3861
- var di = (
3826
+ var li = (
3862
3827
  /** @class */
3863
3828
  function() {
3864
3829
  function e(t, r, n, i) {
@@ -3872,12 +3837,12 @@ var di = (
3872
3837
  var u = o.formatToParts(h);
3873
3838
  if (u.length === 1)
3874
3839
  return u[0].value;
3875
- var l = u.reduce(function(f, c) {
3876
- return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
3840
+ var l = u.reduce(function(c, f) {
3841
+ return !c.length || f.type !== E.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3877
3842
  }, []);
3878
3843
  return l.length <= 1 ? l[0] || "" : l;
3879
3844
  }, this.formatToParts = function(h) {
3880
- return de(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3845
+ return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3881
3846
  }, this.resolvedOptions = function() {
3882
3847
  var h;
3883
3848
  return {
@@ -3890,13 +3855,13 @@ var di = (
3890
3855
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3891
3856
  var s = i || {};
3892
3857
  s.formatters;
3893
- var a = Sn(s, ["formatters"]);
3894
- this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
3858
+ var a = Fr(s, ["formatters"]);
3859
+ this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
3895
3860
  } else
3896
3861
  this.ast = t;
3897
3862
  if (!Array.isArray(this.ast))
3898
3863
  throw new TypeError("A message must be provided as a String or AST.");
3899
- this.formats = fi(e.formats, n), this.formatters = i && i.formatters || pi(this.formatterCache);
3864
+ this.formats = ui(e.formats, n), this.formatters = i && i.formatters || hi(this.formatterCache);
3900
3865
  }
3901
3866
  return Object.defineProperty(e, "defaultLocale", {
3902
3867
  get: function() {
@@ -3909,7 +3874,7 @@ var di = (
3909
3874
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3910
3875
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3911
3876
  }
3912
- }, e.__parse = si, e.formats = {
3877
+ }, e.__parse = ri, e.formats = {
3913
3878
  number: {
3914
3879
  integer: {
3915
3880
  maximumFractionDigits: 0
@@ -3970,7 +3935,7 @@ var di = (
3970
3935
  }, e;
3971
3936
  }()
3972
3937
  );
3973
- function mi(e, t) {
3938
+ function fi(e, t) {
3974
3939
  if (t == null)
3975
3940
  return;
3976
3941
  if (t in e)
@@ -3991,92 +3956,92 @@ function mi(e, t) {
3991
3956
  n = void 0;
3992
3957
  return n;
3993
3958
  }
3994
- const C = {}, bi = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), ar = (e, t) => {
3959
+ const C = {}, ci = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), nr = (e, t) => {
3995
3960
  if (t == null)
3996
3961
  return;
3997
3962
  if (t in C && e in C[t])
3998
3963
  return C[t][e];
3999
- const r = Te(t);
3964
+ const r = _e(t);
4000
3965
  for (let n = 0; n < r.length; n++) {
4001
- const i = r[n], o = yi(i, e);
3966
+ const i = r[n], o = pi(i, e);
4002
3967
  if (o)
4003
- return bi(e, t, o);
3968
+ return ci(e, t, o);
4004
3969
  }
4005
3970
  };
4006
- let tt;
4007
- const ae = Ee({});
4008
- function gi(e) {
4009
- return tt[e] || null;
3971
+ let Je;
3972
+ const ae = xe({});
3973
+ function di(e) {
3974
+ return Je[e] || null;
4010
3975
  }
4011
- function ur(e) {
4012
- return e in tt;
3976
+ function ir(e) {
3977
+ return e in Je;
4013
3978
  }
4014
- function yi(e, t) {
4015
- if (!ur(e))
3979
+ function pi(e, t) {
3980
+ if (!ir(e))
4016
3981
  return null;
4017
- const r = gi(e);
4018
- return mi(r, t);
3982
+ const r = di(e);
3983
+ return fi(r, t);
4019
3984
  }
4020
- function vi(e) {
3985
+ function mi(e) {
4021
3986
  if (e == null)
4022
3987
  return;
4023
- const t = Te(e);
3988
+ const t = _e(e);
4024
3989
  for (let r = 0; r < t.length; r++) {
4025
3990
  const n = t[r];
4026
- if (ur(n))
3991
+ if (ir(n))
4027
3992
  return n;
4028
3993
  }
4029
3994
  }
4030
- function hr(e, ...t) {
4031
- delete C[e], ae.update((r) => (r[e] = xn.all([r[e] || {}, ...t]), r));
3995
+ function or(e, ...t) {
3996
+ delete C[e], ae.update((r) => (r[e] = vn.all([r[e] || {}, ...t]), r));
4032
3997
  }
4033
- Q(
3998
+ q(
4034
3999
  [ae],
4035
4000
  ([e]) => Object.keys(e)
4036
4001
  );
4037
- ae.subscribe((e) => tt = e);
4002
+ ae.subscribe((e) => Je = e);
4038
4003
  const me = {};
4039
- function _i(e, t) {
4004
+ function bi(e, t) {
4040
4005
  me[e].delete(t), me[e].size === 0 && delete me[e];
4041
4006
  }
4042
- function lr(e) {
4007
+ function sr(e) {
4043
4008
  return me[e];
4044
4009
  }
4045
- function Ei(e) {
4046
- return Te(e).map((t) => {
4047
- const r = lr(t);
4010
+ function gi(e) {
4011
+ return _e(e).map((t) => {
4012
+ const r = sr(t);
4048
4013
  return [t, r ? [...r] : []];
4049
4014
  }).filter(([, t]) => t.length > 0);
4050
4015
  }
4051
- function Ye(e) {
4052
- return e == null ? !1 : Te(e).some(
4016
+ function ze(e) {
4017
+ return e == null ? !1 : _e(e).some(
4053
4018
  (t) => {
4054
4019
  var r;
4055
- return (r = lr(t)) == null ? void 0 : r.size;
4020
+ return (r = sr(t)) == null ? void 0 : r.size;
4056
4021
  }
4057
4022
  );
4058
4023
  }
4059
- function xi(e, t) {
4024
+ function yi(e, t) {
4060
4025
  return Promise.all(
4061
- t.map((n) => (_i(e, n), n().then((i) => i.default || i)))
4062
- ).then((n) => hr(e, ...n));
4063
- }
4064
- const K = {};
4065
- function cr(e) {
4066
- if (!Ye(e))
4067
- return e in K ? K[e] : Promise.resolve();
4068
- const t = Ei(e);
4069
- return K[e] = Promise.all(
4026
+ t.map((n) => (bi(e, n), n().then((i) => i.default || i)))
4027
+ ).then((n) => or(e, ...n));
4028
+ }
4029
+ const ee = {};
4030
+ function ar(e) {
4031
+ if (!ze(e))
4032
+ return e in ee ? ee[e] : Promise.resolve();
4033
+ const t = gi(e);
4034
+ return ee[e] = Promise.all(
4070
4035
  t.map(
4071
- ([r, n]) => xi(r, n)
4036
+ ([r, n]) => yi(r, n)
4072
4037
  )
4073
4038
  ).then(() => {
4074
- if (Ye(e))
4075
- return cr(e);
4076
- delete K[e];
4077
- }), K[e];
4039
+ if (ze(e))
4040
+ return ar(e);
4041
+ delete ee[e];
4042
+ }), ee[e];
4078
4043
  }
4079
- const Si = {
4044
+ const vi = {
4080
4045
  number: {
4081
4046
  scientific: { notation: "scientific" },
4082
4047
  engineering: { notation: "engineering" },
@@ -4105,135 +4070,135 @@ const Si = {
4105
4070
  timeZoneName: "short"
4106
4071
  }
4107
4072
  }
4108
- }, Ti = {
4073
+ }, xi = {
4109
4074
  fallbackLocale: null,
4110
4075
  loadingDelay: 200,
4111
- formats: Si,
4076
+ formats: vi,
4112
4077
  warnOnMissingMessages: !0,
4113
4078
  handleMissingMessage: void 0,
4114
4079
  ignoreTag: !0
4115
- }, Hi = Ti;
4116
- function z() {
4117
- return Hi;
4118
- }
4119
- const Ce = Ee(!1);
4120
- var Bi = Object.defineProperty, wi = Object.defineProperties, Ai = Object.getOwnPropertyDescriptors, Ht = Object.getOwnPropertySymbols, Pi = Object.prototype.hasOwnProperty, Oi = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ii = (e, t) => {
4121
- for (var r in t || (t = {}))
4122
- Pi.call(t, r) && Bt(e, r, t[r]);
4123
- if (Ht)
4124
- for (var r of Ht(t))
4125
- Oi.call(t, r) && Bt(e, r, t[r]);
4080
+ }, Ei = xi;
4081
+ function Z() {
4082
+ return Ei;
4083
+ }
4084
+ const Le = xe(!1);
4085
+ var _i = Object.defineProperty, Si = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Bi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? _i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, wi = (e, t) => {
4086
+ for (var r in t)
4087
+ Hi.call(t, r) && _t(e, r, t[r]);
4088
+ if (Et)
4089
+ for (var r of Et(t))
4090
+ Bi.call(t, r) && _t(e, r, t[r]);
4126
4091
  return e;
4127
- }, Li = (e, t) => wi(e, Ai(t));
4128
- let Ke;
4129
- const ge = Ee(null);
4130
- function wt(e) {
4092
+ }, Ai = (e, t) => Si(e, Ti(t));
4093
+ let Ze;
4094
+ const be = xe(null);
4095
+ function St(e) {
4131
4096
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4132
4097
  }
4133
- function Te(e, t = z().fallbackLocale) {
4134
- const r = wt(e);
4135
- return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
4098
+ function _e(e, t = Z().fallbackLocale) {
4099
+ const r = St(e);
4100
+ return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
4136
4101
  }
4137
4102
  function U() {
4138
- return Ke != null ? Ke : void 0;
4103
+ return Ze != null ? Ze : void 0;
4139
4104
  }
4140
- ge.subscribe((e) => {
4141
- Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4105
+ be.subscribe((e) => {
4106
+ Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4142
4107
  });
4143
- const Ni = (e) => {
4144
- if (e && vi(e) && Ye(e)) {
4145
- const { loadingDelay: t } = z();
4108
+ const Pi = (e) => {
4109
+ if (e && mi(e) && ze(e)) {
4110
+ const { loadingDelay: t } = Z();
4146
4111
  let r;
4147
4112
  return typeof window != "undefined" && U() != null && t ? r = window.setTimeout(
4148
- () => Ce.set(!0),
4113
+ () => Le.set(!0),
4149
4114
  t
4150
- ) : Ce.set(!0), cr(e).then(() => {
4151
- ge.set(e);
4115
+ ) : Le.set(!0), ar(e).then(() => {
4116
+ be.set(e);
4152
4117
  }).finally(() => {
4153
- clearTimeout(r), Ce.set(!1);
4118
+ clearTimeout(r), Le.set(!1);
4154
4119
  });
4155
4120
  }
4156
- return ge.set(e);
4157
- }, q = Li(Ii({}, ge), {
4158
- set: Ni
4159
- }), He = (e) => {
4121
+ return be.set(e);
4122
+ }, J = Ai(wi({}, be), {
4123
+ set: Pi
4124
+ }), Se = (e) => {
4160
4125
  const t = /* @__PURE__ */ Object.create(null);
4161
4126
  return (n) => {
4162
4127
  const i = JSON.stringify(n);
4163
4128
  return i in t ? t[i] : t[i] = e(n);
4164
4129
  };
4165
4130
  };
4166
- var Mi = Object.defineProperty, ye = Object.getOwnPropertySymbols, fr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? Mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
4131
+ var Oi = Object.defineProperty, ge = Object.getOwnPropertySymbols, ur = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
4167
4132
  for (var r in t || (t = {}))
4168
- fr.call(t, r) && At(e, r, t[r]);
4169
- if (ye)
4170
- for (var r of ye(t))
4171
- pr.call(t, r) && At(e, r, t[r]);
4133
+ ur.call(t, r) && Tt(e, r, t[r]);
4134
+ if (ge)
4135
+ for (var r of ge(t))
4136
+ hr.call(t, r) && Tt(e, r, t[r]);
4172
4137
  return e;
4173
- }, J = (e, t) => {
4138
+ }, Y = (e, t) => {
4174
4139
  var r = {};
4175
4140
  for (var n in e)
4176
- fr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4177
- if (e != null && ye)
4178
- for (var n of ye(e))
4179
- t.indexOf(n) < 0 && pr.call(e, n) && (r[n] = e[n]);
4141
+ ur.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4142
+ if (e != null && ge)
4143
+ for (var n of ge(e))
4144
+ t.indexOf(n) < 0 && hr.call(e, n) && (r[n] = e[n]);
4180
4145
  return r;
4181
4146
  };
4182
- const ne = (e, t) => {
4183
- const { formats: r } = z();
4147
+ const ie = (e, t) => {
4148
+ const { formats: r } = Z();
4184
4149
  if (e in r && t in r[e])
4185
4150
  return r[e][t];
4186
4151
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4187
- }, Ci = He(
4152
+ }, Ii = Se(
4188
4153
  (e) => {
4189
- var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
4154
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4190
4155
  if (r == null)
4191
4156
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4192
- return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
4157
+ return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
4193
4158
  }
4194
- ), $i = He(
4159
+ ), Li = Se(
4195
4160
  (e) => {
4196
- var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
4161
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4197
4162
  if (r == null)
4198
4163
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4199
- return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
4164
+ return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
4200
4165
  }
4201
- ), Ri = He(
4166
+ ), Ni = Se(
4202
4167
  (e) => {
4203
- var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
4168
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4204
4169
  if (r == null)
4205
4170
  throw new Error(
4206
4171
  '[svelte-i18n] A "locale" must be set to format time values'
4207
4172
  );
4208
- return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
4173
+ return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
4209
4174
  }
4210
- ), Ui = (e = {}) => {
4175
+ ), Mi = (e = {}) => {
4211
4176
  var t = e, {
4212
4177
  locale: r = U()
4213
- } = t, n = J(t, [
4178
+ } = t, n = Y(t, [
4214
4179
  "locale"
4215
4180
  ]);
4216
- return Ci(rt({ locale: r }, n));
4217
- }, Gi = (e = {}) => {
4181
+ return Ii(Ye({ locale: r }, n));
4182
+ }, Ci = (e = {}) => {
4218
4183
  var t = e, {
4219
4184
  locale: r = U()
4220
- } = t, n = J(t, [
4185
+ } = t, n = Y(t, [
4221
4186
  "locale"
4222
4187
  ]);
4223
- return $i(rt({ locale: r }, n));
4224
- }, Di = (e = {}) => {
4188
+ return Li(Ye({ locale: r }, n));
4189
+ }, $i = (e = {}) => {
4225
4190
  var t = e, {
4226
4191
  locale: r = U()
4227
- } = t, n = J(t, [
4192
+ } = t, n = Y(t, [
4228
4193
  "locale"
4229
4194
  ]);
4230
- return Ri(rt({ locale: r }, n));
4231
- }, Fi = He(
4195
+ return Ni(Ye({ locale: r }, n));
4196
+ }, Ri = Se(
4232
4197
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4233
- (e, t = U()) => new di(e, t, z().formats, {
4234
- ignoreTag: z().ignoreTag
4198
+ (e, t = U()) => new li(e, t, Z().formats, {
4199
+ ignoreTag: Z().ignoreTag
4235
4200
  })
4236
- ), ji = (e, t = {}) => {
4201
+ ), Ui = (e, t = {}) => {
4237
4202
  var r, n, i, o;
4238
4203
  let s = t;
4239
4204
  typeof e == "object" && (s = e, e = s.id);
@@ -4246,39 +4211,39 @@ const ne = (e, t) => {
4246
4211
  throw new Error(
4247
4212
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4248
4213
  );
4249
- let l = ar(e, h);
4214
+ let l = nr(e, h);
4250
4215
  if (!l)
4251
- l = (o = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4216
+ l = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4252
4217
  else if (typeof l != "string")
4253
4218
  return console.warn(
4254
4219
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4255
4220
  ), l;
4256
4221
  if (!a)
4257
4222
  return l;
4258
- let f = l;
4223
+ let c = l;
4259
4224
  try {
4260
- f = Fi(l, h).format(a);
4261
- } catch (c) {
4262
- c instanceof Error && console.warn(
4225
+ c = Ri(l, h).format(a);
4226
+ } catch (f) {
4227
+ f instanceof Error && console.warn(
4263
4228
  `[svelte-i18n] Message "${e}" has syntax error:`,
4264
- c.message
4229
+ f.message
4265
4230
  );
4266
4231
  }
4267
- return f;
4268
- }, ki = (e, t) => Di(t).format(e), Vi = (e, t) => Gi(t).format(e), Xi = (e, t) => Ui(t).format(e), Wi = (e, t = U()) => ar(e, t), zi = Q([q, ae], () => ji);
4269
- Q([q], () => ki);
4270
- Q([q], () => Vi);
4271
- Q([q], () => Xi);
4272
- Q([q, ae], () => Wi);
4273
- window.emWidgets = { topic: on };
4274
- const Zi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4275
- function Pt(e, t) {
4232
+ return c;
4233
+ }, Di = (e, t) => $i(t).format(e), Gi = (e, t) => Ci(t).format(e), Fi = (e, t) => Mi(t).format(e), ji = (e, t = U()) => nr(e, t), ki = q([J, ae], () => Ui);
4234
+ q([J], () => Di);
4235
+ q([J], () => Gi);
4236
+ q([J], () => Fi);
4237
+ q([J, ae], () => ji);
4238
+ window.emWidgets = { topic: tn };
4239
+ const Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4240
+ function Ht(e, t) {
4276
4241
  if (e) {
4277
4242
  const r = document.createElement("style");
4278
4243
  r.innerHTML = t, e.appendChild(r);
4279
4244
  }
4280
4245
  }
4281
- function Qi(e, t) {
4246
+ function Xi(e, t) {
4282
4247
  const r = new URL(t);
4283
4248
  fetch(r.href).then((n) => n.text()).then((n) => {
4284
4249
  const i = document.createElement("style");
@@ -4287,7 +4252,7 @@ function Qi(e, t) {
4287
4252
  console.error("There was an error while trying to load client styling from URL", n);
4288
4253
  });
4289
4254
  }
4290
- function qi(e, t, r) {
4255
+ function Wi(e, t, r) {
4291
4256
  if (window.emMessageBus) {
4292
4257
  const n = document.createElement("style");
4293
4258
  window.emMessageBus.subscribe(t, (i) => {
@@ -4295,7 +4260,7 @@ function qi(e, t, r) {
4295
4260
  });
4296
4261
  }
4297
4262
  }
4298
- const Ji = (e, t = {}) => {
4263
+ const zi = (e, t = {}) => {
4299
4264
  const r = new CustomEvent("track-custom-event", {
4300
4265
  detail: {
4301
4266
  type: e,
@@ -4306,13 +4271,13 @@ const Ji = (e, t = {}) => {
4306
4271
  });
4307
4272
  document.dispatchEvent(r);
4308
4273
  };
4309
- function Ot(e, t) {
4310
- hr(e, t);
4274
+ function Bt(e, t) {
4275
+ or(e, t);
4311
4276
  }
4312
- function Yi(e) {
4313
- q.set(e);
4277
+ function Zi(e) {
4278
+ J.set(e);
4314
4279
  }
4315
- const It = {
4280
+ const wt = {
4316
4281
  en: {
4317
4282
  logoutButton: "Logout"
4318
4283
  },
@@ -4347,20 +4312,20 @@ const It = {
4347
4312
  logoutButton: "Logout"
4348
4313
  }
4349
4314
  };
4350
- function Ki(e) {
4351
- Sr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
4315
+ function Qi(e) {
4316
+ vr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
4352
4317
  }
4353
- function eo(e) {
4318
+ function qi(e) {
4354
4319
  let t, r, n, i = (
4355
4320
  /*$_*/
4356
4321
  e[2]("logoutButton") + ""
4357
4322
  ), o, s, a;
4358
4323
  return {
4359
4324
  c() {
4360
- t = I("div"), r = I("button"), n = I("span"), o = ve(i), S(t, "class", "GeneralLogout");
4325
+ t = O("div"), r = O("button"), n = O("span"), o = ye(i), S(t, "class", "GeneralLogout");
4361
4326
  },
4362
4327
  m(h, u) {
4363
- oe(h, t, u), T(t, r), T(r, n), T(n, o), s || (a = Ct(
4328
+ se(h, t, u), T(t, r), T(r, n), T(n, o), s || (a = It(
4364
4329
  r,
4365
4330
  "click",
4366
4331
  /*click_handler_1*/
@@ -4370,19 +4335,19 @@ function eo(e) {
4370
4335
  p(h, u) {
4371
4336
  u & /*$_*/
4372
4337
  4 && i !== (i = /*$_*/
4373
- h[2]("logoutButton") + "") && $t(o, i);
4338
+ h[2]("logoutButton") + "") && Lt(o, i);
4374
4339
  },
4375
4340
  d(h) {
4376
- h && Z(t), s = !1, a();
4341
+ h && Q(t), s = !1, a();
4377
4342
  }
4378
4343
  };
4379
4344
  }
4380
- function to(e) {
4381
- let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
4382
- e[3] && ro(e);
4345
+ function Ji(e) {
4346
+ let t, r, n, i, o, s, a, h, u, l, c, f = !/*isMobile*/
4347
+ e[3] && Yi(e);
4383
4348
  return {
4384
4349
  c() {
4385
- t = I("p"), r = I("span"), n = Y("svg"), i = Y("defs"), o = Y("style"), s = ve(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = Y("path"), h = Y("path"), u = Br(), c && c.c(), S(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), S(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), S(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), S(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), S(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), S(n, "data-name", "Layer 1"), S(n, "xmlns", "http://www.w3.org/2000/svg"), S(n, "viewBox", "0 0 150 150"), Ar(r, "width", /*isMobile*/
4350
+ t = O("p"), r = O("span"), n = K("svg"), i = K("defs"), o = K("style"), s = ye(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = K("path"), h = K("path"), u = _r(), f && f.c(), S(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), S(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), S(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), S(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), S(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), S(n, "data-name", "Layer 1"), S(n, "xmlns", "http://www.w3.org/2000/svg"), S(n, "viewBox", "0 0 150 150"), Tr(r, "width", /*isMobile*/
4386
4351
  e[3] ? (
4387
4352
  /*mediaQuery*/
4388
4353
  e[4].matches ? "20px" : "24px"
@@ -4391,60 +4356,60 @@ function to(e) {
4391
4356
  (e[4].matches && /*isMobile*/
4392
4357
  e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
4393
4358
  },
4394
- m(p, d) {
4395
- oe(p, t, d), T(t, r), T(r, n), T(n, i), T(i, o), T(o, s), T(n, a), T(n, h), T(t, u), c && c.m(t, null), l || (f = Ct(
4359
+ m(d, p) {
4360
+ se(d, t, p), T(t, r), T(r, n), T(n, i), T(i, o), T(o, s), T(n, a), T(n, h), T(t, u), f && f.m(t, null), l || (c = It(
4396
4361
  t,
4397
4362
  "click",
4398
4363
  /*click_handler*/
4399
4364
  e[13]
4400
4365
  ), l = !0);
4401
4366
  },
4402
- p(p, d) {
4367
+ p(d, p) {
4403
4368
  /*isMobile*/
4404
- p[3] || c.p(p, d);
4369
+ d[3] || f.p(d, p);
4405
4370
  },
4406
- d(p) {
4407
- p && Z(t), c && c.d(), l = !1, f();
4371
+ d(d) {
4372
+ d && Q(t), f && f.d(), l = !1, c();
4408
4373
  }
4409
4374
  };
4410
4375
  }
4411
- function ro(e) {
4376
+ function Yi(e) {
4412
4377
  let t, r = (
4413
4378
  /*$_*/
4414
4379
  e[2]("logoutButton") + ""
4415
4380
  ), n;
4416
4381
  return {
4417
4382
  c() {
4418
- t = I("span"), n = ve(r), S(t, "class", "PlayerLogoutText");
4383
+ t = O("span"), n = ye(r), S(t, "class", "PlayerLogoutText");
4419
4384
  },
4420
4385
  m(i, o) {
4421
- oe(i, t, o), T(t, n);
4386
+ se(i, t, o), T(t, n);
4422
4387
  },
4423
4388
  p(i, o) {
4424
4389
  o & /*$_*/
4425
4390
  4 && r !== (r = /*$_*/
4426
- i[2]("logoutButton") + "") && $t(n, r);
4391
+ i[2]("logoutButton") + "") && Lt(n, r);
4427
4392
  },
4428
4393
  d(i) {
4429
- i && Z(t);
4394
+ i && Q(t);
4430
4395
  }
4431
4396
  };
4432
4397
  }
4433
- function no(e) {
4398
+ function Ki(e) {
4434
4399
  let t;
4435
4400
  function r(o, s) {
4436
4401
  return (
4437
4402
  /*buttonlocation*/
4438
- o[0] === "PlayerAccountMenu" ? to : eo
4403
+ o[0] === "PlayerAccountMenu" ? Ji : qi
4439
4404
  );
4440
4405
  }
4441
4406
  let n = r(e), i = n(e);
4442
4407
  return {
4443
4408
  c() {
4444
- t = I("div"), i.c();
4409
+ t = O("div"), i.c();
4445
4410
  },
4446
4411
  m(o, s) {
4447
- oe(o, t, s), i.m(t, null), e[15](t);
4412
+ se(o, t, s), i.m(t, null), e[15](t);
4448
4413
  },
4449
4414
  p(o, [s]) {
4450
4415
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
@@ -4452,82 +4417,82 @@ function no(e) {
4452
4417
  i: w,
4453
4418
  o: w,
4454
4419
  d(o) {
4455
- o && Z(t), i.d(), e[15](null);
4420
+ o && Q(t), i.d(), e[15](null);
4456
4421
  }
4457
4422
  };
4458
4423
  }
4459
- function io(e, t, r) {
4424
+ function eo(e, t, r) {
4460
4425
  let n;
4461
- xr(e, zi, (g) => r(2, n = g));
4462
- let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", p = !1, d, y = window.navigator.userAgent, B = Zi(y) !== "PC";
4426
+ yr(e, ki, (y) => r(2, n = y));
4427
+ let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, f = "", d = !1, p, v = window.navigator.userAgent, B = Vi(v) !== "PC";
4463
4428
  const $ = window.matchMedia("(min-width: 768px)"), N = () => {
4464
- fetch(f).then((M) => M.json()).then((M) => {
4465
- Object.keys(M).forEach((Be) => {
4466
- Ot(Be, M[Be]);
4429
+ fetch(c).then((M) => M.json()).then((M) => {
4430
+ Object.keys(M).forEach((Te) => {
4431
+ Bt(Te, M[Te]);
4467
4432
  });
4468
4433
  }).catch((M) => {
4469
4434
  console.log(M);
4470
4435
  });
4471
4436
  };
4472
- Object.keys(It).forEach((g) => {
4473
- Ot(g, It[g]);
4437
+ Object.keys(wt).forEach((y) => {
4438
+ Bt(y, wt[y]);
4474
4439
  });
4475
- const x = () => {
4476
- let g = new Headers();
4477
- g.append("Content-type", "application/json"), g.append("X-SessionID", o);
4478
- let M = { method: "DELETE", headers: g };
4479
- fetch(`${i}/v1/player/session/player`, M).then((Be) => {
4480
- window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), Ji("logged_out", {});
4440
+ const _ = () => {
4441
+ let y = new Headers();
4442
+ y.append("Content-type", "application/json"), y.append("X-SessionID", o);
4443
+ let M = { method: "DELETE", headers: y };
4444
+ fetch(`${i}/v1/player/session/player`, M).then((Te) => {
4445
+ window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), zi("logged_out", {});
4481
4446
  });
4482
- }, R = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", p = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", p = !0, console.error(c)), p), O = () => {
4483
- Yi(a);
4447
+ }, R = () => (i || (f = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", d = !0, console.error(f)), o || (f = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", d = !0, console.error(f)), d), P = () => {
4448
+ Zi(a);
4484
4449
  };
4485
- Ir(() => () => {
4450
+ wr(() => () => {
4486
4451
  });
4487
- const G = () => x(), ue = () => x();
4488
- function mr(g) {
4489
- $e[g ? "unshift" : "push"](() => {
4490
- d = g, r(1, d);
4452
+ const D = () => _(), ue = () => _();
4453
+ function fr(y) {
4454
+ Ne[y ? "unshift" : "push"](() => {
4455
+ p = y, r(1, p);
4491
4456
  });
4492
4457
  }
4493
- return e.$$set = (g) => {
4494
- "endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "buttonlocation" in g && r(0, s = g.buttonlocation), "lang" in g && r(8, a = g.lang), "mbsource" in g && r(9, h = g.mbsource), "clientstyling" in g && r(10, u = g.clientstyling), "clientstylingurl" in g && r(11, l = g.clientstylingurl), "translationurl" in g && r(12, f = g.translationurl);
4458
+ return e.$$set = (y) => {
4459
+ "endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, h = y.mbsource), "clientstyling" in y && r(10, u = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12, c = y.translationurl);
4495
4460
  }, e.$$.update = () => {
4496
4461
  e.$$.dirty & /*endpoint, session, buttonlocation*/
4497
4462
  193 && i && o && s && R(), e.$$.dirty & /*lang*/
4498
- 256 && a && O(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4499
- 1026 && u && d && Pt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4500
- 1026 && u && d && Pt(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4501
- 2050 && l && d && Qi(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4502
- 514 && h && d && qi(d, `${h}.Style`), e.$$.dirty & /*translationurl*/
4503
- 4096 && f && N();
4463
+ 256 && a && P(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4464
+ 1026 && u && p && Ht(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4465
+ 1026 && u && p && Ht(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4466
+ 2050 && l && p && Xi(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
4467
+ 514 && h && p && Wi(p, `${h}.Style`), e.$$.dirty & /*translationurl*/
4468
+ 4096 && c && N();
4504
4469
  }, [
4505
4470
  s,
4506
- d,
4471
+ p,
4507
4472
  n,
4508
4473
  B,
4509
4474
  $,
4510
- x,
4475
+ _,
4511
4476
  i,
4512
4477
  o,
4513
4478
  a,
4514
4479
  h,
4515
4480
  u,
4516
4481
  l,
4517
- f,
4518
- G,
4482
+ c,
4483
+ D,
4519
4484
  ue,
4520
- mr
4485
+ fr
4521
4486
  ];
4522
4487
  }
4523
- class dr extends kr {
4488
+ class lr extends Dr {
4524
4489
  constructor(t) {
4525
- super(), Fr(
4490
+ super(), Rr(
4526
4491
  this,
4527
4492
  t,
4528
- io,
4529
- no,
4530
- Nt,
4493
+ eo,
4494
+ Ki,
4495
+ Pt,
4531
4496
  {
4532
4497
  endpoint: 6,
4533
4498
  session: 7,
@@ -4538,7 +4503,7 @@ class dr extends kr {
4538
4503
  clientstylingurl: 11,
4539
4504
  translationurl: 12
4540
4505
  },
4541
- Ki
4506
+ Qi
4542
4507
  );
4543
4508
  }
4544
4509
  get endpoint() {
@@ -4590,43 +4555,43 @@ class dr extends kr {
4590
4555
  this.$$set({ translationurl: t }), A();
4591
4556
  }
4592
4557
  }
4593
- jr(dr, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4594
- const lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4558
+ Ur(lr, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4559
+ const so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4595
4560
  __proto__: null,
4596
- default: dr
4561
+ default: lr
4597
4562
  }, Symbol.toStringTag, { value: "Module" }));
4598
4563
  export {
4599
- q as $,
4600
- zi as A,
4601
- Pt as B,
4602
- Qi as C,
4603
- qi as D,
4604
- lo as G,
4605
- kr as S,
4606
- hr as a,
4607
- Sr as b,
4608
- jr as c,
4609
- Z as d,
4610
- oe as e,
4564
+ J as $,
4565
+ It as A,
4566
+ oe as B,
4567
+ ro as C,
4568
+ ki as D,
4569
+ so as G,
4570
+ Dr as S,
4571
+ or as a,
4572
+ vr as b,
4573
+ Ur as c,
4574
+ se as d,
4575
+ O as e,
4611
4576
  A as f,
4612
- I as g,
4613
- xr as h,
4614
- Fr as i,
4615
- Zi as j,
4616
- $e as k,
4617
- ho as l,
4618
- ao as m,
4577
+ Q as g,
4578
+ yr as h,
4579
+ Rr as i,
4580
+ Vi as j,
4581
+ Ne as k,
4582
+ Ht as l,
4583
+ Xi as m,
4619
4584
  w as n,
4620
- Ir as o,
4621
- T as p,
4622
- Br as q,
4623
- uo as r,
4624
- Nt as s,
4625
- S as t,
4626
- $t as u,
4627
- ve as v,
4628
- ie as w,
4629
- Ct as x,
4630
- Y as y,
4631
- so as z
4585
+ wr as o,
4586
+ Wi as p,
4587
+ oo as q,
4588
+ _r as r,
4589
+ Pt as s,
4590
+ ye as t,
4591
+ S as u,
4592
+ T as v,
4593
+ Lt as w,
4594
+ no as x,
4595
+ io as y,
4596
+ K as z
4632
4597
  };