@everymatrix/player-reality-check 1.54.0 → 1.54.4

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