@everymatrix/player-account-menu 1.54.0 → 1.54.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,79 +1,50 @@
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
- for (var r in t || (t = {}))
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
- return e;
12
- }, tt = (e, t) => dr(e, pr(t));
13
- var H = (e, t, r) => He(e, typeof t != "symbol" ? t + "" : t, r);
14
- var rt = (e, t, r) => new Promise((n, i) => {
15
- var o = (h) => {
16
- try {
17
- a(r.next(h));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, s = (h) => {
22
- try {
23
- a(r.throw(h));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
28
- a((r = r.apply(e, t)).next());
29
- });
30
- function w() {
1
+ function A() {
31
2
  }
32
- function At(e) {
3
+ function xt(e) {
33
4
  return e();
34
5
  }
35
- function nt() {
6
+ function Je() {
36
7
  return /* @__PURE__ */ Object.create(null);
37
8
  }
38
- function se(e) {
39
- e.forEach(At);
9
+ function oe(e) {
10
+ e.forEach(xt);
40
11
  }
41
- function Qe(e) {
12
+ function ze(e) {
42
13
  return typeof e == "function";
43
14
  }
44
- function wt(e, t) {
15
+ function Et(e, t) {
45
16
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
17
  }
47
- let le;
48
- function Yi(e, t) {
49
- return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
18
+ let he;
19
+ function Di(e, t) {
20
+ return e === t ? !0 : (he || (he = document.createElement("a")), he.href = t, e === he.href);
50
21
  }
51
- function gr(e) {
22
+ function sr(e) {
52
23
  return Object.keys(e).length === 0;
53
24
  }
54
- function Pt(e, ...t) {
25
+ function St(e, ...t) {
55
26
  if (e == null) {
56
27
  for (const n of t)
57
28
  n(void 0);
58
- return w;
29
+ return A;
59
30
  }
60
31
  const r = e.subscribe(...t);
61
32
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
33
  }
63
- function yr(e, t, r) {
64
- e.$$.on_destroy.push(Pt(t, r));
34
+ function ar(e, t, r) {
35
+ e.$$.on_destroy.push(St(t, r));
65
36
  }
66
37
  function S(e, t) {
67
38
  e.appendChild(t);
68
39
  }
69
- function vr(e, t, r) {
70
- const n = xr(e);
40
+ function ur(e, t, r) {
41
+ const n = hr(e);
71
42
  if (!n.getElementById(t)) {
72
- const i = L("style");
73
- i.id = t, i.textContent = r, Er(n, i);
43
+ const i = I("style");
44
+ i.id = t, i.textContent = r, lr(n, i);
74
45
  }
75
46
  }
76
- function xr(e) {
47
+ function hr(e) {
77
48
  if (!e) return document;
78
49
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
79
50
  return t && /** @type {ShadowRoot} */
@@ -82,56 +53,56 @@ function xr(e) {
82
53
  t
83
54
  ) : e.ownerDocument;
84
55
  }
85
- function Er(e, t) {
56
+ function lr(e, t) {
86
57
  return S(
87
58
  /** @type {Document} */
88
59
  e.head || e,
89
60
  t
90
61
  ), t.sheet;
91
62
  }
92
- function ae(e, t, r) {
63
+ function se(e, t, r) {
93
64
  e.insertBefore(t, r || null);
94
65
  }
95
- function q(e) {
66
+ function Q(e) {
96
67
  e.parentNode && e.parentNode.removeChild(e);
97
68
  }
98
- function Ki(e, t) {
69
+ function Fi(e, t) {
99
70
  for (let r = 0; r < e.length; r += 1)
100
71
  e[r] && e[r].d(t);
101
72
  }
102
- function L(e) {
73
+ function I(e) {
103
74
  return document.createElement(e);
104
75
  }
105
- function ee(e) {
76
+ function K(e) {
106
77
  return document.createElementNS("http://www.w3.org/2000/svg", e);
107
78
  }
108
- function ve(e) {
79
+ function ye(e) {
109
80
  return document.createTextNode(e);
110
81
  }
111
- function _r() {
112
- return ve(" ");
82
+ function fr() {
83
+ return ye(" ");
113
84
  }
114
- function Ot(e, t, r, n) {
85
+ function Tt(e, t, r, n) {
115
86
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
116
87
  }
117
- function _(e, t, r) {
88
+ function E(e, t, r) {
118
89
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
119
90
  }
120
- function eo(e, t, r) {
91
+ function ji(e, t, r) {
121
92
  const n = t.toLowerCase();
122
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : _(e, t, r);
93
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : E(e, t, r);
123
94
  }
124
- function Sr(e) {
95
+ function cr(e) {
125
96
  return Array.from(e.childNodes);
126
97
  }
127
- function It(e, t) {
98
+ function Ht(e, t) {
128
99
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
129
100
  t);
130
101
  }
131
- function Tr(e, t, r, n) {
102
+ function dr(e, t, r, n) {
132
103
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
133
104
  }
134
- function Hr(e) {
105
+ function pr(e) {
135
106
  const t = {};
136
107
  return e.childNodes.forEach(
137
108
  /** @param {Element} node */
@@ -140,96 +111,96 @@ function Hr(e) {
140
111
  }
141
112
  ), t;
142
113
  }
143
- let ne;
144
- function re(e) {
145
- ne = e;
114
+ let re;
115
+ function te(e) {
116
+ re = e;
146
117
  }
147
- function Br() {
148
- if (!ne) throw new Error("Function called outside component initialization");
149
- return ne;
118
+ function mr() {
119
+ if (!re) throw new Error("Function called outside component initialization");
120
+ return re;
150
121
  }
151
- function to(e) {
152
- Br().$$.on_mount.push(e);
122
+ function ki(e) {
123
+ mr().$$.on_mount.push(e);
153
124
  }
154
- const k = [], Ne = [];
155
- let V = [];
156
- const it = [], Ar = /* @__PURE__ */ Promise.resolve();
157
- let Me = !1;
158
- function wr() {
159
- Me || (Me = !0, Ar.then(I));
125
+ const j = [], Ie = [];
126
+ let k = [];
127
+ const Ye = [], br = /* @__PURE__ */ Promise.resolve();
128
+ let Le = !1;
129
+ function gr() {
130
+ Le || (Le = !0, br.then(O));
160
131
  }
161
- function Ce(e) {
162
- V.push(e);
132
+ function Ne(e) {
133
+ k.push(e);
163
134
  }
164
- const Be = /* @__PURE__ */ new Set();
165
- let F = 0;
166
- function I() {
167
- if (F !== 0)
135
+ const Te = /* @__PURE__ */ new Set();
136
+ let D = 0;
137
+ function O() {
138
+ if (D !== 0)
168
139
  return;
169
- const e = ne;
140
+ const e = re;
170
141
  do {
171
142
  try {
172
- for (; F < k.length; ) {
173
- const t = k[F];
174
- F++, re(t), Pr(t.$$);
143
+ for (; D < j.length; ) {
144
+ const t = j[D];
145
+ D++, te(t), yr(t.$$);
175
146
  }
176
147
  } catch (t) {
177
- throw k.length = 0, F = 0, t;
148
+ throw j.length = 0, D = 0, t;
178
149
  }
179
- for (re(null), k.length = 0, F = 0; Ne.length; ) Ne.pop()();
180
- for (let t = 0; t < V.length; t += 1) {
181
- const r = V[t];
182
- Be.has(r) || (Be.add(r), r());
150
+ for (te(null), j.length = 0, D = 0; Ie.length; ) Ie.pop()();
151
+ for (let t = 0; t < k.length; t += 1) {
152
+ const r = k[t];
153
+ Te.has(r) || (Te.add(r), r());
183
154
  }
184
- V.length = 0;
185
- } while (k.length);
186
- for (; it.length; )
187
- it.pop()();
188
- Me = !1, Be.clear(), re(e);
155
+ k.length = 0;
156
+ } while (j.length);
157
+ for (; Ye.length; )
158
+ Ye.pop()();
159
+ Le = !1, Te.clear(), te(e);
189
160
  }
190
- function Pr(e) {
161
+ function yr(e) {
191
162
  if (e.fragment !== null) {
192
- e.update(), se(e.before_update);
163
+ e.update(), oe(e.before_update);
193
164
  const t = e.dirty;
194
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ce);
165
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
195
166
  }
196
167
  }
197
- function Or(e) {
168
+ function vr(e) {
198
169
  const t = [], r = [];
199
- V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
170
+ k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
200
171
  }
201
- const Ir = /* @__PURE__ */ new Set();
202
- function Lr(e, t) {
203
- e && e.i && (Ir.delete(e), e.i(t));
172
+ const _r = /* @__PURE__ */ new Set();
173
+ function xr(e, t) {
174
+ e && e.i && (_r.delete(e), e.i(t));
204
175
  }
205
- function ro(e) {
206
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
176
+ function Vi(e) {
177
+ return e?.length !== void 0 ? e : Array.from(e);
207
178
  }
208
- function Nr(e, t, r) {
179
+ function Er(e, t, r) {
209
180
  const { fragment: n, after_update: i } = e.$$;
210
- n && n.m(t, r), Ce(() => {
211
- const o = e.$$.on_mount.map(At).filter(Qe);
212
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
213
- }), i.forEach(Ce);
181
+ n && n.m(t, r), Ne(() => {
182
+ const o = e.$$.on_mount.map(xt).filter(ze);
183
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
184
+ }), i.forEach(Ne);
214
185
  }
215
- function Mr(e, t) {
186
+ function Sr(e, t) {
216
187
  const r = e.$$;
217
- r.fragment !== null && (Or(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
188
+ r.fragment !== null && (vr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
218
189
  }
219
- function Cr(e, t) {
220
- e.$$.dirty[0] === -1 && (k.push(e), wr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
190
+ function Tr(e, t) {
191
+ e.$$.dirty[0] === -1 && (j.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
221
192
  }
222
- function $r(e, t, r, n, i, o, s = null, a = [-1]) {
223
- const h = ne;
224
- re(e);
193
+ function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
194
+ const h = re;
195
+ te(e);
225
196
  const u = e.$$ = {
226
197
  fragment: null,
227
198
  ctx: [],
228
199
  // state
229
200
  props: o,
230
- update: w,
201
+ update: A,
231
202
  not_equal: i,
232
- bound: nt(),
203
+ bound: Je(),
233
204
  // lifecycle
234
205
  on_mount: [],
235
206
  on_destroy: [],
@@ -238,7 +209,7 @@ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
238
209
  after_update: [],
239
210
  context: new Map(t.context || (h ? h.$$.context : [])),
240
211
  // everything else
241
- callbacks: nt(),
212
+ callbacks: Je(),
242
213
  dirty: a,
243
214
  skip_bound: !1,
244
215
  root: t.target || h.$$.root
@@ -247,141 +218,137 @@ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
247
218
  let l = !1;
248
219
  if (u.ctx = r ? r(e, t.props || {}, (c, f, ...d) => {
249
220
  const y = d.length ? d[0] : f;
250
- return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && Cr(e, c)), f;
251
- }) : [], u.update(), l = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
221
+ return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), l && Tr(e, c)), f;
222
+ }) : [], u.update(), l = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
252
223
  if (t.hydrate) {
253
- const c = Sr(t.target);
254
- u.fragment && u.fragment.l(c), c.forEach(q);
224
+ const c = cr(t.target);
225
+ u.fragment && u.fragment.l(c), c.forEach(Q);
255
226
  } else
256
227
  u.fragment && u.fragment.c();
257
- t.intro && Lr(e.$$.fragment), Nr(e, t.target, t.anchor), I();
228
+ t.intro && xr(e.$$.fragment), Er(e, t.target, t.anchor), O();
258
229
  }
259
- re(h);
260
- }
261
- let Lt;
262
- typeof HTMLElement == "function" && (Lt = class extends HTMLElement {
263
- constructor(t, r, n) {
264
- super();
265
- /** The Svelte component constructor */
266
- H(this, "$$ctor");
267
- /** Slots */
268
- H(this, "$$s");
269
- /** The Svelte component instance */
270
- H(this, "$$c");
271
- /** Whether or not the custom element is connected */
272
- H(this, "$$cn", !1);
273
- /** Component props data */
274
- H(this, "$$d", {});
275
- /** `true` if currently in the process of reflecting component props back to attributes */
276
- H(this, "$$r", !1);
277
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
278
- H(this, "$$p_d", {});
279
- /** @type {Record<string, Function[]>} Event listeners */
280
- H(this, "$$l", {});
281
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
282
- H(this, "$$l_u", /* @__PURE__ */ new Map());
283
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
230
+ te(h);
231
+ }
232
+ let Bt;
233
+ typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
234
+ /** The Svelte component constructor */
235
+ $$ctor;
236
+ /** Slots */
237
+ $$s;
238
+ /** The Svelte component instance */
239
+ $$c;
240
+ /** Whether or not the custom element is connected */
241
+ $$cn = !1;
242
+ /** Component props data */
243
+ $$d = {};
244
+ /** `true` if currently in the process of reflecting component props back to attributes */
245
+ $$r = !1;
246
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
247
+ $$p_d = {};
248
+ /** @type {Record<string, Function[]>} Event listeners */
249
+ $$l = {};
250
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
251
+ $$l_u = /* @__PURE__ */ new Map();
252
+ constructor(e, t, r) {
253
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
284
254
  }
285
- addEventListener(t, r, n) {
286
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
287
- const i = this.$$c.$on(t, r);
288
- this.$$l_u.set(r, i);
255
+ addEventListener(e, t, r) {
256
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
257
+ const n = this.$$c.$on(e, t);
258
+ this.$$l_u.set(t, n);
289
259
  }
290
- super.addEventListener(t, r, n);
260
+ super.addEventListener(e, t, r);
291
261
  }
292
- removeEventListener(t, r, n) {
293
- if (super.removeEventListener(t, r, n), this.$$c) {
294
- const i = this.$$l_u.get(r);
295
- i && (i(), this.$$l_u.delete(r));
262
+ removeEventListener(e, t, r) {
263
+ if (super.removeEventListener(e, t, r), this.$$c) {
264
+ const n = this.$$l_u.get(t);
265
+ n && (n(), this.$$l_u.delete(t));
296
266
  }
297
267
  }
298
- connectedCallback() {
299
- return rt(this, null, function* () {
300
- if (this.$$cn = !0, !this.$$c) {
301
- let t = function(o) {
302
- return () => {
303
- let s;
304
- return {
305
- c: function() {
306
- s = L("slot"), o !== "default" && _(s, "name", o);
307
- },
308
- /**
309
- * @param {HTMLElement} target
310
- * @param {HTMLElement} [anchor]
311
- */
312
- m: function(u, l) {
313
- ae(u, s, l);
314
- },
315
- d: function(u) {
316
- u && q(s);
317
- }
318
- };
268
+ async connectedCallback() {
269
+ if (this.$$cn = !0, !this.$$c) {
270
+ let e = function(i) {
271
+ return () => {
272
+ let o;
273
+ return {
274
+ c: function() {
275
+ o = I("slot"), i !== "default" && E(o, "name", i);
276
+ },
277
+ /**
278
+ * @param {HTMLElement} target
279
+ * @param {HTMLElement} [anchor]
280
+ */
281
+ m: function(h, u) {
282
+ se(h, o, u);
283
+ },
284
+ d: function(h) {
285
+ h && Q(o);
286
+ }
319
287
  };
320
288
  };
321
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
322
- return;
323
- const r = {}, n = Hr(this);
324
- for (const o of this.$$s)
325
- o in n && (r[o] = [t(o)]);
326
- for (const o of this.attributes) {
327
- const s = this.$$g_p(o.name);
328
- s in this.$$d || (this.$$d[s] = de(s, o.value, this.$$p_d, "toProp"));
289
+ };
290
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
291
+ return;
292
+ const t = {}, r = pr(this);
293
+ for (const i of this.$$s)
294
+ i in r && (t[i] = [e(i)]);
295
+ for (const i of this.attributes) {
296
+ const o = this.$$g_p(i.name);
297
+ o in this.$$d || (this.$$d[o] = ce(o, i.value, this.$$p_d, "toProp"));
298
+ }
299
+ for (const i in this.$$p_d)
300
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
301
+ this.$$c = new this.$$ctor({
302
+ target: this.shadowRoot || this,
303
+ props: {
304
+ ...this.$$d,
305
+ $$slots: t,
306
+ $$scope: {
307
+ ctx: []
308
+ }
329
309
  }
330
- for (const o in this.$$p_d)
331
- !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
332
- this.$$c = new this.$$ctor({
333
- target: this.shadowRoot || this,
334
- props: tt(et({}, this.$$d), {
335
- $$slots: r,
336
- $$scope: {
337
- ctx: []
338
- }
339
- })
340
- });
341
- const i = () => {
342
- this.$$r = !0;
343
- for (const o in this.$$p_d)
344
- if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
345
- const s = de(
346
- o,
347
- this.$$d[o],
348
- this.$$p_d,
349
- "toAttribute"
350
- );
351
- s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
352
- }
353
- this.$$r = !1;
354
- };
355
- this.$$c.$$.after_update.push(i), i();
356
- for (const o in this.$$l)
357
- for (const s of this.$$l[o]) {
358
- const a = this.$$c.$on(o, s);
359
- this.$$l_u.set(s, a);
310
+ });
311
+ const n = () => {
312
+ this.$$r = !0;
313
+ for (const i in this.$$p_d)
314
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
315
+ const o = ce(
316
+ i,
317
+ this.$$d[i],
318
+ this.$$p_d,
319
+ "toAttribute"
320
+ );
321
+ o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
360
322
  }
361
- this.$$l = {};
362
- }
363
- });
323
+ this.$$r = !1;
324
+ };
325
+ this.$$c.$$.after_update.push(n), n();
326
+ for (const i in this.$$l)
327
+ for (const o of this.$$l[i]) {
328
+ const s = this.$$c.$on(i, o);
329
+ this.$$l_u.set(o, s);
330
+ }
331
+ this.$$l = {};
332
+ }
364
333
  }
365
334
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
366
335
  // and setting attributes through setAttribute etc, this is helpful
367
- attributeChangedCallback(t, r, n) {
368
- var i;
369
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = de(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
336
+ attributeChangedCallback(e, t, r) {
337
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ce(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
370
338
  }
371
339
  disconnectedCallback() {
372
340
  this.$$cn = !1, Promise.resolve().then(() => {
373
341
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
374
342
  });
375
343
  }
376
- $$g_p(t) {
344
+ $$g_p(e) {
377
345
  return Object.keys(this.$$p_d).find(
378
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
379
- ) || t;
346
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
347
+ ) || e;
380
348
  }
381
349
  });
382
- function de(e, t, r, n) {
383
- var o;
384
- const i = (o = r[e]) == null ? void 0 : o.type;
350
+ function ce(e, t, r, n) {
351
+ const i = r[e]?.type;
385
352
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
386
353
  return t;
387
354
  if (n === "toAttribute")
@@ -392,7 +359,7 @@ function de(e, t, r, n) {
392
359
  case "Boolean":
393
360
  return t ? "" : null;
394
361
  case "Number":
395
- return t == null ? null : t;
362
+ return t ?? null;
396
363
  default:
397
364
  return t;
398
365
  }
@@ -409,8 +376,8 @@ function de(e, t, r, n) {
409
376
  return t;
410
377
  }
411
378
  }
412
- function Rr(e, t, r, n, i, o) {
413
- let s = class extends Lt {
379
+ function Br(e, t, r, n, i, o) {
380
+ let s = class extends Bt {
414
381
  constructor() {
415
382
  super(e, r, i), this.$$p_d = t;
416
383
  }
@@ -426,42 +393,38 @@ function Rr(e, t, r, n, i, o) {
426
393
  return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
427
394
  },
428
395
  set(h) {
429
- var u;
430
- h = de(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
396
+ h = ce(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
431
397
  }
432
398
  });
433
399
  }), n.forEach((a) => {
434
400
  Object.defineProperty(s.prototype, a, {
435
401
  get() {
436
- var h;
437
- return (h = this.$$c) == null ? void 0 : h[a];
402
+ return this.$$c?.[a];
438
403
  }
439
404
  });
440
405
  }), e.element = /** @type {any} */
441
406
  s, s;
442
407
  }
443
- class Ur {
444
- constructor() {
445
- /**
446
- * ### PRIVATE API
447
- *
448
- * Do not use, may change at any time
449
- *
450
- * @type {any}
451
- */
452
- H(this, "$$");
453
- /**
454
- * ### PRIVATE API
455
- *
456
- * Do not use, may change at any time
457
- *
458
- * @type {any}
459
- */
460
- H(this, "$$set");
461
- }
408
+ class Ar {
409
+ /**
410
+ * ### PRIVATE API
411
+ *
412
+ * Do not use, may change at any time
413
+ *
414
+ * @type {any}
415
+ */
416
+ $$ = void 0;
417
+ /**
418
+ * ### PRIVATE API
419
+ *
420
+ * Do not use, may change at any time
421
+ *
422
+ * @type {any}
423
+ */
424
+ $$set = void 0;
462
425
  /** @returns {void} */
463
426
  $destroy() {
464
- Mr(this, 1), this.$destroy = w;
427
+ Sr(this, 1), this.$destroy = A;
465
428
  }
466
429
  /**
467
430
  * @template {Extract<keyof Events, string>} K
@@ -470,8 +433,8 @@ class Ur {
470
433
  * @returns {() => void}
471
434
  */
472
435
  $on(t, r) {
473
- if (!Qe(r))
474
- return w;
436
+ if (!ze(r))
437
+ return A;
475
438
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
476
439
  return n.push(r), () => {
477
440
  const i = n.indexOf(r);
@@ -483,22 +446,22 @@ class Ur {
483
446
  * @returns {void}
484
447
  */
485
448
  $set(t) {
486
- this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
449
+ this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
487
450
  }
488
451
  }
489
- const Gr = "4";
490
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gr);
491
- var $e = function(e, t) {
492
- return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
452
+ const wr = "4";
453
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
454
+ var Me = function(e, t) {
455
+ return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
493
456
  r.__proto__ = n;
494
457
  } || function(r, n) {
495
458
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
496
- }, $e(e, t);
459
+ }, Me(e, t);
497
460
  };
498
- function M(e, t) {
461
+ function N(e, t) {
499
462
  if (typeof t != "function" && t !== null)
500
463
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
501
- $e(e, t);
464
+ Me(e, t);
502
465
  function r() {
503
466
  this.constructor = e;
504
467
  }
@@ -513,7 +476,7 @@ var g = function() {
513
476
  return t;
514
477
  }, g.apply(this, arguments);
515
478
  };
516
- function Dr(e, t) {
479
+ function Pr(e, t) {
517
480
  var r = {};
518
481
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
519
482
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -521,7 +484,7 @@ function Dr(e, t) {
521
484
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
522
485
  return r;
523
486
  }
524
- function Re(e) {
487
+ function Ce(e) {
525
488
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
526
489
  if (r) return r.call(e);
527
490
  if (e && typeof e.length == "number") return {
@@ -531,7 +494,7 @@ function Re(e) {
531
494
  };
532
495
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
533
496
  }
534
- function Ue(e, t) {
497
+ function $e(e, t) {
535
498
  var r = typeof Symbol == "function" && e[Symbol.iterator];
536
499
  if (!r) return e;
537
500
  var n = r.call(e), i, o = [], s;
@@ -548,21 +511,21 @@ function Ue(e, t) {
548
511
  }
549
512
  return o;
550
513
  }
551
- function X(e, t, r) {
514
+ function V(e, t, r) {
552
515
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
553
516
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
554
517
  return e.concat(o || Array.prototype.slice.call(t));
555
518
  }
556
- function N(e) {
519
+ function L(e) {
557
520
  return typeof e == "function";
558
521
  }
559
- function Nt(e) {
522
+ function At(e) {
560
523
  var t = function(n) {
561
524
  Error.call(n), n.stack = new Error().stack;
562
525
  }, r = e(t);
563
526
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
564
527
  }
565
- var Ae = Nt(function(e) {
528
+ var He = At(function(e) {
566
529
  return function(r) {
567
530
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
568
531
  ` + r.map(function(n, i) {
@@ -571,13 +534,13 @@ var Ae = Nt(function(e) {
571
534
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
572
535
  };
573
536
  });
574
- function Ge(e, t) {
537
+ function Re(e, t) {
575
538
  if (e) {
576
539
  var r = e.indexOf(t);
577
540
  0 <= r && e.splice(r, 1);
578
541
  }
579
542
  }
580
- var xe = function() {
543
+ var ve = function() {
581
544
  function e(t) {
582
545
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
583
546
  }
@@ -589,7 +552,7 @@ var xe = function() {
589
552
  if (s)
590
553
  if (this._parentage = null, Array.isArray(s))
591
554
  try {
592
- for (var a = Re(s), h = a.next(); !h.done; h = a.next()) {
555
+ for (var a = Ce(s), h = a.next(); !h.done; h = a.next()) {
593
556
  var u = h.value;
594
557
  u.remove(this);
595
558
  }
@@ -605,22 +568,22 @@ var xe = function() {
605
568
  else
606
569
  s.remove(this);
607
570
  var l = this.initialTeardown;
608
- if (N(l))
571
+ if (L(l))
609
572
  try {
610
573
  l();
611
574
  } catch (v) {
612
- o = v instanceof Ae ? v.errors : [v];
575
+ o = v instanceof He ? v.errors : [v];
613
576
  }
614
577
  var c = this._finalizers;
615
578
  if (c) {
616
579
  this._finalizers = null;
617
580
  try {
618
- for (var f = Re(c), d = f.next(); !d.done; d = f.next()) {
581
+ for (var f = Ce(c), d = f.next(); !d.done; d = f.next()) {
619
582
  var y = d.value;
620
583
  try {
621
- ot(y);
584
+ Ke(y);
622
585
  } catch (v) {
623
- o = o != null ? o : [], v instanceof Ae ? o = X(X([], Ue(o)), Ue(v.errors)) : o.push(v);
586
+ o = o ?? [], v instanceof He ? o = V(V([], $e(o)), $e(v.errors)) : o.push(v);
624
587
  }
625
588
  }
626
589
  } catch (v) {
@@ -634,13 +597,13 @@ var xe = function() {
634
597
  }
635
598
  }
636
599
  if (o)
637
- throw new Ae(o);
600
+ throw new He(o);
638
601
  }
639
602
  }, e.prototype.add = function(t) {
640
603
  var r;
641
604
  if (t && t !== this)
642
605
  if (this.closed)
643
- ot(t);
606
+ Ke(t);
644
607
  else {
645
608
  if (t instanceof e) {
646
609
  if (t.closed || t._hasParent(this))
@@ -657,56 +620,56 @@ var xe = function() {
657
620
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
658
621
  }, e.prototype._removeParent = function(t) {
659
622
  var r = this._parentage;
660
- r === t ? this._parentage = null : Array.isArray(r) && Ge(r, t);
623
+ r === t ? this._parentage = null : Array.isArray(r) && Re(r, t);
661
624
  }, e.prototype.remove = function(t) {
662
625
  var r = this._finalizers;
663
- r && Ge(r, t), t instanceof e && t._removeParent(this);
626
+ r && Re(r, t), t instanceof e && t._removeParent(this);
664
627
  }, e.EMPTY = function() {
665
628
  var t = new e();
666
629
  return t.closed = !0, t;
667
630
  }(), e;
668
- }(), Mt = xe.EMPTY;
669
- function Ct(e) {
670
- return e instanceof xe || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
631
+ }(), wt = ve.EMPTY;
632
+ function Pt(e) {
633
+ return e instanceof ve || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
671
634
  }
672
- function ot(e) {
673
- N(e) ? e() : e.unsubscribe();
635
+ function Ke(e) {
636
+ L(e) ? e() : e.unsubscribe();
674
637
  }
675
- var Fr = {
638
+ var Or = {
676
639
  onUnhandledError: null,
677
640
  onStoppedNotification: null,
678
641
  Promise: void 0,
679
642
  useDeprecatedSynchronousErrorHandling: !1,
680
643
  useDeprecatedNextContext: !1
681
- }, jr = {
644
+ }, Ir = {
682
645
  setTimeout: function(e, t) {
683
646
  for (var r = [], n = 2; n < arguments.length; n++)
684
647
  r[n - 2] = arguments[n];
685
- return setTimeout.apply(void 0, X([e, t], Ue(r)));
648
+ return setTimeout.apply(void 0, V([e, t], $e(r)));
686
649
  },
687
650
  clearTimeout: function(e) {
688
651
  return clearTimeout(e);
689
652
  },
690
653
  delegate: void 0
691
654
  };
692
- function kr(e) {
693
- jr.setTimeout(function() {
655
+ function Lr(e) {
656
+ Ir.setTimeout(function() {
694
657
  throw e;
695
658
  });
696
659
  }
697
- function st() {
660
+ function et() {
698
661
  }
699
- function pe(e) {
662
+ function de(e) {
700
663
  e();
701
664
  }
702
- var $t = function(e) {
703
- M(t, e);
665
+ var Ot = function(e) {
666
+ N(t, e);
704
667
  function t(r) {
705
668
  var n = e.call(this) || this;
706
- return n.isStopped = !1, r ? (n.destination = r, Ct(r) && r.add(n)) : n.destination = Wr, n;
669
+ return n.isStopped = !1, r ? (n.destination = r, Pt(r) && r.add(n)) : n.destination = Cr, n;
707
670
  }
708
671
  return t.create = function(r, n, i) {
709
- return new De(r, n, i);
672
+ return new Ue(r, n, i);
710
673
  }, t.prototype.next = function(r) {
711
674
  this.isStopped || this._next(r);
712
675
  }, t.prototype.error = function(r) {
@@ -730,7 +693,7 @@ var $t = function(e) {
730
693
  this.unsubscribe();
731
694
  }
732
695
  }, t;
733
- }(xe), Vr = function() {
696
+ }(ve), Nr = function() {
734
697
  function e(t) {
735
698
  this.partialObserver = t;
736
699
  }
@@ -740,7 +703,7 @@ var $t = function(e) {
740
703
  try {
741
704
  r.next(t);
742
705
  } catch (n) {
743
- fe(n);
706
+ le(n);
744
707
  }
745
708
  }, e.prototype.error = function(t) {
746
709
  var r = this.partialObserver;
@@ -748,56 +711,56 @@ var $t = function(e) {
748
711
  try {
749
712
  r.error(t);
750
713
  } catch (n) {
751
- fe(n);
714
+ le(n);
752
715
  }
753
716
  else
754
- fe(t);
717
+ le(t);
755
718
  }, e.prototype.complete = function() {
756
719
  var t = this.partialObserver;
757
720
  if (t.complete)
758
721
  try {
759
722
  t.complete();
760
723
  } catch (r) {
761
- fe(r);
724
+ le(r);
762
725
  }
763
726
  }, e;
764
- }(), De = function(e) {
765
- M(t, e);
727
+ }(), Ue = function(e) {
728
+ N(t, e);
766
729
  function t(r, n, i) {
767
730
  var o = e.call(this) || this, s;
768
- return N(r) || !r ? s = {
769
- next: r != null ? r : void 0,
770
- error: n != null ? n : void 0,
771
- complete: i != null ? i : void 0
772
- } : s = r, o.destination = new Vr(s), o;
731
+ return L(r) || !r ? s = {
732
+ next: r ?? void 0,
733
+ error: n ?? void 0,
734
+ complete: i ?? void 0
735
+ } : s = r, o.destination = new Nr(s), o;
773
736
  }
774
737
  return t;
775
- }($t);
776
- function fe(e) {
777
- kr(e);
738
+ }(Ot);
739
+ function le(e) {
740
+ Lr(e);
778
741
  }
779
- function Xr(e) {
742
+ function Mr(e) {
780
743
  throw e;
781
744
  }
782
- var Wr = {
745
+ var Cr = {
783
746
  closed: !0,
784
- next: st,
785
- error: Xr,
786
- complete: st
787
- }, zr = function() {
747
+ next: et,
748
+ error: Mr,
749
+ complete: et
750
+ }, $r = function() {
788
751
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
789
752
  }();
790
- function Zr(e) {
753
+ function Rr(e) {
791
754
  return e;
792
755
  }
793
- function Qr(e) {
794
- return e.length === 0 ? Zr : e.length === 1 ? e[0] : function(r) {
756
+ function Ur(e) {
757
+ return e.length === 0 ? Rr : e.length === 1 ? e[0] : function(r) {
795
758
  return e.reduce(function(n, i) {
796
759
  return i(n);
797
760
  }, r);
798
761
  };
799
762
  }
800
- var at = function() {
763
+ var tt = function() {
801
764
  function e(t) {
802
765
  t && (this._subscribe = t);
803
766
  }
@@ -805,8 +768,8 @@ var at = function() {
805
768
  var r = new e();
806
769
  return r.source = this, r.operator = t, r;
807
770
  }, e.prototype.subscribe = function(t, r, n) {
808
- var i = this, o = Jr(t) ? t : new De(t, r, n);
809
- return pe(function() {
771
+ var i = this, o = Dr(t) ? t : new Ue(t, r, n);
772
+ return de(function() {
810
773
  var s = i, a = s.operator, h = s.source;
811
774
  o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
812
775
  }), o;
@@ -818,8 +781,8 @@ var at = function() {
818
781
  }
819
782
  }, e.prototype.forEach = function(t, r) {
820
783
  var n = this;
821
- return r = ut(r), new r(function(i, o) {
822
- var s = new De({
784
+ return r = rt(r), new r(function(i, o) {
785
+ var s = new Ue({
823
786
  next: function(a) {
824
787
  try {
825
788
  t(a);
@@ -835,15 +798,15 @@ var at = function() {
835
798
  }, e.prototype._subscribe = function(t) {
836
799
  var r;
837
800
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
838
- }, e.prototype[zr] = function() {
801
+ }, e.prototype[$r] = function() {
839
802
  return this;
840
803
  }, e.prototype.pipe = function() {
841
804
  for (var t = [], r = 0; r < arguments.length; r++)
842
805
  t[r] = arguments[r];
843
- return Qr(t)(this);
806
+ return Ur(t)(this);
844
807
  }, e.prototype.toPromise = function(t) {
845
808
  var r = this;
846
- return t = ut(t), new t(function(n, i) {
809
+ return t = rt(t), new t(function(n, i) {
847
810
  var o;
848
811
  r.subscribe(function(s) {
849
812
  return o = s;
@@ -857,40 +820,40 @@ var at = function() {
857
820
  return new e(t);
858
821
  }, e;
859
822
  }();
860
- function ut(e) {
823
+ function rt(e) {
861
824
  var t;
862
- return (t = e != null ? e : Fr.Promise) !== null && t !== void 0 ? t : Promise;
825
+ return (t = e ?? Or.Promise) !== null && t !== void 0 ? t : Promise;
863
826
  }
864
- function qr(e) {
865
- return e && N(e.next) && N(e.error) && N(e.complete);
827
+ function Gr(e) {
828
+ return e && L(e.next) && L(e.error) && L(e.complete);
866
829
  }
867
- function Jr(e) {
868
- return e && e instanceof $t || qr(e) && Ct(e);
830
+ function Dr(e) {
831
+ return e && e instanceof Ot || Gr(e) && Pt(e);
869
832
  }
870
- var Yr = Nt(function(e) {
833
+ var Fr = At(function(e) {
871
834
  return function() {
872
835
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
873
836
  };
874
- }), Rt = function(e) {
875
- M(t, e);
837
+ }), It = function(e) {
838
+ N(t, e);
876
839
  function t() {
877
840
  var r = e.call(this) || this;
878
841
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
879
842
  }
880
843
  return t.prototype.lift = function(r) {
881
- var n = new ht(this, this);
844
+ var n = new nt(this, this);
882
845
  return n.operator = r, n;
883
846
  }, t.prototype._throwIfClosed = function() {
884
847
  if (this.closed)
885
- throw new Yr();
848
+ throw new Fr();
886
849
  }, t.prototype.next = function(r) {
887
850
  var n = this;
888
- pe(function() {
851
+ de(function() {
889
852
  var i, o;
890
853
  if (n._throwIfClosed(), !n.isStopped) {
891
854
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
892
855
  try {
893
- for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
856
+ for (var s = Ce(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
894
857
  var h = a.value;
895
858
  h.next(r);
896
859
  }
@@ -907,7 +870,7 @@ var Yr = Nt(function(e) {
907
870
  });
908
871
  }, t.prototype.error = function(r) {
909
872
  var n = this;
910
- pe(function() {
873
+ de(function() {
911
874
  if (n._throwIfClosed(), !n.isStopped) {
912
875
  n.hasError = n.isStopped = !0, n.thrownError = r;
913
876
  for (var i = n.observers; i.length; )
@@ -916,7 +879,7 @@ var Yr = Nt(function(e) {
916
879
  });
917
880
  }, t.prototype.complete = function() {
918
881
  var r = this;
919
- pe(function() {
882
+ de(function() {
920
883
  if (r._throwIfClosed(), !r.isStopped) {
921
884
  r.isStopped = !0;
922
885
  for (var n = r.observers; n.length; )
@@ -938,20 +901,20 @@ var Yr = Nt(function(e) {
938
901
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
939
902
  }, t.prototype._innerSubscribe = function(r) {
940
903
  var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
941
- return o || s ? Mt : (this.currentObservers = null, a.push(r), new xe(function() {
942
- n.currentObservers = null, Ge(a, r);
904
+ return o || s ? wt : (this.currentObservers = null, a.push(r), new ve(function() {
905
+ n.currentObservers = null, Re(a, r);
943
906
  }));
944
907
  }, t.prototype._checkFinalizedStatuses = function(r) {
945
908
  var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
946
909
  i ? r.error(o) : s && r.complete();
947
910
  }, t.prototype.asObservable = function() {
948
- var r = new at();
911
+ var r = new tt();
949
912
  return r.source = this, r;
950
913
  }, t.create = function(r, n) {
951
- return new ht(r, n);
914
+ return new nt(r, n);
952
915
  }, t;
953
- }(at), ht = function(e) {
954
- M(t, e);
916
+ }(tt), nt = function(e) {
917
+ N(t, e);
955
918
  function t(r, n) {
956
919
  var i = e.call(this) || this;
957
920
  return i.destination = r, i.source = n, i;
@@ -967,17 +930,17 @@ var Yr = Nt(function(e) {
967
930
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
968
931
  }, t.prototype._subscribe = function(r) {
969
932
  var n, i;
970
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Mt;
933
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : wt;
971
934
  }, t;
972
- }(Rt), Ut = {
935
+ }(It), Lt = {
973
936
  now: function() {
974
- return (Ut.delegate || Date).now();
937
+ return (Lt.delegate || Date).now();
975
938
  },
976
939
  delegate: void 0
977
- }, Kr = function(e) {
978
- M(t, e);
940
+ }, jr = function(e) {
941
+ N(t, e);
979
942
  function t(r, n, i) {
980
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ut);
943
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lt);
981
944
  var o = e.call(this) || this;
982
945
  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;
983
946
  }
@@ -997,65 +960,65 @@ var Yr = Nt(function(e) {
997
960
  u && o.splice(0, u + 1);
998
961
  }
999
962
  }, t;
1000
- }(Rt);
1001
- const lt = [], ft = {}, en = (e, t = 0) => {
1002
- if (lt.indexOf(e) == -1) {
1003
- const r = new Kr(t);
1004
- ft[e] = r, lt.push(e);
963
+ }(It);
964
+ const it = [], ot = {}, kr = (e, t = 0) => {
965
+ if (it.indexOf(e) == -1) {
966
+ const r = new jr(t);
967
+ ot[e] = r, it.push(e);
1005
968
  }
1006
- return ft[e];
1007
- }, j = [];
1008
- function tn(e, t) {
969
+ return ot[e];
970
+ }, F = [];
971
+ function Vr(e, t) {
1009
972
  return {
1010
- subscribe: Ee(e, t).subscribe
973
+ subscribe: _e(e, t).subscribe
1011
974
  };
1012
975
  }
1013
- function Ee(e, t = w) {
976
+ function _e(e, t = A) {
1014
977
  let r;
1015
978
  const n = /* @__PURE__ */ new Set();
1016
979
  function i(a) {
1017
- if (wt(e, a) && (e = a, r)) {
1018
- const h = !j.length;
980
+ if (Et(e, a) && (e = a, r)) {
981
+ const h = !F.length;
1019
982
  for (const u of n)
1020
- u[1](), j.push(u, e);
983
+ u[1](), F.push(u, e);
1021
984
  if (h) {
1022
- for (let u = 0; u < j.length; u += 2)
1023
- j[u][0](j[u + 1]);
1024
- j.length = 0;
985
+ for (let u = 0; u < F.length; u += 2)
986
+ F[u][0](F[u + 1]);
987
+ F.length = 0;
1025
988
  }
1026
989
  }
1027
990
  }
1028
991
  function o(a) {
1029
992
  i(a(e));
1030
993
  }
1031
- function s(a, h = w) {
994
+ function s(a, h = A) {
1032
995
  const u = [a, h];
1033
- return n.add(u), n.size === 1 && (r = t(i, o) || w), a(e), () => {
996
+ return n.add(u), n.size === 1 && (r = t(i, o) || A), a(e), () => {
1034
997
  n.delete(u), n.size === 0 && r && (r(), r = null);
1035
998
  };
1036
999
  }
1037
1000
  return { set: i, update: o, subscribe: s };
1038
1001
  }
1039
- function J(e, t, r) {
1002
+ function q(e, t, r) {
1040
1003
  const n = !Array.isArray(e), i = n ? [e] : e;
1041
1004
  if (!i.every(Boolean))
1042
1005
  throw new Error("derived() expects stores as input, got a falsy value");
1043
1006
  const o = t.length < 2;
1044
- return tn(r, (s, a) => {
1007
+ return Vr(r, (s, a) => {
1045
1008
  let h = !1;
1046
1009
  const u = [];
1047
- let l = 0, c = w;
1010
+ let l = 0, c = A;
1048
1011
  const f = () => {
1049
1012
  if (l)
1050
1013
  return;
1051
1014
  c();
1052
1015
  const y = t(n ? u[0] : u, s, a);
1053
- o ? s(y) : c = Qe(y) ? y : w;
1016
+ o ? s(y) : c = ze(y) ? y : A;
1054
1017
  }, d = i.map(
1055
- (y, v) => Pt(
1018
+ (y, v) => St(
1056
1019
  y,
1057
- (B) => {
1058
- u[v] = B, l &= ~(1 << v), h && f();
1020
+ (H) => {
1021
+ u[v] = H, l &= ~(1 << v), h && f();
1059
1022
  },
1060
1023
  () => {
1061
1024
  l |= 1 << v;
@@ -1063,118 +1026,118 @@ function J(e, t, r) {
1063
1026
  )
1064
1027
  );
1065
1028
  return h = !0, f(), function() {
1066
- se(d), c(), h = !1;
1029
+ oe(d), c(), h = !1;
1067
1030
  };
1068
1031
  });
1069
1032
  }
1070
- function rn(e) {
1033
+ function Xr(e) {
1071
1034
  return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1072
1035
  }
1073
- var nn = function(t) {
1074
- return on(t) && !sn(t);
1036
+ var Wr = function(t) {
1037
+ return zr(t) && !Zr(t);
1075
1038
  };
1076
- function on(e) {
1039
+ function zr(e) {
1077
1040
  return !!e && typeof e == "object";
1078
1041
  }
1079
- function sn(e) {
1042
+ function Zr(e) {
1080
1043
  var t = Object.prototype.toString.call(e);
1081
- return t === "[object RegExp]" || t === "[object Date]" || hn(e);
1044
+ return t === "[object RegExp]" || t === "[object Date]" || Jr(e);
1082
1045
  }
1083
- var an = typeof Symbol == "function" && Symbol.for, un = an ? Symbol.for("react.element") : 60103;
1084
- function hn(e) {
1085
- return e.$$typeof === un;
1046
+ var Qr = typeof Symbol == "function" && Symbol.for, qr = Qr ? Symbol.for("react.element") : 60103;
1047
+ function Jr(e) {
1048
+ return e.$$typeof === qr;
1086
1049
  }
1087
- function ln(e) {
1050
+ function Yr(e) {
1088
1051
  return Array.isArray(e) ? [] : {};
1089
1052
  }
1090
- function ie(e, t) {
1091
- return t.clone !== !1 && t.isMergeableObject(e) ? W(ln(e), e, t) : e;
1053
+ function ne(e, t) {
1054
+ return t.clone !== !1 && t.isMergeableObject(e) ? X(Yr(e), e, t) : e;
1092
1055
  }
1093
- function fn(e, t, r) {
1056
+ function Kr(e, t, r) {
1094
1057
  return e.concat(t).map(function(n) {
1095
- return ie(n, r);
1058
+ return ne(n, r);
1096
1059
  });
1097
1060
  }
1098
- function cn(e, t) {
1061
+ function en(e, t) {
1099
1062
  if (!t.customMerge)
1100
- return W;
1063
+ return X;
1101
1064
  var r = t.customMerge(e);
1102
- return typeof r == "function" ? r : W;
1065
+ return typeof r == "function" ? r : X;
1103
1066
  }
1104
- function dn(e) {
1067
+ function tn(e) {
1105
1068
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1106
1069
  return Object.propertyIsEnumerable.call(e, t);
1107
1070
  }) : [];
1108
1071
  }
1109
- function ct(e) {
1110
- return Object.keys(e).concat(dn(e));
1072
+ function st(e) {
1073
+ return Object.keys(e).concat(tn(e));
1111
1074
  }
1112
- function Gt(e, t) {
1075
+ function Nt(e, t) {
1113
1076
  try {
1114
1077
  return t in e;
1115
- } catch (r) {
1078
+ } catch {
1116
1079
  return !1;
1117
1080
  }
1118
1081
  }
1119
- function pn(e, t) {
1120
- return Gt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1082
+ function rn(e, t) {
1083
+ return Nt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1121
1084
  }
1122
- function mn(e, t, r) {
1085
+ function nn(e, t, r) {
1123
1086
  var n = {};
1124
- return r.isMergeableObject(e) && ct(e).forEach(function(i) {
1125
- n[i] = ie(e[i], r);
1126
- }), ct(t).forEach(function(i) {
1127
- pn(e, i) || (Gt(e, i) && r.isMergeableObject(t[i]) ? n[i] = cn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
1087
+ return r.isMergeableObject(e) && st(e).forEach(function(i) {
1088
+ n[i] = ne(e[i], r);
1089
+ }), st(t).forEach(function(i) {
1090
+ rn(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = en(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
1128
1091
  }), n;
1129
1092
  }
1130
- function W(e, t, r) {
1131
- r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = ie;
1093
+ function X(e, t, r) {
1094
+ r = r || {}, r.arrayMerge = r.arrayMerge || Kr, r.isMergeableObject = r.isMergeableObject || Wr, r.cloneUnlessOtherwiseSpecified = ne;
1132
1095
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1133
- return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : ie(t, r);
1096
+ return o ? n ? r.arrayMerge(e, t, r) : nn(e, t, r) : ne(t, r);
1134
1097
  }
1135
- W.all = function(t, r) {
1098
+ X.all = function(t, r) {
1136
1099
  if (!Array.isArray(t))
1137
1100
  throw new Error("first argument should be an array");
1138
1101
  return t.reduce(function(n, i) {
1139
- return W(n, i, r);
1102
+ return X(n, i, r);
1140
1103
  }, {});
1141
1104
  };
1142
- var bn = W, gn = bn;
1143
- const yn = /* @__PURE__ */ rn(gn);
1144
- function we(e, t) {
1145
- var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : Sn, i = t && t.strategy ? t.strategy : xn;
1105
+ var on = X, sn = on;
1106
+ const an = /* @__PURE__ */ Xr(sn);
1107
+ function Be(e, t) {
1108
+ var r = t && t.cache ? t.cache : pn, n = t && t.serializer ? t.serializer : cn, i = t && t.strategy ? t.strategy : hn;
1146
1109
  return i(e, {
1147
1110
  cache: r,
1148
1111
  serializer: n
1149
1112
  });
1150
1113
  }
1151
- function vn(e) {
1114
+ function un(e) {
1152
1115
  return e == null || typeof e == "number" || typeof e == "boolean";
1153
1116
  }
1154
- function Dt(e, t, r, n) {
1155
- var i = vn(n) ? n : r(n), o = t.get(i);
1156
- return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1117
+ function Mt(e, t, r, n) {
1118
+ var i = un(n) ? n : r(n), o = t.get(i);
1119
+ return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1157
1120
  }
1158
- function Ft(e, t, r) {
1121
+ function Ct(e, t, r) {
1159
1122
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1160
- return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
1123
+ return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1161
1124
  }
1162
- function qe(e, t, r, n, i) {
1125
+ function Ze(e, t, r, n, i) {
1163
1126
  return r.bind(t, e, n, i);
1164
1127
  }
1165
- function xn(e, t) {
1166
- var r = e.length === 1 ? Dt : Ft;
1167
- return qe(e, this, r, t.cache.create(), t.serializer);
1128
+ function hn(e, t) {
1129
+ var r = e.length === 1 ? Mt : Ct;
1130
+ return Ze(e, this, r, t.cache.create(), t.serializer);
1168
1131
  }
1169
- function En(e, t) {
1170
- return qe(e, this, Ft, t.cache.create(), t.serializer);
1132
+ function ln(e, t) {
1133
+ return Ze(e, this, Ct, t.cache.create(), t.serializer);
1171
1134
  }
1172
- function _n(e, t) {
1173
- return qe(e, this, Dt, t.cache.create(), t.serializer);
1135
+ function fn(e, t) {
1136
+ return Ze(e, this, Mt, t.cache.create(), t.serializer);
1174
1137
  }
1175
- var Sn = function() {
1138
+ var cn = function() {
1176
1139
  return JSON.stringify(arguments);
1177
- }, Tn = (
1140
+ }, dn = (
1178
1141
  /** @class */
1179
1142
  function() {
1180
1143
  function e() {
@@ -1186,62 +1149,62 @@ var Sn = function() {
1186
1149
  this.cache[t] = r;
1187
1150
  }, e;
1188
1151
  }()
1189
- ), Hn = {
1152
+ ), pn = {
1190
1153
  create: function() {
1191
- return new Tn();
1154
+ return new dn();
1192
1155
  }
1193
- }, Pe = {
1194
- variadic: En,
1195
- monadic: _n
1156
+ }, Ae = {
1157
+ variadic: ln,
1158
+ monadic: fn
1196
1159
  }, p;
1197
1160
  (function(e) {
1198
1161
  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";
1199
1162
  })(p || (p = {}));
1200
- var x;
1163
+ var _;
1201
1164
  (function(e) {
1202
1165
  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";
1203
- })(x || (x = {}));
1204
- var z;
1166
+ })(_ || (_ = {}));
1167
+ var W;
1205
1168
  (function(e) {
1206
1169
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1207
- })(z || (z = {}));
1208
- function dt(e) {
1209
- return e.type === x.literal;
1170
+ })(W || (W = {}));
1171
+ function at(e) {
1172
+ return e.type === _.literal;
1210
1173
  }
1211
- function Bn(e) {
1212
- return e.type === x.argument;
1174
+ function mn(e) {
1175
+ return e.type === _.argument;
1213
1176
  }
1214
- function jt(e) {
1215
- return e.type === x.number;
1177
+ function $t(e) {
1178
+ return e.type === _.number;
1216
1179
  }
1217
- function kt(e) {
1218
- return e.type === x.date;
1180
+ function Rt(e) {
1181
+ return e.type === _.date;
1219
1182
  }
1220
- function Vt(e) {
1221
- return e.type === x.time;
1183
+ function Ut(e) {
1184
+ return e.type === _.time;
1222
1185
  }
1223
- function Xt(e) {
1224
- return e.type === x.select;
1186
+ function Gt(e) {
1187
+ return e.type === _.select;
1225
1188
  }
1226
- function Wt(e) {
1227
- return e.type === x.plural;
1189
+ function Dt(e) {
1190
+ return e.type === _.plural;
1228
1191
  }
1229
- function An(e) {
1230
- return e.type === x.pound;
1192
+ function bn(e) {
1193
+ return e.type === _.pound;
1231
1194
  }
1232
- function zt(e) {
1233
- return e.type === x.tag;
1195
+ function Ft(e) {
1196
+ return e.type === _.tag;
1234
1197
  }
1235
- function Zt(e) {
1236
- return !!(e && typeof e == "object" && e.type === z.number);
1198
+ function jt(e) {
1199
+ return !!(e && typeof e == "object" && e.type === W.number);
1237
1200
  }
1238
- function Fe(e) {
1239
- return !!(e && typeof e == "object" && e.type === z.dateTime);
1201
+ function Ge(e) {
1202
+ return !!(e && typeof e == "object" && e.type === W.dateTime);
1240
1203
  }
1241
- var Qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, wn = /(?:[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;
1242
- function Pn(e) {
1204
+ var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, gn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1205
+ function yn(e) {
1243
1206
  var t = {};
1244
- return e.replace(wn, function(r) {
1207
+ return e.replace(gn, function(r) {
1245
1208
  var n = r.length;
1246
1209
  switch (r[0]) {
1247
1210
  case "G":
@@ -1330,11 +1293,11 @@ function Pn(e) {
1330
1293
  return "";
1331
1294
  }), t;
1332
1295
  }
1333
- var On = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1334
- function In(e) {
1296
+ var vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1297
+ function _n(e) {
1335
1298
  if (e.length === 0)
1336
1299
  throw new Error("Number skeleton cannot be empty");
1337
- for (var t = e.split(On).filter(function(f) {
1300
+ for (var t = e.split(vn).filter(function(f) {
1338
1301
  return f.length > 0;
1339
1302
  }), r = [], n = 0, i = t; n < i.length; n++) {
1340
1303
  var o = i[n], s = o.split("/");
@@ -1349,17 +1312,17 @@ function In(e) {
1349
1312
  }
1350
1313
  return r;
1351
1314
  }
1352
- function Ln(e) {
1315
+ function xn(e) {
1353
1316
  return e.replace(/^(.*?)-/, "");
1354
1317
  }
1355
- var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, qt = /^(@+)?(\+|#+)?[rs]?$/g, Nn = /(\*)(0+)|(#+)(0+)|(0+)/g, Jt = /^(0+)$/;
1356
- function mt(e) {
1318
+ var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, En = /(\*)(0+)|(#+)(0+)|(0+)/g, Xt = /^(0+)$/;
1319
+ function ht(e) {
1357
1320
  var t = {};
1358
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(qt, function(r, n, i) {
1321
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
1359
1322
  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)), "";
1360
1323
  }), t;
1361
1324
  }
1362
- function Yt(e) {
1325
+ function Wt(e) {
1363
1326
  switch (e) {
1364
1327
  case "sign-auto":
1365
1328
  return {
@@ -1399,7 +1362,7 @@ function Yt(e) {
1399
1362
  };
1400
1363
  }
1401
1364
  }
1402
- function Mn(e) {
1365
+ function Sn(e) {
1403
1366
  var t;
1404
1367
  if (e[0] === "E" && e[1] === "E" ? (t = {
1405
1368
  notation: "engineering"
@@ -1407,17 +1370,17 @@ function Mn(e) {
1407
1370
  notation: "scientific"
1408
1371
  }, e = e.slice(1)), t) {
1409
1372
  var r = e.slice(0, 2);
1410
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Jt.test(e))
1373
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xt.test(e))
1411
1374
  throw new Error("Malformed concise eng/scientific notation");
1412
1375
  t.minimumIntegerDigits = e.length;
1413
1376
  }
1414
1377
  return t;
1415
1378
  }
1416
- function bt(e) {
1417
- var t = {}, r = Yt(e);
1379
+ function lt(e) {
1380
+ var t = {}, r = Wt(e);
1418
1381
  return r || t;
1419
1382
  }
1420
- function Cn(e) {
1383
+ function Tn(e) {
1421
1384
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1422
1385
  var i = n[r];
1423
1386
  switch (i.stem) {
@@ -1441,7 +1404,7 @@ function Cn(e) {
1441
1404
  continue;
1442
1405
  case "measure-unit":
1443
1406
  case "unit":
1444
- t.style = "unit", t.unit = Ln(i.options[0]);
1407
+ t.style = "unit", t.unit = xn(i.options[0]);
1445
1408
  continue;
1446
1409
  case "compact-short":
1447
1410
  case "K":
@@ -1453,12 +1416,12 @@ function Cn(e) {
1453
1416
  continue;
1454
1417
  case "scientific":
1455
1418
  t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
1456
- return g(g({}, h), bt(u));
1419
+ return g(g({}, h), lt(u));
1457
1420
  }, {}));
1458
1421
  continue;
1459
1422
  case "engineering":
1460
1423
  t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
1461
- return g(g({}, h), bt(u));
1424
+ return g(g({}, h), lt(u));
1462
1425
  }, {}));
1463
1426
  continue;
1464
1427
  case "notation-simple":
@@ -1503,7 +1466,7 @@ function Cn(e) {
1503
1466
  case "integer-width":
1504
1467
  if (i.options.length > 1)
1505
1468
  throw new RangeError("integer-width stems only accept a single optional option");
1506
- i.options[0].replace(Nn, function(h, u, l, c, f, d) {
1469
+ i.options[0].replace(En, function(h, u, l, c, f, d) {
1507
1470
  if (u)
1508
1471
  t.minimumIntegerDigits = l.length;
1509
1472
  else {
@@ -1516,32 +1479,32 @@ function Cn(e) {
1516
1479
  });
1517
1480
  continue;
1518
1481
  }
1519
- if (Jt.test(i.stem)) {
1482
+ if (Xt.test(i.stem)) {
1520
1483
  t.minimumIntegerDigits = i.stem.length;
1521
1484
  continue;
1522
1485
  }
1523
- if (pt.test(i.stem)) {
1486
+ if (ut.test(i.stem)) {
1524
1487
  if (i.options.length > 1)
1525
1488
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1526
- i.stem.replace(pt, function(h, u, l, c, f, d) {
1489
+ i.stem.replace(ut, function(h, u, l, c, f, d) {
1527
1490
  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), "";
1528
1491
  });
1529
1492
  var o = i.options[0];
1530
- o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), mt(o)));
1493
+ o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), ht(o)));
1531
1494
  continue;
1532
1495
  }
1533
- if (qt.test(i.stem)) {
1534
- t = g(g({}, t), mt(i.stem));
1496
+ if (Vt.test(i.stem)) {
1497
+ t = g(g({}, t), ht(i.stem));
1535
1498
  continue;
1536
1499
  }
1537
- var s = Yt(i.stem);
1500
+ var s = Wt(i.stem);
1538
1501
  s && (t = g(g({}, t), s));
1539
- var a = Mn(i.stem);
1502
+ var a = Sn(i.stem);
1540
1503
  a && (t = g(g({}, t), a));
1541
1504
  }
1542
1505
  return t;
1543
1506
  }
1544
- var ce = {
1507
+ var fe = {
1545
1508
  "001": [
1546
1509
  "H",
1547
1510
  "h"
@@ -2956,13 +2919,13 @@ var ce = {
2956
2919
  "h"
2957
2920
  ]
2958
2921
  };
2959
- function $n(e, t) {
2922
+ function Hn(e, t) {
2960
2923
  for (var r = "", n = 0; n < e.length; n++) {
2961
2924
  var i = e.charAt(n);
2962
2925
  if (i === "j") {
2963
2926
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
2964
2927
  o++, n++;
2965
- var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Rn(t);
2928
+ var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Bn(t);
2966
2929
  for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
2967
2930
  r += h;
2968
2931
  for (; s-- > 0; )
@@ -2971,7 +2934,7 @@ function $n(e, t) {
2971
2934
  }
2972
2935
  return r;
2973
2936
  }
2974
- function Rn(e) {
2937
+ function Bn(e) {
2975
2938
  var t = e.hourCycle;
2976
2939
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2977
2940
  e.hourCycles && // @ts-ignore
@@ -2990,23 +2953,23 @@ function Rn(e) {
2990
2953
  }
2991
2954
  var r = e.language, n;
2992
2955
  r !== "root" && (n = e.maximize().region);
2993
- var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
2956
+ var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
2994
2957
  return i[0];
2995
2958
  }
2996
- var Oe, Un = new RegExp("^".concat(Qt.source, "*")), Gn = new RegExp("".concat(Qt.source, "*$"));
2959
+ var we, An = new RegExp("^".concat(kt.source, "*")), wn = new RegExp("".concat(kt.source, "*$"));
2997
2960
  function m(e, t) {
2998
2961
  return { start: e, end: t };
2999
2962
  }
3000
- var Dn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, jn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, zn = Wn ? Number.isSafeInteger : function(e) {
2963
+ var Pn = !!String.prototype.startsWith && "_a".startsWith("a", 1), On = !!String.fromCodePoint, In = !!Object.fromEntries, Ln = !!String.prototype.codePointAt, Nn = !!String.prototype.trimStart, Mn = !!String.prototype.trimEnd, Cn = !!Number.isSafeInteger, $n = Cn ? Number.isSafeInteger : function(e) {
3001
2964
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3002
- }, je = !0;
2965
+ }, De = !0;
3003
2966
  try {
3004
- var Zn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3005
- je = ((Oe = Zn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
3006
- } catch (e) {
3007
- je = !1;
2967
+ var Rn = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2968
+ De = ((we = Rn.exec("a")) === null || we === void 0 ? void 0 : we[0]) === "a";
2969
+ } catch {
2970
+ De = !1;
3008
2971
  }
3009
- var gt = Dn ? (
2972
+ var ft = Pn ? (
3010
2973
  // Native
3011
2974
  function(t, r, n) {
3012
2975
  return t.startsWith(r, n);
@@ -3016,7 +2979,7 @@ var gt = Dn ? (
3016
2979
  function(t, r, n) {
3017
2980
  return t.slice(n, n + r.length) === r;
3018
2981
  }
3019
- ), ke = Fn ? String.fromCodePoint : (
2982
+ ), Fe = On ? String.fromCodePoint : (
3020
2983
  // IE11
3021
2984
  function() {
3022
2985
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3028,9 +2991,9 @@ var gt = Dn ? (
3028
2991
  }
3029
2992
  return n;
3030
2993
  }
3031
- ), yt = (
2994
+ ), ct = (
3032
2995
  // native
3033
- jn ? Object.fromEntries : (
2996
+ In ? Object.fromEntries : (
3034
2997
  // Ponyfill
3035
2998
  function(t) {
3036
2999
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3040,7 +3003,7 @@ var gt = Dn ? (
3040
3003
  return r;
3041
3004
  }
3042
3005
  )
3043
- ), Kt = kn ? (
3006
+ ), zt = Ln ? (
3044
3007
  // Native
3045
3008
  function(t, r) {
3046
3009
  return t.codePointAt(r);
@@ -3054,7 +3017,7 @@ var gt = Dn ? (
3054
3017
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3055
3018
  }
3056
3019
  }
3057
- ), Qn = Vn ? (
3020
+ ), Un = Nn ? (
3058
3021
  // Native
3059
3022
  function(t) {
3060
3023
  return t.trimStart();
@@ -3062,9 +3025,9 @@ var gt = Dn ? (
3062
3025
  ) : (
3063
3026
  // Ponyfill
3064
3027
  function(t) {
3065
- return t.replace(Un, "");
3028
+ return t.replace(An, "");
3066
3029
  }
3067
- ), qn = Xn ? (
3030
+ ), Gn = Mn ? (
3068
3031
  // Native
3069
3032
  function(t) {
3070
3033
  return t.trimEnd();
@@ -3072,32 +3035,32 @@ var gt = Dn ? (
3072
3035
  ) : (
3073
3036
  // Ponyfill
3074
3037
  function(t) {
3075
- return t.replace(Gn, "");
3038
+ return t.replace(wn, "");
3076
3039
  }
3077
3040
  );
3078
- function er(e, t) {
3041
+ function Zt(e, t) {
3079
3042
  return new RegExp(e, t);
3080
3043
  }
3081
- var Ve;
3082
- if (je) {
3083
- var vt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3084
- Ve = function(t, r) {
3044
+ var je;
3045
+ if (De) {
3046
+ var dt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3047
+ je = function(t, r) {
3085
3048
  var n;
3086
- vt.lastIndex = r;
3087
- var i = vt.exec(t);
3049
+ dt.lastIndex = r;
3050
+ var i = dt.exec(t);
3088
3051
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3089
3052
  };
3090
3053
  } else
3091
- Ve = function(t, r) {
3054
+ je = function(t, r) {
3092
3055
  for (var n = []; ; ) {
3093
- var i = Kt(t, r);
3094
- if (i === void 0 || tr(i) || ei(i))
3056
+ var i = zt(t, r);
3057
+ if (i === void 0 || Qt(i) || kn(i))
3095
3058
  break;
3096
3059
  n.push(i), r += i >= 65536 ? 2 : 1;
3097
3060
  }
3098
- return ke.apply(void 0, n);
3061
+ return Fe.apply(void 0, n);
3099
3062
  };
3100
- var Jn = (
3063
+ var Dn = (
3101
3064
  /** @class */
3102
3065
  function() {
3103
3066
  function e(t, r) {
@@ -3121,14 +3084,14 @@ var Jn = (
3121
3084
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3122
3085
  var a = this.clonePosition();
3123
3086
  this.bump(), i.push({
3124
- type: x.pound,
3087
+ type: _.pound,
3125
3088
  location: m(a, this.clonePosition())
3126
3089
  });
3127
3090
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3128
3091
  if (n)
3129
3092
  break;
3130
3093
  return this.error(p.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
3131
- } else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
3094
+ } else if (o === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
3132
3095
  var s = this.parseTag(t, r);
3133
3096
  if (s.err)
3134
3097
  return s;
@@ -3149,7 +3112,7 @@ var Jn = (
3149
3112
  if (this.bumpSpace(), this.bumpIf("/>"))
3150
3113
  return {
3151
3114
  val: {
3152
- type: x.literal,
3115
+ type: _.literal,
3153
3116
  value: "<".concat(i, "/>"),
3154
3117
  location: m(n, this.clonePosition())
3155
3118
  },
@@ -3161,12 +3124,12 @@ var Jn = (
3161
3124
  return o;
3162
3125
  var s = o.val, a = this.clonePosition();
3163
3126
  if (this.bumpIf("</")) {
3164
- if (this.isEOF() || !Xe(this.char()))
3127
+ if (this.isEOF() || !ke(this.char()))
3165
3128
  return this.error(p.INVALID_TAG, m(a, this.clonePosition()));
3166
3129
  var h = this.clonePosition(), u = this.parseTagName();
3167
3130
  return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, m(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3168
3131
  val: {
3169
- type: x.tag,
3132
+ type: _.tag,
3170
3133
  value: i,
3171
3134
  children: s,
3172
3135
  location: m(n, this.clonePosition())
@@ -3179,7 +3142,7 @@ var Jn = (
3179
3142
  return this.error(p.INVALID_TAG, m(n, this.clonePosition()));
3180
3143
  }, e.prototype.parseTagName = function() {
3181
3144
  var t = this.offset();
3182
- for (this.bump(); !this.isEOF() && Kn(this.char()); )
3145
+ for (this.bump(); !this.isEOF() && jn(this.char()); )
3183
3146
  this.bump();
3184
3147
  return this.message.slice(t, this.offset());
3185
3148
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3203,12 +3166,12 @@ var Jn = (
3203
3166
  }
3204
3167
  var h = m(n, this.clonePosition());
3205
3168
  return {
3206
- val: { type: x.literal, value: i, location: h },
3169
+ val: { type: _.literal, value: i, location: h },
3207
3170
  err: null
3208
3171
  };
3209
3172
  }, e.prototype.tryParseLeftAngleBracket = function() {
3210
3173
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3211
- !Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
3174
+ !Fn(this.peek() || 0)) ? (this.bump(), "<") : null;
3212
3175
  }, e.prototype.tryParseQuote = function(t) {
3213
3176
  if (this.isEOF() || this.char() !== 39)
3214
3177
  return null;
@@ -3242,12 +3205,12 @@ var Jn = (
3242
3205
  r.push(n);
3243
3206
  this.bump();
3244
3207
  }
3245
- return ke.apply(void 0, r);
3208
+ return Fe.apply(void 0, r);
3246
3209
  }, e.prototype.tryParseUnquoted = function(t, r) {
3247
3210
  if (this.isEOF())
3248
3211
  return null;
3249
3212
  var n = this.char();
3250
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
3213
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
3251
3214
  }, e.prototype.parseArgument = function(t, r) {
3252
3215
  var n = this.clonePosition();
3253
3216
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3263,7 +3226,7 @@ var Jn = (
3263
3226
  case 125:
3264
3227
  return this.bump(), {
3265
3228
  val: {
3266
- type: x.argument,
3229
+ type: _.argument,
3267
3230
  // value does not include the opening and closing braces.
3268
3231
  value: i,
3269
3232
  location: m(n, this.clonePosition())
@@ -3276,7 +3239,7 @@ var Jn = (
3276
3239
  return this.error(p.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
3277
3240
  }
3278
3241
  }, e.prototype.parseIdentifierIfPossible = function() {
3279
- var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
3242
+ var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
3280
3243
  this.bumpTo(i);
3281
3244
  var o = this.clonePosition(), s = m(t, o);
3282
3245
  return { value: n, location: s };
@@ -3295,7 +3258,7 @@ var Jn = (
3295
3258
  var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3296
3259
  if (c.err)
3297
3260
  return c;
3298
- var f = qn(c.val);
3261
+ var f = Gn(c.val);
3299
3262
  if (f.length === 0)
3300
3263
  return this.error(p.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
3301
3264
  var d = m(l, this.clonePosition());
@@ -3305,37 +3268,37 @@ var Jn = (
3305
3268
  if (y.err)
3306
3269
  return y;
3307
3270
  var v = m(i, this.clonePosition());
3308
- if (u && gt(u == null ? void 0 : u.style, "::", 0)) {
3309
- var B = Qn(u.style.slice(2));
3271
+ if (u && ft(u?.style, "::", 0)) {
3272
+ var H = Un(u.style.slice(2));
3310
3273
  if (a === "number") {
3311
- var c = this.parseNumberSkeletonFromString(B, u.styleLocation);
3274
+ var c = this.parseNumberSkeletonFromString(H, u.styleLocation);
3312
3275
  return c.err ? c : {
3313
- val: { type: x.number, value: n, location: v, style: c.val },
3276
+ val: { type: _.number, value: n, location: v, style: c.val },
3314
3277
  err: null
3315
3278
  };
3316
3279
  } else {
3317
- if (B.length === 0)
3280
+ if (H.length === 0)
3318
3281
  return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
3319
- var $ = B;
3320
- this.locale && ($ = $n(B, this.locale));
3282
+ var C = H;
3283
+ this.locale && (C = Hn(H, this.locale));
3321
3284
  var f = {
3322
- type: z.dateTime,
3323
- pattern: $,
3285
+ type: W.dateTime,
3286
+ pattern: C,
3324
3287
  location: u.styleLocation,
3325
- parsedOptions: this.shouldParseSkeletons ? Pn($) : {}
3326
- }, P = a === "date" ? x.date : x.time;
3288
+ parsedOptions: this.shouldParseSkeletons ? yn(C) : {}
3289
+ }, w = a === "date" ? _.date : _.time;
3327
3290
  return {
3328
- val: { type: P, value: n, location: v, style: f },
3291
+ val: { type: w, value: n, location: v, style: f },
3329
3292
  err: null
3330
3293
  };
3331
3294
  }
3332
3295
  }
3333
3296
  return {
3334
3297
  val: {
3335
- type: a === "number" ? x.number : a === "date" ? x.date : x.time,
3298
+ type: a === "number" ? _.number : a === "date" ? _.date : _.time,
3336
3299
  value: n,
3337
3300
  location: v,
3338
- style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
3301
+ style: (o = u?.style) !== null && o !== void 0 ? o : null
3339
3302
  },
3340
3303
  err: null
3341
3304
  };
@@ -3347,39 +3310,39 @@ var Jn = (
3347
3310
  if (this.bumpSpace(), !this.bumpIf(","))
3348
3311
  return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, m(T, g({}, T)));
3349
3312
  this.bumpSpace();
3350
- var R = this.parseIdentifierIfPossible(), O = 0;
3351
- if (a !== "select" && R.value === "offset") {
3313
+ var $ = this.parseIdentifierIfPossible(), P = 0;
3314
+ if (a !== "select" && $.value === "offset") {
3352
3315
  if (!this.bumpIf(":"))
3353
3316
  return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
3354
3317
  this.bumpSpace();
3355
3318
  var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3356
3319
  if (c.err)
3357
3320
  return c;
3358
- this.bumpSpace(), R = this.parseIdentifierIfPossible(), O = c.val;
3321
+ this.bumpSpace(), $ = this.parseIdentifierIfPossible(), P = c.val;
3359
3322
  }
3360
- var D = this.tryParsePluralOrSelectOptions(t, a, r, R);
3361
- if (D.err)
3362
- return D;
3323
+ var G = this.tryParsePluralOrSelectOptions(t, a, r, $);
3324
+ if (G.err)
3325
+ return G;
3363
3326
  var y = this.tryParseArgumentClose(i);
3364
3327
  if (y.err)
3365
3328
  return y;
3366
- var he = m(i, this.clonePosition());
3329
+ var ue = m(i, this.clonePosition());
3367
3330
  return a === "select" ? {
3368
3331
  val: {
3369
- type: x.select,
3332
+ type: _.select,
3370
3333
  value: n,
3371
- options: yt(D.val),
3372
- location: he
3334
+ options: ct(G.val),
3335
+ location: ue
3373
3336
  },
3374
3337
  err: null
3375
3338
  } : {
3376
3339
  val: {
3377
- type: x.plural,
3340
+ type: _.plural,
3378
3341
  value: n,
3379
- options: yt(D.val),
3380
- offset: O,
3342
+ options: ct(G.val),
3343
+ offset: P,
3381
3344
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3382
- location: he
3345
+ location: ue
3383
3346
  },
3384
3347
  err: null
3385
3348
  };
@@ -3427,16 +3390,16 @@ var Jn = (
3427
3390
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3428
3391
  var n = [];
3429
3392
  try {
3430
- n = In(t);
3431
- } catch (i) {
3393
+ n = _n(t);
3394
+ } catch {
3432
3395
  return this.error(p.INVALID_NUMBER_SKELETON, r);
3433
3396
  }
3434
3397
  return {
3435
3398
  val: {
3436
- type: z.number,
3399
+ type: W.number,
3437
3400
  tokens: n,
3438
3401
  location: r,
3439
- parsedOptions: this.shouldParseSkeletons ? Cn(n) : {}
3402
+ parsedOptions: this.shouldParseSkeletons ? Tn(n) : {}
3440
3403
  },
3441
3404
  err: null
3442
3405
  };
@@ -3484,7 +3447,7 @@ var Jn = (
3484
3447
  break;
3485
3448
  }
3486
3449
  var h = m(i, this.clonePosition());
3487
- return o ? (s *= n, zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3450
+ return o ? (s *= n, $n(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
3488
3451
  }, e.prototype.offset = function() {
3489
3452
  return this.position.offset;
3490
3453
  }, e.prototype.isEOF = function() {
@@ -3499,7 +3462,7 @@ var Jn = (
3499
3462
  var t = this.position.offset;
3500
3463
  if (t >= this.message.length)
3501
3464
  throw Error("out of bound");
3502
- var r = Kt(this.message, t);
3465
+ var r = zt(this.message, t);
3503
3466
  if (r === void 0)
3504
3467
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3505
3468
  return r;
@@ -3518,7 +3481,7 @@ var Jn = (
3518
3481
  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);
3519
3482
  }
3520
3483
  }, e.prototype.bumpIf = function(t) {
3521
- if (gt(this.message, t, this.offset())) {
3484
+ if (ft(this.message, t, this.offset())) {
3522
3485
  for (var r = 0; r < t.length; r++)
3523
3486
  this.bump();
3524
3487
  return !0;
@@ -3540,56 +3503,56 @@ var Jn = (
3540
3503
  break;
3541
3504
  }
3542
3505
  }, e.prototype.bumpSpace = function() {
3543
- for (; !this.isEOF() && tr(this.char()); )
3506
+ for (; !this.isEOF() && Qt(this.char()); )
3544
3507
  this.bump();
3545
3508
  }, e.prototype.peek = function() {
3546
3509
  if (this.isEOF())
3547
3510
  return null;
3548
3511
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3549
- return n != null ? n : null;
3512
+ return n ?? null;
3550
3513
  }, e;
3551
3514
  }()
3552
3515
  );
3553
- function Xe(e) {
3516
+ function ke(e) {
3554
3517
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3555
3518
  }
3556
- function Yn(e) {
3557
- return Xe(e) || e === 47;
3519
+ function Fn(e) {
3520
+ return ke(e) || e === 47;
3558
3521
  }
3559
- function Kn(e) {
3522
+ function jn(e) {
3560
3523
  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;
3561
3524
  }
3562
- function tr(e) {
3525
+ function Qt(e) {
3563
3526
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3564
3527
  }
3565
- function ei(e) {
3528
+ function kn(e) {
3566
3529
  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;
3567
3530
  }
3568
- function We(e) {
3531
+ function Ve(e) {
3569
3532
  e.forEach(function(t) {
3570
- if (delete t.location, Xt(t) || Wt(t))
3533
+ if (delete t.location, Gt(t) || Dt(t))
3571
3534
  for (var r in t.options)
3572
- delete t.options[r].location, We(t.options[r].value);
3573
- else jt(t) && Zt(t.style) || (kt(t) || Vt(t)) && Fe(t.style) ? delete t.style.location : zt(t) && We(t.children);
3535
+ delete t.options[r].location, Ve(t.options[r].value);
3536
+ else $t(t) && jt(t.style) || (Rt(t) || Ut(t)) && Ge(t.style) ? delete t.style.location : Ft(t) && Ve(t.children);
3574
3537
  });
3575
3538
  }
3576
- function ti(e, t) {
3539
+ function Vn(e, t) {
3577
3540
  t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3578
- var r = new Jn(e, t).parse();
3541
+ var r = new Dn(e, t).parse();
3579
3542
  if (r.err) {
3580
3543
  var n = SyntaxError(p[r.err.kind]);
3581
3544
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3582
3545
  }
3583
- return t != null && t.captureLocation || We(r.val), r.val;
3546
+ return t?.captureLocation || Ve(r.val), r.val;
3584
3547
  }
3585
- var Z;
3548
+ var z;
3586
3549
  (function(e) {
3587
3550
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3588
- })(Z || (Z = {}));
3589
- var _e = (
3551
+ })(z || (z = {}));
3552
+ var xe = (
3590
3553
  /** @class */
3591
3554
  function(e) {
3592
- M(t, e);
3555
+ N(t, e);
3593
3556
  function t(r, n, i) {
3594
3557
  var o = e.call(this, r) || this;
3595
3558
  return o.code = n, o.originalMessage = i, o;
@@ -3598,155 +3561,155 @@ var _e = (
3598
3561
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3599
3562
  }, t;
3600
3563
  }(Error)
3601
- ), xt = (
3564
+ ), pt = (
3602
3565
  /** @class */
3603
3566
  function(e) {
3604
- M(t, e);
3567
+ N(t, e);
3605
3568
  function t(r, n, i, o) {
3606
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Z.INVALID_VALUE, o) || this;
3569
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
3607
3570
  }
3608
3571
  return t;
3609
- }(_e)
3610
- ), ri = (
3572
+ }(xe)
3573
+ ), Xn = (
3611
3574
  /** @class */
3612
3575
  function(e) {
3613
- M(t, e);
3576
+ N(t, e);
3614
3577
  function t(r, n, i) {
3615
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Z.INVALID_VALUE, i) || this;
3578
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
3616
3579
  }
3617
3580
  return t;
3618
- }(_e)
3619
- ), ni = (
3581
+ }(xe)
3582
+ ), Wn = (
3620
3583
  /** @class */
3621
3584
  function(e) {
3622
- M(t, e);
3585
+ N(t, e);
3623
3586
  function t(r, n) {
3624
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Z.MISSING_VALUE, n) || this;
3587
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
3625
3588
  }
3626
3589
  return t;
3627
- }(_e)
3628
- ), E;
3590
+ }(xe)
3591
+ ), x;
3629
3592
  (function(e) {
3630
3593
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3631
- })(E || (E = {}));
3632
- function ii(e) {
3594
+ })(x || (x = {}));
3595
+ function zn(e) {
3633
3596
  return e.length < 2 ? e : e.reduce(function(t, r) {
3634
3597
  var n = t[t.length - 1];
3635
- return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
3598
+ return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
3636
3599
  }, []);
3637
3600
  }
3638
- function oi(e) {
3601
+ function Zn(e) {
3639
3602
  return typeof e == "function";
3640
3603
  }
3641
- function me(e, t, r, n, i, o, s) {
3642
- if (e.length === 1 && dt(e[0]))
3604
+ function pe(e, t, r, n, i, o, s) {
3605
+ if (e.length === 1 && at(e[0]))
3643
3606
  return [
3644
3607
  {
3645
- type: E.literal,
3608
+ type: x.literal,
3646
3609
  value: e[0].value
3647
3610
  }
3648
3611
  ];
3649
3612
  for (var a = [], h = 0, u = e; h < u.length; h++) {
3650
3613
  var l = u[h];
3651
- if (dt(l)) {
3614
+ if (at(l)) {
3652
3615
  a.push({
3653
- type: E.literal,
3616
+ type: x.literal,
3654
3617
  value: l.value
3655
3618
  });
3656
3619
  continue;
3657
3620
  }
3658
- if (An(l)) {
3621
+ if (bn(l)) {
3659
3622
  typeof o == "number" && a.push({
3660
- type: E.literal,
3623
+ type: x.literal,
3661
3624
  value: r.getNumberFormat(t).format(o)
3662
3625
  });
3663
3626
  continue;
3664
3627
  }
3665
3628
  var c = l.value;
3666
3629
  if (!(i && c in i))
3667
- throw new ni(c, s);
3630
+ throw new Wn(c, s);
3668
3631
  var f = i[c];
3669
- if (Bn(l)) {
3632
+ if (mn(l)) {
3670
3633
  (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3671
- type: typeof f == "string" ? E.literal : E.object,
3634
+ type: typeof f == "string" ? x.literal : x.object,
3672
3635
  value: f
3673
3636
  });
3674
3637
  continue;
3675
3638
  }
3676
- if (kt(l)) {
3677
- var d = typeof l.style == "string" ? n.date[l.style] : Fe(l.style) ? l.style.parsedOptions : void 0;
3639
+ if (Rt(l)) {
3640
+ var d = typeof l.style == "string" ? n.date[l.style] : Ge(l.style) ? l.style.parsedOptions : void 0;
3678
3641
  a.push({
3679
- type: E.literal,
3642
+ type: x.literal,
3680
3643
  value: r.getDateTimeFormat(t, d).format(f)
3681
3644
  });
3682
3645
  continue;
3683
3646
  }
3684
- if (Vt(l)) {
3685
- var d = typeof l.style == "string" ? n.time[l.style] : Fe(l.style) ? l.style.parsedOptions : n.time.medium;
3647
+ if (Ut(l)) {
3648
+ var d = typeof l.style == "string" ? n.time[l.style] : Ge(l.style) ? l.style.parsedOptions : n.time.medium;
3686
3649
  a.push({
3687
- type: E.literal,
3650
+ type: x.literal,
3688
3651
  value: r.getDateTimeFormat(t, d).format(f)
3689
3652
  });
3690
3653
  continue;
3691
3654
  }
3692
- if (jt(l)) {
3693
- var d = typeof l.style == "string" ? n.number[l.style] : Zt(l.style) ? l.style.parsedOptions : void 0;
3655
+ if ($t(l)) {
3656
+ var d = typeof l.style == "string" ? n.number[l.style] : jt(l.style) ? l.style.parsedOptions : void 0;
3694
3657
  d && d.scale && (f = f * (d.scale || 1)), a.push({
3695
- type: E.literal,
3658
+ type: x.literal,
3696
3659
  value: r.getNumberFormat(t, d).format(f)
3697
3660
  });
3698
3661
  continue;
3699
3662
  }
3700
- if (zt(l)) {
3701
- var y = l.children, v = l.value, B = i[v];
3702
- if (!oi(B))
3703
- throw new ri(v, "function", s);
3704
- var $ = me(y, t, r, n, i, o), P = B($.map(function(O) {
3705
- return O.value;
3663
+ if (Ft(l)) {
3664
+ var y = l.children, v = l.value, H = i[v];
3665
+ if (!Zn(H))
3666
+ throw new Xn(v, "function", s);
3667
+ var C = pe(y, t, r, n, i, o), w = H(C.map(function(P) {
3668
+ return P.value;
3706
3669
  }));
3707
- Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(O) {
3670
+ Array.isArray(w) || (w = [w]), a.push.apply(a, w.map(function(P) {
3708
3671
  return {
3709
- type: typeof O == "string" ? E.literal : E.object,
3710
- value: O
3672
+ type: typeof P == "string" ? x.literal : x.object,
3673
+ value: P
3711
3674
  };
3712
3675
  }));
3713
3676
  }
3714
- if (Xt(l)) {
3677
+ if (Gt(l)) {
3715
3678
  var T = l.options[f] || l.options.other;
3716
3679
  if (!T)
3717
- throw new xt(l.value, f, Object.keys(l.options), s);
3718
- a.push.apply(a, me(T.value, t, r, n, i));
3680
+ throw new pt(l.value, f, Object.keys(l.options), s);
3681
+ a.push.apply(a, pe(T.value, t, r, n, i));
3719
3682
  continue;
3720
3683
  }
3721
- if (Wt(l)) {
3684
+ if (Dt(l)) {
3722
3685
  var T = l.options["=".concat(f)];
3723
3686
  if (!T) {
3724
3687
  if (!Intl.PluralRules)
3725
- throw new _e(`Intl.PluralRules is not available in this environment.
3688
+ throw new xe(`Intl.PluralRules is not available in this environment.
3726
3689
  Try polyfilling it using "@formatjs/intl-pluralrules"
3727
- `, Z.MISSING_INTL_API, s);
3728
- var R = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3729
- T = l.options[R] || l.options.other;
3690
+ `, z.MISSING_INTL_API, s);
3691
+ var $ = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
3692
+ T = l.options[$] || l.options.other;
3730
3693
  }
3731
3694
  if (!T)
3732
- throw new xt(l.value, f, Object.keys(l.options), s);
3733
- a.push.apply(a, me(T.value, t, r, n, i, f - (l.offset || 0)));
3695
+ throw new pt(l.value, f, Object.keys(l.options), s);
3696
+ a.push.apply(a, pe(T.value, t, r, n, i, f - (l.offset || 0)));
3734
3697
  continue;
3735
3698
  }
3736
3699
  }
3737
- return ii(a);
3700
+ return zn(a);
3738
3701
  }
3739
- function si(e, t) {
3702
+ function Qn(e, t) {
3740
3703
  return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3741
3704
  return r[n] = g(g({}, e[n]), t[n] || {}), r;
3742
3705
  }, {})) : e;
3743
3706
  }
3744
- function ai(e, t) {
3707
+ function qn(e, t) {
3745
3708
  return t ? Object.keys(e).reduce(function(r, n) {
3746
- return r[n] = si(e[n], t[n]), r;
3709
+ return r[n] = Qn(e[n], t[n]), r;
3747
3710
  }, g({}, e)) : e;
3748
3711
  }
3749
- function Ie(e) {
3712
+ function Pe(e) {
3750
3713
  return {
3751
3714
  create: function() {
3752
3715
  return {
@@ -3760,39 +3723,39 @@ function Ie(e) {
3760
3723
  }
3761
3724
  };
3762
3725
  }
3763
- function ui(e) {
3726
+ function Jn(e) {
3764
3727
  return e === void 0 && (e = {
3765
3728
  number: {},
3766
3729
  dateTime: {},
3767
3730
  pluralRules: {}
3768
3731
  }), {
3769
- getNumberFormat: we(function() {
3732
+ getNumberFormat: Be(function() {
3770
3733
  for (var t, r = [], n = 0; n < arguments.length; n++)
3771
3734
  r[n] = arguments[n];
3772
- return new ((t = Intl.NumberFormat).bind.apply(t, X([void 0], r, !1)))();
3735
+ return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
3773
3736
  }, {
3774
- cache: Ie(e.number),
3775
- strategy: Pe.variadic
3737
+ cache: Pe(e.number),
3738
+ strategy: Ae.variadic
3776
3739
  }),
3777
- getDateTimeFormat: we(function() {
3740
+ getDateTimeFormat: Be(function() {
3778
3741
  for (var t, r = [], n = 0; n < arguments.length; n++)
3779
3742
  r[n] = arguments[n];
3780
- return new ((t = Intl.DateTimeFormat).bind.apply(t, X([void 0], r, !1)))();
3743
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
3781
3744
  }, {
3782
- cache: Ie(e.dateTime),
3783
- strategy: Pe.variadic
3745
+ cache: Pe(e.dateTime),
3746
+ strategy: Ae.variadic
3784
3747
  }),
3785
- getPluralRules: we(function() {
3748
+ getPluralRules: Be(function() {
3786
3749
  for (var t, r = [], n = 0; n < arguments.length; n++)
3787
3750
  r[n] = arguments[n];
3788
- return new ((t = Intl.PluralRules).bind.apply(t, X([void 0], r, !1)))();
3751
+ return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
3789
3752
  }, {
3790
- cache: Ie(e.pluralRules),
3791
- strategy: Pe.variadic
3753
+ cache: Pe(e.pluralRules),
3754
+ strategy: Ae.variadic
3792
3755
  })
3793
3756
  };
3794
3757
  }
3795
- var hi = (
3758
+ var Yn = (
3796
3759
  /** @class */
3797
3760
  function() {
3798
3761
  function e(t, r, n, i) {
@@ -3807,11 +3770,11 @@ var hi = (
3807
3770
  if (u.length === 1)
3808
3771
  return u[0].value;
3809
3772
  var l = u.reduce(function(c, f) {
3810
- return !c.length || f.type !== E.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3773
+ return !c.length || f.type !== x.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3811
3774
  }, []);
3812
3775
  return l.length <= 1 ? l[0] || "" : l;
3813
3776
  }, this.formatToParts = function(h) {
3814
- return me(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3777
+ return pe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
3815
3778
  }, this.resolvedOptions = function() {
3816
3779
  var h;
3817
3780
  return {
@@ -3824,13 +3787,13 @@ var hi = (
3824
3787
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3825
3788
  var s = i || {};
3826
3789
  s.formatters;
3827
- var a = Dr(s, ["formatters"]);
3790
+ var a = Pr(s, ["formatters"]);
3828
3791
  this.ast = e.__parse(t, g(g({}, a), { locale: this.resolvedLocale }));
3829
3792
  } else
3830
3793
  this.ast = t;
3831
3794
  if (!Array.isArray(this.ast))
3832
3795
  throw new TypeError("A message must be provided as a String or AST.");
3833
- this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
3796
+ this.formats = qn(e.formats, n), this.formatters = i && i.formatters || Jn(this.formatterCache);
3834
3797
  }
3835
3798
  return Object.defineProperty(e, "defaultLocale", {
3836
3799
  get: function() {
@@ -3839,11 +3802,11 @@ var hi = (
3839
3802
  enumerable: !1,
3840
3803
  configurable: !0
3841
3804
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
3842
- if (typeof Intl.Locale != "undefined") {
3805
+ if (!(typeof Intl.Locale > "u")) {
3843
3806
  var r = Intl.NumberFormat.supportedLocalesOf(t);
3844
3807
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3845
3808
  }
3846
- }, e.__parse = ti, e.formats = {
3809
+ }, e.__parse = Vn, e.formats = {
3847
3810
  number: {
3848
3811
  integer: {
3849
3812
  maximumFractionDigits: 0
@@ -3904,7 +3867,7 @@ var hi = (
3904
3867
  }, e;
3905
3868
  }()
3906
3869
  );
3907
- function li(e, t) {
3870
+ function Kn(e, t) {
3908
3871
  if (t == null)
3909
3872
  return;
3910
3873
  if (t in e)
@@ -3925,92 +3888,92 @@ function li(e, t) {
3925
3888
  n = void 0;
3926
3889
  return n;
3927
3890
  }
3928
- const C = {}, fi = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), rr = (e, t) => {
3891
+ const M = {}, ei = (e, t, r) => r && (t in M || (M[t] = {}), e in M[t] || (M[t][e] = r), r), qt = (e, t) => {
3929
3892
  if (t == null)
3930
3893
  return;
3931
- if (t in C && e in C[t])
3932
- return C[t][e];
3933
- const r = Se(t);
3894
+ if (t in M && e in M[t])
3895
+ return M[t][e];
3896
+ const r = Ee(t);
3934
3897
  for (let n = 0; n < r.length; n++) {
3935
- const i = r[n], o = di(i, e);
3898
+ const i = r[n], o = ri(i, e);
3936
3899
  if (o)
3937
- return fi(e, t, o);
3900
+ return ei(e, t, o);
3938
3901
  }
3939
3902
  };
3940
- let Je;
3941
- const ue = Ee({});
3942
- function ci(e) {
3943
- return Je[e] || null;
3903
+ let Qe;
3904
+ const ae = _e({});
3905
+ function ti(e) {
3906
+ return Qe[e] || null;
3944
3907
  }
3945
- function nr(e) {
3946
- return e in Je;
3908
+ function Jt(e) {
3909
+ return e in Qe;
3947
3910
  }
3948
- function di(e, t) {
3949
- if (!nr(e))
3911
+ function ri(e, t) {
3912
+ if (!Jt(e))
3950
3913
  return null;
3951
- const r = ci(e);
3952
- return li(r, t);
3914
+ const r = ti(e);
3915
+ return Kn(r, t);
3953
3916
  }
3954
- function pi(e) {
3917
+ function ni(e) {
3955
3918
  if (e == null)
3956
3919
  return;
3957
- const t = Se(e);
3920
+ const t = Ee(e);
3958
3921
  for (let r = 0; r < t.length; r++) {
3959
3922
  const n = t[r];
3960
- if (nr(n))
3923
+ if (Jt(n))
3961
3924
  return n;
3962
3925
  }
3963
3926
  }
3964
- function ir(e, ...t) {
3965
- delete C[e], ue.update((r) => (r[e] = yn.all([r[e] || {}, ...t]), r));
3927
+ function Yt(e, ...t) {
3928
+ delete M[e], ae.update((r) => (r[e] = an.all([r[e] || {}, ...t]), r));
3966
3929
  }
3967
- J(
3968
- [ue],
3930
+ q(
3931
+ [ae],
3969
3932
  ([e]) => Object.keys(e)
3970
3933
  );
3971
- ue.subscribe((e) => Je = e);
3972
- const be = {};
3973
- function mi(e, t) {
3974
- be[e].delete(t), be[e].size === 0 && delete be[e];
3934
+ ae.subscribe((e) => Qe = e);
3935
+ const me = {};
3936
+ function ii(e, t) {
3937
+ me[e].delete(t), me[e].size === 0 && delete me[e];
3975
3938
  }
3976
- function or(e) {
3977
- return be[e];
3939
+ function Kt(e) {
3940
+ return me[e];
3978
3941
  }
3979
- function bi(e) {
3980
- return Se(e).map((t) => {
3981
- const r = or(t);
3942
+ function oi(e) {
3943
+ return Ee(e).map((t) => {
3944
+ const r = Kt(t);
3982
3945
  return [t, r ? [...r] : []];
3983
3946
  }).filter(([, t]) => t.length > 0);
3984
3947
  }
3985
- function ze(e) {
3986
- return e == null ? !1 : Se(e).some(
3948
+ function Xe(e) {
3949
+ return e == null ? !1 : Ee(e).some(
3987
3950
  (t) => {
3988
3951
  var r;
3989
- return (r = or(t)) == null ? void 0 : r.size;
3952
+ return (r = Kt(t)) == null ? void 0 : r.size;
3990
3953
  }
3991
3954
  );
3992
3955
  }
3993
- function gi(e, t) {
3956
+ function si(e, t) {
3994
3957
  return Promise.all(
3995
- t.map((n) => (mi(e, n), n().then((i) => i.default || i)))
3996
- ).then((n) => ir(e, ...n));
3997
- }
3998
- const te = {};
3999
- function sr(e) {
4000
- if (!ze(e))
4001
- return e in te ? te[e] : Promise.resolve();
4002
- const t = bi(e);
4003
- return te[e] = Promise.all(
3958
+ t.map((n) => (ii(e, n), n().then((i) => i.default || i)))
3959
+ ).then((n) => Yt(e, ...n));
3960
+ }
3961
+ const ee = {};
3962
+ function er(e) {
3963
+ if (!Xe(e))
3964
+ return e in ee ? ee[e] : Promise.resolve();
3965
+ const t = oi(e);
3966
+ return ee[e] = Promise.all(
4004
3967
  t.map(
4005
- ([r, n]) => gi(r, n)
3968
+ ([r, n]) => si(r, n)
4006
3969
  )
4007
3970
  ).then(() => {
4008
- if (ze(e))
4009
- return sr(e);
4010
- delete te[e];
4011
- }), te[e];
3971
+ if (Xe(e))
3972
+ return er(e);
3973
+ delete ee[e];
3974
+ }), ee[e];
4012
3975
  }
4013
- const yi = {
3976
+ const ai = {
4014
3977
  number: {
4015
3978
  scientific: { notation: "scientific" },
4016
3979
  engineering: { notation: "engineering" },
@@ -4039,150 +4002,150 @@ const yi = {
4039
4002
  timeZoneName: "short"
4040
4003
  }
4041
4004
  }
4042
- }, vi = {
4005
+ }, ui = {
4043
4006
  fallbackLocale: null,
4044
4007
  loadingDelay: 200,
4045
- formats: yi,
4008
+ formats: ai,
4046
4009
  warnOnMissingMessages: !0,
4047
4010
  handleMissingMessage: void 0,
4048
4011
  ignoreTag: !0
4049
- }, xi = vi;
4050
- function Q() {
4051
- return xi;
4012
+ }, hi = ui;
4013
+ function Z() {
4014
+ return hi;
4052
4015
  }
4053
- const Le = Ee(!1);
4054
- var Ei = Object.defineProperty, _i = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
4016
+ const Oe = _e(!1);
4017
+ var li = Object.defineProperty, fi = Object.defineProperties, ci = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mi = (e, t) => {
4055
4018
  for (var r in t)
4056
- Ti.call(t, r) && _t(e, r, t[r]);
4057
- if (Et)
4058
- for (var r of Et(t))
4059
- Hi.call(t, r) && _t(e, r, t[r]);
4019
+ di.call(t, r) && bt(e, r, t[r]);
4020
+ if (mt)
4021
+ for (var r of mt(t))
4022
+ pi.call(t, r) && bt(e, r, t[r]);
4060
4023
  return e;
4061
- }, Ai = (e, t) => _i(e, Si(t));
4062
- let Ze;
4063
- const ge = Ee(null);
4064
- function St(e) {
4024
+ }, bi = (e, t) => fi(e, ci(t));
4025
+ let We;
4026
+ const be = _e(null);
4027
+ function gt(e) {
4065
4028
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4066
4029
  }
4067
- function Se(e, t = Q().fallbackLocale) {
4068
- const r = St(e);
4069
- return t ? [.../* @__PURE__ */ new Set([...r, ...St(t)])] : r;
4030
+ function Ee(e, t = Z().fallbackLocale) {
4031
+ const r = gt(e);
4032
+ return t ? [.../* @__PURE__ */ new Set([...r, ...gt(t)])] : r;
4070
4033
  }
4071
- function G() {
4072
- return Ze != null ? Ze : void 0;
4034
+ function U() {
4035
+ return We ?? void 0;
4073
4036
  }
4074
- ge.subscribe((e) => {
4075
- Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4037
+ be.subscribe((e) => {
4038
+ We = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4076
4039
  });
4077
- const wi = (e) => {
4078
- if (e && pi(e) && ze(e)) {
4079
- const { loadingDelay: t } = Q();
4040
+ const gi = (e) => {
4041
+ if (e && ni(e) && Xe(e)) {
4042
+ const { loadingDelay: t } = Z();
4080
4043
  let r;
4081
- return typeof window != "undefined" && G() != null && t ? r = window.setTimeout(
4082
- () => Le.set(!0),
4044
+ return typeof window < "u" && U() != null && t ? r = window.setTimeout(
4045
+ () => Oe.set(!0),
4083
4046
  t
4084
- ) : Le.set(!0), sr(e).then(() => {
4085
- ge.set(e);
4047
+ ) : Oe.set(!0), er(e).then(() => {
4048
+ be.set(e);
4086
4049
  }).finally(() => {
4087
- clearTimeout(r), Le.set(!1);
4050
+ clearTimeout(r), Oe.set(!1);
4088
4051
  });
4089
4052
  }
4090
- return ge.set(e);
4091
- }, Y = Ai(Bi({}, ge), {
4092
- set: wi
4093
- }), Te = (e) => {
4053
+ return be.set(e);
4054
+ }, J = bi(mi({}, be), {
4055
+ set: gi
4056
+ }), Se = (e) => {
4094
4057
  const t = /* @__PURE__ */ Object.create(null);
4095
4058
  return (n) => {
4096
4059
  const i = JSON.stringify(n);
4097
4060
  return i in t ? t[i] : t[i] = e(n);
4098
4061
  };
4099
4062
  };
4100
- var Pi = Object.defineProperty, ye = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
4063
+ var yi = Object.defineProperty, ge = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
4101
4064
  for (var r in t || (t = {}))
4102
- ar.call(t, r) && Tt(e, r, t[r]);
4103
- if (ye)
4104
- for (var r of ye(t))
4105
- ur.call(t, r) && Tt(e, r, t[r]);
4065
+ tr.call(t, r) && yt(e, r, t[r]);
4066
+ if (ge)
4067
+ for (var r of ge(t))
4068
+ rr.call(t, r) && yt(e, r, t[r]);
4106
4069
  return e;
4107
- }, K = (e, t) => {
4070
+ }, Y = (e, t) => {
4108
4071
  var r = {};
4109
4072
  for (var n in e)
4110
- ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4111
- if (e != null && ye)
4112
- for (var n of ye(e))
4113
- t.indexOf(n) < 0 && ur.call(e, n) && (r[n] = e[n]);
4073
+ tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4074
+ if (e != null && ge)
4075
+ for (var n of ge(e))
4076
+ t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
4114
4077
  return r;
4115
4078
  };
4116
- const oe = (e, t) => {
4117
- const { formats: r } = Q();
4079
+ const ie = (e, t) => {
4080
+ const { formats: r } = Z();
4118
4081
  if (e in r && t in r[e])
4119
4082
  return r[e][t];
4120
4083
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4121
- }, Oi = Te(
4084
+ }, vi = Se(
4122
4085
  (e) => {
4123
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4086
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4124
4087
  if (r == null)
4125
4088
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4126
- return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
4089
+ return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
4127
4090
  }
4128
- ), Ii = Te(
4091
+ ), _i = Se(
4129
4092
  (e) => {
4130
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4093
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4131
4094
  if (r == null)
4132
4095
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4133
- return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
4096
+ return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
4134
4097
  }
4135
- ), Li = Te(
4098
+ ), xi = Se(
4136
4099
  (e) => {
4137
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4100
+ var t = e, { locale: r, format: n } = t, i = Y(t, ["locale", "format"]);
4138
4101
  if (r == null)
4139
4102
  throw new Error(
4140
4103
  '[svelte-i18n] A "locale" must be set to format time values'
4141
4104
  );
4142
- return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
4105
+ return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
4143
4106
  }
4144
- ), Ni = (e = {}) => {
4107
+ ), Ei = (e = {}) => {
4145
4108
  var t = e, {
4146
- locale: r = G()
4147
- } = t, n = K(t, [
4109
+ locale: r = U()
4110
+ } = t, n = Y(t, [
4148
4111
  "locale"
4149
4112
  ]);
4150
- return Oi(Ye({ locale: r }, n));
4151
- }, Mi = (e = {}) => {
4113
+ return vi(qe({ locale: r }, n));
4114
+ }, Si = (e = {}) => {
4152
4115
  var t = e, {
4153
- locale: r = G()
4154
- } = t, n = K(t, [
4116
+ locale: r = U()
4117
+ } = t, n = Y(t, [
4155
4118
  "locale"
4156
4119
  ]);
4157
- return Ii(Ye({ locale: r }, n));
4158
- }, Ci = (e = {}) => {
4120
+ return _i(qe({ locale: r }, n));
4121
+ }, Ti = (e = {}) => {
4159
4122
  var t = e, {
4160
- locale: r = G()
4161
- } = t, n = K(t, [
4123
+ locale: r = U()
4124
+ } = t, n = Y(t, [
4162
4125
  "locale"
4163
4126
  ]);
4164
- return Li(Ye({ locale: r }, n));
4165
- }, $i = Te(
4127
+ return xi(qe({ locale: r }, n));
4128
+ }, Hi = Se(
4166
4129
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4167
- (e, t = G()) => new hi(e, t, Q().formats, {
4168
- ignoreTag: Q().ignoreTag
4130
+ (e, t = U()) => new Yn(e, t, Z().formats, {
4131
+ ignoreTag: Z().ignoreTag
4169
4132
  })
4170
- ), Ri = (e, t = {}) => {
4133
+ ), Bi = (e, t = {}) => {
4171
4134
  var r, n, i, o;
4172
4135
  let s = t;
4173
4136
  typeof e == "object" && (s = e, e = s.id);
4174
4137
  const {
4175
4138
  values: a,
4176
- locale: h = G(),
4139
+ locale: h = U(),
4177
4140
  default: u
4178
4141
  } = s;
4179
4142
  if (h == null)
4180
4143
  throw new Error(
4181
4144
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4182
4145
  );
4183
- let l = rr(e, h);
4146
+ let l = qt(e, h);
4184
4147
  if (!l)
4185
- l = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4148
+ 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;
4186
4149
  else if (typeof l != "string")
4187
4150
  return console.warn(
4188
4151
  `[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.`
@@ -4191,7 +4154,7 @@ const oe = (e, t) => {
4191
4154
  return l;
4192
4155
  let c = l;
4193
4156
  try {
4194
- c = $i(l, h).format(a);
4157
+ c = Hi(l, h).format(a);
4195
4158
  } catch (f) {
4196
4159
  f instanceof Error && console.warn(
4197
4160
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4199,20 +4162,20 @@ const oe = (e, t) => {
4199
4162
  );
4200
4163
  }
4201
4164
  return c;
4202
- }, Ui = (e, t) => Ci(t).format(e), Gi = (e, t) => Mi(t).format(e), Di = (e, t) => Ni(t).format(e), Fi = (e, t = G()) => rr(e, t), ji = J([Y, ue], () => Ri);
4203
- J([Y], () => Ui);
4204
- J([Y], () => Gi);
4205
- J([Y], () => Di);
4206
- J([Y, ue], () => Fi);
4207
- window.emWidgets = { topic: en };
4208
- const ki = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4209
- function Ht(e, t) {
4210
- ir(e, t);
4211
- }
4212
- function Vi(e) {
4213
- Y.set(e);
4214
- }
4215
- const Bt = {
4165
+ }, Ai = (e, t) => Ti(t).format(e), wi = (e, t) => Si(t).format(e), Pi = (e, t) => Ei(t).format(e), Oi = (e, t = U()) => qt(e, t), Ii = q([J, ae], () => Bi);
4166
+ q([J], () => Ai);
4167
+ q([J], () => wi);
4168
+ q([J], () => Pi);
4169
+ q([J, ae], () => Oi);
4170
+ window.emWidgets = { topic: kr };
4171
+ const Li = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4172
+ function vt(e, t) {
4173
+ Yt(e, t);
4174
+ }
4175
+ function Ni(e) {
4176
+ J.set(e);
4177
+ }
4178
+ const _t = {
4216
4179
  en: {
4217
4180
  logoutButton: "Logout"
4218
4181
  },
@@ -4247,20 +4210,20 @@ const Bt = {
4247
4210
  logoutButton: "Logout"
4248
4211
  }
4249
4212
  };
4250
- function Xi(e) {
4251
- 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))}");
4213
+ function Mi(e) {
4214
+ ur(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))}");
4252
4215
  }
4253
- function Wi(e) {
4216
+ function Ci(e) {
4254
4217
  let t, r, n, i = (
4255
4218
  /*$_*/
4256
4219
  e[2]("logoutButton") + ""
4257
4220
  ), o, s, a;
4258
4221
  return {
4259
4222
  c() {
4260
- t = L("div"), r = L("button"), n = L("span"), o = ve(i), _(t, "class", "GeneralLogout");
4223
+ t = I("div"), r = I("button"), n = I("span"), o = ye(i), E(t, "class", "GeneralLogout");
4261
4224
  },
4262
4225
  m(h, u) {
4263
- ae(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = Ot(
4226
+ se(h, t, u), S(t, r), S(r, n), S(n, o), s || (a = Tt(
4264
4227
  r,
4265
4228
  "click",
4266
4229
  /*click_handler_1*/
@@ -4270,29 +4233,29 @@ function Wi(e) {
4270
4233
  p(h, u) {
4271
4234
  u & /*$_*/
4272
4235
  4 && i !== (i = /*$_*/
4273
- h[2]("logoutButton") + "") && It(o, i);
4236
+ h[2]("logoutButton") + "") && Ht(o, i);
4274
4237
  },
4275
4238
  d(h) {
4276
- h && q(t), s = !1, a();
4239
+ h && Q(t), s = !1, a();
4277
4240
  }
4278
4241
  };
4279
4242
  }
4280
- function zi(e) {
4243
+ function $i(e) {
4281
4244
  let t, r, n, i, o, s, a, h, u, l, c, f = !/*isMobile*/
4282
- e[3] && Zi(e);
4245
+ e[3] && Ri(e);
4283
4246
  return {
4284
4247
  c() {
4285
- t = L("p"), r = L("span"), n = ee("svg"), i = ee("defs"), o = ee("style"), s = ve(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = ee("path"), h = ee("path"), u = _r(), f && f.c(), _(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), _(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"), _(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), _(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"), _(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), _(n, "data-name", "Layer 1"), _(n, "xmlns", "http://www.w3.org/2000/svg"), _(n, "viewBox", "0 0 150 150"), Tr(r, "width", /*isMobile*/
4248
+ t = I("p"), r = I("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 = fr(), f && f.c(), E(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), E(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"), E(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), E(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"), E(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), E(n, "data-name", "Layer 1"), E(n, "xmlns", "http://www.w3.org/2000/svg"), E(n, "viewBox", "0 0 150 150"), dr(r, "width", /*isMobile*/
4286
4249
  e[3] ? (
4287
4250
  /*mediaQuery*/
4288
4251
  e[4].matches ? "50px" : "24px"
4289
- ) : "20px"), _(t, "class", "PlayerAccountMenuItemBox " + /*isMobile*/
4252
+ ) : "20px"), E(t, "class", "PlayerAccountMenuItemBox " + /*isMobile*/
4290
4253
  (e[3] ? "PlayerAccountMenuItemBoxMobile" : "") + " " + /*mediaQuery*/
4291
4254
  (e[4].matches && /*isMobile*/
4292
4255
  e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
4293
4256
  },
4294
4257
  m(d, y) {
4295
- ae(d, t, y), S(t, r), S(r, n), S(n, i), S(i, o), S(o, s), S(n, a), S(n, h), S(t, u), f && f.m(t, null), l || (c = Ot(
4258
+ se(d, t, y), S(t, r), S(r, n), S(n, i), S(i, o), S(o, s), S(n, a), S(n, h), S(t, u), f && f.m(t, null), l || (c = Tt(
4296
4259
  t,
4297
4260
  "click",
4298
4261
  /*click_handler*/
@@ -4304,92 +4267,92 @@ function zi(e) {
4304
4267
  d[3] || f.p(d, y);
4305
4268
  },
4306
4269
  d(d) {
4307
- d && q(t), f && f.d(), l = !1, c();
4270
+ d && Q(t), f && f.d(), l = !1, c();
4308
4271
  }
4309
4272
  };
4310
4273
  }
4311
- function Zi(e) {
4274
+ function Ri(e) {
4312
4275
  let t, r = (
4313
4276
  /*$_*/
4314
4277
  e[2]("logoutButton") + ""
4315
4278
  ), n;
4316
4279
  return {
4317
4280
  c() {
4318
- t = L("span"), n = ve(r), _(t, "class", "PlayerLogoutText");
4281
+ t = I("span"), n = ye(r), E(t, "class", "PlayerLogoutText");
4319
4282
  },
4320
4283
  m(i, o) {
4321
- ae(i, t, o), S(t, n);
4284
+ se(i, t, o), S(t, n);
4322
4285
  },
4323
4286
  p(i, o) {
4324
4287
  o & /*$_*/
4325
4288
  4 && r !== (r = /*$_*/
4326
- i[2]("logoutButton") + "") && It(n, r);
4289
+ i[2]("logoutButton") + "") && Ht(n, r);
4327
4290
  },
4328
4291
  d(i) {
4329
- i && q(t);
4292
+ i && Q(t);
4330
4293
  }
4331
4294
  };
4332
4295
  }
4333
- function Qi(e) {
4296
+ function Ui(e) {
4334
4297
  let t;
4335
4298
  function r(o, s) {
4336
4299
  return (
4337
4300
  /*buttonlocation*/
4338
- o[0] === "PlayerAccountMenu" ? zi : Wi
4301
+ o[0] === "PlayerAccountMenu" ? $i : Ci
4339
4302
  );
4340
4303
  }
4341
4304
  let n = r(e), i = n(e);
4342
4305
  return {
4343
4306
  c() {
4344
- t = L("div"), i.c();
4307
+ t = I("div"), i.c();
4345
4308
  },
4346
4309
  m(o, s) {
4347
- ae(o, t, s), i.m(t, null), e[14](t);
4310
+ se(o, t, s), i.m(t, null), e[14](t);
4348
4311
  },
4349
4312
  p(o, [s]) {
4350
4313
  n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4351
4314
  },
4352
- i: w,
4353
- o: w,
4315
+ i: A,
4316
+ o: A,
4354
4317
  d(o) {
4355
- o && q(t), i.d(), e[14](null);
4318
+ o && Q(t), i.d(), e[14](null);
4356
4319
  }
4357
4320
  };
4358
4321
  }
4359
- function qi(e, t, r) {
4322
+ function Gi(e, t, r) {
4360
4323
  let n;
4361
- yr(e, ji, (b) => r(2, n = b));
4362
- let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: l = "" } = t, c = "", f = !1, d, y = window.navigator.userAgent, v = ki(y) !== "PC";
4363
- const B = window.matchMedia("(min-width: 768px)"), $ = () => {
4364
- fetch(l).then((A) => A.json()).then((A) => {
4365
- Object.keys(A).forEach((U) => {
4366
- Ht(U, A[U]);
4324
+ ar(e, Ii, (b) => r(2, n = b));
4325
+ let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: l = "" } = t, c = "", f = !1, d, y = window.navigator.userAgent, v = Li(y) !== "PC";
4326
+ const H = window.matchMedia("(min-width: 768px)"), C = () => {
4327
+ fetch(l).then((B) => B.json()).then((B) => {
4328
+ Object.keys(B).forEach((R) => {
4329
+ vt(R, B[R]);
4367
4330
  });
4368
- }).catch((A) => {
4369
- console.log(A);
4331
+ }).catch((B) => {
4332
+ console.log(B);
4370
4333
  });
4371
4334
  };
4372
- Object.keys(Bt).forEach((b) => {
4373
- Ht(b, Bt[b]);
4335
+ Object.keys(_t).forEach((b) => {
4336
+ vt(b, _t[b]);
4374
4337
  });
4375
- const P = () => {
4338
+ const w = () => {
4376
4339
  let b = new Headers();
4377
4340
  b.append("Content-type", "application/json"), b.append("X-SessionID", o);
4378
- let A = { method: "DELETE", headers: b };
4379
- fetch(`${i}/v1/player/session/player`, A).then((U) => {
4341
+ let B = { method: "DELETE", headers: b };
4342
+ fetch(`${i}/v1/player/session/player`, B).then((R) => {
4380
4343
  window.postMessage({ type: "LogoutSuccessfull" }, window.location.href);
4381
4344
  });
4382
- }, T = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", f = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", f = !0, console.error(c)), f), R = () => {
4383
- Vi(a);
4384
- }, O = () => {
4345
+ }, T = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", f = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", f = !0, console.error(c)), f), $ = () => {
4346
+ Ni(a);
4347
+ }, P = () => {
4385
4348
  let b = document.createElement("style");
4386
4349
  b.innerHTML = h, d.appendChild(b);
4387
- }, D = () => {
4388
- let b = new URL(u), A = document.createElement("style");
4389
- fetch(b.href).then((U) => U.text()).then((U) => {
4390
- A.innerHTML = U, setTimeout(
4350
+ }, G = () => {
4351
+ let b = new URL(u), B = document.createElement("style");
4352
+ fetch(b.href).then((R) => R.text()).then((R) => {
4353
+ B.innerHTML = R, setTimeout(
4391
4354
  () => {
4392
- d.appendChild(A);
4355
+ d.appendChild(B);
4393
4356
  },
4394
4357
  1
4395
4358
  ), setTimeout(
@@ -4398,9 +4361,9 @@ function qi(e, t, r) {
4398
4361
  500
4399
4362
  );
4400
4363
  });
4401
- }, he = () => P(), lr = () => P();
4402
- function fr(b) {
4403
- Ne[b ? "unshift" : "push"](() => {
4364
+ }, ue = () => w(), ir = () => w();
4365
+ function or(b) {
4366
+ Ie[b ? "unshift" : "push"](() => {
4404
4367
  d = b, r(1, d);
4405
4368
  });
4406
4369
  }
@@ -4409,36 +4372,36 @@ function qi(e, t, r) {
4409
4372
  }, e.$$.update = () => {
4410
4373
  e.$$.dirty & /*endpoint, session, buttonlocation*/
4411
4374
  193 && i && o && s && T(), e.$$.dirty & /*lang*/
4412
- 256 && a && R(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4413
- 514 && h && d && O(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4414
- 1026 && u && d && D(), e.$$.dirty & /*translationurl*/
4415
- 2048 && l && $();
4375
+ 256 && a && $(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4376
+ 514 && h && d && P(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4377
+ 1026 && u && d && G(), e.$$.dirty & /*translationurl*/
4378
+ 2048 && l && C();
4416
4379
  }, [
4417
4380
  s,
4418
4381
  d,
4419
4382
  n,
4420
4383
  v,
4421
- B,
4422
- P,
4384
+ H,
4385
+ w,
4423
4386
  i,
4424
4387
  o,
4425
4388
  a,
4426
4389
  h,
4427
4390
  u,
4428
4391
  l,
4429
- he,
4430
- lr,
4431
- fr
4392
+ ue,
4393
+ ir,
4394
+ or
4432
4395
  ];
4433
4396
  }
4434
- class hr extends Ur {
4397
+ class nr extends Ar {
4435
4398
  constructor(t) {
4436
- super(), $r(
4399
+ super(), Hr(
4437
4400
  this,
4438
4401
  t,
4439
- qi,
4440
- Qi,
4441
- wt,
4402
+ Gi,
4403
+ Ui,
4404
+ Et,
4442
4405
  {
4443
4406
  endpoint: 6,
4444
4407
  session: 7,
@@ -4448,86 +4411,86 @@ class hr extends Ur {
4448
4411
  clientstylingurl: 10,
4449
4412
  translationurl: 11
4450
4413
  },
4451
- Xi
4414
+ Mi
4452
4415
  );
4453
4416
  }
4454
4417
  get endpoint() {
4455
4418
  return this.$$.ctx[6];
4456
4419
  }
4457
4420
  set endpoint(t) {
4458
- this.$$set({ endpoint: t }), I();
4421
+ this.$$set({ endpoint: t }), O();
4459
4422
  }
4460
4423
  get session() {
4461
4424
  return this.$$.ctx[7];
4462
4425
  }
4463
4426
  set session(t) {
4464
- this.$$set({ session: t }), I();
4427
+ this.$$set({ session: t }), O();
4465
4428
  }
4466
4429
  get buttonlocation() {
4467
4430
  return this.$$.ctx[0];
4468
4431
  }
4469
4432
  set buttonlocation(t) {
4470
- this.$$set({ buttonlocation: t }), I();
4433
+ this.$$set({ buttonlocation: t }), O();
4471
4434
  }
4472
4435
  get lang() {
4473
4436
  return this.$$.ctx[8];
4474
4437
  }
4475
4438
  set lang(t) {
4476
- this.$$set({ lang: t }), I();
4439
+ this.$$set({ lang: t }), O();
4477
4440
  }
4478
4441
  get clientstyling() {
4479
4442
  return this.$$.ctx[9];
4480
4443
  }
4481
4444
  set clientstyling(t) {
4482
- this.$$set({ clientstyling: t }), I();
4445
+ this.$$set({ clientstyling: t }), O();
4483
4446
  }
4484
4447
  get clientstylingurl() {
4485
4448
  return this.$$.ctx[10];
4486
4449
  }
4487
4450
  set clientstylingurl(t) {
4488
- this.$$set({ clientstylingurl: t }), I();
4451
+ this.$$set({ clientstylingurl: t }), O();
4489
4452
  }
4490
4453
  get translationurl() {
4491
4454
  return this.$$.ctx[11];
4492
4455
  }
4493
4456
  set translationurl(t) {
4494
- this.$$set({ translationurl: t }), I();
4457
+ this.$$set({ translationurl: t }), O();
4495
4458
  }
4496
4459
  }
4497
- Rr(hr, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4498
- const no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4460
+ Br(nr, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4461
+ const Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4499
4462
  __proto__: null,
4500
- default: hr
4463
+ default: nr
4501
4464
  }, Symbol.toStringTag, { value: "Module" }));
4502
4465
  export {
4503
- Y as $,
4504
- Yi as A,
4505
- no as G,
4506
- Ur as S,
4507
- ir as a,
4508
- vr as b,
4509
- Rr as c,
4510
- ae as d,
4511
- L as e,
4512
- I as f,
4513
- q as g,
4514
- yr as h,
4515
- $r as i,
4516
- ki as j,
4517
- Ne as k,
4518
- ji as l,
4519
- ro as m,
4520
- w as n,
4521
- to as o,
4522
- _r as p,
4523
- _ as q,
4466
+ J as $,
4467
+ Di as A,
4468
+ Xi as G,
4469
+ Ar as S,
4470
+ Yt as a,
4471
+ ur as b,
4472
+ Br as c,
4473
+ se as d,
4474
+ I as e,
4475
+ O as f,
4476
+ Q as g,
4477
+ ar as h,
4478
+ Hr as i,
4479
+ Li as j,
4480
+ Ie as k,
4481
+ Ii as l,
4482
+ Vi as m,
4483
+ A as n,
4484
+ ki as o,
4485
+ fr as p,
4486
+ E as q,
4524
4487
  S as r,
4525
- wt as s,
4526
- ve as t,
4527
- It as u,
4528
- Ki as v,
4529
- ee as w,
4530
- Ot as x,
4531
- se as y,
4532
- eo as z
4488
+ Et as s,
4489
+ ye as t,
4490
+ Ht as u,
4491
+ Fi as v,
4492
+ K as w,
4493
+ Tt as x,
4494
+ oe as y,
4495
+ ji as z
4533
4496
  };